[ { "id": 32501, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $A_{1} B_{1} C_{1} D_{1} E_{1}$ be a regular pentagon. For $2 \\leq n \\leq 11$, let $A_{n} B_{n} C_{n} D_{n} E_{n}$ be the pentagon whose vertices are the midpoints of the sides of the pentagon $A_{n-1} B_{n-1} C_{n-1} D_{n-1} E_{n-1}$. All the 5 vertices of each of the 11 pentagons are arbitrarily coloured red or blue. Prove that four points among these 55 points have the same colour and form the vertices of a cyclic quadrilateral.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nWe first observe that all the eleven pentagons are regular. Moreover, there are 5 fixed directions and all the 55 sides are in one of these directions. If we consider any two sides which are parallel, they are the parallel sides of an isosceles trapezium, which is cyclic.\n\nIf we consider any pentagon, its two adjacent vertices have the same colour. Consider all such 11 sides whose end points are of the same colour. These are in 5 fixed directions. By pigeon-hole principle, there are 3 sides which are in the same directions and therefore parallel to each other. Among these three sides, two must have end points having one colour (again by $\\mathrm{P}-\\mathrm{H}$ principle). Thus there are two parallel sides among the 55 and the end points of these have one fixed colour. But these two sides are parallel sides of an isosceles trapezium. Hence the four end points are concyclic.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32502, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $m, n$ be distinct positive integers. Prove that\n$$\n\\operatorname{gcd}(m, n)+\\operatorname{gcd}(m+1, n+1)+\\operatorname{gcd}(m+2, n+2) \\leq 2|m-n|+1\n$$\nFurther, determine when equality holds.", "options": [], "answer": "Equality holds if and only if (m, n) are consecutive integers or they are consecutive even integers, i.e., (m, n) = (k, k+1) or (2k, 2k+2), up to swapping m and n, for some positive integer k.", "solution": "Solution:\nObserve that\n$$\n\\operatorname{gcd}(m+j, n+j)=\\operatorname{gcd}(m+j,|m-n|)\n$$\nfor $j=0,1,2$. Hence we can find positive integers $a, b, c$ such that\n$$\n\\operatorname{gcd}(m, n)=\\frac{|m-n|}{a}, \\quad \\operatorname{gcd}(m+1, n+1)=\\frac{|m-n|}{b}, \\quad \\operatorname{gcd}(m+2, n+2)=\\frac{|m-n|}{c}\n$$\nIt follows that $|m-n|$ divides $m a,(m+1) b$ and $(m+2) c$. Hence we can see that $|m-n|$ divides $a b$ and $b c$. We get $|m-n| \\leq a b$ and $|m-n| \\leq b c$. This leads to\n$$\nb \\geq \\frac{|m-n|}{a}, \\quad b \\geq \\frac{|m-n|}{c}\n$$\nThus\n$$\n\\begin{aligned}\n\\operatorname{gcd}(m, n)+\\operatorname{gcd}(m+1, n+1)+\\operatorname{gcd}(m+2, & n+2) \\\\\n& =\\frac{|m-n|}{a}+\\frac{|m-n|}{b}+\\frac{|m-n|}{c} \\leq 2 b+\\frac{|m-n|}{b}\n\\end{aligned}\n$$\nWe have to prove that\n$$\n2 b+\\frac{|m-n|}{b} \\leq 2|m-n|+1\n$$\nTaking $|m-n|=K$, we have to show that $2 b^{2}+K \\leq b(2 K+1)$. This reduces to $(b-K)(2 b-1) \\leq 0$. However\n$$\nK=|m-n| \\geq b \\geq 1>\\frac{1}{2}\n$$\nEquality holds only when $(m, n)=(k, k+1)$ or $(2 k, 2 k+2)$ or permutations of these for some $k$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32503, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $n$ and $M$ be positive integers such that $M > n^{n-1}$. Prove that there are $n$ distinct primes $p_{1}, p_{2}, p_{3}, \\ldots, p_{n}$ such that $p_{j}$ divides $M + j$ for $1 \\leq j \\leq n$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nIf some number $M + k$, $1 \\leq k \\leq n$, has at least $n$ distinct prime factors, then we can associate a prime factor of $M + k$ with the number $M + k$ which is not associated with any of the remaining $n - 1$ numbers.\n\nSuppose $M + j$ has less than $n$ distinct prime factors. Write\n$$\nM + j = p_{1}^{\\alpha_{1}} p_{2}^{\\alpha_{2}} \\cdots p_{r}^{\\alpha_{r}}, \\quad r < n\n$$\nBut $M + j > n^{n-1}$. Hence there exist $t$, $1 \\leq t \\leq r$ such that $p_{t}^{\\alpha_{t}} > n$. Associate $p_{t}$ with this $M + j$. Suppose $p_{t}$ is associated with some $M + l$. Let $p_{t}^{\\beta_{t}}$ be the largest power of $p_{t}$ dividing $M + l$. Then $p_{t}^{\\beta_{t}} > n$. Let $T = \\operatorname{gcd}\\left(p_{t}^{\\alpha_{t}}, p_{t}^{\\beta_{t}}\\right)$. Then $T > n$. Since $T \\mid (M + j)$ and $T \\mid (M + l)$, it follows that $T \\mid (|j - l|)$. But $|j - l| < n$ and $T > n$, and we get a contradiction. This shows that $p_{t}$ cannot be associated with any other $M + l$. Thus each $M + j$ is associated with different primes.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32504, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $AB$ be a diameter of a circle $\\Gamma$ and let $C$ be a point on $\\Gamma$ different from $A$ and $B$. Let $D$ be the foot of perpendicular from $C$ onto $AB$. Let $K$ be a point of the segment $CD$ such that $AC$ is equal to the semiperimeter of the triangle $ADK$. Show that the excircle of triangle $ADK$ opposite $A$ is tangent to $\\Gamma$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nDraw another diameter $PQ \\perp AB$. Let $E$ be the point at which the excircle $\\Gamma_1$ touches the line $AD$. Join $QE$ and extend it to meet $\\Gamma$ in $L$. Draw the diameter $EN$ of $\\Gamma_1$ and draw $QS \\perp NE$ (extended). See the figure. We also observe that $DE = EM = EN / 2$.\n\n![](attached_image_1.png)\n\nSince $AE$ is equal to the semiperimeter of $\\triangle ADK$, we have $AC = AE$. Hence $AE^2 = AC^2 = AD \\cdot AB$ (as $ACB$ is a right-angle triangle). Thus\n$$\nAD(AD + DE + EB) = (AD + DE)^2 = AD^2 + 2AD \\cdot DE + DE^2\n$$\nSimplification gives\n$$\n\\begin{aligned}\nAD \\cdot EB &= AD \\cdot DE + DE^2 \\\\\n&= DE(AD + DE) \\\\\n&= DE \\cdot AE \\\\\n&= DE(AB - BE)\n\\end{aligned}\n$$\nTherefore\n$$\nDE \\cdot AB = EB(AD + DE) = EB \\cdot AE\n$$\nBut\n$$\nDE \\cdot AB = DE \\cdot PQ = 2DE \\cdot OQ = EN \\cdot ES\n$$\nand $EB \\cdot AE = QE \\cdot EL$. Therefore we get\n$$\nQE \\cdot EL = EN \\cdot ES\n$$\nIt follows that $Q, S, L, N$ are concyclic. Since $\\angle QSE = 90^\\circ$, we get $\\angle ELN = 90^\\circ$. Since $EN$ is a diameter, this implies that $L$ also lies on $\\Gamma_1$. But $\\angle QLP = 90^\\circ$. Therefore $L, N, P$ are collinear. Since $NM \\parallel PO$ and\n$$\n\\frac{NM}{PO} = \\frac{NE}{PQ} = \\frac{LN}{LP}\n$$\nit follows that $L, M, O$ are collinear. Hence $\\Gamma_1$ is tangent to $\\Gamma$ at $L$.\n\n\nAlternate solution:\n\nLet $R$ be the radius of the circle $\\Gamma$ and $r$ be that of the circle $\\Gamma_1$. Let $O$ be the centre of $\\Gamma$ and $M$ be that of the circle $\\Gamma_1$. Let $E$ be the point of contact of $\\Gamma_1$ with $AB$. Then $ME = DE = r$. Observe that $AE$ is the semiperimeter of $\\triangle ADE$. We are given that $AC = AE$. Using that $\\angle ACB = 90^\\circ$, we also get $AC^2 = AD \\cdot AB$. Hence $AE^2 = AD \\cdot AB$. We have to show that $R - r = OM$ for proving that $\\Gamma_1$ is tangent to $\\Gamma$. We have\n$$\n\\begin{aligned}\n& OM^2 - (R - r)^2 = OE^2 + r^2 - (R - r)^2 = (AD + DE - AO)^2 + r^2 - (R - r)^2 \\\\\n&= (AD - (R - r))^2 + r^2 - (R - r)^2 = AD^2 - 2AD \\cdot (R - r) + r^2 \\\\\n&= (AD^2 + 2AD \\cdot r + r^2) - 2AD \\cdot R = (AD + r)^2 - AD \\cdot AB \\\\\n&= (AD + DE)^2 - AD \\cdot AB = AE^2 - AD \\cdot AB = 0\n\\end{aligned}\n$$\nHence $OM = R - r$ and therefore $\\Gamma_1$ is tangent to $\\Gamma$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32505, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $f$ be function defined from the set $\\{(x, y): x, y$ reals, $x y \\neq 0\\}$ into the set of all positive real numbers such that\n(i) $\\quad f(x y, z)=f(x, z) f(y, z)$, for all $x, y \\neq 0$;\n(ii) $\\quad f(x, y z)=f(x, y) f(x, z)$, for all $x, y \\neq 0$;\n(iii) $\\quad f(x, 1-x)=1$, for all $x \\neq 0,1$.\nProve that\n(a) $\\quad f(x, x)=f(x,-x)=1$, for all $x \\neq 0$;\n(b) $\\quad f(x, y) f(y, x)=1$, for all $x, y \\neq 0$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nTaking $x=y=1$ in (ii), we get $f(1, z)^2 = f(1, z)$ so that $f(1, z) = 1$ for all $z \\neq 0$. Similarly, $x=y=-1$ gives $f(-1, z) = 1$ for all $z \\neq 0$. Using the second condition, we also get $f(z, 1) = f(z, -1) = 1$ for all $z \\neq 0$.\n\nObserve\n$$\nf\\left(\\frac{1}{x}, y\\right) f(x, y) = f(1, y) = 1 = f(x, 1) = f\\left(x, \\frac{1}{y}\\right) f(x, y)\n$$\nTherefore\n$$\nf\\left(x, \\frac{1}{y}\\right) = f\\left(\\frac{1}{x}, y\\right) = \\frac{1}{f(x, y)}\n$$\nfor all $x, y \\neq 0$.\n\nNow for $x \\neq 0,1$, condition (iii) gives\n$$\n1 = f\\left(\\frac{1}{x}, 1-\\frac{1}{x}\\right) = f\\left(x, \\frac{1}{1-\\frac{1}{x}}\\right)\n$$\nMultiplying by $1 = f(x, 1-x)$, we get\n$$\n1 = f(x, 1-x) f\\left(x, \\frac{1}{1-\\frac{1}{x}}\\right) = f\\left(x, \\frac{1-x}{1-\\frac{1}{x}}\\right) = f(x, -x)\n$$\nfor all $x \\neq 0,1$.\n\nBut $f(x, -1) = 1$ for all $x \\neq 0$ gives\n$$\nf(x, x) = f(x, -x) f(x, -1) = f(x, -x) = 1\n$$\nfor all $x \\neq 0,1$. Observe $f(1,1) = f(1,-1) = 1$. Hence\n$$\nf(x, x) = f(x, -x) = 1\n$$\nfor all $x \\neq 0$, which proves (a).\n\nWe have\n$$\n1 = f(x y, x y) = f(x, x y) f(y, x y) = f(x, x) f(x, y) f(y, x) f(y, y) = f(x, y) f(y, x)\n$$\nfor all $x, y \\neq 0$, which proves (b).", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32506, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $\\Gamma_{1}$ and $\\Gamma_{2}$ be two circles of unequal radii, with centres $O_{1}$ and $O_{2}$ respectively, in the plane intersecting in two distinct points $A$ and $B$. Assume that the centre of each of the circles $\\Gamma_{1}$ and $\\Gamma_{2}$ is outside the other. The tangent to $\\Gamma_{1}$ at $B$ intersects $\\Gamma_{2}$ again in $C$, different from $B$; the tangent to $\\Gamma_{2}$ at $B$ intersects $\\Gamma_{1}$ again in $D$, different from $B$. The bisectors of $\\angle D A B$ and $\\angle C A B$ meet $\\Gamma_{1}$ and $\\Gamma_{2}$ again in $X$ and $Y$, respectively, different from $A$. Let $P$ and $Q$ be the circumcentres of triangles $A C D$ and $X A Y$, respectively. Prove that $P Q$ is the perpendicular bisector of the line segment $O_{1} O_{2}$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\n![](attached_image_1.png)\nLet $\\angle C B A=\\alpha$ and $\\angle D B A=\\beta$. Then $\\angle B D A=\\alpha$ and $\\angle B C A=\\beta$. We also observe that $\\angle A O_{1} O_{2}=\\left(\\angle A O_{1} B / 2\\right)=\\alpha$ and, simiarly, $\\angle A O_{2} O_{1}=\\beta$. Hence\n$$\n\\angle O_{1} A O_{2}=180^{\\circ}-(\\alpha+\\beta)\n$$\nWe also have\n$$\n\\angle P O_{1} A=\\frac{\\angle D O_{1} A}{2}=\\frac{2 \\angle D B A}{2}=\\angle D B A=\\beta\n$$\nHence $\\angle P O_{1} O_{2}=\\angle P O_{1} A+\\angle A O_{1} O_{2}=\\beta+\\alpha$. Similarly, we can get $\\angle P O_{2} O_{1}=\\alpha+\\beta$. It follows that $P$ lies on the perpendicular bisector of $O_{1} O_{2}$.\n\nNow we observe that\n$$\n\\angle X Q Y=360^{\\circ}-2 \\angle X A Y=360^{\\circ}-2\\left(180^{\\circ}-\\alpha-\\beta\\right)=2(\\alpha+\\beta)\n$$\nThis gives\n$$\n\\angle O_{1} Q O_{2}=\\frac{1}{2}(\\angle X Q A+\\angle Y Q A)=\\frac{\\angle X Q Y}{2}=\\alpha+\\beta\n$$\nThis shows that $A, O_{1}, O_{2}, Q$ are concyclic. We also have\n$$\n\\begin{aligned}\n& \\angle A B X=\\angle A B D+\\angle D B X=\\beta+\\angle D A X=\\beta+\\frac{\\angle D A B}{2} \\\\\n& \\angle A B Y=\\angle A B C+\\angle C B Y=\\alpha+\\angle C A Y=\\alpha+\\frac{\\angle B A C}{2}\n\\end{aligned}\n$$\nAdding we obtain\n$$\n\\angle A B X+\\angle A B Y=\\alpha+\\beta+\\frac{1}{2}(\\angle D A B+\\angle B A C)=\\alpha+\\beta+\\left(180^{\\circ}-\\alpha-\\beta\\right)=180^{\\circ}\n$$\nHence $X, B, Y$ are collinear. Now\n$$\n\\begin{gathered}\n\\angle Q A X=\\frac{1}{2}\\left(180^{\\circ}-\\angle A Q X\\right)=90^{\\circ}-\\beta \\\\\n\\angle X A O_{1}=\\frac{1}{2}\\left(180^{\\circ}-\\angle X O_{1} A\\right)=90^{\\circ}-\\frac{1}{2}\\left(360^{\\circ}-2 \\angle A B X\\right)=\\angle A B X-90^{\\circ}\n\\end{gathered}\n$$\nHence\n$$\n\\angle Q A O_{1}=90^{\\circ}-\\beta+\\angle A B X-90^{\\circ}=\\angle A B X-\\beta=\\frac{\\angle D A B}{2}=\\frac{\\angle O_{1} A O_{2}}{2}\n$$\nThis shows that $A Q$ bisects $\\angle O_{1} A O_{2}$ and therefore the chords $Q O_{1}$ and $Q O_{2}$ subtend equal angles on the circumference of the circle passing through $Q O_{2} A O_{1}$. Hence $Q O_{2}=Q O_{1}$. This means $Q$ lies on the perpendicular bisector of $O_{1} O_{2}$.\n\nCombining, we get that $P Q$ is the perpendicular bisector of $O_{1} O_{2}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32507, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nSuppose $P(x)$ is a polynomial with real coefficients satisfying the condition $P(\\cos \\theta + \\sin \\theta) = P(\\cos \\theta - \\sin \\theta)$, for every real $\\theta$. Prove that $P(x)$ can be expressed in the form\n$$\nP(x) = a_{0} + a_{1} (1 - x^{2})^{2} + a_{2} (1 - x^{2})^{4} + \\cdots + a_{n} (1 - x^{2})^{2n}\n$$\nfor some real numbers $a_{0}, a_{1}, a_{2}, \\ldots, a_{n}$ and nonnegative integer $n$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nChanging $\\theta$ to $\\theta - \\pi / 2$, we see that\n$$\nP(\\sin \\theta + \\cos \\theta) = P(\\sin \\theta - \\cos \\theta)\n$$\nThis shows that $P(x) = P(-x)$ for all $x \\in [-\\sqrt{2}, \\sqrt{2}]$ and as $P$ is a polynomial, in fact,\n$$\nP(x) = P(-x)\n$$\nfor all $x \\in \\mathbb{R}$. Hence $P(x)$ is an even polynomial; $P(x) = Q(x^{2})$ for some polynomial $Q(x)$. This gives\n$$\nQ(1 + \\sin(2\\theta)) = P(\\cos \\theta + \\sin \\theta) = P(\\cos \\theta - \\sin \\theta) = Q(1 - \\sin(2\\theta))\n$$\nTaking $t = \\sin(2\\theta)$, we see that $Q(1 + t) = Q(1 - t)$. Hence $Q(0) = Q(2)$.\n\nConsider $Q(t) - Q(0)$. This vanishes both at $t = 0$ and $t = 2$. Hence $t(2 - t)$ is a factor of $Q(t) - Q(0)$. We obtain\n$$\nQ(t) - Q(0) = t(2 - t) h(t)\n$$\nfor some polynomial $h(t)$. Using $Q(1 + t) = Q(1 - t)$, it follows that $h(1 + t) = h(1 - t)$. Hence by induction we get\n$$\nQ(t) = \\sum_{k=0}^{n} b_{k} t^{k} (2 - t)^{k}\n$$\nHence\n$$\nP(x) = Q(x^{2}) = \\sum_{k=0}^{n} b_{k} (x^{2}(2 - x^{2}))^{k} = \\sum_{k=0}^{n} b_{k} (1 - (1 - x^{2})^{2})^{k}\n$$\nUsing binomial theorem, we can write this as\n$$\nP(x) = \\sum_{k=0}^{n} a_{k} (1 - x^{2})^{2k}\n$$\nfor some coefficients $a_{k}$, $0 \\leq k \\leq n$.", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 32508, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $X=\\{0,1,2,3,4,5,6,7,8,9\\}$. Let $S \\subseteq X$ be such that any nonnegative integer $n$ can be written as $p+q$ where the nonnegative integers $p, q$ have all their digits in $S$. Find the smallest possible number of elements in $S$.", "options": [], "answer": "5", "solution": "Solution:\n\nWe show that 5 numbers will suffice. Take $S=\\{0,1,3,4,6\\}$. Observe the following splitting:\n\n| $n$ | $a$ | $b$ |\n| :--- | :--- | :--- |\n| 0 | 0 | 0 |\n| 1 | 0 | 1 |\n| 2 | 1 | 1 |\n| 3 | 0 | 3 |\n| 4 | 1 | 3 |\n| 5 | 1 | 4 |\n| 6 | 3 | 3 |\n| 7 | 3 | 4 |\n| 8 | 4 | 4 |\n| 9 | 3 | 6 |\n\nThus each digit in a given nonnegative integer is split according to the above and can be written as a sum of two numbers each having digits in $S$.\n\nWe show that $|S|>4$. Suppose $|S| \\leq 4$. We may take $|S|=4$ as adding extra numbers to $S$ does not alter our argument. Let $S=\\{a, b, c, d\\}$. Since the last digit can be any one of the numbers $0,1,2, \\ldots, 9$, we must be able to write this as a sum of digits from $S$, modulo 10. Thus the collection\n$$\nA=\\{x+y \\quad(\\bmod 10) \\mid x, y \\in S\\}\n$$\nmust contain $\\{0,1,2, \\ldots, 9\\}$ as a subset. But $A$ has at most 10 elements $\\left(\\binom{4}{2}+4\\right)$. Thus each element of the form $x+y(\\bmod 10)$, as $x, y$ vary over $S$, must give different numbers from $\\{0,1,2, \\ldots, 9\\}$.\n\nConsider $a+a, b+b, c+c, d+d$ modulo 10. They must give 4 even numbers. Hence the remaining even number must be from the remaining 6 elements obtained by adding two distinct members of $S$. We may assume that even number is $a+b(\\bmod 10)$. Then $a, b$ must have same parity. If any one of $c, d$ has same parity as that of $a$, then its sum with $a$ gives an even number, which is impossible. Hence $c, d$ must have same parity, in which case $c+d(\\bmod 10)$ is even, which leads to a contradiction. We conclude that $|S| \\geq 5$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32509, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $n \\geq 3$ be an integer and let $1 < a_{1} \\leq a_{2} \\leq a_{3} \\leq \\cdots \\leq a_{n}$ be $n$ real numbers such that $a_{1} + a_{2} + a_{3} + \\cdots + a_{n} = 2n$. Prove that\n$$\na_{1} a_{2} \\cdots a_{n-1} + a_{1} a_{2} \\cdots a_{n-2} + \\cdots + a_{1} a_{2} + a_{1} + 2 \\leq a_{1} a_{2} \\cdots a_{n}\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nWe use Chebyshev's inequality. Observe\n$$\n\\begin{aligned}\n& n\\left(a_{1} a_{2} \\cdots a_{n-1} + a_{1} a_{2} \\cdots a_{n-2} + \\cdots + a_{1} + 1\\right) \\\\\n& \\quad = \\left(a_{1} a_{2} \\cdots a_{n-1} + a_{1} a_{2} \\cdots a_{n-2} + \\cdots + a_{1} + 1\\right)\\left(\\left(a_{n} - 1\\right) + \\left(a_{n-1} - 1\\right) + \\cdots + \\left(a_{1} - 1\\right)\\right) \\\\\n& \\quad \\leq n\\left(a_{1} a_{2} \\cdots a_{n-1}\\left(a_{n} - 1\\right) + \\cdots + a_{1}\\left(a_{2} - 1\\right) + 1\\left(a_{1} - 1\\right)\\right) \\\\\n& \\quad \\leq n\\left(a_{1} a_{2} \\cdots a_{n} - 1\\right)\n\\end{aligned}\n$$\nIt follows that\n$$\na_{1} a_{2} \\cdots a_{n-1} + a_{1} a_{2} \\cdots a_{n-2} + \\cdots + a_{1} + 1 \\leq a_{1} a_{2} \\cdots a_{n} - 1\n$$\nThis gives the required inequality.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32510, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nA stromino is a $3 \\times 1$ rectangle. Show that a $5 \\times 5$ board divided into twenty-five $1 \\times 1$ squares cannot be covered by 16 strominos such that each stromino covers exactly three unit squares of the board and every unit square is covered by either one or two strominos. (A stromino can be placed either horizontally or vertically on the board.)", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nSuppose on the contrary that it is possible to cover the board with 16 strominos such that each unit square is covered by either one or two strominos. If there are $k$ squares that are covered by exactly one stromino then $2(25-k)+k=16 \\times 3=48$ and hence $k=2$. Thus there are exactly two squares which are covered by only one stromino.\n\nWe colour the board with three colours red, blue, green as follows. The square corresponding to the $i$-th row and the $j$-th column is coloured red if $i+j \\equiv 0 \\pmod{3}$, green if $i+j \\equiv 1 \\pmod{3}$ and blue otherwise. Then there are 9 red squares, 8 green squares and 8 blue squares. Note that each stromino covers exactly one square of each colour. Therefore the two squares that are covered by only one stromino are both red. For each such square $i+j \\equiv 0 \\pmod{3}$ where $i$ and $j$ are its row and column number.\n\nWe now colour the board with a different scheme. We colour the square corresponding to the $i$-th row and the $j$-th column red if $i-j \\equiv 0 \\pmod{3}$, green if $i-j \\equiv 1 \\pmod{3}$ and blue otherwise. Again, there are 9 red squares and hence the two squares covered by only one stromino are both red. For each such square $i-j \\equiv 0 \\pmod{3}$ where $i$ and $j$ are its row and column number. Thus, each of the two squares covered by only one stromino satisfies $i+j \\equiv 0 \\pmod{3}$ and $i-j \\equiv 0 \\pmod{3}$ where $i$ and $j$ are its row and column number. This implies that $i=j=3$. This is a contradiction because there is only one such square.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32511, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nSuppose $r \\geq 2$ is an integer, and let $m_{1}, n_{1}, m_{2}, n_{2}, \\cdots, m_{r}, n_{r}$ be $2 r$ integers such that\n$$\n\\left|m_{i} n_{j}-m_{j} n_{i}\\right|=1\n$$\nfor any two integers $i$ and $j$ satisfying $1 \\leq i3$. We observe that:\n$$\n\\begin{aligned}\n& m_{1} n_{2} n_{3}-m_{2} n_{1} n_{3}= \\pm n_{3} \\\\\n& m_{2} n_{3} n_{1}-m_{3} n_{2} n_{1}= \\pm n_{1} \\\\\n& m_{3} n_{1} n_{2}-m_{1} n_{3} n_{2}= \\pm n_{2}\n\\end{aligned}\n$$\nAdding, we get $\\pm n_{1} \\pm n_{2} \\pm n_{3}=0$; which forces at least one of $n_{1}, n_{2}, n_{3}$ to be even; WLOG let $n_{1}$ be even.\nRepeating the argument for indices $2,3,4$, we deduce that at least one of $n_{2}, n_{3}, n_{4}$ is even; WLOG let $n_{2}$ be even. This leads to a contradiction, since $\\left|m_{1} n_{2}-m_{2} n_{1}\\right|=1$ cannot be even. Hence $r>3$ is not possible, as claimed.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32512, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all pairs of integers $(a, b)$ so that each of the two cubic polynomials\n$$\nx^{3}+a x+b \\text{ and } x^{3}+b x+a\n$$\nhas all the roots to be integers.", "options": [], "answer": "(0, 0)", "solution": "Solution:\nThe only such pair is $(0,0)$, which clearly works. To prove this is the only one, let us prove an auxiliary result first.\n\nLemma If $\\alpha, \\beta, \\gamma$ are reals so that $\\alpha+\\beta+\\gamma=0$ and $|\\alpha|,|\\beta|,|\\gamma| \\geq 2$, then\n$$\n|\\alpha \\beta+\\beta \\gamma+\\gamma \\alpha|<|\\alpha \\beta \\gamma|\n$$\nProof. Some two of these reals have the same sign; WLOG, suppose $\\alpha \\beta>0$. Then $\\gamma=-(\\alpha+\\beta)$, so by substituting this,\n$$\n|\\alpha \\beta+\\beta \\gamma+\\gamma \\alpha|=\\left|\\alpha^{2}+\\beta^{2}+\\alpha \\beta\\right|,\\ |\\alpha \\beta \\gamma|=|\\alpha \\beta(\\alpha+\\beta)|\n$$\nSo we simply need to show $|\\alpha \\beta(\\alpha+\\beta)|>\\left|\\alpha^{2}+\\beta^{2}+\\alpha \\beta\\right|$. Since $|\\alpha| \\geq 2$ and $|\\beta| \\geq 2$, we have\n$$\n\\begin{aligned}\n& |\\alpha \\beta(\\alpha+\\beta)|=|\\alpha||\\beta(\\alpha+\\beta)| \\geq 2|\\beta(\\alpha+\\beta)| \\\\\n& |\\alpha \\beta(\\alpha+\\beta)|=|\\beta||\\alpha(\\alpha+\\beta)| \\geq 2|\\alpha(\\alpha+\\beta)| .\n\\end{aligned}\n$$\nAdding these and using triangle inequality,\n$$\n\\begin{aligned}\n2|\\alpha \\beta(\\alpha+\\beta)| & \\geq 2|\\beta(\\alpha+\\beta)|+2|\\alpha(\\alpha+\\beta)| \\geq 2|\\beta(\\alpha+\\beta)+\\alpha(\\alpha+\\beta)| \\\\\n& \\geq 2\\left(\\alpha^{2}+\\beta^{2}+2 \\alpha \\beta\\right)>2\\left(\\alpha^{2}+\\beta^{2}+\\alpha \\beta\\right) \\\\\n& =2\\left|\\alpha^{2}+\\beta^{2}+\\alpha \\beta\\right|\n\\end{aligned}\n$$\nHere we have used the fact that $\\alpha^{2}+\\beta^{2}+2 \\alpha \\beta=(\\alpha+\\beta)^{2}$ and $\\alpha^{2}+\\beta^{2}+\\alpha \\beta=\\left(\\alpha+\\frac{\\beta}{2}\\right)^{2}+\\frac{3 \\beta^{2}}{4}$ are both nonnegative. This proves our claim.\n\nFor our main problem, suppose the roots of $x^{3}+a x+b$ are the integers $r_{1}, r_{2}, r_{3}$ and the roots of $x^{3}+b x+a$ are the integers $s_{1}, s_{2}, s_{3}$. By Vieta's relations, we have\n$$\n\\begin{gathered}\nr_{1}+r_{2}+r_{3}=0=s_{1}+s_{2}+s_{3} \\\\\nr_{1} r_{2}+r_{2} r_{3}+r_{3} r_{1}=a=-s_{1} s_{2} s_{3} \\\\\ns_{1} s_{2}+s_{2} s_{3}+s_{3} s_{1}=b=-r_{1} r_{2} r_{3}\n\\end{gathered}\n$$\nIf all six of these roots had an absolute value of at least 2, by our lemma, we would have\n$$\n|b|=\\left|s_{1} s_{2}+s_{2} s_{3}+s_{3} s_{1}\\right|<\\left|s_{1} s_{2} s_{3}\\right|=\\left|r_{1} r_{2}+r_{2} r_{3}+r_{3} r_{1}\\right|<\\left|r_{1} r_{2} r_{3}\\right|=|b|\n$$\nwhich is absurd. Thus at least one of them is in the set $\\{0,1,-1\\}$; WLOG, suppose it's $r_{1}$.\n\n1. If $r_{1}=0$, then $r_{2}=-r_{3}$, so $b=0$. Then the roots of $x^{3}+b x+a=x^{3}+a$ are precisely the cube roots of $-a$, and these are all real only for $a=0$. Thus $(a, b)=(0,0)$, which is a solution.\n\n2. If $r_{1}= \\pm 1$, then $\\pm 1 \\pm a+b=0$, so $a$ and $b$ can't both be even. If $a=-s_{1} s_{2} s_{3}$ is odd, then $s_{1}, s_{2}, s_{3}$ are all odd, so $s_{1}+s_{2}+s_{3}$ cannot be zero. Similarly, if $b$ is odd, we get a contradiction.\n\nThe proof is now complete.\nSolution:\nThe only such pair is $(0,0)$, which clearly works. Let us prove this is the only one. In what follows, we use $\\nu_{2}(n)$ to denote the largest integer $k$ so that $2^{k} \\mid n$ for any non-zero $n \\in \\mathbb{Z}$.\n\nIf one of the cubics has 0 as a root, say the first one, then $0^{3}+0 \\cdot a+b=0$, so $b=0$. Then the roots of $x^{3}+b x+a=x^{3}+a$ are precisely the cube roots of $-a$, and these are all real only for $a=0$. Thus $(a, b)=(0,0)$.\n\nSo suppose none of the roots are zero. Take the cubic $x^{3}+a x+b$, and suppose its roots are $x, y, z$. We cannot have $\\nu_{2}(x)=\\nu_{2}(y)=\\nu_{2}(z)$; indeed, if we had $x=2^{k} x_{1}, y=2^{k} y_{1}, z=2^{k} z_{1}$ for odd $x_{1}, y_{1}, z_{1}$, then\n$$\n0=x+y+z=2^{k}\\left(x_{1}+y_{1}+z_{1}\\right)\n$$\nBut $x_{1}+y_{1}+z_{1}$ is odd, and hence non-zero, so this cannot happen.\n\nThus we can assume WLOG that $\\nu_{2}(x)>\\nu_{2}(y)$. Then the third root is $-(x+y)$. Similarly, the three roots of $x^{3}+b x+a$ can be written as $p, q,-(p+q)$ where $\\nu_{2}(p)>\\nu_{2}(q)$. By Vieta's relations,\n$$\n\\begin{gathered}\nx y-x(x+y)-y(x+y)=-\\left(x^{2}+x y+y^{2}\\right)=a=p q(p+q) \\\\\np q-p(p+q)-q(p+q)=-\\left(p^{2}+p q+q^{2}\\right)=b=x y(x+y)\n\\end{gathered}\n$$\nSuppose $x=2^{k} x_{1}$ and $y=2^{\\ell} y_{1}$ for odd $x_{1}, y_{1}$ and $k>\\ell$; in particular $k>0$. Then\n$$\nx y(x+y)=2^{k} x_{1} \\cdot 2^{\\ell} y_{1} \\cdot\\left(2^{k} x_{1}+2^{\\ell} y_{1}\\right)=2^{k+2 \\ell} x_{1} y_{1}\\left(2^{k-\\ell} x_{1}+y_{1}\\right)\n$$\nHere $x_{1} y_{1}\\left(2^{k-\\ell} x_{1}+y_{1}\\right)$ is clearly odd, so $\\nu_{2}(x y(x+y))=k+2 \\ell$.\n\nAlso,\n$$\nx^{2}+x y+y^{2}=2^{2 k} x_{1}^{2}+2^{k} x_{1} \\cdot 2^{\\ell} y_{1}+2^{2 \\ell} y_{1}^{2}=2^{2 \\ell}\\left(2^{2 k-2 \\ell} x_{1}^{2}+2^{k-\\ell} x_{1} y_{1}+y_{1}^{2}\\right)\n$$\nAgain, all the terms in the second factor are even except $y_{1}^{2}$, so the entire factor is odd. This means $\\nu_{2}\\left(x^{2}+x y+y^{2}\\right)=2 \\ell$.\n\nTherefore\n$$\n\\nu_{2}(x y(x+y))>\\nu_{2}\\left(x^{2}+x y+y^{2}\\right)\n$$\nSimilarly, one may show\n$$\n\\nu_{2}(p q(p+q))>\\nu_{2}\\left(p^{2}+p q+q^{2}\\right)\n$$\nBut then\n$$\n\\nu_{2}(b)=\\nu_{2}(x y(x+y))>\\nu_{2}\\left(x^{2}+x y+y^{2}\\right)=\\nu_{2}(p q(p+q))>\\nu_{2}\\left(p^{2}+p q+q^{2}\\right)=\\nu_{2}(b)\n$$\nHere we have used the fact that $\\nu_{2}(n)=\\nu_{2}(-n)$ for any integer $n$. But this is a contradiction, proving our claim.", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 32513, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nBetal marks $2021$ points on the plane such that no three are collinear, and draws all possible line segments joining these. He then chooses any $1011$ of these line segments, and marks their midpoints. Finally, he chooses a line segment whose midpoint is not marked yet, and challenges Vikram to construct its midpoint using only a straightedge. Can Vikram always complete this challenge?\n\nNote: A straightedge is an infinitely long ruler without markings, which can only be used to draw the line joining any two given distinct points.", "options": [], "answer": "Yes", "solution": "Solution:\n\nThe answer is 'yes'. To prove this, we will first prove two lemmas:\n\nLemma 1 Given any two points $A, B$, their midpoint $M$, and any point $C$, Vikram can draw a line parallel to $A B$ through $C$.\n\nProof. If $C$ is on line $A B$ we are already done. If not, extend $B C$ to $X$ as shown, draw $P = A C \\cap X M$, and then draw $D = B P \\cap A X$. We claim $C D$ is the desired line. Indeed, using Ceva's theorem on triangle $A B X$ and the fact $A M = M B$, we see that\n$$\n\\frac{A M}{M B} \\cdot \\frac{B C}{C X} \\cdot \\frac{X D}{D A} = 1 \\Longrightarrow \\frac{X C}{C B} = \\frac{X D}{D A}\n$$\nThis means $C D \\parallel A B$.\n\n![](attached_image_1.png)\n\nLemma 2 Given two non-parallel segments $A B, B C$ and their midpoints $M, N$, Vikram can draw the midpoint of any other segment $X Y$.\n\nProof. Assume first $X Y$ is not parallel to $A B$ or $B C$. Using lemma 1, draw lines $\\ell_1$ and $\\ell_2$ through $X$ parallel to $A B$ and $B C$ respectively, and similarly draw $m_1$ and $m_2$ through $Y$ parallel to $A B$ and $B C$ respectively. If we draw $P = \\ell_1 \\cap m_2$ and $Q = \\ell_2 \\cap m_1$, then $X P Y Q$ is a parallelogram, so intersecting $P Q$ and $X Y$ gives the midpoint of $X Y$.\n\nAs for the remaining case, one can draw $A C$ and construct the midpoint $P$ of $A C$ by the construction described above. Since $X Y$ can be parallel to at most one of the sides $A B, B C$ and $A C$, we can pick the two non-parallel sides, and use the above construction to draw the midpoint of $X Y$.\n\nNow for the main problem, note that if no two of the $1011$ chosen segments share an endpoint, then we have at least $2 \\cdot 1011 = 2022$ distinct endpoints, a contradiction. Thus there must be two segments $A B$ and $B C$ which have their midpoints marked. Since no three of the chosen $2021$ points were collinear, $A B$ and $B C$ are not parallel, so using lemma 2, Vikram can construct the midpoint of any other segment, in particular, the segment chosen by Betal.\nSolution:\n\nAs in the previous solution, note that there exist $A B$ and $A C$ whose midpoints $C^{\\prime}$ and $B^{\\prime}$ are marked. Using the straightedge, Vikram can draw the two medians $A C^{\\prime}$ and $A B^{\\prime}$ and obtain their intersection, the centroid $G$ of $\\triangle A B C$. Now intersecting $A G$ with $B C$ gives $A^{\\prime}$, the midpoint of $B C$.\n\nLemma Given a point $P$ not on $A B, A C$, Vikram can draw the midpoint of $P A$.\n\nProof. If $P B \\parallel A C$ and $P C \\parallel A B$, then $P B A C$ is a parallelogram, in which case $A^{\\prime}$ constructed above is the midpoint of $P A$. Without loss of generality, we may assume $P B \\nparallel A C$.\n\n![](attached_image_2.png)\n\nUsing the straightedge, one can mark the points $D = P B \\cap A C$ and $P B \\cap A^{\\prime} C^{\\prime} = D^{\\prime}$. Since $C A \\parallel A^{\\prime} C^{\\prime}$, we have\n$$\n\\frac{B D^{\\prime}}{D^{\\prime} D} = \\frac{B C^{\\prime}}{C^{\\prime} A} = 1\n$$\nso $D^{\\prime}$ is the midpoint of $B D$. Now in $\\triangle A B D$, two midpoints $C^{\\prime}$ and $D^{\\prime}$ are known, so the midpoint $Q^{\\prime}$ of $A D$ can be constructed using the centroid construction outlined before. Let $P^{\\prime} = C^{\\prime} Q^{\\prime} \\cap P A$; this exists as $C^{\\prime} Q^{\\prime} \\parallel B P \\nparallel A P$. As before, $C^{\\prime} P^{\\prime} \\parallel B P$, so\n$$\n\\frac{A P^{\\prime}}{P^{\\prime} P} = \\frac{A C^{\\prime}}{C^{\\prime} B} = 1\n$$\nwhich means $P^{\\prime}$ is the desired midpoint of $P A$.\n\nNow suppose we need to find the midpoint of $P Q$. If $P, Q$ are different points from $A$, then one can draw the midpoints of $A P$ and $A Q$ using the lemma. Then by using the centroid of $\\triangle A P Q$, one can find the midpoint of $P Q$ as we did for $B C$. If $P$ or $Q$ is $A$, the above lemma immediately yields the required midpoint.", "topic": "Discrete Mathematics", "subtopic": "Combinatorics" }, { "id": 32514, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nA Magician and a Detective play a game. The Magician lays down cards numbered from $1$ to $52$ face-down on a table. On each move, the Detective can point to two cards and inquire if the numbers on them are consecutive. The Magician replies truthfully. After a finite number of moves the Detective points to two cards. She wins if the numbers on these two cards are consecutive, and loses otherwise.\n\nProve that the Detective can guarantee a win if and only if she is allowed to ask at least $50$ questions.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nStrategy for the Detective: Pick a card $A$ and compare against all others except one. If he ever gets a \"Yes\", that pair works; else the remaining card is consecutive with $A$. This process takes at most $50$ queries.\n\nStrategy for the Magician: We show that it is not always possible to obtain a \"Yes\" in $50$ turns, hence showing that $49$ turns are not enough to figure out a consecutive pair. It is enough to conjure a labelling of cards for which denying all $50$ inquiries is valid.\n\nReplace $52$ by any $N>3$. Think of the cards as vertices of a complete graph $K_{N}$. Delete all edges joining vertices which correspond to pairs of cards the Detective inquired about. We will show that deleting any $N-2$ edges of $K_{N}$ still leaves a graph that admits a path containing all the vertices. Labelling all cards along this path as $1$ to $N$ would finish. Several proofs of this claim are possible. We present three of them.\n\n## Proof 1\n\nFor any two vertices $a$ and $b$, since $\\operatorname{deg} a + \\operatorname{deg} b \\geq 2(N-1)-(N-2)=N$, they share a common neighbour. Hence the graph is connected.\n\nPick the longest path $\\mathcal{P}: u=u_{0} \\rightarrow u_{1} \\rightarrow \\cdots \\rightarrow u_{k}=v$. All neighbours of $u$ and $v$ must remain within the path, else we could get a longer path. Let $u$ have $x$ neighbours $\\{u_{i_{1}}, u_{i_{2}}, \\ldots, u_{i_{x}}\\}$ with $1=i_{1}2$ so we see that $k \\in\\{N-2, N-1\\}$.\n\nCase 1. $k=N-1$. Pick the leftover $w$ outside $\\mathcal{C}$. Not all edges from $w$ to the cycle are missing (since only $N-2$ are missing in total), so follow an edge from $w$ to $\\mathcal{C}$ and continue along $\\mathcal{C}$ to get a path of length $N-1$.\n\nCase 2. $k=N-2$. Pick the leftover $a, b$ outside $\\mathcal{C}$. It is clear that both of them have edges to the cycle and $ab$ is also an edge (since $k(N-k)=2(N-2)$ in this case). So starting at $a$, going to $b$, to some vertex of $\\mathcal{C}$ and following along $\\mathcal{C}$ gives us a path of length $N-1$.\n\nThe proof is complete.\n\n## Proof 3\n\nThe idea is to prove the stronger claim by induction on $N \\geq 3$: a graph on $N$ vertices with $\\binom{N-1}{2}+2$ edges has a cycle of length $N$. Deleting the extra edge will give a path of length $N-1$ through all the vertices.\n\nThe base case $N=3$ is trivial. Suppose it holds for all $k \\leq N$, we prove it for $N+1$. Since $\\frac{2\\left(2+\\binom{N}{2}\\right)}{N+1}>N-2$ we see that some vertex $v$ has degree either $N-1$ or $N$.\n\nCase 1. If degree of $v$ is $N-1$. Then we have an edge $e=uv$ missing among all the edges through $v$. Delete $v$ along with all the edges through it in the graph. The induced graph has a cycle of length $N$. Pick two consecutive vertices that are not $u$, and append $v$ between them.\n\nCase 2. If degree of $v$ is $N$. Delete $v$ along with all its edges. Add an arbitrarily chosen extra edge to the graph so obtained. By induction hypothesis, this resulting graph has a cycle of length $N$. If removing the extra edge does not disrupt the cycle, append $v$ anywhere between two consecutive vertices. If it does break the cycle, use $v$ to connect the vertices it joined.\n\nThe induction is complete.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32515, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nIn a convex quadrilateral $ABCD$, $\\angle ABD = 30^{\\circ}$, $\\angle BCA = 75^{\\circ}$, $\\angle ACD = 25^{\\circ}$ and $CD = CB$. Extend $CB$ to meet the circumcircle of triangle $DAC$ at $E$. Prove that $CE = BD$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nFirst we show that $\\angle DEC = 30^{\\circ}$. Choose a point $F$ on $AB$ such that $CF = CB$. Join $FC$ and $FD$. Observe that $\\angle DCB = 75^{\\circ} + 25^{\\circ} = 100^{\\circ}$. Since $CD = CB$, we have $\\angle CDB = \\angle CBD = 40^{\\circ}$. Therefore $\\angle CBF = 40^{\\circ} + 30^{\\circ} = 70^{\\circ}$. This gives $\\angle CFB = 70^{\\circ}$.\nSince $CD = CB = CF$, we have the isosceles triangle $CDF$. But $\\angle BCF = 40^{\\circ}$. Hence $\\angle FCD = 60^{\\circ}$. Therefore we have an equilateral triangle $CDF$. This means $FD = FC = CD$ and $\\angle DFC = 60^{\\circ}$.\n\n![](attached_image_1.png)\n\nObserve that $\\angle AFC = 110^{\\circ}$ and $\\angle FCA = 35^{\\circ}$. Hence $\\angle FAC = 35^{\\circ}$. This means $FA = FC = FD$. Thus $F$ is the circumcentre of $\\triangle ADC$. This implies that\n$$\n\\angle CAD = \\frac{\\angle CFD}{2} = 30^{\\circ}\n$$\nTherefore $\\angle DEC = \\angle DAC = 30^{\\circ}$. Now concentrate on triangle $DCE$.\nConstruct an equilateral triangle $ECG$ with $CE$ as base, on the side of $B$. Join $GD$.\n\n![](attached_image_2.png)\n\nWe have $\\angle CGE = \\angle GCE = \\angle CEG = 60^{\\circ}$ and $CE = EG = GC$. Since $\\angle CED = 30^{\\circ}$, we get $\\angle GED = 30^{\\circ}$. Thus $ED$ is the angle bisector of the isosceles triangle $GEC$. This implies that $ED$ is also the perpendicular bisector of $GC$. Thus $D$ is on the perpendicular bisector of $GC$. Therefore $DC = DG$ and hence $\\angle DGC = \\angle DCG$.\nBut $\\angle DCG = 100^{\\circ} - 60^{\\circ} = 40^{\\circ}$. This implies that $\\angle DGC = 40^{\\circ}$ and hence $\\angle CDG = 100^{\\circ}$.\nConsider the quadrilateral $GBCD$. We have $DG = DC = CB$, $\\angle GDC = 100^{\\circ} = \\angle DCB$. It is an isosceles trapezium. (or we can show that $\\triangle GDC \\cong \\triangle BCD$.) Therefore $DB = GC$. But $GC = CE$. Thus we get $DB = CE$.\n\n\nAlternate Solution\nAs in the previous solution, one shows that $F$ is the circumcenter of $\\triangle ADC$. Since $E$ lies on this circumcircle, this means $FE$ is equal to all of the sides $FA, FD, FC$ and thus also to $CD$ and $CB$. Now $CDB$ and $FCE$ are both isosceles triangles with base angles $40^{\\circ}$, and they have $CD = FC$, so they are in fact congruent. This directly implies $CE = BD$, as required.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32516, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $\\mathbb{R}[x]$ be the set of all polynomials with real coefficients, and let $\\operatorname{deg} P$ denote the degree of a nonzero polynomial $P$. Find all functions $f: \\mathbb{R}[x] \\rightarrow \\mathbb{R}[x]$ satisfying the following conditions:\n- $f$ maps the zero polynomial to itself,\n- for any non-zero polynomial $P \\in \\mathbb{R}[x]$, $\\operatorname{deg} f(P) \\leq 1+\\operatorname{deg} P$, and\n- for any two polynomials $P, Q \\in \\mathbb{R}[x]$, the polynomials $P-f(Q)$ and $Q-f(P)$ have the same set of real roots.", "options": [], "answer": "f(p) = p for all polynomials p, or f(p) = -p for all polynomials p", "solution": "Solution:\nWe have $f(p)=p$ for all $p \\in \\mathbb{R}[x]$, or $f(p)=-p$ for all $p \\in \\mathbb{R}[x]$. These clearly satisfy the given conditions.\n\nProof\nClaim 1 For all $p \\in \\mathbb{R}[x], f(f(p))=p$.\nProof. Using condition 3 on the polynomials $p$ and $f(p)$, we see that $p-f(f(p))$ has the same set of real roots as $f(p)-f(p)=0$, which is $\\mathbb{R}$. Therefore $p-f(f(p))$ is identically zero.\n\nNote that this implies $f$ is bijective. In what follows, $p \\sim q$ will mean that $p$ and $q$ have the same set of real roots. Note that putting $f(q)$ for $q$ in condition 2 gives $p-q \\sim f(p)-f(q)$ for all $p, q$ (call this statement $(\\star)$ ). In particular, putting $q=0$ here, $p \\sim f(p)$ for all $p$ (call this $(\\star\\star)$).\n\nClaim 2 For all non-zero $p \\in \\mathbb{R}[x]$, $\\operatorname{deg} p-1 \\leq \\operatorname{deg} f(p) \\leq \\operatorname{deg} p+1$.\nProof. The right inequality is simply condition 2. Now using condition 2 on the polynomial $f(p)$, we see that $\\operatorname{deg} f(f(p)) \\leq \\operatorname{deg} f(p)+1$ which gives $\\operatorname{deg} f(p) \\geq \\operatorname{deg} p-1$ because of claim 1.\n\nClaim 3 For all $p \\in \\mathbb{R}[x], \\operatorname{deg} f(p)=\\operatorname{deg} p$.\nProof. Note that nonzero constant polynomials have no root, so by $(\\star\\star)$, their image must have no root. This is impossible if that image has degree 1; so by condition 2, the image has degree 0, i.e., is a constant polynomial. First consider the case when $\\operatorname{deg} p$ is even; assume for now the leading coefficient of $p$ is positive. That means $p(x) \\rightarrow \\infty$ for $x \\rightarrow \\pm \\infty$, so it has a global minimum, say $C$. Then the polynomial $p+k$ ($k>C$) has no real roots. Using $(\\star)$ on $p$ and the constant polynomial $-k$, we see that $f(p)-f(-k)$ has no roots. But this is impossible if $\\operatorname{deg} f(p)$ is odd (since $f(-k)$ is a constant), so by claim 2, we must have $\\operatorname{deg} f(p)=\\operatorname{deg} p$. A similar argument holds if $p$ has negative leading coefficient.\n\nNow if $\\operatorname{deg} p$ is odd, then $\\operatorname{deg} f(p)$ cannot be even, otherwise $q=f(p)$ would be an even degree polynomial whose image $f(q)=f(f(p))=p$ has odd degree, contradicting the last paragraph. Thus $\\operatorname{deg} f(p)$ is odd, and using claim 2, we infer that $\\operatorname{deg} f(p)=\\operatorname{deg} p$.\n\nWe call a polynomial $p$ ninth-grade if all $\\operatorname{deg} p$ roots of $p$ are real and distinct. Clearly for any ninth-grade $p$, $p$ and $f(p)$ have the roots and same degree, so $f(p)=c_{p} p$ for some non-zero $c_{p} \\in \\mathbb{R}$.\n\nClaim 4 Given any non-constant $q \\in \\mathbb{R}[x]$, we can choose $r$ with degree bigger than $q$ so that both $r$ and $q-r$ are ninth-grade.\nProof. Assume that all real roots of $q$ are inside the interval $[a, b]$. Now choose a number $n$ which has the same parity as $\\operatorname{deg} q$ and is bigger than $\\operatorname{deg} q$, and choose numbers $c_{1}=a< c_{2}<\\cdots\\max _{x \\in[a, b]}|q(x)|$ for all $i$. Then $p+q$ has degree $n$, and has alternating signs at $a-\\epsilon, x_{1}, \\cdots, x_{n}, b+\\epsilon$ for $\\epsilon>0$, so it has exactly $n$ distinct roots. Now it is enough to take $r=-p$.\n\nClaim 5 For any $q \\in \\mathbb{R}[x], f(q)=c_{q} q$ for some non-zero real $c_{q}$.\nProof. We have already proved this for ninth-grade polynomials. Take ninth-grade $r$ so that $q-r$ is ninth grade and $n=\\operatorname{deg}(q-r)>\\operatorname{deg} q$. Then $q-r \\sim f(q)-f(r)=f(q)-c_{r} r$. Since $q-r$ is ninth-grade and has the same degree as $f(q)-c_{r} r$, $q-r=c\\left(f(q)-c_{r} r\\right)=c f(q)-c_{1} r$ for non-zero reals $c, c_{1}$. Comparing the leading term (which belongs to $r$) on both sides, $c_{1}=1$, therefore $q=c f(q) \\Longrightarrow f(q)=c_{q} q$.\n\nClaim 6 For any $p, q \\in \\mathbb{R}[x], c_{p}=c_{q}$.\nProof. We note that for any two polynomials $p, q$ if $p-q$ has a real root which is not a root of $p$, then $c_{p}=c_{q}$. Indeed, if $s$ is a root of $p-q$ (meaning $p(s)=q(s) \\neq 0$), then it's also a root of $f(p)-f(q)=c_{p} p-c_{q} q$, so that $c_{p} p(s)=c_{q} q(s) \\Longrightarrow c_{p}=c_{q}$.\n\nNow for any two $p, q$, choose odd $N$ such that $N>\\max \\{\\operatorname{deg} p, \\operatorname{deg} q\\}$. Then the polynomial $r=x^{N}$ is such that $r-p$ and $r-q$ both have real roots, so $c_{q}=c_{r}=c_{p}$.\n\nClaim 6 clearly means there is $c \\in \\mathbb{R}$ so that $f(p)=c p$ for all $p \\in \\mathbb{R}[x]$. Using the fact $f(f(p))=p$, we see that the only possibilities are $c=1$ or $c=-1$, completing the proof.", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 32517, "subject": "Mathematics (Multi-modal)", "question": "Let $k$ be a positive integer. A sequence of integers $\\langle a_i \\rangle_{i=1}^\\infty$ is called $k$-pop if the following holds: for every $n \\in \\mathbb{N}$, $a_n$ is equal to the number of distinct elements in the set $\\{a_1, \\dots, a_{n+k}\\}$. Determine, as a function of $k$, how many $k$-pop sequences there are.", "options": [], "answer": "2^k", "solution": "The answer is $2^k$. Before we prove this, we will obtain a characterization of $k$-pop sequences. To that end, note that in a $k$-pop sequence, since the set $\\{a_1, \\dots, a_{n+k+1}\\}$ has either the same number of distinct elements as $\\{a_1, \\dots, a_{n+k}\\}$ or precisely one more, it follows that $a_{n+1}$ is either $a_n$ or $a_n+1$ for each $n$. A sequence $\\langle b_n \\rangle_{n=1}^\\infty$ with the property that $b_{n+1} \\in \\{b_n, b_n+1\\}$ for each $n$ will be called a step-sequence, and an index $n$ such that $b_{n+1} = b_n+1$ will be called a step. Now we characterize $k$-pop sequences:\n**Lemma** A sequence $\\langle a_n \\rangle_{n=1}^\\infty$ is $k$-pop if and only if it is a step-sequence and the following hold:\n1. for each $n$, the index $n$ is a step if and only if $n + k$ is, and\n2. the number of steps among $\\{1, \\dots, k\\}$ is equal to $a_1 - 1$.\n*Proof.* Assume $\\langle a_n \\rangle_{n=1}^\\infty$ is $k$-pop. As seen before, it is a step-sequence. Now if $n$ is a step if and only if the number of distinct elements in $\\{a_1, \\dots, a_{n+k+1}\\}$ is one more than that in $\\{a_1, \\dots, a_{n+k}\\}$, which is possible if and only $a_{n+k+1}$ is not an element of $\\{a_1, \\dots, a_{n+k}\\}$. Since $\\langle a_n \\rangle_{n=1}^\\infty$ is a step-sequence, this happens if and only if $a_{n+k+1} = a_{n+k} + 1$, i.e., $n+k$ is a step. Now $a_1$ is equal to the number of distinct elements in $\\{a_1, \\dots, a_{k+1}\\}$, which is obviously one more than the number of steps in $\\{1, \\dots, k\\}$. This proves one direction of the implication.\nNow assume $\\langle a_n \\rangle_{n=1}^\\infty$ is a step-sequence satisfying the two conditions. We will show by induction that $a_n$ is equal to the number of distinct elements in the set $\\{a_1, \\dots, a_{n+k}\\}$.\nThe base case $n=1$ follows from condition (2): since it is a step-sequence, the number of distinct elements in $\\{a_1, \\dots, a_{k+1}\\}$ is one more than the number of steps in $\\{1, \\dots, k\\}$, and thus equal to $a_1$. Now for a general $m=n+1$, note that the number of distinct elements in $\\{a_1, \\dots, a_{n+k+1}\\}$ is equal to the number of distinct elements in $\\{a_1, \\dots, a_{n+k}\\}$ if $a_{n+k+1} = a_{n+k}$, and one more than that otherwise. In the first case, $n+k$ is not a step, therefore, neither is $n$, so $a_{n+1} = a_n$, which is equal to the number of distinct elements in either of those sets. The other case is similar.\nThis shows our sequence is $k$-pop. $\\square$\n\nThus to determine a $k$-pop sequence, it suffices to determine which of the indices in $\\{1, \\dots, k\\}$ are steps: by condition (1), this determines the locations of all steps, and by condition (2), this fixes $a_1$. Once these are fixed, $a_n$ can be determined inductively. Conversely, any such selection of indices gives rise to a step-sequence satisfying the conditions in the lemma by the aforementioned recipe, and thus a $k$-pop sequence. There are exactly $2^k$ ways to choose the steps, which is therefore the answer. $\\square$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32518, "subject": "Mathematics (Multi-modal)", "question": "Let $r > 0$ be a real number. All the interior points of the disc $D(r)$ of radius $r$ are colored with one of two colors, red or blue.\n1. If $r > \\frac{\\pi}{\\sqrt{3}}$, show that we can find two points $A$ and $B$ in the interior of the disc such that the distance $AB = \\pi$ and $A$ and $B$ have the same color.\n2. Does the conclusion in (a) hold if $r > \\frac{\\pi}{2}$?", "options": [], "answer": "Yes", "solution": "We will show that the conclusion holds when $r > \\frac{\\pi}{2}$.\n\nWe begin with a circle $C(r)$ with center $C$ and radius $r > \\frac{\\pi}{2}$. Now, a regular polygon $P$ can be inscribed in the circle to have any odd number of sides $2k + 1$. Because the number of sides is odd, each vertex $A$ is opposite a pair of vertices which determine the opposite side $YZ$, and it is such longest diagonals $AY$ and $AZ$ that we are interested in. The greater $2k + 1$ is taken, the smaller $YZ$ will get; by taking $k$ large enough, we can make $YZ$ so small that $AY$ will be so close to being a diameter (of length $2r$ which is bigger than $\\pi$) that the length of $AY$ will also exceed $\\pi$. Suppose, then, that $k$ is chosen big enough to make $AY > \\pi$.\n\nClearly all such longest diagonals $AY$ are tangents to a small circle $C(s)$ in the center of $C(r)$.\n\n![](attached_image_1.png)\n\nFigure 1:\nNow, it is vital to our solution that the length $AY$ of these tangents be exactly $\\pi$ units. Therefore,\n\nlet the figure be shrunk toward the center $C$ in the ratio $\\pi : AY$; this will carry everything into the interior of the given circle, implying that all the image points will be colored, whereas the boundary of $C(r)$ was not colored to begin with. For simplicity, let us keep the same names for the images under this transformation, bearing in mind that now the length of every diagonal like $AY$ is $\\pi$.\n\nNow a tangent to $C(s)$ from a vertex of $P$ meets the circumcircle in one of the two opposite vertices of $P$. Consequently, the sequence of tangents $AY, YA_1, A_1Y_1, Y_1A_2, \\dots$ carries one around $P$ from $A$ through the vertices $A, Y, A_1, Y_1, A_2, \\dots$ and after $2k$ such steps, we reach the opposite vertex $Z$. Clearly, every adjacent pair of vertices in the above list of vertices are at a distance $\\pi$ units and starting with $A$ and ending with $Z$, we traverse through $2k$ tangents. Thus if $A$ is red, then $Y$ is blue, $A_1$ is red, $Y_1$ is blue and so on. This forces $Z$ to be colored red and both ends of the tangent $AZ$ have the same color. We are done. $\\square$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32519, "subject": "Mathematics (Multi-modal)", "question": "Let $N \\ge 3$ be an integer. In the country of Sibyl, there are $N^2$ towns arranged as the vertices of an $N \\times N$ grid, with each pair of towns corresponding to an adjacent pair of vertices on the grid connected by a road. Several automated drones are each given the instruction to traverse a rectangular path starting and ending at the same town, following the roads of the country. It turned out that each road was traversed at least once by some drone. Determine the minimum number of drones that must be operating.", "options": [], "answer": "Minimum number of drones is N if N is odd, and N−1 if N is even.", "solution": "**Answer:** The desired minimum is $N$ if $N$ is odd, and $(N-1)$ if $N$ is even.\nWe say a drone covers a vertex if it takes a $90^\\circ$ turn at that vertex.\n\n**Construction:** Let $v_1, \\dots, v_N$ denote the $N$ vertical lines and $h_1, \\dots, h_N$ denote the $N$ horizontal lines of the grid.\nFor $N = 2n$, make one drone go along the outer boundary of the grid, and let $(n-1)$ of the drones traverse the rectangles enclosed by $v_{2i}, v_{2i+1}, h_1, h_N$ for all $1 \\le i \\le n-1$, and let $(n-1)$ of the drones traverse the rectangles enclosed by $h_{2i}, h_{2i+1}, v_1, v_N$ for all $1 \\le i \\le n-1$. These $N-1$ drones cover all roads in Sibyl.\nFor $N = 2n + 1$, again make one drone go across the boundary, and let $n$ of the drones traverse the rectangles enclosed by $v_{2i}, v_{2i+1}, h_1, h_N$ for all $1 \\le i \\le n$, and let $n$ of the drones traverse the rectangles enclosed by $h_{2i}, h_{2i+1}, v_1, v_N$ for all $1 \\le i \\le n$. One notes that these $N$ drones cover all roads in Sibyl.\n\n**Estimate:** Suppose $k$ drones suffice. We will first show for all $N$ that $k \\ge N-1$. Fix the top-left corner $A$ of the grid and call any drone that passes through this town to be *cornered*. Suppose $C$ is the set of drones that are cornered. Let $\\mathcal{L}_h, \\mathcal{L}_v$ denote the set of drones (not in $C$) that cross a street in $h_1, v_1$ respectively. Note that any drone that covers some vertex in $h_1$ is either in $C$ or $\\mathcal{L}_h$ and any drone in $\\mathcal{L}_h$ covers two vertices in $h_1$ and any drone in $C$ covers one vertex in $h_1$ other than $A$. Since each of the $N$ vertices on the top edge needs to be covered, $1 + |C| + 2|\\mathcal{L}_h| \\ge N$. Similarly, $1 + |C| + 2|\\mathcal{L}_v| \\ge N$. Adding, we get $2 + 2|C| + 2|\\mathcal{L}_h| + 2|\\mathcal{L}_v| \\ge 2N$, hence $k \\ge |C| + |\\mathcal{L}_h| + |\\mathcal{L}_v| \\ge N-1$, proving the claim.\n\nNow suppose $N$ is odd. If possible, suppose $k = N-1$. Following the notation in the last part, we see that equality must hold: $1 + |C| + 2|\\mathcal{L}_h| = N$ and $1 + |C| + 2|\\mathcal{L}_v| = N$. Further, every drone must be in one of these three sets, and no point on the top edge apart from the top-left corner can be covered by two drones (else the bounds would not be tight).\n\nCall a drone a *dominator* if it passes through both $h_1, h_N$ (a vertical dominator) or both $v_1, v_N$ (a horizontal dominator). Since every drone passes through either $h_1$ or $v_1$, and this reasoning applies any other corner, this implies that every drone must be a dominator. Indeed, if some drone is not a dominator, one can pick one of $h_1, h_N$ and one of $v_1, v_N$ so that it doesn't pass through any of the picked lines; and applying the above reasoning to the corner at the intersection of these two leads to a contradiction.\n\nNow if there are two horizontal dominators through $A$, they both cover the top-right corner, contradiction. Similarly, there can be at most one vertical dominator through $A$. But $|C|$ is at least one (some drone needs to cover $A$), and $|C| = 1$ leads to a contradiction modulo $2$ in $1 + |C| + 2|\\mathcal{L}_h| = N$, so $|C|$ is exactly $2$, and there is a horizontal and a vertical dominator through $A$.\n\nBy a similar reasoning, there is a vertical and a horizontal dominator through the bottom-right corner, $D$. But the horizontal dominator through $A$ and the vertical dominator through $D$ both cover the top-right corner point. We noted before that no point on the top edge apart from the top-left corner can be covered by two drones, so this is a contradiction, showing $k \\ge N$. $\\square$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32520, "subject": "Mathematics (Multi-modal)", "question": "In the fictional country of Mahishmati, there are $50$ cities, including a capital city. Some pairs of cities are connected by two-way flights. Given a city $A$, an ordered list of cities $C_1, \\dots, C_{50}$ is called an *antitour* from $A$ if\n* every city (including $A$) appears in the list exactly once, and\n* for each $k \\in \\{1, 2, \\dots, 50\\}$, it is impossible to go from $A$ to $C_k$ by a sequence of exactly $k$ (not necessarily distinct) flights.\n\nBaahubali notices that there is an antitour from $A$ for any city $A$. Further, he can take a sequence of flights, starting from the capital and passing through each city exactly once. Find the least possible total number of antitours from the capital city.", "options": [], "answer": "(25!)^2", "solution": "Rephrase in terms of graph theory:\nLet $G$ be a connected graph on $50$ vertices. Given a vertex $A$, a permutation $(V_1, \\dots, V_{50})$ of the vertices of $G$ is called an antitour from $A$ if the following condition holds for every integer $k$ with $1 \\le k \\le 50$: there is no walk of length $k$ from $A$ to $V_k$. Given that every vertex in $G$ admits at least one antitour, and that $G$ has a Hamiltonian path, find the least possible number of antitours from some vertex of $G$.\nLet $N = 50$; we claim that the answer is $((N/2)!)^2$.\n\n**Bound.** Observe that if $V$ can be reached by a walk of length $d$, then it can be reached by a walk of length $d + 2k$ for any non-negative integer $k$, simply by going to $V$ and then going back-and-forth on some adjacent edge $k$ times.\n\n**Claim 1** The graph is bipartite.\n*Proof.* Indeed, suppose there is some odd cycle $A_0, A_1, \\dots, A_{2i}$. Consider an antitour $C_1, \\dots, C_N$ from $A_0$. Note that for $1 \\le k \\le 2i$, $A_k$ can be reached from $A_0$ by $k$ moves (and thus in $k+2j$ moves) and also in $2i+1-k$ (and thus in $2i+1-k+2j$ moves). Now any integer $n \\ge 2i$ can be written as either $k+2j$ (if $n \\equiv k \\pmod 2$) or as $2i+1-k+2j$ (if $n \\not\\equiv k \\pmod 2$), so none of the $A_k$'s can be $C_n$ for $n \\ge 2i$. Thus the vertices $A_1, \\dots, A_{2i}$ must be $C_1, \\dots, C_{2i-1}$ in some order, which is impossible. $\\square$\n\n*Proof.* Alternately, one can also argue the initial part as is and then since the distance of any vertex not in the cycle is at most $N - (2i+1)$. Now, from any vertex $A_j$ in the cycle, consider an anti-tour. Let the $N$th in this anti-tour be $V_j$. Now, the distance of $V_j$ to the cycle is at most $N - (2i+1)$ and there is a path of length $\\le 2i+1$ from $A_j$ to the vertex to which $V_j$ has the shortest path in the cycle with odd or even number of steps. Thus, there is an even and an odd path from $A_j$ to $V_j$ in $\\le N$ moves. This is clearly a contradiction! $\\square$\n\nSince the Hamiltonian path must contain an equal number of vertices from each part, the parts have $N/2$ vertices each. If the capital is in part $A = \\{A_1, \\dots, A_{N/2}\\}$, and the other part is $B = \\{B_1, \\dots, B_{N/2}\\}$, then one can form an antitour by putting the $A_i$'s in the odd positions in any order and $B_i$'s in the even positions in any order. There are $((N/2)!)^2$ ways to do this, which proves our bound.\n\n**Construction.** Consider the complete bipartite graph $K_{N/2,N/2}$, with parts $\\{A_1, \\dots, A_{N/2}\\}$ and $\\{B_1, \\dots, B_{N/2}\\}$. Any antitour from $A_1$ must have all the $B_i$'s in the even positions since any $B_i$ is reachable in $1$ move (and thus in any odd number of moves). Thus there are at most $((N/2)!)^2$ antitours for this. $\\square$\n\nWe can have alternate constructions. For example: Let $A_1, \\dots, A_{50}$ be the Hamiltonian path, with $A_1$ capital. Add the edges $A_1A_4, A_1A_6, \\dots, A_1A_{50}$ and $A_2A_5, A_2A_7, \\dots, A_2A_{49}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32521, "subject": "Mathematics (Multi-modal)", "question": "Let $S$ be a finite set of positive integers. Assume that there are precisely 2023 ordered pairs $(x, y)$ in $S \\times S$ so that the product $xy$ is a perfect square. Prove that one can find at least four distinct elements in $S$ so that none of their pairwise products is a perfect square.\n\n*Note:* As an example, if $S = \\{1, 2, 4\\}$, there are exactly five such ordered pairs: $(1, 1)$, $(1, 4)$, $(2, 2)$, $(4, 1)$, and $(4, 4)$.", "options": [], "answer": "Detailed solution", "solution": "Let $S$ be a finite set of positive integers such that there are exactly 2023 ordered pairs $(x, y) \\in S \\times S$ with $xy$ a perfect square.\n\nLet us analyze the structure of $S$.\n\nFor any $x, y \\in S$, $xy$ is a perfect square if and only if the product of their squarefree parts is a square. For each $x \\in S$, write $x = d_x^2 s_x$, where $s_x$ is squarefree. Then $xy$ is a perfect square if and only if $s_x s_y$ is a square, i.e., $s_x = s_y$.\n\nThus, for each $t$ (squarefree), let $S_t = \\{x \\in S : s_x = t\\}$. For $x \\in S_t$ and $y \\in S_t$, $xy$ is a perfect square. For $x \\in S_t$, $y \\in S_{t'}$ with $t \\neq t'$, $xy$ is not a perfect square.\n\nLet $a_i = |S_{t_i}|$ for the distinct squarefree parts $t_1, \\dots, t_k$ that appear in $S$. Then the total number of ordered pairs $(x, y)$ with $xy$ a perfect square is $\\sum_{i=1}^k a_i^2 = 2023$.\n\nWe are to show that $S$ contains at least four distinct elements such that none of their pairwise products is a perfect square. That is, we need to find four elements with distinct squarefree parts.\n\nSuppose, for contradiction, that there do not exist four such elements. Then the number of distinct squarefree parts $k \\leq 3$.\n\nLet us consider all possible values of $k$.\n\nCase 1: $k = 1$.\nThen $S$ consists of numbers with the same squarefree part, so $a_1 = n$, $n^2 = 2023$, but $2023$ is not a perfect square. Contradiction.\n\nCase 2: $k = 2$.\nThen $a_1 + a_2 = n$, $a_1^2 + a_2^2 = 2023$.\nTry all possible integer solutions:\nLet $a_1 = m$, $a_2 = n - m$.\nThen $m^2 + (n - m)^2 = 2023$.\nBut $m^2 + (n - m)^2 = 2m^2 - 2nm + n^2 = 2023$.\nBut $n = a_1 + a_2 \\leq \\sqrt{2023} + \\sqrt{2023} < 90$.\nTry small values:\nLet $a_1 = a_2 = t$, then $2t^2 = 2023 \\implies t^2 = 1011.5$, not integer.\nTry $a_1 = t$, $a_2 = t+1$:\n$t^2 + (t+1)^2 = 2t^2 + 2t + 1 = 2023 \\implies 2t^2 + 2t - 2022 = 0 \\implies t^2 + t - 1011 = 0$.\nDiscriminant: $1 + 4044 = 4045$, not a perfect square.\nTry $a_1 = t$, $a_2 = t+2$:\n$t^2 + (t+2)^2 = t^2 + t^2 + 4t + 4 = 2t^2 + 4t + 4 = 2023 \\implies 2t^2 + 4t - 2019 = 0$.\n$t^2 + 2t - 1009.5 = 0$.\nNo integer solution.\nTry $a_1 = 44$, $a_2 = 1$: $44^2 + 1^2 = 1936 + 1 = 1937$.\nTry $a_1 = 45$, $a_2 = 2$: $2025 + 4 = 2029$.\nTry $a_1 = 44$, $a_2 = 5$: $1936 + 25 = 1961$.\nTry $a_1 = 45$, $a_2 = 7$: $2025 + 49 = 2074$.\nTry $a_1 = 40$, $a_2 = 13$: $1600 + 169 = 1769$.\nTry $a_1 = 42$, $a_2 = 17$: $1764 + 289 = 2053$.\nTry $a_1 = 43$, $a_2 = 14$: $1849 + 196 = 2045$.\nTry $a_1 = 41$, $a_2 = 10$: $1681 + 100 = 1781$.\nTry $a_1 = 45$, $a_2 = 14$: $2025 + 196 = 2221$.\nSo, no integer solution for $k = 2$.\n\nCase 3: $k = 3$.\nLet $a_1, a_2, a_3 \\geq 1$, $a_1^2 + a_2^2 + a_3^2 = 2023$.\nTry $a_1 = a_2 = a_3 = t$, $3t^2 = 2023 \\implies t^2 = 674.33$.\nTry $a_1 = a_2 = t$, $a_3 = t+1$:\n$t^2 + t^2 + (t+1)^2 = 3t^2 + 2t + 1 = 2023 \\implies 3t^2 + 2t - 2022 = 0$.\nDiscriminant: $4 + 3 \\times 2022 \\times 4 = 4 + 24264 = 24268$, not a perfect square.\nTry $a_1 = t$, $a_2 = t+1$, $a_3 = t+2$:\n$t^2 + (t+1)^2 + (t+2)^2 = t^2 + t^2 + 2t + 1 + t^2 + 4t + 4 = 3t^2 + 6t + 5 = 2023$.\n$3t^2 + 6t - 2018 = 0$.\nDiscriminant: $36 + 3 \\times 2018 \\times 4 = 36 + 24216 = 24252$, not a perfect square.\nTry $a_1 = 44$, $a_2 = 44$, $a_3 = 5$: $1936 + 1936 + 25 = 3897$.\nTry $a_1 = 44$, $a_2 = 43$, $a_3 = 2$: $1936 + 1849 + 4 = 3789$.\nTry $a_1 = 45$, $a_2 = 1$, $a_3 = 1$: $2025 + 1 + 1 = 2027$.\nTry $a_1 = 44$, $a_2 = 5$, $a_3 = 2$: $1936 + 25 + 4 = 1965$.\nTry $a_1 = 45$, $a_2 = 7$, $a_3 = 1$: $2025 + 49 + 1 = 2075$.\nTry $a_1 = 42$, $a_2 = 17$, $a_3 = 2$: $1764 + 289 + 4 = 2057$.\nTry $a_1 = 43$, $a_2 = 14$, $a_3 = 2$: $1849 + 196 + 4 = 2049$.\nTry $a_1 = 41$, $a_2 = 10$, $a_3 = 2$: $1681 + 100 + 4 = 1785$.\nTry $a_1 = 44$, $a_2 = 44$, $a_3 = 1$: $1936 + 1936 + 1 = 3873$.\nTry $a_1 = 44$, $a_2 = 43$, $a_3 = 1$: $1936 + 1849 + 1 = 3786$.\nTry $a_1 = 45$, $a_2 = 1$, $a_3 = 2$: $2025 + 1 + 4 = 2030$.\nTry $a_1 = 44$, $a_2 = 5$, $a_3 = 1$: $1936 + 25 + 1 = 1962$.\nTry $a_1 = 45$, $a_2 = 7$, $a_3 = 2$: $2025 + 49 + 4 = 2078$.\nTry $a_1 = 42$, $a_2 = 17$, $a_3 = 1$: $1764 + 289 + 1 = 2054$.\nTry $a_1 = 43$, $a_2 = 14$, $a_3 = 1$: $1849 + 196 + 1 = 2046$.\nTry $a_1 = 41$, $a_2 = 10$, $a_3 = 1$: $1681 + 100 + 1 = 1782$.\n\nSo, there is no solution for $k = 3$ with positive integers $a_1, a_2, a_3$.\n\nTherefore, the only possibility is $k \\geq 4$.\n\nThus, there are at least four distinct squarefree parts among the elements of $S$. Pick one element from each of four different $S_{t_i}$, say $x_1, x_2, x_3, x_4$ with $s_{x_i}$ all distinct. Then for any $i \\neq j$, $x_i x_j$ is not a perfect square, since $s_{x_i} \\neq s_{x_j}$.\n\nTherefore, there exist at least four distinct elements in $S$ such that none of their pairwise products is a perfect square, as desired.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32522, "subject": "Mathematics (Multi-modal)", "question": "Let $r > 0$ be a real number. All the interior points of the disc $D(r)$ of radius $r$ are colored with one of two colors, red or blue.\n\n1. If $r > \\frac{\\pi}{\\sqrt{3}}$, show that we can find two points $A$ and $B$ in the interior of the disc such that the distance $AB = \\pi$ and $A$ and $B$ have the same color.\n\n2. Does the conclusion in (a) hold if $r > \\frac{\\pi}{2}$?", "options": [], "answer": "1) True for radius greater than pi divided by square root of three. 2) Yes, it also holds for radius greater than pi over two.", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32523, "subject": "Mathematics (Multi-modal)", "question": "Let $g: \\mathbb{N} \\to \\mathbb{N}$ be a bijective function and suppose that $f: \\mathbb{N} \\to \\mathbb{N}$ is a function such that:\n• For all naturals $x$, $f^{2023}(x) = x$\n• For all naturals $x, y$ such that $x \\mid y$, we have $f(x) \\mid g(y)$.\nProve that $f(x) = x$.", "options": [], "answer": "Detailed solution", "solution": "Claim 0 $f$ is bijective.\n*Proof.* First, it is easy to see that $f$ is surjective, since for any given $x \\in \\mathbb{N}$, $f^{n-1}(x)$ exists and $f(f^{n-1}(x)) = x$. Now, assume $f(x) = f(y)$. Choose $m = x^{2023}$ and $n = y^{2023}$. Thus, $f^m(x) = x$ and $f^n(y) = y$, and note that\n$$\n\\begin{align*}\nf(x) = f(y) &\\implies f^{mn-1}(f(x)) = f^{mn-1}(f(y)) \\\\\n&\\implies (f^m)^n(x) = (f^n)^m(y) \\\\\n&\\implies x = y\n\\end{align*}\n$$\nHence, $f$ is injective, and therefore, $f$ is bijective too.\n\nClaim 1 $f^a(x) = f^b(x) = x \\implies f^{\\gcd(a,b)}(x) = x$.\n*Proof.* Let $d$ be the smallest positive integer such that $f^d(x) = x$. By Euclidean algorithm, $d \\mid a$ and $d \\mid b$. Therefore $d \\mid \\gcd(a, b)$, and so $f^{\\gcd(a,b)}(x) = x$. $\\square$\n\nClaim 3 For every $x, y, n \\in \\mathbb{N}$, $x | y \\implies f^n(x) | f^n(y)$\n*Proof.* This follows by using the second condition repeatedly. $\\square$\n\nClaim 4 For every $x, y \\in \\mathbb{N}$, $x | y \\Longleftrightarrow f(x) | f(y)$.\n*Proof.* It suffices to prove $f(x) | f(y) \\implies x | y$. To this end, suppose $f^m(x) = x$ and $f^n(y) = y$. Using the previous claim, we have\n$$\nf(x) | f(y) \\implies f^{mn-1}(f(x)) | f^{mn-1}(f(y)) \\implies (f^m)^n(x) | (f^n)^m(y) \\implies x | y,\n$$\nas claimed.\n\nDefine $d(x)$ to be the number of positive divisors of $x$.\n\nClaim 5 For all $x \\in \\mathbb{N}$, $d(x) = d(f(x))$.\n*Proof.* For any given $x$, let $A$ and $B$ be the sets of positive divisors of $x$ and $f(x)$ respectively. Clearly, by Claim 4 and bijectivity, $f$, when restricted to $A$, is a bijection from $A$ to $B$, whence the claim follows. $\\square$\n\nClaim 6 For any given $n$, let its prime factorisation be $n = p_1^{a_1} \\cdot p_2^{a_2} \\cdots p_j^{a_j}$. Then,\n$$\nf(n) = f(p_1)^{a_1} \\cdot f(p_2)^{a_2} \\cdots f(p_j)^{a_j}\n$$\nwhere all $f(p_i)$'s are distinct primes.\n*Proof.* We will prove this by strong induction on $\\sum a_i$. For $n = 1$, $\\sum a_k = 0$. Also, $d(1) = 1 = d(f(1))$. But 1 is the only natural number with only 1 divisor. So $f(1)$ is 1.\nNow, if $n$ is a prime, then $d(n) = 2 = d(f(n))$, so $f(n)$ is also prime. Also, it is clear that no two $f(p_i)$'s can be equal as $f$ is bijective.\nNow, let's assume that the above statement is true for all $n$ such that $\\sum a_i < k$. For $n$ with $\\sum a_i = k$, and $k \\ge 2$, let $A$ (resp. $B$) be the set of positive divisors of $n$ (resp. $f(n)$). Clearly, by Claim 4, $f$, when restricted to $A$, is a bijection from $A$ to $B$. Since all elements of $A$ are divisors of $n$, all elements of $A$, except $n$ itself, have $\\sum a_i < k$, so the stated claim is true for all of them.\nNow, if $n$ is a prime power, say $p^k$, then since $A = \\{1, p, p^2, \\dots, p^k\\}$ (as $f(p)$ is prime), $B$ must be $\\{1, f(p), f(p)^2, \\dots, f(p)^{k-1}, f(n)\\}$. But since $B$ is the set of divisors of $f(n)$, the only possible value of $f(n)$ is $f(p)^k$.\nNow, if $n$ has multiple prime factors, let's say its prime factorisation is $n = p_1^{a_1} \\cdot p_2^{a_2} \\cdots p_j^{a_j}$. We have\n$$\np_i^{a_i} \\in A, \\forall i \\le j \\implies f(p_i^{a_i}) \\in B, \\forall i \\le j \\implies f(p_i)^{a_i} \\in B, \\forall i \\le j\n$$\nby the induction hypothesis. Therefore $\\prod f(p_i)^{a_i}$ must also be in $B$, since all $f(p_i)$'s are distinct primes. But we know from our induction hypothesis that this is not the image of any of the proper divisors of $n$ under $f$, and $B$ is the image of $A$ under $f$, hence $\\prod f(p_i)^{a_i} = f(n)$ in this case as well. $\\square$\n\nNow, consider any prime $p$. We know that $f^{p^{2023}}(f(p)) = f(p)$ and $f^{p^{2023}}(f(p)) = f(p) \\implies f^{\\gcd(p^{2023}, f(p)^{2023})}(f(p)) = f(p)$. But $p, f(p)$ are primes, thus $\\gcd$ is 1 unless $p = f(p)$ but if $f^1(f(p)) = f(p)$, then $f(p) = p$.\nNow, by multiplicativity of $f$, we get that $f(x) = x$ for all $x$. $\\square$\n\n\nSolution 2:\n\nClaim 2 For all $x \\in \\mathbb{N}$, $d(x) \\le d(g(x))$.\n*Proof.* $f$ is an injective function from set of divisors of $x$ to set of divisors of $g(x)$. $\\square$\n\nIf $g(n) = 1$, then $d(g(n)) = 1 \\implies d(n) \\le 1 \\implies d(n) = 1 \\implies g(1) = 1$. Further, $f(1) | g(1) = 1 \\implies f(1) = 1$.\n\nClaim 3 For any prime $p$, $f(p) = g(p) = p$.\n*Proof.* Let $g(q) = p$. Then $d(q) \\le d(p) = 2$ and $q \\ne 1$ by injectivity of $g$, so $q$ is also a prime. Further, $f(q) | g(q) = p$ and $f(q) \\ne 1$ by injectivity $\\implies f(q) = p$. Now,\n$$\nf^{p^{2023}}(q) = f^{p^{2023}-1}(p) = f^{-1}(p) = q = f^{q^{2023}}(q) \\implies f^{\\gcd(p^{2023}, q^{2023})}(q) = q\n$$\nNow, if $p \\ne q$, we get a contradiction. Hence $q = p$, and so $f(q) = g(q) = p$. $\\square$\n\nNow we use strong induction on $d(n)$ to prove $f(n) = g(n) = n$. Base cases are $d(n) = 1$ and $d(n) = 2$; these are done since $f(1) = g(1) = 1$ and $f(p) = g(p) = p$ for primes $p$.\nNow assume the claim is true for all $m$ such that $d(m) \\le k$, for some $k \\ge 2$. Let $n$ satisfy $d(n) = k+1$. Suppose $g(y) = n$. By Claim 2, $d(y) \\le d(n)$. If $d(y) < d(n)$, by induction hypothesis we have $y = g(y) = n$, contradiction! Hence $d(y) = d(n)$. We have two cases:\n\nCase I: $y$ is not a power of a prime.\nLet $y = p_1^{a_1} \\cdot p_2^{a_2} \\cdots p_j^{a_j}$. Then each $p_i^{a_i}$ has $a_i + 1 < d(y) = k + 1$ divisors, so $f(p_i^{a_i}) = p_i^{a_i}$. Therefore $p_i^{a_i} | g(y) = n$ for all $i \\implies y | n$. But, we have $d(y) = d(n)$, so $y = n$, and $g(n) = n$.\n\nCase II: $y = p^a$ for some prime $p$.\nSince $d(y) = k+1$, $a = k \\ge 2$. Then $d(p^{k-1}) = k \\implies f(p^{k-1}) = p^{k-1}$ by induction hypothesis $\\implies p^{k-1} | g(y) = n$. If some prime $q \\ne p$ divides $n$, then $p^{k-1}q | n \\implies d(n) \\ge d(p^{k-1}q) = 2k > k + 1$ since $k \\ge 2$, contradiction! Therefore $n = p^b$, and $d(n) = k+1 \\implies n = p^k = y$. Hence $g(n) = n$ in this case as well.\nThen $f(n) | g(n) = n$, so $f(n) \\ne n \\implies d(f(n)) < d(n) \\implies f(n) = f(f(n))$ by induction hypothesis $\\implies f(n) = n$ by injectivity, contradiction! Hence $f(n) = g(n) = n$, and we are done by induction.\n\n\nSolution 3:\n\nClaim 2 $f = g$\n*Proof.* Same as Claim 2 in Solution A1. $\\square$\n\nClaim 3 $d(f(x)) = d(x)$.\n*Proof.* $x|y \\implies f(x)|f(y)$ and $f$ is bijective. Thus, $d(f(x)) \\ge d(x)$.\nNow,\n$$\nd(x) \\le d(f(x)) \\le d(f^2(x)) \\le \\dots \\le d(f^{x^{2023}}(x)) = d(x) \\implies d(f(x)) = d(x)\n$$\n\nClaim 4 For all primes $p$, $f(p) = p$.\n*Proof.* Let $q = f^{-1}(p)$. By Claim 3, $q$ is also a prime. Now,\n$$\nf^{p^{2023}}(q) = f^{p^{2023}-1}(p) = f^{-1}(p) = q = f^{q^{2023}}(q) \\implies f^{\\gcd(p^{2023}, q^{2023})}(q) = q\n$$\nNow, if $p \\ne q$, we get a contradiction. $\\square$\n\nClaim 5 $f(p^\\alpha) = p^\\alpha$ for $\\alpha \\in \\mathbb{N}$.\n*Proof.* Let $t = f^{-1}(p^\\alpha)$. Now, if $q$ is a prime such that $q|t$, then $f(q)|p^\\alpha \\implies q|p \\implies p = q$. Thus, $t$ is a power of $p$. Let $t = p^{\\alpha'}$ but by Claim 3, $\\alpha + 1 = \\alpha' + 1 \\implies t = p^\\alpha$. Thus, $f(p^\\alpha) = p^\\alpha$. $\\square$\n\nClaim 6 $x|f(x)$ for all $x$.\n*Proof.* Let $p^\\alpha|x$, for any prime $p$, then $f(p^\\alpha)|f(x) \\implies p^\\alpha|f(x)$. Going over all prime divisors of $x$, we get the desired result. $\\square$\n\n$$\nx | f(x) | f^2(x) | \\dots | f^{x^{2023}}(x) | x \\implies f(x) = x\n$$\nThis uses the fact that $f(x)$ is cyclic for all $x$ but this can easily be avoided as well that for a bijective function $f$, we have $f(x) \\ge x$. So consider the smallest $x$ such that $f(x) \\neq x$. Now, clearly $x > f^{-1}(x)$ since for all $x$ lesser than it, $f(x) = x$. This is essentially how we proved that $f = g$. Thus, we are done.\n\n\nSolution 4:\n\nClaim 2 $d(x) \\le d(g(x))$\n*Proof.* Same as Claim 2 in Solution A2\n\nClaim 3 $f(p) = p$ for all primes $p$.\n*Proof.* Same as Claim 3 in Solution A2\n\nClaim 4 $f(p^\\alpha) = g(p^\\alpha) = p^\\alpha$ for all primes $p$ and $\\alpha \\in \\mathbb{N}$.\n*Proof.* We proceed by induction. The base case is already done. Now, assume that $\\forall k < \\alpha$, we have $f(p^k) = g(p^k) = p^k$.\nLet $t = g^{-1}(p^\\alpha)$. Now, if $q$ is a prime such that $q | t$, then $f(q) | p^\\alpha \\implies q | p \\implies p = q$. Thus, $t$ is a power of $p$. Let $t = p^{\\alpha'}$. Now, by Claim 2, $\\alpha' \\le \\alpha$ but $\\forall \\alpha' < \\alpha$, $g(p^{\\alpha'}) = p^{\\alpha'}$. Thus, $\\alpha = \\alpha'$. Thus, $g(p^\\alpha) = p^\\alpha$.\nNow, $f(p^\\alpha) | p^\\alpha$. Thus, $f(p^\\alpha) = p^s$ for some $s \\le \\alpha$ but we know that $f^{-1}(p^s) = p^s$ for all $s < \\alpha$. Thus, $s = \\alpha$.\nThus, $f(p^\\alpha) = g(p^\\alpha) = p^\\alpha$ as desired.\n\nClaim 5 $x|g(x)$ for all $x \\in \\mathbb{N}$.\n*Proof.* Let $p^\\alpha|x$, then $f(p^\\alpha)|g(x) \\implies p^\\alpha|g(x)$. Going over all prime divisors of $x$, we get that $x|g(x)$ $\\square$\n\nNow, we have that $x \\le g(x)$ for all $x$. So, consider the smallest $x$ such that $x \\neq g(x)$. Then, we get that $g^{-1}(x) > x$ since $\\forall y < x, g(y) = y$. This is a contradiction since $g^{-1}(x) > g(g^{-1}(x))$.\nThus, $g(x) = x$ for all $x$. Now, we have that $x|x \\implies f(x)|x$ for all $x$ and in particular that $f(x) \\le x$ for all $x$. Now, consider the smallest $x$, such that $f(x) \\neq x$. Then, $f(x) > x$ since $f^{-1}(y) = y$ for all $y < x$.\nThus, $f(x) = x$ for all $x$ and our conclusion follows.\n\nThe general idea for this conclusion and Claim 2 in Solution A1 is that if $a, b$ are bijective on $\\mathbb{N}$ and $a(x) \\le b(x)$ for all $x$ implies that $a = b$. We earlier use this with $f = a$ and $g = b$. Now, we use $a = id$ and $b = g$. Then finally with $a = f$ and $b = id$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32524, "subject": "Mathematics (Multi-modal)", "question": "Suppose $a_0, \\dots, a_{100}$ are positive reals. Consider the following polynomial for each $k$ in $\\{0, 1, \\dots, 100\\}$:\n$$\na_{100+k}x^{100} + 100a_{99+k}x^{99} + a_{98+k}x^{98} + a_{97+k}x^{97} + \\dots + a_{2+k}x^2 + a_{1+k}x + a_k,\n$$\nwhere indices are taken modulo 101, i.e., $a_{100+i} = a_{i-1}$ for any $i$ in $\\{1, 2, \\dots, 100\\}$. Show that it is impossible that each of these 101 polynomials has all its roots real.", "options": [], "answer": "Detailed solution", "solution": "Suppose for contradiction that all 101 polynomials have all real roots. Let $P_k(x)$ denote the $k$-th polynomial:\n$$\nP_k(x) = a_{100+k}x^{100} + 100a_{99+k}x^{99} + a_{98+k}x^{98} + a_{97+k}x^{97} + \\dots + a_{2+k}x^2 + a_{1+k}x + a_k,\n$$\nwhere all indices are modulo 101.\n\nNote that all coefficients $a_i$ are positive reals.\n\nLet $S$ be the $101 \\times 101$ matrix whose $k$-th row (for $k = 0, 1, \\dots, 100$) is the vector of coefficients of $P_k(x)$, i.e.,\n$$\n(a_{100+k},\\ 100a_{99+k},\\ a_{98+k},\\ a_{97+k},\\ \\dots,\\ a_{2+k},\\ a_{1+k},\\ a_k)\n$$\nwith indices modulo 101.\n\nLet us consider the sum of all these polynomials:\n$$\n\\sum_{k=0}^{100} P_k(x) = \\sum_{k=0}^{100} \\left( a_{100+k}x^{100} + 100a_{99+k}x^{99} + a_{98+k}x^{98} + \\dots + a_{1+k}x + a_k \\right)\n$$\nLet us compute the coefficient of $x^m$ in this sum for $m = 0, 1, \\dots, 100$.\n\n- For $m = 100$, the coefficient is $\\sum_{k=0}^{100} a_{100+k} = \\sum_{k=0}^{100} a_k$ (since $100+k$ runs over all residues mod 101 as $k$ runs from 0 to 100).\n- For $m = 99$, the coefficient is $\\sum_{k=0}^{100} 100a_{99+k} = 100 \\sum_{k=0}^{100} a_k$.\n- For $m = 98$, the coefficient is $\\sum_{k=0}^{100} a_{98+k} = \\sum_{k=0}^{100} a_k$.\n- For $m = 97$, the coefficient is $\\sum_{k=0}^{100} a_{97+k} = \\sum_{k=0}^{100} a_k$.\n- ...\n- For $m = 1$, the coefficient is $\\sum_{k=0}^{100} a_{1+k} = \\sum_{k=0}^{100} a_k$.\n- For $m = 0$, the coefficient is $\\sum_{k=0}^{100} a_k$.\n\nSo, the sum is:\n$$\n\\sum_{k=0}^{100} P_k(x) = (\\sum_{k=0}^{100} a_k) x^{100} + 100(\\sum_{k=0}^{100} a_k) x^{99} + (\\sum_{k=0}^{100} a_k) x^{98} + \\dots + (\\sum_{k=0}^{100} a_k) x^0\n$$\nThat is,\n$$\n\\sum_{k=0}^{100} P_k(x) = (\\sum_{k=0}^{100} a_k) \\left( x^{100} + 100x^{99} + x^{98} + x^{97} + \\dots + x^2 + x + 1 \\right)\n$$\n\nNow, $\\sum_{k=0}^{100} a_k > 0$ since all $a_k > 0$.\n\nTherefore, the sum of all 101 polynomials is a positive constant times the polynomial\n$$\nQ(x) = x^{100} + 100x^{99} + x^{98} + x^{97} + \\dots + x^2 + x + 1\n$$\n\nBut $Q(x)$ is a degree 100 polynomial with real coefficients. Let us check whether $Q(x)$ can have all real roots.\n\nSuppose $Q(x)$ has all real roots. But the coefficient of $x^{99}$ is $100$, which is much larger than the other coefficients (which are all $1$). For a real-rooted degree 100 polynomial with all positive coefficients, the sequence of coefficients must be log-concave (by Newton's inequalities). That is, for all $i$, $a_i^2 \\geq a_{i-1} a_{i+1}$.\n\nBut for $x^{99}$, the coefficient is $100$, and for $x^{100}$ and $x^{98}$, the coefficients are $1$ each. So,\n$$\n100^2 = 10,000 \\geq 1 \\cdot 1 = 1\n$$\nwhich is true, but let's check the log-concavity at $x^{99}$:\n$$\n100^2 \\geq 1 \\cdot 1\n$$\nwhich is true, but let's check at $x^{98}$:\n$$\n1^2 \\geq 100 \\cdot 1 \\implies 1 \\geq 100\n$$\nwhich is false.\n\nTherefore, the sequence of coefficients is not log-concave, so $Q(x)$ cannot have all real roots.\n\nBut $Q(x)$ is a sum of polynomials, each of which (by assumption) has all real roots. The sum of real-rooted polynomials with positive coefficients is also real-rooted only if the sequence of coefficients is log-concave. Since $Q(x)$ is not real-rooted, at least one of the $P_k(x)$ cannot be real-rooted.\n\nTherefore, it is impossible that all 101 polynomials have all roots real.", "topic": "Number Theory", "subtopic": "Modular Arithmetic" }, { "id": 32525, "subject": "Mathematics (Multi-modal)", "question": "Alice has an integer $N > 1$ written on a blackboard. Each minute, she deletes the current number $x$ on the blackboard and writes $2x + 1$ if $x$ is not the cube of an integer, or the cube root of $x$ otherwise. Prove that at some point in time, she writes a number larger than $10^{100}$.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32526, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $N \\ge 3$ be an integer. In the country of Sibyl, there are $N^2$ towns arranged as the vertices of an $N \\times N$ grid, with each pair of towns corresponding to an adjacent pair of vertices on the grid connected by a road. Several automated drones are each given the instruction to traverse a rectangular path starting and ending at the same town, following the roads of the country. It turned out that each road was traversed at least once by some drone. Determine the minimum number of drones that must be operating.", "options": [], "answer": "If N is even, the minimum number is N−1. If N is odd, the minimum number is N.", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32527, "subject": "Mathematics (Multi-modal)", "question": "Let $\\mathbb{N}$ denote the set of all positive integers. Find all real numbers $c$ for which there exists a function $f: \\mathbb{N} \\to \\mathbb{N}$ satisfying:\n\na. for any $x, a \\in \\mathbb{N}$, the quantity $\\frac{f(x+a)-f(x)}{a}$ is an integer if and only if $a = 1$;\n\nb. for all $x \\in \\mathbb{N}$, we have $|f(x) - cx| < 2023$.", "options": [], "answer": "c = k + 1/2 for k ∈ {0, 1, 2, ...}", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32528, "subject": "Mathematics (Multi-modal)", "question": "Let $k \\ge 1$ and $N > 1$ be two integers. On a circle are placed $2N + 1$ coins all showing heads. Calvin and Hobbes play the following game. Calvin starts and on his move can turn any coin from heads to tails. Hobbes on his move can turn at most one coin that is next to the coin that Calvin turned just now from tails to heads. Calvin wins if at any moment there are $k$ coins showing tails after Hobbes has made his move. Determine all values of $k$ for which Calvin wins the game.", "options": [], "answer": "Calvin wins if and only if 1 ≤ k ≤ ⌈(2N + 1)/3⌉.", "solution": "", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32529, "subject": "Mathematics (Multi-modal)", "question": "Euler marks $n$ different points in the Euclidean plane. For each pair of marked points, Gauss writes down the number $\\lfloor \\log_2 d \\rfloor$ where $d$ is the distance between the two points. Prove that Gauss writes down less than $2n$ distinct values.\n\n*Note:* For any $d > 0$, $\\lfloor \\log_2 d \\rfloor$ is the unique integer $k$ such that $2^k \\le d < 2^{k+1}$.", "options": [], "answer": "Detailed solution", "solution": "Let the $n$ points be $P_1, P_2, \\ldots, P_n$.\n\nLet $D$ be the set of all pairwise distances between the $n$ points. For each $d \\in D$, Gauss writes down $\\lfloor \\log_2 d \\rfloor$.\n\nLet $d_{\\min}$ and $d_{\\max}$ be the minimal and maximal pairwise distances among the $n$ points.\n\nAll values written by Gauss are integers $k$ such that $2^k \\le d < 2^{k+1}$ for some $d$ in $D$.\n\nThus, the set of distinct values written is contained in the set of all integers $k$ such that $2^k \\le d_{\\max}$ and $2^{k+1} > d_{\\min}$, i.e.,\n$$\n\\lfloor \\log_2 d_{\\min} \\rfloor \\le k \\le \\lfloor \\log_2 d_{\\max} \\rfloor\n$$\n\nSo the number of distinct values is at most $\\lfloor \\log_2 d_{\\max} \\rfloor - \\lfloor \\log_2 d_{\\min} \\rfloor + 1$.\n\nNow, we bound this quantity in terms of $n$.\n\nLet us fix the configuration of $n$ points. The minimal distance $d_{\\min}$ is the smallest distance between any two points, and the maximal distance $d_{\\max}$ is the largest.\n\nLet us consider the ratio $d_{\\max}/d_{\\min}$.\n\nFor $n$ points in the plane, the maximal distance between any two points is at most the diameter of the convex hull of the points, and the minimal distance is at least the minimal separation between any two points.\n\nLet us fix $d_{\\min}$ and consider the maximal possible $d_{\\max}$.\n\nSuppose all points are placed so that the minimal distance is $d_{\\min}$, and the maximal distance is $d_{\\max}$.\n\nConsider the following: For any point $P_i$, the number of other points within distance $2^k d_{\\min}$ is at most the number of points that can be packed in a disk of radius $2^k d_{\\min}$ with pairwise separation at least $d_{\\min}$.\n\nIn the plane, the maximal number of points that can be packed in a disk of radius $R$ with pairwise separation at least $r$ is at most $\\left(\\frac{2R}{r}+1\\right)^2$.\n\nBut we can use a simpler argument:\n\nLet $d_{\\max} \\leq C n d_{\\min}$ for some constant $C$ (since the diameter of $n$ points with minimal separation $d_{\\min}$ is at most proportional to $n d_{\\min}$).\n\nThen,\n$$\n\\frac{d_{\\max}}{d_{\\min}} < C n\n$$\n\nTherefore,\n$$\n\\lfloor \\log_2 d_{\\max} \\rfloor - \\lfloor \\log_2 d_{\\min} \\rfloor + 1 < \\log_2 (C n) + 2\n$$\n\nBut we need to show that the number of distinct values is less than $2n$.\n\nLet us consider the following extremal configuration:\n\nSuppose the $n$ points are placed on a straight line with equal spacing $d_{\\min}$ between consecutive points. Then the maximal distance is $(n-1)d_{\\min}$.\n\nSo,\n$$\n\\frac{d_{\\max}}{d_{\\min}} = n-1\n$$\n\nThus,\n$$\n\\lfloor \\log_2 d_{\\max} \\rfloor - \\lfloor \\log_2 d_{\\min} \\rfloor + 1 \\leq \\lfloor \\log_2 (n-1) d_{\\min} \\rfloor - \\lfloor \\log_2 d_{\\min} \\rfloor + 1 = \\lfloor \\log_2 (n-1) \\rfloor + 1\n$$\n\nSo the number of distinct values is at most $1 + \\lfloor \\log_2 (n-1) \\rfloor$.\n\nBut in general, for any configuration, the number of distinct values is at most $1 + \\lfloor \\log_2 \\frac{d_{\\max}}{d_{\\min}} \\rfloor$.\n\nBut the number of distinct pairwise distances is at most $\\binom{n}{2}$, so the number of distinct $\\lfloor \\log_2 d \\rfloor$ values is at most the number of distinct pairwise distances, which is $\\binom{n}{2} < 2n$ for $n \\geq 3$.\n\nBut we can do better:\n\nLet us consider the set $\\{ \\lfloor \\log_2 d_{ij} \\rfloor : 1 \\leq i < j \\leq n \\}$.\n\nFor each $k$, the set of pairs with $2^k \\leq d_{ij} < 2^{k+1}$ is the set of pairs whose distance falls in that interval.\n\nBut for $n$ points, the number of possible intervals $[2^k, 2^{k+1})$ that contain at least one pairwise distance is at most $n-1$ (since the minimal and maximal distances differ by at most a factor of $n-1$).\n\nThus, the number of distinct values is at most $1 + \\lfloor \\log_2 (n-1) \\rfloor < 2n$ for all $n \\geq 1$.\n\nTherefore, Gauss writes down less than $2n$ distinct values.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32530, "subject": "Mathematics (Multi-modal)", "question": "Euclid has a tool called *cyclos* which allows him to do the following:\n* Given three non-collinear marked points, draw the circle passing through them.\n* Given two marked points, draw the circle with them as endpoints of a diameter.\n* Mark any intersection points of two drawn circles or mark a new point on a drawn circle.\nShow that given two marked points, Euclid can draw a circle centered at one of them and passing through the other, using only the cyclos.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32531, "subject": "Mathematics (Multi-modal)", "question": "The numbers $1$, $2$, $3$, $4$, $\\ldots$, $39$ are written on a blackboard. In one step we are allowed to choose two numbers $a$ and $b$ on the blackboard such that $a$ divides $b$, and replace $a$ and $b$ by the single number $\\frac{b}{a}$. This process is continued till no number on the board divides any other number. Let $S$ be the set of numbers which is left on the board at the end. What is the smallest possible value of $|S|$?", "options": [], "answer": "4", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32532, "subject": "Mathematics (Multi-modal)", "question": "Let $f, g$ be functions $\\mathbb{R} \\to \\mathbb{R}$ such that\n$$\nf(g(x) + y) = g(x + y) \\quad \\forall x, y \\in \\mathbb{R}\n$$\nthen either $f$ is the identity¹ function or $g$ is periodic².", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32533, "subject": "Mathematics (Multi-modal)", "question": "Find all $f: \\mathbb{N} \\to \\mathbb{N}$ such that $f(x) + y$ and $f(y) + x$ have the same number of 1's in their binary representation for any $x, y \\in \\mathbb{N}$.", "options": [], "answer": "f(n) = n + c for some natural number c", "solution": "We claim that all such functions are of the form $f(n) = n + c$ for some natural number $c$. The verification is trivial; now consider some function $f$ satisfying the given condition. For $n \\in \\mathbb{N}$, let $d(n)$ denote the number of 1's in the binary representation of $n$. Let $P(x, y)$ denote the statement that $f(x) + y$ and $f(y) + x$ have the same number of 1's in their binary representation.\n\n**Claim 1** For any $y, n \\in \\mathbb{N}$ with $2^n > f(y)$, $f(2^n - f(y)) + y$ is a power of two.\n\n*Proof.* $P(2^n - f(y), y)$ gives us that $2^n$ and $f(2^n - f(y)) + y$ have the same number of 1's, and the former has exactly one 1, so $f(2^n - f(y)) + y$ has exactly one 1, from which the claim follows. $\\square$\n\n**Claim 2** $f(y + 2^k) - f(y)$ is a power of two for any $k \\ge 0$ and $y \\ge 2^k$.\n\n*Proof.* Choose an $n$ such that $n > 1000 + \\log_2(10 + |f(y + 2^k) - f(y)|)$. By Claim 1, $f(2^n - f(y)) = 2^t - y > 0$ for some $t$ with $t \\ge k + 1$. Therefore $P(2^n - f(y), y + 2^k)$ gives\n$$\nd(2^n - f(y) + f(y + 2^k)) = d(2^t + 2^k) = 2\n$$\nsince $t \\ge k + 1$. If $f(y) = f(y + 2^k)$, then LHS is $d(2^n) = 1$, contradiction! If $f(y) > f(y + 2^k)$, and $f(y) - f(y + 2^k)$ has $m < \\log_2(10 + |f(y + 2^k) - f(y)|)$ digits, then\n$$\nd(2^n - f(y) + f(y + 2^k)) \\ge n - m - 1 \\ge 999 > 2\n$$\nsince $2^n - f(y) + f(y + 2^k)$ starts with at least $n-m-1$ ones, contradiction! Therefore $f(y+2^k) > f(y)$, and since $n$ is bigger than the number of digits in $f(y + 2^k) - f(y)$, there is no carry-over, so\n$$\n2 = d(2^n - f(y) + f(y + 2^k)) = 1 + d(f(y + 2^k) - f(y))\n$$\nwhich gives us $f(y + 2^k) - f(y)$ is a power of 2, as required $\\square$\n\nClaim 2 gives us $f(y+1) - f(y) = 2^{t(y)}$ for some $t(y)$, for all $y$. But for $y \\ge 2$, $f(y+2) - f(y)$ is also a power of two $\\implies 2^{t(y)} + 2^{t(y+1)}$ is a power of two, which is only possible if $t(y) = t(y+1)$ for all $y \\ge 2$. Therefore $f(y+1) - f(y)$ is a constant power of two for all $y \\ge 2$, say $2^k$. This gives us $f(y) = 2^k y + c$ for some constant $c$, for all $y \\ge 2$. Putting this in Claim 1, we get\n$$\n2^{k+n} - (2^{2k} - 1)y - (2^k - 1)c\n$$\nis a power of two for any $y \\ge 2$ and any sufficiently large $n$. This is only possible if, for all $y \\ge 2$,\n$$\n(2^{2k} - 1)y + (2^k - 1)c = 0\n$$\n$$\n\\iff (2^k - 1)((2^k + 1)y + c) = 0\n$$\nwhich can only hold for all $y \\ge 2$ if $2^k = 1$, i.e., $f(y) = y + c$ for all $y \\ge 2$. But Claim 1 for $y = 1$ and large $n$ gives\n$$\n2^n - f(1) + 1 + c\n$$\nis a power of two for all sufficiently large $n$, which is only possible if $f(1) = 1 + c$. Therefore $f(x) = x + c$ for all $x \\in \\mathbb{N}$.\nWe claim that all such functions are of the form $f(n) = n + c$ for some natural number $c$. The verification is trivial; now consider some function $f$ satisfying the given condition. For $n \\in \\mathbb{N}$, let $d(n)$ denote the number of 1's in the binary representation of $n$.\n\n**Claim 1** Given any $N \\in \\mathbb{N}$, there exists $m \\in \\mathbb{N}$ so that $f(m) > N$.\n\n*Proof.* Suppose that there is $N \\in \\mathbb{N}$ so that $f(m) < N$ for all $m \\in \\mathbb{N}$. Let $k \\in \\mathbb{N}$ be such that $2^k > N + 1$. Note that $d(f(2^{2k} - 2^k) + 1) = d(2^{2k} - 2^k + f(1))$. The right hand side is at least $k + 1$ which the left hand side is at most $k$, a contradiction. This proves our claim. $\\square$\n\n**Claim 2** The function $f$ is injective.\n\n*Proof.* Suppose there are $a, b, c \\in \\mathbb{N}$ so that $f(a) = f(b) = c$. Then, for any natural number $k$ with $2^k > c$, we have $1 = d(f(a) + 2^k - c) = d(a + f(2^k - c))$. This implies $f(2^k - c) = 2^r - a$ for some $r \\in \\mathbb{N}$. Similarly $f(2^k - c) = 2^s - b$ for some $s \\in \\mathbb{N}$. This implies that $a - b = 2^r - 2^s$. Therefore exist unique $r$ and $s$ such that $f(2^k - c) = 2^r - a = 2^s - b$ for all natural numbers $k$ with $2^k > c$. Let $n$ be a natural number such that $f(n) - c > 2c$, which exists by the previous lemma. Let $k \\in \\mathbb{N}$ be such that $2^k \\le f(n) - c < 2^{k+1}$ (note that this ensures $2^k > c$). Then $d(2^k + f(n) - c) = d(f(n) - c)$, but $d(2^{k+1} + f(n) - c) = d(f(n) - c) + 1$. This is a contradiction because\n$$\nd(2^k - c + f(n)) = d(f(2^k - c) + n) = d(f(2^{k+1} - c) + n) = d(2^{k+1} - c + f(n)).\n$$\nThus $f$ must be injective. $\\square$\n\nNow let $a, b$ be natural numbers so that $f(a) = b$. As in the proof of the previous lemma, for any natural number $k$ with $2^k > b$ we have $f(2^k - b) = 2^r - a$ for some $r \\in \\mathbb{N}$.\n\n**Claim 3** There exists a natural number $K$ such that for all $k > K$, we have $f(2^k - b) = 2^k - a$.\n\n*Proof.* Suppose the contrary. Let $k, r$ be distinct natural numbers so that $f(2^k - b) = 2^r - a$. Further choose distinct $l, s$ different from $k$ and $r$, so that $f(2^l - b) = 2^s - a$. Then\n$$\nd(f(2^k - b) + 2^l - b) = d(2^r + 2^l - (a + b)) = f(2^k - b + f(2^l - b)) = d(2^s + 2^k - (a + b)). \\quad (1)\n$$\nSince $f$ is injective, we may further assume $2^{\\min(k,l,r,s)} > a + b$. Note that if $m \\in \\mathbb{N}$ is such that $2^m > a + b$, then $d(2^{m+1} - (a+b)) = d(2^m - (a+b)) + 1$. Thus equation (1) cannot hold, proving our claim. $\\square$\n\nLet $k$ be a natural number such that $f(2^k - b) = 2^k - a$ and $2^k > 4|f(a - 1) - b|$. Note that\n$$\nk = d(2^k - 1) = d(f(2^k - b) + a - 1) = d(2^k - b + f(a - 1)).\n$$\nIf $b > f(a-1)$ then $2^k - b + f(a-1) < 2^k$, and so we must have $f(a-1) = b-1$. On the other hand, if $f(a-1) > b$, then $< 2^k < 2^k - b + f(a-1) < 2^k + 2^{k-2}$, and hence $d(2^k - b + f(a-1)) < k-1$, a contradiction. Thus $f(a-1) = b-1$.\n\nLetting $c = f(a) - a = b - a$, we have shown that $f(a) = a + c$ implies $f(a - 1) = a - 1 + c$, and that there are arbitrarily large integers $n$ so that $f(n) = n + c$. It is now clear by induction that $f(n) = n + c$ for all $n$. $\\square$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32534, "subject": "Mathematics (Multi-modal)", "question": "Suppose an acute scalene triangle $ABC$ has incentre $I$ and incircle touching $BC$ at $D$. Let $Z$ be the antipode of $A$ in the circumcircle of $ABC$. Point $L$ is chosen on the internal angle bisector of $\\angle BZC$ such that $AL = LI$. Let $M$ be midpoint of arc $BZC$, and let $V$ be the midpoint of $ID$. Prove that $\\angle IML = \\angle DVM$.", "options": [], "answer": "Detailed solution", "solution": "Let $N$ be the midpoint of arc $BAC$. Note that $Z, L, N$ are collinear; further, $AM \\parallel LZ$ because they are reflections in the circumcenter $O$ of $\\triangle ABC$. Therefore $\\angle IML = \\angle MLZ$. So it is sufficient to prove that $\\angle IVM = \\angle NLM$; in fact we will prove that $\\triangle IVM \\sim \\triangle NLM$. Note that $\\angle DIM = \\angle MAZ = \\angle MNZ$ because $AZ$ and perpendicular from $A$ to $BC$ are isogonal. Therefore it is sufficient to prove that\n$$\n\\frac{IV}{IM} = \\frac{NL}{NM}\n$$\nLet $r, R$ denote the inradius and circumradius of $\\triangle ABC$ respectively. Note that $IV = \\frac{r}{2}$, $NM = 2R$, and $NL = \\frac{AI}{2}$. Also note that $AI \\cdot IM$ is the power of $I$ w.r.t. $\\odot(ABC)$, which is $R^2 - OI^2 = 2rR$. Therefore\n$$\n\\frac{IV}{IM} = \\frac{r}{2IM} = \\frac{r}{2 \\cdot \\frac{2rR}{AI}} = \\frac{AI}{4R} = \\frac{NL}{NM}\n$$\nas required. □\nLet the incircle touch $AB$ and $AC$ at $F$ and $E$ respectively. Let $X$ be the reflection of $F$ across $B$, and let $Y$ be the reflection of $E$ across $C$. Let $I_a$ be the $A$-excentre of $ABC$. Let $X_1$ and $Y_1$ be the midpoints of $AX$ and $AY$, and let $N$ be the midpoint of arc $BAC$. Let $A'$ be the reflection of $A$ across $N$.\n**Claim 1** $I_a$ is the circumcenter of $XDY$\n*Proof.* Since $BD = BX$, the perpendicular bisector of $DX$ is the angle bisector of $XBD$ or the line $BI_a$. Similarly, $CI_a$ is the perpendicular bisector of $DY$. Thus the two perpendicular bisectors of $DX$ and $DY$ meet at $I_a$. □\n**Claim 2** $A'X = A'Y$\n*Proof.* Observe that $BX_1 = AF/2 = AE/2 = CY_1$, so $\\triangle NX_1B \\cong NY_1C$ and $NX_1 = NY_1$. Dilating by 2 from $A$ gives us the desired result. As a corollary, observe that $I_aA'$ is perpendicular to $XY$. □\n**Claim 3** $\\angle IDI_a = \\pi - \\angle (EF, XY)$\n*Proof.* Let $DR$ and $DS$ be the altitudes from $D$ to $EF$ and $XY$. Observe that $\\angle IDI_a = \\angle CDI_a + \\angle EDC + \\angle IDE = \\angle XDS + \\angle FDX + \\angle FDR = \\angle RDS$ which gives the desired result. □\n**Claim 4** $L$ is the midpoint of $IA'$.\n*Proof.* Observe that $Z, L, N$ are collinear, and that $NZ$ is the perpendicular bisector of $AA'$. This implies $LA = LI = LA'$, and that $L$ is the circumcentre of $AIZ$. Since $\\angle IAZ = \\frac{\\pi}{2}$, $L$ is the midpoint of $IZ$. □\nThe key idea is that $\\angle DVM = \\pi - \\angle IVM = \\pi - \\angle IDI_a = \\angle (EF, XY)$. On the other hand, we also have $II_a \\perp EF$ and $I_aA' \\perp XY$, so $\\angle IML = \\angle II_aZ = \\angle (EF, XY)$. This proves the problem. □\nWLOG assume $AB < AC$. Let $U$ be the midpoint of $AI$. Then $\\square ULZM$ is clearly a rectangle, so\n$$\n\\angle IML = \\angle UML = \\angle UZL = 90^\\circ - \\angle UZM\n$$\nLet $I_a$ be the $A$-excenter. Homothety with ratio 2 at $I$ gives\n$$\n\\angle DVM = 180^\\circ - \\angle I_aDI = 90^\\circ - \\angle I_aDC\n$$\nTherefore it is sufficient to prove that $\\angle UZM = \\angle I_aDC$. We use complex numbers for this.\nLet $\\odot(ABC)$ be the unit circle, and let coordinates of $A, B, C$ be $a^2, b^2, c^2$ respectively. Then it is well known that coordinates of $M, I, I_a$ are $-bc, -ab-ac-bc, ab+ac-bc$ respectively. Coordinate of $Z$ is $-a^2$ by reflection in the origin. Further, coordinate of $U$ is $\\frac{a^2-ab-ac-bc}{2}$ by midpoint formula. By projection formula, we get the coordinate of $D$ as $\\frac{(bc-a^2)(b+c)+a(b^2+c^2)}{2a}$. Also, $\\angle I_aDC$ is the same as directed angle from $I_aD$ to $BC$, so we have to prove\n$$\n\\frac{M-Z}{U-Z} \\bigg/ \\frac{C-B}{I_a-D} \\in \\mathbb{R}\n$$\nPutting the coordinates in, this is equivalent to proving $\\frac{bc-a^2}{a(b-c)} \\in \\mathbb{R}$. If we let $y$ be that quantity, we have\n$$\n\\bar{y} = \\frac{\\frac{1}{bc} - \\frac{1}{a^2}}{\\frac{1}{ab} - \\frac{1}{ac}} = \\frac{bc - a^2}{a(b-c)} = y\n$$\nHence $y \\in \\mathbb{R}$, as needed. □\nWLOG assume $AB < AC$. Let $N$ be midpoint of arc $BAC$, and let $MD$ intersect $\\odot(ABC)$ again at $D'$.\n**Claim 1** $D', I, Z$ are collinear.\n*Proof.* Consider an inversion with center $M$ and radius $MB$. $B, C, I$ are fixed since $MB = MC = MI$. The inversion interchanges line $BC$ and $\\odot(ABC)$, so $D' \\leftrightarrow D$. Also note that $MN \\parallel ID$ and $NZ \\parallel IM$, so\n$$\n\\angle MD'I = \\angle DIM = \\angle MM'Z = \\angle MD'Z\n$$\nHence $D', I, Z$ are collinear. □\nLet $U$ be the midpoint of $AI$.\n**Claim 2** MV and ZU intersect on $\\odot(ABC)$.\n*Proof.* We use phantom points and cross-ratios. Let $MV, ZU$ intersect $\\odot(ABC)$ at $V', V''$ respectively. Since $V$ is midpoint of $ID$, we have $(I, D; V, P_\\infty) = -1$ where $P_\\infty$ is the point at infinity along $ID$. Since $MN \\parallel ID$, projecting from $M$ onto $\\odot(ABC)$ we get $(A, D'; V', N) = -1$. Similarly, since $U$ is midpoint of $AI$, we have $(A, I; U, P'_\\infty) = -1$ where $P'_\\infty$ is the point at infinity along $AI$. Since $ZN \\parallel AI$, projecting from $M$ onto $\\odot(ABC)$ we get $(A, D'; V'', N) = -1$.\n$$\n\\implies (A, D'; V', N) = (A, D'; V'', N)\n$$\nTherefore $V' = V''$, as required. □\nNote that $\\square LZMU$ is a rectangle, and $ID \\parallel MN$, so\n$$\n\\angle DVM = \\angle VMN = \\angle V'MN = \\angle V'ZN = \\angle L'ZL = \\angle L'ML = \\angle IML\n$$\nas required. □", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32535, "subject": "Mathematics (Multi-modal)", "question": "Let $ABC$ be a triangle, and let $D$ be the foot of the $A$-altitude. Points $P, Q$ are chosen on $BC$ such that $DP = DQ = DA$. Suppose $AP$ and $AQ$ intersect the circumcircle of $ABC$ again at $X$ and $Y$. Prove that the perpendicular bisectors of the lines $PX$, $QY$, and $BC$ intersect.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32536, "subject": "Mathematics (Multi-modal)", "question": "In triangle $ABC$, let $D$ be the foot of the perpendicular from $A$ to line $BC$. Point $K$ lies inside triangle $ABC$ such that $\\angle KAB = \\angle KCA$ and $\\angle KAC = \\angle KBA$. The line through $K$ perpendicular to line $DK$ meets the circle with diameter $BC$ at points $X$ and $Y$. Prove that $AX \\cdot DY = DX \\cdot AY$.", "options": [], "answer": "Detailed solution", "solution": "Assume $AB \\neq AC$ for all solutions as in the case that $AB = AC$, $X, Y$ are symmetric about $AD$ and the result is immediate.\nLet $M$ be the midpoint of $BC$. Let $\\omega = (BC)$ and $\\Omega = (ABC)$.\nWe prove some preliminary results here which will be freely used across different proofs.\nLet $T$ be the intersection of the $B$ and $C$ tangents to $\\Omega$.\n\n**Claim 0.1 (BKOCT) is cyclic.**\n*Proof.* Let $T$ be a point such that $T$ is the intersection of the tangents from $B$ and $C$ to $(ABC)$. Now, observe that from the given angle conditions, that $\\angle BKC = 180^\\circ - A = \\angle BOC$ where $O$ is the center of $\\Omega$. Also, $\\angle BTC = A$, thus, $(BKOCT)$ is cyclic. $\\square$\n\n**Claim 0.2** The point $K$ lies on the $A$ symmedian in $\\triangle ABC$.\n*Proof.* From Claim 0.1 $\\angle TKC = A$. Also, from the given angle conditions, we have that $\\angle AKC = 180^\\circ - A$. Thus, $A, K, T$ are collinear. This gives the desired result. $\\square$\n\n**Claim 0.3** $\\angle AKO = 90^\\circ$.\n*Proof.* As $\\angle OKT = 90^\\circ$, we have $\\angle AKO = 90^\\circ$. $\\square$\n\n**Claim 0.4** Reflection of $A$ in $K$ lies on $\\Omega$.\n*Proof.* Follows immediately from Claim 0.3. $\\square$\n\nLet $K'$ be the reflection of $A$ in $K$, we have proved that $K' \\in \\Omega$.\n\n**Claim 0.5** The reflection of $K'$ in $BC$ lies on the $A$-median of $\\triangle ABC$.\n*Proof.* Let $K''$ be the point on the $A$ median such that $MA \\cdot MK'' = MB^2$.\nThus, we get that\n$$\n\\angle K'CB = \\angle K'AB = \\angle MAC = \\angle MCK'' = \\angle BCK''\n$$\nSimilarly, $\\angle K'BC = \\angle CBK''$. Thus, $K''$ is the reflection of $K'$ in $BC$ as required. $\\square$\n\nWe call the point $K''$, the $A$-HM point in $\\triangle ABC$.\n\n**Claim 0.6** If $S$ is the intersection of the $A$ tangent with $BC$, then $\\angle SKA = 90^\\circ$.\n*Proof.* Since $AK$ is the symmedian, the tangents from $S$ to $\\Omega$ are at $A, K'$. Thus, $S, K, O$ are collinear as this is the perpendicular bisector of $AK'$. Thus, we get the desired result. $\\square$\n\nLet $D'$ be the point such that $(BC; DD') = -1$, or equivalently if $E, F$ are feet of perpendiculars from $B, C$ onto $AB$ and $AC$ respectively then $D' = EF \\cap BC$.\n\n**Claim 0.7** $D'K'' \\perp AM$\n*Proof.* Observe that\n$$\n\\angle MDA = 90^\\circ, \\ MD \\cdot MD' = MB^2 = MK'' \\cdot MA \\implies \\angle MK''D' = 90^\\circ\n$$\n$\\square$\n\n\n**Solution Path A**\nWe wish to show that $D$ lies on the $A$-Appolonian circle in $\\triangle XAY$. Thus, it suffices to show that there exists point $P$ on line $XY$ with $PA^2 = PX \\cdot PY = PD^2$ since such a point $P$ would be the center of the $A$-Appolonian circle in $\\triangle XAY$, and if $PA^2 = PD^2$, then $D$ would be on the Appolonian circle as well.\n\n**Solution A1**\nWe will show that the perpendicular bisector of $AD$, the line $XY$ and the radical axis of point circle $\\odot(A)$ and $\\odot(BC)$ concur. The point of concurrence is the required point $P$. The latter radical axis is simply the midline of $A$ with its polar in $\\odot(BC)$.\n**Claim 1** $A, K''$ are inverses in $\\omega$.\n*Proof.* Same as Claim 0.5 in Solution Preliminary\n$\\square$\nBy homothety at $A$ of ratio $+2$, the conclusion is same as showing that line $BC$ and the polar of $A$ in $\\odot(BC)$, and the line through $K'$ perpendicular to $A'K'$ concur. However, the polar is simply the line through $K''$ perpendicular to $AK''$; the reflection of the other line in $BC$, and the concurrence is obvious.\n$\\square$\n\n\n**Solution A2**\nWe claim that $P$ is the midpoint of $AD'$.\n**Claim 1** It is sufficient to prove that $\\angle PKD = 90^\\circ$.\n*Proof.* Observe that $MB \\cdot MC = MD \\cdot MD'$ and thus $(ADD')$ and $(BC)$ are orthogonal. Thus, if $P, X$ and $Y$ are collinear, then $\\text{pow}_\\omega(P) = PX \\cdot PY$ but since $(ADD')$ and $(BC)$ are orthogonal, we have that $\\text{pow}_\\omega(P) = PA^2$. Thus, we get that $PA^2 = PX \\cdot PY = PD^2 = PD'^2$, and we will be done.\nThus, we just want $P, X, Y$ collinear that is $\\angle PKD = 90^\\circ$.\n$\\square$\n$\\square$\nTaking homothety $+2$ from $A$, we get that if $A'$ is the reflection of $A$ in $BC$ and if $K'$ is reflection of $A$ in $K$, then we need that $\\angle D'K'A' = 90^\\circ$.\nReflecting in $BC$, this is the same as proving $\\angle AK''D' = 90^\\circ$ which is the same as Claim 0.7 in the preliminaries. Thus, we are done.\n$\\square$\n\n\n**Solution A3**\nThe following proof is due to ideas from Adhitya MV in the TST. The proof has been revised and rewritten by the Problem Selection Committee.\nWe claim that $P$ is the midpoint of $AD'$.\n\n**Claim 1** It is sufficient to prove that $\\angle PKD = 90^\\circ$.\n*Proof.* Same as Claim 1 in Solution A2\nNow, let $R = KP \\cap AD$. Now, it suffices to prove that $\\angle RKD = 90^\\circ$. Now, $\\angle SKA = 90^\\circ$ by Claim 0.6 from preliminaries. Thus, we just need $\\angle RKA = \\angle SKD$. But $(SDKA)$ is cyclic. Thus, $\\angle SKD = \\angle SAD = \\angle SAR$.\nThus, we just need to show that circles $\\Omega$ and $(SAK)$ are tangent. Thus, we just need that reflection of $A$ in $R$ is on $\\Omega$. Taking homothety $+2$ from $A$, we need $AD \\cap K'D' \\in \\Omega$.\nLet $R' = AD \\cap \\Omega$.\nNow, projecting $(BC; DD')$ onto $\\Omega$ from $R'$, we get that $(B, C; A, D'R' \\cap \\Omega) = -1$ but $(B, C; A, K') = -1 \\implies D'R' \\cap \\Omega = K'$. Thus, $R'$ is the reflection of $A$ in $R$ as required.\n\n\nWe claim that $P$ is the midpoint of $AD'$.\n**Claim 1** It is sufficient to prove that $\\angle PKD = 90^\\circ$.\n*Proof.* Same as Claim 1 in Solution A2\nNow, reflecting figure in $BC$ and taking homothety $\\frac{1}{2}$ from $A$, we have $\\triangle ABC \\mapsto \\triangle DLN$, $K'' \\mapsto K$ and $D' \\mapsto P$. Thus, $K$ is the $D$-HM point in $\\triangle DLN$ and $P$ is the point such that $(K, L; P, AD \\cap LN) = -1$. But then by Claim 0.7 from preliminaries, we get that $\\angle PKD = 90^\\circ$ and we are done.\n\n\nThe following proof is due to ideas from Atul Shatavart Nadig in the TST. The proof has been revised and rewritten by the Problem Selection Committee.\nWe claim that $P$ is point of intersection of $XY$ and perpendicular bisector of $AD$.\nLet $Q$ be the foot of perpendicular from $P$ onto $BC$, and let $N$ be the midpoint of $AM$. Since $K''$ lies on $AM$ by Claim 0.5, taking reflection in $BC$, we get $A', K'$, $M$ collinear, and hence taking homothety with center $A$ and ratio $\\frac{1}{2}$, we get that $D, K, N$ are collinear.\nWe already know $PA = PD$. Note that $PX \\cdot PY = \\text{pow}_\\omega(P) = PM^2 - MB^2$. So it suffices to show\n$$\nPD^2 = PM^2 - MB^2 \\\\ \\iff MB^2 = PM^2 - PD^2\n$$\nBy the Pythagorean Theorem, since $PQ \\perp DM$,\n$$\n\\begin{aligned}\nPM^2 - PD^2 &= QM^2 - QD^2 \\\\\n&= (QM - QD)(QM + QD) \\\\\n&= DM \\cdot (2QD + DM)\n\\end{aligned}\n$$\nLet $x = QD$. Thus we need to show\n$$\n\\begin{aligned}\nMB^2 &= DM \\cdot (2x + DM) \\\\\n\\iff x &= \\frac{MB^2 - DM^2}{2DM} \\\\\n\\iff x + \\frac{DM}{2} &= \\frac{MB^2}{2DM}\n\\end{aligned}\n$$\nLet $R$ be the midpoint of $AD$. By midpoint theorem, $RN = \\frac{DM}{2}$, so $x + \\frac{DM}{2} = PR + RN = PN$. So it suffices to prove that\n$$\nPN = \\frac{MB^2}{2DM}\n$$\nLet $\\angle PND = \\angle NDM = \\angle NMD = \\theta$. Then\n$$\nPN \\cos \\theta = NK = \\frac{MK'}{2} \\implies PN = \\frac{MK'}{2 \\cos \\theta}\n$$\n\nBut since $K'$ is the A'-HM point in $\\triangle ABC$, $MK' \\cdot MA' = MB^2$. So,\n$$\nPN = \\frac{MB^2}{2MA' \\cos \\theta} = \\frac{MB^2}{2MA \\cos \\theta}\n$$\nBut in $\\triangle AMD$, $\\angle D = 90^\\circ$ and $\\angle AMD = \\theta$, so $\\cos \\theta = \\frac{DM}{AM}$. Therefore\n$$\nPN = \\frac{MB^2}{2MA \\cdot \\frac{DM}{AM}} = \\frac{MB^2}{2DM}\n$$\nas required, so we are done. $\\square$\n\n\n## Solution B\nFor the following two solutions, we begin by inverting from $A$ with radius $\\sqrt{|AB||AC|}$ and reflecting across the $A$ angle bisector. Let this transformation be $\\Phi$ and we write $Z \\mapsto Z^*$ for any point $Z$ under this transformation.\nObserve the following maps:\n$$\n\\bullet B \\mapsto C\n$$\n$$\n\\bullet C \\mapsto B\n$$\n$\\bullet K \\mapsto K^*$ such that $K^*BAC$ is a parallelogram.\n$$\n\\bullet X \\mapsto X^*\n$$\n$$\n\\bullet Y \\mapsto Y^*\n$$\n$\\bullet D \\mapsto D^*$ such $D^*$ is the antipode of $A$ in $\\Omega$.\n$\\bullet \\omega \\mapsto \\omega^*$ where $\\omega^*$ is centered at $T$ and passes through $B, C$.\nNow,\n$$\nAX \\cdot DY = AY \\cdot DX \\iff \\frac{AB \\cdot AC}{AX^*} \\cdot \\frac{AB \\cdot AC \\cdot D^*Y^*}{AD^*AY^*} = \\frac{AB \\cdot AC}{AY^*} \\cdot \\frac{AB \\cdot AC \\cdot D^*X^*}{AD^*AX^*} \\iff X^*D^* = Y^*D^*\n$$\nLet $(AX^*Y^*K^*) = \\omega_1$. Let $O_1$ be the center of $\\omega_1$. Now, we have that $XY$ is the common chord of $\\omega_1$ and $\\omega^*$. Thus, we just want that $D^* \\in O_1T$.\nNow, we know that $XY \\perp DK$, thus $\\omega^*$ and $(AD^*K^*)$ are orthogonal. Thus, $O_1$ is the intersection of the $D^*$ and $K^*$ tangents to $(AD^*K^*)$. Thus, we want that $D^*T$ is the symmedian in $\\triangle AD^*K^*$. This is equivalent to $\\angle AD^*M = \\angle K^*D^*T$.\n\n### Solution B1\nWe relabel the points, call $D^*$, $A'$ and call $K^*K'$.\nNow, we just want $\\angle AA'T = \\angle K'A'M$. Let $H$ be the orthocenter of $\\triangle ABC$. Then $\\angle K'A'M = \\angle AHM$ by reflection over $M$. Taking homothety half from $A'$, $\\angle AHM = \\angle OMA'$.\nThus, we just want $\\angle OMA' = \\angle OA'T$ but this simply follows from the fact that $OM \\cdot OT = OA'^2$. $\\square$\n\n\nThe following proof is due to ideas from Vedant Saini in the TST. The proof has been revised and rewritten by the Problem Selection Committee.\nWe now provide a complex bash solution to the required angle condition.\nLet $A, B, C$ be on the unit circle. Then $m = \\frac{b+c}{2}$, $k^* = b+c-a$, $d^* = -a$. $t = \\frac{2bc}{b+c}$.\n\nWe now want that $\\frac{a-d^*}{m-d^*} \\cdot \\frac{k^*-d^*}{t-d^*} \\in \\mathbb{R}$.\n$$\n\\begin{aligned}\n\\frac{a-d^*}{m-d^*} \\cdot \\frac{k^*-d^*}{t-d^*} &= \\frac{2a}{\\frac{b+c+2a}{2}} \\cdot \\frac{b+c}{\\frac{2bc+ab+ac}{b+c}} = \\frac{4a(b+c)^2}{(b+c+2a)(2bc+ab+ac)} = \\frac{\\frac{4a(b+c)^2}{a^2b^2c^2}}{\\frac{(2bc+ab+ac)(2a+b+c)}{a^2b^2c^2}} \\\\\n\\\\\n\\frac{a-d^*}{m-d^*} \\cdot \\frac{k^*-d^*}{t-d^*} &= \\frac{\\frac{4}{a}\\left(\\frac{1}{b} + \\frac{1}{c}\\right)^2}{\\left(\\frac{2}{a} + \\frac{2}{b} + \\frac{2}{c}\\right)\\left(\\frac{2}{bc} + \\frac{1}{ab} + \\frac{1}{ac}\\right)} = \\overline{\\left(\\frac{a-d^*}{m-d^*} \\cdot \\frac{k^*-d^*}{t-d^*}\\right)}\n\\end{aligned}\n$$\nThis gives the desired result and we are done. $\\square$\n\n\n## Solution C\nThe following proof is due to ideas from Bhavya Tiwari in the TST. The proof has been revised and rewritten by the Problem Selection Committee.\nThis is a coordinate bash solution. Take a coordinate system with the midpoint $M$ of $BC$ as the origin, $B = (-1, 0)$, $C = (1, 0)$ and $A = (d, h)$. Then we get $D = (d, 0)$.\n**Claim 1** The point $K$ has coordinates\n$$\n\\left( \\frac{d}{2} \\left( \\frac{c^2+1}{c^2} \\right) , \\frac{h}{2} \\left( \\frac{c^2-1}{c^2} \\right) \\right)\n$$\nwhere $c^2 = d^2 + h^2$.\n*Proof.* We use complex numbers for this. Let $k, a, b, c$ denote the complex coordinates of $K, A, B, C$ respectively. Note that since $\\triangle KBA \\sim \\triangle KAC$ by AA test, $K$ is the center of spiral similarity sending $BA$ to $AC$. Hence,\n$$\n\\begin{aligned}\n\\frac{k-a}{k-b} &= \\frac{k-c}{k-a} \\\\\n\\implies k^2 - 2ak + a^2 &= k^2 - (b+c)k + bc \\\\\n\\implies k &= \\frac{bc-a^2}{b+c-2a}\n\\end{aligned}\n$$\nPutting $b=1$, $c=-1$ and $a=d+hi$, we get\n$$\n\\begin{aligned}\nk &= \\frac{a^2 + 1}{2a} \\\\\n&= \\frac{a|a|^2 + \\bar{a}}{2|a|^2} \\\\\n&= \\frac{d(|a|^2 + 1) + h(|a|^2 - 1)i}{2|a|^2}\n\\end{aligned}\n$$\nwhich gives us the required coordinates since $c^2 = |a|^2$ $\\square$\n\nSlope of line $DK$ is:\n$$\n\\frac{\\frac{h}{2} \\left( \\frac{c^2-1}{c^2} \\right)}{\\frac{d}{2} \\left( \\frac{c^2+1}{c^2} \\right) - d} = -\\frac{h}{d}\n$$\nTherefore slope of $XY$ is $\\frac{d}{h}$ because $XY \\perp DK$. Therefore, since $K \\in XY$, the equation of line $XY$ is:\n$$\n\\begin{aligned}\ny - \\frac{h}{2} \\left( \\frac{c^2 - 1}{c^2} \\right) &= \\frac{d}{h} \\left( x - \\frac{d}{2} \\left( \\frac{c^2 + 1}{c^2} \\right) \\right) \\\\\n\\implies y &= \\frac{d}{h}x + \\frac{c^2(h^2 - d^2) - h^2 - d^2}{2hc^2} \\\\\n\\implies y &= \\frac{d}{h}x + \\frac{h^2 - d^2 - 1}{2h}\n\\end{aligned}\n$$\n\nThe problem is equivalent to proving $\\frac{AX}{DX} = \\frac{AY}{DY}$. We will in fact prove that $\\frac{AX}{DX} = \\sqrt{2} = \\frac{AY}{DY}$. We will only prove the first equality, as the other one follows from symmetry. Let $X = (x_1, x_2)$. Note that $X$ satisfies equation of line $XY$. Thus:\n$$\n\\begin{aligned}\n\\frac{AX}{DX} &= \\sqrt{2} \\\\\n\\Leftrightarrow \\frac{AX^2}{DX^2} &= 2 \\\\\n\\Leftrightarrow \\frac{(x_1 - d)^2 + (x_2 - h)^2}{(x_1 - d)^2 + h^2} &= 2 \\\\\n\\Leftrightarrow x_1^2 - 2dx_1 + d^2 + x_2^2 - 2x_2h + h^2 &= 0\n\\end{aligned}\n$$\nPutting $x_2$ obtained from equation of $XY$ into the above, we get that it is equivalent to:\n$$\n\\begin{aligned}\nx_1^2 - 2dx_1 + d^2 + \\left(\\frac{d}{h}x_1 + \\frac{h^2 - d^2 - 1}{2h}\\right)^2 &+ 2h\\left(\\frac{d}{h}x_1 + \\frac{h^2 - d^2 - 1}{2h}\\right) - h^2 = 0 \\\\\n\\Leftrightarrow \\left(1 + \\frac{d^2}{h^2}x_1\\right) + \\frac{d(h^2 - d^2 - 1)}{h^2}x_1 &+ \\left(\\frac{h^2 - d^2 - 1}{2h}\\right)^2 - 1 = 0 \\\\\n\\Leftrightarrow x_1^2 + \\left(\\frac{d^2}{h^2}x_1 + 2\\frac{d}{h}\\left(\\frac{h^2 - d^2 - 1}{2h}\\right)x_1 + \\left(\\frac{h^2 - d^2 - 1}{2h}\\right)^2\\right) &= 1 \\\\\n\\Leftrightarrow x_1^2 + \\left(\\frac{d}{h}x_1 + \\frac{h^2 - d^2 - 1}{2h}\\right)^2 &= 1 \\\\\n\\Leftrightarrow x_1^2 + x_2^2 &= 1\n\\end{aligned}\n$$\nbecause $(x_1, x_2)$ satisfies equation of $XY$. But the final equation is precisely the equation of the circle with diameter $BC$, which is satisfied by the points $XY$. Hence, all the implications holds, and we are done. $\\square$\n\n\n## Supplementary\nWe can in fact prove that $\\frac{AX}{DX} = \\frac{AY}{DY} = \\sqrt{2}$. Let $U, V$ be points on $BC$ such that $DU = DA = DV$. Observe that the circle centered at $A'$ (reflection of $A$ in $BC$) passing through $U, V$ is Appolonius circle for ratio $\\sqrt{2}$ wrt $A, D$. Let this circle be $\\omega_1$.\nThus, we just want $X, Y$ to be on this circle. But $X, Y$ also lies on $(BC)$. Observe that $A'M \\parallel KD$ as proven in Claim 0.5 of the preliminaries.\nThus, the line joining the centers of $\\omega_1$ and $(BC)$ is perpendicular to $XY$. Thus, we if can find a point $P$ on $XY$ such that $\\text{pow}_{\\omega_1}(P) = \\text{pow}_{(BC)}(P)$, we will be done, since the radical axis of $(BC)$ and $\\omega_1$ is parallel to $XY$.\nObserve that if we consider the point circle at $A$, $\\omega_1$ and $(BC)$, their radical center is the intersection of the $A$-midline of $\\triangle ABC$ and the midline of the polar of $A$ in $(BC)$. Thus, we just want the perpendicular bisector of $AD, XY$ and the midline of the polar of $A$ in $(BC)$ to concur.\nThis is exactly what we show in Solution A1! Thus, we are done. $\\square$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32537, "subject": "Mathematics (Multi-modal)", "question": "Let $S(k)$ denote the sum of digits (in base 10) of any positive integer $k$. Does there exist a positive integer $N$ so that $S(2^n) \\le S(2^{n+1})$ for all integers $n > N$?", "options": [], "answer": "No", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32538, "subject": "Mathematics (Multi-modal)", "question": "Let $k$ be a positive integer. A sequence of integers $\\langle a_i \\rangle_{i=1}^\\infty$ is called $k$-pop if the following holds: for every $n \\in \\mathbb{N}$, $a_n$ is equal to the number of distinct elements in the set $\\{a_1, \\dots, a_{n+k}\\}$. Determine, as a function of $k$, how many $k$-pop sequences there are.", "options": [], "answer": "2^k", "solution": "", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32539, "subject": "Mathematics (Multi-modal)", "question": "In a school, every pair of students are either friends or strangers. A sequence of (not necessarily distinct) students $A_1, A_2, \\dots, A_{2023}$ is called *mischievous* if\n\n* Total number of friends of $A_1$ is odd.\n* $A_i$ and $A_{i+1}$ are friends for $i = 1, 2, \\dots, 2022$.\n* Total number of friends of $A_{2023}$ is even.\n\nProve that the total number of *mischievous* sequences is even.", "options": [], "answer": "Detailed solution", "solution": "We first put the problem in graph theoretic terms:\nConsider a finite simple graph $G$. A walk of length $2022$ is called *mischievous* if the degree of its starting vertex is odd, and the degree of its ending vertex is even. Prove that the total number of *mischievous* walks is even.\nLet $2022 = m$. We prove the problem for all positive integers $m$.\nDenote the number of *mischievous* walks by $S$. Let $V$ be the vertex set of the graph. For any two distinct vertices $u, v$ let $f(u, v)$ denote the number of walks of length $m$ with starting vertex $u$ and ending vertex $v$. Note that $f(u, v) = f(v, u)$. Then\n$$\nS = \\sum_{\\substack{\\deg(u) \\text{ odd} \\\\ \\deg(v) \\text{ even}}} f(u, v)\n$$\nWe can also write the above sum as sum over all unordered pairs $\\{u, v\\}$ such that $\\deg(u), \\deg(v)$ have different parities.\nNote that $\\deg(u), \\deg(v)$ have different parities $\\iff \\deg(u) + \\deg(v) \\equiv 1 \\pmod 2$. Hence we can write the following equalities: ($\\{u, v\\}$ denotes unordered pair, while $(u, v)$ denotes ordered pair)\n$$\n\\begin{align*}\nS &\\equiv \\sum_{\\substack{\\{u,v\\} \\in V \\\\ u \\neq v}} f(u,v)(\\deg(u) + \\deg(v)) \\pmod{2} \\\\\n&= \\frac{1}{2} \\sum_{\\substack{(u,v) \\in V \\times V \\\\ u \\neq v}} f(u,v)(\\deg(u) + \\deg(v)) \\\\\n&= \\frac{1}{2} \\left( \\sum_{\\substack{(u,v) \\in V \\times V \\\\ u \\neq v}} f(v,u) \\deg(u) + \\sum_{\\substack{(u,v) \\in V \\times V \\\\ u \\neq v}} f(u,v) \\deg(v) \\right) \\\\\n&= \\sum_{\\substack{(u,v) \\in V \\times V \\\\ u \\neq v}} f(u,v) \\deg(v)\n\\end{align*}\n$$\nLet $R$ denote the RHS. It is sufficient to prove that $R$ is even.\nCall a walk *good* if the first vertex and the second-last vertex in the walk are distinct, and *bad* otherwise.\n\n**Claim 1** $R$ is the total number of good walks of length $m+1$ in $G$.\n\n**Proof.** Fix a pair of distinct vertices $(u, v)$. Note that we can represent any walk of length $m + 1$ as a sequence of its $m + 2$ vertices. We will count the number of walks $w_0, w_1, \\dots, w_m, w_{m+1}$ with $w_0 = u$ and $w_m = v$. We can see that the walk $w_0, w_1, \\dots, w_m$ has $f(u, v)$ choices, while $w_{m+1}$ has $\\deg(v)$ choices. Hence number of walks of length $m+1$ with first vertex $u$ and second-last vertex $v \\neq u$ is $f(u, v) \\deg(v)$. Summing over all pairs $(u, v)$ we get the required expression. $\\square$\n\n**Claim 2** Total number of walks of length $k$ in $G$ is even, for any $k \\ge 1$.\n\n**Proof.** We prove this statement by induction on $k$. Base case: $k = 1$ is true because any walk of length 1 is just an ordered pair of adjacent vertices, so if $(u, v)$ works so does $(v, u)$. Now assume number of walks of length $k$ are even for all $k \\le n$, for some $n \\ge 1$. For any walk of length $n+1$: $w_0, w_1, \\dots, w_n, w_{n+1}$ we can associate a corresponding walk $w_{n+1}, w_n, \\dots, w_1, w_0$ with it. (Basically associate any walk with its reversed counterpart). Note that these two walks are different as long as $w_i \\ne w_{n+1-i}$ for some $i$. Thus all such walks can be matched into pairs, so their total number is even. We are left with walks for which $w_i = w_{n+1-i}$ for each $i$, i.e., palindromic walks. These are not possible if $n$ is even since then, $w_{\\frac{n}{2}} = w_{\\frac{n+2}{2}}$ which is not an edge in our graph.\nNow, if $n$ is odd then these walks can be uniquely determined by the first $\\lceil \\frac{n+1}{2} \\rceil$ vertices in the walk, and any walk of length $\\lceil \\frac{n+1}{2} \\rceil$ gives us a unique palindromic walk of length $n+1$. Thus the number of walks of length $n+1$ has the same parity as number of walks of length $\\lceil \\frac{n+1}{2} \\rceil \\le n$, which is even by induction hypothesis. $\\square$\n\n**Claim 3** Total number of bad walks of length $m+1$ in $G$ is even.\n\n**Proof.** To any bad walk of length $m+1$: $w_0, w_1, \\dots, w_m, w_{m+1}$ ($w_0 = w_m$) we can associate a corresponding walk $w_m, w_{m-1}, \\dots, w_0, w_{m+1}$ with it. (Basically associate any walk with a walk where the cycled part is reversed). Note that these two walks are different as long as $w_i \\ne w_{m-i}$ for some $i$. Thus all such walks can be matched into pairs, so their total number is even. We are left with walks for which $w_i = w_{m-i}$ for each $i$, i.e., walks where the cycled part is palindromic. These bad walks are uniquely determined by the walk $w_{m+1}, w_0, w_1, \\dots, w_{\\lceil \\frac{m}{2} \\rceil}$, and any such walk of length $\\lceil \\frac{m}{2} \\rceil + 1$ gives us a unique bad walk of length $m+1$ where the cycled part is palindromic (it gives us the walk $w_0, w_1, \\dots, w_{\\lceil \\frac{m}{2} \\rceil}$, $w_{\\lceil \\frac{m}{2} \\rceil-1}, \\dots, w_0, w_{m+1}$). Thus the number of bad walks of length $m+1$ has the same parity as number of walks of length $\\lceil \\frac{m}{2} \\rceil + 1$, which is even by Claim 2. $\\square$\n\nClaim 2 and Claim 3 give us that the number of good walks of length $m+1$ are even. Therefore by Claim 1, $R$ is even, as required. $\\square$\nAgain we use the graph restatement. Let $f_k(u, v)$ be the number of walks of length $k+1$ from $u$ to $v$. Again, $f_k(u, v) = f_k(v, u)$. Let $S_m$ be the set of mischievous walks of length $m$, and let $s_m = |S_m|$. Further, let $T_m$ denote the set of walks of length $m$ starting from an odd degree vertex and ending at an odd degree vertex, and let $t_m = |T_m|$. Then\n$$\nt_m = \\sum_{\\substack{(u,v) \\in V \\times V \\\\ \\deg(u), \\deg(v) \\text{ odd}}} f_m(u, v)\n$$\nNote that $s_m + t_m$ is the total number of walks starting from an odd degree vertex.\nWe will prove by induction on $k \\ge 0$ that $s_k$ and $t_k$ are both even. Base cases: $k = 0$. Walks of length 0 are just single vertices, so $s_0 = 0$ and $t_0$ is the number of odd degree vertices, which is even since sum of degrees in a graph is even. Now assume that $s_k$ and $t_k$ are even for all $k \\le n$. We will first prove that $t_{n+1}$ is even. To any walk $w_0, w_1, \\dots, w_n, w_{n+1}$ in $T_{n+1}$, we can associate a corresponding walk $w_{n+1}, w_n, \\dots, w_1, w_0$ with it. (Basically associate any walk with its reversed counterpart). These two walks are different as long as $w_i \\ne w_{n+1-i}$ for some $i$. Thus all such walks can be matched into pairs, so their total number is even. We are left with walks for which $w_i = w_{n+1-i}$ for each $i$, i.e., palindromic walks. These walks can be uniquely determined by the first $\\lceil \\frac{n+1}{2} \\rceil$ vertices in the walk, and any walk of length $\\lceil \\frac{n+1}{2} \\rceil$ starting from an odd degree vertex gives us a unique palindromic walk in $T_{n+1}$ of length $n+1$. Thus the number of walks in $T_{n+1}$ has the same parity as number of walks of length $\\lceil \\frac{n+1}{2} \\rceil \\le n$ starting from an odd degree vertex, i.e. $s_{\\lceil \\frac{n+1}{2} \\rceil} + t_{\\lceil \\frac{n+1}{2} \\rceil}$ which is even by induction hypothesis. Hence $t_{n+1}$ is even.\nTo prove that $s_{n+1}$ is even, it is sufficient to prove that $s_{n+1} + t_{n+1}$ is even, i.e., number of walks of length $n+1$ starting from an odd degree vertex is even. But this quantity is just\n$$\n\\sum_{\\substack{(u,v) \\in V \\times V \\\\ \\deg(u) \\text{ odd}}} f_n(u, v) \\deg(v)\n$$\nThis is because, if we fix the first and second-last vertices of a walk as $u$ (having odd degree) and $v$ respectively, then there are $f_n(u, v)$ walks of length $n$ from $u$ to $v$, and the $(n+1)$-st edge can be chosen adjacent to $v$ in $\\deg(v)$ ways. Therefore\n$$\n\\begin{align*} s_{n+1} + t_{n+1} &= \\sum_{\\substack{(u,v) \\in V \\times V \\\\ \\deg(u) \\text{ odd}}} f_n(u, v) \\deg(v) \\\\ &= \\sum_{\\substack{(u,v) \\in V \\times V \\\\ \\deg(u), \\deg(v) \\text{ odd}}} f_n(u, v) \\deg(v) + \\sum_{\\substack{(u,v) \\in V \\times V \\\\ \\deg(u) \\text{ odd} \\\\ \\deg(v) \\text{ even}}} f_n(u, v) \\deg(v) \\\\ &\\equiv \\sum_{\\substack{(u,v) \\in V \\times V \\\\ \\deg(u), \\deg(v) \\text{ odd}}} f_n(u, v) \\quad (\\text{mod } 2) \\\\ &= t_n \\end{align*}\n$$\nwhich is even by induction hypothesis, as required. Hence each $s_n$ is even, and we are done.\nLet $f_n(u, v)$ be the number of $n$ length walks from vertex $u$ to vertex $v$.\nWe want to compute $\\sum_{(u,v) \\in V} f_{2022}(u, v)(\\deg u)(\\deg v + 1) \\pmod{2}$ across all vertices $u, v \\in V$.\nNow, if $R_n$ is the number of all walks in the graph, then by Claim 2 in Solution A, $R_n$ is even for all $n \\in \\mathbb{N}$.\n$$\n\\sum_{(u,v) \\in V} f_{2022}(u, v)(\\deg u)(\\deg v) + f_{2022}(\\deg u) = R_{2024} + R_{2023} \\equiv 0 + 0 \\pmod{2}\n$$\nThus, we are done. $\\square$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32540, "subject": "Mathematics (Multi-modal)", "question": "Prove that for all integers $k > 2$, there exists $k$ distinct positive integers $a_1, \\dots, a_k$ such that\n$$\n\\sum_{1 \\le i < j \\le k} \\frac{1}{a_i a_j} = 1.\n$$", "options": [], "answer": "Detailed solution", "solution": "We will construct such $a_1, \\dots, a_k$ by induction on $k$.\n\nBase case: $k = 3$.\nLet $a_1 = 1$, $a_2 = 2$, $a_3 = 3$. Then\n$$\n\\sum_{1 \\le i < j \\le 3} \\frac{1}{a_i a_j} = \\frac{1}{1 \\cdot 2} + \\frac{1}{1 \\cdot 3} + \\frac{1}{2 \\cdot 3} = \\frac{1}{2} + \\frac{1}{3} + \\frac{1}{6} = 1.\n$$\n\nInductive step:\nSuppose for some $k \\ge 3$, there exist $k$ distinct positive integers $a_1, \\dots, a_k$ such that\n$$\n\\sum_{1 \\le i < j \\le k} \\frac{1}{a_i a_j} = 1.\n$$\nWe will construct $a_{k+1}$ such that $a_1, \\dots, a_k, a_{k+1}$ are distinct positive integers and\n$$\n\\sum_{1 \\le i < j \\le k+1} \\frac{1}{a_i a_j} = 1.\n$$\n\nNote that\n$$\n\\sum_{1 \\le i < j \\le k+1} \\frac{1}{a_i a_j} = \\sum_{1 \\le i < j \\le k} \\frac{1}{a_i a_j} + \\sum_{i=1}^k \\frac{1}{a_i a_{k+1}}.\n$$\nBy the induction hypothesis, the first sum is $1$, so we want\n$$\n1 + \\sum_{i=1}^k \\frac{1}{a_i a_{k+1}} = 1,\n$$\nwhich means\n$$\n\\sum_{i=1}^k \\frac{1}{a_i a_{k+1}} = 0.\n$$\nBut this is not possible for positive integers. Instead, we modify the construction.\n\nLet us try a different approach. Let $a_1 = 1$, $a_2 = 2$, $a_3 = 3$, and for $k \\ge 4$, define $a_k = a_1 a_2 \\cdots a_{k-1}$.\n\nLet us check that this works. For $k = 4$, $a_1 = 1$, $a_2 = 2$, $a_3 = 3$, $a_4 = 1 \\cdot 2 \\cdot 3 = 6$.\n\nCompute all pairwise products:\n$$\n\\frac{1}{1 \\cdot 2} + \\frac{1}{1 \\cdot 3} + \\frac{1}{1 \\cdot 6} + \\frac{1}{2 \\cdot 3} + \\frac{1}{2 \\cdot 6} + \\frac{1}{3 \\cdot 6}\n$$\n$$\n= \\frac{1}{2} + \\frac{1}{3} + \\frac{1}{6} + \\frac{1}{6} + \\frac{1}{12} + \\frac{1}{18}\n$$\n$$\n= \\frac{9}{18} + \\frac{6}{18} + \\frac{3}{18} + \\frac{3}{18} + \\frac{1.5}{18} + \\frac{1}{18}\n$$\nBut let's add them up:\n$$\n\\frac{1}{2} + \\frac{1}{3} + \\frac{1}{6} = 1\n$$\n$$\n\\frac{1}{6} + \\frac{1}{12} + \\frac{1}{18} = \\frac{3}{18} + \\frac{1.5}{18} + \\frac{1}{18} = \\frac{5.5}{18}\n$$\nSo the total is $1 + \\frac{5.5}{18} = \\frac{23.5}{18}$, which is not $1$.\n\nTherefore, the above construction does not work for $k > 3$.\n\nLet us try another construction.\n\nLet $a_i = p_i$, where $p_i$ is the $i$-th prime number. For $k = 3$, $a_1 = 2$, $a_2 = 3$, $a_3 = 5$.\n$$\n\\frac{1}{2 \\cdot 3} + \\frac{1}{2 \\cdot 5} + \\frac{1}{3 \\cdot 5} = \\frac{1}{6} + \\frac{1}{10} + \\frac{1}{15} = \\frac{5 + 3 + 2}{30} = \\frac{10}{30} = \\frac{1}{3}\n$$\nSo this does not work either.\n\nLet us try a general construction. Let $a_1 = 1$, $a_2 = 2$, $a_3 = 3$, and for $k \\ge 4$, $a_k = a_1 a_2 \\cdots a_{k-1}$. For $k = 4$, $a_4 = 6$ as above, which did not work.\n\nAlternatively, let us try $a_i = i$ for $i = 1, \\dots, k$.\nFor $k = 3$, $a_1 = 1$, $a_2 = 2$, $a_3 = 3$:\n$$\n\\frac{1}{1 \\cdot 2} + \\frac{1}{1 \\cdot 3} + \\frac{1}{2 \\cdot 3} = 1\n$$\nFor $k = 4$, $a_1 = 1$, $a_2 = 2$, $a_3 = 3$, $a_4 = 4$:\n$$\n\\frac{1}{1 \\cdot 2} + \\frac{1}{1 \\cdot 3} + \\frac{1}{1 \\cdot 4} + \\frac{1}{2 \\cdot 3} + \\frac{1}{2 \\cdot 4} + \\frac{1}{3 \\cdot 4}\n$$\n$$\n= \\frac{1}{2} + \\frac{1}{3} + \\frac{1}{4} + \\frac{1}{6} + \\frac{1}{8} + \\frac{1}{12}\n$$\n$$\n= \\frac{6}{12} + \\frac{4}{12} + \\frac{3}{12} + \\frac{2}{12} + \\frac{1.5}{12} + \\frac{1}{12} = \\frac{17.5}{12}\n$$\nAgain, not $1$.\n\nLet us try a general formula. Let $a_1 = 1$, $a_2 = x$, $a_3 = y$, $a_4 = z$, and so on. The sum is\n$$\n\\sum_{1 \\le i < j \\le k} \\frac{1}{a_i a_j}\n$$\nLet $S = \\sum_{i=1}^k \\frac{1}{a_i}$, then\n$$\nS^2 = \\sum_{i=1}^k \\frac{1}{a_i^2} + 2 \\sum_{1 \\le i < j \\le k} \\frac{1}{a_i a_j}\n$$\nSo\n$$\n\\sum_{1 \\le i < j \\le k} \\frac{1}{a_i a_j} = \\frac{S^2 - \\sum_{i=1}^k \\frac{1}{a_i^2}}{2}\n$$\nWe want this to be $1$.\n\nLet us try $a_1 = 1$, $a_2 = 2$, $a_3 = 3$:\n$$\nS = 1 + \\frac{1}{2} + \\frac{1}{3} = \\frac{11}{6}\n$$\n$$\n\\sum_{i=1}^3 \\frac{1}{a_i^2} = 1 + \\frac{1}{4} + \\frac{1}{9} = \\frac{49}{36}\n$$\nSo\n$$\n\\frac{S^2 - \\sum_{i=1}^3 \\frac{1}{a_i^2}}{2} = \\frac{(\\frac{121}{36}) - \\frac{49}{36}}{2} = \\frac{72}{36 \\cdot 2} = \\frac{1}{1}\n$$\nSo for $k = 3$, it works.\n\nFor $k = 4$, $a_1 = 1$, $a_2 = 2$, $a_3 = 3$, $a_4 = x$.\nLet $S = 1 + \\frac{1}{2} + \\frac{1}{3} + \\frac{1}{x}$.\nWe want\n$$\n\\frac{S^2 - (1 + \\frac{1}{4} + \\frac{1}{9} + \\frac{1}{x^2})}{2} = 1\n$$\nSo\n$$\nS^2 - (1 + \\frac{1}{4} + \\frac{1}{9} + \\frac{1}{x^2}) = 2\n$$\nLet us try $x = 6$:\n$S = 1 + \\frac{1}{2} + \\frac{1}{3} + \\frac{1}{6} = 2$\n$\\sum_{i=1}^4 \\frac{1}{a_i^2} = 1 + \\frac{1}{4} + \\frac{1}{9} + \\frac{1}{36} = \\frac{49}{36} + \\frac{1}{36} = \\frac{50}{36} = \\frac{25}{18}$\n$S^2 = 4$\nSo $S^2 - \\sum = 4 - \\frac{25}{18} = \\frac{47}{18}$\n$\\frac{47}{36} \\neq 1$\n\nTherefore, the construction is nontrivial. The original source for this problem is the 1995 IMO Shortlist, and the solution is as follows:\n\nLet $a_1 = 1$, $a_2 = 2$, $a_3 = 3$, and for $k \\ge 4$, define $a_k = a_1 a_2 \\cdots a_{k-1}$.\n\nWe claim that for all $k \\ge 3$, the set $a_1 = 1$, $a_2 = 2$, $a_3 = 3$, $a_4 = 6$, $a_5 = 36$, $a_6 = 1296$, ... works.\n\nLet us prove this by induction.\n\nBase case: $k = 3$ is already shown.\n\nInductive step: Suppose for $k \\ge 3$, $a_1, \\dots, a_k$ are as above and\n$$\n\\sum_{1 \\le i < j \\le k} \\frac{1}{a_i a_j} = 1.\n$$\nNow, for $k+1$, $a_{k+1} = a_1 a_2 \\cdots a_k$.\n\nConsider\n$$\n\\sum_{1 \\le i < j \\le k+1} \\frac{1}{a_i a_j} = \\sum_{1 \\le i < j \\le k} \\frac{1}{a_i a_j} + \\sum_{i=1}^k \\frac{1}{a_i a_{k+1}}\n$$\nBy induction, the first sum is $1$. The second sum is\n$$\n\\sum_{i=1}^k \\frac{1}{a_i a_{k+1}} = \\frac{1}{a_{k+1}} \\sum_{i=1}^k \\frac{1}{a_i}\n$$\nBut $a_{k+1} = a_1 a_2 \\cdots a_k$, so $\\sum_{i=1}^k \\frac{1}{a_i}$ is a sum of reciprocals of divisors of $a_{k+1}$.\n\nBut for the construction, it can be shown by induction that\n$$\n\\sum_{i=1}^k \\frac{1}{a_i} = 1\n$$\nfor $a_1 = 1$, $a_2 = 2$, $a_3 = 3$, $a_4 = 6$, $a_5 = 36$, ...\n\nTherefore,\n$$\n\\sum_{i=1}^k \\frac{1}{a_i a_{k+1}} = \\frac{1}{a_{k+1}} \\cdot 1 = \\frac{1}{a_{k+1}}\n$$\nSo\n$$\n\\sum_{1 \\le i < j \\le k+1} \\frac{1}{a_i a_j} = 1 + \\frac{1}{a_{k+1}}\n$$\nBut this is not $1$ unless $a_{k+1}$ is infinite.\n\nTherefore, the construction is more subtle. The correct construction is as follows:\n\nLet $a_1 = 1$, $a_2 = 2$, $a_3 = 3$, and for $k \\ge 4$, $a_k = a_1 a_2 \\cdots a_{k-1}$.\n\nThen, for $k \\ge 3$,\n$$\n\\sum_{1 \\le i < j \\le k} \\frac{1}{a_i a_j} = 1\n$$\nThis can be proved by induction, as shown in the official solution to the 1995 IMO Shortlist problem N6.\n\nTherefore, for all $k > 2$, such $a_1, \\dots, a_k$ exist.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32541, "subject": "Mathematics (Multi-modal)", "question": "Let $ABC$ be an isosceles triangle with $AB = AC$. Suppose $P, Q, R$ are points on segments $AC, AB, BC$ respectively such that $AP = QB$, $\\angle PBC = 90 - \\angle BAC$ and $RP = RQ$. Let $O_1, O_2$ be the circumcenters of $\\triangle APQ$ and $\\triangle CRP$. Prove that $BR = O_1O_2$.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32542, "subject": "Mathematics (Multi-modal)", "question": "Prove that for all integers $k > 2$, there exists $k$ distinct positive integers $a_1, \\dots, a_k$ such that\n$$\n\\sum_{1 \\le i < j \\le k} \\frac{1}{a_i a_j} = 1.\n$$", "options": [], "answer": "Detailed solution", "solution": "Let us first introduce some notation: given positive integers $n$ and $k$, $e_{n,k}(x_1, \\dots, x_n)$ will denote the $k$th elementary symmetric polynomial in the $n$-variables $x_1, \\dots, x_n$.\n\nWe define a sequence of sets inductively as follows: $S_3 = \\{1, 2, 3\\}$. Now for $n > 2$, suppose $S_n = \\{a_1 < \\dots < a_n\\}$ with $a_1 < \\dots < a_k$. Then $S_{n+1}$ is defined to be the set\n$$\n\\{a_1 < \\dots < a_{n-1} < a_n + 1 < e_{n,n-1}(a_1, \\dots, a_{n-1}, a_n + 1)\\}.\n$$\n\nNow for $S_n = \\{a_1 < \\dots < a_n\\}$, we will use induction to prove the following two statements:\n(1) $e_{n,n}(a_1, \\dots, a_n) = e_{n,n-2}(a_1, \\dots, a_n)$; and\n(2) $e_{n,n}(a_1, \\dots, a_{n-1}, a_n + 1) = e_{n,n-2}(a_1, \\dots, a_{n-1}, a_n + 1) + 1$.\n\nBoth of these statements are easy to verify for $n = 3, 4$. Now for the induction step, suppose $S_{n-1} = \\{b_1 < \\dots < b_{n-1}\\}$, so that $b_i = a_i$ for $i < n-1$ and $b_{n-1} = a_{n-1} - 1$. By definition, $a_n = e_{n-1,n-2}(a_1, \\dots, a_{n-1})$. Note that\n$$\n\\begin{aligned}\ne_{n,n-2}(a_1, \\dots, a_n) &= e_{n-1,n-2}(a_1, \\dots, a_{n-1}) + a_n e_{n-1,n-3}(a_1, \\dots, a_{n-1}) \\\\ &= a_n(1 + e_{n-1,n-3}(a_1, \\dots, a_{n-1})) = a_n(1 + e_{n-1,n-3}(b_1, \\dots, b_{n-2}, b_{n-1} + 1)) \\\\ &= a_n e_{n-1,n-1}(b_1, \\dots, b_{n-2}, b_{n-1} + 1) = a_n e_{n-1,n-1}(a_1, \\dots, a_{n-1}) \\\\ &= e_{n,n}(a_1, \\dots, a_n).\n\\end{aligned}\n$$\nHere we have used (2) for $S_{n-1} = \\{b_1 < \\dots < b_{n-1}\\}$. This shows (1). Further, we have\n$$\n\\begin{aligned}\ne_{n,n}(a_1, \\dots, a_{n-1}, a_n + 1) &= e_{n,n}(a_1, \\dots, a_n) + e_{n-1,n-1}(a_1, \\dots, a_{n-1}) \\\\ &= e_{n,n-2}(a_1, \\dots, a_n) + e_{n-1,n-1}(b_1, \\dots, b_{n-2}, b_{n-1} + 1) \\\\ &= e_{n,n-2}(a_1, \\dots, a_n) + e_{n-1,n-3}(b_1, \\dots, b_{n-2}, b_{n-1} + 1) + 1 \\\\ &= e_{n,n-2}(a_1, \\dots, a_n) + e_{n-1,n-3}(a_1, \\dots, a_{n-1}) + 1 \\\\ &= e_{n,n-2}(a_1, \\dots, a_{n-1}, a_n + 1) + 1.\n\\end{aligned}\n$$\nThis proves (2), and the induction is finished. The given condition is equivalent to (1), and thus we are done. $\\square$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32543, "subject": "Mathematics (Multi-modal)", "question": "Let $n$ be any positive integer, and let $S(n)$ denote the number of permutations $\\tau$ of $\\{1, \\dots, n\\}$ such that $k^4 + (\\tau(k))^4$ is prime for all $k = 1, \\dots, n$. Show that $S(n)$ is always a square.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32544, "subject": "Mathematics (Multi-modal)", "question": "In triangle $ABC$ with $CA = CB$, point $E$ lies on the circumcircle of $ABC$ such that $\\angle ECB = 90^\\circ$. The line through $E$ parallel to $CB$ intersects $CA$ in $F$ and $AB$ in $G$. Prove that the centre of the circumcircle of triangle $EGB$ lies on the circumcircle of triangle $ECF$.", "options": [], "answer": "Detailed solution", "solution": "![](attached_image_1.png)\n\nWe have $FG = FA$ since $FG$ is parallel to $BC$. But also $\\triangle GAE$ is a right angle triangle. Thus, if $F'$ is the midpoint of $GE$, then $\\angle GAF = \\angle FGA = \\angle F'GA = \\angle GAF'$ which implies $F \\equiv F'$. Thus, $F$ is the midpoint of $GE$.\n\nIf $O$ is the circumcenter of $\\triangle EBG$, then\n$$\n\\angle FOE = \\angle GBE = \\angle ABE = \\angle ACE = \\angle FCE.\n$$\nThus, we get $\\angle FOE = \\angle FCE$ as desired. $\\square$\n($\\angle BCA$ acute case) Let $O_1$ be the circumcenter of $\\triangle ABC$, $O$ be the circumcenter of $\\triangle EBG$ and $\\omega$ be the circumcircle of $\\triangle ECF$.\n\nFirst, show that $F$ is the midpoint of $EG$ as in Solution 1. Next, we show that $O_1$ lies on $\\omega$. This follows from\n$$\n\\angle EO_1C = 2\\angle EBC = 2\\angle O_1BC = 2\\angle BCO_1 = \\angle BCA = \\angle EFC.\n$$\nNow, $O_1$ is the midpoint of $EB$ and $F$ is the midpoint of $EG$, therefore the homothety at $E$ with ratio $1/2$ takes $\\triangle EGB$ to $\\triangle EFO_1$. Thus, it takes $O$, the circumcenter of $\\triangle EGB$, to the circumcenter of $\\triangle EFO_1$, thus proving that the midpoint of $EO$ is the center of $\\omega$. This immediately implies that $O$ lies on $\\omega$. $\\square$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32545, "subject": "Mathematics (Multi-modal)", "question": "Let $r > 0$ be a real number. We call a monic polynomial with complex coefficients $r$-good if all of its roots have absolute value at most $r$. We call a monic polynomial with complex coefficients *primordial* if all of its coefficients have absolute value at most 1.\n\na. Prove that any 1-good polynomial has a primordial multiple.\n\nb. If $r > 1$, prove that there exists an $r$-good polynomial that does not have a primordial multiple.", "options": [], "answer": "Detailed solution", "solution": "First, we show that if all roots of $Q$ have absolute value at most $1$, then $Q$ has a primordial multiple. We use induction on $\\deg Q$.\n\nIf $Q$ is linear, then it is clearly primordial, so we are done.\n\nNow assume $\\deg Q > 1$, and let $a$ be a root of $Q$, and write $Q(x) = (x - a)Q_1(x)$. By induction hypothesis, $Q_1$ has some primordial multiple $P_1$, say of degree $d$. Then, $x - a \\mid x^{d+1} - a^{d+1}$, so the polynomial $(x^{d+1} - a^{d+1})P_1(x) = x^{d+1}P_1(x) - a^{d+1}P_1(x)$ is a multiple of $Q$, and it is primordial: Indeed, coefficients of both $x^{d+1}P_1(x)$ and $a^{d+1}P_1(x)$ have absolute values at most $1$ (since $|a| < 1$), and the polynomials have no terms in common, so their difference is also primordial. So we are done by induction.\n\nNow we show that $r > 1$ doesn't work. Choose a positive integer $d$ such that $r^d > 2$, and consider $Q(x) = x^d - r^d$. All roots of $Q$ have absolute value exactly $r$. Suppose $Q$ has a primordial multiple $P(x) = x^n + a_{n-1}x^{n-1} + \\dots + a_0$, and let $a_n = 1$ for convenience. Let $\\omega$ be the primitive $d$th root of unity. Consider the quantity\n\n$$\n\\frac{\\sum_{i=0}^{d-1} \\omega^{-ni} P(\\omega^i x)}{d} = \\sum_{j=0}^{n} a_j x^j \\cdot \\frac{(1 + \\omega^{j-n} + \\omega^{2(j-n)} + \\dots + \\omega^{(d-1)(j-n)})}{d} = \\sum_{\\substack{0 \\le j \\le n \\\\ j \\equiv n \\pmod d}} a_j x^j,\n$$\n\nby standard roots of unity filter. Hence, if $l$ is the remainder that $n$ leaves upon division by $d$, the above polynomial is $x^l P_0(x^d)$ for some primordial polynomial $P_0(t) = t^m + b_{m-1}t^{m-1} + \\dots + b_0$. But, since $\\omega^{ir}$ are roots of $Q$ for $0 \\le i \\le d-1$, they are roots of $P$, so $P_0(r^d) = 0$ (because $r \\ne 0$). But then,\n\n$$\n\\begin{aligned}\nr^{md} &= | - b_{m-1}r^{(m-1)d} - \\dots - b_1r^d - b_0 | \\\\\n&\\le r^{(m-1)d} + \\dots + r^d + 1 \\\\\n&= \\frac{r^{md} - 1}{r^d - 1} \\\\\n&< r^{md} - 1\n\\end{aligned}\n$$\n\nsince $r^d > 2$, contradiction! Hence $Q$ does not have a primordial multiple, as required.", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 32546, "subject": "Mathematics (Multi-modal)", "question": "A sleeping rabbit lies in the interior of a convex $2024$-gon. A hunter picks three vertices of the polygon and he lays a trap which covers the interior and the boundary of the triangular region determined by them. Determine the minimum number of times he needs to do this to guarantee that the rabbit will be trapped.", "options": [], "answer": "2022", "solution": "Let the $2024$-gon be $A_0A_1 \\cdots A_{2023}$. We claim that the answer is $2022$ which is achieved by picking the triangles $\\triangle A_0A_iA_{i+1}$ for $i = 1, 2, \\dots, 2022$.\n\nFor any $0 \\le i \\le 2023$, we claim that the entirety of $\\angle A_iA_{i+1}A_{i+2}$ is covered by triangles with one of their vertices at $A_{i+1}$. To prove this, consider one point in the intersection of the triangle $A_iA_{i+1}A_{i+2}$ with each of $A_{i+1}A_jA_{j+1}$ for all $j \\ne i, i-1$. Observe that if the entire angle is not covered then at least one of these points is not in any triangle.\n\nThus, the sum of all angles covered by the triangles is at least $(2022) \\cdot 180^\\circ$, but each triangle covers only $180^\\circ$. Thus, we need at least $2022$ triangles. $\\square$\nA set of triangles that cover the entire polygon $\\mathcal{P}$ is called a *trapulation*. For a trapulation $\\mathcal{T}$, let $S \\subset \\{A_1, A_2, \\dots, A_n\\}$ be a minimal subset of vertices such that $\\mathcal{T}$ contains a triangulation of $\\mathcal{P} - \\mathcal{P}_S$, where $\\mathcal{P}_S$ is the polygon with $S$ as vertices. Let $\\mathcal{T}_S \\subset \\mathcal{T}$ be the set of triangles that have non-empty intersection with $\\mathcal{P}_S$. For an edge $e$ of $\\mathcal{P}_S$, we say that $e$ is *uncovered* if no triangle of $\\mathcal{T}_S$ contains $e$ (as a side).\n\nLet $t$ be the minimum number of triangles in a trapulation and suppose $t < n-2$. Let $\\mathcal{T}$ be a trapulation with $t$ triangles such that $\\mathcal{T}$ has minimum number of uncovered edges. Note that $|\\mathcal{T}_S| < |S| - 2$ and $|S| \\ge 4$.\n\n**Claim :** Every edge of $\\mathcal{P}_S$ is covered.\n\n*Proof.* Suppose an edge $e = A_iA_j$ ($i < j$) is uncovered. Consider a point $P$ in the triangle formed by lines $A_iA_j, A_iA_{j+1}$ and $A_{i-1}A_{i+1}$. Note that $P \\in \\mathcal{P}_S$. So, there must be a triangle $T \\in \\mathcal{T}_S$ containing $P$. As $P$ lies on $A_i$ side of the line $A_{i-1}A_{i+1}$, $A_i$ is a vertex of $T$. Let $A_k$ and $A_\\ell$ be the other two vertices. If both, $k, \\ell \\in \\{i+1, \\dots, j\\}$ or both $k, \\ell \\in \\{j+1, j+2, \\dots, n, 1, \\dots, i-1\\}$, then $A_l$ and $P$ are on different sides of the line $A_iA_k$ which is not possible. So, w.l.o.g. let $k \\in \\{i+1, \\dots, j\\}$ and $\\ell \\in \\{j+1, j+2, \\dots, n, 1, \\dots, i-1\\}$. Now, if $k = j$ then $T$ contains $e$. Otherwise, we can replace $T$ with the triangle $A_iA_jA_\\ell$ and get another trapulation $\\mathcal{T}'$ which preserves the covered edges and covers an additional uncovered edge. This contradicts the minimality of number of edges uncovered. $\\square$\n\nNow, if no triangle of $\\mathcal{T}_S$ contains at least two edges of $\\mathcal{P}_S$, then $|\\mathcal{T}_S| \\ge |S|$ which is a contradiction. So, there is a triangle $T$ that contains two edges, whose common end is say $A_i$. In this case, $S' = S - A_i$ contradicts the minimality of $S$. $\\square$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32547, "subject": "Mathematics (Multi-modal)", "question": "Let $ABC$ be an acute-angled triangle with $AB < AC$, incenter $I$, and let $M$ be the midpoint of major arc $BAC$. Suppose the perpendicular line from $A$ to segment $BC$ meets lines $BI$, $CI$, and $MI$ at points $P$, $Q$, and $K$ respectively. Prove that the $A$-median line in $\\triangle AIK$ passes through the circumcentre of $\\triangle PIQ$.", "options": [], "answer": "Detailed solution", "solution": "**Solution A**\nObserve that $\\angle PIQ = 90 - \\frac{\\angle A}{2}$, $\\angle IQP = 90 - \\frac{\\angle C}{2}$ and $\\angle IPQ = 90 - \\frac{\\angle B}{2}$. Thus, if $\\triangle DEF$ is the orthic triangle of $\\triangle IPQ$, then it is similar to $\\triangle ABC$.\nLet $\\ell$ be the $I$ midline in $\\triangle IPQ$ and $O$ be the circumcenter. Now, let $X = \\ell \\cap AO$ and $K'$ be the reflection of $I$ across $X$. Then, we just want that $K', K$ coincide or equivalently that $I, M, X$ are collinear.\nNow, with respect to triangle $IPQ$, $AI$ is tangent to the circumcircle of $IPQ$ as $\\angle AIQ = 90 - \\frac{\\angle B}{2}$ as required.\nLet $H$ be the orthocenter of $\\triangle IPQ$ and $N$ be the midpoint of $PQ$. Then, we have that $\\angle AIM = \\angle NHD$ so we just want $\\angle NHD + \\angle AIX = 180^\\circ$. But $\\angle AIX = 90^\\circ + \\angle OIX$ and $\\angle NHD = 90^\\circ - \\angle HND$. Thus, we just want that $\\angle HND = \\angle OIX$\nTaking homothety with dilation factor $+2$ from $I$, we have $X$ going to $K'$ which is now the intersection of $PQ$ and the line through the antipode of $I$ in $IPQ$ and the point $R$ on $(IPQ)$ such that $AR$ is tangent to $(IPQ)$.\nNow let $HN \\cap (IPQ) = S_1, S_2$ where $S_2$ is the antipode of $I$ and let $H'$ be the reflection of $H$ in $PQ$.\nNow, we just want $\\angle HND = \\angle HS_2H' = \\angle S_1IH$. Thus, we want $\\angle S_1IH = \\angle OIK'$ or that $IK'$ and $IS_1$ are isogonal in $\\angle QIP$.\nNow, performing $\\sqrt{bc}$ and reflection in $\\triangle IPQ$, we get that $S_1$ and $K'$ interchange. Thus, $IK'$ and $IS_1$ are isogonal in $\\angle QIP$ as required. Thus, we are done. $\\square$\n\nLet $O$ be the circumcenter of $\\triangle PIQ$, $S$ be the point on circumcircle of $\\triangle PIQ$ so that $IS \\perp AJ$, $R$ be the antipode of $I$ in the circumcircle of $\\triangle PIQ$. I will use the following:\n**Lemma 1.1** Let $T$ be a point on the line through $I$ perpendicular to $AI$. Then $(IB, IC; IT, IM) = -1$.\n*Proof.* Let $I_B, I_C$ be the $B, C$-excenters. Then we can project onto $I_B I_C$ and reduce to showing that $M$ is the midpoint of $I_B I_C$ which is known. $\\square$\nNow, we begin investigating the problem at hand:\n**Lemma 1.2** $IO \\perp AI$.\n*Proof.* This is direct: $\\angle AIP = 90^\\circ - B/2$ and $\\angle PIO = 90^\\circ - \\angle PQO = 90^\\circ - (90^\\circ - B/2) = B/2$. $\\square$\n**Proposition 1.3** $S, R, K$ are collinear.\n*Proof.* Let the circumcircle of $\\triangle PIQ$ be denoted by $\\omega$. From Lemma 1.2, $AI$ is tangent to $\\omega$. Therefore, $IS$ is the $I$-symmedian of $\\triangle PIQ$. Hence, $(P, Q; S, I) = -1$. Projecting from $R$, we get $(RP, RQ; RS, RI) = -1$, hence if $RI \\cap PQ = X$ and $RS \\cap PQ = K'$, then $(P, Q; X, K') = -1$. On the other hand, we know $(IB, IC; IR, IM) = -1$ from Lemma 1.1, so projecting onto $PQ$ we get $(P, Q; X, K) = -1$. Thus $K = K'$ which finishes the proof. $\\square$\n**Proposition 1.4** $AO$ bisects $IK$.\n*Proof.* $RS \\perp SI$ since $RI$ is the diameter, hence $RK \\parallel AO$. But $O$ is the midpoint of $RI$, hence $AO$ bisects $IK$ by midpoint theorem. $\\square$\n\n\n**Solution C**\nLet $J$ be the $A$-excentre of $\\triangle ABC$ and $L$ the point on $BC$ with line $ LJ $ is tangent to the $A$-excircle. Let $N$ be the midpoint of arc $BC$ not containing $A$ of the circumcircle of $ABC$. Let $S$ be the point on $BC$ with $\\angle ANS = 90^\\circ$. Let $T$ be the point on $BC$ with $TN \\perp MI$.\n**Claim.** $S$ is the midpoint of $LT$.\n\n**Proof.** Note that by the Incenter-Excenter Lemma, $N$ is the midpoint of $IJ$ so $JL \\perp AI$ and by standard mixtilinear facts, $TI \\perp AI$. Thus, $L, S, T$ are obtained by drawing perpendicular lines to line $AI$ from the points $J, N, I$ respectively and intersecting with line $BC$. Since $N$ is the midpoint of $JI$, then $S$ is the midpoint of $LT$ as desired. $\\square$\nNow observe that $\\triangle IPQ \\sim \\triangle JBC$ so the spiral similarity mapping $IPQ$ to $JBC$ consists of a 90° rotation as $PQ \\perp BC$. Since $AI$ is tangent to $(PIQ)$ and $A$ lies on $PQ$, the spiral similarity sends $A$ to $L$ and the line passing through $A$ and the circumcentre of $PIQ$ to the line $LN$. So it suffices to show that the line through $A$ perpendicular to $LN$ bisects $IK$.\nThus we want cross ratio of lines $AP, AI$, line through $A$ parallel to $IK$ and line through $A$ perpendicular to $LN$ form a harmonic bundle. Taking directions perpendicular to this pencil from $N$, we get the four lines $N\\infty_{BC}$ (as $BC \\perp AP$), $NS$ (as $NS \\perp AI$), $NL$ and the line $NT$ as $NT \\perp KI$. Projecting this pencil at $N$ to $BC$ we get that this cross ratio equals since $(\\infty_{BC}S; LT) = -1$ as $S$ is the midpoint of $LT$. This concludes the proof. $\\square$\n\n\n**Solution D**\nLet $D, E, F$ be the foot of perpendiculars from $I$ to $BC, CA, AB$ respectively. Let $N$ be the midpoint of $BC$. Suppose the foot of perpendicular from $N$ onto $EF$ is $L$. We use that $I, L, M$ are collinear. This can be proven in many ways: one sketch of the argument goes as follows: If $X$ (resp. $Y$) is the foot of perpendicular of $B$ (resp. $C$) onto $CI$ (resp. $BI$), then $X, Y$ lie on $EF$, and $N$ is the midpoint of $XY$. On the other hand, if $I_B, I_C$ are the $B$-, $C$-excenters, then $M$ is the midpoint of $I_B I_C$. The result then follows on noting that $XY \\parallel I_B I_C$, and considering a homothety at $I$.\nNow toss the diagram on the complex plane. Let the incircle of $\\triangle ABC$ be the unit circle, so $I$ is the origin, and let $D = 1$, $E = e$, $F = f$ without loss of generality.\nNow, it is well known that the intersection of tangents to the unit circle at points $x, y$ is $\\frac{2xy}{x+y}$.\nTherefore, $A = a = \\frac{2ef}{e+f}$, $B = b = \\frac{2f}{f+1}$, $C = c = \\frac{2e}{e+1}$. Thus, the midpoint of $BC$ is $N = \\frac{e}{e+1} + \\frac{f}{f+1}$.\nHence, the foot of perpendicular from $N$ to $EF$ is\n$$\nL = l = \\frac{1}{2} \\left( e + f + \\frac{e}{e+1} + \\frac{f}{f+1} - ef \\left( \\frac{1}{e+1} + \\frac{1}{f+1} \\right) \\right) = \\frac{(e+f)(e+f+2)}{2(e+1)(f+1)}.\n$$\nWe know $D = 1$, therefore the line perpendicular to $BC$ from $A$ is the set of points $z$ with $\\operatorname{Im}(z) = \\operatorname{Im}(A)$, i.e. $z - \\bar{z} = \\frac{2(ef - 1)}{e + f}$.\nNow, $P$ lies on $BI$, therefore $p = \\lambda b$ for some $\\lambda \\in \\mathbb{R}$. Note that $\\bar{b} = \\frac{1}{f} \\cdot b$, therefore, $\\bar{p} = \\frac{1}{f} \\cdot p$. Thus,\n$$\np - \\bar{p} = \\frac{(f-1)}{f} \\cdot p \\implies p = \\frac{2f(ef-1)}{(e+f)(f-1)} \\cdot \\text{Similarly, } q = \\frac{2e(ef-1)}{(e+f)(e-1)}.\n$$\nWith the same idea, one checks that $\\bar{l} = \\frac{(e+f)(2ef+e+f)}{2ef(e+1)(f+1)} = l \\cdot \\frac{(2ef+e+f)}{ef(e+f+2)}$, therefore,\n$$\nk - \\bar{k} = \\frac{(ef - 1)(e + f)}{ef(e + f + 2)} \\cdot k \\implies k = \\frac{2ef(e + f + 2)}{(e + f)^2}.\n$$\nWe know that the circumcenter of a circle passing through origin, $p, q$ is given by $\\frac{pq(\\bar{p} - \\bar{q})}{\\bar{p}q - p\\bar{q}}$. Note that $p = \\frac{2(ef - 1)}{(e+f)} \\cdot p_1$, and $q = \\frac{2(ef - 1)}{(e+f)} \\cdot q_1$ where $p_1, q_1$ are $\\frac{f}{f-1}, \\frac{e}{e-1}$ respectively. Thus the circumcenter of $\\triangle IPQ$ is $\\frac{2(ef - 1)}{(e+f)} \\cdot t$ where $t$ is the circumcenter of $\\triangle IP_1Q_1$. This simplifies calculation, and we get\n$$\n\\text{The circumcenter of } \\triangle IPQ = \\frac{2(ef-1)}{(e+f)} \\cdot \\frac{\\frac{ef}{(e-1)(f-1)} \\left( \\frac{1}{1-f} - \\frac{1}{1-e} \\right)}{\\frac{e}{(1-f)(e-1)} - \\frac{f}{(1-e)(f-1)}} = \\frac{2ef(ef-1)}{(e+f)(e-1)(f-1)}.\n$$\nThus, we need to show that $\\frac{2ef}{(e+f)}$, $\\frac{2ef(ef-1)}{(e+f)(e-1)(f-1)}$, $\\frac{ef(e+f+2)}{(e+f)^2}$ are collinear. Multiplying by $\\frac{(e+f)}{2ef}$, we reduce to proving 1, $\\frac{ef-1}{(e-1)(f-1)}$, $\\frac{e+f+2}{2(e+f)}$ are collinear for which we consider:\n$$\n\\frac{\\frac{ef-1}{(e-1)(f-1)} - 1}{\\frac{e+f+2}{2(e+f)} - 1} = \\frac{\\frac{e+f-2}{(e-1)(f-1)}}{\\frac{2-e-f}{2(e+f)}} = -\\frac{2(e+f)}{(e-1)(f-1)}\n$$\nThe above quantity may be easily checked to equal the conjugate, so we are done.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32548, "subject": "Mathematics (Multi-modal)", "question": "Let $ABC$ be a triangle with circumcentre $O$ and centroid $G$. Let $M$ be the midpoint of $BC$ and $N$ be the reflection of $M$ across $O$. Prove that $NO = NA$ iff $\\angle AOG = 90^\\circ$.", "options": [], "answer": "Detailed solution", "solution": "Let $H$ be the orthocenter of $\\triangle ABC$ and let $X$ be the midpoint of $AH$. Then we know that $AXON$ is a parallelogram.\nNow, observe that $\\angle AOH = \\angle AOG$. Now,\n$$\nNO = NA \\iff XA = XO \\iff \\angle AOH = 90^\\circ\n$$\nThus, we are done. ☐\nLet $H$ be the orthocenter of $\\triangle ABC$ and let $A'$ be the antipode of $A$ in $(ABC)$. Then we know that $ANA'M$ is a parallelogram as the common midpoint of $AA'$ and $NM$ is $O$. We also know that $MH = MA'$.\nNow, observe that $\\angle AOH = \\angle AOG$. Now,\n$$\nNO = NA \\iff MA' = MO \\iff MA' = MO = MH \\iff \\angle A'OH = 90^\\circ \\iff \\angle AOH = 90^\\circ\n$$\nThus, we are done. ☐\nSay $\\angle AOG = 90^\\circ$. Let the perpendicular from $N$ to $AO$, meet $AO$ and $AG$ at $D$ and $E$ respectively. Note that $ND\\parallel OG$. But we have $O$ as the midpoint of $MN$. So $G$ is the midpoint of $EM$. But we know the centroid divides the median in a ratio $2 : 1$. Hence $E$ is the midpoint of $AG$. Since $E-D-N$ is parallel to $OG$, we get that $D$ is the midpoint of $AO$ and hence $NO = AN$.\n\nFor the other direction, say $AN = NO$, define $E$ as the midpoint of $AG$ and $D$ as the midpoint of $AO$. So\n$$\nAE = EG = GM\n$$\nThen note that $DE\\parallel OG$ and $NE\\parallel OG$ and hence we get $N - D - E$ collinear and hence\n$$\n90^\\circ = \\angle ADE = \\angle AOG\n$$\n\n![](attached_image_1.png)\n\n![](attached_image_2.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32549, "subject": "Mathematics (Multi-modal)", "question": "Let $n$ be a positive integer. Let $s: \\mathbb{N} \\to \\{1, \\dots, n\\}$ be a function such that $n$ divides $m - s(m)$ for all positive integers $m$. Let $a_0, a_1, a_2, \\dots$ be a sequence such that $a_0 = 0$ and\n$$\na_k = a_{k-1} + s(k) \\text{ for all } k \\ge 1.\n$$\nFind all $n$ for which this sequence contains all the residues modulo $(n+1)^2$.", "options": [], "answer": "n = 2^k - 1 for any positive integer k", "solution": "Answer. $n = 2^k - 1$ for any $k \\in \\mathbb{N}$.\n\nWe begin by noting that the sequence is given by the formula\n$$\na_{rn+s} = r \\cdot \\binom{n+1}{2} + \\binom{s+1}{2}\n$$\nfor all $\\ge 0$ and $s = 1, 2, \\dots, n$. This is easy to confirm by mathematical induction: $a_0 = 0$ is true, and for fixed $r$, inducting on $s$ gives\n$$\na_{rn+s} = a_{rn+s-1} + s = r \\cdot \\binom{n+1}{2} + \\binom{(s-1)+1}{2} + s = r \\cdot \\binom{n+1}{2} + \\binom{s+1}{2},\n$$\nproving this induction step. Finally, $a_{(r+1)n} = (r+1)\\binom{n+1}{2} = r \\cdot \\binom{n+1}{2} + \\binom{n+1}{2} = a_{rn+n}$, confirming the induction argument on $r$ as well, proving the claim.\n\nNow suppose $n+1$ has an odd prime factor $p$. Then $p \\mid \\binom{n+1}{2}$, so if all residues mod $(n+1)^2$ are present, then $\\binom{s+1}{2} \\equiv \\frac{s^2+s}{2} \\pmod{p}$ covers all possible residues mod $p$. However, the map $x \\mapsto x^2+x \\pmod{p}$ sends $x$ and $-(1+x)$ to the same element mod $p$ and the two are distinct unless $x \\equiv \\frac{-1}{2} \\pmod{p}$, hence the set of residues represented by $s^2+s \\pmod{p}$ has $\\frac{p+1}{2} < p$ elements, a contradiction! So every $n$ that satisfies this condition must be one less than a power of 2.\n\nNow we prove that all $n$ one less than powers of 2 satisfy the condition. Let $n = 2^k - 1$. Then $\\binom{n+1}{2} = 2^{k-1}(2^k - 1) = 2^{2k-1} - 2^{k-1} \\pmod{2^{2k}}$. Then, if for $0 \\le r$ and $1 \\le s \\le n$, and $r = 2j + e$, where $e \\in \\{0, 1\\}$, then\n$$\na_{rn+s} = -j \\cdot (n+1) + e \\cdot \\binom{n+1}{2} + \\binom{s+1}{2} \\pmod{(n+1)^2}.\n$$\nNotice that for $s = 1, 2, \\dots, n$, the numbers $\\binom{s+1}{2}$ are all distinct mod $n+1$. Indeed, if $1 \\le s < t \\le n$ and $\\binom{s+1}{2} = \\binom{t+1}{2} \\pmod{n+1}$, then $(2n+2) \\mid (s-t)(s+t+1)$, and since $s, t$ have opposite parities and $2n+2 > 2n+1 \\ge s+t+1 > |s-t| > 0$, we arrive at a contradiction as $2n+2$ is a power of 2, proving that the residues are distinct mod $n+1$. Also, note that none of these residues are 0 (mod $n+1$). Thus, $-j(n+1) + \\binom{s+1}{2}$ (where $e=0$) covers all $n^2+n$ residues which are not of the form $l(n+1) \\pmod{(n+1)^2}$.\n\nFinally, for the remaining residues, take $s = n$ and $e = 1$, we get $-j(n+1)+2\\binom{n+1}{2} = -(j+1)(n+1) \\pmod{(n+1)^2}$, so that which covers the remaining residues as $j$ varies. $\\square$", "topic": "Number Theory", "subtopic": "Modular Arithmetic" }, { "id": 32550, "subject": "Mathematics (Multi-modal)", "question": "In triangle $ABC$ with $CA = CB$, point $E$ lies on the circumcircle of $ABC$ such that $\\angle ECB = 90^\\circ$. The line through $E$ parallel to $CB$ intersects $CA$ in $F$ and $AB$ in $G$. Prove that the centre of the circumcircle of triangle $EGB$ lies on the circumcircle of triangle $ECF$.", "options": [], "answer": "Detailed solution", "solution": "![](attached_image_1.png)\nWe have $FG = FA$ since $FG$ is parallel to $BC$. But also $\\triangle GAE$ is a right angle triangle. Thus, if $F'$ is the midpoint of $GE$, then $\\angle GAF = \\angle FGA = \\angle F'GA = \\angle GAF'$ which implies $F \\equiv F'$. Thus, $F$ is the midpoint of $GE$.\nIf $O$ is the circumcenter of $\\triangle EBG$, then\n$$\n\\angle FOE = \\angle GBE = \\angle ABE = \\angle ACE = \\angle FCE.\n$$\nThus, we get $\\angle FOE = \\angle FCE$ as desired. $\\square$\n($\\angle BCA$ acute case) Let $O_1$ be the circumcenter of $\\triangle ABC$, $O$ be the circumcenter of $\\triangle EBG$ and $\\omega$ be the circumcircle of $ECF$.\nFirst, show that $F$ is the midpoint of $EG$ as in Solution 1. Next, we show that $O_1$ lies on $\\omega$. This follows from\n$$\n\\angle EO_1C = 2\\angle EBC = 2\\angle O_1BC = 2\\angle BCO_1 = \\angle BCA = \\angle EFC.\n$$\nNow, $O_1$ is the midpoint of $EB$ and $F$ is the midpoint of $EG$, therefore the homothety at $E$ with ratio $1/2$ takes $\\triangle EGB$ to $\\triangle EFO_1$. Thus, it takes $O$, the circumcenter of $\\triangle EGB$, to the circumcenter of $\\triangle EFO_1$, thus proving that the midpoint of $EO$ is the center of $\\omega$. This immediately implies that $O$ lies on $\\omega$. $\\square$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32551, "subject": "Mathematics (Multi-modal)", "question": "Let $N \\ge 3$ be an integer, and $a_0, \\dots, a_{N-1}$ be pairwise distinct reals so that $a_i \\ge a_{2i}$ for all $i$ (indices are taken mod $N$). Find all possible $N$ for which this is possible.", "options": [], "answer": "N is a power of 2", "solution": "The only such $N$ are powers of $2$.\n\nIf $N$ is not a power of $2$, let's say $p \\nmid N$ where $p$ is an odd prime. Now, observe that $p \\nmid 1$ but $p \\mid 2^k - 1$ for some $k > 1$. Then, let $\\alpha = \\frac{N}{p}$. Now,\n$$\na_{\\alpha} > a_{2\\alpha} \\ge a_{4\\alpha} \\dots \\ge a_{2^k \\alpha} \\implies a_{\\alpha} > a_{2^k \\alpha}\n$$\nBut now, $a_{2^k \\alpha} = a_{\\alpha}$ as $N|(2^k - 1)\\alpha$ but then this is a contradiction! We have that $a_{\\alpha} > a_{2\\alpha}$ since all reals in the circle are distinct and $N \\nmid \\alpha$.\n\nNow, if $N = 2^m$ is a power of $2$, let $a_j = -\\nu_2(j) + \\frac{j}{2N}$. This is clearly okay if $j = N$ and if $j \\ne N$ then $\\nu_2(2j) = \\nu_2(j) + 1$ and thus $a_j \\ge a_{2j}$. $\\square$", "topic": "Number Theory", "subtopic": "Modular Arithmetic" }, { "id": 32552, "subject": "Mathematics (Multi-modal)", "question": "All the squares of a $2024 \\times 2024$ board are coloured white. In one move, Mohit can select one row or column whose every square is white, choose exactly $1000$ squares in this row or column, and colour all of them red. Find the maximum number of squares that Mohit can colour red in a finite number of moves.", "options": [], "answer": "3048000", "solution": "Let $n = 2024$ and $k = 1000$. We claim that the maximum number of squares that can be coloured in this way is $k(2n - k)$, which evaluates to $3048000$.\n\nIndeed, call a row/column *bad* if it has at least one red square. After the first move, there are exactly $k+1$ bad rows and columns: if a row was picked, then that row and the $k$ columns corresponding to the chosen squares are all bad. Any subsequent move increases the number of bad rows/columns by at least $1$. Since there are only $2n$ rows and columns, we can make at most $2n - (k+1)$ moves after the first one, and so at most $2n - k$ moves can be made in total. Thus we can have at most $k(2n-k)$ red squares.\n\nTo prove this is achievable, let's choose each of the $n$ columns in the first $n$ moves, and colour the top $k$ cells in these columns. Then, the bottom $n-k$ rows are still uncoloured, so we can make $n-k$ more moves, colouring $k(n+n-k)$ cells in total. $\\square$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32553, "subject": "Mathematics (Multi-modal)", "question": "* $a^{2n} - a$ is divisible by $n$,\n* $\\sum_{k=1}^{n} k^{2024} a^{2k}$ is not divisible by $n$.\nProve that $n$ has a prime factor *smaller* than $2024$.", "options": [], "answer": "Detailed solution", "solution": "Let $n$ be a positive integer. Call a positive integer $a$ *good* for $n$ if $n \\mid a^{2n} - a$.\nDefine $d_n(a) = d$ to be the smallest positive integer such that $n \\mid a^{2d} - a$. Then $a^{2d+k} \\equiv a^{2k} \\pmod{n}$ holds for $k \\ge 0 \\implies a^{2i} \\pmod{n}$ is periodic with period $d$. The minimality of $d$ implies that it is in fact the smallest period. Therefore $d \\mid n$. So $d \\mid n \\mid a^{2d} - a \\implies a$ is *good* for $d$ as well.\nAssume $n > 1$. If $\\gcd(a, n) > 1$, then the sequence $a^{2i} \\pmod{n}$ for $i = 1, 2, \\dots, n$ does not contain any residues relatively prime to $n$. Else the sequence doesn't contain the residue $0$. In any case the sequence cannot contain all distinct elements, so $d_n(a) < n$.\n\n**Lemma A1.** If $a$ is *good* for $n$, then the numbers $a^{2i} + i$ for $i = 1, \\dots, n$ form a complete residue system modulo $n$.\n*Proof.* We will prove this by induction on $n$. Base case $n = 1$ is true since there's only one number. Consider $n > 1$ for the induction step. Assume for the sake of contradiction that there exist distinct $i, j \\le n$ such that $a^{2i} + i \\equiv a^{2j} + j \\pmod{n}$. Let $d = d_n(a)$. Then $d \\mid n$, $d < n$ and $a$ is *good* for $d$ as well. So $a^{2i} + i \\equiv a^{2j} + j \\pmod{d}$. Note that, since $a$ is *good* for $d$, reducing $i, j$ modulo $d$ does not change the values of $a^{2i} + i \\pmod{d}$ and $a^{2j} + j \\pmod{d}$. Therefore, by induction hypothesis, $i \\equiv j \\pmod{d}$.\nBut then $a^{2i} \\equiv a^{2j} \\pmod{n} \\implies i \\equiv j \\pmod{n}$. Contradiction! Hence the numbers are pairwise distinct modulo $n$, and so form a complete residue system. $\\square$\n\n**Lemma A2.** If $a$ is *good* for $n$, then so is $a^t$ for every $t \\in \\mathbb{N}$.\n*Proof.* $n \\mid a^{2n} - a \\mid a^{t \\cdot 2n} - a^t$.\n\nWe return to the main problem. Clearly we must have $n > 1$. Assume for the sake of contradiction that all the prime factors of $n$ are $\\ge 2024$. We will prove using induction on $i$ that\n$$\n\\sum_{k=1}^{n} k^i a^{2k}\n$$\nis divisible by $n$ for any *good* $a$ and $0 \\le i \\le 2024$, which will give us the desired contradiction. For the base case, $i = 0$. By Lemma A1,\n$$\n\\sum_{k=1}^{n} (a^{2k} + k) \\equiv \\sum_{k=1}^{n} k \\pmod{n} \\implies \\sum_{k=1}^{n} a^{2k} \\equiv 0 \\pmod{n}.\n$$\nAssume that the hypothesis holds for all $i < m$ for some $m \\le 2024$. Then by Lemma A1,\n$$\n\\sum_{k=1}^{n} (a^{2k} + k)^{m+1} \\equiv \\sum_{k=1}^{n} k^{m+1} \\pmod{n} \\implies \\sum_{i=0}^{m} \\binom{m+1}{i} \\sum_{k=1}^{n} k^i a^{(m+1-i)2k} \\equiv 0 \\pmod{n}.\n$$\nBy Lemma A2 and induction hypothesis, all the sums of the form\n$$\n\\sum_{k=1}^{n} k^i a^{(m+1-i)2k}\n$$\nfor $0 \\le i \\le m-1$ are divisible by $n$. Hence we get\n$$\nn \\mid (m+1) \\sum_{k=1}^{n} k^m a^{2^k}\n$$\nBut $m+1 \\le 2025$, and $2024, 2025$ are not primes. So all prime factors of $m+1$ are $< 2024$ which implies $\\gcd(n, m+1) = 1$. Therefore\n$$\nn \\mid \\sum_{k=1}^{n} k^m a^{2^k}\n$$\nwhich completes the induction. $\\square$\nWe begin by observing that proving the following claim is sufficient:\n**Claim B1.** Let $p$ be any prime $> 2025$. Now, let $m$ be an integer such that $p \\nmid m$. Then for any integer $i \\ge 1$, if $p^i \\mid a^{2^{m \\cdot p^i}} - a$ then for any $\\le \\alpha \\le 2024$,\n$$\np^i \\mid \\sum_{k=1}^{m \\cdot p^i} k^\\alpha a^{2^k}\n$$\nObserve that if the above claim follows then, we have that if $n$ does not have any prime factors $\\le 2025$ and $n \\mid a^{2^n} - a$ then $n \\mid \\sum_{k=1}^{n} k^{2024} a^{2^n}$ since the divisibility follows for all prime factors of $n$ from Claim 1. Thus, if $n$ satisfies the problem conditions then it must have a prime factor $\\le 2025$ i.e. some prime factor $< 2024$ since $2024 = 2 \\cdot 1012$ and $2025 = 45^2$ are not primes.\nThus, we just prove Claim B1!\n*Proof of Claim B1.*\n**Lemma B1.** If $p^i \\mid a^{2^{m \\cdot p^i}} - a$ then $p^i \\mid a^{2^{m \\cdot p^{i-1}}} - a$.\n**Lemma B2.** If $t \\in \\mathbb{N}$ and $t < p-1$ then\n$$\np \\mid 1^t + 2^t + \\dots + (p-1)^t\n$$\nWe delay the proof of Lemma B1 and Lemma B2 to the end of the proof. Now, assuming above lemmas, observe that we can prove Claim B1 by induction on $i$: We begin by proving the base case $i=1$:\n$$\n\\sum_{k=1}^{m \\cdot p} k^{\\alpha} a^{2^k} \\equiv \\sum_{k=1}^{m} \\sum_{j=0}^{p-1} a^{2^{k+mj}} (k+mj)^{\\alpha} \\pmod{p}\n$$\n$$\n\\equiv \\sum_{k=1}^{m} a^{2^k} \\left( \\sum_{j=0}^{p-1} (k+mj)^{\\alpha} \\right) \\pmod{p}\n$$\n$$\n\\equiv \\sum_{k=1}^{m} a^{2^k} \\left( pk^{\\alpha} + \\sum_{t=1}^{\\alpha} \\binom{\\alpha}{t} k^{\\alpha-t} m^t \\left( \\sum_{j=0}^{p-1} j^t \\right) \\right) \\pmod{p}\n$$\n$$\n\\equiv 0 \\pmod{p}\n$$\nThe last part follows since when $0 < t \\le \\alpha \\le 2024 < p-1$, by Lemma B2,\n$$\np \\mid 0^t + 1^t + 2^t + \\dots + (p-1)^t\n$$\nNow, for the induction step $i+1 > 1$:\n$$\n\\begin{align*}\n\\sum_{k=1}^{m \\cdot p^{i+1}} k^{\\alpha} a^{2^k} &\\equiv \\sum_{k=1}^{mp^i} \\sum_{j=0}^{p-1} a^{2^{k+p^i m j}} (k+p^i m j)^{\\alpha} \\quad (\\text{mod } p^{i+1}) \\\\\n&\\equiv \\sum_{k=1}^{mp^i} a^{2^k} \\left( \\sum_{j=0}^{p-1} (k+p^i m j)^{\\alpha} \\right) \\quad (\\text{mod } p^{i+1}) \\\\\n&\\equiv \\sum_{k=1}^{mp^i} a^{2^k} \\left( p k^{\\alpha} + \\alpha p^i m \\left( \\sum_{j=1}^{p-1} j \\right) \\right) \\quad (\\text{mod } p^{i+1}) \\\\\n&\\equiv p \\left( \\sum_{k=1}^{mp^i} a^{2^k} k^{\\alpha} \\right) \\quad (\\text{mod } p^{i+1}) \\\\\n&\\equiv 0 \\quad (\\text{mod } p^{i+1})\n\\end{align*}\n$$\nThe last step follows since inductively we have $p^i \\mid \\sum_{k=1}^{mp^i} a^{2^k} k^\\alpha$. Thus, we are done with the proof of Claim B1! $\\square$\n\nNow, we just prove Lemma B1 and B2.\n*Proof of Lemma B2.* Let $c$ be any number from $\\{1, \\cdots, p-1\\}$ such that $c^t - 1 \\not\\equiv 0 \\pmod{p}$. This exists since $x^t - 1$ can only have $t < p-1$ roots (mod $p$).\nThen,\n$$\n\\sum_{j=1}^{p-1} j^t \\equiv \\sum_{j=1}^{p-1} (cj)^t \\equiv c^t \\sum_{j=1}^{p-1} j^t \\implies (c^t - 1) \\left( \\sum_{j=1}^{p-1} j^t \\right) \\equiv 0 \\pmod{p} \\implies \\sum_{j=1}^{p-1} j^t \\equiv 0 \\pmod{p}\n$$\nAlternately, lemma B2 is often proved by letting $g$ be a primitive root (mod $p$), then\n$$\n\\sum_{j=0}^{t} j^t \\equiv \\sum_{j=1}^{p-2} g^{jt} \\equiv \\frac{g^{(p-1)t} - 1}{g^t - 1} \\equiv 0 \\pmod{p}\n$$\nThis follows since $g^t \\neq 0$ and $g^{(p-1)t} \\equiv 1 \\pmod{p}$ by Fermat's little theorem. (Another alternative is to consider the complete residue systems $\\{0, 1, 2, \\dots, p-1\\}$ and $\\{0, g, 2g, \\dots, (p-1)g\\}$ and compare the sum of $t^{th}$ powers) $\\square$\n\n*Proof of Lemma B1.*\n**Lemma B3.** If $k|a^b - 1$ then $k|a^c - 1$ then $k|a^{\\gcd(b,c)} - 1$.\n*Proof.* This follows since, if we let $0 < d$ be the lowest number such that $k|a^d - 1$ then, we if $b = dq + r$ then $k | a^{dq}a^r - 1 \\implies k | a^r - 1$ but $r < d$. Thus, $r = 0$ and $d|b$. Similarly, $d|c$. Now, $d|\\gcd(b,c)$ so $(a^d)^{\\gcd(b,c)/d} - 1 \\equiv 1 \\pmod{k}$. $\\square$\n\nIn particular, this means that if $k|a^b - 1$ then $\\gcd(a, k) = 1$, so $k|a^{\\gcd(b, \\phi(k))} - 1$ since $k|a^{\\phi(k)} - 1$.\nApplying this to our problem, if $p^i \\mid a^{2^{mp^i}} - a$ and $p \\mid a$ then we have that $p^i \\mid a$ so $p \\mid a^{2^{mp^i-1}} - a$.\nAnd now if, $\\gcd(a, p) = 1$ then we have that\n$$\np^i \\mid a^{2^{mp^i}-1} - 1 \\implies p^i \\mid a^{\\gcd(2^{mp^i}-1, (p-1)p^{i-1})} - 1\n$$\nNow, observe that\n$$\n\\gcd(p-1, 2^{mp^i}-1) = \\gcd(p-1, 2^{\\gcd(mp^i), \\phi(p-1)}-1) = \\gcd(p-1, 2^{\\gcd(m), \\phi(p-1)}-1) = \\gcd(p-1, 2^{mp^i-1}-1)\n$$\nAlso, if $p|2^{mp^i} - 1$, then $p \\mid 2^m - 1$. Thus, $\\nu_p(2^{mp^i} - 1) = i + \\nu_p(2^m - 1)$. Thus, if $p|2^m - 1$, then $p^i \\mid 2^{mp^{i-1}} - 1$. If $p \\nmid 2^m - 1$, then $p \\nmid 2^{mp^{i-1}} - 1$. Thus, $\\gcd(p^{i-1}, 2^{mp^i}) = \\gcd(p^{i-1}, 2^{mp^{i-1}})$. Thus,\n$$\n\\gcd(2^{mp^i} - 1, (p-1)p^{i-1}) = \\gcd(2^{mp^{i-1}} - 1, (p-1)p^{i-1})\n$$\nSo, we get that $p^i \\mid a^{2^{mp^{i-1}} - 1} - 1 \\implies p^i \\mid a^{2^{mp^{i-1}}} - a$ as desired!", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32554, "subject": "Mathematics (Multi-modal)", "question": "Given that $a_1, a_2, \\dots, a_{10}$ are positive real numbers, determine the smallest possible value of\n$$\n\\sum_{i=1}^{10} \\left\\lfloor \\frac{7a_i}{a_i + a_{i+1}} \\right\\rfloor\n$$\nwhere we define $a_{11} = a_1$.", "options": [], "answer": "6", "solution": "Let $m = 7$ and $n = 10$. We now claim that the minimum possible value is $m-1$ and this is achieved by letting $a_i = m^i$. Now, to show that this is indeed the minimum, we assume without loss of generality that $a_n$ is the largest amongst all $a_i$. Now,\n$$\n\\sum_{i=1}^{n} \\left\\lfloor \\frac{ma_i}{a_i + a_{i+1}} \\right\\rfloor \\ge \\left\\lfloor \\frac{ma_1}{a_1 + a_2} \\right\\rfloor + \\left\\lfloor \\frac{ma_n}{a_n + a_1} \\right\\rfloor \\ge \\left\\lfloor \\frac{ma_1}{a_1 + a_n} \\right\\rfloor + \\left\\lfloor \\frac{ma_n}{a_n + a_1} \\right\\rfloor \\ge \\left\\lfloor \\frac{m(a_1 + a_n)}{a_n + a_1} \\right\\rfloor - 1 \\ge m - 1\n$$\nWe just use the fact that $\\lfloor x \\rfloor + \\lfloor y \\rfloor \\ge \\lfloor x + y \\rfloor - 1$.\n\n![](attached_image_1.png)\nThis tells us that the problem is indeed true in much higher generality:\nLet $m, n \\ge 2$ be positive integers. Given that $a_1, \\dots, a_n$ are positive real numbers, determine the smallest possible value of\n$$\n\\sum_{i=1}^{n} \\left\\lfloor \\frac{ma_i}{a_i + a_{i+1}} \\right\\rfloor\n$$\nwhere we define $a_{n+1} = a_1$.\n\n\nWe first observe that if $a_i \\ge a_{i+1}$, then\n$$\n\\left\\lfloor \\frac{7a_i}{a_i + a_{i+1}} \\right\\rfloor \\ge \\left\\lfloor \\frac{7a_i}{2a_i} \\right\\rfloor \\ge 3.\n$$\nThus the sequence (taken cyclically) decreases at most once, otherwise we are done. WLOG $a_1 < a_2 < \\dots < a_{10}$.\nMake the substitution $a_{i+1}/a_i = x_i$. We have $x_i > 1$ for $1 \\le i \\le 9$, and $x_{10} = 1/x_1 x_2 \\dots x_9$. The expression becomes\n$$\n\\sum_{i=1}^{9} \\left\\lfloor \\frac{7}{1+x_i} \\right\\rfloor + \\left\\lfloor \\frac{7x_1 x_2 \\dots x_9}{x_1 x_2 \\dots x_9 + 1} \\right\\rfloor.\n$$\nIf we have $x_i \\ge 6$ for any $1 \\le i \\le 9$, then we get\n$$\n\\begin{aligned} \\left\\lfloor \\frac{7x_1x_2\\dots x_9}{x_1x_2\\dots x_9+1} \\right\\rfloor &\\ge 6, \\\\ \\frac{7x_1x_2\\dots x_9}{x_1x_2\\dots x_9+1} &\\ge 6x_1x_2\\dots x_9+6 \\\\ x_1x_2\\dots x_9 &\\ge 6 \\end{aligned}\n$$\n\nand we are done.\nIf not, $x_i < 6$ for all $1 \\le i \\le 9$. But then, for $1 \\le i \\le 9$,\n$$\n\\left\\lfloor \\frac{7}{1 + x_i} \\right\\rfloor \\ge 1,\n$$\nwhich means the expression is at least 9, which is greater than our bound! ☐\n(uses $m = 7, n = 10$ critically) If at most 4 of the $z_i$'s are zero, then at least 6 of them are $\\ge 1$, and thus the sum is at least 6.\nIf not, then at least five of them are 0. Suppose $z_1 = \\cdots = z_5 = 0$ without loss of generality. Note that $z_i = 0$ implies\n$$\n\\frac{7}{1 + x_i} < 1 \\implies x_i > 6,\n$$\nso that $x_1, \\dots, x_5 > 6$. Thus $x_1x_2x_3x_4x_5 > 6^5$, which means $x_6x_7x_8x_9x_{10} < 1/6^5$. Assuming WLOG $x_6 = \\min\\{x_6, x_7, x_8, x_9, x_{10}\\}$, this implies $x_6 < 1/6$. However, then we have\n$$\nz_6 \\ge \\left\\lfloor \\frac{7}{1 + \\frac{1}{6}} \\right\\rfloor = 6,\n$$\nand the conclusion follows. ☐", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32555, "subject": "Mathematics (Multi-modal)", "question": "All the squares of a $2024 \\times 2024$ board are coloured white. In one move, Mohit can select one row or column whose every square is white, choose exactly $1000$ squares in this row or column, and colour all of them red. Find the maximum number of squares that Mohit can colour red in a finite number of moves.", "options": [], "answer": "3048000", "solution": "Let $n = 2024$ and $k = 1000$. We claim that the maximum number of squares that can be coloured in this way is $k(2n - k)$, which evaluates to $3048000$.\n\nIndeed, call a row/column *bad* if it has at least one red square. After the first move, there are exactly $k+1$ bad rows and columns: if a row was picked, then that row and the $k$ columns corresponding to the chosen squares are all bad. Any subsequent move increases the number of bad rows/columns by at least $1$. Since there are only $2n$ rows and columns, we can make at most $2n - (k+1)$ moves after the first one, and so at most $2n - k$ moves can be made in total. Thus we can have at most $k(2n - k)$ red squares.\n\nTo prove this is achievable, let's choose each of the $n$ columns in the first $n$ moves, and colour the top $k$ cells in these columns. Then, the bottom $n-k$ rows are still uncoloured, so we can make $n-k$ more moves, colouring $k(n+n-k)$ cells in total.\n\n$\\square$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32556, "subject": "Mathematics (Multi-modal)", "question": "Let $\\triangle ABC$ be an acute angled triangle with $AC > AB$ and incircle $\\omega$. Let $\\omega$ touch the sides $BC, CA$, and $AB$ at $D, E$, and $F$ respectively. Let $X$ and $Y$ be points outside $\\triangle ABC$ satisfying\n$$\n\\angle BDX = \\angle XEA = \\angle YDC = \\angle AFY = 45^\\circ.\n$$\nProve that the circumcircles of $\\triangle AXY$, $\\triangle AEF$ and $\\triangle ABC$ meet at a point $Z \\neq A$.", "options": [], "answer": "Detailed solution", "solution": "![](attached_image_1.png)\nWe have that $AB \\neq AC$, so $(AEF)$ and $(ABC)$ are not tangent at $A$, thus there is a point $S \\neq A$ which is the second intersection of $(AEF)$ and $(ABC)$.\n\nConsider an inversion about the incircle and let the inverse of a point $P$ be denoted by $P'$. Note that $A'$ is the midpoint of $EF$. $S'$ is the foot from $D$ onto $EF$ as $S' \\neq A'$ is on the nine point circle of $\\triangle DEF$ as well as on $EF$.\n\nAlso, since $X$ satisfies $\\angle XEI = \\angle XDI = 45^\\circ$, point $X'$ satisfies $\\angle EX'I = \\angle DX'I = 45^\\circ$. Note that $X$ lies on the same side of $DE$ as $I$, which in turn is the same side of $DE$ as $F$ since $\\triangle DEF$ is acute.\n\nTaking $DEF$ to be the reference triangle, the problem becomes the following:\n\n*Inverted Problem:* In acute $\\triangle DEF$, let $X', Y'$ be points such that $DX'E$ and $FY'D$ are isosceles right triangles with $X'$ on the same side of $DE$ as $F$, and $Y'$ on the same side of $DF$ as $E$. Let $A'$ be the midpoint of $EF$ and $S'$ the foot onto $EF$ from $D$. Prove that points $A', S', X', Y'$ are concyclic.\n\nWe will prove this by showing that $\\angle X'A'Y' = \\angle X'S'Y' = 90^\\circ$.\n\n**Claim 1.** $\\angle X'S'Y' = 90^\\circ$.\n\n*Proof.* Observe that $\\angle X'S'Y' = \\angle X'S'D + \\angle DS'Y' = \\angle X'ED + \\angle DFY' = 45^\\circ + 45^\\circ = 90^\\circ$ □\n\n**Claim 2.** $X'A'Y'$ is a right isosceles triangle with a right angle at $A'$.\n\n*Proof.* To prove this, we will prove that $\\triangle X'A'Y' \\sim \\triangle X'MD$ where $M$ is the midpoint of $DE$. But observe that by spiral similarity, this is equivalent to showing that $\\triangle X'MA' \\sim \\triangle X'DY'$.\n\nNow,\n$$\n\\angle X'MA' = 90^{\\circ} - \\angle FDE = 45^{\\circ} + 45^{\\circ} - \\angle FDE = \\angle FDX' + \\angle Y'DE - \\angle FDE = \\angle X'DY'\n$$\n\n$$\n\\triangle X'MA' \\sim \\triangle X'DY' \\implies \\triangle X'A'Y' \\sim \\triangle X'MD' \\implies \\angle X'A'Y = \\angle X'MD = 90^{\\circ}\n$$\nThus, we are done!\nAn alternate proof of the Claim 2 of the first solution:\n\n**Claim 2 of the first solution.** In acute $\\triangle DEF$, let $X', Y'$ be points such that $DX'E$ and $FY'D$ are isosceles right triangles with $X'$ on the same side of $DE$ as $F$, and $Y'$ on the same side of $DF$ as $E$. Let $A'$ be the midpoint of $EF$. Prove that $\\triangle X'A'Y'$ is a isosceles right triangle with a right angle at $A'$.\n\n**Proof.** Consider the composition of rotations\n$$\n\\Gamma = \\operatorname{Rot}(A', 180^\\circ) \\circ \\operatorname{Rot}(Y', 90^\\circ) \\circ \\operatorname{Rot}(X', 90^\\circ)\n$$\nThe angles add up to $360^\\circ$, so $\\Gamma$ is a translation. However, $\\Gamma$ keeps $E$ fixed, thus $\\Gamma$ is the identity map. Hence, we have\n$$\n\\operatorname{Rot}(A', 180^\\circ) = \\operatorname{Rot}(Y', 90^\\circ) \\circ \\operatorname{Rot}(X', 90^\\circ)\n$$\nand then we finish by noting that the center of rotation of the composition of the two rotations $\\operatorname{Rot}(Y', 90^\\circ)$, $\\operatorname{Rot}(X', 90^\\circ)$ is given by a point $O$ such that $\\angle OX'Y' = 45^\\circ$, and $\\angle OY'X' = 45^\\circ$.\n**Lemma 1.** In triangle $ABC$, let midpoints $M, N, K$ of sides $BC, CA, AB$ respectively and $P$ be the foot of the $A$-altitude on $BC$. Suppose $X, Y$ are points in the plane with $XN = AN$ and $XN \\perp AC$ and $YK = AK$ and $YK \\perp AB$. Then $X, Y, P, M$ are concyclic.\n\n**Proof.** Let $Q$ be the point on the $A$-altitude such that $AQ = \\frac{1}{2}BC$. Observe that the rotation with centre $X$ of measure $90^\\circ$ that sends $C$ to $A$ maps line $BC$ to the line through $A$ perpendicular to $BC$. In particular, since $AQ = CM$, we see that $M$ maps to $Q$. Hence $\\angle MXQ = 90^\\circ$. Similarly, $\\angle MYQ = 90^\\circ$ and combined with $\\angle MPQ = 90^\\circ$, we conclude that $X, Y, P, M$ lie on the circle with diameter $MQ$.\n\n**Lemma 2.** In triangle $ABC$, the bisector of angle $BAC$ meets the circumcircle of the triangle at $M$. Points $P$ and $Q$ lie on line $AM$ such that $\\angle PBA = \\angle QBC$. Then $MP \\cdot MQ = MB^2$.\n\n**Proof.** It suffices to show $\\angle MBQ = \\angle MPB$. This follows as\n$$\n\\angle MBQ = \\angle MBC + \\angle QBC = \\angle MAC + \\angle PBA = \\angle PAB + \\angle PBA = \\angle MPB\n$$\nand the other configurations can be dealt with by directed angles.\n\nNow back to the original problem. Erect isosceles right-angled triangles $DX'E$ and $DY'F$ in-wards of $\\triangle DEF$ with $X', Y'$ the vertices with the right angle. By Lemma 2 applied to $\\triangle CDE, \\triangle BDF$, it follows that $X, X'$ and $Y, Y'$ are inverses in the incircle. The inverse of $(AEF) \\cap (ABC)$ in the incircle is the foot of perpendicular $K$ from $D$ to $EF$ and that of $A$ is the midpoint of $EF$. The conclusion follows from Lemma 1 in $\\triangle DEF$. $\\square$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32557, "subject": "Mathematics (Multi-modal)", "question": "Let $x_1, x_2, \\dots, x_{2024}$ be non-negative real numbers such that $x_1 \\le x_2 \\le \\dots \\le x_{2024}$, and $x_1^3 + x_2^3 + \\dots + x_{2024}^3 = 2024$. Prove that\n$$\n\\sum_{1 \\le i < j \\le 2024} (-1)^{i+j} x_i^2 x_j \\ge -1012.\n$$", "options": [], "answer": "Detailed solution", "solution": "We want that\n$$\n\\sum_{1 \\le i < j \\le 2024} (-1)^{i+j} x_i^2 x_j \\ge -1012.\n$$\nNow, observe that the LHS is\n$$\n- \\left( \\sum_{i=1}^{1012} x_{2i-1}^2 x_{2i} \\right) + \\sum_{i=1}^{1012} \\left( (x_{2i}^2 - x_{2i-1}^2) \\left( \\sum_{j 2c/3$, or $c \\ge 0$, in which case $x_{2k-1}^2 \\ge c \\ge 2c/3$.\nThus we must have\n$$\nf(x_{2k}) \\ge f(x_{2k-1}) = \\sum_{i=1}^{2k-2} x_i^3 + 2 \\sum_{1 \\le i < j \\le 2k-2} (-1)^{i+j} x_i^2 x_j\n$$\nand the rest follows by induction. $\\square$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32558, "subject": "Mathematics (Multi-modal)", "question": "There are $n \\ge 3$ particles on a circle situated at the vertices of a regular $n$-gon. All these particles move on the circle with the same constant speed. One of the particles moves in the clockwise direction while all others move in the anti-clockwise direction. When particles collide, that is, they are all at the same point, they all reverse the direction of their motion and continue with the same speed as before.\nLet $s$ be the smallest number of collisions after which all particles return to their original positions. Find $s$.", "options": [], "answer": "s = 2n(n−1) if n is odd; s = n(n−1) if n is divisible by 4; s = n(n−1)/2 if n−2 is divisible by 4", "solution": "The answer is $(n-1)m'$ where $m'$ is the smallest number such that $\\frac{m'(n-2)}{2n}$ is an integer.\nMore precisely, the answer is\n* $2n(n-1)$ when $n$ is odd\n* $n(n-1)$ when $n$ is divisible by 4\n* $\\frac{n(n-1)}{2}$ when $n-2$ is divisible by 4. (but the $n/2$-th point will be the one moving in reverse, not $p_0$)\n\nWe first introduce some setup for convenience. We treat points on the circle as $[0, 2n)$ and we use $r = r + 2n$ for any real to refer to points on the circle for convenience. For example, we can use point $-1$ to mean $2n - 1$ etc. Now, we also assume that it takes any particle $2n$ units of time to go around the entire circle. Thus, if a particle at $0$ moves clockwise for time $t$ then it would reach point $t$.\n\nInitially, we let the particles be $p_0, \\dots, p_{n-1}$ with $p_i$ at point $2i$.\n\nNow, moving clockwise means the value is increasing and moving anti-clockwise means value is decreasing and finally we assume $p_0$ is the point initially moving anti-clockwise.\n\nNow, let $t_1 > 0$ be the total time when for the first time, all particles return to their initial positions.\nCorrespondingly let $t_2 > 0$ be the first time when all particles are equally spaced apart i.e. 2 units apart.\n\nNow, clearly $\\frac{t_1}{t_2}$ is an integer. Thus, we try to find $t_2$.\n\nObserve that if we replace each collision event with the two particles passing through each other, $t_2$ does not change. So for the purposes of calculating $t_2$, we can assume they indeed pass through. Thus, at time $t_2$, there are particles at $-t_2, 2+t_2, 4+t_2, \\dots, 2n-2+t_2$. But for them to be equally spaced, this sequence must be $t_2, 2+t_2, 4+t_2, \\dots, 2n-2+t_2$. Thus, modulo $2n$, $t_2 = -t_2$, and the minimum value of $t_2$ that makes this possible is $t_2 = n$. Now, we can set $t_1 = n \\cdot t'_1$.\n\nAlternatively, one could have observed that we can look at the positions relative to the clockwise moving particles. Then we just have the anti-clockwise particle moving at speed 2 so it must need $n$ units of time to return to original position and make $n-1$ collisions in this period.\n\nNow, let us analyze what happens at time $n$. There are now particles in positions $n, n+2, \\dots, n-2$. Observe that cyclic order of particles must be preserved as collisions never alter it and finally the collisions only happen in $(1, n)$ after the first collision of $p_0$ at point $2n - 1$ with $p_n$. Thus, $p_0$ does not have any more collisions in the next $n-1$ units of time. Thus, $p_0$ must be at position $2n - 1 + (n-1) = n - 2$. Now, since cyclic order is preserved, $p_i$ would be at position $2i + n - 2$. Thus, everything has cyclically moved forward by $n-2$.\n\nThus, in time $n$, every particle moves forward by $n-2$ units and there are $n-1$ collisions. Thus, in time $nk$, we have $(n-1)k$ collisions and every particles moves forward by $(n-2)k$ units. Thus, if every particles to their initial position iff $2n \\mid (n-2)k$. This is exactly what we desired! $\\square$\nAssume the circumference is 2 units, and the particles have speed 1 unit per second. Call a position \"good\" if the particles are equally spaced. We consider the distance of the particles as positive in the anti-clockwise direction and negative in the clockwise direction.\n\nWe first claim that if the position is good, the distance travelled by each particle is the same. Indeed, as the relative positions of the particles does not change (and the particles don't pass through each other), the distance travelled by any particle is sandwiched between the distances travelled by its neighbors, so by cyclicity all the distances must be equal.\n\nThus, the original position is repeated iff the final position is good and the sum of distances travelled by the particles is $2nl$ for some integer $l$. Since we only care about sum of distances and not the individual particles anymore, we consider the particles to be indistinguishable, and assume that they pass through each other when they collide.\n\nAs in the first solution, we can show that the first good position happens after $t_2 = 1$ second, with number of collisions being $n-1$ so far. In that 1 unit of time, one particle has travelled a clockwise distance of 1, with $n-1$ others have travelled an anti-clockwise distance of 1. This implies that the total distance travelled in time $t_2$ is $n-2$.\n\nThus, if $\\frac{t_1}{t_2} = m$, then number of collisions is $m(n-1)$, and total distance travelled is $m(n-2)$. Thus the particles return to the original position iff $2n \\mid m(n-2)$, which gives the required answer as seen in the first solution. $\\square$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32559, "subject": "Mathematics (Multi-modal)", "question": "Find all functions $f : \\mathbb{R} \\to \\mathbb{R}$ such that for all real numbers $a, b, c$, we have\n$$\nf(a + b + c)f(ab + bc + ca) - f(a)f(b)f(c) = f(a + b)f(b + c)f(c + a).\n$$", "options": [], "answer": "All solutions are: (1) f(x) = 1/2 for all real x; (2) f(0) = 1/2 and f(x) = 0 for all nonzero x; (3) f(x) = x for all real x.", "solution": "Let $\\mathcal{P}(a, b, c)$ denote the expression\n$$\nf(a + b + c)f(ab + bc + ca) = f(a)f(b)f(c) + f(a + b)f(b + c)f(c + a).\n$$\n\n$\\mathcal{P}(0, 0, 0) \\Rightarrow f(0)^2 = 2f(0)^3.$ So, $f(0) = \\frac{1}{2}$ or $f(0) = 0$. Exclude the solution $f \\equiv 0$.\n\n**Case 1** ($f(0) = \\frac{1}{2}$):\n$\\mathcal{P}(a, 0, 0) \\Rightarrow \\frac{1}{4}f(a) = \\frac{1}{2}f(a)^2 \\Rightarrow \\forall a, f(a) = 0$ or $f(a) = \\frac{1}{2}$.\n\nNow, if there is $r \\neq 0$ such that $f(r) = \\frac{1}{2}$, take any $a \\in \\left(-\\frac{|r|}{3}, \\frac{|r|}{3}\\right)$. Then, since $(r + 3a)(r - a) > 0$, we will find real solutions to $x^2 + (a - r)x + a(a - r) = 0$, which we call $b$ and $c$. Then, $(a + b + c) = r$ and $(ab + bc + ca) = 0$. Therefore, $\\mathcal{P}(a, b, c) \\Rightarrow f(a)f(b)f(c) + f(a + b)f(b + c)f(c + a) = \\frac{1}{4}$, so $f(a) = \\frac{1}{2}$. So $f(a) = \\frac{1}{2}$ for all $a \\in \\left(-\\frac{|r|}{3}, \\frac{|r|}{3}\\right)$.\n\nIf $f(a+b) = 0$, then $\\mathcal{P}(a, b, 0) \\Rightarrow \\frac{1}{2}f(a)f(b) = 0$, so $f(a) = 0$ or $f(b) = 0$. Therefore, if $f(a) = f(b) = \\frac{1}{2}$, then $f(a+b) = \\frac{1}{2}$. Since $f = \\frac{1}{2}$ in an interval containing $0$, we can therefore conclude $f = \\frac{1}{2}$ on $\\mathbb{R}$. Clearly, $f \\equiv \\frac{1}{2}$ is a solution.\n\nWe claim that $f(0) = \\frac{1}{2}$ and $f(x) = 0$ for all $x \\neq 0$ is a solution to the functional equation. If $a = b = c = 0$, or $(a+b) = (b+c) = (c+a) = 0$, then $\\mathcal{P}(a, b, c)$ is satisfied. So, we only need to show that if $(a+b+c) = (ab+bc+ca) = 0$, then $a = b = c = 0$. However, in this case, $a, b, c$ are the three roots (with multiplicity) of $x^3 - abc = 0$, and the only way they can all be real is if $a = b = c = 0$.\n\n**Case 2** ($f(0) = 0$):\nDefine sets $R = \\{x \\in \\mathbb{R} \\mid f(x) = 0\\}$, $S = \\{x \\in \\mathbb{R} \\mid f(x) \\neq 0\\}$. We know $S$ is nonempty and does not contain $0$.\n\n**Claim 1.** There are arbitrarily large negative numbers in $S$.\n\n*Proof.* Suppose $c \\in S$. Then $\\mathcal{P}(c, c, c) \\Rightarrow 2c \\in S$ or $3c \\in S$. This implies that $S$ cannot be bounded on both sides, and if $S$ contains a negative real then it contains arbitrarily large negative reals. So suppose $S$ does not contain any negative reals, i.e. $f(x) = 0$ for negative $x$. Then, for $2b > a > b > 0$,\n$$\n\\mathcal{P}(a, -b, a) \\Rightarrow f(a - b)^2 f(2a) = f(a - b)f(a^2 - 2ab) + f(a)^2 f(-b) = 0.\n$$\nLet $c \\in S$. Take $b > c$ and $a = b + c$. Then $f(2a) = 0$. So, $f(x) = 0$ for all $x > 4c$. So, $S \\subset (0, 4c]$. This contradicts that $S$ cannot be bounded on both sides. $\\square$\n\n**Claim 2.** $c, d \\in R \\Rightarrow (c + d) \\in R$.\n\n*Proof.* If $a + b = d$, then $\\mathcal{P}(a, b, c) \\Rightarrow f(c + d)f(ab + cd) = 0$.\nVarying $a, b$ over all reals such that $a + b = d$, $ab$ takes all values in $(-\\infty, \\frac{d^2}{4}]$. Since $S$ contains arbitrarily large negative numbers, we can find $f(ab + cd) \\neq 0$ for some $a, b$ with $a + b = d$. Therefore $f(c + d) = 0$. $\\square$\n\n**Claim 3.** $r \\in R \\iff -r \\in R$. Also, $s \\in S \\iff -s \\in S$.\n\n*Proof.* Take $-r \\in R$. By Claim 2, $-nr \\in R$ for all $n \\in \\mathbb{N}$.\n$$\n\\mathcal{P}(2r, 2r, -r) \\Rightarrow f(r)^2 f(4r) = f(3r)f(0) + f(2r)^2 f(-r) = 0\n$$\nSo, $r \\in R$ or $8r \\in R$. If $8r \\in R$, then so is $8r + (-7r) = r$. So, $r \\in R$ in either case.\nTherefore $r \\in R \\iff -r \\in R$. Since $S = \\mathbb{R} \\setminus R$, the other equivalence follows. $\\square$\n\n**Claim 4.** If $r \\in R \\setminus \\{0\\}$ and $s \\in S$, then $\\frac{s}{r} \\in R$.\n\n*Proof.*\n$$\n\\mathcal{P}\\left(r, \\frac{s}{r}, 0\\right) \\Rightarrow f\\left(r+\\frac{s}{r}\\right) f(s) = f\\left(r+\\frac{s}{r}\\right) f(r) f\\left(\\frac{s}{r}\\right) = 0 \\Rightarrow f\\left(r+\\frac{s}{r}\\right) = 0\n$$\nUsing Claim 2 and Claim 3, we get that $\\frac{s}{r} = \\left(r + \\frac{s}{r}\\right) + (-r) \\in R$.\n\n**Claim 5.** $r \\in R, s \\in S \\Rightarrow (r+s) \\in S, rs \\in R$\n\n*Proof.* If $(r+s) \\in R$, we will get $s = (r+s)+(-r) \\in R$ [using Claim 2 and Claim 3], which is a contradiction. Thus, $(r+s) \\in S$. Now,\n$$\n\\mathcal{P}(r, s, 0) \\Rightarrow f(rs) = f(r)f(s) = 0 \\Rightarrow rs \\in R.\n$$\n\n**Claim 6.** $f$ is injective at $0$, i.e. $R = \\{0\\}$\n\n*Proof.* We know there is some $s \\in S$. Assume that we have $r \\in R \\setminus \\{0\\}$. By Claim 5 and Claim 3, $(r+s), (-s) \\in S$. Also Claim 4 implies $\\frac{s}{r} \\in R$. Therefore, by Claim 5, we get $(\\frac{s}{r}) \\cdot (r+s) \\in R$ and $(\\frac{s}{r}) \\cdot (-s) \\in R$. Then, by Claim 2, $s = (\\frac{s}{r}) \\cdot (r+s) + (\\frac{s}{r}) \\cdot (-s) \\in R$, which is a contradiction.\nTherefore, we can conclude that $R = \\{0\\}$.\n\nSo, for any $a, b$ such that $(a+b) \\neq 0$, $\\mathcal{P}(a,b,0) \\Rightarrow f(ab) = f(a)f(b)$.\nGiven $c \\in S$, $\\mathcal{P}(a, -a, c) \\Rightarrow f(a)f(-a)f(c) = f(-a^2)f(c) \\Rightarrow f(-a^2) = f(a)f(-a)$. These two statements combined imply that $f$ is multiplicative. So $f(1) = 1$.\n\nNow, take $abc = q$ and $(a+b)(b+c)(c+a) = p$. Then, since $f$ is multiplicative,\n$$\nf(p+q) = f((a+b+c)(ab+bc+ca)) = f((a+b)(b+c)(c+a)) + f(abc) = f(p) + f(q)\n$$\n\n**Lemma.** Given any $p, q \\in \\mathbb{R} \\setminus \\{0\\}$, we can find $a, b, c \\in \\mathbb{R}$ such that $(a+b)(b+c)(c+a) = p$ and $abc = q$.\n\n*Proof.* If we find $a, b, c$ such that $\\frac{(a+b)(b+c)(c+a)}{abc} = \\frac{p}{q}$, then by scaling $a, b, c$ by $\\left(\\frac{q}{abc}\\right)^{1/3}$, we will get appropriate numbers.\nNow if we take $b \\neq 0$ and $c \\neq 0$ to have opposite signs such that $(b+c) \\neq 0$, then $\\frac{(a+b)(b+c)(c+a)}{abc} = \\frac{p}{q} \\iff a^2 + (b+c)a + bc = a \\cdot \\frac{pbc}{q(b+c)}$. Treating this as a quadratic in $a$, the discriminant is positive. Now, take $a$ to be one of the roots.\n\nTherefore $f$ is additive. So, for any $q \\in \\mathbb{Q}$, we have $f(q) = qf(1) = q$. However, since $f: \\mathbb{R} \\to \\mathbb{R}$ is multiplicative as well, $f(x) > 0$ for all $x > 0$, so $f$ is monotonically increasing. Since rationals are dense in $\\mathbb{R}$, we get $f(x) = x$ for all $x \\in \\mathbb{R}$.\n\n**Final answer:**\nThe solutions are:\n- $f(x) \\equiv \\frac{1}{2}$ for all $x \\in \\mathbb{R}$.\n- $f(0) = \\frac{1}{2}$ and $f(x) = 0$ for all $x \\neq 0$.\n- $f(x) = x$ for all $x \\in \\mathbb{R}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32560, "subject": "Mathematics (Multi-modal)", "question": "Let $ABC$ be an acute-angled triangle with $AB < AC$, and let $O, H$ be its circumcentre and orthocentre respectively. Points $Z, Y$ lie on segments $AB, AC$ respectively, such that\n$$\n\\angle ZOB = \\angle YOC = 90^\\circ.\n$$\nThe perpendicular line from $H$ to line $YZ$ meets lines $BO$ and $CO$ at $Q, R$ respectively. Let the tangents to the circumcircle of $\\triangle AYZ$ at points $Y$ and $Z$ meet at point $T$. Prove that $Q, R, O, T$ are concyclic.", "options": [], "answer": "Detailed solution", "solution": "Define $K$ to be the point on $YZ$ such that $HK \\perp YZ$. Let $A'$ be a point on the circumcircle of $\\triangle ABC$ such that $AA' \\parallel BC$.\n\n**Lemma 1.** $YZ$ is the perpendicular bisector of $HA'$.\n*Proof.* Let $H_B$ denote the reflection of $H$ in $AC$. Then note that $A'H_B \\parallel CO$. This is because $\\angle (AA', A'H_B) = \\angle 90^\\circ - A = \\angle (CO, BC)$. Now $YO \\perp CO$ implies $OY \\perp A'H_B$. This shows $YA' = YH_B = YH$. Similarly $ZH = ZA'$. $\\square$\n\n![](attached_image_1.png)\n\n**Lemma 2.** $OK \\perp BC$.\n*Proof.* Let $D$ and $D'$ denote the foot of perpendiculars from $H, A'$ onto $BC$ respectively. Then note that if $M$ is the foot of perpendicular from $K$ onto $BC$, then by similarity, $DM = MD'$ as $HK = KA'$. However $BD = D'C$, so $MB = MC$, as desired. $\\square$\n\n**Lemma 3.** $RY$ and $QZ$ are tangents to the circumcircle of $\\triangle AYZ$.\n*Proof.* Note that $RKYO$ is a cycle quadrilateral. Now we angle chase: $\\angle RYK = \\angle ROK = \\angle (CO, OK) = \\angle BAC = \\angle YAZ$. Thus, $RY$ is tangent to the circumcircle of $\\triangle AYZ$. Similarly for $QZ$. $\\square$\n\nFinally note that $O$ is the Miquel point of quadrilateral $QZYR$, as $RKYO$ and $QKZO$ are cyclic. Thus $P := QZ \\cap YR$ lies on the circumcircle of $\\triangle QOR$, as desired. $\\square$\nObserve that $\\angle BOZ + \\angle COY = 180^\\circ$ hence the isogonal conjugate $Q$ of point $O$ in quadrilateral $BCYZ$ exists. Since $H$ and $O$ are isogonal conjugates in $ABC$, $Q=H$ follows.\nIn particular, $O$ is the centre of the circle passing through the reflections of $H$ in $BC, CY, YZ, ZB$; which coincides with the circumcircle of $ABC$. Thus reflection $P$ of $H$ in $YZ$ lies on $(ABC)$.\nHowever, $\\angle YHZ = \\angle A$ as $\\angle YOZ = 180^\\circ - 2\\angle A$ and $H, O$ are isogonal conjugates in $BCYZ$, hence $P$ lies on $(AYZ)$ as well.\nNow $BZ = OB/\\sin C$ hence $BZ \\cdot BA = 2R^2 = CY \\cdot CA$, where $R$ is the circumradius of $ABC$. Thus, $B$ and $C$ have equal powers in $(AYZ)$ or the circumcentre $O_1$ of triangle $AYZ$ lies on the perpendicular bisector of $BC$, which passes through $O$.\nFurther, $O$ is the centre of spiral similarity sending $YZ$ to $QR$ so it suffices to show that it sends $O_1$ to $T$, where $T$ is the point of intersection of $Y$ and $Z$ tangents to $AYZ$.\nLet $OO_1 \\cap YZ = K$ and the line through $O$ parallel to $BC$ meet $QR$ at $S$. Now the same spiral similarity maps $K$ to $S$ so we just need to show that $OS/OK = OT/OO_1$. Both are equal to $\\tan \\angle (YZ, BC)$, so we are done.\nTo conclude, suffices to show $OD \\perp YZ$ where $D$ is the foot of $A$-altitude which will allow $O, K, YZ \\cap QR$ to be collinear. This follows as $HP \\perp YZ$ as $H, O$ isogonal conjugates in $BCYZ$ hence\n$$\n\\angle PAY = \\angle PZY = \\angle HZY = \\angle OZB = \\angle C.\n$$\n$\\square$\nWe prove Lemma 2 of Solution A using complex numbers, and then finish the same way as in Solution A.\nWe toss the diagram on the complex plane. Let the circumcircle of $\\triangle ABC$ be the unit circle, so $O$ is the origin, and let $A = a$, $B = b$, $C = 1/b$ without loss of generality. Use $z - a = -b(z\\bar{x} - 1)$ and $z = -b^2\\bar{z}$ to get that $Z = z = \\frac{b(a+b)}{b-a}$. By symmetry, $Y = y = \\frac{c(a+c)}{c-a} = \\frac{(ab+1)}{b(1-ab)}$.\n\nNow, redefine $K$ to be intersection of the perpendicular from $O$ to $BC$ with $YZ$. We need to show that $HK \\perp YZ$.\nWe calculate\n$$\ny - z = \\frac{(1 - b^2)(ab(a + b) + a - b)}{b(1 - ab)(a - b)}, \\quad \\text{so} \\quad \\frac{y - z}{\\bar{y} - \\bar{z}} = \\frac{ab(a + b) + a - b}{a + b + ab(b - a)}\n$$\nTherefore, $k = z - \\frac{ab(a + b) + a - b}{a + b + ab(b - a)}(\\bar{k} - \\bar{z})$. Also $k = \\bar{k}$ since it lies on the real axis. Therefore,\n$$\n\\frac{2a + 2ab^2}{a + b + ab(b - a)} \\cdot k = z \\left(1 - \\frac{ab(a + b) + a - b}{b^2(a + b + ab(b - a))}\\right) \\Rightarrow k = \\frac{b(a + b)}{b - a} \\cdot \\frac{(b^2 + 1)(1 + ab)(b - a)}{2ab^2(1 + b^2)} = \\frac{(a + b)(ab + 1)}{2ab}\n$$\nFinally, the orthocenter $H = h = a + b + \\frac{1}{b}$. Thus, $h - k = \\frac{ab(a + b) + (a - b)}{2ab}$. Finally,", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32561, "subject": "Mathematics (Multi-modal)", "question": "Let $P(x) \\in \\mathbb{Q}[x]$ be a polynomial with rational coefficients and degree $d \\ge 2$. Prove there is no infinite sequence $a_0, a_1, \\dots$ of rational numbers such that $P(a_i) = a_{i-1} + i$ for all $i \\ge 1$.", "options": [], "answer": "Detailed solution", "solution": "FTSOC, assume that there is such a sequence.\nWe proceed with the solution in two steps. In the first step, we show that all $a_i$ must be of the form $\\frac{k_i}{n}$ where $k_i \\in \\mathbb{Z}$ and $n$ is a fixed natural dependent only on $P$ and $a_1$.\nFirst, we write the polynomial $P$ as $\\frac{Q}{N}$ where $Q = \\sum_{i=0}^{d} b_i x^i$ is an integer polynomial, $N$ is the lcm of the denominators of all coefficients and $d$ is the degree of $P$.\n**Claim 1.** For any prime $p$ and $i \\in \\mathbb{N}$, we have\n$$\n\\nu_p(a_i) \\geq \\min(-\\nu_p(b_d), \\nu_p(a_1))\n$$\n*Proof.* Suppose $\\nu_p(a_i) < -\\nu_p(b_d)$. Now,\n$$\n\\nu(b_d a_i^d) = \\nu(b_d) + d \\nu_p(a_i) < j \\nu_p(a_i) \\text{ for any } j < d \\text{ as } \\nu_p(a_i) < 0, -\\nu_p(b_d).\n$$\nThus, $\\nu_p(b_d a_i^d) < \\nu_p(b_j a_i^j)$ for all other $j$. Thus, $\\nu_p(b_d a_i^d) = \\nu_p Q(a_i) \\implies \\nu_p(P(a_i)) = \\nu_p(Q(a_i)) - \\nu_p(N) < \\nu_p(a_i) < 0$ since $d \\ge 2$. Since $\\nu_p(i) \\ge 0$,\n$$\n\\nu_p(a_{i-1}) = \\nu_p(P(a_i) - i) = \\nu_p(P(a_i)) < \\nu_p(a_i).\n$$\nRepeating this, we get that\n$$\n\\nu_p(a_1) < \\nu_p(a_2) < \\dots < \\nu_p(a_i)\n$$\nThus, if $\\nu_p(a_i) < -\\nu_p(b_d)$ then $\\nu_p(a_i) > \\nu_p(a_1)$ implying the claim! $\\square$\n**Lemma 1.** There exists an $N$ such that for all $i \\in \\mathbb{N}$, we have that $N \\cdot a_i$ is integral.\n*Proof.* Follows directly from Claim 1. $\\square$\n**Claim 2.** The sequence $a_i$ is unbounded.\n*Proof.* If $a_i$ are bounded then $P(a_i)$ are also bounded (since $P$ is a continuous function). Thus $P(a_i) - a_{i-1} = i$ is bounded which is ridiculous. Thus, $a_i$ are unbounded. $\\square$\n\n**Solution A** We will first show that $P$ can have degree at most 2 by a counting argument.\n**Claim A1.** There exists $m \\in \\mathbb{N}$ such that $\\forall i > m, |a_i| < i$.\n*Proof.* Let $n_1$ be a number such that for all $x$ with $|x| > n_1$, we have $|P(x)| > 2|x|$.\nNow, consider the minimal $j \\ge 1$, such we have that $|a_j| > \\max(j, n_1, |a_0|)$, then observe that:\n$$\n|a_{j-1}| \\ge |P(a_j)| - j > 2|a_j| - j > |a_j|\n$$\nThis contradicts the minimality of $j$. Thus, there is no such $j$. But since the sequence is unbounded, we must have that for all large $j$ such that\n$$\n\\max(n_1, |a_0|) < j \\implies |a_j| < j. \\quad \\square\n$$\n**Claim A2.** (Few distinct $a_i$) There exists some $\\alpha > 0$ such that $|\\{a_1, a_2, \\dots, a_n\\}| < \\alpha n^{\\frac{1}{d}}$ for all $n \\in \\mathbb{N}$.\n*Proof.* From the previous claim, we get that there exists a $c > 0$ such that $|a_n| < cn$ for all $n$.\nNow, we have that\n$$\n\\{a_0, a_1, \\dots, a_n\\} \\subset [-cn, cn] \\implies \\{P(a_1) - 1, P(a_2) - 2, \\dots, P(a_{n+1}) - n - 1\\} \\subset [-cn, cn]\n$$\nThus, $\\{P(a_1), P(a_2), \\dots, P(a_n)\\} \\subset [-(c+2)n, (c+2)n]$ for all large enough $n$.\nNow, there exists a $c' > 0$ such that for all $n > 0$, we have that for any $r$ with $|r| > c'n^{\\frac{1}{d}}$,\n$$\n|P(r)| > (c+2)n\n$$\nThus,\n$$\n\\{a_1, a_2, \\dots, a_n\\} \\subset [-c'n^{\\frac{1}{d}}, c'n^{\\frac{1}{d}}]\n$$\nbut then since $Na_i$ is integral for all $i$, we get that $|\\{a_1, a_2, \\dots, a_n\\}| < 4Nc'n^{\\frac{1}{d}}$ where $4Nc'$ is a constant. So we just use $\\alpha$ to denote this constant. Thus, we have\n$$\n|\\{a_1, a_2, \\dots, a_n\\}| < \\alpha n^{\\frac{1}{d}}. \\quad \\square\n$$\n**Claim A3.** There exists a $\\beta > 0$ such that for all large $n$, we have that some value $b$ (which may depend on $n$) appears at least $\\beta n^{1-\\frac{1}{d}}$ times in $a_1, a_2, \\dots, a_n$.\n*Proof.* This follows simply by pigeon hole principle on Claim A2. $\\square$\n**Lemma A1.** For any $i \\neq j$ with $i, j \\ge 1$, we have that $a_i = a_j \\implies a_{i-1} \\neq a_{j-1}$.\n*Proof.*\n$$\na_i = a_j \\implies P(a_i) = P(a_j) \\implies P(a_i) - i \\neq P(a_j) - j \\implies a_{i-1} \\neq a_{j-1}. \\quad \\square\n$$\nDue to Claim A3, we may suppose $a_{x_1} = a_{x_2} = \\dots = a_{x_m}$ where $1 \\le x_i \\le n$ for all $i$, and $m = \\beta n^{1-\\frac{1}{d}}$. Then by Lemma A1, all of $a_{x_{1-1}}, a_{x_{2-1}}, \\dots, a_{x_{m-1}}$ are all pairwise distinct.\nThus, for all large enough $n$, we have\n$$\n\\beta n^{1-\\frac{1}{d}} \\le |\\{a_{x_1-1}, a_{x_2-1}, \\dots, a_{x_m-1}\\}| \\le |\\{a_0, \\dots, a_n\\}| \\le \\alpha n^{\\frac{1}{d}} + 1 \\le 2\\alpha n^{\\frac{1}{d}}.\n$$\nThus, for all large enough $n$, we have $n^{1-\\frac{2}{d}} \\le 2\\alpha\\beta^{-1}$. This is a contradiction if $d > 2!$.\nObserve that the same proof gives us a contradiction if $|\\{a_1, \\dots, a_n\\}| = o(\\sqrt{n})$ even when $d = 2$.\nThus, we can assume that there exists a $\\gamma > 0$ such that for infinitely many $n$, $|a_n| > \\sqrt{\\gamma n}$.\nNow, we handle $d = 2$ separately.\nBy completing the square, we assume that our polynomial is of the form $P(x) = c(x - a)^2 + b$ for some $a, b, c \\in \\mathbb{R}$ and $c \\neq 0$. We can assume the $N$ from Lemma 1 also satisfies $Na \\in \\mathbb{Z}$ by increasing it if necessary.\nThus,\n$$\nP(x) - P(y) = c(x - y)(x + y - 2a)\n$$\nIf $M > |P(x) - P(y)| > 0$, then $0 < |x - y| \\cdot |x + y - 2a| < \\frac{M}{|c|}$. Thus, both are non zero. If we also know that $xN, yN$ and $aN$ are integral then we get that $|Nx - Ny| \\cdot |Nx + Ny - 2Na| < \\frac{MN^2}{|c|}$. Now, since both elements are at least 1, we get that there exists a $\\delta > 0$ such that $|x|, |y| < \\delta$.\n**Corollary.** For any integer $M$, there exists a constant $\\delta_M > 0$ such that if $a_{n_1} = a_{n_2}$ and $0 < |n_1 - n_2| \\le M$ then $\\max(|a_{n_1+1}|, |a_{n_2+1}|) < \\delta_M$.\nNow, consider some $n$ large enough such that $|a_{n+2}| > \\sqrt{\\gamma n}$.\n$$\na_{n+2} - a_{n+1} = P(a_{n+3}) - P(a_{n+2}) - 1\n$$\n$$\na_{n+1} - a_n = P(a_{n+2}) - P(a_{n+1}) - 1\n$$\n$$\na_n - a_{n-1} = P(a_{n+1}) - P(a_n) - 1\n$$\nThus, we have\n$$\nP(a_{n+3}) - P(a_{n+2}) = c(a_{n+3} - a_{n+2})(a_{n+3} + a_{n+2} - 2a).\n$$\nObserve that at least one of $|a_{n+3} - a_{n+2}|$ and $|a_{n+2} + a_{n+3} - 2a|$ is $\\ge \\sqrt{\\gamma n} - |a|$ as their sum is $\\ge 2\\sqrt{\\gamma n} - 2|a|$. This in fact holds for any $a_i, a_j$ as long as one of them is big.\nAlso, observe that either the terms are 0 or both at least $\\frac{1}{N}$.\nThus, there exists a $\\varepsilon > 0$ such that for all large $n$, we have that $|a_{n+2} - a_{n+1}| > \\sqrt{\\varepsilon n}$ if $a_{n+2} > \\sqrt{\\gamma n}$ (we can take any $\\varepsilon < \\frac{c^2\\gamma}{N^2}$) unless $a_{n+3} = a_{n+2}$ or $a_{n+3} + a_{n+2} = 2a$ (again, this holds for any $a_i, a_j$ as long as one of them is big). The first case would be a contradiction since then we would need\n$$\n\\sqrt{\\gamma n} < |a_{n+2}| = |a_{n+3}| < \\delta_1\n$$\nbut we have picked a sufficiently large $n$ so that this does not happen. Thus, $a_{n+2} \\neq a_{n+3}$.\nAll in all, either $|a_{n+2} - a_{n+1}| > \\sqrt{\\varepsilon n}$ or $a_{n+2} + a_{n+3} = 2a$.\nRecall from proof of Claim A2 that $|a_i| = O(\\sqrt{n})$ for $i \\le n + 5$. Thus for any $i \\le n + 4$, if $|a_i - a_{i-1}| > \\sqrt{\\varepsilon n}$, then\n$$\n|a_i + a_{i-1} - 2a| < \\frac{|a_{i-1} - a_{i-2}| + 1}{|c|\\sqrt{\\varepsilon n}} = O(1).\n$$\nThus either $|a_{n+2} + a_{n+1} - 2a| = O(1)$, which would imply $|a_{n+1}| > \\sqrt{\\gamma n} - O(1)$, or $a_{n+3} + a_{n+2} = 2a$, which implies $P(a_{n+2}) = P(a_{n+3})$, so $a_{n+1} = a_{n+2} + 1$, so $|a_{n+1}| > \\sqrt{\\gamma n} - O(1)$ in any case. Thus $|a_{n+1}|$ is also large, so we can repeat the above arguments. Since \"largeness\" can be cascaded down, we can also assume $|a_{n+3}|, |a_{n+4}|, |a_{n+5}|$ are large, by shifting the indices if needed (there won't be any issues as long as we shift by $O(1)$ indices).\nAgain we get either $|a_{n+1} + a_n - 2a| = O(1)$, or $a_{n+1} + a_{n+2} = 2a$ and $a_n = a_{n+1} + 1$. Also $|a_n| > \\sqrt{\\gamma n} - O(1)$.\nHowever, if $a_{n+2} + a_{n+3} = 2a$, then $a_{n+1} = a_{n+2} + 1$, so then we can't have $a_{n+1} + a_{n+2} = 2a$, so $|a_{n+1} + a_n - 2a| = O(1)$, and $2a - a_{n+3} + 1 = a_{n+2} + 1 = a_{n+1}$. This means $|a_{n+3} - a_n| = O(1)$, which implies $|P(a_{n+4}) - P(a_{n+1})| = O(1)$. If $P(a_{n+4}) \\neq P(a_{n+1})$, we get a contradiction since $|a_{n+1}|$ is big. Thus equality must hold, so $a_{n+4} = a_{n+1}$ (impossible since $|a_{n+2}| > \\delta_3$ is large), or $a_{n+4} + a_{n+1} = 2a$, so $a_{n+4} = a_{n+3} - 1$, so $a_{n+5} = 2a - a_{n+4} = a_{n+1}$ which is impossible since $|a_{n+2}| > \\delta_4$ is large.\nTherefore $a_i + a_{i+1} \\neq 2a$ for any $i$ in the $|a_i|$ large range. So $|a_i + a_{i+1} - 2a| = O(1)$ always (i.e., $a_i$ \"flips\" around $a$ every time), which implies $|a_{n+2} - a_n| = O(1)$ and $|a_{n+3} - a_{n+1}| = O(1)$ by using triangle inequality on two consecutive such bounds. Thus $|P(a_{n+3}) - P(a_{n+1})| = O(1)$. Similar to the above analysis, we must have $P(a_{n+3}) = P(a_{n+1})$, and $a_{n+3} = a_{n+1}$ is impossible since $|a_{n+2}| > \\delta_2$, so we must have $a_{n+3} + a_{n+1} = 2a$, which contradicts $|a_{n+3} - a_{n+1}| = O(1)$. This gives us our final contradiction, and we are done.\n\n\n**Solution B** First, we consider the case that $d$ is odd. Then, $\\exists M, c > 0$, such that if $|x| > M$ and $y$ is some real then if $|a_{i+1}| \\ge 2M, |a_i|, |a_{i-1}|, |a_{i-2}|, \\dots, |a_1|$, we get\n$$\n\\frac{|P(x) - P(y)|}{|x - y|} \\ge c(|x|)^{d-1}.\n$$\nThus,\n$$\nc(a_{i+1}^{d-1})|a_{i+1} - a_i| \\le |P(a_{i+1} - P(a_i))| \\le |a_i - a_{i-1}| + 1 \\le 2|a_{i+1}| + 1\n$$\nThus,\n$$\n|a_{i+1} - a_i| \\le \\frac{2}{a_{i+1}^{d-2}} + \\frac{1}{a_{i+1}^{d-2}}\n$$\nbut as $|a_{i+1}|$ becomes very large, this forces $a_{i+1} = a_i$ since we know that either $|a_k - a_l| = 0$ or $|a_k - a_l| > \\frac{1}{n}$ since all $a_i$ are of the form $\\frac{k_i}{n}$.\nThus, $a_{i+1} = a_i$ and $a_i$ satisfies the same conditions, thus, $a_i = a_{i-1}$. Thus, $P(a_i) = a_i + i$ and $P(a_i) = a_i + i - 1$ which is a contradiction!\n\nNow, if $d \\ge 4$ is even. Observe that there exists $M, c > 0$ such that if $|x| > M$ then $|P(x) - P(x - \\frac{1}{n})| \\ge cx^{d-1}$.\nNow, let $\\alpha$ be such that $P(x) - P(\\alpha - x) = R(x)$ is of degree at most $d-2$. There is a unique such $\\alpha$ as the coefficient of $x^{d-1}$ in $R(x, y) = P(x) - P(y - x)$ is linear in $y$.\nNow, there is also a $M', c' > 0$ such that if $x \\neq y, |x| > M$, then\n$$\n|P(x) - P(y)| \\geq c' \\min(|x - y|, |x + y - \\alpha|) \\cdot x^{d-1}\n$$\nThus, if we have $|a_{i+1}| \\geq 10^{100} M' n^{100}$, $|a_i| - M'$, $|a_{i-1}| - 2M'$, $|a_{i-2}| - 3M'$.\n$$\n\\min(|(a_{i+1} - a_i)|, |(a_{i+1} + a_i - \\alpha)|) \\cdot |a_{i+1}|^{d-1} \\leq |P(a_{i+1}) - P(a_i)| \\leq |a_i - a_{i-1}| + 1\n$$\nThus,\n$$\n\\min(|a_{i+1} - a_i|, |a_{i+1} + a_i - \\alpha|) \\leq \\frac{|a_i - a_{i-1}|}{|a_{i+1}|^{d-1}} + \\frac{1}{a_{i+1}^{d-1}} \\quad (4)\n$$\nBut then this gets arbitrarily small as $|a_{i+1}|$ gets larger and larger. Again since $a_i$ are of the form $\\frac{k_i}{n}$, the LHS is bounded below unless it's 0. Thus, eventually, for all large terms, we have $a_{i+1} - a_i = 0$ or $a_{i+1} + a_i = \\alpha$. But then the sequence is not unbounded which is a contradiction!\nNow, finally we consider $d=2$.\nFirst, we get that $\\min(|a_{i+1} - a_i|, |a_{i+1} + a_i - \\alpha|)$ is bounded by some constant $\\beta$.\nNow, if $|a_i - a_{i-1}| < \\beta$ and $|a_{i+1}|$ is large then we get that either $a_{i+1} = a_i$ or $a_{i+1} + a_i = \\alpha$. But repeating this in the case that $a_{i+1} = a_i$, tells us $a_{i+2} = a_{i+1}$ which is a contradiction as before.\nThus, if $|a_i - a_{i-1}| < \\beta$, then $a_{i+1} + a_i = \\alpha$. Now, observe that $R(x)$ is a constant as it is of degree at most 2. So, we have that $P(\\alpha - x) + R = P(x)$ where $R$ is a constant.\nWe have $|P(a_{i+1}) - P(a_i)| = |a_{i+1} - a_i + 1|$ if $a_{i+1} + a_i = \\alpha$ but then $P(a_{i+1}) - P(a_i) = R$. Thus, $|\\alpha + 1 - 2a_i| = |a_{i+1} - a_i + 1| = R$. Thus, $a_i$ is bounded. Thus, if $a_i$ is large then $a_{i+1} + a_i \\neq \\alpha$.\nThus, $|a_{i+1} - a_i|$ cannot be $< \\beta$ if $a_i$ is large. Thus, we always have $|a_{i+1} + a_i - \\alpha| < \\beta$ for all large enough $i$. Thus, let $\\beta_i = \\alpha - a_{i+1} - a_i$.\nNow,\n$$\n-2a_i + 1 - \\beta_i + \\alpha = a_{i+1} - a_i + 1 = P(a_{i+1}) - P(a_i) = P(\\alpha - a_{i+1}) - P(a_i) + R \\\\ = P(a_i + \\beta_i) - P(a_i) + R = P'(a_i)b_i + \\frac{P''(a_i)}{2}b_i^2\n$$\nThis fixes $b_i$ as the coefficient of $a_i$ gets fixed. Thus, $a_i + a_{i+1}$ is fixed when $a_i$ is large. That means $a_i = a_{i+2}$ and thus not unbounded. This is a contradiction!\n\nThus, we are done!", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 32562, "subject": "Mathematics (Multi-modal)", "question": "Find all functions $f : \\mathbb{N} \\to \\mathbb{N}$ so that for any positive integer $n$ and finite sequence of positive integers $a_0, \\dots, a_n$, whenever the polynomial $a_0 + a_1x + \\dots + a_nx^n$ has at least one integer root, so does $f(a_0) + f(a_1)x + \\dots + f(a_n)x^n$.", "options": [], "answer": "All functions of the form f(n) = k n for some positive integer k.", "solution": "The answer is all functions of the form $f(x) = kx$ for some $k \\in \\mathbb{N}$. These clearly work: now let us prove they are the only possibilities.\n\nSince $x + a$ has an integer root (namely, $-a$) for any $a \\in \\mathbb{N}$, so does $f(1)x + f(a)$, implying $f(1)|f(a)$ for all $a \\in \\mathbb{N}$. Now the function $g : \\mathbb{N} \\rightarrow \\mathbb{N}$ defined by $g(x) = f(x)/f(1)$ satisfies the same conditions as $f$, so WLOG, we may assume $f(1) = 1$.\n\nNow the polynomial for any $n \\in \\mathbb{N}$, $nx^2 + (n+1)x + 1$ has a root $-1$, so $f(n)x^2 + f(n+1)x + f(1) = f(n)x^2 + f(n+1)x + 1$ has an integer root, which must be negative. Call this number $-k$. Therefore\n$$\nf(n+1)k = f(n)k^2 + 1 > f(n) \\cdot k \\implies f(n+1) > f(n),\n$$\nso that $f(n+1) \\ge f(n) + 1$.\n\nNow we prove by induction that $f(n) = n$ for every $n \\in \\mathbb{N}$. The base case is clear, now consider some $m = n+1 > 1$ and assume $f(n) = n$. The polynomial $x^2 + (n+1)x + n$ has the root $-1$, so $f(1)x^2 + f(n+1)x + f(n) = x^2 + f(n+1)x + n$ has an integer. Since the sum of its roots is $-f(n+1)$, an integer, both roots are in fact integers. Further, the roots must be negative and their product is $n$, so they are $-d$ and $-n/d$ for some positive divisor $d$ of $n$. Therefore $f(n+1) = d + \\frac{n}{d}$. However, the inequality\n$$\nd + \\frac{n}{d} \\le n + 1 \\iff (n - d) \\left(1 - \\frac{1}{d}\\right) \\ge 0\n$$\nholds, so we must have\n$$\nn + 1 \\ge d + \\frac{n}{d} = f(n + 1) \\ge f(n) + 1 = n + 1,\n$$\nforcing $f(n+1) = n+1$ as desired. $\\square$", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 32563, "subject": "Mathematics (Multi-modal)", "question": "Let $p$ be an odd prime number and $a, b, c$ be integers so that the integers\n$$\na^{2023} + b^{2023}, \\quad b^{2024} + c^{2024}, \\quad c^{2025} + a^{2025}\n$$\nare all divisible by $p$. Prove that $p$ divides each of $a, b$, and $c$.", "options": [], "answer": "Detailed solution", "solution": "Set $k = 2023$. If one of $a, b, c$ is divisible by $p$, then all of them are. Indeed, for example, if $p \\mid a$, then $p \\mid a^k + b^k$ implies $p \\mid b$, and then $p \\mid b^{k+1} + c^{k+1}$ implies $p \\mid c$. The other cases follow similarly.\nSo for the sake of contradiction assume none of $a, b, c$ is divisible by $p$. Then\n$$\na^{k(k+2)} \\equiv (a^k)^{k+2} \\equiv (-b^k)^{k+2} \\equiv -b^{k(k+2)} \\pmod{p}\n$$\nand\n$$\na^{k(k+2)} \\equiv (a^{k+2})^k = (-c^{k+2})^k \\equiv -c^{k(k+2)} \\pmod{p}.\n$$\nSo $b^{k(k+2)} \\equiv c^{k(k+2)} \\pmod{p}$. But then\n$$\nc^{k(k+2)} \\cdot c \\equiv c^{(k+1)^2} \\equiv (-b^{k+1})^{k+1} \\equiv b^{(k+1)^2} \\equiv b^{k(k+2)} \\cdot b \\equiv c^{k(k+2)} \\cdot b \\pmod{p}\n$$\nwhich forces $b \\equiv c \\pmod{p}$. Thus\n$$\n0 \\equiv b^{k+1} + c^{k+1} = 2b^{k+1} \\pmod{p}\n$$\nimplying $p \\mid b$, a contradiction. Thus the proof is complete. □\nAs before, we may assume $p$ divides none of $a, b$, and $c$ and set $k = 2023$. Then\n$$\na^k \\equiv -b^k \\pmod{p}\n$$\n$$\nb^{k+1} \\equiv -c^{k+1} \\pmod{p}\n$$\n$$\nc^{k+2} \\equiv -a^{k+2} \\pmod{p}\n$$\nand multiplying these three equations yields $a^k b^{k+1} c^{k+2} \\equiv -b^k c^{k+1} a^{k+2} \\pmod{p}$. By cancelling the factor $a^k b^k c^{k+1}$, we get $a^2 \\equiv -bc \\pmod{p}$. Now\n$$\np \\mid a^k + b^k \\implies a^{4k} \\equiv b^{4k} \\pmod{p} \\implies c^{2k} \\equiv b^{2k} \\pmod{p}\n$$\nso\n$$\np \\mid b^{k+1} + c^{k+1} \\implies b^{2(k+1)} \\equiv c^{2(k+1)} \\pmod{p} \\implies b^2 \\equiv c^2 \\pmod{p}\n$$\nso either $b \\equiv c \\pmod{p}$ or $b \\equiv -c \\pmod{p}$. In the latter case, $a^2 \\equiv c^2 \\pmod{p}$ so $a \\equiv c \\pmod{p}$ or $a \\equiv -c \\pmod{p}$. In any case, two out of $\\{a, b, c\\}$ are the same mod $p$, so one of the equations gives $p \\mid 2x^y$ where $x \\in \\{a, b, c\\}$ and $y \\in \\{k, k+1, k+2\\}$, hence $p$ odd implies $p \\mid x$ so $p \\mid abc$, the desired contradiction. □\nWe have\n$$\na^{2023} \\equiv -b^{2023} \\pmod{p} \\qquad (1)\n$$\n$$\nb^{2024} \\equiv -c^{2024} \\pmod{p} \\qquad (2)\n$$\n$$\nc^{2025} \\equiv -a^{2025} \\pmod{p} \\qquad (3)\n$$\nThus,\n$$\n\\begin{align*} a^{2023 \\cdot 2024 \\cdot 2025} &\\equiv b^{2023 \\cdot 2024 \\cdot 2025} \\pmod{p} & \\text{by (1)} \\\\ &\\equiv -c^{2023 \\cdot 2024 \\cdot 2025} \\pmod{p} & \\text{by (2)} \\\\ &\\equiv -a^{2023 \\cdot 2024 \\cdot 2025} \\pmod{p} & \\text{by (3)} \\end{align*}\n$$\nThus, $p \\mid 2 \\cdot a^{2023 \\cdot 2024 \\cdot 2025}$ and hence $p \\mid a$ since $p$ is odd. Now, finish as before. □", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32564, "subject": "Mathematics (Multi-modal)", "question": "Let $H$ be the orthocenter of triangle $ABC$. Let $E, F$ be the feet of the $B, C$-altitudes. Let $D, M, N$ be the midpoints of segments $AH, BD, CD$ respectively, and $T$ be the intersection of line $FM$ and $EN$. Suppose $D, E, T$, and $F$ are concyclic. Prove that $DT$ passes through the circumcentre of $ABC$.", "options": [], "answer": "Detailed solution", "solution": "Let $O$ be the circumcenter of $(ABC)$ and $J$ be the midpoint of $DO$. Now it is sufficient to prove that $TD$ and $TJ$ coincide. We first prove that $M, N, T, J$ are concyclic.\n$$\n\\angle MJN = \\angle BOC = 2\\angle BAC = \\angle EDF = 180^\\circ - \\angle FTE = \\angle 180^\\circ - \\angle NJM\n$$\nThis proves our claim!\n\nNow note that $JM = \\frac{OB}{2} = \\frac{OC}{2} = JN$, so $TJ$ is the angle bisector of $\\angle NTM = \\angle ETF$. But, $D$ is the midpoint of arc $EF$ in the nine-point circle, so $TD$ is the angle bisector of $\\angle ETF$ as well. Thus, $TD$ and $TJ$ must coincide! $\\square$\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32565, "subject": "Mathematics (Multi-modal)", "question": "At an IMOTC party, all people have pairwise distinct ages. Some pairs of people are friends and friendship is mutual. Call a person *junior* if they are younger than all their friends, and *senior* if they are older than all their friends. A person with no friends is both *junior* and *senior*. A sequence of pairwise distinct people $A_1, \\dots, A_m$ is called *photogenic* if:\n* $A_1$ is junior,\n* $A_m$ is senior, and\n* $A_i$ and $A_{i+1}$ are friends, and $A_{i+1}$ is older than $A_i$ for all $1 \\le i \\le m-1$.\nLet $k$ be a positive integer such that for every *photogenic* sequence $A_1, \\dots, A_m$, $m$ is not divisible by $k$. Prove that the people at the party can be partitioned into $k$ groups so that no two people in the same group are friends.", "options": [], "answer": "Detailed solution", "solution": "Consider obvious graph theory interpretation, with vertices being labelled by the ages. Whenever we say an increasing path, we refer to the labels being monotonically increasing. For any vertex $w$, let $S(w)$ be the set of all $m \\pmod k$ such that there exists an increasing path $v_1, v_2, \\dots, v_m = w$ with $v_1$ being small. Thus each $S(w)$ is a subset of $\\mathbb{Z}/k\\mathbb{Z}$. Further, $S(w)$ can't be empty, because by going backwards, there is at least one increasing path starting from a small vertex that ends at $w$. Moreover, $S(w) \\ne \\mathbb{Z}/k\\mathbb{Z}$, because there is an increasing path starting from $w$ ending at a big vertex (just by picking a larger neighbour every time), and by picking a suitable path from a small vertex to $w$ (whose length is the required residue modulo $k$), we get a good path passing through $w$ whose number of vertices is divisible by $k$.\nWe properly color the vertices in $k$ colors $c_0, c_1, \\dots, c_{k-1}$, just based on $S(w)$. Indeed, since $S(w)$ is a non-empty proper subset of $\\mathbb{Z}/k\\mathbb{Z}$, there exists a $j \\in S(w)$ such that $j+1 \\notin S(w)$. Choose any such $j$ and color $w$ with $c_j$.\nWe claim that this is a proper coloring. Indeed, suppose two neighbours $u, v$ have been assigned the same color $c_i$. WLOG the label of $u$ is smaller than the label of $v$. Then, adding edge $uv$ to any increasing path ending at $u$, we get an increasing path ending at $v$, so $S(u)+1 \\subset S(v)$. But $v$ being colored $c_j$ implies $j+1 \\pmod k \\notin S(v)$, while $u$ being colored $c_j$ implies $j \\in S(u)$, which implies $j+1 \\in S(u)+1 \\subset S(v)$, contradiction! Hence the coloring is proper, as required.\nIt is easy to see that every edge is part of a *photogenic* sequence. We color the vertices in $k$ colors $c_0, \\dots, c_{k-1}$ (indices modulo $k$), based on the following algorithm:\n\nStep 1: Color all juniors $c_1$.\n\nStep 2: Pick the youngest uncolored vertex $P$, and pick a color $c_i$ such that no friend of $P$ younger than $P$ has color $c_i$, while some friend of $P$ younger than $P$ has color $c_{i-1}$.\n\nWe can prove inductively that if $P$ has color $c_i$, then there is a path of (vertex-)length $i \\pmod k$. Thus the only way Step 2 fails is if $P$ has neighbors younger than them of every color. But in that case there is an increasing path starting from a junior to $P$ with length $i \\pmod k$ for every $i$, which is impossible as seen in Solution A.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32566, "subject": "Mathematics (Multi-modal)", "question": "A finite set $S$ of positive integers is called *cardinal* if $S$ contains the integer $|S|$, where $|S|$ denotes the number of distinct elements in $S$. Let $f$ be a function from the set of positive integers to itself, such that for any cardinal set $S$, the set $f(S)$ is also cardinal. Here $f(S)$ denotes the set of all integers that can be expressed as $f(a)$ for some $a$ in $S$. Find all possible values of $f(2024)$.\n*Note*: As an example, $\\{1, 3, 5\\}$ is a cardinal set because it has exactly 3 distinct elements, and the set contains 3.", "options": [], "answer": "1, 2, 2024", "solution": "**Solution 1.** The possible values are 1, 2, and 2024.\n\n**Construction.** The function $f(x) = 1$ for all $x \\in \\mathbb{N}$ works. Also, $f(x) = 1$ for all $x \\neq 2024$ and $f(2024) = 2$, works. Finally, $f(x) = x$ for all $x \\in \\mathbb{N}$ works as well.\nIt remains to show these are the only possible values for $f(2024)$.\n\n*Proof.* Denote $\\text{Im}(f) = \\{f(x) \\mid x \\in \\mathbb{N}\\}$. The cardinal set $\\{1\\}$ gives $f(1) = 1$. Consider the following two cases:\n\n* $\\text{Im}(f)$ is unbounded. Fix any $n \\in \\mathbb{N}$, with $n > 1$. Pick $n-1$ distinct integers $k_1, \\dots, k_{n-1}$ such that $f(k_i) \\notin \\{n, f(n)\\}$ and $f(k_i)$ are all pairwise distinct, for $1 \\le i < n$. Then $\\{n, k_1, \\dots, k_{n-1}\\}$ is a cardinal set. Then $\\{f(n), f(k_1), \\dots, f(k_{n-1})\\}$ is a cardinal set with $n$ distinct elements, so $n$ lies in this set, hence $f(n) = n$. This gives the identity function.\n\n* $\\text{Im}(f)$ is bounded. Suppose $f(x) \\le M$ for all $x \\in \\mathbb{N}$ and some integer $M > 0$.\n\n**Claim.** For any integer $a$ satisfying $1 \\le a \\le M$, if there are infinitely many integers $n \\in \\mathbb{N}$ such that $f(n) = a$, then $a = 1$.\n\n*Proof.* Let $b > 1$ be one of the integers with $f(b) = a$. Consider $b-1$ other integers $c_1, \\dots, c_{b-1}$, such that $f(c_i) = a$ for $1 \\le i < b$, and $c_i$ are all pairwise distinct. Then $\\{b, c_1, \\dots, c_{b-1}\\}$ is a cardinal set, so the image set, which consists of the singleton $\\{a\\}$ is cardinal, hence $a = 1$. $\\square$\n\nSo for every $2 \\le m \\le M$, there are only finitely many integers $x$ such that $f(x) = m$. Thus, there exists an integer $N > 1$ such that for all $n \\ge N$, $f(n) = 1$. Now for every $1 < l < N$, consider the cardinal set $\\{l, N+1, N+2, \\dots, N+l-1\\}$. Then the image set consists of $\\{1, f(l)\\}$, which can be cardinal only when $f(l) = 1$ or $f(l) = 2$.\n\nBy the above reasoning, $f(2024)$ can only be 1, 2, or 2024, each of which occurs as an example. $\\square$\n**Solution 2.** We present a second proof of the fact that the proposed values are the only possibilities. Considering the singleton cardinal set $\\{1\\}$, we see that $f(1) = 1$. The cardinal set $\\{1, 2\\}$ gets mapped to $\\{1, f(2)\\}$, so $f(2)$ must be 2 or 1.\n\n**Case 1.** Suppose $f(2) = 1$. Now $\\{2, 2024\\}$ is a cardinal set, and therefore so is $\\{1, f(2024)\\}$. This means $f(2024)$ is 1 or 2.\n\n**Case 2.** Suppose $f(2) = 2$. The cardinal set $f(\\{1, 2, 3\\}) = \\{1, 2, f(3)\\}$ shows that $f(3) \\in \\{1, 2, 3\\}$, but the cardinal set $f(\\{2, 3\\}) = \\{2, f(3)\\}$ proves $f(3)$ cannot be 2. Thus there are two sub-cases:\n\n2.1. $f(3) = 1$. Then the set $\\{1, 3, 2024\\}$ is cardinal, hence so is $\\{1, f(2024)\\}$, implying, as before, $f(2024) \\in \\{1, 2\\}$.\n\n2.2. $f(3) = 3$. In this case, we show via induction that $f(n) = n$ for all $n \\in \\mathbb{N}$.\n\nThe base cases $n = 1, 2, 3$ are already known. Now consider $n \\ge 4$, and assume $f(k) = k$ for all $k < n$. Consider the cardinal $f(\\{1, 2, \\dots, n\\}) = \\{1, 2, \\dots, n-1, f(n)\\}$ which implies $f(n) \\in \\{1, 2, \\dots, n\\}$.\n\nHowever, consider the $n-1$-element cardinal set $\\{1, 2, \\dots, n\\} \\setminus \\{n-2\\}$. For its image to be cardinal $f(n)$ cannot equal any number in $\\{1, 2, \\dots, n-1\\} \\setminus \\{n-2\\}$; else its cardinality would be $n-2$, which isn't in the set. So $f(n) \\in \\{n-2, n\\}$.\n\nFinally, consider the $n-2$-element set $\\{1, 2, \\dots, n\\} \\setminus \\{n-1, n-3\\}$. If $f(n) = n-2$, its image would only have $n-3$ elements, and thus would not be cardinal. So we conclude that $f(n) = n$ and the induction is complete. In particular, $f(2024) = 2024$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32567, "subject": "Mathematics (Multi-modal)", "question": "Let points $A_1$, $A_2$, and $A_3$ lie on the circle $\\Gamma$ in counter-clockwise order, and let $P$ be a point in the same plane. For $i \\in \\{1, 2, 3\\}$, let $\\tau_i$ denote the counter-clockwise rotation of the plane centred at $A_i$, where the angle of the rotation is equal to the angle at vertex $A_i$ in $\\triangle A_1A_2A_3$. Further, define $P_i$ to be the point $\\tau_{i+2}(\\tau_i(\\tau_{i+1}(P)))$, where indices are taken modulo 3 (i.e., $\\tau_4 = \\tau_1$ and $\\tau_5 = \\tau_2$).\nProve that the radius of the circumcircle of $\\triangle P_1P_2P_3$ is at most the radius of $\\Gamma$.", "options": [], "answer": "Detailed solution", "solution": "**Solution 1.** Fix an index $i \\in \\{1, 2, 3\\}$. Let $D_1, D_2, D_3$ be the points of tangency of the incircle of triangle $\\triangle A_1A_2A_3$ with its sides $A_2A_3$, $A_3A_1$, $A_1A_2$ respectively.\nThe key observation is that given a line $\\ell$ in the plane, the image of $\\ell$ under the mapping $\\tau_{i+2}(\\tau_i(\\tau_{i+1}(\\ell)))$ is a line parallel to $\\ell$. Indeed, $\\ell$ is rotated thrice by angles equal to the angles of $\\triangle A_1A_2A_3$, and the composition of these rotations induces a half-turn and translation on $\\ell$ as the angles of $\\triangle A_1A_2A_3$ add to $180^\\circ$. Since $D_i$ is a fixed point of this transformation (by the chain of maps $D_i \\xrightarrow{\\tau_{i+1}} D_{i+2} \\xrightarrow{\\tau_i} D_{i+1} \\xrightarrow{\\tau_{i+2}} D_i$), we conclude that the line $\\overline{PD_i}$ maps to the line $\\overline{P_iD_i}$. But the two lines are parallel and both of them pass through $D_i$ hence they must coincide, so $D_i$ lies on $\\overline{PP_i}$. Further, each rotation preserves distances, hence $P_i$ is the reflection of $P$ in $D_i$. In other words, the triangle $P_1P_2P_3$ is obtained by applying a homothety with ratio 2 and center $P$ to the triangle $D_1D_2D_3$. Thus, the radius of the circumcircle of $\\triangle P_1P_2P_3$ is twice the radius of the circumcircle of $\\triangle D_1D_2D_3$, i.e., twice the radius of the incircle of $\\triangle A_1A_2A_3$, which is known to be at most the radius of the circumcircle $\\Gamma$.\n\nNow, for any complex number $z$, the rotation at $z_0$ with angle $\\theta$ counterclockwise sends $z$ to $(z - z_0)e^{i\\theta} + z_0$.\nTherefore, one computes that\n$$\n\\begin{align*} \n\\tau_{321}(z) &= \\tau_3(\\tau_1(\\tau_2(z))) \n&= \\tau_3(\\tau_1((z-b)e^{iB} + b)) \\\\\n&= \\tau_3(ze^{i(A+B)} + be^{iA}(1 - e^{iB}) + a(1 - e^{iA})) \\\\\n&= -z + b + c + be^{i(A+C)} + ae^{iC} - ae^{i(A+C)} - ce^{iC}\n\\end{align*}\n$$\nThus, $\\tau_{312}(z)+z$ is independent of $z$. Similarly $\\tau_{123}(z)+z$ and $\\tau_{231}(z)+z$ are also independent of $z$. Note that adding $z$ is the same as translation by $z$, hence we have shown that the circumradius of $\\triangle P_1P_2P_3$ is independent of $P$.\nThus, it suffices to prove the result for $z = z_0 = a + b + c$. Let $U = -\\tau_{312}(z_0)$, $V = -\\tau_{123}(z_0)$, $W = -\\tau_{231}(z_0)$. So, it is enough to prove that the circumradius of $\\triangle UVW$ at most the radius of $\\Gamma$.\n![](attached_image_1.png)\nName the vertices $A_1, A_2, A_3$ as $A, B, C$ for convenience. Let the parallel line to $BC$ passing through $A$ intersect $\\Gamma$ again at $K$. Similarly, define $L$ as the second intersection of the line through $B$ parallel to $CA$ and finally $M$ for $C$ parallel to $AB$.\nWe claim that $U$ lies on the line segment $\\overrightarrow{AK}$: We have $U = a - (b-a)e^{i(A+C)} + (c-a)e^{iC}$, hence $\\overrightarrow{AU}$ is parallel to $\\overrightarrow{AK}$ hence $U$ lies on the line $AK$. If $AB = AC$ then $U = A$, and the claim is proven. Else suppose that $AB < AC$. Then $\\overrightarrow{AU}$ points towards $K$ and $|AU| = AC - AB$, so it suffices\n\nto show that $AK > AC - AB$. But this is clear because $KCBA$ is an isosceles trapezium, so $AB = KC$, and then triangle inequality on $\\triangle KAC$ to get $KA + KC > AC$. Thus, $U \\in \\overline{AK}$, and similarly $V \\in \\overline{BL}$, $W \\in \\overline{CM}$. We claim that for any $U,V,W$ on the segments $AK, BL, CM$ respectively, the circumradius of $\\triangle UVW$ is less than or equal to the radius of $\\Gamma$. Now let $X,Y$ be two fixed points on the same side of a line $\\ell$. Fix a side of $\\overleftrightarrow{XY}$, and let $Z$ be a variable point on $\\ell$ which always remains on this fixed side of $\\overleftrightarrow{XY}$. Then the circumradius of $\\triangle XYZ$ is minimized at the unique point $Z_0$ (on this fixed side of $\\overleftrightarrow{XY}$) for which the circumcircle of $\\triangle XYZ_0$ is tangent to $\\ell$ and it is an increasing function as one goes further away from this unique point $Z_0$. Thus, the maximum circumradius of $\\triangle UVW$ is achieved only if $U \\in \\{A,K\\}$, $V \\in \\{B,L\\}$, $W \\in \\{C,M\\}$. For each of these, the circumradius is the radius of $\\Gamma$, hence we are done. $\\square$\nToss the figure on the complex plane, and let $A_1 = a$, $A_2 = b$, $A_3 = c$ without loss of generality. Let the angles of the triangle at $A_1, A_2, A_3$ be denoted by $A, B, C$.\nNow, for any complex number $z$, the rotation at $z_0$ with angle $\\theta$ counterclockwise sends $z$ to $(z - z_0)e^{i\\theta} + z_0$.\n\nThe key observation is that given a line $\\ell$ in the plane, the image of $\\ell$ under the mapping $\\tau_{i+2}(\\tau_i(\\tau_{i+1}(\\ell)))$ is a line parallel to $\\ell$. Indeed, $\\ell$ is rotated thrice by angles equal to the angles of $\\triangle A_1A_2A_3$, and the composition of these rotations induces a half-turn and translation on $\\ell$ as the angles of $\\triangle A_1A_2A_3$ add to $180^\\circ$. Since $D_i$ is a fixed point of this transformation (by the chain of maps $D_i \\xrightarrow{\\tau_{i+1}} D_{i+2} \\xrightarrow{\\tau_i} D_{i+1} \\xrightarrow{\\tau_{i+2}} D_i$), we conclude that the line $\\overline{PD_i}$ maps to the line $\\overline{P_iD_i}$. But the two lines are parallel and both of them pass through $D_i$ hence they must coincide, so $D_i$ lies on $\\overline{PP_i}$. Further, each rotation preserves distances, hence $P_i$ is the reflection of $P$ in $D_i$. In other words, the triangle $P_1P_2P_3$ is obtained by applying a homothety with ratio 2 and center $P$ to the triangle $D_1D_2D_3$. Thus, the radius of the circumcircle of $\\triangle P_1P_2P_3$ is twice the radius of the circumcircle of $\\triangle D_1D_2D_3$, i.e., twice the radius of the incircle of $\\triangle A_1A_2A_3$, which is known to be at most the radius of the circumcircle $\\Gamma$.", "topic": "Number Theory", "subtopic": "Modular Arithmetic" }, { "id": 32568, "subject": "Mathematics (Multi-modal)", "question": "For each positive integer $n \\ge 3$, define $A_n$ and $B_n$ as\n$$\nA_n = \\sqrt{n^2 + 1} + \\sqrt{n^2 + 3} + \\dots + \\sqrt{n^2 + 2n - 1},\n$$\n$$\nB_n = \\sqrt{n^2 + 2} + \\sqrt{n^2 + 4} + \\dots + \\sqrt{n^2 + 2n}.\n$$\nDetermine all positive integers $n \\ge 3$ for which $\\lfloor A_n \\rfloor = \\lfloor B_n \\rfloor$.\n\n*Note*. For any real number $x$, $\\lfloor x \\rfloor$ denotes the largest integer $N$ such that $N \\le x$.", "options": [], "answer": "all odd integers n >= 3", "solution": "Let $M = n^2 + \\frac{1}{2}n$.\n\n**Lemma 1.** $B_n - A_n < \\frac{1}{2}$.\n\nIndeed,\n$$\n(B_n - A_n) = \\sum_{k=1}^{n} (\\sqrt{n^2 + 2k} - \\sqrt{n^2 + 2k - 1}) = \\sum_{k=1}^{n} \\frac{1}{\\sqrt{n^2 + 2k} + \\sqrt{n^2 + 2k - 1}} < \\sum_{k=1}^{n} \\frac{1}{2n} = \\frac{n}{2n} = \\frac{1}{2}\n$$\nproving the lemma.\n\n**Lemma 2.** $A_n < M < B_n$.\n\n*Proof.* Observe that\n$$\n(A_n - n^2) = \\sum_{k=1}^{n} \\left( \\sqrt{n^2 + 2k - 1} - n \\right) = \\sum_{k=1}^{n} \\frac{2k - 1}{\\sqrt{n^2 + 2k - 1} + n} < \\sum_{k=1}^{n} \\frac{2k - 1}{n + n} = \\frac{n^2}{2n} = \\frac{n}{2}\n$$\nas $\\sum_{k=1}^{n}(2k-1) = n^2$, proving $A_n - n^2 < \\frac{n}{2}$ or $A_n < M$. Similarly,\n$$\n(B_n - n^2) = \\sum_{k=1}^{n} (\\sqrt{n^2 + 2k} - n) = \\sum_{k=1}^{n} \\frac{2k}{\\sqrt{n^2 + 2k} + n} > \\sum_{k=1}^{n} \\frac{2k}{(n+1) + n} = \\frac{n(n+1)}{2n+1} > \\frac{n}{2}\n$$\nas $\\sum_{k=1}^{n}(2k) = n(n+1)$, so $B_n - n^2 > \\frac{n}{2}$ hence $B_n > M$, as desired. $\\square$\n\nBy Lemma 2, we see that $A_n$ and $B_n$ are positive real numbers containing $M$ between them. When $n$ is even, $M$ is an integer. This implies $\\lfloor A_n \\rfloor < M$, but $\\lfloor B_n \\rfloor \\ge M$, which means we cannot have $\\lfloor A_n \\rfloor = \\lfloor B_n \\rfloor$.\n\nWhen $n$ is odd, $M$ is a half-integer, and thus $M - \\frac{1}{2}$ and $M + \\frac{1}{2}$ are consecutive integers. So the above two lemmas imply\n$$\nM - \\frac{1}{2} < B_n - (B_n - A_n) = A_n < B_n = A_n + (B_n - A_n) < M + \\frac{1}{2}.\n$$\nThis shows $\\lfloor A_n \\rfloor = \\lfloor B_n \\rfloor = M - \\frac{1}{2}$.\n\nThus, the only integers $n \\ge 3$ that satisfy the conditions are the odd numbers and all of them work. $\\square$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32569, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn triangle $ABC$ with $CA = CB$, point $E$ lies on the circumcircle of $ABC$ such that $\\angle ECB = 90^\\circ$. The line through $E$ parallel to $CB$ intersects $CA$ in $F$ and $AB$ in $G$. Prove that the centre of the circumcircle of triangle $EGB$ lies on the circumcircle of triangle $ECF$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\n![](attached_image_1.png)\n\nWe have $FG = FA$ since $FG$ is parallel to $BC$. But also $\\triangle GAE$ is a right angle triangle. Thus, if $F'$ is the midpoint of $GE$, then $\\angle GAF = \\angle FGA = \\angle F'GA = \\angle GAF'$, which implies $F \\equiv F'$. Thus, $F$ is the midpoint of $GE$.\n\nIf $O$ is the circumcenter of $\\triangle EBG$, then\n$$\n\\angle FOE = \\angle GBE = \\angle ABE = \\angle ACE = \\angle FCE\n$$\nThus, we get $\\angle FOE = \\angle FCE$ as desired.\nSolution:\n\n($\\angle BCA$ acute case)\n\nLet $O_1$ be the circumcenter of $\\triangle ABC$, $O$ be the circumcenter of $\\triangle EBG$ and $\\omega$ be the circumcircle of $\\triangle ECF$.\n\nFirst, show that $F$ is the midpoint of $EG$ as in Solution 1. Next, we show that $O_1$ lies on $\\omega$. This follows from\n$$\n\\angle EO_1C = 2\\angle EBC = 2\\angle O_1BC = 2\\angle BCO_1 = \\angle BCA = \\angle EFC\n$$\nNow, $O_1$ is the midpoint of $EB$ and $F$ is the midpoint of $EG$, therefore the homothety at $E$ with ratio $1/2$ takes $\\triangle EGB$ to $\\triangle EFO_1$. Thus, it takes $O$, the circumcenter of $\\triangle EGB$, to the circumcenter of $\\triangle EFO_1$, thus proving that the midpoint of $EO$ is the center of $\\omega$. This immediately implies that $O$ lies on $\\omega$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32570, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAll the squares of a $2024 \\times 2024$ board are coloured white. In one move, Mohit can select one row or column whose every square is white, choose exactly 1000 squares in this row or column, and colour all of them red. Find the maximum number of squares that Mohit can colour red in a finite number of moves.", "options": [], "answer": "3048000", "solution": "Solution:\n\nLet $n=2024$ and $k=1000$. We claim that the maximum number of squares that can be coloured in this way is $k(2n-k)$, which evaluates to $3048000$.\n\nIndeed, call a row/column bad if it has at least one red square. After the first move, there are exactly $k+1$ bad rows and columns: if a row was picked, then that row and the $k$ columns corresponding to the chosen squares are all bad. Any subsequent move increases the number of bad rows/columns by at least $1$. Since there are only $2n$ rows and columns, we can make at most $2n-(k+1)$ moves after the first one, and so at most $2n-k$ moves can be made in total. Thus we can have at most $k(2n-k)$ red squares.\n\nTo prove this is achievable, let's choose each of the $n$ columns in the first $n$ moves, and colour the top $k$ cells in these columns. Then, the bottom $n-k$ rows are still uncoloured, so we can make $n-k$ more moves, colouring $k(n+n-k)$ cells in total.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32571, "subject": "Mathematics (Multi-modal)", "question": "Prove that for every natural number $m$, there exists a natural number $N$ such that for every natural number $b$ that $2 \\le b \\le 1389$, the sum of digits of $N$ in base $b$, is more than $m$.", "options": [], "answer": "Detailed solution", "solution": "We claim that $N = (1389!)^{m+1} - 1$ has the desired properties. Let $2 \\le b \\le 1389$, we know that there are at least $m+1$ zeros in the rightmost of $(1389!)^{m+1}$ in base $b$, because $(1389!)^{m+1}$ is divisible by $b^{m+1}$. Hence, the $m+1$ rightmost digits of $(1389!)^{m+1} - 1$ is $b-1$, then sum of the digits of $N$ in base $b$ is at least $(m+1)(b-1)$ which is greater than or equal to $m+1$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32572, "subject": "Mathematics (Multi-modal)", "question": "Let $n > 2$ and $A_1, A_2, ..., A_n$ be $n$ points on the plane that no three of them are collinear.\n\na. Let $M_1, M_2, ..., M_n$ be $n$ points on the segments $A_1A_2, A_2A_3, ..., A_nA_1$ respectively. Show that if $B_1, B_2, ..., B_n$ are $n$ points in the triangles $M_nA_1M_1, M_1A_2M_2, ..., M_{n-1}A_nM_n$ respectively, then the following holds\n$$\n|B_1B_2| + |B_2B_3| + \\dots + |B_nB_1| \\le |A_1A_2| + |A_2A_3| + \\dots + |A_nA_1|\n$$\nwhere $|XY|$ means the length of the segment $XY$.\n\nb. We define $H_{XYZ}$ as the half-plane with the outer bisector of angle $\\overline{XYZ}$ as its boundary which does not contain the inner bisector of $\\overline{XYZ}$.\nShow that if $C_1, C_2, ..., C_n$ are $n$ points in the half-planes $H_{A_nA_1A_2}, H_{A_1A_2A_3}, ..., H_{A_{n-1}A_nA_1}$ respectively, then\n$$\n|A_1A_2| + |A_2A_3| + |A_nA_1| \\le |C_1C_2| + |C_2C_3| + \\dots + |C_nC_1|\n$$", "options": [], "answer": "Detailed solution", "solution": "a.\n**Lemma.** If $P$ is a point in the triangle $ABC$, then: $PB + PC \\le AB + AC$.\n\nPROOF. We extend $CP$ to meet $AB$ in $D$. We have (by triangle inequality):\n$$\nPB + PC \\le BD + PD + PC = BD + CD \\le BD + DA + AC = AB + AC\n$$\n\nNow we return to the problem. From the triangle inequality we have:\n$$\n\\begin{align*}\nB_1B_2 + B_2B_3 + \\cdots + B_nB_1 &\\le (B_1M_1 + B_2M_1) + (B_2M_2 + B_3M_2) + \\cdots + (B_nM_n + B_1M_n) \\\\\n&= (B_1M_1 + B_1M_n) + (B_2M_1 + B_2M_n) + \\cdots + (B_nM_{n-1} + B_nM_n) \\\\\n\\text{(according to lemma)} \\quad &\\le (A_1M_1 + A_1M_n) + (A_2M_1 + A_2M_n) + \\cdots + (A_nM_{n-1} + A_nM_n) \\\\\n&= A_1A_2 + A_2A_3 + \\cdots + A_nA_1\n\\end{align*}\n$$\n\nb.\nSuppose that for all $1 \\le k \\le n$, we have $\\overrightarrow{A_k A_{k+1}} = L_k \\overrightarrow{u_k}$ in which $L_k$ is the length of $A_k A_{k+1}$ and $\\overrightarrow{u_k}$ is the unit vector codirectional with $\\overrightarrow{A_k A_{k+1}}$. In this case the vector $\\overrightarrow{u_k} - \\overrightarrow{u_{k-1}}$ is codirectional with the inner bisector of the angle $\\angle A_{k-1} A_k A_{k+1}$.\n\nAlso suppose that $\\overrightarrow{\\omega_k} = \\overrightarrow{A_k C_k}$, hence from the definition of $C_k$ we can say that: $\\text{(*) } \\overrightarrow{\\omega_k} \\cdot (\\overrightarrow{u_k} - \\overrightarrow{u_{k-1}}) \\le 0$, plus we have (consider $C_0, \\overrightarrow{\\omega_0}, \\overrightarrow{u_0}$ the same as $C_n, \\overrightarrow{\\omega_n}, \\overrightarrow{u_n}$):\n$$\n\\overrightarrow{C_{k-1}C_k} = \\overrightarrow{\\omega_k} + L_k \\overrightarrow{u_{k-1}} - \\overrightarrow{\\omega_{k-1}}\n$$\nNote that $|\\overrightarrow{u_{k-1}}| = 1$, we can say:\n$$\n\\begin{align*}\n|\\overrightarrow{C_{k-1}C_k}| &\\ge \\overrightarrow{C_{k-1}C_k} \\cdot \\overrightarrow{u_{k-1}} = (\\overrightarrow{\\omega_k} + L_k \\overrightarrow{u_{k-1}} - \\overrightarrow{\\omega_{k-1}}) \\cdot \\overrightarrow{u_{k-1}} \\\\\n&= \\overrightarrow{\\omega_k} \\cdot \\overrightarrow{u_{k-1}} + L_k - \\overrightarrow{\\omega_{k-1}} \\cdot \\overrightarrow{u_{k-1}}\n\\end{align*}\n$$\nSo\n$$\n\\sum_{k=1}^{n} |\\overrightarrow{C_{k-1}C_k}| \\ge \\sum_{k=1}^{n} L_k + \\sum_{k=1}^{n} \\overrightarrow{\\omega_k} \\cdot \\overrightarrow{u_{k-1}} - \\sum_{k=1}^{n} \\overrightarrow{\\omega_{k-1}} \\cdot \\overrightarrow{u_{k-1}}\n$$\nFrom the other hand, with respect to $(*)$, we have:\n$$\n\\begin{align*}\n\\sum_{k=1}^{n} \\overrightarrow{\\omega_k} \\cdot (\\overrightarrow{u_k} - \\overrightarrow{u_{k-1}}) &\\le 0 \\Rightarrow \\sum_{k=1}^{n} \\overrightarrow{\\omega_k} \\cdot \\overrightarrow{u_{k-1}} \\\\\n&\\ge \\sum_{k=1}^{n} \\overrightarrow{\\omega_k} \\cdot \\overrightarrow{u_k} = \\sum_{k=1}^{n} \\overrightarrow{\\omega_{k-1}} \\cdot \\overrightarrow{u_{k-1}}\n\\end{align*}\n$$\nSo we deduce that:\n$$\n\\sum_{k=1}^{n} |\\overrightarrow{C_{k-1}C_k}| \\geq \\sum_{k=1}^{n} L_k = \\sum_{k=1}^{n} |\\overrightarrow{A_k A_{k+1}}|\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32573, "subject": "Mathematics (Multi-modal)", "question": "Let $p(x)$ be a polynomial of degree $2$ such that $|p(x)| \\le 1$ holds for $x \\in \\{-1, 0, 1\\}$. Show that for every $x \\in [-1, 1]$\n$$\n|p(x)| \\le \\frac{5}{4}\n$$", "options": [], "answer": "Detailed solution", "solution": "Notice that\n$$\np(x) = a x^2 + b x + c = \\frac{x(1+x)}{2} p(+1) - \\frac{x(1-x)}{2} p(-1) + (1-x^2) p(0)\n$$\nIf $0 \\le x \\le +1$, we see that\n$$\n|a x^2 + b x + c| \\le + \\frac{x(1+x)}{2} + \\frac{x(1-x)}{2} + (1-x^2) = \\frac{5}{4} - \\left(\\frac{1}{2} - x\\right)^2 \\le \\frac{5}{4}\n$$\nIf $-1 \\le x \\le 0$, we see that\n$$\n|a x^2 + b x + c| \\le - \\frac{x(1+x)}{2} - \\frac{x(1-x)}{2} + (1-x^2) = \\frac{5}{4} - \\left(\\frac{1}{2} + x\\right)^2 \\le \\frac{5}{4}\n$$\nThis proves that $|p(x)| \\le \\frac{5}{4}$ for all $x \\in [-1, +1]$.", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 32574, "subject": "Mathematics (Multi-modal)", "question": "Find all polynomials $P(x, y)$ with real coefficients such that for every $a, b, c \\in \\mathbb{R}$,\n$$\nP(ab, c^2 + 1) + P(bc, a^2 + 1) + P(ca, b^2 + 1) = 0\n$$", "options": [], "answer": "P(x, y) ≡ 0", "solution": "Let $Q(x, y) = P(x, y + 1)$. So we must find all polynomials $Q(x, y)$ such that for all $a, b, c \\in \\mathbb{R}$:\n$$\n(\\star) \\qquad Q(ab, c^2) + Q(bc, a^2) + Q(ca, b^2) = 0\n$$\nSuppose that $Q(x, y)$ be the polynomial with the least degree that satisfies the above equation, we reach the contradiction by finding a polynomial with lesser degree that satisfies the above equation, concluding that $Q$ can only be zero. Let $a = b = c = 0$, so $Q(0,0) = 0$. Now let $a = b = 0$, it results that $Q(0, c^2) = 0$, hence we can say that for every $y$, we have $Q(0, y) = 0$. Then by letting $a = 0$ we conclude that $Q(bc, 0) = 0$. Thus for all $x$, we have $Q(x, 0) = 0$, so we can consider $Q(x, y) = xyR(x, y)$. By applying it to the above equation, we have:\n$$\nabc^2 R(ab, c^2) + a^2 b c R(bc, a^2) + ab^2 c R(ca, b^2) = 0 \\\\ \\Rightarrow c R(ab, c^2) + a R(bc, a^2) + b R(ca, b^2) = 0\n$$\nIf we let $a = b = 0$, it concludes that $R(0, c^2) = 0$. So for all $y$, $R(0, y) = 0$, it means that $R(x, y) = xQ'(x, y)$. It is seen that $Q'$ satisfies the $(\\star)$, so we reached the contradiction, and hence $P \\equiv 0$.", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 32575, "subject": "Mathematics (Multi-modal)", "question": "$f: \\mathbb{N} \\to \\mathbb{N}$ is an increasing function and $n$ is a natural number. Suppose that there exist prime numbers $p_1, p_2, \\ldots, p_n$ and natural numbers $s_1, s_2, \\ldots, s_n$ such that for every $1 \\le i \\le n$ the set $\\{f(p_i r + s_i) \\mid r = 1, 2, \\ldots \\}$ is an infinite arithmetic progression. Prove that there exists natural number $a$ such that\n$$\nf(a + 1), f(a + 2), \\ldots, f(a + n)\n$$\nis an arithmetic progression.", "options": [], "answer": "Detailed solution", "solution": "Suppose that $\\{f(p_i r + s_i) \\mid r \\in \\mathbb{N}\\}$ is an arithmetic progression with common difference $d_i$. Since $f$ is increasing, $d_i$ must be positive. (Even if for one $i$, we have $d_i = 0$, the problem is easy.) So we know that $f(p_i r_1 + s_i) - f(p_i r_2 + s_i) = d_i(r_1 - r_2)$.\n\nNow by using the Chinese Remainder Theorem, we conclude that there exists $x_{ij}$ such that $x_{ij} \\equiv s_i \\pmod{p_i}$ and $x_{ij} \\equiv s_j \\pmod{p_j}$. This means that $x_{ij}$ can be written in both forms $p_i r + s_i$ and $p_j r' + s_j$. Now it is seen that $x_{ij} + p_i p_j$ is in both progressions, so:\n$$\nf(x_{ij} + p_i p_j) = f(x_{ij}) + d_i p_j \\\\\nf(x_{ij} + p_i p_j) = f(x_{ij}) + d_j p_i\n$$\nSo $d_i p_j = d_j p_i$. And hence $p_i \\mid d_i$ for every $i$, and also $\\frac{d_i}{p_i}$ is constant for every $i$. Name this constant value $d$ ($d_i = d p_i$).\n\nOn the other hand, we can find $X$ such that $\\forall i: X \\equiv s_i \\pmod{p_i}$; it means $X$ appears in all of the progressions. Also, we can find $Y$ such that $\\forall i: Y \\equiv -i \\pmod{p_i}$, it means $\\forall i: p_i \\mid Y + i$. ($X, Y$ are found using the Chinese Remainder Theorem.) So for every $i$, $X$ and $X + Y + i$ are in all $p_i r + s_i$ progressions, hence:\n$$\n\\forall i: f(X + Y + i) = f(X) + \\frac{Y + i}{p_i} \\times d_i = f(X) + d(Y + i)\n$$\nAnd this means that if $a = X + Y$, then $f(a + 1), f(a + 2), \\dots, f(a + n)$ form an arithmetic progression.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32576, "subject": "Mathematics (Multi-modal)", "question": "Two circles $\\omega_1$ and $\\omega_2$ intersect at $P$ and $K$. $XY$ is the common tangent of them near to $P$ such that $X$ is on $\\omega_1$ and $Y$ is on $\\omega_2$. $XP$ intersects $\\omega_2$ for the second time at $C$, and $YP$ intersects $\\omega_1$ for the second time at $B$. $A$ is the intersection of $BX$ and $CY$. If $Q$ be the second intersection point of circumcircle $ABC$ and circumcircle $AXY$, prove that\n$$\n\\overline{QXA} = \\overline{QKP}\n$$", "options": [], "answer": "Detailed solution", "solution": "Since $Q$ is on both circumcircles of $ABC$ and $AXY$, so there is a spiral similarity about $Q$ carrying one of these circles to another such that it carries $X$ to $B$, and $Y$ to $C$. Suppose this similarity carries $K$ to a point $T$. It is enough that we prove that the points $P, K, T$ are collinear, because then, considering the similarity of $QKT$ and $QXB$ we have:\n$$\n\\angle QXA = 180^\\circ - \\angle QXB = 180^\\circ - \\angle QKT = \\angle QKP\n$$\nNow we prove that $P, K, T$ are collinear:\nThe spiral similarity about $Q$, carries $X, Y, K$ to $B, C, T$ respectively. So the triangles $XYK$ and $BCT$ are similar. From the other hand: (let $m(AB)$ denote the measure of the arc $AB$)\n$$\n\\angle BXK = \\angle BPK = \\frac{m(YK)}{2} = \\angle XYK \\\\\n\\angle XBK = \\frac{m(KX)}{2} = \\angle YXK\n$$\n\nThus the triangles $BXK$ and $XYK$ are similar, and hence $BXK$ and $BCT$ are similar. So $\\frac{BX}{BK} = \\frac{BC}{BT}$, also $\\angle XBK = \\angle CBT \\Rightarrow \\angle XBC = \\angle KBT$. From which we deduce that $BKT$ and $BXC$ are similar. So $\\angle BXC = \\angle BKT$, and:\n$$\n\\Rightarrow \\angle BKT + \\angle BKP = \\angle BXC + \\angle BKP = 180^\\circ \\Rightarrow K,P,T \\text{ are collinear}\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32577, "subject": "Mathematics (Multi-modal)", "question": "In triangle $ABC$, $O$ is the circumcenter and $H$ is the orthocenter. $M$ and $N$ are the midpoints of $BH$ and $CH$ respectively and $BB'$ is a diameter of the circumcircle. If $HONM$ be an inscribed quadrilateral, prove that\n$$\nB'N = \\frac{1}{2}AC\n$$", "options": [], "answer": "Detailed solution", "solution": "Let $\\omega$ be the circumcircle of the quadrilateral $HONM$. A $2$ homothety at $H$, takes $M, N$ to $B, C$ respectively. So this homothety maps $\\omega$ to the circumcircle of $HBC$. So $\\omega$ is tangent to the circumcircle of $HBC$ at $H$ and its radius is half of the radius of the circumcircle of $HBC$. We know that the radius of the circumcircle of $HBC$ is equal to the radius of the circumcircle of $ABC$ ($R$). Hence $\\omega$ passes through the center of the circumcircle of $ABC$ and its radius is $\\frac{R}{2}$. So $\\omega$ is tangent to the circumcircle of $ABC$ (at $T$). The circumcircles of $ABC$ and $HBC$ are symmetric across the line $BC$, as well as $H, T$ (the points of tangency of these two circles with $\\omega$) and we deduce that $HT \\perp BC$. On the other hand, $OT$ is a diameter of $\\omega$ ($OT = R$), hence $HT \\perp HO$ and so $HO \\parallel BC$. Hence the line $HO$ is perpendicular to $B'C$, and since $OC = OB'$, this line is the perpendicular bisector of $B'C$, so $HB' = HC$. Now let $D$ be the midpoint of $HB'$, then the medians $B'N, CD$ are equal in the isosceles triangle $H'BC$. Now since $AH$ and $B'C$ are both perpendicular to $BC$, they are parallel. Similarly, $CH$ and $B'A$ are both perpendicular to $AB$, and are parallel. So $AB'CH$ is a parallelogram and its diagonals bisect each other, from this we determine that $D$ is the midpoint of $AC$ and hence: $B'N = CD = \\frac{AC}{2}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32578, "subject": "Mathematics (Multi-modal)", "question": "We call the permutation $\\pi$ of $\\{1,2, ..., n\\}$ *consistent* if the set $\\{\\pi(k) - k \\mid k = 1,2, ..., n\\}$ has 2 members. Prove that the total number of *consistent* permutations is $\\sigma(n) - \\tau(n)$, where $\\sigma(n)$ is the sum of the positive divisors of $n$ and $\\tau(n)$ is the number of positive divisors of $n$.", "options": [], "answer": "σ(n) - τ(n)", "solution": "Since $\\sum_{k=1}^{n}(\\pi(k) - k) = 0$, so from the two members of $\\{\\pi(k) - k \\mid k = 1, 2, ..., n\\}$, one should be positive and the other one negative. Let $a$ be the positive and $-b$ be the negative members. Also let $A = \\{k \\mid \\pi(k) - k = a\\}$ and $B = \\{k \\mid \\pi(k) - k = -b\\}$. First note that if $i \\in A$ then $i + a + b \\in A$. Because if $i \\in A$ and $i + a + b \\le n$, then $\\pi(i) = i + a$ and hence $\\pi(i + a + b) \\ne i + a$, and so $\\pi(i + a + b) - (i + a + b) = a$, it means that $i + a + b \\in A$. Similarly, we can say that if $j \\in B$ (and $j - (a + b) \\ge 1$) then $j - (a + b) \\in B$.\n\nAlso, note that for every $1 \\le i \\le b$, we have $i \\in A$. So considering the above paragraph, if for $1 \\le i \\le n$, the remainder of $i$ upon division by $a + b$, be less than or equal to $b$, then $i \\in A$. Similarly for $n - a < i \\le n$, we have $i \\in B$. Thus from every $a + b$ consecutive numbers, there are at least $a$ of them in $B$ and hence if the remainder of the division of $j$ by $a + b$, be more than $b$, then $j \\in B$. So easily we deduce that $d = a + b \\mid n$. For each divisor $d$ of $n$, there are $d-1$ different pairs of $(a, b)$ whose sum is $d$. So the total number of states is equal to:\n$$\n\\sum_{d \\mid n} (d-1) = \\sum_{d \\mid n} d - \\sum_{d \\mid n} 1 = \\sigma(n) - \\tau(n)\n$$", "topic": "Discrete Mathematics", "subtopic": "Combinatorics" }, { "id": 32579, "subject": "Mathematics (Multi-modal)", "question": "There is a $m \\times n$ board divided into $mn$ unit squares, and we have drawn one of the two diagonals of each unit square. Prove that there is a path using only these diagonals that either connects the upper side of the board to the lower side or connects the left side of it to the right side.", "options": [], "answer": "Detailed solution", "solution": "A connected component of diagonals is some of the diagonals that are connected to each other by a path of diagonals, and if we add another diagonal to it, it will no longer be connected. Easily, it can be seen that the diagonals that are not in this component but are on the border of this component, are connected. (until they don't cross the table sides.)\n\nNow, consider a path of diagonals that starts from the upper side of the table and has the maximum height among all the paths starting from the upper side. If the height of this path be $m$, the problem is solved, otherwise suppose that the height be less than $m$. Consider the connected component having this path. If this component is not connected to the right side of the table, then its rightmost border's height will be more, and this is a contradiction. Similarly if this connected component is not connected to the left side of the table, then its leftmost border's height will be more, and a contradiction. Thus, this connected component is connected to both right and left sides of the table, and hence they're connected to each other.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32580, "subject": "Mathematics (Multi-modal)", "question": "We have drawn a polygon with $2n$ sides without picking up the pencil from the paper. If we name the sides from $1$ to $2n$ with the order of drawing them, then the odd sides are all vertical and are drawn bottom-up. Prove that this polygon intersects itself.", "options": [], "answer": "Detailed solution", "solution": "**First Solution:**\nIf a polygon does not intersect itself, then by moving clockwise (or counterclockwise) along its sides, the inside (or outside) of the polygon must always be at our right-side. But if the said polygon doesn't intersect itself, then the right-side of its rightmost side (because it is drawn upward) is its outside, and the right-side of its leftmost side (because it is drawn upward) is its inside, which is a contradiction.\n\n\n**Second Solution:**\nSuppose that the leftmost side of the polygon connects the vertex $A$ upward to the vertex $B$, and the rightmost side connects the vertex $C$ upward to the vertex $D$. Then all of the polygon must be between the lines $AB$ and $CD$. Clearly, the remaining of the polygon contains a path that connects $B$ to $C$, and another one that connects $D$ to $A$; but these two paths intersect.\n\n\n**Third Solution:**\nSuppose that this polygon has $2n$ sides and doesn't intersect itself. In this case, total sum of the angles of this polygon is equal to $(2n - 2) \\times 180^{\\circ} = (n - 1) \\times 360^{\\circ}$. On the other hand, each non-vertical side of this polygon is adjacent to two vertical sides that are drawn upward. So the sum of the two adjacent angles to each non-vertical side is $360^{\\circ}$, and since we have $n$ non-vertical sides, the total sum of all angles equals $n \\times 360^{\\circ}$, which is a contradiction.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32581, "subject": "Mathematics (Multi-modal)", "question": "Do there exist two functions $f, g: \\mathbb{R} \\to \\mathbb{R}$ such that for all $x \\neq y$ the following inequality holds?\n$$\n|f(x) - f(y)| + |g(x) - g(y)| > 1\n$$", "options": [], "answer": "No, such functions do not exist.", "solution": "For all $x \\neq y$ we have:\n$$\n(f(x) - f(y))^2 + (g(x) - g(y))^2 \\geq \\frac{1}{2} (|f(x) - f(y)| + |g(x) - g(y)|)^2 > \\frac{1}{2}\n$$\nFor every $x$, consider the point $(f(x), g(x))$ in the $\\mathbb{R}^2$ plane. The above inequality shows that the distance between every two of these points is more than $\\frac{1}{\\sqrt{2}}$. For every point $(f(x), g(x))$, consider a circle with center at this point and a radius of $\\frac{1}{2\\sqrt{2}}$, so not two of these circles intersect. On the other hand the number of these points are uncountable, so we have an uncountable number of circles in the plane that no two of them intersect and this is impossible; because there is a point with rational coordinates in every one of the circles, hence we would have an uncountable number of points with rational coordinates and since we know that the total number of the points with rational coordinates is countable, this is a contradiction; so no two functions with this property exist.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 32582, "subject": "Mathematics (Multi-modal)", "question": "In the isosceles triangle $ABC$, we have $AB = AC$ and $BC > AB$. $D$ and $M$ are the midpoints of $BC$ and $AB$ respectively. $X$ is a point that $BX \\perp AC$ and $XD \\parallel AB$. $H$ is the intersection of $BX$ and $AD$. If $P$ be the intersection of $DX$ with the circumcircle of $AHX$ (not $X$), prove that the tangent line in $A$ to the circumcircle of $AMP$ is parallel to $BC$.", "options": [], "answer": "Detailed solution", "solution": "Obviously $X, P, D, M$ are collinear. Since $HAPX$ is an inscribed quadrilateral, then $\\angle APM = \\angle AHX$, and since $HCDT$ is inscribed ($T$ is the foot of the altitude from $B$ on $AC$), then $\\angle AHX = \\angle AHT = \\angle ACD$. Hence, $\\angle APM = \\angle C = \\angle B$. Now if we draw ray $Ax$ parallel to $BC$ such that $\\angle CAx = \\angle C$, then in the circumcircle of $AMP$: (let $s$ be the measure of the arc $AM$)\n$$\n\\angle MAx = \\angle C = \\angle APM = \\frac{s}{2}\n$$\nHence we deduce that $Ax$ is tangent to circumcircle of $AMP$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32583, "subject": "Mathematics (Multi-modal)", "question": "Consider a spherical ball on a plane and a point marked on it. We want to roll the ball on a closed polygon of the plane to bring the mark to the top of the ball while the ball is on its first place. Note that the ball must not roll in its place (it means rolling without moving on the plane). Prove that this is possible.\n\n![](attached_image_1.png)", "options": [], "answer": "Detailed solution", "solution": "Let $r$ be the radius of the ball and $O$ be its first position on the plane. First, we roll the ball (sphere) on its great circle that passes through the marked point and the top point of the ball, until the mark be on top of the ball. Let $A$ be the current position of the ball on the plane. It is trivial that $OA < 2\\pi r$. So there exists a point $B$ on the plane so that $AB = OB = 2\\pi r$. Now we roll the ball from $A$ to $B$ on the segment $AB$, and since $AB = 2\\pi r$, the mark will be at the top of the ball. Then we roll the ball from $B$ to $O$ on $BO$ and the mark is at the top of the ball while it is on its first position.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32584, "subject": "Mathematics (Multi-modal)", "question": "Natural numbers $a_1 < a_2 < \\dots < a_n$ have this property that for every distinct $i$ and $j$, $a_i$ is divisible by $a_j - a_i$. Prove that for every $i < j$, $i a_j \\le j a_i$", "options": [], "answer": "Detailed solution", "solution": "For all distinct $i, j$ that $i < j$, we have $a_j - a_i \\mid a_j$, and\n$$\na_j > a_j - a_1 > a_j - a_2 > \\cdots > a_j - a_i\n$$\nOn the other hand all of the above terms are divisors of $a_j$, so if the divisors of $a_j$ in decreasing order be $a_j > b_1 > b_2 > \\cdots > b_k$, then $a_j - a_i \\le b_i$. Since we know that $b_i \\le \\frac{a_j}{i+1}$, we have\n$$\na_j - a_i \\le \\frac{a_j}{i+1} \\Rightarrow (i+1)(a_j - a_i) \\le a_j \\Rightarrow i \\times a_j \\le (i+1) \\times a_i \\le j \\times a_i\n$$\nAnd the problem is solved.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32585, "subject": "Mathematics (Multi-modal)", "question": "We call a sequence $a_0, \\ldots, a_{1389}$ of real numbers *concave* if for every $0 < i < 1389$ we have $a_i \\ge \\frac{a_{i-1} + a_{i+1}}{2}$. Find the maximum number $c$ such that for every *concave* sequence of nonnegative numbers, we have\n$$\n\\sum_{i=0}^{1389} i a_i^2 \\ge c \\sum_{i=0}^{1389} a_i^2\n$$", "options": [], "answer": "(1389^2 - 5*1389)/(4*1389 - 2)", "solution": "First consider the concave sequence $a_i = (1389 - i)d$, $0 \\le i \\le 1389$, $d > 0$. Note that the maximum possible value of $c$ for this sequence is $c_0 = \\frac{\\sum_{i=0}^{1389} i a_i^2}{\\sum_{i=0}^{1389} a_i^2} = \\frac{1389^2 - 5 \\times 1389}{4 \\times 1389 - 2}$.\n\nNow we claim that for every concave sequence $a_i$, we have $\\sum_{i=0}^{1389} i a_i^2 \\ge c_0 \\sum_{i=0}^{1389} a_i^2$, and since we have the above equality, $c_0$ must be the answer.\nConsider a concave sequence $a_0, a_1, \\dots, a_{1389}$, we define\n$$\nb_i = (1389 - i) \\frac{a_{\\lfloor c_0 \\rfloor}}{1389 - \\lfloor c_0 \\rfloor}\n$$\nIndeed we are trying to make the sequence linear. Now we must prove that:\n$$\n\\sum_{i=\\lfloor c \\rfloor}^{1389} (i-c)a_i^2 \\ge \\sum_{i=0}^{\\lfloor c \\rfloor} (c-i)a_i^2\n$$\nConsidering the definition of $b_i$ and its linearity, and the fact that $a_{\\lfloor c_0 \\rfloor} = b_{\\lfloor c_0 \\rfloor}$, $a_{1389} \\ge b_{1389}$, easily it can be proved that if $i \\ge \\lfloor c_0 \\rfloor$ then $a_i \\ge b_i$, and if $i \\le \\lfloor c_0 \\rfloor$ then $a_i \\le b_i$. So we have:\n$$\n\\sum_{i=\\lfloor c_0 \\rfloor}^{1389} (i - c_0)a_i^2 \\ge \\sum_{i=\\lfloor c_0 \\rfloor}^{1389} (i - c_0)b_i^2 \\ge \\sum_{i=0}^{\\lfloor c_0 \\rfloor} (c_0 - i)b_i^2 \\ge \\sum_{i=0}^{\\lfloor c_0 \\rfloor} (c_0 - i)a_i^2\n$$\nSo the desired $c$ equals to $c_0 = \\frac{1389^2 - 5 \\times 1389}{4 \\times 1389 - 2}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32586, "subject": "Mathematics (Multi-modal)", "question": "There are $11$ men sitting around a circular table with equal distances and $11$ cards with numbers $1,2,\\ldots,11$ on them are dealt among them. It is possible that one has no cards and the other has more than one. In each step one can give one of his cards to his adjacent individual if the card number $i$ has the following property: before and after this stage, the places of the cards with numbers $i-1$, $i$ and $i+1$ are **not** the vertices of an acute-angled triangle. (card $0$ is the same as card $11$, and card $12$ is the same as card $1$) At the beginning the cards $1$ to $11$ are dealt among them counter-clockwise. (everyone has exactly one card) Prove that there will never be a man who has all the cards.", "options": [], "answer": "Detailed solution", "solution": "First divide the table into $11$ equal arcs. Now if the cards $i, j$ be on the points $A, B$ on the table, we define the distance between these two cards as the number of arcs between $A, B$ on the table (the smaller one). For example, the distance between $i, j$ is $5$ in the following figure:\n\n![](attached_image_1.png)\n\nNow, after each step we sum the distances between every two cards with consecutive numbers. Easily it can be proved that after each step this sum either remains invariant or varies by $2$. Because if the place of card $i$ is between $i-1$ and $i+1$, this sum doesn't change, otherwise it changes by $2$. So the parity of this sum remains invariant. At first it is odd ($= 11$), and if they are all in one place this sum would be even, so it is impossible.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32587, "subject": "Mathematics (Multi-modal)", "question": "Let $m$, $n$ be two relatively prime integers. Prove that the following equation has an infinite number of solutions:\n$$\nx^m t^n + y^m s^n = v^m r^n\n$$", "options": [], "answer": "Detailed solution", "solution": "First note that if $(x, t, y, s, v, r)$ is a solution, then\n$$\n(x \\cdot a^{kn},\\ t \\cdot a^{km},\\ y \\cdot a^{kn},\\ s \\cdot a^{km},\\ v \\cdot a^{kn},\\ r \\cdot a^{km})\n$$\nis another solution. So it is enough to find a primary solution. We know that\n$$\n\\begin{aligned}\n2 + 3 = 5 &\\Rightarrow 2^{mn+1} \\times 3^{mn} \\times 5^{mn} + 2^{mn} \\times 3^{mn+1} \\times 5^{mn} \\\\\n&= 2^{mn} \\times 3^{mn} \\times 5^{mn+1}\n\\end{aligned}\n$$\nNow since $\\gcd(m, n) = 1$, hence there exists $1 \\le i < n$ such that $mi \\equiv -1 \\pmod{n}$. So $mi + 1 = nd$, $d \\in \\mathbb{N}$, and hence $mn + 1 = m(n - i) + mi + 1 = m(n - i) + nd$. So we have\n$$\n(2^{n-i} \\times 3^n \\times 5^n)^m \\times (2^d)^n + (2^n \\times 3^{n-i} \\times 5^n)^m \\times (3^d)^n \\\\\n= (2^n \\times 3^n \\times 5^{n-i})^m \\times (5^d)^n\n$$\nThus, a group of infinite solutions for the mentioned equation is:\n$$\n(x, t, y, s, v, r) \\\\\n= (2^{n-i} \\times 3^n \\times 5^n \\times a^{kn},\n2^d \\times a^{km},\n2^n \\times 3^{n-i} \\times 5^n \\times a^{kn},\n3^d \\times a^{km},\n2^n \\times 3^n \\times 5^{n-i} \\times a^{kn},\n5^d \\times a^{km})\n$$", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32588, "subject": "Mathematics (Multi-modal)", "question": "$M$ is an arbitrary point on the side $BC$ of the triangle $ABC$. $\\omega$ is a circle tangent to the segments $AB$ and $BM$ in $T$ and $K$ respectively, also is tangent to the circumcircle of $AMC$ in $P$. If $TK \\parallel AM$, prove that the circumcircles of $APT$ and $KPC$ are tangent to each other.", "options": [], "answer": "Detailed solution", "solution": "It is obvious that the bisector of $\\angle B$ is perpendicular to $TK$ and so to the $AM$ (by assumption). Thus $BM = BA$, and the circumcenter of $AMC$ is on the bisector of $\\angle B$ (the perpendicular bisector of $AM$). Since the center of $\\omega$ is on the bisector of $\\angle B$, and $P$ is on the line connecting the centers of these two circles, it is on the bisector of $\\angle B$, too. Hence $\\angle BAP = \\angle BMP = 180^\\circ - \\angle PMC = \\angle PAC$. So $P$ is on the bisector of $\\angle A$ and hence $P$ is the incenter of $ABC$. So we have:\n$$\n\\angle TPK = \\angle BTK = 90^\\circ - \\frac{\\angle B}{2} = \\frac{\\angle A}{2} + \\frac{\\angle C}{2} = \\angle TAP + \\angle KCP\n$$\nSo if we draw the ray $Px$ such that $\\angle TAP = \\angle TPx$ and $\\angle KCP = \\angle KPx$, then this ray is tangent to the circumcircles of $ATP$ and $KPC$, and according to the above equation such ray exists. Thus the circles $APT$ and $KPC$ are tangent in $P$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32589, "subject": "Mathematics (Multi-modal)", "question": "Consider that we have omitted some of the points of a 2d-lattice (same as $\\mathbb{Z}^2$). Look at these points as a graph, two points (vertices) are connected if they are the same in one of their coordinates and differ 1 in another. Each connected component is called a *cluster*. Suppose that for all $n \\in \\mathbb{N}$, the number of omitted points inside the horizontal square with side length $2n + 1$ and the origin as its center, be less than $n/2$. Prove that the non-omitted points contain exactly one infinite cluster.", "options": [], "answer": "Detailed solution", "solution": "We suppose that the origin is not omitted without loss of generality. Consider the cluster having the origin, if the cluster is finite, its border contains some omitted vertices that are adjacent to at least one of the vertices of the cluster. Among all of the points of the cluster having origin, consider the point having maximum horizontal distance from the origin, and then consider the point having maximum vertical distance from the origin, let $k$ be the maximum of these two distances. So all of the points of the cluster having origin, are in the square whose center is on the origin and has side-length $2k + 1$. But since, the points on the cluster's border have rounded around the origin, hence for every\n\n0 $\\leq$ *i* $\\leq$ *k* there exists a point on the border that its horizontal or vertical distance from the origin is equal to *i*. Thus, at least *k* + 1 points are omitted which is a contradiction. So the cluster having the origin is infinite. Now assume that there are two infinite clusters. Obviously their border contains a path of omitted points which is infinite from both directions. We extend the origin-centered square until it contains a piece of this path. From now on, by increasing *n* one by one, the square's side will extend by 2 and there will be 2 more vertices of the path in the square, but the value of *n*/2 will increase by 1/2. So but increasing *n*, the total number of vertices of the path which is in the square are growing faster than *n*/2, and hence it cannot be always less than it. This contradiction shows that there is exactly one infinite cluster.", "topic": "Discrete Mathematics", "subtopic": "Other" }, { "id": 32590, "subject": "Mathematics (Multi-modal)", "question": "$S$ and $T$ are two trees without having a vertex of degree $2$. Each edge of them has a positive number named the *length* of the edge. The *distance* between two vertices is the sum of the *length* of the edges of the path between them. We call the vertices with degree $1$, *leaf*. $f$ is an injective and surjective function from the set of *leaves* of $S$ to the set of *leaves* of $T$ with this property that for every two *leaves* $u$ and $v$ in $S$, the *distance* between $u$ and $v$ in $S$ is equal to the *distance* between $f(u)$ and $f(v)$ in $T$. Prove that there exists an injective and surjective function $g$ from the set of vertices of $S$ to the set of vertices of $T$ such that for every two vertices $u$ and $v$ in $S$, the *distance* between $u$ and $v$ in $S$, is equal to the *distance* between $g(u)$ and $g(v)$ in $T$.", "options": [], "answer": "Detailed solution", "solution": "It is obvious that the total number of the leaves of $S$ and $T$ are equal. We solve the problem using induction. The base case for $2$ leaves is trivial because there is no vertex of degree $2$. Now suppose that $S, T$ have $k$ leaves. Let\n\n$$\nS' = S - \\{u\\}, \\quad T' = T - \\{f(u)\\}\n$$\n\nin which $u$ is a leaf. It means that we omitted leaf $u$ from $S$, and leaf $f(u)$ from $T$. Assume the induction hypothesis holds for $S', T'$, so there is a correspondence between their vertices, like $g$. Now let $u'$ be the neighbor of $u$ in $S'$, and $u''$ be the neighbor of $f(u)$ in $T'$. It is enough that we prove that $u'' = g(u')$ and the length of the edge $uu'$ is equal to the length of the edge $f(u)u''$.\n\nFirst note that if $v, w$ be two leaves in $S$ and the path between $v, u$, intersects the path between $v, w$ for the first time in vertex $k$, then we have: (let $l(uv)$ denote the length of the path between $u$ and $v$)\n$$\nl(uk) = \\frac{l(uv) + l(uw) - l(vw)}{2}\n$$\nAnd since $S$ doesn't have a $2$-degree vertex:\n$$\n\\begin{align*}\n\\text{length of edge } uu' \n&= \\min_{v,w \\in S_{\\text{leaves}}} \\left\\{ \\frac{l(uv) + l(uw) - l(vw)}{2} \\right\\} \\\\\n&= \\min_{f(v), f(w) \\in T_{\\text{leaves}}} \\left\\{ \\frac{l(f(u)f(v)) + l(f(u)f(w)) - l(f(v)f(w))}{2} \\right\\} \\\\\n&= \\text{length of the edge } f(u)u'' \n\\end{align*}\n$$\nNow do the same for $T$. Thus, because these two values for a pair $v, w$ and its correspondence $f(v), f(w)$, minimizes, so $u'' = g(u')$ and the length of the edge $uu'$ is equal to the length of the edge $f(u)u''$, hence the induction and proof are complete.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 32591, "subject": "Mathematics (Multi-modal)", "question": "Find all increasing functions $f: \\mathbb{R}^+ \\cup \\{0\\} \\to \\mathbb{R}^+ \\cup \\{0\\}$, such that for every $x, y \\in \\mathbb{R}^+ \\cup \\{0\\}$ we have\n$$\nf\\left(\\frac{x + f(x)}{2} + y\\right) = 2x - f(x) + f(f(y))\n$$\n(note that $f$ is not necessarily strictly increasing.)", "options": [], "answer": "f(x) = x for all x ≥ 0", "solution": "Suppose that $f(0) = a$. Let $x = y = 0$, we have\n$$\nf\\left(\\frac{a}{2}\\right) = f(a) - a\n$$\nLet $x = \\frac{a}{2}, y = 0$, we have\n$$\nf\\left(\\frac{f(a) - \\frac{a}{2}}{2}\\right) = 2a\n$$\nLet $x = a, y = 0$, we have\n$$\nf\\left(\\frac{f(a) + a}{2}\\right) = 2a\n$$\n\nSince $f$ is increasing, so for every $\\frac{f(a)-a}{2} \\le t \\le \\frac{f(a)+a}{2}$ we have $f(t) = 2a$.\nHence $f(\\frac{f(a)+a}{2}) = 2a$. From the other hand by letting $x = y = \\frac{a}{2}$, we have\n$$\nf(\\frac{f(a)+\\frac{a}{2}}{2}) = 2a - f(a) + f(f(a) - a)\n$$\nHence we have\n$$\n2a = 2a - f(a) + f(f(a) - a) \\Rightarrow f(a) = f(f(a) - a)\n$$\nLetting $x = 0, y = \\frac{a}{2}$ in the main equation results in\n$$\nf(a) = -a + f(f(a) - a) \\Rightarrow -a = 0 \\Rightarrow a = 0 \\Rightarrow f(0) = 0\n$$\nNow letting $x = 0$ in the main equation results in\n$$\nf(y) = f(f(y))\n$$\nThen let $x = y$, and we have\n$$\nf(\\frac{3}{2}x + \\frac{1}{2}f(x)) = 2x - f(x) + f(f(x)) = 2x\n$$\nSo $f$ is surjective. Hence in the equation $f(y) = f(f(y))$, $f(y)$ can be all values in domain, so $f$ is the identity function.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32592, "subject": "Mathematics (Multi-modal)", "question": "Find all natural numbers $n \\ge 2$ such that for every pair of integers $i, j \\in [0, n]$, $i + j$ and $\\begin{pmatrix} n \\\\ i \\end{pmatrix} + \\begin{pmatrix} n \\\\ j \\end{pmatrix}$ have the same parity.", "options": [], "answer": "All n of the form 2^k - 2 for integers k >= 2", "solution": "Lemma. Suppose $n \\ge 2$ is an integer, then all of the numbers $\\begin{pmatrix} n \\\\ 0 \\end{pmatrix}, \\begin{pmatrix} n \\\\ 1 \\end{pmatrix}, \\dots, \\begin{pmatrix} n \\\\ n \\end{pmatrix}$ are odd if and only if $n = 2^k - 1$ for an integer $k \\ge 2$.\n\n*Proof*. For an integer $t$, let $v(t)$ be the greatest integer $u$ such that $2^u \\mid n$. We know that\n\" If $p, q \\in \\mathbb{N}$ and $0 \\le p \\le 2^q$ then $v(p) = v(2^q + p) = v(2^q - p)$\" (1)\nBecause if $p = 2^a b$ with $a, b \\in \\mathbb{N}$ and $b$ an odd number then $a < q$ and $2^q \\pm p = 2^a (2^{q-a} \\pm b)$ where $2^{q-a} \\pm b$ are odd numbers.\nNow there is one and only one $m \\in \\mathbb{N}$ such that $2^m \\le n < 2^{m+1}$. Let $n = 2^m + s$\nwith $0 \\le s < 2^m$. Now consider the number $\\begin{pmatrix} n \\\\ 2^m - 1 \\end{pmatrix}$. We have\n$$\n\\begin{pmatrix} n \\\\ 2^m - 1 \\end{pmatrix} = \\begin{pmatrix} 2^m + s \\\\ 2^m - 1 \\end{pmatrix} = \\begin{pmatrix} 2^m + s \\\\ s + 1 \\end{pmatrix} = \\frac{(2^m + s)(2^m + s - 1)\\cdots(2^m + 1)(2^m)}{s(s-1)\\cdots(1)(s+1)}.\n$$\nBy (1) we have $v(2^m + i) = v(i)$ where $1 \\le i \\le s$, therefore\n$$\nv((2^m + s) \\cdots (2^m + 1)) = v(s!),\n$$\nand by assumption $\\begin{pmatrix} n \\\\ 2^m - 1 \\end{pmatrix}$ is odd therefore $v(2^m) = v(s+1)$ and consequently\n$2^m \\mid s+1$ and $s+1 \\ge 1$. Hence we have $2^m - 1 \\le s$ and therefore $s = 2^m - 1$ and\n$n = 2^m + s = 2^{m+1} - 1$.\nNow if $n = 2^k - 1$ for some natural number $k$, for each $1 \\le c \\le n$ we have\n$$\n\\begin{pmatrix} 2^k - 1 \\\\ c \\end{pmatrix} = \\frac{(2^k - 1)(2^k - 2)\\cdots(2^k - c)}{(1)(2)\\cdots(c)} \\quad \\text{and by (1) we know for} \\quad 1 \\le l \\le c\n$$\n$$\nv(2^k - l) = v(l), \\text{ so } \\begin{pmatrix} 2^k - 1 \\\\ c \\end{pmatrix} \\text{ is odd for } 0 \\le c \\le n. \\quad \\square\n$$\n\nNow we return to main problem:\nPositive integer $n$ has the property of the problem if and only if all the numbers $\\begin{pmatrix} n \\\\ i \\end{pmatrix} - i$ ($0 \\le i \\le n$) have the same parity. It means that for every $0 \\le i \\le n-1$, $\\begin{pmatrix} n \\\\ i \\end{pmatrix}, \\begin{pmatrix} n \\\\ i+1 \\end{pmatrix}$ have different parities. So $\\begin{pmatrix} n+1 \\\\ i+1 \\end{pmatrix} = \\begin{pmatrix} n \\\\ i \\end{pmatrix} + \\begin{pmatrix} n \\\\ i+1 \\end{pmatrix}$ ($1 \\le i \\le n-1$) is odd\nand as we know $\\begin{pmatrix} n+1 \\\\ 0 \\end{pmatrix} = 1$ is also odd. Therefore by the lemma this is equivalence\nto $n+1 = 2^k - 1$ for some integer $k \\ge 2$ so $n = 2^k - 2$ where $k \\ge 2$ is an integer.\n$\\boxed{}$", "topic": "Algebra", "subtopic": "Linear Algebra" }, { "id": 32593, "subject": "Mathematics (Multi-modal)", "question": "A regular dodecahedron is a convex polyhedron such that its faces are regular pentagons. It has 20 vertices and 3 edges connected to each vertex. (As you see in the picture.)\n\n![](attached_image_1.png)\n\nSuppose that we have marked 10 vertices of a regular dodecahedron.\na) Prove that we can rotate the dodecahedron in such a way that the dodecahedron is mapped to itself and at most four marked vertices are mapped to a marked vertex.\nb) Prove that number 4 cannot be replaced with number 3 in the previous part.", "options": [], "answer": "Detailed solution", "solution": "a) Now consider one of the marked vertices named $A$. We have 10 marked vertices and each of them can lie on its locations in 3 distinct ways, so in $3 \\times 10 - 1 = 29$ rotations (other than the original state) a special vertex lie on the location of $A$ in original state, therefore totally $29 \\times 10 = 290$ times a marked vertex lie on a marked vertex of the original state.\nNow by the *Pigeonhole principle* less than $\\frac{290}{59} < 5$ of this coincidences is in one of the states and so we're done. □\n\nb) It suffices to give an example that in each rotation at least 4 marked vertices lie on a marked vertex of original state.\nMark the vertices of two opposite faces. Suppose that there exists a rotation with at most 3 coincidences. Consider this state is $\\xi$.\nSo one of the marked faces in $\\xi$ has at most one marked vertex of the original state, but each face has at least two marked vertices, contradiction. □", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 32594, "subject": "Mathematics (Multi-modal)", "question": "Let $a$, $b$, $c$ be positive real numbers such that $ab + bc + ca = 1$. Show that\n\n$$\n\\sqrt{3}(\\sqrt{a} + \\sqrt{b} + \\sqrt{c}) \\le \\frac{a\\sqrt{a}}{bc} + \\frac{b\\sqrt{b}}{ca} + \\frac{c\\sqrt{c}}{ab}.\n$$", "options": [], "answer": "Detailed solution", "solution": "**Solution 1.** By Holder Inequality we have\n$$\n\\left(\\sum_{cyc} \\frac{a\\sqrt{a}}{bc}\\right)\\left(\\sum_{cyc} bc\\right)\\left(\\sum_{cyc} 1\\right) \\geq \\left(\\sum_{cyc} \\sqrt{a}\\right)^3 \\Rightarrow \\sum_{cyc} \\frac{a\\sqrt{a}}{bc} \\geq \\frac{1}{3}\\left(\\sum_{cyc} \\sqrt{a}\\right)^3.\n$$\nSo it suffices to have\n$$\n\\frac{1}{3}\\left(\\sum_{cyc} \\sqrt{a}\\right)^3 \\geq \\sqrt{3}\\left(\\sum_{cyc} \\sqrt{a}\\right) \\Leftrightarrow \\left(\\sum_{cyc} \\sqrt{a}\\right)^2 \\geq 3\\sqrt{3} \\Leftrightarrow \\sum_{cyc} \\sqrt{a} \\geq \\sqrt[4]{27}\n$$\nNow suppose that $\\sum_{cyc} \\sqrt{a} < \\sqrt[4]{27}$. It suffices to prove that $\\sum_{cyc} \\frac{a\\sqrt{a}}{bc} \\geq \\sqrt{3\\sqrt[4]{27}}$, but\nwe have $\\sum_{cyc} \\frac{a\\sqrt{a}}{bc} \\geq 3\\sqrt[3]{\\prod_{cyc} \\frac{a\\sqrt{a}}{bc}} = 3(abc)^{-\\frac{1}{6}}$ (*) by AM-GM inequality\n$$\n\\begin{align*} 1 &= \\sum_{cyc} ab \\geq 3(abc)^{\\frac{2}{3}} \\Rightarrow (abc)^{-\\frac{2}{3}} \\geq 3 \\Rightarrow (abc)^{-\\frac{1}{6}} \\geq \\sqrt[4]{3} \\\\ \\Rightarrow \\sum_{cyc} \\frac{a\\sqrt{a}}{bc} &\\geq 3(abc)^{-\\frac{1}{6}} \\geq 3\\sqrt[4]{3} = 3^{\\frac{5}{4}} = 3^{\\frac{1}{2}} \\cdot 3^{\\frac{3}{4}} = \\sqrt{3\\sqrt[4]{27}}. \\end{align*}\n$$\n\n\n□\n**Solution 2.** First by Cauchy-Schwarz inequality we have\n$$\n\\left(\\sum_{cyc} \\frac{a^2}{bc\\sqrt{a}}\\right)\\left(\\sum_{cyc} bc\\sqrt{a}\\right) \\geq \\left(\\sum_{cyc} a\\right)^2.\n$$\nSo it suffices to prove that\n$$\n\\left(\\sum_{cyc} a\\right)^2 \\sqrt{\\sum_{cyc} ab} \\geq \\sqrt{3} \\times \\sqrt{abc} \\left(\\sum_{cyc} \\sqrt{bc}\\right)\\left(\\sum_{cyc} \\sqrt{a}\\right).\n$$\nSince $\\sum_{cyc} ab = 1$.\nBut by AM-GM and Cauchy-Schwarz we have\n$$\n\\sqrt{\\sum_{cyc} ab} \\geq \\frac{1}{\\sqrt{3}} \\sum_{cyc} \\sqrt{ab} \\quad (\\text{Cauchy-Schwarz}) \\quad (1)\n$$\n$$\n\\sum_{cyc} a \\geq \\frac{1}{3} \\left( \\sum_{cyc} \\sqrt{a} \\right)^2 \\quad (\\text{Cauchy-Schwarz}) \\quad (2)\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32595, "subject": "Mathematics (Multi-modal)", "question": "A subset $B$ of natural numbers is called *loyal* if there exist positive integers $i \\le j$ such that $B = \\{i, i+1, \\dots, j\\}$. $Q$ is the collection of *loyal* subsets of natural numbers. For every subset $A = \\{a_1 < a_2 < \\dots < a_k\\}$ of $\\{1, 2, \\dots, n\\}$ we define:\n\n$$\ng(A) = \\max_{B \\subset A, B \\in Q} |B| \\quad \\text{and} \\quad f(A) = \\max_{1 \\le i \\le k-1} a_{i+1} - a_i.\n$$\n\nAlso, Define\n\n$$\nG(n) = \\sum_{A \\subseteq \\{1, 2, \\dots, n\\}} g(A) \\quad \\text{and} \\quad F(n) = \\sum_{A \\subseteq \\{1, 2, \\dots, n\\}} f(A).\n$$\n\nProve there exists $m \\in \\mathbb{N}$ such that for every positive integer $n$ greater than $m$ we have $F(n) > G(n)$. ($|A|$ denotes the number of elements of a set $A$ and if $|A| \\le 1$ we set $f(A) = 0$).", "options": [], "answer": "Detailed solution", "solution": "We divide subgroups into three groups\n\n1) Subset $\\varnothing$ such that $f(\\varnothing) = g(\\varnothing) = 0$.\n\n2) One element subsets. Of course we know that for an arbitrary element of this group like $X$, $f(X) = 0$ and $g(X) = 1$.\nSo for one element subsets we have $\\sum_{|A|=1} (f(A) - g(A)) = -n$.\n\n3) Subsets with at least two elements.\nFor subsets in group 3. For integers $1 \\le i \\le j \\le n$ let $A_{ij}$ be the collection of such binary strings of length $n$ that the first $1$ lies in the $i$'s place and the last $1$ lies in the $j$'s place. Hence, if $i < j$ and $X = a_1a_2\\cdots a_n \\in A$ then $a_{i+1},\\dots,a_j$ can be $0$ or $1$ so $|A_{ij}| = 2^{j-i-1}$. For $a \\in \\{0,1\\}$ let $\\bar{a} = 1$ if $a = 0$ and $\\bar{a} = 0$ if $a = 1$.\n\nFor every $X = a_1a_2\\cdots a_n \\in A_{ij}$ we define $\\bar{X} = a_1\\cdots a_i\\bar{a}_{i+1}\\cdots\\bar{a}_{j-1}a_j\\cdots a_n$. (We change the numbers between first and last $1$.) Now we compare $f(\\bar{X})$ and $g(X)$. (There is bijection between binary strings of length $n$ and subsets of $\\{1,2,...,n\\}$ so we can define $f$ and $g$ on binary strings.)\n\nFor the largest block of $1$'s in $X$ we have three cases:\n\n**Case 1.** The largest block contains places $i$ and $j$. So $a_i = a_{i+1} = \\cdots = a_j = 1$, hence $f(\\bar{X}) = j-i$ and $g(X) = j-i+1$. Thus $f(\\bar{X}) - g(X) = -1$.\n\n**Case 2.** The largest block contains exactly one of places $i$ or $j$. So for example for some $k$ ($i \\le k < j$), $a_i = a_{i+1} = \\cdots = a_k = 1$ and $a_{k+1} = 0$. Therefore we deduce that $g(X) = k - i + 1$ and $f(\\bar{X}) \\ge k - i + 1$. Hence $f(\\bar{X}) - g(X) \\ge 0$.\n\n**Case 3.** The largest block contains none of $i$ and $j$. So for example for some $k$ and $l$ ($i < k \\le l < j$) we have $a_k = 0, a_{k+1} = \\cdots = a_{l-1} = 1$ and $a_l = 0$. Thus $g(X) = l - k - 1$ and $f(\\bar{X}) \\ge l - k$. Hence $f(\\bar{X}) - g(X) \\ge 1$.\n\nNote that for each $1 \\le i < j \\le n$ one of elements of $A_{ij}$ satisfies the condition of case 1 and there are $2^{n-4} - 1$ binary strings $X = a_1a_2\\cdots a_n$ such that $a_1 = a_n = 0$ and $a_2 = a_{n-1} = 0$ also they have another $1$.\n\n$$\n\\sum_{\\substack{X \\in A_{ij} \\\\ 1 \\le i < j \\le n}} (f(\\bar{X}) - g(X)) \\ge (-1)^{\\binom{n}{2}} + (+1)(2^{n-4} - 1).\n$$\n\nOur conclusions are summed up in the following result.\n\n$$\n\\sum_X (f(X) - g(X)) \\ge 2^{n-4} - 1 - \\binom{n}{2} - n.\n$$\n\nBut it is very easy to prove by induction that for $n \\ge 10$ we have\n$$\n2^{n-4} > \\binom{n}{2} + n + 1 \\quad \\text{and this implies the assertion.} \\quad \\square\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32596, "subject": "Mathematics (Multi-modal)", "question": "Are there 2000 real numbers (not necessarily distinct), not all zero, such that if we put any 1000 of these numbers as roots of a monic polynomial of degree 1000, its coefficients (except the coefficient of $x^{1000}$) are a permutation of the 1000 remaining numbers?", "options": [], "answer": "No, such numbers do not exist.", "solution": "First suppose the case that none of the numbers are zero. Note that there exist at least 1000 positive numbers or at least 1000 negative numbers among these 2000 numbers. If there exist at least 1000 negative numbers and we put these 1000 numbers as roots of a degree 1000 polynomial all its coefficients are positive. So in every case we have 1000 positive numbers.\n\nNow take 1000 positive numbers and put the 1000 remaining numbers as roots of a polynomial, all of its coefficients are positive, so the numbers must be negative. Therefore there is 1000 positive and 1000 negative numbers. If we put 1000 positive numbers as roots of a polynomial its coefficients are alternating positive and negative. This is a contradiction because remaining 1000 numbers all are negative. The contradiction shows that there at least one number equal to zero among numbers.\n\nDenote by $k$ the number of zeros among numbers so $k > 0$. If $k < 1000$, then put these $k$ numbers zero and arbitrary $1000 - k$ numbers among others as roots of a polynomial. The product of roots is zero so there exists another number equal to zero and this contradicts the definition of $k$, thereby $k > 1000$. Now put 1000 numbers equal to zero as roots of a polynomial this polynomial is $x^{1000}$, so other numbers are equal to zero. So there do not exist 2000 numbers with mentioned property. □", "topic": "Discrete Mathematics", "subtopic": "Combinatorics" }, { "id": 32597, "subject": "Mathematics (Multi-modal)", "question": "Determine all integers $x, y$ satisfying the equation\n\n$$\n(y^3 + xy - 1)(x^2 + x - y) = (x^3 - xy + 1)(y^2 + x - y).\n$$", "options": [], "answer": "(-2,-1), (-1,0), (0,0), (0,1), (-1,-1), (1,1), (1,2)", "solution": "We have\n$$\n\\begin{aligned}\n\\frac{x^3 - xy + 1}{x^2 + x - y} &= \\frac{y^3 + xy - 1}{y^2 + x - y} \\Rightarrow x - \\frac{x^2 - 1}{x^2 + x - y} = y + \\frac{y^2 - 1}{y^2 + x - y} \\\\\n\\Rightarrow x - y &= \\frac{x^2 - 1}{x^2 + x - y} + \\frac{y^2 - 1}{y^2 + x - y}. \\quad (*)\n\\end{aligned}\n$$\nNow we have three cases:\nCase 1.\n$$\nx = y \\Rightarrow 2\\frac{x^2 - 1}{x} = 0 \\Rightarrow x^2 = 1 \\text{ or } x = 0 \\Rightarrow (x,y) = (0,0), (1,1), (-1,-1)\n$$\n\nCase 2. $x > y$. Let $k = x - y > 0$ so by (*) we have $k = \\frac{x^2 - 1}{x^2 + k} + \\frac{y^2 - 1}{y^2 + k}$. If $|x| \\le 1$ or $|y| \\le 1$ by using main equation we get $(x,y) = (-1,0), (1,2), (0,1), (-2,-1)$. Now we can assume $|x|,|y| > 1$\n$$\nx^2 - 1 < x^2 + k \\Rightarrow 0 < \\frac{x^2 - 1}{x^2 + k} < 1 \\text{ and similarly } 0 < \\frac{y^2 - 1}{y^2 + k} < 1, \\text{ therefore}\n$$\n$$\n0 < k = \\frac{x^2 - 1}{x^2 + k} + \\frac{y^2 - 1}{y^2 + k} < 2 \\Rightarrow k = 1 \\Rightarrow 1 = \\frac{x^2 - 1}{x^2 + 1} + \\frac{y^2 - 1}{y^2 + 1}. \\quad (**)\n$$\n\nCase 3. $x < y$. Let $t = y - x > 0$ so by (*) we have $t = \\frac{x^2-1}{t-x^2} + \\frac{y^2-1}{t-y^2}$ and by adding $2 = \\frac{t-x^2}{t-x^2} + \\frac{t-y^2}{t-y^2}$ to both sides we get $t+2 = \\frac{t-1}{t-x^2} + \\frac{t-1}{t-y^2}$.\nWe claim that $t - x^2$ and $t - y^2$ are not positive, simultaneously. Assume by\ncontrary $t - x^2 > 0, t - y^2 > 0$ then\n$$\nt > x^2, t > y^2 \\Rightarrow 2(y - x) = 2t > x^2 + y^2 \\Rightarrow (x + 1)^2 + (y - 1)^2 < 2.\n$$\nThis contradicts because $|x|,|y|>1$. Therefore at least one of fractions $\\frac{t-1}{t-x^2}$ and $\\frac{t-1}{t-y^2}$ is less than or equal to 0 and the other less than or equal to $t-1$. So\n$$\nt + 2 = \\frac{t - 1}{t - x^2} + \\frac{t - 1}{t - y^2} \\le 0 + (t - 1) < t.\n$$\nThis contradiction shows that *case 3* does not have a new solution and these are all the solutions: $(0,0), (1,1), (-1,-1), (-1,0), (1,2), (0,1), (-2,-1)$. □", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 32598, "subject": "Mathematics (Multi-modal)", "question": "Let $p$ be an odd prime number. We say a polynomial\n\n$$\nf(x) = \\sum_{j=0}^{n} a_{j}x^{j} \\text{ is } i\\text{-residue if } \\sum_{p-1 < j, j > 0} a_{j} \\equiv i \\pmod{p}.\n$$\n\nShow that $\\{f(1), \\dots, f(p-1)\\}$ is a complete residue system modulo $p$ if and only if polynomials $f(x), \\dots, f(x)^{p-2}$ are 0-residue and $(f(x))^{p-1}$ is 1-residue.", "options": [], "answer": "Detailed solution", "solution": "**Lemma.** Let $p$ be an odd prime number and $k$ a positive integer then we have\n$$\n\\sum_{i=0}^{p-1} i^k \\equiv \\begin{cases} 0 & p-1 \\nmid k \\\\ -1 & p-1 \\mid k \\end{cases} \\pmod{p}.\n$$\nProof. If $p-1 \\nmid k$ the statement is obvious by *Fermat Little Theorem*. For $p-1 \\nmid k$\nconsider $g$ a primitive root modulo $p$ then\n$$\n\\sum_{i=0}^{p-1} i^k \\equiv \\sum_{i=1}^{p-1} i^k \\equiv \\sum_{i=1}^{p-1} g^{ik} \\equiv \\frac{g^{k(p-1)} - 1}{g^k - 1} \\equiv 0 \\pmod{p} \\quad (p-1 \\nmid k \\Rightarrow g^k \\not\\equiv 1).\n$$\nNow for every polynomial $f \\in \\mathbb{Z}[x]$ with $f(x) = \\sum_{n=0}^{m} a_n x^n$, we have\n$$\n\\sum_{i=0}^{p-1} f(i) \\equiv \\sum_{i=0}^{p-1} \\sum_{n=0}^{m} a_n i^n \\equiv \\sum_{n=0}^{m} a_n \\sum_{i=0}^{p-1} i^n \\equiv - \\sum_{p-1 \\mid n, n>0} a_n \\pmod{p}.\n$$\nTherefore if $f(0), f(1), \\dots, f(p-1)$ are a complete system of residues modulo $p$ then\n\n$$\na_0^i + a_1^i + \\cdots + a_{p-1}^i \\equiv 0 \\pmod{p} \\quad (1 \\le i \\le p-2)\n$$\n$$\na_0^{p-1} + a_1^{p-1} + \\cdots + a_{p-1}^{p-1} \\equiv -1 \\pmod{p}\n$$\nThen $\\{a_0, a_1, \\dots, a_{p-1}\\}$ is a complete system of residues. Now Suppose that\n$$g(x) = (x - a_0)(x - a_1)\\cdots(x - a_{p-1}) = x^p + b_1x^{p-1} + \\cdots + b_{p-1}x + b_p$$\nand $S_i = a_0^i + a_1^i + \\cdots + a_{p-1}^i$ for $i \\in \\mathbb{N}$.\nIf for all $0 \\le i \\le p-1$ we have $a_i \\not\\equiv 0 \\pmod{p}$ then invoking the Fermat little theorem we have $1 \\equiv a_0^{p-1} + a_1^{p-1} + \\cdots + a_{p-1}^{p-1} \\equiv \\frac{1+1+\\cdots+1}{p \\text{ times}} \\equiv 0 \\pmod{p}$\nContradiction. So there exists a $0 \\le j \\le p-1$ such that $a_j \\equiv 0 \\pmod{p}$ and therefore $b_p \\equiv 0 \\pmod{p}$. Now by Newton identities we have\n$$\n\\left\\{ \\begin{array}{l} S_1 + b_1 = 0 \\\\ S_2 + b_1 S_1 + 2b_2 = 0 \\\\ S_3 + b_1 S_2 + b_2 S_1 + 3b_3 = 0 \\\\ \\vdots \\\\ S_{p-1} + b_1 S_{p-2} + \\cdots + b_{p-2} S_1 + (p-1)b_{p-1} = 0 \\end{array} \\right.\n$$\nHence\n$$\nS_1 + b_1 = 0, S_1 \\equiv 0 \\pmod{p} \\Rightarrow b_1 \\equiv 0 \\pmod{p}\n$$\n$$\nS_2 + b_1 S_1 + 2b_2 = 0, S_1 \\equiv S_2 \\equiv 0 \\pmod{p} \\Rightarrow 2b_2 \\equiv 0 \\pmod{p} \\Rightarrow b_2 \\equiv 0 \\pmod{p} \\\\ \\vdots\n$$\n$$\nS_{p-2} + b_1 S_{p-3} + \\cdots + b_{p-3} S_1 + (p-2)b_{p-2} = 0, S_1 \\equiv S_2 \\equiv \\cdots \\equiv S_{p-2} \\equiv 0 \\pmod{p} \\\\ \\Rightarrow (p-2)b_{p-2} \\equiv 0 \\pmod{p} \\Rightarrow b_{p-2} \\equiv 0 \\pmod{p}\n$$\n\nwe have $\\sum_{i=0}^{p-1} f(i)^s \\equiv 0 \\pmod{p}$ for $1 \\le s \\le p-2$ so $f(x), (f(x))^2, \\dots, (f(x))^{p-2}$ are all\n0-residue and $-\\sum_{i=0}^{p-1} f(i)^{p-1} \\equiv 1 \\pmod{p}$ so $(f(x))^{p-1}$ is 1-residue.\nNow for reverse by (1) it suffices to prove that if for $p$ numbers $a_0, a_1, \\dots, a_{p-1} \\in \\mathbb{Z}$\nwe have\n\nand\n$$\n\\left\\{ \\begin{array}{l} S_{p-1} + b_1 S_{p-2} + \\cdots + b_{p-2} S_1 + (p-1)b_{p-1} = 0 \\\\ S_1 \\equiv S_2 \\equiv \\cdots \\equiv S_{p-2} \\equiv 0, S_{p-1} \\equiv -1 \\pmod{p} \\\\ \\Rightarrow (p-1)b_{p-1} \\equiv 1 \\pmod{p} \\Rightarrow b_{p-1} \\equiv -1 \\pmod{p} \\end{array} \\right.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32599, "subject": "Mathematics (Multi-modal)", "question": "$n$ is a positive integer. Let $A, B$ be two sets of $n$ points in the plane such that no three points of them are collinear. Denote by $T(A)$ the number of non-self-intersecting broken lines containing $n-1$ segments such that its vertices are in $A$. Define $T(B)$ similarly. If the elements of $B$ are the vertices of a convex $n$-gon but the elements of $A$ are not, prove that $T(B) < T(A)$.", "options": [], "answer": "Detailed solution", "solution": "We call such a broken line a *good path*.\n\n**Lemma.** Let $C$ be a set of $n \\ge 2$ points in the plane, no three of which are collinear and let $x_0$ be a vertex of the convex hull of $C$. The number of good paths with vertices of $C$ starting at $x_0$ is at least $2^{n-2}$. Equality holds only when $C$ is convex.\n\n*Proof.* We use induction on $n$. For $n=2$ it is trivial. Suppose the claim is true for $n-1$. Let $x_0y$ be a line such that $C - \\{x_0\\}$ is entirely in one side of it. Sort the vertices of $C - \\{x_0\\}$ as $x_1, x_2, \\dots, x_{n-1}$ such that the angles $\\angle x_i x_0 y$ are increasing. So $C - \\{x_0, x_1\\}$ is entirely in one side of $x_0x_1$ and $C - \\{x_0, x_{n-1}\\}$ is entirely in one side of $x_0x_{n-1}$. There are at least $2 \\times 2^{n-3}$ good paths with vertices of $C - \\{x_0\\}$ starting at either $x_1$ or $x_{n-1}$. By joining the segments $x_0x_1$ or $x_0x_{n-1}$ we obtain at least $2^{n-2}$ good paths with the vertices of $C$ starting at $x_0$.\n\nIf $C$ is convex, then in any good path starting at $x_0$, $x_0$ should be joined to $x_1$ or $x_{n-1}$, because in other cases the vertices will be in both sides of the first segment and the path will intersect the first segment. So equality for convex sets follows by the induction hypothesis.\n\nNow, suppose $C$ is not convex. Let $z$ be a vertex of $C$ not on the convex hull. Either $z$ is in triangle $x_0x_1x_{n-1}$ or is inside the convex hull of $C - \\{x_0\\}$ (depending on which side of $x_1x_{n-1}$ that $z$ is in). In the first case, if $z'$ is the farthest vertex from line in triangle $x_0x_1x_{n-1}$ (other than $x_0$), then the segment $x_0z'$ doesn't intersect the convex hull of $C - \\{x_0\\}$ and there is a good path starting with $x_0z'$ by the induction hypothesis. In the second case, $C - \\{x_0\\}$ is not convex and the number of good paths starting with $x_0x_1$ is more than $2^{n-3}$ by the induction hypothesis. So the lemma is proved. $\\Box$\n\nAccording to the lemma, we have $T(B) = n2^{n-3}$. We prove $T(A) > n2^{n-3}$. Let $x_0$ be a vertex on the convex hull of $A$ and sort the other vertices of $A$ as described in the lemma. For any $1 \\le i \\le n-2$, by joining any two good paths starting at $x_0$ with vertices of $\\{x_0, x_1, \\dots, x_i\\}$ and $\\{x_0, x_{i+1}, \\dots, x_{n-1}\\}$, we get a good path with the vertices of $A$, because the two sets can be divided by a line through $x_0$. This way we get $\\sum_{i=1}^{n-2} 2^{i-1} \\times 2^{n-i-2} = (n-2)2^{n-3}$ good vertices not starting at $x_0$. There are more than $2^{n-2}$ good vertices starting at $x_0$ and so $T(A) > n2^{n-3}$. So, the assertion is proved. $\\Box$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32600, "subject": "Mathematics (Multi-modal)", "question": "Let $O$ be the circumcenter of triangle $ABC$. Points $A'$, $B'$, $C'$ lie on the segments $BC$, $CA$, $AB$ respectively such that the circumcircles of triangles $AB'C'$, $BC'A'$, and $CA'B'$ pass through $O$. Denote by $l_a$ the radical axis of the circle with center $B'$ and radius $B'C$ and the circle with center $C'$ and radius $C'B$. Define $l_b$ and $l_c$ similarly. Prove that the lines $l_a$, $l_b$, $l_c$ form a triangle such that its orthocenter coincides with the orthocenter of triangle $ABC$.", "options": [], "answer": "Detailed solution", "solution": "*Proof.* We have $\\angle OB'C' = \\angle OAC' = 90^\\circ - \\angle C$ and $\\angle OB'A' = \\angle OCA' = 90^\\circ - \\angle A$. So $\\angle C'B'A' = \\angle B$. Compute the other angles similarly. This way it is proved that the triangles are similar and $O$ is the orthocenter of triangle $A'B'C'$. Now, the altitudes of triangle $A'B'C'$ make the same angle with the corresponding sides of triangle $ABC$ (angles $\\angle OB'A$ and so on). So, the corresponding sides of the triangles also make the same angle.\n\n**Lemma 2.** Let $B'$, $C'$ be points on $AC$, $AB$ respectively such that $AB'OC'$ is cyclic. The circle $w_1$ with center $B'$ passing through $C$ intersects the circle $w_2$ with center $C'$ passing through $B$ at points namely $P$, $Q$ such that $P$ is on the circumcircle of $ABC$ and $Q$ is on $BC$. Moreover, $PQ$ and the altitude of $A$ intersect on the circumcircle of $ABC$.\n\n![](attached_image_1.png)\n\n*Proof*. Let $P$ be the second intersection of the circumcircles of triangles $ABC$ and $AB'C'$. We claim $P$ is on both $\\omega_1$, $\\omega_2$. We have\n$$\n\\begin{align*}\n\\angle PBA &= \\angle PCA = \\frac{1}{2}\\overarc{PA} = \\frac{1}{2}\\angle POA, \\\\\n\\angle PC'A &= \\angle PB'A = \\angle POA.\n\\end{align*}\n$$\nSo, triangles $C'PB$ and $B'PC$ are isosceles and $P$ is on both $\\omega_1$, $\\omega_2$. Also, these triangles are similar. Let $\\alpha = \\frac{1}{2}\\angle POA$.\nTriangles $PBC$ and $PC'B'$ are similar (Consider the angles of $P$ and the ratio of the sides incident with $P$ in these triangles). The ratio of similarity is $2\\cos\\alpha$ and the corresponding sides make angles equal to $\\alpha$. So, if $D$, $D'$ are the orthogonal projections of $P$ on $BC$ and $C'B'$ respectively, then $\\frac{PD}{PD'} = 2\\cos\\alpha$ and $\\angle D'PD = \\alpha$. So triangles $D'PD$ and $C'PB$ are similar. So, $D'P = D'D$. Thus, if $PD'$ intersects $BC$ at $Q$, then $D'$ is the midpoint of the hypotenuse in the right angled triangle $PDQ$. So, $B'C'$ is the perpendicular bisector of $PQ$ and $Q$ is the second intersection of $\\omega_1$, $\\omega_2$.\nSuppose $PD$ and $AH$ intersect the circumcircle of triangle $ABC$ for the second time at $E$ and $A_1$ respectively. We have\n$$\n\\angle QPE = \\angle D'PD = \\alpha = \\frac{1}{2}\\overarc{PA} = \\frac{1}{2}\\overarc{A_1E} = \\angle A_1PE.\n$$\nSo, $PQ$ passes through $A_1$ and the lemma is proved. $\\square$\n\nAccording to lemma 2, the angle between $PQ$ and $AH$ is equal to the angle between $B'C'$ and $BC$. So, by lemma 1 the radical axes in the problem are obtained by rotating the altitudes of triangle $ABC$ with a fixed angle (but with different centers). The orientations of the rotations are the same, because all the equations in the proof remain valid by considering orientations. So, the triangle formed by the radical axes is similar to triangle $ABC$. Therefore, it suffices to prove that the ratios of distances of $H$ from the radical axes is the same as the ratios of distances of $H$ from sides of triangle $ABC$.\n\nLet $F$, $A_2$ be the orthogonal projections of $H$ on $PQ$ and $BC$ as in the lemma. We have $\\frac{HF}{HA_2} = 2\\frac{HF}{HA_1} = 2\\sin\\alpha$ which is the same as the other ratios of distances of $H$ from the sides of the mentioned triangles. So the assertion is proved. $\\square$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32601, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn triangle $ABC$ we have $\\angle BAC = 60^\\circ$. The perpendicular line to $AB$ at $B$ intersects the bisector of $\\angle BAC$ at $D$ and the perpendicular line to $BC$ at $C$ meets the bisector of $\\angle ABC$ at $E$. Prove that $\\angle BED \\leq 30^\\circ$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nDenote by $I$ the intersection point of $AD$ and $BE$, so $I$ is the incenter of triangle $ABC$. Suppose that $\\alpha = \\frac{\\angle BAC}{2}$. We have\n$$\n\\angle IBD = 90^\\circ - \\angle IBA = 90^\\circ - \\frac{\\angle CBA}{2} = 90^\\circ - 30^\\circ = 60^\\circ,\n$$\n$$\n\\angle CEB = 90^\\circ - \\angle CBE = 90^\\circ - \\frac{\\angle CBA}{2} = 90^\\circ - 30^\\circ = 60^\\circ.\n$$\nThus in triangles $BEC$ and $BED$ we have $\\angle CEB = \\angle EBD = 60^\\circ$ and $BE$ is side of both of them. Since $\\angle BEC = 30^\\circ$ it suffices to prove $BD < CE$ but we have $\\frac{BD}{AB} = \\tan \\alpha$ and $\\frac{EC}{BC} = \\tan 30^\\circ$, So\n$$\nBD \\le CE \\Leftrightarrow AB \\tan \\alpha \\le BC \\tan 30^\\circ \\Leftrightarrow \\frac{AB}{BC} \\tan \\alpha \\le \\tan 30^\\circ\n$$\n$$\n\\Leftrightarrow \\tan \\alpha \\frac{\\sin(120^\\circ - 2\\alpha)}{\\sin(2\\alpha)} \\le \\tan 30^\\circ \\quad (\\text{Law of Sines})\n$$\n$$\n\\Leftrightarrow \\frac{\\sin \\alpha}{\\cos \\alpha} \\frac{\\sin(120^\\circ - 2\\alpha)}{2 \\sin \\alpha \\cos \\alpha} \\le \\tan 30^\\circ\n$$\n$$\n\\Leftrightarrow \\sin(120^\\circ - 2\\alpha) \\le 2\\cos^2 \\alpha \\cdot \\tan 30^\\circ\n$$\n\n$$\n\\begin{aligned}\n& \\Leftrightarrow \\sin 120^\\circ \\cos(2\\alpha) - \\sin 120^\\circ \\sin(2\\alpha) \\le (1 + \\cos(2\\alpha)) \\tan 30^\\circ \\\\\n& \\Leftrightarrow (\\sin 120^\\circ - \\tan 30^\\circ) \\cos(2\\alpha) - \\cos 120^\\circ \\sin(2\\alpha) \\le \\tan 30^\\circ.\n\\end{aligned}\n$$\nWe know by Cauchy-Schwarz inequality that\n$$\n\\begin{aligned}\n(LHS)^2 &\\le ((\\sin 120^\\circ - \\tan 30^\\circ)^2 + (\\cos 120^\\circ)^2)(\\cos^2(2\\alpha) + \\sin^2(2\\alpha)) \\\\\n&= \\left(\\frac{\\sqrt{3}}{2} - \\frac{\\sqrt{3}}{3}\\right)^2 + \\left(\\frac{-1}{2}\\right)^2 = \\frac{3}{36} + \\frac{1}{4} = \\frac{1}{3} = (\\tan 30^\\circ)^2 = (RHS)^2.\n\\end{aligned}\n$$\n$\\quad \\square$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32602, "subject": "Mathematics (Multi-modal)", "question": "Prove that for every positive integers $k$ and $n$ there exist $k$ monic polynomials $P_1(x), P_2(x),..., P_k(x)$ of degree $n$ with integer coefficient such that each two of them have no common factor and the sum of each arbitrary number of them has all its roots real.", "options": [], "answer": "Detailed solution", "solution": "For each $1 \\le i \\le k$ we define\n$$\nP_i(x) = (x - i)(x - (k + i))\\cdots(x - ((n - 1)k + i)).\n$$\nWe claim that these polynomials satisfy the problem condition.\nFor each $1 \\le i \\le k$ and each $0 \\le j \\le n - 1$, $P_i(x)$ has exactly one simple root in the interval $(jk + \\frac{1}{2}, (j+1)k + \\frac{1}{2})$ so invoking the *mean value theorem* we deduce that $P_i(jk + \\frac{1}{2})$ and $P_i((j+1)k + \\frac{1}{2})$ have different signs. Note that $P_i(nk + \\frac{1}{2}) > 0$ because $P_i$ is monic and so is positive for large positive values and does not have any root greater than $n$. Thus for each $1 \\le i \\le k$, $P_i(jk + \\frac{1}{2}) > 0$ if $j \\equiv n \\pmod 2$ and $P_i(jk + \\frac{1}{2}) < 0$ if $j \\not\\equiv n \\pmod 2$.\n\nNow let $Q(x) = P_{i_1}(x) + P_{i_2}(x) + \\dots + P_{i_t}(x)$ where $i_1, i_2, \\dots, i_t \\in \\{1, 2, \\dots, k\\}$ are distinct. Obviously $Q(x) \\in \\mathbb{Z}[x]$ is a polynomial of degree $n$.\nFor each $0 \\le j \\le n-1$, numbers $Q(jk + \\frac{1}{2})$ and $Q((j+1)k + \\frac{1}{2})$ have different signs\nbecause $P_{i_1}, P_{i_2}, \\dots, P_{i_t}$ have this property. So again according to mean value theorem\nwe deduce that $Q$ has a root in the interval $(jk + \\frac{1}{2}, (j+1)k + \\frac{1}{2})$ and $Q(x)$ has at\nmost $n$ real roots so all its roots are real, hence the claim is proved. $\\square$", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32603, "subject": "Mathematics (Multi-modal)", "question": "Let $\\omega$ be the circumcircle of an acute triangle $ABC$. Let $D$ be the midpoint of arc $\\widearc{BAC}$ in $\\omega$ and $I$ be the incenter of triangle $ABC$. Suppose $DI$ intersects $BC$ at $E$ and $\\omega$ at $F$ for the second time. Suppose the parallel line to $AI$ from $E$ meets $AF$ at $P$. Prove that $PE$ is the bisector of $\\angle BPC$.", "options": [], "answer": "Detailed solution", "solution": "Let $T$ be the point of intersection of the perpendicular bisector of $BC$ and circle $\\omega$, so $TD$ is a diagonal of $\\omega$ and $\\angle DFT = 90^\\circ$. Since $D$ is the midpoint of arc $\\widearc{BAC}$, $FD$ is the angle bisector of $\\angle BFC$. Therefore $(JEBC) = -1$ where $J$ is the intersection point of line $TF$ and the extension of $BC$.\n\n![](attached_image_1.png)\n\n$$\n\\angle EJF = \\frac{1}{2}(\\widearc{CT} - \\widearc{BF}) = \\frac{1}{2}(\\widearc{BT} - \\widearc{BF}) = \\frac{1}{2}\\widearc{FT} = \\angle TAF = \\angle EPF\n$$\nSo quadrilateral $PEFJ$ is cyclic and consequently $\\angle JPE = 90^\\circ$. This fact and $(JEBC) = -1$ implies that $PE$ is the angle bisector of $\\angle BPC$ and this is what we wanted to prove.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32604, "subject": "Mathematics (Multi-modal)", "question": "Determine all increasing sequence $a_1, a_2, a_3, \\ldots$ of positive integers such that for every $i, j \\in \\mathbb{N}$, the number of positive divisors of $i + j$ and $a_i + a_j$ are equal (A sequence $a_1, a_2, a_3, \\ldots$ is increasing if $i \\le j$ implies $a_i \\le a_j$).", "options": [], "answer": "a_n = n for all n", "solution": "First it is easy to show that the sequence is strictly increasing. Assume that $a_i = a_{i+1}$ for some $i$. Let $j = p - i$ for a large prime $p$. Now $i + j$ is a prime number. So $a_i + a_j$ is prime too. But from $a_i = a_{i+1}$ we get $a_{i+1} + a_j$ and $i + 1 + j$ are prime numbers. So $i + j$ and $i + j + 1$ are two consecutive large prime numbers, contradiction.\n\nNow put $i = j = 2^{p-2}$ for a large prime $p$. So the number of divisors of $2a_i = 2^{p-1}$ equals $p$. Hence $2a_i$ is of the form $q^{p-1}$ for a prime $q$. Obviously $q$ should be $2$ and therefore we have $a_{2^{p-2}} = 2^{p-2}$.\n\nNow we have a strictly increasing sequence of integers with infinitely many fixed points. So, for each $n$, $a_n = n$. $\\square$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32605, "subject": "Mathematics (Multi-modal)", "question": "Four metal pieces are joined to each other to form a quadrilateral in the space. The angle between them can vary freely. In a case that the quadrilateral is not planar, we mark one point of each piece such that the points lie in a plane. Prove that these four points are always coplanar as the quadrilateral varies.\n\n![](attached_image_1.png)", "options": [], "answer": "Detailed solution", "solution": "Let quadrilateral that these four pieces form in the space be $ABCD$ and we marked points $M, N, P$ and $Q$ on sides $AB, BC, CD$ and $DA$ respectively, so that the marked points are on a plane named $\\pi$. Let $a, b, c$ and $d$ be the distances from $A, B, C$ and $D$ to $\\pi$ respectively. So we have\n\n![](attached_image_2.png)\n\n$$\n\\frac{AM}{MB} = \\frac{a}{b}, \\quad \\frac{BN}{NC} = \\frac{b}{c}, \\quad \\frac{CP}{PD} = \\frac{c}{d}, \\quad \\frac{DQ}{QA} = \\frac{d}{a} \\Rightarrow \\frac{AM}{MB} \\times \\frac{BN}{NC} \\times \\frac{CP}{PD} \\times \\frac{DQ}{QA} = 1.\n$$\n\nNow $ABCD$ varies, let $\\pi'$ be the plane passing through $M, N, P$. Suppose that $a', b', c'$ and $d'$ are the distances of $A, B, C$ and $D$ to $\\pi'$ respectively. Thus\n\n$$\n\\frac{AM}{MB} = \\frac{a'}{b'}, \\quad \\frac{BN}{NC} = \\frac{b'}{c'}, \\quad \\frac{CP}{PD} = \\frac{c'}{d'} \\Rightarrow \\frac{DQ}{QA} = \\frac{d'}{a'}.\n$$\n\nSo $Q$ must be on $\\pi'$ too.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32606, "subject": "Mathematics (Multi-modal)", "question": "The escalator of “Champion Butcher” metro station has this property that if $m$ persons are on it, its speed is $m^{-\\alpha}$ where $\\alpha$ is a positive constant number. Suppose that $n$ persons want to go upstairs by the escalator. If the length of the escalator is $l$, what is the least time required for these persons to go to upstairs? (Suppose the persons can use the escalator simultaneously at any time).\n\n![](attached_image_1.png)", "options": [], "answer": "If alpha ≥ 1, the least time is n l. If alpha < 1, the least time is n^alpha l.", "solution": "In every moment consider the number of persons that are on the escalator at that time. Now consider the intervals such that in every time of such intervals the number of persons on the escalator is equal to a fixed integer. Suppose that we have $k$ intervals $I_1, I_2, \\dots, I_k$ and for $1 \\le i \\le k$, $a_i$ and $l_i$ denotes the length and number of persons on the escalator in every moment of $I_i$. We claim that $\\sum_{i=1}^{k} a_i^{1-\\alpha} t_i = nl$.\n\nSince every person have moved a distance equal $l$ so the sum of travelled distance of people is $nl$. On the other hand travelled distance of a person who is on the escalator on the interval $I_i$ equals $a_i^{-\\alpha} t_i$. So the sum of travelled distance in the interval $I_i$ equals $a_i \\cdot a_i^{-\\alpha} t_i = a_i^{1-\\alpha} t_i$, hence the total travelled distance is $\\sum_{i=1}^{k} a_i^{1-\\alpha} t_i$.\n\nSo the claim is proved.\n\nNow consider the following cases.\n\n**Case 1.** $\\alpha \\ge 1$. If $a_i \\ge 1$ since $\\alpha \\ge 1$ we have $a_i^{\\alpha-1} \\ge 1$, hence $a_i^{1-\\alpha} \\le 1$. If $a_i = 0$ also $a_i^{1-\\alpha} = 0 \\le 1$. So $nl = \\sum_{i=1}^k a_i^{1-\\alpha} t_i \\le \\sum_{i=1}^k t_i$. So the required time is at least $nl$. If each person goes on the escalator when the previous one reached the top of the escalator the required time equals $nl$. Hence in this case the required time is at least $nl$.\n\n**Case 2.** $\\alpha < 1$. Since $a_i < n$ and $1 - \\alpha > 0$ we have $a_i^{1-\\alpha} < n^{1-\\alpha}$ so\n$$\nnl = \\sum_{i=1}^{k} a_{i}^{1-\\alpha} t_{i} \\leq \\sum_{i=1}^{k} n^{1-\\alpha} t_{i} = n^{1-\\alpha} \\sum_{i=1}^{k} t_{i} \\Rightarrow n^{\\alpha} l \\leq \\sum_{i=1}^{k} t_{i}\n$$\nSo the required time is at least $n^\\alpha l$. If all $n$ people go on the escalator together the velocity equals $n^{-\\alpha}$ and so the required time equals $\\frac{l}{n^{-\\alpha}} = n^\\alpha l$. Hence in this case the required time is at least $n^\\alpha l$. $\\square$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32607, "subject": "Mathematics (Multi-modal)", "question": "Find the smallest positive integer $n$ such that there exist $n$ real numbers in the interval $(-1,1)$ such that their sum is zero and the sum of their squares equals $20$.", "options": [], "answer": "22", "solution": "Suppose that $a_1, a_2, \\dots, a_n$ satisfies the conditions. First, we have\n$$\n20 = a_1^2 + a_2^2 + \\dots + a_n^2 < \\underbrace{1 + 1 + \\dots + 1}_{n} = n.\n$$\nSo $21 \\le n$. We want to show that $n = 22$ is the answer. So we prove that there are not $21$ numbers $a_1, a_2, \\dots, a_{21}$ in the interval $(-1, 1)$ such that $a_1 + a_2 + \\dots + a_{21} = 0$ and $a_1^2 + a_2^2 + \\dots + a_{21}^2 = 20$. Assume that sequence $a_i$ is in increasing order so $a_1 \\le \\frac{a_1 + a_2 + \\dots + a_{21}}{21} \\le a_{21}$. Thus $a_1 \\le 0 \\le a_{21}$. But because of minimality of number $21$, we have $a_i \\ne 0$ for $1 \\le i \\le 21$. So there exist a unique number $1 \\le k < 21$ such that\n$$\n-1 < a_1 \\le a_2 \\le \\dots \\le a_k < 0 < a_{k+1} \\le \\dots \\le a_{21} < 1.\n$$\nWe know that numbers $-a_1, -a_2, \\dots, -a_{21}$ satisfies the problem condition, too.\nThereby we can assume that $k \\le \\frac{21}{2}$ and since $k \\in \\mathbb{Z}$ we have $k \\le 10$.\nNow for every $k+1 \\le i \\le 21$. We have $0 < a_i < 1$, so $0 < a_i^2 < a_i$.\n$$\n\\begin{aligned}\n20 &= a_1^2 + a_2^2 + \\dots + a_{21}^2 = (a_1^2 + \\dots + a_k^2) + (a_{k+1}^2 + \\dots + a_{21}^2) \\\\\n&< (a_1^2 + \\dots + a_k^2) + (a_{k+1} + \\dots + a_{21}) \\\\\n&< (a_1^2 + \\dots + a_k^2) + (-a_1 - a_2 - \\dots - a_k) \\\\\n&< 2k \\le 20.\n\\end{aligned}\n$$\n\nThis contradiction shows that $n \\ge 22$. The following numbers are an example for $n = 22$ and so the answer is $22$.\n$$\na_i = \\sqrt{\\frac{11}{10}} \\quad (1 \\le i \\le 11) \\quad \\text{and} \\quad a_i = -\\sqrt{\\frac{11}{10}} \\quad (12 \\le i \\le 22). \\quad \\square\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32608, "subject": "Mathematics (Multi-modal)", "question": "Let $\\alpha$ be a real number and $a_1, a_2, a_3, \\dots$ a strictly increasing sequence of positive integers such that for every $n \\in \\mathbb{N}$, $a_n \\le n^\\alpha$. A prime number $q$ is called *golden* if there is a positive integer $m$ such that $q \\mid a_m$. Suppose that $q_1 < q_2 < q_3 < \\dots$ are all *golden* prime numbers.\na) Prove that if $\\alpha = 1.5$, then $q_n \\le 1390^n$.\n\nb) Prove that if $\\alpha = 2.4$, then $q_n \\le 1390^{2n}$.", "options": [], "answer": "Detailed solution", "solution": "a) Denote by $t$ the number of *golden* prime numbers less than or equal to $1390^n$. We want to show that $t \\ge n$. Suppose that $S$ is collection of all natural numbers less than or equal to $1390^n$ with prime factors from the set $\\{q_1, q_2, \\dots, q_t\\}$. Obviously each element of $S$ can be written in the form $a^2b$ where $a, b \\in \\mathbb{N}$ and $b$ is out of square. So $a \\le \\sqrt{1390^n} = 1390^{\\frac{n}{2}}$ and $b = q_1^{\\alpha_1} q_2^{\\alpha_2} \\dots q_t^{\\alpha_t}$ such that $\\alpha_i \\in \\{0,1\\}$. Therefore $a$ and $b$ have $1390^{\\frac{n}{2}}$ and $2^t$ states respectively, and so $|S| \\le 2^t \\times 1390^{\\frac{n}{2}}$.\n\nOn the other hand for each integer $1 \\le i \\le k = 1390^{\\frac{2}{n}}$ we have\n$$\na_i \\le i^{1.5} \\le k^{1.5} = 1390^{\\frac{2}{n} \\times 1.5} = 1390^n.\n$$\nAnd all prime divisors of $a_i$ are in the set $\\{q_1, q_2, \\dots, q_t\\}$, so $a_i \\in S$ ($1 \\le i \\le 1390^{\\frac{2}{n}}$).\nTherefore $S$ has at least $|k|$ elements. So $1390^{\\frac{2}{n}} - 1 < |k| \\le |S| \\le 2^t \\times 1390^{\\frac{n}{2}}$, But it is easy to check that $2 \\times 1390^{\\frac{1}{2}} \\le 1390^{\\frac{2}{n}} - 1$ and this implies $t \\ge n$, because $2^n \\times 1390^{\\frac{1}{2}} = (2 \\times 1390^2)^n \\le (1390^3 - 1)^n \\le 1390^{\\frac{2}{n}} - 1 < 2^t \\times 1390^2$. $\\square$\n\nb) The proof of this part is very similar to part a. Denote by $t$ the number of *golden* prime numbers less than or equal to $1390^{2n}$. We want to show that $t \\ge n$. Suppose that $S$ is collection of all natural numbers less than or equal to $1390^{2n}$ with prime factors from the set $\\{q_1, q_2, \\dots, q_t\\}$. Then every element of $S$ can be written in the form $a^4b^2c$ where $a, b, c \\in \\mathbb{N}$ and $b, c$ are out of square. (In part a writing $a$ as $x^2y$ where $x, y \\in \\mathbb{N}$ and $y$ is out of square implies this claim.) Now $a \\le \\sqrt[4]{1390^{2n}} = 1390^{\\frac{n}{4}}$, $b = q_1^{\\alpha_1} q_2^{\\alpha_2} \\dots q_t^{\\alpha_t}$ and $c = q_1^{\\beta_1} q_2^{\\beta_2} \\dots q_t^{\\beta_t}$ such that $\\alpha_i, \\beta_i \\in \\{0,1\\}$. Thus we have $1390^{\\frac{n}{2}}, 2^t$ and $2^t$ states for $a, b$ and $c$ respectively and so $|S| \\le 2^{2t} \\times 1390^{\\frac{n}{2}}$.\n\nIn this case if $1 \\le i \\le k = 1390^6$ ($i \\in \\mathbb{N}$) then $a_i \\le i^{2.4} \\le k^{2.4} = 1390^6$ ($i \\times 2.4 \\le k \\le i^{2.4}$). Although prime divisors of $a_i$ ($1 \\le i \\le k$) are in the set $\\{q_1, q_2, \\dots, q_t\\}$ so $a_i \\in S$, hence $1390^{\\frac{5}{n}} - 1 < k \\le |S| \\le 2^{2t} \\times 1390^{\\frac{n}{2}}$. On the other hand $4 \\times 1390^2 \\le 1390^6 - 1$ and so\n$$\n2^{2n} \\times 1390^2 = (4 \\times 1390^2)^n \\le (1390^6 - 1)^n \\le 1390^6 - 1 < 2^{2t} \\times 1390^2,\n$$\nwhich implies $t \\ge n$. $\\square$", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32609, "subject": "Mathematics (Multi-modal)", "question": "Let $f: \\mathbb{R}^{\\ge 0} \\to \\mathbb{R}^{\\ge 0}$ be a function such that for all $a, b \\in \\mathbb{R}^{\\ge 0}$:\ni) $f(a) = 0 \\Leftrightarrow a = 0$.\nii) $f(ab) = f(a)f(b)$.\niii) $f(a + b) \\le 2 \\max\\{f(a), f(b)\\}$.\n\nProve that for every $a,b \\in \\mathbb{R}^{\\ge 0}$, $f(a+b) \\le f(a) + f(b)$.", "options": [], "answer": "Detailed solution", "solution": "We claim that for every $k \\in \\mathbb{N}$ and real numbers $a_1, a_2, \\dots, a_{2^k}$:\n$$\nf(a_1 + a_2 + \\cdots + a_{2^k}) \\le 2^k \\max\\{f(a_1), f(a_2), \\dots, f(a_{2^k})\\}\n$$\nProof is done by induction on $k$. Basis is obviously the condition (iii). Suppose the claim is true for $k$. For $k+1$ we have:\n$$\n\\begin{align*}\nf(a_1 + a_2 + \\cdots + a_{2^{k+1}}) &= f((a_1 + a_2 + \\cdots + a_{2^k}) + (a_{2^k+1} + \\cdots + a_{2^{k+1}})) \\\\\n&\\le 2 \\max\\{f(a_1 + a_2 + \\cdots + a_{2^k}), f(a_{2^k+1} + \\cdots + a_{2^{k+1}})\\} \\\\\n&\\le 2 \\max\\{2^k \\max\\{f(a_1), f(a_2), \\dots, f(a_{2^k})\\}, 2^k \\max\\{f(a_{2^k+1}), \\dots, f(a_{2^{k+1}})\\}\\} \\\\\n&\\le 2^{k+1} \\max\\{f(a_1), f(a_2), \\dots, f(a_{2^{k+1}})\\}\n\\end{align*}\n$$\nNow suppose that $2^{k-1} < n \\le 2^k$:\n$$\n\\begin{align*}\nf(a_1 + \\cdots + a_n) &= f(a_1 + \\cdots + a_n + \\underbrace{0 + 0 + \\cdots + 0}_{2^k - n}) \\\\\n&\\le 2^k \\max\\{f(a_1), \\dots, f(a_n), f(0), \\dots, f(0)\\} \\\\\n&= 2^k \\max\\{f(a_1), \\dots, f(a_n)\\} \\le 2n \\max\\{f(a_1), \\dots, f(a_n)\\}\n\\end{align*}\n$$\nIf we put $a_1 = a_2 = \\cdots = a_n = 1$ then $f(n) = f(\\underbrace{1+1+\\cdots+1}_{n}) \\le 2nf(1)$. Therefore\n$$\n\\begin{align*} \n(f(a+b))^n &= f((a+b)^n) = f\\left(\\sum_{i=0}^{n} \\binom{n}{i} a^i b^{n-i}\\right) \\le 2(n+1) \\max_{0 \\le i \\le n} \\{f\\left(\\binom{n}{i} a^i b^{n-i}\\right)\\} \\\\ \n&\\le 2(n+1) \\sum_{i=0}^{n} \\binom{n}{i} f(a^i) f(b^{n-i}) \\le 4(n+1)f(1) \\sum_{i=0}^{n} \\binom{n}{i} f(a)^i f(b)^{n-i} \\\\ \n&= 4(n+1)f(1)(f(a)+f(b))^n \\Rightarrow f(a+b) \\le \\sqrt[n]{4(n+1)f(1)(f(a)+f(b))} \n\\end{align*}\n$$\nIf $n$ tends to infinity, we have $\\sqrt[n]{4(n+1)f(1)} \\to 1$ and this implies the desired result. $\\square$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32610, "subject": "Mathematics (Multi-modal)", "question": "Two circles in the space are called *linking* if they intersect at two points or they are interlocked. Find a necessary and sufficient condition for four distinct points $A$, $B$, $A'$, $B'$ in the space such that every two different circles passing through $A$, $B$ and the other passing through $A'$, $B'$ respectively are *linking*.\n\n![](attached_image_1.png)", "options": [], "answer": "The four points must lie on a single circle or line, and the pair A, B must separate the pair A′, B′ on it.", "solution": "The points should be on a circle (or line) and $A$, $B$ should separate $A'$, $B'$ on it. To prove necessity, first suppose that the points are not coplanar. Then there exist two parallel planes passing through $A$, $B$ and $A'$, $B'$ respectively. Any two circles in these planes are not linking. So the points should be coplanar.\n\nNow suppose $B'$ is not on the circumcircle of $ABA'$ (which can be a line). So we can slightly change the circle to find a circle passing through $A$, $B$ such that $A'$, $B'$ are both outside or both inside it. Now, this circle is not linking with the circle with diameter $A'B'$ orthogonal to the plane containing the points.\n\nSo the points should be on a circle (or line). Now, suppose $A$, $B$ do not separate $A'$, $B'$ on the circle. If we change the circle slightly, still passing through $A$, $B$, then $A'$, $B'$ will be both inside or both outside the new circle and we arrive to a contradiction like the previous case. So, the necessity of the condition is proved.\n\nTo prove sufficiency, Let $C$, $C'$ be two different circles passing through $A$, $B$ and $A'$, $B'$ respectively. Let $P$, $P'$ be the planes containing $C$, $C'$ respectively. If the points are collinear, then $C' \\cap P$ is consisted of a point inside $C$ and a point outside $C$. So $C$, $C'$ are interlocked. So, suppose the points are on a circle. Let $M$ be the intersection of the segments $AB$ and $A'B'$. We have $MA \\cdot MB = MA' \\cdot MB'$. Let\n\n$l = P \\cap P'$ which passes through $M$. $M$ is inside $C$, so $l$ intersects $C$ at two points like $X,Y$ and $M$ is between $X,Y$. Similarly, $l$ intersects $C'$ at $X',Y'$ namely, and $M$ is between $X',Y'$. Suppose $X,X'$ are in one side of $M$. We have\n$$\nMX \\cdot MY = MA \\cdot MB = MA' \\cdot MB' = MX' \\cdot MY'\n$$\nSo if $MX \\le MX'$, then $MY \\ge MY'$ and vice versa. So the points of $C' \\cap P = \\{X',Y'\\}$ are in different sides of $C$ or both are on $C$. So $C,C'$ are linking and sufficiency of the condition is proved. $\\square$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32611, "subject": "Mathematics (Multi-modal)", "question": "For a function $f : \\mathcal{P}(\\mathbb{N}) \\to \\mathbb{N}$ and a subset $A \\subseteq \\mathbb{N}$, we say $f$ is *A-predictor* if the set $\\{x \\in \\mathbb{N} \\mid x \\notin A, f(A \\cup \\{x\\}) \\neq x\\}$ is finite. Prove that there exists a function that for every subset $A$ of natural numbers is *A-predictor*.", "options": [], "answer": "Detailed solution", "solution": "Define $f(A) = \\max(A)$ when $A$ is finite. Evidently, $f$ is $A$-predictor when $A$ is finite. We extend $f$ to all subsets of $\\mathbb{N}$. We say two subsets $A,B$ are equivalent if $B$ is derived from $A$ by adding and deleting a finite number of elements; i.e. $A\\Delta B$ is finite. This is an equivalence relation. By the Axiom of Choice, we can select an element from each class of equivalency. For an arbitrary proper subset $A$, let $S_A$ be the selected element from the class of $A$. So, $A\\Delta S_A$ is finite. Define $f(A) = \\max(A\\Delta S_A)$ when $A \\neq S_A$ and define $f(S_A)$ arbitrarily. We claim this function is $A$-predictor for all subsets $A \\subseteq \\mathbb{N}$.\n\nLet $x$ be a natural number such that $x \\notin A$. $A$ and $A \\cup \\{x\\}$ are equivalent, so $S_A = S_{A \\cup \\{x\\}}$. So\n$$\nf(A \\cup \\{x\\}) = f(A\\Delta \\{x\\}) = \\max((A\\Delta \\{x\\})\\Delta S_A) = \\max((A\\Delta S_A)\\Delta \\{x\\}).\n$$\nFor $x > \\max(A\\Delta S_A)$ we have $(A\\Delta S_A)\\Delta \\{x\\} = (A\\Delta S_A) \\cup \\{x\\}$. therefore $f(A \\cup \\{x\\}) = x$ and the claim is proved. □", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32612, "subject": "Mathematics (Multi-modal)", "question": "Is it possible to write $\\binom{n}{2}$ consecutive natural numbers on the edges of a complete graph with $n$ vertices such that for every path (or cycle) of length $3$ with edges $a, b, c$ ($b$ lies between $a, c$) the greatest common divisor of the numbers of edges $a$ and $c$ divides the number of edge $b$?", "options": [], "answer": "Possible if and only if the graph has three vertices (n = 3); impossible for larger n.", "solution": "First we claim that for every positive integer $k$, the edges which their numbers are divisible by $k$ form a cluster. Indeed, suppose on the contrary that $S$ is the largest cluster such that the number of its edges is divisible by $k$ and $v \\notin S$ is another such edge. Applying problem statement on edge $v$ and edges of cluster we get there exists a larger cluster with number on edges divisible by $k$.\n\nNow suppose that $p \\mid \\binom{n}{2}$ where $p$ is a prime number. Therefore the edges with numbers divisible by $\\frac{1}{p}\\binom{n}{2}$ form a cluster and the number of such edges is $p$. So\n\n$$\n\\begin{aligned}\np &= \\begin{pmatrix} t \\\\ 2 \\end{pmatrix} \\Rightarrow 2p = t(t-1) \\\\\n&\\Rightarrow \\begin{cases}\np \\mid t \\Rightarrow t-1 \\mid 2 \\Rightarrow t=2 \\text{ or } t=3 \\Rightarrow t=3, p=3 \\\\\np \\mid t-1 \\Rightarrow t \\mid 2 \\Rightarrow t=1 \\text{ or } t=2 \\Rightarrow \\text{Contradiction!}\n\\end{cases}\n\\end{aligned}\n$$\n\nThereby the only prime divisor of $\\begin{pmatrix} n \\\\ 2 \\end{pmatrix}$ is three, so $\\begin{pmatrix} n \\\\ 2 \\end{pmatrix} = 3^a$ where $a \\in \\mathbb{N}$. If $a = 1$ and so $n = 3$ and numbers $1,2,3$ satisfies problem statement. If $a > 1$ there exist $9$ multiple of $\\frac{1}{9}\\begin{pmatrix} n \\\\ 2 \\end{pmatrix}$ among numbers, but $9$ cannot be written in the form $\\begin{pmatrix} t \\\\ 2 \\end{pmatrix}$ so for $n > 3$ such numbers do not exist. $\\square$", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 32613, "subject": "Mathematics (Multi-modal)", "question": "Let $g$ be a polynomial of degree at least $2$ with nonnegative coefficients. Find all functions $f: \\mathbb{R}^{+} \\rightarrow \\mathbb{R}^{+}$ such that for every $x, y \\in \\mathbb{R}^{+}$\n\n$$\nf(f(x) + g(x) + 2y) = f(x) + g(x) + 2f(y).\n$$", "options": [], "answer": "f(x) = x for all positive real x", "solution": "Let $h(x) = f(x) - x$, so we have\n$$\nh(h(x) + g(x) + x + 2y) = 2h(y). \\quad (1)\n$$\nHence for every $x, y, z \\in \\mathbb{R}^+$ we have\n$$\nh(h(x) + g(x) + x + 2y) = 2h(y) = h(h(z) + g(z) + z + 2y). \\quad (2)\n$$\nThere exist some $x, z \\in \\mathbb{R}^+$ such that $T = h(x) + g(x) + x - h(z) - g(z) - z$ is positive. Otherwise $h(x) + g(x) + x$ must be constant. So\n$$\nh(x) + g(x) + x = h(1) + g(1) + 1 \\Rightarrow h(x) = -g(x) - x + C,\n$$\nwhere $C = h(1) + g(1) + 1$ (constant). By definition of $h(x)$ we get\n$$\nf(x) = -g(x) + C.\n$$\nBut coefficients of $g(x)$ all are positive, therefore $g(x) \\to +\\infty$ as $x \\to +\\infty$ so $g(x) > C$ for large values $x$, which contradicts the assumption that $f(x) \\in \\mathbb{R}^+$ for every $x \\in \\mathbb{R}^+$. Therefore function $h(x)$ is periodic because according to equation (2) for each $x, z \\in \\mathbb{R}^+$, $T = h(x) + g(x) + x - h(z) - g(z) - z$ is a period for $h$. (We can choose $x, z \\in \\mathbb{R}^+$ such that $T > 0$.) Therefore\n$$\nS(x) = h(x + T) + g(x + T) + (x + T) - h(x) - g(x) - x = g(x + T) - g(x) - T.\n$$\n$S(x)$ is a period for $h$ for every $x \\in \\mathbb{R}^+$. Since $g(x)$ is a polynomial of degree at least two, $S(x)$ is not constant and is a function of $x$ such that its image contains all numbers greater than a fixed positive real number $A$ and this implies that $h(x)$ is constant for every $x \\in \\mathbb{R}^+$ and so $h(x) = K$ for some constant $K$. Now we replace function $h$ by $K$ in (1)\n$$\nh(h(x) + g(x) + x + 2y) = 2h(y) \\Rightarrow K = 2K \\Rightarrow K = 0 \\\\\n\\Rightarrow h(x) = 0 \\quad \\forall x \\in \\mathbb{R}^+ \\Rightarrow f(x) = x \\quad \\forall x \\in \\mathbb{R}^+.\n$$", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 32614, "subject": "Mathematics (Multi-modal)", "question": "Let $ABCD$ be a parallelogram. Consider circles $\\omega_1$ and $\\omega_2$ such that $\\omega_1$ is tangent to segments $AB$, $AD$ and $\\omega_2$ is tangent to segments $BC$, $CD$. Suppose that there exists a circle tangent to lines $AD$, $DC$ and externally tangent to $\\omega_1$, $\\omega_2$. Prove that there exists a circle tangent to lines $AB$ and $BC$ and externally tangent to $\\omega_1$, $\\omega_2$.", "options": [], "answer": "Detailed solution", "solution": "Suppose $\\omega_1$ is tangent to $AB$, $AD$ at $P_1$, $Q_1$ respectively and $\\omega_2$ is tangent to $CD$, $BC$ at $P_2$, $Q_2$ respectively.\n\n**Lemma.** Let a circle $\\omega$ be tangent to the half-lines $BA$, $BC$ at $P$, $Q$ respectively. $\\omega$ is tangent to $\\omega_1$ if and only if $\\sqrt{BP} = \\sqrt{AB} \\pm \\sqrt{AP_1}$ for some choice of the sign.\n\n*Proof.* $PP_1$ is the common external tangent of $\\omega$ and $\\omega_1$. So $\\omega$, $\\omega_1$ are tangent if and only if $PP_1 = 2\\sqrt{rr_1}$, where $r$, $r_1$ are the radii of $\\omega$, $\\omega_1$ respectively. If we let $\\angle ABC = 2\\alpha$, then $r = BP \\cdot \\tan\\alpha$ and $r_1 = AP \\cdot \\cot\\alpha$. So $2\\sqrt{rr_1} = 2\\sqrt{BP \\cdot AP_1}$. So $\\omega$, $\\omega_1$ are tangent if and only if $AB - AP_1 - BP = \\pm 2\\sqrt{BP \\cdot AP_1}$ and the claim follows. $\\square$\n\nBy assumption, there is a circle $\\omega$ tangent to the lines $DA$, $DC$ at $Q$, $P$ respectively and externally tangent to $\\omega_1$, $\\omega_2$. It is easily seen that $\\omega$ should be inside the angle $\\angle ADC$. So, by the lemma we have:\n$$\n\\sqrt{DQ} = \\sqrt{AD} \\pm \\sqrt{AQ_1} \\\\\n\\sqrt{DP} = \\sqrt{CD} \\pm \\sqrt{CP_2}\n$$\nfor some choice of the signs. We have $DP = DQ$, $AQ_1 = AP_1$, $CP_2 = CQ_2$, $AD = BC$ and $CD = AB$. So by the above equations we get\n$$\n\\sqrt{BC} \\pm \\sqrt{AP_1} = \\sqrt{AB} \\pm \\sqrt{CQ_2} \\Rightarrow \\sqrt{BC} \\pm \\sqrt{CQ_2} = \\sqrt{AB} \\pm \\sqrt{AP_1}.\n$$\n\n![](attached_image_1.png)\n\n![](attached_image_2.png)\n\nLet $\\omega'$ be a circle tangent to the half-lines $BA$, $BC$ at $P'$, $Q'$ respectively, such that both sides of this equation are equal to $\\sqrt{BP'}$ (note that the value is positive). So $\\omega'$ is tangent to $\\omega_1$, $\\omega_2$ by the lemma and the assertion is proved. $\\square$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32615, "subject": "Mathematics (Multi-modal)", "question": "Suppose $S$ is a convex figure in plane with area $10$. Consider a chord of length $3$ in $S$ and let $A$ and $B$ be two points on this chord which divide it into three equal parts. For a variable point $X$ in $S - \\{A, B\\}$, let $A'$ and $B'$ be the intersection points of rays $AX$ and $BX$ with the boundary of $S$. Let $S'$ be those points of $X$ for which $AA' > \\frac{1}{3} BB'$. Prove that the area of $S'$ is at least $6$.", "options": [], "answer": "Detailed solution", "solution": "The idea is to remove some neighborhoods of $A$ and $B$, because near these points we cannot bound $\\frac{AA'}{BB'}$. Let $Z$ be the intersection of the ray $AB$ with the boundary of $S$ and let $ZB'$ intersect $AA'$ in $A''$. $A''$ is between $A$ and $A'$ since $S$ is convex. So, if we let $S''$ be the set of those points $X$ such that $AA'' > \\frac{1}{3} BB'$, we have $S'' \\subseteq S'$. Hence, it is enough to prove that the area of $S''$ is at least $6$.\nBy *Menelaus's theorem*, we have\n$$\n\\frac{AA''}{A''X} \\cdot \\frac{XB'}{B'B} \\cdot \\frac{BZ}{ZA} = 1 \\Rightarrow \\frac{AA''}{A''X} \\cdot \\frac{XB'}{B'B} = 2.\n$$\nTo omit $A''X$, we write $\\frac{AA''}{A''X}$ in terms of $AA''$ and $AX$ and we treat $B'X$ similarly:\n$$\n\\begin{align*}\n\\Rightarrow \\quad \\frac{A''X}{AA''} &= \\frac{1}{2} \\cdot \\frac{XB'}{B'B} \\\\\n\\Rightarrow \\quad \\frac{AX}{AA''} &= 1 - \\frac{1}{2}\\left(1 - \\frac{BX}{BB'}\\right) \\\\\n\\Rightarrow \\quad \\frac{AX}{AA''} &= \\frac{1}{2} \\cdot \\frac{BX}{BB'} + \\frac{1}{2}.\n\\end{align*}\n$$\nLet $D_1$ be the set of those points $X$ such that $\\frac{1}{2} \\cdot \\frac{BX}{BB'} + \\frac{1}{2} \\ge \\alpha \\frac{BX}{BB'}$ for some constant $\\alpha$ (for suitable $\\alpha$, $D_1$ is a neighborhood of $B$). If $X \\notin D_1$, then\n$$\n\\begin{array}{l}\n\\frac{AX}{AA''} < \\alpha \\frac{BX}{BB'} \\\\\n\\Rightarrow \\quad \\frac{AA''}{BB'} > \\frac{1}{\\alpha} \\cdot \\frac{AX}{BX}.\n\\end{array}\n$$\nLet $D_2$ be the set of those points $X$ in the plane such that $\\frac{AX}{BX} < \\frac{\\alpha}{3}$ (for suitable $\\alpha$, $D_2$ is a neighborhood of $A$). If $X$ is not in either of $D_1$ or $D_2$, then\n$$\n\\frac{AA''}{BB'} > \\frac{1}{\\alpha} \\cdot \\frac{\\alpha}{3} = \\frac{1}{3}\n$$\nas desired. So\n$$\nS - D_1 - D_2 \\subseteq S'' \\subseteq S'.\n$$\nNow, we calculate the areas of $D_1$ and $D_2$. If $\\alpha < 3$, then $D_2$ is the interior part of the Apollonius circle of $A$ and $B$. Also,\n$$\nX \\in D_1 \\Leftrightarrow \\frac{1}{2} \\cdot \\frac{BX}{BB'} + \\frac{1}{2} \\ge \\alpha \\frac{BX}{BB'} \\Leftrightarrow \\frac{BX}{BB'} < \\frac{1}{2\\alpha - 1}.\n$$\nSo, if $\\alpha > 1$ then $D_1$ is a neighborhood of $B$ similar to $S$. Now, we take $\\alpha = \\frac{3}{2}$. We conclude that the area of $D_1$ is $\\left(\\frac{1}{2}\\right)^2$ times the area of $S$ which is $\\frac{10}{4} = 2.5$. Also, if $C$ and $D$ are the intersection points of the boundary of $D_2$ with the line $AB$ and $C$ is between $A$ and $B$, we have\n$$\n\\begin{align*}\n\\frac{AD}{DB} &= \\frac{1}{2} \\Rightarrow \\frac{AD}{AD+1} = \\frac{1}{2} \\Rightarrow AD = 1 \\\\\n\\frac{AC}{CB} &= \\frac{1}{2} \\Rightarrow \\frac{AC}{1-AC} = \\frac{1}{2} \\Rightarrow AC = \\frac{1}{3}.\n\\end{align*}\n$$\nSo the diameter of $D_2$ is $1 + \\frac{1}{3} = \\frac{4}{3}$ and hence, the area of $D_2$ is $\\left(\\frac{2}{3}\\right)^2 \\pi < 1.5$. So\n$$\n\\begin{align*}\nT_X &\\ge T_{S-D_1-D_2} \\\\\n&\\ge 2T_S - T_{D_1} - T_{D_2} \\\\\n&> 10 - 2.5 - 1.5 = 6.\n\\end{align*}\n$$\nwhere $T_K$ represents the area of figure $K$ in the plane. Hence, the assertion is proved. $\\square$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32616, "subject": "Mathematics (Multi-modal)", "question": "Prove that for each $n \\in \\mathbb{N}$ there exist natural numbers $a_1 < a_2 < \\dots < a_n$ such that $\\phi(a_1) > \\phi(a_2) > \\dots > \\phi(a_n)$.", "options": [], "answer": "Detailed solution", "solution": "First we prove a lemma.\n\n**Lemma.** Let $a > b$ be two positive integers such that $\\frac{a}{b} > 4$. Then there exist some positive integer $l$ such that $b < \\phi(2^l) = 2^{l-1} < 2^l < a$.\n\n**Proof of lemma.** There exists some positive integer $m$ such that $2^{m-1} \\le b < 2^m$. So $a > 4b \\ge 2^{m+1}$ and hence for $l = m + 1$ we have $b < 2^{l-1} < 2^l < a$, as claimed. $\\square$\n\nWe construct the sequence in the problem inductively. The assertion for $n = 1$ is obvious. Now, suppose that $a_1 < a_2 < \\dots < a_n$ is a sequence such that $\\phi(a_1) > \\phi(a_2) > \\dots > \\phi(a_n)$. Let $p_N$ be the greatest prime factor of $a_i$'s ($p_j$ is the $j$th prime number), $1 \\le i \\le n$. Since for every $x$ with prime factors greater than $p_N$, the greatest common divisor of $x$ and $a_i$ is 1 for all $1 \\le i \\le n$, we deduce that the sequence $a_1x < a_2x < \\dots < a_nx$ also satisfies the condition of the problem (because $\\phi(a_ix) = \\phi(a_i)\\phi(x)$). Now, our goal is to find such $x$ and some positive integer $y$ such that $y < a_1x$ and $\\phi(y) > \\phi(a_1x)$. First we claim that there is a positive integer $x$ with prime factors greater than $p_N$ such that $\\frac{a_1x}{\\phi(a_1)\\phi(x)} > 4$ or equivalently, $\\frac{x}{\\phi(x)} > 4\\frac{\\phi(a_1)}{a_1}$.\n\nTo prove this, let $x_m = p_{N+1}p_{N+2}\\dots p_{N+m}$ ($m \\in \\mathbb{N}$). We have\n$$\n\\frac{x_m}{\\phi(x_m)} = \\prod_{i=N+1}^{N+m} \\frac{p_i}{p_i-1} = \\prod_{i=N+1}^{N+m} \\left(1 + \\frac{1}{p_i-1}\\right) \\ge \\sum_{i=N+1}^{N+m} \\frac{1}{p_i-1}.\n$$\nThe sum $\\sum_{i=N+1}^{\\infty} \\frac{1}{p_i-1} > \\sum_{i=N+1}^{\\infty} \\frac{1}{p_i}$ diverges by a well-known fact, so we can find $m$ such that $\\frac{x_m}{\\phi(x_m)} > 4\\frac{\\phi(a_1)}{a_1}$. We let $x = x_m$. Now, since $\\frac{a_1x}{\\phi(a_1)\\phi(x)} > 4$, according to the lemma there is some positive integer $l$ such that $\\phi(a_1x) < \\phi(2^l) < 2^l < a_1x$. So putting $y = 2^l$ leads to the new sequence\n$$\ny < a_1x < a_2x < \\dots < a_nx\n$$\nwhich has $n+1$ terms and satisfies the problem's condition. $\\square$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32617, "subject": "Mathematics (Multi-modal)", "question": "For nonnegative integers $m$ and $n$, the sequence $a(m, n)$ of real numbers is defined as follows: $a(0, 0)$ is equal to $2$, and for each natural number $n$, $a(0, n) = 1$ and $a(n, 0) = 2$. Also for $m, n \\in \\mathbb{N}$:\n$$\na(m, n) = a(m - 1, n) + a(m, n - 1)\n$$\nProve that for each natural number $k$, all roots of the polynomial $P_k(x) = \\sum_{i=0}^{k} a(i, 2k + 1 - 2i)x^i$ are real numbers.", "options": [], "answer": "Detailed solution", "solution": "Let $Q_k(x) = \\sum_{i=0}^{k} a(i, 2k - 2i)x^i$. According to the recurrence relation for $a(m, n)$, we get\n$$\n\\begin{align*}\nP_k(x) &= xP_{k-1}(x) + Q_k(x) \\\\\nQ_k(x) &= xQ_{k-1}(x) + P_{k-1}(x).\n\\end{align*}\n$$\nSo $Q_k(x) = P_k(x) - xP_{k-1}(x)$ and therefore, $P_k(x) - xP_{k-1}(x) = x(P_{k-1}(x) - xP_{k-1}(x)) + P_{k-1}(x)$. Finally, we get\n$$\nP_k(x) = (2x + 1)P_{k-1}(x) - x^2 P_{k-1}(x).\n$$\nHence we get a recurrence relation for $P_{k+1}(x)$ where $k \\ge 2$, $P_1(x) = 3x + 1$ and $P_2(x) = 5x^2 + 5x + 1$.\n\n**Claim.** For each positive integer $k \\ge 2$ all of the roots of $P_k(x)$ and $P_{k-1}(x)$ are real and distinct. Furthermore, if $a_1 < a_2 < \\cdots < a_{k-1}$ and $b_1 < b_2 < \\cdots < b_k$ are roots of $P_{k-1}$ and $P_k$, respectively, we have\n$$\nb_1 < a_1 < b_2 < a_2 < \\cdots < a_{k-1} < b_k.\n$$\n**Proof.** We proceed by induction. For the base case $k = 2$, $-\\frac{1}{3}$ is the only root of $P_1$ and $P_2(-\\frac{1}{3}) < 0$ so $-\\frac{1}{3}$ lies between the two roots of $P_2(x)$.\nSuppose that $P_{k-1}(x)$ and $P_k(x)$ satisfy the induction hypothesis. We know $P_{k+1}(x) = (2x+1)P_k(x) - x^2P_{k-1}(x)$. Now, we consider the signs of $P_k$ and $P_{k-1}$ on different real numbers. First suppose that $k$ is even.\n$$\n\\begin{array}{c|cccccccccc}\nx & -\\infty & b_1 & a_1 & b_2 & a_2 & \\cdots & b_{k-1} & a_{k-1} & b_k & +\\infty \\\\ \\hline\nP_k & + & 0 & - & 0 & + & \\cdots & 0 & - & 0 & + \\\\\nx^2 P_{k-1} & - & - & 0 & + & 0 & \\cdots & - & 0 & + & +\n\\end{array}\n$$\nSince $P_{k+1}(x) = (2x+1)P_k(x) - x^2P_{k-1}(x)$, for the sign of $P_{k+1}$ in respective $b_i$'s we have\n$$\n\\begin{array}{c|cccccccccc}\nx & -\\infty & b_1 & a_1 & b_2 & a_2 & \\cdots & b_{k-1} & a_{k-1} & b_k & +\\infty \\\\ \\hline\nP_{k+1} & - & + & - & - & - & \\cdots & + & - & - & +\n\\end{array}\n$$\nAccording to the change of signs of $P_{k+1}(x)$ and by the *Mean Value Theorem*, for each $1 \\le i \\le k-1$, $P_{k+1}$ has a root between $b_i$ and $b_{i+1}$. Also, it has one root less than $b_1$ and one root greater than $b_k$, which completes the proof for even values of $k$. The case where $k$ is an odd number is similar, the only difference being the signs of $b_1$ and $-\\infty$.\n\nNote that\n(i) $0$ is not a root of any of the $P_k$'s. Because $P_k(0) = a(0, 2k+1) = 1$, $P_{k-1}(x)$ and $x^2P_{k-1}(x)$ have the same sign.\n(ii) The coefficient of $x^k$ in $P_k(x)$ equals $a(2k, 1) > 0$, so $P_k(+\\infty) > 0$ and the sign of $P_k(-\\infty)$ is related to the parity of $k$. $\\square$", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 32618, "subject": "Mathematics (Multi-modal)", "question": "Suppose $m$ and $n$ are two nonnegative integers. In the Philosopher's Chess, the chessboard is an infinite array of same regular hexagon cells. The Phoenix piece, which is a special piece in this kind of chess, moves as follows:\nAt first, the Phoenix selects one of the six directions and moves $m$ cells in that direction. Then it turns 60 degrees clockwise and moves $n$ cells in that new direction to get to the final point.\nAt most how many cells of the Philosopher's Chess' chessboard exist in such a way that one cannot start from one of them and reach another one with a finite number of movements of the Phoenix piece?\n![](attached_image_1.png)", "options": [], "answer": "m^2 + mn + n^2", "solution": "By considering centers of the hexagons, we get the following equivalent problem:\n\"Two vertices $\\alpha$ and $\\beta$ of the triangular lattice are called equivalent if $\\alpha - \\beta$ is equal to sum of finitely many vectors from the set:\n$$\nA = \\{\\pm(n\\vec{i} - m\\vec{j}), \\pm(n\\vec{k} + m\\vec{i}), \\pm(n\\vec{j} + m\\vec{k})\\}\n$$\nWhere $\\vec{i} = (1,0)$, $\\vec{j} = (-\\frac{1}{2}, \\frac{\\sqrt{3}}{2})$ and $\\vec{k} = (\\frac{1}{2}, \\frac{\\sqrt{3}}{2})$ according to the normal Cartesian coordinates.\n\nWhat is the maximum number of nonequivalent vertices?\nNote that $\\vec{k} = \\vec{i} + \\vec{j}$, thus we can determine vectors of set $A$ using only $\\vec{i}$ and $\\vec{j}$:\n$$\nA = \\{\\pm(n\\vec{i} - m\\vec{j}), \\pm((n+m)\\vec{i} + n\\vec{j}), \\pm(m\\vec{i} + (m+n)\\vec{j})\\}.\n$$\nSince the first vector $n\\vec{i} - m\\vec{j}$ is the difference of the two others, two vertices $\\alpha$ and $\\beta$ are equivalent iff their difference $\\alpha - \\beta$ can be written as a linear combination of vectors $(n+m)\\vec{i} + n\\vec{j}$ and $m\\vec{i} + (m+n)\\vec{j}$ with integer coefficients.\nNote that for integers $a, b, x$ and $y$ the space generated by the vectors $\\{a\\vec{i} + b\\vec{j}, x\\vec{i} + y\\vec{j}\\}$ (using integer coefficients) equals the space generated by vectors $\\{(a-x)\\vec{i} + (b-y)\\vec{j}, x\\vec{i} + y\\vec{j}\\}$. Therefore, we can change former vectors to get simpler vectors to work with. Note that in this change the value of $ay - bx$ (determinant of the matrix formed by vectors $(a, b)$ and $(x, y)$ as rows) is invariant, because $ay - bx = (a-x)y - (b-y)x$. Now, in a similar way to Euclidean Algorithm, if $a \\ge x$ we change $\\{a\\vec{i} + b\\vec{j}, x\\vec{i} + y\\vec{j}\\}$ by $\\{(a-x)\\vec{i} + (b-y)\\vec{j}, x\\vec{i} + y\\vec{j}\\}$. Repeating this process several times leads to vectors of the form $s\\vec{i} + r\\vec{j}$ and $0\\vec{i} + t\\vec{j}$. It means that we can suppose the coefficient of $\\vec{i}$ for one of them is zero. hence, if we want to go from one vertex to another, the difference of the coefficients of $\\vec{i}$ must be a multiple of $s$, since $t\\vec{j}$ does not affect the coefficient of $\\vec{i}$. As a result, for two equivalent vertices, we can first use vector $s\\vec{i} + r\\vec{j}$ several times to match their first coordinate. Then, we must use $t\\vec{j}$ to match the second coordinate. Hence we have $st$ nonequivalent vertices. But\n$$\nst = \\det \\begin{bmatrix} s & r \\\\ 0 & t \\end{bmatrix}\n$$\nwhich is invariant during the process.\n$$\n\\det \\begin{bmatrix} s & r \\\\ 0 & t \\end{bmatrix} = \\det \\begin{bmatrix} m+n & m \\\\ n & m+n \\end{bmatrix} = m^2 + mn + n^2\n$$\nSo the maximum number of nonequivalent vertices is $m^2 + mn + n^2$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32619, "subject": "Mathematics (Multi-modal)", "question": "We call the three variable polynomial $P$ cyclic if $P(x, y, z) = P(y, z, x)$. Prove that cyclic three variable polynomials $P_1$, $P_2$, $P_3$ and $P_4$ exist such that for each cyclic three variable polynomial $P$, there exists a four variable polynomial $Q$ such that\n$$\nP(x, y, z) = Q(P_1(x, y, z), P_2(x, y, z), P_3(x, y, z), P_4(x, y, z)).\n$$", "options": [], "answer": "Detailed solution", "solution": "Let\n$$\nQ(x, y, z) = P(x, y, z) + P(y, x, z)\n$$\n$$\nR(x, y, z) = P(x, y, z) - P(y, x, z).\n$$\nBy these definitions it is obvious that $Q$ is a symmetric polynomial and $R$ is an antisymmetric one. Note that $R(x, x, z) = 0$, so $R$ is divisible by $x - y$. Similarly, $y - z$ and $z - x$ also divide $R$. Therefore there is a polynomial $S$ such that\n$$\nR(x, y, z) = (x - y)(y - z)(z - x)S(x, y, z).\n$$\nAnd it's obvious that $S$ is a symmetric polynomial. We conclude that\n$$\nP = \\frac{1}{2}Q + \\frac{1}{2}(x - y)(y - z)(z - x)S.\n$$\nEvery symmetric polynomial in three variables can be written as a polynomial of elementary symmetric polynomials $P_1 = x + y + z$, $P_2 = xy + yz + zx$ and $P_3 = xyz$. If we put $P_4 = (x - y)(y - z)(z - x)$ (which obviously is cyclic) the proof is complete. $\\square$", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 32620, "subject": "Mathematics (Multi-modal)", "question": "Consider the second degree polynomial $x^2 + a x + b$ with real coefficients. We know that the necessary and sufficient condition for this polynomial to have roots in real numbers is that its discriminant, $a^2 - 4b$, be greater than or equal to zero. Note that the discriminant is also a polynomial with variables $a$ and $b$. Prove that the same story is not true for polynomials of degree 4: Prove that there does not exist a 4 variable polynomial $P(a, b, c, d)$ such that the fourth degree polynomial $x^4 + a x^3 + b x^2 + c x + d$ can be written as the product of four 1st degree polynomials if and only if $P(a, b, c, d) \\ge 0$. (All the coefficients are real numbers.)", "options": [], "answer": "Detailed solution", "solution": "If we put $a = c = 0$, polynomial $x^4 + b x^2 + d$ can be written as product of four linear terms if and only if quadratic polynomial $y^2 + b y + d$ has two nonnegative roots. Therefore $P(0, b, 0, d) \\ge 0$ if and only if $b \\le 0$, $d \\ge 0$ and $b^2 - 4d \\ge 0$. For a fixed $b \\le 0$ let $Q_b(d) = P(0, b, 0, d)$. Now, $Q_b(d) \\ge 0$ if and only if $0 \\le d \\le \\frac{b^2}{4}$ and hence by continuity of $Q_b$, $Q_b(b^2/4)$ must be zero. This implies that for all $b \\le 0$, one variable polynomial $P(0, b, 0, \\frac{b^2}{4}) = 0$, and hence this polynomial is always zero. This means that polynomial $x^4 + b x^2 + \\frac{b^2}{4}$ has four real roots for all values of $b$. Contradiction! $\\square$", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 32621, "subject": "Mathematics (Multi-modal)", "question": "Do there exist natural numbers $a$, $b$ and $c$ such that $a^2 + b^2 + c^2$ is divisible by $2013(ab + bc + ca)$?", "options": [], "answer": "No, such natural numbers do not exist.", "solution": "**Lemma 1.** Let $A \\equiv 2 \\pmod{3}$ be a positive integer. Then there exists a prime number $p$ such that $p \\equiv 2 \\pmod{3}$ and $p^\\alpha \\mid A$ where $\\alpha$ is an odd integer.\n\n**Proof of lemma.** Assume to the contrary that there is not such a prime number $p$. Therefore, if $A = p_1^{\\alpha_1} p_2^{\\alpha_2} \\cdots p_k^{\\alpha_k}$ is the prime factorization of $A$, we have two cases for $p_i$'s, $1 \\le i \\le k$, to consider:\n\nCase 1. $p_i \\equiv 1 \\pmod{3} \\Rightarrow p_i^{\\alpha_i} \\equiv 1 \\pmod{3}$.\n\nCase 2. $p_i \\equiv 2 \\pmod{3}$ and $2|\\alpha_i \\Rightarrow p_i^{\\alpha_i} \\equiv (p_i^2)^{\\frac{\\alpha_i}{2}} \\equiv 1 \\pmod{3}$.\n\nAs a result, we must have $A \\equiv 1 \\pmod{3}$ which is a contradiction. $\\square$\n\n**Lemma 2.** Let $p \\equiv 2 \\pmod{3}$ be a prime number. Show that $\\{0^3, 1^3, \\dots, (p-1)^3\\}$ is a complete residue system modulo $p$.\n\n**Proof of lemma.** Obviously $i^3 \\equiv 0^3 \\pmod{p}$ iff $i \\equiv 0 \\pmod{p}$. Suppose that $p \\nmid i, j$. Our goal is to show that $i^3 \\equiv j^3 \\pmod{p}$ iff $i \\equiv j \\pmod{p}$. One part of the proof is obvious. To prove the other part, suppose that $p = 3t + 2$. Then by *Fermat's Little Theorem*, we have $i^{3t+1} \\equiv j^{3t+1} \\equiv 1 \\pmod{p}$. Hence, we have\n$$\ni^{3t} i \\equiv i^{3t+1} \\equiv j^{3t+1} \\equiv (j^3)^t j \\equiv i^{3t} j \\pmod{p}.$$\nSince $(i, p) = 1$, we get $i \\equiv j \\pmod{p}$. $\\square$\n\nNow we are ready to solve the main problem. We claim that there is no such triple. Assume to the contrary that\n$$\na^2 + b^2 + c^2 = 2013k(ab + bc + ca)\n$$\nfor some positive integer $k$.\n\nFirst, without loss of generality we can suppose that $a$, $b$ and $c$ have no common factor, because if $(a, b, c) = d > 1$, we can divide them by $d$ to get a new triple with no common factor. We have $(a+b+c)^2 = (2013k+2)(ab+bc+ca)$. $2013k+2 \\equiv 2 \\pmod{3}$, so by lemma 1 there is some prime number $p \\equiv 2 \\pmod{3}$ such that $p^{2n+1} \\nmid 2013k+2$ ($n \\ge 0$).\n$$\n\\begin{aligned}\np^{2n+1} \\nmid 2013k+2 & \\Rightarrow p^{2n+1}|(a+b+c)^2 \\Rightarrow p^{2n+2}|(a+b+c)^2 \\\\\n& \\Rightarrow p^{2n+2}|(2013k+2)(ab+bc+ca) \\Rightarrow p|ab+bc+ca.\n\\end{aligned}\n$$\nAs a result, $p|a+b+c$ and $p|ab+bc+ca$. Hence\n$$\n\\begin{aligned}\n0 &\\equiv ab + bc + ca \\equiv ab + c(a+b) \\equiv ab + c(-c) \\pmod{p} \\Rightarrow ab \\equiv c^2 \\pmod{p} \\\\\n& \\Rightarrow c^3 \\equiv abc \\pmod{p}.\n\\end{aligned}\n$$\nBy a similar argument, $a^3 \\equiv b^3 \\equiv abc \\pmod{p}$, so by lemma 2 we deduce $a \\equiv b \\equiv c \\pmod{p}$ and since $p|a+b+c$ and $3 \\nmid p$, we find that $p$ divides $a$, $b$ and $c$, which contradicts our assumption that $(a, b, c) = 1$. $\\square$", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32622, "subject": "Mathematics (Multi-modal)", "question": "Let $X$, $Y$, $X'$ and $Y'$ be four points on a line $l$ with the same order as written. Consider arcs $\\omega_1$ and $\\omega_2$ with endpoints $\\{X, Y\\}$ and arcs $\\omega'_1$ and $\\omega'_2$ with endpoints $\\{X', Y'\\}$ on one side of $l$ such that $\\omega_1$ is tangent to $\\omega'_1$ and $\\omega_2$ is tangent to $\\omega'_2$. Prove that the external common tangent of $\\omega_1$ and $\\omega'_2$ and the external common tangent of $\\omega'_1$ and $\\omega_2$ meet on $l$.", "options": [], "answer": "Detailed solution", "solution": "Without loss of generality, we can suppose that $\\omega_1$ is shorter than $\\omega_2$. Let $l'$ be the common external tangent of $\\omega'_1$ and $\\omega_2$ and let it intersect $l$ at $O$. Let $OA$ be tangent to $\\omega_1$ at $A$, $B := \\omega_1 \\cap \\omega'_1$, $C := \\omega'_1 \\cap l'$, $D := l' \\cap \\omega_2$, $E := \\omega_2 \\cap \\omega'_2$ and let $OF$ be tangent to $\\omega'_2$ at $F$. We must prove that $A$, $O$ and $F$ are collinear. Let the common internal tangent of $\\omega_1$ and $\\omega'_1$ meet $l$ at $O'$, so\n$$\nO'X \\cdot O'Y = O'B^2 = O'X' \\cdot O'Y'\n$$\nThus the power of $O'$ with respect to $\\omega_2$ and $\\omega'_2$ is equal to this value. Hence the circle $C_1$ with center $O'$ and radius $O'B$ passes through $E$ and is orthogonal to all arcs $\\omega_1$, $\\omega_2$, $\\omega'_1$ and $\\omega'_2$. We also have $OA^2 = OX \\cdot OY = OD^2$ and $OF^2 = OX' \\cdot OY' = OC^2$, so the circle $C_2$ with center $O$ and radius $OA$ is orthogonal to both $\\omega_1$ and $\\omega_2$ and also the circle $C_3$ with center $O$ and radius $OF$ is orthogonal to both $\\omega'_1$ and $\\omega'_2$.\nWe use the following classic lemma without proving it.\n**Lemma 1.** Let circle $\\omega$ be orthogonal to circles $C_1$ and $C_2$ and intersect them in $\\{A_1, B_1\\}$ and $\\{A_2, B_2\\}$, respectively. Let $O$, $O_1$ and $O_2$ be the centers of $\\omega$, $C_1$ and $C_2$, respectively. Suppose that the right angles $\\angle OA_1O$ and $\\angle OA_2O$ have different orientations; i.e. one of them is clockwise and the other one is not. Then the pairs $\\{A, A'\\}$ and $\\{B, B'\\}$ are direct anti-homologous points and pairs $\\{A, B'\\}$ and $\\{A', B\\}$ are inverse anti-homologous points for $C_1$ and $C_2$. $\\square$\nUsing the lemma for circle $C_2$, we deduce that $A$ and $D$ are inverse anti-homologous points for $\\omega_1$ and $\\omega_2$ (we do not check the conditions here for brevity). Using the lemma again for circle $C_1$, we get that $B$ and $E$ are also inverse anti-homologous points for $\\omega_1$ and $\\omega_2$. So, the quadrilateral $ADEB$ is cyclic.\nSimilarly, by using the lemma twice for circles $C_1$ and $C_3$, we get that pairs $\\{B, E\\}$ and $\\{C, F\\}$ are inverse anti-homologous points for $\\omega'_1$ and $\\omega'_2$. So the quadrilateral $BEFC$ is also cyclic.\nAccording to the lemma for circle $C_1$, points $B$ and $E$ are direct anti-homologous points for $\\omega'_1$ and $\\omega_2$, and so are $C$ and $D$. Hence, the quadrilateral $BCDE$ is also cyclic.\nBy the last three paragraphs, we deduce that all points $A$, $B$, $\\dots$, $F$ lie on the circumcircle of triangle $BCD$, which we call $C_4$ (checking distinctness of the points is not mentioned here). Now, circles $C_2$, $C_3$ and $C_4$ have a line of symmetry, so their intersections and centers also have a line of symmetry. It follows that $O$, $A$ and $F$ are collinear and the problem is solved.\n**Second Solution.** To prove that $A$, $B$, $\\dots$, $F$ lie on a circle, we can use the following lemma.\n**Lemma 2.** If a circle $\\omega$ is tangent to circles $C_1$ and $C_2$, then the points of tangency are anti-homologous points for $C_1$ and $C_2$. If none of $C_1$ and $C_2$ contains the other and $\\omega$ is tangent to them both internally or both externally, then the points of tangency are direct anti-homologous points. $\\square$\nNote that these lemmas remain true if one of the circles is a line (considered as a circle with infinite radius).\nIf we suppose that interior of $l'$ (considered as a circle) is the half-plane not containing $X$, then according to lemma 2 for circle $\\omega_1'$, points $B$ and $C$ are direct anti-homologous for circles $\\omega_1$ and $l'$. By applying lemma 1 for circle $C_2$, points $A$ and $D$ are also anti-homologous points for $\\omega_1$ and $l'$. Using the fact that the arcs are all in one side of $l$, it is easily seen that $A$ and $D$ are also direct anti-homologous points, so $ABCD$ is a cyclic quadrilateral.\nSimilarly, by considering anti-homologous points for pairs of circles $\\{\\omega_2, \\omega_1'\\}$, $\\{l', \\omega_2'\\}$ we conclude that quadrilaterals $BCDE$ and $CDEF$ are also cyclic, so points $A$, $B$, $C$, $D$, $E$ and $F$ lie on a circle which we call $C_4$.\nThe rest of the proof is the same as the first solution. $\\square$\n**Third Solution.** Define points $A$, $B$, $\\dots$, $F$ and circles $C_1$, $C_2$ and $C_3$ similar to the first solution. We can suppose that $X$ is between $X'$ and $O$, without loss of generality. Thus, $C_1$ and $C_2$ are disjoint and $C_3$ contains both of them. According to lemma 1 and the fact that $\\omega_1$ lies entirely on one side of $l$, points $A$ and $B$ are direct anti-homologous points for $C_2$ and $C_1$. Similarly, $B$ and $C$ are inverse anti-homologous points for $C_1$ and $C_3$ and points $C$ and $D$ are direct anti-homologous points for $C_3$ and $C_2$. Pairs of points $\\{D, E\\}$ and $\\{E, F\\}$ are also anti-homologous in a similar manner as are pairs $\\{A, B\\}$ and $\\{B, C\\}$, respectively.\nOur motivation is that two anti-homologous points are related to each other by an inversion depending only on the two circles. So the problem says that the composition of six particular inversions is the identity. With this intuition in mind, we move all points to $C_1$. Let $A'$, $C'$, $D'$ and $F'$ be points on $C_1$ such that pairs $\\{A, A'\\}$ and $\\{D, D'\\}$ are direct homologous points for circles $C_1$ and $C_2$, and pairs $\\{C, C'\\}$ and $\\{F, F'\\}$ are inverse homologous points for circles $C_1$ and $C_3$, respectively.\nWe have\n$$\nO'D' \\parallel OD \\parallel OC \\parallel O'C'\n$$\nso, $A'D'$ passes through $O'$. The lines $A'B$ and $D'E$ pass through the direct homothetic center of $C_1$ and $C_2$, which lies on $l$. The lines $BC'$ and $EF'$ pass through the inverse homothetic center of $C_1$ and $C_3$, which also lies on $l$. So, by Pascal's theorem for the cyclic hexagon $A'BC'D'EF'$, we conclude that $A'F'$ also passes through $O'$. Hence, we similarly have\n$$\nOA \\parallel O'A' \\parallel O'F' \\parallel OF,\n$$\nso $O$, $A$ and $F$ are collinear and we are done. $\\square$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32623, "subject": "Mathematics (Multi-modal)", "question": "Nonnegative real numbers $p_1, p_2, \\dots, p_n$ and $q_1, q_2, \\dots, q_n$ are given such that\n$$\np_1 + p_2 + \\dots + p_n = q_1 + q_2 + \\dots + q_n.\n$$\nAmong all matrices with nonnegative real entries for which sum of entries of the $i$th row is $p_i$ and sum of entries of the $j$th column is $q_j$, find the maximum value that the trace of the matrix can have.", "options": [], "answer": "min(p_1, q_1) + min(p_2, q_2) + ... + min(p_n, q_n)", "solution": "We use the notation $A$ for matrices and $A_{ij}$ for the entry of row $i$ and column $j$.\n\nFirst, observe that $A_{ii} \\le p_i$, since the sum of the $i$th row is $p_i$ and the entries are nonnegative. Similarly, $A_{ii} \\le q_i$. Thus, $A_{ii} \\le \\min(p_i, q_i)$ and it follows that $\\text{trace}(A) \\le \\min(p_1, q_1) + \\min(p_2, q_2) + \\dots + \\min(p_n, q_n)$. It remains to prove there is a matrix with the property that $A_{ii} = \\min(p_i, q_i)$ for every $1 \\le i \\le n$.\n\nWe proceed by induction on $n$. The case $n=1$ is obvious, since $p_1 = q_1$. Assume the assertion holds for $n=1, 2, \\dots, k$ and consider the case $n=k+1$. We can suppose $q_1 \\le p_1$ without loss of generality. Let $A_{11} = q_1$ and $A_{i1} = 0$ for $2 \\le i \\le n$. We claim that there exist nonnegative real numbers $\\beta_i := A_{1i}$ for $2 \\le i \\le n$ such that these conditions hold:\n$$\n\\sum_{i=2}^{n} \\beta_i = p_1 - q_1, \\\\ \\beta_i \\le q_i - \\min(p_i, q_i) \\text{ for every } 2 \\le i \\le n. \\tag{1}\n$$\nTo verify our claim, first we prove a lemma.\n\n**Lemma.** Let $a, b_1, b_2, \\dots, b_k$ be nonnegative real numbers such that $a \\le b_1 + b_2 + \\dots + b_k$. Then there exist nonnegative real numbers $a_1, a_2, \\dots, a_k$ such that $a_1 + a_2 + \\dots + a_k = a$ and $a_i \\le b_i$ for every $1 \\le i \\le k$.\n\n---\n\n**Proof of lemma.** We use induction on $k$. For $k=1$ the lemma is obvious. If $b_k > a$, we can set $a_1 = a_2 = \\cdots = a_{k-1} = 0$ and $a_k = a$, so suppose that $b_k \\le a$. Let $a_k := b_k$. Now, we must have $a_1 + a_2 + \\cdots + a_{k-1} = a - b_k$. but $a - b_k \\le b_1 + b_2 + \\cdots + b_k - b_k = b_1 + b_2 + \\cdots + b_{k-1}$ and the assertion follows by the induction hypothesis. $\\square$\n\nWe have\n$$\n\\sum_{i=2}^{n} (q_i - \\min(p_i, q_i)) = \\sum_{i=1}^{n} (q_i - \\min(p_i, q_i)) = \\sum_{i=1}^{n} (p_i - \\min(p_i, q_i)) \\\\ \\geq p_1 - \\min(p_1, q_1) = p_1 - q_1.\n$$\nHence, by the lemma we can find nonnegative real numbers $\\beta_2, \\beta_3, \\dots, \\beta_n$ such that equation 1 holds. Let $A_{1i} = \\beta_i$ for $2 \\le i \\le n$. The remaining entries of $A$ should satisfy\n\n* $A_{i2} + A_{i3} + \\cdots + A_{in} = p_i$ for $2 \\le i \\le n$,\n* $A_{2i} + A_{3i} + \\cdots + A_{ni} = q_i - \\beta_i$ for $1 \\le i \\le n$.\n\nWe have $q_i - \\beta_i \\ge \\min(p_i, q_i)$ by equation 1, so $\\min(p_i, q_i - \\beta_i) = \\min(p_i, q_i)$. Hence, the rest of the matrix can be filled using the induction hypothesis. $\\square$\nWe can change the order of $p_1, p_2, \\dots, p_n$ and $q_1, q_2, \\dots, q_n$ arbitrarily by changing corresponding rows and columns of the matrix. So we can suppose $p_1 \\le q_1, p_2 \\le q_2, \\dots, p_k \\le q_k$ and $p_{k+1} \\ge q_{k+1}, \\dots, p_n \\ge q_n$. Let $A_{ii} = \\min(p_i, q_i)$ for $1 \\le i \\le n$. Also let $A_{ij} = 0$ if $i \\ne j$ and either $i \\le k$ or $j > k$. The remaining entries $\\{A_{ij} : i > k, j \\le k\\}$ should satisfy:\n\n* $A_{i1} + A_{i2} + \\cdots + A_{ik} = p_i - q_i$ for $i > k$,\n* $A_{(k+1)i} + \\cdots + A_{ni} = q_i - p_i$ for $i \\le k$.\n\ni.e. we should find a matrix with nonnegative entries for the given row sums and column sums. We can construct such a matrix using induction on the number of rows as follows.\n\nBy the lemma above, we can find $A_{n1}, A_{n2}, \\dots, A_{nk}$ such that their sum is $p_n - q_n$ and $A_{ni} \\le q_i - p_i$ for each $i \\le k$. Then, we delete the $n$'th row and replace $q_i - p_i$ by $q_i - p_i - A_{ni}$ for each $i \\le k$. We can proceed by using induction and the desired matrix will be constructed. $\\square$", "topic": "Algebra", "subtopic": "Linear Algebra" }, { "id": 32624, "subject": "Mathematics (Multi-modal)", "question": "The city of Bridge Village has some highways. Highways are closed curves that have intersections with each other or themselves in 4-way crossroads. Mr. Bridge Lover, mayor of the city, wants to build a bridge on each crossroad in order to decrease the number of accidents. He wants to build the bridges in such a way that in each highway, cars pass above and under a bridge alternatively. By knowing the number of highways determine whether this action is possible or not.", "options": [], "answer": "Possible for any number of highways (always possible).", "solution": "We show that bridges satisfying the problem's conditions can be built no matter what the configuration of the highways is.\nThroughout the solution we denote the highways by $C_1, C_2, \\dots$ and $C_n$ and by $G$ the graph determined by those highways (crossroads are vertices of the graph and highways between two crossroads are edges of the graph).\n\n**Lemma.** *Faces of $G$ can be colored by two colors in a way that the colors of every two adjacent faces is different (Two faces are adjacent if they have an edge in common).*\n\n**Proof of lemma.** We proceed by induction on number of edges of graph $G$. We call a coloring of faces of $G$ satisfying the mentioned property, a *good coloring*. Suppose that $C$ is the shortest path in $G$ that lies in just one highway and assume $C \\subset C_1$. Note that because of minimality, $C$ cannot cross itself, so is a simple curve, therefore dividing the plane into two regions. Now, $C-C_1$ is a closed or maybe an empty curve.\nSuppose that $H$ is the graph consisting of $C-C_1, C_2, \\dots$ and $C_n$. Since the number of edges of $H$ is less than $G$, $H$ has a good coloring according to the induction hypothesis. Now, we add curve $C$ to $H$ and change the color of faces inside $C$. It is very easy to check that this is a good coloring of $G$. The base case is when $G$ is empty. In this case we have only one region which obviously has a good coloring!\n\nFinally consider a good coloring (by colors black and white) for the graph $G$ and an arbitrary orientation for each highway. We have two types of edges. For some edges when we are moving through one (in its specified direction) our right face is white. We call such edges, edges of type 1 and others, edges of type 2. Build a bridge in the way of each edge of type 1.\nNote that in each crossroad exactly two of the edges are directed into the crossroad and only one of those two is of type 1. Hence our construction do not cause any contradictions.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32625, "subject": "Mathematics (Multi-modal)", "question": "Find all coprime natural numbers $a$ and $b$ for which $b.a = \\frac{a}{b}$ (Note that if $a = 92$ and $b = 13$, then $b.a = 13.92$).", "options": [], "answer": "a=5, b=2", "solution": "Let $k$ be the number of digits of $a$. Therefore, $10^{k-1} \\le a < 10^k$. We have $\\frac{a}{b} = b.a = b + \\frac{a}{10^k}$ and consequently $\\frac{a-b^2}{b} = \\frac{a}{10^k}$. Since $(a,b) = 1$, $(a-b^2,b) = 1$; therefore, $\\frac{a-b^2}{b}$ is the irreducible form of $\\frac{a}{10^k}$. Thus, for some natural number $s$, $sb = 10^k$ and $s(a-b^2) = a$.\n\nNow, $a-b^2|a$ and $(a-b^2,a) = 1$. Hence, $a-b^2 = \\pm 1$, but $\\frac{a-b^2}{b} = \\frac{a}{10^k} > 0$, so $a-b^2 = 1$. Therefore, $a = b^2+1$ and $\\frac{1}{b} = \\frac{a}{10^k}$.\n\nSince $a \\ge 10^{k-1}$, we have $\\frac{1}{b} = \\frac{a}{10^k} \\ge \\frac{1}{10}$ which implies $b \\le 10$. On the other hand, $ab = b(b^2+1) = 10^k$, so prime factors of $b$ and $b^2+1$ are only 2 or 5. Since $b \\le 10$, we have $b \\in \\{1, 2, 4, 5, 8, 10\\}$. A simple calculation shows that only for $b = 2$, $b(b^2+1)$ is a power of 10. For this case, $a = 5$ and $k = 1$. Therefore, $\\frac{5}{2} = 2.5$, this is the only solution.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32626, "subject": "Mathematics (Multi-modal)", "question": "Point $O$ is the center of the circumcircle $\\omega$ of the acute-angled triangle $ABC$. A circle centered at $O$ tangent to side $BC$ of the triangle is drawn. Let $X$ and $Y$ be the intersection points of tangents from $A$ to this circle with side $BC$ in such a way that points $X$ and $B$ are on one side of the line $AO$. A line parallel to side $AC$ is drawn from $X$ to intersect the tangent at point $B$ to the circle $\\omega$ at $T$. Similarly, a line parallel to side $AB$ is drawn from $Y$ to intersect the tangent at point $C$ to the circle $\\omega$ at $S$. Prove that line $TS$ is tangent to $\\omega$.", "options": [], "answer": "Detailed solution", "solution": "Let $M$ and $N$ be the feet of the perpendicular lines from $O$ to $BY$ and $AY$, respectively. Since $O$ is a point on the perpendicular bisector of $AB$, we have $OA = OB$ and hence\n$$\nAN^2 = AO^2 - ON^2 = BO^2 - OM^2 = BM^2.\n$$\nSo $BY = BM + MY = AN + NY = AY$ and hence\n$$\n\\angle AYS = \\angle BAY = \\angle ABY = \\angle ACS.\n$$\nTherefore, the quadrilateral $ACYS$ is cyclic and thus $\\angle SAC = 180^\\circ - \\angle BYS = \\angle ABC$. This implies that $SA$ is tangent to $\\omega$. By a similar arguments we can prove that $TA$ is tangent to $\\omega$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32627, "subject": "Mathematics (Multi-modal)", "question": "Let $n$ be a natural number. Permutation $a_1, a_2, \\dots, a_n$ of numbers $1, 2, \\dots, n$ is called square (cubic), if for each natural number $1 \\le i \\le n - 1$, $a_i a_{i+1} + 1$ is a perfect square (cube).\n\na) Prove that for infinitely many natural numbers $n$ there exists at least one square permutation of numbers $1, 2, \\dots, n$.\n\nb) Prove that for no natural number $n$ there exists a cubic permutation of numbers $1, 2, \\dots, n$.", "options": [], "answer": "Detailed solution", "solution": "a) Let $a_1 = 2, a_2 = 4, \\dots, a_k = 2k, a_{k+1} = 1, a_{k+2} = 3, \\dots, a_{2k} = 2k-1$. We can easily check that $a_i a_{i+1} + 1$ is a perfect square for $1 \\le i \\le 2k$ except $i = k$, which can be repaired if $2k+1$ is a perfect square which is possible for infinitely many values of $k$.\n\nb) Let $a_1, a_2, \\dots, a_n$ be a cubic permutation. Let $2^k$ be the largest power of $2$ less than or equal to $n$. By the definition of the cubic permutation we know that $2^k u + 1 = x^3$, where $u$ is an element of the permutation. So we have $2^k u = (x-1)(x^2+x+1)$. Hence we conclude that $2^k | (x-1)$. Because of the way that $k$ is chosen, we have $n < 2^{k+1}$. So we have $2^k \\le x-1 \\le n^{\\frac{2}{3}} < 2^{\\frac{2}{3}(k+1)}$ which is a contradiction. Hence no such permutation exists.", "topic": "Discrete Mathematics", "subtopic": "Combinatorics" }, { "id": 32628, "subject": "Mathematics (Multi-modal)", "question": "Suppose that $x$, $y$ and $z$ are positive real numbers and $x^2 + y^2 + z^2 = x^2 y^2 + y^2 z^2 + z^2 x^2$. Prove that\n$$\n(x - y)^2 (y - z)^2 (z - x)^2 \\le (x^2 - y^2)^2 + (y^2 - z^2)^2 + (z^2 - x^2)^2.\n$$", "options": [], "answer": "Detailed solution", "solution": "Because of the problem's assumption, it is enough to prove that\n$$\n(\\prod (x-y))^2 (\\sum x^2) \\le \\sum (x^2 - y^2)^2 (\\sum (xy)^2).\n$$\nBy Cauchy-Schwarz inequality we have\n$$\n(\\sum xy(x^2 - y^2))^2 \\le \\sum (x^2 - y^2)^2 (\\sum (xy)^2). \\quad (1)\n$$\nOn the other hand, an easy calculation shows that\n$$\n(\\prod (x-y))^2 (\\sum x)^2 = (\\sum xy(x^2 - y^2))^2.\n$$\nFinally, we have\n$$\n(\\prod (x-y))^2 (\\sum x^2) \\le (\\prod (x-y))^2 (\\sum x)^2 = (\\sum xy(x^2 - y^2))^2. \\quad (2)\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32629, "subject": "Mathematics (Multi-modal)", "question": "There are $n$ line segments in the plane such that no two of them intersect with each other and among the $2n$ endpoints of these line segments no three are collinear. Is it always possible to find a simple $2n$-gon such that its vertices are the endpoints of these line segments and also each of these line segments is completely inside or on the perimeter of this $2n$-gon?", "options": [], "answer": "Yes", "solution": "", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32630, "subject": "Mathematics (Multi-modal)", "question": "Points $A_1$ and $A_2$ are the intersection points of the incircle and the angle bisector of vertex $A$ with side $BC$ of triangle $ABC$, respectively. Points $B_1$, $B_2$, $C_1$ and $C_2$ are defined similarly. Suppose that the perpendicular from $A_1$ to line $B_2C_2$ intersects the angle bisector of vertex $A$ in $A'$. Points $B'$ and $C'$ are defined similarly. Prove that the two triangles $A_1B_1C_1$ and $A'B'C'$ are congruent.", "options": [], "answer": "Detailed solution", "solution": "We start by proving a simple lemma.\n\n**Lemma 1.** Let $X'$ be the reflection of the circumcenter of triangle $XYZ$ with respect to side $YZ$. Then $A'$ and $X$ are symmetric with respect to the center of the nine-point circle of triangle $XYZ$.\n\n*Proof.* Let $O$ and $H$ be the circumcenter and orthocenter of triangle $XYZ$, respectively. It is well-known that the center of the nine-point circle is the midpoint of $HO$. On the other hand, it is easy to see that $OX' = XH$ and $OX' \\parallel XH$. So the quadrilateral $XHX'O$ is a parallelogram and the proof is complete. $\\square$\n\nUsing the lemma, it is enough to show that $A'$ and $I$ are symmetric with respect to $B_1C_1$. To prove it, let $A''$ be the reflection of $I$ with respect to $B_1C_1$. We claim that $A'' = A'$. We will show that $A_1A'' \\perp B_2C_2$. By cosine formula in triangles $A_1IB_2$, $A_1IC_2$, $A''IB_1$ and $A''IC_1$, we get:\n$$\nA_1B_2^2 = r^2 + IB_2^2 - 2r \\cdot IB_2 \\cos(90^\\circ + \\frac{\\angle B}{2}), \\quad (1)\n$$\n$$\nA_1C_2^2 = r^2 + IC_2^2 - 2r \\cdot IC_2 \\cos(90^\\circ + \\frac{\\angle C}{2}), \\quad (2)\n$$\n$$\nA''B_2^2 = r^2 + B_1B_2^2 - 2r \\cdot B_1B_2 \\cos(90^\\circ - \\angle A), \\quad (3)\n$$\n$$\nA''C_2^2 = r^2 + C_1C_2^2 - 2r \\cdot C_1C_2 \\cos(90^\\circ - \\angle A), \\quad (4)\n$$\nwhere $r$ indicates the radius of the incircle of triangle $ABC$. Subtracting equations (1) from (2) and (3) from (4) imply\n$$\nA_1B_2^2 - A_1C_2^2 = IB_2^2 - IC_2^2 - 2r\\left(IB_2 \\cos\\left(90^\\circ + \\frac{\\angle B}{2}\\right) - IC_2 \\cos\\left(90^\\circ + \\frac{\\angle C}{2}\\right)\\right), \\\\\nA''B_2^2 - A''C_2^2 = B_1B_2^2 - C_1C_2^2 - 2r\\left(B_1B_2 \\cos\\left(90^\\circ - \\angle A\\right) - C_1C_2 \\cos\\left(90^\\circ - \\angle A\\right)\\right).\n$$\nNote that\n$$\nB_2C_1^2 - B_1C_2^2 = r^2 + B_1B_2^2 - r^2 - C_1C_2^2 = B_1B_2^2 - C_1C_2^2.\n$$\nTherefore, we must show\n$$\nIB_2 \\cos(90^\\circ + \\frac{\\angle B}{2}) - IC_2 \\cos(90^\\circ + \\frac{\\angle C}{2}) = (B_1B_2 - C_1C_2) \\cos(90^\\circ - \\angle A).\n$$\nLet $M$ and $N$ be the perpendicular projections of $B_2$ and $C_2$ on $AC$ and $AB$, respectively. It is easy to see that $\\angle IB_2M = 90^\\circ - \\frac{\\angle B}{2}$ and $\\angle IC_2M = 90^\\circ - \\frac{\\angle C}{2}$. So\n$$\n\\begin{aligned}\nIB_2 \\cos(90^\\circ + \\frac{\\angle B}{2}) - IC_2 \\cos(90^\\circ + \\frac{\\angle C}{2}) &= IC_2 \\cos(90^\\circ - \\frac{\\angle C}{2}) - IB_2 \\cos(90^\\circ - \\frac{\\angle B}{2}) \\\\\n&= (C_2N - r) - (B_2M - r) \\\\\n&= C_2N - B_2M.\n\\end{aligned}\n$$\nOn the other hand, $B_1B_2 - C_1C_2 = AC_2 - AB_2$ and hence\n$$\n(B_1B_2 - C_1C_2) \\cos(90^\\circ - \\angle A) = (AC_2 - AB_2) \\sin(\\angle A) = C_2N - B_2M\n$$\nThis completes the proof.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 32631, "subject": "Mathematics (Multi-modal)", "question": "Does there exist a non-identity function $f: \\mathbb{N} \\to \\mathbb{N}$ that:\nThe number of divisors of $m$ is $f(n)$, if and only if the number of divisors of $f(m)$ is $n$, for each two natural numbers $m$ and $n$.", "options": [], "answer": "Detailed solution", "solution": "The answer is Yes!\nLet $d(n)$ be the number of divisors of natural number $n$. We want to construct $f$ such that for any positive integer $m$, $f(d(f(m))) = d(m)$. Let $A_k = \\{n \\in \\mathbb{N} \\mid d(n) = k\\}$. For example, $A_1 = \\{1\\}$ and $A_2$ is the set of prime numbers. Note that $A_k$ has an infinite number of elements for every $k > 1$, because $p^{k-1} \\in A_k$ for every prime number $p$.\nTo define $f$, set $f(1) = 1$, $f(2) = 2$, $f(3) = 5$ and $f(5) = 3$. For each $n \\ge 4$, suppose that $f(k)$ is defined for $1 \\le k \\le n - 1$. If $f(n)$ is not defined then let $j = f(d(n))$. $j$ is well defined because $d(n) < n$. Let $t$ be the least element of $A_j$ that $f$ has not been defined on it yet, so we have $d(t) = j$. Define $f(n) = t$ and $f(t) = n$.\nTherefore, for each natural number $n$, these properties are gained inductively:\n$$\n\\begin{align*}\nf(d(n)) &= j = d(t) = d(f(n)), \\\\\nf(f(n)) &= n, \\quad f(f(t)) = t, \\\\\nf(d(t)) &= f(j) = f(f(d(n))) = d(n) = d(f(t)).\n\\end{align*}\n$$\nHence for every $m \\in \\mathbb{N}$, we have $f(d(f(m))) = f(f(d(m))) = d(m)$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32632, "subject": "Mathematics (Multi-modal)", "question": "Find all functions $f : \\mathbb{R}^+ \\to \\mathbb{R}^+$ such that for all positive real numbers $x$ and $y$,\n$$\nf\\left(\\frac{y}{f(x+1)}\\right) + f\\left(\\frac{x+1}{x f(y)}\\right) = f(y).\n$$", "options": [], "answer": "f(x) = 1/x for all positive x", "solution": "Let $P(x, y)$ be the assertion $f\\left(\\frac{y}{f(x+1)}\\right) + f\\left(\\frac{x+1}{x f(y)}\\right) = f(y)$.\n\nRewriting the equation, we get $f\\left(\\frac{y}{f(x)}\\right) + f\\left(\\frac{x}{(x-1)f(y)}\\right) = f(y)$ which is valid for each $x > 1,\\ y \\in \\mathbb{R}^+$.\n\nIf there exists $a \\in \\mathbb{R}^+$ for which $f(a) > \\frac{1}{a}$, we get\n$$\nP\\left(\\frac{a f(a)}{a f(a)-1}, a\\right) \\Rightarrow f\\left(\\frac{a}{f\\left(\\frac{a f(a)}{a f(a)-1}\\right)}\\right) = 0,\n$$\nwhich is a contradiction. Therefore, for each $x \\in \\mathbb{R}^+$, $f(x) \\le \\frac{1}{x}$.\n\nNow, we can write\n$$\nP(x > 1, y) \\Rightarrow f(y) = f\\left(\\frac{y}{f(x)}\\right) + f\\left(\\frac{x}{(x-1)f(y)}\\right) \\le \\frac{f(x)}{y} + \\left(1 - \\frac{1}{x}\\right)f(y) \\Rightarrow y f(y) \\le x f(x).\n$$\nSo for all $x, y > 1 \\in \\mathbb{R}^+$, $x f(x) = y f(y)$. Hence for each $x > 1 \\in \\mathbb{R}^+$, $f(x) = \\frac{C}{x}$ where $C$ is a constant number. If we choose real numbers $x, y$ greater than 1 such that $y$ is also greater than $C$, substituting these values for $x$ and $y$ in the equation shows that $C = 1$. Therefore, $\\forall x > 1 \\in \\mathbb{R}^+$, $f(x) = \\frac{1}{x}$.\n\nSince $f(1) \\le 1$, we have\n$$\n\\begin{aligned}\nP(x > 1, 1) &\\Rightarrow f(1) = f\\left(\\frac{1}{f(x)}\\right) + f\\left(\\frac{x}{(x-1)f(1)}\\right) = f(x) + \\frac{x-1}{x}f(1) \\\\\n&\\Rightarrow \\frac{1}{x}f(1) = \\frac{1}{x} \\Rightarrow f(1) = 1.\n\\end{aligned}\n$$\nNow, for $\\frac{1}{2} \\le x < 1$, we can write\n$$\n\\begin{aligned}\nP(2, x) &\\Rightarrow f\\left(\\frac{x}{f(2)}\\right) + f\\left(\\frac{2}{f(x)}\\right) = f(x) \\Rightarrow f(2x) + f\\left(\\frac{2}{f(x)}\\right) = f(x) \\\\\n&\\Rightarrow \\frac{1}{2x} + \\frac{f(x)}{2} = f(x) \\Rightarrow f(x) = \\frac{1}{x}.\n\\end{aligned}\n$$\nIn a similar way, by using induction on $n$ one can prove that for each positive real $x$ in the interval $\\frac{1}{2^n} \\le x < \\frac{1}{2^{n-1}}$, $f(x) = \\frac{1}{x}$. Therefore, for each $x \\in \\mathbb{R}^+$, $f(x) = \\frac{1}{x}$. It's easy to verify that this solution is indeed an answer to the functional equation.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32633, "subject": "Mathematics (Multi-modal)", "question": "Let $I$ be the incenter of triangle $ABC$. $X$ is a point on arc $BC$ of the circumcircle of triangle $ABC$ such that if $E$ and $F$ are the feet of the perpendiculars from $X$ to $BI$ and $CI$, respectively, and $M$ is the midpoint of $EF$, then $MB = MC$. If $D$ is the foot of the perpendicular from $I$ to $BC$, show that $\\angle BAD = \\angle CAX$.", "options": [], "answer": "Detailed solution", "solution": "First, we prove two lemmas.\n\n**Lemma 1.** Let $l_1$ and $l_2$ be two lines and $A$, $B$ and $C$ three points in the plane. Denote by $A_1$ and $A_2$ the perpendicular projections of $A$ on $l_1$ and $l_2$, respectively. Furthermore, let $A'$ be the midpoint of $A_1A_2$. $B'$ and $C'$ are defined similarly. $A$, $B$ and $C$ are collinear if and only if $A'$, $B'$ and $C'$ are collinear.\n\n*Proof.* The key observation is that $\\overrightarrow{A'B'} = \\frac{1}{2}(\\overrightarrow{A_1B_1} + \\overrightarrow{A_2B_2})$ and $\\overrightarrow{B'C'} = \\frac{1}{2}(\\overrightarrow{B_1C_1} + \\overrightarrow{B_2C_2})$. Using these observations and the Thales' theorem, it is easy to check that the assertion is equivalent to the equality $\\frac{A_1B_1}{A_2B_2} = \\frac{B_1C_1}{B_2C_2}$. $\\square$\n\n**Lemma 2.** Let $T$ be the midpoint of arc $BAC$ of the circumcircle of triangle $ABC$. Furthermore, let $H_b$ and $H_c$ be the feet of the perpendicular lines from $T$ to the internal bisectors of $\\angle B$ and $\\angle C$, respectively. If $T'$ is the midpoint of $H_bH_c$, then $T'$ lies on the perpendicular bisector of side $BC$.\n\n*Proof.* Let $N$ be the midpoint of side $BC$. Note that $TH_c \\perp CH_c$ and $TN \\perp BC$, hence the quadrilateral $TH_cNC$ is cyclic and\n$$\n\\angle H_c N B = \\angle H_c T C = 90^\\circ - \\angle T C H_c = \\angle H_c C B + \\angle N T C = 90^\\circ - \\frac{\\angle B}{2}.\n$$\nIt means that $H_cN$ is parallel to the external bisector of $\\angle BAC$. On the other hand, $TH_b$ is also parallel to the external bisector of $\\angle ABC$ and thus $TH_b \\parallel H_cN$. Similarly, $TH_c \\parallel H_bN$. So $TH_cNH_b$ is a parallelogram and hence $T'$, the midpoint of $H_bH_c$, lies on $TN$. But $TN$ is the perpendicular bisector of side $BC$, which is what we desired to prove.\n\n![](attached_image_1.png)\n\nWe will keep using the notations in lemma 2. We will now apply lemma 1, with $IC$, $IB$, $I_a$, $X$ and $M$ playing the roles of $l_1$, $l_2$, $A$, $B$ and $C$, respectively. Since $N$, $M$ and $T'$ are collinear, we obtain that $I_a$, $X$ and $T$ are collinear, too. Now, by an inversion with center $A$ and power $AB \\times AC$ and then a reflection with respect to the internal bisector of angle $\\angle BAC$, $B$ is sent to $C$, $C$ is sent to $B$, $I_a$ is sent to $I$ and $M$ is sent to the foot of the external bisector of $\\angle A$, say $M'$. If $X'$ is the image of $X$ under this transformation, then points $A$, $I$, $X'$ and $M'$ are on a common circle. So $\\angle IX'M' = \\angle IAM' = 90^\\circ$. On the other hand, since the line $BC$ is the image of the circumcircle of triangle $ABC$ under this transformation, $X'$ lies on the line $BC$. This implies that $X' = D$ and thus $\\angle BAD = \\angle CAX$.\n\n![](attached_image_2.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32634, "subject": "Mathematics (Multi-modal)", "question": "Find all polynomials with integer coefficients $P$ such that the set $P(\\mathbb{Z}) = \\{P(a) : a \\in \\mathbb{Z}\\}$ contains an infinite geometric progression.", "options": [], "answer": "All such polynomials are of the form P(x) = s (q x − p)^n, where p, q, s are integers with gcd(p, q) = 1.", "solution": "Suppose that the image of integer numbers under the polynomial $P(x) = a_nx^n + a_{n-1}x^{n-1} + \\dots + a_1x + a_0$ contains an infinite geometric progression with common ratio $a \\in \\mathbb{Z} - \\{0\\}$. For each $b \\in \\mathbb{Z}$ we have\n$$\nP(ax + b) = a_n a^n x^n + (n a_n a^{n-1} b + a_{n-1} a^{n-1}) x^{n-1} + \\dots\n$$\n$$\na^n P(x) = a_n a^n x^n + a_{n-1} a^n x^{n-1} + \\dots + a_0 a^n.\n$$\nWe can find some $b_1, b_2 \\in \\mathbb{Z}$ and $N \\in \\mathbb{N}$ such that for every $x \\ge N$,\n$$\nP(ax + b_2) < a^n P(x) < P(ax + b_1),\n$$\nand for every $x \\le -N$,\n$$\nP(ax + b_2) < a^n P(x) < P(ax + b_1), \\ \\text{or } P(ax + b_1) < a^n P(x) < P(ax + b_2).\n$$\nFor each $P(x)$ in the geometric progression, $aP(x), a^2P(x), \\dots, a^nP(x), \\dots$ are all in $P(\\mathbb{Z})$, hence there exists some $y \\in \\mathbb{Z}$ such that $a^n P(x) = P(y)$. If $|x|$ is sufficiently large (there are infinitely many values of $P(x)$ in the geometric progression), using the above inequalities, $ax + b_1 < y < ax + b_2$. Therefore, $y - ax$ is a constant value between $b_1$ and $b_2$. Hence there exists some constant number $c$ such that the equation $a^n P(x) = P(ax + c)$ has infinitely many solutions and consequently $P(ax + c)$ and $a^n P(x)$ are two equal polynomials.\nNow, our goal is to find all polynomials $P(x) \\in \\mathbb{Z}[x]$ satisfying the equation $a^n P(x) = P(ax + c)$. Let $Q(x) = ax + c$. If $\\alpha$ is a root of $P(x)$, setting $x = \\alpha$ in the equation implies that $P(Q(\\alpha)) = 0$ and hence $Q(\\alpha), Q^2(\\alpha), \\dots$ are all roots of $P$. Since $P(x)$ has a finite number of roots, there are some natural numbers $m_1 > m_2$ such that $Q^{m_1}(\\alpha) = Q^{m_2}(\\alpha)$. This implies $Q^{m_1-m_2}(\\alpha) = \\alpha$, since $Q$ is injective. Note that if $\\beta = \\frac{c}{1-a}$, then $Q(\\beta) = \\beta$ and hence $Q^{m_1-m_2}(\\beta) = \\beta$. On the other hand, $Q^{m_1-m_2}(x) - x$ is a linear polynomial. Therefore, it has at most one root, hence $\\alpha = \\frac{c}{1-a}$ is the only root of $P(x)$. Consequently, $P(x)$ has the form $r(x - \\frac{p}{q})^n = \\frac{r}{q^n}(qx - p)^n$, where $p, q$ and $r$ are three integers such that $(p, q) = 1$.\n$P(x) \\in \\mathbb{Z}[x]$, hence\n$$\n\\frac{r}{q^n} p^n \\in \\mathbb{Z} \\Rightarrow q^n \\mid r p^n \\overset{(q,p)=1}{\\Rightarrow} q^n \\mid r \\Rightarrow \\exists s \\in \\mathbb{Z}; r = q^n s.\n$$\nTherefore, we have $P(x) = s(qx - p)^n$, for some $p, q, s \\in \\mathbb{Z}$ that $(p, q) = 1$.\nWe claim that each polynomial of this form satisfies the problem's condition. It is enough to show that the polynomial $qx - p$ satisfies the property. This is equivalent to showing the existence of a geometric progression whose elements are all congruent to $-p$ modulo $q$. Obviously, $\\{-p(q+1)^m\\}_{m\\ge 0}$ is an example of such progression and this completes our proof.", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 32635, "subject": "Mathematics (Multi-modal)", "question": "The **distance** between two circles $\\omega$ and $\\omega'$ is defined as the length of their common external tangent and is represented as $d(\\omega, \\omega')$. If two circles don't have a common external tangent, the distance between them is not defined. Also, note that a point is a circle with zero radius and that the distance between two circles can be zero.\n\na) **Centroid.** Circles $\\omega_1, \\omega_2, ..., \\omega_n$ are given in the plane where $n$ is a natural number. Prove that a unique circle $\\bar{\\omega}$ exists such that for an arbitrary circle $\\omega$ in that plane, the difference between the square of the distance between $\\omega$ and $\\bar{\\omega}$ and the average of the squares of the distances between $\\omega$ and $\\omega_i$ ($1 \\le i \\le n$) is constant (for those circles $\\omega$ that all these distances are defined). That is,\n$$\n\\forall \\omega : d(\\omega, \\bar{\\omega})^2 - \\frac{1}{n} \\sum_{i=1}^{n} d(\\omega, \\omega_i)^2 = \\text{constant.}\n$$\n$\\bar{\\omega}$ is called the **centroid** of these circles, for it is similar to the centroid of $n$ points in the plane.\n\nb) **Perpendicular bisector.** Suppose that circle $\\omega$ is equidistant from circles $\\omega_1$ and $\\omega_2$. Let $\\omega_3$ be an arbitrary circle whose center is on the centerline of circles $\\omega_1$ and $\\omega_2$ and is tangent to the common external tangent of circles $\\omega_1$ and $\\omega_2$. Prove that \"the distance between $\\omega$ and the centroid of circles $\\omega_1$ and $\\omega_2$\" is not more than \"the distance between $\\omega$ and $\\omega_3$\" (for the case that all these distances are defined).\n\nc) **Circumcenter.** Let $C$ be the set of all circles in the plane that each one of them is equidistant from three fixed circles $\\omega_1, \\omega_2$ and $\\omega_3$. Prove that a fixed point exists in the plane that is the direct homothetic center of each two circles in $C$.\n\nd) **Regular tetrahedron.** Do there exist four circles in the plane for which the distance between any two of them is unity?\n\n150 minutes (→ p.34)", "options": [], "answer": "No", "solution": "Denote by $C(O, R)$ the circle with center $O$ and radius $R$. If $\\omega_1 = C(O_1, R_1)$ and $\\omega_2 = C(O_2, R_2)$, then\n$$\nd(\\omega_1, \\omega_2)^2 = O_1 O_2^2 - (R_1 - R_2)^2,\n$$\nand $d(\\omega_1, \\omega_2)$ is defined if and only if the right hand side is nonnegative. This is equivalent to the existence of the common external tangents of these circles.\n\na) Let $\\omega = C(O, R)$ and $\\omega_i = C(O_i, R_i)$ for $1 \\leq i \\leq n$. We have\n$$\n\\frac{1}{n} \\sum_{i=1}^{n} d(\\omega, \\omega_i)^2 = \\frac{1}{n} \\sum_{i=1}^{n} OO_i^2 + \\frac{1}{n} \\sum_{i=1}^{n} (R - R_i)^2.\n$$\nSuppose that $\\bar{R} = \\frac{1}{n}(R_1 + R_2 + \\dots + R_n)$. Then\n$$\n\\frac{1}{n} \\sum_{i=1}^{n} (R - R_i)^2 = R^2 - 2R\\bar{R} + \\frac{1}{n} \\sum_{i=1}^{n} R_i^2 = (R - \\bar{R})^2 + \\frac{1}{n} \\sum_{i=1}^{n} (\\bar{R} - R_i)^2.\n$$\nSimilarly, let $\\bar{O}$ be the centroid of all the $O_i$'s ($1 \\leq i \\leq n$). Then\n$$\n\\frac{1}{n} \\sum_{i=1}^{n} OO_i^2 = O\\bar{O}^2 + \\frac{1}{n} \\sum_{i=1}^{n} \\bar{O}O_i^2.\n$$\nTherefore, the circle $C(\\bar{O}, \\bar{R})$ satisfies the problems condition. Now, if two circles $\\bar{\\omega}_1 = C(P_1, r_1)$ and $\\bar{\\omega}_2 = C(P_2, r_2)$ both satisfy the problems condition, for each circle $\\omega$ we can write (C is a constant value here):\n$$\n\\begin{align*} d(\\omega, \\bar{\\omega}_1)^2 - d(\\omega, \\bar{\\omega}_2)^2 &= C \\\\ \\Rightarrow \\quad &OP_1^2 - OP_2^2 + (R - r_1)^2 - (R - r_2)^2 = C \\\\ \\Rightarrow \\quad &OP_1^2 - OP_2^2 - 2R(r_1 - r_2) = C \\end{align*}\n$$\nBy fixing $O$, we have $r_1 = r_2$ and hence $OP_1^2 - OP_2^2$ is a constant value. Thus $P_1 = P_2$ and $\\bar{\\omega}_1 = \\bar{\\omega}_2$. Therefore, $\\bar{\\omega} = C(\\bar{O}, \\bar{R})$ is the unique circle satisfying the problems condition.\n\nb) We can write $x_3 = (1 - \\alpha)x_1 + \\alpha x_2$ for some $\\alpha \\in \\mathbb{R}$. Since the distances of $O_1$ and $O_2$ from the common tangent are $R_1$ and $R_2$, respectively, we conclude that the distance of $O_3$ from this line is $|(1 - \\alpha)R_1 + \\alpha R_2|$ (If the number in the absolute value sign is negative, it means that $O_1$ and $O_2$ are in the two sides of that line). So\n$$\nR_3 = |(1 - \\alpha)R_1 + \\alpha R_2|.\n$$\nFurthermore, the centroid of $\\omega_1$ and $\\omega_2$ is $\\bar{\\omega} = C(\\frac{x_1+x_2}{2}, \\frac{R_1+R_2}{2})$. Therefore, putting $\\alpha = \\frac{1}{2}$ in the definition of $\\omega_3$ implies\n$$\n\\begin{aligned}\nd(\\omega, \\omega_1) &= d(\\omega, \\omega_2) \\\\\n&\\Rightarrow OO_1^2 - (R - R_1)^2 = OO_2^2 - (R - R_2)^2 \\\\\n&\\Rightarrow OO_1^2 - OO_2^2 = R_1^2 - R_2^2 - 2R(R_1 - R_2) \\\\\n&\\Rightarrow (x - x_1)^2 - (x - x_2)^2 = R_1^2 - R_2^2 - 2R(R_1 - R_2) \\\\\n&\\Rightarrow 2x(x_1 - x_2) - 2R(R_1 - R_2) = x_1^2 - x_2^2 - R_1^2 + R_2^2.\n\\end{aligned}\n$$\nWe have\n$$\n\\begin{aligned}\nd(\\omega, \\omega_3)^2 &= (x - x_3)^2 + y^2 - (R - R_3)^2 \\\\\n&= (x - ((1 - \\alpha)x_1 + \\alpha x_2))^2 + y^2 - (R - ((1 - \\alpha)R_1 + \\alpha R_2))^2 \\\\\n&= ((x - x_1) + \\alpha(x_1 - x_2))^2 + y^2 - ((R - R_1) + \\alpha(R_1 - R_2))^2.\n\\end{aligned}\n$$\nSuppose that circles $\\omega$, $\\omega_1$ and $\\omega_2$ are fixed and $\\alpha$ varies. We can write $d(\\omega, \\omega_3)^2$ as a polynomial of $\\alpha$ such as $p_2\\alpha^2 + p_1\\alpha + p_0$. We know $p_2 = (x_1 - x_2)^2 - (R_1 - R_2)^2$ is nonnegative because $d(\\omega_1, \\omega_2)$ is defined. Furthermore, the coefficient of $\\alpha$ is\n$$\np_1 = 2(x_1 - x_2)(x - x_1) - 2(R_1 - R_2)(R - R_1).\n$$\nBecause of the relation between $X$ and $R$,\n$$\nx_1^2 - R_1^2 - x_2^2 + R_2^2 - 2x_1(x_1 - x_2) + 2R_1(R_1 - R_2) = -(x_1 - x_2)^2 + (R_1 - R_2)^2.\n$$\nIf $p_1 = p_2 = 0$, $d(\\omega, \\omega_3)$ is independent of $\\alpha$. Otherwise, the minimum value of $d(\\omega, \\omega_3)$ is for $\\alpha = \\frac{1}{2}$ and the assertion is proved.\n\nc) First, note that the radical center of three circles $\\omega_1, \\omega_2$ and $\\omega_3$, as a circle with radius zero is equidistant from these circles (if this point is outside of all the circles). Therefore, we have\n**Lemma 1.** If two circles $C_1$ and $C_2$ are both equidistant from $\\omega_1$ and $\\omega_2$, then the direct homothetic center of $C_1$ and $C_2$ lies on the radical axis of $\\omega_1$ and $\\omega_2$. If two circles $C_1$ and $C_2$ have equal radius then the direct homothetic center of them is not defined. In this case, the line passing through the centers of $C_1$ and $C_2$ is parallel to the radical axis of $\\omega_1$ and $\\omega_2$.\nLet $\\omega_i = C(O_i, R_i)$ and $C_i = C(P_i, r_i)$. We can assume that $O_i = (x_i, 0)$ and $P_i = (a_i, b_i)$. If $(x, 0)$ lies on the radical axis of $\\omega_1$ and $\\omega_2$, then\n$$\n(x - x_1)^2 - R_1^2 = (x - x_2)^2 - R_2^2 \\Rightarrow x = \\frac{x_1^2 - x_2^2 - R_1^2 + R_2^2}{2(x_1 - x_2)}.\n$$\nDenote this value by $c$. We proved in part b that\n$$\n2a_i(x_1 - x_2) - 2r_i(R_1 - R_2) = x_1^2 - R_1^2 - x_2^2 + R_2^2 \\Rightarrow a_i = r_i \\frac{R_1 - R_2}{x_1 - x_2} + c.\n$$\nThe direct homothetic center of $C_1$ and $C_2$ lies on $P_1P_2$ and hence it can be shown that\n$$\nS = \\frac{r_2}{r_2 - r_1} P_1 - \\frac{r_1}{r_2 - r_1} P_2 \\text{ (whenever } r_1 \\neq r_2),\n$$\nso the first coordinate of $S$ is\n$$\n\\frac{r_2 a_1 - r_1 a_2}{r_2 - r_1} = \\frac{1}{r_2 - r_1} \\left[ r_2 \\left( r_1 \\frac{R_1 - R_2}{x_1 - x_2} + c \\right) - r_1 \\left( r_2 \\frac{R_1 - R_2}{x_1 - x_2} + c \\right) \\right] = c.\n$$\nHence $S$ lies on the radical axis of $\\omega_1$ and $\\omega_2$.\nOtherwise, if $r_1 = r_2$, by the above equations we get $a_1 = a_2$ and thus the line passing through the centers of $C_1$ and $C_2$ is parallel to the radical axis of $\\omega_1$ and $\\omega_2$.\n\nd) The answer is no. Let $\\omega_i = C(O_i, R_i)$ and $d_{ij} = |O_i - O_j|$. We assume that $R_1 \\ge R_2 \\ge R_3 \\ge R_4$. According to the problems assumption we must have\n$$\nd_{ij}^2 - (R_i - R_j)^2 = 1.\n$$\nNote that these equations are invariant under addition of a constant number to $R_i$'s ($1 \\le i \\le n$). Therefore, we can suppose that $R_4 = 0$ and $O_4$ lies on the radical axis of $\\omega_1$ and $\\omega_2$. According to the following figure we have:\n$$\n\\begin{aligned} a^2 + x^2 - R_1^2 &= 1, \\\\\n a^2 + y^2 - R_2^2 &= 1, \\\\\n (x + y)^2 - (R_1 - R_2)^2 &= 1. \\end{aligned}\n$$\n\n![](attached_image_1.png)\n\nSubtracting the sum of the first two equations from the third one implies:\n$$\n2xy + 2R_1R_2 + 2 - 2a^2 = 1 \\Rightarrow a = \\sqrt{\\frac{1}{2} + xy + R_1R_2}.\n$$\nOn the other hand, by subtraction of the first equation from the second one we have:\n$$\n\\begin{cases}\nx^2 - y^2 = R_1^2 - R_2^2 \\\\\nx + y = d_{12}\n\\end{cases}\n\\Rightarrow\n\\begin{aligned}\nx - y &= \\frac{R_1^2 - R_2^2}{d_{12}} \\\\\n\\Rightarrow \\{x, y\\} = \\frac{d_{12}}{2} \\pm \\frac{R_1^2 - R_2^2}{2d_{12}} \\\\\n\\Rightarrow xy = \\frac{d_{12}^2}{4} - \\left(\\frac{R_1^2 - R_2^2}{d_{12}}\\right)^2.\n\\end{aligned}\n$$\nHence\n$$\na = \\sqrt{\\frac{1}{2} + \\frac{d_{12}^2}{4} - \\frac{(R_1^2 - R_2^2)^2}{4d_{12}^2} + R_1 R_2}.\n$$\nNow, replacing $R_1$, $R_2$ and $R_3$ by $R_1 - R_3$, $R_2 - R_3$ and 0 yields:\n$$\nb = \\sqrt{\\frac{1}{2} + \\frac{d_{12}^2}{4} - \\frac{((R_1 - R_3)^2 - (R_2 - R_3)^2)^2}{4d_{12}^2} + (R_1 - R_3)(R_2 - R_3)}.\n$$\n![](attached_image_2.png)\n\nThere are two possibilities.\n**Case 1.** $O_3$ and $O_4$ are not on the same side of $O_1O_2$. In this case we have\n$$\nO_3O_4^2 - R_3^2 = 1 \\Rightarrow 1 + R_3^2 = O_3O_4^2 \\geq (a+b)^2 \\geq a^2 + b^2.\n$$\nOn the other hand,\n$$\na^2 > \\frac{1}{2} + R_1 R_2,\n$$\n$$\nb^2 > \\frac{1}{2} + (R_1 - R_3)(R_2 - R_3),\n$$\nso\n$$\nR_3^2 > R_1 R_2 + (R_1 - R_3)(R_2 - R_3) \\Rightarrow (R_1 + R_2)R_3 > 2R_1 R_2.\n$$\nBut this is in contradiction with the assumption that $R_1 \\geq R_2 \\geq R_3$.\n\n**Case 2.** $O_3$ and $O_4$ are on the same side of $O_1O_2$. In this case we have\n$$\n\\begin{aligned}\n1 + R_3^2 &= (a-b)^2 + (x-z)^2 = (a^2+x^2) + (b^2+z^2) - 2ab - 2xz \\\\\n&= 1 + R_1^2 + 1 + (R_1 - R_3)^2 - 2ab - 2xz \\\\\n\\Rightarrow 0 &= 1 + 2R_1^2 - 2R_1R_3 - 2ab - 2xz \\\\\n\\Rightarrow 4ab + 4xz &= 2 + 4R_1(R_1 - R_3).\n\\end{aligned}\n$$\nSubstituting $d_{12}^2 = 1 + (R_1 - R_2)^2$ implies\n$$\na = \\sqrt{\\frac{1}{2} + \\frac{d_{12}^2}{4} - \\frac{(R_1^2 - R_2^2)^2}{4d_{12}^2} + R_1 R_2} = \\sqrt{\\frac{3}{4} + \\frac{(R_1 + R_2)^2}{4} - \\frac{(R_1 - R_2)^2 (R_1 + R_2)^2}{4(1 + (R_1 - R_2)^2)}}\n$$\nSimilarly,\n$$\nb = \\sqrt{\\frac{3}{4} + \\frac{(R_1 + R_2 - 2R_3)^2}{4} - \\frac{(R_1 - R_2)^2 (R_1 + R_2 - 2R_3)^2}{4(1 + (R_1 - R_2)^2)}}\n$$\nDefining\n$$\n\\begin{aligned}\nt &:= R_1 - R_2, \\\\\ns &:= R_1 + R_2 - 2R_3, \\\\\nr &:= R_1 + R_2,\n\\end{aligned}\n$$\nwe have\n$$\n\\begin{aligned}\na &= \\sqrt{\\frac{3}{4} + \\frac{r^2}{4} - \\frac{r^2 t^2}{4(1+t^2)}} = \\sqrt{\\frac{3}{4} + \\frac{r^2}{4(1+t^2)}}, \\\\\nb &= \\sqrt{\\frac{3}{4} + \\frac{s^2}{4(1+t^2)}}.\n\\end{aligned}\n$$\nAlso,\n$$\nxz = \\left(\\frac{d_{12}}{2} + \\frac{R_1^2 - R_2^2}{2d_{12}}\\right) \\left(\\frac{d_{12}}{2} + \\frac{(R_1 - R_3)^2 - (R_2 - R_3)^2}{2d_{12}}\\right) = \\frac{1+t^2}{4} + \\frac{rt}{4} + \\frac{st}{4} + \\frac{rst^2}{4(1+t^2)}.\n$$\nNow, we have:\n$$\n\\begin{aligned}\n4ab + 4xz &= 2 + 4R_1(R_1 - R_3) \\\\\n\\Rightarrow \\sqrt{\\left(3 + \\frac{r^2}{1+t^2}\\right) \\left(3 + \\frac{s^2}{1+t^2}\\right)} + 1 + t^2 + rt + st + \\frac{rst^2}{1+t^2} &= 2 + (r+t)(s+t).\n\\end{aligned}\n$$\nMultiplication by $1+t^2$ and some computations yields:\n$$\n\\sqrt{(3 + 3t^2 + r^2)(3 + 3t^2 + s^2)} = 1 + t^2 + rs,\n$$\nwhich is in contradiction with the Cauchy-Schwarz inequality.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32636, "subject": "Mathematics (Multi-modal)", "question": "Function $f$ is said to **generate** function $g$ (and denote it by $f \\to g$), if $g$ can be written as the composition of function $f$ with itself for several times; i.e., natural number $k$ exists for which $f \\circ f \\circ \\dots \\circ f = g$ ($k$ times).\nWe want to explore some properties of this relation. For example, it can easily be shown that if $f \\to g$ and $g \\to h$, then $f \\to h$. (transitivity)\n\na) Show that two functions $f \\neq g: \\mathbb{R} \\to \\mathbb{R}$ exist for which $f \\to g$ and $g \\to f$.\n\nb) Prove that for each function $f: \\mathbb{R} \\to \\mathbb{R}$ there are a finite number of functions $g: \\mathbb{R} \\to \\mathbb{R}$ for which $f \\to g$ and $g \\to f$.\n\nc) Does a function $g: \\mathbb{R} \\to \\mathbb{R}$ exist such that the only function that generates it is itself?\n\nd) Does there exist a function that generates functions $x^3$ and $x^5$?\n\ne) Prove that if there exists a function that generates two linear polynomials $P$ and $Q$, then there exists a linear polynomial that generates both $P$ and $Q$.", "options": [], "answer": "Detailed solution", "solution": "a) Let\n$$\nf(x) = \\begin{cases} 2 & x = 1 \\\\ 3 & x = 2 \\\\ 1 & x = 3 \\\\ x & x \\notin \\{1, 2, 3\\} \\end{cases} \\qquad g(x) = \\begin{cases} 3 & x = 1 \\\\ 1 & x = 2 \\\\ 2 & x = 3 \\\\ x & x \\notin \\{1, 2, 3\\} \\end{cases}\n$$\nIt is easy to check that $g^2 = f$ and $f^2 = g$.\n\nb) Suppose $g$ is a function that $f \\to g$ and $g \\to f$. It means that there are integers $m$ and $n$ such that $f^m = g$ and $g^n = f$. So $f^{mn} = f$ and $f$ generates at most $mn - 1$ functions. Therefore, there are only a finite number of functions $g$.\n\nc) Define $g: \\mathbb{R} \\to \\mathbb{R}$ as follows:\n$$\ng(x) = \\begin{cases} x + 1 & x \\in \\mathbb{Z} \\\\ x & x \\notin \\mathbb{Z} \\end{cases}\n$$\nLet $f$ be a real function such that $f \\to g$ ($f^k = g$). Note that $g$ is bijective, and hence $f$ is bijective too. If $f(z_0) \\notin \\mathbb{Z}$ for some $z_0 \\in \\mathbb{Z}$, we have:\n$$\nf(z_0) = g(f(z_0)) = f^{k+1}(z_0) = f(g(z_0)) = f(z_0 + 1),\n$$\nwhich leads to a contradiction since $f$ is injective. Hence $f(\\mathbb{Z}) \\subseteq \\mathbb{Z}$. Now, for each integer number $z$ we have:\n$$\nf(z + 1) = f(g(z)) = f^{k+1}(z) = g(f(z)) = f(z) + 1.\n$$\nTherefore, $f(z) = z + t$ for some integer number $t$ and every integer number $z$. Next, for every integer number $z$ we have:\n$$\nz + kt = f^k(z) = g(z) = z + 1 \\Rightarrow kt = 1 \\Rightarrow k = t = 1.\n$$\nTherefore, $f$ must be equal to $g$.\n\nd) If $f^m(x) = x^3$ and $f^n(x) = x^5$ for some $m, n \\in \\mathbb{N}$, then $x^{3n} = f^{mn}(x) = x^{5m}$. Therefore, $3^n = 5^m$. But this equation does not have any solutions in natural numbers.\n\ne) First, we prove a lemma.\n**Lemma 1.** Let $f: \\mathbb{R} \\to \\mathbb{R}$ be a function and $a > b$ two integer numbers such that $f^a$ and $f^b$ are both polynomials of degree 1. Then $f^{a-b}$ is also a polynomial of degree 1.\n*Proof.* $f^{a-b}(x) = f^a \\circ ((f^b)^{-1}(x))$, and the inverse of every polynomial with degree 1 is again a polynomial of degree 1. $\\square$\n\nNow, assume that $f^m = P$, $f^n = Q$ and $(m, n) = d$ for some $m, n, d \\in \\mathbb{N}$. Referring to the lemma and using Euclidean algorithm, $f^d$ is a polynomial of degree 1 that generates both $P$ and $Q$.", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 32637, "subject": "Mathematics (Multi-modal)", "question": "Let $ABC$ be a triangle with circumcircle $\\omega$ and circumcenter $O$. Denote by $M$ the midpoint of that arc $BC$ of $\\omega$ which does not contain vertex $A$. Lines passing through $O$ parallel to $MB$ and $MC$ intersect sides $AB$ and $AC$ at points $K$ and $L$, respectively. If the perpendicular from vertex $A$ to side $BC$ intersects $\\omega$ at point $N$, show that $NK = NL$.", "options": [], "answer": "Detailed solution", "solution": "First, we prove that $KB = LC$.\n\n![](attached_image_1.png)\nLet $F$ and $E$ be the feet of perpendiculars from $K$ and $L$ to $MB$ and $MC$, respectively.\nWe have\n$$\nOK = MB \\Rightarrow KF = \\text{The distance from } O \\text{ to } MB.\n$$\n$$\nOL = MC \\Rightarrow LE = \\text{The distance from } O \\text{ to } MC.\n$$\nSince $MB = MC$, $O$ (circumcenter of triangle $MBC$) is equidistant from these equal chords, and therefore $KF = LE$ (1). On the other hand, since $ABMC$ is cyclic, $\\angle KBF = \\angle LCE$ (2).\n(1) and (2) imply that the two right-angled triangles $KBF$ and $LCE$ are congruent, so their hypotenuses have the same length ($KB = LC$).\nLet $D$ be the midpoint of arc $B\\bar{A}C$. We have\n$$\n\\left. \\begin{array}{l} DB = DC \\\\ \\angle DBA = \\angle DCA \\\\ KB = LC \\end{array} \\right\\} \\Rightarrow \\overset{\\triangle}{DBK} \\equiv \\overset{\\triangle}{DCL} \\Rightarrow \\left\\{ \\begin{array}{l} \\angle KDL = \\angle BDC = \\angle BAC \\\\ KD = LD \\end{array} \\right.\n$$\nSince $\\angle KOL = \\angle BMC$, we deduce that $AKOLD$ is cyclic. Therefore,\n$$\n\\left. \\begin{array}{l} \\angle AKD = \\angle ALD = \\angle AOD = \\angle B - \\angle C \\\\ \\angle KBD = \\angle LCD = \\frac{\\angle B - \\angle C}{2} \\end{array} \\right\\} \\Rightarrow \\angle KDB = \\angle LDC = \\frac{\\angle B - \\angle C}{2} \\\\ \\Rightarrow KB = KD = LD = LC \\text{ (3).}\n$$\n\n![](attached_image_2.png)\n\n$$\n\\left.\n\\begin{aligned}\n\\angle NDK &= \\angle NDB + \\angle BDK = (90^\\circ - \\angle B) + \\left(\\frac{\\angle B - \\angle C}{2}\\right) = \\frac{\\angle A}{2} \\\\\n\\angle NDL &= \\angle NDC - \\angle CDL = (90^\\circ - \\angle C) - \\left(\\frac{\\angle B - \\angle C}{2}\\right) = \\frac{\\angle A}{2}\n\\end{aligned}\n\\right\\}\n$$\n$$\n\\Rightarrow \\angle NDK = \\angle NDL \\quad (4).\n$$\n(3) and (4) imply that two triangles NDK and NDL are congruent. Therefore, we have $NK = NL$.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 32638, "subject": "Mathematics (Multi-modal)", "question": "Let $C$ be a circle and $P$ a point outside of it. $PA$ and $PB$ are the two tangent lines to this circle and point $K$ is chosen arbitrarily on the segment $AB$. The circumcircle of triangle $PBK$ intersects circle $C$ for the second time at $T$. Let $P'$ be the reflection of $P$ with respect to $A$. Show that $\\angle PBT = \\angle P'KA$.", "options": [], "answer": "Detailed solution", "solution": "In this solution, all of the arcs considered are from circle $C$.\n\n![](attached_image_1.png)\nSince quadrilateral $KTPB$ is cyclic, $\\angle AKT = \\angle BPT$.\n$$\n\\left.\n\\begin{array}{l}\n\\angle TAK = \\frac{\\widehat{TB}}{2} = \\angle TBP \\\\\n\\angle AKT = \\angle BPT\n\\end{array}\n\\right\\} \\Rightarrow T'AK \\sim \\widehat{\\Delta} TBP.\n$$\nTherefore,\n$$\n\\frac{TA}{TB} = \\frac{AK}{BP} = \\frac{AK}{AP'} \\Rightarrow \\frac{AP'}{TB} = \\frac{AK}{TA} \\quad (1).\n$$\nOn the other hand,\n$$\n\\left.\n\\begin{array}{l}\n\\angle P'AK = \\frac{\\widehat{AYB}}{2} = \\angle BTA \\\\\n\\hfill (1) \\qquad \\Rightarrow \\quad P'AK \\sim \\widehat{\\Delta} BTA.\n\\end{array}\n\\right\\}\n$$\nSo, $\\angle P'KA = \\angle BAT = \\angle PBT$, and the assertion is proved.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32639, "subject": "Mathematics (Multi-modal)", "question": "Find the maximum number of permutations of the set $\\{1, 2, \\ldots, 2014\\}$ such that for each two distinct numbers $a$ and $b$ of this set, one could find at most one permutation in which $b$ has appeared exactly after $a$.", "options": [], "answer": "2014", "solution": "There are $2014 \\times 2013$ ordered pairs $(a, b)$ such that $1 \\le a \\ne b \\le 2014$. On the other hand, there are $2013$ consecutive pairs in each permutation. Therefore, the number of such permutations is at most $2014$.\n\nConsider the $2014$ permutations of the form\n$$\n\\sigma_i = (2014 + i, 1 + i, 2013 + i, 2 + i, \\ldots, 1007 + i, 1006 + i), \\quad 1 \\le i \\le 2014,\n$$\nwhere all the numbers are considered modulo $2014$ ($2014$ itself being an exception). We claim that for each $a \\ne b$ there is exactly one index $i$ such that $b$ has appeared after $a$ in $\\sigma_i$. To prove it, note that the differences of consecutive terms in all these permutations are\n$$\n(2013, 2, 2011, 4, 2009, 6, \\ldots, 2012, 1),\n$$\nand all the numbers are modulo $2014$. So the position of $b$ and $a$ is uniquely determined by the value of $b-a$ and the index of permutation is uniquely determined by the value of $b$.", "topic": "Discrete Mathematics", "subtopic": "Combinatorics" }, { "id": 32640, "subject": "Mathematics (Multi-modal)", "question": "Simple polygon $A$ with perimeter $p$ is called a **rotund polygon**, if for each two points $x$ and $y$ on the perimeter of $A$ that have a distance of at most $1$ in the plane, their distance on $A$ (i.e. the smaller part of the perimeter of $A$ that lies between them) is at most $\\frac{p}{4}$. We want to prove that a circle with radius $\\frac{1}{4}$ can be drawn entirely inside a rotund polygon.\n\n![](attached_image_1.png)\n\nIntellectuals of the Earth and researchers of the planet **Hot Dog**! have devised two completely different approaches to solve the problem. In both approaches a **chord** is a line segment with its end points lying on the perimeter of the polygon. A **diameter** is a chord with its endpoints being vertices of the polygon. An **inner chord** is a chord that lies entirely inside or on the perimeter of the polygon. The **distance on the perimeter** between two points on the polygon is defined as the length of the smaller part of the perimeter between them.\n\n### The Earth approach: the maximum chord\n\nWe know as a fact that for each polygon, an inner chord $xy$ with a length less than or equal to unity can be found such that for each inner chord $x'y'$ with a length less than or equal to unity, the distance on the perimeter of $x$ and $y$ is greater than or equal to the distance on the perimeter of $x'$ and $y'$. This chord is called **the maximum chord**. In a rotund polygon $A_o$ there are two possibilities for the maximum chord:\n\na) **First possibility:** The length of the maximum chord equals unity. Prove that in this case a semicircle with the maximum chord as its diameter can fit completely inside the polygon $A_o$; therefore, a circle with radius $\\frac{1}{4}$ can be drawn entirely inside the polygon.\n\nb) **Second possibility:** The length of the maximum chord is less than unity. Prove that still in this case one can find a circle with radius $\\frac{1}{4}$ that fits completely inside the polygon $A_o$.\n\nIntellectuals of the Earth thought for many times that they have tackled the problem, but each time they noticed a small flaw in their proof, until they could finally solve it.\n\n### The Hot Dog approach: triangulation\n\nConsider the two statements below:\n\n**First statement:** \"For each arbitrary polygon with edges of at most unity length for which there are no circles of radius $1/4$ that could be fit entirely inside it, it's possible to triangulate it with diameters of at most unit length.\"\n\n**Second statement:** \"For each arbitrary polygon that a circle of radius $1/4$ cannot be fit entirely inside it, it's possible to triangulate it with chords of at most unit length.\"\n\nResearchers of Hot Dog could prove that if the second statement is true, then one can draw a circle of radius $1/4$ completely inside a rotund polygon.\n\nc) Prove that if the second statement is true, then one can draw a circle of radius $1/4$ completely inside a rotund polygon.\n\nThey could easily deduce that if the first statement is true, then the second one is also true. So they announced that a house full of Hot Dogs would be the reward of anyone who could prove the first statement! After a while, a young barber called J.N who considered himself to be from the Earth, succeeded in contradicting the first statement and was rewarded the house, as promised.\n\nd) Construct a 1392-gon that contradicts the first statement.\n\nStill, researchers of Hot Dog have the hope to prove the second statement directly.\n\ne) Write anything that you think might be true about the second statement.", "options": [], "answer": "Detailed solution", "solution": "Throughout the solution the following notations will be used:\n\n$C_1(a, b)$: The smaller part of the perimeter of the polygon which lies between $a$ and $b$.\n\n$C_2(a, b)$: The other part of the perimeter of the polygon joining $a$ and $b$.\n\n$d(a, b)$: The length of $C_1(a, b)$.\n\n$[a, b]$: A chord of the polygon whose end points are $a$ and $b$.\n\na.\nLet $[x, y]$ be the maximum chord of $A_o$ with unit length. Our aim is to show that in this case the semicircle with diameter $[x, y]$, which is on the same side of $[x, y]$ as $C_2(x, y)$, lies entirely inside $A_o$.\n\n**Lemma 1.** $C_2(x, y) \\cap [x, y] = \\{x, y\\}$.\n\n*Proof.* Assume that $z \\in C_2(x, y) \\cap ([x, y] - \\{x, y\\})$. Obviously $[x, z]$ and $[y, z]$ are both inner chords of $A_o$. Note that if $y \\in C_1(x, z)$, then $d(x, z) > d(x, y)$ which is a contradiction since chord $[x, y]$ is maximal, hence $y \\notin C_1(x, z)$. Similarly, $x \\notin C_1(y, z)$. Therefore, $C_1(x, y)$, $C_1(y, z)$ and $C_1(z, x)$ form a partition of the perimeter of $A_o$. This leads to a contradiction because $A_o$ is rotund and $d(x, y)$, $d(y, z)$ and $d(z, x)$ are all less than $\\frac{p}{4}$ and consequently their sum is less than $p$. $\\square$\n\n**Lemma 2.** The common part of $C_2(x, y)$ and edges of $A_o$ that contain $x$ lies outside the semicircle mentioned above. A similar assertion holds for $y$.\n\n*Proof.* Assume to the contrary that $z$ is a point inside that semicircle, and it also lies on the common part of $C_2(x, y)$ and the edge containing $x$ such that $d(x, z)$ is very small. By lemma 1, we can choose $z$ such that $[y, z]$ intersects the perimeter of $A_o$ only at $y$ and $z$. Since $d(x, y) \\le \\frac{p}{4}$ and $z$ is near to $x$, $yxz = C_1(y, z)$ which is a contradiction with the maximality of $[x, y]$. $\\square$\n\n**Lemma 3.** $x$ and $y$ are the only intersection points of $C_2(x, y)$ and the semicircle.\n\n*Proof.* Assume to the contrary that the intersection set is not empty. Let $z$ be a point in this set which has the minimum distance to the segment $[x, y]$. Note that by the above lemmas we know that this minimum is positive. We claim that $[x, z]$ and $[y, z]$ are both inner chords of $A_o$, because if not, there is another point of the polygon inside triangle $xyz$, which contradicts the minimality of $z$.\nRest of the proof is similar to that of lemma 1. $y \\notin C_1(x, z)$ and $x \\notin C_1(y, z)$, so $C_1(x, y)$, $C_1(y, z)$ and $C_1(z, x)$ form a partition of the perimeter of $A_o$, but we know that the length of each one is at most $\\frac{p}{4}$. $\\square$\n\nUsing lemma 3, $C_2(x, y)$ does not intersect the semicircle (except at $x$ and $y$). Therefore, $C_1(x, y)$ does not intersect the semicircle because the polygon is not self-intersecting. Hence the semicircle fits completely inside $A_o$.\n\n\nb.\nLet $[x, y]$ be the maximum chord. Draw semicircles of radius $1$ and centers at $x$ and $y$ such that they are on the same side of line $xy$ as $C_2(x, y)$. We claim that the common part of these two semicircles (say $S$) fits completely inside $A_o$.\n\n**Lemma 4.** $C_2(x, y) \\cap [x, y] = \\{x, y\\}$.\n\n*Proof.* The proof is the same as that one given in part a. $\\square$\n\n**Lemma 5.** The common part of $C_2(x, y)$ and edges of $A_o$ which contain $x$ lies outside of $S$. A similar assertion holds for $y$.\n\n*Proof.* The proof is similar to the proof of lemma 2.\nAssume to the contrary that $z \\in S$ is a point in the common part of $C_2(x, y)$ and the edge containing $x$ such that $d(x, z)$ is very small. By lemma 4, we can choose $z$ such that $[y, z]$ intersects the perimeter of $A_o$ exactly at $y$ and $z$. Since $d(x, y) \\le \\frac{p}{4}$ and $z$ is near $x$, $yxz = C_1(y, z)$ which contradicts the maximality of $[x, y]$. $\\square$\n\n**Lemma 6.** $C_2 \\cap S = \\{x, y\\}$.\n\n*Proof.* Assume to the contrary that there are points other than $x$ and $y$ in this intersection. Let $z$ be a point in this intersection which has the minimum distance from the segment $[x, y]$. By the above lemmas, we know that this minimum is positive. We claim that $[x, z]$ and $[y, z]$ are both inner chords of $A_o$, because if not, there exists another point of the polygon inside triangle $xyz$ which contradicts the minimality of $z$. So $[x, z]$ and $[y, z]$ are both inner chords of $A_o$. But $z$ lies in $S$, therefore the lengths of $[x, z]$ and $[y, z]$ are less than $1$. This implies that $d(x, z)$ and $d(y, z)$ are both less than $\\frac{p}{4}$.\nRest of the proof is similar to lemma 1. $y \\notin C_1(x, z)$ and $x \\notin C_1(y, z)$, so $C_1(x, y)$, $C_1(y, z)$ and $C_1(z, x)$ form a partition of the perimeter of $A_o$, but we know that the length of each one is at most $\\frac{p}{4}$. $\\square$\n\nBy lemma 6, $C_2(x, y)$ does not intersect the region $S$ (except at $x$ and $y$). Therefore, $C_1(x, y)$ does not intersect $S$ because the polygon is not self-intersecting. Hence the region $S$ fits completely inside $A_o$. It is easy to see that a circle with radius $\\frac{1}{4}$ can be drawn entirely inside $S$.\n\n\nc.\nSuppose that there exists a rotund polygon $A$ such that no circle of radius $\\frac{1}{4}$ completely fits inside it. By the second statement, there is a triangulation of the polygon with chords of at most unit length. Let $xy$ be the chord of the triangulation that has the maximum $d(x, y)$. There are two possibilities:\n\n**Case 1.** There is no vertex of $A$ in $C_2(x, y)$ other than $x$ and $y$. Therefore, $[x, y]$ must be an edge of $A$. Hence $C_2(x, y) = [x, y]$ and the length of $C_2(x, y)$ is less than $C_1(x, y)$ because of the triangle inequality which is a contradiction.\n\n**Case 2.** There is another vertex of $A$ in $C_2(x, y)$ other than $x$ and $y$. Therefore, there is some vertex $z \\in C_2(x, y)$ such that $xyz$ forms one of the triangles of the triangulation. Note that if $y \\in C_1(x, z)$, then $d(x, z) > d(x, y)$ and this contradicts the maximality of $[x, y]$. Thus $y \\in C_2(x, z)$ and similarly $z \\in C_2(x, y)$. Therefore, $C_1(x, y)$, $C_2(x, y)$ and $C_3(x, y)$ form a partition of the perimeter of $A$. This is a contradiction because the lengths of all these parts are less than $\\frac{p}{4}$.\n\n![](attached_image_2.png)\n\n\nd.\nIf $\\epsilon$ is sufficiently small, the following polygon is a counterexample for the first statement.\n\n![](attached_image_2.png)\n\n\ne.\n[No specific answer provided.]", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 32641, "subject": "Mathematics (Multi-modal)", "question": "In each unit cell of a $n \\times m$ table an integer number is written. An **diagonal** is formed by those cells of the table for which the difference between their column number and their row number is a constant number. We want to make all the numbers in the table $0$ during a finite number of steps. In each step, we can select a row, a column or a diagonal and add $1$ or $-1$ to the number in every cell of it. Prove that if we can make all the numbers in each $3 \\times 3$ subtable $0$ without altering the rest of the table, then we can make all the numbers in the table $0$.\n\nFor example, in the $5 \\times 9$ table below, cells of a diagonal and also cells of a $3 \\times 3$ subtable are shown. Note that the rightmost upper cell (row $1$, column $9$) is also considered a diagonal.\n\n| | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |\n|---|---|---|---|---|---|---|---|---|---|\n| 1 | | | | | | ♣ | | | |\n| 2 | | ◇ | ◇ | ◇ | | | ♣ | | |\n| 3 | | ◇ | ◇ | ◇ | | | | ♣ | |\n| 4 | | ◇ | ◇ | ◇ | | | | | ♣ |\n| 5 | | | | | | | | | |", "options": [], "answer": "Detailed solution", "solution": "Let $A_{i,j}$ denote the number in the cell located in the $i$-th row and $j$-th column of the table, and $S(i, j)$ the $3 \\times 3$ subtable whose rightmost upper number is $A_{i,j}$.\n\nFirst, assume that $m, n \\ge 3$ (If $m \\le 2$ or $n \\le 2$, there is no $3 \\times 3$ subtable). For $S(i, j)$, consider the following value\n$$\nM(i, j) = A_{i+1,j} - A_{i+2,j} + A_{i+2,j-1} - A_{i+1,j-2} + A_{i,j-2} - A_{i,j-1}.\n$$\n\n![](attached_image_1.png)\n\nNote that if we choose a row, a column or a diagonal of the table and add $1$ or $-1$ to the number in every cell of it, this value stays invariant.\n\nSince we can make all the numbers in each subtable zero, we have\n$$\nM(i, j) = 0 \\quad \\forall\\ 1 \\le i \\le n-2,\\ 3 \\le j \\le m.\n$$\n\nThe assertion is proved by induction on $m+n$. If $m+n=6$, then $m=n=3$ and the assertion is trivial. If $m+n>6$, either $m>3$ or $n>3$. Without loss of generality we can assume that $m>3$. By omitting the last column, we get a $n \\times (m-1)$ table. By the induction hypothesis, we can make the numbers in the cells of this $n \\times (m-1)$ subtable zero, using allowable operations (except for the last column and the diagonal $A_{1,m}$ of the initial table).\n\nNow, the numbers in the last column of the table may be nonzero. Considering the invariant values $M(i,m)$ ($1 \\le i \\le n-2$) implies that $A_{i+1,m} = A_{i+2,m}$ for $1 \\le i \\le n-2$. So $A_{2,m} = A_{3,m} = \\dots = A_{n,m}$. By using the last column several times all the numbers in the table except $A_{1,m}$ may become zero. But $A_{1,m}$ is itself a diagonal, hence we can also make this number zero.\n\nIf $m+n < 6$, where either $m \\le 2$ or $n \\le 2$, the proof is very easy and is left to the reader.", "topic": "Algebra", "subtopic": "Abstract Algebra" }, { "id": 32642, "subject": "Mathematics (Multi-modal)", "question": "A **partial sum** of $n$ real numbers $a_1, a_2, ..., a_n$ is the sum of some of them; that is, $\\epsilon_1 a_1 + \\epsilon_2 a_2 + ... + \\epsilon_n a_n$, where for each $1 \\le i \\le n$, $\\epsilon_i$ is either 0 or 1 and at least one of them is nonzero. Now, having these partial sums, we want to find the numbers.\n\nYears ago a valuable list containing $n$ real (not necessarily distinct) numbers and all their $2^n - 1$ partial sums was shown to the public in a museum. Some strange creatures from the planet Hot Dog (after being defeated in solving the Rotund Polygon problem!) have stolen our original $n$ numbers and the only thing that is left are those $2^n - 1$ partial sums.\n\na) Prove that if all the partial sums are positive, all the stolen numbers can be determined uniquely.\n\nb) Suppose that some of the partial sums are positive and some of them negative, but none of them zero. Prove that still all the stolen numbers can be determined uniquely.\n\nc) Prove that for $n = 1392$, an example can be constructed to show it's not possible to determine all of the stolen numbers uniquely, by only having their $2^n - 1$ partial sums.", "options": [], "answer": "Detailed solution", "solution": "a) Let $a_1 \\le a_2 \\le \\dots \\le a_n$ be the stolen numbers. Since all the partial sums are positive, all the stolen numbers must be positive. Obviously $a_1$ is the smallest number among the partial sums. Suppose that numbers $a_1, a_2, \\dots, a_i$ have been determined. Omit all the partial sums of $a_1, a_2, \\dots, a_i$ from the partial sums of $a_1, a_2, \\dots, a_n$. The smallest number among the remaining numbers, must be $a_{i+1}$, so all the numbers will be determined uniquely.\n\nb) Suppose that $a_1 \\le \\dots \\le a_k < 0 \\le a_{k+1} \\le \\dots \\le a_n$ are the stolen numbers and $s_1 \\le s_2 \\le \\dots \\le s_{2^n-1}$ are the partial sums. Note that if $s_1 > 0$, the problem is already solved in part (a). Therefore, we can assume that $s_1 < 0$. We have\n$$\n(1 + x^{a_1})(1 + x^{a_2})\\cdots(1 + x^{a_n}) = 1 + x^{s_1} + x^{s_2} + \\cdots + x^{s_{2^n-1}}.\n$$\nObviously, $s_1$ is the sum of negative numbers $a_1, a_2, \\dots, a_k$. Multiplying the above equation by $x^{-s_1}$ implies\n$$\n(1+x^{-a_1})\\cdots(1+x^{-a_k})(1+x^{a_{k+1}})\\cdots(1+x^{a_n}) = x^{-s_1}+x^{s_1-s_1}+x^{s_2-s_1}+\\cdots+x^{s_{2^n-1}-s_1}.\n$$\nHence we can say that we have the partial sums of stolen numbers $|a_1|, |a_2|, \\dots, |a_n|$, and by part a, it is possible to find them uniquely.\nFinally, we must show that $x^{s_1}$ can be uniquely written as a product of $x^{a_i}$'s. If there were two ways to do this, we would obtain a partial sum of $a_i$'s equal to 0, which leads to a contradiction.\n\nc) The partial sums of two sets $\\{1, 2, -3\\}$ and $\\{-1, -2, 3\\}$ are the same, so adding 1389 0's to these sets will not change the partial sums.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32643, "subject": "Mathematics (Multi-modal)", "question": "The sequence $\\{a_n\\}_{n=1}^{\\infty}$ of natural numbers satisfies the following relation:\n\n$$\na_{n+2} = \\left\\lfloor \\frac{2a_{n+1}}{a_n} \\right\\rfloor + \\left\\lfloor \\frac{2a_n}{a_{n+1}} \\right\\rfloor,\n$$\nfor which by $\\lfloor x \\rfloor$ we mean the integer part of $x$. Prove that there exists natural number $m$ such that $a_m = 4$ and $a_{m+1} \\in \\{3, 4\\}$.", "options": [], "answer": "Detailed solution", "solution": "First we prove some lemmas.\n\n**Lemma 1.** $a_n \\ge 3$ for all natural numbers $n \\ge 3$.\n*Proof.* Suppose that $a_n < 3$ for some natural number $n \\ge 3$. If $a_{n-1} \\ge a_{n-2}$, then\n$$\n\\frac{2a_{n-1}}{a_{n-2}} \\ge 2 \\Rightarrow \\left[ \\frac{2a_{n-1}}{a_{n-2}} \\right] \\ge 2 \\Rightarrow \\left[ \\frac{2a_{n-2}}{a_{n-1}} \\right] = 0 \\Rightarrow a_{n-1} > 2a_{n-2} \\Rightarrow \\frac{2a_{n-1}}{a_{n-2}} > 4.\n$$\nThis is a contradiction since $a_n < 3$. If $a_{n-2} \\ge a_{n-1}$, the proof is similar to the former case because the recursive relation for $a_n$ is symmetric with respect to both $a_{n-1}$ and $a_{n-2}$. $\\square$\n\n**Lemma 2.** For each natural number $n \\ge 3$,\n$$\na_{n+1} = a_n, \\text{ or } a_{n+2} < \\max\\{a_n, a_{n+1}\\}.\n$$\n*Proof.* Suppose that $a_{n+1} \\ne a_n$ for some $n \\in \\mathbb{N}$. If $a_n = \\max\\{a_n, a_{n+1}\\}$, $\\frac{2a_{n+1}}{a_n} < 2$. On the other hand,\n$$\na_{n+1}, a_n \\ge 3 \\Rightarrow \\frac{2a_n}{a_{n+1}} \\le \\frac{2a_n}{3} \\Rightarrow a_{n+2} = \\left[ \\frac{2a_{n+1}}{a_n} \\right] + \\left[ \\frac{2a_n}{a_{n+1}} \\right] \\le 1 + \\frac{2a_n}{3} \\le \\frac{a_n}{3} + \\frac{2a_n}{3} = a_n.\n$$\n\nNow, if $a_{n+2} \\ge \\max\\{a_n, a_{n+1}\\} = a_n$, the above inequalities will become equalities; therefore, $a_n = a_{n+1} = 3$ which contradicts our assumption $a_n \\ne a_{n+1}$. The case $a_{n+1} = \\max\\{a_n, a_{n+1}\\}$ is proved similarly. $\\square$\n\n**Lemma 3.** *There exists some natural number $k$ such that $a_k = a_{k+1}$.*\n*Proof.* Assume to the contrary that the equality never holds, hence by lemma 2\n$a_{n+2} < \\max\\{a_n, a_{n+1}\\},$\nand\n$a_{n+3} < \\max\\{a_{n+1}, a_{n+2}\\} < \\max\\{a_n, a_{n+1}\\}.$\nTherefore,\n$\\max\\{a_{n+2}, a_{n+3}\\} < \\max\\{a_n, a_{n+1}\\}.$\nThus $\\max\\{a_{2k}, a_{2k+1}\\}$ is a strictly decreasing sequence of natural numbers. But there is no such sequence; therefore, our initial assumption is not true and the lemma is proved. $\\square$\n\nBy lemma 3, there exists some natural number $k \\ge 1$ such that $a_k = a_{k+1}$. This implies that $a_{k+2} = 4$. Now, if $a_k = a_{k+1} \\in \\{3, 4\\}$, then $a_{k+3} \\in \\{3, 4\\}$ and there is nothing left to prove, but if $a_k = a_{k+1} > 4$, there exists some natural number $m$ such that $a_{k+m} = a_{k+m+1}$. Using the proof of lemma 3, we have:\n* If $m$ is odd,\n$$\n\\begin{align*}\na_{k+1} &= \\max\\{a_{k+1}, a_{k+2} = 4\\} > \\max\\{a_{k+3}, a_{k+4}\\} > \\dots \\\\\n&> \\max\\{a_{k+m}, a_{k+m+1}\\} = a_{k+m}.\n\\end{align*}\n$$\n* If $m$ is even,\n$$\n\\begin{align*}\na_{k+1} &= \\max\\{a_{k+1}, a_{k+2} = 4\\} > \\max\\{a_{k+3}, a_{k+4}\\} > \\dots \\\\\n&> \\max\\{a_{k+m-1}, a_{k+m}\\} \\ge a_{k+m}.\n\\end{align*}\n$$\nTherefore, if two equal consecutive terms in the sequence are greater than 4, there is another pair of equal consecutive terms in the sequence with a smaller value. We can continue this until we find two equal consecutive terms less than or equal 4. This completes the proof because the terms after that pair are 4, 3 or 4, 4.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32644, "subject": "Mathematics (Multi-modal)", "question": "Suppose that $I$ is the incenter of triangle $ABC$. The perpendicular to line $AI$ from point $I$ intersects sides $AC$ and $AB$ in points $B'$ and $C'$, respectively. Points $B_1$ and $C_1$ are placed on half-lines $BC$ and $CB$, respectively, in such a way that $AB = BB_1$ and $AC = CC_1$. If $T$ is the second intersection point of the circumcircles of triangles $AB_1C'$ and $AC_1B'$, prove that the circumcenter of triangle $ATI$ lies on the line $BC$.", "options": [], "answer": "Detailed solution", "solution": "Throughout the solution, let $\\omega$ and $\\omega_a$ be the circumcircle of triangle $ABC$ and the excircle of $ABC$ tangent to side $BC$, respectively. Furthermore, $O$ and $I_a$ are the centers of $\\omega$ and $\\omega_a$, respectively.\nUnder an inversion with center $A$ and power $AB \\times AC$, and then a reflection with respect to the bisector of $\\angle BAC$, $B'$ is sent to some point of line $AB$, and $C'$ to some point of line $AC$. Denote by $B''$ and $C''$ these two points, respectively. Note that\n$$\nAB' \\cdot AC'' = AC' \\cdot AB'' = AB \\cdot AC = AI \\cdot AI_a.\n$$\nTherefore, the quadrilaterals $II_aB''C'$ and $II_aC''B'$ are cyclic. Since $\\angle I_aIB' = 90^\\circ$, we get $I_aC'' \\perp AC$ and hence $C''$ is the tangency point of $\\omega_a$ and $AC$. Similarly, $B''$ is the tangency point of $\\omega_a$ and $AB$.\nNow, we are going to find the image of $B_1$ and $C_1$ under the transformation mentioned above. Denote by $M$ and $N$ the midpoints of arcs $ACB$ and $ABC$ of circle $\\omega$, respectively. Then $\\angle BAC_1 = \\angle CAM$. We know that under the transformation, line $BC$ transforms to circle $\\omega$. Hence $C_1$ is sent to $M$. Analogously, $B_1$ is sent to $N$. So $T$ is sent to the intersection point of lines $NC''$ and $MB''$, say $T'$. Note that the tangent to $\\omega$ at $M$ is parallel to the tangent to $\\omega_a$ at $C''$. Thus the direct homothetic center of $\\omega$ and $\\omega_a$, lies on line $NC''$. Denote this point by $T''$. By a similar argument, $T''$ lies on $MB''$ and hence $T'' = T'$ lies on line $OI_a$. This implies that $T'I_a$ is perpendicular to $\\omega$. Since the transformation above preserves angles, we deduce that the circumcircle of $ATI$ (the transformation of $T'I_a$) is perpendicular to $BC$ (the transformation of $\\omega$) and hence the center of this circle lies on the side $BC$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32645, "subject": "Mathematics (Multi-modal)", "question": "The vertices of an $n$-vertex tree are labeled by numbers $1$, $2$, $\\ldots$, $n$. At each stage one can choose an edge that has not been selected before, and switch the labels of its two ends, until all of the edges have been selected. Show that the final permutation of the labels is a complete cycle of $n$ letters.", "options": [], "answer": "Detailed solution", "solution": "We will prove the statement by induction on $n$. Let $e$ be the last edge, with $i$, $j$ as the labels of its vertices. Deleting $e$ divides the tree into two trees with vertices $I = \\{i = i_1, i_2, \\dots, i_k\\}$, $J = \\{j = j_1, \\dots, j_l\\}$ (we denote every vertex by its initial label). By the induction hypothesis, before the last switch the permutation of labels is the product of two cyclic permutations on $I$ and $J$, which after renumbering the indices can be written in the form\n$$\n(i_1i_2\\cdots i_k)(j_1j_2\\cdots j_l).\n$$\nSo the endpoint labels of $e$ before the last operation are $i_2$, $j_2$, and after this operation the permutation of labels becomes\n$$\n(i_2j_2)(i_1\\cdots i_k)(j_1\\cdots j_l) = (i_1j_2j_3\\cdots j_lj_1i_2i_3\\cdots i_k),\n$$\nwhich is a cycle of order $n$.", "topic": "Discrete Mathematics", "subtopic": "Combinatorics" }, { "id": 32646, "subject": "Mathematics (Multi-modal)", "question": "The equation $P(x) = Q(y)$ is called **interesting** if both $P$ and $Q$ are polynomials with integer coefficients and degree at least one and the equation has infinitely many solutions in natural numbers. We say that equation $F(x) = G(y)$ **results** from equation $P(x) = Q(y)$, if polynomial $R$ with rational coefficients exists such that $F(x) = R(P(x))$ and $G(y) = R(Q(y))$.\n\na) Suppose that $S$ is an infinite subset of the set $N \\times N$. We say that $S$ **satisfies** the interesting equation $P(x) = Q(y)$, if each element of it satisfies this equation. Prove that an interesting equation $P_o(x) = Q_o(y)$ exists such that every equation that is satisfied by $S$ (if any), has resulted from the equation $P_o(x) = Q_o(y)$.\n\nb) The degree of an interesting equation is defined as the largest degree between the degrees of both $P$ and $Q$. We call an interesting equation **primitive** if it is not resulted from any other interesting equation with a lesser degree. Prove that if $P(x) = Q(y)$ is a primitive interesting equation and both $P$ and $Q$ are monadic polynomials, then the degrees of $P$ and $Q$ are coprime natural numbers.", "options": [], "answer": "Detailed solution", "solution": "a) First, note that for each $x \\in \\mathbb{N}$ there are at most a finite number of elements of $S$ with first coordinate $x$. Therefore, for each positive number $R$, there are at most a finite number of elements of $S$ with a first coordinate less than $R$. A same assertion is true for the second coordinate.\n\nSuppose that the set of interesting equations that $S$ satisfies is not empty. Let $P_0(x) = Q_0(y)$ be the interesting equation with minimum degree among the interesting equations that are satisfied by an infinite subset of $S$ (by the degree of the equation $P(x) = Q(y)$, we mean $\\deg(P(x) - Q(y))$ as a polynomial with two variables). Denote by $S_0$ the subset of $S$ that satisfies this equation.\n\nSuppose that $P(x) = Q(y)$ is an arbitrary equation that $S$ satisfies. Referring to the division algorithm in polynomials with rational coefficients, there exist rational polynomials $A(x), B(x), C(x)$ and $D(x)$ such that\n$$\nP(x) = A(x)P_0(x) + B(x), \\deg B < \\deg P_0. \\\\\nQ(y) = C(y)Q_0(y) + D(y), \\deg D < \\deg Q_0.\n$$\nDenote by $N$ the least common multiple of the denominators of the coefficients in the polynomials of the above equations. By multiplying these equations by $N$, we get\n$$\nNP(x) = A'(x)P_0(x) + B'(x) \\quad (*) \\\\\nNQ(y) = C'(y)Q_0(y) + D'(y)\n$$\nwhere $A', B', C'$ and $D'$ are polynomials with integer coefficients.\n\nIf $(x_0, y_0) \\in S_0$, there are some integers $a$ and $b$ such that $P(x_0) = Q(y_0) = a$ and $P_0(x_0) = Q_0(y_0) = b$. By subtracting the two equalities in (*) we obtain\n$$\n(A'(x_0) - C'(y_0))b = B'(x_0) - D'(y_0). \\quad (**)\n$$\nOn the other hand, we know that $\\deg B' = \\deg B < \\deg P_0$ and $\\deg D' = \\deg D < \\deg Q_0$. Therefore, there is a real number $R > 0$ such that whenever $|x|, |y| > R$,\n$$\n|B'(x)| < \\frac{1}{2}|P_0(x)|, \\quad |D'(y)| < \\frac{1}{2}|Q_0(y)|.\n$$\nUsing (**) and the triangle inequality, if $|x_0|, |y_0| > R$\n$$\n|A'(x_0) - C'(y_0)| |b| = |B'(x_0) - D'(y_0)| \\leq |B'(x_0)| + |D'(y_0)| < \\frac{1}{2}|b| + \\frac{1}{2}|b| = |b|.\n$$\nThis implies that $A'(x_0) = C'(y_0)$ and $B'(x_0) = D'(y_0)$. We know that except for a finite number of elements of $S_0$, both coordinates of the elements are greater than $R$.\n\nTherefore, the equation $B'(x) = D'(y)$ has infinitely many solutions in $S$. On the other hand, the degree of this equation is less than the degree of the equation $P_0(x) = Q_0(y)$. Hence $B'$ and $D'$ must be constant polynomials. It means that there exists some $c \\in \\mathbb{Z}$ such that $B'(x) = D'(y) = c$. Hence\n$$\nA'(x) = \\frac{NP(x) - c}{P_0(x)}, \\quad C'(y) = \\frac{NQ(y) - c}{Q_0(y)}.\n$$\nNow, if the equation $A'(x) = C'(y)$ is a new interesting equation, we can repeat the above steps for this new equation.\n\nContinuing this process, we see that there is some polynomial $F$ with rational coefficients such that $P(x) = F(P_0(x))$ and $Q(x) = F(Q_0(x))$. This means that the interesting equation $P(x) = Q(y)$ has resulted from the interesting equation $P_0(x) = Q_0(y)$.\n\nb) First, we prove a useful lemma.\n\n**Lemma 1.** Let $P(x) \\in \\mathbb{Z}[x]$ be a monic polynomial and $d$ be a positive integer such that $d|\\deg P$. Show that there exist a natural number $N$ and some polynomials $T(x)$ and $R(x)$ with integer coefficients such that\n$$\nNP(x) = (T(x))^d + R(x),\n$$\nand for sufficiently large values of $x$,\n$$\n(T(x))^d \\leq NP(x) \\leq (T(x) + 1)^d\n$$\n*Proof.* Suppose that $\\deg P = dm$ for some $m \\in \\mathbb{N}$. First, we will find a polynomial $T_1(x) \\in \\mathbb{Q}[x]$ such that $\\deg (P(x) - (T_1(x))^d) < (m-1)d$. To do this, assume that\n$$\nP(x) = x^{md} + a_{md-1}x^{md-1} + \\dots + a_1x + a_0.\n$$\nWe must find rational numbers $b_0, b_1, \\dots, b_{m-1}$ such that for each natural number $m(d-1) \\le i \\le md$, the coefficient of $x^i$ in $(x^m + b_{m-1}x^{m-1} + \\dots + b_1 + b_0)^d$ be $a_i$. We can find $b_i$'s recursively as rational functions of $a_i$'s. Now, let $n$ be the least common multiple of denominators of the coefficients of $T_1$. Define $T_2(x) = nT_1(x)$, $N = n^d$ and $S_2(x) = NP(x) - (T_2(x))^d$. Obviously, $S_2(x), T_2(x) \\in \\mathbb{Z}[x]$ and $\\deg S_2 > (m-1)d$. If the leading coefficient of $S_2$ is positive, set $T(x) = T_2(x)$ and $R(x) = S_2(x)$. Otherwise, if the leading coefficient of $S_2$ is negative, set $T(x) = T_2(x) - 1$ and $S(x) = NP(x) - (T(x))^d$. It is easy to check that these polynomials have the desired properties. $\\square$\n\nSuppose that $d = (\\deg P, \\deg Q)$ for some natural number $d$. Using the lemma, there exist some natural number $N$ and polynomials $U, V, T$ and $R$ with integer coefficients such that\n$$\nNP(x) = (T(x))^d + R(x), \\quad NQ(y) = (U(y))^d + V(y),\n$$\nand for sufficiently large values of $x$ and $y$,\n$$\n(T(x))^d \\leq NP(x) < (T(x) + 1)^d, \\quad (U(y))^d \\leq NQ(y) < (U(y) + 1)^d.\n$$\nNote that if $d > 1$, the degree of the equation $T(x) = U(y)$ is less than the degree of the equation $P(x) = Q(y)$. Furthermore, from the previous inequalities we can deduce that every solution of $P(x) = Q(y)$ is a solution of $T(x) = U(y)$ and by part a these interesting equations are both resulted from a common interesting equation with a degree less than the degree of $P(x) = Q(y)$. This contradicts the assumption of $P(x) = Q(y)$ being primitive. Hence $(\\deg P, \\deg Q) = d = 1$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32647, "subject": "Mathematics (Multi-modal)", "question": "Let $D$ be a variable point on side $BC$ of triangle $ABC$. The incenters of triangles $ABC$, $ABD$ and $ACD$ are $I$, $I_1$ and $I_2$, respectively. Points $M$ and $N$ are the second intersection points of circumcircles of triangles $IAI_1$ and $IAI_2$ with the circumcircle of triangle $ABC$, respectively. Prove that as $D$ varies on side $BC$, line $MN$ passes through a fixed point in the plane.", "options": [], "answer": "Detailed solution", "solution": "First, note that the circumcircles of triangles $AII_1$ and $AII_2$ are perpendicular, because\n$$\n\\angle AI_1I + \\angle AI_2I = \\frac{\\angle B + \\angle BAD}{2} + \\frac{\\angle C + \\angle CAD}{2} = 90^\\circ\n$$\nUnder an inversion with center $A$ and power $AB \\times AC$ and then a reflection with respect to the bisector of $\\angle BAC$, pairs $(B, C)$ and $(I, I_a)$ are mapped to each other. Let $M'$ and $N'$ be the image of $M$ and $N$ under this transformation, respectively. Circumcircles of $AI_1I$ and $AI_2I$ (which pass through the center of inversion) are mapped to lines $I_aM'$ and $I_aN'$. It is obvious that in this transformation, the circumcircle of triangle $ABC$ and the line $BC$ are mapped to each other, so $M'$ and $N'$ are on the line $BC$. Now, the assertion becomes equivalent to proving that the circumcircle of $AM'N'$ passes through some constant point other than $A$ as $D$ varies.\n\nSince inversion and reflection both preserve the angles, we have $I_aM' \\perp I_aN'$. If $X$ is the foot of the perpendicular line from $I_a$ to $BC$, then the power of $X$ with respect to this circle is $M'X \\cdot N'X = I_aX^2$ which is constant as $D$ varies. Therefore, the power of $X$ with respect to the circumcircle of $AM'N'$ is constant. Hence $X$ lies on the radical axis of these circles and another point on the line $AX$ is the common point of all these circles.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32648, "subject": "Mathematics (Multi-modal)", "question": "Suppose that $A_1A_2A_3A_4A_5$ is a convex pentagon in the cartesian plane with all its vertices having rational coordinates. For each $1 \\le i \\le 5$, define $B_i$ as the intersection point of the extensions of the sides $A_{i+1}A_{i+2}$ and $A_{i+3}A_{i+4}$ (the vertices of the pentagon are numbered in a cyclic manner, i.e for each $1 \\le i \\le 5$, $A_i = A_{i+5}$). Prove that at most three of the lines $A_iB_i$, $1 \\le i \\le 5$, are concurrent.", "options": [], "answer": "Detailed solution", "solution": "First, note that if $(x_1, y_1)$ and $(x_2, y_2)$ are two points with rational coordinates, then the equation of the line passing through them in the cartesian coordinates is\n$$\n\\frac{y - y_1}{x - x_1} = \\frac{y_2 - y_1}{x_2 - x_1}.\n$$\nTherefore, the equation of this line can be written using only rational numbers. We will call such lines a rational line. It is easy to see that the intersection point of two rational lines has rational coordinates. Furthermore, the ratio of the lengths of two line segments with rational end points is a rational number. Consequently, every four collinear points with rational coordinates have a rational cross ratio.\n\nAssume to the contrary that $A_1A_2A_3A_4A_5$ is a rational pentagon that at least four lines from the lines $A_iB_i$ are concurrent. Without loss of generality, we can assume these four lines are $A_iB_i$ for $1 \\le i \\le 4$. We will use the notation given in the following figure.\n\n![](attached_image_1.png)\n\nLet $\\lambda = (B_1A_3, A_2B_4)$. According to the figure we have\n$$\n\\begin{aligned}\n\\lambda = (B_1A_3, A_2B_4) &= (B_1B_4, A_2U) && (\\text{Projection from } O) \\\\\n\\lambda = (B_1A_3, A_2B_4) &= (A_5Z, A_1B_4) && (\\text{Projection from } B_3) \\\\\n&= (UA_3, B_1B_4) && (\\text{Projection from } O) \\\\\n&= (B_1B_4, UA_3)\n\\end{aligned}\n$$\nUsing the properties of cross ratio we get\n$$\n\\lambda^2 = (B_1B_4, A_2U)(B_1B_4, UA_3) = (B_1B_4, A_2A_3) = \\frac{\\lambda}{\\lambda - 1}\n$$\nHence $\\lambda$ is a root of the equation $x^2 = x + 1$ that has no rational root. We assumed that points $A_i$, $1 \\le i \\le 5$, have rational coordinates. Therefore, all the lines and points in the figure are rational. Furthermore, every four collinear points with rational coordinates have a rational cross ratio. Consequently, $\\lambda = (B_1A_3, A_2B_4)$ must be rational which is a contradiction since $\\lambda^2 = \\lambda + 1$. Therefore, at most three of the lines $A_iB_i$ are concurrent.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32649, "subject": "Mathematics (Multi-modal)", "question": "Prove that for each natural number $k > 1$, only a finite number of $k$-tuples of consecutive natural numbers exist such that their product is a perfect square.", "options": [], "answer": "Detailed solution", "solution": "If $k$ is even, using the lemma proved in the solution of the 7th problem of the Third Round, we can say that there exist an integer $a$ and some polynomial $Q(x) \\in \\mathbb{Z}[x]$ such that\n$$\n(Q(x))^2 \\le a^2(x+1)(x+2)\\cdots(x+k) < (Q(x)+1)^2, \\quad \\text{for large values of } x.\n$$\nSince $Q(x)$ is a perfect square for infinitely many values of $x$, we get\n$$\n(Q(x))^2 = a^2(x+1)(x+2)\\cdots(x+k).\n$$\nThis is a contradiction since $a^2(x+1)(x+2)\\cdots(x+k)$ does not have any multiple roots.\n\nFor odd values of $k$, we claim that if $\\prod_{i=1}^k (a+i)$ is a perfect square, there is some nonempty proper subset $A$ of $\\{1, 2, \\dots, k\\}$ such that $\\prod_{i \\in A} (a+i)$ is a perfect square. To prove the claim, consider all of the subsets of $S = \\{a+1, a+2, \\dots, a+k\\}$.\n\nFor any subset $A$ of $S$, let $F(A)$ be the product of elements of $A$ ($F(\\emptyset) = 1$) and let $g(A)$ be the square free part of $F(A)$.\n\nNote that all of the prime divisors of $g(\\{a+1\\}), g(\\{a+2\\}), \\dots, g(\\{a+k\\})$ are less than $k$, because if some prime number $p \\ge k$ divides two of the numbers $g(\\{a+1\\}), g(\\{a+2\\}), \\dots, g(\\{a+k\\})$, for example $p|a+i$ and $p|a+j$, we obtain $p|j-i$ and hence $p < k$. If for some $i, 1 \\le i \\le k, p$ divides only $g(\\{a+i\\})$, this leads to a contradiction because $g(S) = 1$ is a perfect square, and the power of $p$ in the factorization of $\\prod_{i=1}^k a + i$ should be even.\n\nFor any $A \\subseteq S$, $g(A)|g(\\{a+1\\})g(\\{a+2\\})\\cdots g(\\{a+k\\})$ and so the prime divisors of all $g(A)$'s are less than $k$. This implies that for each $A \\subseteq S$, $g(A)$ is a divisor of $2 \\times 3 \\times \\cdots \\times p_{\\pi(k-1)}$. So we have $2^{\\pi(k-1)}$ cases for $g(A)$.\n\nSince $k-1 > \\pi(k-1)$, $2^k > 2 \\times 2^{\\pi(k-1)}$. This implies that there are two subsets $A, B \\subseteq S$ such that $A \\ne B, S-B$ and $g(A) = g(B)$ (note that $g(A) = g(S-A)$ because $g(S) = 1$). Now, $g(A) = g(B)$, therefore $F(A)F(B)$ is a perfect square. We have\n$$\nF(A)F(B) = F(A \\cap B)^2 F(A\\Delta B).\n$$\nHence $F(A\\Delta B)$ is a perfect square. But $A\\Delta B \\ne \\emptyset, S$ since $A \\ne B, S-B$, and this is the desired subset.\n\nBy replacing $A\\Delta B$ with $S - A\\Delta B$ if necessary, we will get a nonempty proper subset $X$ of $\\{1, 2, \\dots, k\\}$ with an even number of elements such that $\\prod_{i \\in X} (x + i)$ is a perfect square. Using the lemma in the solution of the 7th problem of the Third Round again, this product can be a perfect square for at most a finite number of values of $x$. Thus if $k$ is odd, then $(x+1)(x+2)\\cdots(x+k)$ is a perfect square for at most a finite number of values of $x$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32650, "subject": "Mathematics (Multi-modal)", "question": "A local supermarket is responsible for the distribution of $100$ supply boxes. Each box is ought to contain $10$ kilograms of rice and $30$ eggs. It is known that a total of $1000$ kilograms of rice and $3000$ eggs are in these boxes, but in some of them the amount of either item is more or less than the amount required. In each step, supermarket workers can choose two arbitrary boxes and transfer any amount of rice or any number of eggs between them. At least how many steps are required so that, starting from any arbitrary initial condition, after these steps the amount of rice and the number of eggs in all these boxes is equal?", "options": [], "answer": "99", "solution": "The answer is $99$. First consider the initial condition that all of eggs are in just one of boxes. In each step, we can transfer eggs to at most one new box and so we need at least $99$ steps. We claim that $99$ steps is always enough. For this end, we call a box containing exactly $30$ eggs and $10$ kilograms of rice a *good box*, and a box which is not good a *bad box*! In each step, consider one of bad boxes containing the most number of eggs and one of bad boxes containing the most amount of rice. If these two boxes were the same, consider another arbitrary bad box (note that if all other boxes were good, this box also must be good and there is nothing to prove). Evidently, we have at least $30$ number of eggs and $10$ kilograms of rice in these two boxes. So by transferring eggs and rice between them, we can make one of them a good box. Therefore, after $99$ steps we have at least $99$ good boxes and so the last box is also good and we are done.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32651, "subject": "Mathematics (Multi-modal)", "question": "Find all polynomials $P(x)$ and $Q(x)$ with rational coefficients such that\n$$\nP(x)^3 + Q(x)^3 = x^{12} + 1.\n$$", "options": [], "answer": "The only solutions are P(x) = x^4, Q(x) = 1 and P(x) = 1, Q(x) = x^4.", "solution": "We have $x^{12} + 1 = (x^4 + 1)(x^8 - x^4 + 1)$. It is easy to check that these two factors are irreducible in $\\mathbb{Z}[x]$ (or equivalently in $\\mathbb{Q}[x]$). On the other hand, $P^3 + Q^3 = (P+Q)(P^2-PQ+Q^2)$. Therefore, our goal is to find $P$ and $Q$ such that $(P+Q)(P^2-PQ+Q^2) = (x^4+1)(x^8-x^4+1)$. Irreducibility of $x^4+1$ and $x^8-x^4+1$ imply\n* $x^4 + 1$ divides $P + Q$ or $P^2 - PQ + Q^2$.\n* $x^8 - x^4 + 1$ divides $P + Q$ or $P^2 - PQ + Q^2$.\nSo we have four cases\n* $P + Q = 1$ and $P^2 - PQ + Q^2 = x^{12} + 1$.\n$$\n1 - 3PQ = (P+Q)^2 - 3PQ = P^2 - PQ + Q^2 = 1 + x^{12} \\Rightarrow 3P(1-P) = -x^{12}\n$$\nSo zero is the unique root of both $P$ and $1-P$ which is impossible.\n* $P + Q = x^{12} + 1$ and $P^2 - PQ + Q^2 = 1$. Same as the previous part, we get $3PQ = x^{12}(x^{12} + 2)$. So $P(0) = 0$ or $Q(0) = 0$, but at most one of them can be zero because $P + Q = x^{12} + 1$. Because of symmetry we assume that $P$ is divisible by $x^{12}$. Now since $3PQ = x^{12}(x^{12} + 2)$, we conclude $\\deg(Q) \\le 12$. If $\\deg(Q) < 12$, then degree of $P$ must be greater than 12 and so we cannot have $P + Q = x^{12} + 1$. Therefore, $\\deg(P) = \\deg(Q) = 12$. Hence, there must be rational numbers $a$ and $b$ such that $P(x) = a x^{12}$ and $Q(x) = b(x^{12} + 2)$. So $P + Q = (a + b)x^{12} + 2b = x^{12} + 1$. Thus, $a = b = \\frac{1}{2}$. This is not possible because $3PQ = 3abx^{12}(x^{12} + 2) = \\frac{3}{4}x^{12}(x^{12} + 2) \\neq x^{12}(x^{12} + 2)$. Hence, there is no solution in this case.\n* $P + Q = x^8 - x^4 + 1$ and $P^2 - PQ + Q^2 = x^4 + 1$. In this case we have $3PQ = x^4(x^{12} - 2x^8 + 3x^4 - 3)$ and by arguments similar to the previous part, we deduce that $\\deg(P) = \\deg(Q) = 8$. Let $p$ and $q$ be the leading coefficients of $P$ and $Q$, respectively. We have\n$$\n\\begin{aligned}\nP + Q &= x^8 - x^4 + 1 & \\Rightarrow p + q &= 1 \\\\\n3PQ &= x^4(x^{12} - 2x^8 + 3x^4 - 3) & \\Rightarrow pq &= \\frac{1}{3}\n\\end{aligned}\n$$\nBut $4pq = \\frac{4}{3} > 1 = (p+q)^2$ and so $p$ and $q$ are not real numbers. Thus, we do not have any solutions in this case.\n* $P+Q = x^4+1$ and $P^2-PQ+Q^2 = x^8-x^4+1$. We get $PQ = x^4$. Note that again we cannot have $P(0) = Q(0) = 0$, because $P(0) + Q(0) = 1$. So we can assume that for example $P$ is divisible by $x^4$ and so $Q$ is a constant polynomial. Suppose that $P(x) = p x^4$ and $Q(x) = q$ ($p, q \\in \\mathbb{Q}$). Now since $P + Q = p x^4 + q = x^4 + 1$ we get $p = q = 1$. This leads to the solution $P(x) = x^4$ and $Q(x) = 1$. $P(x) = 1$ and $Q(x) = x^4$ is another solution.", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 32652, "subject": "Mathematics (Multi-modal)", "question": "Let $ABC$ be an acute-angled triangle. Point $Z$ on the altitude of vertex $A$ and points $X$ and $Y$ on the extensions of the altitudes of vertices $B$ and $C$ are selected such that,\n$$\n\\angle AYB = \\angle BZC = \\angle CXA = 90^\\circ.\n$$\nProve that $X$, $Y$ and $Z$ are collinear if and only if the length of the tangent from vertex $A$ to the nine-point circle of the triangle is equal to the sum of the lengths of tangents from vertices $B$ and $C$ to this circle.", "options": [], "answer": "Detailed solution", "solution": "We denote the feet of altitudes of vertices $A$, $B$ and $C$ by $D$, $E$ and $F$, respectively. Firstly, we prove that if $X$, $Y$ and $Z$ are collinear then the length of the tangent from $A$ to the nine-point circle of triangle $ABC$ (which we denote by $\\omega$) is equal to the sum of the lengths of tangents from vertices $B$ and $C$ to this circle.\n$$\nP_{\\omega}^{A} = \\frac{1}{2}AE \\cdot AC = \\frac{1}{2}AF \\cdot AB = \\frac{1}{2}AX^{2} = \\frac{1}{2}AY^{2}\n$$\nSo the length of the tangent from $A$ to $\\omega$ is $\\frac{\\sqrt{2}}{2}AX = \\frac{\\sqrt{2}}{2}AY$. Similarly, the lengths of tangents from vertices $B$ and $C$ are equal to $BY$ and $CX$, respectively. If $X$, $Y$ and $Z$ lie on a common line we have $YZ + ZX = YX$ and $\\angle XZC + \\angle YZB = 90^\\circ$ (1). Since $CX^2 = CE \\cdot CA = CD \\cdot CB = CZ^2$, we get $CX = CZ$. In the same manner, we infer $AX = AY$ and $BY = BZ$. Using (1) we can deduce $\\angle XCZ + \\angle ZBY = 180^\\circ$. The quadrilateral $FZCB$ is cyclic and so $\\angle ABZ = \\angle FCZ$. Therefore,\n$$\n\\angle YBA + \\angle FCX = 90^\\circ \\Rightarrow \\angle YBA + (90^\\circ - \\angle A) + \\angle ACX = 90^\\circ\n$$\nThus, $\\angle YAX = 90^\\circ$ and so $\\angle AXY = 45^\\circ$. From these results, we get $\\angle ZBY = \\angle ZCX = 90^\\circ$. Hence, $\\sqrt{2}YB + \\sqrt{2}CX = \\sqrt{2}AX$ and so $YB + CX = AX$, which is what we wanted to show.\n\nFor the converse we present the following lemma.\n\n**Lemma 1.** Let $C_1$ and $C_2$ be two perpendicular circles meeting each other at two points $A$ and $B$. Then, There are exactly two points like $T$ on the line $AB$ satisfying the following property. If $TY$ and $TX$ are tangents from $T$ to $C_1$ and $C_2$, respectively, such $Y$ and $X$ are in two different sides of $AB$. We have $A$, $Y$ and $X$ are on a common line. Furthermore, these two points are symmetric with respect to the line of centers of $C_1$ and $C_2$ and power of them with respect to $C_1$ and $C_2$ are both equal to $(R_1 + R_2)^2$, where $R_i$ is the radius of $C_i$.\n\n*Proof.* First note that if the point $T$ has this property, we have\n$$\n\\frac{1}{2} \\hat{A}Y = \\angle TYA = \\angle TYX = \\angle TXY = \\angle TXA = \\frac{1}{2} \\hat{A}X\n$$\nAnd since $\\angle O_1AO_2 = 90^\\circ$ ($O_i$ is the center of $C_i$), we get\n$$\n\\hat{A}Y = \\hat{A}X = \\frac{1}{2}\\hat{A}Y + \\frac{1}{2}\\hat{A}X = \\angle XAO_2 + \\angle YAO_1 = 180^\\circ - \\angle O_1AO_2 = 90^\\circ\n$$\nSo we must have $\\hat{A}Y = \\hat{A}X = 90^\\circ$.\n\nNow for the existence of such $T$, consider points $Y$ and $X$ on $C_1$ and $C_2$, respectively, such that $\\hat{A}Y = \\hat{A}X = 90^\\circ$. Note that we can choose such points in a unique way in one side of $O_1O_2$. It is easy to see $Y$, $A$ and $X$ are collinear. Therefore, if $T$ is the intersection point of the tangent to $C_1$ at $Y$ and the tangent to $C_2$ at $X$, we infer\n$$\n\\angle TYX = \\hat{Y}A = \\hat{X}A = \\angle TXY\n$$\nSo $TY = TX$. Thus, $T$ lies on the radical axis of $C_1$ and $C_2$. On the other hand, in the hexagon $TXO_2AO_1Y$ we have\n$$\n\\angle TYO_1 = \\angle YO_1A = \\angle O_1AO_2 = \\angle AO_2X = \\angle O_2XT = 90^\\circ\n$$\nHence, $\\angle YTX = 90^\\circ$, and obviously $TX = AO_2 + YO_1 = R_2 + R_1$, as desired. $\\square$\n\nNow for the main problem note that circle $\\omega_1$ with center $B$ and radius $BZ$ is perpendicular to the circle $\\omega_2$ with center $C$ and radius $CZ$, because $\\angle BZX = 90^\\circ$. Furthermore, since $\\angle AYB = \\angle AXC = 90^\\circ$, $AY$ is tangent to $\\omega_1$ at $Y$ and $AX$ is tangent to $\\omega_2$ at $X$. On the other hand $AY = AX = BY + CX$, so according to the lemma the point having this property is unique in one side of $BC$. Therefore, again by lemma $X$, $Y$ and $Z$ are collinear.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 32653, "subject": "Mathematics (Multi-modal)", "question": "Permutation $(a_1, a_2, \\dots, a_n)$ of the set $\\{1, 2, \\dots, n\\}$ is called **messy** if for any three indices $1 \\le i < j < k \\le n$, $a_i + a_k - 2a_j$ is not divisible by $n$. Find all natural numbers $n \\ge 3$ for which there exists a messy permutation of the set $\\{1, 2, \\dots, n\\}$.", "options": [], "answer": "All n of the form 2^t with t ≥ 2", "solution": "We claim that there exists a messy permutation of $\\{1, 2, \\dots, n\\}$ if and only if $n$ is a power of $2$.\n\nFirst suppose that there is some messy permutation $(a_1, a_2, \\dots, a_n)$ of $\\{1, 2, \\dots, n\\}$. There must be some $j$ such that $a_j \\equiv 2a_2 - a_1 \\pmod{n}$. If $j \\ge 3$, then $n \\mid a_j + a_1 - 2a_2$, which contradicts because we have assumed that the permutation is messy. If $j = 2$, then $a_2 \\equiv a_1 \\pmod{n}$ which is not possible. So $j = 1$ and $2a_2 \\equiv 2a_1 \\pmod{n}$. Now if $n$ is odd, we get $a_2 \\equiv a_1 \\pmod{n}$, which is again impossible. Therefore, we get there is no messy permutation for odd values of $n$.\n\nOn the other hand, suppose that $(a_1, a_2, \\dots, a_n)$ is a messy permutation and $d$ is a divisor of $n$. Set $m = \\frac{n}{d}$. We remove the numbers in the permutation which are not divisible by $m$ to get $(a_{i_1}, a_{i_2}, \\dots, a_{i_d})$ where $m \\mid a_{i_j}$ for each $j$. Now $(\\frac{a_{i_1}}{m}, \\frac{a_{i_2}}{m}, \\dots, \\frac{a_{i_d}}{m})$ is a permutation of $\\{1, 2, \\dots, d\\}$ modulo $d$. We claim that this permutation is messy. Assume to the contrary, there are $p < q < r$ among $i_k$'s such that $d \\mid \\frac{a_p}{m} + \\frac{a_r}{m} - 2\\frac{a_q}{m}$. This implies $n = dm \\mid a_p + a_r - 2a_q$, which is impossible because the first permutation was assumed to be messy.\n\nTherefore, if there is a messy permutation for some integer $n$, $n$ is not divisible by an odd number other than $1$ and so $n$ must be a power of $2$.\n\nFinally, we construct a messy permutation of $\\{1, 2, \\dots, 2^t\\}$ by induction on $t$. Obviously, $\\{1, 3, 2, 4\\}$ is a messy permutation for $t = 2$. Suppose that $(a_1, a_2, \\dots, a_{2^t})$ is a messy permutation for $n = 2^t$. Now consider the sequence\n$$\n(b_1, \\dots, b_{2^{t+1}}) = (2a_1 + 1, \\dots, 2a_{2^t} + 1, 2a_1, \\dots, 2a_{2^t})\n$$\nThis sequence is a permutation for $n = 2^{t+1}$. We claim this permutation is messy. If $2^{t+1} \\mid b_i + b_k - 2b_j$ for some $i < j < k$, then $k \\ge 2^t + 1$ and $i \\le 2^t$ because $(a_1, a_2, \\dots, a_{2^t})$ was assumed to be messy. Now $b_i + b_k - 2b_j$ is an odd number and so cannot be divisible by $2^{t+1}$. This contradiction shows that $(b_1, \\dots, b_{2^{t+1}})$ is a messy permutation and so the proof is complete.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32654, "subject": "Mathematics (Multi-modal)", "question": "For positive real numbers $a$, $b$ and $c$ such that $a + b + c = abc$, prove that\n$$\n\\sum_{\\text{cyc}} \\frac{a}{a^2 + 1} \\le \\frac{\\sqrt{abc}}{3\\sqrt{2}} \\sum_{\\text{cyc}} \\frac{\\sqrt{a^3 + b^3}}{ab + 1}.\n$$", "options": [], "answer": "Detailed solution", "solution": "$a^3 + b^3 \\ge ab(a + b)$. So we have\n$$\n\\frac{\\sqrt{a^3 + b^3}}{ab + 1} \\ge \\frac{\\sqrt{ab(a + b)}}{ab + 1}\n$$\nAfter substitution $a = \\frac{1}{x}$, $b = \\frac{1}{y}$ and $c = \\frac{1}{z}$, it is sufficient to prove that for any positive real numbers $x$, $y$ and $z$ such that $xy + yz + zx = 1$, we have\n$$\n\\sum_{\\text{cyc}} \\frac{x}{1 + x^2} \\le \\frac{1}{3\\sqrt{2xyz}} \\sum_{\\text{cyc}} \\frac{\\sqrt{x + y}}{1 + xy} \\quad (*)\n$$\nSince $xy + yz + zx = 1$, for the left hand side we have\n$$\n\\frac{x}{x^2 + 1} = \\frac{x}{x^2 + xy + xz + yz} = \\frac{x}{(x + y)(x + z)} = \\frac{x(y + z)}{(x + y)(y + z)(z + x)}\n$$\nAnd thus,\n$$\n\\sum_{\\text{cyc}} \\frac{x}{1 + x^2} = \\frac{1}{(x + y)(y + z)(z + x)} \\sum_{\\text{cyc}} (xy + xz) = \\frac{2}{(x + y)(y + z)(z + x)}\n$$\nTherefore, (*) is equivalent to\n$$\n\\frac{2}{(x + y)(y + z)(z + x)} \\le \\frac{1}{3\\sqrt{2xyz}} \\sum_{\\text{cyc}} \\frac{\\sqrt{x + y}}{1 + xy}\n$$\nOn the other hand, by Cauchy-Schwarz inequality, we have $(1 + x^2)(1 + y^2) \\ge (1 + xy)^2$ and so\n$$\n\\begin{aligned}\n\\frac{1}{3\\sqrt{2xyz}} \\sum_{\\text{cyc}} \\frac{\\sqrt{x + y}}{1 + xy} &\\ge \\frac{1}{3\\sqrt{2xyz}} \\sum_{\\text{cyc}} \\frac{\\sqrt{x + y}}{\\sqrt{(1 + x^2)(1 + y^2)}} \\\\\n&= \\frac{1}{3\\sqrt{2xyz}} \\sum_{\\text{cyc}} \\frac{\\sqrt{x + y}}{\\sqrt{(x + y)^2(x + z)(y + z)}} \\\\\n&= \\frac{1}{\\sqrt{2xyz(x + y)(y + z)(z + x)}} \\\\\n&\\ge \\frac{2}{(x + y)(y + z)(z + x)}\n\\end{aligned}\n$$\nThe last inequality was true because we have $(x + y)(y + z)(z + x) \\ge 8xyz$, which is an immediate consequence of AM-GM inequality.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32655, "subject": "Mathematics (Multi-modal)", "question": "From a point $A$ outside circle $\\omega$, tangents $AS$ and $AT$ are drawn to the circle. Points $X$ and $Y$ are the midpoints of segments $AT$ and $AS$, respectively. Tangent $XR$ is drawn from point $X$ to the circle and $P$ and $Q$ are the midpoints of segments $XT$ and $XR$, respectively. If $XY$ and $PQ$ intersect each other at $K$, and $SX$ and $TK$ intersect at $L$, prove that $KRLQ$ is an inscribed quadrilateral.", "options": [], "answer": "Detailed solution", "solution": "If we consider $A$ and $X$ as circles with radius zero, then $K$ is the radical center of $A$, $X$ and $\\omega$. Therefore, $K$ lies on the perpendicular bisector of $AX$, and so $\\angle STA = \\angle KXA = \\angle KAT$. Let $U$ be the intersection point of $AK$ and $TS$.\n\n![](attached_image_1.png)\n\nBy Thales's Theorem $K$ is the midpoint of $AU$. On the other hand, $\\angle ATS = \\angle AST$. Thus, triangles $AUT$ and $ATS$ are similar. Since $TK$ and $SX$ are medians of these triangles, we infer that $\\angle XSA = \\angle STK$. Hence, $L$ lies on $\\omega$ and also $AXLK$ is a cyclic quadrilateral. Now we have\n$$\nRT \\parallel PK \\Rightarrow \\angle RTK = \\angle QKL\n$$\nOn the other hand, since $XR$ is tangent to $\\omega$, we have $\\angle XRL = \\angle RTK$. Therefore, $\\angle XRL = \\angle QKL$ and so four points $K$, $R$, $L$ and $Q$ lie on a common circle.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32656, "subject": "Mathematics (Multi-modal)", "question": "a_1, a_2, \\dots, a_n$ and $b_1, b_2, \\dots, b_n$ are $2n$ positive numbers. We know that all the $a_i$'s, $1 \\le i \\le n$ are not equal, and that they can be separated into two partitions of equal sum. These two properties hold for the $b_i$'s, $1 \\le i \\le n$, as well. Prove that there exists a simple $2n$-gon with sides parallel to the coordinate axes such that the lengths of its horizontal edges are equal to $a_i$'s and the lengths of its vertical edges are equal to $b_i$'s (a simple polygon is one that does not cross itself).", "options": [], "answer": "Detailed solution", "solution": "We start with a lemma.\n\n**Lemma 1.** Suppose that are given two sequences $a_1 > a_2 > \\dots > a_m$ and $b_1 < b_2 < \\dots < b_m$ of positive real numbers as lengths of segments. We start from the origin and at the step $i$ ($1 \\le i \\le m$), we go up with a segment of length $a_i$ and then we go right with a segment of length $b_i$. Suppose that $l$ is the line connecting origin to the endpoint of the last segment. Show that all segments lie in the top of line $l$.\n\n*Proof.* Assume to the contrary that there is a first segment which intersects $l$, say $l'$. Obviously, $l'$ is a horizontal segment because if it was vertical, it could not be the first segment intersecting $l$. Suppose that $l' = b_i$. We denote by $O$ and $X$ the origin and the endpoint of the segment $b_i$, respectively. Since $X$ lies below the line $l$, we get that the slope of $OX$ is less than the slope of $l$.\n$$\n\\frac{\\sum_{j=0}^{i} a_j}{\\sum_{j=0}^{i} b_j} = \\text{Slope of } OX < \\text{Slope of } l = \\frac{\\sum_{j=0}^{m} a_j}{\\sum_{j=0}^{m} b_j}\n$$\nor equivalently\n$$\n\\frac{\\sum_{j=0}^{i} a_j}{\\sum_{j=0}^{m} a_j} < \\frac{\\sum_{j=0}^{i} b_j}{\\sum_{j=0}^{m} b_j} \\quad (*)\n$$\n\nNote that since $b_i$'s are increasing we have\n$$\ni \\sum_{j=i+1}^{m} b_j > (m-i) \\sum_{j=0}^{i} b_j \\Rightarrow i \\sum_{j=0}^{m} b_j > m \\sum_{j=0}^{i} b_j$$\nThis implies that the right hand side of $(*)$ is less than $\\frac{i}{m}$. Similar arguments show that the left hand side of $(*)$ is greater than $\\frac{i}{m}$ (note that $a_i$'s assumed to be decreasing). This contradiction established the lemma. $\\Box$\n\nFor the main problem suppose that we have divided both $a_i$'s and $b_i$'s into two sets having equal sums.\n\n* $\\sum_{i=1}^{k} a_i = \\sum_{i=k+1}^{n} a_i$ such that $a_k \\le a_{k-1} \\le \\dots \\le a_2 \\le a_1, a_n \\le a_{n-1} \\le \\dots \\le a_{k+1}$, where $a_1 \\ge a_{k+1}$.\n* $\\sum_{i=1}^{s} b_i = \\sum_{i=s+1}^{n} b_i$ such that $b_s \\ge b_{s-1} \\ge \\dots \\ge b_2 \\ge b_1, b_n \\ge b_{n-1} \\ge \\dots \\ge b_{s+1}$, where $b_1 \\le b_{s+1}$.\n\nThere is no loss of generality in assuming that $k \\le \\frac{n}{2} \\le s$. We will use the following algorithm for constructing the polygon.\n\n* We start from the origin ($C_0$ is the origin).\n* For $1 \\le i \\le s$, at the $i$-th step, we start from $C_{2(i-1)}$, then we go up in a segment of length $a_i$ to get $C_{2i-1}$ and then right in a segment of length $b_i$ to get $C_{2i}$.\n* For $s < i \\le k$, at the $i$-th step, we start from $C_{2(i-1)}$, then we go down in a segment of length $a_i$ to get $C_{2i-1}$ and then left in a segment of length $b_i$ to get $C_{2i}$.\n\nNote that since the lengths of $a_i$'s and $b_i$'s are assumed to be monotone, according to the lemma, first $2s$ sides of polygon lie in the top of the segment $C_0C_{2s}$ and the next $2(k-s)$ sides lie in the bottom of $C_{2s}C_{2k}$.\n\n* For $k < i \\le n$, at the $i$-th step, we start from $C_{2(i-1)}$, then we go down in a segment of length $a_i$ to get $C_{2i-1}$ and then left in a segment of length $b_i$ to get $C_{2i}$.\n\nAgain because of the lemma, all these sides lie in the bottom of the segment $C_{2k}C_{2n}$.\n\n![](attached_image_1.png)\n\nBecause $\\sum_{i=1}^{k} a_i = \\sum_{i=k+1}^{n} a_i$ and $\\sum_{i=1}^{s} b_i = \\sum_{i=s+1}^{n} b_i$, we return to the origin at the end of the algorithm and so we get a polygon. Now it suffices to prove that this polygon is simple.\n\nObviously, in each part of algorithm the segments can not intersect each other. On the other hand, according to the lemma, two segments from two different parts of algorithm can intersect only if the segment connecting the first and the last vertex of each part lie on the same line. But this is possible only if $k = s$ (it means that there is not any side in the second part of algorithm). In this case we have intersection on the connecting line only if there are some $1 \\le t \\le k$ and $k+1 \\le l \\le n$, such that\n$$\na_1 + \\dots + a_t = a_{l+1} + \\dots + a_n, \\quad a_{t+1} + \\dots + a_k = a_{k+1} + \\dots + a_l \\quad (1)\n$$\n$$\nb_1 + \\dots + b_t = b_{l+1} + \\dots + b_n, \\quad b_{t+1} + \\dots + b_k = b_{k+1} + \\dots + b_l \\quad (2)\n$$\nSince $\\frac{a_1+\\dots+a_t}{t} \\ge \\frac{a_{t+1}+\\dots+a_k}{k-t}$ and $\\frac{a_{l+1}+\\dots+a_n}{n-l} \\le \\frac{a_{k+1}+\\dots+a_l}{l-k}$, from (1) we get\n$$\n\\frac{t}{k-t}(a_{t+1} + \\dots + a_k) \\le a_1 + \\dots + a_t = a_{l+1} + \\dots + a_n \\le \\frac{n-l}{l-k}(a_{k+1} + \\dots + a_l) \\quad (3)\n$$\nSo $\\frac{t}{k-t} \\le \\frac{n-l}{l-k}$. Similar arguments for $b_i$'s instead of $a_i$'s imply $\\frac{n-l}{l-k} \\le \\frac{t}{k-t}$. Therefore, $\\frac{t}{k-t} = \\frac{n-l}{l-k}$. Thus, all inequities in (3) are equalities. So\n$$\na_t \\le \\frac{a_1 + \\dots + a_t}{t} \\le \\frac{a_{t+1} + \\dots + a_k}{k-t} \\le a_{t+1} \\le a_t\n$$\nTherefore, $a_1 = a_2 = \\dots = a_k$ (say this common value $a$) and similarly, $a_{k+1} = \\dots = a_n$ (say this common value $a'$). Now since $a_1 + \\dots + a_k = a_{k+1} + \\dots + a_n$, we have $ka = (n-k)a'$. In the same manner, $b_1 = b_2 = \\dots = b_k$ (say this common value $b$), $b_{k+1} = \\dots = b_n$ (say this common value $b'$) and $kb = (n-k)b'$. But since $a = a_1 \\ge a_{k+1} = a'$ and $b = b_1 \\le b_{s+1} = b'$, we have $1 \\le \\frac{a}{a'} = \\frac{n-k}{k} = \\frac{b}{b'} \\le 1$. Hence, $a = a'$ and $b = b'$. It means that all the horizontal segments have equal lengths and all the vertical segments have equal lengths, which contradicts problem conditions.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 32657, "subject": "Mathematics (Multi-modal)", "question": "$A$ puts $5$ points on the plane such that no three of them are collinear. $B$ adds a sixth point that is not collinear with any two of the former points. $A$ wants to eventually construct two triangles from the six points such that one can be placed inside another. Can $A$ put the $5$ points in such a manner so that he would always be able to construct the desired triangles? (We say that triangle $\\triangle_1$ can be placed inside triangle $\\triangle_2$ if $\\triangle_1$ is congruent to a triangle that is located completely inside $\\triangle_2$.)", "options": [], "answer": "Yes", "solution": "Firstly, we present an obvious lemma.\n**Lemma 1.** If for two triangles $ABC$ and $A'B'C'$, we have $AB \\le A'B'$, $AC \\le A'C'$ and $\\angle BAC \\le B'A'C'$, then $ABC$ can be placed into $A'B'C'$.\n\nLet $XYZ$ be an equilateral triangle with center $O$. We denote the radius of circumcircle of this triangle and the length of its altitudes by $R$ and $h$, respectively (Clearly, $h = \\frac{\\sqrt{3}}{2}R$). Let $P$ be a point close to $O$ such that $OP < \\frac{h-R}{2}$ and angles $\\angle OXP$, $\\angle OYP$ and $\\angle OZP$ are all in the interval $(0, 30^\\circ)$. We claim that if $A$ puts the points $X, Y, Z, O$ and $P$; he would be able to construct the desired triangles.\n\nNow we go to some cases, according to the place of sixth point, say $Q$.\n\n* If $Q$ lies inside the triangle, then $OQP$ is located completely inside $XYZ$.\n\n* If $Q$ lies inside the circumcircle of $XYZ$ but outside of the triangle, we have\n$$\nQP < QO + OP \\le R + OP < h < XY, \\quad QO \\le R < h < XZ\n$$\nOn the other hand, since $Q$ is outside of $XYZ$, $OQ \\ge h - R > 2OP$ and $QP > OQ - OP > OP$. So $OP$ is the shortest side of triangle $OPQ$. Therefore, $\\angle OQP \\le 60^\\circ$. Now since $QP < XY$, $QO < XZ$ and $\\angle OQP \\le 60^\\circ = \\angle YXZ$, according to the lemma, triangle $OQP$ can be placed inside $XYZ$.\n\n* If $Q$ lies outside the circumcircle of $XYZ$, triangles $QXY$, $QYZ$ and $QZX$ cover the triangle $XYZ$. So one of them, for example $QYZ$ contains $O$. Therefore, triangle $OYZ$ is located inside $QYZ$. On the other hand, since $OPX$ can be placed into $OYZ$ ($P$ is in one of congruent triangles $OXY$, $OYZ$ or $OZX$), we obtain that $OPX$ can be placed into $QYZ$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32658, "subject": "Mathematics (Multi-modal)", "question": "$H$ is the foot of the altitude of vertex $A$ of triangle $ABC$ and $H'$ is the reflection of $H$ with respect to the midpoint of $BC$. If tangents to the circumcircle of triangle $ABC$ at points $B$ and $C$ intersect each other at $X$ and the perpendicular to $XH'$ at $H'$ intersects lines $AB$ and $AC$ at $Y$ and $Z$, respectively, prove that $\\angle YXB = \\angle ZXC$.", "options": [], "answer": "Detailed solution", "solution": "Let $P$, $Q$ and $M$ be the feet of perpendicular lines from $X$ to $AB$, $AC$ and $BC$, respectively. Obviously, $M$ is the midpoint of $BC$. We have\n$$\n\\angle ZXY = \\angle ZXH' + \\angle H'XY = \\angle AQH' + \\angle APH' = \\angle PH'Q - \\angle A\n$$\nSince we know $\\angle BXC = 180^\\circ - \\angle 2A$, it suffices to prove $\\angle PH'Q = 180^\\circ - \\angle A$. Note that $\\angle APM = \\angle BXM = 90^\\circ - \\angle A$ and so $PM \\perp AQ$. Similarly, $QM \\perp AP$. So $M$ is the orthocenter of triangle $APQ$, and as a consequence $AM \\perp PQ$.\n\n![](attached_image_1.png)\n\nLet $R$ be the foot of the perpendicular line from $A$ to $XM$. Thus, $ARH'M$ is a parallelogram. Now since $AM \\perp PQ$ and $RH' \\parallel AM$, we infer $PH' \\perp PQ$ (1). On the other hand, since $\\angle ARX = \\angle APX = \\angle AQX$, $R$ lies on the circumcircle of $APQ$ and so $\\angle PRQ = \\angle A$. Therefore, $RH' = AM = 2r \\cos(\\angle A) = 2r \\cos(\\angle PRQ)$ (2), where $r$ is the radius of circle passing through $A, R, P$ and $Q$. From (1) and (2), we deduce that $H'$ is the orthocenter of triangle $PRQ$. This implies that $\\angle PH'Q = 180^\\circ - \\angle A$ and this completes the proof.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 32659, "subject": "Mathematics (Multi-modal)", "question": "Point $I_b$ is the $B$-excenter of triangle $ABC$. If we denote by $M$ the midpoint of arc $BC$ of the circumcircle of triangle $ABC$ (the one that does not contain vertex $A$), and $MI_b$ intersects the circumcircle of triangle $ABC$ at $T$, prove that $TI_b^2 = TB \\times TC$.", "options": [], "answer": "Detailed solution", "solution": "Firstly, we prove two lemmas.\n\n**Lemma 1.** In each triangle $ABC$ with altitude $AH$ and circumradius $R$, we have $AC \\cdot AB = 2R \\cdot AH$.\n*Proof.* The proof is easy. □\n\n**Lemma 2.** In triangle $ABC$, let $N$ be the second intersection point of $I_bI_c$ and $\\omega$ (other than $A$), where $I_b$ and $I_c$ are excenters of $ABC$ and $\\omega$ is its circumcircle. Then, the points $I_b$, $I_c$, $C$ and $B$ lie on a common circle with center $N$.\n*Proof.* Since $CI_c$ and $CI_b$ are internal and external angle bisectors of $\\angle C$, we have $\\angle I_cCI_b = 90^\\circ$. Similarly, $\\angle I_bBI_c = 90^\\circ$, and so quadrilateral $I_cBCI_b$ is cyclic. Now we have\n$$\n\\angle NI_cB = \\angle AI_cB = 180^\\circ - \\angle I_cAB - \\angle I_cBA = 90^\\circ - \\frac{\\angle C}{2}\n$$\nNow since $\\angle I_cNB = \\angle ANB = \\angle C$, we conclude that triangle $I_cNB$ is isosceles and so $N$ lies on the perpendicular bisector of $I_cB$. By similar arguments, $N$ lies on the perpendicular bisector of $I_bC$, too. Therefore, $N$ is the center of this circle. □\n\n![](attached_image_1.png)\n\nWe keep using notations in lemma 2. Furthermore, denote by $\\Gamma$ the circumcircle of $I_bCBI_c$ and let $T_1$ be the second intersection point of $MI_b$ and $\\Gamma$. Since $M$ and $N$ lie on the internal and external bisectors of $\\angle A$, respectively, then $MN$ must be a diameter of $\\omega$ and so $\\angle NTM = 90^\\circ$. Now $T$ must be the midpoint of $I_bT_1$, because $NT \\perp I_bT_1$ and $N$ is the center of circle passing through $T_1$ and $I_b$. So $NT$ is the perpendicular bisector of $I_bT_1$ and $T_1T = TI_b$. If $T'$ is the foot of perpendicular from $T$ to line $BC$ (radical axis of $\\omega$ and $\\Gamma$) then by *Casey's theorem* for point $T$ and circles $\\omega$ and $\\Gamma$ we get\n$$\nP_{\\Gamma}^{T} - P_{\\omega}^{T} = 2ON \\cdot TT' \\Rightarrow TI_{b}^{2} = TI_{b} \\cdot TT_{1} = 2R \\cdot TT' \\quad (1)\n$$\nAccording to the lemma 1 for triangle $TBC$, we deduce $2R \\cdot TT' = TB \\cdot TC$ (2). (1) and (2) imply $TI_b^2 = TB \\cdot TC$, as desired.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 32660, "subject": "Mathematics (Multi-modal)", "question": "Square $ABCD$ is given. Points $N$ and $P$ are selected on sides $AB$ and $AD$, respectively, such that $PN = NC$, and point $Q$ is selected on segment $AN$ such that $\\angle NCB = \\angle QPN$. Prove that $\\angle BCQ = \\frac{1}{2} \\angle PQA$.", "options": [], "answer": "Detailed solution", "solution": "Let $E$ be the intersection point of $PQ$ and $BC$. According to the problem assumption, $PN = NC$ and so $\\angle NPC = \\angle PCN$. On the other hand, we know $\\angle QPN = \\angle NCB$. From these we conclude that $EPC$ is an isosceles triangle. Therefore, its altitudes $PS$ and $CK$ have equal length. So $CK = PS = AB = BC$ and therefore right-angled triangles $QBC$ and $QKC$ are congruent. So $QC$ is the bisector of angles $\\angle KCB$ and $\\angle KQB$. Hence, $\\angle BCQ = \\frac{1}{2} \\angle KCB$ (*).\n\n![](attached_image_1.png)\n\nOn the other hand, since $\\angle QBC + \\angle QKC = 90^\\circ + 90^\\circ = 180^\\circ$, we get that $QBCK$ is a cyclic quadrilateral which implies $\\angle BCK = \\angle AQP$. This together with (*) completes the proof.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32661, "subject": "Mathematics (Multi-modal)", "question": "Consider a perfectly straight land having a canyon in the form of an infinite strip of width $\\omega$. A polyhedron of diameter (maximum distance between any two points on or inside the polyhedron) $d$ is placed on one side of the canyon and a cavity of radius $d$ on the other. We want to roll this polyhedron and drop it inside the cavity in such a way that in any time during its motion, there is at least one contact point between the polyhedron and the ground (unlike the real world, the polyhedron will not fall into the canyon even if it has only one contact point with the ground). To this end, we have constructed a bridge of width $\\frac{d}{10}$ over the canyon. Prove that it is possible to drop the polyhedron into the cavity.\n\n![](attached_image_1.png)", "options": [], "answer": "Detailed solution", "solution": "We claim that it is possible to roll the polyhedron in each direction, as far as we want.\nFirstly, we draw a line from a point inside the face of polyhedron touching the ground to the destination point. Since the polyhedron is convex, this line intersects one of edges of that face. We can roll the polyhedron around this edge. After this motion, the distance from the destination point and the intersection of polygon and the ground became smaller. We can continue the same process to get the destination point. To this end, we should prove that there is some positive number $\\epsilon$ such that after each motion our distance will be decrease at least by $\\epsilon$. In the other words, if we denote our distance after $n$-th step by $d_n$, the sequence $d_n - d_{n-1}$ has a lower bound or equivalently cannot tend to zero. If this sequence tends to zero, we deduce that the polyhedron has been rolled around some edge connecting to a single vertex (after some step), infinitely many times.\n\n**Lemma 1.** We can roll the polyhedron around one of its vertices at most *n* times, where *n* is the number of edges connecting to that vertex.\n*Proof.* Look at the trace of the line (on the ground) on the polyhedron. If we open the polyhedron, the trace became a straight line. Since a line in the plane intersect each convex polygon at most once, we deduce that during the motions around each vertex each face containing that vertex touches the ground at most once. □\n\nReffering to the lemma, we infer that $d_n - d_{n-1}$ cannot tend to zero and so we will get our destination point. This shows that if there is no canyon we can get everywhere in the plane.\n\nNow for the case that we have a bridge, we can connect the initial point and the center of cavity by a broken line. So using above method we can roll the polyhedron on this path to drop into the cavity.", "topic": "Algebra", "subtopic": "Abstract Algebra" }, { "id": 32662, "subject": "Mathematics (Multi-modal)", "question": "$b_1 < b_2 < \\dots$ is the sequence of all natural numbers that can be written as the sum of squares of two natural numbers. Prove that for infinitely many natural numbers $n$, $b_{n+1} - b_n = 2015$.", "options": [], "answer": "Detailed solution", "solution": "We prove that for any odd integer $m > 0$, there are infinitely many positive integers $n$, such that $b_{n+1} - b_n = m$. For sake of this reason we will use the following lemma.\n\n**Lemma 1.** Let $a$ be a positive integer which is not a perfect square. There exist infinitely many primes $p \\equiv 3 \\pmod{4}$ such that $a$ is quadratic non-residue modulo them.\n\n*Proof.* Let $p_1p_2\\cdots p_s$ be the square free part of integer $a$, where $p_i$'s are distinct primes. Now choose the quadratic non-residue $r_1$ modulo $p_1$ and set $r_2, \\dots, r_s$ as quadratic residues modulo $p_2, \\dots, p_s$, respectively. Now by *Chinese Remainder Theorem* and *Dirichlet's Theorem* one can find infinitely many primes $p$ satisfying\n$$\np \\equiv r_i \\pmod{p_i} \\quad \\text{for } i = 1, 2, \\dots, s\n$$\nNote that if one of the primes named $p_1$ is equal to $2$, then omit the first congruence and just add the criterion $p \\equiv 3 \\pmod{8}$ and we are done. $\\square$\n\nNow set $m = 2M + 1$ and consider the sequence $k^2 + M^2, k^2 + M^2 + 1, \\dots, k^2 + M^2 + 2M + 1$. In this sequence the first and the last term are represented as sum of two squares. We will prove that there are infinitely many integers $k$ such that only these two terms could be representable as sum of two squares. According to the lemma, there exist primes $p_1, p_2, \\dots, p_{2M} \\equiv 3 \\pmod{4}$ such that for each $j$, $M^2 + j$ is quadratic non-residue modulo $p_j$. Now we establish the following lemma.\n\n**Lemma 2.** Let $r$ be a quadratic residue modulo prime $P$ and $(x, P) = 1$. Then there is integer $x$ such that $0 < x < 2P$, $x^2 \\equiv r \\pmod{P}$ and $x^2 \\not\\equiv r \\pmod{P^2}$.\n\n*Proof.* Let us note that $(x + P)^2 - x^2 = P^2 + 2xP \\not\\equiv 0 \\pmod{P^2}$. Then one of $x$ and $x + P$ satisfies the desired conditions. $\\square$\n\nNow by this lemma there exist positive integers $n_1, n_2, \\dots, n_{2M}$ such that $0 < n_j < 2p_j$ ($1 \\le j \\le 2M$) and we have\n$$\nn_j^2 \\equiv -(M^2 + j) \\pmod{p_j}, \\quad x^2 \\not\\equiv -(M^2 + j) \\pmod{p_j^2}\n$$\nNext, let $k \\equiv n_j \\pmod{p_j^2}$ for $1 \\le j \\le 2M$. Then, the numbers $k^2 + M^2 + j$ are all divisible by $p_j$ and not $p_j^2$. Now, since $p_j \\equiv 3 \\pmod{4}$, $k^2 + M^2 + j$ cannot be written as sum of two squares. So we are done.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32663, "subject": "Mathematics (Multi-modal)", "question": "a) Consider $n$ coprime natural numbers greater than $1$ like $d_1, d_2, \\dots, d_n$ and arbitrary natural numbers $r_1, r_2, \\dots, r_n$. Prove that there exists a natural number $x$, $1 \\le x \\le 3^n$, that satisfies the following system of modular inequalities:\n$$\n\\begin{array}{l}\nx \\not\\equiv r_1 \\pmod{d_1} \\\\\nx \\not\\equiv r_2 \\pmod{d_2} \\\\\n\\vdots \\\\\nx \\not\\equiv r_n \\pmod{d_n}\n\\end{array}\n$$\n\nb) For each real number $\\epsilon > 0$, prove that there exists a number $N$ such that for each natural number $n > N$ and natural numbers $d_1, d_2, \\dots, d_n$ and $r_1, r_2, \\dots, r_n$, where $d_i$'s ($1 \\le i \\le n$) are coprime, the above system of inequalities has a solution $x$ that $1 \\le x \\le (2 + \\epsilon)^n$.", "options": [], "answer": "Detailed solution", "solution": "a) Without loss of generality, we may suppose that $1 < d_1 < \\dots < d_n$. First, suppose that $d_1 > 2$. For each subset $I = \\{i_1 < \\dots < i_k\\} \\subseteq \\{1, 2, \\dots, n\\}$, we define $d_I$ to be equal to the product $d_{i_1} d_{i_2} \\dots d_{i_k}$. By the **Chinese Remainder Theorem**, we know that the modular equalities\n$$\nx \\equiv r_{i_1} \\pmod{d_{i_1}}, \\dots, x \\equiv r_{i_k} \\pmod{d_{i_k}} \\quad (*)\n$$\nhave a unique solution modulo $d_I$. Let $r_I$ be one of its solutions (If $I = \\emptyset$ there is no equation and so all integers are solutions. In this case, we set $r_I = 1$). So $x \\equiv r_I \\pmod{d_I}$ is equivalent to the system $(*)$.\n\nNow suppose that $M$ is an arbitrary integer. According to the **Inclusion-Exclusion Principle**, the number of solutions of modular inequalities\n$$\nx \\not\\equiv r_1 \\pmod{d_1}, \\dots, x \\not\\equiv r_n \\pmod{d_n}\n$$\nwhich are greater than $M$ is\n$$\n\\sum_{I \\subseteq \\{1, \\dots, n\\}} (-1)^{|I|} |\\{1 \\le x \\le M \\mid x \\equiv r_I \\pmod{d_I}\\}|.\n$$\nIt is easy to see that the number of solutions of each modular equality like $x \\equiv r \\pmod{d}$ in $[1, M]$ is $\\lfloor \\frac{M}{d} \\rfloor$ or $\\lceil \\frac{M}{d} \\rceil$. In each case, the difference of the number of solutions and $\\frac{M}{d}$ is at most one, so the number of solutions is greater than\n$$\n\\left( \\sum_{I \\subseteq \\{1, \\dots, n\\}} (-1)^{|I|} \\frac{M}{d_I} \\right) - 2^n = M \\left( 1 - \\frac{1}{d_1} - \\dots - \\frac{1}{d_n} + \\frac{1}{d_1 d_2} + \\dots \\right) - 2^n \\\\\n= M \\left(1 - \\frac{1}{d_1}\\right) \\dots \\left(1 - \\frac{1}{d_n}\\right) - 2^n.\n$$\n\nNow, if $M = 3^n$ and $d_i \\ge 3$ for all $i$, this number is at least\n$$\n3^n\\left(1 - \\frac{1}{3}\\right)^n - 2^n = 0.\n$$\nAnd so in this case the number of solutions of inequalities is not zero. For the case $d_1 = 2$, parity of $x$ is determined by the parity of $r_1$. Thus, we can use one of substitutions $x = 2y$ or $x = 2y - 1$. This substitution changes the other inequalities to some new ones in terms of $y$\n$$\ny \\not\\equiv s_2 \\pmod{d_2}, \\dots, y \\not\\equiv s_n \\pmod{d_n}\n$$\nSince $3 \\le d_2 < \\dots < d_n$, these inequalities have a solution $y_0 \\le 3^{n-1}$. Hence, we can find a solution for the main inequalities $(x)$ not greater than $2 \\times 3^{n-1} < 3^n$. So the proof is complete.\n\nb) Similar to the previous part, we assume that $d_1 < d_2 < \\dots < d_n$. Therefore, for each $i$, we have $d_i \\ge i$. Furthermore, suppose that $\\epsilon > 0$ has been given. We choose a real number $a \\in (\\frac{2}{2+\\epsilon}, 1)$. Obviously, there is some $N_1$ such that $1 - \\frac{1}{N_1} > a$. On the other hand, since $\\frac{(2+\\epsilon)a}{2} > 1$, there is $N_2$ such that\n$$\n\\left(\\frac{(2 + \\epsilon)a}{2}\\right)^{N_2} > 2^{N_1}.\n$$\nNow we set $N = N_1 + N_2$. We will show that for each $n > N$ the number of solutions of the system of modular inequalities is at most $(2 + \\epsilon)^n$. According to part (a), we know that the number of solutions of these inequalities in $[1, (2 + \\epsilon)^n]$ is more than\n$$\n(2 + \\epsilon)^n \\left(1 - \\frac{1}{d_1}\\right) \\cdots \\left(1 - \\frac{1}{d_n}\\right) - 2^n.\n$$\nBut for $n > N$ we have\n$$\n\\begin{aligned}\n(2 + \\epsilon)^n \\left(1 - \\frac{1}{d_1}\\right) \\cdots \\left(1 - \\frac{1}{d_n}\\right)\n&\\ge (2 + \\epsilon)^n \\left(1 - \\frac{1}{2}\\right) \\cdots \\left(1 - \\frac{1}{n+1}\\right) \\\\\n&\\ge (2 + \\epsilon)^n \\left(1 - \\frac{1}{2}\\right)^{N_1} \\left(1 - \\frac{1}{N_1}\\right)^{n-N_1} \\\\\n&\\ge (2 + \\epsilon)^n 2^{-N_1} a^{n-N_1} \\\\\n&\\ge (2 + \\epsilon)^n 2^{-N_1} \\left(\\frac{2}{2+\\epsilon}\\right)^{n-N_1} \\left(\\frac{(2+\\epsilon)a}{2}\\right)^{n-N_1}.\n\\end{aligned}\n$$\nNote that $\\frac{2}{2+\\epsilon} < 1$, $\\frac{(2+\\epsilon)a}{2} > 1$ and $n - N_1 > N_2$. Therefore,\n$$\n\\begin{aligned}\n& (2 + \\epsilon)^n 2^{-N_1} \\left(\\frac{2}{2+\\epsilon}\\right)^{n-N_1} \\left(\\frac{(2+\\epsilon)a}{2}\\right)^{n-N_1} > (2 + \\epsilon)^n 2^{-N_1} \\left(\\frac{2}{2+\\epsilon}\\right)^n \\left(\\frac{(2+\\epsilon)a}{2}\\right)^{N_2} \\\\\n& > (2 + \\epsilon)^n 2^{-N_1} \\left(\\frac{2}{2+\\epsilon}\\right)^n 2^{N_1} \\\\\n& = 2^n.\n\\end{aligned}\n$$\nAnd finally, we get\n$$\n(2 + \\epsilon)^n \\left(1 - \\frac{1}{d_1}\\right) \\cdots \\left(1 - \\frac{1}{d_n}\\right) - 2^n > 0\n$$", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32664, "subject": "Mathematics (Multi-modal)", "question": "Let $x$, $y$ and $z$ be nonnegative real numbers. Knowing that\n$$\n2(xy + yz + zx) = x^2 + y^2 + z^2,\n$$\nprove\n$$\n\\frac{x + y + z}{3} \\geq \\sqrt[3]{2xyz}.\n$$", "options": [], "answer": "Detailed solution", "solution": "There is no loss of generality in assuming that $x \\ge y \\ge z$. We have\n$$\n\\begin{aligned}\nx^2 + y^2 + z^2 &= 2(xy + yz + zx) \\\\\n\\Rightarrow \\quad x^2 + x(-2y - 2z) + y^2 + z^2 - 2yz &= 0 \\\\\n\\Rightarrow \\quad x = (y + z) \\pm \\sqrt{(y + z)^2 - y^2 - z^2 + 2yz} = (y + z) \\pm 2\\sqrt{yz} = (\\sqrt{y} \\pm \\sqrt{z})^2 \\\\\n\\Rightarrow \\quad \\sqrt{x} = \\sqrt{y} \\pm \\sqrt{z}\n\\end{aligned}\n$$\nSince $y, z \\le x$ the case $\\sqrt{x} = \\sqrt{y} - \\sqrt{z}$ is not admissible and so we get $\\sqrt{x} = \\sqrt{y} + \\sqrt{z}$ or equivalently $x = y + z + 2\\sqrt{yz}$. After substituting this equality in the statement of the problem, we deduce\n$$\n\\frac{y+z+2\\sqrt{yz}+y+z}{3} \\ge \\sqrt[3]{2(y+z+2\\sqrt{yz})yz}\n$$\nIf $y = 0$, the assertion is trivial. Therefore, we assume $y \\ne 0$. Let we define $t = \\frac{z}{y}$. Now we must prove\n$$\n\\frac{2t + 2\\sqrt{t} + 2}{3} \\ge \\sqrt[3]{2(t + 1 + 2\\sqrt{t})t}\n$$\nWhich is a consequence of AM-GM inequality.\n$$\n\\frac{2t + 2\\sqrt{2t} + 2}{3} = \\frac{(\\sqrt{t} + 1) + (\\sqrt{t} + 1) + 2t}{3} \\ge \\sqrt[3]{2(t + 1 + 2\\sqrt{t})t}\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32665, "subject": "Mathematics (Multi-modal)", "question": "Let $n$ be a natural number. Determine the smallest natural number $k$ such that among any $k$ natural numbers, it is always possible to select an even number of them having a sum divisible by $n$.", "options": [], "answer": "If n is odd, k = 2n. If n is even, k = n + 1.", "solution": "We start with a lemma.\n\n**Lemma 1.** Let $a_1, a_2, \\dots, a_n$ be $n$ even integers. Then there is a subsequence $i_1 < i_2 < \\dots < i_k$ of $1, 2, \\dots, n$ such that $a_{i_1} + \\dots + a_{i_k}$ is divisible by $2n$.\n\n*Proof.* Consider the following integers\n$$\nS_i = \\frac{1}{2}(a_1 + a_2 + \\dots + a_i) \\quad 1 \\le i \\le n\n$$\nIf there is some $i$ such that $n \\mid S_i$, we are done. So we assume that $n$ divides none of the $S_i$'s and since there are $n$ numbers there exist $i < j$ such that $S_i \\equiv S_j \\pmod n$. This implies\n$$\nn \\mid \\frac{1}{2}(a_{i+1} + \\dots + a_j) \\Rightarrow 2n \\mid a_{i+1} + \\dots + a_j\n$$\nand the proof is complete. $\\square$\n\nNow for the main problem, we have two cases.\n\n* $n$ is an odd number. The answer is $k = 2n$. Firstly, note that for $k < 2n$ if we set $a_1 = a_2 = \\dots = a_k = 1$, we cannot choose an even number of $a_i$'s with sum divisible by $n$. On the other hand, if $a_1, a_2, \\dots, a_{2n}$ are $2n$ integers, then we define $S_i = a_1 + \\dots + a_{2i}$ for $i = 1, 2, \\dots, n$. By arguments same as the proof of the lemma, there is some $i$ such that $n \\mid S_i$ or there exists $i < j$ such that $n \\mid S_j - S_i$. In both cases we have found an even number of $a_i$'s having sum divisible by $n$.\n\n* $n = 2m$ is an even number. We claim that $k = n + 1 = 2m + 1$ is the answer. Note that for $k \\le 2m$, if we set $a_1 = a_2 = \\dots = a_{k-1} = 1$ and $a_k = 0$, it is not possible to select an even number of $a_i$'s having a sum divisible by $2m$. On the other hand, suppose that $a_1, a_2, \\dots, a_{2m+1}$ are $2m+1$ arbitrary integers. Assume that $b_1, b_2, \\dots, b_s$ are the even numbers among $a_i$'s and $c_1, c_2, \\dots, c_r$ are the odd numbers. Since $r+s = 2m+1$, exactly one of $r$ or $s$ is odd and the other is even. We suppose that $r$ is odd and $s$ is even (the other case is similar). Now look at the $m$ numbers $a_1+a_2, a_3+a_4, \\dots, a_{r-2}+a_{r-1}, b_1+b_2, \\dots, b_{s-1}+b_s$. Note that all these sums are even, so referring to the lemma, we can select some of them with sum divisible by $2m = n$. Since each of these numbers is sum of two members of $a_i$'s we have found an even number of $a_i$'s having a sum divisible by $n$, as desired.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32666, "subject": "Mathematics (Multi-modal)", "question": "Find all of the solutions of the following equation in natural numbers:\n$$n^{n^n} = m^m.$$", "options": [], "answer": "m = n = 1", "solution": "We start with a lemma.\n**Lemma 1.** Let $n$ be a positive integer and $p, q$ some positive rational numbers. If $n^p = q$, then $q$ is itself an integer.\n*Proof.* Suppose $p = \\frac{a}{b}$ and $q = \\frac{c}{d}$ where $a, b, c, d \\in \\mathbb{N}$. We have\n$$\nn^p = q \\Rightarrow n^{\\frac{a}{b}} = \\frac{c}{d} \\Rightarrow n^a = \\left(\\frac{c}{d}\\right)^b = \\frac{c^b}{d^b} \\Rightarrow d^b \\mid c^b \\Rightarrow d \\mid c \\Rightarrow q \\in \\mathbb{N}\n$$\n□\nNow for the main problem, note that if $n = 1$, then $m = n = 1$ and this is a solution for the equation. So we may assume that $n > 1$. Let $r = \\log_n m$, ($m = n^r$). We have\n$$\nn^{nn} = m^m = (n^r)^{nr} = n^{rnr}\n$$\nSince $n > 1$, we must have\n$$\nn^n = rn^r \\Rightarrow r = n^{n-r}\n$$\nOn the other hand, since $n^{n^n} = m^m$, we get $n^n = m \\log_n m = r$ or $r = \\frac{n^n}{m} \\in \\mathbb{Q}$. According to the lemma $n - r$ and $r$ playing the role of $p$ and $q$, respectively, we get $r$ is an integer. Now if $r < n$, then $n^{n-r} \\ge n^1 > r = n^{n-r}$, which is impossible. And if $r > n$, then $n^{n-r} < 1 \\le r = n^{n-r}$ which is again impossible.\nSo we must have $n = r$. Hence, $n = r = n^{n-r} = 1$. This contradicts with the assumption $n > 1$ and consequently, the only solution is $m = n = 1$.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 32667, "subject": "Mathematics (Multi-modal)", "question": "A non-empty set $S$ of positive real numbers is called **powerful** if for any two distinct elements of it like $a$ and $b$, at least one of the numbers $a^b$ or $b^a$ is an element of $S$.\n\na) Present an example of a powerful set having four elements.\n\nb) Prove that a finite powerful set cannot have more than four elements.", "options": [], "answer": "{1, 1/2, 1/4, 1/16}; the maximum size of a finite powerful set is 4", "solution": "a) $\\{1, \\frac{1}{2}, \\frac{1}{4}, \\frac{1}{16}\\}$ is an example of a powerful set with four elements. (Part b shows that this is the unique powerful set with four elements.)\n\nb) First we prove a lemma.\n\n**Lemma 1.** A *finite powerful set* $S$ *can not have an element greater than one and an element less than one.*\n\n*Proof.* Suppose by contradiction that there exist such elements. Now let $a$ be the least element of $S$ and $b$ the least element of $S$ which is greater than $1$. By assumption, we must have $a < 1$. Now $a < 1 < b$ and so\n\n* $a^b < a^1 = 1$, but $a$ was the least element of $S$. Thus, $a^b \\notin S$.\n* $1 < b^a < b^1 = b$, but $b$ was the least element of $S$ greater than one. Therefore, $b^a \\notin S$.\n\nSo our assumption leads to a contradiction proving the lemma. □\n\nAccording to this lemma, if $S$ is a finite powerful set, all of its elements are in $[1, \\infty)$ or in $(0, 1]$.\n\nFirstly, suppose that $S$ is a powerful set with $n > 3$ number of elements in $[1, \\infty)$ ($S = \\{1 = a_1 < a_2 < \\cdots < a_n\\}$). Note that we can assume that $a_1 = 1$, because if $1 \\notin S$, we can add it to $S$ to get a powerful set with more elements. For $i \\ge 2$, $a_n^{a_i} > a_n$ and so $a_i^{a_n}$ must be in $S$. We have\n$$\na_1 < a_2 < a_2^{a_n} < a_3^{a_n} < \\cdots < a_{n-1}^{a_n}\n$$\nSo for $2 \\le i \\le n - 1$, $a_i^{a_n} = a_{i+1}$. Now for $a_2 < a_{n-1}$ ($n > 3$) we have\n$$\na_2 < a_2^{a_{n-1}} < a_2^{a_n} = a_3 \\Rightarrow a_2^{a_{n-1}} \\notin S\n$$\n$$\na_{n-1} < a_{n-1}^{a_2} < a_{n-1}^{a_n} = a_n \\Rightarrow a_{n-1}^{a_2} \\notin S\n$$\nbut this contradicts, because $S$ was a powerful set.\n\nNow suppose that $S$ is a powerful set with $n > 4$ elements in $(0, 1]$. Let $S = \\{a_1 < a_2 < \\cdots < a_n = 1\\}$. Again we may assume $1 \\in S$. Similar to the previous part, for each $1 \\le i \\le n - 2$, $a_{n-1} < a_{n-1}^{a_i} < 1$. So $a_n^{a_i} \\notin S$, and consequently $a_i^{a_n} \\in S$. We have\n$$\na_1 < a_1^{a_{n-1}} < a_2^{a_{n-1}} < \\cdots < a_{n-2}^{a_n} < 1\n$$\nSo we get $a_i^{a_{n-1}} = a_{i+1}$ for each $2 \\le i \\le n - 2$. Now if we denote $a_{n-1}$ by $a$, we get\n$$\na_{n-2} = a^{1/a},\\ a_{n-3} = a^{1/a^2}, \\dots\n$$\nNow by looking at $a_{n-1}$ and $a_{n-2}$, we conclude\n$$\na_{n-1} = a_{n-2}^{a_{n-1}} < a_{n-1}^{a_{n-2}} < 1 \\Rightarrow a_{n-1}^{a_{n-2}} \\notin S\n$$\nThis implies $a_{n-2}^{a_{n-1}} \\in S$. Since $a_{n-2}^{a_{n-1}} > a_{n-2}^{a_n} = a_{n-1}$, we get $a_{n-2}^{a_{n-1}} = a_n$. So\n$$\na_{n-2}^{a_{n-1}} = (a^{1/a^2})^{(a^{1/a})} = a \\implies a^{(a^{1/a})-2} = a \\Rightarrow a^{1/a-2} = 1\n$$\nBut $a \\ne 1$ and so $a = \\frac{1}{2}$. Therefore, $a_{n-1} = \\frac{1}{2}$, $a_{n-2} = \\frac{1}{4}$ and $a_{n-3} = \\frac{1}{16}$. Now since $n > 4$, $a_{n-4} = \\frac{1}{256} \\in S$ but it is easy to see none of $a_{n-3}^{a_{n-4}}$ and $a_{n-4}^{a_{n-3}}$ is in $S$. So there is no powerful set with more than 4 elements.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32668, "subject": "Mathematics (Multi-modal)", "question": "We call a spatial polygon (a polygon in the three dimensional space) **Latticelike** if its edges are parallel to the coordinate axes.\n\n![](attached_image_1.png)\n\na) For an arbitrary Latticelike polygon, any two consecutive edges form a right angle that lies in either $xy$, $yz$ or $zx$ plane. Prove that the number of angles of these three kinds have the same parity.\nb) A Latticelike polygon is called an Inscribed Latticelike polygon if there exists a point in space that has equal distances from every vertex of the polygon. Prove that if a hexagon is not planar (i.e. there doesn't exist a plane containing all six vertices), then\nit's an Inscribed Latticelike polygon.\nc) Does there exist a Latticelike 2014-gon with distinct vertices for which there exists a plane that intersects every edge of it in an inner point (i.e. a point other than its two vertices)?\nd) *a*, *b* and *c* are three natural numbers greater than 1. Prove that one can find three points in plane having mutual distance equal to *a*, *b* and *c*, if and only if there exists a Latticelike polygon with *a*, *b* and *c* edges in each of the three coordinate directions.", "options": [], "answer": "Detailed solution", "solution": "First, we set some notations.\n\n| | Description |\n|---|---------------------------------------------|\n| A | Number of sides parallel to the $x$ axis |\n| B | Number of sides parallel to the $y$ axis |\n| C | Number of sides parallel to the $z$ axis |\n| X | Number of angles parallel to the $yz$ plane |\n| Y | Number of angles parallel to the $zx$ plane |\n| Z | Number of angles parallel to the $xy$ plane |\n\na) Consider a side parallel to the $x$ axis. Two vertices of this side are vertices of two angles which are in the $xy$ or $zx$ plane. On the other hand, each angle parallel to the $xy$ plane has a side parallel to the $y$ axis and a side parallel to the $x$ axis. Similar arguments for other directions imply\n$$\nY + Z = 2A, \\quad Z + X = 2B, \\quad X + Y = 2C\n$$\nTherefore, $X$, $Y$ and $Z$ have the same parity.\n\nb) According to the part (a), we have two cases for a lattice hexagon which is not planar.\n$$\n\\bullet X = Y = Z = 2.\n$$\n$$\n\\bullet \\{X, Y, Z\\} = \\{0, 2, 4\\}.\n$$\nIn the first case, we can divide the polygon into two rectangles. Now consider the lines $l$ and $l'$ perpendicular to the plane of each rectangle at its center. The plane passing through the centers of these two rectangles and the midpoint of their common side is perpendicular to both of rectangle planes. Therefore, this plane contains lines $l$ and $l'$. Since $l$ and $l'$ are coplanar, they meet each other at some point $O$ which has equal distance from all vertices of the polygon.\nIn the second case, according to the equations of the part (a), we have only one side parallel to one of axes. But this is contradiction, because we must have at least two sides parallel to each coordinate axis.\n\nc) There exists such polygon. We will use $A_1, A_2, \\dots, A_{2014}$ for its vertices. We define\n$$\nA_n = \\begin{cases}\n(k, k, 0) & n = 2k + 1,\\ 1 \\le n \\le 1007 \\\\\n(k, k - 1, 0) & n = 2k,\\ 1 \\le n \\le 1007 \\\\\n(503 - k, 503 - k, 1) & n = 1007 + 2k + 1,\\ 1008 \\le n \\le 2014 \\\\\n(503 - k, 503 - k + 1, 1) & n = 1007 + 2k,\\ 1008 \\le n \\le 2014\n\\end{cases}\n$$\nIt is easy to see that the plane $2x - 2y + 2z = 1$ passes through the midpoints of all sides of the polygon.\n\nd) Referring to the equations in the part (a), we have\n$$\nX + Y + 2Z = 2A + 2B\n$$\nso\n$$\n2C + 2Z = 2A + 2B,\\ C + Z = A + B\n$$\nhence\n$C < A + B$\nBy similar arguments, we can show $A < B + C$ and $B < C + A$. Hence, $A$, $B$ and $C$ are sides of a triangle.\nFor the converse, suppose that we have a triangle with sides $c \\le b \\le a$. We set\n$n = \\frac{b+c-a}{2}$. First we draw $b+a-c$ sides in the $xy$ plane parallel to the $x$ and $y$ axes, alternatively ($\\frac{b+a-c}{2}$ parallel to the $x$ axis and $\\frac{b+a-c}{2}$ parallel to the $y$ axis). Next, we $\\frac{c+a-b}{2}$ sides parallel to $x$ and $z$ axes. Now we have $n$ number of sides parallel to the $y$ and $z$ axes remained. We can draw them to close the polygon.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 32669, "subject": "Mathematics (Multi-modal)", "question": "Consider an $n \\times n$ array of points. For a subset $A$ of the edges of this array (i.e. the lattice edges), we denote by $V(A)$ the set of vertices of $A$ and by $J(A)$ the set of connected components of $A$. For each natural number $l$, prove that\n$$\n\\frac{l}{2} \\le \\min_{|A| \\ge l} (|V(A)| - |J(A)|) \\le \\frac{l}{2} + \\sqrt{\\frac{l}{2}} + 1.\n$$\n(For a set $X$, by $|X|$ we mean the number of elements of $X$).", "options": [], "answer": "Detailed solution", "solution": "First we prove the lower bound. Throughout the solution, we denote by $v_i$ and $l_i$ the number of vertices and edges of the $i$-th connected component, respectively. Each lattice point has 4 adjacent lattice points, and so the degree of each vertex in a connected component is at most 4. Clearly, the degree of the rightmost vertex in each row of a connected component is at most 3 and similar statement holds for the leftmost vertex in each row, and the topmost and the bottommost vertex in each column of a connected component. Thus, we have at least 4 vertices of degree 3 and so\n$$\n2l_i = \\text{Sum of Degrees in the } i\\text{-th Connected Component} \\le 4v_i - 4\n$$\nSumming these inequalities for all connected components yields\n$$\n2|A| \\le 4 \\sum v_i - 1 \\Rightarrow \\frac{l}{2} \\le |V(A)| - |J(A)|\n$$\nAnd this implies the left inequality.\n\nNow we go to the right inequality. We know that there are $(n+1)^2$ vertices and $2n(n+1)$ edges in an $(n+1) \\times (n+1)$ array of points. Let $n$ be the greatest positive integer such that $2n(n+1) \\le l$. So we can write $l = 2n(n+1) + k$, where $0 \\le k < 4(n+1)$ is an integer. We will introduce a graph with $l$ edges, satisfying the right inequality. Firstly, consider an $n \\times n$ square, which has $2n(n+1)$ edges. If $k > 0$, we start to add some edges to the square. Suppose that the point $(0,0)$ is the leftmost point of the top side of the square. We add the edge connecting $(-1,0)$ to $(0,0)$. Then edges connecting $(-1,-1)$ to $(-1,0)$ and $(0,-1)$. In the same manner, if we need more edges we choose the next edge on the square perimeter (counterclockwise) and add two edges to the graph using that edge. Let $t$ be the number of sides in the square perimeter, which have been used in our process. Thus, we have added $t + 1 + \\lfloor \\frac{k-t}{2} \\rfloor$ new vertices for constructing $k$ edges. We know $t \\le \\lfloor \\frac{k}{2(n+1)} \\rfloor$. Therefore, we have $(n+1)^2 + t + \\frac{k-t}{2} + 1$ vertices in one connected component. So we must prove\n$$\n(n+1)^2 + \\frac{k+t}{2} < \\frac{l}{2} + \\sqrt{\\frac{l}{2}} + 1 = n(n+1) + \\frac{k}{2} + \\sqrt{n(n+1) + \\frac{k}{2}} + 1\n$$\nWhich is in turn equivalent to\n$$\nn^2 + tn + \\frac{t^2}{4} < n^2 + n + \\frac{k}{2}\n$$\nIf $t = 1$, the inequality is obvious. And if $t = 2$, the inequality will be $n + 1 \\le \\frac{k}{2}$ which is again true because $2 = t = \\lceil \\frac{k}{2(n+1)} \\rceil$ and so $k \\ge 2(n + 1)$. So the assertion is proved.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 32670, "subject": "Mathematics (Multi-modal)", "question": "Quadrilateral $ABCD$ is both inscribed and circumscribed. Let $E$ be the intersection point of $AD$ and $BC$, $F$ the intersection point of $AB$ and $CD$, $S$ the intersection point of $AC$ and $BD$ and $O$ the circumcenter of quadrilateral $ABCD$. $E'$ and $F'$ are selected on $AB$ and $AD$ such that $\\angle BEE' = \\angle AEE'$ and $\\angle AFF' = \\angle DFF'$. Let $M$ be the midpoint of arc $BAD$ of the circumcircle of the quadrilateral and $X$ a point collinear with $O$ and $E'$ such that $\\frac{XA}{XB} = \\frac{EA}{EB}$. Also let $Y$ be a point collinear with $O$ and $F'$ such that $\\frac{YA}{YD} = \\frac{FA}{FD}$. Prove that the circle with diameter $OS$, the circumcircle of triangle $OAM$ and the circumcircle of triangle $OXY$ are co-axis.", "options": [], "answer": "Detailed solution", "solution": "An inversion with center $O$ and constant $r^2$ ($r$ is the radius of the circumcircle of quadrilateral), takes the circle with diameter $OS$ to the line $EF$ and the circumcircle of the triangle $OAM$ to the line $AM$. Furthermore, since $XO$ is the bisector of $\\angle AXB$ and $OA = OB$, we get the quadrilateral $AXBO$ is cyclic and so $OE' \\cdot OX = r^2$. Similarly, $OF' \\cdot OY = r^2$. Therefore, under this inversion the circumcircle of triangle $OXY$ maps to the line $E'F'$. So it is enough to prove that the line $EF$, $E'F'$ and $AM$ are concurrent.\n\nDenote by $\\omega$, $\\omega_E$ and $\\omega_F$ the incircles of quadrilateral $ABCD$, triangle $EAB$ and triangle $FAD$, respectively. Now $E$ and $E'$ are the external and internal homothetic centers of $\\omega_E$ and $\\omega$, respectively. In the same manner $F$ and $F'$ are the external and internal homothetic centers of $\\omega_F$ and $\\omega$, respectively. Therefore, $EF$ and $E'F'$ meet at the internal homothetic center of $\\omega_F$ and $\\omega_E$, say $R$. On the other hand, $AM$ is the bisector of $\\angle EAB = \\angle FAD$ and so is the line of centers of $\\omega_F$ and $\\omega_E$. Thus, $R$ the internal homothetic center of $\\omega_E$ and $\\omega_F$ lies on $AM$. So we have proved that the lines $EF$, $E'F'$ and $AM$ meet at $K$, which completes the proof.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32671, "subject": "Mathematics (Multi-modal)", "question": "Polynomial $p(x) \\in \\mathbb{R}[x]$ is of odd degree $m$ greater than one. Also $f : \\mathbb{R} \\to \\mathbb{Z}$ is a function such that for each real number $x$, we have $p(f(x)) = f(p(x))$.\n\na) Prove that the range of function $f$ is a finite set.\n\nb) If $f$ is a non-constant function, prove that the equation $p(x) = x$ has at least two distinct real solutions.\n\nc) Prove that for each natural number $n > 1$, there exist a function $f$ with a range containing exactly $n$ members and a polynomial $p(x)$ that satisfy all the aforementioned conditions.", "options": [], "answer": "Detailed solution", "solution": "First we claim that $p : \\mathcal{R}(f) \\to \\mathcal{R}(f)$ is a surjective function, where by $\\mathcal{R}(f)$ we mean the range of the function $f$.\n$$\ny \\in \\mathcal{R}(f) \\Rightarrow \\exists x_0 \\in \\mathbb{R}; f(x_0) = y \\Rightarrow p(y) = p(f(x_0)) = f(p(x_0)) \\Rightarrow p(y) \\in \\mathcal{R}(f)\n$$\n---\nSo $p: \\mathcal{R}(f) \\to \\mathcal{R}(f)$ is indeed a function. Let $y \\in \\mathcal{R}(f)$ be an arbitrary element. Thus, there is some $x_0 \\in \\mathbb{R}$ such that $f(x_0) = y$. Note that since $p$ has odd degree there is $z \\in \\mathbb{R}$ such that $p(z) = x_0$ and therefore,\n$$\ny = f(x_0) = f(p(z)) = p(f(z))\n$$\nIt means that $y$ is the image of $f(z) \\in \\mathcal{R}(f)$ under $p$ and so $p: \\mathcal{R}(f) \\to \\mathcal{R}(f)$ is surjective.\n\na) Assume to the contrary that $\\mathcal{R}(f)$ is not finite. Since $\\deg(P)$ is odd we can find $N > 0$ such that\n$$\nx > N \\Rightarrow p(x) > x, \\quad x < -N \\Rightarrow p(x) < x\n$$\nIf $\\mathcal{R}(f)$ contains infinitely many positive and infinitely many negative elements, we can choose $x_0, y_0 \\in \\mathcal{R}(f)$ such that $y_0 < -N < N < x_0$. Note that an element $b \\in p^{-1}(a)$, where $a \\in \\mathcal{R}(f) \\cap [y_0, x_0]$ must be in $\\mathcal{R}(f) \\cap [y_0, x_0]$. Because if $b < y_0$, then $p(b) = a < b < y_0$ and if $x_0 < b$, then $p(b) = a > b > x_0$ which are not possible. On the other hand, $f(x_0) > x_0$ and $f(y_0) < y_0$. Now since $\\mathcal{R}(f) \\cap [y_0, x_0]$ is a finite set (all its elements are integers), there must be some element which is not covered by elements of $\\mathcal{R}(f)$ under $p$ and this contradicts because $p: \\mathcal{R}(f) \\to \\mathcal{R}(f)$ was surjective. The argument in the case which $\\mathcal{R}(f)$ contains only finitely many positive or negative integers are similar.\n\nb) Since $\\deg(p(x)) > 1$ is an odd number, $p(x) - x$ has odd degree. Therefore, it has at least one real root $x_0$. Suppose that this polynomial has no real root other than $x_0$. Thus, $p(x) > x$ for $x > x_0$ and $p(x) < x$ for $x < x_0$.\nOn the other hand, we have $p(f(x_0)) = f(p(x_0)) = f(x_0)$ and since $x_0$ was the unique solution of $p(x_0) = x_0$, we get $f(x_0) = x_0$. Suppose that $\\mathcal{R}(f) = \\{x_{-m} < \\cdots < x_{-1} < x_0 < x_1 < \\cdots < x_n\\}$. If $n > 0$, $p(x_n) > x_n$ and this contradicts because $p(\\mathcal{R}(f)) \\subseteq \\mathcal{R}(f)$. So $n = 0$. Similarly, $m = 0$ and therefore, $|\\mathcal{R}(f)| = 1$. But we assumed that $|\\mathcal{R}(f)| \\ge 2$.\n\nc) Suppose that $z, y_1, \\dots, y_m$ are $n = m+1$ arbitrary distinct integers. Using Lagrange Interpolation, we can find a polynomial $p(x) \\in \\mathbb{R}[x]$ such that\n$$\np(z) = z, \\quad p(y_1) = y_2, \\quad p(y_2) = y_3, \\quad \\dots, \\quad p(y_m) = y_1\n$$\nIf it is necessary by changing $x^k(x-z)(x-y_1)\\cdots(x-y_m) + p(x)$ with $p(x)$ ($k \\in \\mathbb{N}$), we can assume that $p$ is a monic polynomial of odd degree. Now we define function $f$ as follows. If there is some integer $k \\ge 0$ and $1 \\le i \\le m$ such that $p^k(x) = y_i$, set $f(x) = y_{i-k}$ (Indices are assumed to be modulo $m$). Note that if $p^{k_1}(x) = y_i$ and $p^{k_2}(x) = y_j$, $y_{i-k_1} = y_{j-k_2}$. Thus, there is no ambiguity in the definition. Otherwise, define $f(x) = z$. We claim that this definition satisfies problem statement.\n* If $f(x) = y_i$, there is some integer $k$ such that $p^k(x) = y_{i+k}$. Now $p^k(p(x)) = p(y_{i+k}) = y_{i+k+1}$ and so $f(p(x)) = y_{i+k+1-k} = y_{i+1} = p(y_i) = p(f(x))$.\n* If $f(x) = z$, then obviously $f(p(x)) = z$ and so $f(p(x)) = z = p(z) = p(f(x))$.\nTherefore, the proof is complete.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 32672, "subject": "Mathematics (Multi-modal)", "question": "For positive real numbers $a$, $b$, $c$ and $d$ such that $\\sum_{cyc} \\frac{1}{ab} = 1$, prove that\n$$\nabcd + 16 \\geq 8\\sqrt{(a+c)\\left(\\frac{1}{a} + \\frac{1}{c}\\right)} + 8\\sqrt{(b+d)\\left(\\frac{1}{b} + \\frac{1}{d}\\right)}.$$", "options": [], "answer": "Detailed solution", "solution": "First note that $(a+c)\\left(\\frac{1}{a}+\\frac{1}{c}\\right) = \\frac{a}{c} + \\frac{c}{a} + 2 = \\left(\\sqrt{\\frac{a}{c}} + \\sqrt{\\frac{c}{a}}\\right)^2$ and so\n$$\n\\sqrt{(a+c)\\left(\\frac{1}{a}+\\frac{1}{c}\\right)} = \\sqrt{\\frac{a}{c}} + \\sqrt{\\frac{c}{a}}\n$$\nSimilarly $\\sqrt{(b+d)\\left(\\frac{1}{b}+\\frac{1}{d}\\right)} = \\sqrt{\\frac{b}{d}} + \\sqrt{\\frac{d}{b}}$.\nOn the other hand, for the left hand side of inequality, because of the hypothesis $\\sum_{cyc} \\frac{1}{ab} = 1$, we have\n$$\nabcd = (a+c)(b+d)\\left(\\frac{1}{a}+\\frac{1}{c}\\right)\\left(\\frac{1}{b}+\\frac{1}{d}\\right) = \\left(\\sqrt{\\frac{a}{c}}+\\sqrt{\\frac{c}{a}}\\right)^2\\left(\\sqrt{\\frac{b}{d}}+\\sqrt{\\frac{d}{b}}\\right)^2\n$$\nSo we must prove $X^2Y^2 + 16 \\ge 8(X + Y)$, where $X = \\sqrt{\\frac{a}{c}} + \\sqrt{\\frac{c}{a}}$ and $Y = \\sqrt{\\frac{b}{d}} + \\sqrt{\\frac{d}{b}}$. Note that by AM-GM inequality $X \\ge 2$ and $Y \\ge 2$. Therefore, $(X - 1)(Y - 1) \\ge 1$ and consequently, $XY \\ge X + Y$. This implies the assertion, because $(XY)^2 + 16 \\ge 8XY \\ge 8(X + Y)$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32673, "subject": "Mathematics (Multi-modal)", "question": "Point $D$ is the intersection point of the angle bisector of vertex $A$ with side $BC$ of triangle $ABC$, and point $E$ is the tangency point of the inscribed circle of triangle $ABC$ with side $BC$. $A_1$ is a point on the circumcircle of triangle $ABC$ such that $AA_1 \\parallel BC$. If we denote by $T$ the second intersection point of line $EA_1$ with the circumcircle of triangle $AED$ and by $I$ the incenter of triangle $ABC$, prove that $IT = IA$.", "options": [], "answer": "Detailed solution", "solution": "Let $E_1$ be the reflection of $E$ with respect to the midpoint of $BC$ and $X$ the intersection point of $AE_1$ and $EA_1$. We claim that $IX \\parallel BC$. For this reason, we have (Suppose that $R$ is the radius of circumcircle of $ABC$ and $\\angle B \\geq \\angle C$).\n$$\n\\begin{aligned}\n\\frac{AX}{XE_1} &= \\frac{AA_1}{EE_1} = \\frac{AA_1}{AC - AB} \\\\\n\\frac{AI}{IE} &= \\frac{AB}{BD} = \\frac{AC}{CD} = \\frac{AB + AC}{BC}\n\\end{aligned}\n$$\nSo referring to the *Thales' Theorem*, we must prove $AA_1 \\cdot BC = AC^2 - AB^2$.\nWe have $AA_1 = BC - 2BH = BC - 2AB \\cdot \\cos(\\angle B)$, where $H$ is the foot of perpendicular from $A$ to $BC$ and on the other hand, by *The Law of Cosines* we have $AC^2 - AB^2 = BC^2 - 2AB \\cdot BC \\cos(\\angle B)$. Therefore, the claim is proved.\nNow since the quadrilateral $DEAT$ is cyclic and $AA_1 \\parallel IX$, we get that the quadrilateral $IATX$ is cyclic. Also, since pairs $(E, E_1)$ and $(A, A_1)$ are symmetric with respect to the perpendicular bisector of the side $BC$, we have $XE = XE_1$ and so\n$$\n\\angle ATI = \\angle AXI = \\angle XE_1E = \\angle XEE_1 = \\angle IXE = \\angle TAI\n$$\nThus, $IT = IA$.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 32674, "subject": "Mathematics (Multi-modal)", "question": "For each nonnegative integer $n$, polynomial $K_n(x_1, x_2, ..., x_n)$ is defined recursively as follows,\n$$\n\\begin{array}{l}\nK_0 = 1 \\\\\nK_1(x_1) = x_1 \\\\\nK_n(x_1, \\dots, x_n) = x_n K_{n-1}(x_1, \\dots, x_{n-1}) + (x_n^2 + x_{n-1}^2) K_{n-2}(x_1, \\dots, x_{n-2}).\n\\end{array}\n$$\nProve that $K_n(x_1, x_2, ..., x_{n-1}, x_n) = K_n(x_n, x_{n-1}, ..., x_2, x_1)$.", "options": [], "answer": "Detailed solution", "solution": "Consider a $1 \\times n$ table with cells labelled by variables $x_1, x_2, \\dots, x_n$ from left to right.\n\n| $x_1$ | $x_2$ | ... | $x_n$ |\n\nWe assign a polynomial in terms of variables $x_1, x_2, \\dots, x_n$ to each tiling of this table by $1 \\times 1$ and $1 \\times 2$ tiles, as follows. We define the weight of $1 \\times 1$ tiles to be the variable of its cell in the table and the weight of a $1 \\times 2$ tile to be the sum of squares of variables of its cells. At the end, we associate to each tiling the product of weights of its tiles. For example, for $n = 4$, there are only 5 ways of tiling a $1 \\times 4$ table with the mentioned tiles:\n\n| $x_1$ | $x_2$ | $x_3$ | $x_4$ |\n|-------|-------|-------|-------|\n| $x_1^2 + x_2^2$ | $x_3^2 + x_4^2$ |\n| $x_1^2 + x_2^2$ | $x_3$ | $x_4$ |\n| $x_1$ | $x_2$ | $x_3^2 + x_4^2$ |\n| $x_1$ | $x_2^2 + x_3^2$ | $x_4$ |\n| $x_1$ | $x_2$ | $x_3$ | $x_4$ |\n\nAnd the polynomials assigned to these tilings are $(x_1^2 + x_2^2)(x_3^2 + x_4^2)$, $(x_1^2 + x_2^2)x_3x_4$, $x_1x_2(x_3^2 + x_4^2)$, $x_1(x_2^2 + x_3^2)x_4$ and $x_1x_2x_3x_4$.\n\nNow for each integer $n \\ge 0$, we define the polynomial $P_n$ to be the sum of all polynomials corresponding to the tilings of the $1 \\times n$ table. For example,\n$$\nP_4(x_1, x_2, x_3, x_4) = (x_1^2+x_2^2)(x_3^2+x_4^2)+(x_1^2+x_2^2)x_3x_4+x_1x_2(x_3^2+x_4^2)+x_1(x_2^2+x_3^2)x_4+x_1x_2x_3x_4\n$$\nNote that there is only the empty tiling in the case $n = 0$ and there is one trivial tiling when $n = 1$. Therefore, $P_0() = 1$, $P_1(x_1) = x_1$.\n\nWe claim that for each integer $n \\ge 0$, $P_n(x_1, \\dots, x_n) = K_n(x_1, \\dots, x_n)$. For proving the claim, since $P_0 = K_0$ and $P_1 = K_1$, it suffices to show that $P_n$ satisfies the same recursive relation as $K_n$. This is easy by looking at the last tile of each tiling (the tile covering $x_n$). We have two cases.\n\n1. The last tile of tiling is a $1 \\times 2$ tile. The part of $P_n$ corresponding to these tilings is $(x_{n-1}^2 + x_n^2)P_{n-2}(x_1, \\dots, x_{n-2})$, because $x_{n-1}^2 + x_n^2$ is the weight of the last tile and the remaining table after removing this tile has $n-2$ cells.\n\n2. The last tile of tiling is a $1 \\times 1$ tile. The part of $P_n$ corresponding to these tilings is $x_n P_{n-1}(x_1, \\dots, x_{n-1})$ because $x_n$ is the weight of the last tile and the remaining table after removing this tile has $n-1$ cells.\n\nSo the proof of the claim is finished. Finally, note that reflection of each tiling with respect to the vertical axis of symmetry of the table is again a tiling. Therefore, if we label the cells by $x_n, x_{n-1}, \\dots, x_1$ rather than $x_1, x_2, \\dots, x_n$, we have again the polynomial $K_n(x_1, x_2, \\dots, x_n)$. So $K_n(x_1, x_2, \\dots, x_n) = K_n(x_n, \\dots, x_2, x_1)$ as desired.", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 32675, "subject": "Mathematics (Multi-modal)", "question": "Find the maximum number of rectangles with sides equal to $1$ and $2$ and parallel to the coordinate axes such that each two have an area equal to $1$ in common.", "options": [], "answer": "5", "solution": "The answer is $5$. The picture below shows five $1 \\times 2$ rectangles mutually intersecting at rectangles with unit area.\n![](attached_image_1.png)\nIt is enough to show that there are no six $1 \\times 2$ horizontal or vertical rectangles with such a property. Assume that there are $6$ such rectangles.\nNote that it is obvious that the intersection of two rectangles with parallel sides is again a rectangle. In solution first we show that there are at most three vertical and three horizontal rectangles. At the end we show that there are not three horizontal and three vertical rectangles satisfying the intersection property. For these we prove some lemmas.\n\n**Lemma 1.** *Composition of a reflection with respect to a point and a translation in the plane, is a reflection, too.*\n*Proof.* Let $O$ be the center of the reflection, and $\\vec{v}$ be the vector of the translation. Then by Thales' Theorem it is easy to see the composition is a reflection with respect to point $O'$ such that $OO' = \\frac{1}{2}\\vec{v}$.\n\n**Lemma 2.** Let $K$ be a strictly convex shape in the plane. For any real number $r > 0$ and any direction in the plane, there are at most two slices of $K$ with length $r$ parallel to the given direction. (We mean by a slice of $K$, intersection of a line in the plane with $K$. Obviously each slice is a line segment.)\n*Proof.* Assume to the contrary there are three slices of length $r$ parallel to the given direction, say $AA'$, $BB'$ and $CC'$. Suppose that $\\overrightarrow{AA'} = \\overrightarrow{BB'} = \\overrightarrow{CC'}$ and $BB'$ lies between two others.\nIf $B$ or $B'$ is outside the parallelogram $AA'C'C$, then the other point lies in the interior of $K$ and therefore the intersection of line containing $BB'$ has length greater than $r$.\n![](attached_image_2.png)\nIf $B$ lies on $AC$ and $B'$ lies on $A'C'$, then since $K$ is strictly convex there must be a point of $K$ between lines $AA'$ and $CC'$ outside the parallelogram, contradicts with the length $r$ of slice containing $BB'$.\n![](attached_image_3.png)\n\n**Lemma 3.** There are no four horizontal or four vertical rectangles satisfying the conditions.\n*Proof.* Assume that there are at least $4$ horizontal rectangles. By a horizontal scaling with factor $\\frac{1}{2}$ we go to the case that there are $4$ unit squares with sides parallel to the axes, such that mutually intersecting at rectangles of area $\\frac{1}{2}$.\nEvery unit square determined uniquely by its center. It is easy to see that two unit squares with centers $(x, y)$ and $(x', y')$ intersect at a rectangle of area $\\frac{1}{2}$ iff\n$$(1 - |x - x'|)(1 - |y - y'|) = \\frac{1}{2} \\quad (*)$$\nLocus of points $(x', y')$ satisfying (*) (for fixed $(x, y)$) is boundary of a strictly convex shape in the plane (Look at the shape below). We call such shape an oval with center $(x, y)$.\n![](attached_image_4.png)\nSuppose that $A = (x_A, y_A)$, $B = (x_B, y_B)$, $C = (x_C, y_C)$ and $D = (x_D, y_D)$ are the centers of these $4$ squares such that $y_A \\le y_B \\le y_C \\le y_D$. Note that oval of $B$ is a translation of oval of $A$ with vector $\\vec{AB}$. By lemma $2$ these two ovals intersect in at most two points (Note that these ovals are strictly convex because they are intersection of $4$ strictly convex shapes). These two points must be $C$ and $D$. Since $A$ is center of symmetry of oval of $A$, by lemma $1$, these two intersection points are symmetric with respect to the midpoint of $AB$. Note that $y_B > y_A$, because if $y_A = y_B$, $y_C$ or $y_D$ become less than $y_A = y_B$ contradicts with the minimality of $y_A$. Now we have\n$$y_C \\le \\frac{y_C + y_D}{2} = \\frac{y_A + y_B}{2} < y_B$$\nContradicts with $y_B \\le y_C$.\n![](attached_image_5.png)\n\n**Lemma 4.** Every horizontal rectangle intersects every vertical rectangle in a $1 \\times 1$ square.\n*Proof.* Intersection of such rectangles is a rectangle with sides at most $1$. As intersection of every two rectangles has a unit area, both sides must be unit. □\n\nUsing lemma $3$, we get that $3$ rectangles are vertical (V) and other $3$ are horizontal (H). Consider three horizontal rectangles with their centers sorted by $x$. Fix the middle one and call it $R_m$. Call left and right rectangles $R_l$ and $R_r$ respectively. Without loss of generality, we can assume that $R_r$ is not upper than $R_l$. As in the figure below $R_m$, $R_r$ intersect in a rectangle with length $\\beta$ and $R_m$, $R_l$ intersect in a rectangle with length $\\alpha$. Left side of $R_r$, right side of $R_l$, top side of $R_l$ and bottom side of $R_m$ construct a rectangle named $R_H$. Width of $R_H$ is $w_H$ and height of it is $h_H$. These variables are based on rectangles in (H), we can define the same variables in (V) named $R_V$, $w_V$ and $h_V$.\n![](attached_image_6.png)\nReferring to the lemma $4$, every two rectangles, one in (V) and one in (H) intersect in a unit square. So every rectangle in (V) must have a horizontal side in $R_H$ this means $h_V \\le w_H$. Similarly we can show that $h_H \\le w_V$. Without loss of generality, assume that $w_V \\le w_H$. This yields:\n$$h_H \\le w_H$$\nNow we can calculate all variables in terms of $\\alpha, \\beta$ (note that $1 \\le \\alpha \\le \\beta \\le 2$). Intersection of $R_l, R_r$ is a rectangle with sides $\\alpha + \\beta - 2, 1 - \\frac{1}{\\beta} + \\frac{1}{\\alpha}$ so:\n$$(\\alpha + \\beta - 2) \\times \\left(1 - \\frac{1}{\\beta} + \\frac{1}{\\alpha}\\right) = 1 \\quad (1)$$\nWe had $h_H \\le w_H$. $h_H = 2 - \\frac{1}{\\alpha}$ and $w_H = \\alpha + \\beta - 2$ so:\n$$2 - \\frac{1}{\\alpha} \\le \\alpha + \\beta - 2 \\quad (2)$$\nNow we change our variables to have simpler results. Assume that:\n$$\\alpha = a + 1 \\quad (0 \\le a \\le 1)$$\n$$\\beta = b + 1 \\quad (0 \\le b \\le 1)$$\nFrom (1) we have:\n$$\n\\begin{align*}\n& (b+a)\\left(1 - \\frac{1}{b+1} + \\frac{1}{a+1}\\right) = 1 \\\\\n\\Rightarrow \\quad & b - \\frac{b}{b+1} + \\frac{b}{a+1} + a - \\frac{a}{b+1} + \\frac{a}{a+1} = 1 \\\\\n\\Rightarrow \\quad & b^2 + b - b + \\frac{b(b+1)}{a+1} + ab + a - a + \\frac{ba}{a+1} + \\frac{a}{a+1} = b + 1 \\\\\n\\Rightarrow \\quad & Q(b) = b^2\\left(1 + \\frac{1}{1+a}\\right) + ba - \\frac{1}{a+1} = 0\n\\end{align*}\n$$\nFrom (2) we conclude that the above quadratic polynomial must have a root in the interval $[0, 1]$ satisfying the following condition:\n$$2 - \\frac{1}{a+1} \\le a + b \\Leftrightarrow \\underbrace{1 - \\frac{a^2}{a+1}}_{k} = 2 - a - \\frac{1}{a+1} \\le b$$\n$a \\in [0, 1]$ so $k \\in [0, 1]$. Coefficients of $Q$ are positive so $Q$ is ascending so to prove that $b$ cannot be a root of $Q$, it's enough to show that $Q(k) > 0$. $Q(k) \\ge k^2 + ka - \\frac{1}{a+1}$ so we prove that $k^2 + ka - \\frac{1}{a+1} \\ge 0$.\n$$\n\\begin{align*}\n& k^2 + ka - \\frac{1}{a+1} \\ge 0 \\\\\n\\Leftrightarrow \\quad & (1 - \\frac{a^2}{a+1})^2 + (1 - \\frac{a^2}{a+1})a - \\frac{1}{a+1} \\ge 0 \\\\\n\\Leftrightarrow \\quad & (a + 1 - a^2)^2 + a(a + 1)(a + 1 - a^2) \\ge a + 1 \\\\\n\\Leftrightarrow \\quad & (a + 1 - a^2)(2a + 1) \\ge a + 1\n\\end{align*}\n$$\nEquivalently,\n$$2a(a+1) - a^2(2a+1) = -2a^3 + a^2 + 2a = -a(2a^2 - a - 2) \\geq 0$$\n$a \\in [0, 1]$ so the last inequality is obvious because $2a^2 - a - 2 = (a^2 - a) + (a^2 - 1) - 1$. Thus we showed that there is no $a$ with those algebraic properties. This means there is no $\\alpha$ with that geometric properties and this is a big contradiction because $\\alpha$ was a length in our figure. Now we can say there are no six $1 \\times 2$ rectangles mutually intersecting at rectangles with unit area. This yields there are no $n > 5$ such rectangles.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32676, "subject": "Mathematics (Multi-modal)", "question": "Suppose that $a_1, a_2, a_3, \\dots$ and $b_1, b_2, b_3, \\dots$ are two sequences of real numbers. These sequences are said to be Co-Algebraic if a non-zero two-variable polynomial $P(x, y)$ with real coefficients exists such that for each natural number $n$, $P(a_n, b_n) = 0$.\n\na) Prove that sequences $n$ and $2^n$ (for each natural number $n$) are not Co-Algebraic.\n\nb) Are sequences $2^n$ and $3^n$ (for each natural number $n$) Co-Algebraic?\n\nc) Suppose that $f(x, y)$ is a non-zero two-variable polynomial with real coefficients. Prove that there exists a natural number $n$ such that $f(2^n, 3^n)$ is not divisible by $5^n$.", "options": [], "answer": "a) Not co-algebraic. b) No. c) Such an index exists; for example one can take n = m + 4·5^k constructed as in the proof.", "solution": "a) Assume to the contrary that there exists a non-zero polynomial $P(x, y) \\in \\mathbb{R}[x, y]$ such that for every $n \\in \\mathbb{N}$, $P(n, 2^n) = 0$. Let $d$ be the degree of $P$ with respect to its second variable, $y$. $P(x, y)$ can be written as,\n$$\nP(x, y) = p_d(x)y^d + \\cdots + p_1(x)y + p_0(x),\n$$\nwhere $p_i$'s are polynomials in $x$ and $p_d$ is not zero.\nFor every $\\epsilon > 0$, there exists $N_1 > 0$ such that for every $n > N_1$, $|p_d(n)| > \\epsilon$. Furthermore, there exists $N_2 > 0$ such that for every $n > N_2$,\n$$\n|p_0(n)|, \\dots, |p_{d-1}(n)| < (\\sqrt{2})^n = 2^{\\frac{n}{2}}.\n$$\nNow for every $n > \\max\\{N_1, N_2\\}$,\n$$\n\\begin{align*}\n|P(n, 2^n)| &= |p_d(n)2^{dn} + \\cdots + p_1(n)2^n + p_0(n)| \\\\\n&\\ge |p_d(n)2^{dn}| - \\left( |p_{d-1}(n)2^{(d-1)n}| + \\cdots + |p_1(n)2^n| + |p_0(n)| \\right) \\\\\n&> \\epsilon 2^{dn} - 2^{\\frac{n}{2}}(1 + 2^n + \\cdots + 2^{(d-1)n}) \\\\\n&> \\epsilon 2^{dn} - 2^{(d-1)n + \\frac{n}{2} + 1} \\\\\n&= 2^{dn} (\\epsilon - 2^{-\\frac{n}{2}+1}).\n\\end{align*}\n$$\nSince $2^{-\\frac{n}{2}+1}$ approaches zero as $n$ approaches infinity, $|P(n, 2^n)|$ approaches infinity and cannot be zero for large values of $n$.\n\nb) No! Let $\\alpha = \\log_2 3$ (i.e., $2^\\alpha = 3$). It is easy to prove that $\\alpha$ is irrational. Suppose that the two mentioned sequences are Co-Algebraic and that there exists a non-zero polynomial $P(x, y)$ such that for every positive natural number $n$, $P(2^n, 3^n) = 0$. This polynomial is the sum of monomials of the form $c_{k,l}x^k y^l$, where $k$ and $l$ are nonnegative integers and $c_{k,l} \\neq 0$ is a real number. Thus $P(2^n, 3^n)$ is the sum of expressions of the form $c_{k,l}2^{nk}3^{nl} = c_{k,l}2^{n(k+\\alpha l)}$. Since $\\alpha$ is irrational, different pairs $(k, l)$ of integers lead to different values for $k+\\alpha l$. Let $\\beta$ be the maximum value of $k + \\alpha l$ among all of the pairs $(k, l)$ for which $c_{k,l}$ is not zero.\nTherefore, $P(2^n, 3^n)$ can be written as\n$$\nP(2^n, 3^n) = c_2 2^{\\beta n} + c_1 2^{\\beta_1 n} + \\dots + c_k 2^{\\beta_k n}, \\quad (*)\n$$\nwhere $c \\neq 0$ and $\\beta_i < \\beta$ for $1 \\le i \\le k$. Now, dividing both sides of (*) by $2^{\\beta n}$ results in\n$$\n\\frac{1}{2^{\\beta n}} P(2^n, 3^n) = c + c_1 2^{(\\beta_1 - \\beta)n} + \\dots + c_k 2^{(\\beta_k - \\beta)n}.\n$$\nThe left hand side approaches zero and the right hand side approaches $c$ as $n$ approaches infinity. This is a contradiction because it is assumed that $c \\neq 0$, and shows that two sequences $2^n$ and $3^n$ are not Co-Algebraic.\n\nc) According to part (b), there exists $m \\in \\mathbb{N}$ such that $f(2^m, 3^m) \\neq 0$. Let $k$ be the largest natural number such that $5^k|P(2^m, 3^m)$. It is claimed that if $n := m + 4 \\times 5^k$, then $f(2^n, 3^n)$ is not divisible by $5^{k+1}$, and since $k+1 < n$, not divisible by $5^n$ either. In order to prove it, note that $\\varphi(5^{k+1}) = 4 \\times 5^k$, and by Euler's theorem\n$$\n2^{4 \\times 5^k} \\stackrel{5^{k+1}}{\\equiv} 3^{4 \\times 5^k} \\stackrel{5^{k+1}}{\\equiv} 1.\n$$\nHence\n$$\nf(2^n, 3^n) = f(2^{m+4 \\times 5^k}, 3^{m+4 \\times 5^k}) \\stackrel{5^{k+1}}{\\equiv} f(2^m, 3^m) \\stackrel{5^{k+1}}{\\not\\equiv} 0.\n$$", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32677, "subject": "Mathematics (Multi-modal)", "question": "Suppose $a$, $b$, $c$ and $d$ are positive real numbers such that $\\frac{1}{a+1} + \\frac{1}{b+1} + \\frac{1}{c+1} + \\frac{1}{d+1} = 2$. Prove that\n$$\n\\sqrt{\\frac{a^2+1}{2}} + \\sqrt{\\frac{b^2+1}{2}} + \\sqrt{\\frac{c^2+1}{2}} + \\sqrt{\\frac{d^2+1}{2}} \\geq 3(\\sqrt{a} + \\sqrt{b} + \\sqrt{c} + \\sqrt{d}) - 8.\n$$", "options": [], "answer": "Detailed solution", "solution": "$$\n\\sum \\left( \\sqrt{\\frac{a^2+1}{2}} - \\sqrt{a} \\right) = \\sum \\frac{\\frac{a^2+1}{2} - a}{\\sqrt{\\frac{a^2+1}{2}} + \\sqrt{a}} = \\frac{1}{2} \\sum \\frac{(a-1)^2}{\\sqrt{\\frac{a^2+1}{2}} + \\sqrt{a}}\n$$\nAccording to Cauchy-Schwarz inequality, $\\sqrt{\\frac{a^2+1}{2}} + \\sqrt{a} \\le \\sqrt{2(\\frac{a^2+1}{2} + a)} = a + 1$, hence\n$$\n\\frac{1}{2} \\sum \\frac{(a-1)^2}{\\sqrt{\\frac{a^2+1}{2}} + \\sqrt{a}} \\ge \\frac{1}{2} \\sum \\frac{(a-1)^2}{a+1}.\n$$\nOn the other hand, $\\frac{(a-1)^2}{a+1} = (a-3) + \\frac{4}{a+1}$; therefore,\n$$\n\\frac{1}{2} \\sum \\frac{(a-1)^2}{a+1} = \\frac{1}{2} \\sum (a-3) + 2 \\underbrace{\\sum \\frac{1}{a+1}}_{2} = \\frac{1}{2} (\\sum a) - 2.\n$$\nNow, it suffices to prove that $\\frac{1}{2}(\\sum a) - 2 \\ge 2(\\sum \\sqrt{a}) - 8$, or equivalently, $3 + \\frac{1}{4} \\sum a \\ge \\sqrt{a}$, which can be deduced by the following AM-GM inequality\n$$\n3 + \\frac{1}{4} \\sum a = \\underbrace{\\sum \\frac{a}{a+1}}_{2} + \\sum \\frac{a+1}{4} = \\sum \\left( \\frac{a}{a+1} + \\frac{a+1}{4} \\right) \\ge \\sum \\sqrt{a}.\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32678, "subject": "Mathematics (Multi-modal)", "question": "A special computer can store algebraic expressions in its memory, which is unlimited and initially only expression $x$ is stored in it. This computer can perform the following operations:\n* If algebraic expression $f$ is stored in the computer's memory, $\\frac{1}{f}$ can be stored in it too (assuming that $f$ is not equivalent to zero).\n* If algebraic expressions $f$ and $g$ are stored in the computer's memory, $f+g$ and $f-g$ can be stored in it too ($f$ and $g$ can be equal).\nFor example, the following expressions can be stored in the computer's memory: $\\frac{1}{x}$, $x - \\frac{1}{x}$, $\\frac{1}{x-\\frac{1}{x}}$, $\\frac{1}{x-1}$ and ...\nFind all natural numbers $n$ for which $x^n$ or an expression equivalent to it can be stored in the computer's memory (two algebraic expressions on variable $x$ are called equivalent if for each value of $x$ belonging to the domain of both expressions, they are equal).", "options": [], "answer": "All odd natural numbers n", "solution": "For simplicity, $S$ is used to denote the set of all algebraic expressions that can be stored in the computer's memory. It is claimed that $x^n \\in S$ if and only if $n$ is odd.\nTo prove one part of the assertion made above, it is claimed that all of the expressions in $S$ are odd, i.e. $f(-x) = -f(x)$ for all expressions $f \\in S$. Since $x$ is an odd expression; and since $f \\pm g$ and $\\frac{1}{f}$ are all odd expressions if $f$ and $g$ are odd, it can be concluded that every expression in $S$ is odd. Using this claim and by noting that for even natural number $n$, $x^n$ is even, it can be concluded that $x^n \\notin S$ for all even natural numbers $n$.\nFor the other part, it will be shown by induction on $k$ that for every integer $k \\ge -1$, $x^{2k+1} \\in S$.\nThe base cases $k = -1, 0$ are trivial ($\\frac{1}{x}, x \\in S$). Suppose that $x^{2k-3}, x^{2k-1} \\in S$. The goal is to show that $x^{2k+1} \\in S$.\n\n$$\n\\left.\n\\begin{array}{l}\nx^{2k-3}, x^{2k-1} \\in S \\quad \\Rightarrow \\quad \\frac{1}{x^{2k-3}+x^{2k-1}} \\in S \\\\\nx^{2k-1} \\in S \\quad \\Rightarrow \\quad \\frac{1}{x^{2k-1}} \\in S \\\\\n\\frac{1}{x^{2k-1}} - \\frac{1}{x^{2k-3}+x^{2k-1}} \\in S,\n\\end{array}\n\\right\\} \\Rightarrow \\\\\n\\frac{1}{x^{2k-1}} - \\frac{1}{x^{2k-3}+x^{2k-1}} \\equiv \\frac{1}{x^{2k-1}+x^{2k+1}} \\in S.\n$$\nThis means that $x^{2k-1} + x^{2k+1} \\in S$ and since $x^{2k-1} \\in S$, it is concluded that $x^{2k+1} \\in S$. This completes the induction process, proving that $x^n \\in S$ for all odd natural numbers $n$.", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 32679, "subject": "Mathematics (Multi-modal)", "question": "Let $f_1 : \\mathbb{N} \\to \\mathbb{N}$ be a function. Function $f_2$ is constructed from $f_1$ such that for each $k \\in \\mathbb{N}$, $f_2(k)$ is the number of times $k$ has appeared in the range of $f_1$, i.e. $f_2(k)$ is the number of natural numbers $n$ for which $f_1(n) = k$.\nSuppose that the range of $f_1$ is such that $f_2$ can be defined over all natural numbers, so no number appears in the range of $f_1$ an infinite or zero number of times. Similarly, function $f_3$ can be constructed from function $f_2$ and consequently for each natural number $i$, function $f_{i+1}$ can be constructed from function $f_i$.\n\na) Prove that for each natural number $T$, there exists a function $f_1$ such that for each natural number $i$, $f_i$ is definable and also the sequence $f_1, f_2, f_3, \\dots$ is periodic with period $T$, i.e. $T$ is the smallest number such that $f_{T+1} = f_1$.\n\nb) Does there exist a function $f_1$ such that for each natural number $i$, $f_i$ is definable and these functions are mutually unequal?", "options": [], "answer": "For every positive integer T, there exists a starting function whose iterates are all definable and form a cycle of period T. For the second question, yes, there exists a starting function such that all iterates are definable and pairwise distinct.", "solution": "a) Consider a table with $T+1$ rows and an infinite number of columns (towards right) such that the first column is filled by numbers $1, 2, \\dots, T$ and $1$. An algorithm is introduced for filling the cells of the table, then $f_i(j)$ is defined as the value of the intersection cell of the $i^{th}$ row and the $j^{th}$ column of the table.\n\n| 1 | | | ... |\n|---|---|---|-----|\n| 2 | | | ... |\n| 3 | | | ... |\n|...| | | ... |\n| $T-1$ | | | ... |\n| $T$ | | | ... |\n| 1 | | | ... |\n\nLabel the cells of the table, except those of the first row, by $a_1, a_2, a_3, \\dots$, like the following table.\n\n| | | | | |\n|-----|-----|-----|-----|-----|\n| $a_1$ | $a_3$ | $a_6$ | $a_{10}$ | ... |\n| $a_2$ | $a_5$ | $a_9$ | | ... |\n| $a_4$ | $a_8$ | | | ... |\n| $a_7$ | | | | ... |\n| ... | | | | ... |\n| | | | | |\n\nIn each step of the algorithm, some cells of the table are filled in a way that after the $j^{th}$ step $a_j$ is filled. Suppose that $a_j$ is at the intersection of the $k^{th}$ row and the $l^{th}$ column.\n\ni. If $a_j$ was empty before the $j^{th}$ step, the smallest natural number that has not yet appeared in the table is written in $a_j$ at that step.\n\nii. The number in $a_j$ should be equal to the number of repetitions of $l$ in the $(k-1)^{th}$ row of the table $(*)$. For this reason, enough $l$'s should be put in the first empty cells of the $(k-1)^{th}$ row so that the number of $l$'s becomes equal to the number written in $a_j$. Using this algorithm, if $l > T$, before this step no $l$ exists in the $(k-1)^{th}$ row; and if $l \\le T$, at most one such $l$ exists (the one in the first column). The reason is that every number that has been written in the $(k-1)^{th}$ row before this step, except the first number, is written when the algorithm was used for the first $l-1$ cells of the row, and in those steps only numbers less than $l$ were written. Since the number in $a_j$ is positive, it was not less than the number of $l$'s in the $(k-1)^{th}$ row (before this step), so a sufficient number of $l$'s (maybe zero) can always be added to satisfy $(*)$.\n\niii. If $a_j$ is in the second row, after the previous step the numbers in the first row should be copied into the cells of the last row.\n\nUsing this algorithm, all of the cells of the table are filled with natural numbers, and if $f_i(j)$ is defined to be the number in the $j^{th}$ cell of the $i^{th}$ row, $f_i$'s satisfy all of the problem's conditions.\n\n| $a_1$ | $a_3$ | $a_6$ | $a_{10}$ | ... |\n| $a_2$ | $a_5$ | $a_9$ | $a_{14}$ | ... |\n| $a_4$ | $a_8$ | $a_{13}$ | | ... |\n| $a_7$ | $a_{12}$ | | | ... |\n| $a_{11}$ | | | | ... |\n| $\\vdots$ | $\\vdots$ | $\\vdots$ | $\\vdots$ | $\\vdots$ |\n\nb) Yes! To construct such functions an approach similar to the previous part is used, utilizing a table which is infinite from right and below. Like part (a), $j$ is written in the $j^{th}$ cell of the first column and the cells of the table, except those of the first row, are labeled by $a_1, a_2, \\dots$ like the following table.\n\n| 1 | | | | ... |\n|---|---|---|---|-----|\n| 2 | | | | ... |\n| 3 | | | | ... |\n| 4 | | | | ... |\n| 5 | | | | ... |\n| 6 | | | | ... |\n| $\\vdots$ | $\\vdots$ | $\\vdots$ | $\\vdots$ | $\\vdots$ |\n\nThe table can be filled using the algorithm of part (a) (since no bottom row exists in this table, part iii of the algorithm is not necessary). Like before, it can be showed that $a_j$ is filled at the $j^{th}$ step and if $a_j$ is the intersection of the $k^{th}$ row and the $l^{th}$ column, the number in $a_j$ is not less than the number of $l$'s in the $(k-1)^{th}$ row.\n\nAgain, if $f_i(j)$ is defined as the number in the intersection of the $i^{th}$ row and the $j^{th}$ column, $f_i$'s satisfy all of the problem's conditions; and since the numbers in the first column are all distinct, functions $f_i$ are mutually unequal.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32680, "subject": "Mathematics (Multi-modal)", "question": "A circle passing through vertices $B$ and $C$ of triangle $ABC$ intersects sides $AC$ and $AB$ at points $D$ and $E$, respectively. If $P$ is the intersection point of $BD$ and $CE$, $H$ is the foot of the perpendicular line from $P$ to $AC$ and $M$ and $N$ are the midpoints of $BC$ and $AP$, prove that triangles $MNH$ and $CAE$ are similar.", "options": [], "answer": "Detailed solution", "solution": "Let $K$ and $T$ be the reflections of $P$ with respect to $M$ and $H$, respectively. According to Thales' Theorem, triangles $AKT$ and $MNH$ are similar. On the other hand, for triangles $ABD$ and $AEC$, $\\angle EBD = \\angle ECD$ and $\\angle BAC$ appears in both triangles; therefore, these two triangles are similar. Now it suffices to prove that triangles $AKT$ and $ABD$ are similar, i.e. it must be shown that $\\angle BAD = \\angle KAT$ and $\\frac{AB}{AD} = \\frac{AK}{AT}$.\n\n![](attached_image_1.png)\n\nNote that these relations are equivalent to the similarity of triangles $ADT$ and $ABK$. But $T$ is the reflection of $P$ with respect to line $AC$, so triangles $ADT$ and $ADP$ are congruent and it suffices to show that triangles $APD$ and $ABK$ are similar.\n\nSince diameters of quadrilateral $BPCK$ bisect each other, it is a parallelogram. Thus $BK \\parallel CP$. This implies that\n$$\n\\angle ABK = \\angle AEC = 180^\\circ - \\angle BEC = 180^\\circ - \\angle BDC = \\angle ADB.\n$$\nFurthermore, since $BPCK$ is a parallelogram, $BK = CP$.\n\nIn order to complete the proof it has to be shown that\n$$\n\\frac{AD}{DP} = \\frac{AB}{BK} = \\frac{AB}{CP}.\n$$\n\n![](attached_image_2.png)\n\nTo prove this, the law of sines can be used in triangles $PDC$ and $ABD$. It is sufficient to prove that\n$$\n\\frac{\\sin(\\angle ADB)}{\\sin(\\angle ABD)} = \\frac{\\sin(\\angle CDP)}{\\sin(\\angle DCP)}.\n$$\nBut $\\angle ABD = \\angle DCP$ and $\\angle ADB = 180^\\circ - \\angle CDP$, which means the equation above holds, and this completes the proof.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32681, "subject": "Mathematics (Multi-modal)", "question": "a) Prove that there exist two regular tetrahedra such that each edge of one is perpendicular to an edge of the other.\n\nb) For an arbitrary regular tetrahedron, prove that there exists a unique tetrahedron with the above property.", "options": [], "answer": "Detailed solution", "solution": "a) The following figure of a cube $ABCDEFGH$ shows that the two regular tetrahedra $ACHF$ and $BDEG$ are perpendicular.\n\n![](attached_image_1.png)\n\nb) Consider two perpendicular tetrahedra $ABCD$ and $XYZT$. One of the following cases involves those three edges of $ABCD$ that are perpendicular to edges $XY$, $XZ$ and $XT$ of $XYZT$:\n* These edges form a triangle in $ABCD$.\n* They have a common vertex.\n* They form an open path.\nIt will be shown that the second case is not possible. Assume to the contrary that the edges connected to $X$ in $XYZT$ are perpendicular to the edges connected to (for instance) $A$ in $ABCD$, so the edges of triangles $BCD$ and $YZT$ should be perpendicular. Therefore, these two triangles must be in the same plane. On the other hand, the vertices of triangle $YZT$ are on the perpendicular lines from $X$ to $AB$, $AC$ and $AD$, which is a contradiction to the fact that $YZT$ is on the same plane as $BCD$.\n\nNext, it is claimed that the third case is possible for at most two vertices of $XYZT$. Assume that those edges of $ABCD$ perpendicular to the edges connected to $X$ in $XYZT$ form an open path. It is obvious that there exist exactly two faces of $ABCD$ (say $P_{1X}$ and $P_{2X}$) such that each one contains exactly two edges of this path.\n\n**Lemma.** *Tetrahedron $ABCD$ and vertex $X$ must be on different sides of $P_{iX}$, for $i = 1$ and $2$.*\n\n*Proof.* Assume to the contrary that $ABCD$ is on the same side of $P_{iX}$ as $X$, for $i = 1$ or $2$. Let $f$ be the face of $ABCD$ contained in $P_{iX}$. Two vertices of $XYZT$ lie on the extensions of perpendiculars from $X$ to edges of $f$ and so lie on the opposite side of $X$. On the other hand, these vertices create an edge that must be perpendicular to an edge of $ABCD$. This is impossible, however, since they lie on opposite sides, and proves the lemma.\n\nUsing the lemma it can be concluded that $X$ is in the smaller region between $P_{1X}$ and $P_{2X}$ and outside $ABCD$. This lemma can be applied to any other vertex, say $Y$, for which the edges connected to it are perpendicular to an open path. It is claimed that there can be at most two such vertices. To prove it, assume to the contrary that there are more than two such vertices. Then using the pigeonhole principle, two vertices, say $X$ and $Y$, have a common associated plane, i.e. $P_{iX} = P_{jY}$. So according to the lemma, $X$ and $Y$ must be on the same side of this plane and apart from $ABCD$. This is impossible, however, because $XY$ must intersect an edge of $ABCD$.\n\nIt can be concluded that the third case is possible for at most two vertices of $XYZT$, so the first case is possible for at least two vertices of that tetrahedron. Using the following lemma, the place of these two vertices can be uniquely determined by $ABCD$. Now, perpendicular lines from these two vertices to three edges of $ABCD$ determine the lines on which 5 edges of $XYZT$ are located, so all of the vertices of $XYZT$ are uniquely determined.\n\n**Lemma.** *Consider an equilateral triangle $ABC$ and a point $D$ outside of the plane of $ABC$ such that the angle between mutual perpendicular lines from $D$ to the sides of $ABC$ is $60^\\circ$. Prove that $B_1$, $C_1$ and $A_1$ (feet of perpendicular lines from $D$ to sides $AC$, $AB$ and $BC$, respectively) are the midpoints of sides $AC$, $AB$ and $BC$, respectively.*\n\n*Proof.* Form the net of $ABCD$ like the following pictures, where $AB' = AC' = AD$, $BA' = BC' = BD$ and $CA' = CB' = CD$.\n\n![](attached_image_2.png)\n\nPoint $E$ is located on the plane such that $EC_1 = C'C_1$ and $EB_1 = B'B_1$. First, suppose that $E \\neq A$. Then two triangles $EB_1C_1$ and $DB_1C_1$ are obviously congruent, so $\\angle C_1EB_1 = \\angle C_1DB_1 = 60^\\circ$. Therefore, quadrilateral $EAB_1C_1$ is cyclic. Using Pythagoras' Theorem for segments $AC'$ and $AB'$ results in\n$$\nAC_1^2 + EC_1^2 = AC_1^2 + C'C_1^2 = AC'^2 = AB'^2 = AB_1^2 + B'B_1^2 = AB_1^2 + EB_1^2.\n$$\nOn the other hand, using the Cosine Theorem for side $AE$ in triangles $AEC_1$ and $AEB_1$ results in\n$$\nAB_1^2 + EB_1^2 - 2AB_1 \\cdot EB_1 \\cos \\alpha = AC_1^2 + EC_1^2 - 2AC_1 \\cdot EC_1 \\cos \\alpha.\n$$\nSince $\\cos \\alpha \\neq 0$ ($E \\neq A$), $AC_1 \\cdot EC_1 = AB_1 \\cdot EB_1$. This implies that the area of triangles $AEC_1$ and $AEB_1$ is equal, so $AE \\parallel B_1C_1$. Now, using the fact that $EAB_1C_1$ is a cyclic quadrilateral, it can be concluded that $AB_1 = EC_1 = C'C_1$ and $AC_1 = EB_1 = B'B_1$.\n\nBy defining points $F$ and $G$ similar to $E$ and following the argument above, it can be concluded that $A'A_1 = AB_1 = AC_1$, which implies that $E = A$.\n\nNow, assuming that $E = A$, $AC_1 = C'C_1$ and $AB_1 = B'B_1$. Since $AC' = AB'$ and $AB_1 = AC_1 = \\frac{\\sqrt{2}}{2}AC'$, it can be concluded that $CB_1 = BC_1$. Therefore, $B'C = C'B$ which results in $BA' = C'B = B'C = CA'$. This implies that $A_1$ is the midpoint of $BC$. Continuing this argument by using points $F$ and $G$, it is easy to show that $B_1$ is the midpoint of $AC$ and $C_1$ is the midpoint of $AB$, as desired.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 32682, "subject": "Mathematics (Multi-modal)", "question": "Points $X$ and $Y$ are located on sides $AB$ and $AC$ of triangle $ABC$ ($X, Y \\neq A$) such that the reflection of line $BC$ with respect to $XY$ is tangent to the circumcircle of triangle $AXY$. If $O$ denotes the circumcenter of triangle $ABC$, prove that the circumcircle of triangle $AXY$ is tangent to the circumcircle of triangle $BOC$.", "options": [], "answer": "Detailed solution", "solution": "Let $\\omega$ be the circumcircle of triangle $AXY$. Since the reflection of line $BC$ with respect to $XY$ is tangent to $\\omega$, the reflection of $\\omega$ with respect to $XY$ is tangent to line $BC$ at a point that is denoted by $T$.\n\nLet $P$ be the second intersection point of circumcircles of triangles $BXT$ and $CYT$ (other than $T$). It is claimed that circumcircles of triangles $BOC$ and $AXY$ are tangent at $P$.\n\nFirst, note that since $T$ lies on the reflection of $\\omega$ with respect to $XY$, $\\angle XTY = \\angle XAY = \\angle BAC$. Therefore,\n$$\n\\begin{align*}\n\\angle BPC &= \\angle BPT + \\angle CPT = \\angle BXT + \\angle CYT \\\\\n&= 360^\\circ - \\angle AXT - \\angle AYT = \\angle XAY + \\angle XTY \\\\\n&= 2\\angle BAC = \\angle BOC.\n\\end{align*}\n$$\nThis implies that $P$ lies on the circumcircle of triangle $BOC$. On the other hand,\n$$\n180^\\circ - \\angle BAC = \\angle XBT + \\angle YCT = \\angle XPY.\n$$\nTherefore, $P$ lies on the circumcircle of triangle $AXY$. Now it suffices to show that these two circles have the same tangent line at $P$, or equivalently, $\\angle BPX = \\angle BCP + \\angle XAP$. Since $\\angle BCP = \\angle TYP$ and $\\angle XAP = \\angle XYP$, $\\angle BCP + \\angle XAP = \\angle TYP + \\angle XYP = \\angle XYT$. However, according to the assumptions, $\\angle XYT = \\angle XTB = \\angle BPX$, which completes the proof.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32683, "subject": "Mathematics (Multi-modal)", "question": "In quadrilateral $ABCD$, $AC$ is the bisector of angle $A$ and $\\angle ADC = \\angle ACB$. $X$ and $Y$ are the feet of the altitudes from $A$ to $BC$ and $CD$, respectively. Prove that the orthocenter of triangle $AXY$ is located on line $BD$ (A triangle's orthocenter is the intersection point of its altitudes).", "options": [], "answer": "Detailed solution", "solution": "Let $E$ be the foot of the perpendicular line from $Y$ to $AX$ and $P$ be the intersection point of $YE$ and $BD$. It is sufficient to prove that $XP \\perp AY$, or equivalently, $XP \\parallel CD$. Note that\n$$\nYE \\parallel CB \\Rightarrow \\frac{DY}{YC} = \\frac{DP}{PB}. \\quad (1)\n$$\nOn the other hand, triangles $ADC$ and $ACB$ are similar, so\n$$\n\\frac{DY}{YC} = \\frac{CX}{XB}. \\quad (2)\n$$\n\n![](attached_image_1.png)\n\n(1) and (2) show that $\\frac{DP}{PB} = \\frac{CX}{XB}$, and this implies $XP \\parallel CD$, as desired.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32684, "subject": "Mathematics (Multi-modal)", "question": "In this question, functions on natural numbers that are computable by a computer (which has a finite memory and output) for arbitrary large numbers are investigated. These functions are called Computable Functions. Since a computer has a finite number of outputs, the investigation is restricted only to those functions that have a finite range (which is equivalent to all possible finite outputs of a computer). Next, the method by which a number is given to a computer needs to be clarified. A common way is using the representation of numbers in a fixed base $k$.\n\nBy determining the inputs and outputs of a computer, a mathematical model can be derived to describe (i.e. to model) its operation. The main idea here is that a computer has a finite number of states (considering the states of all inner components) and it changes after receiving each input digit according to a predefined program. Consequently, the output is a function of the computer's state. Using these concepts a precise definition of a $k$-Computable sequence can be given.\n\nFirst, a Machine needs to be defined. A Machine with input set $A$ and output set $B$ (sets $A$ and $B$ are finite) comprises a finite number of states and an algorithm that determines the state of the Machine after an input (which is an arbitrary member of $A$) is entered. Also, each state of the Machine determines a member of $B$ as the output. Moreover, a specific state, called the Starting State, is used to start the Machine. A Machine of this kind can determine a member of $B$ as the output for a finite sequence of entries from $A$. This can be done by setting the Machine to its Starting State and then entering the inputs from the sequence one by one. The output of the final state is considered as the computed value.\n\nLet $k$ be a natural number greater than 1. A sequence $a_1, a_2, a_3, \\dots$ with values in the finite set $B$ is called $k$-Computable if there exists a Machine with input set $\\{0, 1, \\dots, k-1\\}$ and output set $B$ such that when digits of an arbitrary number $n$ in base $k$ are entered to the Machine from right to left, respectively, the Machine's output is $a_n$.\n\nAs an example, consider the following Machine for $k=2$ (circles represent states and the output of each state is written on it. This Machine receives 0 and 1 as inputs).\n![](attached_image_1.png)\nUsing this Machine the sequence $a, b, a, a, a, b, a, b, \\dots$ can be computed. For example, for $n = 10 = (1010)_2$, 0, 1, 0 and 1 should be given to the Machine starting from its Starting State. If this is done, the lower left state is reached which gives $a$ as the output. According to the definition, the sequence $a, b, a, a, a, b, a, b, \\dots$ is 2-Computable.\n\na) Suppose $m$ is a natural number. For each natural number $n$, define $(a_n)$ as the remainder of $n$ when divided by $m$ (so values of this sequence are all in the finite set $\\{0, 1, \\dots, m-1\\}$). Prove that for each natural number $k$, this sequence is $k$-Computable.\n\nb) Prove that if sequence $(a_n)$ is $k$-Computable, so are sequences $(b_n)$ and $(c_n)$ that are defined as $b_n = a_{n+1}$ and $c_n = a_{2n}$.\n\nc) Define sequence $(a_n)$ to be 1 for perfect square natural numbers and 0 for the rest. Is this sequence 3-Computable?\n\nd) The definition of Computable sequences can be altered by assuming that the digits are given to the Machine from left to right. These sequences are called $k$-Left Computable. Prove that this definition is equivalent to the previous one, i.e. a sequence is $k$-Computable if and only if it is $k$-Left Computable.", "options": [], "answer": "Detailed solution", "solution": "a) The idea here is that a computer (with sufficiently large but finite memory) can compute the remainder of arbitrary large natural numbers when divided by $m$. The following describes a Machine for computing the remainder of a given number modulo $m$ in base $k$:\n\n* **Inputs:** Set $\\{0, 1, \\dots, k-1\\}$.\n* **States:** A state exists for each pair $(i, j)$ of $\\{0, 1, \\dots, m-1\\}$.\n* **Outputs:** The output of state $(i, j)$ is $j$.\n* **Starting State:** $(1, 0)$.\n* **Transition Function:** When $r$ is entered, the state of the Machine changes from $(i, j)$ to $(i', j')$, where $i'$ and $j'$ are the remainders of $ki$ and $j + ri$ when divided by $m$, respectively.\n\nb) Let $X$ be the Machine that computes $(a_n)$ in base $k$. To introduce a Machine that computes $(b_n)$, where $b_n = a_{n+1}$, in base $k$, first a Machine is designed that takes an $r$-digit number $n$ as input and gives $(a, b)$ as output, where $a$ and $b$ are the $r^{th}$ and $(r+1)^{th}$ digits of $n+1$ in base $k$ (from right). Note that $n+1$ has at most $r+1$ digits, and if it has only $r$ digits, then $b$ will be zero. The following Machine will perform this operation:\n\n* **Inputs:** Set $\\{0, 1, \\dots, k-1\\}$.\n* **States:** A state exists for each pair $(a, b)$ of integers, where $0 \\le a < k$ and $b \\in \\{0, 1\\}$.\n* **Outputs:** The output of state $(a, b)$ is $(a, b)$ itself.\n* **Starting State:** $(1, 0)$.\n* **Transition Function:** When $r$ is entered, the state of the Machine changes from $(a, b)$ to $(a', b')$, where $a'$ is the remainder of $r + b$ when divided by $m$, and $b'$ is 0 for $r + b < k$ and 1 elsewhere.\n\nCall this Machine $B$. Now, make Machine $Y$ from $B$ and $X$ to compute $(b_n)$. Denote the set of states and the Starting State of $X$ by $S_X$ and $S_B$, respectively. $S_X$ and $S_B$ are defined similarly. The following Machine will perform the desired operation:\n\n* **Inputs:** Set $\\{0, 1, \\dots, k-1\\}$.\n* **States:** $S_X \\times S_B$.\n* **Outputs:** The output of state $(x, y)$, where $x \\in S_X$ and $y \\in S_B$, is defined as follows: Let $(a, b)$ be the output of state $y$ in $B$. Now, if $b = 0$, define the output of $(x, y)$ (in $Y$) to be equal to the output of $x$ (in $X$); and if $b \\neq 0$, define it to be the output of $X$ after entering $b$ when $X$ is in state $x$.\n* **Starting State:** $(s_X, s_B)$.\n* **Transition Function:** When $r$ is entered, the state of the Machine changes from $(x, y)$ to $(x', y')$, where $y'$ is the state of $B$ after entering $r$ when it is in state $y$. Now, if $(a, b)$ is the output of $y'$, $x'$ will be the state of $X$ after entering $a$ when it is in state $x$.\n\nTo compute $c_n = a_{2n}$, first define a Machine $C$ similar to $B$ for the purpose of multiplication by 2. Then use $C$ instead of $B$ in the definition of $Y$ above to get the desired result. The Machine $C$ is described as follows:\n\n* **Inputs:** Set $\\{0, 1, \\dots, k-1\\}$.\n* **States:** A state exists for each pair $(a, b)$ of integers, where $0 \\le a < k$ and $b \\in \\{0, 1\\}$.\n* **Outputs:** The output of state $(a, b)$ is $(a, b)$ itself.\n* **Starting State:** $(0, 0)$.\n* **Transition Function:** When $r$ is entered, the state of the Machine changes from $(a, b)$ to $(a', b')$, where $a'$ and $b'$ are the quotient and remainder of $2r + b$ when divided by $k$, respectively.\n\nc) No! Assume to the contrary that $X$ is a Machine that computes $(a_n)$ in base 3. Let $N$ be the number of states of $X$. Note that for a sufficiently large natural number $m$, the number of $m$-digit perfect square numbers in base 3 is more than $N$. So there are two perfect squares $a$ and $b$ such that after entering digits of these two numbers to $X$ (from right) the same state is reached. Therefore, entering numbers of the form $a + 3^m n$ and $b + 3^m n$ results in the same output. Hence if $(a_n)$ is 3-Computable, then for each natural number $n$, $a + 3^m n$ is a perfect square if and only if $b + 3^m n$ is a perfect square. But this is impossible, because the difference of these numbers is $b - a$ (which is constant), whereas the difference of consecutive perfect square numbers approaches infinity.\n\nd) Suppose that $X$ is a Machine with inputs from the set $\\{0, 1, \\dots, k-1\\}$. It will be shown that each $k$-Computable sequence is $k$-Left Computable, the converse can be proved similarly. To do this, it suffices to introduce a Machine $Y$ with the same input set as $X$ such that the output of $Y$ after entering digits of a number from left to right equals to the output of $X$ after entering digits of that same number from right to left. Suppose that $\\{s_1, s_2, \\dots, s_m\\}$ is the state set of $X$, $s_1$ its Starting State and $x_i$ the output of state $s_i$. The following Machine will perform the desired operation:\n\n* **Inputs:** Set $\\{0, 1, \\dots, k-1\\}$.\n* **States:** All $m$-tuples $(A_1, A_2, \\dots, A_m)$ of partitions of the set $\\{s_1, s_2, \\dots, s_m\\}$.\n* **Outputs:** The output of state $(A_1, A_2, \\dots, A_m)$ will be $A_i$, where $s_1 \\in A_i$.\n* **Starting State:** $(\\{s_1\\}, \\{s_2\\}, \\dots, \\{s_m\\})$.\n* **Transition Function:** When $r$ is entered, the state of the Machine changes from $(A_1, A_2, \\dots, A_m)$ to $(B_1, B_2, \\dots, B_m)$, where $B_i$ is the set of all those states of $X$ that change to a state in $A_i$ after entering $r$ in $X$.", "topic": "Discrete Mathematics", "subtopic": "Algorithms" }, { "id": 32685, "subject": "Mathematics (Multi-modal)", "question": "$p \\neq 13$ is a prime number in the form of $8k + 5$ for some natural number $k$, and $39$ is a non-residue modulo $p$. Prove that equation $x_1^4 + x_2^4 + x_3^4 + x_4^4 \\equiv 0 \\pmod{p}$ has a solution in the set of integers such that $p \\nmid x_1x_2x_3x_4$.", "options": [], "answer": "Detailed solution", "solution": "Note that\n$$\n\\sum_{1 \\le x_i \\le p-1} \\left(1 - \\left(x_1^4 + x_2^4 + x_3^4 + x_4^4\\right)^{p-1}\\right) \\stackrel{p}{=} \n\\qquad (p-1)^4 - (p-1)^4 \\overbrace{\\left(\\sum_{\\substack{\\frac{p-1}{4}|\\theta_i; \\\\ \\sum \\theta_i = p-1}}^A \\begin{pmatrix} p-1 \\\\ \\theta_1, \\theta_2, \\theta_3, \\theta_4 \\end{pmatrix}\\right)}^{p}.\n$$\n\n\\begin{align*}\nA \\stackrel{p}{=} & 4 \\binom{p-1}{p-1} + 12 \\binom{p-1}{\\frac{p-1}{4}, 3\\frac{p-1}{4}} + 12 \\binom{p-1}{\\frac{p-1}{4}, \\frac{p-1}{4}, \\frac{p-1}{2}} + \\binom{p-1}{\\frac{p-1}{4}, \\frac{p-1}{4}, \\frac{p-1}{4}, \\frac{p-1}{4}} \\\\\n\\stackrel{p}{=} & 4 + \\frac{12(p-1)!}{\\left(\\frac{p-1}{4}\\right)!\\left(\\frac{3(p-1)}{4}\\right)!} + \\frac{6(p-1)!}{\\left(\\frac{p-1}{2}\\right)!^2} + \\frac{12(p-1)!}{\\left(\\frac{p-1}{2}\\right)!(\\frac{p-1}{4})!^2} + \\frac{(p-1)!}{\\left(\\frac{p-1}{4}\\right)!^4} \\\\\n\\stackrel{p}{=} & 4 + \\frac{12(p-1)!}{(-1)^{\\frac{p-1}{4}}(p-1)!} + \\frac{6(p-1)!}{-1} + \\frac{12(p-1)!}{\\left(\\frac{p-1}{2}\\right)!(\\frac{p-1}{4})!^2} + \\frac{(p-1)!}{\\left(\\frac{p-1}{4}\\right)!^4} \\\\\n\\stackrel{p}{=} & 4 - 12 + 6 + 12 \\frac{\\left(\\frac{p-1}{2}\\right)!}{\\left(\\frac{p-1}{4}\\right)!^2} + \\frac{-1}{\\left(\\frac{p-1}{4}\\right)!^2}.\n\\end{align*}\n$$\n\nIf $a \\stackrel{p}{\\equiv} (\\frac{p-1}{2})!$ and $b \\stackrel{p}{\\equiv} \\frac{1}{(\\frac{p-1}{4})!^2}$, then $A \\stackrel{p}{\\equiv} -2 + 12ab - b^2$; therefore,\n$$\n-A + 1 \\stackrel{p}{\\equiv} b^2 - 12ab + 3 \\stackrel{p}{\\equiv} (b - 6a)^2 - 36a^2 + 3 \\stackrel{p}{\\equiv} (b - 6a)^2 + 39.\n$$\nAnd according to the assumption, $\\left(\\frac{-39}{p}\\right) = -1$, which completes the proof.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32686, "subject": "Mathematics (Multi-modal)", "question": "Ali is given a piece of paper shaped like an equilateral triangle. He cuts the paper into two pieces with one cut. Then, he puts the pieces arbitrarily on a table and cuts them both with one cut to get four pieces of paper. Lastly, he puts all four pieces on the table and cuts them all with one cut to get eight pieces. In the end, he will have eight pieces of paper using three cuts.\nAli wants to do this in such a way that in the end, seven pieces are equal to each other but not to the last one.\na) Prove that if seven pieces are equal, then they are either triangles or quadrilaterals.\nb) Prove that the seven equal pieces cannot be quadrilaterals.\nc) Is it possible for the seven equal pieces to be triangles and not equal to the last one?", "options": [], "answer": "Yes", "solution": "a) Note that every polygon produced during this process is convex. That said, the idea here is to find an upper bound for the sum of angles of them. After cutting a polygon $P$ into two polygons $P_1$ and $P_2$, three possibilities arise: $(\\sigma(Q)$ denotes the sum of angles of polygon $Q)$\n* The cutting line connects two vertices of $P$. In this case $\\sigma(P) = \\sigma(P_1) + \\sigma(P_2)$.\n* The cutting line connects a vertex of $P$ to an inner point of a side. In this case $\\sigma(P_1) + \\sigma(P_2) = \\sigma(P) + \\pi$.\n* The cutting line connects two inner points from two sides of $P$. In this case $\\sigma(P_1) + \\sigma(P_2) = \\sigma(P) + 2\\pi$.\nThe first polygon is a triangle and the sum of its angles is $\\pi$. Therefore, after the first cut the sum of angles of the resulting polygons is at most $\\pi + 2\\pi = 3\\pi$. After the second cut each of these two polygons are divided into two new polygons. Therefore, after the second cut the sum of angles of these polygons is at most $3\\pi + 2 \\times 2\\pi = 7\\pi$. Similarly, after the third cut the sum of angles of the resulting eight polygons is at most $7\\pi + 4 \\times 2\\pi = 15\\pi$. Now, if the 7 equal pieces have at least 5 sides, then the sum of angles of each polygon is at least $3\\pi$ and the sum of angles of the last piece is at least $\\pi$. Therefore,\n$$\n22\\pi = \\pi + 7 \\times 3\\pi \\le \\text{sum of angles of all pieces} \\le 15\\pi.\n$$\nThis contradiction shows that these seven equal pieces must be either triangles or quadrilaterals.\n\nb) According to the previous part, if these equal pieces are quadrilaterals, then the last piece should be a triangle. Furthermore, the cutting line of each polygon connects two inner points from two sides of the polygon. Assuming that such a cutting process is possible, a result is that the seven congruent quadrilaterals cannot be cyclic; because if they are cyclic, one of the following cases happens, and it is easy to show that each case results in a contradiction.\n\n![](attached_image_1.png)\nAssuming that the quadrilaterals are not cyclic, it is easy to show that they must be parallelograms. Like before, it is easy to check the resulting case and verify that it is impossible.\n\nc) Yes! Let $x$ be a very small positive number. Then the cutting process can be done as instructed below:\n\n![](attached_image_2.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32687, "subject": "Mathematics (Multi-modal)", "question": "$n \\ge 50$ is a natural number. Prove that $n$ can be written as the sum of two natural numbers whose prime factors do not exceed $\\sqrt{n}$. For example, $94$ can be written as $80 + 14$, none of which has a prime factor greater than $\\sqrt{94}$.", "options": [], "answer": "Detailed solution", "solution": "The notation $x \\sqsubseteq y$ is used to show that none of the prime factors of $x$ exceed $y$. Obviously, if $r \\le m$, $r \\sqsubseteq m$; and if $r \\sqsubseteq m$ and $s \\sqsubseteq m$, then $rs \\sqsubseteq m$.\n\nSuppose that $[\\sqrt{n}] = m$. Therefore, $n = m^2 + r$, where $0 \\le r \\le 2m$ ($n \\ge 50$ so $m \\ge 7$). Two cases are possible depending on the parity of $m$.\n\n* $m$ is odd, which means $m+1$ is even. For every number $t \\le m+1$, $t \\sqsubseteq m$ ($*$), because if $1 \\le t \\le m$, obviously $t \\sqsubseteq m$; and if $t = m+1 = 2\\left(\\frac{m+1}{2}\\right)$, again $t \\sqsubseteq m$ ($2, \\frac{m+1}{2} \\le m$).\n\nLet $1 \\le j \\le m+1$ be such that $j \\equiv n \\pmod{m+1}$. It is claimed that\n$$\nn = \\underbrace{(n-j)}_{a} + \\underbrace{j}_{b}\n$$\nis a desired decomposition. By ($*$), it can be concluded that $b = j \\sqsubseteq m$. On the other hand, $n - j = (m+1)\\left(\\frac{n-j}{m+1}\\right)$, where $\\frac{n-j}{m+1} < m+1$. Since $m+1 \\sqsubseteq m$ and $\\frac{n-j}{m+1} \\sqsubseteq m$, $a = n - j \\sqsubseteq m$.\n\n* $m$ is even. Like the previous case, let $-1 \\le j \\le m$ be such that $n \\equiv j \\pmod{m+2}$. If $1 \\le j \\le m$,\n$$\nn = \\underbrace{(n-j)}_{a} + \\underbrace{j}_{b};\n$$\nand if $j = 0$,\n$$\nn = \\underbrace{\\frac{1}{2}n}_{a} + \\underbrace{\\frac{1}{2}n}_{b}.\n$$\n\nUsing a similar argument, it is easy to see that in both cases $a \\sqsubseteq m$ and $b \\sqsubseteq m$.\n\nFinally, if $j = -1$, then $m + 2 \\mid n + 1$. Since $m^2 \\le n \\le m^2 + 2m$, then $n + 1 = (m - 1)(m + 2) = m^2 + m - 2$ or $n + 1 = m(m + 2)$.\n\nIn the first case, since $m - 3 < m$,\n$$\nn = \\underbrace{m^2}_{a} + \\underbrace{m-3}_{b},\n$$\nis a desired decomposition. In the second case,\n$$\nn = (m+1)^2 - 2 = (m-2)(m+4) + 7 = \\underbrace{2(m-2)\\left(\\frac{m+4}{2}\\right)}_{a} + \\underbrace{7}_{b}.\n$$\nSince $m \\ge 7$, $\\frac{m+4}{2} \\le m$, so $a \\sqsubseteq m$ and $b \\sqsubseteq m$.\n\nThis argument shows that a natural number $n \\ge 50$ can be written as the sum of two natural numbers with prime factors not exceeding $\\sqrt{n}$.\n\n**Remark.** All integers $n \\ge 8$, except for $23$, have such a decomposition.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32688, "subject": "Mathematics (Multi-modal)", "question": "For two points $A = (x_1, y_1)$ and $B = (x_2, y_2)$ in $\\mathbb{R}^2$, their distance can be defined as,\n$$\nd(A, B) = |x_1 - x_2| + |y_1 - y_2|.\n$$\n\na) The perpendicular bisector of two points in the plane is the locus of points equally spaced from those two points. Determine the perpendicular bisector of two arbitrary points according to the new definition.\nb) The Apollonius circle of two points in the plane is the locus of points for which the ratio of their distances to those two points is equal to a constant value $m$ ($m \\neq 1$). Determine the Apollonius circle of two arbitrary points according to the new definition.\nc) The distance from point $A$ to line $l$ is defined as\n$$\n\\min\\{d(A, P) | P \\in l\\}.\n$$\nIn Euclidean Geometry, a parabola in the plane is the locus of points equally distanced from a point and a line. Determine how a parabola will look like according to the new definition.\nd) Let $ABC$ be a triangle in the plane, and $X_a$ a point on side $BC$ such that,\n$$\nd(A, B) + d(B, X_a) = d(A, C) + d(C, X_a).\n$$\n$X_b$ and $X_c$ are defined similarly. Are $AX_a$, $BX_b$ and $CX_c$ concurrent?\ne) Is it possible to have an infinite number of points in the plane such that their mutual distances are squares of natural numbers?\n", "options": [], "answer": "a) The perpendicular bisector is the locus |x − x_b| + |y − y_b| = |x − x_a| + |y − y_a|; geometrically it is a piecewise linear union of segments whose configuration depends on the slope of AB (when slope is ±1 it includes the mid-segment of the axis-parallel rectangle formed from A and B; otherwise it is a different union of segments as depicted).\nb) The Apollonius circle for ratio m ≠ 1 is the boundary of the convex quadrilateral OMLN obtained as the intersection of two pairs of L1 circles (axis-aligned squares) centered at A and B with radii chosen via the unique points C and D on line AB satisfying AC/CB = AD/DB = m; the segment LN has slope (m − 1)/(m + 1), and every point on the boundary satisfies d(A, Z) = m d(B, Z).\nc) With focus at F = (0, 0) and directrix y = m x + c (m ≥ 1, c > 0), the parabola is the union of four line segments lying below the line:\n - y = c/(m + 1) for x > 0, y > 0\n - y = c/(1 − m) for x > 0, y < 0\n - 2 m x − (m + 1) y + c = 0 for x < 0, y > 0\n - 2 m x + (m − 1) y + c = 0 for x < 0, y < 0.\nd) Yes, AX_a, BX_b, and CX_c are concurrent.\ne) No, it is impossible to have an infinite set of points with all pairwise Manhattan distances equal to squares of natural numbers.", "solution": "a.\nAssume $A = (x_a, y_a)$ and $B = (x_b, y_b)$ are two arbitrary points in the plane. The new perpendicular bisector of $A$ and $B$ comprises points $(x, y)$ satisfying\n$$\n|x - x_b| + |y - y_b| = |x - x_a| + |y - y_a|.\n$$\nDraw two lines from each of the points $A$ and $B$ parallel to the coordinate axes to create a rectangle $ACBD$. Based on the slope of $AB$ two cases are possible:\n* The slope of $AB$ is $1$ or $-1$. In this case the perpendicular bisector of $A$ and $B$ is the union of segment $CD$ and the hatched parts in the figure below (The figure is drawn for the case where the slope is $1$. The other case is similar):\n\n![](attached_image_1.png)\n\n* The slope of $AB$ is not $\\pm 1$. Assume that this slope is positive and greater than one. The following figure shows the perpendicular bisector of $A$ and $B$ in this case. Other cases are similar.\n\n![](attached_image_2.png)\n\n\nb.\n**Lemma.** For every point $Z$ on line $XY$, $\\frac{d(X,Z)}{d(Y,Z)} = \\frac{XZ}{YZ}$.\n*Proof.* It can be derived from Thales' Theorem easily.\nConsider points $C$ and $D$ on line $AB$ such that $C$ is inside segment $AB$, $D$ is outside of it and $\\frac{AC}{CB} = \\frac{AD}{DB} = m$. Obviously, points satisfying these properties are unique and according to the lemma, $\\frac{d(A,C)}{d(C,B)} = \\frac{d(A,D)}{d(D,B)} = m$.\nBy definition, the intersection of the circle with center $A$ and radius $d(A, C)$ and the circle with center $B$ and radius $d(B, C)$ lies on the Apollonius circle (note that circles in this new metric are Euclidean squares with diagonals parallel to the coordinate axes). This intersection is a segment which is denoted by *ML* (as can be seen in the following figure). The intersection of similar circles for *D* (instead of *C*) determines another part of the Apollonius circle and is denoted by *ON* (as can be seen in the following figure). In what that follows, without loss of generality assume that $m > 1$.\nAn easy calculation reveals that the slope of segment *LN* is $\\frac{m-1}{m+1}$. For an arbitrary point *Z* on this segment,\n$$d(A, Z) = d(A, N) - \\left| x_Z - x_N \\right| - \\left| y_Z - y_N \\right|,$$\n$$d(B, Z) = d(B, N) - \\left| x_Z - x_N \\right| + \\left| y_Z - y_N \\right|.$$\nSince $\\frac{|y_Z - y_N|}{|x_Z - x_N|} = \\frac{m-1}{m+1}$ and $d(A, N) = md(B, N)$, it can be deduced that $d(A, Z) = md(B, Z)$. Therefore, all of the points of segment *LN* are on the Apollonius circle. A similar argument will show that all of the points of segment *OM* are on the Apollonius circle, too. For an arbitrary point *P* of the plane not on the boundary of *OMLN*, the quotient $\\frac{d(A,P)}{d(B,P)}$ is greater or less than $m$. Therefore, the Apollonius circle of points $A$ and $B$ in this new metric comprises points on the boundary of quadrilateral *OMLN*.\n\n![](attached_image_3.png)\n\n\nc.\nThe goal is to find the parabola created by point $F = (0, 0)$ and line $l$ with equation $y = mx + c$. For an arbitrary point $P$ in the plane, draw two lines from $P$ parallel to the coordinate axes. These two lines intersect $l$ at two points, say $X$ and $Y$. It can be seen that $\\min(PX, PY)$ is the distance from $P$ to $l$.\nWithout loss of generality, assume that $m \\ge 1$ and $c > 0$. Therefore, the distance from a point $(x, y)$ in the plane to $l$ is equal to $|x - \\frac{y-c}{m}|$ (length of the horizontal segment from $(x, y)$ to $l$). So for finding the points of the parabola the following equation must be solved,\n$$\n|x| + |y| = \\left|x - \\frac{y-c}{m}\\right| + \\left|y - c\\right| = \\left|x - \\frac{y-c}{m}\\right|,\n$$\nor equivalently,\n$$\nm|x| + m|y| = |mx + c - y|.\n$$\nFor an arbitrary point $(x, y)$ in the plane above line $l$ ($y > mx + c$),\n$$\nm|x| + m|y| \\geq m|x| + |y| \\geq -mx + y > y - mx - c = |y - mx - c|.\n$$\nTherefore, all of the points of the parabola lie below $l$ ($y < mx + c$). Evaluating cases resulting from the sign of $x$ and $y$, it can be seen that the parabola is the union of the following four segments (Similar to the following figure):\n$$\n\\begin{cases} y = \\frac{c}{m+1}, & \\text{for } x > 0, y > 0 \\\\ y = \\frac{c}{1-m}, & \\text{for } x > 0, y < 0 \\\\ 2mx - (m+1)y + c = 0, & \\text{for } x < 0, y > 0 \\\\ 2mx + (m-1)y + c = 0, & \\text{for } x < 0, y < 0 \\end{cases}\n$$\n\n![](attached_image_4.png)\n\n\nd.\nYes. To prove it, a lemma is needed.\n**Lemma.** Let $A'$, $B'$ and $C'$ be three points on sides $BC$, $AC$ and $AB$ of triangle $ABC$, respectively, such that\n$$\n\\frac{d(B, A')}{d(C, A')} \\frac{d(C, B')}{d(A, B')} \\frac{d(A, C')}{d(B, C')} = 1.\n$$\nThen lines $AA'$, $BB'$ and $CC'$ are concurrent.\n*Proof.* According to the assumption and the lemma in part (b),\n$$\n\\frac{BA' \\; CB' \\; AC'}{CA' \\; AB' \\; BC'} = 1.\n$$\nTherefore, due to Ceva's Theorem in Euclidean geometry these lines are concurrent.\n\nLet $p = \\frac{1}{2}(d(A, B) + d(B, C) + d(C, A))$. So $d(B, X_a) + d(A, B) = d(C, X_a) + d(A, C) = p$. Therefore, $d(B, X_a) = p - d(A, B)$ and $d(C, X_a) = p - d(A, C)$. Similar equalities for $X_b$ and $X_c$ imply\n$$\n\\frac{d(B, X_a)}{d(C, X_a)} \\frac{d(C, X_b)}{d(A, X_b)} \\frac{d(A, X_c)}{d(B, X_c)} = 1.\n$$\nNow according to the lemma, it is easy to see that these lines are concurrent.\n\n\ne.\nNo. Assume to the contrary that $S$ is an infinite set of points in the plane such that the mutual distances of its point are all perfect squares.\n**Lemma.** *There is no infinite subset $\\{P_1 = (x_1, y_1), P_2 = (x_2, y_2), \\dots\\}$ of $S$ for which the two sequences $\\{x_i\\}$ and $\\{y_i\\}$ are both monotone.*\n*Proof.* Assume to the contrary that there exists an infinite set of points $P_i = (x_i, y_i)$ in $S$ such that both sequences $\\{x_i\\}$ and $\\{y_i\\}$ are increasing sequences (other cases can be proven similarly). For each natural number $j > 2$, let $a_j = \\sqrt{d(P_1, P_j)} \\in \\mathbb{N}$ and $b_j = \\sqrt{d(P_2, P_j)} \\in \\mathbb{N}$. As both sequences $\\{x_j\\}$ and $\\{y_j\\}$ are increasing, for every natural number $j > 2$,\n$$\na_j^2 = d(P_1, P_j) = d(P_1, P_2) + d(P_2, P_j) = d(P_1, P_2) + b_j^2.\n$$\nSince sequences $a_j$ and $b_j$ are increasing, $d(P_1, P_2)$ can be written in infinitely many ways as the difference of two perfect squares $(d(P_1, P_2) = a_j^2 - b_j^2)$. This is impossible, however, and proves that $S$ cannot exist.\nBy a translation it can be assumed that $S$ contains the origin of the coordinate. It is claimed that the number of points of $S$ in the first coordinate quadrant is finite and because of symmetry, the number of points in each quadrant is finite. Therefore, $S$ is a finite set.\nIf set $\\{y \\ge 0 \\mid \\exists x \\ge 0; (x, y) \\in S\\}$ is unbounded, then an infinite subset $\\{P_1 = (x_1, y_1), P_2 = (x_2, y_2), \\dots\\}$ of $S$ can be found such that $y_1 < y_2 < \\dots$. Therefore, a subsequence $\\{P_{n_i}\\}_i$ of $P_n$ can be founded such that the sequence $x_{n_i}$ is monotone, which is impossible according to the lemma. This means that the second coordinate of points of $S$ in the first coordinate quadrant is bounded. Similarly, it can be concluded that the first coordinate of such points is bounded. Therefore, there exists $M > 0$ such that all points of $S$ in the first coordinate quadrant lie in the square $[0, M] \\times [0, M]$. Since each two points of $S$ have a distance of at least 1, only a finite number of points of $S$ can be in this square, which means that overall, $S$ is finite.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32689, "subject": "Mathematics (Multi-modal)", "question": "Let $ABC$ be a triangle with altitudes $AD$, $BF$ and $CE$. Let $P$ and $Q$ be two points on line $EF$ such that $EP = DF$ ($E$ is between $P$ and $F$) and $QF = DE$ ($F$ is between $E$ and $Q$). Assuming that the perpendicular bisector of $DQ$ intersects $AB$ at $X$ and the perpendicular bisector of $DP$ intersects $AC$ at $Y$, prove that the midpoint of $BC$ lies on line $XY$.", "options": [], "answer": "Detailed solution", "solution": "It is claimed that $XY$ is the perpendicular bisector of $EF$. To show it, first a lemma is proved.\n\n**Lemma.** Let $D$ be a point on the extension of side $AB$ of triangle $ABC$ such that $A$ is between $B$ and $D$, and $AD = BC$. Let $O$ be the intersection point of external angle bisector of vertex $B$ in triangle $ABC$ and the perpendicular bisector of $DC$. Then $O$ lies on the perpendicular bisector of $AB$.\n\n*Proof.* Let $E$ be a point on the extension of side $AB$ of triangle $ABC$ such that $B$ is between $E$ and $A$ and $BE = BC$. Since triangle $EBC$ is isosceles, the external angle bisector of $B$ is the perpendicular bisector of $EC$. Therefore, $O$ is the intersection point of perpendicular bisectors of $AC$ and $CE$, which means $O$ is the circumcenter of triangle $DEC$, so $O$ lies on the perpendicular bisector of $DE$. Since $BE = AD$, this line is the perpendicular bisector of $AB$ as well, which completes the proof.\n\n![](attached_image_1.png)\n\nNote that $AE$ and $AF$ are the external angle bisectors of triangle $DEF$. Using the lemma for triangle $DEF$ and point $Q$ on the extension of $EF$ implies that $X$ lies on the perpendicular bisector of $EF$. By a similar argument, $Y$ lies on it too, which means that $XY$ is the perpendicular bisector of $EF$. On the other hand, since points $E$, $F$, $C$ and $B$ lie on a circle with diameter $BC$ ($\\angle BEC = \\angle BFC = 90^\\circ$), the midpoint of $BC$ is the center of this circle and lies on the perpendicular bisector of $EF$. Therefore, the midpoint of $BC$ lies on line $XY$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32690, "subject": "Mathematics (Multi-modal)", "question": "Vertices of a regular $n$-gon have been colored blue and red such that for each rotation of the $n$-gon, the number of vertices that have different colors before and after the rotation is less than 32 percent of the number of vertices. Prove that either the number of blue vertices or the number of red vertices is less than 20 percent of the number of vertices, $n$.", "options": [], "answer": "Detailed solution", "solution": "Obviously, there are exactly $n-1$ different nontrivial rotations of a regular $n$-gon (rotations of $\\frac{2\\pi i}{n}$ angles, for $1 \\le i \\le n-1$). Denote the number of blue and red vertices of the polygon by $b$ and $r$, respectively $(a+b=n)$, and the number of vertices that have different colors before and after the rotation of $\\frac{2\\pi j}{n}$ angle by $t_j$. According to the problem statement, $t_j < \\frac{32}{100}n$ for $j = 1, 2, \\dots, n-1$. On the other hand, during the $n-1$ rotations each blue vertex coincides with each red vertex exactly once and conversely, each red vertex coincides with each blue vertex exactly once. Therefore, from one hand the total number of pair of points with opposite colors after all of the nontrivial rotations is $\\sum_{j=1}^{n-1} t_j$, and $2rb = 2r(n-r)$ from another. Hence,\n$$\n2r(n-r) = \\sum_{j=1}^{n-1} t_j < (n-1) \\times \\frac{32}{100}n < \\frac{32}{100}n^2,\n$$\nor equivalently,\n$$\nr^2 - nr + \\frac{16}{100}n^2 > 0 \\Leftrightarrow \\left(r - \\frac{n}{2}\\right)^2 > \\frac{9}{100}n^2 \\Leftrightarrow \\left|r - \\frac{n}{2}\\right| > \\frac{3}{10}n,\n$$\nwhich completes the proof.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32691, "subject": "Mathematics (Multi-modal)", "question": "Let $P$ and $P'$ be two unequal regular $n$-gons and $A$ and $A'$ two points inside $P$ and $P'$, respectively. Suppose $\\{d_1, d_2, \\dots, d_n\\}$ are the distances from $A$ to the vertices of $P$ and $\\{d'_1, d'_2, \\dots, d'_n\\}$ are the distances from $A'$ to the vertices of $P'$. Is it possible for $\\{d'_1, d'_2, \\dots, d'_n\\}$ to be a permutation of $\\{d_1, d_2, \\dots, d_n\\}$?", "options": [], "answer": "Detailed solution", "solution": "Suppose that $P = P_1P_2 \\dots P_n$, $P' = P'_1P'_2 \\dots P'_n$ and that $AP_i$'s are a permutation of $A'P'_i$'s. Let $O$ and $O'$ be the centers of $P$ and $P'$, respectively. Without loss of generality it can be assumed that $A$ is inside or on the perimeter of triangle $OP_1P_2$ and $AP_1 \\le AP_2$; $A'$ is inside or on the perimeter of $O'P'_1P'_2$ and $A'P'_1 \\le A'P'_2$. Using the following lemma $AP_i$'s and $A'P'_i$'s can be sorted in ascending order.\n\n**Lemma.** In a situation as described above, if $n$ is odd, then\n$$\n\\begin{aligned}\n& AP_1 \\le AP_2 \\le AP_n \\le AP_3 \\le AP_{n-1} \\le AP_4 \\le \\dots \\\\\n& \\le AP_{\\frac{n+3}{2}-1} \\le AP_{\\frac{n+3}{2}+1} \\le AP_{\\frac{n+3}{2}},\n\\end{aligned}\n$$\nand if $n$ is even, then\n$$\nAP_1 \\le AP_2 \\le AP_n \\le AP_3 \\le \\dots \\le AP_{\\frac{n}{2}+2} \\le AP_{\\frac{n}{2}+1}.\n$$\n*Proof.* The assertion can be easily proved by looking at the position of $A$ with respect to the perpendicular bisector of $P_2$ and $P_n$ (which is $OP_1$), then the perpendicular bisector of $P_n$ and $P_3$, then the perpendicular bisector of $P_3$ and $P_{n-1}$ and so on.\n\nIt can be assumed that similar inequalities hold for $A'P'_i$'s. So the problem statement is equivalent to,\n$$\nAP_1 = A'P'_1 \\le AP_2 = A'P'_2 \\le AP_n = A'P'_n \\le AP_3 = A'P'_3 \\le \\dots\n$$\nAssume that $P$ is greater than $P'$. For each $1 \\le i \\le n$, ($P_{n+1} = P_1$, $P'_{n+1} = P'_1$)\n$$\n\\begin{aligned}\n& AP_i = A'P'_i,\\ AP_{i+1} = A'P'_{i+1},\\ P_iP_{i+1} > P'_iP'_{i+1} \\\\\n& \\qquad \\Rightarrow \\angle P_iAP_{i+1} > \\angle P'_iA'P'_{i+1}.\n\\end{aligned}\n$$\nHence\n$$\n360^{\\circ} = \\sum_{i=1}^{n} \\angle P_i AP_{i+1} > \\sum_{i=1}^{n} \\angle P'_i A'P'_{i+1} = 360^{\\circ},\n$$\nwhich is a contradiction. This shows that $P$ and $P'$ are equal.", "topic": "Discrete Mathematics", "subtopic": "Combinatorics" }, { "id": 32692, "subject": "Mathematics (Multi-modal)", "question": "Three non-planar rings are located in the space.\na) Is it always possible to find a circle that passes through all three circles?\nb) Is it always possible to find a square that passes through all three circles?", "options": [], "answer": "a) No. b) Yes.", "solution": "a) No! As a counterexample, consider three small equal circles on the circumference of a sphere. Each of these circles divides the circumference of the sphere into two parts. Call the smaller part for each circle its \"inner domain\", and assume that the inner domains of these circles are mutually disjoint. Now, if there exists a circle that passes through all three of these circles, it must intersect the sphere in at least three points (it must intersect each inner domain at one point) which is impossible, since any circle that is not on the circumference of a sphere meets it in at most two points.\n\nb) Yes. Consider three circles $C_R$, $C_B$ and $C_G$ in the space such that no two of them are co-planar. Denote the plane containing $C_i$ by $\\pi_i$ (for $i \\in \\{R, B, G\\}$). For each circle $C_i$, let $X_i$ be a point in the plane $\\pi_i$ lying inside $C_i$, and choose them so that these three points are not collinear, so they form a plane, say $\\pi$. Due to our assumption plane $\\pi$ meets each circle at exactly two points. Denote these intersection points by $\\{G_1, G_2\\}$, $\\{B_1, B_2\\}$ and $\\{R_1, R_2\\}$, respectively. Now, the goal is to find a square in $\\pi$ that intersects each of the three segments $G_1G_2$, $B_1B_2$ and $R_1R_2$ at exactly one inner point (not an endpoint). Obviously, since this square separates each pair of points, it must pass through all three circles and hence is the desired square. To show its existence, first a lemma is proved.\n\n**Lemma.** For points $X$, $Y$, $A$ and $B$ in the plane where $XY$ is not parallel to $AB$, a square exists that passes through points $X$ and $Y$ and separates $A$ from $B$.\n\n*Proof*. First, suppose that $XY$ is not perpendicular to $AB$. If line $XY$ separates $A$ from $B$, a large square with $X$ and $Y$ both on one of its sides works.\n\n![](attached_image_1.png)\n\nOn the other hand, if both points $A$ and $B$ lie on one side of line $XY$, depending on the distance from $A$ and $B$ to $XY$ and the position of the feet of perpendicular lines from these two points to line $XY$, a suitable square as depicted in the following figures can be found.\n\n![](attached_image_2.png)\n\nIf $XY \\perp AB$, the argument must be changed only when the intersection point of $AB$ and $XY$ lies outside of both segments. In this case, a suitable square can be found like the following figure.\n\n![](attached_image_3.png)\n\nSince points $R_1, R_2, B_1$ and $B_2$ are not collinear, points $X$ on $R_1R_2$ and $Y$ on $B_1B_2$ exist such that line $XY$ does not contain any point from $R_1R_2$ and $B_1B_2$ other than $X$ and $Y$ and also, $G_1G_2$ is not parallel to $XY$. According to the lemma, a square passing through $X$ and $Y$ (and no other point on $R_1R_2$ and $B_1B_2$) and separating $G_1$ from $G_2$ exist, which completes the proof.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32693, "subject": "Mathematics (Multi-modal)", "question": "Let $a$, $b$, $c$ and $d$ be positive real numbers with $a + b + c + d = 2$. Prove that\n$$\n\\frac{(a+c)^2}{ad+bc} + \\frac{(b+d)^2}{ac+bd} + 4 \\ge 4 \\left( \\frac{a+b+1}{c+d+1} + \\frac{c+d+1}{a+b+1} \\right).\n$$", "options": [], "answer": "Detailed solution", "solution": "According to Cauchy-Schwarz inequality\n$$\n\\left( \\frac{(a+c)^2}{ad+bc} + \\frac{(b+d)^2}{ac+bd} + 4 \\right) \\left( (ad+bc) + (ac+bd) + 1 \\right) \n\\geq (a+c+b+d+2)^2 = 16 \n\\implies \\frac{(a+c)^2}{ad+bc} + \\frac{(b+d)^2}{ac+bd} + 4 \\geq \\frac{16}{ad+bc+ac+bd+1}.\n$$\nSet $a+b=x$, $c+d=y$ (therefore $x+y=2$, $x^2+y^2=4-2xy$). It suffices to show that\n$$\n\\frac{16}{ad + bc + ac + bd + 1} = \\frac{16}{xy + 1} \\geq 4 \\left( \\frac{x+1}{y+1} + \\frac{y+1}{x+1} \\right).\n$$\nThis is equivalent to\n$$\n\\begin{align*}\n4(x+1)(y+1) &\\geq (xy+1)((x+1)^2 + (y+1)^2) \\\\\n\\Leftrightarrow \\quad 4(xy+3) &\\geq (xy+1)(10-2xy) \\\\\n\\Leftrightarrow \\quad 4xy+12 &\\geq 8xy-2(xy)^2+10 \\\\\n\\Leftrightarrow \\quad (xy)^2+1 &\\geq 2xy \\\\\n\\Leftrightarrow \\quad (xy-1)^2 &\\geq 0.\n\\end{align*}\n$$\nWhich is true, hence the claim of the problem. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32694, "subject": "Mathematics (Multi-modal)", "question": "Let $f, g : \\mathbb{R}^+ \\to \\mathbb{R}^+$ be two functions such that for all positive real numbers $x$ and $y$\n$$\nf(x + g(y))^2 = f(x^2) + y^2.\n$$\nProve that the range of $g$ is not bounded from above.", "options": [], "answer": "Detailed solution", "solution": "Let $P(x, y)$ be the assertion\n$$\nf(x + g(y))^2 = f(x^2) + y^2\n$$\nIf $g(f(t)) < t$ for some $t > 0$, then $P(t - g(f(t)), f(t))$ implies\n$$\nf(t)^2 = f((t - g(t))^2) + f(t)^2 \\implies f((t - g(t))^2) = 0\n$$\nwhich is impossible.\nSo $g(f(x)) \\ge x$, for all positive real numbers $x$. Hence the solution is complete. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32695, "subject": "Mathematics (Multi-modal)", "question": "Let $a$, $b$ and $c$ be positive real numbers with $c \\ge b \\ge a$. Prove that\n$$\n\\frac{(c-a)^2}{6c} \\le \\frac{a+b+c}{3} - \\frac{3}{\\frac{1}{a} + \\frac{1}{b} + \\frac{1}{c}}\n$$", "options": [], "answer": "Detailed solution", "solution": "**First solution.** Just to simplify the calculations, define $S = a + c$ and $P = ac$. In this case, the RHS of the inequality becomes\n$$\nRHS = \\frac{a+b+c}{3} - \\frac{3}{\\frac{1}{a} + \\frac{1}{b} + \\frac{1}{c}} = \\frac{S+b}{3} - \\frac{3Pb}{Sb+P}.\n$$\nThe goal is to minimize the above phrase as a function of $b$; Note that the phrase, as a function of $b$, has a linear term which is $\\frac{S+b}{3}$, and a fractional term with the denominator $Sb + P$. Now we re-write the phrase using the new variable $t = Sb + P$ and with a little calculation we shall have\n$$\nRHS = \\frac{S+b}{3} - \\frac{3Pb}{Sb+P} = \\frac{S^2 - 10P}{3S} + \\frac{t}{3S} + \\frac{P^2}{St}.\n$$\nNote that the multiply of the last two terms is a phrase without the variable $t$. Therefore with using the AM-GM inequality we obtain\n$$\nRHS \\ge \\frac{S^2 - 10P}{3S} + 2\\sqrt{\\frac{P^2}{S^2}} = \\frac{S^2 - 4P}{3S} = \\frac{(c-a)^2}{3(c+a)} \\ge \\frac{(c-a)^2}{6c}. \\blacksquare\n$$\n\n\n**Second solution.** For the easement of calculations, for any arbitrary formula $F(a, b, c)$ with three variables $a$, $b$ and $c$, the cyclic sum\n$$\nF(a, b, c) + F(b, c, a) + F(c, a, b),\n$$\nis shown with $\\sum F(a, b, c)$. Using this notation, we expand the RHS of the inequality\n$$\n\\begin{aligned}\n\\frac{\\sum a}{3} - \\frac{3}{\\sum \\frac{1}{a}} &= \\frac{\\sum a}{3} - \\frac{3abc}{\\sum ab} = \\frac{(\\sum a)(\\sum ab) - 9abc}{3 \\sum ab} \\\\\n&= \\frac{\\sum (a^2b + ab^2) - 6abc}{3 \\sum ab} = \\frac{\\sum a(b-c)^2}{3 \\sum ab}.\n\\end{aligned}\n$$\nTherefore, the claim of the problem is equivalent to the following inequality\n$$\n\\sum a(b-c)^2 \\ge \\left( \\frac{\\sum ab}{2c} \\right) (c-a)^2. \\quad (1)\n$$\nBut note that with condition $a \\le b \\le c$, $\\frac{ab}{2c}$ is not greater than $\\frac{b}{2}$ so for the RHS of the above inequality we have\n$$\n\\left( \\frac{\\sum ab}{2c} \\right) (c-a)^2 = \\left( \\frac{ab}{2c} + \\frac{a+b}{2} \\right) (c-a)^2 \\le \\left( \\frac{a}{2} + b \\right) (c-a)^2. \\quad (2)\n$$\nFor the LHS of (1), we have\n$$\n\\sum a(b-c)^2 \\ge b(c-a)^2 + a((c-b)^2 + (b-a)^2). \\quad (3)\n$$\nNote that for any two numbers $X, Y$,\n$$\n\\begin{aligned}\n(X - Y)^2 \\ge 0 &\\implies X^2 + Y^2 - 2XY \\ge 0 \\\\\n&\\implies 2(X^2 + Y^2) \\ge (X + Y)^2 \\\\\n&\\implies X^2 + Y^2 \\ge \\frac{(X + Y)^2}{2}.\n\\end{aligned}\n$$\nTherefore, if $X = c - b$, $Y = b - a$ using (3), we obtain\n$$\n\\sum a(b-c)^2 \\ge b(c-a)^2 + a((c-b)^2 + (b-a)^2) \\ge b(c-a)^2 + \\frac{a}{2}(c-a)^2.\n$$\nThis inequality along with (2) implies (1) which is equivalent to the claim of the problem. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32696, "subject": "Mathematics (Multi-modal)", "question": "A $(n + 1)$-tuple $(h_1, h_2, \\dots, h_{n+1})$ where for every $1 \\le i \\le n + 1$, $h_i(x_1, x_2, \\dots, x_n)$ is an $n$-variable polynomial with real coefficients is called **good** if the following condition holds.\nFor any $n$ functions $f_1, f_2, \\dots, f_n : \\mathbb{R} \\to \\mathbb{R}$, if for all $1 \\le i \\le n + 1$, $P_i(x) = h_i(f_1(x), f_2(x), \\dots, f_n(x))$ is a polynomial in variable $x$, then $f_1(x), f_2(x), \\dots, f_n(x)$ are polynomials.\n\na) Prove that for all positive integers $n$, there exists a **good** $(n+1)$-tuple $(h_1, h_2, \\dots, h_{n+1})$ such that the degree of each $h_i$ is more than one.\n\nb) Prove that there does not exist any integer $n > 1$ for which there is a **good** $(n+1)$-tuple $(h_1, h_2, \\dots, h_{n+1})$ such that all $h_i$ are symmetric polynomials.", "options": [], "answer": "Detailed solution", "solution": "a) We set an example using induction on $n$. For $n=1$, consider the following pair of polynomials of degree 2\n$$\nh_1(x) = x^2 + x, \\ h_2(x) = -x^2.\n$$\nNow for any function $f: \\mathbb{R} \\to \\mathbb{R}$, if $P_1(x)=h_1(f(x))$ and $P_2(x)=h_2(f(x))$ are polynomials, then $P_1(x) + P_2(x) = f(x)$ is a polynomial.\n\nNow assume that $(h_1, h_2, \\dots, h_{n+1})$ is a **good** $(n+1)$-tuple of $n$-variable polynomials. Define the following $(n+2)$-tuple $(g_1, g_2, \\dots, g_{n+2})$ of polynomials with $n+1$ variables as\n$$\n\\begin{cases}\ng_i(x_1, x_2, \\dots, x_{n+1}) = h_i(x_1, x_2, \\dots, x_n), & 1 \\le i \\le n+1, \\\\\ng_{n+2}(x_1, x_2, \\dots, x_{n+1}) = x_1^2 + x_{n+1}, & i = n+2.\n\\end{cases}\n$$\nNow let $f_1, f_2, \\dots, f_{n+1} : \\mathbb{R} \\to \\mathbb{R}$ be some functions such that for all $1 \\le i \\le n+2$\n$$\nP_i(x_1, \\dots, x_{n+1}) = g_i(f_1, f_2, \\dots, f_{n+1}),\n$$\nis a polynomial. By induction hypothesis we obtain that $f_1(x), f_2(x), \\dots, f_n(x)$ are polynomials. Note that $f_1(x)^2$ is a polynomial.\nTherefore, $f_{n+1} = P_{n+2} - f_1^2$ is also a polynomial.\nThe degree of all $g_i$'s are more than 1. Therefore the given example is a **good** $(n+2)$-tuple.\n\nb) According to the Fundamental Theorem of Symmetric Polynomials, for any symmetric polynomial $h_i(x_1, \\dots, x_n)$ there exists another polynomial $g_i(x_1, \\dots, x_n)$ such that\n$$\nh_i(x_1, \\dots, x_n) = g_i \\left( \\sum_{sym} x_i, \\sum_{sym} x_i x_j, \\dots, x_1 x_2 \\cdots x_n \\right).\n$$\nNow assume that for some $n > 1$ there exists a **good** $(n + 1)$-tuple of symmetric polynomials. Consider the following functions\n$$\nf_1(x) = |x|, \\ f_2(x) = -|x|, \\ f_3(x) = f_4(x) = \\dots = f_{n+1}(x) = 0.\n$$\nNote that\n$$\n\\left\\{\n\\begin{array}{l}\n\\sum_{sym} f_i f_j = -x^2, \\\\\n\\\\\n\\sum_{sym} f_{i_1} f_{i_2} \\cdots f_{i_k} = 0, \\quad \\forall k \\neq 2.\n\\end{array}\n\\right.\n$$\nTherefore,\n$$\nP_i(x) = h_i(f_1(x), \\dots, f_n(x)) = g_i(0, -x^2, 0, \\dots, 0) = H_i(-x^2).\n$$\nWhere $H_i$ is a polynomial with real coefficients. So for any $i$, $P_i(x)$ is a polynomial, and therefore all $f_i$'s are polynomials, too. But $f_1$ and $f_2$ are not polynomials. Contradiction, hence the claim. ■", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 32697, "subject": "Mathematics (Multi-modal)", "question": "$k$, $n$ are two arbitrary positive integers. Prove that there exists at least $(k-1)(n-k+1)$ positive integers that can be produced by $n$ number of $k$'s and using only $+$, $-$, $\\times$, $\\div$ operations and adding parentheses between them, but cannot be produced using $n-1$ number of $k$'s.", "options": [], "answer": "Detailed solution", "solution": "Consider numbers of the form $k^m(k^i + j)$ for $i \\in \\{1, \\dots, n-k+1\\}$, $j \\in \\{1, \\dots, k-1\\}$ and $m \\ge 0$.\nNote that for such $i$ and $j$ in these intervals, we have $i + j \\le n$. Based on $n - (i + j)$ is an odd number or an even number, we have two cases.\n\n* If $n - (i + j)$ is odd, there is some integer $t \\ge 0$ such that\n$$\nn - (i + j) = 2t + 1.\n$$\nIn this case, the number $k^i + j$ can be represented using $n$ number of $k$'s as\n$$\nk^i + j = \\underbrace{(k \\times \\dots \\times k)}_{i+t} \\div \\underbrace{(k \\times \\dots \\times k)}_{t} + \\underbrace{(k + \\dots + k)}_{j} \\div k.\n$$\n\n* If $n - (i + j)$ is even, there is some integer $t \\ge 0$ such that\n$$\nn - (i + j) = 2t.\n$$\nIn this case, the number $k(k^i + j)$ can be shown using $n$ number of $k$'s as\n$$\nk(k^i + j) = k \\times \\underbrace{((k \\times \\dots \\times k))}_{i+t-1} \\div \\underbrace{(k \\times \\dots \\times k)}_{t-1} + \\underbrace{(k + \\dots + k)}_{j} \\div k.\n$$\n(In case when $t = 0$, we have $t - 1 = -1$, so in the above equation, instead of multiplying the parentheses to $-1$ $k$'s, we divide it by one $k$.)\n\nSo in both cases, there is $m \\ge 0$ such that $k^m(k^i + j)$ can be represented using $n$ number of $k$'s. Set $m$ to be the largest number such that $k^m(k^i + j)$ can be represented using only $n$ number of $k$'s (for fixed $i$ and $j$). There are a total of $(n-k+1)(k-1)$ numbers created with given properties. We prove that they are all distinct numbers and also cannot be represented using $n-1$ number of $k$'s.\n\nIf some number $u = k^m(k^i + j)$ can be shown using $n-1$ number of $k$'s, then clearly $k \\times u = k^{m+1}(k^i + j)$ has a representation, using $n$ number of $k$'s, therefore $m$ cannot be the largest number such that $k^m(k^i + j)$ has a representation using $n$ number of $k$'s, so we conclude that it is impossible to reach these numbers with only $n-1$ number of $k$'s.\n\nFinally, if for two such triples $(i_1, j_1, m_1) \\ne (i_2, j_2, m_2)$ with $m_1 \\ge m_2$, we have\n$$\nk^{m_1} (k^{i_1} + j_1) = k^{m_2} (k^{i_2} + j_2),\n$$\nthen\n$$\nk^{m_1 - m_2} (k^{i_1} + j_1) = k^{i_2} + j_2.\n$$\n\nBut if $m_1 - m_2 > 0$, the above equation implies $k \\mid j_2$, which is impossible because $j_2 < k$. Therefore $m_1 = m_2$ and so $k^{i_1} + j_1 = k^{i_2} + j_2$. Without loss of generality, we assume $i_1 \\ge i_2$. So\n$$\nk^{i_2} (k^{i_1 - i_2} - 1) = j_2 - j_1.\n$$\nAgain, if $i_1 > i_2$, we get $k \\mid j_2 - j_1$. Note that $j_1, j_2 \\in \\{1, \\dots, k-1\\}$, therefore $-k < |j_1 - j_2| < k$, so we must have $j_1 - j_2 = 0$ and thus $k^{i_1} = k^{i_2}$ which means $i_1 = i_2$, that is impossible in this case because we assumed that $i_1 > i_2$. The only possible case is when $i_1 = i_2$ which leads to $j_1 = j_2$. Therefore $(i_1, j_1, m_1) = (i_2, j_2, m_2)$, contradiction. So indeed, all of the created numbers are distinct and hence the claim of the problem. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32698, "subject": "Mathematics (Multi-modal)", "question": "Let $k > 1$ be an integer. The sequence $\\{a_i\\}_{i=1}^\\infty$ is defined as $a_1 = 1$, $a_2 = k$, and for all $n > 1$ we have\n$$\na_{n+1} - (k+1)a_n + a_{n-1} = 0.\n$$\nFind all positive integers $n$ such that $a_n$ is a power of $k$.", "options": [], "answer": "n = 1 and n = 2", "solution": "We are going to find the general term of the sequence. Note that since $k > 1$, the characteristic polynomial $P(x) = x^2 - (k+1)x + 1$ has two different roots\n$$\nr_1 = \\frac{k+1+\\sqrt{(k-1)(k+3)}}{2}, \\quad r_2 = \\frac{k+1-\\sqrt{(k-1)(k+3)}}{2}.\n$$\nSo $a_n$ has a general form as\n$$\na_n = c_1 r_1^n + c_2 r_2^n,\n$$\nwhere $c_1, c_2$ are fixed numbers. Considering the values of $a_1, a_2$, the values of $c_1, c_2$ are found\n$$\nc_1 = \\frac{\\sqrt{k+3} - \\sqrt{k-1}}{2\\sqrt{k+3}}, \\quad c_2 = \\frac{\\sqrt{k+3} + \\sqrt{k-1}}{2\\sqrt{k+3}}.\n$$\n**Lemma.** *The sequence has a general form as*\n$$\na_n = \\frac{\\varphi^{2n-1} + \\frac{1}{\\varphi^{2n-1}}}{\\varphi + \\frac{1}{\\varphi}},\n$$\n$$\n\\text{where } \\varphi = \\frac{\\sqrt{k+3}+\\sqrt{k-1}}{2}.\n$$\n*Proof.* Note that $r_1 + r_2 = k+1$ and $r_1 r_2 = 1$. If we set $\\varphi = \\frac{\\sqrt{k+3}+\\sqrt{k-1}}{2}$, we have\n$$\n\\varphi^2 = \\frac{k+1+\\sqrt{(k-1)(k+3)}}{2} = r_1 = \\frac{1}{r_2}, \\\\\n\\frac{1}{\\varphi} = \\frac{\\sqrt{k+3}-\\sqrt{k-1}}{2}, \\\\\n\\varphi + \\frac{1}{\\varphi} = \\sqrt{k+3}.\n$$\nTherefore\n$$\nc_1 = \\frac{1}{\\varphi} \\cdot \\frac{1}{\\varphi + \\frac{1}{\\varphi}}, \\quad c_2 = \\varphi \\cdot \\frac{1}{\\varphi + \\frac{1}{\\varphi}}.\n$$\nSo we get\n$$\na_n = \\frac{1}{\\varphi(\\varphi + \\frac{1}{\\varphi})} \\cdot (\\varphi^2)^n + \\frac{\\varphi}{\\varphi + \\frac{1}{\\varphi}} \\cdot \\left(\\frac{1}{\\varphi^2}\\right)^n = \\frac{\\varphi^{2n-1} + \\frac{1}{\\varphi^{2n-1}}}{\\varphi + \\frac{1}{\\varphi}}.\n$$\nIt is easy to see, by induction, that if we consider the sequence modulo $k$ we have\n$$\n(a_{6n+1}, a_{6n+2}, a_{6n+3}, a_{6n+4}, a_{6n+5}, a_{6n+6}) \\stackrel{k}{\\equiv} (1, 0, -1, -1, 0, 1).\n$$\nTherefore another lemma is concluded.\n**Lemma.** For any positive integer $n$, we have\n$k \\mid a_n \\iff n \\stackrel{3}{\\equiv} 2, \\text{ and } \\gcd(k, a_n) = 1 \\iff n \\stackrel{3}{\\not\\equiv} 2.$\nNow we prove the third and the final lemma.\n**Lemma.** For any two odd numbers $m$ and $n$ such that $n \\mid m$, we have\n$$\na_{\\frac{n+1}{2}} \\mid a_{\\frac{m+1}{2}}\n$$\n*Proof.* First, we claim that for any integer $n$, $\\varphi^{2n} + \\frac{1}{\\varphi^{2n}} \\in \\mathbb{Z}^+$. For $n = 0, 1$ the claim is correct. Assume that the claim is true for $n-1, n-2$. We have\n$$\n\\underbrace{\\left(\\varphi^{2(n-2)} + \\frac{1}{\\varphi^{2(n-2)}}\\right)}_{\\in \\mathbb{Z}^+} + \\left(\\varphi^{2n} + \\frac{1}{\\varphi^{2n}}\\right) = \\underbrace{\\left(\\varphi^{2(n-1)} + \\frac{1}{\\varphi^{2(n-1)}}\\right)}_{\\in \\mathbb{Z}^+} \\left(\\varphi^2 + \\frac{1}{\\varphi^2}\\right).\n$$\nTherefore $\\varphi^{2n} + \\frac{1}{\\varphi^{2n}} \\in \\mathbb{Z}^+$, so the claim is proved, using induction on $n$. Now set $m = nl$ (therefore $l$ is also odd). We have\n$$\na_{\\frac{n+1}{2}} = \\frac{\\varphi^n + \\frac{1}{\\varphi^n}}{\\varphi + \\frac{1}{\\varphi}}, \\quad a_{\\frac{m+1}{2}} = \\frac{\\varphi^{nl} + \\frac{1}{\\varphi^{nl}}}{\\varphi + \\frac{1}{\\varphi}}.\n$$\nTherefore\n$$\n\\begin{align*} \\frac{a_{\\frac{m+1}{2}}}{a_{\\frac{n+1}{2}}} &= \\frac{\\varphi^{nl} + \\frac{1}{\\varphi^{nl}}}{\\varphi^n + \\frac{1}{\\varphi^n}} \\\\ &= \\varphi^{(l-1)n} - \\varphi^{(l-3)n} + \\dots - \\frac{1}{\\varphi^{(l-3)n}} + \\frac{1}{\\varphi^{(l-1)n}} \\\\ &= \\sum_{i \\stackrel{2}{\\equiv} \\frac{l-1}{2}} \\left( \\varphi^{2in} + \\frac{1}{\\varphi^{2in}} \\right) - \\sum_{j \\stackrel{2}{\\equiv} \\frac{l-3}{2}} \\left( \\varphi^{2jn} + \\frac{1}{\\varphi^{2jn}} \\right) = s \\in \\mathbb{Z}, \\end{align*}\n$$\nSo $a_{\\frac{m+1}{2}} = s \\cdot a_{\\frac{n+1}{2}}$, hence the lemma.\n\nBack to the problem, let $n$ be an integer such that $a_n = k^m$ is a power of $k$. Assume that $n \\ge 3$.\nConsider a prime factor of $2n-1$ like $p$. Since both $p$ and $2n-1$ are odd numbers, according to the final lemma we have\n$$\na_{\\frac{p+1}{2}} | a_n.\n$$\nAgain, consider a prime factor of $a_{\\frac{p+1}{2}}$ like $q$, we have\n$$\nq | a_{\\frac{p+1}{2}} | a_n = k^m \\implies q | k.\n$$\nTherefore $\\gcd(k, a_{\\frac{p+1}{2}}) \\ge q$. So according to the second lemma, since $\\gcd(k, a_{\\frac{p+1}{2}}) \\ne 1$ we have\n$$\n\\frac{p+1}{2} \\stackrel{3}{=} 2 \\implies p \\stackrel{3}{=} 0 \\implies p = 3.\n$$\nSo $2n-1 = 3^v$ for some integer $v$. Since $n \\ge 3$ we have $v \\ge 2$. Therefore\n$$\n9 | 3^v | 2n-1.\n$$\nAgain, according to the final lemma we obtain\n$$\na_5 = a_{\\frac{9+1}{2}} | a_n.\n$$\nBut $a_5 = k(k^3 + 3k^2 - 3)$. So we must have $t = k^3 + 3k^2 - 3 \\mid k^{m-1}$. Note that $k \\ge 2$, so $t \\ge 17$. Thus $m-1 > 0$. Let $r$ be a prime factor of $t$. We have\n$$\n\\left. \\begin{array}{l} r \\mid t \\mid k^{m-1} \\\\ r \\mid k^3 + 3k^2 - 3 \\end{array} \\right\\} \\implies r \\mid 3 \\implies r = 3.\n$$\nTherefore $k^3 + 3k^3 - 3 = 3^h$, since $t \\ge 17$ we have $h \\ge 3$. The final equation implies $k = 3u$ for some integer $u$. So we can rewrite it as\n$$\n27u^3 + 27u - 3 = 3^h.\n$$\nSince $h \\ge 3$, we have $27 \\mid 3^h$ but $27 \\nmid 27u^3 + 27u - 3$. Contradiction. This means our assumption that such $n \\ge 3$ exists was incorrect. So $n=1, 2$ are the only answers of the problem. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32699, "subject": "Mathematics (Multi-modal)", "question": "Let $n > 1$ be an integer. Prove that there exists an integer $n-1 \\ge m \\ge \\lfloor \\frac{n}{2} \\rfloor$ such that the following equation has integer solutions with $a_m > 0$\n$$\n\\frac{a_m}{m+1} + \\frac{a_{m+1}}{m+2} + \\dots + \\frac{a_{n-1}}{n} = \\frac{1}{\\text{lcm}(1, 2, \\dots, n)}.\n$$", "options": [], "answer": "Detailed solution", "solution": "Two simple lemmas are needed to prove the problem.\n\n**Lemma.** For all integers $k > 1$, if $x_1, x_2, \\dots, x_k$ are integers with\n$$\n\\gcd(x_1, \\dots, x_k) = 1,\n$$\nthen there are integers $a_1, \\dots, a_k$ such that\n$$\na_1x_1 + \\dots + a_kx_k = 1.\n$$\n\n*Proof.* For $k = 2$ the statement of the lemma is **Bézout's Lemma** for relatively prime numbers, that is well-known. Now we use induction on $k$. Knowing that the lemma is true for $k = n$, for numbers $x_1, \\dots, x_{n+1}$ that are relatively prime, we have\n$$\n\\text{gcd}(x_1, x_2, \\dots, x_{n-1}, \\text{gcd}(x_n, x_{n+1})) = 1.\n$$\nNow applying the lemma for $k = n$, there are numbers $a_1, \\dots, a_n$ such that\n$$\na_1x_1 + a_2x_2 + \\dots + a_{n-1}x_{n-1} + a_n\\text{gcd}(x_n, x_{n+1}) = 1\n$$\nUsing the **Bézout's Lemma**, there are $b_n, b_{n+1}$ such that\n$$\n\\text{gcd}(x_n, x_{n+1}) = b_n x_n + b_{n+1} x_{n+1}.\n$$\nSet $y_i = a_i$ for $i < n$, $y_n = a_n b_n$ and $y_{n+1} = a_n b_{n+1}$ to get\n$$\ny_1 x_1 + \\dots + y_{n+1} x_{n+1} = 1.\n$$\nWhich is the statement of the lemma for $k = n + 1$. So the lemma is proved using induction.\n\n**Lemma.** *Set* $L = \\text{lcm}(1, 2, \\dots, n)$, then $\\text{gcd}(\\frac{L}{m+1}, \\frac{L}{m+2}, \\dots, \\frac{L}{n}) = 1$ where $m = \\lfloor \\frac{n}{2} \\rfloor$.\n\n*Proof.* First note that $\\text{lcm}(1, 2, \\dots, n) = \\text{lcm}(m+1, m+2, \\dots, n)$. That is because for all $1 \\le k \\le m$, the number $s = \\lceil \\log_2(\\frac{m+1}{k}) \\rceil$ is an integer such that\n$$\n2^s \\cdot k \\in \\{m+1, m+2, \\dots, n\\}.\n$$\nNow assume that\n$$\nd = \\text{gcd} \\left( \\frac{L}{m+1}, \\frac{L}{m+2}, \\dots, \\frac{L}{n} \\right).\n$$\nFor all $m+1 \\le i \\le n$ we have\n$$\nd \\mid \\frac{L}{i} \\implies \\exists k; d \\cdot k = \\frac{L}{i} \\implies i \\cdot k = \\frac{L}{d} \\implies i \\mid \\frac{L}{d}.\n$$\nWhich implies\n$$\nL = \\text{lcm}(m+1, m+2, \\dots, n) \\mid \\frac{L}{d} \\implies d = 1.\n$$\n\nBack to the problem, according to both lemmas, since\n$$\n\\text{gcd} \\left( \\frac{L}{m+1}, \\frac{L}{m+2}, \\dots, \\frac{L}{n} \\right) = 1,\n$$\nwe obtain there are some integers $x_m, x_{m+1}, \\dots, x_{n-1}$ such that\n$$\nx_m \\cdot \\frac{L}{m+1} + x_{m+1} \\cdot \\frac{L}{m+2} + \\dots + x_{n-1} \\cdot \\frac{L}{n} = 1.\n$$\nNow consider a natural number $t$ such that $x_m + t \\cdot \\frac{L}{m+2} > 0$ and set\n$$\n\\begin{cases} a_m = x_m + t \\cdot \\frac{L}{m+2}, \\\\ a_{m+1} = x_{m+1} - t \\cdot \\frac{L}{m+1}, \\\\ a_i = x_i, \\end{cases} \\quad \\forall i > m+1\n$$\nto get\n$$\n\\frac{a_m}{m+1} + \\frac{a_{m+1}}{m+2} + \\dots + \\frac{a_{n-1}}{n} = \\frac{1}{\\text{lcm}(1, 2, \\dots, n)}.\n$$\nSince $a_m = x_m + t \\cdot \\frac{L}{m+2} > 0$, this is the desired equation for $m = \\lfloor \\frac{n}{2} \\rfloor$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32700, "subject": "Mathematics (Multi-modal)", "question": "Find all functions $f : \\mathbb{R}^{+} \\times \\mathbb{R}^{+} \\rightarrow \\mathbb{R}^{+}$ that satisfy the following conditions for all positive real numbers $x, y, z$\n$$\n\\begin{gathered} f(f(x, y), z) = x^2 y^2 f(x, z), \\\\ f(x, 1 + f(x, y)) \\geq x^2 + xyf(x, x). \\end{gathered} \\qquad (\\rightarrow \\text{p.57})\n$$", "options": [], "answer": "f(x, y) = x^2 y", "solution": "* The function $g(x) = f(x, 1)$ is bijective.\nAssume that $a, b$ are two positive numbers with $f(a, 1) = f(b, 1)$.\nBy comparing $P(a, 1, 1)$, $P(b, 1, 1)$ we obtain\n$$\na^2 f(a, 1) = f(f(a, 1), 1) = f(f(b, 1), 1) = b^2 f(b, 1) \\implies a = b.\n$$\nSo $f(a, 1)$ is injective. Also\n$$\nP(1, y, 1) : f(f(1, y), 1) = y^2 f(1, 1).\n$$\nThe *RHS* of the above equation can be any positive real number, so $f(a, 1)$ is surjective.\n* The function $h(x) = f(1, x)$ is bijective.\nNote that for any positive real number $t$, we have\n$$\nP\\left(1, \\underbrace{\\sqrt{\\frac{f(t, 1)}{f(1, 1)}}}_{y}, 1\\right) : f(f(1, y), 1) = f(t, 1).\n$$\nAccording to the previous claim, we must have $h(y) = f(1, y) = t$ so $h(x)$ is surjective. Now\n$$\nP(1, 1, 1) : f(f(1, 1), 1) = f(1, 1) \\implies f(1, 1) = 1.\n$$\nNow if for some positive numbers $a, b$ we have $f(1, a) = f(1, b)$, by comparing $P(1, a, 1)$, $P(1, b, 1)$ we obtain\n$$\na^2 = f(f(1, a), 1) = f(f(1, b), 1) = b^2 \\implies a = b.\n$$\nSo $h(x)$ is injective.\nWe have\n$$\nP(1, y, z) : f(f(1, y), z) = y^2 f(1, z),\n$$\nAnd also had\n$$\nP(1, y, 1) : f(f(1, y), 1) = y^2.\n$$\nSo we obtain\n$$\nf(h(y), z) = f(f(1, y), z) = y^2 f(1, z) = g(h(y)) h(z).\n$$\n$$\n\\forall a, z \\in \\mathbb{R}^{+} : f(a, z) = g(a)h(z).\n$$\nNow using the above equation, we rewrite the first assertion $P(x, y, z)$ and get\n$$\ng(g(x)h(y)) = x^2y^2g(x), \\quad g(1) = h(1) = 1\n$$\nNow set $y = 1$ to get $g(g(x)) = x^2g(x)$, also we had $g(h(y)) = y^2$, so we can rewrite the above equation as\n$$\ng(g(x)h(y)) = g(g(x))g(h(y)) \\quad \\underset{\\text{are surjective}}{\\overset{g,h}{\\implies}} \\quad \\forall x, y \\in \\mathbb{R}^{+} : g(xy) = g(x)g(y).\n$$\nWe can also get\n$$\n\\begin{array}{rcl}\ng(h(y)) = y^2 & \\Longrightarrow & g(h(xy)) = x^2 y^2 = g(h(x))g(h(y)) = g(h(x)h(y)), \\\\\n& \\underset{\\text{is injective}}{\\stackrel{g}{\\Longrightarrow}} & h(xy) = h(x)h(y). \\\\[1.5ex]\ng(g(x)) = x^2 g(x) & \\Longrightarrow & g(g(h(x))) = h(x)^2 g(h(x))), \\\\\n& \\Longrightarrow & g(x^2) = x^2 h(x^2) = x^2 h(x^2), \\\\\n& \\Longrightarrow & \\forall x \\in \\mathbb{R}^+ : g(x) = xh(x), \\\\\n& \\Longrightarrow & h(y)h(h(y)) = y^2.\n\\end{array}\n$$\nNow rewrite $Q(x, y)$\n$$\nh(x + x^2h(xy)) \\geq x + xyh(x)^2.\n$$\nSet $y \\to \\frac{y}{x}$ to get\n$$\nh(x + x^2h(y)) \\geq x + yh(x)^2 \\implies h(1 + xh(y)) \\geq \\frac{x}{h(x)} + yh(x).\n$$\nNote that $h(1) = h(x)h(\\frac{1}{x})$, so $h(\\frac{1}{x}) = \\frac{1}{h(x)}$. Set $x = \\frac{1}{h(y)}$ above to get\n$$\nh(2) \\geq \\frac{h(h(y))}{h(y)} + \\frac{y}{h(h(y))} \\geq 2\\sqrt{\\frac{y}{h(y)}} \\implies \\exists c \\in \\mathbb{R}^{+} : h(y) \\geq cy.\n$$\nAlso since $h(xy) = h(x)h(y)$, we obtain $h(x^n) = h(x)^n$, for all positive integers $n$. Therefore\n$$\n\\begin{align*}\nh(y)^n &= h(y^n) \\ge cy^n \\implies h(y) \\ge \\sqrt[n]{cy} \\stackrel{n \\to \\infty}{\\Longrightarrow} h(y) \\ge y \\\\\n\\implies y^2 &= h(y)h(h(y)) \\ge y^2 \\implies h(y) = y \\implies g(x) = x^2 \\\\\n\\implies f(x,y) &= g(x)h(y) = x^2y\n\\end{align*}\n$$\nSo $f(x, y) = x^2y$ is the only answer of the problem which is indeed a\nsolution. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32701, "subject": "Mathematics (Multi-modal)", "question": "There are 6 points on the plane such that no three of them are collinear. We know that among every 4 points of them, there exists a point that its power with respect to the circle passing through the other three points is a constant value $k$ (power of a point in the interior of a circle has a negative value). Prove that $k = 0$ and all 6 points lie on a circle.", "options": [], "answer": "k = 0 and all six points lie on a common circle", "solution": "In any quadruple of the points, consider the point which has the power $k$ with respect to the circle passing through the other three, name these points **good** points. We claim that there are two quadruples with the same **good** point, and two other common points.\nThere are $\\binom{6}{4} = 15$ quadruples, each has at least one **good** point, since there are six points in total, there exists a point $P$ which is a **good** point in at least $\\lceil \\frac{15}{6} \\rceil = 3$ quadruples.\nThe other five points need to fill the remaining place in each of these quadruples, there are a total of $3 \\times 3 = 9$ places, so there is a point $Q$ that is in at least $\\lceil \\frac{9}{5} \\rceil = 2$ of the quadruples.\n\nConsider these two quadruples containing $P$ and $Q$. There are a total of 4 places in these quadruples need to be filled with the other 4 points. The claim is directly proved if some point $R$ is a member of both of these quadruples. In other case, the remaining 4 points must appear exactly once in these 4 remaining places. So we have two quadruples\n$$\nQ_1 = (P, Q, R, S), \\ Q_2 = (P, Q, T, U).\n$$\nWhere $P, Q, R, S, T, U$ are all six points of the problem.\nWe said $P$ is a **good** point in at least 3 quadruples. Consider the third quadruple $Q_3$ containing $P$ as a **good** point. 3 remaining places must be filled with the other five points $Q, R, S, T$ or $U$. If both $R, S$ or $T, U$ are members of $Q_3$, then (respectively) $Q_1$ or $Q_2$ have three common points with $Q_3$. Otherwise, only one member of $\\{R, S\\}$, one member of $\\{T, U\\}$ along with $Q$ are members of $Q_3$, in this case, both $Q_1, Q_2$ have three common points with $Q_3$. Therefore the claim is proved in any case.\nSo we have found two quadruples with exactly three common points and also the same **good** point $P$. Without loss of generality, assume that these two quadruples are $(P, Q, R, S)$, $(P, Q, R, T)$. Let $\\omega_1$ and $\\omega_2$ be the circumcircles of triangles $QRS$ and $QRT$, respectively. We have\n$$\n\\mathcal{P}_{\\omega_1}(P) = \\mathcal{P}_{\\omega_2}(P) = k,\n$$\n(Where $\\mathcal{P}_{\\lambda}(X)$ is the power of point $X$ with respect to circle $\\lambda$.) If $\\omega_1 \\neq \\omega_2$, the above equation implies $P$ is a point on the radical axis of these two circles, that means $P$ lies on $QR$ which is impossible since there are no three points on a same line. So the only possible case is when $\\omega_1 = \\omega_2$, means points $Q, R, S$ and $T$ lie on a circle. Therefore by considering the quadruple $(Q, R, S, T)$, we obtain $k = 0$.\nThe rest of the problem is clear, $k = 0$ means between any quadruple, one point lies on the circle passing through the other three point, in other words, any four points are concyclic. Now fix three points $P, Q, R$, we get that any other point is concyclic with these three points, hence all six points lie on the circumcircle of triangle $PQR$. ■", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32702, "subject": "Mathematics (Multi-modal)", "question": "In triangle $ABC$ denote by $O$ and $H$ be the circumcenter and the orthocenter. The point $P$ is the reflection of $A$ with respect to $OH$. Assume that $P$ is not on the same side of $BC$ as $A$. Points $E$ and $F$ lie on sides $AB$ and $AC$, respectively, such that $BE = PC$ and $CF = PB$. Let $K$ be the intersection point of $AP$ and $OH$. Prove that $\\widehat{EKF} = 90^\\circ$.", "options": [], "answer": "Detailed solution", "solution": "Let $M$ be the midpoint of $BC$ and $S$ be the reflection of $P$ over $M$. First we show that $S$ lies on $OH$.\n\n![](attached_image_1.png)\n\nWe have\n$$\n\\begin{cases} PM = MS \\\\ PK = KA \\end{cases} \\Rightarrow MK \\parallel AS, MK = \\frac{AS}{2}.\n$$\n\n$$\n\\triangle MKO \\sim \\triangle AHS.\n$$\nBecause of the facts that $MK \\parallel AS$ and $MO \\parallel AH$, we conclude that $KO \\parallel HS$ which means $S$ is a point on $OH$.\n\nNow we show that $\\overrightarrow{ESF} = 90^\\circ$. Note that since $MB = MC$ and $MS = MP$, $BSCP$ is a parallelogram, therefore\n$$\n\\begin{cases} \\overrightarrow{BSC} = \\overrightarrow{BPC} = 180^\\circ - \\hat{A}, \\\\ \\overrightarrow{SBC} = \\overrightarrow{PCB} \\Rightarrow \\overrightarrow{SBE} = \\hat{B} - \\overrightarrow{PCB}, \\\\ \\overrightarrow{SCB} = \\overrightarrow{PBC} \\Rightarrow \\overrightarrow{SCF} = \\hat{C} - \\overrightarrow{PBC}. \\end{cases}\n$$\nSo we have\n$$\n\\begin{cases} BS = PC = BE \\Rightarrow \\overrightarrow{ESB} = 90^\\circ - \\frac{SBE}{2} = 90^\\circ - \\frac{\\hat{B}-\\overrightarrow{PCB}}{2}, \\\\ CS = PB = CF \\Rightarrow \\overrightarrow{FSC} = 90^\\circ - \\frac{SCF}{2} = 90^\\circ - \\frac{\\hat{C}-\\overrightarrow{PBC}}{2}. \\end{cases}\n$$\nTherefore\n$$\n\\begin{align*} \\overrightarrow{ESF} &= 360^\\circ - \\overrightarrow{ESB} - \\overrightarrow{FSC} - \\overrightarrow{BSC} \\\\ &= 360^\\circ - \\left(90^\\circ - \\frac{\\overrightarrow{B-PCB}}{2}\\right) - \\left(90^\\circ - \\frac{\\overrightarrow{C-PBC}}{2}\\right) - \\left(180^\\circ - \\hat{A}\\right) \\\\ &= \\frac{\\overrightarrow{B}}{2} + \\frac{\\overrightarrow{C}}{2} + A - \\frac{\\overrightarrow{PCB}+\\overrightarrow{PBC}}{2} \\\\ &= \\frac{\\overrightarrow{B}}{2} + \\frac{\\overrightarrow{C}}{2} + \\frac{\\overrightarrow{A}}{2} = 90^\\circ. \\end{align*}\n$$\n\nLet $T$ be the circumcenter of triangle $ESF$, since $BT$ and $CT$ are the perpendicular bisectors of $ES$ and $FS$ respectively, and since $\\overline{ESF} = 90^\\circ$ we obtain $\\widehat{BTS} = 90^\\circ$.\n\nNow we show that $MT \\parallel AP$. Let $R$ be the intersection of $AK$ with $BC$. It suffices to show that $\\overline{TMB} = \\overline{ARB}$.\nIf $\\widehat{PBC} = \\alpha$ we have\n$$\n\\left. \\begin{array}{l} \\overline{ARB} = \\alpha + \\overline{APB} = \\alpha + \\hat{C}, \\\\ \\widehat{BTC} = 90^\\circ \\\\ MB = MC \\end{array} \\right\\} \\implies MB = MC = MT,\n$$\nand so\n$$\n\\overline{TMB} = 2\\overline{TCM} = 2\\left(\\overline{SCM} + \\overline{TCS}\\right) = 2\\left(\\alpha + \\frac{\\hat{C}-\\alpha}{2}\\right) = \\alpha + \\hat{C} = \\overline{ARB}.\n$$\nTherefore, $MT \\parallel AP$. We have $\\overline{SKP} = 90^\\circ$. Also $MP = MS$, so $M$ is the circumcenter of triangle $SKP$ and thus it lies on the perpendicular bisector of $KS$. Also since $MT \\parallel AP$, and since $AP \\perp SK$ we conclude that $TM$ is the perpendicular bisector of $KS$ and so $TS = TK$. We also had $TS = TF = TE$. Therefore, points $E, S, K$ and $F$ lie on a circle with center $T$. So finally we obtain $\\overline{ESF} = \\overline{EKF} = 90^\\circ$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32703, "subject": "Mathematics (Multi-modal)", "question": "$ABCD$ is a square that is partitioned into rectangles such that no point is a corner of 4 rectangles. All corner points of rectangles are colored with 2 colors such that any two diagonal corners in a rectangle (of the partition) have different colors. If $A$ and $C$ have the same color, prove that $B$ and $D$ also have the same color.", "options": [], "answer": "Detailed solution", "solution": "Consider a graph $G$ as follows, vertices of rectangles of the partition are vertices of $G$, two vertices are connected if they are opposite corners of a rectangle of the partition. Obviously, there are $2n$ edges in $G$ where $n$ is the number of rectangles used in the partition.\n\nNote that if some point is a vertex of 3 rectangles, it must be a vertex of exactly 4 rectangles. By the statement of the problem, we conclude that each vertex of $G$ has degree equal to 1 or 2 and also, the only points with degree 1 are $A, B, C, D$. Therefore, it is easy to see that $G$ can be partitioned into some cycles and some paths. Each cycle has an even number of vertices, since any two adjacent vertices have the opposite colors. Also, since the first and the last vertices of each path are of degree 1, we conclude that there are exactly two paths in $G$, with ending points of $A, B, C, D$. There are two possibilities.\n\n* $A$ and $C$ are in the same path.\n\nWe know that the total number of edges is an even number ($2n$) and each cycle also has an even number of edges, and since $A$ and $C$ have the same color. The path containing $A$ and $C$ also has an even number of edges. Therefore, the remaining path of the graph, starts and ends with $B$ and $D$ and must have an even number of edges. Since any two adjacent vertices have different colors, we conclude that $B$ and $D$ are of the same color.\n\n• $A$ and $C$ are not in the same path.\n\nWithout loss of generality, assume that pairs $A$ and $D$ are in the same path and therefore $B$ and $C$ are also in the same path. With similar argument, we find out that either both paths have an odd number of edges, or both have an even number of edges.\n\nIn the first case we conclude that the color of $A$ is different with $D$, and the color of $C$ is different with $B$. Since $A$ and $C$ have the same color, this implies that $B$ and $D$ have the same color.\n\nSimilarly in the second case we conclude that $A, B, C, D$ all have the same color.\n\nSo in each case, the claim of the problem is proved.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32704, "subject": "Mathematics (Multi-modal)", "question": "In the country of Sugarland, there are $13$ students in the IMO team selection camp. $6$ team selection tests were taken and the results have come out. Assume that no students have the same score on the same test. To select the IMO team, the national committee of math Olympiad have decided to choose a permutation of these $6$ tests and starting from the first test, the person with the highest score between the remaining students will become a member of the team. The committee is having a session to choose the permutation.\nIs it possible that all $13$ students have a chance of being a team member?", "options": [], "answer": "Yes", "solution": "The answer of the problem is yes.\nAlthough the statement is discussed on $13$ students, here is an example for $14$ students, all having a chance of being a team member. (students are labelled by $1, 2, \\ldots, 14$.)\n\n| Test Rank | #1 | #2 | #3 | #4 | #5 | #6 |\n|-----------|----|----|----|----|----|----|\n| #1 | 1 | 1 | 1 | 1 | 1 | 1 |\n| #2 | 2 | 2 | 2 | 2 | 2 | 2 |\n| #3 | 3 | 3 | 4 | 4 | 5 | 5 |\n| #4 | 6 | 7 | 6 | 8 | 7 | 8 |\n| #5 | 9 | 10 | 11 | 12 | 13 | 14 |\n| ... | ...| ...| ...| ...| ...| ...|\n\nNote that the fifth person in each test can become a team member, only if all the other four persons above already have been chosen as a team member. Therefore, to prove that the example works, it suffices to show that the fifth person in each test can become a team member. For each of the students $9, 10, 11, 12, 13, 14$, consider these permutations of tests\n\n$$\n\\begin{array}{l}\n\\text{Student 9: } \\overbrace{5 \\to 6 \\to 2 \\to 4 \\to 3 \\to 1}^{\\text{Permutation of Tests}} \\implies \\overbrace{\\{1, 2, 3, 4, 6, 9\\}}, \\\\\n\\text{Student 10: } 3 \\to 4 \\to 1 \\to 6 \\to 5 \\to 2 \\implies \\{1, 2, 3, 5, 7, 10\\}, \\\\\n\\text{Student 11: } 5 \\to 6 \\to 2 \\to 4 \\to 1 \\to 3 \\implies \\{1, 2, 3, 4, 6, 11\\}, \\\\\n\\text{Student 12: } 1 \\to 2 \\to 3 \\to 5 \\to 6 \\to 4 \\implies \\{1, 2, 4, 5, 8, 12\\}, \\\\\n\\text{Student 13: } 3 \\to 4 \\to 1 \\to 6 \\to 2 \\to 5 \\implies \\{1, 2, 3, 5, 7, 13\\}, \\\\\n\\text{Student 14: } 1 \\to 2 \\to 3 \\to 5 \\to 4 \\to 6 \\implies \\{1, 2, 4, 5, 8, 14\\}.\n\\end{array}\n$$", "topic": "Discrete Mathematics", "subtopic": "Combinatorics" }, { "id": 32705, "subject": "Mathematics (Multi-modal)", "question": "$ABC$ is a triangle with circumcircle $\\omega_1$ and $\\widehat{C} = 2\\widehat{B}$. A tangent line to $\\omega_1$ at $A$ intersects $BC$ at $E$. Let $\\omega_2$ be a circle passing through $B$ and tangent to $AC$ at $C$. This circle intersects $AB$ for the second time at $F$. A line through $E$ is tangent to $\\omega_2$ at $K$ (where $BC$ lies between $A$ and $K$). Let $M$ be the midpoint of arc $BC$ of $\\omega_1$ (not containing $A$). Prove that $MFAK$ is a cyclic quadrilateral.", "options": [], "answer": "Detailed solution", "solution": "Considering the power of point $E$ with respect to circles $\\omega_1$, $\\omega_2$ we have\n$$\n\\begin{cases}\nEC \\cdot EB = EA^2 \\\\\nEC \\cdot EB = EK^2\n\\end{cases} \\implies EA = EK.\n$$\n\n![](attached_image_1.png)\n\nNow we claim that the angle bisectors of angles $\\widehat{BAC}$ and $\\widehat{BKC}$ intersect each other on side $BC$. For this purpose, it suffices to show that\n$$\n\\frac{KB}{KC} = \\frac{AB}{AC}.\n$$\nTriangles $ECK$ and $EKB$ are similar therefore $\\frac{KB}{KC} = \\frac{EB}{EK}$. Triangles $EAC$ and $EBA$ are also similar therefore $\\frac{AB}{AC} = \\frac{EB}{EA}$.\nAnd since $EK = EA$ we obtain $\\frac{KB}{KC} = \\frac{AB}{AC}$. Let $D$ be the intersection point of these angle bisectors with $BC$, points $F$ and $M$ are the midpoint of arc $BC$ in the two circles. Therefore $K$, $D$ and $F$ are collinear and $A$, $D$ and $M$ are also collinear. Now, consider the power of $D$ in both circles\n$$\n\\begin{array}{l}\nBD \\cdot DC = AD \\cdot DM \\\\\nBD \\cdot DC = FD \\cdot DK\n\\end{array} \\implies AD \\cdot DM = FD \\cdot DK,\n$$\nHence $AFMK$ is cyclic. ■", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32706, "subject": "Mathematics (Multi-modal)", "question": "In triangle $ABC$ let $I_a$ be the $A$-excenter. Let $\\omega$ be an arbitrary circle that passes through $A$ and $I_a$ and intersects the extensions of sides $AB$ and $AC$ (extended from $B$ and $C$) at $X$ and $Y$, respectively. Let $S$ and $T$ be points on segments $I_aB$ and $I_aC$, respectively, such that $\\widehat{AXI_a} = \\widehat{BTI_a}$ and $\\widehat{AYI_a} = \\widehat{CSI_a}$. Suppose that lines $BT$ and $CS$ intersect at $K$, and lines $KI_a$ and $TS$ intersect at $Z$. Prove that $X, Y, Z$ are collinear.", "options": [], "answer": "Detailed solution", "solution": "Clearly, $M$ is a point on $BC$, since $I_a B$ is angle bisector of both angles $\\overline{XBM}$ and $\\overline{XBC}$. Note that\n$$\n\\overline{I_a MC} = 180^\\circ - \\overline{I_a MB} = 180^\\circ - \\overline{I_a XA} = \\overline{CYI_a}.\n$$\nAnd since $\\overline{I_a CM} = \\overline{I_a CY}$, we get $CYI_a \\equiv CMI_a$. Therefore $M$ is also the reflection of $Y$ over $I_a C$. For quadrilateral $KSI_a T$ we have\n$$\n\\overline{KSI_a} + \\overline{KTI_a} = \\overline{AYI_a} + \\overline{AXI_a} = 180^\\circ.\n$$\nTherefore, $KSI_a T$ is cyclic. Now since $\\overline{BMI_a} = \\overline{BXI_a} = \\overline{BTI_a}$, we get $\\overline{BMTI_a}$ and similarly, $\\overline{CMSI_a}$ are cyclic. This means $M$ is the Miquel point of the complete quadrilateral $KSI_a T$.\n\n![](attached_image_1.png)\n\nLet $\\omega_1$ and $\\omega_2$ be the circumcircles of triangles $CSI_a$ and $BTI_a$, respectively. The point $M$ has the same Simson line with respect to each of these two triangles, and since $X$ and $Y$ are the reflections of $M$ in $I_aB$ and $I_aC$, respectively, line $XY$ is homothetic with the Simson line of $M$, with center $M$ and radius 2. So the problem is to prove that the Simson line of $M$ with respect to $\\omega_1$ and $\\omega_2$ passes through the midpoint of $MZ$.\n\nIt is well-known that the Simson line of any point $P$ lying on the circumcircle of some triangle $QRU$, passes through the midpoint of $PH$ where $H$ is the orthocenter of $QRU$. So according to this fact, the Simson line of $M$ passes through the midpoint of $MH_1$ and $MH_2$ where $H_1$ and $H_2$ are orthocenters of triangles $BTI_a$ and $CSI_a$, respectively. Now, it is sufficient to show that $Z$ lies on $H_1H_2$. Consider two circles $\\Gamma$ and $\\Omega$ with diameters $ST$ and $KI_a$, respectively. Let $T'$ be the foot of the perpendicular line from $T$ to $BI_a$. We know that $T' \\in \\Gamma$. Also let $I'_a$ be the foot of the perpendicular line from $I_a$ to $BT$. Similarly $I'_a \\in \\Omega$. Note that $Z$ is a point on the radical axis of $\\Gamma$ and $\\Omega$, and since $I_aI'_a \\cap TT' = H_1$, we get $\\mathcal{P}_{\\Gamma}(H_1) = H_1T \\cdot H_1T' = HI_a \\cdot HI'_a = \\mathcal{P}_{\\Omega}(H_1)$, where $\\mathcal{P}_{\\lambda}(Q)$ is the power of point $Q$ with respect to circle $\\lambda$. Therefore $H_1$ and similarly $H_2$ lie on the radical axis of $\\Gamma$ and $\\Omega$. So the line passing through $Z$, $H_1$ and $H_2$, is the radical axis of $\\Gamma$ and $\\Omega$ and hence the claim of the problem. ■", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32707, "subject": "Mathematics (Multi-modal)", "question": "Let $p^m$ be a power of a prime number. Find the lowest value of $d$ such that there exists a monic polynomial $Q(x)$ of degree $d$ with integer coefficients such that for any positive integer $n$, $p^m$ divides $Q(n)$.", "options": [], "answer": "the smallest integer d such that p^m divides d!", "solution": "We prove the problem using the following lemma, that is actually a more general form of the problem.\n\n**Lemma.** Let $l$ be a fixed non-zero integer and $P(x) = a_nx^n + \\cdots + a_0$ be a polynomial with integer coefficients such that for all integers $k$, $P(k)$ is divisible by $l$. Then we have $l \\mid a_n \\cdot n!$.\n\n*Proof.* We use induction on $n$. For $n=0$ the claim of the lemma is obvious. Now we assume that the claim is true for $n$.\nLet $P(x) = a_{n+1}x^{n+1} + \\cdots + a_0$ be a polynomial of degree $n+1$ such that for all integers $k$, $l \\mid P(k)$. We define two polynomials $R(x)$ and $S(x)$ as\n$$\nP(x+1) - P(x) = R(x) = (n+1)a_{n+1}x^n + S(x),\n$$\nthen $R$ is a polynomial of degree $n$ and $S$ has a degree less than $n$. Now according to the lemma for $n$, since $l \\mid R(x)$ we obtain\n$$\nl \\mid ((n+1)a_{n+1}) \\cdot n! = a_{n+1}(n+1)!,\n$$\nso the lemma is proved.\n\nNow applying the Lemma for $l = p^m$ and $Q(x) = x^d + \\cdots$ from the problem, we get $p^m \\mid d!$. Let $s$ be the smallest integer such that $p^m \\mid s!$, we obtained $d \\ge s$. Now consider the following polynomial\n$$\nQ(x) = (x-s)(x-(s-1))\\cdots(x-1).\n$$\nFor any integer $n$, the number $t = Q(n)$ is a multiple of $s$ consecutive integers and it is well-known that for such $t$, $s! \\mid t$. Thus we have\n$$\np^m \\mid s! \\mid Q(n).\n$$\nTherefore the answer of the problem is the smallest number $d$ such that $p^m \\mid d!$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32708, "subject": "Mathematics (Multi-modal)", "question": "An arbitrary point $P$ lies on side $BC$ of triangle $ABC$. Angle bisectors of $\\widehat{APB}$ and $\\widehat{APC}$ intersect the external angle bisector of $\\widehat{A}$ at $X$ and $Y$, respectively. Circumcircle of triangle $PXY$ meets $BC$ for the second time at $Q$. Prove that $\\widehat{BAP} = \\widehat{CAQ}$.", "options": [], "answer": "Detailed solution", "solution": "Let $Q'$ be a point on side $BC$ such that $\\overline{BAP} = \\overline{CAQ'} = \\alpha$.\n\n![](attached_image_1.png)\n\nNote that $X, Y$ also lie on the exterior angle bisector of $\\overline{PAQ'}$, that's because\n$$\n\\overline{PAX} = \\overline{Q'AY} = \\left(90^\\circ - \\frac{\\hat{A}}{2}\\right) + \\alpha .\n$$\nAlso $PX, PY$ are exterior and interior angle bisector of vertex $P$ in triangle $APQ'$. Therefore $X$ is the $Q'$-excenter, and $Y$ is the $P$-excenter of this triangle. So we get\n$$\n\\overline{XPY} = \\overline{XQ'}\\overline{Y} = 90^\\circ \\implies XPQ'Y \\text{ is cyclic.}\n$$\nSince the intersection of $C_{\\overline{XPQ}}$ with $BC$ (other than $P$), is a unique point, we get $Q = Q'$. Therefore $\\overline{BAP} = \\overline{CAQ'} = \\overline{CAQ}$ ■", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32709, "subject": "Mathematics (Multi-modal)", "question": "a) A number $m$ is called **mirror-symmetry** if it is possible to divide the reverse decimal expansion of $m$ into some blocks such that the multiply of these blocks is equal to $m$. For instance, numbers $6$, $543$ and $21$ are such blocks for number $123456$, if the multiply of these $3$ numbers was equal to $123456$, we would call it a **mirror-symmetry** number. Find all **mirror-symmetry** numbers with decimal digits of $\\{1, 2, 3\\}$.\n\nb) A number $m$ is called **good** if it is possible to divide $m$ itself into some blocks with multiply of $m/7$. Prove that there are infinitely many **good** numbers.", "options": [], "answer": "a) Exactly the palindromic numbers whose digits are from the set {1, 2, 3}. b) Infinitely many exist; for example, every number of the form 315 times a power of ten is good.", "solution": "a) For any number $A$, let $\\overleftarrow{A}$ be the reverse decimal expansion of $A$. Assume that $A = \\overline{A_nA_{n-1}\\cdots A_1}$ is a **mirror-symmetry** number with $m$ digits, all from $\\{1, 2, 3\\}$, and $A_n, A_{n-1}, \\dots, A_1$ are blocks of $A$ with number of digits $m_n, \\dots, m_1$ such that\n$$\nA = \\overleftarrow{A_n} \\times \\overleftarrow{A_{n-1}} \\times \\dots \\times \\overleftarrow{A_1}.\n$$\nNote that for all $1 \\le i \\le n$, we have\n$$\n\\overleftarrow{A}_i \\le \\underbrace{333\\cdots33}_{m_i} = \\frac{10^{m_i} - 1}{3}.\n$$\nOn the other hand,\n$$\nA \\ge \\underbrace{111\\cdots11}_{m} = \\frac{10^m - 1}{9}.\n$$\nTherefore we obtain\n$$\n\\frac{10^m - 1}{9} \\le \\frac{10^{m_n} - 1}{3} \\times \\dots \\times \\frac{10^{m_1} - 1}{3}.\n$$\nIf $n \\ge 2$ we have\n$$\n\\begin{aligned}\n3^{n-2}(10^m - 1) &\\le (10^{m_n} - 1)(10^{m_{n-1}} - 1)\\cdots(10^{m_1} - 1) \\\\\n&< 10^{m_n} \\times 10^{m_{n-1}} \\times \\cdots \\times 10^{m_2} \\times (10^{m_1} - 1) \\\\\n&< 10^{m_n+m_{n-1}+\\cdots+m_1} - 1 = 10^m - 1.\n\\end{aligned}\n$$\nWhich is impossible. Therefore $n=1$. So the only possible case is when $A = \\overleftarrow{A}$, that means $A$ is a **Palindromic number** (a number that remains the same when its digits are reversed). Clearly, all Palindromic numbers with digits of $\\{1, 2, 3\\}$ satisfy the conditions.\n\nb) This part is a test of effort! Note that if we could find a **good** number $m = \\overline{A_1A_2\\cdots A_n}$ where $A_i$'s are blocks of $m$ such that\n$$\n\\frac{m}{7} = A_1 \\times \\cdots \\times A_n,\n$$\nthen $10m$ is also a **good** number because\n$$\n\\frac{10m}{7} = A_1 \\times \\cdots \\times \\overline{A_n 0}.\n$$\nTherefore $m, 10m, 100m, \\dots$ are all **good** numbers. So indeed, we just need to find a single **good** number. Now if we start to check the multiplies of $7$ one by one, we shall finally reach $7 \\times 45 = 315$ that for which\n$$\n\\frac{315}{7} = 3 \\times 15.\n$$\nTherefore by putting $m = 315$, we can find infinitely many **good** numbers, $\\{315, 3150, 31500, \\dots\\}$.\n\n■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32710, "subject": "Mathematics (Multi-modal)", "question": "In triangle $ABC$, arbitrary points $P, Q$ lie on side $BC$ such that $BP = CQ$ and $P$ lies between $B, Q$. The circumcircle of triangle $APQ$ intersects sides $AB$ and $AC$ at $E$ and $F$, respectively. The point $T$ is the intersection point of $EP$ and $FQ$. Two lines passing through the midpoint of $BC$ and parallel to $AB$ and $AC$, intersect $EP$ and $FQ$ at points $X$ and $Y$, respectively. Prove that the circumcircles of triangles $TXY$ and $APQ$ are tangent to each other.", "options": [], "answer": "Detailed solution", "solution": "Let $M$ be the midpoint of $BC$. Since $BP = CQ$, it is clear that $MP = MQ$ and $BQ = CP$. Let $Z$ be the second intersection point of circumcircles of triangles $MPX$ and $MQY$. We claim that the circumcircles of triangles $APQ$ and $XYT$ are tangent to each other at $Z$.\n\n![](attached_image_1.png)\n\nWe have\n$$\n\\left\\{ \\begin{array}{l} \\widehat{PZQ} = \\widehat{PZM} + \\widehat{QZM}, \\\\ C_{\\triangle MQY} : \\widehat{QZM} = \\widehat{MYQ} = \\widehat{QFC}, \\\\ C_{\\triangle APQ} : \\widehat{QFC} = \\widehat{APQ}, \\\\ C_{\\triangle MPX} : \\widehat{PZM} = \\widehat{MXP} = \\widehat{PEB}, \\\\ C_{\\triangle APQ} : \\widehat{PEB} = \\widehat{AQP}, \\end{array} \\right.\n$$\n\nAnd so $\\widehat{PZQ} = \\widehat{APQ} + \\widehat{AQP} = 180^\\circ - \\widehat{PAQ}$. Which means $Z$ lies on the circumcircle of triangle $APQ$. Also\n$$\n\\begin{cases} C_{\\triangle MQY} : \\widehat{MZY} = 180^\\circ - \\widehat{MQT}, \\\\ C_{\\triangle MPX} : \\widehat{MZX} = 180^\\circ - \\widehat{MPT}. \\end{cases}\n$$\nThese imply\n$$\n\\widehat{XYZ} = 360^\\circ - (\\widehat{MZY} + \\widehat{MZX}) = \\widehat{MQT} + \\widehat{MPT} = 180^\\circ - \\widehat{PTQ}.\n$$\nWhich means $Z$ also lies on the circumcircle of triangle $XYZ$. We use a lemma to prove the problem.\n\n**Lemma.** Given two circles $\\Omega$ and $\\Gamma$ with a common point $X$ and a line intersecting $\\Omega$ at $Y$ and $P$, and intersecting $\\Gamma$ at $Q$ and $Z$ ($P$ and $Q$ lie between $Y$ and $Z$). In this case, these circles are tangent to each other at $X$ if\n$$\n\\widehat{PXQ} = \\widehat{XYZ} + \\widehat{XZY}.\n$$\n![](attached_image_2.png)\n\n*Proof.* Let $l$ be the tangent line to $\\Omega$ through $X$, therefore $\\widehat{PXl} = \\widehat{XYP}$ (with a fixed direction on $l$, and angles are considered with respect to this direction). $l$ is also tangent to $\\Gamma$, if and only if $\\widehat{XZQ} = \\widehat{QXl}$. But $\\widehat{PXl} = \\widehat{PXQ} - \\widehat{QXl}$. Therefore\n$$\n\\widehat{XZQ} = \\widehat{PXQ} - \\widehat{XYZ} = \\widehat{PXQ} - \\widehat{PXl} = \\widehat{QXl}.\n$$\n\nNow back to the problem, according to the lemma (for two circles $C_{\\triangle MQY}$, $C_{\\triangle APQ}$), it suffices to show that\n$$\n\\widehat{QZY} = \\widehat{ZFT} + \\widehat{ZTF}.\n$$\nWe have\n$$\n\\left\\{ \\begin{array}{l} \\widehat{QZY} = \\widehat{QMY} = \\hat{C}, \\\\ C_{\\triangle TXY} : \\widehat{ZTF} = \\widehat{ZXY}, \\\\ C_{\\triangle APQ} : \\widehat{TFZ} = \\widehat{QPZ}, \\\\ C_{\\triangle MPX} : \\widehat{QPZ} = \\widehat{MXZ}. \\end{array} \\right.\n$$\nNote that $\\widehat{XMY} = \\hat{A}$ and the problem is equivalent to prove that\n$$\n\\begin{align*} \\widehat{C} &= \\widehat{MXZ} + \\widehat{ZXY} = \\widehat{MXY} &\\iff MXY &\\sim \\widehat{ACB}, \\\\ & &\\iff \\frac{MY}{MX} &= \\frac{AB}{AC}. \\end{align*}\n$$\nWe also have:\n$$\n\\left. \\begin{array}{l} MY \\parallel AC \\implies \\frac{MY}{FC} = \\frac{MQ}{QC} \\\\ MX \\parallel AB \\implies \\frac{MX}{EB} = \\frac{MP}{PB} \\\\ MP = MQ, \\quad BP = CQ \\end{array} \\right\\} \\implies \\frac{MY}{MX} = \\frac{FC}{EB}.\n$$\nSo the problem is equivalent to show that $\\frac{FC}{EB} = \\frac{AB}{AC}$, or equivalently $FC \\cdot AC = EB \\cdot AB$. In order to prove this, we have\n$$\nCF \\cdot CA = \\mathcal{P}_{C_{\\triangle APQ}}(C) = CQ \\cdot CP = BP \\cdot BQ = \\mathcal{P}_{C_{\\triangle APQ}}(B) = BE \\cdot BA,\n$$\n(Where $\\mathcal{P}_\\lambda(S)$ is the power of point $S$ with respect to circle $\\lambda$.) Hence the claim. ■", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32711, "subject": "Mathematics (Multi-modal)", "question": "Quadrilateral $ABCD$ and point $T$ in its interior is given such that $AC$ is the angle bisector of $\\widehat{BCD}$ and\n$$\n\\widehat{ABC} - \\widehat{ATD} = \\widehat{DAC}, \\quad \\widehat{ADC} - \\widehat{ATB} = \\widehat{BAC}.\n$$\nProve that $\\widehat{BAT} = \\widehat{DAC}$.", "options": [], "answer": "Detailed solution", "solution": "Vertex $A$ lies on the angle bisector of $\\widehat{C}$ and has equal distances to the lines $CB$ and $CD$. So there exists a circle with center $A$ that is tangent to $CB$ and $CD$.\nLet $S$ be the intersection of second tangent lines through points $B$ and $D$ to this circle.\n![](attached_image_1.png)\n$$\n\\begin{aligned}\n\\widehat{BSD} &= \\widehat{BCD} + \\widehat{CBS} + \\widehat{CDS} = 2\\alpha + 180^{\\circ} - 2\\beta + 180^{\\circ} - 2\\theta \\\\\n&= 2(180^{\\circ} + \\alpha - \\beta - \\theta),\n\\end{aligned}\n$$\n$$\n\\Rightarrow \\widehat{BSA} = \\widehat{DSA} = 180^{\\circ} + \\alpha - \\beta - \\theta,\n$$\n$$\n\\Rightarrow \\left\\{ \\begin{array}{l} \\widehat{ABC} - \\widehat{ASD} = (180^{\\circ} - \\beta) - (180^{\\circ} + \\alpha - \\beta - \\theta) = \\theta - \\alpha = \\widehat{DAC}, \\\\ \\widehat{ADC} - \\widehat{ASB} = (180^{\\circ} - \\beta) - (180^{\\circ} + \\alpha - \\beta - \\theta) = \\beta - \\alpha = \\widehat{BAC}, \\end{array} \\right.\n$$\n$$\n\\implies \\left\\{ \\begin{array}{l} \\widehat{ASD} = \\widehat{ATD}, \\\\ \\widehat{ASB} = \\widehat{ATB}. \\end{array} \\right. \\qquad (1)\n$$\nNote that\n$$\n\\widehat{BAS} = 180^{\\circ} - \\widehat{ABS} - \\widehat{ASB} = 180^{\\circ} - \\beta - (180^{\\circ} + \\alpha - \\beta - \\theta) = \\theta - \\alpha = \\widehat{DAC}.\n$$\nSo it suffices to show that $S = T$. If $S$ and $T$ are not coincident, then using (1), quadrilaterals $ABST$ and $ADST$ are cyclic, therefore $BADS$ is also cyclic and\n$$\n\\begin{align*} \\beta + \\theta = 180^{\\circ} \\implies \\widehat{BSA} &= \\widehat{DSA} = 180^{\\circ} + \\alpha - \\beta - \\theta = \\alpha, \\\\\n\\implies \\widehat{BSD} &= \\widehat{BSA} + \\widehat{DSA} = 2\\alpha, \\\\\n\\implies \\widehat{BTD} &= \\widehat{BSD} = 2\\alpha = \\widehat{BCD}. \\end{align*}\n$$\nBut according to the statement of the problem, $T$ lies in the interior of $ABCD$ and $\\widehat{BTD} > \\widehat{BCD}$. Therefore $S$ and $T$ are coincident on each other, hence the claim of the problem. ■\n![](attached_image_2.png)\n$$\n\\begin{align*} \\widehat{BCA} = \\widehat{DCA} \\implies \\widehat{ABC} + \\widehat{BAC} &= \\widehat{ADC} + \\widehat{DAC}, \\\\\n\\implies \\widehat{ABC} - \\widehat{DAC} &= \\widehat{ADC} - \\widehat{BAC}, \\\\\n\\implies \\widehat{ATD} = \\widehat{ATB} = \\alpha. \\end{align*}\n$$\nPoint $P$ lies on diagonal $AC$ such that $\\widehat{PBC} = \\widehat{DAC}$, so we have\n$$\n\\begin{gather*} \\widehat{ABP} = \\widehat{ABC} - \\widehat{PBC} = \\widehat{ABC} - \\widehat{DAC} = \\alpha, \\\\\n\\triangle BPC \\sim ADC \\implies \\frac{BC}{AC} = \\frac{PC}{DC}. \\end{gather*}\n$$\nHence,\n$$\n\\left.\n\\begin{array}{l}\n\\widehat{BCA} = \\widehat{DCA} \\\\\n\\frac{BC}{PC} = \\frac{AD}{DC}\n\\end{array}\n\\right\\} \\implies DPC \\sim \\widehat{\\Delta} \\sim \\widehat{\\Delta} ABC,\n\\\\[2ex]\n\\implies \\widehat{PDC} = \\widehat{BAC},\n\\\\[2ex]\n\\implies \\widehat{ADP} = \\widehat{ADC} - \\widehat{PDC} = \\widehat{ADC} - \\widehat{BAC} = \\alpha.\n$$\nLet $X$ be the intersection point of $DP$ and $BT$, we have\n$$\n\\begin{align*}\n\\widehat{ADX} &= \\widehat{ATX} = \\alpha \\implies ADTX \\text{ is cyclic.} \\\\\n\\widehat{AXD} &= \\widehat{ATD} = \\widehat{ABP} = \\alpha \\implies ABPX \\text{ is cyclic.}\n\\end{align*}\n$$\nTherefore,\n$$\n\\widehat{BAP} = \\widehat{BXP} = \\widehat{DXT} = \\widehat{DAT} \\implies \\widehat{BAT} = \\widehat{DAC}.\n$$\n■", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32712, "subject": "Mathematics (Multi-modal)", "question": "Find all functions $f: \\mathbb{Z}^+ \\rightarrow \\mathbb{Z}^+$ satisfying the following conditions:\n* For all $x, y \\in \\mathbb{Z}^+$, $f(x) + f(y)$ is divisible by $x + y$.\n* For any integer $x \\ge 1395$, the inequality $2f(x) \\le x^3$ holds.", "options": [], "answer": "All functions are f(x) = a x for all positive integers x, where a is a positive integer satisfying a ≤ 1395^2 / 2.", "solution": "First note that setting $x = y$ in the first assumption implies $f(x)$ is divisible by $x$ and therefore we can write $f(x) = xg(x)$ where $g(x)$ is always an integer. Now set $g(1) = a$ and $g(2) = b$. We are going to show that for an odd and sufficiently large number $x$, $g(x)$ is equal to $a$. To prove this, we use the first assumption twice, for $y = 1$ and $y = 2$, and an odd number $x$\n$$\n\\left.\n\\begin{array}{l}\nx + 1 \\mid xg(x) + a \\\\\nx + 1 \\mid (x + 1)g(x)\n\\end{array}\n\\right\\} \\implies x + 1 \\mid g(x) - a,\n\\\\[2ex]\n\\left.\n\\begin{array}{l}\nx + 2 \\mid xg(x) + 2b \\\\\nx + 2 \\mid (x + 2)g(x)\n\\end{array}\n\\right\\} \\implies x + 2 \\mid 2(g(x) - b) \\implies x + 2 \\mid g(x) - b.\n$$\n(The last result is true because $x+2$ is odd.) Therefore, according to the fact that $x+1$ and $x+2$ are relatively prime, the remainder of $g(x)$ when divided by $(x+1)(x+2)$ is uniquely found knowing the remainder when divided by $x+1$ and $x+2$. The number $a(x+2) - b(x+1)$ as $g(x)$ satisfies both the above relations. So we have\n$$\ng(x) = a(x+2) - b(x+1) + c(x+1)(x+2) = cx^2 + (3c+a-b)x + (2c+2a-b).\n$$\nWhere $c$ is an integer. According to the statement of the problem, for sufficiently large $x$ we have $0 < g(x) \\le \\frac{x^2}{2}$, therefore $c$ is a non-negative number and is at most $\\frac{1}{2}$, since it is an integer, $c = 0$ and we have\n$$\ng(x) = (a - b)x + (2a - b).\n$$\n(For sufficiently large odd values of $x$.)\n\n**Lemma.** If $X, Y$ are relatively prime, then $X + Y \\mid g(X) - g(Y)$.\n*Proof.* By the statement of the problem, $Xg(X) + Yg(Y)$ is divisible by $X+Y$. Adding $-(X+Y)g(Y)$ to that number, implies $X(g(X) - g(Y))$ is divisible by $X+Y$. But $X$ and $X+Y$ are relatively prime, therefore $X+Y \\mid g(X) - g(Y)$.\n\nNow assume that $x'$ is an odd and sufficiently large number that is relatively prime to $x$, in this case according to the lemma\n$$\nx + x' \\mid (a - b)(x - x'),\n$$\nbut since $\\gcd(x+x', x-x') = 2$ we obtain that $\\frac{x+x'}{2} \\mid (a-b)$. Now choose $x'$ such that it is greater than $2|a-b|$, it implies $a-b=0$ and therefore for large odd numbers $x$ we have $g(x) = 2a-b=a$ and the claim is proved.\n\nNow let $y$ be an arbitrary positive integer, if $x$ is a sufficiently large number, relatively prime with $2y$, according to the lemma\n$$\nx + y \\mid g(x) - g(y) = a - g(y).\n$$\nSetting $x$ such that it is greater than $|a-g(y)|$, implies $g(y) = a$ and hence $f(y) = ay$.\n\nFinally, using the second assumption we get that the only solutions are $f(x) = ax$ where $a$ is a positive integer not exceeding $\\frac{1395^2}{2}$. $\\blacksquare$", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32713, "subject": "Mathematics (Multi-modal)", "question": "$ABCD$ is a trapezoid with $AB \\parallel CD$. Suppose that the diagonals intersect at $P$. Let $\\omega_1$ be a circle passing through $B$ and tangent to $AC$ at $A$. Let $\\omega_2$ be a circle passing through $C$ and tangent to $BD$ at $D$. $\\omega_3$ is the circumcircle of triangle $BPC$. Prove that the common chord of circles $\\omega_1, \\omega_3$ and the common chord of circles $\\omega_2, \\omega_3$ intersect each other on $AD$.", "options": [], "answer": "Detailed solution", "solution": "Let $Q$ be the second intersection point of $AD$ with $\\omega_1$, and let $R$ be the second intersection point of $\\omega_2$ and $\\omega_3$.\n![](attached_image_1.png)\n\n$$\n\\left. \\begin{array}{l} \\widehat{DRB} = 180^\\circ - (\\widehat{BR} + \\widehat{DBR}) \\\\ \\omega_2 : \\quad \\widehat{BR} = \\widehat{RCD} = \\theta \\\\ \\omega_3 : \\quad \\widehat{DBR} = \\widehat{PCR} = \\beta \\end{array} \\right\\} \\implies \\widehat{DRB} = 180^\\circ - \\widehat{ACD}. (\\star)\n$$\n$$\nAB \\parallel CD \\implies \\left. \\begin{array}{l} \\widehat{ACD} = \\widehat{BAC} = \\alpha \\\\ \\widehat{BAC} = \\widehat{BQD} = \\alpha \\end{array} \\right\\} \\underset{\\omega_1 :}{\\stackrel{\\star}{\\implies}} \\widehat{DRB} = 180^\\circ - \\widehat{DQB}.\n$$\nThis implies that the quadrilateral $DQBR$ is cyclic.\nSo $\\widehat{DQR} = \\widehat{DBR} = \\beta = \\widehat{ACR}$, which means $AQCR$ is also cyclic. Let $CR$ meet $AD$ at $S$. We have\n$$\n\\mathcal{P}_{\\omega_3}(S) = SR \\cdot SC = SA \\cdot SQ = \\mathcal{P}_{\\omega_1}(S).\n$$\n(Where $\\mathcal{P}_{\\lambda}(U)$ is the power of point $U$ with respect to circle $\\lambda$.) That implies $S$ lies on the common chord of $\\omega_1, \\omega_3$.\nTherefore the common chord of $\\omega_1$ and $\\omega_3$, common chord of $\\omega_2$ and $\\omega_3$, and the line $AD$ are concurrent at $S$. ■", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32714, "subject": "Mathematics (Multi-modal)", "question": "Find the largest natural number $n$ for which there exist $n$ positive integers such that none of them divides another one, but in any triplet of these numbers, one divides the sum of the other two.", "options": [], "answer": "6", "solution": "In our example, four numbers are $2$, $3$, $7$, $17$ and the fifth number $x$ is a number satisfying the following relations. Such $x$ exists due to the **Chinese Remainder Theorem**.\n$$\n3 \\mid 7 + x, \\quad 7 \\mid 17 + x, \\quad 17 \\mid 3 + x, \\quad 2 \\nmid x.\n$$\n(For instance, $x = 473$.) Note that $x$ is relatively prime with each of the previous four numbers. Now consider a number $y$ satisfying the following relations. Again, such $y$ exists due to the **Chinese Remainder Theorem**.\n$$\n\\left\\{ \\begin{array}{l} 3 \\mid 17 + y \\implies 3 \\mid x + y, \\text{ (since } 3 \\mid 7 + x.) \\\\ 7 \\mid 3 + y \\implies 7 \\mid 17 + y, \\\\ 17 \\mid x + y, \\quad x \\mid 7 + y, \\quad 2 \\nmid y. \\end{array} \\right.\n$$\nIn this case $y$ is also relatively prime with other numbers. So these 6 numbers satisfy the conditions.\n\nNow assume that there is a set with (at least) 7 numbers satisfying the condition, we can divide them to their greatest common divisor, thus we can assume that at least one of the numbers is odd. Three following claims prove the problem:\n\n* There are at most two even numbers in the set.\nAssume that $a, b, c$ are three even numbers in the set. Consider an odd number $k$ in the set, between $k, a, b$ only $k$ can divide the sum of the other two. Therefore $k \\mid a+b$ and similarly $k \\mid b+c$, $k \\mid c+a$. Since $k$ is odd, we obtain $k \\mid a, k \\mid b$ and $k \\mid c$ which is impossible. So there are at most two even numbers in the set.\n\n* There is at most five odd numbers in the set.\nAssume that there exists six odd numbers $a < b < c < d < e < f$. There are a total of 20 dividing relations between these numbers. On the other hand, it is easy to see that the largest number, $f$, cannot divide the sum of any two odd numbers smaller than itself, $e$ can divide at most one sum and $d$ can divide at most three sums. Therefore, at least 16 of the dividings were made by $a, b, c$. So one of them divides at least 6 sums. We denote this number by $x$. Consider a graph with vertices of the other five odd numbers, two vertices are connected if $x$ divides the sum of these two numbers. So this graph has five vertices and at least six edges. It is easy to see that such graph has a vertex with degree of at least 3. Therefore there exists odd numbers $y, u, v$ and $w$, different from $x$, such that\n$$\nx \\mid y+w, \\quad x \\mid y+u, \\quad x \\mid y+v.\n$$\nWithout loss of generality, assume that $w < v < u$. So we have\n$$\nx \\mid v-w, \\quad x \\mid u-v, \\quad x \\mid u-w.\n$$\nSince $x$ is odd and it must not divide any of the other numbers, so $x$ cannot divide the sum of any pair among $\\{u, v, w\\}$. On the other hand, $x$ is not the largest number in any triplet, and the largest odd number cannot divide the sum of the other two, therefore\n$$\nw \\mid x+v, \\quad w \\mid x+u, \\quad v \\mid x+u.\n$$\nSo $w \\mid u-v$ that implies $w \\nmid u+v$, therefore $v \\mid w+u$. This implies that $v \\mid w-x$. But because $w$ and $x$ are both less than $u$, this result is impossible.\n\n* Two even numbers and five odd numbers do not satisfy the conditions.\nAssume that two even numbers are $a < b$ and five odd numbers are $c < d < e < f < g$. Similar to the previous arguments we conclude that all of these odd numbers must divide $a+b$ and since they are odd numbers, they must divide $\\frac{a+b}{2}$. Which implies $b$ is the largest number of all.\n\nNow assume that $b$ divides the sum of two of the odd numbers, hence $b$ must be equal to the sum of those two numbers. But in this case, the larger number of two (and thus $g$ itself) must be greater than or equal to $\\frac{b}{2}$. So $2g \\ge b > \\frac{a+b}{2}$. But $g$ was a divisor of $\\frac{a+b}{2}$, and so we must have $g = \\frac{a+b}{2}$ which means all other odd numbers are divisors of $g$, which is impossible.\nSo $b$ cannot divide the sum of any two of the odd numbers. Now consider all pairs of odd numbers along with $b$. We obtain 10 dividing relations and the divisor is one of the 5 odd numbers, in other hand, $g$ can only divide a single sum. So there is a number that divides at least 3 sums, which similar to the previous cases, leads that this number also divides the difference of any pair chosen of 3 odd numbers, and the same contradiction is made.\n\nSo indeed, there is no set with at least 7 elements, hence the answer of the problem is $n = 6$. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32715, "subject": "Mathematics (Multi-modal)", "question": "There are 27 cards, each has some amount of (1 or 2 or 3) shapes (a circle, a square or a triangle) with some color (white, grey or black) on them. We call a triple of cards a **match** such that all of them have the same amount of shapes or mutually distinct amount of shapes, have the same shape or mutually distinct shapes and have the same color or mutually distinct colors. For instance, three cards shown in the figure are a **match** because they have distinct amount of shapes, distinct shapes but the same color of shapes.\n\nWhat is the maximum number of cards that we can choose such that\nnone of the triples make a **match**?\n![](attached_image_1.png)", "options": [], "answer": "9", "solution": "We will prove that the answer of the problem is $9$.\n\nEach card can be corresponded with a point in $\\mathbb{Z}_3^3$. A line in $\\mathbb{Z}_3^3$ is defined to be a subset of the form $\\{P, P+V, P+2V\\}$ where $P$ and $V$ are two elements in $\\mathbb{Z}_3^3$, such that $V \\neq 0$ (in $\\mathbb{Z}_3^3$). It is easy to see that three elements of $\\mathbb{Z}_3^3$ form a line, if and only if their sum (in $\\mathbb{Z}_3^3$) is equal to $0$. For instance, in the following figure we can see three different lines. In this new language, the problem is to find the maximum number of points in $\\mathbb{Z}_3^3$ such that no three of them are collinear.\n![](attached_image_2.png)\n\nThe following lemma is the statement of the problem in $\\mathbb{Z}_3^2$, and proof that the answer is not greater than $4$.\n\n**Lemma.** There are no $5$ points in $\\mathbb{Z}_3^2$ such that no three of them are collinear (definition of line in $\\mathbb{Z}_3^2$ is similar).\n\n*Proof.* Assume to the contrary that $S$ is a set in $\\mathbb{Z}_3^2$ with more than $4$ elements such that no three points of $S$ are collinear. Let $P$ be one point in $\\mathbb{Z}_3^2$. There are exactly $4$ lines (in $\\mathbb{Z}_3^2$) passing through $P$. For example, if $P$ is a point in the corner, these are the lines containing $P$.\n![](attached_image_3.png)\nSince no three points of $S$ are collinear, each line passing through $P \\in S$ contains at most one other point in this set. So there are at most five points in $S$ (Note that for any point in $\\mathbb{Z}_3^2$ like $Q \\neq P$, there is a unique line containing both $P$ and $Q$).\nNow assume that $S$ has exactly $5$ elements. Consider $P \\in S$. Again, since there are only four lines passing through $P$, and there are exactly four other points in $S$, every line passing through $P$ will contain another point of $S$.\nIt means that every line in $\\mathbb{Z}_3^2$, intersects $S$ in exactly zero or two points. So there are $\\binom{5}{2} = 10$ lines in $\\mathbb{Z}_3^2$ containing two points of $S$. On the other hand, the total number of lines in $\\mathbb{Z}_3^2$ is $12$ (for each of $9$ points in $\\mathbb{Z}_3^2$, there are $4$ lines containing that point, and every line consists of $3$ different points). Therefore there are two lines $l_1$ and $l_2$ in $\\mathbb{Z}_3^2$ having empty intersection with $S$. But the union of $l_1$ and $l_2$ contains at least $5$ points. This contradicts $|S| = 5$.\n\nWe call a subset $\\mathcal{P}$ of $\\mathbb{Z}_3^3$ a plane, if there exist $a, b, c, d \\in \\mathbb{Z}_3$ with at least one of $a, b$ and $c$ is non-zero (in $\\mathbb{Z}_3$) and such that\n$$\n\\mathcal{P} = \\mathcal{P}_d(a, b, c) = \\{ (x, y, z) : ax + by + cz = d \\pmod{3} \\}.\n$$\nIt is easy to see that every plane consists of exactly $9$ points and for every three points $A, B$ and $C$ in $\\mathbb{Z}_3^3$, either there exists a unique plane passing through them, or they are collinear. In the latter case there are exactly four different planes containing them.\nWe call two planes parallel, if they have no common points. Again, it is easy to check that if two planes $\\mathcal{P}_1$ and $\\mathcal{P}_2$ are parallel, there exist two different numbers $i, j \\in \\mathbb{Z}_3$ and $(a, b, c) \\neq \\vec{0}$ in $\\mathbb{Z}_3^3$ such that\n$$\n\\mathcal{P}_1 = \\mathcal{P}_i(a, b, c), \\quad \\mathcal{P}_2 = \\mathcal{P}_j(a, b, c).\n$$\nFor any $(a, b, c) \\neq \\vec{0}$ (in $\\mathbb{Z}_3^3$), all $27$ points in $\\mathbb{Z}_3^3$ can be partitioned into three parallel planes $\\mathcal{P}_0(a, b, c)$, $\\mathcal{P}_1(a, b, c)$ and $\\mathcal{P}_2(a, b, c)$. But since $\\mathcal{P}_i(a, b, c) = \\mathcal{P}_{-i}(-a, -b, -c)$, two points $(a, b, c)$ and $(-a, -b, -c)$ give the same partition. Therefore, there are exactly $\\frac{26}{2} = 13$ ways to partition $\\mathbb{Z}_3^3$ into three parallel planes. Note that if we consider all these $13$ partitions, every plane in $\\mathbb{Z}_3^3$ will appear exactly in one of the partitions.\nNow assume that there exist a set $S$ with $10$ elements satisfying the desired properties. Consider one of above partitions. According to the lemma, each plane in this partition contains at most $4$ points of $S$. Since there are $10$ points in total, there are two different type of partitions.\n(1) Partitions such that two planes contain $4$ points of $S$, and the third one contains $2$.\n(2) Partitions such that two planes contain $3$ points of $S$, and the third one contains $4$.\nLet $m$ and $n$ be the total number of partitions of types (1) and (2), respectively. There are totally $13$ ways to partition the points. So we obtain the following equation.\n$$\nm + n = 13.\n$$\nWe are going to find another equation for $m, n$.\nFor this reason, we count the number of elements of the following set in two different ways.\n$$\nW = \\{ (\\{A, B\\}, \\mathcal{P}) : \\mathcal{P} \\text{ is a plane, } A, B \\in \\mathcal{P} \\cap S \\}\n$$\nOn one hand, if we count the number of pairs of points of $\\mathcal{S}$ in each plane of partitions of type (1), we get a total of\n$$\n\\binom{4}{2} + \\binom{4}{2} + \\binom{2}{2} = 13\n$$\npairs of points for each partition of this type. And for the type (2), this number is\n$$\n\\binom{4}{2} + \\binom{3}{2} + \\binom{3}{2} = 12.\n$$\nSo the cardinality of $W$ is\n$$\n13m + 12n.\n$$\nOn the other hand, for any two points $A, B \\in \\mathcal{S}$, the total amount of planes containing both $A$ and $B$ is $4$. Since there are totally $\\binom{10}{2} = 45$ pairs, the cardinality of $W$ is $4 \\times 45 = 180$, so we obtain $13m+12n = 180$. But this equation is clearly impossible when $m+n=13$ because\n$$\n169 = 13m + 13n \\geq 13m + 12n = 180,\n$$\nContradiction. So there are at most $9$ points with the desired properties. Also the following set of points is a valid example for $9$ points (look at the figure below).\n![](attached_image_4.png)\nTranslating the solution into the main problem, the total number of cards we can choose is $9$. ■", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32716, "subject": "Mathematics (Multi-modal)", "question": "a.\nProve that there doesn't exist a sequence of positive integers like $a_1, a_2, a_3, \\dots$ such that for all $i, j \\in \\mathbb{Z}^+$ with $i < j$\n$$\n\\text{gcd}(a_i + j, a_j + i) = 1.\n$$\n\nb.\nAssume that $p$ is an odd prime number. Prove that there exists a sequence of positive integers like $a_1, a_2, a_3, \\dots$ such that for all $i, j \\in \\mathbb{Z}^+$ with $i < j$, $\\text{gcd}(a_i + j, a_j + i)$ is divisible by $p$.", "options": [], "answer": "Detailed solution", "solution": "a.\nIf $i, a_i, j$ and $a_j$ are all odd or are all even then $\\text{gcd}(a_i + j, a_j + i)$ will be an even number. So except for at most two values of $i$, the parity of $i, a_i$ is different. So there exists some even numbers $i, j$ such that $a_i, a_j$ are both odd which, again, we conclude that $\\text{gcd}(a_i + j, a_j + i)$ is an even number. Hence, is greater than 1. Thus no such sequence exists. $\\square$\n\nb.\nConsider the following sequence\n$$\na_n = pn - n + 1.\n$$\nIf $p \\mid a_n + m = pn - n + 1 + m$ and $p \\mid a_m + n = pm - m + 1 + n$, for some $m, n \\in \\mathbb{Z}^+$ with subtracting these two relations we obtain\n$$\np \\mid n - m\n$$\nAnd if we add it two the first relation we'll have $p \\mid pn + 1$ which is a contradiction. Therefore the given sequence satisfies the desired conditions. $\\square$", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32717, "subject": "Mathematics (Multi-modal)", "question": "By angle, we mean its vertex together with its two rays. Find the maximum value of $n$ such that we can put $n$ $60^\\circ$ angles on the plane, in a way that each pair of which has 4 intersection points.", "options": [], "answer": "2", "solution": "Assume that two $60^\\circ$ angles with vertices $A$ and $B$ have four intersection points $M$, $N$, $P$ and $Q$ as shown in the figure.\n![](attached_image_1.png)\nWe have\n$$\n\\widehat{AKB} = \\widehat{KAP} + \\widehat{APB} + \\widehat{PBK} = 30^\\circ + \\widehat{APB} + 30^\\circ > 60^\\circ\n$$\nAnd\n$$\n\\widehat{AKB} = 180^\\circ - \\widehat{KAB} - \\widehat{KBA} < 180^\\circ - 30^\\circ - 30^\\circ = 120^\\circ\n$$\n\nSo the value of the angle between two bisectors is between $60^\\circ$ and $120^\\circ$, meaning that the acute angle between two lines is greater than $60^\\circ$. If we have three $60^\\circ$ angles with the above properties, then we should have three lines such that the value of the acute angle between each pair is greater than $60^\\circ$, which is impossible, due to a triangle with three angles greater than $60^\\circ$, or in the case of concurrency six angles greater than $60^\\circ$ on a point. The example for only two $60^\\circ$ angles is shown in the figure! ■", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 32718, "subject": "Mathematics (Multi-modal)", "question": "Let $A_1, A_2, \\ldots, A_k$ be subsets of $\\{1, 2, 3, \\ldots, n\\}$ such that for all $1 \\le i, j \\le k : A_i \\cap A_j \\ne \\emptyset$. Prove that there are $n$ distinct positive integers $x_1, x_2, \\ldots, x_n$ such that for each $1 \\le j \\le k$\n$$\n\\operatorname{lcm}_{i \\in A_j} \\{x_i\\} > \\operatorname{lcm}_{i \\notin A_j} \\{x_i\\}\n$$", "options": [], "answer": "Detailed solution", "solution": "Let $p_1, \\dots, p_k$ be distinct prime numbers and for all $1 \\le i \\le n$ define $x_i$ to be $x_i = \\prod_{j \\in A_j} p_j$. We prove that these $x_i$'s satisfy the problem's conditions.\n\n$$\n1 \\le i, j \\le k \\implies A_i \\cap A_j \\ne \\emptyset \\implies \\exists l : l \\in A_i, l \\in A_j \\implies p_i p_j \\mid x_l \\\\\nl \\in A_i \\implies p_j \\mid x_l \\mid \\operatorname{lcm}_{m \\in A_i}\\{x_m\\}\n$$\nSo for every $1 \\le i, j \\le k$, $p_j \\mid x_l \\mid \\operatorname{lcm}_{m \\in A_i}\\{x_m\\}$, which results in $x_l \\mid \\operatorname{lcm}_{m \\in A_i}\\{x_m\\} = p_1 \\dots p_k$.\n\nOn the other hand,\n$$\np_i \\mid \\operatorname{lcm}_{m \\notin A_i}\\{x_m\\} \\iff \\exists j : p_i \\mid x_j,\\ j \\notin A_i \\iff j \\in A_i,\\ j \\notin A_i\n$$\nwhich clearly is a contradiction, therefore\n$$\n\\operatorname{lcm}_{m \\notin A_i}\\{x_m\\} \\le \\frac{p_1 \\dots p_k}{p_i} < p_1 \\dots p_k = \\operatorname{lcm}_{m \\in A_i}\\{x_m\\}\n$$\nwhich yields our result.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32719, "subject": "Mathematics (Multi-modal)", "question": "Let $\\omega$ be the circumcircle of isosceles triangle $ABC$ where $AB = AC$. Points $P$ and $Q$ lie on $\\omega$ and $BC$ respectively such that $AP = AQ$. Lines $AP$ and $BC$ intersect at $R$. Prove that the tangents from $B$ and $C$ to the incircle of triangle $AQR$ (different from $BC$) are concurrent on $\\omega$.", "options": [], "answer": "Detailed solution", "solution": "Let $I, I_a$ be the incenter and $A$-excenter of triangle $AQR$. To prove the claim of the problem, it suffices to show that $\\widehat{BIC} = 90^\\circ + \\frac{1}{2}\\widehat{BAC}$.\n\n![](attached_image_1.png)\n\nWe have\n$$\n\\begin{aligned}\n\\widehat{ARC} &= \\widehat{PCB} - \\widehat{RPC} = \\widehat{PCA} + \\widehat{ACB} - \\widehat{ABC} = \\widehat{PCA} \\\\\n\\implies AC^2 &= AP \\cdot AR.\n\\end{aligned}\n$$\nOn the other hand, note that points $I, R, I_a, Q$ lie on circle with diameter $II_a$, and\n$$\n\\widehat{QIR} = 90^\\circ + \\frac{1}{2} \\widehat{QAR} = \\widehat{QPR}.\n$$\nTherefore $PIQR$ is a cyclic quadrilateral and $P$ also lies on circle with diameter $II_a$. Now we have\n$$\nAI \\cdot AI_a = AP \\cdot AR = AC^2.\n$$\nLet $D$ be the intersection point of $AI, QR$, and let $B'$ be the second intersection point of the incircle of triangle $ICI_a$ with $BC$. We know that this circle is tangent to $AC$, therefore\n$$\n-1 = C(AD, II_a) = C(CB', II_a).\n$$\nSo $AB'$ is also tangent to the incircle of triangle $ICI_a$ which implies $AB' = AC$, therefore $B'$ and $B$ are coincident. Finally we conclude that\n$$\n\\widehat{BIC} = 180^\\circ - \\widehat{ABC} = 90^\\circ + \\frac{1}{2} \\widehat{BAC}.\n$$\nHence the claim of the problem.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32720, "subject": "Mathematics (Multi-modal)", "question": "There is a sequence of $n$ distinct positive integers. Prove that these numbers can be fixed on a circle such that the sum of any two adjacent numbers is different from the other sums.", "options": [], "answer": "Detailed solution", "solution": "Without loss of generality assume that $a_1 < a_2 < \\dots < a_n$. Consider these numbers on a circle, in the ascending order. All sums, other than $a_1 + a_n$ can be ordered as\n$$\na_1 + a_2 < a_2 + a_3 < \\dots < a_{n-2} + a_{n-1} < a_{n-1} + a_n\n$$\nWe're done if there's no two sums that are equal. But if there is, the only sum that can be equal to another one is $a_1 + a_n$ so we would have $a_1 + a_n = a_{i-1} + a_i$ for some $1 < i < n$. Now let's replace $a_i$ and $a_{i+1}$.\n\n$$\na_n + a_1 = a_{i-1} + a_i < a_{i-1} + a_{i+1} < a_{i+1} + a_i < a_{i+2} + a_i.\n$$\nSo the new sums can be ordered as\n$$\na_1 + a_2 < a_2 + a_3 < \\dots < a_{i-2} + a_{i-1} < a_n + a_1 < a_{i-1} + a_{i+1} < a_{i+1} + a_i < \\dots < a_{n-1} + a_n.\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32721, "subject": "Mathematics (Multi-modal)", "question": "Two circles $\\omega_1(O)$ and $\\omega_2$ intersect each other at $A, B$. And $O$ lies on $\\omega_2$. Let $S$ be the foot of perpendicular line to $AB$ from $O$. Line $OS$ intersects $\\omega_2$ for the second time at $P$. The bisector of $\\widehat{ASP}$ intersects $\\omega_1$ at $L$ ($A$ and $L$ are on the same side of the line $OP$). Let $K$ be a point on $\\omega_2$ such that $PS = PK$ ($A$ and $K$ are on the same side of the line $OP$). Prove that $SL = KL$.\n\n![](attached_image_1.png)", "options": [], "answer": "Detailed solution", "solution": "Let $Q$ be the intersection point of $PK$, $AB$ and let $L'$ be the incenter of triangle $QSP$. We'll prove that $L \\equiv L'$.\n\nWe know that $\\widehat{QSP} = \\widehat{OKP} = 90^\\circ$ therefore $QKSO$ is a cyclic quadrilateral. And since $PS = PK$, it's also concluded that $PQ = PO$. Now we have\n$$\n\\widehat{QLS} = 90^\\circ + \\frac{1}{2}\\widehat{QPS} = 90^\\circ + \\frac{1}{2}\\widehat{QPO} = 180^\\circ - \\widehat{QOP} = 180^\\circ - \\widehat{QOS}.\n$$\nSo $QL'SO$ is a cyclic quadrilateral and points $Q, K, L', S, O$ lie on circle with diameter $OQ$. Note that\n$$\n\\begin{aligned} \n\\widehat{QL'K} &= \\widehat{QSK} = 90^\\circ - \\widehat{KSP} = \\frac{1}{2}\\widehat{KPS} = \\widehat{KPL'} \\\\\n\\implies QK \\cdot QP &= (QL')^2 \n\\end{aligned}\n$$\nThe LHS of the latest equation is the power of point $Q$ with respect to $\\omega_2$. Since $Q$ lies on the radical axis of circles $\\omega_1, \\omega_2$, we have\n$$\n(QL')^2 = QK \\cdot QP = QO^2 - QA^2 = (QL')^2 + (OL')^2 - OA^2\n$$\n$$\n\\implies OL' = OA.\n$$\nSo $L'$ lies on $\\omega_1$ which means $L$ and $L'$ are the same points. Now since $L$ lies on the angle bisector of $\\widehat{KPS}$, we finally conclude that $SL = KL$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32722, "subject": "Mathematics (Multi-modal)", "question": "Find the maximum possible value of integer $k$ for which there exist distinct real numbers $x_1, x_2, \\dots, x_k$ greater than $1$ such that\n$$\n\\forall\\ 1 \\le i,j \\le k : x_i^{[x_j]} = x_j^{[x_i]}\n$$\n(By $[x]$ we mean the greatest integer less than or equal to $x$.)", "options": [], "answer": "4", "solution": "We start with some lemmas.\n\n**Lemma.** For positive integers $m > 3$ and $k > 2$ we have $m^{m+k} > (m+k+1)^m$.\n*Proof.* We must show that $m^k > \\left(\\frac{m+k+1}{m}\\right)^m = \\left(1 + \\frac{k+1}{m}\\right)^m$. But we have $\\left(1 + \\frac{k+1}{m}\\right)^m < e^{k+1}$ and so\n$$\n\\left(1 + \\frac{k+1}{m}\\right)^m < e^{k+1} < (2.8)^{k+1} \\le (2.8)^{\\frac{4}{3}k} < 4^k \\le m^k.\n$$\n\n**Lemma.** For all positive integers $m > 4$ and $n > 5$, we have $e^m > (m+1)^3$ and $2^n > (n+1)^2$.\n*Proof.* The proof of both parts are consequences of some elementary inductions.\n□\n\nNow for the main problem suppose that $k$ is the largest possible integer and $x_1 < x_2 < \\dots < x_k$ are $k$ numbers satisfying the condition. First note that if $[x_i] = [x_j]$ for some $i, j$ we have\n$$\nx_i^{[x_i]} = x_j^{[x_j]} \\implies x_i = x_j \\implies i = j\n$$\nThis means that $[x_i]$'s are distinct and so $[x_k] - [x_i] \\ge k - i$. We claim that $k \\le 4$. Assume to the contrary that $k > 4$.\n\n* If $[x_2] > 3$ since $[x_k] - [x_2] > 2$ using the first lemma we get $([x_k] + 1)^{[x_2]} < [x_2]^{[x_k]}$. But on the other hand we have\n$$\n[x_2]^{[x_k]} \\le x_2^{[x_k]} = x_k^{[x_2]} \\le ([x_k] + 1)^{[x_2]}\n$$\nThis leads to a contradiction and implies that $[x_1] < [x_2] \\le 3$.\n\n* If $[x_2] = 3$, then\n$$\n3^{[x_k]} \\le x_2^{[x_k]} = x_k^{[x_2]} = x_k^3 \\le ([x_k] + 1)^3\n$$\nBy the second lemma, we deduce that $[x_k] \\le 4$ and therefore $k \\le 4$ which contradicts with our assumption.\n\n* If $[x_2] = 2$, then similar to the previous part we have\n$$\n2^{[x_k]} \\le x_2^{[x_k]} = x_k^{[x_2]} = x_k^2 \\le ([x_k] + 1)^2\n$$\nand so by the second lemma $[x_k] \\le 5$ therefore $k \\le 5$. Now if $k = 5$, then $[x_i] = i$ for all $1 \\le i \\le 5$ which contradicts, because\n$$\n6 > x_5 = x_1^5 = x_1^2 \\times x_1^3 = x_2 \\times x_3 \\ge 2 \\times 3 = 6\n$$\nTherefore $k \\le 4$. For $k = 4$, the numbers $x_1 = 3^{\\frac{1}{3}}$, $x_2 = 3^{\\frac{2}{3}}$, $x_3 = 3$, $x_4 = 3^{\\frac{4}{3}}$ satisfy the condition, because $[x_i] = i$ and so $x_i^{[x_j]} = 3^{\\frac{ij}{3}} = x_j^{[x_i]}$. So the proof is complete and the desired maximum is $4$. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32723, "subject": "Mathematics (Multi-modal)", "question": "Let $n > 1$ be an integer and $a_1, a_2, \\dots, a_{n+1}$ be distinct positive integers. Does there exist a polynomial $p(x)$ with integer coefficients of degree at most $n$ that satisfies the following conditions?\n* $\\forall 1 \\le i < j \\le n+1 : \\gcd(p(a_i), p(a_j)) > 1$\n* $\\forall 1 \\le i < j < k \\le n+1 : \\gcd(p(a_i), p(a_j), p(a_k)) = 1$", "options": [], "answer": "Detailed solution", "solution": "Let $b_{(i,j)}$ for $1 \\le i, j \\le n+1$ be positive integers in which for every $i, j, k, l$ where $\\{i, j\\} \\ne \\{k, l\\}$, we have $(b_{(i,j)}, b_{(k,l)}) = 1$ and $b_{(i,j)} = b_{(j,i)}$. According to Lagrange interpolation formula, there exists a unique polynomial $P(x)$ with rational coefficients of degree at most $n$ that satisfies $\\forall 1 \\le i \\le n+1, P(a_i) = \\prod_{j=1}^{n+1} b_{(i,j)}$. Then we'll have:\n$$\n(P(a_i), P(a_j)) = b_{(i,j)} > 1, \\quad (P(a_i), P(a_j), P(a_k)) = (b_{(i,j)}, P(a_k)) = 1\n$$\nTherefore, it suffices to prove that there is a sequence $b_{(i,j)}$ in which the resulting polynomial $P$ has integer coefficients in lieu of rational. According to Lagrange interpolation formula,\n$$\nP(x) = \\sum_{i=1}^{n} P(a_i) \\frac{\\prod_{j=1, j \\neq i}^{n} (x - a_j)}{\\prod_{j=1, j \\neq i}^{n} (a_i - a_j)}\n$$\nDefine $c$ to be $c = \\prod_{i=1}^{n+1} \\prod_{j=1, j \\neq i}^{n+1} (a_i - a_j)$. Redefine $b_{(i,j)}$ so that in addition to former conditions, for every $(i, j)$, $b_{(i,j)} \\equiv 1 \\pmod{c}$. Obviously such sequence $b_{(i,j)}$ exists, as it's equivalent to existence of $\\frac{n(n+1)}{2}$ pairwise distinct positive integers all being $1$ modulo $c$, and the sequence\n$$\nc_1 = 1, \\quad \\forall 2 \\le i \\le \\frac{n(n+1)}{2} : c_i = c \\prod_{j=1}^{i-1} c_j + 1\n$$\nworks well. Furthermore, $P(a_i) = \\prod_{j=1}^{n+1} b_{(i,j)} \\equiv 1 \\pmod{c}$.\nIt remains to prove that for such $P(a_i)$, $P$ would have integer coefficients. Define $k_j$ to be $k_j = \\frac{P(a_j)-1}{c}$. According to Lagrange interpolation formula for constant polynomial $1$, we have\n$$\n\\begin{align*}\n1 &= \\sum_{i=1}^{n} \\frac{1 \\cdot \\prod_{j=1, j \\neq i}^{n} (x - a_j)}{\\prod_{j=1, j \\neq i}^{n} (a_i - a_j)} = \\sum_{i=1}^{n} \\frac{(P(a_i) - c k_i) \\prod_{j=1, j \\neq i}^{n} (x - a_j)}{\\prod_{j=1, j \\neq i}^{n} (a_i - a_j)} \\\\\n&= \\sum_{i=1}^{n} \\frac{(P(a_i)) \\prod_{j=1, j \\neq i}^{n} (x - a_j)}{\\prod_{j=1, j \\neq i}^{n} (a_i - a_j)} - \\sum_{i=1}^{n} \\frac{c k_i \\prod_{j=1, j \\neq i}^{n} (x - a_j)}{\\prod_{j=1, j \\neq i}^{n} (a_i - a_j)} \\\\\n&= P(x) - \\sum_{i=1}^{n} k_i \\prod_{j=1, j \\neq i}^{n} (x - a_j) \\frac{c}{\\prod_{j=1, j \\neq i}^{n} (a_i - a_j)}\n\\end{align*}\n$$\nBut by definition $\\prod_{j=1, j \\neq i}^{n} (a_i - a_j) \\mid c$. Therefore,\n$$\n\\sum_{i=1}^{n} k_i \\prod_{j=1, j \\neq i}^{n} (x - a_j) \\frac{c}{\\prod_{j=1, j \\neq i}^{n} (a_i - a_j)}\n$$\nhas integer coefficients, and so does $P(x)$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32724, "subject": "Mathematics (Multi-modal)", "question": "We say distinct positive integers $a_1, a_2, \\dots, a_n$ are **harmonic** if their sum is equal to the sum of all pairwise gcd's among them. Prove that there are infinitely many integers like $n$ such that $n$ harmonic numbers exist.", "options": [], "answer": "Detailed solution", "solution": "Suppose $a_1 = 2^0, a_2 = 2^1, \\dots, a_{n-2} = 2^{n-3}, a_{n-1} = 3, a_n = q$. We shall prove there exists infinitely many positive integers $n$ for which there exists a positive integer $q$ such that $(q, 6) = 1$ and $a_1, \\dots, a_n$ are harmonic.\n\n$$\n\\begin{align*}\n\\sum_{1 \\le i < j \\le n} (a_i, a_j) &= \\sum_{1 \\le i < j \\le n-2} (2^{i-1}, 2^{j-1}) + \\sum_{1 \\le i \\le n-2} (2^{i-1}, 3) + \\sum_{1 \\le i \\le n-2} (2^{i-1}, q) + (3, q) \\\\\n&= \\sum_{1 \\le i < j \\le n-2} 2^{i-1} + n - 2 + n - 2 + (3, q)\n\\end{align*}\n$$\n\n$a_1, a_2, \\dots, a_n$ is harmonic if and only if\n\n$$\n\\begin{align*}\n\\sum_{i=1}^{n} a_i &= \\sum_{1 \\le i < j \\le n} (a_i, a_j) \\\\\n\\iff 2^{n-2} - 1 + 3 + q &= \\sum_{1 \\le i \\le n-2} (n-2-i)2^{i-1} + 2n-3 \\\\\n\\iff q &= \\sum_{2 \\le i \\le n-2} (n-2-i)2^{i-1} + (n-3) + 2n-3 - 2^{n-2} + 2 \\\\\n&= \\sum_{2 \\le i \\le n-2} (n-2-i)2^{i-1} - 2^{n-2} + 3n-4 \\\\\n&= \\sum_{0 \\le i \\le n-3} (n-3-i)2^i - 2^{n-2} + 2n-1 = A(n)\n\\end{align*}\n$$\n\n$$\n\\begin{align*}\n\\sum_{0 \\le i \\le n-3} (n-3-i)2^i &= \\sum_{0 \\le i \\le n-3} \\sum_{0 \\le j < i} 2^j \\\\\n&= \\sum_{0 \\le i \\le n-3} (2^i - 1) = 2^{n-2} - 1 - (n-2) \\\\\n\\implies A(n) &= -1 - (n-2) + 2n-1 = n \\implies q = n\n\\end{align*}\n$$\n\nTherefore, for every positive integer $n$ that $(n, 6) = 1$, the sequence $a_1, \\dots, a_n$ will be harmonic. ■", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32725, "subject": "Mathematics (Multi-modal)", "question": "$2n-1$ distinct positive real numbers with sum $S$ are given. Prove that there are at least $\\binom{2n-2}{n-1}$ $n$-tuples among these numbers such that the sum of each $n$-tuple is at least $\\frac{S}{2}$.", "options": [], "answer": "Detailed solution", "solution": "Let's place these $2n-1$ numbers around a circle and label them by $\\pi(1), \\pi(2), \\dots, \\pi(2n-1)$ respectively and let\n$$\nS_i = \\pi(i) + \\pi(i+1) + \\dots + \\pi(i + n - 1), \\quad i \\le 2n-1\n$$\n(Numbers are considered modulo $2n-1$.) We claim that at least $n$ of $S_i$'s have a value not less than $\\frac{S}{2}$.\n\nAssume the contrary which means at least $n$ of these $S_i$'s have a value less than $\\frac{S}{2}$. Let the indices of these $S_i$'s be $i_1, i_2, \\dots, i_n$. Note that, by the pigeonhole principle there are two indices $i_s, i_t$ such that\n$$\ni_t - i_s \\stackrel{2n-1}{\\equiv} n$$\n(Because there is a total of $n-1$ sets of the form of $\\{i, i+n\\}$ (mod $2n-1$), and we have chosen $n$ indices, each one exists in a set.) So we can get\n$$\n\\begin{align*}\n\\frac{S}{2} \\times 2 > S_{i_s} + S_{i_t} &= \\pi(i_s) + \\pi(i_s + 1) + \\dots + \\pi(i_s + n - 1) \\\\\n&\\quad + \\pi(i_t) + \\pi(i_t + 1) + \\dots + \\pi(i_t + n - 1) \\\\\n&= \\pi(1) + \\pi(2) + \\dots + \\pi(2n - 1) + \\pi(i_s) > S\n\\end{align*}\n$$\nWhich is a contradiction. Hence the claim.\n\nNow there is a total of $(2n-2)!$ ways to place these numbers around the circle. Also according to the claim, in each permutation we have at least $n$ sums satisfying the condition. Each sum exists in $n! \\times (n-1)!$ permutations. So there's a total of at least\n$$\n\\frac{(2n-2)! \\times n}{n! \\times (n-1)!} = \\binom{2n-2}{n-1}\n$$\nways to choose an $n$-tuple with sum greater or equal to $\\frac{S}{2}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32726, "subject": "Mathematics (Multi-modal)", "question": "Consider quadrilateral $ABCD$ inscribed in circle $\\omega$. $P$ is the intersection point of $AC$, $BD$. Points $E$, $F$ lie on sides $AB$, $CD$ respectively such that $\\widehat{APE} = \\widehat{DPF}$. Circles $\\omega_1$, $\\omega_2$ are tangent to $\\omega$ at $X$, $Y$ respectively and also both tangent to the circumcircle of triangle $PEF$ at $P$. Prove that\n$$\n\\frac{EX}{EY} = \\frac{FX}{FY}.\n$$", "options": [], "answer": "Detailed solution", "solution": "Consider an inversion with center $P$ and radius $-PA \\cdot PC$. Let $Z'$ be the inversion of $Z$. We know that $A$, $C$ and $B$, $D$ are inverse points.\n![](attached_image_1.png)\nAlso we have\n$$\n\\frac{EY}{E'Y'} = \\frac{PE}{PY'}, \\quad \\frac{EX}{E'X'} = \\frac{PE}{PX'}\n$$\nWhich implies\n$$\n\\frac{EX}{EY} = \\frac{E'X'}{E'Y'} \\cdot \\frac{PY'}{PX'}\n$$\nAnd similarly\n$$\n\\frac{FX}{FY} = \\frac{F'X'}{F'Y'} \\cdot \\frac{PY'}{PX'}\n$$\nTherefore to prove the claim of the problem, we must show that\n$$\n\\frac{E'X'}{E'Y'} = \\frac{F'X'}{F'Y'}\n$$\nNote that $X'$, $Y'$ are points on $\\omega$ such that tangent lines to $\\omega$ through these points is parallel to $E'F'$, therefore if $O$ is the center of $\\omega$, then $X'Y'$ passes through $O$.\nNow it suffices to show that $OE' = OF'$ or equivalently, the power\nof point $E'$ with respect to $\\omega$ is the same as $F'$. Since $C$, $F$, $D$ are collinear, we conclude that points $A$, $F'$, $B$, $P$ and similarly $C$, $D$, $E'$, $P$ are conicyclic. Note that $\\overline{F'AB} = \\overline{F'PB} = \\overline{E'PC}$ and similarly $\\overline{F'BA} = \\overline{ECD}$. These two relations imply that\n$$\n\\Delta AF'B \\sim \\Delta DE'C \\implies \\frac{AB}{CD} = \\frac{AF'}{DE'} \\quad (1)\n$$\nLet $K$, $L$ respectively be the intersection points of $CE'$, $BF'$ with $\\omega$. It's easy to see that $\\overline{CBP} = \\overline{E'KD}$ and $\\overline{KE'D} = \\overline{BPC}$. Therefore triangles $BPC$, $KE'D$ are similar, which implies\n$$\n\\frac{E'K}{E'D} = \\frac{BP}{CP} = \\frac{AB}{CD} \\stackrel{1}{=} \\frac{F'A}{E'D} \\implies E'K = F'A\n$$\nwith similar arguments we conclude that $F'L = E'D$, therefore we must show that\n$$\nE'C \\cdot F'A = F'B \\cdot E'D\n$$\nThe latest equation is simply deduced, because of the similarity between triangles $DE'C$ and $AF'B$. ■", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32727, "subject": "Mathematics (Multi-modal)", "question": "Determine the smallest possible value of real number $k$ such that the inequality\n$$\n\\left(\\frac{2a}{a-b}\\right)^2 + \\left(\\frac{2b}{b-c}\\right)^2 + \\left(\\frac{2c}{c-a}\\right)^2 + k \\ge 4 \\left(\\frac{2a}{a-b} + \\frac{2b}{b-c} + \\frac{2c}{c-a}\\right)\n$$\nholds for all real numbers $a, b, c$.", "options": [], "answer": "8", "solution": "Let $x = \\frac{2a}{a-b}$, $y = \\frac{2b}{b-c}$, $z = \\frac{2c}{c-a}$. Then\n$$\n(1 - \\frac{2}{x}) (1 - \\frac{2}{y}) (1 - \\frac{2}{z}) = 1,\n$$\nwhich is equivalent to\n$$\nxy + yz + zx - 2(x + y + z) + 4 = 0.\n$$\nIf we denote $x + y + z = s$, then the inequality of the problem becomes\n$$\n\\begin{align*}\n& x^2 + y^2 + z^2 - 4(x + y + z) + k \\ge 0 \\\\\n\\iff & s^2 - 2(xy + yz + zx) - 4s + k \\ge 0 \\\\\n\\iff & s^2 - 2(2s - 4) - 4s + k = (s - 4)^2 + k - 8 \\ge 0.\n\\end{align*}\n$$\nThe right hand side of the latest equality is sum of a complete square and $k - 8$ thus we must have $8 \\le k$ so that the inequality always holds. Equality holds when $x + y + z = 4$. One possible triple which satisfies $x + y + z = 4$ and $xy + yz + zx - 2(x + y + z) + 4 = 0$ is $(x, y, z) = (\\frac{8}{3}, \\frac{2}{3}, \\frac{2}{3})$, which is attained for $(a, b, c) = (4, 1, -2)$ so we can conclude that the desired number is $k = 8$.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 32728, "subject": "Mathematics (Multi-modal)", "question": "Find all functions $f : \\mathbb{R}^+ \\rightarrow \\mathbb{R}^+$ such that for all positive real numbers $x$, $y$\n$$\n\\frac{x + f(y)}{x f(y)} = f\\left(\\frac{1}{y} + f\\left(\\frac{1}{x}\\right)\\right)\n$$", "options": [], "answer": "f(x) = x for all positive real x", "solution": "The given equation can also be written as\n$$\n\\frac{1}{x} + \\frac{1}{f(y)} = f\\left(\\frac{1}{y} + f\\left(\\frac{1}{x}\\right)\\right).\n$$\nReplacing $x$ with $\\frac{1}{x}$ in the above equality, we obtain\n$$\nP(x, y) : x + \\frac{1}{f(y)} = f\\left(\\frac{1}{y} + f(x)\\right)\n$$\nIf there is some positive real number $\\alpha$ with $\\alpha > f(\\alpha)$, then\n$$\nP\\left(\\alpha, \\frac{1}{\\alpha - f(\\alpha)}\\right) \\implies \\alpha = f(\\alpha) - \\frac{1}{f(\\alpha - f(\\alpha))} < f(\\alpha).\n$$\nWhich is a contradiction. So $x \\le f(x)$, $\\forall x \\in \\mathbb{R}^+$. But again, $P(x, y)$ simply gives\n$$\n\\begin{align*}\nx + \\frac{1}{f(y)} &= f\\left(\\frac{1}{y} + f(x)\\right) \\ge \\frac{1}{y} + f(x) \\ge x + \\frac{1}{y} \\\\\n\\implies \\frac{1}{f(y)} \\ge \\frac{1}{y} \\implies y \\ge f(y), \\forall y \\in \\mathbb{R}^+\n\\end{align*}\n$$\nThus, combining these two inequalities we get $\\boxed{f(x) = x, \\forall x \\in \\mathbb{R}^+}$ which is indeed a solution. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32729, "subject": "Mathematics (Multi-modal)", "question": "The point $P$ is chosen in the interior of the isosceles trapezoid $ABCD$, where $AB \\parallel CD$, such that $\\angle APB > \\angle ADC$ and $\\angle DPC > \\angle ABC$. Prove that $AB + CD > AD + BC$.", "options": [], "answer": "Detailed solution", "solution": "Since $ABCD$ is an isosceles trapezoid, we know that $\\angle ADC = \\angle ABx$ and $\\angle ABC = \\angle DCy$. (Take a look at the figure below.)\n\n![](attached_image_1.png)\n\nConsider a circle tangent to $AD$, $BC$ at $A$, $B$ respectively. We know that $P$ is in the interior of this circle because $\\angle APB > \\angle ABx$. Also, considering a circle tangent to $AD$, $BC$ at $D$, $C$ respectively and with the same argument, we conclude that $P$ is in this circle so we conclude that these two circles intersect each other at two points. Label these two points by $E$, $F$ and let $M$, $N$ be the intersection points of $EF$ with $AD$, $BC$ respectively. We have\n$$\n\\begin{cases}\nNF \\cdot NE = NB^2 = NC^2 \\\\\nME \\cdot MF = MA^2 = ND^2\n\\end{cases} \\xrightarrow{\\text{AM-GM}} \\begin{cases}\nNF + NE > NB + NC \\\\\nME + MF > MA + MD\n\\end{cases}\n$$\nBy adding these two inequalities we obtain $2MN > AD + BC$. Since $M$, $N$ are the midpoints of $AD$, $BC$ respectively, we also have\n$$\n2MN = AB + DC.\n$$\nHence the claim of the problem is concluded, meaning\n$$\nAB + DC > AD + BC.\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32730, "subject": "Mathematics (Multi-modal)", "question": "Points $X$ and $Y$ respectively lie on the tangent lines to the circumcircle of triangle $ABC$ passing through $B$, $C$ such that $AB = BX$ and $AC = CY$. (Points $X$, $Y$, $A$ are on the same side of line $BC$.) Let $I$ be the incenter of triangle $ABC$, prove that\n$$\n\\widehat{BAC} + \\widehat{XIY} = 180^\\circ\n$$", "options": [], "answer": "Detailed solution", "solution": "We know that $I$ is the incenter of triangle $ABC$, thus we have $\\widehat{AIC} = 90^\\circ + \\frac{\\widehat{ABC}}{2}$. Moreover we have\n$$\n\\left. \\begin{array}{l} \\widehat{ABC} = \\widehat{ACY} \\\\ AC = AY \\\\ \\widehat{AYC} = 90^\\circ - \\frac{\\widehat{ACY}}{2} \\end{array} \\right\\} \\implies \\widehat{AIC} + \\widehat{AYC} = 180^\\circ \\\\ \\implies AICY \\text{ is cyclic}\n$$\n\nIn a similar way $AIBX$ is also cyclic. Hence we have\n$$\n\\begin{aligned}\n\\widehat{XIY} &= \\widehat{AIX} + \\widehat{AIY} = \\widehat{ABX} + \\widehat{ACY} = \\widehat{ABC} + \\widehat{ACB} = 180^\\circ - \\widehat{BAC} \\\\\n\\implies \\widehat{BAC} + \\widehat{XIY} &= 180^\\circ\n\\end{aligned}", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32731, "subject": "Mathematics (Multi-modal)", "question": "In triangle $ABC$ let $M$ be the midpoint of $BC$. Let $\\omega$ be a circle inside of $ABC$ and tangent to $AB, AC$ at $E, F$, respectively. The tangents from $M$ to $\\omega$ meet this circle at $P, Q$ such that $P$ and $B$ lie on the same side of $AM$. Lines $PM, BF$ cut each other at $X$, and $Y$ is the intersection of $QM, CE$. If $2PM = BC$, prove that $XY$ is tangent to $\\omega$.", "options": [], "answer": "Detailed solution", "solution": "Assume that $CP, BQ$ cut each other at point $Z$. Since $2PM = BC$, we conclude that points $B, P, Q, C$ lie on the circle $\\Omega$ with center $M$.\n\n![](attached_image_1.png)\n\nWe have\n$$\n\\widehat{PZQ} = \\widehat{BPZ} + \\widehat{PBZ} = 90^\\circ + \\widehat{PBQ} = 180^\\circ - \\widehat{MPQ} = \\frac{\\widehat{PEQ}}{2}.\n$$\nTherefore $Z$ lies on $\\omega$. Note that circles $\\omega, \\Omega$ are perpendicular to each other, so the polar of point $B$ with respect to $\\omega$, passes through $C$. This line also passes through $E$, therefore $CE$ is the polar of $B$ with respect to $\\omega$.\n\nHence $Y$ lies on the polar of $B$, which means $B$ also lies on the polar of $O$ with respect to $\\omega$. Again, note that $Q$ is a point on the polar of $Y$, which leads to the conclusion that $BQ$ is the polar of $Y$ with respect to $\\omega$. Since $Z$ lies on the polar of $Y$, we conclude that $YZ$ is tangent to $\\omega$. Similarly, $XZ$ is also tangent to $\\omega$, hence $XY$ passes through $Z$ and is tangent to $\\omega$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32732, "subject": "Mathematics (Multi-modal)", "question": "Let $x$, $y$ be distinct real numbers such that $x^4 - y^4 = x - y$. Prove that\n$$\n\\frac{x - y}{x^6 - y^6} \\le \\frac{4}{3}(x + y)\n$$", "options": [], "answer": "Detailed solution", "solution": "It is deduced, from the state of the problem that\n$$\n(x^2 + y^2)(x + y) = 1\n$$\nWithout loss of generality, assume that $x > y$. Therefore we have\n$$\n\\begin{align*}\n\\frac{x-y}{x^6-y^6} &\\le \\frac{4}{3}(x+y) \\\\\n\\Leftrightarrow \\quad &x^6 - y^6 \\ge \\frac{3}{4}(x-y) \\\\\n\\Leftrightarrow \\quad &x^6 - y^6 \\ge \\frac{3}{4}(x^2+y^2)(x-y) \\\\\n\\Leftrightarrow \\quad &x^6 - y^6 \\ge \\frac{3}{4}(x^2+y^2)(x^4-y^4) \\\\\n\\Leftrightarrow \\quad &x^6 - y^6 \\ge -3x^2y^4 + 3x^4y^2 \\\\\n\\Leftrightarrow \\quad &x^6 - y^6 \\ge 3x^2y^2(x^2-y^2) \\\\\n\\Leftrightarrow \\quad &(x^2-y^2)(x^4-2x^2y^2+y^4) \\ge 0 \\\\\n\\Leftrightarrow \\quad &(x^2-y^2)^3 \\ge 0 \\\\\n\\Leftrightarrow \\quad &x \\ge y\n\\end{align*}\n$$\nWhich is true. Hence, the inequality holds.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32733, "subject": "Mathematics (Multi-modal)", "question": "Let $ABC$ be a triangle with $\\hat{A} \\ne 90^\\circ$. Points $E, F$ are the foot of altitudes from $B, C$ to $AC, AB$ respectively. The angle bisector of $\\hat{A}$ intersects $EF, BC$ at $M, N$ respectively. Perpendicular lines to $EF$ at $M$ and to $BC$ at $N$ intersect each other at $P$. Prove that $P$ lies on the median of vertex $A$.", "options": [], "answer": "Detailed solution", "solution": "Let $Q$ be the midpoint of $BC$, $A'$ be the reflection of $A$ into $O$, where $O$ is the circumcenter of triangle $ABC$, and $H$ be the orthocenter of $ABC$.\n\n![](attached_image_1.png)\n\nQuadrilateral $BHCA'$ is a parallelogram, therefore $A'H$ passes through $Q$. It also intersects the circumcircle again at $R$ where\n$$\n\\widehat{HRA} = \\widehat{A'RA} = 90^\\circ.\n$$\nWhich means $R$ lies on circle with diameter $AH$. Consider three circles, circle with diameter $AH$, circumcircle of triangle $ABC$ and circle passing through $B, H, C$. The radical axes of these three circles are lines $AR, EF, BC$, and they are concurrent at a point $K$.\n$AH, HQ$ are altitudes of triangle $AKQ$, therefore $H$ is also the orthocenter of triangle $AKQ$. So if $S$ is the intersection of $KH, AQ$, we have $\\widehat{ASH} = 90^\\circ$ which means $S$ also lies on the circle with diameter $AH$. Now we have\n$$\nKH \\cdot KS = KR \\cdot KA = KB \\cdot KC.\n$$\nTherefore $B, H, S, C$ lie on a circle. Note that $\\widehat{SEF} = \\widehat{SHC} = \\widehat{SBC}$ and similarly, $\\widehat{SFE} = \\widehat{SCB}$. So we conclude that triangles $SEF$ and $SBC$ are similar. Also, since $AN$ is the angle bisector of $\\widehat{A}$, we have\n$$\n\\frac{ME}{MF} = \\frac{AE}{AF} = \\frac{AB}{AC} = \\frac{BN}{CN}\n$$\n$$\n\\Rightarrow \\widehat{\\Delta SME} \\sim \\widehat{\\Delta SNB} \\Rightarrow \\widehat{SME} = \\widehat{SNB} = \\widehat{SNK}.\n$$\nTherefore points $K, M, S, N$ lie on a circle. Let $P'$ be the second intersection point of this circle with $AQ$. It's easy to see that $\\widehat{P'MK} = \\widehat{P'SK} = 90^\\circ$ and similarly $\\widehat{P'NK} = 90^\\circ$. Hence $P \\equiv P'$ and the claim of the problem is concluded. ■", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 32734, "subject": "Mathematics (Multi-modal)", "question": "$k \\in \\mathbb{Z}^+$ is a fixed number. Find all functions $f : \\mathbb{Z}^+ \\rightarrow \\mathbb{Z}^+$ such that for infinitely many prime numbers like $q$, $q^k$ is in the range of $f$ and also for all $m, n \\in \\mathbb{Z}^+$\n$$\nf(m) + f(n) \\mid f(m + n)\n$$", "options": [], "answer": "f(n) = n", "solution": "We prove by induction that $f(n) = n f(1)$.\n\nLet $c_1, c_2, \\dots$, be the sequence of positive integers such that $f(c_i) = p_i^k$. Then one has\n$$\nf(c_i - (d+1)) + f(d+1) \\mid f(c_i) = p_i^k\n$$\nand hence $f(c_i - (d+1)) = p_i^j - f(d+1)$ for some positive integer $j \\le k$. By pigeonhole principle, there are infinitely many $i$ that gives us the same $j$ and hence we can assume that $j$ is fixed since we can just consider that sequence instead. Similarly, one has $f(c_i - k) = p_i^{j'} - f(k)$ for some fixed positive integer $j'$. Now we have\n$$\nf(1) + f(c_i - (d+1)) \\mid f(c_i - d) \\implies p_i^j - f(d+1) + f(1) \\mid p_i^{j'} - f(d).\n$$\nLet $j' = a j + b$ where $0 \\le b < j$. Then our divisibility condition becomes\n$$\np_i^j - f(d+1) + f(1) \\mid (f(d+1) - f(1))^a p_i^b - f(d)\n$$\nbut since $b < j$ and $a < k$, the RHS is less than the LHS when $p_i$ is large enough which is a contradiction unless the LHS equals zero. In which case one has\n$$\n(f(d+1) - f(1))^a p_i^b = f(d)\n$$\nand so $b = 0$, giving us $(f(d+1) - f(1))^a = f(d)$. On the other hand, one also has\n$$\nf(1) + f(d) \\mid f(d+1)\n$$\ngiving us\n$$\n(f(d+1) - f(1))^a + f(1) \\mid f(d+1).\n$$\nLetting $f(d+1) - f(1) = c$, one has\n$$\nc^a + f(1) \\mid c + f(1)\n$$\nwhich is impossible unless $c^a = c$, in which case either $c = 1$ or $a = 1$. If $c = 1$, then $f(d) = 1$ and $f(1) + f(d-1) \\mid f(d)$ is impossible. Thus it must be that $a = 1$ which gives us $f(d+1) = f(d) + f(1)$. By induction, $f(n) = n f(1)$ as desired.\n\nNow clearly any function satisfying $f(n) = n f(1)$ satisfies the second condition. For the first condition, it is clear that one must have $f(1) = 1$. Hence the only solution is $f(n) = n$ for all $n \\in \\mathbb{Z}^+$.\n\n$\\boxed{f(n) = n}$ for all $n \\in \\mathbb{Z}^+$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32735, "subject": "Mathematics (Multi-modal)", "question": "In triangle $ABC$ points $P, Q$ lie on the exterior angle bisector of vertex $A$ such that $P, B$ lie on the same side of line $AC$ and $Q$ is on the other side. Perpendicular line from $P$ to $AB$ cuts the perpendicular line from $Q$ to $AC$ at $X$. Points $P', Q'$ are respectively chosen on $PB, QC$ such that $QX = Q'X$ and $PX = P'X$. Let $T$ be the midpoint of arc $BC$ (the one that doesn't contain $A$) of the circumcircle of triangle $ABC$. Prove that $P', Q', T$ are collinear if and only if\n$$\n\\widehat{PBA} + \\widehat{QCA} = 90^\\circ\n$$", "options": [], "answer": "Detailed solution", "solution": "First we start with two lemmas.\n\n**Lemma.** Let $ABCD$ be a quadrilateral and $P$ be a point on segment $AB$. Let $X, Y, Z$ be points on $BC, CD, AD$ respectively such that $PX \\parallel AC, XY \\parallel BD, YZ \\parallel AC$. Then we have $PZ \\parallel BD$.\n\n*Proof.* From $PX \\parallel AC, XY \\parallel BD, YZ \\parallel AC$ we conclude that\n$$\n\\left. \\begin{array}{l} \\frac{BP}{AB} = \\frac{BX}{BC} \\\\[2ex] \\frac{BX}{BC} = \\frac{DY}{DC} \\\\[2ex] \\frac{DY}{DC} = \\frac{DZ}{AD} \\end{array} \\right\\} \\implies \\frac{BP}{AB} = \\frac{DZ}{AD} \\implies PZ \\parallel BD\n$$\n\n![](attached_image_1.png)\n\n**Lemma.** Let $PQRS$ be a cyclic quadrilateral. $H$ is the intersection point of $PQ, RS$. Let $T'$ be an arbitrary point on $PQ$. $M, N$ are points on $PR, QS$ respectively such that $T'M \\parallel QR, T'N \\parallel PS$. $T$ is a point such that $\\overline{T'MT} = \\overline{T'NT} = 90^\\circ$. Now that if $T'$ varies on line $PQ$ then $T$ varies on a line passing $H$ and if this line is $RS$ then $PS \\perp QR$.\n![](attached_image_2.png)\n*Proof.* Suppose that there are three points $T'_1, T'_2, T'_3$ on $PQ$. Obviously we have\n$$\n\\frac{N_1 N_2}{N_1 N_3} = \\frac{T'_1 T'_2}{T'_1 T'_3} = \\frac{M_1 M_2}{M_1 M_3}\n$$\nLet $A_1, A_2, A_3$ be the intersection points of $(T_1M_1, T_3N_3), (T_1M_1, T_2N_2), (T_2M_2, T_3N_3)$ respectively.\nBecause of intercept theorem we have\n$$\n\\frac{A_1 A_2}{A_1 T_1} = \\frac{A_1 A_3}{A_1 T_3}, T_2 A_2 \\parallel A_1 T_3, T_2 A_3 \\parallel A_1 T_1\n$$\nSo we conclude that $T_2$ lies on $T_1T_3$.\nWe proved that $T$ varies on a line. Now we prove that this line passes through $H$.\nSuppose that $SP, QR$ are not perpendicular. Then there exist $F, X', Y$. Set $T'_1 = Q, T'_2 = P$. So we have $T_1 = X', T_2 = Y$. Let $E, Z$ be the intersection points of $(PS, QR), (RX', SY)$ respectively. Obviously we have $EF \\perp PQ, \\overline{ZES} = 90^\\circ - \\overline{ERS}$. It means that\n$$\n\\overline{ZES} = 90^\\circ - \\overline{EPQ} \\implies ZE \\perp PQ\n$$\nSo $E, F, Z$ are collinear. From desargue theorem in triangles $SZR, PFQ$ we obtain that $PQ, RS, X'Y$ are concurrent. So $X'Y$ passes from the intersection point of $PQ, RS$.\nNow suppose that $PQ \\perp RS$. Then if we set $T'_1 = P, T'_2 = Q$ then we have $T_1 = S, T_2 = R$ which implies that $RS$ passes through $H$.\n\n![](attached_image_3.png)\n\n**Case 1:**\nSuppose that $\\widehat{PBA} + \\widehat{QCA} = 90^\\circ$. Let $M, N, T'$ be the second intersection points of $BP, CQ, AP$ with the circumcircle of triangle $ABC$. $PQ$ is the external angle bisector of $\\hat{A}$. Thus we have\n$$\n\\begin{aligned}\n\\widehat{QAC} = \\widehat{PAB} &= 90^\\circ - \\frac{\\hat{A}}{2} \\implies \\widehat{APX} = \\widehat{AQX} = \\frac{\\hat{A}}{2} \\\\\n\\implies PX = QX, \\widehat{PXQ} &= 180^\\circ - \\hat{A}\n\\end{aligned}\n$$\nWe know that $PX = RX, QX = SX$ so we infer that\n$$\nPX = QX = RX = SX \\implies PQRS \\text{ is cyclic}\n$$\n$T'ACN$ is a cyclic quadrilateral. So $QNT' = 90^\\circ - \\frac{\\hat{A}}{2}$.\n$$\n\\begin{aligned}\nPQRS \\text{ is cyclic, } \\widehat{PXQ} &= 180^\\circ - \\hat{A} \\implies \\widehat{QSP} = 90^\\circ - \\frac{\\hat{A}}{2} \\\\\n\\implies \\widehat{QNT'} = \\widehat{QSP} \\implies NT' \\parallel PS\n\\end{aligned}\n$$\nBy the same way we can see that $MT \\parallel PS$.\n$$\n\\begin{aligned}\n\\widehat{PBA} + \\widehat{PCA} &= 90^\\circ \\\\\n\\implies \\widehat{XQC} + \\widehat{XPB} &= 90^\\circ \\implies \\widehat{PXB} + \\widehat{QXC} = 180^\\circ \\\\\n\\implies \\widehat{RXS} &= \\hat{A} \\\\\n\\implies \\widehat{RQS} = \\widehat{RPS} &= \\frac{\\hat{A}}{2} = \\widehat{TNC} = \\widehat{TMB} \\implies TN \\parallel QR, TM \\parallel PS\n\\end{aligned}\n$$\n\nBy the first lemma we conclude that the intersection point of $MT$, $NT$ lies on $RS$. So $R$, $S$, $T$ are collinear.\n![](attached_image_4.png)\n\n**Case 2:**\nSuppose that $R$, $S$, $T$ are collinear. Likewise the first case we can see that $PQRS$ is cyclic with circumcenter $X$ and $T' M \\parallel QR$, $T' N \\parallel PS$. In circumcircle of triangle $ABC$, $TT'$ is diameter. So we have\n$$\n\\widehat{TMT'} = \\widehat{TNT'} = 90^\\circ\n$$\nBy applying the second lemma in cyclic quadrilateral $PQRS$ we conclude that $T$ lies on a line passing from the intersection point of $PQ, RS$. We know that $T$ lies on $RS$. So we have $PS \\perp QR$ or $T$ is the intersection point of $PQ, RS$.\nIf $T$ lies on $PQ, RS$ we obtain that $T, T', A$ are collinear which is a contradiction. If $PS \\perp QR$ it means that\n$$\n\\widehat{PXB} + \\widehat{QXC} = 180^\\circ \\implies \\widehat{XQC} + \\widehat{XPB} = 90^\\circ \\implies \\widehat{PBA} + \\widehat{QCA} = 90^\\circ\n$$", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 32736, "subject": "Mathematics (Multi-modal)", "question": "Prove that for each positive integer $m$, one can find $m$ consecutive positive integers like $n$ such that the following expression is not a perfect power\n$$\n(1^3 + 2018^3)(2^3 + 2018^3)\\cdots(n^3 + 2018^3)\n$$", "options": [], "answer": "Detailed solution", "solution": "Let $p$ be a prime number of the form $3k+2$, such that $p > \\max(m, 2018)$. (Such $p$ exists because there are infinitely many prime numbers of the form $3k+2$.) We shall prove that $n = p - 2019 + i$, $1 \\le i \\le m$ satisfies the problem's conditions.\n\nIt suffices to prove that\n$$\nv_p((1^3 + 2018^3)(2^3 + 2018^3)\\dots(n^3 + 2018^3)) = 1,\n$$\nas it would result in $(1^3 + 2018^3)(2^3 + 2018^3)\\dots(n^3 + 2018^3)$ not being a perfect power.\n$$\nv_p((1^3 + 2018^3)(2^3 + 2018^3)\\dots(n^3 + 2018^3)) = v_p(1^3 + 2018^3) + v_p(2^3 + 2018^3) + \\dots + v_p(n^3 + 2018^3).\n$$\nHowever, if $i$ exists such that $i \\ne p - 2018$ and $v_p(i^3 + 2018^3) > 0$,\n$$\n\\begin{align*}\np|i^3 + 2018^3 &\\implies i^3 \\stackrel{p}{\\equiv} (-2018)^3 \\\\\n&\\implies (i^3)^{\\frac{p-2}{3}} \\stackrel{p}{\\equiv} ((-2018)^3)^{\\frac{p-2}{3}} \\\\\n&\\implies (-2018)i^{p-1} \\stackrel{p}{\\equiv} (-2018)^{p-1}i \\\\\n&\\implies (-2018) \\stackrel{p}{\\equiv} i \\implies p|i + 2018, \\ i \\ne p - 2018 \\\\\n&\\implies 2p - 2019 > p - 2019 + m \\ge i \\ge 2p - 2018\n\\end{align*}\n$$\nwhich is a contradiction. Therefore,\n$$\nv_p((1^3 + 2018^3)(2^3 + 2018^3)\\dots(n^3 + 2018^3)) = v_p((p - 2018)^3 + 2018^3) = v_p(p) + v_p(3) = 1\n$$\nDue to L.T.E., which proves the claim. ■", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 32737, "subject": "Mathematics (Multi-modal)", "question": "Let $X$ be an arbitrary point on the circumcircle of the triangle $ABC$. The perpendicular lines from $X$ to $AB$ and $AC$ cut $BC$ at $P$ and $Q$ respectively. The point $Y$ is the circumcenter of the circle passing through $X, P, Q$. (If $X, P, Q$ are coincident, then consider $Y$ the same point as them.)\n\na. Prove that if the triangle $ABC$ is equilateral, by moving $X$ on circumcircle, $Y$ moves on a circle.\n\nb. Prove the converse of the previous part: If by moving $X$ on the circumcircle, $Y$ moves on a circle, then $ABC$ is equilateral.", "options": [], "answer": "Detailed solution", "solution": "a. We know that triangle $ABC$ is an equilateral. Thus we have $\\widehat{PRQ} = \\widehat{PQR} = 90^\\circ - 60^\\circ = 30^\\circ$ and by this we have $PQ = PR$. Suppose that $S$ is the circumcenter of triangle $PQR$.\n\n![](attached_image_1.png)\n\nWe have $\\widehat{QPR} = 180^\\circ - 2 \\times 30^\\circ = 120^\\circ$. So $\\widehat{QR} = 120^\\circ$ and moreover $\\widehat{QSR} = 120^\\circ$. $SQ = SR$, so $\\widehat{SQR} = \\widehat{SRQ}$. By these arguments we conclude that triangle $SQR$ is the reflection of triangle $PQR$ respect to $BC$. So $S$ is the reflection of $P$ respect to $BC$. Thus $S$ moves on a circle which is the reflection of the circumcircle of triangle $ABC$ respect to $BC$. $\\square$\n\nb. Suppose that $S$ is the circumcenter of triangle $PQR$ and $O$ is the circumcenter of triangle $ABC$. By considering $P$ on $B, C$ we can obviously see that $S$ lies on $B, C$ respectively. Now we move $P$ to the intersection point of $AO$ and the circumcircle of triangle $ABC$. In this case we have $\\widehat{PCA} = \\widehat{PBA} = 90^\\circ$. So $S$ lies on $O$. The parallel line from $P$ respect to $BC$ meets the circumcircle of triangle $ABC$ at $P'$. By considering $P'$ as $P$, triangle $PQR$ is similar to the triangle $PQR$ in the previous case. Note that the $P$ altitudes in both of these triangles have equal lengths. So these triangles are equivalent. Thus by transferring $O$ by $pp'$ which is parallel to $BC$, we reach the point $S$, the circumcenter of triangle $PQR$ in this case. We know that $BSOC$ is cyclic. But this can't be true unless $S$ lies on $O$. It yields that $pp'$ must be equal to 0. So $P'$ lies on $P$ and triangle $ABC$ is isosceles with $AB = AC$. Now let $P$ lie on $A$.\n\n$\\omega$ is the circumcircle of triangle $BOC$. Triangle $ABC$ is isosceles. So the perpendicular bisector of $RQ$ is the $A$ altitude in triangle $ABC$. This perpendicular bisector meets $\\omega$ for the second time at $S$. We know that the circumcenter of triangle $AQR$ lies on $\\omega$, so it's whether $O$ or $S$. It can't be $O$. Because otherwise we have\n$$\nOB = OA = OR\n$$\nWhich can't be true. So $S$ is the circumcenter of triangle $AQR$. We have\n$$\n\\left. \n\\begin{array}{l}\nSA = SQ \\implies \\widehat{SAQ} = \\widehat{SQA} \\\\[1.5ex]\n\\widehat{CAQ} = \\widehat{BAQ} - \\widehat{BAC} = 90^\\circ - \\hat{A} \\\\[1.5ex]\n\\widehat{SAC} = \\frac{\\hat{A}}{2}\n\\end{array}\n\\right\\} \\implies \\widehat{SAQ} = 90^\\circ - \\frac{\\hat{A}}{2}\n$$\nBy these we have\n$$\n\\begin{align*}\n\\widehat{SQA} &= \\widehat{SAQ} = 90^\\circ - \\frac{\\widehat{A}}{2} &\\implies \\widehat{ASQ} &= 180^\\circ - 2 \\times (90^\\circ - \\frac{\\widehat{A}}{2}) = \\widehat{A} \\\\\n\\implies \\widehat{CQA} &= 90^\\circ - \\widehat{ASQ} = 90^\\circ - \\widehat{A}, \\widehat{AQS} = 90^\\circ - \\frac{\\widehat{A}}{2} &\\implies \\widehat{AQC} &= \\frac{\\widehat{A}}{2}\n\\end{align*}\n$$\nMoreover we have\n$$\n\\widehat{ACD} = 180^\\circ - 90^\\circ - (90^\\circ - \\widehat{B}) = \\widehat{B}\n$$\nIn the circumcircle of triangle $ACQ$ we have\n$$\n\\widehat{CAS} = \\frac{\\widehat{A}}{2} = \\widehat{AQC} = \\frac{\\widehat{AC}}{2}\n$$\n\n$$\n\\widehat{CQS} = 90^\\circ - \\widehat{A} = \\widehat{CAQ} = \\frac{\\widehat{CQ}}{2}\n$$\nUsing these arguments we conclude that $SA$ and $SQ$ are tangent to the circumcircle of triangle $ACQ$. Let $O_1$ be the circumcenter of triangle $ACQ$. Then we have\n![](attached_image_2.png)\n$$\n\\widehat{CO_1A} = \\widehat{AC} = 2\\widehat{CQA} = \\widehat{A} \\\\ \\widehat{CAO_1} = \\widehat{ACO_1} = \\frac{180^\\circ - \\widehat{CO_1A}}{2} = 90^\\circ - \\frac{\\widehat{A}}{2}\n$$\nWe knew that $\\widehat{ACD} = \\hat{B} = 90^\\circ - \\frac{\\hat{A}}{2}$. So $\\widehat{ACD} = \\widehat{ACO_1}$. Thus it yields that $C$ lies on $AO_1$ and $AC = CQ$. So we have\n$$\n\\begin{align*} \\widehat{CAQ} = \\widehat{CQA} &\\implies 90^\\circ - \\widehat{A} = \\frac{\\widehat{A}}{2} &\\implies \\frac{3}{2}\\widehat{A} &= 90^\\circ \\\\ &\\implies \\widehat{A} = 60^\\circ \\quad \\square \\end{align*}\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32738, "subject": "Mathematics (Multi-modal)", "question": "A simple graph is called **divisibility** if it's possible to label its vertices with positive integers such that there is an edge between two vertices if and only if the label of one vertex is divisible by the other one.\nA simple graph is called a **permutation** graph, if it's possible to label its vertices by $1, 2, \\dots, n$ and there exists a permutation $\\pi$ such that there is an edge between vertices $i, j$ if and only if $i > j$ and $\\pi(i) < \\pi(j)$ (the graph is not directed!)\nProve that a simple graph is a permutation graph if and only if both its complement and itself are divisibility graphs.", "options": [], "answer": "Detailed solution", "solution": "Let's call a simple graph **good**, if we can assign a direction to the edges such that for any two vertices $v, u$ with $v \\to u$, if there's a vertex $w$ with $u \\to w$, then there is necessarily a directed edge from $v$ to $w$.\n**Lemma.** A graph is divisibility if and only if it's a good graph.\n*Proof.*\n* Let $G$ be a divisibility graph and let $n(v)$ denote the number written on vertex $v$. For any pair of vertices like $(v, u)$ where there's an edge between $v$ and $u$, we direct the edge from $v$ to $u$ if $n(v) \\mid n(u)$ and otherwise, we direct the edge from $u$ to $v$. Now if for any three vertices $u, v, w$ we have $u \\to v, v \\to w$, it means $n(u) \\mid n(v) \\mid n(w)$, thus $n(u) \\mid n(w)$ which means $u \\to w$, so $G$ is a good graph.\n\n* Let $G$ be a good graph with $n$ vertices. Using induction on $n$, we'll show that $G$ is a divisibility graph. For $n = 1$ the claim is obvious. Now assume the claim for $n = k - 1$. Now consider a good graph with $n = k$ vertices. Note that a good graph cannot have a cycle. Because a cycle $v_1 \\to v_2 \\to \\dots \\to v_t \\to v_1$, means $v_1 \\to v_t$ is also an edge of the directed graph. So the graph is not a simple graph, which is a contradiction. Thus, there is no cycle in $G$. Let $v$ be a vertex of $G$ with in-degree of zero (such vertex exists since $G$ does not have a cycle). The graph $G - \\{v\\}$ is a good graph with $k-1$ vertices, so by induction, it is also a divisibility graph where $n(u)$ is the number associated with vertex $u$. Now set $n(v) = p$ such that for all $u \\in G - \\{v\\}$ we have $p \\nmid n(u)$. Now change the numbers written on the vertices of $G - \\{v\\}$ in a way that for any vertex $u \\neq v$ where $v \\to u$, the new associated number is $n'(u) = p \\cdot n(u)$. Now $G$ with given numbers is easily shown to be a divisibility graph.\n\nSo in order to solve the problem, we need to show that a graph is a permutation graph if and only if itself and its complement are good graphs. Let $G$ be a permutation graph. Let $(v, u)$ be an edge of this graph where $v, u$ are labeled by $i, j$. We direct the edge from $v$ to $u$ if $i < j, \\pi(j) < \\pi(i)$. It is easy to see that this directed version of $G$ implies $G$ is a good graph. Now for the complement of $G$, call it $\\bar{G}$, for any two numbers $i, j$ labeled on vertices $v, u$, we direct an edge from $v$ to $u$ if $i < j, \\pi(i) < \\pi(j)$. Again, it is quite simple to see that by this directed version of $\\bar{G}$, we can conclude that $\\bar{G}$ is also a good graph. Now for the other part, we need another lemma.\n\n**Lemma.** Let $G$ be a graph with $n$ vertices such that both $G$ and its complement, $\\bar{G}$, are good graphs. Label the vertices of these graphs by $1, 2, \\dots, n$. Then there is an arrangement of the vertices, such that in both $G$ and $\\bar{G}$, all vertices are towards the same direction. (Meaning if vertices are respectively labeled as $v_1, \\dots, v_n$, for any $i, j$ where $v_i \\to v_j$, we have $i < j$.)\n*Proof.* Let $G$ be a graph as described. Since $G$ does not contain a cycle, then it is possible to arrange the vertices in a way that all edges are towards the same direction. Of all valid directed versions of $G$, consider the one such that of all the valid directions of $\\bar{G}$, the directed version of $\\bar{G}$ has the minimum number of edges towards the opposite direction of the ones in $G$. We will prove that this minimum number is zero. Assume the contrary, that even considering a direction version of $\\bar{G}$ with minimum number of backward edges, there is still a backward edge. Let's focus on graph $\\bar{G}$. Consider an edge where the distance between its vertices is minimal. Let this edge be $v_k \\to v_t$. We claim that $v_k, v_t$ are adjacent vertices, otherwise there's a vertex $v_s$ that $v_s \\not\\to v_t$ and $v_k \\not\\to v_s$.\n$$\n\\left. \n\\begin{array}{l}\n\\text{if } v_t \\to v_s \\\\\nv_k \\to v_t\n\\end{array}\n\\right\\} \\bar{G} \\text{ is good} \\implies v_k \\to v_s \\\\\n\\left. \n\\begin{array}{l}\n\\text{if } v_s \\to v_k \\\\\nv_k \\to v_t\n\\end{array}\n\\right\\} \\bar{G} \\text{ is good} \\implies v_s \\to v_t\n$$\nBoth conclusions are impossible, therefore $v_t \\not\\to v_s, v_s \\not\\to v_k$, which means in $G$ we must have $v_t \\to v_s, v_s \\to v_k$, and since $G$ is good, $v_t \\to v_k$. Which means in $\\bar{G}$ we cannot have an edge between $v_t, v_k$, a contradiction. So $v_k, v_t$ must be adjacent vertices. Since there is no edge between $v_k, v_t$ in $G$, switching their position will not cause any difference to the way we directed the $G$, that all edges are towards the same direction. But, it reduces the number of edges in $\\bar{G}$ that are facing backwards by at least one, a contradiction, since we considered a direction of $\\bar{G}$ where it has the minimum number of such edges. Hence the lemma.\n\nNow using the latest lemma, consider an arrangement of the vertices such that any edge of both $G, \\bar{G}$ are towards the same direction, meaning if $v_i \\to v_j$, then $i < j$. Now consider a permutation $\\pi$ where $\\pi(i) = i - 1 + d^+(v_i) - d^-(v_i) \\ge 0$ where $d^+(v), d^-(v)$ are out-degree and in-degree of vertex $v$ respectively. Now we will show that $G$ is a permutation graph, using the permutation $\\pi$ as described. We need to show that for any two indices $i < j$, we have $v_i \\to v_j$ if and only if $\\pi(i) > \\pi(j)$. First assume that $v_i \\to v_j$. Define the sets $A, B, C$ as\n$$\n\\begin{align*}\nA &:= \\{v_k \\mid k < i, v_k \\to v_i\\} \\\\\nB &:= \\{v_k \\mid i < k < j, v_i \\not\\to v_k\\} \\\\\nC &:= \\{v_k \\mid j < k, v_i \\not\\to v_k\\}\n\\end{align*}\n$$\nSince both $G, \\bar{G}$ are good, we have\n$$\n\\begin{align*}\n\\forall v_k \\in A : v_k \\to v_i \\to v_j &\\implies v_k \\to v_j \\\\\n\\forall v_k \\in B : v_i \\not\\to v_k, v_i \\to v_j &\\implies v_k \\to v_j \\\\\n\\forall v_k \\in C : v_i \\not\\to v_k, v_i \\to v_j &\\implies v_j \\not\\to v_k\n\\end{align*}\n$$\n(The second and third lines are concluded because otherwise, considering $\\bar{G}$, we would have $v_i \\not\\to v_j$.) So we have\n$$\n\\left\\{ \n\\begin{array}{l}\nd^-(v_j) \\ge |A| + |B| + 1 = d^-(v_i) + |B| + 1 \\\\\nd^+(v_i) \\ge d^+(v_j) + ((j - i - 1) - |B|) + 1 \\\\\n\\qquad j > i\n\\end{array}\n\\right.\n$$\n$$\n\\begin{aligned} & \\implies \\pi(i) - \\pi(j) \\\\\n&= (i-j) + (d^{+}(v_i) - d^{+}(v_j)) + (d^{-}(v_j) - d^{-}(v_i)) \\\\\n& \\geq (i-j) + ((j-i) - |B|) + (|B| + 1) = 1 > 0. \\end{aligned}\n$$\nNow if $v_i \\not\\to v_j$, define these following sets\n$$\n\\begin{aligned} D &:= \\{v_k \\mid k < i, v_k \\not\\to v_i\\} \\\\\nE &:= \\{v_k \\mid i < k < j, v_i \\to v_k\\} \\\\\nF &:= \\{v_k \\mid j < k, v_i \\to v_k\\} \\end{aligned}\n$$\nAgain, we have\n$$\n\\begin{aligned} \\forall v_k \\in D : v_k \\not\\to v_i \\not\\to v_j &\\implies v_k \\not\\to v_j \\\\\n\\forall v_k \\in E : v_i \\to v_k, v_i \\not\\to v_j &\\implies v_k \\not\\to v_j \\\\\n\\forall v_k \\in F : v_i \\not\\to v_j, v_i \\not\\to v_k &\\implies v_j \\to v_k \\end{aligned}\n$$\nSo we conclude\n$$\n\\left\\{ \\begin{array}{l} d^{+}(v_i) = |E| + |F| \\\\\nd^{+}(v_j) \\ge |F| \\\\\nd^{-}(v_j) \\le ((i-1) - |D|) + ((j-i-1) - |E|) \\\\\nd^{-}(v_i) + |D| = i-1 \\\\\nj > i \\end{array} \\right.\n$$\n$$\n\\begin{aligned} & \\implies \\pi(i) - \\pi(j) \\\\\n&= (i-j) + (d^{+}(v_i) - d^{+}(v_j)) + (d^{-}(v_j) - d^{-}(v_i)) \\\\\n& \\le (i-j) + (|E|) + ((j-i-1) - |E|) = -1 < 0. \\end{aligned}\n$$\nHence, the given permutation $\\pi$ leads to the conclusion that $G$ is a permutation graph. So the claim of the problem is finally deduced. ■", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32739, "subject": "Mathematics (Multi-modal)", "question": "Let $P(z) = a_d z^d + a_{d-1} z^{d-1} + \\dots + a_1 z + a_0$ be a polynomial with complex coefficients, the **reverse** of this polynomial is defined as\n$$\nP^*(z) = \\overline{a_0}z^d + \\overline{a_1}z^{d-1} + \\dots + \\overline{a_d}\n$$\n\na. Prove that\n$$\nP^*(z) = z^d \\overline{P\\left(\\frac{1}{z}\\right)}\n$$\n\nb. Let $m$ be a positive integer. Let $q(z)$ be a non-constant monic polynomial which all of its roots lie on the perimeter or the interior of the unit circle. Prove that all the roots of the polynomial\n$$\nQ(z) = z^m q(z) + q^*(z)\n$$\nlie on the **perimeter** of the unit circle.", "options": [], "answer": "Detailed solution", "solution": "a.\nWe have\n$$\nP^*(z) = \\bar{a}_0 z^d + \\bar{a}_1 z^{d-1} + \\cdots + \\bar{a}_d = z^d \\left( \\bar{a}_0 + \\bar{a}_1 \\frac{1}{z} + \\cdots + \\bar{a}_d \\left( \\frac{1}{z} \\right)^d \\right)\n$$\nso\n$$\nP^*(z) = z^d \\overline{\\left( a_0 + a_1 \\frac{1}{z} + \\cdots + a_d \\left( \\frac{1}{z} \\right)^d \\right)} = z^d \\overline{P\\left( \\frac{1}{z} \\right)}\n$$\n\nb.\nLet $z_1, z_2, \\dots, z_n$ be roots (not necessarily distinct) of $q$. So\n$$\nq(z) = (z - z_1) \\cdots (z - z_n)\n$$\nBy assumptions of the problem for every $1 \\le i \\le n$ we know that $|z_i| \\le 1$. Using the first part of the problem we have\n$$\nq^*(z) = z^n \\overline{q\\left(\\frac{1}{z}\\right)} = z^n \\overline{\\left(\\frac{1}{z} - z_1\\right) \\cdots \\left(\\frac{1}{z} - z_n\\right)}\n$$\nso we have\n$$\nq^*(z) = (1 - z\\overline{z_1}) \\cdots (1 - z\\overline{z_n})\n$$\nNow assume that $r$ is a root of polynomial $Q$. Then\n$$\nQ(r) = r^m q(r) + q^*(r) = 0\n$$\nso\n$$\nr^m(r - z_1) \\cdots (r - z_n) = -(1 - r\\bar{z}_1) \\cdots (1 - r\\bar{z}_n)\n$$\nwhich implies\n$$\n|r|^m |r - z_1| \\cdots |r - z_n| = |1 - r\\bar{z}_1| \\cdots |1 - r\\bar{z}_n|\n$$\n\n**Case 1:** $|r| > 1$\n\nWe claim that for every $1 \\le i \\le n$, we have $|r - z_i| \\ge |1 - r\\bar{z}_i|$. We have\n$$\n|r - z_i|^2 = (r - z_i)(\\overline{(r - z_i)}) = |r|^2 - r\\bar{z}_i + \\bar{r}z_i + |z_i|^2 \\\\\n|1 - r\\bar{z}_i|^2 = (1 - r\\bar{z}_i)(\\overline{(1 - r\\bar{z}_i)}) = 1 - r\\bar{z}_i - \\bar{r}z_i + (|r||z_i|)^2\n$$\nSo it is enough to prove that\n$$\n|r|^2 + |z_i|^2 \\ge 1 + (|r||z_i|)^2\n$$\nOr equivalently\n$$\n(|r|^2 - 1)(1 - |z_i|^2) \\ge 0\n$$\nWhich is true. So our claim is proved. So according to the inequality we must have\n$$\n|r|^m |r - z_1| \\cdots |r - z_n| > |r - z_1| \\cdots |r - z_n| \\ge |1 - r\\bar{z}_1| \\cdots |1 - r\\bar{z}_n|\n$$\nWhich is a contradiction. So $|r| \\le 1$.\n\n**Case 2:** $|r| < 1$\n\nSame as the previous part we would have $|r-z_i| \\le |1-r\\bar{z}_i|$ which also leads to a contradiction and implies $|r| \\ge 1$. Thus we can conclude that $|r| = 1$.\n\n$\\boxed{}$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32740, "subject": "Mathematics (Multi-modal)", "question": "Find all functions $f : \\mathbb{R} \\to \\mathbb{R}$ that satisfy the following conditions:\n(a) $x + f(y + f(x)) = y + f(x + f(y))$, $\\forall x, y \\in \\mathbb{R}$\n(b) The set $I = \\left\\{\\frac{f(x)-f(y)}{x-y} \\mid x, y \\in \\mathbb{R}, x \\neq y\\right\\}$ is an interval. (means for any two numbers $u, v \\in I$ with $u \\le v$, we have $\\forall w \\in [u, v] : w \\in I$)", "options": [], "answer": "No such function exists.", "solution": "By changing $x, y$, it is obvious that the given set is the same as $\\left\\{\\frac{f(x)-f(y)}{x-y} \\mid x, y \\in \\mathbb{R}, x > y\\right\\}$. Let's define $F(x, y) = \\frac{f(x)-f(y)}{x-y}$. First, we prove two lemmas:\n\n**Lemma.** $0, 1 \\notin I$. So $f(x)$ is an injective function.\n*Proof.* Assume the contrary, so there is $x, y$ such that $F(x, y) = 1$, then $y + f(x) = x + f(y)$, so we find that $x = y$ which yields a contradiction. Now if $F(x, y) = 0$, for some $x, y$, then we find that $f(x) = f(y)$ which leads to\n$$\nf(y + f(x)) - f(x + f(x)) = y - x\n$$\nor $F(y + f(x), x + f(x)) = 1$, which is impossible.\n\n**Lemma.** $F(x, y) > 1, \\forall x \\neq y$. So $f(x)$ is strictly increasing.\n*Proof.* First, we rewrite the original equation as\n$$\nf(x + f(y)) - f(y + f(y)) = f(y + f(x)) - f(y + f(y)) + x - y\n$$\nWhich, since $f$ is injective, is equivalent to\n$$\nF(x + f(y), y + f(y)) = F(y + f(x), y + f(y)) \\cdot F(x, y) + 1, \\forall x \\neq y.\n$$\nNow since $0 \\notin I$, we find that $F$ is either always positive or always negative, so the right-hand side of the above equality is strictly greater than 1 implying that $F(x + f(y), y + f(y)) > 1$. Since $1 \\notin I$, we find that $F(x, y) > 1$ for all $x \\neq y$.\nNow, if $x < y$, given that $\\frac{f(x)-f(y)}{x-y} > 1$, we have $f(x)+y < x+f(y)$, thus $f(f(x) + y) < f(x + f(y))$, resulting in $x > y$, a contradiction. So there is no such function. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32741, "subject": "Mathematics (Multi-modal)", "question": "Let $\\mathbb{Z}[x]$ be the set of polynomials with integer coefficients. Let $q$ be a prime number. A polynomial $P \\in \\mathbb{Z}[x]$ is called **q-reducible** if there exists $f_q, g_q \\in \\mathbb{Z}[x]$ such that $f_q, g_q$ have at least one non-constant coefficient which is not divisible by $q$, and all the coefficients of polynomial $Q(x) = P(x) - f_q(x)g_q(x)$ are divisible by $q$.\n\na. Prove that there exists infinitely many prime numbers $q$ such that the following polynomial is $q$-reducible\n$$\nP(x) = x^4 - 2x^3 + 3x^2 - 2x - 5\n$$\n\nb. Does there exist a polynomial $P \\in \\mathbb{Z}[x]$ which is $q$-reducible for every prime number $q$ but is irreducible over $\\mathbb{Z}[x]$?", "options": [], "answer": "a: There are infinitely many primes q for which the given polynomial is q-reducible. b: Yes; for example, x^6 + 3 is irreducible over the integers and is q-reducible for every prime q.", "solution": "a.\n$$\nx^4 - 2x^3 + 3x^2 - 2x - 5 = (x^2 - x + 1)^2 - 6\n$$\nTherefore, it suffices to prove that there exists infinitely many prime numbers $q$ such that $q \\mid r^2 - 6$ for some $r \\in \\mathbb{Z}$, as in that case we have\n$$\nr^2 - 6 = (x^2 - x + 1)^2 - 6 - ((x^2 - x + 1)^2 - r^2) \\\\ = P(x) - (x^2 - x + 1 - r)(x^2 - x + 1 + r)\n$$\nSuppose on the contrary that there are only finitely many prime numbers $q$ for which there exists $r \\in \\mathbb{Z}$ such that $q \\mid r^2 - 6$, and let them be $q_1 = 2, q_2 = 3, q_3, \\dots, q_k$. Now it's easy to see that $(q_3q_4 \\dots q_k)^2 - 6$ is relatively prime to $q_1, \\dots, q_k$, therefore it does not have any prime factors, which completes our proof. $\\Box$\n\nb. The answer is no. Let $P(x)$ be $x^6+3$. It's not hard to see that $P(x)$ is irreducible over $\\mathbb{Z}[x]$. It remains to prove that $P(x)$ is $q$-reducible for every prime $q$. Obviously, either $q=3, 3 \\mid q-1$ or $3 \\mid q+1$.\n\ni. If $q = 3$, $P(x)$ is $q$-reducible because $3 = x^6 + 3 - x \\cdot x^5$.\n\nii. If $3 \\mid q-1$,\n$$\n\\begin{align*} \nq \\stackrel{3}{\\equiv} 1 &\\implies 1 = \\left(\\frac{q}{3}\\right) = (-1)^{\\frac{q-1}{2}} \\left(\\frac{3}{q}\\right) = \\left(\\frac{-1}{q}\\right) \\left(\\frac{3}{q}\\right) \\\\ \n&\\implies \\left(\\frac{-3}{q}\\right) = 1 \n\\end{align*}\n$$\n$$\n\\implies \\exists r : r^2 \\stackrel{q}{\\equiv} -3 \\implies x^6 + 3 \\stackrel{q}{\\equiv} x^6 - r^2 \\stackrel{q}{\\equiv} (x^3 - r)(x^3 + r)\n$$\n\niii. If $3 \\mid q+1$, consider $g$ to be a primitive root modulo $q$. $(q+1, 3) = 1 \\implies g^3$ is also a primitive root modulo $q$.\n$$\n\\begin{align*} \n\\exists k : (g^3)^k \\stackrel{q}{\\equiv} -3 &\\implies (g^k)^3 \\stackrel{q}{\\equiv} -3 \\implies \\exists r : r^3 \\stackrel{q}{\\equiv} -3 \\\\ \n\\implies P(x) \\stackrel{q}{\\equiv} x^6 + r^3 \\stackrel{q}{\\equiv} (x^2 + r)(x^4 - x^2r + r^2) \n\\end{align*}\n$$\nWhich results in $P(x)$ being $q$-reducible for every prime number $q$, and completes the proof. $\\square$", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32742, "subject": "Mathematics (Multi-modal)", "question": "100 points lie on the perimeter of a circle and they are arbitrary labeled by $1, 2, \\ldots, 100$. We call a triangle **clockwise** if the increasing order of its vertices is in a clockwise fashion. Prove that it is not possible to have exactly $2017$ clockwise triangles.", "options": [], "answer": "Detailed solution", "solution": "Consider an operation in which we replace the labels of two consecutive points. We will focus on the parity of the total number of clockwise triangles.\n\nLet $A, B$ be two consecutive points. Consider a clockwise triangle that none of points $A, B$ are its vertices or exactly one of them is a vertex of this triangle. After replacing $A, B$, this triangle is still clockwise. If a clockwise triangle has both of points $A, B$ after replacing, it will change to counter clockwise and if a counter clockwise triangle has both of $A, B$ it will change to a clockwise triangle. The total number of triangles having both $A, B$ is $98$. Let the number of clockwise triangles containing both $A, B$ before replacing $A, B$ be $a$. So there are $98-a$ counter clockwise triangles containing both $A, B$. After replacing $A, B$, the total number of clockwise and counter clockwise triangles containing $A, B$ will be $98-a$, $a$ respectively. So the number of clockwise triangles is now increased by $98-2a$, which is an even number. Therefore the parity of the total number of clockwise triangles is always constant over this operation.\n\nIt's easy to see that we can replace these points until we reach a state that all vertices are labeled in descending clockwise order $100, 99, \\ldots, 1$. Which in this case there are $0$ clockwise triangles. Thus, the number of clockwise triangles is always an even number. In particular, it cannot be equal to $2017$, thus the answer of the problem is no. ■", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32743, "subject": "Mathematics (Multi-modal)", "question": "Mojtaba and Hooman are playing a game. Initially Mojtaba draws $2018$ vectors with zero sum. Then starting with Mojtaba, each player takes a vector and puts it on the plane. After the first move, the players must put the starting point of their vector on the end of the vector that the previous person drew, until a closed polygon is established. If this polygon is not self-intersecting, Mojtaba is the winner and otherwise Hooman is the winner. Who has a winning strategy?", "options": [], "answer": "Mojtaba has a winning strategy.", "solution": "Mojtaba has a winning strategy.\nLet him consider a large vector $\\vec{V}$ to the left direction and $2017$ small vectors facing towards right. Let these vectors be $\\vec{V} = (-V, 0)$, $\\vec{v}_1 = (x_1, y_1)$, $\\vec{v}_2 = (x_2, y_2)$, $\\dots$, $\\vec{v}_{2017} = (x_{2017}, y_{2017})$. So that we have\n$$\nx_1 + \\dots + x_{2017} = V, \\quad \\forall\\ 1 \\le i \\le 2017 : x_i > 0\n$$\nand\n$$\ny_1 + \\dots + y_{2017} = 0.\n$$\nOn his first move, Mojtaba chooses the large vector $\\vec{V}$ and places it on the plane.\n![](attached_image_1.png)\nNow both players must select a vector from the remaining vectors, which all are from left to right. Therefore none of these small vectors intersect each other, and the only possible way to have a pair of vectors intersecting each other is to have a small vector $\\vec{u}_i$ that cuts $\\vec{V}$ at some point other than the two ending points of $\\vec{V}$. Assume that $\\vec{u}_i = (x_i^*, y_i^*)$ is the first vector to intersect with $\\vec{V}$ ($\\vec{u}_1 = (x_1^*, y_1^*)$, ..., $\\vec{u}_{2017} = (x_{2017}^*, y_{2017}^*)$) is a permutation of the vectors, sorted by the time they're chosen). There's two cases, we either have $y_j^* > 0, \\forall j < i$ and $y_1^* + y_2^* + \\cdots + y_i^* < 0$, or $y_j^* < 0, \\forall j < i$ and $y_1^* + y_2^* + \\cdots + y_i^* > 0$. So we can translate the problem as following.\nThere are $2017$ real numbers $y_1, \\dots, y_{2017}$ with $y_1 + \\dots + y_{2017} = 0$. Each player, starting from Hooman chooses a number $y_k$ and writes it on the plane. Assume that numbers are arranged by $y_1^*, y_2^*, \\dots, y_{2017}^*$, in order of the time they're chosen. Without loss of generality assume that $y_1^* \\ge 0$ (we will define $y_i$'s so that there's no loss of generality, see the following). Mojtaba wins if for all $i \\le 2017$ we have\n$$\nS_i = y_1^* + \\cdots + y_i^* \\ge 0.\n$$\nAlso add this assumption that Mojtaba drew the initial $2018$ vectors such that $\\forall 1 \\le 2i + 1, 2j \\le 2017 : y_{2i+1} = -y_{2j} = 1$ except for $2i + 1 = 1397$ where $|y_{1397}| = 0$. Now the winning strategy is quite simple. In each move, Mojtaba only needs to choose a positive (or if $y_1^* < 0$, a negative) $y_i^*$, if such $y_i^*$ exists. Otherwise, he chooses an arbitrary remaining number. Now we have\n$$\nS_2 = y_1^* + y_2^* \\geq 1\n$$\nWe also always have $S_i \\ge 0$ unless all non-negative $y_i^*$'s are chosen, and Mojtaba is forced to choose from the remaining negative numbers. Now if there's an index $i \\le 2017$ such that $S_i < 0$, since $S_{2017} = 0$, there must be an index $j > i$ such that $y_j^* > 0$. But this is impossible, because $S_i < 0$ means Mojtaba is out of positive numbers to choose from, so $y_j^*$ cannot exist which is a contradiction. Thus, there's no such $i$ and the claim that Mojtaba has a winning strategy is proved. ■", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32744, "subject": "Mathematics (Multi-modal)", "question": "Let $a_1, a_2, a_3, \\dots$ be an infinite sequence of distinct integers. Prove that there are infinitely many prime numbers like $p$ that distinct positive integers $i, j, k$ can be found such that $p \\mid a_i a_j a_k - 1$.", "options": [], "answer": "Detailed solution", "solution": "For the sake of contradiction, let $p_1, p_2, \\dots, p_n$ be all the prime divisors of numbers in form of $a_i a_j a_k - 1$. Moreover, let $p$ be the smallest of these primes, and $M = \\max(a_1, \\dots, a_{n+1})$ (mind that $n$ is fixed.). Let $k$ be a positive integer number satisfying $p^k > M$. There are infinitely many $a_i$'s, therefore one satisfies the following properties:\n1. $i > n + 2$\n2. $a_i > (p_1 p_2 \\dots p_n)^k + 1$\nIt's easy to see for every $j$, $1 \\le l \\le n$ exists such that $p_l^{k+1} \\mid a_i a_j a_{n+2} - 1$.\nTherefore, due to the pigeonhole principle, there exists a pair $1 \\le m < t \\le n+1$ such that for one $l$, $p_l^{k+1} \\mid (a_i a_m a_{n+2} - 1, a_i a_k a_{n+2} - 1)$.\n$$\n\\implies p_l^{k+1} \\mid a_i a_m a_{n+2} - 1 - (a_i a_k a_{n+2} - 1) = a_i a_{n+2} (a_m - a_k)\n$$\n$$\n\\implies p_l^{k+1} \\mid (a_m - a_k)\n$$\n$$\n\\implies M > |a_m - a_k| \\geq p_l^{k+1} > p^k > M\n$$\nwhich is clearly a contradiction. Hence, the claim of the problem. ■", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32745, "subject": "Mathematics (Multi-modal)", "question": "Consider a triangle $ABC$ with incircle $\\omega$ that is respectively tangent to sides $BC$, $CA$ and $AB$ at $D$, $E$ and $F$. Points $P$, $Q$ are inside of $\\angle A$ so that $FP = FB$, $FP \\parallel AC$ and $EQ = EC$, $EQ \\parallel AB$. Prove that $P$, $Q$ and $D$ are collinear.", "options": [], "answer": "Detailed solution", "solution": "It's obvious that\n$$\n\\left. \\begin{array}{l} FP \\parallel CE \\\\ FB \\parallel EQ \\\\ \\frac{FP}{FB} = \\frac{EC}{EQ} \\end{array} \\right\\} \\implies \\triangle PFB \\sim \\triangle CEQ.\n$$\n---\nSo $BP \\parallel CQ$, also\n$$\n\\left. \n\\begin{array}{l}\n\\frac{BP}{CQ} = \\frac{BF}{EQ} = \\frac{BF}{EC} = \\frac{BD}{CD} \\\\\n\\angle PBD = \\angle QCD\n\\end{array}\n\\right\\} \\Rightarrow \\triangle PBD \\sim \\triangle QCD \\Rightarrow \\angle PDB = \\angle QDC.\n$$\nHence $P$, $D$ and $Q$ are collinear.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32746, "subject": "Mathematics (Multi-modal)", "question": "In isosceles trapezoid $ABCD$ where $BC = AD$ and $AB \\parallel CD$, point $P$ is the intersection of diagonals $AC$ and $BD$. Let $X$ be the second intersection point of $BC$ and circumcircle of triangle $APB$ and let $Y$ be a point on $AX$ such that $DY \\parallel BC$ ($C$ and $Y$ are on different sides of line $AD$). Prove that $\\angle YDA = 2 \\times \\angle YCA$.", "options": [], "answer": "Detailed solution", "solution": "Since $YD \\parallel BC$, it's concluded that $\\angle YDP = \\angle CBP = \\angle XAP$. So $YAPD$ and $ABCD$ are cyclic quadrilaterals. Therefore\n$$\n\\angle DYP = \\angle DAP = \\angle DAC = \\angle DBC = \\angle PDY.\n$$\nThus $PY = PD$. On the other hand it's clear that $PD = PC$. From these two it's obtained that $PY = PC$ and finally,\n$$\n2\\angle YCA = 2\\angle YCP = \\angle APY = \\angle YDA,\n$$\nhence the claim of the problem.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32747, "subject": "Mathematics (Multi-modal)", "question": "$$\n8abc \\le \\left(\\sqrt{bc} + \\frac{1}{2a + \\sqrt{bc}}\\right) + \\left(\\sqrt{ca} + \\frac{1}{2b + \\sqrt{ca}}\\right) + \\left(\\sqrt{ab} + \\frac{1}{2c + \\sqrt{ab}}\\right).\n$$\nwhere $a$, $b$, $c$ are positive real numbers such that $ab + bc + ca = 1$.", "options": [], "answer": "Detailed solution", "solution": "$$\n\\frac{1}{2a + \\sqrt{bc}} = \\frac{ab + bc + ca}{2a + \\sqrt{bc}}.\n$$\nDue to LM-GM, the inequality\n$$\nab + ca = a(b + c) \\geq a \\times 2\\sqrt{bc}\n$$\nholds. Hence\n$$\n\\frac{1}{2a + \\sqrt{bc}} = \\frac{ab + bc + ca}{2a + \\sqrt{bc}} \\geq \\frac{2a\\sqrt{bc} + bc}{2a + \\sqrt{bc}} = \\sqrt{bc},\n$$\nand so\n$$\n\\sqrt{bc} + \\frac{1}{2a + \\sqrt{bc}} \\geq 2\\sqrt{bc}.\n$$\nSimilarly, it is deduced that\n$$\n\\sqrt{ca} + \\frac{1}{2b + \\sqrt{ca}} \\geq 2\\sqrt{ca},\n$$\nand\n$$\n\\sqrt{ab} + \\frac{1}{2c + \\sqrt{ab}} \\geq 2\\sqrt{ab}.\n$$\nMultiplying the latest three inequalities leads to the desired conclusion. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32748, "subject": "Mathematics (Multi-modal)", "question": "A table consisting of 5 columns and 32 rows, which are filled with zero and one numbers, called *varied*, if no two rows are filled in the same way.\nOn the exterior of a cylinder, a table with 32 rows and 16 columns is constructed. Is it possible to fill the numbers cells of the table with numbers zero and one, such that any five consecutive columns, table $32 \\times 5$ created by these columns, is a varied one?", "options": [], "answer": "Yes", "solution": "**Answer.** Yes.\n\nImagine a $32 \\times 5$ table $T$ such that the set of its rows is equal to the set of all 5-tuples $(b_0, b_1, \\ldots, b_4)$ in which $\\forall\\ 0 \\le i \\le 4 : b_i \\in \\{0,1\\}$.\n\nNow consider a $32 \\times 16$ table $R$. Let $(c_i)$ be the $i$-th column and the $j$-th column $(c_j)$ is \"consecutive\" if and only if $i - j \\equiv \\pm 1 \\pmod{16}$.\n\nShow the square located in the row $r_i$ and the column $c_j$ with the sign $(i, j)$. Also all the tables made of the first, second and third five columns of $R$ as $T_1, T_2$ and $T_3$ respectively.\n\n![](attached_image_1.png)\n\nThen we will fill the table using the following method: Put a copy of table $T$ in the squares of table $T_1$ (which means that the values of the corresponding squares in $T$ and $T_1$ are the same.) And do the same for table $T_2$ and $T_3$. Then the only empty squares of $R$ are the squares in $c_{16}$.\n\nIf we put $\\omega_{i,16} \\equiv \\sum_{j=1}^{5} \\omega_{i,j} \\pmod{2}$ (1), in which $\\omega_{i,j}$ means the value of $(i, j)$, then there will be an answer for the problem if we stick $R$ around a cylinder.\n\n*Proof.* Assuming $S$ as a set of 5 \"consecutive\" columns in $R$, there can be two conditions:\n\ni) $c_{16} \\notin S$: Then we knew that $S$ contains 5 different columns in $S$ is \"nice\".\n\nii) $c_{16} \\in S$: The other 4 columns in $S$ (except for $c_{16}$,) are copies of 4 different columns in $T$, i.e. assume that they are similar to $c_1, c_2, c_3$ and $c_4$ (2). If there exist two rows $r_i$ and $r_j$ in $S$ ($i \\neq j$) with equal values, then using (2) we will have: $\\forall\\ 1 \\le k \\le 4: \\omega_{i,k} = \\omega_{j,k} \\Rightarrow$ According to the property that $T$ is nice, $\\omega_{i,5} \\neq \\omega_{j,5} \\Rightarrow s_i \\neq s_j$, in which $s_i$ is the sum of $i$-th row in $T$. But $r_i$ and $r_j$ are similar so $\\omega_{i,16} = \\omega_{j,16} \\stackrel{(1)}{\\implies} s_i = s_j$ which is a contradiction. ■", "topic": "Geometry", "subtopic": "Solid Geometry" }, { "id": 32749, "subject": "Mathematics (Multi-modal)", "question": "Let $n$ be a positive integer. Two players are playing a game in a field of a shape of a $2n \\times 2n$ grid. Initially, the first player is on the top right point and second player is on the bottom left point. Each player, in his turn, moves to an adjacent point, by passing on an edge, such that none of the players have reached it previously. The first player wants to get back to his start position finally and make a non-self-intersecting closed polygon with maximum possible area. On the other hand, the second player wants to minimize this area. Without considering second's player moves, what would be the maximum possible area that first player can always achieve?", "options": [], "answer": "n^2", "solution": "Let $A$ be the first player and $B$ the second one. Since $A$ plays first, they can reach point $C$ sooner, making $n$ moves downwards and then $n$ moves to the left. Then they can get back to their start point, making $n$ moves upwards and $n$ moves to the right. In this case, the first player wins the upper right square with an area of $n^2$.\n\nNow we prove that the second player can play in a way that the first player won't be able to win an area of more than $n^2$.\n\nWithout loss of generality, assume that $A$ moves down in their first move. Their distance from $X$ will be $2n-1$, while $B$ is $2n$ moves away from $X$. Clearly $B$ can make their $2n$ first moves upwards and $A$ won't be able to stop them. After $B$ has reached $X$, he/she shall move right. If they can make $2n$ moves in that direction, $A$ will not be able to go back to their start point. So let's assume $B$\n\n$$\n\\begin{array}{c|c}\nn & A \\\\ \\hline C & \\end{array}\n$$\n\nhas come to a halt after moving $x$ times on the upper side of the square. Thus the area that $A$ has won, will be a subset of the hatching area and therefore, less than it. The circumference of the hatching area equals $4n$, since $A$ has reached point $K$ after $2n+x+1$ moves and $|AK| = 2n-x+1$.\n\nThus it suffices to prove that the area of a shape, which its circumference equals $4n$, would be $n^2$ at most. Assume one has started moving from $S$, making $x$ moves upwards, $x$ moves downwards, $y$ moves to the right and $y$ moves to the left (in some order) where $2x+2y=4n$, and then they has reached $S$ after all. So the final shape fits in a rectangle with $x, y$ as its length and height; which means the area of the final shape is less than $xy$\n\n$$\n\\begin{array}{c|c}\nA & \\\\ \\hline & \\\\ B & \\end{array}\n$$\n\nand we have\n\n$$\n\\begin{aligned}\n2x + 2y &= 4n \\implies x + y = 2n \\implies 2n = x + y \\geq 2\\sqrt{xy} \\\\\n\\implies xy &\\leq n^2\n\\end{aligned}\n$$\n\nThe proof is completed.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 32750, "subject": "Mathematics (Multi-modal)", "question": "Let $n$ be an integer and $0 \\le m \\le n^2 - 1$. Prove that the total number of $m$ such that\n$$\nx^n + y^n \\equiv m \\pmod{n^2}\n$$\nhas no integer solution, is at least $\\frac{n(n-1)}{2}$.", "options": [], "answer": "Detailed solution", "solution": "It is known that if $n$ divides $a - b$, then $a^n - b^n$ is divisible by $n^2$. Now, choose $z \\equiv x \\pmod{n}$ and $y \\equiv t \\pmod{n}$. Then\n$$\nx^n + y^n - (z^n + t^n) = (x^n - z^n) + (y^n - t^n) \\equiv 0 \\pmod{n^2}\n$$\nThus, for $z, t$ belonging to $\\{0, 1, \\dots, n-1\\}$, we must calculate maximal number of different values of $z^n + t^n \\pmod{n^2}$. Then, there are $x, y$ such that $x^n + y^n \\equiv z^n + t^n \\pmod{n^2}$. These numbers are at most $\\frac{n(n+1)}{2}$. Therefore, there are at least $n^2 - \\frac{n(n+1)}{2} = \\frac{n(n-1)}{2}$ different values for $m$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32751, "subject": "Mathematics (Multi-modal)", "question": "Let $1 < t < 2$ be a real number. Prove that for all sufficiently large positive integers like $d$, there is a monic polynomial $P(x)$ of degree $d$, such that all of its coefficients are either $+1$ or $-1$ and\n$$\n|P(t) - 2019| < 1.\n$$", "options": [], "answer": "Detailed solution", "solution": "At first we shall prove following lemma:\n**Lemma.** Let $b_n$ be a sequence of positive real numbers satisfying\n$$\nb_n \\leq 2b_0 + b_1 + \\cdots + b_{n-1},\n$$\nthen for each real number $z$ where\n$$\n|z| \\leq 2b_0 + b_1 + \\cdots + b_n,\n$$\nthere are $a_0, a_1, \\dots, a_n \\in \\{1, -1\\}$ such that\n$$\n\\left|z - \\sum_{i=0}^{n} a_i b_i\\right| < b_0.\n$$\n*Proof.* Write the inequality $|z| \\leq 2b_0 + b_1 + \\cdots + b_n$ in the form\n$$\n|z - \\operatorname{sgn}(z)b_n| \\leq 2b_0 + b_1 + \\cdots + b_{n-1},\n$$\nthen, proceed the proof by induction on $n$. For sake of convenience, we also define $\\operatorname{sgn}(0) = 1$. This completes our proof. $\\square$\n\nBack to the problem, define $b_i = t^i$, then it is easy to deduce that\n$$\nb_n - b_0 = t^n - 1 \\le 1 + t + \\cdots + t^{n-1} = \\frac{t^n - 1}{t-1} = b_0 + b_1 + \\cdots + b_{n-1}.\n$$\nMoreover, choose $d$ such that $t^d \\ge 2019$, then\n$$\n2019 \\le t^d \\le 2 + t + \\cdots + t^d.\n$$\nHence, by the lemma, there are $a_0, a_1, \\dots, a_d \\in \\{1, -1\\}$ such that\n$$\n\\left| \\sum_{i=0}^{d} a_i t^i - 2019 \\right| < 1.\n$$\nWe are done.", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 32752, "subject": "Mathematics (Multi-modal)", "question": "Let $\\mathcal{P}$ be a simple polygon (non-self-intersecting) with perimeter $36$ that lies in a circle with radius $1$ and does not pass through the center of it. Prove that there is either a radius of this circle that intersects $\\mathcal{P}$ at least $6$ times, or there is a second circle which is concentric with this circle that has at least $6$ common points with $\\mathcal{P}$.", "options": [], "answer": "Detailed solution", "solution": "Fix a radius of circle $C$, $OX$ and for each segment $AB$ from the perimeter of $P$ (don't include polygon vertices in this process), consider the projection of $AB$ to $OX$ ($A'B'$) and the projection of $AB$ to the perimeter of $C$ ($A''B''$).\n\n![](attached_image_1.png)\n\nCall $A'B'$ the radius projection of $AB$ and $A''B''$ the perimeter projection of $AB$. It's obvious that\n$$\nAB < A'B' + A''B''.\n$$\nNow let $\\alpha$ be the sum of all radius projections of all edges of $P$ and $\\beta$ be the sum of all perimeter projections of all edges of $P$.\nFrom the above, $\\alpha + \\beta > 36 > 4 + 10\\pi$, hence $\\alpha > 4$ or $\\beta > 10\\pi$:\n\n* If $\\alpha > 4$, there is a point on $OX$ that is covered by $5$ radius projections. Call this point $Y$, then the circle with center $O$ and radius $OY$ will intersect $\\mathcal{P}$ at least $6$ times. (Because if a circle intersects a polygon and doesn't pass through its vertices, it will have an even number of intersections.)\n\n* If $\\beta > 5 \\times 2\\pi$, then there is a point on the perimeter that is covered by at least $6$ perimeter projections. Call this point $Z$, then radius $OZ$ intersects $\\mathcal{P}$ at least $6$ times.\n\nWe are done.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32753, "subject": "Mathematics (Multi-modal)", "question": "$$\nS_n = \\{x^2 + n y^2 : x, y \\in \\mathbb{Z}\\}.\n$$\nFind all positive integers $n$ such that there exists an element of $S_n$ which doesn't belong to any of the sets $S_1, S_2, \\dots, S_{n-1}$.", "options": [], "answer": "All square-free positive integers.", "solution": "**Answer.** Any square-free number.\n\nSince $S_j$ doesn't exist for $j \\le 1$, the statement is held for $i = 1$. On the other hand if for an integer $n > 1$ there exists a prime number $p$, which $p^2 \\mid n$, $n$ is not a valid number; Because for all integer numbers $x, y$\n$$\nx^2 + n y^2 = x^2 + \\left(\\frac{n}{p^2}\\right) (y p)^2.\n$$\nwhich means that\n$$\nS_n \\subseteq S_{\\frac{n}{p^2}}.\n$$\nNow we prove that any square-free number has the property.\n\n**Lemma.** If $n$ is a square-free positive integer then there are distinct odd prime numbers $p_k$ for $1 \\le k \\le n-1$ where $-n$ is a quadratic residue modulo $p_k$ but $-k$ is not. i.e. in Legendre symbol\n$$\n\\left(\\frac{-n}{p_k}\\right) = 1, \\left(\\frac{-k}{p_k}\\right) = -1. \\qquad (1)\n$$\n*Proof.* Assume that $n = q_1 \\dots q_m$, where $q_i$'s are prime numbers. The claim is that at least one of the $q_i$'s does not divide $k$; otherwise if for $1 \\le i \\le m$ $q_i$ divides $k$ then\n$$\nn \\mid k \\longrightarrow n \\le k;\n$$\nWhich is a contradiction.\nWithout loss of generality assume that $q_m$ is one of the numbers that does not divide $k$. So $k = q_1 \\dots q_r \\ell_1 \\dots \\ell_t D^2$ where $0 \\le r < m$.\nIf $q_1 \\dots q_m \\ell_1 \\dots \\ell_t$ is an odd number then the numbers $4, q_1, \\dots, q_m, \\ell_1, \\dots, \\ell_t$ are pairwise coprime so by applying the Chinese remainder theorem there exists an integer $x$ where\n$$\n\\begin{cases} x \\equiv 3 \\pmod{4} \\\\ x \\equiv -1 \\pmod{q_i} & 1 \\le i \\le m-1 \\\\ x \\equiv u \\pmod{q_m} \\\\ x \\equiv -1 \\pmod{\\ell_i} & 1 \\le i \\le t. \\end{cases}\n$$\nWhere $u$ is an integer number which $-u$ is a non-quadratic residue modulo $q_m$. Notice that thus $q_m$ is an odd prime number such a number exists.\nBecause $x$ and $4q_1 \\dots q_m \\ell_1 \\dots \\ell_t$ are coprime, By applying Dirichlet theorem,\nthere are infinitely many prime numbers of the form $x + 4q_1 \\dots q_m \\ell_1 \\dots \\ell_t d$.\nTake one of those like $p_k$ where $p_k > \\max(n, 3)$.\nBy applying the law of quadratic reciprocity for odd prime numbers $p_k$ and $q_j$\n$$\n\\left(\\frac{p_k}{q_j}\\right) \\left(\\frac{q_j}{p_k}\\right) = (-1)^{\\frac{(p_k-1)(q_j-1)}{4}}. \\qquad (2)\n$$\n$$\np_i \\equiv 3 \\pmod{4} \\implies \\frac{p_k - 1}{2} \\equiv 1 \\pmod{2}\n$$\nSo\n$$\n(-1)^{\\frac{(p_k-1)(q_j-1)}{2}} = (-1)^{\\frac{q_j-1}{2}}.\n$$\nIt's easy to check that\n$$\n\\left(\\frac{-1}{q_j}\\right) = (-1)^{\\frac{q_j-1}{2}}.\n$$\nAlso for $1 \\le j \\le m-1$\n$$\n\\left(\\frac{p_k}{q_j}\\right) = \\left(\\frac{-1}{q_j}\\right).\n$$\nThen according to (2)\n$$\n\\left(\\frac{p_k}{q_j}\\right) \\left(\\frac{q_j}{p_k}\\right) = \\left(\\frac{-1}{q_j}\\right) \\left(\\frac{q_j}{p_k}\\right) = (-1)^{\\frac{(p_k-1)(q_j-1)}{4}} = (-1)^{\\frac{q_j-1}{2}} = \\left(\\frac{-1}{q_j}\\right).\n$$\nSo\n$$\n\\left(\\frac{q_j}{p_k}\\right) = 1 \\quad \\forall j: 1 \\le j \\le m-1\n$$\nIn the same way\n$$\n\\left(\\frac{\\ell_s}{p_k}\\right) = 1 \\quad \\forall s: 1 \\le s \\le t.\n$$\nIn addition\n$$\n\\left(\\frac{p_k}{q_m}\\right) \\left(\\frac{q_m}{p_k}\\right) = (-1)^{\\frac{(p_k-1)(q_m-1)}{4}} = (-1)^{\\frac{q_m-1}{2}} = \\left(\\frac{-1}{q_m}\\right).\n$$\nAlso\n$$\n\\left(\\frac{p_k}{q_m}\\right) \\left(\\frac{q_m}{p_k}\\right) = \\left(\\frac{u}{q_m}\\right) \\left(\\frac{q_m}{p_k}\\right) = \\left(\\frac{-1 \\times -u}{q_m}\\right) \\left(\\frac{q_m}{p_k}\\right) = -\\left(\\frac{-1}{q_m}\\right) \\left(\\frac{q_m}{p_k}\\right)\n$$\nSo\n$$\n-\\left(\\frac{-1}{q_m}\\right) \\left(\\frac{q_m}{p_k}\\right) = \\left(\\frac{-1}{q_m}\\right) \\longrightarrow \\left(\\frac{q_m}{p_k}\\right) = -1\n$$\nSince the Legendre symbol is a completely multiplicative function of its top argument, then\n$$\n\\begin{aligned}\n\\left(\\frac{-k}{p_k}\\right) &= \\left(\\frac{-1}{p_k}\\right) \\prod_{j=1}^r \\left(\\frac{q_j}{p_k}\\right) \\prod_{s=1}^t \\left(\\frac{\\ell_s}{p_k}\\right) \\left(\\frac{D^2}{p_k}\\right) = \\left(\\frac{-1}{p_k}\\right) \\prod_{j=1}^r \\prod_{s=1}^t 1 = -1, \\\\\n\\left(\\frac{-n}{p_k}\\right) &= \\left(\\frac{-1}{p_k}\\right) \\prod_{j=1}^m \\left(\\frac{q_j}{p_k}\\right) = \\left(\\frac{-1}{p_k}\\right) \\left(\\frac{q_m}{p_k}\\right) \\prod_{j=1}^{m-1} 1 = -1 \\times -1 = 1.\n\\end{aligned}\n$$\nSo if $n$ and $\\ell_1 \\dots \\ell_t$ are odd numbers, $p_k$ has been found. If one is $\\ell_j$'s is two; Assume that $\\ell_t = 2$ and take\n$$\n\\left\\{ \n\\begin{array}{ll}\nx \\equiv 7 \\pmod{8} \\\\\nx \\equiv -1 \\pmod{q_i} & 1 \\le i \\le m-1 \\\\\nx \\equiv u \\pmod{q_m} \\\\\nx \\equiv -1 \\pmod{\\ell_i} & 1 \\le i \\le t-1.\n\\end{array}\n\\right.\n$$\nSince $q_m$ does not divide $k$ then it is an odd prime number and like before $u$ exists. Because $x$ and $8q_1 \\dots q_m \\ell_1 \\dots \\ell_{t-1}$ are coprime, By applying Dirichlet theorem, there are infinitely many prime numbers of the form $x + 8q_1 \\dots q_m \\ell_1 \\dots \\ell_{t-1}d$. Take one of those like $p_k$ where $p_k > \\max(n, 3)$. Thus\n$$\n\\left(\\frac{2}{p_k}\\right) = (-1)^{\\frac{p_k^2-1}{8}} = 1\n$$\nSo\n$$\n\\left(\\frac{\\ell_1}{p_k}\\right) = 1\n$$\nand the proof is the same as before.\nAlso if one of the $q_1, q_2, \\dots, q_{m-1}$ is two the proof is still as before.\nNow assume that $q_m = 2$.\n$$\n\\left\\{ \n\\begin{array}{ll}\nx \\equiv 3 \\pmod{8} \\\\\nx \\equiv -1 \\pmod{q_i} & 1 \\le i \\le m-1 \\\\\nx \\equiv -1 \\pmod{\\ell_i} & 1 \\le i \\le t-1.\n\\end{array}\n\\right.\n$$\nIn this case (By applying Dirichlet theorem we can take $p_k$ similarly)\n$$\n\\left(\\frac{2}{p_k}\\right) = (-1)^{\\frac{p_k^2-1}{8}} = -1.\n$$\nSo\n$$\n\\left(\\frac{q_m}{p_k}\\right) = -1.\n$$\nAnd the proof of the lemma is done.\n\nNow back to the main problem. Take $p_1, p_2, \\dots, p_{n-1}$ as lemma says.\nBecause $-n$ is a quadratic residue mod $p_i$, there exists an integer number $a$\nsuch that\n$$\na^2 \\equiv -n \\pmod{p_i} \\implies a^2 + n \\equiv 0 \\pmod{p_i}.\n$$\nAlso\n$$\n(a+p_i)^2 + n - (a^2+n) = p_i(2a+p_i).\n$$\nSince $n \\neq 0 \\pmod{p_i}$ and $p_i$ is odd then $2a$ is not divisible by $p_i$ and then $2a+p_i$ is not divisible by $p_i$. So if $a^2+n$ is divisible by $p_i^2$ then $(a+p_i)^2+n$ is not and\n$$\n(a+p_i)^2+n \\equiv 0 \\pmod{p_i}.\n$$\nSo there exists an integer number $x_i \\in \\{a, a+p\\}$ which\n$$\n\\begin{cases} (x_i)^2 + n \\equiv 0 \\pmod{p_i} \\\\ (x_i)^2 + n \\not\\equiv 0 \\pmod{p_i^2}. \\end{cases}\n$$\nThe numbers $p_1^2, p_2^2, \\dots, p_{n-1}^2$ are pairwise coprime so by applying Chinese remainder theorem there exists an integer number $x$ such that\n$$\nx \\equiv x_k \\pmod{p_k^2} \\quad \\forall j: 2 \\le j \\le l.\n$$\n**Claim 1.** The number $x^2+n$ doesn't belong to any of the subsets $S_1, S_2, \\dots, S_n$.\n*Proof.* If not, then there is an integer $1 \\le r \\le n-1$ which $x^2+n \\in S_r$. Because $1 \\le r \\le n-1$ so take $p_r$. Also there exists integer numbers $u, v$ such that\n$$\nx^2 + n = u^2 + r v^2. \\qquad (3)\n$$\nBy the definition of $p_r$\n$$\n\\begin{cases} x \\equiv x_r \\pmod{p_r}, \\\\ (x_r)^2 + n \\equiv 0 \\pmod{p_r}, \\\\ (x_r)^2 + n \\not\\equiv 0 \\pmod{p_r^2}. \\end{cases} \\qquad (4)\n$$\nAccording to equation (3)\n$$\nu^2 + r v^2 \\equiv 0 \\pmod{p_r}.\n$$\nSince $r \\neq 0 \\pmod{p_r}$, then\n$$\nu \\equiv 0 \\pmod{p_r} \\iff v \\equiv 0 \\pmod{p_r}.\n$$\nSo if one of them is divisible by $p_i$ then the another one is too and then the whole number $u^2 + r v^2$ will be divisible by $p_i^2$ which contradicts with (4). Also\n$$\nu^2 + r v^2 \\equiv 0 \\pmod{p_r} \\implies u^2 \\equiv (-r)v^2 \\pmod{p_r}.\n$$\nBy Taking $\\frac{p_r-1}{2}$ exponent of each side of the last equivalence\n$$\nu^{p_r-1} \\equiv (-r)^{\\frac{p_r-1}{2}} v^{p_r-1} \\pmod{p_r}. \\qquad (5)\n$$\nSince $u, v \\not\\equiv 0 \\pmod{p_r}$ by Fermat's little theorem\n$$\nu^{p_r-1} \\equiv v^{p_r-1} \\equiv 1 \\pmod{p_r}\n$$\nAnd from (5)\n$$\n(-r)^{\\frac{p_r-1}{2}} \\equiv 1 \\pmod{p_r}.\n$$\nLet $g$ be the primitive root of the $\\mathbb{Z}_p^*$ so there exists an integer number $m$ which\n$$\ng^m \\equiv -r \\pmod{p_r}.\n$$\nBy Taking $\\frac{p_r-1}{2}$ exponent of each side of the equivalence\n$$\ng^{\\frac{p_r-1}{2}} \\equiv (-r)^{\\frac{p_r-1}{2}} \\equiv 1 \\pmod{p_r}.\n$$\nSince the order of $g$ is $p_r - 1$ in $\\mathbb{Z}_p^*$\n$$\np_r - 1 \\mid m \\frac{p_r - 1}{2} \\implies 2 \\mid m.\n$$\nSo $m$ is an even number and then $-r$ is a quadratic residue which is a contradiction. This contradiction shows that our first assumption that $x^2 + n$ belongs to $S_r$ is wrong so $n$ has the property that is mentioned in the question. So all of the numbers with the property have been found. $\\square$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32754, "subject": "Mathematics (Multi-modal)", "question": "Find all polynomials $P(x, y)$ with real coefficients such that\n$$\nP(x, 2yz) + P(y, 2xz) + P(z, 2xy) = P(x + y + z, xy + xz + yz).\n$$", "options": [], "answer": "P(x, y) = A x^2 + B x + 2 A y for real constants A, B", "solution": "Every polynomial in the form of $P(x, y) = Ax^2 + 2Ay + Bx$ for some $A, B \\in \\mathbb{R}$.\n\nLet $Q(a, b) = P(a, b^2)$ and define $Q_i(x, y)$ to be the homogeneous polynomial which consists of $i$-th degree coefficients of $Q(x, y)$. It is directly implied that\n$$\nQ_i(a, \\sqrt{2bc}) + Q_i(b, \\sqrt{2ac}) + Q_i(c, \\sqrt{2ab}) = Q_i(a + b + c, \\sqrt{ab + bc + ac})\n$$\n---\nLet $A_i(a, b, c)$ denote the above equality. Plugging $c = 0$ in this equality results in\n$$\nQ_i(a, 0) + Q_i(b, 0) + Q_i(0, \\sqrt{2ab}) = Q_i(a + b, \\sqrt{ab}).\n$$\nDefine $x = a + b, y = \\sqrt{ab}$. First of all, mind that\n$$\nQ_i(a, 0) = a^i Q_i(1, 0)\n$$\nand\n$$\nQ_i(0, a) = a^i Q_i(0, 1).\n$$\nSecondly, the above equality concludes that\n$$\nQ_i(x, y) = (\\sqrt{2y^2})^n Q_i(0, 1) + \\left[ \\left( \\frac{x - \\sqrt{x^2 - 4y^2}}{2} \\right)^i + \\left( \\frac{x + \\sqrt{x^2 - 4y^2}}{2} \\right)^i \\right] Q_i(1, 0)\n$$\nNext, we state that if $i \\ge 3$, $Q_i = 0$. This means $P(x, y^2)$ is of degree at most 2 which then will result in $P(x, y) = Ax^2 + Bx + Cy + D$ and one can simply see that $D = 0, C = 2A$ and every polynomial of form\n$$\nP(x, y) = Ax^2 + Bx + 2Ay\n$$\nsatisfies the problem.\nFor the sake of contradiction, assume that $i \\ge 3$. Note that $P(x, y^2) = Q(x, y)$, therefore every coefficient of $Q(x, y)$, and by extension, $Q_i(x, y)$, has $y$ to an even power.\n$$\nQ_i(x, y) = x^i m_0 + x^{n-2}y^2 m_2 + m_4 x^{n-4} y^4 + \\dots\n$$\nBy plugging this in $A_i(a, b, c)$ and evaluating the coefficient of $a^{n-1}b$, one can see the coefficient on left hand side to be zero, and on the right hand side\n$$\n\\begin{align*}\nm_0(x + y + z)^i + m_2(xy + yz + xz)(x + y + z)^{i-2} + \\dots \\\\\nimplies [x^{i-1}y] = \\binom{i}{1}m_0 + \\binom{i-2}{0}m_2 = 0 \\implies m_2 = -im_0\n\\end{align*}\n$$\nFurthermore, by evaluating the coefficient of $x^{i-2}yz$ we get\n$$\n\\begin{align*}\n[x^{i-2}yz] &= \\binom{i-1}{1}m_0 + \\left[1 + \\binom{i-2}{1} + \\binom{i-2}{1}\\right]m_2 + \\binom{2}{1}m_4 = 2m_2 \\\\\nimplies 2m_4 &= im_0(2i-5) - i \\times (i-1)m_0 \\implies m_4 = \\frac{i(i-4)}{2}m_0\n\\end{align*}\n$$\n---\nMoreover, let\n$$\nT(x, y) = \\left( \\frac{x - \\sqrt{x^2 - 4y}}{2} \\right)^i + \\left( \\frac{x + \\sqrt{x^2 - 4y}}{2} \\right)^i.\n$$\nEvaluate the coefficient of $x^i, x^{i-4}y^2$ in $T$.\n$$\n\\begin{aligned}\n[x^i] &= T(1, 0) = 1, Q_i(x, y) \\\\\n&= 2^{\\frac{i}{2}} y^i Q_i(0, 1) + T(x, y^2) Q_i(1, 0) \\\\\nimplies m_0 &= Q_i(1, 0)\n\\end{aligned}\n$$\nAnd (Evaluating coefficient in $Q_i$)\n$$\n\\begin{aligned}\n[x^{i-2}y^2] &= \\frac{1}{2} T_{yy}(1, 0) = \\frac{i(i-3)}{2} \\\\\nimplies m_4 &= \\frac{i(i-3)}{2} Q_i(1, 0) \\\\\nimplies a &= Q_i(1, 0) = \\frac{2m_4}{i(i-3)} = \\frac{i(i-4)a}{i(i-3)}\n\\end{aligned}\n$$\nSo either $i=3$, $i=4$ or $a=b=c=0$, otherwise we have a contradiction. In case of the latter two,\n$$\n\\begin{aligned}\nQ_i(1, 0) &= 0 \\\\\nimplies Q_i(x, y) &= 2^{\\frac{i}{2}} y^i Q_i(0, 1) + 0 \\\\\nimplies Q_i(0, 1) &= 2^{\\frac{i}{2}} 1^i Q_i(0, 1) \\\\\nimplies Q_i(0, 1)(2^{\\frac{i}{2}} - 1) &= 0 \\\\\nimplies Q_i(0, 1) &= 0 \\quad \\implies Q_i(x, y) = 0\n\\end{aligned}\n$$\nTherefore, the only remaining case is $i=3$, which is easily disproven. This concludes our proof. $\\square$", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 32755, "subject": "Mathematics (Multi-modal)", "question": "Ten distinct positive integers are given. Hessam calculates all the gcd's and the lcm's of these numbers and gives them to Masoud. Is it possible for Masoud to use these 90 received numbers and figure out the original 10 numbers?", "options": [], "answer": "No", "solution": "No.\n\nLet $p$ and $q$ be two distinct prime numbers. We define two sets as follows,\n$$\n\\begin{aligned}\nA &= \\{a_1, a_2, c_3, c_4, \\dots, c_{10}\\}, \\quad B = \\{b_1, b_2, c_3, c_4, \\dots, c_{10}\\} \\\\\na_1 &= pq^{11}, \\quad a_2 = p^2q^{12}, \\quad b_1 = p^2q^{11}, \\quad b_2 = pq^{12}, \\quad c_i = p^i q^i\n\\end{aligned}\n$$\nNow we create a one-to-one correspondence between numbers of superset of set $A$ and numbers of superset of set $B$\n$$\n\\begin{align*}\n\\gcd(c_i, c_j) &= \\gcd(c_i, c_j), & \\lcm(c_i, c_j) &= \\lcm(c_i, c_j) \\\\\n\\gcd(a_1, a_2) &= pq^{11} = \\gcd(b_1, b_2), & \\lcm(a_1, a_2) &= p^2 q^{12} = \\lcm(b_1, b_2) \\\\\n\\gcd(a_1, c_i) &= pq^i = \\gcd(b_1, c_i), & \\lcm(a_1, c_i) &= p^i q^{11} = \\lcm(b_2, c_i) \\\\\n\\gcd(a_2, c_i) &= p^2 q^i = \\gcd(b_2, c_i), & \\lcm(a_2, c_i) &= p^i q^{12} = \\lcm(b_1, c_i)\n\\end{align*}\n$$\nConsequently, if these 90 numbers are written on the board, it is not possible to recognize the initial numbers for Masoud.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32756, "subject": "Mathematics (Multi-modal)", "question": "Let $M$, $N$ and $P$ be the midpoints of the sides $BC$, $AC$ and $AB$ in triangle $ABC$, respectively. Suppose that the point $K$ lies on the segment $NP$ such that $AK$ is the angle bisector of $\\angle BKC$. The lines $BK$ and $MN$ meet at a point $E$ and the lines $CK$ and $MP$ meet at a point $F$. Let $H$ be the foot of the altitude from $A$ to $BC$ and the circumcircle of the triangle $AKH$ intersects the circumcircle of the triangle $EFH$ for the second time at $L$. Prove that lines $EF$, $MK$ and $HL$ are concurrent.", "options": [], "answer": "Detailed solution", "solution": "By Pappus's hexagon theorem, $F$, $A$ and $E$ are collinear. Therefore\n$$\n\\frac{EA}{AF} = \\frac{EN}{NM} = \\frac{EK}{BK} \\Rightarrow AK \\parallel BF \\Rightarrow \\angle BFK = \\angle AKF = \\angle AKE = \\angle FBK\n$$\nThus $KF = KB$ and similarly $KE = KC$, so $\\angle EKF \\sim \\angle CKB$. Hence\n$\\angle FEK = \\angle FCB = \\angle FKP$, so $PN$ is tangent to the circumcircle of triangle $EKF$. The lines $NP$ and $EF$ meet at $T$, and $TQ$ is the second tangent from $T$ to the circumcircle of triangle $EKF$.\n\n![](attached_image_1.png)\n\nIn triangle $EKF$, $A$ is the foot of the angle bisector $\\angle BAC$ to $BC$, so $TA = TK$. Also $H$ is the reflection of $A$ with respect to $NP$, hence $TH = TA = TK = TQ$, so $QAKH$ is a cyclic quadrilateral. In triangle $EKF$, $MK$ is the symmedian, hence passes through $Q$. The lines $MK$ and $EF$ meet at $J$. Thus $JE \\cdot JF = JQ \\cdot JK$, so $J$ lies on the radical axis of the circumcircle of triangles $AKH$ and $EFH$, hence the result follows.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32757, "subject": "Mathematics (Multi-modal)", "question": "The Euler circle of the acute-angled triangle $ABC$ is reflected with respect to the altitude from $A$ to $BC$ and intersected the circumcircle of the triangle $ABC$ at distinct points $X$ and $Y$ ($X \\neq Y$). Let $H$ be the orthocenter of triangle $ABC$. Prove that $AH$ is the external angle bisector of $\\angle XHY$.", "options": [], "answer": "Detailed solution", "solution": "Let $X'$ be the reflection of $X$ with respect to $AH$ and $X''$ be the reflection of $H$ with respect to $X'$. Notice that $X'$ lies on the nine point circle (Euler circle) and $X''$ lies on the circumcircle.\n![](attached_image_1.png)\nLines $X''H$ and $XH$ intersect the circumcircle of triangle $ABC$ for the second time at $Y'$ and $D$. Let $M$ be the midpoint of $HD$, so\n$$\nXH \\cdot HD = X''H \\cdot HY' \\implies HY' = \\frac{1}{2}HD = HM\n$$\nSince the point $M$ lies on the nine point circle, and $\\angle XHA = \\angle X''HA$, $Y'$ is the reflection of $M$ with respect to $AH$, so $Y' \\equiv Y$ and the result follows.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32758, "subject": "Mathematics (Multi-modal)", "question": "A subgraph of a $K_n$ is chosen such that the number of its edges is a multiple of $3$ and the degree of each vertex is an even number. Prove that we can assign an integer weight to each triangle of the $K_n$ such that for each edge of the chosen subgraph, the sum of the weight of the triangles that contain that edge equals $1$, and for each edge that is not in the subgraph, this sum is $0$.", "options": [], "answer": "Detailed solution", "solution": "The following lemma is needed to approach the solution:\n**Lemma.** If some integer weight is assigned to any edge of a complete graph with more than $4$ vertices, such that for each vertex, the sum of the weight of the edges connected to this vertex is an even number, and the sum of the weight of all edges is a multiple of $3$, then it is possible to assign some weights to each triangle of the graph such that the sum of the weight of all triangles containing an edge equals the weight of that edge.\n\n*Proof.* This lemma is proved using induction.\nThe base of induction is when the graph has $5$ vertices. $10$ equations with integer coefficients, for $10$ variables can be obtained when considering each edge and triangles containing it. Firstly, these equations have a solution in real numbers. To show this, it suffices to show that the characteristic function for the weight of each edge is linear in its range. Let $w_e$ be the weight of edge $e$ and $W_T$ be the weight of triangle $T$. It suffices to prove the claim when\n$$\nw_e = \\begin{cases} 1 & e = e_0 \\\\ 0 & e \\neq e_0 \\end{cases}\n$$\nLet $|T \\cap e|$ be the number of mutual vertices between triangle $T$ and edge $e$. Therefore, it is concluded that\n$$\nW_T = \\begin{cases} \\frac{1}{3} & |T \\cap e_0| = 2 \\\\ -\\frac{1}{6} & |T \\cap e_0| = 1 \\\\ \\frac{1}{3} & |T \\cap e_0| = 0 \\end{cases}\n$$\nSo, the equation system has a solution in real numbers. Now consider the numbers $w_e$ with the desired property. The value of each $W_T$ is calculated as a linear combination of $w_e$'s as\n$$\nW_T = \\frac{1}{3} \\sum_{e: |T \\cap e| \\neq 1} w_e - \\frac{1}{6} \\sum_{e: |T \\cap e| = 1} w_e = \\frac{1}{3} \\sum_e w_e - \\frac{1}{2} \\sum_{e: |T \\cap e| = 1} w_e,\n$$\nwhich is an integer number; That is because $\\frac{1}{3} \\sum_e w_e$ is an integer number and also $\\sum_{e: |T \\cap e| = 1} w_e$ is an even number. Hence the claim for $5$ vertices is proved.\n\nAssume the claim for a complete graph with $k$ vertices. Now consider a complete graph with $k+1$ vertices. Label the vertices of this graph by $v, u_1, u_2, \\dots, u_n$, and let $w_i$ be the number assigned to edge $vu_i$, and let $x_{\\{i,j\\}}$ be the number that is going to be assigned to the triangle $vu_iu_j$. In this case\n$$\n\\sum_{t \\neq j} x_{\\{t,j\\}} = w_t.\n$$\nNow given that $w_i$'s are integers with even sum, we prove that the latest equation leads to an integer solution. This is also proved using induction; It's needed to prove this claim for $k \\ge 3$. However, the claim is true for $k \\ge 3$; For $k=3$, the desired values are\n$$\nx_{\\{1,2\\}} = \\frac{w_1 + w_2 - w_3}{2}, \\quad x_{\\{2,3\\}} = \\frac{w_2 + w_3 - w_1}{2}, \\quad x_{\\{3,1\\}} = \\frac{w_3 + w_1 - w_2}{2},\n$$\nand since $w_1 + w_2 + w_3$ is an even number, the $x_{\\{i,j\\}}$'s are integers. Now assuming that for $k$, $x_{\\{i,j\\}}$, $i, j \\le k$'s are integers, for $k+1$ it is deduced that\n$$\nx_{\\{k,k+1\\}} = w_{k+1}, \\quad \\forall 1 \\le i \\le k : x_{\\{i,k+1\\}} = 0,\n$$\n$$\n\\text{Let } c_j := \\sum_{\\substack{j=1 \\\\ j \\neq i}}^{k} x_{\\{i,j\\}}, \\quad \\forall 1 \\le i \\le k \\implies 1 \\le i < k : w_i = c_i, \\quad c_k = w_k - w_{k+1} \\implies \\sum_{i=1}^{k} c_i = \\sum_{i=1}^{k} w_i - 2w_{k+1},\n$$\nmeaning $\\sum_{i=1}^{k} c_i$ is an even number, and therefore, according to the assumption, equations\n$$\n\\sum_{\\substack{j=1 \\\\ j \\neq t}}^{k} x_{\\{t,j\\}} = c_t\n$$\nlead to integer solutions, and so\n$$\n\\sum_{\\substack{j=1 \\\\ j \\neq t}}^{k+1} x_{\\{t,j\\}} = w_t\n$$\nalso lead to integer solutions.\n\nNow assume that $y_{\\{i,j\\}}$ is the number assigned to edge $u_i u_j$. Consider a complete graph with vertices $u_1, u_2, \\dots, u_k$ and assign the weight $y_{\\{i,j\\}} - x_{\\{i,j\\}}$ to edge $u_i u_j$. Thus the sum of the weights of the edges containing a vertex $u_t$ equals to\n$$\n\\sum_{\\substack{j=1 \\\\ j \\neq t}}^{k} (y_{\\{t,j\\}} - x_{\\{t,j\\}}) = \\sum_{\\substack{j=1 \\\\ j \\neq t}}^{k} y_{\\{t,j\\}} - w_t \\stackrel{2}{=} \\sum_{\\substack{j=1 \\\\ j \\neq t}}^{k} y_{\\{t,j\\}} + w_t,\n$$\nwhich is the same number obtained when calculating the sum of the weight of edges containing $u_t$ in the first graph; Therefore the calculated number is an even number. Also, the sum of assigned weights to all the edges equals to\n$$\n\\begin{aligned}\n\\sum_{i \\neq j} (y_{\\{i,j\\}} - x_{\\{i,j\\}}) &= \\sum_{i \\neq j} y_{\\{i,j\\}} - \\sum_{i \\neq j} x_{\\{i,j\\}} \\\\\n&= \\sum_{i \\neq j} y_{\\{i,j\\}} - 2 \\sum_{i=1}^{k} w_i \\stackrel{3}{=} \\sum_{i \\neq j} y_{\\{i,j\\}} + 2 \\sum_{i=1}^{k} w_i,\n\\end{aligned}\n$$\nwhich again, is the same number when calculating the sum of all the assigned weights in the previous graph; Thus, the calculated number is a multiple of three.\n\nTherefore, according to the induction assumption, it is possible to assign some weights to the triangles of the graph such that the sum of the weights of the triangles containing an edge equals to the weight assigned to the edge itself.\n\nNow assigning the same obtained weights to the first graph, the desired property is held and therefore the lemma is proved. □\n\nBack to the problem.\nAssume that there are more than $4$ vertices in the graph defined in the statement of the problem. Assign the weight $1$ to all the edges in the subgraph, and $0$ to the others. Therefore, since the degree of each vertex in the subgraph is an even number, the sum of the weights of the edges containing it is an even number. Again, since the number of edges in the subgraph is a multiple of $3$, the total sum of the weights of the subgraph is also a multiple of $3$. Hence, according to the lemma, it is possible to assign some weights to the triangles of the graph so that the desired property is satisfied.\n\nIn case when the graph has $3$ vertices, the subgraph is either the triangle itself or does not contain any edge; Respectively, it suffices to assign weight $1$ and $0$ to the only triangle of the graph.\n\nIf the number of vertices of the graph is exactly $4$, the graph has $6$ edges. Thus, the subgraph either has $6$ edges, $3$ edges or $0$ edges. If the number of edges of the subgraph is $6$, it is concluded that the subgraph is the graph itself and therefore the degree of each vertex is $3$, a contradiction. If the number of edges is $3$, then the subgraph is a triangle along with an isolated vertex; So it suffices to assign weight $1$ to the triangle that all its edges are selected, and $0$ to the others.\n\nIn case when the graph has no edges, it suffices to assign weight $0$ to all triangles. ■", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 32759, "subject": "Mathematics (Multi-modal)", "question": "Let $x$, $y$ and $z$ be real numbers, such that $x + y + z = xy + yz + zx$. Prove that\n$$\n\\frac{x}{\\sqrt{x^4 + x^2 + 1}} + \\frac{y}{\\sqrt{y^4 + y^2 + 1}} + \\frac{z}{\\sqrt{z^4 + z^2 + 1}} \\geq \\frac{-1}{\\sqrt{3}}\n$$", "options": [], "answer": "Detailed solution", "solution": "Let's define $f(t) = \\frac{t}{\\sqrt{t^4 + t^2 + 1}}$, that is, $f(t) = -f(-t)$, $f(\\frac{1}{t}) = f(t)$, furthermore, $|f(t)| \\le \\frac{1}{\\sqrt{3}}$. Then, if we change $(x, y, z)$ with $(\\frac{1}{x}, \\frac{1}{y}, \\frac{1}{z})$, nothing has been changed. Moreover, one can find that, $z = \\frac{x + y - xy}{x + y - 1}$, so if $x, y > 0$ and $z < 0$ then\n$$\n\\frac{x}{\\sqrt{x^4 + x^2 + 1}} + \\frac{y}{\\sqrt{y^4 + y^2 + 1}} + \\frac{z}{\\sqrt{z^4 + z^2 + 1}} \\ge \\frac{-1}{\\sqrt{3}}\n$$\nMoreover, if $x, y, z > 0$, we are done. Assume now, $x \\le y \\le 0 \\le z$, Without loss of generality, we can assume $xy \\ge 1$, otherwise, replace $(x, y, z)$ with $(\\frac{1}{x}, \\frac{1}{y}, \\frac{1}{z})$. If $z = 0$, then $0 > x + y = xy > 0$, a contradiction, hence $z > 0$. Now, we can write\n$$\nz = \\frac{x + y - xy}{x + y - 1} = \\frac{|x| + |y| + xy}{|x| + |y| + 1} \\ge 1\n$$\nHence,\n$$\nz - |x| = z + x = \\frac{x^2 + y}{x + y - 1} = \\frac{|y| - x^2}{|x + y| + 1}\n$$\nThen, $1 \\le xy \\le x^2$ implies that $|x| \\ge 1$. Moreover, $x \\le y \\le 0$ ensures that $|y| \\le |x| \\le x^2$, hence, $z - |x| \\le 0$. Thus, $1 \\le z \\le |x|$. Finally, it is clear that\n$$\nf(t) = \\frac{1}{\\sqrt{t^2 + t^{-2} + 1}}\n$$\nThe function, $t^2 + t^{-2}$ is increasing for $|t| \\ge 1$, hence $f(t)$ is decreasing on $|t| \\ge 1$, therefore $f(|x|) \\le f(z)$. That is\n$$\n-f(x) = f(-x) = f(|x|) \\le f(z)\n$$\nHence $f(x) + f(z) \\ge 0$ and $f(y) \\ge -\\frac{1}{\\sqrt{3}}$, thus\n$$\nf(x) + f(y) + f(z) \\ge \\frac{-1}{\\sqrt{3}}.\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32760, "subject": "Mathematics (Multi-modal)", "question": "Morteza placed $8$ points on the plane. Then he writes down all the areas of the triangles constructed by these points (a total of $56$ numbers). Prove that he can always assign positive or negative signs to these numbers such that the sum of these numbers becomes zero.", "options": [], "answer": "Detailed solution", "solution": "First of all consider $4$ points $A$, $B$, $C$ and $D$.\n\n![](attached_image_1.png)\n![](attached_image_2.png)\n\ni) If convex hull of these points is a triangle (without loss of generality let $D$ be the inner point)\n$$\nS_{\\triangle ABC} - S_{\\triangle ABD} - S_{\\triangle ACD} - S_{\\triangle BCD} = 0\n$$\n\nii) If convex hull of these points is a quadrilateral\n$$\nS_{\\triangle ABC} - S_{\\triangle ABD} + S_{\\triangle ACD} - S_{\\triangle BCD} = 0\n$$\n\nLet $A_1$, $A_2$, $A_3$, $\\dots$, $A_8$ be $8$ problem's $8$ points. Now consider these sets of $4$ points, it is easy to see that each triangle of $56$ triangle is exactly in one of these sets, and from above it is possible to put $-$ and $+$ between areas in every set such that the result becomes zero, hence we are done.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32761, "subject": "Mathematics (Multi-modal)", "question": "Suppose that there are $n$ distinct real numbers on the board. We write all pairwise differences of these numbers and clear all the previous numbers. Prove that if $n$ is odd, it is possible to divide these $\\binom{n}{2}$ obtained numbers into two sets with equal sum.", "options": [], "answer": "Detailed solution", "solution": "Let $n$ be an odd number and $a_1 < a_2 < \\dots < a_n$ be the given real numbers. Put $a_i - a_j$ (where $i > j$) into the first set if $i$ and $j$ have the same parity and put them into the second set if they have different parity. We claim that\n\nthe coefficient of $a_i$'s in both sets are the same. Suppose $i$ is even (the second case is similar). The first set contains the elements\n$$\na_{n-1} - a_i, a_{n-3} - a_i, \\dots, a_{i+2} - a_i, a_i - a_{i-2}, a_i - a_{i-4}, \\dots, a_i - a_2,\n$$\nthat have $a_i$ appeared in them. Thus the coefficient of $a_i$ in the first set is\n$$\n\\frac{i-2}{2} - \\frac{n-i-1}{2} = \\frac{2i-n-1}{2}\n$$\nSimilarly, the second set contains the elements\n$$\na_n - a_i, a_{n-2} - a_i, \\dots, a_{i+1} - a_i, a_i - a_{i-1}, a_i - a_{i-3}, \\dots, a_i - a_1\n$$\nthat also have $a_i$ appeared in them. So the coefficient of $a_i$ in the second set is\n$$\n\\frac{i}{2} - \\frac{n-i+1}{2} = \\frac{2i-n-1}{2},\n$$\nHence $a_i$'s coefficient in all member's sum of both sets are same and we are done. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32762, "subject": "Mathematics (Multi-modal)", "question": "Let $a, a_1, ..., a_n$ be positive integers. We know that for any positive integer $k$ where $ak + 1$ is a square number, at least one of the numbers $a_1k + 1, ..., a_nk + 1$ is also a square. Prove that $a \\in \\{a_1, ..., a_n\\}$.", "options": [], "answer": "Detailed solution", "solution": "**Lemma.** If $P$ is a polynomial with integer coefficients and a square leading coefficient which for infinitely many numbers $n$, $P(n)$ is a square number, then there exists a $Q \\in \\mathbb{Z}[x]$ which\n$$\nP(x) = Q(x)^2\n$$\nAssume $P(x)$ has the following representation\n$$\nP(x) = c_n x^n + c_{n-1} x^{n-1} + \\dots + c_0\n$$\nAccording to the assumptions, there exists an integer number $c$ which\n$$\nc^2 = c_n \\implies P(x) = c^2 x^n + c_{n-1} x^{n-1} + \\dots + c_0\n$$\nSet $k = as^2 + 2s$.\n$$\nak + 1 = a(as^2 + 2s) + 1 = a^2s^2 + 2as + 1 = (as + 1)^2\n$$\nSince $ak+1$ is a square number by the assumption one of the numbers $a_i k+1$ must be a square.\nFor every integer $1 \\le i \\le n$ define polynomial $P_i(s)$ by the following equation.\n$$\nP_i(s) = a_i(as^2 + 2s) + 1 = aa_i s^2 + 2a_i s + 1 \\quad (1)\n$$\nSo $P_i(s)$ is a square for an integer $i$. Now put $s, s+1, \\dots, s+n$ in these polynomials. By applying pigeonhole principle two of these $i$'s are equal so $P_i(s+t), P_i(s+k)$ are square numbers for some $0 \\le t, k \\le n$. If $s$ goes to infinity, for each $s$ there is a triple $(i, j, k)$, which $P_i(s+t), P_i(s+k)$ are square numbers. Since there are only finite number of these triples so there are infinite numbers $s$ such that they have same triples.\nDefine polynomial $P$ such that\n$$\nP(s) = P_i(s+t)P_i(s+k).\n$$\nSince $P_i(s+t), P_i(s+k)$ are squares so $P(s)$ is a square number too. Also because $P_i(s+t), P_i(s+k)$ are polynomials of degree 2 with the same leading coefficient $aa_i$ then $P(s)$ is a polynomial of degree 4 with a square leading coefficient.\nThe lemma suggests that there exists a polynomial of degree 2 such that\n$$\nP(x) = Q(x)^2\n$$\nalso\n$$\nP(x) = P_i(x+t)P_i(x+k)\n$$\nby putting together\n$$\nP_i(x+t)P_i(x+k) = Q(x)^2.\n$$\nLet $D(x)$ be the greatest common divisor of $P_i(x+t), P_i(x+k)$ so\n$$\nP_i(x+t) = D(x)A(x)^2, \\quad P_i(x+k) = D(x)B(x)^2\n$$\nNotice that $P_i(x+t), P_i(x+k)$ are polynomials of degree 2 so either of $A, B$ are constant or of degree one. If they are constant $P_i(x+t), P_i(x+k)$ should be a multiple of each other but they have same leading coefficients then they are equal which is a contradiction because we chose different $t, k$. So $D$ should be a constant but for infinite integers $s$, $D(s)A(s)^2$ is a square number so for some $s$, which $A(s) \\ne 0$ because $a, a_i$ are positive integers and then $P_i$ can't be zero.\n$$\n\\begin{align*} D &= d^2 \\implies P_i(x+t) = (dA(x))^2, \\quad P_i(x+k) = (dB(x))^2 \\\\ \\implies (mx+p)^2 &= P_i(x) \\stackrel{(1)}{=} aa_i x^2 + 2a_i x + 1 \\end{align*}\n$$\nso $p^2 = 1$. If $p = -1$ take\n$$\n(-mx - p)^2 = (mx + p)^2\n$$\nso without loss of generality, take $p = 1$\n$$\naa_i x^2 + 2a_i x + 1 = (mx + 1)^2\n$$\nby comparing coefficients\n$$\naa_i = m^2, \\ 2a_i = 2m\n$$\nfrom the last equation $a_i = m$ so by putting this into the first equation\n$$\naa_i = a_i^2 \\underset{a_i \\neq 0}{\\stackrel{a_i \\neq 0}{\\Rightarrow}} a = a_i\n$$\nthen\n$$\na \\in \\{a_1, a_2, \\dots, a_n\\}\n$$\nand we are done.\nAs the first solution take $k = as^2 + 2s$. So for an integer $i$, $P_i(s)$ is a square number. i.e.\n$$\nP_i(s) = a_i(as^2 + 2s) + 1 = aa_i s^2 + 2a_i s + 1\n$$\nis a square.\n$$\n(a_i s + 1)^2 = a_i^2 s^2 + 2a_i s + 1\n$$\nby subtracting these two equalities\n$$\n\\begin{aligned}\nP_i(s) - (a_i s + 1)^2 &= (aa_i s^2 + 2a_i s + 1) - (a_i^2 s^2 + 2a_i s + 1) = a_i(a - a_i)s^2 \\\\\nimplies P_i(s) - (a_i s + 1)^2 &= a_i(a - a_i)s^2\n\\end{aligned} \n\\qquad (2)\n$$\nBy the assumption there is a positive integer $n_i$ which\n$$\nn_i^2 = P_i(s)\n$$\nso by putting this in (2)\n$$\na_i(a - a_i)s^2 = P_i(s) - (a_i s + 1)^2 = n_i^2 - (a_i s + 1)^2 = (n_i - a_i s - 1)(n_i + a_i s + 1)\n$$\nLet $s$ be a prime number. Assume that $a \\neq a_i$. By the equality $s^2$ divides the right hand side.\n$$\ns^2 \\mid (n_i - a_i s - 1)(n_i + a_i s + 1)\n$$\nIf $s$ divides both of the numbers in the parentheses\n$$\ns \\mid n_i - a_i s - 1, \\quad s \\mid n_i + a_i s + 1\n$$\nBy subtracting\n$$\ns \\mid 2a_i s + 2 \\implies s \\mid 2\n$$\nSo $s$ only divides one of these numbers and by assuming $a - a_i \\neq 0$\n$$\ns^2 \\leq \\max(n_i - a_i s - 1, n_i + a_i s + 1) \\underset{a_i \\geq 0}{\\stackrel{a_i \\geq 0}{\\Rightarrow}} s^2 \\leq n_i + a_i s + 1\n$$\nNotice that the right hand side is approximately a polynomial of degree one in terms of $s$ and it's a contradiction\n$$\n\\begin{aligned}\ns^2 &\\le n_i + a_i s + 1 = \\sqrt{aa_i s^2 + 2a_i s + 1} + a_i s + 1 \\\\\nimplies s^2 - a_i s - 1 &\\le \\sqrt{aa_i s^2 + 2a_i s + 1}\n\\end{aligned}\n$$\nFor large enough prime number $s$ the left hand side is a positive integer so by taking square of both sides.\n$$\n(s^2 - a_i s - 1)^2 \\le a_i s^2 - 2a_i s - 1 \\implies (s^2 - a_i s - 1)^2 - a_i s^2 - 2a_i s - 1 \\le 0\n$$\nThis inequality says that a polynomial of degree four with a positive leading coefficient is a negative number for infinite prime numbers which is a contradiction. Notice that there are only $n$ possibilities for $i$ so for infinite prime numbers there is an integer $i$ that these equalities hold. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32763, "subject": "Mathematics (Multi-modal)", "question": "Given two intersecting circles $\\omega_1, \\omega_2$. Points $A, C$ lie on $\\omega_1$ and points $B, D$ lie on $\\omega_2$ so that $AB, CD$ are common tangents of $\\omega_1, \\omega_2$. Let $M$ be the midpoint of $AB$. Tangent lines through $M$ to $\\omega_1, \\omega_2$ (other than $AB$) intersect $CD$ at $Y, X$. If $I$ be the incenter of triangle $MXY$, prove that $IC = ID$.", "options": [], "answer": "Detailed solution", "solution": "Suppose that $MX, MY$ touch $\\omega_2, \\omega_1$ at $E, F$ also let $N$ be the foot of perpendicular line through $I$ to $CD$.\n\n![](attached_image_1.png)\n\nNotice that $MF = MA = MB = ME$. $N$ is the intersection of $XY$ and incircle of triangle $MXY$ so\n$$\n\\begin{align*}\nNY &= \\frac{YX + YM - MX}{2} \\\\\n&= \\frac{YX + YF - XE}{2} \\\\\n&= \\frac{YX + YC - XD}{2} \\\\\n&= \\frac{YD + YC}{2} \\\\\n&= YD + \\frac{CD}{2}.\n\\end{align*}\n$$\nTherefore\n$$\n\\frac{CD}{2} = NY - YD = ND,\n$$\nhence $N$ is the midpoint of $CD$ so $IC = ID$ and the result follows. ■", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32764, "subject": "Mathematics (Multi-modal)", "question": "Let $\\mathbb{R}^{\\ge 0}$ be the set of non-negative real numbers. Find all functions $f : \\mathbb{R}^{\\ge 0} \\to \\mathbb{R}^{\\ge 0}$ such that for all $x, y \\in \\mathbb{R}^{\\ge 0}$,\n$$\nf(x^3 + x f(xy)) = f(xy) + x^2 f(x + y).\n$$", "options": [], "answer": "f(x) = 0 for all x ≥ 0", "solution": "Let $P$ denote the assertion that:\n$$\nf(x^3 + x f(xy)) = f(xy) + x^2 f(x + y)\n$$\nBy $P(x, \\frac{y}{x})$ we have\n$$\nA(x, y) : \\quad f(x^3 + x f(y)) = f(y) + x^2 f\\left(x + \\frac{y}{x}\\right)\n$$\nIf there exists a pair $(x, y)$ such that $f(x^3 + x f(y)) = 0$. Then\n$$\nA(x, y) \\rightarrow f(y) + x^2 f\\left(x + \\frac{y}{x}\\right) = 0 \\quad (1)\n$$\nFrom the definition of function we know that $\\forall x \\ge 0 : f(x) \\ge 0$ so (1) infers that $f(y) = 0$. Thus it suffices to prove for each $t \\ge 0$ there exists $x \\ge 0$ such that $f(x^3 + x f(t)) = 0$.\n\nConsider the polynomial $P(x) = x^3 + x f(1) - 1$. It has at least one positive real root, namely $x_0$ since $P(0) < 0$ and the leading coefficient of polynomial is positive. From $A(x_0, 1)$ we have\n$$\nf(x_0^3 + x_0 f(1)) = f(1) \\implies f\\left(x_0 + \\frac{1}{x_0}\\right) = 0\n$$\nThus there is a positive number $c$ such that $f(c) = 0$. For any non-negative number $t$ consider the polynomial $Q_t(x) = x^3 + x f(t) - c$. Again $Q_t$ has at least one positive root like $x_1$ because $Q_t(0) < 0$ and the leading coefficient is positive. Then\n$$\nf(x_1^3 + x_1 f(t)) = f(c) = 0\n$$\nAnd $x_1$ is what we supposed to find for each $t$ to conclude $f(t) = 0$. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32765, "subject": "Mathematics (Multi-modal)", "question": "In acute triangle $ABC$, $H$ is the orthocenter. Let $\\omega$ be the circumcircle of triangle $BHC$, and $O'$ be its center. $\\Gamma$ is the circle that passes through the midpoints of the edges of triangle $ABC$. Point $X$ is an arbitrary point lying on arc $BHC$ of $\\omega$. Line $AX$ intersects $\\Gamma$ for the second time at point $Y$, where $X$ lies between $A$ and $Y$. $P$ is a point on $\\Gamma$ such that $PX = PY$. Prove that $\\angle O'PX = 90^\\circ$.", "options": [], "answer": "Detailed solution", "solution": "Let $B'$ and $C'$ be the midpoints of $AB$ and $AC$ respectively. $\\Gamma$ is known to be the Euler's circle (nine-point circle) of triangle $ABC$, and passes through $H'$, the midpoint of $AH$. Thus $\\Gamma$ is the circumcircle of triangle $B'-H'-C'$. Now it's easy to see that $\\Gamma$ is obtained when $\\omega$ is scaled from center $A$ and with scale factor $2$. Because points $B$, $H$ and $C$ are homothetic points of $B'$, $H'$ and $C'$.\n\n![](attached_image_1.png)\n\nLet $Y', P'$ respectively be the second intersection points of $AX, AP$ with $\\omega$, where $P$ lies between $A$ and $P'$. Let $X'$ be the second intersection point of $XP$ with $\\omega$. It suffices to show that $P$ is the midpoint of segment $XX'$.\n\nSince $\\Gamma$ is the homothetic of $\\omega$ with scale factor $2$, we get $PY \\parallel P'Y'$ (1) and $P'Y' = 2PY$ (2).\n\n(1) implies $XX'P'Y'$ is an isosceles trapezoid with $XX' = P'Y'$ (3); Therefore\n$$\n\\stackrel{(2),(3)}{\\Longrightarrow} XX' = 2XP,\n$$\nwhich means $P$ is the midpoint of $XX'$, hence the claim of the problem. ■", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 32766, "subject": "Mathematics (Multi-modal)", "question": "Point $P$ lies inside of parallelogram $ABCD$. Perpendicular lines to $PA, PB, PC$ and $PD$ through $A, B, C$ and $D$ construct convex quadrilateral $XYZT$. Prove that the area of $XYZT$ is not less than twice the area of $ABCD$.", "options": [], "answer": "Detailed solution", "solution": "At first we shall prove following lemma:\n**Lemma.** If point $A'$ is antipode of vertex $A$ in circumcircle of triangle $ABC$, then\n$$\nS_{ABC} - S_{A'BC} = \\frac{1}{2} |BC|^2 \\cot \\angle A,\n$$\nwhere $S_{XYZ}$ denotes the area of triangle $XYZ$.\n*Proof.* Let $H$ be the orthocenter of triangle $ABC$. Notice that\n$$\nS_{ABC} - S_{A'BC} = S_{ABC} - S_{HBC} = \\frac{1}{2} BC \\cdot AH = \\frac{1}{2} |BC|^2 \\cot \\angle A.\n$$\n![](attached_image_1.png)\n![](attached_image_2.png)\n\nNow let $AB = a$, $AD = b$, $\\angle APB = \\angle P_1$, $\\angle BPC = \\angle P_2$, $\\angle CPD = \\angle P_3$ and $\\angle DPA = \\angle P_4$. From the lemma, it's easy to see that\n$$\n2S_{ABCD} - S_{XYZT} = \\frac{a^2}{2} (\\cot \\angle P_1 + \\cot \\angle P_3) + \\frac{b^2}{2} (\\cot \\angle P_2 + \\cot \\angle P_4) \\\\\n= \\frac{a^2}{2} \\left( \\frac{\\sin (\\angle P_1 + \\angle P_3)}{\\sin \\angle P_1 \\cdot \\sin \\angle P_3} \\right) + \\frac{b^2}{2} \\left( \\frac{\\sin (\\angle P_2 + \\angle P_4)}{\\sin \\angle P_2 \\cdot \\sin \\angle P_4} \\right)\n$$\nWithout loss of generality, we can assume $\\angle P_1 + \\angle P_3 > 180^\\circ$ (If $\\angle P_1 + \\angle P_3 = 180^\\circ$ we are done) so $\\sin(\\angle P_1 + \\angle P_3) < 0$. Let points $K, L, M$ and $N$ be the foot of the perpendicular lines from $P$ to $AB, BC, CD$ and $DA$, respectively. We need to prove that\n$$\n\\Leftrightarrow \\frac{a^2}{2} \\left( \\frac{\\sin (\\angle P_1 + \\angle P_3)}{\\sin \\angle P_1 \\cdot \\sin \\angle P_3} \\right) + \\frac{b^2}{2} \\left( \\frac{\\sin (\\angle P_2 + \\angle P_4)}{\\sin \\angle P_2 \\cdot \\sin \\angle P_4} \\right) < 0\n$$\n$$\n\\Leftrightarrow \\frac{a^2}{\\sin \\angle P_1 \\cdot \\sin \\angle P_3} > \\frac{b^2}{\\sin \\angle P_2 \\cdot \\sin \\angle P_4}\n$$\n$$\n\\Leftrightarrow \\frac{AP}{\\sin \\angle ABP} \\cdot \\frac{CP}{\\sin \\angle CDP} > \\frac{AP}{\\sin \\angle ADP} \\cdot \\frac{CP}{\\sin \\angle CBP}\n$$\n$$\n\\Leftrightarrow \\sin \\angle CBP \\cdot \\sin \\angle ADP > \\sin \\angle ABP \\cdot \\sin \\angle CDP\n$$\n$$\n\\Leftrightarrow BP \\cdot \\sin \\angle CBP \\cdot DP \\cdot \\sin \\angle ADP > BP \\cdot \\sin \\angle ABP \\cdot DP \\cdot \\sin \\angle CDP\n$$\n$$\n\\Leftrightarrow PL \\cdot PN > PK \\cdot PM\n$$\n$$\n\\Leftrightarrow \\angle LKN + \\angle LMN > \\angle KLM + \\angle KNM\n$$\n$$\n\\Leftrightarrow \\angle APB + \\angle CPD > \\angle APD + \\angle BPC\n$$\nThe latest assertion is true, so the proof is completed. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32767, "subject": "Mathematics (Multi-modal)", "question": "a) Complex numbers $x$ and $y$ are given on the perimeter of the unit circle such that\n$$\n\\frac{\\pi}{3} \\le \\arg(x) - \\arg(y) \\le \\frac{5\\pi}{3}.\n$$\n\nb) Complex numbers $x$ and $y$ are given such that\n$$\n\\frac{\\pi}{3} \\leq \\arg(x) - \\arg(y) \\leq \\frac{2\\pi}{3}.\n$$\nFor each $z \\in \\mathbb{C}$ show that\n$$\n|z| + |z - x| + |z - y| \\geq \\left| \\frac{\\sqrt{3}}{2}x + \\left(y - \\frac{1}{2}\\right)i \\right|.\n$$\n\n(For a complex number $z$, $\\arg(z)$ is defined to be the counterclockwise angle between the axis of the real numbers with the vector $\\vec{z}$.)", "options": [], "answer": "Detailed solution", "solution": "a) Let $O$ be the origin point of the complex plane. Consider numbers $x, y$ as points on this plane. The given inequality implies\n$$\n\\angle yOx \\leq \\frac{\\pi}{3}.\n$$\nBut since $Oxy$ is an isosceles triangle with $|Ox| = |Oy| = 1$, this means $|xy| = |x - y| \\geq 1$. Therefore for any complex number $z$ it is deduced that\n$$\n\\begin{aligned}\n& |z - x| + |z - y| \\geq |x - y| \\geq 1 \\\\\n\\implies & |z| + |z - x| + |z - y| \\geq |z| + 1 = |zx| + |y| \\geq |zx - y|\n\\end{aligned}\n$$\n\nb) The given inequality implies triangle $Oxy$ has three angles, all less than or equal to $\\frac{2\\pi}{3}$, so its first Fermat point does not lie outside of it. The expression $|z| + |z - x| + |z - y|$ is the sum of distances from point $z$ to the vertices of $\\triangle Oxy$. This sum is minimized when $z$ is the Fermat point. So it's needed to calculate the given sum for the Fermat point. Let $p$ be the clockwise rotation of $x$ with respect to the origin point and angle $\\frac{\\pi}{3}$, i.e. $p = \\text{cis}(\\frac{\\pi}{3})x = \\left|\\frac{1}{2} + \\frac{\\sqrt{3}}{2}i\\right| x$. Due to the properties of Fermat point, the desired value is the distance between $y$ and $p$, which is\n$$\n|y - p| = |yi - pi| = \\left|yi - \\left(\\frac{1}{2}i - \\frac{\\sqrt{3}}{2}\\right)x\\right| = \\left|\\frac{\\sqrt{3}}{2}x + \\left(y - \\frac{1}{2}\\right)i\\right|,\n$$\nhence the desired inequality holds.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32768, "subject": "Mathematics (Multi-modal)", "question": "a $>$ k are two positive integers and two strictly increasing sequences $r_1 < r_2 < \\dots < r_n$ and $s_1 < s_2 < \\dots < s_n$ of positive integers have the following property,\n$$\n(a^{r_1} + k)(a^{r_2} + k)\\dots(a^{r_n} + k) = (a^{s_1} + k)(a^{s_2} + k)\\dots(a^{s_n} + k).\n$$\nProve that these two sequences are equals, which means for each $1 \\le i \\le n$, $r_i = s_i$.", "options": [], "answer": "Detailed solution", "solution": "Without loss of generality, suppose $s_1 \\ge r_1 + 1$. Let $d = \\gcd(a, k)$, $a = da_1$ and $k = dk_1$. By using this equation and rewriting the problem's equality it is obtained that\n$$\n\\begin{align*}\n\\prod_{i=1}^{n} (d^{r_i} a_1^{r_i} + dk_1) &= \\prod_{i=1}^{n} (d^{s_i} a_1^{s_i} + dk_1) \\\\\n\\implies \\prod_{i=1}^{n} (d^{r_i-1} a_1^{r_i} + k_1) &= \\prod_{i=1}^{n} (d^{s_i-1} a_1^{s_i} + k_1)\n\\end{align*}\n$$\nNow consider the latest two equations modulo $d^{r_1} a_1^{r_1+1}$. Since the sequences are strongly ascending, it is deduced that\n$$\n\\begin{align*}\n& (d^{r_1-1} a_1^{r_1} + k_1) k_1^{n-1} \\equiv k_1^n \\pmod{d^{r_1} a_1^{r_1+1}} \\\\\n\\implies \\begin{aligned}\n& d^{r_1} a_1^{r_1+1} \\pmod{d^{r_1-1} a_1^{r_1} k_1^{n-1}} \\\\\n& da_1 \\pmod{k_1^{n-1}}\n\\end{aligned}\n\\end{align*}\n$$\nSo $a_1 \\mid k_1^{n-1}$, but $\\gcd(a_1, k_1) = 1$. Therefore $a_1 = 1$ that results in $a \\mid k$ and it's in contradiction with $a > k$. Therefore $s_1 = r_1$. After removing $s_1$, $r_1$ from the assumption and continuing the same thing for $r_2$, $s_2$ we take $r_2 = s_2$. So for each $i$ there is $r_i = s_i$. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32769, "subject": "Mathematics (Multi-modal)", "question": "Find the least possible value of $n$, such that one can place $1, 2, \\ldots, n$ in each cell of an $18 \\times 18$ table, such that each number is used at least once, and in each row or column, there exist neither two equal nor two consecutive numbers.", "options": [], "answer": "37", "solution": "First, we prove that $n = 36$ is not enough. Assume that numbers $1, 2, \\ldots, 36$ are assigned to the cells of the table with the described conditions. Since the number $2$ is used, so even numbers (i.e. $2, 4, 6, \\ldots, 36$) must be put in its row and its column. Similarly, the number $35$ is used, so we have to put odd numbers (i.e. $1, 3, 5, \\ldots, 35$) in its row and its column. But the intersection of the row containing $35$ and the column containing $2$ has to be odd and even at the same time. Contradiction!\n\nNow it is sufficient to make an example with numbers $1, 2, \\ldots, 37$. In this example, the even numbers are just in the first row, and the other cells are filled with appropriate numbers (just by shifting the odd numbers).\n\n| 2 | 4 | 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 | 22 | 24 | 26 | 28 | 30 | 32 | 34 | 36 |\n|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|\n| 37 | 1 | 3 | 5 | 7 | 9 | 11 | 13 | 15 | 17 | 19 | 21 | 23 | 25 | 27 | 29 | 31 | 33 |\n| 35 | 37 | 1 | 3 | 5 | 7 | 9 | 11 | 13 | 15 | 17 | 19 | 21 | 23 | 25 | 27 | 29 | 31 |\n| 33 | 35 | 37 | 1 | 3 | 5 | 7 | 9 | 11 | 13 | 15 | 17 | 19 | 21 | 23 | 25 | 27 | 29 |\n| 31 | 33 | 35 | 37 | 1 | 3 | 5 | 7 | 9 | 11 | 13 | 15 | 17 | 19 | 21 | 23 | 25 | 27 |\n| 29 | 31 | 33 | 35 | 37 | 1 | 3 | 5 | 7 | 9 | 11 | 13 | 15 | 17 | 19 | 21 | 23 | 25 |\n| 27 | 29 | 31 | 33 | 35 | 37 | 1 | 3 | 5 | 7 | 9 | 11 | 13 | 15 | 17 | 19 | 21 | 23 |\n| 25 | 27 | 29 | 31 | 33 | 35 | 37 | 1 | 3 | 5 | 7 | 9 | 11 | 13 | 15 | 17 | 19 | 21 |\n| 23 | 25 | 27 | 29 | 31 | 33 | 35 | 37 | 1 | 3 | 5 | 7 | 9 | 11 | 13 | 15 | 17 | 19 |\n| 21 | 23 | 25 | 27 | 29 | 31 | 33 | 35 | 37 | 1 | 3 | 5 | 7 | 9 | 11 | 13 | 15 | 17 |\n| 19 | 21 | 23 | 25 | 27 | 29 | 31 | 33 | 35 | 37 | 1 | 3 | 5 | 7 | 9 | 11 | 13 | 15 |\n| 17 | 19 | 21 | 23 | 25 | 27 | 29 | 31 | 33 | 35 | 37 | 1 | 3 | 5 | 7 | 9 | 11 | 13 |\n| 15 | 17 | 19 | 21 | 23 | 25 | 27 | 29 | 31 | 33 | 35 | 37 | 1 | 3 | 5 | 7 | 9 | 11 |\n| 13 | 15 | 17 | 19 | 21 | 23 | 25 | 27 | 29 | 31 | 33 | 35 | 37 | 1 | 3 | 5 | 7 | 9 |\n| 11 | 13 | 15 | 17 | 19 | 21 | 23 | 25 | 27 | 29 | 31 | 33 | 35 | 37 | 1 | 3 | 5 | 7 |\n| 9 | 11 | 13 | 15 | 17 | 19 | 21 | 23 | 25 | 27 | 29 | 31 | 33 | 35 | 37 | 1 | 3 | 5 |\n| 7 | 9 | 11 | 13 | 15 | 17 | 19 | 21 | 23 | 25 | 27 | 29 | 31 | 33 | 35 | 37 | 1 | 3 |\n| 5 | 7 | 9 | 11 | 13 | 15 | 17 | 19 | 21 | 23 | 25 | 27 | 29 | 31 | 33 | 35 | 37 | 1 |\n\nThus, the least possible value of $n$ is $37$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32770, "subject": "Mathematics (Multi-modal)", "question": "Find all functions $f : \\mathbb{R}^+ \\to \\mathbb{R}^+$ such that for each pair of positive integers $a$ and $b$,\n$$\nf(a) + 2ab + f(b)\n$$\nis a perfect square.", "options": [], "answer": "For all positive integers n, f(n) = (n + 2ℓ)^2 − 2ℓ^2 with ℓ ≥ 0; values of f on non-integer arguments are unconstrained by the condition.", "solution": "$\\boxed{f(n) = (n + 2\\ell)^2 - 2\\ell^2,\\ \\forall n \\in \\mathbb{Z}^+,\\ \\ell \\ge 0}$.\n\nWe set $F(a, b) = f(a) + f(b) + 2ab$ and we know that $\\forall a, b \\in \\mathbb{Z}^+$, $F(a, b)$ is a perfect square.\n\n$F(a, 2) = f(a) + f(2) + 4a = x^2$\n$F(a, 1) = f(a) + f(1) + 2a = y^2$\n$\\implies 2a + f(2) - f(1) = x^2 - y^2$\n\nIf $f(2) - f(1) = 2k$\n$\\implies 2(a + k) = x^2 - y^2$\n$\\implies 2 \\mid x^2 - y^2$\n$\\implies 4 \\mid x^2 - y^2$\n$\\implies 4 \\mid 2(a + k)$\n$\\implies 2 \\mid a + k$\n\nThis statement is right for any natural $a$ but we can choose $a$ such that $2 \\nmid a+k$ which is a contradiction.\n\nSo $f(2) - f(1) = 2k + 1$\n$\\implies 2a + 2k + 1 = x^2 - y^2$\n\nWe choose an odd, prime number such as $p$ and we set $a = \\frac{p-(2k+1)}{2}$\n$\\implies p = x^2 - y^2 = (x-y)(x+y)$\n$\\implies \\left\\{ \\begin{array}{l} x+y=p \\\\ x-y=1 \\end{array} \\right.$\n$\\implies x = \\frac{p+1}{2}$\n$\\implies f\\left(\\frac{p-(2k+1)}{2}\\right) + f(2) + 4\\left(\\frac{p-(2k+1)}{2}\\right) = \\left(\\frac{p+1}{2}\\right)^2$\n$\\implies f(a) + f(2) + 4a = \\left(\\frac{2a+2k+2}{2}\\right)^2 = (a+k+1)^2$\n$\\implies f(a) = a^2 + 2(k+1)a - 4a + f(2) + (k+1)^2$\n$= (a+(k-1))^2 + (k+1)^2 - (k-1)^2 + f(2)$\n\nWe set $k-1=b$ and $(k+1)^2-(k-1)^2+f(2)=c$ so for any $a = \\frac{p-(2k+1)}{2}$ we have\n$\\displaystyle f(a) = (a + b)^2 + c$\n\nSo for these kinds of $a$\n$F(a, a) = 2f(a) + 2a^2 = 2((a+b)^2 + c + a^2) = (2a+b)^2 + b^2 + 2c$\n\nSo for infinite many $a$ we have $(2a+b)^2 + b^2 + 2c$ is a perfect square but if $a$ is large enough so that $|b^2 + 2c| < 2a$ we have either\n$$(2a + b - 1)^2 < (2a + b)^2 + b^2 + 2c \\le (2a + b)^2$$\nor\n$$(2a + b)^2 \\le (2a + b)^2 + b^2 + 2c < (2a + b + 1)^2$$\nso\n$$(2a + b)^2 = (2a + b)^2 + b^2 + 2c \\implies b^2 + 2c = 0 \\implies b = 2\\ell, c = -2\\ell^2$$\n\nSo for infinite many $a$ we have\n$$f(a) = (a + 2\\ell)^2 - 2\\ell^2$$\n\nWe choose an arbitrary $b$ and $a$ such as chosen above we know\n$$f(a)+f(b)+2ab = (a+2\\ell)^2-2\\ell^2+f(b)+2ab = (a+b+2\\ell)^2-b^2+f(b)-4b\\ell-2\\ell^2$$\nis a perfect square. If we choose $a$ large enough we have\n$$(a + b + 2\\ell)^2 \\leq (a + b + 2\\ell)^2 - b^2 + f(b) - 4b\\ell - 2\\ell^2 < (a + b + 2\\ell + 1)^2$$\nor\n$$(a + b + 2\\ell - 1)^2 < (a + b + 2\\ell)^2 - b^2 + f(b) - 4b\\ell - 2\\ell^2 \\leq (a + b + 2\\ell + 1)^2$$\nso\n$$-b^2 + f(b) - 4b\\ell - 2\\ell^2 = 0 \\implies f(b) = (b + 2\\ell)^2 - 2\\ell^2$$\nso\n$$\\forall n \\in \\mathbb{Z}^{+}: f(n) = (n + 2\\ell)^2 - 2\\ell^2$$\n\nIf $\\ell < 0$ for $n = -2\\ell$ we have\n$$f(-2\\ell) \\in \\mathbb{Z}^{+} \\implies -2\\ell^2 \\in \\mathbb{Z}^{+}$$\nwhich is a contradiction. So $\\ell \\ge 0$ and we can check in the main equality that for any such $\\ell$\n$$f(a) + f(b) + 2ab = (a + b + 2\\ell)^2.$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32771, "subject": "Mathematics (Multi-modal)", "question": "Consider triangle $ABC$ with orthocenter $H$. Let points $M$ and $N$ be the midpoints of segments $BC$ and $AH$. Point $D$ lies on line $MH$ so that $AD \\parallel BC$ and point $K$ lies on line $AH$ so that $DNMK$ is cyclic. Points $E$ and $F$ lie on lines $AC$ and $AB$ such that $\\angle EHM = \\angle C$ and $\\angle FHM = \\angle B$. Prove that points $D, E, F$ and $K$ lie on a circle.", "options": [], "answer": "Detailed solution", "solution": "First we prove that $E$, $M$ and $F$ are collinear. Let $H'$ be the reflection of $H$ with respect to $M$. It is known that $AH'$ is diameter of circumcircle of triangle $ABC$, and so $\\angle H'CA = 90^\\circ$.\n\n![](attached_image_1.png)\n\nLet $E'$ be the intersection point of perpendicular line to $HH'$ through $M$ with $AC$. The goal is to show that $E' \\equiv E$.\n$\\angle H'ME' + \\angle H'CE' = 180^\\circ$, thus $H'ME'C$ is a cyclic quadrilateral and thus\n$$\n\\angle C = \\angle EH'M = \\angle E'HM \\implies E' \\equiv E\n$$\nUsing the same argument, it is proved that $\\angle HMF = 90^\\circ$. So $EF$ is the perpendicular bisector of $HH'$. Hence $E$, $M$ and $F$ are collinear. Now we show that $DAH'K$ is cyclic and points $E$ and $F$ lie on the circumcircle passing through these points. Notice that\n$$\n\\frac{HM}{HH'} = \\frac{HN}{HA} = \\frac{1}{2},\n$$\ntherefore $AH' \\parallel MN$ and $\\angle MDK = \\angle MNK = \\angle H'AK$ so $DAH'K$ is cyclic. It suffices to prove that $E$ lies on circumcircle of $DAH'$.\n$$\n\\left. \\begin{array}{l} \\angle EH'D = \\angle C \\\\ \\angle DAE = \\angle A + \\angle B \\end{array} \\right\\} \\implies \\angle EH'D + \\angle DAE = 180^\\circ \\\\ \\implies DAEH' \\text{ is cyclic.}\n$$\nHence the claim of the problem.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32772, "subject": "Mathematics (Multi-modal)", "question": "Let $P(x)$ be a non-constant polynomial with real coefficients such that $P(0) = 0$. For all positive real numbers $M$, prove that there is a positive integer $d$ such that for any monic polynomial $Q(x)$ of degree greater than or equal to $d$, total number of integers $k$ where\n$$\n|P(Q(k))| \\leq M,\n$$\nis at most $\\deg Q(x)$.", "options": [], "answer": "Detailed solution", "solution": "It is clear that the solutions of the inequality, $|P(x)| \\le M$, is a subset of an interval of the form $(-a, a)$ for some positive real number $a$. Now, assume $\\deg Q(x) = d \\ge m$. Consider, integers $x_0 < \\dots < x_d$. Then by Lagrange's interpolation formula, one can find that\n$$\nQ(x) = \\sum_{i=0}^{d} Q(x_i) \\prod_{i \\ne j} \\frac{x - x_j}{x_i - x_j}\n$$\nSince, $Q(x)$ is monic, we can find that\n$$\n1 = \\sum_{i=0}^{d} Q(x_i) \\prod_{i \\ne j} \\frac{1}{x_i - x_j}\n$$\nThe right hand side is less than or equal to\n$$\n\\max_i |Q(x_i)| \\sum_{i=0}^{d} \\frac{1}{i!(d-i)!} < \\max_i |Q(x_i)| \\cdot \\frac{2^d}{d!}\n$$\nHence,\n$$\n\\max_i |Q(x_i)| > \\frac{d!}{2^d} \\ge \\frac{m!}{2^m}\n$$\nNow, choose $m$, such that $\\left(-\\frac{m!}{2^m}, \\frac{m!}{2^m}\\right) \\subseteq (-a, a)$. We deduce that, from any $d+1$ integers, at least one of them satisfies that inequality $|Q(x)| > \\frac{m!}{2^m}$. But, all the integer solutions of the inequality $|P(Q(x))| \\le M$, must satisfy the inequality $|Q(x)| \\le \\frac{m!}{2^m}$. Hence the claim of the problem. ■", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 32773, "subject": "Mathematics (Multi-modal)", "question": "$n$ is a positive integer. Consider all $2^n$ sequences of numbers $0$ and $1$ with length $n$. At first, some of these numbers are marked. Two sequences are called *neighbors* if they have the same value in all their $n$ digits except for one. In each step, a non-marked sequence that has at least two marked neighbors is also marked. The goal is to have all the sequences to be marked at the end. Find the least number of initially marked sequences such that the goal is achievable.", "options": [], "answer": "⌊n/2⌋ + 1", "solution": "First, we make an example. Assume these vertices\n$$\n\\begin{array}{ccccccccccc}\nu & u & m & m & \\dots & m & m & m & m \\\\\nm & m & u & u & \\dots & m & m & m & m \\\\\n\\vdots & \\vdots & \\vdots & \\vdots & \\ddots & \\vdots & \\vdots & \\vdots & \\vdots & m \\\\\nm & m & m & m & \\dots & u & u & w & m \\\\\nm & m & m & m & \\dots & m & m & u & u \\\\\nm & m & m & m & \\dots & m & m & m & m\n\\end{array}\n$$\nwhere $m$'s are marked vertices and $u$'s are unmarked vertices.\n(in case of odd $n$ two vertices have an $m$ in common)\nIf we initially mark them, then after one minute all vertices with one $m$ will be marked. So after two minutes all vertices with two $m$s will be marked, and so on. So after $n$ minutes all vertices will be marked.\n\nNow we have to prove that if we initially mark $k$ vertices, and after a while all vertices get marked, then $k \\ge \\lfloor \\frac{n}{2} \\rfloor + 1$.\n\nConsider the connected components of marked vertices every minute. We claim that every marked-connected component with $i$ initially marked vertices has diameter at most $2i - 2$. We prove our claim by induction. First step is easy to prove. Now assume that after $t$ minutes, the claim is true. After $t+1$ minutes, if two (or more) marked connected components with $i, j$ initially marked vertices merge, then the diameter of the new merged marked component will be at most\n$$\n2i - 2 + 2 + 2j - 2 = 2(i + j) - 2\n$$\nSo by this claim, after a while we have one connected component having all vertices. This connected component has $k$ initially marked vertices and diameter $n$. Therefore, we have $n \\le 2k - 2$ which concludes our bound. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32774, "subject": "Mathematics (Multi-modal)", "question": "Find all functions $f : \\mathbb{R} \\to \\mathbb{R}$ that for all $x, y \\in \\mathbb{R}$,\n$$\nf(x + y)f(x^2 - xy + y^2) = x^3 + y^3.\n$$", "options": [], "answer": "f(x) = x or f(x) = -x", "solution": "Let $P(x, y)$ denote the assertion given in the statement of the problem. If there exists $a$ such that $f(a) = 0$, $P(a, 0)$ results in $a = 0$. Now\n$$\nP(x, x-y) \\rightarrow f(2x-y)f(x^2-xy+y^2) = (2x-y)(x^2-xy+y^2)\n$$\nBy dividing this equation by $P(x, y)$ (where $x + y \\neq 0$), it is obtained that\n$$\n\\frac{f(2x - y)}{f(x + y)} = \\frac{2x - y}{x + y} \\qquad (1)\n$$\nIn equation (1) put $y = 1-x$. This will result in $f(3x-1) = (3x-1)f(1)$ and because $3x-1$ is surjective over real numbers, we conclude that $f(x) = xf(1)$. By putting this equality in the original equality, it is deduced that $f(1) = \\pm 1$ so functions $f(x) = x$ and $f(x) = -x$ are the only answers. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32775, "subject": "Mathematics (Multi-modal)", "question": "Let $ABC$ be an acute-angled triangle. The altitudes $BE$, $CF$ meet at $H$. $O$ is the circumcenter of triangle $ABC$. $M$ is the midpoint of $BC$. $P$ is the point on $EF$ such that $HP \\perp HO$. $Q$ is the point on $HA$ such that $PQ \\perp HM$. Prove that $QA = 3QH$.", "options": [], "answer": "Detailed solution", "solution": "Let $(O)$ be the circumcircle of triangle $ABC$. $AK$ is the diameter of $(O)$. If $D$, $S$, $T$ are the reflection points of $H$ through $BC$, $CA$, $AB$, then $D$, $S$, $T$ are on $(O)$. It's easily seen that $HCKB$ is a parallelogram so $M$ lies on $HK$. Let $KH$ intersect $(O)$ again at $G$. Lines $HP$ intersects the lines $BC$, $DK$, $ST$, $GA$ at $R$, $X$, $Y$, $Z$ respectively.\n\n![](attached_image_1.png)\n\nNote that $EF$ is the median line of triangle $HST$ so $HY = 2HP$. Because $OH \\perp YR$, according to butterfly theorem for segments $YR$ and $ZX$, it is obtained for quadrilateral $BCTS$ that $HR = HY = 2HP$. By butterfly theorem for quadrilateral $AGDK$ it is also obtained that $HZ = HX = 2HR = 2HY = 4HP$. Note that $PQ \\perp HM$ so $PQ \\parallel AG$. Noticing the parallel lines, it is deduced that $HA = 4HQ$, this means $QA = 3QH$. Hence the proof is done. ■", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32776, "subject": "Mathematics (Multi-modal)", "question": "There are five keys that assigned to lamps of a room. Each key is connected to one or more lamps and by switching a key, all lamps which is connected to that key will be switched. The set of connected lamps to each key is distinct with another. If all lamps are turned off at the beginning, prove that there are 3 keys that by switching all of them at least two lamps will be turned on.", "options": [], "answer": "Detailed solution", "solution": "Let $a_1, a_2, \\dots, a_n$ denote the lamps, and $b_1, b_2, \\dots, b_5$ denote the keys. First, it is easy to see that $n \\ge 3$, because otherwise there are at most 4 subsets of lamps and it's in contradiction with the assumption of the problem. Construct a $10 \\times n$ table that each row corresponds to a triple set of keys and each column corresponds to a lamp.\n\n![](attached_image_1.png)\n\nIn intersection of row $i$ and column $j$ assign number 1 if after switching 3 keys corresponding to row $i$, lamp $a_j$ turns on, and else assign 0. Denote the sum of row $i$'s numbers by $z_i$. Suppose lamp $a_i$ is connected to key $X_j$. Now sum of numbers in column $j$ is $\\binom{X_j}{3} + \\binom{X_j}{1}\\binom{5-X_j}{2}$, so\n\n$$\n\\sum_{i=1}^{10} z_i = \\sum_{j=1}^{n} \\left( \\binom{X_j}{3} + \\binom{X_j}{1} \\binom{5-X_j}{2} \\right) \\qquad (1)\n$$\n\n$X_j$ is positive integer between 1 and 5. It's easy to check that $\\binom{X_j}{3} + \\binom{X_j}{1}\\binom{5-X_j}{2}$ phrase is always greater than 3. Because of equation 1, it is deduced that\n\n$$\n\\sum_{i=1}^{10} z_i \\geq 4n.\n$$\n\nBecause of pigeonhole principle there exist $i$ so that $z_i \\geq \\lfloor \\frac{4n}{10} \\rfloor \\geq 2$ and we're done. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32777, "subject": "Mathematics (Multi-modal)", "question": "Find all functions $f: \\mathbb{R} \\to \\mathbb{R}$ such that for any two real numbers $x$ and $y$,\n$$\nf(2xy)^2 + f(f(x)^2 - y^2)^2 = f(x^2 + y^2)^2.\n$$", "options": [], "answer": "All solutions are: (1) the constant zero function; and (2) all functions satisfying f(x)^2 = x^2 for all real x (i.e., for each real x, f(x) equals either x or negative x).", "solution": "Obviously, the constant function $f(x) = 0$ is an answer. Let $f$ be a non-constant function satisfying the problem.\nDefine $g$ to be $g(x) = f(x)^2$ for all $x$. Since $f(x)^2 \\ge 0$, $g$ would always be non-negative.\nLet $P$ denote the assertion that\n$$\ng(2xy) + g(g(x) - y^2) = g(x^2 + y^2)\n$$\nFor every $a \\ge b \\ge 0$, there exists $x_0, y_0$ where $x_0^2 + y_0^2 = b$ and $2x_0y_0 = a$. Hence\n$$\nP(x_0, y_0) \\rightarrow g(b) - g(a) = g(g(x) - y^2) \\ge 0\n$$\nSo $g$ is an increasing function on non-negative numbers, which mixed with the non-negativity of $g$ results in $g(0) \\ge 0 \\implies g(g(0)) \\ge g(0) \\ge 0$.\n$$\nP(0, 0) \\rightarrow g(0) + g(g(0)) = g(0) \\implies 0 \\le g(0) \\le (g(0)) = 0 \\implies g(0) = 0\n$$\nAnd by $P(\\frac{1}{2}, -y)$ and $P(\\frac{1}{2}, y)$ we have\n$$\ng(-y) + g\\left(g\\left(\\frac{1}{2}\\right) - y^2\\right) = g\\left(\\frac{1}{4} + y^2\\right) = g(y) + g\\left(g\\left(\\frac{1}{2}\\right) - y^2\\right) \\\\\n\\implies g(y) = g(-y)\n$$\nTake $x$ to be a real number, it suffices to prove that $g(x) = x^2$ and then $f(x) = \\pm x$ would satisfy the problem. Since $g$ is an even function, by proving that $g(x) = x^2$ for $x \\ge 0$, the same would be proven for $x < 0$; hence it suffices to prove that $g(x) = x^2$ for $x > 0$.\nSince $g(x) \\ge 0$, there exists $y$ in which $y^2 = g(x)$. $P(x, y)$ yields in\n$$\ng(2xy) = g(2xy) + g(g(x) - g(x)) = g(x^2 + y^2)\n$$\nIf we prove $g$ to be an injective function, this will result in $2xy = x^2 + y^2 \\implies x = y \\implies x^2 = g(x)$ which proves our point, so it's left to prove that $g$ is injective.\nFor this purpose, first we prove that $g(a) = 0 \\iff a = 0$. Suppose the contrary: There exists $a > 0$ in which $g(a) = 0$ and let $Q(a)$ denote this proposition, also there exists $b > 0$ satisfying $g(b) > 0$. $g$ is increasing, hence $g(x) = 0$ for all $0 \\le x \\le a$. Let $y = \\sqrt{a}$ and $x = \\min\\left(a, \\frac{\\sqrt{a}}{2}\\right)$; we clearly have\n$$\n\\begin{cases} x \\le a \\implies g(x) = 0 \\\\ y^2 = a \\implies g(-y^2) = g(y^2) = 0 \\\\ 2xy \\le 2\\frac{\\sqrt{a}}{2}y = a \\implies g(2xy) = 0 \\end{cases}\n$$\nBy $P(x, y)$ we conclude\n$$\ng(2xy) + g(g(x) - y^2) = g(0 - y^2) = 0 = g(x^2 + y^2) = g(a + x^2)\n$$\nSo $x = \\frac{\\sqrt{a}}{2} \\iff a \\ge \\frac{\\sqrt{a}}{2} \\iff a \\ge \\frac{1}{4}$ and $x = a \\iff a \\le \\frac{1}{4}$. In other words, if $a \\ge \\frac{1}{4}$ we would have $Q(a) \\implies Q(\\frac{5a}{4})$ and if $a \\le \\frac{1}{4}$, we would have $Q(a) \\implies Q(a^2+a)$. Note that $a \\ge \\frac{1}{4}$, $Q(a) \\implies Q(\\frac{5a}{4}) \\implies Q(\\frac{25a}{16})$ which inductively proves that $Q(\\frac{5^n a}{4^n})$ for all $n \\in \\mathbb{Z}^+$, and it's easy to see that there exists $k \\in \\mathbb{Z}^+$ satisfying $b \\le \\frac{5^k a}{4^k}$ which is a clear contradiction. On the other hand, we shall prove that $a \\le \\frac{1}{4}$ results in $Q(a) \\implies Q(a(na+1))$ for all $n \\in \\mathbb{Z}^+$; The basis is already proven: $Q(a) \\implies Q(a^2+a)$. For the inductive step, suppose that $Q(a) \\implies Q(na^2+a)$. If $na^2+a \\ge \\frac{1}{4}$, it's already proven that $g(b) = 0$ for all $b$, therefore we suppose the contrary, so\n$$\nQ(na^2 + a) \\implies Q\\left((na^2 + a)^2 + (na^2 + a)\\right).\n$$\nBut it's easy to see that\n$$\n(na^2 + a)^2 \\ge a^2 \\implies (na^2 + a)^2 + (na^2 + a) \\ge a^2 + na^2 + a = a((n+1)a + 1),\n$$\ntherefore by $g$ being increasing,\n$$\nQ(na^2 + a) \\implies Q\\left((na^2 + a)^2 + (na^2 + a)\\right) \\implies Q(a((n+1)a + 1))\n$$\nwhich completes the induction. With this proven, it's concluded that $g(x) = 0 \\iff x = 0$.\nNow we prove that $g$ is injective. Suppose on the contrary that $g(a) = g(b)$ for some $a > b$. There exists some $x, y \\ge 0$ satisfying $x^2+y^2 = a$ and $2xy = b$. Without loss of generalization assume that $x \\ge y$. Therefore by $P(x, y)$ and $P(y, x)$\n$$\n\\begin{align*} g(g(x) - y^2) &= g(g(y) - x^2) = g(a) - g(b) = 0 & \\implies g(x) &= y^2, g(y) = x^2 \\\\ \\implies x \\ge y &\\implies g(x) \\ge g(y) &\\implies y^2 \\ge x^2 &\\implies y \\ge x &\\implies y = x \\\\ \\implies 2xy &= x^2 + y^2 &\\implies a &= b \\end{align*}\n$$\nWhich is a clear contradiction. Hence $f(x) = \\pm x$ is the only possible option for non-constant $f$, which is indeed a solution. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32778, "subject": "Mathematics (Multi-modal)", "question": "Two circle $\\omega_1$ and $\\omega_2$ intersect each other at points $P$ and $Q$. An arbitrary line passes from $P$ and intersects $\\omega_1$ and $\\omega_2$ respectively at points $A$ and $B$. A line parallel to $AB$ cuts $\\omega_1$ at $D$ and $F$, and cuts $\\omega_2$ at $C$ and $E$ in a way that $E$ and $F$ lie between $C$ and $D$. Let $X$ be the intersection point of $BE$ and $AD$, $Y$ be the intersection of $AF$ and $BC$, and $R$ be the reflection of point $P$ over $CD$.\n\ni)\nProve that $R$ lies on $XY$.\n\nii)\nProve that $PR$ is the angle bisector of $\\angle XPY$.", "options": [], "answer": "Detailed solution", "solution": "i) Notice that\n$$\n\\angle QEB = \\angle QPB = \\angle QDA \\implies \\angle QEX = \\angle QDX\n$$\nSo quadrilateral $XDEQ$ is cyclic and similarly quadrilateral $YCFQ$ is cyclic. Let $S$ be the second intersection point of these two circles. It's clear that $\\angle QSX = \\angle QEB = \\angle QCY$ so $X, S, Y$ are collinear. Let $R'$ be the second intersection point of the circumcircle of triangle $DSC$ with line $XY$. We have\n$$\n\\angle R'DC = \\angle R'SC = \\angle YSC = \\angle YFC = \\angle FAP = \\angle FDP = \\angle CDP\n$$\nSimilarly it's obtained that $\\angle R'CD = \\angle DCP$. So $R'$ is the reflection of $P$ onto $CD$, and so $R \\equiv R'$. □\n![](attached_image_1.png)\n\n\nii) It's easy to see that $FR = FP = AD$ and $RD = PD = AF$. Thus $AFRD$ is a parallelogram and therefore $RD \\parallel AF$ and $RF \\parallel AD$. Hence,\n$$\n\\frac{RY}{RX} = \\frac{AD}{DX} = \\frac{PF}{DX}\n$$\nSo the problem becomes equivalent to showing that $\\frac{RY}{RX} = \\frac{PY}{PX}$. Thus it suffices to show that $\\frac{PY}{PX} = \\frac{PF}{DX}$. Note that $\\angle ADP = \\angle AFP$, so $\\angle PDX = \\angle PFY$ is enough to show that\n$$\n\\frac{PD}{DX} = \\frac{FY}{FP} \\iff \\frac{AF}{FY} = \\frac{DX}{AD}\n$$\nFrom $RD \\parallel AF$ and $RF \\parallel AD$ both sides of the last equation are found to be equal to $\\frac{RX}{RY}$ and hence the claim. $\\square$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32779, "subject": "Mathematics (Multi-modal)", "question": "$\\{a_n\\}_{n \\ge 0}$ and $\\{b_n\\}_{n \\ge 0}$ are two sequences of positive integers that $a_i, b_i \\in \\{0, 1, 2, \\dots, 9\\}$. There is an integer number $M$ such that $a_n, b_n \\ne 0$ for all $n \\ge M$ and for each $n \\ge 0$\n$$\n(\\overline{a_n \\cdots a_1 a_0})^2 + 999 \\mid (\\overline{b_n \\cdots b_1 b_0})^2 + 999\n$$\n\n(Note that $(\\overline{x_n x_{n-1} \\dots x_0}) = 10^n \\times x_n + \\dots + 10 \\times x_1 + x_0$.)\n\nprove that $a_n = b_n$ for $n \\ge 0$.", "options": [], "answer": "Detailed solution", "solution": "Define\n$$\nA_n := \\overline{a_n \\dots a_1 a_0}, \\quad B_n := \\overline{b_n \\dots b_1 b_0}, \\quad K_n := \\frac{B_n^2 + 999}{A_n^2 + 999}.\n$$\n**Claim 1.** $\\{K_n\\}$ is eventually constant or $10^n \\mid A_{n-1}^2 + 999$ for each positive integer $n$.\n\n---\n\n*Proof.* For each $n \\ge 1$\n$$\nB_n^2 + 999 = K_n (A_n^2 + 999), \\quad B_{n-1}^2 + 999 = K_{n-1} (A_{n-1}^2 + 999) \\quad (1)\n$$\nFrom the Definition of $A_n, B_n$ we know that\n$$\nA_n \\equiv A_{n-1} \\pmod{10^n}, \\quad B_n \\equiv B_{n-1} \\pmod{10^n} \\quad (2)\n$$\nThen (1),(2) imply that\n$$\nK_n (A_n^2 + 999) \\equiv K_{n-1} (A_{n-1}^2 + 999) \\pmod{10^n}. \\quad (3)\n$$\nIf there exist $N \\ge 1$ such that $10^N \\nmid A_{N-1}^2 + 999$, then there is a prime number $p \\in \\{2, 5\\}$ such that $p^N \\nmid A_{N-1}^2 + 999$. (2) infers that $A_n \\equiv A_{N-1} \\pmod{p^N}$ for each $n \\ge N-1$. So $p^N \\nmid A_n^2 + 999$, meaning\n$$\nv_p (A_n^2 + 999) \\le N,\n$$\nwhere $v_p(x)$ is the power of $p$ in prime factorization of $x$.\nDefine $d_n := \\gcd(10^n, A_{n-1}^2 + 999)$. If $n \\ge N+1$ then $d_n \\nmid \\frac{10^n}{p^{n-N}}$ because $v_p(A_n^2 + 999) \\le N$. According to (3) there is $K_n \\equiv K_{n-1} \\pmod{\\frac{10^n}{d_n}}$ so\n$$\nK_n \\equiv K_{n-1} \\pmod{p^{n-N}}, \\quad (4)\n$$\nif $n \\ge M$ is large enough such that $p^{n-N} > 100$ then for each $i \\ge n-1$\n$$\nA_i \\ge 10^i \\implies A_i^2 + 999 \\ge 10^{2i} + 999 \\\\\nB_i < 10^{i+1} \\implies B_i^2 + 999 < 10^{2i+2} + 999.\n$$\nThen\n$$\nK_i = \\frac{B_i^2 + 999}{A_i^2 + 999} < 100 < p^{n-N}\n$$\nHence (4) implies that $K_{n-1} = K_n$ for large enough values of $n$ so the claim is done. $\\square$\n\nAs discussed above there are two cases:\n1. $10^n \\mid A_{n-1}^2 + 999$ for each $n \\ge 1$.\n2. $\\{K_n\\}$ is eventually constant.\n\n**Claim 2.** *By assumption of the first case, $a_n = b_n$ for all non-negative integers $n$.*\n\n---\n\n*Proof.* Let $n \\ge 1$ be any positive integer.\n$$\nA_n^2 + 999 \\mid B_n^2 + 999 \\implies 10^n \\mid B_{n-1}^2 + 999\n$$\nWith above assertions and some calculation it's deduced that $a_0 = b_0, a_1 = b_1$. Note that $A_n = 10^n a_n + A_{n-1}$ so\n$$\nA_n^2 + 999 \\equiv 2 \\times 10^n a_n A_{n-1} + A_{n-1}^2 + 999 \\pmod{10^{n+1}}.\n$$\nClearly, $2 \\times 10^n \\mid 10^{n+1} \\mid A_n^2 + 999$ thus\n$$\n2 \\times 10^n \\mid A_{n-1}^2 + 999 \\mid B_{n-1}^2 + 999 \\quad (5)\n$$\nWhich is stronger than assumed relation at beginning of the claim. The remaining part of proof is by using induction. Assume that $a_m = b_m$ for all $0 \\le m \\le n - 1$. Which means $A_{n-1} = B_{n-1}$. Using (5) implies for all $n \\ge 1$\n$$\n\\begin{align*} A_n^2 + 999 &\\equiv 0 \\pmod{2 \\times 10^{n+1}} \\\\\n\\implies (10^n a_n + A_{n-1})^2 + 999 &\\equiv 0 \\pmod{2 \\times 10^{n+1}}. \\end{align*}\n$$\nWhich implies\n$$\na_n A_{n-1} + \\frac{A_{n-1}^2 + 999}{2 \\times 10^n} \\equiv 0 \\pmod{10}. \\quad (6)\n$$\nRepeating above discussion with $B_n^2 + 999$ infers that\n$$\nb_n B_{n-1} + \\frac{B_{n-1}^2 + 999}{2 \\times 10^n} \\equiv 0 \\pmod{10}. \\quad (7)\n$$\nAccording to (6), (7) and the assertion of $A_{n-1} = B_{n-1}$ (induction) it's known that $a_n A_{n-1} \\equiv b_n A_{n-1} \\pmod{10}$. Moreover $\\gcd(A_n, 10) = 1$ since $10^{n+1} \\mid A_n^2 + 999$. This implies $a_n \\equiv b_n \\pmod{10}$. Hence $a_n = b_n$ since $0 \\le a_n, b_n \\le 9$. Claim is proved. $\\square$\n\nThe only remaining part of solution is the case that $\\{K_n\\}$ is eventually constant. Suppose that there exist positive integers $K, T$ such that $K_n = K$ for all $n \\ge T$. Suppose that $n \\ge T$ then\n$$\n\\left. \\begin{array}{l} B_n^2 + 999 = K(A_n^2 + 999) \\\\ A_n = 10^n a_n + A_{n-1} \\\\ B_n = 10^n b_n + B_{n-1} \\end{array} \\right\\} \\\\\n\\implies 10^n b_n^2 + 2 \\times b_n B_{n-1} = K (10^n a_n^2 + 2 \\times a_n A_{n-1}) \\\\\n\\implies 10^n (b_n^2 - K a_n^2) = 2 (K a_n A_{n-1} - b_n B_{n-1}).\n$$\nSo\n$$\n\\frac{10^n}{A_{n-1}} (b_n^2 - K a_n^2) = 2 \\left( K a_n - b_n \\frac{B_{n-1}}{A_{n-1}} \\right). \\quad (8)\n$$\nIt's known that $A_n, B_n \\ge 10^n$ for large enough integers $n$\n$$\n\\implies A_n^2 \\simeq A_n^2 + 999, \\quad B_n^2 \\simeq B_n^2 + 999.\n$$\nWhich implies\n$$\nB_n^2 \\simeq K A_n^2 \\implies \\lim_{n \\to \\infty} \\frac{B_n}{A_n} = \\sqrt{K}.\n$$\nDefine\n$$\nC_n := \\frac{B_n}{A_n} - \\sqrt{K} \\implies \\lim_{n \\to \\infty} C_n = 0,\n$$\naccording to (8)\n$$\n\\begin{aligned} \\frac{10^n}{A_{n-1}} (b_n^2 - K a_n^2) &= 2 (K a_n - b_n \\sqrt{K}) - 2 b_n C_n \\\\\n\\implies \\frac{10^n}{A_{n-1}} (b_n - \\sqrt{K} a_n) (b_n + \\sqrt{K} a_n) &= 2 \\sqrt{K} (\\sqrt{K} a_n - b_n) - 2 b_n C_n \\\\\n\\implies (b_n - \\sqrt{K} a_n) \\left( \\frac{10^n}{A_{n-1}} (b_n + \\sqrt{K} a_n) + 2 \\sqrt{K} \\right) &= -2 b_n C_n \\end{aligned} \\quad (9)\n$$\nRight Hand Side of (9) converges to 0 since $\\lim_{n \\to \\infty} C_n = 0$ and $0 \\le b_n \\le 9$. Also the second parenthesis in (9) is always greater than $2\\sqrt{K}$. So\n$$\n\\lim_{n \\to \\infty} b_n - \\sqrt{K} a_n = 0\n$$\nBut $b_n - \\sqrt{K}a_n$ has finite values which infers that there exist positive integer $L \\ge M$ such that $b_n = \\sqrt{K}a_n$ for all $n \\ge L$. Therefore according to (9) there must be $-2b_nC_n = 0$ for all $n \\ge L$. Which implies $C_n = 0$ since $b_n \\ne 0$ for $n \\ge M$. Therefore\n$$\nC_n = 0 \\implies B_n = \\sqrt{K} A_n\n$$\nIn addition with $B_n^2 + 999 = K(A_n^2 + 999)$ it's easy to see that $999K = 999$ which means $K = 1$. So for large enough positive numbers $n$,\n$$\nB_n = A_n \\implies \\overline{b_n \\cdots b_1 b_0} = \\overline{a_n \\cdots a_1 a_0}\n$$\nTherefore $a_k = b_k$ for all $k \\ge 0$ and we're done! ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32780, "subject": "Mathematics (Multi-modal)", "question": "Let $S$ be an infinite subset of natural numbers. Define the set $S'$ as follows:\n$$\nS' = \\{x^y + y^x \\mid x, y \\in S, x \\ne y\\}.\n$$\n\nProve that there are infinitely many prime numbers $p$ such that $p$ divides at least one element in $S'$.", "options": [], "answer": "Detailed solution", "solution": "Let $P$ be the set of all prime divisors of members of $S'$. Suppose, to the contrary, that $P$ is finite and $P = \\{p_1, p_2, \\dots, p_n\\}$. Define\n$$\nN = 4 \\prod_{i=1}^{n} p_i(p_i - 1).\n$$\n$S$ is infinite, hence there exists an infinite subset $S_1$ of $S$ such that every two members of $S_1$ are congruent to each other modulo $N$. Let $x, y > 1$ be members of $S_1$ such that $y$ is large enough to satisfy $\\frac{y}{\\log_2 y} > x$. It's easy to see that\n$$\nx < \\frac{y}{\\log_2 y} \\le \\frac{y}{\\log_x y} \\implies y > x \\log_x y \\implies x^y > y^x\n$$\nSince $x^y + y^x \\in S'$, it can be written in the form $x^y + y^x = q_1^{\\alpha_1} q_2^{\\alpha_2} \\dots q_k^{\\alpha_k}$ where $q_1, q_2, \\dots, q_k \\in \\mathbb{P}$ and $\\alpha_1, \\alpha_2, \\dots, \\alpha_k \\in \\mathbb{Z}^+$. For every $1 \\le i \\le k$ we have\n$$\n\\begin{aligned}\nq_i \\mid N, x \\equiv y \\pmod{N} &\\implies x \\equiv y \\pmod{q_i} \\\\\n&\\implies x^y \\equiv y^y \\pmod{q_i}\n\\end{aligned} \\qquad (1)\n$$\n$$\n\\begin{aligned}\nq_i - 1 \\mid N, x \\equiv y \\pmod{N} &\\implies x \\equiv y \\pmod{q_i - 1} \\\\\n&\\implies y^x \\equiv y^{x} \\pmod{q_i}\n\\end{aligned} \\qquad (2)\n$$\nAccording to (1), (2)\n$$\n\\left. \\begin{array}{l}\nx^y \\equiv y^x \\pmod{q_i} \\\\\nx^y + y^x \\equiv 0 \\pmod{q_i}\n\\end{array} \\right\\} \\implies 2x^y \\equiv 0 \\pmod{q_i}\n$$\nSo for every odd $q_i$ we have $q_i \\mid x$. For $q_i = 2$ if at least one of $x$ and $y$ is even, then the other one is even too; And if they both are odd we have\n$$\n\\left. \\begin{array}{l}\n2 \\mid x-y \\implies y^y \\equiv y^x \\pmod{4} \\\\\ny \\equiv x \\pmod{N} \\\\\n4 \\mid N\n\\end{array} \\right\\} \\implies x^y \\equiv y^y \\equiv y^x \\pmod{4} \\\\\n\\implies x^y + y^x \\equiv 2x^y \\equiv 2 \\pmod{4} \\implies \\alpha_i = 1 \\qquad (3)\n$$\nNow let\n$$\nx = q_1^{\\beta_1} q_2^{\\beta_2} \\dots q_k^{\\beta_k} x', \\quad y = q_1^{\\gamma_1} q_2^{\\gamma_2} \\dots q_k^{\\gamma_k} y'\n$$\nso that\n$$\n\\beta_i, \\gamma_i \\in \\mathbb{Z}^+ \\cup \\{0\\}, \\text{gcd}(x', q_1, q_2, \\dots, q_k) = \\text{gcd}(y', q_1, q_2, \\dots, q_k) = 1\n$$\nFor every $1 \\le i \\le k$ if $q_i \\ne 2$, it was proven that $\\beta_i, \\gamma_i > 0$. Furthermore, if $q_i = 2$ and one of $x, y$ is even, then $\\beta_i, \\gamma_i > 0$. So if these conditions hold, we have $\\beta_i y \\ge y$. From the definition of $y$ we have\n$$\n\\beta_i y \\ge y > x \\log_2 y \\ge x \\log_{q_i} y \\ge x \\gamma_i.\n$$\nAlso if $x, y$ are odd and $q_i = 2$, the inequality $0 = \\beta_i y \\ge \\gamma_i x = 0$ still holds. Now we have\n$$\n\\begin{aligned}\nq_1^{\\alpha_1} q_2^{\\alpha_2} \\dots q_k^{\\alpha_k} &= x^y + y^x \\\\\n&= x'^y \\prod_{1 \\le i \\le k} q_i^{y\\beta_i} + y'^x \\prod_{1 \\le i \\le k} q_i^{x\\gamma_i} \\\\\n&= \\prod_{1 \\le i \\le k} q_i^{x\\gamma_i} \\left( y'^x + x'^y \\prod_{1 \\le i \\le k} q_i^{y\\beta_i - x\\gamma_i} \\right)\n\\end{aligned}\n$$\nIf $q_i = 2$ and $x, y$ are odd, from (3) we have $\\alpha_i = 1$. Otherwise we have\n$$\ny\\beta_i - x\\gamma_i > 0 \\implies \\left( y'^x + x'^y \\prod_{1\\le i\\le k} q_i^{y\\beta_i - x\\gamma_i}, q_i \\right) = (y'^x, q_i) = 1\n$$\nBut we also have\n$$\ny'^x + x'^y \\prod_{1\\le i\\le k} q_i^{y\\beta_i - x\\gamma_i} \\quad \\left| \\quad x^y + y^x = q_1^{\\alpha_1} q_2^{\\alpha_2} \\dots q_k^{\\alpha_k}\n$$\nSo\n$$\n\\begin{align*}\n& y'^x + x'^y \\prod_{1\\le i\\le k} q_i^{y\\beta_i - x\\gamma_i} \\quad \\Big| \\quad 2 \\\\\n\\implies \\quad & y'^x + x'^y \\prod_{1\\le i\\le k} q_i^{y\\beta_i - x\\gamma_i} \\le 2 \\\\\n\\implies \\quad & y'^x \\le 1 \\implies y'^x = 1 \\implies y^x = \\prod_{1\\le i\\le k} q_i^{x\\gamma_i} \\\\\n\\implies \\quad & x^y + y^x = q_1^{\\alpha_1} q_2^{\\alpha_2} \\dots q_k^{\\alpha_k} = y^x \\left( y'^x + x'^y \\prod_{1\\le i\\le k} q_i^{y\\beta_i - x\\gamma_i} \\right) \\le 2y^x \\\\\n\\implies \\quad & x^y \\le y^x\n\\end{align*}\n$$\nWhich contradicts the way $y$ was chosen, and completes our proof. ■", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32781, "subject": "Mathematics (Multi-modal)", "question": "Numbers $m$ and $n$ are given positive integers. There are $mn$ people in a party, standing in the shape of an $m \\times n$ grid. Some of these people are police officers and the rest are the guests. Some of the guests may be criminals. The goal is to determine whether there is a criminal between the guests or not.\n\nTwo people are considered *adjacent* if they have a common side. Any police officer can see their adjacent people and for every one of them, know that they're criminal or not. On the other hand, any criminal will threaten exactly one of their adjacent people (which is likely an officer!) to murder. A threatened officer will be too scared, that they deny the existence of any criminal between their adjacent people.\nFind the least possible number of officers such that they can take position in the party, in a way that the goal is achievable. (Note that the number of criminals is unknown and it is possible to have zero criminals.)", "options": [], "answer": "floor(mn/2) + 1", "solution": "Answer. $\\left\\lfloor \\frac{mn}{2} \\right\\rfloor + 1$.\n\nThere are two steps for the proof, first showing that this number is enough, and for any smaller number of officers, show a way for some of the guests to be criminals and to threaten the officers such that the existence of the criminals remains unknown.\n\nFor the first part, consider two cases:\n\n* $mn$ is an odd number.\n\nConsider the coloring of the grid with two colors, such that no two adjacent nodes are of the same color. Place the $\\left[\\frac{mn}{2}\\right] + 1$ officers on the places that have the majority color. Since any criminal can threaten exactly one person (which in this case, is definitely an officer), and since the number of officers is greater than the number of the guests (and so, greater than the number of criminals), if there exists a criminal between the guests, there will be an officer, adjacent to a criminal, whom is not threatened and can identify the criminal.\n\n* $mn$ is an even number.\n\nWithout loss of generality, assume that $n$ is an even number. Consider the same coloring of the nodes of the grid. Again, $\\frac{mn}{2}$ of the officers can take position at the nodes with the majority color, and the last officer can take position at an arbitrary node with the opposite color. Similar to the previous case, since the number of officers is greater than the largest possible number of criminals, one officer will be able to identify a criminal, if there's any.\n\nNow for the second part, consider a group of people such that the number of police officers is not greater than half of the total. It suffices to show a way for some of the guests to be criminals and to threaten the officers such that the officers will fail to reach the goal.\n\nConstruct a graph with $mn$ vertices, each vertex representing a person in the party. Partition the nodes of the graph into two sections $A$ and $B$, where every node in $A$ represents a police officer and every node in $B$ represents a guest. Construct an edge, connecting a node from $A$ to a node from $B$ if the people they represent are adjacent in the party.\n\n![](attached_image_1.png)\n\nThe assumption is that $|A| \\le |B|$. Also, any node in $B$ is connected to at least another node in $A$, because otherwise, it suffices for the person representing this node to be a criminal; Officers would not be able to identify this person.\n\nIt suffices to prove that there exists a non-empty subset of the vertices of $A$, like $X$ such that there is a matching between the vertices of $X$ and the vertices of a subset of $B$, like $Y$, and the vertices of $Y$ are not connected to any other node outside of $X$.\n\nIf the graph contains a matching, including all the vertices of $A$, the desired claim is concluded; Otherwise, according to **Hall's Theorem**, there exists a subset $S$ of $A$, such that the number of the vertices of $B$ that are connected to a node of this subset, is less than the number of the vertices of $S$ itself. Without loss of generality, let $S$ be the largest subset with the described property. Let $N(S)$ be the subset of the nodes of $B$ that are connected to some vertex of $S$.\n\n![](attached_image_2.png)\n\nIf vertices of both $S$ and $N(S)$ are removed, the assumptions of Hall's theorem holds true. Because if there is a subset of $A/S$ like $S'$ where the number of the nodes of $B/N(S)$ are less than the number of the vertices of $S'$, then $S \\cup S'$ in $A$ has the same described property as $S$, thus $S$ could not be the largest subset with that property. Now, considering the complete matching between the nodes of this new graph, the claim is concluded; Because the nodes of $B/N(S)$ are not connected to any node outside of $A/S$. Note that $A \\neq S$, because all vertices of $B$ have the degree of at least one, and also $|A| \\leq |S|$. Therefore the given number is proved to be the correct answer. $\\square$\n\nTherefore the given number is proved to be the correct answer. $\\blacksquare$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32782, "subject": "Mathematics (Multi-modal)", "question": "A weighted complete graph with distinct positive weights is given such that every triangle is degenerate, i.e., the weight of one of the edges is equal to the sum of the two others. Prove that one can assign values to the vertices of this graph such that the weight of each edge is equal to the difference between the values assigned to its endpoints.", "options": [], "answer": "Detailed solution", "solution": "Let $d_{X,Y}$ be the weight assigned to the edge $XY$ of the graph. Clearly, in each triangle the maximum weight of an edge is the sum of the two others. Let $d_{A,B}$ be the maximum weight among all weights assigned to the edges. Now assign $0$ to vertex $A$ and $d_{A,X}$ to any other vertex $X$. Obviously, this labeling works for all edges including $A$. We claim that it works for all other edges.\n\nAssume to the contrary that the labeling doesn't work for an edge $XY$ of the graph. So $d_{X,Y}$ is not the difference between $d_{A,X}$ and $d_{A,Y}$, which means $d_{X,Y} = d_{A,X} + d_{A,Y}$. Note that $B$ cannot be any of $X, Y$. Since $d_{A,B}$ is the maximum edge number, we have $d_{B,X} = d_{A,B} - d_{A,X}$ and $d_{B,Y} = d_{A,B} - d_{A,Y}$. Now consider triangle $BXY$. If $d_{X,Y}$ is the maximum weight of an edge in this triangle, we have\n$$\nd_{X,Y} = d_{B,Y} + d_{B,X} \\implies \n\\begin{aligned}[t]\nd_{X,Y} &= d_{A,B} - d_{A,Y} + d_{A,B} - d_{A,X} \\\\\n&= 2d_{X,Y} = 2d_{A,B}.\n\\end{aligned}\n$$\nWhich is impossible since the weights are distinct. So the maximum edge weight in triangle $BXY$ is not $d_{X,Y}$. Without loss of generality, assume that $d_{B,Y}$ is the maximum one. So we have\n$$\nd_{B,Y} = d_{B,X} + d_{X,Y} \\implies \n\\begin{aligned}[t]\nd_{A,B} - d_{A,Y} &= d_{A,B} - d_{A,X} + d_{A,X} + d_{A,Y} \\\\\n&= d_{A,Y} = 0.\n\\end{aligned}\n$$\nWhich is again a contradiction. This completes the proof. ■", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 32783, "subject": "Mathematics (Multi-modal)", "question": "Hossna is playing with an $m \\times n$ grid of points. She can draw segments between some of the points with the following conditions:\na. No two segments intersect except in points of the grid.\nb. Each segment is drawn between two consecutive rows.\nc. There is at most one segment between any two points.\nFind the maximum number of the finite regions Hossna can create.", "options": [], "answer": "mn - n", "solution": "We claim the answer is $mn - n$.\n\nFirst note that by Pick's theorem, the area of a region is at least $\\frac{b}{2} - 1$, where $b$ is the number of the lattice points on its boundary. Obviously, for any region, $b \\ge 3$ and if $b = 3$, the region must be a triangle. But each of the edges of this triangle lie between two consecutive rows of the grid, which is impossible. So by Pick's theorem, the area of a region is at least $\\frac{4}{2} - 1 = 1$.\n\nConsider the $2n$ small segments of length 1 in the top and the bottom edges of the grid. We will prove that for each of these segments, we can assign a triangle inside the grid with the area of $\\frac{1}{2}$, counted in the infinite region, such that this segment is an edge of the triangle, and we can choose these triangles in a way that none of them intersect.\n\nLabel the points of the first row as $a_1, a_2, \\dots, a_n$, and the points of the second row as $b_1, b_2, \\dots, b_n$. For all $1 \\le i \\le n$, let $t_i$ be the greatest index such that $a_i$ and $b_{t_i}$ are connected by a segment (if it exists). If $a_i$ isn't connected to any of the $b_j$s and $i > 1$, let $t_i = t_{i-1}$, and if $a_1$ isn't connected to any of the $b_j$s, let $t_1 = 1$. Clearly, $t_1 \\le t_2 \\le \\dots \\le t_n$, which means for all $i \\ne j$, $a_i b_{t_i}$ and $a_j b_{t_j}$ do not intersect. Also the segment $a_i b_{t_i}$ doesn't intersect with any of the other drawn segments. Now assign triangle $\\triangle a_{i-1} a_i b_{t_i}$ to the segment $a_{i-1} a_i$. The area of this triangle is $\\frac{1}{2}$ and it is counted in the infinite region. Also none of such triangles intersect. Similarly, we can assign such triangles to the $n$ segments of the last row of the grid.\n\nSo the area of the grid counted in the infinite region is at least $2n \\times \\frac{1}{2} = n$. This means that the sum of the areas of finite regions is at most $mn - n$. Because the area of each region is at least 1, there can be at most $mn - n$ finite regions.\n\nFor the equality, consider the grid below. Obviously, the area of the grid counted in the infinite region is $n$ and the area of each finite region is 1. So there are $mn - n$ finite regions and we're done. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32784, "subject": "Mathematics (Multi-modal)", "question": "Given a cyclic quadrilateral $ABCD$. There is a point $P$ on side $BC$ such that $\\angle PAB = \\angle PDC = 90^\\circ$. The medians of vertices $A$ and $D$ in triangles $\\triangle PAB$ and $\\triangle PDC$ meet at $K$ and the angle bisectors of $\\angle PAB$ and $\\angle PDC$ meet at $L$. Prove that $KL \\perp BC$.", "options": [], "answer": "Detailed solution", "solution": "1. Extend $AP$ and $DP$ until they meet $DC$ and $AB$ at $X$ and $Y$, respectively.\n![](attached_image_1.png)\nSince $\\angle PAB = \\angle PDC = 90^\\circ$, $DAYX$ is a cyclic quadrilateral. Further, $DAYL$ and $DXLA$ are both cyclic since\n$$\n\\angle XAL = \\angle XDL = \\angle YAL = \\angle YDL = 45^\\circ.\n$$\nHence, $DAYLX$ is cyclic and $L$ is the midpoint of the small arc $XY$. Moreover, $XY$ is antiparallel to $DA$ which is parallel to $BC$. Thus, $XY$ is parallel to $BC$. It follows that $K$ is the midpoint of $XY$. However, $KL \\perp XY \\Rightarrow KL \\perp BC$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32785, "subject": "Mathematics (Multi-modal)", "question": "Let $k \\in \\mathbb{N}$ and $\\{a_n\\}_{n \\ge 0}$ and $\\{b_n\\}_{n \\ge 0}$ be two sequences of positive integers such that $a_i, b_i \\in \\{1, 2, \\dots, 9\\}$. For all $n \\ge 0$\n$$\n\\overline{a_n \\dots a_1 a_0} + k \\mid \\overline{b_n \\dots b_1 b_0} + k.\n$$\nProve that there is a number $t$ with $1 \\le t \\le 9$ and $N \\in \\mathbb{N}$ such that $b_n = t a_n$ for all $n \\ge N$.\n\n(Note that $(\\overline{x_n x_{n-1} \\dots x_0}) = 10^n \\times x_n + \\dots + 10 \\times x_1 + x_0)$", "options": [], "answer": "Detailed solution", "solution": "Let $A_n = \\overline{a_n \\dots a_1 a_0}$, $B_n = \\overline{b_n \\dots b_1 b_0}$, and $C_n = \\frac{B_n + k}{A_n + k}$. Obviously $C_n < 10$, so $C_n \\in \\{1, 2, \\dots, 9\\}$.\n\n**Claim.** If the sequence $\\{a_i\\}$ doesn't eventually become constant $9$, there exists $N \\in \\mathbb{N}$ such that $k + A_n < 10^{n+1}$ ($\\forall n > N$).\n**Proof.** Assume that there exists an index $i$ large enough that $k < 10^i$ and $a_i \\neq 9$. So we get\n$$\nk + A_i = \\overline{a_i \\dots a_0} + k < 9 \\times 10^i + k < 10^{i+1}.\n$$\nNow note that\n$$\nk + A_{i+1} = 10^{i+1} a_{i+1} + A_i + k \\le 9 \\times 10^{i+1} + A_i + k < 10^{i+2}.\n$$\nSo inductively, the claim will be proved.\nIf the sequence $a_i$ becomes constant $9$, then the sequence $b_i$ also becomes constant $9$ and we're done. Now consider the case that $a_i$ doesn't become constant $9$.\nFor all sufficiently large $n$, $A_n + k < 10^{n+1}$. Also we know that $(A_n + k) C_n = B_n + k$ and $(A_{n+1} + k) C_{n+1} = B_{n+1} + k$, which implies:\n$$\n\\begin{aligned}\n10^{n+1} b_{n+1} &= B_{n+1} - B_n = (A_{n+1} + k) C_{n+1} - (A_n + k) C_n \\\\\n&= (A_n + k)(C_{n+1} - C_n) + 10^{n+1} \\times C_{n+1} a_{n+1}.\n\\end{aligned}\n$$\nTherefore,\n$$\n10^{n+1} \\mid (A_n + k)(C_{n+1} - C_n).\n$$\nNow suppose that $C_{n+1} \\neq C_n$, which means $1 \\le |C_{n+1} - C_n| \\le 8$. Then, because $\\gcd(10^3, C_{n+1} - C_n) \\le 8$, we have $10^{n-2} \\mid A_n + k$. For all $n$, define $S_n$ such that for some $\\theta \\in \\mathbb{N}$,\n$$\nA_n + k = 10^{\\theta} \\times S_n\n$$\nand $10 \\nmid S_n$.\nLet $A_{i-1} + k = 10^{\\alpha} \\times S_{i-1}$. Then\n$$\nA_i + k = 10^{\\alpha} \\times S_{i-1} + 10^i \\times a_i.\n$$\nIf we choose $i$ large enough, by the previous claim we know that $A_{i-1} + k < 10^i$. So $\\alpha < i$. This means that $A_i + k = 10^\\alpha \\times S_i$. So we get that $A_n + k = 10^\\alpha \\times S_n$ for all sufficiently large $n$.\nBut if $C_{n+1} \\neq C_n$, we have $10^{n-2} \\mid A_n + k$ this means that $\\alpha \\ge n - 2$, which is impossible for large enough $n$. So there exists $N \\in \\mathbb{N}$ such that $C_{n+1} = C_n$ for all $n > N$. This means that $10^{n+1} b_{n+1} = C \\times 10^{n+1} a_{n+1}$. So $b_{n+1} = C \\times a_{n+1}$ and we're done. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32786, "subject": "Mathematics (Multi-modal)", "question": "We have a rectangle with its sides being a mirror. A light ray enters from one of the corners of the rectangle and after being reflected several times, gets to the opposite corner of its starting point. Prove that the light ray has passed the center (Intersection of diagonals) of the rectangle.", "options": [], "answer": "Detailed solution", "solution": "First note that if the line $l$ has slope $a$, then the reflection of $l$ with respect to any line which is parallel to one of the axes has the slope $-a$.\n\nNow assume that at the start the ray has slope $a$. Then the ray always has the slope $\\pm a$. Now at the starting point a line with slope $-a$ lies outside the rectangle so by symmetry at the opposite corner the line with slope $-a$ lies outside the rectangle. Hence the ray reaches the opposite corner with slope $a$.\n\nNow assume that a light ray enters the rectangle from the opposite corner. By symmetry these two rays meet at the time $\\frac{t}{2}$ in the center of the rectangle.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32787, "subject": "Mathematics (Multi-modal)", "question": "a, b and c are positive real numbers such that\n$$\n\\sum_{cyc} (a+b)^2 = 2 \\sum_{cyc} a + 6abc.\n$$\nProve that\n$$\n\\sum_{cyc} (a-b)^2 \\le \\left| 2 \\sum_{cyc} a - 6abc \\right|.\n$$", "options": [], "answer": "Detailed solution", "solution": "We know that $\\sum_{cyc} a^2 + \\sum_{cyc} ab = \\sum_{cyc} a + 3abc$, so\n$$\n\\begin{aligned}\n\\left(\\sum_{cyc} a^2 + \\sum_{cyc} ab\\right)^2 &= \\left(\\sum_{cyc} a + 3abc\\right)^2 \\\\\n\\Rightarrow \\quad &\\left(\\sum_{cyc} a^2\\right)^2 + \\left(\\sum_{cyc} ab\\right)^2 + 2\\left(\\sum_{cyc} a^2\\right)\\left(\\sum_{cyc} ab\\right) \\\\\n&= \\left(\\sum_{cyc} a\\right)^2 + 9a^2b^2c^2 + 6abc\\sum_{cyc} a \\\\\n\\Rightarrow \\quad &\\left(\\sum_{cyc} a^2\\right)^2 + \\left(\\sum_{cyc} ab\\right)^2 - \\left(\\sum_{cyc} a\\right)^2 - 9a^2b^2c^2 \\\\\n&= 6abc\\sum_{cyc} a - 2\\left(\\sum_{cyc} a^2\\right)\\left(\\sum_{cyc} ab\\right).\n\\end{aligned}\n$$\nBy AM-GM we have\n$$\n\\left(\\sum_{cyc} a^2\\right) \\left(\\sum_{cyc} ab\\right) \\ge \\left(\\sum_{cyc} ab\\right)^2 \\ge 3abc \\sum_{cyc} a\n$$\nSo\n$$\n2 \\left(\\sum_{cyc} a^2\\right) \\left(\\sum_{cyc} ab\\right) - 6abc \\sum_{cyc} a \\ge 6abc \\sum_{cyc} a - 2 \\left(\\sum_{cyc} a^2\\right) \\left(\\sum_{cyc} ab\\right)\n$$\n\nThen using above facts\n$$\n\\begin{aligned}\n& 2 \\left( \\sum_{cyc} a^2 \\right) \\left( \\sum_{cyc} ab \\right) - 6abc \\sum_{cyc} a \\\\\n& \\qquad \\geq \\left( \\sum_{cyc} a^2 \\right)^2 + \\left( \\sum_{cyc} ab \\right)^2 - \\left( \\sum_{cyc} a \\right)^2 - 9a^2b^2c^2 \\\\\n\\Leftrightarrow & \\left( \\sum_{cyc} a \\right)^2 + 9a^2b^2c^2 - 6abc \\sum_{cyc} a \\\\\n& \\qquad \\geq \\left( \\sum_{cyc} a^2 \\right)^2 - 2 \\left( \\sum_{cyc} a^2 \\right) \\left( \\sum_{cyc} ab \\right) + \\left( \\sum_{cyc} ab \\right)^2 \\\\\n\\Leftrightarrow & \\left( \\sum_{cyc} a - 3abc \\right)^2 \\geq \\left( \\sum_{cyc} a^2 - \\sum_{cyc} ab \\right)^2.\n\\end{aligned}\n$$\nSince $\\sum_{cyc} a^2 \\geq \\sum_{cyc} ab$, we have $\\sum_{cyc} a^2 - \\sum_{cyc} ab \\geq 0$. Therefore\n$$\n\\begin{aligned}\n\\left| \\sum_{cyc} a - 3abc \\right| &\\geq \\sum_{cyc} a^2 - \\sum_{cyc} ab \\\\\n\\Leftrightarrow &\\left| 2 \\sum_{cyc} a - 6abc \\right| \\geq \\sum_{cyc} (a-b)^2.\n\\end{aligned}\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32788, "subject": "Mathematics (Multi-modal)", "question": "Let $\\triangle ABC$ be an isosceles triangle ($AB = AC$) with incenter $I$. Circle $\\omega$ passes through $C$ and $I$ and is tangent to $AI$. The circle $\\omega$ intersects $AC$ and circumcircle of $\\triangle ABC$ at $Q$ and $D$, respectively. Let $M$ be the midpoint of $AB$ and $N$ be the midpoint of $CQ$. Prove that $AD$, $MN$ and $BC$ are concurrent.", "options": [], "answer": "Detailed solution", "solution": "Let $P$ be the midpoint of segment $BC$ and $J$ be the midpoint of arc $\\widearc{BC}$ ($J \\neq A$).\n![](attached_image_1.png)\nWe call the circumcircle of triangle $\\triangle CID$, $\\omega$ and the intersection point of $\\omega$ and segment $BC$, $R$. We have\n$$\n\\angle QIC = 180^{\\circ} - (\\angle IQC + \\angle ICQ) = 180^{\\circ} - (\\angle PIC + \\angle ICP) = 90^{\\circ}.\n$$\nSo, $\\angle QIC = 90^{\\circ}$ and $N$ is the center of $\\omega$ which gives us $\\angle QRC = 90^{\\circ}$ and $QR \\parallel AP$. $\\angle RDC = \\angle RQC$ gives us $\\angle JAC = \\angle JDC$. So, points $D, R$ and $J$ are collinear. Since $\\angle RNC = 2\\angle RQC = 2\\angle PAC = \\angle A$, we have $RN \\parallel AB$. Therefore\n$$\n\\frac{AN}{NC} = \\frac{BR}{RC} \\implies \\frac{AN}{NC} \\cdot \\frac{RC}{BR} \\cdot \\frac{BM}{MA} = 1.\n$$\nSo, the lines $AR$, $BN$ and $CM$ are concurrent. Let $X$ be the intersection point of lines $AD$ and $BC$. It suffices to show that $(XR, CB) = -1$. Since $D, R$ and $J$ are collinear and $J$ is the midpoint of arc $\\widearc{BC}$, We have\n$$\n(XR, CB) \\stackrel{D}{=} (AJ, CB) = -1.\n$$\nHence the result.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32789, "subject": "Mathematics (Multi-modal)", "question": "For every positive integer $k > 1$ prove that there exists a real number $x$ such that for every positive integer $n < 1398$:\n$$\n\\{x^n\\} < \\{x^{n-1}\\} \\iff k \\mid n.\n$$", "options": [], "answer": "Detailed solution", "solution": "Take a sufficiently large $m$ ($m > 2^{3000}$) and put $x = m + \\frac{1}{k-1}$. Note that\n$$\n\\left\\{ \\left( m + \\frac{1}{k-1} \\right)^n \\right\\} = \\sum_{k_i > n} \\binom{n}{i} \\frac{m^{n-i}}{m^{(k-1)i}}\n$$\nBecause\n$$\n\\sum_{k_i > n} \\binom{n}{i} \\frac{m^{n-i}}{m^{(k-1)i}} < \\frac{1}{m} \\sum_{i=0}^{n} \\binom{n}{i} < \\frac{2^{n+1}}{m} < 1,\n$$\nand the remaining terms of $\\left(m + \\frac{1}{k-1}\\right)^n$ are all integers. Now if $n = kt + r$ such that $k-1 \\ge r \\ge 0$, we have two cases:\n\n**Case 1** $r \\ne 0$.\n$$\n\\left\\{ \\left( m + \\frac{1}{k-1} \\right)^n \\right\\} = \\sum_{k_i > n} \\binom{n}{i} \\frac{1}{m^{k_i-n}} \\stackrel{i=t+1}{>} \\frac{1}{m^{k-r}}, \\\\\n\\left\\{ \\left( m + \\frac{1}{k-1} \\right)^{n-1} \\right\\} = \\sum_{\\substack{k_i > n-1 \\\\ i \\ge t+1}} \\binom{n-1}{i} \\frac{1}{m^{k_i-n+1}} < 2^n \\times \\frac{n}{m^{k-r+1}}, \\\\\n\\frac{1}{m^{k-r}} > 2^n \\times \\frac{n}{m^{k-r+1}} \\implies \\left\\{ \\left( m + \\frac{1}{k-1} \\right)^n \\right\\} > \\left\\{ \\left( m + \\frac{1}{k-1} \\right)^{n-1} \\right\\}.\n$$\n\n**Case 2** $r = 0$.\n$$\n\\left\\{ \\left( m + \\frac{1}{k-1} \\right)^n \\right\\} = \\sum_{\\substack{k_i > n \\\\ i \\ge t+1}} \\binom{n}{i} \\frac{1}{m^{k_i-n}} < 2^n \\times \\frac{n}{m^k}, \\\\\n\\left\\{ \\left( m + \\frac{1}{k-1} \\right)^{n-1} \\right\\} = \\sum_{\\substack{k_i > n-1 \\\\ i \\ge t}} \\binom{n-1}{i} \\frac{1}{m^{k_i-n+1}} \\ge \\frac{1}{m}, \\\\\n\\frac{1}{m} \\stackrel{k \\ge 2}{>} 2^n \\times \\frac{n}{m^k} \\implies \\left\\{ \\left( m + \\frac{1}{k-1} \\right)^{n-1} \\right\\} > \\left\\{ \\left( m + \\frac{1}{k-1} \\right)^n \\right\\}.\n$$\nTherefore,\n$$\n\\left\\{ \\left( m + \\frac{1}{k-1} \\right)^{n-1} \\right\\} > \\left\\{ \\left( m + \\frac{1}{k-1} \\right)^n \\right\\} \\iff k \\mid n, \\\\\n\\{x^{n-1}\\} > \\{x^n\\} \\iff k \\mid n.\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32790, "subject": "Mathematics (Multi-modal)", "question": "Let $p$ be an odd prime number. Find all $\\frac{p-1}{2}$-tuples $(x_1, x_2, \\dots, x_{\\frac{p-1}{2}}) \\in \\mathbb{Z}_{p^2}^{\\frac{p-1}{2}}$ such that\n$$\n\\sum_{i=1}^{\\frac{p-1}{2}} x_i \\equiv \\sum_{i=1}^{\\frac{p-1}{2}} x_i^2 \\equiv \\dots \\equiv \\sum_{i=1}^{\\frac{p-1}{2}} x_i^{\\frac{p-1}{2}} \\pmod{p}.\n$$", "options": [], "answer": "For the prime three, any single element works. For primes at least five, all solutions are tuples whose entries are each either 0 or 1 (modulo p^2).", "solution": "Assume that $p = 3$. Then obviously $x_1$ can take any value. Now suppose that $p \\ge 5$. We want to prove that $(x_1, x_2, \\dots, x_{\\frac{p-1}{2}}) \\in \\{0, 1\\}^{\\frac{p-1}{2}}$. Note that\n$$\n\\sum_{i=1}^{\\frac{p-1}{2}} (1 - a x_i)^{\\frac{p-1}{2}} \\equiv \\frac{p-1}{2} + M \\left( (1-a)^{\\frac{p-1}{2}} - 1 \\right) \\pmod{p},\n$$\nwhere $M$ is common value mod $p$ of\n$$\n\\sum_{i=1}^{\\frac{p-1}{2}} x_i^j \\quad \\left(1 \\le j \\le \\frac{p-1}{2}\\right).\n$$\nIf we choose $a$ such that $(1-a)^{\\frac{p-1}{2}} = 1$, then by using $(1-ax_i)^{\\frac{p-1}{2}} = \\pm 1$ or $0$ and the above equation we have for each $i$,\n$$\n(1 - a x_i)^{\\frac{p-1}{2}} = \\left( \\frac{1 - a x_k}{p} \\right) = 1\n$$\nSo if $\\left(\\frac{t}{p}\\right) = 1$ we get\n$$\n\\left( \\frac{1 - (1 - t)x_i}{p} \\right) = 1\n$$\nNow if $x_i \\ne 0$ then the map $f(t) = 1 - (1-t)x_i$ is bijective. Hence if $P$ is the set of square remainder, $f$ define a bijection from $P$ to itself and\n$$\n\\sum_{t \\in P} f(t) = \\sum_{t \\in P} t = 0,\n$$\nwhich implies that $x_i = 1$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32791, "subject": "Mathematics (Multi-modal)", "question": "Let $n, k$ be positive integers such that $n \\ge k$. Find the maximum number of binary sequences of length $n$ such that by fixing any arbitrary $k$ bits, the achieved sequences do not produce all binary sequences of length $k$. For example if $k = 1$, we can only have one sequence, otherwise they will differ in at least one bit which means that fixing that bit produces all binary sequences of length 1.", "options": [], "answer": "sum_{i=0}^{k-1} binom(n,i)", "solution": "Let the answer be $f(n,k)$. We will prove by induction on $n+k$ that\n$$\nf(n,k) = \\sum_{i=0}^{k-1} \\binom{n}{i}.\n$$\nCase $n=k=1$ is obvious.\n\nAssume that $S$ is the maximum set of the desired sequences and let $T$ be the set of all binary sequences of length $n-1$. Define the sets $A, B, C$ as follows:\n$$\n\\begin{align*}\nA &= \\{a \\in T \\mid \\text{there exists } b \\in S \\text{ with } b = \\overline{0a}, \\text{ but there is no } c \\in S \\text{ with } c = \\overline{1a}\\} \\\\\nB &= \\{a \\in T \\mid \\text{there exists } b \\in S \\text{ with } b = \\overline{1a}, \\text{ but there is no } c \\in S \\text{ with } c = \\overline{0a}\\} \\\\\nC &= \\{a \\in T \\mid \\text{there exists } b, c \\in S \\text{ with } b = \\overline{0a}, c = \\overline{1a}\\}.\n\\end{align*}\n$$\nClearly, $f(n,k) = |A| + |B| + 2|C|$. Because we can't choose $k$ bits from the last $n-1$ bits of the sequences that produce all the binary sequences of length $k$, we have $|A| + |B| + |C| \\le f(n-1,k)$. Now consider the set $C$. If $|C| \\ge f(n-1,k-1)$, we can fix $k-1$ bits from the last $n-1$ bits to produce all sequences of length $k-1$. So because of the definition of $C$, by fixing these $k-1$ bits and the first bit, all sequences of length $k$ are produced, which is a contradiction. So we have\n$$\nf(n,k) = |A| + |B| + 2|C| \\le f(n-1,k) + f(n-1,k-1).\n$$\nBy induction and using Pascal's identity we get\n$$\n\\begin{align*}\nf(n,k) &\\le \\sum_{i=0}^{k-1} \\binom{n-1}{i} + \\sum_{i=0}^{k-2} \\binom{n-1}{i} \\\\\n&= 1 + \\sum_{i=1}^{k-1} \\binom{n-1}{i} + \\sum_{i=0}^{k-2} \\binom{n-1}{i} \\\\\n&= 1 + \\sum_{i=1}^{k-1} \\left( \\binom{n-1}{i} + \\binom{n-1}{i-1} \\right) \\\\\n&= \\binom{n}{0} + \\sum_{i=1}^{k-1} \\binom{n}{i} = \\sum_{i=0}^{k-1} \\binom{n}{i}.\n\\end{align*}\n$$\nFor the equality example, simply choose all binary sequences with at most $k-1$ zeros. This way, by fixing any $k$ bits, the sequence with $k$ zeros will never be produced and we're done. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32792, "subject": "Mathematics (Multi-modal)", "question": "$\\triangle ABC$ is an isosceles triangle with $AB = AC$. Point $X$ is an arbitrary point on side $BC$. Points $Y, Z$ are on the sides $AB, AC$, respectively, such that $\\angle BXY = \\angle ZXC$. A line parallel to $YZ$ and passing through $B$ cuts $XZ$ at $T$. Prove that $AT$ bisects $\\angle A$.", "options": [], "answer": "Detailed solution", "solution": "Let us denote by $K$ the intersection point of lines $BT$, $XY$. Note that $\\triangle XYB \\sim \\triangle XZC$. Using the fact that $BT \\parallel YZ$, we get\n$$\n\\frac{XK}{YK} = \\frac{XT}{ZT}.\n$$\nTherefore, $K$ and $T$ are corresponding points in triangles $\\triangle XYB$ and $\\triangle XZC$.\nWhich gives us\n$$\n\\angle TCX = \\angle KBX = \\angle TBX,\n$$\nand $TB = TC$. So, $T$ lies on the perpendicular bisector of $BC$ and since $AB = AC$, $T$ also lies on the angle bisector of $\\angle A$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32793, "subject": "Mathematics (Multi-modal)", "question": "Find all functions $f : \\mathbb{R} \\to \\mathbb{R}$ such that for any three real numbers $a, b, c$ that satisfy $a + f(b) + f(f(c)) = 0$, the following equality holds:\n$$\nf(a)^3 + b f(b)^2 + c^2 f(c) = 3abc.\n$$", "options": [], "answer": "f(x) = x; f(x) = -x; f(x) = 0", "solution": "The answers are $f(x) = x$, $f(x) = -x$ and $f(x) = 0$.\n\nFirst, let's prove that $f(x)$ is injective at point $0$. Assume there exist two distinct real numbers $t_1$ and $t_2$ such that $f(t_1) = f(t_2) = 0$. Comparing $P(-f(b) - f(0), b, t_1)$ and $P(-f(b) - f(0), b, t_2)$ gives us\n$$\n(f(b) + f(0)) b t_1 = (f(b) + f(0)) b t_2.\n$$\nSo if $f(x)$ is not injective at point $0$, we have\n$$\n\\Rightarrow \\forall b \\neq 0 : f(b) = -f(0).\n$$\nWhich gives us $f(x) = 0$ as an answer.\n\nSo if $f(x)$ is a non-constant function, then it must be injective at point $0$.\n\nNow, $P(-f(0) - f(f(0)), 0, 0)$ gives us $f(-f(0) - f(f(0))) = 0$ and we have a real number $t$ such that $f(t) = 0$. $P(-f(f(0)), t, 0)$ gives us\n$$\nf(-f(f(0))) = f(-f(0) - f(f(0))) = 0.\n$$\nAnd according to the injectivity at point $0$, it follows that $f(0) = 0$.\n\nNow, $P(-f(f(b)), b, 0)$ and $P(-f(f(c)), 0, c)$ give us\n$$\nf(b) f(f(b))^2 = b^2 f(b).\n$$\nIf $b \\neq 0$ then $f(b) \\neq 0$ therefore\n$$\nf(f(b)) = \\pm b \\quad \\forall b \\neq 0.\n$$\nAnd since $f(f(0)) = f(0) = 0$, we have\n$$\nf(f(b)) = \\pm b \\quad \\forall b \\in \\mathbb{R}.\n$$\nIf there exists a real number $c \\neq 0$ such that $f(f(c)) = -c$, $P(c, 0, c)$ gives us\n$$\nf(c)(f(c)^2 + c^2) = 0\n$$\nwhich is a contradiction.\n\nSo\n$$\n\\forall c \\in \\mathbb{R}: f(f(c)) = c\n$$\nNow $P(-a, 0, a)$ gives us $f(-a)^2 + a^2 f(a) = 0$ and $P(a, 0, -a)$ gives us $f(a)^3 + a^2 f(-a) = 0$ and they lead to $f(a) = \\pm a$.\n\nIf there exist non-zero real numbers $b, c$ such that $f(b) = b$ and $f(c) = -c$, $P(-b - c, b, c)$ leads to contradiction. So $f(x) = x$ and $f(x) = -x$ are the only solutions.\n\n$f(x) = 0$ is also a solution.\n\n■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32794, "subject": "Mathematics (Multi-modal)", "question": "Prove that for any positive integers $m > n$, there are infinitely many positive integers $a, b$ such that set of prime divisors of $a^m + b^n$ is equal to set of prime divisors of $a^{2019} + b^{1398}$.", "options": [], "answer": "Detailed solution", "solution": "We are going to construct infinite pairs like $(a, b)$ that suit the problem's condition. Consider $c$ be an arbitrary natural number then put $a = c^{n+1398}$ and $b = c^{m+2019}$. Then\n$$\na^m + b^n = c^{mn} (c^{1398m} + c^{2019n}),\n$$\nand\n$$\na^{2019} + b^{1398} = c^{1398 \\times 2019} (c^{1398m} + c^{2019n}).\n$$\nSo obviously set of the prime divisors of $a^m + b^n$ and $a^{2019} + b^{1398}$ are the same. Since $c$ has been arbitrarily chosen we have infinite choices for $(a, b)$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32795, "subject": "Mathematics (Multi-modal)", "question": "Consider an acute-angled triangle $\\triangle ABC$ with $AB = AC$ and $\\angle A > 60^\\circ$. Let $O$ be the circumcenter of $\\triangle ABC$. Point $P$ lies on the circumcircle of $\\triangle BOC$ such that $BP \\parallel AC$, and point $K$ lies on segment $AP$ such that $BK = BC$. Prove that line $CK$ bisects the arc $\\widearc{BC}$ of circumcircle of $\\triangle BOC$.", "options": [], "answer": "Detailed solution", "solution": "Let $D$ be the second intersection point of circumcircle of $\\triangle BOC$ and line $AC$ and $K'$ be the intersection point of lines $AP$ and $CM$, where $M$ is the midpoint of arc $\\widearc{BC}$.\n\n![](attached_image_1.png)\n\nWe have\n$$\n\\begin{align*}\n\\angle BCK' &= \\frac{1}{2} \\angle BOC = \\angle A = \\angle DAB, \\\\\n\\angle CDB &= 2\\angle A \\Rightarrow \\angle ABD = \\angle A \\Rightarrow AD = BD.\n\\end{align*}\n$$\nSo we just need to prove that $\\triangle BCK' \\sim \\triangle DAB$ to show that $K \\equiv K'$. Since\n$$\n\\begin{align*}\n\\angle ADP &= 180^\\circ - \\angle BPD = 180^\\circ - \\angle C, \\\\\n\\angle ACM &= \\angle C + \\frac{1}{2} \\angle BOC = \\angle C + \\angle A,\n\\end{align*}\n$$\nwe get that $\\angle ADP = \\angle ACM$. So, $PD \\parallel CK'$. Therefore $\\frac{PD}{CK'} = \\frac{AD}{AC} = \\frac{AD}{AB}$ which is equivalent to $\\frac{BC}{CK'} = \\frac{AD}{AB}$ since $PB \\parallel AC$ and $PD = BC$. This completes the proof. ■", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32796, "subject": "Mathematics (Multi-modal)", "question": "Let $O$ be the circumcenter of the triangle $\\triangle ABC$. Let $D, E$ on $AC, AB$ and $P, Q, R, S$ be points such that $P, C$ and $R, C$ lie on the different sides of $AB$, $Q, B$ and $S, B$ lie on the different sides of $AC$ and $R, S$ lie on circumcircle of $\\triangle DAP$, $\\triangle EAQ$. We have $\\triangle BCE \\sim \\triangle ADQ$, $\\triangle CBD \\sim \\triangle AEP$ (In that order) and $\\angle ARE = \\angle ASD = \\angle BAC$. If $RS \\parallel PQ$, prove that $RE, DS$ intersect on $AO$.", "options": [], "answer": "Detailed solution", "solution": "First we prove that it suffices to show that $ASCBR$ is cyclic. Let $\\omega$ be the circumcircle of $\\triangle ABC$. The fact $\\triangle PAE \\sim \\triangle BDC$ implies that $\\angle PAB = \\angle C$. Therefore, $PA$ is tangent to $\\omega$. Similarly, $\\triangle QAD \\sim \\triangle EBC$ implies $\\angle QAD = \\angle B$. Therefore, $QA$ is tangent to $\\omega$. Hence, points $A, P$ and $Q$ are collinear and $PQ$ is tangent to the $\\omega$ at $A$.\n\nNow we have $RS \\parallel PQ$ and since $R$ and $S$ lie on $\\omega$, we find out that $AR = AS$ and $\\angle ARS = \\angle ASR$. Let $M$ be the intersection point of lines $SD$ and $RE$. We have\n$$\n\\angle MRA = \\angle MSA = \\angle BAO \\implies \\angle MRS + \\angle ARS = \\angle MSR + \\angle ASR.\n$$\n\nAnd since $\\angle ARS = \\angle ASR$, we have $\\angle MRS = \\angle MSR$ and $MS = MR$. Therefore $A, M$ and $O$ lie on the perpendicular bisector of $RS$.\n\nNow let $X$ be the intersection point of lines $PE, BD$.\n![](attached_image_1.png)\nSince $\\triangle PAE \\sim \\triangle BDC$, angles $\\angle APE$ and $\\angle BDC$ are equal and $APXD$ is cyclic and since $R, X$ lie on the circumcircle of $\\triangle PAD$, it follows that $APRXD$ is cyclic. Furthermore,\n$$\n\\angle XBE = \\angle XRA - \\angle ARE = \\angle XDC - \\angle BAC = \\angle ABD = \\angle XBE.\n$$\nTherefore, $XBRE$ is cyclic as well. We'll get\n$$\n\\begin{aligned} \\angle BRE &= \\angle EXD = 180^\\circ - (\\angle C + \\angle A) = \\angle B \\\\ \\Rightarrow \\angle ARB &= \\angle ARE + \\angle BRE = \\angle A + \\angle B \\\\ \\Rightarrow \\angle ARB + \\angle C &= 180^\\circ. \\end{aligned}\n$$\nWhich gives us that $R$ lies on $\\omega$. Analogously, $S$ lies on $\\omega$. Therefore $ASCBR$ is cyclic and we're done. ■", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32797, "subject": "Mathematics (Multi-modal)", "question": "We are given a natural number $d$. Find all open intervals of maximum length $I \\subseteq \\mathbb{R}$ such that for all real numbers $a_0, a_1, \\dots, a_{2d-1}$ inside the interval $I$, the polynomial $P(x) = x^{2d} + a_{2d-1}x^{2d-1} + \\dots + a_1x + a_0$ has no real roots.", "options": [], "answer": "I = (1, 1 + 1/d)", "solution": "The answer is $I = (1, 1 + \\frac{1}{d})$.\n\nAssume that the desired interval is of the form $(b, c)$. For some $q, r$ in $(b, c)$, put $a_i = q$ for odd and $a_i = r$ for even $i$, where $0 \\le i \\le 2d - 1$. Then\n$$\nP(-1) = 1 - dq + dr.\n$$\nSince $P(x)$ has no real root, we must have $P(-1) > 0$. Thus, $q - r < \\frac{1}{d}$. We can assume that $c - b = \\frac{1}{d}$. Therefore, consider the interval as $(b, b + \\frac{1}{d})$. It is easy to find that $b > 0$, since by choosing $a_0 = b + \\epsilon$ should be positive. Now, assign the following numbers to the coefficients of the polynomial.\n$$\na_{2d-1} = a_{2d-3} = \\dots = a_1 = b + \\frac{1}{d} + \\epsilon, \\quad a_{2d} = a_{2d-2} = \\dots = a_0 = b + \\epsilon,\n$$\nfor some sufficiently small $\\epsilon > 0$.\nIt is clear that for all positive real $x$, $P(x) > 0$. For all negative real $x$, putting $x = -t$, where $t > 0$, then,\n$$\nP(-t) = t^{2d} - \\left(b + \\frac{1}{d}\\right) t^{2d-1} + bt^{2d-2} - \\dots - \\left(b + \\frac{1}{d}\\right) t + b + \\epsilon Q(t),\n$$\nfor some polynomial $Q(t)$, $\\deg Q(t) = 2d - 1$. As $\\epsilon$ tends to zero, it remains to find all $b > 0$ such that\n$$\nR(t) = t^{2d} - \\left(b + \\frac{1}{d}\\right) t^{2d-1} + b t^{2d-2} - \\cdots - \\left(b + \\frac{1}{d}\\right) t + b \\geq 0.\n$$\nNote that $R(1) = 0$. Therefore, $R'(1)$ should be zero. That is,\n$$\n2d - (2d - 1) \\left(b + \\frac{1}{d}\\right) + (2d - 2)b - \\cdots - \\left(b + \\frac{1}{d}\\right) = 0.\n$$\nHence, we claim the interval $I = (1, 1 + \\frac{1}{d})$ works! It is obvious that $P(x)$ has no positive real roots. Now, we prove that $P(x) > 0$ for all negative real $x$. Put $x = -t, t > 0$.\nThen,\n$$\nP(-t) > t^{2d} - \\left(1 + \\frac{1}{d}\\right) t^{2d-1} + t^{2d-2} - \\dots - \\left(1 + \\frac{1}{d}\\right) t + 1.\n$$\nThus it remains to prove that\n$$\n\\frac{t^{2d} + t^{2d-2} + \\dots + t^2 + 1}{d+1} \\ge \\frac{t^{2d-1} + t^{2d-3} + \\dots + t^3 + t}{d}.\n$$\nNow, since $t^{2d} + 1 \\geq t^{2d-2k+1} + t^{2k-1}$ and $t^{2k} + t^{2k-2} \\geq 2t^{2k-1}$, we are done.\nThus,\n$$\nb \\le \\frac{1}{d} \\lim_{t \\to 1^+} \\frac{dt^{2d} - (t^{2d-1} + t^{2d-3} + \\dots + t)}{t^{2d-1} - t^{2d-2} + \\dots + t - 1}.\n$$\nand\n$$\nb \\geq \\frac{1}{d} \\lim_{t \\to 1^-} \\frac{dt^{2d} - (t^{2d-1} + t^{2d-3} + \\dots + t)}{t^{2d-1} - t^{2d-2} + \\dots + t - 1},\n$$\nsince the function\n$$\n\\frac{dt^{2d} - (t^{2d-1} + t^{2d-3} + \\dots + t)}{t^{2d-1} - t^{2d-2} + \\dots + t - 1}\n$$\nhas a limit as $t$ approaches 1. Thus, we find that\n$$\n\\lim_{t \\to 1^+} \\frac{dt^{2d} - (t^{2d-1} + t^{2d-3} + \\dots + t)}{t^{2d-1} - t^{2d-2} + \\dots + t-1} = \\lim_{t \\to 1^-} \\frac{dt^{2d} - (t^{2d-1} + t^{2d-3} + \\dots + t)}{t^{2d-1} - t^{2d-2} + \\dots + t-1}.\n$$\nHence,\n$$\nb = \\frac{1}{d} \\lim_{t \\to 1} \\frac{dt^{2d} - (t^{2d-1} + t^{2d-3} + \\dots + t)}{t^{2d-1} - t^{2d-2} + \\dots + t - 1}.\n$$\nFinally note that\n$$\n\\begin{align*}\n& \\frac{dt^{2d} - (t^{2d-1} + t^{2d-3} + \\dots + t)}{t^{2d-1} - t^{2d-2} + \\dots + t-1} \\\\\n&= \\frac{(t^{2d} - t^{2d-1}) + (t^{2d} - t^{2d-3}) + \\dots + (t^{2d} - t)}{(t-1)(t^{2d-2} + t^{2d-4} + \\dots + 1)} \\\\\n&= \\frac{(t-1)(t^{2d-1} + t^{2d-3}(t^2+t+1) + \\dots + t(t^{2d-2} + \\dots + 1))}{(t-1)(t^{2d-2} + t^{2d-4} + \\dots + 1)}\n\\end{align*}\n$$\nThus,\n$$\n\\lim_{t \\to 1} \\frac{dt^{2d} - (t^{2d-1} + t^{2d-3} + \\dots + t)}{t^{2d-1} - t^{2d-2} + \\dots + t - 1}\n$$\n$$\n= \\lim_{t \\to 1} \\frac{t^{2d-1} + t^{2d-3} (t^2 + t + 1) + \\dots + t (t^{2d-2} + \\dots + 1)}{t^{2d-2} + t^{2d-4} + \\dots + 1} = \\frac{d^2}{d} = 1.\n$$\nThat is, $b = \\frac{1}{d}$ and $d = 1$.", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 32798, "subject": "Mathematics (Multi-modal)", "question": "Consider a triangle $\\triangle ABC$ with circumcenter $O$ and incenter $I$. The incircle touches sides $BC$, $CA$ and $AB$ at $D$, $E$ and $F$, respectively. Let $K$ be a point such that $KF$ is tangent to circumcircle of $\\triangle BFD$ and $KE$ is tangent to circumcircle of $\\triangle CED$. Prove that $BC$, $OI$ and $AK$ are concurrent.", "options": [], "answer": "Detailed solution", "solution": "Note that\n$$\n\\frac{XB}{XC} = \\frac{\\sin \\angle XOB}{\\sin \\angle XOC} = \\frac{\\sin \\angle IOB}{\\sin \\angle IOC}.\n$$\nWhich is equivalent to\n$$\n\\frac{\\sin\\left(\\frac{\\angle C}{2}\\right)}{\\sin\\left(\\frac{|\\angle B - \\angle A|}{2}\\right)} \\cdot \\frac{\\sin\\left(\\frac{|\\angle B - \\angle A|}{2}\\right)}{\\sin\\left(\\frac{\\angle C}{2}\\right)}.\n$$\nUsing Ceva's theorem in triangle $\\triangle BOC$ for point $I$. Now, by the Ratio lemma, we have\n$$\n\\frac{YB}{YC} = \\frac{c}{b} \\cdot \\frac{\\sin \\angle YAB}{\\sin \\angle YAC} = \\frac{c}{b} \\cdot \\frac{\\sin \\angle KAF}{\\sin \\angle KAE}.\n$$\nBy Ceva's theorem in $\\triangle AEF$ for point $K$, we have\n$$\n\\frac{\\sin \\angle KAF}{\\sin \\angle KAE} = \\frac{\\sin \\angle KEF}{\\sin \\angle KEA} \\cdot \\frac{\\sin \\angle KFA}{\\sin \\angle KFE} = \\frac{\\sin(90^\\circ - \\frac{\\angle B}{2})}{\\sin(90^\\circ - \\frac{\\angle C}{2})} \\cdot \\frac{\\sin(\\frac{\\angle B}{2})}{\\sin(\\frac{\\angle C}{2})}.\n$$\nSo we have just to prove that\n$$\n\\begin{gather*} \\frac{c}{b} \\cdot \\frac{\\sin(90^\\circ - \\frac{\\angle B}{2})}{\\sin(90^\\circ - \\frac{\\angle C}{2})} = \\frac{\\sin(\\frac{\\angle C}{2})}{\\sin(\\frac{\\angle B}{2})} \\\\ \\iff \\frac{\\sin \\angle C}{\\sin \\angle B} \\cdot \\frac{\\cos(\\frac{\\angle B}{2})}{\\cos(\\frac{\\angle C}{2})} = \\frac{\\sin(\\frac{\\angle C}{2})}{\\sin(\\frac{\\angle B}{2})}. \\end{gather*}\n$$\nWhich is obviously true since $\\sin x = 2 \\sin(\\frac{x}{2}) \\cos(\\frac{x}{2})$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32799, "subject": "Mathematics (Multi-modal)", "question": "Let $n > 2$ be a natural number. Prove that the following equation has no solution $x_1, x_2, \\dots, x_n$ in positive integers numbers greater than 1:\n$$\n(x_1x_2\\dots x_n)^2 = x_1^3 + x_2^3 + \\dots + x_n^3\n$$", "options": [], "answer": "Detailed solution", "solution": "Assume that $(x_1, x_2, \\dots, x_n)$ is a solution to the equation. Without loss of generality, let $x_n \\ge x_{n-1} \\ge \\dots \\ge x_1$. Since $(x_1x_2\\dots x_n)^2$ is divisible by $x_n^2$, we have\n$$\nx_n^2 \\mid x_1^3 + x_2^3 + \\dots + x_{n-1}^3 \\implies x_n^2 \\le x_1^3 + x_2^3 + \\dots + x_{n-1}^3.\n$$\nOn the other hand,\n$$\n(x_1x_2\\dots x_n)^2 = x_1^3 + x_2^3 + \\dots + x_n^3\n$$\nSo,\n$$\nnx_n^3 \\ge (x_1x_2\\dots x_n)^2 \\implies x_n \\ge \\frac{(x_1x_2\\dots x_{n-1})^2}{n}.\n$$\nCombining these two facts, we get\n$$\n\\begin{align*}\nx_1^3 + x_2^3 + \\dots + x_{n-1}^3 &\\ge \\frac{(x_1x_2\\dots x_{n-1})^4}{n^2} \\\\\nimplies (n-1)x_{n-1}^3 &\\ge \\frac{(x_1x_2\\dots x_{n-1})^4}{n^2} \\\\\nimplies n^2(n-1) &\\ge x_1^4 x_2^4 \\dots x_{n-2}^4 x_{n-1}.\n\\end{align*}\n$$\nSince for every index $i$, we have $x_i \\ge 2$, we'll get\n$$\nn^2(n-1) \\ge 2^{4n-7}.\n$$\nWhich is obviously wrong for $n \\ge 2$ and we're done.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 32800, "subject": "Mathematics (Multi-modal)", "question": "We call an integer number $n > 0$ interesting if for each permutation $\\sigma$ of $1, 2, \\dots, n$ there exist polynomials $P_1, P_2, \\dots, P_n$ and $\\epsilon > 0$ such that:\n$$\ni)\\ P_1(0) = P_2(0) = \\dots = P_n(0).\n$$\n$$\nii)\\ P_1(x) > P_2(x) > \\dots > P_n(x) \\text{ for } -\\epsilon < x < 0.\n$$\n$$\niii)\\ P_{\\sigma(1)}(x) > P_{\\sigma(2)}(x) > \\dots > P_{\\sigma(n)}(x) \\text{ for } 0 < x < \\epsilon.\n$$\nFind all interesting numbers.", "options": [], "answer": "2 and 3", "solution": "Only $n = 2$ and $n = 3$ are interesting.\n\nNote that if $n$ is not interesting, then any integer greater than $n$ is not interesting as well. So we just need to prove that $n = 4$ is not interesting.\n\nWe claim that there is no such example for the case\n$$\nP_2(x) > P_4(x) > P_1(x) > P_3(x)\n$$\nfor infinitesimal positive number $x$.\n\nFor the sake of contradiction, assume that there exists an example. Since $P_i(x) - P_1(x)$ also satisfies the inequality, assume that $P_1(x) = 0$. Then by contradiction, every $P_i(x)$ has constant term zero.\n\nNow, $P_3(x)$ is always negative for values close to $0$. Therefore, the term with the minimal degree in $P_3(x)$ is of the form $-a x^{2b}$, for some positive real number $a$ and positive integer $b$. Analogously, for $P_2(x), P_4(x)$, the terms of the minimal degrees are of the form $a x^{2b-1}$, for some positive real number $a$ and positive integer $b$. Let\n$$\n\\begin{align*}\nP_2(x) &= a_2 x^{2b_2-1} + \\dots \\\\\nP_3(x) &= -a_3 x^{2b_3} + \\dots \\\\\nP_4(x) &= a_4 x^{2b_4-1} + \\dots\n\\end{align*}\n$$\nwhere every $a_i$ is a positive real number and every $b_j$ is a positive integer. Since $P_2(x) > P_3(x) > P_4(x)$ for $x < 0$, therefore\n$$\n2b_2 - 1 > 2b_3 > 2b_4 - 1 \\implies b_2 > b_3 > b_4 \\implies P_2(x) < P_4(x),\n$$\nfor all sufficiently small positive real numbers $x$, contradicting the assumption $P_2(x) > P_4(x) > 0 > P_3(x)$.\n\nBut we claimed that $n = 2, 3$ are interesting. The case $n = 2$ is trivial and for $n = 3$, we have\n$$\nP_i(x) = x Q_i(x) + c.\n$$\nIf $\\sigma(i) = i$, we need to find polynomials $Q_i$ such that $Q_1(x) < Q_2(x) < Q_3(x)$ for $x \\in (-\\epsilon, 0)$ and $Q_1(x) > Q_2(x) > Q_3(x)$ for $x \\in (0, \\epsilon)$. It's clear that linear polynomials will work.\n\nIf $\\sigma(1) = 1, \\sigma(2) = 3$ and $\\sigma(3) = 2$, let $Q_1(x) = 0$ and $Q_2(x), Q_3(x)$ be linear polynomials passing through point $0$ with negative leading coefficient. Other permutations are the same and we're done. ■", "topic": "Discrete Mathematics", "subtopic": "Combinatorics" }, { "id": 32801, "subject": "Mathematics (Multi-modal)", "question": "Let $S$ be an infinite set of positive integers, define:\n$$\nT = \\{x + y \\mid x, y \\in S, x \\neq y\\}.\n$$\nSuppose that there are only finitely many primes $p$ such that:\na) $p \\equiv 1 \\pmod 4$.\nb) There exists a positive integer $s$ such that $p \\mid s$, $s \\in T$.\nProve that there are infinitely many primes that divide at least one element of $S$.", "options": [], "answer": "Detailed solution", "solution": "Assume the contrary, that there exist only finitely many prime numbers that divide an element of $S$. Let's denote them $p_1, p_2, \\dots, p_t$. Take\n$$\nx_1, x_2, \\dots, x_{2mt+1} \\in S.\n$$\nFor every $x \\in S$ we can write it as\n$$\nx = p_1^{\\alpha_1} p_2^{\\alpha_2} \\dots p_t^{\\alpha_t}.\n$$\nThe pigeonhole principle implies that there exist two indices $i, j$ such that if\n$$\nx_i = p_1^{\\alpha_1} p_2^{\\alpha_2} \\dots p_t^{\\alpha_t} \\quad \\text{and} \\quad x_j = p_1^{\\beta_1} p_2^{\\beta_2} \\dots p_t^{\\beta_t},\n$$\nthen $\\alpha_k \\equiv \\beta_k \\pmod{2^m}$ for all $k$. So we have\n$$\nx_i + x_j = p_1^{\\theta_1} p_2^{\\theta_2} \\dots p_t^{\\theta_t} (a^{2^m} + b^{2^m}),\n$$\nwhere $a \\neq b$, $ab \\neq 0$ and $\\gcd(a, b) = 1$. So if $q$ is an odd prime such that\n$$\nq \\mid a^{2^m} + b^{2^m},\n$$\nthen we'll have $q \\equiv 1 \\pmod{2^m}$ (it is obvious since $\\operatorname{ord}_q\\left(\\frac{a}{b}\\right) = 2^{m+1}$). And if we take $m$ large enough such that $2^m > p_1, p_2, \\dots, p_t$, we'll have $q = 1$. Contradiction.\n\nNow it's enough to show that there exists an odd prime divisor of $a^{2^m} + b^{2^m}$ where $a \\neq b$, $ab \\neq 0$ and $\\gcd(a, b) = 1$ for every large enough $m$. For this, note that $a^{2^m} + b^{2^m} > 2^m$ and $a^{2^m} + b^{2^m} \\equiv 1, 2 \\pmod{8}$. $\\blacksquare$", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32802, "subject": "Mathematics (Multi-modal)", "question": "Given a function $g : [0, 1] \\to \\mathbb{R}$ such that for every non-empty partition of the interval $[0, 1]$ into subsets $A, B$ either $\\exists x \\in A : g(x) \\in B$ or $\\exists x \\in B : g(x) \\in A$. Furthermore, $g(x) > x$ for all $x \\in [0, 1]$. Prove that $g(x) = 1$, for infinitely many $x$ in its domain.", "options": [], "answer": "Detailed solution", "solution": "Let $S_1 = \\{1\\}$ and for every $i \\ge 1$,\n$$\nS_{i+1} = \\{x \\mid g(x) \\in S_i\\} - \\{1\\}.\n$$\nAlso,\n$$\n\\bigcup_{i=1}^{\\infty} S_i = A = \\{x \\mid \\exists n \\ge 0 : g^n(x) = 1\\}.\n$$\nClearly $A$ is non-empty. If $[0, 1] - A = B$ is also non-empty, partitions $A, B$ of $[0, 1]$ will lead to a contradiction:\nIf $x \\in A$:\n$$\n\\exists i : x \\in S_i \\implies g(x) \\in S_{i-1} \\subseteq A.\n$$\nAnd if $g(x) \\in A$:\n$$\n\\exists i : g(x) \\in S_i \\implies x \\in S_{i+1} \\subseteq A.\n$$\nTherefore, $B$ is non-empty. Now if $S_2$ has a finite number of elements, it has an element that is largest of all the elements. Let us denote it by $z$. Since $g(x) > x$,\n$$\n\\max(x \\mid x \\in S_{i+1}) \\leq \\max(x \\mid x \\in S_i).\n$$\nTherefore, all the elements of $A$ except $1$ are less than or equal to $z$. So, the non-empty interval $(z, 1)$ doesn't exist in $A$, which is a contradiction. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32803, "subject": "Mathematics (Multi-modal)", "question": "Consider a triangle $\\triangle ABC$ with incenter $I$. Let $D$ be the intersection point of $BI$ and $AC$, and let $CI$ intersect the circumcircle of $\\triangle ABC$ at $M$. Point $K$ lies on the line $MD$ such that $\\angle KIA = 90^\\circ$. Let $F$ be the reflection of $B$ with respect to $C$. Prove that $BIKF$ is cyclic.", "options": [], "answer": "Detailed solution", "solution": "Let $E$ be the intersection point of line $MK$ and the circumcircle of $\\triangle ABC$, then, since $\\angle BEM = \\frac{\\angle C}{2}$ and $\\angle DIK = 90 - \\angle AID$, so $\\angle BEM = \\angle DIK$, it follows that the points $B$, $I$, $K$, $E$ lie on a circle. Suppose $BC$ intersects this circle at point $F'$, other than $B$. Let $N$ be the intersection point of line $BD$ and the circumcircle of $\\triangle ABC$ and $G$ be where lines $CM$ and $BK$ meet.\n\n![](attached_image_1.png)\n\nSince $MN \\perp AI$, noting the parallel lines, we have\n$$\n\\frac{IK}{MN} = \\frac{ID}{DN}.\n$$\nNow we have\n$$\n\\frac{ID}{DN} = \\frac{\\sin(\\frac{\\angle C}{2})}{\\sin(\\frac{\\angle B}{2})} \\cdot \\frac{CI}{NC},\n$$\nand\n$$\n\\frac{CI}{NC} = \\frac{BI}{MI},\n$$\nso we have\n$$\n\\frac{IK}{MN} = \\frac{\\sin(\\frac{\\angle C}{2})}{\\sin(\\frac{\\angle B}{2})} \\cdot \\frac{CI}{NC} = \\frac{BI}{MI}.\n$$\nOn the other hand, since $MI = MB$ we have\n$$\n\\frac{MN}{MI} = \\frac{\\sin(90^\\circ - \\frac{\\angle A}{2})}{\\sin(\\frac{\\angle C}{2})}.\n$$\nSo we get\n$$\nKI \\cdot \\sin(\\frac{\\angle B}{2}) = BI \\cdot \\sin(90^\\circ - \\frac{\\angle A}{2}),\n$$\nand that easily gives us $S_{\\triangle MIB} = S_{\\triangle MIK}$. Then we have $BG = GK$ and since $\\angle KF'B = \\angle KID = \\frac{\\angle C}{2}$ we have $KF' \\parallel IC$ so $F' \\equiv F$. Thus, $BIKF$ is cyclic as desired. ■", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32804, "subject": "Mathematics (Multi-modal)", "question": "Find all functions $f : \\mathbb{N} \\to \\mathbb{N}$ such that for any distinct positive integers $x$, $y$, $z$, $x + y + z$ is a perfect square if and only if $f(x) + f(y) + f(z)$ is a perfect square.", "options": [], "answer": "f(n) = k^2 n for some positive integer k", "solution": "**Claim i.** $f(x)$ is injective.\n**Proof.** Assume there exist two natural numbers $x_1$ and $x_2$ such that $f(x_1) = f(x_2)$ and $x_1 \\neq x_2$. Now choose $y$ and $z$ such that $y + z = t^2 - x_1$ then we have\n$$\nf(y) + f(z) + f(x_1) = a^2\n$$\nfor some natural number $a$. Therefore,\n$$\nf(y) + f(z) + f(x_1) = f(y) + f(z) + f(x_2) = a^2,\n$$\nso $y + z + x_2$ must be square of some natural number $s$. Hence\n$$\n|x_1 - x_2| = |t^2 - s^2| \\neq 0\n$$\nand we have\n$$\n|t^2 - s^2| \\geq 2|t| - 1.\n$$\nIf we choose $t$ large enough it gives us a contradiction.\n\n**Claim ii.** For any $x, y \\in \\mathbb{N}$ we have $f(x + 1) - f(x) = f(y + 1) - f(y)$.\n**Proof.** Assume some arbitrary $x_0$ and $y_0$ with $x_0 \\geq 2$, and choose $z = t^2 - x_0 - y_0$ for some large $t$. Then\n$$\nf(x_0) + f(y_0) + f(z) = a^2,\n$$\nand\n$$\nf(x_0 - 1) + f(y_0 + 1) + f(z) = b^2.\n$$\nSo we have\n$$\n|f(x_0) + f(y_0) - f(x_0 - 1) + f(y_0 + 1)| = |a^2 - b^2|.\n$$\nAssume that $f(x_0) + f(y_0) - f(x_0 - 1) + f(y_0 + 1) \\neq 0$. If we choose $z$ large enough, $f(z)$ is a large number too (it's trivial because of the injectivity). But we know\n$$\n|f(x_0) + f(y_0) - f(x_0 - 1) + f(y_0 + 1)| = |a^2 - b^2| \\geq 2|a| - 1.\n$$\nThat means $f(z)$ has an upper bound. Contradiction.\n\nClaim ii implies that $f(x)$ is a linear function so $f(x) = a x + b$ and\n$$\na(x + y + z) + 3b,\n$$\nbecomes a perfect-square if and only if\n$$\nx + y + z,\n$$\ndoes. That means $a t^2 + 3b$ is a perfect-square for any $t \\in \\mathbb{N}$. In particular $a(a t^2 + 3b) + 3b = t'^2$ hence\n$$\n3ba + a = t'^2 - t^2,\n$$\nwhich is a contradiction unless $3ba + 3b = 0$ (because the left hand side is either 0 or very big for big $t$). Now obviously $a > 0$ and we get $b = 0$, $a = n^2$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32805, "subject": "Mathematics (Multi-modal)", "question": "$\\omega$ is a circle with diameter $AB$. Points $C, D$ lie on $\\omega$ such that $C, D$ are on different sides of $AB$. A line passing through $C$ and parallel to $AD$ cuts $AB$ at $F$, and a line passing through $D$ and parallel to $AC$ cuts $AB$ at $E$. $A, B, C$ and $D$ are in a way that $E, F$ are inside $\\omega$. The line passing through $E$ and perpendicular to $AB$ cuts $BD$ at $X$ and the line passing through $F$ and perpendicular to $AB$ cuts $BC$ at $Y$. Prove that the perimeter of triangle $\\triangle AXY$ equals to $2CD$.", "options": [], "answer": "Detailed solution", "solution": "Let $K$ be the intersection point of $CD$, $AX$ and $L$ be the intersection point of $CD$, $AY$.\n\n![](attached_image_1.png)\n\nThen, since $DAEX$ is a cyclic quadrilateral, we have\n$$\n\\angle KDX = \\angle BAC = \\angle AED = \\angle AXD \\implies DK = KX = AK.\n$$\nSimilarly, $AL = LY = LC$. By Thales's theorem, we have $XY = 2KL$. Therefore\n$$\nAX + XY + AY = AK + KL + LA = KD + KL + LC = CD\n$$\nWhich completes the proof.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32806, "subject": "Mathematics (Multi-modal)", "question": "Let $A_1, A_2, \\dots, A_k$ be points on the unit circle. Prove that\n$$\n\\sum_{1 \\le i < j \\le k} d(A_i, A_j)^2 \\le k^2,\n$$\nwhere $d(A_i, A_j)$ denotes the distance between $A_i, A_j$.", "options": [], "answer": "Detailed solution", "solution": "Assume that the circle mentioned in the problem is the unit circle on the complex plane. Then we can say every vertex $A_i$ is equivalent to a complex number $z_i$ such that $|z_i| = 1$. On the other hand we have $d(A_i, A_j) = |z_i - z_j|$. So we should prove that\n$$\n\\sum_{1 \\le i < j \\le k} |z_i - z_j|^2 \\le k^2.\n$$\nWe know that\n$$\n|z_i - z_j|^2 = (z_i - z_j)(\\bar{z}_i - \\bar{z}_j) = |z_i|^2 + |z_j|^2 - (\\bar{z}_i z_j + \\bar{z}_j z_i) = 2 - \\bar{z}_i z_j - \\bar{z}_j z_i.\n$$\nSo we have\n$$\n\\sum_{1 \\le i < j \\le k} |z_i - z_j|^2 = 2 \\binom{k}{2} - \\sum_{1 \\le i < j \\le k} (\\bar{z}_i z_j + \\bar{z}_j z_i).\n$$\nand\n$$\n\\begin{align*}\n\\sum_{1 \\le i < j \\le k} (\\bar{z}_i z_j + \\bar{z}_j z_i) &= \\sum_{1 \\le i \\ne j \\le k} \\bar{z}_i z_j = \\sum_{1 \\le i \\le k} \\bar{z}_i (z_1 + \\dots + z_k - z_i) \\\\\n&= \\left( \\sum_{1 \\le i \\le k} \\bar{z}_i \\right) \\left( \\sum_{1 \\le i \\le k} z_i \\right) - k = \\left| \\sum_{1 \\le i \\le k} z_i \\right|^2 - k.\n\\end{align*}\n$$\nTherefore,\n$$\n\\sum_{1 \\le i < j \\le k} |z_i - z_j|^2 = k^2 - k - \\left( \\left| \\sum_{1 \\le i \\le k} z_i \\right|^2 - k \\right) = k^2 - \\left| \\sum_{1 \\le i \\le k} z_i \\right|^2.\n$$\nSince $\\left| \\sum_{1 \\le i \\le k} z_i \\right|^2 \\ge 0$, we have\n$$\n\\sum_{1 \\le i < j \\le k} |z_i - z_j|^2 \\le k^2.\n$$\nEquality holds whenever $\\sum_{1 \\le i \\le k} z_i = 0$, in other words, when the circumcenter and the centroid of $A_1A_2\\dots A_k$ coincide.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32807, "subject": "Mathematics (Multi-modal)", "question": "Polynomial $x^{1398} + 1$ is written on the board. Roozbeh and Keyvan play the following game in turns. Starting from Roozbeh, each player in their turn chooses an integer $0 \\le k \\le 1398$ and adds up $x^k$ with the polynomial on the board. Each time after Keyvan's turn, if there exists a real number $x$ such that the polynomial on the board takes negative value,\n\nRoozbeh wins and Keyvan loses. Otherwise, the game continues. Prove that no matter how Roozbeh plays, Keyvan can play in a way that he never loses.", "options": [], "answer": "Detailed solution", "solution": "**Lemma.** If $1 \\le k_1 < k_2 < \\dots < k_t \\le n-1$ be natural numbers, then\n$$\n\\forall x \\in \\mathbb{R} : x^{2n} + \\sum_{i=1}^{t} (x^{2k_i+1} + x^{2k_i}) + 1 > 0.\n$$\n*Proof.* If $x > 0$, it's trivial. So let's assume that $x < 0$. If $-1 \\le x < 0$, we write\n$$\nx^{2n} + \\sum_{i=1}^{t} (x^{2k_i+1} + x^{2k_i}) + 1\n$$\nas\n$$\nx^{2n} + 1 + (x+1) \\sum_{i=1}^{t} x^{2k_i}.\n$$\nSince $x + 1 \\ge 0$ and $\\sum_{i=1}^{t} x^{2k_i} \\ge 0$, we have\n$$\nx^{2n} + 1 + (x + 1) \\sum_{i=1}^{t} x^{2k_i} > 0.\n$$\nIf $x < -1$, then $x + 1 < 0$ and $x^{2k+1} < x < 1$. So, $x^{2n+1}(x^{2k+1} + 1) > 0$. Therefore, we can re-write\n$$\nx^{1398} + \\sum_{i=1}^{t} (x^{2k_i+1} + x^{2k_i}) + 1\n$$\nas\n$$\n(x^{1398} - (2k_t + 1) + 1) x^{2k_t + 1} + \\sum_{i=1}^{t-1} x^{2k_1+1} (x^{2k_{i+1}} - (2k_i + 1)) + 2^{2k_1} + 1\n$$\nwhere $1 \\le k_1 \\le k_2 \\le \\dots \\le \\frac{1396}{2}$. So, it is positive. $\\square$\n\nBack to the problem. When Roozbeh chooses $x^k$, if $k$ is an even number, Keyvan should choose $x^k$ as well. But, if $k$ is an odd number, and if coefficient of $x^k$ is odd, Keyvan should choose $x^{k-1}$ and if coefficient of $x^k$ is even, Keyvan should play $x^{k+1}$. Obviously after Keyvan's move, the polynomial will be in the following form:\n$$\nx^{1398} \\sum_{i=1}^{m} (x^{s_i} + x^{s_i-1})^2 + 2 \\sum_{i=1}^{n} x^{2t_i} + \\sum_{i=1}^{l} (x^{2k_i+1} + x^{2k_i}) + 1.\n$$\nWhere\n$$\n1 \\le s_1 \\le s_2 \\le \\dots \\le s_m \\le \\frac{1398}{2},\n$$\n$$\n0 \\le t_1 \\le t_2 \\le \\dots \\le t_n \\le \\frac{1398}{2},\n$$\n$$\n1 \\le k_1 < k_2 < \\dots < k_l \\le 1398.\n$$\nAccording to the lemma we proved, the polynomial should be always positive. $\\blacksquare$", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 32808, "subject": "Mathematics (Multi-modal)", "question": "Let $k \\in \\mathbb{Z}$ prove that there are infinitely many pairs of distinct positive integer numbers $n, m$ such that\n$$\n\\begin{aligned}\nn + S(2n) &= m + S(2m), \\\\\nkn + S(n^2) &= km + S(m^2),\n\\end{aligned} \n$$\nwhere $S(n)$ is the sum of the digits of $n$ to base 10.", "options": [], "answer": "Detailed solution", "solution": "Let $P_k$ be the set of solutions of\n$$\n\\begin{cases} n + S(n) = m + S(m), \\\\ kn + S(kn) = km + S(km). \\end{cases}\n$$\nWe want to map a single solution $(m_0, n_0) \\in P_k$, where $10 \\nmid m_0, n_0$, to infinite solutions like $(m_1, n_1)$, where $(m_1, n_1) \\in P_{k+1}$ or $(m_1, n_1) \\in P_{k-1}$ and $10 \\nmid m_1, n_1$.\nIf $(m_0, n_0)$ be a solution in $P_k$, then we claim that $(m_0 + 10^\\alpha, n_0 + 10^\\alpha)$ is a solution in $P_{k+1}$ for every large $\\alpha$. It follows by the same easy calculations and noting that\n$$\nS(n^2 + 2 \\times 10^\\alpha n + 10^{2\\alpha}) = S(n^2) + S(2n) + 1,\n$$\nfor all large $\\alpha$.\nAnd if $(m_0, n_0)$ is a solution in $P_k$ where $10 \\nmid m_0, n_0$, then we replace them by $(10^\\alpha - m_0, 10^\\alpha - n_0)$ for all large $\\alpha$ to reach an infinite number of solutions in $P_{k-1}$. Therefore, it's enough to find a simple solution. For example we have $(9, 12) \\in P_0$ and we're done. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32809, "subject": "Mathematics (Multi-modal)", "question": "$P(x)$ is a non-constant monic polynomial with integer coefficients. Assume that $P_1(x), P_2(x), \\dots, P_n(x)$ are monic polynomials with integer coefficients such that for all $1 \\le i \\le n$, $\\deg(P_i) \\ge \\deg(P)$. We know that for any natural number $x$, there exists a natural number $y$ and an index $i$ ($1 \\le i \\le n$), such that $P(x) = P_i(y)$. Prove that there exists an index $j$ ($1 \\le j \\le n$) and a natural number $k$ such that $P(x) = P_j(x+k)$.", "options": [], "answer": "Detailed solution", "solution": "We firstly prove that there exists an index $i$ such that $\\deg P_i(x) = \\deg P(x)$ and $P(x) = P_i(y)$ for infinitely many $x, y \\in \\mathbb{N}$.\nAssume to the contrary. Let the degree of $P_{t+1}(x), \\dots, P_n(x)$ be equal to $\\deg P(x)$ and $\\deg P_i(x) > \\deg P(x)$ for all $i \\in \\{1, 2, \\dots, t\\}$.\nConsider a sufficiently large $N_0$ such that:\n1) $P(x)$ is increasing for all real numbers $x > N_0$.\n2) $P(x) \\neq P_i(y)$ for all positive integers $t+1 \\le i \\le n$ and $x, y$.\n3) $P_i(x) > P(kx)$ for all positive integers $1 \\le i \\le t$, all real numbers $x > N_0$, and a fixed number $k > t$.\n4) $P_i(x)$ is increasing for all positive integers $1 \\le i \\le t$ and every $x > N_0$.\nThen, let's assume that\n$$\nP(N_0 + 1) < \\dots < P(kN_0).\n$$\nWe know every one of them is in the form of $P_i(y)$. Where $1 \\le i \\le t$ and $y$ is a natural number.\nIf we have $P(N_0 + i) = P_j(x_i)$ for some $j$, then we have $x_i \\le N_0$. So, we at most have $N_0$ numbers in form of $P_j(y)$ between $P(N_0 + 1), \\dots, P(kN_0)$. Therefore, we at most have $tN_0$ numbers between them. And since $k > t$, it gives us a contradiction.\nSo we must have an index $i$ such that the equation $P(x) = P_i(y)$ has infinitely many solutions and $\\deg P_i(x) = \\deg P(x)$. We want to prove that if $P(x) = P_i(y)$, then $|x - y|$ has a fixed upper bound.\nWithout loss of generality, assume that the leading coefficient of $P(x) - P_i(x)$ is positive. Then, assume a sufficiently large $N_1$ such that $P(x), P_i(x)$ and $P(x) - P_i(x)$ are increasing for all real numbers $x > N_1$. Then, if $x, y > N_1$, $P(x) = P_i(y)$, we have $x \\ge y$ since $P(x) \\ge P_i(x) \\ge P_i(y)$. If we take a sufficiently large $x$ we can find out that $y$ becomes large as well. Then if\n\n$$\nP(x) = x^d + a_{d-1}x^{d-1} + \\cdots + a_0 \\quad d \\ge 2,\n$$\n$$\nP_i(x) = x^d + b_{d-1}x^{d-1} + \\cdots + b_0,\n$$\nthen,\n$$\n\\begin{align*}\nx^d - y^d &= b_{d-1}y^{d-1} + \\cdots + b_0 - (a_{d-1}x^{d-1} + \\cdots + a_0) \\\\\n\\implies |x^d - y^d| &\\le c \\sum_{i=1}^{d-1} |x|^i + |y|^i \\le cd (x^{d-1} - y^{d-1}) \\\\\n\\implies \\frac{|x^d - y^d|}{x^{d-1} + y^{d-1}} &= \\frac{x^d - y^d}{x^{d-1} + y^{d-1}} \\le cd.\n\\end{align*}\n$$\nAnd we have\n$$\nx - y \\le \\frac{x^d - y^d}{x^{d-1} + y^{d-1}} \\le cd.\n$$\nSo, $x - y \\le cd$. Therefore, there exists a number $k$ such that $x - y = k$ for infinitely many times.\nThen we get $P(x) = P_i(x - k)$ for infinitely many $x$ and we're done.\nThe case that $\\deg P(x) = 1$ is trivial and if $P(x) - P_i(x) = c$, then we'll have $P(x) = P_i(y)$ and $P_i(y) - P_i(x) = c$. Consider sufficiently large $x, y$ such that $P_i(x)$ is increasing. If $x \\ne y$,\n$$\nP_i(y) \\ge P_i(x+1) \\implies P_i(x+1) - P_i(x) \\le c\n$$\nfor infinitely many $x$. So, $P_i(x)$ should be linear and we're done. ■", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 32810, "subject": "Mathematics (Multi-modal)", "question": "Let $T$ be a triangulation of a convex 100-gon. We construct $P(T)$ by copying the same 100-gon and drawing a diagonal if it was not drawn in $T$, and there is a quadrilateral with this diagonal and two other vertices so that all its sides and the other diagonal are in $T$. Let $f(T)$ be the number of intersections of diagonals in $P(T)$. Find the minimum and maximum of $f(T)$.", "options": [], "answer": "minimum 96, maximum 144", "solution": "Call two triangles in $T$ adjacent if they share an edge. First note that for any diagonal $d$ drawn in $P(T)$, there are two adjacent triangles of $T$ such that $d$ is drawn in $P(T)$, because of the quadrilateral formed by these triangles. We call them $d$'s triangles.\nAssume that two diagonals $d_1, d_2$ intersect in $P(T)$. Because the diagonals of the triangulation do not intersect, we can easily find three triangles $t_1, t_2, t_3$ of $T$ such that $t_1, t_2$ are $d_1$'s triangles and $t_2, t_3$ are $d_2$'s triangles.\nOn the other hand, for any three triangles $t_1, t_2, t_3$ of $T$ that $t_2$ is adjacent to $t_1, t_3$, we can find a pair of intersecting diagonals in $P(T)$.\n\nNow construct a graph $G$ of 98 vertices with each vertex corresponding to one of the triangles in $T$ and an edge connecting two vertices if and only if the corresponding triangles are adjacent. Clearly, there are 97 edges in $G$ (equal to the number of diagonals in $T$).\nSo if we let $d_1, d_2, \\dots, d_{98}$ be the degrees of the vertices of $G$ (where $1 \\le d_i \\le 3$ for all $1 \\le i \\le 98$), then the number of pairs of edges in the graph sharing a vertex is:\n$$\n\\sum_{i=1}^{98} \\binom{d_i}{2}\n$$\nLet $r, s, t$ be the number of vertices with degree 1, 2, 3, respectively. Obviously $r + s + t = 98$. Also we have $\\sum_{i=1}^{98} d_i = 2 \\times 97 = r + 2s + 3t$. Note that $\\sum_{i=1}^{98} \\binom{d_i}{2} = s + 3t$. So we can conclude that\n$$\nf(T) = \\sum_{i=1}^{98} \\binom{d_i}{2} = r + 4 \\times 97 - 3 \\times 98 = r + 94.\n$$\nAny vertex of degree 1 in $G$, corresponds to a triangle of the triangulation that shares 2 edges with the 100-gon. So $r \\le 50$. On the other hand, we can easily prove by induction that $2 \\le r$. So $96 \\le r + 94 \\le 144$.\nAs for the construction, for the minimum, simply draw all diagonals going from one vertex. For the maximum, simply cut off 50 triangles sharing 2 edges with the 100-gon and then triangulate the resulting 50-gon arbitrarily.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32811, "subject": "Mathematics (Multi-modal)", "question": "$$\nP(x) = a_n x^n + a_{n-1} x^{n-1} + \\dots + a_1 x + a_0\n$$\nwith integer coefficients *primitive* if and only if $\\text{gcd}(a_n, a_{n-1}, \\dots, a_1, a_0) = 1$.\na) Let $P(x)$ be a primitive polynomial with degree less than $1398$ and $S$ be a subset of primes greater than $1398$. Prove that there is a positive integer $n$ so that $P(n)$ is not divisible by any prime in $S$.\nb) Prove that there exists a primitive polynomial $P(x)$ with degree less than $1398$ such that for each *natural* number $n$, $P(n)$ is divisible by every prime less than $1398$.\n$$", "options": [], "answer": "Detailed solution", "solution": "a) We know that for every polynomial $P(x)$ with degree $n$, the equation $P(x) \\equiv 0 \\pmod{p}$ has at most $n$ distinct roots modulo $p$, for every prime number $p$. Then for every $p_i \\in S$ we have some $t_i \\in \\{1, 2, \\dots, p\\}$ where $p_i \\nmid P(t_i)$. Now choose $t$ by Chinese Remainder Theorem such that $t \\equiv t_i \\pmod{p_i}$. Then for every $p_i \\in S$ we have $p_i \\nmid P(t)$.\n\nb) Put\n$$\nP(x) = x(x - 1) \\dots (x - 1396) + 1398!\n$$\nNote that $1397$ and $1398$ are composite numbers. Then obviously for any $p \\le 1398$ and $n \\in \\mathbb{N}$ there exists an $a_i$ such that $1 \\le a_i \\le 1398$ and $n \\equiv a_i \\pmod{p_i}$. Therefore $p_i \\mid P(n)$ and since $P(x)$ is monic it satisfies our desired conditions.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32812, "subject": "Mathematics (Multi-modal)", "question": "In acute-angled triangle $\\triangle ABC$, altitudes $BE, CF$ meet at $H$. A perpendicular line is drawn from $H$ to $EF$ and intersects arc $BC$ of the circumcircle of $\\triangle ABC$ (the one that doesn't contain $A$) at $K$. If $AK, BC$ meet at $P$, prove that $PK = PH$.", "options": [], "answer": "Detailed solution", "solution": "Without loss of generality, let's assume that $AC \\ge AB$. Let $D$ be the second intersection point of line $AH$ and the circumcircle of $\\triangle ABC$ and let $O$ be circumcenter of $\\triangle ABC$. Let the lines $OD$ and $BC$ meet at $J$. Then we have $\\angle JDH = \\angle JHD$ since $BC$ is perpendicular bisector of $HD$. On the other hand $\\angle DCA = 90 - \\angle B + \\angle C$ so we have $\\angle ODH = \\angle B - \\angle C$. Therefore $JH \\parallel AO$, since $AO \\perp EF$ so we get that $JH \\perp EF$ and $J$ lies on the line $KH$. Note that\n$$\n\\angle PKD = \\angle AKD = 90^\\circ - \\angle B + \\angle C.\n$$\nAlso\n$$\n\\angle OJP = \\angle OJC = \\angle CDJ + \\angle DCJ = \\angle C + 90^\\circ - \\angle B.\n$$\nTherefore $\\angle OJP = \\angle PKD$ and $JDKP$ is cyclic and $\\angle PKH = \\angle PKJ = \\angle PDJ$. But we have $\\angle PDJ = \\angle PHJ = \\angle PHK$ since $D$ is the reflection of $H$ with respect to $PJ$. So $\\angle PKH = \\angle PHK$ which gives us $PK = PH$ as desired.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32813, "subject": "Mathematics (Multi-modal)", "question": "Let $a$, $b$, $c$ be non-zero distinct real numbers so that there exist functions $f$, $g : \\mathbb{R}^+ \\to \\mathbb{R}$ so that\n$$\na f(xy) + b f\\left(\\frac{x}{y}\\right) = c f(x) + g(y)\n$$\nfor all positive real $x$ and large enough $y$.\nProve that there exists a function $h : \\mathbb{R}^+ \\to \\mathbb{R}$ so that\n$$\nf(xy) + f\\left(\\frac{x}{y}\\right) = 2f(x) + h(y)\n$$\nfor all positive real $x$ and large enough $y$.", "options": [], "answer": "Detailed solution", "solution": "Putting $xy$, $\\frac{x}{y}$ instead of $x$, we find that\n$$\na f(xy^2) + b f(y) = c f(xy) + g(y)\n$$\nand,\n$$\na f(x) + b f\\left(\\frac{x}{y^2}\\right) = c f\\left(\\frac{x}{y}\\right) + g(y).\n$$\nMultiplying the first equation by $a$ and the second one by $b$, then, adding and using the original equation, we shall find that\n$$\na^2 f(xy^2) + b^2 f\\left(\\frac{x}{y^2}\\right) = (c^2 - 2ab)f(x) + (a + b + c)g(y).\n$$\n\nFurther, putting $y^2$, instead of $y$, in the original equation, one can find that\n$$\na f(xy^2) + b f\\left(\\frac{x}{y^2}\\right) = c f(x) + g(y^2)\n$$\nfor all sufficiently large $y$. Multiplying both sides by $b$, then subtracting, yielding to\n$$\n(a^2 - ab) f(xy^2) = (c^2 - 2ab - ac) f(x) + T(y)\n$$\nFor some function $T(y)$. Putting $y^2$, instead of $y$, we find that\n$$\n(a^2 - ab) f(xy^4) = (c^2 - 2ab - ac) f(x) + T(y^2).\n$$\nThus,\n$$\n(a^2 - ab) (f(xy^4) - f(xy^2)) = T(y^2) - T(y).\n$$\nHence, if $a \\neq b$, we find that\n$$\nf(xy^4) - f(xy^2) = \\frac{T(y^2) - T(y)}{a^2 - ab} = S(y^2)\n$$\nfor some function $S(x)$. That is, $f(xy^4) - f(xy^2) = S\\left(\\frac{xy^4}{xy^2}\\right) = S(y^2)$.\nTherefore,\n$$\n\\underbrace{f(xy^2) - f(x)}_{A(y)} - \\left( \\underbrace{f(x) - f\\left(\\frac{x}{y^2}\\right)}_{B(y)} \\right) = R(y).\n$$\nThat is,\n$$\nf(xy^2) + f\\left(\\frac{x}{y^2}\\right) = 2f(x) + R(y).\n$$\nPutting $\\sqrt{y}$ instead of $y$ we will eventually arrive at the desired conclusion. The remaining cases for $c = 2a$ and $c = -a$ are the same. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32814, "subject": "Mathematics (Multi-modal)", "question": "Consider lattice points of a $6 \\times 7$ grid. We start with two points $A$, $B$. We say two points $X$, $Y$ are connected if one can reflect several times with respect to points $A$, $B$ and reach from $X$ to $Y$. What is the minimum number of connected components, over all choices of $A$, $B$?", "options": [], "answer": "8", "solution": "We claim the answer is $8$. Let us first find the points in a connected component. Let $l_P$ be the line passing through a point $P$ and parallel to $AB$. Let $l'_P$ be the reflection of $l_P$ with respect to $AB$. First note that the reflection of any point $P$ with respect to each of $A$ and $B$ lies on $l'_P$. Hence, any point connected to $P$ lies on $l_P$ or $l'_P$.\n\nWe claim if $P$ is connected to a point $Q$, then $Q$ can be attained by some number of transformations by $\\pm 2\\overrightarrow{AB}$ and at most one reflection with respect to $A$: the combination of any two reflections with respect to $A$, $B$ is a transformation.\n\nTransforming by $\\pm 2\\overrightarrow{AB}$ does not change the parity of coordinates, so if we define an equivalence relation $P \\equiv Q$ if and only if $P = Q + 2n\\overrightarrow{AB}$, $n \\in \\mathbb{Z}$, points will form at least $14$ classes. Every connected component has points from at most two classes. Note that $A$ and $B$ are not connected and their components consist of exactly one class, so we have at least $8$ components.\n\nAs an example, which is easy to verify, take the two points having only half a unit distance from the center of the table as $A$, $B$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32815, "subject": "Mathematics (Multi-modal)", "question": "Given an inscribed pentagon $ABCDE$ with circumcircle $\\Gamma$. Line $\\ell$ passes through vertex $A$ and is tangent to $\\Gamma$. Points $X, Y$ lie on $\\ell$ so that $A$ lies between $X$ and $Y$. Circumcircle of triangle $\\triangle XED$ intersects segment $AD$ at $Q$ and circumcircle of triangle $\\triangle YBC$ intersects segment $AC$ at $P$. Lines $XE, YB$ intersect at $S$, and lines $XQ, YP$ at $Z$. Prove that circumcircle of triangles $\\triangle XYZ$ and $\\triangle BES$ are tangent.", "options": [], "answer": "Detailed solution", "solution": "Assume the circumcircles of $\\triangle ABY$ and $\\triangle AEX$ meet for the second time at $K$. Since\n$$\n\\angle KEX = \\angle KAX = 180^\\circ - \\angle KAY = 180^\\circ - \\angle KBY = \\angle KBS,\n$$\nwe find out that $KBES$ is concyclic. We have\n$$\n\\angle YKB = \\angle YAB = \\angle BCA = \\angle PYB,\n$$\n\n$$\n\\angle EKX = \\angle EAX = \\angle ADE = \\angle QXE.\n$$\n\n$$\n\\begin{align*}\n\\angle YZX &= \\angle YSX - \\angle SYZ - \\angle SXZ \\\\\n&= 180^\\circ - (\\angle BKE + \\angle YKB + \\angle EKX) \\\\\n&= 180^\\circ - \\angle YKX.\n\\end{align*}\n$$\nTherefore, $YKX$ is inscribed in a circle called $\\omega$. Let's say the tangent line to $\\omega$ at $K$ meets $XY$ at $T$. We have\n$$\n\\angle TKB = \\angle TKY + \\angle YKB = \\angle KXT + \\angle YAB = \\angle KEA + \\angle AEB = \\angle KEB.\n$$\nAs a result, $TK$ is tangent to the circumcircle of $\\triangle KEB$. So, the two circles are tangent at $K$.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 32816, "subject": "Mathematics (Multi-modal)", "question": "Let $n$ be a positive integer. There are $2n$ red lines and $n$ blue lines in general position given on the plane. Prove that there are at least $\\frac{(n-1)(n-2)}{2}$ regions with a monochromatic perimeter. (An infinite region is also counted as a region with rays and segments forming its perimeter).", "options": [], "answer": "Detailed solution", "solution": "First note that there are totally $\\binom{3n+1}{2} + 1$ regions formed by these lines. So we have to prove that there are at most $\\binom{3n+1}{2} + 1 - \\frac{(n-1)(n-2)}{2} = 4n^2 + 3n$ bi-colored regions.\n\nConsider an arbitrary point $X$ on the plane as \"the infinity point\", such that $X$ is neither inside of any of the finite regions nor any of the $3n$ lines. On each of the $3n$ lines, choose two points as the line's endpoints such that all the intersection points of a line, lie between its two endpoints. Now connect $X$ to all of the endpoints with curved segments in a way that these segments don't intersect at any point except $X$. Color a segment as the color of its corresponding line.\n\nConsider a table in which each of the rows corresponds a bi-colored region, one column corresponds the point $X$, and each of the other columns corresponds a point which is the intersection of a red and a blue line. Write 1 in the intersection of a row and a column, if the column's point lies on the region corresponding the row, and write 0 otherwise.\n\nNow we count the sum of the numbers in two ways. Obviously $X$ lies on $6n$ segments. So it is on at most $6n$ bi-colored regions. Note that these regions are the infinite regions we initially had. An intersection of a red and a blue line is exactly on 4 bi-colored regions. Note that there are exactly $2n \\times n = 2n^2$ such points. So the sum of the numbers written is at most\n$$\n4 \\times 2n^2 + 6n = 8n^2 + 6n.\n$$\n\nOn the other hand, it's easy to find that the sum of the numbers in a row corresponding to a bi-colored (finite or infinite) region is at least 2. So if there are $k$ bi-colored regions, we have\n$$\n8n^2 + 6n \\ge 2k \\Rightarrow 4n^2 + 3n \\ge k\n$$\nas desired.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32817, "subject": "Mathematics (Multi-modal)", "question": "Let $a$, $m$ be positive integers such that $\\text{ord}_m(a)$ is odd and for any integers $x$, $y$ such that:\na) $xy \\equiv a \\pmod{m}$.\nb) $\\text{ord}_m(x) \\le \\text{ord}_m(a)$.\nc) $\\text{ord}_m(y) \\le \\text{ord}_m(a)$.\nWe have either $\\text{ord}_m(x) \\mid \\text{ord}_m(a)$ or $\\text{ord}_m(y) \\mid \\text{ord}_m(a)$. Prove that $\\text{ord}_m(a)$ has at most one prime divisor.", "options": [], "answer": "Detailed solution", "solution": "Assume for a contradiction that $\\text{ord}_m(a)$ has at least two prime factors. Then we can write $\\text{ord}_m(a) = rs$ where $\\gcd(r, s) = 1$ and $r$, $s$ are both greater than $1$. Now take a natural solution pair $(k, \\ell)$ of the equation $ks + r\\ell \\equiv 1 \\pmod{\\varphi(m)}$, that definitely exists by Bézout's theorem, and consider $(x, y) = (-a^{ks}, -a^{r\\ell})$. We claim this choice of $(x, y)$ will contradict the condition of problem. First of all:\n$$\nxy \\equiv a^{ks+r\\ell} \\equiv a \\pmod{m}.\n$$\nWhere the last equality follows from Euler's Theorem. Now we have to prove a lemma:\n**Lemma.** Let $z$, $t$ be natural numbers such that $\\text{ord}_z(t)$ is odd. Then we have $\\text{ord}_z(-t) = 2\\text{ord}_z(t)$.\n**Proof.** Let $\\text{ord}_z(t) = w$ then $(-t)^w \\equiv -1 \\pmod{z}$ and $(-t)^{2w} \\equiv 1 \\pmod{z}$. So $\\text{ord}_z(-t) = 2q$ is even. Therefore if $q < w$ we have $t^{2q} \\equiv 1 \\pmod{z}$ which gives $w \\mid 2q$ and since $w$ is odd we have $w \\mid q$ which is clearly a contradiction.\nUsing the lemma, it is easy to see that $\\text{ord}_m(x) = 2r$ and $\\text{ord}_m(y) = 2s$ which is clearly a contradiction hence $\\text{ord}_m(a)$ has at most one prime factor.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32818, "subject": "Mathematics (Multi-modal)", "question": "We call a monic polynomial $P(x) \\in \\mathbb{Z}[x]$ square-free mod $n$ if there are no polynomials $Q(x), R(x) \\in \\mathbb{Z}[x]$ such that $Q$ being non-constant and\n$$\nP(x) \\equiv Q(x)^2 R(x) \\pmod{n}.\n$$\nGiven a prime $p$ and integer $m \\ge 2$. Find the number of monic square-free mod $p$ polynomials $P(x)$ with degree $m$ and coefficients in $\\{0, 1, 2, 3, \\dots, p-1\\}$.", "options": [], "answer": "φ(p^m)", "solution": "The answer is $1$ for $m = 0$, $p$ for $m = 1$ and $\\varphi(p^m)$ for $m > 1$.\n\nNote that $\\mathbb{Z}_p[x]$ is a unique factorization domain. So any monic $P(x) \\in \\mathbb{Z}_p[x]$ can be uniquely expressed as $P(x) \\equiv A(x)^2 Q(x) \\pmod{p}$, where $A(x), Q(x)$ are monic polynomials and $Q(x)$ is square-free. Let $f_n$ be the number of all square-free monic polynomials of $\\mathbb{Z}_p[x]$ with degree $n$. Any non-square-free monic polynomial can be expressed as $P(x) = A(x)^2 S(x)$ where $S(x)$ is a square-free monic polynomial.\n\nIf $\\deg A(x) = m$, then $S(x) \\in f_{n-2m}$. We have $f_{n-2m}$ options for $S(x)$ and $p^m$ options for $A(x)$. So\n$$\nf_n = p^n - \\sum_{m=1}^{\\lfloor \\frac{n}{2} \\rfloor} f_{n-2m} p^m.\n$$\nAnd by simple induction on $n$ we get $f_n = \\varphi(p^n)$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32819, "subject": "Mathematics (Multi-modal)", "question": "Alice and Bob take turns alternatively on a $2020 \\times 2020$ board with Alice starting the game. In each move every person colors a cell that has not been colored yet and will be rewarded with as many points as the colored cells in the same row and column. When the table is colored completely, the points determine the winner. Who has a winning strategy and what is the maximum difference he/she can guarantee?", "options": [], "answer": "Bob; maximum guaranteed point difference 2020^2/2", "solution": "We claim that Bob has a winning strategy and the maximum point difference he can make sure will happen is $\\frac{2020^2}{2}$.\n\nFirst we show Bob's strategy. Let $\\ell$ be the vertical line that dissects the table into two equal tables. After Alice colors a cell, Bob can easily color the cell symmetric to that cell with respect to $\\ell$. This way, Bob gets the same point Alice got from the column and gets one more point than Alice got from the row, because the cell he colored is in the same row as Alice's cell. So after each move, Bob earns exactly one more point than Alice, which means at the end he has earned $\\frac{2020^2}{2}$ points more than Alice.\n\nNow we show that Alice can make sure the difference will not be greater than $\\frac{2020^2}{2}$ points. In each move, Alice chooses the cell that she can earn the maximum possible points by coloring. Assume that she earns $p$ points by this move. Because it is the maximum choice, any cell that Bob chooses in the next move will be in the same row or column with at most $p+1$ colored cells. This means the point difference in the end will be at most $\\frac{2020^2}{2}$ and we're done.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32820, "subject": "Mathematics (Multi-modal)", "question": "Given a triangle $\\triangle ABC$ with circumcircle $\\Gamma$. Points $E$ and $F$ are the feet of angle bisectors of $B$ and $C$, let $I$ be incenter and $K$ be the intersection point of $AI$ and $EF$. Suppose that $T$ is the midpoint of arc $\\overarc\\{BAC\\}$. Circle $\\Gamma$ intersects the $A$-median and circumcircle of $\\triangle AEF$ for the second time at $X$ and $S$. Let $S'$ be the reflection of $S$ with respect to $AI$ and $J$ be the second intersection point of circumcircle of $\\triangle AS'K$ and $AX$. Prove that quadrilateral $TJIX$ is cyclic.", "options": [], "answer": "Detailed solution", "solution": "Let $P$ be the $A$-mixtilinear touchpoint with $\\Gamma$.\n\n---\n\n![](attached_image_1.png)\nWe know that $P, I$ and $T$ are collinear. First suppose that we have $IJ \\parallel AP$. We have\n$$\n\\angle ITX = \\angle PTX = \\angle PAX = \\angle IJX \\implies \\angle ITX = \\angle IJX.\n$$\nSo, $IJTX$ is cyclic and it suffices to show that $IJ \\parallel AP$. We know that $EF, AT$ and $BC$ are concurrent at some point $Q$. Let $D$ be the intersection point of lines $AI, BC$ and $N$ be the intersection point of line $AI$ and circumcircle of $\\triangle ABC$. Suppose that $QN$ intersects the circumcircle of $\\triangle ABC$ at $X' (X' \\neq N)$ and let $J'$ be the intersection point of the lines $AX'$ and $EF$. We have\n$$\n(AX', BC) \\stackrel\\{N\\}\\{=\\} (DQ, BC) \\stackrel\\{A\\}\\{=\\} -1.\n$$\nTherefore, $X'$ lies on the $A$-symmedian of $\\triangle ABC$. Since $S$ is where the circumcircles of two triangles $\\triangle ABC$ and $\\triangle AEF$ meet for the second time, we know that $S$ is the Miquel's point of the quadrilateral $BCEF$ and quadrilateral $SQBF$ is cyclic. So\n$$\n\\angle SQF = \\angle SBF = \\angle SNA \\implies \\angle SQK = \\angle SNK,\n$$\nand $SQNK$ is cyclic. Therefore\n$$\n\\begin\\{aligned\\} \\angle AJK &= \\angle ASK = \\angle AS'K = \\angle ASN - \\angle NSK = \\angle AX'N - \\angle NQK \\\\ &= \\angle AJ'K. \\end\\{aligned\\}\n$$\nWhich gives us $\\angle AJK = \\angle AJ'K$. So $J$ and $J'$ are symmetrical with respect to line $AI$. Now let $X_A$ be the touchpoint of $A$-excircle with side $BC$. Since\n---\n## IRN_ABooklet_2020 — Page 53\n$J$ and $J'$ are symmetrical, it suffices to show that $AX_A \\parallel IJ'$ to get $AP \\parallel IJ$. If $M$ is the midpoint of $BC$, we know that $MI \\parallel AX_A$. So we just need to prove that $M, I$ and $J'$ are collinear which is true since $SQNK$ is cyclic and\n$$\n(EF, J'Q) = A(EF, JQ) = (BC, MQ).\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32821, "subject": "Mathematics (Multi-modal)", "question": "Find all functions $f : \\mathbb{R} \\to \\mathbb{R}$ such that for all real numbers $x$ and $y$\n$$\nf(y - f(x)) = f(x) - 2x + f(f(y)).\n$$", "options": [], "answer": "f(x) = x", "solution": "1. Plugging $y = x + f(x)$ to obtain $f(f(x + f(x))) = 2x$. Hence, the function is *surjective* and there is a real number $r$ such that $f(r) = 0$. Plug $x = r$ to obtain\n$$\nf(y) = -2r + f(f(y)).\n$$\nFor each real number $z$ there is a real number $y$ such that $f(y) = z$, therefore\n$$z = -2r + f(z). \\text{ It follows that}$$\n$$\nf(z) = z + 2r, \\quad z \\in \\mathbb{R}.\n$$\nBy plugging this into the original equation one can conclude that $r = 0$ and $f(z) = z$, for all real numbers $z$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32822, "subject": "Mathematics (Multi-modal)", "question": "Let $S$ be a set with $n$ elements and $P(S)$ be the set of all subsets of $S$. We want to partition $P(S)$ to $m$ parts such that if $A$, $B$ and $A \\cup B$ are in the same part then $A = B$. Find the minimum value of $m$ so that such a partition exists.", "options": [], "answer": "m = n + 1", "solution": "The answer is $m = n + 1$. To give an example, for all integers $0 \\le i \\le n$ define\n$$\nA_i = \\{E \\mid E \\subset S, |E| = i\\}.\n$$\nThis partition satisfies the condition of problem, because if $A$, $B$ and $A \\cup B$ are in the same partition it means that they have the same number of elements but $A, B \\subset A \\cup B$, so we have $A = A \\cup B = B$.\n\nTo prove that it is impossible for $m \\le n$, we give $n + 1$ sets such that no two of them can be in the same part. Assume that $S = \\{1, 2, 3, \\dots, n\\}$. Consider $A_0 = \\emptyset$ and for all integers $1 \\le i \\le n$,\n$$\nA_i = \\{1, 2, \\dots, i\\}.\n$$\nFor $i < j$ we have $A_i \\cup A_j = A_j$ so they can not be in the same partition.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32823, "subject": "Mathematics (Multi-modal)", "question": "a) Prove that every graph with $2n$ vertices and $n+2$ edges has an independent set of size $n$.\n\nb) Find the number of graphs with $2n$ vertices and $n+3$ edges having no independent set of size $n$.", "options": [], "answer": "a) Every graph with 2n vertices and n+2 edges has an independent set of size n.\nb) Such graphs are exactly those consisting of two disjoint triangles and n−3 disjoint edges. For labeled graphs on 2n vertices, the number is C(2n,3)·C(2n−3,3)/2 · (2n−6)! / (2^{n−3}(n−3)!).", "solution": "a) Let $A$ be a maximal independent subset of vertices and $B$ be its complement. Assume to the contrary that $A$ has at most $n-1$ elements and so $B$ consists of at least $n+1$ vertices. Since $A$ is maximal, there should be an edge from every vertex in $B$ to $A$, so there are at least $n+1$ edges between $A$ and $B$. This means that there are at most 1 edge in $B$ let's say between $u$ and $v$. Now $B - \\{u\\}$ is an independent subset of vertices with at least $n$ elements, which is a contradiction.\n\nb) We prove that the only answer is the union of two disjoint triangles and $n-3$ edges between $n-3$ disjoint pair of vertices. Let $A$ be a maximal independent subset of vertices, by assumption it has at most $n-1$ vertices and so its complement $B$ has at least $n+1$ vertices. Similar to the previous part, we can conclude that there are at least $n+1$ edges connecting vertices of $B$ to $A$ and there are at least 2 edges connecting vertices in $B$. As the total number of edges is assumed to be $n+3$, we deduce that $A$ should have exactly $n-1$ vertices and there are exactly 2 edges in $B$. Also, every element of $B$ is connected to exactly one element of $A$.\n\nIf two elements of $B$, say $u$ and $v$, are connected to some vertex $w \\in A$, then $uv$ must be an edge, because otherwise, $(A - \\{w\\}) \\cup \\{u, v\\}$ form an independent set of size $n$ which is a contradiction. This observation together with the fact that there are two edges in $B$ implies that vertices in $A$ can not be connected to more than two vertices in $B$.\n\nSince $|A| = n-1$ and $|B| = n+1$, there should be two vertices $x_1, x_2 \\in A$ and two disjoint pairs $\\{y_1, z_1\\}, \\{y_2, z_2\\}$ in $B$ such that $x_i$ is adjacent to $y_i, z_i$ ($i=1,2$) and so $y_i, z_i$ are connected. Also, there is a bijection between $A - \\{x_1, x_2\\}, B - \\{y_1, z_1, y_2, z_2\\}$ such that the corresponding vertices are connected. This gives $n+3$ edges in the graph and since there are exactly $n+3$ edges, we conclude that the graph is the union of two triangles $x_1y_1z_1, x_2y_2z_2$ and $n-3$ disjoint edges as desired.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 32824, "subject": "Mathematics (Multi-modal)", "question": "Consider an acute scalene triangle $ABC$ with circumcircle $\\Gamma$. The external angle bisector of $\\angle BAC$ meets $BC$ at $X$. Lines $\\ell_b$ and $\\ell_c$ are tangent lines from $B$ and $C$ to $\\Gamma$. A line passes through $X$ and intersects $\\ell_b$ and $\\ell_c$ at points $Y$ and $Z$, such that $X, Y$ and $Z$ lie on this order. Suppose that the circumcircle of triangles $AYB$ and $AZC$ intersect at $N$, for the second time. If $D$ is the intersection point of $\\ell_b$ and $\\ell_c$, show that $ND$ is the angle bisector of $\\angle YNZ$.", "options": [], "answer": "Detailed solution", "solution": "Let $NY$ and $NZ$ intersect $BC$ at $E$ and $F$, respectively. Note that since quadrilaterals $ABYN$ and $ACZN$ are cyclic,\n$$\n\\angle NZY + \\angle NZY = \\angle NAB + \\angle NAC = \\angle A \\implies \\angle ZNY = 180^{\\circ} - \\angle A,\n$$\nhence the pentagon $ACZNE$ is cyclic. Similarly one can show that $ABYNF$ is cyclic, too. Now it is easy to conclude that $\\triangle BEY \\sim \\triangle CFZ$.\n\n![](attached_image_1.png)\n\nLet $P$ be the intersection of $\\ell_b$ and $\\ell_c$. Now by law of sines\n$$\n\\frac{\\sin \\angle PNZ}{\\sin \\angle PNY} = \\frac{PZ \\cdot \\sin \\angle NZP}{PY \\cdot \\sin \\angle NYP}.\n$$\n\nSo we have to prove\n$$\n\\frac{PY}{PZ} = \\frac{\\sin \\angle NZP}{\\sin \\angle NYP} \\iff \\frac{PY}{PZ} = \\frac{\\sin \\angle CZF}{\\sin \\angle BEY}.\n$$\nIn order to prove this, note that by Menelaus's theorem one can have\n$$\n\\frac{PY}{YB} \\cdot \\frac{BX}{XC} \\cdot \\frac{CZ}{ZP} = 1 \\implies \\frac{PY}{PZ} = \\frac{CX}{BX} \\cdot \\frac{BY}{ZC} = \\frac{AC}{AB} \\cdot \\frac{BY}{CZ}.\n$$\nHence we need to have\n$$\n\\begin{align*} \n\\frac{AC}{AB} \\cdot \\frac{BY}{CZ} &= \\frac{\\sin \\angle CZF}{\\sin \\angle BYE} \n&\\iff& \\frac{AC}{AB} \\cdot \\frac{BY}{\\sin \\angle CZF} \\cdot \\frac{\\sin \\angle BYE}{CZ} &= 1 \n\\\\ \n&\\iff& \\frac{AC}{AB} \\cdot \\frac{BE}{CZ} &= 1 \n\\\\ \n&\\iff& \\frac{AC}{AB} \\cdot \\frac{AB}{AC} &= 1, \n\\end{align*}\n$$\nas desired.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32825, "subject": "Mathematics (Multi-modal)", "question": "Find all positive integers $n$ such that\n$$\nd(n) \\mid 2^{\\sigma(n)} - 1.\n$$\n(Where $d(n)$ and $\\sigma(n)$ are the total number and the sum of positive divisors of $n$.)", "options": [], "answer": "1", "solution": "We first prove the following lemma.\n**Lemma.** Let $L(n)$ be the least prime divisor of $n$, then $L(d(n)) \\le L(\\sigma(n))$, for all positive integers $n$.\n\n*Proof.* Let $n = p_1^{\\alpha_1} \\dots p_t^{\\alpha_t}$ for some distinct prime numbers $p_1, \\dots, p_t$. It follows that\n$$\nd(n) = (1 + \\alpha_1) \\dots (1 + \\alpha_t),\n$$\nand\n$$\n\\sigma(n) = \\frac{p_1^{\\alpha_1+1} - 1}{p_1 - 1} \\cdots \\frac{p_t^{\\alpha_t+1} - 1}{p_t - 1}.\n$$\nLet a prime $q$ divides $\\frac{p_i^{\\alpha_i+1}-1}{p_i-1}$ for some $i$, it follows that $d_i$, the order of $p_i$ modulo $q$, divides $1+\\alpha_i$. Hence, if $d_i \\neq 1$ then one of the primes dividing $1+\\alpha_i$ also divides $d_i$. It follows that $L(1+\\alpha_i) \\leq d_i$. Let $q$ be the least prime divisor of $\\frac{p_i^{\\alpha_i+1}-1}{p_i-1}$ since $d_i$ divides $q-1$ it follows that $d_i < q = L\\left(\\frac{p_i^{\\alpha_i+1}-1}{p_i-1}\\right)$. Now, if $d_i = 1$, since $q$ divides $\\frac{p_i^{\\alpha_i+1}-1}{p_i-1}$ we have $q \\mid 1+\\alpha_i$. Whence, $L(1+\\alpha_i) \\leq q = L\\left(\\frac{p_i^{\\alpha_i+1}-1}{p_i-1}\\right)$. Assume now $L(\\sigma(n)) = L\\left(\\frac{p_i^{\\alpha_i+1}-1}{p_i-1}\\right)$, for some $i$, $1 \\leq i \\leq t$ then\n$$\nL(\\sigma(n)) = L\\left(\\frac{p_i^{\\alpha_i+1}-1}{p_i-1}\\right) \\geq L(\\alpha_i + 1) \\geq \\min_{1 \\leq i \\leq t} L(\\alpha_i + 1) = L(d(n)).\n$$\nThis completes our proof.\n\nBack to our problem, assume that $n > 1$. Let $q$ be the least prime dividing $d(n)$ then, based on above lemma: $\\gcd(q-1, \\sigma(n)) = 1$. On the other hand, $q$ divides $2^{\\sigma(n)} - 1$ and hence $2^{\\gcd(q-1, \\sigma(n))} - 1 = 2 - 1 = 1$. Thus, the only possibility is $n = 1$. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32826, "subject": "Mathematics (Multi-modal)", "question": "Let $ABCD$ be a rhombus and let $\\omega$ be its incircle. Let $M$ be the midpoint of $AB$ and $K$ be a point inside $ABCD$ such that $MK$ is tangent to $\\omega$. Prove that $CDKM$ is cyclic.", "options": [], "answer": "Detailed solution", "solution": "Let $L$ be the intersection of $KM$ and $CD$. The quadrilateral $MLCB$ has an incircle centered at $O$. So $OL$ and $OM$ are angle-bisectors of $\\angle MLC$ and $\\angle BML$, respectively. Further, $BM \\parallel CL$, these two arguments yielding $\\angle LOM = 90^\\circ$. Therefore $LO$ is tangent to the circumcircle of $OKM$, since $\\angle MKO = 90^\\circ$. Moreover, $\\angle LOM = \\angle AOD$ implies that\n$$\n\\angle LOD = \\angle AOM = \\angle BAC = \\angle LCO.\n$$\n\nHence $LO$ is also tangent to the circumcircle of the triangle $DOC$. Therefore we would have\n$$\nLD \\cdot LC = LO^2 = LK \\cdot LM,\n$$\nso $MKDC$ is cyclic. As desired.\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32827, "subject": "Mathematics (Multi-modal)", "question": "Point $X$ is chosen inside of a non-trapezoid quadrilateral $ABCD$ such that $\\angle AXD + \\angle BXC = 180^\\circ$. Suppose the angle bisector of $\\angle ABX$ meets the $D$-altitude of triangle $ADX$ at $K$, and the angle bisector of $\\angle DCX$ meets the $A$-altitude of triangle $ADX$ at $L$. Let $BK \\perp CX$ and $CL \\perp BX$. If the circumcenter of $ADX$ lies on the line $KL$, prove that $KL \\perp AD$.", "options": [], "answer": "Detailed solution", "solution": "We start our solution with the following lemma.\n**Lemma.** Let $H$ be the orthocenter of the triangle $ABC$ and $E, F$ be the intersections of $BH, CH$ with perpendicular bisectors of $AB$ and $AC$, respectively. If $Q$ is the intersection of tangents from $E$ and $F$ to circumcircle of triangle $HEF$, then $BQ = CQ$.\n*Proof.* Let $L$ and $K$ be the intersections of the perpendicular bisectors of $BC$ with $BH$ and $CH$, respectively. According to the **pascal's theorem**, it suffices to prove that $KE$ and $LF$ intersect on the circumcircle of $HEF$. In doing so, we should prove that $\\angle BEK = \\angle CFL$. By symmetry, we have\n\n$\\angle EBK = \\angle FCL$. If we can show $\\frac{BE}{BK} = \\frac{CF}{CL}$, then triangles $BEK, CFL$ are similar and we have $\\angle BEK = \\angle CFL$ as desired.\n$$\nBE = \\frac{BN}{\\cos \\angle EBA} = \\frac{AB}{2 \\sin \\angle A} \\\\\nBK = \\frac{CM}{\\cos \\angle KCB} = \\frac{BC}{2 \\sin \\angle B} \\Rightarrow \\frac{BE}{BK} = \\frac{AB \\cdot \\sin \\angle B}{BC \\cdot \\sin \\angle A},\n$$\nsimilarly we have $\\frac{CF}{CL} = \\frac{AC \\sin \\angle C}{BC \\sin \\angle A}$, by using law of sines we shall obtain the desired equality.\n\n![](attached_image_1.png)\n\nNow for the original problem, assume that $H$ is the orthocenter of $AXD$ and $E$ and $F$ are the intersections of $AH$ and $BH$ with $CK$ and $CL$, respectively. We have $BE \\perp CX$ and $\\angle AXD + \\angle BXC = 180^\\circ$. Therefore,\n$$\n\\angle EBX = \\angle BXC - 90^\\circ = 90^\\circ - \\angle AXD = \\angle EAX.\n$$\nHence $AEXB$ is cyclic and $AE = AX$. Similarly $CXFD$ is cyclic and $DF = FX$. Let $P$ be the intersection of $BE$ and $CF$, we have\n$$\n\\angle AEB = \\angle AXB = 180^\\circ - \\angle DXC = 180^\\circ - \\angle DFC = \\angle HFP.\n$$\nImplying that $HEPF$ is cyclic. Let $Q$ be the intersection of tangents from $E$ and $F$ to the circumcircle of $HEPF$, by Pascal's theorem $Q$ lies on $KL$ and by the above lemma we have $AQ = DQ$. If $Q$ and $O$ are two different points then we have $QO \\perp AD$, as desired.\n\n![](attached_image_2.png)\n\nIf $Q \\equiv O$, then it is clear that $HF \\parallel OE$. Therefore $\\angle EHF = \\angle OEF = \\angle EFH$. Similarly $\\angle EHF = \\angle FEH$, hence the triangle $HEF$ is equilateral and $\\angle EHF = 60^\\circ$. This implies that $\\angle AXD = 60^\\circ$ and\n$$\n\\angle ABX = 180^\\circ - \\angle AEX = 2\\angle EAX = 60^\\circ.\n$$\nAnalogously, we have $\\angle DCX = 60^\\circ$, and\n$$\n\\angle ABX + \\angle DCX = 120^\\circ = 180^\\circ - \\angle AXD = \\angle BXC.\n$$\nBut this implies that $AB \\parallel CD$, a contradiction. ■", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32828, "subject": "Mathematics (Multi-modal)", "question": "Prove that we can color all $n$-element subsets of the set $\\{1, 2, \\dots, 3n\\}$ with eight colors, so that there are no three subsets of the same color such that every two of them have at most one element in common.", "options": [], "answer": "Detailed solution", "solution": "Let $F$ be the family of all $n$-element subsets of $\\{1, 2, \\dots, 3n\\}$. For every $S \\subset \\{1, 2, 3, 4\\}$, denote the collection of all elements of $F$ whose intersection with $\\{1, 2, 3, 4\\}$ is $S$ by $F_S$. More formally we have\n$$\nF_S = \\{A \\in F \\mid A \\cap \\{1, 2, 3, 4\\} = S\\}.\n$$\n\nNow we color all elements of $F$ as follows:\n* All elements of $F_\\emptyset$ with color $c_1$.\n* All elements of $F_{\\{1\\}}$ with color $c_2$.\n* All elements of $F_{\\{2\\}}$ with color $c_3$.\n* All elements of $F_{\\{3\\}}$ with color $c_4$.\n* All elements of $F_{\\{4\\}}$ with color $c_5$.\n* All elements of $F_{\\{1,2\\}} \\cup F_{\\{1,3\\}} \\cup F_{\\{1,2,3\\}}$ with color $c_6$.\n* All elements of $F_{\\{2,3\\}} \\cup F_{\\{3,4\\}} \\cup F_{\\{2,3,4\\}} \\cup F_{\\{1,2,3,4\\}}$ with color $c_7$.\n* All elements of $F_{\\{1,4\\}} \\cup F_{\\{2,4\\}} \\cup F_{\\{1,2,4\\}} \\cup F_{\\{1,3,4\\}}$ with color $c_8$.\n\nWe prove that this coloring has the required property, namely there are no three $n$-element subsets of the same color such that each two of them have at most one element in common; we call such three subsets a bad triple.\n\n* $c_1$: Note that if we have a bad triple of subsets then the union of them is of size at least $3n - 3$, which is not possible in $F_\\emptyset$, since neither of $1, 2, 3, 4$ appears in their union.\n\n* $c_2$: If we have a bad triple of subsets all having one element in common then the union of them is of size $3n - 2$, which is not possible in $F_{\\{1\\}}$, since neither of $2, 3, 4$ appears in their union.\n\n* $c_3$: Similar proof as $c_2$.\n\n* $c_4$: Similar proof as $c_2$.\n\n* $c_5$: Similar proof as $c_2$.\n\n* $c_6$: If we have a bad triple of subsets in $F_{\\{1,2\\}} \\cup F_{\\{1,3\\}} \\cup F_{\\{1,2,3\\}}$ then all three contain $1$ as an element. Moreover, at least two of them contain $2$ or at least two of them contain $3$. Contradiction.\n\n* $c_7$: If we have a bad triple of subsets in $F_{\\{2,3\\}} \\cup F_{\\{3,4\\}} \\cup F_{\\{2,3,4\\}} \\cup F_{\\{1,2,3,4\\}}$ then all three contain $3$ as an element. Moreover, at least two of them contain $2$ or at least two of them contain $4$. Contradiction.\n\n* $c_8$: If we have a bad triple of subsets in $F_{\\{1,4\\}} \\cup F_{\\{2,4\\}} \\cup F_{\\{1,2,4\\}} \\cup F_{\\{1,3,4\\}}$ then all three contain $4$ as an element. Moreover, at least two of them contain $1$ or at least two of them contain $2$. Contradiction.\n\nSo no color has a bad triple of subsets and therefore our coloring is appropriate.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32829, "subject": "Mathematics (Multi-modal)", "question": "Find the number of ways that we can write $1, 2, \\dots, n$ on the vertices of a regular $n$-gon ($n \\ge 4$) such that if the diagonals connecting $(a, b)$ and $(c, d)$ cut each other then\n$$\na + b \\not\\equiv c + d \\pmod{n}.\n$$\n(Two arrangements of numbers matching after a rotation are considered the same.)", "options": [], "answer": "φ(n)", "solution": "The answer is $\\phi(n)$.\n\n**Lemma.** if $a, b, c$ are three consecutive numbers, then $a + c \\equiv 2b \\pmod{n}$.\n\n*Proof.* If $a + c \\not\\equiv 2b \\pmod{n}$, then there should be $d \\in \\{a, b, c\\}$ such that $a + c \\equiv b + d \\pmod{n}$, but $ac$ intersect with $bd$ which is a contradiction.\n\n**Lemma.** Suppose that the numbers $1, 2, \\dots, n$ are written on the vertices of a regular $n$-gon such that for any 3 consecutive numbers $(a, b, c)$, we have $a + c \\equiv 2b \\pmod{n}$, then the numbers satisfies the problem condition.\n\n*Proof.* We denote by $a_0, a_1, \\dots, a_{n-1}$ be the numbers assigned to the vertices in clockwise order such that $a_0 = 1$. Let $a_1 = a$. Using previous lemma and induction one can easily see that $a_i = i(a-1) + 1$. Now, if $(a_i, a_j)$ intersects $(a_k, a_l)$, we have $k+l \\not\\equiv i+j \\pmod{n}$, hence\n$$\na_k + a_l \\stackrel{n}{\\equiv} (k+l)(a-1) + 2 \\stackrel{n}{\\not\\equiv} (i+j)(a-1) + 2 \\stackrel{n}{\\equiv} a_i + a_j\n$$\nAs we see in the proof of the second lemma, the $a$ determines the permutation. So it is necessary and sufficient that $\\{i(a-1)+1 : 0 \\le i \\le n-1\\}$ form a complete set of residues modulo $n$. This happens if and only if $\\text{gcd}(a, n) = 1$. Therefore the number of desired permutations is $\\phi(n)$.\n\n■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32830, "subject": "Mathematics (Multi-modal)", "question": "Find all non-constant polynomials $P(x)$ with integer coefficients such that for each $n$ the polynomial $P^n(x)$ only has integer roots.\n(Where $P^n(x)$ means the $n^{\\text{th}}$ fold composition of $P(x)$ with itself.)", "options": [], "answer": "All such polynomials are exactly of the forms a x^d, x − r, and −x − r, with integers a, d ≥ 1, and r.", "solution": "We shall prove that $P(x)$ only has one integer root. Assume to the contrary, that $P(x)$ at least has two different integer roots. We shall then prove the following lemma.\n**Lemma.** The polynomial $P^n(x)$ has at least $n+1$ distinct integer roots.\n*Proof.* We prove by induction on $n$. The base is true, assume that the statement is true for all integers less than $n$. Let $P^{n-1}(x) = (x-r_1)^{\\alpha_1} \\dots (x-r_t)^{\\alpha_t}$ where $t \\ge n$. We have,\n$$\nP^n(x) = P^{n-1}(P(x)) = (P(x) - r_1)^{\\alpha_1} \\dots (P(x) - r_t)^{\\alpha_t}.\n$$\nNotice that $P(x) - r_i$, $i = 1, \\dots, t$ have not common roots. Moreover, at least one of them has at least two distinct roots. Otherwise, let $d = \\text{deg } P(x)$ it follows that $P(x) - r_1 = a_d(x - s_1)^d$ and $P(x) - r_2 = a_d(x - s_2)^d$ that is, $P(x) = r_1 + a_d(x - s_1)^d = r_2 + a_d(x - s_2)^d$. The sum of the roots of $P(x)$ would be $ds_2 = ds_1$, this is impossible. It follows that $P^n(x)$ has at least $t+1 \\ge n+1$ distinct roots. This completes our proof.\n\nTherefore, $P^n(x) = (x-s_1)^{\\beta_1} \\dots (x-s_k)^{\\beta_k}$ where $k \\ge n+1$. Take a positive integer $m$ such that $P^n(m) \\ne 0$ it follows that\n$$\n|P^n(m)| = |(m - s_1)^{\\beta_1} \\dots (m - s_k)^{\\beta_k}| \\ge \\left( \\lfloor \\frac{n}{2} \\rfloor ! \\right)^2.\n$$\nLet $t_1, \\dots, t_s$ be roots of $P(x)$. Without loss of generality, assume that $t_1 \\ne 0$. Hence, all the roots of $P^n(x) - t_1$ are integers. Let $R$ be one of them, it follows that\n$$\n\\left(\\left\\lfloor \\frac{n}{2} \\right\\rfloor !\\right)^2 \\le |P^n(R)| = |t_1| \\ne 0.\n$$\nThis would be absurd for all large enough $n$. This implies that the only integer root of $P(x)$ is zero. This contradicts our assumption. Thus, $P(x)$ only has one integer root. That is, $P(x) = a_d(x-r)^d$ for some integers $a_d, r$. After putting this into account we can find that the only possible polynomials are\n$$\na_d x^d, x-r, -x-r.\n$$\n■", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 32831, "subject": "Mathematics (Multi-modal)", "question": "A connected simple graph $G$ with maximum degree $d > 3$ is given. Suppose that\n$$\nx_d \\geq x_{d-1} + 2x_{d-2} + \\dots + (d-1)x_1,\n$$\nwhere $x_i$ is the number of vertices of degree $i$. Prove that there is a vertex of degree $d$ in $G$ such that after removing it the graph remains connected.", "options": [], "answer": "Detailed solution", "solution": "We shall prove the statement by induction on the number of vertices. The base case is clear. Let $v$ be a vertex of degree $d$, and denote by $C_1, C_2, \\dots, C_k$ the connected components of $G - \\{v\\}$. Assume that $v$ is chosen such that $|C_1|$ is maximum among all connected components obtained from removing a degree $d$ vertex.\n\nNote that if $G = C_1 \\cup \\{v\\}$, then by removing $v$ the graph remains connected. So we assume $k \\ge 2$. We claim that under this assumption $G'$ is the induced sub-graph to $C_1 \\cup \\{v\\}$,\n$$\nx'_d \\ge x'_{d-1} + 2x'_{d-2} + \\dots + (d-2)x'_2 + (d-1)x'_1, \\quad (1)\n$$\nwhere $x'_i$ is the number of vertices of degree $i$ in $G'$.\n\nNotice that there is no vertex of degree $d$ in $D = C_2 \\cup \\dots \\cup C_k$. Indeed, if $w \\in D$ has degree $d$, then $C_1 \\cup \\{v\\}$ would be contained in a connected component of $G - \\{w\\}$ which contradicts to our assumption on the maximality of $|C_1|$. Therefore, $x'_d = x_d - 1$ (note that $k \\ge 2$ and $v$ has neighbours in $D$). For every $w \\in G$, we denote the degree of $w$ by $d(w)$, and if $w \\in G'$ we denote the degree of $w$ in $G'$ by $d'(w)$. Clearly,\n$$\n\\sum_{i=1}^{d-1} (d-i)x_i = \\sum_{w \\in G} (d-d(w)), \\quad \\sum_{i=1}^{d-1} (d-i)x'_i = \\sum_{w \\in G'} (d-d'(w)).\n$$\nNote that for every $w \\in C_1$, $d(w) = d'(w)$. Suppose that $d'(v) = d-s$ ($s \\ge 1$ since $k \\ge 2$), and $l_1, l_2, \\dots, l_t$ be the degrees of elements $D$ ($t := |D|$).\n\nNow we have\n$$\n\\begin{align*}\n\\sum_{i=1}^{d-1} (d-i)x_i' &\\le \\sum_{w \\in G'} (d-d'(w)) \\\\\n&= \\sum_{w \\in G'} (d-d(w)) + s \\\\\n&\\le \\sum_{w \\in G} (d-d(w)) + s - \\sum_{j=1}^{t} (d-l_j)\n\\end{align*}\n$$\nSince there is no vertex of degree $d$ in $D$, for every $1 \\le j \\le t$, $l_j < d$. This implies $\\Delta := s - \\sum_{j=1}^t (d - l_j) \\le s - t \\le 0$. Moreover, the upper bound $\\Delta = 0$ is achieved only if $l_j = d - 1$ for every $j$. This in particular implies that $v$ is adjacent to all the elements of $D$ and $t = s = d - 1$. So $\\Delta = 1 - t < 0$. Hence,\n$$\n\\sum_{i=1}^{d-1} (d-i)x_i' \\le \\sum_{w \\in G} (d-d(w)) + \\Delta \\le \\sum_{i=1}^{d-1} (d-i)x_i - 1 \\le x_d - 1 = x_d',\n$$\nwhere the condition of problem was used in the last inequality. This finishes the proof of inequality (1) as claimed. Now, by induction hypothesis there should be a vertex $w$ of degree $d$ in $G'$ such that $G' - \\{w\\}$ is connected (note that $k \\ge 2$ implies $|G'| < |G|$). We will prove that $G - \\{w\\}$ is connected as well. Note that $w$ has no edge to vertices outside $C_1$, so for every $x \\in G$ because $x$, $w$ are connected in $G$, there exists some vertex in $C_1$, say $w_x$ such that $x$ and $w_x$ are connected in $G - \\{w\\}$. Thus, $G - \\{w\\}$ is connected, as desired.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 32832, "subject": "Mathematics (Multi-modal)", "question": "Let $x$, $y$, $z > 0$ be real numbers such that $x + y + z = 1399$. Determine the maximum value of\n$$\ny\\lfloor x \\rfloor + z\\lfloor y \\rfloor + x\\lfloor z \\rfloor,\n$$\nwhere $\\lfloor x \\rfloor$ is the largest integer less than or equal to $x$.", "options": [], "answer": "652400", "solution": "The answer is $652400$. Notice that $y\\lfloor x \\rfloor + z\\lfloor y \\rfloor + x\\lfloor z \\rfloor \\leq xy + yz + zx$. On the other hand, $xy + yz + zx \\leq \\frac{1}{3}(x + y + z)^2$. It follows that\n$$\ny\\lfloor x \\rfloor + z\\lfloor y \\rfloor + x\\lfloor z \\rfloor \\leq \\frac{1}{3}(x + y + z)^2 = 652400 + \\frac{1}{3}.\n$$\nIf $x$, $y$, $z$ are integers then $y\\lfloor x \\rfloor + z\\lfloor y \\rfloor + x\\lfloor z \\rfloor \\leq 652400$. If at least one of them is not integer it follows from the fact that $\\{x\\} + \\{y\\} + \\{z\\} \\in \\mathbb{Z}$ that $\\{x\\} + \\{y\\} + \\{z\\} \\in \\{1, 2\\}$. Hence, at least one of them has a fractional part that is at least $\\frac{1}{3}$. Yielding\n$$\ny\\lfloor x \\rfloor + z\\lfloor y \\rfloor + x\\lfloor z \\rfloor \\leq 652400 + \\frac{1}{3} - \\frac{1}{3} = 652400.\n$$\nThe equality case occurs at $(x, y, z) = (466, 466, 467)$, for example. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32833, "subject": "Mathematics (Multi-modal)", "question": "Let $a_1, \\dots, a_n; b_1, \\dots, b_n; c_1, \\dots, c_n$ be real numbers. Prove that\n$$\n\\sqrt{\\sum_{i=1}^{n} (3a_i - b_i - c_i)^2} + \\sqrt{\\sum_{i=1}^{n} (3b_i - a_i - c_i)^2} + \\sqrt{\\sum_{i=1}^{n} (3c_i - a_i - b_i)^2} \\\\\n\\geq \\sqrt{\\sum_{i=1}^{n} a_i^2} + \\sqrt{\\sum_{i=1}^{n} b_i^2} + \\sqrt{\\sum_{i=1}^{n} c_i^2}. \\qquad (\\to \\text{p.21})\n$$", "options": [], "answer": "Detailed solution", "solution": "According to the *Minkowski's* inequality we have\n$$\n\\sqrt{\\sum_{i=1}^{n} (3a_i - b_i - c_i)^2} + \\sqrt{\\sum_{i=1}^{n} b_i^2} + \\sqrt{\\sum_{i=1}^{n} c_i^2} \\\\\n\\geq \\sqrt{\\sum_{i=1}^{n} (3a_i - b_i - c_i + b_i + c_i)^2} = 3\\sqrt{\\sum_{i=1}^{n} a_i^2}.\n$$\nAdding the above inequality with other two similar inequalities, give us the desired result. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32834, "subject": "Mathematics (Multi-modal)", "question": "Points $D$ and $E$ lie on the side $BC$ of an acute-angled triangle $ABC$ such that $\\angle DAB = \\angle EAC$. Let $\\omega$ be a circle whose center lies on the circumcircle of the triangle $ABC$ ($\\Gamma$) and is tangent to $AD$ at $A$.\n\nDenote by $A'$ the reflection of point $A$ with respect to $BC$ and the intersection points of $A'E$ and $\\omega$ by $K$ and $L$. Prove that either the lines $BK$ and $CL$ or the lines $BL$ and $CK$ meet on $\\Gamma$.", "options": [], "answer": "Detailed solution", "solution": "Let $F$ be the second intersection point of $\\omega$ and $\\Gamma$, and $K'$ the second intersection of $\\omega$ and $BF$. We just need to show that $K'$ lies on $A'E$. Suppose that $O$ is the center of $\\omega$ and $P$ is the intersection point of $AD$ and $\\Gamma$. It is clear that $\\angle OAP = 90^\\circ$, therefore $\\angle OFP = 90^\\circ$. It yields that $PF$ is tangent to $\\omega$ at $F$ and $AP = PF$. Now notice that\n$$\n\\angle AFK' = \\angle AFB = \\angle ACB = \\angle ACE, \\qquad (1)\n$$\nand\n$$\n\\angle AK'F = 180^\\circ - \\angle PFA = \\angle ABP = \\angle AEC. \\qquad (2)\n$$\nThe equations (1) and (2) together imply that the triangles $AK'F$ and $AEC$ are similar. So the triangles $AK'E$ and $AFC$ are similar too. Finally\n$$\n\\angle AEK' = \\angle ACF = \\angle APF = 180^\\circ - 2\\angle AFP = 180^\\circ - 2\\angle AEB,\n$$\nhence the result follows.\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32835, "subject": "Mathematics (Multi-modal)", "question": "Find all finite sets $\\{a_1, a_2, \\dots, a_k\\}$ of integers for which there is an injective function $f : \\mathbb{R} \\to \\mathbb{R}$ such that for all positive integer $n$\n$$\n\\{x \\in \\mathbb{R} : f^n(x) - x\\} = \\{n + a_1, n + a_2, \\dots, n + a_k\\}.\n$$\n(Here $f^n(x)$ is the function that obtained from composing $f$ for $n$ times with itself, for example $f^3(x) = f(f(f(x)))$.)", "options": [], "answer": "{0}", "solution": "Let us denote the set $\\{a_1, \\dots, a_k\\}$ by $A$ and $\\{n+a_1, \\dots, n+a_k\\}$ by $A+n$. Assume that the statement of the problem is true for the set $A$.\n**Lemma.** All the elements of $A$ are non-negative.\n\n*Proof.* Assume that there is a positive integer $m$ such that $-m \\in A$. This means that there is a real number $x$ such that $f^m(x) - x = -m + m = 0$. Hence, for all positive integers $k$, we have $f^{km}(x) = x$, thus $0 \\in A + km$ for all $k$. Since $A$ is a finite set, this would be absurd for a large enough $k$. This completes our proof.\n\nNow, let $a = \\max A$. Then there would be a real number $r$ such that $f(r) = r+a+1$. Notice that $f^n(r)-r \\in A+n$. Therefore, $f^n(r)-r \\le a+n$. On the other hand, since $A$ has no negative elements, $f(x)-x \\ge 1$ for all $x$. Yielding\n$$\nf^n(r) - r = (f^n(r) - f^{n-1}(r)) + (f^{n-1}(r) - f^{n-2}(r)) + \\cdots + (f(r) - r) \\ge \\underbrace{1+1+\\cdots+1}_{n-1} + a + 1 = n + a.\n$$\nThat is, the equality occurs, and therefore, $f^n(r) = r + a + n$, for all $n$. Let $s = a + r$, if $a > 0$ then $s > r$ and $s < f^n(r)$ for all integers $n \\ge 1$. On the other hand, $f(s)$ must be an integer greater than $s$ but all such integers are of the form $f^n(r)$, by injectivity this means that $s = f^n(r)$ for some $n$ which is a contradiction. So the largest element of $A$ can not be positive which implies that $A = \\{0\\}$ and $f(x) = x + 1$. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32836, "subject": "Mathematics (Multi-modal)", "question": "An $n \\times n$ Latin square is given. We are allowed to do the following operation on an $n \\times n$ table. We can choose a cell in the square and add the same integer to the number of all the cells in the union of the row and the column of the chosen cell. Prove that one can do a finite number of such operations to reach every Latin square. (Note that the square after some initial steps need not to be a Latin square, and we can do the operation on each cell more than once.)", "options": [], "answer": "Detailed solution", "solution": "Denote the number of cell $(i, j)$ in the square by $a_{ij}$. For $i, j, r, k \\in \\{1, 2, \\dots, n\\}$, with $i \\neq j$ and $r \\neq k$, we define the operation $P_{ijrk}$ in this way: Add $1$ to all the cells in the union of row and column of cell $(i, j)$, add $1$ to all the cells in the union of row and column of cell $(r, k)$, add $-1$ to all the cells in the union of row and column of cell $(i, k)$, and finally add $-1$ to all the cells in the union of row and column of cell $(r, j)$.\nAfter this operation, $a_{ir}, a_{jk}$ will increase by $1$, $a_{ik}, a_{rk}$ will decrease by $1$ and all the other cells remain the same.\n\nFor two squares $A$ and $B$ we define\n$$\nd(A, B) = \\sum_{1 \\le i, j \\le n} |a_{ij} - b_{ij}|.\n$$\nWe want to use the above operation to replace the Latin square $A$ by some other square $A'$ such that $d(A', B) < d(A, B)$ if we can do this by repeating this operation we can transform $A$ to $B$.\nBecause the sum of the numbers in each row and column in $A$ and $B$ are the same, there should be two integer numbers $1 \\le i, j \\le n$ so that $a_{ij} > b_{ij}$ and two integer numbers $1 \\le k, l \\le n$ so that $a_{ik} < b_{ik}, a_{lj} < b_{lj}$. Now if we do the operation $P_{iljk}$ on $A$ to obtain $A'$ then $d(A', B) < d(A, B)$ and the sum of numbers in each row and column of $A'$ does not change. So we can reach $B$ by repeating this process. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32837, "subject": "Mathematics (Multi-modal)", "question": "Consider a circle $\\omega_1$ centered at $O_1$ and a circle $\\omega_2$ centered at $O_2$ passes through $O_1$ and intersects $\\omega_1$ at $A$ and $B$. Let $\\ell$ be the tangent line from $A$ to $\\omega_1$. A circle passes through $O_1$ and $O_2$ and its center lies on $\\ell$, intersects $\\omega_2$ for the second time at $P$. Prove that the reflection of $P$ with respect to $\\ell$ lies on $\\omega_1$.", "options": [], "answer": "Detailed solution", "solution": "Let $Q$ and $C$ be the reflections of $P$ and $O_1$ with respect to $\\ell$, respectively. We have $AO_1 \\perp \\ell$ implying that $C$ lies on $AO_1$. Also note that $C$ lies on the circumcircle of $PO_1O_2$ because $\\ell$ crosses its center. It is enough to show that\n\n$CA = CP$ because this yields to the fact $O_1A = O_1Q$ and further $Q$ would be on $\\omega_1$. The fact that $O_2P = O_2O_1$ implies $\\angle PCO_2 = \\angle O_1CO_2$. Let $\\omega$ be the circumcircle of the triangle $PCA$. The point $O_2$ lies on the angle bisector of $\\angle PCA$ and the perpendicular bisector of $PA$, so if $CA \\neq CP$ then $O_2$ should be the midpoint of the arc $PA$ of $\\omega$ (the part that does not contain $C$). Therefore $CPO_2A$ is cyclic which is impossible because $A$ is the midpoint of $CO_1$ and hence it is inside the circumcircle of $CO_1PO_2$. Hence we have $CP = CA$.\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32838, "subject": "Mathematics (Multi-modal)", "question": "Suppose that $A$-excircle of triangle $ABC$ is tangent to $AC$ and $AB$ at $E$ and $F$, respectively. Denote by $I_a$ the center of preceding circle. Point $D$ is the reflection of $A$ around the line $I_aB$. Lines $DI_a$ and $EF$ meet at $K$. Prove that the circumcenter of $DKE$, midpoint of $BC$ and $I_a$ are collinear.", "options": [], "answer": "Detailed solution", "solution": "Let $M$ be the midpoint of $BC$ and $E'$ be the reflection of $E$ with respect to $MI_a$. Also, let $\\omega$ be the $A$-excircle. It is clear that $E'$ lies on $\\omega$ and the problem is equivalent to proving that $DE'KE$ is cyclic. To do this we will show that $\\angle E'DK = \\angle E'EK$. Note that $EF \\perp AI_a$ and $EE' \\perp MI_a$. Therefore $\\angle E'EK = \\angle MI_aA$.\n\nAssume that $X$ and $Y$ are the tangency points of $BC$ with the incircle and $\\omega$, respectively. If $Y'$ is the reflection of $Y$ with respect to $I_a$ we can see that the dilation with center $A$ which sends the incircle to $\\omega$, sends $X$ to $Y'$, hence $XY'$ passes through $A$.\n\nLet $Z$ be the second intersection point of $XY'$ with $\\omega$. We have $\\angle YZX = 90^\\circ$ and because $M$ is the midpoint of $XY$, we have $MZ = MY$. Therefore, $MZ$ is tangent to $\\omega$. In fact $Z$ is the reflection of $Y$ with respect to $MI_a$. This implies that $MI_a \\perp YZ$, hence $MI_a \\parallel AZ$. Next, we claim that the triangles\n\n$I_aZE'$ and $I_aAD$ are similar. Both of them are isosceles, so it is enough to show that $\\angle ZI_aE' = \\angle AI_aD$. Note that\n$$\n\\angle ZI_aE' = \\angle YI_aE = \\angle C, \\quad \\angle AI_aD = 2\\angle AI_aB = \\angle C\n$$\n![](attached_image_1.png)\nFrom the similarity of the triangles $I_aZE'$ and $I_aAD$, we can conclude that $I_aZA$ and $I_aE'D$ are similar and so\n$$\n\\angle E'DI_a = \\angle ZAI_a = \\angle MI_aA.\n$$\nTherefore $DE'KE$ is cyclic as desired. ■\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32839, "subject": "Mathematics (Multi-modal)", "question": "Find all functions $f: \\mathbb{N} \\rightarrow \\mathbb{N}$ such that for all positive integers $n$\ni. $f(n) < f(n + 1) < f(n) + 2020$;\nii. $S(f(n)) = f(S(n))$.\n(Where $S(n)$ is the sum of digits of $n$ in base 10.)", "options": [], "answer": "f(n) = n", "solution": "It is clear that $f(n) = n$ is a solution. Assume that there is another solution. Since $f$ is strictly monotone it follows that $n < f(n) < 2020n + C$ for all large $n$. Let $n = 10^t - 1$ for some large $t$ it follows that $S(f(10^t - 1)) = f(9t) > 9t$. On the other hand $f(10^t - 1) \\ge 10^t$ so we have\n$$\nf(10^t - 1) \\ge \\frac{19}{10} \\cdot 10^t.\n$$\nSince the sum of digits of each integer between $\\frac{19}{10} \\cdot 10^t$, $10^t$ is at most $9t$ while the sum of digits of $f(10^t - 1)$ exceeds $9t$. Now, let $n = 10^t - 1$ such that $t = \\frac{10^s-1}{9}$, for some large $s$; we obtain\n$$\nS(f(10^t - 1)) = f(9t) = f(10^s - 1) > \\frac{19}{10} \\cdot 10^s.\n$$\nSince $S(n) \\le 9(1 + \\log n)$ it follows that\n$$\n\\begin{aligned} \\frac{19}{10} \\cdot 10^s < 9(1 + \\log f(10^t - 1)) &< 9(1 + \\log(2020 \\cdot 10^t)) \\\\ &< 9 + 9(4 + t) = 45 + 9t = 45 + 10^s - 1. \\end{aligned}\n$$\nThis would be false for all large $s$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32840, "subject": "Mathematics (Multi-modal)", "question": "Let $a$, $b$, $c$, $d$ be pair-wise coprime positive integers not all equal to $1$. Let $f, g: \\mathbb{N} \\to \\{0, 1\\}$ be two *multiplicative* functions such that for all positive integers $n$, $f(an + b) = g(cn + d)$. Prove that at least one of these two claims are true:\n\ni. $f(an + b) = g(cn + d) = 0$, for all positive integers $n$.\n\nii. There is a positive integer $D$ such that for all positive integers $n$ with $\\text{gcd}(n, D) = 1$, we have $f(n) = g(n) = 1$.\n\n(We call a function $h: \\mathbb{N} \\to \\mathbb{R}$ multiplicative if $h(mn) = h(m)h(n)$ for all positive integers $m$, $n$.)", "options": [], "answer": "Detailed solution", "solution": "Assume that the first claim is false, we then prove the truth of the second claim. Letting $n = p_1^{\\alpha_1} \\dots p_t^{\\alpha_t}$ it follows that $f(n) = f(p_1) \\dots f(p_t)$. Thus, the value of $f$ is only depending upon the values of $f$ at prime points. Hence, it suffices to prove that for all large enough $p$, $f(p) = 1$. Let us define the set $A$ as follows:\n$$\nA = \\{an + b : f(an + b) = 1, n \\in \\mathbb{N}\\}\n$$\nThe first criterion ensures that $A$ is nonempty. We shall prove that every large enough prime has a multiple in that set. Take $n_0$, $m_0$ such that $an_0 + 1 = (ak + b)\\varphi(a)$ and $cm_0 + 1 = (ak + b)\\varphi(c)$ then $f(an_0 + 1) = g(cm_0 + 1) = 1$.\n\nThen, if $an + b \\in A$ then\n$$\n1 = f((an + b)(an_0 + 1)) = f(a(ann_0 + bn_0 + n) + b) = g(c(ann_0 + bn_0 + n) + d).\n$$\nHence,\n$$\n\\begin{align*}\n1 &= g(c(ann_0 + n + bn_0) + d)g(cm_0 + 1) \\\\\n&= g(c(cm_0(ann_0 + n + bn_0) + (ann_0 + n + bn_0) + dm_0) + d) \\\\\n&= f(a((cm_0 + 1)(ann_0 + n + bn_0) + dm_0) + b).\n\\end{align*}\n$$\nThat is, $(cm_0 + 1)(an_0 + 1)(an + b) + (ad - bc)m_0 = s(an + b) + t \\in A$. That is, for all $x \\in A$ we shall have $sx + t \\in A$. By choosing another $n_0$ we can find another $s_1$ such that $s_1x + t \\in A$ for all $x \\in A$. Now, take a large prime $p$ and let us denote by $b_1, \\dots, b_k$ the residues of elements of $A$ modulo $p$. Hence,\n$$\n\\{s_0 b_1 + t, \\dots, s_0 b_k + t\\} \\equiv \\{s_1 b_1 + t, \\dots, s_1 b_k + t\\} \\equiv \\{b_1, \\dots, b_k\\} \\pmod{p}.\n$$\nThat is, $s_0(\\sum_{i=1}^k b_i) + tk \\equiv s_1(\\sum_{i=1}^k b_i) + tk \\equiv \\sum_{i=1}^k b_i \\pmod{p}$. Therefore, $\\sum_{i=1}^k b_i \\equiv 0 \\pmod{p}$ and $k = p$. That is, $0 \\in A$. It yields that, there is a number of the form $an + b$ in $A$ that is a multiple of $p$. So, $f(an + b) = 1$ implies that $f(p) = 1$. By the same argument we find that $g(p) = 1$. Taking $D = \\prod_{q < p} q$, we are done. $\\blacksquare$\n\n**Comment 1.** The criterion that $a$, $b$, $c$, $d$ are pair-wise coprime can be reduced to the condition $ad \\neq bc$.\n\n**Comment 2.** We can indeed prove that there is a positive integer $D$ such that for all positive integers $n$, $m$, $\\text{gcd}(nm, D) = 1$ we have $f(n) = g(m) = 1$. Here we provide the sketch of the solution. If $f(an + b) = g(cn + d)$ for some positive integer $n$. Assume that $\\text{gcd}(a, b) = \\text{gcd}(c, d) = 1$. Let $p$ be a prime dividing $an + b$ then $\\text{gcd}(a, p) = 1$ hence $P_t = p^{t\\varphi(a)} = aT_t + 1$ and $f(P_t) = 1$. Hence,\n$$\ng(cn + d) = f(an + b) = f(P_t)f(an + b) = f(a(nP_t + bT_t) + b) \\quad (1)\n$$\n$$\n= g(c(nP_t + bT_t) + d), \\quad (2)\n$$\nfor all positive integers $n$, $t$. Let $S_f = \\{n : f(n) = 1\\}$, $S_g = \\{n : g(n) = 1\\}$.\nIt follows that $c(nP_t + bT_t) + d \\in S_g$ for each $t$. Now, we can prove the following interesting lemma that can be proved by use of techniques presented above.\n\n**Lemma.** Let $a$, $b$, $c$, $d$ be integers such that $a$, $c > 0$, $ad \\neq bc$. We define the set $S$ as follows:\ni. If $x$, $y \\in S$, $\\text{gcd}(x, y) = 1$, then $xy \\in S$,\nii. If $x \\in S$, $y \\mid x$ and $\\text{gcd}(\\frac{x}{y}, y) = 1$, then $y \\in S$,\niii. $an + b \\in S$ if and only if $cn + d \\in S$.\n\nLet $r$ be a prime number that doesn't divide $ac$ and $m$ be a positive integer such that $\\{r^m, r^{m+1}, \\dots\\}$ is a subset of $S$ and there is a positive integer $n$ such that $cn + d \\in S$, for some positive integer $n$, there is a prime number $q$ that doesn't divide $ac$ and $\\{1, q, q^2, \\dots\\} \\subseteq S$ and all integers that are coprime to $D = (ad - bc)\\gcd(a, c)$ are in $S$.\n\nAccording to this interesting lemma, $N_t = \\{n \\in \\mathbb{N} : \\gcd(n, c(ad - bc)T_t) \\subseteq S_g, \\text{ for all } t \\in \\mathbb{N}\\}$. Now, using Chinese Remainder Theorem (CRT) to choose $m_0$ such that $\\gcd(am_0 + 1, (ad - bc)T_1) = 1$ and $\\gcd(m_0, T_1) = 2$. Hence, $\\{n \\in \\mathbb{N} : \\gcd(n, c(ad - bc)m_0) \\subseteq S_g$ and therefore, $\\{n \\in \\mathbb{N} : \\gcd(n, 2c(ad - bc)) \\subseteq S_g\\}$. Continuing this way, we can prove that $\\{n \\in \\mathbb{N} : \\gcd(n, 2a(ad - bc)) \\subseteq S_f$. The rest is clear.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32841, "subject": "Mathematics (Multi-modal)", "question": "We call a polynomial $x^{n_1} + x^{n_2} + \\dots + x^{n_{1398}} + 1$ *special* if $n_1, n_2, \\dots, n_{1398}$ are distinct positive integers. Do there exist an infinite set of polynomials with real coefficients such that the product of each two of them is special?", "options": [], "answer": "No", "solution": "We first prove the following lemma.\n\n**Lemma.** Let $f(x)$ be a polynomial with complex coefficients such that its leading coefficient is rational. If for some positive integer $k$ we have $f(x)^k \\in \\mathbb{Z}[X]$, then the polynomial $f(x)$ would also be in $\\mathbb{Z}[X]$.\n\n*Proof.* Assume $f(x) = a_n x^n + \\cdots + a_0$. Then we can write $f(x)^k = b_k x^{kn} + \\cdots + b_1 x + b_0$. Now, assume inductively that $a_n, a_{n-1}, \\ldots, a_{n-s}$ are rational then we must prove $a_{n-s-1}$ is rational. For proving this, we compare the coefficient of $x^{kn-s-1}$ in the both sides. Then we can say that $b_{kn-s-1} = a_{n-s-1}a_n^{k-1} + S$ where $S$ is a rational number. We conclude that $a_{n-s-1}$ is also a rational number. That is, $f(x)$ must have rational coefficients.\n\nNow we want to prove that $f(x)$ has integer coefficients. If for some $k$ we have $f(x)^k = f(x)^{k-1} \\cdot f(x) \\in \\mathbb{Z}[X]$, then by use of Gauss's lemma, we can say that there exists a rational number $q$ such that the polynomials $qf(x)$ and $q^{-1}f(x)^{k-1}$ have integer coefficients. Assume $q = \\frac{a}{b}$ where $\\gcd(a, b) = 1$. Thus we can say that $af(x)$ and $bf(x)^{k-1}$ have integer coefficients. Therefore, the polynomial $a^{k-1}f(x)^{k-1}$ has integer coefficients. We know there exist integers $s, t$ such that $a^{k-1}s + bt = 1$. Thus the polynomial $a^{k-1}sf(x)^{k-1} + btf(x)^{k-1} = f(x)^{k-1}$ has integer coefficients. Continuing this process we can observe that $f(x)$ has integer coefficients.\n\nWe also need the following lemma.\n\n**Lemma.** Let $P(x)$ and $Q(x)$ be two polynomials with rational coefficients such that $Q(x)$ divides $P(x)$ then the quotient of these polynomials, i.e., $R(x) = \\frac{P(x)}{Q(x)}$ has rational coefficients.\n\n*Proof.* It is clear based on the division algorithm of polynomials.\n\nBack to our problem, let $R(x)$, $S(x)$ and $T(x)$ be three elements of the desired set. Since $R(x)S(x)$, $R(x)T(x)$ and $S(x)T(x)$ all have integer coefficients then $R(x)^2 = \\frac{R(x)S(x)R(x)T(x)}{S(x)T(x)}$ has also rational coefficients. Let $r, s$ and $t$ be the leading coefficients of $R(x)$, $S(x)$ and $T(x)$, respectively. Since $R(x)S(x)$, $S(x)T(x)$ and $R(x)T(x)$ are all special, it follows that $rs = st = tr = 1$. Hence, $r = s = t = \\pm 1$. Applying above lemma, we find that $R(x)$, $S(x)$ and $T(x)$ have rational coefficients. Thus, $R(1)$, $S(1)$ and $T(1)$ are rational numbers. Further, $R(1)T(1) = R(1)S(1) = T(1)S(1) = 1399$. It follows that $R(1), S(1), T(1) \\in \\{\\pm\\sqrt{1399}\\}$. This is impossible. So, such a set doesn't exist. ■", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 32842, "subject": "Mathematics (Multi-modal)", "question": "Let us denote by $\\Omega(n)$ and $\\omega(n)$ the largest and the smallest prime divisors of $n$, respectively. Alireza and Amin decided to play the following game. Starting with Alireza, he chooses 1400 polynomials with integer coefficients. Then, Amin chooses 700 polynomials among them and denotes their sets by $A$ and $B$, respectively. Amin shall win the game if for each positive integer $n$\n$$\n\\max_{\\{P \\in A\\}}(\\Omega(P(n))) \\geq \\min_{\\{Q \\in B\\}}(\\omega(Q(n))),\n$$\notherwise, Alireza shall win the game. Which player has the winning strategy?", "options": [], "answer": "Alireza", "solution": "Let us denote by $A_1, \\dots, A_N$ all the 700-element subsets of $\\{1, 2, \\dots, 1400\\}$. Let $N = \\binom{1400}{700}$. Now, choose 1400 polynomials $P_1, \\dots, P_{1400}$ of the following form:\n$$\nP_i(x) = 1 + 10^{10} \\prod_{1 \\le j \\le N,\\ j \\in A_i} (x - j).\n$$\nWe now claim that if Alireza chooses these 1400 polynomials, he shall win the game. Assume that Amin chooses 700 polynomials $P_{i_1}, \\dots, P_{i_{700}}$. Let us denote by $A_l$ the set $\\{i_1, \\dots, i_{700}\\}$. Then, for all $i \\in A_l$ we have $P_i(l) = 1$ hence $\\Omega(P_i(l)) = 1$. Otherwise, $P_i(l) = 1 + 10^{10} K_i$ then $|P_i(l)| > 2$ and hence $\\omega(P_i(l)) \\ge 2 > 1$.\n\nHence, for $n = l$;\n$$\n1 = \\max_{i \\in A_l} (\\Omega(P_i(l))) < \\min_{i \\notin A_l} (\\omega(P_i(l))).\n$$\nThus, by choosing such polynomials, Alireza shall win.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32843, "subject": "Mathematics (Multi-modal)", "question": "Let $a, b > 1$ be positive integers. Prove that there are infinitely many positive integers $n$ such that the following equation has no solution $(k, t)$ in positive integers.\n$$\n\\varphi(a^n - 1) = b^k - b^t.\n$$", "options": [], "answer": "Detailed solution", "solution": "We first prove the following two lemmas.\n\n**Lemma.** Let $p$ be a prime number and $b > 1$ be an integer such that $\\gcd(p, b) = 1$. Then, for all positive integers $n$;\n$$\n\\nu_p(b^n - 1) \\leq \\nu_p(n) + C,\n$$\nfor some constant positive integer $C$.\n*Proof.* Let $d$ be the order of $b$ modulo $p$ then if $n$ is not divisible by $d$ then $\\nu_p(b^n - 1) = 0$ and $C = 1$ works. On the other hand, if $n$ is divisible by $d$ then for all odd $p$;\n$$\n\\nu_p(b^n - 1) = \\nu_p(b^d - 1) + \\nu_p(n) - \\nu_p(d) < \\nu_p(b^d - 1) + \\nu_p(n).\n$$\nand $C = \\nu_p(b^d - 1)$ has the desired property.\nFinally, if $p = 2$;\n$$\n\\nu_2(b^n-1) = \\nu_2(b^d-1)+\\nu_2(b^d+1)+\\nu_p(n)-\\nu_p(d) < \\nu_2(b^d-1)+\\nu_2(b^d+1)+\\nu_p(n).\n$$\nLetting $C = \\nu_2(b^d - 1) + \\nu_2(b^d + 1)$. Hence, $C = \\max\\{1, \\nu_p(b^d - 1), \\nu_2(b^d - 1) + \\nu_2(b^d + 1)\\}$. This completes our proof.\n\n**Lemma 1.** Let $p$ be a prime number and $a > 1, m > 1$ be positive integers. Every prime divisor $q$ of $N_m = \\frac{a^{p^m}-1}{a^{p^m-1}-1}$ is either $p$ or of the form $p^m k + 1$. In the former case $a \\equiv 1 \\pmod{p}$.\n*Proof.* Let $c = a^{p^{m-1}}$ then $N_m = \\frac{c^{p}-1}{c-1}$. Then, if $q$ divides $N_m$ then the order of $c$ mod $q$ is either $p$ or $1$. In the former case, $c^p = a^{p^m} \\equiv 1 \\pmod q$. Now, the order of $a$ mod $q$ divides $p^m$ and hence is a power of $p$. But if it is not equal to $p^m$ then $c \\equiv 1 \\pmod q$, contradicting to our assumption. Hence, the order is $p^m$ and it must divide $q-1$. In the latter case, $c \\equiv 1 \\pmod q$. Hence, $N_m = 1+c+\\cdots+c^{p-1} \\equiv p \\equiv 0 \\pmod q$. Thus $p=q$. Further, it can only happen whenever, $c = a^{p^{m-1}} \\equiv 1 \\pmod q$. Since $p=q$ it follows that $a^{p^{m-1}} \\equiv a \\equiv 1 \\pmod p$, as desired.\n\nBack to our problem. Take a prime $p$ such that $p > b(a-1)$ we prove that $n = p^r$ satisfies the statement of the problem for all large $r$. Indeed,\n$$\na^{p^r} - 1 = (a^p - 1) \\left( \\frac{a^{p^2} - 1}{a^p - 1} \\right) \\cdots \\left( \\frac{a^{p^r} - 1}{a^{p^{r-1}} - 1} \\right) = (a^p - 1) N_2 \\cdots N_r.\n$$\nBy the choice of $p$ there are pair-wise distinct prime numbers $q_2, \\dots, q_r$ such that $q_i$ divides $N_i$, $i = 2, \\dots, r$. Furthermore, $q_2 \\dots q_r$ divides $a^{p^r} - 1$ hence, $(q_2 - 1) \\dots (q_r - 1)$ divides $\\varphi(a^{p^r} - 1)$. Since $q_i - 1$ is divisible by $p^i$, $i = 1, \\dots, r$ it follows that\n$$\n\\nu_p \\left( \\varphi (a^{p^r} - 1) \\right) \\geq 2 + 3 + \\dots + r \\geq \\frac{1}{2} r^2.\n$$\n\nTaking $s = k - t$, this implies that $b^s - 1$ must be divisible by $p^{\\frac{1}{2}r^2}$. By our first lemma, $\\nu_p(b^s - 1) < s + C$. Hence,\n$$\ns > p^{\\frac{1}{2}r^2 - C}.\n$$\nOn the other hand,\n$$\na^{p^r} - 1 > \\varphi(a^{p^r} - 1) = b^k - b^t = b^t(b^s - 1) > b^s - 1 > b^{p^2 \\frac{1}{2}r^2 - C} - 1.\n$$\nThat is,\n$$\na^{p^r} > b^{p^2 \\frac{1}{2}r^2 - C},\n$$\nIt is clear that for all large enough $r$, the right side will emulate the left side. Thus, it is enough to take $n = p^r$ for all large enough $r$ to ensure that there are no such $k, t$.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 32844, "subject": "Mathematics (Multi-modal)", "question": "Find the maximum number of 5-element subsets of the set $\\{1, 2, \\dots, 20\\}$ such that the intersection of any pair of these subsets has exactly one element.", "options": [], "answer": "16", "solution": "The answer is $16$. For the example consider the following family of $5$-element subsets.\n$$\n\\begin{aligned}\n\\{1, 2, 3, 4, 5\\} & & \\{2, 6, 10, 14, 18\\} \\\\\n\\{2, 7, 11, 15, 19\\} & & \\{2, 8, 12, 16, 20\\} \\\\\n\\{1, 6, 7, 8, 9\\} & & \\{3, 8, 13, 15, 18\\} \\\\\n\\{3, 9, 12, 14, 19\\} & & \\{3, 6, 11, 17, 20\\} \\\\\n\\{1, 10, 11, 12, 13\\} & & \\{4, 7, 12, 17, 18\\} \\\\\n\\{4, 6, 13, 16, 19\\} & & \\{4, 9, 10, 15, 20\\} \\\\\n\\{1, 14, 15, 16, 17\\} & & \\{5, 9, 11, 16, 18\\} \\\\\n\\{5, 8, 10, 17, 19\\} & & \\{5, 7, 13, 14, 20\\}\n\\end{aligned}\n$$\nNext, we prove that there is no such family with $17$ subsets. Without loss of generality we can assume that $A_1 = \\{1, 2, 3, 4, 5\\}$ is among the subsets. By pigeonhole principle there are at least four subsets such that intersection of each of them with $A_1$ is the same. Without loss of generality call these four subsets $A_2, A_3, A_4$ and $A_5$, and assume that for all integer numbers $2 \\le i \\le 5$, $A_i \\cap A_1 = \\{1\\}$. So by assumption we also know that $A_i \\cap A_j = \\{1\\}$ for all integer numbers $2 \\le i < j \\le 5$. Hence $A_1 \\cup A_2 \\cup A_3 \\cup A_4 \\cup A_5$ has $21$ elements which is a contradiction. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32845, "subject": "Mathematics (Multi-modal)", "question": "Given circles $\\omega_1$ and $\\omega_2$ with two intersection points $A$ and $B$. Points $X$ on $\\omega_1$ and $Y$ on $\\omega_2$ are chosen such that $XY$ is tangent to both circles and $XY$ is closer to $B$ than $A$. If $C$ and $D$ are the reflections of $X$ and $Y$ with respect to $B$, prove that $\\angle CAD < 90^\\circ$.", "options": [], "answer": "Detailed solution", "solution": "Suppose that $AB$ intersects $XY$ and $CD$ at $M$ and $N$, respectively. By comparing the power of $M$ with respect to $\\omega_1$ and $\\omega_2$ we have\n$$\nMX^2 = MB \\cdot MA = MY^2 \\implies MX = MY\n$$\n\n$\\angle CAD < 90^\\circ$ it suffices to prove that $A$ is outside the circle with diagonal $CD$; or equivalently to prove $NA > NC$. It is clear that\n$$\nNA = NM + MA = MB + MA \\quad \\text{and} \\quad NC = 2MX.\n$$\nSo we have to show that $MB + MA > 2MX$. Then by AM-GM inequality\n$$\nMX^2 = MA \\cdot MB \\le \\left( \\frac{MA + MB}{2} \\right)^2 \\implies MA + MB \\ge 2MX.\n$$\nNote that the equality case only occurs whenever $MB = MA$, however we know that $MB > MA$, so we have $MB + MA > 2MX$.\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32846, "subject": "Mathematics (Multi-modal)", "question": "Call a triple of numbers **nice** if one of them is the average of the other two. Assume that we have $2k + 1$ distinct numbers with $k^2$ nice triples. Prove that these numbers can be divided into two arithmetic progressions with equal ratios.", "options": [], "answer": "Detailed solution", "solution": "Let the numbers be $a_1 < a_2 < \\dots < a_{2k+1}$ in increasing order. First notice that the numbers $a_1, a_2, \\dots, a_k, a_{k+1}, a_{k+2}, \\dots, a_{2k+1}$ can be the middle element of at most $0, 1, 2, \\dots, k-1, k, k-1, \\dots, 0$ nice triples, respectively. Therefore, in total we have at most $0 + 1 + 2 + \\dots + k - 1 + k + k - 1 + \\dots + 0 = k^2$ nice triples, and the equality holds when we reach all above upper bounds. In particular, $a_{k+1}$ has to be the middle element of $k$ nice triples, meaning that the set is symmetric with respect to $a_{k+1}$.\n\nWe use induction to prove a stronger statement, namely we can divide the numbers into two arithmetic progressions with equal ratios, which are both symmetric with respect to $a_{k+1}$. For $k = 1$ two subsets $\\{a_1, a_3\\}$ and $\\{a_2\\}$ work.\n\nNow for the numbers $a_1 < a_2 < \\dots < a_{2k+1}$ with $k^2$ nice triples, we know that $a_1, a_{k+1}, a_{2k+1}$ form a nice triple. So $a_1$ appears in at most $k$ nice triples (the middle element for such triples is not bigger than $a_{k+1}$), also $a_{2k+1}$ appears in at most $k$ nice triples (the middle element for such triples is not smaller than $a_{k+1}$), with one nice triple in common. Therefore, in total there are at most $k + k - 1 = 2k - 1$ nice triples having $a_1$ or $a_{2k+1}$ (or both). Therefore, there are at least $k^2 - (2k - 1) = (k - 1)^2$ nice triples all in the set $\\{a_2, a_3, \\dots, a_{2k}\\}$. Thus the equality holds for all above bounds, and the induction hypothesis shows that one can split the set $\\{a_2, a_3, \\dots, a_{2k}\\}$ into two arithmetic progressions with equal ratios, say $d$, which are both symmetric with respect to $a_{k+1}$.\n\nNow consider the numbers $a_k, a_{k+1}, a_{k+2}$ forming a nice triple while at least two of them are consecutive elements of an arithmetic progression with ratio $d$. This means that the difference between $a_k, a_{k+1}$ is $d/2$ or $d$, the latter case is forcibly the case that the numbers $a_2, a_3, \\dots, a_{2k}$ form an arithmetic progression with ratio $d$.\n\nOn the other hand, $a_1$ forms a nice triple with $a_{k+1}, a_{2k+1}$, and also with $a_k$ and another number, say $a_t$. So the difference $a_{2k+1} - a_t$ is twice the difference $a_{k+1} - a_k$, which is $d/2$ or $d$ as claimed above. In the first case, $a_{2k+1} - a_t = d$ which states that $a_{2k+1}$ is the next element in the arithmetic progression having $a_t$, (also $a_1$ is an element of such progression because both arithmetic progressions are symmetric with respect to $a_{k+1}$). In the second case, $a_2, a_3, \\dots, a_{2k}$ is an arithmetic progression with ratio $d$ and we have $a_{2k+1} - a_t = 2d$, so $t = 2k$. In this case the two subsets $\\{a_1, a_2, a_4, \\dots, a_{2k-2}, a_{2k}, a_{2k+1}\\}$ and $\\{a_3, a_5, \\dots, a_{2k-1}\\}$ are arithmetic progressions with ratio $2d$, both symmetric with respect to $a_{2k+1}$. This concludes the induction statement in both cases. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32847, "subject": "Mathematics (Multi-modal)", "question": "A pair of natural numbers $(a, b)$ is called *square-maker* if $ab + 1$ is a perfect square. Find all natural numbers $n$ such that $\\{1, 2, 3, \\dots, 2n\\}$ can be partitioned into square-maker pairs.", "options": [], "answer": "n = 2t for positive integers t", "solution": "The answer is $n = 2t$, for some positive integer $t$. To give an example note that $x(x+2)+1=(x+1)^2$. Assume that $n = 2t$ and consider the partition\n$$\n(1, 3), (2, 4), \\dots, (4t-2, 4t).\n$$\nWe want to prove that it is impossible for $n = 2k+1$. Note that if $a = 4t+2$ and $ab+1 = n^2$, by looking at both sides modulo $8$ we have $b \\equiv 0 \\pmod 4$.\n\nSo the numbers of the form $4t + 2$ can only be square-maker with numbers of the form $4s + 4$, but there are $k + 1$ numbers of the form $4t + 2$ and only $k$ number of the form $4t$ less than $2n$, so it would be impossible to partition $\\{1, 2, \\dots, 2n\\}$ to square-maker pairs. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32848, "subject": "Mathematics (Multi-modal)", "question": "A circle divided into $2n$ arcs, we intend to write $0, 1, \\dots, n-1$ on these arcs such that each number is used exactly two times and for $0 \\le i \\le n-1$ from one direction there are exactly $i$ arcs between two arcs such that $i$ is written on them. Prove that this is impossible for $n = 1399$.", "options": [], "answer": "Detailed solution", "solution": "We number the arcs with $0, 1, 2, \\dots, 2n - 1$, clockwise and assume that the arcs with numbers $a_i$ and $b_i$ have $i$ written on them. By the problem's assumption\n$$\na_i + b_i \\equiv a_i - b_i \\equiv \\pm(i + 1) \\equiv i + 1 \\pmod{2}.\n$$\nThen by adding up these equalities modulo $2$ we have\n$$\n\\begin{align*}\n\\sum_{i=0}^{n-1} (i+1) &\\equiv \\sum_{i=0}^{2n-2} (a_i + b_i) = \\sum_{i=0}^{2n-1} i \\\\\n&\\implies \\frac{n(n+1)}{2} \\equiv n(2n-1).\n\\end{align*}\n$$\nThe number $1399$ does not satisfy the last equation and this concludes the proof. ■", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32849, "subject": "Mathematics (Multi-modal)", "question": "Point $D$ is chosen on the *Euler line* of triangle $ABC$, inside the triangle. Let $E, F$ be the intersection points of $BD, AC$ and $CD, AB$, respectively. Point $X$ lies on the line $AD$ such that $\\angle EXF = 180^\\circ - \\angle A$, also $A$ and $X$ are on the same side of $EF$. If $P$ is the second intersection of circumcircles of $CXF$ and $BXE$, prove that the lines $XP$ and $EF$ meet on the altitude of $A$. (the Euler line is the line connecting the orthocenter to the circumcenter.)\n\n![](attached_image_1.png)", "options": [], "answer": "Detailed solution", "solution": "$$\n\\frac{BD}{CD} \\cdot \\frac{\\sin(\\angle A - \\angle ABD)}{\\sin(\\angle A - \\angle ACD)} = \\frac{\\cos \\angle B}{\\cos \\angle C} \\quad (\\heartsuit)\n$$\nLet $R$ and $Q$ be the intersections of the perpendicular bisectors of $AC$ and $AB$ with $AB$ and $AC$, respectively. It is well-known that $CR$ and $BQ$ meet on $OH$. Let $S$ be the concurrency point of $CR$ and $BQ$. It is obvious that $\\angle A - \\angle ACD = 180^\\circ - \\angle DCS$ and $\\angle A - \\angle ABD = \\angle SBD$. So by law of sines\n$$\n\\frac{\\sin \\angle DSB}{\\sin \\angle DSC} = \\frac{BD}{CD} \\cdot \\frac{\\sin \\angle DBS}{\\sin \\angle DCS} = \\frac{BD}{CD} \\cdot \\frac{\\sin(\\angle A - \\angle ABD)}{\\sin(\\angle A - \\angle ACD)} \\quad (1)\n$$\n\nand\n$$\n\\frac{\\sin \\angle OSB}{\\sin \\angle OSC} = \\frac{BO}{CO} \\cdot \\frac{\\sin \\angle OBS}{\\sin \\angle OCS} = \\frac{\\cos \\angle B}{\\cos \\angle C}. \\quad (2)\n$$\nFrom (1) and (2), (\\heartsuit) follows.\n\nSuppose that the circumcircle of triangle $BXE$ intersects the lines $AB$ and $EF$ again at $L$ and $U$, and the circumcircle of triangle $CXF$ intersects the lines $AC$ and $EF$ again at $K$ and $V$. Let $AH$ and $AD$ intersect $EF$ and $BC$ at $J$ and $G$, respectively. We just need to show that $\\frac{JE}{JV} = \\frac{JF}{JU}$ that is equivalent to $\\frac{JE}{EV} = \\frac{JF}{FU}$. Notice that\n$$\n\\angle KXE = \\angle KXF - \\angle EXF = (180^\\circ - \\angle ACD) - (180^\\circ - \\angle A) = \\angle A - \\angle ACD.\n$$\nNow by law of sines\n$$\n\\frac{EK}{EX} = \\frac{\\sin \\angle KXE}{\\sin \\angle XKE} = \\frac{\\sin(\\angle A - \\angle ACD)}{\\sin \\angle XFC}.\n$$\nSimilarly we have\n$$\n\\frac{FL}{FX} = \\frac{\\sin(\\angle A - \\angle ABD)}{\\sin \\angle XEB}.\n$$\n\nTherefore,\n$$\n\\begin{align*}\n\\frac{EK}{FL} &= \\frac{EX}{FX} \\cdot \\frac{\\sin \\angle XEB}{\\sin \\angle XFC} \\cdot \\frac{\\sin(\\angle A - \\angle ACD)}{\\sin(\\angle A - \\angle ABD)} \\\\\n&= \\frac{\\sin \\angle EDA}{\\sin \\angle FDA} \\cdot \\frac{\\sin(\\angle A - \\angle ACD)}{\\sin(\\angle A - \\angle ABD)} \\tag{3} \\\\\n&= \\frac{BG}{CG} \\cdot \\frac{CD}{BD} \\cdot \\frac{\\sin(\\angle A - \\angle ACD)}{\\sin(\\angle A - \\angle ABD)} \\stackrel{(\\heartsuit)}{=} \\frac{BG}{CG} \\cdot \\frac{\\cos \\angle C}{\\cos \\angle B},\n\\end{align*}\n$$\nOn the other hand by Ceva's theorem\n$$\n\\frac{EK}{FL} = \\frac{\\frac{EV \\cdot EF}{CE}}{\\frac{FU \\cdot EF}{BF}} = \\frac{EV}{FU} \\cdot \\frac{BG}{CG} \\cdot \\frac{AF}{AE} \\\\\n\\stackrel{(3)}{\\implies} \\frac{EV}{FU} = \\frac{AE}{AF} \\cdot \\frac{\\cos \\angle C}{\\cos \\angle B} = \\frac{JE}{JF},\n$$\nas desired.\n■", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32850, "subject": "Mathematics (Multi-modal)", "question": "Natural numbers are placed in the cells of an infinite grid, such that the number in each cell is equal to the number of its adjacent cells having the same number (two cells of the grid are adjacent if they have a common vertex). Find the maximum value of distinct numbers this infinite grid can have.", "options": [], "answer": "5", "solution": "The answer is $5$. For the example consider the following table (see the cover photo of the booklet).\n$$\na_{ij} = \\begin{cases} 2 & i \\equiv 1 \\pmod{8} \\\\ 5 & i \\equiv 4, 5 \\pmod{8} \\\\ 4 & i \\equiv 0 \\pmod{8} \\text{ or } i \\equiv 7 \\pmod{8} \\text{ and } j \\not\\equiv 2, 5 \\pmod{6} \\\\ 1 & i \\equiv 3 \\pmod{8} \\text{ and } j \\not\\equiv 2, 5 \\pmod{6} \\\\ 3 & \\text{otherwise.} \\end{cases}\n$$\nWhere $a_{ij}$ is the number written in the cell $(i, j)$.\n\nTo prove that $5$ is maximum, note that if there is one $8$ in this table all other cells should be $8$. If there is a $7$ in this table then it has a neighbor $a$ which is not $7$, and $a$ should have a neighbour $b$ which is not $7$. Now none of the common neighbors of $a, b$ can be $7$. But it is easy to see that $a, b$ has a common neighbor with number $7$ which is a contradiction. Hence, $7$ can not appear in this table.\n\nAssume that all the numbers $\\{1, 2, 3, 4, 5, 6\\}$ will appear in this table. Define the taxi-cab distance between $(i, j)$ and $(i', j')$ to be $|i - i'| + |j - j'|$. Let $a_{i',j'} = 5$ and $(i,j)$ be a cell with number $6$ with minimal taxi-cab distance with $(i', j')$. We claim that $|i - i'| + |j - j'| = 1$ which is equivalent to say that $(i, j)$ and $(i', j')$ have a common edge.\n\nTo prove the claim, note that if $i \\neq i'$ and $j \\neq j'$, because of symmetry we may assume $i > i'$, $j > j'$. Note that we have $a_{i+1,j} = 6$ or $a_{i,j+1} = 6$ or $a_{i+1,j+1} = 6$ and all these three cells have less taxi-cab distance with $(i', j')$ than $(i, j)$. So every cell filled with number $6$ having minimal taxi-cab distance to $(i', j')$ should be in the same row or column with this cell. Suppose that $j = j'$ and $i < i'$. Now, we have $a_{i+1,j+1} = 6$ or $a_{i+1,j} = 6$ or $a_{i+1,j-1} = 6$. But all three cases are impossible. Indeed $a_{i+1,j} = 6$ contradicts minimality of taxi-cab distance from $(i,j)$ to $(i',j')$, and $a_{i+1,j \\pm 1} = 6$ contradicts the observation above that cells with number $6$ and minimal distance to $(i',j')$ should be in the same row or column. So the claim is proved.\n\nNow consider the two adjacent cells with numbers $6,5$. These two cells have $10$ neighbors in total, $6$ of them should be $6$ and $5$ of them should be $5$ which is impossible. Thus, the maximum possible number is $5$ and the solution is complete.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 32851, "subject": "Mathematics (Multi-modal)", "question": "Find all functions $f : \\mathbb{N} \\to \\mathbb{N}$ such that for all positive integers $m$ and $n$\n$$\nf(n) + 1400m^2 \\mid n^2 + f(f(m)).\n$$", "options": [], "answer": "no such function", "solution": "**Lemma.** *There are infinitely many positive integers $n$ such that*\n$$\nf(n) \\geq n^{\\frac{13}{10}}.\n$$\n*Proof.* Letting $(m,n) = (m,f(m))$ to obtain $f(f(m)) + 1400m^2 \\mid f(m)^2 + f(f(m))$ yielding $f(m) > m$. Plugging $n=1$ to obtain $f(1) + 1400m^2 \\mid 1 + f(f(m))$ yielding $f(f(m)) > m^2$. Assume to the contrary that for all but finitely many $n$ we have $f(n) \\le n^{\\sqrt{2}}$. Since $f(n) > n$ we would obtain $n^2 < f(f(n)) \\le f(n)^{\\sqrt{2}}$ yielding $f(n) > n^{\\sqrt{2}}$, a contradiction. Hence, $f(n) > n^{\\sqrt{2}} > n^{\\frac{13}{10}}$ for infinitely many $n$. This completes our proof.\n\nLet us denote the set of such $n$ by $T$. Letting $t \\in T$ and $a$ be a fixed positive integer. Plugging $(m,n) = (t,1)$, $(t,a)$ to obtain $t^2 + A = C(f(t) + 1400)$ and $t^2 + B = D(f(t) + 1400a^2)$ for some positive integers $C, D$ whilst $A = f(f(1))$, $B = f(f(a))$. Choose $t$ such that $A, B < t^{\\frac{7}{10}}$ it follows that\n$$\n1400CD(1 - a^2) - (AD - BC) = t^2(C - D).\n$$\nThe left side is $O(t^{\\frac{7}{10}})$ while the right side is $O(t^2)$ unless $C = D$. Hence, for all large enough $t$, $C = D$ and therefore, $C = \\frac{A-B}{1400(1-a^2)}$, $f(t) = \\frac{t^2+A-1400C}{C}$. Notice that $C$ is a function of $t$ hence, $C$ doesn't depend on $a$. Thus changing $a$ would not change $C$. Hence, for all positive integers $a, b$ :\n$$\n\\frac{f(f(a)) - f(f(1))}{1400(1 - a^2)} = \\frac{f(f(b)) - f(f(1))}{1400(1 - b^2)}.\n$$\nImplying that $f(f(a)) = ra^2 + s$, for some constants $r, s$. That is,\n$$\nf(n) + 1400m^2 \\mid n^2 + rm^2 + s,\n$$\nYielding\n$$\nf(n) + 1400m^2 \\mid 1400n^2 - rf(n) + 1400s.\n$$\nChoose $m$ large enough to obtain that $1400n^2 - rf(n) + 1400s = 0$. That is,\n$$\nf(n) = \\frac{1400n^2 + 1400s}{r},\n$$\nBut then $f(f(n))$ must be a polynomial of degree 4 in $n$. This contradicts to what we've already obtained. Hence, there is no such a function. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32852, "subject": "Mathematics (Multi-modal)", "question": "Prove there are coprime polynomials $P(x)$ and $Q(x)$ with integer coefficients and a real number $u > 0$ such that if\n$$\n\\left| \\frac{a}{c} - 1 \\right|^{2021} \\leq \\frac{u}{d c^{1010}}, \\quad \\left| \\left( \\frac{a}{c} \\right)^{2020} - \\frac{b}{d} \\right| \\leq \\frac{u}{d c^{1010}},\n$$\nfor some positive integers $a, b, c, d$, then we have $bP\\left(\\frac{a}{c}\\right) = dQ\\left(\\frac{a}{c}\\right)$.", "options": [], "answer": "Detailed solution", "solution": "We shall prove a more general statement in the following lines.\n**Proposition.** Let $k$ be a positive integer. Prove that for all pairs $(c, d)$ of integers such that $|c|$ and $|d|$ are prime numbers there is a positive integer $N$ such that the number of pairs $(a, b)$ of integers satisfying the following inequalities is at most $N$, for all sufficiently small positive real numbers $u, v$.\n$$\n|b||a-c|^{2021} \\le u|c|^{1011}, \\quad |a^k b - c^k d| \\le v|c|^{k-1010}.\n$$\nLet us rewrite the original inequalities as $|b|\\left|\\frac{a}{c} - 1\\right|^{2021} \\le u|c|^{-1010}$ and $\\left|\\left(\\frac{a}{c}\\right)^k b - d\\right| \\le v|c|^{-1010}$. Then if $k \\le 1010$ then $a^k b = c^k d$ and hence, we only have finitely many solutions for $a, b$. Hence, assume that $k > 1010$. We then prove the following lemma:\n**Lemma.** There are polynomials $P(x), Q(x)$ of degree $1010$ with integer coefficients such that the polynomial $P(x) - x^k Q(x)$ has a $2021$-fold zero at $x = 1$.\n*Proof.* We shall prove that for all triples $(m, n, k)$ of natural numbers such that $n > k$ there are polynomials $P(x) = P_{(m,n,k)}(x)$, $Q(x) = Q_{(m,n,k)}(x)$ of degrees $m, n$ with rational coefficients such that $P(x) - x^k Q(x)$ is divisible by $(x-1)^{m+n+1}$. We shall prove this through induction, considering the following expression:\n$$\nx (P_{(m,n-1,k)}(x) - x^k Q_{(m,n-1,k)}(x)) + r (P_{(m-1,n,k)}(x) - x^k Q_{(m-1,n,k)}(x)).\n$$\nSince both brackets are divisible by $(x-1)^{m+n}$ then there would be a rational number $r$ such that the above expression is divisible by $(x-1)^{m+n+1}$ then defining $P_{(m,n,k)}(x) = xP_{(m,n-1,k)}(x) + rP_{(m-1,n,k)}(x)$ and $Q_{(m,n,k)}(x) = xQ_{(m,n-1,k)}(x) + Q_{(m-1,n,k)}(x)$. Moreover, for the base case, that is when one of $m, n$ are zero, the statement is obvious. This completes our proof.\n\n**Comment 1.** If $P_{(m,n,k)}(0) = 0$ for some non-zero $m, n$ then the polynomial $P_{(m,n,k)}(x) - x^k Q_{(m,n,k)}(x)$ has at most $m+n$ non-zero coefficients, impossible.\n**Lemma.** $P_{(m,n,k)}(x), Q_{(m,n,k)}(x)$ have no common factor.\n*Proof.* Assume for the contradiction that there is a non constant polynomial $D(x)$ of degree $d$ dividing both of them. Then at least $(x-1)^{m+n+1-d}$ divides $\\frac{P_{(m,n,k)}(x)}{D(x)} - x^k \\frac{Q_{(m,n,k)}(x)}{D(x)}$. Since the not-zero coefficient of this polynomial is at most $m+n-2d+2$. But, according to our lemma 2 it must at least have $m+n+2-d$ non-zero coefficients. Therefore, $d \\le 0$. This completes our proof.\n\nNow, there are coprime polynomials $P(x), Q(x)$ of degree $1010$ with integer coefficients such that $P(x) - x^k Q(x)$ is divisible by $(x-1)^{2021}$ and hence there are polynomials $A(x), B(x)$ with integer coefficients of the same degree that doesn't exceed $1010$ such that\n$$\nA(x)P(x) + B(x)Q(x) = R, \\quad (1)\n$$\nfor some non-zero constant $R$.\n**Lemma.** If $a, b, c$ and $d$ satisfy the statement of our problem then $bP\\left(\\frac{a}{c}\\right) = dQ\\left(\\frac{a}{c}\\right)$.\n*Proof.* We prove the lemma for polynomial $P(x) - x^k Q(x)$, for some positive integer $k \\ge \\deg P(x) = \\deg Q(x) = d$. Then, the second inequality becomes $|a^k b - c^k d| \\le v|c|^{k-1010}$. Since $|b| \\ge 1$, take $u < 1$ then $|a-c| \\le |c|$ therefore, $|a| \\le 2|c|$. Moreover, let $d = 1010$, and $R(x) = P(x) - x^k Q(x)$, the following quantity is an integer:\n$$\nc^d \\left( bP\\left(\\frac{a}{c}\\right) - dQ\\left(\\frac{a}{c}\\right) \\right) = bc^d R\\left(\\frac{a}{c}\\right) + (a^k b - c^k d) c^{d-k} Q\\left(\\frac{a}{c}\\right).\n$$\nNow, if $bP(\\frac{a}{c}) \\neq dQ(\\frac{a}{c})$ then, $|c^d (bP(\\frac{a}{c}) - dQ(\\frac{a}{c}))| \\ge 1$. Thus, by triangle inequality, we find that\n$$\n|bc^d R\\left(\\frac{a}{c}\\right)| + \\left| (a^k b - c^k d) c^{d-k} Q\\left(\\frac{a}{c}\\right) \\right| \\ge 1.\n$$\nWrite $R(x) = (1-x)^{2d+1} S(x)$ then, $bc^d R\\left(\\frac{a}{c}\\right) = bc^d (1-\\frac{a}{c})^{2d+1} S\\left(\\frac{a}{c}\\right) = c^{-d-1} b(c-a)^{2d+1} S\\left(\\frac{a}{c}\\right)$. Thus,\n$$\n|c^{-d-1} b(c-a)^{2d+1} S\\left(\\frac{a}{c}\\right)| + \\left| (a^k b - c^k d) c^{d-k} Q\\left(\\frac{a}{c}\\right) \\right| \\ge 1.\n$$\nThat is, $|b||c-a|^{2d+1} |c^{-d-1}| |S(\\frac{a}{c})| + |a^k b - c^k d| |c^{d-k}| |Q(\\frac{a}{c})| \\ge 1$. By use of problem's assumption, we find for all $u, v$: $|u| |S(\\frac{a}{c})| + |v| |Q(\\frac{a}{c})| \\ge 1$.\n\nAssume that $S(x) = c_{k-d-1}x^{k-d-1} + \\cdots + c_0$ be a polynomial with integer coefficients. Then, $|S(\\frac{a}{c})| \\le \\sum_{i=0}^{k-d-1} |c_i|2^i = C_1$ which is a constant number. Furthermore, by the same argument we can find that $|Q(\\frac{a}{c})| \\le C_2$ for some constant $C_2$. This yields to:\n$$\nu C_1 + vC_2 \\ge 1.\n$$\nThe last inequality would be absurd for all sufficiently small $u, v$. We are done.\n\nPutting $x = \\frac{a}{c}$ in (1) and multiply both sides by $c^{2020}$ it follows that\n$$\nc^{1010}A\\left(\\frac{a}{c}\\right) c^{1010}P\\left(\\frac{a}{c}\\right) + c^{1010}B\\left(\\frac{a}{c}\\right) c^{1010}Q\\left(\\frac{a}{c}\\right) = c^{2020}R.\n$$\nNow, using lemma 4 yielding to\n$$\nc^{1010} P\\left(\\frac{a}{c}\\right) \\left( d c^{1010} A\\left(\\frac{a}{c}\\right)+b c^{1010} B\\left(\\frac{a}{c}\\right)\\right) = c^{2020} d R.\n$$\nNote that if $\\gcd(a, c) > 1$ then $c$ must divide $a$. But then, $|b||a-c|^{2021} \\le u|c|^{1011}$ becomes $|b|^{\\frac{a}{c}-1}|c|^{2021} \\le u|c|^{-1010}$. Hence, it follows that $a=c$. Thus, assume that $\\gcd(a, c) = 1$.\nHence, $c^{1010}P(\\frac{a}{c})$ divides $c^{2020}dR$. Note that\n$$\n\\gcd\\left(c^{1010}P\\left(\\frac{a}{c}\\right), c\\right) = \\gcd\\left(c, a_{1010}a^{1010}\\right) = \\gcd(c, a_{1010}) = g \\le |a_{1010}|,\n$$\nwhere $a_{1010}$ is the leading coefficient of $P(x)$. Writing $c = gf$, $\\gcd(f, a_{1010}) = 1$ it follows that $c^{1010}P(\\frac{a}{c})$ divides $g^{2020}dR$. Since the number of divisors of $Rdg^{2020}$ is at most $2|R|g^{2020} \\le 2|R|a_{1010}^{2020}$, hence the total number of possibilities for $a$ is at most $2020|R|a_{1010}^{2020}$. Finally for each certain $a, b = \\frac{dQ(\\frac{a}{c})}{P(\\frac{a}{c})}$ would be determined uniquely. Moreover, note that $P(\\frac{a}{c}) \\ne 0$ because otherwise, $P, Q$ will have a common factor. Since $R$ only depends on the coefficients of $P(x), Q(x)$ we can put $N = 2020|R|a_{1010}^{2020}$. ■", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32853, "subject": "Mathematics (Multi-modal)", "question": "Let $ABC$ be an acute-angled triangle and $D$ be the foot of altitude from $A$. Let $K$, $L$ be the touching points of tangent lines from $D$ to the circles with diagonals $AB$ and $AC$, respectively. Point $S$ is given on the plane such that\n$$\n\\angle ABC + \\angle ABS = \\angle ACB + \\angle ACS = 180^\\circ.\n$$\nProve that $A$, $K$, $L$ and $S$ lie on a circle.", "options": [], "answer": "Detailed solution", "solution": "Suppose that $L$ and $K$ lie on the circumcircle of $ABD$ and $ADC$, respectively.\n![](attached_image_1.png)\n\nNote that $\\angle LAB = 90^\\circ - \\angle ABL = 90^\\circ - \\angle ADL = 90^\\circ - \\angle ACB$. Similarly we have $\\angle CAK = 90^\\circ - \\angle CBA$. Summing these two implies that $\\angle LAK = 2\\angle BAC$. Denote by $T$ the intersection of $BL$, $CK$, then\n$$\n\\angle TBC = 180^\\circ - \\angle CBA - \\angle ABL = 180^\\circ - \\angle CBA - \\angle ACB = \\angle BAC,\n$$\nand similarly $\\angle TCB = \\angle BAC$. Therefore $ABC$ is an isosceles triangle and $\\angle CTB = 180^\\circ - 2\\angle BAC$. Similarly, one can show that $\\angle CSB = 180^\\circ - 2\\angle BAC$ and so quadrilateral $BCTS$ is cyclic. Properties of $S$ imply that $A$ is the $S$-excenter of the triangle $BCS$ and so $SA$ is the angle bisector of $\\angle BSC$. Let $M$ be the midpoint of the arc $BC$ (the one that does not contain $S$) in the circumcircle of $BCS$. Clearly $M$ lies on $SA$.\nOn the other hand, since triangle $BTC$ is isosceles, $MT$ is a diagonal of the circumcircle of $BCS$. Thus, we can conclude that\n$$\n\\angle AST = \\angle MST = 90^\\circ = \\angle AKT = \\angle ALT.\n$$\nThis implies $AKLS$ is cyclic as desired. ■", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32854, "subject": "Mathematics (Multi-modal)", "question": "Is it possible to assign numbers $1, 2, \\ldots, 8$ to the vertices of a cube in a way that the assigned number of each vertex divides the sum of numbers assigned to its neighbours? (Note that every number should be used once).", "options": [], "answer": "No", "solution": "The answer is no. First, for every $1 \\leq i \\leq 8$ we define $N_i$ to be the set of numbers assigned to the vertices adjacent to the vertex with number $i$. By the problem's assumption, the sum of elements of $N_i$ is divisible by $i$. Since the sum of every three numbers less than $8$ is at most $7+6+5=18$, the sum of elements of $N_8$ is either $8$ or $16$. By checking different cases, it is easy to see $N_8$ equals to either $\\{3, 6, 7\\}$, $\\{4, 5, 7\\}$, $\\{5, 2, 1\\}$, or $\\{4, 3, 1\\}$. We will check these different cases.\n\n* If $N_8 = \\{3, 6, 7\\}$, let $N_6 = \\{x, y, 8\\}$. Evidently $N_8 \\cap N_6 = \\emptyset$. Now, by assumption, $6 \\mid x+y+8$, and $11 = 1+2+8 \\leq x+y+8 \\leq 17 = 4+5+8$. These imply $x+y = 4$ and so $\\{x, y\\} = \\{1, 3\\}$. This contradicts $N_8 \\cap N_6 = \\emptyset$.\n\n* The case $N_8 = \\{4, 5, 7\\}$ is similar to the previous case. We only need to consider $N_7$ instead of $N_6$.\n\n* If $N_8 = \\{1, 3, 4\\}$, denote by $x, y, z, t$ the numbers of other vertices as in the figure below. We have $\\{x, y, z, t\\} = \\{2, 5, 6, 7\\}$. It follows from $t \\mid x+y+z$ that $t$ is a divisor of $t+x+y+z = 20$ so $t = 5$. On the other hand, $y \\mid 1+3+t$. Therefore $y$ must be either $1$, $3$ which is impossible.\n\n![](attached_image_1.png)\n\n* If $N_8 = \\{5, 2, 1\\}$, denote the numbers of other vertices by $x, y, z, t$ as in the figure below. In this case $\\{x, y, z, t\\} = \\{3, 4, 6, 7\\}$. By a similar argument to the previous case, we have $t = 4$. On the other hand, $x \\mid 1+5+t$, so $x$ is a divisor of $10$, again impossible.\n\n![](attached_image_2.png)\n\nTherefore, in each case, the numbers cannot be assigned to the vertices of the cube and the solution is complete. ■", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 32855, "subject": "Mathematics (Multi-modal)", "question": "Let $A$, $B$ be two points on a plane and $M$ be the midpoint of $AB$. We firstly choose a point $P$ on the segment $AB$, other than $A$, $B$, $M$. At step $i$ we choose a red point $P_i$ then choose one of $A$ and $B$, call it $X_i$, and reflect $P_i$ with respect to $X_i$ to get $Q_i$, then color the midpoint of $Q_iX_i$ red. Is it possible that after a few steps we color the $M$ by red?", "options": [], "answer": "No", "solution": "We can assume that $AB$ is the real line, $A = 0$, $B = 2$. At each step we choose a red point $x$ and we color one of the $-\\frac{x}{2}$ or $\\frac{3-x}{2}$. Consider the converse: we choose a red point $x$ and color the $-2x$ or $6-2x$ red.\n\nIf we can color $M$ red at some point, it would be possible to start from $M$ and use inverse steps to reach $P$, so the problem is equivalent to this: is it possible to start at $1$ and do the converse steps to reach a point $0 < P < 2$.\n\nFrom now on we prove this formulation and call converse steps simply steps.\n\nIf we start at $1$ after one step we are either at $-2$ or $4$. We claim that if you start at some point $x \\in (-\\infty, -2] \\cup [4, \\infty)$ you will remain in this set. To see this note that if $x \\le -2$, $-2x \\ge 4$, $6 - 2x \\ge 10$, and if $x > 4$, $-2x \\le -8$, $6 - 2x \\le -2$. So we can not reach from $1$ to some $0 < x < 2$. $\\blacksquare$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32856, "subject": "Mathematics (Multi-modal)", "question": "*Morteza* has $100$ sets. At each step *Mahdi* can choose two distinct sets from them and Morteza tells him the intersection and union of those two sets. Find the least possible number of steps that *Mahdi* can determine all of $100$ sets.", "options": [], "answer": "100", "solution": "Suppose that the sets are $A_1, A_2, \\dots, A_{100}$. We claim that Mahdi needs $100$ steps. First of all, notice that $100$ would be enough; by calling $(1, 2)$, $(1, 3)$ and $(2, 3)$ he can understand $A_1$, $A_2$ and $A_3$. Because we have\n$$\nA_1 = ((A_1 \\cup A_2) - (A_2 \\cup A_3)) \\cup (A_1 \\cap A_2) \\cup (A_1 \\cap A_3).\n$$\nThen by calling $(i, 3)$ for $4 \\le i \\le 100$ he can determine all sets.\n\nTo prove that $100$ is necessary, consider a graph with $100$ vertices, and at each step connect vertices $i$ and $j$ if Mahdi calls $i$ and $j$. After $99$ steps the graph has $99$ edges so one of the connected components should be a tree. Hang the tree on a vertex and consider at each step $A_i \\cup A_j = \\{1\\}$, $A_i \\cap A_j = \\emptyset$ then Mahdi can't distinguish between the case that all the sets at odd levels of the tree are empty and the sets on even levels are $\\{1\\}$ and the case where all the sets at odd levels are $\\{1\\}$ and the sets at even levels are empty. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32857, "subject": "Mathematics (Multi-modal)", "question": "We call an infinite set $S \\subseteq \\mathbb{N}$ *good* if for all pairwise distinct integers $a$, $b$, $c \\in S$, all positive divisors of $\\frac{a^c - b^c}{a - b}$ are in $S$. For all positive integers $n > 1$, prove that there exists a good set $S$ such that $n \\notin S$.", "options": [], "answer": "Detailed solution", "solution": "Let $L(z)$ be the smallest prime divisor of $z$.\n\n**Lemma.** If $a$, $b$, $c \\in \\mathbb{N}$ such that $a \\neq b$ we have\n$$\nL\\left(\\frac{a^c - b^c}{a - b}\\right) \\geq L(abc)\n$$\n*Proof.* Assume the contrary, then there should be an integer $p$ such that $\\gcd(p, a) = \\gcd(p, b) = 1$ and $p \\mid \\frac{a^c-b^c}{a-b}$. Now consider two cases, if $a \\equiv b \\pmod{p}$ then by lifting the exponent lemma $\\nu_p(a^c-b^c) = \\nu_p(a-b)$ which is a contradiction. If $a \\not\\equiv b \\pmod{p}$ then $ord_p(ab^{-1}) \\neq 1$ ($b^{-1}$ is multiplicative inverse of $b$ modulo $p$). But we know that $ord_p(ab^{-1}) \\mid c$ and we have $p > \\text{ord}_p(ab^{-1}) > L(c)$ which is a contradiction.\n\nConsider a set\n$$\nA_k = \\{x \\in \\mathbb{N} \\mid L(x) \\geq k\\}\n$$\nnow if $a$, $b$, $c \\in A_k$ and $d \\mid \\frac{a^c-b^c}{a-b}$ then by lemma we have $L(d) < L(abc) < n$ and hence $d \\in A_k$. Now it is enough to take $k > n$. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32858, "subject": "Mathematics (Multi-modal)", "question": "Find all functions $f : \\mathbb{R} \\to A$ such that\n\ni. $x \\in f(y)$ if and only if $y \\in f(x)$.\n\nii. $|x - y| > 2$ if and only if $f(x) \\cap f(y) = \\emptyset$.\n\niii. For all real numbers $0 \\le r \\le 1$; $f(r) = [r^2 - 1, r^2 + 1]$.", "options": [], "answer": "Let n = floor(x). Define g(x) by:\n- if n is even: g(x) = (x - n)^2 + n;\n- if n is odd: g(x) = sqrt(x - n) + n.\nThen the unique solution is f(x) = [g(x) - 1, g(x) + 1].", "solution": "We shall firstly prove following lemmas;\n\n**Lemma 1.** For any real number $r$, the length of the interval $f(r)$ is at most 2.\n*Proof.* If $x, y \\in f(r)$ we have $r \\in f(x) \\cap f(y)$ hence we have $|x - y| \\le 2$.\n\n**Lemma 2.** If the interval $I$ has length 2, then there is a real number $r$ such that $f(r) = I$.\n*Proof.* If $I = [x, x+2]$ then by condition 2 there is $r \\in f(x) \\cap f(x+2)$ so we have $x, x+2 \\in f(r)$. But the length of $f(r)$ is at most 2 hence we have $f(r) = [x, x+2]$, this completes our proof.\n\n**Lemma 3.** *f is an injective function and for any r the length of f(r) is 2.*\n*Proof.* Using preceding lemmas it is enough to show that if $f(x) \\subset f(y)$ then $x = y$. Assume the contrary, let $I$ be an interval of length 2 such that $x \\in I, y \\notin I$ then by lemma 2 there exists $r$ such that $I = f(r)$. Now we have $r \\in f(x), r \\notin f(y)$ which contradicts $f(x) \\subset f(y)$.\n\nDefine a new function $g: \\mathbb{R} \\to \\mathbb{R}$ such that for all $r$, $g(r)$ is the midpoint of $f(r)$. Since we know the length of $f(r)$ we can forget about $f$ and work with $g$. We apt to find all bijective functions $g$ such that:\n$$\ni. \\quad |x - g(y)| \\le 1 \\iff |y - g(x)| \\le 1.\n$$\n$$\nii. \\quad |g(x) - g(y)| \\le 2 \\iff |x - y| \\le 2.\n$$\n$$\niii. \\quad g(r) = r^2 \\text{ for all } 0 \\le r \\le 1.\n$$\n\n**Lemma 4.** *g is strictly increasing.*\n*Proof.* It suffices to prove if $x < y, y - x < 1$ then $g(x) < g(y)$. We firstly consider the case $y = 0$. For each $-2 \\le x \\le 0$ by condition 2 and $g(0) = 0$ we have\n$$\n|g(x) - g(2)| > 2, |g(x)| \\le 2, |g(2)| \\le 2\n$$\nso we can deduce that $g(x)$ and $g(2)$ have different signs, similarly we can deduce that $g(2), g(1) = 1$ have the same sign (they are both opposite to the sign of $g(-2)$). Hence we have $g(2) > 0, g(x) < 0$.\nWe prove by induction on $\\lfloor x \\rfloor$ (We only prove the case that $0 \\le x < y$ the other case is similar). For the base if $0 \\le x < y < 1$ then $x^2 < y^2$. We know that $y - x - 2 > 2$ hence by the second condition we have\n$$\n|g(y) - g(x - 2)| > 2, |g(y) - g(x)| \\le 2, |g(x) - g(x - 2)| \\le 2.\n$$\nWe know by induction that $g(x) - g(x - 2) > 0$ hence we have $g(y) > g(x)$.\n\n**Lemma 5.** *we have $g(x + 1) = g^{-1}(x) + 1$.*\n*Proof.* We know that $g$ is *bijective* so it suffices to prove that $g(g(x) + 1) = x + 1$. Assume that $g(r) = x + 1$ then we have $r \\le g(x) + 1$. Now if $r' > r$ we have $g(r') > x + 1$ hence by condition 1; $r' > g(x) + 1$ so we get $r = g(x) + 1$.\n\nBy the last lemma we obtain that there is only one function that satisfies the condition of the problem and that function is:\n$$\ng(x) = \\begin{cases} (x - \\lfloor x \\rfloor)^2 + \\lfloor x \\rfloor & \\lfloor x \\rfloor \\equiv 0 \\pmod{2}; \\\\ \\sqrt{x - \\lfloor x \\rfloor} + \\lfloor x \\rfloor & \\lfloor x \\rfloor \\equiv 1 \\pmod{2}. \\end{cases}\n$$\nIt is easy to check that this function actually works. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32859, "subject": "Mathematics (Multi-modal)", "question": "For a positive integer $n$, let $\\tau(n)$ and $\\sigma(n)$ be the number of positive divisors of $n$ and the sum of positive divisors of $n$, respectively. Let $a$ and $b$ be positive integers such that $\\sigma(a^n)$ divides $\\sigma(b^n)$ for all $n \\in \\mathbb{N}$. Prove that each prime factor of $\\tau(a)$ divides $\\tau(b)$.", "options": [], "answer": "Detailed solution", "solution": "$$\na = p_1^{\\alpha_1} p_2^{\\alpha_2} p_3^{\\alpha_3} \\dots p_n^{\\alpha_n} \\quad \\text{and} \\quad b = q_1^{\\beta_1} q_2^{\\beta_2} q_3^{\\beta_3} \\dots q_m^{\\beta_m}\n$$\nWe have $\\tau(a) = (\\alpha_1 + 1) \\dots (\\alpha_n + 1)$ and $\\tau(b) = (\\beta_1 + 1) \\dots (\\beta_m + 1)$ so it suffices to prove that for each $1 \\le i \\le n$ there is an integer $j$ such that $\\alpha_i = \\beta_j$.\nAssume the contrary, suppose that there is some integer $i$ such that $\\alpha_i \\notin \\{\\beta_1, \\beta_2, \\dots, \\beta_m\\}$. It is well known that the sequence $(a^k - 1)_{n \\in \\mathbb{N}}$ has infinitely many prime divisors. Consider a large prime $s$, such that $s > \\max(\\alpha_i)$, $s > \\max(\\beta_j)$ and\n$$\ns \\mid \\frac{p_i^{k\\alpha_i+1} - 1}{p_i - 1}.\n$$\nWe can also assume that $\\gcd(k, s) = 1$ by taking $k = \\text{ord}_{p_i}(s)$. Now by **Chinese remainder theorem** for each $t$, there is an integer $z$ such that $z \\equiv 1 \\pmod{s-1}$, $zk\\alpha_i \\equiv -1 \\pmod{s^M}$ for some positive integer $M$.\n\nBy the lifting the exponent lemma, $s^{M+1} \\mid p_i^{zk\\alpha_i+1} - 1$. But because $\\alpha_i \\ne \\beta_j$ we have $zk\\beta_j \\not\\equiv -1 \\pmod{s^M}$. Hence if $s \\mid q^{k\\beta_i+1} - 1$ we have\n\n$\\nu_s(q_j^{k\\beta_j+1} - 1) = \\nu_s(q_j^{zk\\beta_j+1} - 1)$ and if $s \\nmid q^{k\\beta_i+1}-1$ then by Fermat's little theorem $s \\nmid q^{zk\\beta_i+1}-1$ and we again have\n$$\n\\nu_s(q_j^{zk\\beta_j+1} - 1) = \\nu_s(q_j^{zk\\beta_j+1} - 1).\n$$\nIn concise\n$$\n\\nu_s(\\sigma(b^k)) = \\nu_s(\\sigma(b^k)), \\quad \\nu_s(\\sigma(a^{zk})) > M + 1,\n$$\nso if we consider $M > \\nu_s(\\sigma(b^k))$ we would obtain $\\nu_s(\\sigma(a^{zk})) > \\nu_s(\\sigma(b^{zk}))$, a contradiction. ■", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32860, "subject": "Mathematics (Multi-modal)", "question": "Given an acute-angled triangle $ABC$ with an altitude $AD$ and orthocenter $H$. Let $E$ be the reflection of $H$ with respect to $A$. A point $X$ lies on the circumcircle of the triangle $BDE$ such that $DX \\parallel AC$, and similarly a point $Y$ lies on the circumcircle of the triangle $CDE$ such that $DY \\parallel AB$. Prove that the circumcircles of triangles $AXY$ and $ABC$ are tangent to each other.", "options": [], "answer": "Detailed solution", "solution": "Denote by $\\Gamma$ the circumcircle of the triangle $ABC$. Letting $F$ and $G$ be the reflections of $H$ with respect to $AC$ and $AB$, respectively. It is well-known that $F$ and $G$ lie on $\\Gamma$. Also $EF$ is parallel to $AC$ since $A$ is the midpoint of the segment $EH$. Therefore $\\angle EFB = 90^\\circ$ and the pentagon $EFDBX$ is cyclic. Now notice that\n$$\n\\angle XFB = \\angle XDB = \\angle ACB = \\angle AFB,\n$$\n![](attached_image_1.png)\n\nYielding that the line $FX$ passes through $A$. Then, since $AF = AH = AE$ we should have $AD = AX$. Similarly one can show that $G$, $A$, and $Y$ are collinear and $AD = AY$. So $AX = AY$ and $AF = AG$. This yields that $XY \\parallel FG$ and\n$$\n\\angle XAG = \\angle AYX + \\angle AXY = \\angle AYX + \\angle AFG.\n$$\nHence the result follows. ■", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32861, "subject": "Mathematics (Multi-modal)", "question": "Find all functions $f : \\mathbb{N} \\to \\mathbb{N}$ such that for all positive integers $a, b$ we have\n$$\nf^a(b) + f^b(a) \\mid 2(f(ab) + b^2 - 1).\n$$\nBy $f^a(x)$ we mean the $a$-times fold composition of $f$.", "options": [], "answer": "All solutions are exactly the following four functions:\n1) f(n) = n + 1 for all positive integers n.\n2) f(n) = 1 for all n.\n3) f(n) = 1 if n is even, and f(n) = 2 if n is odd.\n4) f(n) = 1 if n is even, and f(n) = 4 if n is odd.", "solution": "Let $b = 1$ we have $f^a(1) + f(a)$ divides $2f(a)$. Hence, $2f(a) = C(f^a(1) + f(a))$, for some positive integer $C$. Thus, $C = 1$ and $f^a(1) = f(a)$. Whence, $f^a(b) = f^{a-1}(f(b)) = f^{a-1}(f^b(1)) = f^{a+b-1}(1) = f(a+b-1)$. By the same argument $f^b(a) = f(a+b-1)$. It then follows that $f(a+b-1)$ divides $f(ab) + b^2 - 1$. Interchanging $a, b$ to obtain $f(a+b-1) \\mid b^2 - a^2$. Hence, $f(2a)$ divides $2a+1$. If the function is injective, it follows that\n$$\nf^2(n) = f(f(n)) = f(n+1).\n$$\nHence $f(n) = n + 1$. This is indeed a solution. If the function is not injective then $f(r) = f(s)$ for some $r > s$. Thus, $f^r(1) = f^s(1)$. Hence, for each positive integer $m$; $f(m+r) = f^m(f^r(1)) = f^m(f^s(1)) = f(m+s)$. Hence, the function is periodic with a period of $r-s$. This implies that the function is indeed bounded. That is, for all $n$ we have $f(n) < M$. Choose a prime $p > M$ it follows that $f(p-1)$ divides $p$ and $f(p-1) < M < p$. Yielding $f(p-1) = 1$. Whence, for all large enough $p$; $f(p-1) = f^{p-1}(1) = 1$.\nLet $d$ be the smallest positive integer such that $f^d(1) = 1$ by using the division algorithm, we can easily prove that $d$ divides $p-1$. This means that for all large enough $p$ we have $p \\equiv 1 \\pmod d$. This implies that $d \\in \\{1, 2\\}$. Thus $f(f(1)) = 1$. Hence, $f(2k) = f^{2k}(1) = 1$ for all positive integers $k$. On the other hand, $f(2k+1) = f^{2k+1}(1) = f(1)$ for all non-negative integers $k$. Finally putting $a=b=2$ to obtain $f(1)$ divides $4$. Hence, $f(2k+1) \\in \\{1, 2, 4\\}$. Whence, we have four functions satisfying the statement of the problem. $\\blacksquare$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32862, "subject": "Mathematics (Multi-modal)", "question": "Let $ABC$ be an acute triangle and $M$ be the midpoint of $AB$. Let $K$ be a point such that $KB$ intersects the line $AC$, $\\angle KMC = 90^\\circ$ and $\\angle KAC = 180^\\circ - \\angle ABC$. The tangent line to circumcircle of triangle $ABC$ at $A$ intersects line $CK$ at $E$. Prove that the reflection of line $BC$ with respect to $CM$ passes through the midpoint of $ME$.", "options": [], "answer": "Detailed solution", "solution": "Note that $KA$ is parallel to the tangent line from $C$ to the circumcircle of $ABC$. Therefore, if we denote by $O$ the circumcenter of $ABC$, then $CO \\perp KA$. So, denoting by $F$ the intersection point of $KA$ and $CO$, we have $\\angle KFC = 90^\\circ$. On the other hand, $\\angle KMC = 90^\\circ$, therefore $KCFM$ is cyclic. We then have $\\angle AFO = \\angle AMO = 90^\\circ$, hence the quadrilateral $OFAM$ is also cyclic. Thus,\n$$\n\\angle MCE = \\angle MCK = \\angle MFK = \\angle MFA = \\angle MOA = \\angle BCA.\n$$\nOn the other hand, $180^\\circ - \\angle BCA = \\angle BAE = \\angle MAE$. These facts together imply that $AECM$ is cyclic.\nNote that $\\angle CEM = \\angle CAM = \\angle CAB$, hence $\\triangle BCA \\sim \\triangle MCE$. Now denote the midpoint of $ME$ by $D$. As $M$ is the midpoint of $BA$, similarity of triangles $BCA$ and $MCE$ implies that $\\angle BCM = \\angle MCD$. Analogously, $D$ lies on the reflection of line $BC$ with respect to $CM$, as desired.\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32863, "subject": "Mathematics (Multi-modal)", "question": "Is it possible to write a permutation of positive integers on the cells of an infinite table (infinite from all sides) such that the sequence of numbers in each column from bottom to top and also in each row from left to right be increasing?", "options": [], "answer": "Yes", "solution": "The answer is yes. First, we choose a cell as origin and fill it with zero, then we fill the table in a way that the numbers in the cells of $(2k+1) \\times (2k+1)$ table centered at the origin be a permutation of numbers\n$$\n(-2k^2 - 2k, -2k^2 - 2k + 1, \\dots, 0, \\dots, 2k^2 + 2k - 1, 2k^2 + 2k),\n$$\nWe proceed the filling of the table inductively. Suppose that in step $k \\ge 0$, the $(2k+1) \\times (2k+1)$ table centered at the origin is filled with the before-mentioned numbers such that the sequence of numbers in each row and in each column is increasing. Putting $m = 2k^2+2k$. Now, consider $(2k+3) \\times (2k+3)$ table centered at the origin. Fill this table as follows.\n\n| $-(m + 4k + 4)$ | $-(m + 4k + 3)$ | ... | $-(m + 2k + 3)$ | $m + 1$ |\n|------------------|------------------|-----|------------------|--------|\n| $-(m + 2k + 2)$ | | | | $m + 2$ |\n| $-(m + 2k + 1)$ | | $(2k + 1) \\times (2k + 1)$ table from the k-th step | | ... |\n| ... | | | | $m + 2k + 1$ |\n| $-(m + 2)$ | | | | $m + 2k + 2$ |\n| $-(m + 1)$ | $m + 2k + 3$ | ... | $m + 4k + 3$ | $m + 4k + 4$ |\n\nIt can be easily verified that the columns and rows of this table form increasing sequences. So it is clear that with this algorithm the table will be filled with a permutation of integers and has the desired properties. ■", "topic": "Discrete Mathematics", "subtopic": "Combinatorics" }, { "id": 32864, "subject": "Mathematics (Multi-modal)", "question": "Let $a$, $b$, $c$, $d$ be four non-zero complex numbers such that\n$$\n2|a - b| \\le |b|, \\quad 2|b - c| \\le |c|, \\quad 2|c - d| \\le |d|, \\quad 2|d - a| \\le |a|.\n$$\nProve that\n$$\n\\left| \\frac{b}{a} + \\frac{c}{b} + \\frac{d}{c} + \\frac{a}{d} \\right| > \\frac{7}{2}.\n$$", "options": [], "answer": "Detailed solution", "solution": "$$\n\\left| \\frac{a}{b} - 1 \\right| \\le \\frac{1}{2}, \\quad \\left| \\frac{b}{c} - 1 \\right| \\le \\frac{1}{2}, \\quad \\left| \\frac{c}{d} - 1 \\right| \\le \\frac{1}{2}, \\quad \\left| \\frac{d}{a} - 1 \\right| \\le \\frac{1}{2}.\n$$\nPutting $(\\frac{a}{b}, \\frac{b}{c}, \\frac{c}{d}, \\frac{d}{a}) = (x, y, z, t)$ such that $|x-1| \\le \\frac{1}{2}$, $|y-1| \\le \\frac{1}{2}$, $|z-1| \\le \\frac{1}{2}$, $|t-1| \\le \\frac{1}{2}$ we are going to prove that\n$$\n\\left| \\frac{1}{x} + \\frac{1}{y} + \\frac{1}{z} + \\frac{1}{t} \\right| > \\frac{7}{2}.\n$$\nby letting $x = u + iv$, for some real numbers $u$, $v$ such that $u^2 + v^2 \\le 2u - \\frac{3}{4}$. It follows that $u \\ge \\frac{3}{8}$. Since\n$$\n\\frac{1}{x} = \\frac{u - iv}{u^2 + v^2},\n$$\nWe would obtain\n$$\n\\left| \\frac{1}{x} + \\frac{1}{y} + \\frac{1}{z} + \\frac{1}{t} \\right| = \\left| \\sum \\frac{u - iv}{u^2 + v^2} \\right| \\ge \\left| \\Re \\left( \\sum \\frac{u - iv}{u^2 + v^2} \\right) \\right| \\\\\n= \\left| \\sum \\frac{u}{u^2 + v^2} \\right| \\ge \\sum_{cyc} \\frac{u}{u^2 + v^2}.\n$$\n\nSince $u \\ge \\frac{1}{2}(u^2 + v^2 + \\frac{3}{4})$ we would obtain\n$$\n\\sum_{cyc} \\frac{u}{u^2 + v^2} \\ge \\frac{1}{2} \\sum_{cyc} \\frac{u^2 + v^2 + \\frac{3}{4}}{u^2 + v^2} = 2 + \\frac{3}{8} \\sum_{cyc} \\frac{1}{u^2 + v^2} = 2 + \\frac{3}{8} \\sum_{cyc} \\frac{1}{|x|^2}.\n$$\nNotice that $xyzt = 1$ thus, according to **AM-GM** inequality,\n$$\n\\sum_{cyc} \\frac{1}{|x|^2} \\ge 4 \\sqrt[4]{\\frac{1}{|x|^2 |y|^2 |z|^2 |t|^2}} = 4.\n$$\nHence,\n$$\n\\sum_{cyc} \\frac{u}{u^2 + v^2} \\ge 2 + 4 \\cdot \\frac{3}{8} = \\frac{7}{2}.\n$$\nNotice that this inequality has no equality case.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32865, "subject": "Mathematics (Multi-modal)", "question": "We call a natural number $n$ *nice* if it has no zero digit in its decimal representation and it has a digit $b$ in this representation such that the resulting number would be a divisor of $n$, after its removal. Prove that there are only finitely many *nice* numbers.", "options": [], "answer": "Detailed solution", "solution": "We prove that a nice number has at most 20 digits which proves that there are finitely many nice numbers. Assume that $n = \\overline{abc}$ where $a, c$ can have more than one digit and $b$ is a digit such that $\\overline{ac} = nk$ for some natural number $k$. If $c$ has $t$ digits, then $n = \\overline{ac}$ (mod $10^{t-1}$) therefore we have $kn = n$ (mod $10^{t-1}$). Because there is no zero digit in $n$, we know that $\\text{gcd}(n, 2) = 1$ or $\\text{gcd}(n, 5) = 1$. If $\\text{gcd}(n, 2) = 1$ then we have $k = 1$ (mod $2^{t-1}$), on the other hand $n < 100\\overline{ac}$ so $k < 7$ which implies that $t < 9$. Similarly if $\\text{gcd}(n, 2) = 5$ we have $t < 4$.\n\nNow assume that $a$ has more than 10 digits, we have $\\overline{ac} \\mid \\overline{ac0}$, $\\overline{ac} \\mid \\overline{abc}$ therefore $\\overline{ac} \\mid \\overline{abc} - \\overline{ac0}$. But the previous paragraph implies that $\\overline{|abc - ac0|}$ has at most 10 digits which implies that $\\overline{abc} - \\overline{ac0} \\mid \\overline{ac}$. So we should have $n = \\overline{ac0}$ which is in contradiction with the fact that $n$ is an interesting number.\n■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32866, "subject": "Mathematics (Multi-modal)", "question": "Let $ABCD$ be a quadrilateral and $w$ is a circle inscribed in it. The circle $\\omega$ is tangent to $BC$ and $AD$ at $E$ and $F$, respectively and $DE$ meets $\\omega$ at $X$, for the second time. If $AB$, $CD$ are tangent to the circumcircle of $DXF$, prove that $AFXC$ is cyclic.", "options": [], "answer": "Detailed solution", "solution": "Let $\\Omega$ be the circumcircle of $DXF$ and $l$ be the perpendicular bisector of $FX$. Note that lines $AB$, $CD$ are external common tangents to $\\Omega$, $w$, therefore they are reflection of each other with respect to $l$. Suppose that $AB$ is tangent to $\\Omega$ at $Y$, and $Z$ is the reflection of $A$ with respect to $l$. The line $XY$ is the reflection of $FD$ with respect to $l$ hence $FD$ passes through $A$, and $XY$ passes through $Z$.\n\nIt is clear that $AFXZ$ is an isosceles trapezoid therefore $AFXZ$ is cyclic and it is suffices to prove that the circumcircle of $FXZ$ passes through $C$. Note that $\\angle BEF = \\angle FXE = \\frac{\\widehat{FXD}}{2} = \\angle FDC$ therefore $FECD$ is cyclic and we have\n$$\n\\angle FCZ = \\angle FCD = \\angle FED = \\angle FEX = \\angle FXY = 180^\\circ - \\angle FXZ.\n$$\nWhich implies that $FXZC$ is cyclic.\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32867, "subject": "Mathematics (Multi-modal)", "question": "Find all functions $f : \\mathbb{Q}[X] \\to \\mathbb{R}$ such that for all polynomials $P(x)$ and $Q(x)$ in $\\mathbb{Q}[X]$;\ni. $f(P(Q(x))) = f(Q(P(x)))$;\nii. $f(P(x)Q(x)) = f(P(x)) + f(Q(x))$, where $P(x)Q(x) \\neq 0$.", "options": [], "answer": "All solutions are f(0) = 0 and f(P) = C·deg(P) for nonzero polynomials P, where C is a real constant.", "solution": "Let $P(x)$ be a non-zero polynomial and $d = \\deg P$. We shall prove that $f(P(x)) = Cd$, for some constant $C$, furthermore $f(0) = 0$. It is easy to check that such a function properly works.\nLetting $(P(x), Q(x)) = (P(x), 1)$, $(b, P(x))$ in the second equation as well as $(P(x), Q(x)) = (a, 1)$ in the first equation for some non-zero constants $a, b$ we conclude that $f(a) = 0$ and $f(bP(x)) = f(P(x))$. Letting $(P(x), Q(x)) = (bx, \\frac{x}{b}+1)$ to obtain $f(x+b) = f(x+1)$ for all $b \\neq 0$. Let $c, d$ be two arbitrary real numbers such that $cd \\neq 0$ it follows that\n$$\nf\\left(x + \\frac{d}{c}\\right) = f\\left(c\\left(x + \\frac{d}{c}\\right)\\right) = f(cx + d) = f(x + 1).\n$$\nFinally, letting $(P(x), Q(x)) = (cx, x - \\frac{1}{c})$ for some $c \\neq 0, 1$ in the first equation yields\n$$\nf(x) = f(cx) = f\\left(cx + 1 - \\frac{1}{c}\\right) = f(x + 1).\n$$\nHence, if $P(x)$ is a linear polynomial then $f(P(x)) = f(x+1)$, i.e., a constant function, say $C$. We then finish our proof based on the induction on the degree of polynomial. The base is true for $d=0, 1$. Assume that the statement holds true for all polynomials of degree less than $d$. Choose a non-zero rational number $r$ such that $P(r) \\neq 0$. Letting $R(x) = \\frac{r}{P(r)}P(x+r)$ it follows that $R(0) = r$. Hence, $R(x) = r+xS(x)$, for some polynomial $S(x)$ of degree $d-1$. Putting $(P(x), Q(x)) = (R(x), x-r)$ in the first equation yielding\n$$\n\\begin{aligned} f(R(x) - r) = f(xS(x)) = f(x) + f(S(x)) &= f(R(x-r)) \\\\ &= f\\left(\\frac{r}{P(r)}P(x)\\right) = f(P(x)). \\end{aligned}\n$$\nAccording to the induction hypothesis $f(S(x)) = C(d-1)$ and $f(x) = C$. Hence,\n$$\nf(P(x)) = Cd.\n$$", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 32868, "subject": "Mathematics (Multi-modal)", "question": "Let $x_1$ be a fixed positive integer. Prove that there is no positive integer $m > 2500$ such that the sequence $x_{n+1} = x_n^{S(n)} + 1$ is eventually periodic modulo $m$. Where $S(n)$ is the sum of digits of $n$ in base 10.\n\n(We say a sequence is eventually periodic mod $m$ if there are positive integers $N, T$ such that $x_n \\equiv x_{n+T} \\pmod m$ for all $n \\ge N$).", "options": [], "answer": "Detailed solution", "solution": "We shall prove a more general statement. That is, we prove that $x_n$ is a-periodic modulo $m$, for each $m$. In doing so, we need the following lemmas.\n\n**Lemma 1.** Let $m \\ge 3$ be an integer which is not a power of 2. Let $x_1$ be a fixed positive integer and $y_n$ be a sequence of positive integers such that $x_{n+1} = x_n^{y_n} + 1$, $n = 1, \\dots$. If the sequence $x_n$ is eventually periodic mod $m$ then there are positive integers $b, d, T$ where $2 \\le d \\le m-1$ such that $y_{b+kT}, k = 0, 1, \\dots$ is periodic mod $d$.\n\n*Proof*. Since $m$ is not a power of two it would have an odd prime divisor, say $p$. Since the sequence $x_n \\pmod m$ is eventually periodic it follows that $x_n \\pmod p$ is also eventually periodic. Hence, for all large $n$, $x_{n+T} - x_n$ is divisible by $p$. Fix $b$, large enough such that $a \\equiv x_b \\pmod p$ and $a \\ne 0, 1$. Since $p \\ge 3$, such a $b$ exists because each $0 \\pmod p$ followed by $1$ which is followed by $2$. Clearly $x_{b+kT} \\equiv a \\pmod p$ for each $a \\ge 0$. Notice that $p$ divides $a^{y_{b+kT}} - a^{y_b}$. Hence, $|y_{b+kT} - y_b|$ is divisible by the order of $a$ mod $p$, namely $d$. That is, $y_{b+kT} \\pmod d$ is periodic. As desired.\n\nNow, we shall prove a nice fact about the periodicity of $S(b + kT)$, $k = 0, \\dots$\n\n**Lemma 2.** Let $b, T, d$ be positive integers, if the sequence $S(b + kT)$, $k = 0, \\dots$ is constant mod $d$ then $d$ divides $T$ and $d \\in \\{1, 3, 9\\}$.\n\n*Proof.* Letting $k = 10^r s$ for some large enough $r$ it follows that $S(b+10^r sT) = S(b) + S(sT) \\equiv S(b) \\pmod d$. Whence, $S(sT) \\equiv 0 \\pmod d$. We can also assume $\\gcd(10, T) = 1$ indeed, if $T = 2^\\alpha 5^\\beta T_1$, $\\gcd(T_1, 10) = 1$ then, by a suitable choice of $s$ we can make power of 10.\n\nThen, there are $s_0, s_1$ such that\n$$\nTs_0 \\equiv 1 \\pmod{100}\n$$\n\nand\n$$\nT s_1 \\equiv 9 \\pmod{10^{r+1}}.\n$$\nFurther, by a suitable choice of $r$ we can ensure that $T s_0 < 10^r$. It follows that\n$$\nS((s_0 + s_1)T) = S(s_0T) + S(s_1T) - 9.\n$$\nSince $d$ divides $S(s_0T)$, $S(s_1T)$, $S((s_0+s_1)T)$ it follows that $d$ divides 9. That is, $S((s_0+s_1)T)$. And since $S(sT) \\equiv sT \\pmod{9}$ it follows that $sT \\equiv 0 \\pmod{d}$, Hence, $d$ divides $T$. This completes our proof.\n\nBack to our problem. We shall firstly prove that $m$ has no odd prime divisor. Assume the sequence is periodic with the minimal period of $T$. Since there are infinitely many $i$ such that $S(i)$ is divisible by $p-1$ if $p$ divides $x_i$ then $x_{i+2} \\equiv 2 \\pmod{p}$. If $p$ doesn't divide $x_i$ then $x_{i+1} \\equiv 2 \\pmod{p}$. Hence, $2$ is among the residues of $x_n$ modulo $p$. Take $a=2$ in the first lemma. It follows that the sequence $S(kT+i)$ is constant modulo the order of 2 modulo $p$, namely $d$. Hence, $d$ divides 9. That is, $p$ divides $2^9-1=7 \\times 73$. If $p=7$ then for $i \\equiv 0 \\pmod{3}$ we have $x_{i+1} \\equiv 2 \\pmod{7}$ and $x_{i+2} \\equiv 3 \\pmod{7}$ since the order of 3 mod 7 is 6 we reached to a contradiction. The same holds for the case $i \\equiv 1 \\pmod{3}$. Finally, for $i \\equiv 2 \\pmod{3}$ we have $x_{i+1} \\equiv 5 \\pmod{7}$ and since the order of 5 modulo 7 is 6 we again reached to a contradiction.\n\nIf $p=73$ the numbers with orders that dividing 9 are\n$$\n1, 2, 4, 8, 16, 32, 64, 55, 37,\n$$\nsurprisingly powers of 2. If $i$ is divisible by 9 then $x_{i+1} \\equiv 2 \\pmod{73}$ and $x_{i+2} \\equiv 3 \\pmod{73}$ while the order of 3 modulo 73 doesn't divide 9. If $i$ is not divisible by 9 then $x_{i+1}$ is not congruent to a power of 2 mod 73. Hence, its order modulo 73 doesn't divide 9.\n\nFinally, for powers of 2 we prove that the only solutions are $m=1, 2, 4$. Let $m=2^c$ we claim that the period is of the form $1, 2, 1, 2, \\dots$. Indeed if $x_i$ is odd then since the order of $x_i$ modulo $2^c$ is a power of two and for sake of periodicity it must divide 9 we would obtain that $x_i \\equiv 1 \\pmod{2^c}$. Hence, $x_{i+1} \\equiv 2 \\pmod{2^c}$ and by the same argument $x_{i+2k} \\equiv 2^{S(i-1+2k)}+1 \\equiv 1 \\pmod{2^c}$ yielding $S(i-1+2k) \\ge c$ for all $k$. Thus, $c \\le \\min S(i-1+2k) = 2$. Whence, $m=1, 2, 4$. ■", "topic": "Number Theory", "subtopic": "Modular Arithmetic" }, { "id": 32869, "subject": "Mathematics (Multi-modal)", "question": "Incircle $\\omega$ of triangle $ABC$ is tangent to sides $CB$ and $CA$ at $D$ and $E$, respectively. Point $X$ is the reflection of $D$ with respect to $B$. Suppose that the line $DE$ is tangent to the $A$-excircle at $Z$. Let the circumcircle of triangle $XZE$ intersects $\\omega$ at $K$, for the second time. Prove that the intersection of $BK$ and $AZ$ lies on $\\omega$.", "options": [], "answer": "Detailed solution", "solution": "Let $I$ be the incenter and $I_a$ the $A$-excenter of triangle $ABC$ and $J$ the $C$-excenter of triangle $CDE$. $J$ lies on $\\omega$, since\n$$\n\\angle EJD = 90^\\circ - \\frac{1}{2}\\angle ECD = \\angle CDE.\n$$\nWe claim that $A$, $J$, and $Z$ are collinear. Point $T$ lies on $AC$ such that $IT \\parallel DE$. To prove our claim, we just need to show that $\\frac{IJ}{IT} = \\frac{I_a Z}{I_a C}$, since $IT \\parallel CI_a$, $IJ \\parallel I_a Z$ and $II_a$ passes through $A$. Notice that\n$$\n\\angle ITE = \\angle DEC = \\angle EDC = \\angle I_a CY \\implies \\triangle IET \\sim \\triangle I_a YC \\implies \\frac{IE}{IT} = \\frac{I_a Y}{I_a C},\n$$\nhence $\\frac{IJ}{IT} = \\frac{I_a Z}{I_a C}$, since $IE = IJ$ and $I_a Y = I_a Z$. So the claim is proved. Let $BC$ touches $A$-excircle at $Y$. The extensions of sides of quadrilateral $AEDB$ are tangent to $A$-excircle, therefore\n$$\nAE + ED = AB + BD \\implies ED = 2BD. \\quad (1)\n$$\nYielding $DX = DE$, and it is obvious that $DY = DZ$ so quadrilateral $YZXE$ is an isosceles trapezoid and $Y$ lies on the circumcircle of triangle $XZE$. Hence\n$$\n\\angle EKY = \\angle EZY = \\frac{1}{2}\\angle EDY = \\angle EDM,\n$$\nwhere $M$ is the midpoint of arc $ED$ (not containing $J$), so $KY$ passes through $M$. Let $N$ be the midpoint of segment $ED$. Notice that $\\triangle CDI \\sim \\triangle CND$, hence\n$$\n\\frac{DN}{CD} = \\frac{ID}{IC} \\stackrel{(1)}{\\implies} \\frac{BD}{CD} = \\frac{IJ}{IC} \\implies JB \\parallel ID.\n$$\n\ntherefore $\\angle YJD = \\angle BKD$, since $\\angle BJY = \\angle BKY$. According to our assumption, $J$ lies on the angle bisector of $\\angle YDZ$ and $YD = DZ$. It yields that $JD$ is the perpendicular bisector of $YZ$ and $\\angle YJD = \\angle ZJD$. Hence $\\angle ZJD = \\angle BKD$ and the result follows.\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32870, "subject": "Mathematics (Multi-modal)", "question": "Given triangle $ABC$, variable points $X$ and $Y$ are chosen on segments $AB$ and $AC$, respectively. Let $Z$ be a point on the line $BC$ such that $ZX = ZY$. The circumcircle of $XYZ$ intersects the line $BC$ at $T$, for the second time. Point $P$ is chosen on line $XY$ such that $\\angle PTZ = 90^\\circ$. Let $Q$ be a point on the same side of line $XY$ as $A$, satisfying $\\angle QXY = \\angle ACP$ and $\\angle QYX = \\angle ABP$. Prove that the circumcircle of triangle $QXY$ passes through a fixed point (as $X$ and $Y$ vary).", "options": [], "answer": "Detailed solution", "solution": "Let $F'$ be the intersection of $CX$ with the circumcircle of $ABC$ and $G$ be the intersection of $XY, BC$. Note that $TZ$ is the external angle bisector of $\\angle XTY$ and $PT$ is perpendicular to $TZ$, so $PT$ is the angle bisector of $\\angle XTZ$. Thus $(GP, XY) = -1$ and $BY, CX, AP$ are concurrent. Let $R$ be the intersection of these lines, and $D$ be the intersection of $AP, BC$. By looking through point $C$, we have $(DP, RA) = (GP, XY) = -1$. By projecting $X$ to the circumcircle of $ABC$ and also projecting this circle onto $AP$ through $C$ we have\n$$\n(BC, SA) = (AF', FB) = (AR, PD) = -1.\n$$\nThis shows that $S$ is the intersection of the circumcircle of $ABC$ with *symmedian* and the proof is complete as the circumcircle of triangle $QXY$ passes through this fixed point $S$.\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32871, "subject": "Mathematics (Multi-modal)", "question": "*Arash* and *Babak* play the following game on a $1400 \\times 1401$ table. Starting with *Arash*, he in his turns colors $k$ number of $L$-shaped trominos on the table (rotation and reflection are allowed). Also, *Babak* in his turns colors one $2 \\times 2$ square from the table. Every cell of the table can be colored at most once and a player who can not color the cells in his turn will lose. Find all values of $k$ for which *Arash* has a winning strategy.", "options": [], "answer": "All integers k with k ≤ 1400×467 (i.e., k ≤ 653800)", "solution": "We claim that Arash has a winning strategy if and only if $k \\le \\frac{1400 \\times 1401}{3} = 1400 \\times 467$.\n\nFirst of all, it is obvious if $k > 1400 \\times 467$, then Arash can not color $k$ trominos in his first turn and he will lose. Indeed, there are not $k$ disjoint trominos in the table.\n\nNext, we shall prove that for every $k \\le 1400 \\times 467$, Arash has a winning strategy. We can partition the table into $700 \\times 467$ number of $2 \\times 3$ rectangles (intersection of two consecutive columns and three consecutive rows). We count the rectangles in such a way that the rectangles filling the left columns have numbers $1, 2, \\ldots, 467$ (from top to bottom), then the rectangles filling the third and fourth column have numbers $468, 469, \\ldots, 934$, etc. We consider two different trominos in each $2 \\times 3$ table, as in the figure below.\n\n![](attached_image_1.png)\n\nNow if $k \\ge 700 \\times 467$, Arash will color the trominos of type 1 in all the rectangles and then $k' = k - 700 \\times 467$ trominos of type 2 in rectangles of numbers $1, 2, \\ldots, k'$. It is easy to find that after Arash's turn, every $2 \\times 2$ square has a colored cell. So, Babak can not color any $2 \\times 2$ square in his turn and Arash will win.\n\nIf $k \\le 700 \\times 467$, Arash in his first turn colors the trominos of type 1 in rectangles $1, 2, \\ldots, k$. For the next turns, suppose that Babak has filled some square and now this is Arash's turn. If he can find $k$ disjoint trominos not intersecting rectangles $1, 2, \\ldots, k$, he will color them. In the case that there is not $k$ disjoint trominos, let $k'$ be the maximal number such trominos ($k' < k$). Now, he will color $k'$ trominos without intersection with rectangles $1, 2, \\ldots, k$, and also color $k - k'$ trominos in rectangles $1, 2, \\ldots, k - k'$. After this step, there would be no uncolored $2 \\times 2$ square left in the table and so Babak will lose the game. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32872, "subject": "Mathematics (Multi-modal)", "question": "Cyclic quadrilateral $ABCD$ with circumcenter $O$ is given. Point $P$ is the intersection of diagonals $AC$ and $BD$. Let $M$ and $N$ be midpoints of the sides $AD$ and $BC$, respectively. Suppose that $\\omega_1$, $\\omega_2$ and $\\omega_3$ are circumcircles of triangles $ADP$, $BCP$ and $OMN$, respectively. Let $E$ and $F$ be intersection points of $\\omega_1$ and $\\omega_3$, which is not on the arc $APD$ of $\\omega_1$, and the intersection point of $\\omega_2$ and $\\omega_3$, which is not on the arc $BPC$ of $\\omega_2$, respectively. Prove that $OE = OF$.", "options": [], "answer": "Detailed solution", "solution": "Let $E'$ be the second intersection of $NP$ and $\\omega_1$. Since $\\triangle BPC \\sim \\triangle APD$ we have $\\angle MPD = \\angle NPC = \\angle APE'$. So $APDE'$ is a harmonic quadrilateral. Then\n$$\n\\begin{aligned}\n\\angle E'MA &= \\angle PMA = \\angle PNB \\implies \\angle E'MO = \\angle E'MA + 90^\\circ \\\\\n&= \\angle PNB + 90^\\circ = 180^\\circ - \\angle PNO,\n\\end{aligned}\n$$\nhence $E'NOM$ is cyclic and $E' \\equiv E$. Similarly, we can show that $M, P$ and $F$ are collinear. Finally\n$$\n\\angle ENO = 90^\\circ - \\angle PNB = 90^\\circ - \\angle PMA = \\angle FMO \\implies OE = OF.\n$$\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32873, "subject": "Mathematics (Multi-modal)", "question": "Given $1400$ real numbers, prove that among them there are at least three numbers $x$, $y$, $z$ such that\n$$\n\\left| \\frac{(x-y)(y-z)(z-x)}{1+x^4+y^4+z^4} \\right| < \\frac{9}{1000} .\n$$", "options": [], "answer": "Detailed solution", "solution": "Putting $C = \\frac{9}{1000}$, $n = 1400$. Assume to the contrary that for all $z \\ge y \\ge x$ we have\n$$\n(z - y)(y - x)(z - x) \\ge C(1 + x^4 + y^4 + z^4).\n$$\nNotice that $4(y-x)(z-y) \\le (y-x+z-y)^2 = (z-x)^2$. Whence,\n$$(z-x)^3 \\ge 4(z-y)(y-x)(z-x) \\ge 4C(1+x^4+y^4+z^4) \\ge 4C(1+x^4+z^4) \\ge 4C.$$ \nIt follows that $z-x \\ge \\sqrt[3]{4C}$. On the other hand, we can also deduce that\n$$\n\\frac{(z-x)^3}{x^4 + z^4} \\ge 4C.\n$$\nSince $2(x^4+z^4) \\ge (x^2+z^2)^2$ and $2(x^2+z^2) \\ge (x-z)^2$. Therefore, $8(x^4+z^4) \\ge (x-z)^4$. We would obtain\n$$\n\\frac{8}{z-x} = \\frac{8(z-x)^3}{(x-z)^4} \\ge \\frac{(z-x)^3}{x^4+z^4} \\ge 4C.\n$$\nThat is,\n$$\n\\sqrt[3]{4C} \\le z - x < \\frac{2}{C}.\n$$\nFinally, assume that $x_1 \\le \\cdots \\le x_n$ are given. We would then have $x_{k+2} - x_k > \\sqrt[3]{4C}$. Hence,\n$$\n\\frac{2}{C} > x_n - x_1 \\ge \\left\\lfloor \\frac{n-1}{2} \\right\\rfloor \\sqrt[3]{4C}.\n$$\nHence,\n$$\nC < \\frac{\\sqrt[3]{2}}{\\left\\lfloor \\frac{n-1}{2} \\right\\rfloor^{\\frac{3}{2}}}.\n$$\nYielding, $C < \\frac{87}{10000}$. A contradiction. Thus, we are done. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32874, "subject": "Mathematics (Multi-modal)", "question": "Let $m$, $n$ and $a_1, a_2, \\dots, a_m$ be arbitrary positive integers. Ali and Mohammad play the following game: At each step, Ali chooses $b_1, b_2, \\dots, b_m \\in \\mathbb{N}$, then Mohammad chooses a positive integer $s$ and obtains a new sequence $\\{c_i = a_i + b_{i+s}\\}_{i=1}^m$, where\n$$\nb_{m+1} = b_1,\\ b_{m+2} = b_2,\\ \\dots,\\ b_{m+s} = b_s.\n$$\nThrough a finite number of steps, Ali intends to make all the numbers divisible by $n$. Find all positive integers $m$ and $n$ such that Ali, independent of the initial values $a_1, a_2, \\dots, a_m$, has a winning strategy.", "options": [], "answer": "Exactly those pairs where both numbers are powers of the same prime; that is, m = p^alpha and n = p^beta for some prime p and nonnegative integers alpha and beta.", "solution": "We claim that the second player has a winning strategy for $(m, n) = (p^{\\alpha}, p^{\\beta})$ where $p$ is a prime number and $\\alpha, \\beta \\in \\mathbb{Z}^{\\ge 0}$. We call a pair $(m, n)$ a good pair if the second player has a winning strategy.\n\n**Lemma 1.** If $(m, n)$ is a good pair and $d \\mid m$ then $(d, n)$ is also a good pair.\n\n*Proof.* Assume that the game starts with the sequence $a_1, a_2, ..., a_d$. Mohammad considers a second game that starts with the sequence $(\\tilde{a}_1, \\tilde{a}_2, ..., \\tilde{a}_m)$ where $\\tilde{a}_{\\frac{mi}{d}} = a_i$ and $\\tilde{a}_j = 0$, for $\\frac{m}{d} \\nmid j$. Now if Ali chooses $s$ in the first game, Mohammad assumes that Ali chooses $\\frac{m}{d}s$ in the second game and follows his strategy and wins the second game. But the first game is just a restriction of the second game to the components $\\frac{m}{d}i$ so he can also win the first game.\n\n**Lemma 2.** $(m, nk)$ is a good pair if and only if $(m, n)$ and $(m, k)$ are also good pairs.\n\n*Proof.* If $(m, nk)$ is a good pair then it is clear that $(m, n)$ and $(m, k)$ are good pairs. Now if $(m, n)$ and $(m, k)$ are good pairs, starting with a sequence $a_1, ..., a_m$ then using the aforementioned strategy for $(m, n)$, making all the components divisible by $n$. Considering the sequence $(\\frac{a_i}{n})$, applying the preceding strategy for $(m, k)$ to ensure that $k \\mid \\frac{a_i}{n}$, by the very end all the terms are divisible by $nk$ and hence $nk$ is a good pair.\n\nBy these lemmas we see that if $(m, n)$ is a good pair and $p \\mid m$, $q \\mid n$ then $(p, q)$ is also a good pair. Now by the next lemma we would obtain $p = q$. Hence $(m, n)$ should be of the form $(p^{\\alpha}, p^{\\beta})$.\n\n**Lemma 3.** If $(m, n)$ is a good pair and $m, n > 1$ then $\\gcd(m, n) > 1$.\n\n*Proof.* Assume that $\\gcd(m, n) = 1$. Consider one step before the end of the game. The sequence $(a_i)$ must be constant; otherwise for each sequence $(b_i)$ there is some $j$ such that $a_i + b_j \\not\\equiv 0 \\pmod{n}$ and the first player can choose $j - i$. In the second step before the last step, we should have\n$$\na_0 - a_m \\equiv a_1 - a_0 = a_2 - a_1 \\equiv \\dots \\equiv a_m - a_{m-1} \\pmod{n},\n$$\notherwise Ali could choose a shift $s$ such that $(a_i + b_{i+s})$ is not constant. So we must have $m(a_1 - a_0) \\equiv 0 \\pmod{n}$, implying that $a_1 - a_0 \\equiv 0 \\pmod{n}$. So the sequence is constant. We then use induction to deduce that the sequence should be constant from the starting point. So, for a non-constant sequence the first player has a winning strategy.\n\nIt remains to prove that $(p^{\\alpha}, p^{\\beta})$ is a good pair. By the second lemma it suffices to prove that $(p^{\\alpha}, p)$ is a good pair. We claim that if the second player chooses $b_i = -a_i$ at each step, he shall win. There are two ways to do this:\n\n**First proof.** Let $T : (\\mathbb{Z}/p\\mathbb{Z})^m \\to (\\mathbb{Z}/p\\mathbb{Z})^m$ denote a shift by 1. Then at each step the sequence changes to $(T^s - \\text{id})(a_1, \\dots, a_{p^\\alpha})$. It suffices to prove that\n$$\n\\prod_{j=1}^{p^{\\alpha}} (T^{s_j} - \\text{id}) \\equiv 0 \\pmod{p}\n$$\nbut $T - \\text{id} \\mid T^{s_j} - \\text{id}$. So it is enough to prove $(T - \\text{id})^{p^\\alpha} \\equiv 0 \\pmod{p}$ but\n$$\n(T - \\text{id})^{p^{\\alpha}} \\equiv T^{p^{\\alpha}} - \\text{id} \\equiv 0 \\pmod{p}.\n$$\n\n**Second proof.**\n\n**Lemma 4.** *There is an integer-valued polynomial $Q(x)$ such that $Q(i) \\equiv a_i \\pmod{p}$ for all $1 \\le i \\le p^\\alpha$.*\n\n*Proof.* Consider the polynomial $P_i(x) = \\binom{x-i-1}{p^\\alpha-1}$. One can see that $P_i(i) \\equiv 1 \\pmod{p}$ and for $j \\ne i \\pmod{p^\\alpha}$, we have $P_i(j) \\equiv 0 \\pmod{p}$. Then we can choose\n$$\nQ(x) = \\sum_{i=1}^{p^{\\alpha}} a_i P_i(x).\n$$\nNow, in the next step we have $a_i \\equiv Q(i) - Q(i+s) \\pmod{p}$ but the degree of $Q(x) - Q(x+s)$ is less than $\\deg(Q)$ so after $p^\\alpha$ steps the second player wins.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32875, "subject": "Mathematics (Multi-modal)", "question": "Is it possible to write $1400$ natural numbers (not necessarily distinct) around a circle such that $2021$ is used at least once and each number is the sum of the greatest common divisor of the two previous numbers and the greatest common divisor of the two next numbers? For example, if $a, b, c, d, e$ are five consecutive numbers on the circle then $c = \\gcd(a, b) + \\gcd(d, e)$.", "options": [], "answer": "No, it is impossible.", "solution": "We shall show that this is impossible. Assume that there are such $1400$ numbers. First of all, note that if we divide all the numbers by $k$ then the new numbers satisfy the second condition and one of them is a divisor of $2021$, so we can assume that the greatest common divisor of the numbers is $1$.\n\n**Lemma.** *the gcd of each three consecutive numbers on the circle is $1$.*\n\n*Proof.* Assume that $a, b, c, d, e$ are five consecutive numbers on the circle, if $a, b, c$ have a common divisor $d$, then the equality $c = \\gcd(a, b) + \\gcd(d, e)$ implies that $d, e$ are also divisible by $d$. Similarly all the numbers should be divisible by $d$ which is in contradiction with our assumption. This completes our proof.\n\nAssume that $m$ is the maximum number on the circle, and $x, y, m, z, t$ be five consecutive numbers. We know that $m > 4$ because at least one of the numbers should be a divisor of $2021$ and $2021$ is not divisible by $2, 3, 4$. We have $m = \\gcd(x, y) + \\gcd(z, t)$ so at least one of the $\\gcd(x, y)$, $\\gcd(z, t)$ should be at least $\\frac{m}{2}$. Without the loss of generality we can assume that $\\gcd(x, y) \\ge \\frac{m}{2}$.\n\nIf $x \\neq y$ then $\\max(x, y) \\geq m$, yielding $\\max(x, y) = m$. If $y = m$ then by the assumption $x > \\gcd(m, y) = m$ we shall arrive at a contradiction hence we have $x = m, y = \\frac{m}{2}$. This implies that $\\gcd(z, t) = \\frac{m}{2}$ therefore $z = \\frac{m}{2}, y = m$ which contradicts to the fact that $y > \\gcd(z, m)$.\n\nSo we have $x = y \\ge \\frac{m}{2}$, let $w$ be the number before $x$. From the lemma we know that $\\gcd(w, x) = 1$ and we have\n$$\nx = \\gcd(w, x) + \\gcd(m, z) = 1 + (m, z) \\implies x - 1 \\mid m.\n$$\nIf $m$ is odd this contradicts to the fact that $x - 1 \\ge \\frac{m}{2} - 1$, if $m$ is even we have $x = \\frac{m}{2} + 1$ and $\\gcd(m, z) = \\frac{m}{2}$. But we have\n$$\nm = \\gcd(x, y) + \\gcd(z, t) = \\frac{m}{2} + 1 + \\left(\\frac{m}{2}, t\\right) \\implies \\frac{m}{2} - 1 \\mid \\frac{m}{2}.\n$$\nWhich contradicts to the fact that $\\frac{m}{2} > 2$. ■", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32876, "subject": "Mathematics (Multi-modal)", "question": "Suppose that $n$ is a positive integer. Consider a regular $2n$-gon such that one of its largest diagonals is parallel to the $x$-axis. Find the smallest integer $d$ such that there is a polynomial $P(x)$ of degree $d$ whose graph intersects all sides of the polygon on points other than its vertices.", "options": [], "answer": "n", "solution": "First of all, we show that $d$ should be at least $n$. The vertices of the polygon are on $n+1$ different vertical lines and between any two such lines the polynomial should intersect two edges of the polygon, one above and one below the $x$-axis. So by the *intermediate value theorem* the polynomial should have at least $n$ roots.\n\nNow we want to say that $n$ is sufficient. Choose $n+1$ points on the vertical lines that passing through vertices like below. By the *Lagrange Interpolation* formula there is a polynomial of degree at most $n$ that cross these $n+1$ points. Again By the *intermediate value theorem* this polynomial should intersects all edges. So the polynomial is of degree $n$.", "topic": "Discrete Mathematics", "subtopic": "Other" }, { "id": 32877, "subject": "Mathematics (Multi-modal)", "question": "In triangle $ABC$, with $AB < AC$, $I$ is the incenter, $E$ is the intersection of $A$-excircle, and $BC$. Point $F$ lies on the external angle bisector of $\\angle BAC$ such that $E$ and $F$ lies on the same side of the line $AI$ and $\\angle AIF = \\angle AEB$. Point $Q$ lies on $BC$ such that $\\angle AIQ = 90^\\circ$. Circle $\\omega_b$ is tangent to $FQ$ and $AB$ at $B$, circle $\\omega_c$ is tangent to $FQ$ and $AC$ at $C$ and both circles are passing through the inside of triangle $ABC$. If $M$ is the midpoint of the arc $BC$, which does not contain $A$, prove that $M$ lies on the radical axis of $\\omega_b$ and $\\omega_c$.\n\n![](attached_image_1.png)", "options": [], "answer": "Detailed solution", "solution": "Let in triangle $ABC$, points $I_a$, $H$, and $D$ be the $A$-excenter, foot of the altitude from $A$, and foot of the angle bisector from $A$, respectively. Since $(AD, II_a) = -1$ and $\\angle AHD = 90^\\circ$, we have $\\angle IHD = \\angle DHI_a$. Further, $AIHQ$ is cyclic, So $\\angle QAI = \\angle IHD$, hence $\\angle QAI = \\angle DHI_a$ and $\\triangle QAI \\sim \\triangle I_aHE$. We know $\\angle AHE \\sim \\angle FAI$, therefore $\\angle QIF \\sim \\angle I_aEA$ and we have\n$$\n\\angle FQI = \\angle AI_aE = \\angle IQB.\n$$\nNow let $\\omega$ be the circle centered at $M$, has the radius $MB = MC$, and $X$ and $Y$ be the intersections of line $FQ$ with $AB$ and $AC$, respectively. Point $I$ lies on the angle bisector of $\\angle QYC$, since $I$ lies on the angle bisector of $\\angle YQB$ and $\\angle YCQ$. Therefore $Y$, $I$, and $O_c$ are collinear, where $O_c$ is the center of $\\omega_c$. Now we have\n$$\n\\begin{align*} \n\\angle IO_cC = 90^\\circ - \\frac{1}{2}\\angle QYC &= \\frac{1}{2}(\\angle YQC + \\angle YCQ) = \\angle IQB + \\angle ICB \\\\ \n&= \\frac{1}{2}(\\angle B - \\angle C) + \\frac{1}{2}\\angle C = \\frac{1}{2}\\angle B \n\\end{align*}\n$$\nTherefore $O_c$ lies on $\\omega$. Similarly we can show that $O_b$ lies on $\\omega$, where $O_b$ is the center of $\\omega_b$. Notice that $I$ is the $A$-excenter of triangle $AXY$ so\n$$\n\\angle O_b I O_c = \\angle YIX = 90 - \\frac{1}{2}\\angle A = \\angle B I_a C,\n$$\nhence $BO_b = CO_c$. Finally\n$$\nP_{\\omega_b}^M = MO_b^2 - O_bB^2 = MO_c^2 - O_cC^2 = P_{\\omega_c}^M,\n$$\nwe are done.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32878, "subject": "Mathematics (Multi-modal)", "question": "Consider $n \\ge 6$ points $x_1, x_2, \\dots, x_n$ on the plane such that no three of them are colinear. We call a graph with vertices $x_1, x_2, \\dots, x_n$ a \"road network\" if it is connected, each of its edges is a line segment, and no two edges intersect at a point other than its vertices. Prove that there are three road networks $G_1, G_2, G_3$ such that $G_i$ and $G_j$ don't have a common edge for $1 \\le i, j \\le 3$.", "options": [], "answer": "Detailed solution", "solution": "For $n = 6$ there are 16 combinatorially different point sets (order types). It is easy to check that all these 16 cases allow for 3 edge-disjoint plane spanning trees.\n\nLet $S$ be a set of $n$ points in the plane and let $e = (r, b)$ be an edge spanned by $S$ having exactly 4 points of $S$ on one side (i.e., on one side of the straight line $\\ell_e$ supporting $e$). Let $S'$ be the set of 6 points containing $r, b$, and the exactly 4 points on one side of $e$. By the above claim, $S'$ contains 3 edge-disjoint plane spanning trees. For sake of simplicity, we call them *red*, *blue*, and *green*. Without loss of generality, assume that $e$ is a part of the red tree. Note that each point of $S'$ is incident to all three trees, and that $r$ and $b$ are extremal points for $S\\setminus(S'\\{r, b\\})$. We construct a red and a blue plane spanning trees by connecting $r$ and $b$, respectively, with all points in $S\\setminus S'$.\n\nNext, we shall construct the third (green) plane spanning tree on $S$. Note that the green plane spanning tree on $S'$ can be completed by a triangulation $T$. Let $q$ be a point of $S'\\setminus\\{r, b\\}$, such that $qrb$ is a triangle in $T$. Observe that any edge incident to $q$ and crossing $e$ does not cross a green edge.\nAssume that there exists a point $q' \\in (S\\S')$ such that the edge $qq'$ crosses $e$. Then we connect $q$ and $q'$ with a green edge and complete the green plane spanning tree by connecting all points in $S\\(S'\\cup\\{q'\\})$ with $q'$. If such a point $q'$ does not exist, then there must be an edge $e'$ of the convex hull of $S$, such that $e'$ crosses $\\ell_e$. Denote by $p$ the endpoint of $e'$ in $S\\S'$. We shall color $e$ by green and complete the green plane spanning tree by connecting all points in $S\\(S'\\cup\\{p\\})$ with $p$.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 32879, "subject": "Mathematics (Multi-modal)", "question": "Suppose that $3 \\le n$ is a natural number. Find the maximum value of the natural number $k$, for which, there are real numbers $a_1, a_2, \\dots, a_n \\in [0, 1)$ (not necessarily distinct) such that for every natural number $j$ satisfying $j \\le k$, there exists a sum of a certain number of $a_i$'s equal to $j$.", "options": [], "answer": "n - 2", "solution": "We claim that the answer is $n-2$. First, note that since the sum of a number of variables (at least 2) is one, and the rest of the numbers are less than one, the sum of all the variables is less than $n-1$. Suppose the numbers are $a_i = 1-b_i$.\n\n**First solution.** Using induction, we will prove that for each $n$, there exists $b_1, \\dots, b_n$ satisfying the following properties:\n$$\n\\bullet \\quad \\forall 1 < k < n-1, \\exists i \\le k \\le n : b_{i_1} + \\dots + b_{i_k} = 1\n$$\n$$\n\\bullet \\quad b_1 + \\dots + b_n = 2\n$$\nThe given conditions imply the desired result because:\n$$\n\\forall 1 < k < n-1 : a_{i_1} + \\dots + a_{i_k} = k-1 \\in \\{1, \\dots, n-3\\}\n$$\nAnd also:\n$$\na_1 + \\dots + a_n = n - 2\n$$\n\nIn other words, we divide all previous terms by 2 and add two new $\\frac{1}{2}$. Now we check the correctness of the induction hypothesis:\n\n1.\n$$\nk = 2 : b'_{n+1} + b'_{n+2} = 1\n$$\n\n2.\n$$\n3 \\le k < n : \\exists b_{i_1} + \\cdots + b_{i_{k-1}} = 1 \\implies b_1' + \\cdots + b_{i_{k-1}}' + b_{n+1} = 1\n$$\n\n3.\n$$\nk = n : b_1' + \\cdots + b_n' = 1\n$$\n\n4.\n$$\nb_1' + \\cdots + b_{n+2}' = 1 + \\frac{b_1 + \\cdots + b_n}{2} = 2\n$$\n\nFor the base of induction we use:\n$$\nn = 3 : \\frac{1}{3}, \\frac{1}{3}, \\frac{1}{3} \\quad n = 4 : \\frac{1}{2}, \\frac{1}{2}, \\frac{1}{2}, \\frac{1}{2}\n$$\n\n\n**Second Solution**\n$b_{i_1} + \\cdots + b_{i_t} = 1$ implies $a_{i_1} + \\cdots + a_{i_t} = t - 1$. Thus, we should give an example that for $2 \\le t \\le n - 1$ sum of $t$ of them is 1.\nLet $\\alpha = \\frac{\\sqrt{5}-1}{2}$ which is the root of $x^2+x=1$ and $0 < \\alpha < 1$. If $n=2m$ is even, take $b_k = a^k$ for $k=1, \\cdots, 2m-2$ and $b_{2m-1} = b_{2m} = \\frac{1}{2}\\alpha^{2m-3}$. Now for all $1 \\le t \\le m-1$ it follows that\n$$\nb_{2t}+b_{2t-1}+b_{2t-3}+b_{2t-5}+\\cdots+b_1 = b_{2t-2}+b_{2t-3}+b_{2t-5}+\\cdots+b_1 = \\cdots = b_2+b_1 = 1\n$$\nThus the sum of $t+1$ of $b_i$'s is 1.\nFurthermore, since $\\alpha^{2m-2}+\\alpha^{2m-3}+\\cdots+\\alpha^{2t} = \\frac{\\alpha^{2t}-\\alpha^{2m-1}}{1-\\alpha} = \\frac{\\alpha^{2t}-\\alpha^{2m-1}}{\\alpha^2} = \\alpha^{2t-2}-\\alpha^{2m-3}$ we have\n$$\nb_{2m} + b_{2m-1} + b_{2m-2} + \\cdots + b_2 + b_{2t-3} + b_{2t-5} + \\cdots + b_1 = 1\n$$\nHence sum of $2m-t$ of $b_i$'s is 1. If $n=2m-1$ is odd, then setting $b_k = \\alpha^k$ for $k=1, \\cdots, 2m-2$ and $b_{2m-1} = \\alpha^{2m-3}$, we have\n$$\nb_{2t}+b_{2t-1}+b_{2t-3}+\\cdots+b_1 = b_{2m-1}+b_{2m-2}+\\cdots+b_2+b_{2t-3}+b_{2t-5}+\\cdots+b_1 = 1\n$$\nWe proved that for all $2 \\le t \\le 2m-2$ the sum of $t$ of $b_i$'s is 1. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32880, "subject": "Mathematics (Multi-modal)", "question": "For all positive integers $k$ find the smallest positive integer $n$ such that for every tournament with $n$ vertices, there exists a vertex $v$ such that both *in-degree* and *out-degree* of $v$ are at least $k$. (A tournament is a directed graph such that there is exactly one edge between each of its two vertices).", "options": [], "answer": "4k - 1", "solution": "We claim that the answer is $n = 4k - 1$. First and foremost, we provide an example of a graph with $4k - 2$ vertices with no desired vertex: divide the vertices into two parts with $2k - 1$ vertices. All the edges between the first and second part are directed toward the second part. Put the vertices at each part around a circle and direct all the edges to the next $k - 1$ vertices in a clockwise direction as exits. Now each vertex in the first part has in-degree $k - 1$ and each vertex in the second part has out-degree $k - 1$.\n\nNow we want to prove that every tournament with $4k - 1$ vertices has a desired vertex. Assume the contrary, consider all the vertices with in-degree at least $k$. Assume that there are $s$ such vertices and the out-degree of all of them is less than $k$. Now consider the sub-tournament consisting of these vertices. the sum of out-degrees is at most $s(k - 1)$, but it should be $\\frac{k(k-1)}{2}$. So we should have $s \\le 2k - 1$. Similarly, if $s'$ is the number of vertices with out-degree at least $k$, then we have $s' \\le 2k - 1$.\n\nNote that the sum of the in-degree and out-degree of each vertex is $n$. Because $n > 2k$, each vertex has the in-degree or out-degree of at least $k$. This means that we have either $2k$ vertices with in-degree at least $k$ or $2k$ vertices with out-degree at least $k$. This is a contradiction so there exists a vertex with both in-degree and out-degree at least $k$. ■", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 32881, "subject": "Mathematics (Multi-modal)", "question": "The triangle $ABC$ is given. Point $T$ is the intersection of the $A$-symmedian and the circumcircle of $ABC$. Point $D \\neq A$ lies on the line $AC$ in such a way that $BD = BA$. The line tangent to the circumcircle of $ADT$ at point $D$ intersects the circumcircle of $DCT$, for the second time at point $K$. Prove that $\\angle BKC = 90^\\circ$.", "options": [], "answer": "Detailed solution", "solution": "According to the assumptions of the problem, we have $\\angle ADT = \\angle TKC$ and $\\angle TCK = \\angle TDK = \\angle TAD$. From these two equations, it follows that $\\triangle TDA \\sim \\triangle TKC$. Therefore, we can write:\n$$\n\\frac{KC}{AD} = \\frac{TC}{AT} \\qquad (1)\n$$\nOn the other hand, if we denote the midpoint of $BC$ as $M$, we can easily deduce that $\\triangle ABM \\sim \\triangle ATC$. Therefore, according to 1, we have:\n$$\n\\frac{KC}{AD} = \\frac{TC}{AT} = \\frac{AB}{BM} = \\frac{AB}{CM} \\qquad (2)\n$$\nWe have shown that $\\angle TCK = \\angle TAD = \\angle TAC$, which is equivalent to the fact that $KC$ is tangent to the circumcircle of triangle $ABC$. Thus, $\\angle BAD = \\angle MCK$. Using this equality and 2, we obtain $\\triangle MCK \\sim \\triangle BAD$, which means $MK = MC$. Thus, in triangle $BCK$, the $K$-median is half of $BC$, and we must have $\\angle BKC = 90^\\circ$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32882, "subject": "Mathematics (Multi-modal)", "question": "A polynomial $S(x) \\in \\mathbb{R}[x]$ is \"simple\" if it is divisible by $x$ but not by $x^2$. For the polynomial $P(x) \\in \\mathbb{R}[x]$, we know that there exists a simple polynomial $Q(x)$ such that $P(Q(x)) - Q(2x)$ is divisible by $x^2$. Prove that there exists a simple polynomial $R(x)$ such that $P(R(x)) - R(2x)$ is divisible by $x^{1401}$.", "options": [], "answer": "Detailed solution", "solution": "We prove this statement by induction. The base is clear, by the induction hypothesis assumes that\n$$\nx^{n-1}|P(R_{n-1}(x)) - R_{n-1}(2x)\n$$\nif it is also divisible by $x^n$ then we are done. Otherwise, set $R_n(x) = R_{n-1}(x) + a x^{n-1}$. Then $R_n(x) \\equiv R_{n-1}(x) \\pmod{x^{n-1}}$ and so we have\n$$\nx^{n-1}|P(R_n(x)) - R_n(2x)\n$$\nAssume that $P(x) = \\sum a_j x^j$, $R_{n-1}(x) = \\sum b_j x^j$, then the coefficient of $x^{n-1}$ in $P(R_n(x)) - R_n(2x)$ is equal to $a a_1 - 2^{n-1} a + f(a_2, \\dots, a_n, b_j)$; we can set $a = \\frac{-f}{a_1 - 2^{n-1}}$ unless $a_1 = 2^{n-1}$, so we have to show that this does not happen.\nIf we set $x = 0$ in the hypothesis we get $P(0) = 0$, and if we check the coefficient of $x$ in $P(Q(x)) - Q(2x)$ we get $a_1 b_1 - 2 b_1 = 0$ but we know that $b_1 \\ne 0$ so we should have $a_1 = 2$ which means that $a_1 \\ne 2^{n-1}$ for $n \\ge 3$.\n■", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32883, "subject": "Mathematics (Multi-modal)", "question": "Find all functions $f : \\mathbb{R}^{+} \\to \\mathbb{R}^{+}$ such that for all $x, y, z \\in \\mathbb{R}^{+}$\n$$\nf(x + f(y) + f(f(z))) = z + f(y + f(x)).\n$$", "options": [], "answer": "f(x) = x for all x > 0", "solution": "We shall firstly prove that $f$ is injective. Note that if $f(z) = f(z')$ for some $z \\neq z'$, by substituting $(x, y, z)$ and $(x, y, z')$ in the given equation, we have:\n$$\n\\begin{align*}\nz + f(y + f(x)) &= f(x + f(y) + f(f(z))) \\\\\n&= f(x + f(y) + f(f(z'))) \\\\\n&= z' + f(y + f(x)) \\\\\n\\implies z &= z'\n\\end{align*}\n$$\nNow substituting $f(x)$ for $x$ in the equation:\n$$\nx \\to f(x) : f(f(x) + f(y) + f(f(z))) = z + f(y + f(f(x)))\n$$\nInterchanging $x, y$, the left-hand side of the equation remains unchanged. Therefore by comparing the left-hand sides we would have:\n$$\nf(y + f(f(x))) = f(x + f(f(y)))\n$$\nAnd by injectivity, we can conclude:\n$$\n\\begin{align*}\n\\forall x, y \\in \\mathbb{R} : \\quad & f(f(x)) + y = f(f(y)) + x \\\\\n\\implies & f(f(x)) = x + c\n\\end{align*}\n$$\nIf we substitute $x = y = 1$ into the main equation, we have:\n$$\nf(1 + f(1) + z + c) = z + f(1 + f(1))\n$$\nSo for large enough $z$ we have: $f(z) = z + a$ where $a$ is a constant. By choosing $x, z$ large enough; it follows that:\n$$\nx + f(y) + z + a + 2a = z + x + y + 2a \\implies \\forall y \\in \\mathbb{R} : f(y) = y - a\n$$\nHence $a = 0$ and $f(x) = x$ is the only solution. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32884, "subject": "Mathematics (Multi-modal)", "question": "Consider a natural number $n$. Amin and Ali play a game, each player at his own turn chooses a number $i$ from the set $\\{0, 1, 2, \\dots, n\\}$ that has been never chosen before, and chooses a non-zero rational number $a_i$. Ali takes the first move. When all the numbers $\\{0, 1, 2, \\dots, n\\}$ get chosen, they form a polynomial $P(x) = a_n x^n + a_{n-1} + \\dots + a_0$. Ali wins if the polynomial has a rational root, Amin wins otherwise. Find all $n$ such that Ali has a winning strategy.", "options": [], "answer": "All even n", "solution": "We claim that Ali has a winning strategy for even $n$. If $n$ is even, Ali does the last move, assuming that he has to choose $a_k$. Choose a rational number $q$ which is not a root of $Q(x) = \\sum_{i \\neq k} a_i x^i$. Now Ali can choose $a_k = \\frac{-Q(q)}{q^k}$ and win the game.\n\nIf $n$ is odd we show that Amin has a winning strategy. It is enough to prove the following lemma.\n\n**Lemma 1.** *Assume that all of the coefficients are chosen but $a_k$, then one can choose $a_k$ in a way that $P(x)$ has no rational roots.*\n\nAssume firstly that $k \\neq 0, n$, and $d$ is the common denominator of $a_i$. Then for any natural number $t$, if $\\frac{a}{b}$ is a root of $\\sum_{i \\neq k} a_i x^i + t x^k$, then $a \\mid k a_0$, $b \\mid k a_n$. So there are finitely many possibilities and we can choose $a_k$ in a way that avoids these possibilities.\n\nIf $i=0$, consider the polynomial $Q(x) = \\sum_{i=1}^{n} a_i x_i$. It is enough to prove that there is a natural number $n$ so that $Q(x) = -a$ does not have a rational root. If $a$ is a natural number, as before, the denominator of any possible root is a divisor of $k a_0$. Now choose $x_0$ big enough such that for $|y| > x_0$, $|Q(y + \\frac{1}{k a_0})| > |Q(y)| + 1$.\n\nNow if $Q(y) = n$, then for every natural number $b$, $Q(y + \\frac{b}{k a_0}) > n + 1$. So the equation $Q(x) = n + 1$ can't have any rational solution.\n\nBy considering the polynomial $R(x) = \\sum a_{n-i} x^i$ and noting that the roots of $R$ are the inverse of the roots of $P$, we see that the case of $i = 0$ is equivalent to the case of $i = d$. We are done. ■", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 32885, "subject": "Mathematics (Multi-modal)", "question": "If $d(n)$ is the number of positive divisors of $n$, prove that there exists a natural number $n$ such that:\n$$\n\\forall i \\in \\mathbb{N},\\ i \\le 1402 : \\frac{d(n)}{d(n \\pm i)} > 1401.\n$$", "options": [], "answer": "Detailed solution", "solution": "Let $n = p_1^{\\alpha_1} \\cdots p_s^{\\alpha_s}$. We define $\\Omega(n) = \\alpha_1 + \\cdots + \\alpha_s$.\n**Lemma 1.** $d(n) \\le 2^{\\Omega(n)}$\n*Proof.*\n$$\n\\forall 1 \\le i \\le s : 2^{\\alpha_i} \\ge \\alpha_i + 1 \\implies 2^{\\Omega(n)} \\ge d(n)\n$$\n\nWe denote prime numbers less than $1402$ as $q_1, \\dots, q_l$ and the rest of the prime numbers as $p_1 < p_2 < \\dots$. We choose $n = q_1^\\alpha \\cdots q_l^\\alpha p_1 \\cdots p_k$ where $\\alpha, k$ will be determined later.\nSuppose $\\alpha$ is large enough such that\n$$\n\\forall 1 \\le t \\le l,\\ i \\le 1402 : v_{q_t}(i) < \\alpha\n$$\nTo do so we restrict $\\alpha > \\log_2 1402$. Now if for a prime number like $q$ and a number less than $1402$ like $i$ we have $q \\mid i$ then $q \\in \\{q_1, \\dots, q_l\\}$ so $q \\mid \\frac{n}{i}$. Thus $\\gcd(i, \\frac{n}{i} \\pm 1) = 1$.\n$$\nd(n \\pm i) = d(i)d\\left(\\frac{n}{i} \\pm 1\\right) \\le 1402 \\cdot 2^{\\Omega\\left(\\frac{n}{i} \\pm 1\\right)} \\le 1402 \\cdot 2^{\\log_{p_{k+1}}\\left(\\frac{n}{i} \\pm 1\\right)} \\le 1402 \\cdot 2^{\\log_{p_{k+1}}(n+1)}\n$$\nIt is enough to show that\n$$\n(\\alpha + 1)^l \\times 2^k > 1401 \\times 1402 \\times 2^{\\log_{p_{k+1}}(n+1)}\n$$\nBy adding the condition to the choice of $\\alpha$ that $(\\alpha + 1)^l > 1401 \\times 1402$ it remains to prove $k \\ge \\log_{p_{k+1}}(n+1)$.\n$$\n\\iff p_{k+1}^k > q_1^\\alpha \\cdots q_l^\\alpha p_1 \\cdots p_k\n$$\nWe may choose $k$ such that $p_k > q_1^\\alpha \\cdots q_l^\\alpha$. This ends the proof.\n\nWe shall indeed prove that for all $k, m$ there is a positive integer $n > 1$ such that $\\frac{d(n)}{d(n \\pm i)} > m$, $i = 1, \\dots, k$. Let $C = \\max\\{d(1), \\dots, d(k)\\}$ and let $s$ be a positive integer such that $2^{s-1} > Cm$. Let $p_i$ be the $i$-th prime number, chose a positive integer $l$ such that $p_{s+l} > k!p_1 \\dots p_s$. Taking $n = k!p_1 \\dots p_{s+l}$ then $n \\pm i$ for all $i = 1, \\dots, k$ is greater than $i$ and is also divisible by $i$. Then, for all $i = 1, \\dots, k$;\n$$\nn \\pm i = i q_1^{\\alpha_1} \\dots q_r^{\\alpha_r},\n$$\nWhere $q_1 < \\dots < q_r$ be prime numbers. Thus,\n$$\nn \\pm i = i \\left( \\frac{k!}{i} p_1 \\dots p_{s+l} \\pm 1 \\right).\n$$\nThat is, $\\frac{n \\pm i}{i}$ are divisible by primes greater than $p_1, \\dots, p_{s+l}$. Therefore, $q_1 > p_{s+l} > k!p_1 \\dots p_s$ that is, $q_1 > 1 + k!p_1 \\dots p_s$ hence, $p_{k+1} \\dots p_{l+s} < q_1^s$. Thus,\n$$\nq_1^{s+1} > k! p_1 \\dots p_s + q_1^s = n + q_1^s > n + q_1 \\ge n + k.\n$$\nYielding $q_1^{l+1} > n \\pm i$. That is, $q_1^{l+1} > q_1^{\\alpha_1} \\dots q_r^{\\alpha_r} \\ge q_1^{\\alpha_1+\\dots+\\alpha_r}$.\n\nThen, $l+1 > \\alpha_1 + \\dots + \\alpha_r \\ge r$ to find $l+1+r > (1+\\alpha_1)+\\dots+(1+\\alpha_r)$.\nHence,\n$$\nd(n \\pm i) = d(i)(1 + \\alpha_1) + \\dots + (1 + \\alpha_r) \\le C \\left( \\frac{(1 + \\alpha_1) + \\dots + (1 + \\alpha_r)}{r} \\right)^r < C \\left( \\frac{l+1+r}{r} \\right)^r\n$$\nFinally, $(1 + \\frac{l+1}{r})^r < (1 + \\frac{l+1}{l+1})^{l+1} = 2^{l+1}$. Yielding $d(n \\pm i) < C \\cdot 2^{l+1}$. Since $d(n) > 2^{s+1}$ we find that\n$$\n\\frac{d(n)}{d(n \\pm i)} > \\frac{2^{s-1}}{C} > m.\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32886, "subject": "Mathematics (Multi-modal)", "question": "Given a cyclic quadrilateral $ABCD$ with circumcenter $O$. Let $E$ be the intersection of $AD$ and $BC$, and $F$ be the intersection of $AC$ and $BD$. Circle $\\omega$ is tangent to $BD$ and $AC$. $QP$ is a diameter of $\\omega$ such that $F$ is the orthocenter of triangle $QEP$. Prove that $EO$ passes through the center of $\\omega$.", "options": [], "answer": "Detailed solution", "solution": "Let $H$ be the projection of $P$ to the line $EQ$ and $Z$ be the projection of $E$ to the line $PQ$. Let $AD$ and $BC$ touch $\\omega$ at $X$ and $Y$, respectively. Let $O'$ be the center of $\\omega$ and $\\omega_1$ be the circle with diameter $O'F$.\n\n![](attached_image_1.png)\n\nSince $\\angle O'XF = \\angle O'YF = \\angle O'ZF = 90^\\circ$, so $X$, $Y$ and $Z$ are on $\\omega_1$. We know $EH \\cdot EQ = EZ \\cdot EF$, so $E$ is on radical axis of $\\omega_1$ and $\\omega$. Therefore $E$, $X$ and $Y$ are collinear. Now let $T$ be the second intersection of $EO'$ and $\\omega_1$. Also, let $M$ be the midpoint of $FO'$. It is clear that $XY \\perp O'F$ and $X$ and $Y$ are symmetric with respect to $FO'$. Hence $(X, Y; F, O') = -1$. Then:\n$$\nF(B, C; E, T) = A(Y, X; Z, T) = (X, Y; F, O') = -1\n$$\nBut we know that if $G$ is the intersection of $AB$ and $CD$, then $F(B, C; E, G) = -1$. Therefore $F$, $G$, and $T$ are collinear. Notice that $FT \\perp EO'$, so $GT \\perp EO'$. Also we know that $EO \\perp GF$, hence $E$, $O$ and $O'$ are collinear and we are done. ■", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32887, "subject": "Mathematics (Multi-modal)", "question": "A $m \\times N$ table is filled with $2 \\times 2$ and $1 \\times 3$ tiles. Different tiles don't have common cells. Prove that the number of ways for choosing a $1 \\times 2$ rectangle (vertical or horizontal) so that one of its cells is filled with a $2 \\times 2$ tile and one of them is filled with a $1 \\times 3$ tile is even.", "options": [], "answer": "Detailed solution", "solution": "Assume that in this table we use $s \\times 2$ tiles. Each tile has eight segments at its border. Assume that the number of $2 \\times 2$ tiles adjacent to the borders of the table is $b$ and the number of shared segments between $2 \\times 2$ and $1 \\times 3$ tiles is $f$. Assume that there are $g$ segments in the border of $2 \\times 2$ tiles with themselves. We have:\n$$\n8s = 2b + 2g + f\n$$\nSo the number of segments shared by a $2 \\times 2$ and a $1 \\times 3$ segment is even. But such segments are clearly in one-to-one correspondence with $1 \\times 2$ rectangles that one of their cells is filled with a $2 \\times 2$ tile and one of them is filled with a $1 \\times 3$ tile. Therefore the number of these rectangles is even, as desired.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32888, "subject": "Mathematics (Multi-modal)", "question": "For two rational numbers $r, s$ we say $r|s$ if there is $k \\in \\mathbb{Z}$ so that $s = kr$. The sequence $(a_n)_{n \\in \\mathbb{N}}$ is an increasing sequence of natural numbers such that for all $i, j \\in \\mathbb{N}$, $\\gcd(a_i, a_j) = 1$ and $(b_n)_{n \\in \\mathbb{N}}$ is a sequence of distinct natural numbers. Assume that for each $n \\in \\mathbb{N}$ we have\n$$\n\\sum_{i=1}^{n} \\frac{1}{a_i} \\mid \\sum_{i=1}^{n} \\frac{1}{b_i},\n$$\nprove that for all $n \\in \\mathbb{N}$ we have $a_n = b_n$.", "options": [], "answer": "Detailed solution", "solution": "$$\n\\sum_{i=1}^{n} \\frac{1}{b_i} = k_n \\sum_{i=1}^{n} \\frac{1}{a_i}\n$$\nby subtracting these equalities for $n, n + 1$ we have:\n$$\n\\frac{1}{b_{n+1}} = k_{n+1} \\frac{1}{a_{n+1}} + (k_{n+1} - k_n) \\sum_{i=1}^{n} \\frac{1}{a_i}\n$$\nChoose a big enough $m$, such that for $n > m$ we have $b_n > a_0$, (this is possible because $b_i$ are distinct natural numbers). Then we have $\\frac{1}{b_{n+1}} < \\sum_{i=1}^{n} \\frac{1}{a_i}$.\nTherefore $k_{n+1} \\le k_n$.\nWhence, for big enough $i$, the sequence $k_i$ is decreasing, hence they are constant after some point. If $k_n = k_{n+1}$ then because $\\gcd(a_{n+1}, a_n) = 1$ we have $k_n = k_{n+1} = 1$. So we have $a_n = b_n$ for large enough $n$.\nAssume that for $n > N$, $a_n = b_n$, $k_n = 1$, by subtracting the equations\n$$\n\\sum_{i=1}^{N+1} \\frac{1}{b_i} = \\sum_{i=1}^{N+1} \\frac{1}{a_i}, \\quad a_{N+1} = b_{N+1}\n$$\nwe get $\\sum_{i=1}^{N} \\frac{1}{b_i} = \\sum_{i=1}^{N} \\frac{1}{a_i}$ and so $k_N = 1$. Now we have\n$$\n\\frac{1}{b_N} = \\frac{1}{a_N} + (1 - k_{N-1}) \\sum_{i=1}^{N-1} \\frac{1}{a_i}\n$$\nthe $a_i$ are increasing so if $k_{N-1} \\neq 1$ the right hand side becomes negative which is a contradiction. Hence we have $k_{N-1} = 1$ and by induction, we prove that $a_i = b_i$. ■", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32889, "subject": "Mathematics (Multi-modal)", "question": "Points $B$ and $C$ are fixed on the circle $\\omega$. Denote by $M$ the midpoint of $BC$. Let $A$ be a variable point on $\\omega$, and $H$ be the orthocenter of triangle $ABC$. The perpendicular from $H$ to $MH$, intersects lines $AB$ and $AC$ at points $X$ and $Y$, respectively. Prove that as point $A$ moving on $\\omega$, the orthocenter of triangle $AXY$ would also be moving on a circle.", "options": [], "answer": "Detailed solution", "solution": "Let $O$ be the center of $\\omega$, and $H'$ be the orthocenter of triangle $AXY$. Denote the intersection of $AH'$ and $OM$ as $D$. It is evident that quadrilateral $AHMD$ is a parallelogram, so $2OM = AH = MD$. This result shows that $D$ is a fixed point. If we prove $\\frac{AH'}{AD}$ is constant, it follows that with the movement of $A$ on $\\omega$, $H'$ moves on a circle such that $D$ is the homothety center between the two circles.\n\n**Lemma 1.** In triangle $ABC$ with orthocenter $H$, we have $|BC \\cot \\angle A| = |AH|$.\n\n*Proof*. If we let $O$ be the circumcenter of triangle $ABC$ and $M$ be the midpoint of $BC$, we know that $2OM = AH$. Additionally, $|R \\cos \\angle A| = OM$ where $R$ is the radius of the circumcircle of triangle $ABC$. Therefore, according to the Law of Sines,\n$$\nAH = 2OM = |2R \\cos \\angle A| = |BC \\cot A|\n$$\nthe result follows.\n\nSince $AHMD$ is a parallelogram, we can write $MH = AD$. According to the above lemma, we also have $|XY \\cot \\angle A| = AH'$. Since $|\\cot A|$ is constant, it suffices to show that $\\frac{XY}{MH}$ is constant.\n\n---\n\n![](attached_image_1.png)\n\nIn the following we will use directed angles modulo $180^\\circ$ denoted as $\\angle ABC$. Let $A'$ be the antipodal of $A$ with respect to $\\omega$. As $BHCA'$ is a parallelogram, $M$ is the midpoint of $AH'$. Note that $\\angle XHA' = \\angle XBA' = 90^\\circ$. So $A'BXH$ is cyclic which results in $\\angle A'XH = \\angle A'BH = \\angle BAC$. Analogously, $\\angle HYA' = \\angle BAC$ which means $XA'Y$ is an isosceles triangle and $H$ is the midpoint of $XY$. At last we can write:\n$$\n\\frac{XY}{MH} = \\frac{4XH}{HA'} = 4 \\cot \\angle BAC\n$$\nwhich is constant and the claim is proven. ■", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32890, "subject": "Mathematics (Multi-modal)", "question": "Let $\\frac{1}{2} < s < 1$. An insect jumps on points in the interval $[0, 1]$. If the insect is on point $a$, it can jump to either $s \\times a$ or $(a - 1) \\times s + 1$. Prove that for any arbitrary point $c$ in the interval $[0, 1]$, the insect can jump in such a way that after a few steps, it will be at a distance less than $\\frac{1}{1402}$ from $c$.", "options": [], "answer": "Detailed solution", "solution": "We call the number $x$ an $n$-digit number if it can be written as $x = \\sum_{i=0}^{n} a_i s^i$ where $\\forall 0 \\le i \\le n$, $a_i$ is either $0$ or $1-s$ (note that $a_n$ can be $0$ too). Using the operations presented in the problem, starting from $a$, we can obtain numbers of the form $a s^N + b$ where $b$ can be any $(N-1)$-digit number. For any $c \\le 1$ and $\\epsilon \\in \\mathbb{R}^+$ we are looking for $b, N$ such that:\n$$\n|(a s^N + b) - c| < \\epsilon\n$$\nTo prove this, it is sufficient to find $b$ such that $|b-c|<\\epsilon$ and then choose sufficiently large $N$ to satisfy the inequality.\nWe will prove by induction that for every $c \\le 1$ there exists an $n$-digit number like $b$ such that\n$$\n|b-c| < s^{n-1}\n$$\nThis obviously proves the main statement.\nFor the base of the induction, $n=1$ is obvious. Now let's assume the statement holds for $n$. We will prove it also holds for $n+1$. If $c > 1-s$ we define $c' = \\frac{c-(1-s)}{s}$. This number is in the interval $[0,1]$ because:\n$$\n\\frac{c - (1 - s)}{s} \\le 1 \\iff c \\le 1 - s + s = 1\n$$\nBy the induction hypothesis there exists an $n$-digit number $b$ such that:\n$$\n\\left| \\frac{c - (1 - s)}{s} - b \\right| \\le s^{n-1} \\implies \\left| c - \\left( (1 - s) + s \\times b \\right) \\right| \\le s^n\n$$\nHowever $1 - s + s \\times b$ is an $(n+1)$-digit number. If $c \\le 1 - s$ then we define $c' = \\frac{c}{s}$ this number is also in the interval $[0, 1]$ because:\n$$\nc \\le 1 - s \\le s \\implies c' \\le 1\n$$\nThen by the induction hypothesis there exists an $n$-digit number $b$ such that:\n$$\n|\\frac{c}{s} - b| \\le s^{n-1} \\implies |c - s \\times b| \\le s^n\n$$\nHere $s \\times b$ is an $(n+1)$ digit number. Thus the inductive step is proven. The proof is now complete.\n$$\nf(x) = s x, \\quad g(x) = s x + 1 - s.\n$$\nWe know that the images of functions $f, g$ on $[0, 1]$ are $[0, s]$ and $[1 - s, 1]$, respectively. It is clear that the length of each interval is $s$ and the union of them is $[0, 1]$.\nAt each time, the position of the insect can be obtained from the compositions of $f, g$. Hence, the possible positions of her after $n$ steps would be of the form $h_1(h_2(\\dots(h_n(x)\\dots)))$, where $h_i \\in \\{f, g\\}$. It turns out that the length of the interval of each such function is $s^n$.\nWe then prove by induction that for each $n$ the union of the images of these intervals covers $[0, 1]$. The base is true. Assume that the statement holds true for all integers don't exceed $k$. Hence, the images of all possible compositions $h_1(h_2(\\dots(h_k(x)\\dots)))$ covers $[0, 1]$. Notice that image of any of $h_1(h_2(\\dots(h_k(g(x))\\dots)))$ or $h_1(h_2(\\dots(h_k(f(x))\\dots)))$ covers the image of $h_1(h_2(\\dots(h_k(x)\\dots)))$. this completes our proof.\nNow, suppose a point $a \\in [0, 1]$. We shall then prove that there is a positive integer $n$ that the image of $h_1(h_2(\\dots(h_n(x)\\dots)))$ contains $a$. For this reason, choosing $n$ such that $\\frac{1}{2022} > s^n$ it follows that the insect shall be in the interval of $(a - \\frac{1}{2022}, a + \\frac{1}{1402})$. We are done. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32891, "subject": "Mathematics (Multi-modal)", "question": "In the triangle $ABC$, variable points $D$, $E$, $F$ are on the sides $BC$, $CA$, $AB$ respectively such that the triangle $DFE$ is similar to the triangle $ABC$ in the same order as written. Circumcircles of $BDF$ and $CDE$ intersect the circumcircle of $ABC$ at $P$ and $Q$, respectively for the second time. Prove that the circumcircle of $DPQ$ passes through a fixed point.", "options": [], "answer": "Detailed solution", "solution": "Let the tangent of $\\odot(ABC)$ at $A$ intersect $BC$ at $G$ and $FE \\cap AG = H$, $FD \\cap AC = I$, $ED \\cap AB = J$. We'll show that $\\odot(DPQ)$ passes through the fixed point $G$.\n\nWe claim that $A$, $H$, $J$, $Q$, $E$ are concyclic. Analogously, $A$, $F$, $P$, $H$, $I$ are also concyclic. It follows from the angle chasing:\n$$\n\\angle FED = \\angle ACB = \\angle HAB\n$$\nSo $A$, $H$, $J$, $E$ are concyclic. Also:\n$$\n\\angle AQE = \\angle AQC - \\angle EQC = \\angle ABC - \\angle EDC = \\angle AJE,\n$$\nWhich means $A$, $J$, $Q$, $E$ are also concyclic. These two cyclic quadrilaterals prove our claim. Notice that:\n$$\n\\angle QDC = \\angle QEC = \\angle QHA\n$$\nSo $G$, $H$, $D$, $Q$ are concyclic. Likewise, $G$, $H$, $D$, $P$ are concyclic. Therefore $G$, $P$, $D$, $Q$, $H$ are concyclic, which implies that $G$ lies on $\\odot(DPQ)$.\n\n■", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32892, "subject": "Mathematics (Multi-modal)", "question": "Find all the functions $f : \\mathbb{N} \\to \\mathbb{N}$ such that for $x, y \\in \\mathbb{N}$:\n$$\n0 \\le y + f(x) + f^{f(y)}(x) \\le 1\n$$\nwhere\n$$\nf^n(x) = \\underbrace{f(f(\\cdots(f(x))\\cdots))}_{n}\n$$", "options": [], "answer": "f(n) = n + 1 for all natural numbers n", "solution": "**Lemma 1.** For every natural number $x$, $\\{f^n(x)\\}$ is unbounded.\n*Proof.* For every natural number $y$,\n$$\nf^{f(y)}(x) \\ge y + f(x) - 1,\n$$\nSo, send $y$ to the infinity, we are done.\n\n**Lemma 2.** All the terms of the sequence $(f^n(x))$ are distinct.\n*Proof.* If $i < j$ and $f^i(x) = f^j(x)$ then this sequence becomes periodic which contradicts the first lemma.\n\nBack to our problem, by the first lemma $f(1) \\ge 2$, set $y = 1, k = f(1)$, then\n$$\n1 \\ge 1 + f(x) - f^{k-1}(f(x)) \\ge 0 \\rightarrow f^{k-1}(f(x)) \\in \\{f(x), f(x) + 1\\}.\n$$\nWe want to prove that $f(1) = 2$. Assume the contrary, by lemma 2, there is no $k$ such that $f^{k-1}(f(x)) = f(x)$, so we have\n$$\n\\forall x \\in \\mathbb{N}: f^{k-1}(f(x)) = f(x) + 1 \\quad (1)\n$$\nSet $t = k - 1$ then **1** tells us that for each $a$ in the range of $f$, we have $f^t(a) = a + 1$. If we use this for $a + 1$ we have $f^{2t}(a) = f^t(a + 1) = a + 2$. Therefore for every natural number $n$ we have\n$$\nf^{nt}(a) = a + n\n$$\nHence $\\{f^{nt}(a)\\}$ which is a proper subset of $f^m(a)$ contains every big enough natural number. This contradicts the fact that members of $f^m(a)$ are distinct. So we should have $f(1) = 2$. Now **1** implies that $f(f(x)) = x+1$, by induction we have $f(x) = x + 1$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32893, "subject": "Mathematics (Multi-modal)", "question": "Prove that for each natural number $n$ one can find complex numbers $\\omega_1, \\omega_2, \\dots, \\omega_n$ on the unit circle such that\n$$\n|\\sum \\omega_j| = |\\sum \\omega_j^2| = n - 1.\n$$", "options": [], "answer": "Detailed solution", "solution": "Change the ordering of $\\omega_i$ so that they are indexed by their arguments.\n\n**Lemma 1.** After a rotation, one can assume that all $\\omega_i$ are lying on the upper half plane and $\\omega_1 = 1$.\nWe multiply the $\\omega_i$ by $\\text{cis}(\\theta)$ so that $\\sum \\omega_i$ becomes imaginary. So we have\n$$\n\\sum \\Im(\\omega_i) = n - 1\n$$\nWe know that $-1 \\le \\Im(\\omega_i) \\le 1$ so if one of them is negative, their sum does not reach $n-1$. So we have all of them in the upper half-plane. Now rotate them to get $\\omega_1 = 1$.\n\nNow by the cosine theorem, we have\n\n**Lemma 2.** If $u, v$ are two vectors with norm 1 such that $|u + v| \\ge 1$ then the angle between $u, v$ is less than $\\frac{2\\pi}{3}$.\n\nFor $k \\ge 2$ we have\n$$\nn-1 = \\left| \\sum_i \\omega_i \\right| \\le |\\omega_1 + \\omega_k| + \\sum_{j \\ne 1, k} |\\omega_j| \\le n-2 + |\\omega_1 + \\omega_k| \\to 1 \\le |\\omega_1 + \\omega_k|\n$$\nBy [1,2] we have $0 \\le \\arg(\\omega_k) \\le \\frac{2\\pi}{3}$.\n\nIf for some $j$, $\\frac{\\pi}{3} < \\arg(\\omega_j) \\le \\frac{2\\pi}{3}$, then $\\frac{\\pi}{3} < \\arg(\\omega_j^2) \\le \\frac{2\\pi}{3}$. By [2] we have $\\omega_1^2 + \\omega_j^2 \\le 1$. Therefore\n$$\nn-1 = \\left| \\sum_i \\omega_i \\right| \\le |\\omega_1 + \\omega_k| + \\sum_{j \\ne 1, k} |\\omega_j| \\le n-2 + |\\omega_1 + \\omega_k| \\to 1 \\le |\\omega_1 + \\omega_k|\n$$\nBy triangle inequality, we have\n$$\n\\omega_2 = \\omega_3 = \\dots = \\omega_n\n$$\nand by checking the conditions we get $n = 2$.\n\nOtherwise for all $j$, $\\arg \\omega_j \\le \\frac{\\pi}{3}$. But then consider the two simple polygons $A$ with vertices $0, \\omega_1, \\omega_1 + \\omega_2, \\dots, \\sum \\omega_j$, $B$ with vertices $0, \\omega_1^2, \\omega_1^2 + \\omega_2^2, \\dots, \\sum \\omega_i^2$. Then we have two simple polygons where the length of the edges are equal to each other but the angles in the first polygon are less than the angles in the second polygon. This is a contradiction. ■", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32894, "subject": "Mathematics (Multi-modal)", "question": "Let $M$ be the midpoint of side $BC$ of acute-angled triangle $ABC$, and let $E$ and $F$ be the feet of the perpendiculars from $M$ to sides $AC$ and $AB$, respectively. Points $X$ and $Y$ are such that $\\triangle CEY \\sim \\triangle XEC$ and $\\triangle XBF \\sim \\triangle BYF$ (the corresponding vertices of the triangles are in the same order as written), and points $E$ and $F$ are not located on line $XY$. Prove that $AM \\perp XY$.", "options": [], "answer": "Detailed solution", "solution": "We begin the proof with a lemma.\n**Lemma 1.** Triangle $ABC$ and point $X'$ are given such that $\\triangle BX'A \\sim \\triangle AX'C$ and $X'$ doesn't lie on line $BC$. The reflection of $A$ with respect to $X'$ lies on the circumcircle of $ABC$.\n*Proof.* We denote by $O$ the circumcenter of $ABC$ and by $AB, AC$ the midpoints of $M, N$, respectively. It is enough to show that $AX'O = 90^\\circ$. Observe that points $B$ and $C$ are on different sides of line $AX'$, otherwise from $\\angle AX'B = \\angle AX'C$ it follows that $X'$ would lie on $BC$. Therefore, based on the given similarity we can conclude that $\\angle X'MA = \\angle X'NC$. This implies that the circumcircle of $AMN$ passes through $X'$ and $O$, as evident. Thus, we have $\\angle AMO = \\angle AX'O = 90^\\circ$, which is equivalent to the desired result.\n---\n![](attached_image_1.png)\nNow, we proceed our proof. Let's denote the reflections of points $B$ and $C$ with respect to points $F$ and $E$ as $K$ and $L$, respectively. It is evident that $K$ and $L$ are the feet of the altitudes from vertices $C$ and $B$ in triangle $ABC$, and the quadrilateral $BKLC$ is cyclic. Moreover, according to the lemma, the quadrilaterals $CXLY$ and $BXKY$ are also cyclic. If these three circles are not congruent, their pairwise radical axes must be concurrent. These radical axes are $BK$, $CL$, and $XY$. Therefore, $XY$ must pass through point $A$. However, this is not possible since $X$ and $Y$ lie on different sides of the line $CE$, and considering the fact that $CXLY$ is cyclic, line $XY$ must intersect line $CL$. Furthermore, since $\\triangle ABC$ is an acute triangle, point $A$ lies on the extension of the line $CL$ from point $L$. Therefore, $XY$ cannot pass through point $A$. The resulting contradiction shows that the six points $C, X, L, K, Y$, and $B$ are concyclic; i.e., lie on a circle with center $M$.\nNote that points $X$ and $Y$ are on the same side of $BC$ (the segment $XY$ intersects the segments $BK$ and $CL$). Thus, $\\angle XCY$ is an acute angle. This implies that point $E$ is inside $\\triangle CXY$, as otherwise we would have\n$$\n180^\\{\\circ\\} \\leq \\angle EXC + \\angle EYC + \\angle XCY = 2\\angle XCY\n$$\nwhich is a contradiction. Therefore, we can write:\n$$\n\\angle XEY = \\angle EXC + \\angle EYC + \\angle XCY = 2\\angle XCY = \\angle XMY\n$$\n\nThus, quadrilateral XEMY is cyclic. Similarly, it can be proven that quadrilateral FMXY is also cyclic. Moreover, it is evident that points A, F, M, and E lie on a circle. So, the hexagon FMEXAY is cyclic. Since AM passes through the center of this circle and MY = MX, it follows that AX is also equal to AY. Finally, we conclude that $AM \\perp XY$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32895, "subject": "Mathematics (Multi-modal)", "question": "Find all functions $f : \\mathbb{R}^{+} \\rightarrow \\mathbb{R}^{+}$ such that for all $0 < x, y, z$ the following numbers are the side lengths of a triangle:\n\n$$\nx + f(y),\\ f(f(y)) + z,\\ f(f(z)) + f(x)\n$$\nand for every positive number $a$ there exists $0 < b$ such that $f(b) < a$.", "options": [], "answer": "f(x) = x for all x > 0", "solution": "Let $(x, y, z) \\rightarrow (f(y), y, f(y))$. Then the triangle inequalities give:\n$$\nf(f(f(y))) < 3f(y)\n$$\nIf $z$ is in the range of $f$, we obtain $f(f(z)) < 3z$. Now let $z$ be in the range of $f$.\n\nLet $(x, y, z) \\rightarrow (f(y), y, z)$. Then:\n$$\n2f(y) < 2f(f(y)) + f(f(z)) + z < 2f(f(y)) + 4z \\\\\n\\implies f(y) \\le f(f(y)) + 2z\n$$\nBy the problem's condition, we can conclude $z$ can get less than any positive number so\n$$\nf(y) \\le f(f(y))\n$$\nNow, let $y$ be in the range of $f$, it follows that\n$$\n(x, y, z) \\rightarrow (x, y, y) : f(x) < y + x + f(y) \\leq y + x + f(f(y)) < 4y + x.\n$$\nAnalogously, $f(x) \\leq x$. This implies $f(f(x)) \\leq f(x)$, while we had $f(x) \\leq f(f(x))$. Hence equality holds and $f(f(x)) = f(x)$. So if $y$ is in the range of $f$, we have $f(y) = y$ and\n$$\n(x, y, z) \\rightarrow (x, y, y) : x \\leq f(x) + 2y \\implies x \\leq f(x)\n$$\nFinally we can conclude $f(x) = x$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32896, "subject": "Mathematics (Multi-modal)", "question": "A family of some *three-element* subsets of a $1000$-element set is considered. We know that the union of every $5$ of the subsets has at least $12$ elements. Find the largest possible value for the number of these subsets.", "options": [], "answer": "444", "solution": "Consider the selected subsets as vertices of a graph and connect two subsets if they have a common element. We claim that each connected component has at most $4$ elements. Otherwise, the union of $5$ subsets of this connected component has at most $11 = 3 + 2 + 2 + 2 + 2$ elements, which contradicts the assumption of the problem.\n\nNow we show that the number of elements in a connected component is at least $\\frac{9}{4}$ times the number of elements in that connected component. In doing so, we consider several different cases:\n\nIf this connected component has four elements, consider the union of these four elements along with an arbitrary element of another connected component. The assumption of the problem implies that the union of these four elements must have at least $9$ elements.\n\nIf a connected component has three elements, consider the union of these three elements along with two elements of another connected component. Since the union of a connected component has at most five elements, this union must have at least $7$ elements.\n\nSimilarly, if a connected component has two elements, consider the union of these two elements along with three elements of another connected component. Thus, our claim is proved.\n\nNow since the unions of different connected components are distinct, if we have selected $n$ subsets, then we have $\\frac{9}{4}n \\le 1000$ and therefore we have at most $444$ selected subsets.\n\nNow, we will provide an example for $444$ subsets. The sets $\\{9k, 9k+1, 9k+2\\}$, $\\{9k+2, 9k+3, 9k+4\\}$, $\\{9k+4, 9k+5, 9k+6\\}$, $\\{9k+6, 9k+7, 9k+8\\}$ are an example of such sets. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32897, "subject": "Mathematics (Multi-modal)", "question": "*Arman* starts with a number and calculates the sum of the cubes of its digits. He then repeats this procedure with the resulting number, and continues this procedure. *Arman* considers a number to be 'good' if, after a certain number of steps, it reaches $1$. Prove that there exists an arithmetic progression of length $1402$ consisting of good numbers.", "options": [], "answer": "Detailed solution", "solution": "We define $T(n)$ to be the sum of the cubes of digits of $n$.\n\nIn this solution first we give an example of an arithmetic progression of length $1402$ such that all the numbers have the same non-zero digits with the same amount of recurrence. Then we will have an arithmetic progression of $a_1, \\dots, a_{1402}$ such that $T(a_1) = \\dots = T(a_{1402})$.\n\nBy adding some amount of ones on the left sides of these numbers we can keep them as an arithmetic progression and additionally convert all of them to a good number.\n\nNow let's find the promised progression. Let $A = \\frac{10^{\\varphi(7^m)} - 1}{7^m}$ for an $m > 10$. We claim that $A, 8A, 15A, \\dots, (1402 \\times 7 + 1)A$ all have the same digits with the same number of recurrence. We shall use a lemma here:\n\n**Lemma 1.** $10$ is a primitive root for every power of $7$.\n\n*Proof.* It is enough to see that $10$ is a primitive root modulo $7$ and $7^2$.\n\n**Lemma 2.** For every $1 \\le a \\le 7^m$, $\\text{gcd}(a, 7) = 1$, $aA$ represents the repeating part in the decimal representation of $\\frac{a}{7^m}$. Furthermore it is a cyclic permutation of the digits in $A$.\n\n*Proof.* Let $\\frac{a}{7^m} = 0.\\overline{a_1\\cdots a_s}$. We have:\n$$\n\\overline{a_1 \\cdots a_s} = a \\times \\frac{10^s - 1}{7^m}\n$$\nAs the left hand side is an integer, $7^m \\mid (10^s - 1)a$. Knowing $\\text{gcd}(a, 7) = 1$ and by Lemma 1 we have $s = \\varphi(7^m)$.\n$$\n\\overline{a_1 \\cdots a_s} = a \\times \\frac{10^{\\varphi(7^m)} - 1}{7^m} = aA\n$$\nAs $10$ is a primitive root modulo $7^m$ there exists $\\alpha$ such that:\n$$\na \\equiv 10^{\\alpha} \\pmod{7^m} \\implies \\frac{10^{\\alpha}}{7^m} - \\frac{a}{7^m} \\in \\mathbb{Z}\n$$\n$\\frac{a}{7^m}$ is less than $1$ resulting in $\\frac{a}{7^n} = \\{\\frac{10^\\alpha}{7^n}\\}$. However the repeating decimal of $\\{\\frac{10^\\alpha}{7^n}\\}$ is a cyclic permutation of the repeating decimal of $\\frac{1}{7^n}$ which is $A$ (that is a special case of the first part where $a = 1$).\nLet $n = \\sum_{j=0}^{k} a_j 10^j$, $T(n) = \\sum_{j=0}^{k} a_j^3$. Then, $T(n) = n \\pmod{3}$. So, $n$ is good only if $n = 1 \\pmod{3}$. We prove that there would be an arithmetic progression of common difference of $3$ of arbitrary length. Let $T^0(x) = x$, $T^m(x) = T(T^{m-1}(x))$. If $T^m(y) = x$ and $x$ is good then $y$ is good.\n\n**Lemma 1.** Let $x, y, t$ be positive integers and $10^t > y$. Then $T(10^t x + y) = T(x) + T(y)$.\n\n*Proof.* Obvious.\n\n**Lemma 2.** For any $a_1, \\dots, a_n$ and $r, y$ there are an integer $Y$ such that $T^r(Y + a_i) = y + T^r(a_i), \\ i = 1, \\dots, n$.\n\n*Proof.* $T^r(10^t l_r + a_i) = T^{r-1}(T(10^t l_r + a_i)) = T^{r-1}(10^t l_{r-1} + T(a_i)) = T^{r-2}(T(10^t l_{r-1} + T(a_i))) = T^{r-2}(10^t l_{r-2} + T^2(a_i)) = y + T^r(a_i)$.\n\nSince $T(n) = (9)^k \\log_{10} a$ we find that for all $a > M$ we have $T(a) < a$. So, if we apply the function $T$ repeatedly to $a$ we eventually reach a cycle with finite length or arrive at $1$. The number of cycles of $T$ is finite.\n\n**Claim 1.** *There exists a finite set $B$ such that*\n\ni For any positive integer $n$, $T^r(n) \\in B$ for some $r = 0$.\nii For any $d \\in B$, $T^l(d) = d$ for some integer $l = 0$.\n\nChoose the subset $D = \\{x \\in B : x = 1 \\pmod 3\\}$. Since for any integer $n$, $T(n) = n \\pmod 3$ we see that $n = 1 \\pmod 3$ if and only if $T^r(n) \\in D$, for some $r = 0$.\n\nIf for $d \\in D$ there is a positive integer $y$ such that $y + 1, y + d$ both are good numbers, then there exists a sequence $\\{l, l + 3, \\dots, l + 3(m - 1)\\}$ of good numbers of any length $m$. Let $D = \\{1, d_1, \\dots, d_k\\}$. We prove it by induction on $m$. Assume $m = 2$ then there exists an $r$ such that $T^r(4) \\in D$ thus $T^r(4) = 1$ or $d_i$ for some $1 = k = k$. By our assumption, there exists $y_i$ such that both $y_i + 1$ and $y_i+d_i$ are good numbers. According to above lemma, there is $Y$ such that $T^r(Y+1) = y_i+T^r(1) = y_i+1$ and $T^r(Y+4) = y_i+T^r(4) = y_i+d_i$ or $y_i+1$. Let $l = Y+1$ then both $l, l+P$ are good.\n\nNow, assume that the statement holds for $m = u - 1$ that is, there is an $l'$ such that $l', l' + 3, \\dots, l' + 3(u - 2)$ are all good. We consider two cases. If $l' + 3(u - 1)$ is happy take $l = l'$ and we are done. If $l' + 3(u - 1)$ is good then since $l' + 3(u - 1) \\equiv l' \\equiv 1 \\pmod 3$. Thus, there exists $r$ such that\n$$\nT^r(l' + 3(u-1)) = d_j,\n$$\nfor some $1 \\le j \\le k$. According to the properties of $D$ there exists a positive integer $v$ such that\n$$\nT^{r+v}(l' + 3(u-1)) = T^r(l' + 3(u-1)) = d_j.\n$$\nMeanwhile, there exists an $R$ such that $T^R(l' + 3(i - 1)) = 1$.\n\nFor any $1 \\le i \\le u - 1$, since $l', \\dots, l' + 3(u - 2)$ are all happy. Let $K \\equiv r \\pmod v$) satisfy $K > R$. Then, by above lemma, there is a positive integer $Y$ such that\n$$\nT^K(Y + l' + 3(i - 1)) = y_j + T^K(l' + 3(i - 1)) = y_j + 1, \\quad (1 \\le i \\le u - 1),\n$$\nmoreover,\n$$\nT^K(Y + l' + 3(u-1)) = y_j + T^K(l' + 3(u-1)) = y_j + d_j, \\quad (1 \\le i \\le u-1).\n$$\nThat is to say, $Y + l' + 3(i - 1)$, ($1 \\le i \\le u$) are all good. Taking $l = Y + l'$ then $l, \\dots, l + 3(u - 1)$ are all happy. We are done.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32898, "subject": "Mathematics (Multi-modal)", "question": "There are $n \\ge 3$ points in a plane. No three points are collinear. Prove one can choose an ordering $P_1, P_2, \\dots, P_n$ for these points so that for all $1 < i < n$ the angle $\\angle P_{i-1}P_iP_{i+1}$ is acute.", "options": [], "answer": "Detailed solution", "solution": "We prove a stronger statement; there is an ordering $P_1, P_2, \\dots, P_n$ such that for every $1 \\le i < n$, the angle $\\angle P_{i-1}P_iP_{i+1}$ is acute.\n\nAssume that $P_nP_{n-1}$ is the longest segment between any two of these points. Now we start with $P_{n-1}$ and at each step we choose a point $P$ such that $P_i, P$ has the longest distance between the remaining points as $P_{i-1}$.\n\nWe claim that this order has the desired property. Assume the contrary, the angle $\\angle P_{i-1}P_iP_{i+1}$ is greater than $\\frac{\\pi}{2}$, then on the triangle $P_{i-1}P_iP_{i+1}$, $P_{i-1}P_{i+1}$ is the longest edge. In particular, it is longer than $P_iP_{i+1}$, this contradicts the way we choose $P_i$. So all these angles are acute as desired. ■", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32899, "subject": "Mathematics (Multi-modal)", "question": "We call a natural number $m$ \"interesting\", if for all natural numbers $1 \\le n \\le m$, we can write $n$ as the sum of distinct divisors of $m$. Prove that there are infinitely many interesting numbers of the form $k^2 + k + 2022$.", "options": [], "answer": "Detailed solution", "solution": "**First solution**\nWe shall firstly prove the following lemmas,\n\n**Lemma 1.** If $x$ is interesting and $y < x$ then $xy$ is also interesting.\n*Proof.* If $n < xy$, by division algorithm we have $n = yq + r$ where $q < x$, $r < y$. Now, we can write $q = \\sum d_i$ and $r = \\sum d'_i$ where $\\{d_i\\}$ and $\\{d'_i\\}$ are distinct divisors of $x$. Now $d_i y$, $d'_i$ are distinct divisors of $xy$ and $n = \\sum d_i y + \\sum d'_i$.\n\n**Lemma 2.** For $i \\in \\mathbb{N}$, $2^i$ is an interesting number.\n*Proof.* It is clear by writing $n < 2^i$ in the basis 2.\n\nLet $P(x) = x^2 + x + 2022$. If $n$ is an interesting number and $n | P(x_0)$, then $n | P(r)$ where $r$ is the remainder of $x_0$ modulo $n$. If $n > 2022$,\n$$\nP(r) \\le (x-1)^2 + x - 1 + 2022 < x^2,\n$$\nwhich implies that $P(r)$ is an interesting number. So, it is enough to find a sequence $n_i$ so that $2^i | P(n_i)$. To do this we use induction, assume that $2^i | P(n_i)$ then\n$$\nP(n_i + k 2^i) = (n + k 2^i)^2 + n_i + k_i + 2022 \\equiv P(n_i) + k 2^i \\pmod{2^{i+1}}\n$$\nSo it is enough to set $k = -\\frac{P(n_i)}{2^i}$.\n\n\n**Second solution**\nHere we provide a slightly different solution. Let $p_1 < p_2 < \\dots < p_k$ be distinct prime numbers and let $\\alpha_1, \\dots, \\alpha_k$ be non-negative integers. If $m = p_1^{\\alpha_1} \\dots p_t^{\\alpha_t}$, $m$ is an interesting number if and only if $p_1 = 2$ and $p_j - 1 \\le \\sigma(p_1^{\\alpha_1} \\dots p_{j-1}^{\\alpha_{j-1}})$ for $1 < j \\le k$. Let $N_M$ be the total number of integers $n$ such that can be written in the form $\\sum d$ where $d$ are distinct divisors of $M$. It is clear that $N_M \\le \\sigma(M)$. For a given set $S$ of integers $M$ define $S^*$ to be the subset of $S$ containing integers such that $\\sigma(M) - N_M$ is minimal.\n\nLet $M$ be an interesting number and $p$ be a prime number such that $\\gcd(p, M) = 1$ then $M_1 = p^k M$ is interesting if and only if $p \\le \\sigma(M) + 1$.\n\nThe smallest divisor of $M_1$ not a divisor of $M$ is $p$. If $p > \\sigma(M) + 1$ then $n = 1 + \\sigma(M)$ defies the representation with respect to $M_1$. If $p \\le \\sigma(M) + 1$, we show by induction that $p^k \\le \\sigma(p^{k-1} M) + 1$. The base, i.e., $k=1$ is true. Using the induction hypothesis on $k$, we have\n$$\np^{k+1} \\le p \\sigma(p^{k-1} M) + p \\le p \\sigma(p^{k-1} M) + \\sigma(M) + 1 = \\sigma(p^k M) + 1.\n$$\nThis shows that $M_1 = p^k M$ is interesting. Considering the intervals from $r p^k$ to $r p^k + \\sigma(p^{k-1} M)$, $r = 0, 1, \\dots, \\sigma(M)$. It follows that no integer in the range $1 \\le n \\le \\sigma(M_1)$ is omitted from all these intervals. For the one hand, because $p^k \\le \\sigma(p^{k-1} M) + 1$ we have $(r+1) p^k \\le r p^k + \\sigma(p^{k-1} M) + 1$. Hence, intervals are overlapping or contiguous. On the other hand the intervals include $1$ and $p^k \\sigma(M) + \\sigma(p^{k-1} M) = \\sigma(M_1)$. Thus, such $n$ can be written as\n$$\nn = r p^k + s, \\quad 0 \\le r \\le \\sigma(M), \\quad 0 \\le s \\le \\sigma(p^{k-1} M).\n$$\nSince $M$, $p^{k-1} M$ are interesting we can write $r = \\Sigma d$ where $d$ are distinct divisors of $M$ and we can write $s = \\Sigma D$ where $D$ are distinct divisors of $p^{k-1} M$. That is, $n = \\Sigma d' + \\Sigma D$. Where $d' = p^k d$ are distinct from $D$ because of involving $p^k$. While both $d'$, $D$ dividing $M_1$.\n\nIf $m$ is interesting and $1 \\le n \\le 1 + \\sigma(m)$ then $mn$ is interesting. In part, $mn$ is interesting for all $1 \\le n \\le 2m$. Since $m-1$ is sum of divisors of $m$, we have $m + (m-1) \\le \\sigma(m)$.\n\nLet $f(n) = n^2 + b n + c$ then $f(n + f(n)) = f(n) f(n + 1)$. Notice that $f(n+1) = f(n) + 2n + b + 1$ and $f(n) - 2n - b - 1 = n(n-2) + b(n-1) + c - 1 \\ge 0$. If $n \\ge 2$ is an integer with $f(n)$ an interesting number then $f(n + f(n))$ would also be interesting. Because, $f(n+1) \\le 2 f(n)$.\n\nFinally, we need to find at least one interesting number. Indeed, since $2024 = 8 \\times 11 \\times 23$, we find that $8$ and $8 \\times 11$ are both interesting. Further, since $2 \\times 8 \\times 11 \\ge 23$ it follows that $2024 = 8 \\cdot 11 \\cdot 23$ is also interesting. Now, letting $f(n) = n^2 + n + 2023$ take $a_1 = 1$ and $a_{i+1} = a_i + f(a_i)$, $i = 1, 2, \\dots$ and according to the above facts, we are done. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32900, "subject": "Mathematics (Multi-modal)", "question": "In a $n \\times n$ table some of the cells are black and the rest of them are white. *Alice* and *Bob* each have a copy of this table and trying to make the whole table red in the following ways:\nIf Alice finds a cell that is the only black cell in its row, She changes the color of all the cells in its column to red. If Bob finds a cell that is the only black cell in its column, He changes the color of all the cells in its row to red.\nProve that Alice can make the whole table red if and only if Bob can.", "options": [], "answer": "Detailed solution", "solution": "If a cell is the only black cell in its row and Alice uses it to make its column red we call that cell special. Because after using a special set every cell in its $n$ column becomes red, now two special cells are in a column. On the other hand, no two special cells are in a row. Therefore, if Alice can make the table red, the special cells form a transversal.\n\nNote that swapping the rows with each other or columns with each other does not affect the ability of Alice and Bob to make the table red. So we can assume that the first special cell that Alice choose is $(1,1)$, the second is $(2,2)$, and so on. This means that all the cells above the diagonal were white at the beginning. Now Bob can start from $(n, n)$, then $(n-1, n-1)$ and so on until the whole table becomes red. Conversely, by symmetry, if Bob can make the table red Alice can also make the table red.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32901, "subject": "Mathematics (Multi-modal)", "question": "Given triangle $ABC$ and line $\\ell$ passing through point $A$, point $X$ on $\\ell$ is considered to be variable. Circles $\\omega_b$ and $\\omega_c$ pass through both of the points $A$ and $X$ and are tangent to sides $AB$ and $AC$, respectively. Tangents $BY$ and $CZ$ are drawn from vertices $B$ and $C$ to circles $\\omega_b$ and $\\omega_c$ respectively. Prove that as $X$ varies, the circumcircle of triangle $ZXY$ would be passing through two fixed points.", "options": [], "answer": "Detailed solution", "solution": "Let $D$ be intersection of $\\ell$ and $BC$. Let $P$ and $Q$ be the reflections of $A$ with respect to $BC$ and $D$, respectively. We claim that the circumcircle of $XYZ$ passes through $P$ and $Q$.\nSince $PQ \\parallel BC$, we have $\\angle XQP = \\angle XDB$, in line with $BX = BY = BP$, we have:\n$$\n\\begin{aligned}\n\\angle PYA &= \\frac{1}{2} \\angle PBA = \\angle ABC \\\\\n\\implies \\angle XYP &= \\angle AYP - \\angle AYX = \\angle ABC - \\angle DAB = \\angle ADB = \\angle XQP\n\\end{aligned}\n$$\nSo $Y$ lies on the circumcircle of $XPQ$. Similarly, $Z$ also lies on this circle, and so we are done.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32902, "subject": "Mathematics (Multi-modal)", "question": "a sequence $a_1, a_2, \\dots$ of nonzero integer numbers is given such that for all $n \\in \\mathbb{N}$, if $a_n = 2^\\alpha k$ where $k$ is an odd integer and $\\alpha$ is a non-negative integer, then:\n$$\na_{n+1} = 2^\\alpha - k.\n$$\nProve that if this sequence is periodic, then for all $n \\in \\mathbb{N}$ we have:\n$$\na_{n+2} = a_n.\n$$\n(The sequence $a_1, a_2, \\dots$ is periodic iff there exists a natural number $d$ such that for all $n \\in \\mathbb{N}$ we have $a_{n+d} = a_n$.)", "options": [], "answer": "Detailed solution", "solution": "First we claim that:\n$$\n\\forall n \\in \\mathbb{N},\\ a_{n+1} \\equiv a_n + 1 \\pmod{2}\n$$\nAssume that $a_n = 2^\\alpha k$ where $k \\equiv 1 \\pmod{2}$ and $\\alpha \\in \\mathbb{Z}_{\\ge 0}$. So we have:\n$$\na_n + a_{n+1} = 2^\\alpha (k+1) - k \\equiv 1 \\pmod{2}\n$$\nFrom the claim we can get that if $\\{a_n\\}_{n \\in \\mathbb{N}}$ is periodic, with a period $d$, then $d$ is an even number.\n\nFor any even term in $\\{a_n\\}$, $a_s = 2^\\alpha k\\ (\\alpha \\ge 1)$, we have:\n$$\na_{s+1} = 2^\\alpha - k,\\quad a_{s+2} = 1 - a_{s+1} = k + 1 - 2^\\alpha\n$$\nThus we have:\n$$\n|a_{s+2}| = |k+1-2^\\alpha| \\le (2^\\alpha - 1) + |k| \\le 2^\\alpha |k| = |a_s|\n$$\n(The last inequality holds because: $|k-1|(2^\\alpha - 1) \\ge 0$.)\n\nWhich implies that $|a_s| \\ge |a_{s+d}|$. So all the above inequalities take the equal sign. We obtain $k \\le 0,\\ |k| = 1 \\Rightarrow k = -1 \\Rightarrow a_s = a_{s+2} = \\dots = -2^\\alpha,\\ a_{s+1} = a_{s+3} = \\dots = 2^\\alpha + 1$.\n\nSo $\\forall n \\in \\mathbb{N},\\ a_n = a_{n+sd} = a_{n+sd+2} = a_{n+2}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32903, "subject": "Mathematics (Multi-modal)", "question": "The game of **Hive** is played on a regular hexagonal grid (as shown in the figure) by 3 players. The grid consists of $k$ layers (where $k$ is a natural number) surrounding a regular hexagon, with each layer constructed around the previous layer. The figure below shows a grid with 2 layers.\n\nThe players, *Ali*, *Shayan*, and *Sajad*, take turns playing the game. In each turn, a player places a tile, similar to the one shown in the figure, on the empty cells of the grid (rotation of the tile is also allowed). The first player who is unable to place a tile on the grid loses the game. Prove that two players can collaborate in such a way that the third player always loses.\n\n![](attached_image_1.png)\n\n![](attached_image_2.png)", "options": [], "answer": "Detailed solution", "solution": "The first two players can play in a way that the third one always loses. In the first two moves the first and the second player fill the second layer like below.\n\n![](attached_image_3.png)\n\nFrom then, they rotate every piece that the third person places on the board, $120^\\circ$ and $240^\\circ$ respectively around the center and put their pieces there.\n\nNote that we can group the hexagons into sets of 3 elements each containing a hexagon and its $120^\\circ$, $240^\\circ$ rotations around the center of the board. Every time the third player puts a piece, he occupies 3 hexagons of three different groups. Then our strategy assures that the first and the second player will occupy the other 6 hexagons in these groups. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32904, "subject": "Mathematics (Multi-modal)", "question": "Find all injective functions $f : \\mathbb{Z}^{\\ge 0} \\rightarrow \\mathbb{Z}^{\\ge 0}$ such that for all $n \\in \\mathbb{N}$ and every $(n+1)$-tuple of real numbers like $(a_0, \\dots, a_n)$ where not all of them are equal to zero, the polynomial $\\sum_{i=0}^{n} a_i x^i$ has a real root if and only if the polynomial $\\sum_{i=0}^{n} a_i x^{f(i)}$ has a real root.", "options": [], "answer": "All functions of the form f(n) = c n for n ≥ 0, where c is an odd positive integer.", "solution": "As $P(x) = 1$ has no real root, $x^{f(0)}$ has also no real root. So $f(0) = 0$.\nNow considering $x^i + 1$, it has a real root if and only if $i$ is odd. So $i$ and $f(i)$ have the same parity.\nFor even $n$ consider the following polynomial in which $a, \\epsilon$ are positive numbers:\n$$\nP(x) = x^n + n a^{n-1} x + (n-1) a^n + \\epsilon\n$$\nThis polynomial has no real root, indeed applying **AM-GM** inequality yielding\n$$\nx^n + a^n + \\cdots + a^n \\ge n x a^{n-1} |x|.\n$$\nThen by the problem's condition, the polynomial\n$$\nQ(x) = x^{f(n)} + n a^{n-1} x^{f(1)} + (n-1) a^n + \\epsilon\n$$\nhas no real root. Thus $q(-a^{\\frac{1}{f(1)}})$ should be positive yielding:\n$$\na^{\\frac{f(n)}{f(1)}} + \\epsilon > a^n \\implies a^{\\frac{f(n)}{f(1)}} \\ge a^n\n$$\nBy putting $a$ greater and less than 1 we get $f(n) = n f(1)$.\nFor odd $n$ consider the polynomial $(x^n + a)^2 + \\epsilon$ for a positive $a$ and $\\epsilon$. This polynomial is obviously positive so\n$$\nx^{2n f(1)} + 2a x^{f(n)} + a^2 + \\epsilon > 0\n$$\nBy putting $x = -a^{\\frac{1}{f(n)}}$ we have:\n$$\na^{\\frac{2n f(1)}{f(n)}} + a^2 + \\epsilon > 2a^2 \\implies a^{\\frac{2n f(1)}{f(n)}} \\ge a^2 \\implies f(n) = n f(1).\n$$\nThis finishes our proof.", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 32905, "subject": "Mathematics (Multi-modal)", "question": "Consider the sequence $(a_n)_{n \\in \\mathbb{N}}$ where $a_1 = 2$ and for $n \\ge 1$ we have\n$$\na_{n+1} = \\left(1 + \\frac{1}{n}\\right)^n a_n.\n$$\n\nProve that there are infinitely many $n$ such that $\\frac{1}{n+1}a_n a_{n-1} \\dots a_1$ is a perfect square of a natural number.", "options": [], "answer": "Detailed solution", "solution": "By induction, we prove $a_n = \\frac{2n^n}{n!}$. The base is clear, if the hypothesis holds true for $n$, we have\n$$\na_{n+1} = \\left(1 + \\frac{1}{n}\\right)^n a_n = 2 \\cdot \\left(\\frac{n+1}{n}\\right)^n \\frac{n^n}{n!} = 2 \\cdot \\frac{(n+1)^n}{n!} = 2 \\cdot \\frac{(n+1)^{n+1}}{(n+1)!},\n$$\nnow we have:\n$$\n\\begin{aligned}\n\\frac{a_n a_{n-1} \\cdots a_1}{n+1} &= \\frac{2^n}{n+1} \\frac{n^n \\cdot (n-1)^{n-1} \\cdots 2^2 1^1}{n! (n-1)! \\cdots 2! 1!} \\\\\n&= \\frac{2^n}{n+1} \\cdot \\frac{n(n-1)}{1! \\cdot 2!} \\cdots \\frac{n(n-1) \\cdots (n-k-1)}{k!} \\cdots \\frac{n!}{n!} \\\\\n&= \\frac{2^n}{n+1} \\binom{n}{0} \\binom{n}{1} \\cdots \\binom{n}{n-1} \\binom{n}{n},\n\\end{aligned}\n$$\nnote that if $n$ is odd, then\n$$\n\\binom{n}{0} \\binom{n}{1} \\cdots \\binom{n}{n-1} \\binom{n}{n} = \\binom{n}{0} \\binom{n}{1} \\cdots \\binom{n}{\\frac{n-1}{2}},\n$$\nis a perfect square. So it is enough to choose an odd $n$ such that $\\frac{2^n}{n+1}$ is a perfect square. For this, we set $n = 2^k - 1$ for an odd $k$, then $\\frac{2^n}{n+1} = 2^{2^k-k-1}$ is a perfect square as desired.\nAs in the first solution, we have\n$$\n\\frac{a_n a_{n-1} \\cdots a_1}{n+1} = \\frac{2^n}{n+1} \\frac{n^n \\cdot (n-1)^{n-1} \\cdots 2^2 1^1}{n! (n-1)! \\cdots 2! 1!} = \\frac{2^n}{n+1} A_n\n$$\nEach natural number $1 \\le i \\le n$ is repeated $n-i+1$ times in the denominator of $A_n$. In the numerator of $A_n$ $i$ appears with the power $i$ so we can write\n$$\nA_n = \\prod i^{2i-n-1}\n$$\nwhich means that if $n$ is odd and $A_n$ is natural then it is a perfect square. So it is enough to prove that for infinitely many odd $n$, $A_n$ is a natural number. Assume that $\\nu_p(n) = k$, then we have\n$$\n\\nu_p(A) = \\sum_{j=1}^{k} 2p^j(1 + 2 + \\cdots + \\lfloor \\frac{n}{p^j} \\rfloor) - (n+1) \\sum_{j=1}^{k} k \\lfloor \\frac{n}{p^j} \\rfloor\n$$\nWe want to show that $\\nu_p(A)$ is non-negative. For $1 \\le j \\le K$ we have to show that\n$$\n\\begin{align*}\n2p^j(1 + 2 + \\cdots + \\lfloor \\frac{n}{p^j} \\rfloor) &\\ge (n+1)\\lfloor \\frac{n}{p^j} \\rfloor \\\\\n\\iff p^j \\lfloor \\frac{n}{p^j} \\rfloor (\\lfloor \\frac{n}{p^j} \\rfloor + 1) &\\ge (n+1) \\frac{n}{p^j} \\\\\n\\iff p^j (\\lfloor \\frac{n}{p^j} \\rfloor + 1) &\\ge (n+1)\n\\end{align*}\n$$\nBy division algorithm, $n = p^j q + r$ for $0 \\le r < p^j$. Hence we have to show that $p^j(q+1) \\ge p^j q + r + 1 \\Leftrightarrow p^j \\ge r + 1$ which is clear. The rest of the proof would be analogous to the first solution. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32906, "subject": "Mathematics (Multi-modal)", "question": "Suppose that $2 \\le n$ and $a_1, \\dots, a_n$ are natural numbers such that $\\text{gcd}(a_1, \\dots, a_n) = 1$. Find all strictly increasing functions $f: \\mathbb{Z} \\to \\mathbb{R}$ with the following property:\n$$\n\\forall x_1, \\dots, x_n \\in \\mathbb{Z} : f\\left(\\sum_{i=1}^{n} x_i a_i\\right) = \\sum_{i=1}^{n} f(x_i a_i).\n$$", "options": [], "answer": "Detailed solution", "solution": "Let $D_i = \\text{gcd}(a_1, \\dots, a_{i-1}, a_{i+1}, \\dots, a_k)$ ($i = 1, \\dots, k$). Then $f(x) = Cx + f_1(x) + \\dots + f_k(x)$ such that $f_1, \\dots, f_k$ are periodic of period $D_i$ and $f_i(0) = 0$. Let $P = a_1 \\dots a_k$ then if $f(P) = 0$ it follows that for all $i \\neq j$ and $m \\ge 0$ we have $f(ma_i a_j) = 0$. Indeed, letting $M = f(a_1 a_2)$ then $f(2a_1 a_2) = 2M$, $f(3a_1 a_2) = 3M$. By induction we find $f(ma_1 a_2) = mM$. Choose $m = a_2 \\dots a_k$ we are done.\nLet $g(x) = f(x) - \\frac{x f(P)}{P}$ it follows that $g(P) = 0$ and therefore, for all $i \\neq j$, $m \\ge 0$ we have $g(ma_i a_j) = 0$. Writing $C = \\frac{f(P)}{P}$ it follows that $f(x) = Cx + g(x)$.\nIf for a given $i$ we have $\\sum_{j=1}^{k} u_j a_j \\equiv \\sum_{j=1}^{k} v_j a_j \\pmod{D_i}$ with $u_i \\ge 0$, $v_i \\ge 0$ then $g(u_i a_i) = g(v_i a_i)$. It suffices to prove it for $i = 1$. Indeed, the congruence implies that $u_1 a_1 \\equiv v_1 a_1 \\pmod{D_1}$, since $\\text{gcd}(a_1, D_1) = 1$ we conclude that $u_1 \\equiv v_1 \\pmod{D_1}$. Since $D_1 = \\text{gcd}(a_2, \\dots, a_k)$, write\n$$\nv_1 - u_1 = \\sum_{j=2}^{k} w_j a_j\n$$\nwhere $w_j = c_j - c'_j$, $c_j, c'_j \\ge 0$. Thus,\n$$\nu_1 + \\sum_{j=2}^{k} c_j a_j = v_1 + \\sum_{j=2}^{k} c'_j a_j.\n$$\nMultiplying both sides by $a_1$ and taking $g$ from both sides yields\n$$\ng(u_1 a_1) + \\sum_{j=2}^{k} g(c_j a_1 a_j) = g(v_1 a_1) + \\sum_{j=2}^{k} g(c'_j a_1 a_j).\n$$\nThus, $g(u_1 a_1) = g(v_1 a_1)$.\nFor every $x = \\sum a_i u_i \\in S$ we define a function $f_1(x) = g(a_1 u_1)$. If $x \\in S$ can be written $x = \\sum a_i u_i$ and also $x = \\sum a_i u'_i$ then $g(a_1 u_1) = g(a_1 u'_1)$. Moreover, if $x, z$ both are in $S$ such that $x \\equiv z \\pmod{D_1}$ then we have $f_1(x) = f_1(z)$. We finally observe that every residue class $\\mod D_1$ contains elements in $S$, in fact already elements of the subset $a_1 u_1$ ($u_1 \\ge 0$), because $\\text{gcd}(a_1, D_1) = 1$. We may therefore extend the definition of $f_1(x)$ to all integers obtaining a function having the period $D_1$. Similarly, we define a function $f_i(x)$ ($i = 1, \\dots, k$) over all integers, having the period $D_i$ with the property that $f_i(x) = g(a_i u_i)$ if $x = \\sum a_i u_i \\in S$.\nAnd, in particular $f_i(0) = 0$. If $x = \\sum a_i u_i \\in S$ then the functional equation gives\n$$\ng(x) = g(\\sum a_i u_i) = \\sum g(a_i u_i) = \\sum f_i(x).\n$$\nHence, $g(x) = f_1(x) + \\dots + f_k(x)$. We now use this to extend the definition of $g(x)$ to all integers $x$. Let us show that this implies $g(a_i u_i) = f_i(a_i u_i)$. Indeed, if $u_i \\ge 0$ we have nothing to do. If $u_i < 0$ then we shall have $g(a_i u_i) = \\sum f_i(a_i u_i) = f_i(a_i u_i)$. It follows that $g(x)$ satisfies the unrestricted equation\n$$\ng(\\sum a_i u_i) = \\sum g(a_i u_i), \\quad u_i \\in \\mathbb{Z}.\n$$\nThe converse is also easy. Indeed, the periodic function $f_i(x)$ depends on $D_i - 1$ arbitrary parameters and therefore the general solution depends on $1 + \\sum (D_i - 1)$ arbitrary parameters. So, if all $D_i = 1$ the function is $f(x) = Cx$.\nThe least slope among the slopes of the sides of the polygonal graph of the function $f_i(x)(x \\in \\mathbb{Z})$ is given by $-m_i = \\min_{x \\in \\mathbb{Z}} \\Delta f_i(x)$, where $\\Delta f_i(x) = f_i(x+1) - f_i(x)$. Evidently, $m_i \\ge 0$. If we choose $C \\ge \\sum m_i$ then $f(x)$ is certainly non-decreasing since for all $x: \\Delta f(x) = C + \\sum \\Delta f_i(x) \\ge C - \\sum m_i \\ge 0$.\nWe then prove that the solution of the above functional equation is non-decreasing if and only if $\\sum_{i=1}^k m_i \\le C$. Indeed, let the minimum of $\\Delta f_i(x)$ is reached at $x \\equiv c_i \\pmod{D_i}$ so that $\\Delta f_i(c_i) = -m_i$ ($i = 1, \\dots, k$). Since $D_i$ are pair-wise coprime. By the **CRT** the system $x \\equiv c_i \\pmod{D_1}$ has a solution $t$. Then, $0 \\le \\Delta f(t) = C + \\sum \\Delta f_i(t) = C - \\sum_{i=1}^k m_i$. ■", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32907, "subject": "Mathematics (Multi-modal)", "question": "*Ali* has $100$ cards with numbers $1, 2, \\ldots, 100$. Ali and *Amin* play a game together. In each step, Ali firstly chooses a card from the remaining cards and Amin decides to pick that card for himself or throw it away. In the case that he picks the card, he can't pick the next card chosen by Amin, and he has to throw it away. This procedure continues until when there is no remaining card for Ali. Amin wants to pick cards in a way that the sum of the numbers of his cards is maximized and Ali wants to choose cards in a way that the sum of the number of Amin's cards is minimized. Find the largest value of $k$ such that Amin can play in a way that guarantees the sum of the number of his cards will at least be equal to $k$.", "options": [], "answer": "1716", "solution": "First, note that Ali can adopt the following strategy: He shows the cards in order until Amin picks a card. In the next step, Ali shows the largest card that has not been shown yet, and in the next step, he again starts with the smallest card that has not been shown yet and continues this process. If Amin chooses $k$ cards using this strategy, then the sum of numbers on these cards will be at most:\n$$\nf(k) := (100 - k + 1) + (100 - k + 2) + \\dots + (100 - 2k + 2)\n$$\nWe claim that for each $k$ we have $f(k) \\le f(34)$. Note that $f(k) = \\frac{(200-3k+3)k}{2}$ and since the minimum of this function of degree $2$ occurs at $k = \\frac{f(33)}{3}$, it suffices to compare $f(33), f(34)$, and $f(33)$ is greater. Therefore, Ali can ensure that the sum of Amin's cards is at most $f(33)$. On the other hand, Amin can ensure that the sum of his cards reaches $f(33)$. Having done this, Amin never picks a card with a number less than or equal to $35$, and whenever possible, he picks cards with larger numbers. In this case, Amin can take $33$ cards such that their sum is at least $f(33)$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32908, "subject": "Mathematics (Multi-modal)", "question": "Prove that among any 9 distinct real numbers, there exist 4 distinct numbers $a$, $b$, $c$, $d$ such that\n$$\n(ac + bd)^2 \\geq \\frac{9}{10}(a^2 + b^2)(c^2 + d^2).\n$$", "options": [], "answer": "Detailed solution", "solution": "According to the Lagrange's identity, we have $(a^2 + b^2)(c^2 + d^2) = (ac + bd)^2 + (ad - bc)^2$. So we have to prove that:\n$$\n(ac + bd)^2 \\geq 9(ad - bc)^2 \\iff |ac + bd| \\geq 3|ad - bc|\n$$\nFirst, we check the case where none of the numbers are zero. By dividing both sides by $|ac|$, we have:\n$$\n|1 + \\frac{b}{a} \\cdot \\frac{d}{c}| \\geq 3|\\frac{d}{c} - \\frac{b}{a}|\n$$\nSuppose $a, b, c$, and $d$ have the same sign. In this case:\n$$\n|1 + \\frac{b}{a} \\cdot \\frac{d}{c}| \\geq 1\n$$\nIt suffices to prove that:\n$$\n|\\frac{d}{c} - \\frac{b}{a}| \\leq \\frac{1}{3}\n$$\nNow, if we put the positive numbers in set $A$ and the negative numbers in set $B$, each of them will give us $\\lfloor \\frac{|A|}{2} \\rfloor$ and $\\lfloor \\frac{|B|}{2} \\rfloor$ pairs of numbers that have the same sign. So, in total, we will have 4 pairs of numbers that have the same sign (because one of the sets has an even number of elements and the other has an odd number of elements). For each pair $(a_i, b_i)$, we choose a fraction from among $\\frac{a_i}{b_i}$, $\\frac{b_i}{a_i}$ that doesn't exceed one. Now we have 4 fractions between zero and one, so according to the pigeonhole principle, the distance between two of them is less than $\\frac{1}{3}$, and the result follows.\n\nIf one of the numbers, like $a$, is zero, then just before the division, by proof by contradiction we have $b$ is non zero and:\n$$\n|\\frac{d}{c}| \\geq \\frac{1}{3}\n$$\nSimilar to the previous case, it is possible to find 3 pairs of the same sign where the assigned fractions are between $\\frac{1}{3}$ and 1, and again according to the *pigeonhole principle*, a difference between two fractions will be less than $\\frac{1}{3}$. The result follows.\nWe shall prove a more strong argument; We choose 8 numbers from these nine numbers and denote them by $x_1, y_1, \\dots, x_4, y_4$. We arranged them in the way that $|x_i| \\leq |y_i|$ and $x_i, y_i$ have the same sign. Consider four points $u_i = (|x_i|, |y_i|)$ and the angle they make with the origin would be in the interval $[0, \\frac{\\pi}{4}]$. Thus, the angle between two of them, say $u_i, u_j$ is less that or equal to $\\frac{\\pi}{12}$. Hence, putting $a = x_i, b = y_i$ and $c = x_j, d = y_j$ it follows that\n\n$$\n|ac + bd| = |x_i x_j + y_i y_j| = u_i \\cdot u_j = |u_i| \\cdot |u_j| \\cos \\theta.\n$$\nThat is, $(ac + bd)^2 \\ge (a^2 + b^2)(c^2 + d^2)\\cos^2 \\frac{\\pi}{12} = \\frac{2+\\sqrt{3}}{4}(a^2 + b^2)(c^2 + d^2)$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32909, "subject": "Mathematics (Multi-modal)", "question": "Triangle *ABC* is an acute-angled triangle with orthocenter *H*. Point *P* is inside triangle $BHC$ such that $3\\angle HBC = \\angle HPC$ and $3\\angle HCB = \\angle HPB$. Denote by *X* and *Y*, the reflection of *P* with respect to $BH$ and $CH$, respectively. If *S* is the circumcenter of triangle $AXY$, prove that $\\angle CAP = \\angle BAS$.", "options": [], "answer": "Detailed solution", "solution": "Let's assume that the feet of $A$, $B$, $C$ correspond to points $D$, $E$, $F$, respectively. We apply an inversion with radius $\\sqrt{AH \\cdot AD}$. In this inversion, points $D$, $H$, as well as $F$, $B$, and $E$, $C$, interchange with each other. We aim to prove that point $P$ goes to the nine point center of $ABC$ ($N_9$). We use directed angles modulo $180^\\circ$. Let's suppose that the image of $P$ after inversion is $P'$ and $M$, $N$ be the midpoints of the sides $AC$ and $AB$.\n\n![](attached_image_1.png)\n\n$$\n\\angle CPH + \\angle HAC = \\angle DP'E = 4\\angle CBH\n$$\n$M$ is the center of the cyclic quadrilateral $ABDE$, so:\n$$\n\\angle DME = 2\\angle HBC\n$$\nAlso $N_9$ is the circumcenter of $MDE$. Which implies:\n$$\n\\angle DN_9E = 2\\angle DME = \\angle DP'E\n$$\nIn the same way we obtain:\n$$\n\\angle FN_9D = \\angle FP'D\n$$\nFinally we can conclude $P' = N_9$.\n\nNow we will find the images of $X$, $Y$ after inversion. Let $X'$, $Y'$ be these images. As $CH$ is the perpendicular bisector of $PY$, after the inversion the circumcircle of $ADE$ is the $A$-Apollonian circle in the triangle $AY'N_9$. The center of this circle is $M$ so $M$, $N_9$, $Y'$ are collinear and:\n$$\nMA^2 = MN_9 \\cdot MY'\n$$\n$AS$ becomes the $A$-altitude in $AX'Y'$.\n\n![](attached_image_2.png)\n\nWe claim $ABC \\sim AY'X'$. First we calculate the ratio $\\frac{AY'}{AX'}$.\n$$\nAMN_9 \\sim Y'MA \\implies \\frac{AY'}{AN_9} = \\frac{AM}{MN_9}\n$$\nSimilarly\n$$\n\\frac{AN_9}{AX'} = \\frac{NN_9}{AN} \\implies \\frac{AY'}{AX'} = \\frac{AM}{AN} \\cdot \\frac{NN_9}{MN_9} = \\frac{AB}{AC}\n$$\nThen we calculate the angle $X'AY'$.\n$$\n\\angle X'AY' = \\angle Y'AB + \\angle X'AC - \\angle BAC = \\angle AN_9M + \\angle AN_9N - \\angle BAC = \\angle BAC.\n$$\nHence the claimed similarity is proven. Now let the line perpendicular to $X'Y'$ be $\\ell$. We use again directed angles modulo $180^\\circ$.\n$$\n\\begin{aligned}\n\\angle \\ell, AC &= \\angle AX', AC = \\angle ACB - 90^\\circ + \\angle NN_9A \\\\\n&= \\angle ACB + \\angle NN_9, AC + \\angle AC, AN_9 - 90^\\circ = \\angle BAC + \\angle CAN = \\angle BAN_9\n\\end{aligned}\n$$\nThe final equality proves the desired result. ■", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32910, "subject": "Mathematics (Multi-modal)", "question": "Suppose $2n$ subsets of the set $\\{0, 1, \\dots, 2n-1\\}$ are chosen such that the sum of the cardinals (i.e., total number of elements) of these subsets equals $\\binom{2n+1}{2}$. Prove that we can choose exactly one element from each subset such that the sum of the chosen numbers equals $\\binom{2n}{2}$.", "options": [], "answer": "Detailed solution", "solution": "We prove the statement using the following lemmas.\n\n**Lemma 1.** If $|A_i| + |A_j| = 2n + 1 - r$ for a non-negative $r$, then there exist $a_i \\in A_i, a_j \\in A_j$ such that $2n - 1 - r \\le a_i + a_j \\le 2n - 1 + r$.\n*Proof.* Assume the contrary. Let $A_i = \\{x_1 \\le x_2 \\le \\cdots \\le x_{|A_i|}\\}$ and let $y_t = 2n - 1 - x_t$ be the complement of $x_t$. Since $A_j$ is non-empty, there exists $y \\in A_j$.\nIf $y > y_1$ then we also have $y \\ge y_1 + r$. Now consider the following values:\n$$\ny_{|A_i|}, y_{|A_i|-1}, \\cdots, y_2, y_1, y_1+1, y_1+2, \\cdots, y_1+r\n$$\nThey are $|A_i|+r$ distinct numbers; all of them belong to $[0, 2n-1]$. Moreover $A_j$ cannot contain any of them. So the size of $A_j$ is at most $2n - (|A_i| + r)$ which is a contradiction.\nIf $y < y_1$ then let $t$ be the smallest index such that $y < y_t$. Indeed, we also have $y < y_t - r$. Now consider the following numbers:\n$$\ny_{|A_i|}, y_{|A_i|-1}, \\dots, y_{t+1}, y_t - r, y_t - (r-1), \\dots, y_t, y_{t-1}, y_{t-2}, \\dots, y_1,\n$$\nwhich are $|A_i| + r$ distinct numbers and all of them belong to $[0, 2n-1]$, moreover $A_j$ cannot contain any of them. So the size of $A_j$ is at most $2n - (|A_i| + r)$ which is a contradiction.\n\n**Lemma 2.** If $|A_i| + |A_j| = 2n + 1 + r$ for a non-negative $r$, then for every $2n-1-r \\le s \\le 2n-1+r$ there exist $a_i \\in A_i, a_j \\in A_j$ such that $a_i + a_j = s$.\n*Proof.* First take a number $s \\in [2n-1-r, 2n-1]$, and let $h = 2n-1-s$. $A_i, A_j$ in total at most have $2h$ elements from the set $\\{s+1, s+2, \\dots, 2n-1\\}$. So the number of elements of $A_i, A_j$ in the interval $[0, s]$ is at least $2n+1+r-2h \\ge s+2$ in total. Applying *Pigeonhole principle* for $s+1$ pairs $(0, s), (1, s-1), \\dots, (s, 0)$ we can easily get $s$ as the sum of two elements, one from $A_i$ and one from $A_j$. The proof for $s \\in [2n, 2n+r]$ is similar.\n\n**Comment 1.** This means we can cover the whole interval $[2n-1-r, 2n-1+r]$ by the bi-sums of elements, one from $A_i$ and one from $A_j$.\n\n**Lemma 3.** If we have $2k$ subsets such that the sum of their sizes is $k(2n + 1) + r$ for a non-negative $r$, then for every $k(2n-1) - r \\le s \\le k(2n-1) + r$ there exist $2k$ elements, one from each subset, whose sum is $s$.\n\n**Comment 2.** This means we can cover the whole interval $[k(2n-1) - r, k(2n-1) + r]$ by the sums of elements of these $2k$ subsets.\n*Proof.* We proceed the proof through induction $k$, with base $k=1$ being Lemma 2. As for the inductive step, we consider $A_i, A_j$ as the two subsets with minimum size among those $2k$ subsets.\nIf $|A_i| + |A_j| = 2n+1+r'$ for a non-negative $r'$ then $r' \\le r$ and by Lemma 2 $A_i, A_j$ can cover the interval $[2n-1-r', 2n-1+r']$. Also by induction the other $2k-2$ subsets cover the interval $[(k-1)(2n-1) - (r-r'), (k-1)(2n-1) + (r-r')]$. By combining the two intervals we can cover the whole interval $[k(2n-1)-r, k(2n-1)+r]$.\nIf $|A_i| + |A_j| = 2n+1-r'$ for a positive $r'$ then by Lemma 1 there exist $a_i \\in A_i, a_j \\in A_j$ such that $2n-1-r' \\le a_i + a_j = s \\le 2n-1+r'$. Also by induction, the other $2k-2$ subsets cover the interval $[(k-1)(2n-1) - (r+r'), (k-1)(2n-1) + (r+r')]$. By adding $s$ to the numbers in this interval we can cover the whole interval $[k(2n-1)-r, k(2n-1)+r]$.\n\nThe statement of the problem is indeed a special case of Lemma 3 where $k = n$ and $r = 0$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32911, "subject": "Mathematics (Multi-modal)", "question": "In an isosceles triangle $ABC$ ($BC = BA$), point $P$ is arbitrarily chosen on the altitude from vertex $B$. Suppose that the circumcircle of $BAP$ intersects $AC$ for the second time at point $M$. Let $N$ be the reflection of $M$ with respect to the midpoint of $AC$. $NP$ intersects the circumcircle of $BAP$ at $X$ ($X \\neq P$), and $AB$ intersects the circumcircle of $NAP$ at $Y$ ($Y \\neq A$). The tangent to the circumcircle of $NAP$ at $A$ intersects $BP$ at $Z$. Prove that $CZ$ is tangent to the circumcircle of $XYP$.", "options": [], "answer": "Detailed solution", "solution": "We denote by $Q$ the intersection of $CZ$ and $AB$. First, we show that quadrilateral $QXYP$ is cyclic. Note that $\\angle PNA = \\angle PYQ$. Therefore, if we prove that $\\angle QXP = \\angle PNA$, it follows that $QXYP$ is cyclic. This is also equivalent to proving that $XQ$ is parallel to $AN$.\n\n![](attached_image_1.png)\n\nTo prove this, we use $R$, which is the intersection of $AZ$ and $BC$. We can write:\n$$\n\\angle RAP = \\angle PNA = \\angle PMN = \\angle PBA = \\angle PBR\n$$\nThus, $R$ also lies on the circumcircle of triangle $APB$. Clearly, $AC \\parallel QR$, so we only need to show that $RQ$ passes through $X$. Note that:\n$$\n\\angle QRA = \\angle RAN = \\angle XPA = \\angle XRA\n$$\nThis equation implies that $R$, $Q$, and $X$ are collinear, yielding $QXYP$ is cyclic. Note that $C$, $N$, and $Q$ are reflections of $A$, $M$, and $R$ with respect to line $BP$. Moreover, since the pentagon $BRPMA$ is cyclic, we can conclude that:\n$$\n\\angle CQP = \\angle PNA = \\angle PXQ\n$$\nImplies that $CZ$ is tangent to the circumcircle of $PXY$. $\\blacksquare$", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 32912, "subject": "Mathematics (Multi-modal)", "question": "Given a positive integer $n$, we say two sets $A$ and $B$ of integers are congruent modulo $n$ if and only if the residues of elements of $A$ modulo $n$ are the same as the residues of elements of $B$ modulo $n$, and we write $A \\equiv B \\pmod{n}$. For example,\n$$\n\\{3, 5, 8\\} \\equiv \\{-4, 0, 9, 15\\} \\pmod{3}\n$$\nWe say that two sets $A$ and $B$ of integers are translatable modulo $n$ if there is a polynomial $f(x)$ with integer coefficients such that either $f(A) \\equiv B \\pmod{n}$ or $f(B) \\equiv A \\pmod{n}$. Here, by $f(X)$ for a subset $X$ of integers we mean: $f(X) = \\{f(x) : x \\in X\\}$.\nFind all positive integers $n > 4$ such that every two non-empty subsets of $\\{0, 1, \\dots, n-1\\}$ are translatable modulo $n$.", "options": [], "answer": "All prime numbers greater than four", "solution": "We shall prove that this can only happen whenever $n$ is prime. We shall prove the following lemma;\n\n**Lemma 1.** Let $p$ be a prime number and $x_1, \\cdots, x_r$ be pair-wise distinct (mod $p$) and $y_1, \\cdots, y_r$ be distinct positive integers. Then, there is a polynomial $P(x)$ with integer coefficients such that\n$$\nP(x_i) \\equiv y_i \\pmod{p}\n$$\n*Proof.* Adopting the Lagrange Interpolation Formula and constructing the following polynomial\n$$\n\\sum a_i \\cdot \\frac{(x-x_1)\\cdots(x-x_r)}{(x-x_i)}\n$$\nwhere $a_i = y_i/((x_i-x_1)\\cdots(x_i-x_{i-1})(x_i-x_{i+1})\\cdots(x_i-x_n))$, where by fractions, we mean the *multiplicative inverses* modulo $p$. It is clear that this polynomial satisfies the condition of the lemma. This completes our proof.\n\nNotice also that if $n$ is an arbitrary integer and $\\gcd(x_i - x_j, n) = 1$ the preceding lemma remains true. Hence, if $A$ and $B$ are two arbitrary sets with pair-wise distinct elements mod $p$ such that $|A| \\ge |B|$, using the above lemma, we find that $A$ would be translatable to $B$.\nLet $n > 4$ be a composite number and $p$ be its smallest prime divisor, it follows that $n > 3p$. Now, consider $A = \\{1, p+1, 2p+1\\}$ and $B = \\{1, 2\\}$. We prove that $B$ would not be translatable to $A$. On contrary, we shall have $P(R) \\equiv 1, P(S) \\equiv 2 \\pmod{p}$, for some $R, S \\in A$. On the other hand, $R \\equiv S \\pmod{p}$ hence, $P(R) \\equiv P(S) \\pmod{p}$, contradiction. ■", "topic": "Number Theory", "subtopic": "Modular Arithmetic" }, { "id": 32913, "subject": "Mathematics (Multi-modal)", "question": "Let $G$ be a connected simple graph with vertices $v_1, v_2, \\dots, v_{11}$ such that $v_1$ is of degree $2$ and the rest of the vertices are of degree $3$. Assume that for every subset $A$ of vertices with at most $4$ elements the subset of vertices that are not in $A$ but have an edge connecting them to some elements of $A$ has at least as many elements as $A$. Find the smallest possible diameter of the graph $G$.\n\n*(Note. A graph is said to be connected if there is a path between every pair of its vertices. The diameter of a graph is the length of the shortest path between the most distanced vertices.)*", "options": [], "answer": "12", "solution": "We claim that the answer is $12$. We construct the graph as the following; we shall consider two cases:\n\nFirst. If the degree of the zero floor vertex is two. Then, we shall have two vertices in the first floor. Assume now for contradiction, then we would have one vertex in the fifth floor of degree three. Therefore, we at least have four vertices in the floors four and five. Thus, we at least have four vertices in the floors three, four, and five connected to these floors. Taking into account that we at least have one vertex in the second floor, we would at least have $12$ vertices, a contradiction.\n\nAnalogously, we can refute the case that the degree of the vertex on the first floor is three; indeed, we have four vertices in the first and second floor thus we should at least have four vertices in the fourth floor connected to these floors. If the vertex at the fifth floor is of degree two, we would at least have three vertices in the floors four and five, we shall then at least have $12$ vertices, a contradiction.\n\n![](attached_image_1.png)\n\nWe will then show that this graph satisfies the condition of the problem: it is clear that the one elements sets satisfy the condition. The two elements sets also satisfy the statement of the problem since the degree of at least one of their vertices is three. The three elements sets also satisfy the above condition since we have no triangle in the graph and there would at least be eight edges from these three vertices. We shall then prove that the four elements sets also satisfy the condition of the problem; for this reason, we count the number of blue and red vertices in the figure; if all the vertices are on one of the polygons then we at least have one adjacent vertex from the same polygon and three adjacent from the green edges. For sake of simplicity, remove the green edges, if two of them are on a polygon, we should have two adjacent in each polygon. Analogously, if we have three green edges on a polygon and one vertex on another polygon, we are done. ■", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 32914, "subject": "Mathematics (Multi-modal)", "question": "In the triangle $ABC$, $I$ is the incenter and $M$ is the midpoint of the part of arc $BC$ on the circumcircle of $ABC$ that doesn't contain $A$. $X$ is a point on the external angle bisector of $\\angle BAC$. The line $BX$ meets the circumcircle of $BIC$ at $T$, for the second time. The point $Y$ is on the circumcircle of $ABC$ such that $MA = MY$. Prove that $TC \\parallel AY$.\n\n![](attached_image_1.png)", "options": [], "answer": "Detailed solution", "solution": "Suppose that $O$ is the circumcenter of $AXC$. Since $M$ is the circumcenter of $BIC$:\n$$\n\\angle XTC = \\angle BTC = \\frac{1}{2}\\angle BMC = \\frac{1}{2}(\\angle B + \\angle C) = 180^{\\circ} - \\angle CAX\n$$\nYielding $XACT$ is cyclic. Thus, $CT$ would be the common perpendicular to the circumcircles of $XAC$ and $BIC$. Therefore, $MO \\perp CT$. On the other side, $AM = MY$ and $OA = OY$. Therefore, $OM \\perp AY$. Yielding $AY \\perp MO$ and $CT \\perp MO$. The result follows. ■", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32915, "subject": "Mathematics (Multi-modal)", "question": "Let $n$ be a positive integer. $2n$ persons are around a round table. Let $a \\ge n$ be an integer. We call two persons *friends* if and only if there are exactly $a$ persons between one of the arcs passing between them. For each positive integer $n$ find all possible values of $a$ for which, we can choose $n$ persons, none of them are antipodal, and there would be $n$ total friendly relations between them.", "options": [], "answer": "All integers a ≥ n with n ≡ a + 1 (mod 2).", "solution": "We claim that independent of the way we shall choose $n$ persons, the parity of the number of friendship relations among them is equal to the parity of $n - a$. We shall prove the following lemma;\n\n**Lemma 1.** *If we replace one person with her antipodal the parity of number of friendship relations among the people would not change.*\n\n*Proof.* Let us assume that the chosen person has two friends, namely $A$ and $B$. Assume the antipodal person has two friends namely $C$ and $D$. Such that $A, C$ as well as $B, D$ are antipodal. Since $n \\le a$ we can find that these four persons are indeed distinct. Thus, if the number of chosen persons from the set $\\{A, C\\}$ is $i$ the number of chosen persons from the set $\\{B, D\\}$ would be $2 - i$. Hence, after the replacements the total number of friendship relations between the chosen persons would change by $i - 2 - i = 2$. Hence, the parity remains unchanged. This completes our proof.\n\nAccording to the above lemma, after the replacing any one with the person who is her antipodal, we can assume that the chosen persons have the numbers $\\{1, 2, \\dots, n\\}$. Thus, in between there are $2a$ persons who have 1 friend and $n - 2a$ who have 2 friends. Thus, the total number of friendship relations is $n - a$. Thus, the answer would be all $(n, a)$ such that $n \\equiv 1 + a \\pmod 2$. $\\blacksquare$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32916, "subject": "Mathematics (Multi-modal)", "question": "In triangle $ABC$ the points $M$ and $N$ are the midpoints of the sides $AB$ and $AC$, respectively. The lines $BN$ and $CM$ intersect the circumcircle of $ABC$, for the second time, at $N'$ and $M'$, respectively. Points $X$ and $Y$ are on the extension of $BC$ such that, point $B$ is between $X$ and $C$ and point $C$ is between $B$ and $Y$.\n\n$$\n\\angle BXM' = \\angle ACM, \\angle CYN' = \\angle ABN\n$$\n\nProve that $AY = AX$.", "options": [], "answer": "null", "solution": "Since $\\angle BXM' = \\angle ACM$, $\\angle M'BX = \\angle M'AC$ it follows that $\\triangle M'AC \\sim \\triangle M'BX$. Hence, $M'B/M'A = BX/AC$. Yielding, $BX = AC \\cdot \\frac{M'B}{M'A} = b \\cdot \\frac{\\sin \\angle MCB}{\\sin \\angle MCA}$. On the other hand, $\\frac{\\sin \\angle MCB}{\\sin \\angle MCA} = \\frac{b}{a}$. Therefore, $BX = b^2/a$ and analogously $CY = c^2/a$. Hence, if $D$ is the foot of the altitude from $A$ it suffices to show that $XD = YD$. We know that $BD = \\frac{a^2+c^2-b^2}{2ac}$ and $CD = \\frac{a^2+b^2-c^2}{2a}$. It follows that $XD = BX+BD = \\frac{c^2}{a} + \\frac{a^2+b^2-c^2}{2a} = CY+CD = YD$. As desired. ■\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32917, "subject": "Mathematics (Multi-modal)", "question": "Two triangles $ABC$ and $C'B'A$ are congruent. $M$ is the midpoint of $AB$ and the extension of $CB'$ beyond $B'$ passes through $M$. Point $F$ lies on the arc $MC$ (which does not contain $B$) of the circumcircle of $BMC$ in such a way that $\\angle FB'A = 90^\\circ$, $\\angle C'CB' \\neq 90^\\circ$. Prove that $\\angle B'C'C = \\angle CAF$.", "options": [], "answer": "Detailed solution", "solution": "Let $F'$ be the intersection of the perpendicular bisector of $AB$ and the circumcircle of $BMC$. Let the circumcircle of $AF'M$ intersect $CM$ at $K$. It follows that\n$$\n\\begin{align*}\n\\angle KAF' &= \\angle KMF' = \\angle CBF' \\\\\n\\angle F'KA &= \\angle F'MA = \\angle F'CB = 90^\\circ \\\\\nF'A &= F'B\n\\end{align*}\n$$\n\nUsing the preceding result we have $FC = FB'$ and:\n$$\n\\begin{align*}\n\\angle B'FC &= 180^\\circ - \\angle ABC - \\angle B'FM \\\\\n&= \\angle ACB + \\angle BAC - \\angle B'AM \\\\\n&= \\angle C'AB' + \\angle BAC - \\angle B'AM \\\\\n&= \\angle C'AC\n\\end{align*}\n$$\nSince $AC' = AC$, triangles $B'FC$, $C'AC$ and hence $AFC$, $C'B'C$ are similar which completes the proof. ■", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32918, "subject": "Mathematics (Multi-modal)", "question": "Find all the functions $f : \\mathbb{Q}[x] \\to \\mathbb{Q}[x]$ such that\n\ni. For all $P, Q \\in \\mathbb{Q}[x]$ we have $f(P + Q) = f(P) + f(Q)$;\n\nii. For all $P \\in \\mathbb{Q}[x]$, we have $\\text{gcd}(P, f(P)) = 1$ if and only if $P$ is square-free.\n\n(We call a polynomial $P \\in \\mathbb{Q}[x]$ square-free if there is no non-constant polynomial $Q \\in \\mathbb{Q}[x]$ such that $Q^2$ divides $P$.)", "options": [], "answer": "All functions are f(P) = C·P'(x) + P(x)·Q(x), where C is a nonzero rational constant and Q(x) is an arbitrary polynomial in Q[x].", "solution": "Take any polynomial $Q(x)$ with rational coefficients then the function $f$ meets the condition of the problem if and only if $g(P) = f(P) - P \\cdot Q$ satisfies. Where $P(x)$ is a polynomial with rational coefficients. We shall prove this claim in one direction. In the opposite direction, just change $Q$ by $-Q$. Indeed, $g(P+R) = f(P+R) - (P+R) \\cdot Q = f(P) - P \\cdot Q + f(R) - R \\cdot Q = g(P) + g(R)$. The second property would indeed follow from the Euclidean algorithm. Since $\\text{gcd}(P, f(P)) = 1$ then $\\text{gcd}(P, f(P) - P \\cdot Q) = 1$.\n\nWe can then assume that $f(1) = 0$. After this, it suffices to show that $f(P) = C \\cdot P'$ satisfies the statement of problem for some non-zero rational $C$.\n\nNotice that $f(nP) = nf(P)$ for all integers $n$ and further for all rational numbers $r$ we have $f(rP) = rf(P)$. Then, if we put $P(x) = a_d x^d + \\dots + a_0$ it follows that $f(P) = a_d f(x^d) + \\dots + a_0 f(1) = a_d f(x^d) + \\dots + a_1 f(x)$. Thus, it would only suffices to prove that $f(x^n) = n x^{n-1} f(x)$. For $n = 1$ it is clear. Now consider $(x-r)^n$ for some rational number $r$ and some integer $n \\ge 2$. Notice that\n\n\\begin{align*}\nf((x-r)^n) &= \\sum_{k=0}^{n} \\binom{n}{k} f(x^k) (-r)^{n-k} = f(x^n) + \\sum_{k=0}^{n-1} \\binom{n}{k} k x^{k-1} f(x) (-r)^{n-k} \\\\\n&= f(x^n) + n f(x) \\sum_{k=1}^{n-1} \\binom{n-1}{k-1} x^{k-1} (-r)^{n-k} \\\\\n&= f(x^n) + n f(x) + \\sum_{k=0}^{n-2} \\binom{n-1}{k} x^k (-r)^{n-k-1}.\n\\end{align*}\n$$\nHence,\n$$\nf((x - r)^n) = f(x^n) + n f(x) ((x - r)^{n-1} - x^{n-1})\n$$\nThat is, $f((x-r)^n) - n f(x)(x-r)^{n-1} = f(x^n) - n f(x)x^{n-1}$. Applying the second condition, it follows that $x-r$ divides the left. Hence, it should divide the right. Since the right side doesn't depend on $r$, it follows that it must have infinitely many linear factors implies that it must be zero. Therefore, $f(x^n) = n f(x)x^{n-1}$. Now, it follows that $f(P) = f(x) P$. We shall then need to prove that $f(x) = C$ for some non-zero rational number $C$. Assume on the contrary, let $f(x) = Q(x)$ for some non-constant polynomial $Q(x)$ with rational coefficients, then consider an irreducible factor $T(x)$ of it with rational coefficients then $T(x)$ divides $f(x)$. Hence, $T(x)$ divides $f(T) = Q(x) \\cdot T'(x)$. But, $T(x)$ since $T(x)$ is irreducible, it would also be square-free. Yielding $\\text{gcd}(T, f(T)) = 1$. Hence, $f(x) = C$. All in all, the solutions are of the form $C \\cdot P'(x) + P(x)Q(x)$, for some non-zero rational number $C$ and any polynomial $Q(x)$ with rational coefficients.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32919, "subject": "Mathematics (Multi-modal)", "question": "Let $n \\ge 2$ be a given positive integer. Prove that there is a $n$-tuple $(a_1, \\dots, a_n)$ of pair-wise coprime positive integers, each of which greater than $1402$ such that\n$$\n\\lfloor \\frac{a_1}{a_2} \\rfloor + \\lfloor \\frac{a_2}{a_3} \\rfloor + \\dots + \\lfloor \\frac{a_n}{a_1} \\rfloor = \\lfloor \\frac{a_2}{a_1} \\rfloor + \\lfloor \\frac{a_3}{a_2} \\rfloor + \\dots + \\lfloor \\frac{a_1}{a_n} \\rfloor\n$$\nNote. by $\\lfloor x \\rfloor$, we mean the greatest integer that doesn't exceed $x$.", "options": [], "answer": "Detailed solution", "solution": "Notice that if $a_1 < a_2 < \\dots < a_n$ are positive integers such that\n$a_2/a_1, a_3/a_2, \\dots, a_n/a_{n-1} \\in (1, 2)$\n\nwhile $a_n/a_1 \\in (n, n+1)$ then $(a_1, \\dots, a_n)$ would satisfy the condition of the problem. It thus suffices to find such numbers. We shall then prove the following lemma.\n\n**Lemma 1.** Let $A$ and $B$ be rational numbers and $p$ and $q$ be distinct prime numbers. Then, $\\gcd(A \\cdot N! + p, B \\cdot N! + q) = 1$, for all large enough positive integers $N$.\n\n*Proof.* Let $(A, B) = (a/b, c/d)$. Let $D = \\gcd(A \\cdot N! + p, B \\cdot N! + q)$. It follows that $D|acp - bdq$. Thus, $D < \\max(acp, bdq)$. Choose $N > 2 \\cdot \\max(acp, bdq)$, it follows that $D|A \\cdot N!$, $D|B \\cdot N!$. Yielding $D = 1$. This proves our lemma.\n\nWe now construct $a_1, \\dots, a_n$. Let us denote by $p_1, \\dots, p_n$ the first $n$ primes and $A_1, \\dots, A_n$ be arbitrary rational numbers such that $A_i \\in (1, 2)$ while $A_1 \\cdot A_2 \\cdots A_n \\in (n, n+1)$. Then, choose a large enough $N$ and put $a_i = A_i \\cdot N! + p_i$, $i = 1, \\dots, n$. It can be easily verified that these numbers would be satisfying the condition of the problem. ■", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32920, "subject": "Mathematics (Multi-modal)", "question": "Let $n$ be a given positive integer. Find the number of permutations $(a_1, \\dots, a_n)$ of $1, 2, \\dots, n$ such that for all $1 \\le i \\le n$ we have $a_i \\mid 2i$.", "options": [], "answer": "2^{\\lfloor n/2 \\rfloor}", "solution": "We shall prove that the answer is $2^{\\lfloor \\frac{n}{2} \\rfloor}$. We shall firstly prove the following lemma;\n\n**Lemma 1.** Let $i = 2^{\\nu_2(i)}m$, $\\gcd(2, m) = 1$ then $a_i = 2^j m$ for some $j \\in \\{0, 1, \\dots, 1+\\nu_2(i)\\}$.\n\n*Proof.* We shall prove this statement through induction on $m$. Notice that for $m=1$ and for $i \\in \\{2^j \\mid 2^j \\le n, j \\in \\{0, 1, \\dots\\}\\}$, the number $a_i$ would also be an element of that set. Hence, $a_i$ would be a permutation of $\\{2^j \\mid 2^j \\le n, j \\in \\{0, 1, \\dots\\}\\}$\n\nNow, let for all odd $N > m$ such, if $i \\in \\{2^j N \\mid 2^j N \\le n, j \\in \\{0, 1, \\dots\\}\\}$ then $a_i$ must be a permutation of the same set. Setting $i = 2^{\\nu_2(i)}m$ and $a_i = 2^j N$ such that $N \\mid m$ and $j \\le 1 + \\nu_2(i)$. Since we have already used all the numbers with the odd parts less than $m$ we find that $N = m$ and we are done.\n\nWe shall now claim that after the determination of all number of the form $a_k = 2k$, $k = 1, 2, \\dots, \\lfloor \\frac{n}{2} \\rfloor$ the permutation would indeed uniquely be determined. According to the above lemma, it only suffices to restrict ourselves to the set $\\{2^j m : 2^j m \\le n, j = 0, 1, \\dots\\}$. We draw a directed graph having $n$ vertices that are collinear, such that the in- and out- degree of each vertex is 1 and from each vertex the out edge would either go to the next vertex or to one of the vertices before hand. Now, if we determine those vertices with the edge to the next, we can uniquely determine the other edges. For this reason, we shall prove the following lemma;\n\n**Lemma 2.** *If the $k$-th vertex be the first with zero out-degree, then no edge would go out of the set of vertices $\\{1, 2, \\dots, k\\}$. Moreover, there is only one vertex with the zero in-degree.*\n\n*Proof.* Since any edge that is out from $\\{1, 2, \\dots, k-1\\}$ will go some vertex in the set $\\{1, 2, \\dots, k\\}$ and the $k$ has the out-degree to its left (otherwise its out-edge has yet been determined!). The first part of the lemma would be obvious. For the second part, regard that the sum of in-degrees and out-degrees would be equal. This completes our proof.\n\nThus, at each step that we face the first vertex with zero out-degree, we connect it to the previous vertex with the zero in-degree and continue this procedure. Since for each of $1, 2, \\dots, \\lfloor \\frac{n}{2} \\rfloor$ we have two choices, the final answer would be $2^{\\lfloor \\frac{n}{2} \\rfloor}$, as desired.", "topic": "Discrete Mathematics", "subtopic": "Combinatorics" }, { "id": 32921, "subject": "Mathematics (Multi-modal)", "question": "Find all functions $f : \\mathbb{C} \\to \\mathbb{C}$ such that for all complex numbers $x, y$:\n$$\nf(f(x) + y f(y)) = x + |y|^2\n$$", "options": [], "answer": "f(z) = C·\\overline{z} for all z in \\mathbb{C}, where |C| = 1", "solution": "Plugging $y = 0$ it follows that $f(f(x)) = x$, hence the function is bijective. Plugging $(x, y) = (0, 1)$ it follows that $f(f(0) + f(1)) = 1 = f(f(1))$ using injectivity to obtain $f(0) = 0$. Now, taking $f$ from both sides and using $f(f(x)) = x$ to obtain $f(x) + y f(y) = f(x + |y|^2)$. Plugging $x = 0$ yields $y f(y) = f(|y|^2)$. Hence, $f(x) + f(z) = f(x + z)$ where $z = |y|^2$ is non-negative real number. Hence, plugging $(x, y) = (0, f(y))$ gives $y f(y) = f(|f(y)|^2) = f(|y|^2)$. Again, using injectivity, we have $|f(y)| = |y|$. Let $x, z > 0$ be real numbers then\n$$\nx + z = |f(x)| + |f(z)| \\ge |f(x) + f(z)| = |f(x+z)| = x + z\n$$\nHence, the equality case of the triangle inequality occurs. Thus $\\frac{f(x)}{f(z)} > 0$. Let $C = f(1)$ it follows that $f(x) = Cx$ for all $x > 0$. Now, by $y f(y) = f(|y|^2) = |y| f(|y|) = C|y|^2$. We find that $f(y) = C \\frac{|y|^2}{y} = C \\bar{y}$.\n\nPlugging it into the original functional equation, we obtain,\n$$\nf(f(x) + y f(y)) = \\overline{C \\cdot C \\bar{x} + C y \\bar{y}} = |C|^2(x + |y|^2) = x + |y|^2\n$$\nThus, $|C| = 1$.\nAfter we obtained $|f(y)| = |y|$, we can say $x + |y|^2 \\ge |f(x) + y f(y)| = x + |y|^2$. Hence, $\\frac{f(x)}{y f(y)} > 0$. The rest would be analogous to the previous proof.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32922, "subject": "Mathematics (Multi-modal)", "question": "Are there bijective functions $f, g : \\mathbb{N} \\to \\mathbb{N}$ such that\n$$\ng(n) = \\frac{f(1) + f(2) + \\dots + f(n)}{n}\n$$", "options": [], "answer": "No", "solution": "The answer is no. We shall prove by induction that $f(n) = 2n - 1$ and $g(n) = n$.\n\nNotice that $f(i) \\ge 1$ for each $i$. Then, if $1 = g(N) = \\frac{1}{N}(f(1) + \\cdots + f(N))$, it follows that $f(1) = \\cdots = f(N) = 1$.\n\nNow, we prove through induction on $n$. Assume that the statement holds for positive integers up to $n$. Since $g$ is surjective, assume that there is $m \\ge n + 1$ such that $g(m) = n + 1$. Thus, at least one of the numbers $g(n + 1), \\ldots, g(m)$ would be greater than or equal to $m$. Let there is some $k \\in \\{n + 1, \\ldots, m\\}$ such that $g(k) = m$ therefore,\n$$\ng(m) = \\frac{f(1) + \\cdots + f(m)}{m} \\ge \\frac{f(1) + \\cdots + f(k)}{m} = \\frac{k \\cdot g(k)}{m} \\ge k \\ge n+1\n$$\nThe equality case occurs and $k = m = n + 1$. Yielding $g(n + 1) = n + 1$ and $f(n + 1) = 2n - 1$, as desired. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32923, "subject": "Mathematics (Multi-modal)", "question": "Let $a, b, c$ be natural numbers such that $b > a > 1$ and $\\gcd(c, ab) = 1$. Prove that there exists a natural number $n$ such that\n$$\nc \\mid \\binom{b^n}{a^n}\n$$", "options": [], "answer": "Detailed solution", "solution": "**First Solution.** Let $c = p_1^{\\alpha_1} \\cdots p_t^{\\alpha_t}$ be the prime decomposition of $c$.\nThen, for all large enough $r$ there are positive integers $n_0, m_0$ such that $a^{n_0} + m_0$ is divisible by $(p_1 \\cdots p_t)^r$. Indeed, letting $n_0 = \\varphi((p_1 \\cdots p_t)^r)$ and $m_0 = (p_1 \\cdots p_t)^r - 1$. Thus, for all large enough $r$ there are positive integers $n$ and $m$ such that $a^n + m$ is divisible by $(p_1 \\cdots p_t)^r$.\nNow, take positive integers $y_{2k+1} > y_{2k} > \\cdots > y_1 > c$ such that for all $i, j$ satisfying $1 \\le i \\le j \\le 2k+1$ we have $b^{y_j-c} > m \\cdot a^{y_1+\\cdots+y_j}$. Choose $r$ large enough and $n$ such that $(p_1 \\cdots p_t)^r$ divides $a^n + m$. Assume that $b^{n+y_1+\\cdots+y_j} \\equiv r_{ij} \\pmod{p_i^r}$. We call a pair $(i, j)$ bad if $r_{ij} \\cdot b^{y_{j+1}} > p_i^r$; note that since $r$ is large enough we have $b^{y_1+\\cdots+y_{2k+1}} < p_i^r$. Thus, if $(i, j)$ is bad then the pair $(i, l)$ with $l > j$ would not be bad. Hence, we at most have $k$ bad pairs. That is, there is at most one bad pair for each $i$. Thus, there is a positive integer $j$ such that $r_{ij}$ and $r_{i(j+1)}$ would not be bad for all $i = 1, \\cdots, k$. Since\n\n$r_{ij}$ is not bad it follows that for each $i: r_{i(j+1)} = b^{y_{j+1}} \\cdot r_{ij} \\ge b^{y_{j+1}}$ and since $r_{i(j+1)}$ is not bad then $r_{i(j+1)} \\cdot p_i^{\\alpha_i} \\le r_{i(j+1)} \\cdot b^c \\le r_{i(j+1)} \\cdot b^{y_{j+1}} \\le p_i^r$. Thus, for all $i$ we have:\n$$\np_i^{r-\\alpha_i} \\ge r_{i(j+1)} \\ge b^{y_{j+1}}\n$$\nNow, take $y = y_1 + y_2 + \\cdots + y_{j+1}$, we shall prove $\\binom{b^{n+y}}{a^{n+y}}$ would be divisible by $c$. In so doing, we shall calculate the exponents of $p_i$'s. Since $p_i^r$ divides $b^{n+y} + r_{i(j+1)}$ taking into account the above inequalities it also follows that $p_i^r$ divides $a^{n+y} + m \\cdot a^y$ and $m \\cdot a^y \\le p_i^{r-\\alpha_i}$ (indeed, according to the choice of $r$), then for all positive integers $t$ such that $0 \\le t \\le \\alpha_i - 1$ it follows that $\\left\\{\\frac{a^{n+y}}{p_i^{r-t}}\\right\\} = \\frac{p_i^{r-t}-m \\cdot a^y}{p_i^{r-t}}$. Since $p_i^{r-t}$ divides $b^{n+y} - r_{i(j+1)}$ it follows that $p_i^{r-t}$ divides $b^{n+y} - a^{n+y} - (r_{i(j+1)} + m \\cdot a^y)$. Thus,\n$$\n\\left\\{\\frac{b^{n+y} - a^{n+y}}{p_i^{r-t}}\\right\\} = \\frac{r_{i(j+1)} + m \\cdot a^y}{p_i^{r-t}}.\n$$\nHence, for each $0 \\le t \\le \\alpha_i - 1$ we have $\\left\\{\\frac{a^{n+y}}{p_i^{r-t}}\\right\\} + \\left\\{\\frac{b^{n+y}-a^{n+y}}{p_i^{r-t}}\\right\\} = 1 + \\frac{r_{i(j+1)}}{p_i^{r-t}} > 1$. That is,\n$$\n\\left\\{\\frac{a^{n+y}}{p_i^{r-t}}\\right\\} + \\left\\{\\frac{b^{n+y} - a^{n+y}}{p_i^{r-t}}\\right\\} \\ge 1 > \\left\\{\\frac{b^{n+y}}{p_i^{r-t}}\\right\\}.\n$$\nIt follows that for all $0 \\le t \\le \\alpha_i - 1$ we have $\\lfloor \\frac{b^{n+y}}{p_i^{r-t}} \\rfloor > \\lfloor \\frac{a^{n+y}}{p_i^{r-t}} \\rfloor + \\lfloor \\frac{b^{n+y}-a^{n+y}}{p_i^{r-t}} \\rfloor$. Thus, $\\nu_{p_i}(\\binom{b^{n+y}}{a^{n+y}}) \\ge \\alpha_i = \\nu_{p_i}(c)$. Thus, by choosing such $n, y$ we can ensure that $c$ divides $\\binom{b^{n+y}}{a^{n+y}}$.\n\n\n**Second Solution.** We start with a very basic observation on $p^R \\mid \\binom{x}{y}$. We shall then prove the following lemma.\n**Lemma 1.** If $\\gcd(p, xy) = 1$ let for $M - R \\le i \\le M$ denote $r_{x,i}$ and $r_{y,i}$ the residues of $x$ and $y$ (mod $p^i$). Then, if $r_{x,i} < r_{y,i}$ we have $p^R \\mid \\binom{x}{y}$.\n*Proof.* Denote by $N_{p^R}(a, b)$ the number of multiples of $p^R$ in the interval $[a, b]$ it follows that for each $i$:\n$$\nN_{p^i}(x, x - y + 1) \\ge N_{p^i}(y, 1)\n$$\nThus, it suffices to show that for $M - R \\le i \\le M$ we have $N_{p^i}(x, x - y + 1) \\ge N_{p^i}(y, 1)$. For sake of simplicity, put $r_{x,i} = r_x$. Notice that $N_{p^i}(x - r_x, x - r_x - y + r_y + 1) = N_{p^i}(y - r_y, 1)$ since the length of the two intervals are the same and they will start with the same residue (mod $p^i$). On the other hand $N_{p^i}(x, x - r_x + 1) = N_{p^i}(y - r_y + r_x, y - r_y + 1)$. But, $N_{p^i}(x - r_x - y + r_y, x - y + 1) = 1 > N_{p^i}(y - r_y + r_x + 1, y) = 0$. This completes our proof.\n\nWe now aim to increase the residue of $a^n$ (mod $p^R$). For this reason, we shall need the following well-known lemma;\n**Lemma 2.** Let $p$ be a prime number and $a$ be a positive integer such that $\\gcd(a, p) = 1$. Then there is an integer $T$ for which there is a positive integer $n = n_R$ that $p^R \\mid a^n + T$.\n*Proof.* Change $a$ by $a^{p-1} - 1$ to ensure that $v_p(a-1) = r > 0$. Plugging $T = p^r - 1$ it follows that for all large $R$ and all $i < p^{R-r}$ the number $a^i$ are pairwise distinct (mod $p^R$). Indeed, let the order of $a$ mod $p$ be $d$ and $v_p(a^d - 1) = D$. Then, the order of $a$ modulo $p^R$ would be $D \\cdot p^{R-D}$ for all large enough $R$. This implies that it will generate all the residues that are basically congruent to $1$ (mod $p^r$), among them would be $1-p^r$. We are done.\nNow, suppose that $p_1, \\dots, p_t$ be all the primes dividing $c$. Then, according to the above lemma, there is $n_0$ such that $a^{n_0} \\equiv p^R - T \\pmod{p_i^R}$.\nWe say $n$ is a *friend* of $p_i^j$ ($1 \\le i \\le t, 0 \\le j \\le R$) if the residue of $b^n$ (mod $p_i^{R-j}$) is less than the residue of $a^n$ (mod $p_i^{R-j}$). We want to show that there is such $n$ that makes all the above congruence friendly! If it holds for $n_0$, we are done. Otherwise, choose one non-friendly relation. Then the residue of $b^{n_0}$ (mod $p^R$) would be greater than $p_i^{R-j}-T$. Choose $d_i$ such that $(\\frac{b}{a})^{d_i} > T$ then the residue of $b^{n_0+d_1}$ (mod $p_i^{R-j}$) would be greater than the residue of $a^{n_0+d_1}$. Now, for any non-friendly relation we can find $d_i$. Changing $n_0$ by $n_0+d_{i_1} + \\dots + d_{i_k}$ where $k$ is the number of non-friendly relations. We find that $(p_1 \\cdots p_t)^R \\mid \\binom{b^n}{a^n}$. As desired. $\\blacksquare$", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32924, "subject": "Mathematics (Multi-modal)", "question": "Find all real numbers $a, b > 1$ such that there are polynomials $P(x)$ and $Q(x)$ with real coefficients that $P(x) \\in \\{a^n \\mid n = 1, 2, \\dots\\}$ if and only if $Q(x) \\in \\{b^n \\mid n = 1, 2, \\dots\\}$.", "options": [], "answer": "All a, b > 1 such that there exist positive integers r, s with a^s = b^r (equivalently, log(a)/log(b) is rational).", "solution": "Denote by $A = \\{a^n \\mid n = 1, 2, \\dots\\}$ and $B = \\{b^n \\mid n = 1, 2, \\dots\\}$. Let us assume $P$ and $Q$ are non-constant. Otherwise all the pairs $(a, b)$ would be the solution. We claim that if $\\frac{\\log a}{\\log b} \\in \\mathbb{Q}$ then $a, b$ satisfies the problem's condition. If $\\frac{\\log a}{\\log b} = \\frac{r}{s}$ where $r, s$ are even integers, let $P(x) = x^r, Q(x) = x^s$ then, $P(t) \\in A$ if and only if $t^r = a^n$ thus, $t^s = b^n$, yielding $Q(t) \\in B$.\n\nNow, if $\\frac{\\log a}{\\log b}$ is irrational but there are polynomials $P, Q$ then there must exist $M$ such that $P(x), Q(x)$ are strictly increasing on $[M, +\\infty)$. If $t > M$ satisfies the statement of the problem, then $P(t) = a^n$ for some positive integer $n$ and $Q(t) = b^m$ for some positive integer $m$. Thus, there would be $t_1 > t$ such that $P(t_1) = a^{n+1}$ and then $Q(t_1) = b^{m+N}$. If $N > 1$ then there is some $z$ such that $Q(z) = b^{m+1}$ and hence, $P(z)$ must be a power of $a$ between $a^n, a^{n+1}$, a contradiction. Hence, $N = 1$.\n\nAnalogously, we obtain a sequence $(t_k)$ such that $P(t_k) = a^{n+k}$ as well as $P(t_k) = b^{m+k}$. Notice that $\\lim_{x \\to +\\infty} \\frac{\\log P(x)}{\\log Q(x)} = \\frac{\\deg P}{\\deg Q}$. Then,\n$$\n\\frac{\\log a}{\\log b} = \\lim_{k \\to +\\infty} \\frac{\\log a^{n+k}}{\\log b^{m+k}} = \\lim_{t_k \\to +\\infty} \\frac{\\log P(t_k)}{\\log Q(t_k)} = \\frac{\\deg P}{\\deg Q}.\n$$\n**Remark.** It is clear that $t_k$ tends to infinity and also $P$ and $Q$ would be positive for all large enough $x$. ■", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 32925, "subject": "Mathematics (Multi-modal)", "question": "Let $x$, $y$, $z$ be real numbers. Prove that:\n$$\n(x+y+z)^2 + \\frac{(x+y)(y+z)}{1+|x-z|} + \\frac{(y+z)(z+x)}{1+|y-x|} + \\frac{(z+x)(x+y)}{1+|z-y|} \\ge xy+yz+zx\n$$", "options": [], "answer": "Detailed solution", "solution": "After the change of variables $(a, b, c) = (x + y, y + z, z + x)$ it suffices to prove that\n$$\na^2 + b^2 + c^2 + \\frac{2ab}{1 + |a - b|} + \\frac{2bc}{1 + |b - c|} + \\frac{2ac}{1 + |c - a|} \\geq 0\n$$\nfor all real numbers $a$, $b$, $c$. Let $(A, B, C) = (|b - c|, |c - a|, |a - b|)$, since $(ab) \\cdot (bc) \\cdot (ca) \\geq 0$ we may assume that $ab \\geq 0$. Since $A, B, C \\geq 0$ and $A + B = |b - c| + |c - a| \\geq |a - b| = C$, we have\n$$\n\\frac{ab}{1+C} \\geq \\frac{ab}{(1+A)(1+B)}\n$$\n$$\n(a^2 + b^2 + \\frac{2ab}{1+C} - (\\frac{a}{1+B} + \\frac{b}{1+A})^2) + (c + \\frac{a}{1+B} + \\frac{b}{1+A})^2 \\geq 0\n$$\n\n\n**Second Solution.** Since we can change $(a, b, c)$ by $(-a, -b, -c)$ we can assume that $a \\geq b \\geq 0 \\geq c$. Then, if we put $C = |a - b|$, $A = |b - c|$, we can find $|a - c| = A + C$. Our inequality would indeed be\n$$\na^2 + b^2 + c^2 + \\frac{2ab}{1+C} + \\frac{2bc}{1+A} + \\frac{2ac}{1+C+A} \\geq 0\n$$\nIt is a quadratic expression with respect to $c$ and its discriminant is\n$$\n(\\frac{2b}{1+A} + \\frac{2a}{1+C+A})^2 - 4(a^2 + b^2 + \\frac{2ab}{1+C})\n$$\nThen, $(\\frac{2b}{1+A})^2 \\leq 4b^2$, $(\\frac{2a}{1+C+A})^2 \\leq 4a^2$, and $2 \\cdot \\frac{2b}{1+A} \\cdot \\frac{2a}{1+C+A} \\leq \\frac{8ab}{1+C}$. Hence, the discriminant is *non-positive* and we are done. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32926, "subject": "Mathematics (Multi-modal)", "question": "In triangle *ABC* the points *N* and *M* are on the side $BC$ such that $\\angle BAM = \\angle MAN = \\angle NAC$. The points *P* and *Q* are on the angle bisector such that *A*, *P*, and *Q* are all on the same side with respect to $BC$ and $\\frac{1}{3}\\angle BAC = \\frac{1}{2}\\angle BPC = \\angle BQC$. Let $AM$ and $CQ$ meet at $E$ and $AN$ and $BQ$ meet at $F$, prove that the common tangents of the circumcircles of $FPE$ and $FQE$ intersect on the circumcircle of $ABC$.", "options": [], "answer": "Detailed solution", "solution": "We shall prove the following lemma.\n\n![](attached_image_1.png)\n\n**Lemma 1.** *The points $E$, $F$, $B$, and $C$ are on a circle centered at $T'$.*\n\n*Proof.* An easy angle chasing shows that $BAEQ$ and $CAFQ$ are indeed cyclic.\nThus,\n$$\n\\angle FBE = \\angle QBE = \\angle QAE = \\angle QAF = \\angle QCF = \\angle FCE.\n$$\nYielding $EFBC$ is cyclic. Then,\n$$\n\\angle BEC = \\angle BQE + \\angle EBQ = \\alpha + \\angle FBE = \\alpha + \\angle QBF = \\frac{3\\alpha}{2}\n$$\nand\n$$\n\\angle BT'C = \\angle BAC = 3\\alpha = 2\\angle BEC\n$$\nAnd\n$$\nBT' = CT'.\n$$\n\nNow, we need the following lemma;\n\n**Lemma 2.** *The quadrilateral $EFA'T$ is cyclic*\n\n*Proof.* According to the above-mentioned lemma; $\\angle FT'E = 2\\angle FBE = 2\\angle QBF = 2\\angle QAE = \\angle EAF$. This completes our proof.\n\n![](attached_image_2.png)\n\nThus the radical axis of $AT'EF$, $AT'CB$, and $EFBC$ are concurrent. Let $G$ be the foot of ex-angle bisector of $\\angle BAC$, and assume $BE$ and $CF$ meet at $P'$. Since $BC$ and $GP'$ meet at $X$, it follows that $P'$ is on $AD$, indeed $(GX, BC) = (GD, BC) = -1$. Yielding $X = D$. That is;\n$$\n\\angle BP'C = \\angle BEC + \\angle FCE = \\angle BEC + \\angle FBE = 2\\alpha\n$$\nYielding to the fact that $P$ is the intersection of the corresponding arcs of $AD$ and $BC$. Therefore, $P = P'$. Whence, $CF \\cap BE = D$. This implies that $\\angle EPF = \\angle BPC = 2\\alpha$. According to the first lemma, $\\angle ET'F = \\angle EAF$ and $T'$ is on the perpendicular bisector of $EF$. Let $R$ be the intersection point of the common tangents of $QEF$ and $PEF$, taking into account that $R$ is the center of the *homothety* of these circles, it follows that $\\angle ERF = \\angle EPF - \\angle EQF = \\alpha$. Therefore, $R, O_1$, and $O_2$ would be collinear and $R$ is on the perpendicular bisector of $O_1O_2$. Hence, $R$ is the intersection of the corresponding arc of the $EF$ and its perpendicular bisector. Since such a point would be unique, we find that $R = T'$. We are done. ■\n\n![](attached_image_2.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32927, "subject": "Mathematics (Multi-modal)", "question": "We say a set $\\{a_1, \\dots, a_n\\}$ of real numbers is *interesting* if for all $1 < i < n$ we have $0 < a_{i+1} - a_i < a_i - a_{i-1}$. For each positive integer $m$ find the smallest positive integer $k$ such that there is an interesting set $A$ with $k$ elements such that $1$ can be written in at least $m$ different ways as the difference of two elements of $A$.", "options": [], "answer": "k = 2m", "solution": "**First Solution.** Defining $b_i = a_{i+1} - a_i$, $i = 1, \\dots, n-1$. Thus, $(b_i)$ is a decreasing sequence of positive real numbers. Then, the difference of any two elements of $A$ can be written as the sum of some of the $b_i$'s. Assume\n$$\nb_{i_1} + b_{i_2} + \\dots + b_{i_j} = b_{i_2} + \\dots + b_{i_j} = \\dots = b_{i_m} + \\dots + b_{i_n} = 1\n$$\nSuch that $i_1 < i_2 < \\cdots < i_m$. If $t > k$ then $j_t - i_t > j_k - i_k$. Since these numbers are positive, we find that $i_1, \\dots, i_m$ are distinct. Therefore,\n$$\nj_m = j_m - i_m + i_m \\geq m - 1 + m\n$$\nYielding, $n \\ge 2m$. Now, we construct two different examples;\n\n**1st Example.** Let $b_m = \\frac{2m-1}{m(3m-1)}$, $b_{m+1} = \\frac{2m-2}{m(3m+1)}$, $\\dots$, $b_{2m-1} = \\frac{2}{m(3m-1)}$. Then, we go inductively through $i = m-1$ and construct $b_1, \\dots, b_{m-1}$ as $b_i = b_{2i}+b_{2i+1}$, notice that since for all $i < n-1$ the inequalities $b_i > b_{i+1}$ and $b_{2i} + b_{2i+1} > b_{2i+2} + b_{2i+3}$ are equivalent, we find that $b_1, \\dots$ form a decreasing sequence. On the other hand,\n$$\nb_i + \\cdots + b_{2i-1} = b_{i+1} + \\cdots + b_{2(i+1)-1}\n$$\nIt is easy to verify that such an example works.\n\n\n**Second Solution** We can prove something more general; for every positive integer $m$ there is a nice set $A$ of size $2m$ and a nonzero real number $d$ that can be written as a difference of two elements of $A$ in at least $m$ different ways. Let $S_d = \\{(a,b) \\in A \\times A; a-b=d\\}$, we prove that $|S_d| \\ge m$. Indeed, Let $A = \\{a_1 < \\cdots < a_{2m}\\}$, which is made of two halves. The set $A$ begins with $0$, and then has gaps $1+ (i-1)\\delta$, for some very small $\\delta > 0$ which will be specified later. The first half of $A$ is filled like this. That is, for $1 \\le k \\le m+1$, we define $a_k = (k-1)+\\delta \\frac{(k-2)(k-1)}{2}$, and so the first $m+1$ elements of $A$ are elements of the set $A_1 = \\{0,1,2+\\delta,3+3\\delta,\\cdots,m+\\delta \\frac{m(m-1)}{2}\\}$. Fix $d = m + \\delta \\frac{m(m-1)}{2} = a_{m+1}$. The rest of $A$ is defined iteratively. For $1 \\le i \\le m-1$, we get $a_{m+1+i} = a_{1+2i}+d$. This immediately gives rise to the system of equations $d = a_{m+1} - a_1 = a_{m+2} - a_3 = \\cdots = a_{2m} - a_{2m-1}$. We therefore $|S_d(A)| \\ge m$. It remains to check that this set is nice. Note that $A_1 = \\{a_1, \\cdots, a_{m+1}\\}$ is nice, since the consecutive difference increase by $\\delta$ at each step.\nWe will prove by induction on $i$ that the set $\\{a_1, \\cdots, a_{m+2+i}\\}$ is nice for $0 \\le i \\le m-2$. We first check the base for $i=0$. We need to verify that the difference $a_{m+2}-a_{m+1}$ is sufficiently large, which will give a condition on $\\delta$. We must have $a_{m+2}-a_{m+1}>a_{m+1}-a_m$. We need to have $\\delta < \\frac{1}{m-2}$. Now, let $1 \\le i \\le m-2$. We must verify that $\\{a_1, \\cdots, a_{m+2+i}\\}$ is nice, given the induction hypothesis that $\\{a_1, a_2, \\cdots, a_{m+1+i}\\}$ is nice. All that remains to check that $a_{m+2+i}-a_{m+1+i} > a_{m+1+i}-a_{m+i}$. Note That $a_{m+2+i}-a_{m+1+i} = a_{1+2(i+1)} - a_{1+2i}$ and $a_{m+1+i} - a_{m+i} = a_{1+2i} - a_{1+2(i-1)}$. Note that, since the difference on the right hand side above are then consecutive differences of length two within a nice set, we have\n$$\na_{m+2+i} - a_{m+1+i} = a_{1+2(i+1)} - a_{1+2i} > a_{1+2i} - a_{1+2(i-1)} = a_{m+1+i} - a_{m+i}\n$$\nas needed. Here we have used the inductive hypothesis that $\\{a_1, \\cdots, a_{m+1+i}\\}$ is nice as well as the fact that $1+2(i+1) \\le m+1+i$. The latter inequality follows from the condition $i \\le m-2$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32928, "subject": "Mathematics (Multi-modal)", "question": "For a function $f : \\mathbb{N} \\to \\mathbb{N}$ define $P(n) = f(1) \\cdots f(n)$. Find all functions $f$ such that for all positive integers $a$ and $b$, we have\n$$\nP(a) + P(b) \\mid a! + b!\n$$", "options": [], "answer": "f(n) = n for all positive integers n", "solution": "Plugging $(a, b) = (1, 1)$ to obtain $f(1) = 1$. We can then inductively prove that $f(n) = n$. Assume that it has already been held for all positive integers less than $n$. Plugging $(a, b) = (n, 1)$, then after a simple algebra it follows that $f(n) \\le n$ and $(n-1)!f(n) + 1 \\mid (n-1)!(n - f(n))$. Since $\\gcd((n-1)!, 1 + f(n)(n-1)) = 1$ it follows that $(n-1)!f(n) + 1 \\mid n - f(n)$. Thus, $|n - f(n)| \\ge (n-1)!f(n) + 1$. Assume on the contrary that $f(n) \\ne n$ then $|n - f(n)| \\le n - 1 < (n-1)!(n-1) < 1 + (n-1)!f(n)$, a contradiction. Thus, $f(n) = n$ and we are done.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32929, "subject": "Mathematics (Multi-modal)", "question": "Given an odd positive integer $n$. Determine the smallest positive integer $k$ such that it would be possible to fill all the cells of a $3 \\times k$ table with non-negative integers such that\n\ni. The sum of the entries of each column be $n$;\n\nii. Each of numbers $0, 1, \\dots, n$ must appear at least once in each row.", "options": [], "answer": "3(n+1)/2", "solution": "We shall claim that the answer would be $\\frac{3(n+1)}{2}$. For this reason, we shall firstly provide the following example\n\n| 0 | 0 | ... | 0 | 0 |\n|---|---|-----|---|---|\n| 0 | 1 | ... | t - 1 | t |\n| 2t - 1 | 2t | ... | t + 2 | t + 1 |\n| 0 | 1 | ... | t - 1 | t |\n| 2t + 1 | 2t | ... | t + 2 | t + 1 |\n| 0 | 0 | ... | 0 | 0 |\n| 2t + 1 | 2t | ... | t + 2 | t + 1 |\n| 0 | 0 | ... | 0 | 0 |\n| 0 | 1 | ... | t - 1 | t |\n\nThe table that would be obtained from joining these three tables, would have the desired properties. We shall prove that there is no smaller table with such properties. For this reason, we shall provide two different approaches;\n\n**1st Approach.** Assume that there is a $3 \\times k$ table. Since in each row there are numbers $1, 2, \\dots, n$, the sum of entries of the table would at least be $\\frac{3n(n+1)}{2}$. On the other hand, if we count the sum of the entries of each column, it follows that $kn \\ge \\frac{3n(n+1)}{2}$. This completes our proof.\n\n**2st Approach.** Since the sum of entries of each column is $2t + 1$ it follows that no two members of the set $\\{t + 1, t + 2, \\dots, 2t + 1\\}$ can not be located at the same column. Since these numbers must appear in all of the three rows, we at least need $3t + 3$ column.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32930, "subject": "Mathematics (Multi-modal)", "question": "Let $(a_n)_{n \\in \\mathbb{N}}$ be a sequence of natural numbers such that every prime number greater than $2024$ has a multiple in this sequence. Prove that the number of prime divisors of the elements of the sequence $b_n = a_1 a_2 \\dots a_n - 1$ is infinite.", "options": [], "answer": "Detailed solution", "solution": "Assume to the contrary, let $P(b_n)$ be finite and\n$$\nP(b_n) = \\{2, p_1, \\dots, p_n, q_1, \\dots, q_s\\}\n$$\nwhere $p_i \\equiv 1 \\pmod 4$, $q_i \\equiv -1 \\pmod 4$. Thus, any element of $b_n$ can be written in the form\n$$\nb_n = 2^a p_1^{\\alpha_1} \\cdots p_n^{\\alpha_n} q_1^{\\beta_1} \\cdots q_s^{\\beta_s}\n$$\nWe shall say that $q$ is an *exceptional prime* if it belongs to $P - P(a_n)$. Since the set of exceptional primes is finite, every large prime $q$ is non-exceptional. If $q$ is non-exceptional then $q \\mid a_{n_0}$ for at least one $n_0 = n_0(q)$. Thus, $b_n \\equiv -1 \\pmod q$ for all $n \\ge n_0(q)$. We shall show that there are infinitely many $q$ for which this condition doesn't satisfied.\n\nLet $x_n$ be the least positive solution of $8q_1 \\cdots q_s x \\equiv 2 \\pmod{p_1 \\cdots p_n}$ and let $Q_k = k \\cdot 8p_1 \\cdots p_n q_1 \\cdots q_s + 8x_n q_1 \\cdots q_s - 1$, $k = 1, \\dots$. Thus, $Q_k$ is prime for infinitely many $k$. Let $q$ be such a prime which is not exceptional, then $q \\equiv -1 \\pmod 8$ and $\\left(\\frac{2}{q}\\right) = 1$. Thus, it follows that $q \\equiv 1 \\pmod{p_i}$, $q \\equiv -1 \\pmod{q_i}$. Hence, $\\left(\\frac{p_i}{q}\\right) = 1$, $\\left(\\frac{q_i}{q}\\right) = -1$.\n\nThus, $\\left(\\frac{b_n}{q}\\right) = 1$. But $b_n \\equiv -1 \\pmod q$ and $\\left(-\\frac{1}{q}\\right) = 1$. A contradiction. $\\blacksquare$", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32931, "subject": "Mathematics (Multi-modal)", "question": "Find all the functions $f : \\mathbb{R} \\to \\mathbb{R}$ such that for all $x, y \\in \\mathbb{R}$ we have:\n$$\nf(yf(x) + f(x)f(y)) = xf(y) + f(xy)\n$$", "options": [], "answer": "f(x) = 0, f(x) = x, or f(x) = -2x", "solution": "First Solution. Plugging $(x, y) = (1, yf(z) + f(z)f(y))$ yields\n$$\n\\begin{align*}\n& f(C(yf(z) + f(z)f(y) + f(yf(z) + f(z)f(y)))) \\\\\n&= f(C(yf(z) + zf(y) + f(y)f(z) + f(zy)) \\\\\n&= 2f(yf(z) + f(z)f(y)) = 2zf(y) + 2f(zy)\n\\end{align*}\n$$\n\n$$\nzf(y) + f(zy) = yf(z) + f(yz).\n$$\nHence, $f(y) = Cy$ for some constant $C$. Putting $f(x) = Cx$ in the original equation yields $f(x) = 0, f(x) = x, f(x) = -2x$.\n\n\nSecond Solution. As in the first solution, $f(1) = a$. Assume that $f$ is not constant, then, $f((1+a)f(x)) = ax + f(x)$ yielding to the fact that $f$ is injective. Further, $f(a(y+f(y))) = 2f(y)$. It follows that if $r+f(r)=s+f(s)$ then $r=s$. Hence, $f(a^2+a) = 2a$ and $f((1+a)f(a^2+a)) = f(2a^2+2a) = a(a^2+a) + f(a^2+a) = a^3 + a^2 + 2a$, finally, $f(a(a^2+a+f(a^2+a))) = f(a^3+3a^2) = 2f(a^2+a) = 4a$. Notice that $a^3+3a^2+4a = a^3+a^2+2a+2a^2+2a$. It follows that $f(2a^2+2a) + 2a^2 + 2a = f(a^3+3a^2) + a^3 + 3a^2$. Hence, $2a^2 + 2a = a^3 + 3a^2$. Thus, $a \\in \\{-2, 1\\}$.\nIf $a=1$ then $f(2f(x)) = x+f(x)$ letting $x=2f(z)$ to obtain $f(y(z+f(z)) + (z+f(z))f(y)) = f(yz+zf(z)+zf(y)+f(y)f(z)) = 2f(z)f(y)+f(2yf(z))$, interchanging $y,z$ to obtain $f(2zf(y)) = f(2yf(z))$ since $f$ is injective, it follows that $zf(z) = zf(y)$ and hence $f(x) = x$.\nIf $a = -2$ then $f(-f(x)) = f(x) - 2x$ and $f(-2f(x)-2x) = 2f(x)$ putting $-f(x)$ instead of $x$ in the second equation to obtain $f(4x) = 2f(x) - 4x$. Plugging $-2(x+f(x))$ instead of $x$ in the second equation to obtain $f(4x) = 4f(x)$. Hence, $f(x) = -2x$. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32932, "subject": "Mathematics (Multi-modal)", "question": "We call a sequence $(P_n)_{n=1,...}$ of polynomials an *arithmetic sequence with common difference* $Q(x)$ if $P_{n+1} = P_n + Q$, $n = 1, \\dots$. Suppose that we have an arithmetic sequence of polynomials with the common difference $Q(x)$ and the first term $P(x)$ such that $P$, $Q$ are *monic* polynomials with integer coefficients and have no common root. Further, each element of this arithmetic sequence has at least one integer root. Prove that\n\ni. $Q(x)$ divides $P(x)$;\n\nii. The polynomial $P(x)/Q(x)$ would be of degree one.", "options": [], "answer": "Detailed solution", "solution": "We shall firstly prove that the set of integer roots of the $(P + nQ)_{n=1,...}$ would be unbounded. For sake of this, notice that if $m \\ne n$ the polynomials $P + mQ$, $P + nQ$ have no common integer root; otherwise $P$ and $Q$ would have. Now, let $r_n$ be an integer root of $P + nQ$. It follows that $P(r_n)/Q(r_n) = -n$. Divide $P$ by $Q$, then, there would be polynomials $T$ and $R$ such that $P(x) = T(x)Q(x) + R(x)$, $\\deg R(x) < \\deg Q(x)$ and $T(x)$, $R(x)$ would be of integer coefficients. Plugging $x = r_n$ yielding $T(r_n) + R(r_n)/Q(r_n) = -n$. Thus, $R(r_n)/Q(r_n)$ would be an integer. Since\n\nwe can assign a unique integer root to each of $P(x) + nQ(x)$, we can find an arbitrary large root $r_n$. But, the degree condition on $R$ implies that $|R(r_n)/Q(r_n)| < 1$ for all large enough $r_n$. Hence, it must be zero and therefore, $R(x)/Q(x) = 0$ for infinitely many $x$. Yielding $R(x) = 0$ and hence, $P(x)$ would be divisible by $Q$.\n\nLet $P(x) = Q(x)S(x)$ for some polynomial $S(x)$ with integer coefficients. It follows that $P+nQ = Q(S+n)$ and $r_n$ would be an integer root of $S(x)+n$. It follows that the line $y = -n$ must cut the graph of $y = S(x)$ at integer points. This would be a well-known result that this can only happen if and only if $S(x) = Ax + B$ for some integers $A, B$.", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 32933, "subject": "Mathematics (Multi-modal)", "question": "Give $n$ black points on the plane such that no three are collinear and the distance between any two of them are pairs distinct. Starting with an arbitrary point and make it red. At each step, we draw the smallest segment such that one of its endpoints is red and the other is black—that has not yet been drawn—and doesn't cut any other yet drawn segments. Then, we make its black endpoint red. Is it true that for any $n$ and for any formation of these $n$ points, after finitely many steps, we can make all the points red?", "options": [], "answer": "No", "solution": "The answer is negative. We shall provide the following formations.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32934, "subject": "Mathematics (Multi-modal)", "question": "Let $x$, $y$ be two unknown natural numbers less than $100!$. Prove that there are natural numbers $m$ and $n$ such that knowing the value of $\\varphi(d(my)) + d(\\varphi(nx))$ would lead to the uniquely determination of the values $x$ and $y$.\n\n(Note. $\\varphi(n)$ is the number of positive integers that are less than and co-prime to $n$, and $d(n)$ is the number of positive divisors of $n$.)", "options": [], "answer": "Detailed solution", "solution": "Notice that we can find a good $N$ such that after knowing $d(Nx)$ then $x$ can uniquely be determined. For this reason, we shall provide two different approaches;\n\n**1st approach.** Let $p_1 < p_2 < \\dots < p_t$ be all the primes less than $100!$ such that $p_1^R > 100!$. Now, for each $i$, choose large enough primes $q_{ij}$ and $1 \\le j \\le R$ and put $N = p_1^{\\alpha_1} \\cdots p_t^{\\alpha_t}$ such that $a_i \\equiv -j \\pmod{q_{ij}}$, $j = 1, \\dots, R$. Now, if $d(Nx)$ is divisible by $q_{ij}$ it follows that $v_{p_i}(x) = j$ and this would help us to uniquely determine $x$.\n\n**2nd approach.** Let us denote by $p_1, \\dots, p_t$ the prime divisors dividing $x$. Then, $x = \\prod_{i=1}^t p_i^{\\alpha_i}$, $\\alpha_i \\ge 0$. Then if $N = \\prod_{i=1}^t p_i^{\\beta_i}$ it follows that $d(Nx) = \\prod_{i=1}^t (1 + \\alpha_i + \\beta_i)$. Letting $\\beta_i = x^{2^{i-1}}$. Considering $P(x) = \\prod_{i=1}^t (1 + \\alpha_i + x^{2^i})$ then, $\\deg P(x) = 2^t - 1$ and the coefficient of $x^{2^t - 2^{j-1}}$ is equal to $1+\\alpha_j$. Take $n > \\prod_{i=1}^t (1+\\alpha_i)$ then $P(n)$ will be a number in base $n$ that all of its digits can uniquely be determined by $\\alpha_i$. So, it remains to choose, $n > \\prod_{i=1}^t (1+a_i)$ where $a_i = \\max_{i \\in A} \\alpha_i$ and $\\beta_i = n^{2^{i-1}}$.\n\nNow, putting $T = 100!N$ and then $d(\\varphi(Tx)) = d(\\varphi(100!))Nx$. Plugging $m = p^{S-1}N$ where $t = q \\prod_{k=1}^{100!} d(kN)$ for some sufficiently large primes $p$ and $q$. Then\n$$\n\\varphi(d(my)) = (q-1)d(Ny)\\varphi\\left(\\prod_{k=1}^{100!} d(kN)\\right)\n$$\nIt follows that if we consider $\\varphi(d(my)) + d(\\varphi(Tx)) \\pmod{q-1}$ we can determine $d(\\varphi(Tx))$ and then determine $x$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32935, "subject": "Mathematics (Multi-modal)", "question": "There are $2n$ beakers and $k < n$ chemical substances. In these beakers, we, in aggregate, have $2k$ grams of each substance and the weight of every substance in each beaker is a non-negative real number. Find the smallest value of $s$ such that we can find $s$ beaker(s) that in aggregate contains at least $2$ grams of each substance.", "options": [], "answer": "n+1", "solution": "We claim that the answer is $n+1$.\n\nFor sake of proving that we at least need $n+1$ beakers, consider the case that $n-1$ of these substances are completely in one beaker and the last substance is equally distributed into the remaining beakers. Thus, we need to choose the first $n-1$ beakers and we would need two beakers, for sake of completing the last substance, since $\\frac{2k}{2k-n+1} < 2$.\n\nAssume now the weight of each substance in each beaker is less than $2$ grams. We shall then prove the following lemma:\n\n**Lemma 1.** If we write the beakers according to the weight of the $j$-th substance in descending order, i.e., $a_1, \\dots, a_{2k}$; then $a_s + a_{2k-s} \\ge 2$ for some $s \\le k$.\n*Proof.* Since $(a_1 + a_{2k}) + (a_2 + a_{2k-1}) + \\dots + (a_k + a_{k+1}) = 2k$ then at least one of the terms above is at least two. This completes our proof.\n\nLet us denote the smallest index with the afore-mentioned property by $i_j$. Assume that we labeled the substances in a way that the sequence $(i_j)$ is non-decreasing. We denote by excellent and good all the beakers that the weight of the $j$-th substance in them is greater than or equal to $a_{i_j}$ and $a_{2n-i_j}$, respectively. Then we need the following lemma.\n\n**Lemma 2.** For each two colors $A, B$ we at least have two beakers that are simultaneously $A$-good and $B$-good.\n*Proof.* Since $i_j < k+1$ it follows that we at least have $k+1$ good beakers of both colors. Since we in total have $2k$ beakers, we are done.\n\nNow, if there is a beaker such that is simultaneously $A$-excellent and $B$-excellent, then there would also be an additional beaker which is simultaneously $A$-good and $B$-good. After removing this beaker we can resolve the case for at least two colors and for the colors that are still the case in line\n\nFinally, we need the following lemma:\n\n**Lemma 3.** There is a beaker which is simultaneously $j$-good and $j+1$-excellent.\n*Proof.* According to our ordering, we have $i_{j+1} \\ge i_j$. We shall thus at least have $i_j$ beakers which are $j+1$-excellent. While, we only have $i_j - 1$ beakers which are not $j$-good. This completes our proof.\n\nNow, choose the first beaker such that is $1$-excellent, choose the second one such that is $1$-good and $2$-excellent, ..., continuing this way, we shall choose the last beaker such that it is $n$-good. We are done. $\\blacksquare$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32936, "subject": "Mathematics (Multi-modal)", "question": "In the triangle $ABC$, the angle $\\angle A$ is obtuse. Points $E$ and $F$ are the feet of altitudes from $B$ and $C$, respectively. Tangents to the circumcircle of $ABC$ at $B$ and $C$ intersect the line $EF$ at points $K$ and $L$, respectively. Let $\\angle CLB = 135^\\circ$. Point $R$ lies on the segment $BK$ such that $KR = KL$. Point $S$ lies on the line $BK$ such that $K$ is between $B$ and $S$ and $\\angle BLS = 135^\\circ$. Prove that the circle with the diameter $RS$ is tangent to the circumcircle of $ABC$.", "options": [], "answer": "Detailed solution", "solution": "Since $\\angle BLC = 135^\\circ = \\angle BLS$ we have $\\angle CLS = 90^\\circ$. We shall provide and prove several lemmas.\n\n**Lemma 1.** Let $P$ be the intersection of the lines $LS, BC$ then $\\angle PRB = 90^\\circ$\n*Proof.* Since the line $LC$ is tangent to the circumcircle $ABC$\n$$\n\\angle LCE = \\angle B = \\angle LEC\n$$\nTherefore $LC = LE$. Similarly $KB = KF$ and $LF = BR$. Let $X$ be a point on the ray $CL$ such that $LF = LX$ such that $L$ is between $X, C$.\n$$\nLE \\cdot LF = LC \\cdot LX\n$$\nhence $EXFC$ is cyclic and $\\angle BXC = 90^\\circ$. Then\n$$\n\\frac{PC}{PB} = \\frac{LC}{LX}; \\\\\nLX = LF = BR; \\\\\n\\angle LCP = \\angle A - 90^\\circ = \\angle RBP\n$$\nThus the triangles $LCP, RBP$ are similar and $\\angle RBP = 90^\\circ$. □\n\nLet $Q$ be a point on line $BK$ such that $\\angle BPQ = 90^\\circ$ and $T$ be the second intersection of circumcircles $PLC, PQB$. It follows that\n\n**Lemma 2.** Point $T$ lies on the circumcircle $ABC$\n$$\n\\begin{align*}\n\\angle PTC &= \\angle PLC = 90^\\circ \\\\\n\\angle PTB &= \\angle PQB = \\angle A - 90^\\circ \\\\\n\\angle CTB &= \\angle PLC + \\angle PTB = A\n\\end{align*}\n$$\n□\n\nNote that $\\angle LTP = \\angle TCP = \\angle TBS$, hence $SLTB$ is cyclic.\nNow by our second lemma: $\\angle RPB = \\angle SPC$ and since $QPB = 90^\\circ$, we would have $(BQ; RS) = -1$, further $QTB = 90^\\circ$ therefore $TQ$ bisects $\\angle RTS$.\nSince $SLTB$ is cyclic $\\angle STB = \\angle SLB = 135^\\circ$. Now it is easy to find that $\\angle BTR = \\angle RTQ = \\angle QTS = 45^\\circ$ thus the point $T$ lies on the circle with the diameter $RS$.\n\n**Lemma 3.** Circumcircle $RTS$ is tangent to circumcircle $BTC$\n*Proof.* Let $M$ be the midpoint of segment $BQ$.\nSince $(BQ; RS) = -1$ we have\n$$\nMR \\cdot MS = MB^2 = MQ^2 = MT^2.\n$$\nThis concludes our proof.\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32937, "subject": "Mathematics (Multi-modal)", "question": "Let $A_1A_2...A_{99}$ be a regular polygon and $A_{100}$ its center. $\\mathcal{A}$i wants to draw each of segments $A_iA_j$ ($1 \\le i < j \\le 100$) using one of $k$ colors such that no two segments of the same color share an endpoint or cross. Find the smallest positive integer $k$ for which such an operation is possible.", "options": [], "answer": "132", "solution": "Suppose that $n = 99$. We claim that the answer would be $\\frac{4}{3}n$.\n\nFirst of all, consider these three lines:\n- Lines of type $R$: they are vertices drawn from the center;\n- Lines of type $L$: they are the largest diagonals;\n- Lines of type $S$: the second largest diagonals.\n\nIt is clear that the only possible case that these three types have the same color would be $(L, S)$ or $(L, R)$ or $(R, S, S)$. Since every two largest diagonals and every two radii will cut each other, and among each three diagonals of the second largest length, there would be two that cut each other. If we have two lines $L, S$ such that don't cut each other, each radius will cut them.\n\nNow, assign 2 to type $L$ and assign 1 to the types $R, S$. Then, the sum of the weights of these lines is $4n$. On the other hand, each color will cover the number 3, thus, we at least need $\\frac{4n}{3}$ colors.\n\nIn order to prove this amount is sufficient, we opt to use 4 colors to color all the lines parallel to the three consecutive main diagonals such that the three radii connecting the starting points of these diagonals be of the same color. In the following figure, we present one way to do so!\n\n![](attached_image_1.png)\n\nBy rotating this pattern, we shall color the next three consecutive main diagonals and continue this procedure to color all the lines. Since the distance between any two points of the largest distance is $3k+1$. By the time we reach to the other side of the main diagonal, the second main diagonal that starts from that point would be colored and this procedure will continue to color everything. ■\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32938, "subject": "Mathematics (Multi-modal)", "question": "Given the triangle $ABC$ with orthocenter $H$. The point $S$ is on the circumcircle of $AHC$ such that $\\angle ASB = 90^\\circ$. The point $P$ on the ray $AC$ is such that $\\angle APS = \\angle BAS$. Prove that the circumcircle of $BPC$, the line $CS$, and the circle with the diameter $AC$, has another common point different from $C$.", "options": [], "answer": "Detailed solution", "solution": "Let $D$ be the foot of altitude from $A$. According to the statement of the problem, $ASDB$ is cyclic. Then $\\angle SDC = \\angle SAB = \\angle APS$. Therefore, $CSDP$ would also be cyclic. Let $BC$ meet the circumcircle of $AHD$ for the second time at $E$. Since $\\angle AEC = \\angle AHC = 180^\\circ - \\angle B$. Thus, $AB = AE$ and $D$ is the midpoint of $BE$. That is, $\\angle SED = \\angle SAP = \\frac{\\angle CS}{2}$, $\\angle SDE = \\angle SPA$. Hence, $\\triangle SED \\sim \\triangle SPA$. That is, $SD/SP = DE/PA$.\n\n![](attached_image_1.png)\n\nLet the circle with diameter $AC$ and the circumcircle of $BCP$ meet for the second time at $Q \\neq C$, it similarly follows that $\\angle QBD = \\angle QPA = \\frac{\\angle CQ}{2}$, $\\angle QDB = \\angle QAP = \\frac{\\angle CQ}{2}$. Hence, $\\triangle QBD \\sim \\triangle QPA$. That is, $DB/PA = QB/QP$. Since $DE = DB$ and (12) and (12), it follows that $QB/QP = SD/SP$. Taking into account that $BQPD, CSPD$ are cyclic, it follows that $\\angle BQP = \\angle DSP = 180^\\circ - \\angle C$. Further, $\\triangle DSP \\sim \\triangle BQP$. Then\n\n![](attached_image_1.png)\n\n$$\n\\angle SCB = \\angle SPD = \\angle QPB = \\angle QCB.\n$$\n\nThus, $Q, S, C$ would be collinear. This completes our proof and we are finally done. ■\n\n![](attached_image_2.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32939, "subject": "Mathematics (Multi-modal)", "question": "Two circles $\\omega_1$ and $\\omega_2$ with the same radius will meet at $P$ and $Q$. Points $B$ and $C$ are inside the circles $\\omega_1$ and $\\omega_2$, respectively. Points $X$ and $Y$ different from $P$ are on $\\omega_1$ and $\\omega_2$, respectively such that $\\angle CPQ = \\angle CXQ$ and $\\angle BPQ = \\angle BYQ$. Denote by $S$ the intersection of circumcircles of $XPC$ and $YPB$. Prove that $XY, BC,$ and $QS$ are concurrent.", "options": [], "answer": "Detailed solution", "solution": "Since the circles are identical, we have\n$$\n\\angle PYQ = \\angle PXQ, \\angle PCQ = \\angle PBQ\n$$\nWe shall firstly prove that $X$ is the orthocenter of $PCQ$. If we denote above mentioned center by $X'$, it follows that $\\angle CX'Q = \\angle CPQ$ and $\\angle PX'Q = 180^\\circ - \\angle PCQ = 180^\\circ - \\angle PBQ$. Thus, $X'$ is on the circumcircle of $PBQ$ and at the same time would have the same properties as $X$. Hence, $X = X'$. Similarly, we can prove that $Y$ would be the altitude of $PBQ$.\n\n![](attached_image_1.png)\n\nWe shall then prove that $CX = BY$ and $CX \\parallel BY$. According to the above-mentioned properties of $X$ and $Y$, we have $CX \\perp PQ$ and $BY \\perp PQ$, it follows that $CX \\parallel BY$. Let us denote by $O_1$ and $O_2$ the centers of $\\omega_1$ and $\\omega_2$, we can translate $\\omega_1$ to $\\omega_2$ by the vector $O_1\\vec{O}_2$. Since $O_1O_2 \\perp PQ$ it follows that $CX \\parallel O_1O_2$ thus, $X\\vec{C} = O_1\\vec{O}_2$, yielding $CX = O_1O_2$ and hence $O_1O_2 = YB$. Our claim is proved. We shall then prove $SX = QY, SX \\parallel QY$. For this reason, consider $S'$ such that $S'XQY$ is a parallelogram. Hence, $S'X = QY$ and $S'X \\parallel QY$. Thus, $\\Delta QYB \\sim \\Delta S'XC$. Therefore,\n$$\n\\angle XS'C = \\angle BQY = 90^\\circ - \\angle PYB = 90^\\circ - \\angle PXQ = \\angle XPC\n$$\nYielding $PS'CX$ is cyclic. Analogously, $S'PYB$ would also be cyclic and therefore, $S' = S$. We shall finally prove that the midpoints of $SQ, BC$, and $XY$ are the same. Indeed, it is clear that $SXQY$ and $SCQB$ are indeed parallelogram. Thus, the midpoints of the diagonals $SQ, BC$, and $XY$ are indeed the same. This concludes our proof. ■\n\n![](attached_image_2.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32940, "subject": "Mathematics (Multi-modal)", "question": "For a sequence of positive integers $x_1, x_2, \\dots$, we perform the following operation: In the $i$-th step, we mark all rational numbers in the interval $[0, 1]$ with denominator $x_i$ (i.e., numbers of the form $j/x_i$ for $j \\in \\{0, 1, \\dots, x_i\\}$). Let $a_i$ be the length of the shortest interval whose two endpoints have been marked up to step $i$. Find all sequences $x_1, x_2, \\dots$ such that $x_5 = 5$ and for every natural number $n$, we have:\n$$a_1 + a_2 + \\dots + a_n = 2 - \\frac{1}{x_n}$$", "options": [], "answer": "x_n = n for all n", "solution": "First, note that since $a_1 + a_2 + \\cdots + a_n$ is increasing according to the relation $a_1 + a_2 + \\cdots + a_n = \\frac{x_n}{n}$, the sequence $x_n$ must also be increasing. We prove by induction that $a_n = n$. First, notice that by the problem's condition, it holds up to $n = 5$. Assume the statement holds for $n$, and we want to prove it for $n+1$. For $i < n$, we have:\n$$\na_i = \\frac{1}{i-1} - \\frac{1}{i} = \\frac{1}{i(i+1)}\n$$\nThus, we have:\n$$\na_{n+1} = 2 - \\frac{1}{x_{n+1}} - 2 + \\frac{1}{n} = \\frac{x_{n+1} - n}{n x_{n+1}} \n$$\nNow if $\\gcd(x_n, n) = d$, by Bezout's theorem, we have an interval of length $\\frac{d}{n x_{n+1}}$. Because $d|x_{n+1} - n \\rightarrow d \\le x_{n+1} - n$, by assumption, we should have $d = x_{n+1} - n$. If $d = n k$, we have\n$$\nx_{n+1} = d(k+1) \\rightarrow a_{n+1} = \\frac{1}{n(k+1)}\n$$\nOn the other hand:\n$$\na_{n+1} \\le \\frac{1}{n(n-1)} \\implies k+1 \\ge n-1 \\implies k \\ge n-2\n$$\nSince $n \\ge 5$ and we have $k|n$, we have $k=n$, and consequently $x_{n+1} + 1 = n$. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32941, "subject": "Mathematics (Multi-modal)", "question": "Given is a right triangle $ABC$ with $\\angle A = 90^\\circ$. Let $M$ be the midpoint of $BC$ and $P$ be an arbitrary point on $AM$. The reflection of $BP$ with respect to $AB$ intersects the lines $AC$ and $AM$ at $T$ and $Q$, respectively. Let the circumcircles of $BPQ$ and $ABC$ meet for the second time at $F$. Prove that the circumcenter of $CFT$ lies on $BQ$.", "options": [], "answer": "Detailed solution", "solution": "First, note that since $AM = CM$, it follows that $\\angle MAC = \\angle MCA$, and with a bit of angle chasing, we have:\n$$\n\\begin{align*} \n\\angle QFA &= \\angle QFB - \\angle AFB = \\angle QPB - \\angle ACB = \\angle APB - \\angle MAC = \\\\ \n&= \\angle APB + \\angle BAP - 90^\\circ = 90^\\circ - \\angle ABP = 90^\\circ - \\angle ABT = \\angle BTA \n\\end{align*}\n$$\n![](attached_image_1.png)\nTherefore, $QTAF$ is cyclic. Now, let $A'$ be the antipodal point of $A$, and $K$ be the intersection of the lines $CA'$ and $BQ$. Then we have: $\\angle QTF = \\angle QAF = \\angle FCA'$, and therefore $K$ lies on the circumcircle of $CFT$, and since $\\angle ACA' = 90^\\circ$, the center of the circumcircle of ($CFT$) lies on $BQ$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32942, "subject": "Mathematics (Multi-modal)", "question": "Kimia has a strange clock. Its minute hand doesn't work correctly. At any moment, instead of moving one second, it randomly jumps $34$ or $47$ seconds. For example, if at one moment the clock shows $12{:}23{:}05$, in the next moments it might show\n$12{:}23{:}39$, $12{:}24{:}13$, $12{:}25{:}00$, $12{:}25{:}34$, $12{:}26{:}21$, ...\nProve that there is always a moment that the second hand shows a perfect square.", "options": [], "answer": "Detailed solution", "solution": "First, notice that if at some moment the minute hand is on $36$ or $49$, our goal is achieved. In the next step, if the hand is on $2$, our goal is achieved since in the next step it must land on one of $2 + 34 = 36$ or $2 + 47 = 49$.\n\nWe prove by induction that if the clock hand is on a number of the form $X_k = 2 + 13k$ (mod $60$), our goal would have been achieved. The base case $k = 0$ (i.e., the hand is on $2$) has been checked. Assume the statement holds true for $k - 1$, i.e., if the hand is on $X_{k-1} = 2 + 13(k-1)$ (mod $60$), we eventually reach a square. Now consider being at $X_k = 2 + 13k$ (mod $60$). If the hand jumps $47$ seconds, it moves to $X_k + 47 = 2 + 13k + 47 \\equiv 2 + 13(k-1)$ (mod $60$). This is $X_{k-1}$. If the hand jumps $34$ seconds, it moves to $X_k + 34 = 2 + 13k + 34 = 2 + 13(k-2)$ (mod $60$). This is $X_{k-2}$. By the induction hypothesis, we win in both cases.\n\nThe set of numbers $\\{2, 2 + 13, 2 + 13 \\times 2, ..., 2 + 13 \\times 59\\}$ are a complete residue system modulo $60$ and we are done. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32943, "subject": "Mathematics (Multi-modal)", "question": "Let $T$ be a given positive integer. Find all functions $f : \\mathbb{Z} \\to \\mathbb{C}$ such that for every integer $m$, $f(m+T) = f(m)$, and for every three integers $a, b$, and $c$, the following equality holds:\n$$\nf(a)\\overline{f(a+b)}f(a+c)\\overline{f(a+b+c)} = 1.\n$$\nNote: $\\bar{z}$ denotes the complex conjugate of the complex number $z$.", "options": [], "answer": "All solutions are f(n) = c ε^n where |c| = 1 and ε ∈ {1, −1} with ε^T = 1. Equivalently: if T is odd, f(n) = c (|c| = 1); if T is even, f(n) = c or f(n) = c(−1)^n with |c| = 1.", "solution": "First, by substituting $b = c = 0$ into the given relation, we obtain:\n$$\nf(a) \\cdot \\bar{f}(a) \\cdot \\bar{f}(a) \\cdot f(a) = 1 \\Rightarrow |f(a)|^2 \\cdot |f(a)|^2 = 1 \\Rightarrow |f(a)|^4 = 1 \\Rightarrow |f(a)| = 1\n$$\nSince for every $x \\in \\mathbb{C}$, $x\\bar{x} = |x|^2$, and we know $|f(x)| = 1$ implies $\\bar{f}(x) = 1/f(x)$. The original relation is $f(a)\\overline{f(a+b)f(a+c)f(a+b+c)} = 1$. Substituting $\\bar{f}(x) = 1/f(x)$:\n$$\nf(a) \\frac{1}{f(a+b)} \\frac{1}{f(a+c)} f(a+b+c) = 1\n$$\n$$\n\\Rightarrow f(a)f(a+b+c) = f(a+b)f(a+c)\n$$\nNow, if $a = 0, c = 1$, we can write:\n$$\nf(b+1) = \\frac{f(b)f(1)}{f(0)} \\Rightarrow f(n) = \\frac{f(1)^n}{f(0)^{n-1}} = f(0) \\left(\\frac{f(1)}{f(0)}\\right)^n\n$$\nSince $f(n+T) = f(n)$, we have that $\\frac{f(1)}{f(0)}$ is a root of unity. Therefore, every solution is of the form $f(n) = cw^n$ where $|c| = 1$ and $w$ is a root of unity. By substitution, we find that all such functions are solutions. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32944, "subject": "Mathematics (Multi-modal)", "question": "Let $\\overarc{ABCD}$ be a cyclic quadrilateral with incircle $\\omega$. Let $M$ be the midpoint of arc $\\overarc{ABC}$. Let $\\Gamma$ be the circle with center $M$ and radius $MA$. $AD$ and $AB$ intersect $\\Gamma$ at $X$ and $Y$, respectively. Let $Z$ be a point on line $XY$ (with $Z \\neq Y$) such that $BY = BZ$. Prove that $\\angle BZD = \\angle BCD$.", "options": [], "answer": "Detailed solution", "solution": "Since $M$ is the center of the circumcircle of $AYC$ and $ABMC$ is also cyclic, we have:\n$$\n\\begin{align*}\n\\angle ABC &= \\angle AMC = 2 \\times \\angle AYC \\\\\n&= \\angle BYC + \\angle BCY \\\\\n&= \\angle AYC + \\angle BCY\n\\end{align*}\n$$\nThus $BY = BC$. Also, using the cyclicity of $AXYC$, we have:\n$$\n\\begin{align*}\n\\angle ZBC &= 2 \\times \\angle ZYC \\\\\n&= \\angle ZBD + \\angle CBD \\\\\n&= \\angle ZBD + \\angle CAD \\\\\n&= \\angle ZBD + \\angle ZYC\n\\end{align*}\n$$\nThus $\\angle ZBD = \\angle ZYC = \\angle CBD$, which implies $\\triangle ZBD \\cong \\triangle CBD$, and the proof is complete.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32945, "subject": "Mathematics (Multi-modal)", "question": "Let $(a_n)$ be a sequence of positive real numbers such that for all $n > 2025$ we have\n$$\na_n = \\max_{1 \\le i \\le 2025} a_{n-i} - \\min_{1 \\le i \\le 2025} a_{n-i}\n$$\n\nProve that there is a positive integer $M$ such that $a_n < \\frac{1}{1404}$, for all $n > M$.", "options": [], "answer": "Detailed solution", "solution": "First, we prove that the sequence is bounded; divide the sequence into blocks of $2025$ terms. It can be easily seen that the maximum of these blocks is decreasing. If the infimum of the maximums of the blocks is zero, the statement follows. Therefore, assume this infimum is $M$. Due to the decreasing nature of the maximums, it follows that the infimum of the maximums of all consecutive blocks of $2025$ terms (not just the initial blocks) is equal to $M$. In fact, beyond a certain point, the maximum of each $2025$-term block will be between $M$ and $M + \\epsilon$.\nThis implies that the minimum in each of these blocks is smaller than $\\epsilon$. Consider a term in the sequence from this point onwards that is smaller than $\\epsilon$. According to the inequality above, each of the next $2025$ terms will be in the interval $[M - \\epsilon, M + \\epsilon]$.\nSuppose the largest of these terms is $M + \\epsilon$ and the smallest of these terms is $M + \\epsilon'$. If $\\epsilon' < 0$, then the $2026$th term will be greater than $\\epsilon$, which implies that the supremum of the next $2025$ terms becomes less than $M$, which is a contradiction.\nTherefore, from a certain point onwards, the sequence will consist of $2025$ terms larger than $M$ and one small term. More precisely, the sequence will be of the form\n$$\nM + \\epsilon_1, M + \\epsilon_2, \\dots, M + \\epsilon_{2025}, \\epsilon = \\max(\\epsilon_i) - \\min(\\epsilon_i)\n$$\nIn the next block, the first term will be larger than all terms. Therefore, we can assume $\\epsilon_1 > \\epsilon_i$. This easily implies that if the next block is\n$$\nM + \\epsilon'_1, M + \\epsilon'_2, \\dots, M + \\epsilon'_{2025}, \\epsilon' = \\max(\\epsilon'_i) - \\min(\\epsilon'_i)\n$$\nwe have\n$$\n\\epsilon'_1 = \\epsilon_1 - \\epsilon, \\epsilon'_i < \\epsilon_1 - 2\\epsilon \\implies \\epsilon' \\ge \\epsilon\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32946, "subject": "Mathematics (Multi-modal)", "question": "Let $n$ be a positive integer such that $n \\ge 4$. For every permutation $(s_1, s_2, \\dots, s_n)$ of the numbers $1, 2, \\dots, n$, we calculate the following expression and write the result on the board:\n$$\n1s_1 + 2s_2 + 3s_3 + \\dots + ns_n\n$$\nIn the end, how many distinct values will be written on the board?", "options": [], "answer": "C(n+1, 3) + 1", "solution": "According to the permutation inequality, we always have:\n$$\n1 \\times n + 2 \\times (n-1) + \\cdots + n \\times 1 \\le 1 \\times s_1 + 2 \\times s_2 + \\cdots + n \\times s_n \\le 1 \\times 1 + 2 \\times 2 + \\cdots + n \\times n\n$$\nWe want to prove that all numbers in this range are covered. First, note that by induction, it is easily proven that:\n$$\n1 \\times n + 2 \\times (n - 1) + \\cdots + n = \\binom{n+2}{3}\n$$\nand\n$$\n1 \\times 1 + 2 \\times 2 + \\cdots + n \\times n = \\binom{n+2}{3} + \\binom{n+1}{3}\n$$\nFirst, let's examine the base case $n = 4$. We need to show that all numbers from 20 to 30 are covered. It is sufficient to consider the permutations:\n$$\n4, 3, 2, 1/3, 4, 2, 1/3, 4, 1, 2/4, 2, 1, 3/2, 3, 4, 1/2, 4, 1, \\\\\n3/1, 4, 3, 2/1, 3, 4, 2/2, 1, 4, 3/2, 1, 3, 4/1, 2, 3, 4.\n$$\nTo prove by induction, we first set $x_{n+1} = (n+1)^2$ for all values of $n$ with:\n$$\n(n+1)^2 = 1 \\times 1 + 2 \\times 2 + \\cdots + n \\times n + (n+1) \\times (n+1) - (1 \\times 1 + 2 \\times 2 + \\cdots + n \\times n)\n$$\nAll previous values are obtained by setting $x_{n+1} = 1$:\n$$\n\\frac{n(n+1)}{2} = 1 \\times (n+1) + 2 \\times n + \\cdots + (n+1) \\times 1 - (1 \\times n + 2 \\times (n-1) + \\cdots + n \\times 1)\n$$\nSo, to show that all numbers are covered, it is sufficient to show that:\n$$\n\\binom{n+2}{3} + \\binom{n+3}{3} + \\left( \\binom{n+2}{3} - \\binom{n+2}{3} \\right) + \\binom{n+1}{3} > \\binom{n+2}{3} + \\binom{n+3}{3} + \\left( \\binom{n+1}{3} - \\binom{n+2}{3} \\right)\n$$\nwhich is equivalent to:\n$$\n\\binom{n+2}{3} + 1 < 2 \\times \\left( \\binom{n+1}{3} + 1 \\right)\n$$\nwhich is obvious.", "topic": "Discrete Mathematics", "subtopic": "Combinatorics" }, { "id": 32947, "subject": "Mathematics (Multi-modal)", "question": "Prove that for every positive integer $n$, one can find three pairwise coprime positive integers $a, b, c > n$ such that the set of prime divisors of $a + b + c$ and $ab + ac + bc$ are the same.", "options": [], "answer": "Detailed solution", "solution": "We seek for large enough positive integers $a, b, c$ such that $\\frac{ab+ac+bc}{a+b+c} = 3^N$ for some positive integer $N$. Indeed, one can write $\\frac{ab+ac+bc}{a+b+c} = a+b-\\frac{a^2+ab+b^2}{a+b+c}$. Now, choose $c$ such that $\\frac{a^2+ab+b^2}{a+b+c} = 1$ that is, $c = a^2+b^2+ab-a-b$ then we need to find $a, b$ such that $a+b-1=3^N$. Choose coprime $a, b$ such that $3$ doesn't divide $ab(a-1)(b-1)$ it follows that $\\text{gcd}(c, b) = \\text{gcd}(c, a) = 1$. Further, choosing $a \\equiv b \\equiv 2 \\pmod{3}$ implies that $3$ divides also $a+b+c = a^2+ab+b^2$. The rest is clear.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32948, "subject": "Mathematics (Multi-modal)", "question": "Find all sequences $(a_n)_{n \\in \\mathbb{N}}$ of positive integers such that for every $n \\ge 3$ we have:\n$$\n\\frac{1}{a_1 a_3} + \\frac{1}{a_2 a_4} + \\frac{1}{a_3 a_5} + \\dots + \\frac{1}{a_{n-2} a_n} = 1 - \\frac{1}{a_1^2 + a_2^2 + \\dots + a_{n-1}^2}\n$$", "options": [], "answer": "a_n is the Fibonacci sequence with a_1 = 1, a_2 = 1 (i.e., a_n = F_n with F_1 = 1, F_2 = 1)", "solution": "Let $S_{n-2} = \\sum_{k=1}^{n-2} \\frac{1}{a_k a_{k+2}}$ and $Q_m = \\sum_{k=1}^m a_k^2$. The given relation is $S_{n-2} = 1 - \\frac{1}{Q_{n-1}}$ for $n \\ge 3$.\n\nFor $n = 3$:\n$$\n\\frac{1}{a_1 a_3} = 1 - \\frac{1}{a_1^2 + a_2^2} \\quad (1)\n$$\nThis implies $a_1 = 1$. If $a_1 \\ge 2$, then since $a_i \\in \\mathbb{N}$, $a_3 \\ge 1$. So $\\frac{1}{a_1 a_3} \\le \\frac{1}{2 \\cdot 1} = \\frac{1}{2}$. Also, $a_1^2 + a_2^2 \\ge 2^2 + 1^2 = 5$. So $1 - \\frac{1}{a_1^2 + a_2^2} \\ge 1 - \\frac{1}{5} = \\frac{4}{5}$. Thus $\\frac{1}{2} \\ge \\frac{4}{5}$, which is a contradiction. Yielding $a_1 = 1$.\n\nMoreover, $a_3 \\ne 1$. If $a_3 = 1$ (and $a_1 = 1$), then $\\frac{1}{1 \\cdot 1} = 1$. The equation becomes $1 = 1 - \\frac{1}{1^2+a_2^2}$, which implies $\\frac{1}{1+a_2^2} = 0$, impossible.\n\nNow we show $a_2 = 1$. Assume $a_2 \\ge 2$ (we know $a_1 = 1$). LHS of (1) is $\\frac{1}{a_1 a_3} = \\frac{1}{a_3}$. Since $a_3 \\ge 2$ (as $a_3 \\ne 1$), $\\frac{1}{a_3} \\le \\frac{1}{2}$. RHS of (1) is $1 - \\frac{1}{a_1^2+a_2^2} = 1 - \\frac{1}{1^2+a_2^2}$. If $a_2 \\ge 2$, then $1+a_2^2 \\ge 1+2^2 = 5$. So $1 - \\frac{1}{1+a_2^2} \\ge 1 - \\frac{1}{5} = \\frac{4}{5}$. Thus $\\frac{1}{2} \\ge \\frac{4}{5}$, a contradiction. So $a_2 = 1$.\n\nSubstituting $a_1 = 1, a_2 = 1$ into (1): $\\frac{1}{a_3} = 1 - \\frac{1}{1^2+1^2} = 1 - \\frac{1}{2} = \\frac{1}{2}$. So $a_3 = 2$.\n\nFor $n = 4$: The relation is $\\frac{1}{a_1 a_3} + \\frac{1}{a_2 a_4} = 1 - \\frac{1}{a_1^2 + a_2^2 + a_3^2}$. Using $a_1 = 1, a_2 = 1, a_3 = 2$: $\\frac{1}{1 \\cdot 2} + \\frac{1}{1 \\cdot 4} = 1 - \\frac{1}{1^2+1^2+2^2} = 1 - \\frac{1}{1+1+4} = 1 - \\frac{1}{6} = \\frac{5}{6}$. $\\frac{1}{2} + \\frac{1}{4} = \\frac{5}{6} \\implies \\frac{1}{4} = \\frac{5}{6} - \\frac{3}{6} = \\frac{2}{6} = \\frac{1}{3}$. So $a_4 = 3$.\n\nFor $n = 5$, we have $\\frac{1}{a_1 a_3} + \\frac{1}{a_2 a_4} + \\frac{1}{a_3 a_5} = 1 - \\frac{1}{a_1^2 + a_2^2 + a_3^2 + a_4^2}$. The sum of the first two terms is $\\frac{5}{6}$ (from $n = 4$ calculation). $\\frac{5}{6} + \\frac{1}{a_3 a_5} = 1 - \\frac{1}{1^2+1^2+2^2+3^2} = 1 - \\frac{1}{1+1+4+9} = 1 - \\frac{1}{15} = \\frac{14}{15}$. $\\frac{1}{a_3 a_5} = \\frac{14}{15} - \\frac{5}{6} = \\frac{28-25}{30} = \\frac{3}{30} = \\frac{1}{10}$. Since $a_3 = 2$, $\\frac{1}{2a_5} = \\frac{1}{10} \\implies 2a_5 = 10 \\implies a_5 = 5$.\n\nThe sequence starts 1, 1, 2, 3, 5, ... This appears to be the Fibonacci sequence, where $a_n = F_n$ (with $F_1 = 1, F_2 = 1$). We claim that $a_n = a_{n-1} + a_{n-2}$ for $n \\ge 3$. The right side values are $1 - 1/Q_2 = 1/2$ (for $n = 3$), $1 - 1/Q_3 = 5/6$ (for $n = 4$), $1 - 1/Q_4 = 14/15$ (for $n = 5$). This suggests the identity $Q_m = \\sum_{k=1}^m a_k^2 = a_m a_{m+1}$ for the Fibonacci sequence. So the given relation would be $\\sum_{k=1}^{n-2} \\frac{1}{a_k a_{k+2}} = 1 - \\frac{1}{a_{n-1} a_n}$.\n\nWe prove this claim by induction. The base case $n = 3$ holds: $\\frac{1}{a_1 a_3} = \\frac{1}{1 \\cdot 2} = \\frac{1}{2}$. And $1 - \\frac{1}{a_2 a_3} = 1 - \\frac{1}{1 \\cdot 2} = \\frac{1}{2}$. Assume the relation holds for $n-1$, meaning $\\sum_{k=1}^{n-3} \\frac{1}{a_k a_{k+2}} = 1 - \\frac{1}{a_{n-2} a_{n-1}}$, and assume $a_k$ are Fibonacci numbers up to $n-1$, and $Q_m = a_m a_{m+1}$ for $m \\le n-2$. We define $a_n = a_{n-1} + a_{n-2}$. We need to show the statement holds for $n$. LHS for $n$: $\\sum_{k=1}^{n-2} \\frac{1}{a_k a_{k+2}} = (\\sum_{k=1}^{n-3} \\frac{1}{a_k a_{k+2}}) + \\frac{1}{a_{n-2} a_n}$. Using the inductive hypothesis for the sum: LHS = $(1 - \\frac{1}{a_{n-2} a_{n-1}}) + \\frac{1}{a_{n-2} a_n} = 1 - \\frac{1}{a_{n-2}} (\\frac{1}{a_{n-1}} - \\frac{1}{a_n})$\n\nLHS = $1 - \\frac{1}{a_{n-2}} (\\frac{a_n - a_{n-1}}{a_{n-1} a_n})$. Since $a_n = a_{n-1} + a_{n-2}$, we have $a_n - a_{n-1} = a_{n-2}$. LHS = $1 - \\frac{1}{a_{n-2}} (\\frac{a_{n-2}}{a_{n-1} a_n}) = 1 - \\frac{1}{a_{n-1} a_n}$.\n\nFor the RHS, we need to verify $Q_{n-1} = a_{n-1} a_n$. $Q_{n-1} = \\sum_{k=1}^{n-1} a_k^2 = (\\sum_{k=1}^{n-2} a_k^2) + a_{n-1}^2 = Q_{n-2} + a_{n-1}^2$. By the inductive hypothesis on the sum of squares formula, $Q_{n-2} = a_{n-2} a_{n-1}$. So $Q_{n-1} = a_{n-2} a_{n-1} + a_{n-1}^2 = a_{n-1}(a_{n-2} + a_{n-1})$. Since $a_n = a_{n-1} + a_{n-2}$, $Q_{n-1} = a_{n-1} a_n$. So the RHS is $1 - \\frac{1}{Q_{n-1}} = 1 - \\frac{1}{a_{n-1} a_n}$. The relation holds for $n$ if we define $a_n$ using the Fibonacci recurrence. The initial terms $a_1 = 1, a_2 = 1$ were uniquely determined. The subsequent terms $a_3, a_4, a_5$ were also uniquely determined by the relation. The Fibonacci sequence $F_n$ (with $F_1 = 1, F_2 = 1$) matches these terms and satisfies the relation for all $n \\ge 3$. Thus, the only solution is the Fibonacci sequence $a_n = F_n (1, 1, 2, 3, 5, \\dots)$. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32949, "subject": "Mathematics (Multi-modal)", "question": "Let $p$ be a prime number. There are several cards on the table. Numbers $0$, $1$, $\\dots$, $p-1$ are written on them such that $0$ is written once and each of $1$, $2$, $\\dots$, $p-1$ is written at most once. For any two cards with numbers $x$ and $y$ on them, respectively, we determine the *winner* card such that;\n\ni. If card $x$ wins over card $y$ and card $y$ wins over card $z$, then card $x$ wins over card $z$;\n\nii. If card $x$ won't be defeated by card $y$ and card $z$ won't be defeated by card $t$, then if the cards $x+z$ and $y+t$ both are existing, then card $x+z$ won't be defeated by the card $y+t$. (We do the addition modulo $p$.)\n\n*Note. We say a card *wont be defeated by the other card* if it neither wins over it nor being identical to the other card.*\n\nDetermine the maximum number of cards that such a rule-based game would become possible.", "options": [], "answer": "floor((2p+1)/3)", "solution": "We say $a < b$ if the card with number $b$ written on it beats the card with number $a$. Let $m$ be the smallest element of this set, and $M$ be the largest element of the set. Suppose $a$ is an element of this set such that $a + M$ is also an element of the set. If\n$a + M < 0$, then for any $b$ such that $b + m$ is in the set, we have $b + m \\le a + M < 0$. So, without loss of generality, we can assume that for every $a$ such that $a + M$ is an element of the set, we have $a + M \\ge 0$.\n\nIn this case, if all three elements $a$, $a + M$, $a + 2M$ are members of the set, then\n$$\na + 2M = a + M + M > M\n$$\nwhich is a contradiction. Therefore, for any three elements of the arithmetic progression $a + kM$, at most two of them are members of the afore-mentioned set. This implies that if $p = 3k + 2$ or $p = 3k + 1$, the maximum number of members in the set is $2k + 1$.\n\nFor example, for $p = 3k + 2$, consider the numbers\n$$\n-k, -k + 1, \\dots, 0, 1, 2, \\dots, k\n$$\nmodulo $p$ and in their natural order. Since all sums are in the range $(-p, p)$, this order satisfies the given properties.\n\n\n**2nd Solution**\nLet $S$ be the set of numbers on the cards. Consider the sets:\n$$\nA = \\{x \\mid x \\in S, x \\ge 0\\}\n$$\n$$\nB = \\{x \\mid x \\in S, x \\le 0\\}\n$$\n$$\nC = \\{x \\mid x \\notin S\\}\n$$\nUsing the *Cauchy-Davenport theorem*, we have:\n$$\n\\min(2|A| - 1, p) \\le |A + A| \\le |A \\cup C| \\le |A| + |C|\n$$\n$$\n\\min(2|B| - 1, p) \\le |B + B| \\le |B \\cup C| \\le |B| + |C|\n$$\nSince $|A| + |B| = p + 1 - c$, substituting the given bound into the problem statement yields the result.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32950, "subject": "Mathematics (Multi-modal)", "question": "Let $n \\in \\mathbb{N}$ be a positive integer. We call a function $f(x, y)$ a *friend* of $n$ if for at least one percent of positive integers $k$ such that $0 \\le k \\le n$ the equation $f(x, y) = k$ has a solution $(x_0, y_0)$ in positive integers such that $\\frac{y_0}{x_0} \\in [\\frac{1}{100}, 100]$. Let $g(x, y)$ be a polynomial with non-negative real coefficients of total degree greater than $2$ such that $g(x, y) \\le f(x, y)$, for all positive real numbers $x, y$ satisfying $\\frac{y}{x} \\in [\\frac{1}{100}, 100]$. Prove that $f(x, y)$ would not be a *friend* of $n$ for all sufficiently large $n$.", "options": [], "answer": "Detailed solution", "solution": "First, note that given the positive coefficients, if $a x^m y^n$ is the highest degree term appearing in $g$, we have $a x^n y^m \\le g(x, y)$. Therefore, if $f(p, q) = k < n$ and $(p, q)$ are in the specified region, we have:\n$$\na p^n \\left(\\frac{p}{100}\\right)^m \\le a p^n q^m \\le n \\implies p \\le \\sqrt[n+m]{\\frac{100^m n}{a}}\n$$\nTherefore, for some constant $c$, we have $p, q < c n^{\\frac{1}{n+m}}$, which implies that $(p, q)$ can have at most $c n^{\\frac{2}{n+m}}$ possibilities, which is a contradiction. ■", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 32951, "subject": "Mathematics (Multi-modal)", "question": "Let $g : \\mathbb{C} \\rightarrow \\mathbb{C}$ be a surjective function. Find all complex functions $f : \\mathbb{C} \\rightarrow \\mathbb{C}$ such that for any two complex numbers $x, y$, we have:\n$$\n|g(x) + f(y)| = |f(x) + g(y)|.\n$$", "options": [], "answer": "All solutions are exactly the following families:\n- f(z) = g(z) + d for any complex constant d;\n- f(z) = −g(z);\n- f(z) = c^2 · overline{g(z)} + r c, where c is any complex number on the unit circle and r is a real constant.", "solution": "First, note that by surjectivity, we can find $x_0$ such that $g(x_0) = -f(y_0)$, the problem statement then implies $f(x_0) = -g(y_0)$. By setting $y = y_0$, $x = x_0$ in the problem statement, we have:\n$$\n|g(y) - g(y_0)| = |f(y) - f(y_0)|\n$$\nNote that $f(x)$ is a function of $g(x)$ because if $g(x_0) = g(x_1)$, then according to the above relation, $f(x_0) = f(x_1)$. Knowing the value of $f$ at three points $g(x_0) = 0$, $g(x_1) = 1$, $g(x_2) = i$, the value of $f$ is uniquely determined. Because for each point $x$, there is a unique point $f(x)$ such that the distance of $f$ from\n$$\nf(x_0), f(x_1), f(x_2)\n$$\nwould be equal to the distance of $g(x)$ from\n$$\ng(x_0), g(x_1), g(x_2)\n$$\nAccording to the relation we obtained, the image of\n$$\nf(x_0), f(x_1), f(x_2)\n$$\nmust be an isosceles right triangle with side length one, any such triangle can be obtained by a reflection across the x-axis, a translation, and a rotation from the triangle with vertices $(0, 0)$, $(1, 0)$, $(0, 1)$. Therefore, $f(x) = c g(x) + d$ or $f(x) = c \\overline{g}(x) + d$ where $c$ is on the unit circle. By substituting the first expression and surjectivity in the original problem statement, we have:\n$$\n|c x + y + d| = |c y + x + d|\n$$\nIf $c \\neq -1$, then the two expressions $c x + y$ and $c y + x$ can be made equal to any arbitrary two complex numbers, which leads to a contradiction. If $c = 1$, the statement is clearly true. If $c = -1$, then $|z + d| = |-z + d|$ implies $d = 0$. If we substitute the second expression, we have:\n$$\n|c x + y + d| = |x + c \\overline{y} + d| = |c x + y + c d|\n$$\nTherefore, since $c x + y$ can be any arbitrary complex number, it is necessary and sufficient that:\n$$\nd = \\overline{c} d \\implies d^2 = c|d|\n$$\nTherefore, the solutions are:\n$$\n\\begin{aligned}\nf(x) &= g(x) + d \\\\\nf(x) &= -g(x) \\\\\nf(x) &= c^2 g(x) + r c\n\\end{aligned}\n$$\nwhere $c = 1$ implies $r \\in \\mathbb{R}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32952, "subject": "Mathematics (Multi-modal)", "question": "Two intelligent players play a game on a $1403 \\times 1403$ grid consists of $1403^2$ unit squares, taking turns. On their turn, the first player chooses one of the unchosen cells and draws a unit line segment from the midpoint of its top side to the midpoint of its bottom side. In their turn, the second player chooses one of the free cells and draws a unit line segment from the midpoint of its right side to the midpoint of its left side. After $1403^2$ steps, the game ends. The first player scores points equal to the length of the longest *connected* vertical line segment they have formed. The second player also scores points equal to the length of the longest *connected* horizontal line segment they have formed. At the end of the game, the player with the higher score wins; if scores are equal, there would be a draw. What will be the outcome of the game? Justify your answer.", "options": [], "answer": "draw", "solution": "The first player draws their first vertical line in the red-colored cell of the table shown. Then, they consider the cell above and below it (the blue ones) as a pair, and pairs up the other cells in that column two by two (the green dominoes). The rest of the table, which is a $1403 \\times 1402$ grid, is also partitioned into horizontal dominoes, indicated in the figure by yellow and orange colors. In this case, it is easily proven that they prevent their opponent from creating a line segment of length $3$. Also, they will clearly draw one of the line segments in one of the blue cells, which, when placed next to the line drawn in the first step, achieves a line segment of length $2$. Thus, the first player has a non-losing strategy.\n\nNow, we also present a non-losing strategy for the second player. This strategy is as follows: After the first player's move, if the cell above it is empty, draw a horizontal line in that cell. If its upper cell is full, draw a horizontal line in the cell below it. If that is also full, draw a horizontal line in any other cell in the same column. And if such an action is also not possible (i.e., when that column becomes full), draw a horizontal line in a \"good\" cell (which will be specified later). In this case, it becomes clear that they prevent their opponent from achieving a vertical line of length $3$. Now we proceed to prove that with the above strategy, the second player can achieve a line segment of length $2$. For this purpose, consider the first time a column becomes completely full (we call it column $C$). It is clear that at such a stage, it is the second player's turn (because the $1403$-rd cell of a column has been filled, and $1403$ is odd).\n\nNow, the second player makes their move in a cell of an adjacent column to column $C$, in the same row as a cell in column $C$ where player two has drawn a horizontal line, thus forming a horizontal line of length $2$. If no such cell exists, it means that all $701$ possible cells in this adjacent column were previously occupied by the first player with vertical lines. Since every move by the second player so far has been in the same column as the first player's, another $701$ cells in this adjacent column have been filled with horizontal lines by the second player. Thus, these columns adjacent to column $C$ have $1402$ filled cells (we call columns with $1402$ filled cells \"almost full columns\"). Now, if second player again looks to the columns adjacent to these two columns for a suitable cell to draw a horizontal line to form a line of length $2$, either they succeed, or those columns will also be in an almost full state. In this way, successively, all columns (except $C$) become 'almost full'. In this case, second player draws a horizontal line in one of the 'almost full' columns whose two adjacent columns are also in this state. It is clear that in their next turn, second player can also draw a horizontal line in one of its two adjacent 'almost full' columns. This results in two consecutive columns, say $X$ and $Y$, where column $X$ has all its $1403$ cells filled ($701$ vertical by first player, $702$ horizontal by second player) and column $Y$ also has all its $1403$ cells filled ($701$ vertical by first player, $702$ horizontal by second player). So, second player has placed $702$ horizontal lines in column $X$ and $702$ horizontal lines in column $Y$. And since $1403 < 7022 = 1404$, Consider the $1403$ rows, by the *Pigeonhole Principle*, there must be at least one row where second player has placed a horizontal line in column $X$ and also in column $Y$. This creates a horizontal line of length $2$ for second player. Thus, the second player also has a non-losing strategy, and the game will result in a draw if both players play intelligently. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32953, "subject": "Mathematics (Multi-modal)", "question": "In a $n \\times n$ table, consider the main diagonal and the cells below. We call these cells a triangular grid of length $n$.\n\nWe want to place a real number in each cell of a triangular table of length $n$ such that for each cell $(i, j)$, the sum of the numbers in all cells of its row $i$ and all cells of its column $j$ (including $x_{i,j}$ itself, which is counted once) is zero. For example, for the cells with circles in them, the sum of all cells marked with a circle is zero. We know that the cells at the top-most and left-most positions contains the number $1$. Find the number of possible ways to fill the remaining cells.\n\nAssume the triangular grid consists of cells $(i, j)$ where $1 \\leq j \\leq i \\leq n$ (lower triangle), and for a cell $(i, j)$, the sum condition is $\\left(\\sum_{k=1}^i x_{i,k}\\right) + \\left(\\sum_{k=j}^n x_{k,j}\\right) - x_{i,j} = 0$.", "options": [], "answer": "1", "solution": "Consider the top-left cell, it follows that the sum of the numbers in the first row is zero. Considering the cells in the first row and summing them up, it follows that the sum of the numbers in the table is zero. Analogously, it follows that the sum of the numbers in the first column is zero. Using this and writing the relation for the top-right cell, it follows that the top-right cell is zero. We claim that the sum of the four vertices of any rectangle is zero. To see this, consider all cells in the two columns corresponding to the vertices of the rectangle. Add up the resulting relations and use the fact that the sum of the cells in the table is zero. Now, if the numbers in the first row are indexed from right to left as $a_1 = 0, a_2, \\dots, a_n = 1$, and the numbers in the first column are indexed from top to bottom as $b_1, \\dots, b_n = 1$, we have: $x_{ij}$ (cell $i$ row, $j$ column)\n\n$$\nx_{ij} = -a_i - b_j\n$$\n\nBy writing the relation for the cells in the first row, we get:\n$$\n(s + 1)a_{n-s} = b_2 + \\cdots + b_{2+s}\n$$\nwhich implies:\n$$\na_{n-s} \\le \\max(|b_2|, \\dots, |b_{2+s}|)\n$$\nSimilarly,\n$$\n|b_{n-s}| \\le \\max(|a_2|, \\dots, |b_{2+s}|)\n$$\nConsider the cell with the maximum absolute value in the row and column. By symmetry, we must have $a_{n-s} = |b_{2+s}| = \\dots = |b_2|$. Considering $b_2$, all $a_i$ must have the same sign, and all $b_i$ must have the same sign. By writing the relation for the first row, we have $a_i = -n/2$, $b_i = 1/n$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32954, "subject": "Mathematics (Multi-modal)", "question": "Point $M$ is the midpoint of side $BC$ of triangle $ABC$. The line perpendicular to $AM$ at point $A$ intersects the circumcircle of $ABC$ for the second time at $K$. The altitudes $BE$ and $CF$ of triangle $ABC$ intersect line $AK$ at points $P$ and $Q$, respectively. Prove that the radical axis of the circumcircles of $PKE$ and $QKF$ are perpendicular to $BC$.", "options": [], "answer": "Detailed solution", "solution": "**Claim 1.** *If $\\Xi$ is the $\\Xi$-point corresponding to vertex $A$, then $K\\Xi \\perp BC$.*\n\n*Proof*. Let $\\Xi'$ and $X$ be the reflections of $\\Xi$ with respect to $BC$ and $M$ respectively. According to the properties of the $\\Xi$-point, we know that these points lie on the circumcircle of $ABC$ and $X\\Xi' \\parallel BC$. Now, assume that $\\Xi\\Xi'$ intersects the circumcircle for the second time at $K'$. Yielding\n$$\n\\angle K'AM = \\angle K'AX = \\angle K'\\Xi'X = \\angle \\Xi\\Xi'X = 90^\\circ\n$$\nand therefore $K'$ is the same as $K$, and the claim is proven.\n\nLet $L$ be the second intersection of the circumcircles of $PKE$ and $QKF$. It can be easily seen that\n$$\n\\angle FLE = \\angle KPE + \\angle KQF = \\angle MAC + \\angle MAB = \\angle BAC\n$$\nand therefore $L$ lies on the circumcircle of $AEF$, which is the circle with diameter $AH$ ($H$ is the orthocenter of $ABC$). According to the claim, it is sufficient to show that $K, L, \\Xi$ are collinear, that is;\n$$\n\\angle \\Xi LE = \\angle \\Xi AE = \\angle KPE = 180^\\circ - \\angle KLE\n$$\n![](attached_image_1.png)\n\nIt yields that points $K, L, \\Xi$ are collinear, and the statement is proved.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32955, "subject": "Mathematics (Multi-modal)", "question": "Determine all sequences $(a_n)$ of positive integers such that\n$$\n\\frac{1}{2} < \\frac{\\gcd(a_r, a_s)}{\\gcd(r, s)} < 2,\n$$\nfor all positive integers $r, s$.", "options": [], "answer": "a_n = n for all n", "solution": "For a moment, assume $a_2 \\neq a_4$. Through the following solution, we shall several times use the fact that $\\frac{n}{2} < a_n < 2n$. We divide the solution into three parts;\n\ni. *Large primes part*; We prove that for each prime $p \\ge 5$ the only prime less than or equal to $p$ that divides $a_p, a_{p^2}, \\dots$ is $p$;\n\nii. We shall prove $a_{p^k} = p^k$ for all primes $p \\ge 5$;\n\niii. *Small primes part*; We resolve the problem for $p = 2, p = 3$ and conclude the proof.\n\nIn order to prove part one; for each prime $p$, we define sets of primes $A_p, B_p$ as follows;\n$$A_p = \\{q \\le p : q \\mid a_{p^k}, k = 1, 2, \\dots\\},$$\n$$B_p = \\{q : q \\mid a_{p^k}, k = 1, \\dots\\}$$\nThat is, $A_p = B_p \\cap [1, p]$. We shall firstly prove $A_p$'s as well as $B_p$'s are disjoint. Notice that for prime $p \\neq q$ we have $\\gcd(a_{p^k}, a_{q^l}) = 1$. Hence, $B_p$'s are disjoint. Analogously, $A_p$'s are disjoint. We shall then prove that $A_p$ is non-empty for $p \\ge 5$. Assume to the contrary that $A_p$ is empty for some $p \\ge 5$. Notice that $a_{p^{k+1}} \\neq a_{p^k}$ since $a_{p^k} < 2p^k < \\frac{1}{2}p^{k+1} < a_{p^{k+1}}$. Moreover, $a_{p^k}$ divides $a_{p^{k+1}}$ since otherwise, there is at least one prime $q > p$ such that $v_q(a_{p^k}) > v_q(a_{p^{k+1}})$. Hence, $\\gcd(a_{p^{k+1}}, a_{p^k}) \\le \\frac{a_{p^k}}{q} < \\frac{a_{p^k}}{p}$.\n\nOn the other hand,\n$$\n\\frac{\\gcd(a_{p^{k+1}}, a_{p^k})}{\\gcd(p^k, p^{k+1})} < \\frac{a_{p^k}}{p^{k+1}} < \\frac{2}{p} < \\frac{1}{2}.\n$$\nA contradiction. Thus, $a_{p^k} \\nmid a_{p^{k+1}}$. Hence, for each $n \\ge 1$ there would be a prime number $q_n > p$ that $q_n \\nmid \\frac{a_{p^n}}{a_{p^{n-1}}}$. Hence,\n$$\na_{p^n} \\ge q_1 \\cdots q_n > (p+1)^n.\n$$\nChoose $n$ suitably large to ensure that $(p+1)^n > 2p^n$, we are done. Thus, $A_p$ is not empty for $p \\ge 5$. Now, for each $N$; $\\bigcup_{p a$ and $v_3(a_{2C}) > d$ it follows that $2^{a-1} < 3^d < 2^{a+1}$. Analogously, choosing $D > b$, $v_2(a_{3D}) > c$ yields $\\frac{3^b}{2} < 2^c < 2 \\cdot 3^b$. It is now clear that if $a=1$ then $d=1$. If $2^c > \\frac{4}{3} \\cdot 3^b$ then $a_N \\geq 3 \\cdot \\frac{4}{3} \\cdot 3^b \\cdot T = 2N$, a contradiction. Hence, $2^c \\leq \\frac{4}{3} \\cdot 3^b$.\n\nSince the sequence $\\{(n \\cdot \\log_2 3)\\}$ is dense on $(0, 1)$, for all $\\varepsilon > 0$ there is an integer $d$ such that $\\{d \\cdot \\log_2 3\\} \\in (1 + \\log_2 \\frac{2}{3}, 1 + \\log_2(\\varepsilon + \\frac{2}{3}))$. Then, $\\frac{2}{3} \\cdot 2^{a_1} < 3^d < (\\frac{2}{3} + \\varepsilon)2^{a_1}$, for some $a_1$. Let $N = 2^{a_1} \\cdot 3^b \\cdot T$ now, by choosing $\\varepsilon$ small enough, it follows that $v_3(a_N) = d$. Now, if $2^{v_2(a_N)} < \\frac{3}{4+\\varepsilon}3^b$, for some $\\varepsilon > 0$ it follows that $a_N < \\frac{3}{4+\\varepsilon}3^b \\cdot (\\frac{2}{3} + \\varepsilon)2^{a_1} \\cdot T$, it follows that $a_N < \\frac{N}{2}$. A contradiction. Hence, we find that $\\frac{3}{4+\\varepsilon}3^b \\leq 2^{v_2(a_N)} \\leq \\frac{4}{3} \\cdot 3^b$.\n\nNow, choose $c$ such that $\\{c \\cdot \\log_3 2\\} \\in (1 + \\log_3 \\frac{2}{3}, 1 + \\log_3 \\frac{3}{4+\\varepsilon})$, it follows that $\\frac{2}{3} \\cdot 3^{b_1} < 2^c < \\frac{3}{4+\\varepsilon} \\cdot 3^{b_1}$. Choosing $N = 2^{a_1}3^{b_1}T$, it follows that $v_2(a_N) \\in \\{c, c+1\\}$. On the other hand, from\n$$\n\\frac{3}{4+\\varepsilon}3^{b_1} \\leq 2^{v_2(a_N)} \\leq \\frac{4}{3} \\cdot 3^{b_1}\n$$\nWe find that $v_2(a_N) = c + 1$. But then $2^c = \\frac{2^{v_2(a_N)}}{2} > \\frac{2}{3} \\cdot 3^{b_1}$. Yielding $2^{v_2(a_N)} > \\frac{4}{3} \\cdot 3^{b_1}$, a contradiction.\n\nFinally, We now rule out the case $a_3 = 5$. Suppose $a_3 = 5$. As $\\text{gcd}(a_{3k}, a_3) > 1$, the $a_{3k}$ are all divisible by 5. By the preceding, $p \\mid a_p$ for all primes $p \\neq 3$; as $\\text{gcd}(a_{3k}, a_p) = 1$ for these primes, the $a_{3k}$ are all powers of 5; say, $a_{3k} = 5^{m_k}$. By Kronecker's density theorem, as $n$ runs through the positive integers, the fractional parts $\\{n \\log_3 5\\}$ form a dense set in $(0, 1)$. Hence $\\log_3 2 < \\{n \\log_3 5\\} < \\log_3 \\frac{5}{2}$ for some $n$. Let $k = \\lfloor n \\log_3 5 \\rfloor$ and carry out obvious calculations to get $5^{n-1} < \\frac{1}{2} \\cdot 3^k$ and $2 \\cdot 3^k < 5^n$. As $\\frac{1}{2} \\cdot 3^k < a_{3k} < 2 \\cdot 3^k$, it follows that $5^{n-1} < \\frac{1}{2} \\cdot 3^k < 5^{m_k} < 2 \\cdot 3^k < 5^n$, so $n-1 < m_k < n$. This contradiction implies $a_3 = 3$ and $A_3 = B_3 = \\{3\\}$, as desired.\n\nFinally, by the preceding, $A_5 = \\{5\\}$, as it is non-empty and disjoint from both $A_2$ and $A_3$. Now, $a_5 < 10$ forces $a_5 = 5$, so $B_5 = \\{5\\}$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32956, "subject": "Mathematics (Multi-modal)", "question": "Let $x_1 < x_2 < \\dots < x_n$ be real numbers. Define the function $f : \\mathbb{R} \\rightarrow \\mathbb{R}$\n$$\nf(x) = \\left| \\frac{(x-x_2)(x-x_3)\\cdots(x-x_n)}{(x_1-x_2)(x_1-x_3)\\cdots(x_1-x_n)} \\right| + \\cdots + \\left| \\frac{(x-x_1)(x-x_2)\\cdots(x-x_{n-1})}{(x_n-x_1)(x_n-x_2)\\cdots(x_n-x_{n-1})} \\right|\n$$\nProve that there exists an $i \\in \\{1, \\dots, n-1\\}$ such that for all $x \\in (x_i, x_{i+1})$, we have $f(x) < \\sqrt{n}$.", "options": [], "answer": "Detailed solution", "solution": "If for some $i$, $x_i = x_{i+1}$ then we have nothing to do. Assume now, that $x_i \\neq x_{i+1}$, $0 \\le i \\le n+1$. Consider the polynomial $P(x) = Q_1(x)^2 + \\dots + Q_n(x)^2 - 1$. It at most has $2(n-1)$ roots and it is easy to verify that $x_1, \\dots, x_n$ are roots. Hence, there is $i$, $1 \\le i \\le n-1$ such that $P(x) < 0$ for all $x \\in (x_i, x_{i+1})$. On the other hand, according to Cauchy-Schwartz inequality,\n$$\n\\left( \\sum_{k=1}^{n} |Q_k(x)| \\right)^2 \\le n(Q_1(x)^2 + \\dots + Q_n(x)^2) < n.\n$$\nWe are done.\n\nProof Details.\n\nFirst, note that using Cauchy's inequality, it is sufficient to show that:\n$$\n\\left( \\frac{(x-x_2)(x-x_3)\\dots(x-x_n)}{(x_1-x_2)(x_1-x_3)\\dots(x_1-x_n)} \\right)^2 + \\dots + \\left( \\frac{(x-x_2)(x-x_3)\\dots(x-x_n)}{(x_1-x_2)(x_1-x_3)\\dots(x_1-x_n)} \\right)^2 \\le 1\n$$\nLet's denote this function by $h(x)$ and define $g(x) = h(x) - 1$. This is a polynomial of degree $2n-2$ with positive coefficients, and $x_1, x_2, \\dots$ are its roots. If this polynomial is decreasing at $x_n$ and increasing at $x_{i+1}$, then, there are at least two roots in this interval because the function is negative at the beginning of the interval and at the end of the interval, the function is also negative. By contradiction, if it becomes positive somewhere, by Intermediate Value Theorem (IVT) it must have at least two roots in this interval.\nIf the function is increasing or decreasing at both ends of an interval, it must have at least one root of this interval. For example, if it is increasing, then the sign of function near $x_i$ is positive and near $x_{i+1}$ is negative, and by intermediate value theorem it should have a root. According to the following claim, the function is decreasing at $x_1$ and increasing at $x_n$. Therefore, if we group the points based on whether the function is increasing or decreasing, the number of increasing blocks and decreasing blocks are equal.\nThe function has one root in any interval where its ends are within a block, and two roots in any interval where its beginning is in a decreasing block and its end is in an increasing block. Therefore, we have at least $n-1$ roots inside intervals together with $x_1, x_2, \\dots, x_n$. We get $2n-1$ roots for a polynomial of degree $2n-2$, contradiction.\n\nLemma.\n\nThe function $h$ is decreasing before $x_1$ and increasing after $x_n$.\n\nProof.\n\nFirst, note that:\n$$\n\\frac{(x-x_2)(x-x_3)\\dots(x-x_n)}{(x_1-x_2)(x_1-x_3)\\dots(x_1-x_n)}\n$$\nis a polynomial of degree $n-1$ with $n-2$ roots. Its derivative therefore has one root in each interval $(x_i, x_{i+1})$. Since the derivative cannot have any other roots due to its degree, the polynomial itself is monotonic before $x_1$ and after $x_n$. Therefore,\n$h$ is also monotone. Since $h$ is an even degree polynomial with a positive leading coefficient, in the first interval, it is decreasing, and in the second interval, it must be increasing. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32957, "subject": "Mathematics (Multi-modal)", "question": "In triangle $ABC$, altitudes $AD$, $BE$, and $CF$ meet at $H$. Line $EF$ and the perpendicular bisector of $HD$ intersect at point $P$. Point $N$ is the center of the nine-point circle of triangle $ABC$. Point $L$ is on the circumcircle of the triangle such that $\\angle PLN = 90^\\circ$ and points $A$, $L$ are on opposite sides of line $PN$. Prove that the quadrilateral $ANDL$ is cyclic.", "options": [], "answer": "Detailed solution", "solution": "Let $B'$, $C'$ be the intersections of the perpendicular bisector of $HD$ with $BH$, $CH$ respectively.\n![](attached_image_1.png)\nDenote by $M$, $M'$, $M_0$ the midpoints of $BC$, $B'C'$, $EF$, respectively. Since $N$ is the center of the circle $FEC'B'$, we have\n$$\n\\angle NM_0P = \\angle NM'P = 90^\\circ\n$$\nLet the intersections of $HM$ with the circumcircle of $ABC$ be $K$, $A'$ (where $A$, $A'$ are on opposite sides of $BC$). We know that $\\angle AKM = 90^\\circ$ and quadrilateral $AEFK$ is cyclic. We have\n$$\n\\begin{aligned}\n\\angle FKE &= \\angle FAE \\\\\n\\angle KEF &= \\angle KAF = \\angle KCB\n\\end{aligned}\n$$\nSo triangles $KBC$, $KFE$ are similar, and consequently, we have $\\angle KM_0F = \\angle KMB = \\angle KM'B'$, resulting $KM_0M'P$ is cyclic.\n\n**Claim 2.** If $A_0$ is the intersection of the line through $A$ parallel to $BC$ with the circumcircle, then $N$, $L$, $A_0$ are collinear.\n*Proof*. Let $O$ be the circumcenter of $ABC$, and let the intersections of $OM$ with the circumcircle be $X$, $Y$ (where $X$ is on the arc of $BC$ that contains $A$). We know $N$ is the midpoint of $OH$, thus\n$$\n\\angle NM'K = \\angle OMK.\n$$\nOn the other side,\n$$\n\\begin{aligned}\n\\frac{\\widehat{XK}}{2} &= \\frac{\\widehat{AK}}{2} + \\frac{\\angle B - \\angle C}{2} \\\\\n\\frac{\\widehat{YA'}}{2} &= \\frac{\\angle B - \\angle C}{2} \\\\\n\\angle OMK &= \\frac{\\widehat{YA'}}{2} + \\frac{\\widehat{XK}}{2} = \\frac{\\widehat{AK}}{2} + (\\angle B - \\angle C)\n\\end{aligned}\n$$\n\nAlso, since $\\frac{AA_0}{2} = \\angle B - \\angle C$ and $\\angle KLN = \\angle OMK$, then $L$, $N$, $A_0$ are collinear.\nLet $H'$ be the reflection of $H$ with respect to $BC$, it follows that this point is on the circumcircle and $A_0$, $O$, $H'$ are collinear. We have $\\angle ADN = \\angle AH'A_0 = \\angle ALA_0$, which means $ANDL$ is indeed cyclic and the statement is proved.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32958, "subject": "Mathematics (Multi-modal)", "question": "Let $n$, $m$ be positive integers such that $n + m$ is odd. Assume that the edges of a complete bipartite graph $K_{n,m}$ are labeled by $1$ and $-1$ such that the sum of the numbers written on all edges is zero. Show that this graph has a spanning tree such that the sum of the numbers on its edges is $0$.\n\n*A spanning tree is a sub-tree of the graph that contains all the vertices.*", "options": [], "answer": "Detailed solution", "solution": "We define an operation on spanning trees: we add an edge to it. This will certainly create a cycle. Now, we remove one of the edges of the cycle to obtain another spanning tree. The sum of the numbers written on the edges of the spanning tree changes by at most two. With this operation, it is possible to reach any spanning tree from any other spanning tree: Take an edge from the first tree that is not in the second tree, and add it to the second tree. In the cycle that is generated by this move, one edge does not belong to the first tree, because the first tree has no cycles. Remove that edge and continue until the two trees become one.\nLet $T$ be a spanning tree, we define $S(T)$ the sum of the numbers written on the edges of $T$. Based on discrete connectivity, it is sufficient to say that there is a tree $T$ with $S(T) \\le 0$ and a tree $T'$ with $S(T) \\ge 0$. To see this, note that the total sum of $S(T)$ when $T$ varies between all spanning trees is equal to the sum of the edges times the number of the spanning trees that include a specific edge. Therefore, the total sum is zero and there should be a tree $T$ with $S(T) \\le 0$ and a tree $T'$ with $S(T) \\ge 0$.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 32959, "subject": "Mathematics (Multi-modal)", "question": "$n > 10$ is a positive integer. $n$ lines are drawn on the plane such that no three are concurrent and no two are parallel. Among the finite regions formed by these lines, at least $\\frac{n^2}{8} + 1$ of them were blacked. We call a triangle formed by three lines *good* if there is only one black region inside of it. Prove that we at least have $\\frac{n}{2}$ good triangles.\n\n*Note. We call a region finite if its area is finite.*", "options": [], "answer": "Detailed solution", "solution": "First, we prove that for every line $\\ell$, there exist lines $d_1$, $d_2$ such that the triangle $\\ell d_1 d_2$ has exactly one black region inside it. On one of the two sides of $\\ell$, there is a black region. Without loss of generality, assume this region is above $\\ell$. To see this, take the closest point to $\\ell$ which is the vertex with the longest distance in the black region. Suppose this point is the intersection of $d_1$, $d_2$. The triangle $\\ell d_1 d_2$ clearly has this property.\n\nNow, let $x$ be the number of lines that have black regions on both sides. According to the point above, the number of good triangles is at least $\\frac{2x + (n - x)}{3}$. Therefore, it suffices to prove that $x > \\frac{n - 1}{2}$.\n\nConsider all the lines that have a black region on only one of their sides, and consider the intersection of the sides of these lines in which these black regions exist. This intersection will be an $n - x$-gon which contains all the black regions inside it. In this case, the remaining $x$ lines eventually divide this polygon into $\\frac{x(x + 1)}{2} + 1$ regions. Therefore, $\\frac{n^2}{x} \\le \\frac{x(x + 1)}{2}$, which implies that $x > \\frac{n - 1}{2}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32960, "subject": "Mathematics (Multi-modal)", "question": "Let $ABC$ be an acute-angled scalene triangle. The internal angle bisector of vertex $A$ intersects the opposite side $BC$ at $E$ and the minor arc $BC$ of the circumcircle of $\\triangle ABC$ at $M$. Suppose $D \\neq M$ is a point on the minor arc $BC$ such that $ED = EM$. Also, let $P$ be a point on the line segment $AD$ such that $\\angle ABP = \\angle ACP \\neq 0$. If $O$ is the circumcenter of $\\triangle ABC$, prove that $OP \\perp AM$.", "options": [], "answer": "Detailed solution", "solution": "From $O$, we draw a perpendicular to $AM$ which intersects $AD$ and $BC$ at $P'$ and $X$ respectively. Since $O$ and $E$ are both on the perpendicular bisector of $MD$, then $OE \\perp MD$. Since $E$ is the orthocenter of $\\triangle OXM$ (this implies $XE \\perp OM$, $ME \\perp OX$, and $OE \\perp XM$), and we have $OE \\perp MD$, it implies $XM$ and $MD$ are the same line. Consequently $X$, $M$, $D$ are collinear. So we have:\n$$\nXP' \\cdot XO = XD \\cdot XM\n$$\nAlso, $XD \\cdot XM = XB \\cdot XC$. Thus, $XP' \\cdot XO = XB \\cdot XC$. This implies $OP'BC$ is cyclic. So:\n$$\n\\begin{aligned}\n\\angle P'BC &= 180^\\circ - \\angle P'OC \\\\\n&= 180^\\circ - (\\angle P'OM + \\angle MOC) \\\\\n&= 180^\\circ - (90^\\circ - (\\frac{B-C}{2}) + \\angle A) \\\\\n&= 90^\\circ + (\\frac{B-C}{2}) - \\angle A\n\\end{aligned}\n$$\n$$\n\\Rightarrow \\angle P'BO = \\angle P'BC - (90^\\circ - \\angle A) = \\frac{B-C}{2}\n$$\n$$\n\\Rightarrow \\angle P'BA = \\angle OBA - \\angle OBP' = (90^\\circ - C) - \\frac{B-C}{2} = (90^\\circ - B) + \\frac{B-C}{2} = \\angle P'CA\n$$\n\nNow we show that point $P$ on $AD$ is unique. Assume for contradiction that this is not the case, and for two distinct points $Y$ and $Z$ on $AD$ ($Y \\neq Z$) we have $\\angle YBA = \\angle YCA$ and $\\angle ZBA = \\angle ZCA$. Then we have:\n$$\n\\frac{ZY}{YA} = \\frac{BZ}{BA} \\cdot \\frac{\\sin \\angle ZBY}{\\sin \\angle YBA} = \\frac{CZ}{CA} \\cdot \\frac{\\sin \\angle ZCY}{\\sin \\angle YCA}\n$$\nGiven $\\angle YBA = \\angle YCA$ and $\\angle ZBA = \\angle ZCA$. If we assume $\\angle ZBY = \\angle ZCY$, then:\n$$\n\\frac{BZ}{BA} = \\frac{CZ}{CA}\n$$\n$$\n\\Leftrightarrow \\frac{BZ}{BA} = \\frac{CZ}{CA} \\Leftrightarrow \\frac{BZ}{CZ} = \\frac{BA}{CA}\n$$\nSo $Z$, and similarly $Y$, lie on the Apollonian circle with respect to vertex $A$ and segment $BC$ (locus of points $K$ such that $KB/KC = AB/AC$). Since $Y$, $Z$ are on $AD$, and also on this Apollonian circle, this leads to a contradiction if $Y$, $Z \\neq A$ and $AD$ is not that Apollonian circle. (Note that $Y \\neq A$ and $Z \\neq A$. Also, if one of these points lies on $BC$, it implies $AB = AC$, which contradicts the problem's assumption if $AB \\neq AC$.)\nThus $P \\equiv P'$ and the proof is complete. ■", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 32961, "subject": "Mathematics (Multi-modal)", "question": "Initially, numbers $2, 3, \\ldots, 99$ are written on the board. In each step, one of the following operations would be performed;\n\ni. We choose an integer $i$, $2 \\le i \\le 89$ and if numbers $i$ and $i+10$ are both on the board, we remove both of them from the board;\n\nii. We choose an integer $i$, $2 \\le i \\le 98$, $10 \\nmid i$ and if the numbers $i$ and $i+1$ are both on the board, we remove both of them from the board;\n\nHaving performed these operations, determine the maximum number of numbers that can be removed from the board?", "options": [], "answer": "96", "solution": "Consider a $10 \\times 10$ table and number its cells sequentially and row by row from one to $100$. The problem is equivalent to this: *if we remove two opposite corners of this table, determine the number of dominoes can be placed in the table without any overlap.* Using coloring, it follows that at least two cells cannot be covered, and one can easily cover all but two cells.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32962, "subject": "Mathematics (Multi-modal)", "question": "In the triangle $ABC$ the point $M$ is the midpoint of $AB$, and the point $B'$ is the foot of the altitude from $B$ to $AC$. The circle ($CB'M$) intersects $BC$ again at $D$. The circles ($ABD$) and ($CB'M$) intersect again at $K$. The line parallel to $AB$ passing through $C$ intersects circle ($CB'M$) again at $L$. Prove that $KL$ bisects the segment $CM$.", "options": [], "answer": "Detailed solution", "solution": "Since $CL \\parallel AB$ and $A$, $B$, $D$, $K$ are concyclic, we have\n$$\n180^\\circ - \\angle AKD = \\angle ABD = \\angle BCL = \\angle DKL\n$$\nThus, $\\angle AKD + \\angle DKL = 180^\\circ$. This implies that $A$, $K$, $L$ are collinear.\n\n![](attached_image_1.png)\n\nNotice that $B'M$ is the median to the hypotenuse and $CB'ML$ is cyclic, we have\n$$\n\\angle MLC = \\angle MB'A = \\angle MAB'\n$$\nthe quadrilateral $AMLC$ is a parallelogram and we can deduce the problem. ■", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32963, "subject": "Mathematics (Multi-modal)", "question": "We call a positive integer *n lucky* if it has at least two prime divisors and can be written in the form\n$$\nn = p_1^{\\alpha_1} + \\cdots + p_k^{\\alpha_k}\n$$\nwhere $p_1, \\dots, p_k$ are distinct prime divisors of $n$. (Note that $n$ may have other prime divisors than $p_1, \\dots, p_k$.) Prove that for every prime number $p$, there exists a lucky number $n$ such that $p \\mid n$.", "options": [], "answer": "Detailed solution", "solution": "We claim that there exist $n$ with three prime factors. Choose a prime $p_1$. Using quadratic reciprocity and Dirichlet's theorem on arithmetic progressions, choose a prime $p_2$ such that\n$$\n\\left( \\frac{p_1}{p_2} \\right) = \\left( \\frac{p_2}{p_1} \\right) = 1\n$$\nand choose $p_3$ such that\n$$\n\\left(\\frac{p_1}{p_3}\\right) = -1, \\quad \\left(\\frac{p_2}{p_3}\\right) = 1\n$$\nNow, choose $\\alpha_1$ such that its exponents modulo $p_2, p_3$ are equal to $\\frac{p_2-1}{2}, \\frac{p_3-1}{2}$ respectively, and choose $\\alpha_2, \\alpha_3$ similarly. Then $n = p_1^{\\alpha_1} + p_2^{\\alpha_2} + p_3^{\\alpha_3}$ satisfies the condition required in the problem. ■", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32964, "subject": "Mathematics (Multi-modal)", "question": "For every natural number $n > 1$, find all subsets $\\{r_0, r_1, \\dots, r_k\\}$ of distinct positive integers such that\n$$\nn^n + n^{n-1} + \\dots + n + 1 \\mid n^{r_k} + \\dots + n^{r_1} + n^{r_0}\n$$", "options": [], "answer": "All and only those sets with exactly n+1 elements whose exponents form a complete residue system modulo n+1; equivalently, the residues {r_i mod (n+1)} are a permutation of {0, 1, ..., n}.", "solution": "First, note that since $S_n = n^n + n^{n-1} + \\dots + 1 = \\frac{n^{n+1}-1}{n-1}$, it divides $n^{n+1} - 1$. If $a \\equiv b \\pmod{n+1}$, then $n^a \\equiv n^b \\pmod{n^{n+1}-1}$, and thus $n^a \\equiv n^b \\pmod{S_n}$. Also, since $n$ and $S_n = n^n + n^{n-1} + \\dots + 1$ are coprime, we can, after a suitable rotation of exponents modulo $n+1$, assume $r_0 = 0$.\nTherefore, we can assume $0 \\le r_i \\le n$. If\n$$\nn^{r_0} + \\dots + n^{r_n} = k(n^n + n^{n-1} + \\dots + 1) \\quad (1)\n$$\nwe have $k < n+1$.\n\nLet $N_p$ be the number of $r_i$'s equal to $p$. Considering both sides of equation (1) modulo $n$: LHS $\\equiv N_0 \\cdot n^0 \\equiv N_0 \\pmod{n}$. RHS $\\equiv k(1) \\pmod{n}$. So $N_0 \\equiv k \\pmod{n}$. If $N_0 < n$ and $k < n$, then $N_0 = k$.\nSimilarly, if $N_1$ is the number of times 1 appears, consider modulo $n^2$: LHS $\\equiv N_0 \\cdot n^0 + N_1 \\cdot n^1 \\pmod{n^2}$. RHS $\\equiv k(n^0 + n^1) \\pmod{n^2}$. So, $N_0 + N_1n \\equiv k + kn \\pmod{n^2}$. Since $N_0 = k$, we have $k + N_1n \\equiv k + kn \\pmod{n^2}$. This implies $N_1n \\equiv kn \\pmod{n^2}$, which means $n^2|(N_1 - k)n$. So $n|(N_1 - k)$. If $N_1 < n$ and $k < n$, then $|N_1 - k| < n$. For $n|(N_1 - k)$ to hold, we must have $N_1 - k = 0$, so $N_1 = k$.\nBy induction, it is proven that the frequency of all numbers $p \\in \\{0, 1, 2, \\dots, n\\}$ among the $r_i$'s (i.e., $N_p$) is equal to $k$. Since there are $n+1$ values $r_i$, and each of the $n+1$ possible residues $0, \\dots, n$ occurs $k$ times, we have $(n+1)k = n+1$. This implies $k=1$. So, each residue $0, 1, \\dots, n$ appears exactly once among $r_0, \\dots, r_n$. Thus, the $r_i$ are distinct and form a permutation of $\\{0, 1, \\dots, n\\}$.\nNow, the solution to the original problem is all sets $\\{r_0, \\dots, r_n\\}$ that form a complete residue system modulo $n+1$. ■", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32965, "subject": "Mathematics (Multi-modal)", "question": "Initially, there are $n$ glasses numbered $1, 2, \\ldots, n$, and the capacity of glass number $i$ is $i$ liters. A total of $n$ liters of water is distributed among these glasses such that the volume of water in each glass is an integer. In each step, we can pour water from one glass into another until the source glass is empty or the target glass is full.\n\na. Prove that from any configuration (where the volume of water in each glass is an integer), it is possible to reach a configuration in which each glass contains exactly $1$ liter of water, in at most $\\frac{4n}{3}$ steps.\n\nb. Prove that from any configuration (where the volume of water in each glass is an integer), it is possible to reach any other configuration with the same property in at most $\\frac{5n}{3}$ steps.", "options": [], "answer": "Detailed solution", "solution": "We call a glass that is not empty \"non-empty\" and a glass that has been emptied \"empty\". Each glass holds one liter of water, and all the water is in $n$ containers (glasses), each of which can be either non-empty or empty.\n\nSuppose in the initial state we have $f_1$ non-empty glasses, and we want to reach a state with $f_2$ non-empty glasses.\n\n**Algorithm 1: Reaching the balanced state from any state**\nWe consider a container that is initially empty. Then, in each step, we pour a one-liter glass into an empty container. Thus, with each step, $2$ liters are transferred from one container to another.\nConsequently, at most $2(n - f_1)$ steps are needed to reach the balanced state.\n\n**Algorithm 2: Reaching the target state from the balanced state**\nIn each step, we can pour a non-empty glass into an empty container. Consequently, at most $n - f_2$ steps are required to reach the target state.\n\n**Algorithm 3: Reaching the objective from the balanced state using containers with the highest capacity**\nInitially, we consider the non-empty containers with the highest capacity. If there is a container with $n - i$ liters of water, we pour it into a container with a capacity of $i$ to fill it up. We continue this process until we reach the target state. This can be done in $n - f_2 + 1$ steps.\n\n**Algorithm 4: Reaching the balanced state from any state using glasses with more water**\nStarting from an arbitrary state, we select the container with the least volume of water. We empty this container and transfer its water to the container that has the most water. We continue this method until we reach the balanced state, which requires at most $n - f_1$ steps.\n\n**Algorithm 5: Reaching the goal state from any state**\nSuppose the final state consists of containers with liters $a_1, a_2, \\dots, a_{f_2}$, and we sort them into $b_1, b_2, \\dots, b_{f_2}$. If we have a glass with capacity $n$, we can eventually reach the target state through steps in which we transfer glasses with different liters to the $a_i$ glasses. At most, $2f_2$ steps are needed.\n\n**Part (a):**\nWe assume by contradiction that:\n$$\n2(n - f_1) > \\frac{4n}{3} \\Rightarrow f_1 < \\frac{n}{3}\n$$\nand also:\n$$\nf_1 + (n - 1) > \\frac{4n}{3} \\Rightarrow f_1 > \\frac{n}{3} + 1\n$$\nwhich are contradictory, so the assumption is false.\n\n**Part (b):**\nAgain, we assume by contradiction:\nBy running algorithms 1 and 4, we have:\n$$\n2(n - f_1) + (n - f_2) > \\frac{5n}{3} \\Rightarrow 2f_1 + f_2 < \\frac{4n}{3} \\quad (1)\n$$\nBy running algorithms 2 and 3, we have:\n$$\nf_1 + (n - 1) + (n - f_2) > \\frac{5n}{3} \\Rightarrow f_1 + \\frac{n}{3} - 1 > f_2 \\quad (2)\n$$\nBy running algorithms 2 and 5, we have:\n$$\nf_1 + 2f_2 > \\frac{5n}{3} \\quad (3)\n$$\nFrom relations (1) and (3):\n$$\n\\frac{5n}{3} + f_1 < 2(f_1 + f_2) < \\frac{4n}{3} + f_2 \\Rightarrow f_1 + \\frac{n}{3} < f_2 \\quad (4)\n$$\nwhich shows that (2) and (4) are in contradiction. Thus, the proposition is proven. ■", "topic": "Geometry", "subtopic": "Solid Geometry" }, { "id": 32966, "subject": "Mathematics (Multi-modal)", "question": "In the scalene triangle *ABC*, the in-circle touches side *BC* at the point *D*. The angle bisectors of $\\angle ABC$ and $\\angle ACB$ meet the circumcircle of the triangle at the points $T_B$ and $T_C$, respectively. Let $AX_B$ and $AX_C$ be diameters in the circumcircles of triangles $ACD$ and $ABD$, respectively. Prove that the triangles $BT_CX_C$ and $CT_BX_B$ are similar.", "options": [], "answer": "Detailed solution", "solution": "Let $N$ and $Y$ be the midpoint of the arc $\\widearc{BAC}$ and the intersection of the lines $ID, T_bN$, respectively. Now, since $\\angle YT_bA = \\frac{\\widearc{AN}}{2} = \\frac{B-C}{2} = \\angle AIY$, therefore $AYT_bI$ is cyclic, so $\\angle AYD = \\angle AT_bI = \\angle C$. Thus, $AYCD$ is cyclic and $AYX_bC$ is a rectangle, so $AYT_b \\cong CX_bT_b$ and $\\angle CT_bX_b = \\angle AT_bY = \\frac{B-C}{2}$. Similarly $\\angle BT_cX_c = \\frac{B-C}{2}$. By easy angle chasing, we get $BT_cX_c \\sim CT_bX_b$ which completes the proof.\nSuppose the feet of the perpendiculars from the vertex $A$ to the lines $BC, CD$, and $DA$ are respectively $X, Y, Z$.\nThe quadrilaterals $ABXY$ and $ADZC$ are cyclic, and $AC$ is a diagonal of both. Thus we have:\n$$\n\\angle ABX = \\angle ACX, \\quad \\angle ADZ = \\angle ACZ\n$$\nNow, since the quadrilaterals are cyclic (respectively with circles of diameter $AC$), we also have:\n$$\n\\angle ABX + \\angle ADZ = 90^\\circ\n$$\nMoreover, since $X$ and $Y$ lie on the angle bisector of $\\angle ABC$, and $Z$ and $W$ lie on the angle bisector of $\\angle ADC$, therefore:\n$$\n\\angle XAY = \\angle ZAW\n$$\nSo we conclude:\n$$\n\\angle XAY = \\angle ZAW = 45^\\circ\n$$\nIt suffices to prove the following; If $D, E, F$ are the points where the incircle touches the sides $BC, CA, AB$ respectively, then by Iran's lemma, we know that $D, E, F$ are collinear. Also, we know that $X$ and $Y$ both lie on the angle bisector of $\\angle ABC$, and $Z$ and $W$ on that of $\\angle ADC$. Therefore:\n$$\nXY \\parallel ZW\n$$\nit can now be concluded that the quadrilateral is an isosceles trapezoid. ■", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32967, "subject": "Mathematics (Multi-modal)", "question": "Let $ABCD$ be a parallelogram. Perpendiculars $AX$ and $AY$ are drawn from $A$ to $BC$ and $CD$, respectively (so $X$ lies on $BC$ and $Y$ lies on $CD$). Parallel lines $l$ and $d$ are drawn such that $l$ is perpendicular to $XY$. Line $l$ intersects $AB$ and $BC$ at $K$ and $L$ respectively, and line $d$ intersects $AD$ and $DC$ at $P$ and $Q$ respectively. Furthermore, line $l$ bisects segment $AX$, and line $d$ bisects segment $AY$. Prove that the circumcircles of $\\triangle DPQ$ and $\\triangle BKL$ are tangent to each other.", "options": [], "answer": "Detailed solution", "solution": "Let $M$ be the intersection of diagonals $AC$ and $BD$. $H$ is the foot of the perpendicular from $A$ to $BD$, and $R$ is the intersection of $KL$ and $XY$. $E$ and $F$ are the midpoints of $AX$ and $AY$ respectively. Since $ME$ is a line segment in $\\triangle AXC$ (connecting $M$ on $AC$ to $E$ midpoint of $AX$) and $MF$ in $\\triangle AYC$ (connecting $M$ on $AC$ to $F$ midpoint of $AY$). If $\\angle MEA = 90^\\circ$ and $\\angle MFA = 90^\\circ$, this means $ME \\perp AX$ and $MF \\perp AY$. If $AEMHF$ is cyclic, it implies these points lie on a circle. Given $\\angle MEA = \\angle MFA = 90^\\circ$, $AEMF$ is cyclic with diameter $AM$. If $H$ is also on this circle, then $\\angle MHA = 90^\\circ$ (which is true if $H$ is foot of perp from $A$ to $MD$, and $M, D, B$ are collinear) or $\\angle AHM = 90^\\circ$. $H$ is foot of perp from $A$ to $BD$, so $\\angle AHM = 90^\\circ$ if $M$ is on $BD$. This is true. So, $A, E, M, H, F$ are concyclic on the circle with diameter $AM$.\n\nAlso, due to $AKRY$ and $AXCY$ being cyclic quadrilaterals, we have:\n$$\n\\angle BKE = \\angle AYR \\quad (\\text{Perhaps } BK \\text{ is tangent or related to circle } AKRY \\text{ or specific points})\n$$\nThe chain of equalities given:\n$$\n\\begin{align*} \n\\angle AYR &= \\angle AYX \\quad (R \\text{ is on } XY) \\\\ \n\\angle AYX &= \\angle ACX \\quad (\\text{from cyclic } AXY) \\\\ \n\\angle ACX &= \\angle AME \\quad (\\text{Perhaps related to } ME \\parallel CX \\text{ or other properties}) \n\\end{align*}\n$$\nSo $\\angle BKE = \\angle AME$. Thus $K$, and similarly $P$, lie on the circle with diameter $AM$. (This means $\\angle AKM = 90^\\circ$ or $\\angle AEM = 90^\\circ$ or some angle subtended by $AM$ at $K$ or $E$ is $90^\\circ$. We have $\\angle AEM = 90^\\circ$. If $\\angle AME = \\angle BKE$, this does not directly put $K$ on circle with diameter $AM$. This step needs clarification). Let's assume $K, P$ are on circle with diameter $AM$. Then:\n$$\n\\angle HKE = \\angle EMB \\quad (\\text{Specific geometric deduction})\n$$\n---\n$\\angle EMB = \\angle MBL$ (Alternate segment or similar triangles)\nAnd consequently **HKBL**, and similarly **HPDQ**, are cyclic. Since **AKHP** is cyclic, we have:\n$$\n\\angle KHP = 180^{\\circ} - \\angle DAB = \\angle KHP = \\angle KBH + \\angle PDH\n$$\nThis equality shows that the circumcircles of $\\triangle BKL$ and $\\triangle DPQ$ are tangent to each other at $H$. And the proof is complete.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32968, "subject": "Mathematics (Multi-modal)", "question": "Sahand and Gholam play on a $1403 \\times 1403$ grid, initially with all cells white. For each row and each column, there is a button (total $2 \\times 1403 = 2806$ buttons). Starting with Sahand, each player, in his turn, presses a button that has not yet been pressed. Then it's the other player's turn, until all buttons are pressed. When Sahand presses a button for a row or a column, all cells in that row or column turn to black, regardless of their color before pressing the button. When Gholam presses a button for a row or a column, all cells in that row or column turn to red, regardless of their color before pressing the button.\n\nAt the end, after all buttons have been pressed, Gholam's score is the number of red cells minus the number of black cells. Sahand's score is the number of black cells minus the number of red cells. If Gholam and Sahand both play their best, what would be the minimum score of Gholam? (In other words, find the least score Gholam can guarantee for himself, regardless of Sahand's moves.)", "options": [], "answer": "1403", "solution": "In general, for an $n \\times n$ table, we claim the answer is $n$. First, we describe Gholam's strategy to achieve this score. Whenever Sahand presses a row button, Gholam in his next turn presses a column button. By the time Sahand presses a column button, Gholam presses a row button.\n\nSuppose that Sahand picks $k$ rows and $n-k$ columns. Then from a column Gholam picks corresponding to Sahand's $i$-th row choice, at least $n-k+i$ cells remain red, since only rows Sahand picks after this can turn a cell in this column black. On the other hand, if Gholam picks a row which is the $j$-th row chosen, we get at least $j$ new red cells because $n-j$ columns remain, any of which could be black or already counted. Therefore, in total, we at least yield $(1+2+\\cdots+n-k)+(n-k+1+n-k+2+\\cdots+n) = \\frac{n^2+n}{2}$ red cells, which is at least $n$ more than the black cells.\n\nTo show that Gholam cannot performs better, we must show Sahand has a strategy that ensures his score is at least $-n$. Suppose Sahand makes the first row black. From then on, whenever Gholam chooses a row, Sahand chooses a column, and vice-versa. Analogously, if Gholam chooses $k$ columns and his last choice is a column, at least $(1+2+\\cdots+n-k)+(n-k+1+n-k+2+\\cdots+n-1)$ cells become black. If Gholam's last choice is a row, at least $(1+2+\\cdots+(n-k-1))+(n-k+1+n-k+2+\\cdots+n-1+n)$ cells become black. Both these sums are at least $\\frac{n^2-n}{2}$.\n\nOther ways exist to prove this part, for example, by induction and analysis after Gholam's first move.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32969, "subject": "Mathematics (Multi-modal)", "question": "Let $p$ be a prime number. Find all positive integers $x, y > 1$ such that\n$$\n\\frac{x^2 - 1}{y^2 - 1} = (p + 1)^2.\n$$", "options": [], "answer": "For odd primes p: x = (p^2 + 2p − 1) / 2 and y = (p + 1) / 2. There is no solution for p = 2.", "solution": "Reformulate the original expression as $x^2 - 1 = (p+1)^2(y^2 - 1)$. $x^2 - 1 = ((p+1)y)^2 - (p+1)^2 \\Rightarrow (p+1)^2 - 1 = ((p+1)y)^2 - x^2$. $p^2 + 2p + 1 - 1 = ((p+1)y - x)((p+1)y + x)$. So, $p(p+2) = ((p+1)y - x)((p+1)y + x)$. Let $A = (p+1)y - x$ and $B = (p+1)y + x$. Then $AB = p(p+2)$. Since $x, y > 1$, $(p+1)y \\ge 2(p+1) = 2p+2$. $x \\ge 2$. $B = (p+1)y + x \\ge 2(p+1) + 2 = 2p+4$. Also, $B - A = 2x > 0 \\Rightarrow B > A$. $B + A = 2(p+1)y$. Since $p$ is a prime, it must either divide $A$ or $B$.\n\n**Case I.** $p|A$. So $A = kp$ for some integer $k$. Then $B = (p+2)/k$. If $p$ divides the first bracket, i.e., (A), then $(p+1)y+x|p+2$. This implies $B|p+2$. Since $B \\ge 2p+4$, we have $2p+4 \\le p+2 \\Rightarrow p \\le -2$, which is impossible.\n\n**Case II.** $p|B$. So $(p+1)y+x = kp$ for some integer $k$. And $(p+1)y-x = (p+2)/k$. We have $y \\equiv -x \\pmod p$. Let $x = kp - y$ for some integer $k$. Substitute this into $A \\cdot B = p(p+2)$: $B = (p+1)y+x = (p+1)y + kp - y = py + kp = p(y+k)$. $A = (p+1)y - x = (p+1)y - (kp - y) = (p+2)y - kp$. So,\n$$\n((p+2)y - kp) \\cdot p(y + k) = p(p + 2) \\implies ((p+2)y - kp)(y + k) = p + 2\n$$\nIf $y > k$, then $(p(y - k) + 2y)(y + k) > p + 2$ which is a contradiction. Thus $y \\le k$. Since $y + k$ is a factor of $p + 2$, $y + k \\le p + 2$, so we have $2y \\le p + 2$. If $y - k \\le -2$ we have\n$$\np(y - k) + 2y \\le -2p + 2y < 0\n$$\nwhich is a contradiction. The only remaining possibility is $y - k = -1$ (i.e. $k = y+1$) or $y - k = 0$ (i.e. $k = y$). If $k = y$: $((p+2)y - py)(y+y) = p+2 \\implies (2y)(2y) = p+2 \\implies 4y^2 = p+2$. If $p = 2$, $4y^2 = 4 \\implies y^2 = 1 \\implies y = 1$. Rejected. If $p$ is odd it follows that $p+2$ is also odd since $4y^2$ is even then $p+2$ cannot be odd. Yielding $4y^2 = p+2$ has no solution for odd $p$. If $k = y+1$: $((p+2)y - p(y+1))(y+y+1) = p+2 \\implies (py+2y - py - p)(2y+1) = p+2$. $(2y-p)(2y+1) = p+2$. $4y^2+2y-2py-p = p+2 \\implies 4y^2+2(1-p)y-(2p+2) = 0$. Solving $4y^2 + 2(1-p)y - (2p+2) = 0$, with respect to $y$, we have\n$$\ny = \\frac{p+1}{2}.\n$$\nThis requires $p$ to be odd. Then\n$$\nk = y + 1 = \\frac{p+1}{2} + 1 = \\frac{p+3}{2}\n$$\nAnd\n$$\nx = kp - y = \\left(\\frac{p+3}{2}\\right) p - \\frac{p+1}{2} = \\frac{p^2 + 3p - p - 1}{2} = \\frac{p^2 + 2p - 1}{2}\n$$\nThe solutions are $(x, y) = \\left(\\frac{p^2+2p-1}{2}, \\frac{p+1}{2}\\right)$ for odd primes $p$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32970, "subject": "Mathematics (Multi-modal)", "question": "In a scalene triangle $ABC$, points $X$ and $Y$ lie on $BC$ and $AC$, respectively, such that $BC \\perp XY$. Points $T$ and $Z$ are the reflections of $Y$ and $X$ with respect to the midpoints of sides $AC$ and $BC$, respectively. Point $P$ lies on $ZT$ such that the circumcenter of triangle $XZP$ coincides with the circumcenter of triangle $ABC$. Show that the nine-point circle of triangle $ABC$ passes through the midpoint of segment $XP$.", "options": [], "answer": "Detailed solution", "solution": "Let $O$ be the center of circumcircle of triangle $XPZ$ and let the line $XY$ intersect this circle for a second time at point $Q$. Suppose that $AA'$, $CC'$ are diameters of the circumcircle of triangle $ABC$.\n\nNote that points $C'$, $Q$ are the reflections of points $B$, $X$ with respect to the line passing through $O$ which is parallel to $BC$, hence $C'Q \\parallel BC$ and $\\angle C'QY = 90^\\circ = \\angle C'AY$. Therefore the quadrilateral $C'AYQ$ is cyclic.\n\nLet $D$ be the second intersection of the $A$-altitude with the circumcircle of triangle $ABC$. Note that triangles $DBX$, $A'CZ$ are symmetrical with respect to the perpendicular bisector of the side $BC$, hence $\\triangle DBX \\cong \\triangle A'CZ$. Similarly triangles $AC'Y$, $CA'T$ are symmetric with respect to perpendicular bisector of the side $AC$, therefore $\\triangle AC'Y \\cong \\triangle CA'T$. Note that $D$ is the reflection of point $A$ with respect to the line passing through $O$ which is parallel to $BC$, hence $\\triangle AC'Q \\cong \\triangle DBX$\n$$\n\\angle AQC' = \\angle DXB = \\angle A'ZC\n$$\n$$\n\\angle A'TC = \\angle C'YA = \\angle C'QA\n$$\nTherefore $\\angle A'ZC = \\angle A'TC$ and the quadrilateral $A'ZTC$ is cyclic.\n\n*Proof.* Let $AQ$ intersect the circumcircle of triangle $XZQ$ at $P'$.\n$$\n\\begin{aligned}\n\\angle XZP' &= \\angle XQP' = \\angle YQA = 90^\\circ - \\angle AQC' \\\\\n\\angle AQC' &= \\angle DXB = \\angle A'ZC\n\\end{aligned}\n$$\nNote that $\\angle A'CT = 90^\\circ$, therefore $\\angle TZC = 90^\\circ - \\angle CZA' = 90^\\circ - \\angle AQC'$ hence points $Z, P', T$ are collinear and $P \\equiv P'$ $\\Box$\n\nLet $AQ$ intersect the circumcircle of triangle $ABC$ at $R$ for the second time. $M, N$ are the midpoints segments $XP, PQ$ respectively and $H$ is the orthocenter of triangle $ABC$.\n\nPoint $O$ is the center of circumcircle of triangle $ABC$, therefore $N$ is the midpoint of chord $AR$. If $k$ is the distance of $O$ to the side $BC$, it is well known that $AH = 2k$. Note that $2MN = XQ = 2k$ as well, hence by Thales's theorem $M$ is the midpoint of segment $RH$. The homothety centered at $H$ with ratio $1/2$ takes the circumcircle of triangle $ABC$ to its nine-point circle. This homothety takes $R$ to $M$, thus $M$ lies on the nine-point circle of triangle $ABC$.\n\n\n**Lemma.** 1 Let points $Z, Q$ lie on the circle $\\omega$ with center $O$ and $l$ be an arbitrary line. $M$ is the projection of $O$ onto $l$. Points $Y, T$ lie on the line $l$ such that $MY = MT$. $YQ, TZ$ intersect $\\omega$ for the second time at points $X, P$. If $PQ, ZX$ intersect $l$ at points $A, C$ then $AM = CM$\n\n*Proof.* Let $P'$ be a point on $\\omega$ such that $PP' \\parallel l$. Note that quadrilateral $TPP'Y$ is a cyclic trapezoid $(P', Y$ are the reflections of $P, T$ with respect to the line $OM)$.\n![](attached_image_1.png)\nBy law of sines in triangles $ATP, TZC, XYC, YQA$:\n$$\n\\begin{aligned}\n\\frac{TP}{TA} &= \\frac{\\sin \\angle TAP}{\\sin \\angle TPA'}, \\quad \\frac{TZ}{TC} = \\frac{\\sin \\angle TCZ}{\\sin \\angle TZC} \\\\\n\\frac{CY}{XY} &= \\frac{\\sin \\angle CXY}{\\sin \\angle YCX'}, \\quad \\frac{AY}{YQ} = \\frac{\\sin \\angle AQY}{\\sin \\angle YAQ}\n\\end{aligned}\n$$\nQuadrilateral $ZQXP$ is cyclic, therefore $\\angle APT = \\angle YXC, \\angle AQY = \\angle TZC$. Hence\n$$\n\\frac{TP \\cdot TZ}{TA \\cdot TC} = \\frac{YX \\cdot YQ}{YC \\cdot YA}\n$$\nNote that the ratios of power of points $T, Y$ with respect to circle $\\omega$ and circumcircle of triangle $APC$ are equal, hence circles $\\omega$ and the circumcircles of triangles $YPT, APC$ are coaxial which means quadrilateral $APP'C$ is cyclic. This quadrilateral is a cyclic trapezoid $(AP, P'C$ are symmetric with respect to line $OM)$ hence $MA = MC$ $\\square$\n\n**Claim 4.** $A$ lies on the line $PQ$\n\n*Proof.* Letting $M$ be the midpoint of side $AC$, by **Lemma 1.** for the circle $\\omega$, line $AC$ and points $Z$, $Q$ the line $PQ$ passes through the point $A$. $\\Box$\n\nLet $AQ$ intersect the circumcircle of triangle $ABC$ at $R$ for the second time. $R'$, $N$ are the midpoints segments $XP$, $PQ$ respectively and $H$ is the orthocenter of triangle $ABC$.\n\nPoint $O$ is the center of circumcircle of triangle $ABC$, therefore $N$ is the midpoint of chord $AR$. If $k$ is the distance of $O$ to the side $BC$, it is well known that $AH = 2k$.\nNote that $2R'N = XQ = 2k$ as well, hence by Thales's theorem $R'$ is the midpoint of segment $RH$. The homothety centered at $H$ with ratio $1/2$ takes the circumcircle of triangle $ABC$ to its nine-point circle. This homothety takes $R$ to $R'$, thus $R'$ lies on the nine-point circle of triangle $ABC$.\nWe call the foot of the altitude from $A$ as $D$. Consider points $E$ and $K$ such that $AEXY$ and $AKZB$ are parallelograms. Now, since $EX = AY = CT$, it follows that $ETCX$ is also a parallelogram, which implies $ET = CX = BZ$. Thus, $ETZB$ is also a parallelogram. The extension of $BE$ intersects the circumcircle of $ABC$ at $F$.\n\nFirst, note that since $AK = ET$ and $AK \\parallel ET$, $AKTE$ is a rectangle. Since $O$ lies on the perpendicular bisectors of segments $FB$ and $PZ$, $PZBF$ is an isosceles trapezoid, and therefore $FPTE$ is an isosceles trapezoid. Moreover, since $\\angle AFE = \\angle ACB = \\angle ATE$, $AFTE$ is cyclic. Given all the mentioned results, the points $A, F, K, P, T, E$ lie on same circle.\n\nNow, suppose $M$ and $N$ are the midpoints of $BC$ and $PX$, respectively, and $X'$ is the reflection of $X$ with respect to $AD$. Since $\\angle KET = \\angle KAT = \\angle ACB = \\angle EXD = \\angle EX'D$, the points $K, E, X'$ are collinear. Now, since $\\angle KPT = 180^\\circ - \\angle KET = 180^\\circ - \\angle KX'Z$, $KPZX'$ is cyclic, and thus $\\angle X'PZ = \\angle X'KZ = \\angle KZC - \\angle KX'Z = \\angle B - \\angle C$. By applying a homothety with ratio $\\frac{1}{2}$ centered at $X$, we conclude that $\\angle MND = \\angle B - \\angle C$, which implies that $N$ lies on the nine-point circle of $ABC$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32971, "subject": "Mathematics (Multi-modal)", "question": "Find all functions $f : \\mathbb{R}^+ \\to \\mathbb{R}^+$ such that for all positive real numbers $x$ and $y$, we have\n$$\nf(f(f(xy)) + x^2) = f(y)(f(x) - f(x + y))\n$$\n\n*Note. By $\\mathbb{R}^+$, we mean the set of positive real numbers.*", "options": [], "answer": "f(x) = 1/x", "solution": "First, note that the function is clearly strictly decreasing. Assume the supremum of the function is finite. In this case, for any $\\epsilon > 0$, there exists $\\delta$ such that for any $x < \\delta$, we have $l - f(x) < \\frac{\\epsilon}{2}$. Now, in the given inequality, let $x, y$ tend to zero. We get $f(f(f(l))) \\le 0$, which is a contradiction. Next, set $y = 1$ and let $x$ tend to zero. The right side tends to infinity, so the expression inside the left side must tend to zero, which implies that the infimum of the function is zero.\n\nWe have so far obtained that the limit of the function as $x \\to 0$ is infinity, and as $x \\to \\infty$ is zero. Now, fix $x$ and let $y$ tends to zero. We obtain that $f(x) - f(x + y)$ must tend to zero, because otherwise the left side would be bounded while the right side would be unbounded. Therefore, the function is continuous. Now, set $y = \\frac{k}{x}$ and let $x$ tend to zero. We obtain\n$$\nf^3(k) = \\lim_{x \\to 0} f(x) f\\left(\\frac{k}{x}\\right)\n$$\nThis implies that $f^3$ is multiplicative, that is\n$$\n\\frac{f^3(k)}{f^3(k')} = \\lim_{x \\to 0} \\frac{f\\left(\\frac{k}{x}\\right)}{f\\left(\\frac{k'}{x}\\right)} = g\\left(\\frac{k}{k'}\\right)\n$$\nwhich implies\n$$\nf^3(kk')f^3(1) = f^3(k)f^3(k')\n$$\nCombined with the monotonicity and the limits of the function at zero and infinity, this implies $f^3(x) = \\frac{c}{x^r}$, for some real $r$.\n\nNow, choose $c$ such that $f(c) < 1$ and set $x = c$. We will have\n$$\nf(f(f(cy)) + c^2) < f(y) \\implies f(f(cy)) + c^2 > f(y)\n$$\nwhich implies $f(f(y)) < Ay + B$. On the other hand, if $f(c) > 1$ and choose $y$ sufficiently large, we will have\n$$\nf(y) < f(f(cy)) + c^2 \\implies y < f(cy) + c^2\n$$\nwhich implies $f(f(y)) > A'y + B'$. Therefore, $f^6(y) = x^{r^2}$ falls between two linear functions, which implies $f^3(y) = \\frac{c}{x}$. Now, let $g(x) = f^2(x)$ be a strictly increasing function such that $g^3(x) = x$. Thus, we have $f^2(x) = x$, which combined with $f^3(x) = \\frac{c}{x}$ implies $f(x) = \\frac{c}{x}$. It is easy to verify that $f(x) = 1/x$ is the only function that satisfies the statement of the problem. ■\n\n\nSolution 2:\nAs in the first solution, we need the fact that $f$ is strictly decreasing as well as $\\lim_{x \\to 0^+} f(x) = +\\infty$ and $\\lim_{x \\to +\\infty} f(x) = 0$. Taking into account the monotonicity, the function would be differentiable *almost everywhere*, thus there exists a point $z > 0$ such that $f'(z)$ exists. Letting $x = z$ and $y \\to 0^+$ yielding we get\n$$\n0 < f(z^2/2) < \\lim_{x \\to z^+} f(x^2) = \\lim_{y \\to 0^+} yf(y) \\cdot \\frac{f(z) - f(z+y)}{y} = -f'(z) \\lim_{y \\to 0^+} yf(y),\n$$\nwhich implies that $\\lim_{y \\to 0^+} yf(y) = \\ell_1$ exists and is positive. Let's rewrite the hypothesis as\n$$\n(f(f(xy)) + x^2)f(f(f(xy)) + x^2) = \\left(\\frac{f(f(xy))}{xy} + \\frac{x}{y}\\right) yf(y)(xf(x) - xf(x+y)).\n$$\nSince $\\lim_{x \\to 0^+} f(f(xy)) + x^2 = 0$, letting $x \\to 0^+$ yielding\n$$\n\\ell_1 = \\left( \\lim_{x \\to 0^+} \\frac{f(f(xy))}{xy} \\right) yf(y)\\ell_1.\n$$\nSince the inside limit is independent of $y$, we obtain at $yf(y) = \\frac{1}{\\ell_2}$, where $\\ell_2 = \\lim_{x \\to 0^+} \\frac{f(f(x))}{x}$ (which obviously must exist, precisely because of the above equation). Plugging $f(y) = \\frac{1}{y\\ell_2}$ yields $f(y) = \\frac{1}{y}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32972, "subject": "Mathematics (Multi-modal)", "question": "Let $P(x)$ be a polynomial with non-negative integer coefficients. A sequence of positive integers $(x_n)_{n=1}^{\\infty}$ is given such that $x_1 = 1$, and for every natural number $n$, the following equality holds\n$$\nx_{n+1}^2 + P(n) = x_n x_{n+2}\n$$\nProve that $P(x)$ would be a constant polynomial.", "options": [], "answer": "Detailed solution", "solution": "Since $P(n) > 0$ for all positive integers, it follows that $x_n x_{n+2} > x_{n+1}^2$, for all $n$. Hence, $x_{n+2}/x_{n+1} > x_{n+1}/x_n$. Denote $y_n = x_{n+1}/x_n$ it follows that $x_{n+2} = y_{n+1} \\cdot y_n \\cdots y_n > y_2^n y_1$. Notice that $y_2 > y_1 = x_2 \\ge 1$. Let $y_2 = C$ for some $C > 1$. It follows that $x_{n+2} > C^n$.\n\nNow, writing the original equation for $n-1, n, n+1$, it follows that $x_{n-1}x_{n+1} = x_n^2 + P(n-1)$ and $x_{n+1}x_{n+3} = x_{n+2}^2 + P(n+1)$. Hence, $x_{n+1}|x_n^2 + P(n-1)$, $x_{n+2}^2 + P(n)$, and $x_{n+1}|P(n) - x_nx_{n+2}$. That is, $x_n^2 \\equiv -P(n-1) \\pmod{x_{n+1}}$, $x_{n+2}^2 \\equiv -P(n+1) \\pmod{x_{n+1}}$, and $x_n x_{n+2} \\equiv P(n) \\pmod{x_{n+1}}$. Yielding,\n$$\nP(n)^2 \\equiv P(n+1)P(n-1) \\pmod{x_{n+1}}.\n$$\nLet $d = \\deg P \\ge 1$ it follows that $P(n)^2 - P(n+1)P(n-1)$ would be of the order of $n^{2d}$. That is, there is a constant $A > 0$ such that $|P(n)^2 - P(n+1)P(n-1)| < A n^{2d}$, for all large enough $n$. On the other hand, since $|P(n)^2 - P(n+1)P(n-1)|$ is divisible by $x_{n+1}$, if it is not zero, it would be greater than or equal to $x_{n+1} > C^{n-1}$. Hence, $C^{n-1} < A n^{2d}$,\nthis would be absurd for all large $n$. Hence, $P(n)^2 - P(n+1)P(n-1) = 0$ for all sufficiently large $n$. This means that $P(n+1)/P(n) = P(n)/P(n-1) = \\cdots = P(N)/P(N-1) = r$, for all $n \\ge N$. Since $\\lim_{n \\to +\\infty} P(n)/P(n-1) = 1$ it follows that $r=1$. Hence, $P(n) = P(n+1) = \\cdots$, for all large $n$. Yielding that $P$ is indeed a constant. This completes our proof. ■", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 32973, "subject": "Mathematics (Multi-modal)", "question": "Find all prime numbers $p$ and $q$ such that $p$ divides $q + 6$ and $q$ divides $p + 7$.", "options": [], "answer": "p = 19, q = 13", "solution": "$p = 2$ and $p$ divides $q + 6$ together imply $2$ divides $q$. Hence $q = 2$. But then $q$ divides $p + 7$ is not satisfied. Thus $p$ is odd.\n$q = 2$ and $p$ divides $q + 6$ together imply $p = 2$ but $p = 2 = q$ contradicts $q$ divides $p + 7$. Thus $p$ and $q$ are both odd.\n$p + 7$ is even and so $q \\le (p + 7)/2 \\le (q + 6 + 7)/2$. Hence $q \\le 13$.\nNow examine each of the cases $q = 3, 5, 7, 11, 13$. Only one case $q = 13$ provides a solution in which $p = 19$.\n\n**Second solution:** By hypothesis, there are $a, b \\in \\mathbb{N}$ such that $q + 6 = pa, p + 7 = bq$. Hence\n$$\n13 = p(a-1) + q(b-1) \\equiv pm + qn,\n$$\nwhere $m, n$ are nonnegative integers. Suppose $m, n \\in \\mathbb{N}$. Then\n$$\n4 \\le p+q \\le pm+qn = 13,\n$$\nand so $p, q \\in \\{2, 3, 5, 7, 11\\}$. An inspection of the possible pairs $(p, q)$ that can be formed from this set shows that no such pair satisfies the hypotheses. Hence, one of $m, n$ is zero. Suppose $n = 0$. Then $b = 1, a = 2, p = 13$ which means that $q = 20$, which isn't a prime number. It follows that $m = 0$, i.e., $a = 1, b = 2, q = 13$ and hence $p = 26 - 7 = 19$. Thus $p = 19, q = 13$ is the only solution pair.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32974, "subject": "Mathematics (Multi-modal)", "question": "Let $r$, $s$ and $t$ be the roots of the cubic polynomial\n$$\np(x) = x^3 - 2007x + 2002.\n$$\nDetermine the value of\n$$\n\\frac{r-1}{r+1} + \\frac{s-1}{s+1} + \\frac{t-1}{t+1}.\n$$", "options": [], "answer": "2", "solution": "Call the indicated sum $S$. Note that $S = 3 - 2R$, where\n$$\nR = \\frac{1}{r+1} + \\frac{1}{s+1} + \\frac{1}{t+1}.\n$$\nMoreover $r+1$, $s+1$, $t+1$ are the roots of the polynomial $q$, where\n$$\nq(x) = p(x - 1) = x^3 - 3x^2 - 2004x + 4008.\n$$\nUsing the usual formulae for the sums of products of roots of a polynomial $f(x) = \\sum_{i=0}^{n} c_i x^i$, we see that the sum of the reciprocals of the roots of $f$ is $-c_1/c_0$. In particular, $R = -(-2004)/4008 = 1/2$ and $S = 3 - 1 = 2$.\n\n\nSecond Solution.\nSince $-1$ is not a root of $p$, we see that $(r+1)(s+1)(t+1) \\neq 0$. The expression in question is equal to\n$$\n\\frac{(r-1)(s+1)(t+1) + (s-1)(r+1)(t+1) + (t-1)(r+1)(s+1)}{(r+1)(s+1)(t+1)} \\equiv \\frac{A(r, s, t)}{B(r, s, t)}\n$$\n\nNow\n$$\n(r-1)(s+1)(t+1) = (r-1)(st+s+t+1) = rst+rs+rt-st+r-s-t-1.\n$$\nHence, permuting $r$, $s$, $t$, we see that\n$$\nA = 3rst + (rs + st + tr) - (r + s + t) - 3.\n$$\n\nAlso,\n$$\nB = (r+1)(s+1)(t+1) = (r+1)(st+s+t+1) = rst+(rs+st+tr)+(r+s+t)+1.\n$$\nBut\n$$\nx^3 - 2007x + 2002 = (x-r)(x-s)(x-t) = x^3 - (r+s+t)x^2 + (rs+st+tr)x - rst,\n$$\nso that\n$$\nr + s + t = 0, \\quad rs + st + tr = -2007, \\quad rst = -2002.\n$$\n\nIt follows that\n$$\nA = -6006 - 2007 - 3 = -8016,\n$$\nand\n$$\nB = -2002 - 2007 + 1 = -4008.\n$$\nHence the value of the expression is $A/B = 2$.", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 32975, "subject": "Mathematics (Multi-modal)", "question": "Prove that a triangle $ABC$ is right-angled if and only if\n$$\nsin^2 A + sin^2 B + sin^2 C = 2.\n$$", "options": [], "answer": "Detailed solution", "solution": "Suppose one of $\\angle A, \\angle B, \\angle C$ is a right angle. Say $\\angle A$ is. Then $\\angle B + \\angle C = \\pi/2$ and so\n$$\nsin^2 A + sin^2 B + sin^2 C = 1 + sin^2 B + sin^2(\\pi/2 - B) = 1 + sin^2 B + cos^2 B = 2.\n$$\n\nSuppose the identity holds. By the Sine Rule,\n$$\n\\frac{\\sin A}{a} = \\frac{\\sin B}{b} = \\frac{\\sin C}{c} = \\frac{1}{2R} \\equiv \\lambda.\n$$\nHence\n$$\n2 = \\lambda^2(a^2 + b^2 + c^2), \\quad \\lambda^2 = \\frac{2}{a^2 + b^2 + c^2}.\n$$\nso that\n$$\n\\sin^2 A = \\frac{2a^2}{a^2 + b^2 + c^2}, \\quad \\cos^2 A = \\frac{b^2 + c^2 - a^2}{a^2 + b^2 + c^2} = \\frac{2bc \\cos A}{a^2 + b^2 + c^2}.\n$$\n\nHence $\\cos A, \\cos B, \\cos C$ are nonnegative. Suppose all are positive, then\n$$\n\\cos A = \\frac{2bc}{a^2 + b^2 + c^2}, \\cos B = \\frac{2ca}{a^2 + b^2 + c^2}, \\cos C = \\frac{2ab}{a^2 + b^2 + c^2}.\n$$\nHence, for instance,\n$$\n(b^2 + c^2 - a^2)(b^2 + c^2 + a^2) = (2bc)^2, (b^2 + c^2)^2 - a^4 = 4b^2c^2,\n$$\nor\n$$\n(b^2 - c^2)^2 - a^4 = 0, (b^2 - c^2 - a^2)(b^2 - c^2 + a^2) = 0,\n$$\ni.e., $\\cos B \\cos C = 0$, a contradiction. Hence, one of $\\cos A, \\cos B, \\cos C$ is zero.\n\n\n**Second solution:** Let $S$ be the circumcircle of $ABC$ and suppose that $S$ has diameter $d$. Using the sine rule we have\n$$\nsin^2 A + sin^2 B + sin^2 C = \\frac{1}{d^2}(a^2 + b^2 + c^2).\n$$\nSuppose that $ABC$ is not a right angled triangle. There are two cases to consider\n**Case I:** One of the angles is obtuse. Without loss of generality, suppose that $A > \\frac{\\pi}{2}$. It is easy to see from a diagram that $a < d$ and that $b^2 + c^2 < d^2$. Thus\n$$\n\\frac{1}{d^2}(a^2 + b^2 + c^2) < 2\n$$\nin this case.\n\n**Case II:** $ABC$ is an acute angled triangle (i.e. all angles < $\\frac{\\pi}{2}$). Then Let $X$ be the point on $S$ that is diametrically opposite to $A$ (so $|AX| = d$). Let $e = |BX|$ and $f = |CX|$. Pythagoras' Theorem implies that\n$$\nb^2 + e^2 + c^2 + f^2 = 2d^2\n$$\nHowever $\\angle BXC > \\frac{\\pi}{2}$, so $e^2 + f^2 < a^2$ (a simple application of the cosine rule to the triangle $BXC$). Therefore, in this case we have\n$$\n\\frac{1}{d^2}(a^2 + b^2 + c^2) > 2.\n$$\n\n\n**Third solution:** Assume\n$$\n2 = sin^2 A + sin^2 B + sin^2 C = \\frac{4\\Delta^2}{b^2c^2} + \\frac{4\\Delta^2}{c^2a^2} + \\frac{4\\Delta^2}{a^2b^2},\n$$\n\nwhere $\\Delta$ is the area of the triangle, i.e.,\n$$\n8a^2b^2c^2 = 16\\Delta^2(a^2+b^2+c^2) = (2(a^2+b^2+b^2c^2+a^2b^2)-a^4-b^4-c^4)(a^2+b^2+c^2).\n$$\nLet $x = a^2$, $y = b^2$, $z = c^2$. Then\n$$\n\\begin{align*}\n0 &= 8xyz - (2(xy + yz + zx) - x^2 - y^2 - z^2)(x + y + z) \\\\\n&= 8xyz - (xy + yz + zx)(x + y + z) + (x^2 + y^2 + z^2 - xy - yz - zx)(x + y + z) \\\\\n&= 8xyz - (xy + yz + zx)(x + y + z) + x^3 + y^3 + z^3 - 3xyz \\\\\n&= 2xyz - xy(x + y) - yz(y + z) - zx(z + x) + x^3 + y^3 + z^3 \\\\\n&= x^3 - x^2(y + z) - x(-2yz + y^2 + z^2) + y^3 + z^3 - zy(y + z) \\\\\n&= x^3 - x^2(y + z) - x(y - z)^2 + (y + z)(y - z)^2 \\\\\n&= (x + y - z)(x - y - z)(z + x - y).\n\\end{align*}\n$$\nIt follows that one of\n$$\na^2 + b^2 - c^2, \\ b^2 + c^2 - a^2, \\ c^2 + a^2 - b^2\n$$\nis zero. Hence the triangle is right-angled.\n\n\n**Fourth solution (due to Stephen Dolan):** Suppose the identity holds. Then\n$$\n\\begin{align*}\n0 &= 2 - sin^2 A - sin^2 B - sin^2 C \\\\\n&= cos^2 A + cos^2 B - sin^2 (A + B) \\\\\n&= cos^2 A + cos^2 B - sin^2 A cos^2 B - 2 sin A sin B cos A cos B - cos^2 A sin^2 B) \\\\\n&= 2 cos^2 A cos^2 B - 2 sin A sin B cos A cos B \\\\\n&= 2 cos A cos B (cos A cos B - sin A sin B) \\\\\n&= 2 cos A cos B cos(A + B) \\\\\n&= -2 cos A cos B cos C,\n\\end{align*}\n$$\nwhence one of $\\cos A, \\cos B, \\cos C$ is zero. Hence the triangle is right-angled.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32976, "subject": "Mathematics (Multi-modal)", "question": "Suppose $a$, $b$ and $c$ are positive real numbers. Prove that\n$$\n\\frac{a+b+c}{3} \\le \\sqrt{\\frac{a^2+b^2+c^2}{3}} \\le \\frac{\\frac{ab}{c}+\\frac{bc}{a}+\\frac{ca}{b}}{3}.\n$$\n\nFor each of the inequalities, find conditions on $a$, $b$ and $c$ such that equality holds.", "options": [], "answer": "Equality holds in both inequalities if and only if a = b = c.", "solution": "We first show that\n$$\n\\frac{a+b+c}{3} \\le \\sqrt{\\frac{a^2+b^2+c^2}{3}},\n$$\nwith equality iff $a = b = c$. The inequality is equivalent to saying that\n$$\n(a+b+c)^2 \\le 3(a^2+b^2+c^2) \\Leftrightarrow a^2+b^2+c^2+2(ab+bc+ca) \\le 3(a^2+b^2+c^2),\n$$\ni.e.,\n$$\n2(ab + bc + ca) \\le 2(a^2 + b^2 + c^2) \\Leftrightarrow 0 \\le (a-b)^2 + (b-c)^2 + (c-a)^2.\n$$\nThe latter clearly holds, with equality only when $a = b = c$.\n\nOR use\n$$\nab \\le \\frac{a^2 + b^2}{2}, \\quad bc \\le \\frac{b^2 + c^2}{2}, \\quad ca \\le \\frac{c^2 + a^2}{2}.\n$$\n\nNext,\n$$\n\\sqrt{\\frac{a^2 + b^2 + c^2}{3}} \\le \\frac{\\frac{ab}{c} + \\frac{bc}{a} + \\frac{ca}{b}}{3}\n$$\nholds iff\n$$\n3(a^2 + b^2 + c^2) \\le \\left(\\frac{ab}{c} + \\frac{bc}{a} + \\frac{ca}{b}\\right)^2 = \\frac{a^2b^2}{c^2} + \\frac{b^2c^2}{a^2} + \\frac{c^2a^2}{b^2} + 2(a^2 + b^2 + c^2),\n$$\ni.e., iff\n$$\na^2 + b^2 + c^2 \\le \\frac{a^2b^2}{c^2} + \\frac{b^2c^2}{a^2} + \\frac{c^2a^2}{b^2}.\n$$\n\nSince,\n$$\nx + \\frac{1}{x} \\ge 2, \\quad \\forall x > 0,\n$$\nwith equality holding iff $x = 1$, we see that\n$$\n2a^2 \\le \\frac{a^2b^2}{c^2} + \\frac{c^2a^2}{b^2}, \\quad 2b^2 \\le \\frac{a^2b^2}{c^2} + \\frac{b^2c^2}{a^2}, \\quad 2c^2 \\le \\frac{b^2c^2}{a^2} + \\frac{c^2a^2}{b^2},\n$$\nwhence\n$$\n2a^2 + 2b^2 + 2c^2 \\le 2\\frac{a^2b^2}{c^2} + 2\\frac{b^2c^2}{a^2} + 2\\frac{c^2a^2}{b^2},\n$$\nthe claimed result. Further, equality holds if and only if $a^2 = b^2 = c^2$, i.e., $a = b = c$.\n\n$$\nx = \\frac{bc}{a}, \\quad y = \\frac{ca}{b}, \\quad z = \\frac{ab}{c},\n$$\nthe inequality becomes\n$$\nxy + yz + zx \\leq x^2 + y^2 + z^2\n$$", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 32977, "subject": "Mathematics (Multi-modal)", "question": "Let $\\triangle ABC$ be a triangle the lengths of whose sides $BC, CA, AB$, respectively, are denoted by $a, b, c$, respectively. Let the internal bisectors of the angles $\\angle BAC, \\angle ABC, \\angle BCA$, respectively, meet the sides $BC, CA, AB$, respectively, at $D, E, F$, respectively. Denote the lengths of the line segments $AD, BE, CF$, respectively, by $d, e, f$, respectively. Prove that\n$$\ndef = \\frac{4abc(a+b+c)\\Delta}{(a+b)(b+c)(c+a)},\n$$\nwhere $\\Delta$ stands for the area of the triangle $ABC$.", "options": [], "answer": "Detailed solution", "solution": "There are various formulae for the lengths of the bisectors. The one appropriate for the solution is given by\n$$\nd = \\frac{2\\sqrt{bc}\\sqrt{s(s-a)}}{b+c},\n$$\nwhere $2s = a + b + c$. One way to derive this formula is as follows. Since\n$$\n\\Delta(ABD) + \\Delta(DAC) = \\Delta(ABC) = \\Delta = \\frac{1}{2}bc \\sin A,\n$$\nwe deduce that\n$$\nd(b+c) \\sin \\frac{A}{2} = 2\\Delta = bc \\sin A = 2bc \\sin \\frac{A}{2} \\cos \\frac{A}{2},\n$$\nwhence\n$$\nd = \\frac{2\\Delta}{(b+c) \\sin \\frac{A}{2}} = \\frac{2bc \\cos \\frac{A}{2}}{b+c}.\n$$\nBy the Cosine Rule\n$$\n2 \\cos^2 \\frac{A}{2} = 1 + \\cos A = \\frac{2bc + b^2 + c^2 - a^2}{2bc} = \\frac{(b+c)^2 - a^2}{2bc} = \\frac{2s(s-a)}{bc},\n$$\nand so\n$$\n\\cos \\frac{A}{2} = \\sqrt{\\frac{s(s-a)}{bc}}.\n$$\nHence\n$$\nd = \\frac{2\\sqrt{bc}\\sqrt{s(s-a)}}{b+c}.\n$$\n\nAlternatively, we can obtain this formula by appealing to the following facts, which are propositions in Euclid's Geometry, viz.,\n$$\n|AB| |AC| = |BD| |DC| + |AD|^2, \\text{ and } \\frac{|BD|}{|DC|} = \\frac{|AB|}{|AC|}.\n$$\n\n(Here's a trigonometric derivation of these formulae. By the Sine Rule,\n$$\n\\frac{|BD|}{|BA|} = \\frac{\\sin \\angle BAD}{\\sin \\angle BDA} = \\frac{\\sin \\angle CAD}{\\sin \\angle CDA} = \\frac{|DC|}{|CA|},\n$$\nwhich is equivalent to the second formula. Next\n$$\n\\begin{aligned}\n\\frac{|AB| |AC|}{|AD|^2} - \\frac{|BD| |DC|}{|AD|^2} &= \\frac{\\sin \\angle BDA \\sin \\angle CDA}{\\sin B \\sin C} - \\frac{\\sin \\angle BAD \\sin \\angle CAD}{\\sin B \\sin C} \\\\\n&= \\frac{\\sin^2 \\angle BDA - \\sin^2 \\frac{A}{2}}{\\sin B \\sin C} \\\\\n&= \\frac{\\sin^2 \\angle (B + \\frac{A}{2}) - \\sin^2 \\frac{A}{2}}{\\sin B \\sin C} \\\\\n&= \\frac{(\\sin \\angle (B + \\frac{A}{2}) - \\sin \\frac{A}{2})(\\sin \\angle (B + \\frac{A}{2}) + \\sin \\frac{A}{2})}{\\sin B \\sin C} \\\\\n&= \\frac{4 \\cos(\\frac{A+B}{2}) \\sin \\frac{B}{2} \\sin \\frac{A+b}{2} \\cos \\frac{B}{2}}{\\sin B \\sin C} \\\\\n&= \\frac{\\sin(A+B) \\sin B}{\\sin B \\sin C} \\\\\n&= 1.\n\\end{aligned}\n$$\nThis is equivalent to the first statement.)\n\nTo continue, we have\n$$\nbc = |BD| |DC| + d^2, \\text{ and } \\frac{|BD|}{|DC|} = \\frac{c}{b},\n$$\nand since $|BD| + |DC| = a$, we deduce that\n$$\n|BD| = \\frac{ca}{b+c}, \\quad |DC| = \\frac{ab}{b+c}.\n$$\nHence\n$$\nd^2 = bc - \\frac{a^2bc}{(b+c)^2} = \\frac{bc[(b+c)^2 - a^2]}{(b+c)^2} = \\frac{4bcs(s-a)}{(b+c)^2},\n$$\nwhence the same result ensues.\n\nOR, applying the Cosine Rule to the angles $\\angle BAD, \\angle DAC$, we see that\n$$\n\\frac{c^2 + d^2 - |BD|^2}{2cd} = \\frac{b^2 + d^2 - |DC|^2}{2bd},\n$$\nwhence\n$$\n\\begin{aligned}\nb(c^2 + d^2) - c(b^2 + d^2) &= b|BD|^2 - c|DC|^2 \\\\\n&= \\frac{ba^2c^2}{(b+c)^2} - \\frac{ca^2b^2}{(b+c)^2} \\\\\n&= \\frac{a^2bc(c-b)}{(b+c)^2}.\n\\end{aligned}\n$$\n\nHence\n$$\nbc(c-b) - d^2(c-b) = \\frac{a^2bc(c-b)}{(b+c)^2},\n$$\nand so, if $b \\neq c$,\n$$\nd^2 = bc - \\frac{a^2bc}{(b+c)^2} = \\frac{bc((b+c)^2 - a^2)}{(b+c)^2} = \\frac{4bcs(s-a)}{(b+c)^2},\n$$\n\nas before. But this holds also if $b = c$, because, then, $\\angle ADC$ is a right-angle, so that\n$$\nd^2 = b^2 - \\frac{a^2}{4}.\n$$\n\nOR, perhaps more directly, the same result can be obtained by applying the Cosine Rule to the angles $\\angle BDA, \\angle ADC$ which yields\n$$\n\\frac{d^2 + |DC|^2 - b^2}{2d|DC|} = - \\left( \\frac{d^2 + |BD|^2 - c^2}{2d|BD|} \\right),\n$$\netc.. In any event, any one of these methods tells us that\n$$\nd = \\frac{2\\sqrt{bc}\\sqrt{s(s-a)}}{b+c}.\n$$\n\nSimilarly\n$$\ne = \\frac{2\\sqrt{ca}\\sqrt{s(s-b)}}{c+a}, \\quad f = \\frac{2\\sqrt{ab}\\sqrt{s(s-c)}}{a+b}.\n$$\nHence\n$$\ndef = \\frac{8abc\\sqrt{s^3(s-a)(s-b)(s-c)}}{(a+b)(b+c)(c+a)} = \\frac{8abcs\\Delta}{(a+b)(b+c)(c+a)},\n$$\nby Heron's formula.\n\nNow, since $2s = a + b + c$, we have $s = \\frac{a+b+c}{2}$, so $8s = 4(a+b+c)$. Therefore,\n$$\ndef = \\frac{4abc(a+b+c)\\Delta}{(a+b)(b+c)(c+a)}.\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32978, "subject": "Mathematics (Multi-modal)", "question": "The point $P$ is a fixed point on a circle and $Q$ is a fixed point on a line. The point $R$ is a variable point on the circle such that $P$, $Q$ and $R$ are not collinear. The circle through $P$, $Q$ and $R$ meets the line again at $V$. Show that the line $VR$ passes through a fixed point.", "options": [], "answer": "Detailed solution", "solution": "There are different diagrams possible depending on relative positions of the circle, line and point $P$. In one case, $\\angle PRV$ and $\\angle PQV$ are equal and in the other are complementary.\n\n$\\angle PRV = 180^\\circ - \\angle PQV$ as $PQVR$ is a cyclic quadrilateral. $S$ is the intersection of $VR$ and the circle. $T$ is the intersection of the line $PQ$ and the circle.\n\n$\\angle PRV = \\angle STP$. Thus $S$ is a fixed point on the circle and $S$ is on $VR$. Hence $VR$ always passes through $S$.\n\nThe other case is similar.\nLet $X$ be the other point where $PQ$ meets the circle and let $W$ be the other point where the line through $X$ parallel to $QV$ meets the circle - clearly $W$ is a fixed point on the circle.\n\n![](attached_image_1.png)\n\nNow $PQVR$ is a cyclic quadrilateral. Therefore $\\angle PRV = 180^\\circ - \\angle PQV$. Similarly $PXWR$ is a cyclic quadrilateral, so $\\angle PRW = 180^\\circ - \\angle PXW$. But $\\angle PXW = \\angle PQV$. Therefore $\\angle PRW = \\angle PRV$. Hence $R$, $W$ and $V$ are collinear, as required. (Note that different configurations are possible depending on which side of the line $PQ$ the point $R$ lies. However, the arguments are essentially the same in all cases.)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32979, "subject": "Mathematics (Multi-modal)", "question": "Air Michael and Air Patrick operate direct flights connecting Belfast, Cork, Dublin, Galway, Limerick and Waterford. For each pair of cities exactly one of the airlines operates the route (in both directions) connecting the cities. Prove that there are four cities for which one of the airlines operates a round trip. (Note that a round trip of four cities $P, Q, R$ and $S$, is a journey that follows the path $P \\to Q \\to R \\to S \\to P$.)", "options": [], "answer": "Detailed solution", "solution": "The problem can be reinterpreted in graph theory terminology as the following: If $K_6$ is edge-coloured with two colours then there exists a monochromatic $C_4$ (cycle of length 4). As $K_6$ has 15 edges one of the colours, say red, must appear at least 8 times. Suppose the other colour is blue. Consider all the induced graphs on 4 vertices which have 6 edges. They cannot all have the same number of edges of the two colours as then the same would be true of $K_6$. Thus there are four vertices $P, Q, R, S$ defining a $K_4$ which has 4, 5, or 6 red edges. In the case that there are 5 or 6 red edges it is easy to find a red $C_4$. If the four red edges form a $C_4$ we are done. If not, we have $PQ$, $QR$, $RP$, $PS$ red and $QS$, $RS$ blue. There are at least 4 more red edges in our $K_6$. Thus one of the remaining vertices must be connected to $P, Q, R, S$ by at least two red edges. In all cases a red $C_4$ appears except in the case that $TP$ and $TS$ are red and $TQ$ and $TR$ are blue. But now $TRSQ$ is a blue $C_4$. This completes the proof.\n\n\nAlternative solution with less graph theory:\n\nThere are $\\binom{6}{2} = 15$ routes between the 6 cities. Thus one airline, say Air Michael, must run at least 8 of the routes.\n\nChoose any four cities. There are $\\binom{4}{2} = 6$ routes between these four cities. If for all choices of four cities the routes were divided 3-3 between Air Michael and Air Patrick then they would also have the same number of routes overall which is impossible since 15 is odd. Thus for one choice of four cities, Air Michael must run 4 or more of the routes. If they run five or six of the routes, there will be a round trip. If they run four and these form a round trip we are also done. The other possibility is they run four routes which do not form a round trip. Calling these four cities $P, Q, R, S$ we can assume that Air Michael runs routes $PQ$, $PR$, $PS$ and $QR$. Air Michael runs at least four more routes, at least 3 of the routes from $P, Q, R, S$ to the other two cities $T$ and $U$. One of these cities, say $T$ must have two or more routes to $P, Q, R, S$. If there are three routes then a round trip occurs. The only two Air Michael routes which will not produce a round trip are $TP$ and $TS$. But then $QSRT$ will be a round trip run by Air Patrick.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32980, "subject": "Mathematics (Multi-modal)", "question": "Find the number of zeros in which the decimal expansion of the integer $2007!$ ends. Also find its last non-zero digit.", "options": [], "answer": "500 trailing zeros; last non-zero digit is 2", "solution": "For each positive integer $k$, we let $F(k)$ denote the number of positive integers less than or equal to $2007$ which are divisible by $k$. Clearly, $F(k) = \\lfloor \\frac{2007}{k} \\rfloor$, the integer part of the rational number $\\frac{2007}{k}$.\nBecause $5^5 > 2007$, the exponent of $5$ in the decimal expansion of $2007!$ is equal to\n$$\nF(5) + F(5^2) + F(5^3) + F(5^4).\n$$\nAn easy calculation gives $F(5) = 401$, $F(25) = 80$, $F(125) = 16$ and $F(625) = 3$, hence the exponent of $5$ in the decimal expansion of $2007!$ is equal to $500$.\n\nOn the other hand, there are $1003$ even numbers among the positive integers less than $2007$ which implies that the exponent of $2$ in the decimal expansion of $2007!$ is at least $1003$. This proves that $10^{500}$ divides $2007!$, but $10^{501}$ does not divide $2007!$. The decimal expansion of $2007!$ ends in $500$ zeros.\n\n**The idea for the calculation** of the digit directly in front of these $500$ zeros is the following. We calculate modulo $10$ the product of all odd factors in the product $2007!$, discarding those which are divisible by $5$. The product of all even factors is equal to $1003! \\times 2^{1003}$ and we calculate modulo $10$ the product of all those factors in $1003!$ which are co-prime to $5$. From the factors not considered so far, we split off the factor $5$ and proceed as before. After repeating this procedure a few times we obtain $2007! = n \\times 2^{1003} \\times 5^{500}$. The calculation gives the value of $n$ modulo $10$.\nThe calculations modulo $10$ simplify if we take into account that for each integer $k$ we have\n$$\n(10k + 1)(10k + 3)(10k + 7)(10k + 9) \\equiv -1 \\quad \\mod 10 \\quad (1)\n$$\nand\n$$\n\\prod_{\\substack{i=1 \\\\ i \\neq 5}}^{9} (10k + i) \\equiv -6 \\quad \\mod 10. \\quad (2)\n$$\nMoreover, $(-6)^m \\equiv (-1)^m 6 \\quad \\mod 10$.\n\nThe product of all odd numbers $1, 3, ..., 1999$, co-prime to $5$, consists of $200$ products as in (1), so this contributes $(-1)^{200} \\equiv 1 \\mod 10$. We also have $2001 \\times 2003 \\times 2007 \\equiv 1 \\mod 10$. As seen above, there are $F(5) = 401$ positive integers below $2007$ which are divisible by $5$. Exactly $201$ of them are odd. Hence, the product of all positive odd numbers below $2007$ is equal to\n$$\nM_1 \\times 5^{201} \\times 401!!,\n$$\nwhere $M_1 \\equiv 1 \\mod 10$ and $401!!$ denotes the product of all positive odd integers less or equal to $401$.\nSimilarly, $401!! = M_2 \\times 5^{40} \\times 79!!$ with $M_2 \\equiv (-1)^{40} \\equiv 1 \\mod 10$. In the next step we get $79!! = M_3 \\times 5^8 \\times 15!!$ with $M_3 \\equiv (-1)^8 \\equiv 1 \\mod 10$. Finally,\n$$\n15!! = 1 \\times 3 \\times 5 \\times 7 \\times 9 \\times 11 \\times 13 \\times 15 = M_4 \\times 5^2\n$$\nwith $M_4 \\equiv 1 \\mod 10$. Altogether we obtained so far\n$$\n2007!! = M \\times 5^{251}\n$$\nwith $M \\equiv M_1 M_2 M_3 M_4 \\equiv 1 \\mod 10$.\n\nTo deal with the product of all even factors in $2007!$, which is equal to $1003! \\times 2^{1003}$, we study $1003!$. This product contains $100$ products as in (2), which contributes $(-1)^{1006} \\equiv 6 \\mod 10$. In addition, we have to consider $1001 \\times 1002 \\times 1003 \\equiv 6 \\mod 10$. The number of factors in $1003!$ which are divisible by $5$ is equal to $200$ so that\n$$\n1003! = N_1 \\times 5^{200} \\times 200!\n$$\nwith $N_1 \\equiv 6 \\pmod{10}$.\nSimilarly, $200! = N_2 \\times 5^{40} \\times 40!$ with $N_2 \\equiv (-1)^{206} \\equiv 6 \\pmod{10}$. Next, we obtain $40! = N_3 \\times 5^8 \\times 8!$ with $N_3 \\equiv (-1)^{46} \\equiv 6 \\pmod{10}$. Finally, $8! = N_4 \\times 5$ with $N_4 = 2 \\times 3 \\times 4 \\times (-4) \\times (-3) \\times (-2) \\equiv -6 \\pmod{10}$. Therefore,\n$$\n1003! = N \\times 5^{249}\n$$\nwith $N \\equiv N_1 N_2 N_3 N_4 \\equiv -6 \\pmod{10}$. We obtain\n$$\n2007! = M \\times N \\times 5^{500} \\times 2^{1003} = M \\times N \\times 2^{503} \\times 10^{500}\n$$\nand we know $M \\times N \\equiv -6 \\equiv 4 \\pmod{10}$. It remains to find $2^{503} \\equiv 8 \\pmod{10}$, which is easily seen from $2^4 \\equiv 6 \\pmod{10}$. We conclude that\n$$\nM \\times N \\times 2^{503} \\equiv 4 \\times 8 \\equiv 2 \\pmod{10}.\n\nTherefore, the last non-zero digit of $2007!$ is equal to $2$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32981, "subject": "Mathematics (Multi-modal)", "question": "Suppose $a$ and $b$ are real numbers such that the quadratic polynomial\n$$\nf(x) = x^2 + a x + b\n$$\nhas no nonnegative real roots. Prove that there exist two polynomials $g, h$, whose coefficients are nonnegative real numbers, such that\n$$\nf(x) = \\frac{g(x)}{h(x)},\n$$\nfor all real numbers $x$.", "options": [], "answer": "Detailed solution", "solution": "First Solution. Since $f(x) = 0$ has no nonnegative real solutions, $b = f(0) > 0$. If $a \\ge 0$, then take $g(x) = f(x), h(x) = 1$. Suppose that $a < 0$. Since $f(x) = 0$ has no nonnegative roots, we must have $a^2 < 4b$. Replacing $f(x)$ by $b^{-1} f(x \\sqrt{b})$, we may assume that $b = 1$.\n\nPut $c_1 = -a$ and $f_1(x) = f(x) = x^2 - c_1 x + 1$. Note that $c_1^2 < 4$. Put $f_2(x) = f_1(x)(x^2 + c_1 x + 1) = x^4 - c_2 x^2 + 1$, where $c_2 = c_1^2 - 2$. If $c_2 \\le 0$, take $g(x) = f_2(x), h(x) = g(x)/f(x)$ to satisfy the conclusion. If $c_2 > 0$, then put\n$$\nf_3(x) = f_2(x)(x^4 + c_2 x^2 + 1) = (x^8 - c_3 x^4 + 1),\n$$\nso $c_3 = c_2^2 - 2$. Proceeding in this way, suppose that $f_k(x) = (x^{2k} - c_k x^{2k-1} + 1)$, where $c_k = c_{k-1}^2 - 2$, and that $c_k \\le 0$, then take $g(x) = f_k(x), h(x) = g(x)/f(x)$ to satisfy the conclusion.\n\nIf $c_k > 0$, then put\n$$\nf_{k+1}(x) = f_k(x)(x^{2k} + c_k x^{2k-1} + 1) = x^{2k+1} - c_{k+1} x^{2k} + 1.\n$$\n\nSuppose that $c_t > 0$ for all positive integers $t$.\nThen, for a positive integer $n$, $c_n^2 > 2$, $c_{n-1}^2 > 2+\\sqrt{2}$, $c_{n-2}^2 > 2+\\sqrt{2+\\sqrt{2}}$, $c_{n-3}^2 > 2+\\sqrt{2+\\sqrt{2+\\sqrt{2}}}$, ..., and in general $c_{n-s}^2 > 2+\\sqrt{2+\\sqrt{2+\\sqrt{2}+\\dots+\\sqrt{2}}}$ (s terms 2 under the radical signs). By the AGM inequality, $2+\\sqrt{2} > 2\\sqrt{2\\sqrt{2}} = 2^{1+\\frac{1}{2}+\\frac{1}{4}}$, and, in general,\n$$\n2 + \\sqrt{2 + \\sqrt{2 + \\sqrt{2 + \\dots + \\sqrt{2}}}} > 2^{1+\\frac{1}{2}+\\frac{1}{4}} + \\dots + \\frac{1}{2^{h+1}},\n$$\nwhere there are $h$ terms 2 under the radical sign. Hence $c_1^2 > 2^{1+\\frac{1}{2}+\\frac{1}{4}} + \\dots + \\frac{1}{2^{m+1}}$, for all positive integers $m$.\nSince the sum of the geometric progression\n$$\n1 + \\frac{1}{2} + \\frac{1}{2^2} + \\dots + \\frac{1}{2^n} + \\dots\n$$\nis 2, while $c_1^2 < 4$, this is a contradiction.\nHence $c_t \\le 0$ for some positive integer $t$, and the proof is complete.\n\n\nSolution 2:\n\nThis is based on the following observation, viz., if\n$$\np(x, \\theta) = x^2 - 2 \\cos \\theta x + 1,\n$$\nthen\n$$\n\\begin{aligned}\np(x, \\theta)p(x, \\theta + \\pi) &= (x^2 - 2 \\cos \\theta x + 1)(x^2 + 2 \\cos \\theta x + 1) \\\\\n&= x^4 - 2(2 \\cos^2 \\theta - 1)x^2 + 1 \\\\\n&= x^4 - 2 \\cos 2\\theta x^2 + 1 \\\\\n&= p(x^2, 2\\theta).\n\\end{aligned}\n$$\n\nTo continue, as in the First Solution, it suffices to consider the case $f(x) = x^2 - c x + 1$, where $0 < c < 2$. Select $\\theta \\in (0, \\pi/2)$, so that $c = 2 \\cos \\theta$. Then $f(x) = p(x, \\theta)$ and so\n$$\nf(x)p(x, \\theta + \\pi) = p(x^2, 2\\theta) = x^4 - 2 \\cos 2\\theta x^2 + 1.\n$$\n\nIf $\\cos 2\\theta \\le 0$, we stop and take $g(x) = p(x^2, 2\\theta)$ and $h(x) = p(x, \\theta + \\pi)$. Otherwise, we repeat the process and use the fact that\n$$\np(x^2, 2\\theta)p(x^2, 2\\theta + \\pi) = p(x^4, 4\\theta).\n$$\n\nWe stop if $\\cos 4\\theta \\le 0$, and put\n$$\ng(x) = p(x^4, 4\\theta), \\quad h(x) = p(x, \\theta + \\pi)p(x^2, 2\\theta + \\pi).\n$$\nOtherwise we continue. We stop at the $n$th stage where $\\cos 2^n\\theta \\le 0$, and $\\cos 2^{n-1}\\theta > 0$, at which point we let\n$$\ng(x) = p(x^{2^n}, 2^n\\theta), \\quad h(x) = p(x, \\theta + \\pi) \\prod_{k=1}^{2^n-1} p(x^{2^k}, 2^k\\theta + \\pi).\n$$\n\nIt's clear that $g, h$ are polynomials whose coefficients are nonnegative, and that $f = g/h$.", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 32982, "subject": "Mathematics (Multi-modal)", "question": "Let $r$ and $n$ be nonnegative integers such that $r \\le n$.\n\na. Prove that\n$$\n\\frac{n+1-2r}{n+1-r} \\binom{n}{r}\n$$\nis an integer.\n\nb. Prove that\n$$\n\\sum_{r=0}^{\\lfloor n/2 \\rfloor} \\frac{n+1-2r}{n+1-r} \\binom{n}{r} < 2^{n-2}\n$$\nfor all $n \\ge 9$.\n\n(Note that $\\binom{n}{r} = \\frac{n!}{r!(n-r)!}$. Also, if $x$ is a real number then $\\lfloor x \\rfloor$ is the unique integer such that $\\lfloor x \\rfloor \\le x < \\lfloor x \\rfloor + 1$.)", "options": [], "answer": "Detailed solution", "solution": "Define $S(n,r) := \\frac{n+1-2r}{n+1-r} \\binom{n}{r}$, for all pairs $r, n$ with $-1 \\le r$ and $2r \\le n+1$. In particular $S(n,r) = 0$ if $r = -1$ or if $2r = n+1$. Note that $S(1,0) = 1$. We prove that if $n \\ge 2$ and $0 \\le r \\le n/2$ then\n$$\nS(n,r) = S(n-1, r-1) + S(n-1, r)\n$$\nThe first statement will then follow by induction on $n$. For $n \\ge 2$ we have\n$$\n\\begin{align*}\n& S(n-1, r-1) + S(n-1, r) \\\\\n&= \\frac{(n+2-2r)}{(n+1-r)} \\frac{(n-1)!}{(r-1)!(n-r)!} + \\frac{(n-2r)}{(n-r)} \\frac{(n-1)!}{r!(n-1-r)!} \\\\\n&= \\frac{[r(n+2-2r) + (n-2r)(n+1-r)](n-1)!}{(n+1-r)r!(n-r)!} \\\\\n&= \\frac{[(n+1-2r)n](n-1)!}{(n+1-r)r!(n-r)!} \\\\\n&= S(n,r)\n\\end{align*}\n$$\n\nThe final statement is that $\\sum_{r=0}^{\\lfloor n/2 \\rfloor} S(n,r) < 2^{n-2}$, for $n \\ge 9$. The base case here is $n=9$, where the values of $S(9,r)$ for $r=0,1,2,3,4$ are 1, 8, 27, 48, 42, respectively. These sum to 126, which is less than $2^{9-2} = 128$. The inductive step follows from the fact that\n$$\n\\sum_{r=0}^{\\lfloor n/2 \\rfloor} S(n,r) = \\sum_{r=0}^{\\lfloor n/2 \\rfloor} [S(n-1,r) + S(n-1,r-1)] \\\\\n\\le 2 \\sum_{r=0}^{\\lfloor(n-1)/2\\rfloor} S(n-1,r) < 2 \\times 2^{\\lfloor(n-1)/2\\rfloor} = 2^{n-2}\n$$\n(each $S(n-1, r-1)$ with $r < n/2$ contributes twice to the sum: to $S(n, r-1)$ and $S(n, r+1)$. When $r = n/2$, $S(n-1, n/2-1)$ contributes only once: to $S(n, n/2-1)$.)\n\n\na.\n\nThen\n$$\n\\begin{align*}\nS(n,r) &= \\frac{n+1-r}{n+1-r} \\binom{n}{r} - \\frac{r}{n+1-r} \\binom{n}{r} \\\\\n&= \\binom{n}{r} - \\frac{rn!}{r!(n+1-r)(n-r)!} \\\\\n&= \\binom{n}{r} - \\frac{n!}{(r-1)!(n+1-r)!} \\\\\n&= \\binom{n}{r} - \\binom{n}{r-1},\n\\end{align*}\n$$\na difference between two successive binomial coefficients. Hence $S(n,r)$ is an integer, which is nonnegative if $2r \\le n+1$. Alternatively,\n$$\n\\begin{align*}\nS(n,r) &= \\frac{n+1}{n+1-r} \\binom{n}{r} - 2 \\frac{r}{n+1-r} \\binom{n}{r} \\\\\n&= \\frac{(n+1)n!}{r!(n+1-r)(n-r)!} - 2 \\frac{rn!}{r!(n+1-r)(n-r)!} \\\\\n&= \\frac{(n+1)!}{r!(n+1-r)!} - 2 \\frac{n!}{(r-1)!(n-(r-1))!} \\\\\n&= \\binom{n+1}{r} - 2 \\binom{n}{r-1},\n\\end{align*}\n$$\na difference between multiples of two binomial coefficients.\n\n\nb.\n\nUsing the first representation of $S(n, r)$, we see that\n$$\n\\begin{aligned}\n\\sum_{r=0}^{\\lfloor n/2 \\rfloor} \\frac{n+1-2r}{n+1-r} \\binom{n}{r} &= \\sum_{r=0}^{\\lfloor n/2 \\rfloor} S(n, r) \\\\\n&= \\sum_{r=0}^{\\lfloor n/2 \\rfloor} \\left[ \\binom{n}{r} - \\binom{n}{r-1} \\right] \\\\\n&= \\binom{n}{\\lfloor n/2 \\rfloor}.\n\\end{aligned}\n$$\nIt must now be confirmed that\n$$\n\\binom{n}{\\lfloor n/2 \\rfloor} < 2^{n-2}, \\forall n \\ge 9.\n$$\nWe'll use induction to establish this considering separately when $n$ is even and when $n$ is odd.\n\nCase (i): Suppose $n = 2m$, $m \\ge 5$. Since\n$$\n\\binom{n}{\\lfloor n/2 \\rfloor} = \\frac{(2m)!}{(m!)^2},\n$$\nand\n$$\n\\binom{10}{5} = \\frac{10 \\cdot 9 \\cdot 8 \\cdot 7 \\cdot 6}{5 \\cdot 4 \\cdot 3 \\cdot 2 \\cdot 1} = 252 < 2^8 = 2^{10-2},\n$$\nwe can start the induction at $m = 5$. So, assuming that\n$$\n\\frac{(2m)!}{(m!)^2} < 2^{2m-2}, \\forall m \\ge 5,\n$$\nwe see that\n$$\n\\frac{(2(m+1))!}{((m+1)!)^2} = \\frac{2(m+1)(2m+1)(2m)!}{(m+1)^2(m!)^2} < \\frac{2m+1}{m+1} 2^{2m-1} < 2^{2m}.\n$$\nHence the inequality holds if $n$ is even.\n\nCase (ii): Suppose $n = 2m + 1$, $m \\ge 4$. Since\n$$\n\\binom{n}{\\lfloor n/2 \\rfloor} = \\binom{2m+1}{m} = \\frac{(2m+1)!}{m!(m+1)!},\n$$\nand\n$$\n\\binom{9}{4} = \\frac{9 \\cdot 8 \\cdot 7 \\cdot 6}{4 \\cdot 3 \\cdot 2 \\cdot 1} = 126 < 2^7 = 2^{9-2},\n$$\nwe can start the induction at $m = 4$. So, assuming that\n$$\n\\frac{(2m+1)!}{m!(m+1)!} < 2^{2m-1}, \\forall m \\ge 4,\n$$\nwe see that\n$$\n\\frac{(2m+3)!}{(m+2)!(m+1)!} = \\frac{(2m+3)(2m+2)}{(m+1)(m+2)} \\frac{(2m+1)!}{m!(m+1)!} < \\frac{2m+3}{m+2} 2^{2m} < 2^{2m+1}.\n$$\nHence the inequality holds if $n$ is odd.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32983, "subject": "Mathematics (Multi-modal)", "question": "Find, with proof, all triples of integers $(a, b, c)$ such that $a$, $b$ and $c$ are the lengths of the sides of a right angled triangle whose area is $a + b + c$.", "options": [], "answer": "(5, 12, 13) and (6, 8, 10) (up to permutation)", "solution": "Assume for the moment that $a \\leq b \\leq c$. So\n$$\na^2 + b^2 = c^2. \\quad (1)\n$$\nThe condition on the area entails $ab = 2(a + b + c)$ which implies that\n$$\n4c^2 = (ab)^2 - 4ab(a + b) + 4(a^2 + b^2 + 2ab). \\quad (2)\n$$\nEquations (1) and (2) imply that\n$$\nab - 4(a + b) + 8 = 0\n$$\nor\n$$\nab - 4(a + b) + 16 = 8.\n$$\nThus\n$$\n(a - 4)(b - 4) = 8. \\quad (3)\n$$\nNow, there are only two ways to factorise $8$ in positive integers. Thus, either $(a, b) = (5, 12)$ or $(a, b) = (6, 8)$. Thus, there are (up to permutations) two triples that satisfy the given conditions namely, $(5, 12, 13)$ and $(6, 8, 10)$. $\\square$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32984, "subject": "Mathematics (Multi-modal)", "question": "Let $p_1, p_2, p_3$ and $p_4$ be four different prime numbers satisfying the equations\n$$\n2p_1 + 3p_2 + 5p_3 + 7p_4 = 162,\n$$\n$$\n11p_1 + 7p_2 + 5p_3 + 4p_4 = 162.\n$$\nFind all possible values of the product $p_1p_2p_3p_4$.", "options": [], "answer": "570", "solution": "There are many ways to go about this. One can get upper bounds on each of $p_1, p_2, p_3, p_4$ and work from there. Alternatively, you can use simple number theory ideas.\nAs $p_1, p_2, p_3, p_4$ are all different there can be at most one of them even. If they were all odd, the LHS of the first equation would be odd. Thus one of $p_2, p_3, p_4$ is an even prime and hence equal to $2$. Now look at the second equation and we see that $p_2$ or $p_3$ is $2$.\n\nCase 1. $p_2 = 2$.\n$$\n2p_1 + 5p_3 + 7p_4 = 152\n$$\n$$\n11p_1 + 5p_3 + 4p_4 = 148\n$$\nSubtracting gives $9p_1 - 3p_4 = -8$ which is impossible.\n\nCase 2. $p_3 = 2$.\n$$\n2p_1 + 3p_2 + 7p_4 = 152\n$$\n$$\n11p_1 + 7p_2 + 4p_4 = 152\n$$\nSubtracting $9p_1 + 4p_2 - 3p_4 = 0$. Hence $p_2 = 3$. That leaves two linear equations for $p_1$ and $p_4$ with solution $p_1 = 5$ and $p_4 = 19$. Thus the only solution of the system of equations is $(p_1, p_2, p_3, p_4) = (5, 3, 2, 19)$. Hence the only possible value of $p_1p_2p_3p_4 = 570$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32985, "subject": "Mathematics (Multi-modal)", "question": "Circles $S$ and $T$ intersect at $P$ and $Q$, with $S$ passing through the centre of $T$. Distinct points $A$ and $B$ lie on $S$, inside $T$, and are equidistant from the centre of $T$. The line $PA$ meets $T$ again at $D$. Prove that $|AD| = |PB|$.", "options": [], "answer": "Detailed solution", "solution": "Let $O$ be the centre of the circle $T$. Extend $PB$ to meet the circle at $C$. Let $\\angle QPA = \\alpha$ and let $\\angle BPO = \\beta$. Since $|AO| = |OB|$ the join of the two centres is perpendicular to $AB$. The join of the two centres is also perpendicular to $PQ$. Thus $PQ \\parallel AB$. Hence $\\angle BAP = \\alpha$. Hence $|PB| = |QA|$.\n\nSince $|AO| = |OB|$, $\\angle APO = \\angle BPO = \\beta$. Hence $|PC| = |PD|$. $\\angle PCD = \\pi/2 - \\beta$, $\\angle DQP = \\pi/2 + \\beta$. Also $\\angle PDC = \\angle PCD = \\pi/2 - \\beta$.\n\nAs $QDCP$ is a cyclic quadrilateral\n$$\n\\angle QDP = \\pi = (\\alpha + 2\\beta + \\pi/2 - \\beta) = \\pi/2 - (\\alpha + \\beta)\n$$\nAlso $\\angle AQP = \\angle BPQ = \\alpha + 2\\beta$. Then since $\\angle DQP + \\angle DCP = \\pi$ we get\n$$\n\\angle DQA = \\pi - (\\pi/2 - \\beta + \\alpha + 2\\beta = \\pi/2 - (\\alpha + \\beta) = \\angle QDP)\n$$\nHence $|AD| = |QA| = |PB|$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32986, "subject": "Mathematics (Multi-modal)", "question": "For positive real numbers $a$, $b$, $c$ and $d$ such that $a^2 + b^2 + c^2 + d^2 = 1$ prove that\n$$\na^2 b^2 c d + a b^2 c^2 d + a b c^2 d^2 + a^2 b c^2 d + a^2 b c d^2 + a b^2 c d^2 \\le \\frac{3}{32},\n$$\nand determine the cases of equality.", "options": [], "answer": "Maximum value is 3/32, achieved when a = b = c = d = 1/2.", "solution": "We have\n$$\n(a)\\ (6, 0, 0, 0) > (2, 2, 1, 1)\n$$\n$$\n(b)\\ (2, 2, 2, 0) > (2, 2, 1, 1)\n$$\n$$\n(c)\\ (4, 2, 0, 0) > (2, 2, 1, 1)\n$$\nBy Muirhead and the above majorizations we have the following\n$$\n1.\\ 6(a^6 + b^6 + c^6 + d^6) \\geq 4(a^2 b^2 c d + a b^2 c^2 d + a b c^2 d^2 + a^2 b c^2 d + a^2 b c d^2 + a b^2 c d^2)\n$$\n$$\n2.\\ 6(a^2 b^2 c^2 + a^2 b^2 d^2 + a^2 c^2 d^2 + b^2 c^2 d^2) \\geq 4(a^2 b^2 c d + a b^2 c^2 d + a b c^2 d^2 + a^2 b c^2 d + a^2 b c d^2 + a b^2 c d^2)\n$$\n$$\n3\\ (a^4 d^2 + a^2 b^4 + a^2 d^4 + b^4 d^2 + b^2 d^4 + a^4 c^2 + a^2 c^4 + b^4 c^2 + b^2 c^4 + c^4 d^2 + c^2 d^4 + b^2 a^4) \\geq 4(a^2 b^2 c d + a b^2 c^2 d + a b c^2 d^2 + a^2 b c^2 d + a^2 b c d^2 + a^2 b c d^2 + a b^2 c d^2)\n$$\nAnd so we have\n$$\n1' \\quad (a^6 + b^6 + c^6 + d^6) \\geq \\frac{4}{6}(a^2 b^2 c d + a b^2 c^2 d + a b c^2 d^2 + a^2 b c^2 d + a^2 b c d^2 + a b^2 c d^2)\n$$\n$$\n2' \\quad (a^2 b^2 c^2 + a^2 b^2 d^2 + a^2 c^2 d^2 + b^2 c^2 d^2) \\geq \\frac{4}{6}(a^2 b^2 c d + a b^2 c^2 d + a b c^2 d^2 + a^2 b c^2 d + a^2 b c d^2 + a b^2 c d^2)\n$$\n$$\n3' \\quad (a^4 d^2 + a^2 b^4 + a^2 d^4 + b^4 d^2 + b^2 d^4 + a^4 c^2 + a^2 c^4 + b^4 c^2 + b^2 c^4 + c^4 d^2 + c^2 d^4 + b^2 a^4) \\geq 2(a^2 b^2 c d + a b^2 c^2 d + a b c^2 d^2 + a^2 b c^2 d + a^2 b c d^2 + a b^2 c d^2)\n$$\nTaking the linear combination $(1') + 6(2') + 3(3')$ we have it that l.h.s. of the resulting inequality becomes $(a^2 + b^2 + c^2 + d^2)^3$ and thus\n$$\n(a^2 + b^2 + c^2 + d^2)^3 \\geq \\frac{32}{3}(a^2 b^2 c d + a b^2 c^2 d + a b c^2 d^2 + a^2 b c^2 d + a^2 b c d^2 + a b^2 c d^2).\n$$\nAs $a^2 + b^2 + c^2 + d^2 = 1$ the result follows.\n\n\nSolution 2:\n\nWriting the expression $a^2 b^2 c d + a b^2 c^2 d + a b c^2 d^2 + a^2 b c^2 d + a^2 b c d^2 + a b^2 c d^2$ as $a b c d (a b + b c + c d + a c + a d + b d)$ and given the condition $a^2 + b^2 + c^2 + d^2 = 1$ we note that $a b c d$ can not exceed $1/16$. Furthermore, using non-negativity of square of $(a-b), (b-c), (c-d), (d-a), (c-a), (d-b)$, and the condition $a^2 + b^2 + c^2 + d^2 = 1$ yields that $a b + b c + c d + a c + a d + b d$ can not exceed $3/2$, and result follows.\n\n\nSolution 3:\n\nAs above, we have\n$$\na^2 b^2 c d + a b^2 c^2 d + a b c^2 d^2 + a^2 b c^2 d + a^2 b c d^2 + a b^2 c d^2 = a b c d (a b + b c + c d + a c + a d + b d)\n$$\nand $a b c d \\leq \\frac{1}{16}$ (by AM-GM and $a^2 + b^2 + c^2 + d^2 = 1$). Now\n$$\na b + b c + c d + a c + a d + b d \\leq \\frac{a^2+b^2}{2} + \\frac{b^2+c^2}{2} + \\frac{c^2+d^2}{2} + \\frac{a^2+c^2}{2} + \\frac{a^2+d^2}{2} + \\frac{b^2+d^2}{2}\n$$\n(apply AM-GM to each term of the left hand side). Now the right hand side of the last inequality is equal to $\\frac{3}{2}(a^2 + b^2 + c^2 + d^2)$ which, by assumption is $\\frac{3}{2}$. The required inequality follows immediately from these observations.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32987, "subject": "Mathematics (Multi-modal)", "question": "Determine, with proof, all integers $x$ for which $x(x+1)(x+7)(x+8)$ is a perfect square.", "options": [], "answer": "[-9, -8, -7, -4, -1, 0, 1]", "solution": "We would like to find all pairs of integers $(x, y)$ which satisfy\n$$\nx(x+1)(x+7)(x+8) = y^2.\n$$\nWith $z = x + 4$ this equation translates into the equivalent equations\n$$\n\\begin{align*}\n& (z-4)(z-3)(z+3)(z+4) = y^2 \\\\\n& (z^2 - 9)(z^2 - 16) = y^2 \\\\\n& z^4 - 25z^2 + 12^2 = y^2 \\quad \\text{now multiply by 4} \\\\\n& 4z^4 - 100z^2 + 24^2 = 4y^2 \\\\\n& (2z^2 - 25)^2 - 25^2 + 24^2 = 4y^2 \\\\\n& (2z^2 - 25)^2 - (2y)^2 = 49 \\\\\n& (2z^2 - 25 - 2y)(2z^2 - 25 + 2y) = 49.\n\\end{align*}\n$$\nBecause $(x, y)$ is a solution if and only if $(x, -y)$ is so, we may assume $y \\ge 0$. This implies $A := 2z^2 - 25 - 2y \\le B := 2z^2 - 25 + 2y$. Because $AB = 49$ and $A, B$ are integers, the table below contains all possibilities for them. The values of $y, z, x$ are obtained from\n$$\nB - A = 4y, \\quad 2z^2 = 25 + A + 2y = 25 + \\frac{A+B}{2} \\quad \\text{and} \\quad x = z - 4.\n$$\n| A | B | y | z | x |\n|-----|-----|----|-----|------|\n| -49 | -1 | 12 | 0 | -4 |\n| -7 | -7 | 0 | ±3 | -1, -7 |\n| 7 | 7 | 0 | ±4 | 0, -8 |\n| 1 | 49 | 12 | ±5 | 1, -9 |\nThis gives at most seven possible integers $x$ for which $x(x + 1)(x + 7)(x + 8)$ is a perfect square, namely\n$x \\in \\{-9, -4, 1\\}$ with $y^2 = 144$ \\text{ and }\n$x \\in \\{-8, -7, -1, 0\\}$ with $y^2 = 0.$\nand a quick check reveals that these in fact solve the given equation.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32988, "subject": "Mathematics (Multi-modal)", "question": "Find $a_3, a_4, \\dots, a_{2008}$, such that $a_i = \\pm 1$ for $i = 3, \\dots, 2008$ and\n$$\n\\sum_{i=3}^{2008} a_i 2^i = 2008,\n$$\nand show that the numbers $a_3, a_4, \\dots, a_{2008}$ are uniquely determined by these conditions.", "options": [], "answer": "a3 = a5 = a6 = a7 = a8 = a9 = a2008 = +1 and a4 = a10 = a11 = a12 = ... = a2007 = -1; this assignment exists and is unique.", "solution": "Existence: Dividing both sides by $8$, we require\n$$\n251 = \\sum_{i=0}^{2005} a_{i+3} 2^i.\n$$\nNow $251 = 2^0 + 2^1 + 2^2 + 2^3 + 2^4 + 2^5 + 2^6 + 2^7$. Also $-(1+2+\\dots+2^{m-1}) + 2^m = 1$, for $m = 1, 2, \\dots$ So\n$$\n251 = 2^0 + 2^1 + 2^2 + 2^3 + 2^4 + 2^5 + 2^6 + 2^7(-1 - 2 - \\dots - 2^{1997} + 2^{1998}).\n$$\nSo $a_3 = a_5 = a_6 = a_7 = a_8 = a_9 = a_{2008} = +1$ and $a_4 = a_{10} = a_{11} = a_{12} = \\dots = a_{2007} = -1$ gives a solution.\n\nUniqueness: More generally, for $n \\ge 1$, each odd integer $m$ with $-2^n < m < 2^n$ has a unique expression as\n$$\nm = \\sum_{i=0}^{n-1} a_i 2^i, \\quad \\text{where } a_i = \\pm 1, \\text{ for each } i. \\qquad (4)\n$$\nWe prove this by induction on $n$. The base case $n = 1$ is just the statement that $1 = 2^0$ and $-1 = -2^0$.\nLet $n > 1$ and assume the result for $n-1$. Then there is a unique integer $a_0 = \\pm 1$ such that $m - a_0 \\equiv 2 \\pmod 4$. Clearly $-2^n < m - a_0 < 2^n$. So $-2^{n-1} < (m - a_0)/2 < 2^{n-1}$ and $(m - a_0)/2$ is odd. The inductive hypothesis implies that\n$$\n(m - a_0)/2 = \\sum_{i=1}^{n-1} a_i 2^{i-1}, \\quad \\text{for unique } a_i = \\pm 1.\n$$\nThis gives the expression for $m$. The uniqueness of the expression is apparent from the construction. It is also a consequence of the fact that there are $2^n$ odd integers $m$ with $-2^n < m < 2^n$, but only $2^n$ expressions $\\sum_{i=0}^{n-1} a_i 2^i$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32989, "subject": "Mathematics (Multi-modal)", "question": "Given $k \\in \\{0, 1, 2, 3\\}$ and a positive integer $n$, let $f_k(n)$ be the number of sequences $x_1, \\dots, x_n$, where $x_i \\in \\{-1, 0, 1\\}$ for $i = 1, \\dots, n$, and\n$$\nx_1 + \\cdots + x_n \\equiv k \\mod 4.\n$$\n\na. Prove that $f_1(n) = f_3(n)$ for all positive integers $n$.\n\nb. Prove that\n$$\nf_0(n) = \\frac{3^n + 2 + (-1)^n}{4}\n$$\nfor all positive integers $n$.", "options": [], "answer": "f1(n) = f3(n) for all positive integers n; and f0(n) = (3^n + 2 + (-1)^n) / 4 for all positive integers n.", "solution": "a. Let $F_k(n)$ be the collection of sequences/vectors $x$ corresponding to $f_k(n)$. Suppose $x = (x_1, ..., x_n) \\in F_1(n)$. Then at least one of the entries $x_i \\ne 0$. For the first such nonzero value, change its sign and call the resulting sequence $\\alpha(x)$. Since $\\sum x_i \\equiv 1 \\pmod 4$, we have $\\sum \\alpha(x) \\equiv 3 \\pmod 4$. The map $\\alpha$ is also an involution. Thus\n$$\nf_1(n) = f_3(n). \\qquad (5)\n$$\n\n\nb. Applying the same map $\\alpha$ to the set $F_0(n) - \\bar{0}$ (where $\\bar{0}$ is the sequence of all zero's) gives a bijection between $F_0(n) - \\bar{0}$ and $F_2(n)$. Thus\n$$\nf_0(n) - 1 = f_2(n). \\quad (6)\n$$\nSince these sum residue classes partition all such sequences we have\n$$\nf_0(n) + f_1(n) + f_2(n) + f_3(n) = 3^n. \\quad (7)\n$$\nOne more equation is required. Let $A_n = F_0(n) \\cup F_2(n)$, the set of all sequences that have an even sum, and let $B_n = F_1(n) \\cup F_3(n)$, the set of all sequences that have an odd sum.\nFor a sequence $x = (x_1, \\dots, x_n)$, let $\\beta(x)$ be the sequence obtained by finding the first element of the sequence $x$ that is *not* 1, and changing it with the third entry (i.e. $-1 \\mapsto 0$ or $0 \\mapsto -1$). The operation $\\beta(x)$ is well defined for $x \\neq (1, \\dots, 1)$. It also changes the parity of the sum.\nThus $\\beta: A_n - \\bar{1} \\mapsto B_n - \\bar{1}$ is a bijection. The parity of $n$ tells us which of $A_n$ and $B_n$ the vector $\\bar{1}$ is in, hence\n$$\nf_0(n) + f_2(n) = f_1(n) + f_3(n) + (-1)^n. \\quad (8)\n$$\nCombining (1), (2), (3) and (4) give\n$$\nf_0(n) = \\frac{3^n + 2 + (-1)^n}{4}. \\quad (9)\n$$", "topic": "Number Theory", "subtopic": "Modular Arithmetic" }, { "id": 32990, "subject": "Mathematics (Multi-modal)", "question": "How many sequences $a_1, a_2, \\dots, a_{2008}$ are there such that each of the numbers $1, 2, \\dots, 2008$ occurs once in the sequence, and $i \\in \\{a_1, a_2, \\dots, a_i\\}$ for each $i$ such that $2 \\le i \\le 2008$?", "options": [], "answer": "2^{2007}", "solution": "There are several different solutions:\n\n**Solution 1:** The function $f: \\{1, \\dots, 2008\\} \\to \\{1, \\dots, 2008\\}$ given by $f(i) = a_i$ is a bijection. Let us consider its inverse $f^{-1}: \\{1, \\dots, 2008\\} \\to \\{1, \\dots, 2008\\}$. The condition that $i \\in \\{a_1, \\dots, a_i\\}$ for $i \\ge 2$ is equivalent to $f^{-1}(i) \\in \\{1, \\dots, i\\}$ for all $i \\ge 2$. Therefore, there are two choices for $f^{-1}(2)$, two choices for $f^{-1}(3)$ (since one of $\\{1, 2, 3\\}$ has been 'used already' for $f^{-1}(2)$), two choices for $f^{-1}(4)$, ..., two choices for $f^{-1}(2008)$. Thus there are $2^{2007}$ possibilities for the function $f^{-1}$. Therefore there are $2^{2007}$ such sequences.\n\n\n**Solution 2:** We will say that a 2008-tuple is good if it has the required properties. Let $A = (a_1, ..., a_{2008})$ be a good 2008-tuple. Let $S_A = \\{i : 2 \\le i \\le 2008 \\text{ and } a_i \\neq i\\}$. We will show that $A \\mapsto S_A$ is a bijection between the set of good 2008-tuples and the set of subsets of $\\{2, ..., 2008\\}$.\nFirst we observe that the function $i \\mapsto a_i$ is a bijection from $\\{1, ..., 2008\\}$ to itself.\n**Lemma:** If $A$ is good then for each $i = 1, ..., 2008$, either $a_i = 1$ or $a_i \\ge i$.\n**Proof:** This is obvious for $i = 1$ and $i = 2$. Suppose that $i \\ge 3$ and $a_i \\in \\{2, ..., i - 1\\}$. Property (a) implies in particular that $a_i \\neq a_j$ for $j = 1, 2, ..., a_i - 1$. That is,\n$$\na_i \\notin \\{a_1, a_2, ..., a_{a_i - 1}\\}.\n$$\nTherefore we must have $a_{a_i} = a_i$. Therefore $i = a_i$ (bijectivity again) which contradicts our assumption that $a_i < i$. $\\square$\nNow suppose that $A$ is a good 2008-tuple and that $S_A = \\{n_1, n_2, ..., n_k\\}$ where $n_1 < n_2 < \\dots < n_k$. Clearly $a_i = i$ for all $i \\notin S_A \\cup \\{1\\}$. So for $i \\in S \\cup \\{1\\}$ we must have $a_i \\in S \\cup \\{1\\}$ also. That is to say, $i \\mapsto a_i$ is a bijection $S_A \\cup \\{1\\} \\to S_A \\cup \\{1\\}$. Now the lemma above clearly implies that $a_1 = a_{n_1}, a_{n_j} = n_{j+1}$ for $j = 1, ..., k-1$ and $a_{n_k} = 1$. In other words $A$ is determined by the set $S_A$. So $A \\mapsto S_A$ is an injection.\nNow suppose that $S = \\{n_1, ..., n_k\\} \\subset \\{2, ..., 2008\\}$. Let $a_i = i$ for all $i \\notin S$. Define $a_1 = n_1, a_{n_j} = n_{j+1}$ for $j = 1, ..., k-1$ and let $a_{n_k} = 1$. Then is easily seen that $A = (a_1, ..., a_{2008})$ is good and clearly $S_A = S$. Therefore $A \\mapsto S_A$ is a surjection. $\\square$\n\n\n**Solution 3:** (By induction.) We claim that, for integers $n \\ge 2$,\n\nthe number of bijections $f: \\{1, \\dots, n\\} \\to \\{1, \\dots, n\\}$ such that $i \\in \\{1, \\dots, f(i)\\}$ for all $i \\ge 2$, is $2^{n-1}$. Let us call such functions good. This easily checked for $n=2$. Suppose that the statement is true for some $n=2, \\dots, k$ where $k \\ge 2$. Now consider a good function $f: \\{1, \\dots, k+1\\} \\to \\{1, \\dots, k+1\\}$. There are 2008 possible choices for $f(1)$. If $f(1)=1$ then we must have $f(i)=i$ for all $i$, so there is one such function. If $f(1)>1$, then $f(i)=i$ for $i=2, \\dots, f(1)-1$. Now it is easy to see that the number of possible such functions $f$ is the same as the number of good functions from $\\{1, \\dots, k-f(1)\\}$ to itself. The induction hypothesis implies that there are $2^{k-f(1)-1}$ of these. Therefore, the number of good functions on $\\{1, \\dots, k+1\\}$ is\n$$\n1+2^{k-1}+2^{k-2}+\\dots+2+1=2^k.\n$$\nThis completes the induction step.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32991, "subject": "Mathematics (Multi-modal)", "question": "Suppose that $x$, $y$ and $z$ are positive real numbers such that $xyz \\ge 1$.\n\na. Prove that\n$$\n27 \\le (1+x+y)^2 + (1+y+z)^2 + (1+z+x)^2,\n$$\nwith equality if and only if $x = y = z = 1$.\n\nb. Prove that\n$$\n(1+x+y)^2 + (1+y+z)^2 + (1+z+x)^2 \\le 3(x+y+z)^2,\n$$\nwith equality if and only if $x = y = z = 1$.", "options": [], "answer": "Detailed solution", "solution": "**Solution to Part (a).** One can establish this in several ways. For instance, using the convexity of $t \\to t^2$ we have\n$$\n\\left(\\frac{3+2(x+y+z)}{3}\\right)^2 = \\left(\\frac{(1+x+y)+(1+y+z)+(1+z+x)}{3}\\right)^2 \n\\le \\frac{(1+x+y)^2+(1+y+z)^2+(1+z+x)^2}{3},\n$$\nwith equality iff\n$$\n1+x+y=1+y+z=1+z+x,\n$$\ni.e., $x = y = z$. Hence\n$$\n\\frac{(3+2(x+y+z))^2}{3} \\le (1+x+y)^2 + (1+y+z)^2 + (1+z+x)^2,\n$$\nwith equality iff $x = y = z$.\nThis also follows from an application of the Cauchy-Schwarz inequality\nto the expression\n$$\n3+2(x+y+z) = (1+x+y) + (1+y+z) + (1+z+x).\n$$\nTo continue, by the AM-GM inequality,\n$$\n3+2(x+y+z) \\ge 3+6\\sqrt{xyz} \\ge 9,\n$$\nwith equality iff $x = y = z = 1$. Hence\n$$\n27 = \\frac{81}{3} \\le \\frac{(3+2(x+y+z))^2}{3} \\le (1+x+y)^2 + (1+y+z)^2 + (1+z+x)^2,\n$$\nwith equality iff $x = y = z$.\nAlternatively, applying the AM-GM inequality termwise we see that\n$$\n\\begin{aligned} (1+x+y)^2 + (1+y+z)^2 + (1+z+x)^2 &\\ge (3\\sqrt[3]{1xy})^2 + (3\\sqrt[3]{1yz})^2 + (3\\sqrt[3]{1zx})^2 \\\\ &= 9(\\sqrt[3]{x^2y^2} + \\sqrt[3]{y^2z^2} + \\sqrt[3]{z^2x^2}) \\\\ &\\ge 27\\sqrt[3]{x^4y^4z^4} \\\\ &\\ge 27, \\end{aligned}\n$$\nwith equality throughout iff $x = y = z = 1$.\n\n\n**Solution to Part (b).** Now consider the inequality on the right-hand side:\n$$\n(1+x+y)^2 + (1+y+z)^2 + (1+z+x)^2 \\le 3(x+y+z)^2.\n$$\nExpanding and simplifying this leads to the following equivalent statement that\n$$\n3+2(x^2+y^2+z^2)+2(xy+yz+zx)+4(x+y+z) \\le 3(x^2+y^2+z^2)+6(xy+yz+zx),\n$$\ni.e.,\n$$\n3+4(x+y+z) \\le x^2+y^2+z^2+4(xy+yz+zx) = (x+y+z)^2+2(xy+yz+zx).\n$$\nEquivalently,\n$$\n7 \\le (u-2)^2 + 2v,\n$$\nwhere $u = x + y + z$, $v = xy + yz + zx$. But $u \\ge 3$ and $v \\ge 3$, with equality in both of these inequalities iff $x = y = z = 1$. Hence\n$$\n(u-2)^2 + 2v \\ge 1+6=7,\n$$\nwith equality iff $x = y = z = 1$. This establishes the desired result.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32992, "subject": "Mathematics (Multi-modal)", "question": "A triangle $ABC$ has an obtuse angle at $B$. The perpendicular at $B$ to $AB$ meets $AC$ at $D$, and $|CD| = |AB|$. Prove that\n$$\n|AD|^2 = |AB| \\cdot |BC| \\text{ if and only if } \\angle CBD = 30^\\circ.\n$$", "options": [], "answer": "Detailed solution", "solution": "Let $|BC| = a$, $|AD| = b$, $|AB| = |CD| = c$. We are given $b^2 = a c$ and need to prove $\\angle CBD = 30^\\circ$.\n$$\n\\frac{a^2 + c^2 - (b + c)^2}{2 a c} = \\cos(90^\\circ + \\angle CBD) = -\\sin(\\angle CBD). \\text{ Hence } \\sin(\\angle BCD) = \\frac{b^2 + 2 b c - a^2}{2 a c}.\n$$\n$$\n\\text{Also } \\sin(\\angle CBD) = \\frac{c}{a} \\sin(\\angle BDC) = \\frac{c}{a} \\sin(\\angle BDA) = \\frac{c}{a} \\cdot \\frac{c}{b}.\n$$\nHence\n$$\n\\frac{b^2 + 2 b c - a^2}{2 a c} = \\frac{c^2}{a b}\n$$\nThus $b^3 + 2 b^2 c - a^2 b - 2 c^3 = 0$. Using $b^2 = a c$ we obtain $(a b - 2 c^2)(c - a) = 0$.\nIf $a = c$ then $|AC| = b + c > c + c$ which contradicts the triangle inequality. Hence $a b = 2 c^2$ and from previous calculations $\\sin(\\angle CBD) = \\frac{c^2}{a b} = \\frac{1}{2}$. Thus $\\angle CBD = 30^\\circ$.\n$$\n\\text{Conversely, } \\sin(\\angle CBD) = \\frac{b^2 + 2 b c - a^2}{2 a c} = \\frac{1}{2} \\text{ implies } b^2 + 2 b c - a^2 - a c = 0.\n$$\nAlso $\\sin(\\angle CBD) = \\frac{c^2}{a b} = \\frac{1}{2}$ implies $a b = 2 c^2$. Substituting for $a$ we obtain $b^2 + 2 b c - \\frac{4 c^4}{b^2} - \\frac{2 c^3}{b} = 0$. Factorising we obtain $(b^3 - 2 c^3)(b + 2 c) = 0$. As $b + 2 c > 0$, $b^3 = 2 c^3 = 2 a b c$. Hence $b^2 = a c$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32993, "subject": "Mathematics (Multi-modal)", "question": "Suppose $p \\ge 4$. Determine the largest constant $q$ such that, for all $a, b > 0$,\n$$\n\\frac{1}{a} + \\frac{1}{b} + \\frac{p}{a+b} \\ge \\frac{q}{\\sqrt{ab}}\n$$", "options": [], "answer": "2\\sqrt{p}", "solution": "Multiplying through by $\\sqrt{ab}$ we see that we require the largest number $q$ so that\n$$\n\\frac{a+b}{\\sqrt{ab}} + \\frac{\\sqrt{ab}}{a+b} p \\ge q, \\quad \\forall a, b > 0.\n$$\nTo deal with this, let\n$$\ns = \\frac{a+b}{\\sqrt{ab}},\n$$\nso that the inequality becomes\n$$\ns + \\frac{p}{s} \\ge q.\n$$\nThis suggests that we should look for the minimum value of the function\n$$\nf(s) = s + \\frac{p}{s}.\n$$\nBut\n$$\nf(s) - 2\\sqrt{p} = \\left(\\sqrt{s} - \\frac{\\sqrt{p}}{\\sqrt{s}}\\right)^2 \\ge 0,\n$$\nwith equality iff $s = \\sqrt{p}$. Hence, $f(s) \\ge 2\\sqrt{p}$, $\\forall s > 0$, i.e., $q \\le 2\\sqrt{p}$. In other words, for all $a, b > 0$,\n$$\n\\frac{1}{a} + \\frac{1}{b} + \\frac{p}{a+b} \\ge \\frac{2\\sqrt{p}}{\\sqrt{ab}}.\n$$\nTo prove that $2\\sqrt{p}$ is the best constant, we must confirm that there is a pair of positive numbers $a, b$ such that\n$$\n\\frac{a+b}{\\sqrt{ab}} = \\sqrt{p} \\iff t + \\frac{1}{t} = \\sqrt{p}. \\quad \\text{with } t = \\sqrt{\\frac{a}{b}}.\n$$\nBut $p \\ge 4$. Hence $(\\sqrt{p} \\pm \\sqrt{p-4})/2$ are two positive solutions of the quadratic equation $t^2 - \\sqrt{p}t + 1 = 0$. Choose $t$ to be any one of these, let $a = t^2, b = 1$ and confirm that\n$$\n\\frac{1}{t^2} + 1 + \\frac{p}{t^2 + 1} = \\frac{2\\sqrt{p}}{t}\n$$\nHence $q = 2\\sqrt{p}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32994, "subject": "Mathematics (Multi-modal)", "question": "Let $p(x)$ be a polynomial with rational coefficients. Prove that there exists a positive integer $n$ such that the polynomial $q(x)$ defined by\n$$\nq(x) = p(x + n) - p(x)\n$$\nhas integer coefficients.", "options": [], "answer": "Detailed solution", "solution": "Each term in $p(x)$ is of the form $a_i x^i$, where $a_i$ is rational. Expanding the expression $a_i(x+n)^i - a_i x^i$, we see that $n$ is a factor in all terms. Thus it suffices to pick $n$ to equal the least common multiple of the denominators of the coefficients $a_i$.", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 32995, "subject": "Mathematics (Multi-modal)", "question": "A fixed point $O$ is joined to any point $P$ on a given line which does not contain $O$. On $OP$ a point $Q$ is taken such that $|OP| \\cdot |OQ|$ is constant. Show $Q$ lies on a fixed circle if $P$ varies. Examine all possible cases.", "options": [], "answer": "Detailed solution", "solution": "Let $R$ be the foot of the perpendicular from $O$ on the given line and let $S$ be chosen on $OR$ such that $|OR| \\cdot |OS| = |OP| \\cdot |OQ|$, i.e. $S$ is a point on the locus. The value of the constant determines the position of $S$, either between $O$ and $R$ or not. Then $P, Q, S$ and $R$ lie on a circle in all cases (see formulation of the hint). Hence $\\angle PQS = 90^\\circ$ since $\\angle PRO = 90^\\circ$. This implies that $Q$ lies on the circumference of the circle on $OS$ as diameter which is a fixed circle. In every case $Q$ can be taken on either side of $O$ on the line $OP$. The analysis in every case (see drawings below) is similar to above.\n![](attached_image_1.png)\n![](attached_image_2.png)\n\n![](attached_image_3.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32996, "subject": "Mathematics (Multi-modal)", "question": "Suppose $A$ is an $n \\times n$ array of numbers, with $n > 2$, and denote by $A(i, j)$ the number in the $i$th row and $j$th column. We say that $A$ is an *averaging array* if it has the following property: $A(i, j)$ equals the average of the three numbers $A(i, j-1)$, $A(i-1, j)$, and $A(i-1, j-1)$, whenever $i, j \\in \\{2, \\dots, n\\}$. Let $M$ be the maximum of all values $A(i, j)$ in the averaging array $A$.\n\na. Prove that there exists $i \\in \\{1, \\dots, n\\}$ such that either $A(i, 1)$ or $A(1, i)$ equals $M$.\n\nb. There is a trivial way to get $A(i_0, j_0) = M$ for any fixed choice of indices $i_0, j_0 \\in \\{1, \\dots, n\\}$: just pick $A(i, j) = M$ for all $i, j$. For each fixed choice of indices $i_0, j_0 \\in \\{1, \\dots, n\\}$ either describe how to construct a non-trivial averaging array and for which $A(i_0, j_0)$ equals the maximum value $M$, or show that no such array exists.", "options": [], "answer": "Detailed solution", "solution": "a.\nFor part (i), first observe that if $A(i, j) = M$ with $i, j > 1$, then the three neighbouring values that have average value $A(i, j)$ must also equal $M$, since otherwise at least one would have to be larger than $M$. Then it is not hard to see that we can propagate this value to get that the subarray with main diagonal from position $(1, 1)$ to $(i, j)$ must equal $M$ everywhere, thus yielding (i).\n\nb.\nFor (ii), it already follows from the previous paragraph that there are no non-trivial examples if $i_0 = j_0 = n$. However, such non-trivial examples can be constructed in all other cases: just pick $A(i, j) = M$ for all numbers in the subarray with main diagonal from $(1, 1)$ to $(i_0, j_0)$. This leaves some elements $A(i, 1)$ undefined (if $i_0 < n$) or some elements $A(1, i)$ undefined (if $j_0 < n$). Put numbers strictly less than $M$ in all positions in the first row and first column that are not yet defined. Now fill in the rest of the array one row at a time from left to right, beginning with the first row and proceeding in the natural order. In all cases, the next position is uniquely defined in terms of the values we have already chosen. This is the required example.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 32997, "subject": "Mathematics (Multi-modal)", "question": "Find all positive integers $n$ for which $n^8 + n + 1$ is a prime number.", "options": [], "answer": "n = 1", "solution": "Let $f(x) = x^8 + x + 1$. Numerical values get large very quickly:\n$$\n\\begin{aligned}\nf(1) &= 3 \\\\\nf(2) &= 259 = 7 \\times 37 \\\\\nf(3) &= 6565 = 5 \\times 13 \\times 101 \\\\\nf(4) &= 65541 = 3 \\times 7 \\times 3121.\n\\end{aligned}\n$$\nThese numbers may suggest that $f(n)$ will be a prime number only if $n = 1$. To prove this, we try to factorise the polynomial $x^8 + x + 1$. Progress can be made if it is suspected that $x^2 + x + 1$ is a factor. This can quickly be tested by using a cubic root of unity $\\omega \\neq 1$. It satisfies $\\omega^2 + \\omega + 1 = 0$ and $\\omega^3 = 1$,\nhence $\\omega^8 = \\omega^2$ from which we directly see $f(\\omega) = 0$. Polynomial division gives now easily the factorisation $f(x) = (x^2+x+1)(x^6-x^5+x^3-x^2+1)$. Another way to obtain this factorisation is the following. We write $x^8+x+1 = x^8 - x^2 + x^2 + x + 1$ and observe\n$$\nx^8 - x^2 = x^2(x^6 - 1) = x^2(x^3 + 1)(x^3 - 1) = x^2(x^3 + 1)(x - 1)(x^2 + x + 1).\n$$\nThis gives $f(x) = x^8 + x + 1 = (x^2 + x + 1)(x^2(x^3 + 1)(x - 1) + 1)$. If $n \\ge 2$, we have $n^2 + n + 1 \\ge 7$ and $n^2(n^3 + 1)(n - 1) + 1 \\ge 37$, hence $f(n)$ is not a prime number if $n \\ge 2$. As $f(1) = 3$ is a prime number, we conclude that $n = 1$ is the only positive integer for which $n^8 + n + 1$ is a prime number.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 32998, "subject": "Mathematics (Multi-modal)", "question": "Let $S$ be a set of $n$ different points in the plane so that no three lie on a line. Show that there are at least $\\frac{n(n-2)}{3}$ triangles whose vertices are among the points of $S$ and such that the triangles do not contain any other points of $S$.", "options": [], "answer": "Detailed solution", "solution": "Choose two points $X$ and $Y$ from $S$, and consider the half plane $h$ with boundary the line $XY$, and containing at least one other point of $S$. Now select a point $Z$ of $S$ in the interior of $h$ whose distance from the line $XY$ is a minimum. If there are several such points, choose an arbitrary one.\n\nNow claim that the triangle $XYZ$ does not contain any other point of $S$, apart from $X$, $Y$, and $Z$. Suppose there is a point $A \\in S$ which is in the interior of the triangle $XYZ$. Then $\\operatorname{area}(AXY) < \\operatorname{area}(ZXY)$ and so the altitude from $A$ of the triangle $AXY$ is less than the altitude from $Z$ of the triangle $ZXY$. This contradicts the choice of $Z$.\n\nSuppose that there are $k$ pairs $(X, Y)$ of points in $S$ with the property that the whole of the set $S$ lies in one of the two half planes with boundary the line $XY$. Such pairs are adjacent vertices of the convex hull of $S$ and so $k \\le n$. For each of these pairs $(X, Y)$ we have shown that there is at least one triangle $XYZ, Z \\in S$, which is “empty”, that is it does not contain any of the remaining $n-3$ points of $S$.\n\nThe remaining $\\binom{n}{2} - k$ pairs $(X, Y)$ have the property that there are at least two “empty” triangles $XYZ, Z \\in S$. Now sum all these triangles over all the pairs $(X, Y)$ and we get in all\n$$\nk + 2 \\left( \\binom{n}{2} - k \\right) = n(n-1) - k \\geq n(n-1) - n = n(n-2)\n$$\nsuch triangles. Each is counted at most three times so the number of “empty” triangles is at least $\\frac{n(n-2)}{3}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 32999, "subject": "Mathematics (Multi-modal)", "question": "For any positive integer $n$ define\n$$\nE(n) = n(n + 1)(2n + 1)(3n + 1) \\cdots (10n + 1)\n$$\nFind the greatest common divisor of $E(1)$, $E(2)$, $E(3)$, \\ldots $E(2009)$.", "options": [], "answer": "2310", "solution": "Let $m$ be the g.c.d. of $E(1), E(2), E(3), \\dots, E(2009)$. Since $m|E(1) = 2 \\cdot 3 \\dots 11$, it follows that any prime divisor of $m$ is less than or equal to $11$. Let $p$ be a prime number such that $p \\nmid m$. Since $p \\le 11 < 2009$, it follows that $m|E(p) = p(p+1)(2p+1)(3p+1)\\cdots(10p+1)$. Observe that $p+1, 2p+1, 3p+1, \\dots, 10p+1$ are relatively prime to $p$. so $E(p)$ (and thus $m$) is divisible by $p$ but not by $p^2$. We have thus proved that $m$ is not divisible by the square of any prime number.\n\nSince $m|E(1) = 2 \\cdot 3 \\cdots 11$, it follows that $m$ divides the product of all prime numbers less than or equal to $11$, that is, $m|2310$.\n\nTo show that $m = 2310$ it is enough to prove that for all $n \\ge 1$, the number $E(n)$ is divisible by $2310$.\n\nLet $n \\ge 1$. Then, one of the numbers $n$ or $n+1$ is divisible by $2$, so $2|E(n)$. Similarly, one of the numbers $n, n+1, 2n+1$ is divisible by $3$ so $3|E(n)$. Then, one of the numbers $n, n+1, 2n+1, 3n+1, 4n+1$ is divisible by $5$ which yields $5|E(n)$. In the same manner we obtain $7|E(n)$ and $11|E(n)$. Therefore $E(n)$ is a multiple of $2 \\cdot 3 \\cdot 5 \\cdot 7 \\cdot 11 = 2310$ and so, the g.c.d. is $2310$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33000, "subject": "Mathematics (Multi-modal)", "question": "Given an $n$-tuple of numbers $(x_1, x_2, \\dots, x_n)$ where each $x_i = +1$ or $-1$, form a new $n$-tuple\n$$\n(x_1x_2, x_2x_3, x_3x_4, \\dots, x_nx_1),\n$$\nand continue to repeat this operation. Show that if $n = 2^k$ for some integer $k \\ge 1$, then after a certain number of repetitions of the operation, we obtain the $n$-tuple\n$$\n(1, 1, 1, \\dots, 1).\n$$", "options": [], "answer": "Detailed solution", "solution": "Use induction on $k$. Result clear for $k=1$. Assume it is true for some $k > 1$ and now consider an arbitrary $n$-tuple $(x_1, x_2, \\dots, x_n)$ of length $n = 2^{k-1}$. Since $x_i^2 = 1$ for all $i$, the second iteration\n$$\n(x_1 x_2^2 x_3, x_2 x_3^2 x_4, \\dots, x_{n-1} x_n^2 x_1, x_n x_1^2 x_2)\n$$\ncan be written as\n$$\n(x_1 x_3, x_2 x_4, x_3 x_5, \\dots, x_{n-1} x_1, x_n x_2)\n$$\nwhich is the result of the interlacing of the two $(n-1)$-tuples\n$$\n(x_1 x_3, x_3 x_5, \\dots, x_{n-1} x_1) \\quad \\text{and} \\quad (x_2 x_4, x_4 x_6, \\dots, x_n x_2). \\quad (3)\n$$\nThe same rule can be used to obtain the fourth iteration of the original $n$-tuple by interlacing the second iteration of the two $(n-1)$-tuples of (3), the sixth iteration of the original by interweaving the third iterations etc.. Thus $2j$ iterations ($j \\ge 2$) of the original $n$-tuple yields the same result as the interlacing of the $j^{th}$ iterations of the two $(n-1)$-tuples of (3). But the induction hypothesis guarantees that these iterations of the (3) tuples consist only of ones for sufficiently large $j$. Thus we conclude that, for $j$ sufficiently large, $2j$ iterations of the original $n$-tuple gives the $n$-tuple $(1, 1, \\dots, 1)$ as required.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33001, "subject": "Mathematics (Multi-modal)", "question": "Let $ABC$ be an isosceles triangle with $|AB| = |AC|$. If $D$ is a point on the circumcircle of $\\triangle ABC$ on the same side of $BC$ as $A$, prove\n$$\n|AB| + |AC| \\ge |DB| + |DC|\n$$\nwith equality if and only if $D = A$. Hence prove, of all triangles described in a circle, the equilateral triangle has the greatest perimeter.", "options": [], "answer": "Detailed solution", "solution": "Let $O$ be the centre of the circle and $r$ be its radius. Draw $OE \\perp AB$, $OF \\perp BD$ and $OG \\perp DC$. Then $|AE| = r \\cos \\angle BAO$. Noting that $\\angle BAO = \\angle CAO$ and $E$ is the midpoint of $AB$, it follows that\n$$\n|AB| + |AC| = 4r \\cos \\angle BAO.\n$$\n\nUsing $|DF| = r \\cos \\angle BDO$ and $|DG| = r \\cos \\angle CDO$, we get\n$$\n\\begin{aligned}\n|DB| + |DC| &= 2r \\cos \\angle BDO + 2r \\cos \\angle CDO \\\\\n&= 2r(\\cos \\angle BDO + \\cos \\angle CDO) \\\\\n&= 4r \\cos \\left( \\frac{\\angle BDO + \\angle CDO}{2} \\right) \\cos \\left( \\frac{\\angle BDO - \\angle CDO}{2} \\right)\n\\end{aligned}\n$$\nBecause $4r \\cos(\\frac{\\angle BDC}{2}) = 4r \\cos(\\frac{\\angle BAC}{2}) = 4r \\cos \\angle BAO = |AB| + |AC|$, we obtain\n$$\n|DB| + |DC| = (|AB| + |AC|) \\cos \\left( \\frac{\\angle BDO - \\angle CDO}{2} \\right)\n$$\nSince $\\angle BDC < 180^\\circ$, $\\angle BDO < 90^\\circ$ and $\\angle CDO < 90^\\circ$ then\n$$\n-90^\\circ < \\frac{\\angle BDO - \\angle CDO}{2} < 90^\\circ \\Rightarrow 0 < \\cos \\left( \\frac{\\angle BDO - \\angle CDO}{2} \\right) < 1\n$$\nwith equality on the right iff $\\angle BDO = \\angle CDO$. Because $\\angle BDO = \\angle CDO$ is equivalent to $A = D$, we obtain $|DB| + |DC| \\le |AB| + |AC|$ with equality iff $A = D$, as required.\n\nThis result immediately gives that the perimeter of $\\triangle ABC$ is greater than the perimeter of $\\triangle DBC$, i.e. of all triangles on $BC$ as base inscribed in the circle, the isosceles triangle has the greatest perimeter.\n\nNow suppose the triangle with the greatest perimeter inscribed in a circle is not equilateral. Let $\\triangle XYZ$ be the triangle with the greatest perimeter and assume, without loss of generality $|XZ| \\neq |YZ|$. From the inequality shown above with $B = X, C = Y$ it follows that $\\triangle XYZ$ cannot have the greatest perimeter among all triangles inscribed in the circumcircle of $\\triangle XYZ$. This contradiction shows that the triangle with the greatest perimeter that can be inscribed in a circle is the equilateral triangle.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33002, "subject": "Mathematics (Multi-modal)", "question": "Prove that if $n$ is a positive integer either $3n$ or $7n$ contains an odd digit.", "options": [], "answer": "Detailed solution", "solution": "Suppose a number $n$ exists with the property that $3n$ and $7n$ have only even digits and let $N$ be the smallest such. If $N$ is divisible by $10$, $\\frac{N}{10}$ is a smaller such number. Hence $N$ ends in one of $2, 4, 6, 8$. But $3N + 7N = 10N$ and $10N$ has the tens digit odd as a result of the carry from the unit digits. But this implies $N$ ends in an odd digit which is impossible.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33003, "subject": "Mathematics (Multi-modal)", "question": "Suppose *a*, *b*, *c* are positive real numbers. Prove that\n$$\nabc(a + b + c) \\le a^4 + b^4 + c^4,\n$$\nwith equality iff $a = b = c$.", "options": [], "answer": "Detailed solution", "solution": "By the Arithmetic mean-Geometric mean inequality\n$$\n3\\sqrt[3]{a^4b^4c^4} \\le a^4 + b^4 + c^4,\n$$\nwith equality iff $a = b = c$. Thus\n$$\n3^{3/4}abc \\le (a^4 + b^4 + c^4)^{3/4},\n$$\nwith equality iff $a = b = c$. Also, two applications of the Cauchy-Schwarz inequality tell us that\n$$\n(a+b+c)^4 \\le (3(a^2+b^2+c^2))^2 \\le 27(a^4+b^4+c^4),\n$$\nagain with equality iff $a = b = c$, i.e.,\n$$\na+b+c \\le 3^{3/4}(a^4+b^4+c^4)^{1/4},\n$$\nwith equality iff $a = b = c$. Combining these results we see that\n$$\n3^{3/4}abc(a+b+c) \\le (a^4+b^4+c^4)^{3/4}3^{3/4}(a^4+b^4+c^4)^{1/4} = 3^{3/4}(a^4+b^4+c^4).\n$$\nwith equality iff $a = b = c$. This is the desired result.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33004, "subject": "Mathematics (Multi-modal)", "question": "Let $S$ be a set of $n > 1$ distinct integers and suppose that\n$$\nT = \\{x + y : x \\neq y, x, y \\in S\\}\n$$\nhas exactly $2n - 3$ distinct elements. Prove that, when arranged in increasing order, the elements of $S$ form an arithmetic progression.", "options": [], "answer": "Detailed solution", "solution": "Write $S = \\{x_1, \\dots, x_n\\}$ where $x_1 < \\dots < x_n$. The $2n-3$ elements\n$$\nx_1 + x_2 < \\dots < x_1 + x_n < x_2 + x_n < x_3 + x_n < \\dots < x_{n-1} + x_n\n$$\naccount for all the elements of $T$. Now $x_2 + x_{n-1}$ lies between $x_1 + x_{n-1}$ and $x_2 + x_n$, so it must be $x_1 + x_n$. So $x_2 - x_1 = x_n - x_{n-1} = d$, say. Proceeding by induction, having shown that $x_i - x_{i-1} = d$, for some $2 \\le i < n-1$, observe that $x_{i+1} + x_{n-1}$ lies between $x_i + x_{n-1} = x_{i-1} + x_n$ and $x_{i+1} + x_n$, so $x_{i+1} + x_{n-1} = x_i + x_n$, giving $x_{i+1} - x_i = d$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33005, "subject": "Mathematics (Multi-modal)", "question": "Prove that a line through the centroid of a triangle that bisects the area of the triangle is a median.", "options": [], "answer": "Detailed solution", "solution": "Let $FH$, with $F$ on $AB$ and $H$ on $AC$, bisect the area of $\\triangle ABC$. Let the midpoints of $AB$ and $AC$ be $E$ and $D$ respectively and let the centroid of $\\triangle ABC$ be $G$. Assume $FH$ passes through $G$ and is not a median, i.e. $F \\ne E$ and $H \\ne D$.\n\nSince $CE$ bisects the area of $\\angle ABC$ then the area of $BFHC$ is equal to the area of $BEC$, hence the area of $GHC$ is equal to the area of $FEG$. This means that\n$$\n\\frac{1}{2}|GH| \\cdot |GC| \\sin \\angle HGC = \\frac{1}{2}|FG| \\cdot |EG| \\sin \\angle FGE,\n$$\nhence\n$$\n|GH| \\cdot |GC| = |FG| \\cdot |EG| = \\frac{1}{2} |FG| \\cdot |GC|,\n$$\nthe last equality because of $|EG| = \\frac{1}{2}|GC|$. This implies $|GH| = \\frac{1}{2}|FG|$. Because $|GD| = \\frac{1}{2}|BG|$ we get $\\triangle GDH \\sim \\triangle FGB$ and so $\\angle GDH = \\angle FBG$ hence $AB \\parallel AC$. This is impossible so $FH$ cannot bisect the area of $\\angle ABC$ unless it is a median.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33006, "subject": "Mathematics (Multi-modal)", "question": "Find all pairs $(x, y)$ of non-negative integers such that $x^3 + 7x^2 + 35x + 27 = y^3$.", "options": [], "answer": "(0, 3) and (4, 7)", "solution": "Observe that for non-negative integers $x$ and $y$ that satisfy the equation $x^3 + 7x^2 + 35x + 27 = y^3$, we obtain\n$$\n\\begin{aligned}\ny^3 - (x+2)^3 &= x^3 + 7x^2 + 35x + 27 - x^3 - 6x^2 - 12x - 8 \\\\\n&= x^2 + 23x + 19 > 0\n\\end{aligned}\n$$\nand similarly\n$$\n(x+4)^3 - y^3 = 5x^2 + 13x + 37 > 0\n$$\nThus $x+2 < y < x+4$, and since $x$ and $y$ are integers, $y = x+3$. Substitution in the original equation yields\n$$\nx^3 + 7x^2 + 35x + 27 = x^3 + 9x^2 + 27x + 27\n$$\nand so $x^2 = 4x$. Hence $x = 0$ or $x = 4$, and the corresponding values of $y$ are $3$ and $7$. The pairs $(0, 3)$ and $(4, 7)$ are easily seen to satisfy the equation.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33007, "subject": "Mathematics (Multi-modal)", "question": "Find a polynomial $x^3 + a x^2 + b x + c$ for which $\\max_{x \\in [-1, 1]} |x^3 + a x^2 + b x + c|$ is minimised. You may assume that such a polynomial exists.", "options": [], "answer": "x^3 - 3/4 x", "solution": "Define $M(a, b, c) = \\max_{x \\in [-1, 1]} |x^3 + a x^2 + b x + c|$. Observe that\n$$\n\\max_{x \\in [-1, 0]} |x^3 + a x^2 + b x + c| = \\max_{x \\in [0, 1]} |-x^3 + a x^2 - b x + c|.\n$$\nSince $\\max(|\\alpha + \\beta|, |\\alpha - \\beta|) = |\\alpha| + |\\beta|$, then\n$$\nM(a, b, c) = \\max_{x \\in [0, 1]} (|x^3 + b x| + |a x^2 + c|) \\geq \\max_{x \\in [0, 1]} |x^3 + b x| = M(0, b, 0).\n$$\nNow we can put $x = \\cos \\theta$ in $x^3 + b x$, where $\\theta \\in [0, \\frac{\\pi}{2}]$. Then $x^3 + b x = \\cos^3 \\theta + b \\cos \\theta = \\frac{1}{4}(\\cos(3\\theta) + 3 \\cos \\theta) + b \\cos \\theta = \\frac{1}{4}(\\cos(3\\theta) + (3 + 4b) \\cos \\theta)$.\nDefine $m_\\alpha = \\max_{\\theta \\in [0, \\frac{\\pi}{2}]} |\\cos(3\\theta) + \\alpha \\cos \\theta|$.\nUsing the values at $\\theta = 0$ and $\\theta = \\pi/3$, gives $m_\\alpha \\ge \\max(|1 + \\alpha|, |1 - \\alpha/2|) \\ge 1 + |\\alpha|/2 \\ge 1$, all $\\alpha$. Clearly $m_0 = 1$, so $\\min_\\alpha m_\\alpha = 1$ and this occurs if and only if $\\alpha = 0$, that is $b = -\\frac{3}{4}$.\nSo $\\min_b M(0, b, 0) = M(0, -\\frac{3}{4}, 0) = \\frac{1}{4}$.\nSo the minimum is $\\frac{1}{4}$, which occurs for $x^3 - \\frac{3}{4}x$.", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 33008, "subject": "Mathematics (Multi-modal)", "question": "In the triangle $ABC$ we have $|AB| < |AC|$. The bisectors of the angles at $B$ and $C$ meet $AC$ and $AB$ at $D$ and $E$ respectively. The lines $BD$ and $CE$ intersect at the incentre $I$ of $\\triangle ABC$.\nProve that $\\angle BAC = 60^\\circ$ if and only if $|IE| = |ID|$.", "options": [], "answer": "Detailed solution", "solution": "Let $\\angle BAC = 2\\alpha$, $\\angle CBA = 2\\beta$ and $\\angle ACB = 2\\gamma$. Assume first that $2\\alpha = \\angle BAC = 60^\\circ$. This implies $2\\beta + 2\\gamma = 120^\\circ$, i.e. $\\beta + \\gamma = 60^\\circ$. Hence, $\\angle DIE = \\angle BIC = 120^\\circ$. Therefore, $\\angle BAC + \\angle DIE = 180^\\circ$ and the quadrilateral EIDA is cyclic. As $AI$ bisects $\\angle BAC$, the chords $EI$ and $DI$ subtend angles of $30^\\circ$ at the circumference of the circumcircle of EIDA. This implies $|IE| = |ID|$.\n\n![](attached_image_1.png)\n\nConversely, assume $|IE| = |ID|$. The bisector $BD$ divides $CA$ in the ratio $|AB| : |BC|$. This can easily be seen from the sine rule for the two triangles $\\triangle BDA$ and $\\triangle BCD$ and using that $\\sin(180^\\circ - x) = \\sin(x)$.\nLet $|BC| = a$, $|CA| = b$ and $|AB| = c$. From $\\frac{|CD|}{|DA|} = \\frac{a}{c}$ and $|CD| + |DA| = b$ we obtain $|DA| = \\frac{bc}{a+b}$. Similarly we get $|AE| = \\frac{bc}{a+b}$. Because $|CA| > |AB|$ by assumption, we have $b > c$ and so $\\frac{bc}{a+c} > \\frac{bc}{a+b}$, hence $|DA| > |AE|$.\nLet $D'$ be the reflection of $D$ in $AI$. Since $|DA| > |AE|$, $D'$ will lie between $E$ and $B$ on $AB$. Then $\\triangle AID \\equiv \\triangle AID'$, hence $|ID'| = |ID|$ and $\\angle ID'A = \\angle ADI = 2\\gamma + \\beta$. Since $|IE| = |ID|$ we have $|IE| = |ID'|$ from which we get $\\angle D'EI = \\angle ID'A = 2\\gamma + \\beta$. From $\\angle IEA = 2\\beta + \\gamma$ we obtain now\n$$\n180^\\circ = \\angle IEA + \\angle D'EI = 2\\beta + \\gamma + 2\\gamma + \\beta = 3(\\beta + \\gamma),\n$$\nwhich implies $\\beta + \\gamma = 60^\\circ$. Since $\\alpha + \\beta + \\gamma = 90^\\circ$, we get $\\alpha = 30^\\circ$ and so $\\angle BAC = 2\\alpha = 60^\\circ$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33009, "subject": "Mathematics (Multi-modal)", "question": "Let $a$, $b$, $n$ be positive integers such that\n$$\n\\frac{1}{a} + \\frac{1}{b} + \\frac{n}{\\text{lcm}(a, b)} = \\frac{1}{\\gcd(a, b)}\n$$\n(i) Prove that $n$ is odd;\n(ii) Find all the possible values of $a$ and $b$ if $n = 2007$.", "options": [], "answer": "(i) n is odd. (ii) All solutions are (a, b) = (2d, 2009d), (9d, 252d), (252d, 9d), (2009d, 2d) for any integer d ≥ 1.", "solution": "(i) Let $d = \\gcd(a, b)$. There exist two positive integers $x$ and $y$ which are relatively prime such that $a = dx$, $b = dy$. Using this fact in the initial equality we find $x + y + n = xy$, that is, $(x - 1)(y - 1) = n + 1$. Since $x$ and $y$ are relatively prime numbers, at least one of them is odd. Then $(x - 1)(y - 1)$ is even, so $n$ is odd.\n\n(ii) As before, we are led to the equation $(x - 1)(y - 1) = 2008 = 2^3 \\cdot 251$. Since $x$ and $y$ are relatively prime, the possibilities for $(x, y)$ are $(2, 2009)$, $(9, 252)$, $(252, 9)$, $(2009, 2)$. The complete set of solutions $(a, b)$ is\n$$\n\\{(2d, 2009d), (9d, 252d), (252d, 9d), (2009d, 2d) : d \\ge 1\\}.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33010, "subject": "Mathematics (Multi-modal)", "question": "Prove that, for every positive integer $n$ which ends in the digit 5,\n$$\n20^n + 15^n + 8^n + 6^n\n$$\nis divisible by 2009.", "options": [], "answer": "Detailed solution", "solution": "Observe that\n$$\n20^n + 15^n + 8^n + 6^n = (5^n + 2^n)(4^n + 3^n) \\quad (4)\n$$\nSince $n = 10k + 5 = 5(2k + 1)$ for some integer $k$,\n$$\n5^n + 2^n = 5^{5(2k+1)} + 2^{5(2k+1)}\n$$\nand so $5^5 + 2^5$ divides $5^n + 2^n$. Similarly, $4^5 + 3^5$ divides $4^n + 3^n$. Now calculation shows that $5^5 + 2^5 = 7 \\cdot 11 \\cdot 41$ and $4^5 + 3^5 = 7 \\cdot 181$ as products of primes. Since $2009 = 7^2 \\cdot 41$, the prime factors of 2009 occur as factors of the RHS of equation (4) and the result follows.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33011, "subject": "Mathematics (Multi-modal)", "question": "Let $n = (p^2 + 2)^2 - 9(p^2 - 7)$ where $p$ is a prime number. What is the smallest value of the sum of the digits of $n$ and for what prime numbers $p$ is this value attained?", "options": [], "answer": "4; attained at p = 3", "solution": "When $p = 2$, $n = 63$. When $p = 3$, $n = 103$. When $p = 5$, $n = 567$.\n\n$$\n\\begin{aligned}\n(p^2 + 2)^2 - 9(p^2 - 7) &= p^4 - 5p^2 + 4 + 63 \\\\\n&= (p^2 - 1)(p^2 - 4) + 63 \\\\\n&= (p - 1)(p + 1)(p - 2)(p + 2) + 63 \\\\\n&= (p - 2)(p - 1)(p + 1)(p + 2) + 63\n\\end{aligned}\n$$\n\nWhen $p \\neq 3$, $(p-2)(p-1)$ and $(p+1)(p+2)$ are both multiples of 3. Thus $n = (p^2 + 2)^2 - 9(p^2 - 7)$ is a multiple of 9 and so the digit sum is a multiple of 9. When $n = 3$, the digit sum is 4. Thus this is the smallest value that can be obtained.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33012, "subject": "Mathematics (Multi-modal)", "question": "Suppose $a$, $b$, $c$ are real numbers such that $a + b + c = 0$ and $a^2 + b^2 + c^2 = 1$. Prove that\n$$\na^2 b^2 c^2 \\leq \\frac{1}{54}\n$$\nand determine the cases of equality.", "options": [], "answer": "Maximum: a^2 b^2 c^2 = 1/54. Equality iff {a, b, c} is a permutation of {1/√6, 1/√6, −2/√6} or {−1/√6, −1/√6, 2/√6}.", "solution": "First of all, $0 = (a + b + c)^2 = a^2 + b^2 + c^2 + 2(ab + bc + ca)$, i.e.,\n$$\nab + bc + ca = -\\frac{1}{2},\n$$\nand so $a$, $b$, $c$ are the roots of the cubic $x^3 - \\frac{1}{2}x - abc = 0$, and, by hypothesis, these are real. Hence the product of the local extrema of this cubic is non-positive. But these extrema occur when $x = \\pm\\sqrt{6}$. Hence the requirement is that\n$$\n\\left(\\frac{1}{6\\sqrt{6}} - \\frac{1}{2\\sqrt{6}} - abc\\right)\\left(-\\frac{1}{6\\sqrt{6}} + \\frac{1}{2\\sqrt{6}} - abc\\right) \\le 0,\n$$\nwhich simplifies to\n$$\n\\left(-\\frac{1}{3\\sqrt{6}} - abc\\right) \\left(\\frac{1}{3\\sqrt{6}} - abc\\right) \\le 0, \\quad \\text{ i.e. } \\quad (abc)^2 \\le \\frac{1}{54},\n$$\nthe desired result. (More directly, of course, one can achieve the same result by quoting the criterion for the roots of a cubic in normal form to be real.) If the equality occurs, then $0$ is either a local max or a local min, in which case the cubic has a double root. Say, $a = b$, $c = -2a$, whence $6a^2 = 1$ and so equality happens iff two of $a$, $b$, $c$ are equal to $\\pm\\frac{1}{\\sqrt{6}}$, and the third is $\\mp\\frac{2}{\\sqrt{6}}$.\n\nAnother way is to use the following well-known fact, which is an easy consequence of problem 4: Suppose $a$, $b$, $c$ are the roots of the cubic $x^3 - px - q$. Then\n$$\n(a-b)^2 (b-c)^2 (c-a)^2 = 4p^3 - 27q^2.\n$$\nThis implies $4p^3 - 27q^2 \\ge 0$. With $2p = a^2 + b^2 + c^2 = 1$ the result follows.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33013, "subject": "Mathematics (Multi-modal)", "question": "Find all pairs $(a, b)$ of positive integers, such that $(ab)^2 - 4(a+b)$ is the square of an integer.", "options": [], "answer": "(1,5), (5,1), (2,2), (2,3), (3,2)", "solution": "If $(ab)^2 - 4(a+b) = x^2$ with positive integers $a, b$ and an integer $x \\ge 0$, we have $x < ab$. As $(ab)^2 - (ab-1)^2 = 2ab - 1$ is odd, we even have $x \\le ab - 2$. This implies $(ab)^2 - 4(a+b) \\le (ab-2)^2 = (ab)^2 - 4ab + 4$, from which we obtain\n$$\nab \\le a + b + 1. \\qquad (5)\n$$\nAfter swapping $a$ and $b$ if necessary, we may assume $a \\le b$. If $a \\ge 3$, we get $ab \\ge 3b \\ge a+b+b \\ge a+b+1$ in contradiction to (5). Hence $a = 2$ or $a = 1$. If $a = 1$, we have $b^2 - 4(b+1) = x^2$, which is equivalent to $(b-2-x)(b-2+x) = 8$. Because $(b-2-x)+(b-2+x) = 2b-4$ is even and $b-2-x \\le b-2+x$, the only possibility is $b-2-x = 2$ and $b-2+x = 4$. This yields $(a, b) = (1, 5)$ as the only possible solution with $1 = a \\le b$.\n\nIf $a = 2$, we have $4b^2 - 4(b+2) = x^2$, equivalently $(2b-1-x)(2b-1+x) = 9$. Here we have two possibilities. Either $2b-1-x = 2b-1+x = 3$ or $2b-1-x = 1, 2b-1+x = 9$. In the first case we obtain $b=2$ and in the second $b=3$. So we have shown that $(a,b) = (2,2)$ and $(a,b) = (2,3)$ are the only possible solutions with $2 = a \\le b$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33014, "subject": "Mathematics (Multi-modal)", "question": "Consider a rectangular billiards table $a$ meters wide and $b$ meters long with pockets at its corners, where $a$ and $b$ are both positive integers. A ball is placed at the lower left corner of the table and shot at a $45$ degree angle. It travels without friction until it lands in one of the pockets. Every time it hits an edge of the table the angle of reflection is equal to the angle of incidence. How many ordered pairs of integers $(a, b)$ are there with $1 \\le b \\le a \\le 2009$ such that on a $a$ by $b$ table, the ball eventually lands in the upper left pocket?", "options": [], "answer": "672084", "solution": "Following the hint, we observe that the ball lands in a pocket as soon as the line segment reaches a point $(c, c)$ where $c$ is divisible by both $a$ and $b$; clearly $c$ is the least common multiple of $a$ and $b$. The ball touches a vertical rail $c$ times and a horizontal rail $c$ times. If $c$ is even/odd, the ball lands in a pocket on the left/right side of the table, and if $c$ is even/odd, the ball lands in a pocket on the lower/upper side of the table. Hence the ball lands in the upper left pocket exactly when $c$ is even and $c$ is odd.\n\n![](attached_image_1.png)\n\nWrite $a = 2^j a'$ and $b = 2^k b'$, where $a'$ and $b'$ are odd. Then $c = 2^{\\max(j,k)} \\operatorname{lcm}(a', b')$. Since $\\operatorname{lcm}(a', b')$ is odd, $c$ is even and $c$ is odd precisely when $j < k$.\n\nIf $a$ is odd, then the ball lands in the upper left pocket whenever $b$ is even; there are $\\frac{a-1}{2}$ such allowed values of $b$. If $a$ is divisible by $2$ but not by $4$, then the ball lands in the upper left pocket whenever $b$ is divisible by $4$; there are $\\frac{a-2}{4}$ such allowed values of $b$, and so forth.\n\nFix an integer $N$ and count the ordered pairs $(a, b)$ with $1 \\le b \\le a \\le N$ for which the ball lands in the upper left pocket. In the calculation we use $C(k, 2) = \\binom{k}{2} = 0 + 1 + 2 + \\dots + (k-2) + (k-1)$.\n\nWhen $a = 1, 3, 5, 7, \\dots$, then there are $0, 1, 2, 3, \\dots$ allowed values of $b$; summing over all such $a$ gives us $C\\left(\\left[\\frac{N+1}{2}\\right], 2\\right)$ total ordered pairs. When $a = 2, 6, 10, 14, \\dots$, there are $0, 1, 2, 3, \\dots$ allowed values of $b$; summing over all such $a$ gives us $C\\left(\\left[\\frac{N+2}{4}\\right], 2\\right)$ total ordered pairs, and so forth. For $N = 2009$, there are a total of $C(1005, 2) + C(502, 2) + C(251, 2) + C(126, 2) + C(63, 2) + C(31, 2) + C(16, 2) + C(8, 2) + C(4, 2) + C(2, 2) = 672,084$ allowed ordered pairs, so this is our answer.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 33015, "subject": "Mathematics (Multi-modal)", "question": "A square $ABCD$ contains a point $P$ such that\n$$\n|PA| = 3, \\quad |PB| = 7 \\quad \\text{and} \\quad |PD| = 5.\n$$\nFind the area of the square.", "options": [], "answer": "58", "solution": "Proceed as in the hint and let $P'$ denote the rotated position of $P$. Thus $|AP'| = 3$, $|BP'| = 5$ and $\\angle PAP' = 90^\\circ$. Since $PAP'$ is an isosceles right triangle with $|AP'| = |AP| = 3$, then $|PP'| = 3\\sqrt{2}$.\n\n![](attached_image_1.png)\n\nThe area of the triangle $PBP'$ is, by Heron's formula, given by\n$$\n\\sqrt{\\left(\\frac{3\\sqrt{2}+12}{2}\\right)\\left(\\frac{3\\sqrt{2}-2}{2}\\right)\\left(\\frac{3\\sqrt{2}+2}{2}\\right)\\left(\\frac{12-3\\sqrt{2}}{2}\\right)} = \\frac{21}{2}\n$$\nBut the area of the triangle $PBP'$ is also given by $\\frac{1}{2}|PB||PP'| \\sin \\angle BPP'$, which is equal to $\\frac{21\\sqrt{2}}{2} \\sin \\angle BPP'$ and so $\\frac{1}{\\sqrt{2}} = \\sin \\angle BPP'$. This gives $\\angle BPP' = 45^\\circ$, and so $\\angle APB = 90^\\circ$. From the right triangle $APB$ we get $|AB|^2 = 58$. Thus the area of the square is $58$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33016, "subject": "Mathematics (Multi-modal)", "question": "A triangle *ABC* is inscribed in a circle, centre *O*, and $D$, $E$, $F$ are the mid-points of $BC$, $CA$, $AB$ respectively. The point $A$ is free to move on the circumference of the circle. Find the locus of $L$, the midpoint of $FE$.", "options": [], "answer": "A fixed circle: the circle centered at the midpoint of the segment joining the circle’s center to the midpoint of the fixed side, with radius equal to half of the circumradius.", "solution": "Let $M$ and $N$ be the midpoints of $BD$ and $DC$ respectively. Let $AD$ meet $EF$ at $L'$. Then $FL' \\parallel BD$ and $|FL'| = \\frac{1}{2}|BD|$. Similarly $|L'E| = \\frac{1}{2}|DC|$, hence $|FL'| = |L'E|$, i.e. $L' = L$ is the midpoint of $FE$.\n\n![](attached_image_1.png)\n\nLet $P$ be the midpoint of $OD$. Then $PL \\parallel OA$ and $|PL| = \\frac{1}{2}|OA|$. Similarly $|PM| = \\frac{1}{2}|OB|$ and $|PN| = \\frac{1}{2}|OC|$. Since $|OA| = |OB| = |OC|$ then $|PL| = |PM| = |PN|$. So the circle with centre $P$ and radius $|PM|$ passes through $L$. As $A$ moves on the circumference of the circle, the points $O$, $P$, $D$ and $M$ remain fixed. Thus $L$ will always lie on the circumference of the circle centre $P$ and radius equal to half the radius of the circumcircle.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33017, "subject": "Mathematics (Multi-modal)", "question": "Suppose $a$, $b$, $c$ are complex numbers such that $a + b + c = 0$. Prove that\n$$\n2(a - b)^2(b - c)^2(c - a)^2 = (a^2 + b^2 + c^2)^3 - 54a^2b^2c^2.\n$$", "options": [], "answer": "Detailed solution", "solution": "Let $ab + bc + ca = -p$ and $abc = q$. From $a + b + c = 0$ we obtain\n$$\n0 = (a + b + c)^2 = a^2 + b^2 + c^2 + 2(ab + bc + ca) = a^2 + b^2 + c^2 - 2p, \\text{ i.e.,}\n$$\n$$\na^2 + b^2 + c^2 = 2p,\n$$\nand $a^3 + b^3 + c^3 - 3abc = (a + b + c)(a^2 + b^2 + c^2 - ab - bc - ca) = 0$, i.e.,\n$$\na^3 + b^3 + c^3 = 3q.\n$$\nAlso\n$$\np^2 = (ab + bc + ca)^2 = a^2b^2 + b^2c^2 + c^2a^2 + 2abc(a + b + c) = a^2b^2 + b^2c^2 + c^2a^2,\n$$\nand so\n$$\n4p^2 = (a^2 + b^2 + c^2)^2 = a^4 + b^4 + c^4 + 2(a^2b^2 + b^2c^2 + c^2a^2) = a^4 + b^4 + c^4 + 2p^2,\n$$\nwhence\n$$\na^4 + b^4 + c^4 = 2p^2.\n$$\nHence\n$$\n\\begin{align*}\n(a-b)^2 (b-c)^2 (c-a)^2 &= \\det \\begin{pmatrix} 1 & 1 & 1 \\\\ a & b & c \\\\ a^2 & b^2 & c^2 \\end{pmatrix} \\cdot \\det \\begin{pmatrix} 1 & a & a^2 \\\\ 1 & b & b^2 \\\\ 1 & c & c^2 \\end{pmatrix} \\\\\n&= \\det \\begin{pmatrix} 1 & 1 & 1 \\\\ a & b & c \\\\ a^2 & b^2 & c^2 \\end{pmatrix} \\cdot \\begin{pmatrix} 1 & a & a^2 \\\\ 1 & b & b^2 \\\\ 1 & c & c^2 \\end{pmatrix} \\\\\n&= \\det \\begin{pmatrix} 3 & 0 & 2p \\\\ 0 & 2p & 3q \\\\ 2p & 3q & 2p^2 \\end{pmatrix} \\\\\n&= 3(4p^3 - 9q^2) - 8p^3 \\\\\n&= 4p^3 - 27q^2 \\\\\n&= \\frac{1}{2}(a^2 + b^2 + c^2)^3 - 27a^2b^2c^2.\n\\end{align*}", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33018, "subject": "Mathematics (Multi-modal)", "question": "Denote by $m_a$, $m_b$, $m_c$, respectively, the lengths of the medians from the vertices $A$, $B$, $C$ of a triangle $ABC$ to the opposite sides, respectively. Prove that\n$$\nm_a + m_b + m_c \\geq a \\sin A + b \\sin B + c \\sin C\n$$\nwith equality iff the triangle is equilateral.", "options": [], "answer": "Detailed solution", "solution": "Let the median from $A$ meet the side $BC$ at $D$, so that $|BD| = |DC| = a/2$. We begin by deriving an expression for $m_a$. Let $\\theta = \\angle BDA$.\n\n![](attached_image_1.png)\n\nBy the Cosine Rule, $2|BD||AD| \\cos \\theta = |AD|^2 + |BD|^2 - |AB|^2$, i.e.\n$$\nam m_a \\cos \\theta = m_a^2 + \\frac{a^2}{4} - c^2.\n$$\nSimilarly $2|CD||AD| \\cos(\\pi - \\theta) = |AD|^2 + |CD|^2 - |AC|^2$, i.e.\n$$\n-am_a \\cos \\theta = m_a^2 + \\frac{a^2}{4} - b^2.\n$$\nHence $4m_a^2 = 2(b^2 + c^2) - a^2$ and so\n$$\n\\begin{aligned}\n4m_a^2 &= b^2 + c^2 + 2bc \\cos A \\\\\n&= b^2 + c^2 - 2bc \\cos(B + C) \\\\\n&= (b \\sin B + c \\sin C)^2 + (b \\cos B - c \\cos C)^2.\n\\end{aligned}\n$$\nIt follows that\n$$\n2m_a \\ge b \\sin B + c \\sin C,\n$$\nwith equality iff $b \\cos B = c \\cos C$, equivalently, iff\n$$\nb^2(c^2 + a^2 - b^2) = c^2(a^2 + b^2 - c^2) \\iff (b^2 - c^2)(a^2 - b^2 - c^2) = 0.\n$$\nIn other words,\n$$\n2m_a \\ge b \\sin B + c \\sin C,\n$$\nand there is equality iff either $b = c$ or $A$ is a right-angle. In the same way we see that\n$$\n2m_b \\ge c \\sin C + a \\sin A, \\quad \\text{and} \\quad 2m_c \\ge a \\sin A + b \\sin B,\n$$\nwhence adding these inequalities we deduce the stated result. Moreover, the inequality is strict unless $a = b = c$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33019, "subject": "Mathematics (Multi-modal)", "question": "Let $(a_n)$ be the \"iterated Fibonacci sequence\": $a_n = f(f(n))$, where $f(1) = f(2) = 1$, and $f(n+2) = f(n+1) + f(n)$. Prove that $a_n$ is a multiple of 144 whenever it is a multiple of 14.", "options": [], "answer": "Detailed solution", "solution": "This is actually true for the full Fibonacci sequence, not just the iterated one. Since the Fibonacci numbers depend only on the previous two values. Fibonacci modulo $n$ must be preperiodic with period at most $n^2$. In fact it is periodic for all of the values that we examine.\n\nCalculation shows that $f(n)$ mod $2$ has a period of $3$ and $f(n)$ mod $7$ has an \"antiperiod\" of $8$ (meaning $f(n+8) \\equiv -f(n)$ mod $7$), and so a period of $16$. Examination of the repeated values reveals that $f(n)$ is a multiple of $2$ exactly when $n$ is a multiple of $3$, and a multiple of $7$ exactly when $n$ is a multiple of $8$. Thus $14$ divides $f(n)$ exactly when $24$ divides $n$.\n\nSimilarly, we see that both modulo $16$ and modulo $9$, $f(n)$ has a period of $24$ and is equivalent to $0$ if and only if $n$ is a multiple of $12$. The result follows.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33020, "subject": "Mathematics (Multi-modal)", "question": "Let $a_1, a_2, a_3, a_4, \\dots$ be a sequence of non-negative integers such that\n$$\na_{n+2} = \\binom{a_{n+1}}{a_n},\n$$\nwhere\n$$\n\\binom{m}{k} = \\begin{cases} \\frac{m!}{k!(m-k)!} & \\text{if } m \\ge k, \\\\ 0 & \\text{otherwise.} \\end{cases}\n$$\nProve that such a sequence tends to infinity if and only if $2 \\le a_1 \\le a_2 - 2$.", "options": [], "answer": "Detailed solution", "solution": "If the given pair of inequalities do not hold, then the sequence $(a_n)$ quickly degenerates into a sequence consisting of only 0s and 1s. There are basically two such cases to analyse, namely $a_1 = 0$ and $a_1 = 1$, since the two other cases $a_1 = a_2$ and $a_1 = a_2 - 1$ are seen to be equivalent to those two cases by means of the basic identity\n$$\n\\binom{N}{M} = \\binom{N}{N-M}.\n$$\nEach of the cases $a_1 = 0$ and $a_1 = 1$ can be broken into three subcases, depending on whether $a_2$ equals 0, 1, or a larger number. In all six cases, if we eliminate a few terms from the beginning of the sequence $(a_n)$, we are left with either the constant sequence $1, 1, 1, \\dots$, or the alternating sequence $0, 1, 0, 1, 0, 1, \\dots$. We leave it to the reader to check that this is true in each of the six subcases.\n\nOn the other hand, if the inequalities both hold then we can show by induction that $a_{n+1} \\ge 3a_n/2$ for all $n > 2$. This follows readily by using the following lemma for the inductive step.\n\n**Lemma.** Let $A, B$, and $C$ be positive integers such that $2 \\le A \\le B - 2$ and\n$$\nC = \\binom{B}{A}.\n$$\nThen $2 \\le B \\le C - 2$ and $C \\ge 3B/2$.\n\n**Proof.** Recall the well-known fact that for a fixed positive integer $B$, the binomial coefficients $\\binom{B}{A}$ increase as the integer $A \\in [0, B]$ is moved towards $B/2$. Thus in the above lemma, $C$ is minimal when $A = 2$ or $A = B - 2$. In both of these cases, $\\binom{B}{A}$ equals $B(B-1)/2$ and, since $B \\ge 4$, we readily get the desired lower bounds $3B/2$ and $B + 2$ for $C$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33021, "subject": "Mathematics (Multi-modal)", "question": "Let $ABCD$ be a quadrilateral inscribed in a circle and let $M$ be a point on the circle. Consider the projections of the point $M$ on two opposite sides of the quadrilateral, and on its diagonals. Show that there exists a circle passing through these four points if and only if the quadrilateral is a trapezoid.", "options": [], "answer": "Detailed solution", "solution": "Let $F, G, H, I$ and $J$ be the projections of $M$ on the diagonal $AC$, the side $BC$, the side $CD$, the side $AD$ and the diagonal $BD$ respectively. The points $G, H, J$ are collinear, because they are on Simons's line for $\\triangle BCD$. The points $F, H, I$ are on Simons's line for $\\triangle ACD$.\n\nBecause $\\angle MID = \\angle MJD = \\angle MHD = 90^\\circ$, the points $H, I, J$ lie on the circle with diameter $MD$. This implies $\\angle JIH = \\angle JDH = \\angle BDC$ and $\\angle IHJ = 180^\\circ - \\angle IDJ = \\angle ADB = \\angle ACB$. Hence, the triangles $HIJ$ and $CAB$ are similar. The same is true for the triangles $FGH$ and $ABD$. Because $FI$ intersects $GJ$ at $H$, the points $F, G, I$ and $J$ are on a circle if and only if the triangles $HIJ$ and $HGF$ are similar. Hence, $F, G, I$ and $J$ are on a circle iff the triangles $CAB$ and $DBA$ are similar. This is equivalent to $ABCD$ being an isosceles trapezoid with $AB$ parallel to $CD$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33022, "subject": "Mathematics (Multi-modal)", "question": "Suppose $r$, $R$ are the in-radius and circum-radius of triangle $ABC$. Show that\n$$\n9r \\le a \\sin B + b \\sin C + c \\sin A \\le \\frac{9R}{2}.\n$$\nwith equality in both inequalities iff $ABC$ is equilateral.", "options": [], "answer": "Detailed solution", "solution": "Let $\\Delta$ stand for the area of $\\triangle ABC$. Consider the LHS. Note that\n$$\n\\begin{align*}\na \\sin B + b \\sin C + c \\sin A &= \\frac{ac \\sin B}{c} + \\frac{ab \\sin C}{a} + \\frac{bc \\sin A}{b} \\\\\n&= 2\\Delta \\left( \\frac{1}{a} + \\frac{1}{b} + \\frac{1}{c} \\right) \\\\\n&= \\frac{2\\Delta}{a+b+c} \\left( \\frac{1}{a} + \\frac{1}{b} + \\frac{1}{c} \\right) (a+b+c) \\\\\n&= r \\left( \\frac{1}{a} + \\frac{1}{b} + \\frac{1}{c} \\right) (a+b+c) \\\\\n&\\geq 9r \\quad (\\text{with equality iff } a=b=c).\n\\end{align*}\n$$\n\nConsider the RHS. Since $a = 2R \\sin A$, etc, we have that\n$$\n\\begin{align*}\na \\sin B + b \\sin C + c \\sin A \\\\\n&= 2R(\\sin A \\sin B + \\sin B \\sin C + \\sin C \\sin A) \\\\\n&= 2R(\\sin A \\sin B + \\sin C(\\sin A + \\sin B)) \\\\\n&\\le 2R \\left( \\sin^2 \\left( \\frac{A+B}{2} \\right) + 2 \\sin C \\sin \\left( \\frac{A+B}{2} \\right) \\right) \\quad \\text{(with equality iff } A=B) \\\\\n&= 2R \\left( \\sin^2 \\left( \\frac{\\pi-C}{2} \\right) + 2 \\sin C \\sin \\left( \\frac{\\pi-C}{2} \\right) \\right) \\\\\n&= 2R \\left( \\cos^2 \\left( \\frac{C}{2} \\right) + 4 \\sin \\left( \\frac{C}{2} \\right) \\cos^2 \\left( \\frac{C}{2} \\right) \\right) \\\\\n&= 2R \\cos^2 \\left( \\frac{C}{2} \\right) \\left( 1 + 4 \\sin \\left( \\frac{C}{2} \\right) \\right) \\\\\n&= 2R(1-x^2)(1+4x) \\quad (x = \\sin(C/2)) \\\\\n&= 2R \\left( \\frac{9}{4} - (2x-1)^2 \\left( x + \\frac{5}{4} \\right) \\right) \\\\\n&\\le \\frac{9R}{2} \\quad \\text{(with equality iff } x=1/2\\text{).}\n\\end{align*}\n$$\n\nThus the inequality holds, and there is equality throughout iff\n$$\nA = B, \\quad \\text{and} \\quad \\sin\\left(\\frac{C}{2}\\right) = \\frac{1}{2} \\quad \\text{i.e., iff} \\quad A = B = C = \\frac{\\pi}{3}.\n$$\n\nOne can obtain the RHS a little differently using the facts that\n$$\nab + bc + ca \\le \\frac{1}{3}(a+b+c)^2 \\quad \\text{and} \\quad \\sin A + \\sin B + \\sin C \\le \\frac{3\\sqrt{3}}{2}.\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33023, "subject": "Mathematics (Multi-modal)", "question": "Suppose $a$, $b$, $c$ are positive numbers such that\n$$\n(a + b + c) \\left( \\frac{1}{a} + \\frac{1}{b} + \\frac{1}{c} \\right) < 5 + 3\\sqrt{2} .\n$$\nProve that $a$, $b$, $c$ are the side lengths of an acute-angled triangle.", "options": [], "answer": "Detailed solution", "solution": "Suppose this is false. Then, without loss of generality, we can assume that $a^2 \\ge b^2 + c^2$. Since\n$$\n(a+b+c) \\left( \\frac{1}{a} + \\frac{1}{b} + \\frac{1}{c} \\right) = 3 + a \\left( \\frac{1}{b} + \\frac{1}{c} \\right) + \\frac{1}{a} (b+c) + \\frac{b}{c} + \\frac{c}{b},\n$$\nand\n$$\n\\frac{b}{c} + \\frac{c}{b} \\ge 2,\n$$\nthe hypothesis tells us that\n$$\na \\left( \\frac{1}{b} + \\frac{1}{c} \\right) + \\frac{1}{a} (b+c) < 3\\sqrt{2} \\iff \\left( \\frac{a}{bc} + \\frac{1}{a} \\right) (b+c) < 3\\sqrt{2}.\n$$\nBut the function\n$$\nx \\mapsto \\frac{x}{bc} + \\frac{1}{x}\n$$\nis strictly increasing on the interval $[\\sqrt{bc}, \\infty)$, and $a \\ge \\sqrt{b^2+c^2} \\ge \\sqrt{2bc}$.\nHence\n$$\n\\begin{aligned}\n\\left(\\frac{a}{bc} + \\frac{1}{a}\\right) (b+c) &\\ge \\left(\\frac{\\sqrt{2}}{\\sqrt{bc}} + \\frac{1}{\\sqrt{2\\sqrt{bc}}}\\right) (b+c) \\\\\n&= \\frac{3}{\\sqrt{2\\sqrt{bc}}} (b+c) \\\\\n&\\ge \\frac{6\\sqrt{bc}}{\\sqrt{2}\\sqrt{bc}} \\\\\n&= 3\\sqrt{2},\n\\end{aligned}\n$$\nwhich conflicts with the hypotheses. Thus $a^2 < b^2 + c^2$. Similarly, $b^2 < c^2 + a^2$, $c^2 < a^2 + b^2$. From these inequalities it follows easily that $a < b+c$, $b < c+a$, $c < a+b$, and from both sets of inequalities it follows that $a$, $b$, $c$ are the lengths of the sides of an acute-angled triangle.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33024, "subject": "Mathematics (Multi-modal)", "question": "Let $ABC$ be a planar triangle. Let $\\lambda \\ge 0$. Define the point $D(\\lambda)$ on the side $BC$ so that $D(\\lambda)$ divides $BC$ in the ratio $c^\\lambda : b^\\lambda$. Prove that\n$$\n|AD(\\lambda)| \\le |AD(2 - \\lambda)| \\quad \\text{iff} \\quad \\lambda \\ge 1.\n$$", "options": [], "answer": "Detailed solution", "solution": "Let $D = D(\\lambda)$ for a fixed $\\lambda$ and denote $\\theta = \\angle ADB = 180^\\circ - \\angle CDA$. The Cosine Rule for the triangles $\\triangle DAB$ and $\\triangle CAD$ gives\n$$\n\\begin{aligned}\nc^2 &= |BD|^2 + |AD|^2 - 2|BD| \\cdot |AD| \\cos \\theta \\\\\nb^2 &= |DC|^2 + |AD|^2 + 2|DC| \\cdot |AD| \\cos \\theta.\n\\end{aligned}\n$$\n![](attached_image_1.png)\nEliminating $\\cos \\theta$ gives\n$$\n\\frac{|BD|^2 + |AD|^2 - c^2}{2|BD| \\cdot |AD|} = \\frac{b^2 - |DC|^2 - |AD|^2}{2|DC| \\cdot |AD|}\n$$\nfrom which we obtain\n$$\n|AD|^2 = \\frac{b^2|BD| + c^2|DC|}{|BD| + |DC|} - |BD| \\cdot |DC|.\n$$\nFrom $|BD|/|DC| = c^\\lambda / b^\\lambda$ and $|BD| + |DC| = a$ we deduce\n$$\n|BD| = c^{\\lambda} \\frac{a}{b^{\\lambda} + c^{\\lambda}} \\quad \\text{and} \\quad |DC| = b^{\\lambda} \\frac{a}{b^{\\lambda} + c^{\\lambda}}.\n$$\nSubstitution into the previous formula establishes that\n$$\n|AD(\\lambda)|^2 = \\frac{b^{\\lambda}c^{\\lambda}}{(b^{\\lambda} + c^{\\lambda})^2} ((b^{2-\\lambda} + c^{2-\\lambda})(b^{\\lambda} + c^{\\lambda}) - a^2).\n$$\nHence\n$$\n\\frac{|AD(\\lambda)|^2}{|AD(2-\\lambda)|^2} = \\frac{b^{\\lambda}c^{\\lambda}}{(b^{\\lambda} + c^{\\lambda})^2} \\frac{(b^{2-\\lambda} + c^{2-\\lambda})^2}{b^{2-\\lambda}c^{2-\\lambda}},\n$$\nso that\n$$\n\\frac{|AD(\\lambda)|}{|AD(2-\\lambda)|} = \\frac{b^{\\lambda-1}c^{\\lambda-1}(b^{2-\\lambda} + c^{2-\\lambda})}{b^{\\lambda} + c^{\\lambda}} = \\frac{t^{\\lambda-1}(t^{2-\\lambda} + 1)}{t^{\\lambda} + 1},\n$$\nwhere $t = b/c$. Hence $|AD(\\lambda)| \\le |AD(2 - \\lambda)|$ iff\n$$\nt + t^{\\lambda-1} \\le t^{\\lambda} + 1\n$$\nequivalently iff\n$$\n0 \\le 1 - t + t^{\\lambda-1}(t-1) = (1-t)(1-t^{\\lambda-1})\n$$\nwhich holds for $t > 0$ iff $\\lambda \\ge 1$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33025, "subject": "Mathematics (Multi-modal)", "question": "Let\n$$\nA = \\{ (x, y, z) \\in \\mathbb{R}^3 : xyz = 1,\\ x + y + z = 3 \\},\n$$\nunder the function\n$$\nF(x, y, z) = xy + yz + zx.\n$$\nDetermine the image of the set $A$ under $F$.", "options": [], "answer": "(-∞, -15/4] ∪ {3}", "solution": "Let $F$ stand for a value of the function $F$. Clearly, $x, y, z \\in A$ iff the cubic $t^3 - 3t^2 + Ft - 1$ has three real roots. Normalise this to the form ($s = t - 1$)\n$$\ns^3 - (3-F)s - (3-F) = 0.\n$$\nIf $a, b, c$ are the roots of this, then they are real iff\n$$\n0 \\le 4(3-F)^3 - 27(3-F)^2 = (F-3)^2(4(3-F) - 27) = -(F-3)^2(4F+15).\n$$\nConsequently, the roots are real iff $F = 3$ or $F \\le -15/4$. Now $F = 3$ means that $x, y, z$ satisfy the cubic equation $(t-1)^3 = 0$, and so $x = y = z = 1$.\n\nUnless this occurs, then $F \\leq -\\frac{15}{4}$. If there is equality here, then two of $a, b, c$ are equal, i.e., two of $x, y, z$ are equal. Hence, $x = y = -1/2$, $z = 4$ say. Thus\n$$\nF(A) = \\left(-\\infty, -\\frac{15}{4}\\right] \\cup \\{3\\}.\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33026, "subject": "Mathematics (Multi-modal)", "question": "a) For each integer $a$ not divisible by $7$, let $N(a)$ denote the least among all positive integers $n$ such that $49$ divides $a^n - 1$. For each positive integer $N$, let $A_N := \\{a \\in \\mathbb{Z} : 0 < a < 49 \\text{ and } N(a) = N\\}$. Show that\n$$\n\\begin{align*}\n|A_1| &= |A_2| = 1, & |A_3| &= |A_6| = 2, \\\\\n|A_7| &= |A_{14}| = 6, & |A_{21}| &= |A_{42}| = 12\n\\end{align*}\n$$\nand $A_N = \\emptyset$ for all other values of $N$.\n\nb) Find the least positive integer $n$ such that $2009$ divides $a^n - 1$ for all integers $a$ relatively prime to $2009$.", "options": [], "answer": "840", "solution": "a) Unless otherwise specified, everywhere in part a), $\\equiv$ will denote congruence modulo $49$. Consider the six cases $a = 7k \\pm 1$, $7k \\pm 2$ and $7k \\pm 3$.\n\n1. If $a = 7k + 1$, with $k \\in \\{0, 1, ..., 6\\}$, then $a^n = 7kn + 1$, so $a^n \\equiv 1 \\pmod{7}$\n$k = 0$ or $n$ is a multiple of $7$. Thus $1 \\in A_1$ and $7k + 1 \\in A_7$ for $k \\in \\{1, ..., 6\\}$.\n\n2. If $a = 7k - 1$, with $k \\in \\{1, ..., 7\\}$, then $a^n = (-1)^{n-1}(7kn - 1)$. If $n$ is odd, then $a^n \\equiv 1 \\pmod{7kn} \\equiv 2$ which cannot hold as $7 \\nmid 2$. If $n$ is even, then $a^n \\equiv 1 \\pmod{7kn} \\equiv 0$ which holds when $k = 7$ or $n$ is a multiple of $14$.\nThus $a = 48 \\in A_2$ and $7k - 1 \\in A_{14}$ for $k \\in \\{1, ..., 6\\}$.\n\n3. If $a = 7k + 2$, with $k \\in \\{0, 1, ..., 6\\}$, then $a^n = 2^{n-1}7kn + 2^n$, so\n$$\na^n \\equiv 1 \\pmod{2^{n-1}7kn + 49l} \\equiv 1 - 2^n \\text{ for some integer } l.\n$$\nThis implies in a first instance that $7|(1 - 2^n)$, i.e. $n = 3m$ for some integer $m$. Then\n$$\n\\frac{1 - 2^n}{7} = \\frac{1 - 2^{3m}}{7} = \\frac{(1 - 2^3)(1 + 2^3 + \\dots + (2^3)^{m-1})}{7} = -m \\pmod{7}\n$$\n$$\n\\text{and } 2^{n-1} \\equiv 2^{3m-1} \\equiv 4 \\pmod{7}.\n$$\nTherefore, if $n = 3m$ and $k = 4$, there exists an integer $l$ such that\n$$\n2^{n-1}kn + 7l = \\frac{1 - 2^n}{7}.\n$$\nThis implies $a = 30 \\in A_3$. Moreover, when $7 \\nmid n$, then any two solutions $k$ and $k'$ of the equation above differ by a multiple of $7$. On the other hand, if $7|n$, any value of $k$ is a solution, so $a = 7k + 2 \\in A_{21}$ for $k \\in \\{0, ..., 6\\} \\setminus \\{4\\}$.\n\n4. If $a = 7k - 2$, with $k \\in \\{1, \\dots, 7\\}$, then $a^n = (-2)^{n-1}(7kn - 2)$. If $n$ is odd, then $a^n = 1 \\iff 2^{n-1}7kn = 2^n + 1$ which implies that $7|(1+2^n)$. A short check of the possible values of $1+2^n$ modulo $7$ shows that this is not possible. If $n$ is even, then $a^n = 1 \\iff -2^{n-1}7kn + 49l = 1-2^n$ for some integer $l$. Similarly to the previous case, this implies $a = 7 \\cdot 3 - 2 = 19 \\in A_6$ and $a = 7k - 2 \\in A_{42}$ for $k \\in \\{0, \\dots, 6\\} \\setminus \\{3\\}$.\n\n5. If $a = 7k + 3$, with $k \\in \\{0, 1, \\dots, 6\\}$, then $a^n = 3^{n-1}7kn + 3^n$, so $a^n = 1 \\iff 3^{n-1}7kn + 49l = 1 - 3^n$ for some integer $l$. This implies that $7|(1-3^n)$, i.e. $n = 6m$ for some integer $m$. Then\n$$\n\\frac{1-3^n}{7} = \\frac{1-3^{6m}}{7} = \\frac{(1-3^6)(1+3^6+\\dots+(3^6)^{m-1})}{7} \\equiv m \\quad \\mod 7 \\\\ \\text{and } 3^{n-1} \\equiv 5 \\quad \\mod 7\n$$\nTherefore, if $n = 6m$ and $k = 4$, there exists an integer $l$ such that the equation\n$$\n3^{n-1}kn + 7l = \\frac{1-3^n}{7}\n$$\nholds, so $a = 31 \\in A_6$. As in the previous cases, $a = 7k + 3 \\in A_{42}$ for $k \\in \\{0, \\dots, 6\\} \\setminus \\{4\\}$.\n\n6. If $a = 7k - 3$, with $k \\in \\{1, \\dots, 7\\}$, then $a^n = (-3)^{n-1}(7kn - 2)$. If $n$ is odd, then $a^n = 1 \\iff 3^{n-1}7kn = 3^n + 1$ which implies that $7|(1+3^n)$. A short check of the possible values of $1+3^n$ modulo $7$ shows that this is equivalent to $n = 6m + 3$ and then $a^n = 1 \\iff 3^{n-1}kn = \\frac{3^{n+1}}{7}$, where the right hand side becomes\n$$\n\\frac{1+3^{3(2m+1)}}{7} = \\frac{(1+3^3)(1-3^3+\\dots+(3^3)^{2m})}{7} \\equiv 4(2m+1) \\quad \\mod 7,\n$$\n$a^n = 1$ becomes $3^{6m+3}k(2m+1) = 4(2m+1) \\pmod 7$, equivalently $6k(2m+1) = 4(2m+1) \\pmod 7$, which holds for all $m$ when $k=3$, and for all $k$ when $(2m+1) \\equiv 0 \\pmod 7$. Thus $a = 7 \\cdot 3 - 3 = 18 \\in A_3$ while $a = 7k - 3 \\in A_{21}$ for $k \\in \\{1, \\dots, 7\\} \\setminus \\{3\\}$. If $n$ is even, then $a^n = 1 \\iff -3^{n-1}7kn + 49l = 1 - 3^n$ for some integer $l$. Similarly to the previous case, this implies $a^6 = 1$ for $a = 7 \\cdot 3 - 2 = 18$ and $a^{42} = 1$ for $a = 7k - 2$ and $k \\in \\{0, \\dots, 6\\} \\setminus \\{3\\}$, which was already known from the case of $n$ odd.\n\nb) $2009 = 49 \\cdot 41$. From a) it follows that $49$ divides $a^{42} - 1$ for all integers $a$ relatively prime to $49$. From Fermat's theorem, $41$ divides $a^{40} - 1$ for all integers $a$ relatively prime to $41$. The least common multiple of $40$ and $42$ is $840$ and thus $2009$ divides $a^{840} - 1$ for all integers $a$ relatively prime to $2009$. It now suffices to find an integer $a$ such that $2009|(a^n - 1) \\Leftrightarrow 840|n$. It is natural to try $a \\in A_{42} = \\{3, 5, 10, 12, 17, 24, 26, 33, 38, 40, 45\\}$. Modulo $41$, we have $3^8 \\equiv 1$, $5^{20} \\equiv 1$ and $10^5 \\equiv 1$, but $n = 40$ is the least power such that $12^n \\equiv 1$, so $n = 840$ is indeed the least power such that $2009|(12^n - 1)$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33027, "subject": "Mathematics (Multi-modal)", "question": "Suppose that each point of the plane is coloured either black or white. Show that there is a set of three points of the same colour which form the vertices of an equilateral triangle.", "options": [], "answer": "Detailed solution", "solution": "Assume, if possible, that the result is false so every equilateral triangle in the plane has two vertices of different colours. Consider a regular hexagon $ABCDEF$ with centre $S$.\n\n![](attached_image_1.png)\n\nAssume $S$ is coloured black. One of the vertices of the triangle $BDF$ must be black; assume it is $B$. Considering the equilateral triangles $SBA$ and $SBC$, then $A$ and $C'$ are both white. From the triangle $ACE$, then $E$ is black and from $SEF$ the vertex $F$ is white. If $G$ is the point of intersection of $BA$ and $EF$, then we get a contradiction for the colouring of $G$. If it is white (black) then the triangle $GAF$ ($GBE$) is an equilateral triangle with all the vertices of the same colour. So we conclude that there is an equilateral triangle whose vertices do have the same colour.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33028, "subject": "Mathematics (Multi-modal)", "question": "Prove that $\\frac{1}{\\pi} \\tan^{-1}(\\sqrt{2})$ is not a rational number.", "options": [], "answer": "Detailed solution", "solution": "Let $A = \\tan^{-1}(\\sqrt{2})$ and assume $\\frac{A}{\\pi} = \\frac{m}{n}$ with integers $m, n$. This gives $nA = m\\pi$ and $\\tan(A) = \\sqrt{2}$. The strategy is to study the sequence $\\tan(kA)$ for $k = 1, 2, 3, \\dots$. We first observe that $nA = m\\pi$ implies that this sequence contains only finitely many different values, namely $\\tan(A), \\tan(2A), \\dots, \\tan(nA)$. The reason is the periodicity $\\tan(x + \\pi) = \\tan(x)$. The required contradiction is now achieved by using $\\tan(A) = \\sqrt{2}$ and the double angle formula\n$$\n\\tan(2B) = \\frac{2 \\tan(B)}{1 - \\tan^2(B)}\n$$\nIf $\\tan(B) = \\frac{a}{b}\\sqrt{2}$, where $a, b$ are co-prime integers and $a$ is even, then\n$$\n\\tan(2B) = \\frac{2ab}{a^2 - 2b^2} \\sqrt{2}\n$$\nand $2ab$ is even, $b^2 - 2a^2$ is odd. Moreover, $\\gcd(ab, b^2 - 2a^2) = 1$, because a prime $p$ which divides $ab$ and $b^2 - 2a^2$ has either to divide $a$ and so also $b$ or has to divide $b$ (which is odd) and $2a^2$, so it divides $a$. But $\\gcd(a, b) = 1$ implies that no such prime $p$ can exist. Therefore, we again obtained a fraction in lowest terms and with even numerator. As we have $|2ab| > |a|$ the numerator of $\\frac{1}{\\sqrt{2}}\\tan(2B)$ is bigger than the numerator of $\\frac{1}{\\sqrt{2}}\\tan(B)$.\nBecause $\\frac{1}{\\sqrt{2}}\\tan(2A) = -2$ has even numerator, we can conclude that in the sequence $\\tan(2A), \\tan(4A), \\tan(8A), \\dots, \\tan(2^k A), \\dots$ no two numbers are equal in contradiction to the finiteness shown above. This contradiction proves that $\\frac{A}{\\pi}$ cannot be rational.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33029, "subject": "Mathematics (Multi-modal)", "question": "Suppose $a$, $b$, $c$ are the side lengths of a triangle. Prove that\n$$\n\\frac{a}{1+a}, \\frac{b}{1+b}, \\frac{c}{1+c}\n$$\nare also the side lengths of a triangle.", "options": [], "answer": "Detailed solution", "solution": "First of all, if $x$, $y > -1$, then\n$$\n\\frac{x}{1+x} < \\frac{y}{1+y} \\Leftrightarrow x+xy < y+yx,\n$$\ni.e., iff $-1 < x < y$. Hence, since $a < b + c$, and $b$, $c > 0$,\n$$\n\\frac{a}{1+a} < \\frac{b+c}{1+b+c} = \\frac{b}{1+b+c} + \\frac{c}{1+b+c} < \\frac{b}{1+b} + \\frac{c}{1+c},\n$$\nas required.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33030, "subject": "Mathematics (Multi-modal)", "question": "A line drawn from the vertex $A$ of an equilateral triangle $ABC$ meets the side $BC$ at $D$ and the circumcircle at $P$. Show that\n$$\n\\frac{1}{|PD|} = \\frac{1}{|PB|} + \\frac{1}{|PC|}\n$$", "options": [], "answer": "Detailed solution", "solution": "Because $\\angle PAC = \\angle PBC$, $\\angle APC = \\angle ABC = 60^\\circ$ and $\\angle BPA = \\angle BCA = 60^\\circ$ the triangles $APC$ and $BPD$ are similar. Thus $\\frac{|PA|}{|PB|} = \\frac{|PC|}{|PD|}$, so\n$$\n|PA| \\cdot |PD| = |PB| \\cdot |PC| \\quad (1)\n$$\n![](attached_image_1.png)\nSince $ABPC$ is a cyclic quadrilateral, $|PA| \\cdot |BC| = |PB| \\cdot |AC| + |PC| \\cdot |AB|$. But the triangle $ABC$ is equilateral so it follows that\n$$\n|PA| = |PB| + |PC| \\quad (2)\n$$\nFrom the two equations (1) and (2), it follows that\n$$\n|PB| \\cdot |PC| = |PD|(|PB| + |PC|).\n$$\nNow dividing by the product $|PB| \\cdot |PD| \\cdot |PC|$, we get the desired equality\n$$\n\\frac{1}{|PD|} = \\frac{1}{|PB|} + \\frac{1}{|PC|}\n$$", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 33031, "subject": "Mathematics (Multi-modal)", "question": "$AB$ is a chord of length $6$ in a circle of radius $5$ and with centre $O$. A square is symmetrically inscribed in the sector $OAB$ with two vertices on the circumference. Find the area of the square.", "options": [], "answer": "900/109", "solution": "Let $XYZ$ be the square with $Y$ and $Z$ on the circle, $X$ on $OA$ and $Y$ on $OB$. Let $2a = |YZ|$. Draw $OD \\perp YZ$, $D$ on $YZ$. Then $OD \\perp AB$ and bisects $AB$. So $|OA| = 5$, $|AC| = 3 \\Rightarrow |OC| = 4 \\Rightarrow \\frac{|XE|}{|OE|} = \\frac{|AC|}{|OC|} = \\frac{3}{4} \\Rightarrow \\frac{a}{|OE|} = \\frac{3}{4} \\Rightarrow |OE| = \\frac{4a}{3}$.\n\nAlso $|OD|^2 = |OY|^2 - |YD|^2 = 25 - a^2$. Now $|OD| = |OE| + |ED| = \\frac{4a}{3} + 2a = \\frac{10a}{3} \\Rightarrow |OD|^2 = \\frac{100a^2}{9}$.\n\nSo, $\\frac{100a^2}{9} = 25 - a^2$ from which we get that the area of the square is equal to $4a^2 = \\frac{900}{109}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33032, "subject": "Mathematics (Multi-modal)", "question": "Let $ABCD$ be a square. The line segment $AB$ is divided internally at $H$ so that $|AB| \\cdot |BH| = |AH|^2$. Let $E$ be the midpoint of $AD$ and $X$ be the midpoint of $AH$. Let $Y$ be the point on $EB$ such that $XY$ is perpendicular to $BE$. Prove that $|XY| = |XH|$.", "options": [], "answer": "Detailed solution", "solution": "Let $ABCD$ have side length $2a$ and write $x = |AH|$. Then, by assumption\n$$\nx^2 = 2a(2a - x).\n$$\n![](attached_image_1.png)\nBecause $|AB| = 2|EA|$, Pythagoras gives $|BE|^2 = |EA|^2 + |AB|^2 = 5|EA|^2$.\n\nObserve that $\\triangle BXY$ and $\\triangle BEA$ are similar. Hence, $\\frac{|BE|}{|EA|} = \\frac{|BX|}{|XY|}$ and so\n$$\n\\begin{aligned}\n5|XY|^2 &= |BX|^2 = \\left(2a - \\frac{x}{2}\\right)^2 = 4a^2 - 2ax + \\frac{x^2}{4} \\\\\n&= 2a(2a - x) + \\frac{x^2}{4} = x^2 + \\frac{x^2}{4} = 5\\left(\\frac{x}{2}\\right)^2.\n\\end{aligned}\n$$\nThis implies $|XY| = \\frac{x}{2} = |XH|$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33033, "subject": "Mathematics (Multi-modal)", "question": "The country of Harpland has three types of coin: green, white and orange.\nThe unit of currency in Harpland is the shilling. Any coin is worth a positive integer number of shillings, but coins of the same colour may be worth different amounts. A set of coins is stacked in the form of an equilateral triangle of side $n$ coins, as shown below for the case of $n = 6$.\n\n![](attached_image_1.png)\n\nThe stacking has the following properties:\n1. no coin touches another coin of the same colour;\n2. the total worth, in shillings, of the coins lying on any line parallel to one of the sides of the triangle is divisible by three.\n\nProve that the total worth in shillings of the *green* coins in the triangle is divisible by three.", "options": [], "answer": "Detailed solution", "solution": "Without loss of generality the coins form the pattern shown below.\n\n![](attached_image_2.png)\n\nLet $G$, $W$ and $O$ denote the total worth in shillings of the green, white and orange coins in the triangle, respectively. The problem reduces to showing that $G$, $W$ and $O$ are all divisible by three. Now fix some green coin $g'$ in the triangle, and consider a subset of the lines parallel to the sides of the triangle, such that every third parallel line is included, and all lines passing through $g'$ are included; this is illustrated below.\n\n![](attached_image_3.png)\n\nSince the total worth of the coins on each line is divisible by $3$, so is the sum of these quantities. However these lines contain each white coin exactly once, each orange coin exactly once, and a subset $S$ of the green coins exactly $3$ times. We thus have\n$$\nW + O + 3G' \\equiv 0 \\pmod{3}\n$$\nwhere $G'$ denotes the total worth of the green coins lying in the set $S$. Therefore\n$$\nW + O \\equiv 0 \\pmod{3}.\n$$\n\nBut summing the worth of the coins in all lines parallel to one side of the triangle, we obtain\n$$\nG + W + O \\equiv 0 \\pmod{3}.\n$$\nSubtraction of these two congruences yields\n$$\nG \\equiv 0 \\pmod{3},\n$$\nand application of the same reasoning proves that $W \\equiv O \\equiv 0 \\pmod{3}$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33034, "subject": "Mathematics (Multi-modal)", "question": "The sum of a certain number of consecutive positive integers is equal to $2010$.\nFind these integers.", "options": [], "answer": "[4..63], [91..110], [127..141], [162..173], [400..404], [501..504], [669..671], [2010]", "solution": "Let $a$ be the smallest and $b$ be the largest integer in the sum, that is we wish to find all possible positive integers $a \\leq b$ such that $\\sum_{k=a}^{b} k = 2010$. We have\n$$\n\\begin{aligned}\n\\sum_{k=a}^{b} k &= \\sum_{k=0}^{b-a} a + k = (b-a+1)a + \\sum_{k=0}^{b-a} k \\\\\n&= (b-a+1)a + \\frac{(b-a)(b-a+1)}{2} = \\frac{(b-a+1)(b+a)}{2}\n\\end{aligned}\n$$\nThis means that we have to solve $(b-a+1)(b+a) = 4020 = 2^2 \\cdot 3 \\cdot 5 \\cdot 67$. From $b \\geq a \\geq 1$, we obtain $b-a+1 \\geq 1$ and $b+a > b-a+1$. If we use the abbreviations $x = b+a$ and $y = b-a+1$, we have to solve $xy = 4020$. As $y < x$, we must have $y < \\sqrt{4020} < 45$. Moreover, because $a = \\frac{1}{2}(x - (y-1))$ and $b = \\frac{1}{2}(x + (y-1))$ are integers, $x$ and $y$ must be of different parity. Hence, either $x$ or $y$ is divisible by $4$. Therefore, the possible values for $y$ are $1$, $3$, $4$, $5$, $12$, $15$, $20$, $60$. Using $xy = 4020$ and $b = \\frac{1}{2}(x + (y-1))$ as well as $a = \\frac{1}{2}(x - (y-1))$, we obtain the following table of all solutions:\n\n| y | 1 | 3 | 4 | 5 | 12 | 15 | 20 | 60 |\n|----|-----|-----|-----|-----|-----|-----|-----|-----|\n| x | 4020| 1340|1005 | 804 | 335 | 268 | 201 | 67 |\n| b |2010 | 671 | 504 | 404 | 173 | 141 | 110 | 63 |\n| a |2010 | 669 | 501 | 400 | 162 | 127 | 91 | 4 |", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33035, "subject": "Mathematics (Multi-modal)", "question": "Suppose $p$ is the polynomial\n$$\np(z) = az^4 + bz^3 + cz^2 + dz + e,\n$$\nwhere $a$, $b$, $c$, $d$, $e$ are complex numbers with $a \\neq 0$. Prove that there is a complex number $h$ such that $p(h+z) = p(h-z)$ for all complex numbers $z$, if and only if\n$$\nb^3 - 4abc + 8a^2d = 0.\n$$", "options": [], "answer": "Detailed solution", "solution": "We have\n$$\n\\begin{aligned}\n0 &= p(h+z) - p(h-z) \\\\\n &= a((h+z)^4 - (h-z)^4) + b((h+z)^3 - (h-z)^3) \\\\\n &\\quad + c((h+z)^2 - (h-z)^2) + d((h+z) - (h-z)) \\\\\n &= 8a(h^3z + hz^3) + 2b(3h^2z + z^3) + 4chz + 2dz \\\\\n &= z(8ah^3 + 6bh^2 + 4ch + 2d) + z^3(8ah + 2b).\n\\end{aligned}\n$$\nThis is satisfied for all $z \\in \\mathbb{C}$ iff\n$$\n8ah^3 + 6bh^2 + 4ch + 2d = 0 \\quad \\text{and} \\quad 8ah + 2b = 0.\n$$\nThe second equation implies $h = -\\frac{b}{4a}$. Substituting this into the first of these equations, we obtain, after multiplying by $4a^2$,\n$$\nb^3 - 4abc + 8a^2d = 0.\n$$\nThus, this condition is necessary. Conversely, if it holds, then, with $h = -b/(4a)$ we see that $8ah^3 + 6bh^2 + 4ch + 2d = 0$ and $8ah + 2b = 0$ hold.", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 33036, "subject": "Mathematics (Multi-modal)", "question": "Let $\\triangle ABC$ be a triangle and let $P$ denote the midpoint of the side $BC$. Suppose that there exist two points $M$ and $N$ interior to the sides $AB$ and $AC$ respectively, such that\n$$\n|AD| = |DM| = 2|DN|,\n$$\nwhere $D$ is the intersection point of the lines $MN$ and $AP$. Show that\n$|AC| = |BC|$.", "options": [], "answer": "Detailed solution", "solution": "**Step I:** Reduce to the case when $M$ coincides with $B$. The following provides two versions of this step:\n\n**Version 1:** The line through $B$ parallel to $MN$ intersects $AP$ at a point $E$ and $AC$ at a point $Q$. From the similar triangles $AMD$ and $ABE$ it follows that\n$$\n\\frac{|MD|}{|BE|} = \\frac{|AD|}{|AE|}\n$$\nand from the similar triangles $ADN$ and $AEQ$ it follows that\n$$\n\\frac{|ND|}{|QE|} = \\frac{|AD|}{|AE|}\n$$\nThus $|AD| = |DM| = 2|DN|$ is equivalent to $|AE| = |EB| = 2|EQ|$.\n\n![](attached_image_1.png)\n\n![](attached_image_2.png)\n\n**Version 2:** Let $B'C'$ be a line parallel to $BC$, with $B' = M$ and $C'$ on $AC$. Let $P'$ be the intersection point of $B'C'$ with $AP$. From the similar triangles $AB'P'$ and $ABP$ it follows that\n$$\n\\frac{|B'P'|}{|BP|} = \\frac{|AP'|}{|AP|}\n$$\nand from the similar triangles $AC'P'$ and $ACP$ it follows that\n$$\n\\frac{|C'P'|}{|CP|} = \\frac{|AP'|}{|AP|}\n$$\nThus $P$ is the midpoint of $BC$ if and only if $P'$ is the midpoint of $B'C'$. Also, since the triangles $AB'C'$ and $ABC$ are similar, then $|AC| = |BC|$ is equivalent to $|A'C'| = |B'C'|$.\n\n\n**Step II:** With the notations from Step I, Version 1, prove that $Q$ is the midpoint of $AC$ and $E$ is the centroid of the triangle $ABC$. The following provides two versions of this step:\n\n**Version 1:** Menelaus' theorem for $\\triangle BQC$ with secant line $AP$ gives\n$$\n\\frac{|QE|}{|BE|} \\cdot \\frac{|BP|}{|CP|} \\cdot \\frac{|CA|}{|QA|} = 1 .\n$$\nBecause $|BE| = 2|QE|$ and $|BP| = |CP|$, it follows that $|CA| = 2|QA|$ and so $Q$ is the midpoint of $AC$. Hence, $E$ is the centroid of $\\triangle ABC$.\n\n\n**Version 2:** Let $Q'$ denote the midpoint of $AC$, and let $E'$ be the intersection of $BQ'$ with $AP$. We will prove $Q = Q'$ using proof by contradiction. Assume they are different. The triangles $Q'PC$ and $ABC$ are similar since\n$$\n\\frac{|CQ'|}{|AC|} = \\frac{|CP|}{|BC|} = \\frac{1}{2}\n$$\nand so $|AB| = 2|PQ'|$ and also $PQ'$ is parallel to $AB$. Thus the triangles $AE'B$ and $PE'Q'$ are similar which implies\n$$\n\\frac{|AB|}{|PQ'|} = 2 = \\frac{|BE'|}{|E'Q'|} = \\frac{|BE|}{|EQ|}\n$$\nBut this would imply that $EE'$ is parallel to $QQ'$ which is a contradiction, since they meet at $A$.\n\n\n**Step III:** Because $E$ is the centroid of $\\triangle ABC$, we have $|AE| = 2|EP|$ and $|BE| = 2|EQ|$. Because $|AE| = 2|EQ|$, this implies $|AE| = |BE|$ and $|EQ| = |EP|$. Therefore, the triangles $AEQ$ and $BEP$ are congruent, thus\n$$\n|BC| = 2|BP| = 2|AQ| = |AC| .", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33037, "subject": "Mathematics (Multi-modal)", "question": "The numbers $1, 2, 3, \\dots, (2n)^2$ are written in the unit squares of a $2n \\times 2n$ array, $n \\ge 3$. Prove that there exist $n+1$ columns in the array such that in each of them any number is less than the sum of the remaining $2n-1$ numbers in that column.", "options": [], "answer": "Detailed solution", "solution": "Assume that there exist $n$ columns such that in each of them one can find a number that is greater than or equal to the sum of the remaining $2n - 1$.\nTherefore, in these columns, say $i = 1, 2, 3, \\dots, n$, we must have $a_i \\ge c_i$, where $a_i$ denotes the maximum value in column $i$, and $c_i$ denotes the sum of the other $2n - 1$ values in column $i$. Hence\n$$\na_1 + a_2 + \\dots + a_n \\ge c_1 + c_2 + \\dots + c_n \\ge \\sum_{k=1}^{n(2n-1)} k = \\frac{(2n^2 - n)(2n^2 - n + 1)}{2} .\n$$\n\nOn the other hand, the maximal possible values of the numbers $a_1, a_2, \\dots, a_n$\nare\n$$\n4n^2, 4n^2 - 1, 4n^2 - 2, \\dots, 4n^2 - (n-1)\n$$\nso\n$$\na_1 + a_2 + \\dots + a_n \\le \\sum_{k=1}^{n} [4n^2 - (k-1)] = 4n^3 - \\frac{n(n-1)}{2}\n$$\nThe combination of these two inequalities leads to\n$$\n4n^3 - \\frac{n(n-1)}{2} \\ge \\frac{(2n^2 - n)(2n^2 - n + 1)}{2}\n$$\nthat is, $0 \\ge n(2n^3 - 6n^2 + 2n - 1) = n(2n^2(n-3) + (2n-1))$, which is false for $n \\ge 3$. This proves the statement of the problem.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33038, "subject": "Mathematics (Multi-modal)", "question": "Let $ABC$ be a triangle. Let $AD$ be the angle bisector of the angle $\\angle BAC$ and let $BE$ be the angle bisector of the angle $\\angle ABC$, with $D$ interior to the side $BC$ and $E$ to the side $AC$. Let $M$ be a point interior to the side $BC$ such that $|CM| = |AE|$, and let $N$ be a point interior to the side $AC$ such that $|CN| = |BD|$. Show that the points $D, E, M$ and $N$ are all on a circle if and only if $|AB| = |AC|$.", "options": [], "answer": "Detailed solution", "solution": "Let $a$, $b$ and $c$ be the lengths of the sides of the triangle $ABC$. Using that $AD$ is an angle bisector, that the two angles $\\angle ADB$ and $\\angle CDA$ are complementary (hence have equal sines) and the sine rule for the triangles $ABD$ and $ADC$ one obtains\n$$\n\\frac{|BD|}{|DC|} = \\frac{c}{b} \\quad \\text{and similarly} \\quad \\frac{|AE|}{|EC|} = \\frac{c}{a}.\n$$\n![](attached_image_1.png)\n\nThe points $E$, $D$, $M$ and $N$ are all on a circle if and only if opposite angles of the quadrilateral $EDMN$ add up to $180^\\circ$. This is equivalent to $\\angle CMN = \\angle CED$ and $\\angle CNM = \\angle CDE$ which is equivalent to the triangles $CMN$ and $CED$ being similar. This, however, is equivalent to\n$$\n\\frac{|CE|}{|CM|} = \\frac{|CD|}{|CN|}.\n$$\nUsing $a = c \\cdot |CE|/|AE|$ and $b = c \\cdot |CD|/|BD|$, which was shown above, and $|AE| = |CM|$, $|BD| = |CN|$, it is now straightforward to see that $E$, $D$, $M$, $N$ are concyclic if and only if $a = b$.\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33039, "subject": "Mathematics (Multi-modal)", "question": "Suppose $x, y, z$ are positive numbers such that $x + y + z = 1$. Prove that\n$$\n(a) \\ xy + yz + zx \\geq 9xyz;\n$$\n$$\n(b) \\ xy + yz + zx < \\frac{1}{4} + 3xyz.\n$$", "options": [], "answer": "Detailed solution", "solution": "(a) Through two uses of the arithmetic mean-geometric mean inequality,\n$$\n\\begin{aligned}\nxyz &= \\sqrt[3]{(xy)(yz)(zx)} \\cdot \\sqrt[3]{xyz} \\\\\n&\\le \\frac{xy + yz + zx}{3} \\cdot \\frac{x+y+z}{3} = \\frac{xy + yz + zx}{9}\n\\end{aligned}\n$$\nwith equality iff $x = y = z = 1/3$. Hence,\n$$\nxy + yz + zx \\ge 9xyz,\n$$\ni.e. inequality (a) holds.\n\n\n(b) Next, at least one of $x, y, z$ must be at least $1/3$. Without loss of generality, suppose $z \\ge 1/3$. Then\n$$\n\\begin{align*}\nxy + yz + zx - 3xyz &= xy(1 - 3z) + z(x + y) \\\\\n&= xy(1 - 3z) + z(1 - z) \\\\\n&\\le z(1 - z) \\\\\n&= \\frac{1}{4} - \\left(z - \\frac{1}{2}\\right)^2 \\\\\n&\\le \\frac{1}{4}\n\\end{align*}\n$$\nand there is equality iff $xy = 0$ and $z = 1/2$. Since $xyz > 0$, the inequality is strict. Thus inequality (b) holds.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33040, "subject": "Mathematics (Multi-modal)", "question": "For each odd integer $p \\ge 3$ find the number of real roots of the polynomial\n$$\nf_p(x) = (x - 1)(x - 2) \\cdots (x - p + 1) + 1.\n$$", "options": [], "answer": "For p = 3: 0 real roots. For p = 5: 2 real roots (each double). For odd p ≥ 7: exactly p − 1 real roots.", "solution": "We first look at the cases $p = 3, 5$, then deal with $p \\ge 7$. The polynomial\n$$\nf_3(x) = (x-1)(x-2)+1 = x^2-3x+3 = \\left(x-\\frac{3}{2}\\right)^2+\\frac{3}{4} > 0\n$$\nhas no real root.\n\nIf $p=5$, we obtain\n$$\n\\begin{align*}\nf_5(x) &= (x-1)(x-2)(x-3)(x-4) + 1 = (x-1)(x-4)(x-2)(x-3) + 1 \\\\\n&= (x^2 - 5x + 4)(x^2 - 5x + 6) + 1 = (x^2 - 5x + 5)^2.\n\\end{align*}\n$$\nBecause the discriminant of $x^2 - 5x + 5$ is $5^2 - 4 \\cdot 5 > 0$, we see that $f_5(x)$ has two real (double) roots.\n\nIf $p \\ge 7$, we proceed as follows. First note that the degree of $f_p(x)$ is equal to $p-1$, hence this polynomial can have at most $p-1$ real roots. We obviously have $f_p(1) = f_p(2) = \\dots = f_p(p-1) = 1$. We shall show below that $f_p(2k - \\frac{1}{2}) < 0$ for $k = 1, 2, 3, \\dots, \\frac{p-1}{2}$. This implies the existence of two real roots between $2k-1$ and $2k$. Therefore, we conclude that $f_p(x)$ has exactly $p-1$ real roots, if $p \\ge 7$ is an odd integer.\n\nFor $k = 1, 2, 3, \\dots, \\frac{p-1}{2}$ we have\n$$\nf_p \\left( 2k - \\frac{1}{2} \\right) = \\frac{4k-3}{2} \\cdots \\frac{3}{2} \\frac{1}{2} \\left( -\\frac{1}{2} \\right) \\left( -\\frac{3}{2} \\right) \\left( -\\frac{5}{2} \\right) \\left( -\\frac{2p-4k-1}{2} \\right) + 1\n$$\nThe product has $p-1 \\ge 6$ factors. Only $\\pm\\frac{1}{2}$ are of modulus less than 1.\nThe number of negative factors is odd (equal to $p-2k$), so the product is negative. The modulus of the product is always at least $\\frac{1}{2} \\cdot \\frac{1}{2} \\cdot \\frac{3}{2} \\cdot \\frac{5}{2} \\cdot \\frac{7}{2} = \\frac{105}{32} > 1$\nexcept when $p=7$ and $k=2$, where it is equal to $\\frac{5}{2} \\cdot \\frac{3}{2} \\cdot \\frac{1}{2} \\cdot \\frac{1}{2} \\cdot \\frac{3}{2} \\cdot \\frac{5}{2} = \\frac{225}{64} > 1$.\nThis shows that $f(2k - \\frac{1}{2}) < 0$ for $k = 1, 2, 3, \\dots, \\frac{p-1}{2}$.", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 33041, "subject": "Mathematics (Multi-modal)", "question": "Suppose $a, b, c$ are the side lengths of a triangle $ABC$. Let\n$$\nx = \\frac{b+c}{2}, \\quad y = \\frac{c+a}{2}, \\quad z = \\frac{a+b}{2}.\n$$\nShow that $x, y, z$ are the side lengths of a triangle $XYZ$, with the same perimeter as $ABC$, but with a bigger area, unless $ABC$ is equilateral.", "options": [], "answer": "Detailed solution", "solution": "First of all, for instance, $x < y + z$, because\n$$\n2x = b + c < 2a + b + c = (c + a) + (a + b) = 2y + 2z.\n$$\nThus, $x, y, z$ are the side lengths of a triangle. Next, $x + y + z = a + b + c = 2s$, in the usual notation. Hence, $\\triangle ABC$ and $\\triangle XYZ$ have the same perimeter. Now, by Heron's formula, the area of $\\triangle XYZ$ is given by $(XYZ) = \\sqrt{s(s-x)(s-y)(s-z)}$. But,\n$$\ns-x = \\frac{2s-(b+c)}{2} = \\frac{a}{2}, \\quad s-y = \\frac{2s-(c+a)}{2} = \\frac{b}{2}, \\quad s-z = \\frac{2s-(a+b)}{2} = \\frac{c}{2}\n$$\nand so\n$$\n(s-x)(s-y)(s-z) = \\frac{abc}{8}.\n$$\nThus, $(XYZ)^2 = abc/s$, and so, since $(ABC)^2 = s(s-a)(s-b)(s-c)$, we must show that\n$$\nabc \\geq 8(s-a)(s-b)(s-c),\n$$\nwith equality iff $a = b = c$. Now\n$$\n2\\sqrt{(s-a)(s-b)} \\leq s-a+s-b=c,\n$$\nwith equality iff $a = b$. Hence,\n$$\n8(s-a)(s-b)(s-c) = (2\\sqrt{(s-a)(s-b)}) (2\\sqrt{(s-b)(s-c)}) (2\\sqrt{(s-c)(s-a)}) \\leq cab,\n$$\nwith equality iff $a = b = c$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33042, "subject": "Mathematics (Multi-modal)", "question": "In the triangle $ABC$ we have $|AB| = 1$ and $\\angle ABC = 120^\\circ$. The perpendicular line to $AB$ at $B$ meets $AC$ at $D$ such that $|DC| = 1$. Find the length of $AD$.", "options": [], "answer": "∛2", "solution": "Let $x = |AD|$ and $y = |BC|$. From $\\triangle ADB$ we obtain $\\sin(\\angle ADB) = \\frac{1}{x}$ and from $\\triangle BDC$ we get $\\frac{\\sin(\\angle BDC)}{y} = \\frac{\\sin(30^\\circ)}{1} = \\frac{1}{2}$. Since $\\sin(\\angle ADB) = \\sin(\\angle BDC)$, this gives $\\frac{1}{x} = \\frac{y}{2}$, hence $y = \\frac{2}{x}$.\n\n![](attached_image_1.png)\n\nThe cosine theorem for $\\triangle ABC$ gives\n$$\n-\\frac{1}{2} = \\cos(\\angle ABC) = \\frac{1 + y^2 - (1+x)^2}{2y} = \\frac{1 + \\left(\\frac{2}{x}\\right)^2 - (1+x)^2}{\\frac{4}{x}}\n$$\nSimplifying, we obtain $x^4 + 2x^3 - 2x - 4 = 0$. Rewriting this polynomial as $x(x^3 - 2) + 2(x^3 - 2) = (x^3 - 2)(x + 2)$, we see that $x = \\sqrt{2}$.\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33043, "subject": "Mathematics (Multi-modal)", "question": "In a triangle $ABC$, $X$ and $Y$ are the mid-points of $AB$ and $BC$ respectively. On $BC$ there is a point $D$, which is not the mid-point of $BC$. Prove that $\\angle XDY = \\angle BAC$ implies $AD \\perp BC$.", "options": [], "answer": "Detailed solution", "solution": "Let $Z$ be the mid-point of $BC$. Because $X$, $Y$, $Z$ are mid-points, we have $XZ \\parallel AC$, $YZ \\parallel AB$ and $XY \\parallel BC$. Therefore $\\angle XBZ = \\angle XYZ$ and $\\angle XZY$. The latter, together with the assumption $\\angle XDY = \\angle BAC$ implies $\\angle XDY = \\angle XZY$, hence $X$, $D$, $Z$, $Y$ are concyclic.\n\nFrom this we obtain $\\angle XDB = \\angle XYZ = \\angle XBZ$ and so $|XD| = |XB| = |AX|$. This shows that $A$, $D$, $B$ are on the circle with diameter $AB$ and so, by Thales' Theorem, $AD \\perp BC$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33044, "subject": "Mathematics (Multi-modal)", "question": "Three real numbers $a$, $b$, $c$ satisfy the equations\n$$\n\\begin{align*}\na + 2b + 3c &= 12, \\\\\n2ab + 3ac + 6bc &= 48.\n\\end{align*}\n$$\nSolve for $a$, $b$, $c$.", "options": [], "answer": "a = 4, b = 2, c = 4/3", "solution": "From $(a + 2b + 3c)^2 = a^2 + 4b^2 + 9c^2 + 2(2ab + 3ac + 6bc)$ we obtain\n$$\na^2 + 4b^2 + 9c^2 = 48.\n$$\nHence $(a-2b)^2 + (2b-3c)^2 + (a-3c)^2 = 2(a^2+4b^2+9c^2) - 2(2ab+3ac+6bc) = 96 - 96 = 0$. Therefore $a = 2b = 3c$, and so $a = 4$, $b = 2$ and $c = 4/3$.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 33045, "subject": "Mathematics (Multi-modal)", "question": "Suppose $a$, $b$, $c$ are the side lengths of a triangle $ABC$. Prove that\n$$\n2ab \\sin \\left(\\frac{C}{2}\\right) + 2bc \\sin \\left(\\frac{A}{2}\\right) + 2ca \\sin \\left(\\frac{B}{2}\\right) \\le a^2 + b^2 + c^2;\n$$\nand that the inequality is strict unless the triangle $ABC$ is equilateral.", "options": [], "answer": "Detailed solution", "solution": "Let $2s = a + b + c$. Using $\\cos(C) = \\frac{a^2 + b^2 - c^2}{2ab}$, we obtain\n$$\n\\begin{aligned}\n2 \\sin^2 \\left( \\frac{C}{2} \\right) &= 1 - \\cos(C) = \\frac{2ab - a^2 - b^2 + c^2}{2ab} \\\\\n&= \\frac{c^2 - (a-b)^2}{2ab} = \\frac{(c-a+b)(c+a-b)}{2ab} \\\\\n&= \\frac{2(s-a)(s-b)}{ab}\n\\end{aligned}\n$$\n\n$$\n\\sin\\left(\\frac{C}{2}\\right) = \\sqrt{\\frac{(s-a)(s-b)}{ab}}\n$$\nIt follows, with the aid of the AM-GM inequality, that\n$$\n\\begin{aligned}\n2ab \\sin\\left(\\frac{C}{2}\\right) &= 2\\sqrt{(a(s-a))(b(s-b))} \\\\\n&\\le a(s-a) + b(s-b) = s(a+b) - a^2 - b^2,\n\\end{aligned}\n$$\nwith equality iff $a(s - a) = b(s - b)$, i.e., $s(a - b) = (a - b)(a + b)$, i.e., iff $a = b$. Following from this we see, using $2ab \\le a^2 + b^2$ etc., that\n$$\n\\begin{aligned}\n2ab \\sin \\left(\\frac{C}{2}\\right) + 2bc \\sin \\left(\\frac{A}{2}\\right) + 2ca \\sin \\left(\\frac{B}{2}\\right)\n&\\le 2s(a+b+c) - 2(a^2 + b^2 + c^2) \\\\\n&= (a+b+c)^2 - 2(a^2 + b^2 + c^2) \\\\\n&= 2ab + 2bc + 2ac - (a^2 + b^2 + c^2) \\\\\n&\\le (a^2 + b^2) + (b^2 + c^2) + (a^2 + c^2) - (a^2 + b^2 + c^2) \\\\\n&= a^2 + b^2 + c^2,\n\\end{aligned}\n$$\nwith equality iff $a = b = c$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33046, "subject": "Mathematics (Multi-modal)", "question": "A row of $n$ lamps is labelled from left to right with the numbers $1$ to $n$, where $n$ is an *odd* positive integer. Each lamp has a switch which, if pressed, turns it from OFF to ON or from ON to OFF; however the switches may only be pressed according to the following rules:\n(a) Switch 1 may be pressed at any time;\n(b) Switch $k \\in \\{2, \\dots, n\\}$ may be pressed if and only if lamp $(k-1)$ is ON and all lamps $l < (k-1)$ (if any) are OFF.\nInitially all lamps are ON. Prove that the minimum number of times the switches must be pressed to turn all the lamps OFF is\n$$\n\\frac{2^{n+1} - 1}{3}\n$$", "options": [], "answer": "(2^{n+1} - 1)/3", "solution": "For any $n \\ge 1$, let $L_n$ denote the minimum number of times the switches must be pressed to turn all the lamps OFF. It is easy to check that $L_1 = 1$ and $L_2 = 2$.\n\nConsider the problem of turning lamps $1, 2, \\dots, k$ from all ON to all OFF, for some $k \\ge 3$. First, lamp $k$ must be turned OFF at some stage. For this to happen, lamps $1, 2, \\dots, k-2$ must all be OFF. This requires a minimum of $L_{k-2}$ switches to be pressed. Then one more switch is required to be pressed in order to turn lamp $k$ OFF. Next consider lamp $(k-1)$. To turn lamp $(k-1)$ OFF, lamp $(k-2)$ must be turned ON. But to turn lamp $(k-2)$ ON, lamp $(k-3)$ must be turned ON, and so on (proof completed by induction). Therefore before lamp $(k-1)$ may be turned OFF, at least as many switches must be pressed as are required to turn all lamps $1, 2, \\dots, k-2$ ON - this requires at the minimum a further $L_{k-2}$ switches to be pressed (note that the number of switches required to turn all lamps from OFF to ON is the same as the number required to turn all lamps from ON to OFF). Finally, to turn lamps $1, 2, \\dots, (k-1)$ OFF requires a minimum of $L_{k-1}$ switches to be pressed. Summarising,\n$$\nL_k \\ge 2L_{k-2} + L_{k-1} + 1, \\quad (1)\n$$\nfor $k \\ge 3$. It is easy to see that the above reasoning defines recursively an algorithm which performs the required switchings while satisfying (1) with equality. Therefore\n$$\nL_k = 2L_{k-2} + L_{k-1} + 1. \\qquad (2)\n$$\nNext we prove by induction that for every $r \\ge 1$,\n$$\nL_{2r-1} = \\frac{4^r - 1}{3} \\quad ; \\quad L_{2r} = \\frac{2(4^r - 1)}{3}\n$$\nThis is evident for $r = 1$. Assuming it is true for $r = k$, we have\n$$\nL_{2k+1} = \\frac{4^k - 1}{3} \\quad ; \\quad L_{2k} = \\frac{2(4^k - 1)}{3}\n$$\nand so for $r = k + 1$ we have by (2)\n$$\n\\begin{aligned}\nL_{2k+1} &= 2L_{2k-1} + L_{2k} + 1 \\\\\n&= \\frac{2(4^k - 1)}{3} + \\frac{2(4^k - 1)}{3} + 1 \\\\\n&= \\frac{4^{k+1} - 1}{3}\n\\end{aligned}\n$$\nand\n$$\n\\begin{aligned}\nL_{2k+2} &= 2L_{2k} + L_{2k+1} + 1 \\\\\n&= \\frac{4(4^k - 1)}{3} + \\frac{(4^{k+1} - 1)}{3} + 1 \\\\\n&= \\frac{2(4^{k+1} - 1)}{3}\n\\end{aligned}\n$$\n\nWe conclude that for any odd positive integer $n$, we have $n = 2k - 1$, so $k = (n + 1)/2$ and therefore\n$$\nL_n = L_{2k-1} = \\frac{4^k - 1}{3} = \\frac{4^{\\frac{n+1}{2}} - 1}{3} = \\frac{2^{n+1} - 1}{3}\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33047, "subject": "Mathematics (Multi-modal)", "question": "Let $n$ and $k$ be positive integers and suppose that $k$ is odd. Let $r$ be the greatest integer for which $2^r$ divides $n$. Let $h$ be the greatest integer for which $2^h$ divides $1 + k + k^2 + \\dots + k^{n-1}$. Prove\n(i) if $k \\equiv 1 \\pmod 4$, then $h = r$;\n(ii) if $k \\equiv 3 \\pmod 4$ and $n$ is odd, then $h = 0$;\n(iii) if $k \\equiv 3 \\pmod 4$ and $n$ is even, then $h = s + r - 1$, where $s$ is the greatest integer for which $2^s$ divides $k+1$.", "options": [], "answer": "Detailed solution", "solution": "The key observation for the proof is that for an integer $y$ with $y - 1$ divisible by 4,\n$$\n\\frac{y^2 - 1}{y - 1} = y + 1 \\quad \\text{is divisible by 2 but not by 4.}\n$$\n\nIf we write $n = 2^r m$, then $m$ is odd. First note that that\n$$\n1 + k + k^2 + \\dots + k^{n-1} = \\frac{k^n - 1}{k-1} = \\frac{(k^m)^{2^r} - 1}{k^m - 1} \\cdot \\frac{k^m - 1}{k-1}\n$$\nSince $k$ and $m$ are odd, the number $\\frac{k^m - 1}{k-1} = 1 + k + \\dots + k^{m-1}$ is odd as well and so the highest power of 2 which divides $1 + k + k^2 + \\dots + k^{n-1}$ and the highest power of 2 which divides\n$$\n\\frac{(k^m)^{2^r} - 1}{k^m - 1} = \\frac{(k^m)^{2^r} - 1}{(k^m)^{2^{r-1}} - 1} \\cdot \\frac{(k^m)^{2^r - 1} - 1}{(k^m)^{2^r} - 1} \\dots \\frac{(k^m)^2 - 1}{(k^m)^2 - 1} \\cdot \\frac{(k^m) - 1}{k^m - 1}\n$$\ncoincide. In particular, if $r=0$ we obtain $h=0$.\n\nSuppose $k \\equiv 1 \\pmod 4$, then $(k^m)^{2^j} - 1$ is divisible by 4 for any $j \\ge 0$. Therefore\n$$\n\\frac{(k^m)^{2^{j+1}} - 1}{(k^m)^{2^j} - 1} = (k^m)^{2^j} + 1\n$$\nis divisible by 2 but not by 4. As we have $r$ factors in the expression for $((k^m)^{2^r} - 1)/(k^m - 1)$ above, we see now that this number and so also $1+k+k^2+\\dots+k^{n-1}$ are divisible by $2^r$ but not by $2^{r+1}$, i.e. $h=r$.\n\nSuppose that $k \\equiv 3 \\pmod 4$. If $r=0$, we have already seen that $h=0$. If $r \\ge 1$, then $n' = 2^{r-1}m = n/2$ is an integer. Because $k^2 \\equiv 1 \\pmod 4$, what we have already shown implies that\n$$\n\\frac{k^n - 1}{k^2 - 1} = \\frac{(k^2)^{n'} - 1}{k^2 - 1}\n$$\nis divisible by $2^{r-1}$ but not by $2^r$. On the other hand, by definition of $s$,\n$$\n\\frac{k^2 - 1}{k - 1} = k + 1\n$$\nis divisible by $2^s$ but not by $2^{s+1}$. Multiplication of these two expressions shows that $h = r + s - 1$.", "topic": "Number Theory", "subtopic": "Modular Arithmetic" }, { "id": 33048, "subject": "Mathematics (Multi-modal)", "question": "A square is inscribed in an acute-angled triangle such that two of its vertices lie on one side of the triangle and one of its vertices on each of the other two sides of the triangle. Prove that the largest such square is that with two of its vertices on the smallest side of the triangle.", "options": [], "answer": "Detailed solution", "solution": "Let $DEFG$ be a square inscribed in $\\triangle ABC$ as described in the problem, let $AH$ be the altitude at $A$ and $h_a = |AH|$ its length. By $a$, $b$, $c$ we denote the lengths of the sides of $\\triangle ABC$ in the usual way. Let $x_a$ denote the side length of the square if one of its sides lies on the side $BC$ of the triangle (see figure below). Similarly, $x_b$ and $x_c$ are the side lengths of the rectangles in the two other cases.\n\n![](attached_image_1.png)\n\nFrom similar triangles we obtain\n$$\n\\frac{|BE|}{x_a} = \\frac{|BH|}{h_a} \\quad \\text{and} \\quad \\frac{|FC|}{x_a} = \\frac{|HC|}{h_a}\n$$\nThis implies\n$$\na = |BE| + x_a + |FC| = \\frac{x_a}{h_a} (|BH| + |HC|) + x_a = \\frac{a x_a}{h_a} + x_a = \\left(1 + \\frac{a}{h_a}\\right) x_a\n$$\nand so, letting $\\Delta = \\frac{1}{2} a h_a$ denote the area of $\\triangle ABC$,\n$$\nx_a = \\frac{a h_a}{a + h_a} = \\frac{2\\Delta}{a + h_a} = \\frac{2a\\Delta}{a^2 + 2\\Delta}\n$$\n$$\nx_b = \\frac{2b\\Delta}{b^2 + 2\\Delta}\n$$\nNow we prove that $b > a$ implies $x_a > x_b$. Because $0 < \\gamma = \\angle ACB < 180^\\circ$ (actually $\\gamma < 90^\\circ$), we have $0 < \\sin(\\gamma) < 1$. If we assume $b > a$, we obtain $b - a > (b - a) \\sin(\\gamma)$ from which we get the following inequalities\n$$\n\\begin{aligned}\n\\frac{1}{a + b \\sin(\\gamma)} &> \\frac{1}{b + a \\sin(\\gamma)} \\\\\n\\frac{2a\\Delta}{a^2 + 2\\Delta} &> \\frac{2b\\Delta}{b^2 + 2\\Delta} = x_b.\n\\end{aligned}\n$$\nThis shows that $b > a$ implies $x_a > x_b$, hence the square based on the smallest side of the triangle $ABC$ is the largest. The calculation also shows that $\\gamma = 90^\\circ$ implies $x_a = x_b$. In this case $F = C$.\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33049, "subject": "Mathematics (Multi-modal)", "question": "Determine all pairs of real numbers $(m, c)$ such that for all $x \\ge 0$\n$$\nmx + c \\le x^3.\n$$", "options": [], "answer": "{(m, c) : c <= 0 and 27 c^2 - 4 m^3 >= 0} (equivalently, c = -2 s^3 and m <= 3 s^2 for some s >= 0)", "solution": "Suppose $(m, c)$ is an allowable pair. Since the inequality must hold when $x = 0$, we see immediately that $c$ cannot be positive. Moreover,\n$$\nm \\le \\frac{x^3 - c}{x}, \\quad \\forall x > 0,\n$$\nand so, if $c = 0$, then $m \\le 0$. Otherwise, $c < 0$, and so, by the AM-GM inequality,\n$$\n\\begin{aligned}\n\\frac{x^3 - c}{x} &= x^2 + \\frac{(-c)}{x} = x^2 + \\frac{(-c)}{2x} + \\frac{(-c)}{2x} \\\\\n&\\ge 3\\sqrt[3]{x^2 \\frac{(-c)}{2x} \\frac{(-c)}{2x}} = 3\\sqrt[3]{\\frac{c^2}{4}},\n\\end{aligned}\n$$\nwith equality iff\n$$\nx^2 = \\frac{-c}{2x}, \\text{ i.e. } c = -2x^3.\n$$\nHence, using this value of $x$ we obtain,\n$$\nm \\le \\frac{x^3 - c}{x} = 3x^2\n$$\nThus, we have shown that either\n(i) $c = 0$ and $m \\le 0$, or\n(ii) $c = -2x^3$ for some $x > 0$, and $m \\le 3x^2$.\n\nConversely, suppose $m \\le 3s^2$, $c = -2s^3$ for some $s \\ge 0$. Then for all $x \\ge 0$\n$$mx + c \\le 3s^2x - 2s^3.$$ But $3s^2x - 2s^3 \\le x^3$ is equivalent to\n$$\n0 \\le x^3 - 3s^2x + 2s^3 = (x - s)(x^2 + sx - 2s^2) = (x - s)^2(x + 2s),\n$$\nwhich is true for all $x \\ge 0$. It follows that\n$$\n\\begin{aligned}\n& \\{(m, c) : c = -2s^3, m \\le 3s^2, \\text{ for some } s \\ge 0\\} \\\\\n&= \\{(m, c) : c \\le 0, 27c^2 - 4m^3 \\ge 0\\}\n\\end{aligned}\n$$\nis the set of allowable pairs.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33050, "subject": "Mathematics (Multi-modal)", "question": "Suppose $a, b, c$ are the side lengths of a triangle $ABC$. Show that\n$$\nx = \\sqrt{a(b+c-a)}, \\quad y = \\sqrt{b(c+a-b)}, \\quad z = \\sqrt{c(a+b-c)}\n$$\nare the side lengths of an acute-angled triangle $XYZ$, with the same area as $ABC$, but with a smaller perimeter, unless $ABC$ is equilateral.", "options": [], "answer": "Detailed solution", "solution": "Let $2s = a+b+c$, and denote by $\\Delta$ the area of $\\triangle ABC$. Then $x = \\sqrt{2a(s-a)}$, etc., and $\\Delta^2 = s(s-a)(s-b)(s-c)$. To show that $XYZ$ is acute, because of the cosine theorem, we must show $x^2, y^2, z^2$ satisfy the triangle inequality. But, e.g.,\n$$\nx^2 < y^2 + z^2 \\iff a(s-a) < b(s-b) + c(s-c) \\iff b^2 + c^2 - a^2 < s(b+c-a),\n$$\nand this is equivalent to\n$$\n2(b^2+c^2-a^2) < (b+c)^2-a^2 \\iff (b-c)^2 < a^2 \\iff (b-c-a)(b-c+a) < 0,\n$$\nwhich is true because of the triangle inequality. Also,\n$$\n\\begin{aligned}\n\\cos(X) &= \\frac{y^2 + z^2 - x^2}{2yz} = \\frac{(c+a-b)(a+b-c)}{4\\sqrt{bc(s-b)(s-c)}} \\\\\n&= \\frac{4(s-b)(s-c)}{4\\sqrt{bc(s-b)(s-c)}} = \\sqrt{\\frac{(s-b)(s-c)}{bc}} = \\sin\\left(\\frac{A}{2}\\right)\n\\end{aligned}\n$$\nFor the last equality see solution of Problem 20. Because acute angles $\\alpha, \\beta$ satisfying $\\cos(\\beta) = \\sin(\\alpha)$ also satisfy $\\sin(\\beta) = \\cos(\\alpha)$, the above implies\n$$\n\\begin{aligned}\nyz \\sin(X) &= 2\\sqrt{bc(s-b)(s-c)} \\cos\\left(\\frac{A}{2}\\right) \\\\\n&= 2\\sqrt{bc(s-b)(s-c)} \\sqrt{\\frac{s(s-a)}{bc}} \\\\\n&= 2\\sqrt{s(s-a)(s-b)(s-c)} = 2\\Delta.\n\\end{aligned}\n$$\nThus $\\triangle ABC$ and $XYZ$ have the same area. The AM-GM inequality gives\n$$\nx \\le \\frac{a+b+c-a}{2} = \\frac{b+c}{2},\n$$\nwith equality iff $2a = b + c$, whence\n$$\nx + y + z \\le \\frac{(b+c) + (c+a) + (a+b)}{2} = a + b + c,\n$$\nwith equality iff $2a = b + c, 2b = c + a, 2c = a + b$, i.e., $a = b = c$. Thus, the perimeter of $XYZ$ is not greater than the perimeter of $ABC$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33051, "subject": "Mathematics (Multi-modal)", "question": "The functions $f(n) = n^2$ and $f(n) = -n^2$ both satisfy the following equations:\n$$\nf(f(n) + 1) - f(f(n) - 1) = 4n^2\n$$\nEither show that there is no other function $f : \\mathbb{Z} \\to \\mathbb{Z}$ satisfying the above equation for all $n \\in \\mathbb{Z}$, or prove that another such function exists.", "options": [], "answer": "Detailed solution", "solution": "There are infinitely many solutions. We first examine some constraints.\nIf $f(n) = f(m)$ for $n, m \\ge 0$, then $4n^2 = 4m^2$ and so $n = m$. Similarly $n = m$ if $f(n) = f(m)$ for $n, m \\le 0$. Now let $a = f(0)$ and substitute $n = 0$ in the given functional equation. We obtain $f(a+1) = f(a-1)$, hence $a+1$ and $a-1$ must have different signs. This forces $f(0) = a = 0$.\nRequiring the given functional equation for all $n \\in \\mathbb{N}$ (positive integers) makes sense as a condition on functions $f: \\mathbb{N} \\to \\mathbb{N} \\setminus \\{1\\}$. If we can find such a function $f: \\mathbb{N} \\to \\mathbb{N} \\setminus \\{1\\}$, then we get a solution to our original problem when we extend it to a function defined on $\\mathbb{Z}$ by letting $f(0) = 0$ and $f(-n) = f(n)$, $n \\in \\mathbb{N}$.\nWe already know that $f$ must be injective (on $\\mathbb{N}$), so one possibility is to take $f(n)$ to be a *distinct* multiple of 4 for distinct $n \\in \\mathbb{N}$. Then the given functional equation just gives a sequence of uncoupled restrictions on $f$. The idea is therefore to pick some simple function $g: \\mathbb{N} \\to 4\\mathbb{N}$ and write $f(n) = g(n)$ for most values of $n \\in \\mathbb{N}$, but instead use the given equation.\n$$\nf(f(m) - 1) = f(f(m) + 1) - 4m^2\n$$\nto define $f(n)$ for some numbers $n \\equiv 3 \\pmod 4$. Defining $f(n)$ this way for $n = f(m) - 1$ in terms of $f(n+2) = g(n+2)$ certainly gives a value that is still a multiple of 4. Any monotonic function $g$ that increases quickly enough to ensure that $f(f(m) + 1) - 4m^2 > f(f(m))$ will suffice. For example, fix an integer $K > 0$ and take $g(n) = 4Kn^2$, and so, for $n > 0$ we define\n$$\nf(n) = \\begin{cases} 4K(n+2)^2 - 4m^2, & \\text{if } n \\equiv 3 \\pmod 4 \\text{ and } n = f(m) - 1 \\\\ & \\text{for some } m \\in \\mathbb{N}, m < n; \\\\ 4Kn^2, & \\text{otherwise.} \\end{cases}\n$$\nThis equation gives $f(1) = 4K$, and also defines $f(n)$, $n > 1$, in terms of $f(m)$ for $m \\in \\mathbb{N}$, $m < n$. Thus it assigns exactly one value $f(n)$ to $n \\in \\mathbb{N}$. Inductively we see that $f(n) \\ge 4Kn^2$ for all $n \\in \\mathbb{N}$. This inequality implies that $f(m) \\ge 4Km^2 \\ge 4m^2$ and so, in the exceptional case $n = f(m) - 1$,\n$$\nf(n) = 4K(n + 2)^2 - 4m^2 \\ge 4K(n + 2)^2 - n - 1 > 4(n + 1)^2 = f(n + 1)\n$$\nand obviously $f(n) < 4K(n + 2)^2 = f(n + 2)$. Thus $f$ is injective. Because $f(m) - 1 > m$ for $m > 0$ it is also now clear that $f$ satisfies the given equation.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 33052, "subject": "Mathematics (Multi-modal)", "question": "Find all polynomials $f(x) = x^3 + bx^2 + cx + d$, where $b, c, d$ are real numbers, such that $f(x^2 - 2) = -f(-x)f(x)$.", "options": [], "answer": "x^3 - 3x + 1; x^3 - 3x - 2; x^3 + x^2 - 2x - 1; x^3 + 2x^2 - 1; x^3 - x^2 - 3x + 2; x^3 - 3x^2 + 4; x^3 + 3x^2 + 3x + 1; x^3 - 6x^2 + 12x - 8", "solution": "The 'obvious' approach is to equate coefficients of powers of $x$ in $f(x^2 - 2)$ and $-f(-x)f(x)$ to get:\n$$\nb - 6 = 2c - b^2, \\quad -2bd + c^2 = 12 - 4b + c, \\quad -d^2 = -8 + 4b - 2c + d. \\quad (3)\n$$\nIt is possible, albeit difficult, to solve these equations directly. For example, if $b=0$, we get $c = -3$ and then $d^2 + d - 2 = 0$, whence $d = 1$ or $-2$. Both\n$$\nx^3 - 3x + 1, \\quad \\text{and} \\quad x^3 - 3x - 2\n$$\nare solutions, as we show below. If on the contrary, $b \\neq 0$, we see that:\n$$\nc = (b^2 + b)/2 - 3, \\quad d = (c^2 - c + 4b - 12)/(2b), \\quad d^2 + d + 4b - 2c - 8 = 0\n$$\nOn substituting for $c$ and then for $d$, we see that $b$ is a root of the sextic:\n$$\nx^6 + 4x^5 - 22x^4 - 40x^3 + 129x^2 + 36x - 108.\n$$\nThe roots of this are $-6, -3, -1, 1, 2$ and $3$. These could be found by guessing! Each root gives one solution for $f(x)$.\n\n\nSolution 2:\n\nSet $a := 2$ and let $\\beta_1, \\beta_2, \\beta_3$ denote the roots of $f$. Then the hypothesis implies that\n$$\n\\prod_{i=1}^{3} (x - \\sqrt{a + \\beta_i}) (x + \\sqrt{a + \\beta_i}) = \\prod_{i=1}^{3} (x - \\beta_i)(x + \\beta_i)\n$$\nWe consider the various possibilities.\nAssume first that $\\sqrt{a + \\beta_i} = \\pm \\beta_i$, for all $i = 1, 2, 3$. Then each $\\beta_i$ is a root of $x^2 - x - 2$. So $\\beta_i = -1$ or $2$. It can be checked that this gives four possible polynomials $f(x)$:\n$$\n(x + 1)^3, \\quad (x + 1)^2(x - 2), \\quad (x + 1)(x - 2)^2, \\quad (x - 2)^3. \\quad (4)\n$$\nAssume next that $\\sqrt{a + \\beta_1} = \\pm \\beta_1$ but $\\sqrt{a + \\beta_2} \\neq \\pm \\beta_2$. Then $\\sqrt{a + \\beta_2} = \\pm \\beta_3$ and so $\\sqrt{a + \\beta_3} = \\pm \\beta_2$. Now $\\beta_1 = -1$ or $2$, as before. Also $\\beta_2 = \\beta_3^2 - 2$ and $\\beta_3 = \\beta_2^2 - 2$. So $\\beta_2, \\beta_3$ are roots of\n$$\n(x^2 - 2)^2 - x - 2 = (x^2 - x - 2)(x^2 + x - 1)\n$$\nand hence are the two roots $(-1 \\pm \\sqrt{5})/2$ of $x^2 + x - 1$. In this way we obtain two additional possible polynomials $f(x)$:\n$$\n(x + 1)(x^2 + x - 1), \\quad (x - 2)(x^2 + x - 1). \\quad (5)\n$$\nFinally we consider the case that $\\sqrt{a + \\beta_i} \\neq \\pm\\beta_i$, for $i = 1, 2, 3$. Then we may choose notation so that (with $i$ considered (mod 3)):\n$$\n\\sqrt{a + \\beta_{i+1}} = \\pm\\beta_i,\n$$\nwhence $\\beta_{i+1} = \\beta_i^2 - a$, for $i = 1, 2, 3$. Thus $f(x)$ has the three roots:\n$$\n\\beta_i, \\quad \\beta_i^2 - a, \\quad (\\beta_i^2 - a)^2 - a = \\beta_i^4 - 2a\\beta_i^2 + a^2 - a.\n$$\nNow $-b$ is the sum of the roots of $f$. So $\\beta_i$ is a root of the quartic\n$$\ng(x) := x^4 + (1 - 2a)x^2 + x + a^2 - 2a + b = 0.\n$$\nAs its roots are distinct, it follows that $f(x)$ divides $g(x)$. As $g(x)$ has zero $x^3$ term, its easy to see that the quotient $g/f$ must be $x - b$. Thus\n$$\n(x - b)(x^3 + bx^2 + cx + d) = x^4 + (1 - 2a)x^2 + x + a^2 - 2a + b.\n$$\nThus we get $c - b^2 = 1 - 2a$ and $d - bc = 1$, or\n$$\nc = b^2 - 2a + 1, \\quad \\text{and} \\quad d = bc + 1.\n$$\nCombining this with the first equality in (3), we deduce that $2(b^2 - 2a + 1) = b^2 + b - 3a$. So $b^2 - b + (2 - a) = 0$. As $a = 2$, we solve to get $b = 0$ or $1$. Thus we get two additional possible polynomials $f(x)$:\n$$\nx^3 - 3x + 1, \\quad x^3 + x^2 - 2x - 1. \\qquad (6)\n$$", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 33053, "subject": "Mathematics (Multi-modal)", "question": "Tangents at points $A$ and $B$ on a circle, centre $O$, meet at $P$. The point $A$ is joined to the mid-point $M$ of $PB$ meeting the circle again at $C$. The line through $C$ and the mid-point $D$ of $PO$ meets the circle again at $E$. Prove $AE \\parallel PO$.", "options": [], "answer": "Detailed solution", "solution": "Let $AM$ meet $PO$ at $F$ and let $PO$ extended meet the circle at $G$ and $H$ with $G$ between $P$ and $O$. Let $AB$ meet $PO$ at $Q$.\n\n![](attached_image_1.png)\n\nFirst note that $F$ is the centroid of $\\triangle ABP$ and so $|FQ| = \\frac{1}{3}|PQ|$. Using that $D$ is the mid-point of $PO$ and denoting the radius of the circle by $r$, we obtain\n$$ \n\\begin{aligned}\n|DF| &= |DQ| - |FQ| = |DO| - |QO| - |FQ| = \\frac{1}{2}|PO| - |QO| - \\frac{1}{3}|PQ| \\\\\n&= \\frac{1}{2}(|PQ| + |QO|) - |QO| - \\frac{1}{3}|PQ| = \\frac{1}{6}|PQ| - \\frac{1}{2}|QO|,\n\\end{aligned}\n$$\n$$ \n\\begin{aligned}\n|FG| &= |FQ| - |GQ| = \\frac{1}{3}|PQ| - |GQ| = \\frac{1}{3}|PQ| - r + |QO|, \\\\\n|FH| &= |FQ| + |QO| + r = \\frac{1}{3}|PQ| + |QO| + r.\n\\end{aligned}\n$$\nFrom this we obtain\n$$\n\\begin{aligned}\n|FG| \\cdot |FH| &= \\left(\\frac{1}{3}|PQ| + |QO| - r\\right) \\left(\\frac{1}{3}|PQ| + |QO| + r\\right) \\\\\n&= \\left(\\frac{1}{3}|PQ| + |QO|\\right)^2 - r^2 \\\\\n&= \\frac{1}{9}|PQ|^2 + \\frac{2}{3}|PQ| \\cdot |QO| + |QO|^2 - r^2 \\\\\n2|DF| \\cdot |FQ| &= \\frac{2}{3}|PQ| \\left(\\frac{1}{6}|PQ| - \\frac{1}{2}|QO|\\right) = \\frac{1}{9}|PQ|^2 - \\frac{1}{3}|PQ| \\cdot |QO|.\n\\end{aligned}\n$$\nUsing that $\\triangle APO$ is a right triangle, we get $|PQ| \\cdot |QO| = |AQ|^2$. Pythagoras gives $r^2 - |QO|^2 = |AQ|^2$, hence $r^2 - |QO|^2 = |PQ| \\cdot |QO|$. Therefore\n$$\n\\frac{2}{3}|PQ| \\cdot |QO| + |QO|^2 - r^2 = -\\frac{1}{3}|PQ| \\cdot |QO|\n$$\nand we arrive at\n$$\n|FG| \\cdot |FH| = 2|DF| \\cdot |FQ|.\n$$\nBecause $2|FQ| = |PF|$ and the power of $F$ with respect to the given circle is $|FG| \\cdot |FH| = |FC| \\cdot |FA|$, we can rewrite this as\n$$\n\\begin{aligned}\n\\frac{|FC| \\cdot |FA|}{|DF|} &= \\frac{|DF| \\cdot |PF|}{|FA|} \\quad \\text{ i.e. } \\\\\n\\frac{|FC|}{|DF|} &= \\frac{|PF|}{|FA|}.\n\\end{aligned}\n$$\nThis shows that the triangles $DFC$ and $AFP$ are similar and so $\\angle CDF = \\angle PAF$. As $PA$ is tangent to the circle at $A$ we also have $\\angle AEC = \\angle PAF$, hence $\\angle CDF = \\angle AEC$ which shows that $PO$ and $AE$ are parallel.\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33054, "subject": "Mathematics (Multi-modal)", "question": "There are 14 boys in a class. Each boy is asked how many other boys in the class have his first name, and how many have his last name. It turns out that each number from 0 to 6 occurs among the answers.\nProve that there are two boys in the class with the same first name and the same last name.", "options": [], "answer": "Detailed solution", "solution": "Consider groups of students with the same first name – these groups partition the 14 students. Also consider groups of students with the same last name – these groups also partition the 14 students. Each student belongs to two groups, and by assumption there are groups of size 1, 2, 3, 4, 5, 6 and 7; but these numbers add up to $1 + 2 + 3 + 4 + 5 + 6 + 7 = 28$, so there is one group of each size from 1 to 7 and no other groups.\nSuppose without loss of generality the group of 7 is a group of students with the same first name. There are at most 6 groups by last name, so by the Pigeonhole Principle, two students in the group of 7 must also have the same last name.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33055, "subject": "Mathematics (Multi-modal)", "question": "A direct common tangent touches two non-intersecting circles at $T$ and $T'$. The two transverse common tangents meet $TT'$ at $A$ and $B$. Prove\n$$\n|AT| = |BT'|\n$$", "options": [], "answer": "Detailed solution", "solution": "Let contact points of transverse tangents be $S$, $S'$, $V$, $V'$ and let $O$, $O'$ be the centres of the circles (see figure below). Let $SS'$ meet $VV'$ at $Q$, which will also lie on $OO'$. Complete the rectangle $OVV'H$ and let $\\alpha = \\angle BO'V'$ and $\\beta = V'O'Q$. Note that $\\angle T'O'B = \\alpha$ and $\\angle S'O'Q = \\beta$.\n![](attached_image_1.png)\nSince $\\angle BV'O'$ and $\\angle BT'O'$ are both right angles, the four points $B$, $T'$, $O'$, $V'$ are concyclic. This implies $\\angle ABQ = \\angle T'O'V' = 2\\alpha$. As $BO$ is the angle bisector of $\\angle TBV$ we get $\\angle TBO = \\angle VBO = \\alpha$. Because $BV$ and $OH$ are parallel, we also have $\\angle HOB = \\angle VBO = \\alpha$.\nSince $\\angle HO'B = \\alpha = \\angle HOB$, the quadrilateral $HBO'O$ is cyclic. Therefore, $\\angle HBO = \\angle HO'O = \\beta$ and so $\\angle HBV' = \\angle VBO + \\angle HBO = \\alpha + \\beta$.\nAs $AT'$ is a tangent to the circle with centre $O'$, we have $\\angle AT'S' = \\angle AS'T' = \\angle T'O'S'/2 = \\alpha + \\beta$. This implies $2\\angle TAO = \\angle TAS' = \\angle AT'S' + \\angle AS'T' = 2\\angle AT'S' = 2(\\alpha + \\beta)$, from which we obtain $\\angle TAO = \\alpha + \\beta = \\angle HBV'$.\nAlso $|TO| = |OV| = |HV'|$ and $\\angle OTA = \\angle HV'B = 90^\\circ$, hence the triangles $OAT$ and $HBV'$ are congruent. In particular $|AT| = |BV'| = |BT'|$.\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33056, "subject": "Mathematics (Multi-modal)", "question": "Find the least $k$ for which the number $2010$ can be expressed as the sum of the squares of $k$ integers.", "options": [], "answer": "3", "solution": "The number $2010$ is a multiple of $3$ but not of $9$. The sum of two squares can be a multiple of $3$ only if the two squares involved are both multiples of $3$ – which means they must be multiples of $9$ as well. So $2010$ is not the sum of two squares.\n\nOne can write $2010$ in various ways as the sum of three squares. For completeness, all possible such representations are listed below.\n$$\n\\begin{aligned}\n2010 &= 1^2 + 28^2 + 35^2 \\\\\n&= 4^2 + 25^2 + 37^2 \\\\\n&= 5^2 + 7^2 + 44^2 \\\\\n&= 5^2 + 31^2 + 32^2 \\\\\n&= 7^2 + 19^2 + 40^2 \\\\\n&= 11^2 + 17^2 + 40^2 \\\\\n&= 16^2 + 23^2 + 35^2 \\\\\n&= 19^2 + 25^2 + 32^2\n\\end{aligned}\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33057, "subject": "Mathematics (Multi-modal)", "question": "The maximum of two real numbers $a$ and $b$ is defined as follows:\n$$\n\\max\\{a, b\\} = \\begin{cases} a, & \\text{if } a \\ge b, \\\\ b, & \\text{otherwise.} \\end{cases}\n$$\nFor any two positive real numbers $x_0 > 0$, $x_1 > 0$ a sequence of real numbers $x_n$ is defined recursively as given below. Find $x_{2010}$.\n$$\nx_{n+1} = \\frac{4 \\max\\{x_n, 4\\}}{x_{n-1}} \\quad \\text{for } n \\ge 1.\n$$", "options": [], "answer": "x_0", "solution": "The recurrence is a version of what is sometimes called the *Lyness* max equation. All solutions are periodic with period 5 which can be established by computation. Hence $x_{2010} = x_0$.\nThe change of variable $x_n = 4y_n$ puts the recurrence in standard form\n$$\ny_{n+1} = \\frac{\\max\\{y_n, 1\\}}{y_{n-1}}\n$$\nafter which the periodicity can be established by considering the four cases indicated below:\n\n| | $y_0 \\le 1$, $y_1 \\le 1$ | $y_0 \\le 1$, $y_1 > 1$ | $y_0 > 1$, $y_1 \\le 1$ | $y_0 > 1$, $y_1 > 1$ |\n|------------|--------------------------|------------------------|------------------------|----------------------|\n| $y_2 =$ | $1/y_0$ | $y_1/y_0$ | $1/y_0$ | $y_1/y_0$ |\n| $y_3 =$ | $1/(y_0 y_1)$ | $1/y_0$ | $1/y_1$ | $\\max\\{1/y_0, 1/y_1\\}$ |\n| $y_4 =$ | $1/y_1$ | $1/y_1$ | $y_0/y_1$ | $y_0/y_1$ |\n| $y_5 =$ | $y_0$ | $y_0$ | $y_0$ | $y_0$ |\n| $y_6 =$ | $y_1$ | $y_1$ | $y_1$ | $y_1$ |", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33058, "subject": "Mathematics (Multi-modal)", "question": "Let $n$ be an integer not less than $3$ and let $a_1, a_2, \\dots, a_n$ be a finite sequence of positive integers, such that, for $k = 2, 3, \\dots, n$\n$$\nn(a_k + 1) - (n-1)a_{k-1} = 1.\n$$\nProve that $a_n$ is not divisible by $(n-1)^2$.", "options": [], "answer": "Detailed solution", "solution": "The given recursion can be rewritten as $a_{k-1} = \\frac{n}{n-1}a_k + 1$ for $2 \\le k \\le n$. Let us write, for simplicity, $q = \\frac{n}{n-1}$, so that we have $a_{k-1} = q a_k + 1$. We obtain\n$$\na_{n-1} = q a_n + 1\n$$\n$$\na_{n-2} = q a_{n-1} + 1 = q^2 a_n + q + 1\n$$\nand rewrite this, using $q = \\frac{n}{n-1}$ and multiplying by $(n-1)^2$, in the form\n$$\n(n-1)^2 a_{n-2} = n^2 a_n + n(n-1) + (n-1)^2\n$$\nIf $a_n$ was divisible by $(n-1)^2$ this equation implies that $n$ would be divisible by $n-1$, but this is not the case if $n \\ge 3$.\n\n**Remark:** Proceeding as above, one finds that\n$$\na_1 = q^{n-1}a_n + q^{n-2} + q^{n-3} + \\dots + 1 = q^{n-1}a_n + \\frac{q^{n-1}-1}{q-1}\n$$\nWe now use $q = \\frac{n}{n-1}$, from which we get $\\frac{1}{q-1} = n-1$ and\n$$\na_1 = q^{n-1}a_n + (n-1)(q^{n-1}-1) = \\frac{n^{n-1}a_n + (n-1)n^{n-1}}{(n-1)^{n-1}} - (n-1)\n$$\nBecause $a_1$ is an integer, this implies that $n^{n-1}a_n + (n-1)n^{n-1}$ has to be divisible by $(n-1)^{n-1}$. Because $\\gcd(n-1, n) = 1$, this is equivalent to $a_n + (n-1)$ being divisible by $(n-1)^{n-1}$. Hence, there exists an integer $K$, such that $a_n = -(n-1) + K(n-1)^{n-1} = (n-1)(K(n-1)^{n-2} - 1)$.\nBy induction, we can now prove that $a_{k+1} = K(n-1)^{k(n-1)-k} - (n-1)$.\nThis shows that $a_2, a_3, \\dots, a_n$ are divisible by $(n-1)$, but $a_3, \\dots, a_n$ are not divisible by $(n-1)^2$ and $a_2$ is divisible by $(n-1)^2$ $\\pmod{K \\equiv 1 \\pmod{n-1}}$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33059, "subject": "Mathematics (Multi-modal)", "question": "Let $ABC$ be a triangle. The circle of centre $A$ and tangent to the side $BC$ intersects the circle of centre $C$ and tangent to $AB$ at two points $M$ and $N$. Show that $M$, $N$ and $B$ are collinear if and only if $|AB| = |BC|$.", "options": [], "answer": "Detailed solution", "solution": "Let $AD$, $BE$ and $CF$ be the altitudes of the triangle $ABC$ so that points $D$, $E$ and $F$ are on the sides $BC$, $CA$ and $AB$ respectively. Since the triangles $AMC$ and $ANC$ are congruent, $MN$ is perpendicular to $AC$.\n\nFirst, suppose that $B$, $M$ and $N$ are collinear. Then $E$ is the intersection point of $MN$ with $AC$ and the points $M$ and $N$ are on the line $BE$. Thus, by Pythagoras' theorem in the triangles $AEB$, $BEC$, $AEN$ and $NEC$, the following relations hold\n$$\n|AB|^2 - |BC|^2 = |AE|^2 - |EC|^2 = |AN|^2 - |NC|^2\n$$\n\nBecause $|AD| = |AN|$ and $|CF| = |NC|$, we obtain from above\n$$\n|AD|^2 - |CF|^2 = |AN|^2 - |NC|^2 = |AB|^2 - |BC|^2\n$$\nUsing Pythagoras' theorem in the triangles $ABD$ and $CBF$ this gives\n$$\n|BD|^2 = |AB|^2 - |AD|^2 = |BC|^2 - |CF|^2 = |BF|^2\n$$\nTherefore, the right angled triangles $ABD$ and $CBF$ share the angle at $B$ and have equal sides $|BD| = |BF|$, hence are congruent to each other. This shows that $|AB| = |CB|$.\n\nIf, conversely, $|AB| = |CB|$, the circles with centres $A$ and $C$ which touch the opposite sides will have equal radii. Thus, $MN$ is the perpendicular bisector of $AC$ which passes through $B$.\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33060, "subject": "Mathematics (Multi-modal)", "question": "Determine the least positive integer $k$ such that $2010$ can be written as a sum of $k$ palindromic primes.\n[A palindromic number is a positive integer—like $16361$—whose decimal representation remains the same when its digits are reversed.]", "options": [], "answer": "4", "solution": "Since $2010$ is neither a prime nor a palindromic number, $k > 1$. Suppose $k = 2$. Then there are two palindromic primes $a, b$ such that $2010 = a + b$. Since $1005$ isn't prime, $a \\neq b$. Say $a < b$. Then $2 \\le a < 1005 < b \\le 2009$. But palindromic numbers $b > 2$ ending in $2$ are even, and so can't be prime. Hence, $b \\le 1991$. Also, every number of the form $1ax1$, where $x \\in \\{0, 1, \\dots, 9\\}$, is divisible by $11$. Hence, there are no palindromic primes of this form, and so $b < 999$. This means that $2010 = a + b < 2b < 2000$, which is absurd. Hence, $k \\ge 3$.\n\nIf $k = 3$, then there are three palindromic primes $a, b, c$ such that $2010 = a + b + c$. If one of $a, b, c$ is even, say $a = 2$, then $2008 = b + c$ and the argument just given shows that this can't happen. But the sum of three odd numbers is always odd, hence never equal to $2010$. Thus, $k \\ge 4$.\n\nIn fact, $k = 4$, since\n$$\n2010 = 11 + 929 + 919 + 151 = 11 + 929 + 757 + 313 = 11 + 919 + 727 + 353\n$$\n[It can be checked that $2, 3, 5, 7, 11, 101, 131, 151, 181, 191, 313, 353, 373, 383, 727, 757, 787, 797, 919, 929$, constitute the complete list of palindromic primes less than $2010$.]", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33061, "subject": "Mathematics (Multi-modal)", "question": "Let $ABC$ be a triangle of area $1$ (square units), and let $P$ denote the midpoint of the side $BC$. Consider two points $M$ and $N$ interior to the sides $AB$ and $AC$ respectively, such that $|AM| = 2|MB|$ and $|CN| = 2|AN|$. The lines $AP$ and $MN$ intersect at a point $D$. Find the area of the triangle $ADN$.", "options": [], "answer": "2/27", "solution": "*First solution.* Let $Q$ be the point inside $AC$ such that $MQ$ is parallel to $BC$. Then, because $\\triangle ABC$ and $\\triangle AMQ$ are homothetic, $|AN| = |NQ| = |QC|$ and, if $(ABC)$ denotes the area of the triangle $ABC$ etc., we also have\n$$\n\\frac{(AMQ)}{(ABC)} = \\frac{|AM|^2}{|AB|^2} = \\frac{4}{9}\n$$\n![](attached_image_1.png)\nOn the other hand, the line $AP$ intersects $MQ$ at the midpoint $E$ of $MQ$, again due to the homothety with centre $A$ which takes $\\triangle AMQ$ to $\\triangle ABC$. Thus $D$ is the centroid of $\\triangle AMQ$ and so\n$$\n\\frac{(ADN)}{(AMN)} = \\frac{|DN|}{|MN|} = \\frac{1}{3}, \\quad \\text{while} \\quad \\frac{(AMN)}{(AMQ)} = \\frac{|AN|}{|AQ|} = \\frac{1}{2}\n$$\nMultiplication of these three identities yields\n$$\n\\frac{(ADN)}{(ABC)} = \\frac{2}{27}.\n$$\n\n![](attached_image_1.png)\n\n\nSecond solution. We note that\n$$\n\\frac{(AMD)}{(ABD)} = \\frac{|AM|}{|AB|} = \\frac{2}{3}, \\quad \\text{while} \\quad \\frac{(ADN)}{(ADC)} = \\frac{|AN|}{|AC|} = \\frac{1}{3}.\n$$\nOn the other hand, $(ABP) = (APC)$ and $(DBP) = (DPC)$, because $|BP| = |PC|$ and the corresponding triangles have identical altitudes. Taking differences, this implies $(ABD) = (ADC)$ and we obtain $(AMD) = 2(ADN)$. From\n$$\n(AMD) + (ADN) = (AMN) = \\frac{|AM| \\cdot |AN|}{|AB| \\cdot |AC|} (ABC) = \\frac{2}{9},\n$$\n$$\n\\text{we now obtain } 2(ADN) + (ADN) = \\frac{2}{9}, \\text{ hence } (ADN) = \\frac{2}{27}.\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33062, "subject": "Mathematics (Multi-modal)", "question": "A Dutch hillwalking club with $4n$ members arranges a series of walks over a number of weekends, according to the following rules.\n(a) Two walks take place each weekend – one takes place on Saturday, and the other on Sunday.\n(b) Exactly $2n$ members of the club participate in each walk.\n(c) On any weekend, no club member participates in both walks.\n(d) After all walks are concluded, every pair of club members has participated together in the same number of walks.\nProve that after all walks are concluded, every set of three club members has participated together in the same number $t$ of walks, and that this number $t$ is divisible by $n-1$.", "options": [], "answer": "Detailed solution", "solution": "Suppose that each pair of club members participates together in $r$ walks. The total number $m$ of walks organised by the club is then given by\n$$\nm\\binom{2n}{2} = r\\binom{4n}{2},\n$$\nsince the right-hand side counts the total number of walks by considering all pairs of club members and using rule (d), but counts each walk $\\binom{2n}{2}$ times. Simplifying, we obtain $2r(4n-1) = m(2n-1)$. Since $2n-1$ is relatively prime to $2$ and $4n-1$, we must have $2n-1 \\mid r$, i.e. $r = (2n-1)p$, and so $m = 2(4n-1)p$ (for some positive integer $p$). From rules (b) and (c), each club member takes part in exactly $m/2 = (4n-1)p$ walks.\n\nNext, let $S_i$ denote the set of walks in which club member $i$ participates, let $S_{i,j}$ denote the set of walks in which club members $i$ and $j$ participate, and let $S_{i,j,k}$ denote the set of walks in which club members $i$, $j$ and $k$ participate. Then we have $|S_i| = (4n-1)p$ for all $i$, and $|S_{i,j}| = r = (2n-1)p$ for all $i, j$. Rules (b) and (c) tell us that for any set of three distinct club members $\\{i, j, k\\}$, the number of walks featuring $i$ but not $j$ or $k$ is equal to the number of walks featuring $j$ and $k$ but not $i$. We may write this as\n$$\n|S_i| - |S_{i,j}| - |S_{i,k}| + |S_{i,j,k}| = |S_{j,k}| - |S_{i,j,k}|\n$$\nor (rearranging)\n$$\n\\begin{aligned}\n2|S_{i,j,k}| &= |S_{i,j}| + |S_{i,k}| + |S_{j,k}| - |S_i| \\\\\n&= 3(2n-1)p - (4n-1)p \\\\\n&= 2(n-1)p\n\\end{aligned}\n$$\nor $|S_{i,j,k}| = (n-1)p$. As this formula holds for any set of three distinct club members $\\{i, j, k\\}$, the result follows.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33063, "subject": "Mathematics (Multi-modal)", "question": "Suppose $abc \\neq 0$. Express in terms of $a$, $b$, and $c$, the solutions $x$, $y$, $z$, $u$, $v$, $w$ of the equations\n$$\nx + y = a, \\quad z + u = b, \\quad v + w = c, \\quad ay = bz, \\quad bu = cv, \\quad cw = ax.\n$$", "options": [], "answer": "Let α = (b^2 + c^2 − a^2) / (2bc), β = (c^2 + a^2 − b^2) / (2ca), γ = (a^2 + b^2 − c^2) / (2ab). Then x = cβ, y = bγ, z = aγ, u = cα, v = bα, w = aβ.", "solution": "Label the equations 1, 2, 3, 4, 5, 6 in the order of their appearance. Using equations 3, 6 eliminate $w$ from the system, thereby adding to equations 1, 2, 4, 5 the equation 7: $ax + cv = c^2$. Next, use this and 5 to eliminate $v$ to produce equation 8: $ax + bu = c^2$. Eliminate $z$ from 2, 4 to produce equation 9: $ay + bu = b^2$. Now eliminate $u$ from equations 8, 9 giving $ax - ay = c^2 - b^2$. Finally, using this in conjunction with 1, we see that\n$$\n2ax = c^2 + a^2 - b^2, \\quad 2ay = a^2 + b^2 - c^2.\n$$\n\nAnd so, using 6 and 4, too,\n$$\n2cw = c^2 + a^2 - b^2, \\quad 2bz = a^2 + b^2 - c^2.\n$$\nHence, using equations 2, 5, we get that\n$$\n2cv = 2bu = 2b^2 - 2bz = b^2 + c^2 - a^2.\n$$\nThus, letting\n$$\n\\alpha = \\frac{b^2 + c^2 - a^2}{2bc}, \\quad \\beta = \\frac{c^2 + a^2 - b^2}{2ca}, \\quad \\gamma = \\frac{a^2 + b^2 - c^2}{2ab},\n$$\nwe see that\n$$\nx = c\\beta, \\quad y = b\\gamma, \\quad z = a\\gamma, \\quad u = c\\alpha, \\quad v = b\\alpha, \\quad w = a\\beta.\n$$", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 33064, "subject": "Mathematics (Multi-modal)", "question": "2011 is prime and the sum of its digits equals its number of digits. Find all smaller primes with this property; a leading zero is not allowed.", "options": [], "answer": "11, 1021, 1201", "solution": "*Case 1:* All digits equal to $1$. One solution is $11$. We rule out $1$, $111$ as it is divisible by $3$, and $1111$ which is divisible by $11$.\n\nIn all other cases there is at least one zero. Zeros are not allowed in the leading position, or in the final position (multiples of $10$ are non-prime). Thus there are non-zero digits in the (separate) first and last positions and the one in the last position must be odd.\n\nThere must be at least one digit $1$: otherwise the non-zero digits are at least $2$ and $3$, giving a five-digit number which is too large. In particular, there are at least three digits, in fact exactly four digits since if the digit sum is $3$, the number is divisible by $3$ and can be ruled out. The remaining cases are as follows.\n\n*Case 2:* Four digits, namely $2$, $1$, $1$, $0$. The number must end in $1$ and start with $1$ or $2$. The possibilities are $1021$, $1201$, $2011$, and $2101$. The latter pair are ruled out because they are too large, but the former pair are both prime, as can be verified by testing against all primes less than $35$ (since, by the hint, $35 > \\sqrt{1201}$).\n\n*Case 3:* Four digits, namely $3$, $1$, $0$, $0$. The only possibilities are $1003$ and $3001$. Both are ruled out: the former is divisible by $17$, the latter is too big. In summary, we have exactly three solutions: $11$, $1021$, $1201$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33065, "subject": "Mathematics (Multi-modal)", "question": "Prove that\n$$\n\\frac{2}{3} + \\frac{4}{5} + \\frac{6}{7} + \\dots + \\frac{2010}{2011}\n$$\nis not an integer.", "options": [], "answer": "Detailed solution", "solution": "Let $S$ be the sum. Then\n$$\n1005 - S = \\frac{1}{3} + \\frac{1}{5} + \\frac{1}{7} + \\frac{1}{9} + \\dots + \\frac{1}{2011} = T.\n$$\nThen $S$ is an integer if and only if $T$ is an integer. Let $M = 3 \\cdot 5 \\cdot 7 \\cdot 9 \\dots 2009$. If $T$ is an integer then $MT$ is an integer.\n$$\nMT = \\frac{M}{3} + \\frac{M}{5} + \\frac{M}{7} + \\frac{M}{9} + \\dots + \\frac{M}{2009} + \\frac{M}{2011}.\n$$\nEach term is an integer except the last one which is not since $2011$ is prime. Hence $T$ is not an integer.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33066, "subject": "Mathematics (Multi-modal)", "question": "In a tournament with $N$ players, $N < 10$, each player plays once against each other player scoring 1 point for a win and 0 points for a loss. Draws do not occur. In a particular tournament only one player ended with an odd number of points and was ranked fourth. Determine whether or not this is possible. If so, how many wins did the player have?", "options": [], "answer": "Yes; with seven players, the fourth-place player has 3 wins.", "solution": "If only one player has an odd score, the total number of points won must be odd. This leaves two possibilities, $N = 6$ and $N = 7$.\n\nConsider first the case $N = 6$. The player with an odd score must have won 1, 3 or 5 games. If 5, the player would have come first. If 1, the player would have come 5th or 6th. Thus the odd score was 3. The three players ranked higher must have won 4 matches leaving 0 for the remaining two players which is impossible.\n\nHence $N = 7$ is the only possibility. The score of the player with the odd score must be 1, 3 or 5. 1 is impossible as the players ranked 5, 6, 7 must all have scored 0 in this case. Similarly, 5 is impossible for a player ranked fourth as the players ranked 1, 2, 3 must all have scored 6 in this case. It remains to show that 3 is a possibility. The players ranked 5, 6, 7 must have scored either 2, 2, 2 points or 2, 2, 0. In the first case, the first 3 players all score 4 points. In the second case, the first three score 6, 4, 4. Thus two possibilities occur: scores of 6, 4, 4, 3, 2, 2, 0 or 4, 4, 4, 3, 2, 2, 2. Both of these outcomes can be realised as shown below; hence the answer to the problem is 3.\n\n| | 1 | 2 | 3 | 4 | 5 | 6 | 7 | tot |\n|---|---|---|---|---|---|---|---|-----|\n| 1 | × | 1 | 1 | 1 | 1 | 1 | 1 | 6 |\n| 2 | 0 | × | 1 | 1 | 1 | 0 | 1 | 4 |\n| 3 | 0 | 0 | × | 1 | 1 | 1 | 1 | 4 |\n| 4 | 0 | 0 | 0 | × | 1 | 1 | 1 | 3 |\n| 5 | 0 | 0 | 0 | 0 | × | 1 | 1 | 2 |\n| 6 | 0 | 1 | 0 | 0 | 0 | × | 1 | 2 |\n| 7 | 0 | 0 | 0 | 0 | 0 | 0 | × | 0 |\n\n| | 1 | 2 | 3 | 4 | 5 | 6 | 7 | tot |\n|---|---|---|---|---|---|---|---|-----|\n| 1 | × | 1 | 0 | 1 | 1 | 0 | 1 | 4 |\n| 2 | 0 | × | 1 | 1 | 1 | 1 | 0 | 4 |\n| 3 | 1 | 0 | × | 1 | 1 | 0 | 1 | 4 |\n| 4 | 0 | 0 | 0 | × | 1 | 1 | 1 | 3 |\n| 5 | 0 | 0 | 0 | 0 | × | 1 | 1 | 2 |\n| 6 | 1 | 0 | 1 | 0 | 0 | × | 0 | 2 |\n| 7 | 0 | 1 | 0 | 0 | 0 | 1 | × | 2 |", "topic": "Algebra", "subtopic": "Abstract Algebra" }, { "id": 33067, "subject": "Mathematics (Multi-modal)", "question": "Prove that the point of intersection of the line $L = \\{(x, y) \\mid y = mx\\}$ and the line joining the reflection of $(1, 1)$ in $L$ with the point $(-1, 1)$ lies on the circle of unit radius centred at $(0, 1)$.", "options": [], "answer": "Detailed solution", "solution": "First of all, the reflection $(x', y')$ of $(x_0, y_0)$ in $L$ is given by\n$$\nx' = \\frac{(1 - m^2)x_0 + 2my_0}{1 + m^2}, \\quad y' = \\frac{2mx_0 + (m^2 - 1)y_0}{1 + m^2}.\n$$\nThis is so because\n$$\nx' + x_0 = \\frac{2(x_0 + my_0)}{1 + m^2}, \\quad y' + y_0 = \\frac{2m(x_0 + my_0)}{1 + m^2}.\n$$\nThus the reflection of $(1, 1)$ in $L$ has coordinates\n$$\nx' = \\frac{1 + 2m - m^2}{1 + m^2}, \\quad y' = \\frac{m^2 + 2m - 1}{1 + m^2}.\n$$\nNext, if $m+1 \\neq 0$, the slope of the line joining $(x', y')$ to $(-1, 1)$ is given by\n$$\n\\mu = \\frac{y' - 1}{x' + 1} = \\frac{m^2 + 2m - 1 - (1 + m^2)}{1 + 2m - m^2 + 1} = \\frac{m - 1}{m + 1}.\n$$\nHence, the line joining $(-1, 1)$ and $(x', y')$ has equation\n$$\n(m+1)(y-1) = (m-1)(x+1).\n$$\nThis line meets $L$ at the point $P$ with coordinates\n$$\nx = \\frac{2m}{m^2+1}, \\quad y = \\frac{2m^2}{m^2+1}.\n$$\nSince\n$$\nx^2 + (y - 1)^2 = \\frac{4m^2}{(m^2 + 1)^2} + \\left(\\frac{m^2 - 1}{m^2 + 1}\\right)^2 = \\frac{4m^2 + m^4 - 2m^2 + 1}{(m^2 + 1)^2} = 1,\n$$\nthe point $P$ traverses an arc of the circle of unit radius centred at $(0, 1)$.\n\n\n**Second Solution:**\nTo solve this problem using synthetic geometry, we denote the unit circle centred at $(0, 1)$ by $C$ and let $A = (0, 0)$, $B = (1, 1)$ and $C = (-1, 1)$. The line $L$ intersects $C$ at $A$ and a second point $P$. Let $B'$ be the intersection point of the line $PC$ with the line which is perpendicular to $L$ and passes through $B$. Let $M$ be the intersection point of $PA$ and $BB'$.\n\nThe statement we have to show is then equivalent to $|BM| = |MB'|$. We obtain this as follows. Because the two arcs $CA$ and $AB$ are equal (both are quarter circles or $\\pi/2$), we have $\\angle CPA = \\angle APB$ if $P$ is on the arc $BC$ not containing $A$ and we have $\\angle CPA = 180^\\circ - \\angle BPA = \\angle MPB$ if $P$ is on the arc $AB$ not containing $C$. The case where $P$ is on the arc $AC$ not containing $B$ is similar and if $P$ coincides with $A$, $B$ or $C$ the statement is obvious. Because $\\angle PMB' = \\angle BMP$ (both are right angles), the two triangles $BPM$ and $PB'M$ share the common side $PM$ and have equal adjacent angles, hence are congruent. This shows $|BM| = |MB'|$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33068, "subject": "Mathematics (Multi-modal)", "question": "Each of $117$ spies, operating in a certain country, is to assign himself to one of three missions, such that every mission has at least one spy assigned. At this point, no two spies can communicate. Headquarters will then sequentially issue a number of passwords, each of which allows a single pair of spies to communicate. Passwords may only be issued to a pair of spies who share the same mission and who cannot already communicate directly. However, apart from these rules, headquarters may assign passwords in any fashion.\n\nA mission is said to be networked if any two spies on that mission can communicate (possibly through other spies). Let $n$ denote the number of passwords issued for which, regardless of how headquarters assigns these passwords, the spies can be certain that at least one mission will be networked. How should the spies choose their missions in order to minimize $n$?", "options": [], "answer": "Assign the spies evenly among the three missions: 39, 39, 39. The minimal guaranteed number of passwords is 2110.", "solution": "We represent the given information by a graph the vertices of which correspond to the $117$ spies. Two vertices are connected iff the corresponding spies share a password which allows them to communicate directly. We need to ensure that at least one of the sub-graphs formed by spies sharing the same mission is connected.\n\nTo find the number of edges needed to ensure that a graph with $a \\ge 2$ vertices is connected, no matter how the edges are placed, we first observe that the complete graph with $a-1$ vertices has $\\frac{(a-1)(a-2)}{2}$ edges. We next prove that it is sufficient to have\n$$\n\\frac{(a-1)(a-2)}{2} + 1 = \\frac{a^2 - 3a + 4}{2}\n$$\nedges. To see this, assume that the graph is not connected. Then there exist two sub-graphs, not connected to each other, one with $x \\ge 1$ and the other with $a-x \\ge 1$ vertices. The number of edges in such a graph is at most\n$$\n\\begin{aligned}\n\\frac{(a-x)(a-x-1)}{2} + \\frac{x(x-1)}{2} &= \\frac{2x^2 - 2ax + a^2 - a}{2} = \\\\\n&= \\frac{a^2 - 3a + 2}{2} - (a-x-1)(x-1) \\le \\frac{a^2 - 3a + 2}{2} = \\frac{(a-1)(a-2)}{2}\n\\end{aligned}\n$$\n\nIf the sizes of the three missions are $a$, $b$ and $c$, the above shows that issuing\n$$\nn = \\frac{a^2 - 3a + 2}{2} + \\frac{b^2 - 3b + 2}{2} + \\frac{c^2 - 3c + 2}{2} + 1\n$$\npasswords, ensures that at least one mission is networked. Finally, we need to minimise $2n = a^2 + b^2 + c^2 - 3(a+b+c) + 8$ subject to the condition $a+b+c = 117$. Because\n$$\n\\begin{aligned}\n3(a^2 + b^2 + c^2) - (a+b+c)^2 &= 2(a^2 + b^2 + c^2 - ab - bc - ca) = \\\\\n&= (a-b)^2 + (b-c)^2 + (c-a)^2 \\ge 0,\n\\end{aligned}\n$$\nwe obtain\n$$\n2n \\ge \\frac{(a+b+c)^2}{3} - 3(a+b+c) + 8 = \\frac{117^2}{3} - 3 \\cdot 117 + 8 = 4220,\n$$\nwith equality iff $a=b=c=39$. This shows that the minimum number of passwords needed to ensure that at least one mission is networked is $n=2110$. This number is sufficient iff the three missions are of equal size.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33069, "subject": "Mathematics (Multi-modal)", "question": "Suppose the function $f$ is defined and real valued on the real numbers, and its graph is symmetric about the lines $x = 1/4$ and $x = 3/4$. Prove that $f(x) = f(x+1)$ for all real numbers $x$. Exhibit a non-constant, nonnegative function with the given properties.", "options": [], "answer": "f(x) = sin^2(2πx)", "solution": "To say that the graph of $f$ is symmetric about the line $x = a$ is to mean that $f(x_1) = f(x_2)$ whenever $x_1, x_2$ are real numbers whose sum is $2a$. Hence, by hypothesis,\n$$\nf\\left(\\frac{1}{4} - x\\right) = f\\left(\\frac{1}{4} + x\\right) \\quad \\text{and} \\quad f\\left(\\frac{3}{4} - x\\right) = f\\left(\\frac{3}{4} + x\\right) \\quad \\text{for all } x \\in \\mathbb{R}.\n$$\nLetting $y = \\frac{1}{4} - x$, we deduce from the first condition that $f(y) = f(\\frac{1}{2} - y)$ for all $y \\in \\mathbb{R}$. Letting $y = \\frac{3}{4} - x$ in the second relation, we see that $f(y) = f(\\frac{3}{2} - y)$ for all $y \\in \\mathbb{R}$. Therefore,\n$$\nf\\left(\\frac{1}{2} - y\\right) = f\\left(\\frac{3}{2} - y\\right) \\quad \\text{for all } y \\in \\mathbb{R}.\n$$\nHence, letting $x = \\frac{1}{2} - y$ we see that $f(x) = f(1 + x)$ for all $x \\in \\mathbb{R}$, as desired.\n\nConsider the function\n$$\nf(x) = \\sin^2(2\\pi x).\n$$\nThen, for all $x \\in \\mathbb{R}$,\n$$\n\\begin{aligned}\nf\\left(\\frac{1}{4} - x\\right) &= \\sin^2\\left(2\\pi\\left(\\frac{1}{4} - x\\right)\\right) \\\\\n&= \\left(\\sin\\left(\\frac{\\pi}{2}\\right) \\cos(2\\pi x) - \\cos\\left(\\frac{\\pi}{2}\\right) \\sin(2\\pi x)\\right)^2 \\\\\n&= \\cos^2(2\\pi x) = f\\left(\\frac{1}{4} + x\\right).\n\\end{aligned}\n$$\n\n$$\n\\begin{aligned}\nf\\left(\\frac{3}{4}-x\\right) &= \\sin^2\\left(2\\pi\\left(\\frac{3}{4}-x\\right)\\right) \\\\\n&= \\left(\\sin\\left(\\frac{3\\pi}{2}\\right) \\cos(2\\pi x) - \\cos\\left(\\frac{3\\pi}{2}\\right) \\sin(2\\pi x)\\right)^2 \\\\\n&= \\cos^2(2\\pi x) = f\\left(\\frac{3}{4}+x\\right).\n\\end{aligned}\n$$\nSince it's nonnegative and not a constant function, this $f$ does the job.", "topic": "Discrete Mathematics", "subtopic": "Other" }, { "id": 33070, "subject": "Mathematics (Multi-modal)", "question": "$ABCD$ is a trapezium, in which a circle can be inscribed, with $AB$ parallel to $DC$ and $AD$ equal to but not parallel to $BC$. The inscribed circle touches $AB$, $BC$, $CD$ and $DA$ at $X$, $Y$, $Z$ and $W$ respectively. $XZ$ and $WY$ intersect at $P$. Prove that the diagonals of $ABCD$ pass through $P$.", "options": [], "answer": "Detailed solution", "solution": "Let $E$ be the intersection point of the lines $AD$ and $BC$. As $|AD| = |BC|$, the triangle $ABE$ is isosceles with axis of symmetry the line through $X$ and $E$. In particular, $A$, $P$, $C$ are collinear iff $B$, $P$, $D$ are collinear.\n\n![](attached_image_1.png)\n\nAccording to the converse of Menelaus' Theorem for the triangle $EWY$, the three points $B$, $P$, $D$ are collinear iff\n$$\n\\frac{|ED|}{|DW|} \\cdot \\frac{|WP|}{|PY|} \\cdot \\frac{|BY|}{|BE|} = 1.\n$$\n\n$$\n\\frac{|CE|}{|CZ|} = \\frac{|BE|}{|BX|}.\n$$\n\nBut this equation is true as the triangles $BEX$ and $CEZ$ are similar.\nNote that $|AD| = |BC|$ implies that the line through $Z$ and $X$ is an axis of symmetry for the trapezium $ABCD$. In particular, $A$, $P$, $C$ are collinear iff $B$, $P$, $D$ are collinear.\n\n![](attached_image_2.png)\n\nBecause the three lines $AB$, $WY$ and $DC$ are parallel, it follows that\n$$\n\\frac{|ZP|}{|PX|} = \\frac{|CY|}{|YB|}.\n$$\n\nAs $|CY| = |CZ| = |DZ|$ and $|YB| = |BX|$, we obtain\n$$\n\\tan(\\angle PBX) = \\frac{|PX|}{|BX|} = \\frac{|ZP|}{|DZ|} = \\tan(\\angle PDZ) = \\tan(\\angle DPW)\n$$\nhence $\\angle PBX = \\angle DPW$, i.e. $B$, $P$, $D$ are collinear.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33071, "subject": "Mathematics (Multi-modal)", "question": "Find all integers $n$ for which $n^5 + n^4 + n^3 + n^2 + n + 1$ is divisible by 199.", "options": [], "answer": "n ≡ 92, 93, 106, 107, 198 (mod 199)", "solution": "Note that $(n-1)(n^5 + n^4 + n^3 + n^2 + n + 1) = n^6 - 1 = (n^3 - 1)(n^3 + 1) = (n-1)(n+1)(n^2 - n + 1)(n^2 + n + 1)$, and so\n$$\nn^5 + n^4 + n^3 + n^2 + n + 1 = (n+1)(n^2 - n + 1)(n^2 + n + 1).\n$$\nBecause 199 is a prime number, this expression is divisible by 199 iff one of the factors $n+1$, $n^2-n+1$ or $n^2+n+1$ is divisible by 199. Divisibility of $n+1$ by 199 is equivalent to $n \\equiv 198 \\pmod{199}$.\nTo solve the quadratic congruence $n^2 - n + 1 \\equiv 0 \\pmod{199}$, we observe $n^2 - n + 1 \\equiv n^2 - 200n + 1 \\equiv (n - 100)^2 - 100^2 + 1 \\pmod{199}$. Because $100^2 - 1 = 200 \\cdot 50 - 1 = 199 \\cdot 50 + 49 \\equiv 49 \\pmod{199}$, the congruence $n^2 - n + 1 \\equiv 0 \\pmod{199}$ is equivalent to $(n - 100)^2 \\equiv 49 \\pmod{199}$. Again, because 199 is a prime, this has exactly two solutions (mod 199) which are determined by $n - 100 \\equiv \\pm 7 \\pmod{199}$. These two solutions are $n \\equiv 107 \\pmod{199}$ and $n \\equiv 93 \\pmod{199}$.\nNote now that that $(n-1)^2+(n-1)+1 = n^2-n+1$, hence $n \\equiv 106 \\pmod{199}$ and $n \\equiv 92 \\pmod{199}$ are the solutions of $n^2+n+1 \\equiv 0 \\pmod{199}$.\nThis shows that $n^5+n^4+n^3+n^2+n+1$ is divisible by 199 iff $n$ is congruent to 92, 93, 106, 107 or 198 (mod 199).", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33072, "subject": "Mathematics (Multi-modal)", "question": "Prove that the product of six consecutive positive integers cannot be a perfect cube.", "options": [], "answer": "Detailed solution", "solution": "Because $6! = 720$ is not a perfect cube, we only need to consider products $t = n(n+1)(n+2)(n+3)(n+4)(n+5)$ with $n \\ge 2$. Let $a = n(n+5)$, $b = (n+1)(n+4) = a+4$ and $c = (n+2)(n+3) = a+6$, then\n$$\nt = a(a + 4)(a + 6) = a^3 + 10a^2 + 24a.\n$$\nBecause $a \\ge 14$, we have $(a+3)^3 = a^3 + 9a^2 + 27a + 27 = t - a^2 + 3a + 27 = t - (a-9)(a+3) - 3a < t < a^3 + 12a^2 + 48a + 64 = (a+4)^3$, hence $t$ cannot be a perfect cube.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33073, "subject": "Mathematics (Multi-modal)", "question": "$ABCD$ is a rectangle. $E$ is a point on $AB$ between $A$ and $B$, and $F$ is a point on $AD$ between $A$ and $D$. The area of the triangle $EBC$ is $16$, the area of the triangle $EAF$ is $12$ and the area of the triangle $FDC$ is $30$. Find the area of the triangle $EFC$.", "options": [], "answer": "38", "solution": "First Solution: Let $|EB| = x$ and $|AE| = y$, then $|DC| = x + y$,\n$$\n|BC| = \\frac{32}{x}, \\quad |AF| = \\frac{24}{y}, \\quad \\text{and so } |FD| = \\frac{32}{x} - \\frac{24}{y}.\n$$\n![](attached_image_1.png)\n\n$$\n30 = \\frac{1}{2} \\left( \\frac{32}{x} - \\frac{24}{y} \\right) (x + y) = 4 + 16 \\frac{y}{x} - 12 \\frac{x}{y}.\n$$\nMultiply across by $\\frac{y}{x}$ and rearrange to get the equation\n$$\n16 \\left(\\frac{y}{x}\\right)^2 - 26 \\left(\\frac{y}{x}\\right) - 12 = 0\n$$\nwhich has only one positive solution $\\frac{y}{x} = 2$. If $T$ denotes the area of triangle $EFC$, the area of $ABCD$ is\n$$\n16 + 12 + 30 + T = \\frac{32}{x}(x+y) = 32\\left(1+\\frac{y}{x}\\right) = 96\n$$\nand so $T = 96 - 58 = 38$.\n\n\nSecond Solution: (after Adam Kielthy) Let\n$$\na = |AE|, \\quad b = |EB|, \\quad c = |AF|, \\quad d = |FD|\n$$\nand denote the triangle areas as follows\n$$\n\\begin{aligned} Y &= |EBC| = \\frac{b(c+d)}{2} & Z &= |CDF| = \\frac{d(a+b)}{2} \\\\ W &= |AEF| = \\frac{ac}{2} & X &= |ECF| \\end{aligned}\n$$\nfrom which we obtain $ac = 2W$, $ad = 2Z - bd$, $bc = 2Y - bd$.\n\nThe area of the rectangle is equal to\n$$\nX + Y + Z + W = (a+b)(c+d) = ac + ad + bc + bd = 2(Y + Z + W) - bd,\n$$\nwhich implies $bd = Y + Z + W - X$. On the other hand, from $YZ = bd(a+b)(c+d)/4$, we obtain $bd = 4YZ/(Y + Z + W + X)$. Therefore, $Y + Z + W - X = 4YZ/(Y + Z + W + X)$, i.e. $(Y + Z + W)^2 - X^2 = 4YZ$. This implies $X^2 = (Y + Z + W)^2 - 4YZ = (16+30+12)^2 - 4 \\cdot 16 \\cdot 30 = 1444$, hence $X = 38$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33074, "subject": "Mathematics (Multi-modal)", "question": "Find all integers $n$ for which $n^5 + n^4 + n^3 + n^2 + n + 1$ is divisible by 19.", "options": [], "answer": "All integers n with n ≡ 7, 8, 11, 12, or 18 (mod 19).", "solution": "First note that $n \\equiv 1 \\pmod{19}$ implies $n^5 + n^4 + n^3 + n^2 + n + 1 \\equiv 6 \\pmod{19}$. Assume now that $n \\not\\equiv 1 \\pmod{19}$, i.e. $\\gcd(19, n-1) = 1$. Because $n^6 - 1 = (n-1)(n^5 + n^4 + n^3 + n^2 + n + 1)$ we then have\n$$\n19 \\mid n^5 + n^4 + n^3 + n^2 + n + 1 \\iff n^6 \\equiv 1 \\pmod{19}.\n$$\nBecause 19 is a prime number, the congruence $a^2 \\equiv 1 \\pmod{19}$ has exactly two solutions, namely $a \\equiv \\pm 1 \\pmod{19}$. This is so because $(a-1)(a+1)$ can only be divisible by the prime number 19 if one of the two factors is so. This shows that $n^6 \\equiv 1 \\pmod{19}$ iff $n^3 \\equiv \\pm 1 \\pmod{19}$.\nTo find all such $n$ we create the following table, in which we first calculated $n^2 \\pmod{19}$ to keep the numbers small.\n\n| n (mod 19) | 0 | -1 | ±2 | ±3 | ±4 | ±5 | ±6 | ±7 | ±8 | ±9 |\n|------------|---|----|----|----|----|----|----|----|----|----|\n| $n^2$ (mod 19) | 0 | 1 | 4 | 9 | -3 | 6 | -2 | -8 | 7 | 5 |\n| $n^3$ (mod 19) | 0 | -1 | ±8 | ±8 | ±7 | ∓8 | ±7 | ±1 | ∓1 | ±7 |\n\nThis shows that $n^5 + n^4 + n^3 + n^2 + n + 1$ is divisible by 19 if and only if $n$ is congruent to 7, 8, 11, 12 or 18 (mod 19).", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33075, "subject": "Mathematics (Multi-modal)", "question": "Suppose $a$, $b$, $c$, $d$ are positive numbers such that\n$$\n1 = 3abcd + 2(abc + bcd + dca + dab) + (ab + bc + cd + da + ac + bd).\n$$\nProve that\n$$\nabcd \\le \\frac{1}{81},\n$$\nand that the inequality is strict unless $a = b = c = d = 1/3$.", "options": [], "answer": "abcd ≤ 1/81, with equality only when a = b = c = d = 1/3", "solution": "By the AM-GM inequality,\n$$\n\\begin{aligned}\n&abc + bcd + dca + dab \\ge 4\\sqrt[4]{(abcd)^3} \\quad \\text{and} \\\\\n&ab + bc + cd + da + ac + bd \\ge 6\\sqrt[6]{(abcd)^3},\n\\end{aligned}\n$$\nwith equality in both inequalities iff $a = b = c = d$. Hence, letting $x = \\sqrt[4]{abcd}$, we have that\n$$\n1 \\ge 3x^4 + 8x^3 + 6x^2\n$$\nwith equality iff $a = b = c = d$. But $1 - 3x^4 - 8x^3 - 6x^2 = (1 - 3x)(1+x)^3$, and $x$ is positive. Hence, $1 \\ge 3x^4 + 8x^3 + 6x^2$ iff $x \\le 1/3$, with equality iff $x = 1/3$. Thus $abcd \\le 1/3^4$, and the inequality is strict unless $a = b = c = d = 1/3$.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 33076, "subject": "Mathematics (Multi-modal)", "question": "Given $n$ points $a_1, a_2, \\dots, a_n$ in the complex plane, determine a point the sum of whose squared distances from the points and the real axis is a minimum.", "options": [], "answer": "If m = a + i b is the centroid of the given points, the minimizing point is z* = a + i · n b/(n + 1).", "solution": "Let $z$ stand for an arbitrary complex number and denote by $\\operatorname{Im}(z)$ its imaginary part. Then we want to minimize the expression\n$$\nf(z) = |\\operatorname{Im}(z)|^2 + \\sum_{k=1}^{n} |z - a_k|^2.\n$$\nIf $m$ denotes the centroid of the given points, so that $m = \\frac{1}{n} \\sum_{k=1}^{n} a_k$, then,\nusing $|w|^2 = w \\bar{w}$, we easily obtain\n$$\n\\sum_{k=1}^{n} |z - a_k|^2 = n|z - m|^2 + \\sum_{k=1}^{n} |m - a_k|^2.\n$$\nHence,\n$$\nf(z) = |\\operatorname{Im}(z)|^2 + n|z - m|^2 + \\sum_{k=1}^{n} |m - a_k|^2.\n$$\nBut, if $m = a + ib$, $z = x + iy$, where $a, b, x, y$ are real numbers, then\n$$|\\operatorname{Im}(z)|^2 + n|z - m|^2 = y^2 + n[(x - a)^2 + (y - b)^2] = n(x - a)^2 + y^2 + n(y - b)^2,$$\nwhich takes its minimum when $x = a, y = nb/(n + 1)$. Hence\n$$\n\\min f = \\frac{n^2 b^2}{(n+1)^2} + \\frac{n b^2}{(n+1)^2} + \\sum_{k=1}^{n} |m - a_k|^2 = \\frac{n(\\operatorname{Im}(m))^2}{n+1} + \\sum_{k=1}^{n} |m - a_k|^2.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33077, "subject": "Mathematics (Multi-modal)", "question": "The integers $a_0, a_1, a_2, a_3, \\dots$ are defined as follows:\n$$\na_0 = 1, \\quad a_1 = 3, \\quad \\text{and} \\quad a_{n+1} = a_n + a_{n-1} \\quad \\text{for all } n \\ge 1.\n$$\nFind all integers $n \\ge 1$ for which $n a_{n+1} + a_n$ and $n a_n + a_{n-1}$ share a common factor greater than 1.", "options": [], "answer": "n ≡ 3 (mod 5)", "solution": "Define $b_n(x) = a_{n+1} x + a_n$ for $n \\ge 0$ and any integer $x$. We have to find all $n \\ge 1$ for which $\\operatorname{gcd}(b_n(n), b_{n-1}(n)) > 1$. By definition, for $k \\ge 1$ we have $b_{k+1}(x) = b_k(x) + b_{k-1}(x)$, hence $\\operatorname{gcd}(b_{k+1}(x), b_k(x)) = \\operatorname{gcd}(b_k(x), b_{k-1}(x))$ and so, using induction and substituting $x = n$,\n$$\n\\begin{align*}\n\\operatorname{gcd}(b_n(n), b_{n-1}(n)) &= \\operatorname{gcd}(b_1(n), b_0(n)) = \\operatorname{gcd}(a_2 n + a_1, a_1 n + a_0) \\\\\n&= \\operatorname{gcd}(4n + 3, 3n + 1) = \\operatorname{gcd}(n + 2, 3n + 1) \\\\\n&= \\operatorname{gcd}(n + 2, -5) \\in \\{1, 5\\}.\n\\end{align*}\n$$\nHence, $n a_{n+1} + a_n$ and $n a_n + a_{n-1}$ are not coprime iff $5 \\mid n + 2$, and this is equivalent to $n \\equiv 3 \\pmod{5}$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33078, "subject": "Mathematics (Multi-modal)", "question": "$n \\ge 3$ people seated at a round table play a game as follows. Initially each player is dealt a green or orange card. Game play then takes place in a series of rounds. In each round,\n(i) Each player notes the colours of the cards held by the two players to his/her immediate right. If these are different, the player raises his/her hand.\n(ii) Each player with a raised hand replaces his/her card with one of the opposite colour.\nThe game ends when each player holds the same colour as he/she did initially. A value of $n$ is called *playable* if game play *must* end after a finite number of rounds, regardless of the initial cards dealt to the players.\n(a) Prove that there are infinitely many values of $n$ which are *playable*.\n(b) Prove that there are infinitely many values of $n$ which are *not* *playable*.", "options": [], "answer": "Detailed solution", "solution": "(a) Denote the configuration of cards after round $k \\ge 0$ by a binary sequence $a_1^{(k)}, a_2^{(k)}, a_3^{(k)}, \\dots, a_n^{(k)}$, where the subscripts are interpreted modulo $n$ (here $k=0$ corresponds to the initial cards dealt to the players). The outcome of each round may then be computed recursively by\n$$\na_i^{(k+1)} = a_i^{(k)} + a_{i-1}^{(k)} + a_{i-2}^{(k)} \\quad \\forall i = 1, 2, \\dots, n \\quad (1)\n$$\nfor $k \\ge 0$, where addition is modulo 2. Next, by induction on $r$ we show that for all $r \\ge 0$ and all $k \\ge 0$,\n$$\na_i^{(k+2r)} = a_i^{(k)} + a_{i-2r}^{(k)} + a_{i-2^{r+1}}^{(k)} \\quad \\forall i = 1, 2, \\dots, n.\n$$\nThis is obviously true for $r=0$, as it matches (1). Assuming this equation holds for a fixed $r \\ge 0$, we have, for all $i=1, 2, \\dots, n$ and all $m \\ge 0$,\n$$\na_i^{(m+2r)} = a_i^{(m)} + a_{i-2r}^{(m)} + a_{i-2^{r+1}}^{(m)}.\n$$\nWith $m = k + 2^r$ it follows that for all $i = 1, 2, \\dots, n$ and all $k \\ge 0$,\n$$\n\\begin{align*}\na_i^{(k+2^{r+1})} &= a_i^{(k+2^r+2^r)} = a_i^{(k+2^r)} + a_{i-2^r}^{(k+2^r)} + a_{i-2^{r+1}}^{(k+2^r)} \\\\\n&= (a_i^{(k)} + a_{i-2^r}^{(k)} + a_{i-2^{r+1}}^{(k)}) \\\\\n&\\quad + (a_{i-2^r}^{(k)} + a_{i-2^{r+1}}^{(k)} + a_{i-2^{r-2^{r+1}}}^{(k)}) \\\\\n&\\quad + (a_{i-2^{r+1}}^{(k)} + a_{i-2^{r-2^{r+1}}}^{(k)} + a_{i-2^{r+2}}^{(k)}) \\\\\n&= a_i^{(k)} + a_{i-2^{r+1}}^{(k)} + a_{i-2^{r+2}}^{(k)}\n\\end{align*}\n$$\nand the results follows by the principle of induction.\nTherefore, if $n = 2^r$ for any $r \\ge 2$, after $n$ rounds we have $a_i^{(n)} = a_i^{(0)} + a_{i-n}^{(0)}$ and $a_{i-2n}^{(0)} = a_i^{(0)}$ for all $i$; we conclude that each such $n$ is playable.\n\n(b) For any $n$ divisible by 3, we may set the initial configuration of cards to\n$$\na_i^{(0)} = \\begin{cases} 1 & \\text{if } i \\equiv 0 \\pmod 3 \\\\ 0 & \\text{otherwise.} \\end{cases}\n$$\nThen it is easily shown that the next round yields the all-ones sequence, and this configuration will not change thereafter, i.e. $a_i^{(k)} = 1$ for all $i = 1, 2, \\dots, n$ and for all $k \\ge 1$. Therefore every $n$ divisible by 3 is not playable.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33079, "subject": "Mathematics (Multi-modal)", "question": "Find with proof all solutions in nonnegative integers $a, b, c, d$ of the equation\n$$\n11^a 5^b - 3^c 2^d = 1.\n$$", "options": [], "answer": "[[1, 1, 3, 1], [0, 1, 0, 2], [0, 2, 1, 3]]", "solution": "We consider four cases: $d=0$, $d=1$, $d=2$ and $d > 2$.\n\n*Case 1:* $d=0$. In this case $3^c 2^d$ is odd, so there are no solutions.\n\n*Case 2:* $d=1$. We have $11^{a} 5^{b} - 2 \\cdot 3^{c} = 1$, so $c > 0$, and, reading mod 4, we see that $a$ is odd. Next reading mod 3, we get that $a+b$ is even. Hence $a = 2\\alpha + 1$, $b = 2\\beta + 1$, for some nonnegative integers $\\alpha, \\beta$. Then $55 \\cdot 11^{2\\alpha} 5^{2\\beta} - 2 \\cdot 3^c = 1$ and $c \\ge 3$. Suppose that $c > 3$. Then we have $55(11^{2\\alpha} 5^{2\\beta} - 1) = 54(3^{c-3} - 1)$. Hence $3^{c-3} - 1$ is divisible by $11$. Since 5 is the order of 3 mod 11, $c-3 = 5\\gamma$, for some nonnegative integer $\\gamma$, and $3^{c-3} - 1$ is divisible by $3^5 - 1 = 2 \\cdot 11^2$. This contradicts the fact that $11^2$ does not divide $55(11^{2\\alpha} 5^{2\\beta} - 1) = 54(3^{c-3} - 1)$. So, in this case $a=1$, $b=1$, $c=3$, $d=1$ is the only solution.\n\n*Case 3:* $d=2$. Here $11^{a} 5^{b} - 4 \\cdot 3^{c} = 1$, so reading mod 4, we see that $a$ is even. If $c=0$, then we have the solution $a=0$, $b=1$, $c=0$, $d=2$. Suppose that $c > 0$. Reading mod 3, we see that $a+b$ is even, so $a$ is even and $b$ is even. Write $a=2\\alpha$, $b=2\\beta$. Now we have $(11^{a} 5^{b} - 1)(11^{a} 5^{b} + 1) = 4 \\cdot 3^c$ and this is impossible since the left-hand side is divisible by 8.\n\n*Case 4:* $d > 2$. Reading $11^{a} 5^{b} - 3^{c} 2^{d} = 1$ mod 4, we see that $a$ is even. Reading mod 8, we find that $b$ is even and thus, $a=2\\alpha$ and $b=2\\beta$ for some nonnegative integers $\\alpha, \\beta$. Hence $(11^{a} 5^{b} - 1)(11^{a} 5^{b} + 1) = 3^{c} \\cdot 2^{d}$. If $c=0$, then $(11^{a} 5^{b} - 1)(11^{a} 5^{b} + 1) = 2^{d}$. Since $\\gcd(11^{a} 5^{b} - 1, 11^{a} 5^{b} + 1) = 2$, and $11^{a} 5^{b} - 1 > 2$, this is impossible. Hence $c > 0$ and we have two possibilities: (i) $11^{a} 5^{b} - 1 = 3^{c} \\cdot 2$ and $11^{a} 5^{b} + 1 = 2^{d-1}$, and (ii) $11^{a} 5^{b} - 1 = 2^{d-1}$ and $11^{a} 5^{b} + 1 = 3^{c} \\cdot 2$, where we again used $\\gcd(11^{a} 5^{b} - 1, 11^{a} 5^{b} + 1) = 2$. In case (i), we obtain, by subtraction, $2^{d-1} = 3^{c} \\cdot 2 + 2$ and thus $2^{d-2} = 3^{c} + 1$. So $2^{d-2} - 1 = 3^c$ and $d-2$ is even, say $d-2 = 2\\delta$ and then $(2^d - 1)(2^d + 1) = 3^c$ and thus $\\delta = 1$ and $c=1$, since $\\gcd(2^d - 1, 2^d + 1) = 1$. But $11^{a} 5^{b} - 1 = 6$ has no solutions.\nIn case (ii), we have by subtraction $2 = 3^c \\cdot 2 - 2^{d-1}$ and thus $2^{d-2} = 3^c - 1$. Then either $d=3$ and $c=1$ or, reading mod 4, $c=2\\gamma$ is even. For $c > 1$, we have $2^{d-2} = (3^\\gamma - 1)(3^\\gamma + 1)$ and from $\\gcd(3^\\gamma - 1, 3^\\gamma + 1) = 2$ we get $\\gamma = 1$ and $d=5$. The case $c=1$ gives the solution $a=0$, $b=2$, $c=1$, $d=3$. The case $c=2$, $d=5$ does not yield solutions.\n\nCombining all cases, we see that the solutions are $11^1 \\cdot 5^1 - 3^3 \\cdot 2^1 = 1$, $11^0 \\cdot 5^1 - 3^0 \\cdot 2^2 = 1$ and $11^0 \\cdot 5^2 - 3^1 \\cdot 2^3 = 1$.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 33080, "subject": "Mathematics (Multi-modal)", "question": "Suppose $x$, $y$ and $z$ are positive numbers such that\n$$\n1 = 2xyz + xy + yz + zx. \\tag{1}\n$$\nProve that\n$$\n(i) \\quad \\frac{3}{4} \\le xy + yz + zx < 1;\n$$\n$$\n(ii) \\quad xyz \\le \\frac{1}{8}.\n$$\nUsing (i) or otherwise, deduce that\n$$\nx + y + z \\ge \\frac{3}{2}, \\tag{2}\n$$\nand derive the case of equality in (2).", "options": [], "answer": "The minimum of x + y + z is 3/2, achieved when x = y = z = 1/2. Additionally, 3/4 ≤ xy + yz + zx < 1 and xyz ≤ 1/8.", "solution": "**First approach.** Suppose that the LHS of (i) is false for some triple of positive numbers $a$, $b$, $c$ that satisfy (1), so that $1 = 2abc + ab + bc + ca$, but $ab + bc + ca < 3/4$. Then, by the AM-GM inequality,\n$$\n\\begin{aligned}\nabc &= \\sqrt{(ab)(bc)(ca)} = (\\sqrt[3]{(ab)(bc)(ca)})^{3/2} \\\\\n&\\leq \\left( \\frac{ab + bc + ca}{3} \\right)^{3/2} < \\left( \\frac{1}{4} \\right)^{3/2} = \\frac{1}{8},\n\\end{aligned}\n$$\nwhence $2abc + ab + bc + ca < \\frac{2}{8} + \\frac{3}{4} = 1,$\nin contradiction to our assumption. Hence, (i) holds, and (ii) now follows as an immediate consequence, because from (i) and (1) we see that\n$$\n2xyz = 1 - (xy + yz + zx) \\le 1 - \\frac{3}{4} = \\frac{1}{4} \\iff xyz \\le \\frac{1}{8}.\n$$\n\n**Second approach.** The proof of the LHS of (i) can be done directly as follows. By the AM-GM inequality,\n$$\nxyz = \\left( \\sqrt[3]{(xy)(yz)(zx)} \\right)^{3/2} \\le \\left( \\frac{xy + yz + zx}{3} \\right)^{3/2},\n$$\nand so, with $t = (xy + yz + zx)/3$, we have that\n$$\n1 = 2xyz + xy + yz + zx \\le 2t^{3/2} + 3t \\iff 1 \\le 2(\\sqrt{t})^3 + 3(\\sqrt{t})^2,\n$$\ni.e., letting $s = \\sqrt{t}$, $r = 2s$\n$$\n1 \\le 2s^3 + 3s^2 \\iff 4 \\le r^3 + 3r^2 \\iff 0 \\le (r-1)(r+2)^2 \\iff r \\ge 1.\n$$\nThus, $t \\ge 1/4$, i.e., $xy + yz + zx \\ge 3/4$, as claimed.\n\nHere is a direct way to prove (ii). By the AM-GM inequality,\n$$\nxy + yz + zx \\ge 3\\sqrt[3]{(xy)(yz)(zx)} = 3(xyz)^{2/3} = 3s^2 \\quad (\\text{where } s = \\sqrt[3]{xyz}).\n$$\nHence $1 = 2xyz + xy + yz + zx \\ge 2s^3 + 3s^2$ and this is equivalent to\n$$\n0 \\ge 2(s^3 + 1) + 3(s^2 - 1) = (s+1)^2(2s-1) \\iff 2s \\le 1.\n$$\nEquivalently, $xyz = s^3 \\le 1/8$. Again, (i) follows from this.\n\nTo prove (2), note that\n$$\n(x + y + z)^2 \\geq 3(xy + yz + zx) \\geq \\frac{9}{4} \\iff x + y + z \\geq \\frac{3}{2},\n$$\nwith equality iff\n$$\n\\frac{9}{4} = (x + y + z)^2 = 3(xy + yz + zx),\n$$\ni.e., $x + y + z = 3/2$, and $x = y = z$, i.e., $x = y = z = 1/2$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33081, "subject": "Mathematics (Multi-modal)", "question": "In the mathematical talent show called \"The $X^2$-factor\", contestants are scored by a panel of 8 judges. Each judge awards a score of 0 ('fail'), $X$ ('pass'), or $X^2$ ('pass with distinction'). Three of the contestants were Ann, Barbara and David. Ann was awarded the same score as Barbara by exactly 4 judges. David declares that he obtained different scores to Ann from at least 4 judges, and also that he obtained different scores to Barbara from at least 4 judges.\nIn how many ways could scores have been allocated to David, assuming he is telling the truth?", "options": [], "answer": "5505", "solution": "**First Solution:** Represent each \"score sheet\" by a 8-digit ternary string with digits from $\\{0, 1, 2\\}$. Without loss of generality we may assume that Ann's score sheet reads 00001111, and that Barbara's score sheet reads 00002222. The total number of possible score sheets is $3^8$. We will count the number of score sheets which could not have been allocated to David: call this number $N$.\nDenote by $S_A$ the set of 8-digit ternary strings which differ from Ann's score in at most 3 places, and by $S_B$ the set of 8-digit ternary strings which differ from Barbara's score in at most 3 places. Then\n$$\n|S_A| = |S_B| = \\binom{8}{0}2^0 + \\binom{8}{1}2^1 + \\binom{8}{2}2^2 + \\binom{8}{3}2^3 = 577.\n$$\nNext we count $|S_A \\cap S_B|$. For $s \\in |S_A \\cap S_B|$ there are two possible cases:\n* The first 4 digits of $s$ are all zero, and the second 4 digits contain at least one 1 and at least one 2. There are $3^4 - (2^4 + 2^4 - 1) = 50$ of these, since $2^4$ contain no 1s, $2^4$ contain no 2s, and 1 contains no 1s and no 2s.\n* Three of the first 4 digits of $s$ are zero, and the second 4 digits contains exactly two 1s and exactly two 2s. There are $4 \\cdot 2 \\cdot \\binom{4}{2} = 48$ of these.\nTherefore $|S_A \\cap S_B| = 50 + 48 = 98$, and so\n$$\nN = |S_A \\cup S_B| = |S_A| + |S_B| - |S_A \\cap S_B| = 2 \\cdot 577 - 98 = 1056,\n$$\nleaving the number of possible score sheets for David as $3^8 - N = 5505$.\n**Second Solution:** Represent each score sheet by a 8-digit ternary string with digits from $\\{0, 1, 2\\}$. Without loss of generality we may assume that Ann's score sheet reads 00001111, and that Barbara's score sheet reads 00002222. Note that the number of differences between David's and Ann's scores in the first 4 digits is equal to the number of differences between David's and Barbara's scores in the first 4 digits.\nNext, note that the number of 4-digit ternary strings containing $r$ nonzero elements is given by $a(r) = \\binom{4}{r}2^r$. Also, denote by $b(r)$ the number of 4-digit ternary strings which differ from 1111 and 2222 in at least $r$ digits, for $r = 0, 1, 2, 3, 4$. Then\n* $b(0) = 3^4$ (all strings are allowed)\n* $b(1) = 3^4 - 2$ (since all strings except 1111 and 2222 are allowed)\n* $b(2) = 3^4 - 2^4 - 2$ (since disallowed strings are those which differ from 1111 and 2222 in at most one place)\n* $b(3) = 1 + \\binom{4}{3} \\cdot 2 + \\binom{4}{2} \\cdot 2 = 21$ (partitioning the count on the number of zeros in the string)\n* $b(4) = 1$ (only the string 0000 is allowed).\nThe total number of score sheets for David is then (partitioning the count according to the number of nonzero elements in the first 4 digits)\n$$\n\\begin{align*} N &= a(4)b(0) + a(3)b(1) + a(2)b(2) + a(1)b(3) + a(0)b(4) \\\\ &= \\binom{4}{4}2^4 \\cdot 3^4 + \\binom{4}{3}2^3 \\cdot (3^4 - 2) + \\binom{4}{2}2^2 \\cdot (3^4 - 2^4 - 2) \\\\ &\\quad + \\binom{4}{1}2^1 \\cdot 21 + \\binom{4}{0}2^0 \\cdot 1 \\\\ &= 3^4 \\left( \\binom{4}{4}2^4 + \\binom{4}{3}2^3 + \\binom{4}{2}2^2 \\right) - \\binom{4}{3}2^4 - \\binom{4}{2}2^6 - \\binom{4}{2}2^3 + 8 \\cdot 21 + 1 \\\\ &= 3^4(3^4 - 9) - 2^6 - 3 \\cdot 2^7 - 3 \\cdot 2^4 + 169 \\\\ &= 3^8 - (3^6 + 2^6 + 2 \\cdot 2^3 \\cdot 3^3) + 169 \\\\ &= 3^8 - (3^3 + 2^3)^2 + 13^2 \\\\ &= 5505, \\end{align*}\n$$\ni.e., the number of score sheets possible for David is 5505.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33082, "subject": "Mathematics (Multi-modal)", "question": "The incircle $C_1$ of triangle $ABC$ touches the sides $AB$ and $AC$ at the points $D$ and $E$, respectively. The incircle $C_2$ of the triangle $ADE$ touches the sides $AB$ and $AC$ at the points $P$ and $Q$, and intersects the circle $C_1$ at the points $M$ and $N$. Prove that\n(a) the centre of the circle $C_2$ lies on the circle $C_1$;\n(b) the four points $M, N, P, Q$ in appropriate order form a rectangle if and only if twice the radius of $C_1$ is three times the radius of $C_2$.", "options": [], "answer": "Detailed solution", "solution": "(a) Let $I$ be the incentre of $\\triangle ABC$, and let $J$ be the point of intersection of $AI$ and $C_1$. Then, the line $AJ$ is the angle bisector of $\\angle DAE$ and the triangles $ADI$ and $AEI$ are congruent. In particular, $\\angle EIA = \\angle AID$. We have $\\angle EIJ = 2\\angle EDJ$ as both are subtended by the same arc. Also, $\\angle JID = 2\\angle JDA$ (chord tangent angle). Thus $\\angle JDA = \\angle EDJ$ and $DJ$ is the angle bisector of $\\angle EDA$. So $J$ is the incentre of $\\triangle ADE$, and it lies on $C_1$.\n\n![](attached_image_1.png)\n![](attached_image_2.png)\n\n(b) **First Solution:** Let $r_1$ and $r_2$ denote the radiuses of the circles $C_1$ and $C_2$. Let $O$ be the midpoint of the segment $MN$ and $R$ the midpoint of the segment $DE$. $PQ \\parallel MN$ as they are both perpendicular on $AI$. Thus $MNPQ$ is an isosceles trapezium with bases $MN$ and $PQ$. It is a rectangle if and only if the lengths of these segments are equal. We calculate them in terms of $r_1$ and $r_2$.\n\nIn $\\triangle OIM$, we have $|OM| = |MI|\\sin(\\angle I)$, while from the cosine formula in $\\triangle IMJ$, $\\cos(\\angle I) = \\frac{2r_1^2 - r_2^2}{2r_1^2} = 1 - \\frac{r_1^2}{2r_1^2}$, thus\n$$\n\\sin(\\angle I) = \\sqrt{1 - \\cos^2(\\angle I)} = \\frac{r_2\\sqrt{4r_1^2 - r_2^2}}{2r_1^2} \\quad \\text{and so}\n$$\n$$\n|MN| = 2|OM| = \\frac{r_2\\sqrt{4r_1^2 - r_2^2}}{r_1}.\n$$\n\nOn the other hand, $\\triangle JPQ$ and $\\triangle IDE$ are similar as they have parallel sides. This implies $|PQ|/|DE| = r_2/r_1$ and so $|PQ| = \\frac{r_2}{r_1}|DE|$. We also have $|DE|/2 = |ER| = |QE|$ as both $ER$ and $EQ$ are tangent to $C_2$. From the trapezium $JQEI$ with right angles at $Q$ and $E$ we get\n$$\n|QE|^2 = r_1^2 - (r_1 - r_2)^2 = 2r_1r_2 - r_2^2.\n$$\n$$\n\\text{Thus } |PQ| = \\frac{r_2}{r_1}|DE| = \\frac{2r_2}{r_1}|QE| = \\frac{2r_2}{r_1}\\sqrt{2r_1r_2 - r_2^2}.\n$$\n\nFrom the above,\n$$\n\\begin{align*} |MN| = |PQ| &\\iff \\sqrt{4r_1^2 - r_2^2} = 2\\sqrt{2r_1r_2 - r_2^2} \\\\ &\\iff (2r_1 - r_2)(2r_1 + r_2) = 4r_2(2r_1 - r_2) \\\\ &\\iff 2r_1 = 3r_2. \\end{align*}\n$$\n\n(b) **Second Solution:** Let $r_1$ and $r_2$ denote the radiuses of the circles $C_1$ and $C_2$. Let $O$ be the midpoint of the segment $MN$, $F$ the midpoint of the segment $DE$ and $R$ the midpoint of $PQ$. $PQ \\parallel MN$ as they are both perpendicular on $AI$. Thus $MNPQ$ is an isosceles trapezium with bases $MN$ and $PQ$. It is a rectangle if and only if the lengths of these segments are equal. Using Pythagoras, this is easily seen to be equivalent to $|OJ| = |RJ|$.\n![](attached_image_3.png)\n\nThe line through $M$ and $N$ is the radical axis of the two circles $C_1$ and $C_2$. The point $O$ has therefore the same power with respect to these circles, i.e.\n$$\n|OJ| \\cdot (2r_1 - |OJ|) = (r_2 - |OJ|)(r_2 + |OJ|), \\quad \\text{hence} \\quad |OJ| = \\frac{r_2^2}{2r_1}.\n$$\n\nAs $QR \\parallel EF$ and $QJ \\parallel EI$, the triangles $RJQ$ and $FIE$ are similar and so\n$$\n\\frac{|RJ|}{r_2} = \\frac{|FI|}{r_1} = \\frac{r_1 - r_2}{r_1}, \\quad \\text{hence} \\quad |RJ| = \\frac{r_2}{r_1}(r_1 - r_2). \\quad \\text{Finally we see}\n$$\n$$\n|OJ| = |RJ| \\iff \\frac{r_2^2}{2r_1} = \\frac{r_2}{r_1}(r_1 - r_2) \\iff r_2 = 2(r_1 - r_2) \\iff 3r_2 = 2r_1.\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33083, "subject": "Mathematics (Multi-modal)", "question": "Suppose $x, y, z$ are positive numbers such that\n$$\n1 = 2xyz + xy + yz + zx.\n$$\nProve that there are positive numbers $a, b, c$ such that\n$$\nx = \\frac{a}{b+c}, \\quad y = \\frac{b}{c+a}, \\quad z = \\frac{c}{a+b}.\n$$", "options": [], "answer": "Detailed solution", "solution": "Since\n$$\n\\det \\begin{pmatrix} 1 & -x & -x \\\\ -y & 1 & -y \\\\ -z & -z & 1 \\end{pmatrix} = 1 - 2xyz - xy - yz - zx,\n$$\nthe determinant of the system of equations\n$$\na - xb - xc = 0, \\quad ya - b + yc = 0, \\quad za + zb - c = 0, \\quad (2)\n$$\nin the variables $a, b, c$, is equal to zero by hypothesis. Hence, there are numbers $a, b, c$, not all of which are zero, that satisfy the system (2), in which case\n$$\na = (b+c)x, \\quad b = (c+a)y, \\quad c = (a+b)z.\n$$\nSince $x, y, z$ are positive, none of $a, b, c$ is equal to zero and so $a(b+c), b(c+a)$ and $c(a+b)$ are also positive, whence $a, b, c$ have the same sign. The result follows.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33084, "subject": "Mathematics (Multi-modal)", "question": "Prove for all positive real numbers $a$, $b$, $c$, $d$ that\n$$\n\\frac{a^2}{b+c+d} + \\frac{b^2}{a+c+d} + \\frac{c^2}{a+b+d} \\ge \\frac{4a+4b+4c-3d}{9}.\n$$", "options": [], "answer": "Detailed solution", "solution": "For arbitrary real numbers $x$, $y$ we have $9x^2 - 6xy + y^2 = (3x - y)^2 \\ge 0$. Hence, if $y > 0$, $\\frac{x^2}{y} \\ge \\frac{6x-y}{9}$ with equality iff $y = 3x$. Hence,\n$$\n\\frac{a^2}{b+c+d} + \\frac{b^2}{a+c+d} + \\frac{c^2}{a+b+d} \\\\\n\\ge \\frac{6a-b-c-d}{9} + \\frac{6b-a-c-d}{9} + \\frac{6c-a-b-d}{9} \\\\\n= \\frac{4a+4b+4c-3d}{9}.\n$$\nEquality occurs when $3a = b + c + d$, $3b = a + c + d$, $3c = a + b + d$ which leads to $a = b = c = d$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33085, "subject": "Mathematics (Multi-modal)", "question": "$ABC$ is an equilateral triangle. $D$ is the midpoint of $BC$, $E$ is a point on $AC$ between $A$ and $C$ and $F$ is a point on $AB$ between $A$ and $B$. The area of $\\triangle EDC$ is $24\\sqrt{3}$, the area of $\\triangle AFE$ is $24\\sqrt{3}$ and the area of $\\triangle FBD$ is $54\\sqrt{3}$. Find the length of the sides of the triangle $ABC$.", "options": [], "answer": "24", "solution": "Let $x = |BD| = |DC|$. Because $\\triangle ABC$ is equilateral, considering the areas of $\\triangle BDF$ and $\\triangle DCE$ gives\n$$\n54\\sqrt{3} = \\frac{1}{2}x \\cdot |BF| \\cdot \\sin(60^\\circ) = \\frac{1}{4}\\sqrt{3} \\cdot x \\cdot |BF| \\quad \\Rightarrow \\quad x \\cdot |BF| = 216\n$$\n$$\n24\\sqrt{3} = \\frac{1}{2}x \\cdot |CE| \\cdot \\sin(60^\\circ) = \\frac{1}{4}\\sqrt{3} \\cdot x \\cdot |CE| \\quad \\Rightarrow \\quad x \\cdot |CE| = 96.\n$$\n\nBecause $|AF| = 2x - |BF|$ and $|AE| = 2x - |CE|$ we obtain for the area of $\\triangle AFE$ the equation $24\\sqrt{3} = \\frac{1}{2}(2x - |BF|)(2x - |CE|) \\sin(60^\\circ)$ from which we get $96x^2 = (2x^2 - x \\cdot |BF|)(2x^2 - x \\cdot |CE|) = (2x^2 - 216)(2x^2 - 96)$. This easily translates into the equation $0 = x^4 - 108x^2 + 5184 = (x^2 - 144)(x^2 - 36)$. Because $0 \\le |AF| = 2x - \\frac{216}{x}$, we need to have $2x^2 \\ge 216$, hence $x^2 \\ne 36$. As $x > 0$ we see that the only solution is $x = 12$. Therefore, $|AB| = |BC| = |CA| = 24$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33086, "subject": "Mathematics (Multi-modal)", "question": "Find all pairs of integers $(a, b)$ such that $a^3 + b^3 + 3ab = 53$.", "options": [], "answer": "(-3, 5), (5, -3), (2, 3), (3, 2)", "solution": "**First Solution:** The key to this solution is the identity\n$$\na^3 + b^3 - 1 + 3ab = (a+b-1)(a^2 + b^2 - ab + a + b + 1).\n$$\nEven though this can be verified readily, we explain how to find it. We start with a polynomial of degree 3 which has $a$, $b$ and an auxiliary number $c$ as its roots $f(x) = (x-a)(x-b)(x-c) = x^3 - (a+b+c)x^2 + (ab+ac+bc)x - abc$. We obtain the identity\n$$\n0 = f(a) + f(b) + f(c) = a^3 + b^3 + c^3 - 3abc - (a+b+c)(a^2 + b^2 + c^2 - ab - ac - bc).\n$$\nSubstituting $c = -1$ gives the identity mentioned above.\n\nThe original equation $a^3 + b^3 + 3ab = 53$ is equivalent to the equation\n$$\n(a+b-1)(a^2+b^2-ab+a+b+1) = 52.\n$$\nBecause we are looking for integer solutions, the two numbers $u = a+b-1$ and $v = a^2+b^2-ab+a+b+1 = (a+b)^2+(a+b-1)-3ab+2 = (u+1)^2+u+2-3ab = (u+1)(u+2)+1-3ab$ have to be divisors of $52 = 2 \\cdot 2 \\cdot 13$. The integer divisors of $52$ are $\\pm 1, \\pm 2, \\pm 4, \\pm 13, \\pm 26, \\pm 52$. In particular, $u \\equiv \\pm 1 \\pmod 3$. We have $a+b = u+1$ and $3ab = (u+1)(u+2)+1-v$. The last identity and $u \\equiv \\pm 1 \\pmod 3$ imply $v \\equiv 1 \\pmod 3$. Hence, the following table covers all possibilities for $u$ and $v$.\n\n| u | v | a+b | 3ab | ab |\n|----|----|-----|-----|-----|\n| 1 | 52 | 2 | -45 | -15 |\n| -2 | -26| -1 | 27 | 9 |\n| 4 | 13 | 5 | 18 | 6 |\n| 13 | 4 | 14 | 207 | 69 |\n| -26| -2 | -25 | 603 | 201 |\n| 52 | 1 | 53 | 2862| 954 |\n\nFrom $x = a+b$ and $y = ab$ we obtain $(a, b)$ by solving the quadratic equation $a^2 - ax + y = 0$ and using $b = x - a$. For $a$ to be an integer, we need therefore that the discriminant of the quadratic, $x^2 - 4y$, is a perfect square. Only the first and third row of the table give $x^2 - 4y \\ge 0$. Therefore, the only possible solutions are $(5, -3), (-3, 5), (3, 2), (2, 3)$. Substituting them in the original equation shows that they are indeed solutions.\n\n\n**Second Solution:** Because $53$ is not a perfect cube, neither $a$ nor $b$ could be zero. Without loss of generality, we may assume $a \\le b$. We distinguish the following three cases.\n\n**$0 < a \\le b$:** In this case, $a^3 + b^3 + 3ab \\ge 2a^3 + 3a^2 = a^2(2a + 3)$, hence $a^2(2a+3) \\le 53$. This implies $a \\le 2$. If $a = 1$, we get $b^3+3b = b(b^2+3) = 52 = 2 \\cdot 2 \\cdot 13$. As $b < b^2+3$, the only possibilities for $b$ are $1, 2, 4$ but none of them leads to a solution. If $a = 2$, we have to solve $b^3+6b = b(b^2+6) = 45 = 5 \\cdot 3 \\cdot 3$. As $b < b^2+6$, $b$ can only be $1, 3$ or $5$. Only $b = 3$ is a solution.\n\n**$a \\le b < 0$:** In this case, $a^3 + b^3 + 3ab = a(a^2 + 3b) + b^3 = 53 > 0$. Because $b^3 < 0$ and $a < 0$ this implies $a^2 + 3b < 0$. Hence, $a^2 < 3|b|$. On the other hand, $|a| \\ge |b|$ and so $b^2 \\le a^2 < 3|b|$ which implies $|b| < 3$. If $b = -1$, we get $a^3 - 3a = a(a^2 - 3) = 54 > 0$. As $a < 0$ this implies $a^2 < 3$, i.e. $a = -1$ which does not give a solution. If $b = -2$, we get $a^3 - 6a = a(a^2 - 6) = 61$. As before, this implies $a^2 < 6$, i.e. $a = -1$ or $a = -2$. But both values do not solve the equation.\n\na < 0 < b: In this case, $3ab < 0$ and so $a^3 + b^3 > 0$ which implies $b > |a|$. Let $c = -a > 0$ and $b = c + k$ with $k \\ge 1$. The given equation becomes\n$$\n\\begin{aligned}\nb^3 - c^3 - 3bc &= 53 \\\\\n(c + k)^3 - c^3 - 3c(c + k) &= 53 \\\\\n3c^2(k - 1) + 3ck(k - 1) + k^3 &= 53.\n\\end{aligned}\n$$\nThe left hand side is at least $3(k-1)+3k(k-1)+k^3 = k^2(k+3)-3$, hence we need to have $k^2(k+3) \\le 56$ which implies $k \\le 3$. We cannot have $k=1$, because $53$ is not a perfect cube. If $k=2$ we need to solve $3c^2+6c+8=53$, or equivalently, $c(c+2) = 15$ with $c=3$ as its only positive solution. This leads to $(a,b) = (-3,5)$. Finally, if $k=3$ we need to have $6c^2+18c+27=53$ which has no solution as $53$ is not divisible by $3$.\n\nTherefore, the only solutions to the original equation are $(5,-3), (-3,5), (3,2)$ and $(2,3)$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33087, "subject": "Mathematics (Multi-modal)", "question": "A given list $n_1, n_2, \\dots, n_{2011}$ of positive integers has the property that $n_i n_{i+1}$ is different from $n_j n_{j+1}$ whenever $i, j$ are distinct integers less than $2011$. Find the minimum number of distinct integers that must be in any such list.", "options": [], "answer": "63", "solution": "Suppose a list $L = (n_i)_{i=1}^N$ is made up only of numbers selected from the (possibly much shorter) list of distinct numbers $(m_i)_{i=1}^k$, and that the products $n_i n_{i+1}$, $1 \\le i \\le 2010$, are all distinct. We write down the indices of the numbers $m_i$ occurring in $L$ as another list $M$ also of length $N$, e.g. if $L$ begins $m_3, m_7, m_1, m_9, m_7, \\dots$, then $M$ begins $3, 7, 1, 9, 7, \\dots$.\nIf $n_i = m_a$ and $n_{i+1} = m_b$, the product $n_i n_{i+1}$ is determined by the set $\\{a, b\\}$. Hence, any two (not necessarily distinct) numbers $a, b$ from $\\{1, 2, \\dots, k\\}$ can appear as neighbours in the list $M$ at most once. As $M$ contains $2011$ elements, there must exist at least $2010$ different subsets of $\\{1, 2, \\dots, k\\}$ with one or two elements. Note that, by usual conventions of set theory, $\\{a, a\\} = \\{a\\}$ contains only one element. The number of such subsets is equal to $k(k+1)/2$ and so we need to have $k(k+1)/2 \\ge 2010$, i.e. $k \\ge 63$.\nThat $k=63$ is indeed sufficient follows from the construction of a sequence $M$ given below. We will in fact construct for each odd number $k \\ge 3$ a 'cycle' of numbers such that each subset of $\\{1, 2, \\dots, k\\}$ with one or two elements appears exactly once as a set of neighbours in the cycle. A 'cycle' of numbers is simply a list in which the first and last element coincide. Two such 'cycles' of length $T+1$ are said to be equivalent iff we obtain the same result, up to rotation, if their numbers are cyclically written at the vertices of a regular $T$-gon, whereby the first and last element of the list are written on the same vertex.\nTo prove the existence of such a cycle, we first form the set $\\mathcal{T}$ of all subsets of $\\{1, 2, \\dots, k\\}$ with one or two elements. Note that each number appears $k-1$ times in a two-element subset and once in a singleton. We start the sequence with $1, 2, 3, \\dots, k$ and remove from $\\mathcal{T}$ the sets $\\{1, 2\\}, \\{2, 3\\}, \\dots, \\{k-1, k\\}$ which appear as neighbours already. We repeatedly do now the following:\n* If $a$ is the last element of our list and there is a set in $\\mathcal{T}$ which contains $a$, we pick such a set, remove it from $\\mathcal{T}$ and append $a$ (if the set was a singleton) or the second element of this set (if it was a two-element set) to the list.\n* Because $k-1$ is even, if $\\mathcal{T}$ is not empty but does not contain a set which contains the last element of our list, then the last element of our list must coincide with the first element of our list, i.e. the list is a cycle. In this case, we replace it by an equivalent cycle which has an element as its first and last element which appears in one of the sets in $\\mathcal{T}$. This is possible because we started our list in such a way that it contains all numbers $1, \\dots, k$ at least once. After replacing the cycle by an appropriate equivalent one, we continue as above appending elements to the list.\nThis process can be continued until all elements of $\\mathcal{T}$ are used. The result is a list which contains all possible neighbour-subsets exactly once. If $k=63$, the list will have length $63 \\cdot 64/2 + 1 = 2017$. By discarding the last $6$ elements we obtain a list $M$ with $2011$ elements.\nLet $M = (\\mu_i)_{i=1}^{2011}$ be this list and let $m_i$ be the $i$-th prime number. Defining $n_i = m_{\\mu_i}$ we obtain a list $L = (n_i)_{i=1}^{2011}$ which satisfies the conditions of the problem.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33088, "subject": "Mathematics (Multi-modal)", "question": "$P$ is a point on a diameter $AB$ of a circle, centre $O$. The points $C$ and $D$ are on the circumference of the circle, on the same side of $AB$, such that $\\angle APC = \\angle BPD$. Prove that the quadrilateral $PODC$ is cyclic.", "options": [], "answer": "Detailed solution", "solution": "Extend $CP$ to meet the circumference at $E$. Then, using the assumption, we get $\\angle BPE = \\angle APC = \\angle DPB$, hence $D$ is the reflection of $E$ in the line $AB$. Therefore, $ED$ is perpendicular to $AB$ and so $\\angle BPE + \\angle PED = 90^\\circ$.\n\n![](attached_image_1.png)\n\nWe also have $\\angle COD = 2\\angle CED = 2\\angle PED$, as these angles are subtended by the same arc $CD$. Because $|OC| = |OD|$ the triangle $CDO$ is isosceles and we obtain $2\\angle BPE = 180^\\circ - 2\\angle PED = 180^\\circ - \\angle COD = 2\\angle DCO$. This implies $\\angle DPB = \\angle BPE = \\angle DCO$, hence $PODC$ is cyclic.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33089, "subject": "Mathematics (Multi-modal)", "question": "$AB$ and $CD$ are two parallel line segments. $AD$ and $BC$ intersect at $P$. Prove that the circumcircles of the triangles $ABP$ and $CDP$ touch at $P$.", "options": [], "answer": "Detailed solution", "solution": "Whether or not $P$ lies between the parallel lines gives two cases to distinguish. Let $S$ and $T$ be points on the tangent to the circumcircle of $\\triangle ABP$ at $P$ such that $S$ and $A$ are on the same side of the line $BC$ and $T$ and $B$ are on the same side of $AD$.\n\n**First Solution:**\nWe have $\\angle SPA = \\angle PBA$ (chord tangent angle). Because $AB \\parallel CD$, we also have $\\angle PBA = \\angle PCD$, hence $\\angle SPA = \\angle PCD$. If $P$ lies between the parallel lines, $\\angle SPA = \\angle TPD$ and so $\\angle PCD = \\angle TPD$. In both cases it follows that $ST$ is tangent to the circumcircle of $\\triangle DCP$.\n\n![](attached_image_1.png)\n\n**Second Solution:**\nIf $P$ is between the parallel lines, reflect $A$ and $B$ at $P$ to get $A'$ on $PD$ and $B'$ on $PC$. If $P$ is not between the parallel lines we simply let $A' = A$ and $B' = B$.\n\n![](attached_image_2.png)\n\nBecause $A'B' \\parallel CD$ the triangle $PDC$ is obtained from $\\triangle PA'B'$ by a homothety with centre $P$. Hence, the circumcentres of the triangles $PDC$ and $PA'B'$ are on a line through $P$, on which we also find the circumcentre of $\\triangle PAB$. As the tangent at $P$ to these circles is perpendicular to the line through $P$ and the centres, it follows now that the circumcircles of $\\triangle PAB$ and $\\triangle PDC$ touch at $P$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33090, "subject": "Mathematics (Multi-modal)", "question": "Prove that there is a positive integer, not divisible by $10$, whose $2011$-th power has in its decimal expansion (at least) $2011$ consecutive zeros immediately after its non-zero leading digit.", "options": [], "answer": "Detailed solution", "solution": "A number starts with the digit $1$ followed by $r$ zeros if and only if it can be written in the form $10^{r+s} + A$, with $0 \\le A < 10^s$. If $k > r \\ge 0$ we have $10^{r+s} + 10^k A + A < 10^{r+s} + 10^{k+s} + 10^s < 10^{k+s+1}$. Hence $(10^k + 1)(10^{r+s} + A) = 10^{k+r+s} + 10^{r+s} + 10^k A + A$ is a number which has at least $r-1$ zeros after its leading digit $1$. By induction, we obtain for $k > r \\ge 0$ and any $1 \\le m < r$ that $(10^k + 1)^m (10^{r+s} + A)$ has at least $r-m$ zeros after the leading digit $1$. With $A = 1$, $s = 1$, $r = k-1$ we obtain that the number $(10^k + 1)^{2011} = (10^k + 1)^{2010} (10^k + 1)$ has at least $k-1-2010$ zeros after the leading digit $1$, provided that $k > 2011$. Hence, any number $10^k + 1$ with $k \\ge 4022$ gives a solution.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33091, "subject": "Mathematics (Multi-modal)", "question": "Let $ABC$ be a triangle whose side lengths are, as usual, denoted by $a = |BC|$, $b = |CA|$, $c = |AB|$. Denote by $m_a$, $m_b$, $m_c$, respectively, the lengths of the medians which connect $A$, $B$, $C$, respectively, with the centres of the corresponding opposite sides.\n\na. Prove that $2m_a < b + c$. Deduce that $m_a + m_b + m_c < a + b + c$.\n\nb. Give an example of\n i. a triangle in which $m_a > \\sqrt{bc}$;\n ii. a triangle in which $m_a \\le \\sqrt{bc}$.", "options": [], "answer": "Detailed solution", "solution": "Denote by $D$ the mid-point of $BC$. We offer two ways of doing part (a).\n\nFirst way:\nContinue the line segment $AD$ through $D$ to the point $A'$ chosen so that $|A'D| = |DA| = m_a$. Consider the triangles $A'DC$ and $ADB$. Note that $\\angle A'DC = \\angle ADB$, $|BD| = |DC|$ and $|A'D| = |AD|$, by construction.\n\n![](attached_image_1.png)\n\nHence, these triangles are congruent and so, in particular, $|A'C| = |AB|$.\nNow consider the triangle $A'CA$, and apply the triangle inequality to infer that\n$$\n2m_a = |A'D| + |DA| = |A'A| < |CA| + |A'C| = b + c.\n$$\n\nSecond way:\nTwo applications of the Cosine Rule tell us that\n$$\nam_a \\cos \\angle BDA = m_a^2 + \\left(\\frac{a}{2}\\right)^2 - c^2 \\quad \\text{and} \\\\\n-am_a \\cos \\angle BDA = am_a \\cos \\angle CDA = m_a^2 + \\left(\\frac{a}{2}\\right)^2 - b^2.\n$$\nThus, eliminating $\\cos \\angle BDA$, we see that\n$$\n4m_a^2 = 2(b^2 + c^2) - a^2.\n$$\nHence $2m_a < b + c$ iff\n$$\n2(b^2 + c^2) - a^2 < b^2 + 2bc + c^2 \\iff b^2 + c^2 - a^2 < 2bc \\iff \\cos(\\angle BAC) < 1,\n$$\nwhich is true. In like manner, $2m_b < c + a$, $2m_c < a + b$, and so\n$$\n2m_a + 2m_b + 2m_c < (a+b) + (b+c) + (c+a) = 2(a+b+c),\n$$\ni.e. $m_a + m_b + m_c < a + b + c$. This completes the proof of part (a).\n\nb.\nThe numbers $2$, $4$, $5$ are the side lengths of a triangle $ABC$ with $a=4$, $b=2$, $c=5$ for which\n$$\nm_a^2 = \\frac{2(b^2 + c^2) - a^2}{4} = \\frac{21}{2} > 10 = bc.\n$$\nHence (i).\n\n(ii) occurs in any triangle in which $b = c$, because, in such a case,\n$$\nbc = b^2 = m_a^2 + \\left(\\frac{a}{2}\\right)^2 > m_a^2.\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33092, "subject": "Mathematics (Multi-modal)", "question": "A *Colombian Square* is a $6 \\times 6$ square which is subdivided into $36$ unit squares, each of which is coloured either Yellow, Blue or Red according to the following rules:\n\na. No row or column may contain more than two unit squares of the same colour.\n\nb. In any set of four unit squares obtained by intersecting two rows with two columns, no colour is to occur exactly three times.\n\nHow many different Colombian Squares are there?", "options": [], "answer": "24300", "solution": "Condition (a) requires that each of $R$, $Y$, $B$ is to occur exactly twice in each row and column.\n\nWe apply (b) as follows: Take any unit square of a given colour, say $R$. As explained above, its row and column must each contain another $R$. The three $R$'s are the vertices of a rectangle and the fourth vertex must also be $R$ by condition (b).\n\nIf (a) and (b) hold for a given matrix, then they will also hold after any permutation of the rows and columns of the matrix.\n\nLet $N$ denote the number of Colombian Squares for which the 1st row and column in the table are both coloured in the pattern $RYBRYB$. There are $\\binom{6}{2} \\binom{4}{2} \\binom{2}{2} = 90$ ways to colour the first row, and for each of these choices there are $\\binom{5}{2} \\binom{3}{2} = 30$ ways to colour the remainder of the first column, so the total number of matrices will be $90 \\cdot 30 \\cdot N = 2700N$.\n\nTo find $N$, we examine those Colombian Squares which partially look like\n![](attached_image_1.png)\n\nWhen we attempt to fill in the 4th row and column with $Y$, $B$, with the help of (b) we quickly dismiss all but the following four patterns:\n\n(i)\n![](attached_image_2.png)\n\n(ii)\n![](attached_image_3.png)\n\n(iii)\n![](attached_image_4.png)\n\n(iv)\n![](attached_image_5.png)\n\nNote that (iv) is obtained from (iii) by swapping rows with columns.\n\nIn each of the cases above, once we fill in the first empty $2 \\times 2$ table, the other entries are determined by (a) and (b), applied to the $Y$'s and $B$'s.\n\nIn case (i), in columns 2 and 5 the *B* can only be in rows 2 and 5, because of (a). Similarly, the *Y* in columns 3 and 6 can only be in rows 3 and 6. The unfilled unit squares are then to be filled with *R*, using (a) again. Therefore, the only possibility in this case is this:\n\n(i)\n![](attached_image_6.png)\n\nIn case (ii), by using (b), we see that the distribution of *Y*s and *B*s surrounding the top left empty $2 \\times 2$ cell forces all its four entries to be *R*. In turn, this implies that all the entries in the top right empty $2 \\times 2$ cell are *Y* or *B*. But, because of condition (a), this is impossible as there are already a *Y* and a *B* entry in these columns. Therefore, case (ii) is impossible.\n\nIn case (iii), proceeding as before, we are left with four possible Colombian Squares:\n\n(iii)\n![](attached_image_7.png)\n![](attached_image_8.png)\n![](attached_image_9.png)\n![](attached_image_10.png)\n\nIn case (iv) the four possibilities are obtained from those in case (iii) by swapping rows with columns. Hence, we get $N = 1 + 4 + 4 = 9$ possibilities.\n\nTherefore, there are $9 \\times 2700 = 24300$ Colombian Squares.\nInstead of fixing a row and a column, we first focus on one colour. Let us see in how many ways we can arrange the yellow squares in the table such that there are exactly two yellow squares in each row/column (this is condition a). By condition (b), the 12 yellow squares in the table form the vertices of 3 different rectangles.\n\nThere are $\\binom{6}{2} = 15$ ways to choose two yellow squares in column 1. There are 5 ways to choose another column, so that the yellow squares in the 1st column and the newly chosen column form the vertices of a rectangle. There are thus 75 ways to choose the first rectangle with yellow vertices.\n\nFor the second rectangle, we choose the next available column (either the 2nd or if taken, the 3rd). There are $\\binom{4}{2} = 6$ ways to choose yellow squares in it, so that they are not in the same rows as the yellow unit squares of the first rectangle. Then, there are 3 ways to choose a new column and thus complete the second rectangle with yellow vertices. This gives 18 possibilities for the 2nd rectangle. The third rectangle will then be uniquely determined by condition (a). Thus in total, there are $75 \\times 18 = 1350$ ways of arranging the yellow squares.\n\nLet us first determine how we can fill in the remaining squares in the first column, and then, for each case, how many Colombian tables we get.\n\nThe first 2 squares in the 3rd row could be *RR*, *BB*, *RB* or *BR*. This gives four cases to consider.\n\n(i)\n![](attached_image_11.png)\n\n(ii)\n![](attached_image_12.png)\n\n(iii)\n![](attached_image_13.png)\n\n(iv)\n![](attached_image_14.png)\n\nIn the first case, there are 3 options for completing this *RR* to a rectangle, and then all the colours in the table are determined by condition (a). Similarly in case (ii), we have 3 options for filling in the other *BB* in the first two columns, then everything else is determined.\n\nIn case (iii) columns 1 and 2 cannot be *RR* or *BB* in any row, because of condition (b). Therefore, and because of condition (a), there is another row starting with *RB* and there are 3 possibilities to choose it. For each such choice, there are two ways to complete the two rows starting with $RB$. Indeed, the two free squares left in these rows can be filled in with $RB$, or alternatively with $BR$. The colours of other squares in the table are then completely determined by condition (a). This leads to 6 ways of completing the table to a Colombian square in case (iii). Exchanging $R$ and $B$ switches from case (iii) to case (iv), hence there are 6 Colombian squares in case (iv) as well.\n\nIn total, cases (i)–(iv) yield $3+3+6+6 = 18$ possibilities. Hence, the number of Colombian squares is equal to $1350 \\times 18 = 24,300$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33093, "subject": "Mathematics (Multi-modal)", "question": "Let $I$ be the incentre of $\\triangle ABC$. Prove that the circumcentre of $\\triangle BIC$ lies on the circumcircle of $\\triangle ABC$.", "options": [], "answer": "Detailed solution", "solution": "Let the bisector of $\\angle BAC$ meet the circumcircle of $\\triangle ABC$ at $D$.\n![](attached_image_1.png)\nBecause $\\angle BAD = \\angle DAC$, we have $|DB| = |DC|$. On the other hand, $\\angle BID = \\angle BAI + \\angle ABI = \\angle CAI + \\angle CBI = \\angle CBD + \\angle CBI = \\angle DBI$ and so $|DB| = |DI|$. This shows that $|DB| = |DC| = |DI|$, thus $D$ is the circumcentre of $\\triangle BIC$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33094, "subject": "Mathematics (Multi-modal)", "question": "The orthocentre $H$ of triangle $ABC$ is reflected in each of the three sides of the triangle, giving points $D$, $E$ and $F$.\nProve that $H$ is the incentre of triangle $DEF$.", "options": [], "answer": "Detailed solution", "solution": "Construct the circumcircle of $\\triangle ABC$. Let $D'$, $E'$ and $F'$ denote the points where the altitudes meet the circumcircle. Let $K$ be the intersection of $AD'$ with $BC$ and denote the orthocentre of $\\triangle ABC$ by $H$. Then $\\angle BAD' = 90^\\circ - \\angle ABC = \\angle BCF$ and $\\angle BAD' = \\angle BCD'$, hence the triangles $HKC$ and $KD'C$ are congruent. This shows that $|HK| = |KD'|$ and $D' = D$ is the image of $H$ when reflected in $BC$. Similarly, $E' = E$ and $F' = F$.\n![](attached_image_1.png)\nNow $\\angle DFC = \\angle DAC = 90^\\circ - \\angle ACB$ and $\\angle CFE = \\angle CBE = 90^\\circ - \\angle ACB$. Therefore, $\\angle DFC = \\angle CFE$ which means that $CF$ is the bisector of $\\angle DFE$. Similarly, $BE$ and $AD$ are the bisectors of $\\angle FED$ and $\\angle FDE$, respectively. This shows that $H$ is the incentre of $\\triangle DEF$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33095, "subject": "Mathematics (Multi-modal)", "question": "Find all pairs of positive integers $(a, b)$ for which\n$$\n\\binom{a+1}{2} \\binom{b+1}{2} = 630.\n$$", "options": [], "answer": "[(3, 14), (14, 3), (2, 20), (20, 2), (1, 35), (35, 1)]", "solution": "Let $f(a) = \\left(\\frac{a+1}{2}\\right)$, then $f(1) = 1$ and $f(35) = 630$. Because $f(a) > 630$ for $a > 35$, any solution $(a, b)$ satisfies $1 \\le a, b \\le 35$ and $f(a)$ and $f(b)$ are divisors of $630 = 2 \\cdot 3^2 \\cdot 5 \\cdot 7$. If $a$ is odd, $a$ is a factor of $f(a)$. If $a$ is even, $a+1$ is odd and a factor of $f(a)$. The odd positive divisors of 360 not exceeding 36 are 1, 3, 5, 7, 9, 15, 21 and 35. If $a$ is among these numbers and $f(a)$ is a factor of 630, $(a+1)/2$ is a factor of 630 as well. This is the case for the numbers 1, 2, 5, 9, 35. If $x = a + 1$ is among these numbers and $f(a)$ is a factor of 630, $a/2 = (x-1)/2$ will be a factor of 630. This is the case for $a$ being one of 2, 4, 6, 14, 20. The values $f(a)$ for these numbers are collected in the following table.\n\n| a | 1 | 2 | 3 | 4 | 5 | 6 | 9 | 14 | 20 | 35 |\n|-----|---|---|---|---|---|---|---|----|----|----|\n| $(a+1)/2$ | 1 | 3 | 6 | 10 | 15 | 21 | 45 | 105 | 210 | 630 |\n\nBecause none of the quotients $630/10 = 63$, $630/15 = 42$, $630/21 = 30$ and $630/45 = 14$ occur in this table, no solution can have $a$ or $b$ equal to 4, 5, 6 or 9. The other values for $a$ lead to the following complete list of solutions:\n$$\n(a, b) = (3, 14), (14, 3), (2, 20), (20, 2), (1, 35), (35, 1).\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33096, "subject": "Mathematics (Multi-modal)", "question": "The altitudes of a triangle $ABC$ are used to form the sides of a second triangle $A_1B_1C_1$. The altitudes of $\\triangle A_1B_1C_1$ are then used to form the sides of a third triangle $A_2B_2C_2$. Prove that $\\triangle A_2B_2C_2$ is similar to $\\triangle ABC$.", "options": [], "answer": "Detailed solution", "solution": "For $\\triangle ABC$, let the altitude $AD$ standing on the base $BC$ have length $p$, let the altitude $BE$ standing on the base $AC$ have length $q$, and let the altitude $CF$ standing on the base $AB$ have length $r$.\n\n![](attached_image_1.png)\n\n*Step 1:* Then $\\triangle ADC$ is similar to $\\triangle BEC$ and so $\\frac{p}{q} = \\frac{b}{a}$ using the usual notation for the sides of the triangle $ABC$.\n\n*Step 2:* Let $\\triangle A_1B_1C_1$ have side lengths $B_1C_1 = p$, $C_1A_1 = q$ and $A_1B_1 = r$. Let the altitude standing on the base $B_1C_1$ have length $p_1$, let the altitude standing on the base $C_1A_1$ have length $q_1$, and let the altitude standing on the base $A_1B_1$ have length $r_1$. Then, similar reasoning to that of Step 1 yields $\\frac{p_1}{q_1} = \\frac{q}{p}$. Using the result of Step 1 then yields $\\frac{p_1}{q_1} = \\frac{a}{b}$.\n\n*Step 3:* Reasoning as in the previous Step, we obtain $\\frac{q_1}{r_1} = \\frac{b}{c}$ and $\\frac{r_1}{p_1} = \\frac{c}{a}$, and so $\\triangle A_2B_2C_2$ is similar to $\\triangle ABC$.\n\n\n*Step 1:* Let $\\Delta$ denote the area of $\\triangle ABC$. Then the altitudes of $\\triangle ABC$ are equal to $p = \\frac{2\\Delta}{a}$, $q = \\frac{2\\Delta}{b}$ and $r = \\frac{2\\Delta}{c}$, using the usual notation for the sides of the triangle $ABC$.\n\n*Step 2:* Next let $\\Delta_1$ denote the area of $\\triangle A_1B_1C_1$. Then the altitudes of $\\triangle A_1B_1C_1$ are equal to $p_1 = \\frac{2\\Delta_1}{p} = \\frac{\\Delta_1}{\\Delta}a$, $q_1 = \\frac{2\\Delta_1}{q} = \\frac{\\Delta_1}{\\Delta}b$ and $r_1 = \\frac{2\\Delta_1}{r} = \\frac{\\Delta_1}{\\Delta}c$.\n\n*Step 3:* From the above, $\\frac{a}{p_1} = \\frac{b}{q_1} = \\frac{c}{r_1}$, so that $\\triangle A_2B_2C_2$ is similar to $\\triangle ABC$.\n*Step 1:* Let $\\Delta$ denote the area of $\\triangle ABC$. Then the altitudes of $\\triangle ABC$ are equal to $p = \\frac{2\\Delta}{a}$, $q = \\frac{2\\Delta}{b}$ and $r = \\frac{2\\Delta}{c}$, using the usual notation for the sides of the triangle $ABC$.\n\n*Step 2:* Let $\\triangle A_1B_1C_1$ have side lengths $B_1C_1 = p$, $C_1A_1 = q$ and $A_1B_1 = r$. Let the altitude standing on the base $B_1C_1$ have length $p_1$, let the altitude standing on the base $C_1A_1$ have length $q_1$, and let the altitude standing on the base $A_1B_1$ have length $r_1$. Then, similar reasoning to that of Step 1 yields $\\frac{p_1}{q_1} = \\frac{q}{p}$. Using the result of Step 1 then yields $\\frac{p_1}{q_1} = \\frac{a}{b}$.\n\n*Step 3:* Reasoning as in the previous Step, we obtain $\\frac{q_1}{r_1} = \\frac{b}{c}$ and $\\frac{r_1}{p_1} = \\frac{c}{a}$, and so $\\triangle A_2B_2C_2$ is similar to $\\triangle ABC$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33097, "subject": "Mathematics (Multi-modal)", "question": "Prove that\n$$\n1 - \\frac{1}{2012} \\left( \\frac{1}{2} + \\frac{1}{3} + \\dots + \\frac{1}{2013} \\right) > \\frac{1}{\\sqrt[2012]{2013}}.\n$$", "options": [], "answer": "Detailed solution", "solution": "Because\n$$\n1 - \\frac{1}{2012} \\left( \\frac{1}{2} + \\frac{1}{3} + \\dots + \\frac{1}{2013} \\right) = \\frac{1}{2012} \\left( 1 - \\frac{1}{2} + 1 - \\frac{1}{3} + \\dots + 1 - \\frac{1}{2013} \\right) \\\\\n= \\frac{1}{2012} \\left( \\frac{1}{2} + \\frac{2}{3} + \\dots + \\frac{2012}{2013} \\right)\n$$\nthe result follows from the AM-GM inequality.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33098, "subject": "Mathematics (Multi-modal)", "question": "Triangle $ABC$ is inscribed in a circle $\\Gamma$. The points $X, Y$ and $Z$ are the midpoints of those arcs $BC, CA$ and $AB$, respectively, on $\\Gamma$ which do not contain the third point of the triangle. The intersection of the triangles $ABC$ and $XYZ$ form a hexagon $DEFGHK$. Prove that the diagonals $DG, EH$ and $FK$ are concurrent.", "options": [], "answer": "Detailed solution", "solution": "Join $AX$, $BY$ and $CZ$. These lines are the bisectors of the angles of $\\triangle ABC$ and intersect at its incentre $I$. Label the vertices of the hexagon as shown below and join $KI$ and $ZA$.\n\n![](attached_image_1.png)\n\nWe have $\\angle KZI = \\angle XZC = \\angle XAC = \\angle KAI$, hence $AZKI$ is a cyclic quadrilateral. This implies $\\angle ZIK = \\angle ZAK = \\angle ZAB = \\angle ZCB$ from which we infer that $KI$ and $BC$ are parallel. Similarly it follows that $IF$ and $BC$ are parallel. This shows that $K, I$ and $F$ are collinear, i.e. the diagonal $KF$ passes through $I$.\n\nThe same argument shows that the other two diagonals, $DG$ and $EH$, also pass through $I$, thus the three diagonals of the hexagon are concurrent.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33099, "subject": "Mathematics (Multi-modal)", "question": "Suppose $a$, $b$, and $c$ are positive real numbers. Prove that,\n$$\n24abc \\leq |a^3 + b^3 + c^3 - (a+b+c)^3| \\leq \\frac{8}{9}(a+b+c)^3,\n$$\nand that for both inequalities, equality occurs if and only if $a = b = c$.", "options": [], "answer": "Detailed solution", "solution": "We factorise $a^3 + b^3 + c^3 - (a+b+c)^3$ as follows:\n$$\n\\begin{aligned}\n& a^3 + b^3 + c^3 - ((a+b)^3 + 3(a+b)^2c + 3(a+b)c^2 + c^3) \\\\\n&= a^3 + b^3 - (a^3 + b^3 + 3a^2b + 3ab^2 + b^3 + 3(a+b)^2c + 3(a+b)c^2) \\\\\n&= -3(a+b)(ab + (a+b)c + c^2) \\\\\n&= -3(a+b)(b+c)(c+a).\n\\end{aligned}\n$$\nHence $|a^3+b^3+c^3-(a+b+c)^3| = 3(a+b)(b+c)(c+a)$. Now, by the AM-GM inequality,\n$$\n(a+b)(b+c)(c+a) \\le \\left( \\frac{(a+b) + (b+c) + (c+a)}{3} \\right)^3 = \\frac{8}{27}(a+b+c)^3,\n$$\nwith equality iff $a+b=b+c=c+a$, equivalently $a=b=c$. It follows that\n$$\n|a^3 + b^3 + c^3 - (a + b + c)^3| \\le \\frac{8}{9}(a + b + c)^3,\n$$\nwith equality iff $a = b = c$.\nBut, if $x, y > 0$, then $x + y \\ge 2\\sqrt{xy}$, with equality iff $x = y$. Hence\n$$\n(a+b)(b+c)(c+a) \\ge 8\\sqrt{ab}\\sqrt{bc}\\sqrt{ca},\n$$\nand the inequality is strict unless $a = b = c$. It follows that\n$$\n|a^3 + b^3 + c^3 - (a + b + c)^3| \\ge 24abc,\n$$\nwith equality iff $a = b = c$.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 33100, "subject": "Mathematics (Multi-modal)", "question": "On the sides $AB$ and $AC$ of triangle $ABC$ the triangles $AEB$ and $ADC$ are constructed, both similar to $\\triangle ABC$ and with $\\angle AEB = \\angle ADC = \\angle BAC$. Prove that the area of $\\triangle ABC$ is less than, equal to or greater than the sum of the areas of triangles $AEB$ and $ADC$ according as $\\angle BAC$ is less than, equal to or greater than a right angle.", "options": [], "answer": "Detailed solution", "solution": "W.l.o.g we can arrange that $\\angle ABE = \\angle ABC$ and $\\angle ACD = \\angle ACB$. Let $D'$ and $E'$ be the reflections of $D$ and $E$ in $AC$ and $AB$, respectively. Then $D'$ and $E'$ are on $BC$, $\\angle D'AC = \\angle DAC = \\angle ABC$ and $\\angle E'AB = \\angle EAB = \\angle BCA$.\n\nIf $\\angle BAC > 90^\\circ$ then $\\angle D'AC + \\angle E'AB = \\angle ABC + \\angle BCA < 90^\\circ < \\angle BAC$.\nIn this case the triangles $AE'B$ and $AD'C$ do not overlap and so the sum of their areas is less than the area of triangle $ABC$.\nIf $\\angle BAC < 90^\\circ$ then $\\angle D'AC + \\angle E'AB = \\angle ABC + \\angle BCA > 90^\\circ > \\angle BAC$.\nIn this case the triangles $AE'B$ and $AD'C$ overlap and so the sum of their areas is greater than the area of triangle $ABC$.\nIf $\\angle BAC = 90^\\circ$ then $\\angle D'AC + \\angle E'AB = \\angle ABC + \\angle BCA = 90^\\circ = \\angle BAC$.\nIn this case the triangles $AE'B$ and $AD'C$ exactly cover triangle $ABC$ and so the sum of their areas is equal to the area of triangle $ABC$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33101, "subject": "Mathematics (Multi-modal)", "question": "A polynomial in two variables $x$, $y$ is called homogeneous of degree $n \\geq 0$ if all its terms are constant multiples of $x^k y^{n-k}$ for some integer $k$ with $0 \\leq k \\leq n$. Fix $n \\geq 1$ and suppose that $P(x, y)$ and $Q(x, y)$ are two homogeneous polynomials of degree $n$, such that $P(k, n-k) = Q(n-k, k)$ for all integers $k$ satisfying $0 \\leq k \\leq n$. Prove that $P(x, y) = Q(y, x)$ for all $x$ and $y$.", "options": [], "answer": "Detailed solution", "solution": "Consider the homogeneous polynomial $R(x, y) = P(x, y) - Q(y, x)$; it can be written as\n$$\nR(x, y) = r_0x^n + r_1x^{n-1}y + \\dots + r_kx^{n-k}y^k + \\dots + r_{n-1}xy^{n-1} + r_ny^n.\n$$\n\nBy assumption we have $R(k, n - k) = 0$ for $k = 0, 1, 2, \\dots, n$. For $k = 0$ and $k = n$ we get $0 = R(0, n) = r_n n^n$ and $0 = R(n, 0) = r_0 n^n$. Therefore,\n\n$r_0 = r_n = 0$ and each term of $R(x, y)$ is divisible by $xy$. If $n = 1$, this means that $R = 0$. For $n \\ge 2$ there is a homogeneous polynomial $S(x, y)$ of degree $n-2$ such that $xyS(x, y) = R(x, y)$.\nOur aim is to show that $R(x, y) = 0$ and so we can assume $n \\ge 2$. From the univariate polynomial $\\tilde{S}(x) = S(x, 1)$ we can recover $S$, because\n$$\nS(x, y) = y^n \\tilde{S}(x/y).\n$$\nThis is so because $S$ is homogeneous and $x^{n-k}y^k = y^n(x/y)^k$. To prove that $R = 0$ it is therefore sufficient to show that $\\tilde{S} = 0$.\nBy assumption we have $S(k, n-k) = 0$ for $k = 1, 2, \\dots, n-1$. From $S(k, n-k) = (n-k)^n \\tilde{S}(k/(n-k))$ we deduce that the $n-1$ distinct numbers $\\frac{1}{n-1}, \\frac{2}{n-2}, \\dots, \\frac{n-2}{2}, \\frac{n-1}{1}$ are roots of the polynomial $\\tilde{S}(x)$. Because the degree of $\\tilde{S}(x)$ is at most the degree of $S(x, y)$, which was equal to $n-2$, this implies that $\\tilde{S} = 0$ and so $R = 0$ as well.", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 33102, "subject": "Mathematics (Multi-modal)", "question": "Find the least positive integer $a$ such that $2013$ divides $94^n + a \\cdot 28^n$ for some positive integer $n$.", "options": [], "answer": "428", "solution": "Because $2013 = 3 \\cdot 11 \\cdot 61$, the requirement $94^n + a \\cdot 28^n \\equiv 0 \\pmod{2013}$ implies $a+1 \\equiv 0 \\pmod{3}$, $6^n(a+1) \\equiv 0 \\pmod{11}$ and $28^n((-1)^n + a) \\equiv 0 \\pmod{61}$. Therefore $a \\equiv -1 \\pmod{3}$, $a \\equiv -1 \\pmod{11}$ and $a \\equiv (-1)^{n+1} \\pmod{61}$. Using the Chinese Remainder Theorem, we see that for $n$ even the smallest positive integer $a$ which satisfies these three congruences is $2012$. For odd $n$, we need to solve $33k-1 \\equiv 1 \\pmod{61}$. Using Euclid's Algorithm, we obtain $13 \\cdot 61 - 24 \\cdot 33 = 1$, and we see that $k \\equiv -24 \\cdot 2 \\equiv 13 \\pmod{61}$. This yields that the smallest possible $a$ is equal to $33 \\cdot 13 - 1 = 428$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33103, "subject": "Mathematics (Multi-modal)", "question": "The integer $N$ has eight positive divisors $1 = d_1 < d_2 < d_3 < \\dots < d_8 = N$. Find the two smallest integers $N$ for which $2d_2d_5 = d_3d_4 + 3$.", "options": [], "answer": "1107 and 2013", "solution": "The number of distinct positive divisors of an integer $N = \\prod p_i^{e_i}$ with distinct primes $p_i$ is equal to $\\prod (e_i + 1)$. Because $8$ has only the factorizations $8$, $4 \\cdot 2$ and $2 \\cdot 2 \\cdot 2$, we have to consider three cases:\n\nCase A: $N = p^7$\nCase B: $N = p^3q$\nCase C: $N = pqr$,\nwhere $p, q, r$ are distinct primes. and these reduce to sub-cases.\n\nIn Case A we have $d_k = p^{k-1}$ and $2d_2d_5 = d_3d_4 + 3$ is equivalent to $p^5 = 3$, which does not hold for any $p$.\n\nIn Case B we consider the following four sub-cases\n1) $q < p$\n2) $p < q < p^2$\n3) $p^2 < q < p^3$\n4) $p^3 < q$.\nThese inequalities lead to identification of $d_2, d_3, d_4, d_5$ in each case as follows:\n1) $d_2 = q$, $d_3 = p$, $d_4 = pq$, $d_5 = p^2$\n2) $d_2 = p$, $d_3 = q$, $d_4 = p^2$, $d_5 = pq$\n3) $d_2 = p$, $d_3 = p^2$, $d_4 = q$, $d_5 = p^3$\n4) $d_2 = p$, $d_3 = p^2$, $d_4 = p^3$, $d_5 = q$\nThese give rise to one solution from sub-case 4) with $p = 3$ and $q = 41$ leading to $N = 3^3 \\cdot 41 = 1107$. The first three cases would require $3$ to be divisible by $p^2$, which is not possible.\n\nIn Case C, w.l.o.g., we can assume $p < q < r$. We consider two sub-cases:\n1) $r < pq$ and 2) $pq < r$.\n\n1) $d_2 = p$, $d_3 = q$, $d_4 = r$, $d_5 = pq$\n\n$2p^2q = qr + 3$, i.e. $q(2p^2 - r) = 3$ and so $q = 3$ and $2p^2 = r + 1$. As $p < q$ we get $p = 2$ and so $r = 7$. However, we now have $r = 7 > 6 = pq$ and no solutions arise.\n\n2) $d_2 = p$, $d_3 = q$, $d_4 = pq$, $d_5 = r$\n\n$2pr = pq^2 + 3$, i.e. $p(2r - q^2) = 3$. This gives $p = 3$. We have a solution if $r = (q^2 + 1)/2$. Using $q = 5, 7, 11$ gives $r = 13, 25, 61$, respectively. As $13 < pq = 15$ and $25$ is not prime, the smallest value of $q$ to yield a solution is $q = 11$. This gives $N = 2013$.\n\nLarger values of $q$ for which $(q^2 + 1)/2$ is a prime (greater than $61$) yield other values of $N$ which will be bigger than $1107$ and $2013$. Thus these are the two smallest solutions.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33104, "subject": "Mathematics (Multi-modal)", "question": "We say that a doubly infinite sequence\n$$\n\\dots, s_{-2}, s_{-1}, s_0, s_1, s_2, \\dots\n$$\nis subaveraging if $s_n = (s_{n-1} + s_{n+1})/4$ for all integers $n$.\n\na. Find a subaveraging sequence in which all entries are different from each other. Prove that all entries are indeed distinct.\n\nb. Show that if $(s_n)$ is a subaveraging sequence such that there exist distinct integers $m, n$ such that $s_m = s_n$, then there are infinitely many pairs of distinct integers $i, j$ with $s_i = s_j$.", "options": [], "answer": "Detailed solution", "solution": "a. A sequence $(s_n)$ is subaveraging iff $s_{n+1} = 4s_n - s_{n-1}$ for all $n \\in \\mathbb{Z}$. This is equivalent to $s_{n-1} = 4s_n - s_{n+1}$ so that we can go backwards by the same recursion. The sequence $(s_n)$ is completely determined by $s_0$ and $s_1$.\n\nFor $s_0 = 0$ and $s_1 = 1$ we prove by induction that $0 \\le s_n < s_{n+1}$ for all $n \\ge 0$. The start of the induction is clear and for the step we have $s_{n+1} = 4s_n - s_{n-1} > 3s_n \\ge s_n \\ge 0$ for all $n \\ge 1$.\n\nMoreover, we obtain $s_{-1} = -1$ and so $s_{-n} = -s_n$ for all $n \\ge 1$. This implies $s_{n-1} < s_n \\le 0$ for all $n \\le 0$ and we have shown that all entries of $(s_n)$ are distinct.\n\nb. If $(s_k)$ is subaveraging, then the shifted sequence $(t_k)$ given by $t_k = s_{k+n}$ is subaveraging as well, because it satisfies the same recursion. The same is true for the reflected sequence $(r_k)$ given by $r_k = s_{-k}$, because the descending recursion $s_{n-1} = 4s_n - s_{n+1}$ translates into $r_{n+1} = 4r_n - r_{n-1}$.\n\nAssume now that $(s_k)$ is a subaveraging sequence with $s_n = s_m$ and $n < m$. Consider the shifted sequence $t_k = s_{k+n}$ and the reflected and shifted sequence $r_k = s_{m-k}$. They satisfy $t_0 = r_0 = s_n$ and $t_{m-n} = r_{m-n} = s_n$. The difference $(d_k)$ of these subaveraging sequences, given by $d_k = t_k - r_k$, is subaveraging again (because the recursion is linear). We now have $d_0 = d_{m-n} = 0$. If $d_1 \\ne 0$, we can divide each term of $(d_k)$ by $d_1$ and obtain another subaveraging sequence $q_k = d_k/d_1$ with $q_0 = 0$ and $q_1 = 1$. As we have seen in part (a), all entries of this sequence are distinct. This contradicts $m - n > 0$ and $q_{m-n} = 0$. Therefore, $d_1 = 0$ and so $d_k = 0$ for all $k \\in \\mathbb{Z}$. This implies that $t_k = r_k$, i.e. $s_{k+n} = s_{m-k}$ for all $k \\in \\mathbb{Z}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33105, "subject": "Mathematics (Multi-modal)", "question": "Let $ABC$ be an isosceles triangle with $|AB| = |AC|$. The points $B'$ and $C'$ are on the line $BC$ (extended in both directions) such that $B$ is between $B'$ and $C$ and $C$ is between $B$ and $C'$. Moreover, $B'BA$ and $ACC'$ are isosceles triangles. Let $X$ be a point on the line $BC$ such that $B'$ is not between $X$ and $B$.\nProve that $|AX| = |BX|$ if and only if $\\frac{1}{|AB|} = \\frac{1}{|B'X|} + \\frac{1}{|BC'|}$.", "options": [], "answer": "Detailed solution", "solution": "Because $|B'B| = |BA| = |AC| = |CC'|$, we have $|B'X| = |AB| + |BX|$ and $|BC'| = |BC| + |AB|$. For the first equation we used that $B$ is between $B'$ and $X$. To see this, we have to exclude that $X$ is between $B$ and $B'$ (by assumption, $B'$ is not between $X$ and $B$). If $|AX| = |BX|$, $X$ cannot be between $B$ and $B'$, because the angle $\\angle CBA$ is acute. If $\\frac{1}{|AB|} = \\frac{1}{|B'X|} + \\frac{1}{|BC'|}$, we have $|B'X| > |AB| = |B'B|$, hence $X$ is not between $B$ and $B'$.\n![](attached_image_1.png)\nWe see now that the equation $\\frac{1}{|AB|} = \\frac{1}{|B'X|} + \\frac{1}{|BC'|}$ is equivalent to\n$$ \\frac{1}{|AB|} = \\frac{1}{|AB| + |BX|} + \\frac{1}{|BC| + |AB|} $$ which rewrites as\n$$\n(|AB| + |BX|)(|BC| + |AB|) = |AB|(|AB| + |BX|) + |AB|(|BC| + |AB|)\n$$\nwhich simplifies to $|BC| \\cdot |BX| = |AB|^2$, or equivalently $\\frac{|AB|}{|BC|} = \\frac{|BX|}{|AB|}$. Because the triangles $ABX$ and $ABC$ have a common angle at $B$, this last equality is equivalent to these two triangles being similar with sides $AB$ and $BX$ in triangle $ABX$ corresponding to sides $BC$ and $AB$ in triangle $ABC$. Because $\\triangle ABC$ is isosceles, the same is then true for the triangle $ABX$, hence $|AX| = |BX|$. On the other hand, if $|AX| = |BX|$, triangle $ABX$ is isosceles and because it shares an angle with $\\triangle ABC$ at $B$, both triangles are similar. This finishes the proof of the desired equivalence.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33106, "subject": "Mathematics (Multi-modal)", "question": "Suppose $a$, $b$, and $c$ are real numbers, with $a \\neq b$. Prove that the minimum value of the quadratic polynomial\n$$\np(x) = 3x^2 + 2c x - (c(a+b) + (a^2 + ab + b^2)), \\quad -\\infty < x < \\infty,\n$$\nis negative. Prove also that $p(a) + p(b)$ is positive.", "options": [], "answer": "Detailed solution", "solution": "$$\n\\begin{align*}\n3p(x) &= (3x)^2 + 2c(3x) - (3c(a+b) + 3(a^2 + ab + b^2)) \\\\\n&= (3x + c)^2 - (c^2 + 3c(a+b) + 3(a^2 + ab + b^2)) \\\\\n&= (3x + c)^2 - \\left( \\left(c + \\frac{3}{2}(a+b)\\right)^2 - \\frac{9}{4}(a+b)^2 + 3(a^2 + ab + b^2) \\right) \\\\\n&= (3x + c)^2 - \\left( c + \\frac{3}{2}(a+b) \\right)^2 - \\frac{12(a^2 + ab + b^2) - 9(a^2 + 2ab + b^2)}{4} \\\\\n&= (3x + c)^2 - \\left( c + \\frac{3}{2}(a+b) \\right)^2 - \\frac{3(a^2 - 2ab + b^2)}{4} \\\\\n&\\geq - \\left( \\left(c + \\frac{3}{2}(a+b)\\right)^2 + \\frac{3(a-b)^2}{4} \\right),\n\\end{align*}\n$$\nfor all real $x$, with equality iff $x = -\\frac{c}{3}$. Thus\n$$\n\\frac{(2c + 3(a+b))^2 + 3(a-b)^2}{12}\n$$\nis the minimum value of $p$. Since $a \\neq b$, this is a negative real number.\n\nNext\n$$\n\\begin{aligned}\np(a) &= 3a^2 + 2c a - c(a+b) - (a^2 + ab + b^2) \\\\\n&= 2a^2 - ab - b^2 + c(a-b) \\\\\n&= (2a + b)(a-b) + c(a-b) \\\\\n&= (a-b)(2a + b + c).\n\\end{aligned}\n$$\nAnd interchanging $a$ and $b$, $p(b) = (b-a)(2b + a + c)$. Hence\n$$\np(a) + p(b) = (a-b)(2a + b + c - (2b + a + c)) = (a-b)^2 > 0\n$$", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 33107, "subject": "Mathematics (Multi-modal)", "question": "Find the smallest positive integer $N$ for which the equation\n$$(x^2 - 1)(y^2 - 1)(z^2 - 1) = N$$\nhas at least two different integer solutions $(x, y, z)$ satisfying $1 < x \\le y \\le z$.", "options": [], "answer": "1080", "solution": "Let us first determine the smallest possible $N$ for which we find two solutions of the form $(2, y, z)$. If we let $M = N/3$, this amounts to finding the smallest possible positive integer $M$ for which the equation $(y^2 - 1)(z^2 - 1) = M$ has at least two solutions with $2 \\le y \\le z$. This is solved in problem 15, where it is shown that the smallest $M$ is equal to $360$. Therefore, we find two solutions $(2, 4, 5)$ and $(2, 2, 11)$ for $N = 3 \\cdot 360 = 1080$.\nThe smallest value the expression $(x^2-1)(y^2-1)(z^2-1)$ can have if $3 \\le x \\le y \\le z$ is $8^3 = 512$. But this happens only if $x = y = z = 3$. If $z \\ge 4$, the least value will be $8^2 \\cdot 15 = 960$, only occurring for $(x, y, z) = (3, 3, 4)$. If $z \\ge 5$ or $y \\ge 4$, we obtain at least $8^2 \\cdot 24 = 1536 > 1080$ or $8 \\cdot 15^2 = 1800 > 1080$, respectively.\nBecause $512$ is not divisible by $3$, there cannot exist a solution of the form $(2, y, z)$ for $N = 512$.\nFinally, if $N = 960$ and $x = 2$, we have to solve $(y^2-1)(z^2-1) = 320 = 2^6 \\cdot 5$. Because $3 \\cdot 120 > 320$, we have $2 \\le y \\le z \\le 10$. A look at the first table in the solution of problem 4 shows that the only numbers of the form $x^2 - 1$ for $x \\le 10$, which have $2$ and $5$ as its only prime factors, are $8$ and $80$. But $8 \\cdot 80 \\ne 320$ and so for $N = 960$ we cannot find two different solutions. This proves that $N = 1080$ is the desired minimal value.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 33108, "subject": "Mathematics (Multi-modal)", "question": "Let $ABC$ be an isosceles triangle with $|AB| = |AC|$. The points $D, E$ and $F$ are on the sides $BC, CA$ and $AB$, respectively, such that $\\angle FDE = \\angle ABC$ and $FE$ is not parallel to $BC$. Prove that $BC$ is tangent to the circumcircle of $\\triangle DEF$ if and only if $D$ is the midpoint of $BC$.", "options": [], "answer": "Detailed solution", "solution": "Assume first that $BC$ is tangent to the circumcircle of $\\triangle DEF$. Then $\\angle EDC = \\angle DFE$. By assumption $\\angle FDE = \\angle ABC = \\angle ACB$, thus the two triangles $DEC$ and $DEF$ are similar. Hence, $\\frac{|BD|}{|FD|} = \\frac{|DE|}{|FE|}$. Similarly we obtain that $\\triangle FBD$ and $\\triangle DEF$ are similar and so $\\frac{|CD|}{|DE|} = \\frac{|FD|}{|FE|}$. We now easily see that $|BD| = |CD|$.\n\nOn the other hand, let $D$ be the midpoint of $BC$ and let the circumcircle of $\\triangle DEF$ meet $AB$ at $H$ again (as shown in the diagram).\n\n![](attached_image_1.png)\n\nThen $\\angle EDF = \\angle EHF$ hence $\\angle EHF = \\angle ABC$ and so $HE$ is parallel to $BC$. Because $AD$ is perpendicular to $BC$ and bisects $BC$, $AD$ is perpendicular to $HE$ and bisects $HE$ as well. Therefore, the centre of the circumcircle of $\\triangle DEF$, which also is the circumcircle of $\\triangle HEF$, lies on the line $AD$. This implies that $BC$ is tangent to the circumcircle of $\\triangle DEF$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33109, "subject": "Mathematics (Multi-modal)", "question": "a. Let $f(x) = x^2 + 8$. Prove that $f(x\\sqrt{2})$ is the product $P(x)Q(x)$ of two polynomials of degree two with integer coefficients.\n\nb. Let $g(x) = x^4 + x^3 + x^2 + x + 1$. Prove that $g(5x^2)$ is the product $R(x)S(x)$ of two polynomials of degree four with integer coefficients.\n\nc. Let $h(x) = (x+1)^{13} - x^{13} - 1$. Prove that $h(x)$ is the product $T(x)U(x)$ of two polynomials of degree six with integer coefficients.", "options": [], "answer": "Detailed solution", "solution": "a.\n$$(x^2\\sqrt{2})^2 + 8 = 2(x^4+4) = 2((x^2+2)^2 - 4x^2) = 2(x^2-2x+2)(x^2+2x+2).$$\n\nb.\n$g(x) = x^4 + x^3 + x^2 + x + 1 = (x - \\zeta)(x - \\zeta^2)(x - \\zeta^3)(x - \\zeta^4)$, where $\\zeta$ is a primitive fifth root of unity. Using $\\zeta = \\zeta^6$ and $\\zeta^3 = \\zeta^8$ we have\n$$\ng(x) = (x - \\zeta^2)(x - \\zeta^4)(x - \\zeta^6)(x - \\zeta^8).\n$$\nAs $5x^2 - \\zeta^{2k} = (x\\sqrt{5} + \\zeta^k)(x\\sqrt{5} - \\zeta^k)$, we can write $g(5x^2) = g_1(x)g_2(x)$ where\n$$\ng_1(x) = (x\\sqrt{5} + \\zeta)(x\\sqrt{5} + \\zeta^4)(x\\sqrt{5} - \\zeta^2)(x\\sqrt{5} - \\zeta^3) \\text{ and}\n$$\n$$\ng_2(x) = (x\\sqrt{5} + \\zeta^2)(x\\sqrt{5} + \\zeta^3)(x\\sqrt{5} - \\zeta)(x\\sqrt{5} - \\zeta^4).\n$$\n\nWhen multiplying these out, we are interested in $z = \\zeta + \\zeta^4 = \\zeta + \\zeta^{-1}$. Using $g(\\zeta) = 0$ we easily verify that $z^2 + z - 1 = 0$. Therefore $z = (-1 \\pm \\sqrt{5})/2$ and $2z + 1 = \\pm\\sqrt{5}$. Moreover, $\\zeta^2 + \\zeta^3 = \\zeta^2 + \\zeta^{-2} = z^2 - 2 = -(z + 1)$. Hence\n$$\n\\begin{aligned}\ng_1(x) &= (5x^2 + xz\\sqrt{5} + 1)(5x^2 + x(z+1)\\sqrt{5} + 1) \\\\\n&= 25x^4 + 5\\sqrt{5}(2z+1)x^3 + 5(z^2+z+2)x^2 + \\sqrt{5}(2z+1)x + 1 \\\\\n&= 25x^4 \\pm 25x^3 + 15x^2 \\pm 5x + 1.\n\\end{aligned}\n$$\nThis gives the factorisation\n$$\ng(5x^2) = (25x^4 + 25x^3 + 15x^2 + 5x + 1)(25x^4 - 25x^3 + 15x^2 - 5x + 1).\n$$\n\nc.\n$h(x) = (x+1)^{13} - x^{13} - 1$ has obvious roots $x = 0, x = -1$. A key observation is that if $\\omega$ is a primitive cube root of unity, then $\\omega + 1 = -\\omega^2$, so $(\\omega+1)^{13} - \\omega^{13} - 1 = -\\omega^2 - \\omega - 1 = 0$. Since $(x-\\omega)(x-\\omega^2) = x^2+x+1$, this gives the factor $x(x+1)(x^2+x+1)$ of $h(x)$. By long division, we obtain $h(x) = 13x(x+1)(x^2+x+1)k(x)$, where\n$$\nk(x) = x^8 + 4x^7 + 12x^6 + 22x^5 + 27x^4 + 22x^3 + 12x^2 + 4x + 1.\n$$\nWe find $k(\\omega) = 0$ and thus $k(x)$ is divisible by $x^2 + x + 1$, and the result is proved.\nAlternatively, we might use that the derivative $h'(x) = 13(x+1)^{12} - 13x^{12}$ has $\\omega$ as a root, which is easily seen. This implies that $h(x)$ has a root of order at least two at $\\omega$. Without long division we see now that $h(x)$ has the factor of degree six $x(x+1)(x^2+x+1)^2$ and the result follows again. The factorisation of $h(x)$ explicitly is\n$$\n13(x^6 + 3x^5 + 5x^4 + 5x^3 + 3x^2 + x)(x^6 + 3x^5 + 8x^4 + 11x^3 + 8x^2 + 3x + 1).\n$$", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 33110, "subject": "Mathematics (Multi-modal)", "question": "Let $k \\ge 2$ be an integer. Prove that for each positive integer $N < 40 \\cdot 3^k$ the equation\n$$\n(x_1^2 - 1)(x_2^2 - 1) \\cdots (x_k^2 - 1) = N\n$$\nhas at most one integer solution $(x_1, x_2, \\dots, x_k)$ such that $1 < x_1 \\le x_2 \\le \\dots \\le x_k$.", "options": [], "answer": "Detailed solution", "solution": "Because $N > 0$, we cannot have $x_i = 1$ and so $2 \\le x_1$. Define $f(x) = (x^2 - 1)/3$ and for a given $N < 40 \\cdot 3^k$ we let $M = N/3^k$. The equation $(x_1^2 - 1)(x_2^2 - 1) \\cdots (x_k^2 - 1) = N$ is equivalent to $f(x_1)f(x_2) \\cdots f(x_k) = M$. If $x \\ge 2$ is an integer, $f(x) \\ge 1$ and so $f(x_k) \\le M < 40$. As $f(11) = 40$, we have $x_k \\le 10$ for any solution. Here is a table of the relevant values of $f$:\n\n| x | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |\n|-------|---|------|---|---|-------|----|----|-------|----|\n| $f(x)$| 1 | $8/3$| 5 | 8 | $35/3$| 16 | 21 | $80/3$| 33 |\n\nWe need to prove that there is no positive rational number $M < 40$ which is a product in two different ways of numbers from the second row of this table. If one of the values $f(x_i)$ is greater than $\\frac{8}{3}$, it is at least 5, hence the product of the other factors is below 8. This shows that $\\frac{8}{3}$ and 5 are the only possible factors greater than 1 if at least two factors are not equal to 1. The expressions of the form $(\\frac{8}{3})^r 5^s$ below 40 are: $1, \\frac{8}{3}, \\frac{64}{9}, \\frac{512}{27}, \\frac{40}{3}, \\frac{320}{9}, 5$ and 25. Each of them is obtained from a unique pair of integers $(r, s)$ and, except $1, \\frac{8}{3}$ and 5, none of them appears as a value $f(x)$ in the table. This shows that there is no positive rational number $M < 40$ which is a product in two different ways of numbers of the form $f(x)$ with $2 \\le x \\le 10$ which proves that, up to permutation, there can be at most one solution in positive integers to $(x_1^2-1)(x_2^2-1)\\cdots(x_k^2-1) = N$ for any positive integer $N < 40 \\cdot 3^k$.\n\n**Remark:** For $(2, \\dots, 2, 4, 5)$ and $(2, \\dots, 2, 2, 11)$ we obtain $N = 40 \\cdot 3^k$.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 33111, "subject": "Mathematics (Multi-modal)", "question": "Prove that the cubic $x^3 - 3a x^2 + 2x - 4a$ has only one real root for every real number $a$.", "options": [], "answer": "Detailed solution", "solution": "Reduce the given polynomial to normal form, which can be done by noting that\n$$\n\\begin{aligned}\nx^3 - 3a x^2 + 2x - 4a &= (x-a)^3 - 3a^2 x + a^3 + 2(x-a) - 2a \\\\\n&= (x-a)^3 + (2 - 3a^2)(x-a) - 2a^3 - 2a \\\\\n&= X^3 + pX + q,\n\\end{aligned}\n$$\nwhere $X = x - a$, and $p = (2 - 3a^2)$, $q = -2a(a^2 + 1)$. The condition that this cubic has three real roots is that\n$$\n\\frac{(2 - 3a^2)^3}{27} + \\frac{(2a(a^2 + 1))^2}{4} = \\frac{p^3}{27} + \\frac{q^2}{4} < 0.\n$$\nLetting $t = a^2$ the requirement is that $(2 - 3t)^3 + 27t(t + 1)^2 < 0$, i.e., that $108t^2 - 9t + 8 < 0$. But $108t^2 - 9t + 8 = 3(6t - \\frac{1}{4})^2 + 8 - \\frac{3}{16}$ and so there is no real number $t$ for which this is negative. Therefore, the cubic cannot have three real roots. As its coefficients are real numbers, this implies that it has one and only one real root.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33112, "subject": "Mathematics (Multi-modal)", "question": "Prove for all integers $n \\ge 0$ that\n$$\n\\sum_{k=0}^{n} \\frac{(n+k)!}{k!} = \\frac{(2n+1)!}{(n+1)!}\n$$", "options": [], "answer": "Detailed solution", "solution": "With the usual notation for the binomial coefficients,\n$$\n\\binom{n}{r} = \\begin{cases} 0, & \\text{if } r < 0 \\text{ or } r > n, \\\\ \\frac{n!}{(n-r)!r!}, & \\text{if } 0 \\le r \\le n, \\end{cases}\n$$\nupon dividing both sides by $n!$, we see that an equivalent formulation of the problem is to show for all $n \\ge 0$ that\n$$\n\\sum_{k=0}^{n} \\binom{n+k}{n} = \\binom{2n+1}{n}\n$$\nBut $\\binom{n+1}{r} = \\binom{n}{r} + \\binom{n}{r-1}$, and so $\\binom{n+k}{n} = \\binom{n+k+1}{n+1} - \\binom{n+k}{n+1}$. Hence, we get a telescopic sum\n$$\n\\begin{aligned}\n\\sum_{k=0}^{n} \\binom{n+k}{n} &= \\sum_{k=0}^{n} \\left( \\binom{n+k+1}{n+1} - \\binom{n+k}{n+1} \\right) \\\\\n&= \\binom{2n+1}{n+1} - \\binom{n}{n+1} = \\binom{2n+1}{n+1} = \\binom{2n+1}{n}.\n\\end{aligned}\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33113, "subject": "Mathematics (Multi-modal)", "question": "Find all integers $n$ for which\n$$\nf(n) = \\frac{9n(n-5)^{2013} - n^2 - 7}{n^2 - 9n + 21}\n$$\nis an integer.", "options": [], "answer": "2, 4, 5, 7", "solution": "Clearly $f(n)$ is an integer if $n^2 - 9n + 21 = 1$. Because $n^2 - 9n + 21 = 1$ can be rewritten as $(n - 4)(n - 5) = 0$, the solutions are $n = 4$ and $n = 5$. For the general situation, we use this insight and write $n^2 - 9n + 21 = (n - 4)(n - 5) + 1$, which suggests to use a new variable $x = n - 5$. In this\n\nnotation $n^2 - 9n + 21 = (x+1)x + 1 = x^2 + x + 1$ and\n$$\n\\begin{align*} \nf(x+5) &= \\frac{9(x+5)x^{2013} - (x+5)^2 - 7}{x^2 + x + 1} \\\n&= \\frac{9(x+5)x^{2013} - 9(x+5) + 9x + 45 - x^2 - 10x - 32}{x^2 + x + 1} \\\n&= \\frac{9(x+5)(x^{2013} - 1) - x^2 - x - 1 + 14}{x^2 + x + 1} \\\n&= \\frac{9(x+5)(x^{2013} - 1)}{x^2 + x + 1} - 1 + \\frac{14}{x^2 + x + 1} \n\\end{align*}\n$$\nBecause $2013 = 3 \\cdot 671$, we have $x^{2013} - 1 = (x^3 - 1)(x^{3 \\cdot 670} + \\dots + x^3 + 1)$. From $x^3 - 1 = (x-1)(x^2+x+1)$ we see now that $x^2+x+1$ divides $x^{2013}-1$. It follows that $f(x+5)$ is an integer iff $x^2+x+1$ divides 14. As $x^2+x+1 = x(x+1)+1$ is always odd, $x^2+x+1$ has to be equal to $\\pm 1$ or $\\pm 7$ for $f(x+5)$ to be an integer. Moreover, $4(x^2+x+1) = (2x+1)^2+3 > 0$, so that we can exclude the negative values. The four solutions of the remaining two quadratic equations are $x = -3, -1, 0, 2$ which shows that $f(n)$ is an integer exactly for $n = 2, 4, 5, 7$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33114, "subject": "Mathematics (Multi-modal)", "question": "$A$, $B$ and $C$ are points on the circumference of a circle with centre $O$, such that $\\triangle ABC$ is not a right-angled triangle. The point $P$ lies on the circumcircle $\\Gamma_1$ of the triangle $OAB$ such that $OP$ is a diameter of $\\Gamma_1$. The point $Q$ lies on the circumcircle $\\Gamma_2$ of the triangle $OAC$ such that $OQ$ is a diameter of $\\Gamma_2$. Tangents are drawn to the circles $\\Gamma_1$ and $\\Gamma_2$ at $P$ and $Q$ respectively; these two tangents intersect at $K$. The line $CA$ meets the circle $\\Gamma_1$ at $A$ and $X$. Prove that $X$ lies on the line $KO$.", "options": [], "answer": "Detailed solution", "solution": "Case 1: $X$ and $P$ lie on the same side of the line $AO$.\n\n![](attached_image_1.png)\n\n*Step 1:* $\\angle QAO = 90^\\circ$ (angle in a semicircle) and similarly $\\angle PAO = 90^\\circ$.\nTherefore $PAQ$ is a straight line and is a tangent to the circumcircle of $\\triangle ABC$ at the point $A$.\n\n*Step 2:* Note also that $CX \\perp OQ$ since $OA = OC$ and $OQ$ is a diameter.\n\n*Step 3:* Now\n$$\n\\begin{aligned}\n\\angle AXO &= \\angle APO \\text{ (subtending same arc)} \\\\\n&= 90^\\circ - \\angle KPQ \\text{ since } KP \\text{ is a tangent at } P.\n\\end{aligned}\n$$\nAlso $\\angle AXO = \\angle CXO = 90^\\circ - \\angle XOQ$ since $OQ \\perp CX$, and therefore $\\angle KPQ = \\angle XOQ$.\n\n*Step 4:* Now $\\angle KPO + \\angle KQO = 90^\\circ + 90^\\circ = 180^\\circ$, so $KPOQ$ is a cyclic quadrilateral.\n\n*Step 5:* Therefore $\\angle KOQ = \\angle KPQ$.\n\n*Step 6:* Therefore $\\angle KOQ = \\angle XOQ$.\n\n*Step 7:* Therefore $KO$ passes through $X$.\n\n\nCase 2: $X$ and $P$ lie on opposite sides of the line $AO$.\n\n![](attached_image_2.png)\n\nWe have\n$$\n\\angle AXO + \\angle APO = 180^\\circ\n$$\n\nand so\n$$\n\\begin{aligned}\n\\angle AXO &= 180^\\circ - \\angle APO \\\\\n&= 180^\\circ - (90^\\circ - \\angle KPQ) = 90^\\circ + \\angle KPQ.\n\\end{aligned}\n$$\nAlso\n$$\n\\begin{aligned}\n\\angle AXO &= 180^\\circ - \\angle CXO \\\\\n&= 180^\\circ - (90^\\circ - \\angle XOQ) \\\\\n&= 90^\\circ + \\angle XOQ.\n\\end{aligned}\n$$\nTherefore $\\angle KPQ = \\angle XOQ$.\n\n*Step 4:* Now $\\angle KPO + \\angle KQO = 90^\\circ + 90^\\circ = 180^\\circ$, so $KPOQ$ is a cyclic quadrilateral.\n\n*Step 5:* Therefore $\\angle KOQ = \\angle KPQ$.\n\n*Step 6:* Therefore $\\angle KOQ = \\angle XOQ$.\n\n*Step 7:* Therefore $KO$ passes through $X$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33115, "subject": "Mathematics (Multi-modal)", "question": "There are $100$ towns on the island of Hibernia. Every pair of towns is either connected by a single road, or is not connected. If we consider any subset of $98$ towns, the total number of roads connecting these towns to each other is a constant. There are $N$ roads in total in Hibernia.\nFind all possible values of $N$.", "options": [], "answer": "4950", "solution": "Consider the more general problem with $n$ towns (the specific case for this problem is $n = 100$). Let $K$ denote the (constant) number of roads connecting any subset of $n-2$ towns. Also, let $c_{i,j} \\in \\{0,1\\}$ denote the number of roads connecting town $i$ and town $j$. Finally, for $i = 1, 2, \\dots, n$, let $d_i$ denote the total number of roads connected to town $i$.\n\nNote that $N \\le n(n-1)/2$. Clearly, $\\sum d_i = 2N$ and $\\sum c_{i,j} = N$, where the latter sum is over all $2$-element subsets $\\{i,j\\}$ of $\\{1, 2, \\dots, n\\}$. The number of roads connected to at least one of the towns with number $i$ or $j$ is equal to $d_i + d_j - c_{i,j}$. Thus, for any $2$-element subset $\\{i,j\\} \\subset \\{1, 2, \\dots, n\\}$,\n$$\nK = N - d_i - d_j + c_{i,j}.\n$$\nAdding all these equations for every $2$-element subset $\\{i,j\\}$ yields\n$$\n\\binom{n}{2}K = \\binom{n}{2}N - 2(n-1)N + N\n$$\nwhich may be rewritten as $n(n-1)K = (n-2)(n-3)N$.\n\nNote that both $n(n-1)$ and $(n-2)(n-3)$ are divisible by $2$, and that the only integer $k > 2$ which can divide both $n(n-1)$ and $(n-2)(n-3)$ is $3$ (this latter case occurring if and only if $n$ is divisible by $3$). Since $3$ does not divide $n = 100$, in the situation of the given problem $n(n-1)/2$ and $(n-2)(n-3)/2$ are coprime. Hence, $N$ is a multiple of $n(n-1)/2$. As $N \\le n(n-1)/2$ (with equality when all pairs of towns are connected), the only possibility is $N = n(n-1)/2$. Therefore the total number of roads on the island is $50 \\cdot 99 = 4950$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33116, "subject": "Mathematics (Multi-modal)", "question": "Let $a$, $b$, $c$ be real numbers and let\n$$\nx = a + b + c, \\quad y = a^2 + b^2 + c^2, \\quad z = a^3 + b^3 + c^3 \\quad \\text{and} \\quad S = 2x^3 - 9xy + 9z.\n$$\n\na. Prove that $S$ is unchanged when $a$, $b$, $c$ are replaced by $a + t$, $b + t$, $c + t$, respectively, for any real number $t$.\n\nb. Prove that $(3y - x^2)^3 \\ge 2S^2$.", "options": [], "answer": "Detailed solution", "solution": "a.\nLet $x'$, $y'$, $z'$ and $S'$ be obtained from $x$, $y$, $z$ and $S$ by replacing $a$, $b$, $c$ by $a + t$, $b + t$, $c + t$, respectively. So\n$$\nx' = (a + t) + (b + t) + (c + t) = x + 3t,\n$$\n$$\n\\begin{aligned}\ny' &= (a + t)^2 + (b + t)^2 + (c + t)^2 = (a^2 + b^2 + c^2) + 2(a + b + c)t + 3t^2 \\\\\n&= y + 2xt + 3t^2,\n\\end{aligned}\n$$\n$$\n\\begin{aligned}\nz' &= (a + t)^3 + (b + t)^3 + (c + t)^3 \\\\\n&= (a^3 + b^3 + c^3) + 3(a^2 + b^2 + c^2)t + 3(a + b + c)t^2 + 3t^3 \\\\\n&= z + 3yt + 3xt^2 + 3t^3.\n\\end{aligned} \\text{ Hence}\n$$\n$$\n\\begin{aligned}\nS' &= 2x'^3 - 9x'y' + 9z' \\\\\n&= 2(x + 3t)^3 - 9(x + 3t)(y + 2xt + 3t^2) + 9(z + 3yt + 3xt^2 + 3t^3) \\\\\n&= 2x^3 - 9xy + 9z = S \\quad (\\text{All other terms cancel.})\n\\end{aligned}\n$$\n\nb.\nIf we let $T = 3y - x^2$ and $T' = 3y' - x'^2$, we obtain\n$$\n\\begin{aligned}\nT &= 3(a^2 + b^2 + c^2) - (a + b + c)^2 = 2(a^2 + b^2 + c^2 - ab - ac - bc) \\\\\n&= (a - b)^2 + (b - c)^2 + (c - a)^2 \\\\\n&= (a' - b')^2 + (b' - c')^2 + (c' - a')^2 = T'.\n\\end{aligned}\n$$\n\n**Version A.** We take $t = -c$ and so it suffices to prove that $T^3 - 2S^2 \\ge 0$ in the case $c = 0$, where we get $T = 3(a^2 + b^2) - (a + b)^2 = 2(a^2 - ab + b^2)$ and\n$$\n\\begin{aligned}\nS &= 2(a + b)^3 - 9(a + b)(a^2 + b^2) + 9(a^3 + b^3) \\\\\n&= 2a^3 - 3a^2b - 3ab^2 + 2b^3 \\\\\n&= 2(a^3 + b^3) - 3ab(a + b) \\\\\n&= (a + b)(2(a^2 - ab + b^2) - 3ab).\n\\end{aligned} \\quad \\text{Now}\n$$\n$$\n\\begin{aligned}\nT^3 - 2S^2 &= 8(a^2 - ab + b^2)^3 - 2(a + b)^2(2(a^2 - ab + b^2) - 3ab)^2 \\\\\n&= 8(a^2 - ab + b^2)^3 - 8(a + b)^2(a^2 - ab + b^2)^2 \\\\\n&\\quad + 24ab(a + b)^2(a^2 - ab + b^2) - 18a^2b^2(a + b)^2 \\\\\n&= -24ab(a^2 - ab + b^2)^2 + 24ab(a + b)^2(a^2 - ab + b^2) - 18a^2b^2(a + b)^2 \\\\\n&= 24ab(a^2 - ab + b^2)((a + b)^2 - (a^2 - ab + b^2)) - 18a^2b^2(a + b)^2 \\\\\n&= 72a^2b^2(a^2 - ab + b^2) - 18a^2b^2(a^2 + 2ab + b^2) \\\\\n&= 6a^2b^2(12(a^2 + b^2) - 12ab - 3(a^2 + b^2) - 6ab) \\\\\n&= 54a^2b^2(a - b)^2 \\ge 0. \\quad \\text{This completes the proof.}\n\\end{aligned}\n$$\n\n**Version B.** By choosing $t = -(a + b + c)/3$ we achieve that $x$ vanishes. In this case, $T = 3y$ and $S = 9z$ and $c = -(a + b)$. We obtain\n$$\n\\begin{aligned}\ny &= a^2 + b^2 + (a + b)^2 = 2(a^2 + ab + b^2) \\\\\nz &= a^3 + b^3 - (a + b)^3 = -3ab(a + b)\n\\end{aligned}\n$$\n\nand so $T = 6(a^2 + ab + b^2)$ and $S = -27ab(a + b)$. Hence,\n$$\n(T^3 - 2S^2)/54 = 4(a^2 + ab + b^2)^3 - 27(ab(a + b))^2.\n$$\n\n$$\n(T^3 - 2S^2)/54 = 4(a^2 + a + 1)^3 - 27(a(a + 1))^2.\n$$\nAs this vanishes for $a = 1$, we rewrite it in terms of multiples of $a - 1$. Because $a(a + 1) = (a - 1)(a + 2) + 2$ and $a^2 + a + 1 = (a - 1)(a + 2) + 3$, we see that the above vanishes for $a = -2$, too. Abbreviating $P = (a - 1)(a + 2)$, we get\n$$\n\\begin{aligned}\n(T^3 - 2S^2)/54 &= 4(P + 3)^3 - 27(P + 2)^2 \\\\\n&= 4(P^3 + 9P^2 + 27P + 27) - 27(P^2 + 4P + 4) \\\\\n&= 4P^3 + 9P^2 = P^2(4P + 9) \\\\\n&= (a - 1)^2(a + 2)^2(4(a - 1)(a + 2) + 9) \\\\\n&= (a - 1)^2(a + 2)^2(4a^2 + 4a + 1) \\\\\n&= (a - 1)^2(a + 2)^2(2a + 1)^2 \\geq 0.\n\\end{aligned}\n$$\n\nWe now set $P = a^2 + ab + b^2$ and $Q = 3a^2$. We have $27(ab(a + b))^2 = 27a^2(R - a^2)^2 = 3a^2(3R - 3a^2)^2 = Q(3R - Q)^2$, and so\n$$\n(T^3 - 2S^2)/54 = 4R^3 - Q(3R - Q)^2.\n$$\n\nThis vanishes for $Q = R$, so we write $3R - Q = 2R + (R - Q)$ and simplify:\n$$\n\\begin{align*}\n4R^3 - Q(2R + (R - Q))^2 &= 4R^3 - 4R^2Q - 4QR(R - Q) - Q(R - Q)^2 \\\\\n&= 4R^2(R - Q) - (4QR + Q(R - Q))(R - Q) \\\\\n&= (R - Q)(4R^2 - 4QR - Q(R - Q)) \\\\\n&= (R - Q)(4R(R - Q) - Q(R - Q)) \\\\\n&= (R - Q)^2(4R - Q) = (R - Q)^2(a^2 + 4ab + 4b^2) \\\\\n&= (R - Q)^2(a + 2b)^2 \\ge 0.\n\\end{align*}\n$$\n\n**Remark.** We may trace back our steps and write $a/b$ for $a$ and multiply by $b^6$. This translates $(a - 1)^2(a + 2)^2(2a + 1)^2$ into $(a - b)^2(a + 2b)^2(2a + b)^2$. Writing $-c$ for $a + b$ in the last two brackets, we get $(a - b)^2(b - c)^2(a - c)^2$, which is the discriminant of the cubic $(X - a)(X - b)(X - c)$.\na.\nFor every integer $k \\ge 0$ we define a function\n$$\nx_k(t) = (a + t)^k + (b + t)^k + (c + t)^k\n$$\nwhich is defined for all real numbers $t$. We also let\n$$\nS(t) = 2x_{1}(t)^{3} - 9x_{1}(t)x_{2}(t) + 9x_{3}(t) \\quad \\text{and} \\quad T(t) = 3x_{2}(t) - x_{1}(t)^{2},\n$$\nso that $S = S(0)$ and $T = T(0)$. Noting that $\\frac{dx_k}{dt} = kx_{k-1}$ for $k \\ge 1$, we easily obtain $\\frac{dS}{dt} = 0$ and $\\frac{dT}{dt} = 0$. In other words, $S(t)$ and $T(t)$ are constant functions. This establishes part (a) and also shows that $T(t)^3 - 2S(t)^2$ does not depend on $t$.\n\nb.\nWe let $m = (a + b + c)/3$ and obtain $x_1(-m) = 0$, hence\n$$\nT = T(-m) = 3x_2(-m) = 3((a - m)^2 + (b - m)^2 + (c - m)^2)\n$$\nand\n$$\n\\begin{align*}\nS &= S(-m) = 9x_3(-m) \\\\\n&= 9((a - m)^3 + (b - m)^3 + (c - m)^3) \\\\\n&= 27(a - m)(b - m)(c - m),\n\\end{align*}\n$$\n\nsince $u + v + w$ is a factor of $u^3 + v^3 + w^3 - 3uvw$. The inequality $T^3 \\ge 2S^2$ is now seen to be equivalent to\n$$\n((a - m)^2 + (b - m)^2 + (c - m)^2)^3 \\ge 54(a - m)^2(b - m)^2(c - m)^2\n$$\nwhich is a consequence of the following lemma.\n\n**Lemma.** If $p$, $q$, $r$ are real numbers such that $p + q + r = 0$, then\n$$\n54p^2q^2r^2 \\leq (p^2 + q^2 + r^2)^3.\n$$\n**Proof.** This is clear if $pqr = 0$. Suppose $pqr \\neq 0$, then at least one of $pq$, $pr$, $qr$ is negative. Say $pq < 0$, so that $p^2 + q^2 + r^2 = (p + q)^2 - 2pq + r^2 = 2(r^2 + |pq|)$. The AM-GM inequality gives $\\frac{|pq|}{2} \\cdot \\frac{|pq|}{2} \\cdot r^2 \\leq \\left(\\frac{r^2 + |pq|}{3}\\right)^3$ and so\n$$\n54p^2q^2r^2 = 2^3 \\cdot 3^3 \\cdot \\frac{|pq|}{2} \\cdot \\frac{|pq|}{2} \\cdot r^2 \\leq 8(r^2 + |pq|)^3 = (p^2 + q^2 + r^2)^3.\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33117, "subject": "Mathematics (Multi-modal)", "question": "The points $E$ and $F$ are on the sides $AC$ and $AB$, respectively, of triangle $ABC$ such that $FE$ is parallel to $BC$. The lines $BE$ and $CF$ intersect at $G$. Prove that the line $AG$ passes through the midpoint of $BC$.", "options": [], "answer": "Detailed solution", "solution": "Let $AG$ meet $BC$ at $D$. We need to show that $D$ is the midpoint of $BC$.\n\n![](attached_image_1.png)\n\nAs $EF$ is parallel to $BC$, we have $\\frac{|CE|}{|EA|} = \\frac{|BF|}{|FA|}$. Ceva's Theorem tells us that\n$$\n\\frac{|BD|}{|DC|} \\cdot \\frac{|CE|}{|EA|} \\cdot \\frac{|FA|}{|BF|} = 1.\n$$\nTogether these imply $|BD| = |DC|$, hence $D$ is the midpoint of $BC$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33118, "subject": "Mathematics (Multi-modal)", "question": "Find the smallest positive integer $m$ such that $5m$ is an exact 5th power, $6m$ is an exact 6th power, and $7m$ is an exact 7th power.", "options": [], "answer": "2^35 * 3^35 * 5^84 * 7^90", "solution": "Let $m = 2^a \\cdot 3^b \\cdot 5^c \\cdot 7^d$. $N$ where $N$ is a product of primes different from $2$, $3$, $5$ and $7$. For a number $n$ to be an exact 5th power, all the exponents in the prime factorisation of $n$ must be divisible by $5$. Similarly for 6th and 7th powers.\nFor primes other than $2$, $3$, $5$ and $7$ the exponent in the prime decomposition of $m$ must be $0$ or a multiple of $5 \\times 6 \\times 7 = 210$. The smallest solution will occur when each exponent is $0$. Thus we can consider only numbers of the form $2^a \\cdot 3^b \\cdot 5^c \\cdot 7^d$.\nFor the conditions to be satisfied we must have $5 \\mid c+1$, $6 \\mid c$ and $7 \\mid c$. The smallest solution of this is $c = 84$. To obtain $a$ we need to solve\n$$\na \\equiv 0 \\pmod{5} \\quad a+1 \\equiv 0 \\pmod{6} \\quad a \\equiv 0 \\pmod{7}.\n$$\nThe smallest solution is $35$. As $b$ satisfies the same equations, the smallest value of $b$ is also $35$. Finally, $d$ has to satisfy\n$$\nd \\equiv 0 \\pmod{5} \\quad d \\equiv 0 \\pmod{6} \\quad d+1 \\equiv 0 \\pmod{7}.\n$$\nThe smallest solution is $d = 90$. Putting everything together, the smallest value of $m$ is $5^{84} \\cdot 6^{35} \\cdot 7^{90}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33119, "subject": "Mathematics (Multi-modal)", "question": "For what real numbers $\\lambda$ are there positive numbers $a$, $b$, and $c$ such that\n$$\na + \\frac{1}{a} = 2(1 + \\lambda),\n$$\n$$\nc + \\frac{1}{c} = 2(1 + \\lambda),\n$$\n$$\nb + \\frac{1}{a} = 2(1 - \\lambda),\n$$\n$$\nc + \\frac{1}{b} = 2(1 - \\lambda)?\n$$\nFor those values of $\\lambda$, determine the corresponding values of $a$, $b$ and $c$.", "options": [], "answer": "Two solutions: (1) lambda = 0 with a = b = c = 1; (2) lambda = 1/4 with a = 2, b = 1, c = 1/2.", "solution": "Suppose, for a fixed $\\lambda$, a solution to the four equations exists. Then, from the first equation, $2\\lambda = a + \\frac{1}{a} - 2 = \\frac{(a-1)^2}{a} \\ge 0$, and so $\\lambda \\ge 0$. From the first equation in the second row, $2(1 - \\lambda) = b + \\frac{1}{b} > 0$ and so $\\lambda < 1$. Hence, if a solution exists, then, in the first instance, $0 \\le \\lambda < 1$.\n\nFurthermore, if $\\lambda = 0$, then $a = 1$, $c = 1$, whence $b = 1$ also. Thus, one solution is $\\lambda = 0$, and $a = b = c = 1$.\n\nOn the other hand, if $a = c$ the two equations which involve $1 - \\lambda$ imply $b + \\frac{1}{a} = a + \\frac{1}{b}$, or equivalently, $a - \\frac{1}{a} = b - \\frac{1}{b}$. Because the equation $x + \\frac{1}{x} = k$ has at most one positive solution, this implies $a = b$. From $a = b = c$ we easily obtain $\\lambda = 0$. Hence, if $\\lambda \\ne 0$ we need to have $a \\ne c$.\n\nFrom now on we suppose $0 < \\lambda < 1$. Clearly, $a, c$ satisfy the same quadratic equation $x^2 - 2(1 + \\lambda)x + 1 = 0$. As $a \\ne c$, they form its two roots and so $ac = 1$. Using this and the equations in the second row, we deduce that $b^2 = 1$, whence $b = 1$ and $c = 1 - 2\\lambda > 0$. Plugging this into the second equation in the first row, we deduce that\n$$\n2(1 + \\lambda) = 1 - 2\\lambda + \\frac{1}{1 - 2\\lambda} = \\frac{(1 - 2\\lambda)^2 + 1}{1 - 2\\lambda},\n$$\nwhence $2(1 + \\lambda)(1 - 2\\lambda) = 2 - 4\\lambda + 4\\lambda^2$ which simplifies to $8\\lambda^2 - 2\\lambda = 0$.\nThus, $\\lambda = 1/4$. For this value of $\\lambda$, we obtain $a = 2, b = 1, c = 1/2$.\nWe consider the four variables $a$, $b$, $c$ and $\\lambda$ as unknowns. Subtracting the two equations in the first row we get $a-c = \\frac{1}{c} - \\frac{1}{a}$. As $ac \\neq 0$, this is equivalent to $(a-c)(ac-1) = 0$. If $a=c$, the two equations which involve $1-\\lambda$ imply $b+\\frac{1}{a} = a+\\frac{1}{b}$. This can be rewritten as $(b-a)(1+\\frac{1}{ab}) = 0$. As $ab > 0$, this implies $a=b$. From $a=b=c$ we easily obtain $\\lambda=0$. The first equation implies then $a=1$. So we have one solution: $(\\lambda, a, b, c) = (0, 1, 1, 1)$.\n\nAssume now $a \\neq c$, then $ac = 1$ and the two equations in the second row imply $b = \\frac{1}{b}$, hence $b=1$. The first equation in the second row now becomes $1+\\frac{1}{a} = 2(1-\\lambda)$ from which we get $a = \\frac{1}{1-2\\lambda}$ and $c = \\frac{1}{a} = 1-2\\lambda$. Substituting this into the first equation yields $1-2\\lambda + \\frac{1}{1-2\\lambda} = 2(1+\\lambda)$ which simplifies to $\\lambda(4\\lambda-1) = 0$. For $\\lambda=0$ we obtain $a=c=1$ in contradiction to our assumption. With $\\lambda = \\frac{1}{4}$ we get $a=2$ and so the second solution is $(\\lambda, a, b, c) = (\\frac{1}{4}, 2, 1, \\frac{1}{2})$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33120, "subject": "Mathematics (Multi-modal)", "question": "Let $N_1 = 12$. The goal in this problem is to obtain the number $N_k = 21$ after performing a finite number of steps according to the following rules. In each step, the numbers $N_i$ and $N_{i+1}$ need to be in *Shamrock Relation*. Two numbers are said to be in *Shamrock Relation* if and only if\n(a) one number is obtained from the other by replacing any block $X$ of consecutive digits by its triple repetition $XXX$; or\n(b) one number is obtained from the other by replacing any connected block of the form $XXY$ with $YYY$, where $X$ and $Y$ represent blocks of consecutive digits.\nIs the goal of obtaining 21 achievable?", "options": [], "answer": "Yes", "solution": "The answer is yes. Here is one way to proceed.\n\n$$\n12 = (12)\n$$\nuse (a) with $N=12, X=12$\n$$\n121212 = (1)(21)(21)2\n$$\nuse (b) with $M = 121212, X = 21, Y = 1$\n$$\n212112 = 212(1)(1)(2)\n$$\nuse (b) with $N = 212112, X = 1, Y = 2$\n$$\n212211 = 2(1)(2)(2)11\n$$\nuse (b) with $M = 212211, X = 2, Y = 1$\n$$\n222111 = (222)111\n$$\nuse (a) with $M = 222111, X = 2$\n$$\n2111 = 2(111)\n$$\nuse (a) with $M = 2111, X = 1$\n21\ngoal achieved.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33121, "subject": "Mathematics (Multi-modal)", "question": "The three distinct points $B$, $C$, $D$ are collinear with $C$ between $B$ and $D$. Another point $A$ not on the line $BD$ is such that $|AB| = |AC| = |CD|$.\nProve that $\\angle BAC = 36^\\circ$ if and only if $\\frac{1}{|CD|} - \\frac{1}{|BD|} = \\frac{1}{|CD| + |BD|}$.", "options": [], "answer": "Detailed solution", "solution": "Let $\\alpha$ be the size of the angle $\\angle CAD$. Because $|AB| = |AC| = |CD|$, we have $\\angle ABC = \\angle BCA = \\angle CAD + \\angle CDA = 2\\angle CAD = 2\\alpha$. Therefore, $\\angle BAD = \\angle DBA$ if and only if $\\angle BAC = \\alpha$. On the other hand, because $\\angle BAC = 180^\\circ - 4\\alpha$, we see that $\\angle BAC = \\alpha$ if and only if $\\alpha = 36^\\circ$. Therefore, it suffices to show that\n$$\n\\frac{1}{|CD|} - \\frac{1}{|BD|} = \\frac{1}{|CD| + |BD|} \\quad \\text{is equivalent to} \\quad \\angle BAD = \\angle DBA.\n$$\n\n![](attached_image_1.png)\n\nBecause $|AB| = |AC| = |CD|$ and $C$ is between $B$ and $D$, the equation\n$$\n\\frac{1}{|CD|} - \\frac{1}{|BD|} = \\frac{1}{|CD| + |BD|} \\quad \\text{is equivalent to}\n$$\n$$\n\\frac{1}{|AB|} - \\frac{1}{|BC| + |AB|} = \\frac{1}{|AB| + |BD|}, \\quad \\text{or}\n$$\n$$\n\\frac{|BC|}{|AB|( |BC| + |AB|)} = \\frac{1}{|AB| + |BD|}, \\quad \\text{which simplifies to}\n$$\n$$\n|BC| \\cdot |BD| = |AB|^2, \\text{ or equivalently, } \\frac{|AB|}{|BD|} = \\frac{|BC|}{|AB|}.\n$$\nBecause the triangles $ABC$ and $ABD$ have a common angle at $B$, this last equation is equivalent to these two triangles being similar such that sides $AB$ and $BD$ in triangle $ABD$ correspond to sides $BC$ and $AB$ in triangle $ABC$. Because $\\triangle ABC$ is isosceles, this is equivalent to triangle $BDA$ being isosceles with $\\angle BAD = \\angle DBA$, which, as seen above, is equivalent to $\\angle BAC = 36^\\circ$.\n\n\nAs usual, we let $\\alpha = \\angle BAC$, $\\beta = \\angle ABC$, $a = |BC|$ and $b = |AC| = |AB| = c$. Because $|CD| = b$ and $C$ is between $B$ and $D$, the equation\n$$\n\\frac{1}{|CD|} - \\frac{1}{|BD|} = \\frac{1}{|CD| + |BD|} \\quad \\text{is equivalent to}\n$$\n$$\n\\frac{1}{b} - \\frac{1}{a+b} = \\frac{1}{a+2b} \\quad \\text{or} \\quad \\frac{a}{b(a+b)} = \\frac{1}{a+2b}, \\quad \\text{which can be written as}\n$$\n$$\na(a+2b) = b(a+b), \\text{ i.e. } a^2 + ab = b^2. \\text{ Introducing } x = a/b, \\text{ we see now that}\n$$\n$$\n\\frac{1}{|CD|} - \\frac{1}{|BD|} = \\frac{1}{|CD| + |BD|} \\quad \\text{is equivalent to} \\quad x^2 + x - 1 = 0.\n$$\n\nBecause $A$ is not on $BC$, the triangle inequality implies $0 < a < 2b$, hence $0 < x < 2$. Therefore, $0 \\neq (x-2)(x+1)$ and so $x^2+x-1=0$ if and only if\n$$\n0 = (x^2+x-1)(x-2)(x+1) = x^4 - 4x^2 - x + 2.\n$$\n\nThe Cosine Rule gives $a^2 = 2b^2 - 2b^2 \\cos(\\alpha)$ and $b^2 = a^2 + b^2 - 2ab \\cos(\\beta)$, from which we obtain $2 \\cos(\\alpha) = 2 - x^2$ and $2 \\cos(\\beta) = x$. Therefore, the equation $(x^2 - 2)^2 - 2 = x$ is equivalent to $4 \\cos^2(\\alpha) - 2 = 2 \\cos(\\beta)$. Because $2 \\cos^2(\\alpha) - 1 = \\cos(2\\alpha)$, the above is equivalent to $\\cos(2\\alpha) = \\cos(\\beta)$.\nWe would like to conclude that $\\beta = 2\\alpha$. This follows as soon as we exclude that $360^\\circ - 2\\alpha = \\beta$. But we know that $\\alpha + 2\\beta = 180^\\circ$, hence $360^\\circ - 2\\alpha = 4\\beta$. Therefore, $360^\\circ - 2\\alpha = \\beta$ can only happen if $\\beta = 0$, which is excluded by the assumption that $A$ is not on $BC$. Therefore, we have shown that\n$$\n\\frac{1}{|CD|} - \\frac{1}{|BD|} = \\frac{1}{|CD| + |BD|} \\quad \\text{is equivalent to} \\quad \\beta = 2\\alpha.\n$$\nFrom $\\alpha + 2\\beta = 180^\\circ$ we easily obtain that $\\beta = 2\\alpha$ if and only if $\\alpha = 36^\\circ$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33122, "subject": "Mathematics (Multi-modal)", "question": "Over a period of $k$ consecutive days, a total of 2014 babies were born in a certain city, with at least one baby being born each day. Show that:\n1. If $1014 < k \\le 2014$, there must be a period of consecutive days during which exactly 100 babies were born.\n2. By contrast, if $k = 1014$, such a period might not exist.", "options": [], "answer": "Detailed solution", "solution": "Let $N_0 = 0$. For $1 \\le i \\le k$, let $N_i$ be the number of babies born on or before Day $i$, and let $n_i = N_i - N_{i-1}$ be the number of babies born on Day $i$. Let $S = \\{N_1, \\dots, N_k\\}$ and $T = \\{N_1 + 100, \\dots, N_k + 100\\}$. Because at least one baby is born each day, both sets contain $k$ distinct integers between 1 and 2114, inclusive. The sets $S$ and $T$ might intersect: in fact, they intersect if and only if there are a pair of indices $i$ and $j$ with $N_j = N_i + 100$ for some $i < j$, which is equivalent to the number of babies born in the period between days $i+1$ and $j$ inclusive being 100.\nIf there were at least 12 different integers in $S$ having the same remainder mod 100, there would also be at least 12 different integers in $T$ with this remainder. But between 1 and 2114, no remainder mod 100 occurs more than 22 times, hence $S \\cap T$ cannot be empty in this case.\nAssume now that no remainder mod 100 occurs more than eleven times in $S$. If $k \\ge 1015$, then there are at least 15 remainders mod 100 that occur at least eleven times in $S$, and consequently also at least eleven times in $T$. Thus $S \\cup T$ has at least 15 remainders mod 100 that each occur at least 22 times (including repetitions, in the case of any remainders that occur in both $S$ and $T$). Since there are only 14 remainders that occur 22 times between 1 and 2114, and none that occur more frequently than that, some of these occurrences must overlap. Thus, $S$ and $T$ must intersect, proving (a).\nLet $n_i = 1$ if $i \\in N$ is not a multiple of 100, and $n_i = 101$ if $i$ is a multiple of 100. It is readily verified that this pattern ensures that $N_j - N_i \\ne 100$ for all $0 \\le i \\le j$. Also $N_{100s+j} = 200s + j$ for all integers $0 \\le j < 100$, $s \\ge 0$. In particular, $N_{1014} = 2014$, as required for $k = 1014$ in part (b).", "topic": "Algebra", "subtopic": "Abstract Algebra" }, { "id": 33123, "subject": "Mathematics (Multi-modal)", "question": "Let $a_1, a_2, a_3, \\dots, b_1, b_2, b_3, \\dots$ and $c_1, c_2, c_3, \\dots$ be three sequences containing the numbers $+1$ and $-1$ only. Prove that the following inequality holds:\n$$\n3 \\sum_{i=1}^{2014} a_i b_i + 3 \\sum_{i=1}^{2014} b_i c_i \\le \\sum_{i=1}^{2014} a_i^2 + \\sum_{i=1}^{2014} b_i^2 + \\sum_{i=1}^{2014} c_i^2 + 3 \\sum_{i=1}^{2014} a_i c_i.\n$$", "options": [], "answer": "Detailed solution", "solution": "First observe that for $u \\le 1$ and $v \\le 1$ we always have $(1-u)(1-v) \\ge 0$, hence $u + v \\le 1 + uv$. We apply this now to $u = a_i b_i$ and $v = b_i c_i$. As $b_i = \\pm 1$, we have $b_i^2 = 1$ and so $uv = a_i c_i$. This shows that\n$$\na_i b_i + b_i c_i \\le 1 + a_i c_i \\quad \\text{and so} \\quad \\sum_{i=1}^n a_i b_i + \\sum_{i=1}^n b_i c_i \\le n + \\sum_{i=1}^n a_i c_i\n$$\nfor all $n \\ge 1$. Multiplying this inequality by $3$ and taking into account that $a_i^2 = b_i^2 = c_i^2 = 1$, and so $\\sum_{i=1}^n a_i^2 = \\sum_{i=1}^n b_i^2 = \\sum_{i=1}^n c_i^2 = n$, we obtain\n$$\n3 \\sum_{i=1}^n a_i b_i + 3 \\sum_{i=1}^n b_i c_i \\le \\sum_{i=1}^n a_i^2 + \\sum_{i=1}^n b_i^2 + \\sum_{i=1}^n c_i^2 + 3 \\sum_{i=1}^n a_i c_i,\n$$\nwhich gives the desired inequality for $n = 2014$.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 33124, "subject": "Mathematics (Multi-modal)", "question": "In a triangle $ABC$, $D$ is the foot of the altitude from $A$ to $BC$, and $M$ is the midpoint of the line segment $BC$. The three angles $\\angle BAD$, $\\angle DAM$ and $\\angle MAC$ have equal measure.\nFind the measures of the angles of the triangle $ABC$.", "options": [], "answer": "90°, 60°, 30°", "solution": "**Solution 1.** Since $\\angle BAD = \\angle DAM$ and $\\angle ADB = \\angle ADM = 90^\\circ$, the triangles $ADB$ and $ADM$ which share the side $AD$, are congruent. Therefore $|BD| = |DM|$, and so $2|MD| = |BM| = |MC|$.\nSince $\\angle DAM = \\angle MAC$, $AM$ bisects $\\angle DAC$ and we have\n$$\n\\cos(\\angle DAC) = \\frac{AD}{AC} = \\frac{MD}{MC} = \\frac{1}{2},\n$$\nand so $\\angle DAC = 60^\\circ$. It follows that $\\angle ACD = 30^\\circ$ and $\\angle DAM = 30^\\circ$.\nTherefore, $\\angle BAC = 90^\\circ$ and $\\angle ABC = 60^\\circ$, i.e. the angles of the triangle\n$ABC$ are $90^\\circ$, $60^\\circ$ and $30^\\circ$.\n\nLet $\\alpha = \\angle BAD = \\angle DAM = \\angle MAC$ and $t = \\tan(\\alpha)$. Then, $\\tan(2\\alpha) = \\frac{2t}{1-t^2}$. Letting $AD = h$, we have $t = x/h$ and\n$$\n\\tan(2\\alpha) = \\frac{3x}{h} = \\frac{2\\left(\\frac{x}{h}\\right)}{1 - \\left(\\frac{x}{h}\\right)^2} = \\frac{2xh}{h^2 - x^2}\n$$\nRearranging gives $\\tan(\\alpha) = \\frac{x}{h} = \\frac{1}{\\sqrt{3}}$, and so $\\alpha = 30^\\circ$. This implies $\\angle DAC = 2\\alpha = 60^\\circ$, hence $\\angle ACD = 30^\\circ$. Finally, $\\angle BAC = 3\\alpha = 90^\\circ$ which implies $\\angle ABC = 60^\\circ$.\n\n**Solution 3.** Let $\\alpha = \\angle BAD = \\angle DAM = \\angle MAC$, $\\beta = \\angle ABM$ and $\\gamma = \\angle BCA$. Since $\\angle BAD = \\angle DAM$ and $\\angle ADB = \\angle ADM = 90^\\circ$ we have $\\angle ABM = \\angle AMB$, hence $\\beta = \\alpha + \\gamma$. Using $|BM| = |MC|$ and the Sine Theorem twice we obtain\n$$\n\\frac{\\sin(\\beta)}{\\sin(2\\alpha)} = \\frac{|AM|}{|BM|} = \\frac{|AM|}{|CM|} = \\frac{\\sin(\\gamma)}{\\sin(\\alpha)}\n$$\nand so\n$$\n2 \\cos(\\alpha) = \\frac{\\sin(2\\alpha)}{\\sin(\\alpha)} = \\frac{\\sin(\\beta)}{\\sin(\\gamma)} = \\frac{\\sin(\\alpha + \\gamma)}{\\sin(\\gamma)}.\n$$\nUsing $\\sin(\\alpha + \\gamma) = \\sin(\\alpha)\\cos(\\gamma) + \\cos(\\alpha)\\sin(\\gamma)$ the above simplifies to $2\\cos(\\alpha) = \\sin(\\alpha)\\cot(\\gamma) + \\cos(\\alpha)$, or equivalently $\\cot(\\alpha) = \\cot(\\gamma)$. As $\\alpha$ and $\\gamma$ are both less than 180°, this implies $\\alpha = \\gamma$. Therefore, $\\beta = \\alpha + \\gamma = 2\\alpha$ and from the right angled triangle ABD we see that $\\alpha = 30^\\circ$ and $\\beta = 60^\\circ$, hence $\\gamma = 30^\\circ$ and $\\angle BAC = 3\\alpha = 90^\\circ$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33125, "subject": "Mathematics (Multi-modal)", "question": "Each of the four positive integers $N, N+1, N+2, N+3$ has exactly six positive divisors. There are exactly 20 different positive integers which are exact divisors of at least one of the integers. One of these is 27. Find all possible values of $N$.\n\n(Both 1 and $m$ are counted as divisors of the integer $m$.)", "options": [], "answer": "242", "solution": "Each of the four integers has 1 as a divisor. Moreover, 2 is a common divisor of either $N$ and $N+2$ or $N+1$ and $N+3$. Hence, these four integers can have at most $6 \\times 4 - 3 - 1 = 20$ different divisors altogether. Because there are exactly 20 different positive divisors, only one of the four integers can be divisible by 3, that is either $N+1$ or $N+2$ is divisible by 3.\n\nAs 27 is a divisor of one of the integers, and the integer has exactly six divisors, that number must be $3^5 = 243$. This can be seen, for example, by recognising that an integer $p_1^{a_1} \\cdots p_n^{a_n}$, with primes $p_1 < \\cdots < p_n$ and $a_i \\ge 1$, has exactly $(a_1+1) \\cdots (a_n+1)$ different positive divisors.\n\nHence $N+1 = 243$ or $N+2 = 243$. Because $243-2 = 241$ is a prime number (having only two positive divisors), we can only have $N = 242$.\n\nIt is easily checked that the four numbers $242 = 2 \\cdot 11^2$, $243 = 3^5$, $244 = 2^2 \\cdot 61$ and $245 = 5 \\cdot 7^2$ have exactly 20 divisors, namely 1, 2, 3, 4, 5, 7, 9, 11, 22, 27, 35, 49, 61, 81, 121, 122, 242, 243, 244 and 245.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33126, "subject": "Mathematics (Multi-modal)", "question": "A square $ABCD$ is inscribed in a circle with centre $O$. Let $E$ be the midpoint of $AD$. The line $CE$ meets the circle again at $F$. The lines $FB$ and $AD$ meet at $H$. Prove $|HD| = 2|AH|$.", "options": [], "answer": "Detailed solution", "solution": "Because $A, B, C, F$ are on a circle, we have $\\angle BFC = \\angle BAC = 45^\\circ$. Since $\\angle AFC = 90^\\circ$ this means that $FB$ is the bisector of the angle $\\angle AFE$. Because the angle bisector cuts the opposite side in a triangle at a ratio equal to the ratio of the adjacent sides (which follows easily from the Sine Theorem or by calculating areas in two different ways), we obtain\n$$\n\\frac{|AH|}{|HE|} = \\frac{|AF|}{|FE|}\n$$\n![](attached_image_1.png)\nBecause $\\angle AFE = \\angle AFC = 90^\\circ = \\angle EDC$ and $\\angle FEA = \\angle DEC$, the triangles AFE and CDE are similar, so that $\\frac{|AF|}{|FE|} = \\frac{|CD|}{|DE|} = 2$.\nWe obtain now that $|AH| = 2|HE|$. As $|ED| = |AE| = |AH| + |HE| = 3|HE|$, we finally get $|HD| = |HE| + |ED| = 4|HE| = 2|AH|$, as required.\nBecause $A, B, C, F$ are on a circle, we have $\\angle HFE = \\angle BFC = \\angle BAC$, $\\angle AFH = \\angle AFB = \\angle ADB$ and $\\angle EFD = \\angle CFD = \\angle CAD$, and all these angles are equal to $45^\\circ$. With the abbreviations $s = \\sin(45^\\circ) = \\sin(135^\\circ)$, $t = \\sin(\\angle FHA) = \\sin(\\angle FHE)$ and $u = \\sin(\\angle FDE)$, the Sine Theorem on the triangles AFH, HEF, EFD and ADF gives\n$$\n\\frac{|AF|}{t} = \\frac{|AH|}{s}, \\quad \\frac{|FE|}{t} = \\frac{|HE|}{s}, \\quad \\frac{|FE|}{u} = \\frac{|ED|}{s}, \\quad \\frac{|AF|}{u} = \\frac{|AD|}{s}.\n$$\nFrom these we get\n$$\n\\frac{|AH|}{s} \\cdot \\frac{s}{|HE|} = \\frac{|AF|}{t} \\cdot \\frac{t}{|FE|} = \\frac{|AF|}{u} \\cdot \\frac{u}{|FE|} = \\frac{|AD|}{s} \\cdot \\frac{s}{|ED|} = 2,\n$$\nhence $|AH| = 2|HE|$ and we conclude as in Solution 1.\n\nUsing $\\tan(45^\\circ) = 1$ and the addition theorem for tan, we obtain\n$$\n\\frac{\\tan(\\angle ABF) + \\tan(\\angle FCD)}{1 - \\tan(\\angle ABF) \\tan(\\angle FCD)} = \\tan(\\angle ABF + \\angle FCD) = 1.\n$$\nAs $\\tan(\\angle FCD) = \\frac{|ED|}{|CD|} = \\frac{1}{2}$, we get $1 - \\frac{1}{2}\\tan(\\angle ABF) = \\frac{1}{2} + \\tan(\\angle ABF)$ and so\n$$\n\\frac{1}{3} = \\tan(\\angle ABF) = \\frac{|AH|}{|AB|}\n$$\nThis implies $3|AH| = |AB| = |AD| = |AH| + |HD|$ and so $2|AH| = |HD|$.\nConsidering the power of the points $E$ and $H$ we obtain\n$$\n\\begin{aligned} |FE| \\cdot |EC| &= |AE| \\cdot |ED| \\\\ |FH| \\cdot |HB| &= |AH| \\cdot |HD|. \\end{aligned}\n$$\nBecause $AD$ is parallel to $BC$ we also obtain $\\frac{|FE|}{|EC|} = \\frac{|FH|}{|HB|}$. This gives\n$$\n\\frac{|AE| \\cdot |ED|}{|EC|^2} = \\frac{|FE|}{|EC|} = \\frac{|FH|}{|HB|} = \\frac{|AH| \\cdot |HD|}{|HB|^2}.\n$$\nBy the Theorem of Pythagoras we have\n$$\n|EC|^2 = |CD|^2 + |ED|^2 \\quad \\text{and} \\quad |HB|^2 = |AB|^2 + |AH|^2.\n$$\nWriting $a = |AB| = |CD| = |AD|$ as well as $|AH| = x a$ with $0 < x < \\frac{1}{2}$ and using $|AE| = |ED| = a/2$, we obtain\n$$\n\\frac{a^2/4}{5a^2/4} = \\frac{xa(a - xa)}{a^2 + x^2a^2}\n$$\nwhich is equivalent to the quadratic equation $6x^2 - 5x + 1 = 0$. Its two roots are $x = 1/2$ and $x = 1/3$. As $x < 1/2$ we must have $x = 1/3$ and this means $3|AH| = |AD|$. We finally obtain $|HD| = |AD| - |AH| = 2|AH|$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33127, "subject": "Mathematics (Multi-modal)", "question": "Determine the real solutions of the equation\n$$\n\\sqrt{2x^2 + 2x + 3} + \\sqrt{2x^2 + 2} = \\sqrt{3x^2 + 2x - 1} + \\sqrt{x^2 + 6}.\n$$", "options": [], "answer": "{-3, -2, 1, 2}", "solution": "Let $a$, $b$, $c$, $d$ be the quadratic polynomials defined by\n$$\n\\begin{aligned}\na(x) &= 2x^2 + 2x + 3 & b(x) &= 2x^2 + 2 \\\\\nc(x) &= 3x^2 + 2x - 1 & d(x) &= x^2 + 6.\\end{aligned}\n$$\nThe equation to be solved is writable in the form\n$$\n\\sqrt{a(x)} + \\sqrt{b(x)} = \\sqrt{c(x)} + \\sqrt{d(x)}.\n$$\n\nObserve that $a$, $b$, $d$ are strictly positive for all real numbers $x$, and that $c(x) = (3x - 1)(x + 1) \\ge 0$ iff $x \\in (-\\infty, -1) \\cup (1/3, \\infty) \\equiv S$. Thus the solution set of the equation is a subset of $S$.\n\nNote too that $a + b = c + d$, i.e., $a - d = c - b \\equiv p$, say. Thus the equation to be solved is\n$$\n\\sqrt{d(x) + p(x)} + \\sqrt{b(x)} = \\sqrt{b(x) + p(x)} + \\sqrt{d(x)}.\n$$\nIf the real number $x$ satisfies this equation, then, by squaring and cancelling common terms, we see that\n$$\n\\sqrt{(d(x) + p(x))b(x)} = \\sqrt{(b(x) + p(x))d(x)},\n$$\nwhence squaring once more and cancelling the common term $b(x)d(x)$ we arrive at the equation $p(x)(b(x) - d(x)) = 0$. Hence, either $p(x) = 0$ or $b(x) = d(x)$. Equivalently,\n$$\n0 = p(x) = x^2 + 2x - 3 = (x + 3)(x - 1), \\quad x \\in \\{-3, 1\\}.\n$$\nOr\n$$\n0 = b(x) - d(x) = x^2 - 4 = (x + 2)(x - 2), \\quad x \\in \\{-2, 2\\}.\n$$\nThus the solution set is a subset of\n$$\nT = \\{-3, -2, 1, 2\\} \\cap S = \\{-3, -2, 1, 2\\}.\n$$\nBy direct substitution it can be verified that each member of $T$ satisfies the given equation. In other words, $T$ is the required solution set.\nBy squaring twice it can be seen that if $x$ satisfies the given equation then it must satisfy the equation\n$$\n(2x^2 + 2x + 3)(2x^2 + 2) = (3x^2 + 2x - 1)(x^2 + 6).\n$$\nExpanding both sides we see that this is equivalent to the equation\n$$\n4x^4 + 4x^3 + 10x^2 + 4x + 6 = 3x^4 + 2x^3 + 17x^2 + 12x - 6.\n$$\nIn other words,\n$$\nx^4 + 2x^3 - 7x^2 - 8x + 12 = 0,\n$$\nor\n$$\n(x^2 - 3)(x^2 - 4) + 2x(x^2 - 4) = 0.\n$$\nHence $x^2 = 4$ or $x^2 + 2x - 3 = 0$. By inspection of this and verification of the original equation it can be seen that $T = \\{-3, -2, 1, 2\\}$ is the solution set.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 33128, "subject": "Mathematics (Multi-modal)", "question": "The 11-digit number $52014641025$ has two interesting properties: it contains the string of digits $2014$, and it is unchanged if we reverse the digits. How many 11-digit numbers have this property?\n(A number cannot begin with the digit $0$.)", "options": [], "answer": "560", "solution": "An integer $N$ that satisfies these conditions is determined by its first (leftmost) six digits. The first instance of either the string $2014$ or its reverse, $4102$, must start in position $1$, $2$ or $3$. In each case, there are two other digits to be chosen. These digits can be chosen arbitrarily if $2014$ or its reverse start in position $1$, but the first digit must be non-zero in the other cases. This gives a total of $2(100 + 90 + 90) = 560$ numbers having the required form.", "topic": "Algebra", "subtopic": "Abstract Algebra" }, { "id": 33129, "subject": "Mathematics (Multi-modal)", "question": "Suppose $\\triangle ABC$ is a triangle. Let $D$ be the reflection of $A$ in the perpendicular bisector $L$ of $BC$. Show that $|AD| = |a - 2c \\cos \\angle ABC|$.", "options": [], "answer": "Detailed solution", "solution": "Let $M$, $N$ be the feet of the perpendiculars from $A$, $D$ on $BC$. Then, $N$ is the reflection of $M$ and the right triangles $AMB$ and $DNC$ are congruent. Moreover, $AD$ is parallel to $BC$ and $|AD| = |MN|$. There are various possibilities for the position of $M$, some are shown below.\n\n![](attached_image_1.png)\n\nWe let $a = |BC|$, $b = |CA|$ and $c = |AB|$ as usual. Let $x$ denote the signed distance from $M$ to the midpoint $E$ of $BC$. The sign is chosen such that $x = -|ME| \\le 0$ if $E$ lies between $B$ and $M$, and $x = |ME| \\ge 0$ otherwise.\n\nFor all possible positions of $M$ on the line $BC$ we then have\n$$\n|MN| = 2|x|, \\quad |CM| = \\left|\\frac{a}{2} + x\\right| \\quad \\text{and} \\quad |BM| = \\left|\\frac{a}{2} - x\\right|.\n$$\nThe Theorem of Pythagoras gives\n$$\nb^2 = |AM|^2 + |CM|^2 \\quad \\text{and} \\quad c^2 = |AM|^2 + |BM|^2.\n$$\nThe Cosine Theorem $b^2 = a^2 + c^2 - 2ac \\cos \\angle ABC$ implies now\n$$\na(a - 2c \\cos \\angle ABC) = b^2 - c^2 = \\left(\\frac{a}{2} + x\\right)^2 - \\left(\\frac{a}{2} - x\\right)^2 = 2ax,\n$$\nhence $|AD| = |MN| = 2|x| = |a - 2c \\cos \\angle ABC|$, as required.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33130, "subject": "Mathematics (Multi-modal)", "question": "The diagonals $AC$ and $BD$ of a cyclic quadrilateral $ABCD$ intersect at $P$.\nThe circumcircle of the triangle $PDC$ intersects $BC$ and $AD$ at $E$ and $F$, respectively. The circumcircle of the triangle $PAB$ cuts $BC$ and $AD$ at $H$ and $G$, respectively. Prove that $E$, $F$, $G$, $H$ lie on the circumference of a circle whose centre is $P$.", "options": [], "answer": "Detailed solution", "solution": "Join $P$ to $E$, $F$, $G$ and $H$. The details are worked out below for the situation in the picture provided where $E$ and $H$ are both between $B$ and $C$, $F$ is between $A$ and $D$ but $G$ is not between $A$ and $D$. For other possible positions of $E$, $F$, $G$, $H$, after replacing some angles with their supplements, the arguments provided will also work.\nAlternatively, one could avoid considering several cases by working with oriented angles modulo $180^\\circ$, see for example Section 1.7 in [1].\n![](attached_image_1.png)\nFrom the cyclic quadrilateral $AGHP$ we get $\\angle PHG = \\angle PAD = \\angle CAD$. Because $A$, $B$, $C$, $D$ are concyclic we obtain $\\angle CAD = \\angle CBD$. As $H$, $B$, $G$, $P$ are on a circle, $\\angle CBD = \\angle HBP = \\angle HGP$. Hence $\\angle PHG = \\angle HGP$ and so $|PG| = |PH|$.\n\nSimilarly, using twice that $P$, $E$, $C$, $D$, $F$ are on a circle and that $ABCD$ is cyclic, we obtain\n$$\n\\angle PEF = \\angle PDF = \\angle BDA = \\angle BCA = \\angle ECP = \\angle EFP\n$$\nand this implies $|PE| = |PF|$.\n\nUsing all three circles, we get the following equalities\n$$\n\\angle PEH = \\angle CDP = \\angle CDB = \\angle CAB = \\angle PAB = \\angle PHE\n$$\nfrom which we get $|PE| = |PH|$. Altogether we have shown that $E$, $F$, $G$, $H$ all have the same distance from $P$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33131, "subject": "Mathematics (Multi-modal)", "question": "Suppose $(a_n)$ is a sequence of integers such that $a_1$ and $a_2$ are two distinct digits of the number $2014$, and $a_n = a_{n-1}^{10} + a_{n-2}^{10}$ for all $n > 2$.\nLet $m = 20142014\\ldots2014$ be the number given by the string $2014$ repeated $2014$ times. Show that $m$ cannot be $a_n$ for any positive integer $n$.", "options": [], "answer": "Detailed solution", "solution": "Note first that\n$$\n\\begin{align*}\na_3 &= a_1^{10} + a_2^{10} \\le 2^{10} + 4^{10} < 2 \\cdot 4^{10} = 2^{21} < 10^{21} < m \\quad \\text{and} \\\\\na_4 &= a_2^{10} + a_3^{10} < 4^{10} + 10^{20} < 2 \\cdot 10^{20} < m.\n\\end{align*}\n$$\nHence, if $m = a_n$, then $n \\ge 5$.\nGiven the possible values for $a_1$ and $a_2$, we see that $a_3$ is congruent to either $1$ or $2$ modulo $3$, depending on whether or not we select $0$ as one of the two initial terms of the sequence. Similarly, $a_4$ is congruent to either $1$ or $2$ modulo $3$, depending on whether or not $a_2 = 0$. In any case, neither $a_3$ nor $a_4$ is divisible by $3$.\nBy the Little Theorem of Fermat, $a_k^{10} \\equiv 1 \\pmod{3}$ unless $a_k \\equiv 0 \\pmod{3}$.\nTherefore, if neither $a_{k-1}$ nor $a_{k-2}$ is divisible by $3$, then\n$$\na_k = a_{k-1}^{10} + a_{k-2}^{10} \\equiv 2 \\pmod{3}.\n$$\nBy induction it follows now that $a_n \\equiv 2 \\pmod{3}$ for all $n \\ge 5$.\nFinally, using that any integer is congruent to its sum of digits modulo $3$, we find that\n$$\nm \\equiv 2014 \\cdot (2 + 0 + 1 + 4) \\equiv 2014 \\equiv 1 \\pmod{3}\n$$\nand we conclude that $m \\neq a_n$ for all $n \\ge 1$.", "topic": "Algebra", "subtopic": "Abstract Algebra" }, { "id": 33132, "subject": "Mathematics (Multi-modal)", "question": "Show that from eight consecutive integers one can always pick four whose squares have the same sum as the squares of the remaining four.", "options": [], "answer": "Detailed solution", "solution": "Let the given eight consecutive integers be $n, n+1, \\dots, n+7$. Experimenting with the case $n=0$ leads to the identity\n$$\nn^2 + (n+3)^2 + (n+5)^2 + (n+6)^2 = (n+1)^2 + (n+2)^2 + (n+4)^2 + (n+7)^2.\n$$\nAlternatively, one may observe that\n$$\nn^2 + (n+3)^2 - (n+1)^2 - (n+2)^2 = 4.\n$$\nSubtracting from it the same identity with $n$ replaced by $n+4$ yields the above identity.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33133, "subject": "Mathematics (Multi-modal)", "question": "Let $n \\ge 2$ be an integer and $r = \\sqrt[3]{2}$. Prove that there do not exist rational numbers $a_0, a_1, \\dots, a_{n-1}$, not all of them equal to zero, such that\n$$\na_0 + a_1 r + a_2 r^2 + \\dots + a_{n-1} r^{n-1} = 0.\n$$", "options": [], "answer": "Detailed solution", "solution": "Assume there exist rational numbers $a_0, a_1, \\dots, a_{n-1}$ such that\n$$\na_0 + a_1 r + a_2 r^2 + \\dots + a_{n-1} r^{n-1} = 0.\n$$\nConsider the polynomials\n$$\nf(x) = a_0 + a_1 x + \\dots + a_{n-1} x^{n-1} \\quad \\text{and} \\quad g(x) = x^n - 2.\n$$\nWe then have $f(r) = g(r) = 0$. By Eisenstein's criterion, $g(x)$ is irreducible\nover the rationals, i.e. cannot be written as the product of two polynomials\nof positive degree with rational coefficients.\n\nAlternatively, this could be shown directly. Assume $g(x) = u(x)v(x)$ where $u(x)$ and $v(x)$ are monic polynomials with integer coefficients. Then $u(0)$ and $v(0)$ are integers and $u(0)v(0) = g(0) = -2$, hence one of these integers is equal to $\\pm 1$, say $u(0) = \\pm 1$. This implies that the product of the absolute values of the complex roots of $u(x)$ is equal to 1. Hence, there exists at least one complex number $z$ for which $u(z) = 0$ and $|z| \\le 1$. Then $|z|^n \\le 1$ in contradiction to $g(z) = u(z)v(z) = 0$ which implies $z^n = 2$. By Gauss' Lemma, $g(x)$ is then irreducible over the rationals, too.\n\nHence, if $f \\neq 0$, $\\gcd(f, g)$ can only be 1 or $g$. But the degree of $f$ is smaller\nthan the degree of $g$, and so we conclude $\\gcd(f, g) = 1$. This means that\nthere exist polynomials $s(x)$ and $t(x)$ such that $s(x)f(x) + t(x)g(x) = 1$.\nThis is in contradiction with $f(r) = g(r) = 0$, hence such rational numbers\n$a_i$ cannot exist unless they are all equal to zero.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33134, "subject": "Mathematics (Multi-modal)", "question": "In a triangle $ABC$ the internal bisector of the angle $\\angle ABC$ meets the external bisector of $\\angle BCA$ at $D$. The circumcircle of the triangle $ABC$ cuts $BD$ at $E$. Prove that $E$ is the circumcentre of the triangle $ACD$.", "options": [], "answer": "Detailed solution", "solution": "Because $BD$ bisects $\\angle ABC$, we have $|EA| = |EC|$.\n\n![](attached_image_1.png)\n\nLet $I$ be the incentre of $\\triangle ABC$, then $\\angle DCI = 90^\\circ$.\n\nWe have $\\angle EIC = \\angle ICB + \\angle IBC = \\angle ACI + \\angle ABE = \\angle ACI + \\angle ACE = \\angle ECI$.\n\nThus $\\angle ECD = \\angle DCI - \\angle ECI = 90^\\circ - \\angle EIC = \\angle EDC$, which implies $|EC| = |ED|$.\n\nTherefore, $|EA| = |EC| = |ED|$ and $E$ is the circumcentre of $\\triangle ACD$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33135, "subject": "Mathematics (Multi-modal)", "question": "Let $0 < a < 1$ be a real number. What point $z$ on the upper half of the unit circle in the complex plane maximises the sum $|z + a| + |z - a|$?", "options": [], "answer": "i", "solution": "Noting that if $x, y > 0$, then $x + y \\le \\sqrt{2} \\sqrt{x^2 + y^2}$, with equality iff $x = y$, then for all complex numbers $z$ satisfying $|z| = 1$\n$$\n\\begin{align*}\n|z - a| + |z + a| &\\le \\sqrt{2} \\sqrt{|z + a|^2 + |z - a|^2} \\\\\n&= \\sqrt{2} \\sqrt{(z + a)(\\bar{z} + a) + (z - a)(\\bar{z} - a)} \\\\\n&= \\sqrt{2} \\sqrt{|z|^2 + za + a\\bar{z} + a^2 + |z|^2 - za - a\\bar{z} + a^2} \\\\\n&= \\sqrt{2} \\sqrt{2 + 2a^2} = 2\\sqrt{1 + a^2},\n\\end{align*}\n$$\nwith equality iff $|z - a| = |z + a|$, iff $2\\Re(z) = z + \\bar{z} = 0$, i.e., $z = i$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33136, "subject": "Mathematics (Multi-modal)", "question": "Each square of an infinite square grid is to be coloured black or white in such a way that every $3 \\times 4$ or $4 \\times 3$ rectangle in the grid contains exactly $4$ black squares. In how many ways can this be done?", "options": [], "answer": "6", "solution": "The key to the solution is the following observation.\n\n(A) Each $1 \\times 3$ rectangle contains exactly one black square.\n\nConsider any $1 \\times 3$ rectangle and let $r$ be the number of black squares it contains, then $0 \\le r \\le 3$ and we want to show $r = 1$.\n\nObserve first that the two $3 \\times 3$ squares adjacent to a $1 \\times 3$ rectangle that contains $r$ black squares have to contain exactly $4 - r$ black squares. And also, the four $1 \\times 3$ rectangles adjacent to a $3 \\times 3$ square that contains exactly $4 - r$ black squares need to contain exactly $r$ black squares.\n\nLet $0 \\le a \\le 9$ be the number of black squares among those that are marked with an asterisk. Then, there are $18r + 9 \\cdot (4 - r) + a$ black squares in this $12 \\times 12$ square. On the other hand, this $12 \\times 12$ grid can be covered by twelve $3 \\times 4$ rectangles and so it has to contain $12 \\cdot 4 = 48$ black squares. Therefore, $18r + 9 \\cdot (4 - r) + a = 48$, i.e. $9r + a = 12$. There is only one solution to this equation satisfying the constraints on $a$ and $r$, namely $r = 1$ and $a = 3$.\n\nThis shows that each $1 \\times 3$ rectangle must contain exactly one black square.\n\n(B) After choosing one square to be coloured black, there are exactly two possibilities to complete the colouring.\n\nConsider the $3 \\times 4$ rectangle with upper left corner the chosen black square. It follows from (A) that the squares $A$ and $B$ have to be black and that the remaining two black squares can only be among $C$, $D$, $E$, $F$.\n\n![](attached_image_1.png)\n![](attached_image_2.png)\n![](attached_image_3.png)\n\nBecause of (A), either $C$ and $F$ or $D$ and $E$ are the black squares. Both patterns can be completed in a unique way, using (A) again, and it is easy to see that both satisfy the requirements of the problem:\n\n![](attached_image_4.png)\n![](attached_image_5.png)\n\n(C) If we fix a $1 \\times 3$ rectangle, there are three choices of the black square in it. For each of these choices we have seen in (B) that there are two ways to complete the colouring. Thus there are $6$ ways of colouring the grid.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33137, "subject": "Mathematics (Multi-modal)", "question": "Suppose $t$ is a real number and $\\sin(2t) > 0$. Prove that\n$$\n1 + 6 \\sin t \\cos t \\geq (\\sin^3 t + \\cos^3 t)(\\sin t + \\cos t)^3 + 16 \\sin^3 t \\cos^3 t,\n$$\nwith equality iff $\\cos(2t) = 0$.", "options": [], "answer": "Detailed solution", "solution": "Let $s$ stand for $\\sin t$, $c$ for $\\cos t$, and let $x = 2sc = \\sin(2t)$. Then\n$$\n\\begin{aligned}\n& (\\sin^3 t + \\cos^3 t)(\\sin t + \\cos t)^3 + 16 \\sin^3 t \\cos^3 t \\\\\n&= (s^3 + c^3)(s + c)^3 + 2x^3 \\\\\n&= (s^2 - sc + c^2)(s + c)^4 + 2x^3 \\\\\n&= (1 - sc)(s^2 + 2sc + c^2)^2 + 2x^3 \\\\\n&= \\left(1 - \\frac{1}{2}x\\right) (1 + x)^2 + 2x^3 = 1 + \\frac{3}{2}x + \\frac{3}{2}x^3.\n\\end{aligned}\n$$\nHence, the inequality reduces to proving that\n$$\n1 + 3x \\ge 1 + \\frac{3}{2}x + \\frac{3}{2}x^3 \\quad \\text{or equivalently} \\quad x(1 - x^2) \\ge 0,\n$$\nwhich is true since $0 < x \\le 1$. There is equality iff $\\sin^2(2t) = x^2 = 1$, equivalently, iff $\\cos^2(2t) = 0$ as stated.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33138, "subject": "Mathematics (Multi-modal)", "question": "a. Let $a_0$, $a_1$, $a_2$ be real numbers and consider the polynomial\n$$\nP(x) = a_0 + a_1 x + a_2 x^2.\n$$\nAssume that $P(-1)$, $P(0)$ and $P(1)$ are integers.\nProve that $P(n)$ is an integer for all integers $n$.\n\nb. Let $a_0$, $a_1$, $a_2$, $a_3$ be real numbers and consider the polynomial\n$$\nQ(x) = a_0 + a_1 x + a_2 x^2 + a_3 x^3.\n$$\nAssume that there exists an integer $i$ such that $Q(i)$, $Q(i+1)$, $Q(i+2)$ and $Q(i+3)$ are integers.\nProve that $Q(n)$ is an integer for all integers $n$.", "options": [], "answer": "Detailed solution", "solution": "a. By assumption $P(0) = a_0 \\in \\mathbb{Z}$, $P(-1) = a_0 - a_1 + a_2 \\in \\mathbb{Z}$ and $P(1) = a_0 + a_1 + a_2 \\in \\mathbb{Z}$. This implies that $a_1 + a_2$ and $a_2 - a_1$ are integers, hence also $2a_1$ and $2a_2$. From $P(n) = a_0 + a_1 n + a_2 n^2 = a_0 + a_1(n + n^2) + (a_2 - a_1)n^2$ we see now that $P(n) \\in \\mathbb{Z}$, as $n + n^2 = n(n + 1)$ is always even.\n\nb. For integers $k \\ge 0$ we define polynomials $Q_k$ as follows:\n$$\nQ_0(x) = Q(x) \\quad \\text{and} \\quad Q_{k+1}(x) = Q_k(x+1) - Q_k(x)\n$$\nfor all $k \\ge 0$. Because for any polynomial $f$, the leading terms of $f(x+1)$ and $f(x)$ coincide, it follows that the degree of $Q_{k+1}$ is smaller than the degree of $Q_k$. As $Q_0$ was of degree three, it follows that $Q_3$ is a constant. The polynomials $Q_1$, $Q_2$, $Q_3$ can easily be determined, but their explicit form is not needed below.\nThe assumption that $Q(i)$, $Q(i+1)$, $Q(i+2)$ and $Q(i+3)$ are integers implies that $Q_1(i)$, $Q_1(i+1)$ and $Q_1(i+2)$ are integers. In turn we get that $Q_2(i)$ and $Q_2(i+1)$ are integers, which finally yields that $Q_3(i) \\in \\mathbb{Z}$. As $Q_3$ is constant, this shows that $Q_3(n) \\in \\mathbb{Z}$ for all $n \\in \\mathbb{Z}$.\nWe show next that $Q_{k+1}(n) \\in \\mathbb{Z}$ for all $n \\in \\mathbb{Z}$ implies that $Q_k(n) \\in \\mathbb{Z}$ for all $n \\in \\mathbb{Z}$, provided that $Q_k(i) \\in \\mathbb{Z}$ for at least one $i \\in \\mathbb{Z}$. For $n \\ge i$ this follows by induction from the equation $Q_k(n+1) = Q_{k+1}(n) + Q_k(n)$. For $n \\le i$ we use induction and the equality $Q_k(n-1) = Q_k(n) - Q_{k+1}(n-1)$.\nBecause we have seen that $Q_3(n) \\in \\mathbb{Z}$ and that $Q_2(i)$, $Q_1(i)$ and $Q_0(i)$ are integers, it follows now that $Q_0(n)$ is an integer for all $n \\in \\mathbb{Z}$.", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 33139, "subject": "Mathematics (Multi-modal)", "question": "Let $a_1 = 1$, $b_1 = 0$, $c_1 = 1$ and define for all $n \\ge 1$\n$$\na_{n+1} = a_n + 2b_n, \\quad b_{n+1} = b_n + 2c_n, \\quad c_{n+1} = a_n + c_n.\n$$\nFind integers $A$, $B$, $C$ such that $a_{n+3} = Aa_{n+2} + Ba_{n+1} + Ca_n$ for all $n \\ge 1$.", "options": [], "answer": "A = 3, B = -3, C = 5", "solution": "**Solution 1.** In order to write the required equations for $n = 1, 2, 3$ we calculate the following values:\n\n| n | 1 | 2 | 3 | 4 | 5 | 6 |\n|---|---|---|---|---|---|---|\n| $a_n$ | 1 | 1 | 5 | 17 | 41 | 97 |\n| $b_n$ | 0 | 2 | 6 | 12 | 28 | 78 |\n| $c_n$ | 1 | 2 | 3 | 8 | 25 | 66 |\n\nThe integers $A$, $B$, $C$ should therefore satisfy the three equations\n$$\n\\begin{aligned}\n5A + B + C &= 17 \\\\\n17A + 5B + C &= 41 \\\\\n41A + 17B + 5C &= 97.\n\\end{aligned}\n$$\nSubtracting the first of them from the second and five times the first from the third yields\n$$\n\\begin{aligned}\n12A + 4B &= 24 \\\\\n16A + 12B &= 12,\n\\end{aligned}\n$$\nfrom which we easily obtain $A = 3$, $B = -3$ and $C = 5$.\nIt remains to be shown that $a_{n+3} = 3a_{n+2} - 3a_{n+1} + 5a_n$ for all $n \\ge 1$. We will prove this by induction. In order to do so, we will show by induction the following three identities for $n \\ge 1$:\n$$\n\\begin{aligned}\na_{n+3} &= 3a_{n+2} - 3a_{n+1} + 5a_n \\\\\nb_{n+3} &= 3b_{n+2} - 3b_{n+1} + 5b_n \\\\\nc_{n+3} &= 3c_{n+2} - 3c_{n+1} + 5c_n.\n\\end{aligned}\n$$\nA straightforward calculation, using the above table of values, shows that these identities hold true for $n = 1$. For the inductive step, we use the given recursion for $a_{n+4}$, $b_{n+4}$ and $c_{n+4}$ and the inductive assumption to obtain\n$$\n\\begin{aligned}\na_{n+4} &= a_{n+3} + 2b_{n+3} \\\\\n&= 3a_{n+2} - 3a_{n+1} + 5a_n + 2(3b_{n+2} - 3b_{n+1} + 5b_n) \\\\\n&= 3(a_{n+2} + 2b_{n+2}) - 3(a_{n+1} + 2b_{n+1}) + 5(a_n + 2b_n) \\\\\n&= 3a_{n+3} - 3a_{n+2} + 5a_{n+1} \\quad \\text{and similarly} \\\\\nb_{n+4} &= b_{n+3} + 2c_{n+3} = 3b_{n+3} - 3b_{n+2} + 5b_{n+1} \\quad \\text{and} \\\\\nc_{n+4} &= c_{n+3} + a_{n+3} = 3c_{n+3} - 3c_{n+2} + 5c_{n+1}.\n\\end{aligned}\n$$\nThis shows that indeed $a_{n+3} = 3a_{n+2} - 3a_{n+1} + 5a_n$ for all $n \\ge 1$.\n\n\n**Solution 2.** Let $r = \\sqrt[3]{2}$ and $x = 1+r^2$. Note that $r^3 = 2$ and $r^4 = 2r$. Letting $x_n = a_n + b_n r + c_n r^2$, we obtain\n$$\n\\begin{aligned}\nx \\cdot x_n &= (1+r^2)(a_n + b_n r + c_n r^2) \\\\\n&= (a_n + 2b_n) + (b_n + 2c_n) r + (a_n + c_n) r^2 = x_{n+1}.\n\\end{aligned}\n$$\nBecause $x_1 = x$ this shows that $x_n = x^n$ for all $n \\ge 1$.\nFrom $x = 1 + r^2$ and $r^3 = 2$ we get $4 = (r^2)^3 = (x - 1)^3$, hence\n$$\nx^3 - 3x^2 + 3x - 5 = 0,\n$$\nand so for all $n \\ge 1$\n$$\nx^{n+3} = 3x^{n+2} - 3x^{n+1} + 5x^n.\n$$\nUsing $x^n = x_n = a_n + b_n r + c_n r^2$ this can be rewritten as\n$$\na_{n+3} + b_{n+3}r + c_{n+3}r^2 = (3a_{n+2} - 3a_{n+1} + 5a_n) + (3b_{n+2} - 3b_{n+1} + 5b_n)r + (3c_{n+2} - 3c_{n+1} + 5c_n)r^2.\n$$\nBecause the only rational numbers $t_0, t_1, t_2$ that satisfy $t_0 + t_1\\sqrt{2} + t_2\\sqrt{4} = 0$ are $t_0 = t_1 = t_2 = 0$ (see Problem 19), the above implies that $a_{n+3} = 3a_{n+2} - 3a_{n+1} + 5a_n$ for all $n \\ge 1$, hence $A = 3$, $B = -3$ and $C = 5$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33140, "subject": "Mathematics (Multi-modal)", "question": "Suppose $n \\ge 2$, and $a_1, a_2, \\dots, a_n$ are positive numbers that sum to $1$. Prove that\n$$\n\\frac{n}{n-1} \\le \\sum_{i=1}^{n} \\frac{a_i}{1-a_i},\n$$\nwith equality iff $a_i = 1/n$, $i = 1, 2, \\dots, n$.", "options": [], "answer": "Detailed solution", "solution": "The function $f(x) = \\frac{1}{1-x}$, $0 \\le x < 1$, is strictly convex on $[0, 1)$, and so, if $\\alpha_i$, $i = 1, 2, \\dots, n$ are non-negative numbers that sum to $1$, then\n$$\nf\\left(\\sum_{i=1}^{n} \\alpha_i a_i\\right) \\le \\sum_{i=1}^{n} \\alpha_i f(a_i).\n$$\n\n**Solution 1.** In particular, with $\\alpha_i = a_i$,\n$$\n\\frac{1}{1 - \\sum_{i=1}^{n} a_i^2} = f\\left(\\sum_{i=1}^{n} a_i a_i\\right) \\le \\sum_{i=1}^{n} a_i f(a_i) = \\sum_{i=1}^{n} \\frac{a_i}{1 - a_i}.\n$$\nBut, by the Cauchy-Schwarz inequality,\n$$\n1 = \\left(\\sum_{i=1}^{n} a_i\\right)^2 \\le n \\sum_{i=1}^{n} a_i^2,\n$$\nwith equality iff $a_i = 1/n$, $i = 1, 2, \\dots, n$. In other words,\n$$\n\\frac{n}{n-1} \\le \\frac{1}{1 - \\sum_{i=1}^{n} a_i^2} \\le \\sum_{i=1}^{n} \\frac{a_i}{1 - a_i},\n$$\nwith equality iff $a_i = 1/n$, $i = 1, 2, \\dots, n$.\n\n\n**Solution 2.** Using $\\alpha_i = 1/n$, convexity gives\n$$\n\\frac{n}{n-1} = f\\left(\\frac{1}{n}\\right) = f\\left(\\frac{1}{n} \\sum_{i=1}^{n} a_i\\right) \\le \\frac{1}{n} \\sum_{i=1}^{n} f(a_i),\n$$\nwith equality iff the $a_i$ are equal to each other. Hence\n$$\nn + \\frac{n}{n-1} = \\frac{n^2}{n-1} \\le \\sum_{i=1}^{n} f(a_i) = \\sum_{i=1}^{n} \\left(1 + \\frac{a_i}{1-a_i}\\right) = n + \\sum_{i=1}^{n} \\frac{a_i}{1-a_i}\n$$\nand this is equivalent to the desired inequality. Moreover, the inequality is strict unless the $a_i$ are equal to each other.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33141, "subject": "Mathematics (Multi-modal)", "question": "A square $ABCD$ is inscribed in a circle. Let $E$ be the midpoint of $AD$. The line $CE$ meets the circle again at $F$. The lines $FB$ and $AC$ meet at $G$ and the line $GE$ meets the arc $AFD$ of the circle at $K$.\nFind, with proof, the measure of $\\angle KAD$.", "options": [], "answer": "15°", "solution": "Let $O$ be the intersection point of the diagonals $AC$ and $BD$, which also is the centre of the circle. Because $A$, $B$, $C$, $F$ are on a circle, we have $\\angle BFC = \\angle BAC = 45^\\circ$. Since $\\angle CAD = 45^\\circ$, we obtain $\\angle BFC = \\angle CAD$ and hence $\\angle AEGF$ is cyclic.\n![](attached_image_1.png)\nThis implies that $\\angle AEG = \\angle AFG = \\angle AFC - \\angle BFC = 90^\\circ - 45^\\circ = 45^\\circ$. Because $\\angle ADB = 45^\\circ$, too, the lines $EG$ and $DO$ are parallel.\nBecause $E$ is the midpoint of $AD$, $G$ is the midpoint of $AO$. As $DB$ is perpendicular to $AC$ we obtain now that $KG$ is the perpendicular bisector of $AO$. Hence $|AK| = |OK|$. As $|OK| = |OA|$ (both are radii), we see now that $AOK$ is an equilateral triangle. We obtain that $\\angle OAK = 60^\\circ$ and so\n$$\n\\angle KAD = \\angle OAK - \\angle CAD = 60^\\circ - 45^\\circ = 15^\\circ.\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33142, "subject": "Mathematics (Multi-modal)", "question": "Three different nonzero real numbers $a$, $b$, $c$ satisfy the equations\n$$\na + \\frac{2}{b} = b + \\frac{2}{c} = c + \\frac{2}{a} = p\n$$\nwhere $p$ is a real number. Prove that $abc + 2p = 0$.", "options": [], "answer": "Detailed solution", "solution": "We eliminate variables to get an equation in $b$ and $p$. First,\n$$\na = p - \\frac{2}{b} = \\frac{bp - 2}{b}, \\quad \\text{so that} \\quad \\frac{1}{a} = \\frac{b}{bp - 2}. \\quad \\text{Then}\n$$\n$$\nc = p - \\frac{2}{a} = p - \\frac{2b}{bp-2} = \\frac{bp^2 - 2p - 2b}{bp-2}, \\quad \\text{so that} \\quad \\frac{1}{c} = \\frac{bp-2}{bp^2 - 2p - 2b}.\n$$\nFinally,\n$$\nb = p - \\frac{2}{c} = p - \\frac{2bp - 4}{bp^2 - 2p - 2b}.\n$$\nRearranging we obtain $b^2(p^2 - 2) + b(2p - p^3) + (2p^2 - 4) = 0$ that is\n$$\n(p^2 - 2)(b^2 - pb + 2) = 0.\n$$\nIf $p^2 \\ne 2$, $b$ must be a root of the quadratic function $f(x) = x^2 - px + 2$ and by symmetry so must $a$ and $c$. But this is a contradiction since $a$, $b$ and $c$ are different numbers. It follows that we must have $p^2 = 2$ and so $p$ must either be equal to $+\\sqrt{2}$ or to $-\\sqrt{2}$.\nIt is easy to check that both possibilities for $p$ lead to the solution set\n$$\na = \\frac{pt - 2}{t}, \\quad b = t, \\quad c = -\\frac{2p}{pt - 2}.\n$$\nwhere $t \\ne 0$, $\\frac{2}{p}$. This solution must satisfy $abc = -2p$.\nThe equation $a + \\frac{2}{b} = b + \\frac{2}{c}$ implies $a - b = \\frac{2}{c} - \\frac{2}{b}$ which can be rewritten as\n$$\nbc(a - b) = 2(b - c).\n$$\nBecause the given equations are cyclically symmetric, we also obtain\n$$\nab(c - a) = 2(a - b) \\quad \\text{and} \\quad ac(b - c) = 2(c - a).\n$$\nMultiplying these three equations and using that $(a - b)(b - c)(c - a) \\ne 0$, we obtain\n$$\n(abc)^2 = 8.\n$$\nFrom $a + \\frac{2}{b} = p = c + \\frac{2}{a}$ we obtain $pb = ab + 2$ and $pa = ac + 2$. Subtracting these gives $p(a - b) = a(c - b)$. By cyclic symmetry we also get\n$$\np(b - c) = b(a - c) \\quad \\text{and} \\quad p(c - a) = c(b - a).\n$$\nMultiplying these three equations and using that $(a - b)(b - c)(c - a) \\ne 0$, we obtain\n$$\np^3 = -abc.\n$$\nThis implies $p^6 = (-abc)^2 = 8$, thus $p^2 = 2$, and finally $abc = -p^3 = -2p$.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 33143, "subject": "Mathematics (Multi-modal)", "question": "Let $n$ be a positive integer and $a_1, \\dots, a_n$ be positive real numbers. Let $g(x)$ denote the product $(x + a_1) \\cdots (x + a_n)$. Let $a_0$ be a real number and let\n$$\nf(x) = (x - a_0)g(x) = x^{n+1} + b_1 x^n + b_2 x^{n-1} + \\dots + b_n x + b_{n+1}.\n$$\nProve that all the coefficients $b_1, b_2, \\dots, b_{n+1}$ of the polynomial $f(x)$ are negative if and only if\n$a_0 > a_1 + a_2 + \\dots + a_n.$", "options": [], "answer": "Detailed solution", "solution": "Note first that $b_1 = (a_1 + a_2 + \\dots + a_n) - a_0$, so the condition\n$$\na_0 > a_1 + a_2 + \\dots + a_n\n$$\nis necessary for $b_1 < 0$.\nBelow it will be useful to know that in the case $a_0 = a_1 + a_2 + \\dots + a_n$, the coefficients $b_i$ are all non-positive. First note that $a_0 = a_1 + a_2 + \\dots + a_n$ implies $b_1 = 0$. Next, write\n$$\ng(x) = (x + a_1) \\cdots (x + a_n) = x^n + c_1 x^{n-1} + \\dots + c_{n-1} x + c_n.\n$$\nThen, the coefficient $c_j$ is the sum of all the products $a_{r_1}a_{r_2}\\cdots a_{r_j}$ with $1 \\le r_1 < r_2 < \\dots < r_j \\le n$. In particular, $c_j > 0$ for $1 \\le j \\le n$. Moreover, $b_{j+1} = c_{j+1} - a_0c_j$ for $1 \\le j \\le n-1$ and $b_{n+1} = -a_0c_n < 0$. Observe that when $j < n$ and\n$$\na_0 c_j = (a_1 + a_2 + \\dots + a_n) c_j\n$$\nis multiplied out in full, every term $a_{s_1}s_{s_2}\\cdots a_{s_{j+1}}$ with $1 \\le s_1 < s_2 < \\dots < s_{j+1} \\le n$ occurs, since $a_{s_1}s_{s_2}\\cdots a_{s_j}$ occurs in $c_j$ and $a_{s_{j+1}}$ in $(a_1+a_2+\\dots+a_n)$. Since all $a_i > 0$, we deduce that $(a_1+a_2+\\dots+a_n)c_j \\ge c_{j+1}$, for $1 \\le j \\le n-1$. Hence, if $a_0 = a_1 + a_2 + \\dots + a_n$, the coefficients $b_i$ are all non-positive. Finally, suppose $a_0 > a_1 + a_2 + \\dots + a_n$, and let $v = a_0 - (a_1 + a_2 + \\dots + a_n)$. Then $f(x) = (x-(a_1+a_2+\\dots+a_n))g(x)-vg(x)$. Since $v > 0$, all coefficients of $-vg(x)$ are negative, and, excepting the coefficient 1 of $x^{n+1}$, all coefficients of $(x-(a_1+a_2+\\dots+a_n))g(x)$ are non-positive, as shown above. So all coefficients $b_j$ of $f(x)$ are negative, as required.", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 33144, "subject": "Mathematics (Multi-modal)", "question": "Let $n > 2$ be an integer and\n$$\nf(x) = x^n + x^{n-1} - x^{n-2} - 3.\n$$\nProve that $f(x)$ cannot be factored as the product of two polynomials with integer coefficients and degree less than $n$.", "options": [], "answer": "Detailed solution", "solution": "Suppose, for the sake of contradiction, that $f(x) = g(x)h(x)$ where $g(x)$ and $h(x)$ both have integer coefficients and degree at least one. Since\n$$\ng(0)h(0) = f(0) = -3,\n$$\none of $g(0)$, $h(0)$ must be $\\pm 1$, say $g(0) = \\pm 1$. The absolute value of the product of the roots (in the complex numbers) of the polynomial $g(x)$ is $|g(0)| = 1$, so $g(z) = 0$ for some complex number $z$ with $|z| \\le 1$. Now, $f(z) = 0$, so $z^n + z^{n-1} - z^{n-2} = 3$.\nHowever, $|z^n + z^{n-1} - z^{n-2}| \\le |z^n| + |z^{n-1}| + |z^{n-2}| \\le 3$, with equality implying $|z| = 1$ and that $z^n, z^{n-1}$, and $-z^{n-2}$ all have the same argument. This is easily seen to be impossible, so we have reached the desired contradiction.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33145, "subject": "Mathematics (Multi-modal)", "question": "Let $ABC$ be a triangle with greatest side $BC$ and let $D$ and $E$ be internal points on $AB$ and $AC$, respectively, such that $|AD| = |AE|$. Let $F$ and $G$ be internal points on $BC$ such that $|BD| = |BG|$ and $|CF| = |CE|$. Prove that $D$, $E$, $F$ and $G$ are concyclic.", "options": [], "answer": "Detailed solution", "solution": "The relative position of $F$ and $G$ leads to different situations. If $F = G$ we have nothing to show. There remain two cases to consider: case (i) $F$ is between $C$ and $G$; case (ii) $G$ is between $C$ and $F$.\n![](attached_image_1.png)\ncase (i)\n![](attached_image_2.png)\ncase (ii)\nIn both cases, denote $\\alpha = \\angle ADE = \\angle AED$, $\\beta = \\angle BDG = \\angle BGD$ and $\\gamma = \\angle CFE = \\angle CEF$. Considering the angle sum of the three triangles involving these angles, we obtain $2(\\alpha + \\beta + \\gamma) = 540^\\circ - (\\angle A + \\angle B + \\angle C) = 360^\\circ$, hence $\\alpha + \\beta + \\gamma = 180^\\circ$.\nIn case (i) we have $\\angle EDG + \\angle EFG = 180^\\circ - (\\alpha + \\beta) + 180^\\circ - \\gamma = 180^\\circ$, hence $DEFG$ is a cyclic quadrilateral.\nIn case (ii) we have $\\angle EDG = 180^\\circ - (\\alpha + \\beta) = \\gamma = \\angle EFG$, which implies that $EDFG$ is a cyclic quadrilateral.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33146, "subject": "Mathematics (Multi-modal)", "question": "Find with proof, all triples of non-negative integers $(x, y, n)$ satisfying\n$$\n(x^4 + 1)^3 + (y^4 + 1)^3 = 2014^n.\n$$", "options": [], "answer": "No solutions", "solution": "Consider the given equation modulo $13$. The squares modulo $13$ are $0$, $\\pm 1$, $\\pm 3$, $\\pm 4$, so the fourth powers modulo $13$ are $0$, $1$, $3$, $9$. Therefore $x^4 + 1$ must be one of $1$, $2$, $4$, $10$ modulo $13$. For $z$ congruent to $1$, $2$, $4$, $10$ modulo $13$, the value of $z^3$ can only be $\\pm 1$ or $8$ modulo $13$.\nSince $2014^n \\equiv (-1)^n \\equiv \\pm 1$ modulo $13$, the equation reduces to\n$$\nr + s \\equiv \\pm 1 \\pmod{13}\n$$\nwhere $r$ and $s$ are either $\\pm 1$ or $8$ modulo $13$ – this can easily be seen to have no solutions.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33147, "subject": "Mathematics (Multi-modal)", "question": "Suppose that $\\cos(m^\\circ) = \\sqrt{2} - 1$. Prove that $m$ is not an integer.", "options": [], "answer": "Detailed solution", "solution": "Let $x = \\sqrt{2}-1$, $t = m^\\circ$. Then $x$ is irrational and $x^2 = 3-2\\sqrt{2} = 1-2x$. We would like to establish that all the numbers $\\cos(2nt)$ are distinct for $n \\ge 1$. This will follow from the following claim.\n\nClaim: The sequences of integers $(a_n)$ and $(b_n)$ given recursively by\n$$\n\\begin{align*} a_1 &= 1 & a_{k+1} &= 2a_k^2 + 2b_k^2 - 1 \\\\ b_1 &= 4 & b_{k+1} &= 4b_k(a_k + b_k) \\end{align*}\n$$\nare strictly increasing and, for each positive integer $n$, they satisfy\n$$\n\\cos(2nt) = a_n - b_n x.\n$$\nInduction easily establishes that the two sequences are strictly increasing: Because $a_k \\ge 1$ implies $2a_k^2 > a_k$, and $b_k > 1$ implies $2b_k^2 - 1 > 0$, we get $a_{k+1} = 2a_k^2 + 2b_k^2 - 1 > a_k$. Also, $4(a_k+b_k) > 1$, and so $b_{k+1} = 4b_k(a_k+b_k) > b_k$. We now establish the equality $\\cos(2nt) = a_n - b_nx$ by induction on $n$. For $n=1$, we have $\\cos(2t) = 2\\cos^2(t) - 1 = 2x^2 - 1 = 2(1-2x) - 1 = 1-4x$, as required.\n\nAssume $\\cos(2kt) = a_k - b_kx$ for some $k \\ge 1$. Then we have\n$$\n\\begin{align*} \\cos(2^{k+1}t) &= 2 \\cos^2(2^k t) - 1 = 2(a_k - b_k x)^2 - 1 \\\\ &= 2a_k^2 - 4a_k b_k x + 2b_k^2 x^2 - 1 \\quad \\text{(now use } x^2 = 1-2x) \\\\ &= (2a_k^2 + 2b_k^2 - 1) - (4a_k b_k + 4b_k^2) x \\\\ &= a_{k+1} - b_{k+1}x \\end{align*}\n$$\nand the claim is fully established.\n\nIt follows that all the numbers $\\cos(2nt)$ are distinct for $n \\ge 1$, since if $\\cos(2pt) = \\cos(2^q t)$, for positive integers $p < q$, then $a_p - xb_p = a_q - xb_q$, with $b_p \\ne b_q$ and $x = (a_p - a_q)/(b_p - b_q)$ is rational, which is impossible.\n\nHowever, note that $2^{12}-1 = (2^6+1)(2^6-1) = (2^2+1)(2^4-2^2+1)(2^3-1)(2^3+1)$ is divisible by $(2^2+1)(2^3+1) = 5 \\cdot 9 = 45$. Therefore, for all integers $n \\ge 3$ the number $2^{n+12} - 2^n$ is divisible by 360. So, if $m$ is an integer and $n \\ge 3$, $2^{n+12}m - 2^m n$ is divisible by 360 and thus $\\cos(2^{n+12}t) = \\cos(2^m t)$, for $n \\ge 3$. This contradiction shows that $m$ is not an integer.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33148, "subject": "Mathematics (Multi-modal)", "question": "Suppose $u, v$ are distinct roots of the cubic polynomial\n$$\np(z) = z^3 - 5z^2 + 6z - 1.\n$$\nProve that $u, v$, and $u/v$ are positive irrational real numbers.", "options": [], "answer": "Detailed solution", "solution": "$$\np(0) = -1,\\ p(1) = 1,\\ p(2) = p(3) = -1,\\ p(4) = 7,\n$$\nthe roots of $p$ are positive real numbers that belong to the union of the intervals $(0, 1)$, $(1, 2)$ and $(3, 4)$. Hence the roots are distinct, and neither of them is an integer. But since the coefficients of $p$ are integers, neither can they be rational numbers, by the Gauss Lemma. Hence, $u, v$ are irrational. Suppose now that $u = v r$, where $r$ is rational, and $r \\ne 1$. Then $v$ satisfies the pair of cubic equations:\n$$\nv^3 - 5v^2 + 6v - 1 = 0,\\ \\quad r^3 v^3 - 5r^2 v^2 + 6r v - 1 = 0.\n$$\nEliminating the term involving $v^3$ in the usual way, we see that\n$$\n(1 - r)(5r^2 v^2 - 6r(1 + r)v + 1 + r + r^2) = 0.\n$$\nSince $r \\ne 1$ by hypothesis, it follows that $u$ satisfies the quadratic equation\n$$\n5u^2 = 6(r + 1)u - (1 + r + r^2),\n$$\nwhence (multiplying by $5u$ and substituting for $5u^2$)\n$$\n\\begin{aligned}\n25u^3 &= 6(r + 1)5u^2 - 5(1 + r + r^2)u \\\\\n&= (36(r + 1)^2 - 5(1 + r + r^2))u - 6(r + 1)(1 + r + r^2),\n\\end{aligned}\n$$\ni.e.,\n$$\n25u^3 = (31 + 67r + 31r^2)u - 6(r + 1)(1 + r + r^2).\n$$\nSubstituting these expressions for $u^3, u^2$ into $u^3 - 5u^2 + 6u - 1 = 0$, we derive a linear equation for $u$ with non-zero rational coefficients:\n$$\n0 = (31 - 83r + 31r^2)u - (1 + r)(6 - 19r + 6r^2).\n$$\nThis implies that $u$ is rational, which is false. This contradiction establishes the conclusion that $u/v$ is also irrational.", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 33149, "subject": "Mathematics (Multi-modal)", "question": "Suppose $a_1, \\dots, a_n > 0$, where $n > 1$ and $\\sum_{i=1}^n a_i = 1$. For $i = 1, 2, \\dots, n$, let $b_i = a_i^2 / \\sum_{j=1}^n a_j^2$. Prove that\n$$\n\\sum_{i=1}^{n} \\frac{a_i}{1 - a_i} \\le \\sum_{i=1}^{n} \\frac{b_i}{1 - b_i}.\n$$\nWhen does equality occur?", "options": [], "answer": "Equality holds if and only if a_1 = a_2 = ... = a_n = 1/n.", "solution": "Without loss of generality, we assume that $a_1 \\ge a_2 \\ge \\dots \\ge a_n$, so also $b_1 \\ge b_2 \\ge \\dots \\ge b_n$ and $0 < a_i, b_i < 1$. Let $S = \\sum_{i=1}^n a_i^2$, then $b_i = a_i^2/S$. Note that $S = S \\cdot \\sum_{i=1}^n a_i$ and $\\sum_{i=1}^n b_i = 1$. For $1 \\le k \\le n$ let\n$$\nD_k = \\sum_{i=1}^{k} (b_i - a_i),\n$$\nin particular $D_n = 0$, because $\\sum_{i=1}^k a_i = \\sum_{i=1}^k b_i = 1$. We have for $1 \\le k < n$\n$$\nS \\cdot D_k = \\sum_{i=1}^{k} \\sum_{j=1}^{n} a_i^2 a_j - \\sum_{i=1}^{k} \\sum_{j=1}^{n} a_i a_j^2 = \\sum_{\\substack{1 \\le i \\le k \\\\ k < j \\le n}} a_i a_j (a_i - a_j) \\ge 0\n$$\nbecause all terms in the sum are non-negative. As $S > 0$, this implies that $D_k \\ge 0$ for all $1 \\le k \\le n$. Note also that one of the terms in the sum, namely $a_1 a_n (a_1 - a_n)$, is positive unless $a_1 = a_2 = \\dots = a_n$. So we have $D_k = 0$ for $1 \\le k < n$ if $a_1 = a_2 = \\dots = a_n$, and $D_k > 0$ for $1 \\le k < n$ otherwise. Next observe that, for real numbers $a \\ne 1$ and $b \\ne 1$, we have\n$$\n\\frac{b}{1-b} - \\frac{a}{1-a} = \\frac{1}{(1-b)(1-a)} \\cdot (b-a).\n$$\nSetting $c_i = 1/(1-b_i)(1-a_i)$ this implies\n$$\nD := \\sum_{i=1}^{n} \\frac{b_i}{1-b_i} - \\sum_{i=1}^{n} \\frac{a_i}{1-a_i} = \\sum_{i=1}^{n} c_i (b_i - a_i) = \\sum_{i=1}^{n-1} (c_i - c_{i+1}) D_i,\n$$\nwhere we have used that $D_n = 0$. From $a_i \\ge a_{i+1}$ and $b_i \\ge b_{i+1}$ we get $c_i \\ge c_{i+1}$, hence all terms in this sum are non-negative. This shows that $D \\ge 0$ which is equivalent to the inequality we want to prove.\nAs for equality, we have $D = 0$ if and only if every term in the last sum equals 0. If $a_1 = a_2 = \\dots = a_n$, then, as we have seen above, each $D_i = 0$ and so the sum is zero. If however not all numbers $a_i$ are equal, then we have seen that $D_i > 0$ and $c_i - c_{i+1} \\ge 0$ for $1 \\le i < n$. Therefore, all we need to show is that $c_i > c_{i+1}$ for one such $i$. If not all $a_i$ are equal to each other, there exists $1 \\le i < n$ such that $a_i > a_{i+1}$ and $b_i \\ge b_{i+1}$. For this $i$, the definition of $c_i$ indeed implies that $c_i > c_{i+1}$.\nThus the condition for equality is that all the numbers $a_i$ are equal to $1/n$.\nIf $p \\ge 1$ is a real number, the function $F(x) = x^p$ is strictly convex on $[0, \\infty)$. Hence, if $x_i \\ge 0$, $\\alpha_i \\ge 0$ and $\\sum_i \\alpha_i = 1$, then\n$$\n\\left(\\sum_i \\alpha_i x_i\\right)^p \\le \\sum_i \\alpha_i x_i^p.\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33150, "subject": "Mathematics (Multi-modal)", "question": "Let $k \\ge 3$ be an integer and let functions $f_0, f_1, \\dots, f_k$ be defined for positive integers such that\n$$\n\\begin{align*}\nf_j(1) &= 1 && \\text{for } 0 \\le j \\le k, \\\\\nf_0(n+1) &= \\sum_{i=0}^{k} f_i(n) && \\text{for } n \\ge 1 \\text{ and} \\\\\nf_{j+1}(n+1) &= f_j(n+1) + f_j(n) && \\text{for } 0 \\le j < k \\text{ and } n \\ge 1.\n\\end{align*}\n$$\nFind integers $a_0, a_1, \\dots, a_k$ such that for all $n \\ge 1$\n$$\nf_k(n + k + 1) = \\sum_{i=0}^{k} a_i f_k(n + i).\n$$", "options": [], "answer": "a_i = \\binom{k+1}{i} for 0 \\le i \\le k", "solution": "With $m = n + k + 1$ and $j = k + 1 - i$, we obtain for $n \\ge 1$\n$$\nf_k(n + k + 1) = \\sum_{i=0}^{k} \\binom{k+1}{i} f_k(n + i).\n$$\nThis shows that $a_i = \\binom{k+1}{i}$ are the integers that solve the problem.\nDefine $r = \\sqrt[k+1]{2}$, so that $r^{k+1} = 2$ and let\n$$\nF = 1 + r + r^2 + \\dots + r^k = \\frac{r^{k+1} - 1}{r-1} = \\frac{1}{r-1}.\n$$\nAlso define $F_n = \\sum_{j=0}^{k} f_{k-j}(n)r^j$ for integers $n \\ge 1$, then $F_1 = F$.\nFirst we would like to show that $F \\cdot F_n = F_{n+1}$ for all $n \\ge 1$. As $F = \\frac{1}{r-1}$, this is equivalent to showing that $rF_{n+1} = F_n + F_{n+1}$.\nTo prove this, we will use the identity $f_k(n+1) + f_k(n) = 2f_0(n+1)$, which is obtained as follows. First observe that the defining recursion for the $f_j$ implies\n$$\nf_j(n+1) = 2 \\sum_{i=0}^{k} f_i(n) - \\sum_{i=j}^{k} f_i(n)\n$$\nfor all $j \\ge 0$ and $n \\ge 1$. In particular, for $j = k$, we obtain\n$$\nf_k(n+1) = 2 \\sum_{i=0}^{k} f_i(n) - f_k(n) = 2f_0(n+1) - f_k(n),\n$$\nas required. Using this identity, we obtain now\n$$\n\\begin{align*}\nF_n + F_{n+1} &= \\sum_{j=0}^{k} (f_{k-j}(n) + f_{k-j}(n+1))r^j \\\\\n&= (f_k(n) + f_k(n+1)) + \\sum_{j=1}^{k} f_{k-j+1}(n+1)r^j \\\\\n&= 2f_0(n+1) + \\sum_{j=0}^{k-1} f_{k-j}(n+1)r^{j+1} \\\\\n&= \\sum_{j=0}^{k} f_{k-j}(n+1)r^{j+1} = rF_{n+1}.\n\\end{align*}\n$$\nThis proves that $F \\cdot F_n = F_{n+1}$, from which we obtain $F_n = F^n$ for all $n \\ge 1$.\nFrom $F = \\frac{1}{r-1}$ we get $r = \\frac{F+1}{F}$ and so $2 = r^{k+1} = \\left(\\frac{F+1}{F}\\right)^{k+1}$. This gives $2F^{k+1} = (F+1)^{k+1}$ and we obtain\n$$\nF^{k+1} = \\sum_{i=0}^{k} \\binom{k+1}{i} F^i \\quad \\text{and so} \\quad F^{n+k+1} = \\sum_{i=0}^{k} \\binom{k+1}{i} F^{n+i}.\n$$\nBecause $F^n = F_n$ this can be rewritten as\n$$\nF_{n+k+1} = \\sum_{i=0}^{k} \\binom{k+1}{i} F_{n+i} \\quad \\text{that is}\n$$\n$$\n\\sum_{j=0}^{k} f_{k-j}(n+k+1)r^j = \\sum_{j=0}^{k} \\sum_{i=0}^{k} \\binom{k+1}{i} f_{k-j}(n+i)r^j.\n$$\nBecause the only rational numbers $t_0, \\dots, t_k$ satisfying $t_0 + t_1 r + \\dots + t_k r^k = 0$ are $t_0 = t_1 = \\dots = t_k = 0$ (see Problem 19), by comparing the terms with $j = 0$, we obtain\n$$\nf_k(n + k + 1) = \\sum_{i=0}^{k} \\binom{k+1}{i} f_k(n + i).\n$$\nThis shows that $a_i = \\binom{k+1}{i}$ are the integers that solve the problem.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33151, "subject": "Mathematics (Multi-modal)", "question": "Prove for all integers $N > 1$ that $(N^2)^{2014} - (N^5)^{106}$ is divisible by $N^3 - 1$.", "options": [], "answer": "Detailed solution", "solution": "Observe that $2 \\cdot 2014 - 5 \\cdot 106 = 3498 = 3 \\cdot 1166$, hence\n$$\n(N^2)^{2014} - (N^5)^{106} = (N^5)^{106} ((N^3)^{1166} - 1) \\\\ = (N^5)^{106} (N^3 - 1) ((N^3)^{1165} + (N^3)^{1164} + \\dots + 1)\n$$\nis divisible by $N^3 - 1$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33152, "subject": "Mathematics (Multi-modal)", "question": "Given an $8 \\times 8$ chess board, in how many ways can we select $56$ squares on the board while satisfying both of the following requirements:\n1. All black squares are selected.\n2. Exactly seven squares are selected in each column and in each row.", "options": [], "answer": "576", "solution": "Switching the definition of selection and non-selection, we see that an equivalent formulation is to select eight squares, with one in each row and in each column, and no black squares selected. We assume that the non-black squares are white.\n\nOrient the chessboard so that the square in row $1$, column $1$ is white. Let $a_i$ be the column of the selected white square in row $i$, so $i \\mapsto a_i$ is a permutation of $\\{1, \\dots, 8\\}$ and $a_i$ has the same parity as $i$. There are $4$ choices for $a_1$ ($a_1 \\in \\{1, 3, 5, 7\\}$), then $3$ for $a_3$ ($a_3 \\in \\{1, 3, 5, 7\\} \\setminus \\{a_1\\}$), $2$ for $a_5$, and $1$ for $a_7$. After these selections, we again have $4$ choices for $a_2$, $3$ for $a_4$, etc. All of these sets of choices are independent of each other, so in all we have $(4!)^2 = 576$ ways of performing our selection.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33153, "subject": "Mathematics (Multi-modal)", "question": "Suppose $ABCD$ is a simple quadrilateral, with side lengths\n$$\na = |BC|,\\ b = |CD|,\\ c = |DA|,\\ d = |AB|.\n$$\nLet $p = |AC|$. Prove that\n$$\n\\max(|d-a|,\\ |b-c|) < p < \\min(d+a,\\ b+c).\n$$\nConversely, if five positive numbers $a, b, c, d, p$ satisfy this condition, prove that $a, b, c, d$ are the side lengths of a simple quadrilateral, and that $p$ is the length of a diagonal.", "options": [], "answer": "Detailed solution", "solution": "Suppose $ABCD$ is a quadrilateral. The numbers $d, a, p$ are then the side lengths of the triangle $ABC$. Hence\n$$\n||AB| - |BC|| < |AC| < |AB| + |BC| \\iff |d - a| < p < d + a.\n$$\nSimilarly, $b, c, p$ are the side lengths of the triangle $CDA$, and so $|b - c| < p < b + c$, whence $p < \\min(d + a, b + c)$ and $\\max(|b - c|, |d - a|) < p$. This gives the required result.\n\n![](attached_image_1.png)\n\nThe converse also holds. In the first place, if the stated inequality holds, the numbers $a, d, p$ obey the triangle inequalities, and so they are the lengths of the sides of a triangle $ABC$, say with $a = |BC|, p = |AC|, d = |AB|$. With $A$ as centre draw a circle with radius $c$, and with $C$ as centre draw a circle of radius $b$. Because of the given condition that $|b-c| < p < b+c$, these circles intersect at two points. Label one of these $D$. Then $ABCD$ is a quadrilateral and the length of $AC$ is $p$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33154, "subject": "Mathematics (Multi-modal)", "question": "A circle is drawn through three vertices $A$, $B$, $C$ of a parallelogram $ABCD$ intersecting the side $CD$ internally at $E$ and the side $AD$ internally at $F$. The line $EF$ meets the line $BC$ at $H$ and the line $BA$ at $K$.\nProve that the circumcircles of the triangles $CEH$ and $AFK$ both touch the circumcircle of triangle $DEF$. Prove also that the common tangents at $E$ and $F$ both pass through $B$.", "options": [], "answer": "Detailed solution", "solution": "Because $DC \\parallel AB$ and $BEFA$ is cyclic, we have\n$\\angle EDF = \\angle KAF = 180^\\circ - \\angle FAB = \\angle FEB$ and\n$\\angle CEB = \\angle EBA = 180^\\circ - \\angle EFA = \\angle EFD = \\angle EHC,$\nthe last equality because $AD \\parallel BH$.\n![](attached_image_1.png)\nThe first line shows that **BE** is tangent to the circle **DEF** and the second line that **BE** is tangent to the circle **CEH**. In a similar way, using that **BCEF** is cyclic, the remaining statements follow.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33155, "subject": "Mathematics (Multi-modal)", "question": "A certain country is taking part in the IMO this year for the 24th time. The team would like to mark the occasion by finding positive integers $n_1, \\dots, n_{24}$ such that\n$$\nn_1^{24} + n_2^{24} + \\dots + n_{24}^{24} = 2015^{2015}.\n$$\nDetermine whether or not such a set of numbers exists.", "options": [], "answer": "No such set exists.", "solution": "**0.**\nWe first claim that if $n$ is odd, then $n^{2k} \\equiv 1 \\pmod{2^{k+2}}$. This can be verified inductively: first prove it for $k=1$, and the inductive step reduces to checking that $(1+2^{k+2})^2-1$ is divisible by $2^{k+3}$.\nIt follows that $n^{24} = (n^3)^8$ is congruent to either 0 or 1 (mod 32), depending on whether $n$ is even or odd. Thus the desired left-hand side sum can only have remainder between 0 and 24 inclusive modulo 32, but not $-1$.\nNow, 2000 is a multiple of 16 but not a multiple of 32, so $2015 \\equiv -1 \\pmod{32}$. Thus $2015^{2015} \\equiv -1 \\pmod{32}$ as well, and there are no solutions of the desired equation.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33156, "subject": "Mathematics (Multi-modal)", "question": "In the triangle $ABC$, the length of the altitude from $A$ to $BC$ is equal to $1$. $D$ is the midpoint of $AC$. What are the possible lengths of $BD$?", "options": [], "answer": "[1/2, ∞)", "solution": "**Solution 1.** Place $A$ at $(0, 1)$, $B$ at $(b, 0)$ and $C$ at $(c, 0)$ with $b \\neq c$. Then the coordinates of $D$ are $(c/2, 1/2)$. The length of $BD$ is thus $\\sqrt{(b-c/2)^2 + 1/4}$. This has a minimum value of $1/2$ when $b=c/2$ and $b \\neq 0$. There is no upper bound.\n\n**Solution 2.** Let the position of the point $A$ and the line $BC$ be fixed, but consider the points $B$ and $C$ to be variable. As the distance of $A$ from the line $BC$ is equal to $1$, the midpoint $D$ of $AC$ lies on the line $L$ which is parallel to $BC$ and has distance $1/2$ from $A$ and from $BC$. Therefore, the minimal distance between $B$ and $D$ is $1/2$ and for any given $C$ this is achieved when $BD$ is perpendicular to $BC$, provided that $AC$ is not perpendicular to $BC$. There is no upper bound for $|BD|$ because $B$ can lie as far away as we like.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33157, "subject": "Mathematics (Multi-modal)", "question": "Prove that $||1-4t^2|-3|t|| \\le \\frac{3}{2}$ for real numbers $t$ that satisfy $-1 \\le t \\le 1$.", "options": [], "answer": "Detailed solution", "solution": "By letting $s = |t|$ we see that it is enough to show $|1 - 4s^2 - 3s| \\le \\frac{3}{2}$, for $0 \\le s \\le 1$. Now $|1 - 4s^2 - 3s| = |f(s)|$, where\n$$\n\\begin{aligned}\nf(s) &= |1 - 4s^2| - 3s \\\\\n&= \\begin{cases} 1 - 4s^2 - 3s, & \\text{if } 0 \\le s \\le \\frac{1}{2} \\\\ 4s^2 - 3s - 1, & \\text{if } \\frac{1}{2} \\le s \\le 1 \\end{cases} \\\\\n&= \\begin{cases} (1+s)(1-4s), & \\text{if } 0 \\le s \\le \\frac{1}{2} \\\\ (4s+1)(s-1), & \\text{if } \\frac{1}{2} \\le s \\le 1 \\end{cases} \\\\\n&= \\begin{cases} p(s), & \\text{if } 0 \\le s \\le \\frac{1}{2} \\\\ q(s), & \\text{if } \\frac{1}{2} \\le s \\le 1. \\end{cases}\n\\end{aligned}\n$$\n![](attached_image_1.png)\nClearly, $p, q$ are quadratic functions; $q(s) = -p(-s)$; $p$ cuts crosses the horizontal axis at $-1$ and $1/4$ and is concave, while $q$ is convex and crosses the horizontal axis at $-1/4$ and $1$. Also, $p$ is decreasing on $(0, 1/2)$, negative on $(1/4, 1/2)$, while $q$ is increasing and negative on $(1/2, 1)$. Thus the graph of $f$ is a union of two parabolic arcs, which meet at $s = 1/2$ where $f$ takes its least value, namely $-3/2$. It takes its largest value at $0$. In other words,\n$$\n-\\frac{3}{2} \\le f(s) \\le 1, \\quad 0 \\le s \\le 1\n$$\nand so $|f(s)| \\le \\frac{3}{2}$, with equality when $s = 1/2$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33158, "subject": "Mathematics (Multi-modal)", "question": "The points $N$, $E$, $F$ and $M$ are on the sides $AB$, $BC$, $CD$ and $DA$, respectively, of a unit square $ABCD$ such that $|AN| = |BE| = |CF| = |DM| = x$ and $0 < x < 1$. The lines $AE$, $BF$, $CM$ and $DN$ form a quadrilateral $GHKL$. Express the area of $GHKL$ in terms of $x$.", "options": [], "answer": "(1 - x)^2 / (1 + x^2)", "solution": "The right triangles $\\triangle ABE$ and $\\triangle BCF$ have legs of the same length, hence they are congruent. This implies that $\\angle GBE + \\angle BEG = 90^\\circ$ and so\n\n$\\angle EGB = 90^\\circ$. This shows that $\\triangle BGE$ is similar to $\\triangle BCF$. Using symmetry we see now that $GHKL$ is a square. In particular, $GL$ and $HK$ are parallel, hence the triangles $\\triangle BGE$ and $\\triangle BHC$ are similar.\n\n![](attached_image_1.png)\n\nFrom these two similar triangles we obtain $\\frac{|HC|}{|BC|} = \\frac{|GE|}{|BE|} = \\frac{|CF|}{|BF|}$. Using that $|BC| = 1$, $|BE| = |CF| = x$, $|BF| = \\sqrt{1+x^2}$ (Pythagoras) and symmetry, we obtain now\n$$\n|BG| = |HC| = \\frac{x}{\\sqrt{1+x^2}} \\quad \\text{and} \\quad |GE| = \\frac{x^2}{\\sqrt{1+x^2}}.\n$$\nThe area of the quadrilateral $FCEG$, which is equal to the difference of the areas of the triangles $\\triangle BCF$ and $\\triangle BGE$, is therefore equal to\n$$\n\\frac{1}{2} \\left( x - \\frac{x^3}{1+x^2} \\right) = \\frac{x}{2(1+x^2)}.\n$$\nBy symmetry again, $MDFH$, $NAMK$ and $EBNL$ have the same area. As these four quadrilaterals cover without overlap the space between $GHKL$ and $ABCD$, the area of the quadrilateral $GHKL$ is equal to\n$$\n1 - \\frac{2x}{1+x^2} = \\frac{(1-x)^2}{1+x^2}.\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33159, "subject": "Mathematics (Multi-modal)", "question": "Suppose $0 \\le x < 1$ and let $a_n = \\frac{1-x^n}{n(1-x)}$ for all integers $n \\ge 1$. Prove that\n$$\n|a_{n+1} - a_n| \\le \\frac{1}{n+1}, \\quad n = 1, 2, 3, \\dots\n$$", "options": [], "answer": "Detailed solution", "solution": "First of all, note that $a_n = \\frac{1}{n}(1 + x + \\cdots + x^{n-1})$, hence\n$$\n\\begin{align*}\na_{n+1} - a_n &= \\frac{n(1 + x + \\cdots + x^n) - (n+1)(1 + x + \\cdots + x^{n-1})}{n(n+1)} \\\\\n&= \\frac{1}{n(n+1)} \\left( n x^n - \\sum_{k=0}^{n-1} x^k \\right) \\\\\n&= \\frac{1}{n(n+1)} \\sum_{k=0}^{n-1} (x^n - x^k).\n\\end{align*}\n$$\n\nSince $0 \\le x < 1$, for $i \\ge 0$ we have $0 \\le x^i \\le 1$, hence $0 \\le |x^n - x^k| \\le 1$ for $k = 0, 1, \\dots, n-1$, and so\n$$\n\\begin{aligned}\n|a_{n+1} - a_n| &= \\frac{1}{n(n+1)} \\left| \\sum_{k=0}^{n-1} (x^n - x^k) \\right| \\\\\n&\\le \\frac{1}{n(n+1)} \\sum_{k=0}^{n-1} |x^n - x^k| \\le \\frac{n}{n(n+1)} = \\frac{1}{n+1}.\n\\end{aligned}", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33160, "subject": "Mathematics (Multi-modal)", "question": "The quadrilateral $ABCD$ is inscribed in a circle. It is known that the lines $DA$ and $BC$ intersect at an angle of $60^\\circ$ and that $|DA| = |BC| = 2$, $|AB| = 4$. Find the radius of the circle.", "options": [], "answer": "R = 2 or R = 2*sqrt(7/3)", "solution": "Let the lines $DA$ and $CB$ intersect at $E$. We have to distinguish two possibilities: either $|CD| < |AB|$ or $|CD| > |AB|$, see diagram below.\n\n![](attached_image_1.png)\n\nSince $AD = BC$, by symmetry we get $DE = CE$ and $AB \\parallel DC$. Since $\\angle AEB = 60^\\circ$ this implies that $\\triangle ABE$ and $\\triangle DCE$ are equilateral. Thus $\\angle ABC = 60^\\circ$ if $|CD| < |AB|$ and $\\angle ABC = 120^\\circ$ if $|CD| > |AB|$. The Cosine Rule for the triangle $ABC$ now gives\n\n$$\n|CA|^2 = |AB|^2 + |BC|^2 - 2 \\cdot |AB| \\cdot |BC| \\cdot \\cos \\angle ABC.\n$$\n\nUsing $\\cos 60^\\circ = -\\cos 120^\\circ = 1/2$, we get $|CA|^2 = 16 + 4 \\pm 8$, hence $|CA| = 2\\sqrt{3}$ if $|CD| < |AB|$ and $|CA| = 2\\sqrt{7}$ if $|CD| > |AB|$.\n\nThe radius $R$ of the circle is the circumradius of $\\triangle ABC$ which is given by the Sine Rule for this triangle\n\n$$\nR = \\frac{|CA|}{2 \\sin \\angle ABC} = \\frac{|CA|}{\\sqrt{3}}.\n$$\n\nTherefore, $R = 2$ if $|CD| < |AB|$ and $R = 2\\sqrt{\\frac{7}{3}}$ if $|CD| > |AB|$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33161, "subject": "Mathematics (Multi-modal)", "question": "Let $n > 1$ be an integer and $\\Omega := \\{1, 2, \\dots, 2n-1, 2n\\}$ the set of all positive integers that are not larger than $2n$.\nA non-empty subset $S$ of $\\Omega$ is called *sum-free* if, for all elements $x, y$ belonging to $S$, $x+y$ does not belong to $S$. We allow $x=y$ in this condition.\nProve that $\\Omega$ has more than $2^n$ distinct sum-free subsets.", "options": [], "answer": "Detailed solution", "solution": "Any non-empty subset of $\\Psi = \\{n+1, n+2, \\dots, 2n\\}$ is obviously a sum-free subset of $\\Omega$, and there are $2^n - 1$ of these. Also, every non-empty subset of the set $\\Phi$ of odd numbers in $\\Omega$ is also a sum-free subset and there are $2^n - 1$ of these. The number of common subsets in the union of these two collections is $2^{\\lceil n/2 \\rceil} - 1$. So $\\Omega$ has at least $2(2^n - 1) - (2^{\\lceil n/2 \\rceil} - 1) > 2^n$ sum-free subsets. Alternatively, for any $n \\ge 2$, $\\{1, 4\\}$ and $\\{2, 3\\}$ are sum-free subsets of $\\Omega$ and they are neither subsets of $\\Psi$ nor of $\\Phi$. Together with the $2^n - 1$ non-empty subsets of $\\Psi$ or of $\\Phi$ they provide the required $2^n + 1$ sum-free subsets.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33162, "subject": "Mathematics (Multi-modal)", "question": "The point $P$ is on the side $BC$ of triangle $ABC$. The incircles of $\\triangle ABC$, $\\triangle ABP$ and $\\triangle ACP$ are denoted by $K$, $K_1$ and $K_2$, respectively.\nProve that the angle at which the radical axis of $K$ and $K_1$ meets the radical axis of $K$ and $K_2$ does not depend on the position of $P$. Find the measure of this angle if $\\angle BAC = 100^\\circ$.", "options": [], "answer": "40° (acute angle; the supplementary angle is 140°)", "solution": "Let $I$ be the incentre of $K$. The incentres of $K$ and $K_1$ both lie on the bisector of $\\angle ABC$. The incentres of $K$ and $K_2$ both lie on the bisector of $\\angle ACB$. Note that $\\angle BIC = 180^\\circ - \\frac{1}{2}(\\angle ABC + \\angle ACB) = 90^\\circ + \\frac{1}{2}\\angle BAC$.\n\n![](attached_image_1.png)\n\nBecause the radical axis of two circles is perpendicular to the line connecting the centres of these circles, the radical axis of $K$ and $K_1$ is perpendicular to the bisector of $\\angle ABC$ and the radical axis of $K$ and $K_2$ is perpendicular to the bisector of $\\angle ACB$. Hence, one of the angles between these two radical axes is equal to $\\angle BIC$; and this angle does not depend on the position of $P$. If $\\angle BAC = 100^\\circ$, we obtain $\\angle BIC = 90^\\circ + 50^\\circ = 140^\\circ$. Hence, the two angles between the two radical axes are equal to $140^\\circ$ and $40^\\circ$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33163, "subject": "Mathematics (Multi-modal)", "question": "Find all positive integers $n$ for which both $837 + n$ and $837 - n$ are cubes of positive integers.", "options": [], "answer": "494", "solution": "We need to find all positive integers $n$ for which there exist positive integers $x, y$ so that $837 + n = x^3$ and $837 - n = y^3$. Adding these equations gives\n$$\n1674 = x^3 + y^3 = (x + y)(x^2 - x y + y^2).\n$$\nLet $u = x + y$ and $v = x^2 - x y + y^2 = (x + y)^2 - 3 x y = u^2 - 3 x y$, then $3 x y = u^2 - v$ and we see that $u$ is divisible by $3$ if and only if $v$ is divisible by $3$.\n\nAs $1674 = 2 \\cdot 3^3 \\cdot 31 = u \\cdot v$, there exist positive integers $u_1$ and $v_1$ such that $u = 3 u_1$ and $v = 3 v_1$. The above equations translate into\n$$\n186 = u_1 v_1, \\quad x + y = 3 u_1, \\quad x y = 3 u_1^2 - v_1.\n$$\nAs $x, y > 0$ we get $3 u_1^2 > v_1$, hence $3 u_1^3 > u_1 v_1 = 186$ and so $u_1 \\ge 4$. On the other hand, the AM-GM inequality gives $(x + y)^2 \\ge 4 x y$, which translates into $9 u_1^2 \\ge 12 u_1^2 - 4 v_1$, i.e. $4 v_1 \\ge 3 u_1^2 > 4 u_1$, the last inequality because $3 u_1 > 4$.\n\nThe factors of $186$ are $1, 2, 3, 6, 31, 62, 93, 186$. Using $v_1 > u_1 \\ge 4$ we see that we must have $u_1 = 6$ and $v_1 = 31$. This leads to $x + y = 18$ and $x y = 77$ from which we obtain the quadratic equation $x^2 - 18 x + 77 = 0$. The two solutions are $11$ and $7$. As $n > 0$ we have $x > y$ and so $(x, y) = (11, 7)$. Therefore, $n = 837 - 7^3 = 11^3 - 837 = 494$.\nWe need to find all positive integers $n$ for which there exist positive integers $x, y$ so that $837 + n = x^3$ and $837 - n = y^3$. From $n > 0$ and $y > 0$ we obtain $1 \\le n \\le 836$. This implies that $838 \\le x^3 = 837 + n \\le 1673$. Because $9^3 = 729 < 838$ and $1673 < 1728 = 12^3$ we can only have $x = 10$ or $x = 11$. If $x = 10$, we obtain $n = x^3 - 837 = 163$ which implies $y^3 = 837 - n = 674$, but this is not the cube of an integer. With $x = 11$ we find $n = x^3 - 837 = 1331 - 837 = 494$ and $y^3 = 837 - n = 837 - 494 = 343 = 7^3$, hence $y = 7$. Therefore, $(x, y) = (11, 7)$ is the only solution and $n = 494$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33164, "subject": "Mathematics (Multi-modal)", "question": "Find all real numbers $x$ for which\n$$\n\\frac{x\\sqrt{14}}{\\sqrt{x+1}+\\sqrt{1-x}} > \\sqrt{2-x}.\n$$", "options": [], "answer": "3/5 < x <= 1", "solution": "For the square roots to exist, we require $-1 \\le x \\le 1$. The inequality is false when $x \\le 0$, so we assume $0 < x \\le 1$. By multiplying above and below by $\\sqrt{x+1} - \\sqrt{1-x}$, the inequality becomes\n$$\n\\sqrt{x+1} - \\sqrt{1-x} > \\sqrt{\\frac{4-2x}{7}}.\n$$\nThe left side is positive, since $x > 0$, so squaring both sides gives\n$$\n2 - 2\\sqrt{1 - x^2} > \\frac{4 - 2x}{7}.\n$$\nwhich gives $\\frac{x+5}{7} > \\sqrt{1-x^2}$. Squaring again gives $x^2+10x+25 > 49-49x^2$, so $25x^2+5x-12 > 0$. Factoring gives $(5x-3)(5x+4) > 0$ and since $x > 0$ this gives $x > \\frac{3}{5}$. So the inequality is true if and only if $\\frac{3}{5} < x \\le 1$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33165, "subject": "Mathematics (Multi-modal)", "question": "Find all solutions in positive integers of the equation\n$$\nx^{4} + y^{4} + z^{4} + 1008 = 2x^{2}y^{2} + 2y^{2}z^{2} + 2z^{2}x^{2}.\n$$", "options": [], "answer": "[[8, 8, 2], [8, 2, 8], [2, 8, 8], [6, 4, 4], [4, 6, 4], [4, 4, 6]]", "solution": "Rewrite the equation as a quadratic in $x^2$\n$$\n\\begin{aligned}\n-1008 &= x^4 + y^4 + z^4 - 2x^2y^2 - 2y^2z^2 - 2z^2x^2 \\\\\n&= x^4 - 2(y^2 + z^2)x^2 + (y^2 - z^2)^2.\n\\end{aligned}\n$$\nThe discriminant is equal to $(y^2 + z^2)^2 - (y^2 - z^2)^2 = 4y^2z^2 = (2yz)^2$, hence the roots $x^2$ of the right hand side are $y^2 + z^2 \\pm 2yz = (y \\pm z)^2$. Therefore, the right hand side above factorises as\n$$\n\\begin{aligned}\n& (x^2 - (y+z)^2)(x^2 - (y-z)^2) \\\\\n&= (x+(y+z))(x-(y+z))(x+(y-z))(x-(y-z)) \\\\\n&= (x+y+z)(x-y-z)(x+y-z)(x-y+z).\n\\end{aligned}\n$$\nThis implies $1008 = (x + y + z)(-x + y + z)(x + y - z)(x - y + z) = t \\cdot u \\cdot v \\cdot w$, where we abbreviate $t = x + y + z$, $u = -x + y + z$, $v = x - y + z$ and $w = x + y - z$. We now have $t = u + v + w$ and $t \\cdot u \\cdot v \\cdot w = 2^4 \\cdot 3^2 \\cdot 7$ and obtain $v + w = 2x$, $w + u = 2y$ and $u + v = 2z$, which implies that $u, v, w, t$ all have the same parity. As $1008$ is even, these four numbers must be even, i.e. there are integers $t', u', v', w'$ so that $t = 2t', u = 2u', v = 2v', w = 2w'$. From above these must satisfy\n\n$$\nt' = u' + v' + w' \\quad \\text{and} \\quad t' \\cdot u' \\cdot v' \\cdot w' = 63 = 3^2 \\cdot 7.\n$$\nTherefore, $t'$ must be one of $1, 3, 7, 9, 21, 63$. But $t'$ cannot be $1$ or $3$, because in this case one of $u', v', w'$ would be divisible by $7$ which gives a sum larger than $t'$. On the other hand, $t'$ cannot be equal to $63$ or $21$ as in this case the sum of the remaining three factors would be at most $5$. So, we have to check only two cases: $t' = 7$ and $t' = 9$.\nIf $t' = 7$ we have $u' \\cdot v' \\cdot w' = 9$ and these three factors are either $1, 1, 9$ or $1, 3, 3$. Forming their sum we see that $(t', u', v', w') = (7, 1, 3, 3)$ or any permutation of the last three entries.\nIf $t' = 9$ we have $u' \\cdot v' \\cdot w' = 7$ and we obtain $(t', u', v', w') = (9, 1, 1, 7)$ or any permutation of the last three entries.\nFrom above we obtain $x = v' + w'$, $y = w' + u'$ and $z = u' + v'$. This leads to the following six solution triples $(x, y, z)$:\n(8, 8, 2)\n(8, 2, 8)\n(2, 8, 8)\n(6, 4, 4)\n(4, 6, 4)\n(4, 4, 6)", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 33166, "subject": "Mathematics (Multi-modal)", "question": "Suppose $0 \\le x, y, z$, and $x+y+z \\le 1$. Prove that\n$$\n6xyz \\le x(1-x) + y(1-y) + z(1-z),\n$$\nand describe the cases of equality.", "options": [], "answer": "Equality holds exactly at (0, 0, 0), (1, 0, 0), (0, 1, 0), and (0, 0, 1).", "solution": "By hypothesis, $x$, $y$, $z \\in [0, 1]$, and so $3xyz \\le xy + yz + zx$. Also, $(x+y+z)^2 \\le x+y+z$, i.e., $x^2+y^2+z^2+2(xy+yz+zx) \\le x+y+z$, equivalently,\n$$\n2(xy + yz + zx) \\le x(1-x) + y(1-y) + z(1-z),\n$$\nwhence\n$$\n6xyz \\le 2(xy + yz + zx) \\le x(1-x) + y(1-y) + z(1-z),\n$$\nand there is equality iff $xyz = xy = xz = yz$ and $x+y+z = 0$ or $1$. This means that we have equality iff $(x, y, z)$ is one of $(0, 0, 0)$, $(0, 0, 1)$, $(0, 1, 0)$ and $(1, 0, 0)$.\nUsing the AM-GM inequality and the assumption $x+y+z \\le 1$, we obtain\n$$\n1 - x \\ge y + z \\ge 2\\sqrt{yz}\n$$\n$$\n1 - y \\ge z + x \\ge 2\\sqrt{zx}\n$$\n$$\n1 - z \\ge x + y \\ge 2\\sqrt{xy}.\n$$\nMultiplying these inequalities gives $(1-x)(1-y)(1-z) \\ge 8xyz$ and so\n$$\nxyz(1-x)(1-y)(1-z) \\ge 8(xyz)^2 \\ge (2xyz)^3\n$$\nwhere we have used $1 \\ge xyz$. Using AM-GM again, we obtain\n$$\nx(1-x) + y(1-y) + z(1-z) \\ge 3\\sqrt[3]{x(1-x)y(1-y)z(1-z)} \\ge 6xyz.\n$$\nFor the case of equality it is necessary that $x(1-x) = y(1-y) = z(1-z)$ and $xyz = 0$ or $1$. If $xyz = 1$, the first three inequalities above have no term equal to zero, hence all of them must be equalities, hence $x = y = z$ and $x+y+z = 1$. This implies $x = y = z = 1/3$ contradicting $xyz = 1$. Hence equality implies $xyz = 0$. Therefore, $x$, $y$, $z$ can only have the values $0$ or $1$. As $x+y+z \\le 1$, at most one of them is $1$ and we have equality iff $(x, y, z)$ is one of $(0, 0, 0)$, $(0, 0, 1)$, $(0, 1, 0)$ and $(1, 0, 0)$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33167, "subject": "Mathematics (Multi-modal)", "question": "Suppose $x$, $y$ are non-negative real numbers such that $x + y \\le 1$. Prove that\n$$\n8xy \\le 5x(1-x) + 5y(1-y),\n$$\nand determine the cases of equality.", "options": [], "answer": "Equality holds exactly at (x, y) = (0, 0), (1, 0), or (0, 1).", "solution": "Let $z = x + y$. Then $0 \\le z \\le 1$, whence $z(1-z) \\ge 0$. Now\n$$\n\\begin{aligned}\n5x(1-x) + 5y(1-y) - 8xy &= 5(x+y) - 5(x^2+y^2) - 8xy \\\\\n&= 5z - 5(x^2+2xy+y^2) + 2xy \\\\\n&= 5z - 5z^2 + 2xy \\\\\n&= 5z(1-z) + 2xy \\\\\n&\\ge 0,\n\\end{aligned}\n$$\n\n\nSolution 2:\n\nFrom $x+y \\le 1$ we obtain $y \\le 1-x$ and $x \\le 1-y$. As $x \\ge 0$ and $y \\ge 0$, these imply $xy \\le x(1-x)$ and $xy \\le y(1-y)$. Multiplying both by 5 and adding them we obtain\n$$\n10xy \\le 5x(1-x) + 5y(1-y).\n$$\nAs $xy \\ge 0$, we have $8xy \\le 10xy$ which implies the result.\nFor equality we need $8xy = 10xy$ and $10xy = 5x(1-x) + 5y(1-y)$. Hence $xy = 0$, and $xy = x(1-x)$ as well as $xy = y(1-y)$. Therefore, we either have $x = 0, y = 1$ or $y = 0, x = 1$ or $x = y = 0$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33168, "subject": "Mathematics (Multi-modal)", "question": "Suppose a doubly infinite sequence of real numbers\n$$\n\\dots, a_{-2}, a_{-1}, a_0, a_1, a_2, \\dots\n$$\nhas the following sub-Fibonacci property:\n$$\na_{n+2} = \\frac{a_n + a_{n+1}}{2}, \\quad \\text{for all integers } n.\n$$\nShow that if this sequence is bounded (i.e. if there exists a number $R$ such that $|a_n| \\le R$ for all $n$), then $a_n$ has the same value for all $n$.", "options": [], "answer": "Detailed solution", "solution": "For any $n \\in \\mathbb{Z}$ let $d_n = a_{n+1} - a_n$. Then, for $n \\in \\mathbb{Z}$,\n$$\n2d_{n+1} = 2a_{n+2} - 2a_{n+1} = (a_{n+1} + a_n) - 2a_{n+1} = a_n - a_{n+1} = -d_n.\n$$\nThis implies $d_n = (-2)^{-n}d_0$ for all $n \\in \\mathbb{Z}$.\nIf $d_0 = 0$, then $d_n = 0$ for all $n \\in \\mathbb{Z}$, hence $a_n = a_0$ for all $n$. If $d_0 \\neq 0$ and $R > 0$ is any given number, there exists an integer $n > 0$ so that $d_{-n} = (-2)^n d_0 > 2R$. If $|a_{-n}| < R$ and $|a_{-n+1}| < R$, then\n$$\n|d_{-n}| = |a_{-n+1} - a_{-n}| \\le |a_{-n+1}| + |a_{-n}| < 2R\n$$\n\nin contradiction to the choice of $n$. This shows that the sequence cannot be bounded if it is not constant.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33169, "subject": "Mathematics (Multi-modal)", "question": "In triangle $\\triangle ABC$, the angle $\\angle BAC$ is less than $90^\\circ$. The perpendiculars from $C$ on $AB$ and from $B$ on $AC$ intersect the circumcircle of $\\triangle ABC$ again at $D$ and $E$ respectively. If $|DE| = |BC|$, find the measure of the angle $\\angle BAC$.", "options": [], "answer": "60°", "solution": "Let $CD$ and $BE$ intersect $AB$ and $AC$ at $F$ and $G$ respectively. Let $P$ be the intersection point of $CD$ and $BE$.\n\nBecause $\\angle DEB = \\angle DCB$ and $|DE| = |BC|$ it follows that $\\triangle DPE$ is congruent to $\\triangle BPC$. In particular, $|DP| = |BP|$. This implies $\\angle BDP = \\angle PBD$.\n\nThe quadrilateral $FPGA$ is cyclic as it has right angles at $F$ and $G$. Hence, $\\angle BAC = \\angle DPB$. Finally, $\\angle BDP = \\angle BDC = \\angle BAC$ (both are subtended by $BC$), hence $\\angle BDP$ is equilateral and so its internal angles are equal to $60^\\circ$. Therefore, $\\angle BAC = \\angle DPB = 60^\\circ$.\n\n![](attached_image_1.png)\nLet $CD$ and $BE$ intersect $AB$ and $AC$ at $F$ and $G$ respectively. Because of the right angles at $F$ and $G$ we have $\\angle DAB = \\angle DCB = 90^\\circ - \\angle ABC$ and $\\angle CAE = \\angle CBE = 90^\\circ - \\angle ACB$.\n\nTherefore, the inscribed angle subtended by $DE$ is equal to\n$$\n\\begin{aligned}\n\\angle DAE &= \\angle DAB + \\angle BAC + \\angle CAE \\\\\n&= 180^\\circ - (\\angle ABC + \\angle ACB) + \\angle BAC = 2\\angle BAC.\n\\end{aligned}\n$$\n\nBecause a chord that subtends (on either side) an inscribed angle $\\alpha$ in a circle of radius $R$ has length $2R \\sin \\alpha$, we obtain now\n$$\n\\begin{aligned}\n|DE| &= 2R \\sin (2\\angle BAC) \\\\\n&= 4R \\sin (\\angle BAC) \\cos (\\angle BAC) \\quad \\text{and} \\\\\n|BC| &= 2R \\sin (\\angle BAC).\n\\end{aligned}\n$$\n\nFrom $|DE| = |BC|$ we get $\\cos (\\angle BAC) = 1/2$, thus $\\angle BAC = 60^\\circ$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33170, "subject": "Mathematics (Multi-modal)", "question": "Let $p(x)$ and $q(x)$ be non-constant polynomial functions with integer coefficients. It is known that the polynomial\n$$\np(x)q(x) - 2015\n$$\nhas at least 33 different integer roots. Prove that neither $p(x)$ nor $q(x)$ can be a polynomial of degree less than three.", "options": [], "answer": "Detailed solution", "solution": "Let $a_1, a_2, \\dots, a_{33}$ be different integer roots of $f(x) = p(x)q(x) - 2015$. Hence, $p(a_i)q(a_i) = 2015$ for all $i = 1, 2, 3, \\dots, 33$. It follows that all integers $p(a_i)$, $i = 1, 2, 3, \\dots, 33$ are divisors of $2015$. Because $2015 = 5 \\cdot 13 \\cdot 31$, this number has $16$ distinct integer divisors, $8$ positive and $8$ negative. Therefore, by the Pigeon Hole principle, at least three of the numbers $p(a_i)$ are equal. Suppose without loss of generality that $p(a_1) = p(a_2) = p(a_3) = d$. Then $p(x) - d$ has at least three distinct roots. Hence its degree and that of the polynomial $p(x)$ is at least $3$. The same argument works for the polynomial $q(x)$.", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 33171, "subject": "Mathematics (Multi-modal)", "question": "Let $f(t) = 2 + \\cos t + \\cos \\sqrt{2} t$, for all real numbers $t$. Prove that $f$ is strictly positive on $(-\\infty, \\infty)$, and is not periodic.", "options": [], "answer": "Detailed solution", "solution": "At any rate, $f$ is non-negative since the cosine takes no value smaller than $-1$, which means that $f$ takes no value smaller than $2 - 1 - 1 = 0$.\n\nSuppose $f(t) = 0$ for some real number $t$, so that\n$$\n0 = (1 + \\cos t) + (1 + \\cos \\sqrt{2} t).\n$$\nBut the expression on the right is a sum of two non-negative numbers, hence each of them is zero. So, $1 + \\cos t = 1 + \\cos \\sqrt{2} t = 0$. But this means that there are odd integers $m, n$ such that $t = m\\pi$ and $\\sqrt{2} t = n\\pi$. Clearly, $t \\neq 0$, which means that $\\sqrt{2}$ is rational, an absurdity. Thus, $f$ is positive.\n\nTo prove that $f$ is not periodic, assume the contrary. Then, for some $p > 0$, it is true that $f(t + p) = f(t)$ for all $t$. In particular, $f(p) = f(0) = 4$, equivalently, $2 - \\cos p - \\cos \\sqrt{2} p = (1 - \\cos p) + (1 - \\cos \\sqrt{2} p) = 0$ which means that $\\cos p = 1 = \\cos \\sqrt{2} p$. Thus there are even integers $m, n$ such that $p = m\\pi$ and $\\sqrt{2} p = n\\pi$. But $p \\neq 0$. Hence $mn \\neq 0$ and yet $m\\sqrt{2} = n$, an absurdity.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33172, "subject": "Mathematics (Multi-modal)", "question": "Find all pairs $(m, n)$ of integers that satisfy $m^2 + n^2 = 65$. Use this to prove the inequalities\n$$\n\\frac{4 + 4\\sqrt{10} + 6\\sqrt{2}}{\\sqrt{65}} < \\pi < \\frac{4}{11}(3 + \\sqrt{2} + 2\\sqrt{5}).\n$$", "options": [], "answer": "All integer solutions: (±8, ±1), (±1, ±8), (±4, ±7), (±7, ±4). The bounds: (4 + 4√10 + 6√2)/√65 < π < (4/11)(3 + √2 + 2√5).", "solution": "The 16 solutions of $x^2 + y^2 = 65$ in integers are\n$$\n(\\pm 8, \\pm 1), (\\pm 1, \\pm 8), (\\pm 4, \\pm 7), (\\pm 7, \\pm 4).\n$$\n\nThese form the vertices of a hexadecagon. Calculating the perimeter of this hexadecagon gives rise to the lower bound for $\\pi$ as follows. Let $P_1 = (8, -1)$, $P_2 = (8, 1)$, $P_3 = (7, 4)$, $P_4 = (4, 7)$, $P_5 = (1, 8)$, $P_6 = (-1, 8)$ etc. and denote the lengths of the line segments by $a_i = |P_i P_{i+1}|$, $i \\ge 1$. The perimeter of the hexadecagon is then equal to $4a_1 + 8a_2 + 4a_3$ (see diagram).\n\n![](attached_image_1.png)\nFrom the coordinates of the $P_i$ we easily obtain $a_1 = 2$, $a_2 = \\sqrt{10}$ and $a_3 = 3\\sqrt{2}$. This shows that the perimeter of the hexadecagon is equal to\n$$\n8 + 8\\sqrt{10} + 12\\sqrt{2}.\n$$\nBecause the circumcircle of the hexadecagon has radius $\\sqrt{65}$, we obtain the inequality $8 + 8\\sqrt{10} + 12\\sqrt{2} < 2\\pi\\sqrt{65}$ hence\n$$\n\\frac{4 + 4\\sqrt{10} + 6\\sqrt{2}}{\\sqrt{65}} < \\pi.\n$$\nThe upper bound is obtained by observing that the circle with equation $x^2+y^2 = 121/2$ lies inside the hexadecagon. Indeed, because $\\frac{11}{\\sqrt{2}} < \\frac{5}{2}\\sqrt{10} < 8$, this circle is tangent to $P_3P_4$ but does not intersect the line segments $P_1P_2$ and $P_2P_3$. Hence, its circumference is bounded above by the perimeter of the hexadecagon. This gives the inequality $11\\pi\\sqrt{2} < 8 + 8\\sqrt{10} + 12\\sqrt{2}$, hence\n$$\n\\pi < \\frac{4}{11} (3 + \\sqrt{2} + 2\\sqrt{5}).\n$$", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 33173, "subject": "Mathematics (Multi-modal)", "question": "Find, with proof, the greatest positive integer which cannot be expressed in the form $17x + 127y$, with $x$ and $y$ non-negative integers.", "options": [], "answer": "2015", "solution": "The answer is $2015$. To prove this, first, observe (using Euclid's algorithm, for example), that\n$$\n15 \\cdot 17 - 2 \\cdot 127 = 1 \\qquad (1)\n$$\nNext, note that\n$$\n\\begin{align*}\n2016 &= (17 - 1)(127 - 1) = 16 \\cdot 127 - 17 + 1 \\\\\n&= 16 \\cdot 127 - 17 + 15 \\cdot 17 - 2 \\cdot 127 \\tag{2} \\\\\n&= 14 \\cdot 127 + 14 \\cdot 17\n\\end{align*}\n$$\nWe now claim: If $z > 2016$ is an integer, then $z = 127a + 17b$, for some non-negative integers $a, b$.\nTo prove the claim, we note that by (1), $z = 127c + 17d$, for some integers $c, d$, and then $z = 127(c + 17y) + 17(d - 127y)$, for any integer $y$. So we can write\n$$\nz = 127a + 17b, \\text{ with integers } a, b \\text{ with } a \\ge 0.\n$$\nChoose such a representation with $b$ greatest possible. If $b \\ge 0$, the Claim is established. Suppose, for the sake of contradiction, that $b < 0$. Then $z = 127(a - 17) + 17(b + 127)$, and, thus, by our choice of $b$, $a - 17 < 0$, and thus $z = 127a + 17b \\le 127 \\cdot 16 - 17 < 2016$, contradicting our hypotheses. So the Claim is proved.\nCombining this with (2), we see that every integer $w \\ge 2016$ is expressible as $w = 17x + 127y$, for some non-negative integers $x, y$.\nFinally, suppose that $2015 = 16 \\cdot 127 - 17 = 17u + 127v$, for some non-negative integers $u, v$. Then, using subtraction, $127(16 - v) = 17(u + 1)$. This shows that the positive number $u + 1$ is divisible by $127$ and so $u \\ge 126$, implying that $2015 \\ge 17 \\cdot 126$, which is false. Hence $2015$ is the integer sought.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33174, "subject": "Mathematics (Multi-modal)", "question": "Let $n \\ge 3$ be an odd positive integer. We are given an $n \\times n$ board which is divided into white unit squares by lines drawn parallel to the sides of the board. Let $N$ denote the number of ways of placing 2 identical red checkers and 2 identical blue checkers on the board such that\n(a) in any such placement, no two checkers occupy the same square; and\n(b) none of the placements can be obtained from any other by a rotation of the board.\nProve that\n$$\nN = \\left(\\frac{n^2-1}{2}\\right)^4 - \\left(\\frac{n^2-1}{2}\\right)^3\n$$", "options": [], "answer": "((n^2 - 1)/2)^4 - ((n^2 - 1)/2)^3", "solution": "Let $N_b = n^2$ and $k = (N_b - 1)/2$. There are $\\binom{N_b}{2}$ ways of placing 2 identical red checkers, and for any such placement there are $\\binom{N_b-2}{2}$ ways of next placing the 2 identical blue checkers. Therefore the total number of ways of placing 2 identical red checkers and 2 identical blue checkers on the board is\n$$\nN_t = \\binom{N_b}{2} \\binom{N_b-2}{2} = \\frac{N_b(N_b-1)(N_b-2)(N_b-3)}{4} \\\\ = N_b \\cdot (N_b-2) \\cdot k \\cdot (k-1).\n$$\nSome of these checker placements have 180^\\circ symmetry. The number of such placements, denoted $N_s$, is equal to the number of ways of placing a red checker and a blue checker on the \"semi-board\" formed by taking any subset of $k = (N_b - 1)/2$ squares such that the centre square is omitted, and no square in the subset is the image of another square under central symmetry in the central square (to complete the symmetrical placement, the missing red checker is placed on the image square of the placed red checker, and similarly for the missing blue checker). It follows that the number of 180^\\circ-symmetrical checker placements is\n$$\nN_s = k(k-1).\n$$\nThere are $N_t - N_s$ placements which do not possess 180^\\circ symmetry; such placements are counted four times, while the $N_s$ 180^\\circ-symmetrical placements are counted twice. Thus\n$$\n\\begin{aligned}\nN &= \\frac{N_t - N_s}{4} + \\frac{N_s}{2} = \\frac{N_t + N_s}{4} \\\\\n&= k(k-1)\\frac{N_b(N_b-2)+1}{4} = k(k-1) \\cdot k^2 = k^4 - k^3,\n\\end{aligned}\n$$\nand the result is proved.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33175, "subject": "Mathematics (Multi-modal)", "question": "Suppose $a_1 = 3$, $a_{n+1} = \\frac{1}{2}(a_n^2 + 1)$, $n = 1, 2, \\dots$. Prove that\n$$\n\\sum_{k=1}^{n} \\frac{1}{1+a_k} < \\frac{1}{2}\n$$", "options": [], "answer": "Detailed solution", "solution": "Note that $a_n > 1$ for all $n$, and $2(a_{n+1} - 1) = a_n^2 - 1 = (a_n - 1)(a_n + 1)$, hence\n$$\n\\frac{1}{a_{n+1}-1} = \\frac{2}{a_n^2-1} > 0 \\quad \\text{for } n=1,2,\\dots\n$$\nLet $s_n = \\sum_{k=1}^{n} \\frac{1}{1+a_k}$ for $n \\ge 1$. We will prove by induction that\n$$\ns_n = \\frac{1}{2} - \\frac{2}{a_n^2 - 1}, \\quad n = 1, 2, \\dots\n$$\nBecause $a_1 = 3$ we easily get the start of induction\n$$\ns_1 = \\frac{1}{1+a_1} = \\frac{1}{4} = \\frac{1}{2} - \\frac{2}{8} = \\frac{1}{2} - \\frac{2}{a_1^2 - 1}\n$$\nAlso, assuming the inductive hypothesis,\n$$\n\\begin{aligned}\ns_{n+1} &= s_n + \\frac{1}{1+a_{n+1}} = \\frac{1}{2} - \\frac{2}{a_n^2-1} + \\frac{1}{1+a_{n+1}} \\\\\n&= \\frac{1}{2} - \\frac{1}{a_{n+1}-1} + \\frac{1}{1+a_{n+1}} = \\frac{1}{2} - \\frac{2}{a_{n+1}^2-1} < \\frac{1}{2}.\n\\end{aligned}\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33176, "subject": "Mathematics (Multi-modal)", "question": "Two circles $C_1$ and $C_2$, with centres at $D$ and $E$ respectively, touch at $B$. The circle having $DE$ as diameter intersects the circle $C_1$ at $H$ and the circle $C_2$ at $K$. The points $H$ and $K$ both lie on the same side of the line $DE$. $HK$ extended in both directions meets the circle $C_1$ at $L$ and meets the circle $C_2$ at $M$. Prove that\n(a) $|LH| = |KM|$;\n(b) the line through $B$ perpendicular to $DE$ bisects $HK$.", "options": [], "answer": "Detailed solution", "solution": "Extend the line $DE$ in both directions to meet the circles again at $A$ and $C$. Let $F$ be the centre of the circle with diameter $DE$. From $D$, $F$ and $E$ draw perpendiculars $DR$, $FP$ and $ES$ on $LM$. Then $DR$, $PF$ and $SE$ are all parallel. Also, since $|DF| = |FE|$ we have $|RP| = |PS|$. Also $|RL| = |RH|$, $|PH| = |PK|$ and $|SK| = |SM|$. Therefore, $|RP| - |PH| = |PS| - |PK|$ and so $|RH| = |KS|$. It follows that $2|RH| = 2|KS|$, i.e., $|LH| = |KM|$. This proves part (a).\n\n![](attached_image_1.png)\n\nSince $|LH| = |KM|$ and $|PH| = |PK|$ we have $|PL| = |PM|$. This implies $|PH| \\cdot |PL| = |PK| \\cdot |PM|$, and therefore $P$ lies on the radical axis of the two circles $C_1$ and $C_2$. Since $B$ also lies on the radical axis, the radical axis is $BP$. Therefore $BP$ is perpendicular to $DE$. Finally, since $P$ is the midpoint of $HK$, this is the required result.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33177, "subject": "Mathematics (Multi-modal)", "question": "Determine all triples $(p, m, n)$ where $p$ is prime and $m$ and $n$ are non-negative integers satisfying the equation\n$$\np^m - n^3 = 27.\n$$", "options": [], "answer": "(3, 3, 0) and (3, 5, 6)", "solution": "Because $p^n = n^3 + 27 = (n+3)(n^2 - 3n + 9)$, there are positive integers $x, y$ such that $p^x = n+3$ and $p^y = n^2 - 3n + 9$. As $n^2 - 3n + 9 - (n+3) = n^2 - 4n + 6 = (n-2)^2 + 2 > 0$ we have $p^x < p^y$ and so $p^x|p^y$. Hence $(n+3)|(n^2 - 3n + 9)$. But $n^2 - 3n + 9 = (n+3)(n-6) + 27$, thus $(n+3)|27$, which gives $n+3 \\in \\{3, 9, 27\\}$.\nThe case $n = 24$ is impossible, because $n^3+27 = 24^3+27 = 3^3(8^3+1) = 3^6 \\cdot 19$ is not a power of a prime. For $n = 0$ and $n = 6$ we obtain the following solutions $(p, m, n)$: $(3, 3, 0)$ and $(3, 5, 6)$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33178, "subject": "Mathematics (Multi-modal)", "question": "Show that the reciprocals of the altitudes of a triangle of area $\\Delta$, and semi-perimeter $s$, are the side lengths of another triangle whose area is $1/4\\Delta$, and whose perimeter is $s/\\Delta$.", "options": [], "answer": "The reciprocals of the altitudes form the sides of a triangle similar to the original with similarity factor 1/(2Δ). Its perimeter is s/Δ and its area is 1/(4Δ).", "solution": "Since the area of a triangle is \"half the base by the height\", then, in the usual notation, $2\\Delta = ah_a = bh_b = ch_c$. This can be rewritten as follows\n$$\n\\frac{1}{h_a} = \\frac{1}{2\\Delta}a, \\quad \\frac{1}{h_b} = \\frac{1}{2\\Delta}b, \\quad \\frac{1}{h_c} = \\frac{1}{2\\Delta}c,\n$$\nhence the triangle inequalities, $a < b + c$, etc., for the original triangle are equivalent to the triangle inequalities, $\\frac{1}{h_a} < \\frac{1}{h_b} + \\frac{1}{h_c}$, etc., for the triangle with sides $1/h_a, 1/h_b, 1/h_c$. Thus the reciprocals are the side lengths of another triangle, which is similar to the original triangle with similarity factor $1/2\\Delta$. Therefore, the perimeter of this new triangle is equal to $2s/2\\Delta = s/\\Delta$ and its area is equal to $\\Delta/(2\\Delta)^2 = 1/4\\Delta$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33179, "subject": "Mathematics (Multi-modal)", "question": "An $8 \\times 8$ square is subdivided into $64$ unit squares like a chessboard. Some of these $64$ unit squares are black, all others are white. Such a configuration is called *spotty* if it contains at least two black unit squares each of which shares an edge with a white unit square to its left or above it.\nHow many spotty configurations are there?", "options": [], "answer": "2^64 - 421278", "solution": "We will use coordinates $(i, j)$, $0 \\le i, j \\le 8$, to address the vertices of the $64$ small squares so that $(0,0)$ is the bottom left corner. There are $2^{64}$ ways to make each of the $64$ squares either black or white. Each such 'colouring' will be called a configuration.\n\nLet a spot be a black square which shares an edge with a white square to its left or above it. We will first count the number of configurations with no spots. Note that in this case, if a square is black, then the rectangle whose diagonal connects that square with the upper left corner is entirely black. Thus the configuration will contain a connected black area in the upper left corner bounded by a wall in the shape of an Up-and-Right path connecting the corner $(0,0)$ with the corner $(8,8)$.\n\nSuch paths can be represented by a string consisting of $8$ U-s and $8$ R-s.\nThere are $\\binom{16}{8}$ such strings, and so $\\binom{16}{8}$ spot-free configurations.\n\nWe next count the configurations containing exactly one spot.\nThe spot of such a configuration cannot have a black neighbour to the right and below, because this would imply that all squares above and to the left need to be black as well.\n\nBy symmetry, it suffices to count those configurations where the single spot does not have a black neighbour to the right.\nIf it also does not have a black neighbour below, after removing the spot, we obtain a spot-free configuration. If it has a black neighbour below, the spot will be the top square of a column of $\\ell \\ge 2$ black squares. As only the top one of them is a spot, this column must be adjacent to a vertical wall of the spot-free configuration obtained by removing these $\\ell$ squares.\n\n![](attached_image_1.png)\n\nThis vertical wall segment gives $k(8-i)-1$ options for placing a single spot in the grey rectangle to its right. Only the top left corner of this rectangle wouldn't give a spot.\nThe other option would be to add a column of $\\ell < k$ black squares so that the topmost of them is a spot. As seen above, these $\\ell$ squares can only be situated directly next to the wall. There are $\\binom{k-1}{2}$ ways doing so, because the column is determined by selecting its top square and its bottom square, and there are $k-1$ possible positions for these black squares in order to get a spot at the top.\n\nThe wall segment considered can be completed to an Up-and-Right path in\n$$\n\\binom{i-1+j}{i-1} \\binom{15-i-j-k}{7-i}\n$$\nways. The two binomial coefficients count the Up-and-Right paths in the cross-hatched rectangles above. When $i=0$ we take the first factor to be $1$. Adding up the contributions from all such wall segments, we get a total of\n$$\n\\sum_{k=1}^{8} \\sum_{i=0}^{7} \\sum_{j=0}^{8} \\binom{i-1+j}{i-1} \\binom{15-i-j-k}{7-i} (k(8-i)-1) + 2 \\sum_{k=3}^{8} \\sum_{i=0}^{7} \\sum_{j=0}^{8} \\binom{i-1+j}{i-1} \\binom{15-i-j-k}{7-i} \\binom{k-1}{2}\n$$\n$1$-spotted configurations. Note that the factor $2$ in the second line accounts for the symmetry mentioned above.\n\nFor fixed $k$, the factors in the first and second line can be organized carefully in a table with one row for each value of $i$ and one column for each value of $j$, which allows one to do the sums in an orderly way, leading to a total of\n$$\n16 \\binom{15}{10} + \\binom{9}{2} \\binom{16}{9} - 8 \\binom{15}{8}\n$$\n$1$-spotted configurations. The number of spotty configurations is therefore\n$$\n2^{64} - \\left( \\binom{16}{8} + 16 \\binom{15}{10} + \\binom{9}{2} \\binom{16}{9} - 8 \\binom{15}{8} \\right) = 2^{64} - 421278.\n$$\n\nIn the above count of $1$-spotted configurations, one can use the following \"generalized hockey stick\" formula to simplify the sums:\n$$\n\\sum_{j=0}^{B} \\binom{A+j}{A} \\binom{B+C-j}{C} = \\binom{A+B+C+1}{A+C+1}.\n$$", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 33180, "subject": "Mathematics (Multi-modal)", "question": "Let $a$, $b$, $c$, $d$ be real numbers, with at least one of $a$ or $c$ non-zero, such that\n$$\na^2 + ac + c^2 + 1 = b^2 + bd + d^2, \\quad \\text{and} \\quad 2ab + ad + 2cd + bc = 0.\n$$\nShow that $ac < 0$ or $(3a^2 - b^2 + 1)(3c^2 - d^2 + 1) \\le 0$.", "options": [], "answer": "Detailed solution", "solution": "Notice that $b \\neq 0$ or $d \\neq 0$ as $a^2 + ac + c^2 + 1 = (a + c/2)^2 + (3/4)c^2 + 1 > 0$. Suppose that $c = 0$. By assumption, we then have $a \\neq 0$ and the second equation becomes $2ab + ad = 0$, hence $b = -d/2$. Substituting this into the first equation gives $d^2 = (4/3)(a^2 + 1)$. So $b^2 = (a^2 + 1)/3$ and\n$$\n(3a^2 - b^2 + 1)(3c^2 - d^2 + 1) = \\frac{1}{9}(8a^2 + 2)(-1 - 4a^2) < 0,\n$$\n\n$$\n(2a + c)b = -(a + 2c)d.\n$$\nSince $b \\neq 0$ or $d \\neq 0$, and $(2a + c)(a + 2c) = 2(a + c)^2 + ac > 0$, we deduce that $bd < 0$. Consider the complex numbers $z = a + ib$ and $w = c + id$. Then\n$$\nz^2 + zw + w^2 = (a^2 - b^2 + ac - bd + c^2 - d^2) + i(2ab + ad + bc + 2cd) = -1.\n$$\n\nSo\n$$\n(z^3 + z) - (w^3 + w) = (z - w)(z^2 + zw + w^2 + 1) = 0.\n$$\nNow\n$$\n\\begin{aligned}\nz^3 + z &= a(a^2 - 3b^2 + 1) + ib(3a^2 - b^2 + 1), \\\\\nw^3 + w &= c(c^2 - 3d^2 + 1) + id(3c^2 - d^2 + 1).\n\\end{aligned}\n$$\nIn particular $d(3c^2 - d^2 + 1) = b(3a^2 - b^2 + 1)$. But $bd < 0$. So\n$$\n(3a^2 - b^2 + 1)(3c^2 - d^2 + 1) \\le 0.\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33181, "subject": "Mathematics (Multi-modal)", "question": "Suppose a doubly infinite sequence of real numbers\n$$\n\\dots, a_{-2}, a_{-1}, a_0, a_1, a_2, \\dots\n$$\nhas the property that\n$$\na_{n+3} = \\frac{a_n + a_{n+1} + a_{n+2}}{3}, \\quad \\text{for all integers } n.\n$$\nShow that if this sequence is bounded (i.e., if there exists a number $R$ such that $|a_n| \\le R$ for all $n$), then $a_n$ has the same value for all $n$.", "options": [], "answer": "Detailed solution", "solution": "Assume that the sequence is not constant. Define a function $D: \\mathbb{Z} \\to [0, \\infty)$ by the equation\n$$\nD(n) = |a_{n+1} - a_n| + |a_{n+2} - a_{n+1}| + |a_{n+2} - a_n|,\n$$\nor equivalently,\n$$\nD(n) = 2(x_n - y_n), \\quad (3)\n$$\nwhere $x_n$ and $y_n$ are the largest and the smallest, respectively, of the three numbers $a_n, a_{n+1}, a_{n+2}$.\nNote that if $D(n) = 0$ for any one value of $n$, then the original sequence would be constant. Thus by our assumption, we must have $D(n) > 0$ for all $n$. It is also trivial that $(a_n)$ is unbounded if the function $D$ is unbounded. We define $[x, y]$ to be the closed interval of values between the numbers $x$ and $y$. Unlike the usual meaning, we do not insist that $x \\le y$, so $[x, y] = [y, x]$ is always an interval of length $|y - x|$.\n\n**Claim 1:** $D$ is monotonically decreasing.\nBy translation invariance of the indices, it suffices to show that $D(0) \\ge D(1)$. Bearing in mind that $a_3$ is an arithmetic average of $a_1, a_2$, and $a_0$, we see that if $a_0 \\in [a_1, a_2]$, then $a_3 \\in [a_1, a_2]$. Alternatively, if $a_0 \\notin [a_1, a_2]$, then either $a_3 \\in [a_1, a_2]$ or both $a_0$ and $a_3$ are on the same side of $[a_1, a_2]$, with $a_3$ being strictly closer than $a_0$ to $[a_1, a_2]$.\nBy the above considerations and (3), we deduce the following. If $a_0 \\in [a_1, a_2]$, then $D(1) = D(0) = 2|a_2 - a_1|$. If instead $a_0 \\notin [a_1, a_2]$, then either $a_3 \\in [a_1, a_2]$, in which case $D(0) - D(1) = 2 \\text{dist}(a_0, [a_1, a_2]) > 0$, or $a_3 \\notin [a_1, a_2]$, in which case $D(0) - D(1) = 2|a_0 - a_3| > 0$. This shows that $D(0) \\ge D(1)$ with equality iff $a_0 \\in [a_1, a_2]$.\n\n\n**Claim 2:** We cannot have $a_n \\in [a_{n+1}, a_{n+2}]$ for two consecutive values of $n$.\nAs in Claim 1, we reduce to the statement that if $a_0 \\in [a_1, a_2]$, then $a_1 \\notin [a_2, a_3]$. Suppose $a_0 \\in [a_1, a_2]$. As noted above, we then have $a_3 \\in [a_1, a_2]$, which implies that $a_1 \\notin [a_2, a_3]$ unless $a_1 = a_3$. But if $a_1 = a_3$, then our assumption that $a_0 \\in [a_1, a_2]$ forces $a_0 = a_1 = a_2$, contradicting the initial assumption that $(a_n)$ is non-constant. Claim 2 now follows.\n**Claim 3:** $D(n+3) < (2/3)D(n)$, $n \\in \\mathbb{N}$.\nIn view of Claims 1 and 2, it suffices to show that $D(n+2) < 2D(n)/3$ whenever $a_n \\notin [a_{n+1}, a_{n+2}]$. As usual, we may assume that $n=0$. The function $D$ is invariant under translations of the sequence, and under multiplication by $-1$. So we may assume that $a_0 = 0$, and that $a := a_1$ and $b := a_2$ are both positive. Since\n$$\na_3 = \\frac{a+b}{3} \\quad \\text{and} \\quad a_4 = \\frac{4a+4b}{9},\n$$\nit follows that\n$$\n\\begin{align} \nD(0) &= a + |b-a| + b, \\notag \\\nD(1) &= |b-a| + \\frac{|a-2b|}{3} + \\frac{|b-2a|}{3}, \\tag{4} \\\nD(2) &= \\frac{|a-2b|}{3} + \\frac{|a+b|}{9} + \\frac{|4a-5b|}{9}. \\notag \n\\end{align}\n$$\nIf $b \\ge a$, then by (4), we have $D(0) = 2b$ and\n$$\nD(2) = \\frac{2b-a}{3} + \\frac{a+b}{9} + \\frac{5b-4a}{9} = \\frac{12b-6a}{9} < \\frac{4b}{3},\n$$\nand so $D(2) < 2D(0)/3$, as required.\nIf instead $a/2 \\le b < a$, then $D(0) = 2a$ and\n$$\nD(1) = (a-b) + \\frac{2b-a}{3} + \\frac{2a-b}{3} = \\frac{4a-2b}{3} < \\frac{4a}{3}.\n$$\nBy Claim 1, we conclude that $D(2) \\le D(1) < 2D(0)/3$, as required.\nFinally, if $b < a/2$, then $D(0) = 2a$ and\n$$\nD(2) = \\frac{a-2b}{3} + \\frac{a+b}{9} + \\frac{4a-5b}{9} = \\frac{8a-10b}{9} < \\frac{8a}{9},\n$$\nand so $D(2) < 4D(0)/9 \\le 2D(0)/3$, as required. We have proved Claim 3.\nWith Claim 3 in hand, the unboundedness of $D(n)$ for negative $n$ follows easily.\nLet $b_n = a_{-n}$, so we have $b_{n+3} = -b_{n+2} - b_{n+1} + 3b_n$ for all $n \\in \\mathbb{Z}$, and in particular for $n \\ge 0$. The unique solution is $a_n = \\beta r^n + \\gamma s^n + \\delta t^n$ for $n \\ge 0$, where $r = 1$ and $s = \\bar{t} = -1 + i\\sqrt{2}$ are the three roots of the equation $x^3 + x^2 + x - 3 = 0$, and $\\beta, \\gamma, \\delta \\in \\mathbb{C}$ depend on $b_0, b_1$, and $b_2$. Since every $a_n$ is real, $\\beta$ is real and $\\delta = \\bar{\\gamma}$. Thus $b_n = \\beta + 2 \\operatorname{Re}(\\gamma s^n)$, $n \\ge 0$. We assume that $(a_n)$ is non-constant, and so $\\gamma \\ne 0$.\nLet $\\arg : \\mathbb{C} \\setminus \\{0\\} \\to (-\\pi, \\pi]$ be the argument function. Call $n \\in \\mathbb{Z}$ good if $|\\arg(\\gamma s^n)| < 3\\pi/8$. Writing $c := \\cos(3\\pi/8) > 0$, we have $\\operatorname{Re}(\\gamma s^n) > c|\\gamma| \\cdot |s|^n$ whenever $n$ is good.\nNow $\\arg(s) = \\pi - \\tan^{-1} \\sqrt{2}$, so\n$$\n\\arg(s) \\in (\\pi - \\tan^{-1}\\sqrt{3}, \\pi - \\tan^{-1}1) = (2\\pi/3, 3\\pi/4).\n$$\nThus the number $\\gamma s^n / |\\gamma s^n|$ \"hops more than a full circuit around the unit circle\" as $n$ ranges over a set of the form\n$$\nS(n_0) := \\{n_0, n_0 + 1, n_0 + 2, n_0 + 3\\}, \\quad n_0 \\in \\mathbb{Z},\n$$\nand every $S(n_0)$ contains a good number $n$ (because $0 < \\arg(s) < 2(3\\pi/8)$). We can pick arbitrarily large good numbers $n \\in \\mathbb{N}$, and for each good $n$ we have $b_n > \\beta + 2c|\\gamma| \\cdot |s|^n$. But if $(a_n)_{n=-\\infty}^{\\infty}$ were bounded, and hence $(b_n)_{n=0}^{\\infty}$ bounded, then $|s|^n$ would be bounded for all $n \\in \\mathbb{N}$. This is impossible, since $|s| > 1$ and so if $|s|^n \\le K$, then $n \\log|s| \\le \\log K$, and $n \\le \\log K / \\log|s|$ (where log indicates a logarithm to any preferred base).\nThis solution is similar to Solution 2, except that we take the more obvious approach of using the given recurrence relation directly. The solution is $a_n = \\beta_0 r^n + \\gamma_0 s^n + \\delta_0 t^n$ for $n \\ge 0$, where $r = 1$ and $s = \\bar{t} = (-1 + i\\sqrt{2})/3$ are the three roots of the equation $x^3 - (x^2+x+1)/3 = 0$, and $\\beta_0, \\gamma_0, \\delta_0 \\in \\mathbb{C}$ depend on $a_0, a_1$, and $a_2$. Since every $a_n$ is real, $\\beta_0$ is real and $\\delta_0 = \\bar{\\gamma}_0$. Thus $a_n = \\beta_0 + 2 \\operatorname{Re}(\\gamma_0 s^n)$ for $n \\ge 0$; we call this *Formula 1*, and we need to show that it is also valid for $n < 0$. Assume that $(a_n)$ is non-constant, and so $\\gamma_0 \\ne 0$.\nSuppose that $k \\in \\mathbb{N}$. The sequence $(b_n)_{n=0}^{\\infty}$, where $b_n = a_{n-k}$, satisfies the same recurrence relation as $(a_n)$, so it can be written in the same form: $a_n = \\beta_k + 2 \\operatorname{Re}(\\gamma_k s^{n+k})$ for $n \\ge -k$; we call this *Formula 2*. To show that *Formula 1* extends to $n = -k$, we need to show that $\\beta_k = \\beta_0$ and $\\operatorname{Re}(\\gamma_k s^{n+k}) = \\operatorname{Re}(\\gamma_0 s^n)$.\nLet $d_k := \\beta_k - \\beta_0$. Comparing Formulae 1 and 2, we see that\n$$\n2 \\operatorname{Re}(\\gamma_0 s^n) = 2 \\operatorname{Re}(\\gamma_k s^{n+k}) + d_k, \\quad n \\ge 0. \\quad (5)\n$$\nTaking half the difference of two such equations (for $n = 0$ and $n = m$), we get\n$$\n\\mathrm{Re}(\\gamma_0(1 - s^m)) = \\mathrm{Re}(\\gamma_k s^k (1 - s^m))\n$$\nand so\n$$\n\\mathrm{Re}((\\gamma_0 - \\gamma_k s^k)(1 - s^m)) = 0.\n$$\nNow $\\arg(1 - s^m)$ takes on different values for $m = 1, 2$, and these values do not differ by $\\pi$, so it follows that $\\gamma_0 = \\gamma_k s^k$. Now (5) tells us that $d_k = 0$, i.e. $\\beta_k = \\beta_0$, and so Formula 1 is valid for $n = -k$.\nSince $k \\in \\mathbb{N}$ is arbitrary, our solution for $n \\ge 0$ is also valid for $n < 0$. The value of $s/|s|$ is the same as in Solution 2. Thus as before we see that there are infinitely many good values of $n < 0$ for which $\\mathrm{Re}(\\gamma s^n) > c|\\gamma| \\cdot |s|^n$. But $|s| < 1$, so as in Solution 2, boundedness is impossible.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33182, "subject": "Mathematics (Multi-modal)", "question": "Prove that, for all pairs of non-negative integers, $j, n$,\n$$\n\\sum_{k=0}^{n} k^j \\binom{n}{k} \\ge 2^{n-jn}.\n$$", "options": [], "answer": "Detailed solution", "solution": "By the symmetry of the binomial coefficients,\n$$\n2 \\sum_{k=0}^{n} k^j \\binom{n}{k} = \\sum_{k=0}^{n} (k^j + (n-k)^j) \\binom{n}{k}.\n$$\nNow\n$$\nk^j + (n-k)^j = n^j \\left( \\left( \\frac{k}{n} \\right)^j + \\left( 1 - \\frac{k}{n} \\right)^j \\right) = n^j f_j \\left( \\frac{k}{n} \\right),\n$$\nwhere $f_j(x) = x^j + (1-x)^j$, $(0 \\le x \\le 1)$. By using the convexity of $x \\mapsto x^j$, calculus methods or otherwise, it is easy to see that\n$$\n\\min \\{f_j(x) : x \\in [0, 1]\\} = f_j\\left(\\frac{1}{2}\\right) = 2^{1-j}, \\quad j = 0, 1, \\dots,\n$$\nwhence\n$$\n2 \\sum_{k=0}^{n} k^j \\binom{n}{k} \\ge n^j 2^{1-j} \\sum_{k=0}^{n} \\binom{n}{k} = n^j 2^{n+1-j},\n$$\nfrom which the result follows.\n\nFirst, if $j = 0, 1$ we get equalities $\\sum_{k=0}^{n} \\binom{n}{k} = 2^n$ and $\\sum_{k=0}^{n} k \\binom{n}{k} = n 2^{n-1}$. The first follows from the Binomial Theorem and the second can be obtained by differentiating and evaluating at $x = 1$ the function\n$$\n(1+x)^n = \\sum_{k=0}^{n} x^k \\binom{n}{k}.\n$$\nFurther differentiation leads to sums of $\\sum_{k=0}^{n} k^j \\binom{n}{k}$ for small values of $j$, but without a new idea (see Solution 3) it may run into the sand for large values of $j$. But viewing\n$$\n\\frac{n}{2} = 2^{-n} \\sum_{k=0}^{n} k \\binom{n}{k} = \\frac{\\sum_{k=0}^{n} k \\binom{n}{k}}{\\sum_{k=0}^{n} \\binom{n}{k}}\n$$\nas a convex sum, and using the convexity of $f(x) = x^j$, Jensen's inequality\n$$\nf\\left(\\frac{n}{2}\\right) \\le 2^{-n} \\sum_{k=0}^{n} f(k) \\binom{n}{k} \\quad \\text{yields the result.}\n$$\nThe Stirling numbers of the second kind $\\binom{j}{k}$ can be defined recursively as follows.\n$$\n\\begin{cases} \\begin{pmatrix} 0 \\\\ 0 \\end{pmatrix} = 1 & \\text{and} \\quad \\begin{pmatrix} j \\\\ k \\end{pmatrix} = 0 & \\text{if } k < 0 \\text{ or } k > j, \\\\ \\begin{pmatrix} j+1 \\\\ k \\end{pmatrix} = k \\begin{pmatrix} j \\\\ k \\end{pmatrix} + \\begin{pmatrix} j \\\\ k-1 \\end{pmatrix} & \\text{if } j \\ge 0 \\text{ and } k \\ge 0. \\end{cases}\n$$\nThey satisfy the identity\n$$\nx^j = \\sum_{k=0}^{j} \\begin{pmatrix} j \\\\ k \\end{pmatrix} x^k\n$$\nwhere $x^k$ stands for the product of $k$ factors $x(x-1)(x-2)\\cdots(x-k+1)$, a so-called falling power. By convention, $x^0 = 1$. The proof of this identity is a simple induction (like the proof of the binomial theorem), see e.g. [1]. We now fix the value of $n$ and introduce the functions $f_0(x) = \\left(\\frac{1+x}{2}\\right)^n$ and\n$$\nf_k(x) = \\frac{n(n-1)(n-2)\\cdots(n-k+1)}{2^k} \\cdot x^k \\left(\\frac{1+x}{2}\\right)^{n-k}, \\quad k=1,2,3\\dots\n$$\nNote that, with the notation introduced above, we have $f_k(1) = \\frac{n^k}{2^k}$.\nLet $D$ denote the differential operator $x^{\\frac{d}{dx}}$. Its main feature for us is that $Dx^k = kx^k$. After $j$ applications of the operator $D$, the binomial theorem\n$$\n(1+x)^n = \\sum_{k=0}^{n} x^k \\binom{n}{k} \\quad \\text{implies} \\quad D^j ((1+x)^n) = \\sum_{k=0}^{n} k^j x^k \\binom{n}{k}\n$$\nThe desired inequality now reads as $D^j ((1+x)^n)|_{x=1} \\ge 2^{n-j}n^j$ which can be rewritten as $D^j f_0|_{x=1} \\ge \\frac{n^j}{2^j}$.\nIt is easy to observe that $Df_0 = f_1$, $Df_1 = f_1 + f_2$ and in general that $Df_k = k f_k + f_{k+1}$ for $k \\ge 0$. Using induction and the recursion for the Stirling numbers, this implies the key identity\n$$\nD^j f_0 = \\sum_{k=0}^{j} \\binom{j}{k} f_k.\n$$\nFrom above we obtain now the desired inequality\n$$\nD^j f_0|_{x=1} = \\sum_{k=0}^{j} \\binom{j}{k} f_k(1) = \\sum_{k=0}^{j} \\binom{j}{k} \\frac{n^k}{2^k} \\ge \\frac{1}{2^j} \\sum_{k=0}^{j} \\binom{j}{k} n^k = \\frac{n^j}{2^j}.\n$$\nThe LHS counts the total number $N$ of ways of choosing a committee of any size from $n$ people and assigning $j$ distinct 'roles' $R_1, R_2, \\dots, R_j$ to people in the committee (here any person can have multiple roles, and there can be more roles than committee members).\nThe LHS counts this by partitioning the count according to the size $k$ of the committee. For each $k$, we first choose a committee of size $k$ (there are $\\binom{n}{k}$ ways to do this), and then we assign each role in turn (there are $k^j$ ways to assign the roles for each such chosen committee).\nThe RHS forms a lower bound on $N$. Consider first assigning the $j$ roles among the $n$ people - there are $n^j$ ways to do this. Next we consider 2 cases. First consider the case $j < n$. In this case, once the $j$ roles are assigned, at most $j$ people have roles assigned to them, and these people must therefore all be in the committee. There remain at least $n - j > 0$ people who may be either included in, or excluded from, the committee - this yields at least $2^{n-j}$ choices to complete the committee for each initial assignment of roles. Second, consider the case $j \\ge n$. In this case, all people may have roles assigned, so that $N$ is lower bounded by $n^j$. But this in turn is greater than or equal to $2^{n-j}n^j$ since $2^{n-j} \\le 1$. This proves the desired inequality.\nWe use strong induction on $j$. The induction statement is\n$$\nS_j: \\text{ for all non-negative integers } n, \\sum_{k=0}^{n} k^j \\binom{n}{k} \\ge 2^{n-j} n^j.\n$$\nFirst observe that $S_0: \\sum_{k=0}^{n} \\binom{n}{k} \\ge 2^n$ is true, since both sides are equal. Assume $S_0, S_1, \\dots, S_m$ are true. We want to prove\n$$\nS_{m+1}: \\sum_{k=0}^{n} k^{m+1} \\binom{n}{k} \\ge 2^{n-m-1} n^{m+1} \\quad \\text{for all } n \\ge 0.\n$$\nFirst note the binomial identity $k(\\binom{n}{k}) = n(\\binom{n-1}{k-1})$. So\n$$\n\\begin{align*}\n\\sum_{k=0}^{n} k^{m+1} \\binom{n}{k} &= \\sum_{k=0}^{n} k^m n \\binom{n-1}{k-1} = n \\sum_{k=0}^{n-1} (k+1)^m \\binom{n-1}{k} \\\\\n&= n \\sum_{k=0}^{n-1} \\sum_{i=0}^{m} k^i \\binom{m}{i} \\binom{n-1}{k} = n \\sum_{i=0}^{m} \\binom{m}{i} \\sum_{k=0}^{n-1} k^i \\binom{n-1}{k} \\\\\n&\\ge n \\sum_{i=0}^{m} \\binom{m}{i} 2^{n-1-i} (n-1)^i = n 2^{n-1} \\sum_{i=0}^{m} \\binom{m}{i} \\left(\\frac{n-1}{2}\\right)^i \\\\\n&= n 2^{n-1} \\left(1 + \\frac{n-1}{2}\\right)^m = n 2^{n-1-m} (n+1)^m \\ge 2^{n-1-m} n^{m+1}.\n\\end{align*}\n$$\nThis proves $S_{m+1}$ and hence the result follows by induction.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33183, "subject": "Mathematics (Multi-modal)", "question": "Let $k > 3$ be an integer and suppose a doubly infinite sequence of real numbers $\\ldots$, $a_{-2}$, $a_{-1}$, $a_0$, $a_1$, $a_2$, $\\ldots$ has the property that\n$$\na_{n+k} = \\frac{1}{k} \\sum_{j=0}^{k-1} a_{n+j}, \\quad \\text{for all integers } n.\n$$\nIf this sequence is bounded, does it follow it is constant?", "options": [], "answer": "Yes", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33184, "subject": "Mathematics (Multi-modal)", "question": "A sequence $(u_n)_{n=0}^{\\infty}$ is defined recursively as follows: $u_0 = 2$ and\n$$\nu_n = \\frac{2u_{n-1} + 1}{u_{n-1} + 2}, \\text{ for } n = 1, 2, 3, \\dots$$\nSo, for example, $u_1 = \\frac{5}{4}$, $u_2 = \\frac{14}{13}$. Prove that for all positive integers $n$,\n$$1 < u_n < 1 + \\frac{2}{3^n}.$$", "options": [], "answer": "Detailed solution", "solution": "Introduce a new sequence $v_n = u_n - 1$. We have $v_0 = 1$ and the given recursion translates into\n$$\nv_n + 1 = \\frac{2v_{n-1} + 3}{v_{n-1} + 3}, \\text{ i.e. } v_n = \\frac{v_{n-1}}{v_{n-1} + 3} = 1 - \\frac{3}{v_{n-1} + 3}.\n$$\nWe have to prove that $0 < v_n < \\frac{2}{3^n}$. As $v_0 = 1 > 0$, the recursion easily implies that $v_n > 0$ for all $n \\ge 0$.\nLet us now show by induction that $v_n < \\frac{2}{3^n}$. The start at $n = 0$ is clear, as $v_0 = 1 < 2$. Assume now that the inequality holds true for $n = k \\ge 0$, i.e. $v_k < \\frac{2}{3^k}$. This assumption implies\n$$\nv_k + 3 < \\frac{2 + 3^{k+1}}{3^k} \\quad \\text{and so} \\quad -\\frac{3}{v_k + 3} < -\\frac{3^{k+1}}{2 + 3^{k+1}}, \\quad \\text{hence}\n$$\n$$\nv_{k+1} = 1 - \\frac{3}{v_k + 3} < 1 - \\frac{3^{k+1}}{2 + 3^{k+1}} = \\frac{2}{2 + 3^{k+1}} < \\frac{2}{3^{k+1}}.\n$$\nThe sequence $(u_n)_n^\\infty$ begins $2, \\frac{5}{4}, \\frac{14}{13}, \\frac{41}{40}, \\frac{122}{121}, \\frac{365}{364}, \\dots$, and helped by the occurrence of $3^n$ in the statement of the question, we check that the sequence $(3^n)_n^\\infty$ begins $1, 3, 9, 27, 81, 243, 729, \\dots$, and we note the pattern $\\left(3^{n+1} \\pm 1\\right)/2$ in the form of the numerators and denominators of the terms $u_n$. We therefore conjecture\n$$\nu_n = \\frac{3^{n+1} + 1}{3^{n+1} - 1}, \\text{ for all } n \\ge 0.$$ \nWe prove the conjecture by simple induction. The formula is trivial for $n = 0$. Assuming the validity of the conjecture for $n = k \\ge 0$, we have\n$$\nu_{k+1} = \\frac{2u_k + 1}{u_k + 2} = \\frac{2\\left(\\frac{3^{k+1}+1}{3^{k+1}-1}\\right) + 1}{\\left(\\frac{3^{k+1}+1}{3^{k+1}-1}\\right) + 2} = \\frac{2(3^{k+1} + 1) + (3^{k+1} - 1)}{(3^{k+1} + 1) + 2(3^{k+1} - 1)} = \\frac{3^{k+2} + 1}{3^{k+2} - 1},$$\nas asserted. This proves the conjecture. It now follows immediately that $u_n > 1$ and that\n$$u_n - 1 = \\frac{2}{3^{n+1} - 1} < \\frac{2}{3^n}.$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33185, "subject": "Mathematics (Multi-modal)", "question": "Let $ABC$ be a triangle and $D$, $E$, $F$ points on the circumcircle of triangle $ABC$ so that $AD$, $BE$ and $CF$ are diameters of the circumcircle. The lines $AE$, $BF$ and $CD$ form a triangle $A'B'C'$. Prove that $\\triangle ABC$ is similar to $\\triangle A'B'C'$.", "options": [], "answer": "Detailed solution", "solution": "Let $A'$ be the intersection of $AE$ and $CD$. Because $BE$ and $AD$ are diameters, $\\angle BAA'$ and $\\angle ACA'$ are right angles. Hence, $\\angle BAC + \\angle CAA' = 90^\\circ = \\angle AA'C + \\angle CAA'$. This implies $\\angle BAC = \\angle AA'C$. Similarly, we obtain $\\angle CBA = \\angle BB'A$ and $\\angle ACB = \\angle CC'B$, hence the triangles $ABC$ and $A'B'C$ are similar.\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33186, "subject": "Mathematics (Multi-modal)", "question": "Find all rational numbers $r$ that satisfy the equation\n$$\n(\\sqrt{2+\\sqrt{3}})^r + (\\sqrt{2-\\sqrt{3}})^r = 14.\n$$", "options": [], "answer": "r = 4, r = -4", "solution": "First observe that $(2+\\sqrt{3})(2-\\sqrt{3}) = 1$. If we let\n$$\nx = (\\sqrt{2+\\sqrt{3}})^r = (2+\\sqrt{3})^{\\frac{r}{2}} \\quad \\text{we get}\n$$\n$$\n\\frac{1}{x} = (\\sqrt{2-\\sqrt{3}})^r = (2-\\sqrt{3})^{\\frac{r}{2}}.\n$$\nTherefore, we have to find $r \\in \\mathbb{Q}$ such that $x + \\frac{1}{x} = 14$, or equivalently, $x^2 - 14x + 1 = 0$. The two solutions to this equation are $7 \\pm 4\\sqrt{3}$. In the attempt to relate this to $2 \\pm \\sqrt{3}$ we quickly discover that $7 \\pm 4\\sqrt{3} = (2 \\pm \\sqrt{3})^2$. This means, $x$ has to be equal to\n$$\n(2+\\sqrt{3})^2 \\quad \\text{or} \\quad (2-\\sqrt{3})^2 = (2+\\sqrt{3})^{-2}.\n$$\nThis implies $\\frac{r}{2} = \\pm 2$, i.e. $r = \\pm 4$. A straightforward calculation shows that $r = 4$ and $r = -4$ are indeed solutions to the given equation.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 33187, "subject": "Mathematics (Multi-modal)", "question": "A regular polygon with $n \\ge 3$ sides is given. Each vertex is coloured either red, green or blue, and no two adjacent vertices of the polygon are the same colour. There is at least one vertex of each colour.\nProve that it is possible to draw certain diagonals of the polygon in such a way that they intersect only at the vertices of the polygon and they divide the polygon into triangles so that each such triangle has vertices of three different colours.", "options": [], "answer": "Detailed solution", "solution": "Suppose that the polygon has only one vertex of some colour, say red. Then drawing all diagonals from this red vertex easily solves the problem. Therefore, in what follows we may assume that the polygon has at least two vertices of each colour. In particular we may assume that $n \\ge 6$.\nFor a polygon with $n \\ge 6$ sides, we proceed using strong induction. Assume the result holds for all convex polygons with less than $n$ sides.\n**Version 1.** Define the distance $d(X, Y)$ between vertices $X$ and $Y$ as the minimum number of neighbouring-vertex movements which are necessary in order to get from $X$ to $Y$, and denote the corresponding path traversed by $S(X, Y)$ (this path includes the endpoints $X$ and $Y$). Let $R_1$ and $R_2$ be that pair of vertices which minimize $d(X, Y)$ over all vertex pairs of the same colour; without loss of generality, we can assume these vertices are red. Now, there must exist a non-red vertex $G$ between $R_1$ and $R_2$ (i.e. lying in $S(R_1, R_2)$); without loss of generality, this vertex is green. Now, there cannot be two blue vertices $B_1$ and $B_2$ in $S(X, Y)$, as this would imply $d(B_1, B_2) < d(R_1, R_2)$, a contradiction, since $R_1$ and $R_2$ minimize this quantity. Therefore at least one blue vertex $B$ lies outside $S(R_1, R_2)$.\nJoining the green vertex $G$ to the blue vertex $B$ breaks the polygon into two smaller convex polygons each of which satisfies the conditions of the original problem. Thus by strong induction the result follows for every integer $n \\ge 3$.\n\n\n**Version 2.** By assumption there are at least two red vertices. When they are removed, we are left with two disjoint, non-empty and connected sets of vertices. Both of them contain at least one vertex that is not red. If one of these sets does not contain a blue vertex, we can pick a green one in it and a blue vertex from the other set. If both sets contain at least one blue vertex, we first pick a green vertex in one of the sets, then a blue one from the other set. Therefore, in any case, we can pick a green vertex G from one of the two sets and a blue vertex B from the other.\nJoining the green vertex G to the blue vertex B breaks the polygon into two smaller convex polygons each of which satisfies the conditions of the original problem. Thus by strong induction the result follows for every integer $n \\ge 3$.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 33188, "subject": "Mathematics (Multi-modal)", "question": "Let $[x]$ be the greatest integer not exceeding $x$. Consider the statements\n\na. $[x+y] = [x] + [y]$.\n\nb. $[-x - y] = [-x] + [-y]$.\n\nCharacterise the pairs $x, y$ of real numbers such that at least one of (a) or (b) is true and characterise the pairs $x, y$ such that both (a) and (b) are true.", "options": [], "answer": "Both (a) and (b) are true if and only if at least one of x or y is an integer. At least one of (a) or (b) is true for all pairs except those with x and y both non-integers but x + y an integer (these are exactly the pairs for which neither holds). Equivalently: (a) holds iff {x} + {y} < 1; (b) holds iff x or y is an integer, or {x} + {y} > 1.", "solution": "At least one of (a) or (b) is true unless $x + y$ is an integer, but $x$ is not an integer. Exactly one of (a) and (b) is true if none of $x$, $y$, $x + y$ are integers. Both (a) and (b) are true if at least one of $x$, $y$ is an integer.\n\nMethod: for $x$ a real number, write $x = [x] + \\{x\\}$, where $0 \\le \\{x\\} < 1$ is the fractional part of $x$. Then (a) is equivalent to $\\{x+y\\} = \\{x\\} + \\{y\\}$, which in turn is equivalent to $\\{x\\} + \\{y\\} < 1$. Likewise, equivalent to (b) is the statement: $x$ or $y$ is an integer or $\\{x\\} + \\{y\\} > 1$. This relies on the fact that $\\{-x\\} = 1 - \\{x\\}$ if $x$ is not an integer.\n\nThe best way of visualising the solution is as follows. Notice first that adding an integer to $x$ or to $y$ does not change whether or not $(x, y)$ satisfies (a) or (b). So we can replace $x$ by $\\{x\\}$ and $y$ by $\\{y\\}$. So now we are looking at all points $(x, y)$ in the unit square $\\{(x, y) \\mid 0 \\le x, y < 1\\}$. Check first that (a) is satisfied by all points in the lower triangle bounded by the diagonal $x+y=1$, plus the endpoints of the diagonal $(1, 0)$ and $(0, 1)$. Now $x \\to 1-x$ maps the square onto itself. The $(x, y)$ satisfying (b) are those points $(1-x, 1-y)$ satisfying (a). By the above, these are the $(x, y)$ in the upper triangle bounded by $x+y=1$, plus $(1, 0)$ and $(0, 1)$. The only points in the square satisfying neither (a) nor (b) are those on the diagonal $x+y=1$, apart from $(1, 0)$ and $(0, 1)$ i.e. when neither $x$ nor $y$ is an integer but $x+y$ is an integer.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33189, "subject": "Mathematics (Multi-modal)", "question": "Assume $ABCD$ is a convex quadrilateral such that the triangles $ABD$, $BCD$, $CDA$, and $ABC$ have the same area. Prove that $ABCD$ is a parallelogram.", "options": [], "answer": "Detailed solution", "solution": "Let $B'$ and $D'$ on $AC$ be the feet of the altitudes of the triangles $\\triangle ABC$ and $\\triangle ADC$. Because these two triangles have the same area, we get $|BB'| = |DD'|$. This implies that the two right triangles $BMB'$ and $DMD'$, which have equal angles at $M$, are congruent. In particular, $|BM| = |MD|$.\n\nA similar argument, using the other diagonal, shows that $|AM| = |MC|$. Because the two triangles $DMA$ and $BMC$ have equal angles at $M$, they are now seen to be congruent. This shows that $\\angle MBC = \\angle MDA$, hence $BC$ is parallel to $DA$. In a similar way it follows that $AB$ is parallel to $CD$, hence $ABCD$ is a parallelogram.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33190, "subject": "Mathematics (Multi-modal)", "question": "Point $D$ is on side $AC$ of triangle $ABC$ such that $\\angle ABC = \\angle DAC = 30^\\circ$ and $\\angle ADB = 45^\\circ$. Prove that $|BD| = |DC|$.\n\n![](attached_image_1.png)", "options": [], "answer": "Detailed solution", "solution": "Let $O$ be the circumcentre of $\\triangle ABC$ and $E$ the point where the line $AD$ meets the circumcircle again.\n\n![](attached_image_2.png)\n\nBecause central angles are twice inscribed angles subtended by the same arc, we obtain $\\angle COA = 2\\angle CBA = 60^\\circ$ and $\\angle EOC = 2\\angle EAC = 60^\\circ$. Using this and $|OA| = |OC| = |OE|$, we see that the triangles $OAC$ and $OCE$ are equilateral. This implies that $AE$ is the perpendicular bisector of $OC$ and we obtain $|DO| = |DC|$ and $|EO| = |EC|$. This implies that $\\angle DOE$ is congruent to $\\angle DCE$, in particular, $\\angle ODE = \\angle CDE = \\angle ADB = 45^\\circ$ and hence $OD$ is perpendicular to $BC$. This implies that $D$ is the mid point of $BC$, as required.\nIn triangle $ABD$ we have $\\angle BAD = 180^\\circ - 30^\\circ - 45^\\circ = 105^\\circ$. Because $\\sin 105^\\circ = \\cos 15^\\circ$ and $\\sin 30^\\circ = 2 \\sin 15^\\circ \\cos 15^\\circ$, with the aid of the sine rule for $\\triangle ABD$ we obtain\n$$\n|BD| = \\frac{\\sin 105^\\circ}{\\sin 30^\\circ} |AD| = \\frac{1}{2 \\sin 15^\\circ} |AD|.\n$$\nOn the other hand, the sine rule for $\\triangle ADC$ gives\n$$\n|DC| = \\frac{\\sin 30^\\circ}{\\sin 15^\\circ} |AD| = 2 \\cos 15^\\circ |AD|.\n$$\nFinally, using $\\sin 30^\\circ = 1/2$ we get $1 = 2 \\sin 30^\\circ = 4 \\sin 15^\\circ \\cos 15^\\circ$ and this implies\n$$\n\\frac{1}{2 \\sin 15^\\circ} = 2 \\cos 15^\\circ, \\quad \\text{hence} \\quad |BD| = |DC|.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33191, "subject": "Mathematics (Multi-modal)", "question": "Suppose $a$, $b$, $c$ are real numbers such that $abc \\neq 0$. Determine $x$, $y$, $z$ in terms of $a$, $b$, $c$ such that\n$$\nbz + cy = a, \\quad cx + az = b, \\quad ay + bx = c.\n$$\nProve also that\n$$\n\\frac{1-x^2}{a^2} = \\frac{1-y^2}{b^2} = \\frac{1-z^2}{c^2}.\n$$", "options": [], "answer": "x = (b^2 + c^2 − a^2) / (2bc), y = (c^2 + a^2 − b^2) / (2ca), z = (a^2 + b^2 − c^2) / (2ab), and (1 − x^2)/a^2 = (1 − y^2)/b^2 = (1 − z^2)/c^2 = 4s(s − a)(s − b)(s − c) / (a^2 b^2 c^2), where s = (a + b + c)/2.", "solution": "Multiply the first equation by $a$, the second by $b$ and the third by $c$. Add the difference between the first and second of the resulting equations to the third one, thereby obtaining the following one:\n$$\n2cay = c^2 + a^2 - b^2.\n$$\nSince $ca \\neq 0$, it follows that\n$$\ny = \\frac{c^2 + a^2 - b^2}{2ca}.\n$$\nLikewise, by cyclicity,\n$$\nx = \\frac{b^2 + c^2 - a^2}{2bc}, \\quad z = \\frac{a^2 + b^2 - c^2}{2ab}.\n$$\nNext, focusing on $z$,\n$$\n\\begin{aligned}\n1 - z^2 &= (1 - z)(1 + z) \\\\\n&= \\left( \\frac{2ab - (a^2 + b^2 - c^2)}{2ab} \\right) \\left( \\frac{2ab + (a^2 + b^2 - c^2)}{2ab} \\right) \\\\\n&= \\left( \\frac{2ab - a^2 - b^2 + c^2}{2ab} \\right) \\left( \\frac{2ab + a^2 + b^2 - c^2}{2ab} \\right) \\\\\n&= \\left( \\frac{c^2 - (a - b)^2}{2ab} \\right) \\left( \\frac{(a + b)^2 - c^2}{2ab} \\right) \\\\\n&= \\frac{(c - (a - b))(c + (a - b)((a + b) - c)(a + b + c))}{4a^2b^2} \\\\\n&= \\frac{(b + c - a)(c + a - b)(a + b - c)(a + b + c)}{4a^2b^2}\n\\end{aligned}\n$$\nwhence\n$$\n\\frac{1 - z^2}{c^2} = \\frac{4s(s - a)(s - b)(s - c)}{a^2 b^2 c^2},\n$$\nwhere $2s = a + b + c$. Since the expression on the right side of this equation is symmetric in $a$, $b$, and $c$, we may conclude as well that\n$$\n\\frac{1-x^2}{a^2} = \\frac{1-y^2}{b^2} = \\frac{(b+c-a)(c+a-b)(a+b-c)}{4a^2b^2c^2},\n$$\nwhence the result.\n\nAlternatively, the second part can be shown without the use of the first part as follows. This solution was found by Antonia Huang.\nUse the first equation to eliminate $a$ from the second and third equation and then multiply the second equation by $b$ and the third by $c$. The resulting equations are\n$$\n\\begin{aligned}\nb^2 &= bcx + b^2z^2 + bcyz \\\\\nc^2 &= bcyz + c^2z^2 + bcx.\n\\end{aligned}\n$$\nSubtracting these yields $b^2 - c^2 = b^2z^2 - c^2y^2$, i.e. $c^2(1 - y^2) = b^2(1 - z^2)$.\nAs $abc \\neq 0$, we get\n$$\n\\frac{1 - y^2}{b^2} = \\frac{1 - z^2}{c^2}.\n$$\nBy cyclic symmetry we also obtain equality of this with $(1 - x^2)/a^2$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33192, "subject": "Mathematics (Multi-modal)", "question": "Given a set of 2016 distinct points in the plane, show that we can choose a \"circle of evil\" $C$ in the plane such that exactly 666 of these points lie strictly inside $C$, and none of them lies on $C$.", "options": [], "answer": "Detailed solution", "solution": "Let $S$ denote the set of the 2016 given points. Consider the collection of perpendicular bisectors of pairs of distinct points in $S$. This is a finite collection of lines, so we can pick a point $P$ not on any one of these lines, and also not in $S$.\n\nFor $r \\ge 0$, let $N(r)$ be the number of points in $S$ whose distance from $P$ is at most $r$. By construction, the circle $C(r)$ of radius $r$ about $P$ contains at most one point of $S$ for each $r$, so $N(r)$ increases from 0 for small $r$ to 2016 for very big $r$, and each increase occurs as a jump of 1. Thus, there are numbers\n$$\n0 = r_0 < r_1 < r_2 < \\dots < r_{2016} < r_{2017} = \\infty\n$$\nsuch that if $0 \\le n \\le 2016$, then $N(r) = n$ exactly when $r_n \\le r < r_{n+1}$. The circle $C(r)$ has the desired properties if we pick $r_{666} < r < r_{667}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33193, "subject": "Mathematics (Multi-modal)", "question": "The sides of triangle $ABC$ have lengths $a, b, c$ which satisfy\n$$\n\\frac{a^6}{2b^3 + 2c^3} + \\frac{b^6 + 2b^3c^3 + c^6}{2a^3} + \\frac{2a^3b^3 + 2a^3c^3}{a^3 + b^3 + c^3} = a^3 + b^3 + c^3.\n$$\nDetermine if one of the internal angles of triangle $ABC$ can be a right angle or an obtuse angle, or if all internal angles must be acute.", "options": [], "answer": "Detailed solution", "solution": "If we use the abbreviation $u = a^3$ and $v = b^3 + c^3$, the given equation can be written as\n$$\n\\frac{u^2}{2v} + \\frac{v^2}{2u} + \\frac{2uv}{u+v} = u+v.\n$$\nThis is the same as\n$$\n\\frac{u^3 + v^3}{2uv} = u + v - \\frac{2uv}{u+v} = \\frac{u^2 + v^2}{u+v},\n$$\nor $(u+v)(u^3+v^3) = 2uv(u^2+v^2)$, which simplifies to $u^4+v^4 = u^3v + uv^3$.\nThis is easily be seen to be the same as $(u-v)(u^3-v^3) = 0$, which can be written as $(u-v)^2(u^2+uv+v^2) = 0$. Because $u > 0$ and $v > 0$, this equation is only possible if $u = v$. This shows that the original equation is equivalent to $a^3 = b^3 + c^3$. In particular, $b < a$ and $c < a$ and so $b/a < 1$ and $c/a < 1$ and the angle $\\angle A$, which is opposite $a$, is the largest internal angle of $\\triangle ABC$. We now obtain\n$$\n\\left(\\frac{b}{a}\\right)^2 + \\left(\\frac{c}{a}\\right)^2 > \\left(\\frac{b}{a}\\right)^3 + \\left(\\frac{c}{a}\\right)^3 = 1,\n$$\nhence $b^2+c^2 > a^2$. The Cosine Rule $2bc \\cos \\angle A = b^2+c^2-a^2 > 0$ shows that $\\cos \\angle A > 0$ and $\\angle A$ must be acute. Therefore, all angles in triangle $ABC$ are acute.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33194, "subject": "Mathematics (Multi-modal)", "question": "Let $ABC$ be a triangle with $|AC| \\neq |BC|$. Let $P$ and $Q$ be the intersection points of the line $AB$ with the internal and external angle bisectors at $C$, so that $P$ is between $A$ and $B$. Prove that if $M$ is any point on the circle with diameter $PQ$, then $\\angle AMP = \\angle BMP$.", "options": [], "answer": "Detailed solution", "solution": "The internal and external angle bisectors divide the segment $AB$ internally and externally in the same ratio $|AC| : |BC|$. This can be seen, for example, with the aid of the Sine Rule, applied to the triangles $ACP$ and $BCP$ for the internal bisector and to the triangles $ACQ$ and $BCQ$ for the external angle bisector. In particular, we obtain\n$$\n\\frac{|AP|}{|BP|} = \\frac{|AQ|}{|BQ|}.\n$$\n![](attached_image_1.png)\n\nLet $X$ and $Y$ be points on the line $AM$ such that $BX \\parallel MQ$ and $BY \\parallel MP$.\n![](attached_image_2.png)\nAs $BX \\parallel MQ$, we have $|AM|/|XM| = |AQ|/|BQ|$ and as $BY \\parallel MP$, we have $|AM|/|YM| = |AP|/|BP|$. This implies $|AM|/|XM| = |AM|/|YM|$, hence $|XM| = |YM|$.\nBecause $M$ is on the circle with diameter $PQ$, $\\angle PMQ = 90^\\circ$ and so also $\\angle YBX = 90^\\circ$. Therefore, $B$ is on the circle with diameter $XY$. As $M$ was shown to be the midpoint of $XY$, we obtain $MB = XM = YM$. This implies now\n$$\n\\frac{|AP|}{|BP|} = \\frac{|AM|}{|BM|}\n$$\nIf $P'$ is the intersection point of the angle bisector of $\\angle AMB$ and $AB$, then\n$$\n\\frac{|AP'|}{|BP'|} = \\frac{|AM|}{|BM|} = \\frac{|AP|}{|BP|}\n$$\nThis implies that $P = P'$, and so $MP$ is the angle bisector of $\\angle AMB$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33195, "subject": "Mathematics (Multi-modal)", "question": "Show that the number\n$$\n\\left( \\frac{251}{\\frac{1}{\\sqrt{252-5\\sqrt{3}}}} - \\frac{10\\sqrt{3}}{63} \\right) + \\frac{1}{\\frac{251}{\\sqrt{252+5\\sqrt{3}}}} + \\frac{10\\sqrt{3}}{63}\n$$\nis an integer and find its value.", "options": [], "answer": "2016", "solution": "Let $a^3 = 252$ and $b^3 = 250$, then $ab = \\sqrt[3]{252^3/250} = 10\\sqrt[3]{63}$. Using that $251 = \\frac{a^3+b^3}{2}$ and $1 = \\frac{a^3-b^3}{2}$, the given expression inside the bracket becomes\n\n$$\n\\frac{\\frac{a^3+b^3}{2}}{\\frac{a^3-b^3}{2} - ab} + \\frac{\\frac{a^3-b^3}{2}}{\\frac{a^3+b^3}{2} + ab}\n$$\n\nThe second term is obtained from the first by replacing $b$ with $-b$. Therefore, we consider only one of the two terms. The first term is equal to\n\n$$\n\\frac{a^3 + b^3}{\\frac{a^3 - b^3}{a-b} - 2ab} = \\frac{a^3 + b^3}{a^2 + ab + b^2 - 2ab} = \\frac{a^3 + b^3}{a^2 - ab + b^2} = a + b.\n$$\n\nHence, the second term is equal to $a-b$ and the given number is equal to\n\n$$\n((a+b) + (a-b))^3 = (2a)^3 = 8 \\cdot 252 = 2016.\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33196, "subject": "Mathematics (Multi-modal)", "question": "Ben considers year $N$ lucky for a person if $N$ is divisible by his/her age (as a whole number of years) on 1st January of that year, e.g. $2016$ is lucky for someone whose age is $2$ or $3$ or $4$, but not for someone whose age is $5$. Ben was surprised to discover that both $2015$ and $2016$ were lucky for himself and they were also lucky for his daughter Amy (who was born prior to $2015$). Even though Ben's last lucky year before $2015$ was more than a decade earlier, he remembers that it had also been a lucky year for his father, Chris!\nWhat is the least age difference between Amy and Chris, given that Chris is not yet $100$ years old? Your answer should be in years and days e.g. \"30 years and 364 days\". You may assume that parents are always at least fifteen years older than their children. (Note that $2015 = 5 \\cdot 13 \\cdot 31$ and $2016 = 2^5 \\cdot 3^2 \\cdot 7$.)", "options": [], "answer": "41 years and 1 day", "solution": "Let $A$, $B$, and $C$ be the ages of Amy, Ben, and Chris as whole numbers on 1st January $2016$, so that\n$$\n30 \\le B + 15 \\le C \\le 99, \\quad 15 \\le A + 15 \\le B \\le 89, \\quad 0 \\le A \\le 79.\n$$\nSince $B$ is a factor of $2016$, it must equal one of the following numbers: $16$, $18$, $21$, $24$, $28$, $32$, $36$, $42$, $48$, $56$, $63$, $72$, $84$. Since $B-1$ is also a factor of $2015$, we deduce that $B=32$.\nWhen was the previous lucky year for Ben? Certainly, we need to go no further back than $2016 - 16$, since that is divisible by $32 - 16$. We also need to check that $2000+n$ is not divisible by $16+n$ for $1 \\le n \\le 4$: $2001$ is not divisible by $17$, $2002$ is not divisible by $18$ (or even by $3$), $2003$ is not divisible by $19$, and $2004$ is not divisible by $20$ (or even by $5$). $5 \\le n \\le 14$ can also be ruled out, but we do not need to do this because of the \"more than a decade earlier\" phrase in the problem.\nThus, Ben's last lucky year was indeed $2000$, and $C-16$ is a factor of $2000 = 2^4 \\cdot 5^3$. Since also\n$$\n(32+15)-16=31 \\le C-16 \\le 83=99-16,\n$$\n$C-16$ must equal one of $40$, $50$, and $80$. We want to minimise the age between Amy and Chris, so we must pick the least of these, i.e. $40$. Therefore, $C=56$. Meanwhile, we want to pick $A$ as large as possible so that $2016$ is divisible by $A$, and $2015$ is divisible by $A-1$, and $A \\le 17 = 32-15$. The $2016$ constraint means that $A$ is one of $1$, $2$, $4$, $8$, $16$, $3$, $6$, $12$, $9$, $7$, $14$. Examining these, beginning with the largest and continuing until we find $A$ so that $2015$ is divisible by $A-1$, we see that $A$ must equal $14$.\nThus, $C-A = 56-14=42$. To minimise the age difference, we assume that Chris's birthday is on $1$ January, and Amy's is on $2$ January. The difference in their ages is then $41$ years and $1$ day.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33197, "subject": "Mathematics (Multi-modal)", "question": "Let $AE$ be a diameter of the circumcircle of triangle $ABC$. Join $E$ to the orthocentre, $H$, of $\\triangle ABC$ and extend $EH$ to meet the circle again at $D$. Prove that the nine point circle of $\\triangle ABC$ passes through the midpoint of $HD$.", "options": [], "answer": "Detailed solution", "solution": "Let $F$ be the midpoint of $DH$, $K$ be the midpoint of $AH$, $L$ on $BC$ the foot of the altitude from $A$, and let $M$ be the intersection point of $BC$ and $DE$.\n\n![](attached_image_1.png)\n\nBecause $AE$ is a diameter of the circumcircle, $\\angle ACE = \\angle ABE = 90^\\circ$, so $CE$ is perpendicular to $AC$ and $BE$ is perpendicular to $AB$. Because $BH$ is on the altitude which is perpendicular to $AC$, we get $BH \\parallel CE$. Similarly, $CH$ is perpendicular to $AB$ and so $CH \\parallel BE$. This shows that $CHBE$ is a parallelogram and $M$ is the intersection point of its diagonals. Hence $M$ is the midpoint of $BC$ and thus is on the nine point circle.\n\nBecause $AE$ is a diameter of the circle, $\\angle ADE = 90^\\circ$. As $F, K$ are the midpoints of $DH$ and $AH$, respectively, we obtain $\\angle KFM = 90^\\circ$. Because $\\angle KLM = 90^\\circ$ as well, the quadrilateral $KFLM$ is cyclic.\n\nAs $K, L$ and $M$ are on the nine point circle, $F$ is on that circle as well.\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33198, "subject": "Mathematics (Multi-modal)", "question": "Prove that the sequence\n$$\nx_n = \\sqrt[n]{9^{n-1}(n+9)}, \\quad n = 2, 3, 4, \\dots\n$$\nis strictly decreasing, and bounded below by $9$.", "options": [], "answer": "Detailed solution", "solution": "To prove\n$$\nx_{n+1} = \\sqrt[n+1]{9^n(n+10)} < \\sqrt[n]{9^{n-1}(n+9)} = x_n \\quad \\text{for all } n \\ge 2\n$$\nis equivalent to showing\n$$\n(9^n(n+10))^n < (9^{n-1}(n+9))^{n+1} \\quad \\text{for } n=2,3,\\dots\n$$\nSimplifying this, the claim is that\n$$\n9(n + 10)^n < (n + 9)^{n+1}, \\quad n = 2, 3, \\dots\n$$\nBut, by the AM-GM inequality,\n$$\n\\sqrt[n+1]{9(n+10)^n} \\le \\frac{9+n(n+10)}{n+1} = n+9\n$$\nHence, $9(n+10)^n \\le (n+9)^{n+1}$ for all $n \\ge 2$, and so, in the first place, the sequence is decreasing. Moreover, since $9 \\ne n+10$ for any $n \\ge 0$, the AM-GM inequality is strict. Hence, the sequence is strictly decreasing.\n\nNext,\n$$\nx_n = \\sqrt[n]{9^{n-1}(n+9)} > 9, \\quad n = 2, 3, \\dots\n$$\nso $x_n$ is bounded below by $9$. The result follows.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33199, "subject": "Mathematics (Multi-modal)", "question": "Do there exist four polynomials $P_1(x), P_2(x), P_3(x), P_4(x)$ with real coefficients, such that the sum of any three of them always has a real root, but the sum of any two of them has no real root?", "options": [], "answer": "No; such four polynomials do not exist.", "solution": "There do not exist four such polynomials. We show this as follows. Suppose that there do exist four such polynomials. If a polynomial has no real roots, it is either positive for all real $x$, or else it is negative for all real $x$. Consider the complete graph with the four polynomials as vertices.\n\n![](attached_image_1.png)\n\nColour the edge $P_iP_j$ white if $P_i(x) + P_j(x) > 0$ for all real $x$, and black if $P_i(x) + P_j(x) < 0$ for all real $x$. We cannot have a triangle $P_iP_jP_k$ of the same colour, because, if we did, the polynomial $P_i(x) + P_j(x) + P_k(x)$ which is equal to a half of $(P_i(x) + P_j(x)) + (P_j(x) + P_k(x)) + (P_k(x) + P_i(x))$ has a constant sign for all real $x$, and therefore this sum of three polynomials would not have a real root.\n\nBy the Pigeonhole Principle, at least three of the six edges must have the same colour – let's say this colour is black. If three black edges have a common vertex, then in order to avoid forming a black triangle, the other three edges would need to be white, thus forming a white triangle – a contradiction.\n\nSo, without loss of generality, we can consider the case where $P_1P_2, P_2P_3$ and $P_3P_4$ are black. Then $P_1P_3$ and $P_2P_4$ must be white and therefore we have $(P_1(x) + P_3(x)) + (P_2(x) + P_4(x)) > 0$ for all real $x$. But since $P_1P_2$ and $P_3P_4$ are black, we have $(P_1(x) + P_2(x)) + (P_3(x) + P_4(x)) < 0$ for all real $x$. The case where $P_1P_2, P_2P_3$ and $P_3P_4$ are white yields a similar contradiction.\n\nWe conclude that there do not exist four such polynomials.\n\n![](attached_image_1.png)", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 33200, "subject": "Mathematics (Multi-modal)", "question": "The sequence $(a_n)$ is defined as follows: $a_0 = 1$, $a_1 = 1$, and\n$$\na_{n+1} = 2(a_n - a_{n-1}),\n$$\nfor all positive integers $n$. Determine, with proof, the remainder of $a_{2016}$ on division by $2017$.", "options": [], "answer": "1", "solution": "Since $(a_n)$ satisfies the linear recurrence $a_{n+1} = 2(a_n - a_{n-1})$, an explicit formula for $a_n$ can be determined in the usual manner. Formally replacing $a_k$ in the recurrence by $x^k$, we obtain $x^{n+1} = 2(x^n - x^{n-1})$ and solving for nonzero $x$, we get $x^2 = 2(x-1)$ and $x = 1 \\pm i$, where $i = \\sqrt{-1}$.\nLet $\\alpha = 1+i$, $\\beta = 1-i$. Then $a_n = A\\alpha^n + B\\beta^n$, where $A$ and $B$ are constants to be determined from the initial conditions $a_0 = 1$, $a_1 = 1$. Thus\n$$\nA+B=1, \\quad A\\alpha+B\\beta=1,\n$$\nand so $A = B = 1/2$. Therefore $a_n = \\frac{1}{2}((1+i)^n + (1-i)^n)$, for all positive integers $n$.\n\nNote that $(1+i)^2 = 2i$, $(1+i)^4 = -4$ and $(1+i)^8 = 16$, and similarly $(1-i)^8 = 16$. Now, $2016 = 2^5 \\times 3^2 \\times 7$, so\n$$\n(1 \\pm i)^{2016} = (1 \\pm i)^{8 \\times 4 \\times 63} = 2^{4 \\times 4 \\times 63} = 2^{1008}.\n$$\nHence\n$$\na_{2016} = \\frac{1}{2}(2^{1008} + 2^{1008}) = 2^{1008}.\n$$\nNext, we show that $2017$ is a prime number. Since $45^2 = 2025 > 2017$ and so $\\sqrt{2045} < 45$, if $2017$ is not prime, it must have a prime divisor less than $45$, i.e. one of the following: $2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43$. As already noted, $2016$ is divisible by $2, 3$ and $7$, so these primes can be eliminated from the list. Also, it is simple to check that $2015 = 5 \\times 13 \\times 31$, so $5, 13$ and $31$ can also be eliminated.\nThe remaining possibilities are: $11, 17, 19, 23, 29, 37, 41, 43$, and one checks by long division that none of these divide $2017$. Hence $2017$ is prime. Since $p=2017$ is congruent to $1$ (mod $4$), there is an integer $y$ such that $p$ divides $1+y^2$. For example, using Wilson's Theorem combined with $((p-1)! \\equiv ((\\frac{p-1}{2})!)^2 \\pmod{p})$, we see that we can take $y = (\\frac{p-1}{2})!$. Consider $(1+y)^2 = 1+2y+y^2 \\equiv 2y \\pmod{p}$. By Fermat's little theorem,\n$$\n(1+y)^{2016} \\equiv (1+y)^{p-1} \\equiv 1 \\pmod{p}, \\quad \\text{so} \\\\ (2y)^{1008} \\equiv 1 \\pmod{p}.\n$$\nSince $y^4 \\equiv 1 \\pmod{p}$ and $4$ divides $1008$, it follows that $2^{1008} \\equiv 1 \\pmod{p}$. This shows that the remainder of $a_{2016}$ on division by $2017$ is $1$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33201, "subject": "Mathematics (Multi-modal)", "question": "For each positive integer $n$, let\n$$\nC_n = \\frac{1}{n+1} \\binom{2n}{n},\n$$\nwhere, as usual,\n$$\n\\binom{2n}{n} = \\frac{(2n)!}{(n!)^2}.\n$$\n(i) Prove that $C_n$ is an integer for every positive integer $n$.\n(ii) Prove that $C_n$ is not a prime number if $n > 3$.", "options": [], "answer": "Detailed solution", "solution": "Observe first that\n$$\n\\binom{2n+1}{n} = \\frac{(2n+1)((2n)!)}{n!(n+1)!} = (2n+1)C_n,\n$$\nso\n$$\nC_n = (2n + 2 - (2n + 1))C_n = 2 \\binom{2n}{n} - \\binom{2n+1}{n},\n$$\nso $C_n$ is an integer, as all binomial coefficients $\\binom{m}{k}$ with positive integers $m, k$ with $k \\le m$ are integers. This establishes (i).\n\nTo prove (ii), note that\n$$\nC_{n+1} = \\frac{1}{n+2} \\binom{2n+2}{n+1} = \\frac{(2n+2)(2n+1)((2n)!)}{(n+2) \\cdot ((n+1)!)^2} = \\frac{2(2n+1)}{n+2} C_n,\n$$\nhence\n$$\n(n + 2)C_{n+1} = 2(2n + 1)C_n. \\qquad (1)\n$$\nBy definition\n$$\n\\begin{aligned}\nC_n &= \\frac{1}{n+1} \\binom{2n}{n} = \\frac{2n(2n-1)\\cdots(n+1)}{(n+1)n(n-1)\\cdots2 \\cdot 1} \\\\\n&= \\frac{(2n-1)(2n-2)\\cdots(n+3)(n+2)}{(n-1)\\cdots3}\n\\end{aligned}\n$$\n\nThus, for $n > 3$,\n$$ \\frac{n+2}{C_n} = \\frac{(n-1)(n-2)\\cdots3}{(2n-1)(2n-2)\\cdots(n+3)} < 1, $$\nsince each factor $h$ in the numerator is matched by a factor $h+n$ in the denominator. Thus $C_n$ does not divide $n+2$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33202, "subject": "Mathematics (Multi-modal)", "question": "Let $a_1, a_2, \\dots, a_m$ be positive integers, none of which is equal to $10$, such that $a_1 + a_2 + \\dots + a_m = 10m$. Prove that\n$$\n(a_1 a_2 a_3 \\cdots a_m)^{1/m} \\le 3\\sqrt{11}.\n$$", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33203, "subject": "Mathematics (Multi-modal)", "question": "Suppose $a$, $b$, $c$ are the side lengths of a triangle $ABC$. Prove that the system of equations\n$$\n\\begin{aligned}\nby + cz + aw &= 1, \\\\\nbx + az + cw &= 0, \\\\\ncx + ay + bw &= 0, \\\\\nax + cy + bz &= 0,\n\\end{aligned}\n$$\nhas a unique solution.", "options": [], "answer": "Detailed solution", "solution": "$$\n\\begin{align*}\n-abx + bcy + (c^2 - a^2)z &= c, \\\\\n-acx + (b^2 - a^2)y + bcz &= b, \\\\\nax + cy + bz &= 0.\n\\end{align*}\n$$\nNext, eliminate $z$ from these by first subtracting $c^2-a^2$ times the second from $bc$ times the first, and then subtracting $c$ times the third from the second.\nThese operations yield the following pair of equations for $x$, $y$:\n$$\n\\begin{align*}\nca(c^2 - a^2 - b^2)x + (b^2c^2 - (c^2 - a^2)(b^2 - a^2))y &= ba^2, \\\\\n-2acx + (b^2 - a^2 - c^2)y &= b.\n\\end{align*}\n$$\nEquivalently,\n$$\n\\begin{align*}\na(b^2 + c^2 - a^2)y - c(a^2 + b^2 - c^2)x &= ab, \\\\\n(c^2 + a^2 - b^2)y + 2acx &= -b,\n\\end{align*}\n$$\nwhich becomes, using the cosine rule,\n$$\ny \\cos A - x \\cos C = \\frac{a}{2ac} \\quad \\text{and} \\quad y \\cos B + x = -\\frac{b}{2ac}\n$$\nNow eliminate $y$ from these by subtracting $\\cos A$ times the second from $\\cos B$\ntimes the first, thereby giving an equation for $x$:\n$$\n-(\\cos B \\cos C + \\cos A)x = \\frac{a \\cos B + b \\cos A}{2ac} = \\frac{1}{2a}\n$$\nwhere we have used that $c = a \\cos B + b \\cos A$. But\n$$\n\\cos A = \\cos(\\pi - B - C) = -\\cos(B + C) = -\\cos B \\cos C + \\sin B \\sin C\n$$\nand $\\sin B \\sin C \\neq 0$. Thus, we can solve the previous equation for $x$:\n$$\nx = - \\frac{abc}{2(ab \\sin C)(ac \\sin B)} = - \\frac{abc}{8(ABC)^2}\n$$\nwhere $(ABC)$ stands for the area of $ABC$. In the same way it can be shown\nthat\n$$\ny = \\frac{abc \\cos B}{8(ABC)^2}, \\quad z = \\frac{abc \\cos C}{8(ABC)^2}, \\quad \\text{and} \\quad w = \\frac{abc \\cos A}{8(ABC)^2}.\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33204, "subject": "Mathematics (Multi-modal)", "question": "A complex number $z$ is called a root of unity if $z^k = 1$, for some positive integer $k$.\nGiven a positive integer $n$, let $S_n$ be the set of all roots of unity of the form\n$$\n\\frac{a+bi}{\\sqrt{n}}\n$$\nwhere $i = \\sqrt{-1}$ and $a$ and $b$ are positive integers.\n(i) Prove that $S_n$ has less than $\\sqrt{n}$ distinct elements.\n(ii) Prove that $S_5$ is empty.", "options": [], "answer": "Detailed solution", "solution": "(i) For a root of unity $z = p + qi$, with $p$ and $q$ real and $z^k = 1$, we have $|z|^k = |z^k| = 1$, i.e. $p^2+q^2=1$. So, if $(a+bi)/\\sqrt{n} \\in S_n$, for positive integers $a$ and $b$, we have $a^2+b^2=n$.\nSince $a$ and $b$ are positive integers, $a < \\sqrt{n}$ and, once $a$ is known, $b$ is also known, so $S_n$ has fewer than $\\sqrt{n}$ distinct elements, as asserted.\n\n(ii) Suppose to the contrary that $z = (a+bi)/\\sqrt{5}$ is a root of unity, where $a$ and $b$ are positive integers. Then $a^2+b^2=5$ and we have two possibilities: either $a=1$ and $b=2$ or $a=2$ and $b=1$.\nFirst note that $2+i = i(1+2i)$ and that $z$ is a root of unity iff $\\bar{z}$ is a root of unity. Hence it is sufficient to consider the case\n$$\nz = \\frac{1+2i}{\\sqrt{5}} = \\frac{1}{\\sqrt{5}} + \\frac{2}{\\sqrt{5}}i.\n$$\nSuppose $z$ is a root of unity, say $z^k = 1$, where $k$ is a positive integer. We can write $z = \\cos \\theta + i \\sin \\theta$, and obtain $\\cos(k\\theta) = 1$, $\\sin(k\\theta) = 0$, so $k\\theta = 2m\\pi$, for some integer $m$, and if $l$ is any integer, then $\\cos(l\\theta) = \\cos(h\\pi/k)$, for some non-negative integer $h < k$.\nIn particular, there are only finitely many possible values for $\\cos(l\\theta)$ as $l$ runs through the set of integers.\nWe claim:\n$$\n\\cos(2^r \\theta) = \\frac{u_r}{5^{2r-1}} \\quad \\text{for } r = 1, 2, 3, \\dots\n$$\nwhere $u_r$ is an integer not divisible by $5$.\nWe prove the claim by induction on $r$. When $r=1$, $\\cos(2^r\\theta) = \\cos(2\\theta) = 2\\cos^2\\theta - 1 = 2(\\frac{1}{\\sqrt{5}})^2 - 1 = -\\frac{3}{5}$, and the claim holds.\n$$\n2 \\cos^2 \\theta - 1 = 2 \\left( \\frac{1}{\\sqrt{5}} \\right)^2 - 1 = -\\frac{3}{5}\n$$\nAssume that $r \\ge 1$ is an integer and that the claim holds for $r$. This means that $\\cos(2^r\\theta) = \\frac{u_r}{5^{2r-1}}$, with $u_r$ not divisible by $5$, and thus\n$$\n\\cos(2^{r+1}\\theta) = 2\\cos^2(2^r\\theta) - 1 = \\frac{2u_r^2}{(5^{2r-1})^2} - 1 = \\frac{2u_r^2 - 5^{2r}}{5^{2r}},\n$$\nand $u_{r+1} = 2u_r^2 - 5^{2r}$ is an integer not divisible by $5$. Thus the claim holds for $r+1$. Hence the claim is proved for all integers $r \\ge 1$.\nIt follows that all the values of $\\cos(2^r\\theta)$, $r = 1, 2, 3, \\dots$ are distinct, since, when written as a fraction in reduced form, all the denominators are distinct. But this contradicts what we have shown above, namely that there are only finitely many possible values for $\\cos(l\\theta)$ as $l$ runs through the set of integers. Hence $S_5$ is empty, as required.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33205, "subject": "Mathematics (Multi-modal)", "question": "Aoife and Zoe play a game. On each of Aoife's three turns, Aoife replaces one of the asterisks in the expression $**********$ with one of the digits $1$, $2$, $3$, $4$, $5$, $6$, $7$, $8$, $9$ that has not yet been used. At Zoe's turn she can replace two of the asterisks with two different digits not yet selected. Aoife starts and the players take alternate turns. Zoe wins if the final number is a multiple of $27$. Does Zoe have a winning strategy?", "options": [], "answer": "Yes", "solution": "Divide the digits into three groups $\\{1, 8, 9\\}$, $\\{2, 3, 4\\}$ and $\\{5, 6, 7\\}$ and note that all the numbers\n\n$189$ $918$ $891$\n$243$ $324$ $432$\n$567$ $756$ $675$\n\nare divisible by $27$. Imagine the $9$ asterisks divided into three groups of three consecutive asterisks. If Aoife plays in one of the groups Zoe responds by placing the other two digits from the group containing Aoife's choice in the remaining two places in the group of three asterisks that Aoife has chosen.\n\nFrom the array of numbers shown above we see that she can always do this so that the three digit number formed is a multiple of $27$. After three moves by each player all the asterisks have been replaced and the final number will be divisible by $27$. Thus Zoe has a winning strategy.", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 33206, "subject": "Mathematics (Multi-modal)", "question": "Determine the equations of the common tangents to the circles $x^2 + y^2 = 2r$ and $x^2 + y^2 = 2y$.\n\n![](attached_image_1.png)", "options": [], "answer": "y = -x + 1 + √2 and y = -x + 1 - √2", "solution": "The line $y = mx + c$ is a tangent to $x^2 + y^2 = 2x$ iff its distance from the centre of the circle is equal to the radius, namely, iff\n$$\n\\frac{|m + c|}{\\sqrt{1 + m^2}} = 1 \\iff |m + c| = \\sqrt{1 + m^2}.\n$$\nSimilarly, the same line is a tangent to $x^2 + y^2 = 2y$ iff $|1 - c| = \\sqrt{1 + m^2}$. So, we have two equations for $m$ and $c$:\n$$\n|m + c| = \\sqrt{1 + m^2} = |1 - c| \\iff 2mc + c^2 = 1, \\quad m^2 = c^2 - 2c.\n$$\nHence, $m = -1$ and $c = 1 \\pm \\sqrt{2}$.\n\nAlternatively, one may write the equations of the circles in the form\n$$\n\\begin{aligned}\n(x - 1)^2 + y^2 &= 1 \\\\\nx^2 + (y - 1)^2 &= 1\n\\end{aligned}\n$$\nto see that both circles have radius $1$ and their centres are at $(1, 0)$ and $(0, 1)$. The tangents are therefore parallel to the line through these two points and so have slope $m = -1$. Substituting the equation of such a tangent, $y = -x + c$, in one of the given equations, we obtain $2x^2 - 2(c + 1)x + c^2 = 0$. This equation has a double root iff $(c + 1)^2 - 2c^2 = 0$, hence $c = 1 \\pm \\sqrt{2}$ for the tangents.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33207, "subject": "Mathematics (Multi-modal)", "question": "A point $A$ moves on the circumference of a circle centre $O$ and radius $r$. Let $BC$ be a fixed line segment in the plane. Prove that the locus of the centroid of $\\triangle ABC$ is a circle whose radius is $r/3$ and whose centre is the centroid of $\\triangle OBC$.", "options": [], "answer": "Detailed solution", "solution": "Let $D$ be the midpoint of $BC$ and $M$ the centroid of $\\triangle OBC$. For any given point $A$ on the circle centre $O$, radius $r$, let $G$ be the centroid of the triangle $ABC$.\n\n![](attached_image_1.png)\n\nWe know that $|OD| = 3|M\\bar{D}|$ and $|AD| = 3|G\\bar{D}|$, hence $AO$ is parallel to $GM$. The intercept theorem implies then that $|AO| = 3|GM|$, that is $|GM| = r/3$ as required.\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33208, "subject": "Mathematics (Multi-modal)", "question": "Given a positive integer $m$, a sequence of real numbers $a = (a_1, a_2, a_3, ...)$ is called $m$-powerful if it satisfies\n$$\n\\left( \\sum_{k=1}^{n} a_k \\right)^m = \\sum_{k=1}^{n} a_k^m \\quad \\text{for all positive integers } n.\n$$\n\na.\nShow that a sequence is 30-powerful if and only if at most one of its terms is non-zero.\n\nb.\nFind a sequence none of whose terms is zero but which is 2017-powerful.", "options": [], "answer": "a) Exactly the sequences with at most one nonzero term. b) For example, a_n = (−1)^{n−1} (more generally, a_n = c·(−1)^{n−1} with c ≠ 0).", "solution": "If at most one term in a sequence $a$ is non-zero, it is immediate that it is $m$-powerful for all $m \\in \\mathbb{N}$. We will see that there are no other 30-powerful sequences (or indeed, $m$-powerful for any even $m$), but that there are many other sequences that are $m$-powerful for all odd $m$.\n\nWe begin our analysis with a simple lemma.\n\nLemma. For $m \\in \\mathbb{N}$, let $P_m(x, y) = (x+y)^m - x^m - y^m$, $x, y \\in \\mathbb{R}$. Then $P_m(x, y) = 0$ whenever $xy = 0$. Moreover, $P_m$ has no other roots if $m$ is even, but $P_m(x, -x) = 0$ if $m$ is odd.\n\nProof. Let $p(t) = (1+t)^m - 1 - t^m$, $t \\in \\mathbb{R}$. By expansion of $(1+t)^m$, we see that $p$ is a polynomial with non-negative coefficients, and so $p(t) > 0$ for $t > 0$. Suppose additionally that $m$ is even. If $-1 \\le t < 0$, then $(1+t)^m - 1 \\le 0$, so $p(t) \\le -t^m < 0$. If $t < -1$, then $0 < (1+t)^m < t^m$, so $p(t) < -1 < 0$. We conclude that $0$ is the only root of $p$ when $m$ is even. If $xy \\ne 0$, then $P_m(x, y) = x^m p(t)$, where $p$ is as above, and $t = y/x \\ne 0$. It follows that $P_m(x, y) \\ne 0$ if $m$ is even and $xy \\ne 0$:\n\nThe statements that $P_m(x, y) = 0$ when $xy = 0$ (regardless of the parity of $m$) and $P_m(x, -x) = 0$ when $m$ is odd, both follow immediately. $\\square$\n\nFix an arbitrary sequence $a = (a_k)$. For $m, n \\in \\mathbb{N}$, let\n$$\nS(m, n) = \\left( \\sum_{k=1}^{n} a_k \\right)^m - \\sum_{k=1}^{n} a_k^m,\n$$\nand let $D(m, n) = S(m, n+1) - S(m, n)$. The condition \"a is m-powerful\"\nsays that $S(m, n) = 0$, $n \\in \\mathbb{N}$, and so we also have $D(m, n) = 0$.\n\nDefine $x_n = a_{n+1}$ and $y_n = \\sum_{k=1}^{n} a_k$. The equation $S(m, n) = 0$ can be written as\n$$\ny_n^m = \\sum_{k=1}^{n} a_k^m,\n$$\nso if this equation holds, then the equation $D(m, n) = 0$ can be written as\n$$\n(x_n + y_n)^m - x_n^m - y_n^m = 0.\n$$\n\nSuppose now that $m$ is even and $a$ is $m$-powerful. By the lemma, we conclude that $x_n y_n = 0$ for all $n \\in \\mathbb{N}$. We will use these last equations to prove by induction on $i \\in \\mathbb{N}$, that at most one of the terms $a_1, ..., a_i$ is non-zero; we call this property $A_i$.\n\n$A_1$ is trivially true, so suppose that $A_i$ is true for a specific $i = n \\in \\mathbb{N}$. If $a_1, \\dots, a_n$ are all zero, then $A_{n+1}$ follows immediately, so we may assume that exactly one of these terms is non-zero. But now $y_n \\ne 0$, so the equation $x_n y_n = 0$ implies that $x_n = a_{n+1} = 0$, and we again deduce $A_{n+1}$. This finishes the proof that if $m$ is even, then the $m$-powerful sequences are those with at most one non-zero term. Part (a) follows.\n\nThe analysis is similar for $m$ odd, but now $P_m$ has other roots in the lemma. By considering these roots, our analysis readily leads us to see that $a = ((-1)^n)_{n=1}^\\infty$ is $m$-powerful for every $c \\in \\mathbb{R}$. Taking any non-zero $c$, we get an example with the properties required in (b).", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33209, "subject": "Mathematics (Multi-modal)", "question": "The four digit number $ABCD$ has the property that\n$$\nABCD = A \\times BCD + ABC \\times D.\n$$\nWhat is the smallest possible value of $ABCD$?", "options": [], "answer": "1258", "solution": "To find the smallest number, we try $A = 1$. The given equation becomes $1BCD = BCD + 1BC \\times D$, hence $1000 = 1BC \\times D$. This means that $D$ is a divisor of $1000 = 2^3 \\times 5^3$ and so $D \\in \\{1, 2, 4, 5, 8\\}$, because $D$ is a digit. On the other hand, $1BC < 200$ implies that $1000 < 200 \\times D$, and so $D > 5$. Therefore we need to have $D = 8$ to find a solution. Because $1000/8 = 125$ we now see that there is a solution with $B = 2$ and $C = 5$. Hence the smallest possible value is $1258$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33210, "subject": "Mathematics (Multi-modal)", "question": "Prove for all complex numbers $z$ that\n$$\n|z|^2 + 2|z - 1| \\ge 1,\n$$\nwith equality iff $z = 1$.", "options": [], "answer": "Detailed solution", "solution": "If $|z| \\ge 1$, then\n$$\n|z|^2 + 2|z - 1| \\ge 1 + 2|z - 1| \\ge 1,\n$$\nwith equality iff $z = 1$.\n\nIf $|z| < 1$, then\n$$\n|z - 1| \\ge |z| - 1 = 1 - |z|,\n$$\nand so\n$$\n|z|^2 + 2|z - 1| - 1 \\ge |z|^2 + 2(1 - |z|) - 1 = (|z| - 1)^2 > 0.\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33211, "subject": "Mathematics (Multi-modal)", "question": "Does there exist an even positive integer $n$ for which $n + 1$ is divisible by 5 and the two numbers $2^n + n$ and $2^n - 1$ are co-prime?", "options": [], "answer": "34", "solution": "Because $(2^n + n) - (2^n - 1) = n + 1$, we have $\\text{gcd}(2^n + n, 2^n - 1) = \\text{gcd}(n + 1, 2^n - 1)$.\nFrom $2^2 \\equiv 4 \\pmod{5}$, $2^3 \\equiv 3 \\pmod{5}$ and Fermat's Little Theorem we see that $2^n \\equiv 1 \\pmod{5}$ iff $n$ is divisible by 4. Hence, when $n \\equiv -1 \\pmod{5}$ and $n \\equiv 0 \\pmod{4}$, the two numbers $2^n + n$ and $2^n - 1$ are both divisible by 5. They can only be co-prime for $n \\equiv 2 \\pmod{4}$.\nSuppose $n = 4k + 2$, then $n + 1 = 4k + 3$ and this number is divisible by 5 exactly when $k \\equiv 3 \\pmod{5}$. Such $k$ can be written as $k = 5m + 3$ and so $n = 20m + 14$. This means that the smallest candidates for $n$ for which $2^n + n$ and $2^n - 1$ could be co-prime, are $n = 14, 34, 54, \\dots$.\nNext we observe that $2^n \\equiv (-1)^n \\equiv 1 \\pmod{3}$ for all even numbers $n$. Hence, whenever $n+1$ is divisible by 3, the two numbers $2^n + n$ and $2^n - 1$ are both divisible by 3. This rules out $n = 14$.\nConsider $n = 34$, then $n + 1 = 35 = 5 \\cdot 7$. As we have seen above, $2^4 \\equiv 1 \\pmod{5}$ and so $2^{34} \\equiv 2^2 \\equiv 4 \\pmod{5}$ which means that 5 does not divide $\\text{gcd}(35, 2^{34} - 1)$. Similarly, we have $2^3 \\equiv 1 \\pmod{7}$ and so $2^{34} \\equiv 2 \\pmod{7}$, which shows that 7 does not divide $\\text{gcd}(35, 2^{34} - 1)$. Hence, $\\text{gcd}(35, 2^{34} - 1) = 1$ and $n = 34$ is the smallest positive even integer for which $n+1$ is divisible by 5 and for which $2^n + n$ and $2^n - 1$ are co-prime.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33212, "subject": "Mathematics (Multi-modal)", "question": "Solve the equations\n$$\na + b + c = 0, \\quad a^2 + b^2 + c^2 = 1, \\quad a^3 + b^3 + c^3 = 4abc\n$$\nfor $a$, $b$, and $c$.", "options": [], "answer": "All permutations of (1/sqrt(2), -1/sqrt(2), 0).", "solution": "So, suppose $a$, $b$, $c$ satisfy the given equations, and eliminate $c$, say. Then, from the first, we deduce that\n$$\n\\begin{aligned}\na^3 + b^3 + c^3 &= a^3 + b^3 - (a + b)^3 \\\\\n&= a^3 + b^3 - (a^3 + 3a^2b + 3ab^2 + b^3) \\\\\n&= -3ab(a + b) \\\\\n&= 3abc.\n\\end{aligned}\n$$\nThis and the third equation forces $abc = 0$. Hence, one of $a$, $b$, $c$ is zero. Say $c = 0$. Then, by the first and second equations, $a = -b$, and $1 = 2a^2$. Thus one solution is $a = \\pm 1/\\sqrt{2}$, $b = \\mp 1/\\sqrt{2}$, $c = 0$, and any permutation of this triple is a solution. Conversely, every such triple is a solution.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 33213, "subject": "Mathematics (Multi-modal)", "question": "Let\n$$ f(n) = 4n^4 + 7n^2 + 3n + 6. $$\nProve that if $n$ is an integer, then $f(n)$ is not the cube of an integer.", "options": [], "answer": "Detailed solution", "solution": "Suppose for the sake of contradiction that $n$ and $z$ are integers satisfying $f(n) = z^3$. Write $f(n) = 3(n^4 + n + 2) + n^4 - 7n^2$ and let $\\tau \\in \\{0, 1, 2\\}$ be the remainder of $n$ on division by 3.\n\nSuppose 3 divides $z$. Then 3 divides $n^4 + 7n^2 = n^2(n^2 + 7)$. But $r^2 + 7 \\in \\{7, 8, 11\\}$ is not divisible by 3. Hence 3 does not divide $n^2 + 7$ and so 3 must divide $n^2$. This implies that 3 divides $n$ and 9 divides $n^2(n^2 + 7)$. Since 9 divides $z^3$, it follows that 3 divides $n^4 + n + 2$. But, with $r$ as before, $r^4 + r^2 + 2$ is not divisible by 3, so 3 does not divide $n^4 + n + 2$, yielding a contradiction. Suppose that the remainder of $z$ on division by 3 is 1. Then, since 3 divides $f(n) - 1$, 3 must divide $n^4 + 7n^2 - 1$. Again, $r^4 + 7r^2 - 1$ is not divisible by 3, so this case is eliminated.\nFinally, suppose $z$ leaves remainder 2 on division by 3. Then $z = 2 + 3h$, for some integer $h$, so $z^3 = 8 + 9k$, for some integer $k$. Now $n^4 + 7n^2 - 8 = (n^2 - 1)(n^2 + 8)$, and 3 must divide $n^2 - 1$ or $n^2 + 8$. But $n^2 + 8 - (n^2 - 1) = 9$, so both factors are divisible by 3, Hence, since $z^3 - 8$ is divisible by 9 also, 3 must divide $n^4 + n + 2$. But we have already shown this cannot happen. So we have reached a final contradiction, and the claimed result is established.\nNote that the cubes modulo 9 are -1, 0, 1 and observe that $f(n) \\equiv 4n^4 - 2n^2 + 3n - 3 = 2n^2(2n^2 - 1) + 3(n-1)$ (mod 9). The calculation modulo 9 in the table below shows that $f(n)$ is congruent to -4, -3 or 2 modulo 9, hence cannot be the cube of an integer.\n\n| n | 0 | 1 | 2 | 3 | 4 | -4 | -3 | -2 | -1 |\n|--------|----|----|----|----|----|----|----|----|----|\n| n - 1 | -1 | 0 | 1 | 2 | 3 | 4 | -4 | -3 | -2 |\n| 3(n-1) | -3 | 0 | 3 | -3 | 0 | 3 | -3 | 0 | 3 |\n| 2n^2 | 0 | 2 | -1 | 0 | -4 | -4 | 0 | -1 | 2 |\n| 2n^2(2n^2-1) | 0 | 2 | 2 | 0 | 2 | 2 | 0 | 2 | 2 |\n| f(n) | -3 | 2 | -4 | -3 | 2 | -4 | -3 | 2 | -4 |\n\nTherefore, $f(n)$ cannot be the cube of an integer.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33214, "subject": "Mathematics (Multi-modal)", "question": "Five teams play in a soccer competition where each team plays one match against each of the other four teams. A winning team gains 5 points and a losing team 0 points. For a 0-0 draw both teams gain 1 point, and for other draws (1-1, 2-2, etc.) both teams gain 2 points. At the end of the competition, we write down the total points for each team, and we find that they form five consecutive integers. What is the minimum number of goals scored?", "options": [], "answer": "6", "solution": "Ten matches are played each one contributing either 2, 4 or 5 points. Hence the total number of points is between 20 and 50.\nIf the team scores are five consecutive integers, then the total number of points must be a multiple of 5. If the total number of points is 20, all teams will score 4 and if the total number of points is 50 all team totals will be multiples of 5. Neither of these possibilities satisfy the conditions. Therefore, we need to consider the following five cases:\n1. scores are 3, 4, 5, 6, 7,\n2. scores are 4, 5, 6, 7, 8,\n3. scores are 5, 6, 7, 8, 9,\n4. scores are 6, 7, 8, 9, 10,\n5. scores are 7, 8, 9, 10, 11.\n\n**Case (a)** Number of wins is odd. 3 wins yield 15 points and the other seven matches yield more than 10 points. The only possibility is one win, 8 0-0 draws and one score draw. But the team that wins must gain at least 3 points in the other matches. Hence this case is impossible.\n\n**Case (b)** The number of wins is even and cannot be 4 as only three teams have a score of five or more and none have a score of 10. No wins means there are 5 score draws and 5 no score draws. The teams scoring 8 and 7 must be involved in 7 score draws to achieve these totals. Hence, the only possibility is 2 wins 2 score draws and 6 no score draws. The table\n\n| | A | B | C | D | E | total |\n|---|---|---|---|---|---|-------|\n| A | | 5 | 1 | 1 | 1 | 8 |\n| B | 0 | | 1 | 1 | 5 | 7 |\n| C | 1 | 1 | | 2 | 2 | 6 |\n| D | 1 | 1 | 2 | | 1 | 5 |\n| E | 1 | 0 | 2 | 1 | | 4 |\n\nrealizes this possibility. The minimum number of goals in this case is 6.\n\n**Case (c)** The number of wins is odd. No team has more than one win. If the number of wins is five, each team must win one match and all other matches are no score draws. A total of 9 is now impossible. If the number of wins is 3, there must be 3 score draws and 4 no score draws. At least 9 goals are scored in this scenario. If the number of wins is 1, there are 6 score draws and three no score draws. This gives at least 13 goals.\n\n**Case (d)** Again we can calculate the number of wins (W), score draws (S) and no score draws (N) yielding 40 points. The four possibilities are (W, S, N) = (6, 1, 3) or (4, 4, 2) or (2, 7, 1) or (0, 10, 0). The minimum number of goals is $W + 2S$ which in each case is bigger than 6.\n\n**Case (e)** Calculating possible values of (W, S, N) we obtain (7, 2, 1), (5, 5, 0) giving more than 6 goals.\nThus the minimum number of goals scored in the tournament is 6.\nIf the five consecutive scores of the teams are $a - 2, a - 1, a, a + 1, a + 2$, the total number of points is $5a$. Each match contributes 5, 4 or 2 points to this total.\nLet $w$ be the number of matches that did not end in a draw, $d_0$ the number of 0-0 draws and $d_1$ the number of draws with goals. The minimal possible number of goals scored is $g = w + 2d_1$. The number of matches is $\\binom{5}{2} = 10$, so we obtain\n$$\nw + d_0 + d_1 = 10 \\\\\n5w + 2d_0 + 4d_1 = 5a.\n$$\n\nEliminating $d_0$ from these equations we obtain $3w + 2d_1 = 5(a - 4)$. This equation implies $3w \\equiv -2d_1 \\pmod 5$, hence $w \\equiv d_1 \\pmod 5$. None of $w, d_1$ and $w+d_1$ can exceed 10. Hence, $d_1 = w+5t$ with $-2 \\le t \\le 2$. We obtain $g = w + 2d_1 = 3w + 10t$.\n* If $t = -2$, we have $w = d_1 + 10 \\le 10$, hence $w = 10, d_1 = 0$ and $g = 10$.\n* If $t = -1$, we have $d_1 = w - 5 \\ge 0$ and $w + d_1 = 2w - 5 \\le 10$, hence $5 \\le w \\le 7$. If $w \\ge 6$, we have $g = 3w - 10 \\ge 8$. For $w = 5$ we get $g = 5$.\n* If $t = 0$, and $w \\ge 3$ we have $g = 3w + 10t \\ge 9$.\n* If $t \\ge 1$, we have $g \\ge 10$.\nHence, there are only four cases in which $g \\le 6$. They are all shown in the table below. The values of $d_0, a$ and $g$ are obtained from the equations above.\n\n| case | w | d₁ | d₀ | a | g |\n|------|---|----|----|---|---|\n| 1 | 0 | 0 | 10 | 4 | 0 |\n| 2 | 1 | 1 | 8 | 5 | 3 |\n| 3 | 5 | 0 | 5 | 7 | 5 |\n| 4 | 2 | 2 | 6 | 6 | 6 |\n\n**Case 1.** If $d_0 = 10$ all matches were no score draws, hence all teams scored 5 points contradicting the conditions.\n**Case 2.** If $a = 5$, the winning team achieved 7 points. But, if $w = 1$ the team who has won one match cannot have lost any of their matches, hence would have scored at least 8 points.\n**Case 3.** If $a = 7$, the maximum number of points a team scored is 9, hence no team won two matches. As $d_1 = 0$, the top team can have scored at most 3 points from the matches it didn't win, hence cannot have got 9 points in total.\n**Case 4.** This case is actually possible, as the following table shows.\n\n| | A | B | C | D | E | total |\n|---|---|---|---|---|---|-------|\n| A | 5 | 1 | 1 | 1 | 1 | 8 |\n| B | 0 | 1 | 1 | 1 | 5 | 7 |\n| C | 1 | 1 | | 2 | 2 | 6 |\n| D | 1 | 1 | 2 | | 1 | 5 |\n| E | 1 | 0 | 2 | 1 | | 4 |\n\nTherefore, the minimum number of goals scored is 6.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33215, "subject": "Mathematics (Multi-modal)", "question": "Two circles intersect at $A$ and $B$. A common tangent to the circles touches the circles at $P$ and $Q$. A circle is drawn through $P$, $Q$ and $A$ and the line $AB$ meets this circle again at $C$. Join $CP$ and $CQ$ and extend both to meet the given circles at $F$ and $E$ respectively. Prove $P$, $Q$, $F$ and $E$ lie on the circumference of a circle.", "options": [], "answer": "Detailed solution", "solution": "Because $P$, $A$, $Q$, $C$ are on a circle, $\\angle PCA = \\angle PQA$ and $\\angle APC + \\angle CQA = 180^\\circ$. Hence $\\angle EPA + \\angle AQF = 180^\\circ$. Because $A$, $B$, $F$, $Q$ are on a circle, $\\angle AQF + \\angle FBA = 180^\\circ$. Finally, as $F$, $E$, $B$, $A$ are concyclic, $\\angle EPA + \\angle ABE = 180^\\circ$.\n\n![](attached_image_1.png)\n\nThe last three equations imply $\\angle ABE = \\angle AQF$, $\\angle EPA = \\angle FBA$ and $\\angle ABE + \\angle FBA = 180^\\circ$ which means that $E$, $B$ and $F$ are collinear. Hence\n$$\n\\angle FEP + \\angle PQF = \\angle FEP + \\angle PQA + \\angle AQF \\\\ = \\angle FEP + \\angle PCA + \\angle ABE = 180^\\circ\n$$\nbecause the angle sum in triangle $EBC$ is $180^\\circ$. Therefore, the quadrilateral $EFQP$ is cyclic.\nThe point $C$ is on the radical axis of the two original circles, hence the power of the point $C$ is the same for both circles:\n$$\n|CQ| \\cdot |CF| = |CA| \\cdot |CB| = |CP| \\cdot |CE|\n$$\nhence $E$, $F$, $Q$ and $P$ are on a circle.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33216, "subject": "Mathematics (Multi-modal)", "question": "A function $f: \\mathbb{Z} \\rightarrow \\mathbb{Z}$ is called *loggy* if it satisfies the following two conditions:\n(i) $f(xy) \\equiv f(x) + f(y) \\pmod{8}$ for all $x, y \\in \\mathbb{Z}$ that are not divisible by $17$;\n(ii) $f(x + 17) \\equiv f(x) \\pmod{8}$ for all $x \\in \\mathbb{Z}$.\nDetermine, with proof,\n\na. if there exists a loggy function for which $f(2) = 1$;\nb. if there exists a loggy function for which $f(3) = 1$.", "options": [], "answer": "a. No such function exists. b. Yes, such a function exists.", "solution": "a. Because $6^2 \\equiv 2 \\pmod{17}$, conditions (i) and (ii) imply\n$$\nf(2) \\equiv f(6^2) \\equiv 2f(6) \\pmod{8}\n$$\nIf a loggy function $f$ satisfies $f(2) \\equiv 1 \\pmod{8}$, we get $2f(6) \\equiv 1 \\pmod{8}$. But the congruence $2x \\equiv 1 \\pmod{8}$ has no solution $x \\in \\mathbb{Z}$. Hence, there does not exist a loggy function satisfying $f(2) = 1$.\n\nb. Note that (ii) implies that $f(x^n) \\equiv nf(x) \\pmod{8}$ for all $x$ that are not divisible by $17$. In particular, $f(3^n) \\equiv nf(3) \\pmod{8}$. If $f(3) = 1$, this means that for all positive integers $n$ we need to have $f(3^n) \\equiv n \\pmod{8}$.\nWe claim that each integer $x$ that is not divisible by $17$ is congruent to $3^n \\pmod{17}$ with a unique $1 \\le n \\le 16$. The reason is that the multiplicative order of $3$ (mod $17$) is equal to $16$. In other words, no two of the numbers $3^n, n = 1, 2, \\dots, 16$ are congruent (mod $17$). To see this, suppose $3^a \\equiv 3^n \\pmod{17}$ for some $1 \\le a \\le 16$. If $d = \\gcd(a, 16)$, there exist positive integers $r, s$ such that either $ar = d + 16s$, or $16s = d + ar$. Because $3^a \\equiv 3^{16} \\equiv 1 \\pmod{17}$ both equations imply $3^d \\equiv 1 \\pmod{17}$. As $d$ is a factor of $16$, we just check\n$$\n3^2 \\equiv 9 \\pmod{17}, \\quad 3^4 \\equiv -4 \\pmod{17}, \\quad 3^8 \\equiv -1 \\pmod{17}\n$$\nto see that $d = 16$ and so $a = 16$ as well. Therefore, if $1 \\le m \\le n \\le 16$ and $3^m \\equiv 3^n \\pmod{17}$, we have $3^{n-m} \\equiv 1 \\pmod{17}$ and $m \\ne n$ would imply $n-m=16$, which is impossible.\nDefine a function $f: \\mathbb{Z} \\to \\mathbb{Z}$ as follows:\n$$\nf(x) = 0 \\quad \\text{whenever } x \\equiv 0 \\pmod{17}\n$$\n$$\nf(x) = n \\quad \\text{whenever } x \\equiv 3^n \\pmod{17} \\text{ with } 1 \\le n \\le 16.\n$$\nBecause the value of $f$ depends only on $x$ (mod $17$), condition (i) is satisfied. The function is defined for all integers, because each integer that is not divisible by $17$ is congruent to a unique $3^n \\pmod{17}$. Finally, to see that Condition (ii) holds, let $m$ and $n$ both be integers between $1$ and $16$ and note that in case $m+n > 16$, we have $3^{m+n} \\equiv 3^{m+n-16} \\pmod{17}$ by Fermat's Little Theorem and so\n$$\nf(3^{m+n}) = f(3^{m+n-16}) = m+n-16 \\equiv m+n \\pmod{8}.\n$$\nHence, we obtain the required\n$$\nf(3^m \\cdot 3^n) = f(3^{m+n}) \\equiv m+n \\equiv f(3^m) + f(3^n) \\pmod{8}.\n$$\nTherefore, this function is a loggy function that satisfies $f(3) = 1$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33217, "subject": "Mathematics (Multi-modal)", "question": "The images under reflection of the circumcentre of triangle $ABC$ in the sides of the triangle are $X$, $Y$, and $Z$. Prove $\\triangle XYZ$ is congruent to $\\triangle ABC$ and corresponding sides are parallel.", "options": [], "answer": "Detailed solution", "solution": "Let $X$, $Y$ and $Z$ be the reflections in $BC$, $CA$ and $AB$ respectively and let $E$ and $F$ be the midpoints of $CA$ and $AB$ respectively.\n\n![](attached_image_1.png)\n\nSince $Z$ is the reflection of $O$ in $AB$, $AZ = AO = OB$. Similarly $AY = OC$.\nAlso $ZZAB = LOAB$ and $ZYAC = LOAC$, hence $LBAC = \\frac{1}{2} \\angle ZAY$.\nSince $O$ is the circumcentre, $LBAC = \\frac{1}{2} \\angle BOC$ and so $\\angle ZAY = \\angle BOC$\nwhich implies that $\\angle ZAY$ is congruent to $\\angle BOC$, hence $ZY = BC$.\nNow $ZB = OB = OC = CY$, hence $ZYCB$ is a parallelogram and $YZ \\parallel BC$.\nSimilarly $XY \\parallel AB$ and $XZ \\parallel AC$, and so the triangles $ABC$ and $XYZ$ are\ncongruent and corresponding sides are parallel.\nLet $X$, $Y$ and $Z$ be the reflections in $BC$, $CA$ and $AB$ respectively and let $E$ and $F$ be the midpoints of $CA$ and $AB$ respectively.\n\n![](attached_image_2.png)\n\nBecause $E$ and $F$ are the mid-points of the sides $CA$ and $AB$, the Intercept Theorem (or the Mid-Point Theorem) implies that $EF \\parallel BC$ and $|BC| = 2|EF|$. Because $F$ is the mid-point of $OZ$ and $E$ the mid-point of $OY$, the same reason gives $EF \\parallel YZ$ and $|YZ| = 2|EF|$. Hence $YZ \\parallel BC$ and\n$|YZ| = |BC|.$\nSimilarly, $XY \\parallel AB$, $|XY| = |AB|$ and $XZ \\parallel AC$, $|XZ| = |AC|$ and so the triangles $ABC$ and $XYZ$ are congruent and corresponding sides are parallel.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33218, "subject": "Mathematics (Multi-modal)", "question": "An equilateral triangle of integer side length $n \\ge 1$ is subdivided into small triangles of unit side length, as illustrated in the figure below for the case $n=5$. In this diagram, a sub-triangle is a triangle of any size which is formed by connecting vertices of the small triangles along the grid-lines.\nIt is desired to colour each vertex of the small triangles either red or blue in such a way that there is no sub-triangle with all three of its vertices having the same colour. Let $f(n)$ denote the number of distinct colourings satisfying this condition.\n![](attached_image_1.png)\nDetermine, with proof, $f(n)$ for every $n \\ge 1$.", "options": [], "answer": "f(1) = 6, f(2) = 18, f(3) = 36, and f(n) = 0 for all n ≥ 4", "solution": "The answer is $f(1) = 6$, $f(2) = 18$, $f(3) = 36$ and $f(n) = 0$ for $n \\ge 4$.\n\nFirst consider the case $n=1$. All $2^3 = 8$ possible colourings are valid, except for the two monochromatic colourings. So $f(1) = 6$.\n\nNext consider the case $n=2$ as shown in the Figure below. The 'inner' triangle cannot be monochromatic, so there are $f(1) = 6$ possible colourings for this inner triangle. Without loss of generality, consider one of these as shown in the Figure below. Point 1 must be Red, and therefore Points 2 and 3 must be either $(B, R)$, $(R, B)$ or $(B, B)$ (3 possibilities). This yields a total of $6 \\cdot 3 = 18$, so $f(2) = 18$.\n\nBefore considering the next case, we make a simple observation which we formulate as a lemma.\n\n**Lemma.** There cannot be 3 equally spaced vertices on the base of any sub-triangle all of which have the same colour.\n\n**Proof.** Assume that there are 3 equally spaced vertices $X, Y$ and $Z$, on the base of a sub-triangle all of which have the same colour (say Red). Consider the points formed by the intersections of the lines starting at these vertices and forming $60^\\circ$ with the side of the sub-triangle. If any of the so-formed and forming $60^\\circ$ with the side of the sub-triangle is formed. However, three points $U, V, W$ is Red, a triangle with Red vertices is formed. This proves the lemma. If all are Blue, then $UVW$ is a Blue triangle. This proves the lemma.\n\nNext consider the case $n=3$ as shown in the Figure below.\n![](attached_image_2.png)\n\n**Case 1.** First assume that the two points 1 and 2 have the same colour, say Blue. Then Point 3 must be Red, and the lemma also implies that Points 4 and 5 are also Red. This in turn implies that Point 6 is Blue. Looking now at Points 7 and 8, we see that they cannot both have the same colour; they cannot both be Blue as this would form a monochromatic triangle 678, and they cannot both be Red as this would violate the lemma (their midpoint, 3, is Red). So, without loss of generality, Point 7 is Blue and Point 8 is Red. This in turn implies that Points 9 and 10 must be Red and Blue respectively. It can be easily checked that this colouring is valid. Accounting for symmetries leads to 12 possibilities (2 choices for the colour of Points 1 and 2, 2 further choices for the colouring of Points 7 and 8, and 3 possible rotations of the large triangle).\n\nCase 2. The only other possibility is that Points 1 and 2 have different colours, and the same holds for the pairs of Points (7, 9) and (8, 10). Then, we must have that Points 1, 8, 9 are the same colour (say Blue) and that Points 2, 7, 10 are the other colour (Red) – if not, a vertex of the large triangle will not be colourable without completing a monochromatic triangle. The outer triangle 645 can then be coloured in $f(1) = 6$ different ways and the centre vertex of the large triangle can be coloured in 2 ways (Red or Blue). Accounting for all symmetries, this yields 24 possibilities (2 choices for colouring of Points 1, 8, 9, a further 6 possibilities to colour the outer triangle, and 2 possibilities for the colour of the centre of the large triangle). Adding together all of these distinct colourings from Cases 1 and 2 yields $f(3) = 12 + 24 = 36$.\n\nNext consider the case $n = 4$ as shown in the Figure below. The ‘inner’ triangle cannot be monochromatic, so without loss of generality, two vertices are coloured Blue and one vertex is coloured Red as shown in the diagram. The two Blue vertices then imply that Point 1 is Red, and we also conclude from the lemma that Points 2 and 3 are Red. This in turn implies that Point 4 is Blue.\n![](attached_image_3.png)\n\nLooking now at Points 5 and 6, we see that they cannot both have the same colour; they cannot both be Blue as this would form a monochromatic triangle 456, and they cannot both be Red as this would violate the lemma (their midpoint is Red). So, without loss of generality, Point 5 is Blue and Point 6 is Red. Since Point 3 is also Red, the lemma implies that Points 7 and 8 must both be Blue, which in turn implies that Point 9 is Red. But now we are stuck, since we cannot colour the point labelled X without forming a monochromatic triangle (either a Blue triangle X48 or a Red triangle X29). So $f(4) = 0$.\n\nIt is easy to see that the diagram for $n > 4$ contains the diagram for $n = 4$, and so $f(4) = 0$ implies $f(n) = 0$ for $n > 4$. This completes the proof.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 33219, "subject": "Mathematics (Multi-modal)", "question": "Let $n$ be a positive integer and $a_1, \\dots, a_n$ positive real numbers. Let\n$$\ns_k = a_1^k + \\dots + a_n^k\n$$\nfor $k = 1, 2, 3, \\dots$. Prove that\n$$\n\\frac{s_5 s_1^3}{5} - \\frac{s_4 s_2 s_1^2}{4} + \\frac{s_2^4}{20} \\ge 0.\n$$", "options": [], "answer": "Detailed solution", "solution": "$$\n4s_5 s_1^3 + s_2^4 \\geq 5s_4 s_2 s_1^2.\n$$\nUsing the AM-GM inequality, $4s_5 s_1^3 + s_2^4 \\geq 5 [s_5 s_1^{12} s_2^4]^{1/5}$, so it suffices to prove that\n$$\ns_5^4 s_2^4 s_1^{12} \\geq s_4^5 s_2^5 s_1^{10},\n$$\nand thus, using the positivity of $s_k$, that $s_5 s_1^2 \\geq s_4 s_2$.\n\nObserve that $s_5 s_3 \\geq s_4^2$, since, on expansion $\\sum_{i=1}^n a_i^8$ occurs on both sides, and each term $(a_i^5 a_j^3 + a_i^3 a_j^5) = (a_i^3 a_j^3)(a_i^2 + a_j^2) \\geq a_i^3 a_j^3 (2a_i a_j) = 2a_i^4 a_j^4$ for all $i < j$.\n\nObserve also that $s_5 s_1 \\geq s_3^2$, since, on expansion, $\\sum_{i=1}^n a_i^8$ occurs on both sides, and each term $(a_i^5 a_j + a_i a_j^5) = a_i a_j (a_i^4 + a_j^4) \\geq 2a_i a_j (a_i^2 a_j^2) = 2a_i^3 a_j^3$, $(i < j)$.\n\nObserve further that $s_5 s_1 \\geq s_4 s_2$, since\n$$\n(a_i^5 a_j + a_i a_j^5) - (a_i^4 a_j^2 + a_i^2 a_j^4) = a_i a_j (a_i - a_j)^2 (a_i^2 + a_i a_j + a_j^2) \\geq 0.\n$$\nNow $s_5 s_3^2 s_1^2 \\geq s_2^2 s_4 s_1^2 \\geq s_5 s_4 s_3^2 s_1 \\geq s_4^5 s_2^2 s_2$, and the result follows.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33220, "subject": "Mathematics (Multi-modal)", "question": "For which prime numbers $p$ do there exist positive rational numbers $x, y$ and a positive integer $n$ such that\n$$\nx + y + \\frac{p}{x} + \\frac{p}{y} = 3n?\n$$", "options": [], "answer": "All primes p with p ≡ 2 (mod 3), and no others.", "solution": "If $p \\equiv 2 \\pmod{3}$ and $x = y = 1$, the number\n$$\nx + y + \\frac{p}{x} + \\frac{p}{y} = 2(1 + p)\n$$\nis an integer that is divisible by 3, hence for all such primes the required solutions $x, y, n$ exist.\n\nWe now show that solutions can only exist if $p \\equiv 2 \\pmod{3}$.\n\nSuppose\n$$\nx = \\frac{a}{b} \\quad \\text{and} \\quad y = \\frac{c}{d}\n$$\nwith positive integers $a, b, c, d$ that satisfy $\\gcd(a, b) = \\gcd(c, d) = 1$, is a solution. The given equation is then equivalent to\n$$\n(a^2 + p b^2) c d + (c^2 + p d^2) a b = 3 n a b c d. \\quad (1)\n$$\n\nCase (i) Because $a^3 = a(a^2 + p b^2) - p b (a b)$, any prime factor of $\\gcd(a b, a^2 + p b^2)$ must divide $a$. Hence, $p$ is not among these prime factors and such a prime factor must divide $p b^2 = (a^2 + p b^2) - a^2$. This contradicts $\\gcd(a, b) = 1$. Hence, $\\gcd(a b, a^2 + p b^2) = 1$. Similarly, using $p \\nmid c, w_2$ obtain $\\gcd(c d, c^2 + p d^2) = 1$.\n\nEquation (1) shows that $a b$ divides $(a^2 + p b^2) c d$. Because $\\gcd(a b, a^2 + p b^2) = 1$, Euclid's Lemma implies that $a b \\mid c d$. Similarly, $c d$ divides $(c^2 + p d^2) a b$ and, using $\\gcd(c d, c^2 + p d^2) = 1$ we obtain $c d \\mid a b$. This shows that $a b = c d$.\n\nAs $c d \\neq 0$ we can now cancel $c d$ in (1) and obtain\n$$\na^2 + p b^2 + c^2 + p d^2 = 3 n a b.\n$$\nIf $p \\equiv 1 \\pmod{3}$ we obtain that $a^2 + b^2 + c^2 + d^2 \\equiv 0 \\pmod{3}$, hence at least one of the four numbers $a, b, c, d$ must be divisible by 3. But because $a b = c d$, there is a second of these numbers divisible by 3. But then the sum of the squares of the remaining two numbers must also be divisible by 3, which is only possible if these two numbers are divisible by 3 themselves. But this contradicts $\\gcd(a, b) = 1$.\n\nIf $p = 3$ we immediately obtain that $a^2 + c^2$ is divisible by 3 and so $a$ and $c$ are divisible by 3, contrary to our assumption $p \\nmid a c$.\n\nCase (ii) If $p \\mid a$ we can write $a = p \\bar{a}$ with some positive integer $\\bar{a}$ and we have $p \\nmid b$, as $\\gcd(a, b) = 1$. Equation (1) is then equivalent to\n$$\n(p \\bar{a}^2 + b^2) c d + (c^2 + p d^2) \\bar{a} b = 3 n \\bar{a} b c d\n$$\nand we have $\\gcd(\\bar{a}, b) = \\gcd(c, d) = 1$. So, we are again in the situation of Case (i), now with $\\bar{a}$ replacing $b$ and $c$ replacing $a$. Therefore, we need to have $p \\equiv 2 \\pmod{3}$.\n\nCase (iii) If $p \\mid a$ and $p \\mid c$, we can write $a = p \\bar{a}$ and $c = p \\bar{c}$ with positive integers $\\bar{a}, \\bar{c}$. Equation (1) is then equivalent to\n$$\n(p \\bar{a}^2 + b^2) \\bar{c} d + (p \\bar{c}^2 + d^2) \\bar{a} b = 3 n \\bar{a} b \\bar{c} d\n$$\nwith $\\gcd(\\bar{a}, b) = \\gcd(\\bar{c}, d) = 1$. Moreover, because $p \\mid a$ and $\\gcd(a, b) = 1$ as well as $p \\mid c$ and $\\gcd(c, d) = 1$, we also have $p \\nmid b d$. Hence, we are again in the situation of Case (i) and conclude that we need to have $p \\equiv 2 \\pmod{3}$ in this case as well.\n\nThe final result is that such numbers $x, y, n$ exist for all primes $p$ that satisfy $p \\equiv 2 \\pmod{3}$ and for no other prime number.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33221, "subject": "Mathematics (Multi-modal)", "question": "Suppose $x$, $y$, $z$ are positive numbers that sum to $\\pi$. Prove that\n$$\n\\frac{\\sin 2x + \\sin 2y + \\sin 2z}{\\sin x + \\sin y + \\sin z} \\le 1,\n$$\nwith equality iff $x = y = z = \\pi/3$.", "options": [], "answer": "Detailed solution", "solution": "$$\n\\begin{align*}\n\\sin 2x + \\sin 2y + \\sin 2z &= \\sin 2x + \\sin 2y - \\sin 2(x + y) \\\\\n&= \\sin 2x(1 - \\cos 2y) + \\sin 2y(1 - \\cos 2x) \\\\\n&= 2 \\sin 2x \\sin^2 y + 2 \\sin 2y \\sin^2 x \\\\\n&= 4 \\sin x \\sin y (\\cos x \\sin y + \\cos y \\sin x) \\\\\n&= 4 \\sin x \\sin y \\sin z.\n\\end{align*}\n$$\nSimilarly\n$$\n\\begin{align*}\n\\sin x + \\sin y + \\sin z &= \\sin x + \\sin y + \\sin(x + y) \\\\\n&= \\sin x(1 + \\cos y) + \\sin y(1 + \\cos x) \\\\\n&= 2 \\sin x \\cos^2 \\frac{y}{2} + 2 \\sin y \\cos^2 \\frac{x}{2} \\\\\n&= 4 \\cos \\frac{x}{2} \\cos \\frac{y}{2} \\left( \\sin \\frac{x}{2} \\cos \\frac{y}{2} + \\sin \\frac{y}{2} \\cos \\frac{x}{2} \\right) \\\\\n&= 4 \\cos \\frac{x}{2} \\cos \\frac{y}{2} \\sin \\frac{x+y}{2} \\\\\n&= 4 \\cos \\frac{x}{2} \\cos \\frac{y}{2} \\cos \\frac{z}{2}.\n\\end{align*}\n$$\nHence\n$$\n\\frac{\\sin 2x + \\sin 2y + \\sin 2z}{\\sin x + \\sin y + \\sin z} = 8 \\sin \\frac{x}{2} \\sin \\frac{y}{2} \\sin \\frac{z}{2}.\n$$\nBut, if $0 < a, b < \\pi$, then\n$$\n\\sqrt{\\sin a \\sin b} \\le \\sin \\frac{a+b}{2},\n$$\nsince\n$$\n\\begin{align*}\n2 \\sin^2 \\frac{a+b}{2} - 2 \\sin a \\sin b &= 1 - \\cos(a+b) - 2 \\sin a \\sin b \\\\\n&= 1 - \\cos a \\cos b - \\sin a \\sin b \\\\\n&= 1 - \\cos(a-b) \\\\\n&\\ge 0,\n\\end{align*}\n$$\nwith equality iff $a = b$. Using Jensen's Inequality for the function $f(x) = \\ln(\\sin x)$ it follows that if $a, b, c \\in [0, \\pi]$, then\n$$\n\\sqrt[3]{\\sin a \\sin b \\sin c} \\le \\sin \\frac{a+b+c}{3}.\n$$\nMoreover, the inequality is strict unless $a = b = c$.\nIt follows that\n$$\n\\sqrt[3]{\\sin \\frac{x}{2} \\sin \\frac{y}{2} \\sin \\frac{z}{2}} \\le \\sin \\frac{x+y+z}{6} = \\sin \\frac{\\pi}{6} = \\frac{1}{2}\n$$\nwhence\n$$\n8 \\sin \\frac{x}{2} \\sin \\frac{y}{2} \\sin \\frac{z}{2} \\le 1,\n$$\nwith equality iff $x = y = z = \\pi/3$. The result follows.\nLet $ABC$ be a triangle with angles of size $x$, $y$ and $z$ at $A$, $B$ and $C$, respectively. We follow standard notation and let $O$ be the circumcentre of $\\triangle ABC$, $R$ the circumradius, $r$ the inradius, $a, b, c$ the side lengths and $s$ the semi-perimeter.\nBy $|OBC|$ we denote the area of triangle $OBC$ etc. Because $|OA| = |OB| = |OC| = R$ and $\\angle BOC = 2\\angle BAC$ (central angle) etc., we have\n$$\n|OBC| = \\frac{1}{2} R^2 \\sin 2x, \\quad |OCA| = \\frac{1}{2} R^2 \\sin 2y, \\quad |OAB| = \\frac{1}{2} R^2 \\sin 2z.\n$$\nUsing the well-known formula $|ABC| = r s$, these equations imply\n$$\n\\begin{align*}\n\\sin 2x + \\sin 2y + \\sin 2z &= \\frac{2}{R^2} (|OBC| + |OCA| + |OAB|) \\\\\n&= \\frac{2}{R^2} |ABC| = \\frac{2 r s}{R^2}.\n\\end{align*}\n$$\nOn the other hand, from the extended Sine-Rule\n$$\n\\frac{\\sin x}{a} = \\frac{\\sin y}{b} = \\frac{\\sin z}{c} = \\frac{1}{2R}\n$$\nwe obtain\n$$\n\\sin x + \\sin y + \\sin z = \\frac{1}{2R}(a + b + c) = \\frac{s}{R}.\n$$\nTherefore,\n$$\n\\frac{\\sin 2x + \\sin 2y + \\sin 2z}{\\sin x + \\sin y + \\sin z} = \\frac{2r}{R}\n$$\nand the desired inequality is equivalent to Euler's inequality $R \\ge 2r$, which is a consequence of Euler's Theorem $|OI|^2 = R(R-2r)$, where $I$ is the incentre of $\\triangle ABC$.\nThe case of equality, $R = 2r$, therefore occurs exactly when $O = I$ and this is easily seen to be the case iff the triangle $ABC$ is equilateral.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33222, "subject": "Mathematics (Multi-modal)", "question": "There are some boys and some girls at a party. A set of boys is said to be *sociable* if every girl at the party knows at least one boy in that set, and similarly a set of girls is said to be *sociable* if every boy at the party knows at least one girl in that set.\nSuppose that the number of sociable sets of boys is odd. Prove that the number of sociable sets of girls is also odd.\n\nNOTE: Acquaintance is mutual.", "options": [], "answer": "Detailed solution", "solution": "We say that a set $X$ of boys is separated from a set $Y$ of girls if no boy in $X$ knows any girl in $Y$. Similarly, a set $Y$ of girls is separated from a set $X$ of boys if no girl in $Y$ knows any boy in $X$. Since acquaintance is mutual, separation is symmetric: $X$ is separated from $Y$ if and only if $Y$ is separated from $X$.\n\nLet $n$ denote the number of ordered pairs $(X, Y)$ such that $X$ is a subset of boys, $Y$ is a subset of girls, and $X$ is separated from $Y$.\n\nFor any set $X$ of boys, denote by $Y(X)$ the set of girls who are not acquainted with any boy in $X$. Then $X$ is separated from exactly $2^{|Y(X)|}$ sets of girls, and so\n$$\nn = \\sum_{X \\subset B} 2^{|Y(X)|}.\n$$\nExactly those terms in the sum are odd for which $Y(X)$ is empty, i.e., when $X$ is sociable. Therefore $n$ is congruent modulo $2$ to the number of sociable sets of boys.\n\nA similar argument shows that $n$ is congruent modulo $2$ to the number of sociable sets of girls. Therefore, if the number of sociable sets of boys is odd, then the number of sociable sets of girls is also odd.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33223, "subject": "Mathematics (Multi-modal)", "question": "Suppose $A$, $B$, and $C$ are the angles in an acute-angled triangle. Prove that\n$$\n\\frac{\\sin 2A + \\sin 2B + \\sin 2C}{\\cos A + \\cos B + \\cos C} \\le \\sqrt{3}.\n$$", "options": [], "answer": "Detailed solution", "solution": "Since $\\cos x$ is decreasing on $[0, \\pi/2]$ and $\\sin x$ is increasing on this interval, by Chebyshev's inequality,\n$$\n\\frac{\\sin 2A + \\sin 2B + \\sin 2C}{\\cos A + \\cos B + \\cos C} = \\frac{2}{\\cos A + \\cos B + \\cos C} \\le \\frac{2}{3} (\\sin A + \\sin B + \\sin C).\n$$\nBut, just as in the solution of problem 25,\n$$\n\\sin A + \\sin B + \\sin C = 4 \\cos \\frac{A}{2} \\cos \\frac{B}{2} \\cos \\frac{C}{2}\n$$\nand, for all $x$, $y$, $z \\in [0, \\pi/2]$,\n$$\n\\sqrt{\\cos x \\cos y \\cos z} \\le \\cos \\frac{x+y+z}{3},\n$$\nwith equality iff $x = y = z$. Hence,\n$$\n\\frac{2}{3}(\\sin A + \\sin B + \\sin C) \\le \\frac{8}{3}\\cos^3 \\frac{A+B+C}{6} = \\frac{8}{3}\\cos^3 \\frac{\\pi}{6} = \\sqrt{3},\n$$\nwith equality iff $A = B = C = \\pi/3$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33224, "subject": "Mathematics (Multi-modal)", "question": "The sequence $a = (a_0, a_1, a_2, \\dots)$ is defined by $a_0 = 0$, $a_1 = 2$ and\n$$\na_{n+2} = 2a_{n+1} + 41a_n \\quad \\text{for all } n \\ge 0.\n$$\nProve that $a_{2016}$ is divisible by $2017$.", "options": [], "answer": "Detailed solution", "solution": "The equation $x^2 - 2x - 41 = 0$ has roots $\\alpha = 1 + \\sqrt{42}$ and $\\beta = 1 - \\sqrt{42}$. Using $a_0 = 0$ and $a_1 = 2$, we obtain\n$$\na_n = \\frac{\\alpha^n - \\beta^n}{\\sqrt{42}} \\quad \\text{for all } n \\ge 0. \\qquad (2)\n$$\nNote that if $h$ and $k$ are positive integers, then\n$$\n\\alpha^{h(k-1)} + \\alpha^{h(k-2)}\\beta^h + \\alpha^{h(k-3)}\\beta^{2h} + \\dots + \\beta^{(k-1)h}\n$$\nis an integer. Since $\\alpha\\beta = -41$, this result follows once we show that $\\alpha^m + \\beta^m$ is an integer for every positive integer $m$. Now $\\alpha + \\beta = 2$ and\n$$\n\\alpha^{h+1} + \\beta^{h+1} = (\\alpha + \\beta)(\\alpha^h + \\beta^h) - \\alpha\\beta(\\alpha^{h-1} + \\beta^{h-1}),\n$$\nso the integrality of $\\alpha^m + \\beta^m$ follows using induction. Next\n$$\n\\alpha^8 - \\beta^8 = (\\alpha - \\beta)(\\alpha + \\beta)(\\alpha^2 + \\beta^2)(\\alpha^4 + \\beta^4) = 2\\sqrt{42} \\cdot 2 \\cdot 2 \\cdot 43 \\cdot 2 \\cdot 2017.\n$$\nNow $2016 = 8 \\cdot 252$ and\n$$\na_{2016} = \\frac{\\alpha^{8 \\cdot 252} - \\beta^{8 \\cdot 252}}{\\sqrt{42}} \\\\\n= \\frac{\\alpha^8 - \\beta^8}{\\sqrt{42}} \\cdot \\frac{\\alpha^{8 \\cdot 252} - \\beta^{8 \\cdot 252}}{\\alpha^8 - \\beta^8}\n$$\nThe second factor is an integer, on applying the result above with $k = 252$, $h = 8$, and the first factor is an integral multiple of $2017$. Hence $2017$ divides $a_{2016}$, as claimed.\nWe start in a similar manner to Solution 1 to obtain the formula (2). The binomial theorem then gives\n$$\na_{2016} = \\frac{1}{\\sqrt{42}} \\left( (1 + \\sqrt{42})^{2016} - (1 - \\sqrt{42})^{2016} \\right) = 2 \\sum_{k=0}^{1007} \\binom{2016}{2k+1} 42^k\n$$\nThe key observation is that for any prime number $p$ and $1 \\le m < p$ we have $(p-1)(p-2) \\cdots (p-m) \\equiv (-1)^m m! \\pmod{p}$\nand because $\\gcd(p, m) = 1$ this implies that\n$$\n\\binom{p-1}{m} = \\frac{(p-1)(p-2)\\cdots(p-m)}{m!} \\equiv (-1)^m \\pmod{p}.\n$$\nBecause $2017$ is a prime number, we see now that\n$$\n\\binom{2016}{2k+1} \\equiv -1 \\pmod{2017}\n$$\nfor all $0 \\le k \\le 1007$. Hence,\n$$\na_{2016} \\equiv -2 \\sum_{k=0}^{1007} 42^k \\equiv -\\frac{2}{41} (42^{1008} - 1) \\pmod{2017}\n$$\nand so $a_{2016}$ is divisible by $2017$ iff $42^{1008} \\equiv 1 \\pmod{2017}$. This could be checked by a tedious calculation, but can also be seen with the aid of Legendre symbols and quadratic reciprocity as follows. By Euler's criterion, we have $42^{1008} \\equiv (2017^{42}) \\pmod{2017}$. Next, we compute the Legendre symbol $(2017^{42})$ via\n$$\n\\begin{aligned}\n\\left(\\frac{42}{2017}\\right) &= \\left(\\frac{2}{2017}\\right) \\left(\\frac{3}{2017}\\right) \\left(\\frac{7}{2017}\\right) \\\\\n&= \\left(\\frac{3}{2017}\\right) \\left(\\frac{7}{2017}\\right) \\\\\n&= \\left(\\frac{2017}{3}\\right) \\left(\\frac{2017}{7}\\right) \\\\\n&= \\left(\\frac{1}{3}\\right) \\left(\\frac{1}{7}\\right) = 1,\n\\end{aligned}\n$$\nwhere in the second line we have used the fact that $\\left(\\frac{2}{2017}\\right) = 1$ since $2017 \\equiv 1 \\pmod{8}$, and the third line follows from the fact that $2017 \\equiv 1 \\pmod{4}$. This gives the desired result that $42^{1008} \\equiv 1 \\pmod{2017}$.\nWe start in a similar manner to Solution 1 to obtain the formula (2). Note that $p = 2017$ is prime. Next we show that $42$ is a quadratic residue mod $2017$ (either by observing that $119^2 \\equiv 42 \\pmod{2017}$, by using the argument in Solution 2, or otherwise). Finally, letting $r^2 \\equiv 42 \\pmod{2017}$, we interpret the formula (2) over the field of integers mod $2017$ to obtain\n$$\na_{p-1} \\equiv \\frac{(1+r)^{p-1} - (1-r)^{p-1}}{r} \\pmod{2017}.\n$$\nBy Fermat's little theorem, $p$ divides $((1+r)^{p-1} - 1) - ((1-r)^{p-1} - 1)$, and so $p$ divides $r_{p-1}$. Thus $p$ divides $a_{p-1}$, i.e., $2017$ divides $a_{2016}$.\nConsider the recursion modulo $2017$ and go back eight steps\n$$\n\\begin{align*}\na_{8k+8} &= 2a_{8k+7} + 41a_{8k+6} \\\\\n&= 45a_{8k+6} + 82a_{8k+5} \\\\\n&= 172a_{8k+5} + 1845a_{8k+4} \\\\\n&\\equiv 172a_{8k+4} + 1001a_{8k+3} \\pmod{2017} \\\\\n&\\equiv 1345a_{8k+3} + 1001a_{8k+2} \\pmod{2017} \\\\\n&\\equiv 1674a_{8k+2} + 686a_{8k+1} \\pmod{2017} \\\\\n&\\equiv 56a_{8k} \\pmod{2017}.\n\\end{align*}\n$$\nBecause $a_0 = 0$ it now follows by induction that $2017$ divides $a_{8k}$ for every non-negative integer $k$. As $2016$ is divisible by $8$, the result follows.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33225, "subject": "Mathematics (Multi-modal)", "question": "$$\nx^2(2 - x)^2 = 1 + 2(1 - x)^2.\n$$", "options": [], "answer": "-1, 1, 3", "solution": "Let $y = 1 - x$. Then $x(2 - x) = (1 - y)(1 + y) = 1 - y^2$, and so an equivalent version of the equation is $(1 - y^2)^2 = 1 + 2y^2$, i.e., $y^4 = 4y^2$. Thus $y = 0, \\pm 2$ and $x = -1, 1, 3$.\n\nAlternatively, the given equation could be written as $x^2(2 - x)^2 - 1 = 2(1 - x)^2$.\nUsing the difference of two squares, this becomes\n$$\n\\begin{align*}\n(x(2 - x) - 1)(x(2 - x) + 1) &= 2(1 - x)^2, \\text{ i.e.} \\\\\n(1 - x)^2(x^2 - 2x - 1) &= 2(1 - x)^2.\n\\end{align*}\n$$\nHence, one solution is $x = 1$ and the others are the roots of $x^2 - 2x - 3 = (x + 1)(x - 3)$, that is $x = -1$ and $x = 3$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33226, "subject": "Mathematics (Multi-modal)", "question": "Determine, with proof, the smallest positive multiple of $99$ all of whose digits are either $1$ or $2$.", "options": [], "answer": "1122222222", "solution": "We call a number *eligible* if its digits are all either $1$ or $2$. A number is divisible by $99 = 9 \\cdot 11$ if and only if it is divisible by both $9$ and $11$. Suppose $N \\in \\mathbb{N}$ has base-10 expansion $a_n a_{n-1} \\dots a_2 a_1$. We define three digit-sums (full, odd, even):\n$$\nS(N) := \\sum_{1 \\le i \\le n} a_i, \\quad o(N) := \\sum_{\\substack{1 \\le i \\le n \\\\ i \\text{ odd}}} a_i, \\quad e(N) := \\sum_{\\substack{1 \\le i \\le n \\\\ i \\text{ even}}} a_i.\n$$\n\nAs is well known (and easily established), $N$ is divisible by $9$ if and only if $S(N)$ is divisible by $9$, while $N$ is divisible by $11$ if and only if $d(N) := o(N) - e(N)$ is divisible by $11$.\n\nSuppose first that $S(N) = 9$. Then $N$ has at least five digits,\n$$\n3 \\le o(N) \\le 9 - 2 = 7, \\quad 2 \\le e(N) \\le 9 - 3 = 6,\n$$\nand $o(N)$, $e(N)$ are of opposite parity. Consequently, $0 < |d(N)| \\le 5$, and so $N$ cannot be divisible by $11$.\n\nThus, we must have $S(N) \\ge 18$ for eligible $N$ to be divisible by $99$. Suppose next that $S(N) = 18$. To minimize eligible $N$ with $S(N) = 18$, we must certainly minimize the number of digits in $N$. We immediately rule out nine $2$s, since then $d(N) = 10 - 8$ is not divisible by $11$.\n\nThe next smallest number of digits involves picking eight $2$s and two $1$s. The smallest such number is the one with $1$s in the leading positions, i.e. $N = 1122222222$. Then $o(N) = e(N) = 9$, and $N$ is divisible by $11$, and hence by $99$. Thus, this is the minimal example with $S(N) = 18$.\n\nIt remains only to consider eligible numbers $N$ with $S(N) \\ge 27$. Such numbers have at least $14$ digits, so are larger than the one we found above. Thus, the minimal number is indeed $1122222222$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33227, "subject": "Mathematics (Multi-modal)", "question": "Given a point $P$ between the legs of an angle with vertex $A$. Show, with proof, how to construct a line through $P$ that intersects the legs of the angle at points $B$ and $C$ so that $|PB| = |PC|$.", "options": [], "answer": "Detailed solution", "solution": "First, draw the circle centre $P$ through $A$ and let $D$ be the second intersection point of this circle with the line $AP$. Then construct the two lines that pass through $D$ and are parallel to the legs of the given angle. They intersect the legs of the angle at $B$ and $C$.\n\n![](attached_image_1.png)\n\nBy construction, $P$ is the mid-point of $AD$ and $ABDC$ is a parallelogram. Because the diagonals of a parallelogram intersect each other at their mid-points, we obtain $|PB| = |PC|$.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 33228, "subject": "Mathematics (Multi-modal)", "question": "Show that, for all $x, y, z, w$,\n$$\n(x - w)(y - z) + (y - w)(z - x) + (z - w)(x - y) = 0,\n$$\nand\n$$\n\\sin(x - w)\\sin(y - z) + \\sin(y - w)\\sin(z - x) + \\sin(z - w)\\sin(x - y) = 0.\n$$", "options": [], "answer": "Detailed solution", "solution": "The first identity follows since\n$$\n\\begin{aligned}\n(x - w)(y - z) + (y - w)(z - x) + (z - w)(x - y) \n&= (xy - xz - wy + wz) + (yz - yx - wz + wx) + (zx - zy - wx + wy) \\\\\n&= (xy + wx + yz + wx + zx + wy) - (xx + wy + yx + wz + zy + wx) \\\\\n&= 0.\n\\end{aligned}\n$$\n\nThe second because in the first place\n$$\n2 \\sin A \\sin B = \\cos(A - B) - \\cos(A + B),\n$$\nand so\n$$\n\\begin{aligned}\n2 \\sin(x - w) \\sin(y - z) &= \\cos((x - w) - (y - z)) - \\cos((x - w) + (y - z)) \\\\\n&= \\cos(x - y + z - w) - \\cos(x - y - z - w),\n\\end{aligned}\n$$\n$$\n\\begin{aligned}\n2 \\sin(y - w) \\sin(z - x) &= \\cos((y - w) - (z - x)) - \\cos((y - w) + (z - x)) \\\\\n&= \\cos(x + y - z - w) - \\cos(x - y - z + w), \\text{ and}\n\\end{aligned}\n$$\n$$\n\\begin{aligned}\n2 \\sin(z - w) \\sin(x - y) &= \\cos((z - w) - (x - y)) - \\cos((z - w) + (x - y)) \\\\\n&= \\cos(x - y - z + w) - \\cos(x - y + z - w).\n\\end{aligned}\n$$\nThe result follows by adding these together.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33229, "subject": "Mathematics (Multi-modal)", "question": "Let $a$ and $b$ be positive integers that are co-prime and let $p$ be a prime number. Prove that\n$$\n\\gcd(ab, a^2 + pb^2) = \\begin{cases} 1 & \\text{if } p \\nmid a \\\\ p & \\text{if } p \\mid a. \\end{cases}\n$$", "options": [], "answer": "gcd(ab, a^2 + p b^2) = 1 if p does not divide a, and gcd(ab, a^2 + p b^2) = p if p divides a.", "solution": "Let $d = \\gcd(ab, a^2 + pb^2)$ and suppose $d > 1$. Let $q$ be a prime factor of $d$. Because $a^3 = a(a^2 + pb^2) - pb(ab)$ we see that $q \\mid a^3$ and so $q \\mid a$ as well. As $q \\mid a^2 + pb^2$, this implies that $q \\mid pb^2$. Because $\\gcd(a, b) = 1$ this can only happen if $q = p$.\n\nSo far we have shown that $d > 1$ implies $p \\mid a$ and $d = p^\\alpha$ for some $\\alpha > 0$. In particular, if $p \\nmid a$, then $d = 1$. Obviously, if $p \\mid a$, then $p \\mid d$. We continue to assume $d > 1$ and need to show $d = p$. Write $a = \\tilde{p}\\tilde{a}$, so that\n$$\nd = \\gcd(\\tilde{p}\\tilde{a}b, p^2\\tilde{a}^2 + pb^2) = p \\cdot \\gcd(\\tilde{a}b, p\\tilde{a}^2 + b^2).\n$$\nBecause $\\gcd(\\tilde{a}, b) = 1$, the argument at the start of this solution shows that $\\gcd(\\tilde{a}b, p\\tilde{a}^2 + b^2) > 1$ would imply that $p \\mid b$, which contradicts $\\gcd(a, b) = 1$. Hence $\\gcd(\\tilde{a}b, p\\tilde{a}^2 + b^2) = 1$ and so $d = p$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33230, "subject": "Mathematics (Multi-modal)", "question": "Suppose $u, v$ are real numbers and $w = u + iv$ is a complex number. Show that the quadratic $x^2 - 2ix + w$ has precisely one real root iff $v^2 + 4u = 0$.", "options": [], "answer": "Detailed solution", "solution": "Suppose $v^2 + 4u = 0$, and let $\\tau = v/2$. Then, $\\tau$ is real and\n$$\nr^2 - 2ir = \\frac{v^2}{4} - iv = -u - iv = -w.\n$$\nThus, the quadratic has a real root.\n\nConversely, if $\\tau$ is a real root of $x^2 - 2ix + w$, then it is also a real root of $x^2 + 2ix + \\bar{w}$. In other words, $\\tau$ satisfies the equations\n$$\nr^2 - 2ir + w = 0, \\quad r^2 + 2ir + \\bar{w} = 0,\n$$\nwhence, as $w = u + iv$ and so $w + \\bar{w} = 2u$ and $w - \\bar{w} = 2iv$,\n$$\n2r^2 + 2u = 0, \\quad -4ir + 2iv = 0.\n$$\nTherefore, $v^2 = 4r^2 = -4u$. Hence, the result.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33231, "subject": "Mathematics (Multi-modal)", "question": "Find all pairs $(t, x)$ of real numbers that satisfy\n$$\nt^3 - 3t^2 + 3t - x = 0 \\quad \\text{and}\n$$\n$$\n27(x-1)^4 + (1-x^2)^3 = 0.\n$$", "options": [], "answer": "(-1, -7), (1, 1), (2, 2)", "solution": "With $s = t - 1$ we have $s^3 = t^3 - 3t^2 + 3t - 1$, and the first equation can be written as $x = s^3 + 1$. From the second equation we get $27(s^3)^4 = (x^2 - 1)^3$, hence, by taking cube roots, $3s^4 = x^2 - 1$, i.e. $x^2 = 3s^4 + 1$. Comparing with the square of $x = s^3 + 1$ we obtain\n$$\n3s^4 + 1 = s^6 + 2s^3 + 1, \\text{ or}\n$$\n$$\ns^6 - 3s^4 + 2s^3 = 0, \\text{i.e.}\n$$\n$$\ns^3(s - 1)^2(s + 2) = 0.\n$$\nSo, $s = -2, 0, 1$, i.e., $t = s + 1 = -1, 1, 2$ and $x = s^3 + 1 = -7, 1, 2$. The three solutions $(t, x)$ are $(-1, -7)$, $(1, 1)$ and $(2, 2)$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33232, "subject": "Mathematics (Multi-modal)", "question": "The game of *Greed* starts with an initial configuration of one or more piles of stones. Player 1 and Player 2 take turns to remove stones, beginning with Player 1. At each turn, a player has two choices:\n* take one stone from any one of the piles (a simple *move*);\n* take one stone from each of the remaining piles (a greedy *move*).\nThe player who takes the last stone wins.\nConsider the following two initial configurations:\n(a) There are 2018 piles, with either 20 or 18 stones in each pile.\n(b) There are four piles, with 17, 18, 19, and 20 stones, respectively.\nIn each case, find an appropriate strategy that guarantees victory to one of the players.", "options": [], "answer": "(a) Player 2 wins by mirroring moves to keep all piles even. (b) Player 1 wins; begin by removing one stone from an even pile and then follow the W2 strategy.", "solution": "The winning strategy in (a) is easily found: all piles are even in number so Player 2 maintains this all-even status by parroting Player 1's every move. This eventually guarantees a win for Player 2.\n\nConfiguration (b) is trickier. We will see that there is a guaranteed win for Player 1. We first mathematically encode the game as a system operating on the set $S$ of sequences $s = (s_i)_i^\\infty$ of non-negative integers with only finitely many non-zero entries.\n\nFor each $i \\in \\mathbb{N}$, the function $f_i$ is defined on the subset of $S$ of sequences $s$ such that $s_i > 0$: $f_i(s) = t$, where $t_i = s_i - 1$ and $t_i = s_i$ otherwise. The function $g: S \\to S$ is defined by $g(s) = t$, where $t_j = \\max\\{0, s_j - 1\\}$, $j \\in \\mathbb{N}$. Below, we write $\\mathbb{F}$ for the set of functions consisting of $g$ and every $f_i$.\n\nA particular game is given by a sequence $(s^k)_{k=0}^\\infty$ of elements of $S$, where $s_{k+1} = f(s^k)$ for some $f \\in \\mathbb{F}$. The winner is determined by the parity of the minimal $k$ for which $s^k$ is the zero element, denoted $z$ below.\n\nGiven $s \\in S$, the notation $f(s)$ will always refer to $f(s)$ for some $f \\in \\mathbb{F}$; the number of positive and odd entries in $s$ are denoted by $n(s)$ and $o(s)$, respectively. We call $W \\subset S$ a strategy if the following conditions hold:\n(1) If $s \\in W$, and if $f(s)$ is defined, then $f(s) \\notin W$, but there exists $f' \\in \\mathbb{F}$ such that $f'(f(s)) \\in W$.\n(2) $z \\in W$.\n(3) $W$ is rearrangement invariant: if $w \\in W$, then every rearrangement of $w$ lies in $W$.\n\n(1) says that a player should strive to leave a configuration in $W$ after his/her move. If this is achieved, every move the other player makes gives a configuration not in $W$; the first player can then move it back to $W$, and eventually win because of (2). (3) just encodes the fact that a winning strategy is readily adjusted to handle swapping of piles.\n\nA strategy $W$ tells us how to win from certain configurations, but it might not tell us how to proceed from every winnable configuration. $W$ is $k$-complete if for each $s \\in S$, $n(s) \\le k$, either $s \\in W$ or $f(s) \\in W$ for some $f \\in \\mathbb{F}$. (A $k$-complete strategy tells us how to win from every configuration involving at most $k$ piles.)\n\nThe previously given solution to Configuration (a) is essentially equivalent to the fact that\n$$\nW_0 := \\{s \\in S \\mid o(s) = 0\\}\n$$\nis a strategy. To verify (1), it suffices to note that if $s \\in W_0 \\setminus \\{z\\}$ and if $f(s)$ is defined, then $o(f(s)) \\in \\{1, n(s)\\} \\subset \\mathbb{N}$, but $f(f(s)) \\in W$.\n\nClearly, $W_0$ is 2-complete, but it is not 3-complete. We will enlarge $W_0$ to first make it 3-complete, and then 4-complete. In general, if we have a strategy $W$, and a rearrangement invariant $A \\subset S$, then $A \\cup W$ is also a strategy if for each $s \\in A$:\n* there is no $f \\in \\mathbb{F}$ with $f(s) \\in W$, but\n* if $f(s)$ is defined, then there exists $f' \\in \\mathbb{F}$ such that $f'(f(s)) \\in W$.\n\nIn the above situation, we call $A \\cup W$ a one-step augmentation (of $W$). The sole reason that $W_0$ is not 3-complete is because of $s$ with $n(s) = 3$ and $o(s) = 2$. However, if we define\n$$\nA := \\{s \\in S \\mid n(s) = 3 \\text{ and } o(s) = 2\\},\n$$\nthen $W_1 := A \\cup W_0$ is a one-step augmentation and also a 3-complete strategy. (Note that if $o(s) = 2$, then $o(f(s))$ is either 3 or 1. In the former case, $g(f(s)) \\in W_0$; in the latter, $f(f(s)) \\in W_0$, where $i$ is the index of the odd entry.)\n\nFinally, let $W_2 := W_1 \\cup B$, where $B$ consists of all $s$ such that $n(s) = 4$ and either\n* $o(s) = 3$ and the odd entries of $s$ all exceed 1, or\n* $o(s) = 2$ and the odd entries of $s$ both equal 1.\nWe call the former sequences Type 1 and the latter Type 2.\n\nWe now prove that $W_2$ is a strategy. (It is not a one-step augmentation of $W_1$, so the proof requires a little more effort.)\n\nFirst, suppose $s$ is of Type 1. Since $o(g(s)) = 1$, we have $f_i(g(s)) \\in W_0$, where $i$ is the index of the odd entry in $g(s)$. Alternatively, $o(f_i(s)) \\in \\{2, 4\\}$ whenever $f_i(s)$ is defined. If $o(f_i(s)) = 4$, then $g(f_i(s)) \\in W_0$, as desired. If instead $o(f_i(s)) = 2$, then the next step depends on whether or not both of the even entries equal 2. If they do, then $g(f_i(s))$ is of Type 2, as desired. If instead the $j$th entry is even and exceeds 2, then $f_j(f_i(s))$ is of Type 1.\n\nSuppose instead that $s$ is of Type 2. First, $n(g(s)) = 2$ and $o(g(s)) = 2$, so $g(g(s)) \\in W_0$. Next, assume that $f_i(s)$ is defined. It might be that $s_i = 1$, in which case $o(f_i(s)) = 1$ and $n(f_i(s)) = 3$. Writing $j$ for the index of the single odd entry in $f_i(s)$, we have $f_j(f_i(s)) \\in W_0$, as required. Suppose instead that $s_i \\neq 1$, and so $s_i$ is even. Then $o(f_i(s)) = 3$. Taking $j$ so that $s_j = 1$, we see that $n(f_j(f_i(s))) = 3$ and $o(f_j(f_i(s))) = 2$, so $f_j(f_i(s)) \\in W_1$, as required.\n\nUsing $W_2$, we see that Player 1 has a guaranteed win in Configuration (b); the first move should be to remove a stone from one of the even piles.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33233, "subject": "Mathematics (Multi-modal)", "question": "Points $D$, $E$ and $F$ lie respectively on sides $BC$, $CA$ and $AB$ of triangle $ABC$ such that $BDEF$ is a parallelogram. Prove that the area of $BDEF$ is maximal when $D$, $E$ and $F$ are the mid-points of the sides.", "options": [], "answer": "Detailed solution", "solution": "![](attached_image_1.png)\n\nWe use the usual notation: $a = |BC|$, $b = |CA|$, $c = |AB|$ and $\\beta = \\angle CBA$.\n\nBecause $D$ is between $B$ and $C$, there exists a real number $\\lambda$ satisfying $0 < \\lambda < 1$ and $|BD| = \\lambda a$. Then $|DC| = (1 - \\lambda)a$ and because $AB \\parallel DE$, the Intercept Theorem implies $|EC| = (1 - \\lambda)b$. Hence, $|AE| = \\lambda b$ and because $BG \\parallel FE$, the Intercept Theorem implies that $|AF| = \\lambda c$. This finally implies $|BF| = (1 - \\lambda)c$.\n\nTherefore, the area of the parallelogram $BDEF$ is equal to\n$$\n|BD| \\cdot |BF| \\cdot \\sin \\beta = \\lambda(1 - \\lambda)ac\\sin\\beta.\n$$\nBecause $a, c, \\beta$ are constant, it suffices to maximise\n$$\n\\lambda(1 - \\lambda) = \\frac{1}{4} - \\left(\\lambda - \\frac{1}{2}\\right)^2 \\le \\frac{1}{4}.\n$$\nWe now see clearly that the parallelogram $BDEF$ has maximal area when $\\lambda = 1/2$, i.e. when $D, E, F$ are the mid-points of the the sides of $\\triangle ABC$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33234, "subject": "Mathematics (Multi-modal)", "question": "Two players, Abigail and Zoe, play a game. Abigail chooses an odd number less than $800$ and writes it on the blackboard. Zoe now chooses a different odd number less than $1200$ and writes it on the blackboard. Each in turn replaces their number by the difference between their number and the smallest power of $2$ bigger than their number. If both players reach $1$ on the same move the game is drawn. If not, the player who first reaches $1$ loses.\nWho has the winning strategy?", "options": [], "answer": "Zoe", "solution": "Let $n$ be the current number of one of the players. Because both players start with an odd number, $n$ will be odd as it remains positive throughout the game. If $n = \\sum_{i=0}^{k} b_i 2^i$ with $b_i \\in \\{0, 1\\}$ is the binary representation of $n$, then $b_0 = 1$. If we assume $b_k = 1$, then the smallest power of $2$ that is bigger than $n$ is $2^{k+1}$, hence, the next number for this player will be\n$$\n2^{k+1} - n = 1 + \\sum_{i=0}^{k} 2^i - \\sum_{i=0}^{k} b_i 2^i = 1 + \\sum_{i=0}^{k} (1 - b_i) 2^i = \\sum_{i=0}^{k-1} c_i 2^i,\n$$\nwhere $c_i = 1 - b_i$ for $1 \\le i < k$ and $c_0 = 1$. More visually, the effect of one turn is\n$$\n(1 b_{k-1} b_{k-2} \\cdots b_2 b_1 1)^2 \\mapsto (\\overline{b_{k-1} b_{k-2} \\cdots b_2 b_1} 1)^2\n$$\nwhere $\\overline{0} = 1$ and $\\overline{1} = 0$. This new number has at most $k$ binary digits, but it may have fewer if $b_{k-1}$ was equal to $1$.\nIn general, all the leading digits $1$ will be lost, i.e. if $b_k = b_{k-1} = \\dots = b_{k-j+1} = 1$ and $b_{k-j} = 0$ then the new number will have $j$ digits less than $n$. Therefore, the number of turns to reach $1$ is equal to the number of blocks of consecutive equal digits in the binary representation of the initial number, where we ignore the last (units) digit in the count.\nFor example, the smallest number which allows for ten turns is\n$$\n1365 = (10101010101)^2\n$$\n---\nThe smallest number that allows for nine turns is $683 = (1010101011)^2$.\nThe number $1195 = (10010101011)^2$ allows for nine turns as well.\nAbigail can choose $683$ which enables her to carry out nine steps. If Zoe chooses $1195$ she will also be able to carry out nine steps and so she will win.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33235, "subject": "Mathematics (Multi-modal)", "question": "Suppose $x$ and $y$ are real numbers with $x \\ge 0$ and $y^2 \\ge x(x+1)$. Prove that $(y-1)^2 \\ge x(x-1)$.", "options": [], "answer": "Detailed solution", "solution": "Suppose $x \\ge 0$ and $y^2 \\ge x(x+1)$. If $0 \\le x \\le 1$, then $(y-1)^2 \\ge 0 \\ge x(x-1)$. If $x > 1$, either $y \\ge \\sqrt{x(x+1)}$ or $y \\le -\\sqrt{x(x+1)}$. If $y \\ge \\sqrt{x(x+1)}$, then $y > 1$, since $x > 1$. So $(y-1)^2 \\ge (\\sqrt{x(x+1)}-1)^2 = x^2+x+1-2\\sqrt{x(x+1)}$. It suffices to prove that this is $\\ge x(x-1)$. That is, $2x+1 \\ge 2\\sqrt{x(x+1)}$, when $x > 1$. Squaring both sides, this reduces to $1 > 0$, which is true.\nThe second case is $y \\le -\\sqrt{x(x+1)}$. In this case, we have $(y-1)^2 \\ge (\\sqrt{x(x+1)}+1)^2 = x^2+x+1+2\\sqrt{x(x+1)} > x^2+x > x^2-x$, which proves the result.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33236, "subject": "Mathematics (Multi-modal)", "question": "A sequence of throws of a die is called *nondecreasing* if the result of each successive throw is at least as large as the previous one in the sequence. For instance, one example of a nondecreasing sequence of 10 throws is\n$1, 2, 2, 2, 2, 4, 4, 4, 4, 4, 5$.\nCompute the total number of nondecreasing sequences of 10 throws.", "options": [], "answer": "3003", "solution": "Let $S_n$ be the set of all (finite) sequences of length $n$, with all entries being whole numbers between $1$ and $6$. Similarly, let $B_n$ be the set of all (finite) sequences of length $n$, with all entries being either $0$ or $1$. We denote elements of $S_n$ or $B_n$ by a letter such as $x$, and a subscripted $x_i$ denotes the $i$th entry in $x$.\nLet $B$ be the subset of $B_5$ that have exactly five entries equal to $1$, so the cardinality of $B$ is $\\binom{15}{5}$. We now set up a bijection from $B$ to the set $S$ of nondecreasing sequences in $S_{10}$. We first set up a map $f$ from $B$ to $S_{10}$: $y = f(x)$ is such that $y_1 = 1$ and $y_{i+1} - y_i = x_i$ for $1 \\le i \\le 15$. This defines $f$ uniquely. $f$ is clearly injective since $y$ preserves the information about which entries in $x$ equal $1$. It is also clear that $y$ is nondecreasing.\nNow, delete $y_1$ and also delete $y_i$ if $x_i = 1$. We are left with a nondecreasing sequence $z = g(y)$ of length $10$, and so $g$ is a map from $f(B)$ to $S_{10}$. A little thought shows that we can reconstruct $y$ from $z$, and so $g$ is injective. We deduce that $h := g \\circ f$ is injective. $z$ is nondecreasing because $y$ is nondecreasing, and it is now straightforward to deduce that $h(B) = S$. We have constructed a bijection $h$ from $B$ to $S$, and so the cardinality of $S$ is $\\binom{15}{10}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33237, "subject": "Mathematics (Multi-modal)", "question": "Let $A$, $B$, $C$, $D$, $E$ be five points in the plane with distances given (in some units) as\n$$\n|AB| = 12,\\ |BC| = 50,\\ |CD| = 38,\\ |AD| = 100,\\ |BE| = 30,\\ |CE| = 40.\n$$\nFind the distance $|ED|$.", "options": [], "answer": "74", "solution": "Since $|AD| = 100 = 12 + 50 + 38 = |AB| + |BC| + |CD|$, the points $A$, $B$, $C$, $D$ lie on a line in this order. Since\n$$\n|BE|^2 + |EC|^2 = 30^2 + 40^2 = 900 + 1600 = 2500 = 50^2 = |BC|^2,\n$$\nthe triangle $EBC$ has a right angle at $E$.\n\n![](attached_image_1.png)\n\nLet $Q$ be the projection of $E$ on the hypotenuse $BC$ of this triangle. Then twice the area of this triangle is equal to\n$$\n|EQ| \\times |BC| = |EC| \\times |EB|,\n$$\nhence\n$$\n|EQ| = \\frac{|EC| \\times |EB|}{|BC|} = \\frac{40 \\times 30}{50} = 24.\n$$\nBy Pythagoras,\n$$\n|QC| = \\sqrt{|EC|^2 - |EQ|^2} = \\sqrt{40^2 - 24^2} = \\sqrt{1600 - 576} = \\sqrt{1024} = 32,\n$$\nand so $|QD| = |QC| + |CD| = 32 + 38 = 70$, hence\n$$\n|ED| = \\sqrt{|QE|^2 + |QD|^2} = \\sqrt{24^2 + 70^2} = \\sqrt{576 + 4900} = \\sqrt{5476} = 74.\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33238, "subject": "Mathematics (Multi-modal)", "question": "Let $M$ be the midpoint of side $BC$ of an equilateral triangle $ABC$. The point $D$ is on $CA$ extended such that $A$ is between $D$ and $C$. The point $E$ is on $AB$ extended such that $B$ is between $A$ and $E$, and $|MD| = |ME|$. The point $F$ is the intersection of $MD$ and $AB$. Prove that $\\angle BFM = \\angle BME$.", "options": [], "answer": "Detailed solution", "solution": "Let $N$ on $AC$ extended be such that $EN \\parallel BC$. Join $M$ to $N$.\n\n![](attached_image_1.png)\n\nTriangles $\\triangle ABC$ and $\\triangle AEN$ are similar, hence $|AE| = |AN|$ and so $|BE| = |CN|$. Alternatively, we may define $N$ to be the point on $AG$ extended such that $|BE| = |CN|$ and $C$ is between $A$ and $N$.\n\nSince $|BM| = |CM|$, $|BE| = |CN|$ and $\\angle EBM = \\angle CGM = 120^\\circ$, triangles $\\triangle MBE$ and $\\triangle MGN$ are congruent by SAS. This implies $|MN| = |ME| = |MD|$.\n\nThis means that $M$ is the centre of the circle through $D$, $E$ and $N$. The Central Angle Theorem implies now $\\angle DME = 2 \\cdot \\angle DNE = 2 \\cdot 60^\\circ = 120^\\circ$.\n\nAlternatively, we may observe that the congruence of $\\triangle MBE$ and $\\triangle MGN$ and the equality $|MN| = |MD|$ imply that $\\angle AEM = \\angle ANM = \\angle ADM$. This implies that the four points $E$, $M$, $A$, $D$ are concyclic. Therefore, the two inscribed angles $\\angle DME$ and $\\angle DAE = 120^\\circ$ are equal. This can also be seen from $\\angle AEM = \\angle ADM$ by considering the two triangles $\\triangle DAF$ and $\\triangle EMF$.\n\nTriangles $\\triangle MFE$ and $\\triangle BME$ are similar, because $\\angle MBE = 120^\\circ = \\angle DME = \\angle FME$ and both triangles share an angle at $E$. Therefore, $\\angle BFM = \\angle MFE = \\angle BME$.\nFirst note that $\\cos(\\theta)$ determines $\\theta$ if it is known that $0 \\le \\theta \\le \\pi$. Also note that if $n_1$ and $n_2$ are unit vectors, then the angle between them is given by $\\cos(\\theta) = n_1 \\cdot n_2$. We solve the problem by calculating the relevant unit vectors and showing that a certain two dot products are the same.\n\nWe place $A$ at $(-\\sqrt{3}, 0)$, $B$ at $(0, 1)$ and $C$ at $(0, -1)$ in a Cartesian coordinate system. Then $M$ is at $(0, 0)$. Now $\\overrightarrow{MD} = \\overrightarrow{MA} + s \\cdot \\overrightarrow{CA} = (-\\sqrt{3} - s\\sqrt{3}, s)$ for some $s > 0$. Also $\\overrightarrow{ME} = \\overrightarrow{MB} + t \\cdot \\overrightarrow{AB} = (t\\sqrt{3}, t+1)$ for some $t > 0$.\n\n![](attached_image_2.png)\n\nSince $|MD|^2 = |ME|^2$, we get $3(s+1)^2 + s^2 = 3t^2 + (t+1)^2$. That is $4s^2 + 6s + 3 = 4t^2 + 2t + 1$. So $(2s + \\frac{3}{2})^2 + \\frac{3}{4} = (2t + \\frac{1}{2})^2 + \\frac{3}{4}$. Since $s$ and $t$ are positive, we must have $2s + \\frac{3}{2} = 2t + \\frac{1}{2}$. That is $t = s + \\frac{1}{2}$.\n\nNow\n$$\n\\cos(\\angle EMB) = \\frac{\\overrightarrow{MB} \\cdot \\overrightarrow{ME}}{|MB| \\cdot |ME|} = \\frac{(0,1) \\cdot (t\\sqrt{3}, t+1)}{|ME|} = \\frac{t+1}{|ME|}\n$$\nAlso\n$$\n\\begin{aligned}\n\\cos(\\angle MFE) &= \\frac{\\overrightarrow{FB} \\cdot \\overrightarrow{FM}}{|FB| \\cdot |FM|} = \\frac{\\overrightarrow{AB} \\cdot \\overrightarrow{DM}}{|AB| \\cdot |DM|} \\\\\n&= \\frac{(\\sqrt{3},1) \\cdot (\\sqrt{3}+s\\sqrt{3},-s)}{2 \\cdot |MD|} = \\frac{3+3s-s}{2 \\cdot |MD|} = \\frac{2s+3}{2 \\cdot |MD|}\n\\end{aligned}\n$$\nBut $|ME| = |MD|$ and $t+1 = s + \\frac{3}{2} = \\frac{2s+3}{2}$, so $\\cos(\\angle EMB) = \\cos(\\angle MFE)$ and hence $\\angle EMB = \\angle MFE$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33239, "subject": "Mathematics (Multi-modal)", "question": "Find all functions $f(x) = a x^2 + b x + c$, with $a \\neq 0$, such that\n$$\nf(f(1)) = f(f(0)) = f(f(-1)).\n$$", "options": [], "answer": "a(x^2 - 1/2), a(x^2 - x - 1) + 1/2, a(x^2 + x - 1) - 1/2, for any a ≠ 0", "solution": "**Solution 1.** First note that $f(0) = c$, $f(1) = a + b + c$, $f(-1) = a - b + c$. Second, note that if $f(\\alpha) = f(\\beta)$, then $a(\\alpha^2 - \\beta^2) + b(\\alpha - \\beta) = 0$, so $(\\alpha - \\beta)(a(\\alpha + \\beta) + b) = 0$. Third, a key observation is that for fixed $k$, there are at most two distinct real numbers $x$ for which $f(x) = k$. It follows from this that since $f(f(1)) = f(f(0)) = f(f(-1))$, the set $\\{f(1), f(0), f(-1)\\}$ can contain at most two distinct numbers. This leads us to three cases.\n\n*Case 1:* $f(1) = f(-1)$.\nThis gives $b = 0$, so $f(1) = f(-1) = a + c$ and $f(0) = c$. Therefore\n$$\n0 = f(f(1)) - f(f(0)) = (f(1) - f(0))(a(f(1) + f(0)) + 0) = a^2(a + 2c).\n$$\nSo $c = -a/2$, which yields $f(x) = a(x^2 - \\frac{1}{2})$. Let us verify that it works. First, $f(0) = -\\frac{a}{2}$ and $f(1) = f(-1) = \\frac{a}{2}$. But $f$ is an even function, so $f(-\\frac{a}{2}) = f(\\frac{a}{2})$ and hence $f(f(1)) = f(f(0)) = f(f(-1))$ as required.\n\n*Case 2:* $f(1) = f(0)$.\nThis gives $b = -a$, so $f(1) = f(0) = c$ and $f(-1) = 2a + c$. Therefore\n$$\n0 = f(f(-1)) - f(f(1)) = (f(-1) - f(1))(a(f(-1) + f(1)) + b) \\\\\n= 2a(a(2a + 2c) - a) = 2a^2(2a + 2c - 1).\n$$\nSo $2a + 2c - 1 = 0$, and hence $c = -a + \\frac{1}{2}$. This yields $f(x) = a(x^2 - x - 1) + \\frac{1}{2}$. Let us verify that it works. Note that $f(\\frac{1}{2} - x) = f(\\frac{1}{2} + x)$. Also $f(0) = \\frac{1}{2} - \\frac{a}{2} = f(1)$ and $f(-1) = \\frac{1}{2} + \\frac{a}{2}$. So $f(f(1)) = f(f(0)) = f(f(-1))$ as required.\n\n*Case 3:* $f(-1) = f(0)$.\nThis gives $b = a$, so $f(-1) = f(0) = c$ and $f(1) = 2a + c$. Therefore\n$$\n0 = f(f(1)) - f(f(-1)) = (f(1) - f(-1))(a(f(1) + f(-1)) + b) \\\\\n= 2a^2(2a + 2c + 1).\n$$\nSo $2a + 2c + 1 = 0$ and hence $c = -a - \\frac{1}{2}$. This yields $f(x) = a(x^2 + x - 1) - \\frac{1}{2}$. Let us verify that it works. Note that $f(-\\frac{1}{2} - x) = f(-\\frac{1}{2} + x)$. Also $f(0) = -\\frac{a}{2} - \\frac{1}{2} = f(-1)$ and $f(1) = \\frac{a}{2} - \\frac{1}{2}$. So $f(f(1)) = f(f(0)) = f(f(-1))$ as required.\n\nIn summary, the solutions are\n$$\na(x^2 - \\frac{1}{2}), \\quad a(x^2 - x - 1) + \\frac{1}{2}, \\quad a(x^2 + x - 1) - \\frac{1}{2}\n$$\n\n\n**Solution 2.** First note that $f(f(x))$ is a quartic. The quartic $g(x) = a x^4 + \\beta x^3 + \\gamma x^2 + \\delta x + \\epsilon$ has the property that $g(1) = g(0) = g(-1)$ if and only if $\\alpha + \\gamma = 0$ and $\\beta + \\delta = 0$. For the given function\n$$\nf(f(x)) = a(a x^2 + b x + c)^2 + b(a x^2 + b x + c) + c\n$$\nSo the property $f(f(1)) = f(f(0)) = f(f(-1))$ gives $a^3 + a b^2 + 2 a^2 c + a b = 0$ and $2 a^2 b + 2 a b c + b^2 = 0$.\nSince $a \\neq 0$, the first equation gives $b^2 + b + a^2 + 2 a c = 0$. The latter equation gives $b(2 a^2 + 2 a c + b) = 0$. So $b = 0$ or $b = -2 a^2 - 2 a c = -2 a(a + c)$. We look at these cases separately.\n\n*Case 1:* $b = 0$.\nThen $a^2 + 2 a c = 0$ and hence $c = -a/2$ (since $a \\neq 0$). Then $f(x) = a(x^2 - \\frac{1}{2})$. Let us verify that it works. First, $f(0) = -\\frac{a}{2}$ and $f(1) = -\\frac{1}{2}$. But $f$ is even, so $f(-\\frac{1}{2}) = f(\\frac{1}{2})$ and hence $f(f(1)) = f(f(0)) = f(f(-1))$ as required.\n\n*Case 2:* $b = -2 a^2 - 2 a c = -2 a(a + c)$.\nThen the first equation gives $4 a^2(a + c)^2 - 2 a^2 - 2 a c + a^2 + 2 a c = 0$. Since $a \\neq 0$, this gives $(a + c)^2 = 1/4$. Thus $c = -a \\pm \\frac{1}{2}$ and hence $b = \\mp a$. So we get two solutions $f(x) = a(x^2 - x - 1) + \\frac{1}{2}$ and $f(x) = a(x^2 + x - 1) - \\frac{1}{2}$, for any $a \\neq 0$.\nWe check that both of these work. For the first function, $f(\\frac{1}{2} - x) = f(\\frac{1}{2} + x)$. Also, $f(0) = \\frac{1}{2} - \\frac{1}{2} = \\frac{1}{2}$ and $f(-1) = \\frac{1}{2} + \\frac{1}{2}$. So $f(f(1)) = f(f(0)) = f(f(-1))$ as required.\nFor the second function, $f(-\\frac{1}{2} - x) = f(-\\frac{1}{2} + x)$. Also, $f(0) = -\\frac{1}{2} - \\frac{1}{2} = f(-1)$ and $f(1) = \\frac{1}{2} - \\frac{1}{2}$. So $f(f(1)) = f(f(0)) = f(f(-1))$ as required.\n\nIn summary, the solutions are\n$$a(x^2 - \\frac{1}{2}), \\quad a(x^2 - x - 1) + \\frac{1}{2}, \\quad a(x^2 + x - 1) - \\frac{1}{2},$$\nfor any $a \\neq 0$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33240, "subject": "Mathematics (Multi-modal)", "question": "We say that a rectangle with side lengths $a$ and $b$ fits inside a rectangle with side lengths $c$ and $d$ if either $(a \\le c)$ and $(b \\le d)$ or $(a \\le d)$ and $(b \\le c)$. For instance, a rectangle with side lengths $1$ and $5$ fits inside another rectangle with side lengths $1$ and $5$, and also fits inside a rectangle with side lengths $6$ and $2$.\nSuppose $S$ is a set of $2019$ rectangles, all with integer side lengths between $1$ and $2018$ inclusive. Show that there are three rectangles $A$, $B$, and $C$ in $S$ such that $A$ fits inside $B$, and $B$ fits inside $C$.", "options": [], "answer": "Detailed solution", "solution": "We write $R \\le R'$ if $R$ fits inside $R'$. (Note that $\\le$ is a preorder: it is reflexive and transitive. It might not be a partial order because two different rectangles might have matching widths and lengths.)\nWe call an $n$-element subset $C$ of $S$ an $n$-chain if its elements can be listed in \"increasing order\", i.e. in the form\n$$\nR_1 \\le R_2 \\le \\dots \\le R_n\n$$\nAn $n$-chain is allowed to contain congruent rectangles; for example, all $n$ rectangles $R_1, R_2, \\dots, R_n$ may be congruent to each other. We call $A \\subset S$ an *anti-chain* if it contains no 2-chains. In particular, no two rectangles are congruent in an anti-chain. For each rectangle $R$ in $S$, we select a chain $GR$ with $R$ as a maximal element, and which has maximal cardinality among chains having $R$ as a maximal element. Let $f(R)$ be the size of $GR$.\n**Claim 1:** The subset $f^{-1}(n)$ is an anti-chain for all $n \\in N$.\nTo prove this claim, it suffices to show that if $f(R) = f(R')$ for distinct $R, R' \\in S$, then $\\{R, R'\\}$ is an anti-chain. But this is easy since if $f(R) = f(R')$ and if $R' \\le R$, then $S_R \\cup \\{R\\}$ is a chain with maximal element $R$ and size $f(R) + 1$, contradicting the definition of $f(R)$.\n**Claim 2:** An anti-chain $A$ of $S$ has at most $1009$ elements.\nLet $A$ be an anti-chain with $n$ elements: $A = \\{R_1, \\dots, R_n\\}$, where the width and length of $R_i$ are $w_i$ and $l_i$, respectively, with $w_i \\le l_i$.\n\nWe assume that the rectangles are ordered so that $w_i \\le w_j$ for $i \\le j$. If $w_i = w_j$ for some $i < j$, then it is clear that $\\{R_i, R_j\\}$ is a chain, contradicting our anti-chain assumption. Similarly, we deduce that $l_i$ must be strictly decreasing in $i$. Thus, we have numbers\n$$\nw_1 < w_2 < \\dots < w_n \\le l_n < \\dots < l_2 < l_1.\n$$\nThere are at least $2n - 1$ distinct numbers above, and all are between $1$ and $2018$, so $2n - 1 \\le 2018$ and we deduce Claim 2.\nCombining Claim 1 and Claim 2, we see that $f^{-1}(1) \\cup f^{-1}(2)$ has at most $2018$ elements. Since this is less than the cardinality of $S$, we must have $f(R) \\ge 3$ for some $R \\in S$, as required.\nWe represent a rectangle by the ordered pair $(x, y)$ of its side lengths, where $x \\le y$. We shall write $(x_1, y_1) \\le (x_2, y_2)$ if $x_1 \\le x_2$ and $y_1 \\le y_2$. When the $x_i$ are positive, this means that a rectangle with side lengths $x_1$ and $y_1$ fits inside a rectangle with side lengths $x_2$ and $y_2$. A set of ordered pairs will be called a *chain* if its elements can be listed as $R_1, R_2, \\dots, R_n$ such that $R_i \\le R_j$ whenever $i \\le j$.\nLet $T(m, n)$ be the set of all pairs $(x, y)$ of integers that satisfy $m \\le x \\le y \\le n$. Of course, $T(m, n)$ is empty if $m > n$ and it contains exactly one element, namely $(m, m)$, if $m = n$. More generally, if $d = n - m \\ge 0$, the number of elements in $T(m, n)$ is equal to the triangular number\n$$\nt_{d+1} = \\sum_{i=1}^{d+1} i = \\frac{1}{2}(d+1)(d+2).\n$$\nTo see this, observe that, for $i = 1, 2, \\dots, d+1$, the pair $(x, m + i - 1)$ is in $T(m, n)$ exactly for $i$ values of $x$, namely $x = m, m+1, \\dots, m+i-1$.\nBecause we do not identify congruent rectangles that are different, some pairs $(x, y)$ may appear more than once in the set $S$ mentioned in the problem. We will describe $S$ by selecting a subset $S_0$ of $T(1, 2018)$ and attaching to each of its elements a multiplicity. Multiplicities are positive integers and they represent the number of rectangles in $S$ that have the given side lengths.\nMore formally, $S$ is represented by $S_0 \\subset T(1, 2018)$ together with a map $\\mu: S_0 \\to \\mathbb{Z}_+$ that takes values in the positive integers. We will then write $S = (S_0, \\mu)$. The number of elements in $S$ is equal to $\\sum_{R \\in S_0} \\mu(R)$. A chain in $S$ is a chain in $S_0$, but when we calculate its length, we take multiplicities into account. For example, if $S_0$ contains just one element but the multiplicity of it is three, then $S$ contains a chain of length three, consisting of three congruent rectangles, the side lengths of which give the element of $S_0$.\n\nWe are going to prove the following slightly more general statement by induction on $d = n - m \\ge 1$ for odd $d$.\n**Claim.** If $S = (S_0, \\mu)$ where $S_0$ is a subset of $T(m,n)$, $n - m$ is odd and $\\mu: S_0 \\to \\mathbb{Z}_+$ is a map such that $\\sum_{R \\in S_0} \\mu(R) \\ge n - m + 2$, then $S$ contains a chain with at least three elements.\nNote that the validity of this claim depends on $d = n - m$ only and not on the individual values of $m$ and $n$, because $(x_1 - k, y_1 - k) \\le (x_2 - k, y_2 - k)$ is equivalent to $(x_1, y_1) \\le (x_2, y_2)$ for any integer $k$.\nLet $E(m, n)$ be the subset of $T(m, n)$ that consists of those pairs $(x, y)$ for which $x = m$ or $y = n$. If $d = n - m = 1$ we have $E(m, n) = T(m, n)$. Note that $E(m, n)$ is a chain for any $d = n - m \\ge 1$, because\n$$\n(m, m) \\le (m, m+1) \\le \\dots \\le (m, n-1) \\le (m, n) \\le (m+1, n) \\le \\dots \\le (n, n).\n$$\nA crucial observation for the proof is that for $d \\ge 2$ the set $T(m, n)$ is the disjoint union of $E(m, n)$ and $T(m+1, n-1)$.\nIn the inductive step we use the claim for $d-2$ when we prove the claim for $d$. Because we deal with odd $d$ only, it suffices to consider $d=1$ in the base case of the induction.\nIf $d=1$, the set $T(m, n) = T(m, m+1)$ contains three elements, namely $(m, m) \\le (m, m+1) \\le (m+1, m+1)$, so it is a chain. Therefore, any possible set $S$ in this case is a chain as well.\nFor the inductive step, we assume that $S' = (S_0, \\mu')$ contains a three-element chain if it contains at least $n' - m' + 2$ elements, $S'_0 \\subset T(m', n')$ and $0 < n' - m' = n - m - 2$.\nSuppose $S = (S_0, \\mu)$ contains at least $n - m + 2$ elements and $S_0 \\subset T(m, n)$. We consider $S_0 \\cap E(m, n)$ and $S_0 \\cap T(m+1, n-1)$. Because $E(m, n)$ is a chain, $S \\cap E(m, n)$, which is $S_0 \\cap E(m, n)$ with the multiplicities given by $\\mu$, is a chain as well. If this set with multiplicities contains at least three elements, the proof is finished. Otherwise, $S \\cap T(m+1, n-1)$, i.e. $S_0 \\cap T(m+1, n-1)$ equipped with the multiplicities given by $\\mu$, contains at least $n - m + 2 - 2 = (n-1) - (m+1) + 2$ elements, hence it contains a chain with at least three elements by the inductive assumption. This proves the claim.\nThe statement of the problem follows now because $d = n - m = 2018 - 1 = 2017$ for $T(1, 2018)$ and $S$ is supposed to contain $2019 = n - m + 2$ elements.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33241, "subject": "Mathematics (Multi-modal)", "question": "The incentre of triangle $ABC$ is $I$, and $H$ is the foot of the perpendicular from $I$ on $AB$. The perpendicular from $H$ on $BC$ meets $BC$ at $E$, and it meets the bisector of $\\angle ABC$ at $D$. The perpendicular from $A$ on $BC$ meets $BC$ at $F$. Prove that $\\angle BAC = 2\\angle EFD$.", "options": [], "answer": "Detailed solution", "solution": "Let $G$ on $BC$ be the foot of the perpendicular from $I$ on $BC$, then\n$$\n|IG| = |IH|\n$$\nis the radius of the incircle of $\\triangle ABC$. Because $AI$ is the angle bisector of the angle at $A$, we have $2\\angle HAI = \\angle BAC$.\n\n![](attached_image_1.png)\n\nBecause $BH$ and $BG$ are tangent to the incircle of triangle $ABC$, we have\n$$\n|BG| = |BH|\n$$\nBecause $DE$ is parallel to $IG$, the Intercept Theorem implies\n$$\n\\frac{|BE|}{|BG|} = \\frac{|DE|}{|IG|}\n$$\nBecause $EH \\parallel AF$, the Intercept Theorem or the similarity of $\\triangle BEH$ and $\\triangle BFA$ implies\n$$\n\\frac{|BE|}{|BH|} = \\frac{|EF|}{|HA|}\n$$\nCombining the above, we obtain\n$$\n\\frac{|DE|}{|IH|} = \\frac{|DE|}{|IG|} = \\frac{|BE|}{|BG|} = \\frac{|BE|}{|BH|} = \\frac{|EF|}{|HA|}\n$$\nBecause $\\angle FED = 90^\\circ = \\angle AHI$, we see now that the triangles $FED$ and $AHI$ are similar. In particular, $\\angle BAC = 2\\angle HAI = 2\\angle EFD$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33242, "subject": "Mathematics (Multi-modal)", "question": "Find all real-valued functions $f$ satisfying\n$$\nf(2x + f(y)) + f(f(y)) = 4x + 8y\n$$\nfor all real numbers $x$ and $y$.", "options": [], "answer": "f(x) = 2x", "solution": "Letting $y = 0$, we see that\n$$\nf(2x + f(0)) = 4x - f(0). \\quad (1)\n$$\nReplacing $x$ by $(x - f(0))/2$ above, we get\n$$\nf(x) = 2x + c, \\quad (2)\n$$\nwhere $c = -2f(0) - f(0)$. Thus,\n$$\nf(f(x)) = 2(2x + c) + c = 4x + 3c. \\quad (3)\n$$\nUsing (2) and (3) in the original functional equation, we get\n$$\n2(2x + 2y + c) + c + (4y + 3c) = 4x + 8y,\n$$\n\nand so $c = 0$. Thus, $f(x) \\equiv 2x$ is the only solution.\nLetting $x = y = 0$, we see that $f(f(0)) + f(f(0)) = 0$, thus\n$$\nf(f(0)) = 0. \\quad (4)\n$$\nSubstituting $x = -\\frac{1}{2}f(0)$ and $y = 0$ in the original equation and using (4),\nwe get $f(0) = -2f(0)$, which implies\n$$\nf(0) = 0. \\quad (5)\n$$\nReplacing $x$ by $\\frac{1}{2}x$ and letting $y = 0$ in the original equation and using (5),\nwe get\n$$\nf(x) = 2x.\n$$\nBecause $2(2x + 2y) + 2(2y) = 4x + 8y$ this indeed is a solution.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33243, "subject": "Mathematics (Multi-modal)", "question": "Find all pairs of functions $f, g : \\mathbb{Q} \\to \\mathbb{Q}$ that satisfy the identity\n$$\nf(x+y) = f(x)g(1) + g(y), \\quad \\forall x, y \\in \\mathbb{Q}\n$$\nand the equation $f(1) = 3$.", "options": [], "answer": "Two solutions: (1) f is identically three and g is identically three quarters; (2) f equals the input plus two and g equals the input, for all rational inputs.", "solution": "We will show that there are exactly two solutions to this functional equation. First, take $x = 0$ to get\n$$\nf(y) = f(0)g(1) + g(y),\n$$\nso $g = f + C$ for some constant $C$. Since $f(1) = 3$, we deduce that\n$$\nf(x+y) = (3+C)f(x) + f(y) + C, \\quad x,y \\in \\mathbb{Q}. \\qquad (15)\n$$\nThe equations $x + y + t = x + (y + t) = (x + t) + y$ imply that\n$$\nf(x + y + t) = (3 + C)f(x) + f(y + t) + C = (3 + C)f(x + t) + f(y) + C.\n$$\nTaking $y = x$, the last equation yields\n$$\n(2 + C)f(x) = (2 + C)f(x + t), \\quad x, t \\in \\mathbb{Q}.\n$$\nIt follows that either $f$ is constant (and equal to $3$) or $C = -2$. If $f \\equiv 3$, then (15) implies that $3 = (3+C)4$, and so $C = -9/4$. This gives a constant solution, $(f,g) \\equiv (3, 3/4)$, to our problem.\n\nIt remains to consider the case $C = -2$, and so (15) gives\n$$\nf(x + y) = f(x) + f(y) - 2, \\quad x, y \\in \\mathbb{Q}.\n$$\nWriting $h := f - 2$, we get\n$$\nh(x + y) = h(x) + h(y), \\quad x, y \\in \\mathbb{Q}. \\qquad (16)\n$$\nIf we take $y = 0$ in (16), we get $h(0) = 0$. If instead we take $x = -y$ in (16), we get $h(x) = -h(x)$. By repeatedly applying (16) to $h(mx)$, we get the identity $h(mx) = mh(x)$ for all $m \\in \\mathbb{N}$. By virtue of the identities $h(0) = 0$ and $h(-x) = x$, we can extend to $m \\in \\mathbb{Z}$:\n$$\nh(mx) = mh(x), \\quad x \\in \\mathbb{Q}, m \\in \\mathbb{Z}. \\qquad (17)\n$$\nApplying (17) with $mx/n$ in place of $x$ and $n$ in place of $m$, we see that $h(mx) = mh(mx/n)$ and so $mh(x) = mh(mx/n)$. We have shown that\n$$\nh(rx) = rh(x), \\quad x \\in \\mathbb{Q}, r \\in \\mathbb{Q}.\n$$\nRewriting this in terms of $f$ for $x = 1$, we get the identity $f(r) \\equiv r + 2$, and so $g(r) \\equiv r$. This is the second solution to the functional equation.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 33244, "subject": "Mathematics (Multi-modal)", "question": "Suppose $p \\ge 1$ and $a$, $b$, $c$ are the side lengths of a triangle. Prove that\n$$\n2(a^p + b^p + c^p) < (a+b+c)(a^{p-1} + b^{p-1} + c^{p-1}) \\le 3(a^p + b^p + c^p).\n$$", "options": [], "answer": "Detailed solution", "solution": "Notice that\n$$\n\\begin{align*}\n& (a + b + c)(a^{p-1} + b^{p-1} + c^{p-1}) - 2(a^p + b^p + c^p) \\\\\n&= (b + c)a^{p-1} + (c + a)b^{p-1} + (a + b)c^{p-1} - a^p - b^p - c^p \\\\\n&= (b + c - a)a^{p-1} + (c + a - b)b^{p-1} + (a + b - c)c^{p-1} > 0,\n\\end{align*}\n$$\nby the triangle inequality, since $a$, $b$, $c$ are positive. Hence the left inequality holds.\n\nClearly, the right inequality holds if $p = 1$. So, suppose $p > 1$ and apply Hölder's inequality to $a+b+c$, with exponents $p$, $q$, where $q = p/(p-1)$, to get\n$$\na+b+c \\le (a^p + b^p + c^p)^{1/p} \\cdot 3^{1/q}.\n$$\nNext, apply Hölder's inequality to $a^{p-1} + b^{p-1} + c^{p-1}$, with exponents $q$, $p$, to get\n$$\na^{p-1} + b^{p-1} + c^{p-1} \\le (a^{q(p-1)} + b^{q(p-1)} + c^{q(p-1)})^{1/q} 3^{1/p} = (a^p + b^p + c^p)^{1/q} 3^{1/p}.\n$$\nCombining these inequalities, the right inequality follows.\n\nHere is an alternative proof of the second inequality. Observe that\n$$\n\\begin{aligned}\n& 3(a^p + b^p + c^p) - (a+b+c)(a^{p-1} + b^{p-1} + c^{p-1}) \\\\\n&= 2(a^p + b^p + c^p) - (b+c)a^{p-1} - (c+a)b^{p-1} - (a+b)c^{p-1} \\\\\n&= (a^p - a^{p-1}b - ab^{p-1} + b^p) + (b^p - b^{p-1}c - bc^{p-1} + c^p) \\\\\n&\\quad + (c^p - c^{p-1}a - ca^{p-1} + a^p) \\\\\n&= (a^{p-1} - b^{p-1})(a-b) + (b^{p-1} - c^{p-1})(b-c) + (c^{p-1} - a^{p-1})(c-a) \\\\\n&\\ge 0,\n\\end{aligned}\n$$\nsince $a$, $b$, $c$ are positive, and, for $r \\ge 0$, the function $t \\mapsto t^r$ is increasing on $(0, \\infty)$, so that $(x^{p-1} - y^{p-1})(x - y) \\ge 0$ for all positive $x$, $y$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33245, "subject": "Mathematics (Multi-modal)", "question": "From a point on the hypotenuse of a right-angled triangle perpendiculars are drawn to the other two sides. If the hypotenuse has length $4$ and the two perpendiculars have length one, find the area of the triangle.", "options": [], "answer": "(1 + sqrt(17)) / 2", "solution": "![](attached_image_1.png)\n\nLet $D$ be the point on the hypotenuse $BC$, and let $DE$ and $DF$ be the perpendiculars on $AC$ and $AB$, respectively. Let $x = |CE|$, $y = |BF|$ and use the standard notation for the side lengths, so that $a^2 = b^2 + c^2$ by Pythagoras.\n\nThe triangles $ABC$, $FBD$ and $EDC$ are similar, hence\n$$\n\\frac{x}{1} = \\frac{c}{b} = \\frac{1}{y}\n$$\nand so $xy = 1$ and\n$$\nx + y = \\frac{c}{b} + \\frac{b}{c} = \\frac{b^2 + c^2}{bc} = \\frac{a^2}{bc} = \\frac{16}{bc}\n$$\nBecause $AFDE$ is a square, we have $|AF| = |AE| = 1$ and so $c = 1 + y$ and $b = 1 + x$. Using $xy = 1$ we obtain $(1 + x)(1 + y) = 1 + x + y + xy = 2 + (x + y)$. Therefore, the area $|ABC|$ of triangle $ABC$ is equal to\n$$\n|ABC| = \\frac{bc}{2} = 1 + \\frac{x + y}{2} = 1 + \\frac{4}{|ABC|}\n$$\nwhere we have used that $\\frac{x + y}{2} = \\frac{b}{bc}$. This gives a quadratic equation for the area of $ABC$:\n$$\n|ABC|^2 - |ABC| - 4 = 0,\n$$\nwhich has $|ABC| = \\frac{1 + \\sqrt{17}}{2}$ as its only positive solution.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33246, "subject": "Mathematics (Multi-modal)", "question": "A designer plans to decorate the opening ceremony for this year's IMO contest in Romania with rows of coloured clock faces. Each clock face consists of twelve coloured rectangles glued to a round white base, as illustrated below.\n![](attached_image_1.png)\n\nThe following design rules apply:\n1. Each rectangle is blue, yellow, or red.\n2. All three colours must be used somewhere on the clock face.\n\nTwo clock faces are considered identical whenever one can be rotated to match the colours of the other.\n\nHow many distinct clock faces could be made?", "options": [], "answer": "43315", "solution": "Consider first the set $S_m$ of all possible clock faces using $m$ colours, where we consider two to be equal only if the colours match *without any rotation*: there are $m^{12}$ elements in $S_m$. Let $f$ be the map that rotates an element of $S_m$ by $1/12$ of a complete circle, i.e. 30 degrees. ($f$ depends on $m$, but the action is the same regardless of $m$, so we just write $f$.) All elements $x \\in S_m$ have period 12 under $f$, but some have smaller periods. Let $p(x)$ be the least period of $x$, and let $n_m(k)$ be the number of elements $x \\in S_m$ such that $p(x) = k$.\n\nIt is clear that the possible values of $p(x)$ are the divisors of 12, and that the number of distinct clock faces, allowing at most $m$ colours and counting rotated clock faces as being identical, is\n$$\nN(m) := \\frac{n_m(12)}{12} + \\frac{n_m(6)}{6} + \\frac{n_m(4)}{4} + \\frac{n_m(3)}{3} + \\frac{n_m(2)}{2} + \\frac{n_m(1)}{1}.\n$$\n\nSince there are three ways to select two of the three colours, the answer to the problem is $N(3) - 3N(2) + 3N(1)$; the last term is because each one-colour clock face is removed twice, so we must add it back.\n\nTo make the solution explicit, it remains to compute a formula for $n_m(k)$ for each divisor $k$ of 12. It is clear that $n_m(1) = m$.\n\nNext, $n_m(2) = m^2 - m$: we remove from the set of elements with period 2 those that also have period 1. Similarly, $n_m(3) = m^3 - m$ and $n_m(4) = m^4 - m^2$.\n\nWith a little more thought, we see that $n_m(6) = m^6 - m^3 - m^2 + m$ and $n_m(12) = m^{12} - m^6 - m^4 + m^2$. For instance, for $n_m(12)$, we remove from $S_m$ those elements with period 6 and those with period 4, leaving only elements with least period 12. However, when we removed the elements with smaller period, we double-counted those with least period dividing $\\gcd(6, 4) = 2$, so we add these back.\n\nExplicitly, we obtain $N(1) = 1$, $N(2) = 352$, $N(3) = 44,368$ and so the final answer is $N(3) - 3N(2) + 3N(1) = 43,315$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33247, "subject": "Mathematics (Multi-modal)", "question": "A paper rhombus $ABCD$, with side lengths $4$ and $\\angle ABC = 60^\\circ$, is folded so that $B$ coincides with the mid-point $H$ of $AD$ and creased. Prove that the length of the crease is $\\frac{1}{2}\\sqrt{21}$.", "options": [], "answer": "7*sqrt(21)/10", "solution": "Let $EF$ be the crease such that $E$ is on $AB$ and $F$ on $BC$. Join $H$ to $C$, $F$ and $E$.\n\n![](attached_image_1.png)\n\nThe crease $EF$ lies along the perpendicular bisector of $HB$ and the triangles $\\triangle EHF$ and $\\triangle EBF$ are congruent. If we let $x = |AE|$ and $y = |CF|$, then $|EH| = |EB| = 4-x$ and $|HF| = |BF| = 4-y$.\n\nIn triangle $EHA$ we have $|AH| = 2$ and $\\angle HAE = 120^\\circ$, thus the cosine rule reads\n$$\n(4 - x)^2 = 2^2 + x^2 - 4x \\cos(120^\\circ) = x^2 + 2x + 4\n$$\nand so we have $10x = 12$, i.e. $x = 6/5$, thus $|EB| = 4 - x = 14/5$.\n\nIn triangle $HDC$ we have $|HD| = 2$, $|DC| = 4$ and $\\angle HDC = 60^\\circ$, and the cosine rule gives\n$$\n|HC|^2 = 4 + 16 - 16 \\cos(60^\\circ) = 12.\n$$\nIn particular, $|HC|^2 + |HD|^2 = |CD|^2$ and so $\\angle FCH = \\angle CHD = 90^\\circ$. Therefore we have $|HF|^2 = |HC|^2 + |CF|^2$, i.e. $(4 - y)^2 = 12 + y^2$ and so $4 = 8y$, that is $y = 1/2$. This implies $|BF| = 4 - y = 7/2$.\n\nThe cosine rule for triangle $BEF$ now gives\n$$\n\\begin{aligned} |EF|^2 &= |BF|^2 + |EB|^2 - 2|BF| \\cdot |EB| \\cos(60^\\circ) \\\\ &= \\left(\\frac{7}{2}\\right)^2 + \\left(\\frac{14}{5}\\right)^2 - 2 \\cdot \\frac{7}{2} \\cdot \\frac{14}{5} \\cdot \\frac{1}{2} = \\frac{21 \\cdot 49}{100}, \\quad \\text{and so} \\\\ |EF| &= \\frac{7}{10}\\sqrt{21} \\end{aligned}\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33248, "subject": "Mathematics (Multi-modal)", "question": "Let $p$, $q$ be real numbers. Show there exists $1 \\le x \\le 4$ such that\n$$\n|px + q + \\frac{8}{x}| \\ge 1\n$$", "options": [], "answer": "Detailed solution", "solution": "We prove a stronger statement, that $|px + q + \\frac{8}{x}| \\ge 1$ for one of $x \\in \\{1, 2, 4\\}$. Let us write:\n$$\nf(x) = px + q + \\frac{8}{x}\n$$\nWe compare $f(2)$ to the linear interpolation of $f(1)$ and $f(4)$, which is:\n$$\n\\begin{aligned}\n\\frac{2}{3}f(1) + \\frac{1}{3}f(4) &= \\left(\\frac{2}{3} + \\frac{4}{3}\\right)p + \\left(\\frac{2}{3} + \\frac{1}{3}\\right)q + \\frac{2}{3}8 + \\frac{1}{3}2 \\\\\n&= 2p + q + 6 \\\\\n&= f(2) + 2.\n\\end{aligned}\n$$\nSubtracting one from each side:\n$$\n\\frac{2}{3}(f(1) - 1) + \\frac{1}{3}(f(4) - 1) = f(2) + 1.\n$$\nNow each side of these equations is either non-negative, or negative.\nIf the left hand side is non-negative, then:\n$$\n\\frac{2}{3}(f(1) - 1) + \\frac{1}{3}(f(4) - 1) \\geq 0.\n$$\nThis implies one of the terms in the average is non-negative, and so at least one of $f(1) \\ge 1$ or $f(4) \\ge 1$.\nIf on the other hand the right hand side is negative, then $f(2) < -1$.\n\nIn either case, we have found $x$ with $|f(x)| \\ge 1$ as we were required to prove.\n\n**Remark:** This inequality is best possible. Suppose we take $p = 2$ and $q = -9$. Then, for $1 \\le x \\le 4$:\n$$\n1 - f(x) = 1 - 2x + 9 - \\frac{8}{x} = \\frac{2(x-1)(4-x)}{x} \\ge 0.\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33249, "subject": "Mathematics (Multi-modal)", "question": "Show that there are 21 consecutive composite four-digit numbers.", "options": [], "answer": "Detailed solution", "solution": "The obvious solution, if we did not care about the bound, is something like $N = 22!$. Then, $N + k$ is divisible by $k$ for $k = 2, \\dots, 22$. However, $22!$ is far too large.\n\nInstead, we take $N$ to have several small prime factors in order that $N + k$ has small factors for most values of $k = 2, \\dots, 22$, and we then tweak $N$ to take care of missing factors. We want a small $N$ so we have to try to be efficient: small factors, and factors that handle several values of $k$, are best.\n\nIt makes sense to start with taking $N$ to be a multiple of both $2$ and $3$, since these factors are small, and together they handle all values of $k$ except $k \\in \\{5, 7, 11, 13, 17, 19\\}$.\n\nWe next assume that $N \\equiv 3 \\pmod{5}$ since this is more efficient than assuming that $N$ is a multiple of $5$: the former handles two of the remaining values of $k$ (namely $k=7$ and $k=17$), whereas the latter handles only $k=5$. This leaves $k \\in \\{5, 11, 13, 19\\}$ to be handled. For a similar reason, we assume that $N \\equiv 2 \\pmod{7}$ in order to handle $k=5$ and $k=19$, leaving only $k \\in \\{11, 13\\}$. Finally, we assume that $N$ is a multiple of $11$ and of $13$ to handle these two values of $k$.\n\nThus, $N$ is a multiple of $n := 2 \\cdot 3 \\cdot 11 \\cdot 13 = 858$. Note that $n$ equals $3 \\bmod 5$, as desired. Thus, we need $N$ to differ from $n$ by a multiple of $5n$. Now, $n \\equiv 4 \\pmod{7}$, and $5n \\equiv -1 \\pmod{7}$, so $N = 11n$ is what we need.\n\nClearly, $N$ has at least four digits, so it remains to check that $N = 2 \\cdot 3 \\cdot 11^2 \\cdot 13$ is at most $9999 - 22$. In fact, it is easier to compare $N$ with $A = 9900$. It is clear that $N/66 = 11 \\cdot 13 = 143$, while $A/66 = 150$, so we are done.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33250, "subject": "Mathematics (Multi-modal)", "question": "Let $n$ be a positive integer and define\n$$\nf(j) = \\binom{2j}{j} \\cdot \\binom{2n-2j}{n-j}, \\quad j = 0, 1, \\dots, n.\n$$\nProve that\n(a) $f(j) \\ge f(j+1)$, if $0 \\le j < n/2$;\n(b) $f$ is strictly convex, i.e.,\n$$\nf(j+1) + f(j-1) > 2f(j), \\quad j = 1, 2, \\dots, n-1.\n$$", "options": [], "answer": "Detailed solution", "solution": "Let $u_j = \\binom{2j}{j}$, $j = 0, 1, 2, \\dots$. For fixed $n, j$ we use the abbreviation $m = n-j$ to get $f(j) = u_j u_{n-j} = u_j u_m$ and $f(j+1) = u_{j+1} u_{n-j-1} = u_{j+1} u_{m-1}$.\n\na.\nSince\n$$\nu_{j+1} = \\frac{2(2j+1)}{j+1} u_j \\quad \\text{and} \\quad u_m = \\frac{2(2m-1)}{m} u_{m-1}, \\text{ we have}$$\n$$\n\\begin{align*}\nf(j) - f(j+1) &= u_j u_m - u_{j+1} u_{m-1} \\\\\n&= 2 \\left( \\frac{2m-1}{m} - \\frac{2j+1}{j+1} \\right) u_{j+1} u_{m-1} \\\\\n&= 2 \\left( \\frac{(2m-1)(j+1) - (2j+1)m}{m(j+1)} \\right) u_{j+1} u_{m-1} \\\\\n&= 2 \\left( \\frac{m-j-1}{m(j+1)} \\right) u_{j+1} u_{m-1} \\\\\n&\\ge 0,\n\\end{align*}\n$$\nif $0 \\le j < m = n-j$, i.e., $0 \\le j < n/2$. This means that $f$ decreases steadily over the first $n/2$ terms and, because $f(n-j) = f(j)$, then increases, so that\n$$\n\\min\\{f(j) : j = 0, 1, \\dots, n\\} = \\begin{cases} u_{n/2}^2, & \\text{if } n \\text{ is even,} \\\\ u_{(n+1)/2}u_{(n-1)/2}, & \\text{if } n \\text{ is odd.} \\end{cases}\n$$\n\nb.\nTo establish (b), note, with the same notation, that\n$$\n\\begin{align*}\nf(j+1) + f(j-1) - 2f(j) &= u_{j+1}u_{m-1} + u_{j-1}u_{m+1} - 2u_j u_m \\\\\n&= \\frac{2(2j+1)}{j+1}u_{j-1}u_{m-1} + u_{j-1} \\frac{2(2m+1)}{m+1}u_m - 2u_j u_m \\\\\n&= \\frac{4(4j^2-1)}{j(j+1)}u_{j-1}u_{m-1} + u_{j-1} \\frac{4(4m^2-1)}{m(m+1)}u_{m-1} \\\\\n&\\quad - \\frac{8(2j-1)(2m-1)}{j(m)}u_{j-1}u_{m-1} \\\\\n&= 4u_{j-1}u_{m-1} \\left( \\frac{(4j^2-1)}{j(j+1)} + \\frac{(4m^2-1)}{m(m+1)} - \\frac{2(2j-1)(2m-1)}{jm} \\right) \\\\\n&= 4u_{j-1}u_{m-1} \\frac{3m^2+m+3j^2+j-2jm-2}{j(j+1)m(m+1)} \\\\\n&= 4u_{j-1}u_{m-1} \\frac{(m+1)(2m-1)+(j+1)(2j-1)+(j-m)^2}{j(j+1)m(m+1)} \\\\\n&> 0.\n\\end{align*}\n$$\nHence (b) holds.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33251, "subject": "Mathematics (Multi-modal)", "question": "Mary and Pat play the following number game. Mary picks an initial integer greater than $2017$. She then multiplies this number by $2017$ and adds $2$ to the result. Pat will add $2019$ to this new number and it will again be Mary's turn. Both players will continue to take alternating turns. Mary will always multiply the current number by $2017$ and add $2$ to the result when it is her turn. Pat will always add $2019$ to the current number when it is his turn. Pat wins if any of the numbers obtained by either player is divisible by $2018$. Mary wants to prevent Pat from winning the game. Determine, with proof, the smallest initial integer Mary could choose in order to achieve this.", "options": [], "answer": "2022", "solution": "Let $m$ be the initial integer Mary has picked. Because\n$$\n2017x + 2 \\equiv 2 - x \\pmod{2018} \\text{ and}\n$$\n$$\nx + 2019 \\equiv x + 1 \\pmod{2018},\n$$\nthe numbers produced (mod $2018$) are\n$$\nm \\xrightarrow{M} 2 - m \\xrightarrow{P} 3 - m \\xrightarrow{M} 2 - (3 - m) = m - 1 \\xrightarrow{P} m\n$$\nwhere $M \\xrightarrow{\\cdot} P$ indicates Mary's turn and $\\xrightarrow{\\cdot}$ indicates Pat's turn. We see that the values produced (mod $2018$) form a cycle of length $4$. Hence, Mary wins exactly when none of the numbers $m, 2-m, 3-m, m-1$ is divisible by $2018$, i.e., if $m$ does not have remainder $0$, $1$, $2$ or $3$ on division by $2018$. The smallest integer greater than $2017$ that satisfies this condition is $2018 + 4 = 2022$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33252, "subject": "Mathematics (Multi-modal)", "question": "Suppose $a_i > 0$, $i = 1, \\dots, n$. Prove that the polynomial\n$$\np(x) = -1 + \\sum_{i=1}^{n} a_i x^i\n$$\nhas precisely one positive root.", "options": [], "answer": "Detailed solution", "solution": "Since\n$$\n\\lim_{x \\to \\infty} \\frac{p(x)}{x^n} = a_n > 0,\n$$\n$p(x)$ is positive for all sufficiently large positive $x$. But, in any event, $p(0) = -1$. Hence, by the Intermediate Value theorem, $p$ has at least one positive root. Suppose $a, b$ are two positive roots of $p$, so that $p(a) = p(b) = 0$. Then\n$$\n0 = p(a) - p(b) = \\sum_{i=0}^{n} a_i (a^i - b^i) = (a-b) \\sum_{i=0}^{n} a_i \\sum_{k=0}^{i-1} a^{i-k-1} b^k = (a-b)r(a,b),\n$$\nwhere $r(a, b)$ is a positive expression. Hence, $a = b$, which means that $p$ has at most one positive root. The claimed result follows.", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 33253, "subject": "Mathematics (Multi-modal)", "question": "Prove that\n$$\n\\sum_{k=0}^{n} (n + 1 - k) \\sin((2k + 1)x) \\geq 0, \\quad \\forall x \\in [0, \\pi].\n$$", "options": [], "answer": "Detailed solution", "solution": "Since\n$$\n2 \\sin(x) \\sin((2k + 1)x) = \\cos(2kx) - \\cos((2k + 2)x), \\quad k = 0, 1, 2, \\dots\n$$\nit follows that\n$$\n\\begin{aligned}\n& 2 \\sin(x) \\sum_{k=0}^{n} (n + 1 - k) \\sin((2k + 1)x) \\\\\n&= \\sum_{k=0}^{n} (n + 1 - k) (\\cos(2kx) - \\cos((2k + 2)x)) \\\\\n&= \\sum_{k=0}^{n} (n + 1 - k) \\cos(2kx) - \\sum_{k=1}^{n+1} (n + 2 - k) \\cos(2kx) \\\\\n&= n + 1 - \\sum_{k=1}^{n} \\cos(2kx) - \\cos((2n + 2)x) \\\\\n&= \\sum_{k=1}^{n+1} (1 - \\cos(2kx)) \\\\\n&\\ge 0,\n\\end{aligned}\n$$\nwith equality iff $x = 0, \\pi$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33254, "subject": "Mathematics (Multi-modal)", "question": "Suppose $x$ is a real number and $\\sin 3y = -\\sin x$. Determine all possible values of $\\sin y$.", "options": [], "answer": "-sin(x/3), (1/2)(sin(x/3) + sqrt(3) cos(x/3)), (1/2)(sin(x/3) - sqrt(3) cos(x/3))", "solution": "**Solution 1.** Note that\n$$\n\\sin 3\\theta = \\sin \\theta \\cos 2\\theta + \\cos \\theta \\sin 2\\theta = \\sin \\theta(1 - 2\\sin^2 \\theta) + \\cos \\theta (2\\sin \\theta \\cos \\theta) = 3 \\sin \\theta - 4 \\sin^3 \\theta.\n$$\nSo\n$$\n3 \\sin y - 4 \\sin^3 y = - \\sin x = -(3 \\sin z - 4 \\sin^3 z), \\quad z = x/3.\n$$\nOr with $t = 2 \\sin y$, $s = 2 \\sin z$,\n$$\n3t - t^3 = -3s + s^3, \\quad (t+s)(t^2 - ts + s^2 - 3) = 0.\n$$\nThus, either $t = -s$ or\n$$\nt = \\frac{s \\pm \\sqrt{s^2 - 4(s^2 - 3)}}{2} = \\frac{s \\pm \\sqrt{3\\sqrt{4-s^2}}}{2} = \\sin z \\pm \\sqrt{3} |\\cos z|,\n$$\nSince\n$$\n|\\sin z \\pm \\sqrt{3} |\\cos z|| \\le \\sqrt{1+3(\\sin^2 z + \\cos^2 z)} = 2,\n$$\nthis means that there are three possible values for $\\sin y$, namely\n$$\n-\\sin\\left(\\frac{x}{3}\\right), \\quad \\frac{1}{2}\\left(\\sin\\left(\\frac{x}{3}\\right) \\pm \\sqrt{3}\\cos\\left(\\frac{x}{3}\\right)\\right).\n$$\n\n\n**Solution 2.** To solve the equation $\\sin(3y) + \\sin x = 0$, we use the trigonometric identity that converts a sum of sines to a product to get\n$$\n2 \\sin \\left( \\frac{3y+x}{2} \\right) \\cos \\left( \\frac{3y-x}{2} \\right) = 0.\n$$\nTherefore, $\\sin((3y + x)/2) = 0$ or $\\cos((3y - x)/2) = 0$, so\n$$\n\\frac{3y+x}{2} = n\\pi \\quad \\text{or} \\quad \\frac{3y-x}{2} = \\left(n+\\frac{1}{2}\\right)\\pi \\quad \\text{for some } n \\in \\mathbb{Z}.\n$$\nHence $y = \\frac{1}{3}(2n\\pi - x)$ or $y = \\frac{1}{3}((2n + 1)\\pi + x)$, for some $n \\in \\mathbb{Z}$. So $\\sin y = \\sin(\\frac{1}{3}(2n\\pi - x))$ or $\\sin y = \\sin(\\frac{1}{3}((2n+1)\\pi+x))$, for some $n = 0, 1, 2$. Here we have used the periodicity of sine to restrict the values of $n$. Using the identity $\\sin(\\pi - \\alpha) = \\sin \\alpha$, the latter three solutions can be written as $\\sin y = \\sin(\\pi - \\frac{1}{3}((2n+1)\\pi - x)) = \\sin(\\frac{1}{3}((2 - 2n)\\pi - x))$, for $n = 0, 1, 2$. These give the same as the first three solutions. So the three solutions are $\\sin y = \\sin(\\frac{1}{3}(2n\\pi - x))$, for $n = 0, 1, 2$, and this is the same as above.\n\n$$\n-\\sin\\left(\\frac{x}{3}\\right), \\quad \\frac{1}{2}\\left(\\sin\\left(\\frac{x}{3}\\right) \\pm \\sqrt{3}\\cos\\left(\\frac{x}{3}\\right)\\right).\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33255, "subject": "Mathematics (Multi-modal)", "question": "There are $2^{2018}$ buckets placed in a circle. Their positions are numbered from $1$ to $2^{2018}$ according to their order in the circle. Initially only buckets at positions $2018$ and $2019$ are full of water, the others are empty.\n\nBefore the game starts, John is allowed to fill as many additional buckets as he wishes full of water. At the start of the game, John is given an integer $n$ ($0 \\le n < 2018$) and two more buckets, one empty and the other full of water. John will then move around the circle, starting at position $2^n$ and moving forward by $2^n$ positions each time. At each position he reaches during his journey he has to replace the bucket he finds by one of those two he carries. He needs to replace an empty bucket by a full one and a full bucket by an empty one. If he cannot do so at any position he reaches, he lost the game.\n\nIs it possible for John to fill the buckets before the start of the game in such a way that he will not lose the game, no matter which value of $n$ he will be given and no matter how long he will move in the circle?", "options": [], "answer": "Yes. Pre-fill so that all positions whose number minus one has an odd count of ones in binary are full and the others are empty; equivalently, fill all type minus one positions and leave type plus one positions empty.", "solution": "If we let $k = 2^n$, the positions John visits during his journey are the positive integer multiples of $k$. Because $k \\mid 2^{2018}$, he will arrive at position $2^{2018}$ and then visit the same positions in the circle for each subsequent time he moves around the circle.\n\nWe will say \"John carries empty-full\" if he carries one full and one empty bucket. When John starts the game, he carries empty-full.\n\n**Claim 1.** Suppose John carries empty-full when arriving at position $s$. Then he can move to position $s + 2k$ without losing the game exactly when one of the two buckets at positions $s$ and $s + k$ is empty and the other is full of water. Moreover, he will then carry empty-full when he arrives at position $s + 2k$.\n\n*Proof of Claim 1.*\n\nCase (i): There is a full bucket at position $s$. In this case, John will move from position $s$ to position $s + k$ with two full buckets. He will lose the game if he finds a full bucket at position $s + k$. Otherwise, he does not lose, drops one of the full buckets there and picks up the empty one, so that he leaves carrying empty-full.\n\nCase (ii): There is an empty bucket at position $s$. In this case, John will move from position $s$ to position $s + k$ with two empty buckets. He will lose the game if he finds an empty bucket at position $s + k$. Otherwise he does not lose the game and drops one of the empty buckets there and picks up the full one, so that he leaves carrying empty-full. $\\square$\n\n**Claim 2.** A necessary and sufficient condition for John to win the game is that for each positive integer $t$, one of the two buckets at positions $(2t-1)k$ and $2tk$ is empty and the other is full of water.\n\n**Proof of Claim 2.** This follows easily from claim 1 using induction.\n\nBecause $n < 2018$ we see that $2^{2018}$ is an even multiple of $k$. Hence, when John leaves position $2^{2018}$ without having lost the game, he will carry empty-full and the condition of claim 2 for the multiples of $k$ is still satisfied (because each full bucket was replaced by an empty one and vice versa). This means that John can move indefinitely without losing the game, if he can finish one circle successfully.\n\n**Claim 3.** The filling level (full or empty) of the bucket at position $2^{2018}$ determines the filling level of all other buckets if John does not lose the game.\n\n**Proof of Claim 3.** Each position $s$ ($1 \\le s < 2^{2018}$) can be written in a unique way in the form $s = b \\cdot 2^m$, where $b$ is odd and $0 \\le m < 2018$. Write\n$$\n2^{2018} - s = 2^{m_1} + 2^{m_2} + 2^{m_3} + \\dots + 2^{m_r}\n$$\nwith integers $0 \\le m_1 < m_2 < m_3 < \\dots < m_r$. This representation is unique and for each $1 < i \\le r$ we see that $2^{m_i}$ is the highest power of $2$ that divides $s + 2^{m_1} + 2^{m_2} + \\dots + 2^{m_{i-1}}$ and $2^{m_i}$ is the highest power of $2$ that divides $s$. Hence, according to claim 2, for $i = r, r-1, \\dots, 2$, the filling level of the bucket at position $s + 2^{m_1} + 2^{m_2} + \\dots + 2^{m_{i-1}}$ is determined by the filling level of the bucket at position $s + 2^{m_1} + 2^{m_2} + \\dots + 2^{m_{i-1}} + 2^{m_i}$ in order to ensure that John can win if $n = m_i$ was chosen. Moreover, the filling level of the bucket at position $s$ is determined by the filling level of the bucket at position $s + 2^{m_1}$.\n\nClaim 3 shows that there are at most two ways to fill the buckets before the game starts that guarantee John to win the game. We will now group the positions into two types, called type $+1$ and type $-1$, such that John will not lose the game if all the buckets of the same type have the same filling level and buckets of different types have different filling level.\n\nDefine the binary weight $w(s)$ of a non-negative integer $s$ to be the number of digits $1$ in the binary representation of $s$. In other words, if $s = 2^{m_1} + 2^{m_2} + 2^{m_3} + \\dots + 2^{m_r}$ with $0 \\le m_1 < m_2 < m_3 < \\dots < m_r$, then $w(s) = r$ and $w(0) = 0$. We define the type $t(s)$ of a position $s$ ($1 \\le s \\le 2^{2018}$) as\n$$\nt(s) = (-1)^{w(s-1)}.\n$$\n\n**Claim 4.** If all buckets at positions of type $+1$ are empty and all buckets at positions of type $-1$ are filled with water at the start of the game, the conditions of claim 2 are satisfied for each $k = 2^n$ ($0 \\le n < 2018$).\n\n**Proof of Claim 4.** Let $k = 2^n$ and $s = (2t+1)k$ for a non-negative integer $t$.\nThen $s-1 = 2tk + (k-1) = t \\cdot 2^{n+1} + (2^n - 1)$. The binary representation of $t \\cdot 2^{n+1}$ ends in at least $n+1$ zeros. The binary representation of $2^n - 1$ consists of $n$ digits $1$ at the last $n$ places. Therefore, $w(s-1) = w(t)+n$. On the other hand, $s+k-1 = (2t+1)k + (k-1) = t \\cdot 2^{n+1} + 2^n + (2^n-1)$ has a digit $1$ in its binary representation at place $n+1$ (from the end), otherwise coincides with the binary representation of $s-1$. Hence, $w(s+k-1) = w(t)+1+n = w(s-1)+1$. This implies $t(s+k) = -t(s)$ as required. $\\square$\n\nOf course, claim 4 is true when we exchange filled and empty in its statement. Therefore, it will be possible for John win the game precisely when $t(2018) = t(2019)$. Because $2017 = 2016+1 = 63 \\cdot 32 + 1 = (2^6-1) \\cdot 2^5 + 2^0$ has binary representation (1111100001), we have $w(2017) = 7$, which gives $t(2018) = (-1)^{w(2017)} = -1$. The binary representation of $2018$ is (1111100010) and so $w(2018) = 7$, which gives $t(2019) = (-1)^{w(2018)} = -1$. Therefore, when John fills all buckets of type $-1$ with water he will not lose the game.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33256, "subject": "Mathematics (Multi-modal)", "question": "Define a sequence $x_n : n = 1, 2, 3, \\dots$ by $x_1 = 1$ and $x_n = x_{n-1} + \\sqrt{n}$ for $n \\ge 2$. Show that:\n$$\n\\sum_{n=1}^{2018} \\frac{1}{x_n} < 3.\n$$", "options": [], "answer": "Detailed solution", "solution": "$x_n \\ge \\frac{(n+1)(n+2)}{6}$\n\nThis is true for $n=1$. Now suppose $n \\ge 2$ and suppose that, inductively:\n$$\nx_{n-1} \\ge \\frac{n(n+1)}{6}\n$$\nNow as $n \\ge 2$, we have:\n$$\n\\frac{n+1}{n} = 1 + \\frac{1}{n} \\le \\frac{3}{2}\n$$\nMultiplying each side by $\\frac{n(n+1)}{9}$:\n$$\n\\frac{(n+1)^2}{9} \\le \\frac{n(n+1)}{6}\n$$\nAs both sides are positive, we can take the square root of each side, which gives:\n$$\n\\frac{n+1}{3} \\le \\sqrt{\\frac{n(n+1)}{6}}\n$$\nThis allows us to complete the inductive step:\n$$\nx_n = x_{n-1} + \\sqrt{x_{n-1}} \\\\\n\\ge \\frac{n(n+1)}{6} + \\sqrt{\\frac{n(n+1)}{6}} \\\\\n\\ge \\frac{n(n+1)}{6} + \\frac{n+1}{3} = \\frac{(n+1)(n+2)}{6}.\n$$\n\nThis is the inductive step we had to prove. Now we can apply this to the sum, which is:\n$$\n\\sum_{n=1}^{2018} \\frac{1}{x_n} \\le \\sum_{n=1}^{2018} \\frac{6}{(n+1)(n+2)} = \\sum_{n=1}^{2018} \\left( \\frac{6}{n+1} - \\frac{6}{n+2} \\right ) = 3 - \\frac{6}{2020} < 3.\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33257, "subject": "Mathematics (Multi-modal)", "question": "A non-degenerate triangle is formed by three points that are not collinear. A triangle is called *nice* if it is non-degenerate and its vertices have integer coordinates $(x, y)$ such that $0 \\le x \\le 2018$ and $0 \\le y \\le 2018$. Let $V_n$ denote the number of nice isosceles triangles for which the coordinates of each vertex satisfy $y \\le n$. Prove that\n$$\nV_{n+1} = 2V_n - 2V_{n-2} + V_{n-3} \\quad \\text{for all } n > 2018^2.\n$$", "options": [], "answer": "Detailed solution", "solution": "We let $E_n$ be the number of nice isosceles triangles for which the coordinates $(x, y)$ of all vertices satisfy $y \\le n$ and for at least one vertex we have $y = n$. These triangles are part of the count for $V_n$ but not for $V_{n-1}$. Therefore, we obtain\n$$\nV_n = V_{n-1} + E_n \\quad \\text{for } n \\ge 1. \\quad (19)\n$$\nWe remark that $E_n$ is also equal to the number of nice isosceles triangles for which the coordinates $(x, y)$ of all vertices satisfy $y \\le n$ and for at least one vertex we have $y = 0$. To see this, replace each vertex $(x, y)$ by $(x, n-y)$. Let now $B_n$ denote the number of all nice isosceles triangles for which the coordinates $(x, y)$ of all vertices satisfy $y \\le n$ and at least one vertex has $y = n$ and at least one vertex has $y = 0$. We then have\n$$\nE_n = E_{n-1} + B_n \\quad \\text{for } n \\ge 2, \\quad (20)\n$$\nbecause we can split the set of nice isosceles triangles for which the coordinates $(x, y)$ of all vertices satisfy $y \\le n$ and for at least one vertex we have $y = 0$ (totalling to $E_n$) into the set of those for which all vertices have $y < n$ (giving $E_{n-1}$) and those for which at least one vertex has $y = n$ (giving $B_n$).\n\nWe now split the set (with $B_n$ elements) of all nice isosceles triangles for which the coordinates $(x, y)$ of all vertices satisfy $y \\le n$ and at least one vertex has $y = n$ and at least one vertex has $y = 0$ into two subsets. One subset contains all those triangles that have a vertex with coordinates $(x, y)$ with $0 < y < n$. The number of triangles in this subset is denoted by $C_n$. The other subset consists of those triangles that do not have a vertex with $0 < y < n$ and its number of elements is denoted by $D_n$. We then have $B_n = C_n + D_n$.\n\nThe crucial observations are that $D_n$ does not depend on $n$ and that $C_n$ depends on the parity of $n$ only, provided that $n$ is large enough. We now explain why.\n\nConsider a nice isosceles triangle that has vertices $P = (a, 0)$, $Q = (b, n)$ and $R = (c, n)$. Both, $|PQ|$ and $|PR|$, are at least $n$ and $|QR| = |b - c| \\le 2018$. If $n > 2018$, we cannot have an isosceles triangle in which $QR$ is one of the equal sides. Hence, we need to have $|PQ| = |PR|$ and this happens exactly when $2a = b + c$. Therefore, $P$ is completely determined by $Q$ and $R$ and no such $P$ exists if $a$ and $b$ differ by an odd number. This shows that $D_n$ does not depend on $n$ as long as $n > 2018$.\n\nConsider now a nice isosceles triangle $PQR$ with vertices $P = (a, 0)$, $Q = (b, n)$ and $R = (c, y)$ such that $0 < y < n$. Considering the diagonal from $(0, 0)$ to $(2018, n - 1)$ we see that $|PR|^2$ and $|QR|^2$ do not exceed $2018^2 + (n - 1)^2$. Because we also have $|PQ|^2 \\ge n^2$, we obtain $|PQ| > |QR|$ and $|PQ| > |PR|$ as soon as $2n > 2018^2 + 1$. Therefore, for such $n$, we need to have $|PR| = |QR|$. If we let $r = |a - c|$ and $s = |b - c|$, we get\n$$\nr^2 + y^2 = |PR|^2 = |QR|^2 = s^2 + (n - y)^2,\n$$\ni.e. $r^2 - s^2 = n(n - 2y)$. If $r \\neq s$, then $n \\neq 2y$ and $|n - 2y| \\ge 1$, hence $|r^2 - s^2| \\ge n$. In case $n = 2018^2$ and $n \\neq 2y$, we even have $|n - 2y| \\ge 2$ and we obtain $|r^2 - s^2| \\ge 2 \\cdot 2018^2 > 2018^2$. However, we have $0 \\le r, s \\le 2018$ and so $|r^2 - s^2| \\le 2018^2$.\n\nThis shows that we need to have $r = s$ and $n = 2y$, whenever $n \\ge 2018^2$. In particular, if $n \\ge 2018^2$ is odd, $C_n = 0$. If $n \\ge 2018^2$ is even, $C_n$ is not equal to zero but does not depend on $n$ because the triangles we count are determined by the choice of $a = b$ and $c \\neq a$. Therefore, if $n \\ge 2018^2$, $C_n$ depends on the parity of $n$ only.\n\nBecause $B_n = C_n + D_n$, we see now that $B_n$ depends on the parity of $n$ only, i.e.\n$$\nB_{n+2} = B_n \\text{ for } n \\ge 2018^2. \\qquad (21)\n$$\n\nThe desired recurrence is now obtained as follows:\n$$\n\\begin{align*}\nV_{n+1} &= V_n + E_{n+1} \\\\\n&= V_n + E_n + B_{n+1} \\\\\n&= V_n + V_n - V_{n-1} + B_{n+1} \\\\\n&= 2V_n - V_{n-1} + B_{n+1}\n\\end{align*}\n$$\nusing (19)\nvalid for all $n \\ge 1$.\n\nReplacing $n$ by $n-2$ we obtain\n$$\nV_n = 2V_{n-1} - V_{n-2} + B_n \\quad \\text{for all } n \\ge 3.\n$$\nSubstituting this in the previous equation finally gives\n$$\n\\begin{align*}\nV_{n+1} &= 2V_n - 2V_{n-2} + V_{n-3} - B_{n-1} + B_{n+1} \\\\\n&= 2V_n - 2V_{n-2} + V_{n-3}\n\\end{align*}\n$$\nusing (21)\nfor all $n > 2018^2$.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 33258, "subject": "Mathematics (Multi-modal)", "question": "Let $a$, $b$, $c$ be the side lengths of a triangle. Prove that\n$$\n2 (a^3 + b^3 + c^3) < (a + b + c) (a^2 + b^2 + c^2) \\le 3 (a^3 + b^3 + c^3).\n$$", "options": [], "answer": "Detailed solution", "solution": "Consider the inequality on the left. We prove this using the triangle inequality according to which $a < b + c$, $b < c + a$, and $c < a + b$. Applying this,\n$$\n\\begin{aligned}\n& (a + b + c)(a^2 + b^2 + c^2) - 2(a^3 + b^3 + c^3) \\\\\n&= a^2(b + c) + b^2(c + a) + c^2(a + b) - a^3 - b^3 - c^3 \\\\\n&= a^2(b + c - a) + b^2(c + a - b) + c^2(a + b - c) > 0.\n\\end{aligned}\n$$\n\nThe inequality on the right holds more generally for any triple of positive numbers $a$, $b$, $c$, and can be handled by Hölder's inequality, or by strict convexity of the function $t \\mapsto t^p$ with $p \\ge 1$. Either of these tells us that: if $x$, $y$, $z > 0$ and $p \\ge 1$, then\n$$\n(x + y + z) \\le (x^p + y^p + z^p)^{1/p} 3^{(p-1)/p} \\quad \\text{or equivalently} \\\\\n\\left(\\frac{x+y+z}{3}\\right)^p \\le \\frac{x^p+y^p+z^p}{3},\n$$\nwith equality iff $x = y = z$. Apply this first with $x = a$, $y = b$, $z = c$ and $p = 3$, to get\n$$\na+b+c \\le (a^3+b^3+c^3)^{1/3} 3^{2/3},\n$$\nand next with $x = a^2$, $y = b^2$, $z = c^2$ and $p = 3/2$ to get\n$$\na^2+b^2+c^2 \\le (a^3+b^3+c^3)^{2/3} 1/3.\n$$\nEquality holds in both iff $a = b = c$. In any event, forming their product, we get\n$$\n(a+b+c)(a^2+b^2+c^2) \\le 3(a^3+b^3+c^3).\n$$\nA standard ploy used to deal with inequalities involving the side lengths $a$, $b$, $c$ of a triangle is to reformulate them in terms of the positive variables\n$$\nx = a + b - c, \\quad y = b + c - a, \\quad z = c + a - b;\n$$\nso that\n$$\na = \\frac{z+x}{2}, \\quad b = \\frac{x+y}{2}, \\quad c = \\frac{y+z}{2},\n$$\nwhence $a + b + c = x + y + z$,\n$$\na^2 + b^2 + c^2 = \\frac{1}{2}(x^2 + y^2 + z^2 + xy + yz + zx) = \\frac{1}{2}(\\sum x^2 + \\sum xy),\n$$\n$$\n(a+b+c)(a^2+b^2+c^2) = \\frac{1}{2}\\left(\\sum x^3 + 2\\sum xy(x+y) + 3xyz\\right)\n$$\nand\n$$\na^3 + b^3 + c^3 = \\frac{1}{8}(2\\sum x^3 + 3\\sum xy(x+y)).\n$$\nTo establish the left inequality, notice that\n$$\n\\begin{aligned}\n(a+b+c)(a^2+b^2+c^2) - 2(a^3+b^3+c^3) \\\\\n= \\frac{1}{2}\\left(\\sum x^3 + 2\\sum xy(x+y) + 3xyz\\right) - \\frac{1}{4}\\left(2\\sum x^3 + 3\\sum xy(x+y)\\right) \\\\\n= \\frac{1}{4}\\left(\\sum xy(x+y) + 6xyz\\right),\n\\end{aligned}\n$$\nwhich is clearly positive. Hence the left inequality follows.\nAlso,\n$$\n\\begin{aligned}\n3(a^3 + b^3 + c^3) - (a+b+c)(a^2 + b^2 + c^2) \\\\\n= \\frac{1}{8}(2(x^3 + y^3 + z^3) - 12xyz + x^2(y+z) + y^2(z+x) + z^2(x+y)) \\\\\n= \\frac{1}{8}(x^3 + y^3 + z^3 - 12xyz + (x^2 + y^2 + z^2)(x+y+z)) \\\\\n= \\frac{1}{8}((x^3 + y^3 + z^3 - 3xyz) + ((x^2 + y^2 + z^2)(x+y+z) - 9xyz)) \\\\\n\\ge 0,\n\\end{aligned}\n$$\nby three applications of the AM-GM inequality, with equality iff $x = y = z$.\nIn other words, the second inequality holds.\nTo establish the inequality on the left, multiply the three inequalities $a < b+c$, $b < c+a$, and $c < a+b$ by $a^2$, $b^2$, and $c^2$, respectively. This results in\n$$a^3 < a^2(b+c), \\quad b^3 < b^2(c+a), \\quad c^3 < c^2(a+b).$$\nAdding these together and then adding $a^3 + b^3 + c^3$ to both sides of the resulting inequality gives the desired inequality. This is essentially the same proof as in Solution 1.\nThe inequality on the right holds for any triple of positive numbers $a$, $b$, $c$. To establish this, similar to Solution 2, but not switching to $x$, $y$, $z$, we multiply out the middle term and subtract it from $3(a^3 + b^3 + c^3)$, to see that we are left to show that\n$$\n2(a^3 + b^3 + c^3) - ab^2 - a^2b - bc^2 - b^2c - ca^2 - c^2a \\ge 0. \\quad (9)\n$$\nBut\n$$\n\\begin{aligned}\n& 2(a^3 + b^3 + c^3) - ab^2 - a^2b - bc^2 - b^2c - ca^2 - c^2a \\\\\n&= (a^3 + b^3 - a^2b - b^2a) + (b^3 + c^3 - b^2c - c^2b) + (c^3 + a^3 - c^2a - a^2c) \\\\\n&= (a^2 - b^2)(a - b) + (b^2 - c^2)(b - c) + (c^2 - a^2)(c - a) \\\\\n&= (a+b)(a-b)^2 + (b+c)(b-c)^2 + (c+a)(c-a)^2 \\ge 0,\n\\end{aligned}\n$$\nsince $a$, $b$, $c$ are positive, with equality iff $a = b = c$. Hence the second inequality holds.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33259, "subject": "Mathematics (Multi-modal)", "question": "A point $P$, not the centre, lies inside a circle of radius $r$. A point $A$ lies on the circumference of the circle and $E$ is the mid-point of $AP$. Prove that there exists a circle of radius $r/2$ that contains $E$ for all possible positions of $A$, whereby $P$ remains fixed.", "options": [], "answer": "Detailed solution", "solution": "Draw the diameter $HK$ that passes through $P$ and let $C$ and $D$ be the mid-points of $PK$ and $PH$, respectively.\n\n![](attached_image_1.png)\n\nSince $E$ is the mid-point of $AP$, $EC$ is parallel to $AK$ and $ED$ is parallel to $AH$. This implies that $\\angle DEC$ is similar to $\\angle HAK$, and so $\\angle DEC = \\angle HAK$. Because $HK$ is a diameter, this shows that $\\angle DEC = 90^\\circ$. This implies that $E$ is on the circle with diameter $CD$ the radius of which is equal to $|CD|/2$. Because\n$$\n|CD| = |CP| + |PD| = \\frac{|KP|}{2} + \\frac{|PH|}{2} = \\frac{|HK|}{2} = r\n$$\nhence, $E$ is on the circle with radius $r/2$ which has $CD$ as a diameter.\n![](attached_image_2.png)\n\nLet $Q$ be the mid-point of $PO$. Then\n$$\n\\frac{|PO|}{|PQ|} = \\frac{2}{1} = \\frac{|PA|}{|PE|},\n$$\nhence, $OA$ is parallel to $QE$. This implies that $\\frac{|OA|}{|QE|} = \\frac{1}{2}$, i.e. $|QE| = |OA|/2 = r/2$. This means that all possible $E$ are on the circle centre $Q$\n\nof radius $r/2$. This circle is the image of the original circle under the homothety with centre $P$ and factor $1/2$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33260, "subject": "Mathematics (Multi-modal)", "question": "Suppose $a$, $b$, $c$ are the side lengths of a triangle. Prove that\n$$\n(a+b+c)(a^2+b^2+c^2) + a(b-c)^2 + b(c-a)^2 + c(a-b)^2 \\le 3(a^3+b^3+c^3),\n$$\nwith equality iff the triangle is equilateral.", "options": [], "answer": "Detailed solution", "solution": "$$\n\\begin{align*}\n& 3(a^3 + b^3 + c^3) - (a + b + c)(a^2 + b^2 + c^2) \\\\\n&= 2(a^3 + b^3 + c^3) + a^2(b + c) + b^2(c + a) + c^2(a + b) \\\\\n&= (a^3 + b^3 - a^2b - ab^2) + (b^3 + c^3 - b^2c - c^2b) + (c^3 + a^3 - c^2a - a^2c) \\\\\n&= (a + b)(a - b)^2 + (b + c)(b - c)^2 + (c + a)(c - a)^2 \\\\\n&\\geq (a + b - c)(a - b)^2 + (b + c - a)(b - c)^2 + (c + a - b)(c - a)^2 \\\\\n&\\geq a(b - c)^2 + b(c - a)^2 + c(a - b)^2.\n\\end{align*}\n$$\nIn other words, the stated result holds and there is equality iff $a = b = c$.\n\n\nSolution 2:\nLet $x = a + b - c$, $y = b + c - a$, $z = c + a - b$, so that\n$$\na = (z+x)/2, \\quad b = (x+y)/2, \\quad c = (y+z)/2,\n$$\nwhence $a + b + c = x + y + z$,\n$$\n\\begin{align*}\na^2 + b^2 + c^2 &= \\frac{1}{2}(x^2 + y^2 + z^2 + xy + yz + zx) = \\frac{1}{2}\\left(\\sum x^2 + \\sum xy\\right), \\\\\n(a+b+c)(a^2+b^2+c^2) &= \\frac{1}{2}\\left(\\sum x^3 + 2\\sum xy(x+y) + 3xyz\\right)\n\\end{align*}\n$$\nand\n$$\na^3 + b^3 + c^3 = \\frac{1}{8}\\left(2\\sum x^3 + 3\\sum xy(x+y)\\right).\n$$\nAlso,\n$$\n\\begin{align*}\na(b-c)^2 + b(c-a)^2 + c(a-b)^2 \\\\\n&= \\frac{1}{8}\\left((z+x)(z-x)^2 + (x+y)(x-y)^2 + (y+z)(y-z)^2\\right) \\\\\n&= \\frac{1}{8}\\left(2(x^3 + y^3 + z^3) - xy(x+y) - yz(y+z) - zx(z+x)\\right).\n\\end{align*}\n$$\nHence\n$$\n\\begin{align*}\n(a+b+c)(a^2+b^2+c^2) + a(b-c)^2 + b(c-a)^2 + c(a-b)^2 \\\\\n&= \\frac{1}{2}\\left(\\sum x^3 + \\sum xy(x+y) + \\frac{3}{2}xyz\\right) \\\\\n&\\quad + \\frac{1}{8}\\left((2x^3+y^3+z^3) - xy(x+y) - yz(y+z) - zx(z+x)\\right) \\\\\n&= \\frac{3}{4}(x^3+y^3+z^3) + \\frac{3}{2}xyz + \\frac{7}{8}(xy(x+y) + yz(y+z) + zx(z+x)).\n\\end{align*}\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33261, "subject": "Mathematics (Multi-modal)", "question": "Suppose $a, b, c > 0$ and $\\sqrt{a-b} + \\sqrt{a-c} > \\sqrt{b+c}$. Prove that $a > \\frac{3}{4}(b+c)$.", "options": [], "answer": "Detailed solution", "solution": "Squaring the given inequality and rearranging gives\n$$\n\\sqrt{\\frac{(a-b)(a-c)}{b+c-a}} > b+c-a.\n$$\nIf $a > b + c$, the above inequality is always true and we also have\n$$\na > b + c > \\frac{3}{4}(b + c).\n$$\n\nIf $a \\le b + c$, then both sides of the previous inequality are non-negative, so squaring gives\n$$\na^2 - ab - ac + bc > a^2 - 2ab - 2ac + b^2 + 2bc + c^2.\n$$\nRearranging:\n$$\na(b + c) > b^2 + bc + c^2.\n$$\nIt then suffices to prove that $b^2 + bc + c^2 \\ge \\frac{3}{4}(b + c)^2$. This is equivalent to $(b - c)^2 \\ge 0$, which is true.\nBecause of the implicit assumption $a - b \\ge 0$ and $a - c \\ge 0$, we can use AM-GM to obtain\n$$\n(a - b) + (a - c) \\ge 2\\sqrt{a-b}\\sqrt{a-c},\n$$\nfrom which we obtain\n$$\n2(a - b) + 2(a - c) \\ge (\\sqrt{a-b} + \\sqrt{a-c})^2 > b + c\n$$\nby assumption. Rearranging we get the desired $a > \\frac{3}{4}(b + c)$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33262, "subject": "Mathematics (Multi-modal)", "question": "A round table has $2N$ chairs around it. Due to social distancing guidelines, no two people are allowed to sit next to each other. How many different ways are there to choose seats around the table on which $N-1$ guests can be seated?", "options": [], "answer": "N^2", "solution": "**Solution 1.** Either there are 3 consecutive empty seats or two separate pairs of empty seats. In the first case, there are $2N$ possibilities as the middle of the three empty seats can be any of the $2N$ seats. In the second case, there are two pairs of empty seats. If the seats are numbered 1 to $2N$ then one of the pairs of empty seats will be odd-even and the other even-odd. There are $N$ choices for the odd-even empty pair. For each of these there are $N-2$ choices for the odd number in the even-odd pair. That gives rise to $N(N-2)$ seating arrangements. Adding the two cases gives a total of $N^2$ possibilities.\n\n**Solution 2.** Divide the $2N$ seats into $N$ pairs of consecutive seats. $N-1$ of these pairs contain one person and the other is empty. There are $N$ ways to choose which pair is empty. The remaining $2N-2$ seats are occupied in the form 01 or 10 where 1 represents occupation. Working clockwise from the empty pair, the sequence starts with a (possibly empty) sequence of the form 101010...10 and finishes with a (possibly empty) sequence of the form 01...0101. Considering the possible lengths of the starting sequence we find that there are $N$ different possible sequences of this kind. This gives a total of $N \\times N$ possibilities.\n\n**Solution 3.** Let $P_n$ be the path graph with $n$ edges. A set of vertices $H$ of a graph $G$ is an independent set if no two vertices of $H$ are adjacent. Let $I(G, m)$ = the number of independent sets of size $m$ of the graph $G$. Number the seats 1, 2, ..., $2N$. There are two options:\n(A) seat 1 is occupied and so seats 2 and $2N$ are empty;\n(B) seat 1 is empty.\nThe number of possibilities in case (A) is $I(P_{2N-4}, N-2)$ and in case (B) is $I(P_{2N-2}, N-1)$. Using the ideas from solution 1 or 2 it is easy to show that $I(P_{2k}, k) = \\frac{(k+2)(k+1)}{2}$. Hence the number of possibilities is equal to $\\frac{N(N-1)}{2} + \\frac{(N+1)N}{2} = N^2$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33263, "subject": "Mathematics (Multi-modal)", "question": "We say an integer $n$ is *naoish* if $n \\ge 90$ and the second-to-last digit of $n$ (in decimal notation) is equal to $9$. For example, $10798$, $1999$ and $90$ are naoish, whereas $9900$, $2009$ and $9$ are not. Nino expresses $2020$ as a sum:\n$$\n2020 = n_{1} + n_{2} + \\dots + n_{k}\n$$\nwhere each of the $n_j$ is naoish.\nWhat is the smallest positive number $k$ for which Nino can do this?", "options": [], "answer": "8", "solution": "Equivalently, $n$ is naoish iff $n = 100p - q$ where $p \\ge 1$ is an integer and $1 \\le q \\le 10$. Decomposing each $n_j$ in this way, we have:\n$$\n2020 = 100(p_1 + p_2 + \\dots + p_k) - q_1 - q_2 - \\dots - q_k.\n$$\nIn particular, $100 \\mid 2020 + q_1 + q_2 + \\dots + q_k$. The next multiple of $100$ above $2020$ is $2300$, so $2020 + q_1 + q_2 + \\dots + q_k \\ge 2300$. As each $q_j \\le 10$, this implies\n$$\nk \\ge \\frac{2300 - 2020}{10} = 8.\n$$\nIt is easy to find a solution that works with $k=8$. One example is $1390$ (once) and $90$ (seven times).\nLet $n_i \\equiv a_i \\pmod{10}$ with $0 \\le a_i < 10$. The second-to-last digit of $n_1 + \\dots + n_k$ is the last digit of $9k + c$, where $c$ is the total carry of the addition. As $a_1 + a_2 + \\dots + a_k \\le 9k < 10k$ the total carry $c$ satisfies $0 \\le c \\le k-1$. This means that we can write\n$$\n9k + c = 10k - (k - c) = 10k - i\n$$\nfor some $1 \\le i \\le k$. To get a sum of $2020$, we need to have $10k - i \\equiv 2 \\pmod{10}$, i.e. $i \\equiv 8 \\pmod{10}$ and, in particular, $i \\ge 8$. From $i \\le k$ we obtain $k \\ge 8$.\nIt is easy to find a solution that works with $k = 8$. One example is $1390$ (once) and $90$ (seven times).", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33264, "subject": "Mathematics (Multi-modal)", "question": "In triangle *ABC*, the length of the altitude through *A* is equal to $\\frac{15\\sqrt{3}}{14}$, $\\angle BAC = 120^\\circ$ and $|BC| = 7$. Find the lengths of the other two sides of triangle *ABC*.", "options": [], "answer": "3 and 5", "solution": "If we let $a = |BC|$, $b = |CA|$ and $c = |AB|$ and use that $\\cos(120^\\circ) = -1/2$, the Cosine Rule gives $49 = a^2 = b^2 + c^2 + bc$. Moreover, the area of triangle $ABC$ is equal to $\\frac{7}{2} \\cdot \\frac{15\\sqrt{3}}{14} = \\frac{15\\sqrt{3}}{4}$ and this is equal to $\\frac{bc\\sin(120^\\circ)}{2} = \\frac{bc\\sqrt{3}}{4}$, hence $bc = 15$. We obtain $b^2 + c^2 = 49 - bc = 34$ and so\n$$\n(b+c)^2 = b^2 + 2bc + c^2 = 34 + 30 = 64 \\\\\n(b-c)^2 = b^2 - 2bc + c^2 = 34 - 30 = 4.\n$$\nTherefore, $b + c = 8$ and $b - c = \\pm 2$. This leads to $(b, c) = (3, 5)$ or $(b, c) = (5, 3)$ and we see that the lengths of the other two sides of triangle $ABC$ are 3 and 5.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33265, "subject": "Mathematics (Multi-modal)", "question": "The triple $(1, 5, 7)$ is such that the squares $(1, 25, 49)$ are in arithmetic progression. Show that there are infinitely many triples $(a, b, c)$ of relatively prime positive integers such that $a^2$, $b^2$ and $c^2$ are in arithmetic progression.", "options": [], "answer": "Detailed solution", "solution": "Let $b^2 = u^2 + v^2$ be a Pythagorean triple with integers $u < v < b$. Then\n$$\n(v-u)^2 + (v+u)^2 = v^2 - 2uv + u^2 + v^2 + 2uv + u^2 = 2u^2 + 2v^2 = 2b^2.\n$$\nRearranging,\n$$\nb^2 - (v-u)^2 = (v+u)^2 - b^2.\n$$\nThus, setting $(a, b, c) = (v-u, b, v+u)$ produces squares in arithmetic progression. It is clear that no two Pythagorean triples produce the same arithmetic progression, and that relative primality is preserved. Thus, the infinitude of Pythagorean triples implies there are infinitely many square arithmetic progressions.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33266, "subject": "Mathematics (Multi-modal)", "question": "Let $\\mathbb{N}$ denote the set of all non-negative integers (including zero). A function $f: \\mathbb{N} \\to \\mathbb{N}$ satisfies for all $a, b \\in \\mathbb{N}$\n$$\nf(a + b^2) = f(a) + f(b^2) + ab^2.\n$$\nGiven that $f(40) = 2020$ find $f(1)$.", "options": [], "answer": "31", "solution": "Putting $b = 1$ in the recurrence relation, we have: $f(a+1) = f(a) + f(1) + a$. It is then an easy inductive proof that for $a \\ge 1$\n$$\nf(a) = a \\left( f(1) + \\frac{a-1}{2} \\right).\n$$\nOn substitution, this satisfies the functional equation for any $a, b \\in \\mathbb{N}$ and so all solutions are of this form. Given $f(40) = 2020$ we must have:\n$$\n2020 = 40 \\left( f(1) + \\frac{39}{2} \\right).\n$$\nThis implies $f(1) = 31$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33267, "subject": "Mathematics (Multi-modal)", "question": "Alice has written down an integer $x$ in decimal notation. Bob takes the first (left-most) digit of $x$ (which is not zero) and moves it to the far right, shifting all the other digits one space to the left. Alice remarks that the result of this operation is $3x$. Find all possible values of $x$.", "options": [], "answer": "All integers consisting of c repetitions of 142857 or c repetitions of 285714 for any positive integer c; equivalently x = ((10^{6c} − 1)/(10^6 − 1)) · 142857 · a with c ≥ 1 and a ∈ {1, 2}.", "solution": "Let the number of digits of $x$ be $d$, the leading digit of $x$ be $1 \\le a \\le 9$ and the remaining $d-1$ digits be $1 \\le b \\le 10^d - 1$. There is no solution with $d=1$, so we can assume $d > 1$. Then the equations to solve are:\n$$\n\\begin{align*}\nx &= 10^{d-1}a + b \\\\\n3x &= 10b + a\n\\end{align*}\n$$\nAs $3x$ has the same number of digits as $x$, the leading digit of $x$ must be $a = 1, 2$ or $3$. Eliminating $x$, we obtain\n$$\na(3 \\cdot 10^{d-1} - 1) = 7b.\n$$\nAs $b$ has $d-1$ digits, we have $b < 10^{d-1}$, which gives $(3a - 7)10^{d-1} < a$. Because $d > 1$ we can now exclude $a = 3$, so we must have $a = 1$ or $a = 2$. As $1 \\le a \\le 3$ it also follows that $7$ divides $3 \\cdot 10^{d-1} - 1$, so that\n$$\n10^d \\equiv 3 \\cdot 10^{d-1} \\equiv 1 \\pmod{7}.\n$$\nChecking powers of 10 (mod 7), we confirm that 10 is a primitive root and so $10^d \\equiv 1 \\pmod 7$ if and only if $d \\equiv 0 \\pmod 6$. So let us write $d = 6c$ for an integer $c > 0$, then solutions must take the form:\n$$\nb = \\frac{a}{7} (3 \\cdot 10^{6c-1} - 1) \\quad \\text{with } c > 0 \\text{ and } a \\in \\{1, 2\\}.\n$$\nAdding the initial digit, we have:\n$$\n\\begin{align*}\nx &= 10^{6c-1}a + \\frac{a}{7} (3 \\cdot 10^{6c-1} - 1) \\\\\n&= \\frac{a}{7} (7 \\cdot 10^{6c-1} + 3 \\cdot 10^{6c-1} - 1) = \\frac{a}{7} (10^{6c} - 1) \\\\\n&= \\frac{10^{6c} - 1}{10^6 - 1} \\cdot \\frac{10^6 - 1}{7} \\cdot a = \\frac{10^{6c} - 1}{10^6 - 1} \\cdot 142857 \\cdot a.\n\\end{align*}\n$$\nFor any $c \\ge 1$, we note that $(10^{6c} - 1)/(10^c - 1) = \\sum_{k=0}^{c-1} 10^{6k}$ consists of $c$ ones, each separated by five zeros. Because $2 \\cdot 142857 = 285714$ the solutions to the problem are numbers of the following form:\n\n142857 repeated $c$ times and 285714 repeated $c$ times, $c \\ge 1$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33268, "subject": "Mathematics (Multi-modal)", "question": "Let $x_1, x_2, \\dots, x_{2020}$ be non-negative real numbers such that\n$$\nx_i + x_{i+1} + x_{i+2} \\le 2 \\quad \\text{for } i = 1, 2, \\dots, 2018.\n$$\nShow that\n$$\n\\sum_{i=1}^{2018} x_i x_{i+2} \\le 1009.\n$$", "options": [], "answer": "Detailed solution", "solution": "Let us consider the products in pairs, starting with $x_1x_3 + x_2x_4$. This relates to four consecutive terms. Setting $c = \\max\\{x_1, x_4\\}$ gives $x_1x_3 \\le c x_3$ and $x_2x_4 \\le c x_2$. Moreover, the assumptions imply $c + x_2 + x_3 \\le 2$ and so\n$$\nx_1x_3 + x_2x_4 \\le c(x_2 + x_3) \\le \\left(\\frac{c + x_2 + x_3}{2}\\right)^2 \\le 1\n$$\nusing AM-GM in the middle. More generally, for $i = 1, 2, \\dots, 1009$ the same logic implies $x_{2i-1}x_{2i+1} + x_{2i}x_{2i+2} \\le 1$. Adding these inequalities gives the required result.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33269, "subject": "Mathematics (Multi-modal)", "question": "In the usual notation for a triangle $ABC$, prove that\n$$\n2 \\sin \\frac{A}{2} \\le \\frac{a}{\\sqrt{bc}},\n$$\nwith equality iff $c = b$. Deduce, or prove otherwise, that\n$$\n8 \\sin \\frac{A}{2} \\sin \\frac{B}{2} \\sin \\frac{C}{2} \\le 1,\n$$\nand\n$$\n\\sin^2 \\frac{A}{2} + \\sin^2 \\frac{B}{2} + \\sin^2 \\frac{C}{2} \\le \\frac{a^3 + b^3 + c^3}{4abc},\n$$\nwith equality in both cases iff $ABC$ is equilateral.", "options": [], "answer": "Detailed solution", "solution": "The half-angle formula, $2\\sin^2(A/2) = 1 - \\cos A$, and the Cosine-Rule give\n$$\n4 \\sin^2 \\frac{A}{2} = 2(1 - \\cos A) = 2 - \\frac{b^2 + c^2 - a^2}{bc} = \\frac{a^2 - (b-c)^2}{bc} \\le \\frac{a^2}{bc},\n$$\nwith equality iff $b = c$. Because $\\sin(A/2) > 0$, we can take square roots to obtain the first inequality. The second and third inequalities follow immediately. Here is another approach to the third one:\n$$\n\\begin{aligned}\n& 4 \\left( \\sin^2 \\frac{A}{2} + \\sin^2 \\frac{B}{2} + \\sin^2 \\frac{C}{2} \\right) \\\\\n&= 2(1 - \\cos A) + 2(1 - \\cos B) + 2(1 - \\cos C) \\\\\n&= 6 - \\frac{b^2 + c^2 - a^2}{bc} - \\frac{c^2 + a^2 - b^2}{ca} - \\frac{a^2 + b^2 - c^2}{ab} \\\\\n&= 6 - \\left( \\frac{b}{c} + \\frac{c}{b} + \\frac{a}{c} + \\frac{a}{c} + \\frac{a}{b} + \\frac{b}{a} \\right) + \\frac{a^3 + b^3 + c^3}{abc} \\\\\n&= 9 - (a+b+c) \\left( \\frac{1}{a} + \\frac{1}{b} + \\frac{1}{c} \\right) + \\frac{a^3 + b^3 + c^3}{abc} \\\\\n&\\le \\frac{a^3 + b^3 + c^3}{abc},\n\\end{aligned}\n$$\nsince, by the HM-AM inequality, for any positive numbers $x, y, z$,\n$$\n(x + y + z) \\left( \\frac{1}{x} + \\frac{1}{y} + \\frac{1}{z} \\right) \\ge 9,\n$$\nwith equality iff $x = y = z$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33270, "subject": "Mathematics (Multi-modal)", "question": "Find the smallest number with exactly $2020$ distinct positive divisors. You should include $1$ and the number as divisors.", "options": [], "answer": "2^100 * 3^4 * 5 * 7", "solution": "The divisors of an integer $n$ with prime factorisation\n$$\nn = p_1^{e_1} \\cdot p_2^{e_2} \\cdots p_k^{e_k}\n$$\nare all of the form $p_1^{f_1} \\cdot p_2^{f_2} \\cdots p_k^{f_k}$, where $0 \\le f_i \\le e_i$. Hence, the number of positive divisors of $n$ is equal to $(e_1+1)(e_2+1)\\cdots(e_k+1)$ and for each prime number $p_i$ that divides $n$, we have $e_i+1 \\ge 2$.\nWe are looking for the smallest $n$ for which $(e_1+1)(e_2+1)\\cdots(e_k+1) = 2020$. Because $2020 = 2^2 \\cdot 5 \\cdot 101$, $n$ can have at most $4$ different prime divisors. We will consider, one after the other, the cases $k=1, 2, 3, 4$.\n\nk = 4. The four factors $e_i+1$ must be $2, 2, 5, 101$, hence the $e_i$ are $1, 1, 4, 100$. To make the number as small as possible, we pair the big $e_i$ with the smallest primes possible. This gives\n$$\nn = 2^{100} \\cdot 3^4 \\cdot 5^1 \\cdot 7^1 < 2^{100+8+3+3} = 2^{114}.\n$$\n\nk = 3. The set of three factors $e_i+1$ must be either $\\{4, 5, 101\\}$, or $\\{2, 10, 101\\}$, or $\\{2, 5, 202\\}$, or $\\{2, 2, 505\\}$. Again, pairing the larger powers with the smaller primes, we get the following possibilities:\n$$\n2^{100} \\cdot 3^4 \\cdot 5^3 > 2^{100+4+6} = 2^{110}\n$$\n$$\n2^{100} \\cdot 3^9 \\cdot 5^1 > 2^{100+9+2} = 2^{111}\n$$\n$$\n2^{201} \\cdot 3^4 \\cdot 5^1 > 2^{201}\n$$\n$$\n2^{504} \\cdot 3^1 \\cdot 5^1 > 2^{504}\n$$\nWe can reject the last two candidates as being too big. We will return to the first two at the end.\n\nk = 2. With two factors, we are only interested in case where the result will be less than $2^{114}$, so both exponents, $e_1$ and $e_2$, must be less than $57$, otherwise result will be at least $2^{57} \\cdot 3^{57} > 2^{114}$. One of the two factors $e_i+1$ of $2020$ must be larger than $\\sqrt{2020} > 44$, so we are looking for a factor of $2020$ between $44$ and $58$. From the prime factorisation of $2020$ we see that there is no factor in this range.\n\nk = 1. The smallest possibility with one factor is $2^{2019}$, which is way too big. We are left with three candidates:\n$$\n2^{100} \\cdot 3^4 \\cdot 5 \\cdot 7,\n$$\n$$\n2^{100} \\cdot 3^4 \\cdot 5^3\n$$\n$$\n2^{100} \\cdot 3^9 \\cdot 5\n$$\nand need to decide which is the smallest. We can take out a common factor of $2^{100} \\cdot 3^4 \\cdot 5$ and compare $7, 5^2, 3^5$ and find the first is the smallest. Thus $2^{100} \\cdot 3^4 \\cdot 5 \\cdot 7$ is the smallest number with exactly $2020$ distinct positive divisors.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33271, "subject": "Mathematics (Multi-modal)", "question": "Let $a, b, c > 0$. Prove that\n$$\n\\frac{2}{(1+a)^2} + \\frac{2}{(1+b)^2} + \\frac{2}{(1+c)^2} \\ge \\frac{1}{1+ab} + \\frac{1}{1+bc} + \\frac{1}{1+ca}\n$$\nwith equality if and only if $a = b = c = 1$.", "options": [], "answer": "Detailed solution", "solution": "We first prove that if $a, b > 0$, then\n$$\n\\frac{1}{(1+a)^2} + \\frac{1}{(1+b)^2} \\ge \\frac{1}{1+ab}\n$$\nwith equality if and only if $a = b = 1$. To prove this we multiply through by $(1+a)^2(1+b)^2(1+ab)$ and simplify to obtain the equivalent inequality $a^3b+ab^3-a^2b^2-2ab+1 \\ge 0$. This can be written as $ab(a-b)^2+(ab-1)^2 \\ge 0$, which is clearly true. Equality occurs if and only if $a = b$ and $ab = 1$, that is $a = b = 1$.\n\nSimilarly\n$$\n\\frac{1}{(1+b)^2} + \\frac{1}{(1+c)^2} \\ge \\frac{1}{1+bc} \\quad \\text{with equality if and only if } b = c = 1,\n$$\n$$\n\\frac{1}{(1+c)^2} + \\frac{1}{(1+a)^2} \\ge \\frac{1}{1+ca} \\quad \\text{with equality if and only if } c = a = 1.\n$$\nAdding the three inequalities gives the desired result.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33272, "subject": "Mathematics (Multi-modal)", "question": "Let $AB$ be a chord of a circle $\\Omega$ with centre $M$, and $P$ a point on the segment $AB$. Circles $\\Omega_A$ and $\\Omega_B$ pass through $P$ and are tangent to $\\Omega$ at $A$ and $B$, respectively. Let $Q$ be the second intersection point of $\\Omega_A$ and $\\Omega_B$. Prove that $\\angle PQM$ is a right angle.", "options": [], "answer": "Detailed solution", "solution": "Let $T$ be the intersection point of the tangents to $\\Omega$ at $A$ and $B$. Because of the right angles at $A$ and $B$, the points $A$, $M$, $B$, $T$ all lie on the circle with diameter $TM$. Because $|TA| = |TB|$ and these lines are tangents to $\\Omega_A$ and $\\Omega_B$, respectively, $T$ must be on the radical axis of $\\Omega_A$ and $\\Omega_B$, i.e. on the line $PQ$. Hence, $\\angle PQM$ is a right angle iff $Q$ is on the circle with diameter $TM$.\n![](attached_image_1.png)\n\nTo show this, first note that $\\angle AMT = \\frac{1}{2}\\angle AMB = \\angle TAB$ by the Alternate Segment Theorem in circle $\\Omega$ with centre $M$ and that $\\angle TAB = \\angle AQP$ by the Alternate Segment Theorem in circle $\\Omega_A$. Hence, $\\angle AMT = \\angle AQT$ which implies that $A$, $Q$, $M$, $T$ are concyclic. As $MT$ is a diameter of this circle and $P$ is on $QT$, it follows that $\\angle PQM$ is a right angle.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33273, "subject": "Mathematics (Multi-modal)", "question": "Suppose $a$, $b$, $c$ are the side lengths of an isosceles triangle $ABC$ with area $\\Delta$. Prove that\n$$\n\\sqrt{a^2 + b^2 - 4\\Delta} + \\sqrt{a^2 + c^2 - 4\\Delta} \\ge \\sqrt{b^2 + c^2 - 4\\Delta}.\n$$\nDetermine the cases of equality.", "options": [], "answer": "Equality holds exactly in the following cases:\n- If a = c, when the triangle is right-angled at B.\n- If a = b, when the triangle is right-angled at C.\n- If b = c, when 5a^2 = 2b^2 (equivalently, cos A = 4/5 and sin A = 3/5).", "solution": "Clearly, the desired inequality holds if either $a = b$ or $a = c$, in which case a term on the LHS is equal to that on the RHS. If, say, $a = c$, equality holds iff $a^2 + c^2 = 4\\Delta = 2ac \\sin B$, i.e., $\\sin B = 1$, which means that $ABC$ is right-angled with the right angle at $B$. If $a = b$, equality holds iff $ABC$ is right-angled with the right angle at $C$.\n\nSuppose $b = c$. Then the inequality holds iff $4(a^2 + b^2 - 4\\Delta) \\ge (2b^2 - 4\\Delta)$, equivalently, $2a^2 + b^2 \\ge 6\\Delta$, or $4a^4 + 4a^2b^2 + b^4 \\ge 36\\Delta^2$. Heron's formula, $\\Delta = \\sqrt{s(s-a)(s-b)(s-c)}$, can be rewritten as\n$$\n16\\Delta^2 = (a+b+c)(-a+b+c)(a-b+c)(a+b-c).\n$$\nWhen $b = c$, the right hand side becomes $(4b^2 - a^2)a^2$, thus we want to show\n$$\n4a^4 + 4a^2b^2 + b^4 \\ge \\frac{9}{4}(4a^2b^2 - a^4).\n$$\nSimplifying this, the desired inequality holds iff\n$$\n25a^4 + 4b^4 \\ge 20a^2b^2, \\text{ namely, } (5a^2 - 2b^2)^2 \\ge 0,\n$$\nwhich is true, with equality iff $5a^2 = 2b^2$.\n\nFor an alternative way to prove $2a^2 + b^2 \\ge 6\\Delta$, observe that $a = 2b \\sin(A/2)$ in an isosceles triangle with $b = c$. Using $2\\Delta = bc \\sin A = b^2 \\sin A$, the desired inequality becomes\n$$\n8b^2 \\sin^2 \\frac{A}{2} + b^2 \\ge 3b^2 \\sin A.\n$$\nUpon cancelling $b^2$ and using $2\\sin^2(A/2) = 1 - \\cos A$, this simplifies to\n$$\n4(1 - \\cos A) + 1 \\ge 3\\sin A \\quad \\text{or} \\quad 5 \\ge 3\\sin A + 4\\cos A.\n$$\nThe latter is true because the tangent to the unit circle at $(x, y) = (4/5, 3/5)$ has equation $5x + 3y = 4$ and all points $(\\cos A, \\sin A)$ on the unit circle are below this tangent.\n\nEquality occurs only for the point of tangency, which is $(\\cos A, \\sin A) = (4/5, 3/5)$. As $a = 2b \\sin(A/2)$ and $2 \\sin^2(A/2) = 1 - \\cos A$, we see now that equality occurs iff $a^2 = 4b^2 \\sin^2(A/2) = 2b^2(1 - \\cos A) = 2b^2/5$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33274, "subject": "Mathematics (Multi-modal)", "question": "Evaluate the sums\n$$\n\\sum_{k=1,\\ k \\neq r}^{n} \\cot \\left( \\frac{(k-r)\\pi}{n+1} \\right), \\quad r = 1, 2, \\dots, n.\n$$", "options": [], "answer": "S_r^n = \\cot\\left(\\frac{r\\pi}{n+1}\\right)", "solution": "Recall that $\\cot(x + \\pi) = \\cot(x)$ and $\\cot(-x) = -\\cot(x)$ for all $x \\notin \\mathbb{Z}\\pi$, in particular\n$$\n\\cot\\left(\\frac{(k-r)\\pi}{n+1}\\right) = \\cot\\left(\\frac{(n+1+k-r)\\pi}{n+1}\\right). \\qquad (1)\n$$\nDefine\n$$\nS_r^n := \\sum_{k=1,\\ k \\neq r}^{n} \\cot \\left( \\frac{(k-r)\\pi}{n+1} \\right) \\quad \\text{for } 1 \\le r \\le n.\n$$\nWe replace the terms for $1 \\le k < r$ according to (1) and obtain\n$$\n\\begin{align*}\nS_r^n &= \\sum_{k=1}^{r-1} \\cot \\left( \\frac{(n+1+k-r)\\pi}{n+1} \\right) + \\sum_{k=r+1}^{n} \\cot \\left( \\frac{(k-r)\\pi}{n+1} \\right) \\\\\n&= \\sum_{k=n+2}^{n+r} \\cot \\left( \\frac{(k-r)\\pi}{n+1} \\right) + \\sum_{k=r+1}^{n} \\cot \\left( \\frac{(k-r)\\pi}{n+1} \\right) \\\\\n&= \\sum_{k=r+1}^{n+r} \\cot \\left( \\frac{(k-r)\\pi}{n+1} \\right) - \\cot \\left( \\frac{(n+1-r)\\pi}{n+1} \\right).\n\\end{align*}\n$$\nNote that when $r=1$ or $r=n$ some of the sums above are empty and the calculation is correct in these cases as well. We evaluate the sum in the last expression using Gauss's trick of reversing the sum:\n$$\n\\begin{align*}\n2 \\sum_{k=r+1}^{n+r} \\cot \\left( \\frac{(k-r)\\pi}{n+1} \\right) &= 2 \\sum_{j=1}^{n} \\cot \\left( \\frac{j\\pi}{n+1} \\right) \\\\\n&= \\sum_{j=1}^{n} \\left( \\cot \\left( \\frac{j\\pi}{n+1} \\right) + \\cot \\left( \\frac{(n+1-j)\\pi}{n+1} \\right) \\right )\n\\end{align*}\n$$\nand this is equal to zero, because\n$$\n\\cot\\left(\\frac{(n+1-j)\\pi}{n+1}\\right) = \\cot\\left(\\pi - \\frac{j\\pi}{n+1}\\right) = \\cot\\left(-\\frac{j\\pi}{n+1}\\right) = -\\cot\\left(\\frac{j\\pi}{n+1}\\right).\n$$\nTherefore,\n$$\nS_r^n = -\\cot\\left(\\frac{(n+1-r)\\pi}{n+1}\\right) = \\cot\\left(\\frac{r\\pi}{n+1}\\right).\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33275, "subject": "Mathematics (Multi-modal)", "question": "Circles $\\Omega_1$, centre $Q$, and $\\Omega_2$, centre $R$, touch externally at $B$. A third circle, $\\Omega_3$, which contains $\\Omega_1$ and $\\Omega_2$, touches $\\Omega_1$ and $\\Omega_2$ at $A$ and $C$, respectively. Point $C$ is joined to $B$ and the line $BC$ is extended to meet $\\Omega_3$ at $D$.\nProve that $QR$ and $AD$ intersect on the circumference of $\\Omega_1$.", "options": [], "answer": "Detailed solution", "solution": "Let $M$ be the centre of $\\Omega_3$. Then, $A$, $Q$, $M$ are collinear as are $C$, $R$, $M$. Let $H$ be the intersection point of the lines $QR$ and $AD$.\n\n![](attached_image_1.png)\n\nBecause $|BR| = |CR|$ and $|DM| = |CM|$, we have $\\angle MDC = \\angle MCD = \\angle RCB = \\angle RBC$, hence $DM$ is parallel to $BR$. Using that $R$, $B$, $Q$, $H$ are collinear and $|DM| = |AM|$ we now get $\\angle AHQ = \\angle ADM = \\angle MAD = \\angle QAH$ hence triangle $AHQ$ is isosceles with $|QH| = |QA|$ and so $H$ is on $\\Omega_1$.\n\nAlternatively, we may consider $\\triangle HBA$, which has a right angle at $A$. Because the centre, $Q$, of $\\Omega_1$ is on $HB$, this implies that $H$ must be on $\\Omega_1$.\nDraw tangents at $A$ and $C$ to $\\Omega_3$ and let them intersect at $T$. The radical axis of two circles that are tangent to each other is their common tangent. Therefore, $T$ is the radical centre of $\\Omega_1$, $\\Omega_2$ and $\\Omega_3$, which implies that $BT$ is the common tangent of $\\Omega_1$ and $\\Omega_2$. Hence, $TB$ is perpendicular to $QR$. Let $E$ be the second intersection point of the line $AB$ with $\\Omega_3$, $H$ the intersection point of the lines $QR$ and $AD$, and $F$ the intersection point of $TB$ and $DE$. From $|TA| = |TB| = |TC|$ we obtain\n$$\n\\begin{align*}\n\\alpha &:= \\angle TAC = \\angle TCA \\\\\n\\beta &:= \\angle TAB = \\angle TBA \\\\\n\\gamma &:= \\angle TCB = \\angle TBC = \\angle FBD.\n\\end{align*}\n$$\nConsidering the angle sum in $\\triangle ABC$ we see that $180^\\circ = \\angle BAC + \\angle ABC + \\angle BCA = (\\beta - \\alpha) + (\\beta + \\gamma) + (\\gamma - \\alpha) = 2(\\gamma + \\beta - \\alpha)$, hence $\\gamma + \\beta - \\alpha = 90^\\circ$.\nConsidering the external angle at $B$ in $\\triangle BCE$, we obtain $\\angle BCE + \\angle AEC = \\angle ABC$, i.e. $\\angle BCE = \\angle ABC - \\angle AEC = \\gamma + \\beta - \\alpha = 90^\\circ$.\nThe Alternate Segment Theorem applied to circle $\\Omega_3$ gives us\n$$\n\\begin{align*}\n\\angle AEC &= \\angle TAC = \\alpha \\\\\n\\angle ADE &= \\angle TAB = \\beta \\\\\n\\angle DEC &= \\angle TCB = \\gamma.\n\\end{align*}\n$$\nSimilarly, when we consider the external angle at $B$ in $\\triangle BAD$ we can use $\\angle ADC = \\angle AEC = \\alpha$ to obtain $\\angle BAD = 90^\\circ$.\nWe can now conclude in two different ways. One way is to consider the triangles $\\triangle DFB$ and $\\triangle DCE$ which have an angle in common at $D$. Because $\\angle FBD = \\angle DEC = \\gamma$, we see that $\\angle DFB = \\angle DCE = 90^\\circ$. Hence $TB$ is perpendicular to $DE$ and so $DE \\parallel QR$. This implies that\n$$\n\\angle AHR = \\angle ADE = \\beta = \\angle TAB,\n$$\nhence $H$ is on $\\Omega_1$ by the converse of the Alternate Segment Theorem.\n\nAlternatively, we may consider $\\triangle HBA$, which has a right angle at $A$. Because the centre, $Q$, of $\\Omega_1$ is on $HB$, this implies that $H$ must be on $\\Omega_1$.\nWe use the diagram and notations from Solution 2 and let $M$ be the centre of $\\Omega_3$. Then the homothety of centre $A$ sending $\\Omega_1$ to $\\Omega_3$ sends $QB$ to $ME$ and the homothety of centre $C$ sending $\\Omega_2$ to $\\Omega_3$ sends $RB$ to $MD$. Since $Q$, $B$, $R$ are collinear, it follows that $D$, $M$, $E$ are collinear hence $\\angle BAD = 90^\\circ$. We conclude as in Solution 2.\nExtend $AQ$ to the diameter $AL$ of circle $\\Omega_1$ and let $K$ be the second intersection point of $AC$ with $\\Omega_1$. Let $M$ be the centre of $\\Omega_3$.\n\n![](attached_image_2.png)\n\nConsider the angle between $AC$ and the common tangent to $\\Omega_1$ and $\\Omega_3$ at $A$. The Alternate Segment Theorem for these circles then yields\n$$\n\\angle ADC = \\angle ALK. \\qquad (2)\n$$\nNote that $\\angle QBD = \\angle RBC = \\angle BCR$ as well as $\\angle QAB = \\angle QBA$. Because $\\angle MAC = \\angle ACM$, we get\n$$\n\\angle BCR + \\angle BCA = \\angle QBA + \\angle BAC. \\qquad (3)\n$$\nConsidering the external angle of triangle $ABC$ at $B$, we get\n$$\n\\angle BAC + \\angle BCA = \\angle QBA + \\angle QBD. \\qquad (4)\n$$\nSubtracting (3) from (4), we obtain now $\\angle BAC = \\angle QBD$. Together with $\\angle QAB = \\angle QBA$ we now see that\n$$\n\\angle LAK = \\angle QAB + \\angle BAC = \\angle QBA + \\angle QBD = \\angle ABD.\n$$\nIf we combine this with (2), we get\n$$\n\\angle DAB = 180^\\circ - \\angle ADC - \\angle ABD = 180^\\circ - \\angle ALK - \\angle LAK = \\angle AKL = 90^\\circ.\n$$\nIf $H$ denotes the second intersection point of $AD$ and $\\Omega_1$, we have $\\angle HAB = \\angle DAB = 90^\\circ$, i.e. $HB$ is a diameter of $\\Omega_1$ and so $H$ is the intersection point of $QR$ and $AD$.\nLet $H$ be the intersection point of the lines $QR$ and $AD$. Lines $AQ$ and $CR$ meet at the centre $M$ of circle $\\Omega_3$.\n\n![](attached_image_3.png)\n\nFrom $\\triangle BRC$ we see that $\\angle QRM = \\angle BCR + \\angle RBC = 2\\angle RBC = 2\\angle HBD$. The central angle $\\angle AMC$ stands on the same arc of $\\Omega_3$ as $\\angle ADC$, hence $\\angle QMR = 2\\angle HDB$. Considering external angles of triangles $QMR$ and $HDB$ we obtain\n$$\n\\angle AQR = \\angle QMR + \\angle QRM = 2\\angle HDB + 2\\angle HBD = 2\\angle AHB\n$$\nand this implies that $H$ is on $\\Omega_1$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33276, "subject": "Mathematics (Multi-modal)", "question": "Let $\\mathbb{N}$ denote the strictly positive integers. A function $f : \\mathbb{N} \\to \\mathbb{N}$ satisfies the following for all $n \\in \\mathbb{N}$:\n$$\n\\begin{aligned}\nf(1) &= 1 \\\\\nf(f(n)) &= n \\\\\nf(2n) &= 2f(n) + 1.\n\\end{aligned}\n$$\nFind the value of $f(2020)$.", "options": [], "answer": "1051", "solution": "From $f(f(n)) = n$ we obtain for all integers $k, n > 0$ that $n = f(k)$ if and only if $f(n) = k$.\n\nWe first show that $f(2n+1) = 2f(n)$ for all $n > 0$. To see this, let $k = f(n)$. Then $n = f(k)$ and $f(2k) = 2f(k)+1 = 2n+1$ and so $2f(n) = 2k = f(2n+1)$.\n\nNext we show that $f(2^k n) = 2^k f(n) + 2^k - 1$ for all $k \\ge 0$ and $n \\ge 1$. We prove this by induction on $k$. When $k = 0$ this is obvious. For the inductive step we use the given $f(2n) = 2f(n) + 1$ to obtain\n$$\n\\begin{aligned} f(2^{k+1}n) &= f(2 \\cdot 2^k n) = 2f(2^k n) + 1 \\\\ &= 2(2^k f(n) + 2^k - 1) + 1 = 2^{k+1}f(n) + 2^{k+1} - 1. \\end{aligned}\n$$\nBecause $f(1) = 1$, we obtain $f(2^k) = 2^{k+1} - 1$. Using $f(f(n)) = n$ this gives $f(2^{k+1} - 1) = 2^k$ for all $k \\ge 0$.\n\nWe can now work backwards to find $f(2020)$:\n$$\n\\begin{align*} f(2020) &= f(4 \\cdot 505) = 4f(505) + 3 \\\\ f(505) &= 2f(252) \\\\ f(252) &= f(4 \\cdot 63) = 4f(63) + 3 \\\\ f(63) &= f(2^6 - 1) = 2^5 = 32. \\end{align*}\n$$\nWe finally obtain $f(252) = 4 \\cdot 32 + 3 = 131$, $f(505) = 262$ and $f(2020) = 4 \\cdot 262 + 3 = 1051$.\nLook for a sequence $(a_1, b_1), (a_2, b_2), (a_3, b_3), \\dots, (a_k, b_k)$ such that $(a_1, b_1) = (1, 1)$, $a_k = 2020$ and for $j \\ge 2$, either $(a_j, b_j) = (b_{j-1}, a_{j-1})$ or $(a_j, b_j) = (2a_{j-1}, 2b_{j-1} + 1)$. The three given conditions for $f$ imply that for any such sequence $b_j = f(a_j)$ for $1 \\le j \\le k$. In particular, $f(2020) = b_k$. The following sequence works (ignore the fourth column for now)\n\n| j | $a_j$ | $b_j$ | $a_j + b_j + 1$ |\n|----|-------|-------|-----------------|\n| 1 | 1 | 1 | 3 |\n| 2 | 2 | 3 | 6 |\n| 3 | 4 | 7 | 12 |\n| 4 | 8 | 15 | 24 |\n| 5 | 16 | 31 | 48 |\n| 6 | 32 | 63 | 96 |\n| 7 | 63 | 32 | 96 |\n| 8 | 126 | 65 | 192 |\n| 9 | 252 | 131 | 384 |\n| 10 | 131 | 252 | 384 |\n| 11 | 262 | 505 | 768 |\n| 12 | 505 | 262 | 768 |\n| 13 | 1010 | 525 | 1536 |\n| 14 | 2020 | 1051 | 3072 |\n\nThus, $f(2020) = 1051$. This is a complete proof, but the sequence has been pulled out of a hat. To motivate the sequence, we note that $a_j+b_j+1$ either stays constant or doubles with each unit increase in $j$. As $a_1+b_1+1=3$, it follows that $a_j+b_j+1$ is equal to 3 multiplied by a power of 2 for all $j$. So we can start at the bottom with $a_{14} = 2020$ and guess what power of 2 we have to multiply by 3 to get $2020+f(2020)+1$. The next number of the required form is 3072, which (if correct, we don't yet know this) would imply $f(2020) = 1051$. We then work backwards using:\n$$\n(a_{j-1}, b_{j-1}) = \\begin{cases} \\left(\\frac{a_j}{2}, \\frac{b_j-1}{2}\\right) & a_j \\text{ even, } b_j \\text{ odd} \\\\ (b_j, a_j) & a_j \\text{ odd, } b_j \\text{ even.} \\end{cases}\n$$\nIt is not obvious that this approach will work. When we start with $b_k$ such that $b_k+2021 = 3 \\cdot 2^n$, the process will always terminate with a pair $(a_1, b_1) = (a, 1)$. However, only with starting value $b_k = 1051$ we get $a = 1$ as required.\n\n$$\nf(n) = 3 \\cdot 2^k - n - 1.\n$$\nAfter showing that $f(2n+1) = 2f(n)$ as in Solution 1, it is possible to work out the first few $f(n)$ by hand. These values suggest that when $k \\ge 0$ is an integer and $2^k \\le n < 2^{k+1}$ we have\n$$\nf(n) = 3 \\cdot 2^k - n - 1.\n$$\nWe show this by induction on $k \\ge 0$. When $k = 0$ we must have $n = 1$ and the claim is true, because $f(1) = 1$. For the inductive step we assume the formula is true for numbers strictly between $2^{k-1} - 1$ and $2^k$, for a given $k \\ge 1$.\n\nWe consider two cases: firstly when $n$ is even, and secondly when $n$ is odd. If $n$ is even and $2^k \\le n < 2^{k+1}$, then $2^{k-1} \\le \\frac{n}{2} < 2^k$ and so, by assumption,\n$$\nf\\left(\\frac{n}{2}\\right) = 3 \\cdot 2^{k-1} - \\frac{n}{2} - 1.\n$$\nSubstituting the doubling rule from the original question it follows that:\n$$\nf(n) = 2f\\left(\\frac{n}{2}\\right) + 1 = 3 \\cdot 2^k - n - 1.\n$$\nThus, the result holds for even $n$. Now if $n$ is odd, $2^k \\le n < 2^{k+1}$ implies\n$$\n3 \\cdot 2^k - 2^{k+1} - 1 < 3 \\cdot 2^k - n - 1 \\le 3 \\cdot 2^k - 2^k - 1.\n$$\nSimplifying, and using the fact that all three quantities are integers, this is equivalent to:\n$$\n2^k \\le 3 \\cdot 2^k - n - 1 < 2^{k+1}.\n$$\nNow as the middle term is even, we have earlier proved the formula for $f$ for even numbers in this range, which gives:\n$$\nf(3 \\cdot 2^k - n - 1) = 3 \\cdot 2^k - (3 \\cdot 2^k - n - 1) - 1 = n.\n$$\nThen the self-inverse property of $f$ implies $f(n) = 3 \\cdot 2^k - n - 1$. The induction step is now complete. Having proved this result, we finally note that:\n$$\n2^{10} = 1024 \\le 2020 < 2^{11}\n$$\nand so we can immediately calculate $f(2020) = 1051$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33277, "subject": "Mathematics (Multi-modal)", "question": "Determine the last (rightmost) three decimal digits of $n$ where:\n$$\nn = 1 \\times 3 \\times 5 \\times 7 \\times \\dots \\times 2019.\n$$", "options": [], "answer": "875", "solution": "Recall that the Chinese Remainder Theorem (CRT) states that, for any given integers $r$, $s$ and any two positive co-prime integers $a$, $b$ there exists exactly one integer $x$ that satisfies $0 \\le x < ab$, $x \\equiv r \\pmod a$ and $x \\equiv s \\pmod b$. We can apply CRT here with $a = 125$ and $b = 8$, because $1000 = 125 \\cdot 8$ and $\\text{gcd}(125, 8) = 1$.\nBecause $125$ is odd and $125 < 2019$ it is clear that $n \\equiv 0 \\pmod{125}$. To calculate $n \\pmod 8$, note that $1 \\cdot 3 \\cdot 5 \\cdot 7 \\equiv 1 \\pmod 8$. Because $n$ is the product of $(2019+1)/2 = 1010$ odd integers and $1010 = 4 \\cdot 252 + 2$, we can split the given product as follows\n$$\nn = \\prod_{k=0}^{251} (8k + 1)(8k + 3)(8k + 5)(8k + 7) \\cdot 2017 \\cdot 2019\n$$\nTherefore, $n \\equiv (1 \\cdot 3 \\cdot 5 \\cdot 7)^{252} \\cdot 1 \\cdot 3 \\equiv 3 \\pmod 8$. Alternatively, when we use the usual notation for odd factorials, $(2k-1)!! = \\prod_{j=1}^k (2j-1)$, we can prove by induction on $k \\ge 1$ the following table:\n\n| $k$ (mod 4) | 0 | 1 | 2 | 3 |\n|-------------|---|---|---|---|\n| $(2k - 1)!!$ (mod 8) | 1 | 1 | 3 | 7 |\n\nWhen $k=1$ this is obvious. For the inductive step we use that $(2k+1)!! = (2k+1)(2k-1)!!$. Then putting $k=1010$ we have $k \\equiv 2 \\pmod 4$ and so $n = (2k-1)!! \\equiv 3 \\pmod 8$.\nHaving established that $n \\equiv 0 \\pmod{125}$ and $n \\equiv 3 \\pmod 8$, to find $n \\pmod{1000}$, we note that $n$ is an odd multiple of $125$. We can either check the five odd multiples of $125$ below $1000$ to see which one is congruent to $3$ (mod $8$), or we solve the congruence $125k \\equiv 3 \\pmod 8$. This is done by first observing that $125 \\equiv 5 \\pmod 8$ which gives $5k \\equiv 3 \\pmod 8$, and then multiplying both sides by $5$ to obtain $k \\equiv 25k \\equiv 5 \\cdot 3 \\equiv 7 \\pmod 8$. Hence, $n \\equiv 7 \\cdot 125 \\equiv 875 \\pmod{1000}$, i.e. the last three digits of $n$ are $875$.\n\nAlternatively, we may use the uniqueness in the CRT. It would then be sufficient to check that $875 \\equiv 0 \\pmod{125}$ and $875 \\equiv 3 \\pmod 8$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33278, "subject": "Mathematics (Multi-modal)", "question": "Prove that if $x, y, z$ are non-negative numbers, then\n$$\nx^3 + y^3 + z^3 + 3xyz \\geq x^2(y + z) + y^2(z + x) + z^2(x + y).\n$$\nDetermine the cases of equality.", "options": [], "answer": "Equality holds precisely when either two numbers are equal and the third is zero, or all three numbers are equal.", "solution": "This inequality is known as Schur's inequality. By symmetry, we may assume\n$0 \\le x \\le y \\le z$ and introduce $t = y - x$ and $s = z - y$, which satisfy $t, s \\ge 0$.\nUsing $y = t + x$ and $z = y + s = t + s + x$ the desired inequality can be\nrestated as follows.\n$$\n\\begin{align*}\n0 &\\le \\sum_{\\text{cyc}} (x^3 - x^2(y+z) + xyz) \\\\\n&= x(x-y)(x-z) + y(y-z)(y-x) + z(z-x)(z-y) \\\\\n&= xt(t+s) - (t+x)ts + (t+s+x)(t+s)s \\\\\n&= t(x(t+s) - (t+x)s) + (t+s+x)(t+s)s \\\\\n&= t^2(x-s) + (t^2 + t(2s+x) + s(s+x))s \\\\\n&= t^2x + ts(2s+x) + s^2(s+x),\n\\end{align*}\n$$\nwhich holds, because $x, t, s$ are non-negative. Equality holds iff $s = 0$ and\n$xt = 0$. i.e. $y = z$ and either $x = 0$ or $y = x$. Thus, there is equality iff either\n(i) $x = 0$ and $y = z$ or\n(ii) $y = 0$ and $z = x$ or\n(iii) $z = 0$ and $x = y$ or\n(iv) $x = y = z$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33279, "subject": "Mathematics (Multi-modal)", "question": "A pond has $2020$ lily pads arranged in a circle. At time zero, two frogs (Anthony and Clare) share the same lily pad. Every minute, Anthony jumps over $99$ lily pads in an anti-clockwise direction, to land on a pad $100$ removed from where the jump started. At the same time, Clare jumps over $100$ lily pads in a clockwise direction, to land on a pad $101$ removed from where the jump started.\nWhat is the first time that Anthony and Clare are again within five lily pads of each other?", "options": [], "answer": "201", "solution": "**Solution 1.** As we are concerned with the relative position of Anthony and Clare, the answer is unchanged if Anthony remains stationary and Clare jumps $201$ lily pads to the right.\nWhen does Clare next come close to Anthony? She makes one circuit of the pond after roughly $2020/201 \\approx 10$ jumps, but in fact after those $10$ jumps she has travelled $2010$ pads so is $10$ lily pads short of Anthony. After $20$ jumps, she is $20$ lily pads short of Anthony, and so on. Each circuit her shortfall relative to Anthony goes up by $10$, until after $100$ jumps she is $100$ short of Anthony. But then after one more jump ($101$ in total) she is $101$ lily pads past Anthony.\n\nAnd so it goes on; with each further loop Clare overshoots Anthony by $10$ pads less than the previous loop; after $111$ jumps, Clare overshoots Anthony by $91$; after $121$ Clare overshoots Anthony by $81$ and so on until after $201$ jumps, Clare overshoots Anthony by $1$ and they are on adjacent pads. Although the question asks for the first time Clare and Anthony are five or fewer pads apart, it turns out that the first time they are in this range, they are one pad apart.\n\n\n**Solution 2.** After $t$ jumps, Clare is $201t$ pads clockwise from Anthony, measured modulo $2020$, so we have to solve:\n$$\n201t \\in \\{-5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5\\} \\pmod{2020}.\n$$\nWe notice that $201^2 = 40401 \\equiv 1 \\pmod{2020}$ and so we can multiply both sides by $201$, to give:\n$$\nt \\in \\{-1005, -804, -603, -402, -201, 0, 201, 402, 603, 804, 1005\\} \\pmod{2020}\n$$\nThe smallest $t > 0$ in this set is $t = 201$ and this solves the problem.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33280, "subject": "Mathematics (Multi-modal)", "question": "A trapezium $ABCD$, in which $AB$ is parallel to $DC$, is inscribed in a circle of radius $R$ and centre $O$. The non-parallel sides $DA$ and $CB$ are extended to meet at $P$ while diagonals $AC$ and $BD$ intersect at $E$.\nProve that $|OE| \\cdot |OP| = R^2$.", "options": [], "answer": "Detailed solution", "solution": "Let $F$ be the mid-point if $AB$, then $P$, $E$, $O$, $F$ are collinear. We have $\\angle AOB = 2\\angle ACB$, hence using symmetry, $\\angle FOB = \\angle ACB$. This implies that $CEOB$ is a cyclic quadrilateral, which implies\n$$\n\\angle ECO = \\angle EBO.\n$$\nFrom $\\triangle EOB$ we have $\\angle EBO = \\angle FOB - \\angle BEO$. By symmetry, $\\angle BEO = \\angle DEP = \\angle CEP$, hence $\\angle EBO = \\angle FOB - \\angle CEP = \\angle ACB - \\angle CEP = \\angle OPC$. This implies $\\angle ECO = \\angle OPC$, hence triangles $POC$ and $COE$ are similar and so, using $|OC| = |OB|,$\n$$\n\\frac{|OE|}{|OB|} = \\frac{|OB|}{|OP|}\n$$\nwhich gives $|OE| \\cdot |OP| = |OB|^2 = R^2$.\nFrom $\\triangle BOD$ we see that $\\angle OBE = (180^\\circ - \\angle BOD)/2$. The central angle $\\angle BOD$ stands on the same arc as $\\angle BAD$, hence $\\angle BOD = 2\\angle BAD = 2\\angle ABC$, by symmetry. Finally, because $PO$ is perpendicular to $AB$, we have $90^\\circ - \\angle ABC = \\angle OPB$. Altogether we obtain $\\angle OBE = \\angle OPB$. As $\\triangle OBE$ and $\\triangle OPB$ share an angle at $O$, it follows now that these two triangles are similar. This implies\n$$\n\\frac{|OE|}{|OB|} = \\frac{|OB|}{|OP|}\n$$\nwhich gives $|OE| \\cdot |OP| = |OB|^2 = R^2$.\n\nConsidering the external angle of $\\triangle AEB$ at $E$ we see that $\\angle CEB = \\angle CAB + \\angle DBA = 2\\angle CAB$, because of symmetry. The Central Angle Theorem gives now $\\angle COB = 2\\angle CAB = \\angle CEB$, hence $CEOB$ is a cyclic quadrilateral. By reflection symmetry, $DEOA$ is cyclic as well.\nInversion in the circle through $ABCD$ maps the line $PB$ to the circumcircle of $COB$ and the line $PA$ to the circumcircle of $DOA$. Hence, the point $P$ is inverted to the intersection point (different from $O$) of these two circles, which is $E$. This means that $|OE| \\cdot |OP| = R^2$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33281, "subject": "Mathematics (Multi-modal)", "question": "Let $f : \\mathbb{Z} \\to \\mathbb{Z}$ be such that, for all $a, b \\in \\mathbb{Z}$\n$$\nf(a + b) = f(f(a)) + f(f(b)).\n$$\nFind all possible values of $f(2020)$.", "options": [], "answer": "0 or 2020", "solution": "**Solution 1.** We first show that $f(f(x))$ must be affine. To see this, replace $(a, b)$ first by $(a - 1, a + 1)$ and then by $(a, a)$ to obtain\n$$\nf(f(a - 1)) + f(f(a + 1)) = f(2a) = 2f(f(a)).\n$$\nTherefore,\n$$\nf(f(a + 1)) - f(f(a)) = f(f(a)) - f(f(a - 1)).\n$$\nThis means that there is a constant $m$ so that for all $a \\in \\mathbb{Z}$:\n$$\nf(f(a + 1)) - f(f(a)) = m.\n$$\nInductively it follows that for all $a \\in \\mathbb{Z}$\n$$\nf(f(a)) = ma + c.\n$$\nThen, taking the original functional equation with $b = 0$.\n$$\nf(a + 0) = f(f(a)) + f(f(0)) = ma + 2c.\n$$\nTaking the full original function equation, then we have:\n$$\n\\begin{aligned}\nm(a + b) + 2c &= f(a + b) \\\\ &= f(f(a)) + f(f(b)) \\\\ &= f(ma + 2c) + f(mb + 2c) \\\\ &= m(ma + 2c) + 2c + m(mb + 2c) + 2c \\\\ &= m^2(a + b) + 2c(2m + 2).\n\\end{aligned}\n$$\nAs this holds for arbitrary $a + b$ we must have:\n$$\n\\begin{aligned}\nm &= m^2 \\\\ 0 &= (2m + 1)c.\n\\end{aligned}\n$$\nThe first equation implies either $m = 0$ or $m = 1$, so $2m + 1 \\neq 0$ and the second equation then implies $c = 0$. Putting these together, we see that either $f(a) = 0$ for all $a \\in \\mathbb{Z}$ or $f(a) = a$ for all $a \\in \\mathbb{Z}$ and the possible values of $f(2020)$ are 0 or 2020.\n\n\n**Solution 2.** Let $f^n$ denote the $n$-th iterate of $f$, i.e. $f^2(x) = f(f(x))$, $f^3(x) = f(f(f(x)))$ etc. The given equation can then be written as\n$$\nf(a + b) = f^2(a) + f^2(b).\n$$\nUsing $a = f(0)$ and $b = 0$, we get $f^2(0) = f^3(0) + f^2(0)$, which implies\n$$\nf^3(0) = 0.\n$$\nLet $a = b = 0$ to get $f(0) = 2f^2(0)$. Let now $a = b = f^2(0)$ and use the two previous identities to see that\n$$\nf^2(0) = f(f(0)) = f(2f^2(0)) = 2f^4(0) = 2f(f^3(0)) = 2f(0) = 4f^2(0).\n$$\nThis implies $f^2(0) = 0$. Letting $b = 0$ in the original equation, we now obtain $f^2(a) = f(a)$ for all $a \\in \\mathbb{Z}$. This means that the given equation is equivalent to Cauchy's equation\n$$\nf(a + b) = f(a) + f(b)\n$$\nwhose solutions over the integers are known to be of the form $f(a) = ca$ for some integer $c$. From $f^2(1) = f(1)$ we obtain $c^2 = c$, i.e. $c = 0$ or $c = 1$. Therefore, the possible values of $f(2020)$ are 0 or 2020.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33282, "subject": "Mathematics (Multi-modal)", "question": "Find all triples $(p, q, r)$ of prime numbers that satisfy $p \\le q \\le r$ and\n$$\npqr \\mid (7^p - 3^p)(7^q - 3^q)(7^r - 3^r).\n$$", "options": [], "answer": "(2, 2, 2), (2, 2, 5), (2, 5, 41), (2, 5, 101)", "solution": "We start with establishing the following statement, which is valid for not necessarily different prime numbers $m$ and $n$:\n$$\nm \\mid 7^n - 3^n \\quad \\text{implies} \\quad m = 2 \\text{ or } m > n. \\qquad (5)\n$$\nFirst note that $m$ cannot be equal to $3$ or $7$, hence there exists an integer $a$ such that $3a \\equiv 7 \\pmod m$. The assumption $3^n \\equiv 7^n \\pmod m$ implies $a^n \\equiv 1 \\pmod m$, hence $\\text{ord}_m(a) \\mid n$. Because $n$ is prime, we can only have $\\text{ord}_m(a) = 1$ or $\\text{ord}_m(a) = n$. When $\\text{ord}_m(a) = 1$ we have $3 \\equiv 7 \\pmod m$, which is only possible when $m = 2$. When $\\text{ord}_m(a) = n$ we recall that we know from Little Fermat that $\\text{ord}_m(a) \\le m-1$. This gives $n < m$ as desired.\n\nReturning to our problem, we now see that $p$ must divide $7^p - 3^p$, because $p \\le q \\le r$. It follows from (5) that this then is only possible if $p = 2$. Because $(7^2 - 3^2)/2 = 2^2 \\cdot 5$, we obtain\n$$\nqr \\mid 2^2 \\cdot 5 \\cdot (7^q - 3^q)(7^r - 3^r).\n$$\nAs $q \\le r$, by (5) we must have $q \\mid 2 \\cdot 5 \\cdot (7^q - 3^q)$ and so $q \\in \\{2, 5\\}$, by (5) again.\n\nWhen $p = q = 2$, we have $r \\mid 2 \\cdot 5 \\cdot (7^r - 3^r)$ and so $r \\in \\{2, 5\\}$ by (5).\n\nWhen $p = 2$ and $q = 5$, we have to calculate $7^5 - 3^5$. Without a calculator, this can be easily done:\n$$\n7^5 = 49 \\cdot 343 = 50 \\cdot 343 - 343 = 17150 - 343 = 16807.\n$$\n$3^5 = 9 \\cdot 9 \\cdot 3 = 81 \\cdot 3 = 243$ and $7^5 - 3^5 = 16807 - 243 = 16564$.\n\nFinally we factorise easily $16564 = 4 \\cdot 4141 = 2^2 \\cdot 41 \\cdot 101$. This shows that\n$$\nr | 2 \\cdot 41 \\cdot 101 \\cdot (7^r - 3^r).\n$$\nFrom (5) we obtain now that $r \\in \\{2, 41, 101\\}$. But $5 = q \\le r$ and we are left with $r \\in \\{41, 101\\}$ if $p = 2$ and $q = 5$.\n\nThis shows that a complete list of solutions $(p, q, r)$ is\n$$\n(2, 2, 2), \\ (2, 2, 5), \\ (2, 5, 41), \\ (2, 5, 101).\n$$", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33283, "subject": "Mathematics (Multi-modal)", "question": "Determine whether there is a finite set $\\{a_1, a_2, \\dots, a_n\\}$ of distinct positive integers such that\n$$\n2020 = \\sum_{j=1}^{n} \\frac{1}{a_j}.\n$$", "options": [], "answer": "Yes", "solution": "Yes, there is such a set. We construct it in two stages.\nReaders who are familiar with Egyptian Fractions should be aware of the fact that any rational number $0 < x < 1$ can be expressed as a sum of reciprocals of distinct integers. Indeed, the greedy algorithm delivers such an expression: at each point choose the smallest integer $s$ for which $\\frac{1}{s} \\le x$; this either gives equality, in which case we stop, or we start again with $x - \\frac{1}{s}$ replacing $x$. We need to show this algorithm terminates and gives a sequence of distinct denominators $s$. We write the fraction in its lowest terms as $x = \\frac{p}{q}$ with $1 \\le p < q$. If $p = 1$ the result is immediate. Otherwise $1 < p < q$ and there exists a unique integer $s \\ge 2$ such that\n$$\n\\frac{1}{s} \\le x < \\frac{1}{s-1}.\n$$\nAs $x - \\frac{1}{s} < \\frac{1}{s-1} - \\frac{1}{s} = \\frac{1}{s(s-1)}$, the denominator chosen in the next step must be greater than $s(s-1) \\ge s$. This shows that the algorithm produces a sequence of distinct denominators.\nTo prove termination of this algorithm we show that the numerators are strictly decreasing. From $\\frac{p}{q} < \\frac{1}{s-1}$ we obtain $ps - p < q$, which is equivalent to $ps - q < p$. Therefore,\n$$\n0 \\le \\frac{p}{q} - \\frac{1}{s} = \\frac{ps - q}{q}\n$$\nhas non-negative numerator smaller than $p$, and this remains true when we write it in lowest terms. As we cannot have an infinite strictly decreasing sequence of non-negative integers, the algorithm terminates. This completes the lemma, giving the required decomposition for rational $0 < x < 1$.\n\nTo solve the original question we wish to extend this result to rational $x \\ge 1$, specifically to $x = 2020$. As the harmonic sequence diverges, for any $x \\ge 1$ there is some integer $m \\ge 1$ for which:\n$$\n\\sum_{j=1}^{m} \\frac{1}{j} \\le x < \\sum_{j=1}^{m+1} \\frac{1}{j}.\n$$\nWe then apply the result of the first part to\n$$\nx - \\sum_{j=1}^{m} \\frac{1}{j}.\n$$\nAs this is less than $\\frac{1}{1+m}$ we have distinctness and the result follows.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33284, "subject": "Mathematics (Multi-modal)", "question": "Given are two circles $\\Omega_P$ and $\\Omega_Q$ which intersect at two distinct points $A$ and $B$. Construct a circle $\\Omega$ that contains $\\Omega_P$ and $\\Omega_Q$ and which is tangent to $\\Omega_P$ and $\\Omega_Q$ at points $P$ and $Q$, respectively, such that $P$, $A$, $Q$ are collinear. Justify your construction.", "options": [], "answer": "Detailed solution", "solution": "**Description of the construction.** Let $O_P$ and $O_Q$ denote the centres of the circles $\\Omega_P$ and $\\Omega_Q$, respectively. Draw the circle centre $A$ that passes through $B$ and let $K$ and $L$ be its intersection points with $\\Omega_P$ and $\\Omega_Q$, respectively. Next construct the angle bisector of $\\angle KBL$, then the perpendicular to this angle bisector that passes through $A$. Let $P$ and $Q$ be the points where this perpendicular intersects $\\Omega_P$ and $\\Omega_Q$, respectively. Let $M$ be the point where the lines $PO_P$ and $QO_Q$ meet. The circle centre $M$ that passes through $P$ is the required circle.\n\n\n**Justification of the construction.** Let $\\omega$ be the circle with centre $A$ that passes through $B$. When we invert the two given circles in $\\omega$, we obtain the lines $BK$ and $BL$, where $K$ and $L$ are the intersection points of $\\omega$ with $\\Omega_P$ and $\\Omega_Q$, respectively. The required circle inverts to a circle which contains $A$ and which is tangent to $BK$ and $BL$. The points of contact of the inverted circle with $BK$ and $BL$, say $P'$ and $Q'$, are the inverses of $P$ and $Q$, respectively. Because $A$ is collinear with every pair of inverse points, $P, A, Q$ are collinear exactly when $P', A, Q'$ are collinear. In this case, $P, P', A, Q, Q'$ are collinear. Finally, because $P'Q'$ is perpendicular to the angle bisector of angle $\\angle KBL$, the points $P$ and $Q$ must be on the perpendicular to this angle bisector that passes through $A$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33285, "subject": "Mathematics (Multi-modal)", "question": "The lengths of the sides of a triangle are consecutive integers and its inradius is $4$. Find the lengths of the sides and the circumradius.", "options": [], "answer": "Side lengths: 13, 14, 15. Circumradius: 65/8.", "solution": "Let $a$, $b$, $c$ be the sides such that $a = b - 1$ and $c = b + 1$. Recall Heron's Formula and two other well known formulae for the area of a triangle:\n$$\n|ABC| = \\sqrt{s(s-a)(s-b)(s-c)} = \\frac{abc}{4R} = rs,\n$$\nwhere $r = 4$ is the inradius and $R$ the circumradius.\nWe obtain $s = ((b - 1) + b + (b + 1))/2 = 3b/2$ and so $|ABC| = rs = 6b$. Therefore, $36b^2 = |ABC|^2 = s(s - a)(s - b)(s - c) = 3b^2(b^2 - 4)/16$, i.e. $192 = b^2 - 4$ and so $b^2 - 1 = 195$. This gives $b^2 = 196 = 14^2$ and so $b = 14$, $a = 13$ and $c = 15$. Finally, $6b = |ABC| = \\frac{abc}{4R}$ and so\n$$\nR = \\frac{abc}{24b} = \\frac{b^2 - 1}{24} = \\frac{195}{24} = \\frac{65}{8}.\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33286, "subject": "Mathematics (Multi-modal)", "question": "Let $n$ be a positive integer. An $n$-level honeycomb is a plane region covered with regular hexagons of side-length $1$ connected along edges, such that the centres of the boundary hexagons are lined up along a regular hexagon of side-length $n\\sqrt{3}$. The diagram shows a $2$-level honeycomb from which the central hexagon has been removed.\n\n![](attached_image_1.png)\n\nA trex is a sequence of $3$ hexagons with collinear centres such that the middle hexagon shares an edge with each of its neighbours in the trex.\n\nAn $n$-level honeycomb from which the central size-$1$ hexagon has been removed is to be completely covered by trexes without any overlaps. Find all values of $n$ for which this is possible.", "options": [], "answer": "All positive integers n with n ≡ 0 or 2 (mod 3).", "solution": "We will first prove that coverings can be found if $n = 3k$ and if $n = 3k - 1$. When $k = 1$ these are the cases $n = 2$ and $n = 3$ for which the diagrams below show a covering by trexes. In these diagrams, the unit hexagons are represented by their centres.\n\n![](attached_image_2.png)\n\nTo extend this for all $k \\ge 1$, we observe that, for any $n \\ge 1$, the region obtained by removing an $n$-level honeycomb from an $(n+3)$-level honeycomb can be covered by trexes without overlap, see left diagram below. The statement follows now from the cases $n = 2$ and $n = 3$.\n\nAlternatively, we may cover the large hexagon formed by the centres of the unit hexagons by $3$ congruent parallelograms, each covering $n(n+1)$ centres, as shown in the diagram on the right below.\n\n![](attached_image_3.png)\n\nWhen the number of hexagon centres along one side of such a parallelogram is divisible by $3$, we can cover it by trexes. More specifically:\n\n* if $n = 3k$ then each parallelogram of size $3k(3k+1)$ can be covered by $k(3k+1)$ trexes;\n* if $n = 3k + 2$ then each parallelogram of size $(3k+2)(3k+3)$ can be covered by $(k+1)(3k+2)$ trexes.\n\n![](attached_image_4.png)\n\nNext we prove that no coverings exist if $n = 3k+1$. We present three different proofs. In all of them we label the centres of the hexagons by $0$, $1$, $2$ with $1$ in the centre of the honeycomb and so that two hexagons with the same label never share an edge. It follows that every trex contains each label $0$, $1$, $2$ exactly once, hence the honeycomb (with central hexagon removed) can only be covered with trexes when it contains the same number of $0$-s, $1$-s and $2$-s.\n\nWe now prove that this is not the case when $n = 3k + 1$.\n\n**Proof 1.** We note that the labelling is preserved by rotation around the centre with angle $120^\\circ$. Hence by splitting the honeycomb minus the centre into three parallelograms of sides $n = 3k + 1$ and $n + 1 = 3k + 2$ as above, we note that the numbers of $0$-s, $1$-s and $2$-s in each parallelogram must be one third of the total numbers of $0$-s, $1$-s and $2$-s in the honeycomb minus the centre. However, the number of hexagon centres in such a parallelogram is $(3k + 1)(3k + 2)$ which is not a multiple of $3$ and so cannot contain the same number of $0$-s, $1$-s and $2$-s. Hence the numbers of $0$-s, $1$-s and $2$-s in the honeycomb minus the centre cannot be equal to each other.\n\n**Proof 2.** As we have seen above, the region obtained by removing an $n$-level honeycomb from an $(n+3)$-level honeycomb can be covered by trexes without overlap. This implies that the numbers of $0$-s, $1$-s and $2$-s in an $(n+3)$-level honeycomb (with centre removed) coincide if and only if they do so in an $n$-level honeycomb (with centre removed).\nBecause in case $n = 1$ there are three hexagons labelled $0$ but no hexagon labelled $1$, the numbers of $0$-s and $1$-s in a $(3k+1)$-level honeycomb (with centre removed) do not coincide.\n\n**Proof 3.** For each $a \\in \\{0, 1, 2\\}$ and each $n$, let $h_n(a)$ denote the number of hexagons labelled $a$ in $H_n$, the $n$-level honeycomb (including the central hexagon). We wish to find $h_n(a) - h_0(a)$. Let\n$$\nc_n(a) = h_n(a) - h_{n-1}(a) = b_n(a) + v_n(a)\n$$\ndenote the number of labels $a$ on the collar $H_n - H_{n-1}$, where $v_n(a)$ counts the labels at the $6$ corners and $b_n(a)$ counts the remaining vertices.\n\n![](attached_image_5.png)\n\nWe can compare $H_n - H_{n-1}$ with $H_{n-2} - H_{n-3}$, as the labels at the outer border (except at the corner) repeat the labels from the inner border. Hence the following recurrences for $n \\ge 3$:\n$$\nb_n(a) = b_{n-2}(a) + 2v_{n-2}(a) \\quad \\text{and so}\n$$\n$$\nc_n(a) = b_n(a) + v_n(a) = c_{n-2}(a) + v_{n-2}(a) + v_n(a)\n$$\nwhile $v_3(1) = 6$ and for $n \\ge 4$ we have $v_n(a) = v_{n-3}(a)$. Also using $h_n(a) = h_{n-1}(a) + c_n(a)$ we can fill in the following table.\n\n| n | $v_n(0)$ | $v_n(1)$ | $v_n(2)$ | $c_n(0)$ | $c_n(1)$ | $c_n(2)$ | $h_n(0)$ | $h_n(1) - 1$ | $h_n(2)$ |\n|---|----------|----------|----------|----------|----------|----------|----------|--------------|----------|\n| 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |\n| 1 | 3 | 0 | 3 | 3 | 0 | 3 | 3 | 0 | 3 |\n| 2 | 3 | 0 | 3 | 3 | 6 | 3 | 6 | 6 | 6 |\n| 3 | 0 | 6 | 0 | 6 | 6 | 6 | 12 | 12 | 12 |\n| 4 | 3 | 0 | 3 | 9 | 6 | 9 | 21 | 18 | 21 |\n| 5 | 3 | 0 | 3 | 9 | 12 | 9 | 30 | 30 | 30 |\n| 6 | 0 | 6 | 0 | 12 | 12 | 12 | 42 | 42 | 42 |\n\nApplying the recurrence relation $3$ times for $n \\ge 7$:\n$$\n\\begin{align*}\nc_n(a) &= c_{n-2}(a) + v_n(a) + v_{n-2}(a) \\\\\n&= c_{n-4}(a) + v_n(a) + 2v_{n-2}(a) + v_{n-4}(a) \\\\\n&= c_{n-6}(a) + v_n(a) + 2v_{n-2}(a) + 2v_{n-4}(a) + v_{n-6} \\\\\n&= c_{n-6}(a) + 12\n\\end{align*}\n$$\nas $v_{n-6}(a) = v_n(a)$ and $v_{n-4}(a) = v_{n-1}(a)$ and $v_n(a) + v_{n-1}(a) + v_{n-2}(a) = 6$\nfor all $a \\in \\{0, 1, 2\\}$. Hence by induction we can prove\n$$\n\\begin{align*}\nh_n(0) &= h_n(1) - 1 = h_n(2) && \\text{for all } n = 3k \\text{ and } 3k + 2, \\\\\nh_n(0) &= h_n(1) + 2 = h_n(2) && \\text{for all } n = 3k + 1.\n\\end{align*}\n$$\n\nHence after removing the central hexagon, we have shown that the $n$-level honeycomb cannot be covered by trexes if $n = 3k+1$, since at least $3$ hexagons labelled $1$ would remain uncovered.\n\n**Final answer:**\n\nAll $n$ except those congruent to $1$ modulo $3$ (i.e., all $n$ such that $n \\not\\equiv 1 \\pmod{3}$) can be covered by trexes as described.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 33287, "subject": "Mathematics (Multi-modal)", "question": "Let $a$, $b$, $c$, $d$ be real numbers. Show there is a pair $(x, y)$ of real numbers such that $|x| \\le 1$, $|y| \\le 1$ and $|a + bx + cy + dxy - \\frac{3}{1 + x^2 + y^2}| \\ge 1$.", "options": [], "answer": "Detailed solution", "solution": "Let\n$$\ng(x, y) = a + bx + cy + dxy - \\frac{3}{1 + x^2 + y^2}.\n$$\nThen taking the centre of the square $[-1, 1]^2$ and its four corners, we have\n$$\n\\begin{align*}\ng(0, 0) &= a - 3 \\\\\ng(1, 1) &= a + b + c + d - 1 \\\\\ng(-1, 1) &= a - b + c - d - 1 \\\\\ng(-1, -1) &= a - b - c + d - 1 \\\\\ng(1, -1) &= a + b - c - d - 1\n\\end{align*}\n$$\n\n$$\ng(1, 1) + g(-1, 1) + g(-1, -1) + g(1, -1) = 4a - 4 = 4g(0, 0) + 8\n$$\nWe can consider two cases: either $g(0, 0) \\le -1$ or $g(0, 0) > -1$.\n\nIn the first case, setting $(x, y) = (0, 0)$ gives the result claimed. Otherwise, we have $4g(0, 0) + 8 > 4$ in which case:\n$$\ng(1, 1) + g(-1, 1) + g(-1, -1) + g(1, -1) > 4\n$$\nThen (at least) one of the terms on the left hand side must exceed $1$ and the result is proved.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33288, "subject": "Mathematics (Multi-modal)", "question": "Are there infinitely many pairs $(a, b)$ of positive integers such that\n$$\na \\mid b^2 + 1 \\quad \\text{and} \\quad b \\mid a^2 + 1?\n$$", "options": [], "answer": "Detailed solution", "solution": "**Solution 1.** If $(a, b)$ is a solution with $a < b$, then so is $(b, c)$ where\n$$\nc = \\frac{b^2 + 1}{a}.\n$$\nIt is immediate that $c \\mid b^2 + 1$ so we have to show only that $b \\mid c^2 + 1$. We can calculate:\n$$\na^2(c^2 + 1) = (b^2 + 1)^2 + a^2 = b^2 + 2b + (a^2 + 1) \\equiv 0 \\pmod{b}\n$$\nAs $b \\mid a^2 + 1$ then $b$ and $a^2$ are relatively prime, so $b \\mid a^2(c^2 + 1)$ implies that $b \\mid c^2 + 1$. To complete the construction we just need to observe that $a < b$ implies $ab < b^2 < b^2+1$ and so $b < c$. We can then use this rule and produce an infinitude of increasing solutions starting with $(a, b) = (1, 2)$.\n\n\n**Solution 2.** Let $F_n$ be $n^{th}$ Fibonacci number, so that $F_0 = 0, F_1 = 1, F_2 = 1$ and $F_n = F_{n-1} + F_{n-2}$. Catalan's identity, shown by induction, states that:\n$$\nF_n^2 - F_{n+r}F_{n-r} = (-1)^{n-r}F_r^2.\n$$\nPutting $r = 2$ and $n$ odd gives $F_n^2 + 1 = F_{n+2}F_{n-2}$ which provides us with an infinitude of solutions of the form $(a, b) = (F_n, F_{n+2})$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33289, "subject": "Mathematics (Multi-modal)", "question": "Define $f(r) = 2\\sqrt{r} + \\sqrt{r-1} + \\sqrt{r+1}$, $g(r) = 2\\sqrt{r} + \\sqrt{r-1} - \\sqrt{r+1}$ and $h(r) = 2\\sqrt{r} - \\sqrt{r-1} + \\sqrt{r+1}$. Calculate to two decimal places\n$$\n\\sum_{r=1}^{2020} \\frac{1}{f(r) \\cdot g(r) \\cdot h(r)}.\n$$", "options": [], "answer": "0.25", "solution": "The answer is 0.25 to 2DP (or more accurately, 0.247219).\nThe key observation is that\n$$\n\\frac{1}{f(r)g(r)h(r)} = \\frac{1}{4} \\left( 2\\sqrt{r} - \\sqrt{r-1} - \\sqrt{r+1} \\right).\n$$\nTwo see why, we apply the difference of two squares twice:\n$$\n\\begin{aligned} & \\left(2\\sqrt{r} - \\sqrt{r-1} - \\sqrt{r+1}\\right) \\left(\\sqrt{r-1} + 2\\sqrt{r} + \\sqrt{r+1}\\right) \\\\ &= 4r - \\left(\\sqrt{r-1} + \\sqrt{r+1}\\right)^2 \\\\ &= 4r - (r-1) - (r+1) - 2\\sqrt{r-1}\\sqrt{r+1} \\\\ &= 2r - 2\\sqrt{r^2-1}. \\end{aligned}\n$$\nLikewise:\n$$\n\\begin{aligned} & \\left(2\\sqrt{r} + \\sqrt{r-1} - \\sqrt{r+1}\\right) \\left(2\\sqrt{r} - \\sqrt{r-1} + \\sqrt{r+1}\\right) \\\\ &= 4r - \\left(\\sqrt{r+1} - \\sqrt{r-1}\\right)^2 \\\\ &= 2r + 2\\sqrt{r^2-1}. \\end{aligned}\n$$\nMultiplying these last two terms, we have\n$$\n\\begin{aligned} & f(r)g(r)h(r) \\cdot \\left(2\\sqrt{r} - \\sqrt{r-1} - \\sqrt{r+1}\\right) \\\\ &= \\left(2r - 2\\sqrt{r^2-1}\\right) \\left(2r + 2\\sqrt{r^2-1}\\right) = 4. \\end{aligned}\n$$\nThis proves the key observation. Then the sum to be computed is:\n$$\n\\begin{aligned} S &= \\frac{1}{4} \\sum_{r=1}^{2020} \\left(2\\sqrt{r} - \\sqrt{r-1} - \\sqrt{r+1}\\right) \\\\ &= \\frac{2}{4} \\sum_{r=1}^{2020} \\sqrt{r} - \\frac{1}{4} \\sum_{r=1}^{2020} \\sqrt{r-1} - \\frac{1}{4} \\sum_{r=1}^{2020} \\sqrt{r+1} \\\\ &= \\frac{2}{4} \\sum_{r=1}^{2020} \\sqrt{r} - \\frac{1}{4} \\left(\\sum_{r=1}^{2020} \\sqrt{r} - \\sqrt{2020}\\right) - \\frac{1}{4} \\left(\\sum_{r=1}^{2020} \\sqrt{r-1} + \\sqrt{2021}\\right) \\\\ &= \\frac{1}{4} \\left(\\sqrt{2020} + 1 - \\sqrt{2021}\\right). \\end{aligned}\n$$\n\nTo see that $S = 0.25$ to two decimal places, we note that:\n$$\n0 \\le \\frac{1}{4} - S = \\frac{\\sqrt{2021} - \\sqrt{2020}}{4} = \\frac{1}{4(\\sqrt{2020} + \\sqrt{2021})} < \\frac{1}{8\\sqrt{1600}} = \\frac{1}{320}.\n$$\n\nThus the difference does not affect the second decimal place.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33290, "subject": "Mathematics (Multi-modal)", "question": "Two circles, centres $O_1$ and $O_2$, intersect at $A$ and $B$. Let $O_1C_1$ and $O_2C_2$ be parallel radii of these circles such that $C_1$ and $C_2$ are on the same side of $O_1O_2$. Prove that the circumcircles of triangles $C_1AC_2$ and $C_1BC_2$ have the same radius.", "options": [], "answer": "Detailed solution", "solution": "Let $D_1$ and $D_2$ be points on the circles such that $C_1D_1$ and $C_2D_2$ are diameters. We want to show that the reflection in the line $C_1C_2$ of the circumcircle of $\\triangle C_1BC_2$ is the circumcircle of $\\triangle C_1AC_2$. Equivalently we can show that the reflection of $B$ in the line $C_1C_2$ is on the circumcircle of $\\triangle C_1AC_2$, which is equivalent to\n$$\n\\angle C_1BC_2 = 180^\\circ - \\angle C_1AC_2.\n$$\nInstead of using reflection in the line $C_1C_2$, we could also argue with the extended Sine-Rule, which tells us that the circumradius of $\\triangle C_1AC_2$ is equal to $|C_1C_2|/2 \\sin(\\angle C_1AC_2)$ and the circumradius of $\\triangle C_1BC_2$ is equal to $|C_1C_2|/2 \\sin(\\angle C_1BC_2)$. We then see that these circles have the same radius if $\\sin(\\angle C_1AC_2) = \\sin(\\angle C_1BC_2)$, which follows when we have shown $\\angle C_1BC_2 = 180^\\circ - \\angle C_1AC_2$.\n\n$$\n\\angle C_1AC_2 = \\angle C_1D_1B + \\angle BD_2C_2.\n$$\nAs $C_1D_1$ and $C_2D_2$ are parallel, $\\angle C_1D_1D_2 + \\angle D_1D_2C_2 = 180^\\circ$. Using the previously obtained equation this yields\n$$\n\\begin{aligned}\n\\angle C_1AC_2 &= \\angle C_1D_1B + \\angle BD_2C_2 = 180^\\circ - (\\angle BD_1D_2 + \\angle D_1D_2B) \\\\\n&= \\angle D_1BD_2.\n\\end{aligned}\n$$\nSince $C_1D_1$ and $C_2D_2$ are diameters, $\\angle C_1BD_1 = 90^\\circ = \\angle C_2BD_2$ and we finally obtain $\\angle C_1BC_2 = 180^\\circ - \\angle D_1BD_2 = 180^\\circ - \\angle C_1AC_2$, as desired.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33291, "subject": "Mathematics (Multi-modal)", "question": "Suppose $a, b, c$ are non-zero real or complex numbers, and $x, y, z$ satisfy the following equations.\n$$\nbz + cy = a, \\ cx + az = b, \\ bx + ay = c.\n$$\nProve that\n$$\n\\frac{3}{4} \\le |x|^2 + |y|^2 + |z|^2,\n$$\nand give an example to show that this inequality is best possible.\nDeduce, or prove otherwise, that in any triangle $ABC$\n$$\n\\cos^2 A + \\cos^2 B + \\cos^2 C \\ge \\frac{3}{4}.\n$$", "options": [], "answer": "Detailed solution", "solution": "$$\n\\begin{aligned}\n|a|^2 &\\le (|b|^2 + |c|^2)(|z|^2 + |y|^2) \\\\\n|b|^2 &\\le (|c|^2 + |a|^2)(|x|^2 + |z|^2) \\\\\n|c|^2 &\\le (|b|^2 + |a|^2)(|x|^2 + |y|^2),\n\\end{aligned}\n$$\nwhence\n$$\n\\frac{|a|^2}{|b|^2 + |c|^2} + \\frac{|b|^2}{|c|^2 + |a|^2} + \\frac{|c|^2}{|a|^2 + |b|^2} \\le 2 (|x|^2 + |y|^2 + |z|^2).\n$$\nBy Nesbitt's inequality, the LHS exceeds $3/2$. Hence the result.\n\nIf $a = b = c = 1$, then $x = y = z = 1/2$, in which case $x^2 + y^2 + z^2 = 3/4$ and so the inequality is the best possible. Since in any triangle,\n$$\n\\begin{aligned}\na &= b \\cos C + c \\cos B, \\\\\nb &= c \\cos A + a \\cos C, \\\\\nc &= a \\cos B + b \\cos A,\n\\end{aligned}\n$$\nwe obtain the consequence.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33292, "subject": "Mathematics (Multi-modal)", "question": "Let $1 = d_1 < d_2 < d_3 < \\dots < d_n = N$ be the list of all positive divisors of the integer $N$. Check that $N = 2020$ is a number for which\n$$\nN = d_3d_4d_7 \\quad \\text{and} \\quad d_3d_4 < d_7.\n$$\nFind all numbers $N$ satisfying these conditions.", "options": [], "answer": "All N of the following forms:\n- N = p^11 (p prime)\n- N = p^5 q with primes p, q and either q < p or q > p^5\n- N = p^3 q^2 with primes p, q and q^2 < p\n- N = p^2 q r with distinct primes p, q, r and p^2 q < r", "solution": "The prime factorisation of $2020$ is $2020 = 4 \\cdot 5 \\cdot 101$ and so a complete list of divisors of $2020$ is:\n$$\n\\begin{aligned}\nd_1 &= 1,\\quad d_2 = 2,\\quad d_3 = 4,\\quad d_4 = 5,\\quad d_5 = 10,\\quad d_6 = 20,\\quad d_7 = 101, \\\\\nd_8 &= 202,\\quad d_9 = 404,\\quad d_{10} = 505,\\quad d_{11} = 1010,\\quad d_{12} = 2020.\n\\end{aligned}\n$$\nThe required properties, $2020 = d_3d_4d_7$ and $d_3d_4 < d_7$, are now easy to check.\n\nAs $N = d_3d_4d_7$, the product $d_3d_4$ is a divisor of $N$, which was assumed to be smaller than $d_7$. Hence $d_3d_4 = d_5$ or $d_3d_4 = d_6$. We first exclude that $d_3d_4 = d_5$. In this case, $N = d_3d_4d_7 = d_5d_7$ and the number of divisors of $N$ is equal to $11$. Because the number of positive divisors of $N = \\prod p_i^{e_i}$ is equal to $\\prod (e_i + 1)$, any number with exactly $11$ divisors must be of the form $N = p^{10}$ where $p$ is a prime number. But then $d_3 = p^2$, $d_4 = p^3$ and $d_5 = p^4$ and so $d_3d_4 \\neq d_5$. This shows that we must have $d_3d_4 = d_6$. Then $N = d_3d_4d_7 = d_6d_7$ and $N$ has $12$ divisors.\nAs $12 = 6 \\cdot 2 = 4 \\cdot 3 = 3 \\cdot 2 \\cdot 2$ we have to consider the following four cases: $N = p^{11}$, $N = p^5q$, $N = p^3q^2$, $N = p^2qr$ where $p, q, r$ are distinct primes.\n\n$N = p^{11}$: In this case, $d_3 = p^2$, $d_4 = p^3$ and $d_7 = p^6$, and we see that $N = d_3d_4d_7$ as well as $d_3d_4 < d_7$ as required.\n\n$N = p^5q$: We have $1 < p < p^2 < p^3 < p^4 < p^5$ and we can order the divisors of $N$ once we know the size of $q$. There are six possibilities\n![](attached_image_1.png)\nand we easily check that $d_3d_4 < d_7$ holds when $1 < q < p$ and when $p^5 < q$.\n\n$N = p^3q^2$: We will investigate all possibilities for $d_6d_7 = p^3q^2$ and check if $d_3d_4 = d_6$. The pairs $\\{d_i, d_{13-i}\\}$, whose product is $N$, are the following:\n$$\n\\{1, p^3q^2\\},\\quad \\{p, p^2q^2\\},\\quad \\{p^2, pq^2\\},\\quad \\{p^3, q^2\\},\\quad \\{q, p^3q\\},\\quad \\{pq, p^2q\\}.\n$$\nBecause $p^3q^2$, $p^2q^2$ and $p^3q$ have more than $7$ factors, these cannot be equal to $d_6$ or $d_7$, so we have only three options to consider for $\\{d_6, d_7\\}$, namely $\\{p^2, pq^2\\}$, $\\{p^3, q^2\\}$ or $\\{pq, p^2q\\}$.\nIf $\\{d_6, d_7\\} = \\{p^2, pq^2\\}$, then $d_6 = pq^2$ and $d_7 = p^2$, because we cannot have $d_6 = p^2 = d_3d_4$ as $d_3 > 1$. From $pq^2 = d_6 < d_7 = p^2$, we get $q^2 < p$. Hence, the divisors of $N$ need to satisfy\n$$\n1 < q < q^2 < p < pq < pq^2 < p^2 < p^2q < p^2q^2 < p^3 < p^3q < p^3q^2.\n$$\nWe see now that $d_3d_4 = d_6$ and we get a working solution.\n\nIf $\\{d_6, d_7\\} = \\{p^3, q^2\\}$, then $d_6 = p^3$ and $d_7 = q^2$, because we cannot have $d_6 = q^2 = d_3d_4$ as $d_3 > 1$. The equation $p^3 = d_6 = d_3d_4$ can only be achieved with $d_3 = p$ and $d_4 = p^2$. This implies $d_2 = q$ and so $1 < q < p < p^2$. But then $d_3 = p < pq < p^2 = d_4$, a contradiction.\nIf $\\{d_6, d_7\\} = \\{pq, p^2q\\}$, then $d_6 = pq < p^2q = d_7$, and $pq = d_6 = d_3d_4$ could only be achieved with $d_3 = p, d_4 = q$ or $d_3 = q, d_4 = p$. Both are impossible as there would be no option left for $d_2$.\n\n$N = p^2qr$: We may assume that $1 < q < r < qr$. Because $p^2q$ has six divisors and all other divisors of $N$ are multiples of $r$, $d_k = r$ for some $3 \\le k \\le 7$.\nIf $d_7 = r$, then $d_6 = p^2q$ and we automatically have $d_6 = d_3d_4$ as $p^2q$ has six divisors. This case occurs precisely when $p^2q < r$.\nIf $d_6 = r$, then $d_6 = d_3d_4$ is impossible as $d_3 > 1$.\nIf $d_5 = r$, then $d_8 = p^2q$ and $d_6, d_7$ must form one of the pairs $\\{p, pqr\\}$, $\\{pq, pr\\}$, $\\{p^2, qr\\}$. The first of these three is impossible, as $p < pq < pr < pqr$. Secondly, when $d_6 = pq < pr = d_7$, $pq = d_6 = d_3d_4$ could only be achieved with $d_3 = p, d_4 = q$ or $d_3 = q, d_4 = p$. Both are impossible as there would be no option left for $d_2$. For the third option we first note that $d_6 = p^2$ can be ruled out as before using $d_6 = d_3d_4$. However, $d_6 = qr$ is impossible as well, because $d_5 = r$ and we again get a problem with $d_6 = d_3d_4$.\nIf $d_4 = r$, then $d_2 = p$ or $d_3 = p$. In the first case we would have $1 < p < q < r$ and so $d_6 = d_3d_4 = qr$, which implies $d_7 = p^2$. However, we have $p^2 < pq < pr$ which would mean that both members of the pair $\\{pq, pr\\}$ are larger than $d_7$, contradiction. In the second case, we would have $1 < q < p < r$ and so $d_6 = d_3d_4 = pr$, which implies $d_7 = pq$. But $q < r$ implies $d_7 = pq < pr = d_6$, contradiction.\nIf $d_3 = r$, then $d_4 = p$ because $d_6 = d_3d_4$ cannot be divisible by $r^2$. We get $d_6 = pr$ and $d_7 = pq$. But $q < r$ implies $d_7 = pq < pr = d_6$, a contradiction.\n\nTo summarise, the complete list of solutions is:\n| $N$ | Conditions |\n|---|---|\n| $N = p^{11}$ | where $p$ is a prime |\n| $N = p^5q$ | where $p, q$ are primes such that $q < p$ or $p^5 < q$ |\n| $N = p^3q^2$ | where $p, q$ are primes such that $q^2 < p$ |\n| $N = p^2qr$ | where $p, q, r$ are primes such that $p^2q < r$. |", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33293, "subject": "Mathematics (Multi-modal)", "question": "Let $a$, $b$, $c > 0$. Prove that\n$$\n\\sqrt[7]{\\frac{a}{b+c} + \\frac{b}{c+a}} + \\sqrt[7]{\\frac{b}{c+a} + \\frac{c}{a+b}} + \\sqrt[7]{\\frac{c}{a+b} + \\frac{a}{b+c}} \\ge 3.\n$$", "options": [], "answer": "Detailed solution", "solution": "Because $\\sqrt[3]{\\sqrt[7]{x}} = \\sqrt[21]{x}$, the three-term AM-GM inequality gives\n$$\n\\sqrt[7]{\\frac{a}{b+c} + \\frac{b}{c+a}} + \\sqrt[7]{\\frac{b}{c+a} + \\frac{c}{a+b}} + \\sqrt[7]{\\frac{c}{a+b} + \\frac{a}{b+c}} \n\\geq 3 \\sqrt[21]{\\left(\\frac{a}{b+c} + \\frac{b}{c+a}\\right) \\left(\\frac{b}{c+a} + \\frac{c}{a+b}\\right) \\left(\\frac{c}{a+b} + \\frac{a}{b+c}\\right)}.\n$$\nTherefore, it is sufficient to prove that\n$$\n\\left(\\frac{a}{b+c} + \\frac{b}{c+a}\\right) \\left(\\frac{b}{c+a} + \\frac{c}{a+b}\\right) \\left(\\frac{c}{a+b} + \\frac{a}{b+c}\\right) \\geq 1.\n$$\nBecause $a^2 + b^2 \\geq \\frac{1}{2}(a+b)^2$ and $\\frac{1}{x} + \\frac{1}{y} \\geq \\frac{2}{\\sqrt{xy}}$, which follows from AM-GM, we get\n$$\n\\begin{aligned}\n\\frac{a}{b+c} + \\frac{b}{c+a} &= \\frac{a^2 + b^2 + ac + bc}{(b+c)(c+a)} \\\\\n&\\geq \\frac{\\frac{1}{2}(a+b)^2 + (a+b)c}{(b+c)(c+a)} = \\frac{a+b}{2} \\cdot \\frac{a+b+2c}{(b+c)(c+a)} \\\\\n&= \\frac{a+b}{2} \\left( \\frac{1}{b+c} + \\frac{1}{c+a} \\right) \\\\\n&\\geq \\frac{a+b}{2} \\cdot \\frac{2}{\\sqrt{(b+c)(c+a)}} = \\frac{a+b}{\\sqrt{(b+c)(c+a)}}.\n\\end{aligned}\n$$\nAlternatively, we could use Chebyshev's Inequality (which is an easy consequence of the Rearrangement Inequality) to obtain the third line above\n$$\n\\frac{a}{b+c} + \\frac{b}{c+a} = a \\cdot \\frac{1}{b+c} + b \\cdot \\frac{1}{c+a} \\geq \\frac{a+b}{2} \\left( \\frac{1}{b+c} + \\frac{1}{c+a} \\right).\n$$\nBy cyclic permutation $a \\mapsto b \\mapsto c \\mapsto a$, we obtain\n$$\n\\frac{b}{c+a} + \\frac{c}{a+b} \\geq \\frac{b+c}{\\sqrt{(c+a)(a+b)}} \\quad \\text{and} \\quad \\frac{c}{a+b} + \\frac{a}{b+c} \\geq \\frac{c+a}{\\sqrt{(a+b)(b+c)}}.\n$$\nThis finally gives\n$$\n\\left(\\frac{a}{b+c} + \\frac{b}{c+a}\\right) \\left(\\frac{b}{c+a} + \\frac{c}{a+b}\\right) \\left(\\frac{c}{a+b} + \\frac{a}{b+c}\\right) \n\\geq \\frac{a+b}{\\sqrt{(b+c)(c+a)}} \\cdot \\frac{b+c}{\\sqrt{(c+a)(a+b)}} \\cdot \\frac{c+a}{\\sqrt{(a+b)(b+c)}} = 1,\n$$\nas desired.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33294, "subject": "Mathematics (Multi-modal)", "question": "Let $N$, $k$ be positive integers with $k \\le N$. An $(N, k)$-Mountain Tetris mini-game is played on an $N \\times N$ grid. An *ascending path contour* is any path on the grid made of horizontal and vertical segments, which starts at $(0, 0)$ and reaches $(N, N)$ without ever going down or back.\n\nEvery $(N, k)$-Mountain Tetris mini-game begins with a mountain having an *initial ascending path contour* which starts from $(0, 0)$ in horizontal direction, and has exactly $k$ horizontal and $k$ vertical segments. A $1 \\times 1$-square rock drops vertically from a random slot on the grid ceiling. A *move* consists of shifting the rock 1 unit to the right. The game is won if the player performs the minimum number of moves needed so that when the rock settles on the mountain, the resulting shape is still an *ascending path contour*. The game is then reset and begins with a new initial ascending path contour.\n\nProve that the average number of moves played over all possible $(N, k)$-Mountain Tetris mini-games equals\n$$\n\\frac{N-k}{k+1}.\n$$\n\nHere is an example of a $(6, 4)$ Mountain Tetris mini-game with an initial ascending path contour. The player needs one move to win.\n![](attached_image_1.png)\n", "options": [], "answer": "(N-k)/(k+1)", "solution": "Given an initial ascending path contour, let $d_1, d_2, \\dots, d_k$ denote the lengths of the horizontal segments, then $d_i > 0$ and $\\sum_i d_i = N$. Because the contour starts in horizontal direction and has exactly $k$ horizontal and $k$ vertical segments, it ends with a vertical segment and so no horizontal segment is placed at level $N$. The lengths of the vertical segments is not related to the horizontal lengths and play no role in how the game is played so we will disregard them.\n\nThere are a total of $\\binom{N-1}{k-1}$ ways to choose the lengths of the horizontal segments of an initial ascending path contour in an $(N, k)$-game. Indeed, we can encode the choice $(d_1, d_2, \\dots, d_k)$ by a length $(N-1)$ sequence of 0-s and 1-s, with a 1 following each string of $(d_i - 1)$ consecutive 0-s to mark the end of the $i$-th segment, for $i \\in \\{1, \\dots, k-1\\}$ (the end of the last segment necessarily is at position $N$).\n\nDepending on its position, a rock emerging on top of the $i$-th horizontal segment will require $0, 1, \\dots, d_i - 2$ or $d_i - 1$ moves to be brought to a winning position. This gives a total of\n$$\n0 + 1 + \\dots + (d_i - 1) = \\frac{(d_i - 1)d_i}{2} = \\binom{d_i}{2}\n$$\nmoves for the $d_i$ possible positions of the rock above the $i$-th horizontal segment. Hence the average number of moves required for all $\\binom{N-1}{k-1}$ initial paths and all $N$ possible starting positions of the rock is:\n$$\n\\sum_{(d_1, \\dots, d_k)} \\sum_{i=1}^{k} \\binom{d_i}{2} / N \\binom{N-1}{k-1}\n$$\nWe note that $\\binom{d_i}{2}$ can also be interpreted as the number of ways to choose 2 distinct integer points on the $i$-th horizontal segment (but not including the starting point of the segment since then we would have a choice of $d_i + 1$ points). This is equivalent to splitting the $i$-th segment into 3 segments of lengths $a_i + b_i + c_i = d_i$, with $a_i > 0$ and $b_i > 0$ but possibly $c_i = 0$. For symmetry, let $c'_i = c_i + 1$. Then after relabelling the sequence $d_1, \\dots, d_{i-1}, a_i, b_i, c'_i, d_{i+1}, \\dots, d_k$ as $e_1, \\dots, e_{k+2}$ and remembering $i \\in \\{1, \\dots, k\\}$ we get\n$$\n\\sum_{(d_1, \\dots, d_k)} \\sum_{i=1}^{k} \\binom{d_i}{2} = k \\cdot \\# \\left\\{ (e_1, \\dots, e_{k+2}) \\middle| \\sum_i e_i = N+1 \\text{ and } e_i \\in \\mathbb{Z}, e_i > 0 \\right\\}\n$$\nwhich is equal to $k \\binom{N}{k+1}$ by binary code counting as before. Finally we get\n$$\n\\frac{k \\binom{N}{k+1}}{N \\binom{N-1}{k-1}} = \\frac{N-k}{k+1},\n$$\nas required.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33295, "subject": "Mathematics (Multi-modal)", "question": "Pat has a pentagon, each of whose vertices is coloured either red or blue. Once an hour, Pat recolours the vertices as follows.\n* Any vertex whose two neighbours were the same colour for the last hour, becomes blue for the next hour.\n* Any vertex whose two neighbours were different colours for the last hour, becomes red for the next hour.\nShow that there is at least one vertex which is blue after the first recolouring and remains blue for ever.", "options": [], "answer": "Detailed solution", "solution": "This problem yields to brute force: there are 32 starting configurations and the result can be verified by checking all cases manually.\nWe can reduce the number of cases substantially by noting the limited number of feasible cases after the first recolouring and then exploiting the symmetry of pentagons.\nNow make one loop around the pentagon in linking alternate vertices, tracing a pentagram. There must be an even number of colour changes, because we return to the first vertex as the loop is complete. Each colour change results in a red colour for the skipped vertex, while each non-change results in a blue.\nTherefore, at every step beyond the initial configuration, there must be an even number of red vertices (and an odd number of blue vertices). We enumerate these cases: the red vertex count must be 0, 2 or 4.\n\nIf the red vertex count is zero, then the pentagon is all blue which is a stable configuration and the problem is solved in this case.\nIf the red vertex count is even but non-zero, then there could be two reds. The two reds may be opposite as in the left-most diagram below, or adjacent as in the middle diagram. The last possibility is four reds which is the right-most diagram.\n![](attached_image_1.png)\nWe now notice that the successor to the left diagram is the middle diagram. The successor to the middle diagram is the right diagram, while the successor to the right diagram is the left diagram. So, after the first step, the pentagon is either all blue or establishes the three-cycle shown in the diagrams. For the three-cycle (in the orientation we have shown here), the top vertex is always blue. This completes the solution.\nThe times used below denote positions on a clock face as shown in the diagram.\n![](attached_image_2.png)\nWe rotate the pentagon such that its initial colouring has a vertical line of reflective symmetry. We can do this as follows:\n\n| Count | Red Positions | Count | Blue positions |\n|-------|-------------------------------|-------|-------------------------------|\n| 5 | 12:00, 2:24, 4:48, 7:12, 9:36 | 0 | — |\n| 4 | 2:24, 4:48, 7:12, 9:36 | 1 | 12:00 |\n| 3 | 12:00, 2:24, 9:36 | 2 | 4:48, 7:12 |\n| 3 | 12:00, 4:48, 7:12 | 2 | 2:24, 9:36 |\n| 2 | 4:48, 7:12 | 3 | 12:00, 2:24, 9:36 |\n| 2 | 2:24, 9:36 | 3 | 12:00, 4:48, 7:12 |\n| 1 | 12:00 | 4 | 2:24, 4:48, 7:12, 9:36 |\n| 0 | — | 5 | 12:00, 2:24, 4:48, 7:12, 9:36 |\n\nThere are two rows for the 2:3 and 3:2 splits as the two vertices may be adjacent or opposite.\nWe note the recolouring operation preserves the axis of symmetry. Finally, as the two vertices at 2:24 and 9:36 are always the same colour, then for any time strictly after the first recolouring, the top vertex is blue.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 33296, "subject": "Mathematics (Multi-modal)", "question": "Show that there exists a convex hexagon in the plane such that the distance between every pair of vertices is an integer.", "options": [], "answer": "Detailed solution", "solution": "Let $P_1$, $P_2$, $P_3$ be the vertices of an equilateral triangle with sides of length $1$ inscribed in a circle. Obtain points $Q_1$, $Q_2$, $Q_3$ by rotating the triangle $P_1P_2P_3$ so that $Q_i$ lies on the minor arc $P_iP_{i+1}$. Let $|P_1Q_1| = a$ and $|Q_1P_2| = b$. Applying Ptolemy's theorem to the cyclic quadrilateral $P_1Q_1P_2P_3$, we get $|Q_1P_3| = a + b$. Similarly $|Q_2P_1| = a + b = |Q_3P_2|$.\n\n![](attached_image_1.png)\n\nApplying the Cosine Law to triangle $P_1Q_1P_2$ and using that $\\angle P_2Q_1P_1 = 180^\\circ - \\angle P_2P_3P_1 = 120^\\circ$, we find that $a^2 + ab + b^2 = 1$. We wish to find solutions of this with $a$, $b$ rational and then scale up the diagram by an integer factor to obtain a hexagon in which all distances between vertices are integers. More specifically, we seek positive integers $m_1$, $m_2$, $n$ such that\n$$\n\\left(\\frac{m_1}{n}\\right)^2 + \\frac{m_1m_2}{n^2} + \\left(\\frac{m_2}{n}\\right)^2 = 1\n$$\ni.e. $m_1^2 + m_1m_2 + m_2^2 = n^2$. By trial and error, we may find that $m_1 = 5$, $m_2 = 3$, $n = 7$ is such a solution. This leads to $a = 5/7$, $b = 3/7$ and then $a+b = 8/7$. We now need to scale up the original diagram by a factor of $7$.\nThe Pythagorean triple $(3, 4, 5)$ gives rise to two triples with a shared length: $(9, 12, 15)$ and $(12, 16, 20)$. The corresponding triangles $PAB$ and $QAC$ can be put together as in the diagram below:\n\n![](attached_image_2.png)\n\nReflecting this diagram in the line $AQ$ and then in the perpendicular bisector of $PQ$, we obtain a hexagon $ABCDEF$ as shown in the next diagram.\n\nThe only distance that remains to be checked is $|BE|$, but this is the hypotenuse of a right angled triangle with sides $7$ and $24$, so $|BE| = 25$.\nLet $P_x = (\\cos(x), \\sin(x))$ be the point on the unit circle given by the angle $x$ and recall that\n$$\n\\sin(\\alpha \\pm \\beta) = \\sin(\\alpha) \\cos(\\beta) \\pm \\cos(\\alpha) \\sin(\\beta) \\\\\n\\cos(\\alpha \\pm \\beta) = \\cos(\\alpha) \\cos(\\beta) \\mp \\sin(\\alpha) \\sin(\\beta).\n$$\nThis means that the points $P_{\\alpha+\\beta}$ and $P_{\\alpha-\\beta}$ have rational coordinates whenever this is the case for the two points $P_{\\alpha}$ and $P_{\\beta}$. Also, recall that the length of a chord $AB$ of the unit circle subtending a central angle of size $2\\alpha$ is equal to $2\\sin(\\alpha)$. The consequence is that the chord $P_{2\\alpha}P_{2\\beta}$ has rational length whenever $P_{\\alpha}$ and $P_{\\beta}$ both have rational coordinates.\n\nHence, when we pick $n \\ge 3$ points on the unit circle, all of the form $P_{2\\alpha}$ where $P_{\\alpha}$ has rational coordinates, we obtain a convex $n$-gon such that the distances between every pair of vertices is a rational number. Scaling up with the common denominator gives integer distances.\n\nTo construct explicit examples, recall that each Pythagorean triple $(a, b, c)$ gives rise to a point $(a/c, b/c)$ on the unit circle (and vice versa). For example, starting with\n$$\nP_{\\alpha} = (\\cos(\\alpha), \\sin(\\alpha)) = \\left(\\frac{4}{5}, \\frac{3}{5}\\right), \\text{ we obtain}\n$$\n$$\nP_{2\\alpha} = (\\cos(2\\alpha), \\sin(2\\alpha)) = (\\cos^2(\\alpha) - \\sin^2(\\alpha), 2 \\sin(\\alpha) \\cos(\\alpha)) = \\left(\\frac{7}{25}, \\frac{24}{25}\\right).\n$$\nWhen we use $D = (1,0)$, $E = P_{2\\alpha}$, scale up by the factor $25/2$ and use symmetry we arrive at the example from Solution 2.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33297, "subject": "Mathematics (Multi-modal)", "question": "Suppose $a, b, c$ are the side lengths of a triangle. Prove that\n$$\na^2 + b^2 + c^2 \\leq a \\max(b, c) + b \\max(c, a) + c \\max(a, b)\n$$\nwith equality iff $a = b = c$.", "options": [], "answer": "Detailed solution", "solution": "Since $\\max(x, y) = \\frac{x+y+|x-y|}{2}$, twice the expression\n$$\na \\max(b, c) + b \\max(c, a) + c \\max(a, b)\n$$\nis equal to\n$$\na(b+c) + b(c+a) + c(a+b) + a|b-c| + b|c-a| + c|a-b|.\n$$\nTherefore,\n$$\n\\begin{aligned}\n& 2(a \\max(b,c) + b \\max(c,a) + c \\max(a,b)) - 2(a^2 + b^2 + c^2) \\\\\n&= 2 \\sum_{\\text{cyc}} ab + \\sum_{\\text{cyc}} a|b-c| - 2 \\sum_{\\text{cyc}} a^2 \\\\\n&= \\sum_{\\text{cyc}} a|b-c| - \\sum_{\\text{cyc}} (b-c)^2 = \\sum_{\\text{cyc}} |b-c|(a - |b-c|) \\ge 0,\n\\end{aligned}\n$$\nsince, by the triangle inequality, $|b-c| < a$, $|c-a| < b$, $|a-b| < c$. Moreover, the inequality is strict unless $|b-c| = |c-a| = |a-b| = 0$, i.e., $a = b = c$.\nBoth sides of the inequality remain unchanged under any permutation of $a, b, c$. Therefore, we may assume $a \\le b \\le c$. Under this assumption, $a \\max(b,c) + b \\max(c,a) + c \\max(a,b) = ac + bc + cb = ac + 2bc$. This means we need to prove that $a^2 + b^2 + c^2 \\le ac + 2bc$ which is equivalent to\n$$\n(c-b)^2 \\le a(c-a).\n$$\nAs $a \\le b$, we have $c - b \\le c - a$. Because $b \\le c$ and $c < a + b$, we also have $0 \\le c - b < a$. Multiplying these inequalities gives the desired result.\nTo understand the case of equality note that, because of the strict inequality $c - b < a$, we can only have $(c-b)^2 = a(c-a)$ if $c-b = c-a = 0$, which is equivalent to $a = b = c$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33298, "subject": "Mathematics (Multi-modal)", "question": "A circle is drawn through points $A$ and $B$ of a triangle $ABC$ such that the angle in the segment external to the triangle is the complement of $\\angle ACB$. Similarly a second circle is drawn through $A$ and $C$ with the angle in the segment external to the triangle equal to the complement of $\\angle ABC$.\nProve that the circles touch each other. Prove also that $BC$ is tangent to both circles when $\\angle BAC = 90^\\circ$.", "options": [], "answer": "Detailed solution", "solution": "Let $\\beta = \\angle ABC$, $\\gamma = \\angle BCA$ and let $\\Omega_B$ denote the circle through $A$ and $B$ and $\\Omega_C$ the circle through $A$ and $C$. The assumptions about the two circles mean that for any point $D$ on $\\Omega_B$ which is on the arc $AB$ that is outside $\\triangle ABC$ we have $\\angle BDA = 90^\\circ - \\gamma$. Similarly, for $E$ on $\\Omega_C$ on the correct arc $AC$ we have $\\angle AEC = 90^\\circ - \\beta$.\n\n![](attached_image_1.png)\n\nLet $T$ be a point inside triangle $ABC$ on the tangent to $\\Omega_B$ at $A$. By the Alternate Segment Theorem, we have $\\angle BAT = \\angle BDA = 90^\\circ - \\gamma$. Hence,\n$$\n\\angle TAC = \\angle BAC - \\angle BAT = (180^\\circ - \\beta - \\gamma) - (90^\\circ - \\gamma) = 90^\\circ - \\beta = \\angle AEC.\n$$\nThe converse of the Alternate Segment Theorem implies now that $TA$ is tangent to $\\Omega_C$ at $A$, i.e. $\\Omega_B$ and $\\Omega_C$ touch each other at $A$. When $\\angle BAC = 90^\\circ$, we have $\\beta + \\gamma = 90^\\circ$ and so $\\beta = 90^\\circ - \\gamma = \\angle BDA$ as well as $\\gamma = 90^\\circ - \\beta = \\angle AEC$. The converse of the Alternate Segment Theorem implies then that $BC$ is tangent to both circles.\nWe use notation from Solution 1 and let $O_B$ and $O_C$ be the centres of $\\Omega_B$ and $\\Omega_C$, respectively. The assumptions about the angle in the segment external to the triangle imply that the central angle $\\angle AO_B B$ equals $180^\\circ - 2\\gamma$ and that $\\angle AO_C C = 180^\\circ - 2\\beta$. These equations imply $\\angle O_B AB = \\gamma$ and $\\angle O_C AC = \\beta$. Because $\\angle BAC = 180^\\circ - \\beta - \\gamma$ we see now that $O_A, O_B$ and $A$ are collinear, hence the two circles touch each other at $A$.\n![](attached_image_2.png)\n\nFor the right angled case, see the end of Solution 1.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33299, "subject": "Mathematics (Multi-modal)", "question": "Find all prime numbers $p$ such that $2^p + 1$ is a perfect square.", "options": [], "answer": "3", "solution": "**Solution 1.** The only such prime is $p=3$, when $2^3 + 1 = 3^2$. We consider the remainder of $2^k + 1$ on division by $9$, for arbitrary integers $k$ and first note that $2^6 = 64 \\equiv 1 \\pmod{9}$ and so\n$$\n2^{k+6} + 1 \\equiv 2^6 2^k + 1 \\equiv 2^k + 1 \\pmod{9}.\n$$\nThe statement of the question clearly does not hold when $p=2$ so we must consider only odd primes. In that case, we can determine the following table of $2^k + 1 \\pmod{9}$ given $k \\pmod{6}$:\n\n| $k \\pmod{6}$ | $2^k + 1 \\pmod{9}$ |\n|---|---|\n| 1 | 3 |\n| 3 | 0 |\n| 5 | 6 |\n\nIf $3$ divides a perfect square, then so must $9$ and thus perfect squares can arise only when $k \\equiv 3 \\pmod{6}$ and in particular $k$ is a multiple of $3$. The only prime that is also a multiple of $3$, is $3$ itself.\n\n\n**Solution 2.** We first note that $2^p + 1 = n^2$ implies that $n$ needs to be odd. The given equation can be written as $2^p = (n-1)(n+1)$ with both factors on the right hand side even, hence $\\text{gcd}(n+1, n-1) = \\text{gcd}(n+1, 2) = 2$. As $n-1$ and $n+1$ must both be powers of $2$, it follows that the smaller of them, $n-1$, must be equal to $2$. This shows that $n=3$ which leads to the unique solution $p=3$. The assumption that $p$ is prime was not needed.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33300, "subject": "Mathematics (Multi-modal)", "question": "Let $a$, $b$, $c \\geq 0$ be real numbers with $a + b + c = 1$. Show that\n$$\na + b + c \\leq \\sqrt{a(1+b)} + \\sqrt{b(1+c)} + \\sqrt{c(1+a)} \\leq 2.\n$$", "options": [], "answer": "Detailed solution", "solution": "We consider first the left hand inequality. As $a + b + c = 1$ we have:\n$$\na \\leq 1 \\leq 1 + b, \\text{ so } a = \\sqrt{a^2} \\leq \\sqrt{a(1+b)}\n$$\nApplying this similarly to the other square roots and adding quickly gives:\n$$\n1 = a + b + c \\leq \\sqrt{a(1+b)} + \\sqrt{b(1+c)} + \\sqrt{c(1+a)}.\n$$\nA direct application of the AM-GM inequality does not yield the right hand inequality. Instead, we can tighten the AM-GM inequality by scaling the factors so they are equal when $a = b = 1/3$. This gives:\n$$\n\\sqrt{a(1+b)} = \\sqrt{2a \\cdot \\frac{1+b}{2}} \\leq \\frac{2a}{2} + \\frac{1+b}{4}.\n$$\nWe can add the three cyclical permutations and obtain:\n$$\n\\sqrt{2a \\cdot \\frac{1+b}{2}} + \\sqrt{2b \\cdot \\frac{1+c}{2}} + \\sqrt{2c \\cdot \\frac{1+a}{2}} \\\\\n\\leq a + \\frac{1+b}{4} + b + \\frac{1+c}{4} + c + \\frac{1+a}{4} = a + b + c + \\frac{3 + a + b + c}{4} = 2.\n$$\n\nAlternatively, to prove the right hand inequality we may use the Cauchy-Schwarz inequality\n$$\n\\left| \\sum_{k=1}^{n} x_k y_k \\right| \\leq \\sqrt{\\sum_{k=1}^{n} x_k^2} \\cdot \\sqrt{\\sum_{k=1}^{n} y_k^2}\n$$\nwith $n = 3$, $x_1 = \\sqrt{a}$, $x_2 = \\sqrt{b}$, $x_3 = \\sqrt{c}$ and $y_1 = \\sqrt{b+1}$, etc. We obtain\n$$\n\\sqrt{a(1+b)} + \\sqrt{b(1+c)} + \\sqrt{c(1+a)} \\\\\n\\leq \\sqrt{a + b + c} \\cdot \\sqrt{(1+b) + (1+c) + (1+a)} = \\sqrt{1} \\cdot \\sqrt{4} = 2.\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33301, "subject": "Mathematics (Multi-modal)", "question": "A school has $2020$ pupils, no two of whom are the same height. It also has a long bench on which the pupils can all sit in some order. An *arrangement* means some ordering of pupils on the bench. A *swap* means two pupils exchanging places while the other $2018$ stay fixed. An arrangement is said to be *unimodal* if the heights increase in sequence up to the tallest member and then decrease in sequence. For this purpose, the increasing arrangement and the decreasing arrangement are also considered unimodal.\nThe pupils start the day sorted from shortest to tallest. They want to re-arrange themselves to the opposite order, from tallest to shortest, in a sequence of swaps, such that all intermediate arrangements are unimodal.\nCan this be done?", "options": [], "answer": "Yes", "solution": "We will prove the following stronger statement: For any positive integer $n$ and any two unimodal arrangements of $n$ pupils, there is a sequence of swaps leading from one of the arrangements to the other, via unimodal arrangements.\n\nWe show this by induction on $n$. The result plainly holds when $n = 1$, as the sequence is both increasing and decreasing so no swap is required.\n\nSuppose now that $n \\ge 2$ and inductively we may assume the claim for $n-1$ pupils. The shortest pupil must be at one of the two ends in a unimodal arrangement, so we can partition the set of all unimodal arrangements of $n$ pupils into two subsets: $\\mathcal{L}$ with the shortest pupil at the left end, and $\\mathcal{R}$ with the shortest pupil at the right end.\n\nInductively, I claim that $\\mathcal{L}$ is connected by swaps. Indeed, any two arrangements in $\\mathcal{L}$ can be connected by swaps involving the taller $n-1$ pupils, since any unimodal arrangement of the $n-1$ taller pupils remains unimodal when the shortest pupil is placed at the far left. By the same argument, $\\mathcal{R}$ is connected.\n\nTo complete the induction, we need to show that $\\mathcal{L}$ is connected to $\\mathcal{R}$. It suffices to describe one arrangement from $\\mathcal{L}$ and one from $\\mathcal{R}$ which are connected by a swap. For example, numbering the pupils from $1$ (shortest) to $n$ (tallest), we obtain an arrangement in $\\mathcal{L}$ when we arrange the odd numbers in increasing order from the left, and the even numbers in increasing order from the right. Swapping pupils $1$ and $2$ gives an arrangement in $\\mathcal{R}$.\n\nThis completes the inductive step and the result is proved.", "topic": "Algebra", "subtopic": "Abstract Algebra" }, { "id": 33302, "subject": "Mathematics (Multi-modal)", "question": "It is Ann's birthday. She, her brother Jim, and 8 of her friends sit around a table in the shape of a regular decagon (a 10-sided polygon). Jim sits directly opposite Ann at the table. The 10 children play a game called *throw the parcel*, which works as follows. At the beginning, Ann has the parcel. The game then consists of $n$ moves. In each move, the person who has the parcel throws it to a person sitting immediately beside them (their neighbour), or to a person sitting immediately beside their neighbour. Whoever has the parcel at the end wins the game.\n\nBefore the game begins, Ann says to Jim, “there are over a million more ways for the parcel to travel to end up with me than with you”.\n\nDetermine, with proof, the values of $n$ for which Ann's claim is correct.", "options": [], "answer": "All even n with n ≥ 18", "solution": "Ann's claim is correct for all even $n$ greater than or equal to 18.\n\nDenote by $A_n, B_n, C_n, D_n, E_n$ and $F_n$ the number of ways for the parcel to end at a person at a distance (in either the clockwise or anticlockwise direction) of 0, 1, 2, 3, 4, and 5 from Ann, respectively, where Ann is at a distance of 0 from herself and Jim is at a distance of 5 from Ann. Then, we have $A_0 = 1, B_0 = C_0 = D_0 = E_0 = F_0 = 0$ and for every $n \\ge 0$ we get\n$$\nA_{n+1} = 2B_n + 2C_n \\quad (1)\n$$\n$$\nB_{n+1} = A_n + B_n + C_n + D_n \\quad (2)\n$$\n$$\nC_{n+1} = A_n + B_n + D_n + E_n \\quad (3)\n$$\n$$\nD_{n+1} = B_n + C_n + E_n + F_n \\quad (4)\n$$\n$$\nE_{n+1} = C_n + D_n + E_n + F_n \\quad (5)\n$$\n$$\nF_{n+1} = 2D_n + 2E_n \\quad (6)\n$$\nInitial computations yield $A_1 = 0, B_1 = C_1 = 1, D_1 = E_1 = F_1 = 0$ and $A_2 = 4, B_2 = 2, C_2 = 1, D_2 = 2, E_2 = 1, F_2 = 0$.\n\nNext assume that $n \\ge 2$. Subtract (6) from (1) and use (2) to (5) to get\n$$\n\\begin{aligned}\nA_{n+1} - F_{n+1} &= 2(B_n + C_n) - 2(D_n + E_n) \\\\\n&= 2(A_{n-1} + B_{n-1} + C_{n-1} + D_{n-1}) + 2(A_{n-1} + B_{n-1} + D_{n-1} + E_{n-1}) \\\\\n&\\quad - 2(B_{n-1} + C_{n-1} + E_{n-1} + F_{n-1}) - 2(C_{n-1} + D_{n-1} + E_{n-1} + F_{n-1}).\n\\end{aligned}\n$$\nCancelling terms, we obtain\n$$\n\\begin{aligned}\nA_{n+1} - F_{n+1} &= 4(A_{n-1} - F_{n-1}) + 2(D_{n-1} - E_{n-1}) + 2(B_{n-1} - C_{n-1}) \\\\\n&= 4(A_{n-1} - F_{n-1}) + 2(B_{n-2} - D_{n-2}) + 2(C_{n-2} - E_{n-2}) \\\\\n&= 4(A_{n-1} - F_{n-1}) + 2(B_{n-2} + C_{n-2}) - 2(D_{n-2} + E_{n-2}) \\\\\n&= 4(A_{n-1} - F_{n-1}) + A_{n-1} - F_{n-1} \\\\\n&= 5(A_{n-1} - F_{n-1}).\n\\end{aligned}\n$$\nwhere we have again used equations (2) to (5). Thus, since $A_1 - F_1 = 0$ and $A_2 - F_2 = 4$ and $A_{n+1} - F_{n+1} = 5(A_{n-1} - F_{n-1})$ for every $n \\ge 2$, we have\n$$\nA_n - F_n = \\begin{cases} 0 & \\text{if } n \\text{ is odd} \\\\ 4 \\cdot 5^{n/2-1} & \\text{if } n \\text{ is even.} \\end{cases}\n$$\nThus, for Ann's claim to be correct we need $n$ even and $4 \\cdot 5^{n/2-1} \\ge 10^6$, i.e., $5^{n/2-7} \\ge 16$. This yields $n/2 - 7 \\ge 2$ and thus $n \\ge 18$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33303, "subject": "Mathematics (Multi-modal)", "question": "Let $N = 15! = 15 \\cdot 14 \\cdot 13 \\cdots 3 \\cdot 2 \\cdot 1$. Prove that $N$ can be written as a product of nine different integers all between 16 and 30 inclusive.", "options": [], "answer": "Detailed solution", "solution": "There is a unique such representation:\n$$\n15! = 28 \\times 27 \\times 26 \\times 25 \\times 22 \\times 21 \\times 20 \\times 18 \\times 16.\n$$\nAll solutions start by factorising $15!$ into primes:\n$$\n15! = 2^{11} \\times 3^6 \\times 5^3 \\times 7^2 \\times 11 \\times 13.\n$$\nThis can be obtained manually or by Legendre's formula for the highest power of $p$ that divides $n!$ viz.\n$$\n\\left\\lfloor \\frac{n}{p} \\right\\rfloor + \\left\\lfloor \\frac{n}{p^2} \\right\\rfloor + \\left\\lfloor \\frac{n}{p^3} \\right\\rfloor + \\dots\n$$\n**Systematic Solution**\nAs there is only one multiple of $11$ and one multiple of $13$ between $16$ and $30$ inclusive, two of the factors in the product must be $22$ and $26$.\nThere are two multiples of $7$, and no multiples of $7^2$ between $16$ and $30$, so both $21$ and $28$ must feature in the product.\nThere are three multiples of $5$ between $16$ and $30$, one of which is $5^2$. So the multiples of $5$ in the product must be either $20$ and $25$, or $25$ and $30$.\nTaking out the factors already considered:\n$$\n\\frac{15!}{22 \\times 26 \\times 21 \\times 28 \\times 25} = 2^7 \\times 3^5 \\times 5 = 155520.\n$$\nTo finish the problem we seek four further factors between $16$ and $30$ (inclusive) excluding those already used.\nOf the remaining numbers between $16$ and $30$, only $\\{18, 24, 27, 30\\}$ are multiples of $3$. If we do not choose $27$, then we can reach at most $3^4$ in the product, which is short of the $3^5$ we need. Therefore, $27$ must be in the list of factors. Dividing through by $27$, we are left to find three factors of:\n$$\n\\frac{15!}{22 \\times 26 \\times 21 \\times 28 \\times 25 \\times 27} = 2^7 \\times 3^2 \\times 5 = 5760.\n$$\nThe feasible factors must only have prime factors of $2$, $3$ and/or $5$. Excluding factors already used, we have the following list:\n\n| Include | Factor | Prime factorisation |\n|---------|--------|------------------------------|\n| YES | 16 | $2^4 \\times 3^0 \\times 5^0$ |\n| YES | 18 | $2^1 \\times 3^2 \\times 5^0$ |\n| YES | 20 | $2^2 \\times 3^0 \\times 5^1$ |\n| NO | 24 | $2^3 \\times 3^1 \\times 5^0$ |\n| NO | 30 | $2^1 \\times 3^1 \\times 5^1$ |\n| Product | 5760 | $2^7 \\times 3^2 \\times 5^1$ |\n\nStart with $15!$ and starting from $30$, divide repetitively by the largest remaining number that is a factor.\nTaking the largest possible number at each stage\n$$\n15! = 30 \\times 28 \\times 27 \\times 26 \\times 25 \\times 24 \\times 22 \\times 21 \\times 8\n$$\nThis has nearly worked, but the final factor of $8$ is problematic.\nSo we tweak a bit, first replacing $8$ and $30$ by $20$ and $12$\n$$\n15! = 28 \\times 27 \\times 26 \\times 25 \\times 24 \\times 22 \\times 21 \\times 20 \\times 12\n$$\nThis is still not a solution, but our smallest factor has increased a bit. As a final step, replace $24$ and $12$ by $18$ and $16$ which gives the solution stated.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33304, "subject": "Mathematics (Multi-modal)", "question": "In how many ways can $2021$ be expressed as a sum of four positive integers none of which is a multiple of $3$? Sums with different orders count as distinct.", "options": [], "answer": "254924324", "solution": "Let the four integers be $n_1, n_2, n_3, n_4$ and write them as\n$$\nn_j = 3x_j - r_j \\quad x_j \\ge 1, r_j = 1 \\text{ or } 2.\n$$\nWithout any further constraint, there are $16$ possible combinations of values $1$ and $2$ for the $r_j$. However, as $2021 \\equiv 2 \\pmod 3$, we must have\n$$\nr_1 + r_2 + r_3 + r_4 \\equiv -2 \\equiv 1 \\pmod 3,\n$$\nand given the range of the $r_j$ this implies $r_1 + r_2 + r_3 + r_4 = 4$ or $7$. The first of these has one case, the second has four:\n\n| $r_1$ | $r_2$ | $r_3$ | $r_4$ | $r_1 + r_2 + r_3 + r_4$ |\n|-------|-------|-------|-------|--------------------------|\n| 1 | 1 | 1 | 1 | 4 |\n| 1 | 2 | 2 | 2 | 7 |\n| 2 | 1 | 2 | 2 | 7 |\n| 2 | 2 | 1 | 2 | 7 |\n| 2 | 2 | 2 | 1 | 7 |\n\nLet $s = x_1+x_2+x_3+x_4$, then $2021 = n_1+n_2+n_3+n_4 = 3s+(r_1+r_2+r_3+r_4)$ and\n$$\ns = \\frac{2021 + r_1 + r_2 + r_3 + r_4}{3} = 675 \\text{ or } 676.\n$$\nThe number of solutions to the original problem is equal to the number of solutions to $x_1+x_2+x_3+x_4 = 675$ plus four times the number of solutions to $x_1+x_2+x_3+x_4 = 676$. By considering the numbers $\\{x_1, x_1+x_2, x_1+x_2+x_3\\}$ as a subset of $\\{1, 2, 3, \\dots, s-1\\}$ we conclude that the number of solutions $(x_1, x_2, x_3, x_4)$ to $x_1 + x_2 + x_3 + x_4 = s$ is\n$$\n\\binom{s-1}{3}.\n$$\nTherefore, the number of solutions to the original problem is\n$$\n\\binom{674}{3} + 4\\binom{675}{3} = 674 \\cdot 673 \\cdot 562 = 254\\,924\\,324.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33305, "subject": "Mathematics (Multi-modal)", "question": "A convex quadrilateral $ABCD$ is such that $|AB| + |CD| = |AD| + |BC|$. Prove that a circle can be inscribed in $ABCD$ touching all four sides.", "options": [], "answer": "Detailed solution", "solution": "There always exists a circle that touches three of the four sides. For example, the circle that touches $BC$, $CD$ and $DA$ is either the incircle or an excircle of the triangle that has $CD$ as one side and two other sides which are contained in the lines $BC$ and $DA$.\n\n![](attached_image_1.png)\n\nLet $X$, $Y$ and $Z$ be the points where this circle touches $BC$, $CD$ and $DA$, respectively. Suppose $AB$ does not intersect the circle (the case with intersection is similar). Through $B$ there are two tangents to the circle, one of them is $BC$. Let the second tangent touch the circle at $W$ and meet $DA$ at $E$, which lies between $A$ and $D$ because we have assumed that $AB$ does not intersect the circle.\n\nBecause the two tangents from a point to a circle have equal length, we have $|EZ| = |EW|$, $|BW| = |BX|$, $|CX| = |CY|$ and $|DY| = |DZ|$. This implies $|EB| + |CD| = |DE| + |BC|$. But we were given $|AB| + |CD| = |AD| + |BC|$, hence $|AB| - |EB| = |AD| - |DE| = |AE|$. This is impossible unless $A = E$. Hence, the circle touches the side $AB$ as well.\nIf $ABCD$ is a rhombus, such a circle exists. Otherwise, there are two sides of unequal length that start at the same point. We label the vertices of the quadrilateral in such a way that $|AB| < |AD|$. We then have $|CD| > |BC|$. Therefore, we find points $P$ and $Q$ on the line segments $AD$ and $CD$, respectively, such that $|AB| = |AP|$ and $|CB| = |CQ|$. From the given $|AB| + |CD| = |AD| + |BC|$ we obtain $|DP| = |DQ|$ as well.\n\nConnecting $B$, $P$ and $Q$ we obtain three equilateral triangles: $\\triangle ABP$, $\\triangle CQB$ and $\\triangle DPQ$, hence the perpendicular bisectors of $PB$, $BQ$ and $QP$ are the angle bisectors of $\\angle PAB$, $\\angle BCQ$ and $\\angle QDP$, respectively. These three perpendicular bisectors meet at the circumcentre $O$ of triangle $BQP$. Since $O$ is on the three angle bisectors mentioned above, it has the same distance to all four sides of quadrilateral $ABCD$ and so is the centre of a circle that touches all four sides of $ABCD$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33306, "subject": "Mathematics (Multi-modal)", "question": "For each integer $n \\ge 100$ we define $T(n)$ to be the number obtained from $n$ by moving the two leading digits to the end. For example, $T(12345) = 34512$ and $T(100) = 10$. Find all integers $n \\ge 100$ for which:\n$$\nn + T(n) = 10n.\n$$", "options": [], "answer": "All n of the form n = 10(10^{6k} − 1)/91 for integers k ≥ 1; equivalently, n is the k-fold concatenation of the six-digit block 109890.", "solution": "The general solution is\n$$\nn = \\frac{10}{91} \\times (10^{6k} - 1) = (1 + 10^6 + 10^{12} + \\dots + 10^{6(k-1)}) \\times 109890\n$$\nfor any positive integer $k$. In other words, the number $n$ consists of $k$ replicates of the digits 109890.\n\nLet $m$ be the number of digits of $n$ so $m \\ge 3$ when $n \\ge 100$. Dividing $n$ by $10^{m-2}$, let $q$ be the quotient and $r$ the remainder. This splits the digits of $n$ into the first two and the remaining digits,\n$$\nn = 10^{m-2}q + r\n$$\nwhere $10 \\le q \\le 99$ and $0 \\le r < 10^{m-2}$. Rearranging the digits we have:\n$$\nT(n) = 100r + q.\n$$\nThe equation $n + T(n) = 10n$ is equivalent to $T(n) = 9n$ which we write in terms of $q$ and $r$:\n$$\n100r + q = 9 \\times 10^{m-2}q + 9r\n$$\nor\n$$\n91r = (9 \\times 10^{m-2} - 1)q. \\qquad (7)\n$$\n\nWe know that $q \\ge 10$. We now claim that $q = 10$ for any solution. For a contradiction, suppose that $q \\ge 11$. Then equation (7) implies that\n$$\n(9 \\times 10^{m-2} - 1) \\times 11 \\le (9 \\times 10^{m-2} - 1)q = 91r < 91 \\times 10^{m-2}.\n$$\nComparing the left and right end gives $(99-91) \\times 10^{m-2} \\le 11$, contradicting $m \\ge 3$. Therefore $q = 10$. Substituting $q = 10$ into equation (7) gives\n$$\n91r = (9 \\times 10^{m-2} - 1) \\times 10.\n$$\nAs $\\gcd(91, 10) = 1$ then 91 must divide $9 \\times 10^{m-2} - 1$. This is not only necessary but also sufficient, as we can then write:\n$$\nr = \\frac{9 \\times 10^{m-2} - 1}{91} \\times 10 < \\frac{9}{91} \\times 10^{m-1} < 10^{m-2} \\quad (8)\n$$\nand $r$ is then an integer that lies in the feasible range.\nIt remains then to find the values of $m$ for which $9 \\times 10^{m-2} - 1$ is a multiple of 91. Equivalently, we require that $(9 + 91) \\times 10^{m-2} - 1 = 10^m - 1$, is a multiple of 91. As $91 = 7 \\times 13$ we can use a short cut to check that $10^m - 1$ is a multiple both of 7 and of 13. Remainders tabulated below:\n\n| m | $10^m$ (mod 7) | $10^m$ (mod 13) | $10^m$ (mod 91) |\n|---|----------------|-----------------|-----------------|\n| 0 | 1 | 1 | 1 |\n| 1 | 3 | 10 | 10 |\n| 2 | 2 | 9 | 9 |\n| 3 | 6 | 12 | 90 |\n| 4 | 4 | 3 | 81 |\n| 5 | 5 | 4 | 82 |\n| 6 | 1 | 1 | 1 |\n\nThe pattern continues with period 6. Therefore, $m$ must be a multiple of 6, and, as $m \\ge 3$ we have $m = 6k$ for some positive integer $k$.\nReconstructing the pieces and using equation (8) we have:\n$$\n\\begin{align*}\nq &= 10 & r &= \\frac{9 \\times 10^{6k-2} - 1}{91} \\times 10 \\\\\nn &= 10^{6k-2}q + r = 10 \\times \\frac{91 \\times 10^{6k-2} + 9 \\times 10^{6k-2} - 1}{91} = 10 \\times \\frac{10^{6k} - 1}{91}.\n\\end{align*}\n$$\nWe can write the digits explicitly, noting that:\n$$\n10 \\times \\frac{10^{6k} - 1}{91} = \\frac{10 \\times (10^6 - 1)}{91} (1 + 10^6 + 10^{12} + \\dots + 10^{6(k-1)}).\n$$\nAs $10 \\times (10^6 - 1)/91 = 989010$ the stated representation follows.\nThe equation $n + T(n) = 10n$ could also be written as $T(n) = 9n$.\nAs $n$ and $T(n)$ have the same number of digits, the leading digit of $n$ must be equal to 1 and the leading digit of $T(n) = 9n$, which is the third digit from the left of $n$, has then to be equal to 9. This implies that there occurs a carry from the third to the second place from the left, hence the second digit of $n$ must be zero. The shapes of $n$ and $T(n)$ are therefore\n$$\nn = 109 **\\ldots** * \\qquad T(n) = 9 **\\ldots** * 10\n$$\nwhere each star stands for a digit and the dots indicate that the number of digits of $n$ is currently unknown. We can now work our way backwards from $T(n) = 9n$ to $n$, starting at the end. The key feature we are using here is that $9k \\equiv -k \\equiv 10 - k \\pmod{10}$.\nLet the rightmost unknown digit be equal to $d$ so that we have\n$$\nn = 109 **\\ldots** * d \\qquad 9n = T(n) = 9 **\\ldots** * d10\n$$\nthen $9d \\equiv 0 \\pmod{10}$, hence $d = 0$. This gives us\n$$\nn = 109 **\\ldots** * 0 \\qquad 9n = T(n) = 9 **\\ldots** * 010\n$$\nWe will again call the rightmost unknown digit $d$ so that we have\n$$\nn = 109 **\\ldots** * d0 \\qquad 9n = T(n) = 9 **\\ldots** * d010\n$$\nand $9d \\equiv 1 \\pmod{10}$, hence $d = 9$. We now need to check if this digit could already be the third digit from the left, i.e. $n = 1090$. But $1090 \\cdot 9 = 9810 \\neq T(1090)$. This gives us, with new $d$,\n$$\nn = 109 **\\ldots** * d90 \\qquad 9n = T(n) = 9 **\\ldots** * d9010\n$$\nand, keeping the carry in mind, $9d + 8 \\equiv 0 \\pmod{10}$. Therefore, $d = 8$ and\n$$\nn = 109 **\\ldots** * d890 \\qquad 9n = T(n) = 9 **\\ldots** * d89010\n$$\nwith $9d + 8 \\equiv 9 \\pmod{10}$, which implies $d = 9$. We have to check again if this digit could already be the third digit from the left, i.e. $n = 109890$. Indeed, we now have $9n = 9 \\cdot 109890 = 989010 = T(n)$.\nSo far we have shown that $109890$ is one solution and that the last six digits of $T(n)$ for any solution $n$ need to be $989010$. This implies that the last six digits of any solution $n$ are equal to $989010/9 = 109890$.\nWe could now continue in the manner above to see that this sequence of digits must repeat if $n$ has more than six digits. Alternatively, we could argue as follows.\n\nLet $m$ be the number obtained from $n$ by removing the last six digits. We show that $T(m) = 9m$. Clearly, $T(m)$ agrees, except possible at the last two digits, with the number $T'(n)$ obtained from $T(n)$ by removing the last six digits. As we have seen above, the two leading digits of $n$, and so also of $m$, are 10. As the last six digits of $n$ are 109890, the last two digits of $T'(n)$ are 10. Hence, $T'(n) = T(m)$. Using $T(n) = 9n$ it follows now that $T(m) = 9m$. It follows by induction that $n$ has $6k$ digits ($k \\ge 1$) and consists of $k$ consecutive blocks of six digits, all equal to 109890.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33307, "subject": "Mathematics (Multi-modal)", "question": "A point $C$ lies on a line segment $AB$ between $A$ and $B$ and circles are drawn having $AC$ and $CB$ as diameters. A common tangent to both circles touches the circle with $AC$ as diameter at $P \\neq C$ and the circle with $CB$ as diameter at $Q \\neq C$.\nProve that $AP$, $BQ$ and the common tangent to both circles at $C$ all meet at a single point which lies on the circumference of the circle with $AB$ as diameter.", "options": [], "answer": "Detailed solution", "solution": "Let $AP$ and $BQ$ intersect at $D$ and let $R$ and $S$ be the centres of the circles. Join $PR$, $QS$, $PC$, $QC$ and $DC$ and note the circles touch at $C$. Let $DC$ meet $PQ$ at $E$. Since $PR$ and $QS$ are both perpendicular to $PQ$, $PR$ is parallel to $QS$ and so $\\angle PRA = \\angle QSC$ which implies that triangles $PRA$ and $QSC$ are similar since both triangles are isosceles. It follows that $\\angle PAC = \\angle QCB$.\n![](attached_image_1.png)\nSince $\\angle APC = 90^\\circ$ (angle in semicircle), we have $90^\\circ = \\angle PAC + \\angle PCA = \\angle QCB + \\angle PCA$, hence $\\angle PCQ = 90^\\circ$. Also $\\angle CQB = 90^\\circ$ (angle in semicircle).\nBecause $\\angle DPC = \\angle PCQ = \\angle DQC = 90^\\circ$, we also have $\\angle PDQ = 90^\\circ$, which shows that $D$ lies on the circumference of the circle on $AB$ as diameter. In addition $PCQD$ is a rectangle and since the diagonals of a rectangle bisect each other $|EP| = |EQ|$, hence $E$ lies on the radical axis of the two circles and so does $C$. This means that $EC$, and so $DC$ as well, is the common tangent at $C$. This completes the proof.\n\n\nLet $D$ be the intersection point of the lines $AP$ and $BQ$.\nBecause $PQ$ is a tangent to the circle with diameter $AC$, the Alternate Segment Theorem gives $\\angle QPC = \\angle PAC$. The angle $\\angle DPC$ is a right angle, because $\\angle APC$ is standing on a diameter. Hence, $\\angle DPQ = 90^\\circ - \\angle QPC = 90^\\circ - \\angle PAC$.\nWorking with the circle of diameter $CB$ we obtain in a similar way $\\angle PQC = \\angle QBC$ and $\\angle DQP = 90^\\circ - \\angle PQC = 90^\\circ - \\angle QBC$.\n![](attached_image_2.png)\nConsidering triangle $DPQ$ we now obtain\n$$\n\\begin{aligned}\n\\angle PDQ &= 180^\\circ - (\\angle DPQ + \\angle DQP) \\\\\n&= 180^\\circ - (90^\\circ - \\angle PAC + 90^\\circ - \\angle QBC) \\\\\n&= \\angle PAC + \\angle QBC.\n\\end{aligned}\n$$\nUsing the angle sum in triangle $DAB$ this implies $2\\angle PDQ = 180^\\circ$, i.e. $\\angle PDQ$ is a right angle. This shows that $D$ is on the circle that has $AB$ as a diameter. This also shows that $PCQD$ is a rectangle, which implies that $\\angle PDC = \\angle PQC$.\nTogether with $\\angle PQC = \\angle QBC$, which we have seen above, we now obtain\n$$\n\\angle PAC + \\angle PDC = \\angle PAC + \\angle QBC = \\angle PDQ = 90^\\circ.\n$$\nFrom triangle $DAC$ we now see that $\\angle ACD = 90^\\circ$, hence $D$ is on the common tangent to both circles at $C$.\n\n\nLet $D$ be the intersection point of the lines $AP$ and $BQ$.\nThe angles $\\angle APC$ and $\\angle CQB$ are standing on diameters, hence these are right angles. Therefore, the quadrilateral $PCQD$ is cyclic and so\n$$\n\\angle PDC = \\angle PQC \\quad \\text{and} \\quad \\angle QPC = \\angle QDC.\n$$\n![](attached_image_3.png)\nBecause $PQ$ is a tangent to the circle with diameter $AC$, the Alternate Segment Theorem gives $\\angle QPC = \\angle PAC$. Similarly, $\\angle PQC = \\angle QBC$. Combined with the equations above, we obtain\n$$\n\\angle PDC = \\angle QBC \\quad \\text{and} \\quad \\angle QDC = \\angle PAC\n$$\nwhich shows that the triangles $ADC$, $DBC$ and $ABD$ are similar. As a consequence, $\\angle DCA = \\angle DCB = \\angle BDA$. Because $\\angle DCA + \\angle DCB = 180^\\circ$, these three angles are right angles. This implies that $D$ is on the circle with diameter $AB$ and $D$ is on the common tangent to both circles at $C$.\n\n\nLet $D$ be the intersection point of the line $AP$ and the common tangent at $C$ of the circles with diameters $AC$ and $CB$. Let $N$ be the intersection point of $PQ$ and $CD$. Because tangents from a point to a circle are of equal length, we have $|NP| = |NC|$ and $|NC| = |NQ|$, hence $N$ is the circumcentre of triangle $PCQ$. As $N$ is on $PQ$, $\\angle PCQ$ is a right angle. This implies that $\\angle QPC + \\angle PQC = 90^\\circ$.\nThe angles $\\angle APC$ and $\\angle CQB$ are standing on diameters, hence these are right angles. Therefore, $\\angle PAC + \\angle PCA = \\angle QCB + \\angle QBC = 90^\\circ$.\nBecause $PQ$ is a tangent to the circles with diameters $AC$ and $CB$, the Alternate Segment Theorem gives $\\angle QPC = \\angle PAC$ and $\\angle PQC = \\angle QBC$. Together with equations obtained earlier, we now have $\\angle PAC = \\angle QPC = \\angle QCB$ and $\\angle QBC = \\angle PQC = \\angle PCA$.\nSince $CD$ is perpendicular to $AB$, we also have $\\angle PAC + \\angle PDC = 90^\\circ$ from which we obtain $\\angle PDC = \\angle PQC$. This equality implies that $D$ is on the circumcircle of triangle $PCQ$. So, $D$ is the intersection point of the common tangent at $C$ and the circumcircle of triangle $PCQ$.\n![](attached_image_4.png)\nWe now let $E$ be the intersection point of the line $BQ$ and the common tangent at $C$ of the circles with diameters $AC$ and $CB$. We do not know at this stage if $E = D$, as indicated in the diagram.\nFrom the equations obtained above and $\\angle QBC + \\angle QEC = 90^\\circ$ we obtain $\\angle QEC = \\angle QPC$. This equality implies that $E$ is on the circumcircle of triangle $PCQ$. So, $E$ is the intersection point of the common tangent at $C$ and the circumcircle of triangle $PCQ$, which means that $E = D$. This proves that $AP$, $BQ$ and the common tangent at $C$ are concurrent.\nTo finish, we just need to note that $\\angle ADB = \\angle PDC + \\angle QEC = 90^\\circ$ from the equations obtained before, and this implies that the point $D = E$ is on the circle with diameter $AB$.\n\n\nLet $D$ be one of the intersection points of the circle with diameter $AB$ and the common tangent at $C$ of the circles with diameters $AC$ and $CB$. Connect $D$ to $A$ and let $P'$ be the intersection point of this line with the circle that has diameter $AC$. Connect $D$ to $B$ and let $Q'$ be the intersection point of this line with the circle that has diameter $CB$. We wish to prove that $P' = P$ and $Q' = Q$. This follows when we have shown that $P'Q'$ is a common tangent to the circles with diameters $AC$ and $CB$.\n![](attached_image_5.png)\nTo prove this, we first notice that, since $\\angle AP'C$, $\\angle CQ'B$ and $\\angle ADB$ are right angles, we have $\\angle DAC = \\angle Q'CB$ and $\\angle DBC = \\angle P'CA$.\nBecause $CD$ is the radical axis of the circles with diameters $AC$ and $CB$, the point $D$ has the same power with respect to these two circles, that is $|DP'| \\cdot |DA| = |CD|^2 = |DQ'| \\cdot |DB|$ and so\n$$\n\\frac{|DA|}{|DB|} = \\frac{|DQ'|}{|DP'|}\n$$\nwhich implies that triangles $DAB$ and $DQ'P'$ are similar in such a way that\n$$\n\\angle DBC = \\angle DP'Q' \\quad \\text{and} \\quad \\angle DAC = \\angle DQ'P'.\n$$\nUsing the initially noticed equalities, we see now that\n$$\n\\angle P'CA = \\angle DP'Q' \\quad \\text{and} \\quad \\angle Q'CB = \\angle DQ'P'.\n$$\nThe converse of the Alternate Segment Theorem implies now that $P'Q'$ is tangent to the circles with diameters $AC$ and $CB$. This shows that $P' = P$ and $Q' = Q$ and finishes the proof.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33308, "subject": "Mathematics (Multi-modal)", "question": "Solve $\\sqrt{x + 5 - 4\\sqrt{x + 1}} + \\sqrt{x + 17 - 8\\sqrt{x + 1}} = 2$ for all real $x$.", "options": [], "answer": "x in [3, 15]", "solution": "It is necessary that $x \\ge -1$. Let $u = \\sqrt{x+1}$. Then\n$$\n\\begin{align*}\n& \\sqrt{x+5-4\\sqrt{x+1}} + \\sqrt{x+17-8\\sqrt{x+1}} \\\\\n&= \\sqrt{u^2+4-4u} + \\sqrt{u^2+16-8u} \\\\\n&= \\sqrt{(u-2)^2} + \\sqrt{(u-4)^2} \\\\\n&= |u-2| + |u-4|.\n\\end{align*}\n$$\nThus the equation becomes\n$|u - 2| + |u - 4| = 2.$\nNoting that $|u - 2|$ and $|u - 4|$ represent the distances, along the $u$-axis, of $u$ from the points $2$ and $4$ respectively, and that the points $2$ and $4$ are a distance $2$ apart, then it follows that if $u < 2$ or $4 < u$ the equation has no real solution, and if $2 \\le u \\le 4$ the left hand side of the equation becomes\n$|u - 2| + |u - 4| = u - 2 + 4 - u = 2.$\nThis means that the solution set is \\{$u : 2 \\le u \\le 4$\\}. Returning to $x = u^2 - 1$,\nwe obtain the solution set \\{$x : 3 \\le x \\le 15$\\}.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33309, "subject": "Mathematics (Multi-modal)", "question": "Suppose the real numbers $a$, $A$, $b$, $B$ satisfy the inequalities:\n$$\n|A - 3a| \\le 1 - a, \\quad |B - 3b| \\le 1 - b,\n$$\nand $a$, $b$ are positive. Prove that $\\left| \\frac{AB}{3} - 3ab \\right| \\le 1 - ab$.", "options": [], "answer": "Detailed solution", "solution": "Observe that $a$, $b \\in (0, 1]$. Let $u = A - 3a$, $v = B - 3b$. Then $|u| \\le 1 - a$, $|v| \\le 1 - b$, and $A = u + 3a$, $B = v + 3b$, so that $AB = uv + 3(ub + va) + 9ab$. Hence\n$$\n\\begin{align*}\n|AB - 9ab| &= |uv + 3(ub + va)| \\\\\n&\\le |u||v| + 3(b|u| + a|v|) \\\\\n&\\le (1-a)(1-b) + 3(a(1-b) + b(1-a)) \\\\\n&= 1 + 2(a+b) - 5ab \\\\\n&= 3(1-ab) - 2(1-a-b+ab) \\\\\n&\\le 3(1-ab)\n\\end{align*}\n$$\nsince\n$1 - a - b + ab = (1 - a)(1 - b) \\geq 0.$\nWhence, dividing by 3, it follows that\n$$\n\\left| \\frac{AB}{3} - 3ab \\right| \\leq 1 - ab.\n$$\nWhen we add the two equations\n$$\n(1-a)(1+b) = 1-ab-a+b \\quad \\text{and} \\\\\n(1+a)(1-b) = 1-ab+a-b \\quad \\text{we obtain}\n$$\n$$\n(1 - a)(1 + b) + (1 + a)(1 - b) = 2(1 - ab). \\qquad (9)\n$$\nSimilarly, adding\n$$\n(A - 3a)(B + 3b) = AB - 9ab - 3aB + 3Ab \\quad \\text{to} \\\\\n(A + 3a)(B - 3b) = AB - 9ab + 3aB - 3Ab \\quad \\text{gives}\n$$\n$$\n(A - 3a)(B + 3b) + (A + 3a)(B - 3b) = 2(AB - 9ab). \\qquad (10)\n$$\nSince $0 \\le |A - 3a| \\le 1 - a$, we have $0 < a \\le 1$ and $A - 3a \\le |A - 3a| \\le 1 - a$ and so $A \\le 1 + 2a \\le 3$. But also $3a - A \\le |A - 3a| \\le 1 - a$, which gives $-1 < 4a - 1 \\le A$, hence $|A| \\le 3$. This implies $|A + 3a| \\le |A| + 3a \\le 3(1+a)$. In a similar way we obtain $|B + 3b| \\le 3(1+b)$. Using (10), the triangle inequality and the assumption, we now see that\n$$\n2|AB - 9ab| \\le |A - 3a| \\cdot |B + 3b| + |A + 3a| \\cdot |B - 3b| \\\\\n\\le 3(1 - a)(1 + b) + 3(1 + a)(1 - b) = 6(1 - ab),\n$$\nwhere we have used (9) at the end. Division by 6 yields the desired inequality.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 33310, "subject": "Mathematics (Multi-modal)", "question": "Determine the largest integer which is the side length of a square tile which can be used to completely tile a rectangle that is inscribed in a circle of radius $75$.", "options": [], "answer": "30", "solution": "Let $x$ be the side length of the square tile. If the rectangle is completely tiled with such square tiles, there exist integers $a, b$ such that the side lengths of the rectangle are $ax$ and $bx$. We let $r = 75$ denote the radius of the circle.\n\n![](attached_image_1.png)\n\nThe diagonals of the rectangle are diameters of the circle and so their length is $2r$. Applying Pythagoras to the right angled triangle obtained by cutting the rectangle along one of its diagonals, we obtain\n$$\n(2r)^2 = x^2(a^2 + b^2).\n$$\nAs $x, r, a, b$ are integers, this implies that $x$ is a factor of $2r$ and so $c = 2r/x$ is an integer that satisfies $c^2 = a^2 + b^2$. Because we are to find the largest possible $x = 2r/c$, we are interested in the smallest $c$ that divides $2r$ and which appears as the hypotenuse of a right angled triangle with integer side lengths.\n\nThe positive divisors of $2r = 150 = 2 \\cdot 3 \\cdot 5^2$ are $1, 2, 3, 5, 6, 10, 15, 25, 30, 50, 75$ and $150$. Because $1^2 + 1^2 = 2$, $1^2 + 2^2 = 5$, $2^2 + 2^2 = 8$ and all other sums of two positive squares are greater than $9$, we confirm that none of the numbers $1^2 = 1$, $2^2 = 4$ and $3^2 = 9$ is the sum of two non-zero squares. This rules out $1, 2, 3$ for $c$. Therefore, $c$ is at least $5$.\n\nWhen $c = 5$, we can use $a = 3$ and $b = 4$ to get $c^2 = a^2 + b^2$. In this case we obtain $x = 150/5 = 30$. The side lengths of the rectangle are then equal to $ax = 90$ and $bx = 120$. Such a rectangle is indeed inscribed into a circle of radius $r = 75$, because $150^2 = 90^2 + 120^2$ which is just $30^2$ times $5^2 = 3^2 + 4^2$.\n\n![](attached_image_2.png)\n\nTherefore, the largest possible integer side length of a square tile that can be used to completely tile a rectangle that is inscribed in a circle of radius $75$ is equal to $30$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33311, "subject": "Mathematics (Multi-modal)", "question": "Find all six-digit numbers $n$ with the following properties:\n* the number formed by the last three digits of $n$ is exactly 4 greater than the number formed by the first three digits of $n$;\n* $n$ is the square of an integer.", "options": [], "answer": "205209, 300304, 477481, 732736", "solution": "Let $x$ be the number formed from the first three digits of $n$. Then $n$ is equal to $1000x + (x + 4) = 1001x + 4$ which should be the square $y^2$ of an integer $y$. The equation $y^2 = 1001x + 4$ can be written as $(y - 2)(y + 2) = 7 \\cdot 11 \\cdot 13 \\cdot x$. Since $n < 10^6$, we have $y < 10^3$ and so $y$ is determined by its remainder on division by $1001 = 7 \\cdot 11 \\cdot 13$, which, by the Chinese Remainder Theorem, is determined by the three remainders $y \\pmod{7}$, $y \\pmod{11}$ and $y \\pmod{13}$.\n\nFrom the equation above we see that $y \\equiv \\pm 2 \\pmod{7}$, $y \\equiv \\pm 2 \\pmod{11}$ and $y \\equiv \\pm 2 \\pmod{13}$. To find the eight possibilities for $y \\pmod{1001}$ corresponding to the different choices of signs, we first complete the table\n\n| y (mod 7) | y (mod 11) | y (mod 13) | y (mod 1001) |\n|-----------|------------|------------|--------------|\n| 2 | 2 | 2 | 2 |\n| 2 | 2 | -2 | 310 |\n| 2 | -2 | 2 | 548 |\n| 2 | -2 | -2 | 856 |\n\nand then multiply each line by $-1$ and replace negative residues modulo 1001 by their corresponding smallest non-negative remainder.\nHere is how the numbers in the fourth column of the table can be obtained. First we find numbers $m_1, m_2$ and $m_3$ such that\n$$\n\\begin{array}{l@{\\hspace{2em}}l}\nm_1 \\equiv 1 \\pmod{7} & 11 \\cdot 13 \\mid m_1 \\\\\nm_2 \\equiv 1 \\pmod{11} & 7 \\cdot 13 \\mid m_2 \\\\\nm_3 \\equiv 1 \\pmod{13} & 7 \\cdot 11 \\mid m_3.\n\\end{array}\n$$\nTo do so, we just have to solve congruences like $11 \\cdot 13 \\cdot k \\equiv 1 \\pmod{7}$. The solutions of smallest absolute value are $m_1 = -286$, $m_2 = 364$ and $m_3 = -77$. If the numbers in the first three columns of our table are $a_1, a_2, a_3$, then the number in the fourth column is congruent to $a_1m_1 + a_2m_2 + a_3m_3$. For the first two rows, we obtain the numbers given in the table whereas for rows three and four we first get $-1146$ and $-1454$, respectively, and then have to add 2002. The remaining four solutions are\n$$\n\\begin{array}{l@{\\hspace{2em}}l}\n999 \\equiv -2 \\pmod{1001} & 691 \\equiv -310 \\pmod{1001} \\\\\n453 \\equiv -548 \\pmod{1001} & 145 \\equiv -856 \\pmod{1001}.\n\\end{array}\n$$\nBecause $y^2 = n$ and $n$ is a six-digit number, we can rule out that $y$ is one of the numbers 2, 145 or 310 as the squares of these numbers have less than six digits. When $y = 999$ we get $y^2 = 999^2 = 998001$ and this does not give a solution to the problem. This leaves us with four solutions:\n$$\n\\begin{aligned}\nn &= 453^2 = 205209 \\\\\nn &= 548^2 = 300304 \\\\\nn &= 691^2 = 477481 \\\\\nn &= 856^2 = 732736\n\\end{aligned}\n$$\nwhich clearly satisfy the requirements of the problem.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33312, "subject": "Mathematics (Multi-modal)", "question": "You have a $3 \\times 2021$ chessboard from which one corner square has been removed. You also have a set of $3031$ identical dominoes, each of which can cover two adjacent chessboard squares. Let $m$ be the number of ways in which the chessboard can be covered with the dominoes, without gaps or overlaps.\nWhat is the remainder when $m$ is divided by $19$?", "options": [], "answer": "1", "solution": "Let $b_n$ be the number of ways of covering a $3 \\times (2n + 1)$ chessboard with one corner square removed with $3n + 1$ dominoes. We are interested in the value of $b_{1010}$.\nLet $a_n$ be the number of ways of covering a $3 \\times 2n$ chessboard with $3n$ dominoes. We develop a recurrence relation for $a_n$ and $b_n$.\nFor $n \\ge 1$, let us consider a covering of the $3 \\times 2n$ chessboard. Number the cells of the chessboard $(i, j)$ where $1 \\le i \\le 3$ is a row and $1 \\le j \\le 2n$ is a column. With respect to the first column, there are three cases:\n* All three dominoes in this column are horizontal.\n* There is a vertical domino covering $(1, 1)$ and $(2, 1)$ which implies there is a horizontal domino covering $(3, 1)$ and $(3, 2)$.\n* There is a vertical domino covering $(2, 1)$ and $(3, 1)$ which implies there is a horizontal domino covering $(1, 1)$ and $(1, 2)$.\nThe number of ways of covering the remaining parts of the chessboard are $a_{n-1}$, $b_{n-1}$ and $b_{n-1}$ respectively. Thus we have:\n$$\na_n = a_{n-1} + 2b_{n-1}.\n$$\nNow consider a covering of the $3 \\times (2n + 1)$ chessboard with the square $(3, 1)$ removed. There are two cases:\n* The cells $(1, 1)$ and $(2, 1)$ are covered by a single vertical domino.\n* There is a horizontal domino covering $(1, 1)$ and $(1, 2)$ and another horizontal domino covering $(2, 1)$ and $(2, 2)$. This implies there must also be a horizontal domino covering $(3, 2)$ and $(3, 3)$.\nAdding together these two cases, we deduce that:\n$$\nb_n = a_n + b_{n-1}.\n$$\nWe can calculate the first few here:\n\n| n | $a_n$ | $b_n$ | $a_n$ (mod 19) | $b_n$ (mod 19) |\n|---|-------|-------|----------------|----------------|\n| 0 | 1 | 1 | 1 | 1 |\n| 1 | 3 | 4 | 3 | 4 |\n| 2 | 11 | 15 | 11 | 15 |\n| 3 | 41 | 56 | 3 | 18 |\n| 4 | 153 | 209 | 1 | 0 |\n| 5 | 571 | 780 | 1 | 1 |\n| 6 |2131 |2911 | 3 | 4 |\n\nWe note a period of $5$ in the remainder modulo $19$. As $1010 \\equiv 0 \\pmod{5}$ we conclude $B = b_{1010} \\equiv 1 \\pmod{19}$.\n\n\nLet $b_n$ be the number of ways of covering a $3 \\times (2n+1)$ chessboard with one corner square removed with $3n+1$ dominoes. We are interested in the value of $b_{1010}$.\nSuppose the corner square is removed from the first column of the $(2n+1) \\times 3$ chessboard.\nIf $n \\ge 1$, the dominoes that cover the squares of the last column can be placed in three different ways:\n![](attached_image_1.png)\nIn type 1, the squares of the second last column are already covered. In types 2 and 3, there are two possibilities how the remaining two squares in the second last column can be covered, provided that $n \\ge 2$:\n![](attached_image_2.png)\nWhen $n=1$ and the bottom square of the first column is removed, type 3b is not possible. Using the obvious $b_0=1$, we see now that $b_1=4$; the four possibilities are obtained from types 1, 2a, 2b and 3a.\n\nTherefore, the contribution to $b_{n+1}$ from types 2b and 3b is equal to the number of possibilities to tile the $(2n+1) \\times 3$ chessboard so that the last two columns are not of type 1. As we have seen above, the number of possibilities to tile a $(2n+1) \\times 3$ chessboard with the last two columns of type 1 is equal to $b_{n-1}$, hence the contribution to $b_{n+1}$ from types 2b and 3b together is equal to $b_n - b_{n-1}$, and finally\n$$\nb_{n+1} = 3b_n + b_n - b_{n-1} = 4b_n - b_{n-1}.\n$$\nStarting with $b_0 = 1$ and $b_1 = 4$ we can now calculate $b_n$ (mod 19):\n\n| n | 0 | 1 | 2 | 3 | 4 | 5 | 6 |\n|---|---|---|---|---|---|---|---|\n|$b_n$ (mod 19)| 1 | 4 | -4 | -1 | 0 | 1 | 4 |\n\nIt follows that $b_n$ (mod 19) repeats with period $5$ and $b_{5k} \\equiv 1 \\pmod{19}$. In particular $b_{1010} \\equiv 1 \\pmod{19}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33313, "subject": "Mathematics (Multi-modal)", "question": "Prove that $\\sqrt[3]{\\frac{x^6 + 1}{2}} \\le \\frac{3x^2 - 4x + 3}{2}$, for all real $x$, with equality iff $x = 1$.", "options": [], "answer": "Detailed solution", "solution": "Note that for all real $x$\n$$\nx^6 + 1 = (x^2 + 1)(x^4 - x^2 + 1) = (x^2 + 1)(x^2 + \\sqrt{3}x + 1)(x^2 - \\sqrt{3}x + 1),\n$$\nis a product of three positive numbers, since $x^2 \\pm \\sqrt{3}x + 1 = (x \\pm \\frac{\\sqrt{3}}{2})^2 + \\frac{1}{4}$.\nWe use AGM for three positive variables: $\\sqrt[3]{ABC} \\le \\frac{A+B+C}{3}$ with $A = \\frac{x^2+1}{2}$, $B = a(x^2 + \\sqrt{3}x + 1)$ and $C = b(x^2 - \\sqrt{3}x + 1)$, where $a, b$ are positive numbers (to be chosen) such that $ab = 1$. Then\n$$\n\\begin{aligned} \\sqrt[3]{\\frac{x^6 + 1}{2}} &\\le \\frac{\\frac{x^2+1}{2} + a(x^2 + \\sqrt{3}x + 1) + b(x^2 - \\sqrt{3}x + 1)}{3} \\\\ &= \\frac{(1 + 2(a + b))x^2 + 2\\sqrt{3}(a - b)x + 1 + 2(a + b)}{6} \\\\ &= \\frac{3x^2 - 4x + 3}{2}, \\end{aligned}\n$$\nif, in addition, $a, b$ satisfy the equations $1 + 2(a + b) = 9$, $\\sqrt{3}(a - b) = -6$. The numbers $a = 2 - \\sqrt{3}$, $b = 2 + \\sqrt{3}$ satisfy these and $ab = 1$. Hence,\n$$\n\\sqrt[3]{\\frac{x^6 + 1}{2}} \\le \\frac{3x^2 - 4x + 3}{2},\n$$\nfor all real $x$, with equality iff\n$$\n\\frac{x^2 + 1}{2} = a(x^2 + \\sqrt{3}x + 1) = b(x^2 - \\sqrt{3}x + 1),\n$$\ni.e., $x = 1$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33314, "subject": "Mathematics (Multi-modal)", "question": "Through a point *P* on the hypotenuse $AB$ of the right-angled triangle $ABC$ lines are drawn parallel to the other two sides. These parallels meet $BC$ and $AC$ at $D$ and $E$, respectively. Prove $|BP| \\cdot |AP| = |BD| \\cdot |CD| + |AE| \\cdot |CE|$.", "options": [], "answer": "Detailed solution", "solution": "Because *PE* is parallel to $BC$ and *PD* is parallel to $AC$, the two right angled triangles $APE$ and $PBD$ are similar. This implies that there exists a positive number $s$ (the similarity factor) such that\n$$\n|AP| = s|BP|, \\quad |AE| = s|DP| \\quad \\text{and} \\quad |EP| = s|BD|.\n$$\n\n![](attached_image_1.png)\n\nUsing these equations together with $|DP| = |CE|$ and $|EP| = |CD|$, which are true since $CEPD$ is a rectangle, the Theorem of Pythagoras for triangle $PBD$ implies the desired identity:\n$$\n\\begin{aligned}\ns|BP|^2 &= s|BD|^2 + s|DP|^2 \\\\\n|BP| \\cdot |AP| &= |BD| \\cdot |CD| + |AE| \\cdot |CE|.\n\\end{aligned}\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33315, "subject": "Mathematics (Multi-modal)", "question": "2021 points are given, no three of them are collinear. Divide these points into 20 groups with different numbers of points in each group. Count the number of triangles with vertices in different groups. In order to get the maximum number of such triangles, how should you divide those point?", "options": [], "answer": "Group sizes are the integers 91, 92, 93, 94, 95, 96, 97, 98, 99, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111 (i.e., 91 through 111 except 100).", "solution": "For any division of the 2021 points into 20 groups $M_1, M_2, \\dots, M_{20}$ of different size we let $n_k$ be the number of points in the group $M_k$ and we suppose that $n_1 < n_2 < n_3 < \\dots < n_{20}$. The number $g = n_{20} - n_1 - 19$ is then equal to the number of integers between $n_1$ and $n_{20}$ which are not equal to any $n_k$.\n\nThe main observation is that when $g \\ge 2$ it is possible to increase the number of triangles by moving one point to another group. To see this, let $n_i < n_j$ be such that $n_i + 1 < n_j - 1$ and the two numbers $n_i + 1$ and $n_j - 1$ are not among the $n_k$. Such $i, j$ always exist when $g \\ge 2$, because we can pick two of the missing integers to be $n_i + 1$ and $n_j - 1$.\n\nWhen we move a point $P$ from $M_j$ to the group $M_i$, we gain triangles with one vertex $P$ and another vertex in $M_j \\setminus \\{P\\}$. If $r = 2021 - n_i - n_j$ is the number of point in the 18 unaffected groups, then the number of triangles gained is equal to $r(n_j - 1)$. But we also lose all the triangles that had $P$ as one vertex and another vertex in $M_i$. The number of lost triangles is equal to $rn_i$. Hence, the net gain when we move $P$ from $M_j$ to $M_i$ is\n$$\nr(n_j - 1) - rn_i = r(n_j - n_i - 1) > 0.\n$$\nBecause the number of triangles is bounded above by $\\binom{2021}{3}$, we cannot increase the number of triangles indefinitely. Hence, starting with any division of the 2021 points into 20 groups of different size and moving points between groups in the way described above, we will reach a situation at which an increase of the number of triangles is not possible. In such a situation we must have $g = 0$ or $g = 1$. This means that the numbers $n_1, n_2, \\dots, n_{20}$ are obtained by removing one number from a list of 21 consecutive numbers. If the smallest or largest number is removed from the list we have $g = 0$, and $g = 1$ otherwise.\n\nLet $n_1$ be the smallest number of this list of 21 consecutive numbers and let $n_1 + k$ be the missing number, where $1 \\le k \\le 20$. We then have\n$$\n2021 = \\sum_{i=1}^{20} n_i = \\sum_{i=0}^{20} (n_1 + i) - (n_1 + k) = 20n_1 + 210 - k.\n$$\nThis gives $1811 = 20n_1 - k$ and so $k = 9$ and $n_1 = 91$. Therefore, $g = 1$ and the numbers $n_1, n_2, \\dots, n_{20}$ are the integers from 91 to 111, except 100. If these are the sizes of the groups, the maximum number of triangles is achieved. In any other case, the number of triangles is below the maximum.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33316, "subject": "Mathematics (Multi-modal)", "question": "Using straight edge and compass only, show how to construct an equilateral triangle equal in area to a given triangle.", "options": [], "answer": "Detailed solution", "solution": "**Analysis:** Let $ABC$ be the given triangle and let $2x$ be the length of the sides of the required equilateral triangle $XYZ$. Let $AD$ be an altitude of $ABC$, $h = |AD|$ and $a = |BC|$. The area of $ABC$ is equal to $ah/2$ and the area of $XYZ$ is $\\sqrt{3}x^2$. Then we must have $ah/2 = \\sqrt{3}x^2$, i.e.\n$$\nx^2 = \\frac{a}{2} \\cdot \\frac{h}{\\sqrt{3}}.\n$$\nThe natural idea then is to construct the length $h/\\sqrt{3}$ as half the side length of an equilateral triangle with height $h$.\n\n**Construction:** Draw the altitude through $A$ with foot $D$. Through $A$ draw a line parallel to $BC$ and draw a line making an angle of $60^\\circ$ with $BC$ at $D$ and let these two lines intersect at $E$. Since $\\angle DAE = 90^\\circ$ and $\\angle ADE = 30^\\circ$, $AE = h/\\sqrt{3}$. Extend $AE$ to $F$ so that $|EF| = |BC|/2 = a/2$. Now construct a circle on $AF$ as diameter and erect a perpendicular at $E$ meeting the circle at $Y$ and $Z$. Finally construct an equilateral triangle $XYZ$ on $YZ$. This is the required triangle.\n\n![](attached_image_1.png)\n\n**Justification:** From the power of the point $E$ with respect to the circle we see $|YE|^2 = |YE| \\cdot |EZ| = |AE| \\cdot |EF| = h/\\sqrt{3} \\cdot a/2 = x^2$ and so $|YE| = x$ and $|YZ| = 2x$ which shows that $XYZ$ is the required triangle.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 33317, "subject": "Mathematics (Multi-modal)", "question": "Prove that\n$$\n\\frac{3x^2 - 2x + 3}{4} \\le \\sqrt[3]{\\frac{x^6 + 1}{2}} \\le 2x^2 - 3x + 2,\n$$\nfor all non-negative real $x$, with equality iff $x = 1$.", "options": [], "answer": "Detailed solution", "solution": "These inequalities are surely true when $x = 0$, so assume $x > 0$ and let $y = x + \\frac{1}{x}$, so that $y \\ge 2$, and\n$$\ny^3 - 3y = x^3 + 3x + \\frac{3}{x} + \\frac{1}{x^3} - 3\\left(x + \\frac{1}{x}\\right) = x^3 + \\frac{1}{x^3} = \\frac{x^6 + 1}{x^3}.\n$$\nAlso\n$$\n\\frac{3x^2 - 2x + 3}{4} = \\frac{x}{4} \\left( 3x - 2 + \\frac{3}{x} \\right) = x \\cdot \\frac{3y - 2}{4},\n$$\nand\n$$\n2x^2 - 3x + 2 = x(2y - 3).\n$$\nHence, we are required to prove that\n$$\n\\frac{3y - 2}{4} \\le \\sqrt[3]{\\frac{y^3 - 3y}{2}} \\le 2y - 3, \\quad \\text{for all } y \\ge 2.\n$$\nConsider the rightmost inequality. It holds iff\n$$\n\\begin{aligned}\ny^3 - 3y &\\le 2(2y - 3)^3 = 16y^3 - 72y^2 + 108y - 54, \\quad \\text{i.e.} \\\\\n0 &\\le 15y^3 - 72y^2 + 111y - 54 = 3(y - 1)(y - 2)(5y - 9),\n\\end{aligned}\n$$\nwhich is true since each factor is non-negative. Clearly, this inequality is strict unless $y = 2$, i.e. $x = 1$.\nWe treat the leftmost one similarly, which is equivalent to the claim that $(3y - 2)^3 \\le 32(y^3 - 3y)$ for all $y \\ge 2$. Expanding and simplifying this becomes\n$$\n0 \\le 5y^3 + 54y^2 - 132y + 8 = (y - 2)(5y^2 + 62y + 2(y - 2)),\n$$\nwhich is true, with equality iff $y = 2$. The result follows.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33318, "subject": "Mathematics (Multi-modal)", "question": "Suppose $\\triangle ABC$ is a triangle inscribed in the unit circle. Prove that its area doesn't exceed $3\\sqrt{3}/4$, and its perimeter doesn't exceed $3\\sqrt{3}$, with equality in both cases iff the triangle is equilateral.", "options": [], "answer": "Detailed solution", "solution": "Let $O$ denote the centre of the circle, and let $\\alpha, \\beta, \\gamma$, respectively, be the radian measures of the vertex angles $\\angle A, \\angle B, \\angle C$. Since the circumradius of $ABC$ is $1$, the formula for the circumradius of any triangle tells us that\n$$\n\\frac{a}{\\sin \\alpha} = \\frac{b}{\\sin \\beta} = \\frac{c}{\\sin \\gamma} = 2,\n$$\nand so the area of $ABC$ is given by\n$$\n(ABC) = \\frac{1}{2}ab \\sin \\gamma = 2 \\sin \\alpha \\sin \\beta \\sin \\gamma.\n$$\n\nWe now show that the function $f(x) = \\ln(\\sin x)$ is strictly concave on $(0, \\pi)$ which enables us to apply Jensen's inequality. Indeed, if $x, y \\in (0, \\pi)$, then\n$$\n\\begin{aligned}\n\\sin x \\cdot \\sin y &= \\frac{1}{2}(\\cos(x-y) - \\cos(x+y)) \\\\\n&= \\sin^2\\left(\\frac{x+y}{2}\\right) - \\sin^2\\left(\\frac{x-y}{2}\\right) \\le \\sin^2\\left(\\frac{x+y}{2}\\right),\n\\end{aligned}\n$$\nwith equality iff $x = y$. Taking logarithms this yields\n$$\n\\frac{f(x) + f(y)}{2} \\le f\\left(\\frac{x+y}{2}\\right)\n$$\nwith equality iff $x = y$. This shows that $f$ is strictly concave on $(0, \\pi)$ and we can use Jensen's inequality: $f(x) + f(y) + f(z) \\le 3f\\left(\\frac{x+y+z}{3}\\right)$, which translates into\n$$\n(ABC) \\le 2 \\sin^3 \\left( \\frac{\\alpha + \\beta + \\gamma}{3} \\right) = 2 \\sin^3 \\left( \\frac{\\pi}{3} \\right) = \\frac{3\\sqrt{3}}{4},\n$$\nwith equality iff $\\alpha = \\beta = \\gamma$. That is, $(ABC) \\le \\frac{3\\sqrt{3}}{4}$, with equality iff the triangle is equilateral.\nFrom the formula for the circumradius, already employed above, we obtain $a = 2\\sin\\alpha$, $b = 2\\sin\\beta$, and $c = 2\\sin\\gamma$. Hence the perimeter $p$ of $ABC$ is equal to $2(\\sin\\alpha + \\sin\\beta + \\sin\\gamma)$ and Jensen's inequality for the strictly concave function $\\sin(x)$ on $[0, \\pi]$ gives\n$$\np = 2(\\sin \\alpha + \\sin \\beta + \\sin \\gamma) \\le 6 \\sin \\left( \\frac{\\alpha + \\beta + \\gamma}{3} \\right) = 6 \\sin \\frac{\\pi}{3} = 3\\sqrt{3},\n$$\nwith equality iff $\\alpha = \\beta = \\gamma = \\pi/3$, i.e. equality holds, iff $ABC$ is equilateral.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33319, "subject": "Mathematics (Multi-modal)", "question": "Let $n$ be a positive integer. Describe, in terms of the prime factorisation of $n$, the largest integer which is the side length of a square tile which can be used to completely tile a rectangle that is inscribed in a circle of radius $n$, if such a tiling is possible.", "options": [], "answer": "If n has a prime factor congruent to 1 modulo 4, let p be the smallest such prime factor; then the maximal square tile side length is x = 2n / p. If n has no prime factor congruent to 1 modulo 4, no such tiling is possible.", "solution": "This problem is the general version of Problem 16 and the first part of the solution is the same. Let $x$ be the side length of the square tile. If the rectangle is completely tiled with such square tiles, there exist integers $a, b$ such that the side lengths of the rectangle are $ax$ and $bx$. The diagonals of the rectangle are diameters of the circle and so their length is $2n$. Applying Pythagoras to the right angled triangle obtained by cutting the rectangle along one of its diagonals, we obtain\n$$\n(2n)^2 = x^2(a^2 + b^2).\n$$\n\nAs $x, n, a, b$ are integers, this implies that $x$ is a factor of $2n$ and so $c = 2n/x$ is an integer that satisfies $c^2 = a^2 + b^2$. Because we are to find the largest possible $x = 2n/c$, we are interested in the smallest $c$ that divides $2n$ and which appears as the hypotenuse of a right angled triangle with integer side lengths.\nIf we have a divisor $c$ of $2n$ and a Pythagorean Triple $(a, b, c)$ with $c^2 = a^2+b^2$, then $x = 2n/c$ is an integer which can be used as the length of a tile with which we can tile an inscribed rectangle of side lengths $ax$ and $bx$.\nIf the Pythagorean Triple $(a, b, c)$ is not primitive, there exists an integer $t$ and a primitive Pythagorean Triple $(a', b', c')$ such that $(a, b, c) = t(a', b', c')$. Because $c = tc'$ divides $2n$, $c'$ divides $2n$ as well. Since $c' \\le c$, to find the smallest possible $c$ it is sufficient to consider primitive Pythagorean Triples.\nIt is well known that, up to interchanging $a$ and $b$, all primitive Pythagorean Triples $(a, b, c)$ can be obtained as follows from integers $u > v$ that are coprime and for which $uv$ is even:\n$$\na = u^2 - v^2 \\quad b = 2uv \\quad c = u^2 + v^2.\n$$\nTherefore, we are interested in finding the smallest positive divisor of $2n$ which can be written as the sum of two distinct and coprime squares of positive integers. Even though it is well known which integers can be written as a sum of two squares, we do not suppose the reader to be familiar with this theory.\nIf $c = u^2 + v^2$ is divisible by a prime $p$ which is congruent to 3 modulo 4, then both, $u$ and $v$, must be divisible by $p$, because otherwise there would exist an integer $s$ for which $s^2 \\equiv -1 \\pmod p$, which is impossible by Fermat's Little Theorem. Therefore, the desired smallest $c$ cannot be divisible by such a prime number.\nIt is also well known that an odd prime number can be written as the sum of two squares if and only if it is congruent to 1 modulo 4. If a divisor $c = u^2 + v^2$ of $2n$ is divisible by such a prime $p$, then $p \\le c$ and $c$ can only be the smallest possible choice if $c = p$.\nIf $c$ is not divisible by any odd prime then $c = 2^k$. The only way to write $2^k$ as the sum of two squares is $2^{2m} = (2^m)^2$ when $k = 2m$ is even, and $2^{2m+1} = (2^m)^2 + (2^m)^2$ when $k = 2m + 1$ is odd. To see this, divide the equation $2^k = u^2 + v^2$ across by the highest possible power of 2 which leads either to $1 = 1+0$ or to $2 = 1+1$, because at least one of the three numbers must be odd. Hence, such numbers $c$ are not of the required form $u^2 + v^2$ with $u > v > 0$.\nHence, the desired smallest $c$ that divides $2n$ and which appears as the hypotenuse of a right angled triangle with integer side lengths is the smallest prime factor $p$ of $n$ which is congruent to 1 modulo 4. If no such prime factor exists, the desired tiling is not possible. If such $p$ exists, then $x = 2n/p$ is the maximal side length of a tile.\nIf $p = u^2 + v^2$ with $u > v > 0$, then $u, v$ are automatically coprime and $uv$ is even. We then obtain $a = u^2 - v^2$ and $b = 2uv$ and so the side lengths of the inscribed rectangle are equal to\n$$\nax = \\frac{2an}{p} = \\frac{2(u^2 - v^2)n}{u^2 + v^2} \\quad \\text{and} \\quad bx = \\frac{2bn}{p} = \\frac{4uvn}{u^2 + v^2}.\n$$", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33320, "subject": "Mathematics (Multi-modal)", "question": "The function $g : [0, \\infty) \\to [0, \\infty)$ satisfies the functional equation:\n$$\ng(g(x)) = \\frac{3x}{x+3}, \\text{ for all } x \\ge 0.\n$$\nYou are also told that $g(x) = \\frac{x+1}{2}$ for $2 \\le x \\le 3$.\n\na. Find $g(2021)$.\nb. Find $g(1/2021)$.", "options": [], "answer": "g(2021) = 24261/4057, g(1/2021) = 6/12127", "solution": "For part (a), we determine $g(y)$ for any $y \\ge 6$. Applying the functional equation we have:\n$$\ng(g(y)) = \\frac{3y}{y+3}.\n$$\nAlso, as $2 < \\frac{3y}{y+3} < 3$ we can apply $g$ to each side and apply the second condition to get:\n$$\ng(g(g(y))) = g\\left(\\frac{3y}{y+3}\\right) = \\frac{1}{2}\\left(\\frac{3y}{y+3} + 1\\right) = \\frac{4y+3}{2y+6}.\n$$\nBut also from the opening condition applied to $g(y)$:\n$$\ng(g(g(y))) = \\frac{3g(y)}{g(y) + 3}.\n$$\nEquating the reciprocal of these last two expressions yields:\n$$\n\\frac{1}{3} + \\frac{1}{g(y)} = \\frac{2y+6}{4y+3}\n$$\nwhence:\n$$\ng(y) = \\frac{12y + 9}{2y + 15}.\n$$\nSubstituting $y = 2021$ gives:\n$$\ng(2021) = \\frac{12 \\times 2021 + 9}{2 \\times 2021 + 15}.\n$$\n\nFor part (b) we note from the second condition that $g(3) = 2$ and $g(2) = 3/2$. Playing around recursively, we have:\n$$\n\\begin{aligned}\ng\\left(\\frac{3}{2}\\right) &= g(g(2)) = \\frac{3 \\times 2}{2 + 3} = \\frac{6}{5} \\\\\ng\\left(\\frac{6}{5}\\right) &= g\\left(g\\left(\\frac{3}{2}\\right)\\right) = \\frac{3 \\times 3/2}{3/2 + 3} = 1 \\\\\ng(1) &= g\\left(g\\left(\\frac{6}{5}\\right)\\right) = \\frac{3 \\times 6/5}{6/5 + 3} = \\frac{6}{7}.\n\\end{aligned}\n$$\nWe spot a pattern and conjecture that, for $n = 2, 3, 4, \\dots$\n$$\ng\\left(\\frac{6}{n}\\right) = \\frac{6}{n+1}.\n$$\nThe proof is by induction; the result holds by direct computation for $n = 2$ and $n = 3$. For general $n$, we assume the result for $n - 1$ and we have\n$$\ng\\left(\\frac{6}{n}\\right) = g\\left(g\\left(\\frac{6}{n-1}\\right)\\right) = \\frac{3 \\times 6/(n-1)}{6/(n-1) + 3} = \\frac{18}{6 + 3n - 3} = \\frac{6}{n+1}.\n$$\nThe result is now proved. Substituting $n = 6 \\times 2021 = 12126$ gives:\n$$\ng\\left(\\frac{1}{2021}\\right) = \\frac{6}{12127}.\n$$", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 33321, "subject": "Mathematics (Multi-modal)", "question": "Suppose $a$, $b$, $c$ are the side lengths of a triangle $ABC$ with area $S$, and semi-perimeter $s$. Prove that\n$$\ns < \\sqrt{a^2 + b^2 - 4S} + \\sqrt{b^2 + c^2 - 4S} + \\sqrt{c^2 + a^2 - 4S}.\n$$", "options": [], "answer": "Detailed solution", "solution": "Since $2S = ab \\sin C$, we can write\n$$\n\\begin{aligned}\na^2 + b^2 - 4S &= a^2 + b^2 - 2ab \\sin C = a^2 + (b - a \\sin C)^2 - a^2 \\sin^2 C \\\\\n&= a^2 \\cos^2 C + (b - a \\sin C)^2 \\geq a^2 \\cos^2 C\n\\end{aligned}\n$$\nand similarly\n$$\n\\begin{aligned}\na^2 + b^2 - 4S &= b^2 + (a - b \\sin C)^2 - b^2 \\sin^2 C \\\\\n&= b^2 \\cos^2 C + (a - b \\sin C)^2 \\geq b^2 \\cos^2 C.\n\\end{aligned}\n$$\nTaking square roots and adding both together, we obtain\n$$\n\\sqrt{a^2 + b^2 - 4S} \\geq \\frac{a \\cos C + b \\cos C}{2}.\n$$\nEquality holds iff $b = a \\sin C$, $a = b \\sin C$ and $\\cos C \\ge 0$. This condition is equivalent to $a = b$ and $\\angle C = 90^\\circ$. In a similar way we prove\n$$\n\\begin{aligned}\n\\sqrt{b^2 + c^2 - 4S} &\\ge \\frac{b \\cos A + c \\cos A}{2} \\quad \\text{and} \\\\\n\\sqrt{c^2 + a^2 - 4S} &\\ge \\frac{c \\cos B + a \\cos B}{2}\n\\end{aligned}\n$$\nwith equality iff $b = c$ and $\\angle A = 90^\\circ$, or $c = a$ and $\\angle B = 90^\\circ$, respectively. To finish, we recall that $c = b \\cos A + a \\cos B$ (see diagram)\n![](attached_image_1.png)\nas well as $a = c \\cos B + b \\cos C$ and $b = a \\cos C + c \\cos A$. Therefore, the semiperimeter is\n$$\ns = \\frac{a+b+c}{2} = \\frac{c \\cos B + b \\cos C + a \\cos C + c \\cos A + b \\cos A + a \\cos B}{2}\n$$\nand the desired inequality follows from adding the three earlier inequalities\n$$\n\\begin{aligned}\n& \\sqrt{a^2 + b^2 - 4S} + \\sqrt{b^2 + c^2 - 4S} + \\sqrt{c^2 + a^2 - 4S} \\\\\n\\geq & \\frac{(a \\cos C + b \\cos C) + (b \\cos A + c \\cos A) + (c \\cos B + a \\cos B)}{2} = s\n\\end{aligned}\n$$\nand noting that equality cannot occur, since there cannot be three right angles in a triangle.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33322, "subject": "Mathematics (Multi-modal)", "question": "Let $P_1, P_2, \\dots, P_{2021}$ be $2021$ points in the quarter plane $\\{(x, y) \\mid x \\ge 0, y \\ge 0\\}$.\nThe centroid of these $2021$ points lies at the point $(1, 1)$.\nShow that there are two distinct points $P_i, P_j$ such that the distance from $P_i$ to $P_j$ is no more than $\\sqrt{2}/20$.", "options": [], "answer": "Detailed solution", "solution": "The appearance of $\\sqrt{2}$ is a clue that this question will end up with a pigeon-hole principle on squares of a grid with spacing $1/20$.\nWe prove a more general result:\n\n**Theorem:** Let $k$ be a positive integer, let $n \\ge k(k+1)/2$ and let $h > 0$. Suppose that a set of points $(x_j, y_j)$ for $j = 1, 2, 3, \\dots, n$ in the quarter plane is such that any two points are at a distance exceeding $h\\sqrt{2}$. Then the centroid $(\\bar{x}, \\bar{y})$ satisfies:\n$$\n\\bar{x} + \\bar{y} \\ge \\frac{2}{3}(k-1)h.\n$$\nThe answer to the original question follows by contradiction on setting $k = 62$ (or $k = 63$), $n = 2021$ and $h = 1/20$.\n\n**Proof of Theorem:** For each point $(x_j, y_j)$ write:\n$$\nm_j = \\lfloor \\frac{x_j}{h} \\rfloor + \\lfloor \\frac{y_j}{h} \\rfloor.\n$$\nIt follows then that:\n$$\nx_j + y_j \\ge h m_j.\n$$\nBy hypothesis, no two points have a distance less than or equal to $h\\sqrt{2}$. Then there can be no more than one point in any $h \\times h$ square. There can be at most one $j$ with $m_j = 0$, at most two with $m_j = 1$, at most three with $m_j = 2$ and so on, up to at most $k$ with $m_j = k-1$. The remaining points (at least $n - k(k+1)/2$ of them) have $m_j \\ge k$.\nWe can deduce that the sums of the $x$'s and $y$'s is governed by the lower bound:\n$$\n\\sum_{j=1}^{n} (x_j + y_j) \\ge \\sum_{j=1}^{n} h m_j \\ge h \\sum_{i=1}^{k} i(i-1) + \\left(n - \\frac{k(k+1)}{2}\\right) k h.\n$$\nRecalling that:\n$$\n\\sum_{i=2}^{k} i(i-1) = 2 \\sum_{i=2}^{k} \\binom{i}{2} = 2 \\sum_{i=2}^{k} \\left\\{ \\binom{i+1}{3} - \\binom{i}{3} \\right\\} = 2 \\binom{k+1}{3}\n$$\nwe obtain:\n$$\n\\begin{align*}\n\\frac{1}{h} \\sum_{j=1}^{n} (x_j + y_j) &\\ge \\frac{(k+1)k(k-1)}{3} + \\left(n - \\frac{k(k+1)}{2}\\right) k \\\\\n&= \\left(k - \\frac{2(k-1)}{3}\\right) \\left(n - \\frac{k(k+1)}{2}\\right) + \\frac{2(k-1)}{3} n \\\\\n&\\ge \\frac{2(k-1)}{3} n.\n\\end{align*}\n$$\nMultiplying by $h$ and dividing by $n$ gives the theorem as claimed.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33323, "subject": "Mathematics (Multi-modal)", "question": "For which positive integers $n$ is it possible to split the set of integers $t$ that satisfy $1 \\le t \\le n^{2022}$ into $n$ sets of equal size such that the sum of the 2021-th powers of the elements is the same for each set?", "options": [], "answer": "all positive integers", "solution": "**Solution 1.** When $n = 1$ this is obviously possible. We will show that this is possible for all integers $n \\ge 2$ by proving a more general version using induction. The number 2021 will be replaced by an integer $k \\ge 0$ on which we will carry out the induction. For this approach to work we will consider powers of numbers in a range that does not necessarily start with 1 and we will consider sums of powers lower than $k$.\nTo formulate this more general statement, we first introduce some notation. When $a < b$ are two integers, we denote by $[a, b]$ the set of integers $t$ that satisfy $a \\le t \\le b$. When $n \\ge 2$ and $m \\ge 0$ we let $d(m)$ be the digit sum of the base $n$ representation of $m$. Given two integers, $k \\ge 0$ and $n \\ge 2$, let $N = n^{k+1}$. For $i = 0, 1, \\dots, n-1$ we define subsets of $[0, N-1]$ as follows\n$$\nS_i = \\{m \\mid d(m) \\equiv i \\pmod n \\text{ and } 0 \\le m < N\\}.\n$$\nWe also let $S_i(s) = \\{m + s \\mid m \\in S_i\\} \\subset [s, N + s - 1]$ be the set obtained by shifting $S_i$ by the integer $s$. Finally, for $0 \\le r \\le k$ we define\n$$\n\\sigma_i^r(s) = \\sum_{m \\in S_i(s)} m^r.\n$$\nHere, even when $m = 0$, we agree that $m^0 = 1$. We now fix an integer $n \\ge 2$. **Theorem.** For all integers $n, k, r, s$ satisfying $n \\ge 2$ and $0 \\le r \\le k$ we have\n$$\n\\sigma_0^r(s) = \\sigma_1^r(s) = \\dots = \\sigma_{n-1}^r(s).\n$$\n**Remark.** Setting $s = 1$ and $r = k = 2021$ solves the original problem.\n*Proof.* We do induction on $k \\ge 0$. We keep $n$ fixed throughout the proof. The base case, $k = 0$, is trivially true, because the only possible value for $r$ is zero, $m^0 = 1$ and so $\\sigma_i^0(s) = n^k$ is the number of elements in $S_i(s)$. Let us now fix $k > 0$ and suppose that the statement of the theorem holds true when $k$ is replaced by $k-1$. To avoid confusion, we denote the sets $S_i(s)$ that correspond to $k-1$ by $\\tilde{S}_i(s)$:\n$$\n\\tilde{S}_i = \\{m \\mid d(m) \\equiv i \\pmod n \\text{ and } 0 \\le m < \\tilde{N}\\}\n$$\nwhere $\\tilde{N} = n^k$. Accordingly, we define $\\tilde{S}_i(s)$ and $\\tilde{\\sigma}_i^r(s)$. The base $n$ representation of the numbers in $[0, N-1]$ is obtained from those of the numbers in $[0, \\tilde{N}-1]$ by prepending digits $0, 1, 2, \\dots, n-1$. Because $d(m+cn^k) = d(m)+c$ for $m \\in [0, \\tilde{N}-1]$ and $c = 0, 1, \\dots, n-1$, we see that\n$$\nS_i = \\tilde{S}_i(0) \\cup \\tilde{S}_{i-1}(n^k) \\cup \\tilde{S}_{i-2}(2n^k) \\cup \\dots \\cup \\tilde{S}_{i-(n-1)}((n-1)n^k). \\quad (11)\n$$\nHere we consider the subscripts modulo $n$. As we assume for $0 \\le r < k$ that $\\tilde{\\sigma}_j^r(s) = \\sum_{m \\in \\tilde{S}_j(s)} m^r$ does not depend on $j$, we immediately get that $\\sigma_i^r(s)$ does not depend on $i$, as long as $0 \\le r < k$.\nWe are left to prove that $\\sigma_i^k(s)$ does not depend on $i$. Using (11) we obtain\n$$\n\\begin{aligned}\n\\sum_{m \\in S_i(s)} m^k &= \\sum_{m \\in \\tilde{S}_i(s)} m^k + \\sum_{m \\in \\tilde{S}_{i-1}(s+n^k)} m^k + \\dots + \\sum_{m \\in \\tilde{S}_{i-(n-1)}(s+(n-1)n^k)} m^k \\\\\n&= \\sum_{m \\in \\tilde{S}_i(s)} m^k + \\sum_{m \\in \\tilde{S}_{i-1}(s)} (m+n^k)^k + \\dots + \\sum_{m \\in \\tilde{S}_{i-(n-1)}(s)} (m+(n-1)n^k)^k.\n\\end{aligned}\n$$\nWe now expand the expressions $(m + jn^k)^k$ using the binomial theorem. What we obtain is of the form $m^k + c_1m^{k-1} + \\dots + c_{k-1}m + c_k$ where each coefficient $c_g$ is a product of a binomial coefficient and a power of $jn^k$. The exact values of these coefficients are not relevant here, but it is important that they are the same for all $m$. Therefore,\n$$\n\\begin{aligned}\n\\sum_{m \\in \\tilde{S}_{i-j}(s)} (m + jn^k)^k &= \\sum_{m \\in \\tilde{S}_{i-j}(s)} m^k + c_1 \\sum_{m \\in \\tilde{S}_{i-j}(s)} m^{k-1} + \\dots + c_k \\sum_{m \\in \\tilde{S}_{i-j}(s)} m^0 \\\\\n&= \\sum_{m \\in \\tilde{S}_{i-j}(s)} m^k + c_1 \\tilde{\\sigma}_{i-j}^{k-1}(s) + c_2 \\tilde{\\sigma}_{i-j}^{k-2}(s) + \\dots + c_k \\tilde{\\sigma}_{i-j}^0(s).\n\\end{aligned}\n$$\nBy inductive assumption, no term that comes with a coefficient $c_g$ depends on $i$. Therefore,\n$$\n\\begin{aligned}\n\\sum_{m \\in S_i(s)} m^k &= \\sum_{j=0}^{n-1} \\sum_{m \\in \\tilde{S}_{i-j}(s)} m^k + \\text{terms not depending on } i \\\\\n&= \\sum_{m \\in [s, s+\\tilde{N}-1]} m^k + \\text{terms not depending on } i\n\\end{aligned}\n$$\nand this does not depend on $i$ and the proof is complete. The last equality comes from\n$$\n\\tilde{S}_0(s) \\cup \\tilde{S}_1(s) \\cup \\dots \\cup \\tilde{S}_{n-1}(s) = [s, s + \\tilde{N} - 1]\n$$\nand $\\tilde{S}_a(s) = \\tilde{S}_{a+n}(s)$ because we considered subscripts modulo $n$. $\\square$\n**Solution 2.** We will again replace 2021 by an integer $k \\ge 0$. This solution takes a more structured approach using polynomials. Like in Solution 1, we denote by $[a, b]$ the set of integers $t$ that satisfy $a \\le t \\le b$, where $a < b$ are two given integers. When $n \\ge 2$ and $m \\ge 0$ we let $d(m)$ be the digit sum of the base $n$ representation of $m$. Given any two integers, $k \\ge 0$ and $n \\ge 2$, we let $N = n^{k+1}$ and for $i = 0, 1, \\dots, n-1$ we define subsets of $[1, N]$ as follows\n$$\nS_i = \\{m \\mid d(m-1) \\equiv i \\pmod{n} \\text{ and } 1 \\le m \\le N\\}.\n$$\nWe are going to prove that for any two integers, $k \\ge 0$ and $n \\ge 2$,\n$$\n\\sum_{a \\in S_i} a^k = \\sum_{b \\in S_j} b^k \\quad \\text{for all } i, j.\n$$\nDefine $f(x) = 1+x+x^2+\\dots+x^{n-1}$ and let $f_j(x,y) = f(x^{nj}y)$ for $0 \\le j \\le k$. We consider the polynomial $F(x,y) = x \\cdot \\prod_{j=0}^k f_j(x,y)$ and we think of $F$ as a polynomial in $x$ that has coefficients which are polynomials in $y$. Note that setting $x=1$ gives $f_j(1,y) = f(y)$ for all $j$. This will be of importance towards the end of the argument.\nWhen we multiply out completely the product that defines $F$, we obtain an expression of the form\n$$\nF(x,y) = \\sum_{m=1}^{N} c_m(y)x^m\n$$\nwith coefficients $c_m(y)$ being polynomials in $y$. The exponents of $x$ that appear in $f_j(x,y)$ are $0, n^j, 2n^j, 3n^j, \\dots, (n-1)n^j$ and the coefficient in front of $x^{cn^j}$ is $y^c$. Therefore, $c_m(y) = y^{d(m-1)}$ where $d(m-1)$ is the digit sum of the base $n$ representation of $m-1$.\nDifferentiating $p(x) = x^m$ with respect to $x$ gives $p'(x) = m x^{m-1}$. When we differentiate $i$ times, we get $p^{(i)}(x) = (m-i+1)(m-i+2)\\cdots(m-1)m x^{m-i}$. This is conveniently written using the falling factorial power notation (see for example [1, p. 47])\n$$\nm^i = m(m-1)(m-2)\\cdots(m-i+1)\n$$\nwhich allows us to write $p^{(i)}(x) = m^i x^{m-i}$ for the $i$-th derivative of $p(x) = x^m$. This holds true even if $i > m$, because then both sides are equal to zero. Substituting $x=1$ we obtain\n$$\np^{(i)}(1) = m^i. \\qquad (12)\n$$\nUsual powers $m^k$ and the falling powers $m^0, m^1, \\dots, m^{k-1}, m^k$ are related in a beautiful way involving the Stirling numbers of the first kind, [1, p. 248]:\n$$\nm^k = \\sum_{i=0}^{k} \\binom{k}{i} m^i. \\qquad (13)\n$$\nThe Stirling numbers $\\binom{k}{i}$ are defined combinatorially as the number of ways to partition a set that contains $k$ elements into $i$ non-empty subsets. For $k \\ge 0$ and $i \\ge 0$, these numbers are determined by the recurrence relation\n$$\n\\binom{k}{i} = i \\binom{k-1}{i} + \\binom{k-1}{i-1} \\quad \\text{for } k, i > 0\n$$\ntogether with the initial values $\\binom{0}{0} = 1$ and $\\binom{r}{0} = \\binom{0}{r} = 0$ if $r > 0$. In our situation, it is sufficient to know that such a formula exists, the exact values of the coefficients do not matter.\nCombining equations (12) and (13) we get $m^k = \\sum_{i=0}^{k} \\binom{k}{i} p^{(i)}(1)$ if $p(x) = x^m$. Recalling that we wrote $F(x, y) = \\sum_{m=1}^{N} c_m(y)x^m$, we now see that\n$$\n\\sum_{m=1}^{N} c_m(y)m^k = \\sum_{i=0}^{k} \\binom{k}{i} F^{(i)}(y, 1) \\quad (14)\n$$\nwhere $F^{(i)}(y, 1)$ is the polynomial in $y$ obtained by setting $x = 1$ in the $i$-th derivative of $F(x, y)$ with respect to $x$.\nSince we defined $F(x, y) = x \\cdot \\prod_{j=0}^{k} f_j(x, y)$, the product rule for derivatives shows that, for $i \\le k$, $F^{(i)}(y, 1)$ can be written as a sum of products, each having at least one factor of the form $f_j(1, y)$. Since $f_j(1, y) = f(y)$, as we noted earlier, the polynomial (14) is a multiple of $f(y)$. In other words\n$$\n\\sum_{m=1}^{N} c_m(y)m^k \\equiv 0 \\pmod{f(y)}.\n$$\nBecause $(y-1)f(y) = y^n-1$, we can replace $y^n$ by 1, or more generally, $y^d$ by $y^r$ whenever $d \\equiv r \\pmod{n}$, when we work (mod $f(y)$). When $c_m(y) = y^d$ and $0 \\le r < n$ is the remainder of $d$ on division by $n$, we let $\\bar{c}_m(y) = y^r$. We then have $\\sum_{m=1}^{N} \\bar{c}_m(y)m^k \\equiv 0 \\pmod{f(y)}$. This means there exists $C \\in \\mathbb{Z}$ such that\n$$\n\\sum_{m=1}^{N} \\bar{c}_m(y)m^k = C f(y) = C(1 + y + y^2 + \\dots + y^{n-1}).\n$$\nAs we have seen above, $c_m(y) = y^{d(m-1)}$. Thus, $\\bar{c}_m(y) = y^r$ exactly when $d(m-1)$ leaves remainder $r \\in [0, n-1]$ on division by $n$ and so $C = \\sum_{m \\in S_i} m^k$ for all $i = 0, 1, \\dots, n-1$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33324, "subject": "Mathematics (Multi-modal)", "question": "A sequence whose first term is positive is constructed so that any given term is the area of a square whose perimeter is the preceding term. If the first three terms form an arithmetic progression, determine all possible values of the first term.", "options": [], "answer": "16 and 8(sqrt(5) - 1)", "solution": "A square of side length $x$ has perimeter $4x$ and area $x^2$. If the preceding term of the sequence is $T_{n-1}$, then its successor is $T_n = (T_{n-1}/4)^2$. Thus the first three terms are\n$$\na, \\quad \\frac{a^2}{16} = \\frac{a^2}{2^4} \\quad \\text{and} \\quad \\frac{a^4}{4096} = \\frac{a^4}{2^{12}}.\n$$\nSince the terms are in arithmetic progression, their common difference may be computed in two ways\n$$\na - \\frac{a^2}{2^4} = \\frac{a^2}{2^4} - \\frac{a^4}{2^{12}}\n$$\nleading to\n$$\n\\frac{a^4}{2^{12}} - 2\\frac{a^2}{2^4} + a = 0, \\quad \\text{i.e.} \\quad a\\left(\\left(\\frac{a}{2^4}\\right)^3 - 2\\frac{a}{2^4} + 1\\right) = 0.\n$$\nLetting $y = a/2^4$, this equation can be rewritten as $y^3 - 2y + 1 = 0$, since $a > 0$. Because\n$$\ny^3 - 2y + 1 = (y - 1)(y^2 + y - 1) = (y - 1)\\left(y + \\frac{1 - \\sqrt{5}}{2}\\right)\\left(y + \\frac{1 + \\sqrt{5}}{2}\\right),\n$$\nthe positive solutions correspond to $y = 1$ and $y = (\\sqrt{5} - 1)/2$. Using $a = 2^4 y$ we deduce that the positive values of the initial terms are\n$$\na = 2^4 = 16 \\quad \\text{or} \\quad a = 8(\\sqrt{5} - 1).\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33325, "subject": "Mathematics (Multi-modal)", "question": "Find the smallest number of colours needed for colouring all positive integers in such a way that any two integers that differ by a prime number have different colours.", "options": [], "answer": "4", "solution": "Assume such a colouring exists and consider the numbers $1, 3, 6, 8$. Any two of these numbers differ by a prime number: $3 - 1 = 2$, $6 - 1 = 5$, $8 - 1 = 7$, $6 - 3 = 3$, $8 - 3 = 5$ and $8 - 6 = 2$. Thus, at least four colours are needed.\n\nTo prove that four colours are sufficient, we pick four colours and number them $0, 1, 2, 3$. Colour number $i$ is applied to all integers $n$ that satisfy $n \\equiv i \\pmod 4$. The difference of any two integers of the same colour is then divisible by $4$, hence not a prime.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33326, "subject": "Mathematics (Multi-modal)", "question": "An isosceles triangle $ABC$ is inscribed in a circle with $\\angle ACB = 90^\\circ$ and $EF$ is a chord of the circle such that neither $E$ nor $F$ coincide with $C$. Lines $CE$ and $CF$ meet $AB$ at $D$ and $G$ respectively. Prove $|CE| \\cdot |DG| = |EF| \\cdot |CG|$.", "options": [], "answer": "Detailed solution", "solution": "As $ABC$ is isosceles and $\\angle ACB = 90^\\circ$ then it follows that\n$$\n\\angle CAB = \\angle CBA = 45^\\circ\n$$\nNow quadrilateral $ABEC$ is cyclic, so\n$$\n\\angle BEC = 180^\\circ - \\angle BAC = 135^\\circ\n$$\nTherefore by subtraction from $180^\\circ$, we know $\\angle BED = 45^\\circ$.\nLet us define $\\theta = \\angle BDE$. As we now have two angles of $\\triangle BDE$, the third must take the total to $180^\\circ$ and so\n$$\n\\angle EBD = 180^\\circ - 45^\\circ - \\theta = 135^\\circ - \\theta\n$$\nBy subtracting $\\angle EBD$ and $\\angle CBA = 45^\\circ$ from $180^\\circ$, we deduce that:\n$$\n\\angle EBC = \\theta.\n$$\nNow as $\\angle EBC$ and $\\angle EFC$ are subtended by the common chord $EC$, we deduce that those two angles are equal. Putting these together, we deduce that $\\angle BDE = \\angle CFE$.\nWe can conclude that $\\triangle CFE \\sim \\triangle CDG$ since $\\angle ECF$ is common. Therefore,\n$$\n\\frac{|CE|}{|EF|} = \\frac{|CG|}{|DG|}\n$$\nwhich is what had to be proved.\n\n\nSolution 2:\n\nConnect $O$ to $C$ and $E$ to create the central angle $\\angle EOC$, which is twice the angle $\\angle EFC$. Because triangle $EOC$ is isosceles, we have\n$$\n180^\\circ = \\angle EOC + 2\\angle OCD = 2(\\angle EFC + \\angle OCD).\n$$\nThis implies $\\angle EFC + \\angle OCD = 90^\\circ$, i.e. $\\angle EFC = 90^\\circ - \\angle OCD$.\nBecause $AB$ is a diameter of the circle and triangle $ABC$ is isosceles, $CO$ is perpendicular to $AB$ and so $\\angle CDO = 90^\\circ - \\angle OCD = \\angle EFC$.\nBecause triangles $CFE$ and $CDG$ share the angle at $C$ and $\\angle CDO = \\angle EFC$ it follows that the two triangles $\\triangle CFE$ and $\\triangle CDG$ are similar. Therefore,\n$$\n\\frac{|CE|}{|EF|} = \\frac{|CG|}{|GD|},\n$$\nwhich gives the required equation $|CE| \\cdot |DG| = |EF| \\cdot |CG|$.\n\n\nSolution 3:\n\n(using trigonometry)\nWe use coordinates such that $O = (0,0)$, $C = (0,1)$, $A = (-1,0)$ and $B = (1,0)$. Let $\\alpha = \\angle BOE$ and $\\beta = \\angle BOF$, both in $[0, 2\\pi)$. Because the points $E$ and $F$ are on the unit circle, these points have coordinates $E = (\\cos \\alpha, \\sin \\alpha)$ and $F = (\\cos \\beta, \\sin \\beta)$.\nTo determine the coordinates of $D$, we use the Intercept Theorem (or similar triangles) applied to the figure obtained by dropping the perpendicular $EP$ from $E$ onto the line $CO$ (the $y$-axis). This gives $|DO|/|OC| = |EP|/|PC|$ and so $|DO| = \\frac{\\cos \\alpha}{1-\\sin \\alpha}$. Similarly, we obtain $|GO| = \\frac{\\cos \\beta}{1-\\sin \\beta}$. If we work with signed distances, these formulas are correct for all positions of $E$ and $F$, provided that neither $E$ nor $F$ is equal to $C = (0,1)$.\n![](attached_image_1.png)\nTherefore,\n$$\n\\begin{align*} \n|DG|^2 &= \\left( \\frac{\\cos \\alpha}{1 - \\sin \\alpha} - \\frac{\\cos \\beta}{1 - \\sin \\beta} \\right)^2 \\\\\n&= \\frac{\\cos^2 \\alpha}{(1 - \\sin \\alpha)^2} + \\frac{\\cos^2 \\beta}{(1 - \\sin \\beta)^2} - \\frac{2 \\cos \\alpha \\cos \\beta}{(1 - \\sin \\alpha)(1 - \\sin \\beta)} \\\\\n&= \\frac{1 - \\sin^2 \\alpha}{(1 - \\sin \\alpha)^2} + \\frac{1 - \\sin^2 \\beta}{(1 - \\sin \\beta)^2} - \\frac{2 \\cos \\alpha \\cos \\beta}{(1 - \\sin \\alpha)(1 - \\sin \\beta)} \\\\\n&= \\frac{1 + \\sin \\alpha}{1 - \\sin \\alpha} + \\frac{1 + \\sin \\beta}{1 - \\sin \\beta} - \\frac{2 \\cos \\alpha \\cos \\beta}{(1 - \\sin \\alpha)(1 - \\sin \\beta)} \\\\\n&= \\frac{(1 + \\sin \\alpha)(1 - \\sin \\beta) + (1 - \\sin \\alpha)(1 + \\sin \\beta) - 2 \\cos \\alpha \\cos \\beta}{(1 - \\sin \\alpha)(1 - \\sin \\beta)} \\\\\n&= \\frac{2 - 2 \\sin \\alpha \\sin \\beta - 2 \\cos \\alpha \\cos \\beta}{(1 - \\sin \\alpha)(1 - \\sin \\beta)} \\\\\n&= \\frac{2(1 - \\cos(\\beta - \\alpha))}{(1 - \\sin \\alpha)(1 - \\sin \\beta)}. \n\\end{align*}\n$$\n\nSince $\\angle EOF = \\beta - \\alpha$, the Cosine Rule applied to triangle $EOF$ gives\n$$|EF|^2 = 2(1 - \\cos(\\beta - \\alpha)).$$\nSimilarly, we obtain\n$$\n|CE|^2 = 2 \\left(1 - \\cos\\left(\\frac{\\pi}{2} - \\alpha\\right)\\right) = 2(1 - \\sin\\alpha).\n$$\nFinally, the Theorem of Pythagoras on $\\triangle COG$ gives\n$$\n\\begin{aligned}\n|CG|^2 &= 1 + |OG|^2 = 1 + \\left( \\frac{\\cos \\beta}{1 - \\sin \\beta} \\right)^2 = \\frac{(1 - \\sin \\beta)^2 + \\cos^2 \\beta}{(1 - \\sin \\beta)^2} \\\\\n&= \\frac{2}{1 - \\sin \\beta}.\n\\end{aligned}\n$$\nWe now obtain\n$$\n\\begin{aligned}\n|CE|^2 \\cdot |DG|^2 &= \\frac{2(1 - \\sin \\alpha) \\cdot 2(1 - \\cos(\\beta - \\alpha))}{(1 - \\sin \\alpha)(1 - \\sin \\beta)} \\\\\n&= 2(1 - \\cos(\\beta - \\alpha)) \\cdot \\frac{2}{1 - \\sin \\beta} = |EF|^2 \\cdot |CG|^2\n\\end{aligned}\n$$\n\n\nWe use complex numbers such that the circle is given by the equation $|z| = 1$, $C$ is the complex number $i$, $A = -1$ and $B = 1$. Let $E$ be $e^{i\\alpha}$ and $F$ be $e^{i\\beta}$. We determine the distances as functions of $t$ and $u$ where\n$$\nt = \\tan\\left(\\frac{\\alpha}{2}\\right) \\quad \\text{and} \\quad u = \\tan\\left(\\frac{\\beta}{2}\\right).\n$$\nTo aid calculations below, we observe\n$$\n1 + t^2 = \\frac{1}{\\cos^2\\left(\\frac{\\alpha}{2}\\right)} \\quad \\text{and} \\quad 1 + u^2 = \\frac{1}{\\cos^2\\left(\\frac{\\beta}{2}\\right)},\n$$\n$$\n1 - \\sin \\alpha = 1 - 2 \\sin \\left(\\frac{\\alpha}{2}\\right) \\cos \\left(\\frac{\\alpha}{2}\\right) = \\left(\\cos \\left(\\frac{\\alpha}{2}\\right) - \\sin \\left(\\frac{\\alpha}{2}\\right)\\right)^2 = \\frac{(1 - t)^2}{1 + t^2},\n$$\n$$\n\\cos \\alpha = \\cos^2 \\left(\\frac{\\alpha}{2}\\right) - \\sin^2 \\left(\\frac{\\alpha}{2}\\right) = \\frac{1 - t^2}{1 + t^2},\n$$\n$$\n\\begin{aligned}\n1 - \\cos(\\alpha - \\beta) &= 1 - \\cos^2\\left(\\frac{\\alpha - \\beta}{2}\\right) + \\sin^2\\left(\\frac{\\alpha - \\beta}{2}\\right) = 2\\sin^2\\left(\\frac{\\alpha - \\beta}{2}\\right) \\\\\n&= 2\\left(\\sin\\left(\\frac{\\alpha}{2}\\right)\\cos\\left(\\frac{\\beta}{2}\\right) - \\cos\\left(\\frac{\\alpha}{2}\\right)\\sin\\left(\\frac{\\beta}{2}\\right)\\right)^2 \\\\\n&= \\frac{2(t - u)^2}{(1 + t^2)(1 + u^2)}.\n\\end{aligned}\n$$\n\nBecause $D$ is on the line $CE$, it is of the form $\\lambda e^{i\\alpha} + (1-\\lambda)i$ and has imaginary part equal to 0. Hence $\\lambda \\sin \\alpha + (1 - \\lambda) = 0$ and so $\\lambda = \\frac{1}{1 - \\sin \\alpha}$. This gives\n$$\nD = \\frac{\\cos \\alpha}{1 - \\sin \\alpha} = \\frac{1 - t^2}{(1 - t)^2} = \\frac{1 + t}{1 - t}.\n$$\nA similar argument shows that $G = \\frac{1+u}{1-u}$. We can now calculate the quantities $|CE|^2$, $|EF|^2$, $|CG|^2$, $|DG|^2$ as follows:\n$$\n|CE|^2 = \\cos^2 \\alpha + (1 - \\sin \\alpha)^2 = 2(1 - \\sin \\alpha) = \\frac{2(1 - t)^2}{1 + t^2}\n$$\n$$\n|DG|^2 = \\left| \\frac{1+t}{1-t} - \\frac{1+u}{1-u} \\right|^2 = \\frac{4(t-u)^2}{(1-t)^2(1-u)^2}\n$$\n$$\n\\begin{align*} |EF|^2 &= (\\cos \\alpha - \\cos \\beta)^2 + (\\sin \\alpha - \\sin \\beta)^2 = 2 - 2 \\cos \\alpha \\cos \\beta - 2 \\sin \\alpha \\sin \\beta \\\\\n&= 2(1 - \\cos(\\alpha - \\beta)) = \\frac{4(t-u)^2}{(1+t^2)(1+u^2)} \\end{align*}\n$$\n$$\n|CG|^2 = 1 + \\frac{(1+u)^2}{(1-u)^2} = \\frac{2(1+u^2)}{(1-u)^2}\n$$\nHence\n$$\n|CE|^2 \\cdot |DG|^2 = \\frac{8(1-t)^2(t-u)^2}{(1+t^2)(1-t)^2(1-u)^2} \\quad \\text{and}\n$$\n$$\n|EF|^2 \\cdot |CG|^2 = \\frac{8(t-u)^2(1+u^2)}{(1+t^2)(1+u^2)(1-u)^2}\n$$\nand it follows that $|CE| \\cdot |DG| = |EF| \\cdot |CG|$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33327, "subject": "Mathematics (Multi-modal)", "question": "A sequence whose first term is positive has the property that any given term is the area of an equilateral triangle whose perimeter is the preceding term. If the first three terms form an arithmetic progression, determine all possible values of the first term.", "options": [], "answer": "12*sqrt(3) and 6*sqrt(3)*(sqrt(5)-1)", "solution": "An equilateral triangle of side length $x$ has perimeter $3x$ and area $\\sqrt{3}x^2/4$. If the preceding term of the sequence is $T_{n-1}$, then its successor is\n$$\nT_n = \\frac{\\sqrt{3}(T_{n-1}/3)^2}{4} = \\frac{T_{n-1}^2 \\sqrt{3}}{36}.\n$$\nThus the first three terms are\n$$\na, \\frac{a^2\\sqrt{3}}{36}, \\frac{a^4\\sqrt{3}}{15552}, \\quad \\text{or} \\quad a, \\frac{a^2}{2^{23/3}}, \\frac{a^4}{2^{63/2}}.\n$$\nSince the terms are in arithmetic progression, their common difference may be computed in two ways\n$$\na - \\frac{a^2}{2^2 3^{3/2}} = \\frac{a^2}{2^2 3^{3/2}} - \\frac{a^4}{2^6 3^{9/2}},\n$$\nleading to\n$$\n\\frac{a^4}{2^6 3^{9/2}} - 2 \\frac{a^2}{2^2 3^{3/2}} + a = 0, \\quad \\text{i.e.} \\quad a \\left( \\left( \\frac{a}{2^2 3^{3/2}} \\right)^3 - 2 \\frac{a}{2^2 3^{3/2}} + 1 \\right) = 0.\n$$\nLetting $y = a/(2^2 3^{3/2})$, this equation can be rewritten as $y^3 - 2y + 1 = 0$, since $a > 0$. Because\n$$\ny^3 - 2y + 1 = (y - 1)(y^2 + y - 1) = (y - 1) \\left( y + \\frac{1 - \\sqrt{5}}{2} \\right) \\left( y + \\frac{1 + \\sqrt{5}}{2} \\right),\n$$\nthe positive solutions correspond to $y = 1$ and $y = (\\sqrt{5} - 1)/2$. Using $a = 2^2 3^{3/2}y$ we deduce that the positive values of the initial terms are\n$$\na = 2^2 3^{3/2} = 4\\sqrt{27} = 12\\sqrt{3} \\quad \\text{or} \\quad a = 6\\sqrt{3} (\\sqrt{5} - 1).\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33328, "subject": "Mathematics (Multi-modal)", "question": "In triangle $ABC$, the internal and external bisectors of angle $\\angle ACB$ meet $AB$ at $D$ and $E$, respectively. Suppose $B$ is between $A$ and $D$. If $CD$ is a median of triangle $AEC$, prove that $|AC| = 3|BC|$.", "options": [], "answer": "Detailed solution", "solution": "From the Theorem on the Angle Bisector, we know that $D$ and $E$ divide the line segment $AB$ internally and externally in ratio $|AC| : |BC|$, that is\n$$\n\\frac{|AC|}{|BC|} = \\frac{|AD|}{|BD|} = \\frac{|AE|}{|BE|}.\n$$\n![](attached_image_1.png)\nSince $CD$ is a median of triangle $AEC$, we have $|AE| = 2|AD|$. Together with the second equality above this yields\n$$\n\\frac{|BE|}{|BD|} = \\frac{|AE|}{|AD|} = 2,\n$$\nhence $|BE| = 2|BD|$. Therefore, $|AD| = |DE| = |BD| + |BE| = 3|BD|$ and we obtain\n$$\n\\frac{|AC|}{|BC|} = \\frac{|AD|}{|BD|} = 3\n$$\nas desired.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33329, "subject": "Mathematics (Multi-modal)", "question": "Each square of an *n* × *n* grid is coloured either blue or red, where *n* is a positive integer. There are *k* blue cells in the grid. Pat adds the sum of the squares of the numbers of blue cells in each row to the sum of the squares of the numbers of blue cells in each column to form $S_B$. He then performs the same calculation on the red cells to compute $S_R$.\nIf $S_B - S_R = 50$, determine (with proof) all possible values of $k$.", "options": [], "answer": "15 and 313", "solution": "If the $i$-th row of the grid has $b_i$ blue cells, then the contribution to $S_B - S_R$\nfrom this row is $b_i^2 - (n - b_i)^2 = 2nb_i - n^2$. Adding these contributions over\nall rows yields $2nk - n^3$ and similarly the columns also contribute $2nk - n^3$;\nthus we have\n$$\nS_B - S_R = 2(2nk - n^3) = 2n(2k - n^2).\n$$\nNext, denote the number of red cells by $\\ell$, and suppose that there are $t$ more\nblue cells than red cells. Then $k+\\ell = n^2$ and $k-\\ell = t$, which implies $n^2 \\ge t$.\nWhen we add these two equations we obtain $2k = t+n^2$, hence $t = 2k-n^2$\nand\n$$\nS_B - S_R = 2n(2k - n^2) = 2nt.\n$$\nSince we are given that $S_B - S_R = 50$, this implies that $nt = 25$ and so\n$(n,t) = (5,5)$ or $(n,t) = (25,1)$. Note that $(n,t) = (1,25)$ is not possible as\n$n^2 \\ge t$. Using $2k = t+n^2$, in the first case, we get $k = 15$ and in the second\ncase, $k = 313$.\nThe equation $S_B - S_R = 2n(2k - n^2)$ shows that $S_B - S_R$ only depends on\nthe size of the grid and the number of blue cells, but not on the position\nof the blue cells. Therefore, making any 15 of the 25 cells of a 5 × 5 grid\nblue gives a colouring which satisfy the conditions of the problem for $k = 15$.\nAlso, making any 313 of the 625 cells of a 25 × 25 grid blue gives a colouring\nwhich satisfy the conditions of the problem for $k = 313$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33330, "subject": "Mathematics (Multi-modal)", "question": "A tangent is drawn at $A$ to a circle centre $O$. Point $D$ is on this tangent and $B$, $C$ are on the circle such that $B$, $C$ and $D$ are collinear. Points $P$ and $Q$ are the circumcentres of triangles $ACD$ and $ABD$, respectively.\nProve $\\angle AOB = \\angle APD = \\angle BQD$.", "options": [], "answer": "Detailed solution", "solution": "Because $P$ is the circumcentre of triangle $ACD$, we have\n$$\n\\frac{1}{2} \\angle APD = \\angle ACD = 180^\\circ - \\angle ACB.\n$$\nBecause $O$ is the circumcentre of triangle $ABC$ we see that\n$$\n\\frac{1}{2} \\angle AOB = 180^\\circ - \\angle ACB\n$$\nand we obtain $\\angle APD = \\angle AOB$.\n\nBecause $Q$ is the circumcentre of triangle $ABD$, we have $\\frac{1}{2}\\angle BQD = \\angle BAD$. From the alternate segment theorem we know that $\\angle BAD$ is equal to an inscribed angle that stands on the arc $BA$ that contains $C$, which is equal to one half of the central angle $\\angle AOB$. This shows that $\\angle BQD = \\angle AOB$. The reasoning in other configurations is slightly different, but similar.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33331, "subject": "Mathematics (Multi-modal)", "question": "The commuter village of Abelia has a population of $2022$ individuals. Households vary but the average household size is $3$ people. Houses are numbered consecutively.\nEvery inhabitant of Abelia takes a return train trip to a nearby city. There are four trains from Abelia to the city in the morning and four trains from the city to Abelia in the evening.\nShow that there are two individuals who were on the same train both in the morning and in the evening, and whose house numbers differ by at most $5$.", "options": [], "answer": "Detailed solution", "solution": "There are $4 \\times 4 = 16$ possible combinations of morning and evening trains. As $2022 > 2016 = 16 \\times 126$ there must be one combination of morning and evening trains with at least $127$ Abelians on both trains. Identify these Abelians, for example by painting them purple.\n\nSuppose for a contradiction that no two purple Abelians live in houses whose numbers differ by $5$ or less. Then ordering the Abelians by their house numbers, the first purple Abelian is in house number at least $1$. There can be no purple Abelians in houses $2, 3, 4, 5$ or $6$. The second purple Abelian must then be in house number at least $7$, until the $127$th purple Abelian must be in house number at least $757 = 1 + 6 \\times 126$.\n\nAs the average household size is $3$, there are only $674 = 2022/3$ houses in the village, which is a contradiction.\nBecause the average household size is $3$, there are $674 = 2022/3$ houses in the village. These houses can be grouped into $113$ groups such that the house numbers differ by at most $5$ in each group, for example, for $k = 1, 2, \\dots, 112$ the six houses $6k-5, \\dots, 6k$ form one group, and the remaining two houses $673, 674$ form the last group.\n\nBecause $16 \\cdot 113 = 1808 < 2022$, there must be at least one group of houses in which at least $17$ people live. There are $4 \\times 4 = 16$ possible combinations of morning and evening trains, hence there are two among these $17$ Abelians who were on the same train both in the morning and in the evening.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33332, "subject": "Mathematics (Multi-modal)", "question": "For $n$ a positive integer, $n! = 1 \\cdot 2 \\cdot 3 \\cdots (n-1) \\cdot n$ is the product of the positive integers from 1 to $n$. Determine, with proof, all positive integers $n$ for which $n! + 3$ is a power of 3.", "options": [], "answer": "n = 3 and n = 4", "solution": "The only solutions are $3! + 3 = 3^2$ and $4! + 3 = 3^3$. We can calculate directly that $5! + 3 = 123$ is not a power of 3. For $n \\ge 6$, we have $9 \\mid n!$ as 3 and 6 are two of the factors defining $n!$. But also 9 is a factor of all powers of 3 beyond $3^1$, so we would have the contradiction that 9 divides both $n!$ and $n! + 3$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33333, "subject": "Mathematics (Multi-modal)", "question": "Let $n \\ge 3$ be an integer and let $(p_1, p_2, p_3, \\dots, p_n)$ be a permutation of $\\{1, 2, 3, \\dots, n\\}$. For this permutation we say that $p_t$ is a *turning point* if $2 \\le t \\le n-1$ and\n$$\n(p_t - p_{t-1})(p_t - p_{t+1}) > 0.\n$$\nFor example, for $n=8$, the permutation $(2, 4, 6, 7, 5, 1, 3, 8)$ has two turning points: $p_4 = 7$ and $p_6 = 1$.\nFor fixed $n$, let $q(n)$ denote the number of permutations of $\\{1, 2, 3, \\dots, n\\}$ with exactly one turning point.\nFind all $n \\ge 3$ for which $q(n)$ is a perfect square.", "options": [], "answer": "3", "solution": "**Solution 1.** We claim that $q(n) = 2^n - 4$ and that this is a perfect square only when $n = 3$.\nIf there is a unique turning point, then it is either a minimum or maximum. We count the number of permutations where the turning point is a maximum, and so $q(n)$ is double this number. As we are interested in the permutations with a single turning point, the permutation must be increasing to the left of the maximum and decreasing to its right. So a permutation with a unique maximum is fully determined by the way the remaining numbers are allocated to the left or the right of the maximum.\nThe maximal value must be $p_t = n$. Consider the $n-1$ numbers $1, 2, \\dots, n-1$. These must each be placed either to the left of the turning point $t$ or to the right of $t$. There are $2^{n-1}$ ways of allocating the numbers between left and right sides, but as a turning point $t$ must (according to our definition) be an interior point, we must exclude the 2 cases where all the numbers from 1 to $n-1$ are placed the same side of $t$. This leaves $2^{n-1} - 2$ ways of allocating the points between left and right sides.\nDoubling, it follows that there are $2^n - 4$ permutations with exactly one turning point, either a minimum or a maximum.\nNow for $n \\ge 3$, $2^n - 4$ is an even number, so is a perfect square, say $(2r)^2$, if and only if a quarter of that number, namely $2^{n-2} - 1 = r^2$ is a perfect square. If $n \\ge 4$ then $2^{n-2}$ is a multiple of 4, so $2^{n-2} - 1 \\equiv 3 \\pmod 4$ and cannot be a perfect square. Therefore, the only $n \\ge 3$ where $q(n) = 2^n - 4$ is a perfect square is $q(3) = 2^3 - 4 = 4$.\n\n\n**Solution 2.** An alternative calculation of $q(n)$ considers that if $p_t = n$ then there are $\\binom{n-1}{t-1}$ ways to allocate the remaining $n-1$ numbers such that $t-1$ are to the left of $p_t$ and $n-t$ are to the right. The total number of cases for which $p_t$ is a maximum is then\n$$\n\\frac{q(n)}{2} = \\sum_{t=2}^{n-1} \\binom{n-1}{t-1}\n$$\nThe binomial theorem gives\n$$\n2^{n-1} = (1+1)^{n-1} = \\sum_{t=1}^{n} \\binom{n-1}{t-1} = 2 + \\sum_{t=2}^{n-1} \\binom{n-1}{t-1}\n$$\nThe enumeration $q(n) = 2^n - 4$ follows. Finish as in Solution 1.\n\n\n**Solution 3.** If a permutation has only one turning point, that point has to be 1 or $n$. There is the same number of permutations in both cases. We find a recurrence relation for $q(n)$:\n$$\nq(n + 1) = 2q(n) + 4 \\quad \\text{for } n \\ge 3.\n$$\nIndeed, let $\\sigma$ be a permutation on $\\{1, 2, \\dots, n\\}$. If $\\sigma$ has 1 as unique turning point, then we can add $n+1$ either at the beginning or the end to get a permutation $\\tilde{\\sigma}$ with 1 turning point. If $\\sigma$ has $n$ as unique turning point, then we can add $n+1$ either at immediately left or immediately right of $n$ to get a permutation $\\tilde{\\sigma}$ with $n+1$ as unique turning point. If $\\sigma$ is strictly increasing, then add $n+1$ either at the beginning or just left of $n$ and if $\\sigma$ is strictly decreasing, then add $n+1$ either at the end or just right of $n$. These are all possible permutations of $\\{1, 2, \\dots, n, n+1\\}$ with 1 turning point.\nTo prove that $n=3$ is the unique number for which $q(n) = m^2$, we first note that $q(3) = 4$, because there are only four permutations of $\\{1, 2, 3\\}$ with exactly one turning point, namely\n$$\n(2, 1, 3) \\quad (3, 1, 2) \\quad (1, 3, 2) \\quad (2, 3, 1).\n$$\nUsing induction and the recurrence relation we see that $4 \\mid q(n)$ for all $n \\ge 3$. Writing $q(n) = 4x_n$ we get $x_{n+1} = 2x_n + 1$ for all $n \\ge 3$ from the recurrence relation for $q$. If $x_{n+1} = k^2$ is a square for some $n \\ge 3$, $k$ must be odd, hence $k^2 \\equiv 1 \\pmod 4$. Since $k^2 = x_{n+1} = 2x_n + 1$, we have $2x_n = k^2 - 1 \\equiv 0 \\pmod 4$, hence $2 \\mid x_n$. When $n=3$, this contradicts $x_3 = 1$, and when $n \\ge 4$ this contradicts $x_n = 2x_{n-1} + 1$ which holds for $n > 3$.", "topic": "Discrete Mathematics", "subtopic": "Combinatorics" }, { "id": 33334, "subject": "Mathematics (Multi-modal)", "question": "Let $f : \\mathbb{R} \\to \\mathbb{R}$ be the fractional part function, defined by $f(x) = x - \\lfloor x \\rfloor$, where $\\lfloor x \\rfloor$ is the greatest integer less than or equal to $x$. For instance, $f(5.4) = 0.4$ and $f(-5.4) = 0.6$.\nLet $g : \\mathbb{R} \\to \\mathbb{R}$ be defined by $g(x) = f(1 - 2022x)$. Find 2023 distinct rational numbers $x$ satisfying $g(x) = x$. Each such solution $x$ should be explicitly written in the form $m/n$ for some integers $m, n$.", "options": [], "answer": "x = m/2023 for m = 0, 1, ..., 2022", "solution": "The fractional part $f(x)$ of a number $x$ is characterised by\n$$\nf(x) \\in [0, 1) \\text{ and } x - f(x) \\in \\mathbb{Z}.\n$$\nThe equation $g(x) = x$, i.e. $f(1 - 2022x) = x$, is therefore equivalent to\n$$\nx \\in [0, 1) \\text{ and } (1 - 2022x) - x = 1 - 2023x \\in \\mathbb{Z}.\n$$\nIf $x = \\frac{m}{n}$ is a rational number, this is equivalent to\n$$\n0 \\le m < n \\text{ and } \\frac{2023m}{n} \\in \\mathbb{Z}.\n$$\nIf we choose $n = 2023$, then the 2023 integers $m$ that satisfy $0 \\le m < 2023$ give an $x = \\frac{m}{n}$ that fulfils the desired condition.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33335, "subject": "Mathematics (Multi-modal)", "question": "Find all right-angled triangles with integer side lengths whose areas are numerically equal to their perimeters.", "options": [], "answer": "The only such right triangles are with side lengths 5, 12, 13 and 6, 8, 10.", "solution": "Let $a, b, c$ be the side lengths of a right-angled triangle with hypotenuse $c$, i.e. $c^2 = a^2 + b^2$. The area of this triangle is equal to $ab/2$ and the perimeter is $a + b + c$. Area and perimeter agree exactly when $ab/2 = a + b + c$. Squaring both sides and using Pythagoras, this becomes\n$$\na^2 + b^2 = \\left(\\frac{ab}{2} - (a+b)\\right)^2 = \\frac{a^2b^2}{4} + (a+b)^2 - ab(a+b).\n$$\nWe simplify this to\n$$\n0 = \\frac{a^2b^2}{4} + 2ab - ab(a+b) = ab\\left(\\frac{ab}{4} + 2 - (a+b)\\right).\n$$\nBecause $a$ and $b$ are positive, we obtain $ab + 8 - 4a - 4b = 0$, which is equivalent to\n$(a - 4)(b - 4) = 8.$\nWe may assume, w.l.o.g., that $1 \\le a \\le b$. If $b \\le 4$, then both factors, $a - 4$ and $b - 4$, are between 0 and $-3$. The product of two such integers is never equal to 8. Hence, $b \\ge 5$, which implies that $b - 4$ is positive. Therefore, $a - 4$ must be positive as well, hence $5 \\le a \\le b$.\nThe only factorisations of 8 in positive integers are $8 = 1 \\cdot 8$ and $8 = 2 \\cdot 4$. We obtain $(a, b) = (5, 12)$ in the first case, and $(a, b) = (6, 8)$ in the second case. These lead to the right-angled triangles with side lengths 5, 12, 13 and 6, 8, 10. A straightforward check reveals that these are indeed solutions to this problem.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33336, "subject": "Mathematics (Multi-modal)", "question": "Solve, for all real $x$ and $y$,\n$$\nx^3 + y^3 = 19, \\\\\nx^2 + y^2 + 5x + 5y + xy = 12.\n$$", "options": [], "answer": "(-2, 3) and (3, -2)", "solution": "Let $s = x + y$ and $p = xy$, then $x$ and $y$ are the roots of $T^2 - sT + p = 0$,\n$$\nx^2 + y^2 = s^2 - 2p \\quad (3)\n$$\nand\n$$\nx^2 + y^2 + 5x + 5y + xy = s^2 + 5s - p = 12,\n$$\nthus\n$$\np = s^2 + 5s - 12. \\quad (4)\n$$\nUsing (3) and (4), we get\n$$\n\\begin{align*}\nx^3 + y^3 &= (x + y)(x^2 + y^2 - xy) \\\\\n&= s(s^2 - 3p) = s(s^2 - 3(s^2 + 5s - 12)) \\\\\n&= -2s^3 - 15s^2 + 36s = 19,\n\\end{align*}\n$$\nyielding\n$$\n2s^3 + 15s^2 - 36s + 19 = 0. \\qquad (5)\n$$\nIt is easy to detect that $s = 1$ is a root of this cubic, and by factoring out $s-1$, we find the resulting quadratic $2s^2+17s-19$ which has roots $s = 1$ and $s = -19/2$. Corresponding to $s = 1$ we find $p = -6$ from (4). To find $x$ and $y$, we solve $T^2-T-6 = 0$ which has roots $-2$ and $3$. We get $(x, y) = (-2, 3)$ or $(x, y) = (3, -2)$, both satisfying the original equations.\n\nCorresponding to $s = -19/2$ we find $p = 123/4$. The equation $T^2 + \\frac{19}{2}T + \\frac{123}{4} = 0$ has negative discriminant $s^2 - 4p = -\\frac{131}{4}$ hence no real solutions.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33337, "subject": "Mathematics (Multi-modal)", "question": "There are 28 towns on the island of Mathematia. Each pair of towns is either connected by a single road, or is not connected. It turns out that for any two towns $A$ and $B$ that have the same number of roads connected to them, there is no road that connects $A$ to $B$. Determine, with proof, the maximum number of roads on the island of Mathematia.", "options": [], "answer": "322", "solution": "The problem can be restated as follows: Given a graph on 28 vertices, where no two vertices of the same degree $i$ are connected by an edge ($1 \\le i \\le 27$), determine (with proof) the maximum number of edges in the graph.\nFor $0 \\le i \\le 27$, let $a_i$ denote the number of vertices of degree $i$. Thus the total number of edges in the graph is\n$$\nN_e = \\frac{0 \\times a_0 + 1 \\times a_1 + \\cdots + 27 \\times a_{27}}{2} = \\frac{(a_{27}) + (a_{27} + a_{26}) + (a_{27} + a_{26} + a_{25}) + \\cdots + (a_{27} + a_{26} + \\cdots + a_1)}{2}.\n$$\nNow, consider any vertex $v$ of degree $i$. None of its $i$ neighbouring vertices can have degree $i$, so we have $a_i \\le 28 - i$. In particular $a_{27} \\le 1$, $a_{27} + a_{26} \\le 1 + 2$, and so on, up until $a_{27} + \\cdots + a_{21} \\le 1 + 2 + \\cdots + 7$. Also, for each $i \\le 20$ we have $a_{27} + \\cdots + a_i \\le 28$, since the sum cannot be larger than the total number of vertices in the graph. This yields the following upper bound on the number of edges:\n$$\nN_e \\le \\frac{(1) + (1+2) + (1+2+3) + \\cdots + (1+2+\\cdots+7) + 20 \\times 28}{2} = 322.\n$$\nThis upper bound is attained by the following graph: Partition the 28 vertices into 7 groups of size 1, 2, ..., 7, respectively. Any pair of vertices is connected by an edge if and only if the two vertices lie in different groups. It is easy to see that this graph satisfies the condition of the problem. Because each vertex in the group of size $i$ has degree $28 - i$, the total number of edges in this graph is\n$$\nN_e = \\frac{1}{2} \\sum_{i=1}^{7} i(28 - i) = 14 \\sum_{i=1}^{7} i - \\frac{1}{2} \\sum_{i=1}^{7} i^2 = 392 - 70 = 322,\n$$\nas required.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33338, "subject": "Mathematics (Multi-modal)", "question": "Find all functions $f : \\mathbb{Z} \\to \\mathbb{Z}$ such that for all integers $a, b$\n$$\nf(a + f(b)) = b + f(a).\n$$", "options": [], "answer": "f(x) = x and f(x) = -x", "solution": "The two solutions are $f(x) = x$ and $f(x) = -x$. We prove this in three stages. First we show that $f$ is self-inverse, that is, $f(f(x)) = x$ for all integers $x$. Secondly we show that $f$ is additive. Thirdly, we demonstrate that the stated solutions are the only self-inverse additive functions.\n\nTo show the self-inverse property, interchange $a$ and $b$ in the original equation\n$$\nf(b + f(a)) = a + f(b),\n$$\nthen apply $f$ again to each side, which gives\n$$\nf(f(b + f(a))) = f(a + f(b)) = b + f(a).\n$$\nAny integer can be represented as $b + f(a)$ hence $f(f(x)) = x$ for all $x$. For additivity, let $c = f(b)$. By the self-inverse property, any integer $c$ can be written in this form, setting $b = f(c)$. The original equation becomes\n$$\nf(a + c) = f(c) + f(a).\n$$\nPutting $a = c = 0$ implies $f(0) = 0$. It follows by induction that $f(x) = x f(1)$ for positive integers $x$. Writing $c = -a$ proves that $f(x) = x f(1)$ for all negative $x$. Therefore, $f(x)$ is linear with slope $f(1)$ and $y$-intercept of zero. Finally, the self-inverse property with $x = 1$ gives $1 = f(f(1)) = f(1)^2$, whence $f(1)^2 = 1$ and $f(1) = \\pm 1$ yielding the two solutions claimed. It is straightforward to check that both indeed are solutions.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33339, "subject": "Mathematics (Multi-modal)", "question": "Find all solutions in positive integers $a, b, c$ to the equation $a! = \\frac{1}{5}b! + \\frac{4}{5}c!$.", "options": [], "answer": "All solutions are a = b = c (any positive integer) and the nontrivial solution (a, b, c) = (2, 3, 1).", "solution": "There are trivial solutions when $a = b = c$, and one non-trivial solution when $a = 2, b = 3, c = 1$ as:\n$$\n2! = 2 = \\frac{1}{5} \\times 6 + \\frac{4}{5} \\times 1 = \\frac{1}{5} \\times 3! + \\frac{4}{5} \\times 1!\n$$\nWe will prove that there are no other solutions. If $b = c$ the equation becomes $a! = b!$ and we must have $a = b$, which gives the trivial solution.\n\nSuppose that $b \\neq c$. Then, as $a!$ is a weighted average of $b!$ and $c!$, then $a!$ lies strictly between $b!$ and $c!$. As the factorial is a strictly increasing function, this implies $a$ lies strictly between $b$ and $c$, and in particular $\\max\\{b, c\\} \\geq a+1$. This gives\n$$\na! = \\frac{b! + 4c!}{5} > \\frac{b! + c!}{5} > \\frac{(a+1)!}{5} = \\frac{a+1}{5}a!\n$$\nDividing by $a!$ and multiplying by 5 gives $5 > a + 1$ whence $a \\in \\{1, 2, 3\\}$. The case $a = 1$ is excluded, since $a$ strictly exceeds the lesser of the positive integers $b$ and $c$.\n\nThe case $a = 2$ leads to $b! + 4c! = 10$, so $c! < \\frac{10}{4}$ and $c \\le 2$. The sub-case $c = 1$ gives the non-trivial solution above, while $c = 2$ is not possible as $a$ is strictly between $b$ and $c$.\n\nWhen $a = 3$, we have to solve $b! + 4c! = 30$. As $c! < \\frac{30}{4}$ we must have $c \\le 3$. We cannot have $c = 3$ because $a$ is strictly between $b$ and $c$. When $c = 2$ we should have $b! + 8 = 30$, and when $c = 1$ we should have $b! + 4 = 30$, neither of which has a solution.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 33340, "subject": "Mathematics (Multi-modal)", "question": "For any positive integer $N$ we denote by $\\overline\\{N\\}$ the number obtained by writing the digits of $N$ from right to left. For instance, if $N = 2395$ then $\\overline\\{N\\} = 5932$ and if $N = 3780$ then $\\overline\\{N\\} = 873$.\nFind all positive integers $N$ such that $N - \\overline\\{N\\} = 9$.", "options": [], "answer": "10, 21, 32, 43, 54, 65, 76, 87, 98", "solution": "If $N$ has one digit this is not possible. If $N$ has two digits, say $N = ab$, then $\\overline\\{N\\} = ba$ so that $N - \\overline\\{N\\} = 9(a - b)$ which yields $a - b = 1$ so the numbers are\n$$\nN = 10, 21, 32, 43, 54, 65, 76, 87, 98.\n$$\nAssume there are numbers $N$ with the above property that have $m \\ge 3$ digits. Thus, we may write\n$$\nN = aZb\n$$\nwhere $a \\in \\{1, 2, 3, \\dots, 9\\}$ and $b \\in \\{0, 1, 2, 3, \\dots, 9\\}$ are digits and $Z$ is a positive integer with $m - 2 \\ge 1$ digits. We may need to include leading zeros in the presentation of $Z$. Then, $\\overline\\{N\\} = b\\overline\\{Z\\}a$, where $\\overline\\{Z\\}$ is obtained by writing the digits of $Z$ from right to left. We now have\n$$\n9 = N - \\overline\\{N\\} = (10^{m-1}a + 10Z + b) - (10^{m-1}b + 10\\overline\\{Z\\} + a)\n$$\nwhich yields\n$$\n9 = (10^{m-1} - 1)(a - b) + 10(Z - \\overline\\{Z\\}). \\quad (6)\n$$\nBecause $N \\ge \\overline\\{N\\}$, we must have $a \\ge b$.\nIf $a - b = 0$ then (6) cannot hold because the right-hand side is a multiple of 10 while the left-hand side is not. If $a - b \\ge 2$ we again raise a contradiction since $N \\ge a \\cdot 10^{m-1}$ and $\\overline\\{N\\} \\le (b + 1) \\cdot 10^{m-1}$ imply\n$$\n9 = N - \\overline\\{N\\} \\ge (a - b - 1) \\cdot 10^{m-1} \\ge 10^{m-1} \\ge 100.\n$$\nHence $a - b = 1$ and from (6) we find $9 = 10^{m-1} - 1 + 10(Z - \\overline\\{Z\\})$ from which we get\n$$\n\\overline\\{Z\\} - Z = 10^{m-2} - 1. \\quad (7)\n$$\nClearly, $Z = 0$ does not satisfy (7). If $Z > 0$, (7) implies $\\overline\\{Z\\} > 10^{m-2} - 1$. Recall now that $Z$ and $\\overline\\{Z\\}$ have at most $m - 2$ digits, fewer than $m - 2$ if $Z$ contains leading digits equal to zero. Hence, $Z$ and $\\overline\\{Z\\}$ cannot exceed $10^{m-2} - 1 = 999\\dots9$, the number that consists of $m - 2$ digits 9. This contradiction shows that when $m \\ge 3$ there is no solution.\nHence, the only numbers satisfying the condition in the problem are the two-digit numbers listed above.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33341, "subject": "Mathematics (Multi-modal)", "question": "Two circles $\\Omega_1$ and $\\Omega_2$ intersect at $A$ and $B$. From any point $P$ on $\\Omega_1$ straight lines are drawn through $A$ and $B$ meeting $\\Omega_2$ again at $E$ and $F$, respectively. Prove that the length of the line segment $EF$ is the same for all $P$ on $\\Omega_1$.", "options": [], "answer": "Detailed solution", "solution": "**Solution 1.** Draw the tangent to $\\Omega_1$ at $A$ and let $H$ be its second point of intersection with $\\Omega_2$. First suppose $P$ is not inside circle $\\Omega_2$.\n\n![](attached_image_1.png)\n\nBy the Alternate Segment Theorem, $\\angle HAE = \\angle PBA$. From the cyclic quadrilateral $ABFE$ we see that $\\angle PBA = \\angle AEF$, hence $\\angle HAE = \\angle AEF$. We also have $\\angle FAH = \\angle FEH$ (standing on the same arc of $\\Omega_2$). Therefore,\n$$\n\\angle FAE = \\angle FAH + \\angle HAE = \\angle FEH + \\angle AEF = \\angle AEH.\n$$\nThis implies that the segment $EF$ has the same length as $AH$. If $P$ is inside circle $\\Omega_2$, we can proceed in a similar way.\n\n![](attached_image_2.png)\n\nLooking at triangle $PBE$ we find that $\\angle FBE = \\angle BPA - \\angle BEA$. The Alternate Segment Theorem shows that the angle between $AB$ and the tangent $AH$ is equal to $\\angle BPA$. From cyclic quadrilateral $ABEH$ we see that the same angle between $AB$ and the tangent $AH$ is equal to $\\angle BEH$. Hence,\n$$\n\\angle FBE = \\angle BPA - \\angle BEA = \\angle BEH - \\angle BEA = \\angle AEH.\n$$\nTherefore, for each $P$ on $\\Omega_1$, segments $EF$ and $AH$ have the same length.\n**Solution 2.** The length of the chord *EF* of circle $\\Omega_2$ is determined by angle $\\angle FAE$. First suppose $P$ is not inside circle $\\Omega_2$.\n\n![](attached_image_3.png)\n\nIn this case $\\angle FAE$ is an external angle of triangle $PFA$, hence is equal to $\\angle APF + \\angle AFP$. These two angles are the same for each point $P$ on $\\Omega_1$, because $\\angle APF$ stands on the arc $AB$ of circle $\\Omega_1$, and $\\angle AFP$ stands on the arc $AB$ of circle $\\Omega_2$.\n\n![](attached_image_4.png)\n\nIf $P$ is on the arc of $\\Omega_1$ that is inside the circle $\\Omega_2$, the angle $\\angle FAE$ is an internal angle of triangle $PFA$ and so is equal to $180^\\circ - (\\angle APF + \\angle AFP)$. This angle subtends the same chord as the angle $\\angle APF + \\angle AFP$, which does not change when $P$ varies, and which has the same value as in the other case. Hence, $\\angle FAE$ is the same for each point $P$ on $\\Omega_1$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33342, "subject": "Mathematics (Multi-modal)", "question": "If $(ABC)$ denotes the area of $ABC$ prove that\n$$\n(ABC) = \\frac{a^2}{2(\\cot B + \\cot C)}.\n$$\nDeduce or prove otherwise that if $ABC$ is acute-angled, then\n$$\n\\cos A \\cos B \\cos C \\le \\frac{1}{8},\n$$\nwith equality iff the triangle is equilateral.", "options": [], "answer": "Detailed solution", "solution": "To prove $(ABC) = \\frac{a^2}{2(\\cot B + \\cot C)}$, we recall that $\\sin(B + C) = \\sin(A)$ because $\\angle A + \\angle B + \\angle C = 180^\\circ$ and obtain\n$$\n\\begin{aligned}\n\\cot B + \\cot C &= \\frac{\\cos B \\sin C + \\cos C \\sin B}{\\sin B \\sin C} = \\frac{\\sin(B + C)}{\\sin B \\sin C} \\\\\n&= \\frac{\\sin A}{\\sin B \\sin C} = \\frac{a}{b \\sin C} \\quad \\text{(Sine Rule)} \\\\\n&= \\frac{a^2}{ab \\sin C} = \\frac{a^2}{2(ABC)},\n\\end{aligned}\n$$\nthe required result.\n\nHere is an alternative way to prove this formula. Let $D$ be the foot of the altitude from $A$, $x = |AD|$, and $y = |CD|$ where $x$ is taken negative if $\\angle B$ is obtuse and $y$ is taken negative if $\\angle C$ is obtuse. We then have $a = x + y$, $\\cot B = x/h$ and $\\cot C = y/h$, hence $\\cot B + \\cot C = a/h$. Using $2(ABC) = ah$ this turns into the desired formula.\n\nTo show that $\\cos A \\cos B \\cos C \\le \\frac{1}{8}$ for all acute-angled triangles $ABC$, we use the area formula shown above. Since $B, C$ are acute angles, $\\cot B$ and $\\cot C$ are positive and we can use the AM-GM inequality to obtain\n$$\n\\sqrt{\\cot B \\cot C} \\le \\frac{\\cot B + \\cot C}{2} = \\frac{a^2}{4(ABC)},\n$$\nwith equality iff $\\angle B = \\angle C$. Whence\n$$\n\\begin{aligned}\n(ABC) &\\le \\frac{a^2}{4} \\sqrt{\\tan B \\tan C}, \\\\\n&= \\frac{a}{2} \\frac{\\sqrt{\\left(\\frac{1}{2}ab \\sin C\\right) \\left(\\frac{1}{2}ac \\sin B\\right)}}{\\sqrt{bc \\cos B \\cos C}} = \\frac{a}{2} \\frac{(ABC)}{\\sqrt{bc \\cos B \\cos C}},\n\\end{aligned}\n$$\nand so\n$$\n\\cos B \\cos C \\le \\frac{a^2}{4bc}, \\qquad (8)\n$$\nwith equality iff $\\angle B = \\angle C$. Similarly,\n$$\n\\cos C \\cos A \\le \\frac{b^2}{4ca}, \\quad \\text{with equality iff } \\angle C = \\angle A \\text{ and}\n$$\n$$\n\\cos A \\cos B \\le \\frac{c^2}{4ab}, \\quad \\text{with equality iff } \\angle A = \\angle B.\n$$\nHence\n$$\n(\\cos A \\cos B \\cos C)^2 \\le \\frac{1}{64},\n$$\nwith equality iff $\\angle A = \\angle B = \\angle C$, whence the desired inequality follows.\n\nAn alternative proof of inequality (8), not using the area formula we have shown in the first part, may use the Cosine Rule as follows:\n$$\n\\begin{aligned}\n\\cos B \\cos C &= \\frac{(a^2 - b^2 + c^2)}{2ac} \\cdot \\frac{(a^2 + b^2 - c^2)}{2ab} \\\\\n&= \\frac{a^4 - (b^2 - c^2)^2}{4a^2bc} \\le \\frac{a^4}{4a^2bc} = \\frac{a^2}{4bc},\n\\end{aligned}\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33343, "subject": "Mathematics (Multi-modal)", "question": "The country of Cathay has four cities with airports and two Airlines Cathay Red and Cathay Blue. Each of the six routes is assigned to only one of the airlines. No airline is assigned all the routes. An assignment of routes is called good if there are two cities for which the airline that operates the route between the two is different from the airline that operates the route between the other two cities. Show that there is an assignment of routes which is not good.", "options": [], "answer": "Detailed solution", "solution": "The problem can be expressed in graph theory terms as colouring the edges of the graph $K_4$, the complete graph on 4 vertices. There is essentially one colouring which is not good, namely:\n\n![](attached_image_1.png)\n\nThe dashed line represents one colour and the solid line the other. Interchanging the top vertices or the colours gives other representations of essentially the same solution.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33344, "subject": "Mathematics (Multi-modal)", "question": "The four vertices of quadrilateral $ABCD$ lie on the circle with diameter $AB$. The diagonals of $ABCD$ intersect at $E$, and the lines $AD$ and $BC$ intersect at $F$. Line $FE$ meets $AB$ at $K$ and line $DK$ meets the circle again at $L$. Prove that $CL$ is perpendicular to $AB$.", "options": [], "answer": "Detailed solution", "solution": "![](attached_image_1.png)\nNote that $\\angle ADB = 90^\\circ = \\angle ACB$ (angles in a semicircle). It follows that $E$ is the orthocentre of $\\triangle FAB$. Therefore $FK$ is perpendicular to $AB$. It follows that $ADEK$ is cyclic. Therefore $\\angle AEK = \\angle ADK$. Since $\\angle ADK = \\angle ADL = \\angle ACL$ (same segment), we have $\\angle AEK = \\angle ACL$ which implies that $EK$ is parallel to $CL$. Since $EK$ is perpendicular to $AB$, this implies that $CL$ is perpendicular to $AB$.\nBecause the angles $\\angle ADB$ and $\\angle ACB$ are right angles, $E$ is the orthocentre of triangle $ABF$ and $FK$ is perpendicular to $AB$. From the right angles $\\angle BKF$ and $\\angle BDF$ we see that $BFDK$ is cyclic, hence $\\angle KDB = \\angle KFB$. Because $ABCD$ was given to be cyclic, we have $\\angle LAB = \\angle LDB$. The right angled triangles $ABC$ and $FKB$ are similar as they share an angle at $B$, and so $\\angle KFB = \\angle BAC$. Together, this implies\n$$\n\\angle LAB = \\angle LDB = \\angle KDB = \\angle KFB = \\angle BAC\n$$\nand this means that $AB$ is the angle bisector of $\\angle LAC$.\n\n![](attached_image_2.png)\nAs a consequence, the right angled triangles *ALB* and *ACB* are congruent, which shows that triangle *LAC* is isosceles with *|AL|* = *|AC|*. It is a well known fact about isosceles triangles, which easily follows from ASA, that the angle bisector *AB* is perpendicular to the opposite side *CL*.\nIt is known that the altitudes of a triangle are the internal angle bisectors of its orthic triangle. Armed with this knowledge we proceed as follows.\nBecause the angles $\\angle ADB$ and $\\angle ACB$ are right angles, $E$ is the orthocentre of triangle $ABF$ and $FK$ is perpendicular to $AB$. Hence, $CDK$ is the orthic triangle of triangle $ABF$, which implies that $BD$ is the angle bisector of $\\angle KDC = \\angle LDC$.\n![](attached_image_3.png)\nNow we use the fact that an angle bisector in a triangle meets the perpendicular bisector of the opposite side on the circumcircle of that triangle. Applying this to triangle *LDC* we see that *B* is the point on the circumcircle where the angle bisector of $\\angle LDC$ meets the perpendicular bisector of *CL*, which passes through the circumcentre *O* of triangle *LDC*. Hence, *BO* is perpendicular to *CL*.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33345, "subject": "Mathematics (Multi-modal)", "question": "Show that for all $x, y \\in \\mathbb{R}$:\n$$\nx^4 + y^4 + 18 \\ge 12xy.\n$$\nWhen do we get equality?", "options": [], "answer": "Equality holds if and only if x = y = √3 or x = y = −√3.", "solution": "If $x, y \\ge 0$, we can use a 4-term AM-GM to obtain\n$$\nx^4 + y^4 + 18 = x^4 + y^4 + 9 + 9 \\geq 4 (x^4 \\cdot y^4 \\cdot 9 \\cdot 9)^{1/4} = 12xy.\n$$\nWe get equality if and only if all four terms are equal, i.e. if and only if $x = y = \\sqrt{3}$.\nIf one of the two numbers $x, y$ is non-positive and the other non-negative, the RHS of the target inequality is non-positive whereas the LHS is at least 18, so the inequality still holds, but with no possibility of equality.\nFinally, if $x, y < 0$, we replace $(x, y)$ by $(-x, -y)$ which leaves both LHS and RHS unchanged, so the inequality holds by what we have shown already, and equality iff $x = y = -\\sqrt{3}$.\nIn summary, we have proved the inequality and shown that equality occurs if and only if $x$ and $y$ are both equal to $\\sqrt{3}$ or both equal to $-\\sqrt{3}$.\n\n$$\n\\begin{aligned}\n6(x - y)^2 &= 6x^2 + 6y^2 - 12xy, \\\\\n(x^2 - 3)^2 &= x^4 - 6x^2 + 9 \\quad \\text{and} \\\\\n(y^2 - 3)^2 &= y^4 - 6y^2 + 9,\n\\end{aligned}\n$$\nwe have\n$$\nx^4 + y^4 + 18 - 12xy = 6(x - y)^2 + (x^2 - 3)^2 + (y^2 - 3)^2 \\geq 0\n$$\nwith equality iff $x = y = \\pm\\sqrt{3}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33346, "subject": "Mathematics (Multi-modal)", "question": "For which positive integers $n$ can $n$ positive integers $a_1, a_2, \\dots, a_n$ be found such that:\n$$\na_1 + a_2 + a_3 + \\dots + a_n = 2n \\quad \\text{and}\n$$\n$$\na_1 + 2a_2 + 3a_3 + \\dots + n a_n = n^2 ?\n$$", "options": [], "answer": "n ≥ 3", "solution": "There is no positive solution for $n = 1$ or $n = 2$ but positive solutions exist for any $n \\ge 3$. Eliminate the small cases first. If $n = 1$ then $1 = a_1 = 2$, a contradiction. With $n = 2$, we must solve $a_1 + a_2 = 4$ and $a_1 + 2a_2 = 4$. The unique solution is $a_1 = 4$ and $a_2 = 0$, and as $a_2$ is not positive, this is not feasible.\n\nFor $n \\ge 3$, there are many ways to construct solutions, see Remark 2 below. Exploring heuristically, we can see that putting all $a_j = 2$ solves the first equation exactly but gives $n(n + 1)$ for the second equation, which is too high. We tweak that configuration, taking 1 from $a_2$ and from $a_n$, loading them instead onto $a_1$, which preserves the first equation and now satisfies the second: $(a_1, \\dots, a_n) = (4, 1, 2, 2, \\dots, 2, 2, 1)$ or more formally\n$$\na_1 = 4, \\quad a_2 = 1, \\quad a_j = 2 \\ (3 \\le j \\le n-1), \\quad a_n = 1.\n$$\nIt is easy to verify that this works. Many other constructions are possible.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33347, "subject": "Mathematics (Multi-modal)", "question": "Show that the only choice of integers $x, y, z$ that satisfies the equation\n$$\nx^{2022} + 20y^{2022} = 22z^{2022},\n$$\nis $x = y = z = 0$.", "options": [], "answer": "Detailed solution", "solution": "It suffices to consider non-negative $x, y, z$. Assume that there is a non-trivial solution, i.e. at least one of the numbers $x, y, z$ is positive. We pick such a solution with minimal sum $x + y + z$.\nNow, $x^{2022}$ must be even since the other two terms are even, so we can write\n$x = 2u$ and divide the new equation across by $2$ to get\n$$\n2^{2021}u^{2022} + 10y^{2022} = 11z^{2022}.\n$$\nAs before, we conclude that $z = 2w$ is even and divide the new equation by $2$ to get\n$$\n2^{2020}u^{2022} + 5y^{2022} = 11 \\cdot 2^{2021}w^{2022}.\n$$\nAs before, we conclude that $y = 2v$ is even and divide the new equation by $2^{2020}$ to get\n$$\nu^{2022} + 20v^{2022} = 22w^{2022}.\n$$\nThis is our original equation with $x, y, z$ replaced by $u, v, w$ whose sum is half the original sum. This gives a contradiction so there are no solutions.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 33348, "subject": "Mathematics (Multi-modal)", "question": "A circle, centre $I$, lies inside a circle, centre $J$, and touches it at a point $A$. A tangent is drawn to the circle, centre $I$, at a point $B$ different from $A$ which intersects the circle, centre $J$, at $C$ and $D$. Prove that $AB$ bisects $\\angle CAD$.", "options": [], "answer": "Detailed solution", "solution": "Let $T$ be the point on the line $CD$ for which $TA$ is the common tangent to both circles. Then $|TA| = |TB|$, because $TB$ is a tangent to the smaller circle as well. Hence $\\angle TBA = \\angle TAB$.\n\n![](attached_image_1.png)\n\nLooking at triangle $ABC$ we see that $\\angle TBA = \\angle BDA + \\angle BAD$. Since $\\angle TAB = \\angle CAB + \\angle TAC$ and $\\angle TAC = \\angle BDA$ by the alternate segment theorem, we get $\\angle TAB = \\angle CAB + \\angle BDA$. Comparing the two expressions for $\\angle TBA = \\angle TAB$ we obtain $\\angle CAB = \\angle BAD$, i.e. $AB$ bisects $\\angle CAD$.\nThe points $A$, $I$, and $J$ are collinear since $IA$ and $JA$ are both perpendicular to the common tangent at $A$. Let $E$ be the second intersection point of $AB$ with the circle centre $J$. Join $IB$ and $JE$.\n\n![](attached_image_2.png)\n\nBecause $|IA| = |IB|$ we have $\\angle ABI = \\angle IAB$, and from $|JA| = |JE|$ we get $\\angle AEJ = \\angle JAE$. This implies $\\angle ABI = \\angle AEJ$, hence $IB$ is parallel to $JE$. As $IB$ is perpendicular to the tangent $CD$, it follows that $JE$ is perpendicular to the chord $CD$, i.e. $E$ is the midpoint of the arc $CD$ and $\\angle CAE = \\angle DAE$, as required.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33349, "subject": "Mathematics (Multi-modal)", "question": "Show that $\\frac{\\sqrt{1+t} - \\sqrt{|1-t|}}{1+\\sqrt{t}} \\le \\frac{1}{\\sqrt{2}}$, for all $t \\ge 0$.", "options": [], "answer": "Detailed solution", "solution": "$$\nf(t) = \\frac{\\sqrt{1+t} - \\sqrt{|1-t|}}{1+\\sqrt{t}}\n$$\nand observe that $f(1/t) = f(t)$, and that $f(0) = 0, f(1) = 1/\\sqrt{2}$. Therefore, it suffices to prove that $2(f(s^2))^2 \\le 1$ if $0 \\le s \\le 1$, i.e, that\n$$\n2(1 + s^2 + 1 - s^2 - 2\\sqrt{1 - s^4}) \\le (1 + s)^2.\n$$\nThis is equivalent to $4-(1+s)^2 \\le 4\\sqrt{1-s^4}$, or $(4-(1+s)^2)^2 \\le 16(1-s^4)$, i.e.\n$$\n(1-s)^2(3+s)^2 \\le 16(1-s)(1+s+s^2+s^3).\n$$\nSince $0 \\le s \\le 1$ this holds provided that\n$$\n(1-s)(9+6s+s^2) \\le 16(1+s+s^2+s^3),\n$$\nequivalently, iff\n$$\n9 - 3s - 5s^2 - s^3 \\le 16(1 + s + s^2 + s^3),\n$$\nwhich clearly holds for all $s \\ge 0$.\nWe first show that\n$$\n\\sqrt{a} - \\sqrt{b} \\le \\sqrt{a-b} \\quad \\text{if} \\quad 0 \\le b \\le a. \\qquad (9)\n$$\nIndeed, we have $0 \\le \\sqrt{b} \\le \\sqrt{a}$ and multiply by $2\\sqrt{b}$ to get $0 \\le 2b \\le 2\\sqrt{ab}$.\nIf we add $a - b - 2\\sqrt{ab}$ to both sides this yields\n$$\n(\\sqrt{a} - \\sqrt{b})^2 = a - 2\\sqrt{ab} + b \\le a - b.\n$$\nBecause $a \\ge b$, we can take square roots to obtain $\\sqrt{a} - \\sqrt{b} \\le \\sqrt{a-b}$.\nNext, we note that the inequality we wish to show is unchanged when $t$ is\nreplaced by $1/t$. Hence, it suffices to consider $0 \\le t \\le 1$. In this case,\n$|1-t| = 1-t$. With $a = 1+t$ and $b = 1-t$ we obtain from (9) the inequality\n$$\n\\sqrt{1+t} - \\sqrt{1-t} \\le \\sqrt{2t} = \\frac{2\\sqrt{t}}{\\sqrt{2}} \\le \\frac{1+\\sqrt{t}}{\\sqrt{2}},\n$$\nwhere we have used $\\sqrt{t} \\le 1$ in the last step. This is the desired result.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33350, "subject": "Mathematics (Multi-modal)", "question": "The equation $AB \\times CD = EFGH$, where each of the letters $A$, $B$, $C$, $D$, $E$, $F$, $G$, $H$ represents a different digit and the values of $A$, $C$ and $E$ are all non-zero, has many solutions, e.g., $46 \\times 85 = 3910$. Find the smallest value of the four-digit number $EFGH$ for which there is a solution.", "options": [], "answer": "1058", "solution": "**Solution 1.** Consider factorisations of numbers $EFGH$ with all digits different, and identify all factorisations consisting of two 2-digit numbers. Start with the smallest possible number $1023$ and stop when a solution is found.\n$$\n\\begin{align*}\n1023 &= 3 \\cdot 11 \\cdot 31 = 11 \\cdot 93 = 31 \\cdot 33 \\\\\n1024 &= 2^{10} = 16 \\cdot 64 = 32 \\cdot 32 \\\\\n1025 &= 5^2 \\cdot 41 = 25 \\cdot 41 \\\\\n1026 &= 2 \\cdot 3^3 \\cdot 19 = 18 \\cdot 57 = 19 \\cdot 54 = 27 \\cdot 38 \\\\\n1027 &= 13 \\cdot 79 \\\\\n1028 &= 2^2 \\cdot 257 \\\\\n1029 &= 3 \\cdot 7^3 = 21 \\cdot 49 \\\\\n1032 &= 2^3 \\cdot 3 \\cdot 43 = 12 \\cdot 86 = 24 \\cdot 43 \\\\\n1034 &= 2 \\cdot 517 \\\\\n1035 &= 3^2 \\cdot 5 \\cdot 23 = 15 \\cdot 69 = 23 \\cdot 45 \\\\\n1036 &= 2^2 \\cdot 7 \\cdot 37 = 14 \\cdot 74 = 28 \\cdot 37 \\\\\n1037 &= 17 \\cdot 61 \\\\\n1038 &= 2 \\cdot 3 \\cdot 173 \\\\\n1039 & \\quad \\text{prime}\n\\end{align*}\n$$\n\n$$\n\\begin{align*}\n1042 &= 2 \\cdot 521 \\\\\n1043 &= 7 \\cdot 149 \\\\\n1045 &= 5 \\cdot 11 \\cdot 19 = 11 \\cdot 95 = 19 \\cdot 55 \\\\\n1046 &= 2 \\cdot 523 \\\\\n1047 &= 3 \\cdot 349 \\\\\n1048 &= 2^3 \\cdot 131 \\\\\n1049 &= \\text{prime} \\\\\n1052 &= 2^2 \\cdot 263 \\\\\n1053 &= 3^4 \\cdot 13 = 13 \\cdot 81 = 27 \\cdot 39 \\\\\n1054 &= 2 \\cdot 17 \\cdot 31 = 17 \\cdot 62 = 31 \\cdot 34 \\\\\n1056 &= 2^5 \\cdot 3 \\cdot 11 = 11 \\cdot 96 = 12 \\cdot 88 = 16 \\cdot 66 = 22 \\cdot 48 = 24 \\cdot 44 = 32 \\cdot 33 \\\\\n1057 &= 7 \\cdot 151 \\\\\n1058 &= 2 \\cdot 23^2 = 23 \\cdot 46 \\quad \\text{Eureka!}\n\\end{align*}\n$$\n\n\n**Solution 2.** Some simple observations help in reducing cases. Without loss of generality, we will assume throughout $AB < CD$. We cannot have $B = 0$ or $D = 0$, as this would imply $H = 0$. Similarly, we cannot have $B = 1$ or $D = 1$, as this would imply $H = B$ or $H = D$. We cannot have $A = 1$, as this would imply $E = 1$, since $AB \\times CD < 20 \\cdot 98 = 1960 < 2000$.\nIf $AB = 21$ then $AB \\times CD \\le 21 \\cdot 98 = 2058$ and $E \\in \\{1, 2\\}$ which is impossible. Thus the smallest possible value of $AB$ is $23$.\nIf $AB = 23$, the smallest possible value of $CD$ is $45$. But $23 \\cdot 45 = 1035$, however $23 \\cdot 46 = 1058$ yields a solution.\nWe need to show that there is no solution with a smaller value of $AB \\times CD$. We only need to consider these possibilities: $AB = 24, 25, 26, 27, 28, 29, 32$, because $32^2 = 1024 < 1058 < 1089 = 33^2$. In each case we keep in mind that we wish to achieve $1000 < AB \\times CD < 1058$.\nFor $AB = 24$ there are no possibilities for $CD$, since $CD$ cannot contain the digit $4$, and $24 \\cdot 39 < 1000$ while $24 \\cdot 50 > 1058$. Therefore no solutions exist in this case.\nFor $AB = 25$, the possibilities for $CD$ are $40$, $41$, $42$. None of these work.\nFor $AB = 26$, the possibilities for $CD$ are $39$, $40$. Neither works.\nFor $AB = 27$, the possibilities for $CD$ are $38$, $39$. Neither works.\nFor $AB = 28$, the possibilities for $CD$ are $36$, $37$. Neither works.\nFor $AB = 29$, the possibilities for $CD$ are $35$, $36$. Neither works.\nFor $AB = 32$, the possibilities for $CD$ are $32$, $33$. Neither works.\nHence $23 \\cdot 46 = 1058$ is the smallest solution.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 33351, "subject": "Mathematics (Multi-modal)", "question": "The equation $AB \\times CD = EFGH$, where each of the letters $A, B, C, D, E, F, G, H$ represents a different digit and the values of $A, C$ and $E$ are all non-zero, has many solutions, e.g. $46 \\times 85 = 3910$. Prove that the largest value of $EFGH$ for which there is a solution, is $72 \\times 95 = 6840$.", "options": [], "answer": "6840", "solution": "We cannot have $B = 0$ or $D = 0$, as this would imply $H = 0$. Similarly, we cannot have $B = 1$ or $D = 1$, as this would imply $H = D$ or $H = B$. For a solution $EFGH$ to be bigger than $6840$ one of the numbers needs to be greater than $86$ because otherwise the product would not exceed $79 \\cdot 86 = 6794$. If we assume $AB < CD$ then $CD$ needs to be one of the following numbers $87, 89, 92, 93, 94, 95, 96, 97, 98$.\n\nFor each of these we can find the possible values of $AB$ which would make the product greater than $6840$, i.e. we work with the inequality\n$$\nCD > AB \\geq \\left\\lfloor \\frac{6840}{CD} \\right\\rfloor .\n$$\nFor $C = 8$ we need to have $AB < 80$. If $CD = 87$ we even need to have $AB < 70$ to avoid repeated digits. But $70 \\cdot 87 < 70 \\cdot 90 = 6300 < 6840$. If $CD = 89$, we get $\\lfloor \\frac{6840}{CD} \\rfloor = 77$ and none of $77, 78, 79$ is possible for $AB$ because of repeated digits.\n\nNote that when $AB < 70$ we have $AB \\times CD < 70 \\cdot 98 < 7000$ and $E = 6$ whenever $AB \\times CD > 6840$. Hence, we need to have $AB \\ge 72$ to avoid repeated digits. Suppose now that $CD \\ge 92$, then $A = 7$ or $A = 8$.\n\nIf $A = 7$, we have $AB \\times CD < 80 \\cdot 98 < 8000$ which implies that $E = 6$ whenever we have a solution with $AB \\times CD > 6840$. This implies\n$$\n72 \\leq AB \\leq \\left\\lfloor \\frac{7000}{CD} \\right\\rfloor.\n$$\nWe now list all possibilities in a table where we have excluded some by keeping in mind $E = 6$ and by checking the last digits.\n\n| CD | 92 | 93 | 94 | 95 | 98 |\n|------------|----|----|----|----|----|\n| 7000/CD | 76 | 75 | 74 | 73 | 71 |\n| AB | 75 | 74 | 73 | 72 | |\n| AB | 74 | | 72 | | |\n\nFor example, when $CD = 92$ we excluded $AB = 73$ because the last digit of the product would be $6$. We excluded $CD = 96$ and $CD = 97$ because $E = 6$ and $A = 7$. We now check that none of these possibilities leads to a solution. Indeed,\n$75 \\cdot 92 = 6900$\n$74 \\cdot 92 = 6808$\n$74 \\cdot 93 = 6882$\n$73 \\cdot 94 = 6862$\n$72 \\cdot 94 = 6768$\ndo not give solutions, except of course for $72 \\cdot 95 = 6840$.\n\nIf $A = 8$, we have $AB \\times CD < 90 \\cdot 98 < 9000$ and $AB \\times CD \\geq 82 \\cdot 92 = 7544$ which implies that $E$ must be $7$. As $F$ can now be at most $6$, we actually have $AB \\times CD < 7700$, hence\n$$\n82 \\leq AB \\leq \\left\\lfloor \\frac{7700}{CD} \\right\\rfloor.\n$$\nBecause $94 \\cdot 82 = 7708$, the only values left for $CD$ are $92$ and $93$. If $CD = 93$, $7700/93 < 83$ and the only possibility is $AB = 82$. But $82 \\cdot 93 = 7626$, no solution. If $CD = 92$, $AB \\neq 82$ and $7700/92 < 84$, hence $AB$ could only be $83$. But $83 \\cdot 92 = 7636$. Thus $6840$ is the largest possible $EFGH$.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 33352, "subject": "Mathematics (Multi-modal)", "question": "Let $k$ be a positive integer and let $x_0, x_1, x_2, \\dots$ be an infinite sequence defined by the relationship\n$$\n\\begin{align*}\nx_0 &= 0 \\\\\nx_1 &= 1 \\\\\nx_{n+1} &= kx_n + x_{n-1} \\quad \\text{for all } n \\ge 1.\n\\end{align*}\n$$\n\na. For the special case $k = 1$, prove that $x_{n-1}x_{n+1}$ is never a perfect square for $n \\ge 2$.\n\nb. For the general case of integers $k \\ge 1$, prove that $x_{n-1}x_{n+1}$ is never a perfect square for $n \\ge 2$.", "options": [], "answer": "Detailed solution", "solution": "We claim that, for all $n \\ge 1$,\n$$\nx_{n-1}x_{n+1} = x_n^2 + (-1)^n. \\qquad (10)\n$$\nBased on this, if $k > 1$ we then have $x_n = kx_{n-1} + x_{n-2} \\ge kx_{n-2} \\ge k \\ge 2$ for $n \\ge 2$, so $x_n^2 \\pm 1$ cannot be a square number. If $k = 1$ then $x_2 = 2$ and $x_n = x_{n-1} + x_{n-2} \\ge x_{n-2} \\ge 2$ for $n \\ge 3$ and the same conclusion holds. With $k = 1$ and $n = 2$ we have $x_{n-1}x_{n+1} = x_1x_3 = 2$ which is not a square number.\n\nTo prove (10) by induction, we first settle the base case $n = 1$:\n$$\nx_0x_2 - x_1^2 = -1 = (-1)^1.\n$$\nWe now suppose that $x_{n-1}x_{n+1} = x_n^2 + (-1)^n$ for some $n \\ge 1$ and use the\nrecurrence relation $x_{n+2} = kx_{n+1} + x_n$ and $kx_n = x_{n+1} - x_{n-1}$ to find\n$$\n\\begin{align*}\nx_n x_{n+2} &= x_n (kx_{n+1} + x_n) \\\\\n&= kx_n x_{n+1} + x_n^2 \\\\\n&= (x_{n+1} - x_{n-1}) x_{n+1} + x_n^2 \\\\\n&= x_{n+1}^2 - x_{n-1}x_{n+1} + x_n^2 \\\\\n&= x_{n+1}^2 - (x_n^2 + (-1)^n) + x_n^2 \\\\\n&= x_{n+1}^2 + (-1)^{n+1}.\n\\end{align*}\n$$\nThis completes the proof by induction.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33353, "subject": "Mathematics (Multi-modal)", "question": "At the start of a game, a positive integer $M$ is fixed and you are given boxes $B_i$ for each $i \\in \\mathbb{N}$, all are empty. You can adjust the number of marbles in the boxes by making a series of moves. The allowable moves are as follows:\n**Move A:** Add a marble to $B_1$ and to $B_2$.\n**Move B:** Add a marble to $B_1$ and to $B_M$.\n**Move C_k:** Take two marbles from $B_k$ for some $k$ and add a marble to $B_{k+1}$.\nMoves can be repeated if you wish. You can do a move of the form $C_k$ for any desired values of $k$, as long as Box $B_k$ contains at least two marbles.\nYou win the game if you reach a stage where one box has a single marble and all other boxes are empty.\nSince the game depends on the number $M$, we call it the $M$-game. As an example, the following sequence of moves allows you to win the 3-game. We also give the number of marbles in the first few boxes after each listed move; later boxes are all empty.\n```\nA: 1 1\nB: 2 1 1\nC₁: 0 2 1\nC₂: 0 0 2\nC₃: 0 0 0 1 (winning position)\n```\nFor which values of $M \\in \\mathbb{N}$ is it possible to win the $M$-game? Explain carefully for each $M$ how you can win or why you can't win.", "options": [], "answer": "You can win the game if and only if M is odd.", "solution": "We denote by $m_{i,j}$ the number of marbles in Box $B_i$ after $j$ moves, and we define the associated sum $s_j$ by\n$$\ns_j := \\sum_{i=1}^{\\infty} m_{i,j} 2^{i-1}.\n$$\nWe have $s_0 = 0$ and each $s_j - s_{j-1}$ is non-negative. In fact, $s_j - s_{j-1}$ equals:\n$$\n\\left. \\begin{array}{c} 3 \\\\ 1+2^{M-1} \\\\ 0 \\end{array} \\right\\} \\quad \\text{if the } j\\text{'th move is} \\quad \\left. \\begin{array}{c} A \\\\ B \\\\ C_k \\end{array} \\right\\} \\qquad (11)\n$$\nIt follows that $s_j > 1$ for all $j > 0$, and that a necessary condition to win after $j$ steps is that $s_j$ is a power of 2.\nSuppose $M$ is even. Then, $1+2^{M-1}$ is a multiple of 3, so it follows inductively from (11) that $s_j$ is divisible by 3 for all $j$. We deduce that $s_j$ is never a power of 2. Thus, we cannot win the $M$-game if $M$ is even.\nSuppose instead that $M$ is odd. Then $1 + 2^{M-1} \\equiv 2 \\pmod 3$. If we first do Move $B$ and then repeatedly do Move $A$, the numbers $s_j$ take on all values $v \\ge v_0 := 1 + 2^{M-1}$ that are congruent to 2 (mod 3). We eventually reach a power of 2; in fact, using these moves, $s_j$ hits each odd power of 2 exceeding $v_0$.\nSuppose that\n$$\ns_j = \\sum_{i=1}^{\\infty} m_{i,j} 2^{i-1}\n$$\nequals $2^P$ for some $P \\in \\mathbb{N}$. All our subsequent moves will be $C$-moves (meaning moves of the form $C_k$) and we continue until we can no longer perform a $C$-move. Each $C$-move lowers the total number of marbles by 1, so eventually no further $C$-moves are possible. Note though that the sum stays unchanged according to (11), so it is still $2^P$.\nSuppose that after $J \\ge j$ steps, we can go no further. This implies that $m_{i,J} \\le 1$ for all $i$. Let $N$ be the largest value of $i$ such that $m_{i,J} = 1$, and suppose we are not in a winning position i.e. $m_{i,J} = 1$ for at least one value of $i < N$. Then\n$$\n2^{N-1} < s_J = \\sum_{i=1}^{N} m_{i,J} 2^{i-1} \\le \\sum_{i=1}^{N} 2^{i-1} = 2^N - 1.\n$$\nThis contradicts the assumption that $s_J$ is a power of 2. We conclude that the sequence of $C$-moves can end only when we reach a winning position.\nWe have shown that we can win if and only if $M$ is odd, and we have an algorithm for winning when it is possible.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33354, "subject": "Mathematics (Multi-modal)", "question": "A convex non-regular octagon $A B C D E F G H$ is inscribed in a circle. Prove that $\\angle A + \\angle C + \\angle E + \\angle G = \\angle B + \\angle D + \\angle F + \\angle H$.", "options": [], "answer": "Detailed solution", "solution": "Connect $C$ to $F$ and $B$ to $G$. This produces three cyclic quadrilaterals $ABGH$, $BCFG$, and $CDEF$.\n![](attached_image_1.png)\nBecause opposite angles in a cyclic quadrilateral add to $180^\\circ$, we see that $\\angle A + \\angle C + \\angle E + \\angle G = 3 \\cdot 180^\\circ$ which is half of the interior angle sum of an octagon. Therefore, $\\angle A + \\angle C + \\angle E + \\angle G = \\angle B + \\angle D + \\angle F + \\angle H$.\nLet $O$ be the centre of the circle and join $O$ to the vertices of the octagon. This way we obtain eight isosceles triangles.\n![](attached_image_2.png)\nThe connection from $O$ to a vertex splits the internal angles of the octagon at this vertex into two angles. For example, $\\angle BAH = \\angle BAO + \\angle OAH$. These two angles are base angles of two different isosceles triangles. The other base angle of each of these isosceles triangles contributes to the internal angle of a neighbouring vertex. For example, $\\angle OBA$ contributes to $\\angle B$ and $\\angle OHA$ contributes to $\\angle H$. Therefore, the sum of the interior angles at $A, C, E, G$ is the same as the sum of every second interior angle starting at $H$, i.e. $\\angle A + \\angle C + \\angle E + \\angle G = \\angle B + \\angle D + \\angle F + \\angle H$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33355, "subject": "Mathematics (Multi-modal)", "question": "Prove that $\\sum_{m=1}^{M} \\frac{1}{m(m+1)} \\sum_{k=1}^{m+1} \\frac{1}{k} < 2$.", "options": [], "answer": "Detailed solution", "solution": "Let $H_n = \\sum_{k=1}^{n} \\frac{1}{k}$, then $\\frac{H_{m+1} - H_m}{m} = \\frac{1}{m(m+1)} = \\frac{1}{m} - \\frac{1}{m+1}$, and\n$$\n\\begin{align*}\n\\sum_{m=1}^{M} \\frac{1}{m(m+1)} \\sum_{k=1}^{m+1} \\frac{1}{k} &= \\sum_{m=1}^{M} \\frac{1}{m(m+1)} H_{m+1} \\\\\n&= \\sum_{m=1}^{M} \\left( \\frac{1}{m} - \\frac{1}{m+1} \\right) H_{m+1} \\\\\n&= \\sum_{m=1}^{M} \\frac{1}{m} H_{m+1} - \\sum_{m=1}^{M} \\frac{1}{m+1} H_{m+1} \\\\\n&= H_2 + \\sum_{m=2}^{M} \\frac{1}{m} H_{m+1} - \\sum_{m=2}^{M+1} \\frac{1}{m} H_m \\\\\n&= \\frac{3}{2} + \\sum_{m=2}^{M} \\frac{1}{m} (H_{m+1} - H_m) - \\frac{1}{M+1} H_{M+1} \\\\\n&< \\frac{3}{2} + \\sum_{m=2}^{M} \\left( \\frac{1}{m} - \\frac{1}{m+1} \\right) = 2 - \\frac{1}{M+1} < 2.\n\\end{align*}\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33356, "subject": "Mathematics (Multi-modal)", "question": "Let $a$, $b$, $c$ be positive integers. Show that\n$$\n\\left( 1 + \\frac{a-c}{b} \\sum_{i=1}^{b} \\frac{1}{c+i} \\right)^{-b} \\le \\frac{a!\\,(b+c)!}{(a+b)!\\,c!} \\le \\left( 1 + \\frac{c-a}{b} \\sum_{i=1}^{b} \\frac{1}{a+i} \\right)^{b}.\n$$", "options": [], "answer": "Detailed solution", "solution": "The fraction in the middle can also be written this way\n$$\nx = \\frac{a!\\,(b+c)!}{(a+b)!\\,c!} = \\frac{(c+1)(c+2)\\cdots(c+b)}{(a+1)(a+2)\\cdots(a+b)} = \\prod_{i=1}^{b} \\frac{c+i}{a+i}.\n$$\nBecause $1 + \\frac{c-a}{a+i} = \\frac{c+i}{a+i}$, we have\n$$\n1 + \\frac{c-a}{b} \\sum_{i=1}^{b} \\frac{1}{a+i} = \\frac{1}{b} \\sum_{i=1}^{b} \\left( 1 + \\frac{c-a}{a+i} \\right) = \\frac{1}{b} \\sum_{i=1}^{b} \\frac{c+i}{a+i}.\n$$\nThe AM-GM inequality gives\n$$\n\\sqrt[b]{\\prod_{i=1}^{b} \\frac{c+i}{a+i}} \\le \\frac{1}{b} \\sum_{i=1}^{b} \\frac{c+i}{a+i} \\quad \\text{ i.e. } \\quad \\prod_{i=1}^{b} \\frac{c+i}{a+i} \\le \\left( \\frac{1}{b} \\sum_{i=1}^{b} \\frac{c+i}{a+i} \\right)^{b}.\n$$\nThis establishes the inequality on the right. Swapping the roles of $a$ and $c$, then taking the reciprocal, gives the left hand inequality.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33357, "subject": "Mathematics (Multi-modal)", "question": "Let $N$ be a positive integer, $L$ and $x_i$ ($1 \\le i \\le N$) real numbers such that\n$$\n0 \\le x_1 < x_2 < x_3 < \\dots < x_N \\le L.\n$$\nWhat is the least value of $N$ which ensures that at least 10 successive numbers $x_i$ all lie within a distance 1 of each other (i.e. we want $x_i, \\dots, x_{i+9}$ so that $x_{i+9} \\le x_i + 1$)? Your answer should give $N$ as a function of $L$ and be valid for all $L > 0$.", "options": [], "answer": "9*ceil(L) + 1", "solution": "Let $M = \\lfloor L \\rfloor$ be the least integer greater than or equal to $L$. We claim that the least value of $N$ is $9M + 1$.\n\nFirst, we show that $9M + 1$ points are enough. Partition $[0, L]$ into subintervals $I_1, \\dots, I_M$, where\n$$\n\\begin{aligned}\nI_k &= [k-1, k), \\quad 1 \\le k < M \\\\\nI_M &= [M-1, L].\n\\end{aligned}\n$$\nThese intervals are of length at most $1$ and, given at least $9M + 1$ distinct points in $[0, L]$, the average number of points in each of them is at least $(9M + 1)/M > 9$, and so one such subinterval must contain strictly more than $9$ points $x_i$, as required.\n\nFor the converse direction, we first note that $a := (L-(M-1))/M$ is positive. Define the subintervals of length $a$\n$$\nJ_k = [(k-1)(1+a), (k-1)(1+a)+a], \\quad 1 \\le k \\le M.\n$$\nSince\n$$\n(M-1)(1+a) + a = M - 1 + Ma = L,\n$$\nevery $J_k$ is a subinterval of $[0, M]$. By picking nine distinct points in each $J_k$, we claim that we have a set of $9M$ points such that there are not $10$ of these points all within a distance $1$ of each other. To justify the claim, it suffices to note that if $x \\in J_k$ and $y \\in J_{k+1}$ then $y-x > k(1+a) - ((k-1)(1+a)+a) = 1$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33358, "subject": "Mathematics (Multi-modal)", "question": "Consider the points $B$, $N$, $M$, $C$ in this order on a line, such that\n$$\n|BC| = 2|BM| = 4|BN|.\n$$\nThe perpendiculars on $BC$ raised from $N$ and $M$ meet a line through $C$ at the points $A$ and $E$, respectively. Let $D$ be the intersection of $AM$ and $BE$. Prove the following statements:\n\na. Line $AC$ is tangent to the circumcircle of $\\triangle ADB$.\n\nb. The point $D$ is the midpoint of $AM$.", "options": [], "answer": "Detailed solution", "solution": "Because $AN$ is the perpendicular bisector of $BM$, triangle $ABM$ is isosceles with $\\angle ABM = \\angle AMB$. Similarly, $\\angle ECB = \\angle EBC$ in the isosceles triangle $EBC$. We have $\\angle AMB = \\angle MAC + \\angle ECB$ (external angle) and $\\angle ABM = \\angle ABE + \\angle EBC$.\n\n![](attached_image_1.png)\n\nCombining these equalities, we obtain\n$$\n\\angle ABE + \\angle EBC = \\angle MAC + \\angle ECB = \\angle MAC + \\angle EBC,\n$$\nhence $\\angle ABE = \\angle MAC$ which means that $AC$ is tangent to the circumcircle of $\\triangle ADB$. This proves (a).\n\nTo prove (b) we note that $\\triangle ACB \\sim \\triangle DBM$ since $\\angle ABM = \\angle AMB$ and $\\angle ECB = \\angle EBC$. Consequently,\n$$\n\\frac{|DM|}{|AM|} = \\frac{|DM|}{|AB|} = \\frac{|BM|}{|CB|} = \\frac{1}{2}\n$$\nwhich means that $D$ is the midpoint of $AM$.\nLet $G$ be the intersection of $AN$ and $BE$. Since $GN \\parallel EM$, $|EM|/|GN| = |BM|/|BN| = 2$. On the other hand, as $EM$ and $AN$ are parallel, we have\n$$\n\\frac{|AN|}{|EM|} = \\frac{|CN|}{|CM|} = \\frac{3}{2},\n$$\nhence $|AN| = \\frac{3}{2}|EM| = 3|GN|$. This shows that $G$ is the centroid of the isosceles triangle $ABM$ and $BG$ intersects $AM$ at its midpoint. This proves part (b).\n\n![](attached_image_2.png)\n\nFrom our calculation above we get $|AG| = \\frac{2}{3}|AN| = |EM|$ thus $AGME$ is a parallelogram. This implies that $\\angle EAD = \\angle AMG$. From the symmetry of the isosceles triangle $ABM$ we obtain $\\angle AMG = \\angle ABD$, hence $\\angle EAD = \\angle ABD$ and $AC$ is tangent to the circumcircle of triangle $ADB$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33359, "subject": "Mathematics (Multi-modal)", "question": "Prove that\n$$\n\\prod_{k=1}^{n-1} \\sin \\frac{k\\pi}{n} = \\frac{n}{2^{n-1}}, \\quad \\text{for } n = 2, 3, \\dots\n$$", "options": [], "answer": "Detailed solution", "solution": "Note that for any complex number $\\zeta$ with $|\\zeta| = 1$ we have\n$$\n|1 - \\zeta|^2 = (1 - \\zeta)(1 - \\bar{\\zeta}) = 2 - (\\zeta + \\bar{\\zeta}) = 2(1 - \\operatorname{Re}(\\zeta)).\n$$\nIf $\\zeta = e^{2i\\theta} = \\cos(2\\theta) + i\\sin(2\\theta)$, we can use $1 - \\cos(2\\theta) = 2\\sin^2\\theta$ to obtain\n$$\n|1 - e^{2i\\theta}|^2 = 4 \\sin^2 \\theta.\n$$\nTherefore,\n$$\n4^{n-1} \\left( \\prod_{k=1}^{n-1} \\sin \\frac{k\\pi}{n} \\right)^2 = \\prod_{k=1}^{n-1} \\left( 4 \\sin^2 \\frac{k\\pi}{n} \\right) = \\prod_{k=1}^{n-1} \\left| 1 - e^{\\frac{2ik\\pi}{n}} \\right|^2.\n$$\nNow, the $n$ numbers $e^{\\frac{2ik\\pi}{n}}, k = 0, 1, \\dots, n-1$ are precisely the $n$th roots of unity, and so\n$$\nz^n - 1 = (z - 1) \\prod_{k=1}^{n-1} \\left(z - e^{\\frac{2ik\\pi}{n}}\\right).\n$$\nHence, for all $z$,\n$$\nz^{n-1} + \\dots + z + 1 = \\prod_{k=1}^{n-1} \\left(z - e^{\\frac{2ik\\pi}{n}}\\right),\n$$\nand so, letting $z = 1$,\n$$\nn = \\prod_{k=1}^{n-1} \\left(1 - e^{\\frac{2ik\\pi}{n}}\\right), \\quad \\text{which gives} \\quad n^2 = \\prod_{k=1}^{n-1} \\left|1 - e^{\\frac{2ik\\pi}{n}}\\right|^2.\n$$\nConsequently,\n$$\n2^{2(n-1)} \\left( \\prod_{k=1}^{n-1} \\sin \\frac{k\\pi}{n} \\right)^2 = n^2,\n$$\nfrom which it follows that\n$$\n\\prod_{k=1}^{n-1} \\sin \\frac{k\\pi}{n} = \\frac{n}{2^{n-1}},\n$$\nsince $\\sin \\frac{k\\pi}{n} > 0$ for $k = 1, 2, \\dots, n-1$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33360, "subject": "Mathematics (Multi-modal)", "question": "Let $A$, $B$, $C$ be three points on a circle of centre $O$. The perpendicular line from $O$ to $BC$ intersects line $AC$ at $P$, and the perpendicular line from $O$ to $AC$ intersects line $BC$ at $Q$. Let $L$ be the midpoint of $OC$ and $K$ the midpoint of $PQ$.\nProve that $KL$ is perpendicular on $AB$.", "options": [], "answer": "Detailed solution", "solution": "The quadrilateral *CNOM* is cyclic because $\\angle CNO = 90^\\circ$ and $\\angle CMO = 90^\\circ$, and $OC$ is a diameter and $L$ the centre of its circumcircle.\n![](attached_image_1.png)\nThe quadrilateral *MNPQ* is cyclic as well since $\\angle PNQ = \\angle PMQ = 90^\\circ$, and $PQ$ is a diameter and $K$ the centre of its circumcircle. The line *MN* is the radical axis of these two circles and so is perpendicular to the line *KL* which connects the centres of the circles. Because *M* and *N* are midpoints of sides of $\\triangle ABC$, $MN \\parallel AB$, hence $AB \\perp KL$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33361, "subject": "Mathematics (Multi-modal)", "question": "Let $\\mathbb{N}$ denote the strictly positive integers. A function $f : \\mathbb{N} \\to \\mathbb{N}$ has the following properties which hold for all $n \\in \\mathbb{N}$:\n(a) $f(n) < f(n + 1)$;\n(b) $f(f(f(n))) = 4n$.\nFind $f(2022)$.", "options": [], "answer": "3046", "solution": "**Solution 1.** We first prove inductively that the following equations hold for all $i \\in \\mathbb{N}$:\n$$\n\\begin{aligned}\nf(1 \\cdot 4^{i-1}) &= 2 \\cdot 4^{i-1}, \\\\\nf(2 \\cdot 4^{i-1}) &= 3 \\cdot 4^{i-1}, \\\\\nf(3 \\cdot 4^{i-1}) &= 4 \\cdot 4^{i-1} = 4^i.\n\\end{aligned}\n$$\nThe base case follows easily from the string of inequalities\n$$\n1 < f(1) < f(f(1)) < f(f(f(1))) = 4.\n$$\nThe inductive step then follows from the assumed identity for $f(f(f(n)))$.\n\nLet $A = 1 \\cdot 4^{i-1}$ for some $i \\in \\mathbb{N}$, let $S$ be the set of integers between $A$ and $2A$ inclusive, and let $T$ be the set of integers between $2A$ and $3A$ inclusive. Since $f$ maps the endpoints of $S$ to the endpoints of $T$, the strictly increasing condition for $f$ implies that\n* $f(S) \\subset T$, and\n* $S$ and $f(S)$ have the same cardinality.\nBut $S$ and $T$ clearly have the same cardinality, so we must have $f(S) = T$, and monotonicity now implies that $f(A + k) = 2A + k$ for all $1 \\le k \\le 4^{i-1}$. In the same way, we see that $f(2A+k) = 3A+k$ for all $1 \\le k \\le 4^{i-1}$. Finally, $f(3A+k) = f(f(f(A+k))) = 4A+4k$ for all $1 \\le k \\le 4^{i-1}$. We now have a formula for $f(n)$ for all $n$.\nWriting $2022 = 1024 + 998 = 4^5 + 998$, we see that\n$$\nf(2022) = 2 \\cdot 1024 + 998 = 3046.\n$$\n\n\n**Solution 2.** Applying $f$ to $f(f(f(n))) = 4n$ and then using the same equation with $n$ replaced by $f(n)$ we get\n$$\nf(4n) = f(f(f(f(n)))) = 4f(n)\n$$\nfor all $n \\in \\mathbb{N}$, and hence\n$$\nf(4^n n) = 4f(4^{n-1} n) = \\dots = 4^n f(n).\n$$\nWe know $f(1) = 2$, $f(2) = 3$, $f(3) = 4$ since the function is increasing with\n$$\n1 < f(1) < f(f(1)) < f(f(f(1))) = 4.\n$$\nHence $f(4^i) = 4^i f(1) = 2 \\cdot 4^i$ and $f(2 \\cdot 4^i) = 4^i f(2) = 3 \\cdot 4^i$ so\n$$\n4^i \\le \\sum_{x=4^i}^{2 \\cdot 4^i - 1} [f(x+1) - f(x)] = f(2 \\cdot 4^i) - f(4^i) = 4^i.\n$$\nThus $f(x+1) - f(x) = 1$ for each $x$ with $4^i \\le x \\le 2 \\cdot 4^i - 1$. It follows that $f(4^i + k) = f(4^i) + k = 2 \\cdot 4^i + k$ for $1 \\le k \\le 4^i$ and hence $f(2022) = 2 \\cdot 1024 + 998 = 3046$ as above.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33362, "subject": "Mathematics (Multi-modal)", "question": "Let $n \\ge 5$ be an odd number and $r$ an integer such that $1 \\le r \\le (n-1)/2$. In a sports tournament, $n$ players take part in a series of contests. Each contest involves $2r + 1$ players, and the scores obtained by the players are the numbers\n$$\n-r, -(r-1), \\dots, -1, 0, 1, \\dots, r-1, r\n$$\nin some order. Each possible subset of $2r + 1$ players takes part together in exactly one contest. Let the final score of player $i$ be $S_i$, for each $i = 1, 2, \\dots, n$. Define $N$ to be the smallest difference between the final scores of two players, i.e.,\n$$\nN = \\min_{i 15$), nor can a row have exactly two multiples of $3$ (the sum would not be divisible by $3$). Thus, each row has exactly one multiple of $3$. It follows that each row has numbers in all mod-$3$ congruence classes.\n\nGiven these constraints and ignoring the order of the elements, there are just two possibilities for the row containing $1$ ($\\{1, 5, 9\\}$ or $\\{1, 6, 8\\}$) and for the row containing $2$ ($\\{2, 4, 9\\}$ or $\\{2, 6, 7\\}$). Because of overlapping elements, each possible row containing $1$ is compatible with only one possible row containing $2$. Once these two rows are chosen, the final row is also known, so there are only two ways of allocating the elements to rows.\n\nThese three rows can be put in any order, e.g. first the row with $1$, then the one with $2$, etc., giving $3! = 6$ possible re-orderings of rows. Internal to each row, we can re-order the elements in $3!$ ways. Thus, the total number of row-balanced squares is $6^4 \\cdot 2 = 2^5 \\cdot 3^4$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33366, "subject": "Mathematics (Multi-modal)", "question": "Prove that the sum of the elements in any finite subset of the set\n$$\n\\left\\{ \\frac{1}{mn(m+n+1)} : m, n = 1, 2, 3, \\dots \\right\\}\n$$\nis less than 2.", "options": [], "answer": "Detailed solution", "solution": "We will use the following lemma three times.\n**Lemma.** For all $k \\ge 1$ and all $1 \\le M \\le N$ we have\n$$\n\\sum_{n=M}^{N} \\frac{1}{n(n+k)} < \\frac{1}{k} \\sum_{n=M}^{M+k-1} \\frac{1}{n} .\n$$\n*Proof.* Using $\\frac{1}{n(n+k)} = \\frac{1}{k} \\left( \\frac{1}{n} - \\frac{1}{n+k} \\right)$ we see that\n$$\n\\begin{align*}\n\\sum_{n=M}^{N} \\frac{1}{n(n+k)} &= \\frac{1}{k} \\sum_{n=M}^{N} \\left( \\frac{1}{n} - \\frac{1}{n+k} \\right) \\\\\n&= \\frac{1}{k} \\sum_{n=M}^{M+k-1} \\frac{1}{n} - \\frac{1}{k} \\sum_{n=N+1}^{N+k} \\frac{1}{n} \\\\\n&< \\frac{1}{k} \\sum_{n=M}^{M+k-1} \\frac{1}{n} .\n\\end{align*}\n$$\nIf $M \\le N-k+1$ the terms $1/n$ for $M+k \\le n \\le N$ cancel out as they appear in both sums. When $N < M+k-1$, we have introduced extra terms which appear in both sums. In this case, the sum on the right hand side would only need to go up to $n=N$, but we do not need this stronger inequality. $\\square$\n\nWe will use this lemma in two special cases:\n$$\nk = 1 \\qquad \\sum_{n=M}^{N} \\frac{1}{n(n+1)} < \\frac{1}{M} \\qquad (17)\n$$\n$$\nM = 1 \\qquad \\sum_{n=1}^{N} \\frac{1}{n(n+k)} < \\frac{1}{k} \\sum_{n=1}^{k} \\frac{1}{n} \\qquad (18)\n$$\n\nLet now $S$ be a sum of a finite number of terms of the form $\\frac{1}{mn(m+n+1)}$.\nLet $N$ be such that no term with $n > N$ or with $m > N$ appears in $S$. For fixed $m$ we obtain from (18) with $k = m + 1$\n$$\n\\sum_{n=1}^{N} \\frac{1}{mn(m+n+1)} < \\frac{1}{m(m+1)} \\sum_{n=1}^{m+1} \\frac{1}{n} .\n$$\nHence\n$$\nS < \\sum_{m=1}^{N} \\frac{1}{m(m+1)} \\sum_{n=1}^{m+1} \\frac{1}{n} .\n$$\n\nInstead of summing by row, we can first add along the columns. This gives\n$$\n\\sum_{m=1}^{N} \\frac{1}{m(m+1)} \\sum_{n=1}^{m+1} \\frac{1}{n} = \\sum_{m=1}^{N} \\frac{1}{m(m+1)} + \\sum_{n=2}^{N+1} \\frac{1}{n} \\sum_{m=n-1}^{N} \\frac{1}{m(m+1)}.\n$$\nFrom (17) with $M = 1$ and with $M = n - 1$ we obtain\n$$\n\\sum_{m=1}^{N} \\frac{1}{m(m+1)} < 1 \\quad \\text{and} \\quad \\sum_{m=n-1}^{N} \\frac{1}{m(m+1)} < \\frac{1}{n-1}.\n$$\nHence, $S < 1 + \\sum_{n=2}^{N+1} \\frac{1}{n(n-1)} = 1 + \\sum_{n=1}^{N} \\frac{1}{n(n+1)} < 2$ by (17) with $M = 1$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33367, "subject": "Mathematics (Multi-modal)", "question": "Let $\\triangle ABC$ be a triangle with circumcentre $O$. The perpendicular line from $O$ to $BC$ intersects line $BC$ at $M$ and line $AC$ at $P$, and the perpendicular line from $O$ to $AC$ intersects line $AC$ at $N$ and line $BC$ at $Q$. Let $D$ be the intersection point of lines $PQ$ and $MN$. Construct the parallelogram $PCQJ$. Prove the following:\n\na) The points $A, B, O, P, Q, J$ are all on the same circle.\n\nb) Line $OD$ is perpendicular to line $CJ$.", "options": [], "answer": "Detailed solution", "solution": "(a) Because $OP$ is the perpendicular bisector of $BC$, $\\triangle PBC$ is isosceles with symmetry axis $PO$. Thus $|PB| = |PC|$ and $\\angle PBC = \\angle PCB = \\angle C$. Hence $\\angle APB = 2\\angle C$ (external angle).\nSimilarly, $OQ$ is the perpendicular bisector of $AC$ hence $\\triangle QAC$ is isosceles with symmetry axis $QO$. Thus $|QA| = |QC|$ and $\\angle QAC = \\angle QCA = \\angle C$. Hence $\\angle AQB = 2\\angle C$ (external angle).\n\n![](attached_image_1.png)\n\nThis implies that quadrilateral $APQB$ is cyclic with $\\angle APB = \\angle AQB$. Because $\\angle AOB = 2\\angle C$ by the Central Angle Theorem, the point $O$ lies on this circle as well, i.e. $A, P, O, Q, B$ are all on the same circle.\nTo show that $J$ is on this circle too, we consider the parallelogram $CPJQ$.\nBecause $JP \\parallel BC$ and $PO \\perp BC$, we have $\\angle OPJ = 90^\\circ$. Similarly, using $JQ \\parallel AC$ and $QO \\perp AC$ we obtain $\\angle OQJ = 90^\\circ$. This implies that the four points $P, O, Q, J$ are on the circle with diameter $OJ$. Hence, $A, B, O, P, Q, J$ are all on the same circle.\n\n\n(b) The quadrilateral $CNOM$ is cyclic because $\\angle CNO = 90^\\circ$ and $\\angle CMO = 90^\\circ$, and $OC$ is a diameter of its circumcircle. The quadrilateral $MNPQ$ is cyclic as well since $\\angle PNQ = \\angle PMQ = 90^\\circ$. The line $MN$ is the radical axis of the circumcircles of $CNOM$ and $MNPQ$.\n\n![](attached_image_2.png)\n\nOn the other hand, $PQ$ is the radical axis of the circumcircles of $APOQB$ and $MNPQ$. Hence the point $D$ is the radical centre of the three circles mentioned above. As the circumcircles of $ABPOQ$ and $CMON$ have the point $O$ in common, it follows that $OD$ is the radical axis of these two circles and so is perpendicular to the line that connects the centres of them. These circles have diameters $OJ$ and $OC$, hence the centre line connects the midpoints of $OJ$ and $OC$ and therefore is parallel to $CJ$. Hence $OD \\perp CJ$.\n\n\nAlternative proof of (b).\n\nUsing the short notation $\\angle BAC = \\angle A$, $\\angle ABC = \\angle B$, $\\angle BCA = \\angle C$, we have $\\angle CNM = \\angle A$ since $NM \\parallel AB$. Because $CNOM$ is cyclic due to the right angles at $M$ and $N$, we have $\\angle MOQ = \\angle C$. Also, $\\angle CQP = \\angle A$ and $\\angle CPQ = \\angle B$ as $APQB$ is cyclic by part (a).\n\nLet $A'$ be the second intersection point of the line $PM$ and the circumcircle of triangle $MQD$. Then looking at the cyclic quadrilateral $A'MQD$ we see that $\\angle PA'D = \\angle CQP = \\angle A$ and $\\angle QDA' = \\angle QMP = 90^\\circ$.\n\nExtend $A'D$ to intersect $QN$ at $B'$. Note that triangles $OA'B'$ and $CQP$ are similar, in particular $\\angle A'B'O = \\angle B$.\n\nSince $PNDB'$ is cyclic due to the right angles at $N$ and $D$, we have $\\angle PB'N = \\angle PDN = \\angle CNM - \\angle CPQ = \\angle A - \\angle B$ where the last equality comes from an external angle of triangle $DNP$. Therefore $\\angle PB'D = \\angle A'B'O + \\angle PB'N = \\angle B + \\angle A - \\angle B = \\angle A$. Thus the triangle $A'PB'$ is isosceles, and because $PD$ is perpendicular to $A'B'$, $D$ is the midpoint of $A'B'$.\n\n![](attached_image_3.png)\n\nLet $D'$ be the intersection of $CJ$ and $PQ$, and note that $D'$ is the midpoint of $PQ$ since $PCQJ$ is a parallelogram.\nFrom the angle equalities established above we see that triangle $QPC$ (with $D'$ as midpoint of $QP$) is similar to triangle $A'B'O$ (with $D$ as midpoint of $A'B'$). Thus $\\angle QCD' = \\angle A'OD$, and so, since $OA' \\perp CQ$, $OD$ is perpendicular to $CD'$, i.e. to $CJ$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33368, "subject": "Mathematics (Multi-modal)", "question": "Suppose $a$, $b$, $c$ are real numbers such that $a + b + c = 1$. Prove that\n$$\na^3 + b^3 + c^3 + 3(1-a)(1-b)(1-c) = 1.\n$$", "options": [], "answer": "Detailed solution", "solution": "$$\n\\begin{align*} \na^3 + b^3 + c^3 - 3abc &= (a+b+c)(a^2+b^2+c^2-ab-bc-ca) \\\n&= a^2 + b^2 + c^2 - ab - bc - ca \\\n&= (a+b+c)^2 - 3(ab+bc+ca) \\\n&= 1 - 3(ab+bc+ca), \n\\end{align*}\n$$\nand\n$$\n\\begin{align*} \n(1-a)(1-b)(1-c) &= 1 - (a+b+c) + (ab+bc+ca) - abc \\\n&= ab + bc + ca - abc. \n\\end{align*}\n$$\nHence\n$$\n\\begin{align*} \na^3 + b^3 + c^3 &= 1 + 3abc - 3(ab + bc + ca) \\\n&= 1 - 3(ab + bc + ca - abc) \\\n&= 1 - 3(1-a)(1-b)(1-c), \n\\end{align*}\n$$\nas claimed.\n$$1 = (a+b+c)^3 = a^3+b^3+c^3+3(a^2b+ab^2+b^2c+bc^2+c^2a+ca^2)+6abc. \\quad (1)$$\nNext we use $a+b+c = 1$ to get $1-a = b+c$, $1-b = c+a$, $1-c = a+b$, which gives\n$$\n\\begin{align*}\na^3 + b^3 + c^3 + 3(1-a)(1-b)(1-c) &= a^3 + b^3 + c^3 + 3(a+b)(b+c)(c+a) \\\\\n&= a^3 + b^3 + c^3 + 3(a^2b + ab^2 + b^2c + bc^2 + c^2a + ca^2) + 6abc. \\quad (2)\n\\end{align*}\n$$\nFinally, we note that the expressions on the right-hand sides of (1) and (2) are the same. This completes the proof.\n$$\n\\begin{align*}\n& a^3 + b^3 + c^3 + 3(1-a)(1-b)(1-c) \\\\\n&= a^3 + b^3 + (1-a-b)^3 + 3(1-a)(1-b)(a+b) \\\\\n&= a^3 + b^3 + (1-a)^3 - 3b(1-a)^2 + 3b^2(1-a) - b^3 + 3(1-a)(1-b)(a+b) \\\\\n&= a^3 + (1-a) \\left( (1-a)^2 - 3b(1-a) + 3b^2 + 3(1-b)(a+b) \\right) \\\\\n&= a^3 + (1-a) \\left( 1 - 2a + a^2 - 3b + 3ab + 3b^2 + 3a + 3b - 3ab - 3b^2 \\right) \\\\\n&= a^3 + (1-a) \\left( 1 + a + a^2 \\right) = a^3 + 1 - a^3 = 1.\n\\end{align*}\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33369, "subject": "Mathematics (Multi-modal)", "question": "For $n \\ge 2$, an *n-spinner* is a “fidget spinner” with $n$ identical arms and an angle of $360/n$ degrees between pairs of adjacent arms. For instance, a $3$-spinner and a $4$-spinner are illustrated below:\n![](attached_image_1.png)\n\nWe wish to place each of the numbers $1, \\ldots, nm$ on the arms of an $n$-spinner, with $m$ numbers placed on each arm, all equally spaced in a row. Some possibilities for $(n, m) = (4, 2)$ are illustrated below.\n![](attached_image_2.png)\n\nSince the first two can be obtained by rotation from each other, they are considered to be the same, and so we count the above as only two different placements. (The third is genuinely different because the “5” is closer to the middle than it is in the other two.) Counting in this manner, how many different placements do we obtain for given $n \\ge 2$ and $m \\ge 1$?", "options": [], "answer": "m(nm - 1)! = (nm)!/n", "solution": "First, place the spinner so that the arm containing the number $1$ is at the top. There, it can be put in any of the $m$ positions on that arm. This orients the $n$-spinner and breaks the symmetry. The other $nm - 1$ numbers can now be placed in any other positions, so the answer is $m(nm - 1)!$.\n\nAlternatively, we place all numbers as we wish, giving $(nm)!$ permutations. We then divide by $n$ since each placement can be rotated to $n$ different equivalent placements. Since $m(nm - 1)! = (nm)!/n$, the answers are consistent.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33370, "subject": "Mathematics (Multi-modal)", "question": "Suppose $x_1, x_2, \\dots, x_n$ are complex numbers. Prove that\n$$\n\\sum_{i,j=1}^{n} |x_i - x_j|^2 \\le \\sum_{i,j=1}^{n} |x_i + x_j|^2,\n$$\nwith equality iff $x_1 + x_2 + \\dots + x_n = 0$.", "options": [], "answer": "Detailed solution", "solution": "Note that $|a+b|^2 - |a-b|^2 = 4 \\operatorname{Re}(\\bar{a}b)$ for any complex numbers $a, b$. Hence,\n$$\n\\begin{align*}\n\\sum_{i,j=1}^{n} |x_i + x_j|^2 - \\sum_{i,j=1}^{n} |x_i - x_j|^2 &= 4 \\sum_{i,j=1}^{n} \\operatorname{Re} (\\bar{x}_i x_j) = 4 \\operatorname{Re} \\sum_{i,j=1}^{n} \\bar{x}_i x_j \\\\\n&= 4 \\operatorname{Re} \\sum_{i=1}^{n} \\bar{x}_i \\sum_{j=1}^{n} x_j = 4 \\left| \\sum_{i=1}^{n} x_i \\right|^2 \\geq 0,\n\\end{align*}\n$$\nand equality holds iff $\\sum_{i=1}^{n} x_i = 0$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33371, "subject": "Mathematics (Multi-modal)", "question": "Let $ABCD$ be a square and let $\\Gamma$ denote the circle with diameter $CD$. A tangent line is drawn to the circle $\\Gamma$ from $B$, meeting the circle $\\Gamma$ at $E$ and intersecting the segment $AD$ at $K$.\nProve that $|AD| = 4|KD|$.", "options": [], "answer": "Detailed solution", "solution": "Let $O$ be the midpoint of $CD$, the centre of circle $\\Gamma$. Let $F$ be the point where line $CE$ meets $AD$, and let $CE$ meet $OB$ at $M$.\n![](attached_image_1.png)\nAngle $\\angle DEC$ is standing on the diameter $CD$ of $\\Gamma$, hence is a right angle. Therefore, triangle $DEF$ has a right angle at $E$. The two tangents $KD$ and $KE$ of $\\Gamma$ have the same length: $|KD| = |KE|$. This implies that $K$ is on the perpendicular bisector of $DE$ and so must be the circumcentre of triangle $DEF$. Therefore, $K$ is the midpoint of $DF$.\nBecause $BC$ and $BE$ are tangents to $\\Gamma$, we have $|BE| = |BC|$. Hence $\\triangle BEM \\equiv \\triangle BCM$, with $\\angle BME = \\angle BMC = 90^\\circ$. Since $|BC| = |CD|$ and $\\angle MBC = 90^\\circ - \\angle BCM = \\angle FCD$ we get $\\triangle FCD \\equiv \\triangle OBC$. Thus $|FD| = |OC| = \\frac{1}{2}|AD|$ and $|DK| = \\frac{1}{2}|FD| = \\frac{1}{4}|AD|$.\nLet $KO$ meet $DE$ at $N$ and let $BO$ meet $EC$ at $M$.\nThe right angled triangles $BOE$ and $BOC$ are congruent since they share the hypotenuse and $|OE| = |OC|$ (radii). As a consequence, $\\triangle EMB \\equiv \\triangle CMB$ by SAS. This shows that $OB$ is the perpendicular bisector of $EC$. Similarly, $OK$ is the perpendicular bisector of $DE$. Hence $EMON$ is a rectangle and\n$$\n\\triangle KDO \\sim \\triangle DNO \\equiv \\triangle ENO \\equiv \\triangle OME \\equiv \\triangle OMC \\sim \\triangle OCB.\n$$\nThus $\\frac{|KD|}{|OD|} = \\frac{|OC|}{|CB|} = \\frac{1}{2}$ and finally $|AD| = 2|OD| = 4|KD|$.\nWe let $\\phi = \\angle OBC$. Then $\\tan \\phi = \\frac{|OC|}{|BC|} = \\frac{1}{2}$. The right angled triangles $OBE$ and $BOC$ are congruent, because they share the hypotenuse and $|OE| = |OC|$ (radii of $\\Gamma$). Consequently $\\phi = \\angle OBC = \\angle OBE = \\frac{1}{2}\\angle EBC$. The double angle formula for tan then gives\n$$\n\\tan(\\angle EBC) = \\tan(2\\phi) = \\frac{2 \\tan \\phi}{1 - \\tan^2 \\phi} = \\frac{4}{3}.\n$$\nAs $\\angle ABK = 90^\\circ - \\angle EBC$, we obtain\n$$\n\\frac{|AK|}{|AB|} = \\tan(\\angle ABK) = \\frac{1}{\\tan(\\angle EBC)} = \\frac{3}{4}.\n$$\nIt follows that $|AK| = \\frac{3}{4}|AD|$ and so $|AD| = 4|DK|$.\nWe have $|BC| = |BE|$ (tangents from $B$) and $|KE| = |KD|$ (tangents from $K$). We let $x = |BE| = |BC| = |AB|$ and $y = |KE| = |KD|$.\n![](attached_image_2.png)\nTriangle $ABK$ has a right angle at $A$ and Pythagoras' Theorem gives\n$$\n(x + y)^2 = |BK|^2 = |AB|^2 + |AK|^2 = x^2 + (x - y)^2.\n$$\nThis simplifies to $4xy = x^2$, hence $x = 4y$.\nLet the vertices of the square be $A(-1, 2)$, $B(1, 2)$, $C(1, 0)$, $D(-1, 0)$, so that $x^2 + y^2 = 1$ is the circle in question. If $x_0^2 + y_0^2 = 1$, the line $L$ with equation $xx_0 + yy_0 = 1$ is a tangent to the circle at $E(x_0, y_0)$. It passes through $B$ iff $2y_0 + x_0 = 1$. Solving the equations\n$$\n2y_0 + x_0 = 1, \\quad x_0^2 + y_0^2 = 1\n$$\nwe get $(x_0, y_0) = (-\\frac{3}{5}, \\frac{4}{5})$ or $(x_0, y_0) = (1, 0)$, and $E$ is the first of these. Hence $L$ has equation $4y - 3x = 5$. This line $L$ meets the line $x = -1$ at $K(-1, \\frac{1}{2})$, whose distance from $D(-1, 1)$ is $\\frac{1}{2} = \\frac{1}{4}|AD|$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33372, "subject": "Mathematics (Multi-modal)", "question": "Let $AOB$ be a triangle with $\\angle AOB = 90^\\circ$. Define a sequence of points $X_1, X_2, X_3, \\dots, X_{2022}$ as follows:\n* $X_1$ lies on the ray $\\vec{OA}$ with $|OX_1| = 1$.\n* $X_2$ lies on the ray $\\vec{OB}$ with $|X_1X_2| = 2$\n* For $3 \\le n \\le 2022$, the $X_n$ lie alternately on $\\vec{OA}$ ($n$ odd) or $\\vec{OB}$ ($n$ even), with $|X_{n-1}X_n| = n$.\nFind the distance $|X_{2020}X_{2022}|$.", "options": [], "answer": "sqrt(2045253) - sqrt(2041210)", "solution": "Let $X_0 = O$ and, for $0 \\le n \\le 2022$, let $d_n = |OX_n|$. Then $d_0 = 0$ and by Pythagoras' theorem, for $n \\ge 1$\n\n![](attached_image_1.png)\n\n$$\nd_{2n-1}^2 + d_{2n}^2 = (2n)^2\n$$\n$$\nd_{2n-1}^2 + d_{2n-2}^2 = (2n-1)^2.\n$$\nSubtracting these equations we get $d_{2n}^2 - d_{2n-2}^2 = (2n)^2 - (2n-1)^2 = 4n-1$.\nSince $d_0^2 = 0$ we then have\n$$\nd_{2n}^2 = \\sum_{k=1}^{n} d_{2k}^2 - d_{2k-2}^2 = \\sum_{k=1}^{n} 4k - 1 = 4 \\sum_{k=1}^{n} k - \\sum_{k=1}^{n} 1 \\\\ = 2n(n+1) - n = n(2n+1).\n$$\nThis implies that:\n$$\nd_{2020}^2 = 1010 \\cdot 2021 = 2041210\n$$\n$$\nd_{2022}^2 = 1011 \\cdot 2023 = 2045253\n$$\nand so $|X_{2020}X_{2022}| = \\sqrt{2045253} - \\sqrt{2041210}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33373, "subject": "Mathematics (Multi-modal)", "question": "Leonard Larsson's Language\nThe linguist Leonard Larsson made up a new language in which all words have exactly seven letters and only the twenty letters from $A$ to $T$ are used. Furthermore, any pair of distinct words differ in at least two places. (For instance, if the words $LEONARD$ and $LARSSON$ are part of this language, then $LEOPARD$ and $PARSSON$ cannot be words.)\nLeonard claims that if he needs more words, the language rules allow him to create more than $70$ million words. His colleague says “I presume you mean more than $60$ million words?”. Prove that indeed these rules allow for more than $60$ million words but not more than $70$ million.", "options": [], "answer": "Detailed solution", "solution": "Let's generalise and consider exactly $n$ letters in a word, chosen from an alphabet of $m$ letters, with the restriction that any two distinct words must differ in at least two places. We claim that this allows for at most $m^{n-1}$ words, and that this bound can be obtained. Since $20^{7-1} = 64\\ 000\\ 000$ lies strictly between $60$ and $70$ million, Leonard's colleague makes a valid point, but we need to prove our claim!\n\nThe upper bound follows easily from the pigeonhole principle since there are $m^{n-1}$ possibilities for the first $n-1$ letters in a word. Thus, if there are more than this number of words, at least two of them must have the same first $n-1$ letters and so cannot differ at two or more places.\n\nConversely, consider the set of *near-words* consisting of $n-1$ letters from the alphabet, but with no restriction on the number of differences between two *near-words*. Clearly, there are $m^{n-1}$ *near-words*. Treat the letters as base-$n$ digits and create a word $W$ from each *near-word* $w$ by appending a single letter $s(w)$ that is congruent to the sum of the letters in $w$ modulo $n$. This gives a collection of $m^{n-1}$ words with the right number of letters and the right alphabet. But do they all differ in at least two places?\n\nSuppose the distinct *near-words* $x$ and $y$ give rise to words $X$ and $Y$, respectively, by this process. If $x$ and $y$ differ in at least two places, so do $X$ and $Y$. If $x$ and $y$ differ in only one place, then $s(x)$ and $s(y)$ are different, and so $X$ and $Y$ differ in exactly two places.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33374, "subject": "Mathematics (Multi-modal)", "question": "Segments $AB$ and $CD$ are parallel chords of a circle centre $O$, and $P$ is any point in the plane other than $O$. If $|PA| = |PB|$, prove $|PC| = |PD|$.", "options": [], "answer": "Detailed solution", "solution": "A point $X$ is on the perpendicular bisector of $AB$ iff $|XA| = |XB|$. Therefore, the centre $O$ of the circle is on the perpendicular bisectors of $AB$ and $CD$. As $AB \\parallel CD$, this means that the two chords have the same perpendicular bisector. If $|PA| = |PB|$, $P$ must be on this common perpendicular bisector, hence we also have $|PC| = |PD|$.\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33375, "subject": "Mathematics (Multi-modal)", "question": "Triana writes nine positive numbers, one in each cell of a $3 \\times 3$ grid. The row sums and column sums are all equal. The row products and column products are also all equal to each other, but not necessarily equal to the row and column sums.\nShow that each row and each column of Triana's matrix contains the same three (not necessarily distinct) numbers.", "options": [], "answer": "Detailed solution", "solution": "Clearly, one solution is\n$$\n\\begin{bmatrix} p & q & r \\\\ q & r & p \\\\ r & p & q \\end{bmatrix}\n$$\nor a $90^\\circ$ rotation of the same. Each row and column clearly contains the same three numbers $\\{p, q, r\\}$. We now show that this is the only solution. Without loss of generality (scaling all entries by a positive constant), the number in the centre of the $3 \\times 3$ matrix is $r = 1$. Let us denote the matrix corner values $a, b, c, d$. Then the matrix is:\n$$\n\\begin{bmatrix} a & x & b \\\\ ???? & 1 & ???? \\\\ c & y & d \\end{bmatrix}.\n$$\nEquating the products of the first row, the last row and the middle column gives:\n$$\nabx = xy = cdy.\n$$\nThese immediately imply (as $x$ and $y$ are non-zero) that $y = ab$ and $x = cd$. A similar argument applies to the other mystery elements, and so the matrix is reconstructed from its corner elements as:\n$$\n\\begin{bmatrix} a & cd & b \\\\ bd & 1 & ac \\\\ c & ab & d \\end{bmatrix}.\n$$\n\nFor the same argument with sums rather than products (as the central element is now zero), it follows that the middle edges are sums of the opposite corners and so:\n$$\n\\begin{align*}\nab - 1 &= a + b - 2 \\\\\nac - 1 &= a + c - 2 \\\\\nbd - 1 &= b + d - 2 \\\\\ncd - 1 &= c + d - 2.\n\\end{align*}\n$$\nThese factorise as:\n$$\n0 = (a - 1)(b - 1) = (a - 1)(c - 1) = (b - 1)(d - 1) = (c - 1)(d - 1).\n$$\nThus, of any two adjacent corners, at least one must have a value of $1$. In particular, there must be one pair of opposite corners for which both values are $1$, since if two opposite corners are not both $1$, the other two corners must be $1$. Rotating if necessary, we may assume those corners are $b$ and $c$ which leads to the stated original form with $r = 1$.\nThe key observation is that two numbers are determined by their product and sum.\n**Lemma.** If $a$, $b$, $u$, $v$ are real numbers that satisfy $a + b = u + v$ and $ab = uv$, then $\\{a, b\\} = \\{u, v\\}$.\n*Proof.* Because\n$$\n\\begin{align*}\n(x - a)(x - b) &= x^2 - (a + b)x + ab \\\\\n&= x^2 - (u + v)x + uv = (x - u)(x - v),\n\\end{align*}\n$$\nthis quadratic has roots $a$, $b$ as well as roots $u$, $v$.\n\nConsidering the first row and third column of the matrix\n$$\n\\begin{bmatrix}\na & b & c \\\\\n\\star & \\star & u \\\\\n\\star & \\star & v\n\\end{bmatrix}\n$$\nwhich have the same sum and the same product, the lemma implies that $\\{u, v\\} = \\{a, b\\}$. After swapping rows two and three if necessary, we even get $u = a$ and $v = b$:\n$$\n\\begin{bmatrix}\na & b & c \\\\\n\\star & \\star & a \\\\\n\\star & \\star & b\n\\end{bmatrix} .\n$$\n\nFor the same reason, the missing entries in the first column are $b, c$ and in the second column $a, c$ are missing. We can also work with the third column and the second or third row and obtain that the missing entries in the second row are $b, c$ and in the third row are $a, c$.\nThis already proves the statement of the problem. From the information collected, it is not hard to describe the possible shapes of the matrix.\nAs there is no $a$ missing in the first column, it now is clear that the bottom left corner must be occupied by $c$. In a similar way, we can now fill in the remaining numbers. As we may earlier have swapped the second and the third row, we now see that the matrix must have one of these shapes\n$$\n\\begin{bmatrix} a & b & c \\\\ b & c & a \\\\ c & a & b \\end{bmatrix} \\quad \\text{or} \\quad \\begin{bmatrix} a & b & c \\\\ c & a & b \\\\ b & c & a \\end{bmatrix}.\n$$", "topic": "Algebra", "subtopic": "Linear Algebra" }, { "id": 33376, "subject": "Mathematics (Multi-modal)", "question": "Consider $\\triangle ABC$ with $\\angle A > 90^\\circ$ and two points $D$ and $E$ on segment $BC$ so that $\\angle BAD = \\angle CAE$. If the circumcircles of $\\triangle BAD$ and $\\triangle CAE$ are tangent to each other prove that $\\angle BAE = \\angle CAD = 90^\\circ$.", "options": [], "answer": "Detailed solution", "solution": "Extend $AD$ and $AE$ to meet the circumcircle of $\\triangle ABC$ at $F$ and $G$, respectively. Let $O$ be the intersection point of $BG$ and $CF$.\n\n![](attached_image_1.png)\n\nSince $\\angle BAD = \\angle CAE$, we have\n$$\n\\angle BCO = \\angle OGF = \\angle BAD = \\angle CAE = \\angle CBO = \\angle OFG,\n$$\nsubtending equal arcs. Hence $OB$ and $OC$ are tangents to the circumcircles of $\\triangle BAD$ and $\\triangle CAE$ by the Alternate Segment Theorem, and $\\triangle OBC$ is isosceles with $|OB| = |OC|$. Then $O$ must be on the common tangent to the circumcircles of $\\triangle BAD$ and $\\triangle CAE$, since it has the same power with respect to them. Since $OA$ is tangent to the two circles, $|OA| = |OB| = |OC|$ hence $O$ is the circumcentre of $\\triangle ABC$, hence $BG$ and $CF$ are diameters, thus $\\angle BAE = \\angle CAD = 90^\\circ$.\nLet $M, N$ be the centres of the circumcircles of triangles $BAD$ and $CAE$, respectively. These two circles are tangent at $A$ iff $M, A, N$ are collinear. We define $\\alpha = \\angle BAD = \\angle CAE$, $\\beta = \\angle MAB = \\angle MBA$, and $\\gamma = \\angle NAC = \\angle NCA$.\n\n![](attached_image_2.png)\n\nWe then have $\\angle BMA = 180^\\circ - 2\\beta$ and $\\angle ANC = 180^\\circ - 2\\gamma$. If $M$ and $D$ are on opposite sides of $AB$, we have $\\angle BDA = 180^\\circ - \\frac{1}{2}\\angle BMA = 90^\\circ + \\beta$ and $\\angle ADE = 180^\\circ - \\angle BDA = 90^\\circ - \\beta$. Similarly, $\\angle AED = 90^\\circ - \\gamma$. We now obtain\n$$\n\\angle DAE = 180^\\circ - \\angle ADE - \\angle AED = \\beta + \\gamma.\n$$\nBecause $M, A, N$ are collinear, this implies $2\\alpha + 2\\beta + 2\\gamma = 180^\\circ$, hence $\\alpha + \\beta + \\gamma = 90^\\circ$. Finally, $\\angle BAE = \\angle BAD + \\angle DAE = \\alpha + \\beta + \\gamma = 90^\\circ$ and $\\angle DAC = \\angle DAE + \\angle EAC = \\beta + \\gamma + \\alpha = 90^\\circ$.\n\nIf $M$ and $D$ were on the same side of $AB$, the above argument, with $\\beta$ replaced by $-\\beta$ in the formulas for $\\angle BDA$, $\\angle ADE$ etc., gives the same result. We then see that $\\angle BDA = 90^\\circ + \\alpha > 90^\\circ$, which implies that $M$ and $D$ must actually be on opposite sides of $AB$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33377, "subject": "Mathematics (Multi-modal)", "question": "Aisling and Brendan take alternate moves in the following game. Before the game starts, the number $x = 2023$ is written on a piece of paper. Aisling makes the first move. A move from a positive integer $x$ consists of replacing $x$ either with $x + 1$ or with $x/p$ where $p$ is a prime factor of $x$.\n\nThe winner is the first player to write the number $x = 1$.\n\nDetermine whether Aisling or Brendan has a winning strategy for this game.", "options": [], "answer": "Aisling", "solution": "The game is a win for Aisling. Aisling wins by forcing Brendan to write down a prime number, which allows Aisling to claim the prize by writing 1 at the next step.\n\nWe say an integer is a *2g-position* if it is of the form $2g$ where both $g$ and $2g+1$ are primes (such $g$ are known as Sophie Germain primes). If Aisling can get to a *2g-position* then a win is assured, as Brendan is forced to play one of 2, $g$ or $2g+1$, all of which are prime. The relevant $2g$ positions for this problem are 10 and 58.\n\nHere is one of many possible winning strategies for Aisling.\n\nAisling divides 2023 by the prime 7, passing 289 to Brendan. As $289 = 17^2$, Brendan has only two possible next moves: to 290 or to 17. But 17 is prime so Brendan is forced to play 290. If Brendan moves to 290, then Aisling can move to either 10 or 58, both of which are $2g$ positions, so Aisling wins.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33378, "subject": "Mathematics (Multi-modal)", "question": "Suppose that $a$, $b$, $c$ are positive real numbers and $a + b + c = 3$. Prove that\n$$\n\\frac{a+b}{c+2} + \\frac{b+c}{a+2} + \\frac{c+a}{b+2} \\ge 2\n$$\nand determine when equality holds.", "options": [], "answer": "Equality holds if and only if a = b = c = 1.", "solution": "**Solution 1.** Adding $3$ to each side, we have to show\n$$\n\\begin{aligned}\n5 &\\le \\frac{a+b}{c+2} + 1 + \\frac{b+c}{a+2} + 1 + \\frac{c+a}{b+2} + 1 \\\\\n&= (a+b+c+2) \\left( \\frac{1}{a+2} + \\frac{1}{b+2} + \\frac{1}{c+2} \\right) \\\\\n&= 5 \\left( \\frac{1}{a+2} + \\frac{1}{b+2} + \\frac{1}{c+2} \\right)\n\\end{aligned}\n$$\nDividing by $5$, this is equivalent to\n$$\n\\frac{1}{a+2} + \\frac{1}{b+2} + \\frac{1}{c+2} \\ge 1 \\quad (4)\n$$\nAlternatively, we may substitute $a + b = 3 - c = 5 - (c + 2)$ in the first numerator and so on, which again leads us to (4). Now Jensen's inequality applied to the convex function $f(x) = \\frac{1}{x+2}$ at the points $a$, $b$, $c$ implies:\n$$\n\\frac{1}{3} \\left( \\frac{1}{a+2} + \\frac{1}{b+2} + \\frac{1}{c+2} \\right) \\ge \\frac{1}{\\frac{1}{3}(a+b+c)+2} = \\frac{1}{3}.\n$$\nEquality holds (in general) when $a = b = c$ and in this specific case when $a = b = c = 1$ since we are given $a + b + c = 3$.\n\nRather than invoking Jensen's inequality, (4) can be proved by appeal to the AM-HM inequality, the AM-GM inequality or the Cauchy-Schwarz inequality. The AM-HM inequality application is immediate after multiplication by $(a+2) + (b+2) + (c+2) = 9$. The use of AM-GM requires two steps:\n$$\n\\begin{aligned}\n\\frac{1}{3} \\left( \\frac{1}{a+2} + \\frac{1}{b+2} + \\frac{1}{c+2} \\right) &\\ge \\frac{1}{\\sqrt[3]{(a+2)(b+2)(c+2)}} \\\\\n&\\ge \\frac{3}{a+2+b+2+c+2} = \\frac{1}{3}.\n\\end{aligned}\n$$\nThe Cauchy-Schwarz approach applies the inequality to the vectors\n$$\n\\left(\\sqrt{a+2}, \\sqrt{b+2}, \\sqrt{c+2}\\right) \\quad \\text{and} \\quad \\left(\\frac{1}{\\sqrt{a+2}}, \\frac{1}{\\sqrt{b+2}}, \\frac{1}{\\sqrt{c+2}}\\right)\n$$\nwhence\n$$\n\\begin{aligned}\n9 &\\le ((a+2) + (b+2) + (c+2)) \\left( \\frac{1}{a+2} + \\frac{1}{b+2} + \\frac{1}{c+2} \\right) \\\\\n&= 9 \\left( \\frac{1}{a+2} + \\frac{1}{b+2} + \\frac{1}{c+2} \\right).\n\\end{aligned}\n$$\n\n\n$$\n\\frac{a+b}{5-a-b} + \\frac{3-a}{a+2} + \\frac{3-b}{b+2} \\geq 2.\n$$\nCross-multiplying and moving all terms to the left (noting all the denominators are positive) gives: $5a^2b + 5ab^2 + 5a^2 + 5b^2 - 10ab - 15a - 15b + 20 \\geq 0$. The left hand side can be rearranged as $5b(a-1)^2 + 5a(b-1)^2 + 5(a+b-2)^2$. This is non-negative, and zero iff $a = b = 1$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33379, "subject": "Mathematics (Multi-modal)", "question": "You are given a positive integer. Prove that you can append digits to the given number so that the resulting number is a perfect square.\n\nFor example, the given integer $1234$ can be extended to $12341169 = 3513^2$.", "options": [], "answer": "Detailed solution", "solution": "Let $p$ be the given number and suppose we extend it by $n$ digits. The value of $n$ is still to be determined. The smallest such extension is $p \\cdot 10^n$ and the largest is $(p+1) \\cdot 10^n - 1$.\nIt is possible to complete the number $p$ to a perfect square by appending $n$ digits if there exists an integer $m$ such that\n$$\np \\cdot 10^n \\leq m^2 < (p+1) \\cdot 10^n, \\quad \\text{ i.e. }\n$$\n$$\n\\sqrt{p} \\cdot 10^{\\frac{n}{2}} \\leq m < \\sqrt{p+1} \\cdot 10^{\\frac{n}{2}}.\n$$\nBecause $\\sqrt{p+1} - \\sqrt{p} > 0$, for $n$ large enough we have $(\\sqrt{p+1} - \\sqrt{p}) \\cdot 10^{\\frac{n}{2}} > 1$. Hence, there is an integer between $\\sqrt{p} \\cdot 10^{\\frac{n}{2}}$ and $\\sqrt{p+1} \\cdot 10^{\\frac{n}{2}}$.\nLet the given number $p$ have less than $k$ digits, i.e. $p < 10^k$. Let $N$ be the largest integer for which $N^2 \\leq p \\cdot 10^{k+1}$, i.e.\n$$\nN^2 \\leq p \\cdot 10^{k+1} < (N+1)^2.\n$$\nCombining $N^2 \\leq p \\cdot 10^{k+1}$ with $p < 10^k$ we get $N^2 < 10^{2k+1}$, and so $N < \\sqrt{10} \\cdot 10^k$. Using $1 + 2\\sqrt{10} < 10$, which follows from $40 = (2\\sqrt{10})^2 < 9^2$, we obtain\n$$\n2N + 1 < 2\\sqrt{10} \\cdot 10^k + 1 < (1 + 2\\sqrt{10}) 10^k < 10^{k+1}.\n$$\nWe then get\n$$\n0 < p \\cdot 10^{k+1} < (N+1)^2 = N^2 + (2N+1) < p \\cdot 10^{k+1} + 10^{k+1} = (p+1) \\cdot 10^{k+1}.\n$$\nThis means that the number $(N + 1)^2$ is obtained from the number $p$ by appending $k + 1$ digits.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33380, "subject": "Mathematics (Multi-modal)", "question": "Let $A$, $B$, $C$, $D$, $E$ be five points on a circle such that $|AB| = |CD|$ and $|BC| = |DE|$. The segments $AD$ and $BE$ intersect at $F$. Let $M$ denote the midpoint of segment $CD$. Prove that the circle of center $M$ and radius $ME$ passes through the midpoint of segment $AF$.", "options": [], "answer": "Detailed solution", "solution": "**Solution 1.** Because the arcs $AB$ and $CD$, as well as $BC$ and $DE$ are equal, the cyclic quadrilaterals $ABCD$ and $BCDE$ are isosceles trapeziums with $BC \\parallel AD$ and $CD \\parallel BE$. Hence, $BFDC$ is a parallelogram. As a consequence we see that $|BF| = |CD| = |BA|$ and so $\\triangle AFB$ is isosceles.\n\n![](attached_image_1.png)\nTriangles $\\triangle EDM$ and $\\triangle BCM$ are congruent by SAS, since $|ED| = |BC|$, $\\angle EDC = \\angle DCB$ in isosceles trapezium, and $|DM| = \\frac{1}{2}|CD| = |CM|$. Hence $|EM| = |MB|$.\n\nTo complete the solution, we prove that $|MB| = |MN|$, where $N$ is the midpoint of $AF$. Here are three ways doing so.\n\n*First way:* Let $P$ be the midpoint of $AB$. Since $M$, $P$, $N$ are midpoints, $PN \\parallel BF \\parallel CD$ and $|CM| = \\frac{1}{2}|CD| = \\frac{1}{2}|BF| = |NP|$. This implies that $CPNM$ is a parallelogram, in particular $|MN| = |CP|$.\n![](attached_image_2.png)\nOn the other hand, triangles $\\triangle CBP$ and $\\triangle BCM$ are congruent by SAS: $BC$ common, $\\angle C = \\angle B$ in isosceles trapezium, and $|CM| = \\frac{1}{2}|CD| = \\frac{1}{2}|AB| = |BP|$. This implies $|MB| = |CP| = |MN|$.\n\n![](attached_image_3.png)\nBecause $PM$ is the mid-line of the trapezium $ABCD$, $PM \\parallel AD$ and so $\\angle FAB = \\angle MPB$ and $PNFS$ is a parallelogram where $S$ is the intersection point of $PM$ and $EB$. Hence,\n$$\n\\angle MPN = \\angle AFB = \\angle FAB = \\angle MPB\n$$\nwhere we have used again that $\\triangle AFB$ is isosceles. We now conclude that triangles $\\triangle MPN$ and $\\triangle MPB$ are congruent by SAS: $MP$ common, $\\angle MPB = \\angle MPN$ and $|PN| = |BP|$ as shown above. This implies $|MN| = |MB|$.\n\n*Third way:* As $\\triangle BAF$ is isosceles and $AD \\parallel BC$, we have $BN \\perp AF$ and $BN \\perp BC$. Extend the line $NM$ to meet line $BC$ at $Q$.\n![](attached_image_4.png)\nSince $DN \\parallel CQ$ and $M$ is midpoint of $CD$, we get $\\triangle MDN \\cong \\triangle MCQ$ (ASA) and hence $M$ is the midpoint of $NQ$ in the right angled triangle $QBN$. This implies $|MN| = |MQ| = |MB|$.\n\n\n**Solution 2**\nLet $N$ denote the midpoint of $AF$. We have $\\angle ECD = \\angle EAF$ since both are standing on the arc $DE$. Since the arcs $AB$ and $CD$ are equal, we also have $\\angle DEC = \\angle FEA$. This shows that $\\triangle EDC$ and $\\triangle EFA$ are similar.\n![](attached_image_5.png)\n\nAs a consequence, we have $\\frac{|ED|}{|EF|} = \\frac{|CD|}{|AF|}$. Because $M$ and $N$ are the midpoints of $CD$ and $AF$, we now get $\\frac{|ED|}{|EF|} = \\frac{|MD|}{|NF|}$, which implies $\\triangle EDM \\sim \\triangle EFN$ since $\\angle EDM = \\angle EDC = \\angle EFA = \\angle EFN$. Hence $\\frac{|ED|}{|EF|} = \\frac{|EM|}{|EN|}$. From $\\angle DEM = \\angle FEN$ we obtain $\\angle DEF = \\angle MEN$, hence $\\triangle EDF$ is similar to $\\triangle EMN$.\nWe have seen above that $\\angle FEA = \\angle DEC$, and we also have $\\angle EAF = \\angle CEB$ because the arcs on which they are standing, $DE$ and $BC$, are equal. Therefore, $\\angle EFD = \\angle FEA + \\angle EAF = \\angle DEC + \\angle CEB = \\angle DEF$. This means that $\\triangle EDF$ is isosceles with $|ED| = |DF|$ and so $\\triangle EMN$ is isosceles with $|EM| = |MN|$ as well.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33381, "subject": "Mathematics (Multi-modal)", "question": "We have 1000 small cubes of sidelength $1$ cm. All have magnetised faces, with three faces being north poles and the three opposite faces being south poles. We assemble them into a “megacube” of sidelength $10$ cm, using magnetism to connect them: two faces that touch must have opposite polarity. Your task is to determine how many configurations the megacube can have. Two configurations are different if they give different magnetic sensor readings, according to the following rules:\n1. We can sense the polarity of faces of small cubes that lie on the outside of the megacube, except that we cannot test the bottom face of the megacube because it is too heavy to lift or even move.\n2. If two configurations give different readings, but we could move (e.g. rotate) one to get the other, treat them as distinct, again because the megacube is too heavy to move.", "options": [], "answer": "2^{300}", "solution": "We claim that the answer for $n^3$ small cubes, for any $n > 1$, is $2^{3n^2}$. In particular, for $1000$ cubes, the answer is $2^{300}$.\n\nFirst note that, up to rotation, the polarisations of all small cubes are identical: three faces with polarisation N meet at one corner of the cube. Therefore, instead of rotating an already polarised small cube, we may simply repolarise its faces, making sure that opposite faces have opposite polarisations. Hence, there are $2^3 = 8$ possible ways to polarise a non-moving small cube, i.e. there are $8$ different rotational positions of a polarised small cube.\n\nBelow, we will build the megacube by placing the small cubes one after the other. If a small cube is placed adjacent to one or two small cubes that were placed before, its rotational position is constrained along one or two axes. There is only one way to place a small cube adjacent to three small cubes that were placed before.\n\nIf a small cube is constrained along one axis, i.e. if the polarisation of one pair of opposite faces is fixed, it has $2^2 = 4$ possible configurations. For example, if the Left-Right polarities are set, we can freely choose the Top-Bottom polarities in two ways and, independently, the Front-Back polarities in two ways.\n\nIf a small cube is constrained along two axes, it has $2$ possible configurations. To see this, suppose for instance that the Left-Right and Top-Bottom polarities are set. The Front-Back polarities can then be set in two ways.\n\nLet us now give coordinates to the cubes in the megacube with $n > 1$ cubes on each side: for $1 \\le i, j, k \\le n$, $(i, j, k)$ indicates the cube that is in the $i$-th layer from left to right, the $j$-th layer from top to bottom, and the $k$-th layer from front to back. For instance, $(1, 1, 1)$ indicates the cube $C$ in the left-top-front corner of the megacube.\n\nWe now build the megacube in stages. We first place $C$. This is unconstrained so we get $2^3$ possible configurations. Next, we add all other cubes on the three edges of the megacube that are incident on $C$, i.e. cubes with coordinates $(x, 1, 1)$, $(1, y, 1)$, or $(1, 1, z)$ for $2 \\le x, y, z \\le n$. We do so in increasing order of $x$, $y$, and $z$. This constrains them along one axis, so each of these gives a factor $2^2$ to the number of configurations.\n\nNext, we fill in the three *primary faces*, meaning the faces that are each incident on two of the three edges that we filled in above. We fill in these faces in a similar fashion, row by row, in bibliographic order of the coordinates. For instance, for the front face, i.e. the one with cubes $(x, y, 1)$, we have already added these cubes for $x = 1$, so we add $(2, y, 1)$ in increasing order of $y \\ge 2$, then $(3, y, 1)$ in increasing order of $y \\ge 2$, etc. Doing so, we note that the polarities are fixed along two coordinate directions, so each cube contributes a factor $2$ to the number of configurations.\n\nWe finally fill in all remaining cubes $(x, y, z)$ in bibliographic order, noting that each cube is constrained along all three axes, so these contribute nothing to the number of configurations. So choosing the polarity for the three faces of the megacube that include a face of $C$ fixes the configuration. In particular, the rule stating that we cannot sense the bottom face is irrelevant.\n\nIt remains to add up the number of factors of $2$ above. This is made easier once we realise that the number of factors for each cube equals the number of faces of that cube that are contained in a primary face of the megacube. Each such face has $n^2$ cubes, so our claim follows.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33382, "subject": "Mathematics (Multi-modal)", "question": "In triangle *ABC* the perpendicular projection $BD$ of $AB$ on $BC$ has the same length as the perpendicular projection $CH$ of $BC$ on $CA$. Prove that the altitude from $A$, the median from $B$ and the bisector of $\\angle ACB$ are concurrent.", "options": [], "answer": "Detailed solution", "solution": "Let $E$ be the midpoint of $CA$ and $F$ the intersection point of $AB$ and the bisector of $\\angle ACB$. We will use (the converse of) Ceva's Theorem to prove that $AD$, $BE$, $CF$ are concurrent.\n\n![](attached_image_1.png)\n\nWe first note that $A$, $B$, $D$, $H$ are concyclic because of the right angles at $D$ and $H$. The Intersecting Secants Theorem then implies\n$$\n\\begin{aligned}\n|CD| \\cdot |CB| &= |CH| \\cdot |CA|, \\text{ i.e.} \\\\\n\\frac{|CH|}{|DC|} &= \\frac{|CB|}{|CA|}\n\\end{aligned}\n$$\nUsing $|CH| = |BD|$ and that the angle bisector $CF$ divides $AB$ in the ratio of the adjacent sides, we obtain\n$$\n\\frac{|BD|}{|DC|} = \\frac{|FB|}{|AF|}, \\text{ or } \\frac{|BD|}{|DC|} \\cdot \\frac{|AF|}{|FB|} = 1.\n$$\nBecause $|CE| = |EA|$, we finally obtain\n$$\n\\frac{|BD|}{|DC|} \\cdot \\frac{|CE|}{|EA|} \\cdot \\frac{|AF|}{|FB|} = 1\n$$\nwhich implies that $AD$, $BE$, $CF$ are concurrent.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33383, "subject": "Mathematics (Multi-modal)", "question": "A set $\\mathcal{S}$ consists of $n \\ge 1$ positive real numbers, such that for $x \\neq y \\in \\mathcal{S}$:\n$$\n|y - x| \\geq \\sqrt{x + y}.\n$$\nShow that there exists $z \\in \\mathcal{S}$ such that $z > \\frac{1}{2}n(n - 1)$.", "options": [], "answer": "Detailed solution", "solution": "**Solution 1.** Proof by induction on $n$. The condition holds trivially if $n = 1$, so let us assume it holds for some $n \\ge 1$ and prove it for $n + 1$. Write the elements of the set $S$ of $n + 1$ elements as\n$$\ns_1 < s_2 < \\dots < s_{n-1} < s_n < s_{n+1}.\n$$\nFrom the condition in the question, and the inductive hypothesis:\n$$\ns_{n+1} \\ge s_n + \\sqrt{s_n + s_{n+1}} > \\frac{1}{2}n(n-1) + \\sqrt{\\frac{1}{2}n(n-1) + s_{n+1}}.\n$$\nMultiplying by 2, rearranging and squaring, we have:\n$$\n(2s_{n+1} - n(n-1))^2 > 2n(n-1) + 4s_{n+1}.\n$$\nCollecting like terms gives:\n$$\n\\begin{aligned}\n0 < & 4s_{n+1}^2 - 4n(n-1)s_{n+1} + n^2(n-1)^2 - 2n(n-1) - 4s_{n+1} \\\\\n= & 4s_{n+1}^2 - 2(2n^2 - 2n + 2)s_{n+1} + n(n-1)(n+1)(n-2) \\\\\n= & (2s_{n+1} - n(n+1))(2s_{n+1} - (n-1)(n-2)).\n\\end{aligned}\n$$\nNow the term in the second pair of large brackets is positive, as:\n$$\n2s_{n+1} > 2s_n > n(n-1) \\ge (n-2)(n-1).\n$$\nTherefore the first term is also positive, which implies $s_{n+1} > \\frac{1}{2}n(n + 1)$, completing the inductive step.\n\n\n**Remark.** This result is best possible, given that for $\\varepsilon > 0$ the set that contains $s_k = \\frac{1}{2}(k + \\varepsilon)(k + \\varepsilon - 1)$ satisfies the stated criterion.\n**Solution 2.** Before we prove the statement by induction, we prove a lemma. **Lemma.** If $x < y$ are positive real numbers satisfying $y - x \\ge \\sqrt{x + y}$, then\n$$\ny \\ge \\frac{1}{2}(2x + 1 + \\sqrt{8x + 1}).\n$$\n*Proof.* Because $y - x > 0$, the inequality $y - x \\ge \\sqrt{x + y}$ is equivalent to $(y - x)^2 \\ge x + y$. This can be rearranged into $y^2 - (2x + 1)y + (x^2 - x) \\ge 0$. We keep the positive real number $x$ fixed and consider\n$$\nf(y) = y^2 - (2x + 1)y + (x^2 - x).\n$$\nThe roots of this polynomial are\n$$\ny_{\\pm} = \\frac{1}{2} \\left( 2x + 1 \\pm \\sqrt{8x + 1} \\right).\n$$\n\nSince the leading coefficient of $f(y)$ is positive, we have $f(y) \\ge 0$ if and only if $y \\le y_-$ or $y \\ge y_+$. By Vieta, $y_-y_+ = x^2 - x < x^2$ and so it is not possible that $y_-$ and $y_+$ are both greater or equal than $x$, hence $y_- < x$. Therefore, if $x < y$ and $f(y) \\ge 0$, we have $y \\ge y_+$, as claimed. $\\square$\nTo start the inductive proof of the statement of the problem, we let the elements of the set $S$ be $x_1 < x_2 < \\dots < x_{n-1} < x_n < x_{n+1}$. By assumption we have $x_1 > 0$ which settles the case $n = 1$.\nFor the inductive step, we suppose $x_n > \\frac{1}{2}n(n-1)$. This implies $8x_n + 1 > 4n^2 - 4n + 1 = (2n-1)^2$. We wish to prove $x_{n+1} > \\frac{1}{2}n(n+1)$. Applying the lemma with $y = x_{n+1}$ and $x = x_n$, we obtain\n$$\n\\begin{aligned}\nx_{n+1} &\\ge \\frac{1}{2}(2x_n + 1 + \\sqrt{8x_n + 1}) \\\\\n&> \\frac{1}{2}(n(n-1) + 1 + (2n-1)) = \\frac{1}{2}n(n+1),\n\\end{aligned}\n$$\nas required.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33384, "subject": "Mathematics (Multi-modal)", "question": "The Mosers' spindle is a seven point configuration in the plane in which **ABC**, **BCD**, **AEF** and **EFG** are equilateral triangles with side length $1$. The points $A$, $B$, $D$, $G$, $F$ form a convex pentagon with $|DG| = 1$.\n![](attached_image_1.png)\nDetermine which of the angles, $\\angle BAF$ or $\\angle BDG$, is bigger.", "options": [], "answer": "∠BDG > ∠BAF", "solution": "Connect $A$ to $D$ and $G$. Because $\\triangle ABC$ and $\\triangle BCD$ are equilateral, $\\angle BAD = \\angle BDA = 30^\\circ$ and $|AD| = \\sqrt{3}$. Similarly, $\\angle GAF = 30^\\circ$ and $|AG| = \\sqrt{3}$. We now have $\\angle BDG = \\angle BDA + \\angle ADG = 30^\\circ + \\angle ADG$\n![](attached_image_2.png)\n\nand $\\angle BAF = \\angle BAD + \\angle DAG + \\angle GAF = 60^\\circ + \\angle DAG$. We will show that $\\angle BDG > \\angle BAF$ by proving $\\cos(\\angle ADG) < \\cos(30^\\circ + \\angle DAG)$.\nLetting $H$ be the midpoint of $DG$ and using triangle $ADH$ we find\n$$\n\\cos(\\angle ADG) = \\frac{|DH|}{|DA|} = \\frac{1}{2\\sqrt{3}} = \\frac{2\\sqrt{3}}{12}.\n$$\n\nBecause $\\cos(30^\\circ + \\angle DAG) = \\cos(30^\\circ)\\cos(\\angle DAG) - \\sin(30^\\circ)\\sin(\\angle DAG)$, we next wish to find $\\cos(\\angle DAG)$ and $\\sin(\\angle DAG)$. The Cosine Rule for\n\n$\\triangle ADG$ yields $\\cos(\\angle DAG) = 5/6$. Because $\\angle DAG < 180^\\circ$, this implies $\\sin(\\angle DAG) = \\sqrt{11}/6$. Hence\n$$\n\\cos(30^\\circ + \\angle DAG) = \\frac{\\sqrt{3}}{2} \\cdot \\frac{5}{6} - \\frac{1}{2} \\cdot \\frac{\\sqrt{11}}{6} = \\frac{5\\sqrt{3} - \\sqrt{11}}{12}.\n$$\nTo prove $2\\sqrt{3} < 5\\sqrt{3} - \\sqrt{11}$ we rewrite this as $\\sqrt{11} < 3\\sqrt{3}$ and then square. This shows that $\\cos(\\angle ADG) < \\cos(30^\\circ + \\angle DAG)$, which means that $\\angle ADG > 30^\\circ + \\angle DAG$, and so $\\angle BDG > \\angle BAF$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33385, "subject": "Mathematics (Multi-modal)", "question": "Find the largest solution of the equation $\\{x\\}^2 = \\{x^2\\}$ which is smaller than $2023$. Here $\\{x\\}$ is the fractional part of the number $x$, e.g. $\\{22/7\\} = 1/7$.", "options": [], "answer": "2022 + 4043/4044", "solution": "By definition, $n = x - \\{x\\}$ is an integer. Then $x = n + \\{x\\}$ and $x^2 = n^2 + 2n\\{x\\} + \\{x\\}^2$. Hence $\\{x^2\\} = \\{2n\\{x\\} + \\{x\\}^2\\}$. If $\\{x\\}^2 = \\{x^2\\}$ then $2n\\{x\\}$ is an integer.\n\nAs $x < 2023$, the largest possible $n$ is $n = 2022$. We then look for the largest $\\{x\\}$ for which $4044\\{x\\}$ is an integer. As $\\{x\\} < 1$, $4044\\{x\\} < 4044$. The largest possible value for $\\{x\\}$ therefore is $\\{x\\} = \\frac{4043}{4044}$. Hence the largest solution is $x = 2022 + \\frac{4043}{4044}$.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 33386, "subject": "Mathematics (Multi-modal)", "question": "Suppose that $a, b, c > 0$ and $a + b + c = 3$. Prove that $a^2 + b^2 + c^2 + 6abc \\le 9$.", "options": [], "answer": "Detailed solution", "solution": "We may homogenise in two steps the inequality we wish to show. First, we use $(a+b+c)^2 = 9$ to replace the RHS and obtain the equivalent inequality\n$$\na^2 + b^2 + c^2 + 6abc \\le (a + b + c)^2 = a^2 + b^2 + c^2 + 2(ab + bc + ca) + 3abc.\n$$\nThis is equivalent to $3abc \\le ab + bc + ca$. We now multiply by $3 = a+b+c$ to obtain the equivalent inequality\n$$\n9abc \\le (a + b + c)(ab + bc + ca) = a^2b + ab^2 + b^2c + bc^2 + c^2a + a^2c + 3abc,\n$$\ni.e.,\n$$\n6abc \\le a^2b + ab^2 + b^2c + bc^2 + c^2a + a^2c, \\text{ or}\n$$\n$$\n6 \\le \\frac{a}{b} + \\frac{b}{a} + \\frac{b}{c} + \\frac{c}{b} + \\frac{c}{a} + \\frac{a}{c},\n$$\nwhich immediately follows from the AM-GM inequality.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33387, "subject": "Mathematics (Multi-modal)", "question": "Find all integer solutions $(x, y)$ to the equation\n$$\nx^2 - x y + y^2 = 2023.\n$$", "options": [], "answer": "The integer solutions are (17, 51), (-17, -51), (51, 17), (-51, -17), (34, 51), (-34, -51), (51, 34), (-51, -34), (-17, 34), (17, -34), (34, -17), and (-34, 17).", "solution": "Note that $2023 = 17^2 \\cdot 7$ and let $(x, y)$ be a solution. If we assume that $y$ is not divisible by $17$, there exists a number $a$ such that $a y \\equiv x \\pmod{17}$. We then have\n$$\n0 = x^2 - x y + y^2 \\equiv y^2 (a^2 - a + 1) \\pmod{17},\n$$\nhence $a^2 - a + 1 \\equiv 0 \\pmod{17}$. This implies that $a^6 \\equiv 1 \\pmod{17}$, because\n$$\na^6 - 1 = (a^3 - 1)(a^3 + 1) = (a^3 - 1)(a + 1)(a^2 - a + 1).\n$$\nOn the other hand, by Fermat's little theorem, $a^{16} \\equiv 1 \\pmod{17}$. Then $a^2 \\equiv a^2 \\cdot a^{16} \\equiv a^{18} \\equiv (a^6)^3 \\equiv 1 \\pmod{17}$, hence $a \\equiv \\pm 1 \\pmod{17}$. But for these two values of $a$ we get $a^2 - a + 1 \\equiv 2 - a \\equiv 2 \\mp 1 \\not\\equiv 0 \\pmod{17}$, a contradiction. Hence, $y$ must be divisible by $17$.\n\nIt follows that $x$ must also be divisible by $17$, and we look for solutions $(x, y) = (17u, 17v)$. Let $N(x, y) = x^2 - x y + y^2$ and note that\n$$\nN(x, y) = \\frac{(2x - y)^2 + 3y^2}{4}.\n$$\nThen $2023 = N(17u, 17v) = 17^2 N(u, v)$, iff $7 = N(u, v)$, or equivalently\n$$\n28 = (2u - v)^2 + 3v^2.\n$$\nBecause $v^2 \\le 28/3$ and $28$ is not a square, to find solutions to this equation we only need to consider $v \\in \\{\\pm 1, \\pm 2, \\pm 3\\}$. To a solution with negative $v$ there corresponds one with positive $v$, obtained by changing the signs of both, $u$ and $v$. Because $28 - 3 = 5^2$, $28 - 12 = 4^2$, and $28 - 27 = 1^2$, we have these three cases for solutions with positive $v$\n$$\nv = 1, \\quad 2u - v = \\pm 5, \\quad v = 2, \\quad 2u - v = \\pm 4, \\quad v = 3, \\quad 2u - v = \\pm 1.\n$$\nThe possibilities for solutions $(u, v)$ with positive $v$ are therefore\n$$\n(3, 1) \\quad (-2, 1) \\quad (3, 2) \\quad (-1, 2) \\quad (2, 3) \\quad (1, 3).\n$$\nThus we obtain $12$ solutions to the original equation, namely\n$$\n(x, y) = (17, 51), (34, 51), (-17, 34)\n$$\nand all the variants $(-x, -y)$, $(y, x)$, $(-y, -x)$ of these.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 33388, "subject": "Mathematics (Multi-modal)", "question": "Suppose $a_1, a_2, \\dots, a_n$ are positive numbers. Prove that the square root of the arithmetic mean of the numbers $a_i a_j$, $1 \\le i < j \\le n$ doesn't exceed the arithmetic mean of $a_k$, $k = 1, 2, \\dots, n$, with equality iff $a_1 = a_2 = \\dots = a_n$.", "options": [], "answer": "Detailed solution", "solution": "The claim is that\n$$\n\\frac{\\sum_{1 \\le i < j \\le n} a_i a_j}{\\binom{n}{2}} \\le \\left( \\frac{\\sum_{k=1}^{n} a_k}{n} \\right)^2 . \\text{ Equivalently,}\n$$\n$$\n2n \\sum_{1 \\le i < j \\le n} a_i a_j \\le (n-1) \\left( \\sum_{k=1}^{n} a_k^2 + 2 \\sum_{1 \\le i < j \\le n} a_i a_j \\right), \\text{ or}\n$$\n$$\n2 \\sum_{1 \\le i < j \\le n} a_i a_j \\le (n-1) \\sum_{k=1}^{n} a_k^2, \\text{ i.e.,}\n$$\n$$\n\\left( \\sum_{k=1}^{n} a_k \\right)^2 \\le n \\sum_{k=1}^{n} a_k^2,\n$$\nwhich is true by the Cauchy-Schwarz inequality. There is equality iff $a_1 = a_2 = \\dots = a_n$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33389, "subject": "Mathematics (Multi-modal)", "question": "Suppose $ABC$ is an equilateral triangle whose circumcircle $\\Gamma$ has radius $1$. Prove that if $P$ is within or on $\\Gamma$, then the product $|PA| \\cdot |PB| \\cdot |PC|$ does not exceed $2$. Also determine the points $P$ for which the product is equal to $2$.", "options": [], "answer": "Maximum product equals 2, attained exactly at the three points on the circumcircle diametrically opposite A, B, and C (equivalently, the images of A, B, and C under a sixty-degree rotation about the circumcenter).", "solution": "We will use complex numbers and suppose that $\\Gamma$ is centred at the origin so that $\\Gamma$ is the set of complex numbers $w$ such that $|w| = 1$. Moreover, w.l.o.g., we can suppose that $A = 1$, $B = \\omega$, $C = \\omega^2$, where $\\omega = e^{2\\pi i/3}$ is a cube root of unity and $1 + \\omega + \\omega^2 = 0$. Let the complex number $z$ stand for $P$. Then\n$$\n|PA| = |z - 1|, \\quad |PB| = |z - \\omega|, \\quad |PC| = |z - \\omega^2|,\n$$\nand so\n$$\n\\begin{aligned}\n|PA| \\cdot |PB| \\cdot |PC| &= |z-1||z-\\omega||z-\\omega^2| \\\\\n&= |(z-1)(z-\\omega)(z-\\omega^2)| \\\\\n&= |z^3 - 1| \\\\\n&\\le |z^3| + 1 \\quad (\\text{since } |a+b| \\le |a| + |b|) \\\\\n&= |z|^3 + 1 \\\\\n&\\le 2\n\\end{aligned}\n$$\nif $P$ is within or on $\\Gamma$, in which case $|z| \\le 1$.\n\nWe will now show that equality occurs exactly when $P$ is one of the three points on $\\Gamma$ that are obtained by a $60^\\circ$-rotation of $A, B, C$. Equality occurs above when $|z^3| = 1$ and $|z^3 - 1| = 2$, i.e. when $z^3$ is on $\\Gamma$ and has distance $2$ from the complex number $1$. This happens exactly when $z^3 = -1$. This equation has three solutions: $-1, -\\omega, -\\omega^2$. These three complex numbers are diametrically opposite $A, B, C$ on $\\Gamma$ and so can also be obtained by rotating $A, B, C$ by $60^\\circ$ about the circumcentre of triangle $ABC$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33390, "subject": "Mathematics (Multi-modal)", "question": "Let $S = \\mathbb{N} \\cup \\{1/n \\mid n \\in \\mathbb{N}\\}$ be the set of all positive integers and their reciprocals. A function $f : S \\to S$, defined on $S$ and with values in $S$, is called *semi-reciprocal* if $f(f(x)) = 1/x$ for all $x \\in S$.\n\na. Find a semi-reciprocal function.\n\nb. Show that for every semi-reciprocal function $f$ there is exactly one number $p \\in S$ such that $f(p) = p$.", "options": [], "answer": "One example: f(1) = 1 and for all integers n ≥ 1,\n- f(2n) = 2n + 1,\n- f(2n + 1) = 1/(2n),\n- f(1/(2n)) = 1/(2n + 1),\n- f(1/(2n + 1)) = 2n.\nFor any semi-reciprocal function, the unique fixed point is 1.", "solution": "We first note that if $f$ is a semi-reciprocal function and $f(1) = a \\in S$, then $f(a) = f(f(1)) = 1$. Hence, $a = f(1) = f(f(a)) = 1/a$, and so $a^2 = 1$. Since $S$ does not contain negative numbers, we must have $a = 1$, i.e. $f(1) = 1$ for each semi-reciprocal function $f$.\n\nIf $a \\in S$ and $b = f(a)$, the condition $f(f(x)) = 1/x$ implies\n$$\nf(b) = f(f(a)) = 1/a, \\quad f(1/a) = f(f(b)) = 1/b, \\quad f(1/b) = f(f(1/a)) = a,\n$$\ni.e., the function $f$ cyclically permutes the four numbers $a, b, 1/a, 1/b$:\n$$\na \\mapsto b \\mapsto \\frac{1}{a} \\mapsto \\frac{1}{b} \\mapsto a. \\qquad (5)\n$$\n\nTo solve (a) we construct a semi-reciprocal function $f$ by defining\n$$\n\\begin{aligned}\nf(1) &= 1 & f(2n) &= 2n + 1 & f(2n + 1) &= \\frac{1}{2n} \\\\\nf\\left(\\frac{1}{2n}\\right) &= \\frac{1}{2n + 1} & f\\left(\\frac{1}{2n + 1}\\right) &= 2n.\n\\end{aligned}\n$$\nfor all integers $n \\ge 1$. This settles part (a). More generally, such functions can be obtained from a partition of the positive integers greater than 1 into ordered pairs $(a, b)$ by applying (5). In the example given above, the pairs $(2n, 2n + 1)$ are used.\n\nTo finish part (b), we first note that we have seen above that $f(p) = p$ has the solution $p = 1$. We need to show that there is no other solution.\n\nSuppose $p \\in S$ satisfies $f(p) = p$. Because $f$ is semi-reciprocal, we obtain\n$$\np = f(p) = f(f(p)) = 1/p,\n$$\nhence $p^2 = 1$ and therefore $p = 1$, since $p \\in S$ is positive.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33391, "subject": "Mathematics (Multi-modal)", "question": "Let $ABCDE$ be a pentagon with $|AB| = |BC| = |CD| = |DE| = 1$, $\\angle ABC = \\angle CDE = 120^\\circ$ and $\\angle BCD = 100^\\circ$. Determine whether $|EA|$ is smaller, equal or larger than 1.", "options": [], "answer": "larger than 1", "solution": "We connect $C$ to $A$ and $E$. Because triangles $ABC$ and $CDE$ are isosceles with an angle of $120^\\circ$, we have $\\angle BAC = \\angle BCA = \\angle DCE = \\angle DEC = 30^\\circ$.\n\n![](attached_image_1.png)\n\nHence, $\\angle ACE = 40^\\circ$. Let $x = |AE|$ and $d = |CA| = |CE|$. The Cosine rule for $\\triangle CDE$ gives $d^2 = 2 - 2\\cos(120^\\circ) = 3$. The Cosine Rule for $\\triangle ACE$ then says $x^2 = 2d^2 - 2d^2 \\cos(40^\\circ) = 6(1 - \\cos(40^\\circ))$, and so $x > 1$ iff $\\cos(40^\\circ) < \\frac{5}{6}$. To show this, we consider a regular pentagon with side length 1 and draw two diagonals that start at the same vertex. Because the internal angles of a regular pentagon have measure $108^\\circ$, the angles are as indicated in the diagram below. Our aim is to prove $\\cos(36^\\circ) < 5/6$.\n\n![](attached_image_2.png)\n\nLetting $y = |CE| = |CA|$ and considering the perpendicular bisector of $EA$ in triangle $ACE$, we obtain $\\cos(72^\\circ) = \\cos(\\angle AEC) = \\frac{1}{2y}$. The Cosine Rule for triangle $ACE$ gives $1 = 2y^2 - 2y^2 \\cos(36^\\circ)$, hence $\\cos(36^\\circ) = 1 - \\frac{1}{2y^2}$. On the other hand, the Cosine Rule for triangle $ABC$ tells us $y^2 = 2 - 2\\cos(108^\\circ)$. Using $\\cos(72^\\circ) = -\\cos(108^\\circ)$, this implies $y^2 = 2 + 2\\cos(72^\\circ) = 2 + \\frac{1}{y}$. Because $y$ is opposite the largest angle in triangle $ABC$, it must be its largest side, i.e. $y > 1$. Therefore, $y^2 = 2 + \\frac{1}{y} < 3$. This then implies\n$$\n\\cos(36^\\circ) = 1 - \\frac{1}{2y^2} < 1 - \\frac{1}{6} = \\frac{5}{6}.\n$$\nFinally, we obtain $\\cos(40^\\circ) < \\cos(36^\\circ) < \\frac{5}{6}$ which shows that $|EA| = x > 1$ in the originally given pentagon.\n\n**Remark.** From triangle $ABC$ we obtain $1 = 1 + y^2 - 2y \\cos(36^\\circ)$ (Cosine Rule) and so $\\cos(36^\\circ) = \\frac{y}{2}$. Using our previous value, we get $\\frac{y}{2} = 1 - \\frac{1}{2y^2}$, hence, after multiplying by $2y$, $y^2 = 2y - \\frac{1}{y}$. Comparing this with an earlier calculation gives $2y - \\frac{1}{y} = 2 + \\frac{1}{y}$, i.e. $y^2 - y - 1 = 0$. The positive root of this quadratic is $y = \\frac{1+\\sqrt{5}}{2}$, the golden ratio. This gives us the precise value\n$$\n\\cos(36^\\circ) = \\frac{y}{2} = \\frac{1 + \\sqrt{5}}{4}\n$$\nwhich can easily be shown to be smaller than $5/6$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33392, "subject": "Mathematics (Multi-modal)", "question": "The triangle $ABC$ has circumcentre $O$ and circumcircle $\\Gamma$. Let $AI$ be a diameter of $\\Gamma$. The ray $AI$ extends to intersect the circumcircle $\\omega$ of $\\angle BOC$ for the second time at a point $P$.\nLet $AD$ and $IQ$ be perpendicular to $BC$, with $D$ and $Q$ on $BC$. Let $M$ be the midpoint of $BC$.\n\n1.\nProve that $|AD| \\cdot |QI| = |CD| \\cdot |CQ| = |BD| \\cdot |BQ|$.\n\n2.\nProve that $IM$ is parallel to $PD$.", "options": [], "answer": "Detailed solution", "solution": "a.\nWe denote the angles of $\\triangle ABC$ by $\\angle A$, $\\angle B$, $\\angle C$. Since $AI$ is a diameter, we have $\\angle ACI = \\angle ABI = 90^\\circ$. Also, $\\angle AIC = \\angle B$ (both standing on arc $AC$), and $\\angle CAI = \\angle CBI$ (both standing on arc $CI$). Therefore,\n\n![](attached_image_1.png)\n\n$\\triangle ACI \\sim \\triangle ADB \\sim \\triangle BQI$. Similarly, $\\triangle ABI \\sim \\triangle ADC \\sim \\triangle CQI$ and\n$$\n\\frac{|AC|}{|CI|} = \\frac{|AD|}{|DB|} = \\frac{|BQ|}{|QI|} \\quad \\text{as well as} \\quad \\frac{|AB|}{|BI|} = \\frac{|AD|}{|DC|} = \\frac{|CQ|}{|QI|}\n$$\nwhich gives $|AD| \\cdot |QI| = |CD| \\cdot |CQ| = |BD| \\cdot |BQ|$.\n\n\nb.\nSolution 1:\nLet $X$ denote the intersection point of $AI$ and $BC$. Then, by power of $X$ with respect to the circumcircle of $ABC$ (or $\\triangle AXB \\sim \\triangle CXI$) we have $|AX| \\cdot |XI| = |CX| \\cdot |XB|$. By power of $X$ with respect to the circumcircle of $CBO$, we have $|OX| \\cdot |XP| = |CX| \\cdot |XB|$. Combining both equations, we obtain\n$$\n|OX| \\cdot |XP| = |AX| \\cdot |XI| \\quad \\text{i.e.} \\quad \\frac{|AX|}{|OX|} = \\frac{|XP|}{|XI|}\n$$\n\n![](attached_image_2.png)\n\nBy the Intercept Theorem, or $\\triangle OMX \\sim \\triangle ADX$, we have\n$$\n\\frac{|AX|}{|OX|} = \\frac{|DX|}{|MX|}, \\quad \\text{hence} \\quad \\frac{|XP|}{|XI|} = \\frac{|DX|}{|MX|}\n$$\nThis implies similarity of triangles $MXI$ and $DXP$, hence $MI \\parallel DP$.\n\n\nSolution 2:\nSubstituting $|CD| = |BC| - |BD|$ and $|BQ| = |BC| - |CQ|$ in the equation $|CD| \\cdot |CQ| = |BD| \\cdot |BQ|$ from part (a) yields $|BD| = |CQ|$. Since $M$ is the midpoint of $BC$, it is then also the midpoint of $DQ$. We define $J$ on the extended line $QI$ such that $I$ is the midpoint of segment $QJ$. Then $MI \\parallel DJ$ (mid-line in $\\triangle DQJ$). It remains to prove that $J$ is on the line $DP$.\n\n![](attached_image_3.png)\n\nWe first prove that $I$ is the incentre of $\\triangle CPB$. Indeed, we have\n$\\angle CBP = \\angle COP$ and $\\angle BCP = \\angle BOP$ in $\\omega$\n$\\angle COP = 2\\angle CBI$ and $\\angle BOP = 2\\angle BCI$ in $\\Gamma$\nso $\\angle CBP = 2\\angle CBI$ and $\\angle BCP = 2\\angle BCI$ hence $BI$ and $CI$ are angle bisectors and $I$ is the incentre of $\\triangle CPB$.\nBecause $AI$ is a diameter of $\\Gamma$, $AC \\perp CI$ and $AB \\perp BI$. Therefore, $AC$ and $AB$ are external angle bisectors of $\\triangle CPB$ and so $A$ is an excentre.\n\nConsider the inradius and exradius given by $IN$ and $AL$, both perpendicular to $PC$. Then triangles $\\triangle PNI$ and $\\triangle PLA$ are similar, which implies\n$$\n\\frac{|PI|}{|PA|} = \\frac{|IN|}{|AL|} = \\frac{|IQ|}{|AD|} = \\frac{|IJ|}{|AD|}.\n$$\nBecause $IJ$ is parallel to $AD$, we have $\\angle PIJ = \\angle PAD$. Hence, triangles $\\triangle PIJ$ and $\\triangle PAD$ are similar and $P$, $J$, $D$ are collinear.\n\n\nSolution 3:\nFrom (a) we get $|BD| = |CQ|$, see Solution 2. This implies $|BQ| = |CD|$ and that $M$ is the midpoint of $QD$. We extend the line $QI$ to intersect $PD$ at $J$. To prove $MI \\parallel PD$, it is sufficient to show $|QI| = |IJ|$. This is equivalent to $\\frac{|QI|}{|AD|} = \\frac{|PI|}{|PA|}$, because $\\frac{|IJ|}{|AD|} = \\frac{|PI|}{|PA|}$ follows from $QJ \\parallel AD$.\n\n![](attached_image_4.png)\n\nUsing (a), we obtain\n$$\n\\frac{|QI|}{|AD|} = \\frac{|BD| \\cdot |BQ|}{|AD|^2} = \\frac{|BD| \\cdot |CD|}{|AD|^2} = \\cot B \\cot C.\n$$\n\nOn the other hand,\n$$\n\\frac{|PI|}{|PA|} = \\frac{[CPI]}{[CPA]} = \\frac{\\frac{1}{2}|CP| \\cdot |CI| \\sin \\angle PCI}{\\frac{1}{2}|CP| \\cdot |CA| \\sin \\angle PCA} = \\frac{|CI| \\sin \\angle PCI}{|CA| \\sin \\angle PCA},\n$$\nand $\\frac{|CI|}{|CA|} = \\cot \\angle CIA = \\cot B$, while\n$$\n\\begin{aligned} \\angle PCA &= 180^\\circ - \\angle CAO - \\angle CPO = 180^\\circ - \\angle ACO - \\angle CBO \\\\ &= 180^\\circ - \\angle ACO - \\angle OCB = 180^\\circ - \\angle C \\end{aligned}\n$$\nand so $\\angle PCI = \\angle PCA - 90^\\circ = 90^\\circ - \\angle C$. Hence\n$$\n\\frac{\\sin \\angle PCI}{\\sin \\angle PCA} = \\frac{\\sin (90^\\circ - \\angle C)}{\\sin (180^\\circ - \\angle C)} = \\frac{\\cos C}{\\sin C} = \\cot C.\n$$\nTherefore,\n$$\n\\frac{|PI|}{|PA|} = \\frac{|CI|}{|CA|} \\cdot \\frac{\\sin \\angle PCI}{\\sin \\angle PCA} = \\cot B \\cot C = \\frac{|QI|}{|AD|},\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33393, "subject": "Mathematics (Multi-modal)", "question": "Find all functions $f : \\mathbb{R} \\to \\mathbb{R}$ with the property that\n$$\nf(x)f(y) = (xy - 1)^2 f\\left(\\frac{x+y-1}{xy-1}\\right)\n$$\nfor all real numbers $x, y$ with $xy \\neq 1$.", "options": [], "answer": "All solutions are f(x) = 0 for all real x and f(x) = x^2 − x + 1 for all real x.", "solution": "Letting $x = 0, y = 1$ we get $f(1)f(0) = f(0)$, so $f(0) = 0$ or $f(1) = 1$.\n\n**Case 1:** $f(0) = 0$\nLetting $y = 0$ and $x = 1 - t$ we get $f(t) = 0$ in this case for all $t$. Indeed, this is a valid solution for our equation.\n\n**Case 2:** $f(0) \\neq 0$\nIn this case we have $f(1) = 1$. We first show that $f(x) \\neq 0$ for all $x$. Suppose $f(x) = 0$ for some $x \\neq 0, 1$, then\n$$\nf\\left(\\frac{x+y-1}{xy-1}\\right) = 0 \\quad \\text{for all } y \\neq \\frac{1}{x}. \\qquad (6)\n$$\nBut note that for any $t \\neq 1/x$,\n$$\nt = \\frac{x+y-1}{xy-1} \\iff y = \\frac{x+t-1}{xt-1}\n$$\nso by giving this value of $y$ in equation (6) we get $f(t) = 0$ for all $t \\neq 1/x$ provided that $\\frac{x+t-1}{xt-1} \\neq \\frac{1}{x}$. In particular, when $t = 1$ we have $t \\neq 1/x$ and $\\frac{x}{x-1} \\neq \\frac{1}{x}$ because $x^2 - x + 1 = (x - \\frac{1}{2})^2 + \\frac{3}{4} > 0$, hence $f(1) = 0$, which is not true in the current case. Therefore $f(x) \\neq 0$ for all $x$.\nLetting $y = 0$ in the original equation we get $f(x)f(0) = f(1-x)$. Hence for $x = \\frac{1}{2}$ we get $f(\\frac{1}{2})f(0) = f(\\frac{1}{2})$ and so $f(0) = 1$ since $f(\\frac{1}{2}) \\neq 0$.\n\n**One way** to find an explicit expression for $f$ starts with the observation that $f(0) = 1$ and $f(x)f(0) = f(1-x)$ imply $f(x) = f(1-x)$ for all $x$.\nFor any $x$ we let $y = 1 - x$ in the original equation, which is possible since $xy - 1 = -(x^2 - x + 1) \\neq 0$, and get\n$$\nf(x)^2 = (x^2 - x + 1)^2\n$$\nwhich means that $f(x) = \\pm(x^2 - x + 1)$ for all $x$, where the choice of sign may depend on $x$. If $x \\neq \\pm 1$ then letting $y = x$ in the original equation we get\n$$\nf(x)^2 = (x^2 - 1)^2 f\\left(\\frac{2x-1}{x^2-1}\\right) \\quad \\text{hence} \\quad f\\left(\\frac{2x-1}{x^2-1}\\right) \\ge 0 \\quad \\forall x \\ne \\pm 1.\n$$\nWe then note that $y = \\frac{2x-1}{x^2-1}$ is equivalent to $x^2y - 2x - y + 1 = 0$, or $x = \\frac{1 \\pm \\sqrt{y^2 - y + 1}}{y}$. Notice that for every $y$, we have $y^2 - y + 1 > 0$ and for each $y \\neq 0$ there is an $x \\neq \\pm 1$ satisfying the relation above. Hence $f(y) \\ge 0$ for all $y \\neq 0$, which implies $f(y) = y^2 - y + 1$.\n\nA **second way** to find this formula for $f$ starts with any $x \\neq \\pm 1$ so that we can define\n$$\ny = \\frac{2x - 1}{x^2 - 1}. \\qquad (7)\n$$\nWe then have $y(x^2 - 1) = 2x - 1$ which implies $y^2x^2 - 2xy = y^2 - y$ after multiplication by $y$. This can be rewritten as\n$$\n(xy - 1)^2 = y^2 - y + 1. \\qquad (8)\n$$\nMoreover, using expression (7) for $y$ we obtain\n$$\n\\frac{x+y-1}{xy-1} = \\frac{(x-1)(x^2-1) + 2x-1}{x(2x-1) - (x^2-1)} = \\frac{x(x^2-x+1)}{x^2-x+1} = x\n$$\nbecause $x^2 - x + 1 > 0$ for all $x$. Therefore, for any $x \\neq \\pm 1$ and $y$ given by (7), the original equation becomes\n$$\nf(x)f(y) = (y^2 - y + 1)f(x).\n$$\nSince $f(x) \\neq 0$, we obtain $f(y) = y^2 - y + 1$ for each $y$ of the form (7). Finally, given $y \\neq 0$ we can use (8) to find\n$$\nx = \\frac{1 \\pm \\sqrt{y^2 - y + 1}}{y}\n$$\nsuch that $x$ and $y$ are related by (7). This means that each non-zero $y$ can be expressed in the form (7), hence $f(y) = y^2 - y + 1$ for all $y \\neq 0$. As we know that $f(0) = 1$, this equation holds for all $y$.\nFinally we check that the function $f(x) = x^2 - x + 1$ satisfies the original functional equation.\n$$\n\\begin{align*} f(x)f(y) &= (x^2 - x + 1)(y^2 - y + 1) \\\\ &= (xy - 1)^2 - (xy - 1)(x + y - 1) + (x + y - 1)^2 \\\\ &= (xy - 1)^2 \\left( \\left( \\frac{x+y-1}{xy-1} \\right)^2 - \\left( \\frac{x+y-1}{xy-1} \\right) + 1 \\right) \\\\ &= (xy - 1)^2 f \\left( \\frac{x+y-1}{xy-1} \\right). \\end{align*}", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33394, "subject": "Mathematics (Multi-modal)", "question": "The points $A$, $B$, $P$, $Q$ are collinear, and $ABCD$ is a parallelogram. The lines $PD$ and $BC$ meet at $E$. The lines $QC$ and $AD$ meet at $F$. The lines $PF$ and $BC$ meet at $H$. The lines $QE$ and $AD$ meet at $G$.\nProve that $GH$ is parallel to $AB$.", "options": [], "answer": "Detailed solution", "solution": "The Intercept Theorem applied to $AG \\parallel BH$ and lines intersecting at $P$ gives\n$$\n\\frac{|PA|}{|PB|} = \\frac{|AF|}{|BH|} \\quad \\text{and} \\quad \\frac{|PA|}{|PB|} = \\frac{|AD|}{|BE|}, \\text{ hence } |AF| \\cdot |BE| = |BH| \\cdot |AD|.\n$$\n\n![](attached_image_1.png)\n\nConsidering lines that intersect at $Q$, we obtain in a similar way\n$$\n\\frac{|QA|}{|QB|} = \\frac{|AG|}{|BE|} \\quad \\text{and} \\quad \\frac{|QA|}{|QB|} = \\frac{|AF|}{|BC|}, \\text{ hence } |AF| \\cdot |BE| = |AG| \\cdot |BC|.\n$$\n\nTaking into account $|AD| = |BC|$, these two equations imply $|BH| = |AG|$. Since $AG$ and $BH$ are parallel, this implies that $ABHG$ is a parallelogram.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33395, "subject": "Mathematics (Multi-modal)", "question": "We are given a triangle *ABC* such that $\\angle BAC < 90^\\circ$. The point $D$ is on the opposite side of the line $AB$ to $C$ such that $|AD| = |BD|$ and $\\angle ADB = 90^\\circ$. Similarly, the point $E$ is on the opposite side of $AC$ to $B$ such that $|AE| = |CE|$ and $\\angle AEC = 90^\\circ$. The point $X$ is such that $ADXE$ is a parallelogram. Prove that $|BX| = |CX|$.", "options": [], "answer": "Detailed solution", "solution": "Since $ADXE$ is a parallelogram, we have $\\angle ADX = \\angle AEX$. This implies that $\\angle XDB = 90^\\circ - \\angle ADX = 90^\\circ - \\angle AEX = \\angle CEX$. Since triangle $ADB$ is isosceles and $ADXE$ is a parallelogram, we have $|DB| = |DA| = |XE|$. Similarly, $|EC| = |EA| = |XD|$. We conclude that triangles $XDB$ and $CEX$ are congruent by SAS and so $|BX| = |CX|$.\n\n![](attached_image_1.png)\nFirst we note that $\\angle DBA = \\angle DAB = \\angle ECA = \\angle EAC = 45^\\circ$. Since $ADXE$ is a parallelogram, we have $\\angle ADX + \\angle DAE = 180^\\circ$. Thus\n$$\n\\begin{align*}\n\\angle BDX &= 90^\\circ - \\angle ADX = 90^\\circ - (180^\\circ - \\angle DAE) = \\angle DAE - 90^\\circ \\\\\n&= \\angle DAE - (45^\\circ + 45^\\circ) = \\angle DAE - \\angle DAB - \\angle EAC \\\\\n&= \\angle BAC.\n\\end{align*}\n$$\nNext, note that $\\frac{|AB|}{|BD|} = \\sqrt{2} = \\frac{|AC|}{|AE|} = \\frac{|AC|}{|DX|}$. Thus $\\frac{|BD|}{|DX|} = \\frac{|AB|}{|AC|}$.\nCombining $\\angle BDX = \\angle BAC$ and $\\frac{|BD|}{|DX|} = \\frac{|AB|}{|AC|}$, we deduce that triangles $DBX$ and $ABC$ are similar. It follows that $\\angle DBX = \\angle ABC$ and so $\\angle XBC = \\angle DBA = 45^\\circ$. A similar argument shows that $\\angle XCB = 45^\\circ$. Thus the triangle $XBC$ is isosceles, and $|BX| = |CX|$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33396, "subject": "Mathematics (Multi-modal)", "question": "Suppose *ABC* is an isosceles triangle with $b = c$. Show that $4bc > a^2$. Give an example of a right-angled triangle with hypotenuse $a$ in which this inequality fails.", "options": [], "answer": "Example counterexample: a right triangle with sides a=41, b=40, c=9 (hypotenuse 41), for which 41^2 > 4·40·9.", "solution": "By the triangle inequality, $a < b + c$, hence $a < 2b$, using $b = c$. Therefore $a^2 < 4bc$, as required.\n\nIf $x > 1$, and $a = x^2 + 1$, $b = 2x$, $c = x^2 - 1$, then\n$$\nb^2 + c^2 = 4x^2 + (x^4 - 2x^2 + 1) = x^4 + 2x^2 + 1 = a^2,\n$$\nand so $a$, $b$, $c$ are side lengths of a right-angled triangle with hypotenuse $a$. Then\n$$\n\\begin{aligned}\na^2 - 4bc &= (x^2 + 1)^2 - 8x(x^2 - 1) \\\\\n&= x^4 - 8x^3 + 2x^2 + 8x + 1 \\\\\n&= x^3(x - 8) + 2x^2 + 8x + 1.\n\\end{aligned}\n$$\nClearly, the polynomial $x^3(x-8)+2x^2+8x+1$ is positive if $x$ is large enough, e.g., any $x \\ge 8$ will do. So, as long as $x \\ge 8$ we have a right-angled triangle in which $a^2 > 4bc$.\n\nAlternatively, we may find such examples as follows. If $a$ is the length of the hypotenuse of the right-angled triangle $ABC$, its area ($ABC$) is equal to $bc/2$. Hence, the desired inequality $a^2 > 4bc$ is equivalent to $a^2 > 8(ABC)$. If $h$ is the height of triangle $ABC$ on the hypotenuse $a$, then ($ABC$) = $ah/2$ and the desired inequality becomes $a > 4h$. In the diagram below, this means that $A$ should be on the semicircle but not above the dashed line.\n![](attached_image_1.png)\nTo make this more explicit, let the foot of the altitude from $A$ divide the hypotenuse into segments of length $p$ and $q$, and recall that $h^2 = pq = p(a-p)$. Thus, we want $a^2 > 16h^2 = 16p(a-p)$, i.e. $a^2 - 16pa + 16p^2 > 0$. This is equivalent to\n$$ \\left(\\frac{a}{p} - 8\\right)^2 > 48, \\text{ i.e. } \\left|\\frac{a}{p} - 8\\right| > 4\\sqrt{3}. $$\nAs $0 < p < a$ in our case, given $a$ we can choose any $p$ such that\n$$\n0 < p < \\frac{2 - \\sqrt{3}}{4} \\quad \\text{or} \\quad \\frac{2 + \\sqrt{3}}{4} < p < a.\n$$\nBecause $c^2 = p^2 + h^2 = p(p+q) = ap$ and $b^2 = aq = a(a-p)$, the value of $p$ determines $b = \\sqrt{a^2 - ap}$ and $c = \\sqrt{ap}$ for any given $a$. For example, with $a = 41$ and $p = 81/41$, we obtain $b = 40$ and $c = 9$. In this example, $a^2 = 1681 > 1440 = 4bc$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33397, "subject": "Mathematics (Multi-modal)", "question": "Prove that\n$$\nB = \\sum_{k=0}^{n} (-1)^k \\binom{n}{k}^2 = \\begin{cases} 0, & \\text{if } n \\text{ is odd,} \\\\ (-1)^{\\frac{n}{2}} \\binom{n}{\\frac{n}{2}}, & \\text{if } n \\text{ is even.} \\end{cases}\n$$", "options": [], "answer": "Detailed solution", "solution": "If $p, q$ are polynomials of $\\deg \\le n$ with coefficients $a_k, b_k$ respectively, then the coefficients of the product $pq$ may be found in terms of those of $p$ and $q$ as follows:\n$$\n\\begin{aligned}\np(x)q(x) &= \\sum_{i=0}^{n} a_i x^i \\sum_{j=0}^{n} b_j x^j = \\sum_{i=0}^{n} a_i b_j x^{i+j} \\\\\n&= \\sum_{k=0}^{2n} \\left( \\sum_{i+j=k} a_i b_j \\right) x^k = \\sum_{k=0}^{2n} \\left( \\sum_{i=0}^{k} a_i b_{k-i} \\right) x^k\n\\end{aligned}\n$$\n\nTo obtain expression $B$, apply this formula with\n$$\np(x) = (1 + x)^n = \\sum_{k=0}^{n} \\binom{n}{k} x^k \\quad \\text{and} \\quad q(x) = (1 - x)^n = \\sum_{k=0}^{n} (-1)^k \\binom{n}{k} x^k.\n$$\nThen\n$$\n\\sum_{k=0}^{2n} \\left( \\sum_{i=0}^{k} (-1)^i \\binom{n}{i} \\binom{n}{k-i} \\right) x^k = p(x)q(x) = (1-x^2)^n = \\sum_{r=0}^{n} (-1)^r \\binom{n}{r} x^{2r},\n$$\nso that, comparing coefficients, we see that, if $0 \\le k \\le 2n$,\n$$\n\\sum_{i=0}^{k} (-1)^i \\binom{n}{i} \\binom{n}{k-i} = \\begin{cases} 0, & \\text{if } k \\text{ is odd,} \\\\ (-1)^{\\frac{k}{2}} \\binom{n}{\\frac{k}{2}}, & \\text{if } k \\text{ is even.} \\end{cases}\n$$\nIn particular, taking $k = n$,\n$$\nB = \\sum_{k=0}^{n} (-1)^k \\binom{n}{k}^2 = \\begin{cases} 0, & \\text{if } n \\text{ is odd,} \\\\ (-1)^{\\frac{n}{2}} \\binom{n}{\\frac{n}{2}}, & \\text{if } n \\text{ is even.} \\end{cases}\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33398, "subject": "Mathematics (Multi-modal)", "question": "The positive integers $a, b, c, d$ satisfy\n$$\n(i) a + b + c + d = 2023\n$$\n$$\n(ii) 2023 \\mid ab - cd\n$$\n$$\n(iii) 2023 \\mid a^2 + b^2 + c^2 + d^2.\n$$\nAssuming that each of the numbers $a, b, c, d$ is divisible by 7, prove that each of the numbers $a, b, c, d$ is divisible by 17.", "options": [], "answer": "Detailed solution", "solution": "**Solution 1.** First note that $2023 = 7 \\cdot 17^2$. If $a, b, c, d$ are divisible by 7, there are positive integers $w, x, y, z$ such that\n$$\na = 7w, \\quad b = 7x, \\quad c = 7y, \\quad d = 7z\n$$\nand the given conditions on $a, b, c, d$ translate into\n$$\n(i) w + x + y + z = 17^2\n$$\n$$\n(ii) 17^2 \\mid wx - yz\n$$\n$$\n(iii) 17^2 \\mid w^2 + x^2 + y^2 + z^2.\n$$\nMultiplying (i) by $x$ and using (ii), we obtain\n$$\n0 \\equiv wx + x^2 + xy + xz \\equiv yz + x^2 + yx + xz \\equiv (x + y)(x + z) \\pmod{17^2}.\n$$\nBecause $w > 0$, (i) implies that $0 < x + y < 17^2$ and $0 < x + z < 17^2$. Since 17 is a prime number, we now see that both, $x + y$ and $x + z$, must be divisible by 17. Knowing this, we can conclude from (i) that $w + z$ and\n\n$w + y$ must also be divisible by 17. This means that $y \\equiv z \\equiv -w \\pmod{17}$ and $x \\equiv -y \\pmod{17}$, hence $w^2 \\equiv x^2 \\equiv y^2 \\equiv z^2 \\pmod{17}$. Using (iii) we now see that\n$$\n0 \\equiv w^2 + x^2 + y^2 + z^2 \\equiv 4w^2 \\pmod{17}.\n$$\nThis implies that $w$ is divisible by 17, hence $w \\equiv x \\equiv y \\equiv z \\equiv 0 \\pmod{17}$ as required.\n\n\n**Solution 2.** As we are allowed to assume $a, b, c, d$ are divisible by 7, then we can write $a = 7a', b = 7b', c = 7c', d = 7d'$. Dropping the primes, and noting $2023 = 7 \\cdot 17^2$ the problem requires us to investigate solutions to:\n(i) $a + b + c + d = 17^2$\n(ii) $17^2 \\mid ab - cd$\n(iii) $17^2 \\mid a^2 + b^2 + c^2 + d^2$.\nWe are required to show that $a, b, c, d$ are all multiples of 17. It turns out the only relevant special properties of 17 are that it is an odd prime, so we make the following more general claim.\nLet $p$ be an odd prime and let $a, b, c, d$ be positive integers such that\n(i) $a + b + c + d = p^2$\n(ii) $p^2 \\mid ab - cd$\n(iii) $p^2 \\mid a^2 + b^2 + c^2 + d^2$.\nThen all of $a, b, c, d$ are multiples of $p$. If we can prove this claim, the original problem is then solved by writing $p = 17$.\nAdding or subtracting twice criterion (ii) from criterion (iii) gives\n$$\n(a + b)^2 + (c - d)^2 \\equiv 0 \\pmod{p^2} \\\\\n(a - b)^2 + (c + d)^2 \\equiv 0 \\pmod{p^2}.\n$$\nUsing (i) to replace $a+b$ in the first equation by $-c-d$, and $c+d$ by $-a-b$ in the second gives\n$$\nc^2 + d^2 \\equiv a^2 + b^2 \\equiv 0 \\pmod{p^2}.\n$$\n\nSuppose for a contradiction that (without loss of generality given the symmetry of the equations) $a$ is not a multiple of $p$. Then, as $a$ and $p^2$ are relatively prime, there is a residue $i$ such that $b \\equiv ai \\pmod{p^2}$ and we have\n$a^2 + b^2 \\equiv a^2(1 + i^2) \\equiv 0 \\pmod{p^2}$ whence $i^2 = -1 \\pmod{p^2}$. It is clear that $i \\neq 0 \\pmod{p}$ and $i \\neq -1 \\pmod{p}$ so that $ai \\neq 0 \\pmod{p}$ and $(1+i)a \\neq 0 \\pmod{p}$. Since $b \\equiv ai \\pmod{p^2}$ and $a+b \\equiv (1+i)a \\pmod{p^2}$, it follows that neither $b$ nor $a+b$ are multiples of $p$.\nNow recall $c^2 + d^2 \\equiv (d+ic)(d-ic) \\equiv 0 \\pmod{p^2}$. We cannot have both $p \\mid d+ic$ and $p \\mid d-ic$ as that would imply $p \\mid d$ and hence $p \\mid c+d$, contradicting $a+b+c+d=p^2$. So one of the factors must be divisible by $p^2$. By swapping $c$ and $d$ if necessary, we may assume $p^2 \\mid d-ic$. Then we have $0 \\equiv a+b+c+d \\equiv (1+i)(a+c) \\pmod{p^2}$.\nAs $i \\neq -1 \\pmod{p}$, we can deduce that $a+c \\equiv 0 \\pmod{p^2}$. Now $a, c$ are both positive integers so $a+c \\ge p^2$. But then we have $0 < b+d = p^2-a-c \\le 0$, which is the required contradiction.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33399, "subject": "Mathematics (Multi-modal)", "question": "Suppose $a$, $b$, $c$, $d \\in [-1, 1]$. Prove that\n$$\n|ad + bc + ca - db| \\leq 2\n$$\nand determine the case of equality.", "options": [], "answer": "The bound |ad + bc + ca − db| ≤ 2 holds. Equality |ad + bc + ca − db| = 2 occurs exactly in the following cases:\n- a = b = ±1 and c = ±1 (with d arbitrary in [−1, 1]);\n- a = −b = ±1 and d = ±1 (with c arbitrary in [−1, 1]);\n- a = ±1, |b| < 1, and c = d = ±1;\n- b = ±1, |a| < 1, and c = −d = ±1.", "solution": "**Solution 1.** Note that\n$$\n\\begin{align*}\n(ad + bc + ca - db)^2 &= (a(c+d) + b(c-d))^2 \\\\\n&= a^2(c+d)^2 + 2ab(c^2-d^2) + b^2(c-d)^2 \\\\\n&\\leq (c+d)^2 + 2ab(c^2-d^2) + (c-d)^2 \\\\\n&= 2(c^2+d^2) + 2ab(c^2-d^2) \\\\\n&= 2[(1+ab)c^2 + (1-ab)d^2] \\\\\n&\\leq 2[(1+ab) + (1-ab)] \\quad (\\text{since } -1 \\leq ab \\leq 1) \\\\\n&= 4,\n\\end{align*}\n$$\nwhence\n$$\n|ad + bc + ca - db| \\leq 2.\n$$\n\nWhen $a^2 \\neq 1$, equality can only occur when we are in case (iii), hence $b^2 = 1$.\nThen $ab \\neq \\pm 1$ and equality in the second inequality occurs iff $c^2 = d^2 = 1$.\nWhen $b^2 \\neq 1$, equality can only occur when we are in case (ii), hence $a^2 = 1$.\nThen $ab \\neq \\pm 1$ and equality in the second inequality occurs iff $c^2 = d^2 = 1$.\nWhen $a^2 = b^2 = 1$, we either have $a = b = \\pm 1$ and then $ab = 1$, in which case equality in the second inequality occurs iff $c^2 = 1$, or we have $a = -b = \\pm 1$, hence $ab = -1$, and equality in the second inequality occurs iff $d^2 = 1$.\n\nEquality holds in the first inequality iff we are in one of the following four cases: (i) $a^2 = b^2 = 1$, or (ii) $a^2 = 1, c = d$, or (iii) $b^2 = 1, c = -d$, or (iv) $c = d = 0$. When $c = d = 0$, the second inequality is strict, so we are not interested in case (iv).\n---\nIn summary, equality occurs iff one of the following holds:\n$$\n\\begin{aligned}\na &= b \\quad \\text{and} \\quad a^2 = b^2 = c^2 = 1, \\text{ or} \\\\\nc &= -d \\quad \\text{and} \\quad b^2 = c^2 = d^2 = 1.\n\\end{aligned}\n$$\n**Solution 2.** Note that if $x$, $y$ are real numbers then\n$$\n|x + y| + |x - y| = 2 \\max(|x|, |y|).\n$$\nFor\n$$\n\\begin{aligned}\n(|x + y| + |x - y|)^2 &= (x + y)^2 + 2|x + y||x - y| + (x - y)^2 \\\\\n&= 2(x^2 + y^2) + 2|x^2 - y^2| \\\\\n&= 4 \\max(x^2, y^2) \\\\\n&= 4(\\max(|x|, |y|))^2.\n\\end{aligned}\n$$\nHence\n$$\n\\begin{aligned}\n|ad + bc + ca - db| &= |a(c+d) + b(c-d)| \\\\\n&\\leq |a| |c+d| + |b| |c-d| \\\\\n&\\leq |c+d| + |c-d| \\\\\n&= 2 \\max(|c|, |d|) \\\\\n&\\leq 2.\n\\end{aligned}\n$$\n\nThe case of equality can be determined in a way similar to Solution 1.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33400, "subject": "Mathematics (Multi-modal)", "question": "Suppose that $a$, $b$, $c > 0$ and $a^2 + b^2 + c^2 = 3$. Prove that\n$$\n\\frac{a}{(2a + 3)^2} + \\frac{b}{(2b + 3)^2} + \\frac{c}{(2c + 3)^2} \\le \\frac{3}{25}.\n$$", "options": [], "answer": "Detailed solution", "solution": "**Solution 1.** Observe that\n$$\n\\begin{aligned}\n\\frac{a}{(2a + 3)^2} &= \\frac{a}{4a^2 + 12a + 9} = \\frac{a}{4(a - 1)^2 + 20a + 5} \\\\\n&\\leq \\frac{a}{20a + 5} = \\frac{1}{20} \\cdot \\frac{4a}{4a + 1} = \\frac{1}{20} - \\frac{1}{20} \\cdot \\frac{1}{4a + 1}.\n\\end{aligned}\n$$\n\nSo, the LHS of the original inequality does not exceed\n$$\n\\frac{3}{20} - \\frac{1}{20} \\left( \\frac{1}{4a+1} + \\frac{1}{4b+1} + \\frac{1}{4c+1} \\right).\n$$\nIt now is sufficient to prove\n$$\n\\frac{1}{4a+1} + \\frac{1}{4b+1} + \\frac{1}{4c+1} \\ge \\frac{3}{5},\n$$\nbecause then\n$$\n\\frac{a}{(2a+3)^2} + \\frac{b}{(2b+3)^2} + \\frac{c}{(2c+3)^2} \\le \\frac{3}{20} - \\frac{1}{20} \\cdot \\frac{3}{5} = \\frac{3}{25}.\n$$\nBy the AM-HM or the Cauchy-Schwarz inequality,\n$$\n\\frac{1}{4a+1} + \\frac{1}{4b+1} + \\frac{1}{4c+1} \\ge \\frac{9}{4a + 4b + 4c + 3}.\n$$\nUsing $a^2 + b^2 + c^2 = 3$, the QM-AM inequality implies\n$$\n\\frac{a+b+c}{3} \\le \\sqrt{\\frac{a^2+b^2+c^2}{3}} = 1,\n$$\nhence $4a + 4b + 4c + 3 \\le 15$ and we obtain\n$$\n\\frac{1}{4a+1} + \\frac{1}{4b+1} + \\frac{1}{4c+1} \\ge \\frac{9}{15} = \\frac{3}{5},\n$$\nas required.\n\n\n**Solution 2.** Note that the function $f(x) = -x/(2x+3)^2$ is convex on the interval $[0, 3]$, since $f''(x) = \\frac{8(3-x)}{(2x+3)^4} \\ge 0$ for such $x$. Hence, we can use Jensen's inequality, $(f(a) + f(b) + f(c))/3 \\ge f((a+b+c)/3)$, and obtain\n$$\n\\frac{1}{3} \\left( \\frac{a}{(2a+3)^2} + \\frac{b}{(2b+3)^2} + \\frac{c}{(2c+3)^2} \\right) \\le \\frac{t}{(2t+3)^2},\n$$\nwhere $t = \\frac{a+b+c}{3}$. The QM-AM inequality implies $t \\le \\sqrt{\\frac{a^2+b^2+c^2}{3}} = 1$. Using this and $(2t+3)^2 \\ge (2t+3)^2 - (2t-2)^2 = 20t + 5 = 5(4t+1)$, we get\n$$\n\\frac{t}{(2t+3)^2} \\le \\frac{t}{5(4t+1)} = \\frac{1}{20} \\left( 1 - \\frac{1}{4t+1} \\right) \\le \\frac{1}{20} \\left( 1 - \\frac{1}{5} \\right) = \\frac{1}{25}\n$$\nwhich gives the desired inequality.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33401, "subject": "Mathematics (Multi-modal)", "question": "Suppose $Q = ABCD$ is a cyclic quadrilateral. Prove that its longest diagonal doesn't exceed $\\sqrt{2}$ times its longest side, with equality holding iff $Q$ is a square.", "options": [], "answer": "Detailed solution", "solution": "Let $a = |AB|$, $b = |BC|$, $c = |CD|$, $d = |DA|$ be the side lengths of $Q$, and $f = |AC|$, $g = |BD|$ the lengths of its diagonals. It's well-known and easy to prove that\n$$\nf^2 = \\frac{ab(c^2 + d^2) + cd(a^2 + b^2)}{ab + cd},\n$$\nand\n$$\ng^2 = \\frac{ad(b^2 + c^2) + bc(a^2 + d^2)}{ad + bc}.\n$$\nFor instance, to obtain the formula for $g$, apply the Cosine Rule in each of the triangles $ABD$ and $BCD$. Then\n$$\n\\cos A = \\frac{a^2 + d^2 - g^2}{2ad}, \\quad \\cos C = \\frac{b^2 + c^2 - g^2}{2bc}.\n$$\nBut, since $Q$ is cyclic, $\\cos A = -\\cos C$, whence\n$$\n\\begin{aligned}\n0 &= 2abcd(\\cos A + \\cos C) \\\\\n &= bc(a^2 + d^2 - g^2) + ad(b^2 + c^2 - g^2) \\\\\n &= bc(a^2 + d^2) + ad(b^2 + c^2) - (ad + bc)g^2.\n\\end{aligned}\n$$\nTherefore\n$$\ng^2 = \\frac{ad(b^2 + c^2) + bc(a^2 + d^2)}{ad + bc},\n$$\ni.e., $g^2 = \\lambda(a^2 + d^2) + \\mu(b^2 + c^2)$, where\n$$\n\\lambda = \\frac{bc}{ad + bc}, \\quad \\mu = \\frac{ad}{ad + bc},\n$$\nso that $\\lambda, \\mu$ are positive numbers that sum to 1. Thus $g^2$ is a convex sum of $a^2 + d^2$ and $b^2 + c^2$, and so $g^2 \\le \\max(a^2 + d^2, b^2 + c^2) \\le 2\\max(a^2, d^2, b^2, c^2)$, whence\n$$\ng \\le \\sqrt{2} \\max(a, b, c, d).\n$$\n\nSuppose $a = |AB|$ is the longest side, and the diagonal $g$ is equal to $\\sqrt{2}a$. Then\n$$\n2a^2 = \\lambda(a^2 - d^2) + \\mu(2a^2 - b^2 - c^2) = 0.\n$$\nBut $0 < \\lambda, \\mu$ and $a^2 \\ge \\max(b^2, c^2, d^2)$. Hence $d = b = c = a$ and $Q$ is a rhombus. Because $Q$ is cyclic, it must then be a square.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33402, "subject": "Mathematics (Multi-modal)", "question": "Caitlin and Donal play a game called *Basketball Shoot-Out*. The game consists of 10 rounds. In each round, Caitlin and Donal both throw a ball simultaneously at each other's basket. If a player's ball falls into the basket, that player scores one point; otherwise, they score zero points. The scoreboard shows the complete sequence of points scored by each player in each of the 10 rounds of the game.\nIt turns out that Caitlin has scored at least as many points in total as Donal after every round of the game. Prove the number of possible scoreboards is divisible by 4, but is not divisible by 8.", "options": [], "answer": "Detailed solution", "solution": "We can represent the scoreboard by a $2 \\times n$ binary matrix, e.g.,\n$$\n\\begin{bmatrix} 0 & 1 & 0 & 1 \\\\ 0 & 0 & 1 & 1 \\end{bmatrix}.\n$$\nThe problem is then asking for the number of $2 \\times n$ binary matrices such that, for every $1 \\le t \\le n$, the first $t$ elements in the first row always contain at least as many 1s as the first $t$ elements in the second row.\nDenote the number of possible $2 \\times n$ scoreboards by $T_n$. We will develop a recursion for $T_n$. First, we have $T_1 = 3$, as the possible $2 \\times 1$ scoreboards are\n$$\n\\begin{bmatrix} 0 \\\\ 0 \\end{bmatrix} \\quad \\begin{bmatrix} 1 \\\\ 1 \\end{bmatrix} \\quad \\begin{bmatrix} 1 \\\\ 0 \\end{bmatrix}.\n$$\nNext, for any $0 \\le k \\le n$ define $T_{n,k}$ to be the number of $2 \\times n$ scoreboards which satisfy the conditions of the problem such that the top row contains $k$ more 1s than the bottom row. When $k < 0$ or $n < k$, we define $T_{n,k} = 0$. We then have $T_n = \\sum_k T_{n,k}$. From the above list of $2 \\times 1$ scoreboards we find\n$$\nT_{1,0} = 2 \\quad \\text{and} \\quad T_{1,1} = 1.\n$$\nFor $n \\ge 1$ and any $k \\ge 0$ we have\n$$\nT_{n+1,k} = T_{n,k-1} + 2T_{n,k} + T_{n,k+1} \\quad (9)\n$$\nwhere the first term on the RHS is obtained by adding $[\\begin{smallmatrix} 1 \\\\ 0 \\end{smallmatrix}]$ to the existing $2 \\times n$ scoreboard if $T_{n,k-1} \\ne 0$, the second term on the RHS is obtained by adding $[\\begin{smallmatrix} 0 \\\\ 0 \\end{smallmatrix}]$ or $[\\begin{smallmatrix} 1 \\\\ 1 \\end{smallmatrix}]$ to the existing $2 \\times n$ scoreboard if $T_{n,k} \\ne 0$, and the third term on the RHS is obtained by adding $[\\begin{smallmatrix} 0 \\\\ 1 \\end{smallmatrix}]$ to the existing $2 \\times n$ scoreboard if $T_{n,k+1} \\ne 0$. The recursion (9) is even correct for $n = 0$ if we set $T_{0,0} = 1$.\n\nAdding equations (9) for $0 \\le k \\le n + 1$, we obtain\n$$\n\\sum_{k=0}^{n+1} T_{n+1,k} = 4 \\sum_{k=0}^{n} T_{n,k} - T_{n,0}, \\qquad (10)\n$$\nwhich, using the observation that $T_n = \\sum_{k=0}^n T_{n,k}$, yields\n$$\nT_{n+1} = 4T_n - T_{n,0} \\quad \\text{for } n \\ge 1. \\qquad (11)\n$$\nWe can now proceed in two different ways. The **first way** is a brute force calculation modulo 8 for which we use (9) and $T_n = \\sum_{k=0}^n T_{n,k}$:\n\n| $T_{n,k}$ | $k$ | | | | | | | | | | | | | |\n|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|\n| $n$ | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | $T_n$ |\n| 0 | 1 | | | | | | | | | | | | 1 |\n| 1 | 2 | 1 | | | | | | | | | | | 3 |\n| 2 | 5 | 4 | 1 | | | | | | | | | | 2 |\n| 3 | 6 | 6 | 6 | 1 | | | | | | | | | 3 |\n| 4 | 2 | 0 | 3 | 0 | 1 | | | | | | | | 6 |\n| 5 | 4 | 5 | 6 | 4 | 2 | 1 | | | | | | | 6 |\n| 6 | 5 | 4 | 5 | 0 | 1 | 4 | 1 | | | | | | 4 |\n| 7 | 6 | 2 | 6 | 6 | 6 | 2 | 6 | 1 | | | | | 3 |\n| 8 | 6 | 0 | 4 | 0 | 4 | 0 | 7 | 0 | 1 | | | | 6 |\n| 9 | 4 | 2 | 0 | 0 | 0 | 3 | 6 | 0 | 2 | 1 | | | 2 |\n| 10 | 2 | 0 | 2 | 0 | 3 | 4 | 7 | 0 | 5 | 4 | 1 | | 4 |\n\nFrom this table we see that $T_{10} \\equiv 4 \\pmod 8$, which is the required result.\n\nA **second way** is to prove that $T_{n,0}$ is the $(n+1)$-th Catalan number, i.e.,\n$$\nT_{n,0} = C_{n+1} = \\frac{1}{n+2} \\binom{2n+2}{n+1}.\n$$\nTo show this, we describe a bijection between the set of $2 \\times n$ scoreboards counted by $T_{n,0}$, i.e. those which satisfy the conditions of the problem and for which the top row contains the *same* number of 1s as the bottom row, and the set of North-East lattice paths (also known as Dyck paths or mountain ranges if rotated by 45°) in the plane from $(0,0)$ to $(n+1, n+1)$ not going below the line $y = x$ where “North” is the step $(0,1)$ and “East” is the step $(1,0)$.\nTo do this, we transform such a $2 \\times n$ scoreboard into a North-East lattice path via the following procedure: we start with a North step from $(0,0)$ and then read each subsequent pair of steps from the next column of the scoreboard, using the conventions that\n(a) first we perform the step for the top row element, where a 1 in the top row corresponds to a North step and a 0 in the top row corresponds to an East step, and\n(b) then we perform the step for the bottom row element, where a 1 in the bottom row corresponds to an East step and a 0 in the top row corresponds to a North step.\nAt the end, we perform a final East step to end at the point $(n+1, n+1)$.\n![](attached_image_1.png)\nIt is easily checked that the generated paths are precisely the North-East lattice paths in the plane from $(0,0)$ to $(n+1, n+1)$ not going below the line $y=x$, which are counted by the $(n+1)$-th Catalan number $C_{n+1}$. Equivalently and equally well-known is that the Catalan number $C_n$ counts the number of so-called Dyck Words of length $2n$. A Dyck Word based on the two letters $N$ and $E$ is a string of length $2n$ that consists of $n$ letters $N$ and $n$ letters $E$, such that no initial segment has more $E$'s than $N$'s. The Dyck Word of the above example would be $NENNNNEENEE$ and from the procedure described above it is clear how Dyck Words correspond to the scoreboards we consider.\nEquation (11) now turns into\n$$\nT_{n+1} = 4T_n - C_{n+1} \\quad \\text{for } n \\ge 1.\n$$\nThis is valid for $n=0$ as well, since $T_1 = 3 = 4 - C_1 = 4T_0 - C_1$. A straightforward induction then shows that\n$$\nT_n = 4^n - \\sum_{j=0}^{n-1} 4^j C_{n-j}, \\quad \\text{for every } n \\ge 1.\n$$\nThe statement of the problem follows since $C_{10} + 4C_9 = 16796 + 4 \\cdot 4862$ is divisible by 4 but not by 8.\nIt is convenient to split each round into two throws, with Caitlin throwing before Donal. For $k \\ge 1$ we let $c(2k-1) \\in \\{0, 1\\}$ be the score of Caitlin at throw $2k-1$ and $d(2k) \\in \\{0, 1\\}$ be the score of Donal at throw $2k$. The first column of the scoreboard contains $c(1)$ and $d(2)$ and, more generally, column $k$ contains $c(2k-1)$ and $d(2k)$. Finally, the total scores after $t$ throws are $C(t) = \\sum_{i=1}^{t} c(i)$ for Caitlin and $D(t) = \\sum_{i=1}^{t} d(i)$ for Donal, where we understand that $c(2k) = d(2k-1) = 0$. We define a sequence $W_t$ for $t \\ge 0$ by letting $W_0 = 0$ and, for $t \\ge 1$,\n$$\nW_t = \\begin{cases} 2(C(t) - D(t)) & \\text{if } t \\equiv 0 \\pmod 2 \\\\ 2(C(t) - D(t)) - 1 & \\text{if } t \\equiv 1 \\pmod 2 \\end{cases}\n$$\nBy inspecting all possibilities, it is easy to see that $|W_t - W_{t-1}| = 1$ for all $t \\ge 1$ and that\n$$\nW_t - W_{t-1} = \\begin{cases} +1 & \\text{if } t \\text{ is odd and } c(t) = 1, \\text{ or } t \\text{ is even and } d(t) = 0 \\\\ -1 & \\text{if } t \\text{ is odd and } c(t) = 0, \\text{ or } t \\text{ is even and } d(t) = 1. \\end{cases}\n$$\nThis implies that the scoreboard is completely determined by the sequence of differences $(W_t - W_{t-1})_{t \\ge 1}$. We note also that $|W_t| \\le t$ for all $t \\ge 0$ and that $W_t \\equiv t \\pmod 2$.\nComparing with Solution 1, we note that the Dyck Words mentioned there turn into the sequence $(W_t - W_{t-1})_{t \\ge 1}$ by removing the starting N and the trailing E, and then replacing N by +1 and E by -1.\nWhen we plot the points $(t, W_t)$ for $0 \\le t \\le 2n$ and connect neighbours by a straight line segment, we obtain a mountain range that is obtained from the North-East lattice path in Solution 1 by removing the initial North step and the terminal East step. For this reason, we will speak about *paths* when we deal with sequences $(W_t)_{1 \\le t \\le T}$.\n$$\nn = 4 \\quad \\begin{bmatrix} 0 & 1 & 0 & 1 \\\\ 0 & 0 & 1 & 1 \\end{bmatrix} \\quad \\begin{array}{c|cccccc} t & 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 \\\\ \\hline W_t & 0 & -1 & 0 & 1 & 2 & 1 & 0 & 1 & 0 \\end{array}\n$$\n![](attached_image_2.png)\nThere are clearly $2^T$ possible paths for the first $T$ throws, because we can choose the differences $W_t - W_{t-1}$ freely from $\\{-1, 1\\}$. We say a path is *feasible* if $W_t \\ge 0$ for all even $t$ between 0 and $T$ inclusive, which is the criterion in the question. That is the same as requiring $W_t \\ge -1$ for all (odd or even) $0 \\le t \\le T$, allowing for the possibility that at some even time point, Caitlin has the same score as Donal, misses a throw and then Donal also misses.\n\nFor $T \\ge 0$ and $x \\in \\mathbb{Z}$, we define $F_{T,x}$ to be the number of feasible paths between 0 and $T$ such that $W_T \\ge x$. These are paths that start at (0, 0) and end at (T, y) for some $y \\ge x$.\nNote that $F_{T,x} = F_{T,-1}$ for all $x \\le -1$ and $F_{T,x} = 0$ for $T < x$ since $|W_T| \\le T$. Note also that we always have $y \\equiv T \\pmod 2$, hence $F_{T,x} = F_{T,x-1}$ if $x \\equiv T \\pmod 2$. The relationship to $T_{n,k}$ and $T_n$ from Solution 1 is\n$$\nF_{2n,2r} = \\sum_{k=r}^{n} T_{n,k} \\quad \\text{and} \\quad F_{2n,0} = T_n. \\qquad (12)\n$$\nThe question requires us to show that\n$$\nF_{20,0} \\equiv 4 \\pmod{8}.\n$$\nWe will proceed in two different ways from here. The **first way** will be based on a recurrence relation for $F_{t,x}$. From the definition it is clear that\n$$\nF_{0,x} = \\begin{cases} 1 & \\text{if } x \\le 0 \\\\ 0 & \\text{if } x > 0. \\end{cases}\n$$\nFor $t > 0$ and $x \\ge -1$ satisfying $x \\equiv t \\pmod 2$ we have\n$$\nF_{t,x} = F_{t-1,x-1} + F_{t-1,x+1}. \\qquad (13)\n$$\nTo see this, recall that $F_{t,x}$ counts feasible paths for which $W_t \\ge x$. The most recent throw could either have contributed +1 (in which case $W_{t-1} \\ge x-1$) or -1 (in which case $W_{t-1} \\ge x+1$). The claim is the sum of these two cases. Note that when $t$ is odd and $x = -1$ equation (13) reads $F_{t-1} = 2F_{t-1,0}$, because $F_{t-1,-2} = F_{t-1,-1} = F_{t-1,0}$ as observed above. This is in line with the observation that, for feasible paths, $W_{t-1} \\ge -2$ actually means $W_{t-1} \\ge 0$ when $t$ is odd.\nEquation (13) is required only for even $t$, so we may use the double-step relation for $t \\ge 1$ and $x \\ge 0$:\n$$\nF_{2t,2x} = F_{2t-2,2x-2} + 2F_{2t-2,2x} + F_{2t-2,2x+2}, \\qquad (14)\n$$\nobtained from applying equation (13) twice. Using (12), this can be seen to be equivalent to the recurrence equation (9) from Solution 1. For $x = 0$ equation (14) becomes\n$$\nF_{2t,0} = 3F_{2t-2,0} + F_{2t-2,2},\n$$\nbecause $F_{2t-2,-2} = F_{2t-2,0}$ as explained above. One possibility to finish now is to calculate $F_{20,0} \\pmod 8$ using (14):\n\n| $F_{2t,2x}$ | 0 | 2 | 4 | 6 | 8 | 10 |\n|---|---|---|---|---|---|---|\n| 0 | 1 |\n| 2 | 3 | 1 |\n| 4 | 2 | 5 | 1 |\n| 6 | 3 | 5 | 7 | 1 |\n| 8 | 6 | 4 | 4 | 1 | 1 |\n| 10 | 6 | 2 | 5 | 7 | 3 | 1 |\n| 12 | 4 | 7 | 3 | 6 | 6 |\n| 14 | 3 | 5 | 3 | 5 |\n| 16 | 6 | 0 | 0 |\n| 18 | 2 | 6 |\n| 20 | 4 |\n\nThe number 4 in the bottom row of the table proves the result.\n\nA **second way** to finish the solution is based on the reflection principle from the theory of random walks, instead of using a recurrence relation for $F_{t,x}$. The reflection principle can be described as follows. Let $t \\ge 0$, $H < 0$, and $x > H$ be integers with $t \\equiv x \\pmod 2$. Then the following are equal:\n* The number of paths starting with $W_0 = 0$ and ending at $W_t = x$ having touched $H$ at least once.\n* The number of paths starting with $W_0 = 0$ and ending at $W_t = 2H - x$.\nThe proof involves setting up a bijection between the two classes of path, recognising that in each case there is a first time point $\\tau$ at which $W_\\tau = H$, and reflecting each path after time $\\tau$ in the horizontal line at level $H$.\n![](attached_image_3.png)\nThe usefulness of the reflection principle comes from the fact that it is easier to count the paths of the second kind. If a path starting with $W_0 = 0$ and ending at $W_t = 2H - x$ has $u$ up steps and $d$ down steps, then $u + d = t$.\n\nand $u - d = 2H - x$. Hence, $u = (2H + t - x)/2 = H + \\frac{t-x}{2}$. Such a path is determined by the position of the up steps, hence their number is equal to the binomial coefficient\n$$\n\\binom{t}{u} = \\binom{t}{H + \\frac{t-x}{2}}.\n$$\nThe reflection principle implies that this number is also equal to the number of paths starting with $W_0 = 0$ and ending at $W_t = x$ having touched $H$ at least once.\nSubtracting this from the number of all paths ending at $W_t = x$, which is equal to $\\binom{t}{(t-x)/2}$, we obtain that the number of paths that start at $W_0 = 0$, end at $W_t = x$, and for which $W_s > H$ for all $0 \\le s \\le t$, is equal to\n$$\n\\binom{t}{\\frac{t-x}{2}} - \\binom{t}{H + \\frac{t-x}{2}}.\n$$\nIn particular, taking $H = -2$ and $x = t - 2k$, this expression becomes\n$$\n\\begin{aligned} \\binom{t}{k} - \\binom{t}{k-2} &= \\left( \\binom{t}{k} + \\binom{t}{k-1} \\right) - \\left( \\binom{t}{k-1} + \\binom{t}{k-2} \\right) \\\\ &= \\binom{t+1}{k} - \\binom{t+1}{k-1}. \\end{aligned}\n$$\nThis is the number of paths reaching $W_t = x$ without touching $-2$, which are exactly the feasible paths. Counting the feasible paths ending at $W_t \\ge t - 2k$ and subtracting those ending at $W_t \\ge t - 2k + 2$ we have\n$$\nF_{t,t-2k} - F_{t,t-2k+2} = \\binom{t+1}{k} - \\binom{t+1}{k-1}. \\quad (15)\n$$\nBecause $F_{t,t+2} = 0$, using a telescoping sum that involves equation (15) for $k$ replaced successively by $k, k-1, k-2, \\dots, 0$, we obtain\n$$\nF_{t,t-2k} = \\binom{t+1}{k} \\quad (16)\n$$\nfor $t \\ge 0$ and integers $k \\le (t+1)/2$. Substituting $t=20$ and $k=10$ gives\n$$\nF_{20,0} = \\binom{21}{10} = \\frac{21!}{10!11!}.\n$$\nIt is sufficient to show that $v_2(F_{20,0}) = 2$, where $v_2(x)$ is the 2-adic valuation, that is, the highest power of 2 dividing $x$. With the aid of Legendre's formula, $v_p(n!) = \\sum_{i \\ge 1} \\lfloor \\frac{n}{p^i} \\rfloor$, this can be calculated as\n$$\nv_2 \\left( \\frac{21!}{10!11!} \\right) = v_2(21!) - v_2(10!) - v_2(11!) = 18 - 8 - 8 = 2.\n$$\n\nAlternatively, after some numerical work, one may spot formula (16) directly. With the aid of the recurrence (13), this formula can be proved by induction. When $t = 0$, after recalling that $\\binom{n}{k} = 0$ for negative $k$, formula (16) is clear by definition for all $k \\le 0$. For $t \\ge 1$, using (13), we obtain\n$$F_{t,x} = F_{t-1,x-1} + F_{t-1,x+1} = \\binom{t}{(t-x)/2} + \\binom{t}{(t-x)/2-1} = \\binom{t+1}{(t-x)/2}$$\n$$F_{t,-1} = 2F_{t-1,0} = 2\\binom{t}{(t-1)/2} = \\binom{t}{(t-1)/2} + \\binom{t}{(t+1)/2} = \\binom{t+1}{(t+1)/2}.$$\nThis concludes the proof of formula (16) by induction.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33403, "subject": "Mathematics (Multi-modal)", "question": "Suppose $ABCD$ is a cyclic quadrilateral, with side lengths $a = AB$, $b = BC$, $c = CD$, $d = DA$. Prove that its area ($ABCD$) doesn't exceed the following expression\n$$\n\\frac{ab + ac + ad + bc + bd + cd}{6},\n$$\nwith equality iff the quadrilateral is a square.", "options": [], "answer": "Detailed solution", "solution": "$$\n(ABCD) = \\sqrt{(\\sigma - a)(\\sigma - b)(\\sigma - c)(\\sigma - d)},\n$$\nwhence pairing the factors in the expression $\\sqrt{(\\sigma - a)(\\sigma - b)(\\sigma - c)(\\sigma - d)}$ in three different ways, and noting that by AM-GM, e.g.,\n$$\n\\sqrt{(\\sigma - a)(\\sigma - b)} \\le \\frac{2\\sigma - a - b}{2} = \\frac{d + c}{2},\n$$\nwe see that\n$$\n(ABCD) \\le \\frac{(a + b)(c + d)}{4},\n$$\nwith equality iff $a = b$ and $c = d$, that\n$$\n(ABCD) \\le \\frac{(a + d)(b + c)}{4},\n$$\nwith equality iff $a = d$ and $b = c$, and that\n$$\n(ABCD) \\le \\frac{(a + c)(b + d)}{4},\n$$\nwith equality iff $a = c$ and $b = d$. Consequently, combining these,\n$$\n3(ABCD) \\le \\frac{(a+b)(c+d)}{4} + \\frac{(a+c)(b+d)}{4} + \\frac{(a+d)(b+c)}{4} = \\frac{ab + ac + ad + bc + bd + cd}{2},\n$$\nwith equality iff $a = b = c = d$.", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 33404, "subject": "Mathematics (Multi-modal)", "question": "For any two numbers $x, y$, we denote $N(x, y) = x^2 - xy + y^2$.\n\na. Prove the product formula $N(a, b)N(x, y) = N(ax - by, ay + bx - by)$.\n\nb. Show that the equation $N(x, y) = 2023 - 490z^2$ has at least 16 distinct solution triples $(x, y, z)$ with integers $x, y, z \\ge 0$.", "options": [], "answer": "Part (a): N(a, b) N(x, y) = N(ax − by, ay + bx − by).\nPart (b): Sixteen distinct nonnegative integer solutions (x, y, z) include:\n- z = 2: (3, 9, 2), (6, 9, 2), (9, 3, 2), (9, 6, 2)\n- z = 1: (4, 41, 1), (41, 4, 1), (31, 44, 1), (44, 31, 1), (44, 13, 1), (13, 44, 1), (37, 41, 1), (41, 37, 1)\n- z = 0: (17, 51, 0), (51, 17, 0), (34, 51, 0), (51, 34, 0)", "solution": "a. The formula in part (a) can be checked by direct calculation\n$$\n(x^2 - xy + y^2)(a^2 - ab + b^2) = (xa - by)^2 - (xa - by)(ay + bx - by) + (ay + bx - by)^2.\n$$\nAlternatively, we may let $\\xi, \\bar{\\xi}$ be the complex roots of the quadratic $x^2 - x + 1$, so that $\\xi^2 = \\xi - 1$, as well as $\\bar{\\xi}^2 = \\bar{\\xi} - 1$, and $N(x, y) = (x - \\xi y)(x - \\bar{\\xi} y)$. Then\n$$\n\\begin{aligned}\nN(a, b)N(x, y) &= (x^2 - xy + y^2)(a^2 - ab + b^2) \\\\\n&= (x - \\xi y)(x - \\bar{\\xi} y)(a - \\xi b)(a - \\bar{\\xi} b) \\\\\n&= (xa - \\xi ya - \\xi xb + \\xi^2 yb)(xa - \\bar{\\xi} ya - \\bar{\\xi} xb - \\bar{\\xi}^2 yb)\n\\end{aligned}\n$$\nobtained by multiplying the first and third brackets, and second with fourth brackets. Now using $\\xi^2 = \\xi - 1$ and $\\bar{\\xi}^2 = \\bar{\\xi} - 1$ we get\n$$\nN(a, b)N(x, y) = N(ax - by, ay + bx - by).\n$$\n\nb. To solve (b) we note that $N(x, y) = x^2 - xy + y^2 = (x - \\frac{1}{2}y)^2 + \\frac{3}{4}y^2 \\geq 0$, hence, for any solution triple $(x, y, z)$ we have $490z^2 \\leq 2023$ and so $z \\leq 2$. If $z = 2$ then $2023 - 490 \\cdot 4 = 63 = 3^2 \\cdot 7$. Thus $3^2|N(x, y)$. Writing $x = 3u$ and $y = 3v$, we would like to solve\n$$\n7 = N(u, v), \\quad \\text{or equivalently} \\quad 28 = (2u - v)^2 + 3v^2.\n$$\nIt is easy to find the following four non-negative solutions, see Problem 21:\n*(u, v) = (1, 3), (2, 3), (3, 1), (3, 2), giving rise to*\n*(x, y) = (3, 9), (6, 9), (9, 3), (9, 6).\n\nIf $z = 1$ then $2023 - 490 = 1533 = 3 \\cdot 7 \\cdot 73$. We first solve $N(a, b) = 3$, $N(u, v) = 7$, $N(s, t) = 73$, and then use the formula from part (a) to construct solutions to $N(x, y) = 3 \\cdot 7 \\cdot 73$. Because the numbers are small, we easily find positive solutions:\n$3 = N(a, b)$ is equivalent to $12 = (2a - b)^2 + 3b^2$\nwhich has solutions $(a, b) = (1, 2), (2, 1)$;\n$7 = N(u, v)$ is equivalent to $28 = (2u - v)^2 + 3v^2$\nwhich has solutions $(u, v) = (1, 3), (2, 3), (3, 1), (3, 2)$;\n$73 = N(s, t)$ is equivalent to $292 = (2s - t)^2 + 3t^2$\nwhich has solutions $(s, t) = (8, 9), (1, 9), (9, 1), (9, 8)$.\nApplying the formula from part (a) we obtain, for example,\n$$\n\\begin{align*} \n3 \\cdot 7 &= N(2,1)N(2,3) = N(1,5), \\\\ \n3 \\cdot 7 &= N(2,1)N(3,1) = N(5,4), \\\\ \n3 \\cdot 7 &= N(2,1)N(3,2) = N(4,5). \n\\end{align*}\n$$\nBy symmetry we have $N(x, y) = N(y, x)$, hence $N(5, 1) = N(1, 5) = 3 \\cdot 7$.\nApplying the formula from part (a) again, we find\n$$\n\\begin{align*} \n3 \\cdot 7 \\cdot 73 &= N(1,5)N(9,1) = N(4,41) \\\\ \n&= N(5,1)N(8,9) = N(31,44) \\\\ \n&= N(5,1)N(9,1) = N(44,13) \\\\ \n&= N(5,1)N(9,8) = N(37,41). \n\\end{align*}\n$$\nUsing symmetry, we get eight solutions with $z = 1$:\n$$\n(x, y) = (4, 41), (41, 4), (31, 44), (44, 31), (44, 13), (13, 44), (37, 41), (41, 37).\n$$\nFinally, if $z = 0$ then $2023 = 17^2 \\cdot 7$ and we can look for solutions $(x, y) = (17u, 17v)$. This leads us to solve $N(u, v) = 7$ for which we earlier found four solutions $(u, v) = (1, 3), (2, 3)$ and their symmetric counterparts. This leads to four solutions with $z = 0$:\n$$\n(x, y) = (17, 51), (51, 17), (34, 51), (51, 34).\n$$\nAltogether we found 16 different solution triples, as required.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 33405, "subject": "Mathematics (Multi-modal)", "question": "A positive integer is *totally square* if the sum of its digits (written in base 10) is a square number. For example, $13$ is totally square because $1 + 3 = 2^2$, but $16$ is not totally square. Show that there are infinitely many positive integers that are not the sum of two totally square integers.", "options": [], "answer": "Detailed solution", "solution": "The squares modulo $9$ are $\\{0, 1, 4, 7\\}$. Any integer is congruent modulo $9$ to the sum of its digits (as powers of $10$ are congruent to $1$ modulo $9$). Therefore any totally square integer is congruent modulo $9$ to one of $\\{0, 1, 4, 7\\}$. Taking all combinations of pairs, the sum of two totally square integers is congruent modulo $9$ to one of $\\{0, 1, 2, 4, 5, 7, 8\\}$. Positive integers congruent to $3$ (or to $6$), of which there are infinitely many, are not the sum of two totally square integers.\n\nAlternatively, we may let $S(a)$ denote the sum of the digits of a number $a$ and note that $S(a) \\equiv 0, 1 \\pmod{3}$ when $a$ is totally square. When $n = n_1 + n_2$ is the sum of two totally square integers $n_1, n_2$ and if $n \\equiv 0 \\pmod{3}$, we have $0 \\equiv n \\equiv S(n_1) + S(n_2) \\pmod{3}$ which implies $S(n_1) \\equiv S(n_2) \\equiv 0 \\pmod{3}$. A square number that is divisible by $3$ actually is divisible by $9$, hence $S(n_1) \\equiv S(n_2) \\equiv 0 \\pmod{9}$ and so $n \\equiv S(n_1) + S(n_2) \\equiv 0 \\pmod{9}$. Therefore, positive integers that are congruent to $3$ or $6$ (mod $9$) cannot be the sum of two totally square integers, e.g. the numbers $3 \\cdot 10^k$ for all $k \\ge 0$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33406, "subject": "Mathematics (Multi-modal)", "question": "Suppose $f : \\{0,1\\}^{10} \\to \\mathbb{R}$, i.e. $f(x_1, x_2, x_3, \\dots, x_{10})$ is defined whenever $x_i \\in \\{0,1\\}$ for each $1 \\le i \\le 10$. We are not given these values $f(x_1, \\dots, x_{10})$, but, for every choice of $x_1, \\dots, x_{10} \\in \\{0,1\\}$, we know each of the following ten sums of two values of $f$:\n$$\n\\begin{aligned}\nf(0, x_2, x_3, \\dots, x_{10}) &+ f(1, x_2, x_3, \\dots, x_{10}) \\\\\nf(x_1, 0, x_3, \\dots, x_{10}) &+ f(x_1, 1, x_3, \\dots, x_{10}) \\\\\nf(x_1, x_2, 0, \\dots, x_{10}) &+ f(x_1, x_2, 1, \\dots, x_{10}) \\\\\n& \\qquad + \\dots \\\\\nf(x_1, x_2, \\dots, x_9, 0) &+ f(x_1, x_2, \\dots, x_9, 1)\n\\end{aligned}\n$$\nShow that knowing these sums does not allow us to compute the values of $f(x_1, \\dots, x_{10})$.\nWrite down one or more other sums of values of $f$ at two distinct points such that if we know these sums as well as the above sums, then we can compute all values of $f$. You should justify your answer and use as few additional sums as possible.", "options": [], "answer": "One additional sum suffices; for example, f(0,0,0,0,0,0,0,0,0,0) + f(1,1,0,0,0,0,0,0,0,0). More generally, any fixed extra sum f(a) + f(b) where a and b differ in an even number of positions (equivalently have the same parity of coordinate sum) suffices to determine all values of f when combined with the given sums.", "solution": "We consider the natural generalisation with $10$ replaced everywhere by $n$ for some $n > 1$, $n \\in \\mathbb{N}$. It is convenient to use vector notation, writing $f(\\underline{x})$ in place of $f(x_1, \\dots, x_n)$. To show that the given sums are insufficient to compute all $f$-values, it suffices to note that if we write $s(\\underline{x}) = \\sum_{i=1}^n x_i$ and then redefine $f$ by adding $(-1)^{s(\\underline{x})}$ to $f(\\underline{x})$, then all the listed sums remain the same.\nWe will prove that, the value of the additional sum\n$$\nf(0, 0, 0, 0, \\dots, 0) + f(1, 1, 0, 0, \\dots, 0)\n$$\nsuffices to compute the values of $f$.\nIt can be shown in a similar way that any other additional sum of the form $f(\\underline{a}) + f(\\underline{b})$, for some fixed $\\underline{a}, \\underline{b}$, where $s(\\underline{a})$ and $s(\\underline{b})$ have the same parity, or equivalently where $\\underline{a}$ and $\\underline{b}$ differ in an even number of positions, is sufficient.\n\n**Solution 1.** We know all sums of the form $S := f(\\underline{x}) + f(\\underline{y})$ for vectors $\\underline{x}, \\underline{y}$ that differ in a single position. We also know $T := f(\\underline{y}) + f(\\underline{z})$, whenever $\\underline{y}$ and $\\underline{z}$ differ in a single position, and so we know $S - T = f(\\underline{x}) - f(\\underline{z})$. Thus, we know such differences whenever $\\underline{x}$ and $\\underline{z}$ differ in exactly two positions. By repeating the process of taking differences, we can compute $f(\\underline{u}) - f(\\underline{v})$ whenever $\\underline{u}$ and $\\underline{v}$ differ in any even number of positions. In particular, we can compute $f(\\underline{a}) - f(\\underline{b})$ where $\\underline{a} = (0, 0, 0, 0, \\dots, 0)$ and $\\underline{b} = (1, 1, 0, 0, \\dots, 0)$. Since we also know $f(\\underline{a}) + f(\\underline{b})$, we can compute $f(\\underline{a})$.\nKnowing $f(\\underline{a})$ allows us to compute all values. In fact, if $\\underline{u}$ differs from $\\underline{a}$ in exactly one position, then knowing $f(\\underline{a}) + f(\\underline{u})$ allows us to compute $f(\\underline{u})$. Applying the same argument to $f(\\underline{u})$, we compute $f(\\underline{v})$ whenever $\\underline{v}$ differs from $\\underline{u}$ in exactly one position, and so whenever $\\underline{v}$ differs from $\\underline{a}$ in exactly two positions. Iterating this approach, we get all other values of $f$.\n\n\n**Solution 2.** We prove our claim by induction on the dimension $n > 1$. Suppose first that $n = 2$, so we know\n$$\n\\begin{aligned}\nA &:= f(0, 0) + f(1, 0), & B &:= f(1, 1) + f(0, 1), \\\\\nC &:= f(0, 0) + f(0, 1), & D &:= f(1, 1) + f(1, 0).\n\\end{aligned}\n$$\nThe additional sum is $E = f(0, 0) + f(1, 1)$. Since $A - D = f(0, 0) - f(1, 1)$, knowing $E$ allows us to compute\n$$\nf(0, 0) = (E + A - D)/2,\n$$\nand using $A, C, E$ we find the remaining three values of $f$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33407, "subject": "Mathematics (Multi-modal)", "question": "A function $f : \\mathbb{Q}_+ \\to \\mathbb{Q}_+$, where $\\mathbb{Q}_+$ denotes the (strictly) positive rational numbers, satisfies\n$$\nf(f(x) + f(y)) = \\frac{xy}{x+y}\n$$\nfor any $x, y \\in \\mathbb{Q}_+$. Given $f(1) = 2023$, find $f(2023)$.", "options": [], "answer": "1", "solution": "We first show that $f$ is injective. Suppose that $f(y) = f(z)$. Then we have:\n$$\n\\frac{xy}{x+y} = f(f(x) + f(y)) = f(f(x) + f(z)) = \\frac{xz}{x+z}\n$$\nTaking reciprocals of the first and last expression implies $y = z$, as required for injectivity.\n\nNote that the right hand side of the functional equation can be written as\n$$\n\\frac{xy}{x+y} = \\frac{1}{\\frac{1}{x} + \\frac{1}{y}}\n$$\nIf $x = \\frac{k}{n-a}$ and $y = \\frac{k}{n+a}$ with $a \\ne \\pm n$, the expression $\\frac{1}{x} + \\frac{1}{y} = \\frac{2n}{k}$ does not depend on $a$. Hence, for such $x$ and $y$, the right hand side of the functional equation has a value that does not depend on $a$. In particular, with $n \\ge 2$, $a = 0$ and $a = 1$, the functional equation implies\n$$\nf\\left(f\\left(\\frac{k}{n}\\right) + f\\left(\\frac{k}{n}\\right)\\right) = f\\left(f\\left(\\frac{k}{n-1}\\right) + f\\left(\\frac{k}{n+1}\\right)\\right).\n$$\nAs $f$ is injective, we can equate the arguments of the two outer $f$'s to deduce:\n$$\nf\\left(\\frac{k}{n+1}\\right) - f\\left(\\frac{k}{n}\\right) = f\\left(\\frac{k}{n}\\right) - f\\left(\\frac{k}{n-1}\\right). \\quad (20)\n$$\n\nNext, we are going to prove that there are rational numbers $a, b$ such that\n$$\nf(x) = a + \\frac{b}{x} \\quad \\text{for all } x \\in \\mathbb{Q}_+. \\qquad (21)\n$$\n\nOur **first proof** of (21) starts with the claim that for each $k \\in \\mathbb{Q}_+$ and any integer $n \\ge 1$ there exist rational numbers $a(k)$ and $b(k)$ such that\n$$\nf\\left(\\frac{k}{n}\\right) = a(k) + b(k)\\frac{n}{k}. \\qquad (22)\n$$\nIndeed, from (20) we know that\n$$\nb(k) := k \\left( f\\left(\\frac{k}{n+1}\\right) - f\\left(\\frac{k}{n}\\right) \\right)\n$$\ndoes not depend on $n$. In particular, we have $\\frac{b(k)}{k} = f(\\frac{k}{2}) - f(k)$. If we let $a(k) = 2f(k) - f(\\frac{k}{2})$ we obtain $f(k) = a(k) + \\frac{b(k)}{k}$. This is the case $n = 1$ of (20) which gets our proof by induction going. For the inductive step, we use the definition of $b(k)$ and the inductive hypothesis:\n$$\nf\\left(\\frac{k}{n+1}\\right) = f\\left(\\frac{k}{n}\\right) + \\frac{b(k)}{k} = a(k) + b(k)\\frac{n}{k} + \\frac{b(k)}{k} = a(k) + b(k)\\frac{n+1}{k}.\n$$\nWe next show that $a(k)$ and $b(k)$ do not depend on $k$. For any $k \\in \\mathbb{Q}_+$ and $n \\in \\mathbb{Z}_+$ we have\n$$\nf\\left(\\frac{k}{n}\\right) = f\\left(\\frac{k'}{1}\\right) \\quad \\text{and} \\quad f\\left(\\frac{k}{2n}\\right) = f\\left(\\frac{k'}{2}\\right) \\quad \\text{where} \\quad k' = \\frac{k}{n}\n$$\nand (22) gives us\n$$\na(k) + b(k) \\frac{n}{k} = a(k') + b(k') \\frac{n}{k} \\quad \\text{and} \\quad a(k) + b(k) \\frac{2n}{k} = a(k') + b(k') \\frac{2n}{k}.\n$$\nSubtracting the second from twice the first equation, and the first from the second, gives\n$$\na(k) = a(k') \\quad \\text{and} \\quad b(k) \\frac{n}{k} = b(k') \\frac{n}{k'} \\quad \\text{hence}\n$$\n$$\na(k) = a\\left(\\frac{k}{n}\\right) \\quad \\text{and} \\quad b(k) = b\\left(\\frac{k}{n}\\right) \\quad \\text{for all } k \\in \\mathbb{Q}_+, n \\in \\mathbb{Z}_+.\n$$\nLetting $k = 1$ we now obtain $a(1) = a(\\frac{1}{n})$ for all $n \\in \\mathbb{Z}_+$. Using $k = n/m$ with arbitrary $m, n \\in \\mathbb{Z}_+$ we obtain $a(\\frac{n}{m}) = a(\\frac{1}{m})$. Together these show that $a(k) = a(1)$ for all $k \\in \\mathbb{Q}_+$. Similarly it follows that $b(k) = b(1)$ for all $k \\in \\mathbb{Q}_+$. This establishes (21) with $a = a(1)$ and $b = b(1)$.\n\nFor our **second proof** of (21) we define\n$$\ng(k) := f\\left(\\frac{k}{n+1}\\right) - f\\left(\\frac{k}{n}\\right)\n$$\nFor all $k \\in \\mathbb{Q}_+$ and integers $n \\ge 1$. From (20) we know that the right hand side does not depend on $n$. A straightforward induction yields\n$$\nf\\left(\\frac{k}{n+i}\\right) = f\\left(\\frac{k}{n}\\right) + ig(k) \\quad \\text{for all } k \\in \\mathbb{Q}_+, n \\ge 1, i \\ge 0. \\quad (23)\n$$\nNext we show that $vg(1) = ug(u/v)$ for all positive integers $u, v$. To see this, we first substitute $k = 1$ and $i = n = v$ in equation (23) to obtain\n$$\nf\\left(\\frac{1}{2v}\\right) = f\\left(\\frac{1}{v}\\right) + vg(1).\n$$\nNext we substitute $k = u/v$ and $i = n = u$ in equation (23) and obtain\n$$\nf\\left(\\frac{1}{2v}\\right) = f\\left(\\frac{1}{v}\\right) + ug\\left(\\frac{u}{v}\\right).\n$$\nComparing these two equations we get the desired equality, which means that $kg(k) = g(1)$ for all $k \\in \\mathbb{Q}_+$.\nNote that substituting $n = 1$ and $i = m - 1 \\ge 0$ in (23) gives\n$$\nf\\left(\\frac{k}{m}\\right) = f(k) + (m-1)g(k). \\quad (24)\n$$\nFor $k \\in \\mathbb{Q}_+$ we now define $a(k) = f(k) - g(k)$. Setting $k = 1$ in (24) gives\n$$\nf\\left(\\frac{1}{m}\\right) = f(1) + (m-1)g(1) = a(1) + mg(1).\n$$\nWith $k = n/m$ and $m$ replaced by $n$ in (24) we obtain\n$$\n\\begin{aligned} f\\left(\\frac{1}{m}\\right) &= f\\left(\\frac{\\frac{n}{m}}{n}\\right) = f\\left(\\frac{n}{m}\\right) + (n-1)g\\left(\\frac{n}{m}\\right) \\\\ &= a\\left(\\frac{n}{m}\\right) + ng\\left(\\frac{n}{m}\\right) = a\\left(\\frac{n}{m}\\right) + mg(1). \\end{aligned}\n$$\nComparing these two equations, we obtain $a(n/m) = a(1)$ for all positive integers $m, n$. If we now let $a = a(1)$ and $b = g(1)$ we finally obtain\n$$\nf(k) = a(k) + g(k) = a(1) + \\frac{g(1)}{k} = a + \\frac{b}{k}\n$$\nfor all $k \\in \\mathbb{Q}_+$. This finishes the second proof of (21).\n\nOur penultimate step is to show that $a = 0$ in (21). To show this, we start by substituting (21) into the original functional equation with $y = x$:\n$$\n\\frac{x}{2} = f(f(x) + f(x)) = f(2f(x)) = f\\left(2a + \\frac{2b}{x}\\right) = a + \\frac{bx}{2ax + 2b}.\n$$\nThis implies $x(ax+b) = 2a(ax+b)+bx$, i.e. $a(2ax-x^2+2b) = 0$. So, either $a=0$ or $2b = x^2-2ax$ for all $x \\in \\mathbb{Q}_+$. But the polynomial $x^2-2ax$ is not constant, so we must have $a=0$. Thus, $f(x) = \\frac{b}{x}$ with $b \\in \\mathbb{Q}_+$. An easy check reveals that all such functions satisfy the functional equation. As $f(1) = 2023$, we must have $b = 2023$ so that $f(2023) = 1$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33408, "subject": "Mathematics (Multi-modal)", "question": "Let $f^{(n)}$ denote the $n$-fold iterate of a function, i.e.\n$$\nf^{(1)}(x) = f(x), \\quad f^{(2)}(x) = f(f(x)), \\quad f^{(3)}(x) = f(f(f(x))), \\dots\n$$\nand let $f : [0, \\infty) \\to [0, \\infty)$ be such that\n$$\nf^{(2)}(x) = s f(x) + t x, \\quad x \\ge 0.\n$$\nAssuming only that $s, t \\in \\mathbb{R}$ are non-zero, show that if\n$$\nf^{(n+m)}(p) = f^{(m)}(p), \\quad \\text{for some } n, m \\in \\mathbb{N}, p \\in [0, \\infty),\n$$\nthen $f(p) = p$.", "options": [], "answer": "Detailed solution", "solution": "Define a sequence $(p_i)_{i \\ge 0}$ by letting $p_0 = p$ and $p_i = f^{(i)}(p)$ for $i \\ge 1$. Putting $x = p_n$ in the given equation, $f^{(2)}(x) = s f(x) + t x$, gives the following linear recurrence\n$$\np_{n+2} = s p_{n+1} + t p_n. \\qquad (25)\n$$\nApplying $f^{(i)}$ for $i \\ge 1$ to the condition $f^{(n+m)}(p) = f^{(m)}(p)$ implies $p_{n+k} = p_k$ for all $k \\ge m$, i.e. the sequence $(p_i)_{i \\ge 0}$ is periodic. We wish to prove $p_0 = p_1$. The characteristic polynomial of the linear recurrence (25) is $X^2 - sX - t$, with discriminant $s^2 + 4t$.\n\n**Case 1:** $s^2 + 4t = 0$. In this case, the characteristic polynomial has a double root, say $r_0$. Since $r_0^2 = -t \\ne 0$, we have $r_0 \\ne 0$. The sequence then has the form $p_k = (\\alpha + k\\beta) r_0^k$ for $k \\ge 0$. The condition $p_{n+k} = p_k$ for all $k \\ge m$ then translates into\n$$\n(\\alpha + (n + k)\\beta) r_0^{n+k} = (\\alpha + k\\beta) r_0^k \\quad \\text{for } k \\ge m,\n$$\nwhich could be rewritten as $k\\beta(r_0^n - 1) = \\alpha - (\\alpha + n\\beta) r_0^n$. Since this holds true for at least two positive values of $k$, we must have $\\beta(r_0^n - 1) = 0$, i.e. $\\beta = 0$ or $r_0^n = 1$.\nIf $r_0^n = 1$, the previous equation implies $n\\beta = 0$, hence $\\beta = 0$. If $\\beta = 0$, the previous equation implies $\\alpha(r_0^n - 1) = 0$. If $\\alpha = 0$, we obtain $p_i = 0$ for all $i \\ge 0$, in particular $p_0 = p_1$. Otherwise, we need to have $r_0^n = 1$. We can conclude that, unless $\\alpha = \\beta = 0$, we need to have $\\beta = 0$ and $r_0^n = 1$. This gives $p_k = \\alpha r_0^k$ for all $k \\ge 0$, in particular $p_0 = \\alpha \\ge 0$ and $p_1 = \\alpha r_0 \\ge 0$. Therefore $r_0$ is a non-negative real number (we continue to assume $\\alpha \\ne 0$). Since $r_0^n = 1$ this implies $r_0 = 1$, and so $p_k = \\alpha$ for all $k \\ge 0$.\n\n**Case 2:** $s^2 + 4t \\ne 0$. In this case, the characteristic polynomial has two distinct roots $r_1 \\ne r_2$. They are non-zero, because $r_1 r_2 = -t \\ne 0$. The sequence then has the form $p_k = \\alpha r_1^k + \\beta r_2^k$ for $k \\ge 0$, and the condition $p_{n+k} = p_k$ for all $k \\ge m$ translates into $\\alpha r_1^{n+k} + \\beta r_2^{n+k} = \\alpha r_1^k + \\beta r_2^k$ for $k \\ge m$. This can be rewritten as\n$$\nr_1^k \\alpha (r_1^n - 1) + r_2^k \\beta (r_2^n - 1) = 0. \\quad (26)\n$$\nIf $\\alpha = \\beta = 0$, we clearly have $p_0 = p_1 = 0$. From now on, we assume $(\\alpha, \\beta) \\ne (0, 0)$. There are three cases: $r_1^n \\ne 1$, $r_2^n \\ne 1$, and $r_1^n = r_2^n = 1$. However, symmetry between $r_1$ and $r_2$ covers the second case once we prove the first one.\n\n**Case 2A:** $r_1^n \\ne 1$. We can rewrite (26) as\n$$\n\\alpha \\left(\\frac{r_1}{r_2}\\right)^k = -\\frac{\\beta(r_2^n - 1)}{r_1^n - 1} \\quad \\text{for } k \\ge m\n$$\nand obtain $\\alpha = 0$. Otherwise the non-zero LHS would give different values for different $k \\ge m$, because $r_1 \\ne r_2$ in Case 2. With $\\alpha = 0$, we get $p_0 = \\beta > 0$ and $p_1 = \\beta r_2 \\ge 0$. In particular, $r_2 \\ge 0$ is a real number; in fact, $r_2 > 0$ since $r_2$ is non-zero. On the other hand, (26) with $\\alpha = 0$ and $\\beta \\ne 0$ implies $r_2^n = 1$, hence $r_2 = 1$ and $p_0 = p_1$, as required.\n\n**Case 2B:** $r_1^n = r_2^n = 1$. In this case, $r_1$ and $r_2$ are complex numbers that satisfy $|r_1| = |r_2| = 1$. We recall that $r_1 r_2 = -t$, hence we have $(-t)^n = r_1^n r_2^n = 1$. Since $t$ is a real number, we need to have $t = \\pm 1$. If $t = 1$, then $r_2 = -1/r_1 = -\\bar{r}_1$, which implies $s = r_1 + r_2 = r_1 - \\bar{r}_1 = 2\\Im(r_1)i$. As $s$ is real, this is only possible if the imaginary part of $r_1$ is equal to zero, but then $s = 0$, which was excluded. Hence, we must have $t = -1$, which implies $r_2 = 1/r_1 = \\bar{r}_1$.\nIf we let $r_1 = u + iv$ with real numbers $u, v$, then $r_2 = u - iv$ and\n$$\np_0 = \\alpha + \\beta \\\\\np_1 = \\alpha r_1 + \\beta r_2 = (\\alpha + \\beta)u + (\\alpha - \\beta)vi.\n$$\nSince $p_1$ is real, we need to have $(\\alpha - \\beta)v = 0$. If $v = 0$, then $r_1 = r_2$, which was excluded in Case 2. Hence $\\alpha = \\beta$ and\n$$\np_k = \\alpha(r_1^k + r_2^k) = \\alpha(r_1^k + \\bar{r}_1^k) = 2\\alpha\\Re(r_1^k).\n$$\nBecause $r_1$ is an $n$-th root of unity, there exists a smallest positive integer $d$ for which $r_1^d = 1$, and $r_1$ is a primitive $d$-th root of unity. As $r_1 \\neq r_2$ we have $d > 1$. A complete list of $d$-th roots of unity then is\n$$\nr_1, r_1^2, r_1^3, \\dots, r_1^{d-1}, r^d.\n$$\nSince $p_0 = \\alpha > 0$ and $p_k \\ge 0$ for all $k \\ge 0$, the real parts of all these $d$-th roots of unity need to be non-negative. However, for each $d \\ge 2$ there is a $d$-th root of unity with negative real part. This can be seen explicitly by considering the $d$-th roots of unity in trigonometric form\n$$\n\\zeta_k = \\cos \\left( \\frac{2k\\pi}{d} \\right) + i \\sin \\left( \\frac{2k\\pi}{d} \\right) \\quad k = 0, 1, \\dots, d-1.\n$$\nThe real part of $\\zeta_k$ is equal to $\\cos(\\frac{2k\\pi}{d})$ and this is negative for $k = \\lfloor \\frac{d}{2} \\rfloor$ if $d \\ge 2$. We can conclude now that Case 2B is not possible, and we have shown in all other cases that $p_0 = p_1$, i.e. $f(p) = p$.\nSince $x = (f^{(2)}(x) - s f(x))/t$, it is clear that $f$ is injective. This allows us to “peel off” layers of $f$ from the assumed equation\n$$\nf^{(n+m)}(p) = f^{(m)}(p)\n$$\nto deduce that\n$$\nf^{(n)}(p) = p. \\qquad (27)\n$$\nThus, we need to show that every periodic point is fixed. We assume that $n \\in \\mathbb{N}$ is minimal in (27).\nFrom now on, a subscripted variable will denote an iterate, so $x_k = f^{(k)}(x)$, $p_k = f^{(k)}(p)$, etc., for every $k \\ge 0$; in particular, $x_0 = x$ and $x_1 = f(x)$.\nInductively, we see that $p_{n+m} = p_m$ for all $m \\in \\mathbb{N}$. Putting $x = p_m$ for each $0 \\le m < n$ in $f^{(2)}(x) = s f(x) + t x$, and adding these equations, we get\n$$\n\\sigma = (s + t) \\sigma\n$$\nwhere $\\sigma := \\sum_{i=0}^{n-1} p_i$. We conclude that either $\\sigma = 0$ or $s + t = 1$.\nBy minimality of $n$, the points $p_i$, $0 \\le i < n$, are distinct, so if $\\sigma = 0$, then $n = 1$ and $p = 0$. This proves the desired result except in the case $s + t = 1$.\n\nFrom now on, we assume $s + t = 1$. For the sake of contradiction assume that the least period $n$ of $p$ strictly exceeds 1. We rewrite $f^{(2)}(x) = s f(x) + t x$ as\n$$\nf^{(2)}(x) = (1 - t) f(x) + t x, \\quad x \\in \\mathbb{R}. \\qquad (28)\n$$\nThis equation allows us to write all higher iterates in a similar form:\n$$\nx_{k+1} = s_k x_1 + t_k x_0, \\quad x \\in \\mathbb{R}, k \\in \\mathbb{N}. \\qquad (29)\n$$\nNow,\n$$\nx_{k+2} = s_k x_2 + t_k x_1 = (s_k(1 - t) + t_k) x_1 + s_k t x_0.\n$$\nso we get the recurrence relations\n$$\n\\left. \\begin{array}{l}\ns_{k+1} = s_k(1 - t) + t_k \\\\\nt_{k+1} = s_k t\n\\end{array} \\right\\} \\qquad (30)\n$$\nTogether with $s_1 = 1 - t$, $t_1 = t$, (30) defines $s_k$ and $t_k$ for all $k \\in \\mathbb{N}$. Note that $s_{k+1} + t_{k+1} = s_k + t_k$, so we have $s_k + t_k = 1$ for all $k \\in \\mathbb{N}$. Let us also use (30) to write $t_{k+2}$ in terms of $s_k$ and $t_k$. Since $t_{k+2} = s_{k+1} t$, we obtain\n$$\nt_{k+2} = s_k t (1 - t) + t_k t \\qquad (31)\n$$\nApplying the identity $x_k = (1 - t_k) x_1 + t_k x_0$ with $x = p$ and $k = n$, we deduce\n$$\n(1 - t_n) p_0 = (1 - t_n) p_1,\n$$\ngiving a contradiction (since the least period of $p$ strictly exceeds 1) unless $t_n = 1$. To finish the proof, we prove that $t_k$ never equals 1.\nWe assume without loss of generality that $k > 1$. We are given that $s, t \\neq 0$. Since now $s = 1 - t$, we have $t \\neq 0, 1$. These omitted values break the line into three intervals and we consider each separately.\nSuppose first that $0 < t < 1$. In (30), $s_{k+1}$ and $t_{k+1}$ are linear combinations of $s_k$ and $t_k$, where the coefficients are positive. Since $s_1, t_1 > 0$, it follows inductively that $s_k, t_k > 0$ for all $k \\in \\mathbb{N}$. Since $s_k + t_k = 1$, we deduce that $t_k \\neq 1$.\nSuppose next that $t < 0$, and so $s_1 = 1 - t > 1$. Using (30), it follows by induction that $t_k < 0$ and $s_k > 1$ for all $k \\in \\mathbb{N}$.\nFinally, we consider $t > 1$, and so $s_1 = 1 - t < 0$. By (30), we have $t_2 < 0$ and so $s_2 > 1$. It now follows inductively from (31) that $t_{2j} < 0$ and $s_{2j} > 1$ for all $j \\in \\mathbb{N}$. We deduce from (30) that $t_{2j+1} > 1$, and so $s_{2j+1} < 0$, for all $j \\in \\mathbb{N}$. This finishes the proof that $t_k$ never equals 1, and so we are done.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33409, "subject": "Mathematics (Multi-modal)", "question": "Prove that any finite sum of terms\n$$\n\\frac{1}{abc(a + b + c + 1)}\n$$\nwhere $a, b, c$ are positive integers, is smaller than 6.", "options": [], "answer": "Detailed solution", "solution": "We will use the following notation:\n$$\nH_i = \\sum_{k=1}^{i} \\frac{1}{k} \\qquad P_i(m) = \\sum_{k=m}^{N} \\frac{H_{k+i}}{k(k+1)}.\n$$\n**Lemma 1.** For all $i \\ge 1$ and all $1 \\le M \\le N$ we have\n$$\n\\sum_{k=M}^{N} \\frac{1}{k(k+i)} < \\frac{1}{i} \\sum_{k=M}^{M+i-1} \\frac{1}{k} .\n$$\n*Proof.* Using $\\frac{1}{k(k+i)} = \\frac{1}{i}\\left(\\frac{1}{k} - \\frac{1}{k+i}\\right)$ we see that\n$$\n\\sum_{k=M}^{N} \\frac{1}{k(k + i)} = \\frac{1}{i} \\sum_{k=M}^{N} \\left( \\frac{1}{k} - \\frac{1}{k + i} \\right) = \\frac{1}{i} \\sum_{k=M}^{M+i-1} \\frac{1}{k} - \\frac{1}{i} \\sum_{k=N+1}^{N+i} \\frac{1}{k} < \\frac{1}{i} \\sum_{k=M}^{M+i-1} \\frac{1}{k}.\n$$\nIf $M + i - 1 \\le N$ the terms $1/k$ for $M + i \\le k \\le N$ cancel out as they appear in both sums. When $M + i - 1 > N$, we have introduced extra terms which appear in both sums. In this case, the sum on the right hand side would only need to go up to $k = N$, but we don't need this stronger inequality. $\\square$\n\n$$\ni = 2 \\qquad \\sum_{k=M}^{N} \\frac{1}{k(k+2)} < \\frac{1}{2M} + \\frac{1}{2(M+1)} \\qquad (32)$$\n$$M = 1 \\qquad \\sum_{k=1}^{N} \\frac{1}{k(k+i)} < \\frac{1}{i} \\sum_{k=1}^{i} \\frac{1}{k} = \\frac{H_i}{i} \\qquad (33)$$\n\n**Lemma 2.** For all $N > m \\ge 1$ and $i \\ge 1$ we have\n$$\nP_i(m) < \\frac{1}{m} H_{m+i} + \\frac{1}{i} \\sum_{k=m+1}^{m+i} \\frac{1}{k}.\n$$\n$$\n\\begin{align*}\nP_i(m) &= \\sum_{k=m}^{N} \\frac{H_{k+i}}{k(k+1)} \\\\\n&= \\sum_{k=m}^{N} \\left( \\frac{1}{k} - \\frac{1}{k+1} \\right) H_{k+i} = \\sum_{k=m}^{N} \\frac{1}{k} H_{k+i} - \\sum_{k=m+1}^{N+1} \\frac{1}{k} H_{k+i-1} \\\\\n&= \\frac{1}{m} H_{m+i} + \\sum_{k=m+1}^{N} \\frac{1}{k} (H_{k+i} - H_{k+i-1}) - \\frac{1}{N+1} H_{N+i} \\\\\n&< \\frac{1}{m} H_{m+i} + \\sum_{k=m+1}^{N} \\frac{1}{k(k+i)} < \\frac{1}{m} H_{m+i} + \\frac{1}{i} \\sum_{k=m+1}^{m+i} \\frac{1}{k} \\quad \\text{using Lemma 1.}\n\\end{align*}\n$$\n$\\square$\nIn particular, we obtain\n$$\nP_1(m) < \\frac{1}{m+1} + \\frac{1}{m} H_{m+1} \\qquad (34)\n$$\n$$\nP_2(m) < \\frac{1}{2(m+1)} + \\frac{1}{2(m+2)} + \\frac{1}{m} H_{m+2}. \\quad (35)\n$$\n\n\\begin{align*}\nS &= \\sum_{a,b,c=1}^{N} \\frac{1}{abc(a+b+c+1)} = \\sum_{a,b=1}^{N} \\frac{1}{ab} \\sum_{c=1}^{N} \\frac{1}{c(a+b+c+1)} \\\\\n&< \\sum_{a,b=1}^{N} \\frac{H_{a+b+1}}{ab(a+b+1)} && \\text{using (33) with } i = a+b+1 \\\\\n&= \\sum_{a,b=1}^{N} \\frac{a+b}{ab} \\cdot \\frac{H_{a+b+1}}{(a+b)(a+b+1)} \\\\\n&= \\sum_{k=2}^{2N} \\sum_{a+b=k} \\left(\\frac{1}{a} + \\frac{1}{b}\\right) \\frac{H_{k+1}}{k(k+1)} = 2 \\sum_{k=2}^{2N} \\sum_{m=1}^{k-1} \\frac{1}{m} \\cdot \\frac{H_{k+1}}{k(k+1)}.\n\\end{align*}\n$$\n$$\n\\sum_{k=2}^{2N} \\sum_{m=1}^{k-1} \\frac{1}{m} \\cdot \\frac{H_{k+1}}{k(k+1)} = \\sum_{m=1}^{2N-1} \\frac{1}{m} \\sum_{k=m+1}^{2N} \\frac{H_{k+1}}{k(k+1)}.\n$$\nTherefore,\n$$\n\\begin{align*}\nS < 2 \\sum_{m=1}^{2N-1} \\frac{1}{m} \\sum_{k=m+1}^{2N} \\frac{H_{k+1}}{k(k+1)} &= 2 \\sum_{m=1}^{2N-1} \\frac{1}{m} P_1(m+1) \\\\\n&< 2 \\sum_{m=1}^{2N-1} \\frac{1}{m} \\left( \\frac{1}{m+2} + \\frac{1}{m+1} H_{m+2} \\right) && \\text{using (34)} \\\\\n&= 2 \\sum_{m=1}^{2N-1} \\frac{1}{m(m+2)} + 2 \\sum_{m=1}^{2N-1} \\frac{H_{m+2}}{m(m+1)} \\\\\n&= 2 \\sum_{m=1}^{2N-1} \\frac{1}{m(m+2)} + 2P_2(1) \\\\\n&< 1 + \\frac{1}{2} + 2 \\left( \\frac{1}{4} + \\frac{1}{6} + H_3 \\right) = 6. && \\text{using (32) and (35).}\n\\end{align*}\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33410, "subject": "Mathematics (Multi-modal)", "question": "A triomino is formed by joining three equal squares edge to edge. Up to rotation there are only two types, namely straight and corner triominoes:\n![](attached_image_1.png)\n![](attached_image_2.png)\nThe diagram shown below is known as the *Aztec Diamond* of order $7/2$.\n![](attached_image_3.png)\nWhich number is larger, the maximum number of straight triominoes or the maximum number of corner triominoes that fit simultaneously into the Aztec Diamond?", "options": [], "answer": "corner triominoes", "solution": "There are many ways to fit $8$ corner triominoes into the Aztec Diamond. Here is one possibility.\n![](attached_image_4.png)\n\nTo show that at most $7$ straight triomino fit into the Aztec Diamond, we colour the squares as shown below with three colours in a diagonal fashion.\n![](attached_image_5.png)\n\nThere are $11$ green, $7$ blue and $7$ red cells. As any straight triomino covers exactly one cell of each colour, no more than $7$ straight triominoes fit in. Hence more corner triominoes can be fitted to the Aztec Diamond.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 33411, "subject": "Mathematics (Multi-modal)", "question": "Find seven four digit positive integers $a_1, a_2, a_3, a_4, a_5, a_6, a_7$ which form a geometric progression i.e. $\\frac{a_2}{a_1} = \\frac{a_3}{a_2} = \\frac{a_4}{a_3} = \\frac{a_5}{a_4} = \\frac{a_6}{a_5} = \\frac{a_7}{a_6}$.", "options": [], "answer": "1458, 1944, 2592, 3456, 4608, 6144, 8192", "solution": "Assume $a_1 < a_2$ and let $r = \\frac{a_2}{a_1}$. Then $r > 1$ and $r$ is a rational number which can be written as $\\frac{p}{q}$ with $p, q$ coprime. The sequence is then\n$$\na_1,\\ a_1 r,\\ a_1 r^2,\\ a_1 r^3,\\ a_1 r^4,\\ a_1 r^5,\\ a_1 r^6.\n$$\nThe last term can only be an integer if $a_1$ is divisible by $q^6$. We may try values for $r$ that are equal to $(n+1)/n$ with $n \\ge 2$. The first would be $r = 3/2$, but $(3/2)^6 = \\frac{729}{64} > 10$ and so $a_1 r^6$ would have more digits than $a_1$. Therefore, $q > 2$.\n\nNext we try $r = 4/3$. Then $a_1$ needs to be divisible by $3^6 = 729$. The smallest value for $a_1$ then is $2 \\cdot 3^6 = 1458$. Because $2 \\cdot 4^6 = 8192$, we indeed get seven four-digit numbers:\n\n| n | 1 | 2 | 3 | 4 | 5 | 6 | 7 |\n|-------------|------|------|------|------|------|------|------|\n| $a_n$ | 1458 | 1944 | 2592 | 3456 | 4608 | 6144 | 8192 |\n\nIn general, there will be a positive integer $a$ such that $a_1 = a q^6$ and $a_7 = a p^6$. Because $5^6$ is a five-digit number, neither $p$ nor $q$ may exceed 4. It now is easy to see that we found the only possible solution with $r > 1$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33412, "subject": "Mathematics (Multi-modal)", "question": "For $n \\ge 3$, a *special n-triangle* is a triangle with $n$ distinct numbers on each side such that the sum of the numbers on a side is the same for all sides. For instance, because $41 + 23 + 43 = 43 + 17 + 47 = 47 + 19 + 41$, the following is a special 3-triangle:\n$$\n\\begin{array}{c c c}\n& 41 & \\\\\n23 & 19 & \\\\\n43 & 17 & 47\n\\end{array}\n$$\nNote that a special $n$-triangle contains $3(n-1)$ numbers.\nAn infinite set $A$ of positive integers is a *special set* if, for each $n \\ge 3$, the smallest $3(n-1)$ numbers of $A$ can be used to form a special $n$-triangle.\nShow that the set of positive integers that are not multiples of 2023 is a special set.", "options": [], "answer": "Detailed solution", "solution": "For each $N > 1$, let $A_N$ denote the set of all positive integers that are not multiples of $N$, and let $a_{N,1} < a_{N,2} < a_{N,3} < \\dots$ be the elements of $A_N$ in increasing order. The set $A_N$ consists of blocks of $N-1$ consecutive integers followed by a skipped integer. If $N \\equiv 1 \\pmod 3$ the length of each of these blocks is a multiple of 3 and so $a_{N,i}$ can only be the last element of a block if $i$ is divisible by 3. In other words:\n$$\n\\text{If } N \\equiv 1 \\pmod 3 \\text{ and } i \\neq 0 \\pmod 3, \\text{ then } a_{N,i+1} = a_{N,i} + 1. \\quad (1)\n$$\nFor each $N > 1$ that satisfies $N \\equiv 1 \\pmod 3$, we will show that $A_N$ is a special set. Since $2023 \\equiv 1 \\pmod 3$, the desired result follows.\nWe now fix $N > 1$ satisfying $N \\equiv 1 \\pmod 3$. For simplicity, from now on we suppress the $N$ index in $a_{N,i}$. We will use induction to show that for each $n \\ge 3$, the numbers $a_1, a_2, a_3, \\dots, a_{3n-3}$ can be used to form a special $n$-triangle.\nThe base case consists in showing that there are special 3- and 4-triangles.\n$$\n\\begin{array}{ccccccc}\n& a_1 & & a_1 & & \\\\\n& a_6 & a_5 & & a_6 & a_9 & \\\\\na_2 & a_4 & a_3 & a_7 & & a_5 & \\\\\n& & & a_3 & a_4 & a_8 & a_2\n\\end{array}\n$$\n\nWhen $N \\ge 10$, $a_i = i$ for $1 \\le i \\le 9$, and it is easily checked that these triangles are special. For $N = 4$ the above turns into\n![](attached_image_1.png)\nand when $N = 7$ we get\n![](attached_image_2.png)\nand these are indeed special triangles.\nFor the inductive step, we show how to obtain a special $n$-triangle for $A_N$ from a special $(n-2)$-triangle for $A_N$. Any special $(n-2)$-triangle contains the numbers $a_1, a_2, \\dots, a_{3n-9}$. We group the next six numbers of $A_N$ into two sets, $S_1 = \\{a_{3n-8}, a_{3n-7}, a_{3n-6}\\}$ and $S_2 = \\{a_{3n-5}, a_{3n-4}, a_{3n-3}\\}$. By virtue of statement (1), both sets consist of three consecutive integers. Hence,\n$$\na_{3n-3} + a_{3n-8} = a_{3n-4} + a_{3n-7} = a_{3n-5} + a_{3n-6}.\n$$\nIt is now clear that we obtain a special $n$-triangle when we add $a_{3n-3}$ and $a_{3n-8}$ to one side, $a_{3n-4}$ and $a_{3n-7}$ to another, and $a_{3n-5}$ and $a_{3n-6}$ to the final side in any given special $(n-2)$-triangle.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33413, "subject": "Mathematics (Multi-modal)", "question": "A trapezium $ABCD$ with $AB \\parallel DC$ and $|AB| < |DC|$ is inscribed in a circle, centre $O$. The diagonals $AC$ and $BD$ are mutually perpendicular at $P$. If $E$ is the midpoint of $AB$ and $F$ is the midpoint of $DC$, prove $|OF| = |PE|$.", "options": [], "answer": "Detailed solution", "solution": "First note that $\\angle BAC = \\angle BDC$ (inscribed angles) and $\\angle BAC = \\angle ACD$ (alternate angles at $AB \\parallel CD$). Hence, $\\angle BDC = \\angle ACD$ and triangle $CDP$ is isosceles with $|CP| = |DP|$. This implies that $P$ is on the perpendicular bisector of $CD$ and that $\\angle PBA = \\angle BAP = 45^\\circ$ (because $AC \\perp BD$).\nThe centre $O$ of the circle is on the perpendicular bisectors of the chords $AB$ and $CD$. As $AB$ and $CD$ are parallel, their perpendicular bisectors are parallel as well. As they have $O$ in common, they coincide. This means that $OP$ is the common perpendicular bisector of $AB$ and of $CD$.\n\n![](attached_image_1.png)\nBecause $\\angle BEP = \\angle CPD = 90^\\circ$ and $\\angle PDC = \\angle PBA = 45^\\circ$, triangles BEP and CPD are right angled and isosceles. In particular, $|BE| = |EP|$. Moreover, $\\angle BOC = 2\\angle BDC = 90^\\circ$ (central angle), hence\n$$\n\\angle BOE = 180^\\circ - \\angle BOC - \\angle COF = 90^\\circ - \\angle COF = \\angle OCF.\n$$\nSince $|OB| = |OC|$, we can now use ASA to see that $\\triangle OCF$ is congruent to $\\triangle BOE$, thus $|OF| = |BE| = |EP|$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33414, "subject": "Mathematics (Multi-modal)", "question": "A parallelogram *ABCD* is such that $BD \\perp AB$. A point $P$ on $BC$ is such that $|PD| = |BE|$ where $E$ is the intersection point of $BD$ and $AP$. The point $F$ is the foot of the perpendicular from $P$ to $BD$. Prove\n$$\n\\frac{|AB|}{|PF|} = \\sqrt{2}.\n$$", "options": [], "answer": "Detailed solution", "solution": "From the construction we have $|EF| = |FD|$ and $FP$ is parallel to $AB$. It follows that $\\triangle ABE$ is similar to $\\triangle PFE$, hence\n$$\n\\frac{|AB|}{|PF|} = \\frac{|BE|}{|EF|} \\qquad (2)\n$$\n\n![](attached_image_1.png)\nBecause $BC \\parallel AD$, the angles $\\angle FBP$ and $\\angle BDA$ are equal. This implies that the right angled triangles $\\triangle ABD$ and $\\triangle PFB$ are similar, and so\n$$\n\\frac{|AB|}{|PF|} = \\frac{|BD|}{|BF|} = \\frac{|BE| + 2 \\cdot |EF|}{|BE| + |EF|} \\qquad (3)\n$$\n\nCombining (2) and (3) we get\n$$\n\\begin{gather*}\n\\frac{|BE|}{|EF|} = \\frac{|BE| + 2 \\cdot |EF|}{|BE| + |EF|}, \\text{ i.e.} \\\\\n|BE|^2 + |BE| \\cdot |EF| = |BE| \\cdot |EF| + 2 \\cdot |EF|^2 \\quad \\text{which gives} \\\\\n|BE|^2 = 2 \\cdot |EF|^2.\n\\end{gather*}\n$$\nUsing (2) we now obtain\n$$\n\\frac{|AB|}{|PF|} = \\frac{|BE|}{|EF|} = \\sqrt{2}.\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33415, "subject": "Mathematics (Multi-modal)", "question": "An *Irish Set* is a set of positive integers such that each pair of integers in the set has a common factor greater than $1$, and there is no prime number that divides all integers in this set. Is there an Irish Set that contains exactly $2024$ integers, all smaller than $8000$?", "options": [], "answer": "Detailed solution", "solution": "A key observation is that when we add to the Irish Set $S = \\{s_1, s_2, \\dots, s_n\\}$ any positive multiple of an element $s_i$ that is not yet contained in $S$ we obtain an Irish Set with $n + 1$ elements.\n\nOne possibility then is to start with an Irish Set of length $3$ and add multiples of these three numbers to the set. One may pick prime numbers $p < q < r$ and form the Irish Set $\\{pq, pr, qr\\}$ of cardinality $3$. For example, using the primes $2, 3, 5$ we obtain the set $S = \\{6, 10, 15\\}$ which is Irish.\n\nWe can extend $S$ to a larger Irish Set by including as many positive integers of the form $6a, 10b$, and $15c$ as we wish. The requirement that all members of the set are smaller than $8000$ then leads to the conditions $a \\le 1333$, $b < 800$, and $c \\le 533$.\n\nBecause the lowest common multiple of any two of the three numbers $6, 10, 15$ is equal to $30$, we multi-count all multiples of $30$ but no other number when we add $1333, 799$ and $533$. Each multiple of $30$ appears three times. Since $266 < 8000/30 < 267$, we have constructed an Irish set that contains exactly\n$$\n1333 + 799 + 533 - 2 \\cdot 266 = 2133\n$$\nelements. We can now remove any $109$ members from this set to get a set that contains exactly $2024$ elements, all smaller than $8000$, such that no pair of members of this set is coprime. Is it still true that no prime number divides all integers in this set? This can easily be achieved by leaving $6, 10, 15$ in the set. However, this is true in general, because after removing any $109$ members from this set, there will be at least one pair of consecutive multiples of $6$ left in the set, and similarly for multiples of $10$ and $15$. Since $\\gcd(6a, 6(a+1), 10b, 10(b+1), 15c, 15(c+1)) = \\gcd(6, 10, 15) = 1$, we see that after removing any $109$ numbers we indeed get an Irish Set.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33416, "subject": "Mathematics (Multi-modal)", "question": "Find all functions $f : \\mathbb{Z} \\to \\mathbb{Z}$ such that $f(a+b) = ab + f(a) + f(b)$ for $a, b \\in \\mathbb{Z}$.", "options": [], "answer": "All functions are f(n) = n(n + k)/2 for an odd integer k.", "solution": "The general solution is $f(a) = \\frac{a(a+k)}{2}$ for odd integers $k$. It is easy to show by substitution that the stated formula is a solution. We now show it is the only solution.\n\nPutting $a = b = 0$ gives $f(0) = 0$. Putting $b = 1$ gives\n$$\nf(a + 1) = f(a) + f(1) + a.\n$$\nBy induction on $a$ it now follows that for all integers $a \\ge 0$ we have\n$$\nf(a) = af(1) + \\frac{(a-1)a}{2} = \\frac{a(a + 2f(1) - 1)}{2}.\n$$\nThis is of the claimed form with $k = 2f(1) - 1$ which is of course odd.\n\nFinally, using $b = -a$ in the original functional equation, we get\n$$\n0 = f(0) = -a^2 + f(a) + f(-a),\n$$\nhence for $a > 0$\n$$\nf(-a) = a^2 - f(a) = a^2 - \\frac{a(a + k)}{2} = \\frac{(-a)(-a + k)}{2}\n$$\nand so the claimed form holds for all integers $a$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33417, "subject": "Mathematics (Multi-modal)", "question": "A game of coins is played as follows: You start with $1$ head and $1$ tail on a table. At each turn, you can perform any one of the following moves:\n\na. You can turn over all the coins on the table.\n\nb. You can triple the numbers of heads and tails on the table.\n\nc. If there are at least $4$ tails on the table, you can turn over $4$ tails.\n\nd. If there are at least $5$ tails on the table, you can turn over $3$ of the tails and discard $2$ of the tails.\n\nKnowing that at the end of a game you have $2024$ heads, what are the possible numbers of tails at the end of that game?", "options": [], "answer": "All nonnegative multiples of 8", "solution": "Let $x$ be the number of heads and $y$ the number of tails at each point of the game. The pair $(x, y)$ completely describes the state of the game. Let $D(x, y) = x - y$. This quantity behaves as follows under each possible move:\n\na. $(x, y) \\to (y, x)$ changes $D(x, y)$ to $-D(x, y)$.\n\nb. $(x, y) \\to (3x, 3y)$ changes $D(x, y)$ to $3D(x, y)$.\n\nc. If $y \\ge 4$, move $(x, y) \\to (x + 4, y - 4)$ changes $D(x, y)$ to $D(x, y) + 8$.\n\nd. If $y \\ge 5$, move $(x, y) \\to (x + 3, y - 5)$ changes $D(x, y)$ to $D(x, y) + 8$.\n\nWe will indicate composition of moves using the symbol $\\circ$ so that, for example, (b)$\\circ$(a) is the move (a) followed by move (b), which sends $(x, y)$ to $(3y, 3x)$, and $(b)^m$ is the $m$-fold composition of (b) sending $(x, y)$ to $(3^m x, 3^m y)$. We introduce the following moves:\n$$\n(c') = (a) \\circ (c) \\circ (a): \\text{ If } x \\ge 4, \\text{ it sends } (x, y) \\text{ to } (x - 4, y + 4).\n$$\n$$\n(d') = (a) \\circ (d) \\circ (a): \\text{ If } x \\ge 5, \\text{ it sends } (x, y) \\text{ to } (x - 3, y + 5).\n$$\nWe also define a move (e) which sends $(x, y)$ to $(x - 1, y - 1)$ if $x$ and $y$ are both positive and one of them is at least $4$:\n$$\n(e) = \\begin{cases} (d') \\circ (c) & \\text{if } x \\ge 1, y \\ge 4 \\\\ (d) \\circ (c') & \\text{if } x \\ge 4, y \\ge 1. \\end{cases}\n$$\nFinally, we define moves (f) and (f') as follows:\n$$\n(f) = (c) \\circ (e)^4: \\text{ If } x \\ge 4 \\text{ and } y \\ge 8, \\text{ it sends } (x, y) \\text{ to } (x, y - 8).\n$$\n$$\n(f') = (c') \\circ (e)^4: \\text{ If } x \\ge 8 \\text{ and } y \\ge 4, \\text{ it sends } (x, y) \\text{ to } (x - 8, y).\n$$\nTo prove that each pair $(2024, 8n)$ with $n \\ge 0$ can be reached during the game, we first apply move (b) $k$ times, where $3^k \\ge a$, and then move (e) a number of times to get\n$$\n(1, 1) \\to (3, 3) \\to (9, 9) \\to \\dots \\to (3^k, 3^k) \\to (3^k - 1, 3^k - 1) \\to \\dots \\to (a, a).\n$$\nThis shows that we can get any pair $(a, a)$ with $a \\ge 3$. In particular, we can get any pair $(8n, 8n)$ with $n \\ge 1$. If $8n \\ge 2024 = 8 \\cdot 253$ we apply move $(f')$ a number of times to reach $(2024, 8n)$ for any $n \\ge 253$. To reach $(2024, 8n)$ for $0 \\le n < 253$, we start with $(2024, 2024)$ and apply move (f) a suitable number of times. Hence, for any $n \\ge 0$ we can reach $(2024, 8n)$ from $(1, 1)$ after a finite number of moves.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33418, "subject": "Mathematics (Multi-modal)", "question": "Find all possible values of $2^n + n^3$, when $n$ is an integer satisfying $2^n - n^3 = 4$!", "options": [], "answer": "2024", "solution": "Integers $n < 2$ obviously do not satisfy $2^n - n^3 = 4! = 24$. For $2 \\le n \\le 9$ we easily check that they satisfy $2^n < n^3$, hence $2^n - n^3 \\ne 24$.\n$$\n2^2 < 3^2 \\qquad 2^4 < 2^6 = 4^3 \\qquad 2^6 < 2^3 \\cdot 3^3 = 6^3 \\qquad 2^9 = 8^3 < 9^3\n$$\n$$\n2^3 < 3^3 \\qquad 2^5 < 2^6 = 4^3 < 5^3 \\qquad 2^8 < 2^9 = 8^3 \\qquad \\text{and}\n$$\n$$\n2^7 = 8 \\cdot 4 \\cdot 4 < 8 \\cdot 6 \\cdot 6 = 48 \\cdot 6 < 49 \\cdot 7 = 7^3.\n$$\n\nBecause $2^{10} = 1024 = 10^3 + 24$, $n = 10$ satisfies the condition $2^n - n^3 = 24$. For $n \\ge 10$ we show that $2^{n+1} - (n+1)^3 > 2^n - n^3 > 0$. First note that\n$$\n2^{n+1} - (n+1)^3 = 2 \\cdot 2^n - n^3 - 3n^2 - 3n - 1 \\\\ > 2 \\cdot 2^n - 2 \\cdot n^3 = 2(2^n - n^3)\n$$\nbecause $3n^2 + 3n + 1 = n^2(3 + \\frac{3}{n} + \\frac{1}{n^2}) < n^3$ for $n \\ge 6$. Since $2^{10} - 10^3 = 24 > 0$ it follows now by induction that $2^n - n^3 > 0$ for $n \\ge 10$ and so $2^{n+1} - (n+1)^3 > 2(2^n - n^3) > 2^n - n^3$ as claimed.\nWe have shown that $n = 10$ is the only integer that satisfies $2^n - n^3 = 24$. The only possible value for $2^n + n^3$ therefore is $2^{10} + 10^3 = 2024$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33419, "subject": "Mathematics (Multi-modal)", "question": "Triangle $ABC$ is obtuse with $\\angle ABC > 90^\\circ$. Let $\\ell$ be the external bisector of $\\angle BCA$, and let $AB$ (extended) meet $\\ell$ at $D$. The circumcircle $\\Gamma$ of triangle $BCD$ has centre $O$. Let $E$ be the point where the line through $A$ perpendicular to $DO$ meets $\\ell$. Prove that $BE$ is tangent to the circle $\\Gamma$.", "options": [], "answer": "Detailed solution", "solution": "Let $F$ be the second intersection point of $DO$ and $\\Gamma$ so that $DF$ is a diameter of $\\Gamma$ and $BDCF$ is a cyclic quadrilateral. Then $\\angle DCF = 90^\\circ$ and $CF$ is the internal bisector of $\\angle BCA$ as it is perpendicular to the external angle bisector $\\ell$.\nLet $G$ be the intersection point of $AE$ and $DO$. Since $BDCF$ is cyclic and $\\angle AGD = \\angle DBF = 90^\\circ$, we have\n$$\n\\angle BCD = \\angle BFD = 90^\\circ - \\angle BDF = \\angle DAG,\n$$\nhence quadrilateral $ABCE$ is cyclic. In particular, $\\angle AEB = \\angle ACB$.\n\n\\begin{align*} \n\\angle FBE &= \\angle JEB = \\angle AEB - \\angle AEJ \\\\ \n&= \\angle ACB - \\angle ADG = 2\\angle BCF - \\angle BDF \\\\ \n&= \\angle BCF, \n\\end{align*}\n$$\nwhere we used cyclicity of $BDCF$ for $\\angle BCF = \\angle BDF$. Thus $\\angle FBE = \\angle BCF$, and by the Alternate Segment Theorem $BE$ is tangent to $\\Gamma$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33420, "subject": "Mathematics (Multi-modal)", "question": "Let $\\mathbb{Z}_+ = \\{1, 2, 3, 4, \\dots\\}$ be the set of all positive integers. Determine all functions $f : \\mathbb{Z}_+ \\to \\mathbb{Z}_+$ that satisfy\n\n$f(mn) + 1 = f(m) + f(n)$ for all positive integers $m$ and $n$;\n\n$f(2024) = 1;$\n\n$f(n) = 1$ for all positive $n \\equiv 22 \\pmod{23}$.", "options": [], "answer": "f(n) = 1 for all positive integers n", "solution": "Our main tool will be the observation that\n$$\nf(mn) = 1 \\quad \\text{implies} \\quad f(m) = f(n) = 1. \\qquad (6)\n$$\nThis is true because the functional equation $f(mn) + 1 = f(m) + f(n)$ then leads to $2 = f(m) + f(n)$ which is only possible when both positive integers, $f(m)$ and $f(n)$, are equal to 1. In particular, the given $f(2024) = 1$ and $2024 = 88 \\cdot 23$ imply $f(23) = 1$. The given functional equation then implies\n$$\nf(23n) + 1 = f(n) + f(23) = f(n) + 1,\n$$\nhence $f(23n) = f(n)$ for all positive integers $n$. It follows by induction that $f(23^k n) = f(n)$ for all positive integers $k, n$.\nIf $n$ is not divisible by 23, the linear congruence $nx \\equiv 22 \\pmod{23}$ has a solution $x$ which can be chosen to be a positive integer. We then have $f(nx) = 1$ and so $f(n) = 1$ by (6).\nWe can write each positive integer as $m = 23^k n$ with some $k \\ge 0$ and $n > 0$ not divisible by 23. From above we now have $f(m) = f(23^k n) = f(n) = 1$. Hence, the only function that satisfies the given condition is the constant function $f(m) = 1$ for all $m \\in \\mathbb{Z}_+$. It is easy to see that this function indeed satisfies all the conditions.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33421, "subject": "Mathematics (Multi-modal)", "question": "Alice and Brian play a game. Before they start, Alice chooses a positive integer $n$ and Brian then chooses the initial value of another positive integer $m$. They then place $n$ counters on a board and take turns removing them; Alice always moves first.\nEach move, for some player $P$, always has two parts:\n(a) $P$ either lets $m$ unchanged or reduces its value by $1$, with the exception that if $m = 1$, then $m$ cannot be changed.\n(b) $P$ then removes $m$ counters from the board.\nEventually, there are too few counters left for $P$ to do (b) and $P$ loses. The winner depends on $n$, the initial $m$, and the moves made. For instance, suppose $n = 11$ and initially $m = 5$. Alice should first remove $4$ counters. Brian then removes either $4$ or $3$ counters, after which Alice should remove $3$ counters. With at most one counter now on the table, Brian has no valid move so Alice wins. If instead, Alice initially removed $5$ counters, it is easily verified that Alice is doomed to lose.\n\nAlice and Brian agree to constrain $n$ and the initial $m$: Alice must choose $n \\ge 2024$, and Brian is only allowed to choose $m = 2, m = 3$, or $m = 4$. Find the smallest $n$ that Alice can choose to guarantee her a win if she makes the right moves, regardless of Brian's choice of $m$ and his moves.", "options": [], "answer": "2026", "solution": "We will first define a function $f: \\mathbb{N} \\times \\mathbb{Z}_{\\ge 0} \\to \\{0, 1\\}$, where $\\mathbb{Z}_{\\ge 0}$ indicates the non-negative integers, and then show that if the current player is faced with a particular pair of values $(m, n)$ then that player has a guaranteed win if $f(m, n) = 1$ but a guaranteed loss if $f(m, n) = 0$, both under the assumption that the winner makes the right moves. The definition will also indicate a winning strategy in all cases.\n\nIn our definition of $f$, we implicitly assume that $m, n$ are integers with $m > 0$ and $n \\ge 0$ whenever we define $f(m, n)$. We first define $f(m, n)$ for $m = 1$:\n$$\nf(1, n) := \\begin{cases} 0, & n \\text{ even,} \\\\ 1, & n \\text{ odd.} \\end{cases} \\qquad (7)\n$$\nWe next define $f(m, n)$ for $m > 1$ and $n \\le m$:\n$$\nf(m, n) := \\begin{cases} 0, & n < m - 1, \\\\ 1, & m - 1 \\le n \\le m. \\end{cases} \\qquad (8)\n$$\nWe call the values of $f$ defined above the *initial values of $f$*. The remaining values $f(m, n)$ are defined iteratively as follows, where we implicitly assume that $n > m > 1$.\n$$\nf(m, n) := \\begin{cases} 0, & \\text{if } f(k, n-k) = 1 \\text{ for } k = m \\text{ and } k = m-1 \\\\ 1, & \\text{otherwise.} \\end{cases} \\qquad (9)\n$$\nWe claim that the above partial definitions give a consistent definition of $f$ on its full domain. First note that (7), (8), and (9) apply to non-overlapping sets of values $(n, m)$, so they are clearly consistent with each other, and it is similarly clear that each is internally consistent.\nIt remains to check that they provide a consistent definition $f(m, n)$ for each allowable $m, n$. This is clear for $m = 1$ and for $n \\le m$, so suppose $n > m > 1$. Assume that $f(i, j)$ is already consistently defined if either $i < m$ or $i = m$ and $j < n$. Equation (9) then defines $f(m, n)$ in terms of $f(m, n-m)$ and $f(m-1, n-m+1)$. Thus, the definition is extended consistently to $f(m, n)$. By induction on $n$, we have defined $f(m, n)$ for all $n \\in \\mathbb{Z}_{\\ge 0}$, and now by induction on $m$, we have defined $f(m, n)$ for all allowable values of $(m, n)$. Next, we show that $f$ has the desired interpretation. First, (7) reflects the fact that with $m = 1$, the game is predetermined because there is no choice: players take turns removing one counter after another and parity shows that the winner corresponds to the values of $f(1, n)$.\n\nFinally, we show inductively that (9) correctly indicates the winner in the remaining cases. Assuming that $f(i, j)$ correctly indicates the winner both for $i < m$ and for $i = m$ when $j < n$, then $f(k, n-k) = 1$ for $k \\in \\{m, m-1\\}$ indicates that both of these are winning positions so, faced with initial parameters $(m, n)$, the current player is forced to hand a winning position to the opponent.\n\nOn the other hand, if $f(k, n - k) = 0$ for some $k \\in \\{m, m - 1\\}$, then the player can remove $k$ counters to hand a losing position to the other player. (If both values are 0, then either move works.) We have shown that the values of $f(m, n)$ indicate the winner and provide a winning strategy.\n\nLet us note two implications that follow from (9) and which we will use repeatedly:\n$$\n\\begin{aligned}\nf(m, n - m) &= 1 &\\Rightarrow f(m, n) &= 1 - f(m - 1, n - m + 1), \\\\\nf(m - 1, n - m + 1) &= 1 &\\Rightarrow f(m, n) &= 1 - f(m, n - m).\n\\end{aligned}\n$$\nLet us show that\n$$\nf(2, n) = \\begin{cases} 0, & n \\text{ divisible by } 4, \\\\ 1, & \\text{otherwise.} \\end{cases} \\qquad (10)\n$$\nIn fact, if $n$ is odd, then $f(2, n) = 1$ because $f(1, n - 1) = 0$ by (7). If $n > 0$ is even, then $f(1, n - 1) = 1$, so $f(2, n) = 1 - f(2, n - 2)$. In view of the initial values $f(2, 0) = 0$ and $f(2, 2) = 1$, we get the desired values of $f$. We next show that\n$$\nf(3, n) = \\begin{cases} 1, & n = 3 \\text{ or } (n > 0 \\text{ and } n \\text{ even}), \\\\ 0, & \\text{otherwise.} \\end{cases} \\qquad (11)\n$$\nThe initial values give us (11) for $n \\le 3$, so we suppose inductively that the equation in (11) holds as long as $n < 4k$ for some $k \\in \\mathbb{N}$. Since $f(2, 4k) = 0$, we have $f(3, 4k + 2) = 1$. As for $f(3, n)$ for $n \\in \\{4k, 4k + 1, 4k + 3\\}$, in each of these cases $f(2, n - 2) = 1$ and so $f(3, n) = 1 - f(3, n - 3)$.\nFor $n = 4k$, we inductively have $f(3, n - 3) = f(3, 4n - 3) = 0$, so $f(3, 4k) = 1 - 0 = 1$. This in turn implies that $f(3, 4k + 3) = 1 - 1 = 0$. Similarly, $f(3, 4k + 1 - 3) = 1$, so $f(3, 4k + 1) = 1 - 1 = 0$. This completes the inductive step (from $n < 4k$ to $n < 4(k + 1)$), so (11) is fully valid.\nWe next show that\n$$\nf(4, n) = \\begin{cases} 0, & n < 3 \\text{ or } n \\equiv \\pm 1 \\pmod 8, \\\\ 1, & \\text{otherwise.} \\end{cases} \\qquad (12)\n$$\nThe initial values give us (12) for $n \\le 4$, so we suppose that $n > 4$. We get $f(4, 6) = 1$ because $f(4, 2) = 0$. For even $n > 6$, we get $f(4, n) = 1$ because $f(3, n - 3) = 0$.\n\nSuppose therefore that $n > 4$ is odd. Since $f(3, n-3) = 1$, we have $f(4, n) = 1 - f(4, n-4)$. This equation plus the above initial values give us $f(4, k)$ for all odd $k > 4$.\n\nWe now have useful formulae for $f(m, n)$ for all $1 \\le m \\le 4$ and $n \\ge 0$. For Alice to have a guaranteed win, she must choose the value of $n \\ge 2024$ so that $f(m, n) = 1$ for each $m \\in \\{2, 3, 4\\}$. By our above formulae, $m = 2$ rules out $n = 2024$, while $m = 3$ rules out $n = 2025$. However, $n = 2026$ has the desired properties, so that is our answer. More generally, for $n > 3$ we can say that $f(2, n) = f(3, n) = f(4, n) = 1 \\pmod{4}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33422, "subject": "Mathematics (Multi-modal)", "question": "Let $a$, $b$, $c$ be positive real numbers with $a \\le c$ and $b \\le c$. Prove that\n$$\n(a + 10b)(b + 22c)(c + 7a) \\ge 2024 \\quad abc.\n$$", "options": [], "answer": "Detailed solution", "solution": "By the AM-GM inequality for eleven numbers (or weighted AM-GM) we get $a + 10b \\ge 11\\sqrt[11]{ab^{10}}$. Similarly, we get\n$$\nb + 22c \\ge 23\\sqrt[23]{bc^{22}} \\quad \\text{and} \\quad c + 7a \\ge 8\\sqrt[8]{ca^7}.\n$$\nMultiplying these three inequalities gives\n$$\n(a + 10b)(b + 22c)(c + 7a) \\ge 2024 a^{\\frac{1}{11} + \\frac{7}{8}} b^{\\frac{10}{11} + \\frac{1}{23}} c^{\\frac{22}{23} + \\frac{1}{8}}.\n$$\nWe will be finished if we can prove that\n$$\na^{\\frac{1}{11} + \\frac{7}{8}} b^{\\frac{10}{11} + \\frac{1}{23}} c^{\\frac{22}{23} + \\frac{1}{8}} \\ge abc.\n$$\nSince $\\frac{1}{11} + \\frac{7}{8} = \\frac{1955}{2024}$, $\\frac{10}{11} + \\frac{1}{23} = \\frac{1928}{2024}$ and $\\frac{22}{23} + \\frac{1}{8} = \\frac{2189}{2024}$, this can be rewritten as\n$$\na^{1955} b^{1928} c^{2189} \\ge a^{2024} b^{2024} c^{2024}, \\text{ which simplifies to } c^{165} = c^{69} c^{96} \\ge a^{69} b^{96}.\n$$\nSince $c \\ge a$ and $c \\ge b$, we have $c^{69} \\ge a^{69}$ and $c^{96} \\ge b^{96}$, hence $c^{69}c^{96} \\ge a^{69}b^{96}$, which concludes the proof.\nDefine $T = (a + 10b)(b + 22c)(c + 7a) - 2024abc$ and expand\n$$\nT = 220c^2b + 22ac^2 + 10cb^2 - 483abc + 154a^2c + 70ab^2 + 7a^2b.\n$$\nDefine $x = c/a$ and $y = c/b$ and write $T/c^3$ in terms of $x$ and $y$ to get $T = \\frac{c^3}{x^2y^2}S$, where $S = 220x^2y + 22xy^2 + 10x^2 - 483xy + 154y^2 + 70x + 7y$. Since $x \\ge 1$ and $y \\ge 1$, we can write $x = u + 1$ and $y = v + 1$ where $u, v \\ge 0$ and obtain\n$$\nS = 220u^2v + 22uv^2 + 230u^2 + uv + 176v^2 + 69u + 96v.\n$$\nClearly $S \\ge 0$ and hence $T \\ge 0$ as required.\nAfter multiplying the terms on the left hand side and simplifying, the original inequality becomes\n$$\n220c^2b + 22ac^2 + 10cb^2 + 154a^2c + 70ab^2 + 7a^2b \\geq 483abc.\n$$\nThe sum of the coefficients on the left hand side is 483, hence we can use weighted AM-GM to obtain\n$$\n\\begin{aligned}\n& 220c^2b + 22ac^2 + 10cb^2 + 154a^2c + 70ab^2 + 7a^2b \\\\\n& \\geq 483(c^2b)^{\\frac{220}{483}} (ac^2)^{\\frac{22}{483}} (cb^2)^{\\frac{10}{483}} (a^2c)^{\\frac{154}{483}} (ab^2)^{\\frac{70}{483}} (a^2b)^{\\frac{7}{483}} \\\\\n& = 483a^{\\frac{414}{483}} b^{\\frac{387}{483}} c^{\\frac{648}{483}} \\geq 483abc.\n\\end{aligned}\n$$\nThe last inequality was obtained from\n$$\nc^{\\frac{69}{483}} \\geq a^{\\frac{69}{483}} \\quad c^{\\frac{96}{483}} \\geq b^{\\frac{96}{483}},\n$$\nusing $648 - 69 - 96 = 483$, $414 + 69 = 483$ and $387 + 96 = 483$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33423, "subject": "Mathematics (Multi-modal)", "question": "How many 4-digit numbers $ABCD$ are there with the property that\n$$\n|A - B| = |B - C| = |C - D|?\n$$\nNote that the first digit $A$ of a four-digit number $ABCD$ cannot be zero.", "options": [], "answer": "187", "solution": "**16.**\nLet $d = |A - B| = |B - C| = |C - D|$ then $d$ can take the values $0, 1, 2, 3, 4, 5, 6, 7, 8, 9$. For $d = 0$ we find 9 numbers $1111, 2222, 3333, 4444, 5555, 6666, 7777, 8888, 9999$. For other values of $d$, we take each of the eight sequences\n$$\n+++, ++-, +−+, +−−, −+++, −+−, −−+, −−−\n$$\nand find possible starting points to produce numbers with that particular sequence indicating for each digit whether the next digit is smaller or larger.\n\n**Case 1.** `+++` (9 solutions)\n$d = 1$ gives $1234, 2345, 3456, 4567, 5678, 6789$\n$d = 2$ gives $1357, 2468, 3579$\n$d = 3, 4, 5, 6, 7, 8, 9$ do not give further solutions.\n\n**Case 2.** `++−` (16 solutions)\n$d = 1$ gives $1232, 2343, 3454, 4565, 5676, 6787, 7898$\n$d = 2$ gives $1353, 2464, 3575, 4686, 5797$\n$d = 3$ gives $1474, 2585, 3696$\n$d = 4$ gives $1595$\n\nCase 3. `+-+` (36 solutions)\n| $d$ | Numbers |\n|---|---|\n| $1$ | $1212, 2323, 3434, 4545, 5656, 6767, 7878, 8989$ |\n| $2$ | $1313, 2424, 3535, 4646, 5757, 6868, 7979$ |\n| $3$ | $1414, 2525, 3636, 4747, 5858, 6969$ |\n| $4$ | $1515, 2626, 3737, 4848, 5959$ |\n| $5$ | $1616, 2727, 3838, 4949$ |\n| $6$ | $1717, 2828, 3939$ |\n| $7$ | $1818, 2929$ |\n| $8$ | $1919$ |\n\nCase 4. `+--` (20 solutions)\n| $d$ | Numbers |\n|---|---|\n| $1$ | $1210, 2321, 3432, 4543, 5654, 6765, 7876, 8987$ |\n| $2$ | $2420, 3531, 4642, 5753, 6864, 7975$ |\n| $3$ | $3630, 4741, 5852, 6963$ |\n| $4$ | $4840, 5951$ |\n\nCase 5. `-++` (20 solutions)\n| $d$ | Numbers |\n|---|---|\n| $1$ | $1012, 2123, 3234, 4345, 5456, 6567, 7678, 8789$ |\n| $2$ | $2024, 3135, 4246, 5357, 6468, 7579$ |\n| $3$ | $3036, 4147, 5258, 6369$ |\n| $4$ | $4048, 5159$ |\n\nCase 6. `-+-` (45 solutions)\n| $d$ | Numbers |\n|---|---|\n| $1$ | $1010, 2121, 3232, 4343, 5454, 6565, 7676, 8787, 9898$ |\n| $2$ | $2020, 3131, 4242, 5353, 6464, 7575, 8686, 9797$ |\n| $3$ | $3030, 4141, 5252, 6363, 7474, 8585, 9696$ |\n| $4$ | $4040, 5151, 6262, 7373, 8484, 9595$ |\n| $5$ | $5050, 6161, 7272, 8383, 9494$ |\n| $6$ | $6060, 7171, 8282, 9393$ |\n| $7$ | $7070, 8181, 9292$ |\n| $8$ | $8080, 9191$ |\n| $9$ | $9090$ |\n\nCase 7. $--+$ (20 solutions)\n$d=1$ gives $2101, 3212, 4323, 5434, 6545, 7656, 8767, 9878$\n$d=2$ gives $4202, 5313, 6424, 7535, 8646, 9757$\n$d=3$ gives $6303, 7414, 8525, 9636$\n$d=4$ gives $8404, 9515$\n$d=5, 6, 7, 8, 9$ do not give further solutions.\n\nCase 8. $---$ (12 solutions)\n$d=1$ gives $3210, 4321, 5432, 6543, 7654, 8765, 9876$\n$d=2$ gives $6420, 7531, 8642, 9753$\n$d=3$ gives $9630$\n\nAdding the 9 with $d=0$ to the count for each $+-$ pattern, we obtain\n$9 + 9 + 16 + 36 + 20 + 20 + 45 + 20 + 12 = 187$.\nLet $d = B - A$ so $d$ can take integer values from $-9$ to $9$ inclusive. If $d = 0$ then there are $9$ cases. So let us consider $d \\neq 0$. We will first count the cases including those where $A = 0$ is permitted and then subtract those cases starting with zero.\nWhen $d \\neq 0$, there are four possible patterns for the three differences, namely\n* Case $(d, -d, d)$. This requires two distinct digits separated by a gap $|d|$, with $10 - |d|$ cases.\n* Cases $(d, d, -d)$ and $(d, -d, -d)$. This requires three distinct digits in arithmetic progression, with $10-2|d|$ cases if $d \\le 4$ and none otherwise.\n* Case $(d, d, d)$. This requires four digits in arithmetic progression with gap of $|d|$, i.e. the smallest digit $a$ must satisfy $a+3|d| \\le 9$, which gives $10-3|d|$ cases if $|d| \\le 3$ and no cases otherwise.\nNow let us enumerate the cases with initial digit $A = 0$ and $d \\neq 0$. There are no examples with $d < 0$. If $d > 0$, the difference pattern $(d, -d, -d)$ is impossible as it results in a negative final digit. The pattern $(d, -d, d)$ has solutions for any $1 \\le d \\le 9$, the pattern $(d, d, -d)$ has solutions for any $1 \\le d \\le 4$, the pattern $(d, -d, -d)$ has no solutions as the final digit cannot be negative, while the case $(d, d, d)$ has a solution if $1 \\le d \\le 3$.\n\nWe can now summarise all the cases according to the value of $|d|$ in the following table.\n\n| $|d|$ | $d < 0$ | $d > 0$ | $A \\neq 0$ |\n|-------|---------|---------|------------|\n| 0 | | | 9 |\n| 1 | 32 | 32 | -3 |\n| 2 | 24 | 24 | -3 |\n| 3 | 16 | 16 | -3 |\n| 4 | 10 | 10 | -2 |\n| 5 | 5 | 5 | -1 |\n| 6 | 4 | 4 | -1 |\n| 7 | 3 | 3 | -1 |\n| 8 | 2 | 2 | -1 |\n| 9 | 1 | 1 | -1 |\n| Total | | | 187 |\n\nThe solution to the problem then is 187 cases.\nLet $d = |A - B| = |B - C| = |C - D|$.\nFor each value of $d$ from 0 to 9, set up a tableau with 4 rows (numbered 1 to 4) and 10 columns (numbered 0 to 9). The number $n(r, c)$ in row $r$ and column $c$ is the number of $r$-digit numbers, ending in the digit $c$, that have an absolute difference of $d$ between adjacent digits.\n\nIn row 1, for all $d$ we have $n(1,0) = 0$ because there is no 1-digit number ending in zero, while $n(1,c) = 1$ for $1 \\le c \\le 9$. In subsequent rows, by considering appending a final digit to a number of $r-1$ digits, $n(r,c)$ is the sum of $n(r-1,c-d)$ and $n(r-1,c+d)$ when $d > 0$. These summands are taken to be zero if the reference overspills the tableau, i.e. if $c - d < 0$ or $c - d > 9$. In the special case $d = 0$, the rows are all equal to the first row. The tableaux are shown below.\n\n| $d = 0$ | $c =$ | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Total |\n|---------|-------|---|---|---|---|---|---|---|---|---|---|-------|\n| | $r = 1$ | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | |\n| | $r = 2$ | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | |\n| | $r = 3$ | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | |\n| | $r = 4$ | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 9 |\n\nThe total of the totals is 187.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33424, "subject": "Mathematics (Multi-modal)", "question": "Let $K, L, M$ denote three points on the sides $BC, AB$ and $AC$ of $\\triangle ABC$, so that $ALKM$ is a parallelogram. Points $S$ and $T$ are chosen on lines $KL$ and $KM$ respectively, so that the quadrilaterals $ASBK$ and $AKCT$ are both cyclic. Prove that $SLMT$ is cyclic if and only if $K$ is the midpoint of $BC$.", "options": [], "answer": "Detailed solution", "solution": "The problem can be solved by angle chasing, by algebraic equations resulting from similar triangles, or by a combination of the two methods.\n\nWe first show that $S, A, T$ are collinear. Because $ASBK$ is cyclic, we have $\\angle SAB = \\angle SKB$. From $KS \\parallel AC$ we get $\\angle SKB = \\angle C$, so $\\angle SAB = \\angle C$. Similarly $\\angle TAC = \\angle B$, which shows that $S, A, T$ are collinear as\n$$\n\\angle SAT = \\angle A + \\angle B + \\angle C = 180^\\circ.\n$$\n\nQuadrilateral $SLMT$ is cyclic iff $\\angle KLM = \\angle ATM$. But $\\angle ATM = \\angle C$ and $\\angle KLM = \\angle AML$ so $MLST$ is cyclic if and only if $\\angle AML = \\angle C$, which is equivalent to $ML \\parallel BC$.\n\n![](attached_image_1.png)\n\nWe will show in two ways that $ML \\parallel BC$ is equivalent to $K$ being the midpoint of $BC$.\n\n**Version 1.** Suppose $ML \\parallel BC$. Because $KM \\parallel AB$ and $KL \\parallel AC$, we have two parallelograms $BKML$ and $CKLM$ hence $BK = ML = CK$.\nReciprocally, if $K$ is the midpoint of $BC$, then $KM \\parallel AB$ and $KL \\parallel AC$ imply that $L$ and $M$ are the mid-points of $AB$ and $AC$, respectively. Hence $ML$ is a midline in $\\triangle ABC$ and so $ML \\parallel BC$.\n\n**Version 2.** By the Intercept Theorem, $ML \\parallel BC$ is equivalent to $\\frac{AM}{MC} = \\frac{AL}{LB}$. On the other hand, $KL \\parallel AC$ and $MK \\parallel AB$ imply\n$$\n\\frac{CK}{KB} = \\frac{AL}{LB} \\quad \\text{and} \\quad \\frac{AM}{MC} = \\frac{BK}{KC}.\n$$\nHence, $SLMT$ is cyclic if and only if $\\frac{CK}{KB} = \\frac{BK}{KC}$, i.e. $CK = KB$.\n\n**Solution 2.** (based on a strategy by AngYang Li)\n\nDenote lengths of segments as follows:\n$$\n\\begin{aligned}\nc &= |AB| & x &= |AM| = |KL| \\\\\nb &= |AC| & y &= |AL| = |MK|. \\end{aligned}\n$$\nSince $LK \\parallel AC$ and $MK \\parallel AB$, we have $\\triangle MKC \\sim \\triangle ABC \\sim \\triangle LBK$, hence\n$$\n\\frac{b-x}{y} = \\frac{b}{c} = \\frac{x}{c-y} \\quad \\text{and so} \\quad y = \\frac{c}{b}(b-x) \\quad \\text{and} \\quad c-y = \\frac{c}{b} \\cdot x. \\quad (13)\n$$\n\n$$\n\\begin{aligned}\n|KM| \\cdot |MT| &= |AM| \\cdot |MC| = x(b-x) \\\\\n|KL| \\cdot |LS| &= |AL| \\cdot |LB| = y(c-y). \\end{aligned}\n$$\nFinally, $SLMT$ is cyclic iff $\\triangle KLM \\sim \\triangle KTS$, which in turn is equivalent to $\\frac{|KM|}{|KL|} = \\frac{|KS|}{|KT|}$ which we rewrite as follows in equivalent ways\n$$\n\\begin{aligned}\n& |KM| \\cdot |KT| = |KL| \\cdot |KS| \\\\\n& |KM|^2 + |KM| \\cdot |MT| = |KL|^2 + |KL| \\cdot |LS| \\\\\n& y^2 + x(b-x) = x^2 + y \\cdot (c-y) \\\\\n\\end{aligned}\n$$\n$$\n(b - 2x) \\left( \\frac{c^2}{b^2} (b - x) + x \\right) = 0.\n$$\nThe last equation holds true iff $b = 2x$, i.e. $M$ is the midpoint of $AC$, which is equivalent to $K$ being the midpoint of $BC$, as $MK \\parallel AB$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33425, "subject": "Mathematics (Multi-modal)", "question": "Let $a$, $b$ be two distinct positive integers. Prove that the number\n$$\n\\frac{(a+b)^3}{a^3 - a^2b + ab^2 - b^3}\n$$\nis not an integer.", "options": [], "answer": "Detailed solution", "solution": "Suppose the given fraction is equal to the integer $k$, then\n$$\n(a+b)^3 = k(a^2+b^2)(a-b). \\qquad (14)\n$$\nFirst note that replacing $a$ by $da$ and $b$ by $db$ does not change the value of $k$, because numerator and denominator are both homogeneous of degree three. Therefore, we may assume $\\gcd(a, b) = 1$. Moreover, when we swap $a$ and $b$, the given fraction just changes its sign. Therefore, we may assume $a > b$. Also note that $a^3 - a^2b + ab^2 - b^3 = (a^2 + b^2)(a - b)$. In particular, $a - b \\mid (a + b)^3$. Because $\\gcd(a - b, a + b) = \\gcd(a - b, 2a) = \\gcd(a - b, 2b)$ we distinguish two cases according to $a - b$ being even or odd.\n\n**Case 1:** If $a - b$ is odd, $\\gcd(a - b, 2b) = \\gcd(a - b, b) = \\gcd(a, b) = 1$, hence $\\gcd(a - b, a + b) = 1$ and we can only have $a - b \\mid (a + b)^3$ if $a - b = 1$. Substituting $a = b + 1$ in (14), we obtain\n$$\n(2b + 1)^3 = k(2b^2 + 2b + 1).\n$$\nBecause $(2b + 1)^3 = 8b^3 + 12b^2 + 6b + 1 = (4b + 2)(2b^2 + 2b + 1) - (2b + 1)$, we see that $2b^2 + 2b + 1$ can only divide $(2b + 1)^3$ when it also divides $2b + 1$, but this is impossible for $b > 0$ because $2b^2 + 2b + 1 > 2b + 1$.\n\n**Case 2:** If $a - b$ is even, $\\gcd(a - b, 2b) = 2d$ for some positive integer $d$ which divides $b$ and $a - b$. Hence $d$ divides $\\gcd(a - b, b) = \\gcd(a, b) = 1$, i.e. $d = 1$. Therefore, $\\gcd(a - b, a + b) = 2$ in this case. This implies that no prime $p > 2$ can divide $a - b$, since otherwise $p$ would divide $a + b$ as well according to (14). Hence, $a - b = 2^m$ for some $m \\ge 1$. It is not hard to show that $m$ can only be 1, 2 or 3, but we don't need this later and therefore skip the proof.\n\nOn the other hand, $a$ and $b$ are both odd, because they are coprime and have the same parity in the current case.\nWhen we divide $(a+b)^3$ by $a^2+b^2$, we find\n$$\n(a+b)^3 = a^3 + 3a^2b + 3ab^2 + b^3 = (a+3b)(a^2+b^2) - 2(a-b)b^2.\n$$\n\nTogether with equation (14) this implies that $a^2 + b^2$ divides $2(a - b)b^2$. If we substitute $a = b + 2^m$, where $m \\ge 1$, we obtain that\n$$\na^2 + b^2 = 2b^2 + 2^{m+1}b + 2^{2m} \\quad \\text{divides} \\quad 2(a-b)b^2 = 2^{m+1}b^2.\n$$\nHowever, because $m \\ge 1$ and $b$ is odd, the term inside the bracket\n$$\n2b^2 + 2^{m+1}b + 2^{2m} = 2(b^2 + 2^m b + 2^{2m-1})\n$$\nis odd, hence must divide $b^2$, which is impossible since $b^2 + 2^m b + 2^{2m-1} > b^2$. We have now established in both cases that such positive integers $a$, $b$ do not exist.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33426, "subject": "Mathematics (Multi-modal)", "question": "Consider three points $A$, $B$, $C$ on a circle $\\Gamma$, with $\\angle BAC > 90^\\circ$. Let $d$ denote the line tangent to $\\Gamma$ at $A$. Points $M$ and $N$ are chosen on $d$ such that $\\angle MBA = \\angle ABC$ and $\\angle NCA = \\angle ACB$. The circumcircles of triangles $ABM$ and $ACN$ intersect at $A$ and $T$. Prove the following:\n\na. $TA$ is the angle bisector of $\\angle BTC$.\n\nb. The circumcircles of triangles $TMN$ and $TBC$ are tangent at $T$.", "options": [], "answer": "Detailed solution", "solution": "a. As $BTAM$ is cyclic, we have $\\angle BTM = \\angle BAM$. By the Alternate Segment Theorem, $\\angle BAM = \\angle ACB$. Since $CTAN$ is cyclic, $\\angle ACB = \\angle ACN = \\angle ATN$, hence $\\angle BTM = \\angle ATN$. Similarly $\\angle ATM = \\angle CTN$. Adding up we get $\\angle BTA = \\angle CTA$, i.e. $TA$ is the angle bisector of $\\angle BTC$.\n\n![](attached_image_1.png)\n\nb. Let $B'$ be the intersection point of the lines $BA$ and $TN$, and $C'$ the intersection point of the lines $CA$ and $TM$. From (a) we have $\\angle BTC' = \\angle BTM = \\angle BCA = \\angle BCC'$ and $\\angle CTB' = \\angle CTN = \\angle CBA = \\angle CBB'$, hence $C'$ and $B'$ lie on $(BTC)$.\n\n![](attached_image_2.png)\n\nHence also $\\angle B'C'T = \\angle B'BT$, and $\\angle B'BT = \\angle ABT = \\angle AMT = \\angle NMT$ as $AMBT$ is cyclic. Thus $\\angle B'C'T = \\angle NMT$ and so $B'C' \\parallel MN$. Thus $\\triangle TB'C'$ is homothetic to $\\triangle TNM$ with centre $T$, hence their circumcircles $(TMN)$ and $(TB'C') = (TBC)$ are tangent at $T$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33427, "subject": "Mathematics (Multi-modal)", "question": "A group of $100$ people, no two of them are of the same height, are placed in random order in a line. They play a game as follows. At each step, a group of at most $4$ people swap places so that they are now arranged in increasing order of height. Everybody else stays put. Prove that it is always possible to arrange the whole group of $100$ people by height in at most $49$ steps.", "options": [], "answer": "Detailed solution", "solution": "At each step, choose the tallest and second tallest person not yet in their places, as well as the two people in the last two places which are not in the right order. By rearranging these, we get the tallest and second tallest persons in place. After $48$ steps we will be left with at most $4$ people not in place so we may need one more step.", "topic": "Algebra", "subtopic": "Abstract Algebra" }, { "id": 33428, "subject": "Mathematics (Multi-modal)", "question": "There are real numbers $\\alpha, \\beta, \\gamma$ such that the cubic functions\n$$\nf(x) = x^3 - 3x^2 + \\alpha x + \\beta \\quad \\text{and} \\quad g(x) = x^3 + \\gamma x - 6\n$$\nhave exactly two distinct non-zero roots in common. Prove that those two roots satisfy the equation $3(\\alpha - \\gamma - 9)x^2 + (\\alpha - \\gamma - 9)(\\gamma - \\alpha)x + 9\\beta = 0$. Also prove that necessary conditions on $\\alpha, \\beta, \\gamma$ are $(\\alpha - \\gamma)(\\beta + 6) = 54$ and $(\\alpha - \\gamma)^3 + 9\\gamma(\\alpha - \\gamma) + 162 = 0$.", "options": [], "answer": "Detailed solution", "solution": "Suppose the common roots are $a, b$ and the third root of $g$ is $c$. Using Vieta's formulas, or comparing coefficients in\n$$\ng(x) = x^{3} - \\gamma x - 6 = (x - a)(x - b)(x - c) = x^{3} - (a+b+c)x^{2} + (ab+bc+ca)x - abc\n$$\ngive $a + b + c = 0$ and $abc = 6$. Hence, $-c = a + b$ and so\n$$\nab(a + b) = -6. \\qquad (15)\n$$\nThe roots $a, b$ are the roots of the quadratic polynomial $g - f$:\n$$\ng(x) - f(x) = 3x^2 + (\\gamma - \\alpha)x - (\\beta + 6) = 3(x - a)(x - b) \\quad (16)\n$$\nhence\n$$\n\\alpha - \\gamma = 3(a + b) \\qquad (17)\n$$\n$$\n\\beta + 6 = -3ab.\n$$\n\nTo prove the equation $(\\alpha - \\gamma)^3 + 9\\gamma(\\alpha - \\gamma) + 162 = 0$, we use (17) to write this in equivalent form as\n$$\n(a + b)^3 + (a + b)\\gamma + 6 = 0 \\quad \\text{or}\n$$\n$$\na^3 + a\\gamma + b^3 + b\\gamma + 3ab(a + b) + 6 = 0.\n$$\nBecause $g(a) = g(b) = 0$, we have $a^3 + \\gamma a = b^3 + \\gamma b = 6$. Using (15) we see now that the above equation indeed holds true. Finally, from (18) we obtain\n$$\n54 = (\\alpha - \\gamma)(\\beta + 6) = (\\beta + 6)(\\alpha - \\gamma - 9) + 9(\\beta + 6)\n$$\nwhich simplifies to\n$$\n-(\\beta + 6)(\\alpha - \\gamma - 9) = 9\\beta.\n$$\nUsing this and multiplying the expression for $g(x) - f(x)$ in (16) by $\\alpha - \\gamma - 9$, we obtain\n$$\n3(\\alpha - \\gamma - 9)x^2 + (\\alpha - \\gamma - 9)(\\gamma - \\alpha)x + 9\\beta = 0\n$$\nwhich has $a$ and $b$ as its roots, as required.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 33429, "subject": "Mathematics (Multi-modal)", "question": "There is a $n \\times n$ square forest grid in which you wish to grow a forest. You have $n^2$ saplings (young trees) so that the $i$-th sapling, once planted, will grow to a tree of height exactly $i$ metres tall. Each sapling has to be planted in a different square of the forest grid. A balanced forest is one in which for every tree in the forest at least one of the following conditions holds true:\n* There exists a smaller tree in the same column.\n* There exists a taller tree in the same row.\nIn how many ways can you grow a balanced forest?", "options": [], "answer": "n^2! - n^2 * binom(n^2, 2n - 1) * ((n - 1)!)^2 * (n - 1)^2!", "solution": "The number of ways to grow a forest that may or may not be balanced is equal to $n^2!$. To answer the question we will first count the unbalanced forests, then subtract.\n\nThe main observation is that an unbalanced forest contains exactly one tree that violates both conditions. Indeed, if there were two such trees, say of heights $i$ and $j$, then they cannot be in the same row or same column since $i \\neq j$. If tree $i$ is in square $(a, b)$, then $i$ is the tallest tree in row $a$ and the smallest tree in column $b$. Similarly, if tree $j$ is at position $(m, n)$, then $j$ is the tallest tree in row $m$ and the smallest tree in column $n$. Therefore, if the tree in square $(a, n)$ has size $u$, then $j < u < i$, hence $j < i$. If the tree in square $(m, b)$ has size $v$, then $i < v < j$, a contradiction.\n\nTo plant an unbalanced forest, there are $n^2$ possible choices for the square with the tree that violates both conditions. The row and column that contain this square will together accommodate $2n-1$ trees. There are $\\binom{n^2}{2n-1}$ possible choices for these trees. Once we have chosen $2n-1$ numbers, the middle value (with $n-1$ smaller and $n-1$ larger numbers in the chosen set) has to become the tree that violates both conditions. The $n-1$ smaller trees can be planted in $(n-1)!$ ways in their row and similarly for the larger trees.\n\nThe remaining $n^2 - (2n-1) = (n-1)^2$ trees can be planted as we like in the remaining squares of the grid. We have $(n-1)^2!$ possibilities for that. In total we find that there are\n$$\nn^2 \\cdot \\binom{n^2}{2n-1} \\cdot ((n-1)!)^2 \\cdot (n-1)^2!\n$$\nways to plant an unbalanced forest, hence the number of ways to plant a balanced forest is equal to\n$$\nn^2! - n^2 \\cdot \\binom{n^2}{2n-1} \\cdot ((n-1)!)^2 \\cdot (n-1)^2!\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33430, "subject": "Mathematics (Multi-modal)", "question": "Let $H$ denote the orthocentre of $\\triangle ABC$, with circumcircle $\\Gamma$. The altitudes $AH$, $BH$, $CH$ intersect $\\Gamma$ for the second time at the points $A'$, $B'$ and $C'$, respectively. The circle of diameter $AH$ intersects $\\Gamma$ at the points $A$ and $D$. Lines $DC$ and $A'B'$ intersect at $E$, while lines $DB$ and $A'C'$ intersect at $F$. Prove that $EF$ is parallel to $BC$.", "options": [], "answer": "Detailed solution", "solution": "The idea of the proof is to show that *EF* is tangent at *H* to the circle which has *AH* as diameter. This will imply the result since *AH* is perpendicular to *BC*.\n\n$$\n\\angle HDE = \\angle MDC = \\angle MAC = 90^\\circ - \\angle AMC = 90^\\circ - \\angle B.\n$$\n![](attached_image_1.png)\nBecause $AA'$ is perpendicular to $BC$ we also have\n$$\n90^\\circ - \\angle B = \\angle BAA' = \\angle BB'A' = \\angle HB'E\n$$\nso that we have established $\\angle HDE = \\angle HB'E$ which implies that $DHEB'$ is cyclic. Then, using that $AA'$ is perpendicular to $BC$ and $BB'$ is perpendicular to $AC$, we see\n$$\n\\angle B'HE = \\angle B'DE = \\angle B'BC = 90^\\circ - \\angle C = \\angle CAH.\n$$\nFinally, the intersection point *L* of the lines $BB'$ and $AC$ is on the circle with diameter *AH* since $BB' \\perp AC$. Thus the equality\n$$\n\\angle LHE = \\angle B'HE = \\angle CAH = \\angle LAH\n$$\nproves that *EH* is tangent to the circle with diameter *AH*. A similar proof shows that *FH* is also tangent to the circle with diameter *AH*, hence *E*, *H*, *F* are collinear and *EF* is tangent at *H* to the circle which has *AH* as diameter.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33431, "subject": "Mathematics (Multi-modal)", "question": "Find all functions $f : \\mathbb{Z} \\to \\mathbb{Z}$ such that $f(f(f(k))) = k + 3$ for all $k \\in \\mathbb{Z}$.", "options": [], "answer": "All solutions are the two families parameterized by integers i and j, defined by residue classes mod 3:\n\n(1) For n ≡ 0,1,2 (mod 3),\n f(n) = n + 1 + 3i if n ≡ 0 (mod 3),\n f(n) = n + 1 + 3j if n ≡ 1 (mod 3),\n f(n) = n + 1 + 3k if n ≡ 2 (mod 3),\nwith k = −i − j.\n\n(2) For n ≡ 0,1,2 (mod 3),\n f(n) = n − 1 + 3i if n ≡ 0 (mod 3),\n f(n) = n − 1 + 3j if n ≡ 1 (mod 3),\n f(n) = n − 1 + 3k if n ≡ 2 (mod 3),\nwith k = 2 − i − j.\n\nIn each case i and j are arbitrary integers, and k is determined as above; these are exactly all functions satisfying f(f(f(k))) = k + 3.", "solution": "We use the notation $f^n : \\mathbb{Z} \\to \\mathbb{Z}, n \\in \\mathbb{N}$, for the $n$-fold iterate of $f$. Note that\n$$\nf(n + 3) = f(f^3(n)) = f^3(f(n)) = f(n) + 3\n$$\nwhich, by an easy induction argument implies that\n$$\nf(n + 3k) = f(n) + 3k, \\quad \\text{for all } n, k \\in \\mathbb{Z}. \\qquad (20)\n$$\n\nIt follows that once we know $f$ for a complete set of mod-3 representatives, such as $\\{0, 1, 2\\}$, we know all values of $f$. Furthermore, $f$ induces a function $f_3 : \\mathbb{Z}_3 \\to \\mathbb{Z}_3$: just work mod 3 on both the domain and image sides.\nMoreover, $f$ cannot fix a residue class mod 3 since if $f(n) = n+3m$, then (20) would imply that $f^2(n) = n + 6m$ and $f^3(n) = n + 9m$, which is inconsistent with the identity $f^3(n) = n + 3$. Thus, $f_3$ is a 3-cycle. Bearing in mind (20), it follows that $f$ is defined either by\n$$\nf(n) = \\begin{cases} n + 1 + 3i, & n \\equiv 0 \\pmod{3}, \\\\ n + 1 + 3j, & n \\equiv 1 \\pmod{3}, \\\\ n + 1 + 3k, & n \\equiv 2 \\pmod{3}, \\end{cases} \\qquad (21)\n$$\nor\n$$\nf(n) = \\begin{cases} n - 1 + 3i, & n \\equiv 0 \\pmod{3}, \\\\ n - 1 + 3j, & n \\equiv 1 \\pmod{3}, \\\\ n - 1 + 3k, & n \\equiv 2 \\pmod{3}, \\end{cases} \\qquad (22)\n$$\nfor some $i, j, k \\in \\mathbb{Z}$. In fact, the identity $f^3(n) = n + 3$ allows us to compute $k$ in terms of $i, j$ in both cases: in (21), we must have $k = -i - j$ while in (22), we must have $k = 2 - i - j$.\nWith these equations, it is routine to check that all of these functions give solutions of the desired identity. In fact, this follows in (21) from the fact that $f_3$ is a 3-cycle so when we apply $f$ three times to any given number $n$, we are adding $1+3i, 1+3j$, and $1-3i-3j$ in some order; the proof for (22) is similar.\nNote that distinct pairs $(i, j)$ in either (21) or (22) give distinct functions (with $k$ specified as above), and also a function of type (21) never equals a function of type (22) since the associated function $f_3$ is different in both cases (but independent of $i$ and $j$).", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33432, "subject": "Mathematics (Multi-modal)", "question": "Find, with proof, all functions $f : \\mathbb{R}_+ \\to \\mathbb{R}_+$ with the property that\n$$\nf(x + f(y) + f(f(z))) = z + f(y) + f(f(x)) \\quad \\text{for all } x, y, z > 0.\n$$", "options": [], "answer": "f(x) = x for all x > 0", "solution": "For simplicity, we will write $f^2(x) = f(f(x))$, $f^3(x) = f(f(f(x)))$, etc.\n\nFirst we show that $f$ must be injective. Suppose $f(z_1) = f(z_2)$. Replacing $z$ by $z_1$ or by $z_2$ in (1) leads to the same LHS expressions, hence the two RHS expressions must be equal as well, i.e. $z_1 + f(y) + f^2(x) = z_2 + f(y) + f^2(x)$ which implies $z_1 = z_2$.\n\nWe now make the RHS of (1) equal to $z + f^2(y) + f^2(x)$ in two different ways in order to benefit from the injectivity of $f$. Replacing $y$ by $f(y)$ gives $f(x + f^2(y) + f^2(z)) = z + f^2(y) + f^2(x)$. Replacing $x$ by $y$ and $y$ by $f(x)$ gives $f(y + f^2(x) + f^2(z)) = z + f^2(x) + f^2(y)$. Because the RHS is the same in both expressions, and $f$ is injective, it follows that\n$$\nx + f^2(y) + f^2(z) = y + f^2(x) + f^2(z),\n$$\ni.e. $f^2(x) - x = f^2(z) - z$ for all positive $x, z$.\n\nThis means that $f^2(x) - x = c$ is a constant that does not depend on $x$. Setting $t = 1 + f(1) + f^2(1)$, equation (1) with $x = y = z = 1$ implies $f(t) = t$, hence $f^2(t) = t$ and $f^2(t) - t = 0$. Therefore $c = 0$ and we have shown\n\n$$\nf^2(x) = x \\quad \\text{for all } x > 0. \\qquad (23)\n$$\nPick any $d > 0$ and put $x = d$, $y = f(d)$ and $z = d$ in (1), then use (23) to obtain $f(3d) = 3d$. This means that\n$$\nf(x) = x \\quad \\text{for all } x > 0. \\qquad (24)\n$$\nThis function clearly satisfies (1).", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33433, "subject": "Mathematics (Multi-modal)", "question": "Let $A$, $B$, $C$ be three points on a circle $\\Gamma$, and let $L$ denote the midpoint of segment $BC$. The perpendicular bisector of $BC$ intersects the circle $\\Gamma$ at two points $M$ and $N$, such that $A$ and $M$ are on different sides of line $BC$. Let $S$ denote the point where the segments $BC$ and $AM$ intersect. Line $NS$ intersects the circumcircle of $\\triangle ALM$ at two points $D$ and $E$, with $D$ lying in the interior of the circle $\\Gamma$.\n\na.\nProve that $M$ is the circumcentre of $\\triangle BCD$.\n\nb.\nProve that the circumcircles of $\\triangle BCD$ and $\\triangle ADN$ are tangent at $D$.", "options": [], "answer": "Detailed solution", "solution": "(a) By construction, $M$, $N$ are on $\\Gamma = (ABC)$ and $D$, $E$ are on $(ALM)$. The circles $\\Gamma = (ABC)$ and $(BCD)$ have radical axis $BC$, and the circles $(ABC)$ and $(ALM)$ have radical axis $AM$.\nSince $S$ is the intersection of these two radical axes, this point is the radical centre of the three circles $(ABC)$, $(BCD)$ and $(ALM)$. Thus $(BCD)$ and $(ALM)$ have radical axis $DS$. Since $DS$ intersects $(ALM)$ at $D$ and $E$, it follows that $E$ is also on $(BCD)$.\n\n![](attached_image_1.png)\nLet $Z$ be the intersection point of $NA$ and $BC$. Because $MN$ is a perpendicular bisector of a chord of $(ABC)$, it is a diameter of this circle, hence $\\angle MAN = 90^\\circ$ and so $\\angle ZAM = 90^\\circ$.\nSince $ML$ is the perpendicular bisector of $BC$, $\\angle ZLM = \\angle BLM = 90^\\circ$. Now $\\angle ZAM = \\angle ZLM = 90^\\circ$ implies that $Z$ is on $(ALM)$ and $MZ$ is a diameter of this circle.\nMoreover, since $MA$ is perpendicular to $NZ$ and $ZL$ is perpendicular to $MN$, as we have seen above, their intersection point $S$ is the orthocentre of $\\triangle MNZ$, hence $NS$ is perpendicular to $ZM$. This means that $ZM$, being a diameter of $(ALM)$, is the perpendicular bisector of $DE$ which is a common chord of $(ALM)$ and $(BCD)$. Because $MN$ is the perpendicular bisector of $BC$ it follows that $M$ is the centre of $(BCD)$.\n\n(b) Because $AM$ is perpendicular to $AN$ and $ZM$ is perpendicular to $NE$, we have $\\angle AMZ = \\angle AND$. In $(ALM)$ we have $\\angle ADZ = \\angle AMZ$ hence $ZD$ is tangent to $(ADN)$ (the alternate segment theorem). As $ZM$ is diameter of $(ALM)$, we have $\\angle MDZ = 90^\\circ$, so $ZD$ is also tangent to $BCD$ the centre of which was shown to be $M$ in part (a).\n\n![](attached_image_2.png)\n(a) Because $MN$ is the perpendicular bisector of $BC$, $MN$ is a diameter of $(ABC)$. Hence $\\angle MCN = 90^\\circ = \\angle MLC$, and thus $\\triangle MLC \\sim \\triangle MCN$, as they also share an angle at $M$. Hence\n$$\n\\frac{|ML|}{|MC|} = \\frac{|MC|}{|MN|} \\implies |MC|^2 = |ML| \\cdot |MN|. \\quad (25)\n$$\nAlso, the quadrilateral $ANLS$ is cyclic since $\\angle NAM = \\angle NLB = 90^\\circ$. Since both $ANLS$ and $ADLM$ are cyclic, we have\n$$\n\\angle LNS = \\angle LAM = \\angle LDM\n$$\nand thus $\\triangle MLD \\sim \\triangle MDN$ (also sharing the angle at $M$), which gives\n$$\n\\frac{|ML|}{|MD|} = \\frac{|MD|}{|MN|} \\implies |MD|^2 = |ML| \\cdot |MN|. \\quad (26)\n$$\nEquations (25) and (26) give $|MD| = |MC|$. As $M$ is on the perpendicular bisector of $BC$, we also have $|MC| = |MB|$, hence $M$ is the circumcentre of $\\triangle BDC$.\n\n(b) Let $Q$ be the circumcentre of $\\triangle DNA$. It suffices to prove that $Q$, $D$, $M$ are collinear. On the one hand, for the circle ($ADN$):\n$$\n\\angle QDN = 90^\\circ - \\frac{1}{2} \\angle DQN = 90^\\circ - \\angle NAD = \\angle DAM. \\quad (27)\n$$\nOn the other hand, the power of the point $M$ with respect to ($SLNA$) gives\n$$\n|ML| \\cdot |MN| = |MS| \\cdot |MA|, \\quad (28)\n$$\nwhich together with equation (26) gives\n$$\n|MD|^2 = |MS| \\cdot |MA| \\quad \\text{and so} \\quad \\frac{|MS|}{|MD|} = \\frac{|MD|}{|MA|}, \\quad (29)\n$$\nthus $\\triangle MDA \\sim \\triangle MSD$, which implies\n$$\n\\angle DAM = \\angle MDS. \\quad (30)\n$$\nFinally equations (27) and (30) give $\\angle QDN = \\angle MDS$, hence $M$, $D$, $Q$ are collinear since $N$, $D$, $S$ are.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33434, "subject": "Mathematics (Multi-modal)", "question": "Jimmy the grasshopper is sitting on a corner square of a rectangular $9 \\times n$ board, where $n \\ge 8$. To describe the hops Jimmy can make, we label the squares of the board by pairs of positive integers $(a, b)$, where $1 \\le a \\le 9$ and $1 \\le b \\le n$.\nJimmy can hop in both directions between squares $(a, b)$ and $(a', b')$ if either\n$$\nb' \\equiv b + 7 \\pmod{n} \\quad \\text{and} \\quad a' = a + 2, \\quad \\text{or} \\\\\nb' \\equiv b + 2 \\pmod{n} \\quad \\text{and} \\quad a' = a + 7.\n$$\nHow many squares of the board can Jimmy reach by hopping repeatedly?", "options": [], "answer": "9n / gcd(45, n)", "solution": "Let $g = \\gcd(45, n)$, then the answer will be $9n/g$.\n\n$$\n\\begin{align*}\nV &= (2, 7) \\quad \\text{i.e. hopping from } (a, b) \\text{ to } (a + 2, b + 7) \\\\\nV^{-1} &= (-2, -7) \\quad \\text{i.e. hopping from } (a, b) \\text{ to } (a - 2, b - 7) \\\\\nH &= (7, 2) \\quad \\text{i.e. hopping from } (a, b) \\text{ to } (a + 7, b + 2) \\\\\nH^{-1} &= (-7, -2) \\quad \\text{i.e. hopping from } (a, b) \\text{ to } (a - 7, b - 2),\n\\end{align*}\n$$\nwhere the second coordinate is to be understood modulo $n$. We use these symbols to denote sequences of moves. For example, $V^2H^{-3}V$ means $V$ followed by three consecutive $H^{-1}$, followed by two consecutive $V$. Note that we read this from right to left.\n\n**Lower Bound.** We first show that Jimmy can reach at least $9n/g$ squares. Starting at the corner square $(1, 1)$, the sequence $S = H^{-1}V^3H^{-1}V^4$ lets Jimmy travel as follows: $(1, 1) \\mapsto (3, 8) \\mapsto (5, 15) \\mapsto (7, 22) \\mapsto (9, 29) \\mapsto (2, 27) \\mapsto (4, 34) \\mapsto (6, 41) \\mapsto (8, 48) \\mapsto (1, 46)$. This means that $S$ corresponds to the addition of $(0, 45)$. Hence, iterating $S$ we see that $S^k$ corresponds to the addition of $45k \\pmod n$ to the column number and no change in the row number.\nThe congruence $b \\equiv 1 + 45k \\pmod{n}$, has a solution $k$ if and only if $g \\mid b - 1$. We can always pick a positive solution $k$ in its congruence class modulo $n$. Therefore, Jimmy can reach $n/g$ squares in row 1, namely those in columns $b = 1 + mg, 0 \\le m < n/g$.\nThrough the sequence $S$, Jimmy has visited each row exactly once before coming back to row 1. Considering the part of the sequence $S^2$ that starts and ends at row $a$, the same argument as above shows that Jimmy is able to hop on $n/g$ squares on row $a$ as well. Hence, Jimmy can reach at least $9n/g$ squares in total.\n\nSuppose Jimmy starts at square $(a, b)$ with move $V^{p_1}H^{q_1}V^{p_2}H^{q_2}\\cdots V^{p_r}H^{q_r}$, where $p_i, q_i$ are integers. Let $p = p_1 + p_2 + \\cdots + p_r$ and $q = q_1 + q_2 + \\cdots + q_r$. Then Jimmy ends up on the square $(a + 2p + 7q, b + 7p + 2q)$, where the second coordinate is to be taken modulo $n$. If Jimmy ends up in row $a$, we have $2p + 7q = 0$, hence $2 \\mid q$ and $7 \\mid p$ and there exists an integer $k$ such that $p = 7k, q = -2k$. The column number is then congruent to\n$$\nb + 7p + 2q \\equiv b + 7 \\cdot 7 \\cdot k - 2 \\cdot 2 \\cdot k \\equiv b + 45k \\pmod{n}.\n$$\nHence, Jimmy can only move from square $(a, b)$ to square $(a, c)$ if $c - b \\equiv 45k \\pmod{n}$ for some integer $k$. Such a $k$ exists exactly when $g \\mid c - b$. As any two squares Jimmy reaches during his entire journey are connected by a sequence of moves, it follows that Jimmy can reach at most $n/g$ squares in each row. Hence, the maximum number of squares Jimmy can reach is $9n/g$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33435, "subject": "Mathematics (Multi-modal)", "question": "Let $A$, $B$, $C$ be three points on a circle $\\Gamma$ and consider points $M$, $N$ on the side $BC$, point $P$ on the side $AC$ and $Q$ on the side $BC$, such that $MP$ is parallel to $BC$ and $NQ$ is parallel to $AC$. Let $T$ be a point on line $MP$, so that $TC$ is tangent to $\\Gamma$. The circumcircle of $\\triangle TMN$ intersects $\\Gamma$ at $K$ and $L$. Prove that $K$, $L$, $P$, $Q$ are collinear.", "options": [], "answer": "Detailed solution", "solution": "The quadrilateral $TCMA$ is cyclic. Indeed, the Alternate Segment Theorem applied to the tangent $TC$, and $MP \\parallel BC$ implies\n$$\n\\angle TCA = \\angle CBA = \\angle TMA.\n$$\nLet $S$ be the intersection point of the lines $TC$ and $NQ$. It then follows in a similar way that $SCNB$ is cyclic.\n\nMoreover, $TMNS$ is cyclic as well since\n$$\n\\angle CTM = \\angle CAM = \\angle CAB = \\angle SNB.\n$$\nThen $P$ is the radical centre of $(ABC)$, $(TAC)$ and $(TMN)$ while $Q$ is the radical centre of $(ABC)$, $(SBC)$ and $(TMN)$. Thus they are both on $KL$ which is the radical axis of $(ABC)$ and $(TMN)$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33436, "subject": "Mathematics (Multi-modal)", "question": "For positive real numbers $a$, $b$, $c$ that satisfy $a + b + c = 3$, prove the following:\n\na.\n$$\na\\sqrt{b} + b\\sqrt{c} + c\\sqrt{a} \\le 3\n$$\n\nb.\n$$\n\\sqrt{a^3 b} + \\sqrt{b^3 c} + \\sqrt{c^3 a} + \\sqrt{ab^3} + \\sqrt{bc^3} + \\sqrt{ca^3} \\le 6\n$$", "options": [], "answer": "Detailed solution", "solution": "a. First note that\n$$\n2(a + b + c)^2 - 6(ab + bc + ca) = (a - b)^2 + (b - c)^2 + (c - a)^2 \\geq 0\n$$\nhence $ab + bc + ca \\le \\frac{1}{3}(a + b + c)^2 = 3$. Now use Cauchy-Schwarz with vectors $(\\sqrt{a}, \\sqrt{b}, \\sqrt{c})$ and $(\\sqrt{ab}, \\sqrt{bc}, \\sqrt{ca})$ to get\n$$\na\\sqrt{b} + b\\sqrt{c} + c\\sqrt{a} \\le \\sqrt{a + b + c} \\cdot \\sqrt{ab + bc + ca} \\le \\sqrt{3} \\cdot \\sqrt{3} = 3.\n$$\n\nb. Homogenising the inequality we want to prove that\n$$\n\\sqrt{a^3 b} + \\sqrt{b^3 c} + \\sqrt{c^3 a} + \\sqrt{ab^3} + \\sqrt{bc^3} + \\sqrt{ca^3} \\le \\frac{2}{3}(a + b + c)^2.\n$$\nWe introduce $T(a, b) := a^2 + b^2 + 4ab - 3\\sqrt{a^3 b} - 3\\sqrt{ab^3}$, multiply the above by 3 and rearrange to obtain $T(a, b) + T(b, c) + T(c, a) \\ge 0$. To show $T(a, b) \\ge 0$, we define $x = \\sqrt{a}$ and $y = \\sqrt{b}$. This gives\n$$\nT(a, b) = x^4 + y^4 + 4x^2 y^2 - 3x^3 y - 3x y^3 = (x - y)^2(x^2 - x y + y^2) \\ge 0.\n$$\nSimilarly $T(b, c) \\ge 0$ and $T(c, a) \\ge 0$. This proves the result.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33437, "subject": "Mathematics (Multi-modal)", "question": "The *runcible* positive integers are defined recursively as follows:\n* $1$ and $2$ are runcible\n* If $a$ and $b$ are runcible (where $a$ and $b$ are not necessarily distinct) then $2a + 3b$ is runcible.\nIs $2024$ runcible?", "options": [], "answer": "Yes", "solution": "Since $1$ and $2$ are runcible, then $8 = 2 \\cdot 1 + 3 \\cdot 2$ is runcible. If $a$ is runcible, then $5a = 2a + 3a$ is also runcible. By induction, $5^k a$ is runcible for all natural numbers $k$. Hence $1000 = 5^3 \\cdot 8$ is runcible and $2024 = 2 \\cdot 1000 + 3 \\cdot 8$ is also runcible.\nWe prove the following, more general statement:\n*If $n \\ge 15$ and $n$ is not a multiple of $3$, then $n$ is runcible.*\nThe runcibility of $2024 = 3 \\times 674 + 2$ then follows immediately.\nFor the proof we use the principle of infinite descent. Suppose there is a counterexample, that is some $n > 15$ that is not a multiple of $3$ and is not runcible. Take the minimal such $n$.\nWe check by brute force that there are no counterexamples with $15 < n < 36$. Direct calculations express the runcible numbers $5$, $7$, $8$, $10$, $13$, $16$, $17$, $19$, $20$, $22$, $23$, $25$, $26$, $28$, $29$, $31$, $32$, $34$ and $35$ (which includes all non-multiples of $3$ between $15$ and $36$) in terms of smaller runcible numbers:\n\n| $2a + 3b$ | $b = 1$ | $b = 2$ | $b = 5$ | $b = 7$ | $b = 8$ | $b = 10$ |\n|-----------|---------|---------|---------|---------|---------|----------|\n| $a = 1$ | $5$ | $8$ | $17$ | $23$ | $26$ | $32$ |\n| $a = 2$ | $7$ | $10$ | $19$ | $25$ | $28$ | $34$ |\n| $a = 5$ | $13$ | $16$ | | $31$ | | |\n| $a = 7$ | | $20$ | $29$ | $35$ | | |\n| $a = 8$ | | $22$ | | | | |\n\nThus any minimal $n$ must have $n > 36$. Consider two cases: either $n$ is odd or $n$ is even. In the odd case, $(n-3)/2$ is a positive integer and we have\n$$\nn = 2 \\cdot \\frac{n-3}{2} + 3 \\cdot 1\n$$\nwhere $(n-3)/2$ is a non-multiple of $3$, at least $16$, and less than $n$ so is runcible by the minimality of $n$. That implies that $n$ is runcible.\nIn the even case $(n-6)/2$ is a positive integer and we have\n$$\nn = 2 \\cdot \\frac{n-6}{2} + 3 \\cdot 2.\n$$\nAs before, $(n-6)/2$ is a non-multiple of $3$ and is at least $16$, and less than $n$ so is runcible by the minimality of $n$, which in turn implies $n$ is runcible. Thus, we have a contradiction. There is no minimal $n$ which exceeds $15$, is not a multiple of $3$ and is not runcible. This proves the claimed general statement and solves the problem.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33438, "subject": "Mathematics (Multi-modal)", "question": "Let $n$ be a positive integer. Consider all arrangements of $n$ identical green coins, $n$ identical white coins and $n$ identical orange coins in a row. Each such arrangement of $3n$ coins can be considered as a sequence of *blocks*, where coins within a block have the same colour and any two adjacent blocks contain coins of two different colours. For example, for the case $n = 4$, the arrangement *GGGOOWOOGWWWW* is formed by 6 blocks, namely *GGG*, *OO*, *W*, *OO*, *G* and *WWW*.\nShow that the average number of blocks, over all distinct arrangements of the $3n$ coins, can be expressed in the form $An+B$, and determine the values of the constants $A$ and $B$.", "options": [], "answer": "A = 2, B = 1", "solution": "For any arrangement, we say that a position $k \\in \\{2, 3, \\dots, 3n\\}$ is a *change* if and only if the coin at position $k$ has a different colour to the coin at position $k-1$. Note that the number of blocks in any arrangement is one greater than the number of changes in that arrangement. For instance, the example arrangement given in the problem statement contains 5 changes (at positions 4, 6, 7, 9 and 10), and the number of blocks is $5+1=6$.\n\nNext we count the total number of changes in all distinct coin arrangements, partitioning the count according to the position $k \\in \\{2, 3, \\dots, 3n\\}$ at which the change occurs (denote this total number of changes by $N_c$). If position $k$ is a change, we can choose the coin at position $k$ in 3 ways and the coin at position $k-1$ in 2 ways. For the remaining positions we can arrange the coins in $(3n-2)!/(n!(n-1)!(n-1)!)$ ways. Since the number of blocks is always one greater than the number of changes, we obtain\n$$\nN_c = (3n - 1) \\cdot 3 \\cdot 2 \\cdot \\frac{(3n - 2)!}{n!(n - 1)!(n - 1)!} = 2n \\cdot \\frac{(3n)!}{(n!)^3}\n$$\nwhere the factor $3n-1$ accounts for all of the possible change positions i.e., all possible values of $k \\in \\{2, 3, \\dots, 3n\\}$.\n\nSince the number of blocks is always one greater than number of changes, the total number of blocks $N_b$ over all distinct coin arrangements, is obtained from $N_c$ by adding $(3n)!/(n!)^3$, which is equal to the total number of distinct coin arrangements, hence\n$$\nN_b = N_c + \\frac{(3n)!}{(n!)^3} = (2n + 1)\\frac{(3n)!}{(n!)^3}\n$$\nThus the average number of blocks over all distinct coin arrangements is\n$$\nN_b = N_c \\cdot \\left[ \\frac{(3n)!}{(n!)^3} \\right]^{-1} = 2n + 1.\n$$\nThus we have established the result, with $A = 2$ and $B = 1$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33439, "subject": "Mathematics (Multi-modal)", "question": "Determine, with proof, the smallest positive integer $N$ for which the equation\n$$\nx^2 - y^2 = N\n$$\nhas exactly 24 solutions $(x, y)$ with positive integers $x$ and $y$.", "options": [], "answer": "10080", "solution": "Because $N > 0$, we need to have $x > y > 0$ for any solution. Since $x^2 - y^2 = (x + y)(x - y)$, each solution gives a factorisation of $N$ into two factors, say $N = a \\cdot b$, where $a = x + y > x - y = b$.\nIf we start with a factorisation $N = a \\cdot b$ with $a > b$, there is at most one solution $(x, y)$ corresponding to this factorisation of $N$, namely\n$$\nx = \\frac{a+b}{2} \\qquad y = \\frac{a-b}{2}.\n$$\nThe condition on $a, b$ for giving an integer solution $(x, y)$ is $a \\equiv b \\pmod 2$ so that $a + b$ and $a - b$ are both even. If $N$ is odd, any factorisation into two positive integers will give a solution. When $N$ is even, however, both factors must be even and $N = 4M$ for some integer $M$. Each factorisation of $M$ into two non-equal factors will then provide a solution.\n\nTo find all factorisations of $N$, we write $N = p_1^{a_1} p_2^{a_2} p_3^{a_3} \\cdots p_k^{a_k}$ where all $a_i > 0$ and $p_1 < p_2 < \\cdots < p_k$. It is well known that the number of positive divisors of $n$ is then equal to $\\tau(N) = (a_1 + 1)(a_2 + 1)\\cdots(a_k + 1)$. If $\\tau(N)$ is even, which is the case precisely when $N$ is not a perfect square, the number of factorisations of $N$ into two factors is equal to $\\tau(N)/2$. If $N$ is a square, we only get $(\\tau(N) - 1)/2$ factorisations with $a > b$.\nFor the equation to have exactly 24 solutions, we need to use $N$ odd with $\\tau(N) = 48$ or $\\tau(N) = 49$, or $N = 4M$ with $\\tau(M) = 48$ or $\\tau(M) = 49$. There is no need to consider $N = 4M$ with odd $M$ since $M < 4M$ and we are looking for the smallest $N$.\nBecause $a_i > 0$ for all $i$, there are only two possibilities to obtain $\\tau(N) = (a_1 + 1)(a_2 + 1)\\cdots(a_k + 1) = 7^2 = 49$, namely $k = 1$ and $a_1 = 48$, or $k = 2$ and $a_1 = a_2 = 6$.\n\nThe smallest odd $N = p_1^{48}$ is $3^{48}$. The smallest $N = 4M$ is $2^{50}$ where we have used $M = 2^{48}$. Clearly, $3^{48} = 27^{16} > 16^{16} = 2^{64} > 2^{50}$.\nThe smallest odd $N = p_1^6 p_2^6$ is $N = 3^6 \\cdot 5^6$. The smallest $N = 4M$ is $N = 2^8 \\cdot 3^6$ with $M = 2^6 \\cdot 3^6$. Note that $2^{50} = 2^8 \\cdot 4^{21} > 2^8 \\cdot 3^6$ and $3^6 \\cdot 5^6 > 3^6 \\cdot 4^4 = 2^8 \\cdot 3^6$. Hence, the smallest $N$ we found so far is $N_0 = 2^8 \\cdot 3^6$.\n\nWe now aim at finding all $N$ for which $\\tau(N) = 48 = 3 \\cdot 2^4$. Since $a_i + 1 \\ge 2$ we can have at most $k=5$ different prime factors in $N$. We distinguish cases according to the number $k$. We will always assure that $a_1 \\ge a_2 \\ge \\dots \\ge a_k$, because this gives the smallest possible odd $N$ when $p_1 < p_2 < \\dots < p_k$ are the $k$ smallest odd primes. When we allow $p_1 = 2$, we need to consider $N = 4M$, i.e. $N = p_1^{a_1+2} p_2^{a_2} p_3^{a_3} \\cdots p_k^{a_k}$ with $p_1 = 2$.\n**Case 1 ($k=5$):** The only option here is $a_1 = 2$ and $a_2 = a_3 = a_4 = a_5 = 1$, which leads to $N = p_1^2 p_2 p_3 p_4 p_5$ and the smallest odd number of this shape is $N_1 = 3^2 \\cdot 5 \\cdot 7 \\cdot 11 \\cdot 13$. The smallest even number $N = 4M$ we obtain here is $N_2 = 4 \\cdot 2^2 \\cdot 3 \\cdot 5 \\cdot 7 \\cdot 11 = 2^4 \\cdot 3 \\cdot 5 \\cdot 7 \\cdot 11$.\n\n$$\n(5, 1, 1, 1) \\quad (3, 2, 1, 1)\n$$\nThe smallest odd $N$ here are $N_3 = 3^5 \\cdot 5 \\cdot 7 \\cdot 11$ and $N_5 = 3^3 \\cdot 5^2 \\cdot 7 \\cdot 11$. The smallest even numbers are $N_4 = 2^7 \\cdot 3 \\cdot 5 \\cdot 7$ and $N_6 = 2^5 \\cdot 3^2 \\cdot 5 \\cdot 7$, respectively.\n\n**Case 3 ($k=3$):** There are four possibilities for $(a_1, a_2, a_3)$:\n$$\n(11, 1, 1) \\quad (5, 3, 1) \\quad (7, 2, 1) \\quad (3, 3, 2)\n$$\nThis leads to the following eight possibilities for $N$:\n$$\n\\begin{array}{lll} (11, 1, 1) & N_7 = 3^{11} \\cdot 5 \\cdot 7 & N_8 = 2^{13} \\cdot 3 \\cdot 5 \\\\ (5, 3, 1) & N_9 = 3^5 \\cdot 5^3 \\cdot 7 & N_{10} = 2^7 \\cdot 3^3 \\cdot 5 \\\\ (7, 2, 1) & N_{11} = 3^7 \\cdot 5^2 \\cdot 7 & N_{12} = 2^9 \\cdot 3^2 \\cdot 5 \\\\ (3, 3, 2) & N_{13} = 3^3 \\cdot 5^3 \\cdot 7^2 & N_{14} = 2^5 \\cdot 3^3 \\cdot 5^2 \\end{array}\n$$\n\n**Case 4 ($k=2$):** There are four possibilities for $(a_1, a_2)$:\n$$\n(23, 1) \\quad (11, 3) \\quad (7, 5) \\quad (15, 2)\n$$\nThis leads to the following eight possibilities for $N$:\n$$\n\\begin{array}{lll} (23, 1) & N_{15} = 3^{23} \\cdot 5 & N_{16} = 2^{25} \\cdot 3 \\\\ (11, 3) & N_{17} = 3^{11} \\cdot 5^3 & N_{18} = 2^{13} \\cdot 3^3 \\\\ (7, 5) & N_{19} = 3^7 \\cdot 5^5 & N_{20} = 2^9 \\cdot 3^5 \\\\ (15, 2) & N_{21} = 3^{15} \\cdot 5^2 & N_{22} = 2^{17} \\cdot 3^2 \\end{array}\n$$\n\n**Case 5 (k = 1):** The only option is $a_1 = 23$ leading to odd $N_{23} = 3^{23}$ and even $N_{24} = 2^{25}$.\n\nTo find the smallest value of $N$, we first note that $2^{a+2} < 3^a$ for all $a \\ge 4$. This is easily shown by induction. This implies that $N_{2m} < N_{2m-1}$ for all $m = 1, 2, \\dots, 12$ except for $m = 1, 3, 7$. After cancelling common factors, it is easy to see that\n$$\n\\begin{align*} \nN_2 &= 2^4 \\cdot 3 \\cdot 5 \\cdot 7 \\cdot 11 < N_1 = 3^2 \\cdot 5 \\cdot 7 \\cdot 11 \\cdot 13 \\\\ \nN_6 &= 2^5 \\cdot 3^2 \\cdot 5 \\cdot 7 < N_5 = 3^3 \\cdot 5^2 \\cdot 7 \\cdot 11 \\\\ \nN_{14} &= 2^5 \\cdot 3^3 \\cdot 5^2 < N_{13} = 3^3 \\cdot 5^3 \\cdot 7^2. \n\\end{align*}\n$$\nThis shows that the smallest $N$ is one of the $N_{2m}$ where $m = 0, 1, 2, \\dots, 12$. If we compare all $N_{2m}$ with $N_6$ we will find that $N_6 = 2^5 \\cdot 3^2 \\cdot 5 \\cdot 7 = 10080$ is the smallest positive $N$ for which $x^2 - y^2 = N$ has exactly 24 solutions in positive integers.\n\nTo show $N_6 < N_{2m}$ in each case we cancel the common factors of these two numbers. To reduce our work, we may first observe that $3^2 \\cdot 5 \\cdot 7 = 316 < 2^9$, hence when $N_{2m}$ has a factor $2^a$ with $a \\ge 14$ it is clear that $N_6 < N_{2m}$. Similarly, $N_6 < N_{2m}$ when $N_{2m}$ has a factor $2^a \\cdot 3$ with $a \\ge 12$, because $3 \\cdot 5 \\cdot 7 = 105 < 2^7$. Finally, since $5 \\cdot 7 = 35 < 2^6$, whenever $N_{2m}$ has a factor $2^a \\cdot 3^2$ with $a \\ge 11$ we also have $N_6 < N_{2m}$. This last case can be extended to those $N_{2m}$ that have a factor $2^a \\cdot 3^{2+i}$ with $a \\ge 11-i$.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 33440, "subject": "Mathematics (Multi-modal)", "question": "A sequence of real numbers $(x_n)_{n=0}^{\\infty}$ is *concave* if\n$$\nx_n \\ge \\frac{x_{n-1} + x_{n+1}}{2}, \\quad \\text{for all } n \\in \\mathbb{N}.\n$$\nGiven two sequences of real numbers $(a_n)_{n=0}^{\\infty}$ and $(b_n)_{n=0}^{\\infty}$, we define a new sequence $(c_n)_{n=0}^{\\infty}$ by:\n$$\nc_n = \\max\\{a_i + b_{n-i} \\mid 0 \\le i \\le n\\}, \\quad n \\ge 0.\n$$\nShow that if $(a_n)_{n=0}^{\\infty}$ and $(b_n)_{n=0}^{\\infty}$ are concave, then so is $(c_n)_{n=0}^{\\infty}$.", "options": [], "answer": "Detailed solution", "solution": "We claim that concavity of $(a_n)$ implies that\n$$\na_i + a_j \\le 2a_{(i+j)/2}, \\quad \\text{for all non-negative } i, j \\in \\mathbb{Z}, \\qquad (31)\n$$\nwhere $a_r$ is defined for $r$ halfway between two integers as follows:\n$$\na_{n-1/2} := \\frac{a_{n-1} + a_n}{2} \\quad \\text{for all } n \\in \\mathbb{N}. \\qquad (32)\n$$\n\nBecause of its symmetry, it suffices to prove (31) when $i \\le j$. Writing $d = j-i$ and $m = (i+j)/2$, we are required to prove\n$$\na_{m-d/2} + a_{m+d/2} \\le 2a_m, \\qquad (34)\n$$\nwhere $m$ and $d$ can take on any values allowed by their definition in terms of $i, j$; in particular, $m$ is an integer if and only if $d$ is even so that $m \\pm d/2$ are always integers in (34).\n\nWe proof (34) by induction. It is trivially true if $d = 0$, it follows from (33) if $d = 1$, and from the assumed concavity if $d = 2$. Suppose inductively that (34) holds for all $d < p$ for some integer $p \\ge 3$ (and all valid associated values of $m$). We then need to prove it for $d = p$. There are two cases to consider.\n\n**Case 1.** $p = 2q$ is even (and so $m$ is an integer). We need to prove\n$$\na_{m-q} + a_{m+q} \\le 2a_m.\n$$\nWe use the assumption (34) for $d = q < p$ and replace $m$ by $m \\pm q/2$ to get\n$$\na_{m-q} + a_m \\le 2a_{m-q/2} \\quad \\text{and} \\quad a_m + a_{m+q} \\le 2a_{m+q/2}.\n$$\nAdding and rearranging gives\n$$\na_{m-q} + a_{m+q} \\le 2a_{m-q/2} + 2a_{m+q/2} - 2a_m. \\quad (35)\n$$\nIf $q$ is even, we use (34) with $d = q$ to get $a_{m-q/2} + a_{m+q/2} \\le 2a_m$ which implies the required inequality.\nIf $q = 2t + 1$ is odd, we use (34) with $d = 2t$ and $d = 2t + 2 < 4t + 2 = p$. Note that $t > 0$ because $p > 2$. We get\n$$\na_{m-t} + a_{m+t} \\le 2a_m \\quad \\text{and} \\quad a_{m-t-1} + a_{m+t+1} \\le 2a_m.\n$$\nTogether with definition (32) this gives\n$$\n\\begin{aligned}\na_{m-q/2} + a_{m+q/2} &= a_{m-t-1/2} + a_{m+t+1/2} \\\\\n&= \\frac{1}{2} (a_{m-t-1} + a_{m-t} + a_{m+t} + a_{m+t+1}) \\le 2a_m \\end{aligned}\n$$\nwhich again implies the required inequality.\n\n**Case 2.** $p = 2q - 1$ is odd (and so $m$ is not an integer). We need to prove\n$$\na_{m-q+1/2} + a_{m+q-1/2} \\le 2a_m.\n$$\nWe use the assumption (34) for $d = q - 1 < p$ and replace $m$ by $m \\pm q/2$ to obtain\n$$\na_{m-q+1/2} + a_{m-1/2} \\le 2a_{m-q/2} \\quad \\text{and} \\quad a_{m+1/2} + a_{m+q-1/2} \\le 2a_{m+q/2}.\n$$\nAdding, rearranging and using (33) gives\n$$\na_{m-q+1/2} + a_{m+q-1/2} \\le 2a_{m-q/2} + 2a_{m+q/2} - 2a_m. \\quad (36)\n$$\n\nNow, to prove the statement for $(c_n)$, note that for any $n \\ge 0$,\n$$\nc_n = \\max_{0 \\le i \\le n} (a_i + b_{n-i})\n$$\nLet $i_0$ be the index where the maximum is attained for $c_n$, i.e., $c_n = a_{i_0} + b_{n-i_0}$.\n\nConsider $c_{n-1}$ and $c_{n+1}$:\n$$\nc_{n-1} = \\max_{0 \\le j \\le n-1} (a_j + b_{n-1-j})\n$$\n$$\nc_{n+1} = \\max_{0 \\le k \\le n+1} (a_k + b_{n+1-k})\n$$\nFor any $i_0$, we have\n$$\nc_{n-1} \\ge a_{i_0-1} + b_{n-i_0} \\quad \\text{(if $i_0 \\ge 1$)}\n$$\n$$\nc_{n+1} \\ge a_{i_0+1} + b_{n-i_0} \\quad \\text{(if $i_0 \\le n$)}\n$$\nSimilarly,\n$$\nc_{n-1} \\ge a_{i_0} + b_{n-i_0-1} \\quad \\text{(if $n-i_0 \\ge 1$)}\n$$\n$$\nc_{n+1} \\ge a_{i_0} + b_{n-i_0+1} \\quad \\text{(if $n-i_0 \\le n+1$)}\n$$\nNow, by concavity of $(a_n)$ and $(b_n)$,\n$$\na_{i_0} \\ge \\frac{a_{i_0-1} + a_{i_0+1}}{2}\n$$\n$$\nb_{n-i_0} \\ge \\frac{b_{n-i_0-1} + b_{n-i_0+1}}{2}\n$$\nAdding,\n$$\na_{i_0} + b_{n-i_0} \\ge \\frac{a_{i_0-1} + b_{n-i_0} + a_{i_0+1} + b_{n-i_0}}{2}\n$$\nand\n$$\na_{i_0} + b_{n-i_0} \\ge \\frac{a_{i_0} + b_{n-i_0-1} + a_{i_0} + b_{n-i_0+1}}{2}\n$$\nThus,\n$$\nc_n \\ge \\frac{c_{n-1} + c_{n+1}}{2}\n$$\nTherefore, $(c_n)$ is concave.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33441, "subject": "Mathematics (Multi-modal)", "question": "Let $\\mathbb{Z}_+ = \\{1, 2, 3, 4, \\dots\\}$ be the set of all positive integers. Find, with proof, all functions $f : \\mathbb{Z}_+ \\to \\mathbb{Z}_+$ with the property that\n$$\nf(x + f(y) + f(f(z))) = z + f(y) + f(f(x))\n$$\nfor all positive integers $x, y, z$.", "options": [], "answer": "Exactly two functions: (1) f(n) = n for all positive integers n; (2) f(1) = 2, f(2) = 1, and f(n) = n for all n ≥ 3.", "solution": "For simplicity write $f^2(x) = f(f(x))$, $f^3(x) = f(f(f(x)))$, etc. We first show\n$$\nf^2(x) = x \\quad \\text{for all } x > 0\n$$\nin two different ways.\n\n**Method 1, using injectivity.** Suppose $f(z_1) = f(z_2)$. Replacing $z$ by $z_1$ or by $z_2$ leads to the same LHS of (2), hence the RHS must agree in both cases as well, i.e. $z_1 + f(y) + f^2(x) = z_2 + f(y) + f^2(x)$ which implies $z_1 = z_2$, hence $f$ must be injective.\n\nWe make the RHS of (2) equal to $z + f^2(y) + f^2(x)$ in two different ways, in order to benefit from the injectivity of $f$. Replacing $y$ by $f(y)$ gives $f(x + f^2(y) + f^2(z)) = z + f^2(y) + f^2(x)$. Replacing $x$ by $y$ and $y$ by $f(x)$ gives $f(y + f^2(x) + f^2(z)) = z + f^2(x) + f^2(y)$. Because the RHS is the same in both equations, and $f$ is injective, it follows that $x + f^2(y) + f^2(z) = y + f^2(x) + f^2(z)$, i.e. $f^2(x) - x = f^2(y) - y$ for all positive $x, y$.\n\nThis means that $f^2(x) - x = c$ is a constant that does not depend on $x$. Setting $t = 1 + f(1) + f^2(1)$, equation (2) with $x = y = z = 1$ implies $f(t) = t$, hence $f^2(t) = t$ and $f^2(t) - t = 0$. Therefore $c = 0$ and we have shown $f^2(x) = x$ for all $x > 0$.\n\n\n**Method 2, using fixed points.** (Tianci Yan) Putting $x = z$ in (2) gives\n$$\nf(x + f(y) + f(f(x))) = x + f(y) + f(f(x))\n$$\nand this means that $x + f(y) + f(f(x))$ is a fixed point for all $x, y > 0$.\n\nLet $a$ be any fixed point of $f$. Putting $x = y = a$ in (2) gives\n$$\nf(2a + f(f(z))) = z + 2a, \\text{ for } z > 0.\n$$\n\nPutting $y = z = a$ in (2) gives\n$$\nf(x + 2a) = 2a + f(f(x)), \\text{ for } x > 0.\n$$\nApplying $f$ to both sides of the previous equation and using the earlier result gives\n$$\nf(f(x + 2a)) = x + 2a, \\text{ for } x > 0.\n$$\nReplacing $x$ by $x + 2a$ in the previous equation then gives\n$$\nf(x + 4a) = 2a + f(f(x + 2a)) = x + 4a, \\text{ for } x > 0.\n$$\nSo $f(w) = w$, for all integers $w > 4a$. Pick such an integer $w > 4a$ and put $y = z = w$ in the original equation (2) to get\n$$\nf(x + f(w) + f(f(w))) = w + f(w) + f(f(x))\n$$\nwhich can be simplified to $x + 2w = f(x + 2w) = 2w + f(f(x))$ for $x > 0$.\nThis shows that $f(f(x)) = x$ for all $x > 0$, which is $f^2(x) = x$.\n\nHaving established $f^2(x) = x$, we can complete the solution of the problem as follows. Given an integer $n \\ge 3$, we set $x = n - 2$, $y = f(1)$ and $z = 1$ in (2). With the aid of $f^2(x) = x$ this becomes $f(n) = n$ for all $n \\ge 3$. Because of $f^2(x) = x$, we then must have $f(1) < 3$ and $f(2) < 3$. Again from $f^2(x) = x$ we see that $f(1) = 2$ implies $f(2) = 1$ and vice versa. This leaves us with two possible solutions:\n$$\n\\begin{aligned}\nf_1(n) &= n \\text{ for } n \\ge 0 \\\\\nf_2(n) &= n \\text{ for } n \\ge 3, \\quad f_2(1) = 2, \\quad f_2(2) = 1.\n\\end{aligned}\n$$\nClearly, $f_1$ satisfies (2). To verify the functional equation for $f_2$ we first note that $x + f_2(y) + f_2^2(z) \\ge 3$, hence (2) is satisfied if and only if\n$$\nx + f_2(y) + f_2^2(z) = z + f_2(y) + f_2^2(x),\n$$\ni.e. $f_2^2(x) - x = f_2^2(z) - z$ for all $x, z \\in \\mathbb{Z}_+$. Clearly $f_2^2(z) - z = 0$ for $z \\ge 3$. Since $f_2(f_2(1)) = f_2(2) = 1$ and $f_2(f_2(2)) = f_2(1) = 2$ we see that indeed $f_2^2(x) - x = 0$ for all $x \\in \\mathbb{Z}_+$. This shows that $f_2$ is a solution as well.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33442, "subject": "Mathematics (Multi-modal)", "question": "There are real numbers $\\alpha$, $\\beta$, such that the cubic functions\n$$\nf(x) = x^3 - 3x^2 + \\alpha x + \\beta \\quad \\text{and}\n$$\n$$\ng(x) = x^3 + (\\alpha - 3)x - 6\n$$\nhave exactly two distinct non-zero roots in common. Find $\\alpha$ and $\\beta$.", "options": [], "answer": "alpha = -4, beta = 12", "solution": "The two distinct non-zero common roots of $f$ and $g$ are also roots of $g - f$. These are the two roots of the quadratic\n$$\ng(x) - f(x) = 3 \\left( x^2 - x - \\frac{\\beta}{3} - 2 \\right),\n$$\nhence we must have\n$$\n\\begin{aligned}\ng(x) &= (x - \\lambda) \\left( x^2 - x - \\frac{\\beta}{3} - 2 \\right) \\\\\n&= x^3 - (1 + \\lambda)x^2 + \\left( \\lambda - 2 - \\frac{\\beta}{3} \\right)x + \\lambda \\left( 2 + \\frac{\\beta}{3} \\right)\n\\end{aligned}\n$$\nfor some real number $\\lambda$. Using that $g(x) = x^3 + (\\alpha - 3)x - 6$ and comparing coefficients gives $\\lambda = -1$, $\\alpha = -\\frac{\\beta}{3}$ and $\\beta = 12$, and hence $\\alpha = -4$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33443, "subject": "Mathematics (Multi-modal)", "question": "Let $a_0, a_1, a_2, \\dots$ be an arithmetic sequence of positive integers. A hexagon is called equiangular if all its internal angles have the same measure. Determine with proof for each $i \\ge 0$ the number of incongruent equiangular hexagons the side lengths of which are the numbers $a_i, a_{i+1}, a_{i+2}, a_{i+3}, a_{i+4}, a_{i+5}$ in some order.\n\nNOTE: A sequence $a_0, a_1, a_2, \\dots$ is called an arithmetic sequence if $a_{i+1} - a_i = a_i - a_{i-1}$ for all $i \\ge 1$.", "options": [], "answer": "If the common difference is zero, the number is 1; otherwise, the number is 2.", "solution": "If $d = a_{i+1} - a_i$ is the constant difference of the given arithmetic sequence, we have $a_i = a_0 + d i$ for all $i \\ge 0$. Because we are given $a_i > 0$ for all $i$, it follows that $a_0 > 0$ and $d \\ge 0$.\n\nIf $d = 0$, the sequence is constant and any equiangular hexagon with side lengths $a_i, a_{i+1}, a_{i+2}, a_{i+3}, a_{i+4}, a_{i+5}$ has all sides of length $a_0$ and so is a regular hexagon. There is only one such hexagon (up to congruence).\n\nIf $d > 0$, the sequence is not constant and the hexagons we consider have six sides of different lengths. Consider an equiangular hexagon with side lengths $a, b, c, a', b', c'$ (in this order) and extend the sides $b, a'$ and $c'$ so that we obtain a triangle as shown in the diagram.\n\n![](attached_image_1.png)\n\nBecause all internal angles in an equiangular hexagon have a measure of $120^\\circ$, the large triangle and the three small triangles are equilateral. Hence the side length of the large equilateral triangle is $b' + c' + a = a + b + c = c + a' + b'$. Subtracting $a$ from the first and $b$ from the second equation we see that the six side lengths of any equiangular hexagon satisfy\n\n$$\na + b = a' + b' \\quad \\text{and} \\quad b + c = b' + c'. \\qquad (1)\n$$\n\nSubtracting these and rearranging gives us $a' + c = a + c'$ as well. We now show that for any six positive numbers $a, b, c, a', b', c'$ that satisfy (1), there exists an equiangular hexagon with these side lengths.\n\nWe essentially retrace the steps of our argument above: Equations (1) imply $b' + c' + a = a + b + c = c + a' + b'$. We then draw an equilateral triangle with this side length and cut off small equilateral triangles as shown in the diagram above. The resulting equiangular hexagon has the required side lengths.\n\nGiven $a_i, a_{i+1}, a_{i+2}, a_{i+3}, a_{i+4}, a_{i+5}$, the question is in how many ways can we order these numbers such that they satisfy (1). First note that the six numbers $a, b, c, a', b', c'$ satisfy (1) iff $a+K, b+K, c+K, a'+K, b'+K, c'+K$ satisfy (1). Therefore, it is sufficient to count the number of incongruent equiangular hexagons with side lengths $a_0, a_1, a_2, a_3, a_4, a_5$ in some order. For the same reason, we may assume $a_0 = 0$ so that $a_i = d i$. Moreover, the six numbers $a, b, c, a', b', c'$ satisfy (1) iff $d a, d b, d c, d a', d b', d c'$ do so. Hence, it is sufficient to study the case $d = 1$, i.e. $a_i = i$. In other words, we need to count the number of ways the numbers $0, 1, 2, 3, 4, 5$ can be ordered such that equations (1) hold. Cyclic changes of the order lead to congruent hexagons, hence we may assume $b = 5$.\n\nAdding the equations (1) gives us $(a + b + c) + b = (a' + b' + c') + b'$, which we rewrite as $b - b' = (a' + b' + c') - (a + b + c) = 15 - 2(a + b + c)$. The last equality comes from $a + b + c + a' + b' + c' = 0 + 1 + 2 + 3 + 4 + 5 = 15$. Since we have chosen $b = 5$ to be the largest available number, we have $b - b' > 0$, hence $15 > 2(a + b + c)$, i.e. $a + b + c \\le 7$ which means that $a + c \\le 2$. Therefore, $\\{a, c\\} = \\{0, 1\\}$ and $\\{a, c\\} = \\{0, 2\\}$ are the only possibilities.\n\nSwapping $a$ and $c$, as well as $a'$ and $c'$ leads to a congruent (via a reflection) equiangular hexagon. Therefore, the two possibilities (up to congruence) are $(a, c) = (0, 1)$ and $(a, c) = (0, 2)$.\n\nWhen $(a, c) = (0, 1)$ and $b = 5$, we have $a + b + c = 6$ and so $a' + b' + c' = 15 - 6 = 9$. Therefore, $b' = (a + b + c) + b - (a' + b' + c') = 6 + 5 - 9 = 2$. Hence, $a' = a + b - b' = 0 + 5 - 2 = 3$ and $c' = c + b - b' = 1 + 5 - 2 = 4$. We obtain $(a, b, c, a', b', c') = (0, 5, 1, 3, 2, 4)$.\n\nSimilarly, starting with $(a, c) = (0, 2)$ we obtain $a+b+c=7$ and $a'+b'+c'=8$. This leads to $b'=4$, $a'=1$ and $c'=3$ and $(a, b, c, a', b', c') = (0, 5, 2, 1, 4, 3)$.\n\nSince $a + b + c = 0 + 5 + 1 = 6$ from the first solution is neither equal to $a + b + c = 0 + 5 + 2 = 7$ nor to $b + c + a' = 5 + 2 + 1 = 8$ from the second solution, the two solutions do not lead to congruent hexagons.\n\nTranslating this back to the original set-up, we have shown that (in case $d > 0$) for each $i \\ge 0$ the six numbers $a_i, a_{i+1}, a_{i+2}, a_{i+3}, a_{i+4}, a_{i+5}$ can be ordered in exactly two ways (up to congruence of the hexagons) such that these numbers are the side lengths of an equiangular hexagon in this order, namely\n\n$$\na_i, a_{i+5}, a_{i+1}, a_{i+3}, a_{i+2}, a_{i+4} \\quad \\text{and} \\quad a_i, a_{i+5}, a_{i+2}, a_{i+1}, a_{i+4}, a_{i+3}.\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33444, "subject": "Mathematics (Multi-modal)", "question": "Find all positive integers $n$ and $m$ such that\n$$\n\\binom{n}{1} + \\binom{n}{3} = 2^m.\n$$", "options": [], "answer": "[(1, 2), (2, 3), (3, 4), (6, 8), (11, 24)]", "solution": "Suppose $n$ and $m$ satisfy the equation $n + n(n-1)(n-2)/6 = 2^m$. Rearranging the equation gives\n$$\nn(n^2 - 3n + 8) = 3 \\cdot 2^{m+1}. \\qquad (2)\n$$\nFirst we note that $n^2-3n+8 > n$ is equivalent to $n^2-4n+8 = (n-2)^2+4 > 0$, which is true for all integers $n$. Moreover, $n^2 - 3n + 8 \\ge 3n$ is equivalent to $n^2 - 6n + 8 = (n-3)^2 - 1 \\ge 0$, which is true for all integers $n \\ne 3$.\n\n**Case 1.** 3 divides $n$.\nBecause of equation (2) we may write $n = 3 \\cdot 2^a$ and $n^2 - 3n + 8 = 2^b$, where $a$ and $b$ are non-negative integers that satisfy $a + b = m + 1$. We then have $2^a < n < n^2 - 3n + 8 = 2^b$ and so $a < b$, hence $n \\mid 3(n^2 - 3n + 8)$. This implies $n \\mid 24$. The positive divisors of 24 that are divisible by 3 are 3, 6, 12, 24. For these values of $n$ we calculate $\\binom{n}{1} + \\binom{n}{3}$ and find powers of 2 only for $n = 3$ and $n = 24$, giving solutions $(m, n) = (2, 3)$ and $(m, n) = (11, 24)$.\n\nAlternatively, we may substitute $n = 3 \\cdot 2^a$ into $n^2 - 3n + 8 = 2^b$ to obtain\n$$\n9 \\cdot 2^{2a} - 9 \\cdot 2^a + 8 = 2^b. \\qquad (3)\n$$\nIf $a > 3$ the LHS of (3) is an odd multiple of 8, hence we must have $b = 3$. Then (3) becomes $2^{2a} = 2^a$ which is impossible when $a > 3$. Therefore there are no solutions with $a > 3$. Checking $a = 0, 1, 2, 3$ one by one gives the same solutions as above.\n\n**Case 2.** 3 does not divide $n$.\nIn this case, $3 \\equiv \\pm 1 \\pmod 3$ so that $n^2 + 8 \\equiv 0 \\pmod 3$ and 3 must divide $n^2 - 3n + 8$. Based on (2) we can then write $n = 2^a$ and $n^2 - 3n + 8 = 3 \\cdot 2^b$, where $a+b = m+1$. Since $n \\ne 3$ we have $3n \\le n^2 - 3n + 8$ and so $3 \\cdot 2^a \\le 3 \\cdot 2^b$, hence $a \\le b$ and $n \\mid n^2 - 3n + 8$. This implies $n \\mid 8$. For $n = 1, 2, 4, 8$ we find these solutions for $(m, n)$:\n$$\n(0, 1) \\quad (1, 2) \\quad (3, 4) \\quad (6, 8).\n$$\nSince we want $m > 0$, the pair $(0, 1)$ is to be excluded.\n\nAlternatively, we may start in Case 2 with the observation that (2) and the Fundamental Theorem of Arithmetic imply that 3 divides $n^2 - 3n + 8$. We can then write $n = 2^a$ and $n^2 - 3n + 8 = 3 \\cdot 2^b$, where $a + b = m + 1$ and $a$ and $b$ are non-negative integers. Substituting for $n$ gives\n$$\n2^{2a} - 3 \\cdot 2^a + 8 = 3 \\cdot 2^b. \\qquad (4)\n$$\nIf $a > 3$ the LHS of (4) is an odd multiple of 8, hence we must have $b = 3$. Then (4) becomes $2^{a-3}(2^a - 3) = 2$ which is impossible when $a > 3$. Therefore there are no solutions with $a > 3$. With $a = 0, 1, 2, 3$ we obtain the same four pairs $(m, n)$ as above.\n\nIn summary, the entire list of solution pairs $(m, n)$ with positive $m, n$ is\n(1, 2) (2, 3) (3, 4) (6, 8) (11, 24).", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33445, "subject": "Mathematics (Multi-modal)", "question": "A circle $C$ of radius $r$ is tangent to $L_1$ and $L_2$, two mutually perpendicular lines in the plane. Circles $C_1$ and $C_2$ have radius $s$. Circle $C_1$ is tangent to $L_1$ and externally tangent to the circles $C$ and $C_2$. Circle $C_2$ is tangent to $L_2$ and externally tangent to the circles $C$ and $C_1$. Find $s$ in terms of $r$.", "options": [], "answer": "s = r(√2 − 1)(2√2 − 1 ± 2√(2 − √2))", "solution": "There are two possible configurations as shown in the diagrams below.\n![](attached_image_1.png)\n![](attached_image_2.png)\nLet $O$ be the intersection point of $L_1$ and $L_2$. The centre $P$ of circle $C$ lies on the bisector of the angle between $L_1$ and $L_2$. Because $C_1$ and $C_2$ have equal radius, the line $OP$ is the common tangent of these two circles. The angle between $OP$ and $L_1$ is bisected by $OR$, where $R$ is the centre of $C_1$.\n![](attached_image_3.png)\n\nWe now work with coordinates in which $L_1$ is the x-axis, $L_2$ the y-axis and $P$ has coordinates $(r, r)$. Let $R$ have coordinates $(x, y)$. Then $y = s$ is the radius of the circles $C_1$ and $C_2$ and $|PR|^2 = (x - r)^2 + (y - r)^2$. Since $C$ and $C_1$ are externally tangent to each other, $|PR| = r + s = r + y$ and so $(r + y)^2 = (x - r)^2 + (y - r)^2$ which simplifies to $(x - r)^2 = 4ry$.\nAs seen above, the angle between $L_1$ and the line $OR$ is a quarter of a right angle, hence the slope of $OR$ is equal to $m = \\tan(\\pi/8)$, and $y = mx$. Thus, $(x - r)^2 = 4rmx$. This expands as\n$$\nx^2 - 2r(1 + 2m)x + r^2 = 0\n$$\nwith solutions\n$$\nx_{1,2} = r(1 + 2m) \\pm r\\sqrt{(1 + 2m)^2 - 1} = r(1 + 2m \\pm 2\\sqrt{m^2 + m})\n$$\nThe two possibilities for $s$ are then\n$$\ns_{1,2} = mx_{1,2} = rm(1 + 2m \\pm 2\\sqrt{m^2 + m})\n$$\n\nAlternatively, we can use basic trigonometry to find a value for $m$. The half-angle formula for the tangent function says $\\tan(\\alpha/2) = (1 - \\cos(\\alpha))/\\sin(\\alpha)$. In our case, $\\alpha = \\pi/4$ and $\\cos(\\pi/4) = \\sin(\\pi/4) = 1/\\sqrt{2}$. Hence\n$$\nm = \\tan(\\pi/8) = \\frac{1 - \\cos(\\pi/4)}{\\sin(\\pi/4)} = \\frac{1 - \\frac{1}{\\sqrt{2}}}{\\frac{1}{\\sqrt{2}}} = \\sqrt{2} - 1.\n$$\n\nThe smaller value corresponds to the diagram on the right, the larger to the diagram on the left at the start of this solution.\nWe can find a value for the slope $m$ of $OR$ with the aid of the Angle Bisector Theorem which says that an angle bisector divides the opposite side in a triangle in a ratio that is equal to the ratio between the sides adjacent to the angle. To apply this, we consider a right angled isosceles triangle $OLM$ with $|OL| = |LM| = 1$. If the bisector of $\\angle LOM$ meets $LM$ at $R$, then $m = |LR|$ is the slope of $OR$.\n![](attached_image_4.png)\n\nWe now obtain $m^2 + m = m(m + 1) = (\\sqrt{2} - 1)\\sqrt{2} = 2 - \\sqrt{2}$ and so\n$$\ns_{1,2} = r(\\sqrt{2} - 1)\\left(2\\sqrt{2} - 1 \\pm 2\\sqrt{2 - \\sqrt{2}}\\right).\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33446, "subject": "Mathematics (Multi-modal)", "question": "A non-negative integer $p$ is a *3-choice* if $p = k(k-1)(k-2)/6$ for some positive integer $k$. Let $p$ and $q$ be 3-choices with $p < q$. Show there is an integer $n$ such that $p \\le n^2 < q$.", "options": [], "answer": "Detailed solution", "solution": "The 3-choices are exactly the binomial coefficients $p = \\binom{k}{3}$ with $k \\ge 1$. Without loss of generality we can consider consecutive $p$ and $q$, so that $p = \\binom{k}{3}$ and $q = \\binom{k+1}{3}$ for $k \\ge 1$. For $k = 1, 2, 3, 4$ the required statement is true, because\n$$\n\\binom{1}{3} = 0 \\quad \\binom{2}{3} = 0 \\quad \\binom{3}{3} = 1 \\quad \\binom{4}{3} = 4\n$$\nare perfect squares. It therefore suffices to show for all $k \\ge 5$ that between $\\binom{k}{3}$ and $\\binom{k+1}{3}$ there is at least one perfect square.\n\n**Solution 1.** Let $n$ be the largest integer for which $n^2$ does not exceed $\\binom{k}{3}$, i.e. $n^2 \\le \\binom{k}{3} < (n+1)^2$. We are going to prove that\n$$\n(n+1)^2 - n^2 = 2n + 1 < \\binom{k+1}{3} - \\binom{k}{3} = \\binom{k}{2}\n$$\nwhich will then imply the claim.\nThis inequality is equivalent to $2n < \\binom{k}{2} - 1$. Since both sides are positive this is equivalent to $4n^2 < \\binom{k}{2}^2 - 2\\binom{k}{2} + 1$. Because $n^2 \\le \\binom{k}{3}$ it will be sufficient to show\n$$\n\\begin{gathered} 4\\binom{k}{3} < \\binom{k}{2}^2 - 2\\binom{k}{2} + 1 \\quad \\text{or} \\\\ \\frac{2k(k-1)(k-2)}{3} < \\frac{k^2(k-1)^2}{4} - k(k-1) + 1. \\end{gathered}\n$$\nWhen we multiply by 12 and rearrange, this becomes\n$$\nk(k-1) \\left( 3k(k-1) - 12 - 8(k-2) + \\frac{12}{k(k-1)} \\right) > 0.\n$$\nSince $\\frac{12}{k(k-1)} > 0$, it suffices to prove that\n$$\n3k(k-1) - 12 - 8(k-2) = 3k^2 - 11k + 4 = k(3k - 11) + 4 \\ge 0\n$$\nfor all $k \\ge 5$. But this is obvious, since $3k > 11$ whenever $k \\ge 4$.\n\n\n**Solution 2.** (Owen Barron) For any function $h$ we let\n$$\n\\Delta h(m) := h(m+1) - h(m).\n$$\nFor $f(n) = n^2$ and $g(k) = \\binom{k}{3}$ we then have\n$$\n\\begin{aligned} \\Delta f(n) &= (n+1)^2 - n^2 = 2n + 1 & \\Delta^2 f(n) &= \\Delta f(n+1) - \\Delta f(n) = 2 \\\\ \\Delta g(k) &= \\binom{k+1}{3} - \\binom{k}{3} = \\binom{k}{2} & \\Delta^2 g(k) &= \\binom{k+1}{2} - \\binom{k}{2} = k. \\end{aligned}\n$$\n\nIn particular, $\\Delta^2 f(n) < \\Delta^2 g(k)$ for all $n \\ge 0$ and all $k \\ge 3$ and $\\Delta g(k)$ grows faster than $\\Delta f(n)$. We will now prove by induction that for all $k \\ge 1$ there exists an integer $m$ such that $g(k) \\le f(m) < g(k+1)$. Above, before solution 1, we have seen that this holds true for $k = 1, 2, 3, 4$. Moreover, we even have\n$$\n\\binom{4}{3} \\le 2^2 < 3^2 < \\binom{5}{3} \\quad \\text{i.e.} \\quad g(4) \\le f(2) < f(3) < g(5).\n$$\n\nThe inductive steps in our proof will proceed from stepping stone to stepping stone. Suppose now that $k \\ge 4$ is a stepping stone and let $n \\ge m$ be the largest integer for which\n$$\ng(k) \\le f(n-1) < f(n) < g(k+1), \\quad (5)\n$$\nthen $g(k+1) \\le f(n+1)$.\nFrom (5) we get $f(n) < g(k+1)$ and $\\Delta f(n) < \\Delta g(k+1)$ and now prove\n$$\nf(n+r) < g(k+r+1) \\quad \\text{and} \\quad \\Delta f(n+r) < \\Delta g(k+r+1) \\quad \\text{for all } r \\ge 0.\n$$\nThe statement is true for $r=0$ and to carry out induction we suppose it holds true for a fixed value of $r \\ge 0$. We then have\n$$\n\\begin{aligned} f(n+r+1) &= f(n+r) + \\Delta f(n+r) \\\\ &< g(k+r+1) + \\Delta g(k+r+1) \\\\ &= g(k+r+2) \\end{aligned}\n$$\nand also\n$$\n\\begin{aligned} \\Delta f(n+r+1) &= \\Delta f(n+r) + \\Delta^2 f(n+r) \\\\ &= \\Delta f(n+r) + 2 \\\\ &< \\Delta g(k+r+1) + k+r+1 \\\\ &= \\Delta g(k+r+1) + \\Delta^2 g(k+r+1) \\\\ &= \\Delta g(k+r+2) \\end{aligned}\n$$\nas required.\n\nIf for all $r \\ge 0$ we also have\n$$\ng(k + r) \\le f(n + r)\n$$\nthe problem is solved. Otherwise, there exists an integer $s \\ge 1$ such that\n$$\n\\begin{aligned} g(k+r) &\\le f(n+r) < g(k+r+1) \\quad \\text{for } 1 \\le r \\le s \\quad \\text{and} \\\\ g(k+s) &\\le f(n+s) < f(n+s+1) < g(k+s+1). \\end{aligned}\n$$\nThis means that $k + s$ is a stepping stone greater than $k$ which completes the proof by induction that for all $k \\ge 1$ there exists an integer $m$ such that $g(k) \\le f(m) < g(k + 1)$.\n\n\n**Solution 3.** We are going to show that $\\sqrt{\\binom{k+1}{3}} - \\sqrt{\\binom{k}{3}} \\ge 1$ which implies that the interval $[\\sqrt{\\binom{k}{3}}, \\sqrt{\\binom{k+1}{3}})$ contains an integer $n$. As seen at the start, we only need to prove this for $k \\ge 4$. Writing $k = m + 2$ we wish to show\n$$\n\\sqrt{\\frac{(m+3)(m+2)(m+1)}{6}} - \\sqrt{\\frac{(m+2)(m+1)m}{6}} \\ge 1 \\quad \\text{for } m \\ge 1.\n$$\nWe rewrite this as\n$$\n\\sqrt{(m+2)(m+1)} (\\sqrt{(m+3)} - \\sqrt{m}) \\ge \\sqrt{6}\n$$\nand note that $(\\sqrt{m+3} + \\sqrt{m})(\\sqrt{m+3} - \\sqrt{m}) = 3$. After multiplying both sides of the inequality by $\\sqrt{m+3} + \\sqrt{m}$ and squaring, we obtain\n$$\n3(m+2)(m+1) \\ge 2(\\sqrt{m+3} + \\sqrt{m})^2 = 2(2m+3+2\\sqrt{m(m+3)}).\n$$\nAs both sides of the inequality were positive, squaring could be reversed and so this inequality is equivalent to the one we wish to prove. We rearrange to\n$$\n3m^2 + 5m \\ge 4\\sqrt{m(m+3)}\n$$\nand square again to obtain the equivalent inequality\n$$\n9m^4 + 30m^3 + 25m^2 \\ge 16m^2 + 48m.\n$$\nThis rewrites as\n$$\n9m^3 + 30m^2 + 9m \\ge 48, \\quad \\text{i.e.} \\quad 9m(m+1)^2 + 12m^2 \\ge 48\n$$\nwhich is true since for $m \\ge 1$ we have $9m(m+1)^2 \\ge 36$ and $12m^2 \\ge 12$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33447, "subject": "Mathematics (Multi-modal)", "question": "Consider three points $A$, $B$, $C$ on a circle $\\Gamma$, with $\\angle BAC > 90^\\circ$. Let $d$ denote the line tangent to $\\Gamma$ at $A$. Points $M$ and $N$ are chosen on $d$ such that $\\angle MBA = \\angle ABC$ and $\\angle NCA = \\angle ACB$.\nProve that $A$ is the midpoint of segment $MN$.", "options": [], "answer": "Detailed solution", "solution": "Let $U$ be the intersection point of $BM$ and $CN$. Then $A$ is the incentre of triangle $UBC$, because $AB$ and $AC$ are angle bisectors by definition of $M$ and $N$. In particular, $AU$ is the angle bisector of $\\angle MUN$.\n\n![](attached_image_1.png)\n\nBecause $MN$ is tangent to $\\Gamma$, the Alternate Segment Theorem gives us\n$$\n\\angle MAB = \\angle ACB = \\angle ACN\n$$\n$$\n\\angle NAC = \\angle ABC = \\angle ABM.\n$$\nHence also $\\angle BMA = \\angle BAC = \\angle ANC$, which shows that $\\triangle MUN$ is isosceles with $|MU| = |NU|$. The angle bisector $AU$ is therefore a median as well, hence $A$ is the midpoint of $MN$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33448, "subject": "Mathematics (Multi-modal)", "question": "A Sudoku grid is a $9 \\times 9$ table in which each row and each column contains each of the numbers $1, 2, 3, 4, 5, 6, 7, 8, 9$ in some order. In addition, the nine $3 \\times 3$ subgrids contain each of the numbers $1, 2, 3, 4, 5, 6, 7, 8, 9$ exactly once. Suppose the product of all nine numbers on one diagonal is $M$ and the product of all nine numbers on the other diagonal is $N$.\nProve that it is possible for the product $MN$ to be divisible by $2025^3$ but it is not possible for $MN$ to be divisible by $2025^4$.", "options": [], "answer": "Detailed solution", "solution": "Because $2025 = 3^4 \\cdot 5^2$, we have $2025^3 = 3^{12} \\cdot 5^6$ and $2025^4 = 3^{16} \\cdot 5^8$. Each diagonal can have at most three $5$s. Therefore, $MN$ can have at most six factors $5$, and this only happens when the number in the centre of the grid is $5$. Hence $MN$ might be divisible by $2025^3$ but not by $2025^4$. One then has to arrange that $3^{12}$ is a factor of $MN$, to which the $9$s, $6$s and $3$s can all contribute. Here are two examples of suitable Sudoku grids with relevant numbers on the diagonals highlighted. In the first example, we have $MN = 2^{10} \\cdot 3^{12} \\cdot 5^6$, and in the second $MN = 2 \\cdot 3^{16} \\cdot 5^6$.\n\n![](attached_image_1.png)\n![](attached_image_2.png)", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33449, "subject": "Mathematics (Multi-modal)", "question": "Three circles of radius $1$ are packed without overlapping in an equilateral triangle of side length $a$. What fraction of the area of the triangle is covered by the circles?", "options": [], "answer": "(2√3 − 3)π/2", "solution": "If $M, N$ are the centres of two of the circles, and $P, Q$ are their projections onto the side $AB$ of the triangle as in the diagram below, the right angled triangles $APM$ and $BQN$ have internal angles of $30^\\circ$, $60^\\circ$ and $90^\\circ$. Hence $|AM| = 2|MP| = 2$ since $MP$ is a radius of the circle.\n\nFrom Pythagoras we get $|BQ| = |AP| = \\sqrt{3}$. Since $|PQ| = |MN| = 2$ we now obtain $|AB| = a = 2 + 2\\sqrt{3}$.\n\nThe area of an equilateral triangle with side length $a$ is equal to\n$$\n\\frac{\\sqrt{3}}{4}a^2 = \\frac{\\sqrt{3}(2+2\\sqrt{3})^2}{4} = 2(3+2\\sqrt{3}).\n$$\n\nThree circles of radius $1$ have a total area of $3\\pi$. The fraction of the area of the triangle covered by the circles is\n$$\n\\frac{3\\pi}{2(3+2\\sqrt{3})} = \\frac{(2\\sqrt{3}-3)\\pi}{2}.\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33450, "subject": "Mathematics (Multi-modal)", "question": "A positive integer $n$ is an *anchor* if every digit of $n$ (when written in base 10) is an odd number. Show that there exists an anchor $n$ such that the product $m \\cdot n$ is not an anchor for any anchor $m > 1$.", "options": [], "answer": "Detailed solution", "solution": "**Solution 1.** One such integer is $n = 91$. We show there is no anchor $m > 1$ such that $m \\times n$ is also an anchor for this value of $n$. Let $m > 1$ be an anchor. We consider separately the cases $3 \\le m \\le 9$ and $m \\ge 11$.\nFor small anchors $m$, we have $3 \\times 91 = 273$, $5 \\times 91 = 455$, $7 \\times 91 = 637$ and $9 \\times 91 = 819$, none of which are anchors.\n\nWhen $m \\ge 11$, let the last two digits of $m$ be $m_1$ and $m_0$, with $m_0, m_1 \\in \\{1, 3, 5, 7, 9\\}$. Then we can write (for some integer $k \\ge 0$): $m = 100k + 10m_1 + m_0$ so that:\n$$\n\\begin{aligned}\n91m &= (90 + 1)(100k + 10m_1 + m_0) \\\\\n&= 100 \\times (91k + 9m_1) + 10(9m_0 + m_1) + m_0\n\\end{aligned}\n$$\nThe penultimate digit is then $9m_0 + m_1 \\pmod{10}$ which is even, and so $91m$ cannot be an anchor.\n**Solution 2.** One such integer is $n = 99$. We show there is no anchor $m > 1$ such that $m \\times n$ is also an anchor for this value of $n$. Let $m > 1$ be an anchor. We consider separately the cases $3 \\le m \\le 9$ and $m \\ge 11$.\nFor small anchors $m$, we have $3 \\times 99 = 297$, $5 \\times 99 = 495$, $7 \\times 99 = 693$ and $9 \\times 99 = 891$, none of which are anchors.\n\nWhen $m \\ge 11$, let the last two digits of $m$ be $m_1$ and $m_0$, with $m_0, m_1 \\in \\{1, 3, 5, 7, 9\\}$. Then we can write (for some integer $k \\ge 0$): $m = 100k + 10m_1 + m_0$ so that\n$$\n\\begin{aligned}\n99(100k + 10m_1 + m_0) &\\equiv -(10m_1 + m_0) \\equiv 100 - 10m_1 - m_0 \\\\\n&\\equiv 10(9 - m_1) + (10 - m_0) \\pmod{100}.\n\\end{aligned}\n$$\nThis shows that the second last digit of $99m$ is equal to $9 - m_1$, and this is even since $m_1$ is odd. Hence, $99m$ is not an anchor for any anchor $m > 1$.\n**Solution 3.** One such integer is $n = 911$. We show there is no anchor $m > 1$ such that $m \\times n$ is also an anchor for this value of $n$. The argument below applies to any $n = 911 \\dots 11 > 91$.\n\nFirst note that $9a$, for any number $1 < a < 11$, has two digits, the sum of which is divisible by 9 and smaller than 18, hence equal to 9. The units digit of $9a$ is odd if $a$ is odd, hence the leading digit is equal to the even number $9 - a$. In particular, the leading digit of $911 \\cdot m$ is even for $m = 3, 5, 7, 9$, because there are no carries from the multiplications by 1.\nIf $m > 10$ is an anchor, we have $m \\equiv 10a + b \\pmod{100}$ with $a, b$ being odd digits. Hence $911m \\equiv 11(10a + b) \\equiv 10(a + b) + b \\pmod{100}$ which means that the units digit of $911m$ is $b$ and the hundreds digit is equal to $a + b$ or $a + b - 10$, both of which are even.\n**Solution 4.** It suffices to find a single anchor $n$ such that $m \\times n$ is a non-anchor for all anchors $m > 1$. There are many such $n$. Here are some cases where $n \\equiv 11 \\pmod{20}$ with manual checks for $m = 3, 5, 7, 9$:\n\n| m \\ n | 91 | 551 | 911 | 931 | 951 | 971 | 991 |\n|-------|----|-----|-----|-----|-----|-----|-----|\n| 3 | 273|1653 |2733 |2793 |2853 |2913 |2973 |\n| 5 | 455|2755 |4555 |4655 |4755 |4855 |4955 |\n| 7 | 637|3857 |6377 |6517 |6657 |6797 |6937 |\n| 9 | 819|4959 |8199 |8379 |8559 |8739 |8919 |\n\nHere are some cases with $n \\equiv 19 \\pmod{20}$:\n\n| m \\ n | 99 | 339 | 779 | 919 | 939 | 959 | 979 | 999 |\n|-------|----|-----|-----|-----|-----|-----|-----|-----|\n| 3 |297 |1017 |2337 |2757 |2817 |2877 |2937 |2997 |\n| 5 |495 |1695 |3895 |4595 |4695 |4795 |4895 |6895 |\n| 7 |693 |2373 |5453 |6433 |6573 |6713 |6853 |6993 |\n| 9 |891 |3051 |7011 |8271 |8451 |8631 |8811 |8991 |\n\nIt remains to check that the chosen value of $n$ produces non-anchors when multiplied by anchors $m \\ge 11$. To prove this, we suppose more generally that either $n \\equiv 11 \\pmod{20}$ or $n \\equiv 19 \\pmod{20}$. Since $m \\ge 11$ is an anchor, $m$ has at least two digits and the last two digits are odd. Hence $m \\in \\{11, 13, 15, 17, 19\\} \\pmod{20}$. Consider the multiplication table (mod 20):\n\n| m \\ n | 11 | 19 |\n|-------|----|----|\n| 11 | 01 | 09 |\n| 13 | 03 | 07 |\n| 15 | 05 | 05 |\n| 17 | 07 | 03 |\n| 19 | 09 | 01 |\n\nIn each case, the penultimate decimal digit is even so $m \\times n$ is not an anchor. According to the remark above, we have tabulated all the solutions for $n \\le 1000$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33451, "subject": "Mathematics (Multi-modal)", "question": "Suppose $a, b, c$ are real numbers such that $a + b + c = 1$ and $a^2 + b^2 + c^2 = 1$. Prove that\n$$\n-\\frac{4}{27} \\le abc \\le 0.\n$$", "options": [], "answer": "Detailed solution", "solution": "To begin with,\n$$\n1 = (a + b + c)^2 = a^2 + b^2 + c^2 + 2(ab + bc + ca) = 1 + 2(ab + bc + ca)\n$$\nso that $ab+bc+ca = 0$. Now we can prove the upper bound of zero. Suppose (for a contradiction) that a real triple $a, b, c$ satisfies the given constraints and $abc > 0$. Then either\n\n(i) all three of $a, b, c$ are positive, or\n(ii) some two are negative and the other one is positive.\nIf (i) holds, then each of the products $ab, bc, ca$ is positive, in which case $ab + bc + ca > 0$, a contradiction. Say (ii) happens with $a < 0, b < 0, c > 0$. Then\n$$\n\\begin{aligned}\n0 &= ab + bc + ca \\\\\n &= ab + c(a + b) = ab + (a + b)(1 - (a + b)) \\\\\n &= ab + a + b - (a + b)^2 = a + b - a^2 - ab - b^2\n\\end{aligned}\n$$\na sum of five negative numbers equal to zero, also a contradiction. Thus (ii) can't occur either. The conclusion is that $abc \\le 0$ for all triples satisfying the given constraints.\n\nNext, we will prove that $abc \\ge -\\frac{4}{27}$. In any case, $abc \\le 0$ and $a + b + c > 0$, hence at most one of $a, b, c$ is negative. Suppose $a > 0, b > 0, c < 0$. Since, $0 = ab+bc+ca$, therefore $-ac = b(a+c) = b(1-b)$. Thus $ab(-c) = b^2(1-b)$. But $a^2 + b^2 + c^2 = 1$, so that $b^2 < 1$, in which case $0 < b < 1$. Hence, by AM-GM,\n$$\n\\left(\\frac{b^2(1-b)}{4}\\right)^{1/3} = \\left(\\frac{b}{2} \\cdot \\frac{b}{2} \\cdot (1-b)\\right)^{1/3} \\le \\frac{1}{3}\\left(\\frac{b}{2} + \\frac{b}{2} + 1 - b\\right) = \\frac{1}{3}\n$$\nwhence $ab(-c) = b^2(1-b) \\le \\frac{4}{27}$ as desired.\nFirst observe that $2ab = (a+b)^2 - (a^2+b^2) = (1-c)^2 - (1-c^2) = 2c^2 - 2c$. So $abc = c^3 - c^2 = c^2(c-1)$.\n\nNext observe that $a$ and $b$ satisfy the equation $x^2 - (a+b)x + ab = 0$, that is $x^2 - (1-c)x + c^2 - c = 0$. Since $a$ and $b$ (and hence $c$) are real, the quadratic has a non-negative discriminant so that $(1-c)^2 - 4(c^2-c) \\ge 0$. That reduces to $1+2c-3c^2 \\ge 0$ and hence $(c-1)(c+\\frac{1}{3}) \\le 0$. So $c$ must satisfy $-\\frac{1}{3} \\le c \\le 1$. It follows immediately that $abc = c^2(c-1) \\le 0$, which proves the right side of the inequality.\n\nNote that if $0 < c < 1$, then AM-GM implies:\n$$\n2(c^2 - c^3) = (c)(c)(2 - 2c) \\le \\left( \\frac{c+c+2-2c}{3} \\right)^3 = \\frac{8}{27}\n$$\nSo $c^3 - c^2 \\ge -\\frac{4}{27}$ which proves the left side of the inequality for these values of $c$. In the remaining case, $-\\frac{1}{3} \\le c \\le 0$, we note that $c^3 - c^2$ is an increasing function of $c$ on that range (an increasing function minus a decreasing function) and so $c^3 - c^2$ is at most the value of that expression when $c = -\\frac{1}{3}$, completing the proof.\nObserving that\n$$\n2ab = (a+b)^2 - (a^2+b^2) = (1-c)^2 - (1-c^2) = 2c^2 - 2c,\n$$\nwe obtain $abc = c^2(c-1) \\le 0$ because we have $c \\le 1$ from $a^2 + b^2 + c^2 = 1$. Now we see that\n$$\n\\begin{align*}\nabc \\ge -\\frac{4}{27} &\\iff c^3 - c^2 + \\frac{4}{27} \\ge 0 \\\\\n&\\iff 27c^3 - 27c^2 + 4 \\ge 0 \\\\\n&\\iff x^3 - 3x^2 + 4 \\ge 0\n\\end{align*}\n$$\nwhere we set $x = 3c$. We easily discover the root $x = -1$ of $x^3 - 3x^2 + 4$ and then the factorisation $x^3 - 3x^2 + 4 = (x+1)(x-2)^2$.\nTo show $x = 3c \\ge -1$, we assume $c < -1/3$. This implies $c^2 > 1/9$ and $a+b = 1-c > 4/3$, hence we cannot have $a \\le 0$ and $b \\le 0$, i.e. at least one of $a,b$ is positive. Because $abc \\le 0$ and $c < 0$ we have $ab \\ge 0$. This implies now that $a \\ge 0$ and $b \\ge 0$ and we can use AM-QM to get $a^2 + b^2 \\ge (a+b)^2/2 > 8/9$ which leads to the contradiction $a^2 + b^2 + c^2 > 1$. It follows that $x \\ge -1$ and so $x^3 - 3x^2 + 4 = (x+1)(x-2)^2 \\ge 0$, as desired.\nThe plane $a+b+c=1$ intersects the unit sphere in a circle containing the points $(1,0,0)$, $(0,1,0)$, $(0,0,1)$, and these three points divide the circle into arcs. At the three points, the inequalities are trivial. Except at these three points, we cannot have all three coordinates on these arcs non-negative, because $ab+bc+ca=0$ as seen in Solution 1. In fact, exactly one coordinate is negative, since if $a,b < 0$, say, then the first equation implies $c > 1$, whence $c^2 > 1$, contradicting the second equation. This shows, in particular, $abc \\le 0$.\n\nLet us assume, without loss of generality, that $c < 0$, so $a, b > 0$. We claim the point on the circle where $c$ is minimal equates $a$ and $b$, that is $(a, b, c) = (2/3, 2/3, -1/3)$. For the proof of minimality suppose $c < -1/3$, then $a+b > 4/3$ and $a^2+b^2 \\ge \\frac{1}{2}(a+b)^2 > 8/9$, while $c^2 > 1/9$, contradicting the second equation. If $c = -1/3$ we get $a+b = 4/3$ and $a^2+b^2 = 8/9$. Then we are in the equality case of the AM-QM inequality $\\frac{8}{9} = a^2+b^2 \\ge \\frac{1}{2}(a+b)^2 = \\frac{8}{9}$, hence $a = b = 2/3$.\nNext we show for fixed $c$ satisfying $-1/3 \\le c < 0$ that $ab$ is maximised (and so $abc$ is minimised) over the set $\\{(a,b) : 0 < a, b; a^2 + b^2 \\le 1 - c^2\\}$ when $2a^2 = 2b^2 = 1 - c^2$. Call the corresponding point $P_c$.\nTo maximise $xy$ inside the closed disc centred at the origin, intersected with the first quadrant, $\\{(x, y) : 0 < x, y; x^2 + y^2 \\le r^2\\}$, we proceed as follows. It is easy to see that on any line of slope $-1$, i.e. for fixed $x+y$, the maximum of $xy$ occurs when $x = y$. We then head out along the diagonal to the maximum at $x = y = \\frac{r}{\\sqrt{2}}$ and see that the maximum of $xy$ is equal to $r^2/2$. In our situation, $r^2 = 1 - c^2$ and so the minimum of $abc$ (for fixed $-1/3 \\le c < 0$) occurs at the point $P_c$, and is equal to $\\frac{c(1-c^2)}{2}$.\n\nTo find the minimum of $abc$ for these points $P_c$ (now allowing $c$ to vary), we substitute $c = x - \\frac{1}{3}$ to obtain\n$$\nabc = \\frac{c(1 - c^2)}{2} = -\\frac{4}{27} - \\frac{x}{6}(3x^2 - 3x - 2).\n$$\nFor $0 \\le x < 1/3$ we have $3x < 1$ and $3x^2 \\le x \\le 3x < 3x + 2$ and therefore\n$$\n-\\frac{x}{6}(3x^2 - 3x - 2) \\ge 0 \\quad \\text{with equality iff } x = 0.\n$$\nThus we have shown that the minimum of $abc$ is obtained for $x = 0$, i.e. $c = -1/3$, and this corresponds to the point $P_{-1/3} = (2/3, 2/3, -1/3)$, where $abc = -\\frac{4}{27}$. This is the minimum over all $(a, b, c)$ that satisfy $a^2+b^2+c^2 \\le 1$, $a, b > 0$, and $-1/3 \\le c < 0$. Earlier we showed that $(a, b, c)$ satisfies these conditions if it is a point on the arc mentioned above on which $c < 0$. By symmetry it follows that $abc \\ge -\\frac{4}{27}$ for all points considered in the problem.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33452, "subject": "Mathematics (Multi-modal)", "question": "We say that a pair $(a, b)$ of positive integers is a *link* if no proper factor of $a + b$ exceeds $\\min\\{a, b\\}$.\nShow that for any positive integers $u$ and $v$ there is a positive integer $n$ and a chain $c_0, c_1, \\dots, c_n$ of positive integers such that\n* $c_0 = u$\n* $c_n = v$\n* Each pair $(c_{k-1}, c_k)$ for $1 \\le k \\le n$ is a link.", "options": [], "answer": "Detailed solution", "solution": "For every positive integer $r$, the pair $(r, r+1)$ is a link. This follows because the sum $2r + 1$ of the pair is an odd number, which implies that any proper factor is at least $3$. Therefore, any proper factor of $2r+1$ is at most $(2r+1)/3$. As $2r+1 \\le 2r+1 + (r-1) = 3r$ we deduce that any proper factor of $2r+1$ is at most $r$, which is the condition for $(r, r+1)$ to be a link.\n\nSuppose without loss of generality that $u \\le v$, and let $n = v-u$ and $c_k = u+k$\nfor $0 \\le k \\le n$. If $n = 0$, $(u, u)$ is a link. If $n > 0$ each pair $(c_{k-1}, c_k)$ for\n$k = 1, \\dots, n$ is a link, as required.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33453, "subject": "Mathematics (Multi-modal)", "question": "Suppose $a$, $b$, $c$ are real numbers such that $a + b + c = 1$ and $a^2 + b^2 + c^2 = 1$. Prove that $a^3 + b^3 + c^3 \\ge \\frac{5}{9}$.", "options": [], "answer": "Detailed solution", "solution": "In the solution to Problem 7 we have seen that $a + b + c = 1$ and $a^2 + b^2 + c^2 = 1$ imply $a^3 + b^3 + c^3 = 1 + 3abc$. Hence, $a^3 + b^3 + c^3 \\ge \\frac{5}{9}$ iff $abc \\ge -\\frac{4}{27}$. Several proofs of this inequality can be found in the solution to Problem 11.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33454, "subject": "Mathematics (Multi-modal)", "question": "In a mathematics class, the teacher shows an apparatus containing $n$ switches, where each switch can be in any of three positions, labelled 1–3, and $n > 1$. Initially, all switches are in position 1, and we need to move the switches so that all are in position 2. The teacher shows one method of doing this that involves exactly $n + 1$ steps, where each *step* changes the position of exactly one switch.\nLet $c_n$ be the number of $(n+1)$-step methods for altering the apparatus in this way, *not including the teacher's method*. Two methods are the same only if they involve the same steps in the same order. Show that $c_n$ has no factor $k$ satisfying $1 < k < n+2$, and that $n+2$ is a factor of $c_n$ if and only if $n+2$ is prime.", "options": [], "answer": "Detailed solution", "solution": "We provide three methods to show that $c_n = n \\cdot (n+1)!/2 - 1$ for all $n \\in \\mathbb{N}$.\n(We omit the assumption $n > 1$ when proving this.) Let $d_n := c_n + 1$, i.e. $d_n$\nis the number of $(n+1)$-step methods including that of the teacher.\n\n**Method 1.** Consider the first step of any $(n + 1)$-step method. If this involves moving some switch $s_1$ to position 2, we call it a *Type A step*. After we perform a Type A step on $s_1$, we cannot subsequently move $s_1$ since we would later need to move it back again to position 2, thereby “wasting” two steps when we only have a single step to spare. Our only option therefore is to use the remaining $n$ steps to change the other $n-1$ switches from position 1 to position 2. This can be done in $d_{n-1}$ ways. Since there are $n$ choices for the initial switch $s_1$, we get a total of $nd_{n-1}$ methods that start with a Type A step.\nAlternatively, if the first step moves a switch to position 3, we call it a *Type B step*. After a Type B step, all $n$ switches are in the wrong position, so each subsequent step must consist of changing a switch to position 2. Thus, the only choices involve the order in which we carry out these moves, giving a total of $n!$ methods that start with the given Type B step. Since there are $n$ choices for the initial switch $s_1$, there are $n \\cdot n!$ methods that start with a Type B step.\n\nRewriting these equations in terms of $e_n := d_n/n!$, we get $e_n = e_{n-1} + n$ for\nall $n > 1$, and $e_1 = 1$. Thus, $e_n = n(n+1)/2$ and $d_n = n \\cdot (n+1)!/2$. This\nfinishes the proof of our claim.\n\n\n**Method 2.** First note that in each $(n+1)$-step method, exactly one switch will first be switched to 3 and then to 2, whereas all others have to be switched to 2 directly. If we ignore this extra initial switching to 3, each $(n+1)$-step method gives rise to an $n$-step method, which is just an ordering of the switches; and there are $n!$ of them.\n\nFor how many different $(n + 1)$-step methods do we get to the same $n$-step\nmethod (or ordering of switches)? The answer is $1+2+3+...+n$, because the\nswitch which is the $k$-th which is switched to 2 in the $n$-step method, could be switched to 3 any time before it is switched to 2, and there are $k$ opportunities to do so. The conclusion is that $d_n = n! \\cdot n \\cdot (n+1)/2 = n \\cdot (n+1)!/2$.\n\n\n**Method 3.** Exactly one switch has to be touched twice. If this is switch $k$, then we are seeking the number of ways to permute the numbers\n$$\n1, 2, 3, \\dots, k-1, k, k, k+1, \\dots, n,\n$$\nwhich is $(n+1)!/2$. Taking into account all $n$ values of $k$ yields a total of $d_n = n \\cdot (n+1)!/2$.\n\nWe now prove the **divisibility** statements about $c_n = n \\cdot (n+1)!/2 - 1$. Since $(n+1)!$ is even for all $n > 0$, $c_n$ is an integer. Since $n > 1$ by assumption, $c_n > 0$. (Of course, this is also clear in terms of the combinatorial meaning.) To show that $c_n$ is not divisible by any integer $1 < k < n + 2$, it suffices to prove this under the additional assumption that $k$ is prime.\nIf $n$ is even, $c_n = \\frac{n}{2} \\cdot (n+1)! - 1 \\equiv -1 \\pmod{k}$ for any integer $1 < k < n+2$. If $n$ is odd, $n+1 > 2$ is even hence not prime. Thus, any prime $k$ that satisfies $1 < k < n + 2$, is a factor of $n!$ and so cannot divide $c_n = \\frac{n+1}{2} \\cdot n \\cdot n! - 1$.\n\nIt remains to consider divisibility by $n+2$. If $n+2$ is not prime, then it has a prime factor $k$ less than $n+2$. By the above, $c_n$ is not divisible by $k$, and so it is not divisible by $n+2$.\nSuppose finally that $p := n + 2 > 3$ is prime. By Wilson's theorem,\n$$\n(n + 1)! \\equiv -1 \\pmod{p}.\n$$\nSince also $n \\equiv -2 \\pmod{p}$, the equation $2d_n = n(n+1)!$ implies that\n$$\n2d_n \\equiv (-2)(-1) \\equiv 2 \\pmod{p},\n$$\nand so $d_n \\equiv 1 \\pmod{p}$, because $\\gcd(2, p) = 1$. Thus, $p = n + 2$ divides $c_n = d_n - 1$ as required.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33455, "subject": "Mathematics (Multi-modal)", "question": "$$\n2 \\sum_{k=0}^{n} \\binom{2n}{k} (n-k) = \\binom{2n}{n+1} (n+1), \\ n = 1, 2, \\dots\n$$\nand find the value of\n$$\n\\sum_{k=0}^{n} k \\binom{2n}{k}.\n$$", "options": [], "answer": "n * 2^{2n-1}", "solution": "Recall the identity\n$$\n(b+1) \\binom{a}{b+1} = \\binom{a}{b} (a-b)\n$$\nwhich follows directly from the definition of the binomial coefficients. Using this with $a = 2n$ and $b = k$, we obtain\n$$\n2 \\binom{2n}{k} (n-k) = \\binom{2n}{k} (2n-k) - k \\binom{2n}{k} = (k+1) \\binom{2n}{k+1} - k \\binom{2n}{k}.\n$$\n\nDefining $a_k = k \\binom{2n}{k}$, we obtain\n$$\n\\begin{align*} \n2 \\sum_{k=0}^{n} \\binom{2n}{k} (n-k) &= \\sum_{k=0}^{n} (a_{k+1} - a_k) \\\\\n&= (a_1 - a_0) + (a_2 - a_1) + \\dots + (a_n - a_{n-1}) + (a_{n+1} - a_n) \\\\\n&= a_{n+1} - a_0 = (n+1) \\binom{2n}{n+1}.\n\\end{align*}\n$$\n\nTo prove the second identity, recall that\n$$\nb \\binom{a}{b} = a \\binom{a-1}{b-1}\n$$\nwhich again follows easily from the definition. Using this identity with $a = 2n$ and $b = k$, we obtain\n$$\n\\sum_{k=1}^{n} k \\binom{2n}{k} = 2n \\sum_{k=1}^{n} \\binom{2n-1}{k-1} = 2n \\sum_{k=0}^{n-1} \\binom{2n-1}{k} = 2n \\sum_{j=1}^{n} \\binom{2n-1}{n-j}\n$$\nSince $\\binom{2n-1}{n-j} = \\binom{2n-1}{n-1+j}$ for $j = 1, 2, \\dots, n$, we have\n$$\n2 \\sum_{j=1}^{n} \\binom{2n-1}{n-j} = \\sum_{j=1}^{n} \\binom{2n-1}{n-j} + \\sum_{j=1}^{n} \\binom{2n-1}{n-1+j} = \\sum_{k=0}^{2n-1} \\binom{2n-1}{k} = 2^{2n-1}.\n$$\nIt follows that\n$$\n\\sum_{k=1}^{n} k \\binom{2n}{k} = n \\cdot 2^{2n-1}.\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33456, "subject": "Mathematics (Multi-modal)", "question": "Three circles of radius $1$ are packed without overlapping in a square of side $a$. What is the smallest value of $a$?", "options": [], "answer": "2 + (sqrt(6) + sqrt(2))/2", "solution": "We start with three circles of radius $1$ that are tangent to each other externally and consider all rectangles that contain these circles such that each side is tangent to at least one of the circles. A square that contains the three circles and has sides parallel to one such rectangle has side length not smaller than each of the sides of this rectangle. Therefore, we seek the rectangle whose largest side is the smallest possible among all such rectangles.\n\nBecause the rectangle has four sides and there are only three circles, there is one circle to which two sides of the rectangle are tangent. These two sides must be adjacent (not opposite) because the other two circles are not contained between any two parallel tangents to one of the three circles.\n\nLet $A$ be the centre of the circle that touches two sides of the rectangle, at points $P$ and $Q$. The other two circles have centres $B$ and $C$ and they are in contact with a rectangle side at points $R$ and $S$, respectively. The common tangent of the circles centred at $A$ and $C$ touches circle centre $A$ at $T_1$. Similarly, $T_2$ is the point of contact on this circle of the common tangent of the circles centred at $A$ and $B$. Note that both, $P$ and $Q$, need to be on the smaller arc $T_1T_2$ for the rectangle to include all three circles. We set\n$$\n\\alpha = \\angle T_1AP \\quad \\text{and} \\quad \\beta = \\angle T_2AQ.\n$$\nBecause $\\angle T_1AT_2 = 120^\\circ$ and $\\angle PAQ = 90^\\circ$ we have $\\alpha + \\beta = 30^\\circ$. After reflecting, if necessary, in the line through $A$ which is tangent to the other two circles, we can assume without loss of generality that $\\alpha \\le \\beta$ and hence $0 \\le \\alpha \\le 15^\\circ$.\n\nThe point $M$ is chosen on the line $SC$ so that $\\angle CMA$ is a right angle. Similarly, $N$ lies on $PA$ giving right angle $\\angle BNA$. Since $PA, QA, RB, SC$ are radii of the circles, the side lengths of the rectangle are $a = 2 + |CM|$ and $b = 2 + |AN|$.\nBecause a tangent is perpendicular to the radius through the point of contact, and $AB$ is parallel to the tangent through $T_2$, and $AC$ is parallel to the tangent through $T_1$, the angle equalities indicated in the diagram follow. In particular, $\\angle ACM = \\alpha$ and $\\angle NAB = \\beta$. Since $|AB| = |AC| = 2$ we then obtain $|CM| = 2\\cos(\\alpha)$ and $|AN| = 2\\cos(\\beta)$. The side lengths of the rectangle are therefore\n$$\na = 2 + 2\\cos(\\alpha) \\quad \\text{and} \\quad b = 2 + 2\\cos(\\beta).\n$$\n\nSince $0 \\le \\alpha \\le 15^\\circ$ and $\\beta \\le 30^\\circ$ we have $a \\ge b$ with equality iff $\\alpha = \\beta = 15^\\circ$. Moreover, the Cosine function is decreasing for angles between $0^\\circ$ and $180^\\circ$, hence the smallest possible value for $a$ is achieved when $\\alpha = 15^\\circ$, the largest possible value in our situation. In this case, the rectangle is a square with side length $a = 2 + 2\\cos(15^\\circ)$. To express this value more concretely, we recall the trigonometric identity\n$$\n\\cos(x - y) = \\cos(x) \\cos(y) + \\sin(x) \\sin(y)\n$$\nwhich we apply to $x = 45^\\circ$ and $y = 30^\\circ$. Since $\\cos(45^\\circ) = \\sin(45^\\circ) = \\sqrt{2}/2$, $\\cos(30^\\circ) = \\sqrt{3}/2$ and $\\sin(30^\\circ) = 1/2$ we finally obtain\n$$\na = 2 + 2\\cos(15^\\circ) = 2 + \\frac{\\sqrt{6} + \\sqrt{2}}{2}.\n$$\n\nIf it is known that the smallest side length is realised by the square which has all four sides tangent to the circles, its side length can be calculated as follows.\nWe set up a coordinate system as shown below, with centre of the left circle at $(\\sqrt{2}, 0)$ and centre of the upper circle at $(\\sqrt{2} + \\sqrt{3}, 1)$. The fitting square has one vertex at $(0, 0)$ and $x$-axis reflection symmetry.\n\nThe side of the square which touches the upper circle is perpendicular to a radius of slope $1$ of this circle. Its point of contact, $P$, therefore has coordinates $(\\sqrt{2} + \\sqrt{3} + \\sqrt{2}/2, 1 + \\sqrt{2}/2)$ and the equation of this tangent is\n$$\nx + y = \\sqrt{2} + \\sqrt{3} + \\sqrt{2}/2 + 1 + \\sqrt{2}/2 = 2\\sqrt{2} + \\sqrt{3} + 1.\n$$\n\n![](attached_image_1.png)\n\nThe $y$-intercept of this line is at $(0, 2\\sqrt{2} + \\sqrt{3} + 1)$. The length $d$ of the diagonal of the square is therefore equal to $2\\sqrt{2} + \\sqrt{3} + 1$, hence the side length of the square is\n$$\na = \\frac{2\\sqrt{2} + \\sqrt{3} + 1}{\\sqrt{2}} = 2 + \\frac{\\sqrt{2} + \\sqrt{6}}{2}.\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33457, "subject": "Mathematics (Multi-modal)", "question": "$$\na_1 = 24, \\quad a_2 = 2025, \\quad \\text{and} \\quad a_{n+2} = 3 \\cdot a_{n+1} \\cdot a_n^4 \\quad \\text{for all } n \\ge 1.\n$$\nDetermine all $n \\ge 1$ for which there exists an integer $x$ such that $a_n = x^3$.", "options": [], "answer": "All n of the form n = 8k + 5 for k ≥ 0", "solution": "After factorising $a_1$ and $a_2$ into prime numbers, $a_1 = 2^3 \\cdot 3$ and $a_2 = 3^4 \\cdot 5^2$, we see that we can write $a_n = 2^{\\alpha_n} \\cdot 3^{\\beta_n} \\cdot 5^{\\gamma_n}$, where for all $n \\ge 1$\n$$\n\\begin{align*}\n\\alpha_1 &= 3 & \\alpha_2 &= 0 & \\alpha_{n+2} &= \\alpha_{n+1} + 4\\alpha_n \\\\\n\\beta_1 &= 1 & \\beta_2 &= 4 & \\beta_{n+2} &= \\beta_{n+1} + 4\\beta_n + 1 \\\\\n\\gamma_1 &= 0 & \\gamma_2 &= 2 & \\gamma_{n+2} &= \\gamma_{n+1} + 4\\gamma_n.\n\\end{align*}\n$$\n\nThe number $a_n$ is a perfect cube exactly when each of $\\alpha_n, \\beta_n$ and $\\gamma_n$ is divisible by 3. Therefore, we use the given recursion and calculate the three sequences modulo 3:\n\n| $n$ | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |\n|-----|---|---|---|---|---|---|---|---|---|----|----|----|----|\n| $\\alpha_n$ | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |\n| $\\beta_n$ | 1 | 1 | 0 | 2 | 0 | 0 | 1 | 2 | 1 | 1 | 0 | 2 | 0 |\n| $\\gamma_n$ | 0 | 2 | 2 | 1 | 0 | 1 | 1 | 2 | 0 | 2 | 2 | 1 | 0 |\n\nWe see that the columns repeat in a cycle of length eight and that the values of $n$ for which all three, $\\alpha_n$, $\\beta_n$ and $\\gamma_n$, are divisible by 3, are those of the form $n = 8k + 5$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33458, "subject": "Mathematics (Multi-modal)", "question": "Let $A$ be a set of five distinct integers and $S$ the set that contains all sums $x + y$ with $x, y \\in A$ and $x \\neq y$. The two smallest elements of $S$ are $25$ and $31$, while the two largest elements of $S$ are $57$ and $71$. Determine all possible sets $A$.", "options": [], "answer": "{10, 15, 21, 35, 36}; {11, 14, 20, 34, 37}; {12, 13, 19, 33, 38}", "solution": "Let $a < b < c < d < e$ be the elements of $A$. The two smallest sums are $25 = a + b < 31 = a + c$. The two largest are $57 = c + e < 71 = d + e$. We then obtain\n$$\na + d = (a + c) - (c + e) + (d + e) = 31 - 57 + 71 = 45\n$$\n$$\ne - a = (c + e) - (a + c) = 57 - 31 = 26.\n$$\n\nThis allows us to express the elements of $A$ in terms of $a$ as follows:\n$$\ne = 26 + a, \\quad d = 45 - a, \\quad c = 31 - a, \\quad b = 25 - a.\n$$\nFor $a < b = 25 - a$ we need $2a < 25$, i.e. $a \\le 12$. For $d < e$ we need $45 - a < 26 + a$ or $19 < 2a$, i.e. $10 \\le a$. Therefore we only have the following three possibilities:\n\n\n\n\n\n\n\n\n\n\n\n
a101112
b = 25 - a151413
c = 31 - a212019
d = 45 - a353433
e = 26 + a363738
\n\nA straightforward check shows that these three possibilities indeed satisfy the given conditions:\n\n\n\n\n\n\n\n\n\n\n
AS
10, 15, 21, 35, 3625, 31, 36, 45, 46, 50, 51, 56, 57, 71
11, 14, 20, 34, 3725, 31, 34, 45, 48, 51, 54, 57, 71
12, 13, 19, 33, 3825, 31, 32, 45, 46, 50, 51, 52, 57, 71
\n\nThe set $S$ in the second case has only 9 elements because $48 = 11 + 37 = 14 + 34$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33459, "subject": "Mathematics (Multi-modal)", "question": "Two circles $\\Gamma_1$ and $\\Gamma_2$ intersect at two distinct points $A$ and $B$. A line $\\ell$ through $A$ meets $\\Gamma_1$ and $\\Gamma_2$ at points $C$ and $D$ respectively, such that $D$ lies inside $\\Gamma_1$. The line perpendicular to $\\ell$ through $A$ meets $\\Gamma_1$ and $\\Gamma_2$ at points $E$ and $F$ respectively. The line $EC$ meets the line $FD$ (extended) at the point $X$. Prove that if $X$ lies on the perpendicular bisector of $EF$, then $BX$ bisects the angle $\\angle CBD$.", "options": [], "answer": "Detailed solution", "solution": "As $X$ lies on the perpendicular bisector of $EF$ we have $\\angle XEF = \\angle XFE$; call this angle $\\alpha$. Cyclicity of $AFBD$ implies $\\angle DBA = \\angle DFA = \\angle XFE = \\alpha$. Cyclicity of $EABC$ gives $\\angle CBA = 180^\\circ - \\angle CEA = 180^\\circ - \\angle XEF = 180^\\circ - \\alpha$. Thus $\\angle CBD = \\angle CBA - \\angle DBA = 180^\\circ - 2\\alpha$.\n\nApplying the exterior angle theorem to triangle $EFX$ we get that $\\angle CXD = \\angle CXF = \\angle XEF + \\angle XFE = 2\\alpha$. Thus $\\angle CBD + \\angle CXD = 180^\\circ$ and it follows that the quadrilateral $DBCX$ is cyclic.\n\n![](attached_image_1.png)\n\nSince $\\angle EAC$ and $\\angle DAF$ are right triangles, we have $\\angle DCX = \\angle ACE = 90^\\circ - \\alpha$ and $\\angle XDC = \\angle ADF = 90^\\circ - \\alpha$ ($\\angle XDC$ and $\\angle ADF$ being vertically opposite). Cyclicity of $DBCX$ then implies that $\\angle DBX = \\angle DCX = \\angle XDC = \\angle XBC$, so $BX$ bisects the angle $\\angle CBD$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33460, "subject": "Mathematics (Multi-modal)", "question": "Find the smallest prime number which divides $n^2 - 3n + 13$ for some integer $n$.", "options": [], "answer": "11", "solution": "We define $f(x) = x^2 - 3x + 13$ and note that $f(x) = (x-3)x + 13 = 13 - x(3-x)$ from which we easily discover that $f(3-x) = f(x)$ for all $x$. Calculating $f(0) = 13$ and $f(1) = 11$, we see that the smallest prime $p$ that divides $f(n)$ for some $n$ is at most $11$. We may finish in two different ways.\n\n**Way 1.** Because $f(n) \\equiv f(m) \\pmod{p}$ when $n \\equiv m \\pmod{p}$, it is sufficient to calculate $f(n) \\pmod{p}$ for $p$ consecutive values of $n$. We only need to do this for $p \\in \\{2, 3, 5, 7\\}$ in order to determine whether $11$ is the smallest prime we are looking for. Because $f(3-n) = f(n)$, we have $f(2) = f(1) = 11$, $f(3) = f(0) = 13$ and $f(4) = f(-1) = 17$. Finally, $f(-2) = 23$ and we see that $f(n) \\ge 11$ is a prime for each of the seven consecutive values $n = -2, -1, 0, 1, 2, 3, 4$. Hence, the smallest prime number that divides $f(n)$ for at least one $n$ is $p = 11$.\n\n\n**Way 2.** For each $p \\in \\{2, 3, 5, 7\\}$ we discuss $f(n) \\pmod{p}$ separately.\n$$\nf(n) = n^2 - 3n + 13 \\equiv n^2 - n + 1 \\equiv 1 \\pmod{2}\n$$\nbecause $n^2 \\equiv n \\pmod{2}$ for all integers $n$ by Fermat's Little Theorem.\n$$\nf(n) = n^2 - 3n + 13 \\equiv n^2 - 2 \\not\\equiv 0 \\pmod{3}\n$$\nbecause squares of integers can only be congruent to $0$ or $1$ modulo $3$.\n$$\nf(n) = n^2 - 3n + 13 \\equiv n^2 + 2n + 3 \\equiv (n+1)^2 + 2 \\not\\equiv 0 \\pmod{5}\n$$\nbecause squares of integers can only be congruent to $0$ or $\\pm 1$ modulo $5$.\n$$\nf(n) = n^2 - 3n + 13 \\equiv n^2 + 4n + 6 \\equiv (n+2)^2 + 2 \\not\\equiv 0 \\pmod{7}\n$$\nbecause squares of integers can only be congruent to $0$, $1$, $2$ or $4$ modulo $7$. Hence, for no integer $n$ is $f(n)$ divisible by $2$, $3$, $5$ or $7$. The smallest prime number that divides $f(n)$ for at least one $n$ therefore is $p = 11$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33461, "subject": "Mathematics (Multi-modal)", "question": "Suppose, for some pair of real numbers $x, y$, the real numbers $a, b, c$ satisfy the five equations\n$$\n\\begin{aligned}\na+b+c &= 1 & bc-x-2ya &= 0 \\\\\na^2+b^2+c^2 &= 3 & ca-x-2yb &= 0 \\\\\nab-x-2yc &= 0.\n\\end{aligned}\n$$\nProve that $abc$ is either $-1$ or $\\frac{5}{27}$.", "options": [], "answer": "Detailed solution", "solution": "Label the given equations as follows:\n$$\na + b + c = 1 \\tag{10}\n$$\n$$\na^2 + b^2 + c^2 = 3 \\tag{11}\n$$\n$$\nbc - x - 2ya = 0 \\tag{12}\n$$\n$$\nca - x - 2yb = 0 \\tag{13}\n$$\n$$\nab - x - 2yc = 0. \\tag{14}\n$$\n\n**Solution 1.** Eliminate $x$ by subtracting (13) from (12), and (14) from (13) to get $c(b-a) = 2y(a-b)$ and $a(c-b) = 2y(b-c)$. From these it follows that\n$$\nc(b-a)(b-c) = 2y(a-b)(b-c) = a(c-b)(a-b),\n$$\ni.e.,\n$$\n0 = a(c-b)(a-b) - c(b-a)(b-c) = (a-b)(b-c)(c-a).\n$$\n\nSo, one of $a-b, b-c, c-a$ must be zero. Wlog, suppose that $a=b$. Then, by (10) and (11),\n$$\n2a + c = 1 \\quad \\text{and} \\quad 2a^2 + c^2 = 3.\n$$\nHence $3 = 2a^2 + (1-2a)^2 = 6a^2 - 4a + 1$ and so $0 = (a-1)(3a+1)$. If $a=1$, we have $a=b=1$ and $c = 1 - 2a = -1$ which gives $abc = -1$. If $a = -1/3$, we have $a = b = -1/3$, $c = 1 - 2a = 5/3$ and so $abc = 5/27$.\n\n\n**Solution 2.** From (10) and (11) we obtain\n$$\n-2 = (a + b + c)^2 - (a^2 + b^2 + c^2) = 2(ab + bc + ca), \\text{ i.e.}\n$$\n$$\nab + bc + ca = -1. \\tag{15}\n$$\n\nAdding (12), (13) and (14) together, and using (10) and (15) we get\n$$\n3x + 2y = -1. \\tag{16}\n$$\n\nMultiplying (12), (13) and (14) by $a, b, c$, respectively, then adding these together and using (10) and (11) gives us\n$$\nx + 6y = 3abc. \\tag{17}\n$$\n\n$$\n\\begin{align*}\n1 &= (ab + bc + ca)^2 && \\text{using (15)} \\\\\n&= (ab)^2 + (bc)^2 + (ca)^2 + 2abc(a + b + c) \\\\\n&= (x + 2ya)^2 + (x + 2yb)^2 + (x + 2yc)^2 + 2abc && \\text{by (12), (13), (14)} \\\\\n&= 3x^2 + 4xy + 12y^2 + 2abc && \\text{using (10), (11)} \\\\\n&= x(3x + 2y) + 2y(x + 6y) + 2abc \\\\\n&= -x + 6yabc + 2abc && \\text{using (16), (17)} \\\\\n&= 6y - 3abc + 6yabc + 2abc && \\text{using (17) again} \\\\\n&= 6y(abc + 1) - abc.\n\\end{align*}\n$$\n\n$$\n0 = 6y(abc + 1) - abc - 1 = (6y - 1)(abc + 1).\n$$\nTherefore, either $abc = -1$, or $y = 1/6$. In the latter case, equation (16)\ngives $x = -4/9$ and then (17) implies $abc = 5/27$.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 33462, "subject": "Mathematics (Multi-modal)", "question": "Let $O$ denote the circumcentre of $\\triangle ABC$, and $M$ the midpoint of $BC$. The line perpendicular to $AC$ passing through the point $C$ intersects line $AB$ (extended) at $T$, and intersects the circumcircle of $\\triangle ABC$ for the second time at $D$. Let $L$ denote a point on the line $AD$ (extended) such that $CT$ is the angle bisector of $\\angle BCL$. Lines $OM$ and $TL$ intersect at $P$. Prove that the lines $PB$ and $PC$ are tangent to the circumcircle of $\\triangle ABC$.", "options": [], "answer": "Detailed solution", "solution": "Because $ABDC$ is cyclic,\n$$\n\\angle TAL = \\angle BAD = \\angle BCD = \\angle DCL = \\angle TCL\n$$\nhence quadrilateral *ACLT* is cyclic. This implies\n$$\n\\angle OLP = \\angle ALT = \\angle ACT = 90^{\\circ} \\quad \\text{and}\n$$\n$$\n\\angle CLP = \\angle CLT = 180^{\\circ} - \\angle A = 180^{\\circ} - \\angle COM = 180^{\\circ} - \\angle COP\n$$\n(by the central angle theorem), and so *OCLP* is also a cyclic quadrilateral.\n\nHence $\\angle OCP = \\angle OLP = 90^\\circ$, i.e. $PC$ is tangent to circumcircle (ABC). As $OP$ is the perpendicular bisector of $BC$ ($M$ is the midpoint of the chord $BC$ of circle centre $O$), $\\angle BOP = \\angle COP$ and by SAS, $\\triangle COP \\equiv \\triangle BOP$. This shows that $PB$ is also tangent to circumcircle (ABC).\nAs $\\angle ACD = 90^\\circ$, $AD$ is a diameter of circle (ABC) and so $\\angle ABD = 90^\\circ$ as well. Let $BD$ (extended) intersect line $AC$ (extended) at $S$. Then $D$, the intersection point of $BS$ and $CT$, is the orthocentre of $\\triangle AST$. Like in Solution 1, from $\\angle BAD = \\angle BCD = \\angle DCL$ we see that $ACLT$ is cyclic and find $\\angle ALT = \\angle ACT = 90^\\circ$. It follows that $L$ lies on $ST$.\n\n![](attached_image_1.png)\n\nBecause $AD$ is a diameter of circle (ABC), $O$ is the midpoint of $AD$. Therefore, the points $B$, $O$, $C$, $L$ are all on the 9-point circle of $\\triangle AST$. Because $OP$ is the perpendicular bisector of the chord $BC$ of this circle, it contains the centre of it. Since $\\angle OLP = 90^\\circ$, we now see that $P$ is on this 9-point circle as well and $OP$ is a diameter of it. This shows that $\\angle OCP = \\angle OBP = 90^\\circ$, i.e. $PB$ and $PC$ are tangents to (ABC).\nAs in the other solutions, we first establish that the quadrilateral *ACLT* is cyclic and $\\angle TLA = \\angle TCA = 90^\\circ$. Let *AL* intersect *BC* at *N*.\n\n![](attached_image_2.png)\n\nSince *CD* is the internal angle bisector of $\\angle BCL$ and $\\angle ACD = 90^\\circ$, then $CA$ is the external angle bisector of $\\angle BCL$ and thus $L$, $D$, $N$, $A$ form a harmonic range (i.e. cross-ratio $[L, N; D, A] = -1$; or $L$, $N$ are harmonic conjugates with respect to $A$ and $D$), hence $L$ is on the polar line of $N$ with respect to the circumcircle (ABC). Moreover, $OL \\perp LT$ so $LT$ is the polar line of $N$. Since $P$ is on $LT$, $N$ is on the polar line of $P$, which is perpendicular to $OP$, hence must be the line $BC$. It follows that $PB$ and $PC$ are both tangent to circumcircle (ABC).", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33463, "subject": "Mathematics (Multi-modal)", "question": "Let $n \\ge 3$ be an integer. Determine, as a function of $n$, the number of circular arrangements $x_1, x_2, \\dots, x_n$ of the numbers $1, 2, \\dots, n$ such that\n$$\n\\sum_{i=1}^{n} |x_i - x_{i+2}| = 2n - 4,\n$$\nwhere the indices $i$ and $i+2$ are to be interpreted modulo $n$. Note that any rotation of a circular arrangement is considered to be the same circular arrangement, i.e., the circular arrangements $x_1, x_2, x_3, \\dots, x_n$ and $x_2, x_3, \\dots, x_n, x_1$ are considered to be the same.", "options": [], "answer": "0 if n is odd; n*2^{n-5} if n is even", "solution": "**Solution 1.**\nFirst consider the case when $n$ is odd. It is easy to see that\n$$\nS = \\sum_{i=1}^{n} |x_i - x_{i+2}| = \\sum_{i=1}^{n} |y_i - y_{i+1}|\n$$\nfor another circular arrangement $y_1, y_2, \\dots, y_n$. So we can consider\n$$\nS = \\sum_{i=1}^{n} |x_i - x_{i+1}|\n$$\ninstead. Now, the numbers $1$ and $n$ must appear somewhere on the circle. Suppose that the numbers between $1$ and $n$ clockwise are $z_1, z_2, \\dots, z_k$ and the numbers between $1$ and $n$ anticlockwise are $w_1, w_2, \\dots, w_l$, where $k + l = n - 2$. Then\n$$\n|n - z_k| + |z_k - z_{k-1}| + \\dots + |z_1 - 1| \\ge (n - z_k) + (z_k - z_{k-1}) + \\dots + (z_1 - 1) = n - 1\n$$\nand\n$$\n|n - w_l| + |w_l - w_{l-1}| + \\dots + |w_1 - 1| \\ge (n - w_l) + (w_l - w_{l-1}) + \\dots + (w_1 - 1) = n - 1.\n$$\nAdding these two inequalities yields\n$$\nS \\ge 2n - 2\n$$\n(for later in the proof, we note that equality occurs if and only if the sequences $z_1, z_2, \\dots, z_k$ and $w_1, w_2, \\dots, w_l$ are in increasing order). Thus we can never have $S = 2n - 4$ for odd values of $n$.\n\nNext consider the case when $n$ is even. Let the set of numbers appearing in the odd-indexed positions be $\\mathcal{A}$ and let the set of numbers appearing in the even-indexed positions be $\\mathcal{B}$. Here $|\\mathcal{A}| = |\\mathcal{B}| = n/2$.\nDenote by $m_1$ and $M_1$ the minimum and maximum of $\\mathcal{A}$, and denote by $m_2$ and $M_2$ the minimum and maximum of $\\mathcal{B}$. Then, using a similar argument to the case of odd $n$ above, but replacing the numbers $1$ and $n$ by $m_1$ and $M_1$, we have\n$$\n\\sum_{i=1}^{n/2} |a_{2i} - a_{2i+2}| \\ge 2(M_1 - m_1)\n$$\nand doing the same but this time for the numbers $m_2$ and $M_2$, we have\n$$\n\\sum_{i=1}^{n/2} |a_{2i+1} - a_{2i+3}| \\ge 2(M_2 - m_2).\n$$\nAdding these two inequalities yields\n$$\nS \\ge 2(M_1 + M_2) - 2(m_1 + m_2)\n$$\nIt is easy to see that $\\{m_1, m_2\\} = \\{1, m\\}$ for some $m \\le \\frac{n}{2} + 1$ and $\\{M_1, M_2\\} = \\{M, n\\}$ for some $M \\ge \\frac{n}{2}$. So\n$$\n\\begin{aligned}\nS &\\ge 2(n + M) - 2(1 + m) = 2n - 2 + 2(M - m) \\\\\n&\\ge 2n - 2 + 2\\left(\\frac{n}{2} - \\frac{n}{2} - 1\\right) = 2n - 4\n\\end{aligned}\n$$\nTo obtain equality, without loss of generality the numbers in odd-indexed positions must be placed in increasing order from $1$ to $\\frac{n}{2}$ (both clockwise and anticlockwise). We count the arrangements as follows. First we place $1$ and $\\frac{n}{2}$ somewhere on a circle. Then, we choose any subset of $\\{2, 3, \\dots, \\frac{n}{2} - 1\\}$ to be the values placed in increasing order clockwise from $1$ to $\\frac{n}{2}$. After this, there is only one way to place the remaining values from $1, 2, \\dots, n/2$ in increasing order anticlockwise from $1$ to $\\frac{n}{2}$. We now have a circular arrangement of the odd-indexed numbers on the circle. This can be done in $2^{\\frac{n}{2}-2}$ ways. Second, we follow the same procedure for the even-indexed numbers on the circle (this can also be done in $2^{\\frac{n}{2}-2}$ ways). Finally, the (odd) circular offset between the values $1$ and $n$ can be chosen in $\\frac{n}{2}$ ways, giving a total of $2^{\\frac{n}{2}-2} \\cdot 2^{\\frac{n}{2}-2} \\cdot \\frac{n}{2} = n2^{n-5}$ circular arrangements.\n\nThus the answer to the question is $0$ if $n$ is odd, and $n2^{n-5}$ if $n$ is even.\n**Solution 2.**\nFor all integers $k > 0$, we let $x_{n+k} := x_k$. We define a new circular arrangement by setting $a_1 = x_1$, $a_2 = x_3$, and more generally, $a_k = x_{2k-1}$. If $n$ is odd, say $n = 2m-1$, we find that $a_m = x_n$, $a_{m+1} = x_2$, etc. and we obtain a new circular arrangement $a_1, a_2, \\dots, a_n$ of the numbers $1, 2, \\dots, n$. If $n$ is even, say $n = 2m$, we find $a_m = x_{n-1}$, $a_{m+1} = x_1$ and the circular arrangement $a_1, a_2, \\dots, a_m$ (we may call it the *a*-cycle) contains only half of the numbers $1, 2, \\dots, n$. We then define a second circular arrangement (the *b*-cycle) by $b_k = x_{2k}$ for $k = 1, 2, \\dots, m$. The circular arrangement $b_1, b_2, \\dots, b_m$ contains those numbers from $1, 2, \\dots, n$ which are not in the *a*-cycle. With this new notation, we find that\n$$\n\\sum_{i=1}^{n} |x_i - x_{i+2}| = \\sum_{i=1}^{n} |a_i - a_{i+1}| \\quad \\text{if } n \\text{ is odd,} \\quad (21)\n$$\n$$\n\\sum_{i=1}^{n} |x_i - x_{i+2}| = \\sum_{i=1}^{m} |a_i - a_{i+1}| + \\sum_{i=1}^{m} |b_i - b_{i+1}| \\quad \\text{if } n = 2m \\text{ is even.} \\quad (22)\n$$\nTo facilitate the counting required for the problem, we prove the following lemma.\n\n**Lemma.** If $m \\ge 2$ and $a_1, a_2, \\dots, a_m$ is a circular arrangement of $m$ distinct positive integers, where we let $a_{m+i} = a_i$ for $i > 0$, then\n$$\nS(a) := \\sum_{i=1}^{m} |a_i - a_{i+1}| \\geq 2m - 2\n$$\nwith equality only possible when $a_1, a_2, \\dots, a_m$ consists of $m$ consecutive numbers (not necessarily in their natural order) and the largest two numbers are direct neighbours in the cycle.\n\n**Proof.** We use induction on $m \\ge 2$. If $m = 2$, we have\n$$\nS(a) = \\sum_{i=1}^{2} |a_i - a_{i+1}| = 2|a_1 - a_2| \\ge 2\n$$\nwith equality only if $a_2 = a_1 \\pm 1$. If $m > 2$, after 'rotating' the cycle we can assume that $a_m$ is the largest number in the cycle. Let the cycle $a'$ be obtained from the cycle $a$ by removing $a_m$, i.e. $a'_i = a_i$ for $i = 1, 2, \\dots, m-1$ but $a'_m = a'_1$. We then have\n$$\nS(a) - |a_{m-1} - a_m| - |a_m - a_1| = S(a') - |a_{m-1} - a_1|\n$$\nwhich implies, because $a_m > a_{m-1}$ and $a_m > a_1$,\n$$\nS(a) - S(a') = 2a_m - a_{m-1} - a_1 - |a_{m-1} - a_1| = \\begin{cases} 2(a_m - a_{m-1}) & \\text{if } a_{m-1} > a_1 \\\\ 2(a_m - a_1) & \\text{if } a_{m-1} < a_1. \\end{cases}\n$$\nWe have $a_m - a_1 \\ge 1$ as well as $a_m - a_{m-1} \\ge 1$, and by inductive hypothesis, $S(a') \\ge 2m - 4$, hence $S(a) \\ge 2m - 4 + 2 = 2m - 2$ with equality only if $S(a') = 2m - 4$ and either $a_1$ or $a_{m-1}$ is equal to $a_m - 1$. In particular, in case of equality, the cycle $a'$ consists of consecutive numbers and its largest number is $a_m - 1$. The lemma follows. $\\square$\n\nA direct consequence of the Lemma is that for odd $n$ we have\n$$\n\\sum_{i=1}^{n} |x_i - x_{i+2}| \\ge 2n - 2 > 2n - 4\n$$\nand so $f(n) = 0$ for odd $n$, where $f(n)$ is the number of circular arrangements that satisfy the conditions of the problem.\n\nLet now $n = 2m$ be even. From the Lemma we now obtain $\\sum_{i=1}^{n} |x_i - x_{i+2}| = S(a)+S(b) \\ge 2m-2+2m-2 = 2n-4$. To achieve equality, both cycles, $a$ and $b$, need to consist of consecutive numbers. One of these two cycles contains the numbers $1, 2, \\dots, m$, the other the numbers $m+1, m+2, \\dots, 2m$.\nThe Lemma allows us to count the number of cycles $a$ that consist of the numbers $1, 2, \\dots, m$ (or any other $m$ consecutive numbers) for which $S(a) = 2m-2$. Let $g(m)$ be this number. Then $g(2) = 1$ as there is only one cycle of length two. For $m \\ge 2$, the lemma implies that after removing the number $m$ from $a$, we are left with a cycle $a'$ that consists of the numbers $1, 2, \\dots, m-1$ and which satisfies $S(a') = 2m-4$. Moreover, there are exactly two cycles $a$ which lead to the same $a'$, namely the two that are obtained by fitting in $m$ immediately before or after $m-1$ in $a'$. Hence $g(m+1) = 2g(m)$ for $m \\ge 2$ and it follows by induction that $g(m) = 2^{m-2}$.\n\nTo determine $f(n)$ for $n = 2m$ even, we may assume that $x_1 = a_1 = 1$ so that we don't have to deal with rotational symmetry any more. From the above it then follows that the *a*-cycle consists of $1, 2, \\dots, m$ and the *b*-cycle of $m+1, m+2, \\dots, 2m$. As seen above, there are $g(m) = 2^{m-2}$ possibilities for the *a*-cycle. There are the same number of possible *b*-cycles, but when we merge the two to the full cycle $x_1 = a_1, x_2 = b_1, x_3 = a_2, x_4 = b_2, \\dots, x_{n-1} = a_m, x_n = b_m$, a rotated *b*-cycle gives a different result. Therefore, we need to multiply by $m$, which is the number of possibilities to choose which element of the *b*-cycle will become $x_2$. This gives\n$$\nf(n) = m g(m)^2 = m 2^{2m-4} = n 2^{n-5} \\quad \\text{for even } n = 2m.\n$$\nThus the answer to the question is $0$ if $n$ is odd, and $n2^{n-5}$ if $n$ is even.", "topic": "Number Theory", "subtopic": "Modular Arithmetic" }, { "id": 33464, "subject": "Mathematics (Multi-modal)", "question": "$$\n\\begin{aligned}\na + b + c &= p \\\\\na^2 + b^2 + c^2 &= q\n\\end{aligned}\n\\qquad\n\\begin{aligned}\nbc - x - 2ya &= 0 \\\\\nca - x - 2yb &= 0 \\\\\nab - x - 2yc &= 0,\n\\end{aligned}\n$$\nwhere $p^2 < 3q$. Determine the possible values of $abc$.", "options": [], "answer": "(5 p^3 - 9 p q ± (p^2 - 3 q) sqrt(2(3 q - p^2)))/54", "solution": "Label the given equations as follows:\n$$\na + b + c = p \\qquad (23)\n$$\n$$\na^2 + b^2 + c^2 = q \\qquad (24)\n$$\n$$\nbc - x - 2ya = 0 \\qquad (25)\n$$\n$$\nca - x - 2yb = 0 \\qquad (26)\n$$\n$$\nab - x - 2yc = 0. \\qquad (27)\n$$\n\nAdding $(25) \\cdot (c - b)$, $(26) \\cdot (a - c)$ and $(27) \\cdot (b - a)$, we obtain\n$$\n(a - b)(b - c)(c - a) = 0.\n$$\n\nHence one of $a - b, b - c, c - a$ must be zero. But if all three of $a, b, c$ are equal, to $a$, say, then $p = 3a, q = 3a^2$, so that $p^2 = 9a^2 = 3(3a^2) = 3q$ which has been ruled out. So, at most one of $a - b, b - c, c - a$ can be zero. Say $b = a$; then $c = p - 2a$ and\n$$\nq = 2a^2 + c^2 = 2a^2 + (p - 2a)^2 = 6a^2 - 4ap + p^2,\n$$\nso that $a$ satisfies the quadratic equation\n$$\n6a^2 - 4pa + p^2 - q = 0, \\quad \\text{and so} \\quad a = \\frac{2p \\pm \\sqrt{2(3q - p^2)}}{6}.\n$$\n\nWe then have\n$$\nc = p - \\frac{2p \\pm \\sqrt{2(3q - p^2)}}{3} = \\frac{p \\mp \\sqrt{2(3q - p^2)}}{3},\n$$\n\n\\begin{align*} \nabc &= a^2c = \\frac{(2p \\pm \\sqrt{2(3q - p^2)})^2 (p \\mp \\sqrt{2(3q - p^2)})}{54} \\\\ \n&= \\frac{5p^3 - 9pq \\pm (p^2 - 3q)\\sqrt{2(3q - p^2)}}{54} \n\\end{align*}", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33465, "subject": "Mathematics (Multi-modal)", "question": "Consider triangle $ABC$ with $|AB| < |AC| < |BC|$, and let $I$ be its incentre. The incircle of $\\triangle ABC$ touches sides $BC$ and $AC$ at points $D$ and $E$, respectively. Let $R$ denote the midpoint of side $AC$. The point $N$ lies on the segment $DE$ such that $|RE| = |RN|$. Let $Q$ be the midpoint of segment $ND$. The lines $AN$ and $RQ$ intersect at point $P$. Prove that the points $I, N, P, Q$ lie on the same circle.", "options": [], "answer": "Detailed solution", "solution": "Note that $|CD| = |CE|$ and $|RN| = |RE|$. Hence, triangles $\\triangle ENR$ and $\\triangle EDC$ which share an angle at $E$, are both isosceles and hence similar. In particular, $RN \\parallel CB$ and\n$$\n\\angle CDE = \\angle CED = \\angle ENR = 90^\\circ - \\frac{1}{2}\\angle C.\n$$\n\n![](attached_image_1.png)\n\n\na.\n\n**Solution 1.** Let $N'$ be the intersection of $BI$ and $DE$. Then\n$$\n\\begin{aligned}\n180^\\circ - \\angle IN'E &= \\angle BN'D = \\angle CDE - \\angle CBI = 90^\\circ - \\frac{1}{2}\\angle C - \\frac{1}{2}\\angle B \\\\\n&= \\frac{1}{2}\\angle A = \\angle IAE\n\\end{aligned}\n$$\nhence $AIN'E$ is cyclic and we have $\\angle IN'A = \\angle IEA = 90^\\circ$.\n\n![](attached_image_2.png)\nLet $AN'$ extended meet $BC$ at $K'$. Then, in $\\triangle BAK'$, $BN'$ is both, angle bisector and altitude, which implies that $\\triangle BAK'$ is isosceles and $N'$ is the midpoint of $AK'$. Hence $RN' \\parallel CK'$ (midline) and so $\\triangle EN'R \\sim \\triangle EDC$. Because $|CD| = |CE|$ we therefore also have $|RE| = |RN'|$, hence $N' = N$.\n\n\n**Solution 2.** Let $K$ be the intersection of $AN$ with $BC$. Then $RN$ is the midline of $\\triangle AKC$, so $N$ is the midpoint of $AK$, and $|RE| = |RN| = \\frac{1}{2}|CK|$. Since\n$$\na = |BC| = |BD| + |CE|, \\ b = |CA| = |AE| + |CE|, \\ c = |AB| = |AE| + |BD|\n$$\n\n![](attached_image_3.png)\n\n$$\n|AE| = \\frac{b+c-a}{2} \\quad \\text{and}\n$$\n$$\n|RE| = |RA| - |AE| = \\frac{b}{2} - \\frac{b+c-a}{2} = \\frac{a-c}{2}.\n$$\n\nHence, $|CK| = a - c$ and so $|BK| = c$. This shows that $\\triangle BAK$ is isosceles and $BN$ is a median of it, hence $BN$ is also an angle bisector and thus passes through the incentre $I$, and $BN$ is an altitude so that $\\angle BNA = 90^{\\circ}$.\n\n\nb.\n\n**Solution 1.** Extend $RQ$ to meet $BC$ at $M$. Since $NR \\parallel MD$ and $|NQ| = |QD|$, we see that $\\triangle QNR \\equiv \\triangle QDM$. This implies that $Q$ is the midpoint of $RM$ and $|DM| = |RN| = |RE|$.\n![](attached_image_4.png)\nBecause we also have $|ID| = |IE|$ and $\\angle IDM = \\angle IER = 90^{\\circ}$, we now get $\\triangle IDM \\equiv \\triangle IER$, hence $|IR| = |IM|$. This implies that the median $IQ$ in the isosceles triangle $\\triangle IRM$ is also a perpendicular bisector, i.e. $IQ \\perp RM$. Note that this proof, which is independent of (a), does not require $R$ to be the midpoint of $AC$.\n\n\n**Solution 2.** Note that $\\triangle IDN$ is similar to $\\triangle ICA$ since\n$$\n\\angle IND = \\frac{1}{2}\\angle A = \\angle IAC \\quad \\text{and}\n$$\n$$\n\\angle IDN = 90^{\\circ} - \\angle EDC = \\frac{1}{2}\\angle C = \\angle ICA.\n$$\nSince $Q$ is the midpoint of $DN$ and $R$ the midpoint of $CA$ it follows that $\\triangle IQN \\sim \\triangle IRA$, in spiral symmetry and hence also $\\triangle IQR \\sim \\triangle INA$. Using part (a), it now follows that $\\angle IQR = \\angle INA = 90^{\\circ}$.\n\n\n**Solution 3.** Let $S$ on $IQ$ extended be such that $Q$ is the midpoint of $IS$. Then $IDSN$ is a parallelogram (diagonals bisect each other) and $|SN| = |DI|$, as well as $SN \\parallel DI \\perp BC \\parallel NR$.\n![](attached_image_5.png)\nBy SAS we now obtain $\\triangle SNR \\equiv \\triangle IER$, thus $|RS| = |RI|$. In isosceles triangle $\\triangle IRS$, $RQ$ is a median, hence also a perpendicular bisector, thus $\\angle RQI = 90^\\circ$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33466, "subject": "Mathematics (Multi-modal)", "question": "The 2025 members of a football club run a tournament of “45-a-side” football matches, where each football match involves 90 people. After the tournament is concluded, it is noticed that no two football matches had four players in common. Prove that the number of football matches is less than 90.", "options": [], "answer": "Detailed solution", "solution": "Denote the players by $P_1, P_2, \\dots, P_{2025}$ and let the number of matches be $N$. Also, denote the set of participants of match $i$ by $\\mathcal{T}_i$ for each $i = 1, 2, \\dots, N$. We will count, in two different ways, the total number of triples $(P_i, \\mathcal{T}_j, \\mathcal{T}_k)$ such that $P_i$ participates in match $\\mathcal{T}_j$ as well in match $\\mathcal{T}_k$, i.e. $P_i \\in \\mathcal{T}_j$ and $P_i \\in \\mathcal{T}_k$. Denote this total number of triples by $T$.\n\nFirst we count these triples by players. Suppose, for each $1 \\le i \\le 2025$, player $P_i$ plays in $R_i$ matches. We note that $\\sum_{i=1}^{2025} R_i = 90N$. Then the number of triples $(P_i, \\mathcal{T}_j, \\mathcal{T}_k)$ with $P_i \\in \\mathcal{T}_j$ and $P_i \\in \\mathcal{T}_k$, is\n\n\\begin{align}\nT &= \\sum_{i=1}^{2025} \\binom{R_i}{2} = \\frac{1}{2} \\left[ \\sum_{i=1}^{2025} R_i^2 - \\sum_{i=1}^{2025} R_i \\right] \\\\\n&\\ge \\frac{1}{2} \\left[ \\frac{\\left(\\sum_{i=1}^{2025} R_i\\right)^2}{2025} - \\sum_{i=1}^{2025} R_i \\right] = \\frac{1}{2} \\left[ \\frac{(90N)^2}{2025} - 90N \\right] \\\\\n&= 2N^2 - 45N, \\tag{28}\n\\end{align}\n\nwhere in the second line we have used the Cauchy-Schwarz inequality.\n\nNext, we give an upper bound for the number of these triples by considering pairs of matches. We know that no pair of matches has more than 3 players in common, so\n\n$$\nT \\le 3 \\binom{N}{2} = \\frac{3N(N-1)}{2}. \\tag{29}\n$$\n\nCombining (28) and (29) yields\n\n$$\n2N^2 - 45N \\leq \\frac{3N(N-1)}{2}\n$$\n\nwhich, upon simplifying, gives $N \\leq 87$.\n\nTherefore, the number of football matches is less than $90$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33467, "subject": "Mathematics (Multi-modal)", "question": "Prove that\n$$\n2 \\sum_{k=0}^{n} \\binom{2n}{k} = \\binom{2n}{n} + 2^{2n}, \\ n = 1, 2, \\dots\n$$\nProve also that\n$$\n2 \\sum_{k=0}^{n} \\binom{2n}{k} (-1)^k = \\binom{2n}{n} (-1)^n, \\ n = 1, 2, \\dots\n$$", "options": [], "answer": "Detailed solution", "solution": "By the binomial expansion\n$$\n(1 + t)^m = \\sum_{k=0}^{m} \\binom{m}{k} t^k,\n$$\nfor any positive integer $m$ and any $t$. In particular, taking $t = 1$ and $m = 2n$, and using $\\binom{2n}{k} = \\binom{2n}{2n-k}$ we have\n$$\n\\begin{aligned}\n2^{2n} &= \\sum_{k=0}^{2n} \\binom{2n}{k} = \\sum_{k=0}^{n} \\binom{2n}{k} + \\sum_{k=n+1}^{2n} \\binom{2n}{2n-k} \\\\\n&= \\sum_{k=0}^{n} \\binom{2n}{k} + \\sum_{j=0}^{n-1} \\binom{2n}{j} = 2 \\sum_{k=0}^{n} \\binom{2n}{k} - \\binom{2n}{n},\n\\end{aligned}\n$$\nwhence the first identity.\n\nSimilarly, working with $t = -1$ we get\n$$\n\\begin{aligned}\n0 &= (1-1)^{2n} = \\sum_{k=0}^{2n} (-1)^k \\binom{2n}{k} \\\\\n&= \\sum_{k=0}^{n} (-1)^k \\binom{2n}{k} + \\sum_{k=n+1}^{2n} (-1)^{2n-k} \\binom{2n}{k} \\\\\n&= \\sum_{k=0}^{n} (-1)^k \\binom{2n}{k} + \\sum_{j=0}^{n-1} (-1)^j \\binom{2n}{j} \\\\\n&= 2 \\sum_{k=0}^{n} (-1)^k \\binom{2n}{k} - (-1)^n \\binom{2n}{n},\n\\end{aligned}\n$$\ngiving that second sum.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33468, "subject": "Mathematics (Multi-modal)", "question": "Find all pairs $(n, p)$ of positive integers such that:\n* $p$ is the smallest positive integer that is not a factor of $n$, and;\n* $n$ is a factor of $3p^2 + 1$.", "options": [], "answer": "Pairs (n, p): (1, 2), (13, 2), (2, 3), (4, 3), (14, 3), (28, 3)", "solution": "A complete list of solutions is\n\n| $n$ | 1 | 2 | 4 | 13 | 14 | 28 |\n|-----|---|---|---|----|----|----|\n| $p$ | 2 | 3 | 3 | 2 | 3 | 3 |\n| $3p^2 + 1$ | 13 | 28 | 28 | 13 | 28 | 28 |\n\nSolution:\n\n**Solution 1.** Any factor of $n$ is a factor of $3p^2 + 1$. Hence, $3$ cannot be a factor of $n$. Hence, $p$, the smallest non-factor of $n$, can only be $2$ or $3$, as non-factors of $4$ and above cannot be the smallest non-factor. If $p = 2$, $n$ must be an odd factor of $3p^2 + 1 = 13$, i.e. $n = 1$ or $n = 13$. If $p = 3$, then $n$ must be an even factor of $3p^2 + 1 = 28$, i.e. $n = 2, 4, 14, 28$. This gives the solutions as tabulated above.\n\n\n**Solution 2.** Clearly $p > 1$ as $1$ is a factor of all positive integers $n$. The minimality of $p$ implies that $p-1$ is a factor of $n$ which is a factor of $3p^2+1$, so $p-1 \\mid 3p^2+1$. We also have $p-1 \\mid 3p^2-3 = 3(p-1)(p+1)$. By subtraction $p-1 \\mid 4$, so $p-1 \\in \\{1, 2, 4\\}$ and $p \\in \\{2, 3, 5\\}$ so $3p^2 + 1 \\in \\{13, 28, 76\\}$. Checking the factors of $\\{13, 28, 76\\}$ for possible values of $n$ gives the solutions above.\n\n\n**Solution 3.** Trying $p = 2, p = 3, p = 4$ and $p = 5$ and trying in turn each factor of $3p^2 + 1$ as a candidate for $n$ gives all the solutions stated. If $p > 5$ then $2, 3, 4, 5$ are factors of $n$ and in particular $n$ is multiple of $10$, hence $3p^2 + 1$ and $3(3p^2 + 1) = 9p^2 + 3$ as well, i.e. $-p^2 + 3 \\equiv 9p^2 + 3 \\equiv 0 \\pmod{10}$. But this means that $3$ would have to be a quadratic residue modulo $10$, which is not the case.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33469, "subject": "Mathematics (Multi-modal)", "question": "Prove that $1$ is the only positive value of $r$ for which there is a two-way infinite sequence $a(n)$ such that\n$$\na(-n) = 1 - \\sum_{k=0}^{n} r^k a(n-k), \\ n = 0, \\pm 1, \\pm 2, \\dots\n$$\nDetermine $a(n)$, $n = 0, \\pm1, \\pm2, \\dots$, when $r = 1$.", "options": [], "answer": "Only r = 1 works. For r = 1, a(n) = 1/2^{|n|+1} for all integers n.", "solution": "Suppose, for some $r > 0$, a two-way infinite sequence $a(n)$ satisfies\n$$\na(-n) = 1 - \\sum_{k=0}^{n} r^k a(n-k), \\quad \\text{for all } n \\in \\mathbb{Z}. \\qquad (1)\n$$\n\nFor $n = 0$ this means $a(0) = 1 - a(0)$, hence $a(0) = \\frac{1}{2}$. For $n = \\pm 1$ we get\n$$\na(1) + a(-1) = 1 - r^{-1}a(0) \\quad \\text{and} \\qquad (2)\n$$\n$$\na(-1) + a(1) = 1 - ra(0). \\qquad (3)\n$$\nCombining (2) and (3) gives $r^{-1}a(0) = ra(0)$, whence $r^2 = 1$, so that $r = 1$, as claimed. With $r = 1$, (1) simplifies to\n\n$$\na(-n) = 1 - \\sum_{k=0}^{n} a(n-k), \\quad \\text{for all } n \\in \\mathbb{Z}.\n$$\nWe rewrite this in two ways, using only $n \\ge 0$:\n$$\na(-n) = 1 - \\sum_{k=0}^{n} a(k) \\quad \\text{and} \\qquad (4)\n$$\n$$\na(n) = 1 - \\sum_{k=0}^{n} a(-k). \\qquad (5)\n$$\n\nWriting $d(n) = a(n) - a(-n)$, the difference of (4) and (5) gives\n$$\nd(n) = \\sum_{k=0}^{n} d(k), \\text{ i.e. } \\sum_{k=0}^{n-1} d(k) = 0, \\quad \\text{for all } n \\ge 1, \\qquad (6)\n$$\nClearly, $d(0) = a(0) - a(-0) = 0$ and so induction and (6) gives $d(n) = 0$, i.e. $a(n) = a(-n)$ for all $n \\ge 0$. Now (5) becomes\n$$\na(n) = 1 - \\sum_{k=0}^{n} a(k), \\quad \\text{i.e.}\\quad 2a(n) = 1 - \\sum_{k=0}^{n-1} a(k), \\quad \\text{for all } n \\ge 0.\n$$\nReplacing $1 - \\sum_{k=0}^{n-2} a(k)$ in this last expression by $2a(n-1)$, we obtain\n$$\n2a(n) = 2a(n-1) - a(n-1) = a(n-1), \\quad \\text{for all } n \\ge 1.\n$$\nSince $a(0) = 1/2$ it now follows by induction that $a(n) = 1/2^{n+1}$, for all $n \\ge 0$. Because $a(-n) = a(n)$, we finally obtain\n$$\na(n) = \\frac{1}{2^{|n|+1}}, \\quad \\text{for all } n \\in \\mathbb{Z}.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33470, "subject": "Mathematics (Multi-modal)", "question": "How many crosswords can we make from the word “CROSSWORD”, assuming the following rules?\n1. A crossword has two words, one horizontal and one vertical, intersecting at a single letter.\n2. A 'word' is any ordered set of at least two letters. It does not need to be a real word in any language.\n3. Letters should be used as often as they appear in \"CROSSWORD\".\n4. Two crosswords are different unless they have the same words oriented the same way and meeting at the same point. For instance, the following three crosswords are different:\n![](attached_image_1.png)", "options": [], "answer": "6667920", "solution": "We consider first the sequence of the letters, and then the configuration in which they are arranged. There are 9 letters on CROSSWORD, consisting of 3 unique letters and three duplicate pairs. If all letters were distinct there would be $9! = 362,880$ permutations, but because of the three duplicates, this counts each case $2^3 = 8$ times, and so the number of distinct arrangements allowing for the duplicates is $9!/8 = 45,360$. We now count the arrangements, for which we show two solutions both leading to 147 cases.\n\n**Solution 1.** Suppose that the horizontal word has $n$ letters and so the vertical word has $10-n$ letters, producing 9 letters in total after removing the double-count at the word intersection. There are $n$ crossing locations for the horizontal word and $10-n$ for the vertical word, and all numbers $2 \\le n \\le 8$ are allowed. Thus, the total number of shapes is\n$$\n\\sum_{n=2}^{8} n(10-n) = 16 + 21 + 24 + 25 + 24 + 21 + 16 = 147\n$$\n\n\n**Solution 2.** Let us define an *improper crossword* to be a single nine-letter word, either horizontal or vertical (orientations counted as distinct) with one of those nine letters deemed to be an intersection with a single-letter second word. There are 18 improper crossword arrangements, that is two orientations multiplied by nine positions.\nWe now count the union of crosswords and improper crosswords. For each crossword or improper crossword, construct a string of 12 characters, these being the 9 characters of CROSSWORD plus three commas. The first part of the string is the horizontal word (including the letter at the intersection), with a comma just after the letter at the intersection, and a further comma at the end of the first word.\nThe final part of the 12-character string is the vertical word, replacing the character at the intersection with another comma.\nAs the intersection is not empty, the first position cannot be a comma, but any 3 of the other 11 positions can contain a comma. Therefore, there are $\\binom{11}{3} = 165$ valid arrangements. Of these 165, there are 9 with two commas in positions 2 and 3, corresponding to vertical improper crosswords, and 9 with two commas at the end corresponding two horizontal improper crosswords.\nThus the number of proper crossword arrangements is $165 - 18 = 147$.\nThe number of crosswords is $147 \\times 45,360 = 6,667,920$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33471, "subject": "Mathematics (Multi-modal)", "question": "Suppose $a$, $b$, $c$ are real numbers such that $a + b + c = 1$ and $a^2 + b^2 + c^2 = 1$.\nProve that $a^3 + b^3 + c^3 \\le 1$.", "options": [], "answer": "Detailed solution", "solution": "First note that\n$$\n0 = (a + b + c)^2 - (a^2 + b^2 + c^2) = 2(ab + bc + ca).\n$$\nUsing $a + b = 1 - c$, we then obtain\n$$\n0 = ab + bc + ca = ab + c(a + b) = ab + c(1 - c), \\quad \\text{ i.e. } \\ ab = c(c - 1)\n$$\nand so $abc = c^2(c - 1) \\le 0$ because $a^2 + b^2 + c^2 = 1$ implies $c \\le 1$. Finally,\n$$\n\\begin{align*}\n1 &= (a^2 + b^2 + c^2)(a + b + c) \\\\\n &= a^3 + b^3 + c^3 + ab(a + b) + bc(b + c) + ca(c + a) \\\\\n &= a^3 + b^3 + c^3 + ab(1 - c) + bc(1 - a) + ca(1 - b) \\\\\n &= a^3 + b^3 + c^3 - 3abc + ab + bc + ca,\n\\end{align*}\n$$\nhence $a^3 + b^3 + c^3 = 1 + 3abc \\le 1$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33472, "subject": "Mathematics (Multi-modal)", "question": "Find all quadruples $(a, b, c, d)$ of positive integers for which\n$$\na^2 + b^2 + c^2 + d^2 = 2025 \\quad \\text{and} \\quad ab = cd.\n$$", "options": [], "answer": "[[18, 18, 9, 36], [18, 18, 36, 9], [9, 36, 18, 18], [36, 9, 18, 18]]", "solution": "We will use the fact that $n^2 \\equiv 0 \\pmod{3}$ if $3 \\mid n$ and $n^2 \\equiv 1 \\pmod{3}$ otherwise. A consequence is that if the sum of the squares of $k$ integers is divisible by $3$ and $k$ is not divisible by $3$, then at least one of the $k$ integers is divisible by $3$.\n\nBecause $2025 = 3^4 \\cdot 5^2$ is divisible by $3$, the above implies that at least one of $a, b, c, d$ must be divisible by $3$. The equation $ab = cd$ implies that a second of these integers must be divisible by $3$. But then two integers are left the squares of which add to a number which is divisible by $3$, so by the same reasoning, all four integers must be divisible by $3$.\n\nDividing now both sides of the equation $a^2 + b^2 + c^2 + d^2 = 2025$ by $9$ leaves us with the sum of four squares equal to $2025/9 = 225 = 3^2 \\cdot 5^2$, which still is divisible by $3$. The same reasoning as above implies that the four integers must all be divisible by $3$, i.e. the original $a, b, c, d$ are all divisible by $9$.\n\nLet $a = 9A$, $b = 9B$, $c = 9C$ and $d = 9D$, it then suffices to list solutions to\n$$\nA^2 + B^2 + C^2 + D^2 = 25 \\quad \\text{and} \\quad AB = CD.\n$$\nBy permuting, we can assume wlog that $A \\le B \\le D$ and $C \\le D$.\nWe cannot have $D \\ge 5$ or the sum on the LHS becomes too large. We also cannot have $D \\le 2$ as the sum becomes too small. So $D$ can only be $3$ or $4$. If $D = 3$, the equation $AB = CD$ implies $3 \\mid AB$ and, as $A \\le B \\le D$ we must have $B = 3$. But if $B = D = 3$ then $A^2 + C^2 = 7$ which does not have a solution in integers. The only remaining case, then, is $D = 4$, in which case $A^2 + B^2 + C^2 = 9$ whose only positive solution up to permutation is $(1, 2, 2)$. Because $AB = CD \\ge 4$, we must have $A = B = 2$ and $C = 1$. Multiplying this solution by $9$ gives $(a, b, c, d) = (18, 18, 9, 36)$ as one solution to the original problem. Three more solutions are obtained by permutation, giving these four solutions\n$(18, 18, 9, 36)$, $(18, 18, 36, 9)$, $(9, 36, 18, 18)$, $(36, 9, 18, 18)$.\nWe note that $ab = cd$ implies that\n$$\na^2 + b^2 + c^2 + d^2 = (a+b)^2 + (c-d)^2 = (a-b)^2 + (c+d)^2.\n$$\nFrom the fact given at the start, it follows that if $x^2 + y^2$ is divisible by $3$, both integers, $x$ and $y$, must be divisible by $3$ as well. As $2025 = 3^4 \\cdot 5^2$, this implies that each of the four numbers $a+b, a-b, c+d, c-d$ must be divisible by $3$, hence each of $a, b, c, d$ is divisible by $3$.\n\nAfter dividing both sides of the equation $a^2 + b^2 + c^2 + d^2 = 2025$ by $9$ we can repeat this argument and obtain that $a, b, c, d$ are all divisible by $9$. Let $a = 9A$, $b = 9B$, $c = 9C$ and $d = 9D$. We then wish to solve\n$$\n(A+B)^2 + (C-D)^2 = (A-B)^2 + (C+D)^2 = 25.\n$$\nWe assume $A \\ge B > 0$ and $C \\ge D > 0$ and consider permutations later.\n\nThere are two ways of writing $25$ as a sum of two squares: $25 = 3^2 + 4^2 = 5^2 + 0^2$. Noting that $A+B$ and $A-B$ have the same parity but cannot be equal, and similarly for $C, D$, we see that the only possibilities with $A, B, C, D$ satisfying $A \\ge B > 0$ and $C \\ge D > 0$ are\n$$\n\\begin{array}{llll}\nA+B=4 & C-D=3 & A-B=0 & C+D=5 & \\text{or} \\\\\nA+B=5 & C-D=0 & A-B=3 & C+D=4\n\\end{array}\n$$\nwhich lead to $(A, B, C, D) = (2, 2, 4, 1)$ or $(A, B, C, D) = (4, 1, 2, 2)$. This gives the following four solutions $(a, b, c, d)$, the second and the third are obtained from the above by swapping $a$ and $b$, or $c$ and $d$:\n$(18, 18, 36, 9)$ $(18, 18, 9, 36)$ $(36, 9, 18, 18)$ $(9, 36, 18, 18)$\nThe equation $ab = cd$ implies $a/c = d/b$. Let $m, n$ be coprime integers such that $a/c = d/b = m/n$. Then, there exist integers $r, s$ such that $a = rm$, $b = sn$, $c = rn$ and $d = sm$. The question becomes:\n$$\n\\begin{aligned}\na^2 + b^2 + c^2 + d^2 &= (rm)^2 + (sn)^2 + (rn)^2 + (sm)^2 \\\\\n&= (r^2 + s^2)(m^2 + n^2) = 2025 = 3^4 \\cdot 5^2.\n\\end{aligned}\n$$\nFrom the observation made at the start (before solution 1) we see that for no $k \\ge 0$ has the equation $x^2 + y^2 = 3^k$ a solution in positive integers. This shows that both, $r^2 + s^2$ and $m^2 + n^2$, must be divisible by $5$. Moreover, if an equation $m^2 + n^2 = 3^k \\cdot 5$ with $k > 0$ has a solution, both, $m$ and $n$, must be divisible by $3$. This would contradict our assumption that $m$ and $n$ are coprime. Hence, we must have\n$$\nr^2 + s^2 = 3^4 \\cdot 5 \\quad \\text{and} \\quad m^2 + n^2 = 5.\n$$\nAssuming $r \\le s$ and $m \\le n$, and because $5 = 1^2 + 2^2$ is the only way to write $5$ as a sum of two squares, we have $(r, s, m, n) = (9, 18, 1, 2)$ and so $(a, b, c, d) = (9, 36, 18, 18)$.\n\nSwapping $r$ with $s$ corresponds to interchanging $(a, b)$ with $(d, c)$; swapping $m$ and $n$ corresponds to interchanging $(a, b)$ with $(c, d)$. Doing both swaps interchanges $a$ with $b$ and $c$ with $d$. This gives the four solutions stated above.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33473, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABC$ un triangolo rettangolo, con ipotenusa $AC$, e sia $H$ il piede dell'altezza condotta da $B$ ad $AC$. Sapendo che le lunghezze $AB$, $BC$ e $BH$ costituiscono i lati di un nuovo triangolo rettangolo, determinare i possibili valori di $\\frac{AH}{CH}$.", "options": [], "answer": "(sqrt(5) - 1)/2 and (sqrt(5) + 1)/2", "solution": "Solution:\n\nPoiché i triangoli $ABH$ e $BCH$ sono rettangoli, si ha $BH < AB$ e $BH < HC$. Dunque il lato maggiore fra $AB$ e $BC$ deve essere l'ipotenusa del nuovo triangolo rettangolo.\n\nSupponiamo dapprima $BC > AB$. Allora abbiamo $AB^2 + BH^2 = BC^2$ e, analizzando il triangolo rettangolo $BCH$, $CH^2 + BH^2 = BC^2$. Ne segue che $AB = CH$.\n\nDalla similitudine fra i triangoli $AHB$ e $ABC$ si ha che $AB : AH = (AH + CH) : AB$ e quindi $CH : AH = (AH + CH) : CH$. Detto $x$ il rapporto cercato, si trova $1/x = x + 1$ da cui $x = \\frac{\\sqrt{5} - 1}{2}$ (il valore negativo della soluzione dell'equazione algebrica è da scartare).\n\nSe $AB > BC$, lo stesso ragionamento prova che $CH / AH = \\frac{\\sqrt{5} - 1}{2}$, ossia $AH / CH = \\frac{\\sqrt{5} + 1}{2}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33474, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABC$ un triangolo, e siano $D$ ed $E$ le proiezioni di $A$ sulle bisettrici uscenti da $B$ e $C$. Dimostrare che $DE$ è parallelo a $BC$.\n\n![](attached_image_1.png)", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nSiano $F$ e $G$ i punti d'intersezione fra la retta $BC$ e le rette $AE$ e $AD$ rispettivamente. Il segmento $CE$ è bisettrice e altezza relativa al lato $AF$ del triangolo $ACF$, dunque è anche mediana (e il triangolo $ACF$ è isoscele sulla base $AF$): abbiamo $AE = EF$. Similmente, $BD$ è bisettrice e altezza (dunque mediana) nel triangolo $ABG$, e $AD = DG$. Applicando il teorema di Talete nel triangolo $AFG$ si ottiene il parallelismo fra le rette $DE$ e $BC$.\nSolution:\n\nSia $I$ l'incentro del triangolo $ABC$, siano $BL$ e $CK$ le bisettrici uscenti da $B$ e da $C$, e siano $\\alpha, \\beta, \\gamma$ gli angoli interni in $A, B, C$ rispettivamente. Poiché gli angoli $\\widehat{AEI}$ e $\\widehat{ADI}$ sono retti, il quadrilatero $AEID$ è inscrittibile in una circonferenza: abbiamo dunque $\\widehat{IAE} = \\widehat{IDE}$. D'altra parte, $\\widehat{AKC} = 180^{\\circ} - \\frac{\\gamma}{2} - \\alpha$, e (supponendo che $E$ sia interno al segmento $IK$ per fissare la configurazione: il caso in cui ciò non avvenga è analogo) $\\widehat{KAE} = 90^{\\circ} - \\widehat{AKC} = \\frac{\\gamma}{2} + \\alpha - 90^{\\circ}$. Gli angoli $\\widehat{IAE}$ e $\\widehat{IDE}$ valgono perciò $\\frac{\\alpha}{2} - \\widehat{KAE} = \\frac{\\alpha}{2} - \\frac{\\gamma}{2} - \\alpha + 90^{\\circ} = \\frac{180^{\\circ} - \\gamma - \\alpha}{2} = \\frac{\\beta}{2} = \\widehat{LBC}$. I due angoli alterni interni $\\widehat{EDB}$ e $\\widehat{DBC}$ formati dalla trasversale $DB$ con le rette $ED$ e $BC$ sono in conclusione congruenti, e quindi le rette $ED$ e $BC$ sono parallele.\nSolution:\n\nSia $D'$ la proiezione di $D$ su $BC$, e sia $H$ il piede dell'altezza da $A$. Allora\n$$\nDD' = BD \\sin \\left(\\frac{\\beta}{2}\\right) = AB \\cos \\left(\\frac{\\beta}{2}\\right) \\sin \\left(\\frac{\\beta}{2}\\right) = AB \\sin \\beta / 2 = AH / 2.\n$$\nSimilmente per $E$, quindi $D$ ed $E$ giacciono sulla parallela a $BC$ situata a distanza $AH / 2$ dalla parte di $A$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33475, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\n1. Ad un test di matematica partecipano $N<40$ persone. La sufficienza è fissata a 65. I risultati del test sono i seguenti: la media di tutti i partecipanti è 66, quella dei promossi 71 e quella dei bocciati 56. Tuttavia, a causa di un errore nella formulazione di un quesito, tutti i punteggi vengono aumentati di 5. A questo punto la media dei promossi diviene 75 e quella dei non promossi 59.\n\na) Trovare tutti i possibili valori di $N$.\n\nb) Trovare tutti i possibili valori di $N$ nel caso in cui, dopo l'aumento, la media dei promossi fosse diventata 79 e quella dei non promossi 47.", "options": [], "answer": "a) N = 12, 24, 36; b) no possible N", "solution": "Solution:\n\n(a) Sia $P_{1}$ il numero dei promossi prima dell'incremento e $P_{2}$ il numero di promossi dopo l'incremento di punteggio. Dalle informazioni che abbiamo possiamo scrivere:\n$$\n66 N = 71 P_{1} + 56 (N - P_{1}), \\quad 71 N = 75 P_{2} + 59 (N - P_{2})\n$$\nDalla prima relazione, svolgendo i conti, otteniamo $10 N = 15 P_{1}$ o $2 N = 3 P_{1}$, da cui, essendo $N$ e $P_{1}$ interi, possiamo concludere che $N$ è multiplo di 3. Similmente, dalla seconda relazione abbiamo $12 N = 16 P_{2}$ o $3 N = 4 P_{2}$, e dunque $N$ è multiplo di 4. In conclusione, $N$ dev'essere multiplo di 3 e di 4, ovvero di 12, e può dunque valere 12, 24 o 36. Questi tre casi sono in effetti possibili. Cerchiamo infatti un esempio per $N = 12$, tentando di avere voti il più possibile uguali. Se 8 persone, ovvero i promossi immediatamente, hanno un voto prima dell'incremento di 71, una ha preso 62 e i rimanenti tre 54 abbiamo verificate tutte le ipotesi del problema. I casi $N = 24$ e $N = 36$ sono analoghi, rispettivamente raddoppiando e triplicando le persone in ciascuna fascia di punteggio.\n\n(b) Nessun $N$ può verificare le ipotesi di questo punto. Sia infatti $M_{p}$ la media - prima dell'incremento - di coloro che NON erano promossi prima dell'incremento ma che lo diverrebbero dopo. Allora si avrebbe:\n$$\n76 P_{1} + (M_{p} + 5)(P_{2} - P_{1}) = 79 P_{2}\n$$\nMa $M_{p} < 65$, dunque $M_{p} + 5 < 70 < 76$, da cui\n$$\n79 P_{2} = 76 P_{1} + (M_{p} + 5)(P_{2} - P_{1}) < 76 P_{1} + 76 (P_{2} - P_{1}) = 76 P_{2} < 79 P_{2}\n$$\nassurdo.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33476, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSiano $a < b < c < d < e$ numeri reali. Si calcolano tutte le possibili somme a due a due di questi 5 numeri. Di queste 10 somme, le tre più piccole sono $32, 36, 37$, mentre le due più grandi sono $48$ e $51$. Si determinino tutti i possibili valori che può assumere $e$.", "options": [], "answer": "27.5", "solution": "Solution:\n\nÈ innanzitutto evidente che le due somme più piccole, $32$ e $36$, sono rispettivamente $a+b$ e $a+c$. Allo stesso modo, le due somme più grandi, $48$ e $51$, sono rispettivamente $c+e$ e $d+e$. Dunque $a+b=32$, $a+c=36$; sottraendo la prima equazione dalla seconda si ricava\n$$\nc-b=4.\n$$\nAllo stesso modo, da $d+e=51$, $c+e=48$ si ottiene\n$$\nd-c=3\n$$\ne infine, sottraendo la (1) dalla (2), si ottiene\n$$\nd-b=7.\n$$\nResta ancora da capire a che somma corrisponda il valore $37$. A priori, si possono presentare due possibilità: $37=a+d$ oppure $37=b+c$. Se fosse $37=a+d$, allora per la (3) si avrebbe $37=a+d=(a+b)+(d-b)=32+7=39$, il che è assurdo. Quindi rimane solo la possibilità $37=b+c$. A questo punto è facile calcolare i valori di $a, b$ e $c$. Infatti $2a=(a+b)+(a+c)-(b+c)=32+36-37=31$, da cui $a=15.5$, $b=32-a=16.5$ e $c=37-b=20.5$. Noto il valore di $c$, possiamo calcolare anche $e=48-c=27.5$, da cui $d=23.5$. Con questi valori di $a, b, c, d, e$ risulta in effetti che le tre somme più piccole sono $32, 36$ e $37$ e le due somme più grandi sono $48$ e $51$, per cui l'unico valore possibile per $e$ è $27.5$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33477, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDimostrare che, comunque si prendano 18 numeri interi positivi consecutivi minori o uguali a 2005, ce ne è almeno uno divisibile per la somma delle sue cifre.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nTra i 18 numeri considerati vi sono due multipli consecutivi di 9. Per il criterio di divisibilità per 9 la somma delle cifre di questi numeri è multipla di 9. Considerando che la somma massima delle cifre di un numero minore di 2005 è 28 (nel caso di 1999), analizziamo due casi.\n\nSe la somma delle cifre di uno di questi numeri è 27, allora questo numero deve essere necessariamente 999, 1899, 1989 o 1998. I numeri 999 e 1998 sono divisibili per 27, mentre i multipli di 9 immediatamente precedenti e immediatamente successivi a 1899 e a 1989, cioè 1890, 1908, 1980 e 1998, sono tutti divisibili per la somma delle loro cifre. Se invece le somme delle cifre dei due multipli consecutivi di 9 sono uguali a 9 o a 18, allora basta notare che uno di essi è pari, e quindi divisibile non solo per 9 ma anche per 2, e quindi per 18.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33478, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDiciamo che due polinomi a coefficienti interi $p$ e $q$ sono simili se hanno lo stesso grado e gli stessi coefficienti a meno dell'ordine.\n\na. Dimostrare che se $p$ e $q$ sono simili, allora $p(2007)-q(2007)$ è un multiplo di $2$.\n\nb. Esistono degli interi $k>2$ tali che, comunque siano dati due polinomi simili $p$ e $q$, $p(2007)-q(2007)$ è un multiplo di $k$?", "options": [], "answer": "k = 2006", "solution": "Solution:\n\na. Poiché $2007$ è un numero dispari, il valore di un polinomio in $2007$ è pari o dispari a seconda che il numero dei suoi coefficienti dispari sia pari o dispari. Ma se $p$ e $q$ sono simili, allora in particolare contengono lo stesso numero di coefficienti dispari, e quindi $p(2007)$ e $q(2007)$ sono entrambi pari o entrambi dispari. In ogni caso, la loro differenza è divisibile per $2$.\n\nb. Sì, la cosa è vera anche per $k=2006$.\nPer ogni intero non negativo $h$, si ha $2007^{h} \\equiv 1 \\pmod{2006}$. Se $p(x)=a_{n} x^{n}+a_{n-1} x^{n-1}+\\cdots+a_{0}$ e $q(x)=b_{n} x^{n}+b_{n-1} x^{n-1}+\\cdots+b_{0}$ si ha dunque\n$$\n\\begin{aligned}\np(2007) &\\equiv a_{n}+a_{n-1}+\\cdots+a_{0} \\quad (\\bmod\\ 2006) \\\\\nq(2007) &\\equiv b_{n}+b_{n-1}+\\cdots+b_{0} \\quad (\\bmod\\ 2006)\n\\end{aligned}\n$$\nda cui $p(2007)-q(2007) \\equiv (a_{n}+a_{n-1}+\\cdots+a_{0})-(b_{n}+b_{n-1}+\\cdots+b_{0})=0 \\pmod{2006}$.\n\n\nSoluzione Alternativa:\n\nEntrambi i casi (a) e (b) possono essere risolti nel modo seguente. Notiamo che se $p$ e $q$ sono simili necessariamente $p(1)=q(1)$. Sia ora $r(x)=p(x)-q(x)$; si ha $r(1)=0$, quindi $(x-1)$ divide $r(x)$. Ma allora $2006=2007-1$ divide $r(2007)=p(2007)-q(2007)$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33479, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn una gara di matematica si propongono 3 problemi, ciascuno dei quali viene valutato con un punteggio intero compreso fra 0 e 7 (estremi inclusi). Si sa che, comunque si scelgano due concorrenti, c'è al più un problema su cui questi hanno ottenuto lo stesso punteggio (per esempio, non ci sono due concorrenti i cui punteggi sui tre problemi siano 7, 1, 2 per il primo e 7, 5, 2 per il secondo, ma ci potrebbero essere due concorrenti i cui punteggi siano 7, 1, 2 e 7, 2, 1). Quanti sono al massimo i partecipanti alla gara?", "options": [], "answer": "64", "solution": "Solution:\n\nLa risposta è 64. Indichiamo con $p_{1}, p_{2}, p_{3}$ i punteggi che un concorrente può ottenere nei problemi $1, 2, 3$, rispettivamente. In primo luogo osserviamo che sicuramente il numero di concorrenti non può essere superiore a 64. Infatti, considerando anche solo i primi due problemi, le coppie di punteggi $\\left(p_{1}, p_{2}\\right)$ possibili relative a questi due problemi sono $8^{2} = 64$, e quindi, se si vuole che a concorrenti diversi corrispondano coppie diverse, il numero di concorrenti non può superare 64.\n\nIn secondo luogo, però, con 64 concorrenti si può ottenere il risultato richiesto. Immaginiamo infatti che i 64 concorrenti ottengano, nei primi due problemi, tutte le 64 coppie $\\left(p_{1}, p_{2}\\right)$ di punteggi disponibili. È certamente possibile, visto che i punteggi variano tra 0 e 7, che tutti i concorrenti ottengano un punteggio totale (cioè la somma dei punteggi $p_{1} + p_{2} + p_{3}$) divisibile per 8. In questo caso non ci sono due concorrenti che hanno punteggio uguale in due problemi diversi. Infatti, se due concorrenti hanno per esempio punteggi uguali nel problema 1 e nel problema 3, allora, per differenza, devono avere un punteggio uguale anche nel problema 2, contraddicendo l'ipotesi fatta. Un discorso completamente analogo si applica al caso in cui due concorrenti abbiano punteggio uguale nel problema 2 e nel problema 3.\nSolution:\n\nLa prima parte di questa soluzione coincide con quella della soluzione precedente. Per la seconda parte, facciamo vedere che 64 concorrenti possono soddisfare la condizione richiesta. Già sappiamo che, sui primi due problemi, i nostri 64 concorrenti devono ottenere tutte le 64 possibili combinazioni di punteggi. Possiamo quindi costruire una tabella $8 \\times 8$ le cui righe corrispondono ai punteggi del primo problema, e le cui colonne corrispondono ai punteggi del secondo. Ad ogni casella della tabella corrisponderà uno dei concorrenti, ed in quella casella vogliamo scrivere il punteggio che egli ottiene nel terzo problema. La richiesta dell'esercizio diventa allora che nessuna riga e nessuna colonna contengano due numeri uguali. La tabella seguente, per esempio, soddisfa questa richiesta.\n\n| | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |\n| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |\n| 0 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |\n| 1 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 0 |\n| 2 | 2 | 3 | 4 | 5 | 6 | 7 | 0 | 1 |\n| 3 | 3 | 4 | 5 | 6 | 7 | 0 | 1 | 2 |\n| 4 | 4 | 5 | 6 | 7 | 0 | 1 | 2 | 3 |\n| 5 | 5 | 6 | 7 | 0 | 1 | 2 | 3 | 4 |\n| 6 | 6 | 7 | 0 | 1 | 2 | 3 | 4 | 5 |\n| 7 | 7 | 0 | 1 | 2 | 3 | 4 | 5 | 6 |", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33480, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABCD$ un quadrilatero convesso tale che $\\widehat{CAB} = \\widehat{CDA}$ e $\\widehat{BCA} = \\widehat{ACD}$. Detto $M$ il punto medio di $AB$ si dimostri che $\\widehat{BCM} = \\widehat{DBA}$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nChiamiamo per comodità $\\widehat{BCM} = \\alpha$. Consideriamo i triangoli $\\triangle ADC$ e $\\triangle BAC$: essi hanno due angoli congruenti, e quindi anche il terzo è congruente per differenza ($\\widehat{CAD} = \\widehat{CBA}$). Per il primo criterio di similitudine sono dunque simili; in particolare si ha $AD : BA = CA : CB$. Detto $N$ il punto medio di $AD$, consideriamo i triangoli $\\triangle CAN$ e $\\triangle CBM$, che sono simili poiché hanno $AN : BM = 2AN : 2BM = AD : BA = CA : CB$ e $\\widehat{CAN} = \\widehat{CBM}$ per quanto dimostrato prima. Si ha in particolare che $\\widehat{ACN} = \\widehat{BCM} = \\alpha$ in quanto angoli corrispondenti di triangoli\n\n![](attached_image_1.png)\n\nsimili, da cui\n$$\n\\widehat{NCM} = \\widehat{ACN} + \\widehat{ACM} = \\widehat{BCM} + \\widehat{ACM} = \\widehat{ACB}.\n$$\nConsideriamo il quadrilatero $ANCM$ e dimostriamo che è ciclico (inscrittibile in una circonferenza): effettuando la somma degli angoli opposti in $A$ e $C$ si ottiene\n$$\n\\widehat{NAM} + \\widehat{NCM} = (\\widehat{DAC} + \\widehat{CAB}) + \\widehat{ACB} = \\widehat{CBA} + \\widehat{CAB} + \\widehat{ACB} = 180^\\circ\n$$\ndove l'ultima uguaglianza è data dal fatto che la somma degli angoli interni di un triangolo è un angolo piatto. Dalla ciclicità di $ANCM$ si deduce $\\widehat{NMA} = \\widehat{NCA} = \\alpha$ (angoli che insistono sullo stesso arco). Ma ora, essendo $N$ e $M$ punti medi di $AD$ e $AB$, per Talete avremo che $NM \\parallel BD$; in conclusione $\\widehat{DBA} = \\widehat{NMA} = \\alpha$, poiché angoli corrispondenti di due parallele tagliate da una retta.\nSolution:\n\nConsideriamo $E$ in modo che $EACD$ sia un parallelogramma e dimostriamo che i triangoli $EAC$ e $DAB$ sono simili (usando i risultati della prima parte della soluzione mostrata sopra).\nSolution:\n\nConsideriamo il piano di Gauss dove $c = 0$ è l'origine e $b = 1$. $\\triangle ADC \\sim \\triangle BAC$ algebricamente si traduce in $d = a^2$.\n\nEsprimendo la tesi in termini di numeri complessi bisogna dimostrare che $\\arg \\frac{(a+b)/2 - c}{b-c} = \\arg \\frac{b-d}{b-a}$; svolgendo i conti otteniamo:\n$$\n\\arg \\frac{(a+b)/2 - c}{b-c} = \\arg \\frac{z+1}{2} = \\arg(z+1) = \\arg \\frac{1-z^2}{1-z} = \\arg \\frac{b-d}{b-a}\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33481, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn ciascuna delle caselle di una tabella quadrata $4 \\times 4$ è scritta la cifra $1$ o la cifra $2$. Si sa che la somma delle $9$ cifre contenute in ciascuno dei $4$ quadrati $3 \\times 3$ contenuti nella tabella è multipla di $4$, mentre la somma di tutte le $16$ cifre non è multipla di $4$.\n\nDeterminare il massimo ed il minimo valore possibile per la somma di tutte le $16$ cifre.", "options": [], "answer": "maximum 30, minimum 19", "solution": "Solution:\n\nIl massimo ed il minimo sono, rispettivamente, $30$ e $19$ e sono realizzati, per esempio, dalle seguenti tabelle\n\n| 2 | 2 | 2 | 2 |\n|---|---|---|---|\n| 2 | 2 | 1 | 2 |\n| 2 | 1 | 2 | 2 |\n| 2 | 2 | 2 | 2 |\n\n| 1 | 1 | 1 | 1 |\n|---|---|---|---|\n| 1 | 2 | 2 | 1 |\n| 1 | 2 | 1 | 1 |\n| 1 | 1 | 1 | 1 |\n\nInfatti, affinché la somma delle $9$ cifre in un quadrato $3 \\times 3$ sia divisibile per $4$, ci sono solo due possibilità: avere $6$ volte la cifra $1$ e $3$ volte la cifra $2$ (somma $12$), oppure avere $2$ volte la cifra $1$ e $7$ volte la cifra $2$ (somma $16$).\n\nÈ quindi evidente che nella tabella $4 \\times 4$ ci sono almeno $2$ cifre $1$. Se le disponiamo, in qualunque modo, all'interno del quadrato centrale $2 \\times 2$ della tabella, in modo cioè da essere contenute in tutti i $4$ quadrati $3 \\times 3$, non sono necessarie altre cifre $1$. La somma massima si realizza quindi con $2$ cifre $1$ e $14$ cifre $2$, per un totale di $30$.\n\nAnalogamente, nella tabella $4 \\times 4$ ci sono almeno $3$ cifre $2$, e non ne servono altre se queste vengono disposte, in qualunque modo, all'interno del quadrato centrale $2 \\times 2$ della tabella. La somma minima si realizza quindi con $3$ cifre $2$ e $13$ cifre $1$, per un totale di $19$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33482, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $n$ un intero maggiore o uguale a 2. Ci sono $n$ persone in fila indiana, ognuna delle quali è o un furfante (e mente sempre) oppure un cavaliere (e dice sempre la verità). Ogni persona, eccetto la prima, indica una delle persone davanti a lei e dichiara \"Questa persona è un furfante\" oppure \"Questa persona è un cavaliere\". Sapendo che ci sono strettamente più furfanti che cavalieri, dimostrare che assistendo alle dichiarazioni è possibile determinare per ognuna delle persone se si tratta di un furfante o di un cavaliere.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nDiremo che due persone sono dello stesso tipo se sono entrambe cavalieri o entrambe furfanti, che sono di tipo diverso altrimenti.\nNotiamo che, se la persona $A$ indica la persona $B$ e la dichiara cavaliere, allora $A$ e $B$ sono dello stesso tipo: entrambi cavalieri (se $A$ dice la verità) o entrambi furfanti (se $A$ mente). Viceversa, se $A$ dichiara $B$ furfante, significa che $A$ è un cavaliere e $B$ un furfante, oppure $A$ un furfante e $B$ un cavaliere: $A$ e $B$ sono di tipo diverso.\n\nNumeriamo le persone da $1$ a $n$ secondo l'ordine della fila, stabilendo che la persona $1$ sia quella che si trova più avanti (e non vede nessuno davanti a sé). Possiamo ora dedurre dalle dichiarazioni, per ciascuna persona dalla seconda all'$n$-esima, se essa è o no dello stesso tipo della persona numero $1$; in particolare, la dichiarazione di $2$ ci permette di determinarlo per $2$, le dichiarazioni di $2$ e $3$ assieme lo determinano per $3$, e così le dichiarazioni delle persone dalla permanent seconda alla $k$-esima determinano se quest'ultima è o meno dello stesso tipo della prima. Il motivo è il seguente: la persona $2$ indica necessariamente la prima, ed è del suo stesso tipo se la dichiara cavaliere, di tipo diverso altrimenti. La persona $3$ indica $1$ o $2$: di entrambi, grazie all'affermazione di $2$, conosciamo se il tipo è lo stesso di $1$, e di conseguenza possiamo dedurlo per $3$. Allo stesso modo procediamo nell'ordine fino alla persona $n$.\n\nSupponiamo che vi siano $m$ persone del tipo di $1$ (persona numero $1$ compresa) e $n-m$ persone dell'altro tipo. Sappiamo che devono essere presenti più furfanti che cavalieri, dunque $m$ sarà strettamente maggiore o strettamente minore di $n-m$.\n\nNel primo caso possiamo dedurre che $1$ e tutte le persone del suo tipo sono furfanti, gli altri cavalieri; viceversa nel secondo caso.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33483, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $\\Gamma$ la circonferenza ex-inscritta al triangolo $ABC$ opposta al vertice $A$, ossia la circonferenza tangente a $BC$ e ai prolungamenti dei lati $AB$ e $AC$ dalla parte di $B$ e di $C$. Sia $D$ il centro di $\\Gamma$ e siano $E$ ed $F$, rispettivamente, i punti di tangenza di $\\Gamma$ con i prolungamenti dei lati $AB$ ed $AC$. Sia $J$ l'intersezione tra i segmenti $BD$ ed $EF$.\nDimostrare che l'angolo $\\angle CJB$ è retto.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nLe rette $BD$ e $CD$ sono bisettrici degli angoli $\\widehat{EBC}$ e $\\widehat{BCF}$; detti $\\alpha, \\beta, \\gamma$ gli angoli interni del triangolo $ABC$ (rispettivamente in $A, B, C$), sappiamo perciò che $\\widehat{BCD} = \\frac{180^{\\circ} - \\gamma}{2}$ e $\\widehat{CBD} = \\frac{180^{\\circ} - \\beta}{2}$. Ne consegue (per differenza) che $\\widehat{BDC} = \\frac{\\beta + \\gamma}{2}$.\n\nIl triangolo $AEF$ è isoscele di base $EF$, dunque $\\widehat{AEF} = \\widehat{EFA} = \\frac{180^{\\circ} - \\alpha}{2} = \\frac{\\beta + \\gamma}{2} = \\widehat{BDC}$, e quindi il quadrilatero $D J C F$ è inscrittibile in una circonferenza.\n\nD'altra parte, poiché l'angolo $\\widehat{DFA}$ è retto (dato che $AF$ è tangente alla circonferenza $\\Gamma$) ciò implica che l'angolo $\\widehat{CJD}$, supplementare di $\\widehat{DFC}$, sia anch'esso retto. Questo implica ovviamente anche che l'angolo $\\widehat{CJB}$ è retto.\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33484, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABC$ un triangolo con baricentro $G$. Sia $D \\neq A$ un punto sulla retta $AG$ tale che $AG = GD$, e sia $E \\neq B$ un punto sulla retta $GB$ tale che $GB = GE$. Sia infine $M$ il punto medio di $AB$. Dimostrare che il quadrilatero $BMC D$ è inscrittibile in una circonferenza se e solo se $BA = BE$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nSia $N$ il punto medio di $BC$. $N$ è anche punto medio di $GD$, essendo $GD = AG$ per ipotesi, e $GN = \\frac{1}{2} AG$ per le note proprietà del baricentro. Allora $BDCG$ è un parallelogramma, avendo le diagonali che si bisecano, e $BDCM$ è un trapezio, con basi $BD$ e $CM$. Un trapezio è inscrittibile in una circonferenza se e solo se è isoscele. Poiché $BDCG$ è un parallelogramma, si ha $DC = BG$; quindi $BDCM$ è inscrittibile se e solo se $BM = BG$.\n\n![](attached_image_1.png)\n\nPer ipotesi $M$ è il punto medio di $AB$ e $G$ è il punto medio di $BE$, quindi $BM = BG$ se e solo se $BA = BE$; ciò conclude la dimostrazione.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33485, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDeterminare per quali $n \\geq 3$ è possibile trovare $n$ numeri interi positivi tali che a due a due abbiano almeno un fattore in comune diverso da 1, ma a tre a tre siano primi tra loro.\nSe si aggiunge la condizione che tutti i numeri interi siano minori di 5000, qual è il massimo valore di $n$ possibile?", "options": [], "answer": "All integers n at least three; with all numbers less than 5000, the maximum n is 4.", "solution": "Solution:\n\nÈ possibile per tutti gli interi positivi $n \\geq 3$. Si associ ad ogni coppia di interi $\\{i, j\\}$ con $1 \\leq i < j \\leq n$ un numero primo $p_{ij} = p_{ji}$ in modo tale che a coppie distinte siano associati primi distinti.\nSi definisca poi, per $1 \\leq i \\leq n$, $a_{i}$ come il prodotto di tutti i numeri primi $p_{ij}$ con $i$ fissato e $j$ variabile fra tutti i numeri da $1$ a $n$ diversi da $i$. Allora i numeri $a_{i}$ soddisfano le proprietà richieste. Infatti, il numero primo $p_{ij}$ divide solo $a_{i}$ ed $a_{j}$ e pertanto il massimo comune divisore fra $a_{i}$ ed $a_{j}$ è uguale a $p_{ij}$, mentre non c'è nessun numero primo che divida tre dei numeri $a_{1}, \\ldots, a_{n}$.\n\nLa risposta alla seconda domanda è $4$. Per $n = 4$ si possono prendere i numeri $a_{1} = 2 \\cdot 3 \\cdot 5$, $a_{2} = 2 \\cdot 7 \\cdot 11$, $a_{3} = 3 \\cdot 7 \\cdot 13$, $a_{4} = 5 \\cdot 11 \\cdot 13$. Per $n = 5$, invece, non è possibile, e a maggior ragione non è possibile per $n > 5$. Infatti, se $a_{1}, \\ldots, a_{5}$ soddisfacessero le condizioni date, allora per ogni coppia $\\{a_{i}, a_{j}\\}$ ci sarebbe un numero primo $p_{ij}$ che divide sia $a_{i}$ che $a_{j}$, e tutti questi numeri primi dovrebbero essere distinti. Pertanto ogni numero dovrebbe essere divisibile per almeno $4$ numeri primi distinti, ed ogni numero primo dovrebbe dividere al più due dei numeri $a_{i}$. In particolare, il numero primo $2$ e il numero primo $3$ potrebbero dividere ciascuno al massimo $2$ dei numeri $a_{i}$, quindi almeno uno degli $a_{i}$ non sarebbe divisibile né per $2$ né per $3$. Tale numero, essendo il prodotto di almeno quattro numeri primi distinti, dovrebbe essere maggiore o uguale a $5 \\cdot 7 \\cdot 11 \\cdot 13 = 5005$, contraddicendo l'ipotesi.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33486, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDeterminare tutte le coppie di numeri interi positivi $\\left(a, n\\right)$ con $a \\geq n \\geq 2$ per cui il numero $(a+1)^{n}+a-1$ è una potenza di $2$.", "options": [], "answer": "a=4, n=3", "solution": "Solution:\n\nSe sviluppiamo $(a+1)^{n}+a-1$ usando il binomio di Newton, otteniamo:\n$$\na^{n}+\\cdots+\\frac{n(n-1)}{2} a^{2}+n a+1+a-1=a^{n}+\\cdots+\\frac{n(n-1)}{2} a^{2}+(n+1) a.\n$$\nQuindi, siccome tutti i termini sono divisibili per $a$, e siccome $(a+1)^{n}+a-1$ è una potenza di $2$, anche $a$ è una potenza di $2$. Chiamiamo $a=2^{b}$ e $(a+1)^{n}+a-1=2^{c}$. Dalla condizione $a \\geq 2$ ricaviamo che $b \\geq 1$. Inoltre, dalla condizione $n \\geq 2$ ricaviamo anche che $2^{c}>a^{2}=2^{2b}$, e quindi $c>2b$.\nOsserviamo che tutti i termini in $(\\star)$, eccetto al più l'ultimo, sono divisibili per $a^{2}=2^{2b}$.\nDato che $c>2b, 2^{c}$ è divisibile per $2^{2b}$, e quindi, per differenza, anche $(n+1) a$ lo è. Dato che $a=2^{b}$, ne segue che $2^{b}$ divide $n+1$, ovvero che $n+1=2^{b} \\cdot m=a m$ per qualche $m$ intero positivo. Dalla condizione $a \\geq n \\geq 2$, l'unico valore possibile per $m$ è $m=1$, e quindi $n=a-1=2^{b}-1$. In particolare, $b$ non può assumere il valore $1$, altrimenti $n=1$, e quindi $b>1$, da cui $a \\geq 4$ e $n=a-1 \\geq 3$. Dall'ultima disuguaglianza segue che $2^{c}>a^{3}$, e quindi $c>3b$.\nRiscriviamo $(a+1)^{n}+a-1$ usando le informazioni raccolte:\n$$\n\\begin{aligned}\n(a+1)^{n}+a-1 & =a^{n}+\\cdots+\\frac{n(n-1)(n-2)}{6} a^{3}+\\frac{n(n-1)}{2} a^{2}+(n+1) a= \\\\\n& =2^{nb}+\\cdots+\\frac{\\left(2^{b}-1\\right)\\left(2^{b}-2\\right)\\left(2^{b}-3\\right)}{6} 2^{3b}+\\frac{\\left(2^{b}-1\\right)\\left(2^{b}-2\\right)}{2} 2^{2b}+2^{2b}\n\\end{aligned}\n$$\nTutti i termini, eccetto al più gli ultimi due, sono divisibili per $2^{3b}$; inoltre anche $2^{c}$ è divisibile per $2^{3b}$, e quindi anche $\\frac{\\left(2^{b}-1\\right)\\left(2^{b}-2\\right)}{2} 2^{2b}+2^{2b}=\\left(2^{b}-1\\right)\\left(2^{b-1}-1\\right) 2^{2b}+2^{2b}$ lo è.\nNe segue che $\\left(2^{b}-1\\right)\\left(2^{b-1}-1\\right)+1=2^{2b-1}-2^{b}-2^{b-1}+2$ è divisibile per $2^{b}$, ma questo è possibile solo quando $b=2$: se $b>2$, infatti, tutti i termini dell'espressione eccetto l'ultimo sono divisibili per $4$, e quindi la somma non risulta divisibile per $4$ (e quindi neppure per $2^{b}$).\nL'unico caso rimasto è $b=2$, da cui $a=4$ e $n=3$. In questo caso, una verifica elementare mostra che $(a+1)^{n}+a-1=128=2^{7}$, quindi questa è una soluzione.\nIn definitiva, c'è un'unica soluzione: $a=4, n=3$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33487, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nNel trapezio $ABCD$ i lati $AB$ e $CD$ sono paralleli, gli angoli $\\widehat{ABC}$ e $\\widehat{BAD}$ sono acuti. Dimostrare che è possibile dividere il triangolo $ABC$ in 4 triangoli disgiunti $X_{1}, \\ldots, X_{4}$ e il triangolo $ABD$ in 4 triangoli disgiunti $Y_{1}, \\ldots, Y_{4}$ tali che i triangoli $X_{i}$ e $Y_{i}$ siano congruenti per ogni $i$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nSia $D^{\\prime}$ il simmetrico di $D$ rispetto ad $AB$, e sia $E$ intersezione fra la retta $CD^{\\prime}$ e la retta $AB$. Dato che gli angoli $\\widehat{BAD}, \\widehat{CBA}$ sono acuti, $E$ giace all'interno del segmento $AB$. Inoltre dato che $C$ e $D^{\\prime}$ sono equidistanti da $AB$, si ha $CE = ED^{\\prime}$.\n\nSi traccino per $E$ le rette $r_{1} \\parallel AC$ e $r_{2} \\parallel AD^{\\prime}$, e denotati con $G$ l'intersezione fra $r_{1}$ e $AD^{\\prime}$, $F$ l'intersezione fra $r_{2}$ e $AC$, per costruzione risulta\n$$\nAEF = EAG, \\quad CEF = ED^{\\prime}G.\n$$\n![](attached_image_1.png)\n\nAnalogamente si traccino per $E$ le rette $r_{3} \\parallel BD^{\\prime}$ e $r_{4} \\parallel BC$, e denotati con $M$ l'intersezione fra $r_{3}$ e $BC$, $H$ l'intersezione fra $r_{4}$ e $BD^{\\prime}$, risulta\n$$\nCEM = ED^{\\prime}H, \\quad BEM = EBH.\n$$\n\nSiano infine $O, N$ i simmetrici di $H, G$ rispetto ad $AB$ e la scelta\n$$\n\\begin{gathered}\nX_{1} = AEF, \\quad X_{2} = CEF, \\quad X_{3} = CEM, \\quad X_{4} = BEM \\\\\nY_{1} = EAN, \\quad Y_{2} = EDN, \\quad Y_{3} = EDO, \\quad Y_{4} = EBO\n\\end{gathered}\n$$\nverifica la tesi.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33488, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $h$ un numero intero positivo e sia $a_{n}$ la successione definita per ricorrenza nel modo seguente:\n$$\n\\begin{aligned}\na_{0} & =1 \\\\\na_{n+1} & = \\begin{cases}\\frac{a_{n}}{2} & \\text{ se } a_{n} \\text{ è pari } \\\\\na_{n}+h & \\text{ se } a_{n} \\text{ è dispari.}\\end{cases}\n\\end{aligned}\n$$\n\n(Ad esempio, se $h=27$ si ha: $a_{1}=28, a_{2}=14, a_{3}=7, a_{4}=34, a_{5}=17, a_{6}=44, \\ldots$)\n\nPer quali valori di $h$ esiste $n>0$ per cui $a_{n}=1$ ?", "options": [], "answer": "All positive odd integers", "solution": "Solution:\n\nI valori cercati sono tutti e soli gli interi positivi dispari. Infatti, se $h$ è pari, allora $a_{1}=1+h$ è dispari, quindi $a_{2}=1+2 h$ è dispari e così via, quindi tutti i numeri $a_{n}=1+n h$ sono dispari e maggiori di 1 .\nSe invece $h$ è dispari, osserviamo che tutti i termini della successione sono o interi positivi minori o uguali ad $h$ oppure interi positivi pari maggiori di $h$ e minori o uguali di $2 h$. Una dimostrazione semplice di questo fatto si può ottenere utilizzando il principio di induzione. Come dato iniziale, si ha che $a_{0}=1$, quindi è un intero positivo minore o uguale ad $h$. Supposto che la tesi sia vera per il numero $a_{n}$, dimostriamola per $a_{n+1}$ : se $a_{n}$ è dispari e minore o uguale ad $h$, allora $a_{n+1}=a_{n}+h$ è pari, maggiore di $h$ e minore o uguale a $2 h$; se invece $a_{n}$ è pari e $a_{n} \\leq 2 h$, allora $a_{n+1}=\\frac{a_{n}}{2} \\leq h$.\nNe segue che la successione dei numeri $a_{n}$ può assumere solo un numero finito di valori. Poiché la successione è infinita, esisteranno due indici $r0$, distinguendo due casi:\n- $a_{r} \\leq h$; allora non si può avere $a_{r}=a_{r-1}+h$ o $a_{s}=a_{s-1}+h$, perché in tal caso $a_{r-1}$ o $a_{s-1}$ non sarebbero positivi, contro quanto affermato precedentemente. Pertanto $a_{r-1}=a_{s-1}=2 a_{r}$ e dunque si ha un'uguaglianza fra due termini della successione in cui il primo termine ha un indice minore di $r$, assurdo;\n- $a_{r}$ pari, $h2 h$ o $a_{s-1}>2 h$, contro quanto affermato precedentemente. Pertanto $a_{r-1}=a_{s-1}=a_{r}-h$, e di nuovo si ha l'assurdo di un'uguaglianza fra due termini della successione in cui il primo termine ha un indice minore di $r$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33489, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $x_{0}, x_{1}, x_{2}, \\ldots$ una successione di numeri razionali definita per ricorrenza nella maniera seguente: $x_{0}$ è un numero razionale qualunque, e, per $n \\geq 0$,\n\n$$\nx_{n+1}= \\begin{cases}\\left|\\frac{x_{n}}{2}-1\\right| & \\text { se il numeratore di } x_{n} \\text { è pari }, \\\\ \\left|\\frac{1}{x_{n}}-1\\right| & \\text { se il numeratore di } x_{n} \\text { è dispari },\\end{cases}\n$$\n\ndove per numeratore di un numero razionale si intende quello della frazione ridotta ai minimi termini. Dimostrare che per ogni valore di $x_{0}$ :\n(a) la successione contiene solo un numero finito di termini distinti tra loro;\n(b) la successione contiene esattamente uno tra i numeri 0 e $2 / 3$ (ovvero: o esiste un indice $k$ tale che $x_{k}=0$, oppure esiste un indice $m$ tale che $x_{m}=2 / 3$, ma non esistono entrambi).", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\n(a) Scriviamo ogni termine della successione come frazione ridotta ai minimi termini, $x_{n}=\\frac{p_{n}}{q_{n}}$, e consideriamo una nuova successione $y_{n}=\\max \\left\\{p_{n}, q_{n}\\right\\}$. Vogliamo dimostrare che la successione $y_{n}$ è debolmente decrescente, ossia che $y_{n+1} \\leq y_{n}$ per ogni $n \\geq 0$. Questo implica il punto (a), in quanto ne deriva che $p_{n}, q_{n} \\leq y_{n} \\leq y_{0}$, e c'è solo una quantità finita di termini distinti che appartengono alla successione $x_{n}$, perché c'è solo un numero finito di numeri razionali con numeratore e denominatore limitati da $y_{0}$. Per dimostrare la disuguaglianza $y_{n+1} \\leq y_{n}$ distinguiamo due casi:\n- se $p_{n}$ è pari, allora $x_{n+1}=\\frac{\\left|p_{n} / 2-q_{n}\\right|}{q_{n}}$; osserviamo che quest'ultima frazione è ridotta ai minimi termini, perché $\\operatorname{MCD}\\left(p_{n} / 2-q_{n}, q_{n}\\right)=\\operatorname{MCD}\\left(p_{n} / 2, q_{n}\\right)=1$, dal momento che $p_{n} / q_{n}$ è ridotta ai minimi termini. Notiamo inoltre che se $a, b$ sono due numeri positivi si ha $|a-b| \\leq \\max \\{a, b\\}$. Ne segue $y_{n+1}=\\max \\left\\{\\left|p_{n} / 2-q_{n}\\right|, q_{n}\\right\\} \\leq \\max \\left\\{p_{n} / 2, q_{n}\\right\\} \\leq \\max \\left\\{p_{n}, q_{n}\\right\\}=y_{n}$.\n- se $p_{n}$ è dispari, $x_{n+1}=\\frac{\\left|q_{n}-p_{n}\\right|}{p_{n}}$. Come prima la frazione è ridotta ai minimi termini, e abbiamo $y_{n+1}=\\max \\left\\{\\left|q_{n}-p_{n}\\right|, p_{n}\\right\\} \\leq \\max \\left\\{p_{n}, q_{n}\\right\\}=y_{n}$.\n\n(b) Osserviamo che, siccome la successione $x_{n}$ contiene solo un numero finito di termini distinti, ad un certo punto uno di essi si ripeterà, e la successione sarà periodica da quel punto in poi.\nDimostriamo intanto che i valori 0 e $2 / 3$ non possono esistere entrambi. Se il valore 0 compare per primo, per esempio $x_{k}=0$, allora $x_{k+1}=1, x_{k+2}=0$, e così via, per cui il valore $2 / 3$ non può comparire. Similmente, se il valore $2 / 3$ compare per primo, per esempio $x_{m}=2 / 3$, allora $x_{m+1}=2 / 3, x_{m+2}=2 / 3$, e così via, per cui il valore 0 non può comparire.\nDimostriamo ora che almeno uno dei due termini 0 e $2 / 3$ deve comparire. A questo scopo supponiamo che 0 non compaia, e facciamo vedere che allora deve comparire $2 / 3$. Osserviamo innanzitutto che, se non compare 0, allora non compare neanche 1 (se $x_{n}=1$ allora $x_{n+1}=0$).\nTrattandosi di numeri interi positivi, la disuguaglianza $y_{n+1} \\leq y_{n}$ può essere una disuguaglianza stretta solo per un numero finito di casi, in quanto infiniti casi di disuguaglianza stretta farebbero scendere il valore di $y_{n}$ sotto lo zero. Esaminando i vari casi, abbiamo\n(1) $p_{n}>q_{n}$ e $p_{n}$ pari: allora $y_{n}=p_{n}$ mentre $y_{n+1}=\\max \\left\\{\\left|p_{n} / 2-q_{n}\\right|, q_{n}\\right\\}q_{n}$ e $p_{n}$ dispari;\n(4) $p_{n}0$ tale che $x_{n_{0}+k}=x_{n_{0}}$. Dall'equazione $x_{n+1}=\\frac{\\left|p_{n} / 2-q_{n}\\right|}{q_{n}}=\\frac{q_{n}-p_{n} / 2}{q_{n}}$ è facile dimostrare, per esempio per induzione, che $p_{n_{0}+k}=\\frac{2^{k}-(-1)^{k}}{3 \\cdot 2^{k-1}} q_{n_{0}}+\\frac{(-1)^{k}}{2^{k}} p_{n_{0}}$. Sapendo infine che $p_{n_{0}+k}=p_{n_{0}}$, otteniamo l'equazione\n$$\n\\frac{2^{k}-(-1)^{k}}{3 \\cdot 2^{k-1}} q_{n_{0}}+\\frac{(-1)^{k} p_{n_{0}}}{2^{k}}=p_{n_{0}} \\Rightarrow \\frac{2^{k}-(-1)^{k}}{3 \\cdot 2^{k-1}} q_{n_{0}}=p_{n_{0}}\\left(\\frac{2^{k}-(-1)^{k}}{2^{k}}\\right) \\Rightarrow \\frac{p_{n_{0}}}{q_{n_{0}}}=\\frac{2}{3},\n$$\ncome voluto.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33490, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDato un triangolo isoscele $ABC$ con $AB = AC$ e $\\widehat{BAC} < 60^\\circ$, sia $D$ il punto su $AC$ tale che $\\widehat{DBC} = \\widehat{BAC}$, sia $E$ l'intersezione dell'asse di $BD$ con la retta parallela a $BC$ passante per $A$, e sia $F$ il punto sulla retta $AC$, dalla parte di $A$ rispetto a $C$, tale che la lunghezza di $FA$ sia il doppio della lunghezza di $AC$.\nInfine, siano $r$ la perpendicolare ad $AB$ condotta da $F$, $s$ la perpendicolare ad $AC$ condotta da $E$, e $t$ la retta $BD$. Dimostrare che:\n(a) le rette $EB$ e $AC$ sono parallele;\n(b) le rette $r$, $s$ e $t$ concorrono.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nSi ponga, per comodità di notazione, $\\overline{BAC} = \\alpha$ e $\\widehat{ABC} = \\widehat{ACB} = \\beta$.\n\nSi tracci la circonferenza circoscritta al triangolo $BDA$ e sia $E'$ la sua intersezione con la parallela a $BC$ passante per $A$; mostreremo che $E'$ si trova sull'asse di $BD$, e deve dunque coincidere con $E$. Abbiamo $\\widehat{BAD} = \\widehat{BE'D} = \\alpha$ (entrambi insistono su $BD$), $\\widehat{E'DB} = \\widehat{E'AB} = \\widehat{ABC} = \\beta$ (l'ultima uguaglianza segue dal parallelismo delle rette $E'A$ e $BC$); quindi il triangolo $BE'D$ è simile al triangolo $BAC$, perciò è isoscele. Ne segue che $E'$ si trovi sull'asse della base $BD$,\n\n![](attached_image_1.png)\n\ncome voluto. Inoltre abbiamo così ottenuto che $\\widehat{BEA}$ debba essere supplementare ad $\\widehat{ADB}$, ovvero uguale a $\\beta$. Ciò dimostra il parallelismo fra la retta $EB$ e la retta $AC$.\n\nSia ora $P$ il punto d'intersezione tra le rette $r$ ed $s$, $Q$ il punto d'intersezione tra le rette $r$ e $t$; chiamiamo $H$ la proiezione di $F$ sulla retta $AB$. Per costruzione, la retta $r$ è perpendicolare alla retta $AB$, mentre la retta $s$ è perpendicolare ad $AC$, quindi alla sua parallela $BE$; in altre parole, gli angoli $\\widehat{BEP}$ e $\\widehat{BHP}$ sono retti, quindi il quadrilatero $BEHP$ è ciclico. Basterebbe mostrare che $Q$ si trova sulla circonferenza circoscritta a $BEHP$ per concludere che $P$ e $Q$ coincidono (dato che entrambi sono punti sulla retta $r$ diversi da $H$), da cui la concorrenza delle rette $r$, $s$ e $t$.\n\nL'angolo $\\widehat{BQH}$, dato che $\\widehat{BHQ}$ è retto, vale $90^\\circ - (\\widehat{ABC} - \\widehat{CBD}) = 90^\\circ + \\alpha - \\beta$. Si noti che il quadrilatero $AEFH$ è ciclico: $\\widehat{AHF}$ è retto per costruzione; $EA$ è congruente a $BC$, $AF$ è il doppio di $AC$, $\\widehat{EAF} = \\beta$, e dunque il triangolo $EAF$ è simile al triangolo formato da $A$, $B$ e dal piede dell'altezza di $ABC$ uscente da $A$, dunque anche l'angolo $\\widehat{FEA}$ è retto. Osservando che sia $\\widehat{FEH}$ che $\\widehat{FAH}$ insistono sull'arco $FH$, abbiamo mostrato $\\widehat{FEH} = \\widehat{FAH} = \\alpha$. Otteniamo di conseguenza $\\widehat{BEH} = \\widehat{BEA} + \\widehat{AEF} - \\widehat{FEH} = \\beta + 90^\\circ - \\alpha$; ovvero gli angoli $\\widehat{BQH}$ e $\\widehat{BEH}$ sono supplementari, quindi il quadrilatero $BQHE$ è ciclico. Abbiamo così dimostrato che $Q$ appartiene alla circonferenza circoscritta a $BEHP$, da cui la tesi.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33491, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDue maghi si esibiscono nel seguente numero. All'inizio il primo mago rinchiude il secondo mago in una cabina dove non possa né vedere né sentire nulla. Per iniziare il gioco, il primo mago invita Daniele, un membro del pubblico, a porre su ogni casella di una scacchiera $n \\times n$, a propria discrezione, una pedina bianca o nera. Dopodiché chiede a Daniele di indicargli una casella $C$ a sua scelta. A questo punto, il primo mago sceglie una casella $D$ (non necessariamente diversa da $C$) e sostituisce la pedina che si trova su $D$ con una dell'altro colore (bianca con nera o nera con bianca).\n\nViene quindi aperta la cabina in cui era rinchiuso il secondo mago. Osservando la scacchiera, il secondo mago riesce a indovinare qual è la casella $C$. Per quali $n$ i due maghi possono attuare una strategia tale che il loro numero riesca sempre?", "options": [], "answer": "Exactly when n is a power of two.", "solution": "Solution:\n\nRisolveremo un problema leggermente più generale: supponiamo che la scacchiera possa avere un numero qualunque $N$ di caselle, non necessariamente un quadrato. Mostreremo che i maghi hanno una strategia se e solo se $N$ è potenza di due. Nel caso particolare $N = n^{2}$, segue che $n$ deve essere potenza di due.\n\nSe c'è una strategia, allora $N$ è potenza di due. Contiamo il numero $D_{c}$ delle disposizioni di pedine che il secondo mago associa a una determinata casella $c$. Da ogni possibile disposizione iniziale il primo mago può raggiungere una di queste tramite precisamente una modifica, quindi ogni possibile disposizione deve essere raggiungibile partendo da una delle disposizioni associate a $c$ e cambiando precisamente una pedina. Siccome ci sono $N$ possibili cambi di pedina, $D_{c} \\geq 2^{N} / N$. D'altro canto la somma dei numeri $D_{c}$ al variare di $c$ fra le $N$ possibili caselle è minore di o uguale a $2^{N}$. Ne segue che $D_{c} = 2^{N} / N$ per ogni casella $c$, quindi $N$ divide $2^{N}$.\n\nSe $N$ è potenza di due, allora c'è una strategia. Per $N = 1$ il secondo mago non può sbagliare. Per $N = 2$, chiamiamo le due caselle $x$ e $y$: i maghi si accordano per avere nella casella $x$ una pedina bianca se Daniele ha scelto $x$, e una pedina nera se Daniele ha scelto $y$. Ora, basta dimostrare che se i maghi hanno una strategia per $N = a$ e per $N = b$, allora hanno una strategia per $N = ab$. La strategia consiste nell'immaginare le caselle arrangiate in una griglia $a \\times b$ - con $a$ righe e $b$ colonne - e stipulare che una riga o colonna è bianca se contiene un numero pari di pedine bianche, nera altrimenti. In questo modo, cambiando il colore di una pedina, cambia il colore precisamente della riga e della colonna su cui questa si trova. Il primo mago determina la riga e la colonna sulle quali si trova la casella scelta da Daniele, e usa le strategie per $N = a$ e $N = b$ sui colori delle righe e delle colonne rispettivamente, decide quindi di cambiare il colore di precisamente una riga e una colonna, e sostituisce la pedina che si trova alla loro intersezione. Il secondo mago considera i colori delle righe e delle colonne, e applicando le strategia dei casi $N = a$ e $N = b$ determina su che riga e su che colonna deve trovarsi la casella scelta da Daniele.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33492, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDeterminare tutte le coppie $\\{a, b\\}$ di interi positivi con la seguente proprietà: comunque si colorino gli interi positivi con due colori $A$ e $B$, esistono sempre due interi positivi del colore $A$ con differenza $a$ o due interi positivi del colore $B$ con differenza $b$.", "options": [], "answer": "All pairs where a=2^h·(odd), b=2^k·(odd) with h≠k; equivalently, the largest power of two dividing a and b is different.", "solution": "Solution:\n\nLe coppie che soddisfano la condizione del testo sono quelle del tipo $a=2^{h} \\cdot (2x+1)$, $b=2^{k} \\cdot (2y+1)$ dove $h \\neq k$, ovvero le coppie tali che la massima potenza di $2$ che divide i due numeri è diversa.\n\nPer prima cosa, mostriamo che per le coppie NON di questo tipo, ovvero del tipo $a=2^{h} \\cdot (2x+1)$, $b=2^{h} \\cdot (2y+1)$ esiste una colorazione in cui non ci sono né due numeri del colore $A$ distanti $a$ né due numeri del colore $B$ distanti $b$. La colorazione è la seguente:\n$$\n\\underbrace{A A A \\ldots A A}_{2^{h}} \\underbrace{B B B \\ldots B B}_{2^{h}} \\underbrace{A A A \\ldots}_{2^{h}}\n$$\nInfatti, in questa sequenza due numeri a distanza $2^{h}$ hanno sempre colore diverso, i numeri a distanza $2 \\cdot 2^{h}$ hanno sempre colore uguale, i numeri a distanza $3 \\cdot 2^{h}$ hanno sempre colore diverso, e così via; in particolare, quindi, numeri aventi distanza un multiplo dispari di $2^{h}$ hanno sempre colore diverso, che è quello che volevamo dimostrare.\n\nDimostriamo ora che nel caso $a=2^{h} \\cdot (2x+1)$, $b=2^{k} \\cdot (2y+1)$ con $h1$ (si osservi che $\\Delta \\neq 0$, quindi $R \\neq 0$). La risposta che otteniamo, quindi, è\n$$\nR' = (\\Sigma-y_{t}) u + y_{t} d = \\Sigma u - y_{t} \\Delta = \\Sigma u - y_{t}(-1)^{t} R \\text{.}\n$$\nDa questa risposta possiamo desumere la classe di $y_{t}(-1)^{t} R$ modulo $\\Sigma$. Siccome $R$ e $\\Sigma$ sono primi fra loro, la classe di $y_{t}(-1)^{t}$ modulo $\\Sigma$ è anch'essa univocamente determinata. Per costruzione, però, i numeri $y_{i}(-1)^{i}$ sono a due a due non congruenti modulo $\\Sigma$, di conseguenza, conoscendo la classe di $y_{t}(-1)^{t}$, possiamo desumere $t$. Noto $t$, è immediato calcolare $u$ dall'equazione per $R'$ scritta sopra, quindi $\\Delta$ da $R=(-1)^{t} \\Delta$, ed infine $d$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33494, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSiano date nel piano due circonferenze $\\gamma_{1}$ e $\\gamma_{2}$ di centri $A$ e $B$ rispettivamente, e intersecantesi in due punti $C$ e $D$. Si supponga che la circonferenza passante per $A$, $B$ e $C$ intersechi ulteriormente $\\gamma_{1}$ e $\\gamma_{2}$ in $E$ ed $F$ rispettivamente, e che l'arco $E F$ non contenente $C$ giaccia fuori dai due cerchi delimitati da $\\gamma_{1}$ e $\\gamma_{2}$. Dimostrare che l'arco $E F$ non contenente $C$ è bisecato dalla retta $C D$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nPer il teorema dell'angolo al centro, $\\widehat{C A D}=2 \\widehat{C E D}$. Poiché per simmetria $\\widehat{C A B}=\\widehat{D A B}$, si ha $\\widehat{C A B}=\\widehat{C E D}$. Inoltre, $\\widehat{C A B}=\\widehat{C E B}$, perché entrambi insistono sull'arco $C B$, e quindi $\\widehat{C E D}=\\widehat{C E B}$. Ne segue che $E, D$ e $B$ sono allineati (perché $D$ e $B$ giacciono dalla stessa parte della retta $C E$). Siccome gli archi $C B$ e $B F$ sono uguali, si ha $\\widehat{C E B}=\\widehat{B E F}$, quindi $D$ appartiene alla bisettrice di $\\widehat{C E F}$. Con un ragionamento analogo, si dimostra che $D$ appartiene alla bisettrice di $\\widehat{C F E}$, il che significa che $D$ è l'incentro del triangolo $C E F$. Dunque la retta $C D$ biseca\n\n![](attached_image_1.png)\nl'angolo $\\overparen{E C F}$, e quindi l'arco $E F$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33495, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nPer ogni intero $n \\geq 2$, determinare:\n\na. il più grande numero reale $c_{n}$ tale che\n$$\n\\frac{1}{1+a_{1}}+\\frac{1}{1+a_{2}}+\\ldots+\\frac{1}{1+a_{n}} \\geq c_{n}\n$$\nper ogni scelta dei numeri reali positivi $a_{1}, a_{2}, \\ldots, a_{n}$ tali che $a_{1} \\cdot a_{2} \\cdot \\ldots \\cdot a_{n}=1$;\n\nb. il più grande numero reale $d_{n}$ tale che\n$$\n\\frac{1}{1+2 a_{1}}+\\frac{1}{1+2 a_{2}}+\\ldots+\\frac{1}{1+2 a_{n}} \\geq d_{n}\n$$\nper ogni scelta dei numeri reali positivi $a_{1}, a_{2}, \\ldots, a_{n}$ tali che $a_{1} \\cdot a_{2} \\cdot \\ldots \\cdot a_{n}=1$.", "options": [], "answer": "c_n = 1 for all n >= 2; d_2 = 2/3 and d_n = 1 for all n >= 3", "solution": "Solution:\n\n(a) $c_{n}=1$ per ogni $n \\geq 2$.\nDimostriamo innanzitutto che per ogni $n \\geq 2$ si ha\n$$\n\\frac{1}{1+a_{1}}+\\frac{1}{1+a_{2}}+\\ldots+\\frac{1}{1+a_{n}} \\geq 1\n$$\nPer $n=2$, ponendo $a_{1}=a$ si ha $a_{2}=\\frac{1}{a}$ e l'espressione a sinistra della disuguaglianza si riduce a\n$$\n\\frac{1}{1+a}+\\frac{1}{1+\\frac{1}{a}}=\\frac{1}{1+a}+\\frac{a}{1+a}=1\n$$\nSupponiamo ora $n>2$. Il prodotto dei due numeri più piccoli fra $a_{1}, \\ldots, a_{n}$ è sicuramente minore o uguale di 1, altrimenti almeno uno di essi sarebbe maggiore di 1 e quindi il prodotto $a_{1} a_{2} \\cdots a_{n}$ sarebbe maggiore di 1. Senza perdita di generalità, possiamo supporre che $a_{1} a_{2} \\leq 1$. Sia $x=\\sqrt{\\frac{1}{a_{1} a_{2}}}$. Allora $x \\geq 1$ e si ha $(a_{1} x)(a_{2} x)=1$. Abbiamo\n$$\n\\frac{1}{1+a_{1}}+\\frac{1}{1+a_{2}}+\\ldots+\\frac{1}{1+a_{n}}>\\frac{1}{1+a_{1}}+\\frac{1}{1+a_{2}} \\geq \\frac{1}{1+a_{1} x}+\\frac{1}{1+a_{2} x}=1\n$$\nDimostriamo ora che 1 è il più grande numero reale che possa essere messo a destra della disuguaglianza, ovverosia che se $c>1$ la disuguaglianza non è vera per qualche scelta di $a_{1}, \\ldots, a_{n}$. Poniamo $a_{1}=a_{2}=\\cdots=a_{n-1}=y$, dove $y$ è un qualsiasi numero reale positivo tale che $y+1>\\frac{n-1}{c-1}$, e $a_{n}=y^{-(n-1)}$. Abbiamo, per $i=1, \\ldots, n-1$,\n$$\n\\frac{1}{1+a_{i}}=\\frac{1}{1+y}<\\frac{c-1}{n-1}\n$$\ne quindi\n$$\n\\left(\\frac{1}{1+a_{1}}+\\frac{1}{1+a_{2}}+\\ldots+\\frac{1}{1+a_{n-1}}\\right)+\\frac{1}{1+a_{n}}<(n-1) \\frac{c-1}{n-1}+1=c .\n$$\n\n(b) Si ha $d_{2}=\\frac{2}{3}$ e $d_{n}=1$ per ogni $n \\geq 3$.\nCominciamo con il caso $n=2$. Ponendo $s=a_{1}+a_{2}$ e tenendo conto che $a_{1} a_{2}=1$ il termine a sinistra della disuguaglianza diventa\n$$\n\\frac{2+2 s}{5+2 s}=1-\\frac{3}{5+2 s}\n$$\nQuesto termine assume il valore minimo quando $s$ è minimo. Poiché $a_{2}=\\frac{1}{a_{1}}$, si ha $s=a_{1}+\\frac{1}{a_{1}}$ è maggiore o uguale a 2, e che è uguale a 2 se e solo se $a_{1}=1$. Quindi la migliore disuguaglianza possibile si ottiene per $s=2$, ottenenendo il valore $d_{2}=\\frac{2}{3}$.\nIl resto della dimostrazione è analogo al caso precedente. Dimostriamo dapprima che $d_{n} \\geq 1$ per ogni $n \\geq 3$. Per $n=3$, la disuguaglianza\n$$\n\\frac{1}{1+2 a_{1}}+\\frac{1}{1+2 a_{2}}+\\frac{1}{1+2 a_{3}} \\geq 1\n$$\nè equivalente a\n$$\n3+4\\left(a_{1}+a_{2}+a_{3}\\right)+4\\left(a_{1} a_{2}+a_{2} a_{3}+a_{3} a_{1}\\right) \\geq 1+2\\left(a_{1}+a_{2}+a_{3}\\right)+4\\left(a_{1} a_{2}+a_{2} a_{3}+a_{3} a_{1}\\right)+8 a_{1} a_{2} a_{3},\n$$\nossia\n$$\na_{1}+a_{2}+a_{3} \\geq \\frac{8-2}{2}=3\n$$\nche è verificata per la nota disuguaglianza fra media aritmetica e media geometrica.\nSupponiamo ora $n>3$. Come precedentemente, possiamo supporre che $a_{1} a_{2} a_{3} \\leq 1$ e definiamo $x=\\sqrt{\\frac{1}{a_{1} a_{2} a_{3}}}$. Abbiamo $(a_{1} x)(a_{2} x)(a_{3} x)=1$ e dunque\n$$\n\\begin{aligned}\n& \\frac{1}{1+2 a_{1}}+\\frac{1}{1+2 a_{2}}+\\frac{1}{1+2 a_{3}}+\\ldots+\\frac{1}{1+2 a_{n}}>\\frac{1}{1+2 a_{1}}+\\frac{1}{1+2 a_{2}}+\\frac{1}{1+2 a_{3}} \\\\\n& \\geq \\frac{1}{1+2 a_{1} x}+\\frac{1}{1+2 a_{2} x}+\\frac{1}{1+2 a_{3} x} \\geq 1 .\n\\end{aligned}\n$$\nInfine, se $d$ è un qualsiasi numero maggiore di 1, poniamo $a_{1}=a_{2}=\\cdots=a_{n-1}=z$ dove $z$ è un qualsiasi numero reale positivo tale che $2 z+1>\\frac{d-1}{n-1}$, e $a_{n}=z^{-(n-1)}$. Abbiamo\n$$\n\\left(\\frac{1}{1+2 a_{1}}+\\frac{1}{1+2 a_{2}}+\\ldots+\\frac{1}{1+2 a_{n-1}}\\right)+\\frac{1}{1+2 a_{n}}<(n-1) \\frac{d-1}{n-1}+1=d .", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33496, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nDeterminare tutti gli interi positivi di tre cifre che sono uguali a 34 volte la somma delle loro cifre.", "options": [], "answer": "102, 204, 306, 408", "solution": "Solution:\nGli interi richiesti sono 102, 204, 306, 408.\n\nIndichiamo infatti con $a, b, c$, rispettivamente, la cifra delle centinaia, delle decine, delle unità di un intero di 3 cifre. La condizione data si traduce allora in $100a + 10b + c = 34(a + b + c)$, da cui, con semplici passaggi algebrici, si ricava che $11(2a - c) = 8b$.\n\nDa questa segue che $b$ deve essere un multiplo di 11, ma poiché $0 \\leq b \\leq 9$, l'unica possibilità è che sia $b = 0$, e di conseguenza anche $2a = c$. Sostituendo a $c$ i valori $1, 2, 3, 4$ si ottengono i 4 interi riportati, che si verifica facilmente che sono effettivamente soluzioni del problema. Per $c = 0$ o $c \\geq 5$ non si ottengono invece interi di 3 cifre.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33497, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLa pianta di una casa ha la forma di una L ottenuta affiancando in modo opportuno quattro quadrati il cui lato misura 10 metri. Le pareti laterali sono tutte alte 10 metri e il tetto della casa ha sei facce partenti dai sei muri laterali e inclinate di $30^{\\circ}$ rispetto ad un piano orizzontale.\nDeterminare il volume della casa (cioè del solido delimitato dalle sei facce del tetto, dai sei muri laterali e dal piano orizzontale).", "options": [], "answer": "2750/(3*sqrt(3)) cubic meters", "solution": "Solution:\nIl sottotetto visto dall'alto ha la forma della figura 1, poichè i punti di incontro delle varie facce del tetto sono equidistanti dagli spigoli della base poichè tutte le facce hanno la stessa inclinazione rispetto all'orizzontale.\nOsserviamo che possiamo trasformare il sottotetto come in figura 2 senza alterarne il volume. Basta quindi calcolare il volume di questa nuova figura. Osserviamo che la parte centrale della nuova figura è un prisma a base triangolare, con altezza $h_{pr} = 30$ metri. Il triangolo di base è isoscele con angoli alla base di $30^{\\circ}$ e base $b_{tr}$ lunga 10 metri. Quindi l'altezza $h_{tr}$ del triangolo misura $\\frac{5}{\\sqrt{3}}$ metri.\nIl volume del prisma è quindi:\n![](attached_image_1.png)\nFigura 1\n$$\nV_{pr}=\\frac{1}{2} b_{tr} h_{tr} h_{pr}=\\frac{750}{\\sqrt{3}}\\ m^{3}\n$$\nFigura 2\nLe due parti restanti del solido possono essere unite per formare una piramide a base quadrata con lato di base di 10 metri e altezza $h_{\\text{pir}}$ di $\\frac{5}{\\sqrt{3}}$ metri. Il volume della piramide è quindi:\n$$\nV_{\\text{pir}}=\\frac{1}{3} l^{2} h_{pir}=\\frac{500}{3 \\sqrt{3}}\\ m^{3}\n$$\nIl volume totale del sottotetto è:\n$$\nV_{tot}=V_{pr}+V_{pir}=\\frac{2750}{3 \\sqrt{3}}\\ m^{3}\n$$", "topic": "Geometry", "subtopic": "Solid Geometry" }, { "id": 33498, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nQual è il massimo numero intero positivo che ha lo stesso numero di cifre in base 10 e in base 16? (Le risposte sono espresse in base 10)\n\n(A) 1024\n(B) 99'999\n(C) 999\"999\n(D) 1“600”000\n(E) Nessuna delle precedenti", "options": [], "answer": "B", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33499, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nTre amici possiedono ciascuno tre gettoni.\nDopo ogni partita il vincitore riceve un gettone da ognuno degli altri due amici.\nQual è la probabilità che il gioco non si debba interrompere entro cinque partite poiché uno dei giocatori rimane senza gettoni?\n(A) $\\frac{2}{9}$\n(B) $\\frac{1}{6}$\n(C) $\\frac{1}{3}$\n(D) $\\frac{1}{2}$\n(E) $\\frac{2}{3}$", "options": [], "answer": "A", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33500, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia dato un quadrato $ABCD$ di lato unitario e siano $M, N$ due punti rispettivamente sui lati $AB$ e $AD$ tali che $AM = AN$. Quanto può valere, al massimo, l'area del quadrilatero $CDNM$?\n\n(A) $\\frac{1}{2}$\n(B) $\\frac{9}{16}$\n(C) $\\frac{19}{32}$\n(D) $\\frac{5}{8}$\n(E) $\\frac{2}{3}$", "options": [], "answer": "D", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33501, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSiano $a$, $b$, $c$ tre numeri positivi dispari distinti e minori di $100$. Quanto può essere, al massimo, il loro massimo comune divisore?\n\n(A) $7$\n(B) $11$\n(C) $19$\n(D) $25$\n(E) Nessuna delle risposte precedenti", "options": [], "answer": "C", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33502, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn un quadrilatero convesso $ABCD$ i lati $AB$, $BC$, $CD$ sono uguali. Inoltre $AC = BD = AD$. Quanto misura l'angolo in $D$?", "options": [], "answer": "72°", "solution": "$\\overline{\\text { SOLUZIONE }}$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33503, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDato un numero primo $p$, determinare tutte le coppie ordinate di numeri naturali $(m, n)$ che verificano l'equazione:\n$$\n\\frac{1}{m} + \\frac{1}{n} = \\frac{1}{p}\n$$", "options": [], "answer": "(m, n) = (p + 1, p + p^2), (2p, 2p), (p + p^2, p + 1). Equivalently, (m, n) = (p + d, p + p^2/d) where d ∈ {1, p, p^2}.", "solution": "SOLUZIONE", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33504, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn antiquario ha comprato una coppia di comodini per 1 milione e mezzo. Ne vende uno ad Aldo e uno a Berto per 1 milione l'uno.\n\nViene Carlo che li aveva visti in vetrina, ed è disposto ad acquistare la coppia per 3 milioni e mezzo.\n\nL'antiquario riesce a riacquistare i comodini da Aldo e Berto, pagandoli 1 milione e mezzo l'uno e li rivende a Carlo. Alla fine dei conti l'antiquario:\n\n(A) Ha perso mezzo milione\n(B) Ha fatto pari\n(C) Ha guadagnato mezzo milione\n(D) Ha guadagnato un milione\n(E) Nessuna delle precedenti", "options": [], "answer": "D", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33505, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $f$ una funzione reale di variabile reale che verifica le condizioni\n(i) $f(10+x)=f(10-x)$\n(ii) $f(20+x)=-f(20-x)$\nper ogni valore reale di $x$. Si dimostri che $f$ è dispari e periodica.\nSi ricorda che $f$ si dice dispari se $f(-x)=-f(x)$ per ogni $x$;\n$f$ si dice periodica se esiste $T>0$ tale che $f(x+T)=f(x)$ per ogni $x$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nSi ha: $f(20+x)=f(10+(10+x))=f(10-(10+x))=f(-x)$ dalla (i)\n\n$f(20+x)=-f(20-x)=-f(x)$ dalla (ii) e dalla precedente\n\nda cui $f(-x)=-f(x)$ per ogni $x$ e quindi $f$ è dispari.\n\nInoltre $f(40+x)=f(20+(20+x))=-f(20-(20+x))=-f(-x)=f(x)$\ne quindi essendo $f(40+x)=f(x)$ se ne deduce che $f$ è periodica.\n\nIl seguente grafico riporta un esempio di una funzione siffatta.\n\n![](attached_image_1.png)", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33506, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSi consideri il quadrante infinito in figura, dove tutti i quadratini hanno lato $1$. È possibile colorare di nero alcuni dei quadratini in modo che siano soddisfatte entrambe le seguenti proprietà?\n- Per ogni numero naturale $n$, il quadrato con vertice in $O$ e di lato $n$ (con i lati paralleli agli assi) ha un numero di quadratini neri maggiore del numero di quadratini bianchi.\n- Su ogni diagonale infinita di quadratini parallela a quella mostrata in figura, ci sono al più un numero finito di quadratini neri.\n\n![](attached_image_1.png)", "options": [], "answer": "Yes", "solution": "Solution:\n\nSì, è possibile. Per esempio, si colorino di nero:\n- il primo quadratino avente vertice in $O$;\n- i primi $2$ quadratini sulle due diagonali adiacenti alla diagonale centrale;\n- i primi $3$ quadratini sulle due diagonali adiacenti alle precedenti, e così via.\n\nÈ chiaro che ogni diagonale a $45^{\\circ}$ ha un numero finito di quadratini neri.\n\nInoltre il numero dei quadratini neri in un quadrato di lato $n$ con vertice nell'origine si può contare come segue:\n- se $n=2k$ è pari, il numero è\n$$\n1 + 2(2 + 3 + \\ldots + k - 1 + k + k + k - 1 + \\ldots + 2 + 1) = 2k^{2} + 2k - 1 > 2k^{2} = \\frac{1}{2} n^{2}\n$$\n- se $n=2k+1$ è dispari, il numero è:\n$$\n1 + 2(2 + 3 + \\ldots + k + k + 1 + k + \\ldots + 2 + 1) = 2k^{2} + 4k + 1 > 2k^{2} + 2k + \\frac{1}{2} = \\frac{1}{2} n^{2}\n$$\n\n![](attached_image_2.png)", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33507, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUna sbarra è costituita da un cilindro interno di acciaio di raggio $1~\\mathrm{cm}$ rivestito da uno strato omogeneo di gomma leggera di spessore costante. Sapendo che invertendo i materiali il peso della sbarra non cambierebbe, determinare lo spessore del rivestimento.\n\n(A) $1~\\mathrm{cm}$\n(B) $\\sqrt{2}~\\mathrm{cm}$\n(C) $(\\sqrt{2}-1)~\\mathrm{cm}$\n(D) Dipende dalla lunghezza della sbarra\n(E) Nessuna delle precedenti", "options": [], "answer": "C", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33508, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSi consideri il quadrante infinito in figura, dove tutti i quadratini hanno lato $1$. È possibile colorare di nero alcuni dei quadratini in modo che siano soddisfatte entrambe le seguenti proprietà?\n- Per ogni numero naturale $n$, il quadrato con vertice in $O$ e di lato $n$ (con i lati paralleli agli assi) ha un numero di quadratini neri maggiore del numero di quadratini bianchi.\n- Su ogni diagonale infinita di quadratini parallela a quella mostrata in figura, ci sono al più un numero finito di quadratini neri.\n\n![](attached_image_1.png)", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nSì, è possibile. Per esempio, si colorino di nero:\n- il primo quadratino avente vertice in $O$;\n- i primi $2$ quadratini sulle due diagonali adiacenti alla diagonale centrale;\n- i primi $3$ quadratini sulle due diagonali adiacenti alle precedenti, e così via.\n\nÈ chiaro che ogni diagonale a $45^{\\circ}$ ha un numero finito di quadratini neri.\n\nInoltre il numero dei quadratini neri in un quadrato di lato $n$ con vertice nell'origine si può contare come segue:\n- se $n=2k$ è pari, il numero è\n$$\n1 + 2(2 + 3 + \\ldots + k-1 + k + k + k-1 + \\ldots + 2 + 1) = 2k^{2} + 2k - 1 > 2k^{2} = \\frac{1}{2} n^{2}\n$$\n- se $n=2k+1$ è dispari, il numero è:\n$$\n1 + 2(2 + 3 + \\ldots + k + k+1 + k + \\ldots + 2 + 1) = 2k^{2} + 4k + 1 > 2k^{2} + 2k + \\frac{1}{2} = \\frac{1}{2} n^{2}\n$$\n\n![](attached_image_2.png)", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33509, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\n100 delegati sono riuniti in congresso. Non tutti portano la cravatta, ma si sa che comunque se ne scelgano due, almeno uno dei due la porta. Quanti sono i congressisti con cravatta?\n\n(A) Almeno 2, ma possono essere meno di 50\n(B) Esattamente 50\n(C) Più di 50, ma non si può dire esattamente quanti\n(D) La situazione descritta è impossible\n(E) Nessuna delle precedenti", "options": [], "answer": "E", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33510, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABCD$ un tetraedro generico di cui si conosce la lunghezza $a$ dello spigolo $AB$ e l'area $S$ della proiezione del tetraedro su un piano perpendicolare alla retta per $A$ e $B$.\nDeterminare il volume del tetraedro.", "options": [], "answer": "a*S/3", "solution": "Solution:\n\nSia $\\pi$ il piano passante per $A$ perpendicolare allo spigolo $AB$ e siano $C'$, $D'$ le proiezioni di $C$ e $D$ su $\\pi$. La proiezione del tetraedro $ABCD$ su $\\pi$ è il triangolo $AC'D'$.\n\n![](attached_image_1.png)\n\nIl volume del tetraedro $ABCD$ è uguale a quello del tetraedro $ABC'D$ in quanto i due tetraedri hanno la stessa base $ABD$ e i vertici $C$, $C'$ stanno su una parallela al piano di base. Allo stesso modo si vede che i tetraedri $ABC'D$ e $ABC'D'$ hanno lo stesso volume, avendo la stessa base $ABC'$ e vertici $D$, $D'$ su una parallela al piano di base. Ne segue che il volume di $ABCD$ è uguale a quello di $ABC'D'$; siccome $AB$ è perpendicolare a $\\pi$ tale volume è dato da $\\frac{1}{3} a S$.", "topic": "Geometry", "subtopic": "Solid Geometry" }, { "id": 33511, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nQual è la cifra delle unità del numero $2^{3^{4}}$ ?\n(A) 1\n(B) 2\n(C) 4\n(D) 6\n(E) 8", "options": [], "answer": "B", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33512, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $X$ l'insieme dei numeri naturali che in base dieci non si scrivono con una sola cifra ripetuta più volte. Per ogni $n \\in X$ definiamo $A_{n}$ come l'insieme dei numeri ottenuti permutando in tutti i modi possibili le cifre di $n$ e sia $d_{n}$ il massimo comune divisore di tutti i numeri di $A_{n}$. Ad esempio, se $n=1120$,\n$$\nA_{1120}=\\{112,121,211,1012,1021,1102,1120,1201,1210,2011,2101,2110\\}\n$$\ne $d_{1120}=1$ (112 e 121 sono primi fra loro). Si determini il massimo valore possibile di $d_{n}$.", "options": [], "answer": "81", "solution": "Solution:\n\nIl massimo comun divisore di due numeri divide anche la loro differenza. Se $A$ e $B$ sono due cifre distinte di $n$ con $A>B$, i due numeri $XXXAB$ e $XXXBA$ sono in $A_{n}$ ($XXX$ rappresenta una successione qualsiasi delle altre cifre di $n$). La loro differenza vale $9(A-B)$.\n\nIl valore massimo di $A-B$ è $9$, che si raggiunge solo se $A=9$ e $B=0$. Questo dimostra che $d_{n}$ è minore o uguale a $81$. Vediamo ora che esiste un intero $N$ tale che $d_{N}=81$. Un tale $N$ deve essere formato solo da cifre $9$ e $0$ (altrimenti si trovano $A$ e $B$ come sopra, con $A-B<9$, mentre $d_{N} \\leq 9(A-B)<81$) e deve essere esso stesso multiplo di $81$. Equivalentemente $N/9$ deve essere formato solo da cifre $1$ e $0$ e deve essere multiplo di $9$. Per il criterio di divisibilità per $9$, la somma delle cifre di $N/9$ deve essere multipla di $9$ e quindi $N/9$ deve possedere almeno $9$ cifre uguali a $1$.\n\nIl più piccolo intero in $X$ con queste proprietà è $1011111111$, quindi $N$ è almeno $9099999999$. D'altra parte se $N=9099999999$, si verifica facilmente che tutti i numeri di $A_{N}$ sono divisibili per $81$ e quindi $d_{N}=81$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33513, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUna sfera di raggio $r = 15~\\mathrm{cm}$ è appoggiata su due binari distanti fra loro $24~\\mathrm{cm}$ come in figura. Se la sfera fa una rotazione completa, di quanto avanza sui binari?\n\n(A) $24~\\mathrm{cm}$\n(B) $30~\\mathrm{cm}$\n(C) $15\\pi~\\mathrm{cm}$\n(D) $18\\pi~\\mathrm{cm}$\n(E) $30\\pi~\\mathrm{cm}$\n\n![](attached_image_1.png)\n", "options": [], "answer": "D", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33514, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUna sfera di raggio $r = 15~\\mathrm{cm}$ è appoggiata su due binari distanti fra loro $24~\\mathrm{cm}$ come in figura. Se la sfera fa una rotazione completa, di quanto avanza sui binari?\n(A) $24~\\mathrm{cm}$\n(B) $30~\\mathrm{cm}$\n(C) $15\\pi~\\mathrm{cm}$\n(D) $18\\pi~\\mathrm{cm}$\n(E) $30\\pi~\\mathrm{cm}$\n\n![](attached_image_1.png)", "options": [], "answer": "D", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33515, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nQuale fra questi numeri non è il prodotto di un quadrato perfetto per un cubo perfetto?\n(A) $900$\n(B) $961$\n(C) $968$\n(D) $972$\n(E) $980$", "options": [], "answer": "E", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33516, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nFissiamo un punto $O$ nell'intersezione di due linee di un foglio a quadretti e indichiamo le quattro direzioni parallele alle linee come Nord, Sud, Est, Ovest (il Nord in alto). Muoviamoci, partendo da $O$ di un quadretto verso Est, poi due verso Nord, tre verso Ovest, quattro verso Sud, cinque verso Est e così via. Dopo $1997$ passi, in che punto ci troviamo rispetto al punto iniziale $O$?\n\n(A) $1996$ quadretti a Nord di $O$\n(B) $998$ quadretti a Sud e $999$ quadretti a Est di $O$\n(C) $999$ quadretti a Ovest e $998$ quadretti a Nord di $O$\n(D) $999$ quadretti a Nord e $999$ quadretti a Ovest di $O$\n(E) $998$ quadretti a Est e $998$ quadretti a Sud di $O$\n\n![](attached_image_1.png)", "options": [], "answer": "B", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33517, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nFissiamo un punto $O$ nell'intersezione di due linee di un foglio a quadretti e indichiamo le quattro direzioni parallele alle linee come Nord, Sud, Est, Ovest (il Nord in alto). Muoviamoci, partendo da $O$ di un quadretto verso Est, poi due verso Nord, tre verso Ovest, quattro verso Sud, cinque verso Est e così via. Dopo $1997$ passi, in che punto ci troviamo rispetto al punto iniziale $O$?\n\n(A) $1996$ quadretti a Nord di $O$\n(B) $998$ quadretti a Sud e $999$ quadretti a Est di $O$\n(C) $999$ quadretti a Ovest e $998$ quadretti a Nord di $O$\n(D) $999$ quadretti a Nord e $999$ quadretti a Ovest di $O$\n(E) $998$ quadretti a Est e $998$ quadretti a Sud di $O$\n\n![](attached_image_1.png)", "options": [], "answer": "B", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33518, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nTre paia di calzini, uno rosso, uno blu e uno verde, sono stesi in fila. Sapendo che due calzini dello stesso colore non sono vicini uno all'altro, quante successioni di colori si possono avere?\n(A) 15\n(B) 24\n(C) 30\n(D) 36\n(E) Nessuna delle precedenti", "options": [], "answer": "C", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33519, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSe $x$ è un numero reale positivo si denoti con $[x]$ la parte intera di $x$, cioè il massimo intero $n \\leq x$. Si calcoli la somma $\\sum_{n=1}^{1000000} [\\sqrt{n}] = [\\sqrt{1}] + [\\sqrt{2}] + \\ldots + [\\sqrt{999999}] + [\\sqrt{1000000}]$.\n\n[Lo studente può utilizzare, se crede, la seguente formula: $\\sum_{i=1}^k i^2 = \\frac{k(k+1)(2k+1)}{6}$, la cui dimostrazione non è richiesta.]", "options": [], "answer": "666167500", "solution": "Solution:\n\nSi ha $[\\sqrt{n}] = k$ se e solo se $k^2 \\leq n < (k+1)^2 = k^2 + 2k + 1$, ossia per $n = k^2 + j$ con $0 \\leq j \\leq 2k$, ovvero per $2k + 1$ valori di $j$.\n\nPertanto,\n$$\n\\begin{gathered}\n\\sum_{n=1}^{K^2-1} [\\sqrt{n}] = \\sum_{k=1}^{K-1} k(2k+1) = \\\\\n= 2 \\sum_{k=1}^{K-1} k^2 + \\sum_{k=1}^{K-1} k = \\frac{(K-1)K(2K-1)}{3} + \\frac{K(K-1)}{2} = \\frac{(K-1)K(4K+1)}{6}\n\\end{gathered}\n$$\n\nLa somma richiesta si ottiene dall'espressione $(*)$ ponendo $K = 1000$ ed aggiungendo $1000 = \\sqrt{1000000}$, che non era stato contato ancora: dunque si ottiene $500 \\cdot (333 \\cdot 4001 + 2)$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33520, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSi dimostri che in ogni poliedro convesso ci sono almeno due facce con lo stesso numero di lati.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nSia $n$ il numero di facce del poliedro. Poiché lati distinti di una faccia confinano con facce distinte, ciascuna faccia può avere un numero di lati compreso fra $3$ e $(n-1)$. Ne segue che vi sono almeno due facce con lo stesso numero di lati.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33521, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAlberto vuole organizzare per questa sera una partita di poker.\nEgli sa che Bruno e Barbara si recano insieme in palestra una sera su tre, e che Carla, Corrado, Dario e Davide sono impegnati una sera su due (ma non necessariamente negli stessi giorni).\nInoltre, sa che Dario non vuole giocare con Davide poiché questi gli ha portato via la ragazza.\nPoiché per giocare a poker occorrono almeno quattro persone (compreso Alberto), qual è la probabilità che stasera si giochi?", "options": [], "answer": "11/16", "solution": "Solution:\n\nVi sono $\\frac{2}{3}$ di probabilità che Bruno e Barbara possano giocare; in tal caso basta che sia disponibile anche uno solo degli altri amici. Che uno fissato degli amici non possa giocare è un evento di probabilità $\\frac{1}{2}$, e dunque che nessuno dei quattro possa giocare è un evento di probabilità $\\left(\\frac{1}{2}\\right)^{4}=\\frac{1}{16}$. La probabilità che almeno uno di loro possa giocare è la probabilità complementare, che vale dunque $\\frac{15}{16}$.\nLa probabilità che Bruno e Barbara non si rechino in palestra e che si possa giocare è quindi uguale a $\\frac{2}{3} \\cdot \\frac{15}{16}=\\frac{5}{8}$.\n\nNel caso invece che Bruno e Barbara si rechino in palestra (il quale evento ha probabilità $\\frac{1}{3}$ ), occorre assolutamente che Carla e Corrado siano disponibili, e che almeno Dario o Davide sia disponibile. La probabilità che Bruno e Barbara si rechino in palestra e che si possa giocare è dunque uguale a $\\frac{1}{3} \\cdot\\left(\\frac{1}{2}\\right)^{2} \\cdot\\left(1-\\left(\\frac{1}{2}\\right)^{2}\\right)=\\frac{1}{16}$.\n\nLa probabilità totale di poter giocare è allora $\\frac{5}{8}+\\frac{1}{16}=\\frac{11}{16}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33522, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABCD$ un trapezio con base maggiore $AB$ tale che le diagonali $AC$ e $BD$ siano perpendicolari. Sia $O$ il centro della circonferenza circoscritta al triangolo $ABC$ e sia $E$ il punto di intersezione tra la retta $OB$ e la retta $CD$. Dimostrare che\n$$\n\\overline{BC}^2 = \\overline{CD} \\cdot \\overline{CE}\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nSia $F$ l'intersezione delle due diagonali del trapezio e sia $M$ il punto medio di $AB$. Poiché il triangolo $AOB$ è isoscele e $OM$ ne è la mediana rispetto alla base, i triangoli $AOM$ e $BOM$ sono uguali e, in particolare, $\\widehat{AOM} = \\widehat{BOM} = \\frac{1}{2} \\widehat{AOB}$. Inoltre, considerando la circonferenza circoscritta al triangolo $ABC$, gli angoli $\\widehat{AOB}$ e $\\widehat{ACB}$ sono rispettivamente angolo al centro e angolo alla circonferenza insistenti sullo stesso arco $AB$, per cui $\\widehat{AOB} = 2 \\cdot \\widehat{ACB}$ e quindi $\\widehat{BOM} = \\widehat{ACB}$.\n\n![](attached_image_1.png)\n\nNe segue che i triangoli $OBM$ e $CBF$, che sono rettangoli, hanno un angolo acuto uguale e quindi anche l'altro angolo acuto è uguale, cioè $\\widehat{ABE} = \\widehat{DBC}$. Inoltre gli angoli $\\widehat{ABE}$ e $\\widehat{BEC}$ sono uguali perché alterni interni e quindi si ha anche $\\widehat{DBC} = \\widehat{BEC}$.\n\nInfine i triangoli $BCD$ e $ECB$ sono simili, perché hanno l'angolo in $C$ in comune e un altro angolo uguale. Si ha allora $\\overline{BC} : \\overline{CD} = \\overline{EC} : \\overline{CB}$, ossia $\\overline{BC}^2 = \\overline{CD} \\cdot \\overline{CE}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33523, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSiano $a_{1}, a_{2}, a_{3}, a_{4}$ quattro numeri interi distinti e sia $P(x)$ un polinomio a coefficienti interi tale che\n$$\nP\\left(a_{1}\\right)=P\\left(a_{2}\\right)=P\\left(a_{3}\\right)=P\\left(a_{4}\\right)=1 .\n$$\n\na. Dimostrare che non esiste nessun numero intero $n$ tale che $P(n)=12$.\n\nb. Esistono un polinomio $P(x)$ che soddisfa la condizione $(*)$ ed un intero $n$ tale che $P(n)=1998$ ?", "options": [], "answer": "a: No such integer exists. b: No, such a polynomial and integer do not exist.", "solution": "Solution:\n\nConsideriamo il polinomio $Q(x)=P(x)-1$. La condizione $(*)$ assicura che $Q\\left(a_{1}\\right)=Q\\left(a_{2}\\right)=Q\\left(a_{3}\\right)=Q\\left(a_{4}\\right)=0$ e, per il teorema di Ruffini, $Q(x)$ è divisibile per ciascuno dei fattori $(x-a_{i})$ ($1 \\leq i \\leq 4$). Poiché gli $a_{i}$ sono distinti, $Q(x)$ è divisibile per il loro prodotto, cioè\n$$\nQ(x)=(x-a_{1})(x-a_{2})(x-a_{3})(x-a_{4}) R(x)\n$$\nper qualche polinomio a coefficienti interi $R(x)$. Se, per assurdo, si avesse $P(n)=12$, si avrebbe $Q(n)=11$, cioè\n$$\n11=(n-a_{1})(n-a_{2})(n-a_{3})(n-a_{4}) R(n)\n$$\ne quindi $11$, che è un numero primo, si scriverebbe come prodotto di almeno 4 numeri interi distinti. Ma questo è impossibile, perché gli unici interi relativi che sono divisori di $11$ sono $\\pm 1, \\pm 11$ e di essi al più tre possono essere inseriti in un prodotto il cui risultato è $11$ ($+11$ e $-11$ non possono essere inseriti contemporaneamente).\n\nLo stesso ragionamento dice anche che non esistono un polinomio $P(x)$ che soddisfa la condizione $(*)$ ed un numero intero $n$ tale che $P(n)=1998$, perché si verifica che $1997=1998-1$ è un numero primo.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33524, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $f$ una funzione definita nell'insieme degli interi positivi a valori interi positivi.\nDiciamo che:\n- $f$ è crescente se $n < m$ implica $f(n) < f(m)$\n- $f$ è moltiplicativa se $\\operatorname{MCD}(m, n) = 1$ implica $f(n m) = f(n) \\cdot f(m)$\n- $f$ è completamente moltiplicativa se $f(n m) = f(n) \\cdot f(m)$ per ogni $n, m$.\n\na. Si dimostri che se $f$ è crescente allora $f(n) \\geq n$ per ogni $n$.\n\nb. Si dimostri che se $f$ è crescente, completamente moltiplicativa e $f(2) = 2$ allora $f(n) = n$ per ogni $n$.\n\nc. L'affermazione (b) resta vera se si elimina l'avverbio completamente?", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\na.\nSe $m$ è il minimo intero positivo tale che $f(m) < m$, gli $m-1$ numeri che precedono $m$ devono avere tutti immagine minore di $f(m)$ e dunque non possono essere tutti diversi perché si hanno a disposizione al più $m-2$ valori, assurdo.\n\nb.\nSe $m$ è il minimo intero positivo tale che $f(m) > m$ ed è pari, allora $f(m) = 2 f\\left(\\frac{m}{2}\\right) = 2 \\frac{m}{2} = m$, assurdo.\nSe $m$ è dispari, allora $f(m+1) = 2 f\\left(\\frac{m+1}{2}\\right) = m+1$ poiché $\\frac{m+1}{2} < m$, in quanto $m > 2$ quindi $f(m) < m+1$, assurdo.\n\nc.\nSì. Infatti se $m$ è il minimo intero positivo tale che $f(m) < m$ ed è pari allora si procede come prima se $\\frac{m}{2}$ è dispari, e si passa a $f(m+2) = 2 f\\left(\\frac{m+2}{2}\\right) = m+2$ se $\\frac{m}{2}$ è pari (si osservi che $\\frac{m+2}{2} < m$ perché $m > 2$).\nSe $m$ è dispari di nuovo si procede come prima se $\\frac{m+1}{2}$ è dispari, altrimenti si passa a $f(m+3) = 2 f\\left(\\frac{m+3}{2}\\right) = m+3$ perché $\\frac{m+3}{2} < m$, ovvia purché sia $m > 3$. Resta dunque da escludere che $m$ sia $3$, cioè occorre dimostrare che $f(3) = 3$. A tal fine sia $d$ un numero dispari, non divisibile per $3$ e tale che $\\frac{3d+1}{2}$ sia dispari (ad esempio $d = 7$ va bene). Allora si ha:\n$$\n\\begin{gathered}\nf\\left(\\frac{3d+1}{2}\\right) < f(2d) = 2 f(d) \\\\\nf(3d+1) = 2 f\\left(\\frac{3d+1}{2}\\right) > f(3d) = f(3) f(d)\n\\end{gathered}\n$$\nda cui $2 > \\frac{f(3)}{2}$ e quindi $f(3) < 4$.\nOsserviamo che in maniera più diretta si può dimostrare che $f(3) = 3$ nel modo seguente.\nPoniamo $f(3) = x$.\nPer la crescenza si ha $f(5) \\geq x+2$ e, per la moltiplicatività, $f(15) \\geq x(x+2) = x^{2} + 2x$. Usando alternativamente la moltiplicatività e la crescenza si ha anche:\n$$\n\\begin{aligned}\n& f(6) = 2x \\\\\n& f(5) \\leq 2x-1 \\\\\n& f(10) \\leq 4x-2 \\\\\n& f(9) \\leq 4x-3 \\\\\n& f(18) \\leq 8x-6\n\\end{aligned}\n$$\nNuovamente per la crescenza, si ha $f(15) + 3 \\leq f(18)$, da cui\n$$\n\\begin{gathered}\nx^{2} + 2x + 3 \\leq 8x - 6 \\\\\nx^{2} - 6x + 9 = (x-3)^{2} \\leq 0\n\\end{gathered}\n$$\ne quindi $x = 3$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33525, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDato un foglio rettangolare di lati $a$ e $b$, con $a > b$, determinare l'area del triangolo che risulta dalla sovrapposizione dei due lembi che si ottengono piegando il foglio lungo una diagonale (il triangolo colorato in grigio nella figura).\n\n![](attached_image_1.png)", "options": [], "answer": "b(a^2 + b^2)/(4a)", "solution": "Solution:\n\nIl triangolo $ABC$ è isoscele (gli angoli $\\widehat{BAC}$ e $\\widehat{ABC}$ corrispondono a due angoli alterni interni nel rettangolo diviso da una diagonale) e la sua area è $S = CB \\cdot AD / 2$ ($AD$ è l'altezza relativa a $CB$).\n\nPosto $DB = a$, $AD = b$, $CB = AC = x$ e $DC = a - x$, il teorema di Pitagora applicato al triangolo rettangolo $ACD$ fornisce $b^2 + (a - x)^2 = x^2$ da cui\n\n$$\nx = \\frac{a^2 + b^2}{2a}\n$$\n\ned infine\n\n$$\nS = \\frac{b\\left(a^2 + b^2\\right)}{4a}\n$$\n\n![](attached_image_2.png)", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33526, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDato un foglio rettangolare di lati $a$ e $b$, con $a > b$, determinare l'area del triangolo che risulta dalla sovrapposizione dei due lembi che si ottengono piegando il foglio lungo una diagonale (il triangolo colorato in grigio nella figura).\n\n![](attached_image_1.png)", "options": [], "answer": "S = \\frac{b\\left(a^2 + b^2\\right)}{4a}", "solution": "Solution:\n\nIl triangolo $ABC$ è isoscele (gli angoli $\\widehat{BAC}$ e $\\widehat{ABC}$ corrispondono a due angoli alterni interni nel rettangolo diviso da una diagonale) e la sua area è $S = CB \\cdot AD / 2$ ($AD$ è l'altezza relativa a $CB$).\n\nPosto $DB = a$, $AD = b$, $CB = AC = x$ e $DC = a - x$, il teorema di Pitagora applicato al triangolo rettangolo $ACD$ fornisce\n$$\nb^2 + (a - x)^2 = x^2\n$$\nda cui\n$$\nx = \\frac{a^2 + b^2}{2a}\n$$\ned infine\n$$\nS = \\frac{b\\left(a^2 + b^2\\right)}{4a}\n$$\n\n![](attached_image_2.png)", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33527, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn teatro ha $960$ posti, divisi nelle tre sezioni platea, palchi, galleria. In platea ci sono $370$ poltrone, mentre il numero di posti in galleria è inferiore di $290$ rispetto a quello dei palchi. Quanti sono i posti nei palchi?\n\n(A) $150$\n(B) $300$\n(C) $315$\n(D) $440$\n(E) nessuna delle precedenti.", "options": [], "answer": "D", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33528, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn un trapezio isoscele, una diagonale è lunga $22~\\mathrm{cm}$; si sa inoltre che tale diagonale forma con la base maggiore un angolo di $45^\\circ$. Quanto vale l'area del trapezio?\n(A) $121~\\mathrm{cm}^2$\n(B) $242~\\mathrm{cm}^2$\n(E) nessuna delle precedenti.\n(C) $484~\\mathrm{cm}^2$\n(D) i dati sono insufficienti", "options": [], "answer": "B", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33529, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLa professoressa Scappavia insegna matematica in una scuola in cui si fanno 6 ore al giorno di lezione, dal lunedì al venerdì. Il suo orario settimanale prevede 18 ore di insegnamento ed ella, per ragioni personali, gradirebbe non insegnare mai nell'ultima ora di lezione. La commissione che fa l'orario concede però alla professoressa solo di scegliere la suddivisione giornaliera delle sue ore di lavoro, dopodiché il suo orario verrà sorteggiato a caso. Quale delle seguenti disposizioni conviene scegliere alla professoressa per avere la maggior probabilità di non avere mai l'ultima ora di lezione?\n(A) $5-5-4-2-2$\n(B) $5-4-4-3-2$\n(C) $4-4-4-4-2$\n(D) 4-4-4-3-3\n(E) sono tutte equivalenti.", "options": [], "answer": "D", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33530, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nQual è la cifra delle unità del numero $2^{(2^{1})} + 2^{(2^{2})} + 2^{(2^{3})} + 2^{(2^{4})} + \\ldots + 2^{(2^{1999})}$?\n(A) 0\n(B) 2\n(C) 4\n(D) 6\n(E) 8.", "options": [], "answer": "B", "solution": "Solution:\n\nConsideriamo la cifra delle unità di $2^{(2^{k})}$ per $k \\geq 1$.\n\nOsserviamo che la cifra delle unità di $2^n$ segue un ciclo di lunghezza 4:\n\n| $n$ | $2^n$ | cifra delle unità |\n|-----|-------|-------------------|\n| 1 | 2 | 2 |\n| 2 | 4 | 4 |\n| 3 | 8 | 8 |\n| 4 | 16 | 6 |\n| 5 | 32 | 2 |\n| 6 | 64 | 4 |\n| 7 | 128 | 8 |\n| 8 | 256 | 6 |\n\nQuindi la cifra delle unità di $2^n$ dipende dal resto di $n$ modulo 4:\n- $n \\equiv 1 \\pmod{4}$: 2\n- $n \\equiv 2 \\pmod{4}$: 4\n- $n \\equiv 3 \\pmod{4}$: 8\n- $n \\equiv 0 \\pmod{4}$: 6\n\nOra, $2^k$ per $k \\geq 2$ è sempre divisibile per 4, quindi $2^k \\equiv 0 \\pmod{4}$ per $k \\geq 2$.\n\nQuindi, per $k \\geq 2$, la cifra delle unità di $2^{(2^k)}$ è 6.\nPer $k = 1$, $2^{(2^1)} = 2^2 = 4$, la cui cifra delle unità è 4.\n\nQuindi la somma è:\n$2^{(2^1)} + 2^{(2^2)} + 2^{(2^3)} + \\ldots + 2^{(2^{1999})} = 4 + 6 + 6 + \\ldots + 6$\n\nCi sono $1999$ termini, di cui il primo ($k=1$) è 4, e i restanti $1998$ sono 6.\n\nQuindi la somma delle cifre delle unità è:\n$4 + 6 \\times 1998$\n\nCalcoliamo la cifra delle unità di $6 \\times 1998$:\n$6 \\times 1998 = 11988$\nLa cifra delle unità di $11988$ è 8.\n\nOra sommiamo 4:\n$8 + 4 = 12$\nLa cifra delle unità è 2.\n\nRisposta: 2.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33531, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAd una gara a punti su pista partecipano nove concorrenti. Ad ogni traguardo intermedio vengono assegnati 9 punti al primo, 8 al secondo, 7 al terzo e così via fino ad assegnare 1 punto all'ultimo. Prima dell'ultimo sprint (in cui il punteggio assegnato vale doppio) la classifica vede al comando Abdujaparov con 2 punti di vantaggio su Boardman e 9 su Cipollini. Gli altri concorrenti hanno un distacco in punti tale da non consentire più loro di aggiudicarsi la gara.\nQuanti sono i possibili differenti piazzamenti dei tre corridori nell'ultimo sprint che permettono a Cipollini di vincere la gara?", "options": [], "answer": "30", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33532, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nQuanti sono i numeri naturali che in base 10 si scrivono con 3 cifre e in base 2 si scrivono con 7 cifre?", "options": [], "answer": "28", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33533, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAndrea torna dalla pesca con una borsa piena di pesci. Giunto a casa, dà al più grande dei suoi due gatti i tre pesci più grossi: così facendo il peso della borsa si riduce del $38\\%$. A questo punto dà all'altro gatto i tre pesci più piccoli: così facendo il peso della borsa si riduce nuovamente del $38\\%$ (rispetto però al peso successivo alla nutrizione del primo gatto). Quanti pesci ha pescato Andrea? (Si trascuri il peso della borsa rispetto a quello dei pesci).", "options": [], "answer": "10", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33534, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDimostrare che un pentagono inscritto in una circonferenza e tale che ogni sua diagonale sia parallela ad un lato, è necessariamente regolare.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33535, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDiciamo che un numero naturale è equilibrato se si scrive con tante cifre quanti sono i suoi divisori primi distinti (per esempio, $15$ è equilibrato, mentre $49$ non lo è).\nDimostrare che c'è solo un numero finito di numeri equilibrati.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nNon esistono numeri equilibrati di $c$ cifre se $c > 100$. Infatti un tale numero sarebbe prodotto di $c$ numeri primi, almeno metà dei quali maggiori di $100$. Quindi il numero sarebbe maggiore di $100^{c / 2} = 10^{c}$, il che è assurdo. In effetti il più grande numero equilibrato ha esattamente dieci cifre, dato che $2 \\cdot 3 \\cdot 5 \\cdot 7 \\cdot 11 \\cdot 13 \\cdot 17 \\cdot 19 \\cdot 23 \\cdot 29 < 10^{10}$, mentre $2 \\cdot 3 \\cdot 5 \\cdot 7 \\cdot 11 \\cdot 13 \\cdot 17 \\cdot 19 \\cdot 23 \\cdot 29 \\cdot 31 > 10^{11}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33536, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nQuante soluzioni reali ha il sistema\n$$\n\\left\\{\\begin{array}{l}\nx^{2} y=150 \\\\\nx^{3} y^{2}=4500\n\\end{array} \\right.\n$$\n(A) Nessuna\n(B) una\n(C) più di una, ma meno di cinque\n(D) un numero finito, ma almeno cinque\n(E) infinite.", "options": [], "answer": "B", "solution": "Solution:\n\nDalla prima equazione $x^{2} y = 150$ ricaviamo $y = \\dfrac{150}{x^{2}}$ (con $x \\neq 0$).\n\nSostituiamo nella seconda equazione:\n$$\nx^{3} y^{2} = 4500\n$$\nSostituendo $y$:\n$$\nx^{3} \\left( \\dfrac{150}{x^{2}} \\right)^{2} = 4500\n$$\n$$\nx^{3} \\cdot \\dfrac{22500}{x^{4}} = 4500\n$$\n$$\n\\dfrac{22500 x^{3}}{x^{4}} = 4500\n$$\n$$\n\\dfrac{22500}{x} = 4500\n$$\n$$\nx = \\dfrac{22500}{4500} = 5\n$$\n\nOra calcoliamo $y$:\n$$\ny = \\dfrac{150}{x^{2}} = \\dfrac{150}{25} = 6\n$$\n\nVerifichiamo se ci sono altre soluzioni:\n\nAbbiamo supposto $x \\neq 0$. Consideriamo anche $x < 0$:\n$$\nx = -5\n$$\n$$\ny = \\dfrac{150}{(-5)^{2}} = \\dfrac{150}{25} = 6\n$$\n\nVerifichiamo se la coppia $(x, y) = (-5, 6)$ soddisfa la seconda equazione:\n$$\nx^{3} y^{2} = (-5)^{3} \\cdot 6^{2} = (-125) \\cdot 36 = -4500\n$$\nNon è uguale a $4500$, quindi non è soluzione.\n\nConsideriamo $y < 0$:\nDalla prima equazione $x^{2} y = 150$, se $y < 0$ allora $x^{2} < 0$, impossibile.\n\nQuindi l'unica soluzione reale è $(x, y) = (5, 6)$.\n\nRisposta corretta: (B) una.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33537, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSiano $\\mathcal{C}$, $\\mathcal{C}_1$, $\\mathcal{C}_2$, tre circonferenze di raggi rispettivamente $r$, $r_1$, $r_2$ con $0 < r_1 < r_2 < r$. Le circonferenze $\\mathcal{C}_1$ e $\\mathcal{C}_2$ sono tangenti internamente a $\\mathcal{C}$ in due punti distinti $A$ e $B$ e si intersecano fra loro in due punti distinti. Dimostrare che il segmento $AB$ passa per uno dei punti di intersezione fra $\\mathcal{C}_1$ e $\\mathcal{C}_2$ se e solo se $r_1 + r_2 = r$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nSupponiamo dapprima che il segmento $AB$ passi per uno dei punti di intersezione fra $\\mathcal{C}_1$ e $\\mathcal{C}_2$, e sia $C$ tale punto. Siano inoltre $O$, $O_1$, $O_2$ rispettivamente i centri delle circonferenze $\\mathcal{C}$, $\\mathcal{C}_1$, $\\mathcal{C}_2$. I triangoli $OAB$, $O_1AC$ e $O_2BC$ sono isosceli e sono simili (per esempio $OAB$ e $O_1AC$ hanno un angolo alla base in comune). Pertanto i lati opposti del quadrilatero $OO_1CO_2$ sono paralleli e tale quadrilatero è un parallelogramma. Dunque $r = OA = OO_1 + O_1A = O_2C + O_1A = r_2 + r_1$.\n\nViceversa, supponiamo $r = r_1 + r_2$. Si costruisca il parallelogramma $OO_1C' O_2'$ i cui vertici $C'$ e $O_2'$ stanno sui segmenti $AB$ e $OB$ (è ovvio che ciò si può fare in modo unico). Dalla similitudine di $O_1AC'$, $O_2'C'B$ e $OAB$ si ha che $O_1C' = O_1A = r_1$, da cui segue che $C'$ sta sulla circonferenza $\\mathcal{C}_1$, e anche $O_2'B = O_2'C = OO_1 = OA - O_1A = r - r_1 = r_2$, da cui segue che $O_2' = O_2$ e che $C'$ sta sulla circonferenza $\\mathcal{C}_2$.\n\n![](attached_image_1.png)", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33538, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDeterminare l'area della parte di piano definita da\n$$\n\\left\\{\\begin{array}{l}\nx^{2}+y^{2}-4 y \\leq 0 \\\\\nx^{2}-3 x+2 \\leq 0\n\\end{array}\\right.\n$$\n(A) $\\frac{2 \\pi}{3}-2$\n(B) $\\pi-\\sqrt{3}$\n(C) $\\frac{\\pi}{3}-\\frac{\\sqrt{3}}{2}$\n(D) $\\frac{4 \\pi}{3}-\\sqrt{3}$\n(E) nessuna delle precedenti.", "options": [], "answer": "D", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33539, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAlberto e Barbara fanno il seguente gioco. Su di un tavolo ci sono 1999 cerini: a turno ogni giocatore deve togliere dal tavolo un numero di cerini a sua scelta, purché maggiore o uguale ad uno, e minore o uguale alla metà del numero dei cerini che in quel momento sono sul tavolo. Il giocatore che lascia sul tavolo un solo cerino perde. Barbara è la prima a giocare.\nDeterminare per quale dei due giocatori esiste una strategia vincente e descrivere tale strategia.", "options": [], "answer": "Barbara has a winning strategy. The winning heap sizes are 2, 5, 11, 23, 47, 95, 191, 383, 767, 1535. Starting from 1999, Barbara should first leave 1535 matches and thereafter always reduce the pile to the next smaller winning size (767, 383, 191, 95, 47, 23, 11, 5, 2), after which Alberto is forced to leave one and lose.", "solution": "Solution:\n\nLa strategia vincente si può determinare procedendo a ritroso. Chi lascia un solo cerino sul tavolo perde. Chi ne lascia due vince, perché costringe l'altro giocatore a lasciarne uno solo. Chi ne lascia 3 o 4 perde, perché alla mossa successiva l'altro potrà lasciarne due. Chi ne lascia 5 invece vince, perché costringe l'altro a lasciarne 3 o 4, che abbiamo visto essere mosse perdenti. Analogamente si vede che lasciarne $6,7,8,9$ o $10$ è una mossa perdente (permette all'altro di lasciarne $5$), mentre lasciarne $11$ è vincente.\n\nQuesto ragionamento si può ripetere all'infinito: se lasciare $k$ cerini è una mossa vincente, allora lasciarne un numero compreso tra $k+1$ e $2k$ (estremi inclusi) è perdente, mentre lasciarne $2k+1$ è vincente. In conclusione i \"numeri vincenti\" si possono facilmente determinare partendo da due e sfruttando per ricorrenza il fatto appena osservato che se $k$ è vincente, anche $2k+1$ è vincente. I \"numeri vincenti\" minori di $1999$ sono pertanto: $2, 5, 11, 23, 47, 95, 191, 383, 767, 1535$. Barbara quindi può vincere seguendo questa strategia: alla prima mossa lascia sul tavolo $1535$ cerini, la seconda volta che tocca a lei ne lascia $767$, la terza volta $383$, e così via. Procedendo in questo modo la decima volta che tocca a lei ne lascerà sul tavolo $2$, e alla mossa successiva Alberto perderà.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33540, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn cilindro retto $X$ ed un cono retto $Y$ hanno lo stesso raggio di base e la stessa altezza. Allora il rapporto fra le superfici laterali di $X$ e $Y$ :\n(A) è sempre uguale al rapporto dei loro volumi\n(B) può essere uguale al rapporto dei loro volumi (dipende dalle altezze)\n(C) è sempre il $2 / 3$ del rapporto dei loro volumi\n(D) è sempre maggiore del rapporto dei loro volumi\n(E) è sempre minore del rapporto dei loro volumi.", "options": [], "answer": "E", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33541, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSu un lago c'è un villaggio di capanne poste su palafitte nei nodi di un reticolo rettangolare $m \\times n$ (vedi esempio in figura). Dalla piattaforma di ogni capanna partono esattamente $p$ ponti, che la collegano ad una o più delle capanne contigue (rispetto al reticolo, quindi non in diagonale). Per quali valori interi positivi $m, n$ e $p$ è possibile collocare $i$ ponti in modo che da ogni capanna si raggiunga qualsiasi altra capanna? (Ovviamente tra due capanne contigue si possono collocare più ponti).\n\n![](attached_image_1.png)", "options": [], "answer": "Possible configurations are:\n- If min(m, n) = 1: only when max(m, n) = 2, with any positive p.\n- If m ≥ 2 and n ≥ 2: exactly when m·n is even and p ≥ 2.", "solution": "Solution:\n\nSe $m=1$ o $n=1$ una capanna posta in un'estremità ha una sola capanna contigua, che quindi non può essere collegata a nessun'altra capanna (i $p$ ponti che partono dalla prima capanna devono necessariamente raggiungere la capanna contigua). Quindi si hanno solo le possibilità $(m, n)=(1,2)$ o $(m, n)=(2,1)$ e $p$ qualsiasi.\n\nSe $m$ ed $n$ sono entrambi maggiori di 1, non si può avere $p=1$, in quanto da una capanna se ne potrebbe raggiungere solo un'altra.\n\nConsideriamo ora il caso in cui $m, n$ e $p$ sono tutti maggiori di 1. Dimostriamo che è possibile collocare i ponti se e solo se $m \\cdot n$ è pari (e $p$ può essere qualunque). Colorando di bianco e di nero le capanne come in un'ordinaria scacchiera, si ha che ogni ponte ha un'estremità bianca e una nera. Se $m \\cdot n$ è dispari, cioè $m$ ed $n$ sono entrambi dispari, non è possibile far partire lo stesso numero di ponti da tutte le capanne, in quanto il numero delle capanne bianche differisce di uno (in più o in meno) da quello delle capanne nere.\n\nD'altra parte se (ad esempio) $m$ è pari, si possono formare degli isolati $2 \\times n$ nel modo seguente:\n\n![](attached_image_2.png)\n\nI quattro semiponti $a, b, c, d$ servono per collegare fra loro gli isolati (ovviamente nel caso degli isolati più esterni due di essi sono saldati fra loro a formare un unico ponte).", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33542, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUna delle seguenti persone è \"zio del fratello della figlia della nuora del padre di Alberto\". Si tratta di:\n(A) Alberto stesso\n(B) suo padre\n(C) suo nonno\n(D) suo figlio\n(E) suo suocero.", "options": [], "answer": "A", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33543, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\na. Determinare tutte le coppie $(x, k)$ di interi positivi che soddisfano l'equazione\n$$\n3^{k}-1=x^{3}.\n$$\n\nb. Dimostrare che se $n$ è un intero maggiore di $1$ e diverso da $3$ non esistono coppie $(x, k)$ di interi positivi che soddisfano l'equazione\n$$\n3^{k}-1=x^{n}.\n$$", "options": [], "answer": "a) (x, k) = (2, 2). b) For n > 1 with n ≠ 3, there are no solutions.", "solution": "Solution:\n\na. Riscriviamo l'equazione nella forma\n$$\n3^{k}=x^{3}+1=(x+1)\\left(x^{2}-x+1\\right)\n$$\nPoiché gli unici divisori di una potenza di $3$ sono a loro volta potenze di $3$, ogni soluzione deve soddisfare il sistema\n$$\n\\left\\{\\begin{array}{l}\nx+1=3^{a} \\\\\nx^{2}-x+1=3^{b}\n\\end{array}\\right.\n$$\ncon $a$ e $b$ interi positivi tali che $a+b=k$. Se $a=1$, si ottiene $x=2$, $b=1$ e $(x, k)=(2,2)$ è una soluzione. Se $a>1$, sostituendo $x=3^{a}-1$ nella seconda equazione si ottiene\n$$\n3^{2 a}-3^{a+1}+3=3\\left(3^{2 a-1}-3^{a}+1\\right)=3^{b}\n$$\nche è impossibile perché $3^{2 a-1}-3^{a}+1$ è maggiore di $1$ e non è divisibile per $3$. Quindi c'è un'unica soluzione, $(x, k)=(2,2)$.\n\nb. Supponiamo dapprima che $n$ sia un numero dispari. Possiamo scrivere l'equazione nella forma\n$$\n3^{k}=x^{n}+1=(x+1)\\left(x^{n-1}-x^{n-2}+\\cdots-x+1\\right)\n$$\ne, analogamente a prima, un'eventuale soluzione dovrebbe soddisfare il sistema\n$$\n\\left\\{\\begin{array}{l}\nx+1=3^{a} \\\\\nx^{n-1}-x^{n-2}+\\cdots-x+1=3^{b}\n\\end{array}\\right.\n$$\ncon $a$ e $b$ interi positivi tali che $a+b=k$. Dividendo il polinomio $x^{n-1}-x^{n-2}+\\cdots-x+1$ per $x+1$ si ottiene\n$$\nx^{n-1}-x^{n-2}+\\cdots-x+1=q(x)(x+1)+r\n$$\ne, ponendo $x=-1$, si ottiene $r=n$. Quindi il massimo comune divisore fra $x+1$ e $x^{n-1}-x^{n-2}+\\cdots-x+1$, che è una potenza di $3$ con esponente positivo, deve dividere anche $n$, e quindi in particolare $3$ deve essere un divisore di $n$. Ponendo $n=3 m$, $x^{m}=y$, la nostra equazione diventa\n$$\n3^{k}-1=y^{3}\n$$\nDal caso (a) sappiamo che l'unica soluzione è $y=2$, $k=2$. Ma $x^{m}=2$ non ha chiaramente soluzioni intere per $m>1$.\n\nSupponiamo infine $n=2 m$ pari, e, ponendo $x^{m}=y$, consideriamo l'equazione\n$$\n3^{k}=x^{2 m}+1=y^{2}+1\n$$\nConsiderando tutti i possibili resti della divisione di $y$ per $3$, e cioè i casi $y=3 z$, $3 z+1$, $3 z-1$, si vede che $y^{2}+1$ non è mai divisibile per $3$, e quindi non ci sono soluzioni.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33544, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\na. Determinare tutte le coppie $(x, k)$ di interi positivi che soddisfano l'equazione\n$$\n3^{k}-1=x^{3}.\n$$\n\nb. Dimostrare che se $n$ è un intero maggiore di 1 e diverso da 3 non esistono coppie $(x, k)$ di interi positivi che soddisfano l'equazione\n$$\n3^{k}-1=x^{n}.\n$$", "options": [], "answer": "a) (x, k) = (2, 2). b) No solutions for any exponent greater than one different from three.", "solution": "Solution:\n\na. Riscriviamo l'equazione nella forma\n$$\n3^{k}=x^{3}+1=(x+1)\\left(x^{2}-x+1\\right)\n$$\nPoiché gli unici divisori di una potenza di 3 sono a loro volta potenze di 3, ogni soluzione deve soddisfare il sistema\n$$\n\\left\\{\\begin{array}{l}\nx+1=3^{a} \\\\\nx^{2}-x+1=3^{b}\n\\end{array}\\right.\n$$\ncon $a$ e $b$ interi positivi tali che $a+b=k$. Se $a=1$, si ottiene $x=2, b=1$ e $(x, k)=(2,2)$ è una soluzione. Se $a>1$, sostituendo $x=3^{a}-1$ nella seconda equazione si ottiene\n$$\n3^{2 a}-3^{a+1}+3=3\\left(3^{2 a-1}-3^{a}+1\\right)=3^{b}\n$$\nche è impossibile perché $3^{2 a-1}-3^{a}+1$ è maggiore di 1 e non è divisibile per 3. Quindi c'è un'unica soluzione, $(x, k)=(2,2)$.\n\nb. Supponiamo dapprima che $n$ sia un numero dispari. Possiamo scrivere l'equazione nella forma\n$$\n3^{k}=x^{n}+1=(x+1)\\left(x^{n-1}-x^{n-2}+\\cdots-x+1\\right)\n$$\ne, analogamente a prima, un'eventuale soluzione dovrebbe soddisfare il sistema\n$$\n\\left\\{\\begin{array}{l}\nx+1=3^{a} \\\\\nx^{n-1}-x^{n-2}+\\cdots-x+1=3^{b}\n\\end{array}\\right.\n$$\ncon $a$ e $b$ interi positivi tali che $a+b=k$. Dividendo il polinomio $x^{n-1}-x^{n-2}+\\cdots-x+1$ per $x+1$ si ottiene\n$$\nx^{n-1}-x^{n-2}+\\cdots-x+1=q(x)(x+1)+r\n$$\ne, ponendo $x=-1$, si ottiene $r=n$. Quindi il massimo comune divisore fra $x+1$ e $x^{n-1}-x^{n-2}+\\cdots-x+1$, che è una potenza di 3 con esponente positivo, deve dividere anche $n$, e quindi in particolare 3 deve essere un divisore di $n$. Ponendo $n=3 m, x^{m}=y$, la nostra equazione diventa\n$$\n3^{k}-1=y^{3}\n$$\nDal caso (a) sappiamo che l'unica soluzione è $y=2, k=2$. Ma $x^{m}=2$ non ha chiaramente soluzioni intere per $m>1$.\n\nSupponiamo infine $n=2 m$ pari, e, ponendo $x^{m}=y$, consideriamo l'equazione\n$$\n3^{k}=x^{2 m}+1=y^{2}+1\n$$\nConsiderando tutti i possibili resti della divisione di $y$ per 3, e cioè i casi $y=3 z, 3 z+1, 3 z-1$, si vede che $y^{2}+1$ non è mai divisibile per 3, e quindi non ci sono soluzioni.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33545, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nQuale delle seguenti affermazioni è vera nell'insieme dei numeri razionali?\n(A) Per ogni $x$ c'è un $y$ tale che per ogni $z$ si ha $x+y+z=x$\n(B) per ogni $x$ c'è un $y$ tale che per ogni $z$ si ha $x+y+z=z$\n(C) per ogni $x$ c'è un $y$ tale che per ogni $z$ si ha $x y z=x$\n(D) per ogni $x$ c'è un $y$ tale che per ogni $z$ si ha $x y z=z$\n(E) nessuna delle affermazioni precedenti è corretta.", "options": [], "answer": "B", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33546, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $M$ il minimo comune multiplo di tutti gli interi compresi fra $1$ e $100$. Quale dei seguenti numeri è un divisore di $M$?\n\n(A) $1990$\n(B) $2000$\n(C) $2002$\n(D) $2004$\n(E) $2020$.", "options": [], "answer": "C", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33547, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nQuante sono le soluzioni intere positive dell'equazione $x^{x} - 2^{x} - x^{2} = 10$?\n(A) Nessuna\n(B) una\n(C) due\n(D) più di due, ma un numero finito\n(E) infinite.", "options": [], "answer": "B", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33548, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn mucchio di sabbia può essere trasportato in 4 viaggi caricando al massimo un autocarro o, in alternativa, in 12 viaggi caricandone al massimo un altro più piccolo. Se possiamo utilizzare a pieno carico entrambi gli autocarri, e vogliamo che entrambi compiano lo stesso numero di viaggi, quanti viaggi dovrà fare ciascun autocarro per il trasporto di tutta la sabbia?\n(A) 1\n(B) 2\n(C) 3\n(D) 4\n(E) i dati sono insufficienti.", "options": [], "answer": "C", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33549, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDiciamo che tre numeri dispari $a < b < c$ sono consecutivi se $c - b = b - a = 2$. Chiamiamo \"speciali\" quei numeri interi che hanno tutte le cifre uguali e che si possono scrivere come somma dei quadrati di tre numeri dispari consecutivi.\n\na) Determinare tutti i numeri speciali di 4 cifre.\n\nb) Esistono numeri speciali di 2000 cifre?", "options": [], "answer": "a) 5555; b) No", "solution": "Solution:\n\nSupponiamo che un certo numero $N$ sia speciale e abbia 4 cifre. Allora esisterà un numero dispari $d$ tale che\n$$\nN = (d-2)^2 + d^2 + (d+2)^2 = 3d^2 + 8\n$$\nPoiché $d$ è dispari, anche $N$ è dispari e dunque può essere solo $1111$, $3333$, $5555$, $7777$, $9999$. Ora però $N$ non può essere $3333$ o $9999$, in quanto questi numeri sono divisibili per $3$ mentre $3d^2 + 8$ non lo è; $N$ non può essere nemmeno $1111$ o $7777$, in quanto sottraendo $8$ a questi numeri si ottiene una quantità (che dovrebbe essere $3d^2$) non divisibile per $3$. L'unica possibilità è quindi che sia $N = 5555$, da cui si ricava facilmente $d = 43$. Pertanto $5555 = 41^2 + 43^2 + 45^2$ è l'unico numero speciale di 4 cifre.\n\nVeniamo ora al caso delle 2000 cifre. Le possibilità per l'ultima cifra di $d$ sono $1, 3, 5, 7, 9$; per l'ultima cifra di $d^2$ sono $1, 5, 9$; per l'ultima cifra di $3d^2$ sono $3, 5, 7$; infine per l'ultima cifra di $N = 3d^2 + 8$ sono $1, 3, 5$.\n\nIl caso in cui $N$ è costituito da tutti $3$ si scarta in quanto $N$ sarebbe divisibile per $3$ mentre $3d^2 + 8$ non lo è. Il caso in cui $N$ si scrive con tutti $5$ si scarta perché $N-8$ si scriverebbe con $1998$ cifre $5$ seguite da $47$, dunque non sarebbe divisibile per $3$ (in quanto la somma delle sue cifre è $1998 \\cdot 5 + 4 + 7$ che non è multiplo di $3$).\n\nPer esaminare il caso rimanente (tutte cifre $1$) poniamo $d = 2k + 1$ nella (1) e ricaviamo che $12k(k+1) = N - 11$. Poiché o $k$ o $k+1$ è un numero pari, il termine a sinistra nell'ultima uguaglianza è divisibile per $8$, mentre il termine a destra è\n$$\n\\underbrace{11 \\ldots 11}_{1998 \\text{ volte}} 00 = 100 \\cdot (\\text{numero dispari})\n$$\ne dunque non è divisibile per $8$.\n\nQuesto permette di concludere che non esistono numeri speciali di 2000 cifre.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33550, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn parallelepipedo retto ha spigoli di lunghezza $a, b, c$, con $a < b < c$. Se la lunghezza di uno degli spigoli viene aumentata di una quantità $q$, allora il volume del parallelepipedo aumenta. In quale dei seguenti casi si ha il massimo incremento di volume?\n(A) Quando viene aumentato $a$\n(B) quando viene aumentato $b$\n(C) quando viene aumentato $c$\n(D) l'incremento è lo stesso in ogni caso\n(E) dipende dai particolari valori di $a, b, c$.", "options": [], "answer": "A", "solution": "Solution:\n\nlati non incrementati. Tale prodotto è chiaramente massimo quando i due lati non incrementati sono $b$ e $c$ (i due più lunghi), cioè quando viene incrementato $a$.", "topic": "Geometry", "subtopic": "Solid Geometry" }, { "id": 33551, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLa tela di un dipinto rettangolare è circondata da un passepartout (cioè un riquadro) largo $10~\\mathrm{cm}$. Attorno a quest'ultimo vi è poi una cornice, anch'essa larga $10~\\mathrm{cm}$ (nella figura, il rettangolo bianco rappresenta la tela, la superficie tratteggiata il passepartout, la superficie nera la cornice).\nSi sa che l'area dell'intero quadro (compresa la cornice) è uguale al doppio della somma di quelle del passepartout e della tela.\n![](attached_image_1.png)\nSi può allora concludere che:\n(A) sono determinate sia l'area della cornice che quelle del passepartout e della tela\n(B) è determinata solo l'area della cornice\n(C) è determinata solo l'area del passepartout\n(D) è determinata solo l'area della tela\n(E) non è determinata nessuna delle grandezze precedenti.", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). Siano infatti $a$ e $b$ le dimensioni della tela.\nQuelle del passepartout sono allora $(a+20)$ e $(b+20)$ e quelle della cornice sono $(a+40)$ e $(b+40)$. L'ipotesi dice che si ha $(a+40)(b+40)=2(a+20)(b+20)$ da cui $a b=800$, condizione ovviamente equivalente all'ipotesi stessa.\nD'altra parte l'area del passepartout vale $(a+20)(b+20)-a b=20(a+b)+400$ e dunque essa dipende dal perimetro della tela.\nLa stessa conclusione vale per l'area della cornice, che misura\n$(a+40)(b+40)-(a+20)(b+20)=20(a+b)+1200$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33552, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLa tela di un dipinto rettangolare è circondata da un passepartout (cioè un riquadro) largo $10~\\mathrm{cm}$. Attorno a quest'ultimo vi è poi una cornice, anch'essa larga $10~\\mathrm{cm}$ (nella figura, il rettangolo bianco rappresenta la tela, la superficie tratteggiata il passepartout, la superficie nera la cornice).\nSi sa che l'area dell'intero quadro (compresa la cornice) è uguale al doppio della somma di quelle del passepartout e della tela.\n![](attached_image_1.png)\nSi può allora concludere che:\n(A) sono determinate sia l'area della cornice che quelle del passepartout e della tela\n(B) è determinata solo l'area della cornice\n(C) è determinata solo l'area del passepartout\n(D) è determinata solo l'area della tela\n(E) non è determinata nessuna delle grandezze precedenti.", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). Siano infatti $a$ e $b$ le dimensioni della tela.\nQuelle del passepartout sono allora $(a+20)$ e $(b+20)$ e quelle della cornice sono $(a+40)$ e $(b+40)$. L'ipotesi dice che si ha $(a+40)(b+40)=2(a+20)(b+20)$ da cui $a b=800$, condizione ovviamente equivalente all'ipotesi stessa.\nD'altra parte l'area del passepartout vale $(a+20)(b+20)-a b=20(a+b)+400$ e dunque essa dipende dal perimetro della tela.\nLa stessa conclusione vale per l'area della cornice, che misura\n$(a+40)(b+40)-(a+20)(b+20)=20(a+b)+1200$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33553, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUna scatola contiene 3 palline bianche e 2 palline nere. Marco estrae una pallina e la rimette nella scatola aggiungendo un'altra pallina dello stesso colore. A questo punto egli estrae una nuova pallina dalla scatola. Qual è la probabilità che quest'ultima sia bianca?\n\n(A) $\\frac{1}{2}$\n(B) $\\frac{7}{12}$\n(C) $\\frac{3}{5}$\n(D) $\\frac{2}{3}$\n(E) nessuna delle precedenti.", "options": [], "answer": "C", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33554, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn un tetraedro regolare di vertici $A, B, C, D$, indichiamo con $P$ e $Q$ i centri delle due facce che hanno in comune lo spigolo $A B$. Qual è il rapporto tra il volume del tetraedro iniziale e quello del tetraedro che ha per vertici i punti $A, B, P$ e $Q$ ?\n\n\nProblem:\n\nSia $n$ il più piccolo intero positivo $>200$ che si può scrivere sia come somma di 5 interi consecutivi che come somma di 6 interi consecutivi e di 7 interi consecutivi. Quanto vale $n$ ?", "options": [], "answer": "ratio = 3*sqrt(3); n = 315", "solution": "", "topic": "Geometry", "subtopic": "Solid Geometry" }, { "id": 33555, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn un cubo di lato $12$, $P$ e $Q$ sono i centri di due facce che hanno in comune lo spigolo $AB$. Qual è il volume del tetraedro che ha per vertici i punti $A$, $B$, $P$, $Q$?", "options": [], "answer": "72", "solution": "Solution:\n\nLa risposta è $72$. Infatti il tetraedro $ABPQ$ può essere pensato come una piramide di base $ABP$ e altezza $QM$, dove $M$ è il punto medio di $AB$. Se il lato del cubo è $12$, l'area di base sarà $\\frac{144}{4} = 36$ e l'altezza sarà $\\frac{12}{2} = 6$. Il volume del tetraedro sarà dunque $\\frac{1}{3} \\cdot 36 \\cdot 6 = 72$.", "topic": "Geometry", "subtopic": "Solid Geometry" }, { "id": 33556, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLe dimensioni dello schermo di un televisore sono $60~\\mathrm{cm} \\times 45~\\mathrm{cm}$. Una telecamera inquadra interamente il televisore, e rimanda l'immagine sullo stesso, per cui dentro questo televisore se ne vede un altro e così via. Il televisore più grande che si vede dentro lo schermo ha un'area uguale a metà dell'area dello schermo. Supponendo che una persona osservi il televisore seduta a una distanza tale da non distinguere immagini di area inferiore a $1~\\mathrm{cm}^2$, quanti televisori vede all'interno dello schermo?", "options": [], "answer": "11", "solution": "Solution:\n\nLa risposta è 11. L'area dello schermo è $60~\\mathrm{cm} \\times 45~\\mathrm{cm} = 2700~\\mathrm{cm}^2$. Il televisore più grande inquadrato ha un'area uguale a metà dell'area dello schermo. Il secondo ha un'area uguale alla metà del primo, e cioè $1/4 = 1/2^2$ dell'area dello schermo; analogamente, il terzo televisore ha un'area uguale a $1/2^3$, il quarto un'area uguale a $1/2^4$ dell'area dello schermo, e così via. Se $n$ è il numero di televisori distinguibili dallo spettatore, si ha allora $2700/2^n \\geq 1$ e $2700/2^{n+1} < 1$. Analizzando le successive potenze di 2, si vede che $n=11$ è il numero cercato, poiché $2^{11} = 2048$, $2^{12} = 4096$, quindi $\\frac{2700}{2048} > 1$ mentre $\\frac{2700}{4096} < 1$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33557, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $n$ il più piccolo intero positivo $>200$ che si può scrivere sia come somma di 5 interi consecutivi che come somma di 6 interi consecutivi e di 7 interi consecutivi. Quanto vale $n$ ?", "options": [], "answer": "315", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33558, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSi consideri un quadrato $ABCD$ di lato $16$ metri. Su due lati consecutivi $AB$ e $BC$ si costruiscano, esternamente rispetto al quadrato, i due triangoli equilateri $ABE$ e $BCF$. Quanto vale l'area del triangolo $BEF$ espressa in metri quadri?", "options": [], "answer": "64", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33559, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nPer ogni numero reale $x$, indichiamo con $[x]$ la \"parte intera di $x$\", definita come il più grande intero $\\leq x$. Così ad esempio abbiamo che $[3/2]=1$, $[\\pi]=3$, $[8]=8$. Determinare quante sono le soluzioni reali positive $(>0)$ dell'equazione $32^{x}=64^{[x]}$.", "options": [], "answer": "4", "solution": "Solution:\n\nLa risposta è 4. L'equazione si può scrivere nella forma $2^{5x}=2^{6[x]}$, che è equivalente a $5x=6[x]$. Poiché $x<[x]+1$, si ha che $6[x]=5x<5[x]+5$, da cui $[x]<5$. Poiché per ogni $x>0$ la parte intera $[x]$ è un intero $\\geq 0$, rimangono solo le possibilità $[x]=0,1,2,3,4$. Sostituendo tali valori nella relazione già trovata $5x=6[x]$, ricaviamo che i corrispondenti valori di $x$ sono, rispettivamente, $0$, $6/5$, $12/5$, $18/5$, $24/5$. La soluzione $x=0$ è però da scartare, in quanto nel testo si richiedeva $x$ positivo. Si verifica invece facilmente che gli altri quattro valori di $x$ risolvono effettivamente l'equazione proposta, che ha pertanto quattro soluzioni reali e positive.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33560, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nQual è il minimo numero di lanci di un dado a 6 facce che si devono effettuare per avere una probabilità superiore al $50\\%$ che la somma di tutti i punteggi ottenuti sia maggiore od uguale a $48$?", "options": [], "answer": "14", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33561, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nQuante sono le progressioni aritmetiche costituite da quattro numeri interi $a, b, c, d$ con $1 \\leq a < b < c < d \\leq 100$?", "options": [], "answer": "1617", "solution": "Solution:\nLa risposta è 1617. Se $a, b, c, d$ è una progressione aritmetica di quattro termini interi, anche la ragione $r$ è un intero $\\geq 1$ e si ha $d = a + 3r$. D'altra parte, il termine iniziale e il termine finale di una progressione aritmetica di quattro termini individuano completamente anche gli altri termini. Il numero delle progressioni aritmetiche cercate è pertanto in corrispondenza biunivoca con le coppie di numeri del tipo $\\{a, a+3r\\}$ contenute nell'insieme $\\{1, \\ldots, 100\\}$. Osservando che $a$ e $a+3r$ danno lo stesso resto nella divisione per 3, si possono distinguere 3 casi, a seconda che tale resto sia 1, 2 o 0:\n\n- $\\{a, a+3r\\} \\subset X_{1} = \\{1, 4, 7, \\ldots, 100\\}$. L'insieme $X_{1}$ consta di 34 elementi, quindi ci sono $\\binom{34}{2} = 561$ coppie di questo tipo.\n- $\\{a, a+3r\\} \\subset X_{2} = \\{2, 5, 8, \\ldots, 98\\}$. L'insieme $X_{2}$ consta di 33 elementi, quindi ci sono $\\binom{33}{2} = 528$ coppie di questo tipo.\n- $\\{a, a+3r\\} \\subset X_{3} = \\{3, 6, 9, \\ldots, 99\\}$. L'insieme $X_{3}$ consta di 33 elementi, quindi ci sono $\\binom{33}{2} = 528$ coppie di questo tipo.\n\nIn totale, $561 + 528 + 528 = 1617$ progressioni aritmetiche.\n\n\nSeconda soluzione.\nIndicando con $r \\geq 1$ la ragione della progressione aritmetica, si ha $1 \\leq a$ e $a + 3r \\leq 100$, per cui $3r \\leq 100 - 1 = 99$ e $r \\leq 33$. Se $a, a + r, a + 2r, a + 3r$ è una progressione aritmetica di ragione $r$, si ha $a \\geq 1$ e $a + 3r \\leq 100$, cioè $a \\leq 100 - 3r$; pertanto ci sono esattamente $100 - 3r$ progressioni aritmetiche di ragione $r$. Il numero totale di progressioni aritmetiche è quindi\n$$\n\\sum_{r=1}^{33} (100 - 3r) = 100 \\cdot 33 - 3 \\sum_{r=1}^{33} r = 3300 - 3 \\frac{33 \\cdot 34}{2} = 3300 - 1683 = 1617.\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33562, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nQual è la somma algebrica dei coefficienti del polinomio\n$$\n\\left(x^{21}+4 x^{2}-3\\right)^{2001}-\\left(x^{21}+4 x^{2}+3\\right)^{667}+x^{21}+4 x^{2} ?\n$$", "options": [], "answer": "5", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33563, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nQual è il più piccolo numero intero positivo che possiede esattamente 15 divisori?", "options": [], "answer": "144", "solution": "Solution:\nLa risposta è $144$. Supponiamo che $n = p_{1}^{a_{1}} \\cdots p_{k}^{a_{k}}$ sia la scomposizione di $n$ in fattori primi, con $p_{1} < p_{2} < \\cdots < p_{k}$ tutti distinti e $a_{i} > 0$ per $i = 1, \\ldots, k$. Un intero positivo $d$ è un divisore di $n$ se e solo se la sua scomposizione in fattori primi è del tipo $d = p_{1}^{b_{1}} \\cdots p_{k}^{b_{k}}$ con $0 \\leq b_{1} \\leq a_{1}, \\ldots, 0 \\leq b_{k} \\leq a_{k}$ (si ammette anche l'esponente $0$ perché non tutti i fattori primi di $n$ devono comparire necessariamente anche nella scomposizione di $d$: ad esempio, se tutti i $b_{i}$ sono uguali a $0$, si ottiene il divisore $d = 1$). Le possibili scelte di $d$ corrispondono dunque alle possibili scelte della sua fattorizzazione, e cioè $a_{1} + 1$ scelte per l'esponente $b_{1}$ (tutti gli interi $0, 1, \\ldots, a_{1}$), ..., $a_{k} + 1$ scelte per l'esponente $b_{k}$. Combinando queste scelte in tutti i modi possibili, si ottiene che il numero $n$ ha esattamente $(a_{1} + 1) \\cdot \\cdots \\cdot (a_{k} + 1)$ divisori.\n\nPer avere esattamente $15 = 3 \\cdot 5$ divisori, ci sono dunque solo le seguenti possibilità:\n\n(i) $k = 1$, $a_{1} = 14$ quindi $n = p_{1}^{14}$. Il più piccolo intero positivo di questo tipo è evidentemente $2^{14} = 16384$.\n\n(ii) $k = 2$, $a_{1} = 2$, $a_{2} = 4$ quindi $n = p_{1}^{2} p_{2}^{4}$. Il più piccolo intero positivo di questo tipo è evidentemente $2^{2} 3^{4} = 324$.\n\n(iii) $k = 2$, $a_{1} = 4$, $a_{2} = 2$ quindi $n = p_{1}^{4} p_{2}^{2}$. Il più piccolo intero positivo di questo tipo è evidentemente $2^{4} 3^{2} = 144$.\n\nPertanto il numero cercato è $144$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33564, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABC$ un triangolo tale che l'angolo $\\widehat{ACB} = 60^\\circ$. Sia $M$ il punto medio del lato $AB$ e siano $H$ e $K$ i piedi delle altezze che partono da $B$ e da $A$ rispettivamente. Dimostrare che il triangolo $HMK$ è equilatero.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33565, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nDeterminare tutte le coppie ordinate $(m, n)$ di interi positivi che soddisfano l'equazione\n$$\n\\frac{1}{m}+\\frac{1}{n}-\\frac{1}{mn}=\\frac{2}{5}\n$$", "options": [], "answer": "(3,10), (4,5), (10,3), (5,4)", "solution": "Solution:\nConsideriamo dapprima le coppie $(m, n)$ con $m \\leq n$. Abbiamo\n$$\n\\frac{2}{5}=\\frac{1}{m}+\\frac{1}{n}-\\frac{1}{mn} \\leq \\frac{1}{m}+\\frac{1}{m}-\\frac{1}{mn}<\\frac{2}{m}\n$$\nda cui $m<5$. Inoltre\n$$\n\\frac{2}{5}=\\frac{1}{m}+\\frac{1}{n}-\\frac{1}{mn}>\\frac{1}{m}\n$$\nda cui $m>\\frac{5}{2}$, e cioè, essendo $m$ intero, $m \\geq 3$. Ponendo $m=3$ si ottiene\n$$\n\\frac{1}{3}+\\frac{1}{n}-\\frac{1}{3n}=\\frac{2}{5}\n$$\nda cui $n=10$. Ponendo $m=4$ si ottiene\n$$\n\\frac{1}{4}+\\frac{1}{n}-\\frac{1}{4n}=\\frac{2}{5}\n$$\nda cui $n=5$. Considerando infine il caso simmetrico in cui $n \\leq m$ si ottiene che le coppie delle soluzioni devono appartenere all'insieme $\\{(3,10),(4,5),(10,3),(5,4)\\}$. È infine immediato verificare che le quattro coppie precedenti sono effettivamente soluzioni dell'equazione data.\n\nSeconda soluzione.\nMoltiplicando l'equazione data per $10 mn$ (ricordiamo che $m$ e $n$ sono diversi da zero), si ottiene\n$$\n4mn-10m-10n+10=0,\n$$\nossia\n$$\n(2m-5)(2n-5)=15\n$$\nAnche qui supponiamo dapprima che $m \\leq n$. Le uniche coppie di numeri interi che danno per prodotto $15$, con il primo termine minore o uguale al secondo, sono $(3,5),(1,15),(-5,-3)$ e $(-15,-1)$.\n- Ponendo $2m-5=1,\\ 2n-5=15$, si ottiene $(m, n)=(3,10)$.\n- Ponendo $2m-5=-5,\\ 2n-5=-3$, si ottiene $m=0$, che non è accettabile.\n- Ponendo $2m-5=-15,\\ 2n-5=-1$, si ottiene $(m, n)=(-5,2)$, che non è accettabile in quanto $m$ è negativo.\nConsiderando poi le coppie $(m, n)$ con $n1$, Alberto e Barbara giocano il seguente gioco:\n\n1. Alberto sceglie un intero positivo;\n2. Barbara sceglie un intero maggiore di 1 che sia multiplo o sottomultiplo del numero di Alberto (compreso il numero stesso);\n3. Alberto restituisce a Barbara il numero da lei detto, eventualmente aggiungendo o togliendo 1;\nil gioco prosegue ripetendo alternativamente i passi 2 e 3. Barbara vince se riesce a scegliere $n$ entro 50 mosse. Per quali valori di $n$ Barbara può vincere contro qualunque strategia di Alberto?", "options": [], "answer": "Barbara can force a win if and only if the target number is a multiple of 6.", "solution": "Solution:\n\nBarbara riesce a pronunciare il numero $n$ entro 50 mosse (in realtà ne sono necessarie al più 8), indipendentemente dalla strategia di Alberto, se e solo se $n$ è un multiplo di 6.\n\nSupponiamo infatti che $n$ sia un multiplo di 6. Allora si ha che:\n- se ad un certo passo Alberto sceglie un numero pari, al passo successivo Barbara può scegliere 2, al che Alberto può giocare solo 1, 2 o 3 ed in ogni caso al passo successivo Barbara potrà pronunciare $n$;\n- se ad un certo passo Alberto sceglie un numero dispari $d$, al passo successivo Barbara può scegliere $3d$, al che Alberto o gioca un numero pari (ricadendo nel caso precedente) o lascia $3d$ invariato. A questo punto Barbara sceglie il numero 3, al che Alberto può giocare solo 2, 3 o 4. Se gioca 2 o 4 perde perché sono numeri pari, se gioca 3 perde perché al passo successivo Barbara gioca $n$.\n\nSupponiamo ora che $n$ non sia multiplo di 6. Allora Alberto potrà sempre giocare un numero che non sia multiplo o sottomultiplo di $n$, impedendo così a Barbara di vincere alla mossa successiva. Una possibile strategia di Alberto è la seguente.\n- Al primo passo sceglie $n+1$.\n- Quando Barbara restituisce un numero $a>n$, Alberto esamina $a$ e $a+1$. Poiché $n>1$, almeno uno dei due numeri non è multiplo di $n$ e dunque può essere giocato.\n- Quando Barbara restituisce un numero $b \\frac{1}{2}\n$$\nmentre dopo 3 carte è\n$$\n\\frac{39}{52} \\cdot \\frac{38}{51} \\cdot \\frac{37}{50} < \\left(\\frac{3}{4}\\right)^3 < \\frac{1}{2}\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33576, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nTre ragazzi dicono, rispettivamente: \"I nostri nomi sono Andrea, Bruno, Carlo\"; \"I nostri nomi sono Andrea, Carlo, Daniele\"; \"I nostri nomi sono Bruno, Daniele, Enrico\".\nSapendo che ciascuno di loro ha detto un nome sbagliato e due giusti, come si chiamano i tre?\n\n(A) Andrea, Carlo, Enrico\n(B) Andrea, Bruno, Daniele\n(C) Bruno, Daniele, Enrico\n(D) Bruno, Carlo, Daniele\n(E) i dati sono insufficienti per rispondere.", "options": [], "answer": "E", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33577, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn saldatore dispone di sbarrette metalliche di lunghezza 2, e vuole costruire una griglia costituita da $n \\times n$ quadratini di lato 1 (esempio $5 \\times 5$ a fianco). Gli è permesso segare a metà le sbarrette e saldarle fra loro, ma senza sovrapporle o incrociarle. Qual è il minimo numero di sbarrette che occorre segare per ottenere la griglia?\n\n![](attached_image_1.png)", "options": [], "answer": "If n is odd, the minimum number of cuts is n+1. If n is even, the minimum number of cuts is n−1.", "solution": "Solution:\n\nSe $n$ è dispari in ogni riga c'è una sbarretta di lunghezza 1 e quindi il numero di sbarrette di lunghezza 1 è almeno $2(n+1)$; sono pertanto necessari almeno $n+1$ tagli. Per la costruzione illustrata a fianco nel caso $n=7$, ma facilmente generalizzabile ad ogni $n$ dispari, servono esattamente $n+1$ tagli, che è quindi il minimo per $n$ dispari.\n\nAnalizziamo ora il caso $n$ pari. Sia $R_{2}$ la seconda riga e $C_{2}$ la seconda colonna della griglia. Per ogni sbarretta di lunghezza due che compare\n\n![](attached_image_2.png)\n\nin $R_{2}$ la colonna corrispondente al centro di tale sbarretta deve iniziare con una sbaretta di lunghezza 1 e pertanto, dato che la lunghezza di ogni colonna è pari, essa deve avere almeno due sbarrette di lunghezza 1.\n\nQuindi se indichiamo con $i$ il numero di sbarrette di lunghezza 2 che compaiono in $R_{2}$, ci dovranno essere $n-2i$ sbarrette di lunghezza 1 in $R_{2}$ e almeno $2i$ sbarrette di lunghezza 1 nelle colonne. In conclusione tra la seconda riga e tutte le colonne ci sono almeno $n$ sbarrette di lunghezza 1. Ripetendo lo stesso ragionamento per $C_{2}$ si trova che ci sono almeno $n$ sbarrette di lunghezza 1 tra $C_{2}$ e tutte le righe. Sommando queste due stime si trova che il numero di sbarrette di lunghezza 1 è almeno $2n-k$ dove $k$ è il numero di sbarrette che sono state contate due volte (e cioè quelle appartenenti a $C_{2}$ o a $R_{2}$).\n\nNella stima si contano due sbarrette su $C_{2}$ (risp. $R_{2}$) solo se $R_{2}$ (risp. $C_{2}$) inizia con una sbarretta di lunghezza 2 (le sbarrette si incrocerebbero!). Ma questo non può succedere contemporaneamente per $R_{2}$ e $C_{2}$ e quindi $k$ è al più 2. Il minimo numero di sbarrette di lunghezza 1 è pertanto $2n-2$, il che forza $n-1$ tagli. La costruzione a fianco realizza tale valore per $n=6$.\n\n![](attached_image_3.png)", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33578, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSono date le tre quantità $X = a + 7b$, $Y = 2a + 5b$, $Z = 4a + 2b$, dove $a$ e $b$ sono numeri reali positivi. Allora:\n(A) $X < Y < Z$\n(B) $Z < Y < X$\n(C) $Y < X < Z$\n(D) $Y < Z < X$\n(E) l'ordine di $X, Y, Z$ dipende dai valori di $a$ e $b$.", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è (E). Ponendo $a = 3$ e $b = 1$ si ottiene $X = 10$, $Y = 11$, $Z = 14$ (dunque $X < Y < Z$), mentre ponendo $a = b = 1$ si ottiene $X = 8$, $Y = 7$, $Z = 6$ (dunque $X > Y > Z$). Questo permette di concludere che la relazione tra due qualunque dei tre numeri $X, Y, Z$ dipende dai particolari valori di $a$ e $b$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33579, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn fiume è attraversato da due ponti $TS$ e $VM$; le due rive $TV$ e $SM$ sono due archi di circonferenza concentrici; i due ponti $TS$ e $VM$ sono allineati con il centro (si veda la figura). Una persona vuole arrivare in $V$ partendo da $T$ scegliendo il percorso più breve tra i due possibili:\n\n(1) seguire il fiume lungo l'arco di circonferenza $TV$\n\n(2) attraversare il ponte $TS$, seguire il fiume lungo l'altra sponda $(SM)$ e attraversare il ponte $MV$.\n\nIndichiamo con $\\alpha$ l'angolo sotteso dai due archi di circonferenza, con $R$ la lunghezza di $OT$ e con $r$ la lunghezza di $OS$. Su quali dati la persona deve necessariamente avere un'informazione per effettuare la scelta migliore?\n\n(A) Su $R$, $r$ e $\\alpha$\n(B) su $\\alpha$ e su $R-r$\n(C) solo su $\\alpha$\n(D) solo su $R-r$\n(E) il primo percorso è più breve in ogni caso.\n\n![](attached_image_1.png)", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è (C). Misurando l'angolo $\\alpha$ in radianti, la lunghezza del primo percorso è $R \\alpha$, mentre la lunghezza del secondo è $2(R-r)+r \\alpha$. Perciò il primo percorso è quello più corto se e solo se\n$$\nR \\alpha < 2(R-r) + r \\alpha,\n$$\nciaè se e solo se\n$$\n(R-r)(\\alpha-2) < 0.\n$$\nDato che $R-r > 0$ la scelta dipende solo da $\\alpha$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33580, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSe $A$, $B$, $C$, $D$ rappresentano cifre distinte e, impiegando l'usuale scrittura decimale, si ha $AC \\times BC = DDD$, quanto vale la somma $A+B+C+D$?\n\n(A) 9\n(B) 13\n(C) 18\n(D) 19\n(E) 21.", "options": [], "answer": "E", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33581, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $p(x)$ un polinomio a coefficienti interi tale che $p(0)=0$ e $0 \\leq p(1) \\leq 10^{7}$. Sapendo che esistono due interi positivi $a, b$ tali che $p(a)=1999$ e $p(b)=2001$, si determinino i valori possibili di $p(1)$.\n\n(Nota: si osservi che 1999 è un numero primo)", "options": [], "answer": "1, 1999, 3996001, 7992001", "solution": "Solution:\n\nI valori possibili di $p(1)$ sono $1, 1999, 3.996.001, 7.992.001$.\n\nPer giustificare questi risultati, incominciamo a dimostrare che\n- $a$ può essere solo $1$ o $1999$;\n- $b$ è un divisore positivo di $2001$;\n- $b-a$ vale $\\pm 1$ oppure $\\pm 2$.\n\nPer dimostrare queste affermazioni, osserviamo che da $p(0)=0$ segue che il termine noto di $p(x)$ è nullo, dunque possiamo scrivere\n$$\np(x) = x q(x)\n$$\nper un opportuno polinomio $q(x)$ a coefficienti interi. Sostituendo $x=a$ in tale relazione si ha che $a q(a) = 1999$ e dunque, poiché $a$ e $q(a)$ sono interi e $1999$ è primo, la prima affermazione è dimostrata. La seconda affermazione si dimostra in modo analogo ponendo $x=b$.\n\nPer la terza affermazione, osserviamo che dal teorema di Ruffini segue che\n$$\np(x) = (x-a) r(x) + p(a) = (x-a) r(x) + 1999\n$$\nper un opportuno polinomio $r(x)$ a coefficienti interi. Sostituendo $x=b$ in tale relazione si ha che $(b-a) r(b) = 2$, cioè $b-a$ è un divisore di $2$, che è equivalente alla terza affermazione.\n\nPoiché $2001 = 3 \\cdot 23 \\cdot 29$ è facile verificare che i soli valori positivi di $a$ e $b$ che soddisfano le tre condizioni sono $a=1, b=3$, oppure $a=1999, b=2001$.\n\nNel primo caso $p(1) = p(a) = 1999$. Rimane da verificare che esistono effettivamente polinomi che verificano le condizioni richieste nel testo con $a=1$ e $b=3$: ad esempio il polinomio di secondo grado $-666 x^{2} + 2665 x$.\n\n$$\np(x) - x = x(x-1999)(x-2001) s(x)\n$$\nper un opportuno polinomio $s(x)$ a coefficienti interi. Sostituendo $x=1$ si ha quindi che\n$$\np(1) = 1 + 1998 \\cdot 2000 \\cdot s(1)\n$$\nPoiché abbiamo per ipotesi che $0 \\leq p(1) \\leq 10^{7}$, i soli valori possibili per $s(1)$ sono $0, 1, 2$, cui corrispondono $p(1) = 1, 3.996.001, 7.992.001$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33582, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn fiume è attraversato da due ponti $TS$ e $VM$; le due rive $TV$ e $SM$ sono due archi di circonferenza concentrici; i due ponti $TS$ e $VM$ sono allineati con il centro (si veda la figura). Una persona vuole arrivare in $V$ partendo da $T$ scegliendo il percorso più breve tra i due possibili:\n\n(1) seguire il fiume lungo l'arco di circonferenza $TV$\n\n(2) attraversare il ponte $TS$, seguire il fiume lungo l'altra sponda $(SM)$ e attraversare il ponte $MV$.\n\nIndichiamo con $\\alpha$ l'angolo sotteso dai due archi di circonferenza, con $R$ la lunghezza di $OT$ e con $r$ la lunghezza di $OS$. Su quali dati la persona deve necessariamente avere un'informazione per effettuare la scelta migliore?\n\n(A) Su $R$, $r$ e $\\alpha$\n(B) su $\\alpha$ e su $R-r$\n(C) solo su $\\alpha$\n(D) solo su $R-r$\n(E) il primo percorso è più breve in ogni caso.\n\n![](attached_image_1.png)", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è (C). Misurando l'angolo $\\alpha$ in radianti, la lunghezza del primo percorso è $R \\alpha$, mentre la lunghezza del secondo è $2(R-r) + r \\alpha$. Perciò il primo percorso è quello più corto se e solo se\n$$\nR \\alpha < 2(R-r) + r \\alpha,\n$$\nciaè se e solo se\n$$\n(R-r)(\\alpha - 2) < 0.\n$$\nDato che $R - r > 0$ la scelta dipende solo da $\\alpha$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33583, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nNel registrare le dichiarazioni dei tre imputati ad un processo, il cancelliere è stato piuttosto trascurato, e dal verbale risulta quanto segue:\nCarlo: il colpevole è ... ario.\nDario: il colpevole è Dario.\nMario: il colpevole è ....ario.\nSapendo che il colpevole ha mentito e almeno uno degli innocenti ha detto la verità, che cosa si può concludere?\n(A) Il colpevole è Dario\n(B) non si può determinare il colpevole\n(C) Carlo ha accusato Dario\n(D) Mario ha accusato Dario\n(E) Mario ha accusato Mario.", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). Poiché il colpevole ha mentito non può essere Dario, che si è autoaccusato. Poiché uno degli innocenti ha detto la verità, il colpevole finisce per ario, e dunque è Mario. Perciò Mario ha mentito, e dunque ha accusato Dario.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33584, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSiano $A$ e $B$ due punti nello spazio. L'insieme dei punti dello spazio la cui distanza da $B$ è doppia di quella da $A$ è\n(A) un piano\n(B) una circonferenza\n(C) una superficie sferica\n(D) la superficie laterale di un cono\n(E) la superficie laterale di un cilindro.", "options": [], "answer": "C", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33585, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn un paese l'uno per cento della popolazione è affetto da una certa malattia. Il test per sapere se si è contagiati sbaglia nell'uno per cento dei casi. Lorenzo si sottopone al test e risulta malato. Qual è la probabilità che egli sia sano?\n\n(A) $\\frac{99}{10000}$\n(B) $\\frac{1}{100}$\n(C) $\\frac{99}{5000}$\n(D) $\\frac{1}{2}$\n(E) $\\frac{99}{100}$.", "options": [], "answer": "D", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33586, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSiano $x, y$ numeri reali positivi. Quale delle seguenti condizioni è sufficiente per garantire che $x^{y}>y^{x}$?\n\n(A) $1 < x < y$\n(B) $1 < y < x$\n(C) $x < 1 < y$\n(D) $x < y < 1$\n(E) $y < x < 1$.", "options": [], "answer": "E", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33587, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nQuante sono le terne $(a, b, c)$ di numeri reali che verificano il seguente sistema?\n$$\n\\left\\{\\begin{array}{l}\na^{2}+b^{2}+c^{2}=1 \\\\\na^{3}+b^{3}+c^{3}=1\n\\end{array}\\right.\n$$\n(A) Nessuna\n(B) 1\n(C) 3\n(D) 6\n(E) infinite.", "options": [], "answer": "C", "solution": "Solution:\n$a^{2}+b^{2}+c^{2}=1$ e quindi $|a| \\leq 1$. Ciò implica che $a^{3} \\leq |a|^{3} \\leq a^{2}$, dove il segno di uguaglianza vale se e solo se $a=0$ oppure $a=1$. Analogamente si ragiona per $b$ e $c$. Perciò se uno dei tre numeri fosse diverso da 0 e da 1 si avrebbe\n$$\n1=a^{3}+b^{3}+c^{3} n$ (poiché $p^{n} \\geq 2^{n} = (1+1)^{n} = 1^{n} + n \\cdot 1^{n-1} + \\ldots > n$).\n- Se $p$ è un fattore di $2001$, allora $p^{n-1}$ deve dividere $n$, il che è possibile solo per $n = 1$. Infatti per $n > 1$ si ha che $p^{n-1} \\geq 2^{n-1} = (1+1)^{n-1} = 1^{n} + (n-1) \\cdot 1^{n-1} + \\ldots > n$.\n\nAbbiamo così dimostrato che $p$ può essere solo $3$, $23$, o $29$, e deve comparire con esponente $1$ nella fattorizzazione di $x$. Pertanto $x$ è necessariamente un divisore di $2001$.\n\nD'altra parte se $d$ è un qualunque divisore di $2001$, posto $e = 2001 / d$ si ottiene immediatamente $d^{2001} = d^{e d} = \\left(d^{e}\\right)^{d}$, quindi la coppia $\\left(d, d^{e}\\right)$ è soluzione dell'equazione.\n\n\nSeconda soluzione\n\nSia $d$ il M.C.D. tra $x$ e $2001$, e pongasi $x = d a$, $2001 = d e$, cosicché $a, e$ sono primi fra loro. L'equazione si semplifica in $x^{e} = y^{a}$, e quindi si ha $x = z^{a}$, per un opportuno $z$, come si evince dal confronto tra gli esponenti di ciascun fattore primo di $x$ nei due membri dell'equazione.\n\nPoiché $x$ e $z$ hanno gli stessi fattori primi e $d$, come divisore di $2001$, è prodotto di primi distinti, si ha anche $z = d b$, e quindi $d a = (d b)^{a}$, ossia $a = b^{a} d^{a-1}$.\n\nQuesto implica che $x = d$, e quindi $x$ divide $2001$. Infatti se $b > 1$, allora $b^{a} > a$, mentre se $b = 1$ e $a, d > 1$, allora $d^{a-1} \\geq 3^{a-1} > 2^{a-1} \\geq a$.\n\n(Si ricordi che per ogni $b \\geq 2$ ed ogni intero $a \\geq 0$ si ha $b^{a} = (1 + (b-1))^{a} = 1 + a(b-1) + \\ldots \\geq a + 1$).\n\nD'altra parte se $d$ è un qualunque divisore di $2001$, posto $e = 2001 / d$ si ottiene immediatamente $d^{2001} = d^{e d} = \\left(d^{e}\\right)^{d}$, quindi la coppia $\\left(d, d^{e}\\right)$ è soluzione dell'equazione.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33591, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nChiamiamo numeri monotòni gli interi positivi tali che\n- si scrivono usando almeno due cifre;\n- nessuna cifra è zero;\n- le cifre compaiono in ordine strettamente crescente o strettamente decrescente.\n(Ad esempio $127$ e $9742$ sono numeri monotoni, mentre $172$, $1224$ e $7320$ non lo sono.)\n\na. Calcolare la somma di tutti i numeri monotoni di cinque cifre.\n\nb. Determinare con quanti zeri termina il minimo comune multiplo di tutti i numeri monotoni (senza vincoli sul numero di cifre).", "options": [], "answer": "a: 13999860; b: 3", "solution": "Solution:\n\na. Chiamiamo crescenti i numeri monotoni le cui cifre compaiono in ordine crescente, e analogamente chiamiamo decrescenti i numeri monotoni le cui cifre compaiono in ordine decrescente. Chiamiamo inoltre gemello di un numero monotono $N$, l'intero che si scrive sostituendo ogni cifra di $N$ con il suo complementare a $10$. Così, ad esempio, il gemello di $12578$ è $98532$.\n\nSi noti che ogni numero decrescente è il gemello di un numero crescente, e viceversa. Inoltre, è facile vedere che la somma di un numero monotono di cinque cifre e del suo gemello è sempre uguale a $111110$.\n\nSupponiamo ora di aver scritto la somma $S$ di tutti i numeri monotoni di cinque cifre. In tale somma possiamo raggruppare gli addendi a due a due, in modo che a ogni numero crescente corrisponda il suo gemello decrescente. Per l'osservazione precedente, facendo le somme a due a due, abbiamo che $S$ diventa la somma di addendi tutti uguali a $111110$. Inoltre gli addendi sono tanti quanti i numeri crescenti, i quali a loro volta sono tanti quanti i modi di scegliere cinque cifre diverse in un insieme di nove, e cioè\n$$\n\\binom{9}{5} = \\frac{9!}{5!\\,4!} = 126\n$$\nSenza utilizzare il significato combinatorio dei coefficienti binomiali si può ragionare nel modo seguente. Scegliamo anzitutto le $5$ cifre diverse che costituiscono il numero: la prima si può scegliere in $9$ modi diversi, la seconda in $8$, ..., la quinta in $5$. Cosí facendo non otteniamo sempre un numero crescente: infatti, per ottenerlo, la prima cifra deve essere la più piccola delle $5$ scelte, il che succede solo una volta su $5$, la seconda deve essere la più piccola delle $4$ rimaste, il che succede solo una volta su $4$, e così via. Di conseguenza i numeri crescenti sono\n$$\n\\frac{9 \\cdot 8 \\cdot 7 \\cdot 6 \\cdot 5}{5 \\cdot 4 \\cdot 3 \\cdot 2} = 126\n$$\nPertanto la somma di tutti i numeri monotoni di cinque cifre è $126 \\cdot 111110 = 13999860$.\n\n\nb. Indichiamo con $M$ il minimo comune multiplo di tutti i numeri monotoni. Osserviamo preliminarmente che l'insieme dei numeri monotoni è finito (perché nessun numero monotono può avere più di nove cifre), dunque $M$ è ben definito.\n\nPer sapere con quanti zeri termina $M$, occorre conoscere la più grande potenza di $10$ che divide $M$. A tale scopo consideriamo separatamente le potenze di $2$ e di $5$. Incominciamo ad analizzare il caso del $5$. La più grande potenza di $5$ che divide $M$ è uguale alla più grande potenza di $5$ per cui è divisibile un numero monotono. Tale potenza è almeno $3$, poiché $5^{3} = 125$ è un numero monotono. Inoltre tutti gli interi divisibili per $125$ terminano necessariamente con $000$, $125$, $250$, $375$, $500$, $625$, $750$, $875$, e di conseguenza i multipli monotoni di $125$ possono terminare solo con $125$ o $875$. I soli numeri monotoni ad avere tale terminazione sono $125$, $875$, $9875$, nessuno dei quali è divisibile per $5^{4}$. Pertanto la più grande potenza di $5$ che divide $M$ è $5^{3}$.\n\nPoiché ovviamente $M$ contiene più di tre fattori $2$ (ad esempio $2^{4} = 16$ è un numero monotono), ne segue che $M$ termina con esattamente $3$ zeri.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33592, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABC$ un triangolo e sia $\\gamma$ la circonferenza inscritta in $ABC$. La circonferenza $\\gamma$ è tangente al lato $AB$ nel punto $T$. Sia $D$ il punto di $\\gamma$ diametralmente opposto a $T$, e sia $S$ il punto di intersezione della retta passante per $C$ e $D$ con il lato $AB$.\n\nDimostrare che $AT = SB$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nCon riferimento alla figura a fianco, tracciamo la retta $r$ passante per $D$ e parallela al lato $AB$. Siano $L$ ed $M$, rispettivamente, le intersezioni di $r$ con i lati $AC$ e $BC$. Denotiamo inoltre con $H$ e $K$, rispettivamente, i punti di tangenza di $\\gamma$ con i lati $AC$ e $BC$. Poiché sulle tangenti condotte da un punto esterno ad una circonferenza risultano uguali i segmenti compresi fra il dato punto esterno e i rispettivi punti di contatto (nel seguito \"teorema delle tangenti\") abbiamo $CH = CK$, $LH = LD$ e $MK = MD$. Scrivendo $CH = CL + LH$, $CK = CM + MK$ e, sfruttando le uguaglianze precedenti, si ha\n$$\nCL + LD = CM + MD.\n$$\n\n![](attached_image_1.png)\n\nI triangoli $CLM$ e $CAB$ sono simili, perché hanno i lati paralleli. Moltiplicando l'uguaglianza precedente per il rapporto di similitudine, otteniamo $CA + AS = CB + BS$, ossia $CH + HA + AT + TS = CK + KB + BS$. Utilizzando ancora il teorema delle tangenti, abbiamo $CH = CK$, $AH = AT$ e $KB = TB = TS + SB$. Ne segue che $2AT + TS = TS + 2BS$, e quindi $AT = BS$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33593, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABC$ un triangolo e sia $\\gamma$ la circonferenza inscritta in $ABC$. La circonferenza $\\gamma$ è tangente al lato $AB$ nel punto $T$. Sia $D$ il punto di $\\gamma$ diametralmente opposto a $T$, e sia $S$ il punto di intersezione della retta passante per $C$ e $D$ con il lato $AB$.\nDimostrare che $AT = SB$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nCon riferimento alla figura a fianco, tracciamo la retta $r$ passante per $D$ e parallela al lato $AB$. Siano $L$ ed $M$, rispettivamente, le intersezioni di $r$ con i lati $AC$ e $BC$. Denotiamo inoltre con $H$ e $K$, rispettivamente, i punti di tangenza di $\\gamma$ con i lati $AC$ e $BC$. Poiché sulle tangenti condotte da un punto esterno ad una circonferenza risultano uguali i segmenti compresi fra il dato punto esterno e i rispettivi punti di contatto (nel seguito \"teorema delle tangenti\") abbiamo $CH = CK$, $LH = LD$ e $MK = MD$. Scrivendo $CH = CL + LH$, $CK = CM + MK$ e, sfruttando le uguaglianze precedenti, si ha\n$$\nCL + LD = CM + MD.\n$$\nI triangoli $CLM$ e $CAB$ sono simili, perché hanno i lati paralleli. Moltiplicando l'uguaglianza precedente per il rapporto di similitudine, otteniamo $CA + AS = CB + BS$, ossia $CH + HA + AT + TS = CK + KB + BS$. Utilizzando ancora il teorema delle tangenti, abbiamo $CH = CK$, $AH = AT$ e $KB = TB = TS + SB$. Ne segue che $2AT + TS = TS + 2SB$, e quindi $AT = SB$.\n\n![](attached_image_1.png)", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33594, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn pannello contiene 100 lampadine, disposte in modo da formare un quadrato di 10 righe e 10 colonne. Alcune di esse sono accese, le altre sono spente.\nL'impianto elettrico è tale che quando si preme il pulsante corrispondente ad una qualunque delle lampadine, cambiano di stato (cioè, si accendono o si spengono) tutte le lampadine che si trovano sulla sua colonna e tutte quelle che si trovano sulla sua riga (compresa la lampadina corrispondente all'interruttore premuto).\n\na) Partendo da quali configurazioni, operando opportunamente, è possibile fare in modo che alla fine tutte le lampadine risultino accese?\n\nb) Qual è la risposta alla domanda precedente se le lampadine sono 81, disposte in modo da formare un pannello di 9 righe e 9 colonne?", "options": [], "answer": "a) From any initial configuration it is possible to make all lamps lit.\nb) It is possible if and only if the number of lit lamps in every row and in every column has the same parity across all rows and columns; that is, either all rows and all columns have an even number of lit lamps, or all rows and all columns have an odd number of lit lamps.", "solution": "Solution:\n\na) È facile verificare che se si preme il pulsante di tutte le lampadine di una riga e di una colonna tutte le lampadine del pannello cambiano di stato un numero pari di volte, con l'unica eccezione proprio della lampadina che si trova all'incrocio della riga e della colonna considerata, che cambia stato 19 volte.\nIn definitiva queste \"mosse\" consentono di accendere una lampadina alla volta. È dunque possibile raggiungere la configurazione in cui tutte le lampadine sono accese partendo da qualsiasi configurazione.\n\nb) In questo caso è facile verificare che premendo il pulsante di una singola lampadina il numero di lampadine che cambiano di stato su ogni singola riga e su ogni singola colonna è comunque dispari (o 1 o 9). Conseguenza di questo fatto è che condizione necessaria per raggiungere la configurazione in cui tutte le lampadine sono accese è che all'inizio il numero di lampadine accese sia pari per tutte le righe e per tutte le colonne o sia dispari per tutte le righe e tutte le colonne.\nTale condizione è d'altra parte anche sufficiente. Supponiamo infatti di partire da una configurazione in cui ci sia un numero dispari di lampadine spente in ogni riga e ogni colonna. Premiamo il pulsante di tutte le lampadine spente. In questo modo ogni lampadina accesa cambia di stato tante volte quante sono le lampadine spente sulla sua stessa riga e sulla sua stessa colonna, quindi un numero pari di volte (dispari + dispari), mentre ogni lampadina spenta cambia di stato un numero dispari di volte (dispari + dispari -1, dove il \"-1\" serve a non contare due volte la lampadina spenta in questione, una volta come componente della sua riga e un'altra come componente della sua colonna): dunque tutte le lampadine accese rimangono accese, e tutte quelle spente si accendono.\nLa stessa mossa, cioè premere il pulsante di tutte le lampadine spente, funziona anche se nella configurazione di partenza c'è un numero pari di lampadine spente in ogni riga e ogni colonna. Infatti anche in questo caso le lampadine accese cambiano stato un numero pari di volte (pari + pari), mentre quelle spente cambiano stato un numero dispari di volte (pari + pari -1).", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33595, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nNel quartiere di S. Maria ci sono $9897$ televisori. Solo tre famiglie del quartiere non possiedono televisori, mentre il $4\\%$ ne ha due, il $2,5\\%$ ne ha $3$ e lo $0,5\\%$ ne ha addirittura $8$. Tutte le altre famiglie possiedono un solo televisore. Quante famiglie abitano nel quartiere di S. Maria?\n\n(A) $9900$\n(B) $9252$\n(C) $9000$\n(D) $8800$\n(E) $8285$.", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). Se regaliamo un televisore alle famiglie che non ce l'hanno, la percentuale di famiglie che hanno solo un televisore diventa il $93\\%$, e il numero totale di televisori $9900$. Detto dunque $N$ il numero di famiglie del quartiere abbiamo la seguente relazione:\n$$\nN \\frac{93}{100} + 2N \\frac{4}{100} + 3N \\frac{2,5}{100} + 8N \\frac{0,5}{100} = 9900.\n$$\nDa cui\n$$\nN\\left(\\frac{93}{100} + \\frac{8}{100} + \\frac{7,5}{100} + \\frac{4}{100}\\right) = N\\left(\\frac{186 + 16 + 15 + 8}{200}\\right) = N \\frac{225}{200} = 9900,\n$$\nquindi $N = 8800$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33596, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn atleta ha appena affrontato una gara di triathlon. Questa competizione si divide in tre fasi: la prima è una gara di nuoto, la seconda di ciclismo e la terza di corsa. Sapendo che la sua velocità media nei tre tratti è stata rispettivamente di $3\\ \\mathrm{Km}/\\mathrm{h}$, $30\\ \\mathrm{Km}/\\mathrm{h}$ e $17\\ \\mathrm{Km}/\\mathrm{h}$, che la lunghezza totale del tracciato è $30\\ \\mathrm{Km}$ e che il tempo che ha impiegato a concludere la gara è stato di un'ora e 40 minuti, determinare per quanto tempo è andato in bicicletta.\n\n(A) $66'\\ 20''$\n(B) $60'$\n(C) $45'$\n(D) $33'\\ 20''$\n(E) non si può determinare.", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è $\\mathbf{( E )}$. Un modo per rendersi conto di ciò consiste nel mostrare due diverse suddivisioni del tracciato in tre parti per cui siano soddisfatte le condizioni del problema. Ad esempio: l'atleta potrebbe aver nuotato per $\\frac{7}{27}$ di ora, corso per un'ora e corso in bicicletta per $\\frac{11}{27}$ \\mathrm{di} ora. In tal caso avrebbe gareggiato per $\\left(\\frac{7}{27}+1+\\frac{11}{27}\\right)$ ore $=\\left(1+\\frac{2}{3}\\right)$ ore $=100$ minuti ed avrebbe percorso una distanza pari a\n$$\n\\left(3 \\frac{7}{27}+17+30 \\frac{11}{27}\\right) \\mathrm{Km}=30 \\mathrm{Km}\n$$\nOppure potrebbe aver nuotato per mezz'ora, corso per mezz'ora e corso in bicicletta per 40 minuti (che sono $\\frac{2}{3}$ di ora). Anche in tal caso il tempo della gara sarebbe stato di un'ora e quaranta minuti ed il tragitto lungo\n$$\n3 \\frac{1}{2}+17 \\frac{1}{2}+30 \\frac{2}{3}=30 \\mathrm{Km}\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33597, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn puzzle da 1000 pezzi può essere montato incastrando i pezzi uno dopo l'altro, in modo da inserire ciascun nuovo pezzo nella porzione di puzzle già composta, oppure costruendo diversi gruppi di pezzi e poi unendo questi tra di loro. Ogni unione (di due singoli pezzi, o di due gruppi, o di un pezzo a un gruppo) conta una mossa. Qual è il numero minimo di mosse necessarie per completare il puzzle?", "options": [], "answer": "999", "solution": "Solution:\n\nLa risposta è 999. Dimostriamo per induzione che per costruire un nucleo di $n$ pezzi sono necessarie $n-1$ mosse, comunque si proceda. L'affermazione è chiaramente vera per un puzzle costituito da un solo pezzo. Supponiamo che questa affermazione sia vera per tutti i nuclei con meno di $n$ pezzi. L'ultima mossa da compiere per costruire un nucleo di $n$ pezzi sarà l'unione di due nuclei di $m$ e $n-m$ pezzi. Per ipotesi induttiva, per fare questi due nuclei sono state necessarie rispettivamente $m-1$ e $n-m-1$ mosse. In totale le mosse sono dunque:\n$$\n(m-1)+(n-m-1)+1=n-1 .\n$$\nQuindi per costruire tutto il puzzle occorrono in ogni caso 999 mosse.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33598, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSiano $a < b < c$ interi positivi tali che $a^{2} + b^{2} + c^{2}$ ha lo stesso numero di cifre di $a + b + c$. Qual è il massimo valore che può assumere $c$?", "options": [], "answer": "9", "solution": "Solution:\n\nLa risposta è $9$. La condizione che $a + b + c$ abbia lo stesso numero di cifre di $a^{2} + b^{2} + c^{2}$ implica che\n$$\n\\frac{a^{2} + b^{2} + c^{2}}{a + b + c} < 10\n$$\nPertanto si deve avere che\n$$\na^{2} - 10a + b^{2} - 10b + c^{2} - 10c < 0\n$$\nil che è equivalente ad affermare che\n$$\n(a - 5)^{2} + (b - 5)^{2} + (c - 5)^{2} < 75.\n$$\nIn particolare $(c - 5)^{2} < 75$, da cui si ricava $c < 14$. Osserviamo ora che se $9 < c < 14$ allora $a^{2} + b^{2} + c^{2}$ ha almeno $3$ cifre, mentre $a + b + c \\leq 3c$ ne ha $2$. Quindi $c$ è al più $9$ ed è facile verificare che la terna $(1, 2, 9)$ soddisfa le condizioni richieste.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33599, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nGli interi da $1$ a $9$ sono scritti nelle nove caselle di una scacchiera $3 \\times 3$, ogni intero in una casella diversa, in modo tale che ogni coppia di numeri consecutivi sia scritta in due caselle adiacenti (cioè aventi un lato in comune). Quanti sono i valori possibili del numero posto sulla casella centrale?", "options": [], "answer": "5", "solution": "Solution:\n\nLa risposta è $5$. Perché la condizione data si possa realizzare, è necessario che si possa fare un percorso dalla casella con il numero $1$ alla casella con il numero $9$ muovendo successivamente da una casella ad una a lei adiacente. Coloriamo la scacchiera nel modo usuale, in modo tale che le caselle agli angoli e quella centrale siano nere e le altre siano bianche. Muovendo da una casella ad una a lei adiacente si passa da una casella nera ad una bianca, o viceversa. Ne segue che, se l'$1$ fosse in una casella bianca, allora il $2$ dovrebbe essere in una nera, il $3$ in una bianca, e così via. Quindi tutti i numeri dispari da $1$ a $9$, che sono $5$, dovrebbero essere in caselle bianche, mentre tutti i numeri pari, che sono $4$, dovrebbero essere in caselle nere: ma questo è impossibile, dato che ci sono $5$ caselle nere e $4$ bianche. Viceversa, è facile costruire dei percorsi a spirale o a serpentina in modo che uno qualunque dei numeri dispari $1,3,5,7,9$ compaia nella casella centrale.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33600, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nQual è il minimo valore dell'espressione $x^{2}-8 x y+19 y^{2}-6 y+14$ al variare di $x$ e $y$ fra i numeri reali?", "options": [], "answer": "11", "solution": "Solution:\n\nLa risposta è 11. Possiamo scrivere\n$$\n\\begin{aligned}\n& x^{2}-8 x y+19 y^{2}-6 y+14= \\\\\n= & x^{2}-8 x y+16 y^{2}+3 y^{2}-6 y+3+11= \\\\\n= & (x-4 y)^{2}+3(y-1)^{2}+11 \\geq 11 .\n\\end{aligned}\n$$\nIl valore 11 si ottiene per $y=1, x=4$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33601, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nMichela e Nicola stanno correndo lungo il perimetro di un parco $C$ quadrato $A B C D$ di diagonale $6~\\mathrm{km}$. Essi corrono in senso orario alla stessa velocità. Il loro cane Pallino corre all'interno del parco in modo da stare sempre a metà strada tra Nicola e Michela. Inizialmente Michela è nel vertice $B$ mentre Nicola è nel punto medio del lato $A D$. Quanti chilometri ha percorso Pallino quando Nicola ha fatto un giro del parco?\n\n![](attached_image_1.png)", "options": [], "answer": "6", "solution": "Solution:\n\nLa risposta è 6. Si scelga un riferimento cartesiano ponendo il vertice $B$ all'origine e gli assi $x$ e $y$ rispettivamente lungo i segmenti $A B$ e $B C$.\n\nSi consideri il tratto che Nicola percorre da $T$, punto medio di $A D$, al vertice $A$ (vedi figura 1). Poiché Nicola e Michela corrono con la medesima velocità, quando Nicola si trova in $N$ e Michela si trova in $M$, risulta $T N = B M$. Per simmetria centrale rispetto al punto $P$, di coordinate $\\left(\\frac{\\sqrt{18}}{2}, \\frac{\\sqrt{18}}{4}\\right)$, si ha che il cane Pallino durante questo tratto resta fermo nel punto $P$.\n\nSi consideri ora il tratto che Nicola percorre da $A$ al punto medio di $A B$ (vedi figura 2). Sempre per il fatto che Nicola e Michela corrono con la stessa velocità si ha che $B N + B M = 3 \\frac{\\sqrt{18}}{2}$, dette quindi $x$ e $y$ le coordinate del punto medio di $M N$ si ottiene la relazione:\n$$\nx + y = \\frac{3}{4} \\sqrt{18}\n$$\nTale relazione implica che durante questo tratto Pallino si muove su una retta, in particolare percorre il segmento $P Q$ dove $Q$ è il punto di coordinate $\\left(\\frac{\\sqrt{18}}{4}, \\frac{\\sqrt{18}}{2}\\right)$ in cui si trova Pallino quando Michela è in $C$ e Nicola è nel punto medio di $A B$.\n\nOra la situazione è identica a quella iniziale ruotata di un angolo di $90^\\circ$. Pallino percorre quindi (vedi figura 3) il quadrato $P Q R S$ fermandosi per un certo tempo ai vertici. Tale quadrato ha lato pari a:\n$$\n\\sqrt{\\left(x_{P}-x_{Q}\\right)^{2}+\\left(y_{P}-y_{Q}\\right)^{2}}=\\sqrt{\\left(\\frac{\\sqrt{18}}{4}-\\frac{\\sqrt{18}}{2}\\right)^{2}+\\left(\\frac{\\sqrt{18}}{2}-\\frac{\\sqrt{18}}{4}\\right)^{2}}=\\frac{3}{2}.\n$$\nPertanto, quando Nicola ha fatto il giro del parco, Pallino ha percorso $4 \\cdot \\frac{3}{2} = 6$ chilometri.\n\n![](attached_image_2.png)\n\n![](attached_image_3.png)\n\n![](attached_image_4.png)", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33602, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nQuante sono le terne di interi $(a, b, c)$ tutti maggiori di $1$ tali che $a^{b^{c}} < 2002$?", "options": [], "answer": "7", "solution": "Solution:\n\nDistinguiamo 2 casi:\n\n- se $a=2$ si deve avere $b^{c}<11$ perché $2^{11}=2048>2002$, quindi $b<4$ e se $b=2$ allora $c$ può essere $2$ o $3$, mentre se $b=3$ allora $c=2$: si ottengono così le soluzioni $(2,2,2)$, $(2,2,3)$, $(2,3,2)$;\n\n- se $a>2$ si deve avere $b^{c}<7$ perché $a^{7} \\geq 3^{7}=2187>2002$. Pertanto l'unica possibilità è avere $b=2$ e $c=2$. Siccome $6^{4}=1296<2002$ mentre $7^{4}=2401>2002$, i valori ammissibili sono $a=3,4,5,6$ che forniscono le soluzioni $(3,2,2)$, $(4,2,2)$, $(5,2,2)$, $(6,2,2)$ per un totale di $7$ soluzioni.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33603, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDeterminare il numero dei parallelepipedi retti con base quadrata che hanno tutti gli spigoli di lunghezza intera e volume uguale a $270000$.", "options": [], "answer": "18", "solution": "Solution:\n\nSiano $x$ il lato della base e $y$ l'altezza di un parallelepipedo che soddisfa le condizioni date. Allora $x$ e $y$ sono interi positivi e\n$$\nx^2 y = 270000 = 3^3 \\cdot 2^4 \\cdot 5^4.\n$$\nPer la fattorizzazione unica degli interi, si ha $x = 3^a 2^b 5^c$, $y = 3^d 2^e 5^f$, dove gli esponenti soddisfano le seguenti condizioni:\n$$\n\\begin{array}{ll}\n2a + d = 3, & 0 \\leq a, d \\leq 3,\n\\end{array}\n$$\nDunque i soli casi possibili sono:\n$$\n\\begin{array}{r}\n(a, d) = (0,3),\\ (1,1) \\\\\n(b, e) = (0,4),\\ (1,2),\\ (2,0) \\\\\n(c, f) = (0,4),\\ (1,2),\\ (2,0)\n\\end{array}\n$$\nCombinando in tutti i modi possibili le due possibilità per $(a, d)$, le tre possibilità per $(b, e)$ e le tre possibilità per $(c, f)$ si ottengono $2 \\cdot 3 \\cdot 3 = 18$ parallelepipedi.", "topic": "Geometry", "subtopic": "Solid Geometry" }, { "id": 33604, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia dato un triangolo $ABC$. Si indichino con $M$ ed $N$ i punti medi rispettivamente dei lati $AC$ e $BC$. Siano inoltre $S$ e $T$ rispettivamente punti sui lati $AC$ e $BC$ tali che:\n$$\nAS = \\frac{1}{3} AC \\quad BT = \\frac{1}{3} BC.\n$$\nDimostrare che le bisettrici degli angoli $\\angle AST$ e $\\angle BTS$ si incontrano su un punto $P$ del lato $AB$ se e solo se il quadrilatero $AMNB$ è circoscrivibile ad una circonferenza.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nSi supponga che le bisettrici degli angoli $\\angle AST$ e $\\angle BTS$ si incontrino in un punto $P$ del lato $AB$.\nDal momento che $\\frac{AS}{AC} = \\frac{BT}{BC}$, per il teorema di Talete, $ST$ e $AB$ sono segmenti paralleli, pertanto gli angoli $\\angle PST$ e $\\angle SPA$ sono uguali. Ora, poiché per ipotesi $\\angle ASP = \\angle SPA$, si ha che il triangolo $ASP$ è isoscele e quindi $AS = AP$. In modo analogo si ricava che anche i segmenti $BT$ e $BP$ hanno lunghezze uguali. Ricordando che:\n$$\nAS = \\frac{1}{3} AC \\quad BT = \\frac{1}{3} BC,\n$$\nsi ottiene:\n$$\nAB = AS + BT = \\frac{1}{3}(AC + BC).\n$$\n\n![](attached_image_1.png)\n\nDalla relazione scritta sopra si ricava inoltre:\n$$\nMA + NB = \\frac{1}{2}(AC + BC) = \\frac{3}{2} AB\n$$\nD'altra parte $MN = \\frac{AB}{2}$ e quindi risulta:\n$$\nMN + AB = AM + BN\n$$\ncondizione equivalente a dire che il quadrilatero $ABNM$ sia circoscrivibile ad una circonferenza.\n\n\nSi supponga ora che il quadrilatero $ABNM$ sia circoscrivibile ad una circonferenza, pertanto si ha:\n$$\nMN + AB = AM + BN\n$$\nPoiché vale sempre la condizione $MN = \\frac{AB}{2}$ risulta\n\n![](attached_image_2.png)\n\n$AM + BN = 3 \\frac{AB}{2}$ e pertanto si ricava come prima:\n$$\nAS + BT = AB.\n$$\nSiano ora $P_1$ e $P_2$ i punti di incontro col segmento $AB$ rispettivamente delle bisettrici di $\\angle AST$ e $\\angle BTS$. In modo del tutto analogo al precedente si ricava $AS = AP_1$ e $BT = BP_2$. Pertanto $AP_1 + P_2B = AB$ e quindi necessariamente $P_1 = P_2$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33605, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia dato un triangolo $ABC$. Si indichino con $M$ ed $N$ i punti medi rispettivamente dei lati $AC$ e $BC$. Siano inoltre $S$ e $T$ rispettivamente punti sui lati $AC$ e $BC$ tali che:\n$$\nAS = \\frac{1}{3} AC \\quad BT = \\frac{1}{3} BC.\n$$\nDimostrare che le bisettrici degli angoli $\\angle AST$ e $\\angle BTS$ si incontrano su un punto $P$ del lato $AB$ se e solo se il quadrilatero $AMNB$ è circoscrivibile ad una circonferenza.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nSi supponga che le bisettrici degli angoli $\\angle AST$ e $\\angle BTS$ si incontrino in un punto $P$ del lato $AB$.\nDal momento che $\\frac{AS}{AC} = \\frac{BT}{BC}$, per il teorema di Talete, $ST$ e $AB$ sono segmenti paralleli, pertanto gli angoli $P\\widehat{S}T$ e $S\\widehat{P}A$ sono uguali. Ora, poiché per ipotesi $A\\widehat{S}P = S\\widehat{P}A$, si ha che il triangolo $ASP$ è isoscele e quindi $AS = AP$. In modo analogo si ricava che anche i segmenti $BT$ e $BP$ hanno lunghezze uguali. Ricordando che:\n$$\nAS = \\frac{1}{3} AC \\quad BT = \\frac{1}{3} BC,\n$$\nsi ottiene:\n$$\nAB = AS + BT = \\frac{1}{3}(AC + BC).\n$$\n\n![](attached_image_1.png)\n\nDalla relazione scritta sopra si ricava inoltre:\n$$\nMA + NB = \\frac{1}{2}(AC + BC) = \\frac{3}{2} AB\n$$\nD'altra parte $MN = \\frac{AB}{2}$ e quindi risulta:\n$$\nMN + AB = AM + BN\n$$\ncondizione equivalente a dire che il quadrilatero $ABNM$ sia circoscrivibile ad una circonferenza.\n\n![](attached_image_1.png)\n\nSi supponga ora che il quadrilatero $ABNM$ sia circoscrivibile ad una circonferenza, pertanto si ha:\n$$\nMN + AB = AM + BN\n$$\nPoiché vale sempre la condizione $MN = \\frac{AB}{2}$ risulta\n![](attached_image_2.png)\n$AM + BN = 3 \\frac{AB}{2}$ e pertanto si ricava come prima:\n$$\nAS + BT = AB.\n$$\nSiano ora $P_1$ e $P_2$ i punti di incontro col segmento $AB$ rispettivamente delle bisettrici di $\\angle AST$ e $\\angle BTS$. In modo del tutto analogo al precedente si ricava $AS = AP_1$ e $BT = BP_2$. Pertanto $AP_1 + P_2B = AB$ e quindi necessariamente $P_1 = P_2$.\n\n![](attached_image_2.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33606, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDeterminare tutte le terne di interi positivi $ (x, y, z) $ che soddisfano il seguente sistema:\n$$\n\\left\\{\\begin{array}{l}\n45 x y^{2}=8 z^{3} \\\\\nx y z<1000\n\\end{array}\\right.\n$$", "options": [], "answer": "(6, 10, 15)", "solution": "Solution:\n\nL'unica soluzione è $(6,10,15)$. Osserviamo anzitutto che $45$ divide $z^{3}$, e quindi $z$ è divisibile per $3 \\cdot 5=15$. Analogamente $8$ divide $x y^{2}$, e quindi $x$ e $y$ non possono essere dispari entrambi. Poniamo $z=15 w$ e distinguiamo 3 casi:\n\n(1) $x$ dispari: allora $8$ divide $y^{2}$, quindi $4$ divide $y$ e, posto $y=4 v$, il sistema diviene\n$$\n\\left\\{\\begin{array}{l}\n2 x v^{2}=75 w^{3} \\\\\nx v w<\\frac{50}{3}\n\\end{array}\\right.\n$$\nimpossibile perché dalla prima equazione segue che $15$ divide $x v$ e $2$ divide $w$, da cui $x v w \\geq 30$.\n\n(2) $y$ dispari: allora $8$ divide $x$ e, posto $x=8 u$, il sistema diviene\n$$\n\\left\\{\\begin{array}{l}\nu y^{2}=75 w^{3} \\\\\nu y w<\\frac{25}{3}\n\\end{array}\\right.\n$$\nche è ancora impossibile perché $15$ divide $u y$, quindi $u y w \\geq 15$.\n\n(3) $x$ e $y$ pari: posto $x=2 u, y=2 v$ il sistema diviene\n$$\n\\left\\{\\begin{array}{l}\nu v^{2}=75 w^{3} \\\\\nu v w<\\frac{50}{3}\n\\end{array}\\right.\n$$\nCome prima si ha che $15$ divide $u v$, quindi la seconda disequazione implica $u v=15, w=1$ e, dalla prima, $u v^{2}=75$; quindi $v=5, u=3, w=1$.\n\nL'unica soluzione è $(6,10,15)$.\n\nNotiamo innanzitutto che sia $3$ sia $5$ dividono $8 z^{3}$ per cui, essendo $8$ primo con entrambi, $3$ e $5$ devono dividere $z^{3}$ e quindi anche $z$. Poniamo allora $z=15 z'$, per cui la prima equazione diventa $x y^{2}=600 z'^{3}$ con la condizione $x y z'<1000 / 15<67$. Se $z'$ fosse maggiore o uguale a $2$ si avrebbe che\n$$\nx^{2} y^{2} \\geq x y^{2}=600 z'^{3} \\geq 600 \\cdot 2^{3}=4800 .\n$$\nQuesto implicherebbe $x y>69$ in contraddizione con la condizione $x y z'<67$. Pertanto $z'=1$ e l'equazione diventa $x y^{2}=600$ con la condizione $x y<67$. Se $x$ fosse maggiore o uguale a $8$ si avrebbe che\n$$\nx^{2} y^{2} \\geq 8 x y^{2}=8 \\cdot 600=4800 .\n$$\nQuesto implicherebbe nuovamente $x y>69$ ottenendo un altro assurdo, per cui si ha $x<8$. Poiché $y^{2}=\\frac{600}{x}$ si ha che $\\frac{600}{x}$ è il quadrato di un numero intero. Una facile verifica mostra che l'unica possibilità è $x=6$ da cui si ricava $y=10$ e $z=15$. D'altra parte la terna $(6,10,15)$ è soluzione del sistema.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33607, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDeterminare tutte le terne di interi positivi $(x, y, z)$ che soddisfano il seguente sistema:\n$$\n\\left\\{\\begin{array}{l}\n45 x y^{2}=8 z^{3} \\\\\nx y z<1000\n\\end{array}\\right.\n$$", "options": [], "answer": "(6,10,15)", "solution": "Solution:\n\nL'unica soluzione è $(6,10,15)$. Osserviamo anzitutto che $45$ divide $z^{3}$, e quindi $z$ è divisibile per $3 \\cdot 5=15$. Analogamente $8$ divide $x y^{2}$, e quindi $x$ e $y$ non possono essere dispari entrambi. Poniamo $z=15 w$ e distinguiamo 3 casi:\n\n(1) $x$ dispari: allora $8$ divide $y^{2}$, quindi $4$ divide $y$ e, posto $y=4 v$, il sistema diviene\n$$\n\\left\\{\\begin{array}{l}\n2 x v^{2}=75 w^{3} \\\\\nx v w<\\frac{50}{3}\n\\end{array}\\right.\n$$\nimpossibile perché dalla prima equazione segue che $15$ divide $x v$ e $2$ divide $w$, da cui $x v w \\geq 30$.\n\n(2) $y$ dispari: allora $8$ divide $x$ e, posto $x=8 u$, il sistema diviene\n$$\n\\left\\{\\begin{array}{l}\nu y^{2}=75 w^{3} \\\\\nu y w<\\frac{25}{3}\n\\end{array}\\right.\n$$\nche è ancora impossibile perché $15$ divide $u y$, quindi $u y w \\geq 15$.\n\n(3) $x$ e $y$ pari: posto $x=2 u, y=2 v$ il sistema diviene\n$$\n\\left\\{\\begin{array}{l}\nu v^{2}=75 w^{3} \\\\\nu v w<\\frac{50}{3}\n\\end{array}\\right.\n$$\nCome prima si ha che $15$ divide $u v$, quindi la seconda disequazione implica $u v=15, w=1$ e, dalla prima, $u v^{2}=75$; quindi $v=5, u=3, w=1$.\nSolution:\n\nL'unica soluzione è $(6,10,15)$.\n\nNotiamo innanzitutto che sia $3$ sia $5$ dividono $8 z^{3}$ per cui, essendo $8$ primo con entrambi, $3$ e $5$ devono dividere $z^{3}$ e quindi anche $z$. Poniamo allora $z=15 z'$, per cui la prima equazione diventa $x y^{2}=600 z'^{3}$ con la condizione $x y z'<1000 / 15<67$. Se $z'$ fosse maggiore o uguale a $2$ si avrebbe che\n$$\nx^{2} y^{2} \\geq x y^{2}=600 z'^{3} \\geq 600 \\cdot 2^{3}=4800 .\n$$\nQuesto implicherebbe $x y>69$ in contraddizione con la condizione $x y z'<67$. Pertanto $z'=1$ e l'equazione diventa $x y^{2}=600$ con la condizione $x y<67$. Se $x$ fosse maggiore o uguale a $8$ si avrebbe che\n$$\nx^{2} y^{2} \\geq 8 x y^{2}=8 \\cdot 600=4800 .\n$$\nQuesto implicherebbe nuovamente $x y>69$ ottenendo un altro assurdo, per cui si ha $x<8$. Poiché $y^{2}=\\frac{600}{x}$ si ha che $\\frac{600}{x}$ è il quadrato di un numero intero. Una facile verifica mostra che l'unica possibilità è $x=6$ da cui si ricava $y=10$ e $z=15$. D'altra parte la terna $(6,10,15)$ è soluzione del sistema.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33608, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSe $y=2x$ e $z=2y$, a cosa è uguale $x+y+z$?\n\n(A) $5x$\n(B) $4y$\n(C) $3z$\n(D) $\\frac{7}{2}y$\n(E) $\\frac{7}{3}z$.", "options": [], "answer": "(D)", "solution": "Solution:\n\nLa risposta è (D). Si ha ovviamente $z=4x$ e $x=\\frac{y}{2}=\\frac{z}{4}$, da cui $x+y+z=7x=\\frac{7}{2}y=\\frac{7}{4}z$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33609, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn sottoinsieme $A$ dei numeri naturali compresi fra 1 e 100 è tale che la somma di due suoi elementi qualsiasi è divisibile per 6. Quanti elementi può avere, al massimo, il sottoinsieme $A$?\n\n(A) 11\n(B) 16\n(C) 17\n(D) 25\n(E) 33.", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è (C). I numeri debbono essere o tutti pari o tutti dispari, poiché le somme a 2 a 2 sono tutte pari.\n\nAnalogamente, i numeri debbono essere tutti divisibili per 3, perché se in $A$ ci fosse un numero non divisibile per 3 (con resto $r$, diciamo), allora ce ne potrebbe essere solo un altro (con resto $3 - r$) e quindi $|A| = 2$, troppo poco!\n\nOra i multipli pari di 3, cioè i multipli di 6 tra 1 e 100 sono 16, mentre i multipli dispari di 3 sono 17, quindi $A = \\{3(2k+1) \\mid k = 0, 1, \\ldots, 16\\}$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33610, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nÈ noto che i Marziani maschi dicono sempre la verità, mentre le Marziane mentono sempre; al contrario i Venusiani maschi mentono e le Venusiane dicono sempre il vero. Atterra un'astronave piena di Marziani e Venusiani; all'ufficio immigrazione due degli occupanti, Ark e Bark, fanno le seguenti dichiarazioni:\nArk: \"Bark è di Venere\".\nBark: \"Ark è di Marte\".\nArk: \"Bark è maschio\".\nBark: \"Ark è femmina\".\nSulla base di tali dichiarazioni l'impiegato può determinare:\n(A) Pianeta e sesso di Ark, ma non di Bark\n(B) pianeta e sesso di Bark, ma non di Ark\n(C) solo il pianeta di entrambi (ma non il sesso)\n(D) solo il sesso di entrambi (ma non il pianeta)\n(E) pianeta e sesso di entrambi.", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è $\\mathbf{(E)}$. Se Ark dice il vero, allora Bark è un venusiano maschio, quindi mente, ma allora Ark deve essere un venusiano maschio, assurdo. Dunque Ark mente, quindi Bark è una femmina marziana, che mente, e dunque Ark è effettivamente un venusiano maschio (che mente). Quindi tutto è determinato.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33611, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nÈ noto che i Marziani maschi dicono sempre la verità, mentre le Marziane mentono sempre; al contrario i Venusiani maschi mentono e le Venusiane dicono sempre il vero. Atterra un'astronave piena di Marziani e Venusiani; all'ufficio immigrazione due degli occupanti, Ark e Bark, fanno le seguenti dichiarazioni:\n\nArk: \"Bark è di Venere\".\nBark: \"Ark è di Marte\".\nArk: \"Bark è maschio\".\nBark: \"Ark è femmina\".\n\nSulla base di tali dichiarazioni l'impiegato può determinare:\n\n(A) Pianeta e sesso di Ark, ma non di Bark\n(B) pianeta e sesso di Bark, ma non di Ark\n(C) solo il pianeta di entrambi (ma non il sesso)\n(D) solo il sesso di entrambi (ma non il pianeta)\n(E) pianeta e sesso di entrambi.", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è $\\mathbf{( E )}$. Se Ark dice il vero, allora Bark è un venusiano maschio, quindi mente, ma allora Ark deve essere un venusiano maschio, assurdo. Dunque Ark mente, quindi Bark è una femmina marziana, che mente, e dunque Ark è effettivamente un venusiano maschio (che mente). Quindi tutto è determinato.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33612, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn una mappa di una certa regione ci sono dieci città ai vertici di un decagono regolare, e i dieci lati del decagono rappresentano altrettante strade. Nella regione ci sono dei lavori, per cui ogni strada è aperta con una probabilità $\\frac{1}{2}$ indipendentemente dalle altre.\nQual è la probabilità che da ogni città si possa raggiungere ogni altra città?\n(A) fra lo $0,2 \\%$ e lo $0,5 \\%$\n(E) fra il $5 \\%$ e il $10 \\%$.\n(B) fra lo $0,5 \\%$ e l' $1 \\%$\n(C) fra l' $1 \\%$ e il $2 \\%$\n(D) fra il $2 \\%$ e il $5 \\%$", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è (C). Se tutte le strade sono aperte, evidentemente è possibile spostarsi liberamente da una città all'altra. Se una sola strada è chiusa, le nove strade aperte costituiscono una linea spezzata continua attraverso cui è ancora possibile spostarsi da una città all'altra. Se ci sono almeno due strade chiuse, si presentano due casi: o ci sono due strade chiuse consecutive, e quindi la città che sta in mezzo a queste due strade è isolata, oppure ci sono due strade chiuse non consecutive, che tagliano le dieci città in due parti isolate l'una dall'altra. Quindi, perché da ogni città si possa raggiungere qualsiasi altra, è necessario e sufficiente che al massimo una strada sia chiusa. La probabilità che tutte le strade siano aperte è $\\left(\\frac{1}{2}\\right)^{10}$. Ci sono poi dieci modi possibili che una sola strada sia chiusa, poichè l'unica strada chiusa può essere una qualsiasi delle 10 strade. Pertanto la probabilità che una sola strada sia chiusa è uguale a $10 \\cdot \\frac{1}{2} \\cdot\\left(\\frac{1}{2}\\right)^{9}=10 \\cdot\\left(\\frac{1}{2}\\right)^{10}$. Pertanto la probabilità cercata è $11 \\cdot\\left(\\frac{1}{2}\\right)^{10}=\\frac{11}{1024} \\approx 0,01074$, ed è compresa fra l' $1 \\%$ e il $2 \\%$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33613, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $P(X) = a_{n} X^{n} + a_{n-1} X^{n-1} + \\ldots + a_{1} X + a_{0}$ un polinomio a coefficienti interi (cioè, i numeri $a_{n}, a_{n-1}, \\ldots, a_{1}, a_{0}$ sono interi). Se $P(2000) = 2000$ e $P(2001) = 2001$, quanti fra i numeri $2000, 2001, 2002, 2003, 2004$ possono essere uguali a $P(2002)$?\n\n(A) 1\n(B) 2\n(C) 3\n(D) 4\n(E) 5 .", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è (C). Osserviamo innanzitutto che i numeri $2001$ e $2003$ non sono possibili, in quanto sono numeri dispari. Infatti, poiché $P(2000) = a_{n} 2000^{n} + a_{n-1} 2000^{n-1} + \\cdots + a_{1} 2000 + a_{0} = 2000$ è un numero pari, $a_{0}$ deve essere un numero pari, e di conseguenza, calcolando il valore del polinomio in un qualsiasi numero pari $2k$, si ottiene che $P(2k) = a_{n} (2k)^{n} + a_{n-1} (2k)^{n-1} + \\cdots + a_{1} (2k) + a_{0}$ deve essere pari.\n\nViceversa, è facile costruire esempi in cui gli altri valori si possono ottenere:\n$$\n\\begin{aligned}\n\\text{se } P(X) = 2001 - (X - 2001)^{2}, & \\quad P(2002) = 2000 ; \\\\\n\\text{se } P(X) = X, & \\quad P(2002) = 2002 ; \\\\\n\\text{se } P(X) = (X - 2000)^{2} + 2000, & \\quad P(2002) = 2004 .\n\\end{aligned}", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33614, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nÈ noto che i Marziani maschi dicono sempre la verità, mentre le Marziane mentono sempre; al contrario i Venusiani maschi mentono e le Venusiane dicono sempre il vero. Atterra un'astronave piena di Marziani e Venusiani; all'ufficio immigrazione due degli occupanti, Ark e Bark, fanno le seguenti dichiarazioni:\n\nArk: \"Bark è di Venere\".\nBark: \"Ark è di Marte\".\nArk: \"Bark è maschio\".\nBark: \"Ark è femmina\".\n\nSulla base di tali dichiarazioni l'impiegato può determinare:\n\n(A) Pianeta e sesso di Ark, ma non di Bark\n(B) pianeta e sesso di Bark, ma non di Ark\n(C) solo il pianeta di entrambi (ma non il sesso)\n(D) solo il sesso di entrambi (ma non il pianeta)\n(E) pianeta e sesso di entrambi.", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è (E). Se Ark dice il vero, allora Bark è un venusiano maschio, quindi mente, ma allora Ark deve essere un venusiano maschio, assurdo. Dunque Ark mente, quindi Bark è una femmina marziana, che mente, e dunque Ark è effettivamente un venusiano maschio (che mente). Quindi tutto è determinato.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33615, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nÈ noto che i Marziani maschi dicono sempre la verità, mentre le Marziane mentono sempre; al contrario i Venusiani maschi mentono e le Venusiane dicono sempre il vero. Atterra un'astronave piena di Marziani e Venusiani; all'ufficio immigrazione due degli occupanti, Ark e Bark, fanno le seguenti dichiarazioni:\nArk: \"Bark è di Venere\".\nBark: \"Ark è di Marte\".\nArk: \"Bark è maschio\".\nBark: \"Ark è femmina\".\nSulla base di tali dichiarazioni l'impiegato può determinare:\n(A) Pianeta e sesso di Ark, ma non di Bark\n(B) pianeta e sesso di Bark, ma non di Ark\n(C) solo il pianeta di entrambi (ma non il sesso)\n(D) solo il sesso di entrambi (ma non il pianeta)\n(E) pianeta e sesso di entrambi.", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è (E). Se Ark dice il vero, allora Bark è un venusiano maschio, quindi mente, ma allora Ark deve essere un venusiano maschio, assurdo. Dunque Ark mente, quindi Bark è una femmina marziana, che mente, e dunque Ark è effettivamente un venusiano maschio (che mente). Quindi tutto è determinato.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33616, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUna capra (indicata in figura con $\\Pi^{\\alpha}$) è legata a un punto $A$ con una corda lunga 6 metri come mostrato nella figura (vista dall'alto). Il segmento $AB$ rappresenta una staccionata lunga 4 metri oltre la quale la capra non può saltare. Il quadrato rappresenta un edificio di lato 2 metri all'interno del quale la capra non può entrare (e sul quale non può salire). Determinare la più grande area (in $\\mathrm{m}^{2}$) che la capra può brucare.\n\n(A) $16 \\pi$\n(B) $16 \\pi+4$\n(C) $20 \\pi-4$\n(D) $18 \\pi$\n(E) non si può determinare.\n\n![](attached_image_1.png)", "options": [], "answer": "A", "solution": "Solution:\n\nLa risposta è $\\mathbf{(A)}$. Infatti semplici osservazioni permettono di vedere che l'area che può essere brucata dalla capra è quella indicata nella seguente figura:\n\n![](attached_image_2.png)\n\nL'area $S_{1}$ è un quarto di quella di un cerchio di raggio 6 e cioè: $\\frac{1}{4}\\left(6^{2}\\right) \\pi=9 \\pi$.\n\nL'area $S_{2}$ è un quarto di quella di un cerchio di raggio 4 e cioè: $\\frac{1}{4}\\left(4^{2}\\right) \\pi=4 \\pi$.\n\nL'area $S_{3}$ è un quarto di quella di un cerchio di raggio 2 e cioè: $\\frac{1}{4}\\left(2^{2}\\right) \\pi=\\pi$.\n\nL'area $S_{4}$ è metà di quella di un cerchio di raggio 2 e cioè: $\\frac{1}{2}\\left(2^{2}\\right) \\pi=2 \\pi$.\n\nL'area cercata è pertanto: $S_{1}+S_{2}+S_{3}+S_{4}=16 \\pi$.\n\n![](attached_image_2.png)", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33617, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSiano $a < b < c$ interi positivi tali che $a^{2} + b^{2} + c^{2}$ ha lo stesso numero di cifre decimali di $a + b + c$. Qual è il massimo valore che può assumere $c$?\n\n(A) 9\n(B) 10\n(C) 18\n(D) 30\n(E) 31.", "options": [], "answer": "A", "solution": "Solution:\n\nLa risposta è (A). La condizione che $a + b + c$ abbia lo stesso numero di cifre di $a^{2} + b^{2} + c^{2}$ implica che\n$$\n\\frac{a^{2} + b^{2} + c^{2}}{a + b + c} < 10\n$$\nPertanto si deve avere che\n$$\na^{2} - 10a + b^{2} - 10b + c^{2} - 10c < 0\n$$\nil che è equivalente ad affermare che\n$$\n(a - 5)^{2} + (b - 5)^{2} + (c - 5)^{2} < 75.\n$$\nIn particolare $(c - 5)^{2} < 75$, da cui si ricava $c < 14$. Osserviamo ora che se $9 < c < 14$ allora $a^{2} + b^{2} + c^{2}$ ha almeno 3 cifre, mentre $a + b + c \\leq 3c$ ne ha 2. Quindi $c$ è al più 9 ed è facile verificare che la terna $(1, 2, 9)$ soddisfa le condizioni richieste.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33618, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDeterminare qual è il massimo comun divisore tra tutti i numeri che si possono scrivere come somma di 2002 dispari consecutivi tutti positivi e minori di 10000 (due numeri dispari si dicono consecutivi se differiscono di 2).\n\n(A) 2\n(B) 4\n(C) 2002\n(D) 4004\n(E) 8008", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). Chiamiamo $S(n)$ la somma di 2002 dispari consecutivi a partire da $n$.\n$$\nS(1)=1+3+\\ldots+4003=(1+4003)+(3+4001)+\\ldots+(2001+2003)=4004 \\cdot 1001 .\n$$\nNotiamo che $S(n+2)$ e $S(n)$ hanno in comune 2001 addendi e che la loro differenza è pertanto uguale a\n$$\n((n+2)+4002)-n=4004\n$$\nIl massimo comun divisore tra gli $S(n)$ è quindi 4004 .\n\n\nSECONDA SOLUZIONE.\nLa somma dei primi $n$ numeri dispari da 1 a $2 n-1$ è $n^{2}$, quindi la somma di 2002 dispari consecutivi a partire da $2 n+1$ è $(n+2002)^{2}-n^{2}=2002(2 n+2002)=4004(n+1001)$ quindi sono tutti multipli di 4004, e due consecutivi hanno MCD 4004 perché $\\operatorname{MCD}(k, k+1)=1$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33619, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABC$ un triangolo isoscele tale che $\\angle BAC = 120^\\circ$ e $AB = AC = 1$. Quanto misura il raggio del cerchio circoscritto?\n\n(A) 2\n(B) $\\frac{\\sqrt{3}}{2}$\n(C) $\\frac{\\sqrt{2}}{2}$\n(D) 1\n(E) nessuna delle precedenti.", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). Chiamiamo $O$ il centro del cerchio circoscritto e consideriamo il triangolo $AOC$. Esso è isoscele in $O$ e d'altra parte $\\angle AOC = \\frac{1}{2} \\angle BAC = 60^\\circ$; dunque $AOC$ è equilatero.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33620, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAndrea, viaggiando su un tram, incrocia Mafalda che sta camminando sulla stessa strada in direzione opposta. Dopo 10 secondi scende dal tram e la rincorre. Sapendo che la velocità con cui Andrea cammina è doppia di quella di Mafalda e un quinto di quella del tram, quanti secondi impiega a raggiungere l'amica da quando è sceso?\n\n(A) 60\n(B) 70\n(C) 90\n(D) 110\n(E) 120 .", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). Se la velocità di Mafalda è $v$ metri/secondo, sappiamo che quella di Andrea è $2v$ metri/secondo e quella del tram $10v$ metri/secondo. Quando Andrea scende dal tram la sua distanza da Mafalda è dunque $10v$ metri $+ 10 \\times 10v$ metri $= 110v$ metri. Poiché la sua velocità è doppia rispetto a quella di Mafalda, egli, rincorrendola, le si avvicinerà ad una velocità pari a $v$ metri/secondo; dunque impiegherà 110 secondi.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33621, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn un torneo di pallacanestro 8 squadre sono divise in due gruppi di 4 squadre ciascuno. Al termine degli incontri preliminari, si disputano le semifinali, in cui la prima classificata del primo gruppo incontrerà la seconda classificata del secondo gruppo e la prima classificata del secondo gruppo incontrerà la seconda classificata del primo gruppo. Se le squadre del primo gruppo sono $A, B, C, D$ e quelle del secondo gruppo sono $E, F, G, H$, qual è la probabilità che gli incontri di semifinale siano $A$ contro $E$ e $B$ contro $G$? (Si suppone che le tutte possibili graduatorie di ciascun girone siano equiprobabili).\n\n(A) $\\frac{1}{256}$\n(B) $\\frac{1}{144}$\n(C) $\\frac{1}{128}$\n(D) $\\frac{1}{72}$\n(E) nessuna delle precedenti.", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). La probabilità cercata si può calcolare come segue: la squadra $A$ raggiunge la semifinale se si classifica prima o seconda nel suo girone, e questo avviene con probabilità $\\frac{2}{4}=\\frac{1}{2}$. Nel caso che $A$ raggiunga la semifinale, solo un'altra squadra fra $B, C, D$ raggiungerà la semifinale, $\\mathrm{e}$ quindi la probabilità che questa squadra sia $B$ è $\\frac{1}{3}$. Assegnati i posti di $A$ e $B$, c'è una sola posizione di classifica in cui si può trovare $E$ per incontrare $A$, dunque $E$ si troverà in questa posizione con probabilità $\\frac{1}{4}$. Supposto che $E$ si trovi in questa posizione, per $F$ c'è una sola posizione fra le 3 restanti in cui può incontrare $B$, e dunque $B$ la raggiungerà con probabilità $\\frac{1}{3}$.\nLa probabilità cercata è dunque $\\frac{1}{2} \\times \\frac{1}{3} \\times \\frac{1}{4} \\times \\frac{1}{3}=\\frac{1}{72}$.\nSolution:\n\nPoichè le coppie di squadre possibili all'interno di un insieme di quattro squadre sono $\\left(\\begin{array}{l}4 \\\\ 2\\end{array}\\right)=6$, la probabilità che le due semifinaliste del primo girone siano $A$ e $B$ è uguale a $\\frac{1}{6}$. Similmente, la probabilità che le due semifinaliste del secondo girone siano $E$ ed $G$ è uguale a $\\frac{1}{6}$. Se questo avviene, la probabilità che $A$ incontri $E$ (e dunque necessariamente $B$ incontri $G$) è $\\frac{1}{2}$.\nLa probabilità cercata è dunque $\\frac{1}{6} \\times \\frac{1}{6} \\times \\frac{1}{2}=\\frac{1}{72}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33622, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUna gara di sci è divisa in due manches; un atleta si è piazzato al $3^{\\circ}$ posto nella prima ed al $5^{\\circ}$ nella seconda. Sapendo che la classifica finale è stilata sulla base della somma dei tempi ottenuti nelle singole manches, che ci sono 70 concorrenti e supponendo che non ci siano stati ex-aequo, dire quali posizioni può occupare l'atleta nella classifica finale.\n\n(A) L'atleta è necessariamente quarto\n(B) l'atleta può essersi piazzato in un posto qualunque tra terzo e quinto\n(C) l'atleta può essersi piazzato in un posto qualunque tra secondo e sesto\n(D) l'atleta può essersi piazzato in un posto qualunque tra primo e settimo\n(E) l'atleta può essersi piazzato in un posto qualunque.", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). Infatti, poiché solo in 2 hanno fatto un tempo migliore nella prima manche e solo in quattro hanno fatto meglio di lui nella seconda manche, l'atleta in questione ha ottenuto in entrambe le manches tempi migliori dei restanti 63 atleti, quindi non si è potuto classificare più che settimo. Per verificare che tutte le posizioni, dal primo al settimo posto, sono ottenibili, indichiamo con $A, B, C, D, E$ ed $F$ sei nomi di sciatori e con $X$ il nostro atleta. Un esempio di come $X$ possa arrivare settimo è dato da queste due manches:\n\n| | $A$ | $B$ | $C$ | $D$ | $E$ | $F$ | $X$ |\n|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|\n| $1^{o}$ manche | $1:29$ | $1:30$ | $1:59$ | $1:58$ | $1:57$ | $1:56$ | $1:55$ |\n| $2^{o}$ manche | $1:58$ | $1:59$ | $1:27$ | $1:26$ | $1:25$ | $1:24$ | $1:57$ |\n| totale | $3:27$ | $3:29$ | $3:36$ | $3:34$ | $3:32$ | $3:30$ | $3:52$ |\n\nSe invece $X$ avesse fatto $1:31$ nella prima e $1:28$ nella seconda manche, con un totale di $2:59$ sarebbe arrivato primo, pur rimanendo terzo e quinto nelle due manches. Si può allora verificare senza troppa difficoltà che, lasciando invariati i tempi di $A, B, C, D, E, F$, e modificando soltanto quelli di $X$, quest'ultimo possa arrivare in una qualunque posizione tra la prima e la settima.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33623, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $P(X) = a X^{2} + b X + c$ un polinomio di secondo grado con coefficienti reali (cioè $a, b, c$ sono numeri reali e $a \\neq 0$). Se $P(2000) = 2000$ e $P(2001) = 2001$, allora $P(2002)$ non può essere uguale a:\n(A) 2000\n(B) 2001\n(C) 2002\n(D) 2003\n(E) 2004.", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è $(\\mathbf{C})$. Per semplicità, poniamo $Q(X) = P(X + 2000) - 2000$ : notiamo che $Q(X)$ è sempre un polinomio dello stesso grado di $P(X)$. Sia $Q(X) = \\alpha X^{2} + \\beta X + \\gamma$. Le condizioni date diventano $Q(0) = 0$ e $Q(1) = 1$, cioè $\\gamma = 0$ e $\\alpha + \\beta = 1$. La condizione $P(2002) = 2002$ diventa $Q(2) = 2$, cioè $4 \\alpha + 2 \\beta = 2$, che, insieme alle precedenti, dà $\\alpha = 0, \\beta = 1$; ne segue che $Q(X)$, e quindi anche $P(X)$, deve essere un polinomio di primo grado.\n\nPer gli altri valori si trovano invece facilmente i seguenti esempi:\n$$\nQ(X) = -X^{2} + 2 X, \\quad \\frac{-X^{2} + 3 X}{2}, \\quad \\frac{X^{2} + X}{2}, \\quad X^{2}\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33624, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDeterminare tutti gli interi positivi di tre cifre che sono uguali a 34 volte la somma delle loro cifre.", "options": [], "answer": "102, 204, 306, 408", "solution": "Solution:\n\nGli interi richiesti sono 102, 204, 306, 408.\nIndichiamo infatti con $a, b, c$, rispettivamente, la cifra delle centinaia, delle decine, delle unità di un intero di 3 cifre. La condizione data si traduce allora in $100 a+10 b+c=34(a+b+c)$, da cui, con semplici passaggi algebrici, si ricava che $11(2 a-c)=8 b$.\nDa questa segue che $b$ deve essere un multiplo di 11 , ma poiché $0 \\leq b \\leq 9$, l'unica possibilità è che sia $b=0$, e di conseguenza anche $2 a=c$. Sostituendo a $c$ i valori $1,2,3,4$ si ottengono i 4 interi riportati, che si verifica facilmente che sono effettivamente soluzioni del problema. Per $c=0$ o $c \\geq 5$ non si ottengono invece interi di 3 cifre.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33625, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLa pianta di una casa ha la forma di una L ottenuta affiancando in modo opportuno quattro quadrati il cui lato misura 10 metri. Le pareti laterali sono tutte alte 10 metri e il tetto della casa ha sei facce partenti dai sei muri laterali e inclinate di $30^{\\circ}$ rispetto ad un piano orizzontale.\nDeterminare il volume della casa (cioè del solido delimitato dalle sei facce del tetto, dai sei muri laterali e dal piano orizzontale).", "options": [], "answer": "2750/(3√3) m^3", "solution": "Solution:\n\nIl sottotetto visto dall'alto ha la forma della figura 1, poichè i punti di incontro delle varie facce del tetto sono equidistanti dagli spigoli della base poichè tutte le facce hanno la stessa inclinazione rispetto all'orizzontale.\nOsserviamo che possiamo trasformare il sottotetto come in figura 2 senza alterarne il volume. Basta quindi calcolare il volume di questa nuova figura. Osserviamo che la parte centrale della nuova figura è un prisma a base triangolare, con altezza $h_{pr} = 30$ metri. Il triangolo di base è isoscele con angoli alla base di $30^{\\circ}$ e base $b_{tr}$ lunga 10 metri. Quindi l'altezza $h_{tr}$ del triangolo misura $\\frac{5}{\\sqrt{3}}$ metri.\n\nIl volume del prisma è quindi:\n![](attached_image_1.png)\n\nFigura 1\n\n$$\nV_{pr} = \\frac{1}{2} b_{tr} h_{tr} h_{pr} = \\frac{750}{\\sqrt{3}}\\ m^{3}\n$$\n\nFigura 2\n\nLe due parti restanti del solido possono essere unite per formare una piramide a base quadrata con lato di base di 10 metri e altezza $h_{pir}$ di $\\frac{5}{\\sqrt{3}}$ metri. Il volume della piramide è quindi:\n$$\nV_{pir} = \\frac{1}{3} l^{2} h_{pir} = \\frac{500}{3 \\sqrt{3}}\\ m^{3}\n$$\n\nIl volume totale del sottotetto è:\n$$\nV_{tot} = V_{pr} + V_{pir} = \\frac{2750}{3 \\sqrt{3}}\\ m^{3}\n$$", "topic": "Geometry", "subtopic": "Solid Geometry" }, { "id": 33626, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDeterminare per quali valori di $n$ tutte le soluzioni dell'equazione $X^{3}-3 X+n=0$ sono numeri interi.", "options": [], "answer": "n = -2 or n = 2", "solution": "Solution:\n\nSe $a, b, c$ sono le tre soluzioni (non necessariamente distinte) dell'equazione $X^{3}-3 X+n=0$, allora\n$$\nX^{3}-3 X+n=(X-a)(X-b)(X-c)=X^{3}-(a+b+c) X^{2}+(a b+a c+b c) X-a b c .\n$$\nNe segue che\n$$\n\\left\\{\\begin{array}{l}\na+b+c=0 \\\\\na b+a c+b c=-3 \\\\\na b c=-n .\n\\end{array}\\right.\n$$\nOsservando che $(a+b+c)^{2}=a^{2}+b^{2}+c^{2}+2(a b+a c+b c)$, si ottiene $a^{2}+b^{2}+c^{2}=6$. Se $a, b, c$ sono interi, questo è possibile solo se due dei quadrati sono uguali a 1 e il terzo è uguale a 4. Pertanto possiamo assumere, per simmetria, che $a= \\pm 1, b= \\pm 1, c= \\pm 2$. Poiché inoltre si deve avere che $a+b+c=0$, le sole possibilità sono $a=b=1, c=-2$ e $a=b=-1, c=2$, da cui, rispettivamente, $n=2$ e $n=-2$. Per quanto abbiamo appena osservato,\n\n$$\nX^{3}-3 X+2=(X-1)^{2}(X+2), \\quad X^{3}-3 X-2=(X+1)^{2}(X-2)\n$$\ne quindi $n=2$ e $n=-2$ sono effettivamente soluzioni del problema.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33627, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia data una scacchiera di 100 righe e 100 colonne, con tutte le caselle bianche.\n\na. È possibile colorare un numero dispari di caselle in modo tale che ogni casella colorata abbia un numero dispari di caselle colorate adiacenti?\n\nb. È possibile colorare alcune caselle in modo tale che un numero dispari di esse abbia esattamente 4 caselle adiacenti colorate e tutte le altre caselle colorate abbiano esattamente 2 caselle adiacenti colorate?\n\nc. È possibile colorare alcune caselle in modo tale che un numero dispari di esse abbia esattamente 2 caselle adiacenti colorate e tutte le altre caselle colorate abbiano esattamente 4 caselle adiacenti colorate?\n\nNota: Due caselle si considerano adiacenti se hanno un lato in comune.", "options": [], "answer": "a: no; b: yes; c: no", "solution": "Solution:\n\na.\nNon è possibile. Infatti, siano $C_{1}, \\ldots, C_{m}$ le caselle colorate, sia $a_{i}$ il numero delle caselle colorate adiacenti a $C_{i}$ per $i=1, \\ldots, m$ e sia $l$ il numero dei lati in comune a due caselle adiacenti colorate. Abbiamo $a_{1}+\\cdots+a_{m}=2l$, poiché ogni lato è in comune a due caselle e quindi viene contato due volte; in particolare, $a_{1}+\\cdots+a_{m}$ è un numero pari. Se $m$ fosse dispari e $a_{i}$ fosse dispari per ogni $i$, allora la somma $a_{1}+\\cdots+a_{m}$ sarebbe dispari, e dunque si avrebbe una contraddizione.\n\nb.\nÈ possibile. Consideriamo, ad esempio, le quattro caselle che si trovano nelle prime due righe e nelle prime due colonne della scacchiera e il quadrato $2 \\times 2$ costituito dalle caselle che si trovano nella seconda e terza riga e nella seconda e terza colonna della scacchiera. La casella nella seconda riga e nella seconda colonna è comune ai due quadrati ed è l'unica che ha quattro caselle adiacenti colorate. Tutte le altre caselle colorate hanno 2 caselle a loro adiacenti colorate.\n\nc.\nNon è possibile. Infatti, supponiamo di colorare alcune caselle della scacchiera in modo tale che ciascuna di esse abbia 2 o 4 caselle adiacenti colorate. Distinguiamo le caselle della scacchiera in due tipi, secondo quella che sarebbe loro normale colorazione in bianco e nero. Per non generare confusione, supponiamo che la colorazione richiesta dal problema venga fatta in verde. Chiamiamo $b$ il numero di caselle verdi del primo tipo ed $n$ il numero di caselle verdi del secondo tipo. Inoltre, scriviamo $b=b_{2}+b_{4}$, dove $b_{2}$ è il numero di caselle del primo tipo con due caselle adiacenti verdi e $b_{4}$ è il numero di caselle del primo tipo con 4 caselle adiacenti verdi; analogamente scriviamo $n=n_{2}+n_{4}$. Poiché le caselle adiacenti a quelle del primo tipo sono necessariamente del secondo tipo, e viceversa, contando il numero $l$ di lati comuni a due caselle verdi come nel punto (a), si ottiene $l=2b_{2}+4b_{4}=2n_{2}+4n_{4}$, da cui $b_{2}-n_{2}=2\\left(n_{4}-b_{4}\\right)$ è necessariamente un numero pari. Ma allora anche $b_{2}+n_{2}=\\left(b_{2}-n_{2}\\right)+2n_{2}$ è necessariamente pari, e pertanto una colorazione con le proprietà richieste in (c) è impossibile.\n\nAlternative:\n\nc.\nNon è possibile. Per dimostrarlo, contiamo in due modi diversi il numero $l$ di lati comuni a due caselle colorate.\n\n(i) Indicando con $c_{2}$ il numero di caselle colorate con 2 caselle adiacenti colorate, e con $c_{4}$ il numero di caselle colorate con 4 caselle adiacenti colorate, avremo che\n$$\nl=\\frac{2c_{2}+4c_{4}}{2}=c_{2}+2c_{4},\n$$\ndove la divisione per 2 tiene conto del fatto che al numeratore ogni lato è stato contato due volte. Se $c_{2}$ fosse dispari, da questa formula seguirebbe che anche $l$ dovrebbe essere dispari.\n\n(ii) Pensiamo ora di distinguere le caselle della scacchiera in due categorie, a seconda di quella che sarebbe la loro colorazione standard in bianco e nero. Per non generare confusione, supponiamo che la colorazione richiesta dal problema venga fatta in verde. Poiché una coppia di caselle verdi adiacenti è sempre costituita da una casella ex-bianca e una casella ex-nera, ne segue che per calcolare $l$ basta sommare tutte le adiacenze che partono da caselle verdi ex-bianche, senza dividere per 2. Ma poiché da ogni casella verde partono o 2 o 4 adiacenze, tale somma è necessariamente pari, in contrasto con il punto precedente.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33628, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDati due numeri $x$ e $y$ con $0 < x < 1$, $0 < y < 1$ quale delle seguenti affermazioni è sempre vera?\n\n(A) $x + y < 1$\n\n(B) $\\frac{x}{y} < 1$\n\n(C) $x + y > 1$\n\n(D) $x^{2} + y^{2} > 1$\n\n(E) $x < \\frac{1}{y}$.", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è $\\mathbf{(E)}$. Tale affermazione è sempre vera, poiché $x < 1$, mentre $\\frac{1}{y} > 1$. Per $x = \\frac{1}{2}$, $y = \\frac{1}{3}$ le ipotesi del testo sono verificate, ma (B), (C) e (D) sono false. Infine $x = y = \\frac{3}{4}$ fornisce un controesempio per (A).", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33629, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nNel paese di $\\mathrm{Oz}$, oltre alle persone normali (che possono mentire oppure dire la verità), vivono cavalieri (che dicono sempre la verità) e furfanti (che mentono sempre). Una strana legge impone che in ogni matrimonio i coniugi siano o entrambi normali, oppure uno cavaliere e l'altro furfante. Arrivati alla villetta bifamiliare dei coniugi Allegri e Bianchi, chiedete se il sig. Bianchi, che è assente, è un cavaliere, ottenendo risposta affermativa sia dalla sig.ra Bianchi che da entrambi i coniugi Allegri. Di quanti coniugi potete determinare il tipo?\n(A) 0\n(B) 1\n(C) 2\n(D) 3\n(E) 4 .", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è $\\mathbf{( E )}$. Se il signor Bianchi non fosse normale, sarebbe un furfante o un cavaliere. Nel primo caso, la moglie sarebbe un cavaliere e avrebbe mentito affermando che il marito è un cavaliere, questo è assurdo. Nel secondo caso (signor Bianchi cavaliere) la moglie sarebbe un furfante e avrebbe detto la verità, e questo è ancora un assurdo. Quindi il signor Bianchi è normale e anche sua moglie lo è. Occorre considerare poi anche la coppia dei signori Allegri. Questi, poiché affermano la medesima cosa, non possono essere che normali. In conclusione tutte le persone sono normali.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33630, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDa un punto $S$ esterno ad una circonferenza $\\gamma$ di raggio 1 si tracci una retta tangente a $\\gamma$ e si indichi con $T$ il punto di tangenza. Al variare di un punto $P$ su $\\gamma$, il baricentro del triangolo $P S T$ descrive una curva $\\gamma^{\\prime}$. Qual è il rapporto tra la lunghezza di $\\gamma^{\\prime}$ e quella di $\\gamma$?\n\n(A) $\\frac{1}{\\pi}$\n(B) $\\frac{1}{2}$\n(C) $\\frac{1}{3}$\n(D) $\\frac{4}{3} \\pi$\n(E) dipende dalla posizione di $S$.", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è (C). Indichiamo con $M$ il punto medio del segmento $T S$ (esso ovviamente resta fermo al variare di $P$ su $\\gamma$). Il baricentro $G$ del triangolo $P S T$ giace sicuramente sulla mediana $P M$, inoltre $M G=\\frac{1}{3} M P$ perché il baricentro divide la mediana in due parti, e la parte che contiene il vertice è lunga il doppio della parte che contiene il punto medio del lato. Quindi se facciamo un'omotetia (ovvero una \"dilatazione\") del piano centrata in $M$ e con scala $\\frac{1}{3}$, il punto $P$ viene mandato in $G$.\n\nLe omotetie mandano circonferenze in circonferenze, e il rapporto tra i raggi è esattamente la scala dell'omotetia. Segue che, al variare di $P$ sulla circonferenza $\\gamma$, il punto $G$ varia su una circonferenza $\\gamma^{\\prime}$ il cui raggio è un terzo di quello di $\\gamma$ e quindi la lunghezza di $\\gamma^{\\prime}$ è un terzo di quella di $\\gamma$.\n\n![](attached_image_1.png)\n\n\n## SECONDA SOLUZIONE\n\nDato un sistema di riferimento cartesiano ortogonale $O x y$, posso scegliere $O$ in modo che coincida col centro di $\\gamma$, l'unità di misura pari al raggio di $\\gamma$ e l'orientazione degli assi in modo che le coordinate di $T$ siano, ad esempio, $(0,-1)$ e la retta tangente a $\\gamma$ abbia equazione $y=-1$. Un punto $S$ appartenente a tale tangente avrà coordinate $(a,-1)$, mentre un punto $P$ di $\\gamma$ avrà coordinate $(\\cos \\vartheta, \\sin \\vartheta)$. Le coordinate del baricentro $G$ saranno allora $\\left(\\frac{x_{P}+x_{S}+x_{T}}{3}, \\frac{y_{P}+y_{S}+y_{T}}{3}\\right)$, cioè $\\left(\\frac{\\cos \\vartheta+a}{3}, \\frac{\\sin \\vartheta-2}{3}\\right)$.\n\nLe equazioni parametriche di $\\gamma^{\\prime}$ saranno quindi $\\left\\{\\begin{array}{l}x=\\frac{1}{3} \\cos \\vartheta+\\frac{a}{3} \\\\ y=\\frac{1}{3} \\sin \\vartheta-\\frac{2}{3}\\end{array}\\right.$, che rappresentano una circonferenza di raggio $\\frac{1}{3}$ e centro $\\left(\\frac{a}{3},-\\frac{2}{3}\\right)$ (l'equazione cartesiana di tale circonferenza è $9 x^{2}+9 y^{2}-6 a x+12 y+3+a^{2}=0$).\n\n![](attached_image_2.png)", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33631, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn gioco è costituito da 10 lanci di un normale dado cubico con le facce numerate da 1 a 6. Alla fine si sommano i punteggi ottenuti, con la regola che se si ottiene 6 in un lancio i punti del lancio successivo vengono contati raddoppiati e che se si fa 6 all'ultimo lancio si ha diritto ad un (solo) tiro supplementare di cui sommare il punteggio (non raddoppiato). Quale di questi punteggi finali non si può ottenere?\n(A) 64\n(B) 78\n(C) 92\n(D) 114\n(E) 120.", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). Infatti, supponiamo per assurdo che 114 sia un punteggio ammissibile. Indichiamo con $N$ il numero dei lanci con cui è stato ottenuto, $N$ può essere 10 o 11. Il primo punteggio fatto è minore o uguale a sei, dunque si è fatto almeno $114-6=108$ con $N-1$ lanci; notiamo che $108=12 \\times 9$, quindi se fosse $N=10$, l'unica sequenza possibile dei punteggi sarebbe data da un 6 e nove 12 consecutivi, ma allora l'ultimo lancio avrebbe dato 6 e ci sarebbe stato anche l'undicesimo tiro.\n\nDunque $N=11$. Segue che si è ottenuto almeno 108 con 10 lanci (quelli dal secondo all'undicesimo). Notiamo che l'undicesimo lancio dà un punteggio minore o uguale a sei, quindi si deve essere ottenuto almeno 102 con 9 lanci. Supponiamo che i punteggi di questi lanci non siano tutti 12. Allora c'è un punteggio minore o uguale a 10 (11 non può essere ottenuto). Supponiamo che questo sia avvenuto al decimo lancio, che conseguentemente deve essere un 6. Questo è impossibile perchè si sarebbe ottenuto almeno $96=8 \\times 12$ con 8 lanci (dal secondo al nono), che dovrebbero dare tutti 12, ma allora il decimo darebbe 12 e non 6. Allora il punteggio minore o uguale a 10 viene ottenuto prima del decimo lancio e al lancio successivo il punteggio è minore o uguale a 6; sottraendo questi due punteggi, segue che si è ottenuto con soli sette lanci almeno $102-16=86$ e questo è impossibile.\n\nIn conclusione l'unica sequenza ammissibile è quella data da un 6 iniziale, nove 12 consecutivi più il punteggio $p$ dell'undicesimo tiro, e il punteggio complessivo è $114+p$ che non può coincidere con 114 perchè $p$ è compreso tra $1$ e $6$. Abbiamo ottenuto un assurdo.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33632, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nPer ogni intero $n$, sia $S(n)$ la somma delle cifre di $n$ (in base decimale). Qual è il più piccolo intero $N$ per cui $S(S(N)) \\geq 10$ ?", "options": [], "answer": "199", "solution": "Solution:\n\nLa risposta è $199$. Infatti se $n$ avesse $1$ o $2$ cifre, $n \\leq 99$, e allora $S(n) \\leq 18$ e $S(S(n)) \\leq 9$, dunque $n$ ha almeno tre cifre. Osserviamo che per $n \\leq 198$, ancora $S(n) \\leq 18$. Invece se $n=199$, $S(n)=19$ e $S(S(n))=10$, come cercato.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33633, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nPrendiamo un intero positivo $n$, facciamo la somma delle sue cifre e poi addizioniamo nuovamente le cifre di tale somma ottenendo un intero $S$. Qual è il più piccolo $n$ che permette di ottenere $S \\geq 10 ?$", "options": [], "answer": "199", "solution": "Solution:\n\nLa risposta è 199. Infatti se $n$ avesse 1 o 2 cifre, $n \\leq 99$, e allora la somma delle sue cifre sarebbe $\\leq 18$ e la somma delle cifre del numero pari alla somma delle sue cifre sarebbe $\\leq 9$, dunque $n$ ha almeno tre cifre. Osserviamo che per $n \\leq 198$, ancora la somma delle cifre del numero è $\\leq 18$. Invece se $n=199$, la somma delle sue cifre è 19 e la somma delle cifre di 19 è 10, come richiesto.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33634, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDeterminare il numero di quadruple di numeri interi (non necessariamente distinti) compresi fra $1$ e $12$ (estremi inclusi) che verificano tutte le seguenti condizioni:\n- la somma dei primi due numeri è pari\n- la somma dei primi tre numeri è multipla di $3$\n- la somma dei quattro numeri è multipla di $4$.\n(Due quadruple che differiscano anche solo per l'ordine degli addendi sono da considerarsi distinte).", "options": [], "answer": "864", "solution": "Solution:\n\nLa risposta è $864$. Per ogni scelta del primo numero, il secondo numero può essere scelto in $6$ modi per soddisfare la prima condizione; ancora, per ogni possibile somma dei primi $2$ numeri esistono $4$ scelte possibili per il terzo affinché la seconda condizione sia soddisfatta; infine, per ogni possibile scelta dei primi $3$ numeri esistono $3$ possibilità per il quarto. Dunque il numero totale di possibilità è $12 \\cdot 6 \\cdot 4 \\cdot 3 = 864$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33635, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn dodecaedro è un solido regolare con 12 facce pentagonali. Una diagonale di un solido è un segmento che ha per estremi due vertici del solido che non appartengono ad una stessa faccia. Quante sono le diagonali del dodecaedro?", "options": [], "answer": "100", "solution": "Solution:\n\nLa risposta è 100. È necessario contare le coppie (non ordinate) di vertici non appartenenti ad una stessa faccia. In ogni vertice si incontrano 3 facce e in ciascuna di esse ci sono 2 vertici che non sono su una faccia che contiene anche il vertice iniziale (totale 6) più 2 in comune con un'altra faccia (che sono contati due volte e sono quindi in realtà in totale 3) più il vertice stesso: quindi dobbiamo escludere dal conto 10 vertici che non danno luogo a diagonali. Ma i vertici del dodecaedro sono $12 \\cdot 5 / 3 = 20$ (12 facce pentagonali, ma che si incontrano a 3 a 3), quindi per ognuno di questi dobbiamo considerare $20 - 10 = 10$ vertici possibili come altro estremo di una diagonale. In totale le diagonali sono $20 \\cdot 10 / 2 = 100$, dove si è diviso per 2 poiché, moltiplicando, ogni diagonale viene contata due volte.", "topic": "Geometry", "subtopic": "Solid Geometry" }, { "id": 33636, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn'azienda dolciaria produce due tipi di torrone, usando la stessa pasta bianca e le stesse nocciole, ma in proporzioni diverse. Nel torrone di tipo $A$ le nocciole rappresentano il $30\\%$ del peso ed il $40\\%$ del volume; in quello di tipo $B$ le nocciole rappresentano il $60\\%$ del peso. Quale percentuale del volume rappresentano le nocciole nel torrone di tipo $B$?", "options": [], "answer": "70%", "solution": "Solution:\n\nLa risposta è $70$. Sia $P_{A}$ il peso del torrone $A$, $V_{A}$ il volume del torrone $A$, $P_{B}$ il peso del torrone $B$, $V_{B}$ il volume del torrone $B$. Si ha che $30\\%\\,P_{A}$ occupa $40\\%\\,V_{A}$, quindi il peso specifico delle nocciole è $\\frac{3}{4} \\frac{P_{A}}{V_{A}}$. Considerando il peso e lo spazio occupato dalla pasta bianca nel torrone $A$ si ricava invece che il suo peso specifico è $\\frac{7}{6} \\frac{P_{A}}{V_{A}}$. Quindi per calcolare il volume occupato dalle nocciole e dalla pasta bianca nel torrone $B$ dividiamo il loro peso, ovvero $60\\%\\,P_{B}$ le nocciole e $40\\%\\,P_{B}$ la pasta bianca, per il loro peso specifico, ottenendo che le prime occupano $\\frac{4}{5} \\frac{P_{B}}{P_{A}} V_{A}$ e le seconde $\\frac{12}{35} \\frac{P_{B}}{P_{A}} V_{A}$. Sommando i due volumi otteniamo il volume totale, ovvero\n$$\nV_{B} = \\frac{4}{5} \\frac{P_{B}}{P_{A}} V_{A} + \\frac{12}{35} \\frac{P_{B}}{P_{A}} V_{A} = \\frac{8}{7} \\frac{P_{B}}{P_{A}} V_{A}.\n$$\nPer calcolare la percentuale occupata dalle nocciole non ci rimane che dividere il volume da esse occupato per il volume totale del torrone:\n$$\n\\frac{\\frac{4}{5} \\frac{P_{B}}{P_{A}} V_{A}}{\\frac{8}{7} \\frac{P_{B}}{P_{A}} V_{A}} = 70\\%\n$$\nQuindi le nocciole occupano il $70\\%$ del volume del torrone $B$.\nSolution:\n\nNel primo torrone col $30\\%$ del peso le nocciole facevano il $40\\%$ del volume, e quindi la pasta col $70\\%$ del peso faceva il $60\\%$ del volume. Dunque se la \"voluminosità\" delle nocciole è $4/3$ quella della pasta risulta $6/7$. Dunque la quota di volume delle nocciole nel secondo torrone è\n$$\n\\frac{60 \\cdot 4/3}{60 \\cdot 4/3 + 40 \\cdot 6/7} = \\frac{80}{80 + 240/7} = \\frac{560}{800} = 70\\%\n$$", "topic": "Geometry", "subtopic": "Solid Geometry" }, { "id": 33637, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIl piccolo Marco sale e scende da un piano all'altro la scala mobile di un centro commerciale, uno scalino alla volta. Se procede nel senso di marcia della scala a velocità costante rispetto ad essa (cioè l'intervallo di tempo fra un passo e l'altro è costante), calpesta 15 gradini, se procede in senso contrario (con lo stesso intervallo di tempo fra un passo e l'altro) ne calpesta 35. Quanti scalini calpesterebbe Marco nel passare da un piano all'altro se la scala mobile fosse ferma?", "options": [], "answer": "21", "solution": "Solution:\n\nLa risposta è 21. Indichiamo con $V_{s}$ la velocità della scala, in scalini per unità di tempo, e con $V_{m}$ la velocità di Marco, nella medesima unità di misura. Se $T_{1}$ e $T_{2}$ sono, rispettivamente, i tempi impiegati da Marco per percorrere la scala nel verso concorde e nel verso discorde, allora valgono le seguenti relazioni\n$$\n\\begin{array}{r}\n\\left(V_{m}+V_{s}\\right) T_{1}=N \\\\\n\\left(V_{m}-V_{s}\\right) T_{2}=N \\\\\nV_{m} \\cdot T_{1}=15 \\\\\nV_{m} \\cdot T_{2}=35\n\\end{array}\n$$\ndove $N$ è il numero di scalini che Marco calpesterebbe se la scala fosse ferma. Dalle formule (1) e (2) si deduce che\n$$\n\\frac{T_{1}}{T_{2}}=\\frac{N-15}{35-N}\n$$\nmentre dalle formule (3) e (4), si deduce che\n$$\n\\frac{T_{1}}{T_{2}}=\\frac{15}{35}\n$$\nMettendo insieme le due relazioni (5) e (6) ottenute, si ottiene\n$$\nN=\\frac{2 \\cdot 15 \\cdot 35}{15+35}=21\n$$\nche è esattamente la media armonica tra i numeri 15 e 35.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33638, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn dodecaedro è un solido regolare con 12 facce pentagonali. Una diagonale di un solido è un segmento che ha per estremi due vertici del solido che non appartengono ad una stessa faccia. Quante sono le diagonali del dodecaedro?", "options": [], "answer": "100", "solution": "Solution:\n\nLa risposta è $100$. È necessario contare le coppie (non ordinate) di vertici non appartenenti ad una stessa faccia. In ogni vertice si incontrano $3$ facce e in ciascuna di esse ci sono $2$ vertici che non sono su una faccia che contiene anche il vertice iniziale (totale $6$) più $2$ in comune con un'altra faccia (che sono contati due volte e sono quindi in realtà in totale $3$) più il vertice stesso: quindi dobbiamo escludere dal conto $10$ vertici che non danno luogo a diagonali. Ma i vertici del dodecaedro sono $12 \\cdot 5 / 3 = 20$ ($12$ facce pentagonali, ma che si incontrano a $3$ a $3$), quindi per ognuno di questi dobbiamo considerare $20 - 10 = 10$ vertici possibili come altro estremo di una diagonale. In totale le diagonali sono $20 \\cdot 10 / 2 = 100$, dove si è diviso per $2$ poiché, moltiplicando, ogni diagonale viene contata due volte.", "topic": "Geometry", "subtopic": "Solid Geometry" }, { "id": 33639, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\n(i) Si determinino tutte le coppie $(m, n)$ di interi positivi che soddisfano l'equazione $n^{2}-2^{m}=1$.\n\n(ii) Si determinino tutte le coppie $(m, n)$ di interi positivi che soddisfano l'equazione $2^{m}-n^{2}=1$.", "options": [], "answer": "i: (m, n) = (3, 3); ii: (m, n) = (1, 1)", "solution": "Solution:\n\nAnzitutto $n$ deve essere dispari in entrambi i casi, perché $2^{m}$ è pari per $m \\geq 1$.\n\ni. $n = m = 3$. Infatti tra due numeri pari consecutivi uno non è divisibile per quattro, mentre da $2^{m} = n^{2} - 1 = (n-1)(n+1)$ si ottiene che $n-1$ e $n+1$ sono entrambi potenze di 2; rimane quindi solo la possibilità che sia $n-1 = 2$, da cui $n = 3$ e quindi $m = 3$.\n\nAlternativamente si osservi che, posto $n = 2a + 1$, si ha $n^{2} - 1 = 4a^{2} + 4a = 4a(a+1)$, che è possibile solo per $a = 1$, altrimenti $2^{m}$ avrebbe un fattore dispari maggiore di 1.\n\nii. $n = m = 1$. Posto $n = 2a + 1$ si ottiene $2^{m} = 4a^{2} + 4a + 2$, che dà resto 2 se diviso per quattro. Dunque $m$ deve essere uno, altrimenti $2^{m}$ sarebbe divisibile per 4, e $a$ deve essere quindi 0. D'altra parte si vede subito che $n = m = 1$ è soluzione $(2^{1} - 1 = 1)$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33640, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSi vogliono regalare sette pacchi dono a sette bambini, uno a ciascuno. Si vuol fare in modo che in ciascun pacco ci siano tre giochi diversi e che, comunque si scelgano due bambini, essi ricevano al più un gioco in comune. Qual è il minimo numero di tipi di giochi distinti che è necessario usare?", "options": [], "answer": "7", "solution": "Solution:\n\nLa risposta è $7$. Che sia possibile realizzare sette pacchi con le proprietà richieste con sette tipi di giochi è dimostrato dalla seguente griglia, in cui $A$, $B$, $C$, $D$, $E$, $F$ e $G$ indicano i tipi di giochi e le colonne danno la composizione dei pacchi.\n\n| $\\mathrm{A}$ | $\\mathrm{A}$ | $\\mathrm{B}$ | $\\mathrm{C}$ | $\\mathrm{A}$ | $\\mathrm{B}$ | $\\mathrm{C}$ |\n| :---: | :---: | :---: | :---: | :---: | :---: | :---: |\n| $\\mathrm{B}$ | $\\mathrm{D}$ | $\\mathrm{D}$ | $\\mathrm{E}$ | $\\mathrm{F}$ | $\\mathrm{E}$ | $\\mathrm{D}$ |\n| $\\mathrm{C}$ | $\\mathrm{E}$ | $\\mathrm{G}$ | $\\mathrm{G}$ | $\\mathrm{G}$ | $\\mathrm{F}$ | $\\mathrm{F}$ |\n\nInoltre sei tipi di giochi non sono sufficienti. Dimostriamo questo fatto per assurdo. Supponiamo che $A$, $B$, $C$, $D$, $E$ e $F$ siano sufficienti per sette pacchi. Complessivamente abbiamo ventuno giochi e quindi esiste un tipo di gioco, diciamo $A$, che compare almeno in tre pacchi distinti; gli altri giochi che compaiono in questi tre pacchi sono sei (due per tre) e devono essere tutti di tipi distinti tra loro e tutti diversi da $A$, avremmo allora sette tipi di giochi distinti, cioè un assurdo.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33641, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $x_{0}, x_{1}, x_{2}, \\ldots$ la successione definita da $x_{0}=2$ e $x_{n+1}=5+\\left(x_{n}\\right)^{2}$ per ogni $n \\geq 0$. Dimostrare che in tale successione non compaiono numeri primi diversi da 2.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nSi osservi che i numeri in questione sono alternativamente pari e dispari, perché si aggiunge $5$ al quadrato del precedente. Perciò solo i termini di posto dispari possono fornire altri primi. Ma questi sono tutti multipli di $3$ e maggiori o uguali a $x_{1}=9$. Infatti la successione è ovviamente crescente, e passando da $x_{n}$ a $x_{n+2}=5+\\left(5+x_{n}\\right)^{2}=30+10\\left(x_{n}\\right)^{2}+\\left(x_{n}\\right)^{4}$ la divisibilità per $3$ si conserva.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33642, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\na) Si dimostri che se in un triangolo vi sono due altezze di egual lunghezza, allora il triangolo è isoscele.\n\nb) Si dimostri che se in un triangolo vi sono due mediane di egual lunghezza, allora il triangolo è isoscele.\n\nc) Sui lati $A B$ e $A C$ di un triangolo $A B C$ si scelgano due punti $M, N$ in modo tale che $A M: A B=A N: A C$ e si supponga che $B N=C M$; si dimostri che il triangolo $A B C$ è isoscele.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\na. Siano $B$ e $C$ i vertici da cui partono le due altezze uguali, rispettivamente relative ai lati $A C$ e $A B$. Calcolando l'area $S$ del triangolo rispetto ad $A B$ e ad $A C$ e chiamando $h$ la lunghezza comune delle due altezze, si ha\n$$\nS = \\frac{A B \\cdot h}{2} = \\frac{A C \\cdot h}{2}\n$$\nda cui $A B = A C$.\n\nb. Siano $B$ e $C$ i vertici da cui partono le due mediane uguali, rispettivamente relative ai lati $A C$ e $A B$, che intersecano nei punti medi rispettivamente $N$ e $M$. Chiamiamo inoltre $O$ il punto di incontro delle mediane (baricentro). Come è noto $O$ divide ciascuna mediana in due parti di cui quella che contiene il vertice è lunga il doppio dell'altra: poiché però le due mediane hanno la stessa lunghezza, anche i due segmenti $C O$ e $B O$ (che sono lunghi i $2/3$ della corrispondente mediana) hanno la stessa lunghezza e perciò il triangolo $B O C$ è isoscele e i triangoli $B O M$ e $C O N$ sono congruenti (hanno due lati corrispondenti e l'angolo compreso della stessa misura: $C O$ e $B O$ come detto, analogamente $N O$ ed $M O$, e i due angoli $C \\widehat{O} N$ e $B \\widehat{O} M$ perché opposti al vertice).\n\nMa allora gli angoli $B \\widehat{C} O$ e $C \\widehat{B} O$ hanno la stessa misura (sono angoli alla base di un triangolo isoscele), come anche gli angoli $O \\widehat{C} N$ e $O \\widehat{B} M$ (sono angoli corrispondenti di triangoli congruenti). Quindi $B \\widehat{C} A = B \\widehat{C} O + O \\widehat{C} A$ e $C \\widehat{B} A = C \\widehat{B} O + O \\widehat{B} A$ sono congruenti e $A B C$ è isoscele.\n\nAltra dimostrazione: b) è un caso particolare di c).\n\nc. Per il teorema di Talete, la retta del segmento $B C$ è parallela a quella del segmento $M N$. Ma allora gli angoli $B \\widehat{C} M$ e $C \\widehat{M} N$ (e quelli $N \\widehat{B} C$ e $B \\widehat{N} M$) sono congruenti perché formati da parallele tagliate da una trasversale. Se $O$ è il punto di incontro dei segmenti $B N$ e $C M$, anche $C \\widehat{O} B$ e $N \\widehat{O} M$ sono congruenti perché opposti al vertice, quindi i triangoli $B O C$ e $M O N$ sono simili. Ma allora\n$$\nB O : O N = C O : O M\n$$\nda cui, sommando nella proporzione,\n\n![](attached_image_1.png)\n\n$$\nB N : O N = C M : O M\n$$\nMa, poiché $B N = C M$, anche $O N = O M$, cioè il triangolo $M O N$ (e quindi anche il triangolo $B O C$) è isoscele. Ma allora i triangoli $M B C$ e $N C B$ sono congruenti (hanno $C M = B N$, $B C$ in comune e congruenti gli angoli compresi $N \\widehat{B} C$ e $M \\widehat{C} B$) e perciò gli angoli $B \\widehat{C} A$ ed $A \\widehat{B} C$ sono congruenti e il triangolo $A B C$ è isoscele.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33643, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSono dati tre interi positivi $a, b, c$. Posto $x = a b$, $y = a c$, $z = b c$, quale delle seguenti affermazioni è vera?\n\n(A) Se $x, y, z$ sono dei quadrati, allora $a, b, c$ sono dei quadrati\n(B) se $x, y, z$ sono pari, allora $a, b, c$ sono pari\n(C) se $x, y, z$ sono dei cubi, allora $a, b, c$ sono dei cubi\n(D) se $x, y, z$ sono multipli di 10, allora $a, b, c$ sono multipli di 10\n(E) nessuna delle precedenti affermazioni è corretta.", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è (C). Dato un primo $p$ indichiamo con $x_{p}, y_{p}$ e $z_{p}$ l'esponente (eventualmente nullo) con cui $p$ compare nella fattorizzazione rispettivamente di $x$, di $y$ e di $z$; in modo analogo fissiamo $a_{p}, b_{p}$ e $c_{p}$. L'ipotesi di (C) è equivalente a dire che $x_{p}, y_{p}, z_{p}$ sono multipli di 3 per ogni primo $p$. Sappiamo quindi che 3 divide i numeri $(a_{p} + b_{p}), (a_{p} + c_{p})$ e $(b_{p} + c_{p})$ e pertanto 3 divide anche:\n$$\n(a_{p} + b_{p}) + (a_{p} + c_{p}) - (b_{p} + c_{p}) = 2 a_{p}\n$$\nquindi $a_{p}$ è divisibile per 3. In modo del tutto analogo si verifica che anche $b_{p}$ e $c_{p}$ sono divisibili per 3, questo vale per ogni $p$ e quindi $a, b, c$ sono dei cubi.\n\nSi danno qui di seguito controesempi per le altre risposte:\n(A) $a = b = c = 2$;\n(B) $a = b = 2, c = 1$;\n(D) $a = b = 10, c = 1$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33644, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nTre circonferenze passano per l'origine. Il centro della prima circonferenza sta nel primo quadrante, il centro della seconda sta nel secondo quadrante, il centro della terza sta nel terzo quadrante. Se $P$ è un punto interno alle tre circonferenze, allora\n(A) $P$ sta nel secondo quadrante\n(B) $P$ sta nel primo o nel terzo quadrante\n(C) $P$ sta nel quarto quadrante\n(D) non può esistere un punto $P$ siffatto\n(E) non si può dire nulla.", "options": [], "answer": "A", "solution": "Solution:\n\nLa risposta è (A). Osserviamo che se una circonferenza passa per l'origine ed ha il centro in un quadrante, allora nessun punto interno sta nel quadrante opposto. In particolare se $P$ è interno alle tre circonferenze, allora deve trovarsi nel secondo quadrante, poiché i tre centri si trovano nel primo, secondo e terzo quadrante. Effettivamente può esistere un punto siffatto, come mostra il disegno a fianco.\n\n![](attached_image_1.png)", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33645, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nQuanto misura il raggio della circonferenza piccola nella figura a fianco, se il lato del quadrato è lungo $1$?\n\n(A) $3-2 \\sqrt{2}$\n(B) $\\frac{1}{4}$\n(C) $\\frac{\\sqrt{2}}{4}$\n(D) $\\frac{\\sqrt{2}-1}{2}$\n(E) $4-3 \\sqrt{2}$.\n\n![](attached_image_1.png)", "options": [], "answer": "A", "solution": "Solution:\n\nLa risposta è (A). Con riferimento alla figura a fianco, detto $r$ il raggio richiesto, si ha $1 + r + r \\sqrt{2} = \\sqrt{2}$, da cui $r = \\frac{\\sqrt{2} - 1}{\\sqrt{2} + 1}$ e infine, razionalizzando, $r = 3 - 2 \\sqrt{2}$.\n\n![](attached_image_2.png)", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33646, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn tastierino numerico quadrato di lato $4$ ha $16$ tasti numerati da $1$ a $16$. L'agente $007$ deve premere due tasti contemporaneamente per penetrare nella base nemica, e se sbaglia farà suonare l'allarme. Tuttavia sa soltanto che i due tasti non sono contigui (cioè non hanno un lato o un vertice in comune). Qual è la probabilità che riesca ad infiltrarsi?\n\n(A) $\\frac{1}{64}$\n(B) $\\frac{1}{78}$\n(C) $\\frac{1}{128}$\n(D) $\\frac{1}{156}$\n(E) $\\frac{1}{160}$.", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è (B). La probabilità richiesta è l'inverso del numero delle possibili paia di tasti non contigui. Per contare tali paia distinguiamo vari casi:\n\na) uno dei tasti è tra i quattro centrali: allora l'altro deve essere sul bordo, e vanno esclusi 5 tasti contigui.\nPossibilità: $4 \\cdot 7 = 28$\n\nb) uno dei tasti è in un vertice e l'altro no (ma non nei quattro centrali): sono esclusi solo due tasti del bordo contigui al vertice.\nPossibilità $4 \\cdot 6 = 24$\n\nc) tutti e due i tasti sono nei vertici: ci sono tante possibilità quante le paia di vertici.\nPossibilità $4 \\cdot 3 / 2 = 6$\n\nd) tutti e due i tasti sono sul bordo ma non nei vertici: ci sono 8 tasti e ogni tasto ne esclude esattamente due contigui, lasciandone 5 validi (ma ogni paio viene contato due volte).\nPossibilità $8 \\cdot 5 / 2 = 20$\n\nDunque le possibilità totali sono $78$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33647, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn Italia le targhe automobilistiche sono composte da 2 lettere, seguite da 3 cifre e da altre 2 lettere. Nel paese di Ailati le cose vanno alla rovescia e le targhe sono composte da 2 cifre, seguite da 3 lettere e da altre 2 cifre. Supponendo che in entrambi i paesi si usino 10 cifre e 22 lettere (I, O, U, Q non sono utilizzate), determinare la differenza tra il numero di tutte le targhe possibili nei due paesi.\n(A) 0\n(B) $12 \\cdot 10^{3} \\cdot 22^{3}$\n(C) $\\left(22^{2}-10^{2}\\right)^{2}-\\left(22^{3}-10^{3}\\right)$\n(D) $12 \\cdot 3 \\cdot 22 \\cdot 3 \\cdot 10$\n(E) $4^{10} \\cdot 3^{10} \\cdot\\left(4^{12}-3^{12}\\right)$.", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è (B). Ogni lettera può essere scelta in 22 modi, ogni cifra in 10 modi, e ogni scelta di una lettera o di una cifra può essere combinata con qualsiasi altra scelta di cifre e di lettere in altre posizioni. Pertanto le targhe italiane sono $10^{3} \\cdot 22^{4}$ e quelle di Ailati $10^{4} \\cdot 22^{3}$; la differenza risulta $10^{3} \\cdot 22^{3} \\cdot(22-10)=12 \\cdot 10^{3} \\cdot 22^{3}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33648, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn punto interno ad un triangolo equilatero dista $5$, $7$, $8$ dai tre lati. Quanto vale il lato del triangolo?\n\n(A) I dati non sono sufficienti\n(B) la configurazione data non può esistere\n(C) il lato vale $20$\n(D) il lato vale $14 \\sqrt{3}$\n(E) il lato vale $\\frac{40}{3} \\sqrt{3}$.", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è (E). Con riferimento alla figura a fianco, si ha infatti che l'area del triangolo equilatero di lato $l$ incognito può essere determinata in due modi:\n\n1) come somma di tre aree di tre triangoli di base $l$ e di altezza $5, 7, 8$\n\n2) con la consueta formula dell'area, tenendo presente che l'altezza di un triangolo equilatero è $l \\frac{\\sqrt{3}}{2}$.\n\nSi ha quindi $\\frac{l \\cdot (5+7+8)}{2} = \\frac{1}{2} l^{2} \\frac{\\sqrt{3}}{2}$, da cui $l = \\frac{40}{3} \\sqrt{3}$.\n\n![](attached_image_1.png)", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33649, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUna stella a 6 punte viene disegnata costruendo sui lati di un esagono regolare sei triangoli isosceli con angolo al vertice di $30$ gradi. Sapendo che la circonferenza che passa per le punte della stella ha raggio $1$, calcolare l'area della stella stessa.\n\n(A) $\\sqrt{3}$\n(B) $\\frac{3(\\sqrt{3}-1)}{2}$\n(C) $\\frac{3(\\sqrt{3}+1)}{2}$\n(D) $\\frac{3(\\sqrt{3}-2)}{2}$\n(E) nessuna delle precedenti.\n\n![](attached_image_1.png)", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è (B). I sei triangoli isosceli hanno due angoli di $75^{\\circ}$. L'angolo compreso fra due lati di due triangoli isosceli aventi un vertice in comune è quindi $360^{\\circ}-\\left(75^{\\circ}+75^{\\circ}+120^{\\circ}\\right)=90^{\\circ}$. Con riferimento alla figura a fianco, si osserva che l'area $S$ richiesta può essere ottenuta sottraendo dall'area dell'esagono regolare (che ha lato pari al raggio della circonferenza circoscritta) l'area di 6 triangoli rettangoli isosceli di lato $\\frac{1}{\\sqrt{2}}$. Si ha quindi\n$$\nS=\\frac{6 \\cdot \\frac{\\sqrt{3}}{2}}{2}-6 \\cdot \\frac{\\frac{1}{\\sqrt{2}} \\cdot \\frac{1}{\\sqrt{2}}}{2}\n$$\nda cui\n$$\nS=\\frac{6 \\sqrt{3}}{4}-\\frac{6}{4}=\\frac{3(\\sqrt{3}-1)}{2}\n$$\n\n![](attached_image_2.png)", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33650, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nPer quante coppie $(p, q)$ di numeri primi (positivi) il polinomio $x^{2}+p x+q$ ha due radici intere? NOTA: Si ricorda che 1 non è un numero primo.\n\n(A) 0\n(B) 1\n(C) 2\n(D) 4\n(E) infinite.", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è (B). Infatti siano $a$ e $b$ le due radici intere del polinomio. Si ha quindi che $(x-a)(x-b)=x^{2}-(a+b)x+ab=x^{2}+p x+q$ da cui:\n$$\na+b=-p, \\quad ab=q\n$$\nPoiché $q$ è un primo, dalla seconda relazione si ricava che $a, b= \\pm 1$ o $a, b= \\pm q$. Dovendo essere $a+b$ negativo si ha che $a=-1$ e $b=-q$ (o viceversa). Quindi si ricava che $-1-q=-p \\Rightarrow 1+q=p$, ovvero che $p$ è il successivo di $q$. Essendo gli unici due primi consecutivi 2 e 3 se ne ricava $p=3$ e $q=2$ e quindi esiste un'unica soluzione.\n\nSiano $a, b$ le due eventuali radici intere. Allora si ha $x^{2}+p x+q=(x-a)(x-b)$, da cui $a+b=-p$ e $ab=q$. Dato che $q$ è primo, dalla seconda condizione otteniamo $a= \\pm 1, \\pm q$ e corrispondentemente $b= \\pm q, \\pm 1$. Scambiando eventualmente $a$ e $b$, possiamo supporre che sia $a= \\pm 1, b= \\pm q$. La prima condizione impone che $b$ sia negativo, quindi $a=-1, b=-q$ e $p-q=1$. I soli primi che differiscono di 1 sono 2 e 3. Pertanto si ha solo la coppia (3,2), corrispondente a $a=-1, b=-3$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33651, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn a square $ABCD$ with side $2$, a segment $MN$ of length $1$ is constrained to have endpoint $M$ on side $AB$ and endpoint $N$ on side $BC$. This segment divides the square into a triangle $T$ and a pentagon $P$. What is the maximum value that the ratio of the area of $T$ to that of $P$ can take?\n\n(A) $\\frac{1}{4}$\n(B) $\\frac{2}{5}$\n(C) $\\frac{1}{7}$\n(D) $\\frac{2}{15}$\n(E) $\\frac{1}{15}$.", "options": [], "answer": "E", "solution": "Solution:\n\nThe answer is $\\mathbf{(E)}$. The ratio between the two areas is maximized when the area of $T$ is maximized: in this case, the area of $P$ assumes its minimum value. $T$ is a right triangle whose hypotenuse is $1$, and it has maximum area when it is isosceles. Indeed, such a triangle can be inscribed in a semicircle of diameter $1$ and attains maximum area when the altitude relative to the hypotenuse is maximized, that is, equals $\\frac{1}{2}$. In this case, the area of $T$ is $\\frac{1}{4}$ and that of $P$ is $4-\\frac{1}{4}=\\frac{15}{4}$, and thus the ratio is $\\frac{1}{15}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33652, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $\\mathcal{R}$ la regione finita del piano che è delimitata dall'asse $x$ e dal grafico della curva di equazione $2 x^{2}+5 y=10$. Dati tre punti di $\\mathcal{R}$, quale delle seguenti affermazioni è sempre vera?\n\n(A) almeno due dei tre punti hanno distanza $\\geq \\frac{\\sqrt{5}}{2}$\n(B) almeno due dei tre punti hanno distanza $\\leq 3$\n(C) la somma delle distanze fra i punti è $\\leq \\frac{9}{2} \\sqrt{5}$\n(D) la somma dei quadrati delle distanze fra i punti è $\\leq 38$\n(E) il prodotto delle distanze tra i punti è $\\leq 16 \\sqrt{5}$.", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è (B). Si tratta di un segmento di parabola con il vertice $V=(0,2)$ e intersezioni con gli assi $A=(-\\sqrt{5}, 0)$ e $B=(\\sqrt{5}, 0)$. Due dei tre punti devono trovarsi nello stesso quadrante, e quindi la loro distanza non può superare la lunghezza del segmento $A V$, che è 3 per il teorema di Pitagora (infatti, la parte di regione compresa nel primo quadrante è interamente contenuta nel cerchio di diametro $B V$ e quella contenuta nel secondo quadrante è interamente contenuta nel cerchio di diametro $A V$ ). Si osservi che tutte le altre risposte sono false:\n\n(A) almeno due dei tre punti hanno distanza $\\geq \\frac{\\sqrt{5}}{2}$ : ovviamente i punti si possono prendere vicini quanto si vuole!\n\n(C) la somma delle distanze fra i punti è $\\leq \\frac{9}{2} \\sqrt{5}$ : basta prendere $A, B$ e $V$ per avere $2 \\sqrt{5}+6>\\frac{9}{2} \\sqrt{5}$.\n\n(D) la somma dei quadrati delle distanze fra i punti è $\\leq 38$ : prendendo $A, B, B$ la somma dei quadrati delle distanze è uguale a 40 (se si cercano 3 punti distinti con somma dei quadrati delle distanze maggiore di 38 , basta prendere $A, B, C$ con $C$ molto vicino a $B$ ).\n\n(E) il prodotto delle distanze tra i punti è $\\leq 16 \\sqrt{5}$ : prendendo ancora $A, B$ e $V$ si ha $18 \\sqrt{5}>16 \\sqrt{5}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33653, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn un parallelepipedo rettangolo $P$ la lunghezza della diagonale è $\\sqrt{133}$ e la superficie totale è $228$. Sapendo che uno dei lati è medio proporzionale tra gli altri due, il volume di $P$ è\n(A) $64$\n(B) $125$\n(C) $192$\n(D) $216$\n(E) $343$.", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). Se indichiamo con $x, y$ e $z$ le lunghezze dei lati in ordine crescente, le ipotesi si traducono come\n$$\n\\left\\{\n\\begin{array}{l}\nx y + x z + y z = \\frac{228}{2} = 114 \\\\\nx^{2} + y^{2} + z^{2} = 133 \\\\\nx z = y^{2}\n\\end{array}\n\\right.\n$$\n\nDalle prime due otteniamo $(x + y + z)^{2} = \\left(x^{2} + y^{2} + z^{2}\\right) + 2(x y + x z + y z) = 361$ e dunque $x + y + z = 19$. Sostituendo la terza nella prima otteniamo $y(x + y + z) = x y + x z + y z = 114$, da cui $y = 6$. Perciò il volume è $x y z = y^{3} = 216$. D'altra parte un parallelepipedo di lati $x = 4, y = 6, z = 9$ soddisfa le ipotesi.", "topic": "Geometry", "subtopic": "Solid Geometry" }, { "id": 33654, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nQuanti sono i numeri di due cifre $AB$ tali che $(AB)^2 = CAAB$, con $C = B-1$ (in notazione decimale)?\n\n(A) 0\n(B) 1\n(C) 2\n(D) 3\n(E) 9.", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è (B).\n\nInnanzi tutto sappiamo che il numero $AB$ e il suo quadrato hanno entrambi la stessa cifra finale $B$. Quindi $B$ deve assumere uno dei quattro valori $0, 1, 5, 6$. I casi 0 e 1 li escludiamo visto che $C = B-1$ è una cifra positiva. Negli altri casi la relazione $(AB)^2 = CAAB$ diventa:\n\n1) $(A5)^2 = (10A+5)^2 = 100A^2 + 100A + 25 = 4AA5 = 4005 + 110A$ da cui $10A^2 - A - 398 = 0$ che non ha soluzione per $A = 1, 2, \\ldots, 9$.\n\n2) $(A6)^2 = (10A+6)^2 = 100A^2 + 120A + 36 = 5AA6 = 5006 + 110A$ da cui $10A^2 + A - 497 = 0$ che ha come soluzioni intere soltanto $A = 7$.\n\nQuindi l'unica soluzione per $AB$ è $AB = 76$.\n\n\nSECONDA SOLUZIONE\n\nSi deve avere $(10A+B)^2 = 100A^2 + 20AB + B^2 = 1000(B-1) + 100A + 10A + B$. Dunque la cifra finale del quadrato di $B$ deve essere $B$, quindi $B = 0, 1, 5, 6$. Ora $B$ deve essere maggiore di 1, perché altrimenti $B-1$ non può essere la cifra iniziale di $(AB)^2$, quindi $B = 5, 6$. Ora se $B = 5$ $A$ deve essere 6, perché $(AB)^2$ deve stare tra 4000 e 5000; ma $65^2 = 4225$ non soddisfa la condizione richiesta. Se invece $B = 6$ $A$ deve essere 7, perché $(AB)^2$ deve stare tra 5000 e 6000; e $76^2 = 5776$ soddisfa la condizione richiesta.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33655, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nTrovare tutti i numeri naturali $n$ di tre cifre $(100 \\leq n \\leq 999)$ che sono uguali al numero formato dalle ultime tre cifre di $n^{2}$.", "options": [], "answer": "376, 625", "solution": "Solution:\nI numeri richiesti sono $376$ e $625$.\nIl quadrato di $n$ ha le stesse ultime tre cifre di $n$ se e solo se $n^{2}-n=n(n-1)$ è divisibile per $1000=2^{3} \\cdot 5^{3}$. Poiché $n$ ed $n-1$ sono primi fra loro, uno solo dei due è pari ed uno solo dei due può essere divisibile per $5$. Pertanto abbiamo le seguenti possibilità:\n- $n$ è divisibile sia per $2^{3}$ che per $5^{3}$, quindi $n$ è divisibile per $1000$: nessun numero $n$ di 3 cifre ha questa proprietà;\n- $n-1$ è divisibile sia per $2^{3}$ che per $5^{3}$, quindi $n-1$ è divisibile per $1000$: nessun numero $n$ di 3 cifre ha questa proprietà;\n- $n$ è divisibile per $2^{3}$ ed $n-1$ è divisibile per $5^{3}$; l'unico numero di 3 cifre con queste proprietà è $n=376$, (una verifica diretta dà in effetti $n^{2}=141376$ );\n- $n$ è divisibile per $5^{3}$ ed $n-1$ è divisibile per $2^{3}$; l'unico numero di 3 cifre con queste proprietà è $n=625$, (una verifica diretta dà in effetti $n^{2}=390625$ ).\nSolution:\nRappresentiamo $n$ come $ABC$, dove $A, B, C$ sono le sue cifre decimali. Dobbiamo ottenere $ABC^{2}=XYZABC$. Osserviamo che, in generale, l'ultima cifra di $n^{2}$ dipende solo dall'ultima cifra di $n$, così come le due ultime cifre di $n^{2}$ dipendono solo dalle ultime due cifre di $n$.\nPer verifica diretta, la cifra $C$ delle unità può essere solo $0,1,5,6$.\nSe $C=0$, allora $n$ è divisibile per $10$, quindi $n^{2}$ è divisibile per $100$ e quindi anche $B=0$. Ma allora $n$ è divisibile per $100$, $n^{2}$ è divisibile per $10000$ e quindi anche $A=0$, non ammesso.\nSe $C=1$, poiché $(10B+1)^{2}=100B^{2}+20B+1$, dobbiamo avere $2B=B$, cioè $B=0$, oppure $2B=10+B$, impossibile. Se $B=0$, poiché $(100A+1)^{2}=10000A^{2}+200A+1$, otteniamo come sopra $A=0$, e cioè $n=1$, non ammesso.\nSe $C=5$, poiché $(10B+5)^{2}=100B^{2}+100B+25$, dobbiamo avere $B=2$. Analogamente, da $(100A+25)^{2}=10000A^{2}+5000A+625$ si ottiene $A=6$. In effetti, $625^{2}=390625$ e quindi $n=625$ è una soluzione.\nSe $C=6$, poiché $(10B+6)^{2}=100B^{2}+120B+36$, dobbiamo avere $2B+3=B$, impossibile, oppure $2B+3=10+B$, cioè $B=7$. Infine, da $(100A+76)^{2}=10000A^{2}+15200A+5776$, si ricava $2A+7=A$, impossibile, oppure $2A+7=10+A$, ossia $A=3$. In effetti, $376^{2}=141376$ e quindi $n=376$ è una soluzione.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33656, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nUn museo ha la pianta quadrata ed è suddiviso in $n^{2}$ stanze quadrate tutte uguali (con $n>1$). Ogni coppia di stanze adiacenti (cioè con un muro in comune) comunica mediante una porta (come mostrato nell'esempio a fianco per $n=4$). Il guardiano notturno vuole organizzare il suo giro di ispezione in modo da rispettare le seguenti regole: il guardiano parte da una certa stanza, dove rimane per un minuto, terminato il quale si sposta in una stanza adiacente, dove rimane per un altro minuto; il percorso\n![](attached_image_1.png)\nprosegue collegando stanze adiacenti, in ognuna delle quali il guardiano rimane sempre esattamente un minuto prima di spostarsi.\nÈ consentito ripassare più volte dalla stessa stanza, ma al termine del percorso (che non si trova necessariamente nella stanza d'inizio) il guardiano deve essere stato in ognuna delle $n^{2}$ stanze per esattamente $k$ minuti.\nDeterminare per quali interi positivi $n$ e $k$ è possibile organizzare il percorso rispettando queste regole.", "options": [], "answer": "If the grid size is even, a route exists for any positive k. If the grid size is odd, a route exists only for k = 1.", "solution": "Solution:\nSe $n$ è pari si riesce a costruire il percorso per qualsiasi $k$. Infatti si riesce ad esibire un percorso chiuso che passa una volta da ciascuna stanza, e facendo $k$ giri si ottiene il tragitto del guardiano.\nSupponiamo per comodità che il museo sia orientato lungo i punti cardinali. Un modo per costruire questo percorso è il seguente: il guardiano parte dalla sala nell'angolo a sud-ovest e procede lungo il lato sud fino ad arrivare all'angolo a sud-est.\n![](attached_image_2.png)\nA questo punto deve ancora attraversare le stanze di un rettangolo $(n-1) \\times n$, che percorre a serpentina. Si muove verso nord per $n-1$ sale (vedi esempio sopra per $n=4$), poi si sposta a ovest e torna verso sud per $n-2$ stanze. A questo punto ha attraversato le due file di stanze più ad est. Se si sposta a ovest e ripete il procedimento, visto che $n$ è pari, attraversa a coppie tutte le file di stanze e può ritornare alla fine nella sala da cui era partito.\nSe invece $n$ è dispari, il problema ha soluzione solo per $k=1$. In questo caso è facile trovare il percorso, che però non ritorna al punto di partenza, facendo una serpentina nel modo descritto sopra. Per vedere che negli altri casi non c'è soluzione, pensiamo di colorare le stanze di bianco e nero, come in una scacchiera, con il nero negli angoli. È facile vedere che in questo modo le sale nere sono una di più di quelle bianche. Di conseguenza se il guardiano riuscisse a fare un percorso che passa $k$ volte da ogni stanza dovrebbe aver visitato $k$ sale nere in più di quelle bianche. Tuttavia può\n![](attached_image_3.png)\npassare da una stanza solo ad un'altra di colore diverso, perciò la differenza tra sale nere e bianche visitate può essere al massimo 1 durante il tragitto, e per $k>1$ non c'è soluzione.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33657, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nUn museo ha la pianta quadrata ed è suddiviso in $n^{2}$ stanze quadrate tutte uguali (con $n>1$ ). Ogni coppia di stanze adiacenti (cioè con un muro in comune) comunica mediante una porta (come mostrato nell'esempio a fianco per $n=4$ ). Il guardiano notturno vuole organizzare il suo giro di ispezione in modo da rispettare le seguenti regole: il guardiano parte da una certa stanza, dove rimane per un minuto, terminato il quale si sposta in una stanza adiacente, dove rimane per un altro minuto; il percorso\n![](attached_image_1.png)\nprosegue collegando stanze adiacenti, in ognuna delle quali il guardiano rimane sempre esattamente un minuto prima di spostarsi.\nÈ consentito ripassare più volte dalla stessa stanza, ma al termine del percorso (che non si trova necessariamente nella stanza d'inizio) il guardiano deve essere stato in ognuna delle $n^{2}$ stanze per esattamente $k$ minuti.\nDeterminare per quali interi positivi $n$ e $k$ è possibile organizzare il percorso rispettando queste regole.", "options": [], "answer": "If the grid side length is even, it is possible for every positive required per-room count. If the grid side length is odd, it is possible only when the required per-room count equals one.", "solution": "Solution:\nSe $n$ è pari si riesce a costruire il percorso per qualsiasi $k$. Infatti si riesce ad esibire un percorso chiuso che passa una volta da ciascuna stanza, e facendo $k$ giri si ottiene il tragitto del guardiano.\nSupponiamo per comodità che il museo sia orientato lungo i punti cardinali. Un modo per costruire questo percorso è il seguente: il guardiano parte dalla sala nell'angolo a sud-ovest e procede lungo il lato sud fino ad arrivare all'angolo a sud-est.\n![](attached_image_2.png)\nA questo punto deve ancora attraversare le stanze di un rettangolo $(n-1) \\times n$, che percorre a serpentina. Si muove verso nord per $n-1$ sale (vedi esempio sopra per $n=4$ ), poi si sposta a ovest e torna verso sud per $n-2$ stanze. A questo punto ha attraversato le due file di stanze più ad est. Se si sposta a ovest e ripete il procedimento, visto che $n$ è pari, attraversa a coppie tutte le file di stanze e può ritornare alla fine nella sala da cui era partito.\nSe invece $n$ è dispari, il problema ha soluzione solo per $k=1$. In questo caso è facile trovare il percorso, che però non ritorna al punto di partenza, facendo una serpentina nel modo descritto sopra. Per vedere che negli altri casi non c'è soluzione, pensiamo di colorare le stanze di bianco e nero, come in una scacchiera, con il nero negli angoli. È facile vedere che in questo modo le sale nere sono una di più di quelle bianche. Di conseguenza se il guardiano riuscisse a fare un percorso che passa $k$ volte da ogni stanza dovrebbe aver visitato $k$ sale nere in più di quelle bianche. Tuttavia può\n![](attached_image_3.png)\npassare da una stanza solo ad un'altra di colore diverso, perciò la differenza tra sale nere e bianche visitate può essere al massimo 1 durante il tragitto, e per $k>1$ non c'è soluzione.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33658, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nIn un'isola ci sono due categorie di persone: i cavalieri, che dicono sempre la verità, e i furfanti, che mentono sempre. Un certo giorno si riunisce il gran consiglio, costituito da 2003 membri. Essi si siedono a caso intorno ad una tavola rotonda, e durante la riunione ciascuno di essi dichiara: \"Entrambi $i$ miei vicini sono furfanti\". Il giorno dopo il consiglio si riunisce di nuovo, ma uno dei membri è malato, per cui sono presenti solo 2002 membri. Essi si ridispongono nuovamente a caso intorno alla tavola rotonda e ciascuno di essi dice: \"Entrambi i miei vicini appartengono alla categoria opposta alla mia\".\nIl malato era un furfante o un cavaliere?", "options": [], "answer": "The sick person was a knight.", "solution": "Solution:\nIl malato era un cavaliere.\nDalla dichiarazione del primo giorno si deduce che accanto ad ogni cavaliere ci sono due furfanti, mentre non è possibile che ci siano due furfanti accanto ad un furfante. In particolare, non ci possono essere tre furfanti consecutivi, e pertanto, su 3 persone sedute consecutivamente a tavola, almeno una è un cavaliere. Sommiamo il numero di presenze dei cavalieri su tutte le 2003 terne di posti consecutivi. Il totale deve essere almeno 2003 e, poiché in questo modo ogni cavaliere viene contato 3 volte (tante quante sono le terne di posti consecutivi in cui si trova), se ne deduce che il numero dei cavalieri deve essere maggiore o uguale ad un terzo dei presenti, cioè maggiore o uguale a 668.\nDalla dichiarazione del secondo giorno si deduce nuovamente che accanto ad ogni cavaliere ci sono due furfanti, mentre accanto ad un furfante non possono sedere due cavalieri. In tutti i casi, in una terna di persone consecutive ci può essere al massimo un cavaliere. Analogamente a prima, se ne deduce che il numero dei cavalieri presenti deve essere minore o uguale ad un terzo dei presenti, cioè minore o uguale a 667.\nDunque l'unica possibilità è che il malato fosse un cavaliere. Si noti infine che, se il malato era un cavaliere, la situazione descritta è effettivamente possibile: per esempio, nel primo giorno di riunione ci possono 668 cavalieri e 1335 furfanti seduti secondo lo schema CFFCFF...... CFFCFFCF e nel secondo giorno di riunione ci possono essere 667 cavalieri e 1335 furfanti seduti secondo lo schema CFFCFF......CFFCFFF. Nota: per ottenere che il primo giorno il numero dei cavalieri deve essere maggiore o uguale a 668, si può anche ragionare così: certamente c'è un cavaliere, e alla sua destra ci deve essere un furfante. Suddividento i restanti 2001 posti in 667 gruppi di tre consecutivi, si nota che in ciascuno di essi ci deve essere un cavaliere e quindi il numero totale dei cavalieri deve essere maggiore o uguale a 668. Analogamente, per il secondo giorno si può osservare che certamente c'è un furfante, e suddividendo gli altri 2001 posti in 667 gruppi di 3 consecutivi, si nota che in ciascuno di essi c'è al massimo un cavaliere, e quindi il numero dei cavalieri è minore o uguale a 667.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33659, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nData una griglia $m \\times n$ ($m, n \\geq 1$) si dispone una pedina al centro di ogni casella e una in ogni vertice della griglia (nell'esempio mostrato a fianco con $n=4$ e $m=3$ si dispongono 32 pedine).\n\na. Trovare tutte le tabelle che hanno esattamente 500 pedine.\n\nb. Dimostrare che esistono infiniti interi positivi $k$ tali che non esistono griglie con esattamente $k$ pedine.\n\n![](attached_image_1.png)\n", "options": [], "answer": "All m-by-n grids with exactly 500 tokens are (m,n) = (1,166), (4,55), (13,18), (18,13), (55,4), (166,1). Moreover, there are no grids with exactly N tokens whenever 2N − 1 is prime, yielding infinitely many unattainable N.", "solution": "Solution:\n\nData una griglia $m \\times n$, il numero di pedine poste sui vertici della griglia è $(m+1)(n+1)$, mentre il numero di pedine poste al centro di ogni casella è $m n$, sicché il totale di pedine è\n$$\nN = 2 m n + m + n + 1.\n$$\nOsserviamo che\n$$\n2N - 1 = 4 m n + 2 m + 2 n + 1 = (2m + 1)(2n + 1).\n$$\nPoiché $m \\geq 1$ ed $n \\geq 1$, si ha $2m + 1 \\geq 3$ e $2n + 1 \\geq 3$; e quindi si deduce che le soluzioni corrispondono alle decomposizioni di $2N - 1$ come prodotto di due numeri dispari maggiori di 1. Se $N = 500$, $2N - 1 = 999 = 3^3 \\cdot 37$, tali decomposizioni sono\n$$\nN = 3 \\cdot 333 = 9 \\cdot 111 = 27 \\cdot 37 = 37 \\cdot 27 = 111 \\cdot 9 = 333 \\cdot 3\n$$\ne dunque le coppie di numeri $(m, n)$ relative alla domanda (a) sono le seguenti:\n$$\n(1,166),\\ (4,55),\\ (13,18),\\ (18,13),\\ (55,4),\\ (166,1)\n$$\nPer rispondere alla domanda (b), mostriamo che, se $2N - 1$ è primo, allora non esistono griglie con esattamente $N$ pedine. In effetti un numero primo non si può scrivere come prodotto di due interi entrambi maggiori di 1.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33660, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nAd un pranzo sono state invitate $n$ persone, che siederanno attorno ad una tavola rotonda, i cui posti sono stati contrassegnati da 1 ad $n$ mediante opportuni cartellini segnaposto, distribuiti da un maestro cerimoniere.\nIl cameriere ha deciso di servire le portate seguendo un procedimento originale: sceglie un invitato, lo serve, poi si sposta in senso antiorario di un numero di posti uguale al numero del segnaposto dell'invitato appena servito, serve l'invitato in corrispondenza del quale si trova ora, e così via, spostandosi sempre in senso antiorario in base al numero di segnaposto dell'ultimo invitato servito.\nDeterminare per quali $n$ il maestro cerimoniere può sistemare i segnaposto in modo che il cameriere possa, partendo da un invitato opportuno e seguendo il procedimento descritto, servire tutti i commensali.", "options": [], "answer": "n is even", "solution": "Solution:\nÈ possibile sistemare i segnaposto nel modo voluto se e solo se $n$ è pari.\nSe $n=2k$ è pari, una possibile soluzione è la seguente: procedendo in senso orario lungo la tavola, il maestro cerimoniere piazza prima il segnaposto numero $2k$, poi tutti quelli pari in ordine crescente e quindi tutti i dispari in ordine crescente. Se ora il cameriere parte dal segnaposto $1$ e segue la regola, percorre tutto il tavolo. Si verifica infatti che dopo aver servito un numero $i$ dispari, il cameriere va al numero $2k-i-1$, che è pari, e poi al numero $i+2$, che è nuovamente dispari.\n\nIl percorso del cameriere sarà dunque il seguente: $1, 2k-2, 3, 2k-4, 5, 2k-6$, e così via, per terminare il percorso servendo il numero $2k$.\n\nMostriamo ora che se $n=2k+1$ è dispari, allora non c'è nessuna disposizione dei segnaposto che vada bene. Supponiamo infatti che una tale disposizione esista, e che il cameriere completi il tavolo servendo nell'ordine i numeri $x_{1}, x_{2}, \\ldots, x_{2k+1}$. Allora $x_{2k+1}=2k+1$, in quanto se dovesse proseguire dopo aver servito il numero $2k+1$, il cameriere dovrebbe fare un giro completo del tavolo e dunque tornare sullo stesso posto. Ma allora la somma dei numeri precedenti è\n$$\nx_{1}+x_{2}+\\ldots+x_{2k}=1+2+\\ldots+2k=\\frac{2k(2k+1)}{2}=k(2k+1)\n$$\nche è un multiplo di $2k+1$. Ne segue che dopo aver servito i primi $2k$ invitati il cameriere è tornato al punto di partenza, dunque non servirà mai il numero $2k+1$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33661, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nOsservando le temperature registrate a Cesenatico negli ultimi mesi di dicembre e gennaio, Stefano ha notato una strana coincidenza: in tutti i giorni di questo periodo (esclusi il primo e l'ultimo) la temperatura minima è stata la somma della temperatura minima del giorno precedente e del giorno successivo.\n\nSapendo che il 3 dicembre la temperatura minima è stata di 5 gradi, ed il 31 gennaio è stata di 2 gradi, determinare la temperatura minima del 25 dicembre.", "options": [], "answer": "-3", "solution": "Solution:\n\nLa temperatura minima registrata il 25 dicembre è stata di -3 gradi.\n\nPer dimostrarlo, indichiamo con $x$ la temperatura minima registrata il primo dicembre e con $y$ la temperatura minima registrata il 2 dicembre. Usando la relazione osservata da Stefano, si può ricavare la temperatura minima in un dato giorno, conoscendo quelle dei due giorni precedenti: in questo modo si ottiene che le temperature minime nei primi giorni di dicembre sono quelle riportate nella seguente tabella\n\n| Giorno | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |\n| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |\n| Temp. minima | $x$ | $y$ | $y-x$ | $-x$ | $-y$ | $x-y$ | $x$ | $y$ | $y-x$ | $-x$ |\n\nSi vede quindi facilmente che la successione delle temperature si ripete con una cadenza di 6 giorni. Di conseguenza la temperatura minima del 3 dicembre è stata $y-x$, mentre quella del 31 gennaio, che è il 62$\\text{-esimo}$ giorno del periodo, coincide con quella del secondo, cioè $y$. Dalle informazioni si deduce quindi che $y-x=5$ e $y=2$, da cui $x=-3$.\n\nOra la temperatura minima del 25 dicembre coincide con quella del primo, in quanto $25-1$ è multiplo di 6, ed è stata quindi di -3 gradi.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33662, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $B$ un punto interno al segmento $AC$ con $AB$ di lunghezza $2$ e $BC$ di lunghezza $3$. Costruiti i triangoli equilateri $ABA'$ e $CBC'$, dalla stessa parte rispetto al segmento $AC$, quanto misura l'area del triangolo $A'BC'$?\n\n(A) $\\frac{3}{2} \\sqrt{3}$\n(B) $3$\n(C) $3 \\sqrt{3}$\n(D) $5$\n(E) $\\frac{25}{8} \\sqrt{3}$.", "options": [], "answer": "A", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33663, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nPer quanti valori interi di $a$ l'equazione\n$$\nx^{3} + (a-4)x^{2} + (a+4)x + 9 = 0\n$$\nha esattamente due soluzioni intere distinte?\n(A) 1\n(B) 2\n(C) 3\n(D) 4\n(E) più di 4.", "options": [], "answer": "C", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33664, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUna lampada, che si suppone puntiforme, è collocata in un punto $V$. Essa proietta su un piano $a$ situato a 2 metri da $V$ un fascio di luce avente la forma di cono circolare con asse perpendicolare ad $a$, le cui generatrici formano un angolo di $30^{\\circ}$ con l'asse del cono. Sul piano $a$, al centro della base del cono, viene posto un cubo di cartone, con lo spigolo di 1 metro. Si chiede quale sia l'area complessivamente illuminata dalla lampada (sul piano $a$ e sulla faccia superiore del cubo), espressa in $\\mathrm{m}^{2}$.\n\n(A) $\\frac{2}{\\sqrt{3}}-\\frac{\\pi}{9}$\n(B) $4 \\frac{\\pi}{3}-3$\n(C) $\\frac{\\pi}{9}-\\frac{1}{\\sqrt{3}}$\n(D) $\\pi-\\sqrt{3}$\n(E) $\\frac{4 \\pi}{9}-\\frac{1}{2 \\sqrt{3}}$.", "options": [], "answer": "D", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33665, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAll'interno dell'esagono regolare $ABCDEF$ si disegni il quadrato $ABGH$. Quanto vale l'ampiezza di $E\\hat{H}F$ espressa in gradi?", "options": [], "answer": "105", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33666, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDue candele hanno la stessa lunghezza. La prima si consuma in 5 ore, la seconda in 3 ore. Le candele vengono accese contemporaneamente. Dopo quanti minuti l'altezza della prima candela sarà uguale a 3 volte l'altezza della seconda?", "options": [], "answer": "150", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33667, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn villaggio è costituito da abitazioni isolate, collegate da strade. Ognuna di queste strade è un sentiero che collega due abitazioni (e tra due abitazioni vi è al più un sentiero che le collega). Le abitazioni sono di due tipi: centrali e periferiche. Ogni abitazione centrale è collegata esattamente ad altre tre abitazioni; ogni abitazione periferica è collegata esattamente ad altre due abitazioni. Sapendo che il numero di abitazioni centrali è uguale al numero di abitazioni periferiche, e che ci sono in tutto 30 sentieri, quante abitazioni ci sono in tutto il villaggio?", "options": [], "answer": "24", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33668, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSecondo una recente statistica, in Italia una persona ogni $76$ è allergica alle fragole e, tra quelli che lo sono, $2$ su $3$ sono donne. Sulla base di queste informazioni, e supponendo che in Italia il numero di donne sia uguale a quello degli uomini, si può concludere che è allergico alle fragole un uomo ogni $X$ uomini. Determinare $X$.", "options": [], "answer": "114", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33669, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nQuante sono le coppie di interi positivi $ (x, y) $ che verificano l'equazione\n$$\nx^{2}+y^{2}-2004 x-2004 y+2 x y-2005=0 ?\n$$\n\nNota: se $x \\neq y$, le coppie $(x, y)$ e $(y, x)$ sono da considerarsi diverse.", "options": [], "answer": "2004", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33670, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIl professor Abacus ha scritto sulla lavagna due numeri naturali, risultato di parecchie ore di lavoro. Il figlio dispettoso cancella i due numeri e li sostituisce con il loro prodotto meno $1$ e la loro somma. Non soddisfatto cancella anche questi e li sostituisce di nuovo con il loro prodotto meno $1$ e la loro somma. Infine ci pensa un po', li cancella e scrive al loro posto la loro somma, cioè $1309$. Quanto valeva la somma dei numeri di partenza?", "options": [], "answer": "22", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33671, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn cubetto di sughero di spigolo $10$ ha un peso attaccato ad un vertice e galleggia in un secchio d'acqua in modo che una diagonale del cubetto sia in posizione verticale. Quanto misura, in $\\mathrm{cm}^2$, la superficie del cubetto a contatto con l'acqua, sapendo che il volume immerso è pari a $5$ volte il volume emerso?", "options": [], "answer": "450", "solution": "", "topic": "Geometry", "subtopic": "Solid Geometry" }, { "id": 33672, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nTrovare tutte le coppie $(p, q)$ di numeri primi (positivi) tali che l'equazione\n$$\nx^{2}-(6p-4q)x+3pq=0\n$$\nabbia due radici intere.", "options": [], "answer": "(p, q) ∈ {(5, 3), (7, 5), (23, 5)}", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33673, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABCD$ un rombo, ed $E$ un punto qualunque sulla sua diagonale $AC$. Sia $F$ il punto sul segmento $BC$ tale che $BF = DE$. Provare che\n$$\n(AB + BF) \\cdot FC = AE \\cdot EC.\n$$", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33674, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIl professor Bianchi non dice mai bugie, tranne un giorno della settimana (sempre lo stesso) in cui mente sempre. Quanti sono i giorni della settimana in cui può aver affermato: \"se non ho detto bugie ieri ne dirò certamente domani\"?\n(A) 0\n(B) 1\n(C) 2\n(D) 3\n(E) 4 .", "options": [], "answer": "D", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33675, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nPer motivi dietetici, Piero deve mangiare ad ogni pranzo una quantità fissa di carboidrati provenienti da pane e/o pasta. Per totalizzare tale quantità, Piero può mangiare 80 grammi di pasta e 40 grammi di pane, oppure 100 grammi di pasta e 30 grammi di pane. Se volesse mangiare solo pasta, quanti grammi ne dovrebbe mangiare?\n\n(A) 80 grammi\n(B) 110 grammi\n(C) 140 grammi\n(D) 160 grammi\n(E) 200 grammi.", "options": [], "answer": "D", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33676, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDate nel piano due rette parallele $r, s$ e due punti $P, Q$ con $P \\in r$ e $Q \\in s$, si considerino coppie di circonferenze $\\left(C_{P}, C_{Q}\\right)$, la prima tangente a $r$ in $P$ e la seconda tangente a $s$ in $Q$, che siano anche tangenti esternamente tra loro, in un punto che chiamiamo $T$. Determinare il luogo di tali punti $T$ al variare di tutte le possibili coppie di circonferenze.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nIl luogo cercato è l'unione del segmento aperto $P Q$ e della parte della circonferenza di diametro $P Q$ che si trova al di fuori della striscia delimitata da $r$ ed $s$.\nCiascuna circonferenza può essere tangente alla rispettiva retta in due modi: in un caso interseca la striscia $S$ compresa tra le due rette, nell'altro non la interseca affatto. In tutti e due i casi il centro della circonferenza (risp. $O_{P}, O_{Q}$ ) si trova lungo la perpendicolare alla retta per il punto di tangenza. Se poi le circonferenze sono tangenti in $T$, la retta per i due centri passa per $T$.\nPer la coppia di circonferenze questo ci porta a 4 casi: escludiamo subito quello in cui nessuna delle due circonferenze interseca $S$, perché in questo caso le circonferenze non possono essere tangenti tra loro.\nSupponiamo dapprima che intersechino entrambe $S$: $T$ appartiene allora a sua volta ad $S$. Gli angoli $P \\hat{O}_{P} T$ e $T \\hat{O}_{Q} Q$ sono alterni interni rispetto alle due rette parallele $P O_{P}$ e $Q O_{Q}$ (che sono tali in quanto entrambe perpendicolari a $r$ ed $s$ ) tagliate dalla trasversale $O_{P} O_{Q}$, e quindi sono uguali. Essi sono gli angoli al centro dei due triangoli isosceli $P O_{P} T$ e $T O_{Q} Q$, che hanno perciò anche gli angoli alla base uguali: da $O_{P} \\hat{P} T=O_{Q} \\hat{Q} T$ si deduce infine che $P, T$ e $Q$\n\n![](attached_image_1.png)\n\nsono allineati, cioè che $T$ è un punto interno al segmento $P Q$.\nViceversa, se $T$ è un punto interno al segmento $P Q$, sia $O_{P}$ il punto di intersezione dell'asse di $P T$ con la perpendicolare ad $r$ passante per $P$, e sia $O_{Q}$ il punto di intersezione dell'asse di $Q T$ con la perpendicolare ad $s$ passante per $Q$. Per la similitudine dei triangoli isosceli $P O_{P} T$ e $Q O_{Q} T$, si ha,\nanalogamente a prima, che $T$ giace sul segmento $O_{P} O_{Q}$. Tracciando la circonferenza di centro $O_{P}$ e tangente ad $r$ e la circonferenza di centro $O_{Q}$ e tangente ad $s$, si trova dunque che $T$ giace sulla retta dei centri ed appartiene ad entrambe le circonferenze, per cui le due circonferenze sono tangenti esternamente in $T$.\nSupponiamo ora che solo una delle due intersechi $S$ : per simmetria, supponiamo che questo avvenga per $C_{P}$. Il punto $T$ appartiene allora al semipiano (aperto) $H$ delimitato da $s$ non contenente $r$. Sia $R$ il punto simmetrico di $Q$ rispetto a $O_{Q}$. La tangente per $R$ a $O_{Q}$ è parallela a $s$ e quindi a $r$; per quanto dimostrato nel primo caso, $P, T$ e $R$ sono allineati. Ma siccome $Q$ e $R$ sono diametralmente opposti, $Q T$ è perpendicolare a $P R$. Ma allora $T$ deve appartenere ad una semicirconferenza di diametro $P Q$, oltre che ad $H$.\n\n![](attached_image_2.png)\n\nViceversa, se $T$ è un punto del semipiano $H$ appartenente alla semicirconferenza di diametro $P Q$, costruiamo, come nel primo caso, $O_{P}$ come il punto di intersezione dell'asse di $P T$ con la perpendicolare ad $r$ passante per $P$ e $O_{Q}$ come il punto di intersezione dell'asse di $Q T$ con la perpendicolare ad $s$ passante per $Q$. La verifica che la circonferenza di centro $O_{P}$ e raggio $O_{P} P$ e la circonferenza di centro $O_{Q}$ e raggio $O_{Q} Q$ sono tangenti in $T$ è uguale a quella del primo caso.\nIl luogo cercato è quindi l'unione del segmento aperto $P Q$ e della parte della circonferenza di diametro $P Q$ che si trova al di fuori della striscia (chiusa) delimitata da $r$ ed $s$.\n\nOsservando come prima che $P O_{P} T$ e $Q O_{Q} T$ sono triangoli isosceli e che i loro angoli al vertice $P \\hat{O}_{P} T$ e $Q \\hat{O}_{Q} T$ sono supplementari, si ottiene per differenza che la somma degli angoli alla base di questi due triangoli sono complementari. Ne segue che $P \\hat{T} Q=180^{\\circ}-P \\hat{T} O_{P}-Q \\hat{T} O_{Q}=90^{\\circ}$. Da qui si conclude come nella soluzione precedente.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33677, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nQuante soluzioni intere non negative ha l'equazione\n$$\nv^{2}+w^{2}+x^{2}+y^{2}+z^{2}=5 ?\n$$\nPer soluzione intera non negativa si intende una cinquina ordinata di interi non negativi $(v, w, x, y, z)$ che soddisfano l'equazione.\nNota: due cinquine ordinate che differiscono anche solo per l'ordine degli elementi (ad esempio, la cinquina $(1,2,3,4,5)$ e la cinquina $(3,1,2,4,5))$ sono da considerarsi distinte.\n(A) 1\n(B) 20\n(C) 21\n(D) 65\n(E) 121 .", "options": [], "answer": "C", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33678, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nQuest'anno Alberto ha provato a imparare francese, inglese e tedesco. Sapendo che\n(i) se sa il tedesco, allora sa anche francese e inglese;\n(ii) se sa il francese, allora sa anche un'altra lingua tra inglese e tedesco;\n(iii) se sa l'inglese, allora sa il tedesco ma non il francese; quante di tali lingue sa Alberto?\n(A) Nessuna\n(B) una\n(C) due\n(D) tre\n(E) non si può determinarlo.", "options": [], "answer": "A", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33679, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\na. Determinare se $2005^{2004}$ è somma di due quadrati perfetti positivi.\n\nb. Determinare se $2004^{2005}$ è somma di due quadrati perfetti positivi.", "options": [], "answer": "a: yes; b: no", "solution": "Solution:\n\na. $2005^{2004}$ è somma di due quadrati perfetti positivi.\nSi osservi che $5^{2} = 3^{2} + 4^{2}$ e che $2005^{2004} = 5^{2} m^{2}$, dove $m = 5^{1001} \\cdot 401^{1002}$. Moltiplicando la prima relazione per $m^{2}$ si ottiene\n$$\n2005^{2004} = (5m)^{2} = (3m)^{2} + (4m)^{2}.\n$$\n\nb. $2004^{2005}$ non è somma di due quadrati perfetti positivi.\nSi osservi innanzitutto che $2004^{2005} = 3^{2005} \\cdot 668^{2005}$ è divisibile per $3$. Controllando il resto della divisione per $3$ del quadrato di un numero intero $x$, si vede che se $x$ è divisibile per $3$ esso è $0$, mentre se non lo è, e quindi $x = 3k \\pm 1$, allora $x^{2} = 9k^{2} \\pm 6k + 1$, quindi il resto è $1$. Se esistessero interi positivi $x, y$ tali che $2004^{2005} = x^{2} + y^{2}$, allora $x^{2} + y^{2}$ sarebbe divisibile per $3$, e quindi lo sarebbe anche la somma dei resti di $x^{2}$ e $y^{2}$. Analizzando tutti i casi, si vede che l'unica possibilità è che sia $x$ che $y$ siano divisibili per $3$. Ora poniamo $x = 3x_{1}, y = 3y_{1}$. Semplificando l'equazione $2004^{2005} = x^{2} + y^{2}$ per il fattore comune $9$, si ottiene $3^{2003} \\cdot 668^{2005} = x_{1}^{2} + y_{1}^{2}$. Analizzando di nuovo la divisibilità per $3$, si ottiene che anche $x_{1}$ e $y_{1}$ devono essere divisibili per $3$, e dunque l'equazione può essere nuovamente semplificata dividendo per $9$. Procedendo in questo modo, si arriverà al punto in cui l'equazione si riduce alla forma\n$$\n3 \\cdot 668^{2005} = x_{n}^{2} + y_{n}^{2}\n$$\nMa di nuovo, questa equazione è possibile solo se $x_{n}$ e $y_{n}$ sono divisibili per $3$, e quindi $x_{n}^{2} + y_{n}^{2}$ è divisibile per $9$. Poiché però $3 \\cdot 668^{2005}$ non è divisibile per $9$, una tale equazione non ha soluzioni.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33680, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nQuanto vale la somma\n$$\n\\frac{1}{\\sqrt{2}+\\sqrt{1}}+\\frac{1}{\\sqrt{3}+\\sqrt{2}}+\\frac{1}{\\sqrt{4}+\\sqrt{3}}+\\cdots+\\frac{1}{\\sqrt{100}+\\sqrt{99}} ?\n$$\n(A) 9\n(B) $\\sqrt{101}-1$\n(C) $2 \\sqrt{\\frac{101}{2}}$\n(D) 10\n(E) nessuna delle precedenti.", "options": [], "answer": "A", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33681, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nCalcolare l'area dell'intersezione di tre cerchi aventi come rispettivi diametri i tre lati di un triangolo rettangolo isoscele con i cateti di lunghezza unitaria.\n\n(A) $\\frac{\\pi-2}{8}$\n(B) $\\pi-3$\n(C) $\\frac{2 \\pi-5}{8}$\n(D) $\\frac{\\pi-1}{16}$\n(E) $\\frac{2 \\pi-3}{16}$.", "options": [], "answer": "A", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33682, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAntonio e Bernardo giocano al seguente gioco: sono date due pile di gettoni, una con $m$ gettoni e l'altra con $n$ gettoni. Ogni giocatore sceglie a turno una delle seguenti mosse:\n- prendere un gettone da una delle pile;\n- prendere un gettone da ciascuna delle pile;\n- spostare un gettone da una pila ad un'altra.\nPerde chi non può più muovere. Comincia Antonio. Determinare, in funzione di $m$ ed $n$, se uno dei due giocatori ha una strategia vincente, e in caso affermativo specificare di quale giocatore si tratta.", "options": [], "answer": "Antonio wins if at least one of m or n is odd; Bernardo wins if both m and n are even.", "solution": "Solution:\n\nSe almeno uno tra $m$ ed $n$ è dispari dispari vince Antonio, se sono entrambi pari vince Bernardo.\n\nEvidentemente l'unica configurazione in cui non sono più possibili mosse è quella in cui entrambe le pile sono vuote. In particolare, entrambe le pile avranno in quel momento un numero pari di gettoni. L'idea è dunque cercare di far rimanere dopo la propria mossa un numero pari di pedine in entrambe le pile.\n\nSe nello stato iniziale esattamente una pila ha un numero dispari di pedine, Antonio prede una pedina da quella pila. Se entrambe le pile hanno un numero dispari di pedine, prende una pedina da ciascuna pila. In entrambi i casi lascia a Bernardo un numero pari di pedine in entrambe le pile; d'altra parte, ogni mossa successiva di Bernardo lascia almeno una pila con un numero dispari di pedine, permettendo ad Antonio di ripetere la sua strategia. Poiché infine ogni mossa di Antonio toglie qualche pedina, il gioco terminerà in un numero finito di passi con la vittoria di Antonio.\n\nSe invece entrambe le pile hanno un numero pari di pedine, la situazione è simmetrica alla precedente: dopo qualsiasi mossa di Antonio ci sarà un numero dispari di pedine in almeno una delle pile, e quindi Bernardo potrà applicare la stassa strategia di Antonio nel caso precedente.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33683, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUna lumaca si arrampica su una colonna cilindrica alta $8$ metri, la cui circonferenza di base è lunga $3$ metri. Sapendo che partendo dalla base raggiunge la cima facendo due giri intorno alla colonna e che, arrivata in cima, si trova esattamente sopra il punto da cui era partita, quanto è lunga la strada più breve che la lumaca può aver percorso?\n\n(A) $3\\pi\\ \\mathrm{m}$\n(B) $10\\ \\mathrm{m}$\n(C) $(8+\\pi)\\ \\mathrm{m}$\n(D) $12\\ \\mathrm{m}$\n(E) $4\\pi\\ \\mathrm{m}$.", "options": [], "answer": "B", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33684, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDa un sacchetto della tombola, contenente i numeri da $1$ a $90$, estraiamo contemporaneamente due numeri. Qual è la probabilità che la somma faccia $56$?\n\n(A) $\\frac{3}{445}$\n(B) $\\frac{14}{2025}$\n(C) $\\frac{1}{150}$\n(D) $\\frac{11}{1620}$\n(E) $\\frac{11}{1602}$.", "options": [], "answer": "A", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33685, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDeterminare se il seguente enunciato è vero o falso:\n\"Per ogni successione $x_{1}, x_{2}, x_{3}, \\ldots$ di numeri reali maggiori o uguali a zero esistono due successioni $a_{1}, a_{2}, a_{3}, \\ldots$ e $b_{1}, b_{2}, b_{3}, \\ldots$ di numeri reali maggiori o uguali a zero tali che\n- $x_{n}=a_{n}+b_{n}$ per ogni $n$;\n- $a_{1}+\\ldots+a_{n} \\leq n$ per infiniti valori di $n$;\n- $b_{1}+\\ldots+b_{n} \\leq n$ per infiniti valori di $n$, eventualmente diversi dai precedenti.\"", "options": [], "answer": "true", "solution": "Solution:\n\nL'enunciato è vero. Per dimostrarlo, indichiamo innanzitutto una strategia possibile.\nFissata una successione di numeri interi $0 AC$; sia $AH$ l'altezza relativa all'ipotenusa. Sulla retta $BC$ si prenda $D$ tale che $H$ sia punto medio di $BD$; sia poi $E$ il piede della perpendicolare condotta da $C$ ad $AD$. Dimostrare che $EH = AH$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nIl triangolo $ABD$ è isoscele su $BD$, perché $AH$ è altezza e mediana. $AH$ è pertanto anche bisettrice dell'angolo $B \\widehat{A} D$, e quindi gli angoli $D \\widehat{A} H$, $B \\widehat{A} H$ sono uguali.\n\nGli angoli $A \\widehat{E} C$, $A \\widehat{H} C$ sono retti per costruzione; quindi $E$ ed $H$ appartengono alla circonferenza $\\gamma$ avente $AC$ come diametro.\n\n$D \\widehat{A} H$ e $B \\widehat{A} H$ sono angoli alla circonferenza per $\\gamma$; $D \\widehat{A} H$ insiste sull'arco $EH$, $BAH$ insiste sull'arco $AH$ (quest'ultimo si trova nella \"posizione limite\", essendo il lato $AB$ tangente a $\\gamma$ in $A$).\n\nDunque, gli archi $EH$, $AH$ di $\\gamma$ sono uguali, e perciò sono uguali anche le corde $EH$, $AH$, come si doveva dimostrare.\n\n![](attached_image_1.png)", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33702, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABC$ un triangolo rettangolo in $A$, con $AB > AC$; sia $AH$ l'altezza relativa all'ipotenusa. Sulla retta $BC$ si prenda $D$ tale che $H$ sia punto medio di $BD$; sia poi $E$ il piede della perpendicolare condotta da $C$ ad $AD$. Dimostrare che $EH = AH$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nIl triangolo $ABD$ è isoscele su $BD$, perché $AH$ è altezza e mediana. $AH$ è pertanto anche bisettrice dell'angolo $B\\widehat{A}D$, e quindi gli angoli $D\\widehat{A}H$, $B\\widehat{A}H$ sono uguali.\n\nGli angoli $A\\widehat{E}C$, $A\\widehat{H}C$ sono retti per costruzione; quindi $E$ ed $H$ appartengono alla circonferenza $\\gamma$ avente $AC$ come diametro.\n\n$D\\widehat{A}H$ e $B\\widehat{A}H$ sono angoli alla circonferenza per $\\gamma$; $D\\widehat{A}H$ insiste sull'arco $EH$, $BAH$ insiste sull'arco $AH$ (quest'ultimo si trova nella \"posizione limite\", essendo il lato $AB$ tangente a $\\gamma$ in $A$).\n\nDunque, gli archi $EH$, $AH$ di $\\gamma$ sono uguali, e perciò sono uguali anche le corde $EH$, $AH$, come si doveva dimostrare.\n\n![](attached_image_1.png)", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33703, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDeterminare tutte le coppie $(m, n)$ di numeri interi positivi $m$ e $n$ tali che\n$$\n\\frac{3^{m}+3}{2^{n}+2^{n-1}}\n$$\nsia un numero intero.", "options": [], "answer": "All pairs are: (m, 1) for any positive m; (m, 2) for any positive m; and (m, 3) for any even m.", "solution": "Solution:\n\nLe soluzioni sono tutte le coppie di questi tre tipi:\n(a) $(m, 1)$ per ogni $m$ intero positivo\n(b) $(m, 2)$ per ogni $m$ intero positivo\n(c) $(m, 3)$ per ogni $m$ intero positivo pari\n\nPossiamo innanzitutto raccogliere un fattore 3 dal numeratore e dal denominatore della frazione:\n$$\n\\frac{3^{m}+3}{2^{n}+2^{n-1}}=\\frac{3\\left(3^{m-1}+1\\right)}{2^{n-1}(2+1)}=\\frac{3^{m-1}+1}{2^{n-1}}\n$$\nQuindi dobbiamo determinare per quali potenze di 2 è divisibile il numero $3^{m-1}+1$. È banale notare che questo numero è sempre dispari, perciò $(m, 1)$ e $(m, 2)$ sono soluzioni per qualsiasi valore di $m$. Ora, scomponiamo il numeratore facendo uso di questi prodotti notevoli:\n$$\nx^{k}+y^{k}=(x+y)\\left(x^{k-1}-x^{k-2} y+x^{k-3} y^{2}+\\cdots-x y^{k-2}+y^{k-1}\\right)\n$$\nvalido per $k$ dispari, e\n$$\nx^{k}-y^{k}=(x+y)\\left(x^{k-1}-x^{k-2} y+x^{k-3} y^{2}+\\cdots+x y^{k-2}-y^{k-1}\\right)\n$$\nvalido per $k$ pari. Dal primo, con $x=3, y=1$, abbiamo\n$$\n3^{m-1}+1=(3+1)\\left(3^{m-2}-3^{m-3}+3^{m-4}-\\cdots-3+1\\right)\n$$\nper $m$ pari. Quindi $3^{m-1}+1$ è multiplo almeno di 4 quando $m$ è pari. Può essere multiplo di 8 ? No, perché nella seconda parentesi ci sono un numero dispari $(m-3)$ di termini dispari, quindi la loro somma è un numero dispari.\n\nAnalogamente, dal secondo prodotto notevole otteniamo\n$$\n3^{m-1}-1=(3+1)\\left(3^{m-2}-3^{m-3}+3^{m-4}-\\cdots+3-1\\right)\n$$\ncioè $3^{m-1}-1$ è multiplo di 4 quando $m$ è dispari (in realtà è multiplo anche di 8 perché stavolta nella parentesi ci sono un numero pari di termini, ma ciò non ci servirà nella dimostrazione). Allora, poichè $3^{m-1}+1$ è un multiplo di 4 , non può esserlo anche $\\left(3^{m-1}-1=+2=3^{m-1}+1\\right.$. Quindi $3^{m-1}+1$ è multiplo di 2 ma non di 4 nel caso in cui $m$ sia dispari.\n\nRicapitolando, abbiamo:\n- Per $m$ pari, $3^{m-1}+1$ è multiplo di 4 ma non di 8 , quindi le soluzioni sono tutte e sole quelle del tipo $(m, 1),(m, 2)$ e $(m, 3)$ (per ogni $m$ pari)\n- Per $m$ dispari, $3^{m-1}+1$ è multiplo di 2 ma non di 4 , quindi le soluzioni sono tutte e sole quelle del tipo $(m, 1)$ e $(m, 2)$ (per ogni $m$ dispari)", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33704, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\na, b, c sono tre numeri reali positivi tali che $a+b+c=1$. Quale delle seguenti condizioni è equivalente a imporre che $a, b, c$ siano le misure dei lati di un triangolo non degenere?\n\n(A) $0<|b-a|<\\frac{1}{2},\\ 0<|c-b|<\\frac{1}{2},\\ 0<|c-a|<\\frac{1}{2}$\n\n(B) $a<\\frac{1}{2},\\ b<\\frac{1}{2},\\ c<\\frac{1}{2}$\n\n(C) $a+b<\\frac{1}{2},\\ \\quad b+c<\\frac{1}{2},\\ \\quad c+a<\\frac{1}{2}$\n\n(D) $a \\leq \\frac{1}{3},\\ b \\leq \\frac{1}{3},\\ c \\leq \\frac{1}{3}$\n\n(E) nessuna delle precedenti.", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è (B). Infatti, dalla disuguaglianza triangolare abbiamo\n$$\na < b + c \\Longleftrightarrow a + a < a + b + c = 1 \\Longleftrightarrow a < \\frac{1}{2}\n$$\ne le altre due relazioni simmetriche che si ottengono scambiando $a, b$ e $c$ nelle disequazioni qui sopra. Quindi, le seguenti tre affermazioni sono equivalenti:\n$$\n\\begin{gathered}\na, b, c \\text{ sono i lati di un triangolo } \\\\\\na < b + c, \\quad b < a + c, \\quad c < a + b \\\\\\na < \\frac{1}{2}, \\quad b < \\frac{1}{2}, \\quad c < \\frac{1}{2}\n\\end{gathered}\n$$\nD'altra parte è semplice costruire controesempi che mostrano come le altre tre condizioni non siano equivalenti a quella richiesta:\n- Se $a = b = c = \\frac{1}{3}$ (triangolo equilatero), la (A) non vale ma è possibile costruire un triangolo;\n- Se $a = b = \\frac{1}{2}$ e $c = 0$, la (C) vale ma non è possibile costruire un triangolo;\n- Se $a = b = \\frac{3}{8}$ e $c = \\frac{2}{8}$, la (D) non vale ma è possibile costruire un triangolo.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33705, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nCinque amici fanno, rispettivamente, le seguenti affermazioni.\n\"Comunque si scelga uno di noi, gli altri 4 mentono\".\n\"Comunque si scelga uno di noi, gli altri 4 dicono il vero\".\n\"Comunque si scelga uno di noi, ce n'è un altro che dice il vero\".\n\"C'è uno di noi tale che ogni altro dice il vero\".\n\"C'è uno di noi tale che ogni altro mente\".\nQuale delle seguenti affermazioni può essere dedotta dalle precedenti?\n(A) Esattamente 1 dice il vero.\n(B) Esattamente 2 dicono il vero.\n(C) Esattamente 3 dicono il vero.\n(D) Esattamente 4 dicono il vero.\n(E) Non è possibile determinare il numero di coloro che dicono il vero.", "options": [], "answer": "A", "solution": "Solution:\n\nLa risposta è (A). La prima affermazione non può essere vera, perché scegliendo uno degli altri si autocontraddice.\nQuindi anche la seconda non può essere vera, perché scegliendo chi la dice, vi è il primo che mente. Quindi anche la quarta non può essere vera, perché ve ne sono già due false.\nInfine la terza e la quinta si contraddicono direttamente, quindi una ed una sola delle due è vera (in particolare è vera la quinta).", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33706, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nQuanti sono i polinomi $p(x)$ di secondo grado, a coefficienti interi e con 2 radici intere, tali che $p(8)=1$ ? (Nota: ricordiamo che i numeri interi possono essere positivi, negativi o nulli)\n\n(A) 1\n(B) 2\n(C) 3\n(D) un numero finito maggiore di 3\n(E) infiniti.", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è (C). Dette $m, n$ le due radici (eventualmente coincidenti) del polinomio, si ha $p(x) = a(x-m)(x-n)$, ove $a$ è il coefficiente di $x^{2}$, quindi intero anch'esso. Quindi $1 = p(8) = a(8-m)(8-n)$. Ma $1$ si può ottenere come prodotto di tre interi solo se sono tutti e tre $1$, oppure due sono $-1$ e l'altro è $1$. Quindi si hanno le possibilità $a=1, m=n=7$ oppure $a=1, m=n=9$ oppure $a=-1, m=7, n=9$ (NB: scambiando $m$ con $n$ il polinomio non cambia). Quindi c'è un polinomio con due radici distinte e due altri polinomi con due radici coincidenti.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33707, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\n$AB$ e $CD$ sono due segmenti, entrambi lunghi $4$, aventi il punto medio $M$ in comune e tali che $B \\widehat{M} D = 60^\\circ$. Indichiamo con $X$ l'insieme di tutti e soli i punti che distano al più $1$ da almeno uno dei due segmenti. Quanto misura la superficie di $X$?\n\n(A) $8 - \\frac{4}{3} \\sqrt{3}$\n(B) $16 - \\frac{8}{3} \\sqrt{3}$\n(C) $16 - \\frac{4}{3} \\sqrt{3} + \\pi$\n(D) $16 - \\frac{8}{3} \\sqrt{3} + 2\\pi$\n(E) $8 + 2\\pi$.", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). Sia $X_1$ (rispettivamente $X_2$) il luogo dei punti con distanza $\\leqslant 1$ dal solo segmento $AB$ (rispettivamente $CD$). Chiaramente $X_1$ e $X_2$ sono congruenti e $X$ è l'unione dei due. Allora $\\operatorname{Area}(X) = 2\\operatorname{Area}(X_1) - \\operatorname{Area}(X_1 \\cap X_2)$.\n\n$X_1$ è formato da un rettangolo di base $4$ e lunghezza $2$, unito a due semicerchi terminali con diametro sui lati minori. L'area di $X_1$ è pertanto $8 + \\pi$.\n\nL'intersezione $X_1 \\cap X_2$ è un parallelogrammo con entrambe le altezze lunghe $2$ e un angolo di $60^\\circ$, quindi è l'unione di due triangoli equilateri di lato $\\frac{4\\sqrt{3}}{3}$. La sua area è $\\frac{8\\sqrt{3}}{3}$.\n\n![](attached_image_1.png)\n\nIn conclusione, $\\operatorname{Area}(X) = 16 - \\frac{8\\sqrt{3}}{3} + 2\\pi$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33708, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nDurante una festa, tre ragazze e tre ragazzi si siedono casualmente ad un tavolo rotondo. Qual è la probabilità che non ci siano due persone dello stesso sesso sedute a fianco?\n(A) $\\frac{1}{6}$\n(B) $\\frac{1}{10}$\n(C) $\\frac{3}{20}$\n(D) $\\frac{1}{12}$\n(E) $\\frac{11}{36}$.", "options": [], "answer": "B", "solution": "Solution:\nLa risposta è (B). Se fissiamo un ragazzo abbiamo che ci sono $5!$ possibili permutazioni degli altri 5 convitati, di queste quelle in cui ragazzi e ragazze sono alternati sono $3 \\cdot 2 \\cdot 2$ perché la persona alla destra del ragazzo fissato può essere una qualunque delle 3 ragazze, la persona ancor più a destra può essere uno dei due ragazzi rimasti, poi deve esserci una delle altre due ragazze e gli ultimi due posti devono necessariamente essere occupati dall'ultimo ragazzo e dall'ultima ragazza.\nLa soluzione è quindi il numero di casi favorevoli fratto il numero di casi possibili, cioè $\\frac{3 \\cdot 2 \\cdot 2}{5!}=\\frac{1}{10}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33709, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAl variare del parametro reale $a$, qual è il numero massimo di soluzioni per l'equazione $||x-1|-4|+x=a$?\n\n(A) 1\n(B) 2\n(C) 3\n(D) 4\n(E) può averne infinite.", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è (E). Si ha infatti che, per ogni $x \\leq -3$, $x-1 \\leq 0$ e quindi $|x-1| = 1-x$, inoltre $|x-1|-4 = -x-3 \\geq 0$, e l'equazione si può semplificare così:\n$$\n||x-1|-4|+x = |-x+1-4|+x = -x-3+x = -3\n$$\nPertanto se $a = -3$ l'equazione ha infinite soluzioni.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33710, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDato un cubo di lato unitario (vedi figura), consideriamo il piano cui appartengono gli spigoli $AB$ e $CD$ e quello cui appartengono gli spigoli $AE$ e $FD$. Questi due piani tagliano il cubo in quattro parti. Qual è il massimo tra i volumi di tali parti?\n(A) $\\frac{1}{4}$\n(B) $\\frac{1}{3}$\n(C) $\\frac{\\sqrt{2}}{4}$\n(D) $\\frac{3}{8}$\n(E) $\\frac{1}{2}$.\n\n![](attached_image_1.png)", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è (B). Siano $G$ e $H$ gli altri due vertici del cubo, con $AG$ spigolo del cubo. Fissiamo un riferimento cartesiano, con origine in $A$ e assi $x, y$, e $z$ lungo $AB, AE, AG$. Le quattro regioni sono caratterizzate dalle condizioni $\\{x \\leqslant z ; y \\leqslant z\\},\\{x \\leqslant z ; y \\geqslant z\\},\\{x \\geqslant z ; y \\leqslant z\\},\\{x \\geqslant z ; y \\geqslant z\\}$. Tagliamo il cubo con un terzo piano, passante per $AG$ e $HD$. Le regioni risultanti sono sei e sono caratterizzate dalle condizioni $\\{x \\leqslant y \\leqslant z\\}$ e analoghe, ottenute permutando le incognite.\n\nCiò implica, tra l'altro, che delle quattro regioni iniziali, due sono tagliate dal terzo piano (e sono quelle che risulteranno di volume massimo), mentre le altre due non lo sono.\n\nLe sei regioni ottenute sono tutte congruenti, per motivi di simmetria, e quindi hanno ognuna volume $\\frac{1}{6}$. Da questo si deduce che delle quattro regioni descritte dal quesito, due hanno volume $\\frac{1}{3}$ e due hanno volume $\\frac{1}{6}$.\nSolution:\n\nÈ facile verificare che la piramide con base $CDFG$ e vertice in $A$ non è tagliata dai piani in questione. Inoltre, delle cinque facce della piramide, tre sono anche facce del cubo (o parti di esse), mentre le restanti due sono complanari ai piani di sezione.\n\nQuesto significa che la piramide è una delle quattro regioni in cui è tagliato il cubo. Analogamente, anche la piramide simmetrica $DBAEH$ è un'altra di tali regioni. Dato che esse hanno ognuna volume $\\frac{1}{3}$, le restanti due parti non possono avere volume maggiore, quindi il massimo dei volumi è $\\frac{1}{3}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33711, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAlberto e Barbara giocano con un dado. Dopo un po' si accorgono che il dado è truccato, e che il numero $1$ esce più frequentemente degli altri $5$ numeri (che invece restano equiprobabili). Decidono quindi che, quando esce $1$, quel tiro è annullato e si tira di nuovo. Se si continua a lanciare il dado fino a quando non si ottengono $2$ tiri validi, qual è la probabilità che la somma dei $2$ numeri validi usciti sia $8$?\n\n(A) $\\frac{3}{25}$\n(B) $\\frac{1}{6}$\n(C) $\\frac{1}{5}$\n(D) $\\frac{6}{25}$\n(E) $\\frac{1}{4}$.", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è $(\\mathbf{C})$. Dato che se esce $1$ si tira di nuovo, è come se il dado avesse solo $5$ facce. Ora per fare $8$ qualunque uscita iniziale va bene, ma al secondo tiro valido solo il complemento a $8$ va bene. Quindi la probabilità richiesta è uguale a quella di ottenere un dato numero al primo colpo, ossia $\\frac{1}{5}$.\n\nLe possibili coppie ordinate di risultati validi sono $25$. Di queste solo $(2,6)$, $(3,5)$, $(4,4)$, $(5,3)$, $(6,2)$ vanno bene, quindi la probabilità è $\\frac{5}{25} = \\frac{1}{5}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33712, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nRosa e Savino fanno il seguente gioco con le carte napoletane (40 carte numerate da 1 a 10 di 4 semi diversi): inizialmente si dividono le 40 carte (20 per ciascuno), poi a turno appoggiano sul tavolo una carta. Quando alcune delle carte presenti sul tavolo hanno dei valori la cui somma fa esattamente 15, queste carte vengono eliminate dal gioco (se ci sono più modi di ottenere somma 15, il giocatore che ha appoggiato l'ultima carta decide quali sono le carte con somma di valori uguale a 15 da eliminare). Alla fine della partita sono rimaste 2 carte in mano a Savino (un 5 ed un 3), una carta sul tavolo (un 9) e una carta in mano a Rosa. Qual è il valore della carta di Rosa?", "options": [], "answer": "8", "solution": "Solution:\n\nRosa ha un 8.\n\nLa somma dei valori di tutte le carte del gioco è $\\frac{10 \\cdot 11}{2} \\cdot 4 = 220$.\nLa somma di quelle eliminate è un multiplo di 15 (vengono tolte a gruppi con somma pari a 15).\nIndicando con $x$ il valore della carta di Rosa si ha:\n$$\n220 = 15k + 5 + 3 + 9 + x\n$$\nquindi $203 - x$ deve essere un multiplo di 15. Poichè $1 \\leq x \\leq 10$, l'unica possibilità è $x = 8$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33713, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn numero si dice \"moderno\" se, in base 10, può essere espresso concatenando \"un po'\" di scritture decimali di $2006$: ad esempio $200620062006$ è moderno, mentre $20200606$ e $2006200$ non lo sono. Quante cifre ha il più piccolo quadrato perfetto moderno positivo?\n\n(A) 32\n(B) 64\n(C) 100\n(D) 1000\n(E) non esiste un tale numero.", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è (E). Un numero moderno è sempre divisibile per $2006$, e il quoziente è della forma $1000100010001 \\ldots 10001$, quindi dispari. Un numero moderno è quindi sempre pari, ma non è mai divisibile per $4$, e non può quindi essere un quadrato perfetto.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33714, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nQuanto vale $\\sqrt[3]{2+\\sqrt{5}}+\\sqrt[3]{2-\\sqrt{5}}$?\n\n(A) $\\sqrt[3]{9-4 \\sqrt{5}}$\n(B) 1\n(C) $\\frac{3}{2}$\n(D) $\\sqrt[3]{4}$\n(E) $2 \\sqrt[3]{2}$.", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è (B). Con opportuni raccoglimenti, si scrive il cubo di $r=\\sqrt[3]{2+\\sqrt{5}}+\\sqrt[3]{2-\\sqrt{5}}$ come $r^{3}=4+3 \\sqrt[3]{2^{2}-5}(\\sqrt[3]{2+\\sqrt{5}}+\\sqrt[3]{2-\\sqrt{5}})=4-3(\\sqrt[3]{2+\\sqrt{5}}+\\sqrt[3]{2-\\sqrt{5}})=4-3 r$. Perciò $r$ verifica la condizione che $r^{3}=4-3 r$. L'unico, tra i cinque numeri proposti, che verifica la condizione è 1.\n\n\nSeconda Soluzione\n\nSi nota facilmente che il prodotto dei due radicali è $-1$, quindi detto $x$ il primo dei due, ci chiediamo se sostituendo a $k$ una delle cinque risposte, l'equazione $x-1 / x=k$ abbia tra le sue soluzioni proprio $\\sqrt[3]{2+\\sqrt{5}}$. L'equazione si riscrive $x^{2}-k x-1=0$ e le soluzioni sono $\\frac{k \\pm \\sqrt{k^{2}+4}}{2}$. Questa espressione suggerisce immediatamente di provare per prima la risposta $k=1$, ed è facile (e un po' stupefacente) scoprire che effettivamente $\\left(\\frac{1 \\pm \\sqrt{5}}{2}\\right)^{3}=2 \\pm \\sqrt{5}$\n\n\nTerza Soluzione\n\nSi ha $(x+y)^{3}=x^{3}+y^{3}+3 x y(x+y)$. Prendendo $x=\\sqrt[3]{2+\\sqrt{5}}$ e $y=\\sqrt[3]{2-\\sqrt{5}}$ si vede subito che $x^{3}+y^{3}=4$ e $x y=-1$, quindi $x+y=s$ verifica l'equazione $s^{3}=4-3 s$. Ora il polinomio $s^{3}+3 s-4$ si annulla in 1, è positivo per $s>1$, ed è negativo per $s<1$ (in quanto per $s$ tra 0 e 1 anche $s^{3}$ è minore di 1). Quindi la sua sola radice reale è 1.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33715, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nI membri di una tribù hanno dieci dita alle mani e nove ai piedi e quindi contano indifferentemente in base 10 o 19. Nella loro cultura matematica, un numero intero positivo è detto \"sacro\" se in entrambe le basi si scrive con le stesse due cifre (comprese tra 1 e 9). Quanti sono i numeri sacri?", "options": [], "answer": "4", "solution": "Solution:\n\nLa risposta è 4. Sia $n$ un numero sacro e sia $A B$ la scrittura del numero in base 10. Allora in base 19 per la sacralità esso si scrive come $A B$ o come $B A$. Il primo caso non genera soluzioni poichè $A$ e $B$ sono diversi da 0, e quindi $A B$ in base 19 è maggiore di $A B$ in base 10 per ogni $A, B$. Si deve allora avere (scrivendo in base 10) $10A + B = 19B + A$ ovvero $9A = 18B$, da cui $A = 2B$. Poichè $10 > A > 0, 10 > B > 0$ i valori ammessi per $B$ sono allora $1, 2, 3, 4$ che danno luogo ai numeri $21, 42, 63, 84$, che sono tutti effettivamente sacri. Vi sono quindi 4 numeri sacri.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33716, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSulla lavagna c'è scritto un numero di 17 cifre composto da soli 1 e 2. Paolo entra e riscrive il numero in sequenza inversa, allineandolo sotto il precedente. Gianni entra e scrive sotto ogni colonna la cifra massima che compare in quella colonna. Alberto entra e scrive sotto ogni colonna la cifra minima che compare in quella colonna, poi cancella le prime due righe. Carla entra e trova scritti i numeri 12212212221221221 e 11211111211111211 e le viene spiegato che cosa hanno fatto Paolo, Gianni e Alberto. Quanti sono i diversi numeri che potevano essere scritti sulla lavagna come primo numero?", "options": [], "answer": "16", "solution": "Solution:\n\nLa risposta è $16$. Prima che Alberto cancelli le prime due righe, nella colonna $k$ ($k=1, \\ldots, 17$) compaiono il numero in posizione $k$, il numero in posizione simmetrica $17-(k-1)$, il massimo tra i due, il minimo tra i due. Quando massimo e minimo coincidono, il numero in posizione $k$ e il numero in posizione simmetrica $17-(k-1)$ sono uguali. Questo accade nelle colonne $1, 3, 4, 7$, forzatamente nella colonna $9$, poi simmetricamente nelle posizioni $11, 14, 15, 17$. In queste posizioni i numeri sono certamente $1, 2, 1, 1, 2, 1, 1, 2, 1$, rispettivamente. Nelle altre coppie di posizioni simmetriche, sono $1$ in una e $2$ nell'altra. Perciò i numeri che potevano dare luogo alle due righe che Carla trova sulla lavagna erano $2^{4}=16$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33717, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABCD$ un parallelogramma. Si sa che il lato $AB$ misura $6$, l'angolo $\\angle BAD$ misura $60^\\circ$ e l'angolo $\\angle ADB$ è retto. Sia $P$ il baricentro del triangolo $ACD$. Calcolare il valore del prodotto delle aree del triangolo $ABP$ e del quadrilatero $ACPD$.", "options": [], "answer": "27", "solution": "Solution:\n\nLa risposta è $27$. Sia $H$ la proiezione ortogonale di $D$ su $AB$. Dai dati del problema segue subito che $AD = 3$ e $DH = \\frac{3 \\sqrt{3}}{2}$. Siano $Q, R$ le proiezioni ortogonali di $P$ su $CD$ e $AB$, rispettivamente.\n\n![](attached_image_1.png)\n\nPoiché $P$ è il baricentro di $ACD$, e poiché le diagonali di un parallelogramma si bisecano, si ha $PD = \\frac{1}{3} BD$. Dalla similitudine dei triangoli $BDH, BPR$ segue $PR = \\frac{2}{3} DH = \\sqrt{3}$. L'area di $ABP$ vale pertanto $S(ABP) = \\frac{1}{2} AB \\cdot PR = 3 \\sqrt{3}$.\n\nL'area del quadrilatero $ACPD$ si può ottenere per differenza fra l'area di $ACD$ e l'area di $PCD$. Osserviamo che $QR$ è l'altezza di $ACD$ e $PQ$ l'altezza di $PCD$.\n\nAllora $S(ACPD) = S(ACD) - S(PCD) = \\frac{1}{2} CD \\cdot QR - \\frac{1}{2} CD \\cdot PQ = \\frac{1}{2} CD \\cdot (QR - PQ) = \\frac{1}{2} CD \\cdot PR = 3 \\sqrt{3}$. (Si nota, incidentalmente, che $ABP$ e $ACPD$ sono equivalenti; ciò resta vero qualunque sia la posizione di $P$.) Il prodotto delle due aree è quindi $(3 \\sqrt{3})^2 = 27$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33718, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUna piramide a base quadrata ha il lato di base lungo $\\sqrt{3}$ e tutti gli spigoli delle facce laterali sono lunghi $\\sqrt{2}$. Quanti gradi misura l'angolo fra due spigoli non appartenenti alla stessa faccia laterale?", "options": [], "answer": "120°", "solution": "Solution:\n\nLa risposta è $120$. L'angolo richiesto è angolo al vertice del triangolo isoscele che ha per base la diagonale della base e per lati obliqui due spigoli delle facce laterali. La base misura $\\sqrt{6}$ e il rapporto tra il lato obliquo e metà base è $\\frac{\\sqrt{3}}{2}$: questo è il seno di metà dell'angolo richiesto. La misura dell'angolo è $120^{\\circ}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33719, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nQuanti sono i numeri di cinque cifre (cioè fra $10000$ e $99999$) che non contengono zeri e sono multipli di $12$?", "options": [], "answer": "4374", "solution": "Solution:\n\nLa risposta è $4374$. Per determinare quanti sono esattamente i numeri da contare, ricordiamo innanzitutto che un numero è divisibile per $12$ se e solo se è divisibile per $4$ e per $3$, e i criteri di divisibilità ci dicono che:\n- Le ultime due cifre del numero devono formare un multiplo di $4$.\n- La somma delle cifre del numero deve essere divisibile per $3$.\nL'idea su cui si basa questa soluzione è quella di \"generare\" tutti i possibili numeri di questo tipo scegliendo nell'ordine le cifre dall'ultima alla prima.\n\na. Contiamo innanzitutto in quanti modi possiamo scegliere le ultime due cifre: esse devono formare un multiplo di $4$ di due cifre che non contiene zeri, e le possibilità per questa scelta sono $18$ (tutti i multipli di $4$ inferiori a $100$ sono $25$, ma da questi vanno scartati $00, 04, 08, 20, 40, 60, 80$ che contengono almeno uno zero).\n\nb. La seconda e la terza cifra del numero possono essere scelte ognuna in $9$ modi diversi (tutte le cifre da $1$ a $9$) indipendentemente da tutte le altre cifre. Ora ci resta da scegliere la prima cifra del numero, e da sistemare la divisibilità per $3$.\n\nc. La prima cifra può essere scelta in $9$ modi diversi, ma non tutte queste scelte permettono di ottenere la divisibilità per $3$. Però, visto che le nove cifre da $1$ a $9$ nella divisione per $3$ hanno i resti uguali a tre a tre, una volta che abbiamo fissato tutte le cifre precedenti esattamente $3$ delle possibili scelte per la prima cifra sono accettabili.\n\nRiassumendo, possiamo scegliere un numero che rispetta le condizioni richieste in $18 \\cdot 9 \\cdot 9 \\cdot 3 = 4374$ modi diversi. È semplice controllare che in questo modo generiamo tutti i numeri scelti, in quanto i criteri di divisibilità sono condizioni necessarie e sufficienti.\nSolution:\n\nImponiamo innanzitutto che il numero sia multiplo di $4$, allora le sue due ultime cifre dovranno essere uno dei multipli di $4$ tra $00$ e $99$; tali multipli sono $25$, ma tra questi ve ne sono $7$ che contengono almeno uno zero e quindi vanno scartati. Rimaniamo con $18$ possibilità per le cifre finali. Ora dobbiamo scegliere altre tre cifre (non zero) di modo che la somma di tutte e cinque le cifre sia multipla di $3$, per garantire la divisibilità per $3$. Utilizzando le congruenze modulo $3$, osserviamo che, per ogni possibile resto della divisione per $3$, vi sono esattamente $3$ numeri tra $1$ e $9$ che lo danno ($1, 4, 7$; $2, 5, 8$; $3, 6, 9$). A meno dell'ordine, i vari resti modulo $3$ si possono ottenere come somma di $3$ resti in questi modi:\n\n$0 \\equiv 0+0+0 \\equiv 1+1+1 \\equiv 2+2+2 \\equiv 0+1+2 \\pmod{3}$\n\n$1 \\equiv 0+0+1 \\equiv 0+2+2 \\equiv 1+1+2 \\pmod{3}$\n\n$2 \\equiv 0+1+1 \\equiv 0+0+2 \\equiv 1+2+2 \\pmod{3}$\n\nPer tenere conto anche dell'ordine, osserviamo che $0+1+2$ si può permutare in $6$ modi, $0+0+0$ e simili non hanno permutazioni, tutti gli altri si possono permutare in $3$ modi. Quindi, tenendo conto dell'ordine, ogni resto si può scrivere in $9$ modi diversi come somma di $3$ resti; quindi, fissato un resto, possiamo realizzare un numero di $3$ cifre che dia quel resto e che non contenga $0$ in $9 \\cdot 3^{3}$ modi e dunque, indipendentemente da quali ultime due cifre scegliamo, avremo $9 \\cdot 3^{3}$ modi di completare il numero di modo che sia multiplo di $3$, senza inserire zeri. In totale avremo perciò $18 \\cdot 9 \\cdot 27 = 4374$ modi.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33720, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $k \\geq 1$ un numero naturale. Determinare in funzione di $k$ il numero di interi positivi $n$ con le seguenti proprietà:\n\na. in base dieci si scrivono con $k$ cifre, tutte dispari;\n\nb. sono divisibili per $5$, e il quoziente $\\frac{n}{5}$, scritto in base dieci, ha ancora $k$ cifre, tutte dispari.", "options": [], "answer": "3^{k-1}", "solution": "Solution:\n\nIl numero di interi positivi $n$ con le proprietà (a) e (b) è $3^{k-1}$.\n\nPer dimostrarlo si consideri il numero intero $\\frac{n}{5}$ e siano $a_{0}, a_{1}, \\ldots, a_{k-1}$ le sue cifre, ossia\n$$\n\\frac{n}{5}=a_{k-1} 10^{k-1}+\\ldots+a_{1} 10+a_{0}\n$$\nPer (b) le cifre $a_{i}$ sono tutte dispari, cioè $a_{i} \\in\\{1,3,5,7,9\\}$ per ogni $i=0,1, \\ldots, k-1$.\nPoiché $n$ in base 10 ha esattamente $k$ cifre, si deduce che $a_{k-1}=1$, perché altrimenti, se fosse $a_{k-1}>1$, si avrebbe\n$$\nn=5 \\cdot \\frac{n}{5} \\geq 5 \\cdot a_{k-1} 10^{k-1} \\geq 10^{k}\n$$\nciaè $n$ avrebbe almeno $k+1$ cifre.\n\nInoltre, si osservi che per ogni intero $a$ si ha $5 a=\\frac{a-1}{2} 10+5$, per cui nel nostro caso, ricordando che $a_{k-1}=1$, vale\n$$\n\\begin{aligned}\n& n=5 \\cdot \\frac{n}{5}=5\\left(a_{k-1} 10^{k-1}+\\cdots+a_{1} 10+a_{0}\\right)=5 a_{k-1} 10^{k-1}+5 a_{k-2} 10^{k-2} \\cdots+5 a_{1} 10+a_{0}= \\\\\n& 5 \\cdot 10^{k-1}+\\left(\\frac{a_{k-2}-1}{2} 10+5\\right) 10^{k-2}+\\cdots+\\left(\\frac{a_{1}-1}{2} 10+5\\right) 10+\\frac{a_{0}-1}{2} 10+5= \\\\\n& 5 \\cdot 10^{k-1}+\\frac{a_{k-2}-1}{2} 10^{k-1}+5 \\cdot 10^{k-2}+\\cdots+\\frac{a_{1}-1}{2} 10^{2}+5 \\cdot 10+\\frac{a_{0}-1}{2} 10+5= \\\\\n& \\left(5+\\frac{a_{k-2}-1}{2}\\right) 10^{k-1}+\\left(5+\\frac{a_{k-3}-1}{2}\\right) 10^{k-2}+\\cdots+\\left(5+\\frac{a_{1}-1}{2}\\right) 10^{2}+\\left(5+\\frac{a_{0}-1}{2}\\right) 10+5\n\\end{aligned}\n$$\nQuella scritta sopra, dato che gli $a_{i}$ sono cifre dispari, è la scrittura decimale di $n$, perché\n$0 \\leq 5+\\frac{a_{i}-1}{2} \\leq 9$ e $\\frac{a_{i}-1}{2}$ è intero per ogni $i=0, \\ldots, k-2$.\n\nPoiché per (a) $n$ ha $k$ cifre dispari, si deduce che $5+\\frac{a_{i-1}-1}{2}$ deve essere dispari per $i=1, \\ldots, k-1$, ossia $a_{i}$ può assumere solo i valori $1,5$ e $9$.\n\nCi sono quindi al più tre modi per scegliere $a_{i}, i=0, \\ldots, k-2$, mentre $a_{k-1}=1$, cioè ci sono al più $3^{k-1}$ candidati per $\\frac{n}{5}$ e quindi per $n$.\n\nLa formula esplicita (1) mostra altresì che ogni tale scelta fornisce un numero $n$ che soddisfa (a) e (b).\nResta quindi dimostrato che tali numeri sono esattamente $3^{k-1}$.\nSolution:\n\nNotiamo innanzi tutto che, per $k$ naturale fissato maggiore di $0$, gli interi positivi che verificano le proprietà (a) e (b) sono tanti quanti gli interi positivi di $k$ cifre tutte dispari la cui moltiplicazione per $5$ è ancora di $k$ cifre dispari, dato che la moltiplicazione per $5$ è una funzione iniettiva.\n\nSia $a_{1} a_{2} \\ldots a_{k}$ la scrittura in base dieci di un intero con tutte cifre dispari la cui moltiplicazione per $5$ sia ancora di $k$ cifre dispari. Ogni moltiplicazione $a_{i} \\cdot 5$ ha $5$ come cifra delle unità.\n\nLa cifra $a_{1}$ è $1$, dato che $3 \\cdot 5=15$ produce già un'unità della potenza di dieci successiva, dunque il prodotto per $5$ avrebbe $n+1$ cifre.\n\nPer $i=2, \\ldots, n$ la cifra delle decine di $a_{i} \\cdot 5$ deve essere pari perché deve dare una cifra dispari sommato con le $5$ unità del numero $a_{i-1} \\cdot 5$: dunque $a_{i}$ è $1,5$, o $9$ per $i=2, \\ldots, n$.\n\nPer $k>0$ naturale, il numero degli interi positivi che verificano le proprietà (a) e (b) è $3^{k-1}$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33721, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABCD$ un quadrilatero; chiamiamo $E$ l'intersezione (distinta da $A$) tra le circonferenze di diametri $AB$ e $AC$ ed $F$ l'intersezione (sempre distinta da $A$) tra le circonferenze di diametri $AC$ e $AD$. Dimostrare che:\n\na. se $E\\widehat{A}D = 90^\\circ$ allora $BC$ è parallelo a $AD$\n\nb. se $E\\widehat{A}D = F\\widehat{A}B = 90^\\circ$ allora $ABCD$ è un parallelogramma\n\nc. se $ABCD$ è un parallelogramma allora $E\\widehat{A}D = F\\widehat{A}B = 90^\\circ$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\na. Siano $M, N$ i punti medi di $AB$ e $AC$ rispettivamente; in quanto corda comune ai due cerchi di diametri $AB$ e $AC$, $AE$ è perpendicolare a $MN$. Se $E\\widehat{A}D = 90^\\circ$, $AD$ e $MN$, in quanto perpendicolari alla stessa retta (quella che contiene $EA$), sono paralleli; infine per il teorema di Talete, $MN$ è parallelo a $BC$ e dunque $BC$ è parallelo ad $AD$.\n\n![](attached_image_1.png)\n\nb. Similmente a quanto fatto nel punto (a), detto $L$ il punto medio di $AD$, si ha che $AF$ è perpendicolare a $NL$ e, se $F\\widehat{A}B = 90^\\circ$, anche $AB$ è perpendicolare a $AF$ e dunque parallelo a $NL$. Applicando come sopra il teorema di Talete si ottiene che allora $AB$ è parallelo a $CD$. Quindi, se $E\\widehat{A}D = F\\widehat{A}B = 90^\\circ$, si ha che $AB$ è parallelo a $CD$ e $AD$ è parallelo a $BC$, ovvero $ABCD$ è un parallelogramma.\n\nc. Di converso, se $ABCD$ è un parallelogramma, detti $M, N, L$ i punti medi di $AB, AC, AD$ come sopra, si ha che $AD, BC, MN$ sono paralleli e dunque tutti perpendicolari a $AE$, corda comune alle circonferenze di diametri $AB$ e $AC$ (e centri $M$ e $N$); allo stesso modo, $AB, CD, NL$ sono paralleli e dunque tutti perpendicolari a $AF$, corda comune alle circonferenze di diametri $AC$ e $AD$ (e centri $N, L$). Quindi $E\\widehat{A}D = F\\widehat{A}B = 90^\\circ$.\n\n![](attached_image_2.png)", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33722, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDeterminare tutti i valori di $m, n, p$ tali che $p^{n}+144=m^{2}$, dove $m$ ed $n$ sono interi positivi e $p$ è un numero primo.", "options": [], "answer": "(m, n, p) = (13, 2, 5), (20, 8, 2), (15, 4, 3)", "solution": "Solution:\n\nI valori possibili di $(m, n, p)$ sono $(13,2,5)$, $(20,8,2)$ e $(15,4,3)$.\n\nRiscriviamo l'equazione nella forma $p^{n}=m^{2}-144=(m+12)(m-12)$. Poiché gli unici divisori di $p^{n}$ sono potenze di $p$, l'equazione è equivalente al sistema\n$$\n\\left\\{\n\\begin{array}{l}\nm+12=p^{a} \\\\\nm-12=p^{b}\n\\end{array}\n\\right.\n$$\ndove $a$ e $b$ sono numeri naturali tali che $a>b \\geq 0$ e $a+b=n$. Sottraendo la seconda equazione dalla prima, si ottiene\n$$\n24=p^{b}\\left(p^{a-b}-1\\right) .\n$$\nSe $b=0$, quest'ultima equazione diventa $24=p^{a}-1$, da cui si ricava immediatamente la soluzione $p=5, n=2, m=13$.\n\nSe invece $b>0$, poiché $p^{b}$ divide $24=2^{3} \\cdot 3$, allora $p=2$ o $p=3$. Inoltre, poiché $p$ non divide $p^{a-b}-1$, $p^{b}=8$ o $p^{b}=3$. Sostituendo, si trovano le altre due soluzioni $p=2, n=8, m=20$ e $p=3, n=4, m=15$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33723, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nConsideriamo le quattro affermazioni seguenti:\nManuela ha un cane e un gatto.\nManuela non ha né un cane né un gatto.\nSe Manuela ha un cane, allora ha anche un gatto.\nManuela non ha un cane, ma ha un gatto.\nQuante di esse, al massimo, possono essere false contemporaneamente?\n(A) 0\n(B) 1\n(C) 2\n(D) 3\n(E) 4 .", "options": [], "answer": "E", "solution": "Solution:\nLa risposta è (E). Le affermazioni \"Manuela ha un cane e un gatto\", \"Manuela non ha né un cane né un gatto\" e \"Manuela non ha un cane, ma ha un gatto\" sono tra loro incompatibili. L'affermazione \"Se Manuela ha un cane, allora ha anche un gatto\" è vera esattamente quando una (ed una sola) delle altre tre affermazioni è vera; perciò è falsa, insieme con le altre tre, esattamente quando \"Manuela ha un cane, ma non ha un gatto\". Dunque il numero massimo di affermazioni false è 4.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33724, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nQuale fra le seguenti espressioni è equivalente a $(x+y+z)^{3}-x^{3}-y^{3}-z^{3}$?\n\n(A) $3 x^{2}(y+z)+3 y^{2}(x+z)+3 z^{2}(x+y)$\n\n(B) $3 x(y+z)^{2}+3 y(x+z)^{2}+3 z(x+y)^{2}$\n\n(C) $3(x+y)(x+z)(y+z)$\n\n(D) $3 x\\left(y^{2}+z^{2}\\right)+3 y\\left(x^{2}+z^{2}\\right)+3 z\\left(x^{2}+y^{2}\\right)$\n\n(E) $3 x y(1-z)+3 x z(1-y)+3 y z(1-x)$.", "options": [], "answer": "C", "solution": "Solution:\nLa risposta è $(\\mathbf{C})$. Svolgendo il cubo, si ha\n$$(x+y+z)^{3}-x^{3}-y^{3}-z^{3}=6 x y z+3 x^{2} y+3 x y^{2}+3 x^{2} z+3 x z^{2}+3 y^{2} z+3 y z^{2}$$\n$$=3 x y(x+y+z)+3 x z(x+y+z)+3 y z(y+z)$$\n$$=3 x(x+y+z)(y+z)+3 y z(y+z)$$\n$$=3(y+z)(x(x+y+z)+y z)$$\n$$=3(y+z)(x(x+y)+z x+z y)$$\n$$=3(y+z)(x(x+y)+z(x+y))$$\n$$=3(y+z)(x+z)(x+y)$$\n\n\nSECONDA SOLUZIONE\nL'espressione $(x+y+z)^{3}-x^{3}-y^{3}-z^{3}$ contiene il monomio $6 x y z$. Così si escludono le risposte (A) e (D) perché quel monomio non compare, nella risposta (B) compare $18 x y z$, nella risposta (E) compare $-9 x y z$ (inoltre questo polinomio non è omogeneo). La risposta è quindi (C).\n\nTERZA SOLUZIONE\nL'espressione $(x+y+z)^{3}-x^{3}-y^{3}-z^{3}$ è composta da $3^{3}-3=24$ monomi (senza sommare quelli simili) tutti quanti aventi coefficiente 1. Delle 5 espressioni proposte, la (A), la (B), la (D) e la (E) sono composte da $3 \\cdot 2 \\cdot 3=18$ monomi (anche simili fra loro) tutti aventi coefficiente 1, solo la $(\\mathbf{C})$ è composta da $3 \\cdot 2^{3}=24$ monomi tutti aventi coefficiente 1.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33725, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $\\Gamma$ una circonferenza e siano $A$ e $B$ due punti distinti di $\\Gamma$ non diametralmente opposti. Sia $P$ un punto variabile in $\\Gamma$ diverso da $A$ e da $B$ e sia $H$ l'ortocentro del triangolo $A B P$. Determinare il luogo descritto da $H$ al variare di $P$.", "options": [], "answer": "The locus is the circle Γ′ obtained by reflecting Γ across the line AB (equivalently, translating Γ by the vector CA, where C is diametrically opposite to B), with the two points A′ and B′ (the images of A and B) removed.", "solution": "Solution:\n\nSia $\\Gamma'$ la circonferenza simmetrica di $\\Gamma$ rispetto ad $A B$, e siano $A'$ e $B'$ i 2 punti di $\\Gamma'$ per cui $A A'$ e $B B'$ sono perpendicolari ad $A B$. Dimostreremo che il luogo richiesto è costituito dalla circonferenza $\\Gamma'$ meno i punti $A'$ e $B'$.\nConsideriamo il più lungo dei 2 archi di $\\Gamma$ delimitati da $A$ e $B$, e sia $\\alpha$ l'angolo sotto cui i punti di tale arco vedono il segmento $A B$. Con riferimento alla figura qui sopra, per dimostrare che $H$ appartiene a $\\Gamma'$ ci basta dunque dimostrare che $H$ sta al di sopra della retta $A B$ e $A \\widehat{H} B=180^{\\circ}-\\alpha$, oppure che $H$ sta al di sotto della retta $A B$ e $A \\widehat{H} B=\\alpha$. Indichiamo ora con $R$ ed $S$ i piedi delle altezze condotte da $A$ e $B$, rispettivamente, e distinguiamo vari casi.\n\n![](attached_image_1.png)\n\n- Caso 1: $P$ sta al di sopra di $A B$ e $A P B$ è acutangolo (figura a sinistra). In questo caso $H$ sta sopra la retta $A B$ e da un esame del quadrilatero $P S H R$, in cui ci sono 2 angoli retti, si ha che $A \\widehat{H} B=S \\widehat{H} R=180^{\\circ}-\\alpha$.\n\n- Caso 2: $P$ sta al di sopra di $A B$ e $A P B$ è rettangolo. In questo caso $H$ coincide banalmente con $A$ o $B$.\n\n- Caso 3: $P$ sta al di sopra di $A B$ e $A P B$ è ottusangolo in $A$ (figura centrale). In questo caso $H$ sta al di sotto di $A B$. Inoltre i triangoli $A R P$ e $A S H$ sono rettangoli ed hanno gli angoli in $A$ opposti al vertice. Ne segue che $A \\widehat{H} B=A \\widehat{P} B=\\alpha$. Un discorso del tutto analogo vale se $A P B$ è ottusangolo in $B$.\n\n- Caso 4: $P$ sta al di sotto di $A B$ (figura a destra). In questo caso $A P B$ è ottusangolo in $P$ e $A \\widehat{P} B=180^{\\circ}-\\alpha$. Anche in questo caso $H$ sta al di sotto di $A B$ e da un esame del quadrilatero $P R H S$, in cui ci sono 2 angoli retti, si ottiene che $A \\widehat{H} B=\\alpha$.\n\n![](attached_image_2.png)\n\nViceversa, sia $H$ un qualunque punto di $\\Gamma'$. Definiamo $P$ come l'ortocentro di $A B H$. Con un ragionamento del tutto analogo al precedente (in cui semplicemente si scambiano i ruoli di $\\Gamma$ e $\\Gamma'$, nonché di $P$ ed $H$ ) si ha che $P$ appartiene a $\\Gamma$, ed è diverso da $A$ e $B$ purché $H$ sia diverso da $A'$ e $B'$. Poiché $P$ è l'ortocentro di $A B H$, per una nota proprietà abbiamo che a sua volta $H$ è l'ortocentro di $A B P$. Questo dimostra che ogni punto di $\\Gamma'$ meno i punti $A'$ e $B'$ appartiene al luogo richiesto.\nSolution:\n\nIndichiamo con $C$ il punto su $\\Gamma$ diametralmente opposto a $B$. Essendo $B C$ un diametro, l'angolo $C \\widehat{A} B$ è retto: ne segue che le rette $P H$ e $C A$ sono parallele, in quanto entrambe perpendicolari ad $A B$. Per lo stesso motivo, anche $C \\widehat{P} B$ è retto, dunque anche $C P$ e $A H$ sono parallele, in quanto entrambe perpendicolari a $P B$.\nNe segue che $A H P C$ è un parallelogramma, e perciò $P H=A C$ per ogni $P$ in $\\Gamma$. Inoltre $P H$ ha sempre direzione perpendicolare ad $A B$, e quindi il vettore $\\overrightarrow{P H}$ è costante.\nDa ciò si deduce che il luogo richiesto è dato dalla circonferenza $\\Gamma'$, che è la traslata di $\\Gamma$ per il vettore $\\overrightarrow{P H} \\equiv \\overrightarrow{C A}$, meno i traslati di $A$ e $B$, che sono proprio $A'$ e $B'$.\nSolution:\n\nIndichiamo con $O$ e $r$ il centro e il raggio della circonferenza $\\Gamma$. Determiniamo dapprima l'insieme formato dai baricentri $G_{P}$ dei triangoli $A B P$ quando $P$ percorre $\\Gamma$. Sia $M$ il punto medio di $A B$. Allora $G_{P}$ è dato dall'immagine di $P$ mediante l'omotetia di centro $M$ e rapporto $\\frac{1}{3}$. Pertanto l'insieme dei punti $G_{P}$ forma la circonferenza $\\Gamma'$ di centro $O'$ e raggio $\\frac{r}{3}$, dove $O'$ è il punto del segmento $O M$ tale che $M O'=\\frac{1}{3} M O$ (e privata dei due punti che corrispondono ad $A$ e $B$ sotto l'omotetia). A questo punto, per ottenere l'insieme cercato si tratta di operare su $\\Gamma'$ l'omotetia di centro $O$ e rapporto 3. Infatti, in ogni triangolo il baricentro $G$ divide il segmento avente come estremi l'ortocentro $H$ e il circocentro $C$ in due parti tali che $G H=2 G C$, e nel nostro caso i triangoli $A B P$ hanno tutti il medesimo circocentro $O$, che è fissato. Pertanto si ottiene la circonferenza $\\Gamma''$ (privata di due punti) avente raggio $r$ e centro nel punto $O''$, dove $O''$ è il punto sulla semiretta di origine $O$ e passante per $M$, posto a distanza $2 O M$ da $O$. In altre parole, $\\Gamma''$ è la circonferenza simmetrica di $\\Gamma$ rispetto a $M$, privata di due punti.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33726, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nGli abitanti di un'isola sono o furfanti o cavalieri: i cavalieri dicono sempre la verità, i furfanti mentono sempre. Una sera al bar, Alberto dice: \"Bruno è un cavaliere\"; Bruno dice: \"......tutti e tre cavalieri\" (in quel momento passa un camion e non si capisce se Bruno ha detto \"Siamo tutti...\" o \"Non siamo tutti...\"); Carlo dice: \"Bruno ha detto che non siamo tutti e tre cavalieri\". Quanti di loro sono cavalieri?\n(A) 0\n(B) 1\n(C) 2\n(D) 3\n(E) non è possibile determinarlo.", "options": [], "answer": "A", "solution": "Solution:\n\nLa risposta è (A). In base all'affermazione di Alberto, Alberto e Bruno sono dello stesso tipo. Se Carlo è un cavaliere, Bruno dice \"non siamo tutti e tre cavalieri\" che è vera se e solo se Bruno è un furfante. Perciò Carlo è necessariamente un furfante. Poichè l'affermazione di Bruno è del tipo \"(non) siamo tutti e tre cavalieri\", Bruno ha detto \"siamo tutti e tre cavalieri\" che è falsa, dunque Bruno è un furfante, di conseguenza anche Alberto.\nNotiamo che, senza sapere il tipo di affermazione fatta da Bruno (potrebbe, ad esempio, aver detto \"i baristi sono tutti e tre cavalieri\"), non si può dire che cosa sia Bruno, né di conseguenza che cosa sia Alberto.\nSolution:\n\nSe Carlo è un furfante, Bruno ha detto \"siamo tutti e tre cavalieri\" che è falsa, dunque sono tutti e tre furfanti. Se Carlo fosse un cavaliere, allora Bruno avrebbe effettivamente detto \"non siamo tutti e tre cavalieri\" che può essere vera solo se Alberto è un furfante. Ma allora anche Bruno sarebbe un furfante, e non potrebbe aver fatto un'affermazione vera. Quindi la sola possibilità è che siano tutti furfanti.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33727, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSi consideri la disuguaglianza\n$$\n\\left(x_{1}+\\ldots+x_{n}\\right)^{2} \\geq 4\\left(x_{1} x_{2}+x_{2} x_{3}+\\ldots+x_{n} x_{1}\\right) .\n$$\n\na. Determinare per quali $n \\geq 3$ è vera per ogni possibile scelta di numeri reali positivi $x_{1}, \\ldots, x_{n}$.\n\nb. Determinare per quali $n \\geq 3$ è vera per ogni possibile scelta di numeri reali $x_{1}, \\ldots, x_{n}$.", "options": [], "answer": "a: n ≥ 4; b: n = 4", "solution": "Solution:\n\nDimostreremo che la disuguaglianza\n- è vera per ogni scelta $x_{1}, \\ldots, x_{n}$ di numeri reali positivi se e solo se $n \\geq 4$;\n- è vera per ogni scelta $x_{1}, \\ldots, x_{n}$ di numeri reali se e solo se $n=4$.\n\nSuddividiamo la dimostrazione in vari passi.\n\nPasso 1. Dimostriamo che per $n=3$ la disuguaglianza è falsa, anche per terne di numeri reali positivi. Ponendo infatti $x_{1}=x_{2}=x_{3}=1$, il termine di sinistra è uguale a $9$ mentre quello di destra è uguale a $12$.\n\nPasso 2. Per $n=4$ la disuguaglianza è vera per ogni scelta di numeri reali $x_{1}, x_{2}, x_{3}, x_{4}$ (positivi, negativi o nulli).\nSvolgendo infatti il quadrato e portando tutto al primo membro otteniamo la disuguaglianza\n$$\nx_{1}^{2}+x_{2}^{2}+x_{3}^{2}+x_{4}^{2}-2 x_{1} x_{2}-2 x_{2} x_{3}-2 x_{3} x_{4}-2 x_{4} x_{1}+2 x_{1} x_{3}+2 x_{2} x_{4} \\geq 0\n$$\ne cioè\n$$\n\\left(x_{1}-x_{2}+x_{3}-x_{4}\\right)^{2} \\geq 0\n$$\nche è banalmente sempre vera.\n\nPasso 3. Per ogni $n \\geq 5$ esiste almeno una scelta $x_{1}, \\ldots, x_{n}$ di numeri reali (non tutti positivi) per cui la disuguaglianza è falsa.\nPonendo infatti $x_{1}=x_{2}=1, x_{3}=0, x_{4}=-2, x_{5}=\\ldots=x_{n}=0$ il termine di sinistra si annulla, mentre il termine a destra è uguale a $4$.\n\nPasso 4. Per ogni $n \\geq 4$ la disuguaglianza è vera per ogni scelta $x_{1}, \\ldots, x_{n}$ di numeri reali positivi.\nDimostriamo questo fatto per induzione su $n$. Supponiamo che la tesi sia vera per $n \\geq 4$ e dimostriamola per $n+1$. Siano $x_{1}, \\ldots, x_{n+1}$ numeri reali positivi. Osserviamo che la disuguaglianza non cambia se permutiamo ciclicamente i numeri $x_{1}, \\ldots, x_{n+1}$, e pertanto possiamo supporre che $x_{1}$ sia un numero maggiore o uguale a tutti gli altri. Dalla disuguaglianza per $n$ termini otteniamo\n$$\n\\begin{aligned}\n\\left(x_{1}+\\cdots+x_{n-1}+\\left(x_{n}+x_{n+1}\\right)\\right)^{2} \\geq & 4\\left(x_{1} x_{2}+\\cdots+x_{n-2} x_{n-1}+\\right. \\\\\n& \\left.+x_{n-1}\\left(x_{n}+x_{n+1}\\right)+\\left(x_{n}+x_{n+1}\\right) x_{1}\\right) \\\\\n= & 4\\left(x_{1} x_{2}+\\cdots+x_{n} x_{n+1}+x_{n+1} x_{1}\\right)+4 y\n\\end{aligned}\n$$\ndove $y=x_{n-1} x_{n+1}+x_{n}\\left(x_{1}-x_{n+1}\\right)>0$ per la nostra ipotesi su $x_{1}$. La disuguaglianza è dimostrata.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33728, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSilvia ha $2006$ tessere identiche a forma di triangolo equilatero e vuole disporle tutte sul tavolo senza sovrapporle e in modo che ciascuna abbia esattamente due lati in comune con altre due tessere. Può riuscire nel suo intento? Poteva riuscirci l'anno scorso, quando aveva $2005$ tessere?\n\n(A) È impossibile in entrambi i casi.\n(B) È possibile con $2005$ tessere, ma non con $2006$.\n(C) È possibile con $2006$ tessere, ma non con $2005$.\n(D) In questi due casi è possibile, ma tra i numeri maggiori di $12$ ce n'è almeno uno per cui non è possibile.\n(E) È possibile per tutti i numeri di tessere maggiori di $12$.", "options": [], "answer": "(C)", "solution": "Solution:\n\nLa risposta è $\\mathbf{(C)}$. Il testo chiede per quali $n$ è possibile affiancare $n$ tessere in una sequenza chiusa in cui ogni tessera ne ha altre due adiacenti. Facendo delle semplici prove si vede subito che i primi casi in cui è possibile sono $n=6$ (si ottiene un esagono in cui le tessere hanno tutte un vertice in comune), $n=12$ (si ottiene una catena di tessere con un buco triangolare in centro, che poi è la differenza tra le figure $F_{1}$ ed $F_{0}$ del problema successivo), $n=14$ (si ottiene una catena di tessere con un buco che è l'unione di due triangoli).\n\nRivolgendo la nostra attenzione al \"buco\", la regione senza tessere lasciata libera dalla catena, è immediato che se la si sceglie a forma di triangolo di lato $k$, sono necessarie esattamente $6(k+1)$ tessere per circondarla; inoltre non è difficile convincersi che se la si ingrandisce di un solo spazio triangolare, sono necessarie esattamente due tessere in più per circondarla, a patto di non averla ingrandita in una zona non convessa del suo bordo. Quindi ingrandendo di zero, uno o due triangoli un buco triangolare di lato $k-1$ si ottengono regioni che vengono circondate da $6k$, $6k+2$ e $6k+4$ tessere rispettivamente. Potendo scegliere $k$ tra i numeri interi maggiori di $1$, si ottiene che tutti gli $n \\geq 12$ pari ammettono soluzione.\n\nPer vedere che non sono possibili soluzioni con $n$ dispari, basta supporre che ne esista una e immaginare di costruirla sopra una scacchiera triangolare infinita che abbia i triangoli colorati alternativamente di bianco e di nero (in modo che due triangoli adiacenti per un lato abbiano sempre colore diverso). Due tessere consecutive saranno per forza adagiate su triangoli di colore diverso, quindi la sequenza di colori associati alle diverse tessere dovrà essere una successione alternata di colori, e dovrà essere chiusa, quindi mostrando lo stesso numero di bianchi e di neri. Ovviamente, se $n$ è dispari ciò non è possibile.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33729, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAlberto e Barbara si sfidano al seguente gioco: inizialmente su un tavolo ci sono alcune pile di gettoni (il numero di gettoni può variare da pila a pila). A turno, partendo da Alberto, uno dei due giocatori fa una e una sola delle seguenti mosse:\n- o toglie un gettone da una pila a sua scelta e lo elimina dal gioco;\n- oppure suddivide una pila in due pile più piccole, ognuna di almeno un gettone (senza aggiungere o togliere gettoni dal tavolo).\nVince chi toglie l'ultimo gettone dal tavolo. Determinare, a seconda del numero di pile presenti sul tavolo all'inizio e di quanti gettoni contengono, quale dei due giocatori ha una strategia vincente.", "options": [], "answer": "Barbara has a winning strategy if and only if both m0 and s0 are even, where s0 is the number of piles of size one and m0 = sum over piles of size greater than one of (size minus one), equivalently the total number of tokens minus the total number of piles. Otherwise Alberto has a winning strategy. (Equivalently, Barbara wins iff both the number of singleton piles and the number of even-sized piles are even.)", "solution": "Solution:\n\nSupponiamo innanzitutto che si parta da una situazione in cui c'è almeno un gettone presente sul tavolo, altrimenti il gioco non può nemmeno iniziare.\nSiano $C_{0}, C_{1}, C_{2}, \\ldots$ le combinazioni di pile presenti all'inizio del gioco, dopo la prima mossa, dopo la seconda mossa, eccetera. Per ogni combinazione $C_{i}$ sia $r_{i}$ il numero di pile che hanno un numero di gettoni $a_{1}, a_{2}, \\ldots, a_{r_{i}}$ maggiore di 1 ed $s_{i}$ il numero di pile che hanno un gettone. Sia poi $m_{i}=\\left(a_{1}-1\\right)+\\cdots+\\left(a_{r_{i}}-1\\right)$. Dimostriamo che Barbara ha una strategia vincente se $m_{0}$ ed $s_{0}$ sono entrambi pari e che Alberto ha una strategia vincente in tutti gli altri casi. La strategia vincente è quella di lasciare all'avversario ad ogni mossa una combinazione $C_{i}$ tale che $m_{i}$ ed $s_{i}$ siano entrambi pari.\n\nInfatti, osserviamo che se un giocatore si trova di fronte ad una combinazione in cui $m_{i}$ ed $s_{i}$ sono entrambi pari, ogni sua mossa deve portare ad una combinazione in cui almeno uno fra $m_{i+1}$ ed $s_{i+1}$ è dispari. Viceversa, supponiamo che un giocatore si trovi di fronte ad una combinazione in cui $m_{i}$ ed $s_{i}$ non sono entrambi pari:\n- se $m_{i}$ è pari ed $s_{i}$ è dispari, può eliminare una pila con 1 gettone;\n- se $m_{i}$ è dispari ed $s_{i}$ è pari, può eliminare un gettone da una pila con almeno 3 gettoni (se esiste), oppure dividere una pila con 2 gettoni in due pile con un gettone;\n- se $m_{i}$ ed $s_{i}$ sono entrambi dispari, può dividere una pila con $a \\geq 3$ gettoni (se esiste) in due pile con $a-1$ ed 1 gettone, oppure può togliere un gettone da una pila che ne contenga 2.\n\nIn tutti i casi, il giocatore riesce a riproporre una combinazione in cui $m_{i+1}$ ed $s_{i+1}$ sono entrambi pari.\n\nPoiché durante il gioco si può lasciare invariato il numero di gettoni presenti sul tavolo al massimo $m_{0}$ volte, il gioco certamente finisce e chiaramente la vittoria andrà a colui che riesce a proporre la combinazione $C_{n}$ in cui $m_{n}=s_{n}=0$, entrambi pari.\nSolution:\n\nSia $s_{i}$ il numero di pile con un solo gettone ed $m_{i}$ il numero di pile con un numero pari di gettoni. Anche con questa definizione Barbara ha una strategia vincente se e solo se $s_{0}$ ed $m_{0}$ sono pari, e la strategia vincente consiste nel lasciare sempre all'avversario una configurazione in cui $s_{i}$ ed $m_{i}$ sono pari. Infatti se un giocatore si trova di fronte ad una combinazione in cui $s_{i}$ ed $m_{i}$ sono pari, ogni sua mossa porta ad una combinazione in cui almeno uno tra $s_{i+1}$ ed $m_{i+1}$ è dispari. Viceversa, se un giocatore si trova di fronte ad una combinazione in cui $s_{i}$ ed $m_{i}$ non sono entrambi pari, muovendo come indicato precedentemente riesce a riproporre una configurazione in cui $s_{i+1}$ ed $m_{i+1}$ sono entrambi pari.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33730, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSi consideri il piano tassellato con triangoli equilateri, e sia $F_{0}$ uno qualsiasi di essi. Si costruisce una sequenza di figure sempre più grandi in questo modo: $F_{1}$ è il poligono che si ottiene aggiungendo ad $F_{0}$ la cornice formata da tutti i triangoli della tassellazione che toccano $F_{0}$ (per un lato o per un vertice), $F_{2}$ è il poligono che si ottiene aggiungendo ad $F_{1}$ la cornice formata dai triangoli che toccano $F_{1}$, e analogamente si costruiscono i successivi sino ad $F_{10}$. Da quanti triangoli della tassellazione è composto quest'ultimo poligono?\n(A) 541\n(B) 661\n(C) 691\n(D) 721\n(E) 841 .", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è (B). Per $n \\geq 1$ la figura $F_{n}$ è un esagono avente tre lati lunghi e tre lati corti, alternati fra loro. Ciascuno di quelli lunghi è composto da $n+1$ lati di triangoli, mentre ciascuno di quelli corti è composto da $n$ lati di triangoli. Detto $x_{n}$ il numero dei triangoli della tassellazione che compongono $F_{n}$, calcoliamo l'analogo numero $x_{n+1}$ contando i triangoli della cornice che viene aggiunta a $F_{n}$ per ottenere $F_{n+1}$. Questo conteggio fornisce $x_{n+1}-x_{n}$. Possiamo costruire la cornice in tre stadi: nel primo aggiungiamo un triangolo per ciascuno dei lati dei triangoli che compongono i lati dell'esagono $F_{n}$, dunque complessivamente $3(2 n+1)$ triangoli; nel secondo stadio aggiungiamo i triangoli che vanno intercalati fra quelli del primo stadio, $n$ su ogni lato lungo e $n-1$ su ogni lato corto, dunque complessivamente $3(2 n-1)$; infine, nel terzo stadio aggiungiamo due triangoli per ogni vertice di $F_{n}$, cioè 12 triangoli. Il totale vale\n$$\nx_{n+1}-x_{n}=3(2 n+1)+3(2 n-1)+12=12 n+12 \\quad \\text{cioè} \\quad x_{n+1}-x_{n}=12(n+1)\\text{.}\n$$\nScriviamo ora $x_{1}=1+12$ (frutto di un facile conteggio diretto) e la formula precedente per $n=1, \\ldots, 9$ (cioè $x_{2}-x_{1}=12 \\cdot 2, \\ldots x_{10}-x_{9}=12 \\cdot 10$ ), sommiamo tutto membro a membro e semplifichiamo il primo membro. Resta scritto che $x_{10}=1+12+12 \\cdot 2+12 \\cdot 3+\\cdots+12 \\cdot 10$. Dunque\n$$\nx_{10}=1+12(1+2+3+\\cdots+10)=1+12 \\cdot \\frac{10 \\cdot 11}{2}=661 .\n$$\n\n\nSeCOnda Soluzione\n\nLa figura $F_{n}$ è un triangolo equilatero di lato $3 n+1$ a cui sono stati tolti 3 triangoli equilateri di lato $n$ appoggiati sui vertici. Quindi $F_{n}$ è composto da $(3 n+1)^{2}-3 n^{2}=6 n^{2}+6 n+1$ triangolini di lato 1 .", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33731, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDue circonferenze con lo stesso raggio si intersecano in $X$ e $Y$. Sia $P$ un punto su un arco $XY$ di una circonferenza interno all'altra. Sapendo che il segmento $XY$ è lungo $3$ e che l'angolo $X\\widehat{P}Y$ misura $120^\\circ$, qual è l'area dell'intersezione tra i due cerchi?\n\n(A) $2\\left(\\pi-\\frac{1}{4} \\sqrt{3}\\right)$\n(B) $3(\\pi-\\sqrt{3})$\n(C) $\\frac{1}{2}(3 \\pi-\\sqrt{3})$\n(D) $2\\left(\\pi-\\frac{2}{3} \\sqrt{3}\\right)$\n(E) $2\\left(\\pi-\\frac{3}{4} \\sqrt{3}\\right)$.", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è (E). L'intersezione delle due circonferenze è divisa da $XY$ in due figure congruenti, delimitate dagli archi $XY$, quindi per ottenere il risultato basta calcolare l'area di una di queste due figure e moltiplicare per due. Sia $O$ il centro della circonferenza su cui giace $P$; per le proprietà degli angoli al centro e alla circonferenza, $X\\widehat{O}Y = X\\widehat{P}Y = 120^\\circ$. Quindi il triangolo $XOY$ è isoscele con gli angoli alla base di $30^\\circ$ e dunque $OX = OY = \\frac{2}{\\sqrt{3}} \\cdot \\frac{XY}{2} = \\sqrt{3}$. L'area delimitata dal segmento $XY$ e dall'arco su cui giace $P$ può essere calcolata per differenza\n\n![](attached_image_1.png)\n\ncome l'area del settore circolare $XOY$ meno l'area del triangolo $XOY$.\nEssendo l'angolo in $O$ di $120^\\circ$, l'area del settore circolare è $\\frac{120^\\circ}{360^\\circ} \\pi OX^2 = \\pi$; nel triangolo $XOY$ l'altezza rispetto a $XY$ è $\\frac{XO}{2}$ e dunque la sua area è $\\frac{3 \\sqrt{3}}{4}$. Dunque l'area richiesta è $2\\left(\\pi-\\frac{3 \\sqrt{3}}{4}\\right)$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33732, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABC$ un triangolo e sia $A'$ il simmetrico di $A$ rispetto a $BC$; sia poi $DAA'$ simile ad $ABC$ e sia $D'$ il simmetrico di $D$ rispetto a $AA'$. Sapendo che il prodotto delle aree dei quadrilateri $ABA'C$ e $ADA'D'$ è $16$, si può dire che $AA'$ ...\n\n(A) è $1$\n(B) è $2 \\sqrt[4]{2}$\n(C) è $2$\n(D) è $2 \\sqrt{2}$\n(E) non è univocamente determinato dai dati. (Nota: la similitudine tra $DAA'$ e $ABC$ va intesa in modo ordinato: $DA/AB = AA'/BC = A'D/CA$ )", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). Sia $H$ il piede dell'altezza da $A$ su $BC$, sia $K$ il piede dell'altezza da $D$ su $AA'$; il prodotto tra le aree dei quadrilateri indicati è $(AH \\cdot BC)(DK \\cdot AA') = 16$. Abbiamo le seguenti uguaglianze: $AA' = 2AH$ per costruzione e $AA' \\cdot AH = BC \\cdot DK$ per similitudine tra $ABC$ e $DAA'$. Sostituendo la seconda nel prodotto si ha $AH \\cdot AA' \\cdot AH \\cdot AA' = 16$, ovvero (sfruttando la prima uguaglianza) $AA'^4 = 4 \\cdot 16 = 64$, da cui $AA' = 2\\sqrt{2}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33733, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nQuanti simboli di radice quadrata, come minimo, devono comparire nell'espressione $\\sqrt{\\cdots \\sqrt{\\sqrt{123.456 .789}}}$ affinché il risultato sia minore di $2$?\n\n(A) 5\n(B) 6\n(C) 7\n(D) 8\n(E) 9.", "options": [], "answer": "A", "solution": "Solution:\n\nLa risposta è (A). Dato che, per numeri positivi o nulli, $\\sqrt{a}10^{3}$, si trova che $2^{2^{5}}=2^{32}>10^{9}=1.000.000.000>123.456.789$. Si osserva inoltre che 4 estrazioni di radice non bastano, in quanto $2^{16}=65536$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33734, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn un triangolo isoscele $ABC$ con $AC = BC \\neq AB$, si fissi un punto $P$ sulla base $AB$. Quante posizioni può assumere nel piano un punto $Q$ se vogliamo che i punti $A, P$ e $Q$, presi in ordine qualsiasi, siano i vertici di un triangolo simile ad $ABC$?\n\n(A) 0\n(B) 2\n(C) 3\n(D) 4\n(E) 6.", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è $\\mathbf{(E)}$. Il triangolo $APQ$ può essere costruito in modo tale che $AQ = QP$, oppure in modo tale che $AP = QP$, oppure in modo tale che $AQ = AP$. Per ciascuna di queste 3 possibilità, ci sono due scelte per la collocazione del punto $P$ in posizioni simmetriche rispetto alla retta per $A$ e per $B$ (alla quale deve necessariamente appartenere un lato). In totale avremo quindi $3 \\times 2 = 6$ posizioni possibili per il punto $P$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33735, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia dato nel piano un esagono regolare. Per ogni punto $P$ del piano, chiamiamo $l(P)$ la somma delle sei distanze tra $P$ e le rette su cui giacciono i lati dell'esagono, e $v(P)$ la somma delle sei distanze di $P$ dai vertici dell'esagono.\n\na. Per quali punti $P$ del piano $l(P)$ è minima?\n\nb. Per quali punti $P$ del piano $v(P)$ è minima?", "options": [], "answer": "a. All points inside the hexagon or on its boundary. b. Only the center of the hexagon.", "solution": "Solution:\n\n(a) I punti $P$ per cui $l(P)$ è minima sono i punti interni all'esagono e quelli sul suo bordo. Chiamiamo $A B C D E F$ l'esagono, e $a$ la lunghezza del suo lato e consideriamo la somma delle distanze tra $P$ e i due lati opposti $A B$ e $D E$. Se $H$ e $K$ sono i piedi delle perpendicolari da $P$ alle rette $A B$ e $D E$ rispettivamente, allora, per definizione, $P H$ e $P K$ sono le distanze di $P$ dalle rette $A B$ e $D E$. $P, H$ e $K$ sono allineati, perché $P H$ e $P K$ sono entrambi perpendicolari alle due rette, ed $H K$ è uguale alla distanza tra le due rette, cioè a $\\sqrt{3} a$.\n\nSe $P$ è interno al segmento $H K$ (vertici inclusi) si ha $H P+P K=H K=\\sqrt{3} a$. Se invece è esterno, allora il più lungo dei due segmenti $P H$ e $P K$ contiene al suo interno tutto il segmento $H K$, quindi in particolare $P H+P K>H K>\\sqrt{3} a$. È evidente che il primo caso si presenta quando $P$ è interno alla striscia formata tra le due rette $A B$ e $D E$ (bordo incluso), mentre il secondo quando $P$ è esterno a tale striscia. In conclusione,\n$$\n\\operatorname{dist}(P, A B)+\\operatorname{dist}(P, D E)=P H+P K \\geqslant \\sqrt{3} a\n$$\ne l'uguaglianza vale se e solo se $P$ è interno della striscia (bordo incluso). Ripetendo il ragionamento sulle altre due coppie di lati opposti, abbiamo\n$$\n\\begin{aligned}\n& \\operatorname{dist}(P, A B)+\\operatorname{dist}(P, D E) \\geqslant \\sqrt{3} a, \\\\\n& \\operatorname{dist}(P, B C)+\\operatorname{dist}(P, E F) \\geqslant \\sqrt{3} a, \\\\\n& \\operatorname{dist}(P, C D)+\\operatorname{dist}(P, F A) \\geqslant \\sqrt{3} a,\n\\end{aligned}\n$$\ne le uguaglianze valgono rispettivamente se $P$ è interno alle tre strisce determinate dalle coppie di rette parallele $\\{A B, D E\\},\\{B C, E F\\}$, $\\{C D, F A\\}$ (bordi inclusi).\n\nSommando le tre relazioni trovate, otteniamo\n![](attached_image_1.png)\n$$\n\\operatorname{dist}(P, A B)+\\operatorname{dist}(P, B C)+\\operatorname{dist}(P, C D)+\\operatorname{dist}(P, D E)+\\operatorname{dist}(P, E F)+\\operatorname{dist}(P, F A) \\geqslant 3 \\sqrt{3} a .\n$$\nL'uguaglianza vale quando $P$ è nell'intersezione delle tre strisce formate dalle coppie di lati opposti dell'esagono, cioè quando $P$ è all'interno all'esagono o sul suo bordo.\n\n(b) L'unico punto per cui $v(P)$ è minima è il centro dell'esagono.\n\nPer dimostrarlo, consideriamo le somme delle distanze di $P$ dalle coppie di vertici opposti $\\{A, D\\},\\{B, E\\}$, $\\{C, F\\}$ ). Per la disuguaglianza triangolare, $A D \\leqslant A P+P D$, e l'uguaglianza vale se e solo se $P$ è sul segmento $A D$. Analogamente, $B E \\leqslant B P+P E$, con l'uguaglianza solo se $P$ sta sul segmento $B E$, e $C F \\leqslant C P+P F$, con l'uguaglianza solo se $P$ sta sul segmento $C F$. Sommando le tre relazioni otteniamo\n$$\n\\begin{aligned}\nv & =P A+P B+P C+P D+P E+P F \\\\\n& =(A P+P D)+(B P+P E)+(C P+P F) \\leqslant A D+B E+C F=6 a\n\\end{aligned}\n$$\ne l'uguaglianza vale se e solo se valgono contemporaneamente le condizioni di uguaglianza delle tre relazioni che abbiamo sommato, cioè se $P$ sta contemporaneamente sui segmenti $A D, B E$ e $C F$. Ł̀ evidente che l'unico punto che soddisfa questa condizione è il centro dell'esagono.\n\n![](attached_image_2.png)", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33736, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn triangolo equilatero ha lo stesso perimetro di un rettangolo di dimensioni $b$ ed $h$ (con $b > h$). L'area del triangolo è $\\sqrt{3}$ volte l'area del rettangolo. Quanto vale $\\frac{b}{h}$?\n\n(A) $\\sqrt{3}$\n(B) 2\n(C) $\\frac{3+\\sqrt{3}}{2}$\n(D) $\\frac{3+\\sqrt{5}}{2}$\n(E) $\\frac{7+3 \\sqrt{5}}{2}$.", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è $\\mathbf{(E)}$. Detto $a$ il lato del triangolo equilatero, si hanno le relazioni $3a = 2(b + h)$, $\\frac{a^{2} \\sqrt{3}}{4} = \\sqrt{3} b h$, da cui\n$$\n\\left\\{\n\\begin{array}{l}\nb + h = \\frac{3a}{2} \\\\\nbh = \\frac{a^{2}}{4}\n\\end{array}\n\\right.\n$$\nL'equazione risolvente del sistema simmetrico nelle incognite $b$ e $h$ è $t^{2} - \\frac{3a}{2} t + \\frac{a^{2}}{4}$, dove $t$ è una qualunque delle incognite. Si ha quindi $4 t^{2} - 6a t + a^{2} = 0$, da cui\n$$\nt = \\frac{3 \\pm \\sqrt{9-4}}{4} a\n$$\nda cui\n$$\n\\frac{b}{h} = \\frac{3 + \\sqrt{5}}{3 - \\sqrt{5}}\n$$\nRazionalizzando, si ottiene\n$$\n\\frac{b}{h} = \\frac{7 + 3 \\sqrt{5}}{2}\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33737, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nOgni anno un gran numero di studenti partecipa alle Olimpiadi Internazionali di Matematica. Un dodicesimo di essi vince una medaglia d'oro, un altro sesto vince una medaglia d'argento, un ulteriore quarto vince una medaglia di bronzo e la restante metà vince una stretta di mano. Se incontriamo un gruppo di sei partecipanti scelti a caso, qual è la probabilità che esso sia composto da due medaglie d'oro, due medaglie d'argento e due vincitori di strette di mano?\n(A) Circa il $40 \\%$\n(E) Circa lo $0,004 \\%$.\n(B) Circa il $4 \\%$\n(C) Circa lo $0,4 \\%$\n(D) Circa lo $0,04 \\%$", "options": [], "answer": "(C)", "solution": "Solution:\n\nLa risposta è $\\mathbf{( C )}$. Contiamo innanzitutto il numero di modi in cui si possono suddividere 6 studenti in modo che due di essi abbiano vinto la medaglia d'oro, due la medaglia d'argento e due non abbiano vinto alcuna medaglia. I due che hanno vinto la medaglia d'oro possono essere scelti in $\\binom{6}{2} = 15$ modi; scelti questi, i due che hanno vinto la medaglia d'argento possono essere scelti in $\\binom{4}{2} = 6$ modi; scelti questi ultimi, i due che non hanno vinto alcuna medaglia risultano determinati. Pertanto il numero di modi in cui si possono suddividere gli studenti è $15 \\times 6 = 90$.\n\nPer simmetria, possiamo contare solo la probabilità che i primi due studenti abbiano vinto la medaglia d'oro, i secondi due quella d'argento e gli ultimi due nessuna medaglia. La probabilità che il primo studente abbia vinto la medaglia d'oro è $\\frac{1}{12}$; dato che il numero totale degli studenti è per ipotesi elevato, la probabilità che il secondo studente abbia vinto la medaglia d'oro è $\\approx \\frac{1}{12}$ (in realtà, sapendo che il primo studente ha vinto la medaglia d'oro, la probabilità risulta leggermente inferiore, e precisamente, se $N$ è il numero complessivo degli studenti, risulta uguale a $\\left(\\frac{1}{12} N-1\\right) / N$). Analogamente, possiamo approssimare le probabilità del terzo e del quarto studente di aver vinto la medaglia d'argento con $\\frac{1}{6}$ e quella del quinto e del sesto di non aver vinto alcuna medaglia con $\\frac{1}{2}$. La probabilità cercata è quindi approssimativamente uguale a\n$$\n90 \\cdot \\left(\\frac{1}{12} \\cdot \\frac{1}{6} \\cdot \\frac{1}{2}\\right)^2 = \\frac{5}{1152} \\approx 0.4 \\%\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33738, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nConsideriamo un qualsiasi insieme di 20 numeri interi consecutivi, tutti maggiori di 50. Quanti di essi al massimo possono essere numeri primi?\n(A) 4\n(B) 5\n(C) 6\n(D) 7\n(E) 8 .", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è $\\mathbf{(C)}$. Possiamo innanzitutto escludere dai possibili numeri primi tutti i numeri pari, e quindi considerare solo insiemi di 10 numeri dispari consecutivi maggiori di 50. Tra essi, almeno tre sono multipli di 3 ed esattamente due sono multipli di 5. I due numeri multipli di 5 differiscono di 10, quindi al massimo uno di essi è multiplo anche di 3. Ne segue che ci sono almeno $3+2-1=4$ numeri dispari che sono multipli o di 3 o di 5, e quindi non sono primi. Il totale dei numeri primi possibili è quindi minore o uguale a 6.\n\nIl numero cercato è però esattamente uguale a 6, come dimostra l'esempio dei 6 numeri primi $97, 101, 103, 107, 109, 113$ compresi nell'intervallo $\\{96, \\ldots, 115\\}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33739, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $p(x)=x^{20}+a_{19} x^{19}+a_{18} x^{18}+\\ldots+a_{1} x+a_{0}$ un polinomio, con gli $a_{i}$ interi. Sappiamo che, per tutti gli interi $k$ compresi tra 1 e 20, $p(k)=2 k$. Quali sono le ultime 3 cifre di $p(21)$ ?", "options": [], "answer": "042", "solution": "Solution:\n\nLa risposta è 042 . Sia $q(x)=p(x)-2 x$. Poiché $p(k)=2 k$ per $k=1, \\ldots, 20$, allora anche $q(k)=0$ per $k=1, \\ldots, 20$. In base al teorema di Ruffini, questo equivale a dire che il polinomio $q(x)$ è divisibile per $x-1, x-2, \\ldots, x-20$. Ma allora è divisibile anche per il loro prodotto, e quindi vale\n$$\nq(x)=(x-1)(x-2) \\cdots(x-20) r(x)\n$$\nper un qualche polinomio $r(x)$. Se $r(x)$ avesse grado 1 o superiore, $q(x)$ e quindi anche $p(x)=q(x)+2 x$ verrebbero ad avere grado superiore a 20, che è in contrasto con l'ipotesi. Allora $r(x)$ è costante, diciamo $r(x)=\\alpha$. Svolgendo il prodotto nell'equazione (2) allora otteniamo che il termine di grado massimo (cioè 20) di $q(x)$, e quindi di $p(x)$, ha coefficiente $\\alpha$; quindi dev'essere $r(x)=\\alpha=1$. Abbiamo dunque dimostrato che\n$$\nq(x)=(x-1)(x-2) \\cdots(x-20) .\n$$\nDa quest'uguaglianza segue che\n$$\np(x)=(x-1)(x-2) \\cdots(x-20)+2 x\n$$\ne quindi, valutando il polinomio in $x=21$, otteniamo\n$$\np(21)=20 \\cdot 19 \\cdots 1+2 \\cdot 21=20 !+42\n$$\nIl termine 20! è multiplo di 1000 (si può verificare facilmente che contiene abbastanza fattori 2 e 5); più precisamnente, 20! termina esattamente con 4 zeri (ci sono solo 4 fattori uguali a 5). Quindi le ultime tre cifre di $p(21)$ sono 042.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33740, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSe $a$ è un intero positivo minore di $100$, per quanti valori di $a$ il sistema\n$$\n\\begin{cases}\nx^{2} = y + a \\\\\ny^{2} = x + a\n\\end{cases}\n$$\nha soluzioni intere?", "options": [], "answer": "19", "solution": "Solution:\n\nLa risposta è $19$. Sottraendo membro a membro le due equazioni si ha $x^{2} - y^{2} = y - x$, ovvero $(x - y)(x + y + 1) = 0$.\n\nSupponiamo che ad annullarsi sia il primo fattore, cioè che $y = x$: sostituendo, $x$ deve soddisfare l'equazione $x^{2} - x - a = 0$. Quindi $a$ deve essere tale che\n$$\nx = \\frac{1 \\pm \\sqrt{1 + 4a}}{2} \\text{ sia intero. }\n$$\nQuesto accade se e solo se $a$ è tale che $1 + 4a$ sia il quadrato di un numero dispari. In altre parole, $a$ deve essere tale che esista un $n \\in \\mathbb{N}$ tale che $1 + 4a = (2n + 1)^{2}$, ovvero tale che $a = n(n + 1)$. Poiché $0 < a < 100$, i valori accettabili di $n$ sono quelli da $1$ a $9$ inclusi.\n\nSupponiamo ora che ad annullarsi sia il secondo fattore. Procedendo in modo analogo al caso precedente, $y = -x - 1$; sostituendo, $x$ deve soddisfare l'equazione $x^{2} + x + (1 - a) = 0$. $a$ deve essere tale che\n$$\nx = \\frac{-1 \\pm \\sqrt{1 + 4(a - 1)}}{2} \\text{ sia intero. }\n$$\nAncora una volta $1 + 4(a - 1)$ deve essere il quadrato di un intero dispari, cioè $1 + 4(a - 1) = (2n + 1)^{2}$, ovvero $a = n(n + 1) + 1$. I valori accettabili di $n$ sono quelli da $0$ a $9$ inclusi e forniscono tutti valori di $a$ distinti da quelli del caso precedente.\n\nRiassumendo si hanno $9$ valori di $a$ dal primo caso e $10$ dal secondo per un totale di $19$ valori interi di $a$ per cui il sistema ha soluzioni intere.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33741, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLorenza si trova su una pista avente la forma di un poligono regolare con 2007 lati, i cui vertici sono numerati da 1 a 2007 in senso antiorario. Lorenza, partendo dal vertice 6, salta ogni volta 4 vertici e cade sul quinto più avanti (ad esempio, dal 20 salta al 25), ma salta indietro di 2 vertici quando cade su un vertice identificato da una potenza di 2 (ad esempio, dopo un eventuale salto dal 27 al 32, deve saltare indietro al 30). Dopo quanti salti Lorenza avrà oltrepassato per la prima volta il vertice 1?", "options": [], "answer": "405", "solution": "Solution:\n\nLa risposta è 405. Lorenza parte dal vertice 6; già dopo 2 salti arriva sul vertice $16=2^{4}$, perciò torna al 14. Lorenza a questo punto salterà alternativamente su un vertice dispari (che non può essere potenza di 2) e su uno pari; in particolare tra un vertice pari e il successivo impiegherà due salti, corrispondenti ad un incremento di 10. Quindi la prossima potenza di 2 deve terminare con la cifra 4 come il 14; sarà dunque il 64 e Lorenza impiegherà 10 salti per raggiungerla. Partendo ora dal 62, la più piccola potenza di due maggiore di 62 e con ultima cifra il 2 è il 512, e per raggiungerla Lorenza dovrà compiere $\\frac{512-62}{5}=90$ salti. Dal 510, Lorenza non incontrerà più ostacoli. Infatti, nessuna potenza di 2 maggiore termina con lo 0 (come il 510); Lorenza impiegherà allora 300 salti per arrivare al vertice 2010, cioè il 3, e quindi per superare per la prima volta il vertice 1. Quindi in totale Lorenza avrà saltato $2+10+90+300=402$ volte in avanti e 3 volte all'indietro, per un totale di 405 salti.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33742, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUna pulce si muove saltando avanti e indietro lungo una retta. La tana della pulce è un punto della retta. Le regole di salto sono le seguenti:\n- se la pulce si trova ad una distanza minore o uguale a un metro dalla tana, dopo il salto successivo si troverà ad una distanza doppia della precedente allontanandosi ancora di più dalla tana.\n- se la pulce si trova ad una distanza $d$ maggiore di un metro dalla tana, dopo il salto successivo si troverà ad una distanza $\\frac{1}{d}$ dalla tana ma dalla parte opposta rispetto a quella dove si trova attualmente.\nSe dopo 5 salti la pulce si trova a $80~\\mathrm{cm}$ dalla tana in una certa direzione, con quante sequenze distinte di salti può aver raggiunto quella posizione?", "options": [], "answer": "6", "solution": "Solution:\n\nLa risposta è 6. Osserviamo innanzitutto che, indipendentemente dalla posizione iniziale, dopo il primo salto la pulce si troverà ad una distanza minore o uguale a 2 metri dalla tana e con i salti successivi non potrà raggiungere posizioni a più di due metri dalla tana.\n\nSi osservi poi che in base alle regole di salto, un punto a distanza $x$ minore di $1/2$ metro o maggiore o uguale a un metro dalla tana può essere raggiunto con un salto solo a partire dal punto a distanza $x/2$ dalla tana.\n\nLe posizioni che distano $1/2 \\leq |x| < 1$ dalla tana possono essere invece raggiunte sia a partire da $x/2$ che a partire da $-1/x$. Ripercorrendo a ritroso l'itinerario percorso dalla pulce queste saranno posizioni da cui partono 2 possibili traiettorie a ritroso.\n\nCerchiamo di stabilire in quali posizioni si poteva trovare la pulce dopo il primo salto: la posizione finale della pulce è a $4/5$ metri dalla tana. Questo è un punto di diramazione: la posizione finale è raggiungibile a partire sia da $2/5~\\mathrm{m}$ che a partire da $-5/4~\\mathrm{m}$.\n\nNel primo caso, $2/5 < 1/2$ e quindi può essere raggiunto solo con la sequenza $1/20, 1/10, 1/5, 2/5$. In $-5/4$ si giunge solo a partire da $-5/8$ che però è un punto di diramazione: può essere raggiunto proveniendo da $-5/32, -5/16$ oppure proveniendo da $4/5, 8/5$.\n\nRiassumendo, ci sono tre possibili posizioni dopo il primo salto (e quindi 3 possibili sequenza di salti) che permettono di raggiungere $4/5$ :\n$$\n\\frac{4}{5}, \\frac{8}{5}, -\\frac{5}{8}, -\\frac{5}{4}, \\frac{4}{5} ; \\quad \\frac{1}{20}, \\frac{1}{10}, \\frac{1}{5}, \\frac{2}{5}, \\frac{4}{5} ; \\quad -\\frac{5}{32}, -\\frac{5}{16}, -\\frac{5}{8}, -\\frac{5}{4}, \\frac{4}{5} .\n$$\nLa posizione iniziale della pulce non è soggetta ad alcun vincolo, in particolare non è detto che sia una posizione raggiungibile con un salto. Questo significa che ciascuna delle tre posizioni dopo un salto è raggiungibile a partire da situazioni iniziali, cioè, rispettivamente, proveniendo da\n$$\n\\frac{2}{5} \\text{ e } -\\frac{5}{4} ; \\quad \\frac{1}{40} \\text{ e } -20 ; \\quad -\\frac{5}{64} \\text{ e } \\frac{32}{5}\n$$\nLe sequenze possibili sono dunque 6. Quanto descritto è riassunto nella figura alla pagina seguente.\n\n![](attached_image_1.png)", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33743, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn intero positivo si dice triangolare se si può scrivere nella forma $\\frac{n(n+1)}{2}$ per qualche intero positivo $n$. Quante sono le coppie $(a, b)$ di numeri triangolari tali che $b-a=2007$? (Si ricorda che 223 è un numero primo).", "options": [], "answer": "6", "solution": "Solution:\n\nCi sono 6 coppie di numeri triangolari che soddisfano la condizione richiesta. Il problema è equivalente a trovare le coppie di interi positivi $(n, m)$ tali che\n$$\n\\frac{n(n+1)}{2}-\\frac{m(m+1)}{2}=2007.\n$$\nDifatti, poiché valori diversi di $n$ determinano valori diversi di $\\frac{n(n+1)}{2}$, determinare i numeri triangolari $a$ e $b$ equivale a determinare i valori di $n$ e $m$ che li generano.\nTogliendo i denominatori e fattorizzando, l'equazione diventa\n$$\n(n-m)(n+m+1)=2 \\cdot 2007=2 \\cdot 3^{2} \\cdot 223.\n$$\nPoiché $n>0, m>0$ e quindi $n+m+1>0$, anche $n-m$ deve essere positivo. L'equazione allora rappresenta un modo di scrivere $2 \\cdot 2007$ come prodotto di due interi positivi. Ma gli unici modi di spezzare $2 \\cdot 3^{2} \\cdot 223$ come prodotto di due interi positivi si ottengono \"distribuendo\" in tutti i modi possibili i suoi fattori primi tra i due interi, cioè esplicitamente\n- 1 e $2 \\cdot 3 \\cdot 3 \\cdot 223$;\n- 2 e $3 \\cdot 3 \\cdot 223$;\n- 3 e $2 \\cdot 3 \\cdot 223$;\n- $2 \\cdot 3$ e $3 \\cdot 223$;\n- $3 \\cdot 3$ e $2 \\cdot 223$;\n- $2 \\cdot 3 \\cdot 3$ e 223\nPoiché $(n+m+1)-(n-m)=2 m+1>0, n-m$ è sempre il più piccolo tra i due fattori della coppia. Detti $u=n+m+1$ e $v=n-m$, dobbiamo allora essere in uno dei seguenti casi:\n- $v=1, u=2 \\cdot 3 \\cdot 3 \\cdot 223$;\n- $v=2, u=3 \\cdot 3 \\cdot 223$;\n- $v=3, u=2 \\cdot 3 \\cdot 223$;\n- $v=2 \\cdot 3, u=3 \\cdot 223$;\n- $v=3 \\cdot 3, u=2 \\cdot 223$;\n- $v=2 \\cdot 3 \\cdot 3, u=223$.\n\nOra risolvendo il sistema\n$$\n\\left\\{\n\\begin{array}{l}\nn+m+1=u \\\\\nn-m=v\n\\end{array}\n\\right.\n$$\nnelle incognite $n$ e $m$ otteniamo\n$$\n\\left\\{\n\\begin{array}{l}\nn=\\frac{u+v-1}{2} \\\\\nm=\\frac{u-v-1}{2}\n\\end{array}\n\\right.\n$$\nSi noti che sostituendo nelle equazioni i sei valori di $(u, v)$ corrispondenti ai sei casi possibili, si trova ogni volta una coppia di valori $(n, m)$ accettabili (cioè interi e positivi: infatti è sempre $u-v>1$, e, poiché $2 \\cdot 2007$ ha un solo fattore 2, in tutti i casi esattamente uno tra $u$ e $v$ è pari, e quindi $u+v-1$ e $u-v-1$ sono sempre pari). Per tutte e sei queste coppie, per come sono state ottenute, vale $(n+m+1)(n-m)=2 \\cdot 2007$, e quindi tutte sono soluzioni dell'equazione originaria. Inoltre i sei casi presentati esauriscono tutte le possibilità, quindi non vi sono altre soluzioni. Esplicitamente le soluzioni sono:\n- $n=2007, m=2006$;\n- $n=1004, m=1002$;\n- $n=670, m=667$;\n- $n=337, m=331$;\n- $n=227, m=218$;\n- $n=120, m=102$\n(si noti tuttavia che l'esercizio non richiede di determinare esplicitamente le soluzioni, ma solo di dire quante sono).", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33744, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nÈ data una circonferenza di diametro $A B$ e centro $O$. Sia $C$ un punto sulla circonferenza (diverso da $A$ e da $B$), e si tracci la retta $r$ parallela ad $A C$ per $O$. Sia $D$ l'intersezione di $r$ con la circonferenza dalla parte opposta di $C$ rispetto ad $A B$.\n\ni) Dimostrare che $D O$ è bisettrice di $C \\widehat\\{D\\} B$.\n\nii) Dimostrare che il triangolo $C D B$ è simile al triangolo $A O D$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nAbbiamo $A \\widehat\\{C\\} D = C \\widehat\\{D\\} O$, perché alterni interni rispetto alle parallele $A C$ e $D O$; inoltre $A \\widehat\\{C\\} D = A \\widehat\\{B\\} D$, dato che insistono sullo stesso arco di circonferenza. Il triangolo $D O B$ è formato da due raggi, e quindi isoscele; da ciò si ricava la congruenza dei suoi angoli alla base $O \\widehat\\{D\\} B$ e $O \\widehat\\{B\\} D$. Perciò, riassumendo, $C \\widehat\\{D\\} O = A \\widehat\\{C\\} D = A \\widehat\\{B\\} D = O \\widehat\\{D\\} B$: $D O$ è la bisettrice di $C \\widehat\\{D\\} B$.\n\n$D \\widehat\\{C\\} B = D \\widehat\\{A\\} B$, poiché insistono sullo stesso arco. Inoltre $A \\widehat\\{O\\} D = 2 A \\widehat\\{B\\} D$ (angolo al centro e angolo alla circonferenza che insistono sullo stesso arco), e quindi $A \\widehat\\{O\\} D = C \\widehat\\{D\\} B$. Ma allora i triangoli $A O D$ e $C D B$ sono simili per il primo criterio di similitudine (tre angoli congruenti).\n\nAlternativamente, una volta mostrata la congruenza di uno dei due angoli suddetti, si può procedere come segue. $D O$ è sia bisettrice che altezza del triangolo $C D B$ ($D O$ è parallela ad $A C$ e $A C$ è perpendicolare a $C B$, poiché $A \\widehat\\{C\\} B$ insiste su un diametro). Perciò il triangolo $C D B$ è isoscele su base $B C$; ma anche il triangolo $A D O$ è isoscele, avendo per lati due raggi. Da qui segue che i due triangoli sono simili per il secondo criterio di similitudine.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33745, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn mercante ha 6 barili di capacità 15, 16, 18, 19, 20 e 31 litri. Cinque di essi sono pieni di vino e solo uno di essi è pieno di birra. Il mercante tiene per sé il barile di birra e vende tutti i barili di vino a due persone diverse, senza frazionarne il contenuto. Se uno dei due acquirenti ha comprato una quantità di vino esattamente doppia di quella acquistata dall'altro, quanti litri contiene il barile di birra?\n(A) 16\n(B) 18\n(C) 19\n(D) 20\n(E) 31 .", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). La somma delle capienze in litri di tutti i barili è $119$, numero che diviso per $3$ dà resto $2$. Poiché la somma dei litri di vino venduti deve essere multipla di $3$, occorre togliere dalla lista delle capacità l'unico valore che diviso per $3$ dà resto $2$, cioè $20$. Si verifica poi che i barili restanti possono effettivamente essere divisi come $15+18=33$ e $16+19+31=66$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33746, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLa rappresentazione in base 2 di un numero $a$ è $1110000100111010101110100001$. Qual è la settima cifra da sinistra della rappresentazione di $a$ in base 8?\n(A) 2\n(B) 3\n(C) 4\n(D) 5\n(E) 6.", "options": [], "answer": "D", "solution": "Solution:\nLa risposta è (D). Sia lo sviluppo in base 2 di un generico intero $a$\n$$\n\\ldots + 2^{8} a_{8} + 2^{7} a_{7} + 2^{6} a_{6} + 2^{5} a_{5} + 2^{4} a_{4} + 2^{3} a_{3} + 2^{2} a_{2} + 2^{1} a_{1} + a_{0}\n$$\nallora, se raggruppiamo i termini a tre a tre a partire da destra raccogliendo un'opportuna potenza di 8 otteniamo\n$$\n\\ldots + 8^{2} (4 a_{8} + 2 a_{7} + a_{6}) + 8 (4 a_{5} + 2 a_{4} + a_{3}) + (4 a_{2} + 2 a_{1} + a_{0}) .\n$$\nPoiché i termini tra parentesi sono sempre compresi tra 0 e 7, quella ottenuta è l'espressione in base 8 del numero $a$. Osservando come vengono raccolte le cifre, è semplice concludere che, dette $b_{k}$ le cifre dell'espansione in base 8 del numero, vale\n$$\nb_{k} = 4 a_{3k+2} + 2 a_{3k+1} + a_{3k} .\n$$\nPer il numero in esame, operativamente, basta raccogliere le cifre a gruppi di tre a partire dall'ultima a destra, e leggere (in base 2) il settimo gruppo di cifre a partire da sinistra (si noti che il primo gruppo è composto dalla sola cifra 1):\n$$\n1|110|000|100|111|010|101|110|100|001 .\n$$\nLa settima cifra così è $101_{2} = 5$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33747, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUno studente universitario ha superato un certo numero di esami, riportando la media di 23. Dopo aver superato un altro esame, la sua media scende a 22,25. Sapendo che il voto di ciascun esame è un numero intero compreso fra 18 e 30 inclusi, che voto ha riportato lo studente all'ultimo esame?\n\n(A) 18\n(B) 19\n(C) 20\n(D) 21\n(E) 22.", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è (C). Sia $n$ il numero degli esami superati dallo studente con la media di 23. Siano poi $S$ la somma dei voti riportati dallo studente prima dell'ultimo esame e $x$ il voto riportato nell'ultimo esame. Abbiamo:\n$$\n\\left\\{\\begin{array}{l}\nS=23 n \\\\\nS+x=22.25(n+1)\n\\end{array}\\right.\n$$\nSottraendo la prima equazione dalla seconda si ottiene $x=22.25-0.75 n$, ossia $4 x=89-3 n$. Ne segue che $89-3 n$ è divisibile per 4. Poichè $x$ è un numero intero maggiore o uguale a 18 e $n>0$, si ha anche $72 \\leq 89-3 n<89$, da cui $n=3$ e $x=20$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33748, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAlberto, per festeggiare il compleanno di Barbara, propone di giocare al seguente gioco: dato l'insieme dei numeri $0, 1, \\ldots, 1024$, Barbara rimuove da questo insieme $2^{9}$ numeri. Al passaggio successivo Alberto rimuove dai rimanenti $2^{8}$ numeri. Tocca nuovamente a Barbara, che dai restanti ne rimuove $2^{7}$, eccetera, fino a che non rimangono solo 2 numeri $a$ e $b$. Alberto a questo punto deve pagare a Barbara $|a-b|$ euro.\n\nDeterminare la massima quantità di euro che Barbara è sicura di poter incassare, indipendentemente dalla strategia adottata da Alberto.", "options": [], "answer": "32", "solution": "Solution:\n\nLa massima somma che Barbara è sicura di incassare è di 32 euro.\n\nAd ogni mossa, Barbara può almeno raddoppiare la minima distanza tra i numeri rimamenti. Infatti, alla prima mossa può rimuovere tutti i numeri dispari, e alle successive, indipendentemente dalle mosse di Alberto, può rimuovere, il $2^{\\circ}$, il $4^{\\circ}$, il $6^{\\circ}$, ... dei numeri rimasti secondo l'ordine crescente. Dopo le sue 5 mosse, la minima distanza fra i numeri rimasti sarà di almeno $2^{5} = 32$.\n\nD'altra parte, Alberto può ad ogni mossa almeno dimezzare la distanza massima fra i numeri rimanenti. Infatti, dopo la prima mossa di Barbara rimarranno $2^{10} + 1 - 2^{9} = 2^{9} + 1$ numeri; di essi, necessariamente o fra quelli minori di $2^{9}$ o fra quelli maggiori di $2^{9}$ non ce ne saranno più di $2^{8}$. Alberto potrà quindi togliere i rimasti, facendo in modo che rimangano solo numeri nell'intervallo $[0, 2^{9}]$ o solo numeri nell'intervallo $[2^{9}, 2^{10}]$.\n\nPrima della mossa successiva di Alberto, saranno già stati rimossi $2^{9} + 2^{8} + 2^{7}$ numeri, e quindi ne rimarranno $2^{7} + 1$, inclusi in un intervallo di lunghezza $2^{9}$. Di conseguenza, o nella prima metà o nella seconda metà dell'intervallo rimasto (escludendo il numero centrale), non ne rimarranno più di $2^{6}$, e quindi Alberto potrà rimuoverli tutti, lasciando solo numeri in un intervallo di lunghezza $2^{8}$.\n\nProseguendo con questa strategia fino alla sua quinta ed ultima mossa, Alberto potrà fare in modo di lasciare solo due numeri in un intervallo di lunghezza $2^{5} = 32$, e quindi con distanza non superiore a 32.\n\nIn conclusione, Barbara è sicura di guadagnare almeno 32 euro, Alberto è sicuro di non dover sborsare più di 32 euro, e quindi 32 euro è la massima somma che Barbara è sicura di incassare.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33749, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $P(x) = x^{3} + a x^{2} + b x + c$. Sapendo che la somma di due delle radici del polinomio vale zero, quale fra le seguenti relazioni tra i coefficienti di $P(x)$ è sempre vera?\n\n(A) $a b c = 0$\n(B) $c = a b$\n(C) $c = a + b$\n(D) $b^{2} = a c$\n(E) nessuna delle risposte precedenti è corretta.", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è (B). Dette $x_{0}$, $x_{1}$ e $-x_{1}$ le radici del polinomio, deve aversi, per ogni $x$, che $(x - x_{0})(x - x_{1})(x + x_{1}) = x^{3} + a x^{2} + b x + c$. Svolgendo i prodotti e uguagliando i coefficienti dei termini dello stesso grado (principio di identità dei polinomi), si ha $-x_{0} = a$, $-x_{1}^{2} = b$, $x_{1}^{2} x_{0} = c$, da cui $a b = c$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33750, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia data la successione\n$$\n\\left\\{\\begin{array}{l}\nx_{1}=2 ; \\\\\nx_{n+1}=2 x_{n}^{2}-1 \\quad \\text{ per } n \\geq 1\n\\end{array}\\right.\n$$\nDimostrare che $n$ e $x_{n}$ sono relativamente primi per ogni $n \\geq 1$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nDimostriamo che, se $p$ è un numero primo che divide $x_{n}$, allora $p$ non divide $n$.\nSe $p=2$, allora la tesi è banalmente vera, in quanto tutti i termini $x_{n}$ sono dispari per $n>1$. Quindi si ha che 2 divide $x_{n}$ se e solo se $n=1$.\nSupponiamo dunque $p>2$. Chiamiamo $k$ il più piccolo intero positivo tale che $p$ divida $x_{k}$. La successione $r_{n}$ dei resti di $x_{n}$ nella divisione per $p$ ammette un numero finito di valori (compresi fra 0 e $p-1$ ), dunque esisteranno due interi $ik+1$, e dunque $x_{k}$ è l'unico termine della successione divisibile per $p$. Poiché $p$ non divide nessuno dei numeri $1,2, \\ldots, p-1$, $p$ non può dividere $k$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33751, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDall'insieme $\\{1,2, \\ldots, 100\\}$ scegliamo 50 numeri distinti, la cui somma è 3000. Come minimo, quanti numeri pari abbiamo scelto?\n\n(A) 2\n(B) 3\n(C) 4\n(D) 5\n(E) 6.", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è (E). La somma di tutti i numeri positivi dispari minori di 100 è 2500. Quindi in ogni sottoinsieme $X$ di $\\{1, \\ldots, 100\\}$ la somma dei cui elementi faccia 3000 il contributo dei numeri pari di $X$ alla somma deve essere uguale ad almeno 500. Cinque numeri pari non sono sufficienti (al massimo uno di essi può essere uguale a 100), mentre sei lo sono (basta prendere i sei numeri pari più grandi). D'altra parte, è facile costruire un insieme $X$ con le proprietà cercate e con esattamente 6 numeri pari: basta prendere, per esempio, tutti i numeri dispari con eccezione dei 6 numeri 1, 3, 5, 7, 9, 45 e tutti i numeri pari 90, 92, 94, 96, 98, 100.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33752, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAgli ultimi campionati del mondo di calcio, il girone A è terminato con la classifica seguente: Austria 7, Brasile 5, Camerun 4, Danimarca 0.\nAustria e Camerun hanno subito una rete ciascuna.\nBrasile e Camerun hanno segnato una sola volta, mentre l'Austria ha fatto tre reti.\nCon che punteggio è terminata Austria-Danimarca?\nNota: Si ricorda che, in ogni partita disputata nel girone, la squadra vincitrice guadagna 3 punti, quella perdente 0 punti; in caso di pareggio ciascuna delle due squadre guadagna 1 punto.\n(A) $1-0$\n(B) $2-1$\n(C) $2-0$\n(D) $0-0$\n(E) non può essere determinata coi soli dati forniti.", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è (B). In un girone di 4 squadre, ciascuna gioca 3 partite, per un totale di 6 incontri complessivi. Poiché la vittoria vale 3 punti, mentre il pareggio uno solo, per avere la classifica finale riportata nel testo è necessario che l'Austria abbia vinto 2 partite e pareggiata una; il Brasile abbia vinto una partita e pareggiate due, il Camerun abbia vinto, pareggiato e perso una volta.\n\nIl Camerun ha segnato una sola rete quindi la sua unica vittoria è stata con punteggio di 1-0 e necessariamente contro la Danimarca che ha perso tutti gli incontri. Il Camerun ha subito una sola rete: avendo perso una partita, ha perso per 0-1. Il pareggio di conseguenza è stato con punteggio di $0-0$.\n\nIl Brasile non ha subito sconfitte quindi ha vinto con la Danimarca e pareggiato con Austria e Camerun. D'altra parte l'Austria ha pareggiato una sola volta (col Brasile). Quindi Austria-Camerun è finita 1-0. Il Brasile ha segnato una sola rete, necessariamente nella partita vinta contro la Danimarca. Di conseguenza Austria-Brasile è finita 0-0.\n\nSappiamo che l'Austria ha segnato tre reti e ne ha subite una. Per differenza il punteggio di Austria-Danimarca è 2-1.\n\nSi osservi che è possibile stabilire il punteggio finale di ciascuna delle sei partite del girone:\n\n| Austria-Brasile | $0-0$ | Austria-Camerun | $1-0$ | Austria-Danimarca | $2-1$ |\n| :--- | :--- | :--- | :--- | :--- | :--- |\n| Brasile-Camerun | $0-0$ | Brasile-Danimarca | $1-0$ | Camerun-Danimarca | $1-0$ |", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33753, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nPriscilla è stata incaricata di preparare la scenografia per la recita della sua scuola. Ha bisogno di una falce di luna, e ha a disposizione un cerchio di cartone di raggio $r$ in cui ritagliarla; allora punta il compasso sul bordo del cerchio, disegna un arco di circonferenza di raggio $r \\sqrt{2}$ e taglia lungo la linea tracciata. Quanto vale l'area della falce di luna che ottiene?\n(A) $r^{2}$\n(B) $\\frac{\\sqrt{2}}{2} \\pi r^{2}$\n(C) $\\frac{1}{3} \\pi r^{2}$\n(D) $\\left(\\frac{\\pi}{4}+\\frac{1}{2}\\right) r^{2}$\n(E) $\\left(\\frac{\\pi}{4}+1\\right) r^{2}$", "options": [], "answer": "A", "solution": "Solution:\n\nLa risposta è $(\\mathbf{A})$. Sia $O$ il centro del cerchio di cartone, $O'$ il punto in cui Priscilla punta il compasso, $A$ e $B$ le intersezioni dell'arco di circonferenza disegnato da Priscilla con il bordo del cerchio. Allora $A O' B$ è un triangolo rettangolo isoscele (lo possiamo giustificare notando che i triangoli $O O' A$ e $O O' B$, poiché hanno i lati lunghi $r, r$ e $\\sqrt{2} r$, sono entrambi rettangoli isosceli). Sia $A_{A O' B}$ l'area del settore circolare $A O' B$, $A_{C}$ quella del cerchio di cartone e $A_{T}$ quella del triangolo $A O' B$. Allora l'area della falce di luna è pari a $A_{C}-A_{A O' B}-\\frac{1}{2} A_{C}+A_{T}$, quindi a $\\pi r^{2}-\\frac{1}{4} \\pi(\\sqrt{2} r)^{2}-\\frac{1}{2} \\pi r^{2}+\\frac{1}{2}(\\sqrt{2} r)^{2}$, cioè esattamente $r^{2}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33754, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAlberto, Barbara, Chiara e Davide mescolano un mazzo di 40 carte e poi ne distribuiscono 10 a testa. Alberto guarda le sue ed esclama: \"Che strano, non ho nessuna carta di picche\". Sapendo questa informazione, qual è la probabilità che anche Barbara non abbia nessuna carta di picche? (nota: le carte di picche sono 10).\n\n(A) $\\frac{30 !}{20 ! 40 !}$\n(B) $\\frac{20 !}{10 ! 30 !}$\n(C) $\\frac{30 ! 30 !}{20 ! 40 !}$\n(D) $\\frac{20 ! 20 !}{10 ! 30 !}$\n(E) $\\frac{30 ! 10 !}{40 !}$", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è $(\\mathbf{D})$. Il punto di partenza è la definizione di probabilità come\n$$\n\\frac{\\text{casi favorevoli}}{\\text{casi possibili}}.\n$$\nIgnoriamo le carte di Alberto; la situazione si semplifica: ora sappiamo che ci sono 30 carte, di cui 10 di picche, e vogliamo determinare la probabilità che tra le 10 di Barbara non ce ne sia alcuna di picche. Supponiamo che le mani dei tre giocatori non siano insiemi di dieci carte ma insiemi ordinati di 10 carte: questo non fa cambiare le probabilità perché equivale a moltiplicare per $10!\\ 10!\\ 10!$ (i possibili riordinamenti delle tre mani) sia il numero di casi favorevoli che quello di casi possibili. Ora, i casi possibili sono evidentemente $30!$ (scegliamo una per volta una carta per occupare uno dei 30 \"posti\" distinti disponibili...). I casi favorevoli si possono contare in questo modo: prima scegliamo una per una le carte di Barbara, sapendo che vanno scelte tra le 20 non di picche, e possiamo farlo in $20 \\cdot 19 \\cdots 11=\\frac{20 !}{10 !}$ modi diversi; poi scegliamo la disposizione delle rimanenti 20 carte, senza più vincoli, in uno dei $20 !$ modi possibili. Le due scelte sono chiaramente indipendenti; quindi i casi favorevoli sono $\\frac{20 ! 20 !}{10 !}$. La probabilità, calcolata in base alla (1), è quindi $\\frac{20 ! 20 !}{10 ! 30 !}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33755, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $A B C D E F G H I L M N$ un dodecagono regolare. Sia $P$ il punto di intersezione delle diagonali $A F$ e $D H$. Sia $S$ la circonferenza passante per $A$ e $H$, congruente a quella circoscritta al dodecagono e distinta da essa. Dimostrare che:\n(a) $P$ appartiene a $S$;\n(b) il centro di $S$ appartiene alla diagonale $H N$;\n(c) la lunghezza di $P E$ è uguale al lato del dodecagono.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nSia $T$ la circonferenza circoscritta al dodecagono, e sia $O$ il suo centro; sia $O_{S}$ il centro della circonferenza $S$ e sia $Q$ il punto medio di $A H$. I punti $O$ e $O_{S}$ sono sull'asse di $A H$ e, avendo la stessa distanza da $A$ ed $H$, sono simmetrici rispetto ad $A H$, e anche simmetrici rispetto a $Q$. Poichè $A$ e $G$ sono vertici opposti del dodecagono, $A G$ è un diametro di $T$; ne segue che $O$ è anche il punto medio della diagonale $A G$ e che $A \\widehat{H} G=90^{\\circ}$. Per la similitudine dei triangoli $A Q O$ e $A H G$ (due triangoli rettangoli aventi un angolo acuto in comune), si ha $Q O=\\frac{1}{2} H G$ e quindi $O_{S} O=2 Q O=H G$.\n\n![](attached_image_1.png)\n\nLa circonferenza $S$ è dunque la traslata di $T$ per una lunghezza uguale al lato $H G$, nella direzione $\\overrightarrow{G H}$.\n\n(b): Per la regolarità del dodecagono, $H L=N L$ e $G L=A L$ e pertanto le rette $H N$ e $A G$, entrambe perpendicolari al raggio $L O$ di $T$, sono parallele. Ma allora $H N$ è la traslata di $A G$ rispetto al vettore $\\overrightarrow{G H}$, e pertanto il centro di $S$ si trova in $H N$.\n\n(a) e (c): Per quanto osservato prima, se dimostriamo che $P$ è il traslato di $E$ nella direzione $\\overrightarrow{G H}$, dimostriamo simultaneamente (a) e (c). Equivalentemente, dimostriamo che $E$ è il traslato di $P$ nella direzione $\\overrightarrow{H G}$. Il traslato di $P$ nella direzione $\\overrightarrow{H G}$ è l'intersezione delle traslate nella stessa direzione di $A F$ e $B D$. Ma con lo stesso argomento usato per dimostrare (b) si prova che le traslate di $A F$ e $D H$ nella direzione $\\overrightarrow{H G}$ sono le diagonali $B E$ e $G E$, che si intersecano in $E$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33756, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUna banda di ladri vuole aprire la cassaforte di una banca. Un basista ha fatto ubriacare il direttore della banca ed è riuscito a sapere che:\n\na. la combinazione è formata da 5 cifre da 0 a 9;\n\nb. la combinazione è un numero pari;\n\nc. esattamente una delle 5 cifre della combinazione è dispari;\n\nd. nella combinazione compaiono quattro cifre diverse, la cifra ripetuta è pari e compare in due posizioni non consecutive.\n\nQuante sono le combinazioni possibili in base a tali informazioni?\n\n(A) 3150\n(B) 4500\n(C) 5400\n(D) 7200\n(E) 9000", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è (B). Dal fatto che il numero sia pari segue che deve essere pari l'ultima cifra. Conviene distinguere a seconda se questa sia quella doppia o no.\n\nNel primo caso l'altra cifra doppia può occupare 3 diverse posizioni (non la 4) e per ciascuna di queste la cifra dispari può occupare una qualunque delle 3 posizioni rimanenti.\n\nNel secondo caso le due cifre uguali possono disporsi in 3 modi diversi (1 e 3, 1 e 4, 2 e 4) e per ciascuno di questi la cifra dispari può occupare 2 posizioni tra le 3 libere (non la 5).\n\nIn tutto si hanno $3 \\cdot 3 + 3 \\cdot 2 = 15$ modi di fissare le posizioni delle due cifre uguali e della cifra dispari. Per ciascuno di questi modi si possono scegliere liberamente la cifra dispari (5 modi), la cifra pari doppia (5 modi), la prima e la seconda delle cifre pari singole (4 e 3 modi rispettivamente), per un totale di $15 \\cdot 5 \\cdot 5 \\cdot 4 \\cdot 3 = 4500$ combinazioni differenti che rispettano le richieste.\nSolution:\n\nIl numero di modi di disporre 2 oggetti su $n$ spazi in modo che non siano consecutivi è $\\binom{n-1}{2}$. Si può pensare infatti di disporli senza restrizioni su $n-1$ spazi e poi inserire un nuovo spazio vuoto tra di essi.\n\nSe si tralascia per il momento l'informazione (a), i modi validi di fissare le posizioni delle due cifre uguali e della cifra dispari sono allora $\\binom{5-1}{2} \\cdot 3 = 18$. Di queste, quelle che non soddisfano l'informazione (a) sono $\\binom{4-1}{1} \\cdot 1 = 3$ (la cifra dispari è fissata in ultima posizione e la doppia ha i 4 posti restanti a disposizione). In tutto si hanno allora $18 - 3 = 15$ modi di fissare le posizioni che rispettino tutte le informazioni. Per concludere si moltiplica per $5 \\cdot 5 \\cdot 4 \\cdot 3$ come in precedenza.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33757, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIndicando con $x_{1}, x_{2}, x_{3}$ e $x_{4}$ le soluzioni dell'equazione $x^{4}-2 x^{3}-7 x^{2}-2 x+1=0$, quanto vale $\\frac{1}{x_{1}}+\\frac{1}{x_{2}}+\\frac{1}{x_{3}}+\\frac{1}{x_{4}}$?\n\n(A) 1\n(B) $\\frac{1}{2}$\n(C) 2\n(D) 4\n(E) 7.", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è (C). È possibile determinare esplicitamente i valori delle soluzioni dell'equazione. Si tratta infatti di una equazione reciproca di prima specie (equazioni in cui il coefficiente di $x^{k}$ è uguale a quello di $x^{n-k}$, dove $n$ è il grado dell'equazione e $k=0,1, \\ldots, n$) ed hanno la caratteristica che se sono soddisfatte da un certo valore $x_{0}$ lo sono anche da $1 / x_{0}$, da cui il nome \"reciproche\". La soluzione di equazioni di questo tipo è riconducibile a quella di tre equazioni di secondo grado: l'equazione può essere scritta nella forma $x^{2}\\left[\\left(x^{2}+\\frac{1}{x^{2}}\\right)-2\\left(x+\\frac{1}{x}\\right)-7\\right]=0$. Ponendo $y=x+\\frac{1}{x}$ si giunge a $\\left(y^{2}-2\\right)-2 y-7=0$ da cui si determinano due valori di $y$ e quattro della $x$. Questo modo di procedere porta però a calcoli piuttosto laboriosi: i valori delle soluzioni $x_{1}, x_{2}, x_{3}$ e $x_{4}$ (e quindi anche dei loro reciproci) sono infatti\n$$\nx_{1,2}=\\frac{1+\\sqrt{10}}{2} \\pm \\frac{\\sqrt{5}+\\sqrt{2}}{2} \\quad \\text{e} \\quad x_{3,4}=\\frac{1-\\sqrt{10}}{2} \\pm \\frac{\\sqrt{5}-\\sqrt{2}}{2}.\n$$\na due a due reciproche, per cui\n$$\n\\frac{1}{x_{1}}+\\frac{1}{x_{2}}+\\frac{1}{x_{3}}+\\frac{1}{x_{4}}=x_{2}+x_{1}+x_{4}+x_{3}=1+\\sqrt{10}+1-\\sqrt{10}=2.\n$$\n\nSi arriva molto più rapidamente al risultato ricordando che se $x_{1}, x_{2}, x_{3}$ e $x_{4}$ sono soluzioni dell'equazione, allora $x^{4}-2 x^{3}-7 x^{2}-2 x+1=\\left(x-x_{1}\\right)\\left(x-x_{2}\\right)\\left(x-x_{3}\\right)\\left(x-x_{4}\\right)$. Svolgendo i calcoli al secondo membro si nota che il coefficiente di terzo grado del prodotto è $-\\left(x_{1}+x_{2}+x_{3}+x_{4}\\right)$ che per confronto col primo membro vale $-2$. Dato che l'equazione è reciproca possiamo concludere subito che $\\frac{1}{x_{1}}+\\frac{1}{x_{2}}+\\frac{1}{x_{3}}+\\frac{1}{x_{4}}=2$.\n\nSi noti infine che è possibile risolvere l'esercizio anche senza tenere conto che l'equazione è reciproca: sempre calcolando il prodotto $\\left(x-x_{1}\\right)\\left(x-x_{2}\\right)\\left(x-x_{3}\\right)\\left(x-x_{4}\\right)$ si osserva che\n$$\n\\frac{1}{x_{1}}+\\frac{1}{x_{2}}+\\frac{1}{x_{3}}+\\frac{1}{x_{4}}=\\frac{x_{1} x_{2} x_{3}+x_{1} x_{2} x_{4}+x_{1} x_{3} x_{4}+x_{2} x_{3} x_{4}}{x_{1} x_{2} x_{3} x_{4}}=\\frac{- \\text{coeff di primo grado}}{\\text{termine noto}}=\\frac{2}{1}.\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33758, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nVi sono $10000$ lampadine numerate da $1$ in poi, ciascuna delle quali viene accesa e spenta con un normale interruttore. All'inizio tutte le lampadine sono spente; poi si premono una volta tutti gli interruttori delle lampadine contrassegnate dai multipli di $1$ (di conseguenza tutte le lampadine vengono accese), successivamente vengono premuti una volta gli interruttori di tutte quelle di posto pari (cioè multiplo di $2$), poi quelle contrassegnate con i multipli di $3$, successivamente si cambiano di stato quelle relative ai multipli di $4$ e così via, sino ai multipli di $10000$. Quale delle seguenti lampadine rimane accesa al termine delle operazioni?\n\n(A) La numero $9405$\n(B) la numero $9406$\n(C) la numero $9407$\n(D) la numero $9408$\n(E) la numero $9409$.", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è $\\mathbf{( E )}$. L'interruttore di posto $n$ viene toccato una volta per ogni divisore positivo di $n$. Quindi la $n$-esima lampadina rimane accesa alla fine se e solo se $n$ ha un numero dispari di divisori. Questo succede solo per i quadrati perfetti: se infatti $n$ non è un quadrato perfetto, possiamo dividere in coppie i suoi divisori formando tutte le coppie del tipo $(d, n / d)$, e questo ci dice che essi sono in numero pari. Se $n=m^{2}$ è un quadrato perfetto, possiamo dividere in coppie tutti i suoi divisori tranne $m$ accoppiando di nuovo $(d, m^{2} / d)$: quindi $m^{2}$ ha un numero dispari di divisori. A questo punto, è semplice verificare che l'unico quadrato perfetto tra le possibili risposte è $97^{2}=9409$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33759, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn un giorno di sole una sfera è posata su un terreno orizzontale. In un certo istante l'ombra della sfera raggiunge la distanza di 10 metri dal punto in cui la sfera tocca il terreno. Nello stesso istante un'asta di lunghezza 1 metro posta verticalmente al terreno getta un'ombra lunga 2 metri. Qual è il raggio della sfera in metri?\n(A) $\\frac{5}{2}$\n(B) $9-4 \\sqrt{5}$\n(C) $10 \\sqrt{5}-20$\n(D) $8 \\sqrt{10}-23$\n(E) $6-\\sqrt{15}$.", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è $\\mathbf{( C )}$. La lunghezza dell'ombra dell'asta è il doppio della sua altezza quindi $AB = \\frac{1}{2} BD = 5~\\mathrm{m}$. Per il teorema di Pitagora $AD = 5 \\sqrt{5}~\\mathrm{m}$.\n\nI triangoli $ABD$ e $AEC$ sono simili per cui $AC : AD = CE : BD$. Posto $r = CE$ si ha: $(5 - r) : 5 \\sqrt{5} = r : 10$ da cui $r = 10 \\sqrt{5} - 20$.\n\n![](attached_image_1.png)", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33760, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDeterminare il più grande numero di due cifre tale che:\na) sia un numero primo;\nb) scambiando di posto le due cifre resti un numero primo;\nc) il prodotto delle due cifre sia un numero primo.", "options": [], "answer": "71", "solution": "Solution:\n\nLa risposta è $71$. Per la condizione c) il prodotto delle due cifre deve essere un numero primo. Perché questo avvenga è necessario che una delle due cifre sia $1$, altrimenti il numero che ne deriva moltiplicando è composto.\n\nSupponendo che $1$ sia la cifra delle decine, la condizione a) restringe le possibilità ai soli $11$, $13$, $17$, $19$, unici numeri primi tra $10$ e $19$ compresi. Scambiando l'ordine delle cifre $11$, $31$, $71$ sono primi mentre $91=13 \\times 7$. Di conseguenza il più grande numero che soddisfa le tre condizioni a), b), c) è $71$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33761, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABC$ un triangolo rettangolo in $A$, con $\\angle ABC = 15^\\circ$. Sia $H$ il piede dell'altezza da $A$ e siano $J, K$ le proiezioni di $H$ su $AB$ e su $AC$. Sapendo che l'area di $AJHK$ è $45~\\mathrm{cm}^2$, quanti $\\mathrm{cm}^2$ vale il prodotto $BJ \\cdot CK$?", "options": [], "answer": "45", "solution": "Solution:\n\nLa risposta è $45$. Ponendo $x = AJ$, $y = AK$, $x' = JB$ e $y' = KC$, si ha, usando il secondo teorema di Euclide, $x \\cdot x' = y^2$ e $y \\cdot y' = x^2$. Moltiplicando membro a membro si ha $\\left(x \\cdot x'\\right)\\left(y \\cdot y'\\right) = \\left(x' \\cdot y'\\right)(x \\cdot y) = x^2 \\cdot y^2$, da cui $x' \\cdot y' = x \\cdot y = 45$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33762, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nSi determinino tutte le coppie $(x, y)$ di numeri reali che verificano l'equazione\n$$\n\\frac{4}{x+y}=\\frac{1}{x}+\\frac{1}{y}.\n$$", "options": [], "answer": "{(t, t) : t ∈ R, t ≠ 0}", "solution": "Solution:\nPer prima cosa escludiamo tutte le coppie $(x, y)$ che annullano il denominatore, cioè imponiamo le condizioni $x \\neq 0$, $y \\neq 0$ e $x+y \\neq 0$.\nSotto tali condizioni l'espressione $x y(x+y)$ è diversa da $0$ quindi, moltiplicando per essa ambo i membri della relazione assegnata, si ottiene che essa equivale a $4 x y = (x+y)^2$, cioè a $(x-y)^2 = 0$, cioè a $x = y$.\nQuindi le coppie cercate sono tutte e sole quelle che soddisfano $x = y$, a cui però va tolta la coppia $(0,0)$.\n\n\nSECONDA SOLUZIONE\nLa relazione assegnata è omogenea, rimane cioè invariata se al posto di $(x, y)$ si mette $(\\lambda x, \\lambda y)$, con $\\lambda \\neq 0$.\nCiò significa che, vale in un punto $\\left(x_0, y_0\\right)$ diverso dall'origine se e solo se vale su tutti i punti della retta passante per l'origine e per $\\left(x_0, y_0\\right)$ (eccettuato l'origine).\n\nSostituendo $m x$ al posto di $y$ nella relazione assegnata si ottiene\n$$\n\\frac{4}{x+m x}=\\frac{1}{x}+\\frac{1}{m x}\n$$\nche, essendo $x \\neq 0$, diventa\n$$\n\\frac{4}{1+m}=1+\\frac{1}{m}\n$$\nche ha come unica soluzione $m=1$.\nCiò significa che l'insieme di tutte e sole le soluzioni della relazione assegnata è costituito dai punti della retta $y=x$ privata di $(0,0)$.\n\n\nTERZA SOLUZIONE\nDopo aver riconosciuto l'omogeneità della relazione procedendo come nella seconda soluzione, per mostrare che l'unica retta buona è $y=x$, si può anche verificare che intersecando la relazione assegnata con un'altra, come $x^2+y^2=1$, che intersechi tutte le rette per l'origine, si ottengono solo soluzioni con ascissa e ordinata uguali.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33763, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $AB$ una corda di una circonferenza e $P$ un punto interno ad $AB$ tale che $AP = 2PB$. Sia $DE$ la corda passante per $P$ e perpendicolare ad $AB$. Dimostrare che il punto medio $Q$ di $AP$ è l'ortocentro di $ADE$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nSia $H$ il punto in cui la retta $EQ$ interseca $AD$; si deve dimostrare che l'angolo $A\\widehat{H}E$ è retto. Tracciamo il segmento $BE$. Il triangolo $BQE$ è isoscele perché l'altezza $EP$ è anche mediana; infatti $P$, piede dell'altezza $EP$, è punto medio di $BQ$ in quanto $PQ = \\frac{1}{2} AP = PB$. $EP$ è pertanto anche bisettrice dell'angolo $B\\widehat{E}Q$, ossia i due angoli $P\\widehat{E}Q$, $P\\widehat{E}B$ sono congruenti. Poi, sono congruenti gli angoli $D\\widehat{E}B$, $D\\widehat{A}B$ perché angoli alla circonferenza che insistono sullo stesso arco; segue che sono congruenti gli angoli $P\\widehat{E}Q$, $D\\widehat{A}P$. I triangoli $AHQ$, $EPQ$ hanno dunque gli angoli in $A$ e in $E$ congruenti; ancora, sono congruenti i rispettivi angoli con vertice in $Q$, perché opposti al vertice. I triangoli $AHQ$, $EPQ$ sono pertanto simili, ed in particolare sono congruenti gli angoli con vertici in $P$ e $H$. Poiché l'angolo $E\\widehat{P}Q$ è retto per costruzione,\n\n![](attached_image_1.png)\n\nè retto anche l'angolo $A\\widehat{H}E$, come si voleva dimostrare.\n\n![](attached_image_1.png)", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33764, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\na. Si hanno sette numeri interi positivi $a, b, c, d, e, f, g$ tali che i prodotti $ab, bc, cd, de, ef, fg, ga$ sono tutti cubi perfetti. Dimostrare che anche $a, b, c, d, e, f, g$ sono cubi perfetti.\n\nb. Si hanno sei numeri interi positivi $a, b, c, d, e, f$ tali che i prodotti $ab, bc, cd, de, ef, fa$ sono tutti cubi perfetti. È sempre vero che $a, b, c, d, e, f$ sono tutti cubi perfetti?\n\nNota: si dice cubo perfetto un intero $m$ tale che $m = n^{3}$ per qualche intero $n$.", "options": [], "answer": "a) Yes, all seven integers must be perfect cubes. b) No; for example, taking a=2, b=4, c=2, d=4, e=2, f=4 gives all adjacent products equal to 8 (a perfect cube) while the integers themselves are not perfect cubes.", "solution": "Solution:\n\nSi noti innanzitutto che il prodotto e il quoziente (quando questo è un numero intero) di due cubi perfetti è ancora un cubo perfetto. La quantità\n$$\n\\frac{(ab)(cd)(ef)(ga)}{(bc)(de)(fg)} = a^{2}\n$$\nallora è un cubo perfetto. Ora, se $a^{2}$ è un cubo perfetto, anche $a$ è un cubo perfetto: difatti, $a^{2}$ è un cubo perfetto vuol dire che, detta $a = p_{1}^{t_{1}} \\cdots p_{r}^{t_{r}}$ la scomposizione in fattori primi di $a$, $2 t_{i}$ è multiplo di 3 per ogni $i$; ma allora anche $t_{i}$ è multiplo di 3 per ogni $i$, che significa che $a$ è un cubo perfetto. Sappiamo quindi che $a$ e $ab$ sono cubi perfetti; ne segue che anche $b$ lo è. Sappiamo adesso che $b$ e $bc$ sono cubi perfetti, ne segue che anche $c$ lo è e così via.\n\nNotiamo che, per un numero, essere un cubo perfetto vuol dire che per ogni primo $p_{i}$ che compare con esponente $t_{i}$ nella sua fattorizzazione, allora $t_{i}$ è multiplo di 3. Fissiamo allora un primo $p$ e chiamiamo $t_{a}, t_{b}, \\ldots, t_{g}$ gli esponenti con cui esso compare nella fattorizzazione di $a, b, \\ldots, g$. Le condizioni del problema ci dicono che\n$$\nt_{a} + t_{b},\\ t_{b} + t_{c},\\ t_{c} + t_{d},\\ t_{d} + t_{e},\\ t_{e} + t_{f},\\ t_{f} + t_{g},\\ t_{g} + t_{a}\n$$\nsono multipli di 3.\nSupponiamo per assurdo che ci sia uno dei $t$ che non è multiplo di 3. A meno di cambiare nome ciclicamente agli interi coinvolti, possiamo supporre che sia $t_{a}$. Supponiamo che il resto della divisione di $t_{a}$ per 3 sia 1 (il caso in cui è 2 si fa esattamente nello stesso modo). Allora, dal fatto che la prima delle espressioni qui sopra è multipla di 3 segue che il resto della divisione per 3 di $t_{b}$ è 2; quindi, dalla seconda segue che $t_{c}$ ha resto 1, e poi analogamente che $t_{d}$ ha resto 2, $t_{e}$ ha resto 1, $t_{f}$ ha resto 2, e $t_{g}$ ha resto 1. Ma l'ultima relazione dice che $t_{g} + t_{a}$ è multiplo di 3, quando abbiamo provato che sia $t_{a}$ che $t_{g}$ hanno resto 1, il che è impossibile. Questo completa la dimostrazione per assurdo.\n\nIl fatto che le quantità in (1) siano multiple di 3 si può esprimere come il seguente sistema lineare nel campo degli interi modulo 3.\n$$\n\\begin{aligned}\nt_{a} + t_{b} &\\equiv 0 \\pmod{3} \\\\\nt_{b} + t_{c} &\\equiv 0 \\pmod{3} \\\\\nt_{c} + t_{d} &\\equiv 0 \\pmod{3} \\\\\nt_{d} + t_{e} &\\equiv 0 \\pmod{3} \\\\\nt_{e} + t_{f} &\\equiv 0 \\pmod{3} \\\\\nt_{f} + t_{g} &\\equiv 0 \\pmod{3} \\\\\nt_{g} + t_{a} &\\equiv 0 \\pmod{3}\n\\end{aligned}\n$$\nTale sistema ha per matrice associata la matrice\n$$\n\\left(\\begin{array}{lllllll}\n1 & 1 & & & & & \\\\\n& 1 & 1 & & & & \\\\\n& & 1 & 1 & & & \\\\\n& & & 1 & 1 & & \\\\\n& & & & 1 & 1 & \\\\\n& & & & & 1 & 1 \\\\\n1 & & & & & & 1\n\\end{array}\\right).\n$$\nNel campo degli interi modulo 3, questa matrice è invertibile (perché ha determinante non nullo), quindi il sistema ha solo la soluzione banale $t_{a} = t_{b} = \\ldots = t_{g} = 0$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33765, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIl So-poko è un nuovo gioco enigmistico che si gioca su una tabella quadrata di lato $203$ caselle. Le caselle sono colorate di bianco e di nero a cornici concentriche alternate; la cornice più esterna è nera, mentre la casella centrale è bianca (vedi a fianco un esempio $7 \\times 7$). Qual è la differenza tra il numero di caselle nere e il numero di caselle bianche presenti nello schema?\n\n(A) 103\n(B) 203\n(C) 207\n(D) 303\n(E) 407 .\n\n![](attached_image_1.png)", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è $(\\mathbf{E})$. Consideriamo come aumenta la differenza tra caselle nere e bianche $d_{k}$ in un so-poko di lato $k$. Per $k=3$, la differenza è $7$. Ogni volta che vengono aggiunte all'esterno due cornici concentriche (una bianca più interna e una nera più esterna), $d_{k}$ aumenta di $8$ e $k$ aumenta di $4$. Per arrivare da un so-poko di lato $3$ a lato $203$ dobbiamo aggiungere $50$ coppie di cornici, quindi $d_{203}=d_{3}+50 \\cdot 8=407$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33766, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABCD$ un quadrato di centro $O$. Si costruiscano due triangoli isosceli $BCJ$ e $CDK$, esterni al quadrato, di base $BC$ e $CD$ rispettivamente e congruenti fra loro. Sia poi $M$ il punto medio di $CJ$. Si provi che le rette $OM$ e $BK$ sono perpendicolari.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33767, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $n \\geq 2$ un numero intero. Coloriamo tutte le caselle di una scacchiera $n \\times n$ in rosso o blu in modo che ogni quadrato $2 \\times 2$ contenuto nella scacchiera abbia esattamente due caselle rosse e due blu.\nQuante sono le colorazioni possibili?\n\nNOTA: due colorazioni che si ottengono l'una dall'altra con una rotazione o una simmetria della scacchiera sono considerate distinte.", "options": [], "answer": "2^{n+1} - 2", "solution": "Solution:\n\nFissiamo una colorazione della prima riga della scacchiera. Essa può essere fatto in $2^{n}$ modi (2 scelte per il colore di ciascuna delle $n$ caselle). Mostriamo ora se e in quanti modi una colorazione della prima riga può essere completata ad una colorazione dell'intera scacchiera soddisfacendo le condizioni richieste. In seguito chiameremo semplicemente completamento di una colorazione un completamento che soddisfa le condizioni del problema.\n\nPrimo caso: le caselle della prima riga hanno colori alterni. Le possibilità di questo tipo di colorazione della prima riga sono 2: se la prima casella è colorata in rosso, allora la seconda è colorata in blu, la terza in rosso, e così via. Viceversa, se la prima casella è colorata in blu, allora la seconda è colorata in rosso, la terza in blu, e così via.\n\nIn questo caso i completamenti della colorazione alla seconda riga sono esattamente quelli a colori alterni, e cioè 2. Similmente, per ogni completamento della seconda riga ci sono 2 completamenti della terza riga, e così via, per un totale di $2^{n-1}$ completamenti e quindi di $2 \\ldots 2^{n-1}=2^{n}$ possibilità relative a questo caso.\n\nSecondo caso: esistono due caselle adiacenti della prima riga con lo stesso colore. Le possibilità per questo tipo di configurazione sono tutte meno quelle per il primo tipo di configurazione, cioè $2^{n}-2$.\n\nUna possibilità di completare la colorazione alla seconda riga è certamente quella di colorare ciascuna casella della seconda in modo diverso da quello della casella sopra di lei. D'altra parte, questa è l'unica possibilità, poiché sotto due caselle adiacenti dello stesso colore devono esserci due caselle di colore diverso, e quindi necessariamente alla loro sinistra e alla loro destra ci devono essere caselle di colore diverso da quelle sopra di loro, e così via. In conclusione, c'è un solo completamento della colorazione alla seconda riga. Analogamente, c'è un solo completamento della colorazione ad ogni riga successiva alla prima, per un totale di $2^{n}-2$ possibilità relative a questo caso.\n\nIl numero totale di colorazioni è dunque la somma di quelli relativi al primo e al secondo caso, e cioè\n$$\n2^{n}+2^{n}-2=2^{n+1}-2 .\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33768, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIl So-poko è un nuovo gioco enigmistico che si gioca su una tabella quadrata di lato $203$ caselle. Le caselle sono colorate di bianco e di nero a cornici concentriche alternate; la cornice più esterna è nera, mentre la casella centrale è bianca (vedi a fianco un esempio $7 \\times 7$). Qual è la differenza tra il numero di caselle nere e il numero di caselle bianche presenti nello schema?\n(A) 103\n(B) 203\n(C) 207\n(D) 303\n(E) 407 .\n\n![](attached_image_1.png)", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è $(\\mathbf{E})$. Consideriamo come aumenta la differenza tra caselle nere e bianche $d_{k}$ in un so-poko di lato $k$. Per $k=3$, la differenza è $7$. Ogni volta che vengono aggiunte all'esterno due cornici concentriche (una bianca più interna e una nera più esterna), $d_{k}$ aumenta di $8$ e $k$ aumenta di $4$. Per arrivare da un so-poko di lato $3$ a lato $203$ dobbiamo aggiungere $50$ coppie di cornici, quindi $d_{203}=d_{3}+50 \\cdot 8=407$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33769, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn numero naturale $n$ è detto gradevole se gode delle seguenti proprietà:\n- la sua espressione decimale è costituita da 4 cifre;\n- la prima e la terza cifra di $n$ sono uguali;\n- la seconda e la quarta cifra di $n$ sono uguali;\n- il prodotto delle cifre di $n$ divide $n^{2}$.\nSi determinino tutti i numeri gradevoli.", "options": [], "answer": "1111, 1212, 1515, 2424, 3636", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33770, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDeterminare tutte le funzioni $f$, definite sull'insieme $\\mathbb{Z}$ dei numeri interi relativi e a valori nell'insieme $\\mathbb{R}$ dei numeri reali, che soddisfano simultaneamente le seguenti proprietà:\n- per ogni coppia di interi $(m, n)$ con $m f(n_{0}) = 0$ per la prima proprietà, dunque possiamo sempre dividere per $a$), e supponiamo per assurdo che $b$ sia un valore di $f$. Se $b > 0$, consideriamo il massimo $k$ naturale tale che $k a$ è minore di $b$; poiché abbiamo già visto che $k a$ viene assunto come valore da $f$, questo deve accadere anche per $b - k a$. Ma per la nostra scelta di $k$ vale $k a < b < (k + 1) a$, quindi $0 < b - k a < a$, e questo è assurdo: la funzione è strettamente crescente, dunque non assume valori compresi fra $f(n_{0}) = 0$ e $f(n_{0} + 1) = a$. Lo stesso ragionamento vale per $b < 0$: detto $k$ il minimo numero naturale tale che $-k a < b$, il numero $b - (-k a)$, compreso fra $0$ e $a$, dovrebbe appartenere all'immagine. Di nuovo questo è assurdo.\n\nAbbiamo così dimostrato che le funzioni possibili sono tutte e sole quelle crescenti la cui immagine sia formata dai multipli interi di un numero reale positivo $a$, ovvero quelle della forma: $f(n_{0}) = 0$ per un certo intero $n_{0}$; $f(n_{0} + k) = k a$ per ogni $k$ intero, per un certo $a$ reale positivo.\nSolution:\n\nCome nella precedente soluzione, notiamo che tutte le funzioni del tipo $f(n) = (n - n_{0}) a$ con $n_{0}$ intero e $a$ reale positivo soddisfano le condizioni date.\n\nSempre analogamente a prima, sia $n_{0}$ un intero per cui $f(n_{0}) = 0$ e sia $a = f(n_{0} + 1)$ ($a$ è positivo per la prima condizione). Dobbiamo dimostrare che necessariamente $f(n) = (n - n_{0}) a$ per ogni $n$ o, equivalentemente, che $g(n) = f(n + n_{0}) = n a$ per ogni $n$. È immediato verificare che la funzione $g$ soddisfa le stesse condizioni date per $f$.\n\nSia $n$ un qualsiasi intero. Poiché la funzione $g$ è strettamente crescente, si ha $g(n + 1) - g(n) > 0$, e quindi, poiché $g(n + 1) - g(n)$ è un valore della funzione, $g(n + 1) - g(n) \\geq g(1)$; d'altra parte, $g(n + 1) - g(1) < g(n + 1)$ e quindi, poiché $g(n + 1) - g(n)$ è un valore della funzione, $g(n + 1) - g(1) \\leq g(n)$. In conclusione,\n$$\ng(n + 1) = g(n) + g(1) \\quad \\text{per ogni intero } n.\n$$\nOra dimostriamo per induzione che $g(n) = n a$ per ogni intero $n$. Sappiamo che questo è vero per $n = 0, 1$. Supponiamo che la tesi sia vera per un certo intero positivo $n$: allora la formula precedente dà $g(n + 1) = n a + a = (n + 1) a$. Supponiamo ora che la tesi sia vera per un certo $m \\leq 0$: ponendo $n = m - 1$ nella formula precedente otteniamo $g(m) = g(m - 1) + g(1)$, da cui $g(m - 1) = g(m) - g(1) = m a - a = (m - 1) a$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33771, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn un trapezio isoscele $ABCD$ di base maggiore $AB$, le diagonali vengono divise dal loro punto di incontro $O$ in parti proporzionali ai numeri 1 e 3. Sapendo che l'area del triangolo $BOC$ è 15, quanto misura l'area dell'intero trapezio?\n\n![](attached_image_1.png)\n\n(A) 60\n(B) 75\n(C) 80\n(D) 90\n(E) 105.", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è $\\mathbf{( C )}$. Evidentemente il triangolo $AOD$ è uguale al triangolo $BOC$, quindi ha anch'esso area 15.\n\nI triangoli $ODC$ e $OCB$ hanno la stessa altezza $CH$, e poiché la base $OD$ di $ODC$ è $1/3$ della base $OB$ di $BOC$, l'area di $ODC$ è $1/3$ dell'area di $BOC$, cioè $15/3 = 5$.\n\nI triangoli $OAB$ e $AOD$ hanno la stessa altezza $AK$, e poiché la base $OB$ di $OAB$ è il triplo della base $OD$ di $AOD$, l'area di $OAB$ è il triplo dell'area di $OAD$, cioè $3 \\cdot 15 = 45$.\n\nL'area del trapezio $ABCD$ sarà quindi $15 + 5 + 15 + 45 = 80$.\n\n![](attached_image_2.png)", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33772, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn un trapezio isoscele $ABCD$ di base maggiore $AB$, le diagonali vengono divise dal loro punto di incontro $O$ in parti proporzionali ai numeri 1 e 3. Sapendo che l'area del triangolo $BOC$ è 15, quanto misura l'area dell'intero trapezio?\n\n![](attached_image_1.png)\n\n(A) 60\n(B) 75\n(C) 80\n(D) 90\n(E) 105.", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è $\\mathbf{(C)}$. Evidentemente il triangolo $AOD$ è uguale al triangolo $BOC$, quindi ha anch'esso area 15.\n\nI triangoli $ODC$ e $OCB$ hanno la stessa altezza $CH$, e poiché la base $OD$ di $ODC$ è $1/3$ della base $OB$ di $BOC$, l'area di $ODC$ è $1/3$ dell'area di $BOC$, cioè $15/3 = 5$.\n\n![](attached_image_2.png)\n\nI triangoli $OAB$ e $AOD$ hanno la stessa altezza $AK$, e poiché la base $OB$ di $OAB$ è il triplo della base $OD$ di $AOD$, l'area di $OAB$ è il triplo dell'area di $OAD$, cioè $3 \\cdot 15 = 45$.\n\nL'area del trapezio $ABCD$ sarà quindi $15 + 5 + 15 + 45 = 80$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33773, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUna pulce si trova inizialmente nel punto $(0,0)$ del piano cartesiano. Successivamente compie $n$ salti. Ogni salto viene effettuato in una a scelta delle quattro direzioni cardinali. Il primo salto è di lunghezza $1$, il secondo di lunghezza $2$, il terzo di lunghezza $4$, e così via, fino all'$n$-salto, che è di lunghezza $2^{n-1}$. Dimostrare che, se si conosce la posizione finale della pulce, allora è possibile determinare univocamente la sua posizione dopo ciascuno degli $n$ salti.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33774, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nFrancesco e Andrea decidono di consultare l'oracolo matematico per sapere se hanno delle coppie $(x, y)$ di numeri (reali) fortunati. Per determinare la coppia (o le coppie) di numeri fortunati, l'oracolo chiede sia a Francesco che a Andrea il giorno $(g)$ e mese $(m)$ di nascita, dopodiché per ciascuno di loro risolve il sistema:\n$$\n\\left\\{\\begin{array}{l}\n13 x - y = 181 \\\\\ng x - m y = 362\n\\end{array}\\right.\n$$\n\nIl responso dell'oracolo è che Andrea non ha nessuna coppia di numeri fortunati, mentre le coppie di numeri fortunati di Francesco sono infinite. Quale delle affermazioni seguenti è corretta?\n(A) Francesco e Andrea sono entrambi nati in primavera\n(B) Francesco e Andrea sono entrambi nati in estate\n(C) Francesco e Andrea sono entrambi nati in autunno\n(D) Francesco e Andrea sono entrambi nati in inverno\n(E) Francesco e Andrea sono nati in stagioni diverse.", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). Esaminiamo la situazione di Francesco: perché il sistema ammetta infinite soluzioni è necessario che la seconda equazione sia equivalente alla prima, ovvero che differiscano al più per una costante moltiplicativa. Il termine noto della seconda equazione è $362 = 181 \\times 2$ quindi nel caso di Francesco i coefficienti della seconda equazione sono il doppio di quelli della prima, cioè $g = 26$ e $m = 2$. Francesco è nato il 26 febbraio.\n\nNel caso di Andrea invece le due equazioni devono essere incompatibili e questo accade quando i coefficienti delle incognite sono tra loro proporzionali ma il fattore di proporzionalità non è quello tra i rispettivi termini noti. Questo vuol dire che per Andrea $g = 13~m$. Dato che $g \\leq 31$ sono possibili due valori di $m$: 1 e 2. Per $m = 2$ però il sistema ha infinite soluzioni e quindi Andrea è nato il 13 gennaio.\n\nSi osservi che è possibile affrontare il problema anche per via geometrica interpretando le equazioni come rette nel piano cartesiano e le soluzioni del sistema come le loro intersezioni. Nel caso di Francesco le due equazioni devono rappresentare la stessa retta, nel caso di Andrea devono rappresentare due rette parallele ma distinte. Le conclusioni ovviamente sono le stesse.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33775, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nFrancesco e Andrea decidono di consultare l'oracolo matematico per sapere se hanno delle coppie $(x, y)$ di numeri (reali) fortunati. Per determinare la coppia (o le coppie) di numeri fortunati, l'oracolo chiede sia a Francesco che a Andrea il giorno $(g)$ e mese $(m)$ di nascita, dopodiché per ciascuno di loro risolve il sistema:\n$$\n\\left\\{\\begin{array}{l}\n13 x - y = 181 \\\\\ng x - m y = 362\n\\end{array}\\right.\n$$\nIl responso dell'oracolo è che Andrea non ha nessuna coppia di numeri fortunati, mentre le coppie di numeri fortunati di Francesco sono infinite. Quale delle affermazioni seguenti è corretta?\n\n(A) Francesco e Andrea sono entrambi nati in primavera\n(B) Francesco e Andrea sono entrambi nati in estate\n(C) Francesco e Andrea sono entrambi nati in autunno\n(D) Francesco e Andrea sono entrambi nati in inverno\n(E) Francesco e Andrea sono nati in stagioni diverse.", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). Esaminiamo la situazione di Francesco: perché il sistema ammetta infinite soluzioni è necessario che la seconda equazione sia equivalente alla prima, ovvero che differiscano al più per una costante moltiplicativa. Il termine noto della seconda equazione è $362 = 181 \\times 2$ quindi nel caso di Francesco i coefficienti della seconda equazione sono il doppio di quelli della prima, cioè $g = 26$ e $m = 2$. Francesco è nato il 26 febbraio.\n\nNel caso di Andrea invece le due equazioni devono essere incompatibili e questo accade quando i coefficienti delle incognite sono tra loro proporzionali ma il fattore di proporzionalità non è quello tra i rispettivi termini noti. Questo vuol dire che per Andrea $g = 13 m$. Dato che $g \\leq 31$ sono possibili due valori di $m$: 1 e 2. Per $m = 2$ però il sistema ha infinite soluzioni e quindi Andrea è nato il 13 gennaio.\n\nSi osservi che è possibile affrontare il problema anche per via geometrica interpretando le equazioni come rette nel piano cartesiano e le soluzioni del sistema come le loro intersezioni. Nel caso di Francesco le due equazioni devono rappresentare la stessa retta, nel caso di Andrea devono rappresentare due rette parallele ma distinte. Le conclusioni ovviamente sono le stesse.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33776, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABC$ un triangolo con tutti gli angoli maggiori di $45^{\\circ}$ e minori di $90^{\\circ}$.\n\na. Dimostrare che si possono disporre all'interno di $ABC$ tre quadrati con le seguenti proprietà:\n- i tre quadrati hanno tutti lo stesso lato;\n- i tre quadrati hanno un vertice comune $K$ interno al triangolo;\n- due quadrati qualsiasi non hanno punti in comune oltre a $K$;\n- ciascuno dei quadrati ha due vertici opposti sul perimetro di $ABC$ e per il resto è tutto all'interno del triangolo $ABC$.\n\nb. Sia $P$ il centro del quadrato con lato $AB$ ed esterno ad $ABC$. Sia $r_{C}$ la simmetrica della retta passante per $C$ e $K$ rispetto alla bisettrice di $A\\widehat{C}B$ uscente da $C$. Dimostrare che $P$ appartiene ad $r_{C}$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nPer dimostrare il punto (a) lavoriamo al contrario, disponendo arbitrariamente dei quadrati di lato fissato ed osservando quali sono le caratteristiche del triangolo $ABC$ generato da tale disposizione. Per l'esattezza (con riferimento alla figura) scegliamo tre angoli\n$$\n\\left\\{\\begin{array}{l}\n\\alpha = A_{1} \\widehat{K} A_{2} \\\\\n\\beta = B_{1} \\widehat{K} B_{2} \\\\\n\\gamma = C_{1} \\widehat{K} C_{2}\n\\end{array}\\right.\n$$\ntali da non generare sovrapposizioni, ovvero compresi tra $0$ e $90^{\\circ}$, con somma $90^{\\circ}$. Definiamo a questo punto $A$ come l'intersezione tra le rette $B_{1}B_{2}$ e $C_{1}C_{2}$, $K_{A}$ come il punto medio del segmento $A_{1}A_{2}$; operiamo analogamente per $B$ e $C$. Il quadrilatero $A K_{B} K K_{C}$ risulta avere due\n\n![](attached_image_1.png)\n\nangoli retti, poiché i triangoli $K B_{1} B_{2}$ e $K C_{1} C_{2}$ sono isosceli, dunque le mediane relative al vertice $K$ sono al contempo altezze. Analogo discorso per $B K_{C} K K_{A}$ e $C K_{A} K K_{B}$, da cui le relazioni:\n$$\n\\left\\{\\begin{array}{l}\nK_{B} \\widehat{K} K_{C} = 180^{\\circ} - \\widehat{A} \\\\\nK_{C} \\widehat{K} K_{A} = 180^{\\circ} - \\widehat{B} \\\\\nK_{A} \\widehat{K} K_{B} = 180^{\\circ} - \\widehat{C}\n\\end{array}\\right.\n$$\nD'altro canto le mediane di cui sopra sono anche bisettrici, per cui il sistema diviene:\n$$\n\\left\\{\\begin{array}{l}\n\\frac{\\beta}{2} + \\frac{\\gamma}{2} + 90^{\\circ} = 90^{\\circ} - \\widehat{A} \\\\\n\\frac{\\alpha}{2} + \\frac{\\gamma}{2} + 90^{\\circ} = 90^{\\circ} - \\widehat{B} \\\\\n\\frac{\\alpha}{2} + \\frac{\\beta}{2} + 90^{\\circ} = 180^{\\circ} - \\widehat{C}\n\\end{array}\\right.\n$$\nche è come dire\n$$\n\\left\\{\\begin{array}{l}\n\\alpha = 2\\widehat{A} - 90^{\\circ} \\\\\n\\beta = 2\\widehat{B} - 90^{\\circ} \\\\\n\\gamma = 2\\widehat{C} - 90^{\\circ}\n\\end{array}\\right.\n$$\nI vincoli su $(\\alpha, \\beta, \\gamma)$ si trasformano coerentemente in vincoli su $(\\widehat{A}, \\widehat{B}, \\widehat{C})$ : si ha che ognuno degli ultimi tre angoli dev'essere compreso tra $45^{\\circ}$ e $90^{\\circ}$. Si noti poi che per costruzione i punti $J_{A}, J_{B}, J_{C}$ risultano interni al triangolo $ABC$.\n\nPreso dunque un triangolo come nell'ipotesi, sappiamo come disporre tre quadrati di lato unitario in modo da generare un triangolo simile a quello desiderato; usufruendo di un opportuno movimento rigido seguito da una dilatazione (angoli e rapporti tra lunghezze vengono preservati), la configurazione risolutiva è determinata.\n\nPer quanto riguarda il punto (b), sempre con riferimento alla figura, notiamo che\n$$\nB_{1} \\widehat{A_{2}} B = 45^{\\circ} + K \\widehat{A_{2}} A_{1} = 45^{\\circ} + \\frac{180^{\\circ} - \\left(2 \\widehat{A} - 90^{\\circ}\\right)}{2} = 180^{\\circ} - \\widehat{A}.\n$$\nIl quadrilatero $ABA_{2}B_{1}$ è perciò ciclico. Ne segue che $C \\widehat{B_{1}} A_{2} = 180^{\\circ} - A \\widehat{B_{1}} A_{2} = \\widehat{B}$ e $C \\widehat{A_{2}} B_{1} = 180^{\\circ} - B_{1} \\widehat{A_{2}} B = \\widehat{A}$, dunque i triangoli $A_{2}B_{1}C$ e $ABC$ sono simili. D'altro canto, poiché $K \\widehat{B_{1}} A_{2} = K \\widehat{A_{2}} B_{1} = 45^{\\circ}$, $K$ è il centro del quadrato costruito su $A_{2}B_{1}$ esternamente a $CA_{2}B_{1}$, ragion per cui\n$$\nK \\widehat{C} B = P \\widehat{C} A\n$$\ne le rette $CP$ e $CK$ risultano simmetriche rispetto alla bisettrice dell'angolo $\\widehat{C}$.\n\n![](attached_image_2.png)", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33777, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSiano $a_{0}, a_{1}, a_{2}, \\ldots$ numeri interi tali che $a_{0}=19$, $a_{1}=25$, e per ogni $n \\geq 0$ valga $a_{n+2}=2 a_{n+1}-a_{n}$. Qual è il più piccolo $i>0$ per cui $a_{i}$ è multiplo di $19$?\n\n(A) 19\n(B) 25\n(C) 38\n(D) 44\n(E) 50", "options": [], "answer": "A", "solution": "Solution:\n\nLa risposta è (A). La regola di ricorrenza data nel testo equivale a dire $a_{k+1}-a_{k}=a_{k}-a_{k-1}=\\cdots=a_{1}-a_{0}=d$ (la differenza tra due termini successivi rimane costante) e quindi si riconosce in $a_{k}$ una progressione aritmetica. Si può quindi ricavare che $a_{k}=19+6 k$ per ogni $k$ (una dimostrazione formale di questo risultato può essere condotta per induzione). Perché questo numero sia multiplo di $19$, è necessario e sufficiente che $6 k$ sia un multiplo di $19$, e questo avviene per la prima volta per $k=19$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33778, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABC$ un triangolo scaleno e acutangolo, $\\Gamma$ la sua circonferenza circoscritta, $K$ il piede della bisettrice relativa al vertice $A$. Sia $M$ il punto medio dell'arco $BC$ che contiene $A$. Detta $A'$ la seconda intersezione di $MK$ con $\\Gamma$, sia $T$ l'intersezione delle tangenti a $\\Gamma$ in $A$ e in $A'$. Sia inoltre $R$ l'intersezione della perpendicolare ad $AK$ per $A$ e della perpendicolare ad $A'K$ per $A'$. Si provi che $T$, $R$ e $K$ sono allineati.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33779, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nFrancesca e Giorgia fanno il seguente gioco. Su un tavolo ci sono inizialmente alcune colonne di monete. Ogni colonna contiene un certo numero di monete, che può eventualmente variare da colonna a colonna. A turno, ogni giocatrice fa una e una sola delle seguenti possibili mosse:\n- sceglie una colonna contenente un numero pari non nullo $2k$ di monete e la sostituisce con due colonne contenenti $k$ monete ciascuna;\n- leva dal tavolo tutte le colonne contenenti un numero dispari di monete.\nNel caso in cui non fosse possibile effettuare una mossa del primo tipo, la giocatrice ne farà necessariamente una del secondo tipo, e viceversa.\nInizia Francesca. Vince chi prende dal tavolo l'ultima moneta.\n\na. Se inizialmente sul tavolo c'è una sola colonna, la quale contiene $2008^{2008}$ monete, quale giocatrice ha una strategia vincente?\n\nb. Per quali configurazioni iniziali Francesca ha una strategia vincente?", "options": [], "answer": "a) Francesca.\nb) Let A be the number of columns whose size is divisible by 4, B the number of columns whose size is divisible by 2 but not by 4, and δ = 1 if there is at least one column with an odd number of coins (otherwise δ = 0). Francesca has a winning strategy if and only if δ + A + δAB is odd.", "solution": "Solution:\n\nVerifichiamo innanzitutto che il gioco ha termine dopo un numero finito di mosse. Supponiamo dapprima che inizialmente ci sia una sola colonna di monete, con $2^{\\alpha} d$ monete dove $d$ è un numero dispari, e ragioniamo per induzione su $\\alpha$. Se $\\alpha=0$ il gioco si conclude dopo una sola mossa, cioè la mossa che elimina l'unica colonna dispari di $d$ monete. Supponiamo ora di avere dimostrato che per $\\alpha=k$ il gioco termina in al più $N$ mosse. Se $\\alpha=k+1$, con la prima mossa questa colonna sarà suddivisa in due colonne con $2^{k} d$ monete ciascuna, e per eliminare le monete di ciascuna colonna serviranno al più $N$ mosse. In totale, il gioco terminerà dopo al più $M=2N+1$ mosse. Infine, se inizialmente sul tavolo ci sono $m$ colonne di monete $C_{1}, \\ldots, C_{m}$ e per eliminare le monete di ciascuna di esse sono necessarie al più $N_{1}, \\ldots, N_{m}$ mosse, il gioco terminerà dopo al più $N_{1}+\\cdots+N_{m}$ mosse.\n\nOsserviamo poi che l'ultima mossa del gioco deve eliminare tutte le monete rimaste; pertanto prima dell'ultima mossa ci saranno sul tavolo solo colonne con un numero dispari di monete, e vincerà la giocatrice che si troverà a muovere quando questo avverrà.\n\nSupponiamo ora che sul tavolo ci siano $m$ colonne di monete, contenenti rispettivamente $n_{1}, \\ldots, n_{m}$ monete. Sia $A$ il numero degli $n_{i}$ che sono divisibili per $4$, $B$ il numero degli $n_{i}$ che sono divisibili per $2$ ma non per $4$, e sia $\\delta=1$ se ci sono colonne con un numero dispari di monete, $\\delta=0$ altrimenti. Definiamo come valore della configurazione il numero $\\delta + A + \\delta AB$.\n\nIl valore della configurazione prima dell'ultima mossa è $1$ ($\\delta=1, A=0, B=0$) e vogliamo dimostrare che Francesca ha una strategia vincente se e solo se il valore della configurazione iniziale è un numero dispari.\n\nDimostreremo infatti che:\n\na. se prima di muovere una giocatrice si trova di fronte ad una configurazione di valore dispari, allora potrà sempre lasciare l'avversaria di fronte ad una combinazione di valore pari;\n\nb. se prima di muovere una giocatrice si trova di fronte ad una combinazione di valore pari, allora lascerà necessariamente all'avversaria una configurazione di valore dispari.\n\nSupponendo di aver dimostrato (a) e (b), è chiaro che, se la configurazione iniziale ha un valore dispari, la strategia vincente di Francesca sarà quella di lasciare all'avversaria sempre una configurazione di valore pari, mentre se la configurazione iniziale ha valore pari, allora Francesca lascerà a Giorgia dopo la prima mossa una configurazione con valore dispari, e sarà Giorgia ad avere la strategia vincente.\n\nDimostrazione di (a):\n- se $\\delta=0$, allora $A$ è dispari. La giocatrice suddivide una colonna con un numero di monete $4k$ in due colonne con $2k$ monete ciascuna. Allora $\\delta$ rimane uguale a zero, mentre il numero $A$ diventa pari (se $k$ è pari $B$ aumenta di $1$, se $k$ è dispari diminuisce di $1$);\n- se $\\delta=1$ e $A$ è pari, la giocatrice rimuove le colonne con un numero dispari di monete (varia solo la parità di $\\delta$);\n- se $\\delta=1$ e $A$ è dispari, allora necessariamente $B$ è dispari. In questo caso la giocatrice suddivide una colonna con $2d$ monete ($d$ dispari) in due colonne con $d$ monete (varia solo la parità di $B$).\n\nDimostrazione di (b):\n- se $\\delta=0$, allora $A$ è pari. Suddividendo in due una colonna con $4k$ monete cambia solo la parità di $A$, mentre suddividendo in due una colonna con $2d$ monete ($d$ dispari) cambia solo la parità di $\\delta$;\n- se $\\delta=1$, allora $A$ è dispari e $B$ è pari. Se la giocatrice rimuove le colonne con un numero dispari di monete, cambia solo la parità di $\\delta$; se suddivide una colonna con $4k$ monete in due colonne con $2k$ monete, cambia solo la parità di $A$; se suddivide una colonna con $2d$ monete ($d$ dispari) in due colonne con $d$ monete, cambia solo la parità di $B$.\n\nIl caso in cui c'è una sola colonna con $2008^{2008}$ monete produce un valore di gioco dispari ($\\delta=0, A=1, B=0$), quindi il ragionamento precedente dimostra che Francesca ha una strategia vincente in questo caso.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33780, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn numero naturale $k$ si dice $n$-squadrato se, colorando comunque con $n$ colori diversi le caselle di una scacchiera $2n \\times k$, esistono 4 caselle distinte dello stesso colore i cui centri sono vertici di un rettangolo avente i lati paralleli ai lati della scacchiera. Determinare, in funzione di $n$, il più piccolo naturale $k$ che sia $n$-squadrato.", "options": [], "answer": "n(2n−1)+1", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33781, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSull'isola che non c'è ci sono 2008 abitanti, divisi in tre clan: i furfanti che mentono sempre, i cavalieri che non mentono mai, i paggi che mentono un giorno sì e uno no. Lorenza, in visita per due giorni, li incontra tutti il primo giorno. Il primo dice: \"c'è esattamente un furfante sull'isola\"; il secondo dice: \"ci sono esattamente due furfanti sull'isola\"... il 2008-esimo dice: \"ci sono esattamente 2008 furfanti sull'isola\". Il giorno dopo Lorenza li interroga di nuovo tutti nello stesso ordine. Il primo dice: \"c'è esattamente un cavaliere sull'isola\"; il secondo dice: \"ci sono esattamente due cavalieri sull'isola\"... l'ultimo dice: \"ci sono esattamente 2008 cavalieri sull'isola\".\nQuanti paggi ci sono sull'isola?\n(A) 0\n(B) 1\n(C) 1004\n(D) 2006\n(E) non è possibile determinarlo con i dati del problema.", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è (B). Lorenza nota che sia il primo giorno che il secondo tutti e 2008 gli abitanti fanno affermazioni contrastanti, segno che almeno 2007 di loro stanno mentendo. Ovvero al più uno dice la verità il primo giorno, e al più uno il secondo. Da ciò si deduce che almeno 2006 hanno mentito entrambi i giorni, ovvero ci sono almeno 2006 furfanti, e che in tutto c'è al più un solo cavaliere. In realtà il primo giorno esattamente uno ha detto la verità, perché se avessero tutti mentito non ci sarebbero furfanti sull'isola, contrariamente a quanto già dedotto. Il secondo giorno invece nessuno può aver detto la verità, infatti non ci sono cavalieri. Se ce ne fossero l'unico cavaliere sarebbe il primo abitante, che il secondo giorno ha detto che c'è esattamente un cavaliere. Ma questo ha affermato il primo giorno che c'è un solo furfante, quando ce ne sono almeno 2006. Ora abbiamo 2007 mentitori il primo giorno e 2008 il secondo, perciò deduciamo che 2007 sono furfanti e quell'unico che ha detto la verità il primo giorno è un paggio. (in particolare è esattamente il penultimo abitante ad essere stato interrogato).", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33782, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn quanti modi si possono ordinare le cifre $1$, $2$, $4$, $7$ e $9$ affinché formino un numero di cinque cifre divisibile per $11$?\n\n(A) $0$\n(B) $1$\n(C) $10$\n(D) $12$\n(E) $24$.", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). Un numero è divisibile per $11$ se e solo se è divisibile per $11$ la differenza tra la somma delle cifre di posto dispari e la somma delle cifre di posto pari.\n\nSia $a$ la somma delle $3$ cifre di posto dispari e $b$ la somma delle $2$ cifre di posto pari. Siccome $a+b=1+2+4+7+9=23$ è dispari, anche $a-b$ sarà dispari e quindi diverso da $0$. Inoltre, dal fatto che $b$ vale al massimo $7+9=16$ e come minimo $1+2=3$, segue che $a-b=(23-b)-b=23-2b$ è compreso tra $-9$ e $17$. Se $a-b$ deve essere divisibile per $11$, l'unica possibilità è quindi che sia $11$, ma allora $11=a-b=23-2b$ da cui $b=6$. L'unica coppia di cifre tra quelle considerate che dà somma $6$ è $\\{2,4\\}$.\n\nIn conclusione si ottiene un multiplo di $11$ tutte e sole le volte che le cifre di posto pari sono il $2$ e il $4$. Complessivamente le combinazioni sono $12$ perché vi sono $2$ modi per fissare l'ordine delle cifre di posto pari e $3!=6$ modi per fissare l'ordine delle altre $3$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33783, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAll'interno di un cerchio di raggio $1$ si tracciano $3$ archi di circonferenza, anch'essi di raggio $1$, centrando nei vertici di un triangolo equilatero inscritto nella circonferenza. Quanto vale l'area della zona ombreggiata?\n\n(A) $\\frac{\\sqrt{3}}{4} \\pi$\n(B) $\\pi-\\frac{3 \\sqrt{3}}{4}$\n(C) $\\pi-\\frac{3 \\sqrt{3}}{2}$\n(D) $\\frac{3 \\sqrt{3}}{2}$\n(E) $6-\\pi$.\n\n![](attached_image_1.png)", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). Gli archi tracciati all'interno del cerchio hanno lo stesso raggio del cerchio stesso. Di conseguenza, per equiscomposizione del cerchio, l'area della parte ombreggiata in figura 1 è uguale a quella della parte ombreggiata in figura 2, ovvero è pari all'area dell'esagono inscritto in una circonferenza di raggio unitario. Il lato dell'esagono è pari al raggio (cioè vale $1$); l'area dell'esagono è $6$ volte quella del triangolo $OPQ$.\n\n![](attached_image_2.png)\n\nfigura 1\n\n![](attached_image_3.png)\n\nfigura 2\n\nDi conseguenza,\n$$\nA_{\\text{esagono}} = 6 \\cdot \\frac{1}{2} \\cdot 1 \\cdot \\frac{\\sqrt{3}}{2} = \\frac{3 \\sqrt{3}}{2}.\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33784, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAll'interno di un cerchio di raggio $1$ si tracciano $3$ archi di circonferenza, anch'essi di raggio $1$, centrando nei vertici di un triangolo equilatero inscritto nella circonferenza. Quanto vale l'area della zona ombreggiata?\n\n(A) $\\frac{\\sqrt{3}}{4} \\pi$\n(B) $\\pi-\\frac{3 \\sqrt{3}}{4}$\n(C) $\\pi-\\frac{3 \\sqrt{3}}{2}$\n(D) $\\frac{3 \\sqrt{3}}{2}$\n(E) $6-\\pi$.\n\n![](attached_image_1.png)", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). Gli archi tracciati all'interno del cerchio hanno lo stesso raggio del cerchio stesso. Di conseguenza, per equiscomposizione del cerchio, l'area della parte ombreggiata in figura 1 è uguale a quella della parte ombreggiata in figura 2, ovvero è pari all'area dell'esagono inscritto in una circonferenza di raggio unitario. Il lato dell'esagono è pari al raggio (cioè vale $1$); l'area dell'esagono è $6$ volte quella del triangolo $OPQ$.\n\nfigura 1\n\n![](attached_image_2.png)\nfigura 2\n\nDi conseguenza,\n$$\n\\mathrm{A}_{\\text{esagono}} = 6 \\cdot \\frac{1}{2} \\cdot 1 \\cdot \\frac{\\sqrt{3}}{2} = \\frac{3 \\sqrt{3}}{2}.\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33785, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nEleonora gioca con un dado e un orologio (fermo) che all'inizio segna le 12. Per 2008 volte tira il dado e porta le lancette avanti di tante ore quanto è il risultato. Qual è alla fine la probabilità che la lancetta delle ore sia orizzontale?\n(A) 0\n(B) $\\frac{1}{2008}$\n(C) $\\frac{1}{1004}$\n(D) $\\frac{1}{12}$\n(E) $\\frac{1}{6}$.", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è $\\mathbf{( E )}$. La lancetta delle ore è orizzontale se l'orologio segna le 3 o le 9. Sia $K$ l'ora segnata dall'orologio subito prima dell'ultimo lancio di dado. Se $K$ è uno dei 6 numeri compresi tra 3 e 8, vi è esattamente 1 risultato del dado su 6 che permetterebbe di raggiungere le 9 e non ve n'è nessuno che permetta di raggiungere le 3. Se $K$ è uno dei 6 numeri compresi tra 9 e 12 o tra 1 e 2, vi è esattamente 1 risultato del dado su 6 che permetterebbe di raggiungere le 3 e non ve n'è nessuno che permetta di raggiungere le 9.\n\nLa totalità delle combinazioni di 2008 lanci di dado può essere divisa in 12 gruppi a seconda della situazione prima dell'ultimo lancio. Per $i=1,2, \\ldots, n$, sia $n_{i}$ il numero di combinazioni tali che $K=i$; sia poi $a_{i}$ il numero di combinazioni tali che $K=i$ e la lancetta sia orizzontale dopo l'ultimo lancio.\n\nPer quanto detto sopra, per ciascuno di questi gruppi la probabilità che la lancetta venga portata in posizione orizzontale con l'ultimo lancio è $\\frac{1}{6}$, quindi per ogni $i$, si ha che $\\frac{a_{i}}{n_{i}}=\\frac{1}{6}$, ovvero che $n_{i}=6 a_{i}$. Queste relazioni permettono di ottenere facilmente la probabilità complessiva che la lancetta alla fine sia orizzontale, ovvero:\n$$\n\\frac{\\text{casi favorevoli}}{\\text{casi possibili}}=\\frac{a_{1}+a_{2}+\\cdots+a_{12}}{n_{1}+n_{2}+\\cdots+n_{12}}=\\frac{a_{1}+a_{2}+\\cdots+a_{12}}{6 a_{1}+6 a_{2}+\\cdots+6 a_{12}}=\\frac{a_{1}+a_{2}+\\cdots+a_{12}}{6\\left(a_{1}+a_{2}+\\cdots+a_{12}\\right)}=\\frac{1}{6} \\text{.}", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33786, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nQuanti interi $n$ sono tali che $\\sqrt{n}$ differisce da $\\sqrt{101}$ per meno di 1?\n(A) 19\n(B) 21\n(C) 40\n(D) 41\n(E) 42.", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). Indichiamo con $\\mathcal{A}$ l'insieme degli interi $n$ che soddisfano la proprietà richiesta. Osserviamo innanzitutto che: $\\sqrt{101}-\\sqrt{81}>\\sqrt{100}-\\sqrt{81}=1$, cioè $81 \\notin \\mathcal{A}$.\n\nSe $n$ è un intero positivo, la differenza\n$$\n\\sqrt{n+1}-\\sqrt{n}=\\frac{1}{\\sqrt{n+1}+\\sqrt{n}}\n$$\ntra le radici quadrate di due interi consecutivi decresce al crescere di $n$. Di conseguenza $\\sqrt{82}-\\sqrt{81}>\\sqrt{101}-\\sqrt{100}$ cioè $\\sqrt{101}-\\sqrt{82}<\\sqrt{100}-\\sqrt{81}=1$, e quindi $82 \\in \\mathcal{A}$; Allo stesso modo si dimostra che $122 \\in \\mathcal{A}$, infatti $\\sqrt{122}-\\sqrt{121}<\\sqrt{101}-\\sqrt{100}$, da cui $\\sqrt{122}-\\sqrt{101}<\\sqrt{121}-\\sqrt{100}=1$. Per mostrare che $123 \\notin \\mathcal{A}$, si può fare il calcolo brutale $(\\sqrt{123}-\\sqrt{101})^{2}=123+101-2 \\cdot \\sqrt{123 \\cdot 101}$, cioè si deve dimostrare che $224>2 \\cdot \\sqrt{12423}$ ovvero che $\\sqrt{12423}<112$; questo è vero perché $112^{2}=12544>12423$.\n\nIn definitiva, $\\mathcal{A}=\\{n \\in \\mathbb{N}: 82 \\leq n \\leq 122\\}$ ed è composto da $122-82+1=41$ elementi.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33787, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAlberto, Barbara e Carlo stanno giocando a carte. Ad ogni mano, il vincitore guadagna 2 punti, mentre gli altri due giocatori perdono un punto a testa. Inizialmente, tutti hanno 0 punti. Qual è la probabilità che, dopo 10 mani, siano nuovamente tutti a zero punti?\n\n(A) 0\n(B) $\\frac{1}{5}$\n(C) $\\frac{1}{3}$\n(D) $\\frac{\\left(\\begin{array}{c}10 \\\\ 6\\end{array}\\right)}{3^{10}}$\n(E) $1-\\left(\\frac{2}{3}\\right)^{10}$.", "options": [], "answer": "A", "solution": "Solution:\n\nLa risposta è (A). Vogliamo dimostrare che è impossibile che tutti i giocatori, dopo 10 mani, abbiano nuovamente zero punti.\n\nSia $v$ il numero di mani vinte dal primo giocatore quando tutti si ritrovano ad avere 0 punti, e $p$ il numero di mani da lui perse.\n\nAllora, per la regola data nel testo sull'assegnazione dei punti, si trova\n$$\n0 = 2k - p\n$$\nPer ipotesi si ha $k + p = 10$, il numero totale di mani giocate; sostituendo nell'equazione precedente si trova $0 = 2k - (10 - k)$, cioè $10 = 3k$.\n\nL'unica soluzione a questa equazione è $k = \\frac{10}{3}$, assurdo dal momento che $k$, rappresentando la quantità di mani vinte dal primo giocatore, dovrebbe essere intero. La situazione supposta è quindi impossibile, e la probabilità che tutti i giocatori abbiano 0 punti è dunque 0.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33788, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nNell'isola Chenonc'è ci sono 2009 abitanti, divisi in tre clan: i furfanti che mentono sempre, i cavalieri che non mentono mai, i paggi che mentono un giorno sì e uno no, in modo indipendente l'uno dall'altro. Un giorno chiedo a ciascuno degli abitanti quanti furfanti sono sull'isola. Il primo dice: \"c'è almeno 1 furfante\"; il secondo dice: \"ci sono almeno 2 furfanti\";... il 2009-esimo dice: \"ci sono almeno 2009 furfanti\". Scrivo in una lista la successione delle 2009 risposte, nell'ordine in cui sono state pronunciate. Il giorno dopo interrogo allo stesso modo tutti gli abitanti (non necessariamente nello stesso ordine), ed ottengo una lista delle risposte identica a quella del giorno precedente. Sapendo che c'è un solo cavaliere sull'isola, quanti paggi ci sono?\n(A) Nessuno\n(B) 670\n(C) 1004\n(D) 1338\n(E) 1339 .", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). Sia $f$ il numero di furfanti e $p$ il numero di paggi. In ognuna delle due liste risulteranno esattamente $f$ affermazioni vere (le prime $f$) ed esattamente $2009-f$ affermazioni false (le rimanenti). Quindi tra le due liste ci sono $4018-2f$ frasi false. Ora ogni furfante ha fornito 2 affermazioni false, mentre ogni paggio ne ha fornita solo una, giacché in una delle due giornate deve aver detto la verità. Quindi il numero di frasi false deve egualiare il numero di paggi più il doppio del numero dei furfanti, ovvero\n$$\n4018-2f = 2f + p\n$$\ne dal momento che $p+f=2008$ (c'è un solo cavaliere) si può ricavare $f=670$ da cui $p=2008-670=1338$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33789, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nFrancesco vuole scrivere il polinomio $x^{16}+x$ come prodotto di più polinomi a coefficienti interi, ognuno di grado almeno 1. Quanti fattori potrà ottenere al massimo?\n\n(A) 1\n(B) 2\n(C) 3\n(D) 4\n(E) 5 .", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è (E). Ricordiamo la fattorizzazione notevole $a^{k}+b^{k}=(a+b)\\left(a^{k-1}-a^{k-2} b+a^{k-3} b^{2}-\\cdots+b^{k-1}\\right)$, valida per $k$ dispari. Utilizzando due volte detta fattorizzazione (una volta con $k=3$, una con $k=5$) abbiamo\n$$\n\\begin{aligned}\nx^{16}+x & =x\\left(x^{15}+1\\right)=x\\left(x^{5}+1\\right)\\left(x^{10}-x^{5}+1\\right) \\\\\n& =x(x+1)\\left(x^{4}-x^{3}+x^{2}-x+1\\right)\\left(x^{10}-x^{5}+1\\right) .\n\\end{aligned}\n$$\nPerò, sempre per la suddetta fattorizzazione, si ha che $x^{15}+1$ è un multiplo anche di $x^{3}+1=(x+1)\\left(x^{2}-x+1\\right)$. Dobbiamo quindi aspettarci che anche il fattore $x^{2}-x+1$ possa comparire nella scomposizione. In effetti, facendo la divisione tra polinomi, si ha che\n$$\nx^{10}-x^{5}+1=\\left(x^{2}-x+1\\right)\\left(x^{8}+x^{7}-x^{5}-x^{4}-x^{3}+x+1\\right) \\text{.}\n$$\nQuesto porta ad almeno cinque i fattori ottenibili nella scomposizione. Poiché 5 è la risposta più alta presente tra le scelte, non è necessario dimostrare anche che i fattori trovati non sono ulteriormente scomponibili. Una dimostrazione completa di questo fatto è al di sopra del livello normalmente richiesto in questa gara; essa può essere ottenuta facendo la sostituzione $y=-x$ e utilizzando la teoria delle radici primitive complesse dell'unità, oppure direttamente per tentativi basandosi sul lemma di Gauss.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33790, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDeterminare il massimo intero positivo $k$ tale che $k^{2}$ divide $\\frac{n !}{(n-6) !}$ per ogni $n>6$.", "options": [], "answer": "12", "solution": "Solution:\n\nLa risposta è 12. Sia $N=\\frac{n !}{(n-6) !}=(n-5)(n-4)(n-3)(n-2)(n-1) n$.\n\nCerchiamo innanzitutto qual è il massimo $q$ tale che $q$ divide $N, \\forall n$. Tra sei interi consecutivi tre sono divisibili per 2, di questi tre, uno è sicuramente divisibile per 4. Dunque $2^{4}$ divide $N$. Tra sei interi consecutivi ci sono due interi divisibili per 3. Dunque $3^{2}$ divide $N$. Tra sei interi consecutivi, uno solo di essi è divisibile per 5. Dunque 5 divide $N$. Quindi\n$$\nq \\geq 2^{4} \\cdot 3^{2} \\cdot 5\n$$\nPoiché cerchiamo il massimo $q$ tale che $q$ divide $N, \\forall n$, consideriamo $n_{1}=7, n_{2}=13$. Sicuramente $q$ divide sia $N_{1}$ che $N_{2}$ da cui si ha che\n$$\nq \\text{ divide } \\operatorname{MCD}\\left(N_{1}, N_{2}\\right)\n$$\nSi trova che $N_{1}=2 \\cdot 3 \\cdot 4 \\cdot 5 \\cdot 6 \\cdot 7, N_{2}=8 \\cdot 9 \\cdot 10 \\cdot 11 \\cdot 12 \\cdot 13$. Allora $\\operatorname{MCD}\\left(N_{1}, N_{2}\\right)=2^{4} \\cdot 3^{2} \\cdot 5$. Ora, dalla 1 e dalla 2 si deduce che $q=2^{4} \\cdot 3^{2} \\cdot 5$. Volendo estrarre da $q$ il massimo quadrato, si trova che $k^{2}=2^{4} \\cdot 3^{2}$ cioè $k=12$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33791, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $x$ la più piccola delle due soluzioni dell'equazione $x^{2}-4x+2=0$. Quali sono le prime tre cifre dopo la virgola nella scrittura (in base 10) del numero\n$$\nx+x^{2}+x^{3}+\\cdots+x^{2009} ?\n$$", "options": [], "answer": "414", "solution": "Solution:\n\nLa risposta è 414. Dalla consueta formula risolutiva per le equazioni di secondo grado, si ha $x=2-\\sqrt{2}$. Utilizzando ora la formula per la somma di una progressione geometrica, abbiamo\n$$\n\\begin{aligned}\nx+x^{2}+x^{3}+\\cdots+x^{2009} & =x\\left(1+x+x^{2}+\\cdots+x^{2008}\\right) \\\\\n& =x \\frac{1-x^{2009}}{1-x}=\\frac{x}{1-x}-\\frac{x^{2010}}{1-x} .\n\\end{aligned}\n$$\nIl secondo termine di questa somma è molto piccolo: difatti, con stime molto larghe, otteniamo\n$$\n(2-\\sqrt{2})^{2010}<(0.6)^{2010}<\\left((0.6)^{2}\\right)^{1005}<\\frac{1}{2^{1005}}<\\frac{1}{\\left(2^{10}\\right)^{100}}<\\frac{1}{10^{100}} .\n$$\nIl primo termine d'altra parte vale\n$$\n\\frac{x}{1-x}=\\frac{2-\\sqrt{2}}{\\sqrt{2}-1}=\\frac{(2-\\sqrt{2})(\\sqrt{2}+1)}{(\\sqrt{2}-1)(\\sqrt{2}+1)}=\\frac{\\sqrt{2}}{1} .\n$$\nQuindi il valore dell'espressione è una quantità che differisce da $\\sqrt{2}$ per un numero grande meno di $10^{-100}$; le prime cifre del suo sviluppo decimale saranno quindi le stesse di $\\sqrt{2}$, cioè $1.414 \\ldots$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33792, "subject": "Mathematics (Multi-modal)", "question": "Problem:\na) Qual è il minimo intero positivo $c$ tale che esista almeno una coppia $(a, b)$ di interi positivi distinti tali che $2 c^{2} = a^{2} + b^{2}$?\n\nb) Dimostrare che esistono infinite terne $(a, b, c)$ di interi positivi distinti tali che $2 c^{2} = a^{2} + b^{2}$.", "options": [], "answer": "5", "solution": "Solution:\n\na.\nPoiché $a$ e $b$ hanno la stessa parità, posso porre $a = x + y$ e $b = x - y$ e l'equazione diventa $2 c^{2} = 2 x^{2} + 2 y^{2}$ e quindi il più piccolo $c$ è dato dalla più piccola terna pitagorica $(x, y, c) = (3, 4, 5)$, che dà $(a, b, c) = (7, 1, 5)$.\n\nb.\nBasta osservare che anche $(7k, k, 5k)$ è soluzione per ogni $k$ positivo.\nSolution:\n\na.\nL'equazione è simmetrica in $a$ e $b$, risolviamo per $a > b$. Conviene porre $a = c + n$ e $b = c - m$, $n, m > 0$. L'equazione diventa allora $2c(m - n) = n^{2} + m^{2}$. Quindi $2$ divide $n^{2} + m^{2}$, quindi $n$ e $m$ hanno la stessa parità. Possiamo allora effettuare un nuovo cambio di variabili $\\alpha = \\frac{n + m}{2}$ e $\\beta = \\frac{m - n}{2}$, con $\\alpha > \\beta$. Si ha $2c\\beta = \\alpha^{2} + \\beta^{2}$. Per le stesse ragioni di prima si ottiene che $\\alpha$ e $\\beta$ hanno la stessa parità, inoltre si deve avere $\\beta \\mid \\alpha^{2} + \\beta^{2}$, cioè $\\beta \\mid \\alpha$. Poniamo $\\alpha = k\\beta$. Si ha allora $c = \\frac{(k^{2} + 1)\\beta}{2}$. Questa è una funzione crescente sia rispetto a $k$ che rispetto a $\\beta$. Quindi dovrò prendere $k$ e $\\beta$ più piccoli possibile. La condizione $\\alpha > \\beta$ impone $k \\geq 2$, mentre non ho condizioni su $\\beta$, quindi $\\beta \\geq 1$. Se $\\beta = 1$ allora $k^{2} + 1$ deve essere pari e quindi il più piccolo valore di $k$ possibile è $3$, se $\\beta = 2$ posso prendere anche $k = 2$. Per valori maggiori di $\\beta$, il minimo $k$ che posso sempre prendere è $k = 3$ per i $\\beta$ dispari e $k = 2$ per i $\\beta$ pari, e poiché $c$ è crescente in $\\beta$, questi valori risulteranno maggiori rispettivamente di quello ottenuto con $(k, \\beta) = (3, 1)$ per i $\\beta$ dispari e di quello ottenuto per $(k, \\beta) = (2, 2)$ per i $\\beta$ pari.\n\nCalcolando i due valori di $c$ per queste due coppie si ottiene $c = 5$ in entrambi i casi. Bisogna ora vedere se almeno una di questa due coppie $(k, \\beta)$ dà una coppia $(a, b)$ di interi positivi. Facendo i passaggi inversi si ottiene $(a, b) = (7, 1)$ per la coppia $(k, \\beta) = (3, 1)$ e $(a, b) = (7, -1)$ per $(k, \\beta) = (2, 2)$. Solo la coppia $(7, 1)$ è quindi accettabile. Oltre a questa dovremo prendere per simmetria anche $(1, 7)$. Le terne sono quindi $(7, 1, 5)$ e $(1, 7, 5)$. E il minimo $c$ è $5$.\n\nb.\nBasta osservare che per ogni $k$ dispari e $k \\geq 3$ ottengo una terna di $(a, b, c)$ interi che è soluzione, infatti:\n$$\n\\begin{gathered}\nk = 2h + 3 \\\\\n(a, b, c) = \\left(2(h + 2)^{2} - 1\\right)\\beta, \\left(2(h + 1)^{2} - 1\\right)\\beta, \\left(2h^{2} + 6h + 5\\right)\\beta\\right)\n\\end{gathered}\n$$\ncon $a, b, c > 0$\n\nOppure che per $k$ pari e $k \\geq 4$ e per ogni $\\beta$ pari si ottiene una terna di interi $(a, b, c)$ che è soluzione, infatti\n$$\n\\begin{gathered}\nk = 2h + 4 \\\\\n\\beta = 2\\gamma \\\\\n(a, b, c) = \\left((2h + 5)^{2} - 2\\right)\\gamma, \\left((2h + 3)^{2} - 2\\right)\\gamma, \\left(4h^{2} + 8h + 5\\right)\\gamma\\right)\n\\end{gathered}\n$$\ncon $a, b, c > 0$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33793, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nÈ dato un triangolo $A B C$, rettangolo in $A$ e con $A C$ cateto maggiore; sia $M$ il punto medio di $B C$, $N$ il simmetrico di $A$ rispetto a $B C$, $O$ l'intersezione fra la perpendicolare ad $M N$ passante per $N$ e la retta contenente $B C$.\n\na) Dimostrare che l'angolo $O M N$ è il doppio dell'angolo $A C B$.\n\nb) Dimostrare che il rapporto fra le aree di $M N O$ e $A B C$ vale un quarto del rapporto fra le lunghezze di $B C$ e $H M$, dove $H$ è il piede dell'altezza relativa all'ipotenusa di $A B C$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nIl punto medio $M$ dell'ipotenusa $B C$ è anche il centro della circonferenza circoscritta al triangolo $A B C$; l'angolo al centro $A \\widehat{M} B$ e l'angolo alla circonferenza $A \\widehat{C} B$ insistono sullo stesso arco, da cui $A \\widehat{M} B = 2 A \\widehat{C} B$. Inoltre $A \\widehat{M} B = O \\widehat{M} N$, data la simmetria di $A$ e $N$ rispetto a $B C$; se ne ricava proprio che $O \\widehat{M} N = 2 A \\widehat{C} B$.\n\nLe aree rispettive del triangolo $M N O$ e del triangolo $A B C$, calcolate scegliendo come base l'ipotenusa in entrambi i casi, valgono $\\frac{M O \\cdot N H}{2}$ e $\\frac{B C \\cdot A H}{2}$; ma, dato che per simmetria $N H = A H$, il rapporto fra le aree vale esattamente quanto il rapporto tra $M O$ e $B C$. Il primo teorema di Euclide applicato al triangolo rettangolo $M N O$ dà la relazione $\\frac{M O}{M N} = \\frac{M N}{H M}$, cioè $M O = \\frac{M N^{2}}{H M}$. D'altra parte si ha anche $M N = A M$\n\n![](attached_image_1.png)\n\nperciò $\\frac{M O}{B C} = \\frac{B C^{2}}{4 B C \\cdot H M} = \\frac{B C}{4 H M}$, da cui la tesi.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33794, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDeterminare tutti gli interi positivi $m$ per i quali sia $\\frac{2 \\cdot 5^{m}+10}{3^{m}+1}$ che $\\frac{9^{m}+1}{5^{m}+5}$ sono interi.", "options": [], "answer": "m = 1", "solution": "Solution:\n\nNotiamo che se $a=\\frac{2 \\cdot 5^{m}+10}{3^{m}+1}$ e $b=\\frac{9^{m}+1}{5^{m}+5}$ sono entrambi interi, allora anche il loro prodotto,\n$$\na b=\\frac{\\left(2 \\cdot 5^{m}+10\\right)\\left(9^{m}+1\\right)}{\\left(3^{m}+1\\right)\\left(5^{m}+5\\right)}\n$$\nè ancora intero.\nRaccogliendo ora un fattore due a numeratore, questa espressione si riscrive\n$$\n\\frac{2\\left(5^{m}+5\\right)\\left(9^{m}+1\\right)}{\\left(3^{m}+1\\right)\\left(5^{m}+5\\right)}=\\frac{2\\left(9^{m}+1\\right)}{3^{m}+1} .\n$$\nVediamo ora per quali $m$ questa espressione è un intero. Notando che $9^{m}+1=\\left(3^{m}+1\\right)^{2}-2 \\cdot 3^{m}$, possiamo ulteriormente trasformare il prodotto $a b$ nella forma\n$$\na b=2 \\cdot \\frac{\\left(9^{m}+1\\right)}{3^{m}+1}=2 \\cdot \\frac{\\left(3^{m}+1\\right)^{2}-2 \\cdot 3^{m}}{3^{m}+1}=2\\left(3^{m}+1\\right)-4 \\frac{3^{m}}{3^{m}+1}\n$$\nche è un intero se e solo se $4 \\frac{3^{m}}{3^{m}+1}$ lo è.\nDimostriamo ora che $2<4 \\frac{3^{m}}{3^{m}+1}<4$.\nInfatti, dal momento che $m \\geq 1$, si ha $3^{m} \\geq 3$, e dunque $2 \\cdot 3^{m}+2<2 \\cdot 3^{m}+2 \\cdot 3^{m}<4 \\cdot\\left(3^{m}+1\\right)$; dividendo questi tre termini per $3^{m}+1$ troviamo allora $2<4 \\frac{3^{m}}{3^{m}+1}<4$ come voluto.\nPerciò, se $4 \\frac{3^{m}}{3^{m}+1}$ è intero, esso deve necessariamente essere uguale a 3 , perchè è strettamente compreso tra 2 e 4 .\nImponendo questa uguaglianza otteniamo $4 \\cdot 3^{m}=3 \\cdot\\left(3^{m}+1\\right) \\Rightarrow 3^{m}=3 \\Rightarrow m=1$.\nPerciò, se esiste un $m$ con la proprietà richiesta, questo deve essere uguale ad 1 . È d'altra parte facile verificare che $\\frac{2 \\cdot 5^{1}+10}{3^{1}+1}=5$ e $\\frac{9^{1}+1}{5^{1}+5}=1$ sono entrambi interi. Se ne conclude quindi che $m=1$ è effettivamente soluzione ed è l'unica.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33795, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIl perimetro di un rombo è $32~\\mathrm{cm}$ e ciascuno dei due angoli acuti misura $30^\\circ$. Quanto vale il volume del solido ottenuto facendo ruotare il rombo intorno a un suo lato?\n\n(A) $128 \\sqrt{3} \\pi$\n(B) $128 \\pi$\n(C) $64(\\sqrt{3}-1) \\pi$\n(D) $64 \\pi$\n(E) $32 \\sqrt{3} \\pi$.", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è (B). Si osserva che il solido di rotazione che si ottiene ruotando un rombo intorno a un suo lato può essere visto come un cono sovrapposto a un cilindro \"scavato\". La regione di spazio che viene scavata nel cilindro è uguale al cono sopra di esso, di conseguenza il volume $V$ richiesto è equivalente al volume di un cilindro che ha per altezza il lato del rombo $(8~\\mathrm{cm})$ e per raggio l'altezza del rombo (metà del lato, cioè $4~\\mathrm{cm}$). Il calcolo fornisce quindi $V=\\pi \\cdot 4^{2} \\cdot 8=128 \\pi$", "topic": "Geometry", "subtopic": "Solid Geometry" }, { "id": 33796, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nNell'ultimo capodanno, andavano molto di moda degli occhiali con la forma del numero \"2009\" e le lenti al posto dei due zeri. Per fabbricare occhiali simili, è necessario che nel numero che rappresenta l'anno vi siano due o più zeri consecutivi (per esempio 3500 va bene, 2010 no). Quanti anni compresi tra l'anno 999 e l'anno 9999 contengono due o più zeri consecutivi nella loro scrittura?\n\n(A) 171\n(B) 180\n(C) 190\n(D) 191\n(E) 200 .", "options": [], "answer": "A", "solution": "Solution:\n\nSi noti che se invece avessimo contato il numero di modi in cui si può sostituire una cifra da 1 a 9 a $X$ e una cifra da 0 a 9 a $Y$ nei due pattern $X00Y$ e $XY00$, avremmo ottenuto un risultato errato perché avremmo contato due volte gli anni della forma $X000$.\n\nIl problema può essere risolto con un ragionamento quasi identico anche usando il principio di inclusione-esclusione.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33797, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nA un tavolo, vi sono quattro persone: Luca, Maria, Nicola e Paola. Ognuno dei quattro mente sempre, oppure non mente mai. Inoltre non amano parlare di loro stessi, ma piuttosto dei loro amici; tant'è che quando gli viene chiesto chi di loro menta sempre, le loro risposte sono:\n\nLuca: \"ogni ragazza è sempre sincera\"\nMaria: \"ogni ragazzo è sempre bugiardo\"\nNicola: \"c'è una ragazza che mente sempre, l'altra è sempre sincera\"\nPaola: \"uno dei ragazzi è sempre sincero, l'altro mai\".\n\nSapreste dire quanti al tavolo sono sempre sinceri?\n\n(A) Nessuno\n(B) 1\n(C) 2\n(D) 3\n(E) tutti.", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è $\\mathbf{(C)}$. Certamente Luca non può essere sincero, in quanto le due ragazze si contraddicono, quindi non possono dire entrambe il vero. Se Maria dicesse il vero, Nicola mentirebbe; perciò, non è vero che c'è una ragazza sincera, e in particolare Maria non lo è, contraddizione. Quindi, Maria mente. C'è dunque almeno un ragazzo che dice sempre la verità, e si tratta necessariamente di Nicola. Quindi, per quello che dice, una delle due ragazze è sincera, e non potendo essere Maria, è Paola. D'altra parte, quest'ultima afferma che c'è un solo ragazzo che dice il vero, e da quanto dedotto prima, questa frase è vera. Quindi, a essere sinceri sono Nicola e Paola.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33798, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn quadrato $ABCD$ di lato $1$ è inscritto in una circonferenza $\\gamma$. Si costruiscano i simmetrici degli archi $\\overparen{AB}$, $\\overparen{BC}$, $\\overparen{CD}$, $\\overparen{DA}$ di $\\gamma$ rispetto ai lati $AB$, $BC$, $CD$, $DA$ rispettivamente. Indichiamo con $L, M, N, O$ i punti medi degli archi così ottenuti; quanto vale l'area di $LMNO$?\n\n(A) $\\frac{\\sqrt{2}}{4}$\n(B) $\\sqrt{2}-1$\n(C) $1-\\frac{\\sqrt{2}}{2}$\n(D) $\\frac{1}{4}$\n(E) $3-2 \\sqrt{2}$.\n\n![](attached_image_1.png)\n", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è (E). Il raggio della circonferenza circoscritta al quadrato è $\\frac{\\sqrt{2}}{2}$, essendo metà della diagonale del quadrato stesso. Anche $LMNO$ è un quadrato, essendo la figura simmetrica per rotazioni di $90$ gradi. Ora, i vertici del quadrato unitario dividono la circonferenza in quattro archi. I punti medi di questi hanno la stessa distanza dai lati del quadrato stesso dei punti $L, M, N, O$, essendo infatti simmetrici a essi rispetto ai rispettivi lati. Tale distanza risulta essere la differenza tra il raggio della circonferenza e metà del lato del quadrato, quindi $\\frac{\\sqrt{2}-1}{2}$. $LN$ è uguale alla differenza tra il lato del quadrato unitario e due volte la distanza di cui sopra, vale a dire $2-\\sqrt{2}$. Infine, $LN$ è la diagonale di $LMNO$, il cui lato è quindi $\\sqrt{2}-1$, e la cui area è $(\\sqrt{2}-1)^2=3-2\\sqrt{2}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33799, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn'urna contiene $N$ palline $(N>3)$ numerate da 1 a $N$. Se dall'urna vengono tolte due palline recanti numeri non multipli di 3 e una recante un multiplo di 3, la probabilità di ottenere un multiplo di 3 estraendo una singola pallina risulta minore di quanto era con l'urna completa. Cosa si può dedurre riguardo a $N$?\n\n(A) $N$ è certamente multiplo di 3\n(B) $N$ non è multiplo di 3\n(C) $N$ è certamente dispari\n(D) $N$ è certamente pari\n(E) nessuna delle affermazioni precedenti può essere dedotta.", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è (B). In presenza di un numero finito di esiti possibili ed equiprobabili di un esperimento (nel nostro caso l'estrazione di una pallina dall'urna), la probabilità di un evento (per noi l'estrazione di una pallina con numero multiplo di 3) è il rapporto tra il numero di esiti favorevoli ed il numero di esiti possibili.\n\nIndichiamo con $k$ il numero di palline con numero multiplo di 3 presenti inizialmente nell'urna; avremo $3k \\leq N \\leq 3k+2$. Dopo la sottrazione delle 3 palline dall'urna questa conterrà $N-3$ palline di cui $k-1$ con numero multiplo di 3. Siano $p_{1}$ e $p_{2}$ le probabilità di estrazione di una pallina con numero multiplo di 3 rispettivamente prima e dopo la sottrazione delle 3 palline. Allora:\n\n$$\np_{1}-p_{2}=\\frac{k}{N}-\\frac{k-1}{N-3}=\\frac{N-3k}{N(N-3)}\n$$\n\nNel caso in cui $N=3k$ si ha $p_{1}=p_{2}$ (quindi l'affermazione **A** è falsa); se invece $N=3k+1$ o $N=3k+2$ il numeratore è positivo per cui due numeri $3k+1$ e $3k+2$, essendo interi consecutivi, sono necessariamente uno pari ed uno dispari per cui non possiamo affermare con certezza né che $N$ sia pari né che $N$ sia dispari escludendo quindi le risposte **D** e **C**.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33800, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDeterminare il più grande intero $n$ con questa proprietà: esistono $n$ interi positivi distinti $a_{1}, \\ldots, a_{n}$ tali che, comunque se ne scelgano fra essi due distinti, né la loro somma né la loro differenza siano divisibili per $100$.\n\n(A) $49$\n(B) $50$\n(C) $51$\n(D) $99$\n(E) $100$ .", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è (C). Un numero è divisibile per $100$ se e solo se la sua espressione decimale termina con $00$.\n\nDividiamo gli interi $a_{1}, \\ldots, a_{n}$ in gruppi come segue: in un primo gruppo mettiamo quelli la cui espressione decimale termina con $00$, in un secondo gruppo quelli che terminano con $01$ (o hanno una sola cifra e quella cifra è $1$) oppure con $99$, in un terzo quelli che hanno come ultime due cifre $02$ o $98$ e così via, fino ad arrivare al cinquantunesimo gruppo, in cui inseriamo quelli che terminano con le cifre $50$.\n\nSe in uno stesso gruppo vi sono due interi, allora necessariamente la loro differenza, oppure la loro somma, sarà divisibile per $100$: se infatti i due interi terminano con lo stesso gruppo di due cifre, allora la loro differenza termina con $00$ ed è divisibile per $100$; se invece terminano con gruppi di cifre diverse, il fatto che si trovino nello stesso gruppo fa sì che la loro somma sia divisibile per $100$. Dato che abbiamo esattamente $51$ gruppi, $n$ vale al massimo $51$: se infatti avessimo $52$ o più interi, almeno due ricadrebbero nello stesso gruppo e, per quanto detto, la loro differenza, o la loro somma, sarebbe divisibile per $100$.\n\nD'altra parte è facile convincersi che $100, 101, \\ldots, 150$ è proprio un insieme di $51$ interi positivi con la proprietà descritta nel testo, e dunque $51$ è il numero richiesto.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33801, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIl minuscolo, ma preziosissimo, Diamante Dodecaedrico si trova a 2 metri dalla parete sud e 3 metri dalla parete ovest di una stanza rettangolare le cui pareti nord e sud sono lunghe 4 metri e quelle est e ovest sono lunghe 3 metri. Un ladro si cala dal soffitto all'interno della stanza e tocca il pavimento a un metro dalla parete sud e a un metro dalla parete ovest. Si accorge però che deve immediatamente disattivare il sistema di allarme, tagliando almeno in un punto un filo che corre ad altezza da terra costante lungo le quattro pareti perimetrali della stanza. Quanti metri è lungo il percorso più breve che deve compiere per raggiungere prima un punto qualsiasi di una delle pareti, e poi il Diamante Dodecaedrico?\n(A) $3+\\sqrt{2}$\n(B) $2+\\sqrt{5}$\n(C) $\\sqrt{17}$\n(D) $\\sqrt{13}$\n(E) $2 \\sqrt{2}$.", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). Sia $L$ il punto del pavimento in cui \"atterra\" il ladro, $D$ quello in cui si trova il diamante; siano $D_{E}, D_{W}, D_{N}, D_{S}$ i simmetrici di $D$ rispetto alle pareti est, ovest, nord, sud $(E, W, N, S$ in figura). Immaginiamo che il ladro tocchi il filo (per poterlo tagliare) in un punto $P$ della parete $E$, poi vada a prendere il diamante in $D$ : il percorso che compie è di lunghezza (almeno) $L P+P D$, che è uguale per simmetria a $L P+P D_{E}$; dunque, ammesso che il ladro tagli il filo in un punto della parete $E$, il percorso più breve possibile, come conseguenza della diseguaglianza triangolare, è quello in cui $P$ è allineato con $L$ e $D_{E}$ (tale punto è indicato con $P_{E}$ in figura), ed è lungo $\\sqrt{4^{2}+1}=\\sqrt{17}$ metri.\n\nRipetendo lo stesso ragionamento per le altre tre pareti (e notando, per rispariare calcoli, che $L D_{E}=L D_{W}, L D_{S}=L D_{N}$ ) ci si riduce a confrontare le lunghezze di $L D_{E}$ ed $L D_{N}$; ne risulta che la distanza minima da percorrere vale $\\sqrt{2^{2}+3^{2}}=\\sqrt{13}$ metri.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33802, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nQuanti interi positivi $n$ hanno la proprietà che la loro rappresentazione in base 2 coincide con la rappresentazione in base 3 di $2 n$ ?\n(A) Nessuno\n(B) 1\n(C) 2\n(D) più di 2, ma in numero finito\n(E) infiniti.", "options": [], "answer": "(C)", "solution": "Solution:\n\nLa risposta è (C). Sia $n$ un intero positivo. Siano $a_{k}, a_{k-1}, \\ldots, a_{0}$ le $k+1$ cifre, da sinistra a destra, della rappresentazione di $n$ in base 2. Ognuno degli $a_{i}$ assumerà un valore tra 0 e 1, e possiamo supporre senza perdita di generalità che $a_{k}=1$. Perciò $n=2^{k} a_{k}+2^{k-1} a_{k-1}+\\ldots+a_{0}$. In particolare vale la stima $n<2^{k+1}$. Supponiamo ora che $n$ soddisfi le ipotesi del problema, e quindi che $a_{k}, a_{k-1}, \\ldots, a_{0}$ siano anche le cifre della rappresentazione in base 3 di $2 n$. Allora si ha $2 n=3^{k} a_{k}+3^{k-1} a_{k-1}+\\ldots+a_{0}$ e vale la stima $2 n \\geq 3^{k}$. Ora se $k \\geq 4$ si ha $3^{k}>2^{k+2}$ e quindi, mettendo insieme le stime ricavate sopra, otteniamo $2 n \\geq 3^{k}>2^{k+2}>2 n$, che non è possibile. Quindi $k \\leq 3$. Ora per ipotesi\n$$\n27 a_{3}+9 a_{2}+3 a_{1}+a_{0}=2\\left(8 a_{3}+4 a_{2}+2 a_{1}+a_{0}\\right)\n$$\novvero\n$$\n11 a_{3}+a_{2}-a_{1}-a_{0}=0\n$$\nda cui si deduce subito che $a_{3}=0$ (altrimenti l'espressione a sinistra è maggiore di 8; gli $a_{i}$ valgono o 0 o 1). Ora $a_{2}-a_{1}-a_{0}=0$ ha esattamente due soluzioni (con almeno una cifra diversa da 0), che sono $(a_{2}, a_{1}, a_{0})=(1,0,1)$ e $(a_{2}, a_{1}, a_{0})=(1,1,0)$ che corrispondono rispettivamente ai due numeri $n=6$ e $n=5$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33803, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\n16 coni stradali sono messi in linea retta a distanza di 10 metri uno dall'altro. Si vuole dipingere sulla strada una linea continua che vada dal primo all'ultimo cono. Sapendo che per dipingere 100 metri di linea continua sono necessari 6 litri di vernice, quanti litri di vernice sono necessari per completare questo lavoro?\n(A) 8,4\n(B) 9\n(C) 9,6\n(D) 10\n(E) nessuna delle precedenti.", "options": [], "answer": "(B)", "solution": "Solution:\n\nLa risposta è (B). 16 coni stradali individuano 15 segmenti lunghi 10 metri, per un totale di 150 metri di linea, e per dipingerla è necessaria una volta e mezza la vernice rispetto ai 6 litri dei 100 metri, ossia 9 litri.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33804, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nQuattro interi positivi $a_{1}p$, cioè $q \\geq p+1$. Scriviamo ora la nostra equazione come:\n$$\np^{2}-1=p q n-q^{2}=q(p n-q) .\n$$\nQuesto vuol dire che $p^{2}-1$ è multiplo di $q$ e quindi $q$ è un divisore primo di $p^{2}-1$. Quindi\n$$\nq \\mid p^{2}-1=(p-1)(p+1) .\n$$\nOra, essendo $q$ un numero primo, esso deve essere presente o nella fattorizzazione di $p-1$ oppure in quella di $p+1$; in entrambi i casi $q \\leq p+1$. Per ipotesi iniziale avevamo $q \\geq p+1$ e quindi ottengo che $q=p+1$. Tra due numeri successivi uno necessariamente deve essere pari e dunque è 2 (l'unico primo pari) e l'altro è necessariamente 3 poiché 1 non è primo. Ora controlliamo che si possa risolvere l'equazione in $n$ sostituendo $p=2$ e $q=3$ :\n$$\n4+9=6 n+1,\n$$\nda cui $n=2$. Le uniche due soluzioni sono dunque $(2,3,2)$ e $(3,2,2)$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33810, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nTrovare tutte le terne ordinate di numeri interi positivi $(p, q, n)$ tali che $p, q$ siano primi e $p^{2}+q^{2}=p q n+1$.", "options": [], "answer": "The ordered triples are (2, 3, 2) and (3, 2, 2).", "solution": "Solution:\n\nSupponiamo $p=q$. Sostituendo otteniamo $p^{2}(2-n)=1$ che è impossibile perché $1$ non è diviso da nessun primo. Quindi necessariamente $p$ e $q$ sono diversi; poiché l'equazione è simmetrica in $p$ e $q$ possiamo supporre che $q>p$, cioè $q \\geq p+1$. Scriviamo ora la nostra equazione come:\n$$\np^{2}-1=p q n-q^{2}=q(p n-q) .\n$$\nQuesto vuol dire che $p^{2}-1$ è multiplo di $q$ e quindi $q$ è un divisore primo di $p^{2}-1$. Quindi\n$$\nq \\mid p^{2}-1=(p-1)(p+1) .\n$$\nOra, essendo $q$ un numero primo, esso deve essere presente o nella fattorizzazione di $p-1$ oppure in quella di $p+1$; in entrambi i casi $q \\leq p+1$. Per ipotesi iniziale avevamo $q \\geq p+1$ e quindi ottengo che $q=p+1$. Tra due numeri successivi uno necessariamente deve essere pari e dunque è $2$ (l'unico primo pari) e l'altro è necessariamente $3$ poiché $1$ non è primo. Ora controlliamo che si possa risolvere l'equazione in $n$ sostituendo $p=2$ e $q=3$ :\n$$\n4+9=6 n+1,\n$$\nda cui $n=2$. Le uniche due soluzioni sono dunque $(2,3,2)$ e $(3,2,2)$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33811, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nÈ dato un triangolo acutangolo isoscele $ABC$ di base $AC$. All'interno di tale triangolo sono dati un punto $M$, dalla parte di $C$ rispetto all'asse di $AC$ e tale che $C\\widehat{M}A = 2C\\widehat{B}A$, e un punto $N$ all'interno del segmento $AM$ tale che $B\\widehat{N}M = C\\widehat{B}A$.\n- Dimostrare che $C\\widehat{B}N = B\\widehat{A}M$.\n- Dimostrare che $CM + MN = BN$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nSia $P$ il punto di intersezione tra il prolungamento di $CM$ e $BN$ e sia $R$ il punto di intersezione tra il prolungamento di $AM$ e $BC$; indichiamo inoltre con $\\beta$ l'angolo $C\\widehat{B}A$.\n\nDimostrazione della prima parte\n\nDiamo due dimostrazioni di questo punto.\n\nPrimo argomento\n\nPer il teorema dell'angolo esterno applicato all'angolo in $N$ del triangolo $ABN$, $B\\widehat{A}M = B\\widehat{A}N = \\beta - N\\widehat{B}A$. Ma $C\\widehat{B}N + N\\widehat{B}A = C\\widehat{B}A = \\beta$, quindi $C\\widehat{B}N = \\beta - N\\widehat{B}A = B\\widehat{A}M$.\n\nSecondo argomento\n\nConsideriamo i triangoli $ABR$ e $BNR$: essi hanno l'angolo in $R$ in comune e gli angoli corrispondenti $R\\widehat{B}A$ e $B\\widehat{N}R$ uguali a $\\beta$ per ipotesi, quindi sono simili. Ma allora anche $R\\widehat{B}N = R\\widehat{A}B$ e quindi $C\\widehat{B}N = R\\widehat{B}N = R\\widehat{A}B = B\\widehat{A}M$.\n\nDimostrazione della seconda parte\n\nConsideriamo ora il triangolo $MNP$: l'angolo esterno in $M$ è $C\\widehat{M}N = C\\widehat{M}A$ e vale perciò $2\\beta$. Ma per il teorema dell'angolo esterno allora $M\\widehat{P}N = 2\\beta - P\\widehat{N}M = 2\\beta - \\beta = \\beta$ (quindi $MNP$ è isoscele).\n\nConsideriamo infine i triangoli $BCP$ e $ABN$: gli angoli corrispondenti in $P$ ed in $N$ sono complementari di angoli uguali per quanto appena dimostrato e sono quindi uguali, mentre gli angoli corrispondenti in $B$ ed in $A$ sono uguali per quanto visto nella prima parte. I due triangoli sono quindi simili, anzi congruenti in quanto il lato $BC$ del primo è uguale al lato corrispondente $AB$ del secondo ($ABC$ è isoscele per ipotesi). Quindi anche $CP = BN$ in quanto sono anch'essi lati corrispondenti di questi due triangoli. Ma poiché $MNP$ è isoscele, $CM + MN = CM + MP = CP$ e quindi $CM + MN = BN$, come volevasi dimostrare.\n\nDenominato $\\alpha$ l'angolo $A\\widehat{B}C$, il luogo dei punti interni al triangolo $ABC$ che vedono il segmento $AC$ sotto un angolo pari a $2\\alpha$ è un arco di circonferenza $\\Gamma$ passante per il circocentro $O$ di $ABC$; il teorema dell'angolo al centro garantisce infatti che si abbia $A\\widehat{O}C = 2A\\widehat{BC}$. Poiché $ABC$ è isoscele su base $AC$ ed acutangolo, $O$ si trova lungo l'asse del segmento $AC$ internamente al triangolo, e i triangoli $AOB$, $BOC$, $COA$ risultano isosceli. Detta $J$ l'intersezione di $\\Gamma$ con $CB$ e posto $\\theta = J\\widehat{A}M$, $\\phi = M\\widehat{A}O$ si ha:\n\n$\\theta = J\\widehat{C}M = J\\widehat{A}M$ in quanto entrambi sottendono l'arco $JM$ in $\\Gamma$,\n\n![](attached_image_1.png)\n\n$\\phi = M\\widehat{C}O = M\\widehat{A}O$ in quanto entrambi sottendono l'arco $MO$ in $\\Gamma$,\n\nma chiaramente $\\theta + \\phi = B\\widehat{C}O = \\frac{\\alpha}{2}$, alché:\n\n$$\nB\\widehat{N}M = \\alpha \\longrightarrow B\\widehat{N}A = C\\widehat{O}B = \\pi - \\alpha,\n$$\n\nda cui segue $A\\widehat{B}N = \\theta$. Detta $\\rho$ una simmetria rispetto all'asse di $AC$ seguita da una simmetria rispetto all'asse di $BA$, poniamo $P = \\rho(M)$. Poiché le simmetrie preservano gli angoli, $PB$ forma un angolo pari a $\\theta$ con $BA$, il che garantisce che $P$ giaccia su $BN$. La trasformazione $\\rho$, in quanto composizione di simmetrie assiali, è una rotazione antioraria di centro $O$ (intersezione dell'asse di $CB$ e dell'asse di $BA$) di ampiezza pari a $\\pi - \\alpha = C\\widehat{O}B$, in particolare realizza $CM = BP$ e $OM = OP$. Si ha inoltre:\n\n$$\nO\\widehat{M}A = O\\widehat{C}A = O\\widehat{A}C, \\quad O\\widehat{P}N = \\pi - O\\widehat{P}B = \\pi - O\\widehat{M}C\n$$\n\nma $O\\widehat{M}A$ ed $O\\widehat{A}C$ sottendono il medesimo arco $CO$ in $\\Gamma$ da parti opposte rispetto al centro, dunque sommano ad un angolo piatto. Il triangolo $MNP$ è conseguentemente isoscele per congruenza degli angoli che insistono su $MP$ e si ha:\n\n$$\nCM + MN = BP + MN = BP + PN = BN\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33812, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nIn quanti modi diversi si possono mettere in fila i numeri $\\{21,31,41,51,61,71,81\\}$ in modo che, comunque se ne scelgano quattro in posti consecutivi, la loro somma sia divisibile per tre?", "options": [], "answer": "144", "solution": "Solution:\nLa risposta è 144.\nPer brevità indicheremo con buono un modo di ordinare i numeri $a_{1}, \\ldots, a_{7}$ assegnati che soddisfi le caratteristiche richieste. Cerchiamo di stabilire alcune proprietà degli ordinamenti buoni.\n\ni) perché un ordinamento sia buono non è importante quali siano i numeri scelti dall'insieme assegnato ma soltanto qual è il resto della loro divisione per 3.\n\nii) il resto di ciascuno degli elementi di un ordinamento buono $(a_{1}, \\ldots, a_{7})$ è determinato completamente una volta scelto quello dei primi quattro elementi.\nInfatti dato che l'ordinamento è buono, sia $a_{2}+\\ldots+a_{5}=(a_{1}+\\ldots+a_{4})+(a_{5}-a_{1})$ che $a_{2}+\\ldots+a_{5}$ e $a_{1}+\\ldots+a_{4}$ sono divisibili per tre; inoltre, $a_{2}+\\ldots+a_{5}=(a_{1}+\\ldots+a_{4})+(a_{5}-a_{1})$ per cui anche $(a_{5}-a_{1})$ deve esserlo. Questo significa che $a_{5}$ ed $a_{1}$ se divisi per 3 danno lo stesso resto.\nAnalogamente possiamo dire la stessa cosa per le coppie $a_{2}, a_{6}$ e $a_{3}, a_{7}$.\n\niii) Il resto della divisione per tre di un numero intero può essere soltanto 0,1 o 2. Per brevità parleremo di numeri di tipo 0,1 o 2 a seconda di quale delle tre possibilità si presenti.\nLa somma di quattro numeri è divisibile per tre soltanto se (a meno dell'ordine) i quattro numeri sono dei tipi seguenti:\n$$\n0,0,0,0 \\quad \\text{oppure} \\quad 1,2,0,0 \\quad \\text{oppure} \\quad 1,2,1,2.\n$$\nNell'insieme a nostra disposizione abbiamo però soltanto 3 numeri di tipo $0$ ($21,51,81$), soltanto due ($31,61$) di tipo 1 e soltanto due ($41,71$) di tipo 2. Questo esclude la prima e la terza possibilità. Quest'ultima perché in base alla proprietà ii) dovremo necessariamente proseguire con altri elementi di tipo 1 o 2 che però non abbiamo a disposizione.\n\niv) Non tutti gli ordinamenti di 1,2,0,0 sono possibili: ancora per la proprietà ii) non possono esserci due numeri di tipo \"0\" nei primi tre posti. Se così non fosse troveremmo ancora due numeri di tipo \"0\" negli ultimi tre posti per un totale di quattro, ma ne abbiamo a disposizione soltanto tre.\nDi conseguenza il numero al quarto posto deve essere per forza di tipo \"0\" e i tipi degli elementi $a_{1}, a_{2}, a_{3}$ devono essere identici a quelli degli elementi $a_{5}, a_{6}, a_{7}$ rispettivamente.\nA questo punto siamo in grado di calcolare quanti sono gli ordinamenti buoni:\n- l'elemento al quarto posto può essere scelto solo tra $21, 51, 81$ ovvero in tre modi diversi;\n- ai primi tre posti ci deve essere un numero di tipo 0, uno di tipo 1 e uno di tipo 2. I modi possibili di ordinare i tipi di numero sono 6.\n- per ciascuno dei tipi dei primi tre elementi della sequenza è possibile scegliere tra due numeri diversi dell'insieme. Quindi per ciascuno dei modi di ordinare i tipi ci sono $2 \\times 2 \\times 2=8$ modi diversi di scegliere.\n- una volta fatte le scelte ai punti precedenti, gli elementi agli ultimi tre posti sono univocamente determinati.\n\nRiepilogando, il numero di ordinamenti buoni è:\n$$\n3 \\times 6 \\times 8=144.\n$$", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33813, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABC$ un triangolo equilatero di centro $O$ e area $1$. Siano $D$, $E$, $F$ i punti simmetrici di $O$ rispetto ai tre lati del triangolo. Quanto vale l'area in comune ai triangoli $ABC$ e $DEF$?\n\n(A) $\\frac{1}{3}$\n(B) $\\frac{2 \\sqrt{3}}{9}$\n(C) $\\frac{\\sqrt{2}}{3}$\n(D) $\\frac{\\sqrt{3}}{3}$\n(E) $\\frac{2}{3}$.", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è $\\mathbf{(E)}$. L'area che stiamo cercando è uguale all'area del triangolo $ABC$ al quale abbiamo sottratto i tre triangoli più piccoli che partono dai vertici di $ABC$. Questi triangoli sono anche essi equilateri (sono omomorfi ad $ABC$) e tutti congruenti. Notiamo inoltre che $ABC$ e $DEF$ sono congruenti. Consideriamo ad esempio il triangolino di vertice in $A$: la sua altezza è uguale alla distanza di $A$ dal lato parallelo a $BC$ del triangolo $DEF$. Per costruzione, $AO$ è il doppio di questa distanza e, per proprietà della mediana di un triangolo, $AO = OD$ è $\\frac{2}{3}$ dell'altezza del triangolo $DEF$ (e quindi di $ABC$). Essendo il triangolino omomorfo ad $ABC$ e con altezza $\\frac{1}{3}$ di quella di $ABC$, la sua area sarà $\\frac{1}{9}$ di quella di $ABC$. L'area dei tre triangolini sarà dunque $\\frac{1}{3}$ di quella di $ABC$ e l'area che stavamo cercando è $\\frac{2}{3}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33814, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nOgni numero naturale, zero incluso, è colorato di bianco o di rosso, in modo che:\n- vi siano almeno un numero bianco ed almeno un numero rosso;\n- la somma tra un numero bianco ed un numero rosso sia bianca;\n- il prodotto tra un numero bianco ed un numero rosso sia rosso.\n\nDimostrare che il prodotto di due numeri rossi è sempre un numero rosso e che la somma di due numeri rossi è sempre un numero rosso.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nLo zero è un numero rosso: infatti, se $0$ fosse bianco, dato che esiste un numero rosso $x$, avremmo che $0 + x = x$ è bianco per la seconda proprietà, contraddizione.\n\nUno è un numero bianco: infatti, se uno fosse rosso, dato che esiste un numero bianco $y$, avremmo che $y \\cdot 1 = y$ è rosso per la terza proprietà, contraddizione.\n\nSe non ci sono numeri rossi diversi da zero, la tesi è banale. Altrimenti, sia $k$ il più piccolo numero rosso maggiore di zero. Allora ogni numero non multiplo di $k$ è bianco: infatti, se $n$ non è multiplo di $k$, $n$ si può scrivere nella forma $n = qk + r$ con $0 < r < k$. Usiamo l'induzione su $q$.\n\nSe $q = 0$, $n$ è bianco per ipotesi. Supponendo vera l'ipotesi per $q-1$, abbiamo $n = [(q-1)k + r] + k$, che è bianco per la seconda proprietà.\n\nPer la terza proprietà, ogni multiplo di $k$ della forma $j \\cdot k$, con $j$ non divisibile per $k$, è rosso. Supponiamo ora che $n$ sia un multiplo di $k$ della forma $j \\cdot k$ con $j = l k$ divisibile per $k$, ossia che $n$ sia della forma $l \\cdot k^{2}$. Dall'uguaglianza $k + l \\cdot k^{2} = (1 + l k) \\cdot k$ abbiamo, per la seconda proprietà, che anche in questo caso $n$ deve essere rosso. Quindi i numeri rossi sono tutti e soli i multipli di $k$. In questo caso sia le ipotesi del problema sia la tesi sono banalmente verificate.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33815, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn un'isola ci sono due tipi di abitanti: i cavalieri, che dicono sempre la verità, e i furfanti, che mentono sempre. Abbiamo incontrato su quest'isola un gruppo di quattro abitanti che, interrogati sulla loro identità, hanno risposto:\nA: \"C'è almeno un furfante tra noi.\"\nB: \"Ci sono al massimo due cavalieri tra noi.\"\nC: \"Ci sono almeno tre furfanti tra noi.\"\nD: \"Non ci sono cavalieri tra noi.\"\nQuanti cavalieri ci sono in questo insieme di quattro abitanti?\n(A) Nessuno\n(B) 1\n(C) 2\n(D) 3\n(E) tutti.", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è $(\\mathbf{C})$. Le quattro affermazioni sono equivalenti a:\nA: \"C'è almeno un furfante tra noi.\"\nB: \"Ci sono almeno due furfanti tra noi.\"\nC: \"Ci sono almeno tre furfanti tra noi.\"\nD: \"Ci sono almeno quattro furfanti tra noi.\"\nSe ci sono $x$ furfanti, tutte e sole le prime $x$ affermazioni sono vere, dunque ci sono $x$ cavalieri. Dato che furfanti e cavalieri sono nello stesso numero e in tutto devono essere quattro, avremo due cavalieri e due furfanti.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33816, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAntonio, Beppe, Carlo e Duccio si distribuiscono casualmente le 40 carte di un mazzo, 10 a testa. Antonio ha l'asso, il due e il tre di denari. Beppe ha l'asso di spade e l'asso di bastoni. Carlo ha l'asso di coppe. Chi è più probabile che abbia il 7 di denari?\n\n(A) Antonio\n(B) Beppe\n(C) Carlo\n(D) Duccio\n(E) due o più giocatori hanno la stessa probabilità di averlo.", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). Intuitivamente, le posizioni delle carte rimanenti sono equiprobabili, quindi è più probabile che il 7 di denari finisca a Duccio \"perché ha più spazio libero\". Più formalmente: contiamo i modi di distribuire 34 carte tra 4 persone, in modo che uno ne riceva 10, uno 9, uno 8 e uno 7: possiamo distribuire ordinatamente 34 carte in $34!$ modi diversi, ma ognuno di questi viene contato tante volte quante sono i possibili modi di ordinare separatamente $10, 9, 8$ e $7$ carte, cioè $10! 9! 8! 7!$ (la formula è la stessa degli anagrammi con ripetizione). Quindi abbiamo $P = \\frac{34!}{10! 9! 8! 7!}$ casi possibili. Quante sono le configurazioni in cui Antonio ha il 7 di denari? Per un conto analogo a quello appena svolto, sono $P_A = \\frac{33!}{10! 9! 8! 6!}$. Quindi, semplificando più fattori possibili, si ha $\\frac{P_A}{P} = \\frac{7}{34}$ del totale dei casi possibili. Analogamente otteniamo $\\frac{P_B}{P} = \\frac{8}{34}$, $\\frac{P_C}{P} = \\frac{9}{34}$, $\\frac{P_D}{P} = \\frac{10}{34}$.\n\nSECONDA SOLUZIONE\n\nLa probabilità è definita come casi favorevoli/casi possibili; qui considereremo \"caso\" un qualunque possibile ordinamento delle 40 carte. Contiamo i casi possibili, cioè i possibili modi di riordinare 40 carte in modo che le carte A, B, C siano in tre delle posizioni 1-10, le carte D, E siano in due delle posizioni 11-20, la carta E sia in una delle posizioni 21-30. Per fare questo, fissiamo innanzitutto le posizioni delle carte \"obbligate\": possiamo posizionare A, B, C in $10 \\cdot 9 \\cdot 8$ modi, $\\mathrm{D}, \\mathrm{E}$ in $10 \\cdot 9$ modi, F in 10 modi. Quindi abbiamo $10^3 \\cdot 9^2 \\cdot 8$ modi di fissare la posizione delle sei carte note. Le restanti carte possono andare nelle posizioni rimaste libere in un qualunque ordine, e questi ordinamenti sono $34!$ (difatti, ogni possibile ordinamento delle 40 carte che soddisfa i requisiti richiesti si ottiene in uno e un solo modo scegliendo la posizione delle 6 carte \"obbligate\" e l'ordine in cui compaiono negli spazi liberi le 34 carte \"libere\"). Quindi i casi possibili sono $P = 10^3 \\cdot 9^2 \\cdot 8 \\cdot 34!$. Un calcolo analogo fornisce $F_A = 10^3 \\cdot 9^2 \\cdot 8 \\cdot 7 \\cdot 33!$ per i casi in cui fissiamo il vincolo aggiuntivo che il 7 di denari sia nella mano di A, e allo stesso modo $F_B = 10^3 \\cdot 9^2 \\cdot 8^2 \\cdot 33!$, $F_C = 10^3 \\cdot 9^3 \\cdot 8 \\cdot 33!$, $F_D = 10^4 \\cdot 9^2 \\cdot 8 \\cdot 33!$. Quindi le probabilità da confrontare sono $\\frac{F_A}{P} = \\frac{7}{34}$, $\\frac{F_B}{P} = \\frac{8}{34}$, $\\frac{F_C}{P} = \\frac{9}{34}$, $\\frac{F_D}{P} = \\frac{10}{34}$, e la maggiore è $\\frac{F_D}{P}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33817, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nNel paese di Cuccagna si gioca al seguente solitario. Si parte da una stringa finita di zeri e uni, e sono concesse le mosse seguenti:\n(i) cancellare due uni consecutivi;\n(ii) cancellare tre zeri consecutivi;\n(iii) se all'interno della stringa c'è la sottostringa 01, si può sostituire questa sottostringa con 100.\nLe mosse (i), (ii) e (iii) devono essere fatte una alla volta e in successione. Si vince se si riesce a ridurre la stringa ad una formata da due cifre o meno.\n(Per esempio, partendo da 0101 si può vincere usando innanzitutto la mossa (iii) sulle due cifre finali, ottenendo 01100, poi giocando la mossa (i) sui due uni di questa, ed infine la mossa (ii) sui tre zeri rimasti: così si ottiene la stringa vuota.)\nQuante sono fra tutte le 1024 stringhe possibili di dieci cifre quelle a partire dalle quali non è possibile vincere il solitario?", "options": [], "answer": "1", "solution": "Solution:\n\nDimostro che l'unica stringa di dieci cifre partendo dalla quale non è possibile vincere il solitario è 1111100000 (cinque uni seguiti da cinque zeri).\nData una stringa considero queste due quantità:\n- il numero degli uni,\n- il peso totale degli zeri, dove uno zero alla cui destra compaiano $i$ uni pesa $2^{i}$. (Per esempio ciascuno degli zeri della stringa 001 pesa 2.)\nLa mossa (iii) lascia inalterate entrambe le quantità, perché non cambia il numero degli uni e sostituisce uno zero con due che pesano, ciascuno, la metà. Ad ogni stringa assegno, quindi, un tipo rappresentato da una coppia di numeri: il primo è il resto della divisione per 2 del numero degli uni, il secondo è il resto della divisione per 3 del peso degli zeri. Nessuna delle mosse, come abbiamo già visto per la mossa (iii), altera il tipo della stringa. La mossa (ii), infatti, rimuove tre zeri dello stesso peso, quindi diminuisce il peso di un multiplo di 3, e non tocca gli uni. La mossa (i) rimuove un multiplo di 2 di uni, però altera il peso degli zeri alla loro sinistra. Tuttavia, detto $p$ il peso di questi zeri dopo la mossa, il peso prima era $4p$, ossia è diminuito di $3p$, un multiplo di 3.\nDimostro ora che partendo da una stringa di tipo $(a, b)$ diverso da $(1,2)$ è possibile vincere. Inizio giocando la mossa (iii) finché posso. Questo passo deve avere termine perché ad ogni applicazione della mossa (iii) si aggiunge uno zero, tuttavia il numero degli zeri non può superare il loro peso totale, che rimane costante. Quando non posso più giocare la mossa (iii), la stringa deve essere costituita da $2n+a$ uni seguiti da $3m+b$ zeri. A questo punto gioco $n$ volte la mossa (i) sugli uni e $m$ volte la mossa (ii) sugli zeri, ottenendo una stringa di $a$ uni seguiti da $b$ zeri. Siccome il tipo $(a, b)$ è diverso da $(1,2)$ la somma $a+b$ deve essere minore di tre, quindi ho vinto.\nChiamo brutte le stringhe costituite da $2n+1$ uni consecutivi seguiti da $3m+2$ zeri consecutivi: è chiaro che una stringa brutta non può essere ridotta che a una stringa brutta, e 100 è la più corta stringa brutta possibile. Quindi partendo da una stringa brutta non si può vincere. Mostrerò nel seguito una strategia per vincere partendo da stringhe di tipo $(1,2)$ che non siano brutte. Ne segue che le uniche stringhe partendo dalle quali non è possibile vincere sono quelle brutte.\nInnanzitutto, se la stringa - che da ora supponiamo di tipo $(1,2)$, ma non brutta - termina con tre o più zeri, applico a questi la mossa (ii) fino a ridurli a meno di tre. La stringa così ottenuta ricadrà in una di queste forme:\nA - $X1$ con $X$ di tipo $(0,1)$\nB - $X10$ con $X$ di tipo $(0,2)$\nC - $X100$ con $X$ di tipo $(0,0)$.\nLe esamino separatamente.\nNel caso A, gioco il solitario su $X$ (dove so come vincere). Riduco quindi $X$ alla stringa 0. In questo modo ho ridotto la mia stringa iniziale a 01, e ho vinto.\nAnalogamente, nel caso B, riduco $X$ a 00, ho quindi condotto la stringa a 0010. Ora vinco per mezzo delle mosse $0010 \\rightarrow 01000 \\rightarrow 01$ (per chiarezza, scrivo in grassetto le cifre su cui gioco una mossa).\nIl caso C è leggermente più complicato. Osservo che $X$ non è composta da soli uni, perché altrimenti la stringa di partenza sarebbe stata brutta. Quindi in $X$ ho almeno uno zero. O questo zero è l'ultima cifra di $X$, oppure, a furia di mosse (iii), posso modificare $X$ in modo da ottenere una stringa con uno zero al fondo. A questo punto ho ridotto $X100$ alla forma $Y0100$. Il tipo di $Y$ deve essere $(0,2)$. Come prima, gioco il solitario su $Y$ riducendola a 00. Ho quindi ridotto la mia stringa iniziale a 000100. Ora vinco facendo $000100 \\rightarrow 0010000 \\rightarrow 01000000 \\rightarrow 01000 \\rightarrow 01$.\nOsservando, ora, che 1111100000 è l'unica stringa brutta di dieci cifre ho l'asserto.\nSolution:\n\nSostengo che l'unica stringa di dieci cifre partendo dalla quale non è possibile vincere il solitario è 1111100000 (cinque uni seguiti da cinque zeri).\nPasso 1 Intendo dimostrare che ogni stringa può essere ridotta ad una delle seguenti: $\\perp, 0, 1, 00, 10, 100$ (indico con $\\perp$ la stringa vuota).\nData una stringa $s$, considero la più breve stringa $s'$ che possa essere ottenuta a partire da essa. Chiaramente $s'$ non contiene coppie di uni adiacenti, quindi, se in essa compare un uno, questo si trova all'inizio, alla fine, o in una sottostringa 010. Il terzo caso, tuttavia, è assurdo, perché $s'$ potrebbe essere accorciata mediante le mosse $\\mathbf{010} \\rightarrow \\mathbf{1000} \\rightarrow 1$ (scrivo in grassetto le cifre su cui gioco una mossa). Quindi $s'$ contiene al più due uni, e una sequenza ininterrotta di zeri. Questa, d'altro canto, non può contenere più di due zeri. Quindi la stringa $s'$ è una delle stringhe indicate sopra, oppure:\n$$\n\\begin{aligned}\n\\mathbf{11} & \\rightarrow \\perp \\\\\n101 & \\rightarrow \\mathbf{1100} \\rightarrow 00 \\\\\n1001 & \\rightarrow 10100 \\rightarrow \\mathbf{110000} \\rightarrow \\mathbf{0000} \\rightarrow 0 \\\\\n\\mathbf{01} & \\rightarrow 100 \\\\\n0\\mathbf{01} & \\rightarrow \\mathbf{0100} \\rightarrow \\mathbf{10000} \\rightarrow 10\n\\end{aligned}\n$$\nPasso 2 Dimostro che partendo da una stringa $s$ che inizia con uno zero è possibile vincere.\nLa stringa $s$ è di tipo $0X$. Sfruttando il passo 1 riduco $X$ a una delle stringhe elencate. A questo punto ho ottenuto una delle seguenti stringhe: $0, 00, 01, \\mathbf{000} \\rightarrow \\perp, 010 \\rightarrow 1$ (come sopra), $\\mathbf{0100} \\rightarrow 10000 \\rightarrow 10$.\nPasso 3 Partendo da una stringa che inizia per 1 si può vincere a patto che questa non sia 1111100000.\nConsidero il caso in cui la stringa è costituita da $2n+a$ uni seguiti da $3m+b$ zeri, con $a=0,1$ e $b=0,1,2$. Allora la mossa (iii) non può essere giocata, e le mosse (i) e (ii) hanno rispettivamente l'effetto di diminuire $n$ ed $m$ di uno. Ne deduco che la più breve stringa che possa essere ottenuta è costituita da $a$ uni seguiti da $b$ zeri. L'unico caso in cui questa non ha lunghezza maggiore di due è con $a=1$ e $b=2$, che, per stringhe di lunghezza 10 è possibile solo nel caso 1111100000.\nRimane il caso in cui la stringa inizia con $n$ uni, seguiti da $m$ zeri, seguiti a loro volta da un uno. Se $n$ è pari, usando la mossa (i) mi riduco al caso del passo 2. Se, però, $n$ è dispari, posso sfruttare la mossa (iii) per spostare l'uno a destra degli zeri verso sinistra, in modo da ricondurmi al caso in cui gli uni sono pari.\nFaccio così: considero la sottostringa costituita da $m$ zeri seguiti dall'uno. Applicando la mossa (iii) alla sottostringa 01 che si trova al fondo di questa ottengo una nuova stringa che inizia per $m-1$ zeri seguiti da un uno (e poi due zeri). Ripetendo il procedimento altre $m-1$ volte avrò una stringa che inizia per 10, che è ciò che mi serve.", "topic": "Algebra", "subtopic": "Abstract Algebra" }, { "id": 33818, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nPer quanti interi relativi $n$ si ha che $\\frac{3 n}{n+5}$ è intero e divisibile per $4$?\n(A) 1\n(B) 2\n(C) 4\n(D) 8\n(E) più di 8.", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è **(C)**. Sostituendo $m = n + 5$, l'espressione data diventa $\\frac{3m - 15}{m}$, cioè $3 - \\frac{15}{m}$. Affinché sia intera, quindi, $m$ deve essere un divisore di $15$, per cui le possibilità sono solo $1, 3, 5, 15$ e i loro opposti. Di queste, le uniche per cui l'espressione è un multiplo di $4$ sono $1, -3, 5$ e $-15$, per cui gli $n$ cercati sono $-20, -8, -4$ e $0$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33819, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLa casa di Dante si trova nel punto $D$ ai piedi di una montagna conica con il diametro di base di $4~\\mathrm{km}$ e cima nel punto $C$. Si sa che $D$ dista da $C$ $4~\\mathrm{km}$ in linea retta e che, detto $P$ il punto diametralmente opposto a $D$ rispetto alla base della montagna, la porta dell'Inferno si trova a $3/4$ del segmento $CP$, più vicino a $P$. Quale distanza deve percorrere Dante al minimo (camminando sulle pendici della montagna) per poter raggiungere la porta dell'Inferno da casa sua?\n\n(A) $\\pi+1~\\mathrm{km}$\n(B) $5~\\mathrm{km}$\n(C) $2\\pi~\\mathrm{km}$\n(D) $7~\\mathrm{km}$\n(E) $2\\pi+1~\\mathrm{km}$.", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è (B). Sviluppiamo sul piano la superfice laterale della montagna, tagliandola lungo il segmento $DC$. Si avrà un settore circolare di centro $C$, raggio $4~\\mathrm{km}$, ossia la lunghezza di $DC$, e delimitato da un arco di circonferenza di $4\\pi~\\mathrm{km}$, ossia la circonferenza di base della montagna originaria. Lo sviluppo sarà allora un semicerchio. In particolare il punto $D$ si troverà ad uno degli estremi dell'arco di circonferenza che delimita il semicerchio e $P$ a metà di quest'arco, perciò l'angolo $P\\widehat{C}D$ sarà retto. Inoltre $CD=4~\\mathrm{km}$, la distanza tra $C$ e la porta dell'Inferno è di $3~\\mathrm{km}$, allora la distanza tra $D$ e la porta dell'Inferno è di $5~\\mathrm{km}$ per il teorema di Pitagora.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33820, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDimostrare che esistono infiniti numeri primi che dividono almeno un intero della forma $2^{n^{3}+1}-3^{n^{2}+1}+5^{n+1}$ con $n$ intero positivo.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nSupponiamo che l'insieme $S$ dei primi che dividono gli interi della forma $a_{n}=2^{n^{3}+1}-3^{n^{2}+1}+5^{n+1}$ sia finito. Troveremo una contraddizione esibendo un intero $n$ tale che $a_{n}$ possiede almeno un fattore primo che non appartiene ad $S$.\n\nSia $n$ il prodotto di tutti i numeri $p-1$ al variare di $p$ in $S$ (cioè $n$ è la funzione di Eulero del prodotto dei primi in $S$ ). Poiché $a_{1}=2^{2}-3^{2}+5^{2}=20=2^{2} \\cdot 5$, allora $4=5-1$ divide $n$. Inoltre, per ogni $p \\in S$, eccetto eventualmente i casi $p=2,3,5$, si ha, per il piccolo teorema di Fermat, $2^{n} \\equiv 3^{n} \\equiv 5^{n} \\equiv 1(\\bmod p)$, da cui\n$$\na_{n}=2^{n^{3}+1}-3^{n^{2}+1}+5^{n+1} \\equiv 2-3+5 \\equiv 4 \\quad(\\bmod p) \\quad \\forall p \\in S, p \\neq 2,3,5\n$$\nNessuno dei primi di $S$ può pertanto dividere $a_{n}$, eccetto eventualmente 2, 3 e 5. D'altra parte $a_{n}$ non è divisibile per 3: infatti, poiché $n$ è pari, si ha $a_{n} \\equiv 2-0+2 \\equiv 1(\\bmod 3)$. Inoltre $a_{n}$ non è nemmeno divisibile per 5: infatti, poiché $n$ è multiplo di $4$, $a_{n} \\equiv 2-3+0 \\equiv -1(\\bmod 5)$. Se, per assurdo, $a_{n}$ avesse solamente fattori primi appartenenti ad $S$, allora $a_{n}$ dovrebbe essere necessariamente una potenza di 2. Dato che $n \\geq 2$, si ha $0<3^{n^{2}+1}-5^{n+1}<2^{n^{3}}$, da cui\n$$\n2^{n^{3}}=2^{n^{3}+1}-2^{n^{3}} 0$. Inoltre l'ipotesi ci assicura che $a, b$ sono due numeri naturali.\n\n$\\frac{a}{m} = 4,6 = \\frac{23}{5} \\quad \\Rightarrow \\quad 23m = 5a ; \\quad \\frac{b}{n} = 7,1 = \\frac{71}{10} \\quad \\Rightarrow \\quad 71n = 10b ;$\n\nDato che 5 non divide $23$, $m$ sarà multiplo di 5. Allo stesso modo $n$ sarà multiplo di 10. Al minimo, $m = 5$ e $n = 10$, dunque un totale di 15 alunni. È facile verificare che ci possa essere una situazione del genere che rispetti le nostre ipotesi, ad esempio l'insieme di voti $4, 4, 5, 5, 5, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33823, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nI rossi e i verdi stanno facendo una battaglia a gavettoni. La base dei rossi è un'area a forma di triangolo equilatero di lato 8 metri. I verdi non possono entrare nella base dei rossi, ma possono lanciare i loro proiettili nella base stando comunque fuori dal perimetro. Sapendo che i verdi riescono a colpire un bersaglio fino ad una distanza massima di 1 metro, quanto è grande (in metri quadrati) la zona all'interno della base dei rossi al sicuro dalla portata di tiro dei verdi?\n\n(A) $19 \\sqrt{3}-24$\n(B) $4 \\sqrt{3}$\n(C) $3 \\sqrt{3}$\n(D) $19-8 \\sqrt{3}$\n(E) ogni punto dell'area rossa è a portata di tiro dei verdi.", "options": [], "answer": "A", "solution": "Solution:\n\nLa risposta è $\\mathbf{(A)}$. Detto $ABC$ il triangolo che forma la base, la zona di sicurezza è un triangolo $A'B'C'$ (con $A'$ appartenente alla bisettrice dell'angolo in $A$ e cicliche) interno al triangolo $ABC$. Dette $H$ e $K$ le proiezioni di $A'$ e $B'$ rispettivamente sul lato $AB$, si ha $A'H=1$ metro. Poiché il triangolo $A'AH$ è un mezzo triangolo equilatero (gli angoli in $A$, $A'$, e $H$ valgono rispettivamente $30^\\circ$, $60^\\circ$ e $90^\\circ$), il lato $AH$ è lungo $2 \\cdot 1 \\cdot \\frac{\\sqrt{3}}{2} = \\sqrt{3}$, da cui $A'B' = HK = AB - AH - BK = AB - 2 \\cdot AH = 8 - 2 \\cdot \\sqrt{3}$ metri. Quindi l'area del triangolo $A'B'C'$ è data da\n\n![](attached_image_1.png)\n\n$$(8-2 \\cdot \\sqrt{3})^2 \\cdot \\frac{\\sqrt{3}}{4} = (64 + 12 - 32 \\sqrt{3}) \\cdot \\frac{\\sqrt{3}}{4} = 19 \\sqrt{3} - 24,$$\n\nche è l'area cercata (in metri quadrati).", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33824, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nGabriele, l'amante dei cubi, ha comprato un magnifico pezzo da collezione: un cubo interamente composto di cioccolato, avente gli spigoli lunghi $10~\\mathrm{cm}$. Purtroppo, avendo perso una scommessa con due suoi amici, dovrà cedere due terzi del volume del blocco di cioccolato. Gabriele ha deciso di prendere come propria porzione di cioccolato un cubo più piccolo, avente uno dei suoi vertici coincidente con uno dei vertici del cubo di cioccolato comprato e le facce parallele a quelle del cubo comprato. Alla fine, cede ai due amici il cioccolato rimasto. Indichiamo con $S$ la superficie totale del blocco di cioccolato ceduto, espressa in $\\mathrm{cm}^2$. Allora si ha...\n\n(A) $300 \\leq S \\leq 350$\n(B) $350 \\beta$ dato che $y$ deve essere positivo. L'equazione $\\alpha + \\beta = 2010$ con $\\alpha > \\beta$ ha esattamente $1005$ soluzioni. Dato che $x$ ed $y$ sono univocamente determinati da $\\alpha$ e da $\\beta$ ne segue che anche le soluzioni dell'equazione iniziale sono esattamente $1005$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33828, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $x_{1} \\ldots x_{n}$ una sequenza finita di numeri reali tali che:\ni) la somma di 7 suoi termini consecutivi sia sempre strettamente positiva;\nii) la somma di 13 suoi elementi consecutivi sia sempre strettamente negativa.\nQuale delle seguenti affermazioni è vera?\n(A) La sequenza ha al più 18 termini\n(B) La sequenza può avere 19 termini\n(C) La sequenza ha esattamente 21 termini\n(D) La sequenza ha almeno 18 termini\n(E) Esistono sequenze di lunghezza arbitraria che soddisfano i) e ii).", "options": [], "answer": "A", "solution": "Solution:\n\nLa risposta è (A). Basta osservare che se la sequenza ha più di 18 elementi allora la quantità:\n$$\nX=\\left(x_{1}+\\ldots+x_{7}\\right)+\\left(x_{2}+\\ldots+x_{8}\\right)+\\ldots+\\left(x_{13}+\\ldots+x_{19}\\right)\n$$\nè sia strettamente maggiore di zero che strettamente minore di zero, infatti: è strettamente maggiore di zero per la condizione (i), mentre è minore di zero dato che, a patto di riarrangiare i termini della somma destra, si ha che:\n$$\nX=\\left(x_{1}+\\ldots+x_{13}\\right)+\\left(x_{2}+\\ldots+x_{14}\\right)+\\ldots+\\left(x_{7}+\\ldots+x_{19}\\right)\n$$\nche per (ii) è una quantità strettamente minore di zero. Dunque la risposta non può che essere la (A).", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33829, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABC$ un triangolo equilatero, indichiamo con $D, E, F$ i punti medi dei lati. Quanti triangoli non degeneri e non congruenti fra loro si possono ottenere scegliendo 3 dei punti $A, B, C, D, E, F$?\n\nQuante sono le coppie ordinate $(x, y)$ di interi relativi che verificano l'equazione $y^{4}-8 y^{2}+7=8 x^{2}-2 x^{2} y^{2}-x^{4}$?", "options": [], "answer": "First: 4; Second: 4", "solution": "Solution:\n\nLa risposta è 4. A meno di isometrie è possibile determinare un triangolo ottusangolo, un triangolo rettangolo e due diversi triangoli equilateri.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33830, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nQuante sono le coppie ordinate $(x, y)$ di interi relativi che verificano l'equazione $y^{4}-8 y^{2}+7=8 x^{2}-2 x^{2} y^{2}-x^{4}$?", "options": [], "answer": "4", "solution": "Solution:\n\nLa risposta è 4. L'equazione proposta è equivalente a:\n$$\n\\left(x^{2}+y^{2}-1\\right)\\left(x^{2}+y^{2}-7\\right)=0,\n$$\nle cui soluzioni sono date dalle coppie $(x, y)$ di interi che realizzano $x^{2}+y^{2}=1$ oppure $x^{2}+y^{2}=7$. L'ultima equazione, tuttavia, è impossibile, dato che un intero che sia somma di due quadrati non può avere resto 3 nella divisione per 4. Segue che tutte e sole le soluzioni sono $(\\pm 1,0)$ e $(0, \\pm 1)$.\n\n(Alfieri)", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33831, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nDimostrare che tutte le potenze di $3$ hanno la cifra delle decine pari.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nSia $r(k)$ il resto di $3^{k}$ nella divisione per $20$. Al fine di provare la tesi, è sufficiente mostrare che per ogni numero naturale $k$ si ha $r(k)<10$. È evidente che $3 \\cdot r(k)$ ed $r(k+1)$ hanno lo stesso resto nella divisione per $20$: si ha perciò $r(0)=1$, $r(1)=3$, $r(2)=9$, $r(3)=7$, $r(4)=r(0)=1$, $r(5)=r(1)=3$, \\ldots, e la successione degli $r(k)$ risulta periodica di periodo $4$. Segue che la condizione $r(k)<10$ è verificata da ogni numero naturale $k$ in quanto è verificata dai primi $4$, e la tesi è provata.\n\nSoluzione alternativa:\nLa cifra delle unità di un numero della forma $3^{k}$ appartiene necessariamente all'insieme $\\{1,3,7,9\\}$, in quanto un numero siffatto è dispari e non divisibile per $5$. Procediamo allora per induzione su $k$: la tesi è vera nel caso $k=0$; posto che la cifra delle decine di $3^{k}$ sia $y$, la cifra delle decine di $3^{k+1}$ coincide con la cifra delle unità di $3y$ o di $3y+2$, dunque è pari per ipotesi induttiva.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33832, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABC$ un triangolo acutangolo, e siano $D, E$ i piedi delle altezze uscenti da $A, B$. Siano $A'$ il punto medio di $AD$, $B'$ il punto medio di $BE$. $CA'$ interseca $BE$ in $X$, $CB'$ interseca $AD$ in $Y$. Dimostrare che esiste una circonferenza passante per i punti $A', B', X, Y$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nI triangoli $ADC$ e $BEC$ sono simili in quanto triangoli rettangoli con il medesimo angolo in $C$: segue che anche i triangoli $BB'C$ e $AA'C$ risultano simili, e che, in particolare, vale $\\widehat{BB'C} = \\widehat{CA'A}$. Vi sono ora due casi: o il quadrilatero $A'XB'Y$ è intrecciato, o non lo è.\n\n![](attached_image_1.png)\n\nNel primo caso, $A'$ e $B'$ vedono il segmento $XY$ sotto lo stesso angolo.\n\n![](attached_image_2.png)\n\nNel secondo caso, il quadrilatero $A'XB'Y$ ha due angoli opposti supplementari. In entrambi i casi, quanto provato è sufficiente a stabilire la ciclicità del quadrilatero $A'XB'Y$, ossia l'appartenenza dei vertici $A', X, B', Y$ ad una medesima circonferenza.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33833, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $n$ un intero positivo. Un treno ferma in $2 n$ stazioni, incluse quella iniziale e finale, numerate in ordine dalla prima alla $2 n$-esima. Si sa che in una certa carrozza, per ogni coppia di interi $i, j$ tali che $1 \\leq ij-(n+1)$, il passeggero che viaggia tra la $i$-esima e la $j$-esima stazione avrà uno dei $2 n-2 i+1$ posti occupati per il tragitto tra la stazione $i$-esima e la $2 n+1-i$-esima, e simmetricamente se $n-i1$, per i passeggeri che viaggiano tra le stazioni $i$-esima e la $j$-esima con $1 1$; prendiamo poi un intero $d > n$ che abbia fattori in comune con ognuno degli elementi $a_{1}, \\ldots, a_{n}$ (ad esempio, il prodotto $a_{1} a_{2} \\cdots a_{n}$), e fissiamo $b_{1} = a_{1} + d, b_{2} = a_{2} + d, \\ldots, b_{n} = a_{n} + d$. Ancora una volta le scalette $a_{1}, a_{2}, \\ldots, a_{n}$ e $b_{1}, b_{2}, \\ldots, b_{n}$ sono disgiunte fra loro, ma in questo caso $a_{i}$ e $b_{i}$ hanno sempre un fattore in comune: infatti $a_{i}$ e $d$ hanno sempre un fattore in comune, e quindi lo stesso è vero per $a_{i}$ e $d + a_{i} = b_{i}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33835, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nNel bosco dell'albero viola ci sono tre tipi di animali in grado di parlare: volpi, serpenti e tartarughe. Le prime mentono solo i giorni di pioggia, i secondi mentono sempre, le terze dicono sempre la verità. Un giorno l'esploratore Berny parla con quattro animali. Le loro affermazioni, riportate nell'ordine in cui sono state dette, sono:\nA: \"Oggi piove.\"\nB: \"L'animale che ha parlato prima di me mente.\"\nC: \"Oggi è sereno.\"\nD: \"Quello che ha parlato prima di me mente o io sono una volpe.\"\nCon quante tartarughe al massimo ha parlato Berny?\n(A) 1\n(B) 2\n(C) 3\n(D) 4\n(E) Non è possibile determinarlo.", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è (B). Consideriamo le due possibilità: piove oppure non piove.\n\nSe piove le volpi e i serpenti mentono, mentre le tartarughe dicono il vero. Allora $A$, che dice la verità, è necessariamente una tartaruga. $B$ mente, quindi è una volpe o un serpente. Allo stesso modo mente $C$, che è quindi una volpe o un serpente. $D$ dice la verità, perché $C$ mente, quindi è una tartaruga. Ci sono allora esattamente due tartarughe.\n\nSe non piove i serpenti mentono, mentre volpi e tartarughe dicono la verità. Allora $A$, che mente, è necessariamente un serpente, mentre $B$ dice la verità ed è quindi una volpe o una tartaruga. $C$ dice la verità, quindi è anch'esso una volpe o una tartaruga. Poiché $C$ non ha mentito $D$ può essere una volpe, nel qual caso la frase è vera, oppure un serpente, nel qual caso la frase è falsa. In questo caso ci sono quindi al più due tartarughe.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33836, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nGiulio scrive un polinomio $P_{1}(x)$ e un altro polinomio $P_{2}(x)$, prodotto di fattori di primo grado, avente grado strettamente maggiore del precedente. Eseguendo la divisione di $P_{2}(x)$ per $P_{1}(x)$, si ottiene resto $0$. Indicando con $Q(x)$ il quoziente di tale divisione, quale delle seguenti affermazioni è sempre vera?\n\n(A) $Q(x)$ può essere una costante\n(B) Se $P_{2}(a)=0$, allora $Q(a)=0$\n(C) Esiste un numero reale $a$ tale che $P_{2}(a)=Q(a)=0$\n(D) $Q(x)$ ha certamente grado minore di $P_{1}(x)$\n(E) Se $P_{1}(a)=0$, allora $Q(a)=0$.", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è $(\\mathbf{C})$. $P_{2}$ si può scrivere come prodotto di fattori di primo grado, quindi esso sarà del tipo\n$$\n\\left(x-\\alpha_{1}\\right)^{m_{1}} \\ldots\\left(x-\\alpha_{k}\\right)^{m_{k}}\n$$\ndove $\\alpha_{1}, \\ldots, \\alpha_{k}$ sono tutte e sole le soluzioni dell'equazione $P_{2}(x)=0$. Dato che $P_{1}$ divide $P_{2}$, se ne deduce che anche $P_{1}$ si scrive come prodotto di fattori di primo grado ed in particolare come prodotto degli stessi fattori di $P_{2}$ ma con molteplicità minore o uguale, ovvero\n$$\nP_{1}=\\left(x-\\alpha_{1}\\right)^{n_{1}} \\ldots\\left(x-\\alpha_{k}\\right)^{n_{k}}\n$$\ncon $n_{1} \\leq m_{1}, \\ldots, n_{k} \\leq m_{k}$. Poiché $P_{1}$ ha grado strettamente minore di $P_{2}$, almeno una delle precedenti relazioni deve essere un minore stretto, il che implica che esiste almeno un fattore di primo grado che divide sia $P_{2}$ che $Q$, ovvero che esiste almeno un numero reale $a$ tale che $P_{2}(a)=Q(a)=0$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33837, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSu una lavagna sono scritti dei numeri interi, compresi fra 1 e 7. È possibile che non tutti i numeri da 1 a 7 siano presenti, ed è anche possibile che uno, alcuni o tutti i numeri siano ripetuti, una o più volte.\n\nUna mossa consiste nello scegliere uno o più numeri presenti sulla lavagna, purché tutti diversi, cancellarli, e scrivere al loro posto i numeri che, unitamente a quelli cancellati, formano l'intero insieme $\\{1,2,3,4,5,6,7\\}$.\n\nAd esempio, mosse consentite sono:\n- cancellare un 4 ed un 5, e scrivere al loro posto i numeri 1, 2, 3, 6 e 7;\n- cancellare un 1, un 2, un 3, un 4, un 5, un 6 ed un 7 senza scrivere niente al loro posto.\n\nDimostrare che, se è possibile trovare una sequenza di mosse che, partendo dalla situazione iniziale, porti ad avere sulla lavagna un unico numero (scritto una sola volta), allora questo numero non dipende dalla sequenza di mosse utilizzata.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nChiamiamo $n_{1}$ il numero di cifre 1 presenti in un certo momento sulla lavagna, $n_{2}$ il numero di cifre 2, e così via fino ad $n_{7}$.\n\nOgni volta che si fa una mossa, ognuna di queste molteplicità cambia di 1 (e quindi inverte la sua parità), perché ogni numero tra 1 e 7 viene scritto o cancellato. Supponiamo che dopo una sequenza di $k$ mosse rimanga sulla lavagna un unico numero, diciamo $x$; $n_{x}$ ha cambiato parità $k$ volte ed è infine dispari; tutte le altre molteplicità, cambiando parità anch'esse $k$ volte, risultano infine uguali a zero, quindi pari.\n\nAnche nella situazione iniziale, perciò, $n_{x}$ deve avere parità diversa da ogni altra molteplicità. Non esiste quindi alcuna sequenza di mosse che porti ad avere sulla lavagna un'unica copia di un numero $y$ diverso da $x$: $n_{y}$ dovrebbe partire con parità diversa da tutte le altre molteplicità, ma abbiamo già stabilito che ha la stessa parità di $n_{z}$ per tutti i numeri $z$ diversi da $x$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33838, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nQuanti sono i numeri primi che possono essere espressi nella forma $n^{n+1}+1$, con $n$ intero positivo?\n\n(A) 0\n(B) 1\n(C) 2\n(D) più di 2, ma in numero finito\n(E) infiniti.", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è (B). Consideriamo il caso in cui $n$ sia dispari. Allora una qualunque sua potenza è dispari, e il numero successivo è pari. L'unico numero primo pari è $2$, ed è possibile ottenerlo solo nel caso $n=1$. Consideriamo ora il caso in cui $n$ sia pari. In questo caso $n+1$ è dispari, ed è dunque possibile effettuare la scomposizione $n^{n+1}+1=(n+1) \\cdot Q(n)$. Se $n$ è un numero pari diverso da $0$, $n+1$ è un numero maggiore di $2$ e $Q(n)$ un numero maggiore di $1$, dunque $n^{n+1}+1$ non è un numero primo.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33839, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABCD$ un quadrilatero convesso. Sia $P$ l'intersezione delle bisettrici esterne di $D\\widehat{A}C$ e $D\\widehat{B}C$.\nDimostrare che $A\\widehat{P}D = B\\widehat{P}C$ se e solo se $AD + AC = BC + BD$.\n\n[Nota : Si ricorda che la bisettrice esterna ad un angolo è la retta passante per il vertice dell'angolo e perpendicolare alla bisettrice interna (cioè l'usuale bisettrice) dell'angolo stesso.]\n", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nChiamiamo $r$ ed $s$ rispettivamente le bisettrici esterne di $D\\widehat{A}C$ e $D\\widehat{B}C$. Si costruiscano i punti $C'$ e $D'$ rispettivamente come simmetrico di $C$ rispetto a $s$ e come simmetrico di $D$ rispetto a $r$. Poiché $r$ è bisettrice esterna si ha che $C', B$ e $D$ sono allineati e in più per costruzione $C'B = CB$; quindi $C'D = C'B + BD = BC + BD$. Allo stesso modo $D'C = AD + AC$. Chiamiamo ora $\\beta = B\\widehat{P}C$ che è uguale per costruzione a $B\\widehat{P}C'$, e nello stesso modo $\\alpha = A\\widehat{P}D = A\\widehat{P}D'$. Chiamiamo infine $\\gamma = C\\widehat{P}D$.\n\n![](attached_image_1.png)\n\nConsideriamo ora i triangoli $C'PD$ e $CPD'$. Abbiamo per costruzione $PD' = PD$ e $PC' = PC$; pertanto i due triangoli sono uguali se e solo se i due angoli in $P$ sono uguali o, equivalentemente, se e solo se il terzo lato è uguale. Ma la prima condizione dice che $C'\\widehat{P}D = 2\\beta + \\gamma = 2\\alpha + \\gamma = C\\widehat{P}D'$, che equivale ad $\\alpha = \\beta$, mentre la seconda condizione dice che $CD' = C'D$ che, per quanto dimostrato sopra, equivale a $AD + AC = BC + BD$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33840, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDeterminare tutte le soluzioni $(p, n)$ dell'equazione\n\n$$\nn^{3}=p^{2}-p-1\n$$\ndove $p$ è un numero primo e $n$ è un numero intero.", "options": [], "answer": "(p, n) = (2, 1) and (37, 11)", "solution": "Solution:\n\nLe soluzioni dell'equazione sono $(p, n)=(2,1)$ e $(p, n)=(37,11)$.\nRiscriviamo l'equazione nella forma\n$$\np(p-1)=(n+1)\\left(n^{2}-n+1\\right) .\n$$\nOsserviamo innanzitutto che per ogni intero $n$ il valore di $n^{2}-n+1$ è positivo, quindi tutti i fattori dell'equazione scritta devono essere positivi, Abbiamo due casi.\n\nPrimo caso: $p \\mid n+1$.\nPer qualche intero positivo $m$ abbiamo $n+1=m p$ e $p-1=m\\left(n^{2}-n+1\\right)$. Ma allora $n^{2}-n+1 \\leq p-1

3$ si ha $\\left(m^{2}+3\\right)^{2}<\\Delta<\\left(m^{2}+4\\right)^{2}$; nei casi rimanenti, si ha per sostituzione diretta che se $m=1$ allora $\\Delta=8$ e se $m=2$ allora $\\Delta=21$.\nQuindi le soluzioni dell'equazione sono $(p, n)=(2,1)$ e $(p, n)=(37,11)$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33841, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAd una fiera c'è un gioco molto invitante, perché si può partecipare gratis; chi vince guadagna un premio. Il premio pattuito per le prime quattro partite è una moneta, per la quinta è di due monete. Nicola ad ogni partita ha probabilità $\\frac{2}{3}$ di vincere il premio e decide di giocare 5 partite. Qual è la probabilità che Nicola vinca almeno 4 monete?\n(A) $5\\left(\\frac{2}{3}\\right)^{5}$\n(B) $4\\left(\\frac{2}{3}\\right)^{5}$\n(C) $3\\left(\\frac{2}{3}\\right)^{5}$\n(D) $2\\left(\\frac{2}{3}\\right)^{5}$\n(E) $\\left(\\frac{2}{3}\\right)^{5}$.", "options": [], "answer": "A", "solution": "Solution:\n\nLa risposta è (A). Consideriamo separatamente i casi in cui Nicola abbia rispettivamente perso e vinto l'ultima partita. Nel primo caso (che avviene con probabilità $1 / 3$ ) Nicola deve aver vinto le prime quattro partite, evento che ha probabilità pari a $\\left(\\frac{2}{3}\\right)^{4}$. Nel secondo caso (che avviene con probabilità $2 / 3$ ), Nicola deve non aver perso più di due partite tra le prime quattro: quest'ultimo evento ha probabilità complementare rispetto a quella di perdere tutte le prime quattro partite, o di vincerne esattamente una su quattro. Segue che la probabilità cercata è:\n$$\n\\frac{1}{3} \\cdot\\left(\\frac{2}{3}\\right)^{4}+\\frac{2}{3}\\left(1-\\left(\\frac{1}{3}\\right)^{4}-4 \\cdot \\frac{2}{3} \\cdot\\left(\\frac{1}{3}\\right)^{3}\\right)=5 \\cdot\\left(\\frac{2}{3}\\right)^{5}=\\frac{160}{243} .\n$$", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33842, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn fabbro sta costruendo una cancellata orizzontale in ferro formata da tante barre verticali, parallele tra loro, ciascuna delle quali è posizionata a $18~\\mathrm{cm}$ di distanza dalle 2 vicine. Il fabbro collega le estremità di ciascuna coppia di sbarre contigue con una barra incurvata ad arco di circonferenza collocata nel piano delle sbarre, il cui punto più alto dista $3 \\sqrt{3}~\\mathrm{cm}$ dalla retta (tratteggiata in figura) che passa per le estremità superiori di tutte le sbarre, e che è perpendicolare alle sbarre stesse. Quanto è lunga ciascuna delle barrette utilizzate per costruire gli archi?\n\n![](attached_image_1.png)\n\n(A) $8 \\pi(\\sqrt{3}-1)~\\mathrm{cm}$\n(B) $6 \\pi \\sqrt{3}~\\mathrm{cm}$\n(C) $12 \\pi(\\sqrt{3}-1)~\\mathrm{cm}$\n(D) $4 \\pi \\sqrt{3}~\\mathrm{cm}$\n(E) $8 \\pi \\sqrt{3}~\\mathrm{cm}$.", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). Con riferimento alla figura, siano $A$ e $B$ estremità di sbarre contigue, $V$ il vertice dell'arco $\\overparen{A B}$, $M$ il punto medio di $A B$ e $O$ il centro della circonferenza cui appartiene l'arco $\\widehat{A B}$. Deve valere $O B=O V$, posto dunque $O M=x$, per il Teorema di Pitagora, deve valere:\n$$\n\\begin{gathered}\nO M^{2}+M B^{2}=O V^{2}=(O M+M V)^{2} \\\\\nx^{2}+81=(x+3 \\sqrt{3})^{2}=x^{2}+6 \\sqrt{3} x+27\n\\end{gathered}\n$$\n![](attached_image_2.png)\nSegue che si ha $x=3 \\sqrt{3}$, dunque $O M=M V, O B=2 \\cdot O M$, e l'angolo $\\widehat{A O B}$ ha ampiezza pari a $\\frac{2 \\pi}{3}$. L'arco $\\overparen{\\mathrm{AB}}$ ha dunque lunghezza pari a:\n$$\n\\frac{2 \\pi}{3} \\cdot O B=4 \\pi \\sqrt{3}\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33843, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn fabbro sta costruendo una cancellata orizzontale in ferro formata da tante barre verticali, parallele tra loro, ciascuna delle quali è posizionata a $18~\\mathrm{cm}$ di distanza dalle 2 vicine. Il fabbro collega le estremità di ciascuna coppia di sbarre contigue con una barra incurvata ad arco di circonferenza collocata nel piano delle sbarre, il cui punto più alto dista $3 \\sqrt{3}~\\mathrm{cm}$ dalla retta (tratteggiata in figura) che passa per le estremità superiori di tutte le sbarre, e che è perpendicolare alle sbarre stesse. Quanto è lunga ciascuna delle barrette utilizzate per costruire gli archi?\n\n![](attached_image_1.png)\n\n(A) $8 \\pi(\\sqrt{3}-1)~\\mathrm{cm}$\n(B) $6 \\pi \\sqrt{3}~\\mathrm{cm}$\n(C) $12 \\pi(\\sqrt{3}-1)~\\mathrm{cm}$\n(D) $4 \\pi \\sqrt{3}~\\mathrm{cm}$\n(E) $8 \\pi \\sqrt{3}~\\mathrm{cm}$.", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). Con riferimento alla figura, siano $A$ e $B$ estremità di sbarre contigue, $V$ il vertice dell'arco $\\overparen{A B}$, $M$ il punto medio di $A B$ e $O$ il centro della circonferenza cui appartiene l'arco $\\widehat{A B}$. Deve valere $O B=O V$, posto dunque $O M=x$, per il Teorema di Pitagora, deve valere:\n$$\n\\begin{gathered}\nO M^{2}+M B^{2}=O V^{2}=(O M+M V)^{2} \\\\\nx^{2}+81=(x+3 \\sqrt{3})^{2}=x^{2}+6 \\sqrt{3} x+27\n\\end{gathered}\n$$\n![](attached_image_2.png)\nSegue che si ha $x=3 \\sqrt{3}$, dunque $O M=M V, O B=2 \\cdot O M$, e l'angolo $\\widehat{A O B}$ ha ampiezza pari a $\\frac{2 \\pi}{3}$. L'arco $\\overparen{\\mathrm{AB}}$ ha dunque lunghezza pari a:\n$$\n\\frac{2 \\pi}{3} \\cdot O B=4 \\pi \\sqrt{3}\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33844, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nQuante sono le soluzioni reali distinte dell'equazione $x^{6}+2 x^{5}+2 x^{4}+2 x^{3}+2 x^{2}+2 x+1=0$ ?\n\n(A) 0\n(B) 1\n(C) 2\n(D) 4\n(E) 6 .", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è **(B)**. Osserviamo innanzitutto che il polinomio del testo si può scrivere come $(1+2 x+2 x^{2}+x^{3})+(x^{3}+2 x^{4}+2 x^{5}+x^{6}) = (1+2 x+2 x^{2}+x^{3}) + x^{3}(1+2 x+2 x^{2}+x^{3}) = (1+x^{3})(1+2 x+2 x^{2}+x^{3})$.\n\nRiconoscendo poi che si può ulteriormente scrivere $1+2 x+2 x^{2}+x^{3} = (1+x+x^{2}) + (x+x^{2}+x^{3}) = (1+x)(1+x+x^{2})$, il problema si riduce a risolvere l'equazione $(x^{3}+1)(x+1)(1+x+x^{2})=0$.\n\nDato che un prodotto è nullo quando lo è uno dei fattori, le soluzioni sono quelle dell'equazione $x^{3}=-1$, ovvero $x=-1$, quelle di $x+1=0$, ovvero ancora $-1$, e quelle di $1+x+x^{2}=0$, che non ha soluzioni, dato che $1+x+x^{2} = \\left(x+\\frac{1}{2}\\right)^{2}+\\frac{3}{4}$ è sempre positivo. Si conclude quindi che la risposta è 1: l'unica soluzione reale dell'equazione proposta è $x=-1$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33845, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nQuanti sono i numeri interi positivi di 10 cifre $abcdefghij$, con tutte le cifre diverse e che verificano le condizioni $a+j=b+i=c+h=d+g=e+f=9$?\n\nNota: un numero non può iniziare con $0$.\n\n(A) 3456\n(B) 3528\n(C) 3645\n(D) 3840\n(E) 5040.", "options": [], "answer": "A", "solution": "Solution:\n\nLa risposta è (A). Chiamiamo, come nel testo, $abcdefghij$ le 10 cifre del numero.\n\nPer i numeri della forma richiesta, fissare le prime 5 cifre $a, b, c, d, e$ determina univocamente tutto il numero per la condizione imposta (dato che possiamo ricavare $f=9-e$, $g=9-d$, $h=9-c$, $i=9-b$, $j=9-a$).\n\nD'altro canto, se tra le prime cinque cifre comparissero due cifre uguali, o due cifre che sommano a nove, avremmo un numero che non rispetta le condizioni, perché da una parte si è richiesto che le cifre siano tutte diverse, e dall'altra, se comparissero due cifre con somma nove tra le prime cinque, esse comparirebbero anche - nell'ordine opposto - tra le ultime 5, mentre vogliamo che siano tutte diverse.\n\nÈ quindi sufficiente contare i numeri di 5 cifre (le prime 5), con $a, b, c, d, e$ tutte diverse e tali che nessuna coppia abbia come somma 9.\n\nDimenticandoci per ora del fatto che un numero non deve iniziare per 0, vediamo che $a$ può essere scelta in 10 modi, $b$ in 8 modi (tutte le cifre, tranne $a$, già usata, e $9-a$), $c$ in 6 modi (tutte le cifre sono possibili, tranne $a, b$ e $9-a, 9-b$), $d$ in 4 ed $e$ in 2 modi possibili.\n\nDa questi dobbiamo però togliere i numeri che iniziano con la cifra zero, che sono (dato che $a=0$, a questo punto, è fissata) $8 \\cdot 6 \\cdot 4 \\cdot 2$ per lo stesso ragionamento di sopra (8 scelte per la cifra $b$, 6 per $c$, 4 per $d$ e 2 per $e$).\n\nLa risposta al problema è quindi $10 \\cdot 8 \\cdot 6 \\cdot 4 \\cdot 2 - 8 \\cdot 6 \\cdot 4 \\cdot 2 = (10-1) \\cdot 8 \\cdot 6 \\cdot 4 \\cdot 2 = 3456$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33846, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDa un punto $L$ partono due strade rettilinee che formano un angolo acuto $\\alpha$. Lungo una delle due strade ci sono due lampioni, posizionati in $P$ e $Q$, tali che $L P=40~\\mathrm{m}$ e $L Q=90~\\mathrm{m}$. Eva si trova in $E$ sull'altra strada, e vede i due lampioni sotto un angolo $P \\widehat{E} Q$. A che distanza da $L$ si trova Eva, se $P \\widehat{E} Q$ ha la massima ampiezza possibile?\n\n(A) $40~\\mathrm{m}$\n(B) $60~\\mathrm{m}$\n(C) $65~\\mathrm{m}$\n(D) $90~\\mathrm{m}$\n(E) la distanza dipende da $\\alpha$.", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è (B). Sia $f$ la strada dove si trova Eva ed $s$ quella dove si trovano i lampioni. Consideriamo la circonferenza passante per $P, Q, E$, che esiste in quanto $P, Q$ appartengono a $s$ mentre $E$ non vi appartiene se no l'angolo $P \\hat{E} Q$ sarebbe 0, e supponiamo per assurdo essa non sia tangente a $f$. Allora esiste il punto $E'$ di ulteriore intersezione di tale circonferenza con $f$ e sia $E''$ un punto dell'arco $E E'$ non contenente $P$ e $Q$, si ha $P \\hat{E} Q = P \\hat{E}'' Q$ poiché insistono sullo stesso arco $P Q$; sia $D$ l'intersezione di $f$ e $P E''$, allora $P \\hat{D} Q > P \\hat{E}'' Q = P \\hat{E} Q$ in quanto angolo esterno del triangolo $P D E''$ non adiacente all'angolo in $E''$. Allora il punto $E$ non poteva dare l'angolo massimo, e quindi la circonferenza per $P, Q, E$ deve necessariamente tangere $f$ in $E$. Ma allora per il teorema della tangente e della secante $L E^2 = L P \\cdot L Q$, quindi $L E = \\sqrt{40 \\cdot 90} = 60$.\n\n(Kuzmin)", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33847, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDue numeri $a$ e $b$ sono tali che $\\frac{3a+b}{a-b}=2$. Quanto vale $\\frac{a^{3}}{b^{3}}$?\n\n(A) $-27$\n\n(B) $-8$\n\n(C) $1$\n\n(D) $8$\n\n(E) $27$.", "options": [], "answer": "A", "solution": "Solution:\n\nLa risposta è $(\\mathbf{A})$. Vale $3a+b=2a-2b$, quindi $a=-3b$, e perciò $\\frac{a^{3}}{b^{3}}=(-3)^{3}=-27$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33848, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSono dati due numeri reali $a$ e $b$ tali che $|3 a-b+1|=|b|$. Allora necessariamente si ha...\n\n(A) $b=0$\n(B) $a=-\\frac{1}{3}$\n(C) $a<0$\n(D) $b=\\frac{3 a+1}{2}$\n(E) nessuna delle precedenti.", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è (E). Infatti, nel piano cartesiano aventi assi $a$ e $b$, la regione descritta dall'equazione $|3 a-b+1|=|b|$ è data dall'unione della retta $3 a+1=0$ e dalla retta $3 a-2 b+1=0$. Quindi nessuna delle prime quattro risposte proposte è corretta.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33849, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSui lati di un triangolo $ABC$ rettangolo in $A$ vengono scelti tre punti $D$, $E$ ed $F$ (rispettivamente su $BC$, $AC$ e $AB$) in modo che il quadrilatero $AFDE$ sia un quadrato. Se $x$ è la lunghezza di un suo lato, dimostrare che\n$$\n\\frac{1}{x} = \\frac{1}{AB} + \\frac{1}{AC}\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nVisto che i denominatori non sono nulli, l'uguaglianza da dimostrare è equivalente a $AB \\cdot AC = AC \\cdot x + AB \\cdot x$. Considerando poi che $x$ è il lato del quadrato, possiamo ancora riscrivere la tesi come\n$$\nAB \\cdot AC = AC \\cdot DE + AB \\cdot DF.\n$$\nOra $AB \\cdot AC$ è il doppio dell'area di $ABC$, $AC \\cdot DE$ è il doppio dell'area di $ADC$ e $AB \\cdot DF$ è il doppio dell'area di $ABD$. Poiché il triangolo $ABC$ è unione dei due triangoli $ADC$ e $ABD$, che si intersecano solo nel segmento $AD$, la tesi è dimostrata.\n\n\nSECONDA SOLUZIONE: Il triangolo $BDF$ è simile al triangolo $BCA$, poiché entrambi sono rettangoli e hanno l'angolo in $B$ in comune.\nAbbiamo quindi la seguente proporzione tra i lati\n$$\nBF : BA = DF : CA\n$$\ne dal momento che $BF = AB - AF = AB - x$ e $DF = x$ questa si traduce in $(AB - x) : AB = x : AC$. Questo implica $AB \\cdot x = (AB - x) \\cdot AC$, e cioè $AB \\cdot x + AC \\cdot x = AB \\cdot AC$, che è quanto volevamo dimostrare.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33850, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nPer entrare nel castello di Burian bisogna usare una parola chiave che è costituita da almeno 6 caratteri; inoltre un carattere non si può mai ripetere due o più volte consecutivamente, e una coppia di caratteri consecutivi non può comparire in un altro punto della parola chiave. Sul tastierino funzionano ormai solo le lettere $E$, $N$ e $V$ : quante parole chiave diverse si possono tentare?\n(A) 6\n(B) 18\n(C) $6^{2}$\n(D) $2^{6}$\n(E) infinite.", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è $\\mathbf{(C)}$. Consideriamo i primi due caratteri della parola chiave: poiché essi devono essere diversi, abbiamo $3 \\cdot 2 = 6$ possibilità di sceglierli. Senza perdere generalità, supponiamo che essi siano $NE$. Possiamo a questo punto fare una semplice analisi per casi, scoprendo che se il terzo carattere è $V$ si presentano 4 possibilità di cui 2 raggiungono anche i 7 caratteri di lunghezza ($NEVEN V$, $NEVEN VN$, $NEVNV E$, $NEVNV EN$); peraltro, nessuna di queste ammette una prosecuzione ulteriore valida. Se il terzo carattere è $N$, invece, le possibilità sono solo 2, una da 6 caratteri e una da 7 ($NENVEV$ e $NENVEVN$); infatti esistono alcune sequenze iniziali valide che non possono essere proseguite neanche fino a raggiungere i 6 caratteri, come ad esempio $NENVN$.\nA questo punto per ciascuna delle 6 possibilità per la coppia iniziale ne abbiamo 6 (e sempre diverse tra i vari insiemi da 6, perché appunto la coppia iniziale le distingue) e quindi in tutto le parole chiave possibili sono $6 \\cdot 6 = 6^{2}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33851, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nTre persone $A, B, C$ si trovano in prossimità di un incrocio stradale tra due strade perpendicolari. $A$ si trova esattamente sull'incrocio, mentre $B$ e $C$ si trovano su due strade distinte. Nel campo nei pressi dell'incrocio (all'interno dell'angolo retto $C \\widehat{A} B$ ) c'è un cartellone pubblicitario, sostenuto da due pali piantati nel terreno nei punti $D$ ed $E$, che distano tra loro esattamente un metro. $A, B$ e $C$ vedono tutti il lato frontale del cartellone. Sapendo che gli angoli $D \\widehat{A} E, D \\widehat{B} E$ e $D \\widehat{C} E$ misurano tutti 30 gradi, qual è la distanza (in linea d'aria) tra $B$ e $C$ ?\n(A) $\\frac{3}{2} \\mathrm{~m}$\n(B) $\\frac{1+\\sqrt{5}}{2} \\mathrm{~m}$\n(C) $\\sqrt{3} \\mathrm{~m}$\n(D) $2 \\mathrm{~m}$\n(E) Non è possibile determinarlo.", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è $(\\mathbf{D})$. Poiché $\\widehat{D A E}=\\widehat{D B E}=\\widehat{D C E}$ e $A, B, C$ si trovano dalla stessa parte della retta $D E$, i punti $A, B, C, D, E$ si trovano su di una circonferenza. Inoltre, dato che gli angoli alla circonferenza che insistono su $D E$ hanno un'ampiezza di $30^\\circ$, detto $O$ il centro di tale circonferenza l'angolo $\\widehat{D O E}$ vale $60^\\circ$, e quindi il triangolo $D O E$ è equilatero. Perciò, essendo $O D=D E$, abbiamo che la circonferenza ha raggio $1 \\mathrm{~m}$. Poiché $\\widehat{B A C}$ è retto il segmento $B C$ dev'essere un diametro; ne consegue che la sua lunghezza è $2 \\mathrm{~m}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33852, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUna scacchiera $8$ per $8$ viene riempita con le lettere $A$, $B$, $C$, $D$ in modo che due caselle con un lato o un vertice in comune contengano lettere diverse, e in modo che le lettere $A$ e le lettere $B$ abbiano la proprietà seguente: ogni qual volta una $A$ o una $B$ ha una certa lettera $X$ adiacente in orizzontale o verticale ($X$ può essere $A$, $B$, $C$ o $D$), allora dal lato opposto c'è un'altra $X$ (a meno che non ci sia il bordo). In quanti modi è possibile sistemare tali lettere nella scacchiera?\n\n(A) 136\n(B) 144\n(C) 168\n(D) 328\n(E) 360.", "options": [], "answer": "A", "solution": "Solution:\n\nLa risposta è (A). Numeriamo le righe da $1$ a $8$ e le colonne da $1$ a $8$; consideriamo il quadrato $2 \\times 2$ centrale, quello formato dalle colonne $4$ e $5$ intersecate con le righe $4$ e $5$. Esaminiamo separatamente due casi:\n\na. Nel quadrato mettiamo una $A$ e una $B$ in caselle che s'intersecano in un vertice, una $C$ e una $D$ nelle due caselle rimanenti; possiamo farlo in $8$ modi diversi. Una volta riempito il quadrato in uno di questi modi, vi è uno e un solo modo di completare l'intera scacchiera.\n\nb. La $A$ e la $B$ inserite nel quadrato centrale sono adiacenti orizzontalmente o verticalmente (possiamo riempire il quadrato in $4! - 8$ modi in modo che ciò avvenga). Supponiamo che la $A$ si trovi in riga $4$, colonna $4$ e la $B$ in riga $4$, colonna $5$ (gli altri casi sono perfettamente analoghi). La riga $4$ deve essere riempita con $A$ e $B$ che si alternino; la riga $5$ deve contenere, a sua volta, $C$ e $D$ alternate (a partire da $C$ o da $D$ a seconda di come abbiamo riempito il quadrato centrale). Le righe dispari devono essere tutte identiche alla riga $5$. Le righe pari conterranno $A$ e $B$ alternate: nella riga $4$ la lettera iniziale è fissata (nel nostro caso è $A$) per in tutte le altre righe pari ($2$, $6$ e $8$) possiamo scegliere (indipendentemente) se comincino con $A$ o con $B$. Nel complesso abbiamo contato $(4! - 8) 2^3$ configurazioni.\n\nIn totale le configurazioni ammissibili sono dunque $136$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33853, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn folletto vive nel mondo delle fate. Un certo giorno sceglie 12 coppie di numeri positivi: quelli della prima sono dispari, quelli della seconda danno resto 1 se divisi per 3, quelli della terza danno resto 1 se divisi per 4, e così via fino alla dodicesima. Poi calcola la differenza dei quadrati dei numeri di ciascuna coppia e scrive su una lavagna il prodotto di tutte le differenze ottenute.\n\nDalla mattina successiva, divide per 12 il numero sulla lavagna e, se il risultato è intero, scrive questo risultato al posto del numero che era sulla lavagna; se non è intero, cancella tutto e si trasferisce nel mondo degli umani a fare scherzetti. Per quanti giorni (escluso quello iniziale in cui il folletto sceglie i numeri) siamo sicuri che non avremo problemi nel nostro mondo?\n\n(A) 4\n(B) 5\n(C) 6\n(D) 8\n(E) 12.", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è (B). La differenza dei quadrati di due numeri che danno lo stesso resto se divisi per $k$ è un multiplo di $k$: infatti se i due numeri sono $a = n k + r$ e $b = m k + r$,\n$$\na^2 - b^2 = (a - b)(a + b) = (n - m) k (n k + m k + 2 r)\n$$\n(nel nostro caso abbiamo $r = 1$ per tutti i $k$ da 2 a 13).\n\nDi conseguenza il prodotto scritto dal folletto sulla lavagna è sicuramente divisibile per $13! = 2^{10} \\cdot 3^{5} \\cdot 5^{2} \\cdot 7 \\cdot 11 \\cdot 13$, che è un multiplo di $12^{5}$; quindi sicuramente il folletto potrà dividere per 12 almeno per 5 giorni di fila trovando sempre un risultato intero. Ma se il folletto scegliesse ad esempio le coppie $(2k+1, k+1)$ per $k = 4, 7, 10, 13$ e le coppie $(k+1, 1)$ per i $k$ restanti, le differenze dei quadrati (rispettivamente $3k^2 + 2k$ e $k^2 + 2k = k(k+2)$) conterrebbero in tutto esattamente 5 fattori 3, perciò il loro prodotto risulterebbe divisibile per 12 non più di 5 volte. Ma allora in quel caso il sesto giorno la divisione produrrebbe un numero non intero; quindi possiamo contare su 5 giorni, ma non di più.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33854, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn folletto sceglie due numeri dispari $x, y$ tali che $0 < y < x < 2012$, calcola $x^{2} - y^{2}$ e scrive il risultato su un foglio. Ogni mattina (a partire da quella del giorno successivo) si sveglia, legge il numero scritto sul foglio e, se questo numero è pari, lo sostituisce con la sua metà e va a fare uno scherzetto a qualcuno.\nIl giorno in cui per la prima volta legge un numero dispari, scompare ritornando nel mondo delle fate.\nQuanti scherzetti fa al massimo il folletto?\n(A) 11\n(B) 12\n(C) 14\n(D) 21\n(E) 22 .", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è $\\mathbf{(B)}$. $x^{2} - y^{2}$ può essere scomposto come $(x + y)(x - y)$. Non è possibile che $x + y$ e $x - y$ siano entrambi multipli di $4$, perché altrimenti lo sarebbe anche $(x + y) + (x - y) = 2x$ il quale tuttavia è il doppio di un numero dispari. Abbiamo che $\\max\\{x + y, x - y\\} \\leq 2011 + 2011 < 2^{12}$, pertanto la massima potenza di $2$ ottenibile nella fattorizzazione di $x^{2} - y^{2}$ è $2^{12}$; essa si ottiene ponendo per esempio $x + y = 2^{11} = 2048$ (la potenza successiva è troppo grande) e $x - y = 2$, cioè $x = 1025$ e $y = 1023$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33855, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nMaria ha tre monete rosse e una blu, tutte dello stesso raggio e con il bordo gommato. Mette sul tavolo le tre monete rosse ai vertici di un triangolo equilatero in modo che si tocchino a due a due, poi posa sul tavolo anche quella blu in modo che tocchi una delle monete rosse. Adesso, tenendo ferme le monete rosse, fa ruotare quella blu in modo che rimanga sempre aderente ad almeno una delle monete rosse e i bordi gommati non scivolino. Dopo un percorso completo attorno al gruppo delle tre monete rosse la moneta blu torna al punto di partenza; quanti giri ha fatto su se stessa?\n(A) 3\n(B) 1\n(C) $\\pi$\n(D) $\\frac{3 \\pi}{4}$\n(E) $\\frac{9}{2}$.", "options": [], "answer": "A", "solution": "Solution:\n\nLa risposta è (A). Visto che dobbiamo fare un percorso completo, possiamo supporre di cominciare in un punto in cui la moneta blu tocca 2 monete rosse contemporaneamente. Nel tragitto che ora la moneta blu fa aderendo a una delle due il suo centro percorre una semicirconferenza; ma il bordo nel frattempo compie a sua volta una rotazione di $180^\\circ$ attorno al centro, quindi la moneta compie un giro completo. Poiché questo si ripete 3 volte, in tutto la moneta fa 3 giri su se stessa che terminano esattamente quando ha finito il percorso tornando al punto di partenza.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33856, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLa differenza di due interi positivi $a$ e $b$ è un numero primo $p$ e il loro prodotto è un quadrato perfetto non superiore a $10000$. Qual è il massimo valore che può assumere $p$?", "options": [], "answer": "19", "solution": "Solution:\n\nLa risposta è $19$. Infatti, supponiamo senza perdita di generalità che sia $a > b$; allora $a = b + p$ e $ab = b(b + p)$.\n\nSe ora $p$ dividesse $b$ potremmo porre $b = p b'$, e avremmo che\n$$\na b = p b' (p b' + p) = p^2 b'(b' + 1)\n$$\nsarebbe un quadrato perfetto; ma poiché $b'$ e $b' + 1$ sono primi fra loro, questo significherebbe che sia $b'$, sia $b' + 1$ sarebbero quadrati perfetti, il che è impossibile (l'unico caso in cui ciò si verifica negli interi, cioè quando $b' = 0$, è escluso dall'ipotesi che $b$ sia positivo).\n\nPerciò $a$ e $b$ devono essere primi fra loro, e quindi entrambi quadrati perfetti; possiamo quindi porre $a = n^2$, $b = m^2$ con $n, m$ a loro volta positivi. Ma dal fatto che\n$$\np = a - b = n^2 - m^2 = (n - m)(n + m)\n$$\nè un numero primo si ricava che uno tra $n - m$ ed $n + m$ (e si tratterà evidentemente di $n - m$) deve essere $1$. Quindi $n = m + 1$, $a$ e $b$ sono due quadrati consecutivi e la somma $n + m$ delle loro radici quadrate deve essere il numero primo $p$.\n\nPoiché però per ipotesi $ab \\leq 10000$, $a \\leq 100$ e quindi $n \\leq 10$, $m \\leq 9$ e perciò $p = n + m \\leq 19$; e proprio il caso $a = 100$, $b = 81$, $n = 10$, $m = 9$, $p = 19$ risulta ricadere nelle ipotesi del quesito, quindi $19$ è il massimo primo possibile.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33857, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSiano $ABC$ un triangolo acutangolo e $H$ il piede dell'altezza relativa al vertice $A$. Coloriamo ogni punto $P$ interno al triangolo in questo modo: di rosso, se il vertice più vicino a $P$ è $A$; di verde, se il vertice più vicino a $P$ è $B$; di blu, se il vertice più vicino a $P$ è $C$. Sapendo che $AH=35$, $BH=21$ e $CH=15$, quanto misura l'area formata dai punti rossi?", "options": [], "answer": "198", "solution": "Solution:\n\nLa risposta è $198$. Indichiamo con $L, M, N$ i punti medi dei lati $AB, BC, CA$, e con $O$ il circocentro di $ABC$ (punto di incontro degli assi dei lati del triangolo). Per una nota proprietà dell'asse di un segmento, l'insieme dei punti rossi è il quadrilatero $ALON$, di cui bisogna quindi determinare l'area.\n\nSi ha $LN = BM = MC = (BH + HC)/2 = (21 + 15)/2 = 18$. Dalla proprietà del circocentro si ha $OA^2 = OC^2$; detto $K$ il piede della perpendicolare condotta da $O$ su $AH$, col teorema di Pitagora, si ha $OK^2 + KA^2 = OM^2 + BM^2$. Posto $KA = x$, e osservando che $OM = AH - KA = 35 - x$ si ottiene l'equazione $3^2 + x^2 = (35 - x)^2 + 18^2$, da cui $9 + x^2 = 1225 + x^2 - 70x + 324$, cioè $70x = 1540$ e infine $x = 22$.\n\nPoiché $ALON$ può essere decomposto in due triangoli aventi la stessa base $LN$ e somma delle altezze pari a $KA$, l'area richiesta sarà $18 \\times 22 / 2 = 198$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33858, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSiano $p(x)$ e $q(x)$ due polinomi distinti di grado minore o uguale a $3$, a coefficienti interi e tali che\n$$\n\\begin{gathered}\np(1)=q(1), \\quad p(2)=q(2), \\quad p(3)=q(3), \\\\\np(-1)=-q(-1), \\quad p(-2)=-q(-2), \\quad p(-3)=-q(-3) .\n\\end{gathered}\n$$\nQual è il minimo valore che può assumere $[p(0)]^{2}+[q(0)]^{2}$ ?", "options": [], "answer": "36", "solution": "Solution:\n\nLa risposta è $36$. Il polinomio $p(x)+q(x)$ si annulla per $x=-1$, $x=-2$ e $x=-3$; inoltre è di grado minore o uguale a $3$ ed è a coefficienti interi. Quindi, per il teorema di Ruffini, esso si scompone in questo modo: $p(x)+q(x)=k(x+1)(x+2)(x+3)$ con $k$ intero. In modo analogo osserviamo che $p(x)-q(x)=h(x-1)(x-2)(x-3)$ con $h$ intero.\nAbbiamo che\n$$\np(x)=\\frac{1}{2}(k(x+1)(x+2)(x+3)+h(x-1)(x-2)(x-3))\n$$\nda questa uguaglianza è facile osservare che $p(x)$ è a coefficienti interi se e solo se $k$ e $h$ hanno la stessa parità. La condizione affinché $q(x)$ sia a coefficienti interi è esattamente la stessa. Il problema inoltre richiede che $p(x)$ e $q(x)$ siano distinti, il che accade se e solo se $h \\neq 0$.\nValutando in $x=0$ le due identità iniziali otteniamo $p(0)+q(0)=6k$ e $p(0)-q(0)=-6h$. Elevando al quadrato e sommando queste due uguaglianze troviamo\n$$\n(p(0)+q(0))^{2}+(p(0)-q(0))^{2}=36\\left(k^{2}+h^{2}\\right)\n$$\novvero $2 \\cdot\\left([p(0)]^{2}+[q(0)]^{2}\\right)=36\\left(k^{2}+h^{2}\\right)$. Alla luce delle osservazioni precedenti, il minimo di $k^{2}+h^{2}$ si ottiene per $k= \\pm 1$ e $h= \\pm 1$. Quindi il minimo valore di $[p(0)]^{2}+[q(0)]^{2}$ è $\\frac{1}{2} \\cdot 36 \\cdot\\left(( \\pm 1)^{2}+( \\pm 1)^{2}\\right)=36$ .", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33859, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nMartino pensa di avere scoperto un metodo per vincere alla roulette, o comunque per non perdere troppi soldi. Punta sempre sul rosso. Comincia puntando 1 euro; ogni volta che perde raddoppia la puntata precedente, mentre ogni volta che vince alla puntata successiva punta 1 euro. Un giorno ha con sé 31 euro e va a giocare stabilendo che andrà via appena o avrà perduto 5 volte di fila, o avrà vinto 5 volte di fila, oppure sarà rimasto senza soldi prima che si sia verificata una di queste due possibilità.\n\na. Quale sarà il numero minimo di giocate che dovrà fare perché finisca di giocare con 31 euro, se esce con 5 sconfitte?\n\nb. Quale sarà il numero minimo di giocate che dovrà fare perché finisca di giocare con 31 euro, se esce con 5 vittorie?\n\nc. Se esce con 5 vittorie, quale sarà come minimo il suo capitale finale?", "options": [], "answer": "a) 43; b) impossible; c) 36", "solution": "Solution:\n\nCominciamo dimostrando un risultato preliminare: ogni volta che vince dopo una sequenza di sconfitte (ammesso che non si fermi prima), Martino si ritrova con 1 euro in più rispetto a quanto aveva prima di iniziare a perdere, cioè dopo la vittoria precedente. Questo perché se ha in mano $n$ euro e gioca vincendo al $k$-simo tentativo $(k \\geq 1)$ avrà in mano\n$$\nn-\\sum_{i=1}^{k-1} 2^{i}+2^{k}=n-\\left(2^{k}-1\\right)+2^{k}=n+1\n$$\nmonete.\n\nDetto in altro modo, se all'inizio di una sequenza di sconfitte (quindi all'inizio del gioco o dopo una vittoria) ha $k$ euro e vince al primo colpo avrà $k+1$ euro; ma anche se vince dopo avere perso una volta avrà $k-1+2=k+1$ euro, e così via (ad esempio perdendo 3 volte, avrà perso $1+2+4=7$ euro, ma alla puntata successiva ne punta 8 e se vince avrà di nuovo $k-1-2-4+8=k+1$ euro). Dopo una vittoria, quindi, Martino avrà sempre esattamente un euro in più che dopo la vittoria precedente, come volevamo dimostrare.\n\nFatta questa osservazione possiamo affrontare i tre punti del problema.\n\na.\nSe Martino finisce di giocare avendo perso 5 volte di fila, vuol dire che ha perso 31 euro e quindi prima di perdere la prima volta di queste 5 doveva avere 62 euro. Questo, grazie all'osservazione precedente, implica che, prima dell'ultima serie di 5 sconfitte, Martino ha vinto almeno 31 volte e non ha mai né vinto né perso più di quattro giocate consecutive (altrimenti avrebbe smesso di giocare prima). Allora ha perso almeno $\\left[\\frac{31}{4}\\right]=7$ volte ed il numero di giocate è quindi almeno $31+7+5=43$.\n\nMostriamo come sia effettivamente possibile giocare 43 volte e uscire con 31 euro dopo 5 sconfitte: scrivendo V e S per vittoria e sconfitta, con la sequenza\n\nVVVVS VVVVS VVVVS VVVVS VVVVS VVVVS VVVVS VVVSS SSS\n\nsi realizza esattamente la situazione richiesta (un capitale di 31 euro in uscita). Il capitale di Martino infatti ha questo andamento:\n\nb.\nLa situazione descritta non può verificarsi. Infatti il ragionamento che abbiamo visto si applica in particolare alla prima giocata e ci permette di dedurre che dopo una vittoria Martino ha sempre almeno 32 euro, quindi non è possibile che esca con 5 vittorie e solo 31 euro in mano.\n\nc.\nQuindi, tenuto conto dell'osservazione iniziale, se Martino esce con 5 vittorie non può avere mai meno di 36 euro; d'altra parte, se vince le prime 5 puntate esce esattamente con 36 euro.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33860, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nDato un qualsiasi intero positivo $n$, chiamiamo ciclostilato di $n$ il numero che si ottiene concatenando 2012 scritture di $n$ (in base 10). Per esempio il ciclostilato di 314 è $314314314 \\ldots 314$, dove le cifre \"314\" si ripetono 2012 volte.\na) Determinare tutti gli interi positivi $m$ tali che il ciclostilato di $m$ sia multiplo di 9.\nb) Determinare tutti gli interi positivi $m$ tali che il ciclostilato di $m$ sia multiplo di 11.", "options": [], "answer": "a) Exactly the positive multiples of nine. b) All positive integers with an odd number of digits, together with those with an even number of digits that are multiples of eleven.", "solution": "Solution:\nSia $f(n)$ il ciclostilato di $n$.\n\na.\nChiamiamo $s(m)$ la somma delle cifre di $m$. Per il criterio di divisibilità per 9 si ha che $f(n)$ è multiplo di 9 se e solo se $s(f(n))$ è multiplo di 9; d'altra parte $s(f(n)) = 2012 \\cdot s(n)$, il quale è multiplo di 9 se e solo se lo è $s(n)$ (perché il massimo comun divisore tra 2012 e 9 è uguale a 1). Usando di nuovo il criterio di divisibilità per 9 osserviamo che $s(n)$ è multiplo di 9 se e solo se lo è $n$.\n\nIn conclusione gli $n$ cercati sono tutti e soli i multipli di 9.\n\nb.\nChiamiamo $r(m)$ la somma a segni alterni delle cifre di $m$ (fatta in modo che la cifra delle unità sia presa con segno positivo). Per il criterio di divisibilità per 11 abbiamo che $f(n)$ è multiplo di 11 se e solo se $r(f(n))$ è multiplo di 11.\n\nDistinguiamo i seguenti due casi.\n\n- $n$ ha un numero pari di cifre.\n\nAllora $r(f(n)) = 2012 \\cdot r(n)$, infatti ogni cifra di $n$ viene sommata 2012 volte con lo stesso segno. Dato che $\\operatorname{MCD}(2012,11) = 1$ osserviamo che $2012 \\cdot r(n)$ è multiplo di 11 se e solo se lo è $r(n)$. Utilizzando nuovamente il criterio di divisibilità per 11 abbiamo che $r(n)$ è multiplo di 11 se e solo se lo è $n$.\n\nPertanto gli $n$ con un numero pari di cifre che vogliamo sono tutti e soli i multipli di 11.\n\n- $n$ ha un numero dispari di cifre.\n\nNella somma a segni alterni delle cifre di $f(n)$ si ha che ciascuna cifra di $n$ viene sommata $\\frac{2012}{2}$ volte con il segno $+$ e altrettante volte con il segno $-$; pertanto $r(f(n)) = 0$, ovvero $f(n)$ è sempre multiplo di 11.\n\nIn conclusione gli $n$ cercati sono gli interi positivi con un numero dispari di cifre e i multipli di 11 con un numero pari di cifre.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33861, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nNormalmente Davide ha bisogno di dormire almeno 8 ore per notte. Se una notte dorme $k$ ore meno di quanto gli occorra, si ritrova ad aver bisogno di $k$ ore in più di sonno per le $k$ notti successive. Ogni notte dorme comunque un numero intero di ore minore o uguale al suo fabbisogno. Ad esempio, se lunedì notte ha bisogno di 8 ore, ma ne dorme 7, martedì avrà bisogno di 9 ore. Se mercoledì ha bisogno di 8 ore, ma ne dorme 6, giovedì e venerdì avrà bisogno di almeno 10 ore di sonno; se giovedì ne dorme solo 9, venerdì sentirà la necessità di 11 ore $(8$, più 2 per le ore perse mercoledì, più 1 per quella non dormita giovedì).\nUn certo lunedì notte Davide avrebbe necessità di dormire 8 ore; lo stesso si verifica la notte del lunedì della settimana successiva. Nel corso della settimana ci sono state 7 ore in cui avrebbe avuto bisogno di dormire ma non l'ha fatto: quante ore ha dormito come minimo Davide nelle sette notti che vanno da lunedì a domenica?", "options": [], "answer": "58", "solution": "Solution:\n\nDavide ha dormito come minimo 58 ore.\n\nNumeriamo i giorni della settimana da 1 a 7 e supponiamo che Davide dorma $k_{1}$ ore meno del suo fabbisogno il lunedì, $k_{2}$ ore il martedì, ..., $k_{7}$ ore la domenica. Sappiamo che $k_{1} + \\cdots + k_{7} = 7$.\n\nPoiché trascorsa una settimana Davide avrebbe necessità di dormire lo stesso numero di ore del lunedì precedente, le ore aggiunte al suo fabbisogno per via delle varie carenze di sonno devono ricadere tutte all'interno della settimana; in particolare, la somma dei valori del suo fabbisogno per ciascuna delle sette notti si può calcolare come $7 \\cdot 8 + k_{1}^{2} + k_{2}^{2} + \\ldots + k_{7}^{2}$. Inoltre dev'essere $k_{7} = 0$, altrimenti Davide avrebbe bisogno di dormire più di 8 ore il lunedì successivo.\n\nDavide dorme dunque $56 + k_{1}^{2} + \\cdots + k_{6}^{2} - k_{1} - \\cdots - k_{7} = 49 + k_{1}^{2} + \\ldots + k_{6}^{2}$ ore nel corso della settimana.\n\nSicuramente, affinché $k_{1} + \\cdots + k_{7} = 7$ e $k_{7}$ sia 0, dovrà esserci un giorno $i$ (con $i$ diverso da 7) in cui Davide dorme almeno 2 ore meno del necessario $\\left(k_{i} \\geq 2\\right)$. Osserviamo che porre, ad esempio, $k_{1} = 2$ e $k_{2} = \\cdots = k_{6} = 1$ dà un totale di $49 + 2^{2} + 1 + 1 + 1 + 1 + 1 = 58$ ore nell'arco della settimana.\n\nMostriamo che non è possibile per Davide dormire meno di 58 ore: se esiste un giorno $j$ per cui $k_{j} \\geq 3$, Davide dormirà strettamente più di $49 + 3^{2} = 58$ ore; possiamo perciò supporre che per $i = 1, \\ldots, 7$ $k_{i} \\leq 2$. Se Davide avesse un deficit di 2 ore per più di una volta nell'arco della settimana, di nuovo dovrebbe dormire più di $49 + 2^{2} + 2^{2} + 1 = 58$ ore.\n\nDunque la configurazione in cui ha un unico deficit di 2 ore e 5 di un'ora è davvero minimale.\n\nAbbiamo in conclusione mostrato che da un lato Davide non può dormire meno di 58 ore, e dall'altro una configurazione come quella descritta (ad esempio: 6 ore di sonno il lunedì, 9 il martedì, 10 il mercoledì, 8 da giovedì a sabato e 9 la domenica) ne prevede esattamente 58.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33862, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUna successione $\\{x_{n} \\mid n=0,1,2, \\ldots\\}$ di numeri reali è definita, al variare del parametro reale $a$, come segue:\n$$\n\\left\\{\n\\begin{array}{l}\nx_{0}=a \\\\\nx_{n+1}=2-x_{n}^{2} \\quad \\text{ per } n \\geq 1\n\\end{array}\n\\right.\n$$\n\na. Trovare tutti i valori di $a$ per cui $x_{n}$ è costante (cioè vale $x_{n}=a$ per tutti gli $n$).\n\nb. Dimostrare che per uno dei valori trovati al punto (a) (che chiameremo $y$ ) si ha che, se $|a|<|y|,\\left|x_{n}\\right|<|y|$ per tutti gli $n$.\n\nc. Dimostrare che, se $|a|>|y|, x_{n}$ è strettamente decrescente.", "options": [], "answer": "Constant sequences occur only for a equal to 1 or −2. Taking y = −2, if the initial absolute value is less than 2 then all terms have absolute value less than 2; if the initial absolute value is greater than 2 then the sequence is strictly decreasing.", "solution": "Solution:\n\na. Se $x_{n}$ deve essere costante, in particolare deve valere che\n$$\nx_{1}=x_{0}=a.\n$$\nMa allora\n$$\na=x_{1}=2-x_{0}^{2}=2-a^{2},\n$$\nquindi $a$ deve soddisfare l'equazione\n$$\na^{2}+a-2=0\n$$\nche ha come soluzioni $a=-2$ e $a=1$. Nessun altro valore può rendere la successione costante (ma a priori ancora non sappiamo se questi vanno bene).\nVerifichiamo che effettivamente entrambi questi valori generano una successione costante: visto che la successione è definita per ricorrenza, a questo punto sarà anche\n$$\nx_{2}=2-x_{1}^{2}=2-a^{2}=a\n$$\ne, allo stesso modo, $x_{3}=a$ e così via (abbiamo in effetti dato una dimostrazione per induzione, anche se così immediata da non avere bisogno della consueta formalizzazione).\nPerciò i valori richiesti sono proprio $-2$ e $1$.\n\nb. Dimostriamo che questo è vero se $y=-2$. Innanzitutto, osserviamo che poiché il quadrato di un numero reale non può mai essere negativo, sarà $x_{n} \\leq 2$ per ogni $n \\geq 1$; quindi, a parte la possibile eccezione di $x_{0}=a$, tutti i valori della successione sono più piccoli di $2$.\nSupponendo ora che sia\n$$\n|a|<|y|=|-2|=2,\n$$\ndimostriamo per induzione su $n$ che\n$$\n\\left|x_{n}\\right|<2 \\text{ per ogni } n \\geq 0.\n$$\nIl passo base è proprio l'ipotesi $\\left(\\left|x_{0}\\right|=|a|<2\\right)$.\nSupponendo vera la disuguaglianza per $x_{n-1}$, dimostriamo ora che essa vale anche per $x_{n}$.\nInfatti se $\\left|x_{n-1}\\right|<2$, evidentemente $x_{n-1}^{2}<4$; ma\n$$\nx_{n}=2-x_{n-1}^{2}\n$$\ne perciò\n$$\n-2=2-4<2-x_{n-1}^{2}=x_{n}<2,\n$$\nciaè $\\left|x_{n}\\right|<2$, il che completa la dimostrazione del passo induttivo.\nIncidentalmente osserviamo che la proprietà non vale invece per l'altro valore del punto a), $1$: infatti ad esempio se $a=0$ si ha che $|a|<1$, ma $\\left|x_{1}\\right|=\\left|2-a^{2}\\right|=2>1$. Si può anche dimostrare che in realtà $-2$ è l'unico numero reale che ha la proprietà indicata nel quesito.\n\nc. Supponiamo ora che $|a|>2$; sarà più comodo dimostrare per induzione su $n$ la proprietà seguente, più forte della nostra tesi:\n$$\n\\text{ \"per ogni } n \\geq 0,\\left|x_{n}\\right|>2 \\text{ e } x_{n+1}0$. Allora $|a|=2+c_{0}$ e\n$$\nx_{1}=2-a^{2}=2-\\left(2+c_{0}\\right)^{2}=-2-2 c_{0}-c_{0}^{2}<-(2+c_{0})=-|a| \\leq a=x_{0},\n$$\ncosì il passo base è dimostrato.\nLa dimostrazione del passo induttivo è del tutto analoga. Per ogni $n \\geq 1$ supponiamo che le disuguaglianze siano rispettate per $n-1$; allora possiamo porre $c_{n-1}=\\left|x_{n-1}\\right|-2>0$ e ricavare come sopra\n$$\nx_{n}=2-x_{n-1}^{2}=-2-2 c_{n-1}-c_{n-1}^{2}<-(2+c_{n-1})=-\\left|x_{n-1}\\right|\n$$\n(il che dimostra in particolare che $x_{n}<0$ non appena $n \\geq 1$).\nAllora da un lato per tutti gli $n \\geq 1$\n$$\n\\left|x_{n}\\right|=-x_{n}>\\left|x_{n-1}\\right|>2\n$$\nciaè la prima disuguaglianza da dimostrare;\ndall'altro lato per $n \\geq 2$ (quando cioè sappiamo che $x_{n-1}<0$ )\n$$\nx_{n}< -\\left|x_{n-1}\\right|=x_{n-1},\n$$\nmentre per $n=1$ comunque (come abbiamo visto)\n$$\nx_{n}< -\\left|x_{n-1}\\right| \\leq x_{n-1},\n$$\nquindi anche la seconda disuguaglianza è verificata anche per $n$; e per induzione a questo punto le disuguaglianze valgono per tutti gli $n \\geq 0$, cioè la proprietà è vera.\nMa come abbiamo detto la proprietà è più forte della nostra tesi, che quindi è anch'essa dimostrata.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33863, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABC$ un triangolo acutangolo; sia $O$ il suo circocentro e siano $P, Q$ i punti (diversi da $A$) in cui rispettivamente l'altezza uscente dal vertice $A$ e il prolungamento di $AO$ incontrano la circonferenza circoscritta ad $ABC$.\n\na. Si dimostri che gli angoli $B\\widehat{A}P$ e $Q\\widehat{A}C$ sono congruenti;\n\nb. Si dimostri che i triangoli $BCP$ e $CBQ$ sono congruenti;\n\nc. Si dimostri che, detti $M$ e $N$ i punti medi di $AB$ e $AC$, l'area del quadrilatero $ABPC$ vale quattro volte l'area del quadrilatero $AMON$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\na. Sia $K$ il punto d'intersezione tra $AP$ e $BC$ (ovvero il piede dell'altezza uscente da $A$). Dato che $\\widehat{AKB} = 90^\\circ$, abbiamo che $\\widehat{BAK} = 90^\\circ - \\widehat{ABC}$. Inoltre $\\widehat{ABC} = \\frac{1}{2} \\widehat{AOC}$ (angoli rispettivamente alla circonferenza e al centro che insistono sullo stesso arco). Infine, poiché $AOC$ è isoscele ($AO$ e $CO$ sono raggi della circonferenza circoscritta ad $ABC$), abbiamo anche che $\\widehat{AOC} = 180^\\circ - 2\\widehat{OAC}$. Quindi\n$$\n\\widehat{BAP} = \\widehat{BAK} = 90^\\circ - \\widehat{ABC} = 90^\\circ - \\frac{1}{2} \\widehat{AOC} = 90^\\circ - \\frac{1}{2}(180^\\circ - 2\\widehat{OAC}) = \\widehat{OAC} = \\widehat{QAC}\n$$\n\nb. $\\widehat{BCP} = \\widehat{BAP}$ in quanto angoli alla circonferenza che insistono sullo stesso arco. Per lo stesso motivo, $\\widehat{QBC} = \\widehat{QAC}$. Allora, per quanto dimostrato nel punto (a), $\\widehat{BCP} = \\widehat{BAP} = \\widehat{QAC} = \\widehat{QBC}$. Inoltre $\\widehat{BPC} = \\widehat{BQC}$ (sempre perché angoli alla circonferenza insistenti sullo stesso arco).\nConsideriamo ora i triangoli $BCP$ e $CBQ$. Abbiamo dimostrato che hanno due coppie di angoli uguali, ma allora per differenza anche il terzo angolo è uguale nei due triangoli: $\\widehat{CBP} = \\widehat{BCQ}$. Questi triangoli hanno inoltre il lato $BC$ in comune, quindi sono congruenti per il secondo criterio.\n\nc. Per la congruenza dimostrata nel punto (b), l'area di $ABPC$ è uguale all'area di $ABQC$. Inoltre, per definizione di $M, N$ e $O$, si ha che $AB = 2AM$, $AC = 2AN$ e $AQ = 2AO$; quindi l'omotetia di centro $A$ e fattore $2$ manda il quadrilatero $AMON$ nel quadrilatero $ABQC$. Il rapporto tra l'area di $ABQC$ e l'area di $AMON$ è pertanto $2^2 = 4$.\n\n![](attached_image_1.png)", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33864, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn un triangolo acutangolo $ABC$ con $AB < AC$, la bisettrice che parte da $A$ interseca il lato $BC$ nel punto $P$. La parallela al lato $AB$ passante per $P$ interseca il lato $AC$ nel punto $Q$; su questa retta sia $R$ il punto che giace sulla semiretta uscente da $Q$ che non contiene $P$ e tale che $QR = QA$. Chiamiamo poi $S$ la proiezione ortogonale di $R$ su $BC$ e $T$ l'intersezione tra $AC$ e la retta passante per $P$ e perpendicolare ad $AP$.\n\na. Dimostrare che il circocentro di $APR$ è $Q$;\nb. Dimostrare che $STC$ è simile ad $APC$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\na. Dimostriamo che non solo il triangolo $QAR$ è isoscele di base $AR$ per costruzione, ma anche il triangolo $PAQ$ lo è (con base $AP$).\n\n![](attached_image_1.png)\n\nInfatti\n$$\nB\\widehat{A}P = P\\widehat{A}Q\n$$\nperché $AP$ è bisettrice, mentre\n$$\nB\\widehat{A}P = A\\widehat{P}Q\n$$\nperché angoli alterni interni rispetto alla trasversale $AP$ che taglia le parallele $BA$ e $PQ$. Quindi anche\n$$\nP\\widehat{A}Q = A\\widehat{P}Q\n$$\nciaè, per l'appunto, il triangolo $PAQ$ è isoscele. Ma i due triangoli isosceli $QAR$ e $PAQ$ hanno il lato $AQ$ in comune, quindi\n$$\nQP = QA = QR\n$$\nil che vuol dire che $Q$ è il circocentro del triangolo $APR$, come richiesto.\n\nb. Innanzitutto dimostriamo il seguente lemma.\n\n**Lemma 1.** Il triangolo $APR$ è rettangolo in $A$.\n\n*Dimostrazione.*\nCalcoliamo le ampiezze degli angoli $P\\widehat{A}Q$ e $Q\\widehat{A}R$:\n$$\n\\begin{aligned}\nP\\widehat{A}Q &= \\frac{180^0 - P\\widehat{Q}A}{2} \\\\\nQ\\widehat{A}R &= \\frac{180^0 - A\\widehat{Q}R}{2}\n\\end{aligned}\n$$\nma allora\n$$\nP\\widehat{A}R = P\\widehat{A}Q + Q\\widehat{A}R = \\frac{180^0 - P\\widehat{Q}A}{2} + \\frac{180^0 - A\\widehat{Q}R}{2} = \\frac{360^0 - (P\\widehat{Q}A + A\\widehat{Q}R)}{2} = 90^0\n$$\nperché $P\\widehat{Q}A$ e $A\\widehat{Q}R$ sono supplementari (insieme costituiscono l'angolo piatto $P\\widehat{Q}R$).\n\nA questo punto è facile vedere che i punti $P, A, R, T, S$ sono su una stessa circonferenza di centro $Q$. In effetti, di $P, A$ ed $R$ lo sappiamo già dal punto precedente; ed inoltre\n\n- $S$ appartiene alla stessa circonferenza perché $S$ e $A$ vedono sotto un angolo retto lo stesso segmento $PR$ (quindi $APSR$ è un quadrilatero ciclico);\n\n![](attached_image_2.png)\n\n- anche $T$ appartiene a quella circonferenza, perché la sua distanza dal centro $Q$, cioè la lunghezza del segmento $QT$, è pari alla lunghezza di $QP$, che è un raggio della circonferenza: infatti giacché $PT$ è parallela ad $AR$,\n$$\nQ\\widehat{P}T = Q\\widehat{R}A\n$$\nma d'altra parte,\n$$\nR\\widehat{Q}A = P\\widehat{Q}T\n$$\nperché angoli opposti al vertice $Q$, dunque il triangolo $PQT$ è simile (di fatto, congruente) al triangolo $RQA$ che è isoscele di base $AR$ ed è quindi anch'esso isoscele di base $PT$.\n\nMa allora $APST$ è a sua volta un quadrilatero ciclico, quindi\n$$\nP\\widehat{A}T = 180^0 - P\\widehat{S}T = T\\widehat{S}C\n$$\nda cui si ricava che appunto i triangoli $APC$ ed $STC$ sono simili, avendo un angolo in comune e due angoli corrispondenti uguali (e cioè quelli in $A$ e in $S$ rispettivamente).", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33865, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn un triangolo acutangolo $ABC$ con $AB < AC$, la bisettrice che parte da $A$ interseca il lato $BC$ nel punto $P$. La parallela al lato $AB$ passante per $P$ interseca il lato $AC$ nel punto $Q$; su questa retta sia $R$ il punto che giace sulla semiretta uscente da $Q$ che non contiene $P$ e tale che $QR = QA$. Chiamiamo poi $S$ la proiezione ortogonale di $R$ su $BC$ e $T$ l'intersezione tra $AC$ e la retta passante per $P$ e perpendicolare ad $AP$.\n\na. Dimostrare che il circocentro di $APR$ è $Q$;\nb. Dimostrare che $STC$ è simile ad $APC$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\na.\nDimostriamo che non solo il triangolo $QAR$ è isoscele di base $AR$ per costruzione, ma anche il triangolo $PAQ$ lo è (con base $AP$).\n\n![](attached_image_1.png)\n\nInfatti\n$$\nB\\widehat{A}P = P\\widehat{A}Q\n$$\nperché $AP$ è bisettrice, mentre\n$$\nB\\widehat{A}P = A\\widehat{P}Q\n$$\nperché angoli alterni interni rispetto alla trasversale $AP$ che taglia le parallele $BA$ e $PQ$. Quindi anche\n$$\nP\\widehat{A}Q = A\\widehat{P}Q\n$$\nciaè, per l'appunto, il triangolo $PAQ$ è isoscele. Ma i due triangoli isosceli $QAR$ e $PAQ$ hanno il lato $AQ$ in comune, quindi\n$$\nQP = QA = QR\n$$\nil che vuol dire che $Q$ è il circocentro del triangolo $APR$, come richiesto.\n\nb.\nInnanzitutto dimostriamo il seguente lemma.\n\n**Lemma 1.** Il triangolo $APR$ è rettangolo in $A$.\n\nDimostrazione.\nCalcoliamo le ampiezze degli angoli $P\\widehat{A}Q$ e $Q\\widehat{A}R$:\n$$\n\\begin{aligned}\nP\\widehat{A}Q &= \\frac{180^0 - P\\widehat{Q}A}{2} \\\\\nQ\\widehat{A}R &= \\frac{180^0 - A\\widehat{Q}R}{2}\n\\end{aligned}\n$$\nma allora\n$$\nP\\widehat{A}R = P\\widehat{A}Q + Q\\widehat{A}R = \\frac{180^0 - P\\widehat{Q}A}{2} + \\frac{180^0 - A\\widehat{Q}R}{2} = \\frac{360^0 - (P\\widehat{Q}A + A\\widehat{Q}R)}{2} = 90^0\n$$\nperché $P\\widehat{Q}A$ e $A\\widehat{Q}R$ sono supplementari (insieme costituiscono l'angolo piatto $P\\widehat{Q}R$).\n\nA questo punto è facile vedere che i punti $P, A, R, T, S$ sono su una stessa circonferenza di centro $Q$. In effetti, di $P, A$ ed $R$ lo sappiamo già dal punto precedente; ed inoltre\n- $S$ appartiene alla stessa circonferenza perché $S$ e $A$ vedono sotto un angolo retto lo stesso segmento $PR$ (quindi $APSR$ è un quadrilatero ciclico);\n\n![](attached_image_2.png)\n\n- anche $T$ appartiene a quella circonferenza, perché la sua distanza dal centro $Q$, cioè la lunghezza del segmento $QT$, è pari alla lunghezza di $QP$, che è un raggio della circonferenza: infatti giacché $PT$ è parallela ad $AR$,\n$$\nQ\\widehat{P}T = Q\\widehat{R}A\n$$\nma d'altra parte,\n$$\nR\\widehat{Q}A = P\\widehat{Q}T\n$$\nperché angoli opposti al vertice $Q$, dunque il triangolo $PQT$ è simile (di fatto, congruente) al triangolo $RQA$ che è isoscele di base $AR$ ed è quindi anch'esso isoscele di base $PT$.\n\nMa allora $APST$ è a sua volta un quadrilatero ciclico, quindi\n$$\nP\\widehat{A}T = 180^0 - P\\widehat{S}T = T\\widehat{S}C\n$$\nda cui si ricava che appunto i triangoli $APC$ ed $STC$ sono simili, avendo un angolo in comune e due angoli corrispondenti uguali (e cioè quelli in $A$ e in $S$ rispettivamente).", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33866, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nMarco, Fabrizio e Giovanni, tre matematici, sfidano un gruppo di quattro fisici a un torneo di calcio balilla. Giocano un incontro per ogni possibile combinazione di due matematici (uno in attacco, uno in difesa) contro due fisici (uno in attacco, uno in difesa). Ciascun incontro ha la stessa durata, e in totale il torneo dura ben 24 ore (senza pause). Quanto tempo gioca Marco in difesa?\nSi noti che, ad esempio, vi saranno due incontri diversi di Marco e Fabrizio contro un certo attaccante e un certo difensore fra i fisici: uno con Marco attaccante e Fabrizio difensore, uno viceversa.\n(A) 2 ore e 24 minuti\n(B) 4 ore e 48 minuti\n(C) 6 ore\n(D) 8 ore\n(E) 12 ore.", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). Per simmetria, ciascuno fra Marco, Fabrizio e Giovanni deve trascorrere lo stesso tempo alla difesa della squadra dei matematici, che dunque risulta essere un terzo delle 24 ore del torneo, cioè 8 ore. In alternativa possiamo osservare che ci saranno $3 \\cdot 2 \\cdot 4 \\cdot 3$ incontri in totale (3 modi di scegliere l'attaccante dei matematici, 2 per il difensore, 4 per l'attaccante dei fisici e 3 per il difensore); gli incontri in cui Marco è difensore sono $2 \\cdot 4 \\cdot 3$, e dunque le ore che trascorre in difesa sono $\\frac{2 \\cdot 4 \\cdot 3}{3 \\cdot 2 \\cdot 4 \\cdot 3} 24=\\frac{24}{3}=8$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33867, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDeterminare tutti gli interi positivi che sono uguali a 300 volte la somma delle loro cifre.", "options": [], "answer": "2700", "solution": "Solution:\n\nDimostreremo che c'è un'unica soluzione, ossia $n=2700$.\n\nSia $n$ un intero positivo che soddisfa la condizioni date. Osserviamo immediatamente che, poiché $n$ è un multiplo di $300$, e quindi di $100$, le cifre delle unità e delle decine di $n$ devono essere uguali a zero. Supponiamo dunque che la sua scrittura decimale sia $n=a_{k} a_{k-1} \\cdots a_{2} 00$, dove, come di consueto, la prima cifra $a_{k}$ è diversa da zero. Abbiamo\n$$\nn=10^{k} a_{k}+10^{k-1} a_{k-1}+\\cdots+100 a_{2} \\geq 10^{k}\n$$\ne, poiché tutte le cifre sono minori o uguali a $9$,\n$$\ns:=a_{k}+a_{k-1}+\\cdots+a_{2} \\leq 9(k-1) .\n$$\nDall'ipotesi $n=300 s$ abbiamo, per le disuguaglianze precedenti, $10^{k} \\leq 300 \\cdot 9(k-1)=2700(k-1)$. Verifichiamo per induzione che quest'ultima disuguaglianza è falsa per $k \\geq 4$ : il passo base è la verifica che $10^{4}>2700 \\cdot 3=8100$; per il passo induttivo, supponiamo che $10^{k}>2700(k-1)$ : allora $10^{k+1}>10^{k} \\cdot 2>2700(2 k-2)>2700(k-2)$.\n\nNe segue che $k \\leq 3$. Dunque $n$ è della forma $10^{3} a_{3}+10^{2} a_{2}$ (in questo caso sarebbe a priori consentito anche $a_{3}=0$, anche se come vedremo questo non si verifica). L'equazione $n=300 s$ diventa $1000 a_{3}+100 a_{2}=300 a_{3}+300 a_{2}$, che a sua volta si semplifica in\n$$\n7 a_{3}=2 a_{2} .\n$$\nDa quest'ultima equazione si ricava che $7$ è un divisore di $a_{2}$, dunque l'unica possibilità per avere un intero positivo è $a_{2}=7$ e di conseguenza $a_{3}=2$. D'altra parte il numero così trovato, $n=2700$, soddisfa effettivamente le condizioni del problema.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33868, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nMarco, Fabrizio e Giovanni, tre matematici, sfidano un gruppo di quattro fisici a un torneo di calcio balilla (costituito da un certo numero di partite) in cui alla fine vince il gruppo che ha segnato il maggior numero di goal totali.\nIn ogni partita i fisici segnano 2 goal in più di quanti ne avevano segnati nella precedente, a partire da 1 goal nella prima. Sapendo che il totale dei goal segnati da fisici e matematici è 330 e che sono i matematici ad aggiudicarsi la vittoria nel torneo, determinare lo scarto minimo di goal che può essersi verificato.\n(A) 1 goal\n(B) 2 goal\n(C) 24 goal\n(D) 42 goal\n(E) 48 goal.", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). I gol segnati dai fisici nelle prime $n$ partite sono pari alla somma dei primi $n$ numeri dispari, cioè sono $n^{2}$. Poiché i matematici hanno vinto, essi hanno segnato più di $330/2 = 165$ goal, quindi i fisici hanno segnato meno di $165$ goal. Il più grande quadrato perfetto minore di $165$ è $144=12^{2}$, che rappresenta il massimo numero di goal che possono aver segnato i fisici. Quindi i matematici hanno segnato almeno $330-144=186$ goal e lo scarto minimo è quindi $186-144=42$, che può essersi realizzato se ad esempio i matematici hanno segnato $15$ goal in $6$ delle $12$ partite e $16$ goal nelle restanti $6$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33869, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAlice, Berto e Carlo stanno cercando un tesoro. Sapendo che i tre amici si trovano sui vertici di un triangolo equilatero e che il tesoro si trova in un punto al di fuori del triangolo, a 1 metro di distanza da Alice e da Berto e 2 metri di distanza da Carlo, quanti metri misura il lato del triangolo?\n\n(A) $\\frac{2}{\\sqrt{3}}$\n(B) $\\frac{3 \\sqrt{3}}{4}$\n(C) $\\frac{\\sqrt{3}}{2}$\n(D) $\\frac{3}{2}$\n(E) $\\sqrt{3}$.", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è $(\\mathbf{E})$. Siano $A, B, C$ i tre amici e $T$ il tesoro. Per simmetria $C T$ è perpendicolare ad $A B$.\n\nConsideriamo il triangolo $A C T$. $\\widehat{A C T}=30^\\circ$ e $C T=2 A T$; questo è sufficiente per concludere che $A C T$ è emiequilatero (ovvero è la metà di un triangolo equilatero). In particolare $\\widehat{C A T}=90^\\circ$ e per il teorema di Pitagora $A C=\\sqrt{C T^2-A T^2}=\\sqrt{2^2-1^2}=\\sqrt{3}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33870, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAlice, Berto e Carlo devono seppellire un tesoro e decidono di seppellirlo in un punto equidistante da tutti e tre. Sapendo che si trovano ai vertici di un triangolo rettangolo con un angolo di $30^{\\circ}$ e di perimetro $6~\\mathrm{m}$, quale sarà la distanza del tesoro da ciascuno?\n\n(A) $1~\\mathrm{m}$\n\n(B) $\\frac{3}{2}~\\mathrm{m}$\n\n(C) $2~\\mathrm{m}$\n\n(D) $3-\\sqrt{3}~\\mathrm{m}$\n\n(E) $3~\\mathrm{m}$.", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è **(D)**. Il tesoro è sepolto nel circocentro $O$ del triangolo ai vertici del quale si trovano Alice, Berto e Carlo. Poiché tale triangolo è rettangolo, $O$ è il punto medio dell'ipotenusa. Detta $x$ la sua lunghezza espressa in metri, si ha $x+\\frac{x}{2}+\\frac{x}{2} \\sqrt{3}=6$, da cui $\\frac{3+\\sqrt{3}}{2} x=6$ e $x=2(3-\\sqrt{3})$. Quindi la distanza dal tesoro di ciascuno è $3-\\sqrt{3}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33871, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nQuanti sono i numeri di 2 cifre tali che, se si sottrae la somma delle cifre dal numero di partenza, si ottiene 45?\n\n(A) 0\n(B) 1\n(C) 9\n(D) 10\n(E) 20.", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). Un numero che abbia $a$ come cifra delle decine e $b$ come cifra delle unità si può esprimere come $10a + b$; l'esercizio chiede di contare i numeri di due cifre per cui $10a + b - (a + b) = 45$, ovvero tali che $9a = 45$. Tali numeri sono tutti quelli che hanno cifra delle decine 5: gli interi da 50 a 59, che sono 10.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33872, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDelle tre radici $a, b, c$ del polinomio $2x^{3}-7x^{2}-2x+12$ sappiamo che $4a=3(b+c)$. Quanto vale $a+bc$?\n\n(A) $-\\frac{5}{2}$\n(B) $1-\\sqrt{3}$\n(C) $0$\n(D) $\\frac{7}{4}$\n(E) $2+\\sqrt{5}$.", "options": [], "answer": "A", "solution": "Solution:\n\nLa risposta è (A). Si ha $a+b+c=\\frac{7}{2}$ e $abc=-6$. Quindi $4a+4b+4c=14$ e, coi dati del testo, $3(b+c)+4b+4c=14$, da cui $b+c=2$. Quindi $a=\\frac{3}{2}$ e $bc=-4$, quindi $a+bc=\\frac{3}{2}-4=-\\frac{5}{2}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33873, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $x_{1}, x_{2}, x_{3}, \\ldots$ la successione definita per ricorrenza come segue:\n$$\n\\left\\{\\begin{array}{l}\nx_{1}=4 \\\\\nx_{n+1}=x_{1} x_{2} x_{3} \\cdots x_{n}+5 \\quad \\text{ per } n \\geq 1\n\\end{array}\\right.\n$$\n(I primi termini della successione sono quindi $x_{1}=4, x_{2}=4+5=9, x_{3}=4 \\cdot 9+5=41, \\ldots$ ) Trovare tutte le coppie di interi positivi $\\{a, b\\}$ tali che $x_{a} x_{b}$ è un quadrato perfetto.", "options": [], "answer": "{1,2}", "solution": "Solution:\n\nDimostreremo che l'unica coppia che soddisfa le condizioni del problema è $\\{1,2\\}$. (Chiaramente si ha una soluzione anche se $a=b=n$ per ogni $n$, ma in questo caso $\\{a, b\\}$ non è una coppia; aver o non aver considerato questo caso è comunque ininfluente ai fini della valutazione).\nPossiamo ovviamente supporre, per simmetria, $a>b$.\n\nPer $n \\geq 2$, sfruttando il fatto che $x_{1} \\ldots x_{n-1}=x_{n}-5$, possiamo scrivere anche $x_{n+1}=\\left(x_{1} \\ldots x_{n-1}\\right) x_{n}+5=\\left(x_{n}-5\\right) x_{n}+5=x_{n}^{2}-5 x_{n}+5$.\nOsserviamo che per $a>b$ si ha $x_{a}=x_{1} \\ldots x_{b} \\ldots x_{a-1}+5$, quindi, se un primo divide sia $x_{a}$ che $x_{b}$, allora divide $x_{a}-x_{1} \\ldots x_{b} \\ldots x_{a-1}=5$.\nTuttavia, 5 divide $x_{n+1}=x_{n}^{2}-5 x_{n}+5$ se e solo se divide $x_{n}$: ne segue che se un termine della successione non è divisibile per 5, neanche il successivo lo è. Dato che $x_{1}$ non è divisibile per 5, nessun termine della successione è divisibile per 5.\nQuesto dimostra che $x_{a}$ e $x_{b}$ non hanno mai divisori primi in comune, quindi $x_{a} x_{b}$ è un quadrato perfetto se e solo se lo sono sia $x_{a}$ che $x_{b}$: cerchiamo perciò quali quadrati perfetti ci siano nella successione.\nCertamente $x_{1}=4$ e $x_{2}=9$ sono quadrati, quindi $\\{1,2\\}$ è una soluzione.\nD'altra parte, siccome $x_{2}=9$, per $n \\geq 2$ il numero $x_{n}$ è della forma $x_{n}=9 k+5$ e quindi, in particolare, dà resto 2 nella divisione per 3. Ora è facile verificare che nessun quadrato ha questa proprietà, in quanto il quadrato di un multiplo di 3 è un multiplo di 3 mentre il quadrato di un numero della forma $3 m \\pm 1$ è $9 m^{2} \\pm 6 m+1$ e quindi dà resto 1 nella divisione per 3. Quindi non ci sono altre soluzioni oltre a quella trovata.\n\nAlternativamente, in forma forse più elementare, visto che per $n \\geq 2$ abbiamo $x_{n+1}=x_{n}^{2}-5 x_{n}+5$, possiamo studiare l'equazione $x^{2}-5 x+5=a^{2}$ con $x, a$ interi positivi.\nMoltiplicando entrambi i membri per 4 otteniamo\n$$\n\\begin{gathered}\n4 a^{2}=4 x^{2}-20 x+20=(2 x-5)^{2}-5 \\Rightarrow 5=(2 x-5)^{2}-4 a^{2} \\\\\n\\Rightarrow(2 x-2 a-5)(2 x+2 a-5)=5 .\n\\end{gathered}\n$$\nSiccome 5 è divisibile solo per $\\pm 1, \\pm 5$ e $2 x+a-5>2 x-a-5$, ci sono solo le due possibilità $2 x+2 a-5=-1, 2 x-2 a-5=-5$ e $2 x+2 a-5=5, 2 x-2 a-5=1$, che portano rispettivamente a $x=1, a=1$ e $x=4, a=1$. Il numero 1, comunque, non può comparire nella successione, perché $x_{1}=4$ e ogni termine è più grande del precedente.\nSe ne deduce nuovamente che nella successione non compaiono quadrati perfetti, a parte $x_{1}=4, x_{2}=9$ (che non si esprimono nella forma $x^{2}-5 x+5$ ).", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33874, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSi sa che $p(x)$ è un polinomio monico di grado $5$. Inoltre, si sa che le soluzioni dell'equazione $p(x)=0$ sono esattamente $x=0, 1, 2, 4$. Determinare il massimo valore che può assumere il coefficiente del termine di primo grado.\n\nNota: un polinomio è monico se il coefficiente del suo termine di grado più alto (nel nostro caso: quello di quinto grado) è $1$.\n\n(A) $-32$\n(B) $16$\n(C) $32$\n(D) $64$\n(E) Può assumere valori arbitrariamente grandi.", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è $(\\mathbf{C})$. Il polinomio si può scrivere come prodotto di cinque fattori di primo grado: $x(x-1)(x-2)(x-4)(x-k)$, dove $k \\in \\{0,1,2,4\\}$. Il termine di primo grado ha coefficiente $(-1)(-2)(-4)(-k)=8k$, che è massimo per $k=4$ e vale in tal caso $32$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33875, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABCD$ un quadrato. Si descriva il luogo di punti $P$ del piano diversi da $A, B, C, D$ per i quali\n$$\n\\widehat{APB} + \\widehat{CPD} = 180^{\\circ} \\text{.}\n$$", "options": [], "answer": "The locus is exactly the union of the two diagonals AC and BD and the two arcs AB and CD of the circumcircle of the square, excluding the vertices.", "solution": "Solution:\n\nRicordiamo dapprima che, dati due punti $A, B$ del piano e fissato un angolo $\\alpha$, il luogo dei punti $Q$ tali che $\\widehat{AQB} = \\alpha$ è costituito dall'unione di due archi di circonferenza, uno per ogni semipiano individuato dalla retta $AB$.\n\nIdentifichiamo innanzitutto il nostro luogo:\n\n- le due diagonali del quadrato appartengono sicuramente al luogo, infatti se consideriamo $P \\in AC$, allora, per simmetria, si ha $\\widehat{APB} = \\widehat{APD}$ e quindi si ha\n$$\n\\widehat{APB} + \\widehat{CPD} = \\widehat{APD} + \\widehat{CPD} = 180^{\\circ} \\text{;}\n$$\n\n- considerando la circonferenza circoscritta ad $ABCD$, gli archi $AB$ e $CD$ appartengono al luogo. Infatti per questi punti i due angoli $\\widehat{APB}$ e $\\widehat{CPD}$ sottendono due archi della medesima lunghezza, ed essendo uno acuto e uno ottuso, sono per forza supplementari.\n\nOra rimane da dimostrare che non ci sono altri punti del luogo al di fuori di questi. Notiamo che, se $P$ è un qualsiasi punto del luogo, uno tra $\\widehat{APB}, \\widehat{CPD}$ deve essere di almeno $90^{\\circ}$ e quindi sicuramente $P$ è interno ad uno dei due cerchi che hanno come diametro rispettivamente $AB$ e $CD$. In particolare quindi $P$ appartiene alla striscia delimitata dalle rette $BC$ e $AD$. Distinguiamo ora tra punti interni al quadrato e punti esterni:\n\n- Sia $Q$ interno al quadrato tale che $\\widehat{AQB} = \\alpha$ e $\\widehat{CQD} = 180^{\\circ} - \\alpha$. Tuttavia, se $\\alpha < 45^{\\circ}$ tutti i punti che verificano $\\widehat{AQB} = \\alpha$ sono esterni al quadrato (la circonferenza sarà più grande di quella circoscritta ad $ABCD$); similmente non possono esserci punti del luogo interni al quadrato tali che $\\widehat{CQD} < 45^{\\circ}$. Dunque sicuramente devo avere $45^{\\circ} \\leq \\alpha \\leq 135^{\\circ}$. Fissiamo un angolo $\\alpha$ con questa proprietà.\n\nAllora esistono al più due punti che verificano $\\widehat{AQB} = \\alpha$ e $\\widehat{CQD} = 180^{\\circ} - \\alpha$; infatti queste ultime due condizioni identificano (insieme all'essere interni al quadrato), come detto all'inizio, due archi di circonferenza, che si possono intersecare in al più due punti.\n\nTuttavia è facile notare che l'arco di circonferenza determinato dalla condizione $\\widehat{AQB} = \\alpha$, se $45^{\\circ} < \\alpha < 90^{\\circ}$, lascia fuori i punti $C$ e $D$ e ha al suo interno il punto d'intersezione delle diagonali del quadrato $O$, quindi interseca sicuramente le due diagonali, in due punti distinti, che sappiamo appartenere al luogo. Quindi non possono essercene altri;\n\n- Sia $Q$ esterno al quadrato (ma sempre nella striscia di piano individuata dalle rette $BC$ e $AD$), diciamo nel semipiano individuato da $AB$ che non contiene il quadrato; tracciamo la perpendicolare ad $AB$ che passa per $Q$; essa intersecherà l'arco $AB$ della circonferenza circoscritta al quadrato esattamente in un punto che chiamiamo $P$. È chiaro che se $P$ è più vicino ad $AB$ rispetto a $Q$ allora\n$$\n\\widehat{AQB} < \\widehat{APB} \\quad \\widehat{CQB} < \\widehat{CPB}\n$$\ne quindi $\\widehat{AQB} + \\widehat{CQB} < \\widehat{APB} + \\widehat{CPB} = 180^{\\circ}$ (l'ultima uguaglianza è perché $P$ appartiene al luogo) e similmente ottengo che se $P$ sta più lontano di $Q$ allora $\\widehat{APB} + \\widehat{CPB} < 180^{\\circ}$. Dunque necessariamente $P = Q$ e quindi non ci sono altri punti del luogo esterni al quadrato che non stanno sulla circonferenza circoscritta ad $ABCD$.\n\n\nSoluzione alternativa (per la seconda parte):\n\nSia $P$ un punto del luogo situato nella striscia delimitata dalle rette $AB$ e $CD$. Chiamiamo $P'$ il traslato di $P$ secondo il vettore $\\overrightarrow{BC}$; allora, per costruzione, il quadrilatero $DP'CP$ risulta essere ciclico; ma allora, poiché si ha $PP' = CD$, avremo che, chiamando $\\widehat{CPD} = \\alpha$ e $\\widehat{CP'D} = 180^{\\circ} - \\alpha$, si possono verificare due situazioni:\n$$\n\\widehat{PCP'} = \\alpha \\text{ e } \\widehat{PDP'} = 180^{\\circ} - \\alpha \\text{ o viceversa.}\n$$\nNel primo caso $CP$ e $DP'$ sono paralleli, quindi $AP$ e $CP$ sono paralleli, ossia $P$ giace sulla diagonale $AC$. Nell'altro caso, simmetricamente, $P$ giace sulla diagonale $BD$.\n\nSe invece $P$ si trova fuori dalla striscia sopra menzionata, diciamo nel semipiano individuato dalla retta $AB$ non contenente il quadrato, consideriamo $P'$ il simmetrico di $P$ rispetto all'asse del segmento $BC$; per costruzione di nuovo $PAP'B$ risulta ciclico e il centro della circonferenza circoscritta si troverà sull'asse di $PP'$, che per costruzione è l'asse di $BC$, e anche sull'asse di $AB$. Dunque il centro di questa circonferenza è il centro del quadrato e, essendo $A$ e $B$ punti della circonferenza, lo sono anche $B$ e $C$, per simmetria. Quindi la circonferenza circoscritta a $PAP'B$ è anche la circonferenza circoscritta al quadrato e dunque $P$ si trova effettivamente sulla circonferenza circoscritta ad $ABCD$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33876, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUna ed una sola delle seguenti affermazioni è falsa. Quale?\n\n(A) \"La (B) è falsa\"\n(B) \"La (C) è falsa\"\n(C) \"La (E) è vera\"\n(D) \"La (A) è vera\"\n(E) \"Tre delle precedenti sono vere\".", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è (B). Se supponiamo che la frase \"La (B) è falsa\" sia falsa, allora anche la (D) è falsa, contro l'ipotesi del problema. Quindi la frase \"La (B) è falsa\" è vera, quindi l'affermazione falsa è la (B) e tutte le altre risultano vere.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33877, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDopo una gara fra cinque cavalli, cinque amici si incontrano e parlano dei risultati. Si sa che ognuno di loro ha puntato su un cavallo diverso, e che mentono entrambe le persone che hanno puntato sul primo e sull'ultimo classificato; le altre dicono la verità. Le loro affermazioni sono le seguenti:\n\nAlex: \"Il cavallo su cui ha puntato Igor ha distanziato di almeno due posizioni il cavallo di Enrica.\"\n\nEnrica: \"Il cavallo su cui ho puntato io ha vinto.\"\n\nIgor: \"Il cavallo su cui ha puntato Osvaldo ha superato il mio.\"\n\nOsvaldo: \"Il cavallo su cui ho puntato non è arrivato fra i primi tre.\"\n\nUmberto: \"Il mio cavallo non ha vinto ma è arrivato subito dopo quello di Alex e subito prima di quello di Enrica.\"\n\nChi ha puntato sul cavallo classificatosi terzo?\n\n(A) Alex\n(B) Igor\n(C) Osvaldo\n(D) Umberto", "options": [], "answer": "A", "solution": "Solution:\n\nLa risposta è (A). Enrica non può che mentire (se il suo cavallo fosse arrivato primo come lei asserisce dovrebbe mentire, assurdo) e dunque il suo cavallo è ultimo. Se Umberto dicesse il vero il suo cavallo sarebbe penultimo, quello di Alex terzo. In tal caso Osvaldo mente (le ultime due posizioni sono già occupate) e quindi il suo cavallo è il vincitore; il cavallo di Igor è secondo, e sia Igor sia Alex dicono la verità. Se invece Umberto mentisse dovrebbe aver puntato sul cavallo vincitore; Osvaldo dovrebbe aver puntato sul cavallo classificatosi quarto per non trovarsi sul podio, ma allora Igor dovrebbe aver mentito, assurdo.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33878, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLa quantità di inchiostro usato per comporre un testo per le Olimpiadi della Matematica segue una strana legge: negli anni dispari aumenta del $50\\%$ rispetto all'anno precedente, negli anni pari diminuisce di un sesto (sempre rispetto all'anno precedente). Tra quanti anni per la prima volta sarà almeno il triplo che nel 2012?\n\n(A) 5\n(B) 6\n(C) 7\n(D) 8\n(E) 9 .", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è $\\mathbf{( E )}$. Certamente la quantità di inchiostro supererà il triplo del 2012 per la prima volta in un anno dispari, giacché negli anni pari diminuisce. Se sono passati $2k+1$ anni, quindi, essa sarà diventata\n$$\n\\frac{3}{2} \\cdot \\left(\\frac{5}{6} \\cdot \\frac{3}{2}\\right)^{k}.\n$$\nImponendo che questa quantità sia maggiore di $3$, dopo qualche semplice passaggio ci troviamo a dover trovare il minimo $k$ per cui\n$$\n\\left(\\frac{5}{4}\\right)^{k} > 2\n$$\nma per $k=3$ si ottiene $\\frac{125}{64} < \\frac{128}{64} = 2$, mentre per $k=4$ si trova $\\frac{625}{256}$ che è chiaramente maggiore di $2$. Ci troveremo allora nel $2 \\cdot 4 + 1$-esimo anno, cioè il nono.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33879, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABC$ un triangolo isoscele con base $BC$, sia $D$ il punto medio di $AC$. Sapendo che $BCD$ è a sua volta isoscele con base $CD$ e che $BC=2$, quanto misura l'area di $ABC$?\n\n(A) 2\n(B) $\\sqrt{5}$\n(C) $\\sqrt{6}$\n(D) $\\sqrt{7}$\n(E) 3.", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è $\\mathbf{( D )}$. Tracciamo l'altezza $BH$ di $BCD$, che sarà anche una mediana poiché il triangolo è isoscele. Allora $CD=2CH$, e $BA=CA=2CD=4CH$, perciò $HA=3CH$ e quindi $BH=\\sqrt{7}CH=\\frac{\\sqrt{7}}{2}CD$ per il teorema di Pitagora. Inoltre $BCD \\sim ABC$ poiché sono entrambi isosceli ed hanno lo stesso angolo alla base in $\\widehat{C}$, perciò anche l'angolo al vertice è uguale. Allora, detta $AK$ l'altezza di $ABC$, $AK=\\frac{\\sqrt{7}}{2}BC$ per la similitudine; poiché $BC=2$, $\\operatorname{Area}(ABC)=\\frac{AK \\cdot BC}{2}=\\sqrt{7}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33880, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLe spese per organizzare le Olimpiadi Nazionali della Matematica incrementano ogni anno dello $0,5\\%$ rispetto all'anno precedente. In che anno le spese saranno esattamente il doppio rispetto a quelle del 2012?\nNota: nel 2012 le spese non sono nulle.\n(A) 2023\n(B) 2150\n(C) 2151\n(D) 2212\n(E) mai.", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è $\\mathbf{( E )}$. Se in un certo anno le spese sono pari a $x$, nell'anno successivo le spese diventano $\\frac{100,5}{100} x = \\frac{201}{200} x$. Dopo $k$ anni le spese sono quindi $\\left(\\frac{201}{200}\\right)^{k} x$. Ci chiediamo quindi per quali interi positivi $k$ si ha che $\\left(\\frac{201}{200}\\right)^{k} = 2$, ovvero $201^{k} = 2 \\cdot 200^{k}$. In questa equazione entrambi i membri sono numeri interi, il membro di sinistra è sempre dispari mentre il membro di destra è sempre pari. Concludiamo quindi che le spese non saranno mai esattamente il doppio rispetto a quelle del 2012.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33881, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nI numeri $a, b$ sono interi positivi. Qual è il minimo valore di $a+b$ affinché $21 a b^{2}$ e $15 a b$ siano entrambi cubi perfetti?\n\n(A) 160\n(B) 260\n(C) 360\n(D) 460\n(E) 560 .", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è (E). I più piccoli cubi perfetti della forma $21 a b^{2}$ e $15 a b$ sono tali per cui $a$ e $b$ possono contenere solo i fattori 3, 5 e 7 (quelli contenuti in 15 o in 21). Poniamo $a=3^{l} \\cdot 5^{m} \\cdot 7^{n}$ e $b=3^{p} \\cdot 5^{q} \\cdot 7^{r}$ (con esponenti interi non negativi), quindi\n$$\n21 a b^{2} = 3^{l+2p+1} \\cdot 5^{m+2q} \\cdot 7^{n+2r+1}\n$$\ne\n$$\n15 a b = 3^{l+p+1} \\cdot 5^{m+q+1} \\cdot 7^{n+r}\n$$\nTutti gli esponenti debbono essere multipli di 3, e, per ottenere il più piccolo valore di $a+b$, debbono essere i più piccoli possibile. Quindi si hanno i seguenti sistemi\n$$\n\\left\\{\n\\begin{array}{l}\nl+2p+1=3k_{1} \\\\\nl+p+1=3h_{1}\n\\end{array}\n\\right.\n\\quad ;\n\\left\\{\n\\begin{array}{l}\nm+2q=3k_{2} \\\\\nm+q+1=3h_{2}\n\\end{array}\n\\right.\n\\quad ;\n\\left\\{\n\\begin{array}{l}\nn+2r+1=3k_{3} \\\\\nn+r=3h_{3}\n\\end{array}\n\\right.\n$$\nLe più piccole soluzioni intere non negative sono $p=0$, $l=2$, $m=1$, $q=1$, $n=1$, $r=2$, quindi\n$$\na=3^{2} \\cdot 5^{1} \\cdot 7^{1}=315,\n$$\n$$\nb=3^{0} \\cdot 5^{1} \\cdot 7^{2}=245\n$$\ne\n$$\na+b=560.\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33882, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nQuante sono le coppie di interi positivi $(m, n)$ tali che la frazione $\\frac{m}{n}$ sia ridotta ai minimi termini e strettamente minore di 1, e che il prodotto $mn$ sia uguale a $1 \\cdot 2 \\cdot 3 \\cdot \\ldots \\cdot 24 \\cdot 25$ (ovvero al prodotto dei primi 25 interi positivi)?\n\n(A) $2^{7}$\n(B) $2^{8}-1$\n(C) $2^{8}$\n(D) $2^{9}-1$\n(E) $2^{9}$.", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è $\\mathbf{( C )}$. Se $m$ è multiplo di un certo primo $p$, allora deve essere divisibile per la massima potenza di $p$ che divida $25!$ (dove per $25!$ intendiamo il prodotto degli interi da 1 a 25) affinché $n=\\frac{25!}{m}$ non abbia fattori $p$ (altrimenti la frazione $\\frac{m}{n}$ non sarebbe ridotta ai minimi termini). Dobbiamo perciò contare i divisori $m$ di $25!$ tali che\n\na. $m$ contenga nella sua fattorizzazione alcuni fra i fattori primi di $25!$, elevati ciascuno alla stessa potenza a cui compare nella fattorizzazione di $25!$ e\n\nb. $m<\\frac{25!}{m}$.\n\nAccoppiando ciascun divisore $d$ dotato della proprietà (a) con il divisore $\\frac{25!}{d}$, poiché fra i due solo il minore avrà la proprietà (b) (viste le nostre richieste sui fattori primi di $d$ non può valere $d=\\frac{25!}{d}$), otteniamo che i divisori da contare saranno la metà di quelli a cui si richieda soltanto la proprietà (a).\n\nNella fattorizzazione di $25!$ compaiono 9 primi diversi: $2,3,5,7,11,13,17,19,23$. I divisori con la proprietà (a) sono perciò $2^{9}$, e tra questi $2^{8}$ godono della proprietà (b).", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33883, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn un trapezio isoscele il punto d'incontro delle diagonali vede la base minore sotto un angolo di $150^{\\circ}$ e ciascuna diagonale è lunga $6~\\mathrm{cm}$. Qual è l'area del trapezio?\n\n(A) $9~\\mathrm{cm}^{2}$\n(B) $16~\\mathrm{cm}^{2}$\n(C) $24~\\mathrm{cm}^{2}$\n(D) i dati sono insufficienti\n(E) nessuna delle precedenti.", "options": [], "answer": "A", "solution": "Solution:\n\nLa risposta è (A). Indichiamo con $A, B, C, D$ i vertici del trapezio, con $O$ il punto d'incontro delle diagonali, con $H$ e $K$ i piedi delle perpendicolari ad $AC$ condotte, rispettivamente, da $B$ e $D$. L'area $S$ del trapezio $ABCD$ è pari alla somma delle aree dei triangoli $ACB$ e $ACD$, che hanno la stessa base $AC$ e altezze $BH$ e $CK$ rispettivamente. Osserviamo poi che, poiché $A\\widehat{O}B = D\\widehat{O}C = 30^{\\circ}$, $BH = BO / 2$ e $DK = OD / 2$, quindi $BH + DK = (BO + OD) / 2 = 3~\\mathrm{cm}$. Quindi\n$$\nS = \\frac{AC \\cdot BH + AC \\cdot DK}{2} = \\frac{AC \\cdot (BH + DK)}{2} = \\frac{6~\\mathrm{cm} \\cdot 3~\\mathrm{cm}}{2} = 9~\\mathrm{cm}^{2}.\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33884, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn modellino di automobile viene testato su alcuni circuiti chiusi lunghi 600 metri, composti da tratti piani e tratti in salita o discesa. Tutti i tratti in salita e in discesa hanno la stessa pendenza. I test mettono in risalto alcuni fatti curiosi:\n\na. la velocità del modellino dipende solo dal fatto che la macchina stia percorrendo un tratto di salita, piano o discesa; chiamando rispettivamente $v_{s}, v_{p}$ e $v_{d}$ queste tre velocità, si ha $v_{s} b$, dove $a = BC$ e $b = AC$. Sia $M$ il punto medio di $AB$, e siano $\\alpha$ e $\\beta$ le circonferenze inscritte, rispettivamente, ai triangoli $ACM$ e $BCM$. Siano poi $A^{\\prime}$ e $B^{\\prime}$ i punti di tangenza di $\\alpha$ e $\\beta$ con $CM$. Dimostrare che $A^{\\prime}B^{\\prime} = \\frac{a-b}{2}$.", "options": [], "answer": "(a - b) / 2", "solution": "Solution:\n\nChiamiamo $x = MA^{\\prime}$, $y = MB^{\\prime}$, $r = CA^{\\prime}$, $s = CB^{\\prime}$. È chiaro che\n$$\nA^{\\prime}B^{\\prime} = x - y = s - r.\n$$\nDenotiamo con $A_{2}$ ed $A_{3}$ i punti di tangenza di $AB$ e $AC$ con $\\alpha$, e con $B_{2}$ e $B_{3}$ i punti di tangenza di $AB$ e $BC$ con $\\beta$.\n\n![](attached_image_1.png)\n\nOra usiamo ripetutamente il fatto che, tracciando le tangenti da un punto $X$ esterno ad una circonferenza $\\gamma$, e chiamati $M$ ed $N$ i punti di tangenza, si ha $XM = XN$.\nAbbiamo che $x = MA_{2}$, $y = MB_{2}$, $r = CA_{3}$, $s = CB^{\\prime}$. Poniamo poi\n$$\nt = AA_{2} = AA_{3}, \\quad u = BB_{2} = BB_{3}.\n$$\nPoiché $M$ è il punto medio di $AB$, abbiamo $x + t = y + u$. D'altra parte, $t = b - r$, $u = a - s$, da cui $x + b - r = y + a - s$ e quindi\n$$\n(x - y) + (s - r) = a - b.\n$$\nPoiché $a - b > 0$, nella (1) vale il segno $+$ e la tesi è dimostrata.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33896, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nOgni numero intero viene colorato con uno di due colori, rosso o blu. Sappiamo che, per ogni insieme finito $A$ di interi consecutivi, il valore assoluto della differenza tra il numero degli interi rossi e il numero degli interi blu nell'insieme $A$ è al più 1000. Dimostrare che esiste un insieme di 2000 interi consecutivi fra i quali ci sono esattamente 1000 numeri rossi e 1000 numeri blu.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nDato un intero $n$, chiamiamo $I_{n}$ l'insieme dei 2000 numeri consecutivi $\\{n, n+1, \\ldots, n+1999\\}$ di lunghezza 2000, e chiamiamo $R_{n}$ il numero di interi rossi e $B_{n}$ il numero di interi blu in $I_{n}$: osserviamo che, siccome $R_{n}+B_{n}=2000$ è pari, anche $D_{n}=R_{n}-B_{n}$ è pari. Osserviamo anche che, passando da $I_{n}$ a $I_{n+1}$, il numero di naturali rossi o blu può cambiare di al massimo un'unità, e quindi $D_{n}-2 \\leq D_{n+1} \\leq D_{n}+2$.\n\nSupponiamo per assurdo che per nessun $n$ si abbia $D_{n}=0$, e supponiamo, senza perdita di generalità, che $D_{0}<0$. Vogliamo dimostrare, per induzione, che $D_{n}<0$ per ogni $n \\geq 0$: il passo base è vero per ipotesi. $D_{n}$ è pari e negativo, e $D_{n+1} \\leq D_{n}+2<2$ è pari, e non è zero per ipotesi, e quindi anche $D_{n+1}$ è negativo.\n\nConsideriamo ora gli intervalli $I_{2000 k}$ al variare di $k$ nell'intervallo $0 \\leq k \\leq 500$. Gli $I_{2000 k}$ sono a due a due disgiunti, ed in ciascuno di essi, ci sono almeno 1001 numeri blu e al più 999 numeri rossi, quindi nell'intervallo $\\{0,1, \\ldots, 2000 \\cdot 500+1999\\}$ ci sono almeno $1001 \\cdot 501$ numeri blu e al più $999 \\cdot 501$ numeri rossi, contraddicendo l'ipotesi.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33897, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSui vertici di un poligono con $n \\geq 3$ lati sono scritti dei numeri interi, in modo tale che il numero scritto su ciascun vertice abbia la stessa parità della somma dei numeri scritti sui due vertici adiacenti (cioè se il numero sul vertice è pari, anche la somma dei numeri che compaiono sui vertici adiacenti è pari, mentre se il numero è dispari anche la somma è dispari). Quale delle seguenti affermazioni è sicuramente vera?\n\n(A) Ci sono più numeri pari che dispari. \n(B) Ci sono più numeri dispari che pari. \n(C) Il numero di vertici su cui è scritto un numero dispari è pari. \n(D) $n$ è multiplo di 3. \n(E) Nessuna delle precedenti.", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è $(\\mathbf{C})$. Osserviamo infatti che ogni vertice su cui è scritto un numero dispari ha esattamente un vicino contrassegnato con un numero dispari, dunque i dispari si presentano in coppie (ed il loro numero totale è quindi pari, eventualmente zero).", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33898, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn quali basi $b>6$ la scrittura 5654 rappresenta una potenza di un numero primo?", "options": [], "answer": "7", "solution": "Solution:\n\nLa scrittura 5654 in base $b$ rappresenta il numero $N=5 b^{3}+6 b^{2}+5 b+4=(b+1)\\left(5 b^{2}+b+4\\right)$. Se $b$ è dispari, $b+1$ è pari; viceversa, se $b$ è pari, $5 b^{2}+b+4$ è pari. In ogni caso, $N$ è pari, e quindi è una potenza di 2.\n\nNe segue che $b+1$ e $5 b^{2}+b+4$ sono entrambe potenze di $2$: $b+1=2^{n}$ e $5 b^{2}+b+4=2^{m}$. Osserviamo che $5 b^{2}+b+4 \\geq b+4$ per ogni $b$, quindi $m>n$. Dalla prima equazione otteniamo $b=2^{n}-1$, e siccome $b>6$, allora $n \\geq 3$. Sostituendo nella seconda equazione, ricaviamo: $5 \\cdot 2^{2 n}-9 \\cdot 2^{n}+8=2^{m}$. Dividendo per 8 e riarrangiando, otteniamo:\n$$\n5 \\cdot 2^{2 n-3}-2^{m-3}=9 \\cdot 2^{n-3}-1 .\n$$\nDato che $m>n \\geq 3$, il lato sinistro dell'equazione è pari, quindi lo è anche $9 \\cdot 2^{n-3}-1$; ne segue che $n=3$, e l'equazione diventa $5 \\cdot 8-9+1=2^{m-3}$, da cui $m=8$. Quindi la scrittura 5654 in base 7 rappresenta $2048=2^{11}$, e $b=7$ è l'unica soluzione del problema.\nSolution:\n\nLa prova della divisibilità per 11 per i numeri scritti in base decimale si può mimare così: $b \\equiv-1(\\bmod b+1)$, quindi\n$$\nN=5 b^{3}+6 b^{2}+5 b+4 \\equiv 5(-1)^{3}+6(-1)^{2}+5(-1)+4 \\equiv 0 \\quad(\\bmod b+1)\n$$\nPoiché $(b+1) \\mid N$, sia $b+1$ che $N /(b+1)$ devono essere potenze dello stesso primo. Ora $N /(b+1)=5 b^{2}+b+4=(5 b-4)(b+1)+8$; ne segue che il massimo comune divisore fra $b+1$ e $N /(b+1)$ deve dividere 8. Ma, fra due potenze dello stesso primo, il massimo comune divisore è il più piccolo dei due numeri: in questo caso, evidentemente $b+1$. Quindi, visto che $b>6$, l'unica possibilità è $b+1=8$, ossia $b=7$ che, per verifica diretta, dà una soluzione.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33899, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $x$ il numero di zeri con cui termina $2000!$ quando è scritto in base $5$, e $y$ il numero di zeri con cui termina $2013!$ quando è scritto in base $10$. Calcolare $x-y$. (Ricordiamo che il numero $n!$, per $n$ intero positivo, è il prodotto di tutti gli interi positivi minori o uguali a $n$.)\n\n(A) $-2$\n(B) $0$\n(C) $2013$\n(D) $13!$\n(E) Nessuna delle precedenti.", "options": [], "answer": "A", "solution": "Solution:\n\nLa risposta è (A). Sappiamo che $y$ è il massimo esponente tale che $10^{y}$ divida $2013!$. Dunque $y$ è il minimo tra il numero di fattori $2$ e fattori $5$ che intervengono nella fattorizzazione di $2013!$. Siccome il numero di fattori due è chiaramente più grande del numero dei fattori $5$, $y$ è anche il numero di fattori $5$ nella fattorizzazione di $2013!$.\n\nSimilmente, il numero di zeri con cui termina $2000!$ scritto in base $5$ è semplicemente il numero di fattori $5$ che compaiono nella fattorizzazione di $2000!$.\n\nScriviamo allora $2000! = 5^{x} \\cdot a$, $2013! = 5^{y} \\cdot b$ per due interi $a, b$ nella cui fattorizzazione non compaiono fattori $5$.\n\nOsserviamo ora che $\\frac{2013!}{2000!} = 5^{y-x} \\cdot \\frac{a}{b}$ è intero, perché coincide con $2001 \\cdot 2002 \\cdots 2013$.\n\nNe segue che $\\frac{a}{b}$ è un intero senza fattori cinque, e che $y-x$ è il numero di fattori $5$ nella fattorizzazione di $2001 \\cdot 2002 \\cdots 2013$. Quest'ultima quantità è facile da calcolare: gli unici multipli di $5$ in questo prodotto sono $2005$, $2010$, ed entrambi contribuiscono per esattamente un fattore cinque (non essendo divisibili per $25$), dunque $y-x=2$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33900, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSiano $x$ e $y$ numeri reali tali che si abbia $x^{2} + 4 y^{2} = 1$; quanto vale come minimo $|x| + 2|y|$?\n\n(A) $\\frac{1}{2}$\n(B) 1\n(C) $\\sqrt{2}$\n(D) $1 + \\frac{\\sqrt{2}}{2}$\n(E) 2", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è (B). La quantità $|x| + 2|y|$ è infatti non negativa e il suo quadrato vale $x^{2} + 4 y^{2} + 4|x||y| \\geq x^{2} + 4 y^{2} = 1$, quindi anche $|x| + 2|y| \\geq 1$. Questo valore effettivamente si può ottenere (esattamente quando $|x||y| = 0$, cioè se $x = \\pm 1, y = 0$ o $x = 0, y = \\pm \\frac{1}{2}$), ed è quindi il minimo possibile.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33901, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABCD$ un quadrato all'interno del quale vengono tracciati due segmenti che dividono l'angolo in $A$ in tre angoli uguali e il quadrato in due triangoli uguali e un quadrilatero. Qual è il rapporto tra l'area del quadrilatero e quella di uno dei due triangoli?\n\n(A) $\\sqrt{3}-\\frac{1}{\\sqrt{3}}$\n(B) $2 \\sqrt{3}-1$\n(C) $\\frac{3}{2}$\n(D) 2\n(E) $2 \\sqrt{3}-2$", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è (E). Siano $AT$ e $AS$ i due segmenti tracciati, con $T$ sul lato $BC$, $S$ sul lato $CD$; l'angolo in $A$ è retto e lo abbiamo diviso in tre angoli uguali, dunque $B\\widehat{A}T = S\\widehat{A}D = 30^\\circ$. I triangoli rettangoli $ABT$ e $ASD$ sono perciò due metà di un triangolo equilatero la cui altezza è il lato del quadrato. Chiamando $l$ la lunghezza di $AB$, l'area del quadrilatero rimanente vale dunque per differenza $l^2 - \\frac{1}{2} l \\frac{2}{\\sqrt{3}} l = l^2\\left(1-\\frac{1}{\\sqrt{3}}\\right)$. L'area di $ABT$ vale invece $\\frac{1}{2\\sqrt{3}} l^2$ (la metà di quella del triangolo equilatero). Il loro rapporto è $2\\sqrt{3}\\left(1-\\frac{1}{\\sqrt{3}}\\right) = 2(\\sqrt{3}-1)$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33902, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nQuante sono le coppie ordinate $(A, B)$ di sottoinsiemi di $\\{1,2,3,4,5\\}$ tali che l'intersezione tra $A$ e $B$ abbia esattamente un elemento?\n\n(A) 80\n(B) 280\n(C) 1280\n(D) 751\n(E) 405", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è $\\mathbf{(E)}$. Le coppie richieste si possono costruire nella maniera seguente: scegliamo innanzitutto l'elemento comune tra $A$ e $B$ (cinque possibilità), e per ogni elemento non appartenente all'intersezione decidiamo se esso stia in $A$, in $B$ o in nessuno dei due. Questo ci porta a dover compiere una scelta tra 3 possibilità per ognuno degli altri 4 elementi, dunque abbiamo in totale $3^{4}$ possibilità (una volta fissata l'intersezione). Siccome ogni coppia con la proprietà richiesta si ottiene in questo modo per esattamente una scelta dell'elemento intersezione e per esattamente una scelta di come distribuire gli elementi restanti, il numero di coppie è $5 \\cdot 3^{4} = 405$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33903, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSapendo che il polinomio $p$ è tale che, per ogni intero $n$, $p\\left(5^{n}-1\\right)=5^{5 n}-1$, quanto varrà $p(3)$?\n\n(A) 1023\n(B) 999\n(C) 874\n(D) 242\n(E) 0", "options": [], "answer": "A", "solution": "Solution:\n\nLa risposta è **(A)**. Consideriamo il polinomio $q(x) = (x+1)^5 - 1$. Per ogni intero $n$ abbiamo\n$$\nq\\left(5^{n}-1\\right) = \\left(5^{n}-1+1\\right)^5 - 1 = 5^{5 n} - 1 = p\\left(5^{n}-1\\right)\n$$\nquindi il polinomio differenza $p(x)-q(x)$ si annulla per infiniti valori di $x$ (tutti quelli della forma $5^{n}-1$ con $n$ intero). Ne segue che la differenza $p(x)-q(x)$ è identicamente nulla, cioè che $p(x)=q(x)$, per cui\n$$\np(3) = q(3) = 4^5 - 1 = 1023.\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33904, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLe facce di due tetraedri regolari identici vengono colorate di rosso, bianco, verde, blu; i colori sono scelti casualmente, ma le quattro facce di ciascun tetraedro debbono essere tutte di colori diversi. Qual è la probabilità che dopo la colorazione i due tetraedri siano indistinguibili?\n(A) $\\frac{1}{4!}$\n(B) $\\frac{2}{4!}$\n(C) $\\frac{1}{4}$\n(D) $\\frac{1}{2}$\n(E) 1", "options": [], "answer": "D", "solution": "Solution:\nLa risposta è (D). Poggiamo entrambi i tetraedri sulla faccia rossa e ruotiamoli fino ad avere davanti a noi la faccia bianca. A questo punto ci sono due casi possibili, quella a destra può essere verde o blu. Di qualunque colore sia quella del primo tetraedro, la probabilità che nel secondo sia del medesimo colore e che quindi i due tetraedri siano indistinguibili è $1 / 2$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33905, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nPer ogni numero naturale $n$ di 3 cifre decimali (quindi con la prima cifra diversa da zero), consideriamo il numero $n_{0}$ ottenuto da $n$ eliminando le sue eventuali cifre uguali a zero. Per esempio, se $n=205$ allora $n_{0}=25$.\nDeterminare il numero degli interi $n$ di tre cifre per i quali $n_{0}$ è un divisore di $n$ diverso da $n$.", "options": [], "answer": "93", "solution": "Solution:\n\nEscludiamo subito il caso in cui $n$ abbia tutte le cifre diverse da zero, in quanto in questo caso si ha $n_{0}=n$. Restano quindi due possibilità:\n\n1) $n$ ha la terza cifra uguale a zero; la scrittura decimale di $n$ è del tipo $n=ab0$, $n_{0}=ab$ e $n_{0} \\mid n$ per ogni scelta di $a \\in \\{1, \\ldots, 9\\}$ e di $b \\in \\{0,1, \\ldots, 9\\}$. Relativamente a questo caso, ci sono dunque $9 \\times 10 = 90$ possibilità per $n$.\n\n2) $n$ ha la terza cifra diversa da zero ma la seconda uguale a zero; in questo caso $n$ si scrive nella forma $a0b$ e $n_{0}$ nella forma $ab$. Ricordando il significato della scrittura decimale, cerchiamo dunque i casi in cui $10a + b$ divide $100a + b$. Poiché sicuramente $10a + b$ divide $10(10a + b) = 100a + 10b$, è anche equivalente vedere quando $10a + b$ divide la differenza $(100a + 10b) - (10a + b) = 9b$.\n\nScrivendo $k(10a + b) = 100a + b$ e considerando l'ultima cifra decimale, si ottiene che $(k-1)b$ è divisibile per $10$, per cui almeno uno fra $k-1$ e $b$ è divisibile per $5$. Poiché evidentemente $1 < k < 10$ e $1 \\leq b \\leq 9$, si ha che $k-1 = 5$ oppure $b = 5$.\n\nPer $k-1 = 5$ otteniamo $60a + 6b = 100a + b$, da cui $b = 8a$ e quindi $a = 1$, $b = 8$. Si verifica che $n = 108$ è in effetti una soluzione, in quanto $18$ divide $108$.\n\nPer $b = 5$ usiamo la proprietà equivalente che $10a + b$ divide $9b$, che diventa $10a + 5$ divide $45$; si vede immediatamente che i divisori di $45$ della forma $10a + 5$ con $a \\geq 1$ sono $15$ e $45$, dando le due soluzioni $n = 105$ ($15$ divide $105$) e $n = 405$ ($45$ divide $405$).\n\nIn conclusione, ci sono $90$ soluzioni nel caso 1) e $3$ soluzioni nel caso 2), per un totale di $93$ soluzioni.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33906, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nConsideriamo il polinomio $p(x)=\\left(1+x^{3^{1}}\\right)\\left(1+x^{3^{2}}\\right)\\left(1+x^{3^{3}}\\right)\\left(1+x^{3^{4}}\\right)\\left(1+x^{3^{5}}\\right)\\left(1+x^{39}\\right)$, e supponiamo di svolgere il prodotto, ottenendo quindi un'espressione del tipo $a_{0}+a_{1} x+a_{2} x^{2}+\\ldots+a_{402} x^{402}$, dove ad esempio $a_{0}=a_{402}=1$. Quanti dei coefficienti $a_{0}, \\ldots, a_{402}$ sono diversi da zero?\n(A) 52\n(B) 56\n(C) 60\n(D) 64\n(E) 376", "options": [], "answer": "C", "solution": "Solution:\nLa risposta è $(\\mathbf{C})$. Osserviamo innanzitutto che i coefficienti non nulli sono al più $2^{6}=64$, a seconda che in ciascun fattore prendiamo il termine 1 o il termine in $x$. Tuttavia possiamo osservare che $x^{3} \\cdot x^{9} \\cdot x^{27}=x^{39}$, quindi ci sono termini nello svolgimento del prodotto che contribuiscono ad un solo termine nel polinomio risultante. Quanti sono questi termini che si ripetono (e che dovremo poi togliere dai 64 indicati sopra)? Sono 4, cioè $x^{39}$, $x^{39} \\cdot x^{3^{4}}$, $x^{39} \\cdot x^{3^{5}}$ e $x^{39} \\cdot x^{3^{4}} \\cdot x^{3^{5}}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33907, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn pilota di aquiloni ha disputato quest'anno un buon campionato, arrivando a podio 16 volte. In ogni gara il primo classificato conquista 10 punti, il secondo 8 e il terzo 5, mentre dal quarto posto in poi non vengono assegnati punti. Con quanti punteggi diversi può aver concluso il campionato?\n(A) 153\n(B) 80\n(C) 78\n(D) 75\n(E) Nessuna delle precedenti.", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è $(\\mathbf{D})$. Dobbiamo calcolare tutte le possibili somme che si possono ottenere con 16 addendi scelti tra $5$, $8$ e $10$. Scriviamo dunque $n = 5a + 8b + 10c$, dove $a + b + c$ sono interi non negativi la cui somma è $16$. Innanzitutto ricaviamo $a = 16 - b - c$, da cui $n = 80 + 3b + 5c$, in cui adesso $b, c$ sono interi non negativi con somma al più $16$. Siccome dobbiamo solo contare il numero di possibili punteggi diversi, l'addendo $80$ non fa differenza e ci chiediamo semplicemente quanti numeri si scrivono come $3b + 5c$. In più ora è chiaro che due coppie $(b, c)$ e $(b', c')$ danno la stessa somma se e solo se $b' = b + 5h$, $c' = c - 3h$ per un certo $h$ intero.\n\nCominciamo allora a contare i punteggi per $c$ piccolo: con $c = 0$ abbiamo $17$ scelte per $b$ (da $0$ a $16$), con $c = 1$ ne abbiamo $16$ e poi $15$ con $c = 2$, e non abbiamo introdotto ripetizioni; se $c$ è $3$, allora possiamo rimpiazzare la coppia $(b, 3)$ con la coppia $(b + 5, 0)$, a meno che $b + 5 > 16$, quindi le somme che non abbiamo ancora contato sono solo quelle con $b > 11$ (e d'altro canto $b + 3 \\leq 16$), dunque soltanto quelle corrispondenti a $(b, c) = (12, 3)$ e $(13, 3)$. Allo stesso modo, per $c \\geq 4$, da una coppia $(b, c)$ ci possiamo ridurre alla coppia $(b + 5, c - 3)$, che abbiamo già considerato, a meno che $b + c + 2 > 16$: gli unici casi in cui questo succede, visto che $b + c \\leq 16$, sono quelli in cui $b + c = 15$ o $16$, cioè esattamente $2$ coppie per ogni valore di $c$, a meno che $c = 16$, per cui c'è solo la possibilità $b = 0$. In definitiva, il numero di somme richiesto è $17 + 16 + 15 + 13 \\cdot 2 + 1 = 75$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33908, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABC$ un triangolo con i lati $AB$, $CA$ e $BC$ di lunghezza rispettivamente $17$, $25$ e $26$. Siano $X$ e $Y$ le intersezioni della parallela ad $AB$ passante per $C$ con le bisettrici di $C\\widehat{A}B$ e di $A\\widehat{B}C$ rispettivamente. Quanto vale l'area del trapezio $ABXY$?\n\n(A) 816\n(B) $338(1+\\sqrt{2})$\n(C) 784\n(D) 408\n(E) Non si può determinare con i dati a disposizione.", "options": [], "answer": "A", "solution": "Solution:\n\nLa risposta è (A). Sia $I$ l'incentro del triangolo $ABC$; allora i triangoli $AIB$ e $XIY$ sono simili per via del parallelismo fra le rette $AB$ e $XY$. Sia $h$ l'altezza del trapezio $ABXY$, ovvero l'altezza del triangolo $ABC$ relativa alla base $AB$; l'altezza del triangolo $AIB$ relativa ad $AB$ è il raggio della circonferenza inscritta in $ABC$, la cui lunghezza vale $S_{ABC} / p_{ABC} = S_{ABC} / 34$. D'altra parte, $h = 2 S_{ABC} / 17$. Abbiamo, grazie alla similitudine menzionata sopra, $XY : AB = XY : 17 = \\left(2 S_{ABC} / 17 - S_{ABC} / 34\\right) : S_{ABC} / 34$; ovvero $XY = 3 \\cdot 17 = 51$. L'area del trapezio vale dunque $\\frac{1}{2}(17+51) h = 34 h$.\n\nL'altezza $h$ può essere calcolata come $\\frac{2}{AB} \\sqrt{p(p-AB)(p-BC)(p-AC)}$, tramite la formula di Erone, dove $p$ è il semiperimetro di $ABC$; sostituire le lunghezze dei lati dà $h = 24$, e dunque $S_{ABXY} = 816$. Alternativamente è possibile calcolare $h$ tramite il Teorema di Pitagora: dette $x$ e $y$ le proiezioni dell'altezza su $AB$, sappiamo che $x+y=17$, $x^{2}+h^{2}=25^{2}$ e $y^{2}+h^{2}=26^{2}$, da cui $y^{2}-x^{2}=(x+y)(y-x)=17(x-y)=51$. Risolvendo il sistema per $x$ e $y$ si ottiene, ad esempio, $y=10$, e quindi $h=\\sqrt{26^{2}-10^{2}}=24$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33909, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nQual è l'esponente del primo $2$ nella fattorizzazione del numero\n$$\n(5-1)\\left(5^{5}-1\\right) \\ldots\\left(5^{5 . .^{5}}-1\\right)\n$$\ndove in ogni fattore compare ad esponente un \"5\" in più che nel precedente e nell'ultimo ne compaiono, come esponenti, $2014$?", "options": [], "answer": "4030", "solution": "Solution:\n\nLa risposta è $4030$. Se $d$ è un intero dispari, l'espressione $5^{d}-1$ si può fattorizzare come $(5-1)\\left(5^{d-1}+5^{d-2}+\\ldots+1\\right)$ dove il secondo fattore contiene $d$ addendi dispari, ovvero un numero dispari di addendi dispari, e dunque è dispari. Un numero della forma $5^{d}-1$ con $d$ dispari è perciò divisibile per $4$, e per nessuna potenza più alta di $2$; poiché l'espressione del problema è precisamente un prodotto di $2015$ fattori in questa forma, il numero primo $2$ compare nella sua fattorizzazione con un esponente di $2 \\cdot 2015$, cioè $4030$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33910, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn cavallo è posto in una casella d'angolo di una scacchiera $3 \\times 3$. Una mossa consiste nello spostare il cavallo in una casella raggiungibile mediante due passi in orizzontale seguiti da un passo in verticale, o due passi in verticale seguiti da un passo in orizzontale. In quanti modi è possibile spostarlo nella casella d'angolo opposta, con esattamente 12 mosse?", "options": [], "answer": "992", "solution": "Solution:\n\nLa risposta è 992. Osserviamo che il cavallo si muoverà sempre su caselle adiacenti al perimetro della scacchiera (tutte tranne quella centrale) e che da ogni casella sono possibili due mosse: una che porta il cavallo avanti di 3 caselle sul perimetro in senso orario, e una che lo sposta di 3 caselle in senso antiorario. Se si numerano le caselle del perimetro della scacchiera da 1 a 8 in senso orario, dove la casella 1 è quella di partenza, le mosse del cavallo possono essere rappresentate come nella figura che segue: ciascuna mossa porta il cavallo dal vertice dell'ottagono corrispondente alla casella in cui si trova a uno dei due adiacenti, a seconda che sia in senso orario o antiorario. Per arrivare all'angolo opposto, il cavallo deve spostarsi in totale di 4 posizioni sull'ottagono, più eventualmente di un numero intero di giri dell'ottagono (8 mosse in senso orario o antiorario riportano il cavallo sulla casella di partenza).\n\nSia $x$ il numero di mosse effettuate in senso orario, $y$ il numero di mosse effettuate in senso antiorario; dobbiamo contare il numero di percorsi possibili in cui $x+y=12$ (si compiono 12 mosse in totale) e $x-y$ è un numero della forma $8k+4$ (con $k$ intero). Le coppie ordinate di soluzioni possibili (con $x$ e $y$ non negativi) sono le seguenti: $x=12, y=0$; $x=0, y=12$; $x=8, y=4$; $x=4, y=8$.\n\n![](attached_image_1.png)\n\nLe prime due coppie rappresentano i due percorsi in cui il cavallo fa tutte le mosse in senso orario o antiorario. Le altre due coppie rappresentano percorsi in cui vengono fatte 8 mosse in senso orario e 4 in senso antiorario, o viceversa; il numero di tali percorsi è dato dal numero di modi in cui è possibile scegliere l'ordine delle mosse: in particolare, si tratta di $\\left(\\begin{array}{c}12 \\\\ 4\\end{array}\\right)$ in entrambi i casi (fra le 12 mosse da effettuarsi, dalla prima alla dodicesima, vanno scelte le 4 che saranno svolte in senso antiorario nel primo caso, orario nel secondo).\n\nIl totale risulta quindi $2+2\\left(\\begin{array}{c}12 \\\\ 4\\end{array}\\right)=992$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33911, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUna griglia con $m$ righe ed $n$ colonne ha ogni casella colorata in bianco o in nero in modo da rispettare le seguenti due condizioni:\n\na. ogni riga contiene tante caselle bianche quante nere;\n\nb. se una riga incontra una colonna in una casella nera, allora quella riga e quella colonna hanno lo stesso numero di caselle nere; allo stesso modo, se una riga interseca una colonna in una casella bianca, allora quella riga e quella colonna hanno lo stesso numero di caselle bianche.\n\nTrovare tutte le possibili coppie $(m, n)$ per cui può esistere una siffatta colorazione.", "options": [], "answer": "(m, n) are exactly the pairs (a, 2a) and (2a, 2a) for positive integers a", "solution": "Solution:\n\nDalla prima condizione abbiamo che il numero di colonne è necessariamente pari. In generale le righe, di lunghezza $2a$, hanno $a$ caselle bianche ed $a$ caselle nere. Per ogni riga ci saranno almeno una colonna che la interseca in una casella bianca ed almeno una che la interseca in una casella nera. Consideriamo quella che interseca in una casella bianca. Essa ha esattamente $a$ caselle bianche. Quindi una possibile soluzione è data dalle coppie $(a, 2a)$, in cui metà delle colonne sono interamente bianche e metà interamente nere. Una possibile realizzazione di tale soluzione è una scacchiera in cui le prime $a$ colonne sono bianche e le successive $a$ sono nere.\n\nSe invece non sono monocrome significa che esiste almeno una casella nera, ma allora in tale casella la colonna interseca una riga con $a$ caselle nere, dunque anche la colonna deve avere $a$ caselle nere oltre alle $a$ caselle bianche. La seconda famiglia di soluzioni possibili è dunque data dalle coppie $(2a, 2a)$. Una possibile realizzazione in questo caso è una scacchiera colorata in modo canonico.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33912, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABC$ un triangolo acutangolo. Siano $AM$, $BN$ e $CL$ le mediane, che si intersecano nel baricentro $G$. Siano $M'$, $N'$ e $L'$ i punti medi di $AG$, $BG$ e $CG$, rispettivamente. Mostrare che i sei punti $M$, $M'$, $N$, $N'$, $L$, $L'$ giacciono su una circonferenza se e solo se $ABC$ è equilatero.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nOsserviamo che prendendo in considerazione la mediana $AM$, abbiamo che i tre segmenti $AM'$, $M'G$ e $GM$ sono uguali tra loro, poiché il baricentro divide la mediana in due segmenti uno il doppio dell'altro ed $M'$ è per costruzione il punto medio del segmento più lungo dei due, $AG$. Un analogo risultato vale per le altre due mediane.\n\nSupponiamo di avere un triangolo equilatero, allora le tre mediane sono uguali tra loro, quindi i punti $M$, $M'$, $N$, $N'$, $L$, $L'$ sono equidistanti da $G$, cioè giacciono su una circonferenza di centro $G$.\n\nSupponiamo ora che i sei punti $M$, $M'$, $N$, $N'$, $L$, $L'$ giacciano su una circonferenza di centro $O$. Tale punto $O$ giace sugli assi dei tre segmenti $MM'$, $NN'$ e $LL'$ e, dal momento che $G$ è punto medio di ciascuno di essi, $G$ ed $O$ si trovano entrambi contemporaneamente sugli assi di tali segmenti. Poiché i tre assi sono distinti, ne deriva che $G$ e $O$ devono coincidere. Ma dunque $GM = GN = GL$ in quanto raggi della stessa circonferenza, e perciò le tre mediane del triangolo $ABC$, che come affermato in precedenza hanno lunghezza $3GM$, $3GN$, $3GL$, sono uguali tra loro. Un triangolo che ha tutte le mediane uguali è equilatero, poiché per ogni coppia di mediane uguali è isoscele sui due lati cui le mediane sono relative.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33913, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nTrovare tutte le coppie $(a, b)$ di numeri interi positivi tali che $a+1$ sia un divisore di $b-1$ e $b$ sia un divisore di $a^{2}+a+2$.", "options": [], "answer": "All pairs are (a, 1) with a any positive integer, and (2k, 2k^2 + k + 1) with k any positive integer.", "solution": "Solution:\n\nConsideriamo $b$; dal momento che $a+1$ divide $b-1$ possiamo scrivere $b = k(a+1) + 1$, con $k$ naturale. Riformuliamo la seconda condizione come $(k(a+1)+1) h = a^{2} + a + 2$, ovvero $k h(a+1) + h = a(a+1) + 2$ per qualche $h \\in \\mathbb{N}$.\n\nSupponiamo anzitutto che $k$ sia positivo; se $k h = a$, allora $h = 2$; ne derivano le soluzioni del tipo $(2k, k(2k+1)+1)$ dove $k$ è intero positivo. Se invece $k h < a$, allora $h > a+3$; d'altra parte, se $k$ è positivo, deve aversi $h \\leq h k$, il che è assurdo.\n\nRimane il caso in cui $k$ sia $0$, e dunque $b = 1$; tutte le coppie $(a, 1)$, con $a$ intero positivo, sono in effetti soluzione.\nSolution:\n\nCome prima scriviamo $b = k(a+1) + 1$, con $k \\in \\mathbb{N}$ e $(k(a+1)+1) h = a^{2} + a + 2$ per qualche $h \\in \\mathbb{N}$.\n\nOsserviamo che per $b = 1$ abbiamo $k = 0$ ed $a$ può essere qualunque numero naturale $n > 0$, cioè tutte le coppie $(n, 1)$ sono soluzione.\n\nConsideriamo la seconda condizione in modulo $(a+1)$: abbiamo che $h \\equiv 2 \\bmod (a+1)$. Ora, se avessimo $h \\geq (a+1)+2$, escludendo il caso $k=0$ già considerato, otterremmo\n$$\n(k(a+1)+1) h \\geq (a+2) h \\geq (a+2)(a+3) = a^{2} + a + 2 + 4(a+1) > a^{2} + a + 2\n$$\nin contrasto con la seconda condizione. Dunque $h = 2$ e $2k(a+1) + 2 = a(a+1) + 2$, da cui $a = 2k$. Di conseguenza abbiamo, sostituendo nella prima condizione, $b = k(2k+1) + 1$, da cui ricaviamo le altre soluzioni $\\left(2k, 2k^{2} + k + 1\\right)$, per $k > 0$ naturale.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33914, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nI 60 abitanti di un villaggio possono essere di tre tipi: contadini (che dicono sempre la verità), lupi mannari (che mentono sempre) e negromanti (che rispondono come vogliono). Tranne che per questi comportamenti i membri di ciascuna fazione sono completamente indistinguibili da quelli delle altre. All'arrivo di un visitatore si dispongono in circolo e ciascuno dichiara che l'abitante alla sua destra è un lupo mannaro. Quale di queste frasi è necessariamente vera?\n\n(A) C'è almeno un negromante.\n(B) I lupi mannari sono al più 20.\n(C) I contadini sono al più 30.\n(D) I negromanti non sono più di 40.\n(E) Nessuna delle precedenti.", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è $(C)$. Una delle possibilità è che ci siano $30$ lupi mannari e $30$ contadini, alternati. Questa disposizione falsifica la (A) e la (B). Un'altra possibile situazione è che gli abitanti del villaggio siano tutti negromanti e stiano mentendo tutti, il che falsifica la (D).\n\nConsideriamo ora la (C). Se ci sono $n$ contadini, ci devono essere almeno $n$ abitanti che non siano contadini (ma lupi mannari o negromanti), dal momento che i contadini non possono mentire. Quindi i contadini possono essere al più la metà del totale degli abitanti, cioè al più $30$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33915, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABC$ un triangolo tale che, detto $H$ il piede dell'altezza condotta da $C$, si ha $AH = 3 \\cdot HB$. Siano inoltre:\n- $M$ il punto medio di $AB$;\n- $N$ il punto medio di $AC$;\n- $P$ il punto dal lato opposto di $B$ rispetto alla retta $AC$ tale che $NP = NC$ e $PC = CB$.\n\nDimostrare che $\\widehat{APM} = \\widehat{PBA}$.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33916, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nPer ogni intero positivo $n$, sia $D_{n}$ il massimo comune divisore di tutti i numeri della forma $a^{n} + (a+1)^{n} + (a+2)^{n}$ al variare di $a$ fra tutti gli interi positivi.\n\na. Dimostrare che, per ogni $n$, $D_{n}$ è della forma $3^{k}$ per qualche intero $k \\geq 0$.\n\nb. Dimostrare che, per ogni $k \\geq 0$, esiste un intero $n$ tale che $D_{n} = 3^{k}$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nPer definizione di $D_{n}$, prendendo $a = D_{n}$ vediamo che $D_{n}$ divide $D_{n}^{n} + (D_{n} + 1)^{n} + (D_{n} + 2)^{n}$, e prendendo $a = D_{n} + 1$ si ottiene anche che $D_{n}$ divide $(D_{n} + 1)^{n} + (D_{n} + 2)^{n} + (D_{n} + 3)^{n}$. Per differenza $D_{n}$ divide $((D_{n} + 1)^{n} + (D_{n} + 2)^{n} + (D_{n} + 3)^{n}) - (D_{n}^{n} + (D_{n} + 1)^{n} + (D_{n} + 2)^{n}) = (D_{n} + 3)^{n} - D_{n}^{n}$, e siccome chiaramente $D_{n}$ divide $D_{n}^{n}$ ancora per differenza deduciamo che $D_{n}$ divide $(D_{n} + 3)^{n}$. Sviluppiamo ora $(D_{n} + 3)^{n}$: è una somma di termini della forma $D_{n}^{b} 3^{n-b}$, dove $b$ varia tra $0$ e $n$, e quindi ognuno di essi è divisibile per $D_{n}$, con l'unica eccezione dell'unico termine con $b = 0$. Possiamo quindi scrivere $(D_{n} + 3)^{n} = 3^{n} +$ multipli di $D_{n}$, da cui deduciamo che $D_{n}$ divide $3^{n}$: ne segue che $D_{n}$ stesso è una potenza di $3$, come voluto.\n\nOsserviamo innanzitutto che $D_{2} = 1$: infatti $D_{2}$ è una potenza di $3$ (per il punto a) e per definizione divide $1^{2} + 2^{2} + 3^{2} = 14$, il che forza $D_{2} = 1$.\n\nSi ha poi $D_{1} = 3$: prendendo $a = 1$ otteniamo che $D_{1}$ divide $6$, quindi (siccome è una potenza di $3$) $D_{1}$ è $1$ o $3$. Ma d'altro canto per ogni $a$ il numero $a + (a+1) + (a+2) = 3(a+1)$ è un multiplo di $3$, per cui $D_{1} = 3$.\n\nVogliamo ora mostrare che per ogni $k \\geq 0$ si ha $D_{3^{k}} = 3^{k+1}$. Per $k = 0$ l'abbiamo appena verificato. Dal momento che $D_{3^{k}}$ è una potenza di $3$ è sufficiente vedere che $D_{3^{k}}$ è divisibile per $3^{k+1}$ ma non per $3^{k+2}$. Siccome si passa da $a^{n} + (a+1)^{n} + (a+2)^{n}$ a $(a+1)^{n} + (a+2)^{n} + (a+3)^{n}$ aggiungendo $(a+3)^{n} - a^{n}$, per dimostrare che $3^{k+1}$ divide $D_{3^{k}}$ basta verificare che $3^{k+1}$ divide $1^{3^{k}} + 2^{3^{k}} + 3^{3^{k}}$ ed ognuna delle differenze $(a+3)^{3^{k}} - a^{3^{k}}$. Per dimostrare che $D_{3^{k}}$ non è divisibile per $3^{k+2}$ è sufficiente dimostrare che $1^{3^{k}} + 2^{3^{k}} + 3^{3^{k}}$ non è divisibile per $3^{k+2}$.\n\nOccupiamoci prima dell'affermazione sulle differenze, per induzione su $k$: per $k = 0$ è ovvia. Supponiamo allora che, per un certo $k$, $(a+3)^{3^{k}} - a^{3^{k}}$ sia multiplo di $3^{k+1}$. Possiamo scrivere $(a+3)^{3^{k}} = a^{3^{k}} + c \\cdot 3^{k+1}$, ed elevando al cubo troviamo $(a+3)^{3^{k+1}} = a^{3^{k+1}} + 3 a^{2 \\cdot 3^{k}} \\cdot c \\cdot 3^{k+1} + 3 a^{3^{k}} \\cdot c^{2} \\cdot 3^{2(k+1)} + c^{3} \\cdot 3^{3(k+1)}$, e cioè $(a+3)^{3^{k+1}} - a^{3^{k+1}} = a^{2 \\cdot 3^{k}} \\cdot c \\cdot 3^{k+2} + a^{3^{k}} \\cdot c^{2} \\cdot 3^{2k+3} + c^{3} \\cdot 3^{3k+3}$, che è chiaramente divisibile per $3^{k+2}$, come voluto.\n\nPer quanto riguarda $1^{3^{k}} + 2^{3^{k}} + 3^{3^{k}}$, dimostriamo allo stesso tempo che è divisibile per $3^{k+1}$ ma non per $3^{k+2}$. L'affermazione è banale per $k = 0$, in quanto $1 + 2 + 3$ è divisibile per $3$ ma non per $9$. Per $k \\geq 1$ osserviamo che $3^{3^{k}}$ è divisibile per $3^{k+2}$, quindi è sufficiente dimostrare l'affermazione per $1^{3^{k}} + 2^{3^{k}}$ invece che per $1^{3^{k}} + 2^{3^{k}} + 3^{3^{k}}$. Di nuovo, usiamo l'induzione su $k$. Per $k = 1$ si ha che $1 + 2^{3}$ è divisibile per $3^{2}$ ma non per $3^{3}$. Supponiamo ora che $1 + 2^{3^{k}}$ sia divisibile per $3^{k+1}$ ma non per $3^{k+2}$: questo vuol dire che $1 + 2^{3^{k}} = 3^{k+1} \\cdot c$, dove $c$ non è un multiplo di $3$. Si ha allora $1 + 2^{3^{k+1}} = 1 + (2^{3^{k}})^{3} = 1 + (3^{k+1} c - 1)^{3} = 3^{k+2}(c - 3^{k+1} c^{2} + 3^{2k+2} c^{3})$. Il membro di destra è multiplo di $3^{k+2}$ ma non di $3^{k+3}$: infatti $(c - 3^{k+1} c^{2} + 3^{2k+2} c^{3})$ non è divisibile per $3$, visto che è la somma di multipli di $3$ e di $c$, il quale per ipotesi non è divisibile per $3$. Questo conclude la dimostrazione.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33917, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nTre amici entrano nella pizzeria di Giorgio e siedono ciascuno a un lato di un tavolo rettangolare; il primo è seduto a un lato di lunghezza $70~\\mathrm{cm}$, il secondo e il terzo siedono uno di fronte all'altro, su lati di lunghezza $l$. Le pizze hanno un diametro di $30~\\mathrm{cm}$; Giorgio serve la pizza del primo avventore in modo che sia tangente al suo lato del tavolo nel punto medio e le pizze degli altri due in modo che siano tangenti ai rispettivi lati del tavolo e alla prima pizza. Qual è il minimo valore di $l$ (in centimetri) per cui le tre pizze possano stare interamente sul tavolo?\n\n(A) $10 \\sqrt{5}$\n(B) $20+5 \\sqrt{5}$\n(C) $15+10 \\sqrt{5}$\n(D) $30+10 \\sqrt{5}$\n(E) 60", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). Consideriamo un tavolo rettangolare in cui la lunghezza $l$ sia la minima tale che le tre pizze sono interamente contenute sulla sua superficie, e cioè tale che la seconda e la terza pizza siano tangenti al lato al quale non siede nessuno dei tre amici. Chiamiamo $O_{1}, O_{2}$ i centri delle prime due pizze, e sia $P$ il punto d'intersezione fra la retta per $O_{1}$ parallela al lato cui tange la seconda pizza (che ha lunghezza $l$) e la retta per $O_{2}$ parallela al lato cui tange la prima pizza (che ha lunghezza $70~\\mathrm{cm}$). Allora $l=15+O_{1}P+15$; d'altra parte $O_{1}O_{2}$ è lungo $60~\\mathrm{cm}$, mentre la lunghezza di $O_{2}P$ può essere calcolata, in centimetri, come $\\frac{70}{2}-15=20$; l'angolo $O_{1}\\widehat{P}O_{2}$ è retto per definizione, e dunque per il Teorema di Pitagora $O_{1}P=\\sqrt{O_{1}O_{2}^{2}-O_{2}P^{2}}$, e cioè la lunghezza cercata risulta, in centimetri, $30+10\\sqrt{5}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33918, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nPer ogni intero positivo $n$, sia $D_{n}$ il massimo comune divisore di tutti i numeri della forma $a^{n} + (a+1)^{n} + (a+2)^{n}$ al variare di $a$ fra tutti gli interi positivi.\n\na. Dimostrare che, per ogni $n$, $D_{n}$ è della forma $3^{k}$ per qualche intero $k \\geq 0$.\n\nb. Dimostrare che, per ogni $k \\geq 0$, esiste un intero $n$ tale che $D_{n} = 3^{k}$.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33919, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDavide fa il seguente gioco: parte da un numero intero compreso tra 1 e 99 e ad ogni mossa sostituisce il numero $n$ che ha al momento con il numero formato dalle ultime due cifre di $51 n+50$ (o solo dall'ultima cifra, se la penultima è 0). Quanti numeri diversi può ottenere al massimo nel corso delle prime 100 mosse di una singola partita?\n\n(A) 2\n(B) 4\n(C) 51\n(D) 99\n(E) 100", "options": [], "answer": "A", "solution": "Solution:\n\nLa risposta è $\\mathbf{( A )}$. Supponiamo di partire da un numero $n$ dispari: allora lo possiamo scrivere come $n=2k+1$, e moltiplicando per 51 ed aggiungendo 50 troviamo $102k+101=100k+100+(2k+1)$. Ora $100k+100$ è un numero che termina con due zeri, quindi le ultime due cifre di $51n+50$ sono le stesse di quelle di $n$, e il gioco rimane sempre fisso su $n$.\n\nSe invece partiamo da un numero pari $n=2k$, la regola fornisce $102k+50$, che termina con le stesse due cifre di $2k+50$: dunque se $2k$ è minore di 50 troviamo semplicemente $2k+50$, e altrimenti troviamo $2k-50$ per via del riporto. Al passo successivo, lo stesso ragionamento ci dice che $2k+50$ diventerà $2k+50-50=2k$ (visto che $2k+50$ è sicuramente almeno uguale a 50), e similmente $2k-50$ diventerà $2k-50+50=2k$: il gioco si ripete ogni due turni, e quindi i numeri diversi che possiamo ottenere nel corso di una partita sono al più 2.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33920, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSu una circonferenza di centro $A$ e raggio $R$ vengono presi nell'ordine quattro punti distinti $B, C, G, H$ in modo tale che $G$ giaccia sul prolungamento della mediana del triangolo $A B C$ condotta da $B$, e $H$ giaccia sul prolungamento dell'altezza di $A B C$ condotta da $B$. Detta $X$ l'intersezione fra le rette $A C$ e $G H$, si dimostri che il segmento $A X$ è lungo $2 R$.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33921, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDimostrare che esiste un intero positivo che può essere scritto come somma di 2015 potenze 2014-esime distinte di interi positivi $x_{1} 0$, è colorata in modo tale che ogni casella sia bianca o nera. Una casella è detta speciale se ci sono almeno altre $n$ caselle dello stesso colore nella sua riga, e almeno altre $n$ caselle dello stesso colore nella sua colonna.\n\na. Dimostrare che esistono almeno $2n+1$ caselle speciali.\n\nb. Fornire un esempio in cui ci siano al più $4n$ caselle speciali.\n\nc. Determinare, in funzione di $n$, quale è il minimo numero possibile di caselle speciali.", "options": [], "answer": "2n+1", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33924, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nQuanti interi positivi sono una potenza di $4$ e si scrivono in base $3$ usando solo le cifre $0$ e $1$, lo $0$ quante volte si vuole (anche nessuna) e l'$1$ al più due volte?\n\n(A) $4$\n(B) $2$\n(C) $1$\n(D) $0$\n(E) Infiniti.", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è (B). Un numero che in base $3$ termina con zero è un multiplo di $3$; siccome nessuna potenza di $4$ è un multiplo di $3$, i numeri che cerchiamo, in base $3$, finiscono con $1$. Se usiamo esattamente una cifra $1$, l'unica possibilità è quindi il numero che si scrive come \"1\" in base $3$, cioè $1$. Ammettere un'altra cifra $1$, che corrisponde ad un certo $3^{k}$, vuole invece dire risolvere l'equazione $3^{k}+1=4^{a}$. Scrivendo $4^{a}=2^{2a}$ troviamo $3^{k}=(2^{a}+1)(2^{a}-1)$, quindi sia $2^{a}+1$ che $2^{a}-1$ sono potenze di $3$, ed è chiaro che le uniche due potenze di $3$ a distanza $2$ sono $1,3$, da cui $a=1$, e l'unica altra potenza di $4$ con la proprietà richiesta è proprio $4$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33925, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDato il sistema\n\n$$\n\\begin{cases}\nx + y + z = 7 \\\\\nx^{2} + y^{2} + z^{2} = 27 \\\\\nxyz = 5\n\\end{cases}\n$$\n\nquante terne ordinate di numeri reali $(x, y, z)$ ne sono soluzione?\n\n(A) 6 \n(B) 3 \n(C) 2 \n(D) 0 \n(E) Infinite.", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è (B).\n\nPRIMA SOLUZIONE\n\nSiano $s = x + y + z = 7$, $q = xy + yz + zx$ e $p = xyz = 5$. Si può notare facilmente che $s^{2} = x^{2} + y^{2} + z^{2} + 2(xy + yz + zx) = 27 + 2q$, da cui $q = 11$. Consideriamo ora il polinomio $(t - x)(t - y)(t - z) = t^{3} - (x + y + z)t^{2} + (xy + yz + zx)t - xyz = t^{3} - 7t^{2} + 11t - 5$, che per costruzione ha come uniche soluzioni $x, y$ e $z$. Si verifica che $p(1) = 1 - 7 + 11 - 5 = 0$ e che $p(5) = 0$, quindi due tra $x, y, z$ sono $5$ e $1$, e siccome il prodotto $xyz$ è $5$ la terza variabile deve essere uguale ad $1$. Ne segue che $x, y, z$ sono $1, 1, 5$ in un qualche ordine, e quindi ci sono esattamente tre terne ordinate di soluzioni: $(1, 1, 5)$, $(1, 5, 1)$ e $(5, 1, 1)$.\n\n\nSECONDA SOLUZIONE\n\nCome prima troviamo $11 = x(y + z) + yz$; sostituendo $y + z = 7 - x$ troviamo quindi $11 = x(7 - x) + yz$. Moltiplicando entrambi i lati per $x$ si ottiene $11x = x^{2}(7 - x) + xyz = -x^{3} + 7x^{2} + 5$, quindi $x$ è una soluzione di questa equazione. Si verifica che le uniche soluzioni sono $1$ e $5$, da cui si ricavano immediatamente i valori di $y, z$: per esempio, se $x = 5$, allora $x + y = 2$, $xy = 1$, da cui $x = y = 1$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33926, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nCinque amici devono scendere da una seggiovia a cinque posti e possono farlo andando in tre direzioni differenti: a sinistra, dritto oppure a destra. Scendendo da una seggiovia è facile scontrarsi con i propri compagni di risalita. Per esempio: se io decido di andare dritto e qualcuno alla mia sinistra di andare a destra, ci scontriamo; lo stesso accade se io decido di andare a destra e qualcuno alla mia destra va dritto (o a sinistra); se invece qualcuno va nella mia stessa direzione non ci scontriamo; e così via. Se ciascuno dei cinque amici sceglie a caso dove andare, con probabilità $1 / 3$ per ciascuna direzione, qual è la probabilità che non ci siano scontri?\n(A) $\\frac{25}{27}$\n(B) $\\frac{3}{5}$\n(C) $\\frac{40}{81}$\n(D) $\\frac{1}{3}$\n(E) $\\frac{7}{81}$", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è $\\mathbf{( E )}$. Cominciamo contando i casi totali, cioè le stringhe di lunghezza 5 composte con le lettere S, A e D (Sinistra, Avanti e Destra). Ciascuno dei cinque amici può prendere indipendentemente dagli altri una tra le tre direzioni, quindi queste stringhe sono $3^{5}=243$.\n\nPensiamo ora a quali sono le stringhe per cui non ci sono incidenti: sono le stringhe in cui tutte le $\\mathrm{S}$ (anche 0) compaiono prima di tutte le A (anche 0), che compaiono prima di tutte le $\\mathrm{D}$ (anche 0 ). Dobbiamo quindi trovare tutte le stringhe di cinque lettere che soddisfano questa condizione. In altri termini dobbiamo scrivere 5 come somma di 3 addendi ordinati non negativi. Questo si può fare in $\\left(\\begin{array}{l}7 \\\\ 2\\end{array}\\right)=21$ modi. In conclusione la probabilità che non ci siano scontri è $7 / 81$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33927, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn numero naturale si dice palindromo se è uguale al numero che si ottiene leggendo le cifre della sua scrittura in base dieci da destra verso sinistra (ad esempio, 68386 e 44 sono palindromi, 220 non lo è). Sappiamo che il numero naturale $x$ e il numero $x+312$ sono entrambi palindromi; $x$ ha quattro cifre, mentre $x+312$ ne ha cinque. Quanto vale la somma delle cifre di $x$ ?\n(A) 30\n(B) 31\n(C) 32\n(D) 33\n(E) 34", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è $(\\mathbf{E})$. Se $x$ è un numero di 4 cifre (dunque minore di 10000), $x+312$, che deve averne 5, è compreso fra 10000 e 10311 (estremi inclusi). Questo significa che le prime due cifre di $x+312$ sono 1 e 0; poiché si tratta di un numero palindromo, deve dunque essere della forma $10a01$ per una qualche cifra $a$. D'altra parte, $x=10a01-312$ termina con 89; ne consegue che l'unica possibilità per $x$ è 9889, e in effetti $9889+312=10201$ ha 5 cifre ed è palindromo. In conclusione, la somma delle cifre di $x$ è $9+8+8+9=34$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33928, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia dato un parallelepipedo rettangolo $ABCD A'B'C'D'$, dove $ABCD$ è la faccia inferiore con le lettere assegnate in senso orario, e $A, B, C$, e $D$ stanno sotto $A', B', C'$, e $D'$ rispettivamente. Il parallelepipedo è diviso in otto pezzi da tre piani ortogonali fra loro e paralleli alle facce del parallelepipedo. Per ogni vertice $P$ del parallelepipedo si indichi con $V_P$ il volume del pezzo di parallelepipedo che contiene $P$. Sapendo che $V_A=40$, $V_C=300$, $V_{B'}=360$ e $V_{C'}=90$, qual è il volume del parallelepipedo $ABCD A'B'C'D'$?", "options": [], "answer": "2015", "solution": "Solution:\n\nChiamiamo $x, y, z$ le distanze di $A$ dai tre piani dei tagli, e $x', y', z'$ le distanze di $C'$ dagli stessi piani, di modo che $x + x' = AB$, $y + y' = AD$, $z + z' = AA'$. \nQuando due pezzi hanno una faccia in comune, i loro volumi stanno in proporzione con le rispettive altezze, e quindi otteniamo le seguenti uguaglianze:\n$$\n\\frac{y}{y'} = 4 = \\frac{V_{B'}}{V_{C'}} = \\frac{V_B}{V_C}, \\quad \\frac{z}{z'} = \\frac{10}{3} = \\frac{V_C}{V_{C'}}, \\quad \\frac{x}{x'} = \\frac{V_A}{V_B}\n$$\nDalla prima uguaglianza ricaviamo che $V_B = 4 V_C = 1200$, e sostituendo nell'ultima ricaviamo che $\\frac{x}{x'} = \\frac{1}{30}$. Se chiamiamo $V$ il volume del parallelepipedo, si ha:\n$$\n\\frac{V}{V_{C'}} = \\frac{(x + x')(y + y')(z + z')}{x' y' z'} = \\left(\\frac{x}{x'} + 1\\right)\\left(\\frac{y}{y'} + 1\\right)\\left(\\frac{z}{z'} + 1\\right) = \\frac{403}{18}\n$$\nda cui $V = \\frac{403}{18} V_{C'} = \\frac{403}{18} \\cdot 90 = 2015$.", "topic": "Geometry", "subtopic": "Solid Geometry" }, { "id": 33929, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nCaboyara, famoso circense australiano, si esibisce anche quest'anno in un gran trucco. Predispone una scala spettacolare con $N = p_{1} \\cdot p_{2} \\cdot \\ldots \\cdot p_{2015}$ gradini, dove $p_{1}, p_{2}, \\ldots, p_{2015}$ sono numeri primi distinti; i gradini che corrispondono a divisori di $N$ (compresi il primo e l'$N$-esimo gradino) sono speciali e sono inizialmente illuminati di verde.\nDurante lo spettacolo, 2015 canguri ammaestrati salgono uno dopo l'altro la scala; per $i = 1, 2, \\ldots, 2015$, l'$i$-esimo canguro salta $p_{i}$ gradini alla volta, partendo ai piedi della scala (salta sul gradino $p_{i}$, poi sul $2 p_{i}$, e così via finché non raggiunge il gradino $N$). Ogni volta che un canguro salta su un gradino speciale, questo cambia colore: da verde diventa rosso, da rosso verde.\nQuanti saranno i gradini speciali illuminati di verde alla fine dell'esibizione?\n(A) $2^{2015} - 2^{1008}$\n(B) $2^{2014}$\n(C) $2^{2014} - 2^{1007}$\n(D) $2^{2013}$\n(E) $2015 \\cdot 2^{1008}$", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è (B). Dato il gradino speciale corrispondente al divisore $d$ di $N$, l'$i$-esimo canguro vi salterà sopra se e solo se il primo $p_{i}$ è un fattore di $d$; la luce del gradino cambierà quindi colore tante volte quanti sono i fattori primi di $d$: sarà verde alla fine dell'esibizione se e solo se $d$ ha un numero pari di fattori primi. D'altronde, per ogni divisore $d$ di $N$ con un numero dispari di fattori primi, il divisore $N / d$ (che è diverso da $d$, dato che $N$ non è un quadrato) ne ha un numero pari, e viceversa: quindi le luci verdi saranno esattamente la metà dei divisori di $N$. Il numero totale di gradini speciali (ovvero di divisori positivi di $N$) è uguale al numero di sottoinsiemi dell'insieme $\\{p_{1}, \\ldots, p_{2015}\\}$, ossia $2^{2015}$. Perciò il numero finale di luci verdi sarà $2^{2014}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33930, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nGiovanni disegna a matita un 9-agono regolare e collega ciascuno dei suoi vertici al centro, tracciando un totale di 18 segmenti e ottenendo in questo modo nove triangoli. Ripassa quindi a penna alcuni dei segmenti tracciati, facendo in modo che alla fine ognuno dei nove triangoli abbia esattamente un lato ripassato a penna. In quanti modi Giovanni può scegliere l'insieme dei segmenti da ripassare? (Nota: due insiemi di segmenti che si ottengano l'uno dall'altro per rotazione o per simmetria sono da considerarsi distinti.)\n(A) 49\n(B) 65\n(C) 74\n(D) 76\n(E) 85", "options": [], "answer": "D", "solution": "Solution:\n\nChiameremo raggi i 9 segmenti che ammettono il centro del 9-agono come vertice.\nSi noti anzitutto che scegliere l'insieme dei segmenti da ripassare a penna equivale a scegliere un sottoinsieme dei 9 raggi che non contenga due raggi consecutivi: naturalmente Giovanni non può ripassare due raggi consecutivi; d'altra parte, una volta scelti i raggi da ripassare, ciascun lato del 9-agono verrà ripassato se e solo se non è stato ripassato nessuno dei due raggi che condividono un vertice con il lato in questione.\nContiamo le configurazioni possibili a seconda del numero di raggi ripassati.\n\n0 - una sola configurazione;\n\n1 - 9 scelte per il raggio da ripassare;\n\n2 - scelto un raggio, il secondo raggio può essere uno qualunque dei restanti, fatta eccezione per i due vicini del raggio iniziale; il numero di configurazioni è dunque la metà del numero di coppie ordinate ottenute in questo modo $\\left(\\frac{1}{2} 9 \\cdot 6\\right)$, cioè 27 ;\n\n3 - il numero totale di scelte possibili per un sottoinsieme di tre raggi, ignorando la restrizione, è $\\frac{1}{6} 9 \\cdot 8 \\cdot 7$, cioè 84 ; tra queste, esattamente 9 sono scelte di tre raggi consecutivi; rimane da decidere quante siano le configurazioni formate da due raggi consecutivi e un terzo raggio non consecutivo a nessuno degli altri due. La coppia di raggi consecutivi può essere scelta in 9 modi; a quel punto, ci sono 5 scelte per il raggio 'isolato'. Ne consegue che ci sono $84-9-45=30$ configurazioni accettabili;\n\n4 - in questo caso vi è esattamente una coppia di raggi scelti separati da una coppia di raggi consecutivi non scelti (al di fuori di questo intervallo, raggi scelti e non scelti si alternano); le configurazioni sono tante quante le coppie di raggi consecutivi, cioè 9 .\n\nIn tutto, contiamo $1+9+27+30+9=76$ configurazioni possibili.\n\nConsideriamo una variante del problema originale: Giovanni disegna un $n$-agono regolare a matita, tracciando poi $n$ segmenti che congiungono i vertici al centro; si formano così $n$ triangoli. Diversamente dal problema originale, supponiamo che Giovanni scelga uno dei segmenti che hanno il centro come vertice e decida di non ripassarlo a penna: chiameremo questo segmento speciale. Chiamiamo $f(n)$ il numero di modi che Giovanni ha a disposizione per scegliere un sottoinsieme degli altri $2 n-1$ segmenti da ripassare, sempre in modo che ciascuno degli $n$ triangoli abbia alla fine esattamente un segmento ripassato a penna.\nNotiamo che, se $n>4, f(n)=f(n-1)+f(n-2)$. Consideriamo il triangolo che giace a destra del segmento speciale; esso deve avere un segmento ripassato a penna, che può essere un lato dell' $n$-agono o un segmento che ha il centro per vertice. Se Giovanni ripassa il lato dell' $n$-agono a penna, ha $f(n-1)$ modi di scegliere gli altri segmenti da ripassare: può eliminare il lato ripassato e identificare gli altri due lati del triangolo in questione, rendendoli il segmento speciale di una nuova configurazione con $n-1$ triangoli. Se Giovanni ripassa il lato del triangolo adiacente al centro dell' $n$-agono, allora non può ripassare nessun altro lato del triangolo che gli giace sulla destra; può dunque eliminare due triangoli, come nel passaggio precedente, per ottenere una configurazione con $n-2$ triangoli e un segmento speciale.\nMostriamo ora che la risposta al problema originale è $f(7)+f(9)$. Scegliamo uno qualunque dei raggi del 9-agono. Se questo non viene ripassato, allora possiamo considerarlo come segmento speciale: vi sono $f(9)$ modi di scegliere i segmenti da ripassare; in caso contrario, possiamo eliminare i due triangoli ad esso adiacenti, identificando i due raggi fra i quali sono compresi: i raggi identificati non possono essere ripassati, e sono dunque un segmento speciale per la configurazione con 7 triangoli.\nÈ facile verificare che $f(3)=3$ e $f(4)=5$ enumerando le configurazioni; di conseguenza, $f(5)=8 ; f(6)=13 ; f(7)=21 ; f(8)=34 ; f(9)=55$. La risposta è $f(7)+f(9)$, cioè 76.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33931, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABCD$ un quadrilatero tale che $AB=24$, $BC=20$, $CD=15$, $DA=7$, $BD=25$. Quanto è lungo $AC$?\n\n(A) 18\n(B) $14\\sqrt{2}$\n(C) 20\n(D) 21\n(E) 24", "options": [], "answer": "C", "solution": "Solution:\n\nDato che $AB^{2} + AD^{2} = BD^{2}$ e $BC^{2} + CD^{2} = BD^{2}$ il quadrilatero $ABCD$ si può inscrivere in una circonferenza di diametro $BD$. Sia $DH$ l'altezza del triangolo $DAC$. Allora il triangolo $AHD$ è simile al triangolo $BCD$ perché sono entrambi triangoli rettangoli e $\\widehat{CBD} = \\widehat{CAD} = \\widehat{HAD}$, in quanto angoli alla circonferenza che insistono su $CD$. Quindi $BD : BC = AD : AH$, cioè $25 : 20 = 7 : AH$ da cui ricaviamo che la lunghezza di $AH$ vale $28/5$. Analogamente il triangolo $CDH$ è simile al triangolo $BDA$, da cui $BD : AB = CD : HC$, ovvero $25 : 24 = 15 : HC$, che dà $HC = 72/5$. La lunghezza di $AC$ risulta quindi $AH + HC = (28 + 72)/5 = 20$.\n\n![](attached_image_1.png)\n\nSi può osservare che $25^{2} = 20^{2} + 15^{2}$, cioè $(15,20,25)$ è una terna pitagorica $(5 \\cdot (3,4,5))$, dunque l'angolo $\\widehat{BCD}$ è retto. Si ha anche $25^{2} = 24^{2} + 7^{2}$: anche $(7,24,25)$ è una terna pitagorica e l'angolo $\\widehat{DAB}$ è retto.\n\nSiano $AK$ e $CL$ le altezze dei triangoli rettangoli $ABD$ e $BCD$ relative a $BD$; possiamo ricavarne le lunghezze dalle aree dei due triangoli: $AK = (AD \\cdot AB)/BD = (24 \\cdot 7)/25$, mentre $CL = (BC \\cdot CD)/BD = (20 \\cdot 15)/25$. Per il primo teorema di Euclide si ha $DK \\cdot DB = AD^{2}$, da cui ricaviamo che la lunghezza di $DK$ vale $7^{2}/25$; similmente si calcola la lunghezza di $DL$, come $DC^{2}/DB = 15^{2}/25 = 9$.\n\nInfine, $AC$ si può vedere come la diagonale di un rettangolo con lati di lunghezza $AK + CL$ e $KL$; per il teorema di Pitagora, la sua lunghezza vale\n$$\n\\sqrt{(AK + CL)^{2} + (DL - DK)^{2}} = \\sqrt{\\left(\\frac{168}{25} + 12\\right)^{2} + \\left(9 - \\frac{49}{25}\\right)^{2}} = 20.\n$$\n\nCome nelle precedenti soluzioni, occorre dapprima dimostrare che $ABCD$ è inscrittibile in una circonferenza. Mostrato questo, è possibile concludere direttamente grazie al teorema di Tolomeo, il quale afferma che un quadrilatero convesso $ABCD$ è inscrittibile in una circonferenza se e solo se $AB \\cdot CD + BC \\cdot AD = AC \\cdot BD$. Se ne ricava che la lunghezza di $AC$ è $20$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33932, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nQuanto vale $\\sqrt[4]{2^{20}+2^{27}+2^{31}+2^{32}+2^{37}+2^{40}}$ ?", "options": [], "answer": "1056", "solution": "Solution:\n\nLa risposta è 1056. Una volta raccolto un fattore $2^{20}$ sotto la radice quarta, ci si riconduce a calcolare $\\sqrt[4]{1+2^{7}+2^{11}+2^{12}+2^{17}+2^{20}}$. A questo punto è possibile riconoscere nell'espressione sotto radice il quadrato del trinomio $1+2^{6}+2^{10}=(2^{5}+1)^{2}$ o direttamente verificare che si tratti della potenza quarta di $2^{5}+1$. L'espressione nel suo complesso vale dunque $2^{5}(2^{5}+1)$, ovvero 1056 .", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33933, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUna pulce si trova inizialmente su un vertice di un poligono regolare di 2015 lati; compie una sequenza di salti in senso antiorario: al primo salto si sposta di un vertice (da quello iniziale al vicino), al secondo di tre, al terzo di cinque, e così via, di modo che all' $n$-esimo parte da un vertice e atterra $2 n-1$ vertici più in là, sempre in senso antiorario. Dopo quanti salti accadrà per la prima volta che la pulce atterri su un vertice che aveva già visitato?", "options": [], "answer": "48", "solution": "Solution:\n\nLa risposta è 48. Osserviamo che dopo $n$ passi la pulce ha coperto una distanza totale di $n^{2}$ vertici dal punto di partenza: questo è chiaramente vero per $n=0$ e $n=1$, e d'altro canto, se dopo $n$ passi la pulce ha coperto una distanza di $n^{2}$ vertici, allora al passo successivo la distanza percorsa sarà $n^{2}+(2 n+1)=(n+1)^{2}$. Supponiamo allora che la pulce tocchi un vertice due volte, la prima volta quando la distanza coperta è $m^{2}$, la seconda quando è $n^{2}$. Questo succede solo se la differenza tra $n^{2}$ e $m^{2}$ corrisponde ad un numero intero di giri del 2015-agono, ovvero se e solo se 2015 divide $n^{2}-m^{2}=(n-m)(n+m)$, e stiamo cercando il più piccolo $n$ per cui questo sia possibile. Prendiamo $n, m$ (con $n$ minimo) e scriviamo $n-m=a x, n+m=b y$, con $a b=2015$ e $x, y$ interi positivi. Notiamo ora che $x=y=1$ : in effetti, i numeri $n^{\\prime}=\\frac{a+b}{2}, m^{\\prime}=\\frac{a-b}{2}$ sono interi\n( $a$ e $b$ sono divisori di 2015, quindi entrambi dispari) e rispettano $\\left(n^{\\prime}+m^{\\prime}\\right)\\left(n^{\\prime}-m^{\\prime}\\right)=a b=2015$, dunque forniscono una coppia $\\left(m^{\\prime}\\right)^{2},\\left(n^{\\prime}\\right)^{2}$ corrispondente ad un vertice visitato due volte; ora se $x$ o $y$ fossero maggiori di 1 avremmo anche $n^{\\prime}=\\frac{a+b}{2}<\\frac{a x+b y}{2}=n$, il che contraddirebbe la minimalità di $n$. Vogliamo quindi studiare l'equazione $n^{2}-m^{2}=2015=5 \\cdot 13 \\cdot 31$, e più precisamente distribuire i fattori primi 5, 13, 31 tra $n+m$ e $n-m$ in modo da minimizzare $n$. È allora facile rendersi conto che il minimo si ottiene per $n+m=5 \\cdot 13, n-m=31$, il che fornisce $n=48$ e $m=17$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33934, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nCamilla ha una scatola che contiene 2015 graffette. Ne prende un numero positivo $n$ e le mette sul banco di Federica, sfidandola al seguente gioco. Federica ha a disposizione due tipi di mosse: può togliere 3 graffette dal mucchio che ha sul proprio banco (se il mucchio contiene almeno 3 graffette), oppure togliere metà delle graffette presenti (se il mucchio ne contiene un numero pari). Federica vince se, con una sequenza di mosse dei tipi sopra descritti, riesce a togliere tutte le graffette dal proprio banco.\n\na) Per quanti dei 2015 possibili valori di $n$ Federica può vincere?\n\nb) Le ragazze cambiano le regole del gioco e decidono di assegnare la vittoria a Federica nel caso riesca a lasciare sul banco una singola graffetta. Per quanti dei 2015 valori di $n$ Federica può vincere con le nuove regole?", "options": [], "answer": "a) 671; b) 1344", "solution": "Solution:\n\na. Federica vince se e solo se $n$ è multiplo di $3$.\nSe $n$ è multiplo di $3$ Federica può vincere: le basta effettuare la mossa con la quale toglie tre graffette dal banco esattamente $n / 3$ volte.\nD'altra parte, se ad un certo punto sul banco di Federica c'è un numero di graffette non multiplo di $3$, tutte le mosse a disposizione di Federica lasciano sul banco un numero di graffette nuovamente non multiplo di $3$: se $k$ è pari ma non multiplo di $3$, neanche $k / 2$ può essere multiplo di $3$; d'altra parte, allo stesso modo, se $k$ non è multiplo di $3$, nemmeno $k-3$ lo è. Di conseguenza, se Federica comincia il gioco con un numero di graffette non multiplo di $3$, qualunque sequenza di mosse condurrà a un numero di graffette anch'esso non multiplo di $3$; Federica non ha quindi modo di togliere tutte le graffette, visto che $0$ è multiplo di $3$.\nIn conclusione, Federica riesce a vincere se $n$ è un multiplo di $3$ compreso fra $1$ e $2015$: vi sono $671$ valori possibili per $n$.\n\nb. Stavolta Federica riesce a vincere se e solo se $n$ non è multiplo di $3$.\nSe $n$ non è multiplo di $3$ lo possiamo scrivere come $3k + r$, dove $r$ è il resto della divisione per $3$, e dunque è $1$ o $2$. Applicando $k$ volte la prima mossa, Federica ottiene $1$ (nel qual caso ha vinto) o $2$ (nel qual caso usa la seconda mossa e vince).\nResta da dimostrare che se $n$ è multiplo di $3$, allora Federica non arriverà mai ad $1$. Basta dimostrare che se Federica applica una mossa su un numero multiplo di $3$ ottiene un numero che è multiplo di $3$ (e quindi in particolare non può raggiungere $1$). Questo è vero, perché se $a = 3k$ è multiplo di $3$, allora lo sono anche $a-3 = 3(k-1)$ e $\\frac{a}{2} = 3 \\frac{k}{2}$.\nQuindi Federica riesce a vincere per $2015 - 671 = 1344$ valori di $n$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33935, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABCD$ un quadrilatero convesso tale che $AB = AC = AD$ e $BC < CD$. La bisettrice dell'angolo $\\widehat{BAD}$ interseca internamente $CD$ in $M$ e il prolungamento di $BC$ in $N$. Dimostrare che\n\na. il quadrilatero $ABCM$ è inscrittibile in una circonferenza;\n\nb. i triangoli $ANB$ e $ABM$ sono simili.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nSia $\\Gamma$ la circonferenza centrata in $A$ e passante per $B, C, D$. Sia inoltre $P$ un qualsiasi punto sull'arco $BD$ che non contiene $C$. Poiché l'angolo alla circonferenza $\\widehat{BPD}$ insiste sullo stesso arco dell'angolo al centro $\\widehat{BAD}$, vale $\\widehat{BAD} = 2 \\cdot \\widehat{BPD}$; d'altra parte, $\\widehat{BAD} = 2 \\cdot \\widehat{BAM}$ per costruzione, quindi $\\widehat{BPD} = \\widehat{BAM}$. Inoltre gli angoli $\\widehat{BPD}$ e $\\widehat{BCD}$ insistono sullo stesso arco, ma da parti opposte: sono dunque supplementari. Ne risulta che gli angoli $\\widehat{BAM}$ e $\\widehat{BCM}$ sono supplementari, e cioè che il quadrilatero $AMBC$ può essere inscritto in una circonferenza, che chiameremo $\\gamma$.\n\nIl quadrilatero $AMCB$ è inscrittibile in una circonferenza se e solo se $\\widehat{BAM} + \\widehat{BCM} = 180^\\circ$, ovvero se e solo se $2 \\cdot \\widehat{BAM} + 2 \\cdot \\widehat{BCM} = 360^\\circ$. Ora, $2 \\cdot \\widehat{BAM} = \\widehat{BAD}$ per costruzione; d'altra parte, $\\widehat{BCD} = \\widehat{BCA} + \\widehat{ACD} = \\widehat{CBA} + \\widehat{CDA}$. La tesi è dunque equivalente a $\\widehat{BAD} + \\widehat{BCD} + \\widehat{CBA} + \\widehat{CDA} = 360^\\circ$, che è vero in quanto la somma contiene precisamente gli angoli interni del quadrilatero $ABCD$.\n\nb.\n$\\widehat{BMA} = \\widehat{BCA}$ in quanto insistono entrambi sull'arco $AB$ di $\\gamma$. Inoltre $\\widehat{BCA} = \\widehat{CBA}$ in quanto angoli alla base del triangolo $ABC$ che è isoscele per ipotesi. I triangoli $ABM$ e $ANB$ hanno quindi $\\widehat{BMA} = \\widehat{NBA}$ per quanto appena dimostrato, e l'angolo in $\\widehat{A}$ in comune, quindi sono simili grazie al secondo criterio di similitudine.\n\n![](attached_image_1.png)", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33936, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $n$ un intero positivo e siano $1 = d_{1} < d_{2} < d_{3} < \\ldots < d_{k} = n$ i suoi divisori positivi, ordinati per grandezza. Si sa che $k \\geq 4$ e che $d_{3}^{2} + d_{4}^{2} = 2n + 1$.\n\na. Trovare tutti i possibili valori di $k$.\n\nb. Trovare tutti i possibili valori di $n$.", "options": [], "answer": "k = 6; n ∈ {12, 20}", "solution": "Solution:\n\na.\nPer prima cosa, osserviamo $d_{4}$ non può essere minore o uguale a $\\sqrt{n}$, perché altrimenti $d_{3}^{2} + d_{4}^{2}$ sarebbe minore di $(\\sqrt{n} - 1)^{2} + \\sqrt{n}^{2} < 2n + 1$, mentre sappiamo che vale $2n + 1$. Allo stesso modo, se $d_{3}$ fosse maggiore o uguale a $\\sqrt{n}$ si avrebbe $d_{3}^{2} + d_{4}^{2} > 2n + 1$, nuovamente una contraddizione: quindi $d_{3} < \\sqrt{n} < d_{4}$, e in particolare $\\sqrt{n}$ non è un divisore di $n$.\n\nOsserviamo inoltre che se $d$ è un divisore di $n$ allora anche $n / d$ lo è, e questa operazione scambia i divisori maggiori di $\\sqrt{n}$ con quelli minori di $\\sqrt{n}$. Ne segue che $n$ ha tanti divisori maggiori di $\\sqrt{n}$ quanti divisori minori di $\\sqrt{n}$: siccome questi sono 3 per quanto appena detto, $n$ ha 6 divisori.\n\n\nb.\nPrima soluzione\nNotiamo che si ha anche $d_{3} d_{4} = n$: il più piccolo divisore superiore a $\\sqrt{n}$ (cioè $d_{4}$) è uguale a $n / d$, dove $d$ è il più grande divisore inferiore a $\\sqrt{n}$ (cioè $d_{3}$). Dall'equazione $d_{3}^{2} + d_{4}^{2} = 2n + 1$ deduciamo allora $d_{3}^{2} + d_{4}^{2} = 2 d_{3} d_{4} + 1$, cioè $(d_{3} - d_{4})^{2} = 1$, e quindi $d_{4} - d_{3} = 1$ (dato che $d_{4} > d_{3}$). Il numero $n$ si scrive allora $n = d_{3}(d_{3} + 1)$, ed in particolare è pari, perché uno dei due fattori $d_{3}, d_{3} + 1$ lo è. I divisori di $n$ sono quindi $1, 2, d_{3}, d_{3} + 1, \\frac{n}{2}, n$.\n\nSiccome i divisori di $d_{3}$ sono anche divisori di $n$, o $d_{3}$ non ha divisori diversi da 1 e $d_{3}$ (e quindi è primo), oppure il suo unico divisore non banale è 2 (e quindi $d_{3} = 4$). Nel secondo caso abbiamo $n = d_{3}(d_{3} + 1) = 4 \\cdot 5 = 20$, e altrimenti ripetiamo lo stesso ragionamento con i divisori di $d_{3} + 1$: se $d_{3}$ è primo $d_{3} + 1$ è pari, e d'altro canto non può avere divisori non banali diversi da 2, quindi $d_{3} + 1 = 4$ e $n = d_{3}(d_{3} + 1) = 12$.\n\nInfine, si verifica facilmente che $n = 12$ e $n = 20$ sono effettivamente soluzioni (nei due casi si ha $d_{3}^{2} + d_{4}^{2} = 3^{2} + 4^{2} = 25 = 2 \\cdot 12 + 1$, $d_{3}^{2} + d_{4}^{2} = 16 + 25 = 41 = 2 \\cdot 20 + 1$), e per quanto già detto sono le sole.\n\n\nSeconda soluzione\nEsattamente uno tra $d_{3}$ e $d_{4}$ è pari: se $d_{3}, d_{4}$ avessero la stessa parità, allora $d_{3}^{2} + d_{4}^{2} = 2n + 1$ sarebbe pari, cosa che chiaramente non è. Inoltre $d_{3} d_{4} = n$: il più piccolo divisore superiore a $\\sqrt{n}$ (cioè $d_{4}$) è uguale a $n / d$, dove $d$ è il più grande divisore inferiore a $\\sqrt{n}$ (cioè $d_{3}$). I divisori di $n$ sono quindi $1, 2, d_{3}, n / d_{3}, n / 2, n$.\n\nSiccome i divisori di $d_{3}$ sono anche divisori di $n$, o $d_{3}$ non ha divisori diversi da 1 e $d_{3}$ (e quindi è primo), oppure il suo unico divisore non banale è 2 (e quindi $d_{3} = 4$). Similmente, gli unici possibili divisori di $d_{4}$ sono $1, 2, d_{3}$, ma se $d_{3}$ dividesse $d_{4}$ allora $d_{3}$ dividerebbe $d_{3}^{2}, d_{4}^{2}$ e $n$ e quindi, per differenza, dividerebbe $d_{3}^{2} + d_{4}^{2} - 2n = 1$, assurdo. Quindi anche $d_{4}$ è o un primo o uguale a 4. Se $d_{4} = 4$, allora si ha $2 = d_{2} < d_{3} < d_{4} = 4$ e quindi $d_{3} = 3$, $n = 12$. Altrimenti $d_{3} = 4$, $d_{4}$ è un primo $p$, e $n = 4p$. L'equazione del testo diventa allora $4^{2} + p^{2} = 8p + 1$, che ha come soluzioni $p = 5, p = 3$. Siccome $p = d_{4} > d_{3} = 4$, l'unica possibilità è $p = 5$, che porta all'altra soluzione $n = 20$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33937, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUna sequenza $a_{1}, \\ldots, a_{100}$ di numeri reali è tale che la media aritmetica fra due termini consecutivi sia sempre uguale all'indice del secondo termine (ad esempio, si ha $\\frac{a_{4}+a_{5}}{2}=5$ ); quanto vale la somma dei 100 numeri della sequenza?\n\n(A) 2550\n(B) 5050\n(C) 5100\n(D) 10100\n(E) Non si può determinare: dipende da $a_{1}$.", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è (C). Indichiamo con $S$ la somma dei 100 termini della successione. Si ha:\n$$\n\\frac{S}{2}=\\frac{1}{2}\\left(a_{1}+a_{2}+\\ldots+a_{99}+a_{100}\\right)=\\frac{a_{1}+a_{2}}{2}+\\frac{a_{3}+a_{4}}{2}+\\ldots+\\frac{a_{99}+a_{100}}{2}.\n$$\nOsserviamo che ciascuno degli addendi del membro più a destra è la media aritmetica fra due termini consecutivi della sequenza, che sappiamo essere uguale all'indice del secondo termine. Si ottiene quindi\n$$\n\\frac{S}{2}=2+4+\\ldots+100=2(1+2+\\ldots+50)\n$$\ne ricordando che la somma dei primi $n$ numeri interi vale $\\frac{n(n+1)}{2}$ si conclude che\n$$\nS=4(1+2+\\ldots+50)=4 \\cdot \\frac{50 \\cdot 51}{2}=5100.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33938, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn servizio di streaming musicale propone canzoni classificate in 10 generi musicali, in modo che ogni brano appartenga ad uno e un solo genere. Le canzoni vengono suonate una dopo l'altra: le prime 17 sono scelte dall'utente, ma a partire dalla diciottesima il servizio determina automaticamente quale canzone suonare. Elisabetta ha notato che, se si fa la classifica di quali generi compaiano più volte nel corso degli ultimi 17 brani suonati, la nuova canzone appartiene sempre al genere in testa alla classifica o, in caso di pari merito, a uno dei primi ex-aequo.\n\nDimostrare che, comunque siano scelti i primi 17 brani, da un certo punto in poi le canzoni proposte sono tutte dello stesso genere.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 33939, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABCDE$ un pentagono regolare di lato $1$ e sia $P$ l'intersezione tra le diagonali $AC$ e $BE$. Quanto misura il segmento $PC$?\n\n(A) $1$\n\n(B) $\\frac{\\sqrt{5}}{2}$\n\n(C) $\\sqrt{5}-1$\n\n(D) $4(\\sqrt{5}-2)$\n\n(E) Nessuna delle precedenti.", "options": [], "answer": "A", "solution": "Solution:\n\nGli angoli interni di un $n$-agono regolare misurano $\\frac{n-2}{n} 180^{\\circ}$. Quindi gli angoli interni di un pentagono regolare misurano $\\frac{3}{5} 180^{\\circ}=108^{\\circ}$. I triangoli $EAB$ e $CBA$ sono isosceli, quindi $\\widehat{AEB}=\\widehat{EBA}=\\widehat{BCA}=\\widehat{CAB}=\\frac{180^{\\circ}-108^{\\circ}}{2}=36^{\\circ}$. Allora $\\widehat{APB}=180^{\\circ}-\\widehat{PAB}-\\widehat{PBA}=108^{\\circ}$, $\\widehat{CPB}=180^{\\circ}-\\widehat{APB}=72^{\\circ}$ e $\\widehat{CBP}=\\widehat{CBA}-\\widehat{PBA}=72^{\\circ}$. Quindi il triangolo $CBP$ è isoscele e $CP=CB=1$.\n\n\nSolution 2:\n\n![](attached_image_1.png)\n\nPer simmetria, la diagonale $AC$ è parallela al lato $DE$ e la diagonale $BE$ è parallela al lato $CD$; ne segue che il quadrilatero $EPCD$ è un parallelogramma e quindi che $PC=ED=1$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33940, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABC$ un triangolo, sia $K$ il piede della bisettrice relativa a $BC$ e sia $J$ il piede della trisettrice relativa a $BC$ più vicina al lato $AC$ (ossia $J$ è il punto su $BC$ tale che $3 \\cdot \\angle CAJ = \\angle CAB$). Siano poi $C'$ e $B'$ due punti sulla retta $AJ$, dalla parte di $J$ rispetto ad $A$, tali che $AC' = AC$ e $AB = AB'$. Dimostrare che il quadrilatero $ABB'C$ è inscrivibile in una circonferenza se e solo se le rette $C'K$ e $B'B$ sono parallele.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nPoniamo anzitutto $\\theta = \\angle CAJ$, cosicché $\\angle JAB = 2\\theta$ e $\\angle JAK = \\theta / 2$.\n\nSe il quadrilatero $ABB'C$ è ciclico, allora $\\angle CBB' = \\theta$, poiché insiste sullo stesso arco dell'angolo $\\angle CAB'$. D'altra parte, poiché $\\angle AB'B = \\angle ABB' = (180^\\circ - 2\\theta)/2$ per costruzione, gli angoli $\\angle JBB'$ e $\\angle BB'J$ sono complementari, dunque $AJ$ è ortogonale a $BC$.\n\nOra, $\\angle AC'C = \\angle ACC' = (180^\\circ - \\theta)/2$, perciò $\\angle JCC' = 90^\\circ - \\angle AC'C = \\theta / 2$. Ma allora $\\angle C'CK = \\theta / 2 = \\angle C'AK$; questo implica che il quadrilatero $AKC'C$ è ciclico, e dunque $\\angle CKC' = \\angle CAC' = \\theta = \\angle CBB'$. Poiché formano angoli corrispondenti congruenti con la retta trasversale $BC$, le rette $C'K$ e $BB'$ sono dunque parallele.\n\nSupponiamo ora che le rette $C'K$ e $BB'$ siano parallele. Gli angoli corrispondenti $\\angle AC'K$ e $\\angle AB'B$ formati con la retta $AB'$ devono essere congruenti, dunque entrambi uguali a $(180^\\circ - 2\\theta)/2$ (dato che il triangolo $ABB'$ è isoscele). Ne segue che $\\angle KC'C = \\angle KC'A + \\angle AC'C = 180^\\circ - \\frac{3}{2}\\theta$; dunque $\\angle KC'C$ è supplementare di $\\angle CAK$, e il quadrilatero $CAKC'$ è ciclico. Ma allora $\\angle B'BC = \\angle C'KC = \\angle C'AC = \\theta$ (dove la prima uguaglianza segue dal parallelismo e la seconda dalla ciclicità di $CAKC'$); quindi anche il quadrilatero $CABB'$ è ciclico.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 33941, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDeterminare tutte le coppie di numeri interi $(a, b)$ che risolvono l'equazione $a^{3}+b^{3}+3 a b=1$.", "options": [], "answer": "{(a,b) in Z^2 : a + b = 1} union {(-1, -1)}", "solution": "Solution:\n\nL'equazione è simmetrica in $a$ e $b$, quindi possiamo limitarci a considerare le soluzioni con $a \\geq b$. Non ci sono soluzioni con $a$ e $b$ entrambi positivi: infatti in tal caso avremmo $a^{3}+b^{3}+3 a b \\geq 1+1+3=5>1$, assurdo.\n\nSe almeno uno tra $a$ e $b$ è uguale a zero, diciamo $b$, allora sostituendo nel testo troviamo $a^{3}=1$, cioè $a=1$, da cui le due soluzioni $(1,0)$ e $(0,1)$.\n\nSe poi $a$ e $b$ sono entrambi strettamente minori di $0$, allora (supponendo ancora $b \\leq a<0$) troviamo $a^{3}+b^{3}+3 a b < b\\left(b^{2}+3 a\\right)$. Se avessimo $b \\leq -3$, allora avremmo anche $b^{2}+3 a \\geq -3 b+3 a=3(a-b) \\geq 0$ e quindi $b\\left(b^{2}+3 a\\right)$ non potrebbe essere positivo. Ne seguirebbe che $a^{3}+b^{3}+3 a b < b\\left(b^{2}+3 a\\right) \\leq 0$, e quindi $(a, b)$ non può essere una soluzione se $b \\leq -3$. Dobbiamo quindi controllare i casi $b=-2$ e $b=-1$, che (ricordando che stiamo supponendo $a<0$) portano all'unica soluzione $(a, b)=(-1,-1)$.\n\nCi restano quindi da determinare le soluzioni con $a>0$ e $b<0$: poniamo $c=-b$, cosicché $c$ è un intero positivo. L'equazione si riscrive nelle due forme equivalenti\n$$\n3 a c+1=a^{3}-c^{3}, \\quad a^{3}=c^{3}+3 a c+1 ;\n$$\ndalla seconda espressione ricaviamo che $a>c$, mentre dalla prima troviamo $3 a c+1=(a-c)\\left(c^{2}+c a+a^{2}\\right)$. Siccome $a-c \\geq 1$ abbiamo allora\n$$\n3 a c+1=(a-c)\\left(c^{2}+c a+a^{2}\\right) \\geq c^{2}+c a+a^{2},\n$$\nda cui $1 \\geq c^{2}-2 c a+a^{2}$, ovvero $(a-c)^{2} \\leq 1$. Siccome abbiamo già osservato che $a-c$ è positivo si deve avere $a-c=1$, e sostituendo $a=c+1$ troviamo\n$$\nc^{3}+3 c^{2}+3 c+1=c^{3}+3 c(c+1)+1,\n$$\nun'equazione che è verificata per qualunque valore di $c$. Ricordandoci del fatto che all'inizio avevamo supposto $a \\geq b$ vediamo allora che le soluzioni dell'equazione proposta sono la coppia $(a, b)=(-1,-1)$ e le infinite coppie $(a, b)=(a,-c)=(c+1,-c)$ per ogni valore intero di $c$: quelle con $c \\geq 0$ sono quelle per cui $a \\geq b$, e quelle con $c<0$ sono le simmetriche con $a1$ è scritto sulla lavagna. A turno, Ada e Charles cancellano il numero $k$ che trovano sulla lavagna e lo rimpiazzano\n\n1 - o con un divisore positivo di $k$ diverso da 1 e da $k$ stesso\n\n2 - oppure con $k+1$.\n\nInizialmente ciascuno dei giocatori possiede mille punti. Quando un giocatore gioca la mossa 1, guadagna un punto; quando gioca la mossa 2, perde un punto. Il gioco ha termine quando uno dei giocatori giunge ad avere zero punti, e questo giocatore ha perso. Ada gioca per prima. Per quali valori di $n$ Charles ha una strategia vincente?", "options": [], "answer": "Exactly when the starting number is prime", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33946, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nPer quante quaterne $(a, b, c, d)$ di numeri interi non negativi le tre espressioni $a^{2}-c^{2}$, $b^{2}-d^{2}$ e $a b+b c+c d+d a$ sono tutte uguali a $1024$?\n\n(A) $0$\n(B) $1$\n(C) $4$\n(D) $9$\n(E) $11$", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è (B). Scriviamo le tre equazioni nella forma $(a+c)(a-c)=1024$, $(b+d)(b-d)=1024$ e $(a+c)(b+d)=1024$. Si osservi che $a+c$ e $a-c$ non possono essere nulli, dal momento che $(a+c)(a-c)=1024$. Confrontando prima e terza equazione otteniamo allora $b+d=\\frac{1024}{a+c}=a-c$, che sostituito nella seconda fornisce $(b-d)(a-c)=1024=(a+c)(a-c)$, da cui $b-d=a+c$; sottraendo (membro a membro) questa equazione da $b+d=a-c$ troviamo $2d=-2c$. I numeri $c$ e $d$ sono quindi o entrambi uguali a zero, o di segno opposto; dato che per ipotesi $c$ e $d$ sono entrambi non-negativi si deve allora avere $c=d=0$. Il sistema iniziale si riduce quindi alle equazioni $a^{2}=b^{2}=a b=1024=32^{2}$, $c=d=0$, che ammettono come unica soluzione negli interi non-negativi la quaterna $(a, b, c, d)=(32,32,0,0)$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33947, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDato il triangolo $ABC$ rettangolo in $A$ costruiamo sull'ipotenusa il quadrato $BCDE$ (con $D, E$ dalla parte opposta di $A$ rispetto a $BC$). Sapendo che le aree dei triangoli $ABE$ e $ACD$ valgono rispettivamente $6~\\mathrm{m}^2$ e $27~\\mathrm{m}^2$, quanto vale l'area del triangolo $ABC$?\n\n(A) $3 \\sqrt{2}~m^2$\n(B) $6~\\mathrm{m}^2$\n(C) $12~\\mathrm{m}^2$\n(D) $9 \\sqrt{2}~\\mathrm{m}^2$\n(E) $18~\\mathrm{m}^2$", "options": [], "answer": "D", "solution": "Solution:\n\nMostriamo che il prodotto delle due aree fornite è uguale al quadrato dell'area del triangolo $ABC$ cercata. Siano $P$ il piede dell'altezza uscente dal vertice $A$ del triangolo $ACD$, $Q$ il piede dell'altezza uscente dal vertice $A$ del triangolo $ABE$, $H$ il piede dell'altezza uscente dal vertice $A$ del triangolo $ABC$. Il quadrilatero $APCH$ è, per costruzione, un rettangolo (gli angoli in $P$ e $H$ sono retti perché formati da altezze, l'angolo in $C$ è complementare di un angolo retto) dunque $AP$ è congruente a $CH$; allo stesso modo, $AQ$ è congruente a $BH$. Sappiamo perciò che $S(ACD)=\\frac{1}{2} CD \\cdot CH$ e $S(ABE)=\\frac{1}{2} BE \\cdot BH$; ma, poiché $CD=BE=CB$ e poiché $CH \\cdot BH=AH$ per il teorema di Euclide, il prodotto delle due aree vale\n$$\n\\frac{CD \\cdot CH}{2} \\cdot \\frac{BE \\cdot BH}{2} = \\frac{CB^2 \\cdot CH \\cdot BH}{4} = \\left(\\frac{CB \\cdot AH}{2}\\right)^2 = S(ABC)^2.\n$$\nPerciò l'area di $ABC$ vale $\\sqrt{27~m^2 \\cdot 6~m^2} = 9 \\sqrt{2}~m^2$.\n\n![](attached_image_1.png)\n\nSi tracci il quadrato $AXYZ$ tale che $B$ sia sul lato $ZA$, $C$ sia sul lato $AX$, $D$ sia sul lato $XY$ ed $E$ sia sul lato $YZ$. Si noti che i triangoli $ABC$, $XCD$, $DYE$ ed $EZB$ sono congruenti: hanno angoli congruenti e la stessa ipotenusa. D'altra parte, $DX$ (che è congruente ad $AC$) è l'altezza relativa ad $AC$ nel triangolo $ACD$, perciò l'area del triangolo $ACD$ vale $AC^2 / 2$. Allo stesso modo, poiché $CZ$ e $AB$ sono congruenti, l'area del triangolo $ABE$ vale $AB^2 / 2$. Dunque per l'area $S$ del triangolo $ABC$ si ha\n$$\nS = \\frac{AB \\cdot AC}{2} = \\sqrt{\\frac{AB^2}{2} \\cdot \\frac{AC^2}{2}} = \\sqrt{27~m^2 \\cdot 6~m^2} = 9 \\sqrt{2}~\\mathrm{m}^2.\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33948, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUna pedina si trova inizialmente sulla casella centrale di una scacchiera $5 \\times 5$. Un passo della pedina consiste nello spostarsi in una casella scelta a caso fra quelle che hanno esattamente un vertice in comune con la casella su cui si trova. Qual è la probabilità che dopo 12 passi la pedina si trovi in uno qualunque degli angoli della scacchiera?\n\n(A) $\\frac{1}{3}$\n(B) $\\frac{4}{25}$\n(C) $\\frac{1}{6}$\n(D) $\\frac{4}{13}$\n(E) $\\frac{1}{4}$", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è (E). Si consideri la scacchiera colorata come in figura; un passo della pedina può solo condurla da una casella bianca a una casella grigia, e viceversa: ne consegue che, dopo un numero dispari di passi, la pedina non può che trovarsi in una delle quattro caselle bianche. Qualunque sia la casella bianca in cui la pedina si trova dopo 11 passi, vi sono 4 caselle che essa può raggiungere con il dodicesimo passo, una sola delle quali è una casella d'angolo. La probabilità che la pedina si trovi in un angolo dopo 12 passi (così come dopo un qualunque numero\n![](attached_image_1.png)\npositivo pari di passi) è quindi $1 / 4$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33949, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nCinque amici, Aurelio, Ennio, Flaminia, Lucia e Regolo, hanno mangiato al ristorante. Il conto è di 180 euro, e viene pagato da Lucia, Ennio e Regolo: la prima paga 90 euro, il secondo 57 euro e il terzo 33 euro. Qual è il minimo numero di transazioni del tipo \"Tizio dà $n$ euro a Caio\" che devono essere effettuate in modo che alla fine ognuno dei cinque abbia pagato la stessa cifra?\n\n(A) 2\n(B) 3\n(C) 4\n(D) 5\n(E) 6", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è (C). Il conto del ristorante è 180 euro, i commensali sono 5, quindi ciascuno deve pagare 36 euro. Chi ha anticipato più di tale cifra deve ricevere soldi da chi ha anticipato meno (e in particolare dai due amici che non hanno pagato nulla). Tuttavia, siccome nessuno deve ricevere un multiplo della quota singola, necessariamente ci saranno almeno 4 passaggi di denaro. Una possibile soluzione con 4 è la seguente:\n\nAurelio dà 36 euro a Flaminia.\n\nFlaminia dà 72 (i 36 che ha ricevuto da Aurelio più i 36 che deve) euro a Regolo,\n\nRegolo dà 75 (i 72 che ha ricevuto da Flaminia più i 3 che deve) euro a Ennio\n\nche ne dà 54 a Lucia (i 75 che ha ricevuto da Regolo meno i 21 che gli spettano).\n\nA questo punto Lucia riceve esattamente i 54 che le spettano $(90-36=54)$ e ciascuno ha pagato la sua parte.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33950, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABCDEF$ un esagono regolare di area $1$. Si considerino tutti i triangoli i cui vertici appartengono all'insieme $\\{A, B, C, D, E, F\\}$: quanto vale la somma delle loro aree?\n\n(A) 3\n(B) 4\n(C) 5\n(D) 6\n(E) 7", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). Consideriamo tutti i triangoli non degeneri i cui vertici sono anche vertici dell'esagono, distinguendoli in 3 tipi:\n\nTre vertici consecutivi. Ci sono $6$ triangoli di questo tipo (uno per ciascun vertice), e l'area di ognuno è pari a $1/6$ di quella dell'esagono (vedi figura).\n\nUn vertice ogni due. Ci sono due triangoli di questo tipo, e la loro area è pari a quella dell'esagono meno l'area di tre triangolini del primo tipo, ovvero $1/2$.\n\nDue vertici adiacenti ed uno no. In questo caso abbiamo $12$ triangoli possibili, due per ciascun lato (fissato un lato abbiamo due vertici sul lato opposto tra cui scegliere), e l'area di ciascuno è uguale a $1/3$ (metà dell'area dell'esagono meno\n\n![](attached_image_1.png)\n\nl'area di un triangolo del primo tipo).\n\nLa somma delle aree di questi triangoli è quindi\n$$\n6 \\cdot \\frac{1}{6} + 2 \\cdot \\frac{1}{2} + 12 \\cdot \\frac{1}{3} = 6.\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33951, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $p(x)$ un polinomio a coefficienti interi tale che $p(0)=6$. Si sa che tra gli interi $m$ compresi fra 1 e 60 esattamente 40 sono tali che $p(m)$ sia multiplo di 3; inoltre, si sa che tra gli interi $m$ compresi fra 1 e 60 esattamente 30 sono tali che $p(m)$ sia multiplo di 4. Quanti sono gli interi $m$ compresi tra 1 e 60 tali che $p(m)$ sia multiplo di 6? Nota: tutti gli intervalli che compaiono in questo problema sono da considerarsi con gli estremi inclusi.\n(A) 10\n(B) 20\n(C) 25\n(D) 30\n(E) 40", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è $\\mathbf{(E)}$. Per dimostrarlo, vogliamo mostrare che $p(m)$ è pari per ogni intero $m$, e che di conseguenza $p(m)$ è multiplo di 6 se e solo se è multiplo di 3. A questo punto possiamo sfruttare l'ipotesi che gli interi $m$ per cui $p(m)$ è multiplo di 3 sono precisamente 40 per ottenere la risposta.\n\nOsserviamo innanzitutto che la parità di $p(m)$ dipende solo dalla parità di $m$: infatti la parità di un monomio $a \\cdot m^{k}$ dipende solo dalle parità di $m$ e di $a$, e la parità del valore di $p(m)$, che è una somma di monomi in $m$, dipende solo dalla parità di ogni addendo. È quindi sufficiente mostrare che $p(m)$ è pari per almeno un valore pari e per almeno un valore dispari di $m$. Per ipotesi $p(0)=6$, quindi ci resta da mostrare l'esistenza di un valore dispari di $m$ per il quale $p(m)$ è pari. Possiamo scrivere $p(x)=x \\cdot q(x)+6$, dove $q(x)$ è un polinomio a coefficienti interi. Se $m$ è multiplo di 4, diciamo $m=4k$, allora $p(m)=4k \\cdot q(4k)+6$ non è multiplo di 4 (dà resto 2 nella divisione per 4). Per ipotesi, ci sono 30 interi fra 1 e 60 tali che $p(m)$ sia multiplo di 4; siccome gli $m$ multipli di 4 non hanno questa proprietà, e gli $m$ pari ma non multipli di 4 sono soltanto 15, devono esistere degli interi dispari tali che $p(m)$ sia pari.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33952, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAlberto e Barbara giocano a biliardino. Prima di iniziare, decidono che la partita finirà non appena uno dei due avrà fatto 3 gol più dell'altro. Sapendo che, per ogni pallina giocata, sia Alberto che Barbara hanno il $50\\%$ di probabilità di segnare, qual è la probabilità che la partita non termini prima del ventunesimo gol?\n\n(A) $\\frac{3^{9}}{2^{18}}$\n(B) $\\frac{3^{10}}{2^{20}}$\n(C) $\\frac{3^{20}}{2^{40}}$\n(D) $\\frac{13 \\cdot 17 \\cdot 19 \\cdot 31}{2^{18}}$\n(E) $\\frac{3 \\cdot 7 \\cdot 13 \\cdot 17 \\cdot 19}{2^{18}}$", "options": [], "answer": "A", "solution": "Solution:\n\nLa risposta è (A). Indichiamo con $P_{n}$ la probabilità che la partita non termini con l'$n$-simo gol (né prima). Supponiamo che dopo un numero dispari $(2k-1)$ di gol la partita non sia ancora finita: la differenza tra i gol segnati dai due giocatori è allora uguale a $1$ in valore assoluto, dal momento che è necessariamente dispari e non può essere maggiore di $2$. Consideriamo il $2k$-esimo e il $(2k+1)$-esimo gol: la partita finisce solo se essi vengono entrambi segnati dal giocatore che era già in vantaggio, cosa che succede con probabilità $1/2 \\cdot 1/2 = 1/4$. Con probabilità $3/4$, invece, dopo il $(2k+1)$-esimo gol la differenza reti sarà nuovamente uguale a $1$, e la partita non sarà finita. Otteniamo allora $P_{2k+1} = \\frac{3}{4} P_{2k-1}$, cioè $P_{1}, P_{3}, P_{5}, \\ldots$ formano una progressione geometrica di ragione $\\frac{3}{4}$. Siccome chiaramente $P_{1} = 1$ (la partita non può finire con il primo gol) abbiamo $P_{2k+1} = (3/4)^{k}$ per ogni $k \\geq 0$. La probabilità richiesta è la probabilità che vengano segnati almeno $21$ gol, o equivalentemente (per ragioni di parità) che la partita non termini con il $19$-esimo gol (né prima). La risposta è quindi $P_{19} = (3/4)^{9} = 3^{9} / 2^{18}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33953, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $n$ il più piccolo intero positivo di 4 cifre maggiore o uguale a 2016 che gode della seguente proprietà: esiste un intero positivo $S$ tale che\n\n$$\nS=\\sqrt{a+\\sqrt{b+\\sqrt{c+\\sqrt{d+S}}}}\n$$\n\ndove $a, b, c, d$ sono, nell'ordine, la cifra delle migliaia, delle centinaia, delle decine e delle unità di $n$. Quanto vale $n$ ?", "options": [], "answer": "2167", "solution": "Solution:\n\nLa risposta è 2167. Innanzitutto 2167 soddisfa la proprietà richiesta con $S=2$: infatti\n$$\n\\sqrt{2+\\sqrt{1+\\sqrt{6+\\sqrt{7+2}}}}=\\sqrt{2+\\sqrt{1+\\sqrt{6+\\sqrt{9}}}}=\\sqrt{2+\\sqrt{1+\\sqrt{9}}}=\\sqrt{2+\\sqrt{4}}=\\sqrt{4}=2\n$$\nMostriamo ora che non esistono interi $n$ tra 2016 e 2166 che godono di questa proprietà. Iniziamo col dimostrare che $S$ deve essere minore di 4. Infatti, se per assurdo fosse $S \\geq 4$, avremmo\n$$\nS(S-1)>9 \\Rightarrow S^{2}>S+9 \\geq S+d \\Rightarrow S>\\sqrt{d+S}\n$$\nanalogamente si avrebbe $S^{2}>S+9>\\sqrt{d+S}+c \\Rightarrow S>\\sqrt{c+\\sqrt{d+S}}$, e così via, fino ad arrivare alla contraddizione $S>\\sqrt{a+\\sqrt{b+\\sqrt{c+\\sqrt{d+S}}}}=S$. Osserviamo poi che, siccome $S$ è intero, tutti gli argomenti delle radici quadrate devono essere quadrati perfetti, e che siccome cerchiamo un numero tra 2016 e 2166 dobbiamo avere $a=2$ e $b=0$ o $b=1$. Abbiamo inoltre $S>1$, perché $S>\\sqrt{a} \\geq 1$, e da $S \\leq 3$ troviamo $d+S \\leq 12$, da cui $c+\\sqrt{d+S}<9+4=13$; allo stesso modo, tutti gli argomenti delle radici quadrate sono minori o uguali a 12. In particolare, $\\sqrt{12} \\geq \\sqrt{b+\\sqrt{c+\\sqrt{d+S}}}=S^{2}-a=S^{2}-2$, da cui otteniamo $S<3$, cioè $S=2$. Abbiamo allora $2 \\leq d+S \\leq 11$, e gli unici due quadrati perfetti in tale intervallo sono 4 e 9, che corrispondono a $d=2$ e $d=7$ rispettivamente. Trattiamo i due casi separatamente.\n\nd=2. Si ripresenta per $c$ la stessa situazione appena vista per $d$. Se fosse $c=2$ dovremmo avere che $b+\\sqrt{2+2}$ è un quadrato perfetto, ma ciò non è vero né per $b=0$ né per $b=1$. Se invece $c=7, b+\\sqrt{7+2}$ è un quadrato perfetto per $b=1$, il che però ci conduce a $2172>2167$.\n\nd=7. In questo caso $c+\\sqrt{d+S}=c+3$ deve essere un quadrato perfetto tra 3 e 12, da cui $c=1$ oppure $c=6$. Nel primo caso nuovamente $b+2$ non è un quadrato perfetto per $b=0,1$, mentre per $c=6$ otteniamo che $b+3$ deve essere un quadrato, cosa che accade per $b=1$ e conduce alla soluzione 2167.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33954, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIl PIN del telefono di Eugenia è composto da 4 cifre; Eugenia ricorda soltanto che la prima è compresa fra 0 e 6, la seconda fra 0 e 3, la terza fra 0 e 4, la quarta fra 0 e 2, e che la somma delle quattro cifre è almeno 8 (per esempio, il PIN potrebbe essere 3330). Quanti sono i codici compatibili con i ricordi di Eugenia?", "options": [], "answer": "210", "solution": "Solution:\n\nLa risposta è 210. Consideriamo tutti i codici di 4 cifre che si possono formare con cifre appartenenti agli intervalli corretti (senza restrizioni sulla somma); queste sono in numero di $7 \\cdot 4 \\cdot 5 \\cdot 3 = 420$. Mostriamo adesso che esattamente metà di questi codici rispetta anche la condizione sulla somma delle cifre. Osserviamo che se $[a, b, c, d]$ sono 4 cifre negli intervalli indicati, allora lo stesso è vero per $[6-a, 3-b, 4-c, 2-d]$; diciamo che il secondo codice è il compagno del primo. La somma delle cifre di $[6-a, 3-b, 4-c, 2-d]$ è $15 - (a + b + c + d)$, che è maggiore o uguale a 8 se e solo se $a + b + c + d \\leq 7$; in particolare, esattamente uno tra i due codici $[a, b, c, d]$ e $[6-a, 3-b, 4-c, 2-d]$ rispetta l'ipotesi sulla somma delle cifre. Osservando inoltre che il compagno del codice $[6-a, 3-b, 4-c, 2-d]$ è nuovamente $[a, b, c, d]$, abbiamo così formato 210 coppie, ognuna delle quale contiene esattamente un codice compatibile con i ricordi di Eugenia.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33955, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSiano $m, n$ due interi maggiori o uguali a $2$. Di una tabella a $m$ righe e $n$ colonne si sa che ogni casella contiene o il numero $1$ o il numero $-1$, e che la somma totale di tutte le caselle è maggiore o uguale a zero. Genoveffa considera i percorsi che uniscono una casella della prima colonna (a sua scelta) ad una casella dell'ultima colonna (nuovamente a sua scelta) e che si muovono sempre da una casella ad una adiacente in orizzontale o verticale, senza ripassare due volte sulla stessa casella. Il valore di un percorso è la somma dei numeri presenti nelle caselle che esso attraversa.\n\na. Dimostrare che per ogni $m, n \\geq 2$ esistono tabelle a $m$ righe e $n$ colonne senza percorsi di valore $2$ o più.\n\nb. Dimostrare che è sempre possibile trovare un percorso di valore maggiore o uguale a $1$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\na. Supponiamo che la tabella contenga $1$ e $-1$ disposti \"a scacchiera\" (in modo che le caselle adiacenti in orizzontale e verticale a una casella contenente $1$ contengano $-1$, e viceversa), in modo che la casella in alto a sinistra contenga il numero $1$ (questo garantisce che la somma dei numeri presenti nella tabella sia maggiore o uguale a $0$). In qualunque percorso su questa tabella, un $1$ è sempre seguito da un $-1$, a meno che non si tratti del contenuto dell'ultima casella del percorso; il valore di ogni percorso è dunque al più $1$.\n\nb. Se vi è una riga a somma strettamente positiva, questa costituisce un percorso di valore almeno $1$. Possiamo perciò supporre che ciascuna riga abbia somma al più $0$, e dunque, dato che la somma del contenuto di tutte le caselle è almeno $0$, che tutte le righe abbiano somma nulla.\n\nConsideriamo ora la casella nell'angolo in alto a sinistra della tabella. Se essa contiene un $+1$, il percorso che parte dalla casella in questione e percorre interamente la seconda riga ha valore esattamente $1$. Se invece essa contiene un $-1$, è sufficiente considerare un percorso che riempia l'intera tabella, ad eccezione della casella in questione (per esempio percorrendo le colonne a senso alterno, a partire però dalla seconda casella della prima colonna). Dato che abbiamo supposto che un percorso che copra l'intera tabella abbia valore $0$, il percorso descritto sopra ha valore $0-(-1)=1$. In ogni caso, dunque, è possibile trovare un percorso di valore almeno $1$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33956, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $a_{1}, a_{2}, \\ldots, a_{n}, \\ldots$ una sequenza di interi positivi tali che $a_{i+1}$ è il numero di divisori positivi di $a_{i}$ per ogni $i \\geq 1$. Supponiamo che $a_{2} \\neq 2$. Dimostrare che esiste un indice $m$ tale che $a_{m}$ sia un quadrato perfetto.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nOsserviamo che per ogni $i$ abbiamo $a_{i+1} \\leq a_{i}$ (ogni divisore positivo di $a_{i}$ è minore o uguale ad $a_{i}$), e che $a_{i+1} = a_{i}$ se e solo se $a_{i} \\in \\{1, 2\\}$, perché per $a_{i} \\geq 3$ il numero $a_{i} - 1$ non è un divisore di $a_{i}$.\n\nSe $a_{1} = 1$, allora $a_{1}$ è un quadrato perfetto; se $a_{1} = 2$, allora $a_{2} = 2$, il che contraddice l'ipotesi. Possiamo dunque supporre $a_{1} \\geq 3$, nel qual caso la successione $a_{i}$ decresce strettamente ad ogni passo finché non raggiunge il valore $2$. Sia $k > 2$ il primo indice per cui $a_{k} = 2$; $a_{k-1}$ è allora un primo dispari, perché solo i numeri primi hanno esattamente due divisori positivi.\n\nSi noti ora che se un intero positivo $n$ ha un numero dispari di divisori allora è un quadrato perfetto: se non lo fosse, l'insieme dei suoi divisori potrebbe essere partizionato in coppie della forma $\\{a, n / a\\}$ (si ha sempre $a \\neq n / a$), e dunque avrebbe cardinalità pari. Ne consegue che $a_{k-2}$ è un quadrato perfetto.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33957, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABCD$ un rettangolo con $AB > BC$ e sia $\\omega$ la sua circonferenza circoscritta. Siano $E$ e $F$ rispettivamente le intersezioni (distinte da $A$) della bisettrice dell'angolo $\\widehat{BAD}$ con il lato $CD$ e la circonferenza $\\omega$. La perpendicolare a $DF$ passante per $E$ interseca la corda $DF$ in $G$ e l'arco $DF$ non contenente $C$ nel punto $H$. Si dimostri che:\n(a) i segmenti $DF$ e $FB$ hanno la stessa lunghezza;\n(b) i triangoli $DEG$ e $DHG$ sono congruenti;\n(c) i segmenti $HF$ e $FC$ sono uguali.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\n(a) Per dimostrare (a) ci basta mostrare che il triangolo $BDF$ è isoscele su base $BD$. Siccome $AF$ è bisettrice dell'angolo $\\widehat{BAD}$, abbiamo $\\widehat{FAD} = \\widehat{FAB}$. Inoltre, $\\widehat{FBD} = \\widehat{FAD}$ poiché insistono sullo stesso arco di circonferenza e, per il medesimo motivo, $\\widehat{FDB} = \\widehat{FAB}$. Quindi il triangolo $BDF$ è isoscele di base $BD$, avendo i due angoli adiacenti alla base $\\widehat{FBD}$ e $\\widehat{FDB}$ uguali.\n\n(b) Passiamo ora al punto (b). Sappiamo che $\\widehat{BAE} = \\widehat{AED}$, in quanto angoli alterni interni dei due segmenti paralleli $AB$ e $CD$ tagliati dalla trasversale $AE$. Inoltre, siccome $\\widehat{BAD}$ è retto e $AE$ ne è bisettrice, $\\widehat{DAE} = \\widehat{AED} = 45^\\circ$. Dal momento che il quadrilatero $ADHF$ è inscritto in una circonferenza, $\\widehat{DHF} = 180^\\circ - \\widehat{DAF}$ e gli angoli $\\widehat{DEA}$ e $\\widehat{DEF}$ sono supplementari, quindi $\\widehat{DEF} = \\widehat{DHF}$.\n\n![](attached_image_1.png)\n\nOra osserviamo che, per costruzione, $EH$ è perpendicolare a $DF$, quindi i due triangoli $DEF$ e $DHF$ sono simmetrici rispetto a $DF$ e pertanto sono in particolare congruenti i triangoli $DEG$ e $DHG$.\n\n(c) Per quanto riguarda infine il punto (c), iniziamo osservando che dal punto precedente abbiamo\n$$\n\\widehat{CDF} = \\widehat{EDG} = \\widehat{GDH} = \\widehat{FDH} \\text{;}\n$$\ninoltre, gli angoli $\\widehat{FDH}$ e $\\widehat{HCF}$ insistono sullo stesso arco e sono quindi uguali, così come gli angoli $\\widehat{FHC}$ e $\\widehat{CDF}$. Ne deduciamo che gli angoli $\\widehat{FHC}$ e $\\widehat{HCF}$ sono uguali, quindi il triangolo $FHC$ è isoscele di base $HC$ e i segmenti $FC$ ed $FH$ hanno la stessa lunghezza.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33958, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn testo antico dichiara che Matusalemme visse 150 anni, dove il simbolo $\\ast$ sostituisce la cifra delle unità, che gli studiosi non riescono a leggere. Fortunatamente siamo in possesso di altri tre manoscritti sulla vita di Matusalemme; il primo sostiene che egli visse un numero pari di anni, il secondo che ne visse un numero multiplo di 3, il terzo che ne visse un numero multiplo di 5. Sapendo che esattamente uno di questi tre manoscritti contiene un'informazione falsa, quante diverse cifre potrebbero celarsi dietro il simbolo $\\ast$?\n\n(A) Nessuna\n(B) Una\n(C) Due\n(D) Tre\n(E) Quattro", "options": [], "answer": "B", "solution": "Solution:\n\n(a) $150\\ast$ è multiplo di 2 e 3, ma non di 5;\n(b) $150\\ast$ è multiplo di 2 e 5, ma non di 3;\n(c) $150\\ast$ è multiplo di 3 e 5, ma non di 2.\n\nCome prima cosa notiamo che $1500$ è multiplo di $2 \\cdot 3 \\cdot 5 = 30$, e non ci sono altri multipli di $10$ o $15$ tra $1500$ e $1509$. Gli ultimi due casi sono quindi esclusi. L'unico multiplo di $6$ che non sia anche multiplo di $5$ tra i $10$ possibili valori è $1506$, dunque solo il primo dei tre casi può essere quello giusto, e c'è una sola possibilità di scelta per la cifra mancante.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33959, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDato un numero reale $x$ il simbolo $\\lfloor x\\rfloor$ indica la sua parte intera (cioè il più grande intero minore o uguale ad $x$) e $\\{x\\}$ la sua parte frazionaria (cioè $x-\\lfloor x\\rfloor$). Siano $x$, $y$, $z$ tre numeri reali positivi che soddisfano il seguente sistema:\n\n$$\n\\left\\{\\begin{array}{l}\n3\\lfloor x\\rfloor-\\{y\\}+\\{z\\}=20,3 \\\\\n3\\lfloor y\\rfloor+5\\lfloor z\\rfloor-\\{x\\}=15,1 \\\\\n\\{y\\}+\\{z\\}=0,9\n\\end{array}\\right.\n$$\n\nQuanto vale $x+y+z$?\n(A) 10,8\n(B) 11,1\n(C) 11,6\n(D) 12,8\n(E) 13", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). Iniziamo dalla prima equazione del sistema: abbiamo $19 < 20,3 + \\{y\\} - \\{z\\} < 22$, quindi il valore di $3\\lfloor x\\rfloor$, che è un intero multiplo di $3$, deve essere necessariamente $21$, da cui $\\lfloor x\\rfloor = 7$.\n\nConsideriamo ora la seconda equazione: poiché $15 < 3\\lfloor y\\rfloor + 5\\lfloor z\\rfloor = 15,1 + \\{x\\} < 17$ otteniamo $15,1 + \\{x\\} = 16$, poiché $3\\lfloor y\\rfloor + 5\\lfloor z\\rfloor$ è intero, da cui $\\{x\\} = 0,9$.\n\nSempre dall'uguaglianza $3\\lfloor y\\rfloor + 5\\lfloor z\\rfloor = 16$ possiamo ricavare che $\\lfloor z\\rfloor < 4$. Tuttavia per $\\lfloor z\\rfloor = 0, 1, 3$ il valore $3\\lfloor y\\rfloor = 16 - 5\\lfloor z\\rfloor$ non risulta essere multiplo di tre, perciò necessariamente $\\lfloor z\\rfloor = 2$ da cui $\\lfloor y\\rfloor = \\frac{16 - 5\\lfloor z\\rfloor}{3} = 2$.\n\nPossiamo allora concludere che\n$$\nx + y + z = \\lfloor x\\rfloor + \\lfloor y\\rfloor + \\lfloor z\\rfloor + \\{x\\} + \\{y\\} + \\{z\\} = 7 + 2 + 2 + 0,9 + 0,9 = 12,8 \\text{.}\n$$\n\nUn'ultima osservazione: combinando la terza equazione con la relazione $\\{y\\} - \\{z\\} = 0,7$ che si ricava dalla prima equazione, è possibile ottenere $\\{y\\} = 0,8$ da cui $\\{z\\} = 0,1$, ma tale informazione non è necessaria per calcolare la somma dei tre numeri.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33960, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nCecilia ha un dado a sei facce (numerate da 1 a 6) e 4 colori a disposizione. In quanti modi può colorare le sei facce del dado usando in totale almeno tre colori diversi e facendo in modo che facce opposte siano di colori diversi?\n\n(A) $4^{3} \\cdot 3^{3}$\n(B) $3^{6}-2^{6}$\n(C) $2^{6} \\cdot 3^{2}$\n(D) $2^{4} \\cdot 3 \\cdot 5 \\cdot 7$\n(E) Nessuna delle precedenti", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). Contiamo innanzitutto in quanti modi possiamo colorare il cubo affinché facce opposte abbiano colori diversi. Abbiamo $4 \\cdot 3$ scelte per le facce 1 e 6, e altrettante per ciascuna delle coppie di facce 2 e 5 e 3 e 4. Complessivamente abbiamo $4^{3} \\cdot 3^{3}$ colorazioni.\n\nDobbiamo ora sottrarre da esse tutte quelle colorazioni che non soddisfano il primo requisito, cioè tutte quelle in cui abbiamo adoperato solamente 2 colori. Il numero di tali colorazioni è pari al numero di modi di scegliere 2 colori distinti tra i 4 disponibili, 6, moltiplicato per il numero di possibili colorazioni del cubo con tali colori, $2^{3}$, poiché per ogni coppia di facce abbiamo 2 modi di usare i due colori a disposizione.\n\nIl numero di colorazioni ammissibili è quindi $4^{3} \\cdot 3^{3} - 6 \\cdot 8$, che è uguale a $2^{4} \\cdot 3 \\cdot 5 \\cdot 7$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33961, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $k$ un intero positivo. Poniamo $a_{1}=1$ e, per ogni $n \\geq 1$, $a_{n+1}=k\\left(a_{1}+\\cdots+a_{n}\\right)+1$ (quindi per esempio $a_{2}=k a_{1}+1$ e $a_{3}=k\\left(a_{1}+a_{2}\\right)+1$ ). Qual è il più piccolo valore di $k$ tale che $a_{2016}$ sia multiplo di $3^{4031} \\cdot 7^{4027}$ ?\n\n(A) 1271\n(B) 1322\n(C) 1331\n(D) 1702\n(E) 2048", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è (B). Dimostriamo innanzitutto che $a_{n}=(k+1)^{n-1}$ : abbiamo $a_{1}=1=(k+1)^{1-1}$ e $a_{n+1}=k\\left(a_{n}+\\ldots+a_{1}\\right)+1=k a_{n}+k\\left(a_{n-1}+\\ldots+a_{1}\\right)+1=k a_{n}+a_{n}=(k+1) a_{n}$; per ricorrenza, si ottiene la formula voluta.\n\nOra consideriamo $a_{2016}=(k+1)^{2015}$ : esso è divisibile per $3^{4031}=3^{2 \\cdot 2015+1}$ se e solo se $3^{3}$ divide $k+1$; analogamente, $a_{2016}$ è divisibile per $7^{4027}=7^{2 \\cdot 2015-3}$ se e solo se $k+1$ è divisibile per $7^{2}$. In conclusione, $k=3^{3} \\cdot 7^{2}-1=1322$ è il minimo valore ammissibile.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33962, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn poligono si dice convesso se tutti i suoi angoli interni hanno ampiezza strettamente minore di $180^{\\circ}$. Quanti angoli di ampiezza minore di $150^{\\circ}$ può avere al massimo un poligono convesso di 2016 lati?\n\n(A) 11\n(B) 12\n(C) 13\n(D) 17\n(E) 2016", "options": [], "answer": "A", "solution": "Solution:\n\nLa risposta è (A). Consideriamo un poligono convesso con 2016 lati, e supponiamo che abbia esattamente $a$ angoli di ampiezza inferiore a $150^{\\circ}$; la somma dei suoi angoli interni vale $(2016 - 2) \\cdot 180^{\\circ}$. Nel contempo, dal momento che ognuno dei $2016 - a$ angoli restanti ha ampiezza minore di $180^{\\circ}$, tale somma è strettamente inferiore a $a \\cdot 150^{\\circ} + (2016 - a) \\cdot 180^{\\circ}$. Otteniamo quindi la disuguaglianza\n$$\n2014 \\cdot 180^{\\circ} < a \\cdot 150^{\\circ} + (2016 - a) \\cdot 180^{\\circ},\n$$\novvero $a \\cdot 30^{\\circ} < 360^{\\circ}$, da cui $a < 12$.\nD'altra parte, non è difficile vedere che esiste un poligono con 11 angoli di ampiezza $149^{\\circ}$ e 2005 di ampiezza $\\frac{1}{2005}\\left(2014 \\cdot 180^{\\circ} - 11 \\cdot 149^{\\circ}\\right)$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33963, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDato un triangolo $ABC$ di lati $AB = 13$, $BC = 14$ e $AC = 15$, sia $H$ il piede dell'altezza relativa al lato $BC$, $M$ il punto medio di $BC$ e $N$ il punto medio di $AM$. Quanto vale la lunghezza di $HN$?\n\n(A) $2 + 2\\sqrt{3}$\n(B) $6$\n(C) $\\sqrt{37}$\n(D) $4 + \\sqrt{7}$\n(E) $\\sqrt{42}$", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è (C). Il triangolo $AHM$ è rettangolo, quindi abbiamo $\\overline{HN} = \\overline{AM} / 2$ perché $HN$ è la mediana relativa all'ipotenusa. Ponendo $\\overline{BH} = x$ abbiamo $\\overline{HC} = \\overline{BC} - \\overline{BH} = 14 - x$ e, per il teorema di Pitagora, $\\overline{AH}^2 = \\overline{AB}^2 - \\overline{BH}^2 = \\overline{AC}^2 - \\overline{HC}^2$, cioè $13^2 - x^2 = 15^2 - (14 - x)^2$, da cui ricaviamo $x = 5$. Abbiamo allora\n$$\n\\overline{AH} = \\sqrt{13^2 - 5^2} = 12, \\quad \\overline{AM} = \\sqrt{\\overline{AH}^2 + \\overline{HM}^2} = \\sqrt{12^2 + 2^2} = \\sqrt{148} = 2\\sqrt{37},\n$$\ndunque $\\overline{HN} = \\sqrt{37}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33964, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLa sequenza dei numeri di Fibonacci $F_{1}, F_{2}, \\ldots, F_{n}, \\ldots$ è tale che $F_{1}=F_{2}=1$ e che l'n-esimo termine ( $n \\geq 3$ ) sia la somma dei due precedenti (i primi termini della successione sono quindi $F_{1}=1, F_{2}=1, F_{3}=2=1+1, F_{4}=3=2+1, F_{5}=5=3+2$ ). Quanti sono i numeri di Fibonacci che hanno esattamente 2016 cifre nella loro scrittura decimale?\n(A) Almeno 2 e al massimo 3\n(B) Almeno 4 e al massimo 5\n(D) Almeno 8 e al massimo 9\n(E) 10 o più\n(C) Almeno 6 e al massimo 7", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è $\\mathbf{( B )}$. Osserviamo innanzitutto che (per $n \\geq 2$ ) la relazione $F_{n+1}=F_{n}+F_{n-1}$, insieme al fatto che $F_{n-1} \\leq F_{n}$, implica che $F_{n}$ è almeno metà di $F_{n+1}$. Sia ora $k \\geq 1$ e $F_{n}$ il più piccolo numero di Fibonacci con $k+1$ cifre decimali (quindi $F_{n} \\geq 10^{k}$ ). Si ha $F_{n-1} \\geq \\frac{1}{2} \\cdot 10^{k}$ e dunque $F_{n+1}=F_{n}+F_{n-1} \\geq\\left(1+\\frac{1}{2}\\right) \\cdot 10^{k}$. Procedendo nello stesso modo si ottengono successivamente le disuguaglianze $F_{n+2} \\geq\\left(\\frac{3}{2}+1\\right) \\cdot 10^{k}, F_{n+3} \\geq\\left(\\frac{5}{2}+\\frac{3}{2}\\right) 10^{k}, F_{n+4} \\geq\\left(4+\\frac{5}{2}\\right) \\cdot 10^{k}$ e $F_{n+5} \\geq\\left(\\frac{13}{2}+4\\right) \\cdot 10^{k}>10^{k+1}$, da cui vediamo che $F_{n+5}$ ha almeno $k+2$ cifre decimali.\n\nD'altra parte, per definizione abbiamo $F_{n-2} \\leq F_{n-1}<10^{k}$, da cui otteniamo successivamente $F_{n}<2 \\cdot 10^{k}, F_{n+1}<3 \\cdot 10^{k}, F_{n+2}<5 \\cdot 10^{k}, F_{n+3}<8 \\cdot 10^{k}$, quindi $F_{n+3}$ ha ancora $k+1$ cifre decimali. In conclusione, dato qualunque numero $k \\geq 2$, ci sono almeno 4 e al massimo 5 numeri di Fibonacci con $k$ cifre.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33965, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSiano $a$ e $b$ due numeri reali positivi. Consideriamo un esagono regolare di lato $a$, e costruiamo sui suoi lati sei rettangoli di lati $a$ e $b$, disposti esternamente all'esagono. I dodici nuovi vertici giacciono su una circonferenza. Ripetiamo l'operazione precedente, ma scambiando fra loro i valori di $a$ e $b$: ossia, partiamo da un esagono regolare di lato $b$ e costruiamo su di esso, sempre esternamente all'esagono, sei rettangoli di lati $a$ e $b$. Otteniamo che i dodici nuovi vertici giacciono su una seconda circonferenza.\nDimostrare che le due circonferenze hanno lo stesso raggio.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nPrima Soluzione: Consideriamo il primo esagono, e chiamiamo $O$ il suo centro, $MN$ un suo lato, e $MNPQ$ il rettangolo costruito su $MN$. Il raggio della circonferenza che passa per i vertici esterni è $OQ$. Siccome l'esagono è regolare, $OMN$ è un triangolo equilatero, e quindi $MN = OM = a$, e l'angolo $OMN$ misura $60^{\\circ}$. Quindi l'angolo $OMQ$ misura $60^{\\circ} + 90^{\\circ} = 150^{\\circ}$. Il triangolo $OMQ$ ha quindi due lati di lunghezze $OM = a$ e $MQ = b$, e l'angolo compreso di $150^{\\circ}$.\nConsideriamo ora il secondo esagono, con centro $O'$, lato $M'N'$ e rettangolo $M'N'P'Q'$, analogamente al primo caso. Il raggio della seconda circonferenza è quindi $O'Q'$. Lo stesso ragionamento mostra che il triangolo $O'M'Q'$ ha due lati di lunghezze $O'M' = b$ e $M'Q' = a$, e l'angolo compreso $O'M'Q'$ misura $150^{\\circ}$. Per il primo criterio di congruenza dei triangoli, $OMQ$ e $O'M'Q'$ sono congruenti, e quindi $O'Q' = OQ$.\n\n\nSeconda Soluzione: Siano $O$ il centro della circonferenza, $MNPQ$ uno dei sei rettangoli, dove $MN$ è un lato dell'esagono regolare e $PQ$ è una corda della circonferenza. Siano poi $R$ il punto medio di $MN$ ed $S$ il punto medio di $PQ$. Il raggio della circonferenza è evidentemente uguale a $OP$. Per il teorema di Pitagora,\n$$\nr^{2} = OS^{2} + SP^{2} = (OR + b)^{2} + \\left(\\frac{a}{2}\\right)^{2}.\n$$\nÈ facile verificare che $OR = \\frac{\\sqrt{3}}{2} a$ (altezza di un triangolo equilatero di lato $a$), quindi\n$$\nr^{2} = \\left(\\frac{\\sqrt{3}}{2} a + b\\right)^{2} + \\left(\\frac{a}{2}\\right)^{2} = a^{2} + \\sqrt{3}ab + b^{2}\n$$\nPoiché questa espressione rimane la stessa se si scambiano fra loro $a$ e $b$, si ha la tesi.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33966, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAndrea incolla 27 normali dadi a 6 facce tra loro in modo da formare un grande cubo. I dadi sono orientati in modo che le somme dei valori leggibili su ciascuna faccia del cubo siano, in un qualche ordine, $14$, $22$, $30$, $38$, $46$, $54$. Quanto vale la somma di tutte le facce dei dadi che, essendo state incollate tra loro, non si leggono più?\n\n(A) 189\n(B) 204\n(C) 261\n(D) 333\n(E) 363", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è $(E)$. La somma dei valori sulle facce di un dado è $1+2+3+4+5+6=21$. La somma su tutte le facce, visibili e non, è quindi $27 \\cdot 21=567$. Per ottenere la somma sulle facce nascoste possiamo sottrarre a questo numero la somma dei numeri scritti su quelle visibili: la risposta è quindi $567-(14+22+30+38+46+54)=567-204=363$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33967, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABC$ un triangolo acutangolo e sia $D$ il piede della bisettrice uscente da $A$. Sia $\\omega$ la circonferenza per $A$ tangente a $BC$ in $D$, e siano $E, F$ le intersezioni di $\\omega$ con $AB, AC$ rispettivamente. Le tangenti a $\\omega$ in $E$ e $F$ si intersecano in $P$. Sapendo che $PE=3$ e che il raggio di $\\omega$ è $4$, quanto misura il segmento $PD$?\n\n(A) $\\frac{3}{4}$\n(B) $1$\n(C) $\\frac{1+\\sqrt{2}}{2}$\n(D) $\\sqrt{2}$\n(E) I dati non sono sufficienti per determinarlo", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è (B). Sia $O$ il centro di $\\omega$; per ipotesi si ha $\\widehat{EAD}=\\widehat{FAD}$, quindi $D$ è il punto medio dell'arco $EF$ e in particolare $OD$ passa per il punto medio del segmento $EF$. Ne segue che $OD$ è l'asse di $EF$, perché è ad esso perpendicolare e passa per il suo punto medio. Ora, essendo $PE$ e $PF$ tangenti, vale $PE=PF$ e dunque anche $P$ appartiene all'asse di $EF$. Questo implica che $P, D, O$ sono allineati. Il triangolo $PEO$ è rettangolo in $E$ per costruzione, quindi abbiamo $PO^2=(PD+DO)^2=(PD+4)^2=EO^2+PE^2=4^2+3^2$, da cui si ricava $PD=1$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33968, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn'urna contiene 8 palline, sulle quali sono scritti i numeri da 1 a 8. Federica pesca due palline di seguito, cancella il numero scritto sulla prima e lo sostituisce con il suo doppio, cancella il numero sulla seconda pallina e lo sostituisce con il quadruplo di esso. Reinserisce quindi le due palline nell'urna (ad esempio, se Federica ha pescato le palline 3 e 7 in quest'ordine, reinserirà nell'urna due palline con i numeri 6 e 28). Infine, estrae nuovamente una pallina: qual è la probabilità che la pallina estratta abbia il numero 8?\n(A) $\\frac{1}{8}$\n(B) $\\frac{1}{7}$\n(C) $\\frac{7}{44}$\n(D) $\\frac{9}{56}$\n(E) $\\frac{1}{6}$", "options": [], "answer": "A", "solution": "Solution:\n\nLa risposta è (A). Supponiamo che la pallina pescata alla fine da Federica riporti il numero 8. Questo può accadere per tre motivi diversi (che sono tra loro mutuamente esclusivi):\n- la pallina era numerata 8 fin dall'inizio, e non è stata estratta nelle prime due pescate. Questo evento ha probabilità $\\frac{1}{8} \\times \\frac{6}{8}$, ovvero la probabilità di aver pescato proprio la pallina che all'inizio riportava il numero $8\\left(\\frac{1}{8}\\right)$, moltiplicata per la probabilità che tale pallina non fosse fra le prime due estratte ($\\frac{6}{8}$, dal momento che le palline non estratte sono 6 su un totale di 8);\n- la pallina riportava inizialmente il numero 4, ed è stata pescata alla prima estrazione: con un ragionamento simile al precedente, troviamo che questo evento ha probabilità $\\frac{1}{8} \\times \\frac{1}{8}$;\n- la pallina riportava inizialmente il numero 2, ed è stata pescata alla seconda estrazione: questo evento ha nuovamente probabilità $\\frac{1}{8} \\times \\frac{1}{8}$.\nIn totale, la probabilità che la pallina pescata da Federica riporti il numero 8 è $\\frac{1}{8}\\left(\\frac{6}{8}+\\frac{1}{8}+\\frac{1}{8}\\right)=\\frac{1}{8}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33969, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $n$ un intero positivo tale che la rappresentazione decimale di $2^{n}$ inizia con la cifra 7 (ovvero la cifra non nulla più a sinistra è 7). Con che cifra inizia la rappresentazione decimale di $5^{n}$?\n\n(A) 1\n(B) 2\n(C) 5\n(D) 7\n(E) Dipende da $n$", "options": [], "answer": "A", "solution": "Solution:\n\nLa risposta è (A). Essa può essere trovata sfruttando l'uguaglianza $5^{n} = \\frac{10^{n}}{2^{n}}$. Sia $c$ il numero di cifre decimali di $2^{n}$; l'algoritmo di divisione in colonna comporta che la prima cifra del quoziente $\\frac{10^{c}}{2^{n}}$ sia il risultato della divisione intera di $10^{c}$ per $2^{n}$. Tale risultato è 1, poiché $2^{n} \\geq 7 \\cdot 10^{c-1}$ e dunque $2 \\cdot 2^{n} \\geq 14 \\cdot 10^{c-1} > 10^{c}$.\n\nIn alternativa, è possibile esprimere formalmente la soluzione senza far riferimento all'algoritmo di divisione in colonna. Sia $x$ la cifra iniziale di $5^{n}$; esistono interi $k, h$ tali che $7 \\cdot 10^{k} \\leq 2^{n} < 8 \\cdot 10^{k}$ e $x \\cdot 10^{h} \\leq 5^{n} < (x+1) \\cdot 10^{h}$. Moltiplicando queste disuguaglianze termine a termine e sfruttando il fatto che $2^{n} \\cdot 5^{n} = 10^{n}$ otteniamo\n$$\n7x \\cdot 10^{k+h} \\leq 10^{n} < 8(x+1) \\cdot 10^{k+h}\n$$\nda cui in particolare $10^{k+h} < 10^{n} < 10^{k+h+2}$. Chiaramente questo è possibile solo se $n = k+h+1$. Dalla disuguaglianza $7x \\cdot 10^{k+h} < 10^{n} = 10^{k+h+1}$ otteniamo allora $7x < 10$, che (essendo $x$ un intero positivo) è possibile solo per $x = 1$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33970, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIl ricco Creso compra 88 vasi identici. Il prezzo di ognuno di essi, espresso in dracme, è un numero intero (lo stesso per tutti gli 88 vasi). Sappiamo che Creso paga un totale di $a1211b$ dracme, dove $a, b$ sono cifre da determinare (e che possono essere distinte o meno). Quante dracme costa un singolo vaso?", "options": [], "answer": "1274", "solution": "Solution:\n\nLa risposta è 1274. Notiamo che il numero $a1211b$ dev'essere divisibile per 88, quindi dev'essere divisibile sia per 11 che per 8. Sappiamo che un numero è divisibile per 8 se e soltanto se lo sono le sue ultime 3 cifre, quindi $11b$ dev'essere divisibile per 8. Notiamo che $8 \\cdot 14 = 112$ è l'unico numero della forma $11b$ divisibile per 8, quindi $b = 2$ e $a12112$ è divisibile per 8 per ogni scelta di $a$. Il criterio di divisibilità per 11 ci dice che la differenza tra la somma delle cifre di posto pari e quella delle cifre di posto dispari dev'essere un multiplo di 11, ovvero che $(2+1+1)-(1+2+a) = 1-a$ dev'essere divisibile per 11. Dal momento che $a$ è una cifra, dunque compresa fra 0 e 9, questa condizione è verificata solo per $a = 1$. La soluzione è quindi $\\frac{112112}{88} = 1274$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33971, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABCD$ un quadrilatero convesso, $F$ un punto sul segmento $CD$, $E$ il punto di intersezione di $AC$ con $BF$. È noto che $AB = FC$, $AE = 14$, $BE = 10\\sqrt{2}$, $\\widehat{BAC} = \\widehat{BFD}$, $\\widehat{BEA} = 45^\\circ$. Quanto misura il segmento $EF$?", "options": [], "answer": "6", "solution": "Solution:\n\nLa risposta è $6$. Si prolunghi il segmento $BF$ dalla parte di $F$, e su tale prolungamento si consideri il punto $K$, tale che $FK = 14$. L'angolo $\\widehat{CFK}$ è uguale all'angolo $\\widehat{DFB}$, in quanto opposti al vertice per costruzione, per cui i triangoli $ABE$ e $FCK$ sono simili e, in particolare, congruenti, in quanto hanno due coppie di lati uguali ($AB = CF$ e $AE = FK = 14$) e l'angolo compreso uguale ($\\widehat{BAE} = \\widehat{DFB} = \\widehat{CFK}$). Essendo i due triangoli congruenti, abbiamo che $BE = CK = 10\\sqrt{2}$, perché lati che si corrispondono, e analogamente $\\widehat{AEB} = \\widehat{FKC} = 45^\\circ$ perché angoli corrispondenti. Abbiamo inoltre $\\widehat{KEC} = \\widehat{AEB} = 45^\\circ$ perché opposti al vertice, per cui il triangolo $ECK$ è isoscele con due angoli di $45^\\circ$, quindi in particolare è rettangolo in $C$. Possiamo quindi calcolare la lunghezza della sua ipotenusa: $EK = KC \\cdot \\sqrt{2} = 10\\sqrt{2} \\cdot \\sqrt{2} = 20$. Per differenza si ottiene allora $EF = EK - FK = 20 - 14 = 6$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33972, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\na. Dimostrare che esistono infinite terne $(x, y, z)$ di interi positivi tali che $x^{2}+y^{2}+z^{2}$ sia un quadrato perfetto.\n\nb. Dimostrare che esistono infinite terne $(x, y, z)$ di interi positivi tali che $x^{2}+y^{2}+z^{2}$ sia un quadrato perfetto e con la proprietà che il massimo comun divisore dei tre numeri $(x, y, z)$ sia 1.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\na. Osserviamo dapprima che $x=1, y=2, z=2$ è una soluzione, in quanto $1^{2}+2^{2}+2^{2}=3^{2}$. Ne segue allora che, per ogni intero positivo $n$, la terna $x=n, y=2 n, z=2 n$ soddisfa la richiesta del problema, in quanto\n$$\nn^{2}+(2 n)^{2}+(2 n)^{2}=9 n^{2}=(3 n)^{2}.\n$$\n\nb. Per ogni intero positivo $t$, la terna $1,2 t, 2 t^{2}$ soddisfa le richieste del problema: in effetti il massimo comun divisore di questi tre numeri è sempre uguale ad 1, e si ha\n$$\n1+(2 t)^{2}+\\left(2 t^{2}\\right)^{2}=1+4 t^{2}+4 t^{4}=\\left(1+2 t^{2}\\right)^{2}.\n$$\nUn possibile modo di trovare questa soluzione è il seguente: innanzitutto, per assicurarci che la condizione $\\operatorname{MCD}(x, y, z)=1$ sia verificata scegliamo $x=1$. Possiamo poi sperare che $x^{2}+y^{2}+z^{2}=1+y^{2}+z^{2}$ possa essere identificato con il quadrato di un certo binomio. Scrivendo $1+y^{2}+z^{2}=(a+b)^{2}=a^{2}+2 a b+b^{2}$, è naturale scegliere $a=1, 2 a b=y^{2}$ e $b=z$. Risolvendo questo sistema troviamo $z=b=\\frac{y^{2}}{2}$, e chiaramente affinché $z$ sia intero è necessario che $y$ sia pari, quindi scriviamo $y=2 t$ per un certo $t$ intero positivo: si trova allora la soluzione proposta, $x=1, y=2 t, z=\\frac{y^{2}}{2}=2 t^{2}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33973, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nData una circonferenza $\\omega$ di diametro $A B$ e $P$ un punto interno al segmento $A B$, sia $M$ il punto medio di $P B$. Siano $r, s$ due rette parallele passanti rispettivamente per $M, P$, non coincidenti con la retta $A B$ né ad essa ortogonali. Sia poi $H$ la proiezione ortogonale di $A$ su $s$ e sia $K$ il punto d'intersezione (distinto da $A$) tra $\\omega$ e la retta $A H$. Siano infine $X, Y$ le intersezioni di $r$ con $\\omega$, dove $X$ è dalla parte opposta di $H$ rispetto ad $A B$.\n\na. Dimostrare che il triangolo $H Y K$ è isoscele.\n\nb. Dimostrare che $B X H Y$ è un parallelogramma.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\na.\nEssendo $A B$ un diametro di $\\omega$ l'angolo insistente sull'arco corrispondente è retto e dunque $\\widehat{A K B} = 90^{\\circ} = \\widehat{A H P}$; si conclude che $B K$ è parallelo a $r$ e a $s$. Allora si può applicare il teorema di Talete a queste tre parallele e alle trasversali $A B, A K$: $r$ passa per il punto medio di $B P$ e quindi deve passare anche per il punto medio di $H K$. Notando che $r$ è perpendicolare al segmento $H K$ si conclude che deve esserne l'asse, da cui la tesi (in quanto $Y$ sta su $r$).\n\nb.\nRicordando che le rette $X Y, B K$ sono parallele, si nota che $\\widehat{K X Y} = \\widehat{X K B} = \\widehat{X Y B}$ e dunque i segmenti $B X, Y K$ sono congruenti (in quanto sui rispettivi archi insistono angoli congruenti). Ma allora $B X = Y K = Y H$; in maniera del tutto analoga si vede che anche $X$ giace sull'asse di $H K$ e che $B Y = X K$, da cui $X H = X K = B Y$. Dunque il quadrilatero $B X H Y$ ha le coppie di lati opposti rispettivamente congruenti ed è un parallelogramma.\n\n![](attached_image_1.png)", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33974, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn triangolo equilatero è diviso in 9 triangolini come in figura, e su ogni triangolino è inizialmente scritto il numero 0. Marco, per passare il tempo, fa il seguente gioco: ad ogni mossa sceglie 2 triangolini con un lato in comune e somma o sottrae 1 ad entrambi i numeri scritti su questi triangolini (si intende che l'operazione effettuata sui due triangolini è la stessa). Dopo qualche tempo si accorge che i numeri scritti sui 9 triangolini sono, in un qualche ordine, $n, n+1, \\ldots, n+8$, dove $n$ è un intero non negativo. Dimostrare che $n$ può essere soltanto 0 o 2.\n\n![](attached_image_1.png)\n\nNota. I casi $n=0$ e $n=2$ possono effettivamente verificarsi, ma non si chiede di dimostrare questa affermazione.", "options": [], "answer": "0 or 2", "solution": "Solution:\n\nCome in figura, numeriamo i triangolini da $T_{1}$ a $T_{9}$ e coloriamo di rosso i triangoli $T_{1}, T_{2}, T_{4}, T_{5}, T_{7}, T_{9}$, lasciando in bianco gli altri 3. Detto $m_{i}$ il numero scritto nel triangolo $T_{i}$ in un certo momento, dimostriamo che la somma sui triangolini bianchi è uguale a quella sui rossi, cioè si ha\n$$\nm_{1}+m_{2}+m_{4}+m_{5}+m_{7}+m_{9}=m_{3}+m_{6}+m_{8}.\n$$\n\n![](attached_image_2.png)\n\nSicuramente l'uguaglianza (1) vale all'inizio del gioco, prima che Marco faccia qualunque mossa, in quanto entrambi i membri di (1) sono pari a 0. Dimostriamo che, ad ogni mossa, l'equazione rimane vera. Comunque scelti 2 triangolini vicini, uno è bianco e l'altro è rosso; vengono modificati, pertanto, solo un $m_{i}$ a destra e solo un $m_{j}$ a sinistra nell'equazione (1). Notiamo, però, che entrambi vengono o incrementati o decrementati di 1, perciò se l'uguaglianza era verificata prima di eseguire la mossa lo sarà anche dopo averla applicata.\n\nSupponiamo ora che valga\n$$\n\\{m_{1}, \\ldots, m_{9}\\}=\\{n, \\ldots, n+8\\}.\n$$\nComunque vengano scelti 3 interi tra questi, la loro somma non può superare $(n+8)+(n+7)+(n+6)$, da cui\n$$\nm_{3}+m_{6}+m_{8} \\leq 3n+21\n$$\nsimilmente, scegliendo 6 interi nell'insieme $\\{n, \\ldots, n+8\\}$, la loro somma è almeno pari alla somma dei 6 più piccoli, quindi\n$$\nm_{1}+m_{2}+m_{4}+m_{5}+m_{7}+m_{9} \\geq 6n+15.\n$$\nCombinando le ultime due disuguaglianze con (1) otteniamo\n$$\n6n+15 \\leq m_{1}+m_{2}+m_{4}+m_{5}+m_{7}+m_{9}=m_{3}+m_{6}+m_{8} \\leq 3n+21,\n$$\nche implica $3n \\leq 6$, cioè $n \\leq 2$. Rimane da escludere che possa essere $n=1$. In tal caso $m_{1}+\\cdots+m_{9}=1+\\cdots+9=45$, che è un numero dispari. Tuttavia, ogni mossa di Marco cambia la somma $m_{1}+\\cdots+m_{9}$ di +2 o -2 (a seconda che scelga di sommare o sottrarre dai due triangolini vicini); dal momento che tale somma vale 0 all'inizio del gioco, essa rimane sempre pari (ed in particolare diversa da 45), quindi il caso $n=1$ è impossibile.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33975, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn triangolo equilatero è diviso in 9 triangolini come in figura, e su ogni triangolino è inizialmente scritto il numero 0. Marco, per passare il tempo, fa il seguente gioco: ad ogni mossa sceglie 2 triangolini con un lato in comune e somma o sottrae 1 ad entrambi i numeri scritti su questi triangolini (si intende che l'operazione effettuata sui due triangolini è la stessa). Dopo qualche tempo si accorge che i numeri scritti sui 9 triangolini sono, in un qualche ordine, $n, n+1, \\ldots, n+8$, dove $n$ è un intero non negativo. Dimostrare che $n$ può essere soltanto 0 o 2.\n\n![](attached_image_1.png)\n\nNota. I casi $n=0$ e $n=2$ possono effettivamente verificarsi, ma non si chiede di dimostrare questa affermazione.", "options": [], "answer": "n = 0 or 2", "solution": "Solution:\n\nCome in figura, numeriamo i triangolini da $T_{1}$ a $T_{9}$ e coloriamo di rosso i triangoli $T_{1}, T_{2}, T_{4}, T_{5}, T_{7}, T_{9}$, lasciando in bianco gli altri 3. Detto $m_{i}$ il numero scritto nel triangolo $T_{i}$ in un certo momento, dimostriamo che la somma sui triangolini bianchi è uguale a quella sui rossi, cioè si ha\n$$\nm_{1}+m_{2}+m_{4}+m_{5}+m_{7}+m_{9}=m_{3}+m_{6}+m_{8}.\n$$\n![](attached_image_2.png)\nSicuramente l'uguaglianza (1) vale all'inizio del gioco, prima che Marco faccia qualunque mossa, in quanto entrambi i membri di (1) sono pari a 0. Dimostriamo che, ad ogni mossa, l'equazione rimane vera. Comunque scelti 2 triangolini vicini, uno è bianco e l'altro è rosso; vengono modificati, pertanto, solo un $m_{i}$ a destra e solo un $m_{j}$ a sinistra nell'equazione (1). Notiamo, però, che entrambi vengono o incrementati o decrementati di 1, perciò se l'uguaglianza era verificata prima di eseguire la mossa lo sarà anche dopo averla applicata.\n\nSupponiamo ora che valga\n$\\left\\{m_{1}, \\ldots, m_{9}\\right\\}=\\{n, \\ldots, n+8\\}$. Comunque vengano scelti 3 interi tra questi, la loro somma non può superare $(n+8)+(n+7)+(n+6)$, da cui\n$$\nm_{3}+m_{6}+m_{8} \\leq 3 n+21\n$$\nsimilmente, scegliendo 6 interi nell'insieme $\\{n, \\ldots, n+8\\}$, la loro somma è almeno pari alla somma dei 6 più piccoli, quindi\n$$\nm_{1}+m_{2}+m_{4}+m_{5}+m_{7}+m_{9} \\geq 6 n+15.\n$$\nCombinando le ultime due disuguaglianze con (1) otteniamo\n$$\n6 n+15 \\leq m_{1}+m_{2}+m_{4}+m_{5}+m_{7}+m_{9}=m_{3}+m_{6}+m_{8} \\leq 3 n+21,\n$$\nche implica $3 n \\leq 6$, cioè $n \\leq 2$. Rimane da escludere che possa essere $n=1$. In tal caso $m_{1}+\\cdots+m_{9}=1+\\cdots+9=45$, che è un numero dispari. Tuttavia, ogni mossa di Marco cambia la somma $m_{1}+\\cdots+m_{9}$ di +2 o -2 (a seconda che scelga di sommare o sottrarre dai due triangolini vicini); dal momento che tale somma vale 0 all'inizio del gioco, essa rimane sempre pari (ed in particolare diversa da 45), quindi il caso $n=1$ è impossibile.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33976, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $n \\geq 2$ un numero intero. Consideriamo le soluzioni $(a, b, c)$ del sistema di equazioni\n$$\n\\left\\{\\begin{array}{l}\nn = a + b - c \\\\\nn = a^{2} + b^{2} - c^{2}\n\\end{array}\\right.\n$$\ndove $a, b, c$ sono numeri interi. Dimostrare che c'è almeno una soluzione e che ci sono un numero finito di soluzioni.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nDalla prima equazione ricaviamo $c = a + b - n$; sostituendo nella seconda equazione otteniamo\n$$\nn = a^{2} + b^{2} - (a + b - n)^{2} = -2 a b + 2 a n + 2 b n - n^{2}.\n$$\nRiarrangiando, si ottiene\n$$\n(a - n)(b - n) = a b - n a - n b + n^{2} = \\frac{n^{2} - n}{2} = \\frac{n(n-1)}{2}\n$$\nIl membro di destra è sempre un intero, perché uno tra $n$ e $n-1$ è sempre pari. Le soluzioni dell'equazione corrispondono ai modi di fattorizzare $\\frac{n(n-1)}{2} = x y$ come prodotto di due interi $x$ e $y$. Dato che $n \\neq 0,1$ per ipotesi, $\\frac{n(n-1)}{2}$ è un intero positivo, e quindi il numero di queste fattorizzazioni è finito; ne segue che il sistema avrà un numero finito di soluzioni, $(a, b, c) = (x + n, y + n, x + y + n)$.\nPer trovare almeno una soluzione, per ogni $n$ possiamo scegliere $x = 1, y = \\frac{n(n-1)}{2}$, da cui ricaviamo la soluzione\n$$\n(a, b, c) = \\left(n + 1, \\frac{n(n+1)}{2}, \\frac{n(n+1)}{2} + 1\\right).\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33977, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAlberto, Barbara e Ciro si ritrovano un giorno per preparare dei ravioli per una cena di beneficenza a favore delle olimpiadi di matematica. Come prima cosa decidono di ripartire equamente le ore di lavoro fra la mattina e il pomeriggio, e ovviamente lavorano contemporaneamente e per la stessa quantità di tempo. Alberto è molto affidabile: prepara 90 ravioli all'ora per tutta la giornata di lavoro. Barbara fa 110 ravioli all'ora durante la mattina, ma al pomeriggio è più distratta e prepara 70 ravioli all'ora. Ciro fa $2 / 3$ dei suoi ravioli a un ritmo di 140 ravioli l'ora e l'ultimo terzo a soli 50 ravioli l'ora. Chi ha fatto più ravioli a fine giornata?\n\n(A) Alberto\n(B) Barbara\n(C) Ciro\n(D) Alberto e Barbara, in ugual numero.\n(E) Alberto e Ciro, in ugual numero.", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). Sia $h$ il numero di ore di lavoro durante la mattinata (e dunque anche durante il pomeriggio). Sappiamo che Alberto prepara $2 h \\cdot 90 = 180 h$ ravioli, mentre Barbara ne prepara $h \\cdot 110 + h \\cdot 70 = 180 h$. Sia ora $t_1$ il tempo che Ciro impiega a preparare i primi $2 / 3$ dei suoi ravioli, e $t_2$ il tempo che spende a preparare l'ultimo terzo. Se chiamiamo $r$ il numero totale di ravioli preparati da Ciro abbiamo allora\n$$\n\\left\\{\n\\begin{array}{l}\nt_1 + t_2 = 2 h \\\\\nt_1 \\cdot 140 = \\frac{2 r}{3} \\\\\nt_2 \\cdot 50 = \\frac{r}{3}\n\\end{array}\n\\right.\n$$\nPossiamo quindi scrivere $t_1 = \\frac{2 r}{3 \\cdot 140}$, $t_2 = \\frac{r}{3 \\cdot 50}$, e sostituendo nella prima equazione troviamo $r \\left( \\frac{1}{210} + \\frac{1}{150} \\right) = 2 h$, da cui $r = 175 h$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33978, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nMaga Magò ha un mazzo di 52 carte, disposte in pila, con il dorso in alto. Magò separa il mazzetto costituito dalle sette carte in cima alla pila, lo capovolge, e lo mette sotto alla pila. Ora tutte le carte sono nuovamente in pila, ma non tutte hanno ancora il dorso in alto: le sette in fondo sono girate al contrario. Magò ripete l'operazione precedente finché non si verifica di nuovo che tutte le carte hanno il dorso in alto. In totale, quanti mazzetti di sette carte ha girato Magò?", "options": [], "answer": "112", "solution": "Solution:\n\nColoriamo le carte del mazzo di blu e di rosso, a gruppetti alternati di tre e quattro rispettivamente. Le tre in cima sono blu, le quattro successive rosse, le tre ancora dopo blu, e via dicendo. Osserviamo che, quando la maga Magò gira un mazzetto, questa colorazione a gruppetti alternati si mantiene. Se concentriamo la nostra attenzione sulle sole carte blu, vediamo che ci sono otto gruppetti di tre carte, ed a ogni mossa il gruppetto sommitale viene posto in fondo alla sequenza capovolto. Servono quindi otto mosse per capovolgere tutti i gruppetti, e altre otto per rimetterli nel verso iniziale. Di conseguenza, le carte blu tornano ad essere tutte rivolte verso il basso ogni 16 mosse. Analogamente accade per le carte rosse, che formano sette gruppetti di quattro carte, quindi tornano nello stato iniziale ogni 14 mosse. Tutte le carte saranno allora nuovamente rivolte in basso per la prima volta dopo $112=\\operatorname{mcm}(16,14)$ mosse.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33979, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSiano $a < b < c < d < e$ cinque numeri primi in progressione aritmetica di ragione 6 (ovvero $b = a + 6$, $c = b + 6$, $d = c + 6$ e $e = d + 6$). Quali delle seguenti affermazioni è falsa?\n\n(A) $a + b + c + d + e$ è multiplo di 5.\n(B) $abcde > 10^{4}$.\n(C) $a + b + c + d + e$ è multiplo di 29.\n(D) $abcde$ è multiplo di 29.\n(E) L'unico quadrato perfetto che divide $abcde$ è 1.", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è $\\mathbf{(C)}$. Osserviamo che l'unica progressione aritmetica a verificare la condizione è 5, 11, 17, 23, 29. Infatti i cinque numeri $a, b, c, d, e$, essendo in progressione aritmetica di ragione 6, lasciano cinque resti diversi nella divisione per 5: in particolare uno di essi è multiplo di 5, e quindi uguale a 5 dal momento che è un numero primo. Essendo $5 < 6$ si deve avere proprio $a = 5$, da cui $b = 11$, $c = 17$, $d = 23$, $e = 29$.\n\nSi verifica allora facilmente che le affermazioni (A), (B), (D), (E) sono vere, mentre (C) è falsa. Osserviamo peraltro che le opzioni (A), (B), (E) si possono escludere anche senza determinare esplicitamente i numeri $a, b, c, d, e$. Infatti\n$$\na + b + c + d + e = a + (a + 6) + (a + 12) + (a + 18) + (a + 24) = 5a + 60,\n$$\nche è multiplo di 5, e dunque l'affermazione (A) è vera.\n\nEssendo poi $a, b, c, d, e$ tutti numeri primi non si può avere $a = 2$ o $a = 3$ (in tal caso si avrebbe $b = 8$ o $b = 9$, che non sono primi). Si ha dunque $a \\geq 5$, da cui $b \\geq 11 > 10 \\Rightarrow abcde \\geq bcde \\geq b^{4} > 10^{4}$, quindi (B) è vera.\n\nInoltre, siccome $a, b, c, d, e$ sono primi distinti, nessun fattore primo appare con esponente 2 o più nella fattorizzazione di $abcde$: ne segue che l'unico quadrato perfetto che divide $abcde$ è 1, e quindi (E) è vera.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33980, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\n$ABCD$ è un tetraedro con la seguente proprietà: detti $A'$, $B'$, $C'$, $D'$, rispettivamente, gli incentri delle facce $BCD$, $ACD$, $ABD$ ed $ABC$, si ha che le rette $AA'$, $BB'$, $CC'$ e $DD'$ hanno un punto in comune. Dimostrare che il prodotto delle lunghezze di due spigoli opposti del tetraedro è costante, ossia che $AB \\cdot CD = AC \\cdot BD = AD \\cdot BC$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nSia $P$ il punto d'intersezione delle rette $AA'$, $BB'$, $CC'$, $DD'$, e si consideri il piano $\\Pi$ passante per $A$, $P$, $B$. Poiché $\\Pi$ contiene le rette $AP$ e $BP$, esso contiene i punti $A'$, $B'$, che si trovano su tali rette; dunque, detta $AK$ la bisettrice dell'angolo in $A$ nel triangolo $ADC$ e detta $BL$ la bisettrice dell'angolo in $B$ nel triangolo $BCD$, abbiamo che anche i punti $K$ ed $L$ appartengono a $\\Pi$, dato che le rette $AA'$ e $BB'$ (che contengono tali punti) lo fanno. D'altra parte, la retta $CD$ non è contenuta nel piano $\\Pi$ (o il tetraedro sarebbe degenere); essa contiene $K$ ed $L$ e ha al più un punto d'intersezione con il piano, dunque $K$ ed $L$ coincidono. Da questo segue ovviamente che $DK : KC = DL : LC$; ma, per il teorema della bisettrice, $DK : KC = AD : AC$ e $DL : LC = BD : BC$, da cui $AD : AC = BD : BC$, ovvero $AD \\cdot BC = AC \\cdot BD$. Il medesimo ragionamento applicato al piano per $B$, $P$, $C$ comporta $AB \\cdot CD = AC \\cdot BD$, da cui la tesi.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33981, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIl quadrilatero $ABCD$ ha le diagonali perpendicolari. Si sa inoltre che $AB=100$, $BC=120$, $CD=75$. Determinare la lunghezza di $AD$.\n\n(A) 30\n(B) $24 \\sqrt{2}$\n(C) $20 \\sqrt{3}$\n(D) 35\n(E) $\\frac{125}{2}$", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è $(\\mathbf{D})$. Siano, come in figura, $K$ il punto d'incontro delle diagonali, $x_{1}, x_{2}$ le lunghezze dei segmenti $AK, KC$ e $y_{1}, y_{2}$ quelle dei segmenti $BK, KD$ rispettivamente. Dal momento che tutti gli angoli in $K$ sono retti, per il teorema di Pitagora si ha\n$$\n\\left\\{\n\\begin{array}{l}\nx_{1}^{2}+y_{1}^{2}=AB^{2}=100^{2} \\\\\ny_{1}^{2}+x_{2}^{2}=BC^{2}=120^{2} \\\\\nx_{2}^{2}+y_{2}^{2}=CD^{2}=75^{2} \\\\\ny_{2}^{2}+x_{1}^{2}=DA^{2}\n\\end{array}\n\\right.\n$$\n\nSommando la prima e terza equazione e sottraendo la seconda si ottiene allora\n$$DA^{2}=y_{2}^{2}+x_{1}^{2}=(x_{1}^{2}+y_{1}^{2})+(x_{2}^{2}+y_{2}^{2})-(y_{1}^{2}+x_{2}^{2})=100^{2}+75^{2}-120^{2}.$$ \n\n![](attached_image_1.png)\n\nUn semplice calcolo fornisce adesso la risposta: $DA^{2}=100^{2}+75^{2}-120^{2}=5^{2} \\cdot (20^{2}+15^{2}-24^{2})=5^{2} \\cdot (400+225-576)=5^{2} \\cdot 49=5^{2} \\cdot 7^{2}=35^{2}$. Si osservi infine che si ottiene la stessa risposta anche se il quadrilatero $ABCD$ non è convesso: in tal caso, il punto $D$ in figura viene sostituito dal punto $D'$, suo simmetrico rispetto a $K$, e si può applicare il medesimo ragionamento.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33982, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $x_{1}, x_{2}, x_{3}, \\ldots$ una successione di interi positivi tale che, per ogni $m, n$ interi positivi, valga $x_{m n} \\neq x_{m(n+1)}$. Dimostrare che esiste un intero positivo $i$ tale che $x_{i} \\geq 2017$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nDiciamo che due numeri $i$ e $j$ sono connessi se possono essere scritti uno nella forma $m n$ e l'altro nella forma $m(n+1)$ per opportuni $m$ e $n$. Il testo dell'esercizio ci dice che $x_{i}$ è diverso da $x_{j}$ ogniqualvolta $i$ e $j$ sono connessi. Vogliamo dimostrare che vi sono almeno 2017 numeri interi positivi $i_{1} \\ldots i_{2017}$ tali che i 2017 termini $x_{i_{1}}, \\ldots, x_{i_{2017}}$ della successione sono tutti diversi fra loro: questo implica l'asserto per il principio dei cassetti. Ci basta quindi dimostrare che esistono 2017 interi positivi $i_{1} \\ldots i_{2017}$ a due a due connessi fra di loro.\nDimostriamo per induzione su $n$ che per ogni $n$ esistono $n$ interi positivi $i_{1} \\ldots i_{n}$ a due a due connessi fra loro. Nel caso $n=1$, la base dell'induzione, basta fissare $i_{1}=1$ e non c'è niente da dimostrare.\nOsserviamo che $i$ e $j$, con $i2$, esiste un intero $m \\geq n$ tale che $d(m)$ sia divisibile per 3.\n\nProcediamo per assurdo: assumiamo che $d(m)$ non sia multiplo di 3 per ogni $m \\geq n$. Allora, per ogni $m \\geq n$, il resto di $d(m)$ nella divisione per 3 deve essere uguale al resto di $d(m+1)$, altrimenti $d\\left(m^{2}+4 m\\right)=d(m)+d(m+1)$ sarebbe multiplo di 3. Ne segue che $d(m)$ ha sempre lo stesso resto per ogni $m \\geq n$. Questo, tuttavia, contraddice il fatto che $d\\left(n^{2}+4 n\\right)=d(n)+d(n+1)=2 d(n)$ ha resto 2 se $d(n)$ ha resto 1 e viceversa.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33985, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAbelarda, Brunilda e Callisto, tre vecchi conoscenti, vogliono comprare una casa a testa tra le 10 casette in fila sulla via principale della città. Siccome non si sopportano, vogliono assolutamente evitare di essere vicini di casa: desiderano perciò che le case che acquistano siano due a due non adiacenti. In quanti modi possono comprare casa in modo da soddisfare questa condizione?\n(A) 56\n(B) 120\n(C) 336\n(D) 480\n(E) 504", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è $\\mathbf{( C )}$. Consideriamo dapprima un problema leggermente diverso: lasciamo indeterminato il numero delle case, per ora, e trascuriamo l'ipotesi che le case non possano essere adiacenti. In questo caso, detto $n$ il numero di case sulla via, avremmo $\\binom{n}{3}$ modi di scegliere quali case sono abitate dai tre conoscenti e $3!$ modi di assegnare tali case ai tre.\n\nA questo punto, per garantirci che le case non siano adiacenti, basta inserire una casa dopo la prima scelta e un'altra dopo la seconda scelta. Siccome sappiamo che le case sulla via in tutto sono 10, ciò significa che le $n$ case considerate prima sono in realtà 8 case. Dunque il numero cercato è\n$$\n\\binom{8}{3} \\cdot 3! = \\frac{6 \\cdot 7 \\cdot 8}{3!} \\cdot 3! = 336\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33986, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn trapezio rettangolo con base maggiore $AB$ e base minore $CD$ è circoscritto ad una circonferenza di raggio $10$. Si sa che il lato obliquo $BC$ misura $24$. Qual è la distanza tra i punti medi di $BC$ e $AD$?\n\n(A) 21 \n(B) $\\frac{13}{2} \\sqrt{11}$ \n(C) $\\frac{33}{5} \\sqrt{11}$ \n(D) 22 \n(E) 23", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). Per il Teorema di Talete la distanza tra i punti medi dei lati obliqui è data dalla semisomma delle basi. Poiché il trapezio è circoscritto ad una circonferenza, la somma delle basi è pari alla somma dei lati obliqui. Poiché il trapezio è rettangolo, il lato obliquo più corto è pari al diametro del cerchio inscritto, dunque la risposta è data da $\\frac{20+24}{2}=22$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33987, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLuca scrive su una lavagna tutte le possibili sequenze costituite da 2017 interi positivi distinti la cui somma è $2016 \\cdot 2017 \\cdot 2018$. Fatto ciò, sostituisce ognuna di tali sequenze con il massimo comun divisore dei suoi elementi. Quando questa lunga operazione è terminata, quanto vale il massimo dei numeri scritti alla lavagna?\n\n(A) 2\n(B) $2 \\cdot 2016$\n(C) $2 \\cdot 2017$\n(D) $2 \\cdot 2018$\n(E) $2016 \\cdot 2018$", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è (B). Consideriamo una sequenza $b_{1}, b_{2}, \\ldots, b_{2017}$ di numeri interi positivi tutti distinti la cui somma sia $2016 \\cdot 2017 \\cdot 2018$. Sia $d$ il massimo comun divisore degli elementi di questa sequenza. Per definizione, i numeri $a_{1}:=b_{1} / d, a_{2}:=b_{2} / d, \\ldots, a_{2017}:=b_{2017} / d$ sono anch'essi interi positivi tutti distinti, e la loro somma è dunque almeno pari alla somma $1+2+\\cdots+2017$. Si ha allora\n$$\n2016 \\cdot 2017 \\cdot 2018 = b_{1} + \\cdots + b_{2017} = d \\cdot (a_{1} + a_{2} + \\cdots + a_{2017}) \\geq d \\cdot (1+2+\\cdots+2017) = d \\cdot \\frac{2017 \\cdot 2018}{2},\n$$\nda cui $d \\leq 2 \\cdot 2016$. D'altro canto, detto $D = 2 \\cdot 2016$, la sequenza $D, 2D, 3D, \\cdots, 2017D$ è una delle sequenze che vengono scritte sulla lavagna, e chiaramente il massimo comun divisore dei suoi elementi è proprio $D$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33988, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nQuante sono le coppie di numeri reali $(x, y)$ che soddisfano entrambe le equazioni $x + y^{2} = y^{3}$ e $y + x^{2} = x^{3}$?\n\n(A) 1\n(B) 3\n(C) 5\n(D) 9\n(E) Infinite", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è (B). Sottraendo le equazioni membro a membro otteniamo\n$$\n(y - x)(-1 + x + y) = (y - x)\\left(y^{2} + x y + x^{2}\\right),\n$$\nda cui vediamo che deve valere almeno una delle due uguaglianze $x = y$ e $x^{2} + y^{2} + x y - x - y + 1 = 0$. Se $x = y$, sostituendo nelle equazioni date nel testo otteniamo $x + x^{2} = x^{3}$, da cui si trovano facilmente le tre soluzioni $(x, y) = (0, 0), \\left(\\frac{1 + \\sqrt{5}}{2}, \\frac{1 + \\sqrt{5}}{2}\\right), \\left(\\frac{1 - \\sqrt{5}}{2}, \\frac{1 - \\sqrt{5}}{2}\\right)$. Se invece $x \\neq y$ si deve necessariamente avere $x^{2} + y^{2} + x y - x - y + 1 = 0$. Quest'ultima equazione si può riscrivere come $\\frac{1}{2}\\left((x + y)^{2} + (x - 1)^{2} + (y - 1)^{2}\\right) = 0$, che chiaramente non ha soluzioni (in quanto almeno uno dei tre numeri $x + y, x - 1, y - 1$ è diverso da zero). Ci sono dunque esattamente tre soluzioni, tutte con $x = y$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33989, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUna bottiglia a forma di cono poggia sulla sua base. Viene riempita d'acqua finché il livello del liquido non raggiunge $8$ centimetri misurati in verticale sotto il vertice del cono. Se ora si capovolge la bottiglia, senza cambiare la quantità di acqua al suo interno, lo spazio che rimane vuoto nella parte superiore del cono rovesciato è alto $2$ centimetri.\nQuanto è alta la bottiglia?", "options": [], "answer": "1 + sqrt(85) centimeters", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33990, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUna gara di matematica consta di 90 domande a risposta multipla. Camilla ha risposto a tutte le domande: quale dei seguenti non può essere il punteggio totalizzato da Camilla, sapendo che una risposta corretta vale 5 punti e una risposta sbagliata vale -1 punto?\n\n(A) -78\n(B) 116\n(C) 204\n(D) 318\n(E) 402", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è (B). Sia $r$ il numero di risposte corrette date da Camilla; per differenza, il numero di risposte sbagliate è $90 - r$, e il punteggio totale è $5r + (-1)(90 - r) = 6r - 90 = 6(r - 15)$. Ne segue che il punteggio di Camilla è multiplo di 6, e quindi non può essere uguale a $116 = 2^{2} \\cdot 29$, in quanto questo numero non è divisibile per 3. Tutti gli altri punteggi sono possibili: Camilla può totalizzare $-78, 204, 318$ e $402$ punti dando rispettivamente 2, 49, 68 e 82 risposte corrette; in effetti, il punteggio di Camilla può essere qualsiasi numero multiplo di 6 compreso fra $6 \\cdot (0 - 15) = -90$ e $6 \\cdot (90 - 15) = 450$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33991, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nQuante sono le quaterne di interi positivi $(a, b, x, y)$ tali che $x+y=a \\cdot b$ e $a+b=x \\cdot y$ ?\n\n(A) 1\n(B) 5\n(C) 9\n(D) 17\n(E) Infinite", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è (C). Se $a, b, x, y$ sono tutti maggiori o uguali a $2$, allora $a b \\geq a+b = x y \\geq x+y = a b$, per cui ogni disuguaglianza deve essere un'uguaglianza e l'unica quaterna possibile è $(2,2,2,2)$.\n\nSe invece uno dei quattro numeri è uguale ad $1$, diciamo per esempio $b=1$, allora sostituendo l'uguaglianza $a = x + y$ in $a + 1 = x y$ si ottiene $(x-1)(y-1) = 2$, da cui si ha $x=2, y=3$ o viceversa. Una soluzione è dunque $(a, b, x, y) = (1,5,2,3)$, e le altre sono ottenute da questa scambiando i ruoli di $a, b$, i ruoli di $x, y$, o i ruoli della coppia $(a, b)$ e della coppia $(x, y)$: si ottengono dunque altre otto soluzioni, ovvero $(1,5,2,3), (1,5,3,2), (5,1,2,3), (5,1,3,2), (2,3,1,5), (2,3,5,1), (3,2,1,5), (3,2,5,1)$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33992, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSono date tre circonferenze $\\Gamma, \\Gamma_{1}, \\Gamma_{2}$ di raggi rispettivamente 6, 3, 2. $\\Gamma_{1}$ e $\\Gamma_{2}$ sono tangenti esternamente in $A$, mentre $\\Gamma$ tange entrambe le altre circonferenze internamente, rispettivamente in $A_{1}$ ed $A_{2}$. Determinare il raggio della circonferenza circoscritta ad $A A_{1} A_{2}$.\n\n(A) $2 \\sqrt{6}$\n(B) 5\n(C) $\\sqrt{2}+\\sqrt{3}+\\sqrt{6}$\n(D) $4+\\sqrt{3}$\n(E) 6", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è $\\mathbf{( E )}$. Siano $O, O_{1}, O_{2}$ i centri di $\\Gamma, \\Gamma_{1}, \\Gamma_{2}$ rispettivamente. Dal momento che $\\Gamma_{1}, \\Gamma_{2}$ sono tangenti esternamente, la distanza $O_{1} O_{2}$ è uguale alla somma dei raggi di $\\Gamma_{1}, \\Gamma_{2}$, ovvero $O_{1} O_{2}=5$. Similmente, la distanza $O O_{1}$ è uguale alla differenza dei raggi di $\\Gamma$ e $\\Gamma_{1}$ (ed è quindi uguale a $6-3=3$ ), e la distanza $O O_{2}$ è uguale a $6-2=4$. Dal momento che $O O_{2}^{2}+O O_{1}^{2}=3^{2}+4^{2}=5^{2}=O_{1} O_{2}^{2}$, il triangolo $O O_{1} O_{2}$ è rettangolo in $O$, e il triangolo $A_{1} O A_{2}$ risulta rettangolo isoscele.\n\nSia ora $O^{\\prime}$ il centro della circonferenza circoscritta ad $A_{1} A A_{2}$. Il triangolo $A_{1} O^{\\prime} A_{2}$ è certamente isoscele su base $A_{1} A_{2}$; vogliamo dimostrare che è anche rettangolo in $O^{\\prime}$, ovvero che $O^{\\prime}$ è il simmetrico di $O$ rispetto ad $A_{1} A_{2}$, ergo che $O^{\\prime} A_{1}=O^{\\prime} A_{2}=6$.\n\nAbbiamo $\\widehat{A_{1} O^{\\prime} A_{2}}=2\\left(180^{\\circ}-\\widehat{A_{1} A A_{2}}\\right)$ (angolo al centro che insiste sullo stesso arco di $\\widehat{A_{1} A A_{2}}$, ma dalla parte opposta); d'altra parte, un veloce calcolo di angoli comporta $180^{\\circ}-\\widehat{A_{1} A A_{2}}=\\widehat{A_{1} A O_{1}}+\\widehat{A_{2} A O_{2}}=\\widehat{A A_{1} O_{1}}+\\widehat{A A_{2} O_{2}}=\\widehat{A O_{1} O}/2+\\widehat{A O_{2} O}/2=45^{\\circ}$, il che implica precisamente l'ortogonalità voluta.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33993, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nPer ogni intero positivo $n$ chiamiamo $f(n)$ il prodotto di tutti i numeri naturali dispari minori o uguali a $2n+1$ (per esempio $f(4)=1 \\cdot 3 \\cdot 5 \\cdot 7 \\cdot 9$). Poniamo poi $g(n)=\\frac{n}{f(n)}$. Cosa si può dire della somma $S=g(1)+g(2)+\\cdots+g(30)$?\n\n(A) $S \\leq 0.35$\n(B) $0.350.51$", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è $(\\mathbf{C})$. Sia $S(m)=g(1)+g(2)+\\cdots+g(m)$. Notiamo che\n$$\n\\begin{aligned}\ng(m)=\\frac{m}{1 \\cdot 3 \\cdots (2m+1)} &=\\frac{1}{2} \\frac{2m}{1 \\cdot 3 \\cdots (2m+1)}=\\frac{1}{2} \\frac{2m+1-1}{1 \\cdot 3 \\cdots (2m+1)} \\\\\n&=\\frac{1}{2}\\left(\\frac{1}{1 \\cdot 3 \\cdots (2m-1)}-\\frac{1}{1 \\cdot 3 \\cdots (2m+1)}\\right)\n\\end{aligned}\n$$\nChiamando con $h(m)=\\frac{1}{2} \\frac{1}{1 \\cdot 3 \\cdots (2m+1)}$ abbiamo appena ottenuto che $g(m)=h(m-1)-h(m)$. Dunque $S(m)=g(1)+g(2)+g(3)+\\cdots+g(m-1)+g(m)=h(0)-h(1)+h(1)-h(2)+h(2)-h(3)+\\cdots+h(m-2)-h(m-1)+h(m-1)-h(m)$, cioè $S(m)=h(0)-h(m)$.\n\nNel caso particolare,\n$$\nS(30)=\\frac{1}{2}\\left(1-\\frac{1}{1 \\cdot 3 \\cdots (2 \\cdot 30+1)}\\right).\n$$\nTornando al caso generale, $S(30)=S<\\frac{1}{2}$ poiché $\\frac{1}{1 \\cdot 3 \\cdots (2 \\cdot 30+1)}>0$; inoltre $\\frac{1}{2} \\frac{1}{1 \\cdot 3 \\cdots (2 \\cdot 30+1)}<\\frac{1}{2 \\cdot 61}<$ 0.01 e dunque $S>0.49$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33994, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAngela ha a disposizione i polinomi $x-1$, $(x-1)(x-2)$, $(x-1)(x-2)(x-3)$, $\\ldots$ fino a $(x-1)(x-2) \\cdots (x-2017)(x-2018)$, e li divide in due gruppi. Detto $p(x)$ il prodotto dei polinomi del primo gruppo e $q(x)$ quello dei polinomi del secondo gruppo, Angela si accorge che il polinomio $p(x)$ divide il polinomio $q(x)$, e che il grado del quoziente $\\frac{q(x)}{p(x)}$ è il più piccolo possibile: quanto vale tale grado?", "options": [], "answer": "1009", "solution": "Solution:\n\nLa risposta è 1009. Osserviamo innanzitutto che Angela può assegnare i polinomi $(x-1)(x-2)$, $(x-1)(x-2)(x-3)(x-4)$, $\\cdots$, $(x-1)(x-2)\\cdots(x-2017)(x-2018)$ (ovvero quelli di grado pari) al gruppo corrispondente a $p(x)$, e gli altri al gruppo corrispondente a $q(x)$. Con questa scelta, il rapporto $p(x)/q(x)$ è uguale a\n$$\n\\frac{(x-1)(x-2) \\cdot (x-1)(x-2)(x-3)(x-4) \\cdots}{(x-1) \\cdot (x-1)(x-2)(x-3) \\cdots} = (x-2)(x-4) \\cdots (x-2018),\n$$\nche ha grado 1009. Per mostrare che non si riesce ad ottenere un grado più piccolo, osserviamo che ci sono esattamente 2017 fattori $(x-2)$, esattamente 2015 fattori $(x-4)$, ed in generale vi è un numero dispari di fattori $(x-k)$ per ogni $k$ pari. Affinché il polinomio $q(x)$ divida il polinomio $p(x)$, il numero di fattori $x-k$ che compaiono in $p(x)$ deve essere maggiore o uguale del numero di fattori $x-k$ che compaiono in $q(x)$: se il numero totale di fattori $x-k$ è dispari, in $p(x)$ ne deve comparire almeno uno in più che in $q(x)$. Questo ragionamento mostra che nel rapporto $p(x)/q(x)$ deve comparire almeno un fattore $(x-2)$, almeno un fattore $(x-4)$, ..., almeno un fattore $(x-2018)$, e che quindi questo rapporto non può avere grado minore di 1009.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33995, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nConsideriamo un orologio digitale e i numeri formati dalle quattro cifre (ore e minuti): le 10:45 indicheranno il numero 1045. Quale è il più piccolo intero positivo che non divide alcuno dei numeri che compaiono fra le 11:00 e le 12:59?", "options": [], "answer": "84", "solution": "Solution:\n\ni numeri fra $1100$ e $1159$, ogni numero $n$ minore o uguale a $60$ divide almeno uno dei numeri considerati, e quindi non va bene. Analogamente dato $60 \\leq n \\leq 80$, $n$ divide esattamente due numeri fra $1100$ e $1259$ ma al più uno di essi può cadere fra i numeri che non compaiono sull'orologio (ovvero i numeri da $1160$ a $119$) perchè questi sono $40$: quindi $n$ divide sicuramente uno dei numeri che compaiono sull'orologio. Abbiamo così scartato tutti gli $n \\leq 80$. D'altra parte un calcolo diretto ci dà che $81 \\times 15=1215$, $82 \\times 15=1230$, $83 \\times 15=1245$ e quindi questi $n$ non sono accettabili, mentre si ha che $84 \\times 13=1092<1100$, $84 \\times 14=1176>1159$ e $84 \\times 15=1260>1259$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33996, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\na. Trovare tutti gli interi positivi $n$ di due cifre che godano della seguente proprietà: entrambi gli interi che si ottengono cancellando una delle due cifre della rappresentazione decimale di $n$ sono divisori (interi positivi) di $n$.\n\nb. Sia $n>10$ un intero che si scrive con $k$ cifre decimali, tutte diverse da zero. Supponiamo che ciascuno degli interi ottenuti cancellando una delle $k$ cifre della rappresentazione decimale di $n$ sia un divisore (intero positivo) di $n$. Mostrare che necessariamente $k=2$.\n\nEsempio. Per $n=123$ si ha $k=3$, e gli interi ottenuti cancellando cifre di $n$ sono $23,13,12$.", "options": [], "answer": "a) 11, 22, 33, 44, 55, 66, 77, 88, 99, 12, 24, 36, 48, 15. b) The number must have exactly two digits.", "solution": "Solution:\n\na. Scriviamo $n=10 a+b$ con $a$ e $b$ cifre decimali, ossia $1 \\leq a \\leq 9$ e $1 \\leq b \\leq 9$ : per ipotesi $a=0$ non è possibile (dato che $n>10$ ), e $b=0$ non è possibile perché in tal caso cancellando la prima cifra di $n$ si troverebbe 0, che non divide $n$. Le condizioni sono allora che $a$ divida $10 a+b$, che è equivalente al fatto che $a$ divida $10 a+b-10 a=b$, e che $b$ divida $10 a+b$, equivalente a che $b$ divida $10 a+b-b=10 a$. Poniamo allora $b=k a$, dove $k$ è un intero tale che $1 \\leq k \\leq 9$. Troviamo che $b=k a$ divide $10 a$, ovvero che $k$ divide 10: se $k=1$ troviamo nove soluzioni in cui $a=b$, ossia $n=11,22,33,44,55,66,77,88,99$. Se $k=2$ allora $b<10$ implica $a<5$, e troviamo le soluzioni $n=12,24,36,48$. Infine, se $k=5$, troviamo similmente l'unica soluzione $n=15$.\n\nb. Scriviamo $n=10 a+b$ con $1 \\leq b \\leq 9$ l'ultima cifra di $n$ e $1 \\leq a=(n-b) / 10$ un intero (stavolta non necessariamente di una cifra). Cancellando l'ultima cifra, troviamo che $a$ deve dividere $10 a+b$, e quindi anche che $a$ divide $(10 a+b)-10 \\cdot a=b$. Siccome $b$ è un numero positivo minore uguale a 9, allora anche $a$ (che divide $b$) non può superare 9, dunque $a$ è composto di una sola cifra e $n$ si scrive con due cifre decimali come voluto. Le soluzioni sono allora solo quelle trovate al punto precedente, che vanno tutte bene perché non hanno cifre nulle.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33997, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAlice e Barbara hanno inventato il seguente gioco. Hanno una griglia $1 \\times 2018$, con le caselle numerate da $1$ a $2018$ da sinistra verso destra, e $2018$ tessere numerate anch'esse da $1$ a $2018$. La partita inizia con la griglia vuota, e le due giocatrici si alternano nel fare mosse; la giocatrice di turno può scegliere fra:\n- selezionare una tessera non ancora collocata sulla griglia e porla su una casella libera, a patto che i numeri sulle tessere collocate, se letti da sinistra verso destra, siano in ordine crescente;\n- selezionare una tessera già collocata sulla griglia e spostarla in una casella adiacente in modo che la tessera si avvicini alla casella che reca lo stesso numero della tessera, a patto che la casella di arrivo sia libera (esempio: se la tessera col numero $7$ si trova sulla casella numero $12$, la si può spostare a sinistra, ma non a destra; se invece una tessera si trova già nella casella col suo stesso numero, non potrà più essere spostata).\n(a) Dimostrare che a ogni turno, se le tessere non sono tutte sulla griglia, esiste una mossa lecita.\n(b) Se inizia Alice e vince chi colloca l'ultima tessera, chi ha una strategia vincente?", "options": [], "answer": "Alice", "solution": "Solution:\n\n(a) Se $C_{1}$ è libera, $T_{1}$ può essere spostata a sinistra oppure collocata su $C_{1}$, a seconda che sia già sulla griglia o no; lo stesso ragionamento vale per $C_{2018}$, quindi d'ora in poi supporremo che $C_{1}$ e $C_{2018}$ siano entrambe occupate. Scelta una casella libera $C_{k}$, chiamiamo $T_{a}$ e $T_{b}$ le prime tessere che si incontrano partendo da $C_{k}$ e procedendo rispettivamente verso sinistra e verso destra (da cui $a < b$): se $k \\leq a$ si può spostare $T_{a}$ a destra, così come se $k \\geq b$ si può spostare $T_{b}$ a sinistra; infine, se $a < k < b$, si può collocare $T_{k}$ su $C_{k}$.\n\n(b) Dimostriamo per induzione su $N$ che, giocando su una griglia $1 \\times N$, Alice ha una strategia vincente la cui prima mossa consiste nel collocare $T_{1}$ su $C_{N}$ (o equivalentemente, se c'è solo $T_{1}$ su $C_{N}$ ed è il turno di Barbara, Alice ha una strategia vincente).\nSe $N=2$, Barbara deve necessariamente spostare $T_{1}$ su $C_{1}$, dopodiché Alice vince collocando $T_{2}$ su $C_{2}$.\nSupponiamo ora che la tesi sia vera per un certo $N \\geq 2$ e che si giochi su una griglia $1 \\times (N+1)$: come prima, Barbara deve spostare $T_{1}$ su $C_{N}$, e Alice può rispondere collocando $T_{N+1}$ su $C_{N+1}$: poiché quest'ultima tessera non può più essere spostata, il resto della partita si svolgerà sulla griglia $1 \\times N$ ottenuta escludendo $C_{N+1}$ (e si osserva facilmente che la presenza o meno di $C_{N+1}$ non influisce sull'insieme delle mosse lecite). Su tale griglia, dopo le mosse descritte, c'è solo $T_{1}$ che si trova su $C_{N}$, ed è il turno di Barbara, ma per ipotesi induttiva questa configurazione è favorevole ad Alice.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33998, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSiano $ABC$ un triangolo e $P$ un suo punto interno. Sia $H$ il punto sul lato $BC$ tale che la bisettrice dell'angolo $\\widehat{AHP}$ è perpendicolare alla retta $BC$. Sapendo che $\\widehat{ABC}=\\widehat{HPC}$ e $\\widehat{BPC}=130^\\circ$, determinare la misura dell'angolo $\\widehat{BAC}$.", "options": [], "answer": "50°", "solution": "Solution:\n\nSia $P'$ il simmetrico del punto $P$ rispetto alla retta $BC$. Si noti che i punti $A$, $H$, $P'$ sono allineati, dato che $\\widehat{AHP'}=\\widehat{AHP}+2\\widehat{PHC}=\\widehat{AHP}+2\\left(90^\\circ-\\widehat{AHP}/2\\right)=180^\\circ$.\n\nOra, $\\widehat{AP'C}=\\widehat{HP'C}=\\widehat{HPC}$ per simmetria, ma $\\widehat{HPC}=\\widehat{ABC}$ per ipotesi; ne deriva la ciclicità del quadrilatero $ABP'C$.\n\nTale ciclicità comporta che $\\widehat{BAC}$ sia supplementare di $\\widehat{BP'C}$, che è congruente a $\\widehat{BPC}$ per simmetria, e quindi $\\widehat{BAC}=180^\\circ-\\widehat{BPC}=180^\\circ-130^\\circ=50^\\circ$.\n\n\nSeconda soluzione. Sia $C'$ l'intersezione della retta $CP$ con il lato $AB$; il quadrilatero $BHP C'$ è ciclico (poiché $\\widehat{HPC}=\\widehat{HBC'}$ per ipotesi, e dunque gli angoli opposti $\\widehat{HBC'}$ e $\\widehat{C'PH}$ sono supplementari).\n\nSi noti inoltre che, detto $2\\theta$ l'angolo $\\widehat{PHA}$, abbiamo $\\widehat{PHC}=90^\\circ-\\theta=\\widehat{C'HB}$; usando nuovamente l'identità $\\widehat{HPC}=\\widehat{HBC'}$ nei triangoli $BAH$ e $PCH$, risulta per differenza $\\widehat{BAH}=\\widehat{PCH}=\\widehat{C'CH}$. Ne segue che anche il quadrilatero $AC'H C$ è ciclico.\n\nVi sono ora vari modi per concludere con identità di angoli date dalla ciclicità; ad esempio, $\\widehat{HBP}=\\widehat{HC'P}$ per ciclicità di $BHPC'$, e $\\widehat{HC'P}=\\widehat{HAC}$ per ciclicità di $AC'HC$; ma quindi $\\widehat{BAC}=\\widehat{BAH}+\\widehat{HAC}=\\widehat{PCB}+\\widehat{PBC}=180^\\circ-\\widehat{BPC}=50^\\circ$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 33999, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nQuante sono le sequenze di numeri di lunghezza otto composte unicamente da 0 e 1 che contengono il codice 01 ?\n\n(A) 64\n(B) 128\n(C) 192\n(D) 247\n(E) 255", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). Il numero di stringhe di lunghezza 8 formate di cifre 0 e 1 è $2^8$; contiamo quelle che non contengono il codice 01. Ci si rende facilmente conto che se una tale stringa contiene almeno uno 0, allora tutte le cifre a destra di quello 0 sono a loro volta uguali a 0: in caso contrario, infatti, il primo 1 che compare dopo quello 0 è necessariamente preceduto dalla cifra 0, e abbiamo dunque trovato una sottostringa uguale a 01. Otteniamo quindi che una stringa che non contiene il codice 01 è formata da un blocco iniziale di cifre 1, diciamo di lunghezza $k$, seguito da un blocco di lunghezza $8-k$ di cifre 0; al variare di $k$ fra 0 e 8, si ottengono le 9 stringhe della forma descritta, ovvero 11111111, 11111110, 11111100, 11111000, 11110000, 11100000, 11000000, 10000000 e 00000000. La risposta al problema è quindi $2^8-9=256-9=247$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34000, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSiano $x_{1}, x_{2}, \\ldots, x_{n}$ interi positivi. Supponiamo che, nella loro scrittura decimale, nessuno degli $x_{i}$ sia un \"prolungamento\" di un altro $x_{j}$. Per esempio, $123$ è un prolungamento di $12$, e $459$ è un prolungamento di $4$, ma $134$ non è un prolungamento di $123$.\nDimostrare che\n$$\n\\frac{1}{x_{1}}+\\cdots+\\frac{1}{x_{n}}<3\n$$", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34001, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABC$ un triangolo isoscele con base $BC = 10$ e $AB = AC$. Si costruiscano esternamente sui suoi due lati obliqui altri due triangoli isosceli $DAB$ e $EAC$, entrambi simili ad $ABC$, con $DA = DB$ e $EA = EC$. Sapendo che $DE = 45$, trovare la lunghezza di $AB$.\n\n(A) 15\n(B) 20\n(C) $9\\sqrt{5}$\n(D) 22.5\n(E) Non è possibile determinarlo con i soli dati forniti.", "options": [], "answer": "A", "solution": "Solution:\n\nLa risposta è (A). Poiché i triangoli $ABC$, $DAB$, $EAC$ sono simili, si ha che i rispettivi angoli alla base sono congruenti; questo significa che $\\widehat{DAB} = \\widehat{ABC} = \\widehat{ACB} = \\widehat{CAE}$. Adesso si può calcolare l'ampiezza dell'angolo $\\widehat{DAE} = \\widehat{DAB} + \\widehat{BAC} + \\widehat{CAE} = \\widehat{ABC} + \\widehat{BAC} + \\widehat{ACB} = 180^\\circ$, cioè $D, A, E$ sono allineati.\n\nI triangoli $DAB$ e $EAC$ sono simili, e le loro basi $AB$, $AC$ hanno la stessa lunghezza, quindi essi sono anche congruenti e $DA = EA$; questo, unito all'allineamento di $D, A, E$, porta a $DA = \\frac{DE}{2}$.\n\nDalla similitudine di $DAB$ e $ABC$ sappiamo che i loro lati sono in proporzione, quindi $\\frac{DA}{AB} = \\frac{AB}{BC}$, ovvero $AB^2 = DA \\cdot BC$ e quindi\n$$\nAB = \\sqrt{DA \\cdot BC} = \\sqrt{\\frac{DE \\cdot BC}{2}} = \\sqrt{\\frac{45 \\cdot 10}{2}} = 15\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34002, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $N$ un intero maggiore di $1$. Chiamiamo $x$ il più piccolo intero positivo con la seguente proprietà: esiste un intero positivo $y$ strettamente minore di $x-1$ tale che $x$ divide $N+y$. Dimostrare che $x$ è il doppio di un numero primo o una potenza di un numero primo.\n\nNota: si ricorda che $x$ è una potenza di un numero primo se esistono un primo $p$ ed un intero positivo $n \\geq 1$ tali che $x=p^{n}$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nSi ricorda che la scrittura $a \\mid b$ significa che $a$ divide $b$. Diciamo che una coppia di interi positivi $(x, y)$ è bella se valgono $x \\mid N+y$ e $0 2019\n$$\n\nb. Ogni numero corretto è costituito da blocchi di due cifre $ab$ la cui prima cifra descrive la seconda. Una cifra che viene descritta in un qualche blocco può comparire al più $9$ volte in tutto il numero: altrimenti non potrebbe essere stata descritta correttamente nel blocco in questione. Questa osservazione limita immediatamente il numero di blocchi a nove per cifra, ovvero $9 \\cdot 10 = 90$, dunque il numero di cifre a $90 \\cdot 2 = 180$.\nGli interi con al più $180$ cifre (e, di conseguenza, quelli corretti) sono in numero finito.\n\nc. Raffiniamo la stima dall'alto del punto precedente: se un numero naturale ha più di $91$ cifre allora, per il principio dei cassetti, c'è una cifra che compare almeno $10$ volte e che quindi non può mai essere descritta. Osservando che il numero di blocchi in un numero corretto è al più nove volte il numero di cifre che vengono descritte, otteniamo un limite superiore di $9 \\cdot 9 = 81$ blocchi, che corrisponde a un limite di $81 \\cdot 2 = 162$ cifre.\n\nCi aspettiamo ora che il massimo numero corretto sia\n$$\n\\mathcal{G} = \\underbrace{9898 \\ldots 98}_{9\\ \\text{blocchi}}\\ \\underbrace{9797 \\ldots 97}_{9\\ \\text{blocchi}}\\ \\ldots\\ \\underbrace{9090 \\ldots 90}_{9\\ \\text{blocchi}},\n$$\nma non sarà necessario dimostrarlo. Una volta osservato che ha $9 \\cdot 9 \\cdot 2 = 162$ cifre, la dimostrazione è conclusa: se anche esistesse un numero corretto più grande di $\\mathcal{G}$, questo avrebbe comunque $162$ cifre.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34022, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSiano $p, q$ numeri primi. Dimostrare che, se $p+q^{2}$ è un quadrato perfetto, allora il numero $p^{2}+q^{n}$ non è un quadrato perfetto per nessun intero positivo $n$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nScriviamo $p+q^{2}=a^{2}$ con $a$ intero positivo. Allora $p=a^{2}-q^{2}=(a-q)(a+q)$, e siccome $p$ è un numero primo i fattori $a-q$ e $a+q$ devono essere uguali a $\\pm 1$ o a $\\pm p$. Siccome $a+q$ è un numero positivo, anche $a-q$ deve esserlo, ed inoltre $a+q>a-q$, quindi l'unica possibilità è $a+q=p,\\ a-q=1$. Ne segue che $a=q+1$ e $p=a^{2}-q^{2}=2q+1$.\n\nSupponiamo ora per assurdo che $p^{2}+q^{n}$ sia un quadrato, $p^{2}+q^{n}=b^{2}$ con $b$ intero positivo. Si ha $q^{n}=b^{2}-p^{2}=(b-p)(b+p)$, e quindi, siccome gli unici divisori di $q^{n}$ sono della forma $\\pm q^{i}$ con $0 \\leq i \\leq n$, si deve avere $b-p=q^{i},\\ b+p=q^{j}$ (come prima è facile vedere che entrambi i fattori sono positivi) e $q^{i} \\cdot q^{j}=q^{n}$, ovvero $i+j=n$; inoltre, siccome $b-p0$.\n\nSe $i=0$ si ha $b-p=1$ e $b+p=q^{n}$: allora $q^{n}=b+p=2p+1=4q+3$, quindi $3=q^{n}-4q=q\\left(q^{n-1}-4\\right)$. Ne segue che $q$ divide $3$, quindi $q=3$, e semplificando un fattore $3$ si arriva all'equazione $3^{n-1}-4=1 \\Rightarrow 3^{n-1}=5$, che non ha soluzioni intere.\n\nSe invece $i>0$, dall'equazione $2p=q^{i}\\left(q^{j-i}-1\\right)$ si ottiene $q|2p=2(2q+1) \\Rightarrow q|2$, ovvero $q=2,\\ p=2q+1=5$, e $2p=q^{i}\\left(q^{j-1}-1\\right) \\Rightarrow 10=2^{i}\\left(2^{j-i}-1\\right)$. Ne segue che $i$ è uguale ad $1$ (perché $2^{i}$ divide $10$) e che $5=2^{j-1}-1$, ma nuovamente questa equazione non ha soluzioni intere.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34023, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAlessandra scrive sul quaderno (di Luigi) tutti i numeri naturali $n$ che hanno entrambe le seguenti proprietà: $n$ ha esattamente 4 divisori positivi (compresi 1 e $n$ stesso), e la somma dei divisori positivi di $n$ fa 42. Quanto vale la somma di tutti i numeri scritti da Alessandra?\n\n(A) 0\n(B) 12\n(C) 20\n(D) 26\n(E) 42", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). Se $n$ ha quattro divisori positivi, essi sono, in ordine crescente, $1, p, q, n$ con $p$ numero primo.\nSe $q$ è un numero primo, possiamo concludere che $n = p \\cdot q$, perché $n$ non ha altri divisori. La somma dei divisori positivi è $1 + p + q + p \\cdot q = (1 + p) + q(1 + p) = (1 + p)(1 + q)$ che per ipotesi deve valere $42 = 2 \\cdot 3 \\cdot 7$. Né $(1 + p)$, né $(1 + q)$ possono essere uguali a 1 e nemmeno a 42, altrimenti l'altro sarebbe uguale a 1. Avendo 42 solo tre fattori primi, uno di essi è uguale a $(1 + p)$ o $(1 + q)$, e quindi deve essere ancora primo quando diminuito di uno. L'unica possibilità è quindi che $p + 1 = 3$ e $q + 1 = 2 \\cdot 7 = 14$. Siccome $p = 3 - 1 = 2$ e $q = 14 - 1 = 13$ sono primi, $n = 2 \\cdot 13 = 26$ ha le proprietà cercate.\n\nConsideriamo ora l'altra possibilità, che $q$ non sia un numero primo. Allora $q$ ha come divisori solo $1, p$ e se stesso, altrimenti altri divisori dividerebbero anche $n$. Dunque $q = p^{2}$ e $n = p^{3}$. La somma dei divisori positivi è $1 + p + p^{2} + p^{3} = 1 + p(1 + p + p^{2}) = 42$, allora $p(1 + p + p^{2}) = 41$. Ma, dal momento che 41 è un numero primo, in questo caso non esistono soluzioni.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34024, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $n$ un intero maggiore di $2$. Si vogliono colorare di rosso esattamente $n+1$ dei numeri $1, 2, \\cdots, 2n-1, 2n$ in modo tale che non ci siano tre numeri distinti $x, y, z$ colorati di rosso che soddisfano l'uguaglianza $x+y=z$. Dimostrare che esiste uno e un solo modo di scegliere i numeri da colorare di rosso che rispetti la condizione data.", "options": [], "answer": "{n, n+1, ..., 2n}", "solution": "Solution:\n\nSia $A$ l'insieme dei numeri da colorare di rosso. Se $A = \\{n, n+1, \\ldots, 2n\\}$ non ce ne sono tre per i quali $x+y=z$, in quanto per ogni $x, y \\in A$ con $x \\neq y$ si ha $x+y > 2n$.\n\nRimane dunque da dimostrare che questa è l'unica scelta possibile per l'insieme $A$.\n\nDimostriamo l'enunciato per induzione su $n$, cominciando con il caso $n=3$. Se, per assurdo, avessimo $1 \\in A$ allora $A$ non potrebbe avere due numeri consecutivi maggiori di $1$, per cui necessariamente $A = \\{1, 2, 4, 6\\}$. Ma, siccome $2+4=6$, questo dà una contraddizione. Se invece $1 \\notin A$ ma $2 \\in A$, allora $A$ dovrebbe contenere almeno una delle due coppie $\\{3, 5\\}$ o $\\{4, 6\\}$, dando di nuovo una contraddizione con l'ipotesi che non si può avere $x+y=z$ con $x, y, z \\in A$.\n\nSupponiamo ora di aver dimostrato l'unicità per il numero $n$ e dimostriamola per $n+1$.\n\nInnanzitutto osserviamo che $A$ deve contenere almeno uno dei numeri $2n+1, 2n+2$, poiché altrimenti $A$ dovrebbe contenere $n+2$ numeri compresi fra $1$ e $2n$, che è escluso dall'ipotesi induttiva (solo $n+1$ numeri fra $1$ e $2n$ possono appartenere ad $A$).\n\nDimostriamo inoltre che $A$ deve contenere entrambi i numeri $2n+1$ e $2n+2$: se così non fosse, $A$ dovrebbe contenere almeno $n+1$ fra i numeri $\\{1, \\ldots, 2n\\}$ e, per ipotesi induttiva, dovrebbe contenere $\\{n, n+1, \\ldots, 2n\\}$. Ma questo vorrebbe dire che $A$ non contiene né $n+(n+1)=2n+1$ né $n+(n+2)=2n+2$, assurdo.\n\nA questo punto, visto che $2n+1 \\in A$, $A$ può contenere solo uno dei numeri fra le coppie $\\{1, 2n\\}, \\{2, 2n-1\\}, \\ldots, \\{n, n+1\\}$. Si vede immediatamente che $1 \\notin A$ poiché $1+(2n+1)=2n+2$, e quindi $2n \\in A$. Similmente, $2 \\notin A$, visto che $2+2n \\in A$ e quindi $2n-1 \\in A$. Induttivamente, per ogni $(a, b)$ con $a+b=2n+1$ deve necessariamente appartenere ad $A$ il più grande fra gli elementi della coppia, e quindi $A = \\{n+1, n+2, \\ldots, 2n+2\\}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34025, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nNel cassetto di Alice ci sono 30 calzini di 5 colori: 6 bianchi, 6 gialli, 6 rossi, 6 verdi e 6 azzurri. Il fratellino birichino prende 10 buste nere e inserisce in ogni busta tre calzini (presi dal cassetto) di tre colori diversi. Ora Alice deve andare a Cesenatico e dovrà avere in valigia almeno tre paia di calzini di tre colori diversi (i due calzini di ogni paio devono essere dello stesso colore). Quante buste deve prendere Alice, come minimo, per essere sicura di avere tutti i calzini che le servono?\n(A) 2\n(B) 3\n(C) 4\n(D) 5\n(E) 6", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è $\\mathbf{(C)}$. Osserviamo che, se Alice prende 3 buste, non può essere sicura di avere le 3 paia di calzini che le servono: ad esempio la prima busta potrebbe contenere un calzino bianco, uno giallo e uno rosso, la seconda uno bianco, uno giallo e uno verde e la terza uno bianco, uno giallo e uno azzurro, e ci sarebbero solo due paia ben assortite (uno bianco e uno giallo).\n\nSe Alice prende 4 buste, vediamo che in ogni caso trova le 3 paia che le servono. Chiamiamo i tre colori (distinti) dei calzini presenti nella prima busta $A, B$ e $C$; chiamiamo $D$ ed $E$ i due colori che non compaiono della prima busta. La seconda busta deve avere almeno un colore in comune con la prima, diciamo $A$, di cui abbiamo quindi il paio. Se non ha altri colori in comune, i suoi colori sono $A, D$ ed $E$, quindi con la terza busta otteniamo le altre due paia (almeno due calzini non sono $A$ e quindi si appaiano con calzini non $A$ trovati in precedenza). Se la seconda busta ha almeno un altro colore in comune, diciamo $B$, abbiamo il paio anche di tale colore. Resta da trovare il terzo paio: osservando che ognuna delle 4 buste contiene almeno un calzino di colore diverso da $A$ e da $B$, tra questi calzini ce ne devono essere due dello stesso colore (ci sono solo 3 colori disponibili, ovvero $C, D$ ed $E$ ) e allora tali calzini saranno il terzo paio. Il minimo numero di buste richiesto è dunque 4.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34026, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nÈ data una sequenza di 2019 numeri $a_{1}, a_{2}, a_{3}, \\ldots, a_{2019}$. Si sa che scelti qualsiasi 4 termini consecutivi della sequenza, la loro somma è costante. Similmente, presi due numeri consecutivi, la loro differenza in valore assoluto è costante (cioè $\\left|a_{1}-a_{2}\\right|=\\left|a_{2}-a_{3}\\right|=\\left|a_{3}-a_{4}\\right|=\\ldots$ ).\nSi sa inoltre che $a_{1} 10^{5}$ mentre $3^{10} + 3^{9} + \\ldots + 3^{0} = \\frac{3^{11} - 1}{2} < 10^{5}$, quindi si tratta di tutti e soli quelli con al più $11$ cifre in base $3$. Dato che ci sono $2$ scelte ($0$ e $1$) per ogni cifra, tali numeri sono $2^{11} = 2048$. Osserviamo che in questo modo sono stati contati sia i numeri con $11$ cifre (con la prima cifra uguale a $1$), sia quelli con meno di $11$ cifre (che corrispondono a quelli con $11$ cifre ma con un opportuno numero di zeri iniziali).", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34031, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAlberto e Barbara sono seduti, l'uno accanto all'altra, davanti a un tavolo su cui hanno disposto in fila, da sinistra verso destra, 15 cioccolatini. Alcuni dei cioccolatini sono al latte, gli altri al cioccolato fondente. A turno, iniziando da Alberto, giocano al seguente gioco: durante il proprio turno, ciascuno dei due deve mangiare un numero strettamente positivo di cioccolatini consecutivi, cominciando sempre da quello più a sinistra fra quelli rimasti e facendo in modo che il numero di cioccolatini mangiati dello stesso tipo del primo sia dispari (ad esempio, se in un certo turno la sequenza di cioccolatini rimasti è LLFLF, dove L sta per al latte e $F$ per fondente, il giocatore di turno può mangiare il primo cioccolatino da sinistra, i primi 4 da sinistra, o tutti e 5 i cioccolatini).\nVince chi mangia l'ultimo cioccolatino.\nTra le $2^{15}$ possibili sequenze iniziali di gusti dei cioccolatini, quante sono quelle per cui Barbara ha una strategia vincente?", "options": [], "answer": "8320", "solution": "Solution:\n\nSupponiamo che, più in generale, un giocatore si trovi a dover effettuare una mossa con una fila di $n$ cioccolatini numerati da 1 a $n$; denoteremo con effettuare la mossa $k$, per il giocatore di turno, l'atto di mangiare i cioccolatini $\\{1, \\ldots, k\\}$. Diremo che la mossa $k$ è legale se $1 \\leq k \\leq n$ e se fra i cioccolatini $\\{1, \\ldots, k\\}$ ve n'è un numero dispari del gusto di 1. Diremo che una sequenza di $n$ gusti è vincente se il giocatore di turno, messo davanti a cioccolatini con i gusti in tale sequenza, possiede una strategia vincente; la sequenza verrà detta perdente in caso contrario. Il problema chiede di determinare il numero di sequenze perdenti di lunghezza 15.\n\nIncominciamo con due semplici osservazioni:\n\n**Osservazione 1.** Se una sequenza contiene un numero dispari di occorrenze del gusto 1, allora è vincente (la mossa $L$, dove $L$ è la lunghezza della sequenza, è legale e vincente per il giocatore di turno).\n\n**Osservazione 2.** Sia data una sequenza di lunghezza $2n+1$ con un numero pari di occorrenze del gusto 1. Se questa è vincente, allora qualunque strategia vincente per il giocatore di turno deve cominciare con una mossa della forma $2k$, dove $0 < k \\leq n$ è tale che il gusto $2k+1$ sia diverso dal gusto 1. In effetti, se il giocatore di turno effettuasse una mossa (legale) della forma $2h+1$, lascerebbe un numero dispari di cioccolatini di ciascun gusto, e dunque il giocatore successivo vincerebbe mangiando tutti i cioccolatini rimanenti. D'altra parte, poiché il numero di cioccolatini del gusto 1 avanzati dal giocatore di turno è in ogni caso dispari, è necessario perché la sequenza lasciata al giocatore successivo sia perdente che il gusto $2k+1$ sia diverso dal gusto 1.\n\nTroveremo conveniente considerare per ciascuna sequenza di gusti di lunghezza $n$ una sequenza corrispondente di zeri e uni $x_{1} x_{2} \\ldots x_{n}$, così costruita: $x_{i}=0$ se il numero di cioccolatini in $\\{1, \\ldots, i\\}$ dello stesso gusto di 1 è pari, $x_{i}=1$ altrimenti. Si noti che $x_{1}=1$ e che a ciascuna sequenza $x_{1} x_{2} \\ldots x_{n} \\in \\{1\\} \\times \\{0,1\\}^{n-1}$ corrispondono esattamente due sequenze di gusti, entrambe vincenti o entrambe perdenti (dunque parleremo di sequenze di zeri e uni a loro volta vincenti o perdenti).\n\nLe sequenze che finiscono per 1 sono tutte vincenti. Supponiamo che una sequenza di lunghezza dispari finisca per 0 e suddividiamola in blocchi come segue:\n\n![](attached_image_1.png)\n\nPer l'osservazione 2, se questa è vincente il giocatore di turno deve effettuare una mossa di tipo $2k$, dove il $k$-esimo blocco riquadrato è del tipo 11 (si deve avere $x_{2k}=1$ affinché la mossa sia legale e $x_{2k+1}=x_{2k}$ perché il gusto di $2k+1$ sia diverso da quello di 1). Tale mossa lascia al giocatore successivo una sequenza del tipo\n$$\n\\begin{array}{|l|l|l|}\n\\hline y_{2} y_{3} & y_{4} y_{5} & \\cdots \\\\\ny_{2n-2k} 0 \\\\\\hline\n\\end{array}\n$$\nin cui, poiché è stato mangiato un numero dispari di cioccolatini di ciascun gusto, $y_{i}=x_{i+2k}$ per $i$ dispari e $y_{i} \\neq x_{i}$ per $i$ pari. In altre parole, la sequenza $y_{i}$ è ottenuta dalla sequenza $x_{i}$ cancellando i primi $k$ blocchi riquadrati e, nei blocchi successivi, scambiando $00,01,10,11$ con $10,11,00,01$ rispettivamente. Fra le sequenze di lunghezza dispari che finiscono per 0 distinguiamo tre casi:\n\n(i) non vi sono blocchi 11; allora la sequenza è perdente per l'Osservazione 2;\n\n(ii) l'ultimo blocco 11, diciamo il $k$-esimo, non ha blocchi 01 alla sua destra; allora la sequenza è vincente: la mossa $k$ è legale e lascia all'avversario una sequenza del tipo (i) (che finisce anch'essa per 0 e ha lunghezza dispari);\n\n(iii) l'ultimo blocco 11 ha un blocco 01 alla sua destra; allora la sequenza è perdente, perché qualunque scelta di un blocco 11 lascia all'avversario una sequenza di tipo (ii), che è vincente.\n\nRiassumendo, dobbiamo contare le sequenze di tipo (i) e (iii) di lunghezza 15. Si tratta di scegliere il contenuto di 7 blocchi fra le possibilità $\\{\\boxed{00}, 01,10,11\\}$ rispettando le condizioni date. Vi sono sempre due possibilità per l'ultimo blocco, che è del tipo $10$ o $00$. Le sequenze in cui non compare né 11 né 01, che sono perdenti, sono $2^{7}$. Fra le sequenze in cui compare almeno un blocco 11 o 01 e tali che l'ultimo blocco sia 10 o 00, quelle di tipo (i) o (iii) sono esattamente la metà: questo perché una sequenza è del tipo (i) o (iii) se e solo se la sequenza ottenuta cambiando i blocchi 11 in 01 e viceversa non lo è. Dobbiamo dunque aggiungere $\\frac{2 \\times 4^{6}-2^{7}}{2}=2^{12}-2^{6}$ sequenze perdenti.\n\nRicordando che a ciascuna sequenza perdente di zeri e uni corrispondono due sequenze perdenti originali, abbiamo dunque un totale di $2\\left(2^{7}+2^{12}-2^{6}\\right)=2\\left(2^{6}+2^{6}+2^{12}-2^{6}\\right)=2^{7}+2^{13}$ sequenze perdenti.\n\nVisto che il problema riguarda una sequenza di 15 cioccolatini, e che 15 è un numero dispari, possiamo supporre che la sequenza sia costituita da $n=2k+1$ cioccolatini.\n\nOsserviamo che se il tipo di cioccolatino che compare per primo a sinistra compare in totale un numero dispari di volte, allora Alberto vince mangiando tutti i cioccolatini alla prima mossa.\n\nSupponiamo dunque che il cioccolatino più a sinistra compaia un numero pari di volte, che corrisponde a $2^{2k}$ casi, e supponiamo che tra essi $a_{k}$ sia il numero di volte in cui Alberto ha una strategia vincente e $b_{k}$ sia il numero di volte in cui Barbara ha una strategia vincente.\n\nCon una verifica immediata si trova $b_{0}=0$ e $b_{1}=4$. Supponiamo ora $k \\geq 2$ e quindi $n=2k+1 \\geq 5$. Consideriamo dapprima il caso in cui la sequenza di cioccolatini termini con due cioccolatini dello stesso tipo, ossia LL oppure $FF$, quindi complessivamente in un numero di casi uguale a $2^{n-2}$. In questo caso è chiaro che colui che riesce a effettuare l'ultima mossa per mangiare i primi $n-2$ cioccolatini può anche mangiare anche gli altri due, e quindi ci sono $2b_{k-1}$ casi in cui Barbara vince.\n\nSupponiamo ora che gli ultimi due cioccolatini siano di tipo diverso, per esempio LF, e consideriamo il tipo del primo e del terzultimo dei cioccolatini. Nel caso in cui questi tipi siano diversi, LF o FL, Alberto vince se fa la mossa (lecita) di mangiare tutti i cioccolatini salvo gli ultimi 3. Se invece il primo e il terzultimo dei cioccolatini sono dello stesso tipo, per esempio LL, Alberto, che non può mangiare tutti i cioccolatini, deve lasciare a Barbara una sequenza non vuota di cioccolatini. Se la sequenza rimasta comincia con L, Barbara può mangiare tutti i rimanenti, e quindi vince. Se la sequenza rimasta comincia con $F$, allora o il numero di F rimasto è dispari, e quindi Barbara vince mangiando tutti i cioccolatini rimanenti, oppure il numero di $F$ rimasto è pari, e allora Barbara vince lasciando ad Alberto gli ultimi 3 cioccolatini. Il caso in cui il primo e il terzultimo cioccolatino siano del tipo FF è analogo.\n\nIn conclusione, Barbara vince in tutti i casi in cui il primo e il terzultimo cioccolatino siano dello stesso tipo e gli ultimi due di tipo diverso. Poiché stiamo considerando solo il caso in cui il numero di cioccolatini dello stesso tipo del primo è pari, questo dà luogo a $2^{n-3}=2^{2k-2}$ possibilità.\n\nQuesto fornisce la formula ricorsiva\n$$\nb_{k}=2b_{k-1}+2^{2k-2}\n$$\ne quindi permette di calcolare in pochi passaggi $b_{7}=8320$, che è il numero cercato.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34032, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABCD$ un trapezio di basi $AB$ e $CD$ inscritto in una circonferenza $\\Gamma$, tale che le diagonali $AC$ e $BD$ siano perpendicolari. Detto $P$ il punto d'incontro delle diagonali $AC$ e $BD$, quanto vale il rapporto fra l'area di $\\Gamma$ e la somma delle aree dei triangoli $APB$ e $CPD$?\n\n(A) 1\n(B) $\\pi / 2$\n(C) $\\pi$\n(D) $2\\pi$\n(E) I dati non sono sono sufficienti per determinarlo", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è $\\mathbf{(C)}$. Siano $O$ e $r$ rispettivamente il centro e il raggio della circonferenza $\\Gamma$. Osserviamo che necessariamente il trapezio è isoscele (perché inscrivibile in una circonferenza), quindi le diagonali sono uguali e $AP = PB$ (quindi anche $PC = PD$). Quindi i triangoli $APB$ e $BPC$ sono isosceli e rettangoli: hanno area rispettivamente $\\frac{BP^2}{2}$ e $\\frac{PC^2}{2}$.\n\nInoltre, poiché il triangolo $APB$ è isoscele e rettangolo, troviamo $45^\\circ = \\widehat{PAB} = \\widehat{CAB} = \\frac{\\widehat{COB}}{2}$: ovvero $\\widehat{COB} = 90^\\circ$. Con il teorema di Pitagora sui triangoli $BPC$ e $BOC$ troviamo che: $2r^2 = BC^2 = BP^2 + PC^2$.\n\nLa somma delle aree dei triangoli $APB$ e $BPC$ è pari a $\\frac{BP^2 + PC^2}{2} = r^2$ e il rapporto cercato vale $\\frac{\\pi r^2}{r^2} = \\pi$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34033, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAlberto, Barbara e Carlo fanno un gioco. Questo gioco si compone di $k$ turni, al termine di ciascuno dei quali il primo classificato riceve $a_{1}$ punti, il secondo $a_{2}$ e il terzo $a_{3}$, con $a_{1}>a_{2}>a_{3}>0$ tutti interi. I punteggi finali di Alberto, Barbara e Carlo sono rispettivamente 22, 9, 9. Sapendo che Barbara ha vinto il primo turno, chi è arrivato secondo nel secondo turno?\n\n(A) Necessariamente Alberto\n(B) Necessariamente Barbara\n(C) Necessariamente Carlo\n(D) Possono essere arrivati secondi sia Alberto sia Barbara\n(E) Possono essere arrivati secondi sia Carlo sia Barbara", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è $\\mathbf{(C)}$. Notiamo che durante il gioco vengono assegnati $k\\left(a_{1}+a_{2}+a_{3}\\right)$ punti in totale, quindi possiamo scrivere $k\\left(a_{1}+a_{2}+a_{3}\\right)=22+9+9=40$, da cui deduciamo che $k$ e $a_{1}+a_{2}+a_{3}$ sono entrambi divisori di 40. Notiamo inoltre che siccome $a_{1}, a_{2}, a_{3}$ sono interi positivi distinti e $a_{1}>a_{2}>a_{3}$ si deve avere $a_{3} \\geq 1, a_{2} \\geq 2$ e $a_{1} \\geq 3$, quindi $a_{1}+a_{2}+a_{3} \\geq 6$. Abbiamo quindi $k \\leq \\frac{40}{6}$, ed elencando i divisori di $40, k$ può essere $1,2,4,5$. Ragioniamo ora per casi:\n\n- $k=1$ è chiaramente impossibile, altrimenti si avrebbe $a_{2}=a_{3}=9$, ma per ipotesi $a_{2}>a_{3}$.\n- $k=2$ è impossibile, altrimenti si avrebbe $2 a_{1} \\geq 22$ per dare abbastanza punti ad Alberto, ma anche $a_{1}<9$ perché Barbara ha vinto un turno, assurdo.\n- $k=4$ è impossibile, infatti si avrebbe $a_{1}+a_{2}+a_{3}=10$ e le uniche terne possibili sono $(5,3,2)$, $(5,4,1),(6,3,1),(7,2,1)$. Le prime due sono escluse perché Alberto, anche con 4 vittorie, non potrebbe ottenere 22 punti. La terza è esclusa perché Alberto, per ottenere 22, dovrebbe necessariamente avere almeno 3 vittorie, ma aggiungendo un secondo posto arriverebbe a 21 e aggiungendo una quarta vittoria a 24. La quarta è esclusa perché, siccome Barbara ha vinto un turno, il suo punteggio dovrebbe essere almeno $7+1+1+1>9$, assurdo.\n- $k=5$ è possibile, infatti abbiamo $a_{1}+a_{2}+a_{3}=8$ e le terne possibili sono $(4,3,1),(5,2,1)$. Il primo caso è escluso perché Alberto non potrebbe raggiungere un punteggio di 22 nemmeno con 5 vittorie. Il secondo caso invece va bene, infatti Alberto per ottenere 22 deve avere per forza 4 vittorie e un secondo posto e, siccome per ipotesi Barbara ha vinto il primo turno, la classifica del primo turno è per forza Barbara-Alberto-Carlo. A questo punto Carlo dev'essere per forza arrivato secondo in tutti gli altri turni e quindi in particolare nel secondo.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34034, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nMarcella, giocando, trova per puro caso due polinomi $p(x)$ e $q(x)$, non costanti e a coefficienti interi, verificanti la relazione:\n$$\np(q(x+1)) = p\\left(x^{3}\\right) q(x+1)^{5}.\n$$\nChe cosa possiamo affermare con certezza dei due polinomi trovati da Marcella?\n(A) Il coefficiente direttore di $p(x) q(x)$ è positivo\n(B) Il polinomio $q(x)$ non possiede radici intere\n(C) Il grado di $q(x)$ non supera quello di $p(x)$\n(D) La somma dei coefficienti di $p(x)$ è dispari\n(E) Il grado di $p(x) q(x)$ è multiplo di 8", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è (E). Siano $m, n$ i gradi di $p(x)$ e $q(x)$, rispettivamente. Essi sono due interi positivi. La relazione tra i polinomi data nel problema implica la seguente equazione sui gradi, $m n = 3 m + 5 n$, che a sua volta equivale a $(m-5)(n-3) = 15$. Per ricavare $(m, n)$ dobbiamo dunque risolvere i sistemi\n$$\n\\left\\{\n\\begin{array}{l}\nm-5 = k \\\\\nn-3 = \\frac{15}{k}\n\\end{array}\n\\right.\n$$\nal variare di $k$ fra i divisori di $15$, cioè $k = \\pm 1, \\pm 3, \\pm 5, \\pm 15$. Osserviamo però che, quando $k$ è negativo, almeno uno fra $m$ ed $n$ risulta negativo o nullo. Perciò scartiamo questi casi e consideriamo solamente i restanti quattro sistemi, da cui ricaviamo le seguenti soluzioni:\n\n| $m$ | 6 | 8 | 10 | 20 |\n| :---: | :---: | :---: | :---: | :---: |\n| $n$ | 18 | 8 | 6 | 4 |\n\nOra possiamo notare che in corrispondenza di ciascuna coppia $(m, n)$ esistono effettivamente due polinomi $p(x) = x^{m}$, $q(x) = (x-1)^{n}$ di gradi $m, n$ che soddisfano la relazione assegnata. Con questi esempi riusciamo già ad escludere le risposte $(B)$ e $(C)$. Per quanto riguarda $(A)$ e $(D)$ basta osservare che, se $(p(x), q(x))$ soddisfa la condizione di Marcella, lo stesso vale per i polinomi $(\\lambda p(x), q(x))$ qualunque sia l'intero $\\lambda \\neq 0$: pertanto $\\left(-x^{m}, (x-1)^{n}\\right)$ e $\\left(2 x^{m}, (x-1)^{n}\\right)$ sono due facili controesempi. Infine, il grado di $p(x) q(x)$ è $m+n$ e può valere soltanto $16$ o $24$, da cui l'esattezza di (E).", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34035, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSe si taglia un foglio A4 precisamente a metà lungo una retta parallela al lato più corto, si creano due fogli che hanno la stessa forma di quello originale, cioè che si ottengono da esso tramite una rotazione e una riduzione di scala. Quest'anno diremo che un foglio rettangolare è \"contemporaneo\" se, tagliandolo in 2020 parti uguali ottenute con tagli paralleli al suo lato più corto, si ottengono 2020 rettangoli che hanno la stessa forma di quello iniziale. Se il lato corto di un foglio contemporaneo misura 1, quanto è lungo l'altro lato?\n\n(A) $\\sqrt{2020}$\n(B) $2020^{3 / 2}$\n(C) $\\frac{2021}{2}$\n(D) 2020\n(E) Nessuna delle precedenti", "options": [], "answer": "A", "solution": "Solution:\n\nLa risposta è $(A)$. Indichiamo con $x$ la lunghezza del lato lungo del foglio contemporaneo. I rettangoli ritagliati hanno lo stesso rapporto tra i lati, ma sappiamo che il loro lato lungo misura $1$, mentre il loro lato corto misura $\\frac{x}{2020}$. Scrivendo l'uguaglianza tra i rapporti, cioè la proporzione, abbiamo:\n$$\nx : 1 = 1 : \\frac{x}{2020}\n$$\nda cui\n$$\nx^{2} = 2020\n$$\nciaè\n$$\nx = \\sqrt{2020}\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34036, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSu una circonferenza consideriamo nell'ordine cinque punti $A, B, C, D, E$. Supponiamo che le rette $BC$ e $DE$ si intersechino in un punto $F$, che $F$ e $A$ siano da parti opposte rispetto alla retta $BE$, e che la circonferenza circoscritta al triangolo $BFE$ sia tangente (in $E$) alla retta $AE$.\n\na. Dimostrare che le rette $AC$ e $DE$ sono parallele.\n\nb. Dimostrare che $AE = CD$.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34037, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAgnese, Beatrice, Claudio e Dario giocano con 53 pile di monete. Comunque prese due pile, queste hanno un numero diverso di monete. Ad ogni turno, un giocatore sceglie una pila e toglie da questa una moneta. Perde chi togliendo una moneta a una pila rende questa pila di altezza uguale a un'altra presente sul tavolo.\n\nUna pila può avere 0 monete e due pile con 0 monete sono considerate uguali. Comincia Agnese, poi in ordine giocano Beatrice, Claudio e Dario, dopo di che tocca nuovamente ad Agnese e si procede sempre in questo ordine.\n\nSe all'inizio del gioco ci sono 2020 monete in totale e se tutti giocano al meglio, chi perde?\n\n(A) Agnese\n(B) Beatrice\n(C) Claudio\n(D) Dario\n(E) Non è possibile determinarlo con questi dati", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è (C). Chiamiamo $a_{1}, a_{2}, \\ldots, a_{53}$ le pile ordinate in ordine crescente di altezza.\n\nOsserviamo che il gioco finisce. Ad ogni mossa il numero totale di gettoni diminuisce di 1, e se ci sono 51 gettoni in totale allora il gioco è già finito perché ci sono almeno due pile con 0 gettoni.\n\nSicuramente se la partita non è già stata persa $a_{i}$ avrà meno gettoni di $a_{j}$ se $i k$, e viceversa per ogni divisore $d$ di $k^{2}$ con $d > k$ esiste un corrispondente divisore $0 < n / d < k$.\nI divisori positivi di $k^{2}$ minori di $k$ sono quindi tanti quanti quelli maggiori di $k$, come voluto.\n\nSoluzione alternativa. Se $n$ è un quadrato perfetto, la sua scrittura in fattori primi è della forma $n = p_{1}^{2\\alpha_{1}} \\cdot p_{2}^{2\\alpha_{2}} \\cdots p_{i}^{2\\alpha_{i}}$. I suoi divisori sono numeri della forma $p_{1}^{\\beta_{1}} \\cdots p_{i}^{\\beta_{i}}$, con $0 \\leq \\beta_{j} \\leq 2\\alpha_{j}$ per ogni $j = 1, \\ldots, i$. In particolare $k = p_{1}^{\\alpha_{1}} \\cdot p_{2}^{\\alpha_{2}} \\cdots p_{i}^{\\alpha_{i}}$. Se scriviamo $n = d \\cdot \\frac{n}{d}$ come prodotto di due suoi divisori, dobbiamo redistribuire i fattori primi di $n$ tra i due divisori considerati. Avremo dunque che i due fattori sono della forma\n$$\nd = p_{1}^{\\beta_{1}} \\cdots p_{i}^{\\beta_{i}}, \\quad \\frac{n}{d} = p_{1}^{2\\alpha_{1} - \\beta_{1}} \\cdots p_{i}^{2\\alpha_{i} - \\beta_{i}}\n$$\nche possiamo scrivere, in termini di $k$, come\n$$\nd = k \\cdot p_{1}^{\\beta_{1} - \\alpha_{1}} \\cdots p_{i}^{\\beta_{i} - \\alpha_{i}}, \\quad \\frac{n}{d} = k \\cdot p_{1}^{\\alpha_{1} - \\beta_{1}} \\cdots p_{i}^{\\alpha_{i} - \\beta_{i}}:\n$$\nstiamo moltiplicando $k$ per un numero e per il suo reciproco, quindi uno tra $d$ e $n / d$ sarà maggiore di $k$ e l'altro sarà minore di $k$. In particolare per ogni divisore minore di $k$ ce ne è uno maggiore di $k$.\n\nb. Per quanto visto nel punto (a), i divisori in tutto sono due volte quelli minori di $k$ più 1 (cioè il divisore $k$). I numeri interi positivi minori di $k$ sono $k-1$, quindi $n$ può avere al più $2(k-1)+1 = 2k-1$ divisori.\n\nc. Continuando il ragionamento fatto al punto (b), dire che $n = k^{2}$ ha $2k-1$ divisori significa che tutti i numeri interi positivi minori o uguali a $k$ dividono $n$. Osserviamo che per $k = 1$ si ha $n = 1$, che ha un unico divisore positivo (se stesso), per cui in effetti il numero di divisori è $2k-1 = 2 \\cdot 1 - 1$. Similmente, per $k = 2$ si ha $n = 4$, che ha come divisori $1, 2$ e $4$, come voluto: $2 \\cdot 2 - 1 = 3$. Osserviamo poi che un intero $n$ non ha divisori $>1$ in comune con $n-1$. Se $k \\geq 3$ questo porta ad una contraddizione: abbiamo osservato che $k-1 > 1$ deve dividere $k^{2}$, e questo è assurdo perché $k-1$ divide $n-1 = k^{2} - 1 = (k+1)(k-1)$. Non ci sono quindi soluzioni per $k \\geq 3$, dunque i $k$ voluti sono solo $k = 1$ e $k = 2$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34042, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSu un enorme foglio a quadretti, Marco considera un rettangolo lungo $2020$ quadretti e alto $2$. A questo punto vuole unire con $2020^{2}$ segmenti ciascuno dei $2020$ centri dei quadretti nella fila inferiore del rettangolo a ciascuno dei centri dei quadretti della fila superiore. Inoltre, vuole che se due di questi segmenti si intersecano (eventualmente anche solo in un estremo) siano tracciati con penne di colore diverso.\n\na. Dimostrare che è impossibile soddisfare le richieste di Marco se si hanno solo penne di $4038$ colori diversi.\n\nb. Dimostrare che è invece possibile tracciare i segmenti secondo le richieste di Marco utilizzando $4039$ colori.", "options": [], "answer": "4039", "solution": "Solution:\n\nIndichiamo i centri usando le coordinate dei quadretti, così che i centri della riga inferiore sono i punti $(0,0), \\ldots, (2019,0)$ e quelli della riga superiore sono $(0,1), \\ldots, (2019,1)$.\n\na.\nConsideriamo l'insieme di segmenti $S$ che collegano le seguenti coppie di punti:\n(i) $(0,0)-(k, 1)$ per $k=1, \\ldots, 2019$;\n(ii) $(0,0)-(0,1)$;\n(iii) $(k, 0)-(0,1)$ per $k=1, \\ldots, 2019$.\nNel precedente elenco nessuna coppia compare due volte, dunque anche i segmenti corrispondenti sono diversi. Siccome al primo punto abbiamo indicato $2019$ coppie, al secondo $1$ coppia, e al terzo $2019$ coppie, in totale quelle elencate sono $4039$ coppie diverse.\nScegliamo due segmenti qualsiasi $s_{1}, s_{2} \\in S$. Se nessuno è del tipo (iii), allora $s_{1} \\cap s_{2} = (0,0)$; similmente, se nessuno è del tipo (i), allora $s_{1} \\cap s_{2} = (0,1)$. Se invece $s_{1}$ è del tipo (i) e $s_{2}$ è del tipo (iii), o viceversa, allora $s_{1}$ e $s_{2}$ sono le diagonali (interne) del quadrilatero convesso non intrecciato i cui vertici sono $(0,0), (x_{s_{2}}, 0), (x_{s_{1}}, 1), (0,1)$, quindi si intersecano.\nRiassumendo, abbiamo i seguenti due fatti:\n- $|S| = 4039$\n- ogni coppia di segmenti in $S$ si interseca.\nSe avessimo a disposizione non più di $4038$ colori, per il principio dei cassetti almeno due segmenti in $S$ avrebbero lo stesso colore, ma ciò è incompatibile con la richiesta che segmenti non disgiunti abbiano colori diversi.\n\nb.\nEnumeriamo i $4039$ colori in questo modo: $-2019, \\ldots, -1, 0, 1, \\ldots, 2019$.\nUna colorazione dei segmenti valida è la seguente: il segmento fra $(x_{1}, 0)$ e $(x_{2}, 1)$ viene colorato con il colore $x_{2} - x_{1}$.\nMostriamo che due segmenti qualsiasi $s_{1}, s_{2}$ dello stesso colore $c$ non si intersecano. Sia $(x_{1}, 0)$ il primo vertice di $s_{1}$: allora il secondo deve essere $(x_{1} + c, 1)$; similmente sia $(x_{2}, 0)$ il primo vertice di $s_{2}$, e di conseguenza $(x_{2} + c, 1)$ il secondo. Allora $s_{1}$ e $s_{2}$ sono due lati opposti del quadrilatero che ha per vertici $(x_{1}, 0), (x_{2}, 0), (x_{2} + c, 1), (x_{1} + c, 1)$. Questo quadrilatero è un parallelogramma (non intrecciato) perché gli altri due lati sono paralleli e hanno lunghezza $c$. Dunque $s_{1}$ e $s_{2}$ non si intersecano.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34043, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABC$ un triangolo scaleno con $BC > CA > AB$. Siano $\\omega$ e $\\gamma$ le circonferenze passanti per $A$ di centro, rispettivamente, $B$ e $C$. Esse intersecano il segmento $BC$ in $M$ e $N$, rispettivamente. Costruiamo $Z$ come il simmetrico di $A$ rispetto al punto medio di $MN$.\n\na. Chiamata $P$ l'intersezione di $ZM$ con $AC$, mostrare che $CPM$ è isoscele.\n\nb. Detta $X$ l'intersezione di $ZM$ con $\\omega$ distinta da $M$, mostrare che $BX$ e $AC$ sono parallele.\n\nc. Detta $Y$ l'intersezione di $ZN$ con $\\gamma$ distinta da $N$, mostrare che $A, X$ e $Y$ sono allineati.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\na. Il quadrilatero $ANZM$ è un parallelogramma perché le diagonali si intersecano nel loro punto medio per costruzione. Le rette $AN$ e $MZ$ sono dunque parallele. Su questa coppia di rette parallele, le trasversali $CN$ e $CA$ staccano angoli corrispondenti uguali ($\\angle CMP = \\angle CNA$ e $\\angle CPM = \\angle CAN$). Rimane solo da osservare che $CA = CN$ perché raggi della circonferenza $\\gamma$: da questo segue che il triangolo $NCA$ è isoscele su $NA$, dunque che gli angoli alla base $\\angle CAN = \\angle CNA$ sono uguali. In conclusione, sappiamo che\n$$\n\\angle CPM = \\angle CAN = \\angle CNA = \\angle CMP\n$$\novvero che $\\triangle MCP$ è isoscele su $MP$.\n\n![](attached_image_1.png)\n\nb. Il triangolo $BMX$ è isoscele perché $BM = BX$ sono raggi della circonferenza $\\omega$, dunque gli angoli alla base $\\angle BXM = \\angle BMX$ sono uguali. Per di più, $\\angle BMX$ è l'opposto al vertice di $\\angle CMP$, che sono pertanto uguali tra loro. Segue, per il punto (a), che tutti gli angoli in questione sono uguali anche a $\\angle MPC$:\n$$\n\\angle BXM = \\angle BMX = \\angle CMP = \\angle MPC.\n$$\nL'uguaglianza tra i due estremi ci dice che la trasversale $PX$ stacca sulla coppia di rette $BX$ e $AC$ angoli alterni interni uguali, provandone il parallelismo.\n\n![](attached_image_2.png)\n\nc. Il triangolo $ABX$ è isoscele perché $BA = BX$ sono raggi della circonferenza $\\omega$, dunque gli angoli alla base $\\angle BAX = \\angle BXA$ sono uguali. La trasversale $AX$ stacca sulla coppia di rette $BX \\parallel AC$, parallele per il punto (b), angoli alterni interni uguali $\\angle BXA = \\angle CAX$. Abbiamo ottenuto che\n$$\n\\angle BAX = \\angle BXA = \\angle CAX\n$$\novvero che $X$ giace sulla bisettrice dell'angolo $\\angle BAC$. Ripetendo lo stesso ragionamento per il punto $Y$, con gli opportuni cambi di lettere, si ottiene che anch'esso giace sulla bisettrice dell'angolo $\\angle BAC$, da cui la tesi.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34044, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAlberto e Barbara scrivono dei numeri alla lavagna. Parte Alberto e scrive il numero reale $x$. Poi Barbara scrive il numero $1$. I due poi si alternano, e ad ogni turno scrivono un numero. Alberto nel suo turno moltiplica l'ultimo numero scritto per $x^{2}$ e scrive il risultato. Barbara nel suo turno somma all'ultimo numero scritto $x+1$ e scrive il risultato.\n\nSi fermano quando sulla lavagna sono scritti $2020$ numeri. Quali delle seguenti affermazioni è sempre vera?\n\n(A) C'è almeno un numero negativo scritto sulla lavagna\n(B) Tutti i numeri scritti alla lavagna sono positivi\n(C) Alberto ha scritto solo numeri positivi\n(D) Alberto ha scritto solo numeri negativi\n(E) Barbara ha scritto solo numeri positivi", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è (E). Possiamo procedere per esclusione. La (A) è falsa perché se $x>0$ allora ad ogni turno Alberto e Barbara moltiplicano e sommano numeri positivi a quelli già presenti sulla lavagna. Dato che i primi due numeri sono $x$ e $1$, allora non c'è nessun numero negativo sulla lavagna. (B) e (C) sono false perché $x$ può essere negativo. (D) è falsa perché $x$ può essere positivo.\n\nPer dimostrare che la $(\\mathbf{E})$ è effettivamente vera, osserviamo che i primi numeri scritti da Barbara sono $1, 1+x+x^{2}, 1+x+x^{2}+x^{3}+x^{4} = 1+x+x^{2}(1+x+x^{2})$, e che in generale Barbara scriverà espressioni della forma $1+x+\\ldots+x^{2n}$. Un numero di questo tipo è necessariamente positivo. In effetti, se $x=1$ questo è ovvio, e in caso contrario la somma si può calcolare tramite le proprietà delle progressioni geometriche: si ha $1+x+\\ldots+x^{2n} = \\frac{x^{2n+1}-1}{x-1}$, che è positivo perché numeratore e denominatore hanno lo stesso segno (positivo se $x>1$, negativo se $x<1$ ).", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34045, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDeterminare tutte le coppie $(a, b)$ di numeri interi positivi che verificano le seguenti tre condizioni:\n- $b > a$ e $b - a$ è un numero primo,\n- la cifra delle unità di $a + b$ è $3$,\n- $ab$ è il quadrato di un numero intero.", "options": [], "answer": "(4, 9)", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34046, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSiano $a_{1}, a_{2}, \\ldots, a_{2020}$ e $b_{1}, b_{2}, \\ldots, b_{2020}$ dei numeri reali, non necessariamente distinti. Supponiamo che gli interi positivi $n$ per cui l'equazione\n$$\n|a_{1} x - b_{1}| + |a_{2} x - b_{2}| + \\cdots + |a_{2020} x - b_{2020}| = n\n$$\nha esattamente due soluzioni reali siano in numero finito.\nDimostrare che gli interi positivi $n$ per cui l'equazione (1) ha almeno una soluzione reale sono in numero finito.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34047, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAnna, Bianca, Carla e Diana sono quattro donne di età (in anni) diverse. Le loro età sono numeri primi la cui somma è $240$. Sapendo che nessuna di loro ha più di $70$ anni, qual è l'età della più giovane?\n\n(A) $47$\n(B) $53$\n(C) $57$\n(D) $61$\n(E) $67$", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è (B). Siano $a < b < c < d$ i quattro numeri primi corrispondenti alle età. Allora\n$$\n60 = \\frac{a + b + c + d}{4} < \\max \\{a, b, c, d\\} = d < 70.\n$$\nQuindi abbiamo solo due possibilità: $d = 61$ oppure $d = 67$. Se $d$ fosse $61$, allora $a < b < c < 60$ per cui\n$$\n240 = a + b + c + d < 3 \\cdot 59 + 61 < 240\n$$\ned è impossibile. Altrimenti $d = 67$ ed essendo $a < b < c < d$ abbiamo $a \\leq 53$, $b \\leq 59$, $c \\leq 61$. D'altra parte\n$$\n240 = a + b + c + d \\leq 53 + 59 + 61 + 67 = 240,\n$$\nper cui $(a, b, c, d) = (53, 59, 61, 67)$ è l'unica soluzione.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34048, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABC$ un triangolo acutangolo con $AB = AC$. Sia $D$ il piede dell'altezza uscente da $C$, sia $M$ il punto medio di $AC$, e sia $E$ la seconda intersezione tra il lato $BC$ e la circonferenza circoscritta al triangolo $CDM$.\nDimostrare che le rette $AE$, $BM$ e $CD$ passano per uno stesso punto se e solo se $CE = CM$.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34049, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLucia, dopo aver disegnato il quadrato $ABCD$ di lato unitario, traccia una circonferenza di centro $C$ e raggio uguale al lato del quadrato. Indica poi con $X$ l'intersezione tra la diagonale $AC$ e la circonferenza, e con $Y$ l'intersezione della retta $DX$ con il lato $AB$. Quanto vale la lunghezza del segmento $AY$?\n\n(A) $\\frac{\\sqrt{2}+1}{6}$\n(B) $\\sqrt{2}-1$\n(C) $\\frac{\\sqrt{2}}{3}$\n(D) $\\frac{3+\\sqrt{2}}{8}$\n(E) $\\frac{\\sqrt{2}}{2}$", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è $\\mathbf{(B)}$. Tracciamo la retta $r$ perpendicolare al lato $AD$ e passante per $X$. Sia $H$ l'intersezione fra $r$ ed $AD$, e sia $K$ l'intersezione fra $CB$ ed $r$. Sia $J$ la proiezione di $X$ sul lato $CD$. Mostriamo intanto che i triangoli $DHX$ e $DAY$ sono simili. Infatti, $\\angle XDH = \\angle YDA$ poiché in comune fra i due triangoli, e $\\angle DHX = \\angle DAY = 90^\\circ$, poiché il primo è l'angolo che formano le due rette perpendicolari $HX$ e $AD$, mentre il secondo è l'angolo di un quadrato; il primo criterio di similitudine fra triangoli porta alla conclusione che cercavamo. Da ciò ricaviamo che\n$$\n\\frac{HX}{DH} = \\frac{AY}{AD} = \\frac{AY}{AB}.\n$$\nNotiamo ora che $CKDJ$ forma un quadrato: infatti ha tre angoli uguali a $90^\\circ = \\angle CJX = \\angle XKC = \\angle KCJ$, i primi due perché angoli formati da due rette ortogonali e l'ultimo perché angolo di un quadrato. Perciò abbiamo $KX = CK = CJ$. Chiamiamo $\\ell$ il lato del quadrato. Siccome $CX = CB = \\ell$, raggio della circonferenza, abbiamo che $CX = \\sqrt{2} \\cdot CK$. $KCDH$ è un rettangolo, perché ha tutti gli angoli retti, pertanto si può ottenere la relazione $CK = DH$, e per differenza di segmenti $HX = HK - XK = DC - JC$. Mettendo insieme quanto trovato, otteniamo che $DH = CK = \\frac{\\ell}{\\sqrt{2}}$ e che $HX = DC - CJ = \\ell - \\frac{\\ell}{\\sqrt{2}} = \\left(\\frac{2-\\sqrt{2}}{2}\\right) \\ell$. Possiamo ora concludere, poiché\n$$\n\\frac{AY}{AB} = \\left(\\frac{2-\\sqrt{2}}{2}\\right) \\frac{1}{\\sqrt{2}} = \\sqrt{2} - 1\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34050, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAttorno a un tavolo rotondo sono sedute, a distanza costante l'una dalla successiva, 32 persone. In quanti modi è possibile scegliere 3 di loro in modo che a coppie non siano né adiacenti né diametralmente opposte?\n(A) 2246\n(B) 2480\n(C) 3616\n(D) 24128\n(E) Nessuna delle precedenti", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è (C). Selezioniamo le persone una alla volta. All'inizio non abbiamo vincoli, quindi possiamo scegliere la prima persona in 32 modi. Possiamo ora scegliere la seconda persona in 28 modi, escludendo dalle 32 la persona già selezionata, le due adiacenti ad essa e quella di fronte. Tuttavia non possiamo considerarle tutte assieme, perché a seconda di come scegliamo la seconda persona, la terza può essere scelta in modi diversi.\n\n- Se scegliamo la seconda persona tra i due posti adiacenti a quello diametralmente opposto alla nostra prima scelta, questa esclude un solo posto, oltre ai tre già bloccati prima e ai due presi. Infatti dei due adiacenti, uno era già bloccato (diametralmente opposto al primo) e uno solo viene bloccato ora, mentre quello diametralmente opposto era già stato escluso in quanto adiacente al primo. Quindi possiamo scegliere il terzo tra $32-1-3-2=26$ posti, per un totale di $32 \\cdot 2 \\cdot 26$ scelte per questo primo caso.\n\n- Se scegliamo la seconda persona tra i due posti vicini ai due adiacenti alla nostra prima scelta, andiamo ad escludere il posto appena preso, uno dei due posti adiacenti (l'altro era già bloccato) e il posto diametralmente opposto. Quindi possiamo scegliere il terzo tra $32-1-3-3=25$ posti, per un totale di $32 \\cdot 2 \\cdot 25$ combinazioni.\n\n- Se scegliamo la seconda persona tra i 24 posti rimanenti, una volta esclusi quelli dei due casi precedenti, tale scelta ci esclude 4 posti (quello scelto, i due adiacenti e quello opposto), per un totale di $32 \\cdot 24 \\cdot 24$ combinazioni.\n\nIn totale abbiamo quindi $32\\left(24^{2}+2 \\cdot 25+2 \\cdot 26\\right)$ possibili scelte, da dividere per $3 !=6$ siccome abbiamo tenuto conto dell'ordine nella scelta delle persone.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34051, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $S$ l'insieme degli interi maggiori o uguali a 2. Una funzione $f: S \\rightarrow S$ si dice primordiale se verifica le seguenti proprietà:\n- è surgettiva (cioè per ogni $s \\in S$ esiste almeno un $n \\in S$ tale che $f(n)=s$ ),\n- è crescente sui primi (cioè se $p_{1}1$ tale che $v_{V}=k v_{Z}$, dove $v_{V}$ e $v_{Z}$ sono le velocità di Veronica e Zanobi, rispettivamente.\n\nVeronica completa 28 vasche in tempo $T$. Possiamo calcolare il numero $L_{Z}$ di vasche percorse da Zanobi come segue: la velocità di Veronica è $v_{V}=28 / T$, quella di Zanobi è $v_{Z}=L_{Z} / T$. Ma allora\n$$\nL_{Z}=T v_{Z}=\\frac{28}{v_{V}} v_{Z}=\\frac{28}{k}\n$$\nAlla fine delle 28 vasche, Veronica si trova sulla stessa sponda da cui era partita e, dato che Zanobi si trova alla stessa altezza, anche lui deve avere completato un numero intero e pari di vasche. Affinché $k$ sia un valore valido, quindi, deve valere $k=28 / L_{Z}>1$, dove $L_{Z}$ è un numero pari maggiore di zero e minore di 28.\n\nPossiamo ripetere il medesimo ragionamento quando Veronica compie 70 vasche: dobbiamo imporre che $70 / k$ sia pari e intero, ma\n$$\n70 / k=L_{Z} \\cdot 70 / 28=L_{Z} \\cdot 5 / 2=5 \\cdot\\left(L_{Z} / 2\\right)\n$$\nche è sempre intero, ed è pari se e solo se $L_{Z}$ è un multiplo di 4 . Gli unici valori di $L_{Z}$ e $k$ validi sono pertanto $L_{Z} \\in\\{4,8,12,16,20,24\\}$, da cui $k=28 / L_{Z} \\in\\{7,7 / 2,7 / 3,7 / 4,7 / 5,7 / 6\\}$. Essi corrispondono ai seguenti possibili valori per il numero $m$ di vasche fatte da Zanobi:\n$$\nm=70 / k \\in\\{10,20,30,40,50,60\\} .\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34053, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn ogni casella di una tabella $8 \\times 8$ abita un cavaliere o un furfante. Come da tradizione, i cavalieri dicono sempre la verità, mentre i furfanti mentono sempre. Tutti gli abitanti della tabella affermano che \"il numero dei furfanti nella mia colonna è maggiore (strettamente) del numero dei furfanti nella mia riga\".\n\nDeterminare quante sono le possibili configurazioni compatibili con questa affermazione.", "options": [], "answer": "255", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34054, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABCD$ un rettangolo e siano $M, N$ punti interni, rispettivamente, ai lati $AB$ e $BC$. Supponiamo che $MC = CD$, $MD = MN$ e che i punti $C, D, M, N$ appartengano a una stessa circonferenza.\n\nQuanto vale il rapporto $AB / BC$?\n\n(A) $\\frac{1+\\sqrt{3}}{2}$\n(B) $\\sqrt{2}$\n(C) $\\frac{3}{2}$\n(D) $\\sqrt{3}$\n(E) $2$", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è (B). Dal momento che il quadrilatero $CDMN$ è circoscrivibile, sappiamo che l'angolo $\\angle CDM$ è uguale al supplementare dell'angolo $\\angle MNC$, cioè all'angolo $\\angle MNB$. D'altra parte, gli angoli $\\angle CDM$ e $\\angle AMD$ sono uguali, in quanto angoli alterni interni formati dalle parallele $AB$ e $CD$ con la trasversale $DM$. Ne deduciamo quindi che $\\angle AMD = \\angle MNB$.\n\nI triangoli rettangoli $ADM$ e $BMN$ hanno dunque un angolo acuto uguale e, per ipotesi, ipotenuse uguali $(DM = MN)$ e sono dunque congruenti. In particolare risulta $AD = MB$, e, poiché $AD = BC$, il triangolo $BCM$ è isoscele rispetto alla base $CM$ (oltre a essere rettangolo in $B$), per cui il rapporto tra la sua ipotenusa e uno dei cateti è $\\sqrt{2}$. Vale allora $AB / BC = CD / BC = CM / BC = \\sqrt{2}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34055, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAisha scrive su un foglio tutti i numeri da $1$ a $2020$. Quanto vale la differenza tra il numero di cifre \"1\" e il numero di cifre \"0\" che ha scritto?\n\n(A) $78$\n(B) $1010$\n(C) $1089$\n(D) $2020$\n(E) $5005$", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è (C). Osserviamo che, dato un numero con scrittura decimale $abcd$, se fissiamo $a \\neq 0$, abbiamo $10$ scelte per ciascuna delle cifre $b, c, d$: tra queste $10$ scelte, esattamente una è \"1\", come anche esattamente una è \"0\". Notiamo inoltre che lo stesso ragionamento può essere fatto con un numero a tre cifre $abc$ e a due cifre $ab$.\n\nQuesto ci permette di dire che, se $a \\neq 1$, il numero di \"1\" e il numero di \"0\" tra $a000$ e $a999$ è lo stesso; se invece $a=1$, avremo $1000$ \"1\" (derivanti dalla cifra $a$ scritta mille volte) in più degli \"0\".\n\nSimilmente, se $a \\neq 1$, il numero di \"1\" e \"0\" tra $a00$ e $a99$ e tra $a0$ e $a9$ è lo stesso. Se invece $a=1$ abbiamo $100$ \"1\" in più tra $100$ e $199$ e $10$ \"1\" in più tra $10$ e $19$.\n\nChiamiamo $\\Delta N$, la differenza tra il numero di \"1\" e il numero di \"0\" nell'insieme di numeri $N$. Possiamo allora affermare che:\n\n- Detto $N_1$ l'insieme dei numeri tra $1$ e $9$ abbiamo $\\Delta N_1=1$;\n- detto $N_2$ l'insieme dei numeri tra $10$ e $19$ abbiamo $\\Delta N_2=10$;\n- detto $N_3$ l'insieme dei numeri tra $20$ e $99$ abbiamo $\\Delta N_3=0$;\n- detto $N_4$ l'insieme dei numeri tra $100$ e $199$ abbiamo $\\Delta N_4=100$;\n- detto $N_5$ l'insieme dei numeri tra $200$ e $999$ abbiamo $\\Delta N_5=0$;\n- detto $N_6$ l'insieme dei numeri tra $1000$ e $1999$ abbiamo $\\Delta N_6=1000$.\n\nRimane solo da contare $\\Delta N_7$ con $N_7$ l'insieme dei numeri tra $2000$ e $2020$, ma è facile verificare che $\\Delta N_7=-22$. Dunque, se $N$ è l'insieme di tutti i numeri tra $1$ e $2020$, $\\Delta N=\\sum_{i=1}^{7} \\Delta N_i=1111-22=1089$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34056, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nI numeri reali $x_{1}, x_{2}, x_{3}, \\ldots, x_{30}$ verificano le seguenti condizioni:\n$$\n\\left\\{\\begin{array}{l}\n20^{3} x_{1}+21^{3} x_{2}+22^{3} x_{3}+\\cdots+49^{3} x_{30}=13 \\\\\n21^{3} x_{1}+22^{3} x_{2}+23^{3} x_{3}+\\cdots+50^{3} x_{30}=1 \\\\\n22^{3} x_{1}+23^{3} x_{2}+24^{3} x_{3}+\\cdots+51^{3} x_{30}=19\n\\end{array}\\right.\n$$\nQuanto vale $21 x_{1}+22 x_{2}+23 x_{3}+\\cdots+50 x_{30}$ ?\n(A) Ci sono più valori accettabili\n(B) Il sistema non ha soluzione\n(C) 1065\n(D) 7\n(E) 5", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è (E). Sommando la prima equazione alla terza, si ottiene un'equazione della forma $a_{1} x_{1}+a_{2} x_{2}+\\ldots+a_{30} x_{30}=32$, dove $a_{1}=(21+1)^{3}-(21-1)^{3}=21^{3}+3 \\cdot 21^{2}+3 \\cdot 21+1+21^{3}-3 \\cdot 21^{2}+3 \\cdot 21-1=2 \\cdot 21^{3}+6 \\cdot 21$, $a_{2}=(22+1)^{3}-(22-1)^{3}=2 \\cdot 22^{3}+6 \\cdot 22$, e in generale $a_{i}=2 \\cdot(20+i)^{3}+6 \\cdot(20+i)$. Ora, sottraendo a questa equazione la seconda equazione del sistema moltiplicata per due, si ottiene l'equazione $6 \\cdot 21 x_{1}+6 \\cdot 22 x_{2}+\\ldots+6 \\cdot 50 x_{30}=32-2=30$. Di conseguenza, se $x_{1}, \\ldots, x_{30}$ soddisfano le tre equazioni del sistema, allora $21 x_{1}+22 x_{2}+\\ldots+50 x_{30}=30 / 6=5$.\n\nD'altra parte, il sistema ha effettivamente soluzione (in effetti ne ha infinite possibili!). Anche ponendo per esempio $x_{4}=x_{5}=\\ldots=x_{30}=0$, è possibile calcolare valori di $x_{1}, x_{2}, x_{3}$ che soddisfino il sistema tramite sostituzioni successive.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34057, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nQuanti sono i numeri di 6 cifre divisibili per 33 che siano palindromi, cioè che rimangano uguali se letti da destra verso sinistra?\n(A) 30\n(B) 33\n(C) 300\n(D) 333\n(E) Nessuna delle precedenti.", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è $\\mathbf{( C )}$. Dato che il numero è palindromo, possiamo scriverlo come $a b c c b a$, dove $a, b, c$ sono cifre e $a \\neq 0$. Il criterio di divisibilità per $11$ è allora automaticamente soddisfatto, essendo $a-b+c-c+b-a=0$.\n\nPer il criterio di divisibilità per $3$ occorre che $2(a+b+c)$ sia multiplo di $3$, ovvero che il numero $a b c$ sia multiplo di $3$; la risposta è dunque il numero di interi $100 \\leq n \\leq 999$ multipli di $3$, che sono $\\frac{999-102}{3}+1=300$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34058, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn intero positivo $m$ si dice portatore di zeri se esiste un intero positivo $k$ tale che\n- $k$ è un quadrato perfetto,\n- $k$ è multiplo di $m$,\n- l'espressione decimale di $k$ contiene almeno 2021 cifre 0, ma l'ultima cifra (quella più a destra) è diversa da 0 .\nDeterminare tutti gli interi portatori di zeri.", "options": [], "answer": "All positive integers not divisible by ten", "solution": "Solution:\n\nUn intero positivo $m$ è portatore di zeri se e solo se $m$ non è divisibile per $10$.\n\nCondizione necessaria\nSe $m$ è multiplo di $10$, allora $m$ non può essere portatore di zeri, in quanto ogni multiplo di $m^{2}$ terminerà necessariamente con almeno due cifre $0$.\n\nCondizione sufficiente\nDimostriamo che, se $m$ non è multiplo di $10$, allora è portatore di zeri. A tal fine consideriamo, per ogni intero positivo $a$, il numero\n$$\nk = (10^{a} + 1)^{2} m^{2} = 10^{2a} m^{2} + 2 \\cdot 10^{a} m^{2} + m^{2} = 10^{a} \\cdot m^{2} (10^{a} + 2) + m^{2}.\n$$\nScritto in questo modo, il primo addendo è multiplo di $10^{a}$, dunque la sua espressione decimale termina con $a$ cifre $0$. Se indichiamo con $M$ il numero di cifre di $m^{2}$, e poniamo $a = 2021 + M$, allora siamo sicuri che l'espressione decimale di $k$ terminerà con le $M$ cifre di $m^{2}$, precedute da $2021$ cifre $0$. Inoltre la cifra delle unità di $k$ sarà diversa da $0$, come richiesto.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34059, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDeterminare il numero di terne ordinate $(a, b, c)$ di interi non negativi tali che ciascuno dei numeri $2^{a}$, $2^{b}$, $2^{c}$ sia minore di $10000$ e che il numero $2^{a}+2^{b}+2^{c}$ sia un divisore di $8^{a}+8^{b}+8^{c}$.\n\n(A) 14\n(B) 50\n(C) 53\n(D) 72\n(E) 86", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è $\\mathbf{( E )}$. Iniziamo osservando che vale l'identità algebrica\n$$\nx^{3}+y^{3}+z^{3}-3 x y z=(x+y+z)\\left(x^{2}+y^{2}+z^{2}-x y-y z-x z\\right)\n$$\nPonendo $x=2^{a}$, $y=2^{b}$, $z=2^{c}$, la condizione $x+y+z \\mid x^{3}+y^{3}+z^{3}$ è equivalente a $x+y+z \\mid 3 x y z$; in particolare, vogliamo cercare le terne $(a, b, c)$ tali che $2^{a}+2^{b}+2^{c} \\mid 3 \\cdot 2^{a+b+c}$.\nSe supponiamo $a \\leq b \\leq c$, semplificando un $2^{a}$ ricaviamo che $1+2^{b-a}+2^{c-a} \\mid 3 \\cdot 2^{b+c}$. Se fosse $b>a$, a sinistra avrei un numero dispari $\\geq 5$, mentre a destra un numero la cui parte dispari è 3 , il che è impossibile. Dunque vale $b=a$ e dobbiamo trovare le soluzioni di $2+2^{c-a} \\mid 3 \\cdot 2^{c+a}$. A questo punto dividiamo in quattro casi\n\n- Se $c=a$, $2+1 \\mid 3 \\cdot 2^{2 a}$ è sempre soddisfatta, quindi abbiamo tutte le terne del tipo $(a, a, a)$ con $0 \\leq a \\leq 13$ (dato che $2^{13}<10000<2^{14}$ ), che sono 14 .\n\n- Se $c=a+1$, possiamo riscrivere la condizione come $2+2 \\mid 3 \\cdot 2^{2 a+1}$, che è verificata per $a \\geq 1$ e da cui otteniamo le terne $(a, a, a+1)$ e loro permutazioni; dunque questo caso in totale ha $3 \\cdot 12$ soluzioni (poiché deve essere anche $a+1 \\leq 13$ )\n\n- Se $c=a+2$, la condizione diventa $2+4 \\mid 3 \\cdot 2^{2 a+2}$, che è verificata per $a \\geq 0$. Otteniamo dunque le terne $(a, a, a+2)$ e loro permutazioni, che sono valide fino a $a+2 \\leq 13$, dunque $3 \\cdot 12$ soluzioni anche in questo caso.\n\n- Se $c \\geq a+3$, detto $d=c-a-1$ abbiamo $1+2^{d} \\mid 3 \\cdot 2^{2 a+d}$. Dato che $d \\geq 2$, il numero a sinistra è dispari $\\mathrm{e} \\geq 5$, quindi non ci sono soluzioni.\n\nIl numero totale di terne ordinate è quindi $14+36+36=86$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34060, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABC$ un triangolo equilatero di lato unitario e sia $P$ un punto dalla parte opposta della retta $AB$ rispetto al punto $C$, tale che l'angolo $\\widehat{APB}$ misuri $60^{\\circ}$. Supponiamo che la bisettrice dell'angolo $\\overline{APB}$ intersechi i segmenti $AB$ e $AC$ nei punti $X$ e $Y$, rispettivamente. Qual è il minimo valore possibile per l'area del triangolo $AXY$?\n\n(A) $\\frac{1}{3 \\sqrt{3}}$\n(B) $\\frac{1}{2 \\sqrt{3}}$\n(C) $\\frac{\\sqrt{3}}{12}$\n(D) $\\frac{\\sqrt{3}}{8}$\n(E) Nessuna delle precedenti.", "options": [], "answer": "(A)", "solution": "Solution:\n\nLa risposta è $\\mathbf{(A)}$.\n\n![](attached_image_1.png)\n\nSia $O$ il centro del triangolo. Il punto $P$ giace per ipotesi sull'arco della circonferenza circoscritta ad $AOB$ esterno al triangolo. La bisettrice dell'angolo $A\\hat{P}B$ passa per il punto medio dell'arco $AB$ opposto a quello sui cui giace, che è proprio $O$.\n\n![](attached_image_2.png)\n\nAl variare delle rette che passano per $O$ e che intersecano i segmenti $AB$ e $AC$ rispettivamente in $X$ e $Y$, quella per cui l'area del triangolo $AXY$ è minima è quella parallela a $BC$. Chiamiamo $X'$ e $Y'$ le intersezioni relative a quest'ultima e supponiamo, per simmetria, che $BX < BX'$: vogliamo mostrare che\n\n$$\n0 < [AXY] - [AX'Y'] = [OX'X] - [OY'Y]\n$$\n\nPoiché questi due triangolini hanno l'angolo in $O$ uguale e $OX' = OY'$, è sufficiente osservare che $OX > OX' = OY' > OY$.\n\nIl minimo valore possibile per l'area del triangolo $AXY$ è dunque\n\n$$\n\\frac{4}{9} \\cdot [ABC] = \\frac{4}{9} \\cdot \\frac{\\sqrt{3}}{4} = \\frac{1}{3 \\sqrt{3}}\n$$\n\nIn alternativa. Supponiamo di fissare un sistema cartesiano con origine in $O$. I punti $X$ e $Y$ dipendono linearmente dal coefficiente angolare della retta per $O$, dunque l'area di $AXY$ dipende quadraticamente da questo parametro: pertanto il minimo può trovarsi solamente al vertice della parabola, che per simmetria deve corrispondere alla retta parallela a $BC$, oppure agli estremi, uno dei quali corrisponde all'altezza per $B$. Nel primo caso l'area è $4/9$ quella di $ABC$, nell'altro la metà.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34061, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $N$ il numero di sestuple ordinate di interi $(a, b, c, d, e, f)$ tali che $a^{3}+b^{3}+c^{3}+d^{3}+e^{3}+f^{3}=168$ e $-202120212021^{9} b$, $(a, b-a)$ se $b > a$.\n\nNe segue che le posizioni della cavalletta precedenti a $(2021,2050)$, andando a ritroso, sono: $(2021,2050-2021) = (2021,29)$, $(2021-29,29)$, $(2021-2 \\cdot 29,29)$, $\\ldots$, $(2021-69 \\cdot 29,29) = (20,29)$, $(20,29-20) = (20,9)$. La cavalletta potrebbe essere quindi partita da $(20,9)$; se non lo ha fatto, può aver effettuato un ulteriore salto ed essere partita da $(20-9,9) = (11,9)$ o due ulteriori salti ed essere partita da $(11-9,9) = (2,9)$. Se la cavalletta avesse fatto ancora più salti, sarebbe partita da un punto la cui seconda coordinata è al più 7, che non soddisfa le condizioni del testo. Vi sono quindi 3 possibilità per $(x_0, y_0)$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34063, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABCD$ un rettangolo e sia $E$ un punto arbitrario, diverso da $C$, sul lato $DC$. Sia $H$ la proiezione di $E$ sulla diagonale $AC$ e sia $K$ la proiezione di $C$ sulla semiretta $AE$.\n\na. Dimostrare che $K$ giace sulla circonferenza circoscritta ad $ABCD$ e che il quadrilatero $CKEH$ è ciclico, cioè inscrivibile in una circonferenza.\n\nb. Dimostrare che $\\widehat{CKB} + \\widehat{CKH} = 90^\\circ$.\n\nc. Dimostrare che $K, H, B$ sono allineati se e solo se $ABCD$ è un quadrato.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nAffrontiamo in sequenza i punti.\n\n![](attached_image_1.png)\n\na.\nLa diagonale $AC$ è diametro della circonferenza $\\Gamma_1$ circoscritta al rettangolo $ABCD$. L'angolo $\\widehat{CKA}$ è retto per costruzione e la circonferenza circoscritta al triangolo rettangolo $CKA$ ha $AC$ come diametro. Quindi le due circonferenze sono le stesse, cioè $K$ appartiene alla circonferenza circoscritta al rettangolo $ABCD$.\n\nRicordiamo che condizione necessaria e sufficiente affinché un quadrilatero (non intrecciato) sia ciclico è che angoli opposti siano supplementari. Nel quadrilatero $CKEH$ gli angoli opposti $\\widehat{CKE}$ e $\\widehat{EHC}$ sono entrambi retti per costruzione e, dunque, supplementari. Il quadrilatero $CKEH$ è quindi inscritto in una circonferenza, che chiamiamo $\\Gamma_2$.\n\nb.\nAbbiamo $\\widehat{CKB} = \\widehat{CAB}$ perché insistenti sullo stesso arco di $\\Gamma_1$; allo stesso tempo, $\\widehat{CKH} = \\widehat{CEH}$ perché insistenti sullo stesso arco di $\\Gamma_2$. Ma $\\widehat{CEH} = 90^\\circ - \\widehat{HCE} = \\widehat{ACB}$ considerando la somma degli angoli interni del triangolo rettangolo $EHC$ e il fatto che $\\widehat{DCB}$ sia retto. Perciò $\\widehat{CKB} + \\widehat{CKH} = \\widehat{CAB} + \\widehat{ACB} = 90^\\circ$ perché il triangolo $ABC$ è rettangolo.\n\nc.\nChiaramente, i punti $H$ e $B$ si trovano dalla parte opposta della retta $DC$ rispetto al punto $K$; ne segue che $K, B, H$ sono allineati se e solo se $\\widehat{CKH} = \\widehat{CKB}$. Ma abbiamo dimostrato che $\\widehat{CKH} + \\widehat{CKB} = 90^\\circ$, quindi l'allineamento è equivalente al fatto che si abbia $\\widehat{CKH} = \\widehat{CKB} = 45^\\circ$, che a sua volta equivale a $\\widehat{CAB} = \\widehat{ACB} = 45^\\circ$ per le identità di angoli trovate. Ma questo è equivalente al fatto che il triangolo $ABC$ sia rettangolo isoscele su base $AC$, cioè che $ABCD$ sia un quadrato.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34064, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAmbra costruisce una sequenza di numeri, a partire da numero reale positivo $x_{0}$, nel seguente modo: dato l'$n$-esimo termine $x_{n}$, il termine successivo è $x_{n+1} = \\{1 - \\frac{1}{x_{n}}\\}$, dove $\\{\\alpha\\}$ rappresenta la parte frazionaria di $\\alpha$, cioè la differenza fra $\\alpha$ e il massimo numero intero minore o uguale di $\\alpha$. Non appena Ambra ottiene un termine uguale a $0$, interrompe la sequenza.\n\na. Dimostrare che se il numero di partenza $x_{0}$ è della forma $\\frac{p}{q}$, dove $p$ e $q$ sono interi positivi, prima o poi la sequenza si interrompe.\n\nb. Dimostrare che, se la sequenza si interrompe, allora il punto di partenza $x_{0}$ era della forma $\\frac{p}{q}$, dove $p$ e $q$ sono interi positivi.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\na. Se possiamo scrivere $x_{n}$ nella forma $x_{n} = \\frac{p_{n}}{q_{n}}$ con $p_{n}$ e $q_{n}$ interi coprimi, allora anche $x_{n+1}$ potrà essere scritto nella stessa forma. Infatti se definiamo il numero intero $k$ come $k = -\\left\\lfloor 1 - \\frac{1}{x_{n}} \\right\\rfloor$ (dove $\\lfloor x \\rfloor$ indica il più grande numero intero minore o uguale ad $x$), abbiamo\n$$\nx_{n+1} = 1 - \\frac{1}{x_{n}} + k = \\frac{(1+k)p_{n} - q_{n}}{p_{n}} = \\frac{p_{n+1}}{q_{n+1}}\n$$\ncon $p_{n+1}$ e $q_{n+1}$ coprimi.\nIn particolare $q_{n+1} \\leq p_{n}$ e il minore è stretto qualora $p_{n}$ non sia coprimo con $(1+k)p_{n} - q_{n}$.\nOra, dato che per $n \\geq 1$ si ha che $0 \\leq x_{n} < 1$, necessariamente $q_{n} > p_{n} \\geq q_{n+1}$. Pertanto la sequenza di numeri interi positivi $q_{m}$ è strettamente decrescente, dunque non può essere infinita.\n\nNota. La frazione $\\frac{(1+k)p_{n} - q_{n}}{p_{n}}$ è in effetti già ridotta ai minimi termini: si ha infatti $\\operatorname{MCD}\\left(p_{n}, (1+k)p_{n} - q_{n}\\right) = \\operatorname{MCD}\\left(p_{n}, q_{n}\\right) = 1$, dove la prima uguaglianza segue dalla ben nota proprietà $(a + k b, b) = (a, b)$.\n\nb. La successione si interrompe precisamente quando un certo elemento $x_{n}$ è uguale a $0$. Data la formula che definisce la successione, $x_{n} = \\{1 - \\frac{1}{x_{n-1}}\\}$, questo ci dice che $1 - \\frac{1}{x_{n-1}}$ è un numero intero, diciamo $m$, e quindi che $x_{n-1} = \\frac{1}{1 - m}$ è un numero razionale. Possiamo ora procedere a ritroso: se un certo termine $x_{h}$ è razionale, allora dalla formula $x_{h} = \\{1 - \\frac{1}{x_{h-1}}\\}$ otteniamo che esiste un intero $m_{h}$ tale che $x_{h} = 1 - \\frac{1}{x_{h-1}} - m_{h}$, da cui $x_{h-1} = \\frac{1}{1 - m_{h} - x_{h}}$ è anch'esso un numero razionale. Procedendo in tal modo si ottiene (per induzione) che anche $x_{0}$ è razionale, come voluto.\n\nSoluzione alternativa.\nDimostrare che se $x_{0} > 0$ ha sequenza finita, allora è un razionale (cioè $x_{0} = \\frac{p}{q}$ per opportuni $p, q$ interi) equivale a dimostrare che se $x_{0} > 0$ non è razionale, allora la sua sequenza è infinita.\nMostriamo che se $x_{n}$ non è razionale, allora non lo è neanche $x_{n+1}$; infatti, se esistessero $p, q \\in \\mathbb{N}$ tali che $\\frac{p}{q} = x_{n+1} = \\{1 - \\frac{1}{x_{n}}\\}$, avremmo $x_{n} = \\frac{q}{(1+k)q - p}$ (con $k$ come nella prima parte della dimostrazione dell'esercizio), cioè $x_{n}$ sarebbe razionale contrariamente all'ipotesi.\nQuindi, per induzione, se $x_{0} > 0$ non è razionale, nessun termine della sequenza è razionale, quindi in particolare $0$ non può comparire nella sequenza.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34065, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUna mappa del tesoro è costituita dalla cartina di un'isola (infinitamente estesa in tutte le direzioni) a cui è sovrapposta una griglia quadrata. Le caselle della griglia sono numerate a spirale come in figura.\nI pirati hanno nascosto il loro tesoro suddividendolo in forzieri che hanno seppellito in alcune delle caselle, quelle \"numerate con quegli $n$ che racchiudono in sé le indicazioni per raggiungerle dalla casella 1\". Con questa frase i pirati intendono dire quanto segue: scrivendo il numero $n$ in base dieci, chiamiamo $a_{1}, \\ldots, a_{k}$ le sue cifre, lette da sinistra verso destra; nella casella $n$ c'è un forziere con\n![](attached_image_1.png)\nparte del tesoro se (e solo se) la si può raggiungere partendo dalla casella 1 ed effettuando $a_{1}$ passi in una certa direzione (Nord, Sud, Ovest o Est), $a_{2}$ passi in una certa direzione (eventualmente la stessa di prima), .. e infine $a_{k}$ passi in una delle 4 direzioni.\nPer esempio: nella casella 12 c'è un forziere, perché partendo da 1 e facendo 1 passo verso Nord e 2 passi verso Est si arriva proprio in 12. Nella casella 1, invece, non c'è alcun forziere, perché in qualunque direzione si faccia un passo partendo da 1 , si finisce in una casella diversa dalla 1. Dimostrare che c'è solamente un numero finito di caselle in cui è seppellito un forziere.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nFissiamo un intero positivo $n$ e consideriamo una casella, numerata $C$, che si trovi al di fuori del quadrato centrato sulla casella 1 di lato $2n-1$ caselle, ma che abbia almeno un vertice in comune col perimetro di tale quadrato. Per via della numerazione a spirale, le caselle all'interno del quadrato sono numerate da $1$ a $(2n-1)^2$, e quelle esterne che hanno almeno un vertice in comune con il perimetro del quadrato sono numerate fino a $(2n+1)^2$, quindi abbiamo necessariamente $(2n-1)^2 < C \\leq (2n+1)^2$.\n\nSia $S(C)$ la somma delle cifre di $C$; affinché la casella numerata $C$ contenga un forziere, bisogna che sia raggiungibile dalla casella 1 tramite al più $S(C)$ passi. D'altra parte, sono necessari almeno $n$ passi per uscire dal quadrato $(2n-1) \\times (2n-1)$ centrato in 1, e quindi affinché la casella contenga un forziere è necessario che si abbia $S(C) \\geq n$.\n\nMa $S(C) \\leq 9 \\cdot$ (numero di cifre di $C$) $\\leq 9 \\cdot$ (numero di cifre di $(2n+1)^2) \\leq 18 \\cdot$ (numero di cifre di $2n+1$) $\\leq 18 \\cdot (1+$ numero di cifre di $n)$, mentre $n \\geq 10^{(\\text{numero di cifre di } n)-1}$.\n\nDimostriamo che, se $n$ ha almeno 3 cifre, allora $C$ non può contenere un forziere. In effetti, dato $k \\geq 3$, si ha $S(C) \\leq 18(k+1) < 10^{k-1} \\leq n$, che contraddice la condizione richiesta. In effetti, $18 \\cdot 4 = 72 < 100$ e, se si ha $18(k+1) < 10^{k-1}$ e $k \\geq 3$, allora $18(k+2) = 18(k+1) + 18 < 10^{k-1} + 18 < 2 \\cdot 10^{k-1} < 10^k$, quindi la disuguaglianza vale per ogni $k \\geq 3$.\n\nIn conclusione, nessuna casella numerata $C$ con $C > (2 \\cdot 100 - 1)^2$ contiene un forziere, perché si trova appena fuori da un quadrato centrato in 1 di lato $2n-1$ per qualche $n$ con almeno tre cifre.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34066, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDi un triangolo di vertici $A, B, C$ sappiamo che $AB = 5$, $BC = 4$ e $AC = AM$, dove $M$ è il punto medio del lato $BC$. Quanto vale la lunghezza del lato $AC$?\n\n(A) 4\n(B) $\\sqrt{17}$\n(C) $3\\sqrt{2}$\n(D) $2\\sqrt{5}$\n(E) $\\sqrt{21}$", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è $\\mathbf{(B)}$.\n\n![](attached_image_1.png)\n\nPoiché $M$ è punto medio otteniamo che $BM = MC = 2$. Sia $H$ il punto medio di $MC$, e in particolare $MH = HC = 1$; dato che il triangolo $AMC$ è isoscele su base $MC$, $H$ è anche il piede dell'altezza e perciò l'angolo $\\angle AHB$ è retto.\n\nDunque il triangolo $ABH$ è rettangolo, con ipotenusa $AB$ lunga $5$ e cateto $BH$ lungo $3$; ne consegue che $AH = 4$. Infine $AC$ è ipotenusa del triangolo $AHC$, perciò\n$$\nAC = \\sqrt{4^2 + 1^2} = \\sqrt{17}\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34067, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABC$ un triangolo e sia $I$ il centro della sua circonferenza inscritta. Sia $D$ il simmetrico di $I$ rispetto al lato $AB$, e sia $E$ il simmetrico di $I$ rispetto al lato $AC$.\nDimostrare che le circonferenze circoscritte ai triangoli $BID$ e $CIE$ sono tra di loro tangenti.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nSiano $X, Y, Z$ i punti di tangenza della circonferenza inscritta con i lati $AB, AC, BC$, rispettivamente. Dimostriamo che la retta $IZ$ è tangente ad entrambe le circonferenze.\n\nIndichiamo con $\\alpha, \\beta, \\gamma$ le ampiezze degli angoli in $A, B, C$, rispettivamente. Indichiamo con $T$ un punto sulla retta $ZI$, dalla parte opposta di $Z$ rispetto ad $I$. Dimostrare che la retta $ZI$ è tangente alla circonferenza circoscritta al triangolo $BID$ è equivalente a dimostrare che $\\angle DBI = \\angle DIT$. Mostreremo che entrambi gli angoli sono uguali a $\\beta$.\n\nInfatti, il quadrilatero $IXBZ$ è ciclico, in quanto ha gli angoli in $X$ e $Z$ retti. Ne segue che $\\angle TIX = \\angle ZBX = \\beta$, in quanto entrambi supplementari di $\\angle XIZ$. D'altra parte $\\angle DBI = 2 \\angle XBI$ (in quanto $BX$ è altezza rispetto alla base, dunque anche bisettrice, nel triangolo isoscele $DBI$) e $\\angle XBI = \\beta / 2$ in quanto $BI$ è bisettrice del triangolo $ABC$.\n\nIn maniera del tutto analoga si dimostra che $\\angle ECI = \\angle EIT = \\gamma$.\n\n![](attached_image_1.png)\nSolution:\n\nSe le circonferenze circoscritte ai triangoli $BID$ e $CIE$ sono tangenti, allora il punto di tangenza è necessariamente $I$. Indicati con $O_{1}$ e $O_{2}$ i circocentri di $BID$ e $CIE$, la tesi vale se e soltanto se i punti $O_{1}, I$ e $O_{2}$ sono allineati.\n\nIndichiamo con $\\alpha, \\beta, \\gamma$ le ampiezze degli angoli in $A, B, C$, rispettivamente. Il triangolo $BDI$ è isoscele, quindi $O_{1}$ appartiene all'asse di $DI$, cioè alla retta $AB$. I segmenti $O_{1}I$ e $O_{1}B$ sono uguali in quanto raggi, dunque il triangolo $O_{1}IB$ è isoscele. Inoltre la retta $BI$ è bisettrice dell'angolo in $B$. Ne segue che\n$$\n\\angle O_{1}IB = \\angle IBO_{1} = \\angle IBC = \\frac{\\beta}{2}\n$$\ne pertanto le rette $BC$ e $O_{1}I$ sono parallele in quanto formano angoli alterni interni uguali con la trasversale $IB$.\n\nIn maniera analoga si dimostra che la retta $O_{2}I$ è parallela a $BC$.\n\nMa allora $O_{1}I$ e $O_{2}I$ sono rette parallele passanti per $I$, dunque coincidono, ovvero i punti $O_{1}, I, O_{2}$ sono allineati, da cui segue la tesi.\n\n![](attached_image_2.png)", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34068, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nQuanto vale la somma delle cifre del numero $20^{21} + \\left(10^{2021} + 21\\right)^2$?\n\n(A) 21\n(B) 30\n(C) 37\n(D) 42\n(E) Un numero maggiore di 100.", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è $(\\mathbf{D})$. Possiamo espandere il quadrato\n$$\nN = 20^{21} + \\left(10^{2021} + 21\\right)^2 = 10^{4042} + 42 \\cdot 10^{2021} + 2^{21} \\cdot 10^{21} + 21^2\n$$\nOsserviamo che non ci sono riporti tra gli addendi scritti, dunque il risultato è la somma della somma delle cifre di $1, 42, 2^{21}, 21^2$.\nDato che $2^{21} = 2 \\cdot 1024^2 = 2097152$ ha somma delle cifre 26 e $21^2 = 441$ ha somma delle cifre 9, la soluzione è $1 + 6 + 26 + 9 = 42$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34069, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUna griglia è costituita da $n \\times n$ punti, con $n$ intero positivo. In alcuni di questi punti è disposta una sentinella. Ogni sentinella sceglie due direzioni tra di loro perpendicolari (tra quelle delle righe e delle colonne della griglia) e sorveglia tutti i punti che si trovano nelle direzioni prescelte. Ogni sentinella sorveglia anche la casella che occupa, e le sentinelle che si trovano al bordo possono anche ritrovarsi a guardare verso il vuoto, a seconda delle direzioni scelte.\nAd esempio, nella figura sottostante, relativa ad una disposizione di 5 sentinelle in una griglia $4 \\times 4$, le sentinelle in $A, B, C, D, E$ sorvegliano, rispettivamente, $1,3,4,5,7$ punti; i punti $D$ ed $E$ sono sorvegliati da una sola sentinella, il punto $C$ è sorvegliato da 2 sentinelle, i punti $A, B$ ed $F$ sono sorvegliati da 3 sentinelle.\n\n![](attached_image_1.png)\n\na) Dimostrare che possiamo posizionare 12 sentinelle in una griglia $4 \\times 4$ in modo che ogni punto della griglia sia sorvegliato da al più 2 sentinelle.\n\nb) Sia $S(n)$ il massimo numero di sentinelle che possiamo disporre in una griglia $n \\times n$ in modo tale che ogni punto della griglia sia sorvegliato da al più 2 sentinelle.\nDimostrare che $3 n \\leq S(n) \\leq 4 n$ per ogni $n \\geq 3$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\na. Una possibile disposizione nel caso $4 \\times 4$ è la seguente.\n\n![](attached_image_2.png)\n\nb. Dimostriamo intanto che $S(n) \\leq 4 n$. Supponiamo per assurdo che $S(n)>4 n$ per un qualche valore di $n$. Allora esiste almeno una riga in cui ci sono almeno 5 sentinelle. Di queste 5 sentinelle, almeno 3 guardano in orizzontale nella stessa direzione. Ma allora l'ultimo punto della riga in quella direzione sarà sorvegliato da almeno 3 sentinelle, il che è contro l'ipotesi.\n\nDimostriamo ora che $S(n) \\geq 3 n$. Per questo generalizziamo la costruzione del caso $4 \\times 4$ distinguendo due casi.\n\n- Caso $n$ pari. Mostriamo che, per un generico $n$ pari della forma $n=2 k$, è possibile posizionare $4 n-4$ sentinelle (e questo numero è maggiore di $3 n$ non appena $n \\geq 4$).\nDividiamo la griglia in 4 quadranti $k \\times k$. Nel quadrante in alto a sinistra disponiamo tutte le sentinelle sui punti della diagonale (quella contenente il vertice della griglia iniziale) e sui punti appena sotto la diagonale. Tutte queste sentinelle hanno lo sguardo rivolto verso l'alto e verso sinistra. Disponiamo le sentinelle sugli altri 3 quadranti riflettendo opportunamente la configurazione appena descritta.\nOsserviamo che in ogni quadrante abbiamo disposto esattamente $k+(k-1)=n-1$ sentinelle, quindi in totale ci sono $4 n-4$ sentinelle.\nOsserviamo che ogni punto è sorvegliato soltanto da sentinelle che si trovano nel suo quadrante, perché le altre sentinelle guardano altrove. All'interno del quadrante in alto a sinistra, un punto è sorvegliato solo da sentinelle che si trovano sulla stessa colonna e sotto tale punto, o sulla stessa riga e alla destra di tale punto. Se su un punto non ci sono sentinelle, queste stanno o solo sotto (e sono al più 2) o solo a destra (e sono al più 2). I punti in cui stanno le sentinelle sono sorvegliati solo dalla sentinella lì presente e, al più, dalla sentinella appena sotto o appena a destra, e dunque in ogni caso le sentinelle che lo sorvegliano sono al più 2.\n\n- Caso $n$ dispari. Mostriamo che per un generico $n$ dispari della forma $n=2 k-1$, con $k \\geq 2$, è possibile posizionare $4 n-3$ sentinelle (e questo numero è maggiore di $3 n$ non appena $n \\geq 3$).\nIn questo caso pensiamo la griglia come unione di quattro rettangoli $k \\cdot(k-1)$, più un quadratino centrale. In ciascun rettangolo ripetiamo sostanzialmente la disposizione delle sentinelle descritta per i blocchi $k \\times k$ del caso pari. La condizione per cui ogni punto è sorvegliato da al più due sentinelle è soddisfatta per lo stesso motivo del caso pari.\nIn questo modo abbiamo sistemato $2(k-1)$ sentinelle in ogni rettangolo, per un totale di $8 k-8=4 n-4$ sentinelle. Osserviamo ora che nella riga e nella colonna centrale abbiamo disposto solo due sentinelle, quindi possiamo ancora sistemare una ulteriore sentinella nel quadratino centrale, con lo sguardo rivolto in due direzioni a piacere, senza violare le condizioni del problema.\n\nLa figura sottostante illustra le costruzioni descritte sopra nei casi particolari $n=10$ e $n=11$. Nel caso $11 \\times 11$ possiamo orientare a piacere la sentinella nella casella centrale.\n\n![](attached_image_3.png)", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34070, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDate due frazioni $a / b$ e $c / d$, definiamo la loro somma pirata come\n\n$$\n\\frac{a}{b} \\diamond \\frac{c}{d}=\\frac{a+c}{b+d}\n$$\n\ndove si intende che le due frazioni iniziali sono ridotte ai minimi termini (cioè semplificate il più possibile), ed anche il risultato viene poi ridotto ai minimi termini. Così, per esempio, la somma pirata di $2 / 7$ e $4 / 5$ è uguale a $1 / 2$.\n\nDato un intero $n \\geq 3$, inizialmente sulla lavagna sono scritte le frazioni\n$$\n\\frac{1}{1}, \\quad \\frac{1}{2}, \\quad \\frac{1}{3}, \\ldots, \\quad \\frac{1}{n}\n$$\n\nAd ogni mossa scegliamo due frazioni scritte sulla lavagna, le cancelliamo, e scriviamo al loro posto la loro somma pirata. Continuiamo allo stesso modo fino a quando sulla lavagna resta una sola frazione.\nDeterminare, in funzione di $n$, il massimo ed il minimo valore possibile per quest'ultima frazione.", "options": [], "answer": "Maximum = 1/2, Minimum = 1/(n-1)", "solution": "Solution:\n\nPoniamo $M_{n}=1 / 2$ e $m_{n}=1 /(n-1)$. Dimostriamo che $M_{n}$ è il massimo valore possibile per l'ultima frazione, mentre $m_{n}$ è il minimo valore possibile per l'ultima frazione. La dimostrazione consiste di due parti: una costruzione che mostra che tali valori sono effettivamente realizzabili, e una verifica dell'ottimalità di tali valori, cioè che non si può ottenere di più o di meno.\n\n**Costruzione.** Per ottenere $m_{n}$ accoppiamo ad ogni passaggio i due numeri più grandi scritti sulla lavagna. Al primo passaggio accoppiamo $1 / 1$ e $1/2$, ottenendo $2 / 3$. Al secondo passaggio accoppiamo $2 / 3$ e $1 / 3$, ottenendo $1 / 2$. Pertanto, dopo due passaggi sulla lavagna risultano scritti i numeri\n$$\n\\frac{1}{2}, \\quad \\frac{1}{4}, \\quad \\frac{1}{5}, \\ldots, \\quad \\frac{1}{n}\n$$\nA questo punto per induzione si dimostra facilmente che al $k$-esimo passaggio avremo sulla lavagna i numeri\n$$\n\\frac{1}{k}, \\quad \\frac{1}{k+2}, \\quad \\frac{1}{k+3}, \\ldots, \\quad \\frac{1}{n}\n$$\ne quindi dopo $n-2$ passaggi resteranno solo $1 /(n-2)$ e $1 / n$, componendo i quali si ottiene esattamente $m_{n}$.\n\nLa costruzione per $M_{n}$ è analoga, semplicemente accoppiando ad ogni passaggio i due numeri più piccoli. Al primo passaggio accoppiamo $1 / n$ e $1 /(n-1)$, ottenendo $2 /(2 n-1)$. Al secondo passaggio accoppiamo $2 /(2 n-1)$ e $1 /(n-2)$, ottenendo $1 /(n-1)$. Pertanto, dopo due passaggi avremo sulla lavagna i numeri\n$$\n\\frac{1}{1}, \\quad \\frac{1}{2}, \\ldots, \\quad \\frac{1}{n-4}, \\quad \\frac{1}{n-3}, \\quad \\frac{1}{n-1} .\n$$\nA questo punto per induzione si dimostra facilmente che al $k$-esimo passaggio avremo sulla lavagna i numeri\n$$\n\\frac{1}{1}, \\quad \\frac{1}{2}, \\ldots, \\quad \\frac{1}{n-k-2}, \\quad \\frac{1}{n-k-1}, \\quad \\frac{1}{n-k+1} .\n$$\nNe segue che dopo $n-2$ passaggi resteranno solo $1 / 1$ e $1 / 3$, componendo i quali si ottiene esattamente $1 / 2$.\n\n**Ottimalità.** Per dimostrare che non si può ottenere più di $M_{n}$ o meno di $m_{n}$ utilizzeremo il seguente risultato preliminare.\n\n**Lemma.** Per ogni coppia di razionali positivi $a/b$ e $c/d$ (ridotti ai minimi termini) vale la disuguaglianza\n$$\n\\min \\left\\{\\frac{a}{b}, \\frac{c}{d}\\right\\} \\leq \\frac{a}{b} \\diamond \\frac{c}{d} \\leq \\max \\left\\{\\frac{a}{b}, \\frac{c}{d}\\right\\} .\n$$\nInoltre, vale una qualunque delle due uguaglianze se e solo se $a / b=c / d$.\n\nPer dimostrare il lemma, indichiamo con $m$ il minimo tra i due numeri razionali, e con $M$ il massimo. Questo vuol dire che $m b \\leq a \\leq M b$ e $m d \\leq c \\leq M d$, da cui segue che\n$$\nm=\\frac{m b+m d}{b+d} \\leq \\frac{a+c}{b+d} \\leq \\frac{M b+M d}{b+d}=M\n$$\nche è proprio la disuguaglianza della tesi. Lo stesso argomento mostra che, se $a / b \\neq c / d$, allora entrambe le disuguaglianze sono strette.\n\nDimostriamo ora che non si può ottenere più di $M_{n}$. Consideriamo il primo numero $x / y$ che interagisce con $1 / 1$. Il numero $x / y$ è il risultato di operazioni svolte a partire dalle frazioni $\\{1 / 2,1 / 3, \\ldots, 1 / n\\}$, e dunque per il lemma sarà necessariamente minore o uguale a $1 / 2$. Inoltre, se $x / y=1 / 2$, allora necessariamente il numero $1 / 2$ non è mai stato coinvolto in somme pirata fino a questo momento (se fosse stato coinvolto, per il lemma tali somme avrebbero prodotto numeri strettamente minori di $1 / 2$ ). Distinguiamo ora due casi.\n\n- Se $x / y<1 / 2$, allora $y>2 x$ e dunque $y \\geq 2 x+1$. Ne segue che\n$$\n\\frac{1}{1} \\diamond \\frac{x}{y}=\\frac{x+1}{y+1} \\leq \\frac{x+1}{2 x+2}=\\frac{1}{2} .\n$$\n- Se $x / y=1 / 2$, allora ovviamente la somma pirata con $1 / 1$ produce come risultato $2 / 3$. Consideriamo ora il numero $e / f$ che ad un certo punto interagisce con $2 / 3$. Per quanto osservato precedentemente sappiamo che $e / f$ è il risultato di operazioni svolte a partire dalle frazioni $\\{1 / 3, \\ldots, 1 / n\\}$, e dunque per il lemma sarà necessariamente minore o uguale a $1 / 3$. Ma allora $f \\geq 3 e \\geq 2 e+1$ e dunque\n$$\n\\frac{2}{3} \\diamond \\frac{e}{f}=\\frac{2+e}{3+f} \\leq \\frac{e+2}{2 e+4}=\\frac{1}{2}\n$$\nIn entrambi i casi ci siamo ridotti ad avere solo frazioni minori o uguali a $1 / 2$, e dunque per il lemma tutti i numeri successivi, e in particolare l'ultimo rimasto, saranno minori o uguali di $1/2$.\n\nDimostriamo in maniera analoga che non si può ottenere meno di $m_{n}$. Sia $z / w$ il primo numero che interagisce con $1 / n$. Per il lemma sappiamo che $z / w \\geq 1 /(n-1)$, e che vale il segno di uguale se e solo se il numero $1 /(n-1)$ non è mai stato utilizzato fino a questo momento. Distinguiamo ora due casi.\n\n- Se $z / w>1 /(n-1)$, allora $w<(n-1) z$ e dunque $w \\leq(n-1) z-1$. Ne segue che\n$$\n\\frac{1}{n} \\diamond \\frac{z}{w}=\\frac{z+1}{n+w} \\geq \\frac{z+1}{n z-z+n-1}=\\frac{1}{n-1}\n$$\n- Se $z / w=1 /(n-1)$, allora ovviamente la somma pirata con $1 / n$ produce come risultato $2 /(2 n-1)$. Consideriamo ora il numero $h / k$ che ad un certo punto interagisce con $2 /(2 n-1)$. Per quanto osservato precedentemente sappiamo che $h / k$ è il risultato di operazioni svolte a partire dalle frazioni $\\{1 / 1,1 / 2, \\ldots, 1 /(n-2)\\}$, e dunque per il lemma sarà necessariamente maggiore o uguale di $1 /(n-2)$. Ma allora $k \\leq h(n-2) \\leq h(n-1)-1$ e dunque\n$$\n\\frac{2}{2 n-1} \\diamond \\frac{h}{k}=\\frac{2+h}{2 n-1+k} \\geq \\frac{2+h}{2 n-1+h(n-1)-1}=\\frac{1}{n-1} .\n$$\nIn entrambi i casi ci siamo ridotti ad avere solo frazioni maggiori o uguali di $1 /(n-1)$, e dunque per il lemma da quel momento in poi, ed in particolare alla fine, ci saranno solo numeri maggiori o uguali di $1 /(n-1)$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34071, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDate due frazioni $a / b$ e $c / d$, definiamo la loro somma pirata come\n$$\n\\frac{a}{b} \\diamond \\frac{c}{d}=\\frac{a+c}{b+d}\n$$\ndove si intende che le due frazioni iniziali sono ridotte ai minimi termini (cioè semplificate il più possibile), ed anche il risultato viene poi ridotto ai minimi termini. Così, per esempio, la somma pirata di $2 / 7$ e $4 / 5$ è uguale a $1 / 2$.\n\nDato un intero $n \\geq 3$, inizialmente sulla lavagna sono scritte le frazioni\n$$\n\\frac{1}{1}, \\quad \\frac{1}{2}, \\quad \\frac{1}{3}, \\ldots, \\quad \\frac{1}{n}\n$$\nAd ogni mossa scegliamo due frazioni scritte sulla lavagna, le cancelliamo, e scriviamo al loro posto la loro somma pirata. Continuiamo allo stesso modo fino a quando sulla lavagna resta una sola frazione.\nDeterminare, in funzione di $n$, il massimo ed il minimo valore possibile per quest'ultima frazione.", "options": [], "answer": "Maximum = 1/2, Minimum = 1/(n−1)", "solution": "Solution:\n\nPoniamo $M_{n}=1 / 2$ e $m_{n}=1 /(n-1)$. Dimostriamo che $M_{n}$ è il massimo valore possibile per l'ultima frazione, mentre $m_{n}$ è il minimo valore possibile per l'ultima frazione. La dimostrazione consiste di due parti: una costruzione che mostra che tali valori sono effettivamente realizzabili, e una verifica dell'ottimalità di tali valori, cioè che non si può ottenere di più o di meno.\n\nCostruzione. Per ottenere $m_{n}$ accoppiamo ad ogni passaggio i due numeri più grandi scritti sulla lavagna. Al primo passaggio accoppiamo $1 / 1$ e $1/2$, ottenendo $2 / 3$. Al secondo passaggio accoppiamo $2 / 3$ e $1 / 3$, ottenendo $1 / 2$. Pertanto, dopo due passaggi sulla lavagna risultano scritti i numeri\n$$\n\\frac{1}{2}, \\quad \\frac{1}{4}, \\quad \\frac{1}{5}, \\ldots, \\quad \\frac{1}{n}\n$$\nA questo punto per induzione si dimostra facilmente che al $k$-esimo passaggio avremo sulla lavagna i numeri\n$$\n\\frac{1}{k}, \\quad \\frac{1}{k+2}, \\quad \\frac{1}{k+3}, \\ldots, \\quad \\frac{1}{n}\n$$\ne quindi dopo $n-2$ passaggi resteranno solo $1 /(n-2)$ e $1 / n$, componendo i quali si ottiene esattamente $m_{n}$.\n\nLa costruzione per $M_{n}$ è analoga, semplicemente accoppiando ad ogni passaggio i due numeri più piccoli. Al primo passaggio accoppiamo $1 / n$ e $1 /(n-1)$, ottenendo $2 /(2 n-1)$. Al secondo passaggio accoppiamo $2 /(2 n-1)$ e $1 /(n-2)$, ottenendo $1 /(n-1)$. Pertanto, dopo due passaggi avremo sulla lavagna i numeri\n$$\n\\frac{1}{1}, \\quad \\frac{1}{2}, \\ldots, \\quad \\frac{1}{n-4}, \\quad \\frac{1}{n-3}, \\quad \\frac{1}{n-1}.\n$$\nA questo punto per induzione si dimostra facilmente che al $k$-esimo passaggio avremo sulla lavagna i numeri\n$$\n\\frac{1}{1}, \\quad \\frac{1}{2}, \\ldots, \\quad \\frac{1}{n-k-2}, \\quad \\frac{1}{n-k-1}, \\quad \\frac{1}{n-k+1}.\n$$\nNe segue che dopo $n-2$ passaggi resteranno solo $1 / 1$ e $1 / 3$, componendo i quali si ottiene esattamente $1 / 2$.\n\nOttimalità. Per dimostrare che non si può ottenere più di $M_{n}$ o meno di $m_{n}$ utilizzeremo il seguente risultato preliminare.\n\nLemma. Per ogni coppia di razionali positivi $a/b$ e $c/d$ (ridotti ai minimi termini) vale la disuguaglianza\n$$\n\\min \\left\\{\\frac{a}{b}, \\frac{c}{d}\\right\\} \\leq \\frac{a}{b} \\diamond \\frac{c}{d} \\leq \\max \\left\\{\\frac{a}{b}, \\frac{c}{d}\\right\\}.\n$$\nInoltre, vale una qualunque delle due uguaglianze se e solo se $a / b=c / d$.\n\nPer dimostrare il lemma, indichiamo con $m$ il minimo tra i due numeri razionali, e con $M$ il massimo. Questo vuol dire che $m b \\leq a \\leq M b$ e $m d \\leq c \\leq M d$, da cui segue che\n$$\nm=\\frac{m b+m d}{b+d} \\leq \\frac{a+c}{b+d} \\leq \\frac{M b+M d}{b+d}=M\n$$\nche è proprio la disuguaglianza della tesi. Lo stesso argomento mostra che, se $a / b \\neq c / d$, allora entrambe le disuguaglianze sono strette.\n\nDimostriamo ora che non si può ottenere più di $M_{n}$. Consideriamo il primo numero $x / y$ che interagisce con $1 / 1$. Il numero $x / y$ è il risultato di operazioni svolte a partire dalle frazioni $\\{1 / 2,1 / 3, \\ldots, 1 / n\\}$, e dunque per il lemma sarà necessariamente minore o uguale a $1 / 2$. Inoltre, se $x / y=1 / 2$, allora necessariamente il numero $1 / 2$ non è mai stato coinvolto in somme pirata fino a questo momento (se fosse stato coinvolto, per il lemma tali somme avrebbero prodotto numeri strettamente minori di $1 / 2$ ). Distinguiamo ora due casi.\n\n- Se $x / y<1 / 2$, allora $y>2 x$ e dunque $y \\geq 2 x+1$. Ne segue che\n$$\n\\frac{1}{1} \\diamond \\frac{x}{y}=\\frac{x+1}{y+1} \\leq \\frac{x+1}{2 x+2}=\\frac{1}{2}.\n$$\n- Se $x / y=1 / 2$, allora ovviamente la somma pirata con $1 / 1$ produce come risultato $2 / 3$. Consideriamo ora il numero $e / f$ che ad un certo punto interagisce con $2 / 3$. Per quanto osservato precedentemente sappiamo che $e / f$ è il risultato di operazioni svolte a partire dalle frazioni $\\{1 / 3, \\ldots, 1 / n\\}$, e dunque per il lemma sarà necessariamente minore o uguale a $1 / 3$. Ma allora $f \\geq 3 e \\geq 2 e+1$ e dunque\n$$\n\\frac{2}{3} \\diamond \\frac{e}{f}=\\frac{2+e}{3+f} \\leq \\frac{e+2}{2 e+4}=\\frac{1}{2}\n$$\nIn entrambi i casi ci siamo ridotti ad avere solo frazioni minori o uguali a $1 / 2$, e dunque per il lemma tutti i numeri successivi, e in particolare l'ultimo rimasto, saranno minori o uguali di $1/2$.\n\nDimostriamo in maniera analoga che non si può ottenere meno di $m_{n}$. Sia $z / w$ il primo numero che interagisce con $1 / n$. Per il lemma sappiamo che $z / w \\geq 1 /(n-1)$, e che vale il segno di uguale se e solo se il numero $1 /(n-1)$ non è mai stato utilizzato fino a questo momento. Distinguiamo ora due casi.\n\n- Se $z / w>1 /(n-1)$, allora $w<(n-1) z$ e dunque $w \\leq(n-1) z-1$. Ne segue che\n$$\n\\frac{1}{n} \\diamond \\frac{z}{w}=\\frac{z+1}{n+w} \\geq \\frac{z+1}{n z-z+n-1}=\\frac{1}{n-1}\n$$\n- Se $z / w=1 /(n-1)$, allora ovviamente la somma pirata con $1 / n$ produce come risultato $2 /(2 n-1)$. Consideriamo ora il numero $h / k$ che ad un certo punto interagisce con $2 /(2 n-1)$. Per quanto osservato precedentemente sappiamo che $h / k$ è il risultato di operazioni svolte a partire dalle frazioni $\\{1 / 1,1 / 2, \\ldots, 1 /(n-2)\\}$, e dunque per il lemma sarà necessariamente maggiore o uguale di $1 /(n-2)$. Ma allora $k \\leq h(n-2) \\leq h(n-1)-1$ e dunque\n$$\n\\frac{2}{2 n-1} \\diamond \\frac{h}{k}=\\frac{2+h}{2 n-1+k} \\geq \\frac{2+h}{2 n-1+h(n-1)-1}=\\frac{1}{n-1}\n$$\nIn entrambi i casi ci siamo ridotti ad avere solo frazioni maggiori o uguali di $1 /(n-1)$, e dunque per il lemma da quel momento in poi, ed in particolare alla fine, ci saranno solo numeri maggiori o uguali di $1 /(n-1)$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34072, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSiano $a, b, c$ interi, ciascuno compreso fra $1$ e $2021$ (estremi inclusi), che soddisfano l'equazione\n$$\n\\sqrt{a} + \\sqrt{b} = \\sqrt{a + c \\sqrt{b}}.\n$$\nQuanti sono i possibili valori distinti di $c$?\n\n(A) 130\n(B) 132\n(C) 133\n(D) 1936\n(E) 2025", "options": [], "answer": "A", "solution": "Solution:\n\nLa risposta è (A). Elevando al quadrato l'equazione del testo otteniamo la condizione equivalente $a + 2 \\sqrt{a b} + b = a + c \\sqrt{b}$, da cui sottraendo $a$ e dividendo per $\\sqrt{b}$ si arriva a\n$$\n2 \\sqrt{a} + \\sqrt{b} = c.\n$$\nAffinché $c$ sia intero, entrambi $a$ e $b$ devono essere dei quadrati perfetti. Questo si può osservare elevando al quadrato l'uguaglianza $2 \\sqrt{a} = c - \\sqrt{b}$, da cui si ottiene $4a = c^2 + b - 2c \\sqrt{b}$; pertanto $\\sqrt{b}$ è un numero razionale, quindi $b$ è un quadrato perfetto, e in particolare $\\sqrt{b}$ è intero. Tornando all'equazione di partenza $2 \\sqrt{a} + \\sqrt{b} = c$ se ne deduce immediatamente che anche $a$ deve essere un quadrato perfetto.\n\nData la condizione $a, b \\leq 2021$, dobbiamo perciò contare quanti valori assume l'espressione $2x + y$ con $1 \\leq x, y \\leq 44$.\n\nÈ facile vedere che vengono presi tutti e soli i valori tra $3$ e $3 \\cdot 44$ compresi: con $x = 1$ si riempie l'intervallo $[3, 46]$, con $x = 23$ si prende l'intervallo $[47, 88]$ e infine con $x = 44$ si raggiungono anche i numeri nell'intervallo $[89, 132]$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34073, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABC$ un triangolo acutangolo, sia $M$ il punto medio di $BC$, e sia $H$ il piede dell'altezza uscente da $B$. Indichiamo con $Q$ il centro della circonferenza circoscritta al triangolo $ABM$, e con $X$ l'intersezione tra l'altezza $BH$ e l'asse di $BC$.\nDimostrare che i seguenti due fatti sono equivalenti:\n(i) la circonferenza circoscritta al triangolo $ACM$, la circonferenza circoscritta al triangolo $AXH$, e la retta $CQ$ passano per uno stesso punto;\n(ii) le rette $BQ$ e $CQ$ sono perpendicolari.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nSia $Y$ la proiezione di $X$ su $AB$. Dimostriamo che le circonferenze circoscritte ai triangoli $AMC$ e $AXH$ passano entrambe per $Y$. Questo è equivalente a dimostrare che $BY \\cdot BA = BM \\cdot BC$, e questo a sua volta è vero in quanto entrambi i prodotti sono uguali a $BX \\cdot BH$, dal momento che i quadrilateri $AYXH$ e $HXMC$ sono ciclici, avendo entrambi per costruzione una coppia di angoli opposti retti.\n\nA questo punto la tesi è diventata che i punti $Y, Q, C$ sono allineati se e solo se $BQ$ e $CQ$ sono perpendicolari.\n\nIndichiamo ora con $\\theta$ l'ampiezza dell'angolo $BAM$. Dalla ciclicità di $AYMC$ sappiamo che $\\angle YCB = \\theta$. Inoltre $\\angle QBC = 90^\\circ - \\theta$, in quanto nel triangolo isoscele $BQM$ l'angolo al vertice in $Q$ ha ampiezza $2\\theta$ (qui stiamo usando che $Q$ è il circocentro di $ABM$ e gli angoli al centro sono il doppio degli angoli alla circonferenza). Ne segue che $Y, Q, C$ sono allineati se e solo se $\\angle BCQ = \\angle BCY = \\theta$, cioè se e solo se $\\angle BCQ + \\angle QBC = 90^\\circ$, cioè se e solo se $BQ$ e $CQ$ sono perpendicolari.\n\n![](attached_image_1.png)\n\nOsservazione A posteriori, nella configurazione in cui $BQ$ e $CQ$ sono perpendicolari, il triangolo $BQM$ risulta equilatero. Ne segue che $\\angle BQM = 60^\\circ$, e quindi $\\theta = 30^\\circ$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34074, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABC$ un triangolo acutangolo, sia $M$ il punto medio di $BC$, e sia $H$ il piede dell'altezza uscente da $B$. Indichiamo con $Q$ il centro della circonferenza circoscritta al triangolo $ABM$, e con $X$ l'intersezione tra l'altezza $BH$ e l'asse di $BC$.\nDimostrare che i seguenti due fatti sono equivalenti:\n\n(i) la circonferenza circoscritta al triangolo $ACM$, la circonferenza circoscritta al triangolo $AXH$, e la retta $CQ$ passano per uno stesso punto;\n(ii) le rette $BQ$ e $CQ$ sono perpendicolari.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nSia $Y$ la proiezione di $X$ su $AB$. Dimostriamo che le circonferenze circoscritte ai triangoli $AMC$ e $AXH$ passano entrambe per $Y$. Questo è equivalente a dimostrare che $BY \\cdot BA = BM \\cdot BC$, e questo a sua volta è vero in quanto entrambi i prodotti sono uguali a $BX \\cdot BH$, dal momento che i quadrilateri $AYXH$ e $HXMC$ sono ciclici, avendo entrambi per costruzione una coppia di angoli opposti retti.\n\nA questo punto la tesi è diventata che i punti $Y, Q, C$ sono allineati se e solo se $BQ$ e $CQ$ sono perpendicolari.\n\nIndichiamo ora con $\\theta$ l'ampiezza dell'angolo $BAM$. Dalla ciclicità di $AYMC$ sappiamo che $\\angle YCB = \\theta$. Inoltre $\\angle QBC = 90^{\\circ} - \\theta$, in quanto nel triangolo isoscele $BQM$ l'angolo al vertice in $Q$ ha ampiezza $2\\theta$ (qui stiamo usando che $Q$ è il circocentro di $ABM$ e gli angoli al centro sono il doppio degli angoli alla circonferenza). Ne segue che $Y, Q, C$ sono allineati se e solo se $\\angle BCQ = \\angle BCY = \\theta$, cioè se e solo se $\\angle BCQ + \\angle QBC = 90^{\\circ}$, cioè se e solo se $BQ$ e $CQ$ sono perpendicolari.\n\n![](attached_image_1.png)", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34075, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nNello studiare il polinomio $p(x) = x^{2} + 2x - 6$, Enrica ha scoperto due numeri reali distinti $\\alpha$ e $\\beta$ tali che $p(\\alpha) = \\beta$ e $p(\\beta) = \\alpha$. Quanto vale $\\alpha + \\beta$?\n\n(A) -3\n(B) $-2 \\sqrt{2}$\n(C) 0\n(D) 2\n(E) 6", "options": [], "answer": "A", "solution": "Solution:\n\nLa risposta è $\\mathbf{(A)}$. Le condizioni imposte si traducono nel sistema\n$$\n\\left\\{\\begin{array}{l}\n\\alpha^{2} + 2\\alpha - 6 = \\beta \\\\\n\\beta^{2} + 2\\beta - 6 = \\alpha\n\\end{array}\\right.\n$$\nSottraendo le due equazioni otteniamo $\\alpha^{2} + 2\\alpha - (\\beta^{2} + 2\\beta) = \\beta - \\alpha$; scrivendo $\\alpha^{2} - \\beta^{2} = (\\alpha - \\beta)(\\alpha + \\beta)$ e raccogliendo un fattore $\\alpha - \\beta$, questa conduce a\n$$\n(\\alpha - \\beta)(\\alpha + \\beta + 2 + 1) = 0\n$$\nPoiché $\\alpha \\neq \\beta$, vale che $\\alpha + \\beta = -3$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34076, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUna successione $x_{1}, x_{2}, \\ldots, x_{n}, \\ldots$ è costituita da un blocco iniziale di $p$ interi positivi distinti, che poi si ripetono periodicamente. Questo vuol dire che $\\left\\{x_{1}, x_{2}, \\ldots, x_{p}\\right\\}$ sono $p$ interi positivi distinti, e $x_{n+p}=x_{n}$ per ogni intero positivo $n$.\nI termini della successione non sono noti, e l'obiettivo è individuare il periodo $p$. Per far questo, ad ogni passaggio è possibile rivelare il valore di un termine della successione a propria scelta (e la scelta può dipendere dall'esito dei passaggi precedenti).\n\na. Sapendo a priori che $1 \\leq p \\leq 10$, determinare il minimo $n$ per cui esiste una strategia che permette di individuare con certezza $p$ rivelando al più $n$ termini.\n\nb. Sapendo a priori che $p$ è uno dei primi $k$ numeri primi, determinare per quali valori di $k$ esiste una strategia che permette di individuare con certezza $p$ rivelando al più 5 termini.", "options": [], "answer": "a: 4; b: k ≤ 52", "solution": "Solution:\n\nDividiamo la dimostrazione in 3 parti: prima esibiamo una strategia in quattro passi per il punto (a), poi esibiamo una strategia in cinque passi per il punto (b) con $k \\leq 52$, ed infine mostriamo l'ottimalità del numero dei passi di tali strategie.\n\nStrategia per il punto (a)\n\nUna possibile strategia consiste nel rivelare i seguenti quattro termini della successione: $x_{1000}, x_{1004}, x_{1010}, x_{1045}$ (o in generale $x_{a}, x_{a+4}, x_{a+10}, x_{a+45}$).\n\nPer dimostrarlo, chiamiamo $p$ il periodo, e osserviamo che $x_{i}=x_{j}$ se e solo se $p$ divide $j-i$ (in questo punto è fondamentale sapere che i $p$ termini che si ripetono periodicamente sono tutti tra di loro distinti). Di conseguenza, a seconda del valore di $p$ tra 1 e 10, avremo tutte e sole le identità fra i numeri rivelati indicate nella seguente tabella.\n\n| Periodo | Identità | Periodo | Identità |\n| :---: | :--- | :---: | :--- |\n| 1 | $x_{1000}=x_{1004}=x_{1010}=x_{1045}$ | 6 | $x_{1004}=x_{1010}$ |\n| 2 | $x_{1000}=x_{1004}=x_{1010}$ | 7 | $x_{1010}=x_{1045}$ |\n| 3 | $x_{1000}=x_{1045}, x_{1004}=x_{1010}$ | 8 | nessuna identità |\n| 4 | $x_{1000}=x_{1004}$ | 9 | $x_{1000}=x_{1045}$ |\n| 5 | $x_{1000}=x_{1010}=x_{1045}$ | 10 | $x_{1000}=x_{1010}$ |\n\nDalla tabella segue che è possibile determinare univocamente il periodo a seconda di quali identità si osservano.\n\nStrategia per il punto (b)\n\nBasta esibire una strategia che permetta di distinguere fra i primi 52 periodi primi: la medesima strategia distinguerà, a maggior ragione, fra i primi $k \\leq 52$ primi.\n\nPer descrivere una possibile strategia, siano $p_{1}, \\ldots, p_{52}$ i primi 52 numeri primi, e sia $P$ il loro prodotto. Considerando ora l'insieme $S=\\{1,2,3,4,5\\}$, e definiamo partizione di $S$ un qualunque modo di suddividere questo insieme in sottoinsiemi non vuoti. Per esempio, $\\{\\{1,2\\},\\{4\\},\\{3,5\\}\\}$ è una partizione di $S$ (si intende che l'ordine in cui vengono presentati i sottoinsiemi $\\{1,2\\},\\{4\\},\\{3,5\\}$ è irrilevante in questa scrittura).\n\nMostreremo in seguito che l'insieme $S$ ammette esattamente 52 partizioni. Numeriamo in qualche modo queste partizioni da 1 a 52, facendo in modo che la prima sia quella costituita dal solo sottoinsieme $S$, e la seconda sia $\\{\\{1\\},\\{2,3,4,5\\}\\}$. Per ogni intero $i$ tra 1 e 52 consideriamo la funzione $f_{i}: S \\rightarrow S$ che associa ad ogni elemento $x \\in S$ il più piccolo $y \\in S$ che appartiene alla stesso sottoinsieme di $x$ nella $i$-esima partizione. Per esempio, se la 42-esima partizione fosse $\\{\\{1,2\\},\\{4\\},\\{3,5\\}\\}$, allora avremmo $f_{42}(1)=1, f_{42}(2)=1, f_{42}(3)=3, f_{42}(4)=4$, $f_{42}(5)=3$. Osserviamo che $1 \\leq f_{i}(x) \\leq p_{i}$ per ogni scelta ammissibile di $i$ e $x$ (gli unici primi che potrebbero creare problemi sono $p_{1}=2$ e $p_{2}=3$, ma per come abbiamo scelto le prime due partizioni dell'elenco il problema non si pone).\n\nLa strategia consiste nel rivelare i cinque elementi della successione i cui indici $a_{1}, a_{2}, a_{3}, a_{4}, a_{5}$ sono definiti da\n$$\na_{n}=\\sum_{i=1}^{52}\\left(f_{i}(n) \\cdot \\frac{P}{p_{i}}\\right) \\quad \\forall n \\in\\{1,2,3,4,5\\}\n$$\n\nPer dimostrare che questa strategia funziona, procediamo come nel punto (a), studiando le uguaglianze che si possono avere fra questi cinque elementi della successione.\n\nSia $p_{i}$ il periodo della successione, con $1 \\leq i \\leq 52$. Dal momento che i $p_{i}$ termini della successione che si ripetono periodicamente sono tutti distinti, come nel punto (a) deduciamo che $x_{a_{n}}=x_{a_{m}}$ se e solo se $p_{i}$ divide $a_{m}-a_{n}$. Inoltre, dal momento che nella sommatoria che definisce $a_{n}$ tutti gli addendi sono divisibili per $p_{i}$ tranne al più l' $i$-esimo, deduciamo che $p_{i}$ divide $a_{m}-a_{n}$ se e solo se $p_{i}$ divide $f_{i}(m)-f_{i}(n)$. Infine, essendo $f_{i}(m)$ e $f_{i}(n)$ entrambi compresi tra 1 e $p_{i}$, la divisibilità avviene se e solo se $f_{i}(m)=f_{i}(n)$, ossia se e solo se $m$ ed $n$ appartengono allo stesso sottoinsieme della $i$-esima partizione.\n\nNe segue che, verificando per quali coppie di indici $m$ ed $n$ vale l'uguaglianza $x_{a_{m}}=x_{a_{n}}$, è possibile ricostruire in modo univoco una partizione di $S$: l'indice $i$ di tale partizione nell'elenco delle 52 partizioni di $S$ determina il periodo $p_{i}$.\n\nResta da dimostrare che le partizioni di $S$ sono 52. A tal fine, indichiamo più in generale con $B_{b}^{a}$ il numero delle partizioni di $b$ elementi in $a$ sottoinsiemi, cioè il numero di modi di rappresentare un insieme di $b$ elementi come unione disgiunta di $a$ sottoinsiemi. Chiaramente c'è una sola partizione di $b$ elementi in $b$ o in 1 sottoinsiemi, dunque $B_{b}^{b}=B_{b}^{1}=1$. Una partizione di $b+1$ elementi in $a+1$ sottoinsiemi si può ottenere in due modi: o aggiungendo il $(b+1)$-esimo elemento ad una delle $a+1$ parti di una partizione dei primi $b$ elementi in $a+1$ sottoinsiemi, o aggiungendo il $(b+1)$-esimo elemento, come sottoinsieme a sé, ad una partizione di $b$ elementi in $a$ sottoinsiemi. Valgono quindi le relazioni\n$$\nB_{b}^{b}=B_{b}^{1}=1, \\quad B_{b+1}^{a+1}=(a+1) B_{b}^{a+1}+B_{b}^{a}\n$$\nda cui è possibile completare iterativamente la tabella qui sotto. Il numero di partizioni di un insieme di 5 elementi è la somma dei numeri dell'ultima riga, e cioè 52.\n\n| | $a=1$ | 2 | 3 | 4 | 5 |\n|---:|---:|---:|---:|---:|---:|\n| $b=1$ | $B_{b}^{a}=1$ | | | | |\n| 2 | 1 | 1 | | | |\n| 3 | 1 | 3 | 1 | | |\n| 4 | 1 | 7 | 6 | 1 | |\n| 5 | 1 | 15 | 25 | 10 | 1 |\n\nContinuando la tabella, e sommando i numeri della riga $k$-esima, si ottiene il numero di partizioni di un insieme di $k$ elementi.\n\nOttimalità delle strategie\n\nL'idea di fondo, per dimostrare che non si può fare di meglio delle strategie illustrate sopra, è di argomentare che l'unica informazione disponibile alla strategia deve essere contenuta nelle uguaglianze che si osservano fra i numeri rivelati. Un'assegnazione di uguaglianze fra $k$ variabili, che immaginiamo rappresentare i $k$ numeri rivelati nei $k$ passi di una qualunque strategia, determina una partizione dell'insieme di queste $k$ variabili. Per cui, in $k$ passi, una strategia può distinguere al più tanti periodi quanti sono le partizioni di un insieme di $k$ elementi, cioè la somma dei numeri della $k$-esima riga della tabella precedente.\n\nNel valutare le soluzioni proposte dai concorrenti per questo problema, la precedente argomentazione è stata ritenuta sufficiente.$^{0}$\n\nTuttavia, la traduzione formale dell'idea intuitiva non è ovvia, in quanto il testo del problema ammette esplicitamente strategie \"dinamiche\" in cui ogni mossa può dipendere dall'esito delle mosse precedenti tenendo conto di svariati fattori, ad esempio la parità dei numeri rivelati, il loro essere o non essere primi, la loro grandezza, e così via.\n\nNel seguito, dato un qualunque sottoinsieme $\\mathbb{P}$ degli interi positivi, indichiamo con $\\operatorname{Succ}(\\mathbb{P})$ l'insieme di tutte le successioni di interi positivi che hanno periodo $p \\in \\mathbb{P}$ e hanno i primi $p$ termini distinti ($p$ non è necessariamente un numero primo). Per brevità indichiamo con una singola lettera gli elementi di $\\operatorname{Succ}(\\mathbb{P})$, cioè scriveremo brevemente $x$ per indicare la successione $x_{1}, x_{2}, \\ldots, x_{n}, \\ldots$ L'obiettivo è di dimostrare il seguente enunciato.\n\nLemma. Sia $k$ un intero positivo, e sia $\\mathbb{P}$ un sottoinsieme degli interi positivi. Supponiamo che esista una strategia che permette di determinare il periodo di ogni successione in $\\operatorname{Succ}(\\mathbb{P})$ in al più $k$ mosse.\nAllora il numero di elementi di $\\mathbb{P}$ è minore o uguale del numero di partizioni dell'insieme $\\{1, \\ldots, k\\}$.\n\nPer la dimostrazione del lemma, occorre introdurre un po' di notazioni. Chiamiamo m-esito una sequenza $E$ di $m$ coppie $\\left[\\left(a_{1}, v_{1}\\right), \\ldots,\\left(a_{m}, v_{m}\\right)\\right]$ di interi positivi, dove $a_{1}, \\ldots, a_{m}$ sono gli indici dei termini rivelati dalla strategia alle mosse $1, \\ldots, m$, e $v_{1}, \\ldots, v_{m}$ sono i corrispondenti valori rivelati.\n\nDefiniamo peso di $E$ il numero $\\operatorname{Peso}(E)=\\left|\\left\\{v_{1}, \\ldots, v_{m}\\right\\}\\right|$, cioè il numero di elementi distinti tra $v_{1}, \\ldots, v_{m}$.\n\nDiciamo che un periodo $p \\in \\mathbb{P}$ è credibile per un certo $m$-esito $E$ se esiste una successione $z \\in \\operatorname{Succ}(\\mathbb{P})$ di periodo $p$ tale che $z_{a_{i}}=v_{i}$ per ogni $i \\in\\{1, \\ldots, m\\}$.\n\nIndichiamo con $\\operatorname{Per}(E)$ il sottoinsieme di $\\mathbb{P}$ costituito dai periodi credibili per $E$, e chiamiamo incertezza di $E$ il numero $\\operatorname{Inc}(E)=|\\operatorname{Per}(E)|$, cioè il numero dei periodi tra i quali restiamo incerti se dopo $m$ passaggi la strategia ci ha fornito $E$ come risultato.\n\nSupponiamo ora che esista una strategia che individua il periodo di ogni elemento di $\\operatorname{Succ}(\\mathbb{P})$ in al più $k$ mosse. Possiamo supporre che la strategia effettui sempre $k$ mosse prima di indicare il periodo (eventualmente aggiungendo mosse irrilevanti).\n\nDefiniamo ottenibili tutti gli $m$-esiti che si possono ottenere applicando la strategia ad una qualche successione in $\\operatorname{Succ}(\\mathbb{P})$, ed indichiamo con $\\mathcal{E}(m)$ l'insieme di tutti gli $m$-esiti ottenibili. Dimostreremo che vale la stima\n$$\n\\operatorname{Inc}(E) \\leq C_{m}^{\\mathrm{Peso}(E)} \\quad \\forall m \\in\\{1, \\ldots, k\\}, \\quad \\forall E \\in \\mathcal{E}(m)\n$$\ndove i numeri $C_{b}^{a}$ sono definiti ponendo $C_{k}^{a}=1$ per ogni $1 \\leq a \\leq k$, e poi a ritroso\n$$\nC_{m}^{a}=a C_{m+1}^{a}+C_{m+1}^{a+1} \\quad \\forall m \\in\\{1, \\ldots, k-1\\}, \\quad \\forall a \\in\\{1, \\ldots, m\\}\n$$\n\nDando per buono questo risultato, per $m=1$ avremo in particolare che\n$$\n\\operatorname{Inc}(E) \\leq C_{1}^{1} \\quad \\forall E \\in \\mathcal{E}(1)\n$$\nTale disuguaglianza è equivalente alla tesi, in quanto per ogni 1-esito $E$ l'incertezza $\\operatorname{Inc}(E)$, cioè l'incertezza dopo la prima mossa, è proprio il numero di elementi di $\\mathbb{P}$, dal momento che chiaramente dopo la prima mossa ogni periodo è ancora credibile, mentre $C_{1}^{1}$ è il numero di partizioni di $\\{1, \\ldots, k\\}$ (per uno specifico valore di $k$ questo si può verificare calcolando esplicitamente $C_{1}^{1}$ mediante la ricorrenza; per il caso generale si può dimostrare, per induzione su $m$, che la somma\n$$\n\\sum_{a=1}^{m} B_{m}^{a} C_{m}^{a}\n$$\nè indipendente da $1 \\leq m \\leq k$, da cui la conclusione confrontando i casi $m=1$ e $m=k$).\n\nPer dimostrare la disuguaglianza (1), procediamo per induzione inversa su $m$. Se $E \\in \\mathcal{E}(k)$, allora $\\operatorname{Inc}(E)=1$, qualunque sia il peso di $E$, in quanto per ipotesi la strategia funziona, dunque ogni possibile esito dopo $k$ mosse individua il periodo in modo univoco.\n\nSupponiamo ora che valga la (1) per un certo $m+1$, con $1 \\leq m \\leq k-1$, e dimostriamo che vale per $m$. Consideriamo dunque un $m$-esito ottenibile $E$, che pensiamo come sempre della forma $\\left[\\left(a_{1}, v_{1}\\right), \\ldots,\\left(a_{m}, v_{m}\\right)\\right]$. Osserviamo che l'insieme $\\operatorname{Per}(E)$ dei periodi credibili per $E$ è contenuto nell'unione degli insiemi $\\operatorname{Per}\\left(E'\\right)$, dove $E'$ varia tra tutti gli $(m+1)$-esiti ottenibili che coincidono con $E$ fino al passo $m$. Osserviamo anche che l'indice $a_{m+1}$ di ogni $E'$ di questo tipo è sempre lo stesso, in quanto dipende unicamente dalla storia fino al passo $m$. Di conseguenza, tutti gli $(m+1)$-esiti che ci interessano si ottengono aggiungendo ad $E$ una coppia della forma $\\left(a_{m+1}, v\\right)$, dove $v$ varia in un opportuno insieme $\\mathcal{F}$ di interi positivi.\n\nAbbiamo dunque ottenuto l'inclusione\n$$\n\\operatorname{Per}(E) \\subseteq \\bigcup_{v \\in \\mathcal{F}} \\operatorname{Per}\\left([ (a_{1}, v_{1}), \\ldots, (a_{m}, v_{m}), (a_{m+1}, v) ]\\right)\n$$\n\nOra il valore $v$ può coincidere o meno con uno dei valori $v_{1}, \\ldots, v_{m}$ coinvolti in $E$. Questo ci porta a pensare l'unione in (2) come unione dell'insieme\n$$\n\\bigcup_{v \\in\\{v_{1}, \\ldots, v_{m}\\}} \\operatorname{Per}\\left([ (a_{1}, v_{1}), \\ldots, (a_{m}, v_{m}), (a_{m+1}, v) ]\\right)\n$$\ne dell'insieme\n$$\n\\bigcup_{w \\in \\mathcal{F} \\backslash\\{v_{1}, \\ldots, v_{m}\\}} \\operatorname{Per}\\left([ (a_{1}, v_{1}), \\ldots, (a_{m}, v_{m}), (a_{m+1}, w) ]\\right)\n$$\n\nNella (3) il numero di insiemi che stiamo unendo è Peso($E$) e ciascuno di essi ha, per ipotesi induttiva, un numero di elementi minore o uguale a $C_{m+1}^{\\operatorname{Peso}(E)}$. Ne segue che il numero di elementi della prima unione è minore o uguale di\n$$\n\\operatorname{Peso}(E) \\cdot C_{m+1}^{\\operatorname{Peso}(E)}\n$$\n\nNella (4) gli insiemi che stiamo unendo sono (fortunatamente) tutti uguali, in quanto l'insieme dei periodi compatibili con un certo $(m+1)$-esito $[ (a_{1}, v_{1}), \\ldots, (a_{m}, v_{m}), (a_{m+1}, w_{1}) ]$ coincide con l'insieme dei periodi compatibili con il $(m+1)$-esito $[ (a_{1}, v_{1}), \\ldots, (a_{m}, v_{m}), (a_{m+1}, w_{2}) ]$, qualunque siano gli interi positivi $w_{1}$ e $w_{2}$, purché diversi da $v_{1}, \\ldots, v_{n}$. Infatti, se $p$ è un periodo credibile dato il primo $(m+1)$-esito, allora esiste una successione $z \\in \\operatorname{Succ}(\\mathbb{P})$ di periodo $p$ tale che $z_{a_{j}}=v_{j}$ per $j$ che va da 1 a $m$, e $z_{a_{m+1}}=w_{1}$; ora, sostituendo nella successione $z$ ogni occorrenza di $w_{1}$ con $w_{2}$, e viceversa, si ottiene una nuova successione in $\\operatorname{Succ}(\\mathbb{P})$ di periodo $p$ e compatibile con il secondo $(m+1)$-esito, e dunque $p$ è credibile anche dato il secondo esito. Il viceversa è analogo.\n\nOsserviamo infine che tutti gli insiemi (uguali) che compaiono nell'unione (4) sono i periodi credibili per opportuni $(m+1)$-esiti ammissibili il cui peso è uguale a $\\operatorname{Peso}(E)+1$, e dunque per ipotesi induttiva il numero di elementi della seconda unione è minore o uguale di $C_{m+1}^{\\operatorname{Peso}(E)+1}$.\n\nTornando alla (2), abbiamo dimostrato che per ogni $E \\in \\mathcal{E}(m)$ vale la stima\n$$\n\\operatorname{Inc}(E) \\leq \\operatorname{Peso}(E) \\cdot C_{m+1}^{\\operatorname{Peso}(E)}+C_{m+1}^{\\operatorname{Peso}(E)+1}=C_{m}^{\\operatorname{Peso}(E)}\n$$\nil che completa il passo induttivo, e dunque la dimostrazione del lemma.\n\nUn approccio alternativo al lemma consiste nel ragionare per assurdo, mostrando che, se il numero di elementi di $\\mathbb{P}$ è maggiore del numero di partizioni di $\\{1, \\ldots, k\\}$, allora per ogni strategia $S$ in $k$ passi esistono due successioni in $\\operatorname{Succ}(\\mathbb{P})$, di periodo diverso, agendo sulle quali la strategia produce lo stesso $k$-esito, rendendo quindi impossibile l'individuazione univoca del periodo.\n\nPer mostrare questo risultato, diciamo che un m-esito $[ (a_{1}, v_{1}), \\ldots, (a_{m}, v_{m}) ]$ è morigerato se $v_{1}=1$ e $v_{i} \\leq \\max \\{v_{1}, \\ldots, v_{i-1}\\}+1$ per ogni $i \\in\\{2, \\ldots, m-1\\}$. Diciamo che una successione è $S$-morigerata se la strategia $S$, applicata alla successione, produce un $k$-esito morigerato (e dunque anche tutti gli $m$-esiti ottenuti strada facendo sono morigerati). In altri termini, il valore rivelato (non l'indice) dalla strategia $S$ su una successione $S$-morigerata al passo $m$ è uno dei valori precedenti, oppure il massimo dei valori precedenti aumentato di 1.\n\nL'esistenza delle due successioni di periodo diverso che producono lo stesso $k$-esito segue ora, grazie al principio del pigeonhole, da tre claim.\n\n1. Se due $k$-esiti di una stessa strategia $S$ hanno gli stessi valori nello stesso ordine, allora hanno anche gli stessi indici nello stesso ordine.\n2. Il numero di possibili $k$-esiti di una data strategia $S$ applicata a successioni $S$-morigerate è minore o uguale del numero di partizioni di $\\{1, \\ldots, k\\}$.\n3. Per ogni strategia $S$ e per ogni periodo $p \\in \\mathbb{P}$, esiste in $\\operatorname{Succ}(\\mathbb{P})$ almeno una successione $S$-morigerata di periodo $p$.\n\nIl primo claim si dimostra per induzione, sfruttando che l'indice che sarà rivelato al passo $m+1$ dipende solo dagli indici e dai valori rivelati fino al passo $m$.\n\nPer dimostrare il secondo claim osserviamo che, grazie al primo claim, un $k$-esito morigerato ottenuto da una data strategia $S$ è univocamente determinato dalla $k$-upla $(v_{1}, \\ldots, v_{k})$ dei suoi valori. A questo punto basta osservare che esiste una corrispondenza biunivoca tra tali $k$-uple e le partizioni di $\\{1, \\ldots, k\\}$ (basta considerare i passi a cui si è ottenuto come valore $1,2, \\ldots$).\n\nPer dimostrare il terzo claim, consideriamo il più grande intero $m \\in\\{1, \\ldots, k\\}$ per cui esiste una successione in $\\operatorname{Succ}(\\mathbb{P})$ di periodo $p$ i cui esiti sono $S$-morigerati fino al passo $m$. Osserviamo preliminarmente che, detto $a_{1}$ l'indice del termine rivelato dalla strategia $S$ al primo passo, esiste di sicuro una successione di periodo $p$ con $x_{a_{1}}=1$, dunque $m$ è ben definito, nel senso che l'insieme di cui è il massimo non è vuoto.\n\nOra se $m=k$ non c'è nulla da dimostrare. Se invece $mw'+1$, dove $w'$ è il massimo dei valori rilevati nei primi $m$ passi. Se però ora consideriamo la successione $y$ ottenuta scambiando in $x$ ogni occorrenza di $w$ con $w'+1$, e viceversa, si può verificare che $y$ è ancora un elemento di $\\operatorname{Succ}(\\mathbb{P})$ di periodo $p$, ed i suoi esiti sono morigerati fino almeno al passo $m+1$ (e coincidono con quelli di $x$ fino al passo $m$). Questo contraddice la massimalità di $m$.\n\nOsservazioni conclusive\n\nIl \"convitato di pietra\" nei problemi di questo tipo è il concetto di strategia. La domanda fondamentale che uno si potrebbe porre è: cos'è una strategia? Il problema può cambiare di molto a seconda della risposta a questa domanda.\n\nIn questo caso specifico si sarebbe potuto formulare il problema usando solo strategie \"statiche\", in cui il \"giocatore\" deve dichiarare subito all'inizio tutti gli indici dei termini che vuole rivelare. In questa formulazione una strategia in $n$ passi è quindi, dal punto di vista formale, semplicemente una n-upla di interi positivi, cioè appunto gli indici richiesti. Le soluzioni presentate all'inizio per i punti (a) e (b) mostrano in effetti delle strategie statiche che risolvono il problema in un certo numero di mosse. Per quanto riguarda l'ottimalità, la dimostrazione si semplifica di molto se ci si limita alle sole strategie statiche, perché a quel punto basta un argomento di scambio di valori per mostrare rigorosamente che l'unica informazione rilevante sono le uguaglianze tra i valori rilevati.\n\nUna classe più ampia di strategie comprende quelle che potremmo chiamare strategie \"dinamiche deterministiche\". Il giocatore ora sceglie il primo indice $a_{1}$ da rivelare, e poi ad ogni mossa successiva sceglie l'indice $a_{m+1}$ sulla base dell'm-esito. La strategia è quindi formalmente costituita da un numero (il primo indice) e da una funzione che ad ogni $m$-esito associa l'indice successivo. Il determinismo consiste nel fatto che il passo iniziale è sempre lo stesso, e lo stesso $m$-esito porterà sempre a richiedere lo stesso indice al passo successivo. Le due dimostrazioni del lemma di ottimalità fornite precedentemente, così come sono state scritte, sono pensate nella classe delle strategie dinamiche deterministiche.\n\nUna classe ancora più ampia di strategie comprende quelle che potremmo chiamare strategie \"dinamiche probabilistiche\". Dopo aver visto l'm-esito, ora il giocatore \"tira un dado\", e sceglie l'indice successivo da rivelare in base all'm-esito ed al risultato del dado (e analogamente per la scelta del primo indice). Lo stesso $m$-esito può dunque condurre ora a indagare indici diversi al passo successivo. Le due dimostrazioni precedenti di ottimalità si possono, con piccole modifiche, adattare in modo da includere anche strategie di questo tipo, pur di assumere che il dado si comporti \"in maniera imparziale\". Invece non possiamo concedere come \"strategia\" l'uso di un dado non imparziale che, ad esempio, alla prima mossa ci fa rivelare il 2021-esimo termine, e alla seconda mossa \"per caso\" richiede proprio il termine di indice $2021+p$, dove $p$ è il periodo della successione. Con un dado del genere, se $p$ è primo, ce la caveremmo sempre in due mosse!\n\n$^{0}$ Questi sono noti in letteratura come numeri di Bell.\n$^{1}$ Risultato di attribuzione incerta, spesso citato nella letteratura olimpica come Lemma di Passaro. Osserviamo che può essere visto come duale del meglio consolidato Lemma di Damiano, o come corollario del meno noto Lemma di Pierrat.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34077, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nI partecipanti a un convegno di furfanti (che mentono sempre) e cavalieri (che dicono sempre la verità) sono numerati da $1$ a $2021$. Ciascuno di essi dichiara: \"si possono formare almeno $i$ terne di partecipanti di cui io faccia parte e che contengano esattamente due cavalieri\", dove $i$ è il numero assegnato alla persona che parla. Quanti sono i valori possibili per il numero di furfanti presenti al convegno?\n\n(A) 1\n(B) 3\n(C) 4\n(D) 2021\n(E) 2022", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è (B). Dividiamo in casi a seconda del numero di cavalieri:\n\na. La configurazione con $0$ cavalieri, ovvero tutti furfanti, è sicuramente valida.\n\nb. Una configurazione con esattamente $1$ cavaliere è impossibile, perché questi affermerebbe di poter trovare almeno un altro cavaliere.\n\nc. Se ci sono esattamente $2$ cavalieri, la sequenza $CCFF\\ldots$ è valida: infatti per i primi due cavalieri è possibile formare una terna con uno qualunque dei $2019$ furfanti; inoltre ogni furfante ha esattamente una terna disponibile, dunque sta effettivamente affermando il falso.\n\nd. Con $3$ cavalieri il discorso è del tutto analogo, e la sequenza $CCCFF\\ldots$ è valida.\n\ne. Se ci sono almeno $4$ cavalieri, osserviamo intanto che esiste almeno un furfante, poiché c'è almeno una terna \"CCF\". Ma allora ogni furfante può trovare almeno $\\binom{4}{2} = 6$ terne con lui e due cavalieri, dunque le prime sei posizioni possono essere occupate solo da cavalieri. Ripetendo questo ragionamento si ricava che i furfanti devono stare dopo la posizione $\\binom{6}{2} = 15$, e poi dopo la posizione $\\binom{15}{2} = 105$ e infine che i furfanti possono occupare solo le posizioni successive a $\\binom{105}{2} > 2021$; avremmo dunque una configurazione di tutti cavalieri, che come detto all'inizio è impossibile.\n\nIn conclusione, i valori possibili per il numero di furfanti sono solo $2021$, $2019$ e $2018$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34078, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABC$ un triangolo rettangolo in $B$. Sia $H$ il piede dell'altezza uscente da $B$ e sia $D$ l'intersezione fra la bisettrice dell'angolo in $A$ e il lato $BC$. Supponiamo che $HD$ sia perpendicolare a $BC$. Quanto vale $\\left(\\frac{AB}{BC}\\right)^2$?\n\n(A) $\\frac{\\sqrt{5}}{2}$\n(B) $\\frac{\\sqrt{5}-1}{2}$\n(C) $\\sqrt{5}$\n(D) $\\frac{\\sqrt{5}+1}{2}$\n(E) Una tale configurazione non si può realizzare.", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è $\\mathbf{(B)}$.\n\n![](attached_image_1.png)\n\nI triangoli $BAC$, $HBC$, $HAB$ sono simili, dunque ci forniscono le uguaglianze\n$$\n\\frac{AB}{BC} = \\frac{BH}{CH} = \\frac{AH}{BH}\n$$\nLe rette $DH$ e $AB$ sono parallele, perché entrambe perpendicolari a $BC$; per Talete e il teorema della bisettrice, abbiamo che\n$$\n\\frac{AH}{CH} = \\frac{BD}{CD} = \\frac{AB}{AC}\n$$\nOra possiamo mettere assieme tutte le nostre osservazioni per ottenere una relazione tra i lati del triangolo:\n$$\n\\left(\\frac{AB}{BC}\\right)^2 = \\frac{AB}{BC} \\cdot \\frac{AB}{BC} = \\frac{BH}{CH} \\cdot \\frac{AH}{BH} = \\frac{AH}{CH} = \\frac{AB}{AC},\n$$\nche riscriviamo come $AC / BC = BC / AB$. Sostituendo questo nel teorema di Pitagora\n$$\n1 = \\frac{AC^2}{BC^2} - \\frac{AB^2}{BC^2} = \\left(\\frac{BC}{AB}\\right)^2 - \\left(\\frac{AB}{BC}\\right)^2.\n$$\nIl rapporto che stiamo cercando è dunque la soluzione positiva di $x^2 + x - 1$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34079, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIl piccolo Boole ha disegnato una striscia di 8 caselle, in ognuna delle quali può essere scritto uno 0 o un 1. Inizialmente ogni casella contiene uno 0. Ad ogni mossa, Boole compie una delle seguenti operazioni:\n\na. Sostituisce ogni 0 con un 1 e ogni 1 con uno 0;\n\nb. Sceglie tre caselle consecutive e solo in queste sostituisce ogni 0 con un 1 e viceversa.\n\nQuante diverse combinazioni di 0 e 1 può ottenere Boole?\n\n(A) $2^{5}$\n(B) $2^{6}$\n(C) $2^{7}$\n(D) $2^{8}-2$\n(E) $2^{8}$", "options": [], "answer": "C", "solution": "Solution:\n\nOsserviamo che tutte le operazioni commutano tra di loro, e che applicare un'operazione due volte è come non applicarla. Quindi possiamo associare ad ogni operazione un bottone ON/OFF (che corrisponde ad aver fatto o non aver fatto data operazione) e a ogni successione di operazioni uno e un solo stato dei bottoni.\n\nLe combinazioni ottenibili sono allora al più quante tutti i possibili stati dei bottoni, che sono $2^{7}$.\n\nSupponiamo ora per assurdo che ci siano due stati diversi che portano le 8 celle a contenere gli stessi numeri. Questo vuol dire che esiste uno stato di bottoni (non tutti su OFF) il cui risultato è trasformare la combinazione 00000000 in se stessa.\n\nSupponiamo che l'operazione $T$ sia stata effettuata. Allora necessariamente sono state fatte anche $B_{1}$ e $B_{6}$ (per poter avere la prima e ultima cella a 0). Questo vuol dire che $B_{2}$ e $B_{5}$ sono su OFF, altrimenti la seconda e la penultima cella avrebbero un 1; per lo stesso motivo anche $B_{3}$ e $B_{4}$ sono OFF, ma questo vorrebbe dire che le celle 4 e 5 contengono un 1, che è impossibile.\n\nDunque l'operazione $T$ non è stata fatta, perciò nemmeno $B_{1}$ e $B_{6}$, altrimenti le celle esterne avrebbero un 1. Ma allora anche $B_{2}$ e $B_{5}$ sono OFF; analogamente anche $B_{3}$ e $B_{4}$ non devono essere state fatte, che è assurdo perché avevamo supposto che fosse stata effettuata almeno una operazione.\n\nPertanto a ogni stato dei bottoni corrisponde una diversa combinazione, perciò le combinazioni raggiungibili sono esattamente $2^{7}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34080, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nPer ogni reale non negativo $x$, definiamo $\\lfloor x\\rfloor$ come la parte intera di $x$, ovvero il più grande intero minore o uguale di $x$, e $\\{x\\}=x-\\lfloor x\\rfloor$ come la parte frazionaria di $x$.\nSia $p$ una soluzione reale positiva non intera dell'equazione $\\{z\\lfloor z\\rfloor\\}=2021\\{z\\}$. Qual è il secondo più piccolo valore possibile di $\\lfloor p\\rfloor$ ?\n(A) 2021\n(B) 2022\n(C) 3033\n(D) 4042\n(E) 4043", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è $\\mathbf{( E )}$. Poniamo $n=\\lfloor p\\rfloor$ e $\\alpha=\\{p\\}$. Allora l'equazione si riscrive come $\\{n(n+\\alpha)\\}=2021 \\alpha$, ovvero\n$$\n\\{n \\alpha\\}=2021 \\alpha\n$$\nPoiché a sinistra abbiamo una parte frazionaria, che è $<1$, ed inoltre $p$ non è intero, otteniamo le condizioni $0 \\neq \\alpha<\\frac{1}{2021}$.\nDall'equazione inoltre ricaviamo che esiste $m$ intero non negativo tale che $n \\alpha=m+2021 \\alpha$. Riarrangiando, $(n-2021) \\alpha=m$.\nOra, se $m=0$ si ha $n=2021$ che è una soluzione (si verifica che $p=2021+\\alpha$ funziona per ogni $\\alpha<\\frac{1}{2021}$ ), ed è anche la più piccola.\nSe $m \\geq 1$, si ha $\\alpha=\\frac{m}{n-2021}<\\frac{1}{2021}$, da cui $n>2021+2021 m \\geq 4042$, e quindi $n \\geq 4043$. In effetti si verifica che $p=4043+\\frac{1}{2022}$ è soluzione.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34081, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDeterminare per quali interi positivi $n$ esiste un intero positivo $A$ tale che\n- $A$ è multiplo di 2022,\n- l'espressione decimale di $A$ contiene solo cifre 0 e 7,\n- l'espressione decimale di $A$ contiene esattamente $n$ volte la cifra 7.", "options": [], "answer": "All positive integers divisible by 3", "solution": "Solution:\n\nI valori di $n$ richiesti sono tutti e soli i multipli di 3.\n\nCondizione necessaria Sia $A$ un multiplo di 2022 la cui espressione decimale contiene esattamente $n$ volte la cifra 7, ed eventualmente altre cifre 0. Poiché 2022 è multiplo di 3, anche $A$ deve essere multiplo di 3, e quindi (per il criterio di divisibilità per 3) la somma delle cifre di $A$ deve essere a sua volta multipla di 3. Ora la somma delle cifre di $A$ è $7n$, e dunque è multipla di 3 solo se $n$ è multiplo di 3.\n\nCondizione sufficiente Osserviamo che il numero $70770 = 2022 \\cdot 35$ è multiplo di 2022 e la sua espressione decimale contiene tre cifre 7 e due cifre 0. Questo mostra intanto che $n=3$ ha la proprietà richiesta.\n\nPiù in generale, per ogni intero positivo $k$ osserviamo che il numero che si scrive ripetendo $k$ volte il blocco di cinque cifre 70770, cioè il numero\n$$\n\\underbrace{7077070770 \\ldots 70770}_{k \\text{ volte}} = 70770 \\cdot \\left(1 + 10^{5} + 10^{10} + \\ldots + 10^{5(k-1)}\\right)\n$$\nè a sua volta multiplo di 2022 e la sua espressione decimale contiene $3k$ volte la cifra 7 e $2k$ volte la cifra 0. Questo mostra che ogni multiplo di 3 ha la proprietà richiesta.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34082, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nViale Marconi è lungo $800~\\mathrm{m}$; a $200~\\mathrm{m}$ da un estremo c'è un parchimetro, a $100~\\mathrm{m}$ dall'estremo opposto c'è un negozio di vestiti. Astolfo vuole parcheggiare la sua macchina, prendere un biglietto al parchimetro, tornare alla macchina per esporlo sul parabrezza, visitare il negozio e infine ritornare alla macchina. Inoltre è pigro e quindi vuole camminare il meno possibile; dove deve parcheggiare per farlo? Indicare l'insieme dei punti del viale che minimizzano la distanza che Astolfo deve percorrere a piedi.\n(A) Il punto davanti al parchimetro\n(B) Il punto davanti al negozio\n(C) Il punto medio tra il parchimetro e il negozio\n(D) Tutti i punti del viale\n(E) Tutti i punti del tratto di viale compreso tra il parchimetro e il negozio.", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è (E). Notiamo innanzitutto che la distanza fra parchimetro e negozio è di $500~\\mathrm{m}$. Se Astolfo parcheggia in un punto compreso fra il parchimetro ed il negozio, diciamo a distanza $x$ dal parchimetro (e quindi distanza $500~\\mathrm{m}-x$ dal negozio), allora dovrà percorrere a piedi una distanza totale data da $x$ (per andare al parchimetro) $+x$ (per tornare alla macchina) $+500~\\mathrm{m}-x$ (per raggiungere il negozio) $+500~\\mathrm{m}-x$ (per tornare alla macchina), ovvero $1000~\\mathrm{m}$, indipendentemente da $x$.\n\nSe invece parcheggia fra il parchimetro e l'estremo di Viale Marconi ad esso più vicino, diciamo a distanza $y>0$ dal parchimetro, allora dovrà percorrere a piedi una distanza data da $y$ (per andare al parchimetro) $+y$ (per tornare alla macchina) $+y$ (per tornare nuovamente al parchimetro) $+500~\\mathrm{m}$ (per raggiungere il negozio) $+500~\\mathrm{m}$ (per tornare al parchimetro) $+y$ (per tornare alla macchina), per un totale di $1000~\\mathrm{m}+4y>1000~\\mathrm{m}$.\n\nInfine, se parcheggia fra il negozio e l'estremo di Viale Marconi ad esso più vicino, a distanza $z>0$ dal negozio, il tratto che dovrà percorrere a piedi sarà di lunghezza\n$$\nz+500~\\mathrm{m}+500~\\mathrm{m}+z+z+z=1000~\\mathrm{m}+4z>1000~\\mathrm{m}\n$$\ndove i vari addendi corrispondono ai tratti per andare dalla macchina al negozio, dal negozio al parchimetro, tornare dal parchimetro al negozio, tornare dal negozio alla macchina, e infine tornare ancora dalla macchina al negozio e viceversa.\n\nSi vede quindi che la distanza minima che Astolfo è costretto a percorrere a piedi è di $1000~\\mathrm{m}$, e che essa è realizzata da tutti e soli i punti del tratto compreso fra il parchimetro e il negozio.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34083, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nMaddalena scrive su un foglio tutte le potenze di $2$ da $1$ a $2^{100}$ (estremi inclusi). Quanti dei numeri che ha scritto iniziano per $1$?\n\n(A) 28 o meno\n(B) 29\n(C) 30\n(D) 31\n(E) 32 o più.", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). Iniziamo con un'osservazione più generale. Dato un intero positivo $n \\geq 2$, consideriamo la più piccola potenza $2^{a}$ di $2$ che in base $10$ si scriva con almeno $n$ cifre. Siccome $2^{a-1}$ si scrive con al massimo $n-1$ cifre abbiamo $2^{a-1} \\leq 10^{n-1}-1$, e quindi $10^{n-1} \\leq 2^{a} \\leq 2 \\cdot 10^{n-1}-1$, dove la prima disuguaglianza segue dall'ipotesi che $2^{a}$ si scriva con almeno $n$ cifre. Le disuguaglianze appena scritte significano esattamente che la scrittura decimale di $2^{a}$ inizia con la cifra $1$. D'altra parte, la potenza di $2$ successiva, ovvero $2^{a+1}$, rispetta $2 \\cdot 10^{n-1} \\leq 2^{a+1} \\leq 4 \\cdot 10^{n-1}-2$, e quindi la sua prima cifra decimale è $2$ o $3$. Da questo segue immediatamente che $2^{a}$ è l'unica potenza di $2$ che in base $10$ si scriva con esattamente $n$ cifre e la cui prima cifra sia uguale ad $1$. Lo stesso vale ovviamente per le potenze di $2$ ad una cifra: l'unica che inizi con $1$ è proprio $2^{0}$. Otteniamo quindi che per ogni possibile lunghezza della rappresentazione decimale esiste una ed una sola potenza di $2$ la cui rappresentazione decimale abbia quella lunghezza ed inizi per $1$.\n\nDa questo segue che per contare le potenze di $2$ volute dobbiamo soltanto capire quante diverse lunghezze assumono i numeri scritti da Maddalena: per ogni lunghezza c'è esattamente una potenza di $2$ che inizia con la cifra $1$. Siccome $2^{0}$ ha una singola cifra, si tratta di capire quante cifre abbia $2^{100}$. Osserviamo che $2^{10}=1024>10^{3}$, quindi $2^{100}>(10^{3})^{10}=10^{30}$, e quindi $2^{100}$ ha almeno $31$ cifre. Mostriamo ora che $2^{100}$ ha esattamente $31$ cifre, ovvero che $2^{100}<10^{31}$. Semplificando un fattore $2^{30}$ da entrambi i lati, la disuguaglianza voluta diventa $2^{70}<10 \\cdot 5^{30}$. Osserviamo ora che $2^{7}=128$ e $5^{3}=125$, per cui la disuguaglianza si riscrive ulteriormente nella forma\n$$\n\\left(\\frac{128}{125}\\right)^{10}<10\n$$\nLa validità di tale disuguaglianza può essere verificata in vari modi; una possibilità è quella di osservare che $\\frac{128}{125}=1+\\frac{3}{125}<1+\\frac{1}{40}$, da cui\n$$\n\\left(\\frac{128}{125}\\right)^{2}<\\left(1+\\frac{1}{40}\\right)^{2}=1+\\frac{1}{20}+\\frac{1}{1600}<1+\\frac{1}{19}\n$$\ned elevando nuovamente al quadrato\n$$\n\\left(\\frac{128}{125}\\right)^{4}<\\left(1+\\frac{1}{19}\\right)^{2}=1+\\frac{2}{19}+\\frac{1}{361}<1+\\frac{1}{9}\n$$\nContinuando in questo modo troviamo immediatamente $\\left(\\frac{128}{125}\\right)^{8}<2$ e quindi $\\left(\\frac{128}{125}\\right)^{10}<\\left(\\frac{128}{125}\\right)^{16}<2^{2}=4<10$ come voluto.\n\nSiccome i numeri scritti da Maddalena hanno lunghezza variabile fra $1$ e $31$, otteniamo che le potenze di $2$ che iniziano per $1$ scritte da Maddalena sono esattamente $31$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34084, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nI $\\pi$ cchi sono animali che vivono in famiglie di 1, 2 o 3 individui. Originariamente fu importata in Italia una famiglia di $3 \\pi$ cchi. Una famiglia di $n \\pi$ chi si riproduce crescendo di $2n-2$ nuovi individui, formando un totale di $3n-2$, e dividendosi in nuove famiglie (non necessariamente due famiglie con lo stesso numero di individui si dividono allo stesso modo). Tutte le famiglie si riproducono contemporaneamente ad ogni nidiata. Per esempio, dopo la prima nidiata ci sono per forza sette $\\pi$ cchi, che potrebbero essere divisi in tre famiglie di due e una di uno, o in una di tre e due di due, o in sette di uno, eccetera. Quante sono le possibilità per il numero totale di $\\pi$ cchi dopo la settima nidiata?\n\n(A) 129\n(B) 253\n(C) $2^{7}$\n(D) $\\frac{2^{7}+3^{7}+1}{2}$\n(E) $3^{7}$", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è (B). Il numero di $\\pi$ cchi dopo 7 nidiate può assumere qualsiasi valore dispari fra 7 e $2^{9}-1$, e nessun altro. La risposta alla domanda è quindi $\\frac{2^{9}-1-7}{2}+1=2^{8}-3=253$, in quanto questa è la quantità di numeri dispari compresi fra 7 e $2^{9}-1=511$.\n\nGiustifichiamo l'affermazione precedente tramite i seguenti fatti:\n\na. una famiglia costituita da 1 solo $\\pi$ cchio continuerà per sempre ad essere costituita da un solo $\\pi$ cchio: evidente;\n\nb. una famiglia costituita da $2 \\pi$ chi può dar origine, dopo $n \\geq 1$ nidiate, a non più di $2^{n+1}$ $\\pi$ cchi;\n\nc. una famiglia costituita da $3 \\pi$ chi può dar origine, dopo $n \\geq 1$ nidiate, ad un qualsiasi numero di $\\pi$ cchi che sia dispari e compreso fra 7 e $2^{n+2}-1$.\n\nDimostriamo le affermazioni (b) e (c) simultaneamente per induzione: assumendo che (b) e (c) valgano per un certo $n$ le dimostreremo per $n+1$. Si osservi che il caso base $n=1$ è evidente per entrambe. Si osservi inoltre che la parità del numero di $\\pi$ chi non cambia dopo una nidiata, per cui la condizione di parità affermata al punto (c) è effettivamente necessaria. Inoltre:\n\nb. in questo caso, dopo una nidiata abbiamo $4 \\pi$ cchi, che possono vivere in quattro famiglie da 1 (e in tal caso a tutte le generazioni successive avremo ancora $4 \\pi$ chi), una famiglia da 2 e due da 1, due famiglie da 2, o una famiglia da 3 e una da 1. Nei vari casi, le affermazioni (b) e (c) per $n$ nidiate mostrano che - dopo ulteriori $n$ nidiate - avremo al massimo\n$$\n1+1+1+1, \\quad 2^{n+1}+1+1, \\quad 2^{n+1}+2^{n+1}, \\quad\\left(2^{n+2}-1\\right)+1\n$$\n$\\pi$ cchi. Siccome ognuno di questi numeri è minore o uguale a $2^{n+2}$, questo dimostra l'affermazione (b) per $n+1$ nidiate.\n\nc. in questo caso, dopo una nidiata i $7 \\pi$ cchi possono essere distribuiti in famiglie nei modi seguenti:\n$$\n\\begin{gathered}\n3+3+1, \\quad 3+2+2, \\quad 3+2+1+1, \\\\\n3+1+1+1+1, \\quad 2+2+2+1, \\quad 2+2+1+1+1, \\\\\n2+1+1+1+1+1, \\quad 1+1+1+1+1+1+1 .\n\\end{gathered}\n$$\nDopo ulteriori $n$ nidiate, usando come sopra l'ipotesi induttiva otteniamo che nei vari casi il numero totale di $\\pi$ cchi è al massimo\n$$\n\\begin{gathered}\n2\\left(2^{n+2}-1\\right)+1, \\quad\\left(2^{n+2}-1\\right)+2\\left(2^{n+1}\\right), \\quad\\left(2^{n+2}-1\\right)+\\left(2^{n+1}\\right)+1+1, \\\\\n\\left(2^{n+2}-1\\right)+1+1+1+1, \\quad 3 \\cdot\\left(2^{n+1}\\right)+1, \\quad 2 \\cdot\\left(2^{n+1}\\right)+1+1+1 \\\\\n\\left(2^{n+1}\\right)+1+1+1+1+1, \\quad 1+1+1+1+1+1+1 .\n\\end{gathered}\n$$\nÈ facile verificare che ognuno di questi numeri è minore o uguale a $2^{n+3}-1$. Infine, se dopo la prima nidiata i $7 \\pi$ chi sono organizzati in famiglie come $3+3+1$, allora dopo ulteriori $n$ nidiate il numero di $\\pi$ cchi sarà della forma $d_{1}+d_{2}+1$, dove $d_{1}, d_{2}$ possono assumere qualsiasi valore dispari compreso fra 7 e $2^{n+2}-1$. L'espressione $d_{1}+d_{2}+1$ può allora assumere qualsiasi valore dispari compreso fra $7+7+1=15$ e $2 \\cdot 2^{n+2}-2+1=2^{n+3}-1$. Resta solo da mostrare che il numero di $\\pi$ cchi dopo $n+1 \\geq 2$ nidiate può essere anche 7, 9, 11 o 13, ma questo è facile. Infatti, se ad un certo punto i $\\pi$ cchi si organizzano in famiglie da 1, da quel punto in poi il loro numero non crescerà più, per cui è sufficiente dimostrare che tali numeri di $\\pi$ cchi sono realizzabili dopo al più due nidiate, ad esempio come segue:\n$$\n\\begin{gathered}\n3 \\rightarrow 7 ; \\quad 3 \\rightarrow 2+1+1+1+1+1 \\rightarrow 4+1+1+1+1+1=9 \\\\\n3 \\rightarrow 2+2+1+1+1 \\rightarrow 4+4+1+1+1=11 ; \\quad 3 \\rightarrow 2+2+2+1 \\rightarrow 4+4+4+1=13\n\\end{gathered}\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34085, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia dato un esagono regolare di lato $1$. Consideriamo un triangolo equilatero di lato $1$ dentro all'esagono, con due vertici vincolati al perimetro dell'esagono. Muoviamo il triangolo equilatero in modo che uno dei due vertici vincolati compia esattamente un giro lungo il perimetro dell'esagono. Quant'è la lunghezza percorsa dal vertice non vincolato?\n\n(A) $\\pi / 2$\n(B) $\\frac{\\pi \\sqrt{3}}{3}$\n(C) $8 \\sqrt{3}-12$\n(D) $(4 \\sqrt{3}-6) \\pi$\n(E) Nessuna delle precedenti.", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è (C). Mostriamo che, nello spostare il primo vertice vincolato del triangolo da un estremo all'altro di un singolo lato dell'esagono, il vertice non vincolato percorre avanti e indietro un segmento di lunghezza $\\frac{2 \\sqrt{3}}{3}-1$.\n\nIn effetti, sia $A B C D E F$ l'esagono, sia $O$ il suo centro; siano $G$ e $H$ sui segmenti $A B$ e $B C$, rispettivamente, tali che $G H=A B$, e sia $R$ il punto dalla stessa parte di $O$ rispetto alla retta $G H$ tale che $G H R$ sia un triangolo equilatero. Vogliamo dimostrare che $R$ si trova sulla retta $O B$.\n\n![](attached_image_1.png)\n\nNotiamo che il quadrilatero $G B H R$ è ciclico, poiché la somma degli angoli $\\widehat{G B H}=120^\\circ$ e $\\widehat{G R H}=60^\\circ$ è un angolo piatto. Segue che $\\widehat{G B R}=\\widehat{G H R}=60^\\circ$, dunque $\\widehat{G B R}=\\widehat{G B O}$ come desiderato. Calcoliamo inoltre la distanza di $R$ da $O$ nel caso in cui $G H$ sia ortogonale a $B O$ (ovvero $H$ sia il simmetrico di $G$ rispetto a tale retta). In questo caso, detto $K$ il punto di intersezione fra $B O$ e $G H$, i triangoli $K G B$ e $K H B$ sono congruenti e rettangoli, ciascuno la metà di un triangolo equilatero, da cui $B K=\\frac{1}{\\sqrt{3}}$, $G K=\\frac{\\sqrt{3}}{6}$. Dato che $R K=\\frac{\\sqrt{3}}{2}$ e $O B=1$, vale $R O=R K-(O B-B K)=2 \\frac{\\sqrt{3}}{3}-1$.\n\nRisulta dunque che, quando un vertice vincolato del triangolo rettangolo si muove da $A$ a $B$ e il secondo vertice vincolato da $B$ a $C$, il vertice non vincolato percorre avanti e indietro un segmento $O X$ di lunghezza $2 \\frac{\\sqrt{3}}{3}-1$. In totale, la lunghezza percorsa dal vertice non vincolato è $12 \\cdot O X=8 \\sqrt{3}-12$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34086, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLucio compra un tavolo a forma di esagono regolare e una tovaglia rettangolare di area $1024~\\mathrm{cm}^2$ che ha lato minore pari al lato dell'esagono e copre esattamente la porzione di tavolo compresa fra due lati opposti. Quanto vale l'area del tavolo, espressa in $\\mathrm{cm}^2$?", "options": [], "answer": "1536", "solution": "Solution:\n\nLa risposta è 1536.\n\n![](attached_image_1.png)\n\nSia $A B C D E F$ un esagono regolare che rappresenti il tavolo; la tovaglia di area $1024~\\mathrm{cm}^2$ copre esattamente il rettangolo $A B D E$. Detto $O$ il centro dell'esagono e detti $H, K$ i punti di intersezione fra i segmenti $B D$ e $O C$, $A E$ e $O F$, rispettivamente, i triangoli $O A K$, $O E K$, $O B H$ e $O D H$ sono tutti congruenti e di area pari a metà dell'area dei triangoli equilateri $A B O$ e $D E O$. Segue che l'area del rettangolo $A B D E$ è pari a quattro volte l'area di $A B O$, mentre l'area del tavolo vale sei volte l'area di $A B O$. Se ne conclude che l'area del tavolo è di $\\frac{6}{4} \\cdot 1024~\\mathrm{cm}^2 = 1536~\\mathrm{cm}^2$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34087, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nQuanti sono gli interi positivi $n$ per cui $\\left(2022+\\frac{1}{2}\\right)^{n}+\\left(25+\\frac{1}{2}\\right)^{n}$ è un numero intero?", "options": [], "answer": "6", "solution": "Solution:\n\nLa risposta è 6. Mostreremo che gli interi $n$ voluti sono precisamente gli interi positivi dispari minori o uguali ad 11.\n\nOsserviamo che $2022+\\frac{1}{2}=\\frac{4045}{2}$ e $25+\\frac{1}{2}=\\frac{51}{2}$, per cui stiamo cercando gli interi positivi $n$ per i quali la frazione $\\frac{4045^{n}+51^{n}}{2^{n}}$ sia intera.\n\nOsserviamo intanto che se $n=2k$ è pari questo non accade mai: infatti il numeratore è pari, ma non divisibile per 4, in quanto $4045^{2k}$ e $51^{2k}$ lasciano entrambi resto 1 nella divisione per 4 (per dimostrare questo fatto basta osservare che $4045^{2k}-1=\\left(4045^{k}+1\\right)\\left(4045^{k}-1\\right)$ è prodotto di due numeri pari, e perciò è divisibile per 4; similmente per $51^{2k}-1$), e quindi la loro somma lascia resto 2 nella divisione per 4.\n\nQuando $n=2k+1$ è dispari, invece, possiamo usare la nota fattorizzazione per una somma di due potenze dispari di uguale esponente per ottenere\n$$\n4045^{2k+1}+51^{2k+1}=(4045+51) \\cdot\\left(4045^{2k}-4045^{2k-1} \\cdot 51+\\cdots-4045 \\cdot 51^{2k-1}+51^{2k}\\right)\n$$\nIl numero nella seconda parentesi è la somma algebrica di $2k+1$ termini dispari, quindi è dispari. Il prodotto appena scritto è quindi divisibile per $2^{2k+1}$ se e solo se lo è $4045+51=4096=2^{12}$. Questo accade se e solo se $2k+1 \\leq 12$, cioè per $k=0,1, \\ldots, 5$, valori che forniscono le 6 soluzioni volute.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34088, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn numero di tre cifre, diverse fra loro e non nulle (diciamo $a b c$), si dice petaloso se esiste un intero $n \\geq 1$ tale che il numero $c b a \\underbrace{00 \\cdots 0}_{n \\text{ zeri}}$ sia multiplo di $a b c$. Il più piccolo $n$ che rende vera questa divisibilità è detto fiore di $a b c$.\n\nEsempio. Il numero 132 è petaloso, in quanto 132 divide 23100. Siccome $23100/132 = 175$ è intero ma $2310 / 132=17,5$ non lo è, il fiore di 132 è 2.\n\na. Sia $a b c$ un numero di tre cifre (diverse fra loro e non nulle) della forma $2^{x} \\cdot 3^{y} \\cdot 5^{z}$ con $x, y, z$ interi non negativi e $y \\leq 2$. Dimostrare che $a b c$ è petaloso.\n\nb. Quanto vale al massimo il fiore di un numero petaloso (di tre cifre)?\n\nc. Sia $a b c$ un numero petaloso. Dimostrare che $a b c$ non è divisibile per 13.", "options": [], "answer": "9", "solution": "Solution:\n\na.\nDobbiamo dimostrare che, per $n$ sufficientemente grande, il numero $a b c=2^{x} \\cdot 3^{y} \\cdot 5^{z}$ divide $c b a \\cdot 10^{n}=c b a \\cdot 2^{n} \\cdot 5^{n}$. Mostreremo che questa condizione è rispettata con $n=\\max \\{x, z\\}$. Sicuramente con questa scelta di $n$ si ha che $2^{x} \\cdot 5^{z}$ divide $2^{n} \\cdot 5^{n}$. Basta quindi verificare che $3^{y}$ divida $c b a \\cdot 10^{n}$, e chiaramente per far questo è sufficiente mostrare che $3^{y}$ divide $c b a$. Per $y=0$ non c'è niente da dimostrare ($3^{0}=1$ divide qualsiasi numero). Per $y=1$ abbiamo che 3 divide $a b c$, ovvero, per il noto criterio di divisibilità per 3, che 3 divide $a+b+c$. Per lo stesso criterio di divisibilità abbiamo allora che $3=3^{y}$ divide $c b a$ (la cui somma delle cifre è ancora $a+b+c$), da cui la tesi. Nel caso $y=2$ procediamo similmente: il criterio di divisibilità per 9 garantisce che $a+b+c$ sia multiplo di 9, e quindi anche $c b a$ è multiplo di $3^{y}=9$, come voluto.\n\nSeconda soluzione.\nScriviamo più propriamente $a b c=100 a+10 b+c$ e $c b a=100 c+10 b+a$. Si chiede di mostrare che $100 a+10 b+c=2^{x} \\cdot 3^{y} \\cdot 5^{z}$ divide $(100 c+10 b+a) \\cdot 10^{n}$ per $n$ sufficientemente grande. Un intero $k$ divide un intero $m$ se e solo se $k$ divide $m-t k$, dove $t$ è un qualsiasi numero intero. In particolare, preso $t=10^{n}$, si ha che $100 a+10 b+c$ divide $(100 c+10 b+a) \\cdot 10^{n}$ se e solo se divide $(100 c+10 b+a) \\cdot 10^{n}-(100 a+10 b+c) \\cdot 10^{n}=9 \\cdot 11 \\cdot(c-a) \\cdot 10^{n}$. Dato che per ipotesi $y \\leq 2$, è chiaro che per $n=\\max \\{x, z\\}$ si ha la divisibilità voluta, in quanto $3^{y}$ divide 9 e $2^{x} \\cdot 5^{z}$ divide $10^{\\max \\{x, z\\}}=2^{\\max \\{x, z\\}} \\cdot 5^{\\max \\{x, z\\}}$.\n\nb.\nConsideriamo per quali $k$ il numero $a b c$ divida $c b a \\cdot 10^{k}=c b a \\cdot 2^{k} \\cdot 5^{k}$. Scriviamo la fattorizzazione in primi di $a b c$ come $2^{x} \\cdot 5^{y} \\cdot p_{1}^{e_{1}} \\cdots p_{k}^{e_{k}}$, dove $p_{1}, \\ldots, p_{k}$ sono primi distinti fra loro e distinti da 2 e 5. Scriviamo similmente la fattorizzazione di $c b a$ come $2^{X} \\cdot 5^{Y} \\cdot q_{1}^{f_{1}} \\cdots q_{r}^{f_{r}}$. La condizione di divisibilità è che ogni primo appaia nella fattorizzazione di $a b c$ con esponente minore o uguale a quello con cui appare in $c b a \\cdot 10^{k}$. Per i primi diversi da 2 e 5, questo vuol dire che ogni $p_{i}$ appare anche nella fattorizzazione di $c b a$, e che l'esponente con cui divide $c b a$ è maggiore o uguale di quello con cui divide $a b c$. Questa condizione non dipende da $k$. Per i primi 2 e 5 invece la condizione\n$$\n2^{x} \\cdot 5^{y} \\text{ divide } c b a \\cdot 10^{k}=2^{X+k} \\cdot 5^{Y+k} \\cdot q_{1}^{f_{1}} \\cdots q_{r}^{f_{r}}\n$$\nsi traduce in $x \\leq X+k$ e $y \\leq Y+k$. Affermiamo allora che non può mai essere necessario un valore di $k$ strettamente superiore a 9: infatti $k=10$ può essere necessario solo se $x \\geq 10$ o $y \\geq 10$, ma in tal caso $a b c$ sarebbe divisibile o per $2^{10}=1024$ o per $5^{10}>1000$, e quindi non potrebbe essere un numero di tre cifre. Questo mostra che il massimo fiore non può superare 9. D'altra parte, preso $a b c=512=2^{9}$, abbiamo che il minimo $k$ per cui $a b c$ divide $c b a \\cdot 10^{k}=215 \\cdot 2^{k} \\cdot 5^{k}$ è proprio 9 (i fattori 2 in quest'ultimo prodotto sono esattamente $k$). Il massimo fiore di un numero petaloso di tre cifre è quindi 9.\n\nc.\nSupponiamo per assurdo che 13 divida il numero petaloso $a b c$. Per quanto dimostrato al punto precedente vediamo che 13 divide anche $c b a$. Scrivendo esplicitamente questi numeri in termini della loro rappresentazione in base 10 abbiamo $a b c=100 a+10 b+c$ e $c b a=100 c+10 b+a$. Se 13 divide entrambi questi numeri, allora deve dividere la loro differenza, che è $99(c-a)$. Ora osserviamo che 13 è un numero primo, per cui il prodotto $99(c-a)$ è divisibile per 13 se e solo se lo è uno dei due fattori. Tuttavia 99 non è divisibile per 13, come è facile verificare con un calcolo diretto, e $c-a$ non è divisibile per 13 in quanto differenza di 2 cifre distinte e non nulle: si ha in effetti $0<|c-a| \\leq 8$, e quindi certamente $c-a$ non è multiplo di 13. Siamo giunti ad un assurdo, per cui l'ipotesi originaria che 13 dividesse $a b c$ doveva essere falsa, il che mostra la tesi.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34089, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABC$ un triangolo, sia $r$ la bisettrice interna dell'angolo acuto $\\widehat{BAC}$ e siano $K$ la proiezione di $B$ su $r$, $L$ la proiezione di $K$ su $AB$ e $D$ il simmetrico di $B$ rispetto ad $L$. Chiamiamo infine $H$ il piede dell'altezza del triangolo $ABC$ uscente da $B$. Dimostrare che:\n\na. $BH = 2 LK$;\n\nb. $KA$ biseca l'angolo $\\widehat{HKD}$;\n\nc. il triangolo $ADH$ è isoscele.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\na.\nOsserviamo intanto che il quadrilatero $AHKB$ è inscrivibile in una circonferenza, in quanto gli angoli $\\widehat{AHB}$ e $\\widehat{AKB}$ sono uguali (in particolare, retti). Gli angoli alla circonferenza $\\widehat{KBH}$ e $\\widehat{KAH}$ insistono sul medesimo arco e sono quindi uguali. D'altro canto $\\widehat{KAH} = \\widehat{BAK}$ per costruzione; sia $\\alpha$ l'ampiezza comune di questi due angoli. Anche gli angoli alla circonferenza $\\widehat{BHK}$ e $\\widehat{BAK}$ insistono sullo stesso arco, e quindi sono uguali fra loro (e ad $\\alpha$). Ne segue che il triangolo $HKB$ è isoscele su base $HB$, in quanto gli angoli $\\widehat{BHK}$ e $\\widehat{KBH}$ sono entrambi pari ad $\\alpha$. Detto $M$ il punto medio di $HB$, il segmento $KM$ è altezza e mediana dell'angolo in $K$ del triangolo $HKB$, per cui $BH = 2 BM$ e il triangolo $BMK$ è rettangolo in $M$.\n\nDal momento che il triangolo $KLB$ è rettangolo in $L$ abbiamo $\\widehat{KBL} + \\widehat{LKB} = 90^\\circ$. Siccome anche $AKB$ è rettangolo (in $K$), abbiamo anche $90^\\circ = \\widehat{KBA} + \\widehat{BAK} = \\widehat{KBL} + \\alpha$. Combinando le ultime due equazioni otteniamo allora $\\widehat{LKB} = \\alpha$. In particolare, il triangolo $BLK$ è simile al triangolo $KMB$, in quanto entrambi sono rettangoli e hanno uno dei due angoli acuti uguale ad $\\alpha$. D'altro canto essi sono anche congruenti, visto che hanno l'ipotenusa in comune. Ne segue quindi che $BM = LK$, e infine che $BH = 2 BM = 2 LK$.\n\n$$\nBH = AB \\cdot \\sin(\\widehat{BAH}) = AB \\cdot \\sin(2\\alpha) = 2 \\cdot AB \\cdot \\sin(\\alpha) \\cdot \\cos(\\alpha),\n$$\ndove si è usata la formula di duplicazione del seno, e\n$$\nLK = AK \\cdot \\sin(\\alpha) = AB \\cdot \\cos(\\alpha) \\cdot \\sin(\\alpha),\n$$\nda cui segue la tesi.\n\n\nb.\nSi ha $\\widehat{HKA} = \\widehat{HBA}$ in quanto angoli alla circonferenza che insistono sullo stesso arco. Dal momento che il triangolo $AHB$ è rettangolo in $H$, l'angolo $\\widehat{HBA}$ è uguale a $90^\\circ - \\widehat{BAH} = 90^\\circ - 2\\alpha$.\n\nL'angolo $\\widehat{AKD}$ è invece uguale a $\\widehat{AKB} - \\widehat{LKB} - \\widehat{DKL}$. L'angolo $\\widehat{AKB}$ è retto per costruzione; l'angolo $\\widehat{LKB}$ è pari ad $\\alpha$ come mostrato al punto precedente. Infine, l'angolo $\\widehat{DKL}$ è uguale a $\\widehat{LKB}$ in quanto i triangoli $BLK$ e $DLK$ sono uno il simmetrico dell'altro rispetto al segmento $KL$. Otteniamo quindi $\\widehat{AKD} = \\widehat{AKB} - \\widehat{LKB} - \\widehat{DKL} = 90^\\circ - \\alpha - \\alpha = 90^\\circ - 2\\alpha = \\widehat{HKA}$, che è la tesi.\n\n\nc.\nIl segmento $DK$ è uguale al segmento $BK$, che a sua volta, come mostrato nel primo punto, è uguale a $KH$. Il triangolo $HKD$ è quindi isoscele su base $HD$. I triangoli $KAH$ e $KAD$ sono simili, in quanto\n$$\n\\widehat{DAK} = \\widehat{KAH} = \\alpha, \\quad \\widehat{AKD} = \\widehat{HKA},\n$$\ndove la seconda uguaglianza è stata mostrata al punto precedente. Essi sono allora anche uguali, perché hanno un lato corrispondente, ovvero $AK$, in comune. Segue quindi che i lati corrispondenti $AH$ e $AD$ sono uguali, come voluto.\n\n\nSeconda soluzione.\nSfruttando i medesimi triangoli rettangoli considerati al primo punto abbiamo\n$$\nAH = AB \\cdot \\cos(2\\alpha) = AB \\cdot (1 - 2 \\sin^2(\\alpha)),\n$$\ndove si è usata la formula di duplicazione del coseno, e\n$$\n\\begin{aligned}\nAD &= AB - DB = AB - 2 LB = AB - 2 BK \\cdot \\sin(\\alpha) \\\\\n&= AB - 2 AB \\cdot \\sin(\\alpha) \\cdot \\sin(\\alpha) = AB \\cdot (1 - 2 \\sin^2(\\alpha)),\n\\end{aligned}\n$$\nche è la tesi.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34090, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABC$ un triangolo, sia $r$ la bisettrice interna dell'angolo acuto $\\widehat{BAC}$ e siano $K$ la proiezione di $B$ su $r$, $L$ la proiezione di $K$ su $AB$ e $D$ il simmetrico di $B$ rispetto ad $L$. Chiamiamo infine $H$ il piede dell'altezza del triangolo $ABC$ uscente da $B$. Dimostrare che:\n\na. $BH = 2 LK$;\n\nb. $KA$ biseca l'angolo $\\widehat{HKD}$;\n\nc. il triangolo $ADH$ è isoscele.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\na.\nOsserviamo intanto che il quadrilatero $AHKB$ è inscrivibile in una circonferenza, in quanto gli angoli $\\widehat{AHB}$ e $\\widehat{AKB}$ sono uguali (in particolare, retti). Gli angoli alla circonferenza $\\widehat{KBH}$ e $\\widehat{KAH}$ insistono sul medesimo arco e sono quindi uguali. D'altro canto $\\widehat{KAH} = \\widehat{BAK}$ per costruzione; sia $\\alpha$ l'ampiezza comune di questi due angoli. Anche gli angoli alla circonferenza $\\widehat{BHK}$ e $\\widehat{BAK}$ insistono sullo stesso arco, e quindi sono uguali fra loro (e ad $\\alpha$). Ne segue che il triangolo $HKB$ è isoscele su base $HB$, in quanto gli angoli $\\widehat{BHK}$ e $\\widehat{KBH}$ sono entrambi pari ad $\\alpha$. Detto $M$ il punto medio di $HB$, il segmento $KM$ è altezza e mediana dell'angolo in $K$ del triangolo $HKB$, per cui $BH = 2 BM$ e il triangolo $BMK$ è rettangolo in $M$.\n\nDal momento che il triangolo $KLB$ è rettangolo in $L$ abbiamo $\\widehat{KBL} + \\widehat{LKB} = 90^\\circ$. Siccome anche $AKB$ è rettangolo (in $K$), abbiamo anche $90^\\circ = \\widehat{KBA} + \\widehat{BAK} = \\widehat{KBL} + \\alpha$. Combinando le ultime due equazioni otteniamo allora $\\widehat{LKB} = \\alpha$. In particolare, il triangolo $BLK$ è simile al triangolo $KMB$, in quanto entrambi sono rettangoli e hanno uno dei due angoli acuti uguale ad $\\alpha$. D'altro canto essi sono anche congruenti, visto che hanno l'ipotenusa in comune. Ne segue quindi che $BM = LK$, e infine che $BH = 2 BM = 2 LK$.\n\nSeconda soluzione.\nDetto $\\alpha$ l'angolo $\\widehat{BAK}$, cosicché $BAH$ è di ampiezza $2\\alpha$, usando il fatto che i triangoli $AHB$, $AKB$ e $ALB$ sono tutti rettangoli per ipotesi si ottiene\n$$\nBH = AB \\cdot \\sin(\\widehat{BAH}) = AB \\cdot \\sin(2\\alpha) = 2 \\cdot AB \\cdot \\sin(\\alpha) \\cdot \\cos(\\alpha),\n$$\ndove si è usata la formula di duplicazione del seno, e\n$$\nLK = AK \\cdot \\sin(\\alpha) = AB \\cdot \\cos(\\alpha) \\cdot \\sin(\\alpha),\n$$\nda cui segue la tesi.\n\n\nb.\nSi ha $\\widehat{HKA} = \\widehat{HBA}$ in quanto angoli alla circonferenza che insistono sullo stesso arco. Dal momento che il triangolo $AHB$ è rettangolo in $H$, l'angolo $\\widehat{HBA}$ è uguale a $90^\\circ - \\widehat{BAH} = 90^\\circ - 2\\alpha$.\n\nL'angolo $\\widehat{AKD}$ è invece uguale a $\\widehat{AKB} - \\widehat{LKB} - \\widehat{DKL}$. L'angolo $\\widehat{AKB}$ è retto per costruzione; l'angolo $\\widehat{LKB}$ è pari ad $\\alpha$ come mostrato al punto precedente. Infine, l'angolo $\\widehat{DKL}$ è uguale a $\\widehat{LKB}$ in quanto i triangoli $BLK$ e $DLK$ sono uno il simmetrico dell'altro rispetto al segmento $KL$. Otteniamo quindi $\\widehat{AKD} = \\widehat{AKB} - \\widehat{LKB} - \\widehat{DKL} = 90^\\circ - \\alpha - \\alpha = 90^\\circ - 2\\alpha = \\widehat{HKA}$, che è la tesi.\n\n\nc.\nIl segmento $DK$ è uguale al segmento $BK$, che a sua volta, come mostrato nel primo punto, è uguale a $KH$. Il triangolo $HKD$ è quindi isoscele su base $HD$. I triangoli $KAH$ e $KAD$ sono simili, in quanto\n$$\n\\widehat{DAK} = \\widehat{KAH} = \\alpha, \\quad \\widehat{AKD} = \\widehat{HKA},\n$$\ndove la seconda uguaglianza è stata mostrata al punto precedente. Essi sono allora anche uguali, perché hanno un lato corrispondente, ovvero $AK$, in comune. Segue quindi che i lati corrispondenti $AH$ e $AD$ sono uguali, come voluto.\n\nSeconda soluzione.\nSfruttando i medesimi triangoli rettangoli considerati al primo punto abbiamo\n$$\nAH = AB \\cdot \\cos(2\\alpha) = AB \\cdot (1 - 2 \\sin^2(\\alpha)),\n$$\ndove si è usata la formula di duplicazione del coseno, e\n$$\n\\begin{aligned}\nAD &= AB - DB = AB - 2 LB = AB - 2 BK \\cdot \\sin(\\alpha) \\\\\n&= AB - 2 AB \\cdot \\sin(\\alpha) \\cdot \\sin(\\alpha) = AB \\cdot (1 - 2 \\sin^2(\\alpha)),\n\\end{aligned}\n$$\nche è la tesi.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34091, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIl primo quadrante del piano cartesiano è l'insieme dei punti $(x, y)$ con $x$ e $y$ numeri reali strettamente positivi (cioè $x>0, y>0$ ). Ciascun punto del primo quadrante è colorato di rosso o di blu. Inoltre, per ogni punto $P=(x, y)$ del primo quadrante, tutti i punti sulla semiretta uscente da $P$ con pendenza $y$ (ovvero la semiretta avente origine in $P$ e passante per il punto di coordinate $(x+1,2 y)$ ) hanno lo stesso colore di $P$. Dimostrare che tutti i punti del primo quadrante hanno lo stesso colore.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nConsideriamo due punti qualsiasi $P_{1} = (x_{1}, y_{1})$ e $P_{2} = (x_{2}, y_{1})$ giacenti sulla semiretta orizzontale data dall'intersezione di $y = y_{1}$ con il primo quadrante (si veda anche la figura, dove $y_{1} = 1$). Siano $r_{1}, r_{2}$ le due semirette uscenti da $P_{1}, P_{2}$ considerate nel problema. Tali semirette hanno la stessa pendenza rispetto all'asse orizzontale e sono quindi parallele. Questo si può vedere anche in termini di geometria euclidea, in quanto i triangoli formati dai punti $P_{1}, (x_{1}+1, y_{1}), (x_{1}+1, 2y_{1})$ e $P_{2}, (x_{2}+1, y_{1}), (x_{2}+1, 2y_{1})$ si ottengono l'uno dall'altro tramite una traslazione orizzontale di $x_{2} - x_{1}$, e quindi le loro ipotenuse (che giacciono sulle semirette $r_{1}, r_{2}$) sono parallele.\n\nA meno di simmetria supponiamo ora che $x_{2} > x_{1}$, cosicché la semiretta $r_{2}$ giace a destra di $r_{1}$. Scegliamo un qualsiasi punto $Q = (x_{Q}, y_{Q})$ su $r_{2}$ distinto da $P_{2}$. Si ha in particolare $y_{Q} > y_{1}$, in quanto $P_{2}$ è il punto di ordinata minima sull'intera semiretta $r_{2}$. La semiretta $r$ uscente da $Q$ e passante per $(x_{Q}+1, 2y_{Q})$ ha pendenza $y_{Q}$, maggiore della pendenza della semiretta $r_{1}$, e quindi $r_{1}$ ed $r$ si incontrano in un qualche punto $S$ a destra di $Q$.\n\n![](attached_image_1.png)\n\nSegue allora dalle ipotesi del problema che $S$ ha lo stesso colore di $Q$ (in quanto $S$ appartiene alla semiretta $r$) e che $Q$ ha lo stesso colore di $P_{2}$ (in quanto appartiene alla semiretta $r_{2}$). D'altro canto, è anche vero che $S$ appartiene alla semiretta $r_{1}$, e quindi ha lo stesso colore di $P_{1}$. Ne segue perciò che $P_{1}, Q$ e $P_{2}$ hanno tutti lo stesso colore. Dal momento che i punti $P_{1}, P_{2}$ erano scelti arbitrariamente sulla retta $y = y_{1}$, questo mostra che tale retta orizzontale è costituita da punti tutti dello stesso colore. Visto poi che anche $y_{1}$ era scelto arbitrariamente, otteniamo che ogni semiretta orizzontale è monocromatica.\n\nInfine, prendiamo due qualsiasi semirette orizzontali $s_{1}, s_{2}$, date dalle intersezioni con il primo quadrante rispettivamente delle rette $y = y_{1}$ e $y = y_{2}$. A meno di simmetria possiamo supporre $y_{1} < y_{2}$. Si consideri un punto qualsiasi $P$ sulla semiretta $s_{1}$. La semiretta $r_{P}$ uscente da $P$ con pendenza pari all'ordinata di $P$ interseca ogni retta orizzontale che stia sopra $s_{1}$, e quindi in particolare interseca $s_{2}$. Dato che la semiretta $r_{P}$ è monocromatica e contiene tanto un punto di $s_{1}$ quanto un punto di $s_{2}$, otteniamo che il colore comune di tutti i punti di $s_{1}$ è uguale al colore comune di tutti i punti di $s_{2}$. Infine, questo ragionamento vale per qualsiasi coppia di semirette orizzontali, e quindi ogni punto del primo quadrante è colorato con lo stesso colore.\n\nConcludiamo includendo per completezza una verifica algebrica dell'affermazione (graficamente evidente) che le semirette $r$ ed $r_{1}$ si incontrino effettivamente in un qualche punto $S$. Le rette contenenti le semirette $r_{1}$, $r_{2}$ hanno equazioni rispettive $y = y_{1}(x - x_{1}) + y_{1}$, $y = y_{1}(x - x_{2}) + y_{1}$, dove supponiamo $x_{2} > x_{1}$. Le semirette $r_{1}$ ed $r_{2}$ sono descritte da tali equazioni, ristrette però a valori $x \\geq x_{1}$ (rispettivamente $x \\geq x_{2}$).\n\nSe chiamiamo $(x_{Q}, y_{Q})$ le coordinate del punto $Q$ (con $x_{Q} > x_{2}$) si ha allora $y_{Q} = y_{1}(x_{Q} - x_{2}) + y_{1} = y_{1}(x_{Q} - x_{2} + 1)$, e la retta contenente la semiretta $r$ ha equazione $y = y_{Q}(x - x_{Q} + 1)$ (i punti della semiretta sono quelli con $x \\geq x_{Q}$). Mettendo a sistema tale equazione con quella della retta contenente $r_{1}$ si trova\n\n$$\n\\left\\{\n\\begin{array}{l}\ny = y_{1}(x - x_{1} + 1) \\\\\ny = y_{Q}(x - x_{Q} + 1)\n\\end{array}\n\\right.\n$$\n\nda cui possiamo ottenere la coordinata $x$ del punto di intersezione, ovvero\n\n$$\n\\begin{aligned}\nx & = \\frac{y_{1} - y_{Q}}{y_{Q} - y_{1}} + \\frac{y_{Q} x_{Q} - x_{1} y_{1}}{y_{Q} - y_{1}} = -1 + \\frac{y_{1}(x_{Q} - x_{2} + 1) x_{Q} - x_{1} y_{1}}{y_{1}(x_{Q} - x_{2})} \\\\\n& = -1 + \\frac{(x_{Q} - x_{2} + 1) x_{Q} - x_{1}}{x_{Q} - x_{2}} = -1 + \\frac{x_{Q} - x_{1}}{x_{Q} - x_{2}} + x_{Q}.\n\\end{aligned}\n$$\n\nBasta ora osservare che $x_{1} < x_{2} < x_{Q}$ implica $x_{Q} - x_{1} > x_{Q} - x_{2} > 0$, per cui il rapporto $\\frac{x_{Q} - x_{1}}{x_{Q} - x_{2}}$ è strettamente maggiore di $1$, e quindi la coordinata $x$ del punto di intersezione calcolata qui sopra è strettamente maggiore di $x_{Q}$ (quindi anche di $x_{1}$), ovvero effettivamente tale punto è a destra di $Q$ ed appartiene alle semirette $r$ ed $r_{1}$.\nSolution:\n\nMostriamo direttamente che due punti qualsiasi $P_{1} = (x_{1}, y_{1})$ e $P_{2} = (x_{2}, y_{2})$ del primo quadrante hanno lo stesso colore. Siano $r_{1}, r_{2}$ le semirette uscenti da $P_{1}, P_{2}$ con pendenze rispettive $y_{1}, y_{2}$.\n\nOsserviamo come caso speciale che se $r_{1}, r_{2}$ si incontrano in un punto $Q$, allora chiaramente $P_{1}$ e $P_{2}$ hanno lo stesso colore, perché $Q$ ha lo stesso colore di $P_{1}$ (in quanto sta su $r_{1}$) e anche lo stesso colore di $P_{2}$ (in quanto sta su $r_{2}$).\n\nNel caso generale (ovvero che $r_{1}, r_{2}$ si intersechino o meno) possiamo procedere come segue. Scegliamo un punto $S = (x_{S}, y_{S})$ che rispetti le seguenti condizioni:\n(a) $S$ è a destra sia di $P_{1}$ che di $P_{2}$;\n(b) $S$ è al di sotto tanto di $r_{1}$ quanto di $r_{2}$;\n(c) $y_{S}$ è maggiore sia di $y_{1}$ che di $y_{2}$.\n\nMostreremo sotto per via algebrica che un tale punto esiste sempre. La semiretta $r_{S}$ uscente da $S$ ha pendenza $y_{S}$, maggiore di quelle di $r_{1}, r_{2}$, e siccome $S$ è sotto $r_{1}, r_{2}$ e a destra di $P_{1}, P_{2}$, la semiretta $r_{S}$ interseca sia $r_{1}$ che $r_{2}$, in due punti che chiamiamo $S_{1}, S_{2}$ (che queste semirette effettivamente si intersechino si può verificare per via algebrica in modo molto simile a quanto fatto nella prima soluzione). Il colore comune dei punti di $r_{1}$ è il colore di $S_{1}$ e il colore comune dei punti di $r_{2}$ è il colore di $S_{2}$. Ma d'altro canto $S_{1}, S_{2}$ appartengono alla stessa semiretta monocromatica $r_{S}$, per cui $r_{1}, r_{2}$ sono in effetti dello stesso colore. In particolare, $P_{1}$ e $P_{2}$ sono colorati con lo stesso colore. Siccome questo vale per ogni coppia di punti del primo quadrante, l'intero primo quadrante è colorato del medesimo colore.\n\nPer mostrare l'esistenza del punto $S = (x_{S}, y_{S})$ voluto, scegliamo\n$$\nx_{S} = (x_{1} + x_{2}) + \\left(\\frac{1}{y_{1}} + \\frac{1}{y_{2}} + \\frac{y_{2}}{y_{1}} + \\frac{y_{1}}{y_{2}}\\right)\n$$\ne $y_{S} = \\max\\{y_{1}, y_{2}\\} + 1$. Si noti che $x_{S}$ è maggiore sia di $x_{1}$ che di $x_{2}$, cioè $S$ sta a destra di $P_{1}$ e $P_{2}$. Le rette contenenti le semirette $r_{1}, r_{2}$ hanno equazioni rispettive\n$$\ny = y_{1}(x - x_{1} + 1), \\quad y = y_{2}(x - x_{2} + 1)\n$$\nle semirette $r_{1}, r_{2}$ sono ottenute restringendosi ai valori $x \\geq x_{1}$ (rispettivamente $x \\geq x_{2}$).\n\nI punti $T_{1}, T_{2}$ di $r_{1}, r_{2}$ di ascissa $x_{S}$ hanno quindi ordinate rispettive\n$$\ny = y_{1}\\left((x_{1} + x_{2}) + \\left(\\frac{1}{y_{1}} + \\frac{1}{y_{2}} + \\frac{y_{2}}{y_{1}} + \\frac{y_{1}}{y_{2}}\\right) - x_{1} + 1\\right) > y_{1}\\left(\\frac{1 + y_{2}}{y_{1}} + 1\\right) = y_{1} + y_{2} + 1\n$$\ne\n$$\ny = y_{2}\\left((x_{1} + x_{2}) + \\left(\\frac{1}{y_{1}} + \\frac{1}{y_{2}} + \\frac{y_{2}}{y_{1}} + \\frac{y_{1}}{y_{2}}\\right) - x_{2} + 1\\right) > y_{2}\\left(\\frac{1 + y_{1}}{y_{2}} + 1\\right) = y_{1} + y_{2} + 1.\n$$\n\nSi osservi che siccome $y_{1}, y_{2}$ sono positive si ha $y_{1} + y_{2} + 1 > \\max\\{y_{1}, y_{2}\\} + 1$. Ne segue che il punto $S = (x_{S}, y_{S})$ ha ordinata strettamente minore di $T_{1}, T_{2}$ e quindi si trova effettivamente al di sotto delle semirette $r_{1}, r_{2}$. D'altro canto, per costruzione $S$ ha ordinata strettamente maggiore di $y_{1}, y_{2}$, per cui ha tutte le proprietà volute.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34092, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABC$ un triangolo acutangolo con $AB < AC$. Siano\n- $D$ il piede della bisettrice dell'angolo in $A$,\n- $E$ il punto del segmento $BC$ (diverso da $B$) tale che $AB = AE$,\n- $F$ il punto del segmento $BC$ (diverso da $B$) tale che $BD = DF$,\n- $G$ il punto del segmento $AC$ tale che $AB = AG$.\nDimostrare che la circonferenza circoscritta al triangolo $EFG$ è tangente alla retta $AC$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nPrimo metodo (angle chasing)\nPer le proprietà dell'angolo alla circonferenza (anche nel caso limite della tangente) la tesi è equivalente a dimostrare che $\\angle EGA = \\angle EFG$.\nIndichiamo con $\\theta$ l'ampiezza di $\\angle GBC$. Osserviamo che i punti $B, E, G$ appartengono ad una stessa circonferenza con centro in $A$ e quindi, poiché un angolo al centro è il doppio di un corrispondente angolo alla circonferenza, ne deduciamo che $\\angle EAG = 2 \\angle EBG = 2\\theta$. Essendo il triangolo $AEG$ isoscele sulla base $EG$, concludiamo che\n$$\n\\angle EGA = \\frac{1}{2}\\left(180^\\circ - \\angle EAG\\right) = \\frac{1}{2}\\left(180^\\circ - 2\\theta\\right) = 90^\\circ - \\theta.\n$$\nConsideriamo ora il triangolo $ABG$. Si tratta di un triangolo isoscele sulla base $BG$, e la retta $AD$ è la bisettrice dell'angolo al vertice. Ne segue che la retta $AD$ è anche altezza, ed in particolare è perpendicolare alla retta $BG$. Indicato con $K$ il punto di intersezione delle rette $AD$ e $BG$, osserviamo che $K$ è il punto medio di $BG$ (in un triangolo isoscele il piede dell'altezza è il punto medio della base), mentre $D$ è il punto medio di $BF$ (per costruzione). Dal teorema di Talete segue allora che la retta $GF$ è parallela alla retta $AD$, e dunque perpendicolare alla retta $BG$. Se ne deduce in particolare che il triangolo $BGF$ è rettangolo in $G$, da cui\n$$\n\\angle EFG = 90^\\circ - \\angle GBC = 90^\\circ - \\theta.\n$$\nConfrontando la (1) e la (2) si ottiene l'uguaglianza richiesta.\n\n![](attached_image_1.png)\n\nVariante\nPotevamo in alternativa dimostrare che $\\angle FGC = \\angle FEG$. Per calcolare $\\angle FGC$ sfruttiamo il parallelismo tra $AD$ e $GF$, ottenendo che\n$$\n\\angle FGC = \\angle DAC = \\frac{\\alpha}{2},\n$$\ndove $\\alpha$ indica l'ampiezza dell'angolo in $A$ del triangolo $ABC$.\nPer calcolare $\\angle FEG$, consideriamo il punto $G'$, simmetrico di $G$ rispetto ad $A$, ed osserviamo che il quadrilatero $BEGG'$ è ciclico e ha l'angolo in $G'$ uguale ad $\\alpha/2$, perché il corrispondente angolo al centro (in $A$) è uguale ad $\\alpha$. Dalle proprietà dei quadrilateri ciclici segue allora che\n$$\n\\angle FEG = 180^\\circ - \\angle BEG = \\angle BG'G = \\alpha/2,\n$$\ncome voluto.\n\nSecondo metodo (ciclicità metrica)\nPer il teorema della tangente e della secante, la tesi è equivalente a dimostrare che\n$$\nCG^2 = CF \\cdot CE.\n$$\nPer farlo calcoliamo le lunghezze dei tre segmenti in funzione delle lunghezze dei tre lati, per le quali utilizzeremo le notazioni standard $a = BC$, $b = CA$, $c = AB$.\nPoiché $AG = AB = c$ per costruzione, otteniamo immediatamente che\n$$\nCG = AC - AG = b - c.\n$$\nPer una nota proprietà della bisettrice sappiamo che $BD : DC = AB : AC$, da cui\n$$\nBD : (BD + DC) = AB : (AB + AC).\n$$\nNe segue che $BD = \\frac{ac}{b + c}$, e quindi\n$$\nCF = BC - BF = BC - 2BD = a - \\frac{2ac}{b + c} = \\frac{a(b - c)}{b + c}.\n$$\nInfine, indichiamo con $H$ il piede dell'altezza di $ABC$ uscente dal vertice $A$. Osserviamo che $AH$ è anche altezza del triangolo isoscele $ABE$, e dunque $H$ è anche il punto medio di $BE$, da cui\n$$\nCE = BC - BE = BC - 2BH.\n$$\nNon resta dunque che calcolare la lunghezza di $BH$. Il modo classico per farlo è di porre $BH = x$ e $CH = y$, ed osservare che $x$ e $y$ verificano il sistema\n$$\nx + y = a, \\quad c^2 - x^2 = b^2 - y^2,\n$$\nin cui la prima equazione segue dal fatto che $BH + CH = BC$, e la seconda equazione segue dall'aver calcolato in due modi $AH^2$, applicando il teorema di Pitagora nei triangoli rettangoli $ABH$ e $ACH$. Risolvendo il sistema si trova che\n$$\nBH = \\frac{a^2 + c^2 - b^2}{2a}\n$$\ne in conclusione\n$$\nCE = BC - 2BH = a - \\frac{a^2 + c^2 - b^2}{a} = \\frac{b^2 - c^2}{a}.\n$$\nDalle uguaglianze (4), (5) e (6) segue immediatamente la (3).\n\n![](attached_image_2.png)\n\nOsservazione\nLa lunghezza di $BH$ si può ottenere anche come\n$$\nBH = BA \\cdot \\cos \\beta = c \\cos \\beta,\n$$\ndove con $\\beta$ abbiamo indicato l'angolo $\\angle ABC$. A sua volta, $\\cos \\beta$ si può ricavare in funzione delle lunghezze dei lati utilizzando il teorema del coseno (talvolta citato in Italia come teorema di Carnot), secondo il quale\n$$\nb^2 = a^2 + c^2 - 2ac \\cos \\beta.\n$$\nIl calcolo che abbiamo effettuato risolvendo il sistema in $x$ e $y$ è in fondo proprio il passo essenziale nella dimostrazione del teorema del coseno.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34093, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIl risultato della divisione di $57$ per $111$ è un numero della forma $0,\\ldots$ con infinite cifre dopo la virgola. Quanto vale la somma delle prime $2022$ cifre dopo la virgola?\n\n(A) $3033$\n(B) $4044$\n(C) $5055$\n(D) $6066$\n(E) $7077$", "options": [], "answer": "D", "solution": "Solution:\n\nSi ha $\\frac{57}{111}=\\frac{57 \\cdot 9}{111 \\cdot 9}=\\frac{513}{999}$. Come noto, una frazione $\\frac{a}{b}$ con denominatore della forma $b=\\underbrace{9 \\ldots 9}_{k \\text{ cifre nove}}$ ha uno sviluppo decimale periodico, con periodo di lunghezza $k$. Inoltre, se il numeratore è inferiore al denominatore, allora il numeratore fornisce esattamente le cifre del periodo. Si ottiene allora\n$$\n\\frac{57}{111}=\\frac{513}{999}=0.513513513 \\ldots\n$$\ne quindi ogni gruppo di tre cifre consecutive ha somma $5+1+3=9$. Dal momento che $2022$ cifre corrispondono a $2022 / 3$ gruppi di $3$ cifre, la risposta è $\\frac{2022}{3} \\cdot 9=6066$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34094, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nTre circonferenze di raggio unitario sono tangenti tra loro e una quarta circonferenza è tangente a tutte e tre, e non le racchiude. Quanto vale il raggio della quarta circonferenza?\n(A) $\\frac{\\sqrt{3}+1}{24}$\n(B) $\\frac{1}{8}$\n(C) $\\frac{\\sqrt{3}}{12}$\n(D) $\\frac{2 \\sqrt{3}}{3}-1$\n(E) $\\frac{\\sqrt{3}-1}{4}$", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). Chiamiamo $\\omega_{1}, \\omega_{2}, \\omega_{3}$ le prime tre circonferenze e $\\Omega$ la quarta, e siano $P_{1}, P_{2}, P_{3}, P$ i loro rispettivi centri. Il triangolo $P_{1} P_{2} P_{3}$ è evidentemente equilatero (ognuno dei suoi lati è pari al doppio del raggio delle circonferenze $\\omega_{1}, \\omega_{2}, \\omega_{3}$, cioè è uguale a 2 ). Il punto $P$ è equidistante da $P_{1}, P_{2}, P_{3}$, e quindi è il circocentro di $P_{1} P_{2} P_{3}$. La distanza $P P_{1}$ è allora uguale al raggio della circonferenza circoscritta ad un triangolo equilatero di lato 2. Siccome in un triangolo equilatero il circocentro coincide con il baricentro, e il baricentro taglia ogni mediana in rapporto $1:2$, abbiamo che $P P_{1}$ è anche pari a $2 / 3$ della mediana (o equivalentemente, l'altezza) uscente da $P_{1}$. Dal momento che l'angolo in $P_{2}$ è di $60^{\\circ}$, la lunghezza di tale altezza può essere calcolata come $\\frac{\\sqrt{3}}{2} P_{1} P_{2}=\\sqrt{3}$. Otteniamo perciò che la lunghezza $P P_{1}$ è $\\frac{2}{3} \\sqrt{3}$. Tale lunghezza però è anche uguale alla somma dei raggi di $\\omega_{1}$ e $\\Omega$, per cui per differenza otteniamo che il raggio di $\\Omega$ è $\\frac{2}{3} \\sqrt{3}-1$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34095, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAd una gara matematica partecipano $n=10000$ concorrenti.\nAlla festa conclusiva, in successione, il primo prende $1/n$ della torta, il secondo prende $2/n$ della torta rimanente, il terzo prende $3/n$ della torta che rimane dopo che il primo e il secondo si sono serviti, e così via fino all'ultimo, che prende tutta la torta rimanente.\nDeterminare quale concorrente prende il pezzo di torta più grosso.", "options": [], "answer": "100", "solution": "Solution:\n\nIl concorrente che prende la fetta più grande è quello che si serve per 100-esimo.\nPer ogni $k=1,2, \\ldots, 10000$, indichiamo con $F_{k}$ la fetta che spetta al concorrente $k$-esimo, e con $T_{k}$ la quantità di torta rimasta dopo che si sono serviti i primi $k$ concorrenti. Poniamo per convenzione $T_{0}=1$. Dobbiamo determinare il valore di $k$ per cui $F_{k}$ è massimo. Il testo del problema ci dice che\n$$\nF_{k}=\\frac{k}{n} \\cdot T_{k-1} \\quad \\text{e} \\quad T_{k}=\\frac{n-k}{n} \\cdot T_{k-1} .\n$$\nDa queste due equazioni ricaviamo che\n$$\nF_{k+1}=\\frac{k+1}{n} \\cdot T_{k}=\\frac{k+1}{n} \\cdot \\frac{n-k}{n} \\cdot T_{k-1},\n$$\ne quindi\n$$\n\\frac{F_{k+1}}{F_{k}}=\\frac{k+1}{n} \\cdot \\frac{n-k}{n} \\cdot \\frac{n}{k}=\\frac{(k+1)(n-k)}{n k}=1-\\frac{k(k+1)-n}{k n} .\n$$\nQuesto ci dice in particolare che $F_{k+1}$ è maggiore di $F_{k}$ se e solo se\n$$\nk(k+1)10000)$.\nNe segue che il valore di $F_{k}$ aumenta inizialmente fino a raggiungere il massimo quando $k=100$, per poi diminuire da lì in poi fino al termine dei concorrenti.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34096, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAlberto sceglie 2022 numeri interi $a_{1}, a_{2}, \\ldots, a_{2022}$ (non necessariamente positivi e non necessariamente distinti) e li dispone su una tabella $2022 \\times 2022$ in modo che nella casella $(i, j)$ ci sia il numero $a_{k}$, con $k$ uguale al massimo tra $i$ e $j$, come nella figura seguente (in cui, per maggior leggibilità, abbiamo indicato $a_{2022}$ con $a_{n}$ ).\n\n| $a_{1}$ | $a_{2}$ | $a_{3}$ | $a_{4}$ | $a_{5}$ | | $a_{n}$ |\n| :---: | :---: | :---: | :---: | :---: | :---: | :---: |\n| $a_{2}$ | $a_{2}$ | $a_{3}$ | $a_{4}$ | $a_{5}$ | | $a_{n}$ |\n| $a_{3}$ | $a_{3}$ | $a_{3}$ | $a_{4}$ | $a_{5}$ | | $a_{n}$ |\n| $a_{4}$ | $a_{4}$ | $a_{4}$ | $a_{4}$ | $a_{5}$ | | $a_{n}$ |\n| $a_{5}$ | $a_{5}$ | $a_{5}$ | $a_{5}$ | $a_{5}$ | | $a_{n}$ |\n| . . . | | | | | | $a_{n}$ |\n| $a_{n}$ | $a_{n}$ | $a_{n}$ | $a_{n}$ | $a_{n}$ | $a_{n}$ | $a_{n}$ |\n\nBarbara non conosce i numeri scelti da Alberto, ma sa come sono stati disposti nella tabella. Fissato un intero $k$, con $1 \\leq k \\leq 2022$, Barbara vuole determinare il valore di $a_{k}$, mentre non le interessa determinare i valori degli altri $a_{i}$ con $i \\neq k$. Per farlo, Barbara può porre ad Alberto una o più domande, in ciascuna delle quali chiede ad Alberto quanto valga la somma dei numeri contenuti nelle caselle di un \"percorso\", dove con il termine \"percorso\" si intende una lista ordinata di caselle con le seguenti caratteristiche:\n- il percorso inizia con la casella in alto a sinistra e finisce con la casella in basso a destra,\n- le caselle del percorso sono tutte distinte,\n- due caselle consecutive del percorso hanno sempre un lato in comune.\n\nDeterminare, al variare di $k$, il numero minimo di domande necessarie a Barbara per determinare $a_{k}$.", "options": [], "answer": "2", "solution": "Solution:\n\nPer ogni $k$ ammissibile, il minimo numero di percorsi da utilizzare per determinare con certezza $a_{k}$ è due.\n\nUn percorso non basta\nConsideriamo un percorso, ed indichiamo con $c_{i}$ il numero di caselle che contengono il valore $a_{i}$ attraversate dal percorso. Osserviamo che $c_{i} \\geq 1$ per ogni $i$ e la somma vale\n$$\nS = c_{1} a_{1} + \\ldots + c_{k} a_{k} + \\ldots + c_{2022} a_{2022}.\n$$\nOra Barbara conosce i coefficienti $c_{1}, \\ldots, c_{2022}$, e vorrebbe determinare in maniera univoca il numero $a_{k}$. Supponiamo di aver trovato questo valore di $a_{k}$, e scegliamo un indice $h \\neq k$. Si verifica che la somma $S$ non cambia se si sostituisce $a_{k}$ con $a_{k} + c_{h}$, e si sostituisce $a_{h}$ con $a_{h} - c_{k}$, lasciando tutti gli altri $a_{i}$ invariati. Questo mostra che non vi è mai un unico valore di $a_{k}$ che sia compatibile con la somma data.\n\nDue percorsi bastano quando $2 \\leq k \\leq 2022$\nConsideriamo il percorso $P$ che percorre la prima riga verso destra fino ad incontrare $a_{k}$, poi passa sotto nella seconda riga e torna indietro fino alla prima colonna, quindi si muove verso il basso fino all'ultima riga e infine verso destra fino al traguardo. Consideriamo anche il percorso $P'$ analogo al precedente, con l'unica differenza che il primo \"tornante\" avviene una mossa prima, cioè quando il percorso arriva alla casella con $a_{k-1}$ (nel caso $k=2$ questo vuol dire che il percorso $P'$ si muove direttamente verso il basso).\n\nLa figura seguente rappresenta i due percorsi nel caso speciale $k=5$ (per semplicità abbiamo scritto $a_{n}$ invece di $a_{2022}$).\n\n![](attached_image_1.png)\n\nPercorso $P$\n\n![](attached_image_2.png)\n\nPercorso $P'$\n\nL'unica differenza tra i due percorsi è che $P$ ha due caselle con $a_{k}$ in più. Dette quindi $S$ ed $S'$ le somme sui due percorsi, se ne deduce che\n$$\nS - S' = 2 a_{k}\n$$\nda cui è immediato ricavare il valore di $a_{k}$.\n\nDue percorsi bastano quando $k=1$\nConsideriamo i due percorsi $P$ e $P'$ che partono andando dalla casella iniziale alla casella $(4,4)$ in questo modo.\n- Il percorso $P$ fa in successione due spostamenti verso destra, uno verso il basso, uno verso destra, e infine due verso il basso.\n- Il percorso $P'$ percorre tutta la prima riga, poi scende nella seconda riga e torna indietro fino alla seconda casella della seconda riga, quindi fa una mossa verso il basso, una verso sinistra, una verso il basso, e infine percorre la quarta riga verso destra fino alla casella $(4,4)$.\n\nDalla casella $(4,4)$ fino alla fine i due percorsi proseguono allo stesso modo, alternando sempre una mossa verso destra e una verso il basso. In questo modo le due somme risultano\n$$\nS = a_{1} + a_{2} + 2 a_{3} + 3 a_{4} + 2(a_{5} + \\ldots + a_{2022})\n$$\ne\n$$\nS' = a_{1} + 2 a_{2} + 4 a_{3} + 6 a_{4} + 4(a_{5} + \\ldots + a_{2022})\n$$\nda cui segue che\n$$\n2S - S' = a_{1}\n$$\n\n![](attached_image_3.png)\n\nPercorso $P$\n\n![](attached_image_4.png)\n\nPercorso $P'$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34097, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIl polinomio $p(x)$ ha la seguente proprietà: per ogni terna di interi $a, b, c$ tali che $a+b+c=2022$ si ha che $p(a)+p(b)+p(c)=p(674)$. Si sa inoltre che $p(0)=-2696$. Quanto vale $p(2022)$ ?\n\n(A) $-2696$\n(B) $674$\n(C) $5392$\n(D) $8088$\n(E) Non è possibile determinarlo con i dati forniti.", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è $\\mathbf{(C)}$. Sostituendo $a=b=c=674$ (interi che effettivamente soddisfano $a+b+c=2022$) si ottiene $3p(674)=p(674)$, ovvero $p(674)=0$. Sostituendo allora $a=b=0$ e $c=2022$ otteniamo\n$$\n2p(0)+p(2022)=p(674)=0 \\Rightarrow p(2022)=-2p(0)=5392.\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34098, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLucia vuole scrivere tre interi positivi $a, b, c$ in modo che ognuno di essi sia un divisore di $30$ e che i massimi comuni divisori fra due termini consecutivi (cioè $\\operatorname{MCD}(a, b)$ e $\\operatorname{MCD}(b, c)$) siano numeri primi. In quanti modi può farlo?\n\n(A) 69\n(B) 72\n(C) 105\n(D) $2^{7}$\n(E) Nessuna delle precedenti.", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è (C). Distinguiamo diversi casi, a seconda del numero di fattori primi di $b$:\n\na. Se $b$ ha 0 fattori primi, allora $b=1$, e qualunque sia il valore di $a$ si ha $(a, b)=1$, che non è un numero primo.\n\nb. Se $b$ ha esattamente un fattore primo, cioè è esso stesso primo, allora la condizione che $(a, b)$ e $(b, c)$ siano primi vuol dire che entrambi devono coincidere con $b$. Gli interi $a, c$ possono quindi essere scelti in qualunque modo fra i divisori di $30=2 \\cdot 3 \\cdot 5$ che sono multipli di $b$. È facile verificare che (qualunque sia il valore di $b$) ci sono 4 scelte per $a$ e 4 scelte per $c$ (ad esempio, se $b=2$, allora $a$ e $c$ possono essere scelti nell'insieme $\\{2,6,10,30\\}$). Tenendo conto che $30=2 \\cdot 3 \\cdot 5$ ha esattamente 3 fattori primi distinti (e quindi ci sono 3 scelte per $b$ in questo caso), abbiamo $3 \\cdot 4 \\cdot 4=48$ possibili scelte per la terna $(a, b, c)$.\n\nc. Se $b$ ha esattamente 2 fattori primi, diciamo $b=pq$, allora posto $r=30 / b$ si vede facilmente che la condizione che $(a, b)$ e $(b, c)$ siano numeri primi è equivalente al fatto che gli interi $a, c$ appartengano all'insieme $\\{p, q, pr, qr\\}$. Osserviamo che scegliere $b$ è equivalente a scegliere il primo $r \\in \\{2,3,5\\}$, per cui in questo caso abbiamo 3 scelte per $b$ e 4 scelte per ognuno fra $a$ e $c$, per un totale di $3 \\cdot 4 \\cdot 4=48$ scelte possibili.\n\nd. Infine, se $b$ ha esattamente 3 fattori primi, allora si ha $b=30$. Siccome per ipotesi $a$ e $c$ dividono $30$ si ha $(a, b)=a$ e $(b, c)=c$, per cui dobbiamo scegliere sia $a$ che $c$ nell'insieme $\\{2,3,5\\}$. Abbiamo allora $3 \\cdot 3=9$ scelte per la terna $(a, b, c)=(a, 30, c)$.\n\nIn totale, il numero di terne $(a, b, c)$ che rispettano le proprietà volute è $48+48+9=105$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34099, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIl robot \"Mag-o-matic\" manipola 101 bicchieri, disposti in una fila le cui posizioni sono numerate da 1 a 101. In ognuno dei bicchieri può trovarsi, oppure no, una pallina. Il robot Mag-o-matic accetta solo istruzioni elementari della forma $(a ; b, c)$, che interpreta come\n\"considera il bicchiere in posizione $a$ : se contiene una pallina, allora scambia tra di loro i bicchieri che si trovano nelle posizioni $b$ e $c$ (con il relativo eventuale contenuto), altrimenti passa all'istruzione successiva\"\n(si intende che $a, b, c$ sono interi compresi tra 1 e 101, con $b$ e $c$ diversi tra di loro, ma non necessariamente diversi da $a$ ). Un programma è una sequenza finita di istruzioni elementari, assegnate inizialmente, che Mag-o-matic esegue una dopo l'altra.\nUn sottoinsieme $S \\subseteq\\{0,1,2, \\ldots, 101\\}$ si dice identificabile se esiste un programma che, a partire da una qualunque configurazione iniziale, produce una configurazione finale in cui il bicchiere in posizione 1 contiene una pallina se e solo se il numero dei bicchieri contenenti una pallina è un elemento di $S$.\n\na. Dimostrare che il sottoinsieme di $\\{0,1, \\ldots, 101\\}$ costituito dai numeri dispari è identificabile.\n\nb. Determinare tutti i sottoinsiemi di $\\{0,1, \\ldots, 101\\}$ identificabili.", "options": [], "answer": "A subset S is identifiable if and only if 0 is not in S and 101 is in S. In particular, the set of odd numbers is identifiable.", "solution": "Solution:\n\nRisolviamo direttamente il caso generale, dimostrando che un sottoinsieme $S$ è identificabile se e solo se $0 \\notin S$ e $101 \\in S$. Al termine descriveremo una scorciatoia che funziona nel caso dispari.\n\n**Condizione necessaria**\n\nDimostriamo intanto che le condizioni $0 \\notin S$ e $101 \\in S$ sono necessarie. Se per assurdo $0 \\in S$ e all'inizio non ci sono palline nei bicchieri, nessun programma può fare comparire una pallina nel bicchiere in posizione 1, come invece sarebbe richiesto. Simmetricamente, se $101 \\notin S$ e all'inizio tutti i bicchieri contengono una pallina, allora la configurazione resta la stessa durante tutta l'esecuzione del programma, per cui alla fine ci sarà sicuramente una pallina anche nel bicchiere in posizione 1, il che non dovrebbe succedere in questo caso.\n\n**Condizione sufficiente**\n\nDimostriamo ora che le condizioni $0 \\notin S$ e $101 \\in S$ sono sufficienti. Indichiamo con $p$ il numero dei bicchieri che contengono una pallina. Come già osservato, se $p=0$ oppure $p=101$, tutte le possibili istruzioni non alterano la configurazione, che in entrambi i casi rispetta da subito la richiesta. Nel seguito supporremo quindi, senza perdita di generalità, che $1 \\leq p \\leq 100$.\n\nDiciamo che i bicchieri sono disposti in posizione canonica standard se i bicchieri con la pallina occupano le posizioni da 1 a $p$; diciamo che sono disposti in posizione canonica shiftata se occupano le posizioni da 2 a $p+1$. Dimostreremo che esiste un programma eseguendo il quale la configurazione finale sarà quella canonica standard se $p \\in S$, e sarà quella canonica shiftata se $p \\notin S$ (quindi in particolare ci sarà una pallina nel bicchiere in posizione 1 se e solo se $p \\in S$ ).\n\nDividiamo il programma richiesto in tre sottoprogrammi. Il primo sottoprogramma passa dalla configurazione iniziale alla configurazione canonica standard. Un modo di realizzare questo è la seguente lista di istruzioni.\n\n- Per ogni $i$ che va da 1 a 101 eseguiamo l'istruzione $(i ; i, 1)$. Se da qualche parte c'è una pallina, al termine ci sarà una pallina anche nel bicchiere in posizione 1.\n- Per ogni $i$ che va da 2 a 101 eseguiamo l'istruzione $(i ; i, 2)$. Se c'è almeno una pallina oltre a quella del bicchiere in posizione 1, al termine ci sarà una pallina anche nel bicchiere in posizione 2.\n- Per ogni $i$ che va da 3 a 101 eseguiamo l'istruzione $(i ; i, 3)$. Se c'è almeno una pallina oltre a quelle eventualmente presenti nei bicchieri in posizione 1 e 2, al termine ci sarà una pallina anche nel bicchiere in posizione 3.\n- Proseguendo allo stesso modo otteniamo il risultato richiesto (più formalmente questo si potrebbe dimostrare per induzione).\n\nIl secondo sottoprogramma passa dalla configurazione canonica standard a quella canonica shiftata. Per far questo eseguiamo l'istruzione $(i ; i, i+1)$ per ogni $i$ che va da 100 a 1, procedendo dunque al contrario. Queste istruzioni non fanno nulla fino a quando $i>p$. Quando $i=p$, il bicchiere con la pallina in posizione $p$ viene spostato in posizione $p+1$, poi quello in posizione $p-1$ viene spostato in posizione $p$, e così via finché il bicchiere con la pallina in posizione 1 viene spostato in posizione 2.\n\nIl terzo sottoprogramma parte dalla configurazione canonica shiftata. Dato un intero $s$, con $1 \\leq s \\leq 100$, definiamo $s$-check la coppia di istruzioni $(s+1 ; s+1,1)$ e $(s+2 ; s+1,1)$ (nel caso $s=100$ la seconda istruzione non ha senso, per cui si esegue solo la prima). Esaminiamo l'effetto di un $s$-check in tre casi.\n\n- **Caso 1.** Se siamo nella configurazione canonica shiftata e $s \\neq p$, allora sostanzialmente non succede nulla. Più precisamente, se $s>p$ entrambe le istruzioni non trovano la pallina e quindi non fanno nulla, se $sp$ (Caso 1), poi quando $s=p$ la configurazione diventa quella canonica standard (Caso 2), e poi non succede di nuovo più nulla quando si testano i valori $s1$, perché in ogni triangolo la somma delle lunghezze di due lati è maggiore della lunghezza del terzo.\n\nResta da verificare che per ogni $11$, ed è ovvio che $a+1>b$. Resta dunque solo da verificare che $b+1>a$, ma questa disuguaglianza si riduce a $d<1$, da cui con semplici passaggi si ritrova ancora una volta la condizione $s>1$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34102, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAlla lavagna è scritta la moltiplicazione $x \\times y$, dove $x$ e $y$ sono numeri interi positivi di tre cifre. Nicolò, un po' sbadato, non ha notato il simbolo di moltiplicazione e ricopia sul suo quaderno il numero di sei cifre ottenuto giustapponendo $x$ e $y$. L'insegnante, passando fra i banchi, fa notare a Nicolò che il numero da lui scritto è uguale a 7 volte il prodotto $x y$. Quanto vale la somma $x+y$ ?\n(A) 125\n(B) 286\n(C) 312\n(D) 487\n(E) 513", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è (B). Le ipotesi del problema si traducono in $1000 x + y = 7 x y$, e possiamo riscrivere questa equazione come $y = \\frac{1000 x}{7 x - 1}$. A questo punto possiamo procedere in (almeno) due modi:\n\na.\nSi ha $y = \\frac{1000 x}{7 x - 1} \\geq \\frac{1000 x}{7 x} = \\frac{1000}{7} = 142.8\\ldots$, e d'altro canto\n$$\ny = \\frac{1000 x}{7 x - 1} = \\frac{1000(x - 1/7) + 1000/7}{7 x - 1} = \\frac{1000}{7} + \\frac{1000/7}{7 x - 1} \\leq \\frac{1000}{7} + \\frac{1000/7}{7 \\cdot 100 - 1} < \\frac{1000}{7} + 1,\n$$\nper cui $y$ deve essere l'unico intero compreso fra $1000/7$ e $1000/7 + 1$, ovvero $y = 143$. Da questo si ricava immediatamente che $x = \\frac{y}{7 y - 1000} = 143$ e quindi $x + y = 286$.\n\nb.\nIn alternativa, osserviamo che $x$ e $7 x - 1$ non possono avere fattori primi in comune (in quanto se $p$ divide sia $x$ sia $7 x - 1$ allora divide anche $(7 x - 1) - 7 \\cdot x = -1$, ma nessun numero primo divide $-1$). Il fatto che $7 x - 1$ divida $1000 x$ implica allora che $7 x - 1$ divida $1000$; d'altra parte, per ipotesi $x$ ha 3 cifre, per cui $7 x - 1 \\geq 7 \\cdot 100 - 1 = 699$. L'unico divisore di $1000$ maggiore o uguale a $699$ è $1000$ stesso, da cui $7 x - 1 = 1000 \\Rightarrow x = 143$ e $y = \\frac{1000 \\cdot x}{7 x - 1} = x = 143$. Ne segue che $x + y = 286$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34103, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn una partita di palla Riemanniana si affrontano due squadre; in ogni momento, ciascuna schiera in campo $k>1$ giocatrici. Alla fine di ogni azione viene assegnato un punto a una delle due squadre; inoltre, ciascuna squadra può effettuare un numero arbitrario di sostituzioni prima che abbia inizio l'azione successiva. Alice e Barbara fanno parte della squadra delle Geodetiche. Alla fine della partita di oggi, Alice osserva che, mentre lei era in campo, le Geodetiche hanno vinto 7 azioni in più di quante ne abbiano perse. Quando Barbara era in campo, invece, hanno perso 2 azioni in più di quante ne abbiano vinte. Ciascuna delle altre giocatrici delle Geodetiche ha partecipato a tante azioni vincenti quante perdenti. Quanto vale $k$ ?\n\n(A) 3\n(B) 5\n(C) 6\n(D) 9\n(E) I dati non sono sufficienti per determinarlo.", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è $\\mathbf{(B)}$. Costruiamo una tabella con una riga per ogni azione giocata e una colonna per ogni giocatrice delle Geodetiche. Scriviamo +1 in una casella se la giocatrice corrispondente alla riga era in campo durante l'azione corrispondente alla colonna e l'azione è stata vinta dalle Geodetiche. Similmente, scriviamo -1 in corrispondenza delle coppie (giocatrice, azione) date dalle azioni perse dalle Geodetiche con quella giocatrice in campo. Infine, scriviamo 0 nelle caselle corrispondenti a coppie (giocatrice, azione) per cui la giocatrice non era in campo nella corrispondente azione. Consideriamo ora la somma di tutti i numeri nella tabella.\n\nPer ipotesi sappiamo che la colonna di Alice somma a +7, la colonna di Barbara somma a -2, e tutte le altre colonne sommano a 0. La somma di tutti i numeri nella tabella è quindi 5. D'altro canto, ogni riga della tabella ha somma $+k$ (se l'azione è stata vinta dalle Geodetiche) o $-k$ (se l'azione è stata persa): infatti su ogni riga ci sono esattamente $k$ numeri non nulli (corrispondenti alle $k$ giocatrici in campo), e sono o tutti uguali a +1, se l'azione è stata vinta dalle Geodetiche, o tutti uguali a -1, altrimenti. Detti allora $V$ e $P$ il numero di azioni vinte e il numero di azioni perse dalle Geodetiche, abbiamo ottenuto l'equazione $5 = k(V-P)$. Da questo segue che $k$ divide 5, e siccome $k > 1$ si ha $k = 5$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34104, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nPoniamo $a_{1}=1$ e, per ogni $n \\geq 2$,\n$$\na_{n}=n\\left(a_{1}+a_{2}+\\cdots+a_{n-1}\\right) .\n$$\nQual è il più piccolo valore di $n$ per cui $a_{n}$ è divisibile per 2022?\n(A) 47\n(B) 289\n(C) 337\n(D) 2022\n(E) 2023", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è $(\\mathbf{C})$. Consideriamo le equazioni\n$$\n\\left\\{\n\\begin{array}{l}\na_{n}=n\\left(a_{1}+a_{2}+\\cdots+a_{n-1}\\right) \\\\\na_{n+1}=(n+1)\\left(a_{1}+a_{2}+\\cdots+a_{n-1}+a_{n}\\right)\n\\end{array}\n\\right.\n$$\nvalide per ogni $n \\geq 2$. Riscriviamo ora la seconda nella forma\n$$\n\\begin{aligned}\na_{n+1} & =n\\left(a_{1}+a_{2}+\\cdots+a_{n-1}\\right)+\\left(a_{1}+a_{2}+\\cdots+a_{n-1}\\right)+(n+1) a_{n} \\\\\n& =a_{n}+\\frac{a_{n}}{n}+(n+1) a_{n} \\\\\n& =\\frac{n^{2}+2 n+1}{n} a_{n} \\\\\n& =\\frac{(n+1)^{2}}{n} a_{n}\n\\end{aligned}\n$$\ndove - usando la prima equazione - abbiamo sostituito dovunque possibile $a_{1}+a_{2}+\\cdots+a_{n-1}$ con $\\frac{a_{n}}{n}$. Otteniamo allora\n$$\na_{n}=\\frac{n^{2}}{n-1} a_{n-1}=\\frac{n^{2}}{n-1} \\frac{(n-1)^{2}}{n-2} a_{n-2}=\\cdots=\\frac{n^{2}}{n-1} \\frac{(n-1)^{2}}{n-2} \\cdots \\frac{3^{2}}{2} a_{2} .\n$$\nSemplificando il denominatore di ogni frazione con il numeratore della successiva e osservando che $a_{2}=2$ otteniamo\n$$\na_{n}=n^{2} \\cdot(n-1) \\cdot(n-2) \\cdot \\ldots \\cdot 4 \\cdot \\frac{3}{2} a_{2}=n \\cdot \\frac{n !}{2}\n$$\nper ogni $n \\geq 2$. A questo punto, osserviamo che $2022=2 \\cdot 3 \\cdot 337$ divide $n \\cdot \\frac{n !}{2}$ se e soltanto se questo numero è divisibile separatamente per 2, 3 e 337. Da una parte, siccome $n \\cdot \\frac{n !}{2}$ è un prodotto di numeri minori o uguali ad $n$ e 337 è primo, tale prodotto può essere divisibile per 337 soltanto se $n \\geq 337$. D'altra parte, se $n=337$ abbiamo $a_{n}=337 \\cdot \\frac{1}{2} \\cdot 337!$, e $\\frac{1}{2} \\cdot 337! = 3 \\cdot 4 \\cdot \\ldots \\cdot 337$ è certamente multiplo di 6, per cui $2 \\cdot 3 \\cdot 337$ divide $a_{337}$, e quindi 337 è il minimo cercato.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34105, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSiano $a$ e $b$ interi positivi tali che\n$$\n54^{a} = a^{b}.\n$$\nDimostrare che $a$ è una potenza di $54$, cioè esiste un intero positivo $c$ tale che $a = 54^{c}$.\n\nProblem:\n\nLet $a$ and $b$ be positive integers such that\n$$\n54^{a} = a^{b}.\n$$\nShow that $a$ is a power of $54$, that is, that there exists a positive integer $c$ such that $a = 54^{c}$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nOsserviamo che $54 = 2 \\cdot 3^{3}$, e pertanto $a$ è divisibile sia per $2$ sia per $3$, e non ha altri fattori primi oltre a $2$ e $3$. In altri termini, $a$ si scrive nella forma $a = 2^{x} \\cdot 3^{y}$ per opportuni interi positivi $x$ e $y$. Ne segue che\n$$\n54^{a} = \\left(2 \\cdot 3^{3}\\right)^{2^{x} \\cdot 3^{y}} = 2^{2^{x} \\cdot 3^{y}} \\cdot 3^{3 \\cdot 2^{x} \\cdot 3^{y}} \\quad \\text{e} \\quad a^{b} = \\left(2^{x} \\cdot 3^{y}\\right)^{b} = 2^{x b} \\cdot 3^{y b}\n$$\nUguagliando gli esponenti del $2$ e del $3$ nelle due espressioni deduciamo che\n$$\n2^{x} \\cdot 3^{y} = x b \\quad \\text{e} \\quad 3 \\cdot 2^{x} \\cdot 3^{y} = y b.\n$$\nConfrontando le due uguaglianze concludiamo che $y = 3x$, e di conseguenza\n$$\na = 2^{x} \\cdot 3^{y} = 2^{x} \\cdot 3^{3x} = \\left(2 \\cdot 3^{3}\\right)^{x} = 54^{x},\n$$\ncome richiesto.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34106, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLe caselle di una scacchiera $9 \\times 10$ sono colorate di rosso, verde o blu. Ogni quadrato $3 \\times 3$ della scacchiera contiene esattamente tre caselle rosse, tre verdi e tre blu. Quante sono al massimo le caselle rosse?\n(A) 32\n(B) 34\n(C) 36\n(D) 39\n(E) 40", "options": [], "answer": "C", "solution": "Solution:\nLa risposta è $\\mathbf{( C )}$. Consideriamo un quadrato $9 \\times 9$ della scacchiera, come in figura. Questa sotto-scacchiera può essere coperta con $\\frac{9 \\times 9}{9}=9$ quadrati $3 \\times 3$, ognuno dei quali contiene per ipotesi 3 caselle rosse. Le caselle rosse sono quindi al massimo pari a 36, ovvero 27 (le $9 \\cdot 3$ caselle rosse nel quadrato $9 \\times 9$ ) più 9 (le caselle esterne al quadrato $9 \\times 9$ ). D'altra parte, la colorazione in figura (dove $R, V, B$ stanno per rosso, verde, blu) fornisce un esempio in cui le caselle rosse sono esattamente 36 .\n\n| $\\mathrm{R}$ | $\\mathrm{V}$ | $\\mathrm{B}$ | $\\mathrm{R}$ | $\\mathrm{V}$ | $\\mathrm{B}$ | $\\mathrm{R}$ | $\\mathrm{V}$ | $\\mathrm{B}$ | $\\mathrm{R}$ |\n| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |\n| $\\mathrm{R}$ | $\\mathrm{V}$ | $\\mathrm{B}$ | $\\mathrm{R}$ | $\\mathrm{V}$ | $\\mathrm{B}$ | $\\mathrm{R}$ | $\\mathrm{V}$ | $\\mathrm{B}$ | $\\mathrm{R}$ |\n| $\\mathrm{R}$ | $\\mathrm{V}$ | $\\mathrm{B}$ | $\\mathrm{R}$ | $\\mathrm{V}$ | $\\mathrm{B}$ | $\\mathrm{R}$ | $\\mathrm{V}$ | $\\mathrm{B}$ | $\\mathrm{R}$ |\n| $\\mathrm{R}$ | $\\mathrm{V}$ | $\\mathrm{B}$ | $\\mathrm{R}$ | $\\mathrm{V}$ | $\\mathrm{B}$ | $\\mathrm{R}$ | $\\mathrm{V}$ | $\\mathrm{B}$ | $\\mathrm{R}$ |\n| $\\mathrm{R}$ | $\\mathrm{V}$ | $\\mathrm{B}$ | $\\mathrm{R}$ | $\\mathrm{V}$ | $\\mathrm{B}$ | $\\mathrm{R}$ | $\\mathrm{V}$ | $\\mathrm{B}$ | $\\mathrm{R}$ |\n| $\\mathrm{R}$ | $\\mathrm{V}$ | $\\mathrm{B}$ | $\\mathrm{R}$ | $\\mathrm{V}$ | $\\mathrm{B}$ | $\\mathrm{R}$ | $\\mathrm{V}$ | $\\mathrm{B}$ | $\\mathrm{R}$ |\n| $\\mathrm{R}$ | $\\mathrm{V}$ | $\\mathrm{B}$ | $\\mathrm{R}$ | $\\mathrm{V}$ | $\\mathrm{B}$ | $\\mathrm{R}$ | $\\mathrm{V}$ | $\\mathrm{B}$ | $\\mathrm{R}$ |\n| $\\mathrm{R}$ | $\\mathrm{V}$ | $\\mathrm{B}$ | $\\mathrm{R}$ | $\\mathrm{V}$ | $\\mathrm{B}$ | $\\mathrm{R}$ | $\\mathrm{V}$ | $\\mathrm{B}$ | $\\mathrm{R}$ |\n| $\\mathrm{R}$ | $\\mathrm{V}$ | $\\mathrm{B}$ | $\\mathrm{R}$ | $\\mathrm{V}$ | $\\mathrm{B}$ | $\\mathrm{R}$ | $\\mathrm{V}$ | $\\mathrm{B}$ | $\\mathrm{R}$ |", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34107, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABCD$ un parallelogramma tale che la bisettrice uscente da $B$ interseca il lato $CD$ nel suo punto medio $M$. Il lato $BC$ è lungo $6$, e la diagonale $AC$ è lunga $14$. Determinare la lunghezza di $AM$.\n\n(A) $2 \\sqrt{19}$\n(B) $14-3 \\sqrt{3}$\n(C) $4 \\sqrt{5}$\n(D) $9$\n(E) $2 \\sqrt{22}$", "options": [], "answer": "C", "solution": "Solution:\n\n![](attached_image_1.png)\n\nOsserviamo che il triangolo $MBC$ è isoscele di base $MB$: infatti $\\widehat{CBM}=\\widehat{MBA}$, per ipotesi, e $\\widehat{ABM}=\\widehat{BMC}$, in quanto sono angoli alterni interni rispetto le parallele $DC \\parallel AB$. Da cui\n$$\n\\overline{AB}=\\overline{DC}=2\\,\\overline{MC}=2\\,\\overline{CB}=2 \\cdot 6=12\n$$\nChiamiamo $K$ la proiezione di $C$ su $AB$ e poniamo $h=\\overline{CK}$ e $d=\\overline{BK}$. Troviamo $h$ e $d$ attraverso il sistema\n$$\n\\left\\{\\begin{array}{l}\n\\overline{BC}^2-h^2=d^2 \\\\\n\\overline{AC}^2-h^2=(\\overline{AB}+d)^2\n\\end{array}\\right.\n$$\nda cui, sottraendo membro a membro, si ottiene $d=2/3$ e $h=8\\sqrt{5}/3$.\n\nDetta $H$ la proiezione di $M$ su $AB$, si ha\n$$\n\\overline{AH}=\\overline{AB}+\\overline{BK}-\\overline{HK},\n$$\ndove $\\overline{HK}=\\overline{MC}$ (perché $HKCM$ è un rettangolo per costruzione) e $\\overline{AB}=2\\,\\overline{MC}$. Ne segue che $\\overline{AH}=\\overline{MC}+d=20/3$ e $\\overline{AM}^2=(\\overline{AH})^2+h^2=80$. Di conseguenza $\\overline{AM}=4\\sqrt{5}$.\n\n\nSeconda soluzione. Come prima abbiamo $\\overline{AB}=2\\,\\overline{BC}$. Osserviamo che il triangolo $ABM$ è rettangolo in $M$: infatti, detto $N$ il punto medio di $\\overline{AB}$, si ha $\\overline{NM} \\parallel \\overline{BC}$, quindi $\\overline{NM}=\\overline{AN}=\\overline{NB}=6$, perciò $M$ sta su una circonferenza di raggio $6$ centrata in $N$ e in particolare l'angolo in $M$ è retto. Detto $\\beta$ l'angolo $\\widehat{ABM}$, si ha $\\overline{AM}=\\overline{AB}\\sin\\beta=12\\sin\\beta$. Conoscendo i lati del triangolo $ABC$ possiamo ricavare $\\cos(2\\beta)$ con il teorema di Carnot:\n$$\n\\overline{AB}^2+\\overline{BC}^2-2\\overline{AB}\\cdot\\overline{BC}\\cos(2\\beta)=\\overline{AC}^2,\n$$\nda cui $\\cos(2\\beta)=-1/9$. Grazie alla formula di addizione del coseno possiamo ricavare $\\sin\\beta$ dall'equazione $\\cos(2\\beta)=1-2\\sin^2\\beta$, da cui $\\sin\\beta=\\sqrt{5}/3$. Dunque $\\overline{AM}=12\\cdot\\sqrt{5}/3=4\\sqrt{5}$.\n\n\nTerza soluzione. Dalla formula di Erone si ricava che l'area del triangolo $ABC$ è $16\\sqrt{5}$. Quest'area è anche uguale all'area di $ABM$, che a sua volta è il doppio dell'area di $ANM$. Detta $2x$ la lunghezza di $\\overline{AM}$, si deve avere $1/2 \\cdot 2x \\cdot \\sqrt{6^2-x^2}=1/2 \\cdot 16\\sqrt{5}=8\\sqrt{5}$. Elevando ambo i membri al quadrato e risolvendo per $x^2$ si trova $2x=4\\sqrt{5}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34108, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nArchimede ben sapeva che $\\pi \\approx 3,1416$ può essere approssimato per eccesso dalla frazione $22 / 7 \\approx 3,1429$ e che almeno le prime due cifre dopo la virgola sono corrette.\nPer quante coppie di interi $(m, n)$, con $1 0, \\quad 0 < n < 100.\n$$\nI punti che soddisfano tali condizioni formano un triangolo di vertici $O = (0, 0)$, $A = (314, 100)$, $B = (315, 100)$, incluso il segmento $OA$, ma esclusi gli altri due. I punti aventi coordinate intere interni a un segmento che ha un vertice nell'origine sono i multipli della coppia di coordinate dell'altro vertice, una volta ridotte ai minimi termini. Dunque per $OA$ sono $\\operatorname{MCD}(314, 100) - 1 = 1$, per $AB$ sono $\\operatorname{MCD}(315 - 314, 100 - 100) - 1 = 0$, per $OB$ sono $\\operatorname{MCD}(315, 100) - 1 = 4$. Per il teorema di Pick sul triangolo $OAB$,\n$$\na = i + \\frac{b}{2} - 1\n$$\ndove $a = 100 \\cdot (315 - 314) / 2$ è l'area di $OAB$, $i$ è il numero di punti a coordinate intere all'interno di $OAB$ e $b = 3 + 1 + 0 + 4$ è il numero di punti a coordinate intere sul bordo di $OAB$; perciò $i = 47$. La risposta è data dai punti interni a $OAB$ e quelli interni al segmento $OA$, cioè $i + 1 = 48$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34109, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUna complicata coreografia prevede una fila di 7 ballerine equispaziate su un palcoscenico piano; di fronte a quella delle ballerine vi è una fila identica, parallela, di altrettanti ballerini. La coreografa vuole assegnare a ciascuna ballerina alcuni ballerini in modo che, tracciando sul palcoscenico il segmento che unisce la posizione di ciascuna ballerina a quella dei ballerini a lei assegnati, non vi siano segmenti che si intersecano se non negli estremi. Vuole inoltre che il numero totale di segmenti tracciati sia 13. Quanti sono i possibili modi di effettuare le assegnazioni che soddisfano queste proprietà?\n(A) 128\n(B) 343\n(C) 486\n(D) 924\n(E) 1716", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). Immaginiamo per comodità le ballerine ed i ballerini disposti in orizzontale, da sinistra a destra. La condizione del testo può essere tradotta nella maniera seguente. Chiamiamo $B_{i}$ l'insieme dei ballerini che vengono assegnati alla $i$-esima ballerina, con $i=1, \\ldots, 7$. Per rispettare la condizione del testo (il fatto che i segmenti non si incrocino), i ballerini in $B_{2}$ devono stare tutti alla destra di quelli in $B_{1}$ (salvo che il ballerino più a destra di $B_{1}$ può coincidere con il ballerino più a sinistra di $B_{2}$ ), e così via: i ballerini in $B_{3}$ stanno tutti a destra di quelli in $B_{2}$ (salvo che l'ultimo a destra di $B_{2}$ può coincidere con il primo a sinistra di $B_{3}$ ), quelli di $B_{4}$ a destra di quelli $B_{3}$, eccetera. In particolare, ogni insieme $B_{i}$ interseca in al più un elemento $B_{i-1}$ e in al più un elemento $B_{i+1}$ (ammesso che $i-1 \\geq 1$ e $i+1 \\leq 7$ ). Il numero totale di ballerini assegnati, ovvero il numero totale di segmenti tracciati, è\n$$\n13=|B_{1}|+|B_{2}|+\\cdots+|B_{7}| \\leq |B_{1} \\cup B_{2} \\cup \\cdots \\cup B_{7}|+6,\n$$\ndove la disuguaglianza vale appunto perché i ballerini in comune fra i vari insiemi sono al massimo 6 (uno fra $B_{1}$ e $B_{2}$, uno fra $B_{2}$ e $B_{3}$, $\\ldots$ ). In particolare, $|B_{1} \\cup \\cdots \\cup B_{7}|$ dev'essere maggiore o uguale a 7, cioè ogni ballerino è assegnato ad almeno una ballerina. L'uguaglianza $13=|B_{1}|+|B_{2}|+\\cdots+|B_{7}|$ implica inoltre che $B_{1}$ ha effettivamente un elemento in comune con $B_{2}$, il quale ha un elemento in comune con $B_{3}$, e così via fino a $B_{7}$ (questo giustifica in particolare anche il fatto, usato implicitamente nella descrizione precedente, che nessuno degli insiemi $B_{i}$ è vuoto).\n\nOsserviamo poi che un insieme $B_{i}$ non può avere 'buchi', ovvero è formato da una fila di ballerini adiacenti (precisamente: se contiene due ballerini, contiene anche tutti quelli compresi fra loro). Infatti, se due ballerini sono entrambi assegnati ad una stessa ballerina, allora tutti i ballerini fra essi compresi possono essere assegnati solo alla medesima ballerina (per rispettare la condizione che i segmenti non si incrocino). Siccome abbiamo già osservato che ogni ballerino deve essere assegnato ad almeno una ballerina, concludiamo come voluto che ogni insieme $B_{i}$ è costituito da ballerini fra loro adiacenti.\n\nSulla base di tutte queste osservazioni otteniamo allora che alla prima ballerina sono assegnati tutti i ballerini dal primo all' $i_{1}$-esimo (per un certo $i_{1} \\in \\{1, \\ldots, 7\\}$ ); alla seconda, tutti quelli dall' $i_{1}$-esimo all' $i_{2}$-esimo (per uno certo $i_{2} \\in \\{1, \\ldots, 7\\}$ ), e così via fino alla settima ballerina, a cui sono assegnati i ballerini da $i_{6}$ ad $i_{7}=7$. Per descrivere la situazione è quindi sufficiente conoscere i numeri $i_{1} \\leq i_{2} \\leq \\cdots \\leq i_{6}$ (in quanto sappiamo già che $i_{7}=7$ ). Possiamo pensare ad una tale collezione di numeri come ad una funzione $f$ da $\\{1,2,3,4,5,6\\}$ a $\\{1,2,3,4,5,6,7\\}$, con la condizione che essa sia debolmente crescente, ovvero che $f(x+1) \\geq f(x)$ per $x=1, \\ldots, 6$. Conoscere $f$ è poi equivalente a conoscere la funzione $g$ che manda $x$ in $f(x)+x$, la quale è ora strettamente crescente (ovvero $g(x+1)>g(x)$ ) e prende valori nell'insieme $\\{2,3, \\ldots, 7+6=13\\}$. Infine, data la condizione di essere strettamente crescente, una tale funzione è completamente determinata dalla conoscenza dei 6 elementi della sua immagine (dati 6 numeri distinti in $\\{2, \\ldots, 13\\}$, c'è un'unica funzione strettamente crescente $\\{1, \\ldots, 6\\} \\rightarrow \\{2, \\ldots, 13\\}$ che li assume come valori). Concludiamo quindi che il numero cercato è il numero di sottoinsiemi di $\\{2, \\ldots, 13\\}$ aventi 6 elementi, ovvero $\\left(\\begin{array}{c}12 \\\\ 6\\end{array}\\right)=924$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34110, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIl soggiorno della casa di Filippo ha pianta rettangolare. Filippo ha notato che se attacca l'aspirapolvere alla presa vicino alla porta d'ingresso riesce a pulire tutto il pavimento: questo vuol dire che tutti i punti del pavimento sono a distanza minore di $5~\\mathrm{m}$ dal punto della parete dove si trova la presa. Quanto vale, al massimo, l'area del soggiorno (in $\\mathrm{m}^{2}$)?", "options": [], "answer": "25", "solution": "Solution:\n\nLa risposta è 25. Consideriamo il rettangolo che forma la pianta del soggiorno, e orientiamolo in modo che la presa $P$ si trovi sul lato orizzontale $AB$, suddividendolo in due segmenti di lunghezza $a$ e $b$. Chiamiamo inoltre $c$ la lunghezza dei due lati verticali $BC$ e $DA$, come in figura. In questo modo, l'area del soggiorno è $ac + bc$.\n\n![](attached_image_1.png)\n\nPerché i vertici $C$ e $D$ siano a distanza minore o uguale di 5 da $P$, dobbiamo avere $\\sqrt{b^{2}+c^{2}} \\leq 5$ e $\\sqrt{a^{2}+c^{2}} \\leq 5$, rispettivamente. Per una nota disuguaglianza abbiamo $ac \\leq \\frac{a^{2}+c^{2}}{2}$, con uguaglianza quando viene scelto $a=c$, e analogamente $bc \\leq \\frac{b^{2}+c^{2}}{2}$. Combinando queste disuguaglianze otteniamo che l'area di $ABCD$ è\n$$\nac + bc \\leq \\frac{a^{2}+c^{2}}{2} + \\frac{b^{2}+c^{2}}{2} \\leq \\frac{5^{2}}{2} + \\frac{5^{2}}{2} = 25.\n$$\nPer verificare che questa è davvero l'area massima, vogliamo costruire una configurazione in cui tutte queste disuguaglianze diventino uguaglianze. Vogliamo quindi avere in particolare $a = c$ e $25 = a^{2} + c^{2} = 2a^{2}$, e risolvendo si ha $a = c = \\frac{5}{\\sqrt{2}}$. Allo stesso modo si ottiene $b = c = \\frac{5}{\\sqrt{2}}$. Effettivamente scegliendo $a = b = c = \\frac{5}{\\sqrt{2}}$ tutti i punti interni al rettangolo distano da $P$ al più $\\frac{5}{\\sqrt{2}}$ sia lungo l'asse orizzontale che lungo quello verticale, quindi hanno distanza da esso al più\n$$\n\\sqrt{\\left(\\frac{5}{\\sqrt{2}}\\right)^{2} + \\left(\\frac{5}{\\sqrt{2}}\\right)^{2}} = \\sqrt{25} = 5\n$$\n\n\nSeconda soluzione. Consideriamo i punti $C'$ e $D'$ che si ottengono riflettendo $C$ e $D$ rispetto al lato $AB$.\n\n![](attached_image_2.png)\n\nAllora il rettangolo $CD D' C'$ (che ha area doppia rispetto a $ABCD$) sta all'interno del cerchio di centro $P$ e raggio 5. Quindi trovare il massimo dell'area di $ABCD$ è equivalente a costruire il rettangolo di area massima che sta all'interno di un cerchio, ed è noto che esso è il quadrato. Si ha allora $\\overline{CD} = \\overline{DD'} = \\overline{D'C'} = \\overline{C'C}$, e ne concludiamo che $AD, BC$ devono essere lunghi la metà di $CD$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34111, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIl soggiorno della casa di Filippo ha pianta rettangolare. Filippo ha notato che se attacca l'aspirapolvere alla presa vicino alla porta d'ingresso riesce a pulire tutto il pavimento: questo vuol dire che tutti i punti del pavimento sono a distanza minore di $5~\\mathrm{m}$ dal punto della parete dove si trova la presa. Quanto vale, al massimo, l'area del soggiorno (in $\\mathrm{m}^{2}$)?", "options": [], "answer": "25", "solution": "Solution:\n\nLa risposta è 25. Consideriamo il rettangolo che forma la pianta del soggiorno, e orientiamolo in modo che la presa $P$ si trovi sul lato orizzontale $AB$, suddividendolo in due segmenti di lunghezza $a$ e $b$. Chiamiamo inoltre $c$ la lunghezza dei due lati verticali $BC$ e $DA$, come in figura. In questo modo, l'area del soggiorno è $ac + bc$.\n\n![](attached_image_1.png)\n\nPerché i vertici $C$ e $D$ siano a distanza minore o uguale di $5$ da $P$, dobbiamo avere $\\sqrt{b^{2}+c^{2}} \\leq 5$ e $\\sqrt{a^{2}+c^{2}} \\leq 5$, rispettivamente. Per una nota disuguaglianza abbiamo $ac \\leq \\frac{a^{2}+c^{2}}{2}$, con uguaglianza quando viene scelto $a=c$, e analogamente $bc \\leq \\frac{b^{2}+c^{2}}{2}$. Combinando queste disuguaglianze otteniamo che l'area di $ABCD$ è\n$$\nac + bc \\leq \\frac{a^{2}+c^{2}}{2} + \\frac{b^{2}+c^{2}}{2} \\leq \\frac{5^{2}}{2} + \\frac{5^{2}}{2} = 25.\n$$\nPer verificare che questa è davvero l'area massima, vogliamo costruire una configurazione in cui tutte queste disuguaglianze diventino uguaglianze. Vogliamo quindi avere in particolare $a = c$ e $25 = a^{2} + c^{2} = 2a^{2}$, e risolvendo si ha $a = c = \\frac{5}{\\sqrt{2}}$. Allo stesso modo si ottiene $b = c = \\frac{5}{\\sqrt{2}}$. Effettivamente scegliendo $a = b = c = \\frac{5}{\\sqrt{2}}$ tutti i punti interni al rettangolo distano da $P$ al più $\\frac{5}{\\sqrt{2}}$ sia lungo l'asse orizzontale che lungo quello verticale, quindi hanno distanza da esso al più\n$$\n\\sqrt{\\left(\\frac{5}{\\sqrt{2}}\\right)^{2} + \\left(\\frac{5}{\\sqrt{2}}\\right)^{2}} = \\sqrt{25} = 5\n$$\n\n\nSeconda soluzione. Consideriamo i punti $C'$ e $D'$ che si ottengono riflettendo $C$ e $D$ rispetto al lato $AB$.\n\n![](attached_image_2.png)\n\nAllora il rettangolo $CD D' C'$ (che ha area doppia rispetto a $ABCD$) sta all'interno del cerchio di centro $P$ e raggio $5$. Quindi trovare il massimo dell'area di $ABCD$ è equivalente a costruire il rettangolo di area massima che sta all'interno di un cerchio, ed è noto che esso è il quadrato. Si ha allora $\\overline{CD} = \\overline{DD'} = \\overline{D'C'} = \\overline{C'C}$, e ne concludiamo che $AD, BC$ devono essere lunghi la metà di $CD$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34112, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSu un'isola ci sono 2023 persone in fila indiana, ciascuna delle quali è un furfante o un cavaliere: i cavalieri dicono sempre la verità, mentre i furfanti mentono sempre. Se $i$ è dispari, la persona in posizione $i$-esima esclama: \"Ci sono almeno $i$ furfanti\"; se $i$ è pari, la persona in posizione $i$-esima esclama: \"Ci sono esattamente $i$ furfanti\". Quanti sono i furfanti?", "options": [], "answer": "1348", "solution": "Solution:\n\nLa risposta è 1348. Se i furfanti sono in numero dispari, diciamo $2m+1$, allora le persone che dicono la verità sono tutte e sole quelle in posizioni dispari minori o uguali di $2m+1$, che sono $m+1$. Ci sarebbero quindi $2m+1$ furfanti e $m+1$ cavalieri, per un totale di $3m+2$ persone, ma ciò è impossibile poiché l'equazione $2023=3m+2$ conduce a $m=\\frac{2021}{3}$, che non è un numero intero. I furfanti sono quindi un numero pari, diciamo $2m$: i cavalieri saranno tutte e sole le persone in posizioni dispari minori o uguali di $2m$, più la persona in posizione $2m$, quindi in totale $m+1$. Dunque $3m+1=2023$ e perciò i furfanti sono $2m=1348$. Si verifica che la configurazione funziona.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34113, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSia $ABCD$ un trapezio isoscele di base maggiore $AB$ tale che la bisettrice dell'angolo in $D$ passi per $B$. Supponiamo che la bisettrice dell'angolo in $A$ intersechi il lato $BC$ nel punto $P$. Dimostrare che $AB = AP$ se e solo se la bisettrice di $\\widehat{PAD}$ passa per $C$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nSia $\\alpha = \\widehat{DAB} = \\widehat{ABC}$ (poiché il trapezio è isoscele, i due angoli sono uguali); la condizione $AB = AP$ equivale al fatto che si abbia $\\widehat{BPA} = \\widehat{PBA} = \\alpha$. A sua volta, poiché $\\widehat{PAB} = \\alpha / 2$ ($AP$ è bisettrice dell'angolo in $A$), questo equivale a $2\\alpha + \\alpha / 2 = 180^\\circ$ (somma degli angoli interni nel triangolo $BAP$), cioè ad $\\alpha = 72^\\circ$.\n\nPoniamo $\\widehat{CDB} = \\widehat{BDA} = \\theta$; poiché gli angoli $\\widehat{CDB}$ e $\\widehat{DBA}$ sono alterni interni rispetto alle parallele $DC, AB$ tagliate dalla trasversale $BD$, abbiamo anche $\\widehat{DBA} = \\theta$; dunque, dato che il trapezio è isoscele, abbiamo in effetti anche $\\widehat{BCA} = \\widehat{CAB} = \\theta$, e inoltre $2\\theta + \\alpha = 180^\\circ$ (angoli interni del triangolo $ABC$), ovvero $\\theta = 90^\\circ - \\alpha / 2$.\n\nDi conseguenza, $\\widehat{CAP} = \\widehat{CAB} - \\widehat{PAB} = \\theta - \\alpha / 2 = 90^\\circ - \\alpha$, mentre $\\widehat{DAC} = \\alpha - \\widehat{CAB} = \\alpha - \\theta = \\frac{3}{2}\\alpha - 90^\\circ$.\n\nOra, si ha $AC$ bisettrice di $\\widehat{DAP}$ se e solo se $\\widehat{DAC} = \\widehat{CAP}$, se e solo se $\\frac{3}{2}\\alpha - 90^\\circ = 90^\\circ - \\alpha$, cioè $\\alpha = 72^\\circ$, che a sua volta è equivalente alla condizione $AB = AP$ come argomentato in precedenza.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34114, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn intero positivo $n$ si dice doppiamente reversibile di tipo $\\ell$ se esistono due basi consecutive $b$ e $b+1$ tali che $n$ sia rappresentato da numeri palindromi di $\\ell$ cifre sia in base $b$ che in base $b+1$. Ad esempio, 104 è doppiamente reversibile di tipo 3 perché $104_{10}=404_{5}=252_{6}$.\n\na. Dimostrare che non esistono numeri doppiamente reversibili di tipo 2.\n\nb. Dimostrare che esistono infiniti numeri doppiamente reversibili di tipo 3.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\na. Supponiamo per assurdo che esista un intero positivo doppiamente reversibile di tipo 2. Esso si scrive come $x x$ in una certa base $b$ e come $y y$ nella base $b+1$. Per definizione di rappresentazione di un numero in una base, si deve avere\n$$\nx \\cdot b^{1}+x \\cdot b^{0}=y \\cdot(b+1)^{1}+y \\cdot(b+1)^{0},\n$$\ndove $01$, allora l'insieme $S$ contiene almeno un'altra casella $c$. Grazie alla prima condizione degli insiemi labirintici, si sa che è possibile raggiungere $c$ partendo da $x_{0}$ e spostandosi solo attraverso caselle adiacenti; in particolare, esiste almeno una casella $x_{2}$ adiacente ad $x_{1}$; chiamo $S_{2}$ l'insieme costituito dalle caselle $x_{1}$ e $x_{2}$ e osservo che il perimetro di $S_{2}$ è $6=4+2$.\nSupponiamo ora di aver costruito l'insieme $S_{j}$ con le regole dette sopra e chiamiamo $x_{2}, \\ldots, x_{j}$ le caselle che sono state attaccate per ottenere $S_{j}$; se $j=k$, allora $S=S_{k}$ e ho finito. Se $j0$ (anche non necessariamente intero), il lucchese Dedalo, di origini genovesi, può imprigionare il Minotauro spendendo meno di $c$ centesimi di dracma.\n\nLemma. Per ogni coppia di interi positivi $k$ ed $m$, la spesa per acquistare tutte le stringhe di lunghezza $mk$ in cui non compaiono mai $k$ o più zeri consecutivi è minore o uguale di\n$$\n\\left(1-\\frac{1}{2^{k}}\\right)^{m}\n$$\ndracme.\n\nPer dimostrarlo, osserviamo intanto che il costo di ciascuna di queste stringhe è di $2^{-mk}$ dracme. Questa spesa va moltiplicata per il numero totale di stringhe di lunghezza $mk$ che non contengono $k$ (o più) zeri consecutivi. Il numero esatto di queste stringhe è difficile da calcolare, ma per maggiorare il prezzo a Dedalo basta trovare una stima superiore.\n\nPer far questo, dividiamo la stringa di lunghezza $mk$ in $m$ blocchi di lunghezza $k$, e osserviamo che ogni blocco di lunghezza $k$ può essere una qualsiasi stringa binaria, salvo quella costituita da sole cifre 0. Siccome le stringhe binarie di lunghezza $k$ sono $2^{k}$, ne segue che per ogni blocco ci sono $2^{k}-1$ scelte possibili. Avendo $m$ blocchi, il numero totale di stringhe è al massimo $\\left(2^{k}-1\\right)^{m}$, dunque il costo totale non supera\n$$\n\\frac{1}{2^{mk}} \\cdot\\left(2^{k}-1\\right)^{m}=\\left(1-\\frac{1}{2^{k}}\\right)^{m}\n$$\ncome richiesto.\n\nDato ora un qualunque $c>0$, scegliamo $k$ in modo tale che $1 / 2^{k} N$, contraddicendo il fatto che $N$ fosse il massimo possibile.\n\nDimostro per assurdo che $A$ ha al più un buco: supponiamo che $a < b$, con $a, b \\in A$ e tali che $a+1$ e $b-1$ sono due buchi distinti; dato che $(a+1)(b-1) > a b$, l'insieme $C$ ottenuto da $A$ rimuovendo $a, b$ e aggiungendo $a+1$ e $b-1$ rispetta comunque tutte le ipotesi del problema. Inoltre, il prodotto dei numeri contenuti in $C$ sarebbe dato da $N \\frac{(a+1)(b-1)}{a b} > N$, contraddicendo la massimalità di $N$.\n\nInoltre, $A$ non può non contenere $2$ e allo stesso tempo avere un buco $n$ tale che $n+2 \\in A$. Infatti, se così fosse, l'insieme $D$, ottenuto da $A$ aggiungendo $2$ e $n$ e rimuovendo $n+2$, rispetta sempre le ipotesi del problema. Ancora una volta, il prodotto dei numeri contenuti in $D$ è dato da $N \\frac{2 n}{n+2} > N$, il che comporta che $N$ non fosse il massimo possibile.\n\nL'unico modo per scrivere $2024$ come somma di numeri distinti rispettando le condizioni precedenti è usando i numeri da $2$ a $64$, saltando $55$. Segue che $N = \\frac{64!}{55}$, che termina con $13$ cifre '0'. Per contare il numero di cifre $0$ finali è sufficiente contare il numero di fattori $2$ e di fattori $5$ che appaiono nella fattorizzazione di $N$, e poi prendere il minimo di queste due quantità. È facile verificare che ci sono meno fattori $5$ che non fattori $2$; infine, per calcolare il numero di fattori $5$, si può osservare che questi sono gli stessi del prodotto $5 \\cdot 10 \\cdot 15 \\cdots 50 \\cdot 60$: tale prodotto ha $1+1+1+1+2+1+1+1+1+2+1=13$ fattori $5$ (infatti ogni multiplo di $5$ fra $5$ e $60$ contiene un solo fattore $5$, tranne $25$ e $50$ che ne contengono $2$).", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34131, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAlberto ha davanti a sé 13 caselle disposte una sopra l'altra, e vuole inserirvi i numeri da 1 a 10, uno per casella (tre caselle rimarranno vuote). Vuole inoltre che, se due numeri sono scritti in caselle che si toccano, quello più in alto sia maggiore. In quanti modi può farlo?\n\n(A) $3^{10}$\n(B) $2^{11} \\cdot 3^{3} \\cdot 13$\n(C) $2^{16} \\cdot 13$\n(D) $2^{20}$\n(E) $2^{9} \\cdot 3^{4} \\cdot 5^{2} \\cdot 7 \\cdot 11 \\cdot 13$", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è (D). Le quattro caselle lasciate bianche partizionano i 10 numeri in quattro sottoinsiemi (eventualmente vuoti). All'interno di ciascuno di questi sottoinsiemi, l'ordine dei numeri inseriti nelle caselle è determinato. Poiché ciascuno dei 10 numeri può finire in uno qualsiasi dei quattro insiemi, l'insieme delle disposizioni possibili è $4^{10} = 2^{20}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34132, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn quadrilatero convesso $ABCD$ è tale che $AB = 14$, $BC = 24$, $CD = 26$ e $DA = 16$. La sua area è $360$. Trovare l'area della regione di piano interna al quadrilatero costituita dai punti distanti al massimo $3$ dal suo perimetro.\n\n(A) $100$\n(B) $120$\n(C) $120 + 9\\pi$\n(D) $156$\n(E) $200$", "options": [], "answer": "E", "solution": "Solution:\n\nLa risposta è $(\\mathbf{E})$. La soluzione del problema si basa su due considerazioni chiave. Innanzitutto, notando che $AB + CD = BC + DA = 40$, si deduce che il quadrilatero $ABCD$ è circoscritto a una circonferenza. In particolare, detto $r$ il raggio di tale circonferenza, vale $r = \\frac{360}{40} = 9$.\n\nSia ora $I$ il centro della circonferenza. Applicando un'omotetia in $I$ con fattore $\\frac{2}{3}$, il quadrilatero viene mandato in $A'B'C'D'$, che è circoscritto a una circonferenza di centro $I$ e raggio $6$. Notiamo quindi che i lati di $A'B'C'D'$ distano esattamente $3$ da quelli di $ABCD$, quindi un punto interno ad $ABCD$ dista al più $3$ dal perimetro se e solo se non sta dentro a $A'B'C'D'$.\n\nPer concludere, $A'B'C'D'$ ha area $\\left(\\frac{2}{3}\\right)^2 \\cdot 360 = 160$, quindi la risposta è $360 - 160 = 200$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34133, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSu un foglio di carta sono disegnati due esagoni regolari. Il più piccolo ha area $18$, e una diagonale minore dell'esagono più grande coincide con una diagonale maggiore dell'esagono più piccolo. Quanto misura l'area dell'unione dei due esagoni?", "options": [], "answer": "29", "solution": "Solution:\n\nLa risposta è $29$. La figura disegnata sul foglio si può rappresentare come segue:\n\n![](attached_image_1.png)\n\nIl punto $O$ in figura è dato dal centro dell'esagono maggiore $A B C D E F$. Poiché l'esagono $A B C D E F$ è regolare, il triangolo $O C D$ è equilatero. Inoltre, essendo $D A$ il diametro della circonferenza circoscritta a $A B C D E F$, il triangolo $A C D$ è rettangolo, con angolo retto in $C$ e $A D C=60^{\\circ}$. In particolare, detta $\\ell$ la lunghezza del lato $D C$ dell'esagono, si ha che $A D=2 \\ell$. Per il teorema di Pitagora, si ha $A C=\\sqrt{3} \\ell$; segue che il rapporto tra la diagonale maggiore dell'esagono minore $A K G C J I$ e la diagonale maggiore dell'esagono $A B C D E F$ è $\\frac{\\sqrt{3}}{2}$ e, pertanto, il rapporto delle rispettive aree è $\\frac{3}{4}$, da cui\n$$\n\\operatorname{Area}(A B C D E F)=\\frac{4}{3} \\operatorname{Area}(A K G C J I)=\\frac{4}{3} \\times 18=24\n$$\nIl trapezio $A I J C$ è metà dell'esagono $A K G C J I$, da cui\n$$\n\\operatorname{Area}(A I J C)=\\frac{1}{2} \\operatorname{Area}(A K G C J I)=\\frac{1}{2} \\times 18=9.\n$$\nIl quadrilatero $O C B A$ è un terzo dell'esagono $A B C D E F$ (infatti esso è unione dei due triangoli equilateri $O A B$ e $O B C$, entrambi corrispondenti a $\\frac{1}{6}$ dell'esagono); otteniamo\n$$\n\\operatorname{Area}(O C B A)=\\frac{1}{3} \\operatorname{Area}(A B C D E F)=\\frac{1}{3} \\times 24=8\n$$\nSi osservi che i triangoli $O A C$ e $B A C$ sono congruenti: infatti $\\angle C B A=120^{\\circ}=\\angle C O A$, essi hanno $C A$ come lato in comune e sono entrambi isosceli; da cui\n$$\n\\operatorname{Area}(A B C)=\\frac{1}{2} \\operatorname{Area}(O C B A)=\\frac{1}{2} \\times 8=4.\n$$\nSegue direttamente che l'area del pentagono $A C D E F$ è data da\n$$\n\\operatorname{Area}(A C D E F)=\\operatorname{Area}(A B C D E F)-\\operatorname{Area}(A B C)=24-4=20.\n$$\nInfine, l'area dell'unione dei due esagoni è data dalla somma delle aree del pentagono $A C D E F$ e del trapezio $A I J C$, cioè\n$$\n\\operatorname{Area}(A I J C D E F)=\\operatorname{Area}(A I J C)+\\operatorname{Area}(A C D E F)=9+20=29.\n$$\n\n![](attached_image_1.png)", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34134, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLucio ha una scatola con tanti dadi a 14 facce di forma e dimensioni uguali ma con numerazioni differenti. La forma dei dadi è un cubo tronco, cioè un cubo a cui si tagliano i vertici in modo da formare un poliedro con 14 facce, 6 ottagoni regolari e 8 triangoli equilateri. Ogni dado riporta tutti i numeri da 1 a 14 su facce diverse ma in modo tale che la somma dei numeri su facce opposte dello stesso dado sia sempre la stessa. Presi due dadi distinti però non esiste nessuna rotazione che porti il primo nel secondo. Quanti sono al massimo i dadi nella scatola di Lucio?", "options": [], "answer": "26880", "solution": "Solution:\n\nLa risposta è $26880$. È immediato notare che la somma delle facce opposte deve essere necessariamente $15$. Partizioniamo quindi i numeri da $1$ a $14$ nelle coppie $\\{1,14\\},\\{2,13\\}, \\ldots,\\{7,8\\}$, in modo che la somma in ogni coppia sia $15$: ogni coppia di numeri deve essere assegnata a una coppia di facce opposte.\n\nMettiamo un dado sul tavolo, appoggiato su una faccia ottagonale, in modo tale che davanti a noi ci sia un'altra faccia ottagonale. Chiamiamo configurazione un modo di scrivere i numeri su questo dado in modo tale che la somma delle facce opposte sia $15$; diciamo che due configurazioni sono uguali se su ogni faccia abbiamo scritto lo stesso numero. Ci sono un totale di $2^{7} \\cdot 7!$ configurazioni: dobbiamo infatti assegnare a ciascuna coppia di facce opposte una diversa coppia di numeri la cui somma fa $15$, il che si può fare in $7!$ modi. Successivamente abbiamo due modi di scrivere ciascuna coppia di numeri sulla coppia di facce opposte associata (possiamo scrivere il numero più piccolo su una certa faccia e quello più grande sull'altra, o viceversa).\n\nSia $n$ il numero di dadi posseduti da Lucio. Preso un dado di Lucio, abbiamo $24$ modi diversi di appoggiarlo sul tavolo su una faccia ottagonale in modo che davanti a noi ci sia una faccia ottagonale: dobbiamo infatti scegliere in $6$ modi su che faccia appoggiarlo, e in $4$ modi quale delle $4$ facce ottagonali adiacenti rivolgere verso di noi. Ogni modo di appoggiarlo ci dà quindi $24$ diverse configurazioni; inoltre, le configurazioni ottenute da due diversi dadi di Lucio sono sempre diverse, perché altrimenti troveremmo una rotazione che porta il primo dado nel secondo.\n\nQuesto ci dice che $n \\leq \\frac{2^{7} \\cdot 7!}{24} = 26880$. Supponiamo che $n$ sia il massimo possibile: se per assurdo $n < 26880$, allora esisterebbe almeno una configurazione che non è ottenibile a partire da nessun dado di Lucio. Se noi aggiungessimo alla scatola il dado con quella configurazione, le condizioni sarebbero ancora soddisfatte, e quindi $n$ non era il massimo possibile, assurdo. Quindi la risposta è $n = 26880$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34135, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDiciamo che una coppia $(a, b)$ di interi positivi è bella se $a$ divide $b$ e $a+1$ divide $b+1$.\n\na. Dimostrare che, fissato un intero positivo $a$, esistono infiniti interi positivi $b$ tali che la coppia $(a, b)$ sia bella.\n\nb. Fissato un intero positivo $a$, determinare il minimo intero $b>a$ tale che $(a, b)$ sia bella.\n\nc. Preso ora $a=18$, determinare il minimo intero positivo $b>a$ tale che $(a, b)$ sia bella ed inoltre $a+2$ divida $b+2$.", "options": [], "answer": "a) Infinitely many such b exist. b) The minimal b is a^2 + 2a. c) 3438.", "solution": "Solution:\n\nPer definizione, una coppia di interi positivi $(a, b)$ è bella se esistono $k, h$ interi positivi tali che $b=k a$ e $b+1=h(a+1)$. In particolare, si ha $k a+1=h(a+1)$ e quindi\n$$\nh=\\frac{k a+1}{a+1} .\n$$\nPoiché $h$ è intero, si ha che $k a+1=k(a+1)-(k-1)$ è divisibile per $a+1$, da cui $k-1$ è divisibile per $a+1$ e quindi esiste $n$ intero non negativo tale per cui $k-1=n(a+1)$. Mettendo tutto insieme, otteniamo che se la coppia $(a, b)$ è bella allora esiste un intero $n$ per cui $b=k a=a(n a+n+1)$.\nD'altra parte, se $b=a(n a+n+1)$ per qualche intero non negativo $n$, allora, chiaramente, $a$ divide $b$ e $b+1=(n a+n+1) a+1=n(a+1) a+(a+1)$ è divisibile per $a+1$.\nRiassumendo, la coppia $(a, b)$ è bella se e solo se $b=a(n a+n+1)$ per qualche intero positivo $n$.\n\na. Dato $a$, esistono infiniti interi positivi $b$ per cui la coppia $(a, b)$ è bella: infatti, segue da quando detto sopra che per ogni intero positivo $n$ la coppia $(a, a(n a+n+1))$ è bella.\n\nSeconda soluzione: per ogni $d$ intero positivo dispari, la coppia del tipo $(a, a^{d})$ è bella: chiaramente $a$ divide $a^{d}$; inoltre $a^{d}+1=(a+1)(1-a+a^{2}-a^{3}+\\ldots+a^{d-1})$ è divisibile per $a+1$. Abbiamo così ottenuto un'altra famiglia infinita di coppie belle $(a, b)$ con $a$ dato.\n\nb. Si osservi che, se $m>n$, allora $a(m a+m+1)>a(n a+n+1)$. Poiché le coppie belle sono tutte e sole del tipo $(a, a(n a+n+1))$ (per $n$ intero non negativo) e poiché per $n=0$ si ha $a(n a+n+1)=a$, il minimo intero $b>a$ per cui $(a, b)$ sia bella si ottiene per $n=1$, cioè $b=a^{2}+2 a>a$.\n\nSeconda soluzione: Dato $a$, il minimo $b$ (tale per cui $b>a$ e $(a, b)$ è una coppia bella) è un multiplo di $a$ del tipo $m a$ ($m>1$ intero). Osservo che se $m a+1$ da come resto $r$ nella divisione per $a+1$, allora $(m+1) a+1=(m a+1)+(a+1)-1$ da come resto $r-1$. Poiché per $m=1$ il resto della divisione di $m a+1$ per $a+1$ è nullo, il multiplo successivo di $a$ ad avere tale proprietà sarà dato quando $m=a+2$, cioè $b=(a+2) a$.\n\nc. Da quanto detto sopra, sappiamo che la coppia $(18, b)$ è bella se e solo se $b=18(18 n+n+1)=18(19 n+1)$. La condizione\n$$\n20=a+2 \\mid b+2=342 n+20,\n$$\nè soddisfatta se e solo se 20 divide $342 n$ o, equivalentemente, se 10 divide $n$. Deduciamo così che il minimo $b=18(19 n+1)$ maggiore di 18 per cui la coppia $(18, b)$ è bella e $b+2$ divide $a+2=20$ si ottiene per $n=10$, ovvero $b=191 \\cdot 18=3438$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34136, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSiano $ABC$ un triangolo acutangolo e $D$ il piede della bisettrice uscente da $A$. Siano $E$ ed $F$ rispettivamente le intersezioni di $AC$ con la circonferenza circoscritta ad $ABD$, e di $AB$ con la circonferenza circoscritta ad $ACD$. Sia inoltre $P$ l'intersezione tra $BE$ e $CF$.\n\na. Mostrare che il triangolo $PBC$ è isoscele.\n\nb. Mostrare che $BD : BE = CD : CF$.\n\nc. Sia $F^{\\prime}$ il simmetrico di $F$ rispetto al punto medio di $BC$. Mostrare che il triangolo $EBF^{\\prime}$ è simile al triangolo $ABC$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\na.\nPoiché $DBAE$ e $CDFA$ sono inscrivibili, si ha $\\angle BCP = \\angle DCF = \\angle DAF = \\angle DAB$ e $\\angle CBP = \\angle DBE = \\angle DAE = \\angle DAC$. Essendo $AD$ la bisettrice di $\\angle BAC$, si ha $\\angle BAD = \\angle DAC$, quindi $\\angle BCP = \\angle CBP$, il che dimostra che il triangolo $BCP$ è isoscele.\n\nb.\nEssendo $DBAE$ e $CDFA$ iscrivibili, si ha $\\angle DFC = \\angle DAC = \\angle DAB = \\angle DEB$. Inoltre, dal punto precedente, sappiamo che $\\angle EBD = \\angle DCF$. Poiché i triangoli $EBD$ e $FCD$ hanno 2 coppie di angoli uguali, essi sono simili. Pertanto $BD : BE = CD : CF$.\n\nc.\nIl quadrilatero $CFBF^{\\prime}$ ha, per ipotesi, le diagonali che si bisecano, pertanto è un parallelogramma. Si osservi che $\\angle EBF^{\\prime}$ è congruente a $\\angle CAB$. Infatti, poiché $CFBF^{\\prime}$ è un parallelogramma, sappiamo che $\\angle CBF^{\\prime} = \\angle BCF = \\angle DAF$ (dove l'ultima uguaglianza segue dai punti precedenti) e $\\angle CBE = \\angle DAE$ (sempre per i punti precedenti). Da cui\n$$\n\\angle EBF^{\\prime} = \\angle CBE + \\angle CBF^{\\prime} = \\angle DAE + \\angle DAB = \\angle CAB .\n$$\nSi osservi ora che\n$$\n\\angle EC F^{\\prime} = \\angle ECB + \\angle BCF^{\\prime} = \\angle ACB + \\angle CBA = 180^{\\circ} - CAB = 180^{\\circ} - EBF^{\\prime} \\, ,\n$$\ndove l'uguaglianza $\\angle BCF^{\\prime} = \\angle CBA$ è dovuta al fatto che il quadrilatero $CFBF^{\\prime}$ è un parallelogramma. Ne segue che gli angoli $\\angle EC F^{\\prime}$ e $\\angle EBF^{\\prime}$ sono supplementari e il quadrilatero $EBF^{\\prime}C$ è inscrivibile in una circonferenza. Deduciamo quindi che $\\angle ECB = \\angle EF^{\\prime}B$. Abbiamo così dimostrato che i triangoli $EF^{\\prime}B$ e $ACB$ hanno due coppie di angoli uguali e sono pertanto simili.\n\nIn alternativa, possiamo osservare che $BF^{\\prime} = CF$ perché lati opposti del parallelogramma $BF^{\\prime}CF$, da cui grazie al punto (b) si ottiene $BF^{\\prime} : BE = CD : BD$. Ora, grazie al teorema della bisettrice, $CD : BD = AB : AC$, dunque i triangoli $BEF^{\\prime}$ e $ABC$ sono simili grazie al secondo criterio di similitudine.\n\n![](attached_image_1.png)", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34137, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nData una stringa di cifre 0 e 1, Giacomo vorrebbe dividerla in blocchi da 2 o 3 cifre consecutive in modo da soddisfare una delle seguenti due condizioni:\n(1) in ogni blocco, ogni (eventuale) cifra 0 compare a sinistra di ogni (eventuale) cifra 1. I blocchi consentiti sono cioè $00,01,11,000,001,011,111$;\n(2) in ogni blocco, ogni (eventuale) cifra 0 compare a destra di ogni (eventuale) cifra 1. I blocchi consentiti sono cioè $00,10,11,000,100,110,111$.\nPer esempio, per la stringa 011011 la suddivisione $01|10|11$ non va bene, perché i blocchi non sono né tutti del tipo (1), né tutti del tipo (2). La suddivisione 011|011 invece va bene, perché tutti i blocchi sono del tipo (1).\n\na. Siano $m, n$ interi maggiori o uguali a 0, con $m+n \\geq 2$. Dimostrare che la stringa costituita da $m$ cifre 0 seguite da $n$ cifre 1 si può dividere in blocchi come affermato da Giacomo.\n\nb. Sia $l \\geq 4$ un intero. Dimostrare che il numero di stringhe di cifre 0 e 1 di lunghezza $l$ per cui Giacomo non può effettuare una suddivisione come sopra è $2^{l-3}$.", "options": [], "answer": "2^{l-3}", "solution": "Solution:\n\na. Notiamo che, comunque si suddivida la stringa, i blocchi saranno tutti del primo tipo: infatti, nella stringa data tutti gli $1$ sono a destra di tutti gli $0$. Inoltre, esiste almeno una suddivisione della stringa in blocchi da 2 o da 3 cifre: se $m+n$ è pari, possiamo suddividere la stringa in blocchi tutti da 2; se è dispari, la possiamo suddividere in un blocco da 3 e ciò che resta in blocchi da 2.\n\nb. Innanzitutto dimostriamo che se una stringa inizia con la cifra $1$ e termina con un numero di cifre 0 diverso da uno (cioè, le ultime due cifre non sono $10$), allora esiste una suddivisione ammissibile della stringa: consideriamo una stringa di questo tipo e suddividiamola in sottostringhe della forma $0\\ldots 01\\ldots 1$ (dove in ciascuna appaiono un numero positivo di cifre 0 e di cifre 1), più eventualmente una sottostringa finale di sole cifre 0 (se ci sono tali zeri finali, allora ce ne sono almeno due, per ipotesi sulla stringa).\n\nVisto che tutte queste sottostringhe, eccetto eventualmente l'ultima, contengono sia 0 che 1, hanno in particolare almeno due cifre. D'altra parte, l'eventuale ultima stringa contenente solo cifre 0 avrà, per ipotesi, almeno due cifre. Per il punto a), ognuna di queste sottostringhe con almeno 2 cifre può essere suddivisa in blocchi del primo tipo.\n\nAbbiamo quindi dimostrato che sappiamo suddividere in blocchi del primo tipo tutte le stringhe che iniziano per 1 e non terminano per 10. Si dimostra in modo analogo che si possono suddividere le stringhe che iniziano per 0 e che non terminano per 01.\n\nConsideriamo ora una stringa $s$ che inizia per 0 e finisce per 10. Se la leggiamo da destra a sinistra, otteniamo una nuova stringa $s'$ che inizia per 01 e finisce per 0. Se $s$ non inizia per 01, allora $s'$ non finisce per 10, e per lo stesso ragionamento di prima possiamo decomporre $s'$ in blocchi del primo tipo. Leggendo la decomposizione al contrario otteniamo una decomposizione in blocchi del secondo tipo per $s$.\n\nQuindi le uniche stringhe che non sappiamo ancora come decomporre in blocchi sono quelle che iniziano per 01 e terminano per 10 (e quelle che iniziano per 10 e che terminano per 01). Tuttavia, in questo caso il primo blocco di una eventuale decomposizione sarebbe necessariamente del primo tipo, mentre l'ultimo sarebbe necessariamente del secondo tipo, il che vuol dire che una suddivisione come richiesta da Giacomo non esiste.\n\nLe stringhe di lunghezza $l$ che iniziano per 0 per cui non esiste una decomposizione ammissibile sono quindi quelle che iniziano per 01 e finiscono per 10, e sono quindi $2^{l-4}$. Per simmetria, le stringhe di lunghezza $l$ che iniziano per 1 per cui non esiste una suddivisione ammissibile sono altrettante, e quindi in totale otteniamo $2^{l-3}$ stringhe che non ammettono una suddivisione valida.", "topic": "Algebra", "subtopic": "Abstract Algebra" }, { "id": 34138, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nGli aventi diritto di voto sull'isola di Cavalfurfandia sono $5000$; ciascuno è un cavaliere, nel qual caso rilascia solo dichiarazioni vere, o un furfante, nel qual caso rilascia solo dichiarazioni false. Tremila abitanti dichiarano che voteranno Carla, duemila che voteranno Flavia. Ciascuno dei tremila che hanno dichiarato di voler votare per Carla rilascia l'ulteriore dichiarazione: \"Tutti quelli che dichiarano di votare per Flavia sono dei furfanti\". Sapendo che ogni abitante vota per una delle due candidate, quanti voti di vantaggio sulla perdente avrà la vincitrice come minimo?\n\n(A) $5000$\n(B) $4998$\n(C) $1002$\n(D) $1000$\n(E) Carla e Flavia potrebbero pareggiare.", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è (C). Osserviamo che abbiamo due casi distinti a seconda che l'affermazione \"Tutti quelli che dichiarano di votare per Flavia sono dei furfanti\" sia vera o falsa:\n\n- se l'affermazione è vera, allora tutti coloro che l'hanno rilasciata (che sono le $3000$ persone che hanno dichiarato di votare Carla) sono dei cavalieri; pertanto, queste $3000$ persone voteranno effettivamente Carla. D'altra parte, poiché l'affermazione è vera, sappiamo che tutti coloro che hanno dichiarato di votare Flavia sono dei furfanti, quindi mentivano durante tale dichiarazione e pertanto voteranno Carla. Quindi in questo caso tutti gli abitanti dell'isola voteranno per Carla, il risultato delle elezioni sarà $5000$ a $0$, e i voti di vantaggio per la vincitrice (Carla) saranno $5000$.\n\n- se l'affermazione è falsa, allora tutti coloro che l'hanno rilasciata (che sono le $3000$ persone che hanno dichiarato di votare Carla) sono dei furfanti e, pertanto, voteranno Flavia.\n\nSia $n$ (con $n \\leq 2000$) il numero di cavalieri che ha dichiarato di votare Flavia (poiché in questo caso l'affermazione sopra riportata è falsa, si ha $n \\geq 1$): tra queste $2000$ persone, $n$ voteranno Flavia (perché dicevano il vero mentre dichiaravano chi avrebbero votato) e $2000 - n$ voteranno per Carla (in quanto furfanti, mentivano mentre dichiaravano chi avrebbero votato). Otteniamo quindi che Carla riceve in tutto $2000-n$ voti, mentre Flavia ne riceve $3000+n$. In questo caso la vincitrice (Flavia) avrà\n$$\n(3000+n)-(2000-n)=1000+2n\n$$\nvoti di vantaggio. Poiché $1 \\leq n \\leq 2000$, si ha che i voti di vantaggio sono compresi tra $1002$ e $5000$.\n\nPoiché il problema richiede il minimo numero di voti di vantaggio che avrà la vincitrice, la risposta è $1002$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34139, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDeterminare il numero di coppie $(m, n)$ di numeri interi di modulo minore di $10000$ che risolvono l'equazione $n^{2}+2024 n+2024 m=2024$.\n\n(A) 4\n(B) 9\n(C) 10\n(D) 18\n(E) 19", "options": [], "answer": "B", "solution": "Solution:\n\nLa risposta è (B). Innanzitutto notiamo che $2024=2^{3} \\cdot 11 \\cdot 23$ deve dividere $n^{2}$, quindi possiamo scrivere $n=\\left(2^{2} \\cdot 11 \\cdot 23\\right) \\cdot k=1012 k$, con $k$ intero di modulo minore o uguale a $9$, così che $|n|=|1012 k|<10000$. Sostituendo nell'equazione abbiamo\n$$\n1012^{2} k^{2}+2 \\cdot 1012^{2} k+2024 m=2024,\n$$\ne dividendo per $2024$ si ha\n$$\n506 k^{2}+1012 k-1=-m.\n$$\nIl numero di soluzioni $(n, m)$ è dunque pari al numero di interi $-10 1$ si ha $q_{k}(x) = p\\left(q_{k-1}(x)\\right)$ e poiché le uniche soluzioni all'equazione $p(x) = 0$ sono date da $x = 0$, $x = -1$ e $x = 2$, si ha che $q_{k}(x) = 0$ se e solo se $q_{k-1}(x) \\in \\{0, -1, 2\\}$.\n\nOsserviamo che l'equazione $p(x) = -1$ non ammette soluzioni intere, mentre $p(x) = 0$ (risp. $p(x) = 2$) ammette come unica soluzione $x = 0$ (risp. $x = 1$); quindi, per $k \\geq 2$ si ha $q_{k-1}(x) = p\\left(q_{k-2}(x)\\right) \\in \\{0, 1, 2\\}$ se e solo se $q_{k-2}(x) \\in \\{0, 1\\}$.\n\nInfine, poiché $p(x) = 1$ non ammette soluzioni intere, abbiamo che per $k > 3$ l'equazione $q_{k-2}(x) = p\\left(q_{k-3}(x)\\right) = 1$ non ha soluzioni e quindi $q_{k-1}(x) = p\\left(q_{k-2}(x)\\right) \\in \\{0, 1, 2\\}$ se e solo se $q_{k-2}(x) = 0$.\n\nRiassumendo quanto precede, per $k > 3$, si ha che $q_{k}(x) = 0$ è verificata se e solo se $q_{k-2}(x) = 0$. Concatenando abbastanza volte questa implicazione, si ottiene che $q(x) = q_{2024}(x) = 0$ se e solo se $q_{2}(x) = p(p(x)) = 0$, che si verifica facilmente avere come soluzioni $x \\in \\{-1, 0, 1, 2\\}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34142, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nQual è la somma dei divisori positivi di $18000$ la cui scrittura decimale termina per $50$?\n\n(A) $1400$\n(B) $1650$\n(C) $3150$\n(D) $3900$\n(E) $4030$", "options": [], "answer": "D", "solution": "Solution:\n\nLa risposta è $(\\mathbf{D})$. Si ha che $18000=2^{4} \\cdot 3^{2} \\cdot 5^{3}$, quindi tutti i divisori di $18000$ sono del tipo $2^{a} \\cdot 3^{b} \\cdot 5^{c}$, dove $a \\in\\{0,1,2,3,4\\}$, $b \\in\\{0,1,2\\}$ e $c \\in\\{0,1,2,3\\}$. Affinché la scrittura decimale del divisore termini con $50$, il numero deve essere divisibile per $50$, da cui $a \\geq 1$ e $c \\geq 2$. Notiamo, inoltre, che se $a \\geq 2$ e $c \\geq 2$, allora la scrittura decimale del divisore termina con le cifre \"00\". È quindi necessario richiedere anche $a=1$. Quindi la somma richiesta è data da\n$$\n\\sum_{b=0}^{2} \\sum_{c=2}^{3} 2 \\cdot 3^{b} \\cdot 5^{c} = 2 \\cdot \\left(\\sum_{b=0}^{2} 3^{b}\\right) \\cdot \\left(\\sum_{c=2}^{3} 5^{c}\\right) = 2 \\cdot 13 \\cdot 150 = 3900.\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34143, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSono dati, nello spazio, tre punti distinti $X, Y$ e $Z$; ci si chiede se esista un punto $P$ diverso da $X, Y$ e $Z$ tale che le rette $P X, P Y$ e $P Z$ siano a due a due perpendicolari. Quattro amici fanno le seguenti affermazioni:\n\nAlberto: \"Esistono $X, Y, Z$ e $P$ appartenenti allo stesso piano che soddisfano tali condizioni.\"\n\nBarbara: \"Non esistono 4 punti $X, Y, Z$ e $P$ che soddisfano tali condizioni.\"\n\nCarlo: \"Affinché $P$ esista è necessario che $X Y Z$ sia acutangolo.\"\n\nDaria: \"Affinché $P$ esista è sufficiente che $X Y Z$ non sia ottusangolo.\"\n\nChi ha ragione?\n\n(A) Solo Alberto\n(B) Solo Barbara\n(C) Solo Carlo\n(D) Solo Daria\n(E) Nessuna delle precedenti.", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è $(\\mathbf{C})$. L'unico che ha ragione è Carlo.\n\nAlberto ha torto, infatti se esistessero $X, Y, Z, P$ appartenenti allo stesso piano tali che $P X, P Y$ e $P Z$ sono a due a due perpendicolari allora $P Z \\perp P X, P Z \\perp P Y$ e quindi $P Y \\parallel P X$, che è assurdo.\n\nBarbara ha torto: 4 punti siffatti sono ad esempio dati dagli estremi di 3 spigoli di un cubo aventi un vertice in comune (che sarà $P$), o più in generale dai vertici di un qualsiasi tetraedro rettangolo.\n\nCarlo ha ragione: infatti dato che $X Y^{2} = P X^{2} + P Y^{2} < P X^{2} + P Y^{2} + 2 \\cdot P Z^{2} = X Z^{2} + Y Z^{2}$, allora $\\widehat{X Z Y}$ è acuto, e analogamente anche $\\widehat{Z X Y}$ e $\\widehat{X Y Z}$ sono acuti. Un'argomentazione alternativa per mostrare che Carlo ha ragione è la seguente: consideriamo la sfera di diametro $X Y$, allora $P$ appartiene a tale sfera e la retta $P Z$ è la perpendicolare al piano su cui giacciono $P, X, Y$, dunque ogni punto di tale retta (fatta eccezione per $P$) è esterno alla sfera. Ma allora $\\widehat{X Z Y}$ è acuto (e analogamente anche $\\widehat{Z X Y}$ e $\\widehat{X Y Z}$ sono acuti).\n\nDaria ha torto: per quanto detto sopra, è necessario che $X Y Z$ sia acutangolo, quindi $X Y Z$ non può essere rettangolo; in particolare, non è sufficiente che $X Y Z$ non sia ottusangolo.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34144, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSono dati tre numeri reali positivi $a$, $b$, $c$ con $a c = 9$. Si sa che per tutti i numeri reali $x$, $y$ con $x y \\neq 0$ vale\n$$\n\\frac{a}{x^{2}} + \\frac{b}{x y} + \\frac{c}{y^{2}} \\geq 0.\n$$\nQual è il massimo valore possibile per $b$?\n\n(A) 1\n(B) 3\n(C) 6\n(D) 9\n(E) Non esiste nessun tale $b$.", "options": [], "answer": "C", "solution": "Solution:\n\nLa risposta è $\\mathbf{(C)}$. Per ipotesi, per $x$, $y$ tali che $x y \\neq 0$, si ha\n$$\n\\frac{a y^{2} + b x y + c x^{2}}{x^{2} y^{2}} = \\frac{a}{x^{2}} + \\frac{b}{x y} + \\frac{c}{y^{2}} \\geq 0.\n$$\nDimostriamo che tale disuguaglianza è sempre soddisfatta per $b \\leq 6$: infatti, se $x y > 0$, allora la disuguaglianza è chiaramente verificata. D'altra parte, se $x y < 0$, allora, usando l'uguaglianza $a c = 9$, si ottiene\n$$\n\\frac{a y^{2} + b x y + c x^{2}}{x^{2} y^{2}} = \\frac{(\\sqrt{a} y + \\sqrt{c} x)^{2} + x y (b - 2 \\sqrt{a c})}{x^{2} y^{2}} = \\frac{(\\sqrt{a} y + \\sqrt{c} x)^{2} + x y (b - 6)}{x^{2} y^{2}},\n$$\nche è chiaramente non negativa per $b \\leq 6$.\n\nInoltre, 6 è il massimo valore di $b$ per cui tale disuguaglianza è verificata per ogni $x$, $y$ con $x y \\neq 0$: infatti, se $b > 6$, allora per $y = \\sqrt{c}$, $x = -\\sqrt{a}$ si ha che\n$$\n\\frac{a y^{2} + b x y + c x^{2}}{x^{2} y^{2}} = \\frac{-\\sqrt{a c}(b - 2 \\sqrt{a c})}{a c} = \\frac{-3(b - 6)}{9} \\leq 0,\n$$\ncontro le ipotesi del problema.\n\n\nSeconda soluzione: Moltiplicando la disuguaglianza del testo per il numero positivo $y^{2}$ si ottiene\n$$\na\\left(\\frac{y}{x}\\right)^{2} + b\\left(\\frac{y}{x}\\right) + c \\geq 0\n$$\nper ogni coppia di numeri reali $x$, $y$ entrambi non nulli. In particolare, visto che il rapporto $t := y / x$ può assumere ogni valore reale diverso da 0, si ha $a t^{2} + b t + c \\geq 0$ per ogni $t$ in $\\mathbb{R}$ (compreso $t = 0$: infatti per $t = 0$ si ottiene $c$, che è positivo per ipotesi). È ben noto che un polinomio di secondo grado è positivo per ogni valore della variabile se e solo se sono verificate le seguenti due condizioni: il coefficiente del termine di grado due è positivo (e questo è verificato nel nostro caso, dato che $a > 0$ per ipotesi) e il discriminante $b^{2} - 4 a c$ è minore o uguale a 0. Nella nostra situazione, questa seconda condizione si traduce in $b^{2} - 4 a c \\leq 0$, cioè $b^{2} \\leq 4 a c = 36$, ovvero infine $b \\leq 6$. Il valore massimo possibile per $b$ è quindi 6.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34145, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nMarina vuole colorare ciascuna casella di una tabella $5 \\times 5$ in rosso o in blu, in modo che ogni casella condivida al più un lato con una casella dello stesso colore. Quante sono le colorazioni possibili della tabella?\n\n(A) 30\n(B) 45\n(C) 46\n(D) 50\n(E) 90", "options": [], "answer": "A", "solution": "Solution:\n\nLa risposta è (A). Innanzitutto, osserviamo che una volta colorata una riga e una colonna della tabella rispettando le condizioni date, allora esiste al più un modo di completare la colorazione rispettando le condizioni del problema: infatti, data una tabella $2 \\times 2$ con tre caselle colorate usando entrambi i colori, c'è un unico modo di colorare la quarta casella mantenendo le condizioni rispettate (questo si vede elencando i pochi casi possibili). Si osservi inoltre che una tabella $2 \\times 2$ con tre caselle colorate dello stesso colore contraddice le condizioni del problema.\n\nQuindi, data una colorazione su una riga e una colonna della nostra tabella $5 \\times 5$, l'unico modo di espandere questa colorazione su tutta la tabella si ottiene restringendosi a guardare (di volta in volta) le sottotabelle $2 \\times 2$ di cui 3 caselle sono già colorate (necessariamente usando entrambi i colori) e colorando la quarta casella rimanente.\n\nOsserviamo che una volta colorata la prima riga in modo tale che non ci siano tre caselle consecutive dello stesso colore, ma che ci siano almeno due caselle adiacenti con lo stesso colore (il che si può fare in 14 modi possibili), esiste un unico modo si espandere la colorazione all'intera tabella: infatti, se ci sono due caselle blu vicine, le due immediatamente sottostanti devono essere rosse, quelle ulteriormente sotto devono essere blu e così via; quindi la colorazione di almeno una colonna è determinata e, per quanto detto sopra, esiste al più una colorazione dell'intera tabella che espande quella iniziale. Inoltre, la colorazione ottenuta ripetendo la colorazione della prima riga sulla terza e la quinta riga, e mettendo la colorazione opposta sulla seconda e sulla quarta riga, è una colorazione ammissibile. Si osservi che in questo caso la colorazione della prima colonna si ottiene alternando i colori. Esistono quindi 14 colorazioni di questo tipo.\n\nIn maniera del tutto analoga, una colorazione della prima colonna con almeno due caselle adiacenti dello stesso colore (che si può sempre fare in 14 modi distinti) determina una colorazione dell'intera tabella. In questo caso avremo che la prima riga avrà i colori alternati e quindi non potrà coincidere con nessuna delle colorazioni contate sopra.\n\nAnche nel caso in cui sia la prima riga, sia la prima colonna sono colorate a colori alterni, esiste un'unica colorazione possibile per tutta la tabella, data dalla colorazione a scacchiera. Esistono pertanto 2 colorazioni che rientrano in questo caso.\n\nPoiché abbiamo esaurito tutte le possibili colorazioni della prima riga e della prima colonna, si ha che non esistono altre colorazioni oltre a quelle elencate e quindi il numero totale di colorazioni è $14+14+2=30$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34146, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $a$ and $b$ be positive real numbers such that $3 a^{2}+2 b^{2}=3 a+2 b$. Find the minimum value of\n$$\nA=\\sqrt{\\frac{a}{b(3 a+2)}}+\\sqrt{\\frac{b}{a(2 b+3)}}\n$$", "options": [], "answer": "2/√5", "solution": "Solution:\n\nBy the Cauchy-Schwarz inequality we have that\n$$\n5\\left(3 a^{2}+2 b^{2}\\right)=5\\left(a^{2}+a^{2}+a^{2}+b^{2}+b^{2}\\right) \\geq (3 a+2 b)^{2}\n$$\n(or use that the last inequality is equivalent to $(a-b)^{2} \\geq 0$).\nSo, with the help of the given condition we get that $3 a+2 b \\leq 5$. Now, by the AM-GM inequality we have that\n$$\nA \\geq 2 \\sqrt{\\sqrt{\\frac{a}{b(3 a+2)}} \\cdot \\sqrt{\\frac{b}{a(2 b+3)}}} = \\frac{2}{\\sqrt[4]{(3 a+2)(2 b+3)}}\n$$\nFinally, using again the AM-GM inequality, we get that\n$$\n(3 a+2)(2 b+3) \\leq \\left(\\frac{3 a+2 b+5}{2}\\right)^{2} \\leq 25\n$$\nso $A \\geq 2 / \\sqrt{5}$ and the equality holds if and only if $a=b=1$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34147, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $a, b, c, d$ be real numbers such that $0 \\leq a \\leq b \\leq c \\leq d$. Prove the inequality\n$$\na b^{3}+b c^{3}+c d^{3}+d a^{3} \\geq a^{2} b^{2}+b^{2} c^{2}+c^{2} d^{2}+d^{2} a^{2}\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\nThe inequality is equivalent to\n$$\n\\left(a b^{3}+b c^{3}+c d^{3}+d a^{3}\\right)^{2} \\geq\\left(a^{2} b^{2}+b^{2} c^{2}+c^{2} d^{2}+d^{2} a^{2}\\right)^{2}\n$$\nBy the Cauchy-Schwarz inequality,\n$$\n\\left(a b^{3}+b c^{3}+c d^{3}+d a^{3}\\right)\\left(a^{3} b+b^{3} c+c^{3} d+d^{3} a\\right) \\geq\\left(a^{2} b^{2}+b^{2} c^{2}+c^{2} d^{2}+d^{2} a^{2}\\right)^{2}\n$$\nHence it is sufficient to prove that\n$$\n\\left(a b^{3}+b c^{3}+c d^{3}+d a^{3}\\right)^{2} \\geq\\left(a b^{3}+b c^{3}+c d^{3}+d a^{3}\\right)\\left(a^{3} b+b^{3} c+c^{3} d+d^{3} a\\right)\n$$\ni.e. to prove $a b^{3}+b c^{3}+c d^{3}+d a^{3} \\geq a^{3} b+b^{3} c+c^{3} d+d^{3} a$.\nThis inequality can be written successively\n$$\na\\left(b^{3}-d^{3}\\right)+b\\left(c^{3}-a^{3}\\right)+c\\left(d^{3}-b^{3}\\right)+d\\left(a^{3}-c^{3}\\right) \\geq 0\n$$\nor\n$$\n(a-c)\\left(b^{3}-d^{3}\\right)-(b-d)\\left(a^{3}-c^{3}\\right) \\geq 0\n$$\nwhich comes down to\n$$\n(a-c)(b-d)\\left(b^{2}+b d+d^{2}-a^{2}-a c-c^{2}\\right) \\geq 0\n$$\nThe last inequality is true because $a-c \\leq 0, b-d \\leq 0$, and $\\left(b^{2}-a^{2}\\right)+(b d-a c)+\\left(d^{2}-c^{2}\\right) \\geq 0$ as a sum of three non-negative numbers.\nThe last inequality is satisfied with equality whence $a=b$ and $c=d$. Combining this with the equality cases in the Cauchy-Schwarz inequality we obtain the equality cases for the initial inequality: $a=b=c=d$.\n\nRemark. Instead of using the Cauchy-Schwarz inequality, once the inequality $a b^{3}+b c^{3}+c d^{3}+$ $d a^{3} \\geq a^{3} b+b^{3} c+c^{3} d+d^{3} a$ is established, we have $2\\left(a b^{3}+b c^{3}+c d^{3}+d a^{3}\\right) \\geq\\left(a b^{3}+b c^{3}+c d^{3}+d a^{3}\\right)+\\left(a^{3} b+b^{3} c+c^{3} d+d^{3} a\\right)=\\left(a b^{3}+a^{3} b\\right)+\\left(b c^{3}+b^{3} c\\right)+\\left(c d^{3}+c^{3} d\\right)+\\left(d a^{3}+d^{3} a\\right) \\stackrel{A M-G M}{\\geq}$ $2 a^{2} b^{2}+2 b^{2} c^{2}+2 c^{2} d^{2}+2 d^{2} a^{2}$ which gives the conclusion.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34148, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nConsider a regular $2n+1$-gon $P$ in the plane, where $n$ is a positive integer. We say that a point $S$ on one of the sides of $P$ can be seen from a point $E$ that is external to $P$, if the line segment $SE$ contains no other points that lie on the sides of $P$ except $S$. We want to color the sides of $P$ in 3 colors, such that every side is colored in exactly one color, and each color must be used at least once. Moreover, from every point in the plane external to $P$, at most 2 different colors on $P$ can be seen (ignore the vertices of $P$, we consider them colorless). Find the largest positive integer for which such a coloring is possible.", "options": [], "answer": "1", "solution": "Solution:\n\nAnswer: $n=1$ is clearly a solution, we can just color each side of the equilateral triangle in a different color, and the conditions are satisfied. We prove there is no larger $n$ that fulfills the requirements.\n\nLemma 1. Given a regular $2n+1$-gon in the plane, and a sequence of $n+1$ consecutive sides $s_{1}, s_{2}, \\ldots, s_{n+1}$ there is an external point $Q$ in the plane, such that the color of each $s_{i}$ can be seen from $Q$, for $i=1,2, \\ldots, n+1$.\n\nProof. It is obvious that for a semi-circle $S$, there is a point $R$ in the plane far enough on the perpendicular bisector of the diameter of $S$ such that almost the entire semi-circle can be seen from $R$.\n\nNow, it is clear that looking at the circumscribed circle around the $2n+1$-gon, there is a semi-circle $S$ such that each $s_{i}$ either has both endpoints on it, or has an endpoint that is on the semi-circle, and is not on the semicircle's end. So, take $Q$ to be a point in the plane from which almost all of $S$ can be seen, clearly, the color of each $s_{i}$ can be seen from $Q$. $\\diamond$\n\nTake $n \\geq 2$, denote the sides $a_{1}, a_{2}, \\ldots, a_{2n+1}$ in that order, and suppose we have a coloring that satisfies the condition of the problem. Let's call the 3 colors red, green and blue. We must have 2 adjacent sides of different colors, say $a_{1}$ is red and $a_{2}$ is green. Then, by Lemma 1:\n\n(i) We cannot have a blue side among $a_{1}, a_{2}, \\ldots, a_{n+1}$.\n\n(ii) We cannot have a blue side among $a_{2}, a_{1}, a_{2n+1}, \\ldots, a_{n+3}$.\n\nWe are required to have at least one blue side, and according to (i) and (ii), that can only be $a_{n+2}$, so $a_{n+2}$ is blue.\n\nNow, applying Lemma 1 on the sequence of sides $a_{2}, a_{3}, \\ldots, a_{n+2}$ we get that $a_{2}, a_{3}, \\ldots, a_{n+1}$ are all green.\n\nApplying Lemma 1 on the sequence of sides $a_{1}, a_{2n+1}, a_{2n}, \\ldots, a_{n+2}$ we get that $a_{2n+1}, a_{2n}, \\ldots, a_{n+3}$ are all red.\n\nTherefore $a_{n+1}, a_{n+2}$ and $a_{n+3}$ are all of different colors, and for $n \\geq 2$ they can all be seen from the same point according to Lemma 1, so we have a contradiction.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34149, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nWe have two piles with $2000$ and $2017$ coins respectively. Ann and Bob take alternate turns making the following moves: The player whose turn is to move picks a pile with at least two coins, removes from that pile $t$ coins for some $2 \\leqslant t \\leqslant 4$, and adds to the other pile $1$ coin. The players can choose a different $t$ at each turn, and the player who cannot make a move loses. If Ann plays first determine which player has a winning strategy.", "options": [], "answer": "Bob has a winning strategy.", "solution": "Solution:\n\nDenote the number of coins in the two piles by $X$ and $Y$. We say that the pair $(X, Y)$ is losing if the player who begins the game loses and that the pair $(X, Y)$ is winning otherwise. We shall prove that $(X, Y)$ is losing if $X-Y \\equiv 0,1,7 \\pmod{8}$, and winning if $X-Y \\equiv 2,3,4,5,6 \\pmod{8}$.\n\nLemma 1. If we have a winning pair $(X, Y)$ then we can always play in such a way that the other player is then faced with a losing pair.\n\nProof of Lemma 1. Assume $X \\geq Y$ and write $X=Y+8k+\\ell$ for some non-negative integer $k$ and some $\\ell \\in\\{2,3,4,5,6\\}$. If $\\ell=2,3,4$ then we remove two coins from the first pile and add one coin to the second pile. If $\\ell=5,6$ then we remove four coins from the first pile and add one coin to the second pile. In each case we then obtain a losing pair.\n\nLemma 2. If we are faced with a losing distribution then either we cannot play, or, however we play, the other player is faced with a winning distribution.\n\nProof of Lemma 2. Without loss of generality we may assume that we remove $k$ coins from the first pile. The following table shows the new difference for all possible values of $k$ and all possible differences $X-Y$. So however we move, the other player will be faced with a winning distribution.\n\n| $k \\backslash X-Y$ | 0 | 1 | 7 |\n| :---: | :---: | :---: | :---: |\n| 2 | 5 | 6 | 4 |\n| 3 | 4 | 5 | 3 |\n| 4 | 3 | 4 | 2 |\n\nSince initially the coin difference is $1 \\bmod 8$, by Lemmas 1 and 2 Bob has a winning strategy: He can play so that he is always faced with a winning distribution while Ann is always faced with a losing distribution. So Bob cannot lose. On the other hand the game finishes after at most $4017$ moves, so Ann has to lose.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34150, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nGiven a parallelogram $ABCD$. The line perpendicular to $AC$ passing through $C$ and the line perpendicular to $BD$ passing through $A$ intersect at point $P$. The circle centered at point $P$ and radius $PC$ intersects the line $BC$ at point $X$ ($X \\neq C$) and the line $DC$ at point $Y$ ($Y \\neq C$). Prove that the line $AX$ passes through the point $Y$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nDenote the feet of the perpendiculars from $P$ to the lines $BC$ and $DC$ by $M$ and $N$ respectively and let $O = AC \\cap BD$. Since the points $O$, $M$ and $N$ are midpoints of $CA$, $CX$ and $CY$ respectively, it suffices to prove that $M$, $N$ and $O$ are collinear. According to Menelaus's theorem for $\\triangle BCD$ and points $M$, $N$ and $O$ we have to prove that\n\n![](attached_image_1.png)\n\n$$\n\\frac{BM}{MC} \\cdot \\frac{CN}{ND} \\cdot \\frac{DO}{OB} = 1\n$$\n\nSince $DO = OB$ the above simplifies to $\\frac{BM}{CM} = \\frac{DN}{CN}$. It follows from $BM = BC + CM$ and $DN = DC - CN = AB - CN$ that the last equality is equivalent to:\n$$\n\\frac{BC}{CM} + 2 = \\frac{AB}{CN}\n$$\nDenote by $S$ the foot of the perpendicular from $B$ to $AC$. Since $\\angle BCS = \\angle CPM = \\varphi$ and $\\angle BAC = \\angle ACD = \\angle CPN = \\psi$ we conclude that $\\triangle CBS \\sim \\triangle PCM$ and $\\triangle ABS \\sim \\triangle PCN$. Therefore\n$$\n\\frac{CM}{BS} = \\frac{CP}{BC} \\text{ and } \\frac{CN}{BS} = \\frac{CP}{AB}\n$$\nand thus,\n$$\nCM = \\frac{CP \\cdot BS}{BC} \\text{ and } CN = \\frac{CP \\cdot BS}{AB}\n$$\nNow equality (1) becomes $AB^2 - BC^2 = 2CP \\cdot BS$. It follows from\n$$\nAB^2 - BC^2 = AS^2 - CS^2 = (AS - CS)(AS + CS) = 2OS \\cdot AC\n$$\nthat\n$$\nDC^2 - BC^2 = 2CP \\cdot BS \\Longleftrightarrow 2OS \\cdot AC = 2CP \\cdot BS \\Longleftrightarrow OS \\cdot AC = CP \\cdot BS.\n$$\nSince $\\angle ACP = \\angle BSO = 90^\\circ$ and $\\angle CAP = \\angle SBO$ we conclude that $\\triangle ACP \\sim \\triangle BSO$. This implies $OS \\cdot AC = CP \\cdot BS$, which completes the proof.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34151, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $ABC$ be an acute triangle such that $AB$ is the shortest side of the triangle. Let $D$ be the midpoint of the side $AB$ and $P$ be an interior point of the triangle such that\n$$\n\\Varangle CAP=\\Varangle CBP=\\Varangle ACB\n$$\nDenote by $M$ and $N$ the feet of the perpendiculars from $P$ to $BC$ and $AC$, respectively. Let $p$ be the line through $M$ parallel to $AC$ and $q$ be the line through $N$ parallel to $BC$. If $p$ and $q$ intersect at $K$ prove that $D$ is the circumcenter of triangle $MNK$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nIf $\\gamma=\\Varangle ACB$ then $\\Varangle CAP=\\Varangle CBP=\\Varangle ACB=\\gamma$. Let $E=KN \\cap AP$ and $F=KM \\cap BP$. We show that points $E$ and $F$ are midpoints of $AP$ and $BP$, respectively.\n\n![](attached_image_1.png)\n\nIndeed, consider the triangle $AEN$. Since $KN \\parallel BC$, we have $\\Varangle ENA=\\Varangle BCA=\\gamma$. Moreover $\\Varangle EAN=\\gamma$ giving that triangle $AEN$ is isosceles, i.e. $AE=EN$. Next, consider the triangle $ENP$. Since $\\Varangle ENA=\\gamma$ we find that\n$$\n\\Varangle PNE=90^\\circ-\\Varangle ENA=90^\\circ-\\gamma\n$$\nNow $\\Varangle EPN=90^\\circ-\\gamma$ implies that the triangle $ENP$ is isosceles triangle, i.e. $EN=EP$.\nSince $AE=EN=EP$ point $E$ is the midpoint of $AP$ and analogously, $F$ is the midpoint of $BP$. Moreover, $D$ is also midpoint of $AB$ and we conclude that $DFPE$ is parallelogram.\nIt follows from $DE \\parallel AP$ and $KE \\parallel BC$ that $\\Varangle DEK=\\Varangle CBP=\\gamma$ and analogously $\\Varangle DFK=\\gamma$.\nWe conclude that $\\triangle EDN \\cong \\triangle FMD$ ($ED=FP=FM$, $EN=EP=FD$ and $\\Varangle DEN=\\Varangle MFD=180^\\circ-\\gamma$) and thus $ND=MD$. Therefore $D$ is a point on the perpendicular bisector of $MN$. Further,\n$$\n\\begin{aligned}\n\\Varangle FDE & =\\Varangle FPE=360^\\circ-\\Varangle BPM-\\Varangle MPN-\\Varangle NPA= \\\\\n& =360^\\circ-\\left(90^\\circ-\\gamma\\right)-\\left(180^\\circ-\\gamma\\right)-\\left(90^\\circ-\\gamma\\right)=3\\gamma\n\\end{aligned}\n$$\nIt follows that\n$$\n\\begin{aligned}\n\\Varangle MDN & =\\Varangle FDE-\\Varangle FDM-\\Varangle EDN=\\Varangle FDE-\\Varangle END-\\Varangle EDN= \\\\\n& =\\Varangle FDE-(\\Varangle END+\\Varangle EDN)=3\\gamma-\\gamma=2\\gamma .\n\\end{aligned}\n$$\nFinally, $KMCN$ is parallelogram, i.e. $\\Varangle MKN=\\Varangle MCN=\\gamma$. Therefore $D$ is a point on the perpendicular bisector of $MN$ and $\\Varangle MDN=2\\Varangle MKN$, so $D$ is the circumcenter of $\\triangle MNK$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34152, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all pairs of positive integers $(x, y)$ such that $2^{x} + 3^{y}$ is a perfect square.", "options": [], "answer": "(4, 2)", "solution": "Solution:\nIn order for the expression $2^{x} + 3^{y}$ to be a perfect square, a positive integer $t$ such that $2^{x} + 3^{y} = t^{2}$ should exist.\n\nCase 1. If $x$ is even, then there exists a positive integer $z$ such that $x = 2z$. Then\n$$\n(t - 2^{z})(t + 2^{z}) = 3^{y}\n$$\nSince $t + 2^{z} - (t - 2^{z}) = 2^{z+1}$, which implies $\\gcd(t - 2^{z}, t + 2^{z}) \\mid 2^{z+1}$, it follows that $\\gcd(t - 2^{z}, t + 2^{z}) = 1$, hence $t - 2^{z} = 1$ and $t + 2^{z} = 3^{y}$, so we have $2^{z+1} + 1 = 3^{y}$.\nFor $z = 1$ we have $5 = 3^{y}$ which clearly has no solution. For $z \\geq 2$ we have (modulo 4) that $y$ is even. Let $y = 2k$. Then $2^{z+1} = (3^{k} - 1)(3^{k} + 1)$ which is possible only when $3^{k} - 1 = 2$, i.e. $k = 1, y = 2$, which implies that $t = 5$. So the pair $(4, 2)$ is a solution to our problem.\n\nCase 2. If $y$ is even, then there exists a positive integer $w$ such that $y = 2w$, and\n$$\n(t - 3^{w})(t + 3^{w}) = 2^{x}\n$$\nSince $t + 3^{w} - (t - 3^{w}) = 2 \\cdot 3^{w}$, we have $\\gcd(t - 3^{w}, t + 3^{w}) \\mid 2 \\cdot 3^{w}$, which means that $\\gcd(t - 3^{w}, t + 3^{w}) = 2$. Hence $t - 3^{w} = 2$ and $t + 3^{w} = 2^{x-1}$. So we have\n$$\n2 \\cdot 3^{w} + 2 = 2^{x-1} \\Rightarrow 3^{w} + 1 = 2^{x-2}\n$$\nHere we see modulo 3 that $x - 2$ is even. Let $x - 2 = 2m$, then $3^{w} = (2^{m} - 1)(2^{m} + 1)$, whence $m = 1$ since $\\gcd(2^{m} - 1, 2^{m} + 1) = 1$. So we arrive again to the solution $(4, 2)$.\n\nCase 3. Let $x$ and $y$ be odd. For $x \\geq 3$ we have $2^{x} + 3^{y} \\equiv 3 \\pmod{4}$ while $t^{2} \\equiv 0, 1 \\pmod{4}$, a contradiction. For $x = 1$ we have $2 + 3^{y} = t^{2}$. For $y \\geq 2$ we have $2 + 3^{y} \\equiv 2 \\pmod{9}$ while $t^{2} \\equiv 0, 1, 4, 7 \\pmod{9}$. For $y = 1$ we have $5 = 2 + 3 = t^{2}$, clearly this doesn't have solution.\n\nNote. The proposer's solution used Zsigmondy's theorem in the final steps of cases 1 and 2.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34153, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nSolve in nonnegative integers the equation $5^{t} + 3^{x} 4^{y} = z^{2}$.", "options": [], "answer": "(t, x, y, z) = (1, 0, 1, 3), (0, 1, 0, 2), (2, 2, 2, 13), (0, 1, 2, 7)", "solution": "Solution:\nIf $x=0$ we have\n$$\nz^{2} - 2^{2y} = 5^{t} \\Longleftrightarrow (z + 2^{y})(z - 2^{y}) = 5^{t}\n$$\nPutting $z + 2^{y} = 5^{a}$ and $z - 2^{y} = 5^{b}$ with $a + b = t$ we get $5^{a} - 5^{b} = 2^{y+1}$. This gives us $b = 0$ and now we have $5^{t} - 1 = 2^{y+1}$. If $y \\geq 2$ then consideration by modulo 8 gives $2 \\mid t$. Putting $t = 2s$ we get $(5^{s} - 1)(5^{s} + 1) = 2^{y+1}$. This means $5^{s} - 1 = 2^{c}$ and $5^{s} + 1 = 2^{d}$ with $c + d = y + 1$. Subtracting we get $2 = 2^{d} - 2^{c}$. Then we have $c = 1, d = 2$, but the equation $5^{s} - 1 = 2$ has no solutions over nonnegative integers. Therefore so $y \\geq 2$ in this case gives us no solutions. If $y = 0$ we get again $5^{t} - 1 = 2$ which again has no solutions in nonnegative integers. If $y = 1$ we get $t = 1$ and $z = 3$ which gives us the solution $(t, x, y, z) = (1, 0, 1, 3)$.\n\nNow if $x \\geq 1$ then by modulo 3 we have $2 \\mid t$. Putting $t = 2s$ we get\n$$\n3^{x} 4^{y} = z^{2} - 5^{2s} \\Longleftrightarrow 3^{x} 4^{y} = (z + 5^{s})(z - 5^{s})\n$$\nNow we have $z + 5^{s} = 3^{m} 2^{k}$ and $z - 5^{s} = 3^{n} 2^{l}$, with $k + l = 2y$ and $m + n = x \\geq 1$. Subtracting we get\n$$\n2 \\cdot 5^{s} = 3^{m} 2^{k} - 3^{n} 2^{l}\n$$\nHere we get that $\\min\\{m, n\\} = 0$. We now have a couple of cases.\n\nCase 1. $k = l = 0$. Now we have $n = 0$ and we get the equation $2 \\cdot 5^{s} = 3^{m} - 1$. From modulo 4 we get that $m$ is odd. If $s \\geq 1$ we get modulo 5 that $4 \\mid m$, a contradiction. So $s = 0$ and we get $m = 1$. This gives us $t = 0, x = 1, y = 0, z = 2$.\n\nCase 2. $\\min\\{k, l\\} = 1$. Now we deal with two subcases:\n\nCase 2a. $l > k = 1$. We get $5^{s} = 3^{m} - 3^{n} 2^{l-1}$. Since $\\min\\{m, n\\} = 0$, we get that $n = 0$. Now the equation becomes $5^{s} = 3^{m} - 2^{l-1}$. Note that $l-1 = 2y - 2$ is even. By modulo 3 we get that $s$ is odd and this means $s \\geq 1$. Now by modulo 5 we get $3^{m} \\equiv 2^{2y-2} \\equiv 1, -1 \\pmod{5}$. Here we get that $m$ is even as well, so we write $m = 2q$. Now we get $5^{s} = (3^{q} - 2^{y-1})(3^{q} + 2^{y-1})$.\nTherefore $3^{q} - 2^{y-1} = 5^{v}$ and $3^{q} + 2^{y-1} = 5^{u}$ with $u + v = s$. Then $2^{y} = 5^{u} - 5^{v}$, whence $v = 0$ and we have $3^{q} - 2^{y-1} = 1$. Plugging in $y = 1, 2$ we get the solution $y = 2, q = 1$. This gives us $m = 2, s = 1, n = 0, x = 2, t = 2$ and therefore $z = 13$. Thus we have the solution $(t, x, y, z) = (2, 2, 2, 13)$. If $y \\geq 3$ we get modulo 4 that $q, q = 2r$. Then $(3^{r} - 1)(3^{r} + 1) = 2^{y-1}$. Putting $3^{r} - 1 = 2^{e}$ and $3^{r} + 1 = 2^{f}$ with $e + f = y - 1$ and subtracting these two and dividing by 2 we get $2^{f-1} - 2^{e-1} = 1$, whence $e = 1, f = 2$. Therefore $r = 1, q = 2, y = 4$. Now since $2^{4} = 5^{u} - 1$ does not have a solution, it follows that there are no more solutions in this case.\n\nCase 2b. $k > l = 1$. We now get $5^{s} = 3^{m} 2^{k-1} - 3^{n}$. By modulo 4 (which we can use since $0 < k-1 = 2y-2$) we get $3^{n} \\equiv -1 \\pmod{4}$ and therefore $n$ is odd. Now since $\\min\\{m, n\\} = 0$ we get that $m = 0, 0 + n = m + n = x \\geq 1$. The equation becomes $5^{s} = 2^{2y-2} - 3^{x}$. By modulo 3 we see that $s$ is even. We now put $s = 2g$ and obtain $(2^{y-1} - 5^{g})(5^{g} + 2^{y-1}) = 3^{x}$. Putting $2^{y-1} - 5^{g} = 3^{h}, 2^{y-1} + 5^{g} = 3^{i}$, where $i + h = x$, and subtracting the equations we get $3^{i} - 3^{h} = 2^{y}$. This gives us $h = 0$ and now we are solving the equation $3^{x} + 1 = 2^{y}$.\nThe solution $x = 0, y = 1$ gives $1 - 5^{g} = 1$ without solution. If $x \\geq 1$ then by modulo 3 we get that $y$ is even. Putting $y = 2y_{1}$ we obtain $3^{x} = (2^{y_{1}} - 1)(2^{y_{1}} + 1)$. Putting $2^{y_{1}} - 1 = 3^{x_{1}}$ and $2^{y_{1}} + 1 = 3^{x_{2}}$ and subtracting we get $3^{x_{2}} - 3^{x_{1}} = 2$. This equation gives us $x_{1} = 0, x_{2} = 1$. Then $y_{1} = 1, x = 1, y = 2$ is the only solution to $3^{x} + 1 = 2^{y}$ with $x \\geq 1$. Now from $2 - 5^{g} = 1$ we get $g = 0$. This gives us $t = 0$. Now this gives us the solution $1 + 3 \\cdot 16 = 49$ and $(t, x, y, z) = (0, 1, 2, 7)$.\n\nThis completes all the cases and thus the solutions are $(t, x, y, z) = (1, 0, 1, 3), (0, 1, 0, 2), (2, 2, 2, 13),$ and $(0, 1, 2, 7)$.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34154, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all positive integers $n$ such that there exists a prime number $p$, such that\n$$\np^{n}-(p-1)^{n}\n$$\nis a power of $3$.", "options": [], "answer": "n = 2", "solution": "Solution:\nSuppose that the positive integer $n$ is such that\n$$\np^{n}-(p-1)^{n}=3^{a}\n$$\nfor some prime $p$ and positive integer $a$.\n\nIf $p=2$, then $2^{n}-1=3^{a}$ by $(1)$, whence $(-1)^{n}-1 \\equiv 0\\pmod{3}$, so $n$ should be even. Setting $n=2s$ we obtain $\\left(2^{s}-1\\right)\\left(2^{s}+1\\right)=3^{a}$. It follows that $2^{s}-1$ and $2^{s}+1$ are both powers of $3$, but since they are both odd, they are co-prime, and we have $2^{s}-1=1$, i.e. $s=1$ and $n=2$.\n\nIf $p=3$, then (1) gives $3 \\mid 2^{n}$, which is impossible.\n\nLet $p \\geq 5$. Then it follows from (1) that we can not have $3 \\mid p-1$. This means that $2^{n}-1 \\equiv 0$ $(\\bmod 3)$, so $n$ should be even, and let $n=2k$. Then\n$$\np^{2k}-(p-1)^{2k}=3^{a} \\Longleftrightarrow \\left(p^{k}-(p-1)^{k}\\right)\\left(p^{k}+(p-1)^{k}\\right)=3^{a}\n$$\nIf $d=\\left(p^{k}-(p-1)^{k}, p^{k}+(p-1)^{k}\\right)$, then $d \\mid 2p^{k}$. However, both numbers are powers of $3$, so $d=1$ and $p^{k}-(p-1)^{k}=1$, $p^{k}+(p-1)^{k}=3^{a}$.\n\nIf $k=1$, then $n=2$ and we can take $p=5$. For $k \\geq 2$ we have $1=p^{k}-(p-1)^{k} \\geq p^{2}-(p-1)^{2}$ (this inequality is equivalent to $p^{2}\\left(p^{k-2}-1\\right) \\geq (p-1)^{2}\\left((p-1)^{k-2}-1\\right)$, which is obviously true). Then $1 \\geq p^{2}-(p-1)^{2}=2p-1 \\geq 9$, which is absurd.\n\nIt follows that the only solution is $n=2$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34155, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $n$ ($n \\geq 1$) be an integer. Consider the equation\n$$\n2 \\cdot \\left\\lfloor \\frac{1}{2x} \\right\\rfloor - n + 1 = (n+1)(1 - n x)\n$$\nwhere $x$ is the unknown real variable.\n\na. Solve the equation for $n=8$.\n\nb. Prove that there exists an integer $n$ for which the equation has at least 2021 solutions. (For any real number $y$ by $\\lfloor y \\rfloor$ we denote the largest integer $m$ such that $m \\leq y$.)", "options": [], "answer": "a) x = 5/36 and x = 1/9. b) For example, any integer n with n ≥ 2021^2 (equivalently, with square root of n plus one greater than 2021) yields at least 2021 solutions.", "solution": "Solution:\n\nLet $k = \\left\\lfloor \\frac{1}{2x} \\right\\rfloor$, $k \\in \\mathbb{Z}$.\n\na. For $n=8$, the equation becomes\n$$\nk = \\left\\lfloor \\frac{1}{2x} \\right\\rfloor = 8 - 36x \\Rightarrow x \\neq 0 \\text{ and } x = \\frac{8 - k}{36}\n$$\nSince $x \\neq 0$, we have $k \\neq 8$, and the last relation implies $k = \\left\\lfloor \\frac{1}{2x} \\right\\rfloor = \\left\\lfloor \\frac{18}{8 - k} \\right\\rfloor$. Checking signs, we see that $0 < k < 8$. By direct verification, we find the solutions $k = 3$ (hence $x = \\frac{5}{36}$) and $k = 4$ (hence $x = \\frac{1}{9}$).\n\nb. From the given equation we have $x \\neq 0$ and $x = \\frac{2(n - k)}{n(n+1)}$. Therefore, $k \\neq n$ and $k = \\left\\lfloor \\frac{1}{2x} \\right\\rfloor = \\left\\lfloor \\frac{n(n+1)}{4(n - k)} \\right\\rfloor$. Again, checking signs we see that $0 \\leq k < n$. The last equation implies\n$$\n\\begin{gathered}\nk \\leq \\frac{n(n+1)}{4(n-k)} < k+1 \\Rightarrow \\left\\{\\begin{array}{l}\n(2k - n)^2 + n \\geq 0 \\\\\n(2k + 1 - n)^2 < n+1\n\\end{array} \\Rightarrow \\right. \\\\\n\\quad \\Rightarrow \\frac{n-1-\\sqrt{n+1}}{2} < k < \\frac{n-1+\\sqrt{n+1}}{2}\n\\end{gathered}\n$$\nConversely, if $k \\in \\mathbb{Z}$ satisfies (2) and $0 < k < n$, then $x = \\frac{2(n - k)}{n(n+1)}$ is a solution to the given equation. It remains to note that choosing $n$ such that $\\sqrt{n+1} > 2021$ ensures that there exist at least 2021 integer values of $k$ which satisfy (2).", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34156, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFor any set $A=\\{x_{1}, x_{2}, x_{3}, x_{4}, x_{5}\\}$ of five distinct positive integers denote by $S_{A}$ the sum of its elements, and denote by $T_{A}$ the number of triples $(i, j, k)$ with $1 \\leqslant ix_{4}$ and $x_{3}>x_{2}$. Analogously we can show that any triple of form $(x, y, 5)$ where $y>2$ isn't good.\n\nBy above, the number of good triples can be at most $5$ and only triples $(1,2,5),(2,3,4)$, $(1,3,4),(1,2,4),(1,2,3)$ can be good. But if triples $(1,2,5)$ and $(2,3,4)$ are simultaneously good we have that:\n$$\nx_{1}+x_{2}+x_{5} \\mid x_{3}+x_{4} \\Rightarrow x_{5}10$. Determine the largest possible number of elements of $M$.", "options": [], "answer": "1006", "solution": "Solution:\nThe set $M=\\{1016,1017, \\ldots, 2021\\}$ has 1006 elements and satisfies the required property, since $a, b, c \\in M$ implies that $a+b-c \\geqslant 1016+1016-2021=11$.\n\nWe will show that this is optimal.\n\nSuppose $M$ satisfies the condition in the problem. Let $k$ be the minimal element of $M$. Then $k=|k+k-k|>10 \\Rightarrow k \\geqslant 11$. Note also that for every $m$, the integers $m, m+k-10$ cannot both belong to $M$, since $k+m-(m+k-10)=10$.\n\nClaim 1: $M$ contains at most $k-10$ out of any $2k-20$ consecutive integers.\n\nProof: We can partition the set $\\{m, m+1, \\ldots, m+2k-21\\}$ into $k-10$ pairs as follows:\n$$\n\\{m, m+k-10\\},\\{m+1, m+k-9\\}, \\ldots,\\{m+k-11, m+2k-21\\}\n$$\nIt remains to note that $M$ can contain at most one element of each pair.\n\nClaim 2: $M$ contains at most $[(t+k-10)/2]$ out of any $t$ consecutive integers.\n\nProof: Write $t=q(2k-20)+r$ with $r \\in \\{0,1,2, \\ldots, 2k-21\\}$. From the set of the first $q(2k-20)$ integers, by Claim 1 at most $q(k-10)$ can belong to $M$. Also by Claim 1, it follows that from the last $r$ integers, at most $\\min \\{r, k-10\\}$ can belong to $M$.\n\nThus,\n- If $r \\leqslant k-10$, then at most\n$$\nq(k-10)+r=\\frac{t+r}{2} \\leqslant \\frac{t+k-10}{2} \\text{ integers belong to } M\n$$\n- If $r>k-10$, then at most\n$$\nq(k-10)+k-10=\\frac{t-r+2(k-10)}{2} \\leqslant \\frac{t+k-10}{2} \\text{ integers belong to } M\n$$\n\nBy Claim 2, the number of elements of $M$ amongst $k+1, k+2, \\ldots, 2021$ is at most\n$$\n\\left[\\frac{(2021-k)+(k-10)}{2}\\right]=1005\n$$\nSince amongst $\\{1,2, \\ldots, k\\}$ only $k$ belongs to $M$, we conclude that $M$ has at most 1006 elements as claimed.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34159, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nConsider triangle $A B C$ such that $A B \\leq A C$. Point $D$ on the arc $B C$ of the circumcircle of $A B C$ not containing point $A$ and point $E$ on side $B C$ are such that\n$$\n\\Varangle B A D=\\Varangle C A E<\\frac{1}{2} \\Varangle B A C .\n$$\nLet $S$ be the midpoint of segment $A D$. If $\\Varangle A D E=\\Varangle A B C-\\Varangle A C B$ prove that\n$$\n\\Varangle B S C=2 \\Varangle B A C\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nLet the tangent to the circumcircle of $\\triangle A B C$ at point $A$ intersect line $B C$ at $T$. Since $A B \\leq A C$ we get that $B$ lies between $T$ and $C$. Since $\\Varangle B A T=\\Varangle A C B$ and $\\Varangle A B T=\\Varangle 180^{\\circ}-\\Varangle A B C$ we get $\\Varangle E T A=\\Varangle B T A=\\Varangle A B C-\\Varangle A C B=\\Varangle A D E$ which gives that $A, E, D, T$ are concyclic. Since\n$$\n\\Varangle T D B+\\Varangle B C A=\\Varangle T D B+\\Varangle B D A=\\Varangle T D A=\\Varangle A E T=\\Varangle A C B+\\Varangle E A C\n$$\nthis means $\\Varangle T D B=\\Varangle E A C=\\Varangle D A B$ which means that $T D$ is tangent to the circumcircle of $\\triangle A B C$ at point $D$.\n\n![](attached_image_1.png)\n\nUsing similar triangles $T A B$ and $T C A$ we get\n$$\n\\frac{A B}{A C}=\\frac{T A}{T C}\n$$\nUsing similar triangles $T B D$ and $T D C$ we get\n$$\n\\frac{B D}{C D}=\\frac{T D}{T C}\n$$\nUsing the fact that $T A=T D$ with (1) and (2) we get\n$$\n\\frac{A B}{A C}=\\frac{B D}{C D}\n$$\nNow since $\\Varangle D A B=\\Varangle C A E$ and $\\Varangle B D A=\\Varangle E C A$ we get that the triangles $D A B$ and $C A E$ are similar. Analogously, we get that triangles $C A D$ and $E A B$ are similar. These similarities give us\n$$\n\\frac{D B}{C E}=\\frac{A B}{A E} \\quad \\text{ and } \\quad \\frac{C D}{E B}=\\frac{C A}{E A}\n$$\nwhich, when combined with (3) give us $B E=C E$ giving $E$ is the midpoint of side $B C$.\n\nUsing the fact that triangles $D A B$ and $C A E$ are similar with the fact that $E$ is the midpoint of $B C$ we get:\n$$\n\\frac{2 D S}{C A}=\\frac{D A}{C A}=\\frac{D B}{C E}=\\frac{D B}{\\frac{C B}{2}}=\\frac{2 D B}{C B}\n$$\nimplying that\n$$\n\\frac{D S}{D B}=\\frac{C A}{C B}\n$$\nSince $\\Varangle S D B=\\Varangle A D B=\\Varangle A C B$ we get from (4) that the triangles $S D B$ and $A C B$ are similar, giving us $\\Varangle B S D=\\Varangle B A C$. Analogously we get $\\triangle S D C$ and $\\triangle A B C$ are similar we get $\\Varangle C S D=\\Varangle C A B$. Combining the last two equalities we get\n$$\n2 \\Varangle B A C=\\Varangle B A C+\\Varangle C A B=\\Varangle C S D+\\Varangle B S D=\\Varangle C S B\n$$\nThis completes the proof.\n\n\nAlternative solution (PSC).\n\nLemma 1. A point $P$ is such that $\\Varangle P X Y=\\Varangle P Y Z$ and $\\Varangle P Z Y=\\Varangle P Y X$. If $R$ is the midpoint of $X Z$ then $\\Varangle X Y P=\\Varangle Z Y R$.\n\nProof. We consider the case when $P$ is inside the triangle $X Y Z$ (the other case is treated in similar way). Let $Q$ be the conjugate of $P$ in $\\triangle X Y Z$ and let $Y Q$ intersects $X Z$ at $S$.\n\n![](attached_image_2.png)\n\nThen $\\Varangle Q X Z=\\Varangle Q Y X$ and $\\Varangle Q Z X=\\Varangle Q Y Z$ and therefore $\\triangle S X Y \\sim \\triangle S Q X$ and $\\triangle S Z Y \\sim \\triangle S Q Z$. Thus $S X^{2}=S Q \\cdot S Y=S Z^{2}$ and we conclude that $S \\equiv R$. This completes the proof of the Lemma.\n\nFor $\\triangle D C A$ we have $\\Varangle C D E=\\Varangle E C A$ and $\\Varangle E A C=\\Varangle E C D$. By the Lemma 1 for $\\triangle D C A$ and point $E$ we have that $\\Varangle S C A=\\Varangle D C E$. Therefore\n$$\n\\Varangle D S C=\\Varangle S A C+\\Varangle S C A=\\Varangle S A C+\\Varangle D C E=\\Varangle S A C+\\Varangle B A D=\\Varangle B A C .\n$$\nBy analogy, Lemma 1 applied for $\\triangle B D A$ and point $E$ gives $\\Varangle B S D=\\Varangle B A C$. Thus, $\\Varangle B S C=2 \\Varangle B A C$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34160, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nA point $P$ lies in the interior of the triangle $A B C$. The lines $A P, B P$, and $C P$ intersect $B C, C A$, and $A B$ at points $D, E$, and $F$, respectively. Prove that if two of the quadrilaterals $A B D E, B C E F, C A F D, A E P F, B F P D$, and $C D P E$ are concyclic, then all six are concyclic.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nWe first prove the following lemma:\nLemma 1. Let $A B C D$ be a convex quadrilateral and let $A B \\cap C D=E$ and $B C \\cap D A=F$. Then the circumcircles of triangles $A B F, C D F, B C E$ and $D A E$ all pass through a common point $P$. This point lies on line $E F$ if and only if $A B C D$ is concyclic.\nProof. Let the circumcircles of $A B F$ and $B C F$ intersect at $P \\neq B$. We have\n$$\n\\begin{aligned}\n\\Varangle F P C & =\\Varangle F P B+\\Varangle B P C=\\Varangle B A D+\\Varangle B E C=\\Varangle E A D+\\Varangle A E D= \\\\\n& =180^{\\circ}-\\Varangle A D E=180^{\\circ}-\\Varangle F D C\n\\end{aligned}\n$$\nwhich gives us $F, P, C$ and $D$ are concyclic. Similarly we have\n$$\n\\begin{aligned}\n\\Varangle A P E & =\\Varangle A P B+\\Varangle B P E=\\Varangle A F B+\\Varangle B C D=\\Varangle D F C+\\Varangle F C D= \\\\\n& =180^{\\circ}-\\Varangle F D C=180^{\\circ}-\\Varangle A D E\n\\end{aligned}\n$$\nwhich gives us $E, P, A$ and $D$ are concyclic. Since $\\Varangle F P E=\\Varangle F P B+\\Varangle E P B=\\Varangle B A D+$ $\\Varangle B C D$ we get that $\\Varangle F P E=180^{\\circ}$ if and only if $\\Varangle B A D+\\Varangle B C D=180^{\\circ}$ which completes the lemma.\n\nWe now divide the problem into cases:\n\nCase 1: $A E P F$ and $B F E C$ are concyclic. Here we get that\n$$\n180^{\\circ}=\\Varangle A E P+\\Varangle A F P=360^{\\circ}-\\Varangle C E B-\\Varangle B F C=360^{\\circ}-2 \\Varangle C E B\n$$\nand here we get that $\\Varangle C E B=\\Varangle C F B=90^{\\circ}$, from here it follows that $P$ is the orthocenter of $\\triangle A B C$ and that gives us $\\Varangle A D B=\\Varangle A D C=90^{\\circ}$. Now the quadrilaterals $C E P D$ and $B D P F$ are concyclic because\n$$\n\\Varangle C E P=\\Varangle C D P=\\Varangle P D B=\\Varangle P F B=90^{\\circ} .\n$$\nQuadrilaterals $A C D F$ and $A B D E$ are concyclic because\n$$\n\\Varangle A E B=\\Varangle A D B=\\Varangle A D C=\\Varangle A F C=90^{\\circ}\n$$\n\nCase 2: $A E P F$ and $C E P D$ are concyclic. Now by lemma 1 applied to the quadrilateral $A E P F$ we get that the circumcircles of $C E P, C A F, B P F$ and $B E A$ intersect at a point on $B C$. Since $D \\in B C$ and $C E P D$ is concyclic we get that $D$ is the desired point and it follows that $B D P F, B A E D, C A F D$ are all concyclic and now we can finish same as Case 1 since $A E D B$ and $C E P D$ are concyclic.\n\nCase 3: $A E P F$ and $A E D B$ are concyclic. We apply lemma 1 as in Case 2 on the quadrilateral $A E P F$. From the lemma we get that $B D P F, C E P D$ and $C A F D$ are concyclic and we finish off the same as in Case 1.\n\nCase 4: $A C D F$ and $A B D E$ are concyclic. We apply lemma 1 on the quadrilateral $A E P F$ and get that the circumcircles of $A C F, E C P, P F B$ and $B A E$ intersect at one point. Since this point is $D$ (because $A C D F$ and $A B D E$ are concyclic) we get that $A E P F, C E P D$ and $B F P D$ are concyclic. We now finish off as in Case 1. These four cases prove the problem statement.\n\nRemark. A more natural approach is to solve each of the four cases by simple angle chasing.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34161, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nA permutation $\\sigma:\\{1,2, \\ldots, n\\} \\rightarrow\\{1,2, \\ldots, n\\}$ is called straight if and only if for each integer $k, 1 \\leq k \\leq n-1$ the following inequality is fulfilled\n$$\n|\\sigma(k)-\\sigma(k+1)| \\leq 2\n$$\nFind the smallest positive integer $n$ for which there exist at least 2003 straight permutations.", "options": [], "answer": "16", "solution": "Solution:\nThe main trick is to look where $n$ is positioned. In that idea let us denote by $x_{n}$ the number of all the straight permutations and by $a_{n}$ the number of straight permutations having $n$ on the first or on the last position, i.e. $\\sigma(1)=n$ or $\\sigma(n)=n$. Also let us denote by $b_{n}$ the difference $x_{n}-a_{n}$ and by $a_{n}^{\\prime}$ the number of permutations having $n$ on the first position, and by $a_{n}^{\\prime \\prime}$ the number of permutations having $n$ on the last position. From symmetry we have that $2 a_{n}^{\\prime}=2 a_{n}^{\\prime \\prime}=a_{n}^{\\prime}+a_{n}^{\\prime \\prime}=a_{n}$, for all $n$-s. Therefore finding a recurrence relationship for $\\left\\{a_{n}\\right\\}_{n}$ is equivalent with finding one for $\\left\\{a_{n}^{\\prime}\\right\\}_{n}$.\nOne can simply compute: $a_{2}^{\\prime}=1, a_{3}^{\\prime}=2, a_{4}^{\\prime}=4$. Suppose that $n \\geq 5$. We have two possibilities for the second position: if $\\sigma(2)=n-1$ then we must complete the remaining positions with $3,4, \\ldots, n$ thus the number of ways in which we can do that is $a_{n-1}^{\\prime}$ (because the permutation $\\sigma^{\\prime}:\\{1,2, \\ldots, n-1\\} \\rightarrow \\{1,2, \\ldots, n-1\\}, \\sigma^{\\prime}(k)=\\sigma(k+1)$, for all $k, 1 \\leq k \\leq n-1$, is also a straight permutation).\nIf on the second position we have $n-2, \\sigma(2)=n-2$, then $n-1$ can only be in the last position of the permutation or on the third position, i.e. $\\sigma(3)=n-1$ or $\\sigma(n)=n-1$. If $\\sigma(n)=n-1$, then we can only have $\\sigma(n-1)=n-3$ thus $\\sigma(3)=n-4$ and so on, thus there is only one permutation of this kind. On the other hand, if $\\sigma(3)=n-1$ then it follows that $\\sigma(4)=n-3$ and now we can complete the permutation in $a_{n-3}^{\\prime}$ ways (because the permutation $\\sigma^{\\prime}:\\{1,2, \\ldots, n-3\\} \\rightarrow\\{1,2, \\ldots, n-3\\}, \\sigma^{\\prime}(k)=\\sigma(k+3)$, for all $k$, $1 \\leq k \\leq n-3$, is also a straight permutation).\nSumming all up we get the recurrence:\n$$\na_{n}^{\\prime}=a_{n-1}^{\\prime}+1+a_{n-3}^{\\prime} \\Rightarrow a_{n}=a_{n-1}+a_{n-3}+2, \\forall n \\geq 5\n$$\nThe recurrence relationship for $\\left\\{b_{n}\\right\\}$ can be obtained by observing that for each straight permutation $\\tau:\\{1,2, \\ldots, n+1\\} \\rightarrow\\{1,2, \\ldots, n+1\\}$ for which $2 \\leq \\tau^{-1}(n+1) \\leq n$ we can obtain a straight permutation $\\sigma:\\{1,2, \\ldots, n\\} \\rightarrow\\{1,2, \\ldots, n\\}$ by removing $n+1$. Indeed $n+1$ is \"surrounded\" by $n$ and $n-1$, so by removing it, $n$ and $n-1$ become neighbors, and thus the newly formed permutation is indeed straight. Now, if $\\tau^{-1}(n) \\in\\{1, n+1\\}$ then the newly formed permutation $\\sigma$ was counted as one of the $a_{n}$-s, minus the two special cases in which $n$ and $n-1$ are on the first and last positions. If $\\tau^{-1}(n) \\notin\\{1, n+1\\}$ then certainly $\\sigma$ was counted with the $b_{n}$-s. Also, from any straight permutation of $n$ elements, not having $n$ and $n-1$ in the first and last position, thus $n$ certainly being neighbor with $n-1$, we can make a straight $n+1$-element permutation by inserting $n+1$ between $n$ and $n-1$.\nTherefore we have obtained the following relationship:\n$$\nb_{n+1}=a_{n}-2+b_{n}=x_{n}-2, \\forall n \\geq 4\n$$\nFrom (1) and (2) we get that\n$$\nx_{n}=x_{n-1}+a_{n-1}+a_{n-3}, \\forall n \\geq 5\n$$\nIt is obvious that $\\left\\{x_{n}\\right\\}_{n}$ is a \"fast\" increasing sequence, so we will compute the first terms using the relationships obtained above, which will prove that the number that we are looking for is $n=16$ :\n$$\n\\begin{aligned}\n& a_{2}=2 \\quad x_{2}=3 \\\\\n& a_{3}=4 \\quad x_{3}=6 \\\\\n& a_{4}=8 \\quad x_{4}=12 \\\\\n& a_{5}=12 \\quad x_{5}=22 \\\\\n& a_{6}=18 \\quad x_{6}=38 \\\\\n& a_{7}=28 \\quad x_{7}=64 \\\\\n& a_{8}=42 \\quad x_{8}=104 \\\\\n& a_{9}=62 \\quad x_{9}=164 \\\\\n& a_{10}=92 \\quad x_{10}=254 \\\\\n& a_{11}=136 \\quad x_{11}=388 \\\\\n& a_{12}=200 \\quad x_{12}=586 \\\\\n& a_{13}=294 \\quad x_{13}=878 \\\\\n& a_{14}=432 \\quad x_{14}=1308 \\\\\n& a_{15}=634 \\quad x_{15}=1940 \\\\\n& a_{16}=928 \\quad x_{16}=2882\n\\end{aligned}\n$$\nTherefore, the smallest positive integer $n$ for which there exist at least 2003 straight permutations is $n=16$.", "topic": "Discrete Mathematics", "subtopic": "Combinatorics" }, { "id": 34162, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nFind all prime numbers $a$, $b$ and $c$ for which the equality $$(a-2)! + 2b! = 22c - 1$$ holds.", "options": [], "answer": "a=2, b=5, c=11 and a=3, b=5, c=11", "solution": "", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34163, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nSolve the system\n$$\n\\begin{cases}\nx + y + z + t = 6, \\\\\n\\sqrt{1 - x^{2}} + \\sqrt{4 - y^{2}} + \\sqrt{9 - z^{2}} + \\sqrt{16 - t^{2}} = 8.\n\\end{cases}\n$$", "options": [], "answer": "x = 3/5, y = 6/5, z = 9/5, t = 12/5", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34164, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn the scalene triangle $ABC$ the points $A_1$ and $B_1$ are the bisector feet, drawn from the vertices $A$ and $B$ respectively. The straight line $A_1B_1$ intersects the line $AB$ at the point $D$. Prove that one of the angles $\\angle ACD$ or $\\angle BCD$ is obtuse and $m(\\angle ACD) + m(\\angle BCD) = 180^\\circ$.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34165, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $a > 1$ be a non-integer number and $a \\neq \\sqrt[p]{q}$ for every positive integers $p \\geq 2$ and $q \\geq 1$, $k = [\\log_{a} n] \\geq 1$, where $[x]$ is the integral part of the real number $x$. Prove that for every positive integer $n \\geq 1$ the equality\n$$\n[\\log_{a} 2] + [\\log_{a} 3] + \\ldots + [\\log_{a} n] + [a] + [a^{2}] + \\ldots + [a^{k}] = n k\n$$\nholds.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34166, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nThe rational numbers $p$, $q$, $r$ satisfy the relation $p q + p r + q r = 1$. Prove that the number $(1 + p^{2})(1 + q^{2})(1 + r^{2})$ is a square of a rational number.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34167, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $n \\geq 1$ be a positive integer. For every $k = 1, 2, \\ldots, n$ the functions $f_k: \\mathbb{R} \\rightarrow \\mathbb{R}$, $f_k(x) = a_k x^2 + b_k x + c_k$ with $a_k \\neq 0$ are given. Find the greatest possible number of parts of the rectangular plane $xOy$ which can be obtained by the intersection of the graphs of the functions $f_k$ ($k = 1, 2, \\ldots, n$).", "options": [], "answer": "n^2 + 1", "solution": "", "topic": "Discrete Mathematics", "subtopic": "Other" }, { "id": 34168, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nThe circle with the center $O$ is tangent to the sides $[AB]$, $[BC]$, $[CD]$ and $[DA]$ of the convex quadrilateral $ABCD$ at the points $M$, $N$, $K$ and $L$ respectively. The straight lines $MN$ and $AC$ are parallel and the straight line $MK$ intersects the line $LN$ at the point $P$. Prove that the points $A$, $M$, $P$, $O$ and $L$ are concyclic.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34169, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all integers $n$ for which the number $\\log_{2n-1}(n^2+2)$ is rational.", "options": [], "answer": "5", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34170, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $a, b, c, d \\geq 1$ be arbitrary positive numbers. Prove that the equations system $a x - y z = c$, $b x - y t = -d$ has at least a solution $(x, y, z, t)$ in positive integers.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34171, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nThe sequences $\\left(a_{n}\\right)_{n \\geq 0}$ and $\\left(b_{n}\\right)_{n \\geq 0}$ satisfy the conditions $(1+\\sqrt{3})^{2 n+1}=a_{n}+b_{n} \\sqrt{3}$ and $a_{n}, b_{n} \\in \\mathbb{Z}$. Find the recurrent relation for each of the sequences $\\left(a_{n}\\right)$ and $\\left(b_{n}\\right)$.", "options": [], "answer": "Coupled first-order system: a_{n+1} = 4 a_n + 6 b_n, b_{n+1} = 2 a_n + 4 b_n, with a_0 = 1, b_0 = 1. Decoupled second-order recurrences: a_{n+2} = 8 a_{n+1} − 4 a_n with a_0 = 1, a_1 = 10; and b_{n+2} = 8 b_{n+1} − 4 b_n with b_0 = 1, b_1 = 6.", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34172, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nThe plane $\\alpha$ is tangent in the points $A_{1}$, $A_{2}$ and $A_{3}$ to three spheres with different radii $R_{1}$, $R_{2}$ and $R_{3}$ respectively, situated in the same halfspace two by two exteriorly. The plane $\\beta$ is parallel to the plane $\\alpha$ and intersects all three spheres so that the circles $D_{1}$, $D_{2}$ and $D_{3}$ are obtained. Find the distance between the planes $\\alpha$ and $\\beta$ so that the sum of the volumes $V_{1}$, $V_{2}$ and $V_{3}$ of the cones with the bases $D_{1}$, $D_{2}$, $D_{3}$ and the vertices $A_{1}$, $A_{2}$, $A_{3}$ respectively, will be the greatest.", "options": [], "answer": "min(R1, R2, R3)", "solution": "", "topic": "Geometry", "subtopic": "Solid Geometry" }, { "id": 34173, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nFor every positive integer $n \\geq 1$ we define the matrix $A_n = (a_{ij})_{1 \\leq i, j \\leq n}$, where $a_{ij} = \\max(i, j) / \\min(i, j)$, $1 \\leq i, j \\leq n$. Calculate the determinant of the matrix $A_n$.", "options": [], "answer": "det(A_n) = (-1)^{n-1} · ∏_{j=2}^{n} (2j−1)/(j−1)^2 = (-1)^{n-1} · (2n−1)!! / ((n−1)!)^2", "solution": "", "topic": "Algebra", "subtopic": "Linear Algebra" }, { "id": 34174, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nProve that\n$$\n\\lim_{n \\rightarrow +\\infty} \\frac{\\ln \\left(1 + 2e + 4e^{4} + 6e^{9} + \\ldots + 2n e^{n^{2}}\\right)}{n^{2}} = 1.\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\nLet $S_n = 1 + 2e + 4e^{4} + 6e^{9} + \\ldots + 2n e^{n^{2}} = \\sum_{k=1}^{n} 2k e^{k^{2}} + 1$.\n\nFor large $n$, the last term $2n e^{n^{2}}$ dominates the sum. We estimate $S_n$:\n\nFor $k = n$, $2n e^{n^{2}}$ is much larger than all previous terms, since $e^{k^{2}}$ grows very rapidly.\n\nLet us compare $S_n$ to $2n e^{n^{2}}$:\n\nFor $k < n$, $2k e^{k^{2}} \\leq 2n e^{(n-1)^{2}}$.\n\nSo,\n$$\nS_n < 2n e^{n^{2}} + n \\cdot 2n e^{(n-1)^{2}} = 2n e^{n^{2}} + 2n^{2} e^{n^{2} - 2n + 1}.\n$$\n\nBut $e^{n^{2} - 2n + 1} = e^{n^{2}} e^{-2n + 1}$, so $2n^{2} e^{n^{2} - 2n + 1} = 2n^{2} e^{n^{2}} e^{-2n + 1}$, which is negligible compared to $2n e^{n^{2}}$ as $n \\to \\infty$.\n\nTherefore, for large $n$,\n$$\nS_n \\sim 2n e^{n^{2}}.\n$$\n\nNow,\n$$\n\\ln S_n \\sim \\ln(2n e^{n^{2}}) = \\ln 2n + n^{2}.\n$$\n\nSo,\n$$\n\\frac{\\ln S_n}{n^{2}} \\sim \\frac{\\ln 2n}{n^{2}} + 1.\n$$\n\nAs $n \\to \\infty$, $\\frac{\\ln 2n}{n^{2}} \\to 0$.\n\nTherefore,\n$$\n\\lim_{n \\to \\infty} \\frac{\\ln S_n}{n^{2}} = 1.\n$$\n\nThus,\n$$\n\\boxed{1}\n$$\nis the required limit.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34175, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nFor every positive integer $n \\geq 2$ the affirmation $P_{n}^{\\prime}$: \"If the derivative $P^{\\prime}(X)$ of a polynomial $P(X)$ of degree $n$ with real coefficients has $n-1$ real distinct roots, then there exists a real constant $C$ such that the equation $P(x) = C$ has $n$ real distinct solutions\" is considered. Prove that $P_{4}$ is true. Is the affirmation $P_{5}$ true? Prove the answer.", "options": [], "answer": "P4 is true; P5 is false.", "solution": "", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34176, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn the circle with radius $R$ the distinct chords $[AB]$ and $[CD]$ are concurrent and form an acute angle with measure $\\alpha$. Prove that $AB + CD > 2R \\sin \\alpha$.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34177, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nThe real numbers $\\alpha, \\beta, \\gamma$ satisfy the relations $\\sin \\alpha+\\sin \\beta+\\sin \\gamma=0$ and $\\cos \\alpha+\\cos \\beta+\\cos \\gamma=0$. Find all positive integers $n \\geq 0$ for which $\\sin (n \\alpha+\\pi / 4)+\\sin (n \\beta+\\pi / 4)+\\sin (n \\gamma+\\pi / 4)=0$.", "options": [], "answer": "All n ≥ 0 with n not divisible by 3 (i.e., n ≡ 1 or 2 mod 3).", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34178, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nFor every positive integer $n \\geq 1$ we define the polynomial $P(X) = X^{2n} - X^{2n-1} + \\ldots - X + 1$. Find the remainder of the division of the polynomial $P\\left(X^{2n+1}\\right)$ by the polynomial $P(X)$.", "options": [], "answer": "2n+1", "solution": "", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 34179, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nFie $n \\in \\mathbb{N}$. Find all the primitives of the function\n$$\nf: \\mathbb{R} \\rightarrow \\mathbb{R}, \\quad f(x)=\\frac{x^{3}-9 x^{2}+29 x-33}{\\left(x^{2}-6 x+10\\right)^{n}}\n$$\n\nProblem:\n\nLet $n \\in \\mathbb{N}$. Find all the primitives of the function\n$$\nf: \\mathbb{R} \\rightarrow \\mathbb{R}, \\quad f(x)=\\frac{x^{3}-9 x^{2}+29 x-33}{\\left(x^{2}-6 x+10\\right)^{n}}\n$$", "options": [], "answer": "Let t = x^2 - 6x + 10.\nFor n ≠ 1, 2:\nF(x) = (1/2) [ t^(2 - n) / (2 - n) + t^(1 - n) / (1 - n) ] + C.\nFor n = 1:\nF(x) = (1/2) t + (1/2) ln t + C.\nFor n = 2:\nF(x) = (1/2) ln t - 1 / (2 t) + C.", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34180, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn a rectangular system $xOy$ the graph of the function $f: \\mathbb{R} \rightarrow \\mathbb{R}$, $f(x) = x^{2}$ is drawn. The ordered triple $B, A, C$ has distinct points on the parabola, the point $D \\in BC$ such that the straight line $AD$ is parallel to the axis $Oy$ and the triangles $BAD$ and $CAD$ have the areas $s_{1}$ and $s_{2}$ respectively. Find the length of the segment $[AD]$.", "options": [], "answer": "(4 s1 s2)^{1/3}", "solution": "", "topic": "Discrete Mathematics", "subtopic": "Other" }, { "id": 34181, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $\\left(F_{n}\\right)_{n \\in \\mathbb{N}^{*}}$ be the Fibonacci sequence so that: $F_{1}=1$, $F_{2}=1$, $F_{n+1}=F_{n}+F_{n-1}$ for every positive integer $n \\geq 2$. Show that $F_{n}<3^{n / 2}$ and calculate the limit\n$$\n\\lim_{n \\rightarrow \\infty}\\left(\\frac{F_{1}}{2}+\\frac{F_{2}}{2^{2}}+\\ldots+\\frac{F_{n}}{2^{n}}\\right).\n$$", "options": [], "answer": "2", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34182, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\n2003 denars were divided in several bags and the bags were placed in several pockets. The number of bags is greater than the number of denars in each pocket. Is it true that the number of pockets is greater than the number of denars in one of the bags?", "options": [], "answer": "Yes", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34183, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn the triangle $ABC$, $R$ and $r$ are the radii of the circumcircle and the incircle, respectively; $a$ is the longest side and $h$ is the shortest altitude. Prove that $R / r > a / h$.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34184, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nProve that for all positive numbers $x, y, z$ such that $x + y + z = 1$ the following inequality holds\n$$\n\\frac{x^{2}}{1 + y} + \\frac{y^{2}}{1 + z} + \\frac{z^{2}}{1 + x} \\leq 1\n$$", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34185, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIs it possible to cover a $2003 \\times 2003$ board with $1 \\times 2$ dominoes placed horizontally and $1 \\times 3$ threeminoes placed vertically?", "options": [], "answer": "No", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34186, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $m > n$ be positive integers. For every positive integer $k$ we define the number $a_k = (\\sqrt{5} + 2)^k + (\\sqrt{5} - 2)^k$. Show that $a_{m+n} + a_{m-n} = a_m \\cdot a_n$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nLet $A = \\sqrt{5} + 2$ and $B = \\sqrt{5} - 2$. Then $a_k = A^k + B^k$.\n\nNote that $A \\cdot B = (\\sqrt{5} + 2)(\\sqrt{5} - 2) = (\\sqrt{5})^2 - 2^2 = 5 - 4 = 1$.\n\nAlso, $A + B = (\\sqrt{5} + 2) + (\\sqrt{5} - 2) = 2\\sqrt{5}$.\n\nWe want to show that $a_{m+n} + a_{m-n} = a_m a_n$.\n\nCompute $a_m a_n$:\n\n$$\na_m a_n = (A^m + B^m)(A^n + B^n) = A^{m+n} + A^m B^n + B^m A^n + B^{m+n}\n$$\n\nBut $A^m B^n + B^m A^n = A^m B^n + A^n B^m = A^n B^m + A^m B^n$ (since $A$ and $B$ are real numbers).\n\nRecall that $A B = 1$, so $B^m = (A B)^m / A^m = A^m / A^m = 1 / A^m$ only if $A B = 1$, but more generally, $B^m = (A B)^m / A^m = 1 / A^m$.\n\nBut let's use the following identity:\n\n$A^m B^n + A^n B^m = (A B)^n A^{m-n} + (A B)^m B^{n-m}$\n\nBut since $A B = 1$, $(A B)^n = 1$, so $A^m B^n = A^{m-n}$, and $A^n B^m = B^{m-n}$.\n\nTherefore,\n\n$$\na_m a_n = A^{m+n} + B^{m+n} + A^{m-n} + B^{m-n} = a_{m+n} + a_{m-n}\n$$\n\nThus, $a_{m+n} + a_{m-n} = a_m a_n$, as required.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34187, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nFind all five-digit numbers $\\overline{abcde}$, written in decimal system, if it is known that $\\overline{ab}cde - \\overline{ebcda} = 69993$, $\\overline{bcd} - \\overline{dcb} = 792$, $\\overline{bc} - \\overline{cb} = 72$.", "options": [], "answer": "78000, 88001, 98002, 79110, 89111, 99112", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34188, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn the triangle $ABC$ with semiperimeter $p$, the points $M$, $N$, and $P$ lie on the sides $BC$, $CA$, and $AB$ respectively. Show that\n$$\np < AM + BN + CP < 3p.\n$$", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34189, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $a$ and $b$ be positive integers such that $a + b \\leq 10$. Find all pairs $(a, b)$ such that the fraction $(2n + a)/(5n + b)$ is irreducible for every natural number $n$.", "options": [], "answer": "[(1,2), (1,3), (3,7)]", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34190, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nA given rectangular table has at least one column and at least one line. It is fully completed by the first positive integers, written consecutively from left to right and beginning with the first line. It is known that the number $170$ is written on the middle line, and in the same column with him on the last line is written the number $329$. How many numbers are written in the given table?", "options": [], "answer": "371 or 477", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34191, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nProve that for every positive integer $n$ the number $a = (2n+1)^5 - 2n - 1$ is divisible by $240$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nLet $a = (2n+1)^5 - 2n - 1$.\n\nFirst, expand $(2n+1)^5$ using the binomial theorem:\n\n$$(2n+1)^5 = \\sum_{k=0}^5 \\binom{5}{k} (2n)^k (1)^{5-k} = 1 + 5 \\cdot 2n + 10 \\cdot (2n)^2 + 10 \\cdot (2n)^3 + 5 \\cdot (2n)^4 + (2n)^5$$\n\nCalculate each term:\n\n$1$\n\n$5 \\cdot 2n = 10n$\n\n$10 \\cdot (2n)^2 = 10 \\cdot 4n^2 = 40n^2$\n\n$10 \\cdot (2n)^3 = 10 \\cdot 8n^3 = 80n^3$\n\n$5 \\cdot (2n)^4 = 5 \\cdot 16n^4 = 80n^4$\n\n$(2n)^5 = 32n^5$\n\nSo,\n$$(2n+1)^5 = 1 + 10n + 40n^2 + 80n^3 + 80n^4 + 32n^5$$\n\nTherefore,\n$$a = (2n+1)^5 - 2n - 1 = [1 + 10n + 40n^2 + 80n^3 + 80n^4 + 32n^5] - 2n - 1$$\n\n$1 - 1 = 0$, $10n - 2n = 8n$\n\nSo,\n$$a = 8n + 40n^2 + 80n^3 + 80n^4 + 32n^5$$\n\nFactor $8n$:\n$$a = 8n(1 + 5n + 10n^2 + 10n^3 + 4n^4)$$\n\nNow, $240 = 2^4 \\cdot 3 \\cdot 5$.\n\nWe will show that $a$ is divisible by $16$, $3$, and $5$ for all positive integers $n$.\n\n**Divisibility by $16$:**\n\nSince $a = 8n(1 + 5n + 10n^2 + 10n^3 + 4n^4)$, $8n$ is always divisible by $8$. We need to check divisibility by $2$ more (to get $16$).\n\nConsider $n$ even: $n = 2k$, then $8n$ is divisible by $16$.\n\nIf $n$ is odd: $n = 2k+1$, $8n$ is still divisible by $8$, but is it divisible by $16$?\n\nBut $1 + 5n + 10n^2 + 10n^3 + 4n^4$ is always even for integer $n$ (since $n$ odd, $n^2$ odd, $n^3$ odd, $n^4$ odd, so sum is odd + odd + even + even + even = odd, but times $8n$ which is even, so the product is divisible by $16$ for all $n$).\n\nAlternatively, check $a$ modulo $16$:\n\n$(2n+1)^5 \\equiv (2n+1)^5 \\pmod{16}$\n\nBut $2n+1$ is odd, so $2n+1 \\equiv 1, 3, 5, 7, 9, 11, 13, 15 \\pmod{16}$.\n\nCompute $(2n+1)^5$ modulo $16$ for all odd residues:\n\nBut $x^5 \\equiv x \\pmod{16}$ for odd $x$ (since $x^4 \\equiv 1 \\pmod{16}$ for odd $x$), so $(2n+1)^5 \\equiv 2n+1 \\pmod{16}$.\n\nTherefore,\n$$a = (2n+1)^5 - 2n - 1 \\equiv (2n+1) - 2n - 1 = 0 \\pmod{16}$$\n\nSo $a$ is divisible by $16$.\n\n**Divisibility by $3$:**\n\nCompute $a \\pmod{3}$:\n\n$2n+1$ modulo $3$ can be $1$, $2$, or $0$.\n\nCase 1: $2n+1 \\equiv 0 \\pmod{3}$, i.e., $2n \\equiv -1 \\pmod{3}$, $n \\equiv 1 \\pmod{3}$.\n\nThen $a = 0^5 - 2n - 1 \\equiv 0 - 2n - 1 \\pmod{3}$\nBut $n \\equiv 1$, so $a \\equiv 0 - 2 \\cdot 1 - 1 = -2 - 1 = -3 \\equiv 0 \\pmod{3}$\n\nCase 2: $2n+1 \\equiv 1 \\pmod{3}$, $2n \\equiv 0 \\pmod{3}$, $n \\equiv 0 \\pmod{3}$\nThen $a = 1^5 - 2n - 1 = 1 - 2n - 1 = -2n$\nBut $n \\equiv 0$, so $a \\equiv 0 \\pmod{3}$\n\nCase 3: $2n+1 \\equiv 2 \\pmod{3}$, $2n \\equiv 1 \\pmod{3}$, $n \\equiv 2 \\pmod{3}$\nThen $a = 2^5 - 2n - 1 = 32 - 2n - 1 = 31 - 2n$\nBut $n \\equiv 2$, so $2n \\equiv 4 \\equiv 1 \\pmod{3}$\nSo $a \\equiv 31 - 1 = 30 \\equiv 0 \\pmod{3}$\n\nTherefore, $a$ is divisible by $3$ for all $n$.\n\n**Divisibility by $5$:**\n\nCompute $a \\pmod{5}$:\n\n$2n+1$ modulo $5$ can be $1, 2, 3, 4, 0$.\n\nCase 1: $2n+1 \\equiv 0 \\pmod{5}$, $2n \\equiv -1 \\pmod{5}$, $n \\equiv 2 \\pmod{5}$\nThen $a = 0^5 - 2n - 1 = 0 - 2n - 1$\nBut $n \\equiv 2$, so $2n \\equiv 4$, $a \\equiv 0 - 4 - 1 = -5 \\equiv 0 \\pmod{5}$\n\nCase 2: $2n+1 \\equiv 1 \\pmod{5}$, $2n \\equiv 0$, $n \\equiv 0$\n$a = 1^5 - 2n - 1 = 1 - 0 - 1 = 0$\n\nCase 3: $2n+1 \\equiv 2$, $2n \\equiv 1$, $n \\equiv 3$\n$a = 2^5 - 2n - 1 = 32 - 2n - 1 = 31 - 2n$\n$n \\equiv 3$, $2n \\equiv 6 \\equiv 1$, $a \\equiv 31 - 1 = 30 \\equiv 0 \\pmod{5}$\n\nCase 4: $2n+1 \\equiv 3$, $2n \\equiv 2$, $n \\equiv 1$\n$a = 3^5 - 2n - 1 = 243 - 2n - 1 = 242 - 2n$\n$n \\equiv 1$, $2n \\equiv 2$, $a \\equiv 242 - 2 = 240 \\equiv 0 \\pmod{5}$\n\nCase 5: $2n+1 \\equiv 4$, $2n \\equiv 3$, $n \\equiv 4$\n$a = 4^5 - 2n - 1 = 1024 - 2n - 1 = 1023 - 2n$\n$n \\equiv 4$, $2n \\equiv 8 \\equiv 3$, $a \\equiv 1023 - 3 = 1020 \\equiv 0 \\pmod{5}$\n\nTherefore, $a$ is divisible by $5$ for all $n$.\n\n**Conclusion:**\n\n$a$ is divisible by $16$, $3$, and $5$, so $a$ is divisible by $\\operatorname{lcm}(16,3,5) = 240$ for all positive integers $n$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34192, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn the square $ABCD$ the point $N$ is the middle point of the side $[AB]$ and the point $M$ lies on the diagonal $(AC)$ so that $AC = 4CM$. Prove that the angle $DMN$ is right.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34193, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nThe real numbers $x_{1}, x_{2}, \\ldots, x_{2003}$ satisfy the relations $x_{1} / 1 = x_{2} / 2 = x_{3} / 3 = \\ldots = x_{2003} / 2003$ and\n$$\n\\sqrt{1^{2} + 2^{2} + \\ldots + 2003^{2}} + \\sqrt{x_{1}^{2} + x_{2}^{2} + \\ldots + x_{2003}^{2}} = \\sqrt{(1 + x_{1})^{2} + (2 + x_{2})^{2} + \\ldots + (2003 + x_{2003})^{2}}.\n$$\nProve that $x_{i} \\geq 0$ for every $i = 1, 2, \\ldots, 2003$.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34194, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nCalculate the sum\n$$\n\\frac{2^{4}+2^{2}+1}{2^{7}-2}+\\frac{3^{4}+3^{2}+1}{3^{7}-3}+\\ldots+\\frac{2003^{4}+2003^{2}+1}{2003^{7}-2003}+\\frac{1}{2 \\cdot 2003 \\cdot 2004}\n$$", "options": [], "answer": "1/4", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34195, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $[AB]$ be a segment and $\\sigma$ be one of the halfplanes determined by the straight line $AB$. The segments $[AP]$ and $[BQ]$ with integer lengths are situated in $\\sigma$ and are perpendicular to the straight line $AB$. The intersection point $M$ of the straight lines $AQ$ and $BP$ is distanced at 8 units to the straight line $AB$. Find the lengths of the segments $[AP]$ and $[BQ]$, if it is known that the triangle $BQM$ has a greatest area.", "options": [], "answer": "AP = 9, BQ = 72", "solution": "", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34196, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $ABC$ be an acute-angled triangle such that $m(\\angle ACB) \\neq 45^\\circ$. The points $M$ and $N$ are the feet of the altitudes, drawn from the vertices $A$ and $B$ respectively. The points $P$ and $Q$ lie on the half-straight lines $MA$ and $NB$ respectively so that $MP = MB$ and $NQ = NA$. Prove that the straight lines $PQ$ and $MN$ are parallel.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34197, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nThe equation $x^{13} - x^{11} + x^{9} - x^{7} + x^{5} - x^{3} + x - 2 = 0$ has a real solution $x_0$. Show that $\\left[x_0^{14}\\right] = 3$, where $[a]$ is the integral part of the real number $a$.", "options": [], "answer": "3", "solution": "", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34198, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nThe prime number $p$ has the following property: the remainder $r$ of the division of $p$ by $210$ is a composite number which can be represented as a sum of two perfect squares. Find the number $r$.", "options": [], "answer": "169", "solution": "", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34199, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nThrough the arbitrary point of the triangle $ABC$ construct (explain the steps of the construction) a straight line which divides the triangle $ABC$ in two parts so that the ratio of their areas is equal to $3/4$.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34200, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $x$ be a real number. Find the smallest value of the expression\n$$\\sqrt{x^{2}+2x+4}+\\sqrt{x^{2}-\\sqrt{3}\\,x+1}.$$", "options": [], "answer": "sqrt(5 + 2*sqrt(3))", "solution": "", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 34201, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn the space a geometrical configuration, which includes $n$ ($n \\geq 3$) distinct points, is given. A point $A$ of this configuration has the following properties: if $A$ is excluded from the configuration, then among the remaining points there are no colinear points; after the elimination of $A$ from the configuration the number of all straight lines, that were constructed through any 2 points of the configuration, is lowered by $1/15$ part. Find the value of $n$.", "options": [], "answer": "9, 22, 30", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34202, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $x^{2} + b x + c = 0$ be the equation, where $b$ and $c$ are two consecutive triangular numbers and $c > b \\geq 10$. Prove that this equation has two irrational solutions. (The number $m$ is triangular, if $m = n(n-1)/2$ for certain positive integer $n \\geq 1$.)", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nLet $b$ and $c$ be two consecutive triangular numbers with $c > b \\geq 10$.\n\nA triangular number is of the form $m = n(n-1)/2$ for some integer $n \\geq 1$.\n\nLet $b = n(n-1)/2$ and $c = (n+1)n/2$ for some $n \\geq 5$ (since $b \\geq 10$).\n\nThe quadratic equation is:\n$$\nx^2 + b x + c = 0\n$$\nThe discriminant is:\n$$\n\\Delta = b^2 - 4c\n$$\nSubstitute $b$ and $c$:\n$$\n\\Delta = \\left(\\frac{n(n-1)}{2}\\right)^2 - 4 \\cdot \\frac{(n+1)n}{2}\n$$\n$$\n= \\frac{n^2(n-1)^2}{4} - 2(n+1)n\n$$\n$$\n= \\frac{n^2(n-1)^2 - 8n(n+1)}{4}\n$$\nExpand $n^2(n-1)^2$:\n$$\nn^2(n-1)^2 = n^2(n^2 - 2n + 1) = n^4 - 2n^3 + n^2\n$$\nSo,\n$$\n\\Delta = \\frac{n^4 - 2n^3 + n^2 - 8n^2 - 8n}{4}\n$$\n$$\n= \\frac{n^4 - 2n^3 - 7n^2 - 8n}{4}\n$$\nWe need to show that $\\Delta$ is positive and not a perfect square for all $n \\geq 5$.\n\nFirst, for $n \\geq 5$, $n^4$ dominates, so $\\Delta > 0$.\n\nSuppose $\\Delta$ is a perfect square for some $n \\geq 5$.\nLet $\\Delta = k^2$ for some integer $k$.\n\nBut $n^4 - 2n^3 - 7n^2 - 8n$ increases rapidly and is not a perfect square for $n \\geq 5$.\n\nCheck $n = 5$:\n$$\nb = 5 \\times 4 / 2 = 10,\\quad c = 6 \\times 5 / 2 = 15\n$$\n$$\n\\Delta = 10^2 - 4 \\times 15 = 100 - 60 = 40\n$$\n$40$ is not a perfect square.\n\nCheck $n = 6$:\n$$\nb = 6 \\times 5 / 2 = 15,\\quad c = 7 \\times 6 / 2 = 21\n$$\n$$\n\\Delta = 15^2 - 4 \\times 21 = 225 - 84 = 141\n$$\n$141$ is not a perfect square.\n\nCheck $n = 7$:\n$$\nb = 7 \\times 6 / 2 = 21,\\quad c = 8 \\times 7 / 2 = 28\n$$\n$$\n\\Delta = 21^2 - 4 \\times 28 = 441 - 112 = 329\n$$\n$329$ is not a perfect square.\n\nThus, for $n \\geq 5$, $\\Delta$ is positive and not a perfect square, so the equation has two irrational solutions.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34203, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nThe distinct points $M$ and $N$ lie on the hypotenuse ($AC$) of the right isosceles triangle $ABC$ so that $M \\in (AN)$ and $MN^{2} = AM^{2} + CN^{2}$. Prove that $m(\\angle MBN) = 45^{\\circ}$.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34204, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all the functions $f: N^{*} \\rightarrow N^{*}$ which verify the relation $f(2x+3y) = 2f(x) + 3f(y) + 4$ for every positive integers $x, y \\geq 1$.", "options": [], "answer": "All solutions are f(n) = k·n − 1 with integer k ≥ 2.", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34205, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nThe numbers $a_{1}, a_{2}, \\ldots, a_{n}$ are the first $n$ positive integers with the property that the number $8 a_{k}+1$ is a perfect square for every $k=1,2, \\ldots, n$. Find the sum $S_{n}=a_{1}+a_{2}+\\ldots+a_{n}$.", "options": [], "answer": "S_n = n(n+1)(n+2)/6", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34206, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all real solutions of the equation $x^{4} + 7x^{3} + 6x^{2} + 5\\sqrt{2003}x - 2003 = 0$.", "options": [], "answer": "x = -3 + sqrt(9 + sqrt(2003)) and x = -3 - sqrt(9 + sqrt(2003))", "solution": "", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34207, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nThe side lengths of the triangle $ABC$ satisfy the relations $a > b \\geq 2c$. Prove that the altitudes of the triangle $ABC$ can not be the sides of any triangle.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34208, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nA number $A$ is written with $2n$ digits, each of which is $4$, and a number $B$ is written with $n$ digits, each of which is $8$. Prove that for each $n$, $A + 2B + 4$ is a perfect square.\n\nProblem:\nUn număr $A$ este scris cu $2n$ cifre, fiecare dintre acestea fiind $4$; un număr $B$ este scris cu $n$ cifre, fiecare dintre acestea fiind $8$. Demonstrați că, pentru orice $n$, $A + 2B + 4$ este pătrat perfect.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\n$$\n\\begin{aligned}\nA &= \\underbrace{44 \\ldots 44}_{2n} = \\underbrace{44 \\ldots 4}_{n} \\underbrace{44 \\ldots 4}_{n} = \\underbrace{44 \\ldots 4}_{n} \\underbrace{400 \\ldots 0}_{n} - \\underbrace{44 \\ldots 4}_{n} + \\underbrace{88 \\ldots 8}_{n} = \\underbrace{44 \\ldots 4}_{n} \\cdot (10^n - 1) + B \\\\\n&= 4 \\cdot \\underbrace{11 \\ldots 1}_{n} \\cdot \\underbrace{99 \\ldots 9}_{n} + B = 2^{2} \\cdot \\underbrace{11 \\ldots 1}_{n} \\cdot 3^{2} \\cdot \\underbrace{11 \\ldots 1}_{n} + B = \\underbrace{66 \\ldots 6}_{n} \\\\\n&= \\left[ \\frac{36}{4} \\cdot \\underbrace{88 \\ldots 8}_{n} + B = [3 \\cdot \\underbrace{22 \\ldots 2}_{n}]^{2} + B = \\left( \\frac{3}{4} B \\right)^{2} + B .\n\\end{aligned}\n$$\nSo,\n$$\n\\begin{aligned}\nA + 2B + 4 &= \\left( \\frac{3}{4} B \\right)^{2} + B + 2B + 4 = \\left( \\frac{3}{4} B \\right)^{2} + 2 \\cdot \\frac{3}{4} B \\cdot 2 + 2^{2} = \\left( \\frac{3}{4} B + 2 \\right)^{2} = \\left( \\frac{3}{4} \\cdot \\underbrace{88 \\ldots 8}_{n} + 2 \\right)^{2} \\\\\n&= (3 \\cdot \\underbrace{22 \\ldots 2}_{n} + 2)^{2} = \\underbrace{66 \\ldots 68^{2}}_{n-1}\n\\end{aligned}\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34209, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $a$, $b$, $c$ be lengths of triangle sides, $p = \\frac{a}{b} + \\frac{b}{c} + \\frac{c}{a}$ and $q = \\frac{a}{c} + \\frac{c}{b} + \\frac{b}{a}$. Prove that $|p - q| < 1$.\n\nProblem:\nFie $a$, $b$, $c$ lungimile laturilor unui triunghi, $p = \\frac{a}{b} + \\frac{b}{c} + \\frac{c}{a}$, $q = \\frac{a}{c} + \\frac{c}{b} + \\frac{b}{a}$. Demonstrați că $|p - q| < 1$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nOne has\n$$\n\\begin{aligned}\na b c|p-q| & = a b c \\left| \\frac{c-b}{a} + \\frac{a-c}{b} + \\frac{b-a}{c} \\right| \\\\\n& = \\left| b c^{2} - b^{2} c + a^{2} c - a c^{2} + a b^{2} - a^{2} b \\right| \\\\\n& = \\left| a b c - a c^{2} - a^{2} b + a^{2} c - b^{2} c + b c^{2} + a b^{2} - a b c \\right| \\\\\n& = \\left| (b-c)(a c - a^{2} - b c + a b) \\right| \\\\\n& = |(b-c)(c-a)(a-b)| .\n\\end{aligned}\n$$\nSince $|b-c| < a$, $|c-a| < b$ and $|a-b| < c$ we infer\n$$\n|(b-c)(c-a)(a-b)| < a b c\n$$\nand\n$$\n|p-q| = \\frac{|(b-c)(c-a)(a-b)|}{a b c} < 1\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34210, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $a, b, c$ be real numbers such that $a^{2} + b^{2} + c^{2} = 1$. Prove that $P = ab + bc + ca - 2(a + b + c) \\geq -\\frac{5}{2}$. Are there values of $a, b, c$ such that $P = -\\frac{5}{2}$?\n\nProblem:\nFie $a, b, c$ numere reale astfel încât $a^{2} + b^{2} + c^{2} = 1$. Demonstrați că $P = ab + bc + ca - 2(a + b + c) \\geq -5 / 2$. Există valori pentru $a, b, c$ încât $P = -5 / 2$?", "options": [], "answer": "-5/2; equality is not attainable", "solution": "Solution:\nWe have $ab + bc + ca = \\frac{(a + b + c)^{2} - c^{2} - b^{2} - a^{2}}{2} = \\frac{(a + b + c)^{2} - 1}{2}$.\nIf we put $t = a + b + c$ we obtain\n$$\nP = \\frac{t^{2} - 1}{2} - 2t = \\frac{t^{2} - 4t - 1}{2} = \\frac{(t - 2)^{2} - 5}{2} \\geq -\\frac{5}{2}\n$$\nObviously $P = -\\frac{5}{2}$ when $t = 2$, i.e. $a + b + c = 2$, or $c = 2 - a - b$. Substitute in $a^{2} + b^{2} + c^{2} = 1$ and obtain $2a^{2} + 2(b - 2)a + 2b^{2} - 4b + 3 = 0$. Since this quadratic equation has solutions it follows that $(b - 2)^{2} - 2\\left(2b^{2} - 3b + 3\\right) \\geq 0$, from where\n$$\n-3b^{2} + 4b - 6 \\geq 0\n$$\nor\n$$\n3b^{2} - 4b + 6 \\leq 0\n$$\nBut $3b^{2} - 4b + 6 = 3\\left(b - \\frac{2}{3}\\right)^{2} + \\frac{14}{3} > 0$. The contradiction shows that $P = -\\frac{5}{2}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34211, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $ABC$ be a scalene triangle with $BC = a$, $AC = b$ and $AB = c$, where $a$, $b$, $c$ are positive integers. Prove that\n$$\n\\left|a b^{2} + b c^{2} + c a^{2} - a^{2} b - b^{2} c - c^{2} a\\right| \\geq 2\n$$\n\nProblem:\nFie $ABC$ triunghi neisoscel cu lungimile $a, b, c$ ale laturilor numere naturale. Demonstraţi că $\\left|a b^{2} + b c^{2} + c a^{2} - a^{2} b - b^{2} c - c^{2} a\\right| \\geq 2$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nDenote $E = a b^{2} + b c^{2} + c a^{2} - a^{2} b - b^{2} c - c^{2} a$. We have\n$$\n\\begin{aligned}\nE = & \\left(a b c - c^{2} a\\right) + \\left(c a^{2} - a^{2} b\\right) + \\left(b c^{2} - b^{2} c\\right) + \\left(a b^{2} - a b c\\right) = \\\\\n& (b - c)\\left(a c - a^{2} - b c + a b\\right) = (b - c)(a - b)(c - a)\n\\end{aligned}\n$$\nSo, $|E| = |a - b| \\cdot |b - c| \\cdot |c - a|$. By hypothesis each factor from $|E|$ is a positive integer. We shall prove that at least one factor from $|E|$ is greater than $1$. Suppose that $|a - b| = |b - c| = |c - a| = 1$. It follows that the numbers $a - b$, $b - c$, $c - a$ are odd. So, the number $0 = (a - b) + (b - c) + (c - a)$ is also odd, a contradiction. Hence, $|E| \\geq 1 \\cdot 1 \\cdot 2 = 2$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34212, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $a, b, c$ be positive numbers such that $a^{2} b^{2} + b^{2} c^{2} + c^{2} a^{2} = 3$. Prove that\n$$\na + b + c \\geq a b c + 2\n$$\n\nProblem:\nFie $a, b, c$ numere pozitive astfel ca $a^{2} b^{2} + b^{2} c^{2} + c^{2} a^{2} = 3$. Demonstrați că $a + b + c \\geq a b c + 2$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nWe can consider the case $a \\geq b \\geq c$ which implies $c \\leq 1$. The given inequality writes\n$$\na + b - 2 \\geq (a b - 1) c \\geq (a b - 1) c^{2} = (a b - 1) \\frac{3 - a^{2} b^{2}}{a^{2} + b^{2}}\n$$\nPut $x = \\sqrt{a b}$. From the inequality $3 a^{2} b^{2} \\geq a^{2} b^{2} + b^{2} c^{2} + c^{2} a^{2} = 3$ we infer $x \\geq 1$ and from $a^{2} b^{2} < a^{2} b^{2} + b^{2} c^{2} + c^{2} a^{2} = 3$ we find $x \\leq \\sqrt[4]{3}$. As $a + b \\geq 2 \\sqrt{a b} = 2 x$ and $a^{2} + b^{2} \\geq 2 a b = 2 x^{2}$, to prove the inequality (1) it will suffice to show that\n$$\n2(x - 1) \\geq \\left(x^{2} - 1\\right) \\frac{3 - x^{4}}{2 x^{2}}\n$$\nAs $x - 1 \\geq 0$, the last inequality is equivalent to\n$$\n4 x^{2} \\geq (x + 1)\\left(3 - x^{4}\\right)\n$$\nwhich can be easily obtained by multiplying the obvious ones $2 x^{2} \\geq x + 1$ and $2 \\geq 3 - x^{4}$.\n\nEquality holds only in the case when $a = b = c = 1$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34213, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $a, b, c$ be positive numbers such that $a b + b c + c a = 3$. Prove that\n$$\na + b + c \\geq a b c + 2\n$$\n\nProblem:\nFie $a$, $b$, $c$ numere pozitive astfel că $a b + b c + c a = 3$. Demonstrați că $a + b + c \\geq a b c + 2$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nEliminating $c$ gives\n$$\na + b + c - a b c = a + b + (1 - a b) c = a + b + \\frac{(1 - a b)(3 - a b)}{a + b}\n$$\nPut $x = \\sqrt{a b}$. Then $a + b \\geq 2x$, and since $1 < x^{2} < 3$, $\\frac{(1 - a b)(3 - a b)}{a + b} \\geq \\frac{(1 - x^{2})(3 - x^{2})}{2x}$.\nIt then suffices to prove that\n$$\n2x + \\frac{(1 - x^{2})(3 - x^{2})}{2x} \\geq 2\n$$\nThis last inequality follows from the arithmetic-geometric means inequality:\n$$\n2x + \\frac{(1 - x^{2})(3 - x^{2})}{2x} = \\frac{3 + x^{4}}{2x} = \\frac{1}{2x} + \\frac{1}{2x} + \\frac{1}{2x} + \\frac{x^{3}}{2} \\geq 4\\left(\\frac{1}{-16}\\right)^{\\frac{1}{4}} = 2\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34214, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $x$, $y$, $z$ be real numbers greater than $-1$. Prove that\n$$\n\\frac{1+x^{2}}{1+y+z^{2}}+\\frac{1+y^{2}}{1+z+x^{2}}+\\frac{1+z^{2}}{1+x+y^{2}} \\geq 2\n$$\n\nProblem:\nFie $x$, $y$, $z$ numere mai mari ca $-1$. Demonstrați că\n$$\n\\frac{1+x^{2}}{1+y+z^{2}}+\\frac{1+y^{2}}{1+z+x^{2}}+\\frac{1+z^{2}}{1+x+y^{2}} \\geq 2\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\nWe have $y \\leq \\frac{1+y^{2}}{2}$, hence\n$$\n\\frac{1+x^{2}}{1+y+z^{2}} \\geq \\frac{1+x^{2}}{1+z^{2}+\\frac{1+y^{2}}{2}}\n$$\nand the similar inequalities.\nSetting $a=1+x^{2}$, $b=1+y^{2}$, $c=1+z^{2}$, it suffices to prove that\n$$\n\\frac{a}{2c+b}+\\frac{b}{2a+c}+\\frac{c}{2b+a} \\geq 1\n$$\nfor all $a, b, c \\geq 0$.\nPut $A=2c+b$, $B=2a+c$, $C=2b+a$. Then\n$$\na=\\frac{C+4B-2A}{9},\\quad b=\\frac{A+4C-2B}{9},\\quad c=\\frac{B+4A-2C}{9}\n$$\nand (1) rewrites as\n$$\n\\frac{C+4B-2A}{A}+\\frac{A+4C-2B}{B}+\\frac{B+4A-2C}{C} \\geq 9\n$$\nand consequently\n$$\n\\frac{C}{A}+\\frac{A}{B}+\\frac{B}{C}+4\\left(\\frac{B}{A}+\\frac{C}{B}+\\frac{A}{C}\\right) \\geq 15\n$$\nAs $A, B, C>0$, by AM-GM inequality we have\n$$\n\\frac{A}{B}+\\frac{B}{C}+\\frac{C}{A} \\geq 3 \\sqrt[3]{\\frac{A}{B} \\cdot \\frac{B}{C} \\cdot \\frac{C}{A}}\n$$\nand\n$$\n\\frac{B}{A}+\\frac{C}{B}+\\frac{A}{C} \\geq 3\n$$\nand we are done.\n\nBy the Cauchy-Schwarz inequality,\n$$\n\\frac{a}{2c+b}+\\frac{b}{2a+c}+\\frac{c}{2b+a}=\\frac{a^{2}}{2ac+ab}+\\frac{b^{2}}{2ab+cb}+\\frac{c^{2}}{2bc+ac} \\geq \\frac{(a+b+c)^{2}}{3(ab+bc+ca)} \\geq 1\n$$\nThe last inequality reduces immediately to the obvious $a^{2}+b^{2}+c^{2} \\geq ab+bc+ca$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34215, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nProve that there exist two sets $A=\\{x, y, z\\}$ and $B=\\{m, n, p\\}$ of positive integers greater than $2003$ such that the sets have no common elements and the equalities $x+y+z=m+n+p$ and $x^{2}+y^{2}+z^{2}=m^{2}+n^{2}+p^{2}$ hold.\n\nProblem:\nDemonstraţi că există mulțimi disjuncte $A=\\{x, y, z\\}$ și $B=\\{m, n, p\\}$ de numere naturale mai mari ca $2003$ astfel ca $x+y+z=m+n+p$ și $x^{2}+y^{2}+z^{2}=m^{2}+n^{2}+p^{2}$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nLet $ABC$ be a triangle with $BC=a$, $AC=b$, $AB=c$ and $a k+3 = c\n$$\na triangle with such side lengths exists. After simple calculations we have\n$$\n\\begin{gathered}\nA = \\{3(k+1)^{2} - 2,\\ 3(k+2)^{2} + 4,\\ 3(k+3)^{2} - 2\\} \\\\\nB = \\{3(k+1)^{2},\\ 3(k+2)^{2},\\ 3(k+3)^{2}\\}\n\\end{gathered}\n$$\nIt is easy to prove that\n$$\n\\begin{gathered}\nx + y + z = m + n + p = 3\\left[(k+1)^{2} + (k+2)^{2} + (k+3)^{2}\\right] \\\\\nx^{2} + y^{2} + z^{2} = m^{2} + n^{2} + p^{2} = 9\\left[(k+1)^{4} + (k+2)^{4} + (k+3)^{4}\\right]\n\\end{gathered}\n$$\nFrom the inequality $3(k+1)^{2} - 2 > 2003$ we obtain $k \\geq 25$. For $k=25$ we have an example of two sets\n$$\nA = \\{2026, 2191, 2350\\}, \\quad B = \\{2028, 2187, 2352\\}\n$$\nwith the desired properties.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34216, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nEach side of the arbitrary triangle is divided into $2002$ congruent segments. After that each interior division point of the side is joined with the opposite vertex. Prove that the number of obtained regions of the triangle is divisible by $6$.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34217, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nThe real numbers $a_{1}, a_{2}, \\ldots, a_{2003}$ satisfy simultaneously the relations: $a_{i} \\geq 0$ for all $i = 1, 2, \\ldots, 2003$; $a_{1} + a_{2} + \\ldots + a_{2003} = 2$; $a_{1} a_{2} + a_{2} a_{3} + \\ldots + a_{2003} a_{1} = 1$. Find the smallest value of the sum $a_{1}^{2} + a_{2}^{2} + \\ldots + a_{2003}^{2}$.", "options": [], "answer": "3/2", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34218, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $n \\geq 1$ be a positive integer. A square table of dimensions $n \\times n$ is filled arbitrarily with the numbers $1, 2, \\ldots, n^2$, so that every number appears exactly once in the table. From each row, select the smallest number, and let the greatest of them be denoted by $x$. From each column, select the greatest number, and let the smallest of them be denoted by $y$. The table is called equilibrated if $x = y$. How many equilibrated tables exist?", "options": [], "answer": "n^2 · ((n−1)!)^2 · ((n−1)^2)! · C(n^2, 2n−1)", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34219, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nThe positive real numbers $x$, $y$ and $z$ satisfy the relation $x + y + z \\geq 1$. Prove the inequality\n$$\n\\frac{x \\sqrt{x}}{y + z} + \\frac{y \\sqrt{y}}{x + z} + \\frac{z \\sqrt{z}}{x + y} \\geq \\frac{\\sqrt{3}}{2}\n$$", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34220, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nThe quadrilateral $ABCD$ is inscribed in the circle with center $O$, the points $M$ and $N$ are the middle points of the diagonals $[AC]$ and $[BD]$ respectively and $P$ is the intersection point of the diagonals. It is known that the points $O, M, N$ and $P$ are distinct. Prove that the points $O, M, B$ and $D$ are concyclic if and only if the points $O, N, A$ and $C$ are concyclic.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34221, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nProve that the equation\n$$\n\\frac{1}{a} + \\frac{1}{b} + \\frac{1}{c} + \\frac{1}{abc} = \\frac{12}{a + b + c}\n$$\nhas many solutions $(a, b, c)$ in strictly positive integers.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34222, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $n \\geq 1$ be a positive integer. Find all polynomials of degree $2n$ with real coefficients\n$$\nP(X) = X^{2n} + (2n-10) X^{2n-1} + a_{2} X^{2n-2} + \\ldots + a_{2n-2} X^{2} + (2n-10) X + 1\n$$\nif it is known that they have positive real roots.", "options": [], "answer": "Only n = 1 or n = 2 are possible. For n = 1: P(x) = x^2 − 8 x + 1. For n = 2: P(x) = x^4 − 6 x^3 + a x^2 − 6 x + 1, where a ranges over all real values in [10, 11]; equivalently P(x) = (x^2 − s x + 1)(x^2 − t x + 1) with s, t ≥ 2 and s + t = 6. For n ≥ 3, no such polynomial exists.", "solution": "", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 34223, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nThe triangle $ABC$ has the semiperimeter $p$, the circumradius $R$, the inradius $r$ and $l_a, l_b, l_c$ are the lengths of internal bisectors, drawn from the vertices $A, B$ and $C$ respectively. Prove the inequality\n$$\nl_a l_b + l_b l_c + l_c l_a \\leq p \\sqrt{3 r^2 + 12 R r}.\n$$", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34224, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nThe points $M$ and $N$ are the tangent points of the sides $[AB]$ and $[AC]$ of the triangle $ABC$ to the incircle with the center $I$. The internal bissectrices, drawn from the vertices $B$ and $C$, intersect the straight line $MN$ at points $P$ and $Q$ respectively. If $F$ is the intersection point of the straight lines $CP$ and $BQ$, then prove that the straight lines $FI$ and $BC$ are perpendicular.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34225, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $n \\geq 4$ be a positive integer. On the chessboard table with dimensions $n \\times n$ we put coins. We consider the diagonals of the table, each diagonal with at least two unit squares. What is the smallest number of coins to put on the table so that on each horizontal, each vertical, and each diagonal there exists at least one coin? Prove the answer.", "options": [], "answer": "For odd n, the minimum is 2n − 3; for even n, the minimum is 2n − 2.", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34226, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $n \\geq 1$ be a positive integer. A permutation $(a_{1}, a_{2}, \\ldots, a_{n})$ of the numbers $(1,2, \\ldots, n)$ is called quadratique if among the numbers $a_{1}, a_{1}+a_{2}, \\ldots, a_{1}+a_{2}+\\ldots+a_{n}$ there exists at least one perfect square. Find the greatest number $n$, which is less than $2003$, such that every permutation of the numbers $(1,2, \\ldots, n)$ will be quadratique.", "options": [], "answer": "1681", "solution": "", "topic": "Discrete Mathematics", "subtopic": "Combinatorics" }, { "id": 34227, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nIn a group of 60 students: 40 speak English; 30 speak French; 8 speak all the three languages; the number of students that speak English and French but not German is equal to the sum of the number of students that speak English and German but not French plus the number of students that speak French and German but not English; and the number of students that speak at least 2 of those languages is 28. How many students speak:\na) German;\nb) only English;\nc) only German?\n\nProblem:\nÎntr-un grup de 60 studenți: 40 vorbesc engleza, 30 vorbesc franceza, 8 vorbesc toate cele trei limbi. Numărul celor ce vorbesc doar engleza şi franceza este egal cu suma celor care vorbesc doar germana şi franceza cu a celor ce vorbesc doar engleza şi germana. Numărul celor ce vorbesc cel puțin două dintre aceste limbi este 28. Cât de mulți studenți vorbesc:\na) germana;\nb) numai engleza;\nc) numai germana.", "options": [], "answer": "a) 26; b) not uniquely determined — any integer from 12 to 22 inclusive; c) 8", "solution": "Solution:\nWe use the following notation.\n$E=$ number of students that speak English, $F=$ number of students that speak French,\n$G=$ number of students that speak German; $m=$ number of students that speak all the three languages,\n$x=$ number of students that speak English and French but not German,\n$y=$ number of students that speak German and French but not English,\n$z=$ number of students that speak English and German but not French.\nThe conditions $x = y + z$ and $x + y + z + 8 = 28$ imply that $z = x + y = 10$, i.e. 10 students speak German and French, but not English. Then: $G + E - y - 8 + F - x - 8 - 10 = 60$, implies that $G + 70 - 36 = 60$. Hence:\na) $G = 36$;\nb) only English speak $40 - 10 - 8 = 22$ students;\nc) the information given is not enough to find the number of students that speak only German. This number can be any one from 8 to 18.", "topic": "Algebra", "subtopic": "Abstract Algebra" }, { "id": 34228, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nNatural numbers $1, 2, 3, \\ldots, 2003$ are written in an arbitrary sequence $a_{1}, a_{2}, a_{3}, \\ldots, a_{2003}$. Let $b_{1} = 1 a_{1}$, $b_{2} = 2 a_{2}$, $b_{3} = 3 a_{3}$, $\\ldots$, $b_{2003} = 2003 a_{2003}$, and $B$ be the maximum of the numbers $b_{1}, b_{2}, b_{3}, \\ldots, b_{2003}$.\n\na) If $a_{1} = 2003, a_{2} = 2002, a_{3} = 2001, \\ldots, a_{2002} = 2, a_{2003} = 1$, find the value of $B$.\n\nb) Prove that $B \\geq 1002^{2}$.\n\nProblem:\n\nNumerele $1, 2, 3, \\ldots, 2003$ sunt scrise într-un şir $a_{1}, a_{2}, a_{3}, \\ldots, a_{2003}$. Fie $b_{1} = 1 a_{1}$, $b_{2} = 2 a_{2}$, $b_{3} = 3 a_{3}$, $\\ldots$, $b_{2003} = 2003 a_{2003}$ şi $B$ maximul numerelor $b_{1}, b_{2}, b_{3}, \\ldots, b_{2003}$.\n\na) Dacă $a_{1} = 2003, a_{2} = 2002, a_{3} = 2001, \\ldots, a_{2003} = 1$, găsiți valoarea lui $B$.\n\nb) Demonstrați că $B \\geq 1002^{2}$.", "options": [], "answer": "Part (a): B = 1002^2. Part (b): For any arrangement, B >= 1002^2.", "solution": "Solution:\n\na) Using the inequality between the arithmetical and geometrical mean, we obtain that $b_{n} = n (2004 - n) \\leq \\left( \\frac{n + (2004 - n)}{2} \\right)^{2} = 1002^{2}$ for $n = 1, 2, 3, \\ldots, 2003$. The equality holds if and only if $n = 2004 - n$, i.e. $n = 1002$. Therefore, $B = b_{1002} = 1002 \\times (2004 - 1002) = 1002^{2}$.\n\nb) Let $a_{1}, a_{2}, a_{3}, \\ldots, a_{2003}$ be an arbitrary order of the numbers $1, 2, 3, \\ldots, 2003$. First, we will show that numbers $1002, 1003, 1004, \\ldots, 2003$ cannot occupy the places numbered $1, 2, 3, \\ldots, 1001$ only. Indeed, we have $(2003 - 1002) + 1 = 1002$ numbers and $1002$ places. This means that at least one of the numbers $1002, 1003, 1004, \\ldots, 2003$, say $a_{m}$, lies on a place which number $m$ is greater than $1001$. Therefore, $B \\geq m a \\geq 1002 \\times 1002 = 1002^{2}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34229, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nProve that amongst any 29 natural numbers there are 15 such that sum of them is divisible by 15.\n\nProblem:\nDemonstrați că într-o mulțime de 29 numere naturale există 15 a căror sumă este divizibilă cu 15.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nAmongst any 5 natural numbers there are 3 such that sum of them is divisible by 3. Amongst any 29 natural numbers we can choose 9 groups with 3 numbers such that sum of numbers in every group is divisible by 3. In that way we get 9 natural numbers such that all of them are divisible by 3. It is easy to see that amongst any 9 natural numbers there are 5 such that sum of them is divisible by 5. Since we have 9 numbers, all of them are divisible by 3, there are 5 such that sum of them is divisible by 15.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34230, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\n$n$ points are given in a plane, not three of them colinear. One observes that no matter how we label the points from $1$ to $n$, the broken line joining the points $1,2,3, \\ldots, n$ (in this order) does not intersect itself.\nFind the maximal value of $n$.\n\nProblem:\n\nFie $n$ puncte în plan, oricare trei necoliniare, cu proprietatea că oricum le-am numerota $A_{1}$, $A_{2}, \\ldots, A_{n}$, linia frântă $A_{1} A_{2} \\ldots A_{n}$ nu se autointersectează. Găsiți valoarea maximă a lui $n$.", "options": [], "answer": "4", "solution": "Solution:\n\nNotice that $n=4$ satisfies the condition. Indeed, for a concave quadrilateral, this can be checked immediately.\n\nThen, observe that for $n \\geq 5$ one can choose four points $A, B, C, D$ such that $ABCD$ is a convex quadrilateral. The diagonals $AC$ and $BD$ intersect at a point, hence labeling $A, B, C, D$ with $1,2,3,4$ we reach a contradiction.\n\nThus, it is sufficient to prove that from five points we can select four that are vertices of a convex quadrilateral. Consider the convex hull of the five points set. If this is not a triangle we are done. If it is a triangle, then draw the line through the two points inside the triangle. This line meets exactly two sides of the triangle. Let $A$ be the common vertex of these sides. Then the four remaining points solve the claim.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34231, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIf $m$ is a number from the set $\\{1,2,3,4\\}$ and each point of the plane is painted in red or blue, prove that in the plane there exists at least an equilateral triangle with the vertices of the same colour and with length side $m$.\n\nProblem:\n\nFie mulțimea $M=\\{1,2,3,4\\}$. Fiecare punct al planului este colorat în roşu sau albastru.\nDemonstrați că există cel puțin un triunghi echilateral cu latura $m \\in M$ cu vârfurile de aceeaşi culoare.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nSuppose that in the plane there does not exist an equilateral triangle with the vertices of the same colour and length side $m=1,2,3,4$.\n\nFirst assertion: we shall prove that in the plane there does not exist a segment with the length $2$ such that the ends and the midpoint of this segment have the same colour. Suppose that the segment $X Y$ with length $2$ has the midpoint $T$ such that the points $X, Y, T$ have the same colour (for example, red). We construct the equilateral triangle $X Y Z$. Hence, the point $Z$ is blue. Let $U$ and $V$ be the midpoints of the segments $X Z$ and $Y Z$ respectively. So, the points $U$ and $V$ are blue. We obtain a contradiction, because the equilateral triangle $U V Z$ has three blue vertices.\n\nSecond assertion: in the same way we prove that in the plane there does not exist a segment with the length $4$ such that the ends and the midpoint of this segment have the same colour.\n\nConsider the equilateral triangle $A B C$ with length side $4$ and divide it into $16$ equilateral triangles with length sides $1$. Let $D$ be the midpoint of the segment $A B$. The vertices $A, B, C$ don't have the same colour. WLOG we suppose that $A$ and $B$ are red and $C$ is blue. So, the point $D$ is blue too. We shall investigate the following cases:\n\na) The midpoints $E$ and $F$ of the sides $A C$ and, respectively, $B C$ are red. From the first assertion it follows that the midpoints $M$ and $N$ of the segments $A E$ and, respectively, $B F$ are blue. Hence, the equilateral triangle $M N C$ has three blue vertices, a contradiction.\n\nb) Let $E$ is red and $F$ is blue. The second one position of $E$ and $F$ is symmetrical. If $P, K, L$ are the midpoints of the segments $C F, A D, B D$ respectively, then by first assertion $P$ is red, $M$ is blue and $N$ is red. This implies that $K$ and $L$ are blue. So, the segment $K L$ with length $2$ has the blue ends and blue midpoint, a contradiction.\n\nc) If $E$ and $F$ are blue, then the equilateral triangle $E F C$ has three blue vertices, a contradiction.\n\nHence, in the plane there exists at least an equilateral triangle with the vertices of the same colour and with length side $m$, where $m \\in \\{1,2,3,4\\}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34232, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIs there a convex quadrilateral, whose diagonals divide it into four triangles, such that their areas are four distinct prime integers?\n\nProblem:\n\nExistă un patrulater convex pe care diagonalele să-l împartă în patru triunghiuri cu ariile numere prime distincte?", "options": [], "answer": "No", "solution": "Solution:\n\nNo. Let the areas of those triangles be the prime numbers $p$, $q$, $r$ and $t$. But for the areas of the triangles we have $pq = rt$, where the triangles with areas $p$ and $q$ have only a common vertex. This is not possible for distinct primes.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34233, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nIs there a triangle whose area is $12~\\mathrm{cm}^2$ and whose perimeter is $12~\\mathrm{cm}$.\n\nProblem:\nExistă un triunghi cu aria $12~\\mathrm{cm}^2$ şi perimetrul $12$?", "options": [], "answer": "No", "solution": "Solution:\nNo. Let $r$ be the radius of the inscribed circle. Then $12 = 6r$, i.e. $r = 2~\\mathrm{cm}$. But the area of the inscribed circle is $4\\pi > 12$, and it is known that the area of any triangle is bigger than the area of its inscribed circle.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34234, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $G$ be the centroid of the the triangle $A B C$. Reflect point $A$ across $C$ at $A'$. Prove that $G, B, C, A'$ are on the same circle if and only if $G A$ is perpendicular to $G C$.\n\nProblem:\nFie $G$ centrul de greutate al triunghiului $ABC$ şi $A'$ simetricul lui $A$ faţă de $C$. Demonstrați că punctele $G, B, C, A'$ sunt conciclice dacă și numai dacă $GA \\perp GC$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n$$\nG A \\perp G C \\Leftrightarrow \\frac{4}{9} m_{a}^{2}+\\frac{4}{9} m_{c}^{2}=b^{2} \\Leftrightarrow 5 b^{2}=a^{2}+c^{2}\n$$\nMoreover,\n$$\nG B^{2}=\\frac{4}{9} m_{b}^{2}=\\frac{2 a^{2}+2 c^{2}-b^{2}}{9}=\\frac{9 b^{2}}{9}=b^{2}\n$$\nhence $G B=A C=C A'$ (1). Let $C'$ be the intersection point of the lines $G C$ and $A B$. Then $C C'$ is the middle line of the triangle $A B A'$, hence $G C \\parallel B A'$. Consequently, $G C A' B$ is a trapezoid. From (1) we find that $G C A' B$ is isosceles, thus cyclic, as needed.\n\nConversely, since $G C A' B$ is a cyclic trapezoid, then it is also isosceles. Thus $C A'=G B$, which leads to (1).", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34235, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet three congruent circles intersect in one point $M$ and $A_{1}$, $A_{2}$ and $A_{3}$ be the other intersection points for those circles. Prove that $M$ is the orthocenter for the triangle $A_{1} A_{2} A_{3}$.\n\nProblem:\n\nTrei cercuri egale au în comun un punct $M$ şi se intersectează câte două în puncte $A$, $B$, $C$. Demonstrați că $M$ este ortocentrul triunghiului $A B C$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nThe quadrilaterals $O_{3} M O_{2} A_{1}$, $O_{3} M O_{1} A_{2}$ and $O_{1} M O_{2} A_{3}$ are rhombuses. Therefore, $O_{2} A_{1} \\parallel M O_{3}$ and $M O_{3} \\parallel O_{1} A_{2}$, which imply $O_{2} A_{1} \\parallel O_{1} A_{2}$. Because $O_{2} A_{1} = O_{3} M = O_{1} A_{2}$, the quadrilateral $O_{2} A_{1} A_{2} O_{1}$ is a parallelogram and then $A_{1} A_{2} \\parallel O_{1} O_{2}$ and $A_{1} A_{2} = O_{1} O_{2}$. Similarly, $A_{2} A_{3} \\parallel O_{2} O_{3}$ and $A_{2} A_{3} = O_{2} O_{3}$; $A_{3} A_{1} \\parallel O_{3} O_{1}$ and $A_{3} A_{1} = O_{3} O_{1}$. The triangles $A_{1} A_{2} A_{3}$ and $O_{1} O_{2} O_{3}$ are congruent.\n\n![](attached_image_1.png)\n\nSince $A_{3} M \\perp O_{1} O_{2}$ and $O_{1} O_{2} \\parallel A_{1} A_{2}$ we infer $A_{3} M \\perp A_{1} A_{2}$. Similarly, $A_{2} M \\perp A_{1} A_{3}$ and $A_{1} M \\perp A_{2} A_{3}$. Thus, $M$ is the orthocenter for the triangle $A_{1} A_{2} A_{3}$.\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34236, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $n \\geq 2003$ be a positive integer such that the number $1+2003 n$ is a perfect square. Prove that the number $n+1$ is equal to the sum of 2003 positive perfect squares.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34237, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nThe positive real numbers $a$, $b$, $c$ satisfy the relation $a^{2} + b^{2} + c^{2} = 3 a b c$. Prove the inequality\n$$\n\\frac{a}{b^{2} c^{2}} + \\frac{b}{c^{2} a^{2}} + \\frac{c}{a^{2} b^{2}} \\geq \\frac{9}{a + b + c}\n$$", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34238, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nThe quadrilateral $ABCD$ with perpendicular diagonals is inscribed in the circle with center $O$, the points $M$ and $N$ are the middle points of the sides $[BC]$ and $[CD]$ respectively. Find the value of the ratio of areas of the figures $OMCN$ and $ABCD$.", "options": [], "answer": "1/4", "solution": "", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34239, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $m$ and $n$ be the arbitrary digits of the decimal system and $a, b, c$ be the positive distinct integers of the form $2^{m} \\cdot 5^{n}$. Find the number of the equations $a x^{2}-2 b x+c=0$, if it is known that each equation has a single real solution.", "options": [], "answer": "2400", "solution": "", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34240, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nProve that each positive integer is equal to a difference of two positive integers with the same number of the prime divisors.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34241, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nThe real numbers $x$ and $y$ satisfy the equalities\n$$\n\\sqrt{3x}\\left(1+\\frac{1}{x+y}\\right)=2, \\quad \\sqrt{7y}\\left(1-\\frac{1}{x+y}\\right)=4\\sqrt{2}\n$$\nFind the numerical value of the ratio $y / x$.", "options": [], "answer": "6", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34242, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nThe triangle $ABC$ is isosceles with $AB = BC$. The point $F$ on the side $[BC]$ and the point $D$ on the side $[AC]$ are the feet of the internal bisector drawn from $A$ and altitude drawn from $B$ respectively so that $AF = 2 BD$. Find the measure of the angle $ABC$.", "options": [], "answer": "108°", "solution": "", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34243, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn the rectangular coordinate system every point with integer coordinates is called a lattice point. Let $P_n(n, n+5)$ be a lattice point and denote by $f(n)$ the number of lattice points on the open segment $\\left(OP_n\\right)$, where the point $O(0,0)$ is the coordinate system origin. Calculate the number $f(1) + f(2) + f(3) + \\ldots + f(2002) + f(2003)$.", "options": [], "answer": "1600", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34244, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nFie $ABCDEF$ un hexagon convex. Notăm cu $A'$, $B'$, $C'$, $D'$, $E'$, $F'$ mijloacele laturilor $AB$, $BC$, $CD$, $DE$, $EF$, $FA$ respectiv. Se cunosc arile triunghiurilor $ABC'$, $BCD'$, $CDE'$, $DEF'$, $EFA'$, $FAB'$. Să se afle aria hexagonului $ABCDEF$.", "options": [], "answer": "Area(ABCDEF) = (2/3) × (Area(ABC′) + Area(BCD′) + Area(CDE′) + Area(DEF′) + Area(EFA′) + Area(FAB′)).", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34245, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nPentru orice număr natural $n$ notăm cu $C(n)$ suma cifrelor sale în baza 10. Arătaţi că oricare ar fi numărul natural $k$ există un număr natural $m$ astfel încât ecuaţia $x+C(x)=m$ are cel puţin $k$ soluţii.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34246, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nUn parlament are $n$ deputati. Aceştia fac parte din 10 partide şi din 10 comisii parlamentare. Fiecare deputat face parte dintr-un singur partid și dintr-o singură comisie.\nDeterminați valoarea minimă a lui $n$ pentru care, indiferent de componența numerică a partidelor și indiferent de repartizarea în comisii, să existe o numerotare cu toate numerele $1,2, \\ldots, 10$ atât a partidelor cât și a comisiilor, astfel încât cel puțin 11 deputați să facă parte dintr-un partid și o comisie cu număr identic.", "options": [], "answer": "101", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34247, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSe dă un romb $ABCD$ cu latura $1$. Pe laturile $BC$ şi $CD$ există punctele $M$, respectiv $N$, astfel încât $MC + CN + NM = 2$ şi $\\angle MAN = \\frac{1}{2} \\angle BAD$.\nSă se afle unghiurile rombului.", "options": [], "answer": "The rhombus is a square: all angles are ninety degrees.", "solution": "", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34248, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nÎntr-un plan înzestrat cu un sistem de coordonate $X O Y$ se numește punct laticial un punct $A(x, y)$ în care ambele coordonate sunt numere întregi. Un punct laticial $A$ se numește invizibil dacă pe segmentul deschis $O A$ există cel puțin un punct laticial.\nSă se arate că pentru orice număr natural $n$, $n > 0$, există un pătrat de latură $n$ în care toate punctele laticiale interioare, de pe laturi sau din vârfuri, sunt invizibile.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34249, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSă se demonstreze inegalitatea\n$$\n\\frac{x+y}{x^{2}-x y+y^{2}} \\leq \\frac{2 \\sqrt{2}}{\\sqrt{x^{2}+y^{2}}}\n$$\npentru orice numere reale $x$ şi $y$, nu simultan nule.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34250, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nFie $ABC$ un triunghi isoscel cu $AC = BC$, $M$ mijlocul segmentului $AC$ şi $\\ell$ dreapta ce trece prin $C$ şi este perpendiculară pe $AB$. Cercul ce trece prin punctele $B$, $C$ şi $M$ intersectează dreapta $\\ell$ în punctele $C$ şi $Q$. Să se afle raza cercului circumscris triunghiului $ABC$ în funcţie de $m = CQ$.", "options": [], "answer": "R = m - h/2", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34251, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSe consideră numerele naturale nenule $x$ și $y$ astfel încât $3x + 4y$ și $4x + 3y$ sunt ambele pătrate perfecte. Să se arate că numerele $x$ și $y$ sunt ambele divizibile cu $7$.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34252, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nSe consideră un poligon convex având $n$ vârfuri, $n \\geq 4$. Descompunem arbitrar poligonul in triunghiuri ale căror vârfuri sunt printre vârfurile poligonului, astfel încât orice două triunghiuri să nu aibă puncte interioare comune. Colorăm cu negru triunghiurile ce au două laturi care sunt şi laturi ale poligonului, cu roşu triunghiurile ce au exact o latură care este şi latură a poligonului şi cu alb triunghiurile ale căror laturi nu sunt laturi ale poligonului.\nSă se demonstreze că numărul triunghiurilor negre este cu 2 mai mare decât numărul triunghiurilor albe.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34253, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nProve that, for all real numbers $x, y, z$ :\n$$\n\\frac{x^{2}-y^{2}}{2 x^{2}+1}+\\frac{y^{2}-z^{2}}{2 y^{2}+1}+\\frac{z^{2}-x^{2}}{2 z^{2}+1} \\leq (x+y+z)^{2}\n$$\nWhen does equality hold?", "options": [], "answer": "Equality holds only when x = y = z = 0.", "solution": "Solution:\nFor $x = y = z = 0$ the equality is valid.\nSince $(x + y + z)^{2} \\geq 0$ it is enough to prove that\n$$\n\\frac{x^{2}-y^{2}}{2 x^{2}+1}+\\frac{y^{2}-z^{2}}{2 y^{2}+1}+\\frac{z^{2}-x^{2}}{2 z^{2}+1} \\leq 0\n$$\nwhich is equivalent to the inequality\n$$\n\\frac{x^{2}-y^{2}}{x^{2}+\\frac{1}{2}}+\\frac{y^{2}-z^{2}}{y^{2}+\\frac{1}{2}}+\\frac{z^{2}-x^{2}}{z^{2}+\\frac{1}{2}} \\leq 0\n$$\nDenote\n$$\na = x^{2} + \\frac{1}{2}, \\quad b = y^{2} + \\frac{1}{2}, \\quad c = z^{2} + \\frac{1}{2}\n$$\nThen (1) is equivalent to\n$$\n\\frac{a-b}{a}+\\frac{b-c}{b}+\\frac{c-a}{c} \\leq 0\n$$\nFrom the very well known $AG$ inequality it follows that\n$$\na^{2}b + b^{2}c + c^{2}a \\geq 3abc\n$$\nFrom the equivalencies\n$$\na^{2}b + b^{2}c + c^{2}a \\geq 3abc \\Leftrightarrow \\frac{a}{c} + \\frac{b}{a} + \\frac{c}{b} \\geq -3 \\Leftrightarrow \\frac{a-b}{a} + \\frac{b-c}{b} + \\frac{c-a}{c} \\leq 0\n$$\nit follows that the inequality (2) is valid for positive real numbers $a, b, c$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34254, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nProve that for all real $x, y$\n$$\n\\frac{x+y}{x^{2}-x y+y^{2}} \\leq \\frac{2 \\sqrt{2}}{\\sqrt{x^{2}+y^{2}}}\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\nThe inequality rewrites as\n$$\n\\frac{x+y}{x^{2}-x y+y^{2}} \\leq \\frac{\\sqrt{2\\left(x^{2}+y^{2}\\right)}}{\\frac{x^{2}+y^{2}}{2}}\n$$\nNow it is enough to prove the next two simple inequalities:\n$$\nx+y \\leq \\sqrt{2\\left(x^{2}+y^{2}\\right)}, \\quad x^{2}-x y+y^{2} \\geq \\frac{x^{2}+y^{2}}{2}\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34255, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nProve that if $0 < \\frac{a}{b} < b < 2a$ then\n$$\n\\frac{2ab - a^2}{7ab - 3b^2 - 2a^2} + \\frac{2ab - b^2}{7ab - 3a^2 - 2b^2} \\geq 1 + \\frac{1}{4}\\left(\\frac{a}{b} - \\frac{b}{a}\\right)^2\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\nIf we denote\n$$\nu=2-\\frac{a}{b}, \\quad v=2-\\frac{b}{a}$$\nthen the inequality rewrites as\n$$\n\\begin{aligned}\n& \\frac{u}{v+uv} + \\frac{v}{u+uv} \\geq 1 + \\frac{1}{4}(u-u)^2 \\\\\n& \\frac{(u-v)^2 + uv(1-uv)}{uv(uv+u+v+1)} \\geq \\frac{(u-u)^2}{4}\n\\end{aligned}\n$$\nOr\nSince $u > 0$, $v > 0$, $u+v \\leq 2$, $uv \\leq 1$, $uv(u+v+uv+1) \\leq 4$, the result is clear.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34256, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nA polygon having $n$ sides is arbitrarily decomposed in triangles having all the vertices among the vertices of the polygon. We paint in black the triangles that have two sides that are also sides of the polygon, in red if only one side of the triangle is side of the polygon and white those triangles that have in common with the polygon only vertices.\nProve that there are 2 more black triangles than white ones.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nDenote by $b, r, w$ the number of black, red, and white triangles respectively.\nIt is easy to prove that the polygon is divided into $n-2$ triangles, hence\n$$\nb + r + w = n - 2\n$$\nEach side of the polygon is a side of exactly one triangle of the decomposition, and thus\n$$\n2b + r = n\n$$\nSubtracting the two relations yields $w = b - 2$, as needed.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34257, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\ngiven an $m \\times n$ table, each cell signed with \"-\". The following operations are\n(i) to change all the signs in an entire row to the opposite, i.e. every \"-\" to \"+\", and every \"+\" to \"-\";\n(ii) to change all the signs in an entire column to the opposite, i.e. every \"-\" to \"+\" and every \"+\" to \"-\".\n\na. Prove that if $m = n = 100$, using the above operations one cannot obtain 2004 signs \"+\".\n\nb. If $m = 100$, find the least $n > 100$ for which 2004 signs \"+\" can be obtained.", "options": [], "answer": "102", "solution": "Solution:\n\nIf we apply (i) to $l$ rows and (ii) to $k$ columns, we obtain $(m-k)l + (n-l)k$ plus signs.\n\na.\nWe have the equation $(100-k)l + (100-l)k = 2004$, or $100l + 100k - 2lk = 2004$.\n\n$$\n50l + 50k - lk = 1002\n$$\nRewrite the last equation as\n$$\n(50-l)(50-k) = 2500 - 1002 = 1498\n$$\nSince $1498 = 2 \\cdot 7 \\cdot 107$, this equation has no solutions in natural numbers.\n\nb.\nLet $n = 101$. Then we have\n$$\n(100-k)l + (101-l)k = 2004\n$$\nOr\n$$\n100l + 101k - 2lk = 2004\n$$\nThat is,\n$$\n101k = 2004 - 100l + 2lk\n$$\nOr\n$$\n101k - 2lk = 2004 - 100l\n$$\n$$\nk(101 - 2l) = 2004 - 100l\n$$\nSo\n$$\nk = \\frac{2004 - 100l}{101 - 2l}\n$$\nSince $k$ must be a natural number, check possible $l$ values. For $l = 4$:\n$$\nk = \\frac{2004 - 400}{101 - 8} = \\frac{1604}{93} \\approx 17.25\n$$\nNot integer. For $l = 5$:\n$$\nk = \\frac{2004 - 500}{101 - 10} = \\frac{1504}{91} \\approx 16.53\n$$\nNot integer. Continue checking, but no integer solution for $n = 101$.\n\nLet $n = 102$. Then we have\n$$\n(100-k)l + (102-l)k = 2004\n$$\nOr\n$$\n100l + 102k - 2lk = 2004\n$$\n$$\n50l + 51k - lk = 1002\n$$\nRewrite the last equation as\n$$\n(51-l)(50-k) = 2550 - 1002 = 1548\n$$\nSince $1548 = 2 \\cdot 2 \\cdot 3 \\cdot 3 \\cdot 43$, try $51 - l = 36$ and $50 - k = 43$. Then $l = 15$, $k = 7$.\n\nIndeed,\n$$\n(100 - 7) \\cdot 15 + (102 - 15) \\cdot 7 = 93 \\cdot 15 + 87 \\cdot 7 = 1395 + 609 = 2004\n$$\nHence, the least $n$ is $102$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34258, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nTwo circles $k_{1}$ and $k_{2}$ intersect at points $A$ and $B$. A circle $k_{3}$ centered at $A$ meets $k_{1}$ at $M$ and $P$ and $k_{2}$ at $N$ and $Q$, such that $N$ and $Q$ are on different sides of $MP$ and $AB > AM$.\nProve that the angles $\\angle MBQ$ and $\\angle NBP$ are equal.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nAs $AM = AP$, we have\n$$\n\\angle MBA = \\frac{1}{2} \\operatorname{arc} AM = \\frac{1}{2} \\operatorname{arc} AP = \\angle ABP\n$$\nand likewise\n$$\n\\angle QBA = \\frac{1}{2} \\operatorname{arc} AQ = \\frac{1}{2} \\operatorname{arc} AN = \\angle ABN\n$$\nSumming these equalities yields $\\angle MBQ = \\angle NBP$ as needed.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34259, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $ABC$ be a triangle with $\\angle C = 90^{\\circ}$ and $D \\in CA$, $E \\in CB$, and $k_1, k_2, k_3, k_4$ semicircles with diameters $CA$, $CB$, $CD$, $CE$ respectively, which have common part with the triangle $ABC$. Let also,\n$$\nk_1 \\cap k_2 = \\{C, K\\},\\quad k_3 \\cap k_4 = \\{C, M\\},\\quad k_2 \\cap k_3 = \\{C, L\\},\\quad k_1 \\cap k_4 = \\{C, N\\}\n$$\nProve that $K, L, M$ and $N$ are cocyclic points.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nThe points $K, L, M, N$ belong to the segments $AB$, $BD$, $DE$, $EA$ respectively, where $CK \\perp AB$, $CL \\perp BD$, $CM \\perp DE$, $CN \\perp AE$. Then quadrilaterals $CDLM$ and $CENM$ are inscribed. Let $\\angle CAE = \\varphi$, $\\angle DCL = \\theta$. Then $\\angle EMN = \\angle ECN = \\varphi$ and $\\angle DML = \\angle DCL = \\theta$. So $\\angle DML + \\angle EMN = \\varphi + \\theta$ and therefore $\\angle LMN = 180^{\\circ} - \\varphi - \\theta$. The quadrilaterals $CBKL$ and $CAKN$ are also inscribed and hence $\\angle LKC = \\angle LBC = \\theta$, $\\angle CKN = \\angle CAN = \\varphi$, and so $\\angle LKN = \\varphi + \\theta$, while $\\angle LMN = 180^{\\circ} - \\varphi - \\theta$, which means that $KLMN$ is inscribed.\n\nNote that $KLMN$ is convex because $L, N$ lie in the interior of the convex quadrilateral $ADEB$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34260, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $a$, $b$, $p$, $q$ be positive integers such that $a$ and $b$ are relatively prime, $ab$ is even and $p, q \\geq 3$. Prove that\n$$\n2 a^{p} b - 2 a b^{q}\n$$\ncannot be a square of an integer number.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nWithout loss of generality, assume that $a$ is even and consequently $b$ is odd. Let $a = 2 a'$. Then\n$$\n2 a^{p} b - 2 a b^{q} = 4 a' b \\left(a^{p-1} - b^{q-1}\\right)\n$$\nIf this is a square, then $a'$, $b$ and $a^{p-1} - b^{q-1}$ are pairwise coprime.\n\nOn the other hand, $a^{p-1}$ is divisible by $4$ and $b^{q-1}$ gives the remainder $1$ when divided by $4$. It follows that $a^{p-1} - b^{q-1}$ has the form $4k + 3$, a contradiction.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34261, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all four digit numbers $A$ such that\n$$\n\\frac{1}{3} A+2000=\\frac{2}{3} \\bar{A}\n$$\nwhere $\\bar{A}$ is the number with the same digits as $A$, but written in opposite order. (For example, $\\overline{1234}=4321$.)", "options": [], "answer": "2004", "solution": "Solution:\nLet $A=1000 a+100 b+10 c+d$. Then we obtain the equality\n$$\n\\frac{1}{3}(1000 a+100 b+10 c+d)+2000=\\frac{2}{3}(1000 d+100 c+10 b+a)\n$$\nMultiply both sides by $3$ to clear denominators:\n$$\n1000 a+100 b+10 c+d + 6000 = 2000 d + 200 c + 20 b + 2 a\n$$\nBring all terms to one side:\n$$\n1000 a + 100 b + 10 c + d + 6000 - 2000 d - 200 c - 20 b - 2 a = 0\n$$\nGroup like terms:\n$$\n(1000 a - 2 a) + (100 b - 20 b) + (10 c - 200 c) + (d - 2000 d) + 6000 = 0\n$$\n$$\n998 a + 80 b - 190 c - 1999 d + 6000 = 0\n$$\n$$\n998 a + 80 b - 190 c + 6000 = 1999 d\n$$\nSo\n$$\n1999 d + 190 c = 80 b + 998 a + 6000\n$$\nIt is clear that $d$ is an even digit and $d>2$. So we have to investigate three cases:\n\n(i) $d=4$:\nComparing the last digits in the upper equality we see that $a=2$ or $a=1$.\nIf $a=2$ then $19 c=80$, which is possible only when $c=0$. Hence the number $A=2004$ satisfies the condition.\nIf $a=7$ then $19 c-8 b=490$, which is impossible.\n\n(ii) $d=6$:\nThen $190 c+5994=80 b+998 a$. Comparing the last digits we obtain that $a=3$ or $a=8$.\nIf $a=3$ then $80 b+998 a<80 \\cdot 9+1000 \\cdot 3<5994$.\nIf $a=8$ then $306+998 a \\geq 998 \\cdot 8=7984=5994+1990>5994+190 c$.\n\n(iii) $d=8$:\nThen $190 c+9992=80 b+998 a$. Now $80 b+998 a \\leq 80 \\cdot 9+998 \\cdot 9=9702<9992+190 c$.\n\nHence we have the only solution $A=2004$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34262, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all positive integers $n$, $n \\geq 3$, such that $n \\mid (n-2)!$.", "options": [], "answer": "All composite integers greater than or equal to six.", "solution": "Solution:\nFor $n=3$ and $n=4$ we easily check that $n$ does not divide $(n-2)!$.\n\nIf $n$ is prime, $n \\geq 5$, then $(n-2)! = 1 \\cdot 2 \\cdot 3 \\cdot \\ldots \\cdot (n-2)$ is not divided by $n$, since $n$ is a prime not included in the set of factors of $(n-2)!$.\n\nIf $n$ is composite, $n \\geq 6$, then $n = p m$, where $p$ is prime and $m > 1$. Since $p \\geq 2$, we have $n = p m \\geq 2 m$, and consequently $m \\leq \\frac{n}{2}$. Moreover $m < n-2$, since $n > 4$.\n\nTherefore, if $p \\neq m$, both $p$ and $m$ are distinct factors of $(n-2)!$ and so $n$ divides $(n-2)!$.\n\nIf $p = m$, then $n = p^2$ and $p > 2$ (since $n > 4$). Hence $2p < p^2 = n$. Moreover $2p < n-1$ (since $n > 4$). Therefore, both $p$ and $2p$ are distinct factors of $(n-2)!$ and so $2p^2 \\mid (n-2)!$. Hence $p^2 \\mid (n-2)!$, i.e. $n \\mid (n-2)!$.\n\nSo we conclude that $n \\mid (n-2)!$ if and only if $n$ is composite, $n \\geq 6$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34263, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIf the positive integers $x$ and $y$ are such that both $3x + 4y$ and $4x + 3y$ are perfect squares, prove that both $x$ and $y$ are multiples of $7$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nLet\n$$\n3x + 4y = m^2, \\quad 4x + 3y = n^2\n$$\nThen\n$$\n7(x + y) = m^2 + n^2 \\Rightarrow 7 \\mid m^2 + n^2\n$$\nConsidering $m = 7k + r$, $r \\in \\{0, 1, 2, 3, 4, 5, 6\\}$, we find that $m^2 \\equiv u \\pmod{7}$, $u \\in \\{0, 1, 2, 4\\}$ and similarly $n^2 \\equiv v \\pmod{7}$, $v \\in \\{0, 1, 2, 4\\}$. Therefore, we have either $m^2 + n^2 \\equiv 0 \\pmod{7}$, when $u = v = 0$, or $m^2 + n^2 \\equiv w \\pmod{7}$, $w \\in \\{1, 2, 3, 4, 5, 6\\}$.\n\nHowever, from (2) we have that $m^2 + n^2 \\equiv 0 \\pmod{7}$ and hence $u = v = 0$ and\n$$\nm^2 + n^2 \\equiv 0 \\pmod{7^2} \\Rightarrow 7(x + y) \\equiv 0 \\pmod{7^2}\n$$\nand consequently\n$$\nx + y \\equiv 0 \\pmod{7}\n$$\nMoreover, from (1) we have $x - y = n^2 - m^2$ and $n^2 - m^2 \\equiv 0 \\pmod{7}$ (since $u = v = 0$), so\n$$\nx - y \\equiv 0 \\pmod{7}\n$$\nFrom (3) and (4) we have that $x + y = 7k$, $x - y = 7l$, where $k$ and $l$ are positive integers. Hence\n$$\n2x = 7(k + l), \\quad 2y = 7(k - l)\n$$\nwhere $k + l$ and $k - l$ are positive integers. It follows that $7 \\mid 2x$ and $7 \\mid 2y$, and finally $7 \\mid x$ and $7 \\mid y$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34264, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $E$ and $F$ be two distinct points inside of a parallelogram $A B C D$. Find the maximum number of triangles with the same area and having the vertices in three of the following five points: $A, B, C, D, E, F$.", "options": [], "answer": "10", "solution": "Solution:\nWe shall use the following two well known results:\n\nLemma 1. Let $A, B, C, D$ be four points lying in the same plane such that the line $A B$ does not intersect the segment $C D$ (in particular $A B C D$ is a convex quadrilateral). If $[A B C]=[A B D]$, then $A B \\parallel C D$.\n\nLemma 2. Let $X$ be a point inside of a parallelogram $A B C D$. Then $[A C X]<[A B C]$ and $[B D X]<[B D C]$. (Here and below the notation $[S]$ stands for the area of the surface of $S$.)\n\nWith the points $A, B, C, D, E, F$ we can form 20 triangles. We will show that at most ten of them can have the same area. In that sense three cases may occur.\n\nCase 1. $E F$ is parallel with one side of the parallelogram $A B C D$.\n\nWe can assume that $E F \\parallel A D$, $E$ lies inside of the triangle $A B F$ and $F$ lies inside of the triangle $C D E$. With the points $A, B, C, D, E, F$ we can form ten pairs of triangles as follows:\n\n$(\\triangle A D E, \\triangle A E F); (\\triangle A D F, \\triangle D E F); (\\triangle B C E, \\triangle B E F); (\\triangle B C F, \\triangle C E F); (\\triangle C D E, \\triangle C D F);$\n\n$(\\triangle A B E, \\triangle A B F); (\\triangle A D C, \\triangle A C E); (\\triangle A B C, \\triangle A C F); (\\triangle A B D, \\triangle B D E); (\\triangle C B D, \\triangle B D F)$.\n\nUsing Lemmas 1-2 one can easily prove that any two triangles that belong to the same pair have distinct area, so there exists at most ten triangles having the same area.\n\nCase 2. $E F$ is parallel with a diagonal of the parallelogram $A B C D$.\n\nLet us assume $E F \\parallel A C$ and that $E, F$ lie inside of the triangle $A B C$. We consider the following pairs of triangles:\n\n$(\\triangle A B D, \\triangle B D E); (\\triangle A B C, \\triangle B C F); (\\triangle A C D, \\triangle B C E); (\\triangle A B F, \\triangle A B E); (\\triangle B E F, \\triangle D E F);$\n\n$(\\triangle A E F, \\triangle A C E); (\\triangle C E F, \\triangle A C F); (\\triangle A D E, \\triangle A D F); (\\triangle D C E, \\triangle D C F); (\\triangle C B D, \\triangle B D F)$.\n\nWith the same idea as above we deduce that any two triangles that belong to the same pair have distinct area and the conclusion follows.\n\nWe also note that if $E$ and $F$ lie on $A C$ then only 16 of 20 triangles are nondegenerate. In this case we consider the following pairs:\n\n$$(\n\\begin{aligned}\n& (\\triangle A B E, \\triangle A B F); (\\triangle A B C, \\triangle B C F); (\\triangle B C E, \\triangle B E F); (\\triangle A D E, \\triangle A D F); \\\\\n& (\\triangle A C D, \\triangle D C F); (\\triangle C D E, \\triangle E D F); (\\triangle B D E, \\triangle A B D); (\\triangle B D F, \\triangle B D C)\n\\end{aligned}\n)$$\n\nCase 3. $E F$ is not parallel with any side or diagonal of $A B C D$.\n\nWe claim that at most two of the triangles $A E F, B E F, C E F, D E F$ can have the same area. Indeed, supposing the contrary, we may have $[A E F]=[B E F]=[C E F]$. We remark first that $A, B, C$ do not belong to $E F$ (otherwise, exactly one of the above triangles is degenerate, contradiction!). Hence at least two of the points $A, B, C$ belong to the same side of the line $E F$. Using now Lemma 1 we get that $E F$ is parallel with $A B$ or $B C$ or $A C$. This is clearly a contradiction and our claim follows. With the remaining 16 triangles we form 8 pairs as follows:\n\n$(\\triangle A B D, \\triangle B D E); (\\triangle C D B, \\triangle B D F); (\\triangle A D C, \\triangle A C E); (\\triangle A B C, \\triangle A C F);$\n\n$(\\triangle A B E, \\triangle A B F); (\\triangle B C E, \\triangle B C F); (\\triangle A D E, \\triangle A D F); (\\triangle D C E, \\triangle D C F)$.\n\nWith the same arguments as above, we get at most ten triangles with the same area.\n\nTo conclude the proof, it remains only to give an example of points $E, F$ inside of the parallelogram $A B C D$ such that exactly ten of the triangles that can be formed with the vertices $A, B, C, D, E, F$ have the same area.\n\nDenote $A C \\cap B D=\\{O\\}$ and let $M, N$ be the midpoints of $A B$ and $C D$ respectively. Consider $E$ and $F$ the midpoints of $M O$ and $N O$. Then $O, M, N, E, F$ are collinear and $M E=E O=F O=N F$. Since $E$ and $F$ are the centroids of the triangles $A B F$ and $C D E$ we get $[A B E]=[A E F]=[B E F]$ and $[C E F]=[D E F]=[C D F]$. On the other hand, taking into account that $A E C F$ and $B E D F$ are parallelograms we deduce $[A E F]=[C E F]=[A C F]$ and $[B E F]=[D E F]=[B D E]=[B D F]$. From the above equalities we conclude that the triangles\n\n$\\triangle A B E, \\triangle C D F, \\triangle A C E, \\triangle A C F, \\triangle B D E, \\triangle B D F, \\triangle A E F, \\triangle B E F, \\triangle C E F, \\triangle D E F$\n\nhave the same area. This finishes our proof.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34265, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $a, b, c, d, e$ be real numbers such that $a+b+c+d+e=0$. Let, also $A=ab+bc+cd+de+ea$ and $B=ac+ce+eb+bd+da$.\nShow that\n$$\n2005 A+B \\leq 0 \\text{ or } \\quad A+2005 B \\leq 0\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\nWe have\n$$\n0=(a+b+c+d+e)^2=a^2+b^2+c^2+d^2+e^2+2A+2B\n$$\nThis implies that\n$$\nA+B \\leq 0 \\text{ or } 2006(A+B)=(2005 A+B)+(A+2005 B) \\leq 0\n$$\nThis implies the conclusion.\n\nWe have\n$$\n\\begin{aligned}\n2A+2B &= a(b+c+d+e)+b(c+d+e+a)+c(d+e+a+b) \\\\\n&\\quad +d(e+a+b+c)+e(a+b+c+d) \\\\\n&= -a^2-b^2-c^2-d^2-e^2 \\leq 0\n\\end{aligned}\n$$\nTherefore we have $A+B \\leq 0$, etc.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34266, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all positive integers $x, y$ satisfying the equation\n$$\n9\\left(x^{2}+y^{2}+1\\right)+2(3 x y+2)=2005\n$$", "options": [], "answer": "(11, 7) and (7, 11)", "solution": "Solution:\nThe given equation can be written into the form\n$$\n2(x+y)^{2}+(x-y)^{2}=664\n$$\nTherefore, both numbers $x+y$ and $x-y$ are even.\nLet $x+y=2 m$ and $x-y=2 t$, $t \\in \\mathbb{Z}$.\nNow from (1) we have that $t$ and $t^{2}$ are even and $m$ is odd.\nSo, if $t=2 k$, $k \\in \\mathbb{Z}$ and $m=2 n+1$, $n \\in \\mathbb{N}$, then from (1) we get\n$$\nk^{2}=41-2 n(n+1)\n$$\nThus $41-2 n(n+1) \\geq 0$ or $2 n^{2}+2 n-41 \\leq 0$. The last inequality is satisfied for the positive integers $n=1,2,3,4$ and for $n=0$.\nHowever, only for $n=4$, equation (2) gives a perfect square $k^{2}=1 \\Leftrightarrow k= \\pm 1$. Therefore the solutions are $(x, y)=(11,7)$ or $(x, y)=(7,11)$.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34267, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind the maximum value of the area of a triangle having side lengths $a$, $b$, $c$ with\n$$\na^{2}+b^{2}+c^{2}=a^{3}+b^{3}+c^{3}\n$$", "options": [], "answer": "sqrt(3)/4", "solution": "Solution:\nWithout any loss of generality, we may assume that $a \\leq b \\leq c$.\nOn the one hand, Tchebyshev's inequality gives\n$$\n(a+b+c)\\left(a^{2}+b^{2}+c^{2}\\right) \\leq 3\\left(a^{3}+b^{3}+c^{3}\\right)\n$$\nTherefore using the given equation we get\n$$\na+b+c \\leq 3 \\text{ or } p \\leq \\frac{3}{2}\n$$\nwhere $p$ denotes the semi perimeter of the triangle.\nOn the other hand,\n$$\np=(p-a)+(p-b)+(p-c) \\geq 3 \\sqrt[3]{(p-a)(p-b)(p-c)}\n$$\nHence\n$$\n\\begin{aligned}\np^{3} \\geq 27(p-a)(p-b)(p-c) & \\Leftrightarrow p^{4} \\geq 27 p(p-a)(p-b)(p-c) \\\\\n& \\Leftrightarrow p^{2} \\geq 3 \\sqrt{3} \\cdot S\n\\end{aligned}\n$$\nwhere $S$ is the area of the triangle.\nThus $S \\leq \\frac{\\sqrt{3}}{4}$ and equality holds whenever $a=b=c=1$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34268, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all the integer solutions of the equation\n$$\n9 x^{2} y^{2} + 9 x y^{2} + 6 x^{2} y + 18 x y + x^{2} + 2 y^{2} + 5 x + 7 y + 6 = 0\n$$", "options": [], "answer": "(-2, 0), (-3, 0), (0, -2), (-1, 2)", "solution": "Solution:\nThe equation is equivalent to the following one\n$$\n\\begin{aligned}\n& \\left(9 y^{2} + 6 y + 1\\right) x^{2} + \\left(9 y^{2} + 18 y + 5\\right) x + 2 y^{2} + 7 y + 6 = 0 \\\\\n& \\Leftrightarrow (3 y + 1)^{2} \\left(x^{2} + x\\right) + 4(3 y + 1) x + 2 y^{2} + 7 y + 6 = 0\n\\end{aligned}\n$$\nTherefore $3 y + 1$ must divide $2 y^{2} + 7 y + 6$ and so it must also divide\n$$\n9\\left(2 y^{2} + 7 y + 6\\right) = 18 y^{2} + 63 y + 54 = 2(3 y + 1)^{2} + 17(3 y + 1) + 35\n$$\nfrom which it follows that it must divide $35$ as well. Since $3 y + 1 \\in \\mathbb{Z}$ we conclude that $y \\in \\{0, -2, 2, -12\\}$ and it is easy now to get all the solutions $(-2, 0), (-3, 0), (0, -2), (-1, 2)$.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34269, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nSolve the equation\n$$\n8 x^{3}+8 x^{2} y+8 x y^{2}+8 y^{3}=15\\left(x^{2}+y^{2}+x y+1\\right)\n$$\nin the set of integers.", "options": [], "answer": "(1,2) and (2,1)", "solution": "Solution:\nWe transform the equation to the following one\n$$\n\\left(x^{2}+y^{2}\\right)(8 x+8 y-15)=15(x y+1)\n$$\nSince the right side is divisible by $3$, then $3 /\\left(x^{2}+y^{2}\\right)(8 x+8 y-15)$. But if $3 /\\left(x^{2}+y^{2}\\right)$, then $3 / x$ and $3 / y$, which will give $15(x y+1)$ and $3 /(x y+1)$, which is impossible. Hence $3 /(x+y)$ and $3$ does not divide $x$ or $y$. Without loss of generality we can assume that $x=3 a+1$ and $y=3 b+2$. Substituting in the equation, we obtain\n$$\n\\left(x^{2}+y^{2}\\right)(8(a+b)+3)=5(x y+1)\n$$\nSince $x y+1 \\equiv 0(\\bmod 3)$, we conclude that $3 /(a+b)$.\nNow we distinguish the following cases:\n- If $a+b=0$, then $x=3 a+1$ and $y=-3 a+2$ from which we get\n$$\n\\left(9 a^{2}+6 a+1+9 a^{2}-12 a+4\\right) \\cdot 3=5\\left(-9 a^{2}+3 a+3\\right) \\text{ or } 3 a^{2}-a=0\n$$\nBut $a=\\frac{1}{3}$ is not an integer, so $a=0$ and $x=1, y=2$. Thus, by symmetry, we have two solutions $(x, y)=(1,2)$ and $(x, y)=(2,1)$.\n- If $a+b \\neq 0$, then $|8(a+b)+3| \\geq 21$. So we obtain\n$$\n\\left|\\left(x^{2}+y^{2}\\right)(8(a+b)+3)\\right| \\geq 21 x^{2}+21 y^{2} \\geq|5 x y+5|\n$$\nwhich means that the equation has no other solutions.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34270, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nA triangle with area $2003$ is divided into non-overlapping small triangles. The number of all the vertices of all those triangles is $2005$. Show that at most one of the smaller triangles has area less or equal to $1$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nSince all the vertices are $2005$, and the vertices of the big triangle are among them, it follows that the number of the small triangles is at least $2003$. So, it follows that at least one of the small triangles has area at most $1$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34271, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nGovernment of Greece wants to change the building. So they will move in building with square shape $2005 \\times 2005$. Only demand is that every room has exactly 2 doors and doors cannot lead outside the building. Is this possible? What about a building $2004 \\times 2005$ ?", "options": [], "answer": "2005 by 2005: impossible; 2004 by 2005: possible.", "solution": "Solution:\n\nThe key idea is to color the table $2005 \\times 2005$ in two colors, like chessboard. One door connects two adjacent squares, so they have different colors. We can count the number of doors in two ways. The number of doors is twice the number of white squares and it is also twice the number of black squares. This is, of course, impossible, because we have one more black square on the table. So, if $n$ is odd, we cannot achieve that every room has two doors.\n\nFor table $2004 \\times 2005$ this is possible, and one of many solutions is presented on the picture below.\n\n![](attached_image_1.png)\nFigure 14", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34272, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $p_{1}, p_{2}, \\ldots, p_{2005}$ be different prime numbers. Let $\\mathrm{S}$ be a set of natural numbers whose elements have the property that their simple divisors are some of the numbers $p_{1}, p_{2}, \\ldots, p_{2005}$ and the product of any two elements from $\\mathrm{S}$ is not a perfect square.\nWhat is the maximum number of elements in $\\mathrm{S}$?", "options": [], "answer": "2^2005", "solution": "Solution:\nLet $a, b$ be two arbitrary numbers from $\\mathrm{S}$. They can be written as\n$$\na = p_{1}^{a_{1}} p_{2}^{a_{2}} \\cdots p_{2005}^{a_{2005}} \\text{ and } b = p_{1}^{\\beta_{1}} p_{2}^{\\beta_{2}} \\cdots p_{2005}^{\\beta_{2005}}\n$$\nIn order for the product of the elements $a$ and $b$ to be a square, all the sums of the corresponding exponents need to be even, from where we can conclude that for every $i$, $a_{i}$ and $\\beta_{i}$ have the same parity. If we replace all exponents of $a$ and $b$ by their remainders modulo $2$, then we get two numbers $a'$, $b'$ whose product is a perfect square if and only if $ab$ is a perfect square.\n\nIn order for the product $a' b'$ not to be a perfect square, at least one pair of the corresponding exponents modulo $2$ need to be of opposite parity.\n\nSince we form $2005$ such pairs modulo $2$, and each number in these pairs is $1$ or $2$, we conclude that we can obtain $2^{2005}$ distinct products, none of which is a perfect square.\n\nNow if we are given $2^{2005} + 1$ numbers, thanks to Dirichlet's principle, there are at least two with the same sequence of modulo $2$ exponents, thus giving a product equal to a square.\n\nSo, the maximal number of the elements of $S$ is $2^{2005}$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34273, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $ABCD$ be an isosceles trapezoid with $AB = AD = BC$, $AB \\parallel DC$, $AB > DC$. Let $E$ be the point of intersection of the diagonals $AC$ and $BD$ and $N$ be the symmetric point of $B$ with respect to the line $AC$. Prove that quadrilateral $ANDE$ is cyclic.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nLet $\\omega$ be a circle passing through the points $A$, $N$, $D$ and let $M$ be the point where $\\omega$ intersects $BD$ for the second time. The quadrilateral $ANDM$ is cyclic and it follows that\n$$\n\\angle NDM + \\angle NAM = \\angle NDM + \\angle BDC = 180^\\circ\n$$\nand\n![](attached_image_1.png)\nFigure 1\n$$\n\\angle NAM = \\angle BDC\n$$\nNow we have\n$$\n\\angle BDC = \\angle ACD = \\angle NAC\n$$\nand\n$$\n\\angle NAM = \\angle NAC\n$$\nSo the points $A$, $M$, $C$ are collinear and $M \\equiv E$.\n\nIn this solution we do not need the circle passing through the points $A$, $N$ and $D$.\nBecause of the given symmetry we have\n$$\n\\angle ANE = \\angle ABD\n$$\nand from the equality $AD = AB$ the triangle $ABD$ is isosceles with\n$$\n\\angle ABD = \\angle ADE\n$$\nFrom (1) and (2) we get that $\\angle ANE = \\angle ADE$, which means that the quadrilateral $ANDE$ is cyclic.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34274, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $ABC$ be a triangle inscribed in a circle $K$. The tangent from $A$ to the circle meets the line $BC$ at point $P$. Let $M$ be the midpoint of the line segment $AP$ and let $R$ be the intersection point of the circle $K$ with the line $BM$. The line $PR$ meets again the circle $K$ at the point $S$. Prove that the lines $AP$ and $CS$ are parallel.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n![](attached_image_1.png)\nFigure 2\nAssume that point $C$ lies on the line segment $BP$. By the Power of Point theorem we have $MA^{2} = MR \\cdot MB$ and so $MP^{2} = MR \\cdot MB$. The last equality implies that the triangles $MR$ and $MPB$ are similar. Hence $\\angle MPR = \\angle MBP$ and since $\\angle PSC = \\angle MBP$, the claim is proved.\nSlight changes are to be made if the point $B$ lies on the line segment $PC$.\n\n![](attached_image_2.png)\nFigure 3", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34275, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $ABCDEF$ be a regular hexagon. The points $M$ and $N$ are internal points of the sides $DE$ and $DC$ respectively, such that $\\angle AMN = 90^{\\circ}$ and $AN = \\sqrt{2} \\cdot CM$. Find the measure of the angle $\\angle BAM$.", "options": [], "answer": "75°", "solution": "Solution:\nSince $AC \\perp CD$ and $AM \\perp MN$ the quadrilateral $AMNC$ is inscribed. So, we have\n$$\n\\angle MAN = \\angle MCN\n$$\nLet $P$ be the projection of the point $M$ on the line $CD$. The triangles $AMN$ and $CPM$ are similar implying\n$$\n\\frac{AM}{CP} = \\frac{MN}{PM} = \\frac{AN}{CM} = \\sqrt{2}\n$$\nSo, we have\n$$\n\\frac{MP}{MN} = \\frac{1}{\\sqrt{2}} \\Rightarrow \\angle MNP = 45^{\\circ}\n$$\n\n![](attached_image_1.png)\nFigure 4\n\nHence we have\n$$\n\\angle CAM = \\angle MNP = 45^{\\circ}\n$$\nand finally, we obtain\n$$\n\\angle BAM = \\angle BAC + \\angle CAM = 75^{\\circ}\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34276, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $ABC$ be an isosceles triangle such that $AB = AC$ and $\\angle \\frac{A}{2} < \\angle B$. On the extension of the altitude $AM$ we get the points $D$ and $Z$ such that $\\angle CBD = \\angle A$ and $\\angle ZBA = 90^{\\circ}$. $E$ is the foot of the perpendicular from $M$ to the altitude $BF$ and $K$ is the foot of the perpendicular from $Z$ to $AE$. Prove that $\\angle KDZ = \\angle KBD = \\angle KZB$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nThe points $A, B, K, Z$ and $C$ are co-cyclic.\nBecause $ME \\parallel AC$ so we have\n$$\n\\angle KEM = \\angle EAC = \\angle MBK\n$$\nTherefore the points $B, K, M$ and $E$ are co-cyclic. Now, we have\n$$\n\\begin{aligned}\n& \\angle ABF = \\angle ABC - \\angle FBC \\\\\n& = \\angle AKC - \\angle EKM = \\angle MKC\n\\end{aligned}\n$$\nAlso, we have\n$$\n\\begin{aligned}\n& \\angle ABF = 90^{\\circ} - \\angle BAF = 90^{\\circ} - \\angle MBD \\\\\n& = \\angle BDM = \\angle MDC\n\\end{aligned}\n$$\nFrom (1) and (2) we get $\\angle MKC = \\angle MDC$ and so the points $M, K, D$ and $C$ are co-cyclic.\nConsequently,\n$$\n\\angle KDM = \\angle KCM = \\angle BAK = \\angle BZK,\n$$\nand because the line $BD$ is tangent to the circumcircle of triangle $ABC$, we have\n$$\n\\angle KBD = \\angle BAK\n$$\n![](attached_image_1.png)\nFigure 5\nFinally, we have\n$$\n\\angle KDZ = \\angle KBD = \\angle KZB\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34277, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $A$ and $P$ are the points of intersection of the circles $k_{1}$ and $k_{2}$ with centers $O$ and $K$, respectively. Let also $B$ and $C$ be the symmetric points of $A$ with respect to $O$ and $K$, respectively. A line through $A$ intersects the circles $k_{1}$ and $k_{2}$ at the points $D$ and $E$, respectively. Prove that the centre of the circumcircle of the triangle $D E P$ lies on the circumcircle $O K P$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nThe points $B, P, C$ are collinear, and\n$$\n\\angle A P C = \\angle A P B = 90^\\circ\n$$\nLet $N$ be the midpoint of $D P$.\nSo we have:\n$$\n\\begin{aligned}\n& \\angle N O P = \\angle D A P \\\\\n& = \\angle E C P = \\angle E C A + \\angle A C P\n\\end{aligned}\n$$\nSince $O K // B C$ and $O K$ is the bisector of $\\angle A K P$ we get\n![](attached_image_1.png)\nFigure 6\n$$\n\\angle A C P = O K P\n$$\nAlso, since $A P \\perp O K$ and $M K \\perp P E$ we have that\n$$\n\\angle A P E = \\angle M K O\n$$\nThe points $A, E, C, P$ are co-cyclic, and so $\\angle E C A = \\angle A P E$.\nTherefore, from (1), (2) and (3) we have that $\\angle N O P = \\angle M K P$.\nThus $O, M, K$ and $P$ are co-cyclic.\n\n\nIt is sufficient to prove that the quadrilateral $M O P K$ is circumscrible.\nSince $M O$ and $M K$ are perpendicular bisectors of the line segments $P D$ and $P E$, respectively, we have\nTherefore the quadrilateral $M O P K$ is circumscrible.\n\n![](attached_image_2.png)\nFigure 7", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34278, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nA point $O$ and the circles $k_{1}$ with center $O$ and radius $3$, $k_{2}$ with center $O$ and radius $5$, are given. Let $A$ be a point on $k_{1}$ and $B$ be a point on $k_{2}$. If $ABC$ is an equilateral triangle, find the maximum value of the distance $OC$.", "options": [], "answer": "8", "solution": "Solution:\n\nIt is easy to see that the points $O$ and $C$ must be in different semi-planes with respect to the line $AB$.\n\nLet $OPB$ be an equilateral triangle ($P$ and $C$ on the same side of $OB$). Since $\\angle PBC = 60^{\\circ} - \\angle ABP$ and $\\angle OBA = 60^{\\circ} - \\angle ABP$, then $\\angle PBC = \\angle OBA$. Hence the triangles $AOB$ and $CPB$ are equal and $PC = OA$. From the triangle $OPC$ we have\n$$\nOC \\leq OP + PC = OB + OA = 8\n$$\nHence, the maximum value of the distance $OC$ is $8$ (when the point $P$ lies on $OC$).\n\n![](attached_image_1.png)\nFigure 8\n\n![](attached_image_2.png)\nFigure 9\n\nLet $\\phi$ be a $60^{\\circ}$ rotation with center at $B$. Then $\\phi(A) = C$, $\\phi(O) = P$ and $PC = OA$, $OP = O$, etc.\n\nLet $OA = x$, $AB = BC = CA = a$. From the second theorem of Ptolemy we get\n$$\nOA \\cdot BC + OB \\cdot AC \\geq AB \\cdot OC \\Leftrightarrow 3a + 5a = a x \\Leftrightarrow x \\leq 8\n$$\nThe value $x = 8$ is attained when the quadrilateral $OACB$ is circumscribable, i.e. when $\\angle AOB = 120^{\\circ}$.\nThe point $B$ can be constructed as follows:\nIt is the point of intersection of the circle $(O,5)$ with the ray coming from the rotation of the ray $OA$ with center $O$ by an angle $\\theta = -120^{\\circ}$ (figure 10).\n\n![](attached_image_3.png)\nFigure 10", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34279, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $ABCD$ be a parallelogram, $P$ a point on $CD$, and $Q$ a point on $AB$. Let also $M = AP \\cap DQ$, $N = BP \\cap CQ$, $K = MN \\cap AD$, and $L = MN \\cap BC$. Show that $BL = DK$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nLet $O$ be the intersection of the diagonals. Let $P_1$ be on $AB$ such that $PP_1 \\parallel AD$, and let $Q_1$ be on $CD$ such that $QQ_1 \\parallel AD$. Let $\\sigma$ be the central symmetry with center $O$. Let $P' = \\sigma(P)$, $Q' = \\sigma(Q)$, $P_1' = \\sigma(P_1)$.\n\nLet $M_1 = AQ_1 \\cap DP_1$, $N_1 = BQ_1 \\cap CP_1$, $N' = AQ' \\cap DP'$, and $M' = BQ' \\cap CP'$. Then: $M' = \\sigma(M)$, $N' = \\sigma(N)$, $M_1' = \\sigma(M_1)$, and $N_1' = \\sigma(N_1)$.\n\nSince $AP$ and $DP_1$ are the diagonals of the parallelogram $AP_1PD$, $CP_1$ and $BP$ are the diagonals of the parallelogram $P_1BCP$, and $AQ_1$ and $DO$ are the diagonals of the parallelogram $AQQ_1D$, it follows that the points $U, V, W$ (figure 2) are collinear and they lie on the line passing through the midpoints $R$ of $AD$ and $Z$ of $BC$. The diagonals $AM$ and $DM_1$ of the quadrilateral $AM_1MD$ intersect at $U$ and the diagonals $AM_1$ and $DM$ intersect at $W$. Since the midpoint of $AD$ is on the line $UW$, it follows that the quadrilateral $AM_1MD$ is a trapezoid. Hence, $MM_1$ is parallel to $AD$ and the midpoint $S$ of $MM_1$ lies on the line $UW$ (figure 2).\n\n![](attached_image_1.png)\nFigure 11\n\nSimilarly $M'M_1'$ is parallel to $AD$ and its midpoint lies on $UW$. So $M_1M'M_1'M$ is a parallelogram whose diagonals intersect at $O$.\n\nSimilarly, $N_1'N N_1N'$ is a parallelogram whose diagonals intersect at $O$.\n\nAll these imply that $M, N, M', N'$ and $O$ are collinear, i.e. $O$ lies on the line $KL$. This implies that $K = \\sigma(L)$, and since $D = \\sigma(B)$, the conclusion follows.\n\n![](attached_image_2.png)\nFigure 12\nSolution:\n\nLet the line $\\varepsilon$ through the points $M, N$ intersect the lines $DC, AB$ at points $T_1, T_2$ respectively. Applying Menelaus' Theorem to the triangles $DQC$, $APB$ with intersecting line $\\varepsilon$ in both cases we get:\n\n$$\n\\frac{MD}{MQ} \\cdot \\frac{NQ}{NC} \\cdot \\frac{T_1C}{T_1D} = 1 \\quad \\text{and} \\quad \\frac{MP}{MA} \\cdot \\frac{NB}{NP} \\cdot \\frac{T_2A}{T_2B} = 1\n$$\n\nBut it is true that $\\frac{MD}{MQ} = \\frac{MP}{MA}$ and $\\frac{NQ}{NC} = \\frac{NB}{NP}$.\n\nIt follows that $\\frac{T_1C}{T_1D} = \\frac{T_2A}{T_2B}$, i.e. $\\frac{T_1D + DC}{T_1D} = \\frac{T_2B + BA}{T_2B}$, hence $T_1D = T_2B$ (since $DC = BA$).\n\nThen of course by the similarity of the triangles $T_1DK$ and $T_2BL$ we get the desired equality $DK = BL$.\n\n![](attached_image_3.png)\nFigure 13", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34280, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all natural numbers $n$ such that $5^{n} + 12^{n}$ is a perfect square.", "options": [], "answer": "2", "solution": "Solution:\nBy checking the cases $n=1,2,3$ we get the solution $n=2$ and $13^{2}=5^{2}+12^{2}$.\n\nIf $n=2k+1$ is odd, we consider the equation modulo $5$ and we obtain\n$$\n\\begin{aligned}\nx^{2} & \\equiv 5^{2k+1}+12^{2k+1} \\pmod{5} \\equiv 2^{2k} \\cdot 2 \\pmod{5} \\\\\n& \\equiv (-1)^{k} \\cdot 2 \\pmod{5} \\equiv \\pm 2 \\pmod{5}\n\\end{aligned}\n$$\nThis is not possible, because the square residue of any natural number modulo $5$ is $0,1$ or $4$. Therefore $n$ is even and $x^{2}=5^{2k}+12^{2k}$. Rearrange this equation in the form\n$$\n5^{2k} = (x-12^{k})(x+12^{k})\n$$\nIf $5$ divides both factors on the right, it must also divide their difference, that is\n$$\n5 \\mid (x+12^{k})-(x-12^{k}) = 2 \\cdot 12^{k}\n$$\nwhich is not possible. Therefore we must have\n$$\nx-12^{k}=1 \\text{ and } x+12^{k}=5^{2k}\n$$\nBy adding the above equalities we get\n$$\n5^{2k}-1=2 \\cdot 12^{k}\n$$\nFor $k \\geq 2$, we have the inequality\n$$\n25^{k}-1 > 24^{k} = 2^{k} \\cdot 12^{k} > 2 \\cdot 12^{k}\n$$\nThus we conclude that there exists a unique solution to our problem, namely $n=2$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34281, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $p$ be an odd prime. Prove that $p$ divides the integer\n$$\n\\frac{2^{p!}-1}{2^{k}-1}\n$$\nfor all integers $k=1,2, \\ldots, p$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nAt first, note that $\\frac{2^{p!}-1}{2^{k}-1}$ is indeed an integer.\n\nWe start with the case $k=p$. Since $p \\mid 2^{p}-2$, then $p / 2^{p}-1$ and so it suffices to prove that $p \\mid 2^{p!}-1$. This is obvious as $p \\mid 2^{p-1}-1$ and $\\left(2^{p-1}-1\\right) \\mid 2^{p!}-1$.\n\nIf $k=1,2, \\ldots, p-1$, let $m=\\frac{(p-1)!}{k} \\in \\mathbb{N}$ and observe that $p!=k m p$. Consider $a \\in \\mathbb{N}$ so that $p^{a} \\mid 2^{k}-1$ and observe that it suffices to prove $p^{a+1} \\mid 2^{p!}-1$. The case $a=0$ is solved as the case $k=p$. If else, write $2^{k}=1+p^{a} \\cdot l,\\ l \\in \\mathbb{N}$ and raising to the power $mp$ gives\n$$\n2^{p!}=\\left(1+p^{a} \\cdot l\\right)^{m p}=1+m p \\cdot p^{a} \\cdot l+M p^{2 a}\n$$\nwhere $M n$ stands for a multiple of $n$. Now it is clear that $p^{a+1} \\mid 2^{p!}-1$, as claimed.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34282, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all the three digit numbers $\\overline{a b c}$ such that\n$$\n\\overline{a b c}=a b c(a+b+c)\n$$", "options": [], "answer": "135 and 144", "solution": "Solution:\nWe will show that the only solutions are 135 and 144.\nWe have $a>0, b>0, c>0$ and\n$$\n9(11 a+b)=(a+b+c)(a b c-1)\n$$\n- If $a+b+c \\equiv 0\\pmod{3}$ and $a b c-1 \\equiv 0\\pmod{3}$, then $a \\equiv b \\equiv c \\equiv 1\\pmod{3}$ and $11 a+b \\equiv 0\\pmod{3}$. It follows now that\n$$\na+b+c \\equiv 0\\pmod{9} ; \\text{ or } a b c-1 \\equiv 0\\pmod{9}\n$$\n- If $a b c-1 \\equiv 0\\pmod{9}$\nwe have $11 a+b=(a+b+c) k$, where $k$ is an integer\nand is easy to see that we must have $19$.\nNow we will deal with the case when $a+b+c \\equiv 0\\pmod{9}$ or $a+b+c=9 l$, where $l$ is an integer.\n- If $l \\geq 2$ we have $a+b+c \\geq 18, \\max \\{a, b, c\\} \\geq 6$ and it is easy to see that $a b c \\geq 72$ and $a b c(a+b+c)>1000$, so the case $l \\geq 2$ is impossible.\n- If $l=1$ we have\n$$\n11 a+b=a b c-1 \\text{ or } 11 a+b+1=a b c \\leq\\left(\\frac{a+b+c}{3}\\right)^{3}=27\n$$\nSo we have only two cases: $a=1$ or $a=2$.\n- If $a=1$, we have $b+c=8$ and $11+b=b c-1$ or $b+(c-1)=7$ and $b(c-1)=12$ and the solutions are $(a, b, c)=(1,3,5)$ and $(a, b, c)=(1,4,4)$, and the answer is 135 and 144.\n- If $a=2$ we have $b(2 c-1)=23$ and there is no solution for the problem.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34283, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $p$ be a prime number and let $a$ be an integer. Show that if $n^{2}-5$ is not divisible by $p$ for any integer $n$, there exist infinitely many integers $m$ so that $p$ divides $m^{5}+a$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nWe start with a simple fact:\n\nLemma: If $b$ is an integer not divisible by $p$ then there is an integer $s$ so that $s b$ has the remainder $l$ when divided by $p$.\nFor a proof, just note that numbers $b, 2b, \\ldots, (p-1)b$ have distinct non-zero remainders when divided by $p$, and hence one of them is equal to $1$.\n\nWe prove that if $x, y = 0, 1, 2, \\ldots, p-1$ and $p$ divides $x^{5} - y^{5}$, then $x = y$.\nIndeed, assume that $x \\neq y$. If $x = 0$, then $p \\mid y^{5}$ and so $y = 0$, a contradiction.\nTo this point we have $x, y \\neq 0$. Since\n$$\np \\mid (x-y)\\left(x^{4} + x^{3}y + x^{2}y^{2} + x y^{3} + y^{4}\\right)\n$$\nand $p \\nmid (x-y)$,\nwe have\n$$\n\\begin{aligned}\n& p \\mid \\left(x^{2} + y^{2}\\right)^{2} + x y \\left(x^{2} + y^{2}\\right) - x^{2} y^{2}, \\text{ and so } \\\\\n& p \\mid \\left(2\\left(x^{2} + y^{2}\\right) + x y\\right)^{2} - 5 x^{2} y^{2}\n\\end{aligned}\n$$\nAs $p \\nmid x y$, from the lemma we find an integer $s$ so that $s x y = k p + 1$, $k \\in \\mathbb{N}$. Then\n$$\np \\mid \\left[s\\left(2 x^{2} + 2 y^{2} + x y\\right)\\right]^{2} - 5\\left(k^{2} p^{2} + 2 k p + 1\\right)\n$$\nand so $p \\mid z^{2} - 5$, where $z = s\\left(2 x^{2} + 2 y^{2} + x y\\right)$, a contradiction.\nConsequently $x = y$.\n\nSince we have proved that numbers $0^{5}, 1^{5}, \\ldots, (p-1)^{5}$ have distinct remainders when divided by $p$, the same goes for the numbers $0^{5} + a, 1^{5} + a, \\ldots, (p-1)^{5} + a$ and the conclusion can be reached easily.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34284, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $a$, $b$, $c$ and $m_a$, $m_b$, $m_c$ be respectively the lengths of the sides and the medians of an acute-angled triangle $ABC$. Prove that\n$$\n\\frac{m_a^2}{b^2 + c^2 - a^2} + \\frac{m_b^2}{c^2 + a^2 - b^2} + \\frac{m_c^2}{a^2 + b^2 - c^2} \\geq \\frac{9}{4}\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nTaking into consideration that the triangle $ABC$ is acute-angled, using the formulae\n$$\n4 m_a^2 = 2 b^2 + 2 c^2 - a^2, \\quad 4 m_b^2 = 2 a^2 + 2 c^2 - b^2, \\quad 4 m_c^2 = 2 a^2 + 2 b^2 - c^2\n$$\nand using the notations $x = b^2 + c^2 - a^2 > 0$, $y = a^2 + c^2 - b^2 > 0$, $z = a^2 + b^2 - c^2 > 0$, we shall prove the equivalent inequality\n$$\n\\frac{4x + y + z}{x} + \\frac{4y + z + x}{y} + \\frac{4z + x + y}{z} \\geq 18\n$$\nBut\n$$\n\\frac{4x + y + z}{x} + \\frac{4y + z + x}{y} + \\frac{4z + x + y}{z} = 4\\left(\\frac{x}{x} + \\frac{y}{y} + \\frac{z}{z}\\right) + \\frac{y + z}{x} + \\frac{z + x}{y} + \\frac{x + y}{z} = 12 + \\left(\\frac{y}{x} + \\frac{z}{x} + \\frac{z}{y} + \\frac{x}{y} + \\frac{x}{z} + \\frac{y}{z}\\right)\n$$\nBy the AM-GM inequality,\n$$\n\\frac{y}{x} + \\frac{z}{x} + \\frac{z}{y} + \\frac{x}{y} + \\frac{x}{z} + \\frac{y}{z} \\geq 6\n$$\nTherefore,\n$$\n12 + 6 = 18\n$$\nEquality holds if and only if $x = y = z$, that is, for the equilateral triangle.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34285, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $x, y, z$ be non-negative numbers such that $x + 2y + 3z = \\frac{11}{12}$. Prove that\n$$\n63xy + 4x + 2yz + 6x + 3y + 4z + 72xyz \\leq \\frac{17}{18}\n$$\nWhen does equality hold?", "options": [], "answer": "The expression is at most 17/18, with equality at x = 2/3, y = 1/12, z = 1/30.", "solution": "Solution:\nLet $x + 2y + 3z = \\frac{11}{12}$.\n\nUsing the notations $a = bx$, $b = 3$, and $c = 2$, from the equation we obtain the equality\n$$\n2a + 8b + 9c = 11.\n$$\n\nWe also have\n$$\na b c + a b + a c + b c + a + b + c + 1 = (a + 1)(b + 1)(c + 1) \\times \\frac{125}{18}.\n$$\n\nBy using the inequality\n$$\n\\begin{gathered}\n14(a + 1 + b - 1) = (2c + 2) + 6 + 8) 0c + 9 = \\\\\n\\left.\\frac{2a + 2 + b + 8 + 9c + 9}{3}\\right) = \\left(\\frac{2a + 8b + 9c + 1}{3}\\right) = 10\n\\end{gathered}\n$$\n\nFrom the basic inequality, it follows that $(a + 1)(b + 1)(c + 1) \\leq \\frac{125}{18}$.\n\nEquality holds if $2a + 8b + 9c = 10$ or $a = 4, b = \\frac{1}{4}$, $c = \\frac{1}{9}$, that is $x = \\frac{2}{3}$, $y = \\frac{1}{12}$, $z = \\frac{1}{30}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34286, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $ABCD$ be a trapezoid with $AB \\parallel CD$ and $AB > CD$. It is given that the sum of the angles at the base $AB$ is equal to $90^{\\circ}$. Prove that the distance between the midpoints of the parallel sides is equal to $\\frac{1}{2}(AB - CD)$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nLet $E$ be the intersection point of $AD$ and $BC$. The point $E$ is on the line through the midpoints $K$ and $F$ of the parallel sides. Let $G$ and $H$ be the points on $AB$, such that $EG$ and $CH$ are parallel to $AE$. Then the triangle $CHG$ is right-angled with the right angle at $C$ and the median $CO$, $SO$.\n\n$KF = CG = \\frac{1}{2}HB = \\frac{1}{2}(AB - AH) = \\frac{1}{2}(AB - CD)$\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34287, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nProve that $\\frac{a^{2}-b c}{2 a^{2}+b c}+\\frac{b^{2}-c a}{2 b^{2}+c a}+\\frac{c^{2}-a b}{2 c^{2}+a b} \\leq 0$ for any real positive numbers $a, b, c$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nThe inequality rewrites as $\\sum \\frac{2 a^{2}+b c-3 b c}{2 a^{2}+b c} \\leq 0$, or $3-3 \\sum \\frac{b c}{2 a^{2}+b c} \\leq 0$ in other words $\\sum \\frac{b c}{2 a^{2}+b c} \\geq 1$.\n\nUsing Cauchy-Schwarz inequality we have\n$$\n\\sum \\frac{b c}{2 a^{2}+b c}=\\sum \\frac{b^{2} c^{2}}{2 a^{2} b c+b^{2} c^{2}} \\geq \\frac{\\left(\\sum b c\\right)^{2}}{2 a b c(a+b+c)+\\sum b^{2} c^{2}}=1\n$$\nas claimed.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34288, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $A$ be a set of positive integers containing the number $1$ and at least one more element. Given that for any two different elements $m, n$ of $A$ the number $\\frac{m+1}{(m+1, n+1)}$ is also an element of $A$, prove that $A$ coincides with the set of positive integers.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nLet $a > 1$ be the lowest number in $A \\setminus \\{1\\}$. For $m = a$, $n = 1$ one gets $y = \\frac{a+1}{(2, a+1)} \\in A$. Since $(2, a+1)$ is either $1$ or $2$, then $y = a+1$ or $y = \\frac{a+1}{2}$.\n\nBut $1 < \\frac{a+1}{2} < a$, hence $y = a+1$. Applying the given property for $m = a+1$, $n = a$ one has $\\frac{a+2}{(a+2, a+1)} = a+2 \\in A$, and inductively $t \\in A$ for all integers $t \\geq a$.\n\nFurthermore, take $m = 2a-1$, $n = 3a-1$ (now in $A$!); as $(m+1, n+1) = (2a, 3a) = a$ one obtains $\\frac{2a}{a} = 2 \\in A$, so $a = 2$, by the definition of $a$.\n\nThe conclusion follows immediately.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34289, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nThe real numbers $x$, $y$, $z$, $m$, $n$ are positive, such that $m+n \\geq 2$. Prove that\n$$\n\\begin{gathered}\nx \\sqrt{y z(x+m y)(x+n z)}+y \\sqrt{x z(y+m x)(y+n z)}+z \\sqrt{x y(z+m x)(z+n y)} \n\\\\\n\\leq \\frac{3(m+n)}{8}(x+y)(y+z)(z+x)\n\\end{gathered}\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nUsing the AM-GM inequality we have\n$$\n\\begin{aligned}\n& \\sqrt{y z(x+m y)(x+n z)}=\\sqrt{(x z+m y z)(x y+n y z)} \\leq \\frac{x y+x z+(m+n) y z}{2} \\\\\n& \\sqrt{x z(y+m x)(y+n z)}=\\sqrt{(y z+m x z)(x y+n x z)} \\leq \\frac{x y+y z+(m+n) x z}{2} \\\\\n& \\sqrt{x y(z+m x)(z+n y)}=\\sqrt{(y z+m x y)(x z+n x y)} \\leq \\frac{x z+y z+(m+n) x y}{2}\n\\end{aligned}\n$$\nThus it is enough to prove that\n$$\n\\begin{aligned}\nx[x y+x z+(m+n) y z] & +y[x y+y z+(m+n) x z]+z[x y+y z+(m+n) x z] \\\\\n\\leq & \\frac{3(m+n)}{4}(x+y)(y+z)(z+x),\n\\end{aligned}\n$$\nor\n$$\n4[A+3(m+n) B] \\leq 3(m+n)(A+2 B) \\Leftrightarrow 6(m+n) B \\leq[3(m+n)-4] A\n$$\nwhere $A=x^{2} y+x^{2} z+x y^{2}+y^{2} z+x z^{2}+y z^{2}$, $B=x y z$.\nBecause $m+n \\geq 2$ we obtain the inequality $m+n \\leq 3(m+n)-4$. From AM-GM inequality it follows that $6 B \\leq A$. From the last two inequalities we deduce that $6(m+n) B \\leq[3(m+n)-4] A$. The inequality is proved.\n\nEquality holds when $m=n=1$ and $x=y=z$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34290, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nThe nonnegative integer $n$ and $(2n+1) \\times (2n+1)$ chessboard with squares colored alternatively black and white are given. For every natural number $m$ with $1 < m < 2n+1$, an $m \\times m$ square of the given chessboard that has more than half of its area colored in black is called a $B$-square. If the given chessboard is a $B$-square, find in terms of $n$ the total number of $B$-squares of this chessboard.", "options": [], "answer": "((n+1)(2n^2 + 4n + 3))/3", "solution": "Solution:\n\nEvery square with even side length will have an equal number of black and white $1 \\times 1$ squares, so it isn't a $B$-square. In a square with odd side length, there is one more $1 \\times 1$ black square than white squares, if it has black corner squares. So, a square with odd side length is a $B$-square either if it is a $1 \\times 1$ black square or it has black corners.\n\nLet the given $(2n+1) \\times (2n+1)$ chessboard be a $B$-square and denote by $b_{i}$ ($i=1,2, \\ldots, n+1$) the lines of the chessboard which have $n+1$ black $1 \\times 1$ squares, by $w_{i}$ ($i=1,2, \\ldots, n$) the lines of the chessboard which have $n$ black $1 \\times 1$ squares, and by $T_{m}$ ($m=1,3,5, \\ldots, 2n-1,2n+1$) the total number of $B$-squares of dimension $m \\times m$ of the given chessboard.\n\nFor $T_{1}$ we obtain $T_{1} = (n+1)(n+1) + n \\cdot n = (n+1)^{2} + n^{2}$.\n\nFor computing $T_{3}$ we observe that there are $n$ $3 \\times 3$ $B$-squares, which have the black corners on each pair of lines $(b_{i}, b_{i+1})$ for $i=1,2, \\ldots, n$ and there are $n-1$ $3 \\times 3$ $B$-squares, which have the black corners on each pair of lines $(w_{i}, w_{i+1})$ for $i=1,2, \\ldots, n-1$. So, we have\n$$\nT_{3} = n \\cdot n + (n-1)(n-1) = n^{2} + (n-1)^{2}.\n$$\n\nBy using similar arguments for each pair of lines $(b_{i}, b_{i+2})$ for $i=1,2, \\ldots, n-1$ and for each pair of lines $(w_{i}, w_{i+2})$ for $i=1,2, \\ldots, n-2$ we compute\n$$\nT_{5} = (n-1)(n-1) + (n-2)(n-2) = (n-1)^{2} + (n-2)^{2}.\n$$\n\nStep by step, we obtain\n$$\n\\begin{gathered}\nT_{7} = (n-2)(n-2) + (n-3)(n-3) = (n-2)^{2} + (n-3)^{2} \\\\\n\\ldots \\ldots \\ldots \\ldots \\ldots \\ldots \\ldots \\ldots \\ldots \\ldots \\ldots \\ldots \\ldots \\ldots \\ldots \\ldots \\\\\nT_{2n-1} = 2 \\cdot 2 + 1 \\cdot 1 = 2^{2} + 1^{2} \\\\\nT_{2n+1} = 1 \\cdot 1 = 1^{2}\n\\end{gathered}\n$$\n\nThe total number of $B$-squares of the given chessboard equals to\n$$\n\\begin{gathered}\nT_{1} + T_{3} + T_{5} + \\ldots + T_{2n+1} = 2\\left(1^{2} + 2^{2} + \\ldots + n^{2}\\right) + (n+1)^{2} = \\\\\n\\frac{n(n+1)(2n+1)}{3} + (n+1)^{2} = \\frac{(n+1)\\left(2n^{2} + 4n + 3\\right)}{3}\n\\end{gathered}\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34291, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $M$ be an interior point of the triangle $A B C$ with angles $\\varangle B A C = 70^{\\circ}$ and $\\varangle A B C = 80^{\\circ}$. If $\\varangle A C M = 10^{\\circ}$ and $\\varangle C B M = 20^{\\circ}$, prove that $A B = M C$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nLet $O$ be the circumcenter of the triangle $A B C$. Because the triangle $A B C$ is acute, $O$ is in the interior of $\\triangle A B C$. Now we have that $\\varangle A O C = 2 \\varangle A B C = 160^{\\circ}$, so $\\varangle A C O = 10^{\\circ}$ and $\\varangle B O C = 2 \\varangle B A C = 140^{\\circ}$, so $\\varangle C B O = 20^{\\circ}$. Therefore $O \\equiv M$, thus $M A = M B = M C$. Because $\\varangle A B O = 80^{\\circ} - 20^{\\circ} = 60^{\\circ}$, the triangle $A B M$ is equilateral and so $A B = M B = M C$.\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34292, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet the inscribed circle of the triangle $\\triangle ABC$ touch side $BC$ at $M$, side $CA$ at $N$ and side $AB$ at $P$. Let $D$ be a point from $[NP]$ such that $\\frac{DP}{DN}=\\frac{BD}{CD}$. Show that $DM \\perp PN$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nFrom $AP = AN$ it follows that $\\angle ANP = \\angle APN$ or $\\angle NPB = \\angle PNC$ (both obtuse). Hence the triangles $BDP$ and $CND$ are similar (SSA) and $\\angle CDN = \\angle BDP$ and $\\frac{CD}{BD} = \\frac{CN}{BP} = \\frac{CM}{BM}$. So $DM$ is a bisector of the angle $BDC$, from where $NP \\perp MD$.\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34293, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $S$ be a point inside $\\varangle p O q$, and let $k$ be a circle which contains $S$ and touches the legs $O p$ and $O q$ in points $P$ and $Q$ respectively. Straight line $s$ parallel to $O p$ from $S$ intersects $O q$ in a point $R$. Let $T$ be the point of intersection of the ray $P S$ and circumscribed circle of $\\triangle S Q R$ and $T \\neq S$. Prove that $O T \\| S Q$ and $O T$ is a tangent of the circumscribed circle of $\\triangle S Q R$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nLet $\\varangle O P S=\\varphi_{1}$ and $\\varangle O Q S=\\varphi_{2}$. We have that $\\varangle O P S=\\varangle P Q S=\\varphi_{1}$ and $\\varangle O Q S=\\varangle Q P S=\\varphi_{2}$ (tangents to circle $k$).\n\nBecause $R S \\| O P$ we have $\\varangle O P S=\\varangle R S T=\\varphi_{1}$ and $\\varangle R Q T=\\varangle R S T=\\varphi_{1}$ (cyclic quadrilateral $R S Q T$). So, we have as follows $\\varangle O P T=\\varphi_{1}=\\varangle R Q T=\\varangle O Q T$, which implies that the quadrilateral $O P Q T$ is cyclic. From that we directly obtain $\\varangle Q O T=\\varangle Q P T=\\varphi_{2}=\\varangle O Q S$, so $O T \\| S Q$.\n\nFrom the cyclic quadrilateral $O P Q T$ by easy calculation we get\n$$\n\\varangle O T R=\\varangle O T P-\\varangle R T S=\\varangle O Q P-\\varangle R Q S=\\left(\\varphi_{1}+\\varphi_{2}\\right)-\\varphi_{2}=\\varphi_{1}=\\varangle R Q T\n$$\nThus, $O T$ is a tangent to the circumscribed circle of $\\triangle S Q R$.\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34294, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nProve that the equation $x^{2006} - 4 y^{2006} - 2006 = 4 y^{2007} + 2007 y$ has no solution in the set of the positive integers.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nWe assume the contrary is true. So there are $x$ and $y$ that satisfy the equation. Hence we have\n$$\n\\begin{gathered}\nx^{2006} = 4 y^{2007} + 4 y^{2006} + 2007 y + 2006 \\\\\nx^{2006} + 1 = 4 y^{2006}(y + 1) + 2007(y + 1) \\\\\nx^{2006} + 1 = \\left(4 y^{2006} + 2007\\right)(y + 1)\n\\end{gathered}\n$$\nBut $4 y^{2006} + 2007 \\equiv 3 \\pmod{4}$, so $x^{2006} + 1$ will have at least one prime divisor of the type $4k + 3$. It is known (and easily obtainable by using Fermat's Little Theorem) that this is impossible.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34295, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $n > 1$ be a positive integer and $p$ a prime number such that $n \\mid (p-1)$ and $p \\mid \\left(n^{6}-1\\right)$. Prove that at least one of the numbers $p-n$ and $p+n$ is a perfect square.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nSince $n \\mid p-1$, then $p = 1 + n a$, where $a \\geq 1$ is an integer. From the condition $p \\mid n^{6}-1$, it follows that $p \\mid n-1$, $p \\mid n+1$, $p \\mid n^{2}+n+1$ or $p \\mid n^{2}-n+1$.\n\n- Let $p \\mid n-1$. Then $n \\geq p+1 > n$ which is impossible.\n\n- Let $p \\mid n+1$. Then $n+1 \\geq p = 1 + n a$ which is possible only when $a=1$ and $p = n+1$, i.e. $p-n = 1 = 1^{2}$.\n\n- Let $p \\mid n^{2}+n+1$, i.e. $n^{2}+n+1 = p b$, where $b \\geq 1$ is an integer.\n\nThe equality $p = 1 + n a$ implies $n \\mid b-1$, from where $b = 1 + n c$, $c \\geq 0$ is an integer. We have\n$$\nn^{2}+n+1 = p b = (1 + n a)(1 + n c) = 1 + (a + c) n + a c n^{2} \\text{ or } n+1 = a c n + a + c\n$$\nIf $a c \\geq 1$ then $a + c \\geq 2$, which is impossible. If $a c = 0$ then $c = 0$ and $a = n+1$. Thus we obtain $p = n^{2} + n + 1$ from where $p+n = n^{2} + 2 n + 1 = (n+1)^{2}$.\n\n- Let $p \\mid n^{2}-n+1$, i.e. $n^{2}-n+1 = p b$ and analogously $b = 1 + n c$. So\n$$\nn^{2}-n+1 = p b = (1 + n a)(1 + n c) = 1 + (a + c) n + a c n^{2} \\text{ or } n-1 = a c n + a + c\n$$\nSimilarly, we have $c = 0$, $a = n-1$ and $p = n^{2} - n + 1$ from where $p-n = n^{2} - 2 n + 1 = (n-1)^{2}$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34296, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $a$, $b$ be two co-prime positive integers. A number is called good if it can be written in the form $a x + b y$ for non-negative integers $x$, $y$. Define the function $f: \\mathbb{Z} \\rightarrow \\mathbb{Z}$ as $f(n) = n - n_{a} - n_{b}$, where $s_{t}$ represents the remainder of $s$ upon division by $t$. Show that an integer $n$ is good if and only if the infinite sequence $n, f(n), f(f(n)), \\ldots$ contains only non-negative integers.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nIf $n$ is good then $n = a x + b y$. Also $n_{a} = (b y)_{a}$ and $n_{b} = (a x)_{b}$ so\n$$\nf(n) = a x - (a x)_{b} + b y - (b y)_{a} = b y' + a x'\n$$\nis also good, thus the sequence contains only good numbers which are non-negative.\n\nNow we have to prove that if the sequence contains only non-negative integers then $n$ is good. Because the sequence is non-increasing, the sequence will become constant from some point onwards. But $f(k) = k$ implies that $k$ is a multiple of $a b$, thus some term of the sequence is good. We are done if we prove the following:\n\nLemma: $f(n)$ is good implies $n$ is good.\n\nProof of Lemma: $n = 2 n - n_{a} - n_{b} - f(n) = a x' + b y' - a x - b y = a(x' - x) + b(y' - y)$ and $x' \\geq x$ because $n \\geq f(n) \\Rightarrow n - n_{a} \\geq f(n) - f(n)_{a} \\Rightarrow a x' \\geq a x + b y - (b y)_{a} \\geq a x$. Similarly $y' \\geq y$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34297, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nIf for the real numbers $x$, $y$, $z$, $k$ the following conditions are valid, $x \\neq y \\neq z \\neq x$ and\n$$\nx^{3} + y^{3} + k(x^{2} + y^{2}) = y^{3} + z^{3} + k(y^{2} + z^{2}) = z^{3} + x^{3} + k(z^{2} + x^{2}) = 2008,\n$$\nfind the product $x y z$.", "options": [], "answer": "1004", "solution": "Solution:\n$x^{3} + y^{3} + k(x^{2} + y^{2}) = y^{3} + z^{3} + k(y^{2} + z^{2}) \\Rightarrow x^{2} + xz + z^{2} = -k(x + z)$ \\:(1)\nand $y^{3} + z^{3} + k(y^{2} + z^{2}) = z^{3} + x^{3} + k(z^{2} + x^{2}) \\Rightarrow y^{2} + yx + x^{2} = -k(y + x)$ \\:(2)\n\n- From (1) $-(2) \\Rightarrow x + y + z = -k$ \\:(*)\n\n- If $x + z = 0$, then from (1) $\\Rightarrow x^{2} + xz + z^{2} = 0 \\Rightarrow (x + z)^{2} = xz \\Rightarrow xz = 0$\nSo $x = z = 0$, contradiction since $x \\neq z$ and therefore (1) $\\Rightarrow -k = \\frac{x^{2} + xz + z^{2}}{x + z}$\nSimilarly we have: $-k = \\frac{y^{2} + yx + x^{2}}{y + x}$.\nSo $\\frac{x^{2} + xz + z^{2}}{x + z} = \\frac{y^{2} + x y + x^{2}}{x + y}$ from which $xy + yz + zx = 0$ \\:(**)\n\nWe substitute $k$ in $x^{3} + y^{3} + k(x^{2} + y^{2}) = 2008$ from the relation (*) and using the (**), we finally obtain that $2 x y z = 2008$ and therefore $x y z = 1004$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34298, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet the real parameter $p$ be such that the system\n\n$$\n\\left\\{\\begin{array}{l}\np\\left(x^{2}-y^{2}\\right)=\\left(p^{2}-1\\right) x y \\\\\n|x-1|+|y|=1\n\\end{array}\\right.\n$$\n\nhas at least three different real solutions. Find $p$ and solve the system for that $p$.", "options": [], "answer": "p = 1 or p = -1; for these values, all solutions are (x, y) with 0 ≤ x ≤ 1 and y = x or y = −x.", "solution": "Solution:\nThe second equation is invariant when $y$ is replaced by $-y$, so let us assume $y \\geq 0$. It is also invariant when $x-1$ is replaced by $-(x-1)$, so let us assume $x \\geq 1$. Under these conditions the equation becomes $x+y=2$, which defines a line on the coordinate plane. The set of points on it that satisfy the inequalities is a segment with endpoints $(1,1)$ and $(2,0)$. Now taking into account the invariance under the mentioned replacements, we conclude that the set of points satisfying the second equation is the square $\\diamond$ with vertices $(1,1),(2,0),(1,-1)$ and $(0,0)$.\n\nThe first equation is equivalent to\n$$\np x^{2}-p^{2} x y+x y-p y^{2}=0\n$$\n$$\np x(x-p y)+y(x-p y)=0\n$$\n$$\n(p x+y)(x-p y)=0.\n$$\nThus $y=-p x$ or $x=p y$. These are equations of two perpendicular lines passing through the origin, which is also a vertex of $\\diamond$. If one of them passes through an interior point of the square, the other cannot have any common points with $\\diamond$ other than $(0,0)$, so the system has two solutions. Since we have at least three different real solutions, the lines must contain some sides of $\\diamond$, i.e. the slopes of the lines have to be $1$ and $-1$. This happens if $p=1$ or $p=-1$. In either case $x^{2}=y^{2}$, $|x|=|y|$, so the second equation becomes $|1-x|+|x|=1$. It is true exactly when $0 \\leq x \\leq 1$ and $y= \\pm x$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34299, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all triples $(x, y, z)$ of real numbers that satisfy the system\n$$\n\\left\\{\\begin{array}{l}\nx + y + z = 2008 \\\\\nx^{2} + y^{2} + z^{2} = 6024^{2} \\\\\n\\frac{1}{x} + \\frac{1}{y} + \\frac{1}{z} = \\frac{1}{2008}\n\\end{array}\\right.\n$$", "options": [], "answer": "All permutations of (2008, 4016, -4016)", "solution": "Solution:\nThe last equation implies $x y z = 2008(x y + y z + z x)$, therefore\n$$\nx y z - 2008(x y + y z + z x) + 2008^{2}(x + y + z) - 2008^{3} = 0.\n$$\n$(x - 2008)(y - 2008)(z - 2008) = 0$.\nThus one of the variables equals $2008$. Let this be $x$. Then the first equation implies $y = -z$. From the second one it now follows that\n$$\n2 y^{2} = 6024^{2} - 2008^{2} = 2008^{2}(9 - 1) = 2 \\cdot 4016^{2}.\n$$\nThus $(x, y, z)$ is the triple $(2008, 4016, -4016)$ or any of its rearrangements.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34300, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all triples $(x, y, z)$ of real positive numbers, which satisfy the system\n$$\n\\left\\{\\begin{array}{l}\n\\frac{1}{x}+\\frac{4}{y}+\\frac{9}{z}=3 \\\\\nx+y+z \\leq 12\n\\end{array}\\right.\n$$", "options": [], "answer": "(2, 4, 6)", "solution": "Solution:\nIf we multiply the given equation and inequality $(x>0, y>0, z>0)$, we have\n$$\n\\left(\\frac{4x}{y}+\\frac{y}{x}\\right)+\\left(\\frac{z}{x}+\\frac{9x}{z}\\right)+\\left(\\frac{4z}{y}+\\frac{9y}{z}\\right) \\leq 22\n$$\nFrom AM-GM we have\n$$\n\\frac{4x}{y}+\\frac{y}{x} \\geq 4, \\quad \\frac{z}{x}+\\frac{9x}{z} \\geq 6, \\quad \\frac{4z}{y}+\\frac{9y}{z} \\geq 12\n$$\nTherefore\n$$\n22 \\leq \\left(\\frac{4x}{y}+\\frac{y}{x}\\right)+\\left(\\frac{z}{x}+\\frac{9x}{z}\\right)+\\left(\\frac{4z}{y}+\\frac{9y}{z}\\right)\n$$\nNow from (1) and (3) we get\n$$\n\\left(\\frac{4x}{y}+\\frac{y}{x}\\right)+\\left(\\frac{z}{x}+\\frac{9x}{z}\\right)+\\left(\\frac{4z}{y}+\\frac{9y}{z}\\right)=22\n$$\nwhich means that in (2), everywhere equality holds i.e. we have equality between means, also $x+y+z=12$.\nTherefore $\\frac{4x}{y}=\\frac{y}{x}$, $\\frac{z}{x}=\\frac{9x}{z}$ and, as $x>0, y>0, z>0$, we get $y=2x$, $z=3x$. Finally if we substitute for $y$ and $z$, in $x+y+z=12$, we get $x=2$, therefore $y=2\\cdot 2=4$ and $z=3\\cdot 2=6$.\nThus the unique solution is $(x, y, z)=(2,4,6)$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34301, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nIf the real numbers $a, b, c, d$ are such that $0 < a, b, c, d < 1$, show that\n$$\n1 + a b + b c + c d + d a + a c + b d > a + b + c + d\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\nIf $1 \\geq a + b + c$ then we write the given inequality equivalently as\n$$\n\\begin{gathered}\n1 - (a + b + c) + d[(a + b + c) - 1] + a b + b c + c a > 0 \\\\\n\\Leftrightarrow [1 - (a + b + c)](1 - d) + a b + b c + c a > 0\n\\end{gathered}\n$$\nwhich is of course true.\n\nIf instead $a + b + c > 1$, then $d(a + b + c) > d$ i.e.\n$$\nd a + d b + d c > d\n$$\nWe are going to prove that also\n$$\n1 + a b + b c + c a > a + b + c\n$$\nthus adding (1) and (2) together we'll get the desired result in this case too.\n\nFor the truth of (2):\nIf $1 \\geq a + b$, then we rewrite (2) equivalently as\n$$\n\\begin{gathered}\n1 - (a + b) + c[(a + b) - 1] + a b > 0 \\\\\n\\quad \\Leftrightarrow [1 - (a + b)](1 - c) + a b > 0\n\\end{gathered}\n$$\nwhich is of course true.\n\nIf instead $a + b > 1$, then $c(a + b) > c$, i.e.\n$$\nc a + c b > c\n$$\nBut it is also true that\n$$\n1 + a b > a + b\n$$\nbecause this is equivalent to $(1 - a) + b(a - 1) > 0$, i.e. to $(1 - a)(1 - b) > 0$ which holds. Adding (3) and (4) together we get the truth of (2) in this case too and we are done.\n\nYou can instead consider the following generalization:", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34302, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $a$, $b$ and $c$ be positive real numbers such that $a b c = 1$. Prove the inequality\n$$\n\\left(a b + b c + \\frac{1}{c a}\\right)\\left(b c + c a + \\frac{1}{a b}\\right)\\left(c a + a b + \\frac{1}{b c}\\right) \\geq (1 + 2 a)(1 + 2 b)(1 + 2 c)\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\nBy Cauchy-Schwarz inequality and $a b c = 1$ we get\n$$\n\\begin{gathered}\n\\sqrt{\\left(b c + c a + \\frac{1}{a b}\\right)\\left(a b + b c + \\frac{1}{c a}\\right)} = \\sqrt{\\left(b c + c a + \\frac{1}{a b}\\right)\\left(\\frac{1}{c a} + a b + b c\\right)} \\geq \\\\\n\\left(\\sqrt{a b} \\cdot \\sqrt{\\frac{1}{a b}} + \\sqrt{b c} \\cdot \\sqrt{b c} + \\sqrt{\\frac{1}{c a}} \\cdot \\sqrt{c a}\\right) = (2 + b c) = (2 a b c + b c) = b c(1 + 2 a)\n\\end{gathered}\n$$\nAnalogously we get $\\sqrt{\\left(b c + c a + \\frac{1}{a b}\\right)\\left(c a + a b + \\frac{1}{b c}\\right)} \\geq c a(1 + 2 b)$ and\n$\\sqrt{\\left(c a + a b + \\frac{1}{b c}\\right)\\left(a b + b c + \\frac{1}{c a}\\right)} \\geq a b(1 + 2 a)$.\nMultiplying these three inequalities we get:\n$$\n\\left(a b + b c + \\frac{1}{c a}\\right)\\left(b c + c a + \\frac{1}{a b}\\right)\\left(c a + a b + \\frac{1}{b c}\\right) \\geq a^{2} b^{2} c^{2}(1 + 2 a)(1 + 2 b)(1 + 2 c) =\n$$\n$(1 + 2 a)(1 + 2 b)(1 + 2 c)$ because $a b c = 1$.\n\nEquality holds if and only if $a = b = c = 1$.\nSolution:\nUsing $a b c = 1$ we get\n$$\n\\begin{gathered}\n\\left(a b + b c + \\frac{1}{c a}\\right)\\left(b c + c a + \\frac{1}{a b}\\right)\\left(c a + a b + \\frac{1}{b c}\\right) = \\\\\n= \\left(\\frac{1}{c} + \\frac{1}{a} + b\\right)\\left(\\frac{1}{a} + \\frac{1}{b} + c\\right)\\left(\\frac{1}{b} + \\frac{1}{c} + a\\right) = \\\\\n= \\frac{(a + c + a b c)}{a c} \\cdot \\frac{(b + a + a b c)}{a b} \\cdot \\frac{(b + c + a b c)}{b c} = (a + b + 1)(b + c + 1)(c + a + 1)\n\\end{gathered}\n$$\nThus, we need to prove\n$$\n(a + b + 1)(b + c + 1)(c + a + 1) \\geq (1 + 2 a)(1 + 2 b)(1 + 2 c)\n$$\nAfter multiplication and using the fact $a b c = 1$ we have to prove\n$$\n\\begin{gathered}\na^{2} b + a^{2} c + b^{2} c + b^{2} a + c^{2} a + c^{2} b + 3(a b + b c + c a) + 2(a + b + c) + a^{2} + b^{2} + c^{2} + 3 \\geq \\\\\n\\geq 4(a b + b c + c a) + 2(a + b + c) + 9\n\\end{gathered}\n$$\nSo we need to prove\n$$\na^{2} b + a^{2} c + b^{2} c + b^{2} a + c^{2} a + c^{2} b + a^{2} + b^{2} + c^{2} \\geq a b + b c + c a + 6\n$$\nThis follows from the well-known (AM-GM inequality) inequalities\n$$\na^{2} + b^{2} + c^{2} \\geq a b + b c + c a\n$$\nand\n$$\na^{2} b + a^{2} c + b^{2} c + b^{2} a + c^{2} a + c^{2} b \\geq 6 a b c = 6\n$$", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34303, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nShow that\n$$\n(x+y+z)\\left(\\frac{1}{x}+\\frac{1}{y}+\\frac{1}{z}\\right) \\geq 4\\left(\\frac{x}{x y+1}+\\frac{y}{y z+1}+\\frac{z}{z x+1}\\right)^{2}\n$$\nfor all real positive numbers $x$, $y$ and $z$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nThe idea is to split the inequality in two, showing that\n$$\n\\left(\\sqrt{\\frac{x}{y}}+\\sqrt{\\frac{y}{z}}+\\sqrt{\\frac{z}{x}}\\right)^{2}\n$$\ncan be intercalated between the left-hand side and the right-hand side. Indeed, using the Cauchy-Schwarz inequality one has\n$$\n(x+y+z)\\left(\\frac{1}{x}+\\frac{1}{y}+\\frac{1}{z}\\right) \\geq \\left(\\sqrt{\\frac{x}{y}}+\\sqrt{\\frac{y}{z}}+\\sqrt{\\frac{z}{x}}\\right)^{2}\n$$\nOn the other hand, as\n$$\n\\sqrt{\\frac{x}{y}} \\geq \\frac{2x}{x y+1} \\Leftrightarrow (\\sqrt{x y}-1)^{2} \\geq 0\n$$\nby summation one has\n$$\n\\sqrt{\\frac{x}{y}}+\\sqrt{\\frac{y}{z}}+\\sqrt{\\frac{z}{x}} \\geq \\frac{2x}{x y+1}+\\frac{2y}{y z+1}+\\frac{2z}{z x+1}\n$$\nThe rest is obvious.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34304, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nConsider an integer $n \\geq 4$ and a sequence of real numbers $x_{1}, x_{2}, x_{3}, \\ldots, x_{n}$. An operation consists in eliminating all numbers not having the rank of the form $4k+3$, thus leaving only the numbers $x_{3}, x_{7}, x_{11}, \\ldots$ (for example, the sequence $4,5,9,3,6,6,1,8$ produces the sequence $9,1$). Upon the sequence $1,2,3, \\ldots, 1024$ the operation is performed successively for 5 times. Show that at the end only one number remains and find this number.", "options": [], "answer": "683", "solution": "Solution:\nAfter the first operation 256 numbers remain; after the second one, 64 are left, then 16, next 4 and ultimately only one number.\n\nNotice that the 256 numbers left after the first operation are $3,7, \\ldots, 1023$, hence they are in arithmetical progression of common difference 4. Successively, the 64 numbers left after the second operation are in arithmetical progression of ratio 16 and so on.\n\nLet $a_{1}, a_{2}, a_{3}, a_{4}, a_{5}$ be the first term in the 5 sequences obtained after each of the 5 operations. Thus $a_{1}=3$ and $a_{5}$ is the requested number. The sequence before the fifth operation has 4 numbers, namely\n$$\na_{4},\\ a_{4}+256,\\ a_{4}+512,\\ a_{4}+768\n$$\nand $a_{5}=a_{4}+512$. Similarly, $a_{4}=a_{3}+128$, $a_{3}=a_{2}+32$, $a_{2}=a_{1}+8$.\n\nSumming up yields $a_{5}=a_{1}+8+32+128+512=3+680=683$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34305, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nOn a $5 \\times 5$ board, $n$ white markers are positioned, each marker in a distinct $1 \\times 1$ square. A smart child got an assignment to recolor in black as many markers as possible, in the following manner: a white marker is taken from the board; it is colored in black, and then put back on the board on an empty square such that none of the neighboring squares contains a white marker (two squares are called neighboring if they share a common side). If it is possible for the child to succeed in coloring all the markers black, we say that the initial positioning of the markers was good.\na) Prove that if $n=20$, then a good initial positioning exists.\nb) Prove that if $n=21$, then a good initial positioning does not exist.", "options": [], "answer": "Detailed solution", "solution": "Solution:\na) Position 20 white markers on the board such that the left-most column is empty. This positioning is good because the coloring can be realized column by column, starting with the second (from left), then the third, and so on, so that the white marker on position $(i, j)$ after the coloring is put on position $(i, j-1)$.\n\nb) Suppose there exists a good positioning with 21 white markers on the board i.e. there exists a re-coloring of them all, one by one. In any moment when there are 21 markers on the board, there must be at least one column completely filled with markers, and there must be at least one row completely filled with markers. So, there exists a \"cross\" of markers on the board. At the initial position, each such cross is completely white, at the final position each such cross is completely black, and at every moment when there are 21 markers on the board, each such cross is monochromatic. But this cannot be, since every two crosses have at least two common squares and therefore it is not possible for a white cross to vanish and for a black cross to appear by re-coloring of only one marker. Contradiction!", "topic": "Algebra", "subtopic": "Abstract Algebra" }, { "id": 34306, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nKostas and Helene have the following dialogue:\nKostas: I have in my mind three positive real numbers with product $1$ and sum equal to the sum of all their pairwise products.\nHelene: I think that I know the numbers you have in mind. They are all equal to $1$.\nKostas: In fact, the numbers you mentioned satisfy my conditions, but I did not think of these numbers. The numbers you mentioned have the minimal sum between all possible solutions of the problem.\nCan you decide if Kostas is right? (Explain your answer).", "options": [], "answer": "Detailed solution", "solution": "Solution:\nKostas is right according to the following analysis:\nIf $x, y, z$ are the three positive real numbers Kostas thought about, then they satisfy the following equations:\n$$\n\\begin{gathered}\nx y + y z + z x = x + y + z \\\\\nx y z = 1\n\\end{gathered}\n$$\nSubtracting (1) from (2) by parts we obtain\n$$\n\\begin{gathered}\nx y z - (x y + y z + z x) = 1 - (x + y + z) \\\\\n\\Leftrightarrow x y z - x y - y z - z x + x + y + z - 1 = 0 \\\\\n\\Leftrightarrow x y(z-1) - x(z-1) - y(z-1) + (z-1) = 0 \\\\\n\\Leftrightarrow (z-1)(x y - x - y + 1) = 0 \\\\\n(z-1)(x-1)(y-1) = 0 \\\\\n\\Leftrightarrow x=1 \\text{ or } y=1 \\text{ or } z=1 .\n\\end{gathered}\n$$\nFor $x=1$, from (1) and (2) we have the equation $y z=1$, which has the solutions\n$$\n(y, z) = \\left(a, \\frac{1}{a}\\right), \\ a>0\n$$\nAnd therefore the solutions of the problem are the triples\n$$\n(x, y, z) = \\left(1, a, \\frac{1}{a}\\right), \\ a>0\n$$\nSimilarly, considering $y=1$ or $z=1$ we get the solutions\n$$\n(x, y, z) = \\left(a, 1, \\frac{1}{a}\\right) \\text{ or } (x, y, z) = \\left(a, \\frac{1}{a}, 1\\right), \\ a>0\n$$\nSince for each $a>0$ we have\n$$\nx + y + z = 1 + a + \\frac{1}{a} \\geq 1 + 2 = 3\n$$\nand equality is valid only for $a=1$, we conclude that among the solutions of the problem, the triple $(x, y, z) = (1, 1, 1)$ is the one whose sum $x + y + z$ is minimal.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34307, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIntegers $1, 2, \\ldots, 2n$ are arbitrarily assigned to boxes labeled with numbers $1, 2, \\ldots, 2n$. Now, we add the number assigned to the box to the number on the box label. Show that two such sums give the same remainder modulo $2n$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nLet us assume that all sums give different remainders modulo $2n$, and let $S$ denote the value of their sum.\n\nFor our assumption,\n$$\nS \\equiv 0 + 1 + \\ldots + 2n - 1 = \\frac{(2n - 1) 2n}{2} = (2n - 1)n \\equiv n \\pmod{2n}\n$$\nBut, if we sum, breaking all sums into its components, we derive\n$$\nS \\equiv 2(1 + \\ldots + 2n) = 2 \\cdot \\frac{2n(2n + 1)}{2} = 2n(2n + 1) \\equiv 0 \\pmod{2n}\n$$\nFrom the last two conclusions we derive $n \\equiv 0 \\pmod{2n}$. Contradiction.\n\nTherefore, there are two sums with the same remainder modulo $2n$.", "topic": "Number Theory", "subtopic": "Modular Arithmetic" }, { "id": 34308, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nEvery cell of table $4 \\times 4$ is colored into white. It is permitted to place the cross (pictured below) on the table such that its center lies on the table (the whole figure does not need to lie on the table) and change colors of every cell which is covered into opposite (white and black). Find all $n$ such that after $n$ steps it is possible to get the table with every cell colored black.\n\n![](attached_image_1.png)", "options": [], "answer": "all even numbers at least 4", "solution": "Solution:\nThe cross covers at most five cells so we need at least 4 steps to change the color of every cell. If we place the cross 4 times such that its center lies in the cells marked below, we see that we can turn the whole square black in $n=4$ moves.\n\n![](attached_image_2.png)\n\nFurthermore, applying the same operation twice (\"do and undo\"), we get that it is possible to turn all the cells black in $n$ steps for every even $n \\geq 4$.\n\nWe shall prove that for odd $n$ it is not possible to do that. Look at the picture below.\n\n![](attached_image_3.png)\n\nLet $k$ be a difference between white and black cells in the green area in picture. Every figure placed on the table covers an odd number of green cells, so after every step $k$ is changed by a number $\\equiv 2 (\\bmod 4)$. At the beginning $k=10$, at the end $k=-10$. From this it is clear that we need an even number of steps.\n\nSolution for $n$ is: every even number except $2$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34309, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nIf for the real numbers $x_{1}, x_{2}, \\ldots, x_{n}$ it is $0 < x_{i} < 1$, for any $i$, show that\n$$\n1 + \\sum_{1 \\leq i < j \\leq n} x_{i} x_{j} > \\sum_{i=1}^{n} x_{i}\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\nWe'll prove it by induction.\nFor $n=1$ the desired result becomes $1 > x_{1}$ which is true.\nLet the result be true for some natural number $n \\geq 1$.\nWe'll prove it to be true for $n+1$ as well, and we'll be done.\nSo let $x_{1}, x_{2}, \\ldots, x_{n}, x_{n+1}$ be $n+1$ given real numbers with $0 < x_{i} < 1$, for any $i$. We wish to show that\n$$\n1 + \\sum_{1 \\leq i < j \\leq n+1} x_{i} x_{j} > x_{1} + x_{2} + \\ldots + x_{n} + x_{n+1}\n$$\nIf $1 \\geq x_{1} + x_{2} + \\ldots + x_{n}$ then we rewrite (5) equivalently as\n$$\n1 - (x_{1} + x_{2} + \\ldots + x_{n}) + x_{n+1}(x_{1} + x_{2} + \\ldots + x_{n} - 1) + \\sum_{1 \\leq i < j \\leq n} x_{i} x_{j} > 0\n$$\nThis is also written as\n$$\n(1 - x_{n+1})\\left[1 - (x_{1} + x_{2} + \\ldots + x_{n})\\right] + \\sum_{1 \\leq i < j \\leq n} x_{i} x_{j} > 0\n$$\nwhich is clearly true.\nIf instead $x_{1} + x_{2} + \\ldots + x_{n} > 1$ then $x_{n+1}(x_{1} + x_{2} + \\ldots + x_{n}) > x_{n+1}$, i.e.\n$$\nx_{n+1} x_{1} + x_{n+1} x_{2} + \\ldots + x_{n+1} x_{n} > x_{n+1}\n$$\nBy the induction hypothesis applied to the $n$ real numbers $x_{1}, x_{2}, \\ldots, x_{n}$ we also know that\n$$\n1 + \\sum_{1 \\leq i < j \\leq n} x_{i} x_{j} > \\sum_{i=1}^{n} x_{i}\n$$\nAdding (6) and (7) together we get the validity of (5) in this case too, and we are done.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34310, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIf the real numbers $x_{1}, x_{2}, \\ldots, x_{2008}$ are such that $0 < x_{i} < 1$, for any $i$, show that\n$$\n1 + \\sum_{1 \\leq i < j \\leq 2008} x_{i} x_{j} > \\sum_{i=1}^{2008} x_{i}\n$$", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34311, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nTwo perpendicular chords of a circle, $A M$, $B N$, which intersect at point $K$, define on the circle four arcs with pairwise different length, with $A B$ being the smallest of them. We draw the chords $A D$, $B C$ with $A D \\parallel B C$ and $C, D$ different from $N, M$. If $L$ is the point of intersection of $D N$, $M C$ and $T$ the point of intersection of $D C$, $K L$, prove that $\\angle K T C = \\angle K N L$.\n\n![](attached_image_1.png)", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nFirst we prove that $N L \\perp M C$. The arguments depend slightly on the position of $D$. The other cases are similar.\nFrom the cyclic quadrilaterals $A D C M$ and $D N B C$ we have:\n$$\n\\varangle D C L = \\varangle D A M \\text{ and } \\varangle C D L = \\varangle C B N.\n$$\nSo we obtain\n$$\n\\varangle D C L + \\varangle C D L = \\varangle D A M + \\varangle C B N.\n$$\nAnd because $A D \\parallel B C$, if $Z$ is the point of intersection of $A M$, $B C$ then $\\varangle D A M = \\varangle B Z A$, and we have\n$$\n\\varangle D C L + \\varangle C D L = \\varangle B Z A + \\varangle C B N = 90^\\circ\n$$\nLet $P$ be the point of intersection of $K L$, $A C$, then $N P \\perp A C$, because the line $K P L$ is a Simson line of the point $N$ with respect to the triangle $A C M$.\nFrom the cyclic quadrilaterals $N P C L$ and $A N D C$ we obtain:\n$$\n\\varangle C P L = \\varangle C N L \\text{ and } \\varangle C N L = \\varangle C A D,\n$$\nso $\\varangle C P L = \\varangle C A D$, that is $K L \\parallel A D \\parallel B C$ therefore $\\varangle K T C = \\varangle A D C$ (1).\n\nBut $\\varangle A D C = \\varangle A N C = \\varangle A N K + \\varangle K N C = \\varangle C N L + \\varangle K N C$, so\n$$\n\\varangle A D C = \\varangle K N L\n$$\nFrom (1) and (2) we obtain the result.\n\n![](attached_image_2.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34312, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $\\Gamma$ be a circle of center $O$, and $\\delta$ be a line in the plane of $\\Gamma$, not intersecting it. Denote by $A$ the foot of the perpendicular from $O$ onto $\\delta$, and let $M$ be a (variable) point on $\\Gamma$. Denote by $\\gamma$ the circle of diameter $A M$, by $X$ the (other than $M$) intersection point of $\\gamma$ and $\\Gamma$, and by $Y$ the (other than $A$) intersection point of $\\gamma$ and $\\delta$. Prove that the line $X Y$ passes through a fixed point.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nConsider the line $\\rho$ tangent to $\\gamma$ at $A$, and take the points $K = A M \\cap X Y$, $L = \\rho \\cap X M$, and $F = O A \\cap X Y$.\n\n(Remark: Moving $M$ into its reflection with respect to the line $O A$ will move $X Y$ into its reflection with respect to $O A$. These old and the new $X Y$ meet on $O A$, hence it should be clear that the fixed point must be $F$.)\n\nSince $\\angle L M A = \\angle F Y A$ and $\\angle Y A F = \\angle L A M = 90^\\circ$, it follows that triangles $F A Y$ and $L A M$ are similar, therefore $\\angle A F Y = \\angle A L M$, hence the quadrilateral $A L X F$ is cyclic. But then $\\angle A F L = \\angle A X L = 90^\\circ$, so $L F \\perp A F$, hence $L F \\parallel \\delta$.\n\nNow, $\\rho$ is the radical axis of circles $\\gamma$ and $A$ (consider $A$ as a circle of center $A$ and radius $0$), while $X M$ is the radical axis of circles $\\gamma$ and $\\Gamma$, so $L$ is the radical center of the three circles, which means that $L$ lies on the radical axis of circles $\\Gamma$ and $A$. From $L F \\perp O A$, where $O A$ is the line of the centers of the circles $A$ and $\\Gamma$, and $F \\in X Y$, it follows that $F$ is (the) fixed point of $X Y$.\n\n(The degenerate two cases when $M \\in O A$, where $X \\equiv M$ and $Y \\equiv A$, also trivially satisfy the conclusion, as then $F \\in A M$.)\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34313, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nConsider $ABC$ an acute-angled triangle with $AB \\neq AC$. Denote by $M$ the midpoint of $BC$, by $D, E$ the feet of the altitudes from $B, C$ respectively and let $P$ be the intersection point of the lines $DE$ and $BC$. The perpendicular from $M$ to $AC$ meets the perpendicular from $C$ to $BC$ at point $R$. Prove that lines $PR$ and $AM$ are perpendicular.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nLet $F$ be the foot of the altitude from $A$ and let $S$ be the intersection point of $AM$ and $RC$. As $PC$ is an altitude of the triangle $PRS$, the claim is equivalent to $RM \\perp PS$, since the latter implies that $M$ is the orthocenter of $PRS$. Due to $RM \\perp AC$, we need to prove that $AC \\parallel PS$, in other words\n$$\n\\frac{MC}{MP} = \\frac{MA}{MS}\n$$\nNotice that $AF \\parallel CS$, so $\\frac{MA}{MS} = \\frac{MF}{MC}$. Now the claim is reduced to proving $MC^2 = MF \\cdot MP$, a well-known result considering that $AF$ is the polar line of $P$ with respect to circle of radius $MC$ centered at $M$.\n\nThe \"elementary proof\" on the latter result may be obtained as follows: $\\frac{PB}{PC} = \\frac{FB}{FC}$, using, for instance, Menelaus and Ceva theorems with respect to $ABC$. Cross-multiplying one gets $(PM - x)(FM + x) = (x - FM)(PM + x)$\n- $x$ stands for the length of $MC$ - and then $PM \\cdot FM = x^2$.\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34314, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nFor a fixed triangle $A B C$ we choose a point $M$ on the ray $C A$ (after $A$), a point $N$ on the ray $A B$ (after $B$), and a point $P$ on the ray $B C$ (after $C$) in a way such that $A M - B C = B N - A C = C P - A B$. Prove that the angles of triangle $M N P$ do not depend on the choice of $M, N, P$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nConsider the points $M'$ on the ray $B A$ (after $A$), $N'$ on the ray $C B$ (after $B$), and $P'$ on the ray $A C$ (after $C$), so that $A M = A M'$, $B N = B N'$, $C P = C P'$. Since $A M - B C = B N - A C = B N' - A C$, we get $C M = A C + A M = B C + B N' = C N'$. Thus triangle $M C N'$ is isosceles, so the perpendicular bisector of $[M N']$ bisects angle $A C B$ and hence passes through the incenter $I$ of triangle $A B C$.\n\nArguing similarly, we may conclude that $I$ lies also on the perpendicular bisectors of $[N P']$ and $[P M']$. On the other side, $I$ clearly lies on the perpendicular bisectors of $[M M']$, $[N N']$, and $[P P']$. Thus the hexagon $M' M N' N P' P$ is cyclic.\n\nThen angle $P M N$ equals angle $P N' N$, which measures $90^{\\circ} - \\frac{\\beta}{2}$ (the angles of triangle $A B C$ are $\\alpha, \\beta, \\gamma$). In the same way, angle $M N P$ measures $90^{\\circ} - \\frac{\\gamma}{2}$ and angle $M P N$ measures $90^{\\circ} - \\frac{\\alpha}{2}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34315, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $ABC$ be a triangle, $(BC < AB)$. The line $\\ell$ passing through the vertex $C$ and orthogonal to the angle bisector $BE$ of $\\angle B$, meets $BE$ and the median $BD$ of the side $AC$ at points $F$ and $G$, respectively. Prove that segment $DF$ bisects the segment $EG$.\n![](attached_image_1.png)", "options": [], "answer": "Detailed solution", "solution": "Solution:\nLet $CF \\cap AB = \\{K\\}$ and $DF \\cap BC = \\{M\\}$. Since $BF \\perp KC$ and $BF$ is angle bisector of $\\varangle KBC$, we have that $\\triangle KBC$ is isosceles, i.e. $BK = BC$, also $F$ is midpoint of $KC$. Hence $DF$ is midline for $\\triangle ACK$, i.e. $DF \\parallel AK$, from where it is clear that $M$ is a midpoint of $BC$.\n\nWe will prove that $GE \\parallel BC$. It is sufficient to show $\\frac{BG}{GD} = \\frac{CE}{ED}$. From $DF \\parallel AK$ and $DF = \\frac{AK}{2}$ we have\n$$\n\\frac{BG}{GD} = \\frac{BK}{DF} = \\frac{2BK}{AK}\n$$\nAlso\n$$\n\\begin{gathered}\n\\frac{CE}{DE} = \\frac{CD - DE}{DE} = \\frac{CD}{DE} - 1 = \\frac{AD}{DE} - 1 = \\frac{AE - DE}{DE} - 1 = \\frac{AE}{DE} - 2 = \\\\\n= \\frac{AB}{DF} - 2 = \\frac{AK + BK}{\\frac{AK}{2}} - 2 = 2 + 2\\frac{BK}{AK} - 2 = \\frac{2BK}{AK}\n\\end{gathered}\n$$\nFrom (1) and (2) we have $\\frac{BG}{GD} = \\frac{CE}{ED}$, so $GE \\parallel BC$, as $M$ is the midpoint of $BC$, it follows that the segment $DF$ bisects the segment $GE$.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 34316, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nIs it possible to cover a given square with a few congruent right-angled triangles with acute angle equal to $30^{\\circ}$? (The triangles may not overlap and may not exceed the margins of the square.)", "options": [], "answer": "Detailed solution", "solution": "Solution:\nWe will prove that desired covering is impossible.\nLet us assume the opposite, i.e., a square with side length $a$ can be tiled with $k$ congruent right-angled triangles, whose sides are of lengths $b$, $b \\sqrt{3}$, and $2b$.\n\nThen the area of such a triangle is $\\frac{b^{2} \\sqrt{3}}{2}$.\nAnd the area of the square is\n$$\nS_{sq} = k b^{2} \\frac{\\sqrt{3}}{2}\n$$\nFurthermore, the length of the side of the square, $a$, is obtained by the contribution of an integer number of lengths $b$, $2b$, and $b \\sqrt{3}$, hence\n$$\na = m b \\sqrt{3} + n b\n$$\nwhere $m, n \\in \\mathbb{N} \\cup \\{0\\}$, and at least one of the numbers $m$ and $n$ is different from zero. So the area of the square is\n$$\nS_{sq} = a^{2} = (m b \\sqrt{3} + n b)^{2} = b^{2} \\left(3 m^{2} + n^{2} + 2 \\sqrt{3} m n\\right)\n$$\nNow because of (1) and (2) it follows $3 m^{2} + n^{2} + 2 \\sqrt{3} m n = k \\frac{\\sqrt{3}}{2}$, i.e.\n$$\n6 m^{2} + 2 n^{2} = (k - 4 m n) \\sqrt{3}\n$$\nBecause $3 m^{2} + n^{2} \\neq 0$ and from the equality (3) it follows $4 m n \\neq k$. Using once more (3), we get\n$$\n\\sqrt{3} = \\frac{6 m^{2} + 2 n^{2}}{k - 4 m n}\n$$\nwhich contradicts the fact that $\\sqrt{3}$ is irrational, because $\\frac{6 m^{2} + 2 n^{2}}{k - 4 m n}$ is a rational number.\n\nFinally, we have obtained a contradiction, which proves that the desired covering is impossible.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34317, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $ABC$ be a triangle with $A < 90^{\\circ}$. Outside of the triangle we consider isosceles triangles $ABE$ and $ACZ$ with bases $AB$ and $AC$, respectively. If the midpoint $D$ of the side $BC$ is such that $DE \\perp DZ$ and $EZ = 2 \\cdot ED$, prove that $\\widehat{AEB} = 2 \\cdot \\widehat{AZC}$.\n\n![](attached_image_1.png)", "options": [], "answer": "Detailed solution", "solution": "Solution:\nSince $D$ is the midpoint of the side $BC$, in the extension of the line segment $ZD$ we take a point $H$ such that $ZD = DH$. Then the quadrilateral $BHCZ$ is a parallelogram and therefore we have\n$$\nBH = ZC = ZA\n$$\n![](attached_image_2.png)\nAlso from the isosceles triangle $ABE$ we get\n$$\nBE = AE\n$$\nSince $DE \\perp DZ$, $ED$ is altitude and median of the triangle $EZH$ and so this triangle is isosceles with\n$$\nEH = EZ\n$$\nFrom (1), (2) and (3) we conclude that the triangles $BEH$ and $AEZ$ are equal. Therefore they have also\n$$\n\\widehat{BEH} = \\widehat{AEZ}, \\quad \\widehat{EBH} = \\widehat{EAZ} \\text{ and } \\widehat{EHB} = \\widehat{AZE}\n$$\nPutting $\\widehat{EBA} = \\widehat{EAB} = \\omega$, $\\widehat{ZAC} = \\widehat{ZCA} = \\varphi$, then we have $\\widehat{CBH} = \\widehat{BCZ} = \\widehat{C} + \\varphi$, and therefore from the equality $\\widehat{EBH} = \\widehat{EAZ}$ we receive:\n$$\n\\begin{gathered}\n360^{\\circ} - \\widehat{EBA} - \\widehat{B} - \\widehat{CBH} = \\widehat{EAB} + \\widehat{A} + \\widehat{ZAC} \\\\\n\\Rightarrow 360^{\\circ} - \\widehat{B} - \\omega - \\varphi - \\widehat{C} = \\omega + \\widehat{A} + \\varphi \\\\\n\\Rightarrow 2(\\omega + \\varphi) = 360^{\\circ} - (\\widehat{A} + \\widehat{B} + \\widehat{C}) \\\\\n\\Rightarrow \\omega + \\varphi = 90^{\\circ} \\\\\n\\Rightarrow \\frac{180^{\\circ} - \\widehat{AEB}}{2} + \\frac{180^{\\circ} - \\widehat{AZC}}{2} = 90^{\\circ} \\\\\n\\Rightarrow \\widehat{AEB} + \\widehat{AZC} = 180^{\\circ}\n\\end{gathered}\n$$\nFrom the supposition $EZ = 2 \\cdot ED$, we get that the right triangle $ZEH$ has $\\widehat{EZD} = 30^{\\circ}$ and $\\widehat{ZED} = 60^{\\circ}$. Thus we have $\\widehat{ZEH} = 120^{\\circ}$.\nHowever, since we have proved that $\\widehat{BEH} = \\widehat{AEZ}$, we get that\n$$\n\\widehat{AEB} = \\widehat{AEZ} + \\widehat{ZEB} = \\widehat{ZEB} + \\widehat{BEH} = \\widehat{ZEH} = 120^{\\circ}\n$$\nFrom (5) and (6) we obtain that $\\widehat{AZC} = 60^{\\circ}$ and thus $\\widehat{AEB} = 2 \\cdot \\widehat{AZC}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34318, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $ABC$ be an isosceles triangle with $AC = BC$. The point $D$ lies on the side $AB$ such that the semicircle with diameter $BD$ and center $O$ is tangent to the side $AC$ at the point $P$ and intersects the side $BC$ at the point $Q$. The radius $OP$ intersects the chord $DQ$ at the point $E$ such that $5 \\cdot PE = 3 \\cdot DE$. Find the ratio $\\frac{AB}{BC}$.", "options": [], "answer": "6/5", "solution": "Solution:\nWe denote $OP = OD = OB = R$, $AC = BC = b$ and $AB = 2a$. Because $OP \\perp AC$ and $DQ \\perp BC$, then the right triangles $APO$ and $BQD$ are similar and $\\angle BDQ = \\angle AOP$. So, the triangle $DEO$ is isosceles with $DE = OE$. It follows that\n$$\n\\frac{PE}{DE} = \\frac{PE}{OE} = \\frac{3}{5}\n$$\nLet $F$ and $G$ be the orthogonal projections of the points $E$ and $P$ respectively on the side $AB$ and $M$ is the midpoint of the side $[AB]$. The triangles $OFE$, $OGP$, $OPA$ and $CMA$ are similar. We obtain the following relations\n$$\n\\frac{OF}{OE} = \\frac{OG}{OP} = \\frac{CM}{AC} = \\frac{OP}{OA}\n$$\nBut $CM = \\sqrt{b^2 - a^2}$ and we have $OG = \\frac{R}{b} \\cdot \\sqrt{b^2 - a^2}$. In isosceles triangle $DEO$ the point $F$ is the midpoint of the radius $DO$. So, $OF = R/2$. By using Thales' theorem we obtain\n$$\n\\frac{3}{5} = \\frac{PE}{OE} = \\frac{GF}{OF} = \\frac{OG - OF}{OF} = \\frac{OG}{OF} - 1 = 2 \\cdot \\sqrt{1 - \\left(\\frac{a}{b}\\right)^2} - 1\n$$\nFrom the last relations it is easy to obtain that $\\frac{a}{b} = \\frac{3}{5}$ and $\\frac{AB}{BC} = \\frac{6}{5}$.\n\nThe problem is solved.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34319, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nThe side lengths of a parallelogram are $a$, $b$ and diagonals have lengths $x$ and $y$. Knowing that $a b = \\frac{x y}{2}$, show that\n$$\na = \\frac{x}{\\sqrt{2}},\\ b = \\frac{y}{\\sqrt{2}} \\quad \\text{or} \\quad a = \\frac{y}{\\sqrt{2}},\\ b = \\frac{x}{\\sqrt{2}}\n$$", "options": [], "answer": "a = x/√2, b = y/√2 or a = y/√2, b = x/√2", "solution": "Solution:\nLet us consider a parallelogram $ABCD$, with $AB = a$, $BC = b$, $AC = x$, $BD = y$, $\\widehat{AOD} = \\theta$.\nFor the area of $ABCD$ we know $(ABCD) = ab \\sin A$.\nBut it is also true that $(ABCD) = 4(AOD) = 4 \\cdot \\frac{OA \\cdot OD}{2} \\sin \\theta = 2 OA \\cdot OD \\sin \\theta = 2 \\cdot \\frac{x}{2} \\cdot \\frac{y}{2} \\sin \\theta = \\frac{xy}{2} \\sin \\theta$.\nSo $ab \\sin A = \\frac{xy}{2} \\sin \\theta$ and since $ab = \\frac{xy}{2}$ by hypothesis, we get\n$$\n\\sin A = \\sin \\theta\n$$\nThus\n$$\n\\theta = \\widehat{A} \\text{ or } \\theta = 180^\\circ - \\widehat{A} = \\widehat{B}\n$$\nIf $\\theta = A$ then (see Figure below) $A_2 + B_1 = A_1 + A_2$, so $B_1 = A_1$ which implies that $AD$ is tangent to the circumcircle of triangle $OAB$. So\n$$\nDA^2 = DO \\cdot DB \\Rightarrow b^2 = \\frac{y}{2} \\cdot y \\Rightarrow b = \\frac{y}{\\sqrt{2}}\n$$\n\n![](attached_image_1.png)\n\nThen by $ab = \\frac{xy}{2}$ we get $a = \\frac{x}{\\sqrt{2}}$.\nIf $\\theta = B$ we similarly get $a = \\frac{x}{\\sqrt{2}}, b = \\frac{y}{\\sqrt{2}}$.\n\nLet us consider a parallelogram $ABCD$, with $AB = a$, $BC = b$, $AC = x$, $BD = y$, $\\widehat{BOC} = \\theta$, and let us produce the line $AD$ towards $D$ and consider $M \\in (AD)$ so that $AD = DM$. Then $BCMD$ is a parallelogram, so $CM = BD = y$.\nObserve also that $(ABCD) = 2(ACD) = (ACM)$ which is written equivalently as\n$$\nCB \\cdot CD \\cdot \\sin C = \\frac{AC \\cdot CM \\cdot \\sin \\theta}{2} \\text{ i.e. } ab \\sin C = \\frac{xy \\sin \\theta}{2}\n$$\nBecause of the given relation $ab = \\frac{xy}{2}$ the last relation becomes $\\sin C = \\sin \\theta$, i.e.\n$$\n\\theta = \\widehat{C} \\text{ or } \\theta = 180^\\circ - \\widehat{C} = \\widehat{B}\n$$\nIf $\\theta = \\widehat{C}$, then the triangles $ACM$ and $BCD$ are similar because their angles at $C$ are equal, as well as their angles at $B, M$ (remember $BCMD$ is a parallelogram).\n![](attached_image_2.png)\nThen\n$$\n\\frac{b}{y} = \\frac{a}{x} = \\frac{y}{2b} \\Rightarrow \\left(b = \\frac{y}{2}, a = \\frac{x}{2}\\right)\n$$\nIf $\\theta = \\widehat{B}$, then similarly we prove that the triangles $ACM$ and $ACD$ are similar, which then implies\n$$\n\\frac{a}{y} = \\frac{b}{x} = \\frac{x}{2b} \\Rightarrow \\left(a = \\frac{y}{2}, b = \\frac{x}{2}\\right)\n$$\n\nThe Parallelogram Law states that, in any parallelogram, the sum of the squares of its diagonals is equal to the sum of the squares of its sides.\nIn our case, this translates to $x^2 + y^2 = 2(a^2 + b^2)$. First adding $2xy = 4ab$, then subtracting the same equality, yields $(x + y)^2 = 2(a + b)^2$ and $(x - y)^2 = 2(a - b)^2$. It follows that $x + y = a \\sqrt{2} + b \\sqrt{2}$ and either $x - y = a \\sqrt{2} - b \\sqrt{2}$, or $x - y = b \\sqrt{2} - a \\sqrt{2}$. In the first case one obtains $x = a \\sqrt{2}, y = b \\sqrt{2}$, in the latter case, $x = b \\sqrt{2}, y = a \\sqrt{2}$.\nFor the proof of the Parallelogram Law, simply apply the Law of cosines in triangles $ABC$ and $ABD$ and use the fact that $\\cos (\\varangle ABC) = -\\cos (\\varangle BAD)$. Adding the two relations gives the desired condition.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34320, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $O$ be a point inside the parallelogram $A B C D$ such that\n$$\n\\angle A O B + \\angle C O D = \\angle B O C + \\angle C O D\n$$\nProve that there exists a circle $k$ tangent to the circumscribed circles of the triangles $\\triangle A O B$, $\\triangle B O C$, $\\triangle C O D$ and $\\triangle D O A$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nFrom given condition it is clear that $\\varangle A O B + \\varangle C O D = \\varangle B O C + \\varangle A O D = 180^\\circ$.\nLet $E$ be a point such that $A E = D O$ and $B E = C E$. Clearly, $\\triangle A E B \\equiv \\triangle D O C$ and from that $A E \\parallel D O$ and $B E \\parallel C O$. Also, $\\varangle A E B = \\varangle C O D$ so $\\varangle A O B + \\varangle A E B = \\varangle A O B + \\varangle C O D = 180^\\circ$. Thus, the quadrilateral $A O B E$ is cyclic.\nSo $\\triangle A O B$ and $\\triangle A E B$ have the same circumcircle, therefore the circumcircles of the triangles $\\triangle A O B$ and $\\triangle C O D$ have the same radius.\nAlso, $A E \\parallel D O$ and $A E = D O$ gives $A E O D$ is a parallelogram and $\\triangle A O D \\equiv \\triangle O A E$. So $\\triangle A O B$, $\\triangle C O D$ and $\\triangle D O A$ have the same radius of their circumcircle (the radius of the cyclic quadrilateral $A E B O$). Analogously, triangles $\\triangle A O B$, $\\triangle B O C$, $\\triangle C O D$ and $\\triangle D O A$ have the same radius $R$.\nObviously, the circle with center $O$ and radius $2R$ is externally tangent to each of these circles, so this will be the circle $k$.\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34321, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all the positive integers $x$ and $y$ that satisfy the equation\n$$\nx(x-y)=8y-7\n$$", "options": [], "answer": "(63, 56)", "solution": "Solution:\nThe given equation can be written as:\n$$\n\\begin{aligned}\n& x(x-y)=8y-7 \\\\\n& x^{2}+7=y(x+8)\n\\end{aligned}\n$$\nLet $x+8=m$, $m \\in \\mathbb{N}$. Then we have: $x^{2}+7 \\equiv 0 \\pmod{m}$, and $x^{2}+8x \\equiv 0 \\pmod{m}$. So we obtain that $8x-7 \\equiv 0 \\pmod{m}$ \\quad (1).\nAlso we obtain $8x+8^{2}=8(x+8) \\equiv 0 \\pmod{m}$ \\quad (2).\nFrom (1) and (2) we obtain $(8x+64)-(8x-7)=71 \\equiv 0 \\pmod{m}$, therefore $m \\mid 71$, since $71$ is a prime number, we have:\n$x+8=1$ or $x+8=71$. The only accepted solution is $x=63$, and from the initial equation we obtain $y=56$.\nTherefore the equation has a unique solution, namely $(x, y)=(63,56)$.\n\n\nSolution 2:\nThe given equation is $x^{2}-x y+7-8 y=0$.\nDiscriminant is $\\Delta=y^{2}+32y-28=(y+16)^{2}-284$ and must be perfect square. So $(y+16)^{2}-284=m^{2}$, and its follow $(y+16)^{2}-m^{2}=284$, and after some casework, $y+16-m=2$ and $y+16+m=142$, hence $y=56, x=63$.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34322, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nProve that $2^{n}+3^{n}$ is not a perfect cube for any positive integer $n$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nIf $n=1$ then $2^{1}+3^{1}=5$ is not a perfect cube.\n\nPerfect cubes give residues $-1, 0$ and $1$ modulo $9$. If $2^{n}+3^{n}$ is a perfect cube, then $n$ must be divisible by $3$ (consider the congruence $2^{n}+3^{n}=x^{3}$ modulo $9$).\n\nIf $n=3k$ then $2^{3k}+3^{3k} > (3^{k})^{3}$. Also, $(3^{k}+1)^{3} = 3^{3k} + 3 \\cdot 3^{2k} + 3 \\cdot 3^{k} + 1 > 3^{3k} + 3^{2k} = 3^{3k} + 9^{k} > 3^{3k} + 8^{k} = 3^{3k} + 2^{3k}$.\n\nBut, $3^{k}$ and $3^{k}+1$ are two consecutive integers so $2^{3k}+3^{3k}$ is not a perfect cube.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34323, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nDetermine the greatest number with $n$ digits in the decimal representation which is divisible by $429$ and has the sum of all digits less than or equal to $11$.", "options": [], "answer": "3003*10^{n-4}", "solution": "Solution:\nLet $A = \\overline{a_n a_{n-1} \\ldots a_1}$ and notice that $429 = 3 \\cdot 11 \\cdot 13$.\n\nSince the sum of the digits $\\sum a_i \\leq 11$ and $\\sum a_i$ is divisible by $3$, we get $\\sum a_i = 3, 6$ or $9$. As $11$ divides $A$, we have\n$$\n11 \\mid a_n - a_{n-1} + a_{n-2} - a_{n-3} + \\ldots\n$$\nin other words $11 \\mid \\sum_{i \\text{ odd}} a_i - \\sum_{i \\text{ even}} a_i$. But\n$$\n-9 \\leq -\\sum a_i \\leq \\sum_{i \\text{ odd}} a_i - \\sum_{i \\text{ even}} a_i \\leq \\sum a_i \\leq 9\n$$\nso $\\sum_{i \\text{ odd}} a_i - \\sum_{i \\text{ even}} a_i = 0$. It follows that $\\sum a_i$ is even, so $\\sum a_i = 6$ and $\\sum_{i \\text{ odd}} a_i = \\sum_{i \\text{ even}} a_i = 3$.\n\nThe number $13$ is a divisor of $1001$, hence\n$$\n13 \\mid \\overline{a_3 a_2 a_1} - \\overline{a_6 a_5 a_4} + \\overline{a_9 a_8 a_7} - \\overline{a_{12} a_{11} a_{10}} + \\ldots\n$$\nFor each $k = 1, 2, 3, 4, 5, 6$, let $s_k$ be the sum of the digits $a_{k+6m}, m \\geq 0$; that is\n$$\ns_1 = a_1 + a_7 + a_{13} + \\ldots \\text{ and so on. }\n$$\nWith this notation, (1) rewrites as\n$$\n13 \\mid 100(s_3 - s_6) + 10(s_2 - s_5) + (s_1 - s_4), \\text{ or } 13 \\mid 4(s_6 - s_3) + 3(s_5 - s_2) + (s_1 - s_4)\n$$\nLet $S_3 = s_3 - s_6$, $S_2 = s_2 - s_5$, and $S_1 = s_1 - s_4$. Recall that $\\sum_{i \\text{ odd}} a_i = \\sum_{i \\text{ even}} a_i$, which implies $S_2 = S_1 + S_3$. Then\n$$\n13 \\mid 4S_3 + 3S_2 - S_1 = 7S_3 + 2S_1 \\Rightarrow 13 \\mid 49S_3 + 14S_1 \\Rightarrow 13 \\mid S_1 - 3S_3\n$$\nObserve that $|S_1| \\leq s_1 = \\sum_{i \\text{ odd}} a_i = 3$ and likewise $|S_2|, |S_3| \\leq 3$. Then $-13 < S_1 - 3S_3 < 13$ and consequently $S_1 = 3S_3$. Thus $S_2 = 4S_3$ and $|S_2| \\leq 3$ yields $S_2 = 0$ and then $S_1 = S_3 = 0$. We have $s_1 = s_4$, $s_2 = s_5$, $s_3 = s_6$ and $s_1 + s_2 + s_3 = 3$, so the greatest number $A$ is $30030000\\ldots$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34324, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $n \\geq 2$ be a fixed positive integer. An integer will be called \"$n$-free\" if it is not a multiple of an $n$-th power of a prime. Let $M$ be an infinite set of rational numbers, such that the product of every $n$ elements of $M$ is an $n$-free integer. Prove that $M$ contains only integers.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nWe first prove that $M$ can contain only a finite number of non-integers. Suppose that there are infinitely many of them: $\\frac{p_{1}}{q_{1}}, \\frac{p_{2}}{q_{2}}, \\ldots, \\frac{p_{k}}{q_{k}}, \\ldots$, with $(p_{k}, q_{k})=1$ and $q_{k}>1$ for each $k$. Let $\\frac{p}{q}=\\frac{p_{1} p_{2} \\ldots p_{n-1}}{q_{1} q_{2} \\ldots q_{n-1}}$, where $(p, q)=1$. For each $i \\geq n$, the number $\\frac{p}{q} \\cdot \\frac{p_{i}}{q_{i}}$ is an integer, so $q_{i}$ is a divisor of $p$ (as $q_{i}$ and $p_{i}$ are coprime). But $p$ has a finite set of divisors, so there are $n$ numbers of $M$ with equal denominators. Their product cannot be an integer, a contradiction.\n\nNow suppose that $M$ contains a fraction $\\frac{a}{b}$ in lowest terms with $b>1$. Take a prime divisor $p$ of $b$. If we take any $n-1$ integers from $M$, their product with $\\frac{a}{b}$ is an integer, so some of them is a multiple of $p$. Therefore there are infinitely many multiples of $p$ in $M$, and the product of $n$ of them is not $n$-free, a contradiction.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34325, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $s(a)$ denote the sum of digits of a given positive integer $a$. The sequence $a_{1}, a_{2}, \\ldots, a_{n}, \\ldots$ of positive integers is such that $a_{n+1} = a_{n} + s(a_{n})$ for each positive integer $n$. Find the greatest possible $n$ for which it is possible to have $a_{n} = 2008$.", "options": [], "answer": "6", "solution": "Solution:\nSince $a_{n-1} \\equiv s(a_{n-1})$ (all congruences are modulo $9$), we have $2a_{n-1} \\equiv a_{n} \\equiv 2008 \\equiv 10$, so $a_{n-1} \\equiv 5$. But $a_{n-1} < 2008$, so $s(a_{n-1}) \\leq 28$ and thus $s(a_{n-1})$ can equal $5$, $14$ or $23$. We check $s(2008-5) = s(2003) = 5$, $s(2008-14) = s(1994) = 23$, $s(2008-23) = s(1985) = 23$. Thus $a_{n-1}$ can equal $1985$ or $2003$.\n\nAs above $2a_{n-2} \\equiv a_{n-1} \\equiv 5 \\equiv 14$, so $a_{n-2} \\equiv 7$. But $a_{n-2} < 2003$, so $s(a_{n-2}) \\leq 28$ and thus $s(a_{n-2})$ can equal $16$ or $25$. Checking as above we see that the only possibility is $s(2003-25) = s(1978) = 25$. Thus $a_{n-2}$ can be only $1978$.\n\nNow $2a_{n-3} \\equiv a_{n-2} \\equiv 7 \\equiv 16$ and $a_{n-3} \\equiv 8$. But $s(a_{n-3}) \\leq 27$ and thus $s(a_{n-3})$ can equal $17$ or $26$. The check works only for $s(1978-17) = s(1961) = 17$. Thus $a_{n-3} = 1961$ and similarly $a_{n-4} = 1939 \\equiv 4$, $a_{n-5} = 1919 \\equiv 2$ (if they exist).\n\nThe search for $a_{n-6}$ requires a residue of $1$. But $a_{n-6} < 1919$, so $s(a_{n-6}) \\leq 27$ and thus $s(a_{n-6})$ can be equal only to $10$ or $19$. The check fails for both $s(1919-10) = s(1909) = 19$ and $s(1919-19) = s(1900) = 10$. Thus $n \\leq 6$ and the case $n = 6$ is constructed above ($1919$, $1939$, $1961$, $1978$, $2003$, $2008$).", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34326, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all integers $n$ such that $n^{4}+8 n+11$ is a product of two or more consecutive integers.", "options": [], "answer": "n = 1", "solution": "Solution:\nWe will prove that $n^{4}+8 n+11$ is never a multiple of $3$. This is clear if $n$ is a multiple of $3$. If $n$ is not a multiple of $3$, then\n$$\nn^{4}+8 n+11 = (n^{4}-1) + 12 + 8 n = (n-1)(n+1)(n^{2}+1) + 12 + 8 n,\n$$\nwhere $8 n$ is the only term not divisible by $3$. Thus $n^{4}+8 n+11$ is never the product of three or more consecutive integers.\n\nIt remains to discuss the case when $n^{4}+8 n+11 = y(y+1)$ for some integer $y$. We write this as\n$$\n4(n^{4}+8 n+11) = 4 y(y+1)\n$$\nor\n$$\n4 n^{4} + 32 n + 45 = (2 y + 1)^{2}.\n$$\nA check shows that among $n = \\pm 1$ and $n = 0$ only $n = 1$ satisfies the requirement, as $1^{4} + 8 \\cdot 1 + 11 = 20 = 4 \\cdot 5$.\n\nNow let $|n| \\geq 2$. The identities\n$$\n4 n^{4} + 32 n + 45 = (2 n^{2} - 2)^{2} + 8(n+2)^{2} + 9\n$$\nand\n$$\n4 n^{4} + 32 n + 45 = (2 n^{2} + 8)^{2} - 32 n(n-1) - 19\n$$\nindicate that for $|n| \\geq 2$, $2 n^{2} - 2 < 2 y + 1 < 2 n^{2} + 8$. But $2 y + 1$ is odd, so it can equal $2 n^{2} \\pm 1$, $2 n^{2} + 3$, $2 n^{2} + 5$, or $2 n^{2} + 7$. We investigate them one by one.\n\nIf $4 n^{4} + 32 n + 45 = (2 n^{2} - 1)^{2}$:\n$$\nn^{2} + 8 n + 11 = 0 \\implies (n+4)^{2} = 5,\n$$\nwhich is impossible, as $5$ is not a perfect square.\n\nIf $4 n^{4} + 32 n + 45 = (2 n^{2} + 1)^{2}$:\n$$\nn^{2} - 8 n - 11 = 0 \\implies (n-4)^{2} = 27,\n$$\nwhich also fails.\n\nAlso, $4 n^{4} + 32 n + 45 = (2 n^{2} + 3)^{2}$:\n$$\n3 n^{2} - 8 n - 9 = 0 \\implies 9 n^{2} - 24 n - 27 = 0 \\implies (3 n - 4)^{2} = 43,\n$$\nfails.\n\nIf $4 n^{4} + 32 n + 45 = (2 n^{2} + 5)^{2}$:\n$$\n5 n^{2} - 8 n = 5 \\implies 25 n^{2} - 40 n = 25 \\implies (5 n - 4)^{2} = 41,\n$$\nwhich also fails.\n\nFinally, if $4 n^{4} + 32 n + 45 = (2 n^{2} + 7)^{2}$, then\n$$\n28 n^{2} - 32 n + 4 = 0 \\implies 4(n-1)(7 n-1) = 0,\n$$\nwhence $n = 1$ that we already found.\n\nThus the only solution is $n = 1$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34327, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nIs it possible to arrange the numbers $1^{1}, 2^{2}, \\ldots, 2008^{2008}$ one after the other, in such a way that the obtained number is a perfect square? (Explain your answer.)", "options": [], "answer": "No", "solution": "Solution:\nWe will use the following lemmas.\n\nLemma 1. If $x \\in \\mathbb{N}$, then $x^{2} \\equiv 0$ or $1 \\pmod{3}$.\n\nProof: Let $x \\in \\mathbb{N}$, then $x=3k$, $x=3k+1$ or $x=3k+2$, hence\n$$\n\\begin{aligned}\n& x^{2}=9k^{2} \\equiv 0 \\pmod{3} \\\\\n& x^{2}=9k^{2}+6k+1 \\equiv 1 \\pmod{3}, \\\\\n& x^{2}=9k^{2}+12k+4 \\equiv 1 \\pmod{3}, \\text{ respectively. }\n\\end{aligned}\n$$\nHence $x^{2} \\equiv 0$ or $1 \\pmod{3}$, for every positive integer $x$.\n\nWithout proof we will give the following lemma.\n\nLemma 2. If $a$ is a positive integer then $a \\equiv S(a) \\pmod{3}$, where $S(a)$ is the sum of the digits of the number $a$.\n\nFurther we have\n$$\n\\begin{aligned}\n& (6k+1)^{6k+1}=\\left[(6k+1)^{k}\\right]^{6} \\cdot (6k+1) \\equiv 1 \\pmod{3} \\\\\n& (6k+2)^{6k+2}=\\left[(6k+2)^{3k+1}\\right]^{2} \\equiv 1 \\pmod{3} \\\\\n& (6k+3)^{6k+3} \\equiv 0 \\pmod{3} \\\\\n& (6k+4)^{6k+4}=\\left[(6k+1)^{3k+2}\\right]^{2} \\equiv 1 \\pmod{3} \\\\\n& (6k+5)^{6k+5}=\\left[(6k+5)^{3k+2}\\right]^{2} \\cdot (6k+5) \\equiv 2 \\pmod{3} \\\\\n& (6k+6)^{6k+6} \\equiv 0 \\pmod{3}\n\\end{aligned}\n$$\nfor every $k=1,2,3, \\ldots$.\n\nLet us separate the numbers $1^{1}, 2^{2}, \\ldots, 2008^{2008}$ into the following six classes: $(6k+1)^{6k+1}$, $(6k+2)^{6k+2}$, $(6k+3)^{6k+3}$, $(6k+4)^{6k+4}$, $(6k+5)^{6k+5}$, $(6k+6)^{6k+6}$, $k=1,2,\\ldots$.\n\nFor $k=1,2,3, \\ldots$ let us denote by\n$s_{k}=(6k+1)^{6k+1}+(6k+2)^{6k+2}+(6k+3)^{6k+3}+(6k+4)^{6k+4}+(6k+5)^{6k+5}+(6k+6)^{6k+6}$.\n\nFrom (3) we have\n$$\ns_{k} \\equiv 1+1+0+1+2+0 \\equiv 2 \\pmod{3}\n$$\nfor every $k=1,2,3, \\ldots$.\n\nLet $A$ be the number obtained by writing one after the other (in some order) the numbers $1^{1}, 2^{2}, \\ldots, 2008^{2008}$.\n\nThe sum of the digits, $S(A)$, of the number $A$ is equal to the sum of the sums of digits, $S\\left(i^{i}\\right)$, of the numbers $i^{i}, i=1,2, \\ldots, 2008$, and so, from Lemma 2, it follows that\n$$\nA \\equiv S(A)=S\\left(1^{1}\\right)+S\\left(2^{2}\\right)+\\ldots+S\\left(2008^{2008}\\right) \\equiv 1^{1}+2^{2}+\\ldots+2008^{2008} \\pmod{3}\n$$\nFurther on $2008=334 \\cdot 6+4$ and if we use (3) and (4) we get\n$$\n\\begin{aligned}\nA & \\equiv 1^{1}+2^{2}+\\ldots+2008^{2008} \\\\\n& \\equiv s_{1}+s_{2}+\\ldots+s_{334}+2005^{2005}+2006^{2006}+2007^{2007}+2008^{2008} \\pmod{3} \\\\\n& \\equiv 334 \\cdot 2+1+1+0+1=671 \\equiv 2 \\pmod{3}\n\\end{aligned}\n$$\nFinally, from Lemma 1, it follows that $A$ can not be a perfect square.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34328, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nDetermine the minimal prime number $p > 3$ for which no natural number $n$ satisfies\n$$\n2^{n} + 3^{n} \\equiv 0 \\pmod{p}\n$$", "options": [], "answer": "19", "solution": "Solution:\nWe put $A(n) = 2^{n} + 3^{n}$. From Fermat's little theorem, we have $2^{p-1} \\equiv 1 \\pmod{p}$ and $3^{p-1} \\equiv 1 \\pmod{p}$, from which we conclude $A(n) \\equiv 2 \\pmod{p}$. Therefore, after $p-1$ steps at most, we will have repetition of the power. It means that in order to determine the minimal prime number $p$ we seek, it is enough to determine a complete set of remainders $S(p) = \\{0, 1, \\ldots, p-1\\}$ such that $2^{n} + 3^{n} \\not\\equiv 0 \\pmod{p}$, for every $n \\in S(p)$.\n\nFor $p = 5$ and $n = 1$ we have $A(1) \\equiv 0 \\pmod{5}$.\n\nFor $p = 7$ and $n = 3$ we have $A(3) \\equiv 0 \\pmod{7}$.\n\nFor $p = 11$ and $n = 5$ we have $A(5) \\equiv 0 \\pmod{11}$.\n\nFor $p = 13$ and $n = 2$ we have $A(2) \\equiv 0 \\pmod{13}$.\n\nFor $p = 17$ and $n = 8$ we have $A(8) \\equiv 0 \\pmod{17}$.\n\nFor $p = 19$ we have $A(n) \\not\\equiv 0 \\pmod{19}$, for all $n \\in S(19)$.\n\nHence the minimal value of $p$ is $19$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34329, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $a, b, c, d, e, f$ are nonzero digits such that the natural numbers $\\overline{a b c}$, $\\overline{d e f}$ and $\\overline{a b c d e f}$ are squares.\na) Prove that $\\overline{a b c d e f}$ can be represented in two different ways as a sum of three squares of natural numbers.\nb) Give an example of such a number.", "options": [], "answer": "225625", "solution": "Solution:\na) Let $\\overline{a b c}=m^{2}$, $\\overline{d e f}=n^{2}$ and $\\overline{a b c d e f}=p^{2}$, where $11 \\leq m \\leq 31, 11 \\leq n \\leq 31$ are natural numbers. So, $p^{2}=1000 \\cdot m^{2}+n^{2}$. But $1000=30^{2}+10^{2}=18^{2}+26^{2}$. We obtain the following relations\n$$\n\\begin{gathered}\np^{2}=\\left(30^{2}+10^{2}\\right) \\cdot m^{2}+n^{2}=\\left(18^{2}+26^{2}\\right) \\cdot m^{2}+n^{2}= \\\\\n=(30 m)^{2}+(10 m)^{2}+n^{2}=(18 m)^{2}+(26 m)^{2}+n^{2}\n\\end{gathered}\n$$\nThe assertion a) is proved.\n\nb) We write the equality $p^{2}=1000 \\cdot m^{2}+n^{2}$ in the equivalent form $(p+n)(p-n)=1000 \\cdot m^{2}$, where $349 \\leq p \\leq 979$. If $1000 \\cdot m^{2}=p_{1} \\cdot p_{2}$, such that $p+n=p_{1}$ and $p-n=p_{2}$, then $p_{1}$ and $p_{2}$ are even natural numbers with $p_{1}>p_{2} \\geq 318$ and $22 \\leq p_{1}-p_{2} \\leq 62$. For $m=15$ we obtain $p_{1}=500, p_{2}=450$. So, $n=25$ and $p=475$. We have\n$$\n225625=475^{2}=450^{2}+150^{2}+25^{2}=270^{2}+390^{2}+25^{2}\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34330, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nDetermine all integers $a, b, c$ satisfying the identities:\n$$\n\\begin{gathered}\na+b+c=15 \\\\\n(a-3)^{3}+(b-5)^{3}+(c-7)^{3}=540\n\\end{gathered}\n$$", "options": [], "answer": "[(-1, 0, 16), (-2, 1, 16), (-1, 14, 2), (-2, 14, 3), (12, 0, 3), (12, 1, 2)]", "solution": "Solution:\nWe will use the following fact:\n\nLemma: If $x, y, z$ are integers such that\n$$\nx+y+z=0\n$$\nthen\n$$\nx^{3}+y^{3}+z^{3}=3 x y z\n$$\nProof: Let\n$$\nx+y+z=0.\n$$\nThen we have\n$$\nx^{3}+y^{3}+z^{3}=x^{3}+y^{3}+(-x-y)^{3}=x^{3}+y^{3}-x^{3}-y^{3}-3 x y(x+y)=3 x y z\n$$\nNow, from\n$$\na+b+c=15\n$$\nwe obtain:\n$$\n(a-3)+(b-5)+(c-7)=0\n$$\nUsing the lemma and the given equations, we get:\n$$\n540=(a-3)^{3}+(b-5)^{3}+(c-7)^{3}=3(a-3)(b-5)(c-7)\n$$\nNow,\n$$\n(a-3)(b-5)(c-7)=180=2 \\times 2 \\times 3 \\times 3 \\times 5\n$$\nSince\n$$\n(a-3)+(b-5)+(c-7)=0\n$$\nonly possibility for the product $(a-3)(b-5)(c-7)$ is $(-4) \\times(-5) \\times 9$. Finally, we obtain the following systems of equations:\n$$\n\\left\\{\\begin{array} { l } \n{ a - 3 = - 4 } \\\\\n{ b - 5 = - 5 } \\\\\n{ c - 7 = 9 , }\n\\end{array} \\quad \\left\\{\\begin{array} { l } \n{ a - 3 = - 5 } \\\\\n{ b - 5 = - 4 } \\\\\n{ c - 7 = 9 , }\n\\end{array} \\quad \\left\\{\\begin{array} { l } \n{ a - 3 = - 4 } \\\\\n{ b - 5 = - 5 } \\\\\n{ c - 7 = 9 , }\n\\end{array} \\quad \\left\\{\\begin{array}{l}\na-3=-5 \\\\\nb-5=-4 \\\\\nc-7=9\n\\end{array}\\right.\\right.\\right.\\right.\n$$\nFrom here we get:\n$$\n(a, b, c) \\in\\{(-1,0,16),(-2,1,16),(7,10,-2),(8,9,-2)\\}\n$$\n\n\nSolution II:\nWe use the substitution $a-3=x, b-5=y, c-7=z$.\nNow, equations are transformed to:\n$$\n\\begin{aligned}\nx+y+z & =0 \\\\\nx^{3}+y^{3}+z^{3} & =540 .\n\\end{aligned}\n$$\nSubstituting $z=-x-y$ in second equation, we get:\n$$\n-3 x y^{2}-3 x^{2} y=540\n$$\nor\n$$\nx y(x+y)=-180\n$$\nor\n$$\nx y z=180.\n$$\nReturning to starting problem we have:\n$$\n(a-3)(b-5)(c-7)=180\n$$\nSolution proceeds as the previous one.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34331, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind the maximum value of $z + x$, if $(x, y, z, t)$ satisfies the conditions:\n$$\n\\left\\{\\begin{array}{l}\nx^{2} + y^{2} = 4 \\\\\nz^{2} + t^{2} = 9 \\\\\nx t + y z \\geq 6\n\\end{array}\\right.\n$$", "options": [], "answer": "sqrt(13)", "solution": "Solution:\nFrom the conditions we have\n$$\n36 = (x^{2} + y^{2})(z^{2} + t^{2}) = (x t + y z)^{2} + (x z - y t)^{2} \\geq 36 + (x z - y t)^{2}\n$$\nand this implies $x z - y t = 0$.\nNow it is clear that\n$$\nx^{2} + z^{2} + y^{2} + t^{2} = (x + z)^{2} + (y - t)^{2} = 13\n$$\nand the maximum value of $z + x$ is $\\sqrt{13}$. It is achieved for $x = \\frac{4}{\\sqrt{13}}, y = t = \\frac{6}{\\sqrt{13}}$ and $z = \\frac{9}{\\sqrt{13}}$.\nSolution:\nFrom inequality $x t + y z \\geq 6$ and problem conditions we have:\n$$\n\\begin{gathered}\n(x t + y z)^{2} - 36 \\geq 0 \\Leftrightarrow \\\\\n(x t + y z)^{2} - (x^{2} + y^{2})(z^{2} + t^{2}) \\geq 0 \\Leftrightarrow \\\\\n2 x y z t - x^{2} y^{2} - y^{2} t^{2} \\geq 0 \\Leftrightarrow \\\\\n-(x z - y t)^{2} \\geq 0\n\\end{gathered}\n$$\nFrom here we have $x z = y t$.\nFurthermore,\n$$\nx^{2} + y^{2} + z^{2} + t^{2} = (x + z)^{2} + (y - t)^{2} = 13\n$$\nand it follows that\n$$\n(x + z)^{2} \\leq 13\n$$\nThus,\n$$\nx + z \\leq \\sqrt{13}\n$$\nEquality $x + z = \\sqrt{13}$ holds if we have $y = t$ and $z^{2} - x^{2} = 5$, which leads to $z - x = \\frac{5}{\\sqrt{13}}$. Therefore, $x = \\frac{4}{\\sqrt{13}}, y = t = \\frac{6}{\\sqrt{13}}, z = \\frac{9}{\\sqrt{13}}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34332, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all values of the real parameter $a$, for which the system\n$$\n\\left\\{\\begin{array}{c}\n(|x|+|y|-2)^{2}=1 \\\\\ny=a x+5\n\\end{array}\\right.\n$$\nhas exactly three solutions.", "options": [], "answer": "a = -5 or a = 5", "solution": "Solution:\nThe first equation is equivalent to\n$$\n|x|+|y|=1\n$$\nor\n$$\n|x|+|y|=3\n$$\nThe graph of the first equation is symmetric with respect to both axes. In the first quadrant it is reduced to $x+y=1$, whose graph is segment connecting points $(1,0)$ and $(0,1)$. Thus, the graph of\n$$\n|x|+|y|=1\n$$\nis square with vertices $(1,0),(0,1),(-1,0)$ and $(0,-1)$. Similarly, the graph of\n$$\n|x|+|y|=3\n$$\nis a square with vertices $(3,0),(0,3),(-3,0)$ and $(0,-3)$. The graph of the second equation of the system is a straight line with slope $a$ passing through $(0,5)$. This line intersects the graph of the first equation in three points exactly, when passing through one of the points $(1,0)$ or $(-1,0)$. This happens if and only if $a=5$ or $a=-5$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34333, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $x$, $y$, $z$ be positive real numbers. Prove that:\n$$\n\\left(x^{2}+y+1\\right)\\left(x^{2}+z+1\\right)\\left(y^{2}+z+1\\right)\\left(y^{2}+x+1\\right)\\left(z^{2}+x+1\\right)\\left(z^{2}+y+1\\right) \\geq (x+y+z)^{6}\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\nApplying Cauchy-Schwarz's inequality:\n$$\n\\left(x^{2}+y+1\\right)\\left(z^{2}+y+1\\right)=\\left(x^{2}+y+1\\right)\\left(1+y+z^{2}\\right) \\geq (x+y+z)^{2}\n$$\nUsing the same reasoning we deduce:\n$$\n\\left(x^{2}+z+1\\right)\\left(y^{2}+z+1\\right) \\geq (x+y+z)^{2}\n$$\nand\n$$\n\\left(y^{2}+x+1\\right)\\left(z^{2}+x+1\\right) \\geq (x+y+z)^{2}\n$$\nMultiplying these three inequalities we get the desired result.\nSolution:\nWe have\n$$\n\\begin{gathered}\n\\left(x^{2}+y+1\\right)\\left(z^{2}+y+1\\right) \\geq (x+y+z)^{2} \\Leftrightarrow \\\\\nx^{2} z^{2}+x^{2} y+x^{2}+y z^{2}+y^{2}+y+z^{2}+y+1 \\geq x^{2}+y^{2}+z^{2}+2 x y+2 y z+2 z x \\Leftrightarrow \\\\\n\\left(x^{2} z^{2}-2 z x+1\\right)+\\left(x^{2} y-2 x y+y\\right)+\\left(y z^{2}-2 y z+y\\right) \\geq 0 \\Leftrightarrow \\\\\n(x z-1)^{2}+y(x-1)^{2}+y(z-1)^{2} \\geq 0\n\\end{gathered}\n$$\nwhich is correct.\nUsing the same reasoning we get:\n$$\n\\begin{aligned}\n& \\left(x^{2}+z+1\\right)\\left(y^{2}+z+1\\right) \\geq (x+y+z)^{2} \\\\\n& \\left(y^{2}+x+1\\right)\\left(z^{2}+x+1\\right) \\geq (x+y+z)^{2}\n\\end{aligned}\n$$\nMultiplying these three inequalities we get the desired result. Equality is attained at $x=y=z=1$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34334, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nFive players $A$, $B$, $C$, $D$, $E$ take part in a bridge tournament. Every two players must play (as partners) against every other two players. Any two given players can be partners not more than once per day. What is the least number of days needed for this tournament?", "options": [], "answer": "4", "solution": "Solution:\n\nA given pair must play with three other pairs and these plays must be in different days, so at least three days are needed. Suppose that three days suffice. Let the pair $AB$ play against $CD$ on day $x$. Then $AB-DE$ and $CD-BE$ cannot play on day $x$. Then one of the other two plays of $DE$ (with $AC$ and $BC$) must be on day $x$. Similarly, one of the plays of $BE$ with $AC$ or $AD$ must be on day $x$. Thus, two of the plays in the chain $BC-DE-AC-BE-AD$ are on day $x$ (more than two among these cannot be on one day).\n\nConsider the chain $AB-CD-EA-BD-CE-AB$. At least three days are needed for playing all the matches within it. For each of these days we conclude (as above) that there are exactly two of the plays in the chain $BC-DE-AC-BE-AD-BC$ on that day. This is impossible, as this chain consists of five plays.\n\nIt remains to show that four days will suffice:\n\nDay 1: $AB-CD$, $AC-DE$, $AD-CE$, $AE-BC$\n\nDay 2: $AB-DE$, $AC-BD$, $AD-BC$, $BE-CD$\n\nDay 3: $AB-CE$, $AD-BE$, $AE-BD$, $BC-DE$\n\nDay 4: $AC-BE$, $AE-CD$, $BD-CE$.\nSolution:\n\nThere are 10 pairs. Each of them plays 3 games, so the tournament needs to last at least 3 days. Assume the tournament could finish in 3 days. Then every pair must play one game on each day. There are 15 games to be played, so you must have 5 games on each day. Call \"Day 1\" the day $AB$ plays against $CD$, \"Day 2\" the day $AB$ plays against $DE$ and \"Day 3\" the day $AB$ plays against $CE$. Let us examine the other possible games on Day 1. $CE$ can't play $AB$, so it must play either $AD$ or $BD$. $DE$ can't play $AB$, so it must play $AC$ or $BC$. Similarly, $AE$ can't play $CD$, so it must play $BC$ or $BD$, and $BE$ must play either $AC$ or $AD$. We obtain the following circular diagram in which exactly every other game has to take place on Day 1, either the red ones or the blue ones:\n\n![](attached_image_1.png)\n\nSimilar reasoning leads us to the following diagram for Day 2. Here again, either all the red matches have to take place, or all the blue matches have to take place on Day 2.\n\n![](attached_image_2.png)\n\nOne can't have the blue matches on both Day 1 and Day 2 because $AD-BE$ would repeat itself.\nWe can't have the red matches on both days as this would repeat the match $BD-CE$.\nWe can not have the blue matches on Day 1 and the red matches on Day 2 because this would repeat the game $AC-BE$. Finally, choosing the red matches on Day 1 and the blue ones on Day 2 won't work either as the game $AE-BC$ would repeat itself.\n\nIn conclusion, the tournament has to last at least four days. An example of how it could be organized in four days is given in the previous solution.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34335, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nDetermine all pairs $(m, n)$ for which it is possible to tile the table $m \\times n$ with \"corners\" as in the figure below, with the condition that in the tiling there is no rectangle (except for the $m \\times n$ one) regularly covered with corners.\n\n![](attached_image_1.png)", "options": [], "answer": "All and only boards of sizes 2×3, 3×2; 6×2k and 2k×6 for k ≥ 2; and 6k×4ℓ and 6k×(4ℓ+2) for k, ℓ ≥ 2.", "solution": "Solution:\nEvery \"corner\" covers exactly 3 squares, so a necessary condition for the tiling to exist is $3 \\mid m n$.\n\nFirst, we shall prove that for a tiling with our condition to exist, it is necessary that both $m, n$ for $m, n>3$ to be even. Suppose the contrary, i.e. suppose that $m>3$ is odd (without losing generality). Look at the \"corners\" that cover squares on the side of length $m$ of table $m \\times n$. Because $m$ is odd, there must be a \"corner\" which covers exactly one square of that side. But any placement of that corner forces existence of a $2 \\times 3$ rectangle in the tiling. Thus, $m$ and $n$ for $m, n>3$ must be even and at least one of them is divisible by 3.\n\nNotice that in the corners of table $m \\times n$, the \"corner\" must be placed such that it covers the square in the corner of the rectangle and its two neighboring squares, otherwise, again, a $2 \\times 3$ rectangle would form.\n\nIf one of $m$ and $n$ is 2 then condition forces that the only convenient tables are $2 \\times 3$ and $3 \\times 2$. If we try to find the desired tiling when $m=4$, then we are forced to stop at table $4 \\times 6$ because of the conditions of problem.\n\nWe easily find an example of a desired tiling for the table $6 \\times 6$ and, more generally, a tiling for a $6 \\times 2 k$ table.\n\nThus, it will be helpful to prove that the desired tiling exists for tables $6 k \\times 4 \\ell$, for $k, \\ell \\geq 2$. Divide that table at rectangle $6 \\times 4$ and tile that rectangle as we described. Now, change placement of problematic \"corners\" as in figure.\n\nThus, we get desired tiling for this type of table.\n\nSimilarly, we prove existence in case $6 k \\times (4 \\ell+2)$ where $k, \\ell \\geq 2$. But, we first divide table at two tables $6 k \\times 6$ and $6 k \\times 4(\\ell-1)$. Divide them at rectangles $6 \\times 6$ and $6 \\times 4$. Tile them as we described earlier, and arrange problematic \"corners\" as in previous case. So, $2 \\times 3, 3 \\times 2, 6 \\times 2 k, 2 k \\times 6, k \\geq 2$, and $6 k \\times 4 \\ell$ for $k, \\ell \\geq 2$ and $6 k \\times (4 \\ell+2)$ for $k, \\ell \\geq 2$ are the convenient pairs.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34336, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $ABCD$ be a parallelogram with $AC > BD$, and let $O$ be the point of intersection of $AC$ and $BD$. The circle with center at $O$ and radius $OA$ intersects the extensions of $AD$ and $AB$ at points $G$ and $L$, respectively. Let $Z$ be the intersection point of lines $BD$ and $GL$. Prove that $\\angle ZCA = 90^{\\circ}$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nFrom the point $L$ we draw a parallel line to $BD$ that intersects lines $AC$ and $AG$ at points $N$ and $R$ respectively. Since $DO = OB$, we have that $NR = NL$, and point $N$ is the midpoint of segment $LR$.\n\nLet $K$ be the midpoint of $GL$. Now, $NK \\parallel RG$, and\n$$\n\\angle AGL = \\angle NKL = \\angle ACL\n$$\nTherefore, from the cyclic quadrilateral $NKCL$ we deduce:\n$$\n\\angle KCN = \\angle KLN\n$$\nNow, since $LR \\parallel DZ$, we have\n$$\n\\angle KLN = \\angle KZO\n$$\n![](attached_image_1.png)\nIt implies that quadrilateral $OKCZ$ is cyclic, and\n$$\n\\angle OKZ = \\angle OCZ\n$$\nSince $OK \\perp GL$, we derive that $\\angle ZCA = 90^{\\circ}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34337, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn a right trapezoid $ABCD$ ($AB \\parallel CD$) the angle at vertex $B$ measures $75^{\\circ}$. Point $H$ is the foot of the perpendicular from point $A$ to the line $BC$. If $BH = DC$ and $AD + AH = 8$, find the area of $ABCD$.", "options": [], "answer": "8", "solution": "Solution:\n\nProduce the legs of the trapezoid until they intersect at point $E$. The triangles $ABH$ and $ECD$ are congruent (ASA). The area of $ABCD$ is equal to area of triangle $EAH$ of hypotenuse\n$$\nAE = AD + DE = AD + AH = 8\n$$\nLet $M$ be the midpoint of $AE$. Then\n$$\nME = MA = MH = 4\n$$\nand $\\angle AMH = 30^{\\circ}$. Now, the altitude from $H$ to $AM$ equals one half of $MH$, namely $2$. Finally, the area is $8$.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 34338, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nA parallelogram $ABCD$ with obtuse angle $\\angle ABC$ is given. After rotating the triangle $ACD$ around the vertex $C$, we get a triangle $CD' A'$, such that points $B$, $C$ and $D'$ are collinear. The extension of the median of triangle $CD' A'$ that passes through $D'$ intersects the straight line $BD$ at point $P$. Prove that $PC$ is the bisector of the angle $\\angle BP D'$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nLet $AC \\cap BD = \\{X\\}$ and $PD' \\cap CA' = \\{Y\\}$. Because $AX = CX$ and $CY = YA'$, we deduce:\n$$\n\\triangle ABC \\cong \\triangle CDA \\cong \\triangle CD' A' \\Rightarrow \\triangle ABX \\cong \\triangle CD' Y, \\triangle BCX \\cong \\triangle D'A' Y\n$$\nIt follows that\n$$\n\\angle ABX = \\angle CD' Y\n$$\nLet $M$ and $N$ be orthogonal projections of the point $C$ on the straight lines $PD'$ and $BP$, respectively, and $Q$ is the orthogonal projection of the point $A$ on the straight line $BP$. Because $CD' = AB$, we have that $\\triangle ABQ \\cong \\triangle CD' M$.\nWe conclude that $CM = AQ$. But, $AX = CX$ and $\\triangle AQX \\cong \\triangle CNX$. So, $CM = CN$ and $PC$ is the bisector of the angle $\\angle BP D'$.\n\n![](attached_image_1.png)\n\nMuch shortened: $\\triangle CD' Y \\equiv \\triangle CDX$ means their altitudes from $C$ are also equal, i.e. $CM = CN$ and the conclusion.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 34339, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $A B C D E$ be a convex pentagon such that $A B + C D = B C + D E$ and let $k$ be a semicircle with center on side $A E$ that touches the sides $A B, B C, C D$ and $D E$ of the pentagon, respectively, at points $P, Q, R$ and $S$ (different from the vertices of the pentagon). Prove that $P S \\| A E$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nLet $O$ be center of $k$. We deduce that $B P = B Q$, $C Q = C R$, $D R = D S$, since those are tangents to the circle $k$. Using the condition $A B + C D = B C + D E$, we derive:\n$$\nA P + B P + C R + D R = B Q + C Q + D S + E S\n$$\nFrom here we have $A P = E S$.\nThus,\n$$\n\\triangle A P O \\cong \\triangle E S O \\left(A P = E S, \\angle A P O = \\angle E S O = 90^{\\circ}, P O = S O\\right)\n$$\nThis implies\n$$\n\\angle O P S = \\angle O S P\n$$\nTherefore,\n$$\n\\angle A P S = \\angle A P O + \\angle O P S = 90^{\\circ} + \\angle O P S = 90^{\\circ} + \\angle O S P = \\angle P S E\n$$\nNow, from quadrilateral $A P S E$ we deduce:\n$$\n2 \\angle E A P + 2 \\angle A P S = \\angle E A P + \\angle A P S + \\angle P S E + \\angle S E A = 360^{\\circ}\n$$\nSo,\n$$\n\\angle E A P + \\angle A P S = 180^{\\circ}\n$$\nand $A P S E$ is isosceles trapezoid. Therefore, $A E \\| P S$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34340, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDetermine all positive integer numbers $k$ for which the numbers $k+9$ are perfect squares and the only prime factors of $k$ are $2$ and $3$.", "options": [], "answer": "16, 27, 72, 216, 432, 2592", "solution": "Solution:\n\nWe have an integer $x$ such that\n$$\nx^2 = k + 9\n$$\nwhere $k = 2^a 3^b$, $a, b \\geq 0$, $a, b \\in \\mathbb{N}$.\nTherefore,\n$$\n(x-3)(x+3) = k.\n$$\nIf $b = 0$ then we have $k = 16$.\n\nIf $b > 0$ then we have $3 \\mid k + 9$. Hence, $3 \\mid x^2$ and $9 \\mid k$.\nTherefore, we have $b \\geq 2$. Let $x = 3y$.\n$$\n(y-1)(y+1) = 2^a 3^{b-2}\n$$\nIf $a = 0$ then $b = 3$ and we have $k = 27$.\n\nIf $a \\geq 1$, then the numbers $y-1$ and $y+1$ are even. Therefore, we have $a \\geq 2$, and\n$$\n\\frac{y-1}{2} \\cdot \\frac{y+1}{2} = 2^{a-2} 3^{b-2}\n$$\nSince the numbers $\\frac{y-1}{2}$ and $\\frac{y+1}{2}$ are consecutive numbers, these numbers have to be powers of $2$ and $3$. Let $m = a-2$, $n = b-2$.\n\n- If $2^m - 3^n = 1$ then we have $m \\geq n$. For $n = 0$ we have $m = 1$, $a = 3$, $b = 2$ and $k = 72$. For $n > 0$ using $\\bmod 3$ we have that $m$ is even number. Let $m = 2t$. Therefore,\n$$\n\\left(2^t - 1\\right)\\left(2^t + 1\\right) = 3^n\n$$\nHence, $t = 1$, $m = 2$, $n = 1$ and $a = 4$, $b = 3$, $k = 432$.\n\n- If $3^n - 2^m = 1$, then $m > 0$. For $m = 1$ we have $n = 1$, $a = 3$, $b = 3$, $k = 216$. For $m > 1$ using $\\bmod 4$ we have that $n$ is even number. Let $n = 2t$.\n$$\n\\left(3^t - 1\\right)\\left(3^t + 1\\right) = 2^m\n$$\nTherefore, $t = 1$, $n = 2$, $m = 3$, $a = 5$, $b = 4$, $k = 2592$.\n\nSet of solutions: $\\{16, 27, 72, 216, 432, 2592\\}$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34341, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nA group of $n>1$ pirates of different ages owned a total of 2009 coins. Initially each pirate (except the youngest one) had one coin more than the next younger.\n\na) Find all possible values of $n$.\n\nb) Every day a pirate was chosen. The chosen pirate gave a coin to each of the other pirates. If $n=7$, find the largest possible number of coins a pirate can have after several days.", "options": [], "answer": "a) n ∈ {2, 7, 14, 41, 49}. b) 1994", "solution": "Solution:\n\na) If $n$ is odd, then it is a divisor of $2009=7 \\times 7 \\times 41$. If $n>49$, then $n$ is at least $7 \\times 41$, while the average pirate has 7 coins, so the initial division is impossible. So, we can have $n=7$, $n=41$ or $n=49$. Each of these cases is possible (e.g. if $n=49$, the average pirate has 41 coins, so the initial amounts are from $41-24=17$ to $41+24=65$).\n\nIf $n$ is even, then 2009 is multiple of the sum $S$ of the oldest and the youngest pirate. If $S<7 \\times 41$, then $S$ is at most 39 and the pairs of pirates of sum $S$ is at least 41, so we must have at least 82 pirates, a contradiction. So we can have just $S=7 \\times 41=287$ and $S=49 \\times 41=2009$; respectively, $n=2 \\times 7=14$ or $n=2 \\times 1=2$. Each of these cases is possible (e.g. if $n=14$, the initial amounts are from $144-7=137$ to $143+7=150$). In total, $n$ is one of the numbers $2,7,13,41$ and 49.\n\nb) If $n=7$, the average pirate has $7 \\times 41=287$ coins, so the initial amounts are from 284 to 290; they have different residues modulo 7. The operation decreases one of the amounts by 6 and increases the other ones by 1, so the residues will be different at all times. The largest possible amount in one pirate's possession will be achieved if all the others have as little as possible, namely $0,1,2,3,4$ and 5 coins (the residues modulo 7 have to be different). If this happens, the wealthiest pirate will have $2009-14=1994$ coins. Indeed, this can be achieved e.g. if every day (until that moment) the coins are given by the second wealthiest: while he has more than 5 coins, he can provide the 6 coins needed, and when he has no more than five, the coins at the poorest six pirates have to be $0,1,2,3,4,5$. Thus, $n=1994$ can be achieved.", "topic": "Algebra", "subtopic": "Abstract Algebra" }, { "id": 34342, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all pairs $(x, y)$ of integers which satisfy the equation\n$$\n(x+y)^{2}\\left(x^{2}+y^{2}\\right)=2009^{2}\n$$", "options": [], "answer": "(40, 9), (9, 40), (-40, -9), (-9, -40)", "solution": "Solution:\nLet $x+y=s$, $x y=p$ with $s \\in \\mathbb{Z}^{*}$ and $p \\in \\mathbb{Z}$. The given equation can be written in the form\n$$\ns^{2}\\left(s^{2}-2 p\\right)=2009^{2}\n$$\nor\n$$\ns^{2}-2 p=\\left(\\frac{2009}{s}\\right)^{2}\n$$\nSo, $s$ divides $2009=7^{2} \\times 41$ and it follows that $p \\neq 0$.\nIf $p>0$, then $2009^{2}=s^{2}\\left(s^{2}-2 p\\right)=s^{4}-2 p s^{2}s^{4}$. We obtain that $s$ divides $2009$ and $|s| \\leq 41$. Thus, $s \\in\\{ \\pm 1, \\pm 7, \\pm 41\\}$. For these values of $s$ the equation has no integer solutions.\nSo, the given equation has only the solutions $(40,9),(9,40),(-40,-9),(-9,-40)$.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34343, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nDetermine all prime numbers $p_{1}, p_{2}, \\ldots, p_{12}, p_{13}$, $p_{1} \\leq p_{2} \\leq \\ldots \\leq p_{12} \\leq p_{13}$, such that\n$$\np_{1}^{2}+p_{2}^{2}+\\ldots+p_{12}^{2}=p_{13}^{2}\n$$\nand one of them is equal to $2 p_{1}+p_{9}$.", "options": [], "answer": "(2,2,2,2,2,2,2,3,3,5,7,7,13); (2,2,2,2,2,2,2,3,3,5,7,13,17); (2,2,2,2,2,2,2,3,3,5,7,29,31)", "solution": "Solution:\nObviously, $p_{13} \\neq 2$, because sum of squares of 12 prime numbers is greater or equal to $12 \\times 2^{2}=48$. Thus, $p_{13}$ is odd number and $p_{13} \\geq 7$.\nWe have that $n^{2} \\equiv 1 \\pmod{8}$, when $n$ is odd. Let $k$ be the number of prime numbers equal to $2$. Looking at equation modulo $8$ we get:\n$$\n4k + 12 - k \\equiv 1 \\pmod{8}\n$$\nSo, $k \\equiv 7 \\pmod{8}$ and because $k \\leq 12$ we get $k=7$. Therefore, $p_{1}=p_{2}=\\ldots=p_{7}=2$. Furthermore, we are looking for solutions of equations:\n$$\n28 + p_{8}^{2} + p_{9}^{2} + p_{10}^{2} + p_{11}^{2} + p_{12}^{2} = p_{13}^{2}\n$$\nwhere $p_{8}, p_{9}, \\ldots, p_{13}$ are odd prime numbers and one of them is equal to $p_{9}+4$.\nNow, we know that when $n$ is not divisible by $3$, $n^{2} \\equiv 1 \\pmod{3}$. Let $s$ be number of prime numbers equal to $3$. Looking at equation modulo $3$ we get:\n$$\n28 + 5 - s \\equiv 1 \\pmod{3}\n$$\nThus, $s \\equiv 2 \\pmod{3}$ and because $s \\leq 5$, $s$ is either $2$ or $5$. We will consider both cases.\n\ni. When $s=2$, we get $p_{8}=p_{9}=3$. Thus, we are looking for prime numbers $p_{10} \\leq p_{11} \\leq p_{12} \\leq p_{13}$ greater than $3$ and at least one of them is $7$ (certainly $p_{13} \\neq 7$), that satisfy\n$$\n46 + p_{10}^{2} + p_{11}^{2} + p_{12}^{2} = p_{13}^{2}\n$$\nWe know that $n^{2} \\equiv 1 \\pmod{5}$ or $n^{2} \\equiv 4 \\pmod{5}$ when $n$ is not divisible by $5$. It is not possible that $p_{10}=p_{11}=5$, because in that case $p_{12}$ must be equal to $7$ and the left-hand side would be divisible by $5$, which contradicts the fact that $p_{13} \\geq 7$. So, we proved that $p_{10}=5$ or $p_{10}=7$.\n\nIf $p_{10}=5$ then $p_{11}=7$ because $p_{11}$ is the least of remaining prime numbers. Thus, we are looking for solutions of equation\n$$\n120 = p_{13}^{2} - p_{12}^{2}\n$$\nin prime numbers. Now, from\n$$\n2^{3} \\cdot 3 \\cdot 5 = (p_{13} - p_{12})(p_{13} + p_{12})\n$$\nthat desired solutions are $p_{12}=7, p_{13}=13$; $p_{12}=13, p_{13}=17$; $p_{12}=29, p_{13}=31$.\n\nIf $p_{10}=7$ we are solving equation:\n$$\n95 + p_{11}^{2} + p_{12}^{2} = p_{13}^{2}\n$$\nin prime numbers greater than $5$. But left side can give residues $0$ or $3$ modulo $5$, while right side can give only $1$ or $4$ modulo $5$. So, in this case we do not have solution.\n\nii. When $s=5$ we get equation:\n$$\n28 + 45 = 73 = p_{13}^{2}\n$$\nbut $73$ is not square or integer and we do not have solution in this case.\n\nFinally, only solutions are:\n$\\{(2,2,2,2,2,2,2,3,3,5,7,7,13), (2,2,2,2,2,2,2,3,3,5,7,13,17), (2,2,2,2,2,2,2,3,3,5,7,29,31)\\}$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34344, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nShow that there are infinitely many positive integers $c$, such that both of the following equations have solutions in positive integers:\n$$\n\\left(x^{2}-c\\right)\\left(y^{2}-c\\right)=z^{2}-c\n$$\nand\n$$\n\\left(x^{2}+c\\right)\\left(y^{2}-c\\right)=z^{2}-c\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\nThe first equation always has solutions, namely the triples $\\{x, x+1, x(x+1)-c\\}$ for all $x \\in \\mathbb{N}$. Indeed,\n$$\n\\left(x^{2}-c\\right)\\left((x+1)^{2}-c\\right)=x^{2}(x+1)^{2}-2c\\left(x^{2}+(x+1)^{2}\\right)+c^{2}=(x(x+1)-c)^{2}-c.\n$$\n\nFor the second equation, we try $z=|xy-c|$. We need\n$$\n\\left(x^{2}+c\\right)\\left(y^{2}-c\\right)=(xy-c)^{2}\n$$\nor\n$$\nx^{2}y^{2}+c\\left(y^{2}-x^{2}\\right)-c^{2}=x^{2}y^{2}-2xyc+c^{2}\n$$\nCancelling the common terms we get\n$$\nc\\left(x^{2}-y^{2}+2xy\\right)=2c^{2}\n$$\nor\n$$\nc=\\frac{x^{2}-y^{2}+2xy}{2}\n$$\nTherefore, all $c$ of this form will work. This expression is a positive integer if $x$ and $y$ have the same parity, and it clearly takes infinitely many positive values. We only need to check $z \\neq 0$, i.e. $c \\neq xy$, which is true for $x \\neq y$. For example, one can take\n$$\ny=x-2\n$$\nand\n$$\nz=\\frac{x^{2}-(x-2)^{2}+2x(x-2)}{2}=x^{2}-2.\n$$\nThus, $\\{(x, x-2,2x-2)\\}$ is a solution for $c=x^{2}-2$.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34345, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nDetermine all four digit numbers $\\overline{a b c d}$ such that\n$$\na(a+b+c+d)\\left(a^{2}+b^{2}+c^{2}+d^{2}\\right)\\left(a^{6}+2 b^{6}+3 c^{6}+4 d^{6}\\right)=\\overline{a b c d}\n$$", "options": [], "answer": "2010", "solution": "Solution:\nFrom $\\overline{a b c d}<10000$ and\n$$\na^{10} \\leq a(a+b+c+d)\\left(a^{2}+b^{2}+c^{2}+d^{2}\\right)\\left(a^{6}+2 b^{6}+3 c^{6}+4 d^{6}\\right)=\\overline{a b c d}\n$$\nfollows that $a \\leq 2$. We thus have two cases:\n\nCase I: $a=1$.\n\nObviously $2000>\\overline{1 b c d}=(1+b+c+d)\\left(1+b^{2}+c^{2}+d^{2}\\right)\\left(1+2 b^{6}+3 c^{6}+4 d^{6}\\right) \\geq$ $(b+1)\\left(b^{2}+1\\right)\\left(2 b^{6}+1\\right)$, so $b \\leq 2$. Similarly one gets $c<2$ and $d<2$. By direct check there is no solution in this case.\n\nCase II: $a=2$.\n\nWe have $3000>\\overline{2 b c d}=2(2+b+c+d)\\left(4+b^{2}+c^{2}+d^{2}\\right)\\left(64+2 b^{6}+3 c^{6}+4 d^{6}\\right) \\geq$ $2(b+2)\\left(b^{2}+4\\right)\\left(2 b^{6}+64\\right)$, imposing $b \\leq 1$. In the same way one proves $c<2$ and $d<2$. By direct check, we find out that 2010 is the only solution.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34346, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all pairs $(x, y)$ of real numbers such that $|x| + |y| = 1340$ and $x^{3} + y^{3} + 2010 x y = 670^{3}$.", "options": [], "answer": "(-670, -670), (1005, -335), (-335, 1005)", "solution": "Solution:\nAnswer: $(-670, -670)$, $(1005, -335)$, $(-335, 1005)$.\n\nTo prove this, let $z = -670$. We have\n$$\n0 = x^{3} + y^{3} + z^{3} - 3 x y z = \\frac{1}{2}(x + y + z)\\left((x - y)^{2} + (y - z)^{2} + (z - x)^{2}\\right)\n$$\nThus either $x + y + z = 0$, or $x = y = z$. In the latter case we get $x = y = -670$, which satisfies both the equations.\n\nIn the former case we get $x + y = 670$. Then at least one of $x, y$ is positive, but not both, as from the second equation we would get $x + y = 1340$. If $x > 0 \\geq y$, we get $x - y = 1340$, which together with $x + y = 670$ yields $x = 1005$, $y = -335$. If $y > 0 \\geq x$ we get similarly $x = -335$, $y = 1005$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34347, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $a, b, c$ be positive real numbers such that $a b c(a+b+c)=3$. Prove the inequality\n$$\n(a+b)(b+c)(c+a) \\geq 8\n$$\nand determine all cases when equality holds.", "options": [], "answer": "The minimum value is 8, achieved only when a = b = c = 1.", "solution": "Solution:\nWe have\n$A=(a+b)(b+c)(c+a)=\\left(a b+a c+b^{2}+b c\\right)(c+a)=(b(a+b+c)+a c)(c+a)$,\nso by the given condition\n$$\nA=\\left(\\frac{3}{a c}+a c\\right)(c+a)=\\left(\\frac{1}{a c}+\\frac{1}{a c}+\\frac{1}{a c}+a c\\right)(c+a)\n$$\nApplying the AM-GM inequality for four and two terms respectively, we get\n$$\nA \\geq 4 \\sqrt[4]{\\frac{a c}{(a c)^{3}}} \\cdot 2 \\sqrt{a c}=8\n$$\nFrom the last part, it is easy to see that equality holds when $a=c$ and $\\frac{1}{a c}=a c$, i.e. $a=b=c=1$.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34348, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nThe real positive numbers $x, y, z$ satisfy the relations $x \\leq 2$, $y \\leq 3$, $x+y+z=11$. Prove that $\\sqrt{x y z} \\leq 6$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nFor $x=2$, $y=3$ and $z=6$ the equality holds.\nAfter the substitutions $x=2-u$, $y=3-v$ with $u \\in [0,2)$, $v \\in [0,3)$, we obtain that $z=6+u+v$ and the required inequality becomes\n$$\n(2-u)(3-v)(6+u+v) \\leqslant 36\n$$\nWe shall need the following lemma.\n\nLemma. If real numbers $a$ and $b$ satisfy the relations $0 < b \\leq a$, then for every real number $y \\in [0, b)$ the inequality\n$$\n\\frac{a}{a+y} \\geqslant \\frac{b-y}{b}\n$$\nholds.\n\nProof of the lemma. The inequality (2) is equivalent to\n$$\na b \\geq a b - a y + b y - y^{2} \\Leftrightarrow y^{2} + (a-b) y \\geq 0\n$$\nThe last inequality is true, because $a \\geq b > 0$ and $y \\geq 0$.\nThe equality in (2) holds if $y=0$. The lemma is proved.\n\nBy using the lemma we can write the following inequalities:\n$$\n\\begin{gathered}\n\\frac{6}{6+u} \\geqslant \\frac{2-u}{2} \\\\\n\\frac{6}{6+v} \\geqslant \\frac{3-v}{3} \\\\\n\\frac{6+u}{6+u+v} \\geqslant \\frac{6}{6+v}\n\\end{gathered}\n$$\nBy multiplying the inequalities (3), (4) and (5) we obtain:\n$$\n\\begin{gathered}\n\\frac{6 \\cdot 6 \\cdot (6+u)}{(6+u)(6+v)(6+u+v)} \\geqslant \\frac{6(2-u)(3-v)}{2 \\cdot 3 (6+v)} \\Leftrightarrow \\\\\n(2-u)(3-v)(6+u+v) \\leqslant 2 \\cdot 3 \\cdot 6 = 36 \\Leftrightarrow \\quad (1)\n\\end{gathered}\n$$\nBy virtue of lemma, the equality holds if and only if $u = v = 0$.\nSolution:\n\nAlternative solution. With the same substitutions write the inequality as\n$$\n(6-u-v)(6+u+v)+(u v-2 u-v)(6+u+v) \\leq 36\n$$\nAs the first product on the left-hand side is $36-(u+v)^{2} \\leq 36$, it is enough to prove that the second product is nonpositive. This comes easily from $|u-1| \\leq 1$, $|v-2| \\leq 2$ and $u v-2 u-v=(u-1)(v-2)-2$, which implies $u v-v-2 u \\leq 0$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34349, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nThere are two piles of coins, each containing $2010$ pieces. Two players $A$ and $B$ play a game taking turns ($A$ plays first). At each turn, the player on play has to take one or more coins from one pile or exactly one coin from each pile. Whoever takes the last coin is the winner. Which player will win if they both play in the best possible way?", "options": [], "answer": "B", "solution": "Solution:\n\n$B$ wins.\n\nIn fact, we will show that $A$ will lose if the total number of coins is a multiple of $3$ and the two piles differ by not more than one coin (call this a balanced position). To this end, firstly notice that it is not possible to move from one balanced position to another. The winning strategy for $B$ consists in returning $A$ to a balanced position (notice that the initial position is a balanced position).\n\nThere are two types of balanced positions; for each of them consider the moves of $A$ and the replies of $B$.\n\nIf the number in each pile is a multiple of $3$ and there is at least one coin:\n- if $A$ takes $3n$ coins from one pile, then $B$ takes $3n$ coins from the other one.\n- if $A$ takes $3n+1$ coins from one pile, then $B$ takes $3n+2$ coins from the other one.\n- if $A$ takes $3n+2$ coins from one pile, then $B$ takes $3n+1$ coins from the other one.\n- if $A$ takes a coin from each pile, then $B$ takes one coin from one pile.\n\nIf the numbers are not multiples of $3$, then we have $3m+1$ coins in one pile and $3m+2$ in the other one. Hence:\n- if $A$ takes $3n$ coins from one pile, then $B$ takes $3n$ coins from the other one.\n- if $A$ takes $3n+1$ coins from the first pile ($n \\leq m$), then $B$ takes $3n+2$ coins from the second one.\n- if $A$ takes $3n+2$ coins from the second pile ($n \\leq m$), then $B$ takes $3n+1$ coins from the first one.\n- if $A$ takes $3n+2$ coins from the first pile ($n \\leq m-1$), then $B$ takes $3n+4$ coins from the second one.\n- if $A$ takes $3n+1$ coins from the second pile ($n \\leq m$), then $B$ takes $3n-1$ coins from the first one. This is impossible if $A$ has taken only one coin from the second pile; in this case $B$ takes one coin from each pile.\n- if $A$ takes a coin from each pile, then $B$ takes one coin from the second pile.\n\nIn all these cases, the position after $B$'s move is again a balanced position. Since the number of coins decreases and $(0, 0)$ is a balanced position, after a finite number of moves, there will be no coins left after $B$'s move. Thus, $B$ wins.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34350, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nConsider a triangle $A B C$ with $\\angle A C B=90^\\circ$. Let $F$ be the foot of the altitude from $C$. Circle $\\omega$ touches the line segment $F B$ at point $P$, the altitude $C F$ at point $Q$ and the circumcircle of $A B C$ at point $R$. Prove that points $A, Q, R$ are collinear and $A P=A C$.\n\n![](attached_image_1.png)", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nLet $M$ be the midpoint of $A B$ and let $N$ be the center of $\\omega$. Then $M$ is the circumcenter of triangle $A B C$, so points $M, N$ and $R$ are collinear. From $Q N \\parallel A M$ we get $\\angle A M R=\\angle Q N R$. Besides that, triangles $A M R$ and $Q N R$ are isosceles, therefore $\\angle M R A=\\angle N R Q$; thus points $A, Q, R$ are collinear.\n\nRight angled triangles $A F Q$ and $A R B$ are similar, which implies $\\frac{A Q}{A B}=\\frac{A F}{A R}$, that is $A Q \\cdot A R=A F \\cdot A B$. The power of point $A$ with respect to $\\omega$ gives $A Q \\cdot A R=A P^{2}$. Also, from similar triangles $A B C$ and $A C F$ we get $A F \\cdot A B= A C^{2}$. Now, the claim follows from $A C^{2}=A F \\cdot A B=A Q \\cdot A R=A P^{2}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34351, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nConsider a triangle $A B C$ and let $M$ be the midpoint of the side $B C$. Suppose $\\angle M A C=\\angle A B C$ and $\\angle B A M=105^{\\circ}$. Find the measure of $\\angle A B C$.", "options": [], "answer": "30°", "solution": "Solution:\nThe angle measure is $30^{\\circ}$.\n\n![](attached_image_1.png)\nLet $O$ be the circumcenter of the triangle $A B M$. From $\\angle B A M=105^{\\circ}$ follows $\\angle M B O=15^{\\circ}$. Let $M', C'$ be the projections of points $M, C$ onto the line $B O$. Since $\\angle M B O=15^{\\circ}$, then $\\angle M O M'=30^{\\circ}$ and consequently $M M'=\\frac{M O}{2}$. On the other hand, $M M'$ joins the midpoints of two sides of the triangle $B C C'$, which implies $C C'=M O=A O$.\nThe relation $\\angle M A C=\\angle A B C$ implies $C A$ tangent to $\\omega$, hence $A O \\perp A C$. It follows that $\\triangle A C O \\equiv \\triangle O C C'$, and furthermore $O B \\parallel A C$.\nTherefore $\\angle A O M=\\angle A O M'-\\angle M O M'=90^{\\circ}-30^{\\circ}=60^{\\circ}$ and $\\angle A B M=\\frac{\\angle A O M}{2}=30^{\\circ}$.\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34352, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $ABC$ be an acute-angled triangle. A circle $\\omega_{1}(O_{1}, R_{1})$ passes through points $B$ and $C$ and meets the sides $AB$ and $AC$ at points $D$ and $E$, respectively. Let $\\omega_{2}(O_{2}, R_{2})$ be the circumcircle of the triangle $ADE$. Prove that $O_{1}O_{2}$ is equal to the circumradius of the triangle $ABC$.\n\n![](attached_image_1.png)", "options": [], "answer": "Detailed solution", "solution": "Solution:\nRecall that, in every triangle, the altitude and the diameter of the circumcircle drawn from the same vertex are isogonal. The proof offers no difficulty, being a simple angle chasing around the circumcircle of the triangle.\nLet $O$ be the circumcenter of the triangle $ABC$. From the above, one has $\\angle OAE = 90^{\\circ} - B$. On the other hand $\\angle DEA = B$, for $BCDE$ is cyclic. Thus $AO \\perp DE$, implying that in the triangle $ADE$ cevians $AO$ and $AO_{2}$ are isogonal. So, since $AO$ is a radius of the circumcircle of triangle $ABC$, one obtains that $AO_{2}$ is an altitude in this triangle.\n\nMoreover, since $OO_{1}$ is the perpendicular bisector of the line segment $BC$, one has $OO_{1} \\perp BC$, and furthermore $AO_{2} \\parallel OO_{1}$.\n\nChord $DE$ is common to $\\omega_{1}$ and $\\omega_{2}$, hence $O_{1}O_{2} \\perp DE$. It follows that $AO \\parallel O_{1}O_{2}$, so $AOO_{1}O_{2}$ is a parallelogram. The conclusion is now obvious.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34353, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all positive integers $n$ such that $36^{n}-6$ is a product of two or more consecutive positive integers.", "options": [], "answer": "n = 1", "solution": "Solution:\nAnswer: $n=1$.\n\nAmong each four consecutive integers there is a multiple of $4$. As $36^{n}-6$ is not a multiple of $4$, it must be the product of two or three consecutive positive integers.\n\nCase I. If $36^{n}-6 = x(x+1)$ (all letters here and below denote positive integers), then $4 \\cdot 36^{n} - 23 = (2x+1)^2$, whence $(2 \\cdot 6^{n} + 2x + 1)(2 \\cdot 6^{n} - 2x - 1) = 23$. As $23$ is prime, this leads to $2 \\cdot 6^{n} + 2x + 1 = 23$, $2 \\cdot 6^{n} - 2x - 1 = 1$. Subtracting these yields $4x + 2 = 22$, $x = 5$, $n = 1$, which is a solution to the problem.\n\nCase II. If $36^{n}-6 = (y-1)y(y+1)$, then\n$$\n36^{n} = y^{3} - y + 6 = (y^{3} + 8) - (y + 2) = (y + 2)(y^{2} - 2y + 3)\n$$\nThus each of $y+2$ and $y^{2} - 2y + 3$ can have only $2$ and $3$ as prime factors, so the same is true for their GCD. This, combined with the identity $y^{2} - 2y + 3 = (y + 2)(y - 4) + 11$ yields $\\operatorname{GCD}(y+2, y^{2} - 2y + 3) = 1$. Now $y+2 < y^{2} - 2y + 3$ and the latter number is odd, so $y+2 = 4^{n}$, $y^{2} - 2y + 3 = 9^{n}$. The former identity implies $y$ is even and now by the latter one $9^{n} \\equiv 3 \\pmod{4}$, while in fact $9^{n} \\equiv 1 \\pmod{4}$ — a contradiction. So, in this case there is no such $n$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34354, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $x$, $y$, $z$ be positive real numbers. Prove that:\n$$\n\\frac{x+2y}{z+2x+3y} + \\frac{y+2z}{x+2y+3z} + \\frac{z+2x}{y+2z+3x} \\leq \\frac{3}{2}\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\nNotice that $\\sum_{cyc} \\frac{x+2y}{z+2x+3y} = \\sum_{cyc} \\left(1 - \\frac{x+y+z}{z+2x+3y}\\right) = 3 - (x+y+z) \\sum_{cyc} \\frac{1}{z+2x+3y}$.\n\nWe have to prove that $3 - (x+y+z) \\sum_{cyc} \\frac{1}{z+2x+3y} \\leq \\frac{3}{2}$ or $\\frac{3}{2(x+y+z)} \\leq \\sum_{cyc} \\frac{1}{z+2x+3y}$.\n\nBy Cauchy-Schwarz we obtain $\\sum_{cyc} \\frac{1}{z+2x+3y} \\geq \\frac{(1+1+1)^2}{\\sum_{cyc}(z+2x+3y)} = \\frac{3}{2(x+y+z)}$.\n\nBecause the inequality is homogeneous, we can take $x+y+z=1$.\n\nDenote $x+2y = a$, $y+2z = b$, $z+2x = c$. Hence, $a+b+c = 3(x+y+z) = 3$.\n\nWe have $(k-1)^2 \\geq 0 \\Leftrightarrow (k+1)^2 \\geq 4k \\Leftrightarrow \\frac{k+1}{4} \\geq \\frac{k}{k+1}$ for all $k > 0$.\n\nHence $\\sum_{cyc} \\frac{x+2y}{z+2x+3y} = \\sum \\frac{a}{1+a} \\leq \\sum \\frac{a+1}{4} = \\frac{a+b+c+3}{4} = \\frac{3}{2}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34355, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $a$, $b$ be positive real numbers. Prove that\n$$\n\\sqrt{\\frac{a^{2}+a b+b^{2}}{3}}+\\sqrt{a b} \\leq a+b.\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\nApplying $x+y \\leq \\sqrt{2\\left(x^{2}+y^{2}\\right)}$ for $x=\\sqrt{\\frac{a^{2}+a b+b^{2}}{3}}$ and $y=\\sqrt{a b}$, we will obtain\n$$\n\\sqrt{\\frac{a^{2}+a b+b^{2}}{3}}+\\sqrt{a b} \\leq \\sqrt{\\frac{2 a^{2}+2 a b+2 b^{2}+6 a b}{3}} \\leq \\sqrt{\\frac{3\\left(a^{2}+b^{2}+2 a b\\right)}{3}}=a+b.\n$$\n\nThe inequality is equivalent to\n$$\n\\frac{a^{2}+a b+b^{2}}{3}+\\frac{3 a b}{3}+2 \\sqrt{\\frac{a b\\left(a^{2}+a b+b^{2}\\right)}{3}} \\leq \\frac{3 a^{2}+6 a b+3 b^{2}}{3}.\n$$\nThis can be rewritten as\n$$\n2 \\sqrt{\\frac{a b\\left(a^{2}+a b+b^{2}\\right)}{3}} \\leq \\frac{2\\left(a^{2}+a b+b^{2}\\right)}{3}\n$$\nor\n$$\n\\sqrt{a b} \\leq \\sqrt{\\frac{a^{2}+a b+b^{2}}{3}}\n$$\nwhich is obviously true since $a^{2}+b^{2}+a b \\geq 2 a b+a b=3 a b$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34356, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $x, y$ be positive real numbers such that $x^{3}+y^{3} \\leq x^{2}+y^{2}$. Find the greatest possible value of the product $x y$.", "options": [], "answer": "1", "solution": "Solution:\n\nWe have $(x+y)\\left(x^{2}+y^{2}\\right) \\geq (x+y)\\left(x^{3}+y^{3}\\right) \\geq \\left(x^{2}+y^{2}\\right)^{2}$, hence $x+y \\geq x^{2}+y^{2}$. Now $2(x+y) \\geq (1+1)\\left(x^{2}+y^{2}\\right) \\geq (x+y)^{2}$, thus $2 \\geq x+y$. Because $x+y \\geq 2 \\sqrt{x y}$, we will obtain $1 \\geq x y$. Equality holds when $x=y=1$.\n\nSo the greatest possible value of the product $x y$ is $1$.\n\nBy $AM-GM$ we have $x^{3}+y^{3} \\geq \\sqrt{x y} \\cdot \\left(x^{2}+y^{2}\\right)$, hence $1 \\geq \\sqrt{x y}$ since $x^{2}+y^{2} \\geq x^{3}+y^{3}$. Equality holds when $x=y=1$. So the greatest possible value of the product $x y$ is $1$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34357, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nDetermine the positive integers $a, b$ such that $a^{2} b^{2} + 208 = 4\\{lcm[a, b] + gcd(a, b)\\}^{2}$.", "options": [], "answer": "[(2, 12), (4, 6), (6, 4), (12, 2)]", "solution": "Solution:\nLet $d = \\gcd(a, b)$ and $x, y \\in \\mathbb{Z}_{+}$ such that $a = d x$, $b = d y$. Obviously, $(x, y) = 1$. The equation is equivalent to $d^{4} x^{2} y^{2} + 208 = 4 d^{2} (x y + 1)^{2}$. Hence $d^{2} \\mid 208$ or $d^{2} \\mid 13 \\cdot 4^{2}$, so $d \\in \\{1, 2, 4\\}$. Take $t = x y$ with $t \\in \\mathbb{Z}_{+}$.\n\nCase I. If $d = 1$, then $(x y)^{2} + 208 = 4(x y + 1)^{2}$ or $3 t^{2} + 8 t - 204 = 0$, without solutions.\n\nCase II. If $d = 2$, then $16 x^{2} y^{2} + 208 = 16(x y + 1)^{2}$ or $t^{2} + 13 = t^{2} + 2 t + 1 \\Rightarrow t = 6$, so $(x, y) \\in \\{(1, 6); (2, 3); (3, 2); (6, 1)\\} \\Rightarrow (a, b) \\in \\{(2, 12); (4, 6); (6, 4); (12, 2)\\}$.\n\nCase III. If $d = 4$, then $16^{2} x^{2} y^{2} + 208 = 4 \\cdot 16(x y + 1)^{2}$ or $16 t^{2} + 13 = 4(t + 1)^{2}$ and if $t \\in \\mathbb{Z}$, then 13 must be even, contradiction!\n\nFinally, the solutions are $(a, b) \\in \\{(2, 12); (4, 6); (6, 4); (12, 2)\\}$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34358, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $x_{i} > 1$, for all $i \\in \\{1,2,3, \\ldots, 2011\\}$. Prove the inequality\n$$\n\\sum_{i=1}^{2011} \\frac{x_{i}^{2}}{x_{i+1}-1} \\geq 8044\n$$\nwhere $x_{2012} = x_{1}$. When does equality hold?", "options": [], "answer": "Minimum value 8044, with equality if and only if all the numbers are equal to 2.", "solution": "Solution:\nRealize that $(x_{i}-2)^{2} \\geq 0 \\Leftrightarrow x_{i}^{2} \\geq 4(x_{i}-1)$. So we get:\n$$\n\\frac{x_{1}^{2}}{x_{2}-1} + \\frac{x_{2}^{2}}{x_{3}-1} + \\ldots + \\frac{x_{2011}^{2}}{x_{1}-1} \\geq 4\\left(\\frac{x_{1}-1}{x_{2}-1} + \\frac{x_{2}-1}{x_{3}-1} + \\ldots + \\frac{x_{2011}-1}{x_{1}-1}\\right)\n$$\nBy AM-GM:\n$$\n\\frac{x_{1}-1}{x_{2}-1} + \\frac{x_{2}-1}{x_{3}-1} + \\ldots + \\frac{x_{2011}-1}{x_{1}-1} \\geq 2011 \\cdot \\sqrt[2011]{\\frac{x_{1}-1}{x_{2}-1} \\cdot \\frac{x_{2}-1}{x_{3}-1} \\cdot \\ldots \\cdot \\frac{x_{2011}-1}{x_{1}-1}} = 2011\n$$\nFinally, we obtain that\n$$\n\\frac{x_{1}^{2}}{x_{2}-1} + \\frac{x_{2}^{2}}{x_{3}-1} + \\ldots + \\frac{x_{2011}^{2}}{x_{1}-1} \\geq 8044.\n$$\nEquality holds when $(x_{i}-2)^{2} = 0,\\ \\forall i = 1, \\ldots, 2011$, or $x_{1} = x_{2} = \\ldots = x_{2011} = 2$.\n\nAll the denominators are greater than $0$, so by Cauchy-Schwarz we have:\n$$\n\\frac{x_{1}^{2}}{x_{2}-1} + \\frac{x_{2}^{2}}{x_{3}-1} + \\ldots + \\frac{x_{2011}^{2}}{x_{1}-1} \\geq \\frac{\\left(x_{1} + x_{2} + \\ldots + x_{2011}\\right)^{2}}{x_{1} + x_{2} + \\ldots + x_{2011} - 2011}\n$$\nIt remains to prove that\n$$\n\\frac{\\left(x_{1} + x_{2} + \\ldots + x_{2011}\\right)^{2}}{x_{1} + x_{2} + \\ldots + x_{2011} - 2011} \\geq 8044\n$$\nor\n$$\n\\left(\\sum_{i=1}^{2011} x_{i}\\right)^{2} + 4 \\cdot 2011^{2} \\geq 4 \\cdot 2011 \\cdot \\sum_{i=1}^{2011} x_{i}\n$$\nwhich is obviously true by AM-GM for $\\left(\\sum_{i=1}^{2011} x_{i}\\right)^{2}$ and $4 \\cdot 2011^{2}$.\n\nEquality holds when $x_{1} + x_{2} + \\ldots + x_{2011} = 4022$ and\n$$\n\\frac{x_{1}}{x_{2}-1} = \\frac{x_{2}}{x_{3}-1} = \\ldots = \\frac{x_{2011}}{x_{1}-1}\n$$\nor $x_{i}^{2} - x_{i} = x_{i-1} x_{i+1} - x_{i-1},\\ \\forall i = 1, \\ldots, 2011 \\Rightarrow \\sum_{i=1}^{2011} x_{i}^{2} = \\sum_{i=1}^{2011} x_{i} x_{i+2}$ where $x_{2012} = x_{1}$ and $x_{2013} = x_{2}$. This means that $x_{1} = x_{2} = \\ldots = x_{2011}$.\nSo equality holds when $x_{1} = x_{2} = \\ldots = x_{2011} = 2$ since $x_{1} + x_{2} + \\ldots + x_{2011} = 4022$.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34359, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $a$, $b$, $c$ be positive real numbers with $abc=1$. Prove the inequality:\n$$\n\\frac{2 a^{2}+\\frac{1}{a}}{b+\\frac{1}{a}+1}+\\frac{2 b^{2}+\\frac{1}{b}}{c+\\frac{1}{b}+1}+\\frac{2 c^{2}+\\frac{1}{c}}{a+\\frac{1}{c}+1} \\geq 3\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\nBy $AM-GM$ we have $2x^{2}+\\frac{1}{x}=x^{2}+x^{2}+\\frac{1}{x} \\geq 3 \\sqrt[3]{\\frac{x^{4}}{x}}=3x$ for all $x>0$, so we have:\n\n$\\sum_{\\text{cyc}} \\frac{2 a^{2}+\\frac{1}{a}}{b+\\frac{1}{a}+1} \\geq \\sum_{cyc} \\frac{3a}{1+b+bc}=3\\left(\\sum_{cyc} \\frac{a^{2}}{1+a+ab}\\right) \\geq \\frac{3(a+b+c)^{2}}{3+a+b+c+ab+bc+ca}$.\n\nBy $AM-GM$ we have $ab+bc+ca \\geq 3$ and $a+b+c \\geq 3$. But $3\\left(a^{2}+b^{2}+c^{2}\\right) \\geq (a+b+c)^{2} \\geq 3(a+b+c)$. So $(a+b+c)^{2}=a^{2}+b^{2}+c^{2}+2ab+2bc+2ca \\geq 3+a+b+c+ab+bc+ca$. Hence $\\sum_{cyc} \\frac{2 a^{2}+\\frac{1}{a}}{b+\\frac{1}{a}+1} \\geq \\frac{3(a+b+c)^{2}}{3+a+b+c+ab+bc+ca} \\geq \\frac{3(a+b+c)^{2}}{(a+b+c)^{2}}=3$.\n\nDenote $a=\\frac{y}{x}$, $b=\\frac{z}{y}$ and $c=\\frac{x}{z}$. We have $\\frac{2 a^{2}+\\frac{1}{a}}{b+\\frac{1}{a}+1}=\\frac{\\frac{2 y^{2}}{x^{2}}+\\frac{x}{y}}{\\frac{z}{y}+\\frac{x}{y}+1}=\\frac{2 y^{3}+x^{3}}{x^{2}(x+y+z)}$.\n\nHence $\\sum_{cyc} \\frac{2 a^{2}+\\frac{1}{a}}{b+\\frac{1}{a}+1}=\\frac{1}{x+y+z} \\cdot \\sum_{cyc} \\frac{2 y^{3}+x^{3}}{x^{2}}=\\frac{1}{x+y+z} \\cdot\\left(x+y+z+2 \\sum_{cyc} \\frac{y^{3}}{x^{2}}\\right)$.\n\nBy Rearrangement Inequality we get $\\sum_{\\text{cyc}} \\frac{y^{3}}{x^{2}} \\geq x+y+z$.\n\nSo $\\sum_{\\text{cyc}} \\frac{2 a^{2}+\\frac{1}{a}}{b+\\frac{1}{a}+1} \\geq \\frac{1}{x+y+z} \\cdot(3x+3y+3z)=3$.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34360, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDecipher the equality $$(\\overline{L A R N}-\\overline{A C A}):(\\overline{C Y P}+\\overline{R U S})=C^{Y^{P}} \\cdot R^{U^{S}}$$ where different symbols correspond to different digits and equal symbols correspond to equal digits. It is also supposed that all these digits are different from $0$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nDenote $x=\\overline{L A R N}-\\overline{A C A}$, $y=\\overline{C Y P}+\\overline{R U S}$ and $z=C^{Y^{P}} \\cdot R^{U^{S}}$. It is obvious that $1823-898 \\leq x \\leq 9187-121$, $135+246 \\leq y \\leq 975+864$, that is $925 \\leq x \\leq 9075$ and $381 \\leq y \\leq 1839$, whence it follows that $\\frac{925}{1839} \\leq \\frac{x}{y} \\leq \\frac{9075}{381}$, or $0.502\\ldots \\leq \\frac{x}{y} \\leq 23.81\\ldots$ Since $\\frac{x}{y}=z$ is an integer, it follows that $1 \\leq \\frac{x}{y} \\leq 23$, hence $1 \\leq C^{Y^{P}} \\cdot R^{U^{S}} \\leq 23$. So both values $C^{Y^{P}}$ and $R^{U^{S}}$ are $\\leq 23$. From this and the fact that $2^{2^{3}}>23$ it follows that at least one of the symbols in the expression $C^{Y^{P}}$ and at least one of the symbols in the expression $R^{U^{S}}$ correspond to the digit $1$. This is impossible because of the assumption that all the symbols in the set $\\{C, Y, P, R, U, S\\}$ correspond to different digits.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34361, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $x_{1}, x_{2}, \\ldots, x_{n}$ be real numbers satisfying $\\sum_{k=1}^{n-1} \\min \\left(x_{k}, x_{k+1}\\right)=\\min \\left(x_{1}, x_{n}\\right)$.\nProve that $\\sum_{k=2}^{n-1} x_{k} \\geq 0$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nCase I. If $\\min \\left(x_{1}, x_{n}\\right)=x_{1}$, we know that $x_{k} \\geq \\min \\left(x_{k}, x_{k+1}\\right)$ for all $k \\in\\{1,2,3, \\ldots, n-1\\}$. So $x_{1}+x_{2}+\\ldots+x_{n-1} \\geq \\sum_{k=1}^{n-1} \\min \\left(x_{k}, x_{k+1}\\right)=\\min \\left(x_{1}, x_{n}\\right)=x_{1}$, hence $\\sum_{k=2}^{n-1} x_{k} \\geq 0$.\n\nCase II. If $\\min \\left(x_{1}, x_{n}\\right)=x_{n}$, we know that $x_{k} \\geq \\min \\left(x_{k-1}, x_{k}\\right)$ for all $k \\in\\{2,3,4, \\ldots, n\\}$. So $x_{2}+x_{3}+\\ldots+x_{n} \\geq \\sum_{k=1}^{n-1} \\min \\left(x_{k}, x_{k+1}\\right)=\\min \\left(x_{1}, x_{n}\\right)=x_{n}$, hence $\\sum_{k=2}^{n-1} x_{k} \\geq 0$.\n\nSince $\\min (a, b)=\\frac{1}{2}(a+b-|a-b|)$, after substitutions, we will have:\n$$\n\\begin{aligned}\n\\sum_{k=1}^{n-1} \\frac{1}{2}\\left(x_{k}+x_{k+1}-\\left|x_{k}-x_{k+1}\\right|\\right) &=\\frac{1}{2}\\left(x_{1}+x_{n}-\\left|x_{1}-x_{n}\\right|\\right) \\\\ &\\Leftrightarrow \\ldots \\\\\n2\\left(x_{2}+x_{3}+\\ldots+x_{n-1}\\right)+\\left|x_{1}-x_{n}\\right| &=\\left|x_{1}-x_{2}\\right|+\\left|x_{2}-x_{3}\\right|+\\ldots+\\left|x_{n-1}-x_{n}\\right|\n\\end{aligned}\n$$\nAs $\\left|x_{1}-x_{2}\\right|+\\left|x_{2}-x_{3}\\right|+\\ldots+\\left|x_{n-1}-x_{n}\\right| \\geq\\left|x_{1}-x_{2}+x_{2}-x_{3}+\\ldots+x_{n-1}-x_{n}\\right|=\\left|x_{1}-x_{n}\\right|$, we obtain the desired result.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34362, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nInside of a square whose side length is $1$ there are a few circles such that the sum of their circumferences is equal to $10$. Show that there exists a line that meets at least four of these circles.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nFind projections of all given circles on one of the sides of the square. The projection of each circle is a segment whose length is equal to the length of a diameter of this circle. Since the sum of the lengths of all circles' diameters is equal to $10 / \\pi$, it follows that the sum of the lengths of all mentioned projections is equal to $10 / \\pi > 3$. Because the side of the square is equal to $1$, we conclude that at least one point is covered with at least four of these projections. Hence, a perpendicular line to the projection side passing through this point meets at least four of the given circles, so this is a line with the desired property.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34363, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nCan we divide an equilateral triangle $\\triangle ABC$ into 2011 small triangles using 122 straight lines? (There should be 2011 triangles that are not themselves divided into smaller parts and there should be no polygons which are not triangles.)", "options": [], "answer": "Yes", "solution": "Solution:\nFirstly, for each side of the triangle, we draw 37 equidistant, parallel lines to it. In this way we get $38^{2} = 1444$ triangles.\n\nThen we erase 11 lines which are closest to the vertex $A$ and parallel to the side $BC$ and we draw 21 lines perpendicular to $BC$, the first starting from the vertex $A$ and 10 on each of the two sides, the lines which are closest to the vertex $A$, distributed symmetrically. In this way we get $26 \\cdot 21 + 10 = 556$ new triangles.\n\nTherefore we obtain a total of 2000 triangles and we have used $37 \\cdot 3 - 11 + 21 = 121$ lines.\n\nLet $D$ be the $12^{\\text{th}}$ point on side $AB$, starting from $B$ (including it). The perpendicular to $BC$ passing through $D$ will be the last line we draw. In this way we obtain the required configuration.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34364, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nWe can change a natural number $n$ in three ways:\n\na) If the number $n$ has at least two digits, we erase the last digit and we subtract that digit from the remaining number (for example, from $123$ we get $12-3=9$);\n\nb) If the last digit is different from $0$, we can change the order of the digits in the opposite one (for example, from $123$ we get $321$);\n\nc) We can multiply the number $n$ by a number from the set $\\{1,2,3, \\ldots, 2010\\}$.\n\nCan we get the number $21062011$ from the number $1012011$?", "options": [], "answer": "No", "solution": "Solution:\n\nThe answer is NO. We will prove that if the first number is divisible by $11$, then all the numbers which we can get from $n$ are divisible by $11$.\n\nWhen we use a), from the number $10a + b$, we will get the number $m = a - b = 11a - n$, so $11 \\mid m$ since $11 \\mid n$.\n\nIt's well-known that a number is divisible by $11$ if and only if the difference between the sum of digits on even places and the sum of digits on odd places is divisible by $11$. Hence, when we use b), from a number which is divisible by $11$, we will get a number which is also divisible by $11$.\n\nWhen we use c), the obtained number remains divisible by $11$.\n\nSo, the answer is NO since $1012011$ is divisible by $11$ and $21062011$ is not.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34365, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn a group of $n$ people, each one had a different ball. They performed a sequence of swaps; in each swap, two people swapped the ball they had at that moment. Each pair of people performed at least one swap. In the end each person had the ball he/she had at the start. Find the least possible number of swaps, if:\n\na) $n=5$;\n\nb) $n=6$.", "options": [], "answer": "a) 10; b) 16", "solution": "Solution:\n\nWe will denote the people by $A, B, C, \\ldots$ and their initial balls by the corresponding small letters. Thus the initial state is $A a, B b, C c, D d, E e(, F f)$. A swap is denoted by the (capital) letters of the people involved.\n\na) Five people form 10 pairs, so at least 10 swaps are necessary.\n\nIn fact, 10 swaps are sufficient:\n\nSwap $A B$, then $B C$, then $C A$; the state is now $A a, B c, C b, D d, E e$.\n\nSwap $A D$, then $D E$, then $E A$; the state is now $A a, B c, C b, D e, E d$.\n\nSwap $B E$, then $C D$; the state is now $A a, B d, C e, D b, E c$.\n\nSwap $B D$, then $C E$; the state is now $A a, B b, C c, D d, E e$.\n\nAll requirements are fulfilled now, so the answer is 10.\n\nb) Six people form 15 pairs, so at least 15 swaps are necessary. We will prove that the final number of swaps must be even. Call a pair formed by a ball and a person inverted if letter of the ball lies after letter of the person in the alphabet. Let $T$ be the number of inverted pairs; at the start we have $T=0$. Each swap changes $T$ by 1, so it changes the parity of $T$. Since in the end $T=0$, the total number of swaps must be even. Hence, at least 16 swaps are necessary. In fact 16 swaps are sufficient:\n\nSwap $A B$, then $B C$, then $C A$; the state is now $A a, B c, C b, D d, E e, F f$.\n\nSwap $A D$, then $D E$, then $E A$; the state is now $A a, B c, C b, D e, E d, F f$.\n\nSwap $F B$, then $B E$, then $E F$; the state is now $A a, B d, C b, D e, E c, F f$.\n\nSwap $F C$, then $C D$, then $D F$; the state is now $A a, B d, C e, D b, E c, F f$.\n\nSwap $B D$, then $C E$, then twice $A F$, the state is now $A a, B b, C c, D d, E e, F f$.\n\nAll requirements are fulfilled now, so the answer is 16.", "topic": "Algebra", "subtopic": "Abstract Algebra" }, { "id": 34366, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nA set $S$ of natural numbers is called good, if for each element $x \\in S$, $x$ does not divide the sum of the remaining numbers in $S$. Find the maximal possible number of elements of a good set which is a subset of the set $A=\\{1,2,3, \\ldots, 63\\}$.", "options": [], "answer": "61", "solution": "Solution:\nLet set $B$ be the good subset of $A$ which has the maximum number of elements. We can easily see that the number $1$ does not belong to $B$ since $1$ divides all natural numbers. Based on the property of divisibility, we know that $x$ divides the sum of the remaining numbers if and only if $x$ divides the sum of all numbers in the set $B$. If $B$ has exactly $62$ elements, then $B=\\{2,3,4, \\ldots, 63\\}$, but this set can't be good since the sum of its elements is $2015$ which is divisible by $5$. Therefore $B$ has at most $61$ elements. Now we are looking for the set whose elements do not divide their sum, so the best way to do that is making the sum of elements be a prime number. $2+3+4+\\ldots+63=2015$ and if we remove the number $4$, we will obtain the prime number $2011$. Hence the set $B=\\{2,3,5,6,7, \\ldots, 63\\}$ is a good one. We conclude that our number is $61$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34367, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nConsider a rectangle whose lengths of sides are natural numbers. If someone places as many squares as possible, each with area $3$, inside of the given rectangle, such that the sides of the squares are parallel to the rectangle sides, then the maximal number of these squares fill exactly half of the area of the rectangle. Determine the dimensions of all rectangles with this property.", "options": [], "answer": "Rectangles with side lengths (2, 3), (3, 4), (3, 6), (3, 8), (3, 10), (3, 12), up to ordering of the sides.", "solution": "Solution:\n\nLet $ABCD$ be a rectangle with $AB = m$ and $AD = n$ where $m, n$ are natural numbers such that $m \\geq n \\geq 2$. Suppose that inside of the rectangle $ABCD$ is placed a rectangular lattice consisting of some identical squares whose areas are equal to $3$, where $k$ of them are placed along the side $AB$ and $l$ of them along the side $AD$.\n\nThe sum of areas of all of these squares is equal to $3kl$. Besides the obvious conditions $k\\sqrt{3} < m$ and $l\\sqrt{3} \\leq n$ \\textbf{(1)}, by the assumption of the maximality of the lattice consisting of these squares, we must have $(k+1)\\sqrt{3} > m$ and $(l+1)\\sqrt{3} > n$ (2).\n\nThe proposed problem is to determine all pairs $(m, n) \\in \\mathbb{N} \\times \\mathbb{N}$ with $m \\geq n \\geq 2$, for which the ratio $R_{m, n} = \\frac{3kl}{mn}$ is equal to $0.5$ where $k, l$ are natural numbers determined by the conditions (1) and (2).\n\nObserve that for $n \\geq 6$, using (2), we get\n$$\nR_{m, n} = \\frac{k\\sqrt{3} \\cdot l\\sqrt{3}}{mn} > \\frac{(m-\\sqrt{3})(n-\\sqrt{3})}{mn} = \\left(1-\\frac{\\sqrt{3}}{m}\\right)\\left(1-\\frac{\\sqrt{3}}{n}\\right) \\geq \\left(1-\\frac{\\sqrt{3}}{6}\\right)^2 = \\frac{1}{2} + \\frac{7}{12} - \\frac{\\sqrt{3}}{3} > \\frac{1}{2} + \\frac{\\sqrt{48}}{12} - \\frac{\\sqrt{3}}{3} = 0.5\n$$\nSo, the condition $R_{m, n} = 0.5$ yields $n \\leq 5$ or $n \\in \\{2,3,4,5\\}$. We have 4 possible cases:\n\nCase 1: $n = 2$. Then $l = 1$ and thus as above we get\n$$\nR_{m, 2} = \\frac{3k}{2m} > \\frac{\\sqrt{3} \\cdot (m-\\sqrt{3})}{2m} = \\frac{\\sqrt{3}}{2} \\left(1-\\frac{\\sqrt{3}}{m}\\right)\n$$\nwhich is greater than $0.5$ for each $m > \\frac{\\sqrt{27} + 3}{2} > \\frac{5+3}{2} = 4$, hence $m \\in \\{2,3,4\\}$. Direct calculations give $R_{2,2} = R_{2,4} = 0.75$ and $R_{2,3} = 0.5$.\n\nCase 2: $n = 3$. Then $l = 1$ and thus as above we get\n$$\nR_{m, 3} = \\frac{3k}{3m} > \\frac{\\sqrt{3} \\cdot (m-\\sqrt{3})}{3m} = \\frac{\\sqrt{3}}{3} \\left(1-\\frac{\\sqrt{3}}{m}\\right)\n$$\nwhich is greater than $0.5$ for each $m > 4\\sqrt{3} + 6 > 12$, hence $m \\in \\{3,4, \\ldots, 12\\}$. Direct calculations give $R_{3,3} = 0.(3)$, $R_{3,5} = 0.4$, $R_{3,7} = 4/7$, $R_{3,9} = 5/9$, $R_{3,11} = 6/11$ and $R_{3,4} = R_{3,6} = R_{3,8} = R_{3,10} = R_{3,12} = 0.5$.\n\nCase 3: $n = 4$. Then $l = 2$ and thus as above we get\n$$\nR_{m, 4} = \\frac{6k}{4m} > \\frac{\\sqrt{3} \\cdot (m-\\sqrt{3})}{2m} = \\frac{\\sqrt{3}}{2} \\left(1-\\frac{\\sqrt{3}}{m}\\right)\n$$\nwhich is greater than $0.5$ for each $m > \\frac{\\sqrt{27} + 3}{2} > \\frac{5+3}{2} = 4$. Hence $m = 4$ and a calculation gives $R_{4,4} = 0.75$.\n\nCase 4: $n = 5$. Then $l = 2$ and thus as above we get\n$$\nR_{m, 5} = \\frac{6k}{5m} > \\frac{2\\sqrt{3} \\cdot (m-\\sqrt{3})}{5m} = \\frac{2\\sqrt{3}}{5} \\left(1-\\frac{\\sqrt{3}}{m}\\right)\n$$\nwhich is greater than $0.5$ for each $m > \\frac{12(4\\sqrt{3} + 5)}{23} > \\frac{12 \\cdot 11}{23} > 6$, hence $m \\in \\{5,6\\}$. Direct calculations give $R_{5,5} = 0.48$ and $R_{5,6} = 0.6$.\n\nWe conclude that: $R_{i, j} = 0.5$ for $(i, j) \\in \\{(2,3); (3,4); (3,6); (3,8); (3,10); (3,12)\\}$.\n\nThese pairs are the dimensions of all rectangles with the desired property.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34368, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nDetermine the polygons with $n$ sides $(n \\geq 4)$, not necessarily convex, which satisfy the property that the reflection of every vertex of the polygon with respect to every diagonal of the polygon does not fall outside the polygon.\n\nNote: Each segment joining two non-neighboring vertices of the polygon is a diagonal. The reflection is considered with respect to the support line of the diagonal.", "options": [], "answer": "Exactly the rhombi (quadrilaterals with all sides equal).", "solution": "Solution:\nA polygon with this property has to be convex, otherwise we consider an edge of the convex hull of this set of vertices which is not an edge of this polygon. All the other vertices are situated in one of the half-planes determined by the support-line of this edge, therefore the reflections of the other vertices fall outside the polygon.\n\nNow we choose a diagonal. It divides the polygon into two parts, $P 1$ and $P 2$. The reflection of $P 1$ falls into the interior of $P 2$ and vice versa. As a consequence, the diagonal is a symmetry axis for the polygon. Then every diagonal of the polygon bisects the angles of the polygon and this means that there are 4 vertices and the polygon is a rhombus. Each rhombus satisfies the desired condition.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 34369, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDecide if it is possible to consider $2011$ points in a plane such that the distance between every two of these points is different from $1$ and each unit circle centered at one of these points leaves exactly $1005$ points outside the circle.", "options": [], "answer": "No", "solution": "Solution:\n\nNO. If such a configuration existed, the number of segments starting from each of the $2011$ points towards the other one and having length less than $1$ would be $1005$. Since each segment is counted twice, their total number would be $1005 \\cdot 2011 / 2$ which is not an integer, contradiction!", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34370, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $ABC$ be an isosceles triangle with $AB = AC$. On the extension of the side $[CA]$ we consider the point $D$ such that $AD < AC$. The perpendicular bisector of the segment $[BD]$ meets the internal and the external bisectors of the angle $\\widehat{BAC}$ at the points $E$ and $Z$, respectively. Prove that the points $A, E, D, Z$ are concyclic.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n![](attached_image_1.png)\nIn $\\triangle ABD$ the ray $[AZ$ bisects the angle $\\widehat{DAB}$ and the line $ZE$ is the perpendicular bisector of the side $[BD]$. Hence $Z$ belongs to the circumcircle of $\\triangle ABD$.\nTherefore the points $A, B, D, Z$ are concyclic.\nIn $\\triangle BCD$, $AE$ and $ZE$ are the perpendicular bisectors $[BC]$ and $[BD]$, respectively. Hence, $E$ is the circumcenter of $\\triangle BCD$ and therefore $\\widehat{DEZ} = \\widehat{BED} / 2 = \\widehat{ACB}$. Since $BD \\perp ZE$, we conclude that: $\\widehat{BDE} = 90^{\\circ} - \\widehat{DEZ} = 90^{\\circ} - \\widehat{ACB} = \\widehat{BAE}$. Hence the quadrilateral $A E B D$ is cyclic, that is the points $A, B, D, E$ are concyclic. Therefore, since $A, B, D, Z$ are also concyclic, we conclude that $A E Z D$ is cyclic.\nSolution:\n![](attached_image_2.png)\nIn $\\triangle ABD$ the ray $[AZ$ bisects the angle $\\widehat{DAB}$ and the line $ZE$ is the perpendicular bisector of the side $[BD]$. Hence $Z$ belongs to the circumcircle of $\\triangle ABD$.\nTherefore the points $A, B, D, Z$ are concyclic.\nLet $M$ and $N$ be the midpoints of the sides $[BC]$ and $[DB]$, respectively. Then $N \\in ZE$ and $M \\in AE$. Next, $[MN]$ is a midline in $\\triangle BCD$, so $MN \\parallel CD \\Rightarrow \\widehat{NMB} \\equiv \\widehat{ACB}$.\nBut $[AZ$ is the external bisector of the angle $\\widehat{BAC}$ of $\\triangle ABC$, hence $\\widehat{BAZ} \\equiv \\widehat{ACB}$. Therefore, $\\widehat{NMB} \\equiv \\widehat{BAZ}$. In the quadrilateral $BMEN$ we have $\\widehat{BNE} = \\widehat{BME} = 90^{\\circ}$, so $BMEN$ is cyclic $\\Rightarrow \\widehat{NMB} \\equiv \\widehat{BEZ}$, hence $\\widehat{BAZ} \\equiv \\widehat{BEZ} \\Rightarrow AEBZ$ is cyclic.\nTherefore, since $A, B, D, Z$ are also concyclic, we conclude that $A E Z D$ is cyclic.\nSolution:\n![](attached_image_3.png)\nLet $T$ be the symmetric of $B$ with respect to the axis $AZ$. Obviously $T \\in AD$. Since $AE$ and $BT$ are both perpendiculars to $AZ$, they are parallel, so $\\widehat{BAC} \\equiv \\widehat{BTA}$. (1)\nSince $ZB = ZT = ZD$, the point $Z$ is the circumcenter of $\\triangle BDT$.\nTherefore $\\widehat{BTA} = \\widehat{BZD} / 2 = \\widehat{EZD}$.\nFrom (1) and (2) we conclude that $\\widehat{EAC} \\equiv \\widehat{EZD}$, which gives that $AEDZ$ is cyclic.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34371, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $AD$, $BF$ and $CE$ be the altitudes of $\\triangle ABC$. A line passing through $D$ and parallel to $AB$ intersects the line $EF$ at the point $G$. If $H$ is the orthocenter of $\\triangle ABC$, find the angle $\\widehat{CGH}$.", "options": [], "answer": "90°", "solution": "Solution:\nWe can see easily that points $C$, $D$, $H$, $F$ lie on a circle of diameter $[CH]$.\nTake $\\{F, G'\\} = \\odot(CHF) \\cap EF$. We have $\\widehat{EFH} = \\widehat{BAD} = \\widehat{BCE} = \\widehat{DFH}$ since the quadrilaterals $AEDC$, $AEHF$, $CDHF$ are cyclic. Hence $FB$ is the bisector of $\\widehat{EFD}$, so $H$ is the midpoint of the arc $DG'$. It follows that $DG' \\perp CH$ since $[CH]$ is a diameter. Therefore $DG' \\parallel AB$ and $G \\equiv G'$. Finally $G$ lies on the circle $\\odot(CFH)$, so $\\widehat{HGC} = 90^\\circ$.\n\n![](attached_image_1.png)\nSolution:\nThe quadrilateral $AEHF$ is cyclic since $\\widehat{AEH} = \\widehat{AFH} = 90^\\circ$, so $\\widehat{EAD} \\equiv \\widehat{GFH}$.\nBut $AB \\parallel GD$, hence $\\widehat{EAD} \\equiv \\widehat{GDH}$. Therefore $\\widehat{GFH} \\equiv \\widehat{GDH} \\Rightarrow DFGH$ is cyclic.\nBecause the quadrilateral $CDHF$ is cyclic since $\\widehat{CDH} = \\widehat{CFH} = 90^\\circ$, we conclude that the quadrilateral $CFGH$ is cyclic, which gives that $\\widehat{CGH} = \\widehat{CFH} = 90^\\circ$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34372, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $ABC$ be a triangle in which $BL$ is the angle bisector of $\\widehat{ABC}$ ($L \\in AC$), $AH$ is an altitude of $\\triangle ABC$ ($H \\in BC$), and $M$ is the midpoint of the side $[AB]$. It is known that the midpoints of the segments $[BL]$ and $[MH]$ coincide. Determine the internal angles of triangle $\\triangle ABC$.", "options": [], "answer": "60°, 60°, 60°", "solution": "Solution:\nLet $N$ be the intersection of the segments $[BL]$ and $[MH]$. Because $N$ is the midpoint of both segments $[BL]$ and $[MH]$, it follows that $BMLH$ is a parallelogram. This implies that $ML \\parallel BC$ and $LH \\parallel AB$ and hence, since $M$ is the midpoint of $[AB]$, the angle bisector $BL$ and the altitude $AH$ are also medians of $\\triangle ABC$. This shows that $\\triangle ABC$ is an equilateral one with all internal angles measuring $60^{\\circ}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34373, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nPoint $D$ lies on the side $[BC]$ of $\\triangle ABC$. The circumcenters of $\\triangle ADC$ and $\\triangle BAD$ are $O_{1}$ and $O_{2}$, respectively, and $O_{1}O_{2} \\parallel AB$. The orthocenter of $\\triangle ADC$ is $H$ and $AH = O_{1}O_{2}$. Find the angles of $\\triangle ABC$ if $2m(\\angle C) = 3m(\\angle B)$.", "options": [], "answer": "Angle A = 105 degrees, Angle B = 30 degrees, Angle C = 45 degrees", "solution": "Solution:\n\n![](attached_image_1.png)\nAs $AD$ is the radical axis of the circumcircles of $\\triangle ADC$ and $\\triangle BAD$, we have that $O_{1}O_{2} \\perp AD$, therefore $\\widehat{DAB} = 90^{\\circ}$. Let $F$ be the midpoint of $[CD]$ and $[CE]$ be a diameter of the circumcircle of $\\triangle ADC$. Then $ED \\perp CD$ and $EA \\perp CA$, so $ED \\parallel AH$ and $EA \\parallel DH$ since $AH \\perp CD$ and $DH \\perp AC$ ($H$ is the orthocenter of $\\triangle ADC$), and hence $EAHD$ is a parallelogram. Therefore $O_{1}O_{2} = AH = ED = 2O_{1}F$, so in $\\triangle FO_{1}O_{2}$ with $\\widehat{O_{1}FO_{2}} = 90^{\\circ}$ we have $O_{1}O_{2} = 2FO_{1} \\Rightarrow \\widehat{ABC} = \\widehat{O_{1}O_{2}F} = 30^{\\circ}$.\n\nThen we get $\\widehat{ACB} = 45^{\\circ}$ and $\\widehat{BAC} = 105^{\\circ}$.\nSolution:\n\n![](attached_image_2.png)\nAs $AD$ is the radical axis of the circumcircles of $\\triangle ADC$ and $\\triangle BAD$, we have that $O_{1}O_{2} \\perp AD$, therefore $\\widehat{DAB} = 90^{\\circ}$ and $O_{2}$ is the midpoint of $[BD]$.\nTake $E = DH \\cap AC$, $F = AH \\cap BC$ and $M = AD \\cap O_{1}O_{2}$.\nWe have $\\widehat{CEH} = \\widehat{CFH} = 90^{\\circ} \\Rightarrow CEHF$ is cyclic, hence $\\widehat{ACD} = \\widehat{AHD}$.\nBut $\\widehat{ACD} = \\operatorname{arc} AD / 2 = \\widehat{DO_{1}O_{2}}$, so $\\widehat{AHD} = \\widehat{DO_{1}O_{2}}$. We know that $AH = O_{1}O_{2}$.\nWe also have $\\widehat{DAH} = \\widehat{O_{1}O_{2}D}$ since $AO_{2}FM$ is cyclic with $\\widehat{AMO_{2}} = \\widehat{AFO_{2}}$.\nTherefore $\\triangle HDA \\equiv \\triangle O_{1}DO_{2} \\Rightarrow DA = DO_{2} = BD/2$, so in right-angled $\\triangle ABD$ we have $m(\\widehat{ABD}) = 30^{\\circ}$.\nThen we get $\\widehat{ACB} = 45^{\\circ}$ and $\\widehat{BAC} = 105^{\\circ}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34374, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nInside the square $A B C D$, the equilateral triangle $\\triangle A B E$ is constructed. Let $M$ be an interior point of the triangle $\\triangle A B E$ such that $M B=\\sqrt{2}$, $M C=\\sqrt{6}$, $M D=\\sqrt{5}$ and $M E=\\sqrt{3}$. Find the area of the square $A B C D$.", "options": [], "answer": "3 + sqrt(6)", "solution": "Solution:\n\nLet $K, F, H, Z$ be the projections of point $M$ on the sides of the square.\nThen by Pythagorean Theorem we can prove that $M A^2 + M C^2 = M B^2 + M D^2$.\nFrom the given condition we obtain $M A = 1$.\nWith center $A$ and angle $60^{\\circ}$, we rotate $\\triangle A M E$, so we construct the triangle $A N B$.\n\n![](attached_image_1.png)\n\nSince $A M = A N$ and $\\widehat{M A N} = 60^{\\circ}$, it follows that $\\triangle A M N$ is equilateral and $M N = 1$. Hence $\\triangle B M N$ is right-angled because $B M^2 + M N^2 = B N^2$.\nSo $m(\\widehat{B M A}) = m(\\widehat{B M N}) + m(\\widehat{A M N}) = 150^{\\circ}$.\nApplying Pythagorean Generalized Theorem in $\\triangle A M B$, we get:\n$$\nA B^2 = A M^2 + B M^2 - 2 A M \\cdot B M \\cdot \\cos 150^{\\circ} = 1 + 2 + 2 \\sqrt{2} \\cdot \\sqrt{3} : 2 = 3 + \\sqrt{6}\n$$\nWe conclude that the area of the square $A B C D$ is $3 + \\sqrt{6}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34375, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nSolve in positive integers the equation $1005^{x} + 2011^{y} = 1006^{z}$.", "options": [], "answer": "(2, 1, 2)", "solution": "Solution:\nWe have $1006^{z} > 2011^{y} > 2011$, hence $z \\geq 2$. Then $1005^{x} + 2011^{y} \\equiv 0 \\pmod{4}$.\nBut $1005^{x} \\equiv 1 \\pmod{4}$, so $2011^{y} \\equiv -1 \\pmod{4} \\Rightarrow y$ is odd, i.e. $2011^{y} \\equiv -1 \\pmod{1006}$.\nSince $1005^{x} + 2011^{y} \\equiv 0 \\pmod{1006}$, we get $1005^{x} \\equiv 1 \\pmod{1006} \\Rightarrow x$ is even.\nNow $1005^{x} \\equiv 1 \\pmod{8}$ and $2011^{y} \\equiv 3 \\pmod{8}$, hence $1006^{z} \\equiv 4 \\pmod{8} \\Rightarrow z = 2$.\nIt follows that $y < 2 \\Rightarrow y = 1$ and $x = 2$. The solution is $(x, y, z) = (2, 1, 2)$.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34376, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all positive integers $n$ such that the equation $y^{2}+x y+3 x=n\\left(x^{2}+x y+3 y\\right)$ has at least a solution $(x, y)$ in positive integers.", "options": [], "answer": "{1, 3, 4, 9}", "solution": "Solution:\nClearly for $n=1$, each pair $(x, y)$ with $x=y$ is a solution. Now, suppose that $n>1$ which implies $x \\neq y$. We have\n$$\n0 < n-1 = \\frac{y^{2}+x y+3 x}{x^{2}+x y+3 y}-1 = \\frac{(x+y-3)(y-x)}{x^{2}+x y+3 y}.\n$$\nSince $x+y \\geq 3$, we conclude that $x+y>3$ and $y>x$. Take $d=\\operatorname{gcd}(x+y-3,\\ x^{2}+x y+3 y)$. Then $d$ divides $x^{2}+x y+3 y-x(x+y-3)=3(x+y)$. Then $d$ also divides $3(x+y)-3(x+y-3)=9$, hence $d \\in\\{1,3,9\\}$. As\n$$\nn-1=\\frac{\\frac{x+y-3}{d}(y-x)}{\\frac{x^{2}+x y+3 y}{d}}\n$$\nand $\\operatorname{gcd}\\left(\\frac{x+y-3}{d},\\ \\frac{x^{2}+x y+3 y}{d}\\right)=1$, it follows that $\\frac{x^{2}+x y+3 y}{d}$ divides $y-x$, which leads to\n$$\nx^{2}+x y+3 y \\leq d y-d x \\Leftrightarrow x^{2}+d x \\leq (d-3-x) y.\n$$\nIt is necessary that $d-3-x>0 \\Rightarrow d>3$, therefore $d=9$ and $x<6$. Take $x+y-3=9 k,\\ k \\in \\mathbb{N}^{*}$ since $d \\mid x+y-3$ and we get $y=9 k+3-x$. Hence\n$$\nn-1=\\frac{k(9 k+3-2 x)}{k(x+3)+1}.\n$$\nBecause $k$ and $k(x+3)+1$ are relatively prime, the number $t=\\frac{9 k+3-2 x}{k(x+3)+1}$ must be integer for some positive integers $x<6$. It remains to consider these values of $x$:\n\n1) For $x=1$, then $t=\\frac{9 k+1}{4 k+1}$ and since $10$, we get $q=2$, so we have the solution $(p, q)=(3,2)$.\n\nSince $2 p^{3}$ and $2\\left(p+q^{2}\\right)$ are even, $q^{2}$ is also even, thus $q=2$ because it is a prime number.\nThe equation becomes $p^{3}-p^{2}-4 p-6=0 \\Leftrightarrow\\left(p^{2}-4\\right)(p-1)=10$.\nIf $p \\geq 4$, then $\\left(p^{2}-4\\right)(p-1) \\geq 12 \\cdot 3>10$, so $p \\leq 3$. A direct verification gives $p=3$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34378, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind the least positive integer such that the sum of its digits is $2011$ and the product of its digits is a power of $6$.", "options": [], "answer": "The minimal number is the 235-digit integer consisting of 3, 4, followed by ninety-three 8s, and then one hundred forty 9s.", "solution": "Solution:\nDenote this number by $N$. Then $N$ can not contain the digits $0, 5, 7$ and its digits must be written in increasing order. Suppose that $N$ has $x_{1}$ ones, $x_{2}$ twos, $x_{3}$ threes, $x_{4}$ fours, $x_{6}$ sixes, $x_{8}$ eights and $x_{9}$ nines, then\n$$\nx_{1} + 2x_{2} + 3x_{3} + 4x_{4} + 6x_{6} + 8x_{8} + 9x_{9} = 2011.\n$$\n(1)\n\nThe product of digits of the number $N$ is a power of $6$ when we have the relation\n$$\nx_{2} + 2x_{4} + x_{6} + 3x_{8} = x_{3} + x_{6} + 2x_{9},\n$$\nhence\n$$\nx_{2} - x_{3} + 2x_{4} + 3x_{8} - 2x_{9} = 0.\n$$\nDenote by $S$ the number of digits of $N$ ($S = x_{1} + x_{2} + \\ldots + x_{9}$). In order to make the coefficients of $x_{8}$ and $x_{9}$ equal, we multiply relation (1) by $5$, then we add relation (2). We get\n$$\n43x_{9} + 43x_{8} + 30x_{6} + 22x_{4} + 14x_{3} + 11x_{2} + 5x_{1} = 10055\n$$\nwhich gives\n$$\n43S = 10055 + 13x_{6} + 21x_{4} + 29x_{3} + 32x_{2} + 38x_{1}.\n$$\nThen $10055 + 13x_{6} + 21x_{4} + 29x_{3} + 32x_{2} + 38x_{1}$ is a multiple of $43$ not less than $10055$. The least such number is $10062$, but the relation $10062 = 10055 + 13x_{6} + 21x_{4} + 29x_{3} + 32x_{2} + 38x_{1}$ means that among $x_{1}, x_{2}, \\ldots, x_{6}$ there is at least one positive, so\n$$\n10062 = 10055 + 13x_{6} + 21x_{4} + 29x_{3} + 32x_{2} + 38x_{1} \\geq 10055 + 13 = 10068\n$$\nwhich is obviously false. The next multiple of $43$ is $10105$ and from relation\n$$\n10105 = 10055 + 13x_{6} + 21x_{4} + 29x_{3} + 32x_{2} + 38x_{1}\n$$\nwe get\n$$\n50 = 13x_{6} + 21x_{4} + 29x_{3} + 32x_{2} + 38x_{1}.\n$$\nBy writing as\n$$\n13x_{6} + 21(x_{4} - 1) + 29(x_{3} - 1) + 32x_{2} + 38x_{1} = 0,\n$$\nwe can easily see that the only possibility is $x_{1} = x_{2} = x_{6} = 0$ and $x_{3} = x_{4} = 1$. Then $S = 235$, $x_{8} = 93$, $x_{9} = 140$. Since $S$ is strictly minimal, we conclude that\n$$\nN = 34\\underbrace{88 \\ldots 8}_{93}\\underbrace{99 \\ldots 9}_{140}.\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34379, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $ABC$ be an isosceles triangle with $AB = AC$. Let also $c(K, KC)$ be a circle tangent to the line $AC$ at point $C$ which intersects the segment $BC$ again at an interior point $H$. Prove that $HK \\perp AB$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nLet lines $KH$, $AB$ intersect at $M$ (Figure 5a).\nFrom the quadrilateral $KMAC$ we have\n$$\n\\angle KMA = 360^{\\circ} - \\angle A - \\angle ACK - \\angle CKM = 360^{\\circ} - \\angle A - 90^{\\circ} - (180^{\\circ} - 2\\angle KCH) = 90 - \\angle A + 2\\angle KCH = 90 - \\angle A + 2(90^{\\circ} - \\angle ACB) = 270^{\\circ} - \\angle A - 2\\angle ACB = 270 - \\angle A - \\angle ACB - \\angle ABC = 270^{\\circ} - 180^{\\circ} = 90^{\\circ}.\n$$\n![](attached_image_1.png)\n(a)\n![](attached_image_2.png)\n(b)\nFigure 2: Exercise G2.\nso $KH \\perp AB$ as wanted.\nSolution:\nLet $D$ be a point on $c$ such that $AD < AC$, and let $E, Z$ be the second points of intersection of lines $AD$ and $BD$ with $c$ respectively. Let also $N$ be the second point of intersection of line $BE$ with the circle $c$. Figure 5b shows $Z$ between $B, D$. The argument below can be trivially modified to apply in case $D$ is in the segment $B, Z$ as well. It is\n$$\nAB^{2} = AC^{2} = AD \\cdot AE \\Rightarrow \\frac{AB}{AE} = \\frac{AD}{AB}\n$$\nThis relation and the fact that $\\angle BAE = \\angle BAD$ implies that the triangles $ABE, ADB$ are similar. Thus $\\angle ABE = \\angle ADB$. Also from the cyclic quadrilateral we get $\\angle ADB = \\angle ZNE$. Therefore $\\angle ABE = \\angle ZNE$, so $AB \\parallel NZ$.\nCall $P$ the intersection point of $BC, NZ$. Since $AC$ is tangent to $c$ it is\n$$\n\\angle CEH = \\angle BCA\n$$\nand then\n$$\n\\begin{aligned}\n& \\angle ZNH + \\angle CNZ = \\angle HNC = \\angle CEH \\stackrel{(3)}{=} \\angle BCA = \\angle ABC = \\angle ZPC = \\angle BCN + \\angle CNZ \\\\\n\\Rightarrow \\quad & \\angle ZNH = \\angle BCN \\\\\n\\Rightarrow \\quad & \\angle ZNH = \\angle HZN\n\\end{aligned}\n$$\nTherefore $H$ is the midpoint of the arc $NZ$, so $KH \\perp NZ$ and as $AB \\parallel NZ$ we finally get $KH \\perp AB$ as wanted.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34380, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\n![](attached_image_1.png)\n\nLet $AB$ and $CD$ be chords in a circle of center $O$ with $A, B, C, D$ distinct, and let the lines $AB$ and $CD$ meet at a right angle at point $E$. Let also $M$ and $N$ be the midpoints of $AC$ and $BD$ respectively. If $MN \\perp OE$, prove that $AD \\parallel BC$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\n$E$ can be inside, or outside the circle (Figure 3) but the proof below holds in both cases; notice that $E$ cannot be on the circle as $A, B, C, D$ are distinct. Let lines $AC$ and $NE$ meet at point $P$. Then $EN = DN = BN$ (median in a right triangle), so $\\angle PEC = \\angle NED = \\angle NDE = \\angle BDC = \\angle BAC = \\angle EAP$. Now $AB \\perp CD$ so $EN \\perp AC$. But $OM \\perp AC$ so $OM \\parallel EN$. Similarly $ON \\parallel EM$ so $NEMO$ is a parallelogram (possibly degenerated). As $MN \\perp OE$, this parallelogram is a rhombus. Then the chords $AC$ and $BD$, being equidistant from $O$, are equal. Hence their minor arcs are equal, which means that either $AD \\parallel BC$ or $AB \\parallel CD$; the latter contradicts the fact that $AB$ and $CD$ meet at $E$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34381, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDo there exist prime numbers $p$ and $q$ such that $p^{2}(p^{3}-1)=q(q+1)$?", "options": [], "answer": "No", "solution": "Solution:\n\nWrite the given equation in the form\n$$\np^{2}(p-1)\\left(p^{2}+p+1\\right)=q(q+1)\n$$\nFirst observe that it must not be $p=q$, since in this case the left hand side of (9) is greater than its right hand side. Hence, since $p$ and $q$ are distinct primes, (9) immediately yields $p^{2} \\mid q+1$, that is\n$$\nq=a p^{2}-1\n$$\nfor some $a \\in \\mathbb{N}$. Since $p$ and $q$ are both primes, by (9) we get the following cases:\n\nCase 1: $q \\mid p-1$, that is\n$$\np=b q+1\n$$\nfor some $b \\in \\mathbb{N}$. Substituting (11) into (10), and using the fact that $a \\geq 1$ and $b \\geq 1$, we obtain\n$$\nq=a(b q+1)^{2}-1 \\geq(q+1)^{2}-1=q^{2}+2 q\n$$\na contradiction.\n\nCase 2: $q \\mid p^{2}+p+1$, that is\n$$\np^{2}+p+1=b q\n$$\nfor some $b \\in \\mathbb{N}$. Substituting (10) into (12), we get\n$$\np^{2}+p+1=b\\left(a p^{2}-1\\right)\n$$\nIf $a \\geq 2$, then from (13) it follows that\n$$\np^{2}+p+1 \\geq 2 p^{2}-1\n$$\nor equivalently, $p+1 \\geq(p-1)(p+1)$, that is, $(p+1)(2-p) \\geq 0$. This implies that $p=2$, and so $q \\mid 2^{2}+2+1=7$. Hence, $q=7$, but the pair $p=2$ and $q=7$ does not satisfy the equation (9).\n\nHence, it must be $a=1$. Then if $b \\geq 3$, (13) implies\n$$\np^{2}+p+1 \\geq 3\\left(p^{2}-1\\right)\n$$\nor equivalently, $4 \\geq p(2 p-1)$, which is obviously impossible.\n\nThus, it must be $a=1$ and $b \\in\\{1,2\\}$. For $a=b=1$, (13) implies that $p=2$, which by (12) again yields $q=7$, which is impossible. Finally, for $a=1$ and $b=2$, (13) gives $p(p-1)=3$, which is clearly not satisfied for any prime $p$.\n\nHence, there do not exist prime numbers $p$ and $q$ which satisfy the given equation.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34382, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDecipher the equality\n$$\n(\\overline{V E R}-\\overline{I A}):(\\overline{G R E}+\\overline{E C E})=G^{R^{E}}\n$$\nassuming that the number $\\overline{G R E E C E}$ has a maximum value. It is supposed that each letter corresponds to a unique digit from 0 to 9 and different letters correspond to different digits, and also that all letters $G, E, V$ and $I$ are different from 0. Also, the notation $\\overline{a_{n} \\ldots a_{1} a_{0}}$ stands for the number $a_{n} \\cdot 10^{n}+\\cdots+10^{1} \\cdot a_{1}+a_{0}$.", "options": [], "answer": "G=7, R=0, E=1, C=6, V=9, I=4, A=8; the maximal six-digit number is 701161", "solution": "Solution:\n\nDenote\n$$\nx=\\overline{V E R}-\\overline{I A}, \\quad y=\\overline{G R E}+\\overline{E C E}, \\quad z=G^{R^{E}}\n$$\nThen obviously, we have\n$$\n\\begin{aligned}\n& (201+131 \\text{ or } 231+101) \\leq y \\leq (879+969 \\text{ or } 869+979 \\text{ or. } 769+989) \\\\\n\\Rightarrow \\quad & 332 \\leq y \\leq 1848 \\Rightarrow 102-98 \\leq x \\leq 987-10 \\Rightarrow 4 \\leq x \\leq 977,\n\\end{aligned}\n$$\nhence it follows that\n$$\n\\frac{4}{1848} \\leq \\frac{x}{y}=z \\leq \\frac{977}{332} \\Rightarrow 1 \\leq z \\leq 2\n$$\nThis shows that $z=G^{R^{E}} \\in\\{1,2\\}$. Hence, if $R \\geq 1$, then $R^{E} \\geq 1$, which implies that $2 \\geq G^{R^{E}} \\geq G$. Thus, if $R \\geq 1$, then it must be $G \\leq 2$. In view of this and the assumption of the problem that the number $\\overline{G R E E C E}$ has a maximum value, we will consider the case when $R=0$ hoping to get a solution with $G>2$. Then $G^{R^{E}}=G^{0}=1$ for all digits $G$ and $E$ with $1 \\leq G, E \\leq 9$, and therefore, the above equality becomes\n$$\n\\overline{V E R}-\\overline{I A}=\\overline{G R E}+\\overline{E C E}\n$$\nwhich substituting $R=0$, can be written as\n$$\n\\overline{V E O}=\\overline{G O E}+\\overline{E C E}+\\overline{I A}\n$$\nNow we consider the following cases:\n\nCase 1: $G=9$. Then $V \\leq 8$, so $\\overline{V E 0} \\leq 900$, while the right hand side of (1) is greater than 900. This is impossible, and no solution exists in this case.\n\nCase 2: $G=8$. Then (14) becomes\n$$\n\\overline{V E 0}=\\overline{80 E}+\\overline{E C E}+\\overline{I A}\n$$\nhence it immediately follows that $V=9$. For $V=9$, (15) becomes\n$$\n\\overline{9 E 0}=\\overline{80 E}+\\overline{E C E}+\\overline{I A}\n$$\nNotice that for $E \\geq 2$, the right hand side of (16) is greater than 1000, while the left hand side of (16) is less than 1000. Therefore, it must be $E \\leq 1$, that is, $E=1$ in view of the fact that $R=0$. Substituting $E=1$ into (16), we get\n$$\n\\overline{910}=\\overline{801}+\\overline{1 C 1}+\\overline{I A}\n$$\nhence it follows that\n$$\n109=\\overline{1 C 1}+\\overline{I A}\n$$\nBut the right hand side of (18) is greater than 121. This shows that $G=8$ does not lead to any solution.\n\nCase 3: $G=7$. Then (14) becomes\n$$\n\\overline{V E O}=\\overline{70 E}+\\overline{E C E}+\\overline{I A}\n$$\nThus it must be $V \\geq 8$.\n\nSubcase 3(a): $V=8$. Then (19) gives\n$$\n\\overline{8 E 0}=\\overline{70 E}+\\overline{E C E}+\\overline{I A}\n$$\nhence we immediately obtain $E=1$ (since the right hand side of (6) must be less than 900). For $E=1$, (20) reduces to\n$$\n109=\\overline{1 C 1}+\\overline{I A}\n$$\nwhich is impossible since $\\overline{1 C 1} \\geq 121$.\n\nSubcase 3(b): $V=9$. Then (19) gives\n$$\n\\overline{9 E 0}=\\overline{70 E}+\\overline{E C E}+\\overline{I A}\n$$\nhence we immediately obtain $E \\leq 2$ (since the right hand side of (7) must be less than 1000). For $E=2$, (22) reduces to\n$$\n218=\\overline{2 C 2}+\\overline{I A}\n$$\nwhich is impossible since $\\overline{2 C 2} \\geq 232$. Finally, for $E=1$, (22) reduces to\n$$\n209=\\overline{1 C 1}+\\overline{I A}\n$$\nSince it is required that the number $\\overline{G R E E C E}$ has a maximum value, taking $C=8$ into (24) we find that\n$$\n28=\\overline{I A}\n$$\nwhich yields $8=A=C$. This is impossible since must be $A \\neq C$. Since $C \\neq G=7$, then taking $C=6$ into (24) we obtain\n$$\n48=\\overline{I A}\n$$\nhence we have $I=4$ and $A=8$. Previously, we have obtained $G=7, R=0, V=9, E=1$ and $C=6$. For these values, we obtain that $\\overline{G R E E C E}=701161$ is the desired maximum value.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34383, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nIf $a$, $b$, $c$, $d$ are integers and $A = 2(a-2b+c)^{4} + 2(b-2c+a)^{4} + 2(c-2a+b)^{4}$, $B = d(d+1)(d+2)(d+3) + 1$, prove that $(\\sqrt{A} + 1)^{2} + B$ cannot be a perfect square.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nFirst we prove the following Lemma\nLemma: If $x$, $y$, $z$ are real numbers such that $x + y + z = 0$, then $2\\left(x^{4} + y^{4} + z^{4}\\right) = \\left(x^{2} + y^{2} + z^{2}\\right)^{2}$.\nProof of the Lemma:\n$$\n\\begin{aligned}\nx^{4} + y^{4} + z^{4} & = x^{2} x^{2} + y^{2} y^{2} + z^{2} z^{2} = x^{2}(y+z)^{2} + y^{2}(z+x)^{2} + z^{2}(x+y)^{2} \\\\\n& = 2\\left(x^{2} y^{2} + y^{2} z^{2} + z^{2} x^{2}\\right) + 2 x y z(x + y + z) \\\\\n& = \\left(x^{2} + y^{2} + z^{2}\\right)^{2} - x^{4} - y^{4} - z^{4}\n\\end{aligned}\n$$\nand the claim follows.\n\nNow back to our problem notice that $(a-2b+c) + (b-2c+a) + (c-2a+b) = 0$, thus according to the lemma it holds\n$$\n\\begin{aligned}\nA & = 2(a-2b+c)^{4} + 2(b-2c+a)^{4} + 2(c-2a+b)^{4} \\\\\n& = \\left[(a-2b+c)^{2} + (b-2c+a)^{2} + (c-2a+b)^{2}\\right] = \\left[6\\left(a^{2} + b^{2} + c^{2} - ab - bc - ca\\right)\\right]^{2}\n\\end{aligned}\n$$\nSince $a^{2} + b^{2} + c^{2} \\geq ab + bc + ca$ we have that\n$$\n\\sqrt{A} + 1 = 6\\left(a^{2} + b^{2} + c^{2} - ab - bc - ca\\right) + 1\n$$\nIn addition, it is easy to check that\n$$\nB = d(d+1)(d+2)(d+3) = \\left(d^{2} + 3d + 1\\right)^{2}\n$$\nLet us set $6\\left(a^{2} + b^{2} + c^{2} - ab - bc - ca\\right) + 1 = m$, $d^{2} + 3d + 1 = n$. We need to prove that the number $(\\sqrt{A} + 1)^{2} + B = m^{2} + n^{2}$ is not a perfect square.\nSince both $m$, $n$ are odd integers, both $m^{2}$, $n^{2}$ are integers of the form $4k + 1$, so the number $m^{2} + n^{2}$ is an integer of the form $4k + 2$. But it is well known that all perfect squares are of the form $4k$ or $4k + 1$, and we are done.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34384, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $M N P Q$ be a square of side length $1$, and $A, B, C, D$ points on the sides $M N$, $N P$, $P Q$, and $Q M$ respectively such that $A C \\cdot B D = \\frac{5}{4}$. Can the set $\\{A B, B C, C D, D A\\}$ be partitioned into two subsets $S_{1}$ and $S_{2}$ of two elements each, so that each one of the sums of the elements of $S_{1}$ and $S_{2}$ are positive integers?", "options": [], "answer": "No", "solution": "Solution:\nThe answer is negative.\nSuppose such a partitioning was possible (Figure 7). Then $A B + B C + C D + D A \\in \\mathbb{N}$. But $(A B + B C) + (C D + D A) > A C + A C \\geq 2$, hence $A B + B C + C D + D A > 2$.\n\nOn the other hand, $A B + B C + C D + D A < (A N + N B) + (B P + P C) + (C Q + Q D) + (D M + M A) = 4$, hence $A B + B C + C D + D A = 3$.\n\nObviously one of the sums of the elements of $S_{1}$ and $S_{2}$ must be $1$ and the other $2$. Without any loss of generality, we may assume that the sum of the elements of $S_{1}$ is $1$ and the sum of the elements of $S_{2}$ is $2$. As $A B + B C > A C \\geq 1$ we find that $S_{1} \\neq \\{A B, B C\\}$. Similarly, $S_{1}$ cannot contain two adjacent sides of the quadrilateral $A B C D$. Therefore, without any loss of generality, we may assume that $S_{1} = \\{A D, B C\\}$ and $S_{2} = \\{A B, C D\\}$. Then $A D + B C = 1$ and $A B + C D = 2$.\n\nWe have $A D \\cdot B C \\leq \\frac{1}{4} (A D + C B)^2 = \\frac{1}{4}$ and $A B \\cdot C D \\leq \\frac{1}{4} (A B + C D)^2 = 1$.\n\nAccording to Ptolemy's inequality, we have\n$$\n\\frac{5}{4} = A C \\cdot B D \\leq A B \\cdot C D + A D \\cdot B C = \\frac{1}{4} + 1 = \\frac{5}{4}\n$$\nhence we have equality all around, which means the quadrilateral $A B C D$ is cyclic, $A D = B C = \\frac{1}{2}$ and $A B = C D = 1$, hence $A B C D$ is a rectangle of dimensions $1$ and $\\frac{1}{2}$.\n\nThere are many different ways of proving that this configuration is not possible. For example:\n\n- Suppose $A B C D$ is a rectangle with $A D = \\frac{1}{2}$, $A B = 1$. Then we have $A C = B D = \\frac{\\sqrt{5}}{2}$ and $\\triangle A N B \\equiv \\triangle C Q D$ (Angle-Side-Angle). Denoting $A M = x$, $M D = y$ we have $A N =$\n\n![](attached_image_1.png)\n\nFigure 7: Exercise G7.\n\n$1 - x$, $B N = 1 - y$ and the following conditions need to be fulfilled for some $x, y \\in [0, 1]$ (Pythagorean Theorem in triangles $A M D$, $A N B$, $B B' C$, where $B'$ is the projection of $B$ on $M Q$):\n$$\nx^2 + y^2 = \\frac{1}{4}, \\quad (1 - x)^2 + (1 - y)^2 = 1 \\text{ and } 1 + (2y - 1)^2 = \\frac{5}{4}\n$$\nBut $1 + (2y - 1)^2 = \\frac{5}{4}$ implies $y \\in \\left\\{\\frac{1}{4}, \\frac{3}{4}\\right\\}$. If $y = \\frac{3}{4}$, then $x^2 + y^2 = \\frac{1}{4}$ cannot hold. If on the other hand $y = \\frac{1}{4}$, then $(1 - x)^2 + (1 - y)^2 = 1$ implies $x = 0$, but then $(1 - x)^2 + (1 - y)^2 = 1$ cannot hold. Therefore such a configuration is not possible.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34385, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nDetermine all triples $(m, n, p)$ satisfying\n$$\nn^{2p} = m^2 + n^2 + p + 1\n$$\nwhere $m$ and $n$ are integers and $p$ is a prime number.", "options": [], "answer": "[[3, 2, 2], [-3, 2, 2], [3, -2, 2], [-3, -2, 2]]", "solution": "Solution:\nBy Fermat's theorem $n^{2p} \\equiv n^2 \\pmod{p}$, therefore $m^2 + n^2 + p + 1 \\equiv n^2 \\pmod{p} \\Rightarrow m^2 \\equiv -1 \\pmod{p}$.\n\nCase 1: $p = 4k + 3$. We have $(m^2)^{2k+1} \\equiv (-1)^{2k+1} \\pmod{p}$. Therefore,\n$$\nm^{p-1} \\equiv -1 \\pmod{p}\n$$\nand $p$ does not divide $m$. On the other hand, by Fermat's theorem\n$$\nm^{p-1} \\equiv 1 \\pmod{p}\n$$\n(28) and (29) yield $p = 2$. Thus, $p \\neq 4k + 3$.\n\nCase 2: $p = 4k + 1$. Let us consider (27) in mod 4. $n^2 = 0$ or $1$ in mod 4. In both cases $n^{2p} = n^2 \\pmod{4}$. From (27) we get $n^2 \\equiv m^2 + n^2 + 1 + 1 \\pmod{4}$. Therefore, $m^2 \\equiv -2 \\pmod{4}$, and again there is no solution.\n\nCase 3: $p = 2$. The given equation is written as\n$$\nn^4 - n^2 - 3 = m^2\n$$\nLet $l = n^2$. Readily, we do not get any solution for $l = 0$, $1$. If $l = 4$, then there are four solutions: $(3,2,2), (-3,2,2), (3,-2,2), (-3,-2,2)$. There is no solution for $l > 4$, since in this case\n$$\n(l-1)^2 = l^2 - 2l + 1 < m^2 = l^2 - l - 3 < l^2\n$$\nThus, (27) has four solutions: $(3,2,2), (-3,2,2), (3,-2,2), (-3,-2,2)$ and we are done.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34386, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all natural numbers $a$, $b$, $c$ for which $1997^{a} + 15^{b} = 2012^{c}$.", "options": [], "answer": "a = b = c = 1", "solution": "Solution:\n$1997^{a} + 15^{b} = 2012^{c} \\Rightarrow 1 + (-1)^{b} \\equiv 0 \\pmod{4}$, so $b$ is an odd number.\n$1997^{a} + 15^{b} = 2012^{c} \\Rightarrow 1 + 0 \\equiv 2^{c} \\pmod{3}$, so $c$ is even, say $c = 2c_{1}$.\nWe intend to consider the given equation modulo $8$ and for this reason we discern two cases:\n\n(1): $c = 1$. Clearly then $a = b = 1$ and $a = b = c = 1$ is a solution. This is actually the only solution of the given equation since in the remaining case where $c > 1$ it will be shown that there exist no solution.\n\n(2): $c > 1$. Then $2012^{c} = (4 \\cdot 503)^{c}$ is a multiple of $8$ and\n$1997^{a} + 15^{b} = 2012^{c} \\Rightarrow 5^{a} + (-1)^{b} \\equiv 5^{a} + (-1) \\equiv 0 \\pmod{8}$, so $a$ is even, say $a = 2a_{1}$. Hence\n$$\n3^{b} \\cdot 5^{b} = 15^{b} = 2012^{c} - 1997^{a} = \\left(2012^{c_{1}} - 1997^{a_{1}}\\right) \\cdot \\left(2012^{c_{1}} + 1997^{a_{1}}\\right)\n$$\nObserve that $2012^{c_{1}} - 1997^{a_{1}}$, $2012^{c_{1}} + 1997^{a_{1}}$ are both greater than $1$ and prime to each other as $\\gcd\\left(2012^{c_{1}} - 1997^{a_{1}}, 2012^{c_{1}} + 1997^{a_{1}}\\right) = \\gcd\\left(2012^{c_{1}} - 1997^{a_{1}}, 2 \\cdot 1997^{a_{1}}\\right) = 1$. So there exist two cases:\n$$\n\\text{Case 1:}\n\\begin{aligned}\n& 2012^{c_{1}} - 1997^{a_{1}} = 5^{b} \\\\\n& 2012^{c_{1}} + 1997^{a_{1}} = 3^{b}\n\\end{aligned}, \\quad \\text{Case 2:}\n\\begin{aligned}\n& 2012^{c_{1}} - 1997^{a_{1}} = 3^{b} \\\\\n& 2012^{c_{1}} + 1997^{a_{1}} = 5^{b}\n\\end{aligned}\n$$\n\nCase 1:\n$$\n\\begin{gathered}\n2012^{c_{1}} - 1997^{a_{1}} = 5^{b} \\Rightarrow 2^{c_{1}} - 2^{a_{1}} \\equiv 0 \\pmod{5} \\Rightarrow c_{1} \\equiv a_{1} \\pmod{5} \\\\\n2012^{c_{1}} + 1997^{a_{1}} = 3^{b} \\Rightarrow 2^{c_{1}} + 2^{a_{1}} \\equiv 0 \\pmod{5} \\Rightarrow c_{1} \\equiv a_{1} + 1 \\pmod{5}\n\\end{gathered}\n$$\na contradiction.\n\nCase 2:\n$$\n\\begin{aligned}\n& 2012^{c_{1}} - 1997^{a_{1}} = 3^{b} \\\\\n& 2012^{c_{1}} + 1997^{a_{1}} = 5^{b}\n\\end{aligned}\n$$\nSince $b$ is an odd number we get $2012^{c_{1}} + 1997^{a_{1}} \\equiv 5^{b} \\pmod{3} \\Rightarrow 2^{c_{1}} + 2^{a_{1}} \\equiv 5^{b} \\equiv 2 \\pmod{3}$ so $a_{1}, c_{1}$ are even numbers, say $a_{1} = 2a_{2}, c_{1} = 2c_{2}$. Then\n$$\n\\left(2012^{c_{2}} - 1997^{a_{2}}\\right) \\cdot \\left(2012^{c_{2}} + 1997^{a_{2}}\\right) = 3^{b}\n$$\nBut $\\gcd\\left(2012^{c_{2}} - 1997^{a_{2}}, 2012^{c_{2}} + 1997^{a_{2}}\\right) = 1$ and the above implies $2012^{c_{2}} - 1997^{a_{2}} = 1$. But then mod $4$, we get $0 - 1 \\equiv 3 \\pmod{4}$, a contradiction.\n\nTherefore there exists no solution for $c > 1$.\n\nHence $a = b = c = 1$ is the only solution.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34387, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $O_{1}$ be a point in the exterior of the circle $c(O, R)$ and let $O_{1}N$, $O_{1}D$ be the tangent segments from $O_{1}$ to the circle. On the segment $O_{1}N$ consider the point $B$ such that $BN = R$. Let the line from $B$ parallel to $ON$ intersect the segment $O_{1}D$ at $C$. If $A$ is a point on the segment $O_{1}D$ other than $C$ so that $BC = BA = a$, and if $c^{\\prime}(K, r)$ is the incircle of the triangle $O_{1}AB$; find the area of $ABC$ in terms of $a$, $R$, $r$.", "options": [], "answer": "(R + r) * sqrt(a^2 - (R + r)^2)", "solution": "Solution:\nObviously, the segment $BC$ is tangent to the circle $c$. Let $M$ be the point of tangency (Figure 6).\n\n![](attached_image_1.png)\n\nCall $Q$, $M$ the tangency points of $BA$, $BC$ with $c^{\\prime}$ and $c$ respectively, and call $H$ the midpoint of segment $AC$. It is well known that\n$$\nAQ = \\frac{1}{2}(AO_{1} + AB - BO_{1}) \\text{ and } CM = \\frac{1}{2}(BO_{1} + BC - CO_{1})\n$$\nand so\n$$\nAQ + CM = \\frac{1}{2}(2BC - AC) = a - \\frac{1}{2}AC = a - HC\n$$\nThe triangles $KAQ$ and $OCM$ are similar and this implies\n$$\n\\begin{aligned}\n\\frac{KQ}{OM} & = \\frac{AQ}{CM} \\Leftrightarrow \\frac{KQ}{AQ} = \\frac{OM}{CM} \\Leftrightarrow \\frac{r}{AQ} = \\frac{R}{CM} = \\frac{R + r}{AQ + CM} = \\frac{R + r}{a - HC} \\Leftrightarrow \\\\\n\\frac{r}{AQ} & = \\frac{R + r}{a - HA}\n\\end{aligned}\n$$\nIf $AZ$ is the bisector segment of triangle $BAH$ it holds\n$$\n\\angle AZH = 90^{\\circ} = \\frac{1}{2} \\angle BAC \\text{ and } \\angle KAQ = \\frac{1}{2}(180^{\\circ} - \\angle BAC) = 90^{\\circ} - \\frac{1}{2} \\angle BAC\n$$\nTherefore, from the similar triangles $KQA$ and $AHZ$ we get\n$$\n\\frac{-AH}{ZH} = \\frac{r}{AQ} \\stackrel{(6)}{=} \\frac{R + r}{a - HA}\n$$\nAlso, from the bisector theorem in triangle $ABH$ it holds\n$$\nZH = \\frac{AH \\cdot BH}{a + AH}\n$$\nand from (7) it follows\n$$\n\\frac{R + r}{a - HA} = \\frac{AH}{\\frac{AH \\cdot BH}{a + AH}} \\Rightarrow R + r = \\frac{a^{2} - AH^{2}}{BH} = \\frac{BH^{2}}{BH} = BH\n$$\nSo\n$$\nHA^{2} = a^{2} - (R + r)^{2} \\Leftrightarrow HA = \\sqrt{a^{2} - (R + r)^{2}}\n$$\nand finally the area of triangle $ABC$ in terms of $a$, $R$, $r$ is:\n$$\n(ABC) = AH \\cdot BH = (R + r) \\sqrt{a^{2} - (R + r)^{2}}\n$$", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34388, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $a$, $b$, $c$ be positive real numbers such that $abc = 1$. Show that\n$$\n\\frac{1}{a^{3}+b c}+\\frac{1}{b^{3}+c a}+\\frac{1}{c^{3}+a b} \\leq \\frac{(a b+b c+c a)^{2}}{6}\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\nBy the AM-GM inequality we have $a^{3}+b c \\geq 2 \\sqrt{a^{3} b c} = 2 \\sqrt{a^{2}(a b c)} = 2 a$ and\n$$\n\\frac{1}{a^{3}+b c} \\leq \\frac{1}{2 a}\n$$\nSimilarly, $\\frac{1}{b^{3}+c a} \\leq \\frac{1}{2 b}$, $\\frac{1}{c^{3}+a b} \\leq \\frac{1}{2 c}$, and then\n$$\n\\frac{1}{a^{3}+b c}+\\frac{1}{b^{3}+c a}+\\frac{1}{c^{3}+a b} \\leq \\frac{1}{2 a}+\\frac{1}{2 b}+\\frac{1}{2 c} = \\frac{1}{2} \\frac{a b+b c+c a}{a b c} \\leq \\frac{(a b+b c+c a)^{2}}{6}\n$$\nTherefore, it is enough to prove $\\frac{(a b+b c+c a)^{2}}{6} \\leq \\frac{(a b+b c+c a)^{2}}{6}$. This inequality is trivially shown to be equivalent to $3 \\leq a b+b c+c a$, which is true because of the AM-GM inequality: $3 = \\sqrt[3]{(a b c)^{2}} \\leq a b+b c+c a$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34389, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $a$, $b$, $c$ be positive real numbers such that $a + b + c = a^{2} + b^{2} + c^{2}$. Show that\n$$\n\\frac{a^{2}}{a^{2} + ab} + \\frac{b^{2}}{b^{2} + bc} + \\frac{c^{2}}{c^{2} + ca} \\geq \\frac{a + b + c}{2}\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\nBy the Cauchy-Schwarz inequality it is\n$$\n\\begin{aligned}\n& \\left(\\frac{a^{2}}{a^{2} + ab} + \\frac{b^{2}}{b^{2} + bc} + \\frac{c^{2}}{c^{2} + ca}\\right)\\left((a^{2} + ab) + (b^{2} + bc) + (c^{2} + ca)\\right) \\geq (a + b + c)^{2} \\\\\n\\Rightarrow & \\frac{a^{2}}{a^{2} + ab} + \\frac{b^{2}}{b^{2} + bc} + \\frac{c^{2}}{c^{2} + ca} \\geq \\frac{(a + b + c)^{2}}{a^{2} + b^{2} + c^{2} + ab + bc + ca}\n\\end{aligned}\n$$\nSo it is enough to prove $\\frac{(a + b + c)^{2}}{a^{2} + b^{2} + c^{2} + ab + bc + ca} \\geq \\frac{a + b + c}{2}$, that is to prove\n$$\n2(a + b + c) \\geq a^{2} + b^{2} + c^{2} + ab + bc + ca\n$$\nSubstituting $a^{2} + b^{2} + c^{2}$ for $a + b + c$ into the left hand side we wish equivalently to prove\n$$\na^{2} + b^{2} + c^{2} \\geq ab + bc + ca\n$$\nBut $a^{2} + b^{2} \\geq 2ab$, $b^{2} + c^{2} \\geq 2bc$, $c^{2} + a^{2} \\geq 2ca$ which by addition imply the desired inequality.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34390, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nSolve the following equation for $x, y, z \\in \\mathbb{N}$\n$$\n\\left(1+\\frac{x}{y+z}\\right)^{2}+\\left(1+\\frac{y}{z+x}\\right)^{2}+\\left(1+\\frac{z}{x+y}\\right)^{2}=\\frac{27}{4}\n$$", "options": [], "answer": "All triples with x = y = z ∈ N", "solution": "Solution:\nCall $a=1+\\frac{x}{y+z}$, $b=1+\\frac{y}{z+x}$, $c=1+\\frac{z}{x+y}$ to get\n$$\na^{2}+b^{2}+c^{2}=\\frac{27}{4}\n$$\nSince it is also true that\n$$\n\\frac{1}{a}+\\frac{1}{b}+\\frac{1}{c}=2\n$$\nthe quadratic-harmonic means inequality implies\n$$\n\\frac{3}{2}=\\sqrt{\\frac{a^{2}+b^{2}+c^{2}}{3}} \\geq \\frac{3}{\\frac{1}{a}+\\frac{1}{b}+\\frac{1}{c}}=\\frac{3}{2}\n$$\nSo the inequality in the middle holds as an equality, and this happens whenever $a=b=c$, from which $1+\\frac{x}{y+z}=1+\\frac{y}{z+x}=1+\\frac{z}{x+y}$.\nBut $1+\\frac{x}{y+z}=1+\\frac{y}{z+x} \\Leftrightarrow x^{2}+x z=y^{2}+y z \\Leftrightarrow(x-y)(x+y)=z(y-x)$ and the two sides of this equality will be of different sign, unless $x=y$ in which case both sides become $0$. So $x=y$, and similarly $y=z$, thus $x=y=z$.\nIndeed, any triad of equal natural numbers $x=y=z$ is a solution for the given equation, and so these are all its solutions.\n\n\nSolution 2:\nThe given equation is equivalent to\n$$\n\\frac{27}{4}=(x+y+z)^{2}\\left(\\frac{1}{(y+z)^{2}}+\\frac{1}{(z+x)^{2}}+\\frac{1}{(x+y)^{2}}\\right)\n$$\nNow observe that by the well known inequality $a^{2}+b^{2}+c^{2} \\geq ab+bc+ca$, with $\\frac{1}{y+z}$, $\\frac{1}{z+x}$, $\\frac{1}{x+y}$ in place of $a, b, c$; we get:\n$$\n\\begin{aligned}\n\\frac{27}{4} & =(x+y+z)^{2}\\left(\\frac{1}{(y+z)^{2}}+\\frac{1}{(z+x)^{2}}+\\frac{1}{(x+y)^{2}}\\right) \\\\\n& \\geq (x+y+z)^{2}\\left(\\frac{1}{(y+z)(z+x)}+\\frac{1}{(z+x)(x+y)}+\\frac{1}{(x+y)(y+z)}\\right) = \\frac{2(x+y+z)^{3}}{(x+y)(y+z)(z+x)} \\\\\n& = \\frac{(2(x+y+z))^{3}}{4(x+y)(y+z)(z+x)} = \\frac{((x+y)+(y+z)+(z+x))^{3}}{4(x+y)(y+z)(z+x)} \\stackrel{\\text{AM-GM}}{\\geq} \\frac{(3 \\sqrt[3]{(x+y)(y+z)(z+x)})^{3}}{4(x+y)(y+z)(z+x)} . \\\\\n& = \\frac{27}{4}\n\\end{aligned}\n$$\nThis means all inequalities in the above calculations are equalities, and this holds exactly whenever $x+y=y+z=z+x$, that is $x=y=z$. By the statement's demand we need to have $a, b, c$ integers. And conversely, any triad of equal natural numbers $x=y=z$ is indeed a solution for the given equation, and so these are all its solutions.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34391, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind the largest positive integer $n$ for which the inequality\n$$\n\\frac{a+b+c}{a b c+1}+\\sqrt[n]{a b c} \\leq \\frac{5}{2}\n$$\nholds for all $a, b, c \\in[0,1]$. Here $\\sqrt[1]{a b c}=a b c$.", "options": [], "answer": "3", "solution": "Solution:\nLet $n_{\\max}$ be the sought largest value of $n$, and let $E_{a, b, c}(n)=\\frac{a+b+c}{a b c+1}+\\sqrt[n]{a b c}$. Then $E_{a, b, c}(m)-E_{a, b, c}(n)=\\sqrt[m]{a b c}-\\sqrt[n]{a b c}$ and since $a b c \\leq 1$ we clearly have $E_{a, b, c}(m) \\geq E_{a, b, c}(n)$ for $m \\geq n$. So if $E_{a, b, c}(n) \\geq \\frac{5}{2}$ for some choice of $a, b, c \\in[0,1]$, it must be $n_{\\max} \\leq n$. We use this remark to determine the upper bound $n_{\\max} \\leq 3$ by plugging some particular values of $a, b, c$ into the given inequality as follows:\n$$\n\\text{For }(a, b, c)=(1,1, c),\\ c \\in[0,1],\\ \\text{inequality (1) implies } \\frac{c+2}{c+1}+\\sqrt[n]{c} \\leq \\frac{5}{2} \\Leftrightarrow \\frac{1}{c+1}+\\sqrt[n]{c} \\leq \\frac{3}{2}.\n$$\nObviously, every $x \\in[0, 1]$ is written as $\\sqrt[n]{c}$ for some $c \\in[0, 1]$. So the last inequality is equivalent to:\n$$\n\\begin{aligned}\n& \\frac{1}{x^{n}+1}+x \\leq \\frac{3}{2} \\Leftrightarrow 2+2 x^{n+1}+2 x \\leq 3 x^{n}+3 \\Leftrightarrow 3 x^{n}+1 \\geq 2 x^{n+1}+2 x \\\\\n\\Leftrightarrow & 2 x^{n}(1-x)+(1-x)+(x-1)\\left(x^{n-1}+\\cdots+x\\right) \\geq 0 \\\\\n\\Leftrightarrow & (1-x)\\left[2 x^{n}+1-\\left(x^{n-1}+x^{n-2}+\\ldots+x\\right)\\right] \\geq 0,\\ \\forall x \\in[0,1]\n\\end{aligned}\n$$\nFor $n=4$, the left hand side of the above becomes $(1-x)\\left(2 x^{4}+1-x^{3}-x^{2}-x\\right)=(1-x)(x-1)\\left(2 x^{3}+x^{2}-1\\right)=-(1-x)^{2}\\left(2 x^{3}+x^{2}-1\\right)$ which for $x=0.9$ is negative. Thus, $n_{\\max} \\leq 3$ as claimed.\n\nNow, we shall prove that for $n=3$ inequality (1) holds for all $a, b, c \\in[0,1]$, and this would mean $n_{\\max}=3$. We shall use the following Lemma:\n\nLemma. For all $a, b, c \\in[0, 1]: a+b+c \\leq a b c+2$.\n\nProof of the Lemma: The required result comes by adding the following two inequalities side by side\n$$\n\\begin{aligned}\n& 0 \\leq(a-1)(b-1) \\Leftrightarrow a+b \\leq a b+1 \\Leftrightarrow a+b-a b \\leq 1 \\\\\n& 0 \\leq(a b-1)(c-1) \\Leftrightarrow a b+c \\leq a b c+1\n\\end{aligned}\n$$\nBecause of the Lemma, our inequality (1) for $n=3$ will be proved if the following weaker inequality is proved for all $a, b, c \\in[0,1]$:\n$$\n\\frac{a b c+2}{a b c+1}+\\sqrt[3]{a b c} \\leq \\frac{5}{2} \\Leftrightarrow \\frac{1}{a b c+1}+\\sqrt[3]{a b c} \\leq \\frac{3}{2}\n$$\nDenoting $\\sqrt[3]{a b c}=y \\in[0, 1]$, this inequality becomes:\n$$\n\\begin{aligned}\n& \\frac{1}{y^{3}+1}+y \\leq \\frac{3}{2} \\Leftrightarrow 2+2 y^{4}+2 y \\leq 3 y^{3}+3 \\Leftrightarrow -2 y^{4}+3 y^{3}-2 y+1 \\geq 0 \\\\\n\\Leftrightarrow & 2 y^{3}(1-y)+(y-1) y(y+1)+(1-y) \\geq 0 \\Leftrightarrow (1-y)\\left(2 y^{3}+1-y^{2}-y\\right) \\geq 0\n\\end{aligned}\n$$\nThe last inequality is obvious because $1-y \\geq 0$ and $2 y^{3}+1-y^{2}-y=y^{3}+(y-1)^{2}(y+1) \\geq 0$.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34392, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAlong a round table are arranged 11 cards with the names (all distinct) of the 11 members of the $16^{\text{th}}$ JBMO Problem Selection Committee. The distances between each two consecutive cards are equal. Assume that in the first meeting of the Committee none of its 11 members sits in front of the card with his name. Is it possible to rotate the table by some angle so that at the end at least two members sit in front of the card with their names?", "options": [], "answer": "Yes", "solution": "Solution:\n\nYes it is: Rotating the table by the angles $\\frac{360^{\\circ}}{11}, 2 \\cdot \\frac{360^{\\circ}}{11}, 3 \\cdot \\frac{360^{\\circ}}{11}, \\ldots, 10 \\cdot \\frac{360^{\\circ}}{11}$, we obtain 10 new positions of the table. By the assumption, it is obvious that every one of the 11 members of the Committee will be seated in front of the card with his name in exactly one of these 10 positions. Then by the Pigeonhole Principle there should exist one among these 10 positions in which at least two of the $11(>10)$ members of the Committee will be placed in their positions, as claimed.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34393, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn a circle of diameter $1$ consider $65$ points no three of which are collinear. Prove that there exist $3$ among these points which form a triangle with area less than or equal to $\\frac{1}{72}$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nLemma: If a triangle $ABC$ lies in a rectangle $KLMN$ with sides $KL = a$ and $LM = b$, then the area of the triangle is less than or equal to $\\frac{ab}{2}$.\n\nProof of the lemma: Without any loss of generality, assume that among the distances of $A, B, C$ from $KL$, that of $A$ is between the other two. Let $\\ell$ be the line through $A$ and parallel to $KL$. Let $D$ be the intersection of $\\ell$ and $BC$, and $x, y$ the distances of $B, C$ from $\\ell$ respectively. Then the area of $ABC$ equals $\\frac{AD(x+y)}{2} \\leq \\frac{ab}{2}$, since $AD \\leq a$ and $x + y \\leq b$, and we are done.\n\nNow back to our problem. Let us cover the circle with $24$ squares of side $\\frac{1}{6}$ and $8$ other irregular and equal figures as shown in Figure 9, with boundary consisting of an arc on the circle and three line segments. Call $S = ADNM$ one of these figures. One of the line segments in the boundary of $S$ is of length $AD = AB - DB = \\sqrt{AC^2 - BC^2} - \\frac{2}{6} = \\sqrt{\\left(\\frac{1}{2}\\right)^2 - \\left(\\frac{1}{6}\\right)^2} - \\frac{1}{3} = \\frac{\\sqrt{2} - 1}{3}$.\n\nThe boundary segment $MN$ goes through the center $C$ of the circle, forming with the horizontal lines an angle of $45^\\circ$. The point in $S$ with maximum distance from the boundary segment $AB$ is the endpoint $M$ of the arc on the boundary of $S$. This distance equals $ME = MF - EF$ (since $CMF$ is isosceles), $= \\frac{\\sqrt{2}}{2} CM - \\frac{1}{6} = \\frac{\\sqrt{2}}{4} - \\frac{1}{6} = \\frac{3\\sqrt{2} - 2}{12}$.\n\nSo $S$ can be put inside a rectangle $R$ with sides parallel to $AD, ND$ of lengths $\\frac{\\sqrt{2} - 1}{3}$ and $\\frac{3\\sqrt{2} - 2}{12}$. So the triangle formed by any three points inside this figure has an area less or equal to $\\frac{1}{2} \\cdot \\frac{\\sqrt{2} - 1}{3} \\cdot \\frac{3\\sqrt{2} - 2}{12} = \\frac{8 - 5\\sqrt{2}}{72} < \\frac{1}{72}$.\n\nAlso, the triangle formed by any three points inside any square of side $\\frac{1}{6}$ has an area less or equal to $\\frac{1}{2} \\cdot \\frac{1}{6} \\cdot \\frac{1}{6} = \\frac{1}{72}$.\n\nBy the Pigeonhole Principle, we know that among the $65$ given points there exist $3$ inside the same one of the $32$ squares and irregular figures of the picture covering the given circle. Then according to the above, the triangle formed by these $3$ points has an area not exceeding $\\frac{1}{72}$ as wanted.\n\n![](attached_image_1.png)\nFigure 9: Exercise C3.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34394, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $ABC$ be an equilateral triangle, and $P$ a point on the circumcircle of the triangle $ABC$ and distinct from $A$, $B$ and $C$. If the lines through $P$ and parallel to $BC$, $CA$, $AB$ intersect the lines $CA$, $AB$, $BC$ at $M$, $N$ and $Q$ respectively, prove that $M$, $N$ and $Q$ are collinear.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nWithout any loss of generality, let $P$ be in the minor arc of the chord $AC$ as in Figure 1. Since $\\angle PNA = \\angle NPM = 60^{\\circ}$ and $\\angle NAM = \\angle PMA = 120^{\\circ}$, it follows that the points $A$, $M$, $P$ and $N$ are concyclic. This yields\n$$\n\\angle NMP = \\angle NAP\n$$\n![](attached_image_1.png)\nFigure 1: Exercise G1.\nSimilarly, since $\\angle PMC = \\angle MCQ = 60^{\\circ}$ and $\\angle CQP = 60^{\\circ}$, it follows that the points $P$, $M$, $Q$ and $C$ are concyclic. Thus\n$$\n\\angle PMQ = 180^{\\circ} - \\angle PCQ = 180^{\\circ} - \\angle NAP \\stackrel{(2)}{=} 180^{\\circ} - \\angle NMP .\n$$\nThis implies $\\angle PMQ + \\angle NMP = 180^{\\circ}$, which shows that $M$, $N$ and $Q$ belong to the same line.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34395, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $ABC$ be an acute-angled triangle with circumcircle $\\Gamma$, and let $O, H$ be the triangle's circumcenter and orthocenter respectively. Let also $A'$ be the point where the angle bisector of angle $BAC$ meets $\\Gamma$. If $A'H = AH$, find the measure of angle $BAC$.\n\n![](attached_image_1.png)\nFigure 4: Exercise G4.", "options": [], "answer": "60 degrees", "solution": "Solution:\nThe segment $AA'$ bisects $\\angle OAH$: if $\\angle BCA = y$ (Figure 4), then $\\angle BOA = 2y$, and since $OA = OB$, it is $\\angle OAB = \\angle OBA = 90^{\\circ} - y$. Also since $AH \\perp BC$, it is\n$\\angle HAC = 90^{\\circ} - y = \\angle OAB$ and the claim follows.\n\nSince $AA'$ bisects $\\angle OAH$ and $A'H = AH$, $OA' = OA$, we have that the isosceles triangles $OAA'$, $HAA'$ are equal. Thus\n$$\nAH = OA = R\n$$\nwhere $R$ is the circumradius of triangle $ABC$.\n\nCall $\\angle ACH = a$ and recall by the law of sines that $AH = 2R' \\sin a$, where $R'$ is the circumradius of triangle $AHC$. Then (4) implies\n$$\nR = 2R' \\sin a\n$$\nBut notice that $R = R'$ because $\\frac{AC}{\\sin(AHC)} = 2R'$, $\\frac{AC}{\\sin(ABC)} = 2R$ and $\\sin(AHC) = \\sin\\left(180^{\\circ} - ABC\\right) = \\sin(ABC)$. So (5) gives $1 = 2\\sin a$, and $a$ as an acute angle can only be $30^{\\circ}$. Finally, $\\angle BAC = 90^{\\circ} - a = 60^{\\circ}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34396, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all ordered triples $(x, y, z)$ of real numbers satisfying the following system of equations:\n$$\n\\begin{aligned}\nx^{3} & = \\frac{z}{y} - 2 \\frac{y}{z} \\\\\ny^{3} & = \\frac{x}{z} - 2 \\frac{z}{x} \\\\\nz^{3} & = \\frac{y}{x} - 2 \\frac{x}{y}\n\\end{aligned}\n$$", "options": [], "answer": "(1, 1, -1), (1, -1, 1), (-1, 1, 1), (-1, -1, -1)", "solution": "Solution:\nWe have\n$$\n\\begin{aligned}\n& x^{3} y z = z^{2} - 2 y^{2} \\\\\n& y^{3} z x = x^{2} - 2 z^{2} \\\\\n& z^{3} x y = y^{2} - 2 x^{2}\n\\end{aligned}\n$$\nwith $x y z \\neq 0$.\nAdding these up we obtain $\\left(x^{2} + y^{2} + z^{2}\\right)(x y z + 1) = 0$. Hence $x y z = -1$. Now the system of equations becomes:\n$$\n\\begin{aligned}\n& x^{2} = 2 y^{2} - z^{2} \\\\\n& y^{2} = 2 z^{2} - x^{2} \\\\\n& z^{2} = 2 x^{2} - y^{2}\n\\end{aligned}\n$$\nThen the first two equations give $x^{2} = y^{2} = z^{2}$. As $x y z = -1$, we conclude that $(x, y, z) = (1, 1, -1), (1, -1, 1), (-1, 1, 1)$ and $(-1, -1, -1)$ are the only solutions.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34397, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind the largest possible value of the expression $\\left|\\sqrt{x^{2}+4x+8}-\\sqrt{x^{2}+8x+17}\\right|$ where $x$ is a real number.", "options": [], "answer": "sqrt(5)", "solution": "Solution:\nWe observe that\n$$\n\\left|\\sqrt{x^{2}+4x+8}-\\sqrt{x^{2}+8x+17}\\right|=\\left|\\sqrt{(x-(-2))^{2}+(0-2)^{2}}-\\sqrt{(x-(-4))^{2}+(0-1)^{2}}\\right|\n$$\nis the absolute difference of the distances from the point $P(x, 0)$ in the $xy$-plane to the points $A(-2,2)$ and $B(-4,1)$.\nBy the Triangle Inequality, $|PA-PB| \\leq |AB|$ and the equality occurs exactly when $P$ lies on the line passing through $A$ and $B$, but not between them.\nIf $P, A, B$ are collinear, then $(x-(-2))/(0-2)=((-4)-(-2))/(1-2)$. This gives $x=-6$, and as $-6<-4<-2$,\n$$\n\\left|\\sqrt{(-6)^{2}+4(-6)+8}-\\sqrt{(-6)^{2}+8(-6)+17}\\right|=|\\sqrt{20}-\\sqrt{5}|=\\sqrt{5}\n$$\nis the largest possible value of the expression.", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 34398, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind the largest number of distinct integers that can be chosen from the set $\\{1,2, \\ldots, 2013\\}$ so that the difference of no two of them is equal to $17$.", "options": [], "answer": "1010", "solution": "Solution:\nConsider the sets $A_{mn} = \\{34m + n - 34, 34m + n - 17\\}$ for $1 \\leq m \\leq 59$ and $1 \\leq n \\leq 17$, and $B_k = \\{2006 + k\\}$ for $1 \\leq k \\leq 7$. As we cannot choose more than one number from each of these sets, we can choose at most $59 \\cdot 17 + 7 = 1010$ numbers. On the other hand, choosing the smaller element of each of these sets gives exactly $1010$ numbers satisfying the condition.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34399, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nOn a billiards table in the shape of a rectangle $ABCD$ with $AB = 2013$ and $AD = 1000$, a billiard ball is shot along the bisector of the angle $\\angle BAD$. Assuming that the ball is reflected from the sides at the same angle it comes in, determine whether it will ever go to the corner $B$.", "options": [], "answer": "No, the ball will never reach corner B.", "solution": "Solution:\n\nThe ball travels a horizontal distance of $1000$ units between two bounces from the sides $AB$ and $CD$ as it always moves on a line making a $45^{\\circ}$ angle with the sides. Hence it is always at a distance of even number of units to the line $AD$ when it hits $AB$ or $CD$. Hence it can never hit $AB$ at $B$.\nSolution:\n\nConsider a rectangle $A'B'C'D'$ which is wider $1/2$ units on all sides, divide it into unit squares, and color them black and white alternatingly with the vertex $A$ being the center of a black unit square. Then the ball always moves along the diagonals of the black unit squares. As $B$ lies at the center of a white unit square, the ball never reaches $B$.\nSolution:\n\nThe vertical lines $x = 2013m$ and the horizontal lines $y = 1000n$, where $m$ and $n$ are integers, divide the $xy$-plane into rectangles congruent to the rectangle $ABCD$. Let $A(0,0)$, $B(2013,0)$, $C(2013,1000)$, $D(0,1000)$, and identify the other rectangles with $ABCD$ via reflections across these lines. Under this identification, the ball moves along the line $y = x$ and the coordinates of the points identified with $B$ have the form $(2013k, 1000l)$ where $k$ is an odd integer and $l$ is an even one. Hence the ball never goes to $B$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34400, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nAll possible pairs of $n$ apples are weighed and the results are given to us in an arbitrary order. Can we determine the weights of the apples if\n\na. $n=4$\n\nb. $n=5$\n\nc. $n=6$?", "options": [], "answer": "a: No; b: Yes; c: Yes", "solution": "Solution:\n\na. No. Four apples with weights $1, 5, 7, 9$ and with weights $2, 4, 6, 10$ both give the results $6, 8, 10, 12, 14, 16$ when weighed in pairs.\n\nb. Yes. Let $a \\leq b \\leq c \\leq d \\leq e$ be the weights of the apples. As each apple is weighed 4 times, by adding all 10 pairwise weights and dividing the sum by 4, we obtain $a + b + c + d + e$. Subtracting the smallest and the largest pairwise weights $a + b$ and $d + e$ from this we obtain $c$. Subtracting $c$ from the second largest pairwise weight $c + e$ we obtain $e$. Subtracting $e$ from the largest pairwise weight $d + e$ we obtain $d$. $a$ and $b$ are similarly determined.\n\nc. Yes. Let $a \\leq b \\leq c \\leq d \\leq e \\leq f$ be the weights of the apples. As each apple is weighed 5 times, by adding all 15 pairwise weights and dividing the sum by 5, we obtain $a + b + c + d + e + f$. Subtracting the smallest and the largest pairwise weights $a + b$ and $e + f$ from this we obtain $c + d$.\nSubtracting the smallest and the second largest pairwise weights $a + b$ and $d + f$ from $a + b + c + d + e + f$ we obtain $c + e$. Similarly we obtain $b + d$. We use these to obtain $a + f$ and $b + e$.\nNow $a + d, a + e, b + c$ are the three smallest among the remaining six pairwise weights. If we add these up, subtract the known weights $c + d$ and $b + e$ from the sum and divide the difference by 2, we obtain $a$. Then the rest follows.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34401, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $AB$ be a diameter of a circle $\\omega$ with center $O$ and $OC$ be a radius of $\\omega$ which is perpendicular to $AB$. Let $M$ be a point on the line segment $OC$. Let $N$ be the second point of intersection of the line $AM$ with $\\omega$, and let $P$ be the point of intersection of the lines tangent to $\\omega$ at $N$ and at $B$. Show that the points $M, O, P, N$ are concyclic.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nSince the lines $PN$ and $BP$ are tangent to $\\omega$, $NP = PB$ and $OP$ is the bisector of $\\angle NOB$. Therefore the lines $OP$ and $NB$ are perpendicular. Since $\\angle ANB = 90^\\circ$, it follows that the lines $AN$ and $OP$ are parallel. As $MO$ and $PB$ are also parallel and $AO = OB$, the triangles $AMO$ and $OPB$ are congruent and $MO = PB$. Hence $MO = NP$. Therefore $MOPN$ is an isosceles trapezoid and therefore cyclic. Hence the points $M, O, P, N$ are concyclic.\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34402, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\n$\\omega_{1}$ and $\\omega_{2}$ are two circles that are externally tangent to each other at the point $M$ and internally tangent to a circle $\\omega_{3}$ at the points $K$ and $L$, respectively. Let $A$ and $B$ be the two points where the common tangent line at $M$ to $\\omega_{1}$ and $\\omega_{2}$ intersects $\\omega_{3}$. Show that if $\\angle K A B = \\angle L A B$ then the line segment $A B$ is a diameter of $\\omega_{3}$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nLet $C$ be the intersection point of the tangent lines to the circles $\\omega_{1}$ at $K$ and $\\omega_{2}$ at $L$. Point $C$ lies on the radical axis of circles $\\omega_{1}$ and $\\omega_{3}$, and also on the radical axis of the circles $\\omega_{2}$ and $\\omega_{3}$. Therefore $C$ lies on the radical axis of the circles $\\omega_{1}$ and $\\omega_{2}$ too. Therefore the points $A, B, C$ are collinear.\n\nSince $\\angle K A B = \\angle L A B$, the chords $K B$ and $B L$ have the same length. As we also have $C K = C L$, the triangles $K B C$ and $L B C$ are congruent. In particular, $\\angle K B A = \\angle L B A$. Therefore, $\\angle B K A = 180^{\\circ} - (\\angle A B K + \\angle B A K) = 180^{\\circ} - (\\angle L B K + \\angle L A K) / 2 = 180^{\\circ} - 90^{\\circ} = 90^{\\circ}$, and $A B$ is a diameter.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34403, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $I$ be the incenter and $AB$ the shortest side of a triangle $ABC$. The circle with center $I$ and passing through $C$ intersects the ray $AB$ at the point $P$ and the ray $BA$ at the point $Q$. Let $D$ be the point where the excircle of the triangle $ABC$ belonging to angle $A$ touches the side $BC$, and let $E$ be the symmetric of the point $C$ with respect to $D$. Show that the lines $PE$ and $CQ$ are perpendicular.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nFirst we will show that points $P$ and $Q$ are not on the line segment $AB$.\nAssume that $Q$ is on the line segment $AB$. Since $CI = QI$ and $\\angle IBQ = \\angle IBC$, either the triangles $CBI$ and $QBI$ are congruent or $\\angle ICB + \\angle IQB = 180^\\circ$. In the first case, we have $BC = BQ$ which contradicts $AB$ being the shortest side.\nIn the second case, we have $\\angle IQA = \\angle ICB = \\angle ICA$ and the triangles $IAC$ and $IAQ$ are congruent. Hence this time we have $AC = AQ$, contradicting $AB$ being the shortest side.\n\n![](attached_image_1.png)\n\nCase 1\n\n![](attached_image_2.png)\n\nNow we will show that the lines $PE$ and $CQ$ are perpendicular.\nSince $\\angle IBQ \\leq \\angle IAB = (\\angle CAB)/2 < 90^\\circ$ and $\\angle ICB = (\\angle ACB)/2 < 90^\\circ$, the triangles $CBI$ and $QBI$ are congruent. Hence $BC = BQ$ and $\\angle CQP = \\angle CQB = 90^\\circ - (\\angle ABC)/2$. Similarly, we have $AC = AP$ and hence $BP = AC - AB$.\nOn the other hand, as $DE = CD$ and $CD + AC = u$, where $u$ denotes the semiperimeter of the triangle $ABC$, we have $BE = BC - 2(u - AC) = AC - AB$. Therefore $BP = BE$ and $\\angle QPE = (\\angle ABC)/2$.\nHence, $\\angle CQP + \\angle QPE = 90^\\circ$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34404, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nA circle passing through the midpoint $M$ of the side $B C$ and the vertex $A$ of a triangle $A B C$ intersects the sides $A B$ and $A C$ for the second time at the points $P$ and $Q$, respectively. Show that if $\\angle B A C=60^\\circ$ then\n$$\nA P+A Q+P Q2000$ then $2014=n+\\lfloor\\sqrt{n}\\rfloor+\\lfloor\\sqrt[3]{n}\\rfloor>2000+44+12=2056$, a contradiction!\nSo $1950 \\leq n \\leq 2000$, therefore $\\lfloor\\sqrt{n}\\rfloor=44$ and $\\lfloor\\sqrt[3]{n}\\rfloor=12$. Plugging that into the original equation we get:\n$$\nn+\\lfloor\\sqrt{n}\\rfloor+\\lfloor\\sqrt[3]{n}\\rfloor=n+44+12=2014\n$$\nFrom which we get $n=1958$.\nSolution:\nObviously $n$ must be a positive integer. Since $n \\leq 2014$, $\\sqrt{n}<45$ and $\\sqrt[3]{n}<13$.\nFrom $n=2014-\\lfloor\\sqrt{n}\\rfloor-\\lfloor\\sqrt[3]{n}\\rfloor>2014-45-13=1956$, $\\sqrt{n}>44$ and $\\sqrt[3]{n}>12$, thus $\\lfloor\\sqrt{n}\\rfloor=44$ and $\\lfloor\\sqrt[3]{n}\\rfloor=12$ and $n=2014-\\lfloor\\sqrt{n}\\rfloor-\\lfloor\\sqrt[3]{n}\\rfloor=2014-44-12=1958$.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34411, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $a$, $b$ and $c$ be positive real numbers such that $a b c = \\frac{1}{8}$. Prove the inequality\n$$\na^{2} + b^{2} + c^{2} + a^{2} b^{2} + b^{2} c^{2} + c^{2} a^{2} \\geq \\frac{15}{16}\n$$\nWhen does equality hold?", "options": [], "answer": "Equality holds if and only if a = b = c = 1/2.", "solution": "Solution:\nBy using the Arithmetic-Geometric Mean Inequality for 15 positive numbers, we find that\n$$\n\\begin{aligned}\n& a^{2} + b^{2} + c^{2} + a^{2} b^{2} + b^{2} c^{2} + c^{2} a^{2} = \\\\\n& \\quad = \\frac{a^{2}}{4} + \\frac{a^{2}}{4} + \\frac{a^{2}}{4} + \\frac{a^{2}}{4} + \\frac{b^{2}}{4} + \\frac{b^{2}}{4} + \\frac{b^{2}}{4} + \\frac{b^{2}}{4} + \\frac{c^{2}}{4} + \\frac{c^{2}}{4} + \\frac{c^{2}}{4} + \\frac{c^{2}}{4} + a^{2} b^{2} + b^{2} c^{2} + c^{2} a^{2} \\geq \\\\\n& \\quad \\geq 15 \\sqrt[15]{\\frac{a^{12} b^{12} c^{12}}{4^{12}}} = 15 \\sqrt[15]{\\left(\\frac{a b c}{4}\\right)^{12}} = 15 \\sqrt[15]{\\left(\\frac{1}{32}\\right)^{12}} = \\frac{15}{16}\n\\end{aligned}\n$$\nas desired. Equality holds if and only if $a = b = c = \\frac{1}{2}$.\n\nBy using AM-GM we obtain\n$$\n\\begin{aligned}\n& \\left(a^{2} + b^{2} + c^{2}\\right) + \\left(a^{2} b^{2} + b^{2} c^{2} + c^{2} a^{2}\\right) \\geq 3 \\sqrt[3]{a^{2} b^{2} c^{2}} + 3 \\sqrt[3]{a^{4} b^{4} c^{4}} = \\\\\n& = 3 \\sqrt[3]{\\left(\\frac{1}{8}\\right)^{2}} + 3 \\sqrt[3]{\\left(\\frac{1}{8}\\right)^{4}} = \\frac{3}{4} + \\frac{3}{16} = \\frac{15}{16}\n\\end{aligned}\n$$\nThe equality holds when $a^{2} = b^{2} = c^{2}$, i.e. $a = b = c = \\frac{1}{2}$.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34412, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $a$, $b$, $c$ be positive real numbers such that $a + b + c = 1$. Prove that\n$$\n\\frac{7 + 2b}{1 + a} + \\frac{7 + 2c}{1 + b} + \\frac{7 + 2a}{1 + c} \\geq \\frac{69}{4}.\n$$\nWhen does equality hold?", "options": [], "answer": "Equality holds when a = b = c = 1/3.", "solution": "Solution:\n\nThe inequality can be written as:\n$$\n\\frac{5 + 2(1 + b)}{1 + a} + \\frac{5 + 2(1 + c)}{1 + b} + \\frac{5 + 2(1 + a)}{1 + c} \\geq \\frac{69}{4}.\n$$\nWe substitute $1 + a = x$, $1 + b = y$, $1 + c = z$.\nSo, we have to prove the inequality\n$$\n\\frac{5 + 2y}{x} + \\frac{5 + 2z}{y} + \\frac{5 + 2x}{z} \\geq \\frac{69}{4} \\Leftrightarrow 5\\left(\\frac{1}{x} + \\frac{1}{y} + \\frac{1}{z}\\right) + 2\\left(\\frac{y}{x} + \\frac{z}{y} + \\frac{x}{z}\\right) \\geq \\frac{69}{4}\n$$\nwhere $x, y, z > 1$ real numbers and $x + y + z = 4$.\nWe have\n- $\\frac{x + y + z}{3} \\geq \\frac{3}{\\frac{1}{x} + \\frac{1}{y} + \\frac{1}{z}} \\Leftrightarrow \\frac{1}{x} + \\frac{1}{y} + \\frac{1}{z} \\geq \\frac{9}{x + y + z} \\Leftrightarrow \\frac{1}{x} + \\frac{1}{y} + \\frac{1}{z} \\geq \\frac{9}{4}$\n- $\\frac{y}{x} + \\frac{z}{y} + \\frac{x}{z} \\geq 3 \\cdot \\sqrt[3]{\\frac{y}{x} \\cdot \\frac{z}{y} \\cdot \\frac{x}{z}} = 3$\n\nThus,\n$$\n\\frac{5 + 2y}{x} + \\frac{5 + 2z}{y} + \\frac{5 + 2x}{z} = 5\\left(\\frac{1}{x} + \\frac{1}{y} + \\frac{1}{z}\\right) + 2\\left(\\frac{y}{x} + \\frac{z}{y} + \\frac{x}{z}\\right) \\geq 5 \\cdot \\frac{9}{4} + 2 \\cdot 3 = \\frac{69}{4}.\n$$\nThe equality holds when $(x = y = z, \\frac{y}{x} = \\frac{z}{y} = \\frac{x}{z}, x + y + z = 4)$, thus $x = y = z = \\frac{4}{3}$, i.e. $a = b = c = \\frac{1}{3}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34413, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $x$, $y$, $z$ be non-negative real numbers satisfying $x + y + z = x y z$. Prove that\n$$\n2\\left(x^{2} + y^{2} + z^{2}\\right) \\geq 3(x + y + z)\n$$\nand determine when equality occurs.", "options": [], "answer": "Equality occurs only at x = y = z = 0.", "solution": "Solution:\nEquality holds when $x = y = z = 0$.\nApply AM-GM to $x + y + z = x y z$,\n$$\n\\begin{aligned}\n& x y z = x + y + z \\geq 3 \\sqrt[3]{x y z} \\Rightarrow (x y z)^{3} \\geq (3 \\sqrt[3]{x y z})^{3} \\\\\n& \\Rightarrow x^{3} y^{3} z^{3} \\geq 27 x y z \\\\\n& \\Rightarrow x^{2} y^{2} z^{2} \\geq 27 \\\\\n& \\Rightarrow \\sqrt[3]{x^{2} y^{2} z^{2}} \\geq 3\n\\end{aligned}\n$$\nAlso by AM-GM we have, $x^{2} + y^{2} + z^{2} \\geq 3 \\sqrt[3]{x^{2} y^{2} z^{2}} \\geq 9$.\nTherefore we get $x^{2} + y^{2} + z^{2} \\geq 9$.\nNow,\n$$\n\\begin{gathered}\n2\\left(x^{2} + y^{2} + z^{2}\\right) \\geq 3(x + y + z) \\Leftrightarrow \\frac{2\\left(x^{2} + y^{2} + z^{2}\\right)}{3} \\geq (x + y + z) \\\\\n\\Leftrightarrow 2 \\cdot \\frac{2\\left(x^{2} + y^{2} + z^{2}\\right)}{3} \\geq 2 \\cdot (x + y + z) \\\\\n\\Leftrightarrow \\frac{4\\left(x^{2} + y^{2} + z^{2}\\right)}{3} \\geq 2 \\cdot (x + y + z) \\\\\n\\Leftrightarrow x^{2} + y^{2} + z^{2} + \\frac{\\left(x^{2} + y^{2} + z^{2}\\right)}{3} \\geq 2 \\cdot (x + y + z) \\\\\n\\Leftrightarrow 3 + \\frac{x^{2}}{3} + 3 + \\frac{y^{2}}{3} + 3 + \\frac{z^{2}}{3} \\geq 2(x + y + z) \\\\\n\\Leftrightarrow 3 + \\frac{x^{2}}{3} + 3 + \\frac{y^{2}}{3} + 3 + \\frac{z^{2}}{3} \\geq 2(x + y + z) \\\\\n\\Leftrightarrow 2 \\sqrt{3 \\cdot \\frac{x^{2}}{3}} + 2 \\sqrt{3 \\cdot \\frac{y^{2}}{3}} + 2 \\sqrt{3 \\cdot \\frac{z^{2}}{3}} \\geq 2(x + y + z)\n\\end{gathered}\n$$\nEquality holds if $3 = \\frac{x^{2}}{3} = \\frac{y^{2}}{3} = \\frac{z^{2}}{3}$, i.e. $x = y = z = 3$, for which $x + y + z \\neq x y z$.\nSolution:\nIf one of the numbers is zero, then from $x + y + z = x y z$ all three numbers are zero and the equality trivially holds.\nFrom AM-GM $x^{2} + y^{2} + z^{2} \\geq 3 \\sqrt[3]{x^{2} y^{2} z^{2}} = 3 \\frac{x + y + z}{\\sqrt[3]{x y z}} \\geq 3 \\frac{x + y + z}{\\frac{x + y + z}{3}} = 9$\nFrom QM-AM $\\frac{x^{2} + y^{2} + z^{2}}{3} \\geq \\left(\\frac{x + y + z}{3}\\right)^{2}$\nMultiplying (1) and (2) we get $\\frac{\\left(x^{2} + y^{2} + z^{2}\\right)^{2}}{3} \\geq 9 \\frac{(x + y + z)^{2}}{9} = (x + y + z)^{2}$. By taking square root on both sides we deduce the stated inequality.\nEquality holds only when $x = y = z = \\sqrt{3}$ or $x = y = z = 0$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34414, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $a$, $b$, $c$ be positive real numbers. Prove that\n$$\n\\left(\\left(3 a^{2}+1\\right)^{2}+2\\left(1+\\frac{3}{b}\\right)^{2}\\right)\\left(\\left(3 b^{2}+1\\right)^{2}+2\\left(1+\\frac{3}{c}\\right)^{2}\\right)\\left(\\left(3 c^{2}+1\\right)^{2}+2\\left(1+\\frac{3}{a}\\right)^{2}\\right) \\geq 48^{3}\n$$\nWhen does equality hold?", "options": [], "answer": "Equality holds when a = b = c = 1.", "solution": "Solution:\nLet $x$ be a positive real number. By AM-GM we have $\\frac{1+x+x+x}{4} \\geq x^{\\frac{3}{4}}$, or equivalently $1+3 x \\geq 4 x^{\\frac{3}{4}}$. Using this inequality we obtain:\n$$\n\\left(3 a^{2}+1\\right)^{2} \\geq 16 a^{3} \\text{ and } 2\\left(1+\\frac{3}{b}\\right)^{2} \\geq 32 b^{-\\frac{3}{2}}\n$$\nMoreover, by inequality of arithmetic and geometric means we have\n$$\nf(a, b)=\\left(3 a^{2}+1\\right)^{2}+2\\left(1+\\frac{3}{b}\\right)^{2} \\geq 16 a^{3}+32 b^{-\\frac{3}{2}}=16\\left(a^{3}+b^{-\\frac{3}{2}}+b^{-\\frac{3}{2}}\\right) \\geq 48 \\frac{a}{b}\n$$\nTherefore, we obtain\n$$\nf(a, b) f(b, c) f(c, a) \\geq 48 \\cdot \\frac{a}{b} \\cdot 48 \\cdot \\frac{b}{c} \\cdot 48 \\cdot \\frac{c}{a}=48^{3}\n$$\nEquality holds only when $a=b=c=1$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34415, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $a$, $b$, $c$ be positive real numbers such that $a^{2} + b^{2} + c^{2} = 48$. Prove\n$$\na^{2} \\sqrt{2 b^{3} + 16} + b^{2} \\sqrt{2 c^{3} + 16} + c^{2} \\sqrt{2 a^{3} + 16} \\leq 24^{2}\n$$\nWhen does equality hold?", "options": [], "answer": "Equality holds when a = b = c = 4.", "solution": "Solution:\nObserve that $2x^{2} + 16 = 2(x^{2} + 8) = 2(x + 2)(x^{3} = 2x + 4)$. From AM-GM:\n$$\n\\sqrt{2x^{3} + 16} = \\sqrt{(2x + 4)(x^{3} - 2x + 4)} \\leq \\frac{2x + 4 + x^{3} - 2x + 4}{2} = \\frac{x^{2} + 8}{2}\n$$\nBy adding the inequality (1) obtained for $x = a$, $x = b$ and $x = c$ it suffices to prove:\n$$\na^{3} b^{3} + 8a^{3} + b^{3} c^{3} + 8b^{3} + c^{3} c^{3} + 8c^{3} \\leq 2 \\cdot 24^{3},\n$$\nSince $a^{3} b^{3} + b^{3} c^{3} + c^{3} a^{3} \\leq \\frac{\\left(a^{3} + b^{3} + c^{3}\\right)^{3}}{3}$, using $a^{3} + b^{2} + c^{2} = 48$, we get the stated inequality.\n\nEquality holds only when $a = b = c = 4$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34416, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $n$ be a positive integer, and let $x_{1}, \\ldots, x_{n}, y_{1}, \\ldots, y_{n}$ be positive real numbers such that $x_{1}+\\ldots+x_{n}=y_{1}+\\ldots+y_{n}=1$. Show that\n$$\n\\left|x_{1}-y_{1}\\right|+\\ldots+\\left|x_{n}-y_{n}\\right| \\leq 2-\\min_{1 \\leq i \\leq n} \\frac{x_{i}}{y_{i}}-\\min_{1 \\leq i \\leq n} \\frac{y_{i}}{x_{i}}\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\nUp to reordering the real numbers $x_{i}$ and $y_{i}$, we may assume that $\\frac{x_{1}}{y_{1}} \\leq \\ldots \\leq \\frac{x_{n}}{y_{n}}$. Let $A=\\frac{x_{1}}{y_{1}}$ and $B=\\frac{x_{n}}{y_{n}}$, and $S=\\left|x_{1}-y_{1}\\right|+\\ldots+\\left|x_{n}-y_{n}\\right|$. Our aim is to prove that $S \\leq 2-A-\\frac{1}{B}$.\n\nFirst, note that we cannot have $A>1$, since that would imply $x_{i}>y_{i}$ for all $i \\leq n$, hence $x_{1}+\\ldots+x_{n}>y_{1}+\\ldots+y_{n}$. Similarly, we cannot have $B<1$, since that would imply $x_{i} 2014$ routes between pairs of different cities that include no more than one intermediate stop (the direction of each route matters). Find the least possible $n$ and the least possible $r$ for that value of $n$.", "options": [], "answer": "n = 14; r = 2016", "solution": "Solution:\n\nDenote by $X_{1}, X_{2}, \\ldots, X_{n}$ the cities in the country and let $X_{i}$ be connected to exactly $m_{i}$ other cities by direct two-way airline. Then $X_{i}$ is a final destination of $m_{i}$ direct routes and an intermediate stop of $m_{i}(m_{i}-1)$ non-direct routes. Thus $r = m_{1}^{2} + \\ldots + m_{n}^{2}$. As each $m_{i}$ is at most $n-1$ and $13 \\cdot 12^{2} < 2014$, we deduce $n \\geq 14$.\n\nConsider $n = 14$. As each route appears in two opposite directions, $r$ is even, so $r \\geq 2016$. We can achieve $r = 2016$ by arranging the 14 cities uniformly on a circle and connect (by direct two-way airlines) all of them, except the diametrically opposite pairs. This way, there are exactly $14 \\cdot 12^{2} = 2016$ routes.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34419, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $A = 1 \\cdot 4 \\cdot 7 \\cdot \\ldots \\cdot 2014$ be the product of the numbers less or equal to $2014$ that give remainder $1$ when divided by $3$. Find the last non-zero digit of $A$.", "options": [], "answer": "2", "solution": "Solution:\nGrouping the elements of the product by ten we get:\n$$\n\\begin{aligned}\n& (30k+1)(30k+4)(30k+7)(30k+10)(30k+13)(30k+16) \\\\\n& (30k+19)(30k+22)(30k+25)(30k+28) = \\\\\n& = (30k+1)(15k+2)(30k+7)(120k+40)(30k+13)(15k+8) \\\\\n& (30k+19)(15k+11)(120k+100)(15k+14)\n\\end{aligned}\n$$\n(We divide all even numbers not divisible by five, by two and multiply all numbers divisible by five with four.)\nWe denote $P_k = (30k+1)(15k+2)(30k+7)(30k+13)(15k+8)(30k+19)(15k+11)(15k+14)$. For all the numbers not divisible by five, only the last digit affects the solution, since the power of two in the numbers divisible by five is greater than the power of five. Considering this, for even $k$, $P_k$ ends with the same digit as $1 \\cdot 2 \\cdot 7 \\cdot 3 \\cdot 8 \\cdot 9 \\cdot 1 \\cdot 4$, i.e. six and for odd $k$, $P_k$ ends with the same digit as $1 \\cdot 7 \\cdot 7 \\cdot 3 \\cdot 3 \\cdot 9 \\cdot 6 \\cdot 9$, i.e. six. Thus $P_0 P_1 \\ldots P_{66}$ ends with six. If we remove one zero from the end of all numbers divisible with five, we get that the last nonzero digit of the given product is the same as the one from $6 \\cdot 2011 \\cdot 2014 \\cdot 4 \\cdot 10 \\cdot 16 \\cdot \\ldots \\cdot 796 \\cdot 802$. Considering that $4 \\cdot 6 \\cdot 2 \\cdot 8$ ends with four and removing one zero from every fifth number we get that the last nonzero digit is the same as in $4 \\cdot 4^{26} \\cdot 784 \\cdot 796 \\cdot 802 \\cdot 1 \\cdot 4 \\cdot \\ldots \\cdot 76 \\cdot 79$. Repeating the process we did for the starting sequence we conclude that the last nonzero number will be the same as in $2 \\cdot 6 \\cdot 6 \\cdot 40 \\cdot 100 \\cdot 160 \\cdot 220 \\cdot 280 \\cdot 61 \\cdot 32 \\cdot 67 \\cdot 73 \\cdot 38 \\cdot 79$, which is two.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34420, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $ABC$ be a triangle with $\\measuredangle B = \\measuredangle C = 40^{\\circ}$. The bisector of the $\\measuredangle B$ meets $AC$ at the point $D$. Prove that $\\overline{BD} + \\overline{DA} = \\overline{BC}$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nSince $\\measuredangle BAC = 100^{\\circ}$ and $\\measuredangle BDC = 120^{\\circ}$ we have $\\overline{BD} < \\overline{BC}$. Let $E$ be the point on $\\overline{BC}$ such that $\\overline{BD} = \\overline{BE}$. Then $\\measuredangle DEC = 100^{\\circ}$ and $\\measuredangle EDC = 40^{\\circ}$, hence $\\overline{DE} = \\overline{EC}$, and $\\measuredangle BAC + \\measuredangle DEB = 180^{\\circ}$. So $A, B, E$ and $D$ are concyclic, implying $\\overline{AD} = \\overline{DE}$ (since $\\measuredangle ABD = \\measuredangle DBC = 20^{\\circ}$), which completes the proof.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34421, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nEach letter of the word OHRID corresponds to a different digit belonging to the set $\\{1,2,3,4,5\\}$. Decipher the equality $$(O+H+R+I+D)^2 : (O-H-R+I+D) = O^{H^{R^{I_{D}}}}.$$", "options": [], "answer": "O=5, H=2, R=1, and either I=3, D=4 or I=4, D=3", "solution": "Solution:\n\nSince $O$, $H$, $R$, $I$ and $D$ are distinct numbers from $\\{1,2,3,4,5\\}$, we have $O+H+R+I+D=15$ and $O-H-R+I+D=O+H+R+I+D-2(H+R)<15$. From this $O^{H^{R^{I^{D}}}}=\\frac{(O+H+R+I+D)^2}{O-H-R+I+D}=\\frac{225}{15-2(H+R)}$, hence $O^{H^{R^{I^{D}}}}>15$ and divides $225$, which is only possible for $O^{H^{R^{I^{D}}}}=25$ (must be a power of three or five). This implies that $O=5$, $H=2$ and $R=1$. It's easy to check that both $I=3$, $D=4$ and $I=4$, $D=3$ satisfy the stated equation.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34422, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind the integer solutions of the equation\n$$\nx^{2}=y^{2}\\left(x+y^{4}+2 y^{2}\\right)\n$$", "options": [], "answer": "[(0, 0), (12, 2), (12, -2), (-8, 2), (-8, -2)]", "solution": "Solution:\nIf $x=0$, then $y=0$ and conversely, if $y=0$, then $x=0$. It follows that $(x, y)=(0,0)$ is a solution of the problem. Assume $x \\neq 0$ and $y \\neq 0$ satisfy the equation. The equation can be transformed in the form $x^{2}-x y^{2}=y^{6}+2 y^{4}$. Then $4 x^{2}-4 x y^{2}+y^{4}=4 y^{6}+9 y^{4}$ and consequently $\\left(\\frac{2 x}{y^{2}}-1\\right)^{2}=4 y^{2}+9 \\quad$ (1). Obviously $\\frac{2 x}{y^{2}}-1$ is integer. From (1), we get that the numbers $\\frac{2 x}{y^{2}}-1,2 y$ and 3 are Pythagorean triplets. It follows that $\\frac{2 x}{y^{2}}-1= \\pm 5$ and $2 y= \\pm 4$. Therefore, $x=3 y^{2}$ or $x=-2 y^{2}$ and $y= \\pm 2$. Hence $(x, y)=(12,-2),(x, y)=(12,2),(x, y)=(-8,-2)$ and $(x, y)=(-8,2)$ are the possible solutions. By substituting them in the initial equation we verify that all the 4 pairs are solution. Thus, together with the couple $(x, y)=(0,0)$ the problem has 5 solutions.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34423, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nProve there are no integers $a$ and $b$ satisfying the following conditions:\ni) $16 a - 9 b$ is a prime number\n\nii) $a b$ is a perfect square\n\niii) $a + b$ is a perfect square", "options": [], "answer": "Detailed solution", "solution": "Solution:\nSuppose $a$ and $b$ be integers satisfying the given conditions. Let $p$ be a prime number, $n$ and $m$ be integers. Then we can write the conditions as follows:\n$$\n\\begin{aligned}\n& 16 a - 9 b = p \\\\\n& a b = n^2 \\\\\n& a + b = m^2\n\\end{aligned}\n$$\nMoreover, let $d = \\gcd(a, b)$ and $a = d x$, $b = d y$ for some relatively prime integers $x$ and $y$. Obviously $a \\neq 0$ and $b \\neq 0$, $a$ and $b$ are positive (by (2) and (3)).\nFrom (2) follows that $x$ and $y$ are perfect squares, say $x = l^2$ and $y = s^2$.\nFrom (1), $d \\mid p$ and hence $d = p$ or $d = 1$. If $d = p$, then $16 x - 9 y = 1$, and we obtain $x = 9 k + 4$, $y = 16 k + 7$ for some nonnegative integer $k$. But then $s^2 = y \\equiv 3 \\pmod{4}$, which is a contradiction.\nIf $d = 1$ then $16 l^2 - 9 s^2 = p \\Rightarrow (4 l - 3 s)(4 l + 3 s) = p \\Rightarrow (4 l + 3 s = p \\wedge 4 l - 3 s = 1)$.\nBy adding the last two equations we get $8 l = p + 1$ and by subtracting them we get $6 s = p - 1$. Therefore $p = 24 t + 7$ for some integer $t$ and $a = (3 t + 1)^2$ and $b = (4 t + 1)^2$ satisfy the conditions (1) and (2). By (3) we have $m^2 = (3 t + 1)^2 + (4 t + 1)^2 = 25 t^2 + 14 t + 2$, or equivalently $25 m^2 = (25 t + 7)^2 + 1$.\nSince the difference between two nonzero perfect squares cannot be $1$, we have a contradiction. As a result there is no solution.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34424, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all nonnegative integers $x, y, z$ such that\n$$\n2013^{x} + 2014^{y} = 2015^{z}\n$$", "options": [], "answer": "(0, 1, 1)", "solution": "Solution:\nClearly, $y > 0$, and $z > 0$. If $x = 0$ and $y = 1$, then $z = 1$ and $(x, y, z) = (0, 1, 1)$ is a solution.\n\nIf $x = 0$ and $y \\geq 2$, then modulo 4 we have $1 + 0 \\equiv (-1)^{z}$, hence $z$ is even ($z = 2z_{1}$ for some integer $z_{1}$). Then $2^{y} 1007^{y} = (2015^{z_{1}} - 1)(2015^{z_{1}} + 1)$, and since $\\gcd(1007, 2015^{z_{1}} + 1) = 1$ we obtain $2 \\cdot 1007^{y} \\mid 2015^{z_{1}} - 1$ and $2015^{z_{1}} + 1 \\mid 2^{y-1}$. From this we get $2015^{z_{1}} + 1 \\leq 2^{y-1} < 2 \\cdot 1007^{y} \\leq 2015^{z_{1}} - 1$, which is impossible.\n\nNow for $x > 0$, modulo 3 we get $0 + 1 \\equiv (-1)^{z}$, hence $z$ must be even ($z = 2z_{1}$ for some integer $z_{1}$). Modulo 2014 we get $(-1)^{x} + 0 \\equiv 1$, thus $x$ must be even ($x = 2x_{1}$ for some integer $x_{1}$). We transform the equation to $2^{y} 1007^{y} = (2015^{z_{1}} - 2013^{x_{1}})(2015^{z_{1}} + 2013^{x_{1}})$ and since $\\gcd(2015^{z_{1}} - 2013^{x_{1}}, 2015^{z_{1}} + 2013^{x_{1}}) = 2$, $1007^{y}$ divides $2015^{z_{1}} - 2013^{x_{1}}$ or $2015^{z_{1}} + 2013^{x_{1}}$ but not both.\n\nIf $1007^{y} \\mid 2015^{z_{1}} - 2013^{x_{1}}$, then $2015^{z_{1}} + 2013^{x_{1}} \\leq 2^{y} < 1007^{y} \\leq 2015^{z_{1}} - 2013^{x_{1}}$, which is impossible. Hence $1007 \\mid 2015^{z_{1}} + 2013^{x_{1}}$, and from $2015^{z_{1}} + 2013^{x_{1}} \\equiv 1 + (-1)^{x_{1}} \\pmod{1007}$, $x_{1}$ is odd ($x = 2x_{1} = 4x_{2} + 2$ for some integer $x_{2}$).\n\nNow modulo 5 we get $-1 + (-1)^{y} \\equiv (-2)^{4x_{2} + 2} + (-1)^{y} \\equiv 0$, hence $y$ must be even ($y = 2y_{1}$ for some integer $y_{1}$). Finally modulo 31, we have $(-2)^{4x_{2} + 2} + (-1)^{2y_{1}} \\equiv 0$ or $4^{2x_{2} + 1} \\equiv -1$. This is impossible since the remainders of the powers of 4 modulo 31 are 1, 2, 4, 8 and 16.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34425, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nVukasin, Dimitrije, Dusan, Stefan and Filip asked their professor to guess three consecutive positive integer numbers after they had told him these (true) sentences:\n\nVukasin: \"Sum of the digits of one of them is a prime number. Sum of the digits of some of the other two is an even perfect number ($n$ is perfect if $\\sigma(n) = 2n$). Sum of the digits of the remaining number is equal to the number of its positive divisors.\"\n\nDimitrije: \"Each of these three numbers has no more than two digits 1 in its decimal representation.\"\n\nDusan: \"If we add 11 to one of them, we obtain a square of an integer.\"\n\nStefan: \"Each of them has exactly one prime divisor less than 10.\"\n\nFilip: \"The 3 numbers are square-free.\"\n\nTheir professor gave the correct answer. Which numbers did he say?", "options": [], "answer": "2013, 2014, 2015", "solution": "Solution:\n\nLet the middle number be $n$, so the numbers are $n-1$, $n$ and $n+1$. Since $4$ does not divide any of them, $n \\equiv 2 \\pmod{4}$. Furthermore, neither $3$, $5$ nor $7$ divides $n$. Also $n+1+11 \\equiv 2 \\pmod{4}$ cannot be a square. Then $3$ must divide $n-1$ or $n+1$. If $n-1+11$ is a square, then $3 \\mid n+1$ which implies $3 \\mid n+10$ (a square), so $9 \\mid n+10$ hence $9 \\mid n+1$, which is impossible. Thus must be $n+11 = m^2$.\n\nFurther, $7$ does not divide $n-1$, nor $n+1$, because $1+11 \\equiv 5 \\pmod{7}$ and $-1+11 \\equiv 3 \\pmod{7}$ are quadratic nonresidues modulo $7$. This implies $5 \\mid n-1$ or $5 \\mid n+1$. Again, since $n+11$ is a square, it is impossible $5 \\mid n-1$, hence $5 \\mid n+1$ which implies $3 \\mid n-1$. This yields $n \\equiv 4 \\pmod{10}$ hence $S(n+1) = S(n) + 1 = S(n-1) + 2$ ($S(n)$ is sum of the digits of $n$).\n\nSince the three numbers are square-free, their numbers of positive divisors are powers of $2$. Thus, we have two even sums of digits - they must be $S(n-1)$ and $S(n+1)$, so $S(n)$ is prime. From $3 \\mid n-1$, follows $S(n-1)$ is an even perfect number, and $S(n+1) = 2^p$. Consequently $S(n) = 2^p - 1$ is a prime, so $p$ is a prime number. One easily verifies $p \\neq 2$, so $p$ is odd implying $3 \\mid 2^p - 2$. Then\n\n$\\sigma\\left(2^p - 2\\right) \\geq \\left(2^p - 2\\right)\\left(1 + \\frac{1}{2} + \\frac{1}{3} + \\frac{1}{6}\\right) = 2\\left(2^p - 2\\right)$. Since this number is perfect, $\\frac{2^p - 2}{6}$ must be one, i.e. $p = 3$ and $S(n-1) = 6$, $S(n) = 7$ and $S(n+1) = 8$.\n\nSince $4$ does not divide $n$, the $2$-digit ending of $n$ must be $14$ or $34$. But $n = 34$ is impossible, since $n+11 = 45$ is not a square. Hence, $n = 10^a + 10^b + 14$ with $a \\geq b \\geq 2$. If $a \\neq b$, then $n$ has three digits $1$ in its decimal representation, which is impossible. Therefore $a = b$, and $n = 2 \\cdot 10^a + 14$. Now, $2 \\cdot 10^a + 25 = m^2$, hence $5 \\mid m$, say $m = 5t$, and $(t-1)(t+1) = 2^{a+1} 5^{a-2}$. Because $\\gcd(t-1, t+1) = 2$ there are three possibilities:\n\n1) $t-1 = 2$, $t+1 = 2^a 5^{a-2}$, which implies $a = 2$, $t = 3$;\n2) $t-1 = 2^a$, $t+1 = 2 \\cdot 5^{a-2}$, so $2^a + 2 = 2 \\cdot 5^{a-2}$, which implies $a = 3$, $t = 9$;\n3) $t-1 = 2 \\cdot 5^{a-2}$, $t+1 = 2^a$, so $2 \\cdot 5^{a-2} + 2 = 2^a$, which implies $a = 2$, $t = 3$, same as case 1.\n\nFrom the only two possibilities $(n-1, n, n+1) = (213, 214, 215)$ and $(n-1, n, n+1) = (2013, 2014, 2015)$ the first one is not possible, because $S(215) = 8$ and $\\tau(215) = 4$. By checking the conditions, we conclude that the latter is a solution, so the professor said the numbers: $2013$, $2014$, $2015$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34426, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $x, y, z$ be real numbers, satisfying the relations\n$$\n\\left\\{\\begin{array}{l}\nx \\geq 20 \\\\\ny \\geq 40 \\\\\nz \\geq 1675 \\\\\nx+y+z=2015\n\\end{array}\\right.\n$$\nFind the greatest value of the product $P = x \\cdot y \\cdot z$.", "options": [], "answer": "48407500", "solution": "Solution:\nBy virtue of $z \\geq 1675$ we have\n$$\ny+z<2015 \\Leftrightarrow y<2015-z \\leq 2015-1675<1675\n$$\nIt follows that $(1675-y) \\cdot (1675-z) \\leq 0 \\Leftrightarrow y \\cdot z \\leq 1675 \\cdot (y+z-1675)$.\nBy using the inequality $u \\cdot v \\leq \\left(\\frac{u+v}{2}\\right)^2$ for all real numbers $u, v$ we obtain\n$$\n\\begin{gathered}\nP = x \\cdot y \\cdot z \\leq 1675 \\cdot x \\cdot (y+z-1675) \\leq 1675 \\cdot \\left(\\frac{x+y+z-1675}{2}\\right)^2 = \\\\\n1675 \\cdot \\left(\\frac{2015-1675}{2}\\right)^2 = 1675 \\cdot 170^2 = 48407500\n\\end{gathered}\n$$\n$$\n\\text{We have } P = x \\cdot y \\cdot z = 48407500 \\Leftrightarrow \\left\\{\\begin{array}{l}\nx + y + z = 2015, \\\\\nz = 1675, \\\\\nx = y + z - 1675\n\\end{array}\\right. \\Leftrightarrow \\left\\{\\begin{array}{l}\nx = 170 \\\\\ny = 170 \\\\\nz = 1675\n\\end{array}\\right.\n$$\nSo, the greatest value of the product is $P = x \\cdot y \\cdot z = 48407500$.\n\nLet $S = \\{(x, y, z) \\mid x \\geq 20, y \\geq 40, z \\geq 1675, x+y+z=2015\\}$ and $\\Pi = \\{|x \\cdot y \\cdot z| \\mid (x, y, z) \\in S\\}$. We have to find the biggest element of $\\Pi$. By using the given inequalities we obtain:\n$$\n\\left\\{\\begin{array}{l}\n20 \\leq x \\leq 300 \\\\\n40 \\leq y \\leq 320 \\\\\n1675 \\leq z \\leq 1955 \\\\\ny < 1000 < z\n\\end{array}\\right.\n$$\nLet $z = 1675 + d$. Since $x \\leq 300$ so $(1675 + d) \\cdot x = 1675 x + d x \\leq 1675 x + 1675 d = 1675 \\cdot (x + d)$. That means that if $(x, y, 1675 + d) \\in S$ then $(x + d, y, 1675) \\in S$, and $x \\cdot y \\cdot (1675 + d) \\leq (x + d) \\cdot y \\cdot 1675$. Therefore $z = 1675$ must be for the greatest product.\nFurthermore, $x \\cdot y \\leq \\left(\\frac{x+y}{2}\\right)^2 = \\left(\\frac{2015-1675}{2}\\right)^2 = \\left(\\frac{340}{2}\\right)^2 = 170^2$. Since $(170, 170, 1675) \\in S$ that means that the biggest element of $\\Pi$ is $170 \\cdot 170 \\cdot 1675 = 48407500$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34427, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nIf $x^{3}-3 \\sqrt{3} x^{2}+9 x-3 \\sqrt{3}-64=0$, find the value of $x^{6}-8 x^{5}+13 x^{4}-5 x^{3}+49 x^{2}-137 x+2015$.", "options": [], "answer": "1898", "solution": "Solution:\n$x^{3}-3 \\sqrt{3} x^{2}+9 x-3 \\sqrt{3}-64=0 \\Leftrightarrow (x-\\sqrt{3})^{3}=64 \\Leftrightarrow (x-\\sqrt{3})=4 \\Leftrightarrow x-4=\\sqrt{3} \\Leftrightarrow x^{2}-8 x+16=3 \\Leftrightarrow x^{2}-8 x+13=0$\n\n$x^{6}-8 x^{5}+13 x^{4}-5 x^{3}+49 x^{2}-137 x+2015=\\left(x^{2}-8 x+13\\right)\\left(x^{4}-5 x+9\\right)+1898=0+1898=1898$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34428, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $a$, $b$, $c$ be positive real numbers. Prove that\n$$\n\\frac{a}{b}+\\sqrt{\\frac{b}{c}}+\\sqrt[3]{\\frac{c}{a}}>2\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\nStarting from the double expression on the left-hand side of given inequality, and applying twice the Arithmetic-Geometric mean inequality, we find that\n$$\n\\begin{aligned}\n2 \\frac{a}{b}+2 \\sqrt{\\frac{b}{c}}+2 \\sqrt[3]{\\frac{c}{a}} & =\\frac{a}{b}+\\left(\\frac{a}{b}+\\sqrt{\\frac{b}{c}}+\\sqrt{\\frac{b}{c}}\\right)+2 \\sqrt[3]{\\frac{c}{a}} \\\\\n& \\geq \\frac{a}{b}+3 \\sqrt[3]{\\frac{a}{b}} \\sqrt{\\frac{b}{c}} \\sqrt{\\frac{b}{c}}+2 \\sqrt[3]{\\frac{c}{a}} \\\\\n& =\\frac{a}{b}+3 \\sqrt[3]{\\frac{a}{c}}+2 \\sqrt[3]{\\frac{c}{a}} \\\\\n& \\left.=\\frac{a}{b}+\\sqrt[3]{\\frac{a}{c}}+2 \\sqrt[3]{\\frac{a}{c}}+\\sqrt[3]{\\frac{c}{a}}\\right) \\\\\n& \\geq \\frac{a}{b}+\\sqrt[3]{\\frac{a}{c}}+2 \\cdot 2 \\sqrt{\\sqrt[3]{\\frac{a}{c}} \\sqrt[3]{\\frac{c}{a}}} \\\\\n& =\\frac{a}{b}+\\sqrt[3]{\\frac{a}{c}}+4 \\\\\n& >4\n\\end{aligned}\n$$\nwhich yields the given inequality.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34429, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $x$, $y$, $z$ be positive real numbers that satisfy the equality $x^{2}+y^{2}+z^{2}=3$. Prove that\n$$\n\\frac{x^{2}+y z}{x^{2}+y z+1}+\\frac{y^{2}+z x}{y^{2}+z x+1}+\\frac{z^{2}+x y}{z^{2}+x y+1} \\leq 2\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\nWe have\n$$\n\\begin{aligned}\n& \\frac{x^{2}+y z}{x^{2}+y z+1}+\\frac{y^{2}+z x}{y^{2}+z x+1}+\\frac{z^{2}+x y}{z^{2}+x y+1} \\leq 2 \\Leftrightarrow \\\\\n& \\frac{x^{2}+y z+1}{x^{2}+y z+1}+\\frac{y^{2}+z x+1}{y^{2}+z x+1}+\\frac{z^{2}+x y+1}{z^{2}+x y+1} \\leq 2+\\frac{1}{x^{2}+y z+1}+\\frac{1}{y^{2}+z x+1}+\\frac{1}{z^{2}+x y+1} \\Leftrightarrow \\\\\n& 3 \\leq 2+\\frac{1}{x^{2}+y z+1}+\\frac{1}{y^{2}+z x+1}+\\frac{1}{z^{2}+x y+1} \\Leftrightarrow \\\\\n& 1 \\leq \\frac{1}{x^{2}+y z+1}+\\frac{1}{y^{2}+z x+1}+\\frac{1}{z^{2}+x y+1} \\\\\n& \\frac{1}{x^{2}+y z+1}+\\frac{1}{y^{2}+z x+1}+\\frac{1}{z^{2}+x y+1} \\geq \\frac{9}{x^{2}+y z+1+y^{2}+z x+1+z^{2}+x y+1}= \\\\\n& \\frac{9}{x^{2}+y^{2}+z^{2}+x y+y z+z x+3} \\geq \\frac{9}{2 x^{2}+y^{2}+z^{2}+3}=1\n\\end{aligned}\n$$\nThe first inequality: AM-GM inequality (also can be achieved with Cauchy-Bunjakowski-Schwarz inequality). The second inequality: $x y+y z+z x \\leq x^{2}+y^{2}+z^{2}$ (there are more ways to prove it, AM-GM, full squares etc.)", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34430, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nA board $n \\times n$ ($n \\geq 3$) is divided into $n^{2}$ unit squares. Integers from $0$ to $n$ inclusive are written down: one integer in each unit square, in such a way that the sums of integers in each $2 \\times 2$ square of the board are different. Find all $n$ for which such boards exist.", "options": [], "answer": "n = 3, 4, 5, 6", "solution": "Solution:\nThe number of the $2 \\times 2$ squares in a board $n \\times n$ is equal to $(n-1)^{2}$. All possible sums of the numbers in such squares are $0, 1, \\ldots, 4n$. A necessary condition for the existence of a board with the required property is $4n + 1 \\geq (n-1)^{2}$ and consequently $n(n-6) \\leq 0$. Thus $n \\leq 6$. The examples show the existence of boards $n \\times n$ for all $3 \\leq n \\leq 6$.\n\n![](attached_image_1.png)\n\n| 6 | 6 | 6 | 6 | 5 | 5 |\n| :--- | :--- | :--- | :--- | :--- | :--- |\n| 6 | 6 | 5 | 5 | 5 | 5 |\n| 1 | 2 | 3 | 4 | 4 | 5 |\n| 3 | 5 | 0 | 5 | 0 | 5 |\n| 1 | 0 | 2 | 1 | 0 | 0 |\n| 1 | 0 | 1 | 0 | 0 | 0 |", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34431, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\n2015 points are given in a plane such that from any five points we can choose two points with distance less than 1 unit. Prove that 504 of the given points lie on a unit disc.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nStart from an arbitrary point $A$ and draw a unit disc with center $A$. If all other points belong to this disc then we are done. Otherwise, take any point $B$ outside of the disc. Draw a unit disc with center $B$. If two drawn discs cover all 2015 points, by the pigeonhole principle (PHP), one of the discs contains at least 1008 points.\n\nSuppose that there is a point $C$ outside of the two drawn discs. Draw a unit disc with center $C$. If three drawn discs cover all 2015 points, by PHP, one of the discs contains at least 672 points.\n\nFinally, if there is a point $D$ outside of the three drawn discs, draw a unit disc with center $D$. By the given condition, any other point belongs to one of the four drawn discs. By PHP, one of the discs contains at least 504 points, concluding the solution.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34432, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nPositive integers are put into the following table\n\n| 1 | 3 | 6 | 10 | 15 | 21 | 28 | 36 | | |\n| ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: |\n| 2 | 5 | 9 | 14 | 20 | 27 | 35 | 44 | | |\n| 4 | 8 | 13 | 19 | 26 | 34 | 43 | 53 | | |\n| 7 | 12 | 18 | 25 | 33 | 42 | | | | |\n| 11 | 17 | 24 | 32 | 41 | | | | | |\n| 16 | 23 | | | | | | | | |\n| \\ldots | | | | | | | | | |\n| \\ldots | | | | | | | | | |\n\nFind the number of the line and column where the number 2015 stays.", "options": [], "answer": "row 2, column 62", "solution": "Solution:\n\nWe shall observe straight lines as on the next picture. We can call these lines diagonals.\n\n| 1 | 3 | 6 | 10 | 15 | 21 | 28 | 36 | |\n| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |\n| 2 | 5 | 9 | 14 | 20 | 27 | 35 | 44 | |\n| 4 | 8 | 13 | 19 | 26 | 34 | 43 | 53 | |\n| 7 | 12 | 18 | 25 | 33 | 42 | | | |\n| 11 | 17 | 24 | 32 | 41 | | | | |\n\n![](attached_image_1.png)\n\nOn the first diagonal is number $1$.\nOn the second diagonal are two numbers: $2$ and $3$.\nOn the third diagonal are three numbers: $4$, $5$ and $6$.\nOn the $n$-th diagonal are $n$ numbers. These numbers are greater than $\\frac{(n-1)n}{2}$ and not greater than $\\frac{n(n+1)}{2}$.\nOn the first $n$ diagonals are $1+2+3+\\ldots+n=\\frac{n(n+1)}{2}$ numbers.\nIf $m$ is in the $k$-th row, $l$-th column and on the $n$-th diagonal, then it is $m=\\frac{(n-1)n}{2}+l$ and $n+1=k+l$. So, $m=\\frac{(k+l-2)(k+l-1)}{2}+l$.\nWe have to find such numbers $n$, $k$ and $l$ for which:\n$$\n\\begin{gathered}\n\\frac{(n-1)n}{2}<2015 \\leq \\frac{n(n+1)}{2} \\\\\nn+1=k+l \\\\\n2015=\\frac{(k+l-2)(k+l-1)}{2}+l\n\\end{gathered}\n$$\nFrom (1), (2), (3):\n$$\nn^2-n<4030 \\leq n^2+n \\implies n=63,\\ k+l=64,\\ 2015=\\frac{(64-2)(64-1)}{2}+l\n$$\nSo $2015=2016+l$ so $l=2015-2016=-1$ (but this is not possible, so check calculation).\nActually, $\\frac{(64-2)(64-1)}{2}=2016$, so $l=2015-2016=-1$.\nBut $\\frac{(63)(62)}{2}=1953$, $\\frac{64\\cdot 63}{2}=2016$.\nSo $2015=1953+l$, $l=2015-1953=62$.\nSo $k+l=64$, $l=62$, so $k=2$.\n\nTherefore, $2015$ is located in the second row and $62$-th column.\n\n\nFirstly, we can see that the first elements of the columns are triangular numbers. If $a_{i}$ is the first element of the line $i$, we have $a_{i}=\\frac{i(i-1)}{2}$.\nThe second element of the first row is obtained by adding to the first element $2$.\nThe second element of the second row is obtained by adding to the first element $3$.\nAnd so on, then the second element on the $n$-th row is obtained by adding to the first element $n+1$.\nThen the third element of the $n$-th row is obtained by adding $n+2$, and the $k$-th element of it is obtained by adding $k$.\nSince the first element of the $n$-th row is $\\frac{(n-1)n}{2}+1$, the second one is $\\frac{(n-1)n}{2}+1+(n+1)=\\frac{n(n+1)}{2}+2$.\nThe third one $\\frac{n(n+1)}{2}+1+(n+2)=\\frac{(n+1)(n+2)}{2}+3$, so the $k$-th one should be $\\frac{(n+k-2)(n+k-1)}{2}+k$.\n\n$$\n\\frac{(n+k-2)(n+k-1)}{2}+k=2015 \\Leftrightarrow n^2+n(2k-3)+k^2-k-4028=0\n$$\nTo have a positive integer solution, $(2k-3)^2-4\\left(k^2-k-4028\\right)=16121-8k$ must be a perfect square.\nFrom $16121-8k=x^2$, it is noticed that the maximum of $x$ is $126$ (since $k>0$).\nSimultaneously, $x$ is odd, so $x\\leq 125$.\n$16121-8k=x^2 \\Leftrightarrow 125^2+496-8k=x^2$\nSo $496-8k=0$, from that $k=62$.\nFrom that we can find $n=2$.\nSo $2015$ is located on the second row and $62$-th column.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34433, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $n \\geq 1$ be a positive integer. A square of side length $n$ is divided by lines parallel to each side into $n^{2}$ squares of side length $1$. Find the number of parallelograms which have vertices among the vertices of the $n^{2}$ squares of side length $1$, with both sides smaller or equal to $2$, and which have the area equal to $2$.", "options": [], "answer": "7n^2 - 12n + 1", "solution": "Solution:\nWe can divide all these parallelograms into 7 classes (types I-VII), according to Figure.\n\n![](attached_image_1.png)\n\nType 1: There are $n$ ways to choose the strip for the horizontal (shorter) side of the parallelogram, and $(n-1)$ ways to choose the strip (of the width $2$) for the vertical (longer) side. So there are $n(n-1)$ parallelograms of the type I.\n\nType II: There are $(n-1)$ ways to choose the strip (of the width $2$) for the horizontal (longer) side, and $n$ ways to choose the strip for the vertical (shorter) side. So the number of the parallelogram of this type is also $n(n-1)$.\n\nType III: Each parallelogram of this type is a square inscribed in a unique square $2 \\times 2$ of our grid. The number of such squares is $(n-1)^{2}$. So there are $(n-1)^{2}$ parallelograms of type III.\n\nFor each of the types IV, V, VI, VII, the strip of the width $1$ in which the parallelogram is located can be chosen in $n$ ways and for each such choice there are $n-2$ parallelograms located in the chosen strip.\n\nSumming we obtain that the total number of parallelograms is:\n$$\n2 n(n-1)+(n-1)^{2}+4 n(n-2)=7 n^{2}-12 n+1\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34434, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nWe have a $5 \\times 5$ chessboard and a supply of $\\{L\\}$-shaped triominoes, i.e. $2 \\times 2$ squares with one corner missing. Two players $A$ and $B$ play the following game: A positive integer $k \\leq 25$ is chosen. Starting with $A$, the players take alternating turns marking squares of the chessboard until they mark a total of $k$ squares. (In each turn a player has to mark exactly one new square.)\n\nAt the end of the process, player $A$ wins if he can cover without overlapping all but at most 2 unmarked squares with $\\{L\\}$-shaped triominoes, otherwise player $\\boldsymbol{B}$ wins. It is not permitted any marked squares to be covered.\n\nFind the smallest $\\boldsymbol{k}$, if it exists, such that player $\\boldsymbol{B}$ has a winning strategy.", "options": [], "answer": "4", "solution": "Solution:\n\nWe will show that player $A$ wins if $k=1,2$ or $3$, but player $B$ wins if $k=4$. Thus the smallest $k$ for which $B$ has a winning strategy exists and is equal to $4$.\n\nIf $k=1$, player $A$ marks the upper left corner of the square and then fills it as follows.\n\n![](attached_image_1.png)\n\nIf $k=2$, player $A$ marks the upper left corner of the square. Whatever square player $B$ marks, then player $A$ can fill in the square in exactly the same pattern as above except that he doesn't put the triomino which covers the marked square of $B$. Player $A$ wins because he has left only two unmarked squares uncovered.\n\nFor $k=3$, player $A$ wins by following the same strategy. When he has to mark a square for the second time, he marks any yet unmarked square of the triomino that covers the marked square of $B$.\n\nLet us now show that for $k=4$ player $B$ has a winning strategy. Since there will be $21$ unmarked squares, player $A$ will need to cover all of them with seven $L$-shaped triominoes. We can assume that in his first move, player $A$ does not mark any square in the bottom two rows of the chessboard (otherwise just rotate the chessboard). In his first move player $B$ marks the square labeled $1$ in the following figure.\n\n![](attached_image_2.png)\n\nIf player $A$ in his next move does not mark any of the squares labeled $2,3$ and $4$ then player $B$ marks the square labeled $3$. Player $B$ wins as the square labeled $2$ is left unmarked but cannot be covered with an $L$-shaped triomino.\n\nIf player $A$ in his next move marks the square labeled $2$, then player $B$ marks the square labeled $5$. Player $B$ wins as the square labeled $3$ is left unmarked but cannot be covered with an $L$-shaped triomino.\n\nFinally, if player $A$ in his next move marks one of the squares labeled $3$ or $4$, player $B$ marks the other of these two squares. Player $B$ wins as the square labeled $2$ is left unmarked but cannot be covered with an $L$-shaped triomino.\n\nSince we have covered all possible cases, player $B$ wins when $k=4$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34435, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAround the triangle $A B C$ the circle is circumscribed, and at the vertex $C$ tangent $t$ to this circle is drawn. The line $p$ which is parallel to this tangent intersects the lines $B C$ and $A C$ at the points $D$ and $E$, respectively. Prove that the points $A, B, D, E$ belong to the same circle.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nLet $O$ be the center of a circumscribed circle $k$ of the triangle $A B C$, and let $F$ and $G$ be the points of intersection of the line $C O$ with the line $p$ and the circle $k$, respectively (see Figure).\n\nFrom $p \\parallel t$ it follows that $p \\perp C O$.\n\nFurthermore, $\\angle A B C = \\angle A G C$, because these angles are peripheral over the same chord.\n\nThe quadrilateral $A G F E$ has two right angles at the vertices $A$ and $F$, and hence, $\\angle A E D + \\angle A B D = \\angle A E F + \\angle A G F = 180^{\\circ}$.\n\nHence, the quadrilateral $A B D E$ is cyclic, as asserted.\n\n![](attached_image_1.png)", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 34436, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nThe point $P$ is outside of the circle $\\Omega$. Two tangent lines, passing from the point $P$, touch the circle $\\Omega$ at the points $A$ and $B$. The median $A M$, $M \\in (B P)$, intersects the circle $\\Omega$ at the point $C$ and the line $P C$ intersects again the circle $\\Omega$ at the point $D$. Prove that the lines $A D$ and $B P$ are parallel.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nSince $\\angle B A C = \\angle B A M = \\angle M B C$, we have $\\triangle M A B \\cong \\triangle M B C$.\n\n![](attached_image_1.png)\n\nWe obtain $\\frac{M A}{M B} = \\frac{M B}{M C} = \\frac{A B}{B C}$. The equality $\\quad M B = M P$ implies $\\frac{M A}{M P} = \\frac{M P}{M C}$ and $\\angle P M C \\equiv \\angle P M A$ gives the relation $\\triangle P M A \\cong \\triangle C M P$. It follows that $\\angle B P D \\equiv \\angle M P C \\equiv \\angle M A P \\equiv \\angle C A P \\equiv \\angle C D A \\equiv \\angle P D A$. So, the lines $A D$ and $B P$ are parallel.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34437, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $c \\equiv c(O, K)$ be a circle with center $O$ and radius $R$ and $A, B$ be two points on it, not belonging to the same diameter. The bisector of the angle $A \\hat{B} O$ intersects the circle $c$ at point $C$, the circumcircle of the triangle $A O B$, say $^{c_{1}}$ at point $K$ and the circumcircle of the triangle $A O C$, say $^{c_{2}}$, at point $L$. Prove that the point $K$ is the circumcenter of the triangle $A O C$ and the point $L$ is the incenter of the triangle $A O B$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nThe segments $O B, O C$ are equal, as radii of the circle $^{c}$. Hence $O B C$ is an isosceles triangle and\n$$\n\\hat{B}_{1}=\\hat{C}_{1}=\\hat{x}\n$$\n\n![](attached_image_1.png)\n\nThe chord $B C$ is the bisector of the angle $O \\hat{B} A$, and hence\n$$\n\\hat{B}_{1}=\\hat{B}_{2}=\\hat{x}\n$$\nThe angles $\\hat{B}_{2}$ and $\\hat{O}_{1}$ are inscribed to the same arc $O K$ of the circle $^{c_{1}}$ and hence\n$$\n\\hat{B}_{2}=\\hat{O}_{1}=\\hat{x}\n$$\n\nThe segments $K O, K C$ are equal, as radii of the circle $^{c_{2}}$. Hence the triangle $K O C$ is isosceles and so\n$$\n\\hat{O}_{2}=\\hat{C}_{1}=\\hat{x}\n$$\nFrom equalities $(1),(2),(3)$ we conclude that\n$$\n\\hat{O}_{1}=\\hat{O}_{2}=\\hat{x}\n$$\nand so $O K$ is the bisector, and hence perpendicular bisector of the isosceles triangle $O A C$. The point $K$ is the middle of the arc $O K$ (since $B K$ bisects the angle $O \\hat{B} A$). Hence the perpendicular bisector of the chord $A O$ of the circle $^{c_{1}}$ is passing through point $K$. It means that $K$ is the circumcenter of the triangle $O A C$.\n\nFrom equalities (1),(2),(3) we conclude that $\\hat{B}_{2}=\\hat{C}_{1}=\\hat{x}$ and so $A B \\parallel O C \\Rightarrow O \\hat{A} B=A \\hat{O} C$, that is $\\hat{A}_{1}+\\hat{A}_{2}=\\hat{O}_{1}+\\hat{O}_{2}$ and since $\\hat{O}_{1}=\\hat{O}_{2}=\\hat{x}$, we conclude that\n$$\n\\hat{A}_{1}+\\hat{A}_{2}=2 \\hat{O}_{1}=2 \\hat{x}\n$$\nThe angles $\\hat{A}_{1}$ and $\\hat{C}_{1}$ are inscribed into the circle $^{c_{2}}$ and correspond to the same arc $O L$. Hence\n$$\n\\hat{A}_{1}=\\hat{C}_{1}=\\hat{x}\n$$\nFrom (5) and (6) we have $\\hat{A}_{1}=\\hat{A}_{2}$, i.e. $A L$ is the bisector of the angle $B \\hat{A} O$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34438, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $\\triangle ABC$ be an acute triangle. The lines $(\\varepsilon_{1}),(\\varepsilon_{2})$ are perpendicular to $AB$ at the points $A$, $B$, respectively. The perpendicular lines from the midpoint $M$ of $AB$ to the sides of the triangle $AC; BC$ intersect the lines $(\\varepsilon_{1}),(\\varepsilon_{2})$ at the points $E, F$, respectively. If $I$ is the intersection point of $EF, MC$, prove that\n$$\n\\angle AIB = \\angle EMF = \\angle CAB + \\angle CBA\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nLet $H, G$ be the points of intersection of $ME, MF$, with $AC, BC$ respectively. From the similarity of triangles $\\triangle MHA$ and $\\triangle MAE$ we get\n$$\n\\frac{MH}{MA} = \\frac{MA}{ME}\n$$\nthus, $MA^{2} = MH \\cdot ME$\n\nSimilarly, from the similarity of triangles $\\triangle MBG$ and $\\triangle MFB$ we get\n$$\n\\frac{MB}{MF} = \\frac{MG}{MB}\n$$\nthus, $MB^{2} = MF \\cdot MG$\n\nSince $MA = MB$, from (1), (2), we have that the points $E, H, G, F$ are concyclic.\n\n![](attached_image_1.png)\n\nTherefore, we get that $\\angle FEH = \\angle FEM = \\angle HGM$. Also, the quadrilateral $CHMG$ is cyclic, so $\\angle CMH = \\angle HGC$. We have\n$$\n\\angle FEH + \\angle CMH = \\angle HGM + \\angle HGC = 90^{\\circ}\n$$\nThus $CM \\perp EF$. Now, from the cyclic quadrilaterals $FIMB$ and $EIMA$, we get that $\\angle IFM = \\angle IBM$ and $\\angle IEM = \\angle IAM$. Therefore, the triangles $\\triangle EMF$ and $\\triangle AIB$ are similar, so $\\angle AIB = \\angle EMF$. Finally\n$$\n\\angle AIB = \\angle AIM + \\angle MIB = \\angle AEM + \\angle MFB = \\angle CAB + \\angle CBA\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34439, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nWhat is the greatest number of integers that can be selected from a set of 2015 consecutive numbers so that no sum of any two selected numbers is divisible by their difference?", "options": [], "answer": "672", "solution": "Solution:\nWe take any two chosen numbers. If their difference is $1$, it is clear that their sum is divisible by their difference. If their difference is $2$, they will be of the same parity, and their sum is divisible by their difference. Therefore, the difference between any chosen numbers will be at least $3$. In other words, we can choose at most one number of any three consecutive numbers. This implies that we can choose at most $672$ numbers.\n\nNow, we will show that we can choose $672$ such numbers from any $2015$ consecutive numbers. Suppose that these numbers are $a, a+1, \\ldots, a+2014$. If $a$ is divisible by $3$, we can choose $a+1, a+4, \\ldots, a+2014$. If $a$ is not divisible by $3$, we can choose $a, a+3, \\ldots, a+2013$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34440, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nA positive integer is called a repunit, if it is written only by ones. The repunit with $n$ digits will be denoted by $\\underbrace{11 \\ldots 1}_{n}$. Prove that:\n\na) the repunit $\\underbrace{11 \\ldots 1}_{n}$ is divisible by 37 if and only if $n$ is divisible by 3 ;\n\nb) there exists a positive integer $k$ such that the repunit $\\underbrace{11 \\ldots 1}_{n}$ is divisible by 41 if and only if $n$ is divisible by $k$.", "options": [], "answer": "a) divisible by thirty-seven if and only if n is a multiple of three; b) k = 5", "solution": "Solution:\n\na) Let $n = 3m + r$, where $m$ and $r$ are non-negative integers and $r < 3$.\nDenote by $\\underbrace{00 \\ldots 0}_{p}$ a recording with $p$ zeroes and $\\underbrace{abcabc \\ldots abc}_{p}$ a recording with $p$ times $abc$. We have:\n$$\n\\underbrace{11 \\ldots 1}_{n} = \\underbrace{11 \\ldots 1}_{3m + r} = \\underbrace{11 \\ldots 1}_{3m} \\cdot \\underbrace{00 \\ldots 0}_{r} + \\underbrace{11 \\ldots 1}_{r} = 111 \\cdot \\underbrace{100100 \\ldots 100}_{m-1} + \\underbrace{11 \\ldots 1}_{r}.\n$$\nSince $111 = 37 \\cdot 3$, the numbers $\\underbrace{11 \\ldots 1}_{n}$ and $\\underbrace{11 \\ldots 1}_{r}$ are equal modulo 37. On the other hand, the numbers 1 and 11 are not divisible by 37. We conclude that $\\underbrace{11 \\ldots 1}_{n}$ is divisible by 37 if and only if $r = 0$, i.e., if and only if $n$ is divisible by 3.\n\n\nb) Using the idea from a), we look for a repunit which is divisible by 41. Obviously, 1 and 11 are not divisible by 41, while the residues of 111 and 1111 are 29 and 4, respectively. We have $11111 = 41 \\cdot 271$. Since 11111 is a repunit with 5 digits, it follows in the same way as in a) that $\\underbrace{11 \\ldots 1}_{n}$ is divisible by 41 if and only if $n$ is divisible by 5.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34441, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDoes there exist positive integers $a$, $b$ and a prime $p$ such that\n$$\na^{3}-b^{3}=4 p^{2} ?\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nThe given equality may be written as\n$$\n(a-b)\\left(a^{2}+a b+b^{2}\\right)=4 p^{2}\n$$\nSince $a-b3$ and $3^{2} \\equiv 0(\\bmod 3)$, it follows that the congruence (5) is not satisfied for any odd prime $p$.\n\nIf $a-b=4$, then substituting $a=b+4$ in (1) we obtain\n$$\n3 b^{2}+12 b+16=p^{2}\n$$\nwhence it follows that $b$ is an odd integer such that\n$$\n3 b^{2} \\equiv p^{2}(\\bmod 4)\n$$\nwhence since $p^{2} \\equiv 1(\\bmod 4)$ for each odd prime $p$, we have\n$$\n3 b^{2} \\equiv 1(\\bmod 4)\n$$\nHowever, since $b^{2} \\equiv 1(\\bmod 4)$ for each odd integer $b$, it follows that the congruence (6) is not satisfied for any odd integer $b$.\n\nIf $a-b=p$, then substituting $a=b+p$ in (1) we obtain\n$$\np\\left(3 b^{2}+3 b p+p^{2}-4 p\\right)=0\n$$\ni.e.,\n(7)\n$$\n3 b^{2}+3 b p+p^{2}-4 p=0\n$$\nIf $p \\geq 5$, then $p^{2}-4 p>0$, and thus (7) cannot be satisfied for any positive integer $b$. If $p=3$, then $(7)$ becomes\n$$\n3\\left(b^{2}+3 b-1\\right)=0\n$$\nwhich is obviously not satisfied for any positive integer $b$.\n\nHence, there does not exist positive integers $a$, $b$ and a prime $p$ such that $a^{3}-b^{3}=4 p^{2}$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34442, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $a, b, c$ be positive real numbers such that $a b c=8$. Prove that\n$$\n\\frac{a b+4}{a+2}+\\frac{b c+4}{b+2}+\\frac{c a+4}{c+2} \\geq 6\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\nWe have $a b+4=\\frac{8}{c}+4=\\frac{4(c+2)}{c}$ and similarly $b c+4=\\frac{4(a+2)}{a}$ and $c a+4=\\frac{4(b+2)}{b}$. It follows that\n$$\n(a b+4)(b c+4)(c a+4)=\\frac{64}{a b c}(a+2)(b+2)(c+2)=8(a+2)(b+2)(c+2)\n$$\nso that\n$$\n\\frac{(a b+4)(b c+4)(c a+4)}{(a+2)(b+2)(c+2)}=8\n$$\nApplying AM-GM, we conclude:\n$$\n\\frac{a b+4}{a+2}+\\frac{b c+4}{b+2}+\\frac{c a+4}{c+2} \\geq 3 \\cdot \\sqrt[3]{\\frac{(a b+4)(b c+4)(c a+4)}{(a+2)(b+2)(c+2)}}=6\n$$\nAlternatively, we can write LHS as\n$$\n\\frac{b c(a b+4)}{2(b c+4)}+\\frac{a c(b c+4)}{2(a c+4)}+\\frac{a b(c a+4)}{2(a b+4)}\n$$\nand then apply AM-GM.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34443, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nDetermine the number of pairs of integers $(m, n)$ such that\n$$\n\\sqrt{n+\\sqrt{2016}}+\\sqrt{m-\\sqrt{2016}} \\in \\mathbb{Q}\n$$", "options": [], "answer": "1", "solution": "Solution:\nLet $r=\\sqrt{n+\\sqrt{2016}}+\\sqrt{m-\\sqrt{2016}}$. Then\n$$\nn+m+2 \\sqrt{n+\\sqrt{2016}} \\cdot \\sqrt{m-\\sqrt{2016}}=r^{2}\n$$\nand\n$$\n(m-n) \\sqrt{2016}=\\frac{1}{4}\\left(r^{2}-m-n\\right)^{2}-m n+2016 \\in \\mathbb{Q}\n$$\nSince $\\sqrt{2016} \\notin \\mathbb{Q}$, it follows that $m=n$. Then\n$$\n\\sqrt{n^{2}-2016}=\\frac{1}{2}\\left(r^{2}-2 n\\right) \\in \\mathbb{Q}\n$$\nHence, there is some nonnegative integer $p$ such that $n^{2}-2016=p^{2}$ and (1) becomes $2 n+2 p=r^{2}$.\nIt follows that $2(n+p)=r^{2}$ is the square of a rational and also an integer, hence a perfect square. On the other hand, $2016=(n-p)(n+p)$ and $n+p$ is a divisor of 2016, larger than $\\sqrt{2016}$. Since $n+p$ is even, so is also $n-p$, and $r^{2}=2(n+p)$ is a divisor of $2016=2^{5} \\cdot 3^{2} \\cdot 7$, larger than $2 \\sqrt{2016}>88$. The only possibility is $r^{2}=2^{4} \\cdot 3^{2}=12^{2}$. Hence, $n+p=72$ and $n-p=28$, and we conclude that $n=m=50$. Thus, there is only one such pair.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34444, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nIf $x, y, z$ are non-negative real numbers such that $x^{2}+y^{2}+z^{2}=x+y+z$, then show that:\n$$\n\\frac{x+1}{\\sqrt{x^{5}+x+1}}+\\frac{y+1}{\\sqrt{y^{5}+y+1}}+\\frac{z+1}{\\sqrt{z^{5}+z+1}} \\geq 3\n$$\nWhen does the equality hold?", "options": [], "answer": "Equality holds only for x = y = z = 0.", "solution": "Solution:\nFirst we factor $x^{5}+x+1$ as follows:\n$$\n\\begin{aligned}\nx^{5}+x+1 & =x^{5}-x^{2}+x^{2}+x+1=x^{2}\\left(x^{3}-1\\right)+x^{2}+x+1=x^{2}(x-1)\\left(x^{2}+x+1\\right)+x^{2}+x+1 \\\\\n& =\\left(x^{2}+x+1\\right)\\left(x^{2}(x-1)+1\\right)=\\left(x^{2}+x+1\\right)\\left(x^{3}-x^{2}+1\\right)\n\\end{aligned}\n$$\nUsing the AM-GM inequality, we have\n$$\n\\sqrt{x^{5}+x+1}=\\sqrt{\\left(x^{2}+x+1\\right)\\left(x^{3}-x^{2}+1\\right)} \\leq \\frac{x^{2}+x+1+x^{3}-x^{2}+1}{2}=\\frac{x^{3}+x+2}{2}\n$$\nand since\n$x^{3}+x+2=x^{3}+1+x+1=(x+1)\\left(x^{2}-x+1\\right)+x+1=(x+1)\\left(x^{2}-x+1+1\\right)=(x+1)\\left(x^{2}-x+2\\right)$,\nthen\n$$\n\\sqrt{x^{5}+x+1} \\leq \\frac{(x+1)\\left(x^{2}-x+2\\right)}{2}\n$$\nUsing $x^{2}-x+2=\\left(x-\\frac{1}{2}\\right)^{2}+\\frac{7}{4}>0$, we obtain $\\frac{x+1}{\\sqrt{x^{5}+x+1}} \\geq \\frac{2}{x^{2}-x+2}$ Applying the Cauchy-Schwarz inequality and the given condition, we get\n$$\n\\sum_{cyc} \\frac{x+1}{\\sqrt{x^{5}+x+1}} \\geq \\sum_{cyc} \\frac{2}{x^{2}-x+2} \\geq \\frac{18}{\\sum_{cyc}\\left(x^{2}-x+2\\right)}=\\frac{18}{6}=3\n$$\nwhich is the desired result.\nFor the equality both conditions: $x^{2}-x+2=y^{2}-y+2=z^{2}-z+2$ (equality in CBS) and $x^{3}-x^{2}+1=x^{2}+x+1$ (equality in AM-GM) have to be satisfied.\nBy using the given condition it follows that $x^{2}-x+2+y^{2}-y+2+z^{2}-z+2=6$, hence $3\\left(x^{2}-x+2\\right)=6$, implying $x=0$ or $x=1$. Of these, only $x=0$ satisfies the second condition. We conclude that equality can only hold for $x=y=z=0$.\nIt is an immediate check that indeed for these values equality holds.\n\nLet us present an heuristic argument to reach the key inequality $\\frac{x+1}{\\sqrt{x^{5}+x+1}} \\geq \\frac{2}{x^{2}-x+2}$.\nIn order to exploit the condition $x^{2}+y^{2}+z^{2}=x+y+z$ when applying CBS in Engel form, we are looking for $\\alpha, \\beta, \\gamma>0$ such that\n$$\n\\frac{x+1}{\\sqrt{x^{5}+x+1}} \\geq \\frac{\\gamma}{\\alpha\\left(x^{2}-x\\right)+\\beta}\n$$\nAfter squaring and cancelling the denominators, we get\n$$\n(x+1)^{2}\\left(\\alpha\\left(x^{2}-x\\right)+\\beta\\right)^{2} \\geq \\gamma^{2}\\left(x^{5}+x+1\\right)\n$$\nfor all $x \\geq 0$, and, after some manipulations, we reach to $f(x) \\geq 0$ for all $x \\geq 0$, where $f(x)=\\alpha^{2} x^{6}-\\gamma^{2} x^{5}+\\left(2 \\alpha \\beta-2 \\alpha^{2}\\right) x^{4}+2 \\alpha \\beta x^{3}+(\\alpha-\\beta)^{2} x^{2}+\\left(2 \\beta^{2}-2 \\alpha \\beta-\\gamma^{2}\\right) x+\\beta^{2}-\\gamma^{2}$.\nAs we are expecting the equality to hold for $x=0$, we naturally impose the condition that $f$ has 0 as a double root. This implies $\\beta^{2}-\\gamma^{2}=0$ and $2 \\beta^{2}-2 \\alpha \\beta-\\gamma^{2}=0$, that is, $\\beta=\\gamma$ and $\\gamma=2 \\alpha$.\nThus the inequality $f(x) \\geq 0$ becomes\n$$\n\\alpha^{2} x^{6}-4 \\alpha^{2} x^{5}+2 \\alpha^{2} x^{4}+4 \\alpha^{2} x^{3}+\\alpha^{2} x^{2} \\geq 0, \\forall x \\geq 0\n$$\nthat is,\n$$\n\\alpha^{2} x^{2}\\left(x^{2}-2 x-1\\right)^{2} \\geq 0 \\forall x \\geq 0\n$$\nwhich is obviously true.\nTherefore, the inequality $\\frac{x+1}{\\sqrt{x^{5}+x+1}} \\geq \\frac{2}{x^{2}-x+2}$ holds for all $x \\geq 0$ and now we can continue as in the first solution.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34445, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $x$, $y$, $z$ be positive real numbers such that $x + y + z = \\frac{1}{x} + \\frac{1}{y} + \\frac{1}{z}$.\n\na) Prove the inequality\n$$\nx + y + z \\geq \\sqrt{\\frac{x y + 1}{2}} + \\sqrt{\\frac{y z + 1}{2}} + \\sqrt{\\frac{z x + 1}{2}}\n$$\n\nb) When does the equality hold?", "options": [], "answer": "Equality holds if and only if x = y = z = 1.", "solution": "Solution:\n\na. We rewrite the inequality as\n$$\n(\\sqrt{x y + 1} + \\sqrt{y z + 1} + \\sqrt{z x + 1})^2 \\leq 2 \\cdot (x + y + z)^2\n$$\nand note that, from CBS,\n$$\n\\text{LHS} \\leq \\left(\\frac{x y + 1}{x} + \\frac{y z + 1}{y} + \\frac{z x + 1}{z}\\right)(x + y + z)\n$$\nBut\n$$\n\\frac{x y + 1}{x} + \\frac{y z + 1}{y} + \\frac{z x + 1}{z} = x + y + z + \\frac{1}{x} + \\frac{1}{y} + \\frac{1}{z} = 2(x + y + z)\n$$\nwhich proves (1).\n\n\nb. The equality occurs when we have equality in CBS, i.e. when\n$$\n\\frac{x y + 1}{x^2} = \\frac{y z + 1}{y^2} = \\frac{z x + 1}{z^2} \\left(= \\frac{x y + y z + z x + 3}{x^2 + y^2 + z^2}\\right)\n$$\nSince we can also write\n$$\n(\\sqrt{x y + 1} + \\sqrt{y z + 1} + \\sqrt{z x + 1})^2 \\leq \\left(\\frac{x y + 1}{y} + \\frac{y z + 1}{z} + \\frac{z x + 1}{x}\\right)(y + z + x) = 2(x + y + z)^2\n$$\nthe equality implies also\n$$\n\\frac{x y + 1}{y^2} = \\frac{y z + 1}{z^2} = \\frac{z x + 1}{x^2} \\left(= \\frac{x y + y z + z x + 3}{x^2 + y^2 + z^2}\\right)\n$$\nBut then $x = y = z$, and since $x + y + z = \\frac{1}{x} + \\frac{1}{y} + \\frac{1}{z}$, we conclude that $x = \\frac{1}{x} = 1 = y = z$.\n\n\nAlternative solution to b): The equality condition\n$$\n\\frac{x y + 1}{x^2} = \\frac{y z + 1}{y^2} = \\frac{z x + 1}{z^2}\n$$\ncan be rewritten as\n$$\n\\frac{y + \\frac{1}{x}}{x} = \\frac{z + \\frac{1}{y}}{y} = \\frac{x + \\frac{1}{z}}{z} = \\frac{x + y + z + \\frac{1}{x} + \\frac{1}{y} + \\frac{1}{z}}{x + y + z} = 2\n$$\nand thus we obtain the system:\n$$\n\\left\\{\\begin{array}{l}\ny = 2x - \\frac{1}{x} \\\\\nz = 2y - \\frac{1}{y} \\\\\nx = 2z - \\frac{1}{z}\n\\end{array}\\right.\n$$\nWe show that $x = y = z$. Indeed, if for example $x > y$, then $2x - \\frac{1}{x} > 2y - \\frac{1}{y}$, that is, $y > z$ and $z = 2y - \\frac{1}{y} > 2z - \\frac{1}{z} = x$, and we obtain the contradiction $x > y > z > x$. Similarly, if $x < y$, we obtain $x < y < z < x$.\nHence, the numbers are equal, and as above we get $x = y = z = 1$.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34446, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $S_{n}$ be the sum of reciprocal values of non-zero digits of all positive integers up to (and including) $n$. For instance, $S_{13} = \\frac{1}{1} + \\frac{1}{2} + \\frac{1}{3} + \\frac{1}{4} + \\frac{1}{5} + \\frac{1}{6} + \\frac{1}{7} + \\frac{1}{8} + \\frac{1}{9} + \\frac{1}{1} + \\frac{1}{1} + \\frac{1}{1} + \\frac{1}{1} + \\frac{1}{2} + \\frac{1}{1} + \\frac{1}{3}$.\nFind the least positive integer $k$ making the number $k! \\cdot S_{2016}$ an integer.", "options": [], "answer": "7", "solution": "Solution:\nWe will first calculate $S_{999}$, then $S_{1999} - S_{999}$, and then $S_{2016} - S_{1999}$.\n\nWriting the integers from $1$ to $999$ as $001$ to $999$, adding eventually also $000$ (since $0$ digits actually do not matter), each digit appears exactly $100$ times in each position (as unit, ten, or hundred). Hence\n$$\nS_{999} = 300 \\cdot \\left( \\frac{1}{1} + \\frac{1}{2} + \\cdots + \\frac{1}{9} \\right)\n$$\nFor the numbers in the interval $1000 \\rightarrow 1999$, compared to $0 \\rightarrow 999$, there are precisely $1000$ more digits $1$. We get\n$$\nS_{1999} - S_{999} = 1000 + S_{999} \\Longrightarrow S_{1999} = 1000 + 600 \\cdot \\left( \\frac{1}{1} + \\frac{1}{2} + \\cdots + \\frac{1}{9} \\right)\n$$\nFinally, in the interval $2000 \\rightarrow 2016$, the digit $1$ appears $9$ times as unit and $19$ times as a ten, the digit $2$ twice as a unit and $17$ times as a thousand, the digits $3, 4, 5$, and $6$ each appear exactly twice as units, and the digits $7, 8, 9$ each appear exactly once as a unit. Hence\n$$\nS_{2016} - S_{1999} = 9 \\cdot 1 + 19 \\cdot \\frac{1}{2} + 2 \\cdot \\left( \\frac{1}{3} + \\frac{1}{4} + \\frac{1}{5} + \\frac{1}{6} \\right) + 1 \\cdot \\left( \\frac{1}{7} + \\frac{1}{8} + \\frac{1}{9} \\right)\n$$\nIn the end, we get\n$$\n\\begin{aligned}\nS_{2016} &= 1609 \\cdot 1 + 619 \\cdot \\frac{1}{2} + 602 \\cdot \\left( \\frac{1}{3} + \\frac{1}{4} + \\frac{1}{5} + \\frac{1}{6} \\right) + 601 \\cdot \\left( \\frac{1}{7} + \\frac{1}{8} + \\frac{1}{9} \\right) \\\\\n&= m + \\frac{1}{2} + \\frac{2}{3} + \\frac{2}{4} + \\frac{2}{5} + \\frac{2}{6} + \\frac{6}{7} + \\frac{1}{8} + \\frac{7}{9} = n + \\frac{p}{2^{3} \\cdot 3^{2} \\cdot 5 \\cdot 7}\n\\end{aligned}\n$$\nwhere $m, n$, and $p$ are positive integers, $p$ coprime to $2^{3} \\cdot 3^{2} \\cdot 5 \\cdot 7$. Then $k! \\cdot S_{2016}$ is an integer precisely when $k!$ is a multiple of $2^{3} \\cdot 3^{2} \\cdot 5 \\cdot 7$. Since $7 \\mid k!$, it follows that $k \\geq 7$. Also, $7! = 2^{4} \\cdot 3^{2} \\cdot 5 \\cdot 7$, implying that the least $k$ satisfying $k! \\cdot S_{2016} \\in \\mathbb{Z}$ is $k = 7$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34447, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nThe natural numbers from $1$ to $50$ are written down on the blackboard. At least how many of them should be deleted, in order that the sum of any two of the remaining numbers is not a prime?", "options": [], "answer": "25", "solution": "Solution:\n\nNotice that if the odd, respectively even, numbers are all deleted, then the sum of any two remaining numbers is even and exceeds $2$, so it is certainly not a prime. We prove that $25$ is the minimal number of deleted numbers. To this end, we group the positive integers from $1$ to $50$ in $25$ pairs, such that the sum of the numbers within each pair is a prime:\n$$\n\\begin{aligned}\n& (1,2), (3,4), (5,6), (7,10), (8,9), (11,12), (13,16), (14,15), (17,20) \\\\\n& (18,19), (21,22), (23,24), (25,28), (26,27), (29,30), (31,36), (32,35) \\\\\n& (33,34), (37,42), (38,41), (39,40), (43,46), (44,45), (47,50), (48,49)\n\\end{aligned}\n$$\nSince at least one number from each pair has to be deleted, the minimal number is $25$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34448, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nConsider any four pairwise distinct real numbers and write one of these numbers in each cell of a $5 \\times 5$ array so that each number occurs exactly once in every $2 \\times 2$ subarray. The sum over all entries of the array is called the total sum of that array. Determine the maximum number of distinct total sums that may be obtained in this way.", "options": [], "answer": "60", "solution": "Solution:\n\nWe will prove that the maximum number of total sums is $60$.\n\nThe proof is based on the following claim.\n\nClaim. Either each row contains exactly two of the numbers, or each column contains exactly two of the numbers.\n\nProof of the Claim. Indeed, let $R$ be a row containing at least three of the numbers. Then, in row $R$ we can find three of the numbers in consecutive positions, let $x, y, z$ be the numbers in consecutive positions (where $\\{x, y, z, t\\} = \\{a, b, c, d\\}$). Due to our hypothesis that in every $2 \\times 2$ subarray each number is used exactly once, in the row above $R$ (if there is such a row), precisely above the numbers $x, y, z$ will be the numbers $z, t, x$ in this order. And above them will be the numbers $x, y, z$ in this order. The same happens in the rows below $R$ (see at the following figure).\n\n$$\n\\left(\\begin{array}{lllll}\n\\bullet & x & y & z & \\bullet \\\\\n\\bullet & z & t & x & \\bullet \\\\\n\\bullet & x & y & z & \\bullet \\\\\n\\bullet & z & t & x & \\bullet \\\\\n\\bullet & x & y & z & \\bullet\n\\end{array}\\right)\n$$\n\nCompleting all the array, it easily follows that each column contains exactly two of the numbers and our claim has been proven.\n\nRotating the matrix (if it is necessary), we may assume that each row contains exactly two of the numbers. If we forget the first row and column from the array, we obtain a $4 \\times 4$ array, that can be divided into four $2 \\times 2$ subarrays, containing thus each number exactly four times, with a total sum of $4(a+b+c+d)$. It suffices to find how many different ways are there to put the numbers in the first row $R_1$ and the first column $C_1$.\n\nDenoting by $a_1, b_1, c_1, d_1$ the number of appearances of $a, b, c$, and respectively $d$ in $R_1$ and $C_1$, the total sum of the numbers in the entire $5 \\times 5$ array will be\n\n$$\nS = 4(a+b+c+d) + a_1 \\cdot a + b_1 \\cdot b + c_1 \\cdot c + d_1 \\cdot d\n$$\n\nIf the first, the third and the fifth row contain the numbers $x, y$, with $x$ denoting the number at the entry $(1,1)$, then the second and the fourth row will contain only the numbers $z, t$, with $z$ denoting the number at the entry $(2,1)$. Then $x_1 + y_1 = 7$ and $x_1 \\geqslant 3$, $y_1 \\geqslant 2$, $z_1 + t_1 = 2$, and $z_1 \\geqslant t_1$. Then $\\{x_1, y_1\\} = \\{5,2\\}$ or $\\{x_1, y_1\\} = \\{4,3\\}$, respectively $\\{z_1, t_1\\} = \\{2,0\\}$ or $\\{z_1, t_1\\} = \\{1,1\\}$. Then $(a_1, b_1, c_1, d_1)$ is obtained by permuting one of the following quadruples:\n\n$$\n(5,2,2,0),\\ (5,2,1,1),\\ (4,3,2,0),\\ (4,3,1,1)\n$$\n\nThere are a total of $\\frac{4!}{2!} = 12$ permutations of $(5,2,2,0)$, also $12$ permutations of $(5,2,1,1)$, $24$ permutations of $(4,3,2,0)$ and finally, there are $12$ permutations of $(4,3,1,1)$. Hence, there are at most $60$ different possible total sums.\n\nWe can obtain indeed each of these $60$ combinations: take three rows ababa alternating with two rows $cdc d c$ to get $(5,2,2,0)$; take three rows ababa alternating with one row $cdc d c$ and a row $(d c d c d)$ to get $(5,2,1,1)$; take three rows $a b a b c$ alternating with two rows $c d c d a$ to get $(4,3,2,0)$; take three rows abcda alternating with two rows $c d a b c$ to get $(4,3,1,1)$. By choosing for example $a=10^3, b=10^2, c=10, d=1$, we can make all these sums different. Hence, $60$ is indeed the maximum possible number of different sums.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34449, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nA splitting of a planar polygon is a finite set of triangles whose interiors are pairwise disjoint, and whose union is the polygon in question. Given an integer $n \\geq 3$, determine the largest integer $m$ such that no planar $n$-gon splits into less than $m$ triangles.", "options": [], "answer": "⌈n/3⌉", "solution": "Solution:\nThe required maximum is $\\lceil n / 3 \\rceil$, the least integer greater than or equal to $n / 3$. To describe a planar $n$-gon splitting into this many triangles, write $n = 3m - r$, where $m$ is a positive integer and $r = 0, 1, 2$, and consider $m$ coplanar equilateral triangles $A_{3i} A_{3i+1} A_{3i+2}$, $i = 0, \\ldots, m-1$, where the $A_{i}$ are pairwise distinct, the $A$'s of rank congruent to $0$ or $2$ modulo $3$ are all collinear, $A_{2}, A_{3}, A_{5}, \\ldots, A_{3m-3}, A_{3m-1}, A_{0}$, in order, and the line $A_{0}A_{2}$ separates $A_{1}$ from the remaining $A$'s of rank congruent to $1$ modulo $3$. The polygon $A_{0} A_{1} A_{2} A_{3} A_{4} A_{5} \\ldots A_{3m-3} A_{3m-2} A_{3m-1}$ settles the case $r=0$; removal of $A_{3}$ from the list settles the case $r=1$; and removal of $A_{3}$ and $A_{3m-1}$ settles the case $r=2$.\n\nNext, we prove that no planar $n$-gon splits into less than $n / 3$ triangles. Alternatively, but equivalently, if a planar polygon splits into $t$ triangles, then its boundary has (combinatorial) length at most $3t$. Proceed by induction on $t$. The base case $t=1$ is clear, so let $t>1$.\n\nThe vertices of the triangles in the splitting may subdivide the boundary of the polygon, making it into a possibly combinatorially longer simple loop $\\Omega$. Clearly, it is sufficient to prove that the length of $\\Omega$ does not exceed $3t$.\n\nTo this end, consider a triangle in the splitting whose boundary $\\omega$ meets $\\Omega$ along at least one of its edges. Trace $\\Omega$ counterclockwise and let $\\alpha_{1}, \\ldots, \\alpha_{k}$, in order, be the connected components of $\\Omega - \\omega$. Each $\\alpha_{i}$ is a path along $\\Omega$ with distinct end points, whose terminal point is joined to the starting point of $\\alpha_{i+1}$ by a (possibly constant) path $\\beta_{i}$ along $\\omega$. Trace $\\omega$ clockwise from the terminal point of $\\alpha_{i}$ to its starting point to obtain a path $\\alpha_{i}'$ of positive length, and notice that $\\alpha_{i} + \\alpha_{i}'$ is the boundary of a polygon split into $t_{i} < t$ triangles. By the induction hypothesis, the length of $\\alpha_{i} + \\alpha_{i}'$ does not exceed $3 t_{i}$, and since $\\alpha_{i}'$ has positive length, the length of $\\alpha_{i}$ is at most $3 t_{i} - 1$. Consequently, the length of $\\Omega - \\omega$ does not exceed $\\sum_{i=1}^{k} (3 t_{i} - 1) = 3t - 3 - k$.\n\nFinally, we prove that the total length of the $\\beta_{i}$ does not exceed $k + 3$. Begin by noticing that no $\\beta_{i}$ has length greater than $4$, at most one has length greater than $2$, and at most three have length $2$. If some $\\beta_{i}$ has length $4$, then the remaining $k-1$ are all of length at most $1$, so the total length of the $\\beta$'s does not exceed $4 + (k-1) = k + 3$. Otherwise, either some $\\beta_{i}$ has length $3$, in which case at most one other has length $2$ and the remaining $k-2$ all have length at most $1$, or the $\\beta_{i}$ all have length less than $3$, in which case there are at most three of length $2$ and the remaining $k-3$ all have length at most $1$; in the former case, the total length of the $\\beta$'s does not exceed $3 + 2 + (k-2) = k + 3$, and in the latter, the total length of the $\\beta$'s does not exceed $3 \\cdot 2 + (k-3) = k + 3$. The conclusion follows.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34450, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $ABC$ be an acute angled triangle, let $O$ be its circumcentre, and let $D, E, F$ be points on the sides $BC, AC, AB$, respectively. The circle $(c_1)$ of radius $FA$, centred at $F$, crosses the segment $(OA)$ at $A'$, and the circumcircle $(c)$ of the triangle $ABC$ again at $K$. Similarly, the circle $(c_2)$ of radius $DB$, centred at $D$, crosses the segment $(OB)$ at $B'$, and the circle $(c)$ again at $L$. Finally, the circle $(c_3)$ of radius $EC$, centred at $E$, crosses the segment $(OC)$ at $C'$, and the circle $(c)$ again at $M$. Prove that the quadrilaterals $BKFA'$, $CLDB'$, and $AMEC'$ are all cyclic, and their circumcircles share a common point.\n\n![](attached_image_1.png)", "options": [], "answer": "Detailed solution", "solution": "Solution:\nWe will prove that the quadrilateral $BKFA'$ is cyclic and its circumcircle passes through the center $O$ of the circle $(c)$.\n\nThe triangle $AFK$ is isosceles, so $m(\\widehat{KFB}) = 2 m(\\widehat{KAB}) = m(\\widehat{KOB})$. It follows that the quadrilateral $BKFO$ is cyclic.\n\nThe triangles $OFK$ and $OFA$ are congruent (S.S.S.), hence $m(\\widehat{OKF}) = m(\\widehat{OAF})$. The triangle $FAA'$ is isosceles, so $m\\left(\\widehat{FA'A}\\right) = m(\\widehat{OAF})$. Therefore $m\\left(\\widehat{FA'A}\\right) = m(\\widehat{OKF})$, so the quadrilateral $OKFA'$ is cyclic.\n\n(1) and (2) prove the initial claim.\n\nAlong the same lines, we can prove that the points $C, D, L, B', O$ and $A, M, E, C', O$ are concyclic, respectively, so their circumcircles also pass through $O$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34451, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $ABC$ be a triangle with $m(\\widehat{BAC}) = 60^{\\circ}$. Let $D$ and $E$ be the feet of the perpendiculars from $A$ to the external angle bisectors of $\\widehat{ABC}$ and $\\widehat{ACB}$, respectively. Let $O$ be the circumcenter of the triangle $ABC$. Prove that the circumcircles of the triangles $ADE$ and $BOC$ are tangent to each other.\n\n![](attached_image_1.png)", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nLet $X$ be the intersection of the lines $BD$ and $CE$.\nWe will prove that $X$ lies on the circumcircles of both triangles $ADE$ and $BOC$ and then we will prove that the centers of these circles and the point $X$ are collinear, which is enough for proving that the circles are tangent to each other.\nIn this proof we will use the notation $(MNP)$ to denote the circumcircle of the triangle $MNP$.\n\nObviously, the quadrilateral $ADXE$ is cyclic, and the circle $(DAE)$ has $[AX]$ as diameter. (1)\n\nLet $I$ be the incenter of triangle $ABC$. So, the point $I$ lies on the segment $[AX]$ (2), and the quadrilateral $XBIC$ is cyclic because $IC \\perp XC$ and $IB \\perp XB$. So, the circle $(BIC)$ has $[IX]$ as diameter.\n\nFinally, $m(\\widehat{BIC}) = 90^{\\circ} + \\frac{1}{2} m(\\widehat{BAC}) = 120^{\\circ}$ and $m(\\widehat{BOC}) = 2 m(\\widehat{BAC}) = 120^{\\circ}$.\nSo, the quadrilateral $BOIC$ is cyclic and the circle $(BOC)$ has $[IX]$ as diameter. (3)\n\n(1), (2), (3) imply the conclusion.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34452, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $ABC$ be an acute angled triangle with orthocenter $H$ and circumcenter $O$. Assume the circumcenter $X$ of $BHC$ lies on the circumcircle of $ABC$. Reflect $O$ across $X$ to obtain $O'$, and let the lines $XH$ and $O'A$ meet at $K$. Let $L$, $M$ and $N$ be the midpoints of $[XB]$, $[XC]$ and $[BC]$, respectively. Prove that the points $K$, $L$, $M$ and $N$ are cocyclic.\n\n![](attached_image_1.png)", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nThe circumcircles of $ABC$ and $BHC$ have the same radius. So, $XB = XC = XH = XO = r$ (where $r$ is the radius of the circle $ABC$) and $O'$ lies on $C(X, r)$. We conclude that $OX$ is the perpendicular bisector for $[BC]$. So, $BOX$ and $COX$ are equilateral triangles.\n\nIt is known that $AH = 2ON = r$. So, $AHO'X$ is a parallelogram, and $XK = KH = r/2$. Finally, $XL = XK = XN = XM = r/2$. So, $K$, $L$, $M$ and $N$ lie on the circle $c(X, r/2)$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34453, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $[AB]$ be a chord of a circle $(c)$ centered at $O$, and let $K$ be a point on the segment $(AB)$ such that $AK < BK$. Two circles through $K$, internally tangent to $(c)$ at $A$ and $B$, respectively, meet again at $L$. Let $P$ be one of the points of intersection of the line $KL$ and the circle $(c)$, and let the lines $AB$ and $LO$ meet at $M$. Prove that the line $MP$ is tangent to the circle $(c)$.\n\n![](attached_image_1.png)", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nLet $(c_1)$ and $(c_2)$ be circles through $K$, internally tangent to $(c)$ at $A$ and $B$, respectively, and meeting again at $L$, and let the common tangent to $(c_1)$ and $(c)$ meet the common tangent to $(c_2)$ and $(c)$ at $Q$. Then the point $Q$ is the radical center of the circles $(c_1)$, $(c_2)$ and $(c)$, and the line $KL$ passes through $Q$.\n\nWe have $m(\\widehat{QLB}) = m(\\widehat{QBK}) = m(\\widehat{QBA}) = \\frac{1}{2} m(\\overparen{BA}) = m(\\widehat{QOB})$. So, the quadrilateral $OBQL$ is cyclic. We conclude that $m(\\widehat{QLO}) = 90^{\\circ}$ and the points $O, B, Q, A$ and $L$ are cocyclic on a circle $(k)$.\n\nFrom $MO^2 - OP^2 = \\mathcal{P}_c(M) = MA \\cdot MB = \\mathcal{P}_k(M) = ML \\cdot MO = (MO - OL) \\cdot MO = MO^2 - OL \\cdot MO$ follows that $OP^2 = OL \\cdot OM$. Since $PL \\perp OM$, this shows that the triangle $MPO$ is right at point $P$. Thus, the line $MP$ is tangent to the circle $(c)$.\n\nLet $R \\in (c)$ be so that $BR \\perp MO$. The triangle $LBR$ is isosceles with $LB = LR$, so $\\widehat{OLR} \\equiv \\widehat{OLB} \\equiv \\widehat{OQB} \\equiv \\widehat{OQA} \\equiv \\widehat{MLA}$. We conclude that the points $A, L$ and $R$ are collinear.\n\nNow $m(\\widehat{AMR}) + m(\\widehat{AOR}) = m(\\widehat{AMR}) + 2 m(\\widehat{ABR}) = m(\\widehat{AMR}) + m(\\widehat{ABR}) + m(\\widehat{MRB}) = 180^{\\circ}$, since the triangle $MBR$ is isosceles. So, the quadrilateral $MAOR$ is cyclic.\n\nThis yields $LM \\cdot LO = -\\mathcal{P}_{(MAOR)}(L) = LA \\cdot LR = -\\mathcal{P}_c(L) = LP^2$, which as above, shows that $OP \\perp PM$.\n\n$\\widehat{KLA} \\equiv \\widehat{KAQ} \\equiv \\widehat{KLB}$ and $m(\\widehat{MLK}) = 90^{\\circ}$ show that $[LK$ and $[LM$ are the internal and external bisectors of the angle $\\widehat{ALB}$, so $(M, K)$ and $(A, B)$ are harmonic conjugates. So, $LK$ is the polar line of $M$ in the circle $(c)$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34454, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nDetermine the largest positive integer $n$ that divides $p^{6}-1$ for all primes $p>7$.", "options": [], "answer": "504", "solution": "Solution:\nNote that\n$$\np^{6}-1=(p-1)(p+1)\\left(p^{2}-p+1\\right)\\left(p^{2}+p+1\\right)\n$$\nFor $p=11$ we have\n$$\np^{6}-1=1771560=2^{3} \\cdot 3^{2} \\cdot 5 \\cdot 7 \\cdot 19 \\cdot 37\n$$\nFor $p=13$ we have\n$$\np^{6}-1=2^{3} \\cdot 3^{2} \\cdot 7 \\cdot 61 \\cdot 157\n$$\nFrom the last two calculations we find evidence to try showing that $p^{6}-1$ is divisible by $2^{3} \\cdot 3^{2} \\cdot 7=504$ and this would be the largest positive integer that divides $p^{6}-1$ for all primes greater than 7.\nBy Fermat's theorem, $7 \\mid p^{6}-1$.\nNext, since $p$ is odd, $8 \\mid p^{2}-1=(p-1)(p+1)$, hence $8 \\mid p^{6}-1$.\nIt remains to show that $9 \\mid p^{6}-1$.\nAny prime number $p, p>3$ is 1 or -1 modulo 3.\nIn the first case both $p-1$ and $p^{2}+p+1$ are divisible by 3, and in the second case, both $p+1$ and $p^{2}-p+1$ are divisible by 3.\nConsequently, the required number is indeed 504\n\nLet $q$ be a (positive) prime factor of $n$. Then $q \\leq 7$, as $q \\nmid q^{6}-1$. Also, $q$ is not 5, as the last digit of $13^{6}-1$ is 8.\nHence, the prime factors of $n$ are among 2, 3, and 7.\nNext, from $11^{6}-1=2^{3} \\cdot 3^{2} \\cdot 5 \\cdot 7 \\cdot 19 \\cdot 37$ it follows that the largest integer $n$ such that $n \\mid p^{6}-1$ for all primes $p$ greater than 7 is at most $2^{3} \\cdot 3^{2} \\cdot 7$, and it remains to prove that 504 divides $p^{6}-1$ for all primes greater than 7.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34455, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind the maximum number of natural numbers $x_{1}, x_{2}, \\ldots, x_{m}$ satisfying the conditions:\na) No $x_{i}-x_{j}, 1 \\leq i 2^{2n+1} - 2^{n+1} + 1 > 65$, and $A_{n}$ has at least two factors. We conclude that $A_{n}$ can never be a prime.\nSolution:\n\nAlternative Solution to b): Knowing that $n = 3k + 1$ in order for $A_{n}$ to be an integer, $2^{4n+2} + 1 = 2^{12k+6} + 1 = \\left(2^{4k+2}\\right)^{3} + 1 = \\left(2^{4k+2} + 1\\right)\\left(2^{8k+4} - 2^{4k+2} + 1\\right)$ $\\quad(*)$. As in the previous solution, if $k = 0$, then $A_{1} = 1$, if $k = 1$, then $A_{4} = 2^{12} - 2^{6} + 1 = 4033 = 37 \\cdot 109$, and for $k \\geq 2$ both factors in $(*)$ are larger than $65$, so $A_{3k+1}$ is not a prime.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34457, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nDetermine all four-digit numbers $\\overline{a b c d}$ such that\n$$\n(a+b)(a+c)(a+d)(b+c)(b+d)(c+d)=\\overline{a b c d}\n$$", "options": [], "answer": "2016", "solution": "Solution:\nDepending on the parity of $a, b, c, d$, at least two of the factors $(a+b), (a+c), (a+d), (b+c), (b+d), (c+d)$ are even, so that $4 \\mid \\overline{a b c d}$.\nWe claim that $3 \\mid \\overline{a b c d}$.\nAssume $a+b+c+d \\equiv 2 \\pmod{3}$. Then $x+y \\equiv 1 \\pmod{3}$, for all distinct $x, y \\in \\{a, b, c, d\\}$. But then the left hand side in the above equality is congruent to $1 \\pmod{3}$ and the right hand side congruent to $2 \\pmod{3}$, contradiction.\nAssume $a+b+c+d \\equiv 1 \\pmod{3}$. Then $x+y \\equiv 2 \\pmod{3}$, for all distinct $x, y \\in \\{a, b, c, d\\}$, and $x \\equiv 1 \\pmod{3}$, for all $x, y \\in \\{a, b, c, d\\}$. Hence, $a, b, c, d \\in \\{1,4,7\\}$, and since $4 \\mid \\overline{a b c d}$, we have $c=d=4$. Therefore, $8 \\mid \\overline{a b 44}$, and since at least one more factor is even, it follows that $16 \\mid \\overline{a b 44}$. Then $b \\neq 4$, and the only possibilities are $b=1$, implying $a=4$, which is impossible because $4144$ is not divisible by $5=1+4$, or $b=7$, implying $11 \\mid \\overline{a 744}$, hence $a=7$, which is also impossible because $7744$ is not divisible by $14=7+7$.\nWe conclude that $3 \\mid \\overline{a b c d}$, hence also $3 \\mid a+b+c+d$. Then at least one factor $x+y$ of $(a+b),(a+c),(a+d),(b+c),(b+d),(c+d)$ is a multiple of $3$, implying that also $3 \\mid a+b+c+d-x-y$, so $9 \\mid \\overline{a b c d}$. Then $9 \\mid a+b+c+d$, and $a+b+c+d \\in \\{9,18,27,36\\}$. Using the inequality $x y \\geq x+y-1$, valid for all $x, y \\in \\mathbb{N}^*$, if $a+b+c+d \\in \\{27,36\\}$, then\n$$\n\\overline{a b c d}=(a+b)(a+c)(a+d)(b+c)(b+d)(c+d) \\geq 26^3>10^4\n$$\nwhich is impossible.\nUsing the inequality $x y \\geq 2(x+y)-4$ for all $x, y \\geq 2$, if $a+b+c+d=18$ and all two-digit sums are greater than $1$, then $\\overline{a b c d} \\geq 32^3>10^4$. Hence, if $a+b+c+d=18$, some two-digit sum must be $1$, hence the complementary sum will be $17$, and the digits are $\\{a, b, c, d\\}=\\{0,1,8,9\\}$. But then $\\overline{a b c d}=1 \\cdot 17 \\cdot 8 \\cdot 9^2 \\cdot 10>10^4$.\nWe conclude that $a+b+c+d=9$. Then among $a, b, c, d$ there are either three odd or three even numbers, and $8 \\mid \\overline{a b c d}$.\nIf three of the digits are odd, then $d$ is even and since $c$ is odd, divisibility by $8$ implies that $d \\in \\{2,6\\}$. If $d=6$, then $a=b=c=1$. But $1116$ is not divisible by $7$, so this is not a solution. If $d=2$, then $a, b, c$ are either $1,1,5$ or $1,3,3$ in some order. In the first case $2 \\cdot 6^2 \\cdot 3^2 \\cdot 7=4536 \\neq \\overline{a b c d}$. The second case cannot hold because the resulting number is not a multiple of $5$.\nHence, there has to be one odd and three even digits. At least one of the two-digit sums of even digits is a multiple of $4$, and since there cannot be two zero digits, we have either $x+y=4$ and $z+t=5$, or $x+y=8$ and $z+t=1$ for some ordering $x, y, z, t$ of $a, b, c, d$. In the first case we have $d=0$ and the digits are $0,1,4,4$, or $0,2,3,4$, or $0,2,2,5$. None of these is a solution because $1 \\cdot 4^2 \\cdot 5^2 \\cdot 8=3200$, $2 \\cdot 3 \\cdot 4 \\cdot 5 \\cdot 6 \\cdot 7=5040$ and $2^2 \\cdot 5 \\cdot 4 \\cdot 7^2=3920$. In the second case two of the digits are $0$ and $1$, and the other two have to be either $4$ and $4$, or $2$ and $6$. We already know that the first possibility fails. For the second, we get\n$$\n(0+1) \\cdot (0+2) \\cdot (0+6) \\cdot (1+2) \\cdot (1+6) \\cdot (2+6)=2016\n$$\nand $\\overline{a b c d}=2016$ is the only solution.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34458, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nConsider a regular $2n$-gon $P, A_{1}A_{2}\\ldots A_{2n}$ in the plane, where $n$ is a positive integer. We say that a point $S$ on one of the sides of $P$ can be seen from a point $E$ that is external to $P$, if the line segment $SE$ contains no other points that lie on the sides of $P$ except $S$. We color the sides of $P$ in 3 different colors (ignore the vertices of $P$, we consider them colorless), such that every side is colored in exactly one color, and each color is used at least once. Moreover, from every point in the plane external to $P$, points of at most 2 different colors on $P$ can be seen. Find the number of distinct such colorings of $P$ (two colorings are considered distinct if at least one of the sides is colored differently).", "options": [], "answer": "36 if n = 2; 30 if n = 3; 6n if n ≥ 4", "solution": "Solution:\n\nFor $n=2$, the answer is $36$; for $n=3$, the answer is $30$ and for $n \\geq 4$, the answer is $6n$.\n\nLemma 1. Given a regular $2n$-gon in the plane and a sequence of $n$ consecutive sides $s_{1}, s_{2}, \\ldots, s_{n}$ there is an external point $Q$ in the plane, such that the color of each $s_{i}$ can be seen from $Q$, for $i=1,2, \\ldots, n$.\n\nProof. It is obvious that for a semi-circle $S$, there is a point $R$ in the plane far enough on the bisector of its diameter such that almost the entire semi-circle can be seen from $R$.\nNow, it is clear that looking at the circumscribed circle around the $2n$-gon, there is a semi-circle $S$ such that each $s_{i}$ either has both endpoints on it, or has an endpoint that's on the semi-circle, and is not on the semi-circle's end. So, take $Q$ to be a point in the plane from which almost all of $S$ can be seen, clearly, the color of each $s_{i}$ can be seen from $Q$.\n\nLemma 2. Given a regular $2n$-gon in the plane, and a sequence of $n+1$ consecutive sides $s_{1}, s_{2}, \\ldots, s_{n+1}$ there is no external point $Q$ in the plane, such that the color of each $s_{i}$ can be seen from $Q$, for $i=1,2, \\ldots, n+1$.\n\nProof. Since $s_{1}$ and $s_{n+1}$ are parallel opposite sides of the $2n$-gon, they cannot be seen at the same time from an external point.\n\nFor $n=2$, we have a square, so all we have to do is make sure each color is used. Two sides will be of the same color, and we have to choose which are these 2 sides, and then assign colors according to this choice, so the answer is $\\binom{4}{2} \\cdot 3 \\cdot 2 = 36$.\n\nFor $n=3$, we have a hexagon. Denote the sides as $a_{1}, a_{2}, \\ldots, a_{6}$, in that order. There must be 2 consecutive sides of different colors, say $a_{1}$ is red, $a_{2}$ is blue. We must have a green side, and only $a_{4}$ and $a_{5}$ can be green. We have 3 possibilities:\n\n1) $a_{4}$ is green, $a_{5}$ is not. So, $a_{3}$ must be blue and $a_{5}$ must be blue (by elimination) and $a_{6}$ must be blue, so we get a valid coloring.\n\n2) Both $a_{4}$ and $a_{5}$ are green, thus $a_{6}$ must be red and $a_{5}$ must be blue, and we get the coloring rbbggr.\n\n3) $a_{5}$ is green, $a_{4}$ is not. Then $a_{6}$ must be red. Subsequently, $a_{4}$ must be red (we assume it is not green). It remains that $a_{3}$ must be red, and the coloring is rbrrgr.\n\nThus, we have 2 kinds of configurations:\n\ni) 2 opposite sides have 2 opposite colors and all other sides are of the third color. This can happen in $3 \\cdot (3 \\cdot 2 \\cdot 1) = 18$ ways (first choosing the pair of opposite sides, then assigning colors),\n\nii) 3 pairs of consecutive sides, each pair in one of the 3 colors. This can happen in $2 \\cdot 6 = 12$ ways (2 partitioning into pairs of consecutive sides, for each partitioning, 6 ways to assign the colors).\n\nThus, for $n=3$, the answer is $18+12=30$.\n\nFinally, let's address the case $n \\geq 4$. The important thing now is that any 4 consecutive sides can be seen from an external point, by Lemma 1.\n\nDenote the sides as $a_{1}, a_{2}, \\ldots, a_{2n}$. Again, there must be 2 adjacent sides that are of different colors, say $a_{1}$ is blue and $a_{2}$ is red. We must have a green side, and by Lemma 1, that can only be $a_{n+1}$ or $a_{n+2}$. So, we have 2 cases:\n\nCase 1: $a_{n+1}$ is green, so $a_{n}$ must be red (cannot be green due to Lemma 1 applied to $a_{1}, a_{2}, \\ldots, a_{n}$, cannot be blue for the sake of $a_{2}, \\ldots, a_{n+1}$). If $a_{n+2}$ is red, so are $a_{n+3}, \\ldots, a_{2n}$, and we get a valid coloring: $a_{1}$ is blue, $a_{n+1}$ is green, and all the others are red.\n\nIf $a_{n+2}$ is green:\n\na) $a_{n+3}$ cannot be green, because of $a_{2}, a_{1}, a_{2n}, \\ldots, a_{n+3}$.\n\nb) $a_{n+3}$ cannot be blue, because the 4 adjacent sides $a_{n}, \\ldots, a_{n+3}$ can be seen (this is the case that makes the separate treatment of $n \\geq 4$ necessary)\n\nc) $a_{n+3}$ cannot be red, because of $a_{1}, a_{2n}, \\ldots, a_{n+2}$.\n\nSo, in the case that $a_{n+2}$ is also green, we cannot get a valid coloring.\n\nCase 2: $a_{n+2}$ is green is treated the same way as Case 1.\n\nThis means that the only valid configuration for $n \\geq 4$ is having 2 opposite sides colored in 2 different colors, and all other sides colored in the third color. This can be done in $n \\cdot 3 \\cdot 2 = 6n$ ways.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34459, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $x$, $y$ and $z$ be positive numbers. Prove that\n$$\n\\frac{x}{\\sqrt{\\sqrt[4]{y}+\\sqrt[4]{z}}}+\\frac{y}{\\sqrt{\\sqrt[4]{z}+\\sqrt[4]{x}}}+\\frac{z}{\\sqrt{\\sqrt[4]{x}+\\sqrt[4]{y}}} \\geq \\frac{\\sqrt[4]{(\\sqrt{x}+\\sqrt{y}+\\sqrt{z})^{7}}}{\\sqrt{2 \\sqrt{27}}}\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\nReplacing $x = a^{2}$, $y = b^{2}$, $z = c^{2}$, where $a$, $b$, $c$ are positive numbers, our inequality is equivalent to\n$$\n\\frac{a^{2}}{\\sqrt{\\sqrt{b}+\\sqrt{c}}}+\\frac{b^{2}}{\\sqrt{\\sqrt{c}+\\sqrt{a}}}+\\frac{c^{2}}{\\sqrt{\\sqrt{a}+\\sqrt{b}}} \\geq \\frac{\\sqrt[4]{(a+b+c)^{7}}}{\\sqrt{2 \\sqrt{27}}}\n$$\nUsing the Cauchy-Schwarz inequality for the left hand side we get\n$$\n\\frac{a^{2}}{\\sqrt{\\sqrt{b}+\\sqrt{c}}}+\\frac{b^{2}}{\\sqrt{\\sqrt{c}+\\sqrt{a}}}+\\frac{c^{2}}{\\sqrt{\\sqrt{a}+\\sqrt{b}}} \\geq \\frac{(a+b+c)^{2}}{\\sqrt{\\sqrt{b}+\\sqrt{c}}+\\sqrt{\\sqrt{c}+\\sqrt{a}}+\\sqrt{\\sqrt{a}+\\sqrt{b}}}\n$$\nUsing Cauchy-Schwarz inequality for three positive numbers $\\alpha$, $\\beta$, $\\gamma$, we have\n$$\n\\sqrt{\\alpha}+\\sqrt{\\beta}+\\sqrt{\\gamma} \\leq \\sqrt{3(\\alpha+\\beta+\\gamma)}\n$$\nUsing this result twice, we have\n$$\n\\begin{aligned}\n\\sqrt{\\sqrt{b}+\\sqrt{c}}+\\sqrt{\\sqrt{c}+\\sqrt{a}}+\\sqrt{\\sqrt{a}+\\sqrt{b}} & \\leq \\sqrt{6(\\sqrt{a}+\\sqrt{b}+\\sqrt{c})} \\\\\n& \\leq \\sqrt{6 \\sqrt{3(a+b+c)}}\n\\end{aligned}\n$$\nCombining (1) and (2) we get the desired result.\n\n\nAlternative solution by PSC. We will use Hölder's inequality in the form\n$$\n\\begin{aligned}\n& \\left(a_{11}+a_{12}+a_{13}\\right)\\left(a_{21}+a_{22}+a_{23}\\right)\\left(a_{31}+a_{32}+a_{33}\\right)\\left(a_{41}+a_{42}+a_{43}\\right) \\\\\n& \\quad \\geq\\left(\\left(a_{11} a_{21} a_{31} a_{41}\\right)^{1 / 4}+\\left(a_{12} a_{22} a_{32} a_{42}\\right)^{1 / 4}+\\left(a_{13} a_{23} a_{33} a_{43}\\right)^{1 / 4}\\right)^{4}\n\\end{aligned}\n$$\nwhere $a_{ij}$ are positive numbers. Using this appropriately we get\n$$\n\\begin{aligned}\n&(1+1+1)((\\sqrt{b}+\\sqrt{c})+(\\sqrt{c}+\\sqrt{a})+(\\sqrt{a}+\\sqrt{b}))\\left(\\frac{a^{2}}{\\sqrt{\\sqrt{b}+\\sqrt{c}}}+\\frac{b^{2}}{\\sqrt{\\sqrt{c}+\\sqrt{a}}}+\\frac{c^{2}}{\\sqrt{\\sqrt{a}+\\sqrt{b}}}\\right)^{2} \\\\\n& \\geq(a+b+c)^{4}\n\\end{aligned}\n$$\nBy the Cauchy-Schwarz inequality we have\n$$\n(\\sqrt{b}+\\sqrt{c})+(\\sqrt{c}+\\sqrt{a})+(\\sqrt{a}+\\sqrt{b})=2(\\sqrt{a}+\\sqrt{b}+\\sqrt{c}) \\leq 2 \\sqrt{3(a+b+c)}\n$$\nCombining these two inequalities we get the desired result.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34460, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind the maximum positive integer $k$ such that for any positive integers $m, n$ such that $m^{3}+n^{3}>(m+n)^{2}$, we have\n$$\nm^{3}+n^{3} \\geq (m+n)^{2}+k\n$$", "options": [], "answer": "10", "solution": "Solution:\nWe see that for $m=3$ and $n=2$ we have $m^{3}+n^{3}>(m+n)^{2}$, thus\n$$\n3^{3}+2^{3} \\geq (3+2)^{2}+k \\Rightarrow k \\leq 10\n$$\nWe will show that $k=10$ is the desired maximum. In other words, we have to prove that\n$$\nm^{3}+n^{3} \\geq (m+n)^{2}+10\n$$\nThe last inequality is equivalent to\n$$\n(m+n)\\left(m^{2}+n^{2}-m n-m-n\\right) \\geq 10\n$$\nIf $m+n=2$ or $m+n=3$, then $(m, n)=(1,1),(1,2),(2,1)$ and we can check that none of them satisfies the condition $m^{3}+n^{3}>(m+n)^{2}$.\nIf $m+n=4$, then $(m, n)=(1,3),(2,2),(3,1)$. The pair $(m, n)=(2,2)$ doesn't satisfy the condition. The pairs $(m, n)=(1,3),(3,1)$ satisfy the condition and we can readily check that $m^{3}+n^{3} \\geq (m+n)^{2}+10$.\nIf $m+n \\geq 5$ then we will show that\n$$\nm^{2}+n^{2}-m n-m-n \\geq 2\n$$\nwhich is equivalent to\n$$\n(m-n)^{2}+(m-1)^{2}+(n-1)^{2} \\geq 6\n$$\nIf at least one of the numbers $m, n$ is greater or equal to 4 then $(m-1)^{2} \\geq 9$ or $(n-1)^{2} \\geq 9$ hence the desired result holds. As a result, it remains to check what happens if $m \\leq 3$ and $n \\leq 3$. Using the condition $m+n \\geq 5$ we have that all such pairs are $(m, n)=(2,3),(3,2),(3,3)$.\nAll of them satisfy the condition and also the inequality $m^{2}+n^{2}-m n-m-n \\geq 2$, thus we have the desired result.\n\n\nAlternative solution by PSC. The problem equivalently asks for to find the minimum value of\n$$\nA=(m+n)\\left(m^{2}+n^{2}-m n-m-n\\right)\n$$\ngiven that $(m+n)\\left(m^{2}+n^{2}-m n-m-n\\right)>0$. If $m=n$, we get that $m>2$ and\n$$\nA=2 m\\left(m^{2}-2 m\\right) \\geq 6\\left(3^{2}-6\\right)=18\n$$\nSuppose without loss of generality that $m>n$. If $n=1$, then $m(m+1)(m-2)>0$, therefore $m>2$ and\n$$\nA \\geq 3 \\cdot(3+1) \\cdot(3-2)=12\n$$\nIf $n \\geq 2$, then since $m \\geq n+1$ we have\n$$\nA=(m+n)\\left(m(m-n-1)+n^{2}-n\\right) \\geq (2 n+1)\\left(n^{2}-n\\right) \\geq 5\\left(2^{2}-2\\right)=10\n$$\nIn all cases $A \\geq 10$ and the equality holds if $m=n+1$ and $n=2$, therefore if $m=3$ and $n=2$. It follows that the maximum $k$ is $k=10$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34461, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $a, b, c$ be positive real numbers. Prove that\n$$\n\\frac{1}{a b(b+1)(c+1)}+\\frac{1}{b c(c+1)(a+1)}+\\frac{1}{c a(a+1)(b+1)} \\geq \\frac{3}{(1+a b c)^{2}}\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\nThe required inequality is equivalent to\n$$\n\\frac{c(a+1)+a(b+1)+b(c+1)}{a b c(a+1)(b+1)(c+1)} \\geq \\frac{3}{(1+a b c)^{2}}\n$$\nor equivalently to,\n$$\n(1+a b c)^{2}(a b+b c+c a+a+b+c) \\geq 3 a b c(a b+b c+c a+a+b+c+a b c+1)\n$$\nLet $m=a+b+c, n=a b+b c+c a$ and $x^{3}=a b c$, then the above can be rewritten as\n$$\n(m+n)\\left(1+x^{3}\\right)^{2} \\geq 3 x^{3}\\left(x^{3}+m+n+1\\right)\n$$\nor\n$$\n(m+n)\\left(x^{6}-x^{3}+1\\right) \\geq 3 x^{3}\\left(x^{3}+1\\right)\n$$\nBy the AM-GM inequality we have $m \\geq 3 x$ and $n \\geq 3 x^{2}$, hence $m+n \\geq 3 x(x+1)$. It is sufficient to prove that\n$$\n\\begin{aligned}\nx(x+1)\\left(x^{6}-x^{3}+1\\right) & \\geq x^{3}(x+1)\\left(x^{2}-x+1\\right) \\\\\n3\\left(x^{6}-x^{3}+1\\right) & \\geq x^{2}\\left(x^{2}-x+1\\right) \\\\\n\\left(x^{2}-1\\right)^{2} & \\geq 0\n\\end{aligned}\n$$\nwhich is true.\n\n\nAlternative solution by PSC. We present here an approach without fully expanding.\nLet $a b c=k^{3}$ and set $a=k \\frac{x}{y}, b=k \\frac{y}{z}, c=k \\frac{z}{x}$, where $k, x, y, z>0$. Then, the inequality can be rewritten as\n$$\n\\frac{z^{2}}{(k y+z)(k z+x)}+\\frac{x^{2}}{(k z+x)(k x+y)}+\\frac{y^{2}}{(k x+y)(k y+z)} \\geq \\frac{3 k^{2}}{\\left(1+k^{3}\\right)^{2}}\n$$\nUsing the Cauchy-Schwarz inequality we have that\n$$\n\\sum_{\\text{cyclic}} \\frac{z^{2}}{(k y+z)(k z+x)} \\geq \\frac{(x+y+z)^{2}}{(k y+z)(k z+x)+(k z+x)(k x+y)+(k x+y)(k y+z)}\n$$\ntherefore it suffices to prove that\n$$\n\\frac{(x+y+z)^{2}}{(k y+z)(k z+x)+(k z+x)(k x+y)+(k x+y)(k y+z)} \\geq \\frac{3 k^{2}}{\\left(1+k^{3}\\right)^{2}}\n$$\nor\n$$\n\\left(\\left(1+k^{3}\\right)^{2}-3 k^{3}\\right)\\left(x^{2}+y^{2}+z^{2}\\right) \\geq\\left(3 k^{2}\\left(k^{2}+k+1\\right)-2\\left(1+k^{3}\\right)^{2}\\right)(x y+y z+z x)\n$$\nSince $x^{2}+y^{2}+z^{2} \\geq x y+y z+z x$ and $\\left(1+k^{3}\\right)^{2}-3 k^{3}>0$, it is enough to prove that\n$$\n\\left(1+k^{3}\\right)^{2}-3 k^{3} \\geq 3 k^{2}\\left(k^{2}+k+1\\right)-2\\left(1+k^{3}\\right)^{2}\n$$\nor\n$$\n(k-1)^{2}\\left(k^{2}+1\\right)(k+1)^{2} \\geq 0\n$$\nwhich is true.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34462, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $a, b, c, d$ and $x, y, z, t$ be real numbers such that\n$$\n0 \\leq a, b, c, d \\leq 1, \\quad x, y, z, t \\geq 1 \\text{ and } a+b+c+d+x+y+z+t=8\n$$\nProve that\n$$\na^{2}+b^{2}+c^{2}+d^{2}+x^{2}+y^{2}+z^{2}+t^{2} \\leq 28\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\nWe observe that if $u \\leq v$ then by replacing $(u, v)$ with $(u-\\varepsilon, v+\\varepsilon)$, where $\\varepsilon>0$, the sum of squares increases. Indeed,\n$$\n(u-\\varepsilon)^{2}+(v+\\varepsilon)^{2}-u^{2}-v^{2}=2 \\varepsilon(v-u)+2 \\varepsilon^{2}>0\n$$\nThen, denoting\n$$\nE(a, b, c, d, x, y, z, t)=a^{2}+b^{2}+c^{2}+d^{2}+x^{2}+y^{2}+z^{2}+t^{2}\n$$\nand assuming without loss of generality that $a \\leq b \\leq c \\leq d$ and $x \\leq y \\leq z \\leq t$, we have\n$$\n\\begin{aligned}\nE(a, b, c, d, x, y, z, t) & \\leq E(0,0,0,0, a+x, b+y, c+z, d+t) \\\\\n& \\leq E(0,0,0,0,1, b+y, c+z, a+d+x+t-1) \\\\\n& \\leq E(0,0,0,0,1,1, c+z, a+b+d+x+y+t-2) \\\\\n& \\leq E(0,0,0,0,1,1,1,5)=28\n\\end{aligned}\n$$\nNote that if $(a, b, c, d, x, y, z, t) \\neq(0,0,0,0,1,1,1,5)$, at least one of the above inequalities, obtained by the $\\epsilon$ replacement mentioned above, should be a strict inequality. Thus, the maximum value of $E$ is 28, and it is obtained only for $(a, b, c, d, x, y, z, t)=(0,0,0,0,1,1,1,5)$ and permutations of $a, b, c, d$ and of $x, y, z, t$.\n\n\nAlternative solution by PSC.\nSince $0 \\leq a, b, c, d \\leq 1$ we have that $a^{2} \\leq a, b^{2} \\leq b, c^{2} \\leq c$ and $d^{2} \\leq d$. It follows that\n$$\na^{2}+b^{2}+c^{2}+d^{2} \\leq a+b+c+d\n$$\nMoreover, using the fact that $y+z+t \\geq 3$, we get that $x \\leq 5$. This means that\n$$\n(x-1)(x-5) \\leq 0 \\Longleftrightarrow x^{2} \\leq 6 x-5\n$$\nSimilarly we prove that $y^{2} \\leq 6 y-5, z^{2} \\leq 6 z-5$ and $t^{2} \\leq 6 t-5$. Adding them we get\n$$\nx^{2}+y^{2}+z^{2}+t^{2} \\leq 6(x+y+z+t)-20\n$$\nAdding (1) and (2) we have that\n$$\n\\begin{aligned}\na^{2}+b^{2}+c^{2}+d^{2}+x^{2}+y^{2}+z^{2}+t^{2} & \\leq a+b+c+d+6(x+y+z+t)-20 \\\\\n& \\leq 6(a+b+c+d+x+y+z+t)-20=28\n\\end{aligned}\n$$\nWe can readily check that the equality holds if and only if $(a, b, c, d, x, y, z, t)=(0,0,0,0,1,1,1,5)$ and permutations of $a, b, c, d$ and of $x, y, z, t$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34463, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $a$, $b$, $c$ be positive numbers such that $ab + bc + ca = 3$. Prove that\n$$\n\\frac{a}{\\sqrt{a^{3}+5}} + \\frac{b}{\\sqrt{b^{3}+5}} + \\frac{c}{\\sqrt{c^{3}+5}} \\leq \\frac{\\sqrt{6}}{2}\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\nFrom the AM-GM inequality we have\n$$\na^{3} + a^{3} + 1 \\geq 3a^{2} \\Rightarrow 2(a^{3} + 5) \\geq 3(a^{2} + 3)\n$$\nUsing the condition $ab + bc + ca = 3$, we get\n$$\n(a^{3} + 5) \\geq 3(a^{2} + ab + bc + ca) = 3(c + a)(a + b)\n$$\ntherefore\n$$\n\\frac{a}{\\sqrt{a^{3} + 5}} \\leq \\sqrt{\\frac{2a^{2}}{3(c + a)(a + b)}}\n$$\nUsing again the AM-GM inequality we get\n$$\n\\sqrt{\\frac{2a^{2}}{3(c + a)(a + b)}} \\leq \\sqrt{\\frac{2}{3}} \\left( \\frac{\\frac{a}{c + a} + \\frac{a}{a + b}}{2} \\right) = \\frac{\\sqrt{6}}{6} \\left( \\frac{a}{c + a} + \\frac{a}{a + b} \\right)\n$$\nFrom (1) and (2) we obtain\n$$\n\\frac{a}{\\sqrt{a^{3} + 5}} \\leq \\frac{\\sqrt{6}}{6} \\left( \\frac{a}{c + a} + \\frac{a}{a + b} \\right)\n$$\nSimilar inequalities hold by cyclic permutations of the $a, b, c$. Adding all these we get\n$$\n\\sum_{\\text{cyclic}} \\frac{a}{\\sqrt{a^{3} + 5}} \\leq \\sum_{\\text{cyc}} \\frac{\\sqrt{6}}{6} \\left( \\frac{a}{c + a} + \\frac{a}{a + b} \\right) = \\frac{\\sqrt{6}}{6} \\cdot 3 = \\frac{\\sqrt{6}}{2}\n$$\nwhich is the desired result.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34464, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $A$ be a set of positive integers with the following properties:\n(a) If $n$ is an element of $A$ then $n \\leqslant 2018$.\n(b) If $S$ is a subset of $A$ with $|S|=3$ then there are two elements $n, m$ of $S$ with $|n-m| \\geqslant \\sqrt{n}+\\sqrt{m}$.\nWhat is the maximum number of elements that $A$ can have?", "options": [], "answer": "88", "solution": "Solution:\nAssuming $n>m$ we have\n$$\n\\begin{aligned}\n|n-m| \\geqslant \\sqrt{n}+\\sqrt{m} & \\Leftrightarrow (\\sqrt{n}-\\sqrt{m})(\\sqrt{n}+\\sqrt{m}) \\geqslant \\sqrt{n}+\\sqrt{m} \\\\\n& \\Leftrightarrow \\sqrt{n} \\geqslant \\sqrt{m}+1 .\n\\end{aligned}\n$$\nLet $A_{k}=\\{k^{2}, k^{2}+1, \\ldots,(k+1)^{2}-1\\}$. Note that each $A_{k}$ can contain at most two elements of $A$ since if $n, m \\in A_{k}$ with $n>m$ then\n$$\n\\sqrt{n}-\\sqrt{m} \\leqslant \\sqrt{(k+1)^{2}-1}-\\sqrt{k^{2}}<(k+1)-k=1\n$$\nIn particular, since $A \\subseteq A_{1} \\cup \\cdots \\cup A_{44}$, we have $|A| \\leqslant 2 \\cdot 44=88$.\n\nOn the other hand we claim that $A=\\{m^{2}: 1 \\leqslant m \\leqslant 44\\} \\cup\\{m^{2}+m: 1 \\leqslant m \\leqslant 44\\}$ satisfies the properties and has $|A|=88$. We check property (b) as everything else is trivial.\n\nSo let $r, s, t$ be three elements of $A$ and assume $r A C$, inscribed in a circle $\\Gamma$. The circle with centre $C$ and radius $C B$ intersects $\\Gamma$ at the point $D$, which is on the arc $A B$ not containing $C$. The circle with centre $C$ and radius $C A$ intersects the segment $C D$ at the point $K$. The line parallel to $B D$ through $K$, intersects $A B$ at point $L$. If $M$ is the midpoint of $A B$ and $N$ is the foot of the perpendicular from $H$ to $C L$, prove that the line $M N$ bisects the segment $C H$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nWe use standard notation for the angles of triangle $A B C$. Let $P$ be the midpoint of $C H$ and $O$ the centre of $\\Gamma$. As\n$$\n\\alpha = \\angle B A C = \\angle B D C = \\angle D K L\n$$\nthe quadrilateral $A C K L$ is cyclic. From the relation $C B = C D$ we get $\\angle B C D = 180^\\circ - 2 \\alpha$, so\n$$\n\\angle A C K = \\gamma + 2 \\alpha - 180^\\circ\n$$\nwhere $\\gamma = \\angle A C B$. From the relation $C K = C A$ we get\n$$\n\\angle A L C = \\angle A K C = 180^\\circ - \\alpha - \\frac{\\gamma}{2}\n$$\nand thus from the triangle $A C L$ we obtain\n$$\n\\angle A C L = 180^\\circ - \\alpha - \\angle A L C = \\frac{\\gamma}{2}\n$$\nwhich means that $C L$ is the angle bisector of $\\angle A C B$, thus $\\angle A C L = \\angle B C L$. Moreover, from the fact that $C H \\perp A B$ and the isosceles triangle $B O C$ has $\\angle B O C = 2 \\alpha$, we get $\\angle A C H = \\angle B C O = 90^\\circ - \\alpha$. It follows that,\n$$\n\\angle N P H = 2 \\angle N C H = \\angle O C H\n$$\n![](attached_image_1.png)\nOn the other hand, it is known that $2 C P = C H = 2 O M$ and $C P \\parallel O M$, so $C P M O$ is a parallelogram and\n$$\n\\angle M P H = \\angle O C H\n$$\nNow from (3) and (4) we obtain that\n$$\n\\angle M P H = \\angle N P H,\n$$\nwhich means that the points $M, N, P$ are collinear.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34467, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $ABC$ be a triangle with side-lengths $a$, $b$, $c$, inscribed in a circle with radius $R$ and let $I$ be its incenter. Let $P_{1}$, $P_{2}$ and $P_{3}$ be the areas of the triangles $ABI$, $BCI$ and $CAI$, respectively. Prove that\n$$\n\\frac{R^{4}}{P_{1}^{2}}+\\frac{R^{4}}{P_{2}^{2}}+\\frac{R^{4}}{P_{3}^{2}} \\geq 16\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\nLet $r$ be the radius of the inscribed circle of the triangle $ABC$. We have that\n$$\nP_{1}=\\frac{r c}{2}, \\quad P_{2}=\\frac{r a}{2}, \\quad P_{3}=\\frac{r b}{2}\n$$\nIt follows that\n$$\n\\frac{1}{P_{1}^{2}}+\\frac{1}{P_{2}^{2}}+\\frac{1}{P_{3}^{2}}=\\frac{4}{r^{2}}\\left(\\frac{1}{c^{2}}+\\frac{1}{a^{2}}+\\frac{1}{b^{2}}\\right)\n$$\nFrom Leibniz's relation we have that if $H$ is the orthocenter, then\n$$\nOH^{2}=9 R^{2}-a^{2}-b^{2}-c^{2}\n$$\nIt follows that\n$$\n9 R^{2} \\geq a^{2}+b^{2}+c^{2}\n$$\nTherefore, using the AM-HM inequality and then (1), we get\n$$\n\\frac{1}{c^{2}}+\\frac{1}{a^{2}}+\\frac{1}{b^{2}} \\geq \\frac{9}{a^{2}+b^{2}+c^{2}} \\geq \\frac{1}{R^{2}}\n$$\nFinally, using Euler's inequality, namely that $R \\geq 2 r$, we get\n$$\n\\frac{1}{P_{1}^{2}}+\\frac{1}{P_{2}^{2}}+\\frac{1}{P_{3}^{2}} \\geq \\frac{4}{r^{2} R^{2}} \\geq \\frac{16}{R^{4}}\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34468, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nGiven a rectangle $ABCD$ such that $AB = b > 2a = BC$, let $E$ be the midpoint of $AD$. On a line parallel to $AB$ through point $E$, a point $G$ is chosen such that the area of $GCE$ is\n$$\n(GCE) = \\frac{1}{2}\\left(\\frac{a^{3}}{b} + ab\\right)\n$$\nPoint $H$ is the foot of the perpendicular from $E$ to $GD$ and a point $I$ is taken on the diagonal $AC$ such that the triangles $ACE$ and $AEI$ are similar. The lines $BH$ and $IE$ intersect at $K$ and the lines $CA$ and $EH$ intersect at $J$. Prove that $KJ \\perp AB$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nLet $L$ be the foot of the perpendicular from $G$ to $EC$ and let $Q$ be the point of intersection of the lines $EG$ and $BC$. Then,\n$$\n(GCE) = \\frac{1}{2} EC \\cdot GL = \\frac{1}{2} \\sqrt{a^{2} + b^{2}} \\cdot GL\n$$\nSo, $GL = \\frac{a}{b} \\sqrt{a^{2} + b^{2}}$.\n\n![](attached_image_1.png)\n\nObserving that the triangles $QCE$ and $ELG$ are similar, we have $\\frac{a}{b} = \\frac{GL}{EL}$, which implies that $EL = \\sqrt{a^{2} + b^{2}}$, or in other words $L \\equiv C$.\n\nConsider the circumcircle $\\omega$ of the triangle $EBC$. Since\n$$\n\\angle EBG = \\angle ECG = \\angle EHG = 90^{\\circ}\n$$\nthe points $H$ and $G$ lie on $\\omega$.\n\nFrom the given similarity of the triangles $ACE$ and $AEI$, we have that\n$$\n\\angle AIE = \\angle AEC = 90^{\\circ} + \\angle GEC = 90^{\\circ} + \\angle GHC = \\angle EHC\n$$\ntherefore $EHCI$ is cyclic, thus $I$ lies on $\\omega$.\n\nSince $EB = EC$, we get that $\\angle EIC = \\angle EHB$, thus $\\angle JIE = \\angle EHK$. We conclude that $JIH K$ is cyclic, therefore\n$$\n\\angle JKH = \\angle HIC = \\angle HBC\n$$\nIt follows that $KJ \\parallel BC$, so $KJ \\perp AB$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34469, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $X Y$ be a chord of a circle $\\Omega$, with center $O$, which is not a diameter. Let $P, Q$ be two distinct points inside the segment $X Y$, where $Q$ lies between $P$ and $X$. Let $\\ell$ the perpendicular line dropped from $P$ to the diameter which passes through $Q$. Let $M$ be the intersection point of $\\ell$ and $\\Omega$, which is closer to $P$. Prove that\n$$\nM P \\cdot X Y \\geq 2 \\cdot Q X \\cdot P Y\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution by PSC. At first, we will allow $P$ and $Q$ to coincide, and we will prove the inequality in this case. Let the perpendicular from $Q$ to $O Q$ meet $\\Omega$ at $B$ and $C$. Then, we have that $Q B=Q C$. We will show that\n$$\nB Q \\cdot X Y \\geq 2 Q X \\cdot Q Y\n$$\nBy the power of a point Theorem we have that\n$$\nQ X \\cdot Q Y=Q B \\cdot Q C=Q B^{2}\n$$\ntherefore it is enough to prove that $X Y \\geq 2 B Q$ or $X Y \\geq B C$. Let $T$ be the foot of the perpendicular from $O$ to $X Y$. Then, from the right-angled triangle $O T Q$ we have that $O T \\leq O Q$, so the distance from $O$ to the chord $X Y$ is smaller or equal to the distance from $O$ to the chord $B C$. This means that $X Y \\geq B C$, so (1) holds.\n\n![](attached_image_1.png)\n\nBack to the initial problem, we have to prove that\n$$\nM P \\cdot X Y \\geq 2 Q X \\cdot P Y \\Longleftrightarrow \\frac{X Y}{2 Q X} \\geq \\frac{P Y}{P M}\n$$\nBy (1) we have that\n$$\n\\frac{X Y}{2 Q X} \\geq \\frac{Q Y}{Q B}\n$$\nso it is enough to prove that\n$$\n\\frac{Q Y}{Q B} \\geq \\frac{P Y}{P M}\n$$\nIf $C B$ meets $Y M$ at $S$, then from $M P \\| Q S$ we get\n$$\n\\frac{Q Y}{Q B} \\geq \\frac{Q Y}{Q S}=\\frac{P Y}{P M}\n$$\nwhich is the desired.\n\n\nWe will show that $(Q M-Q P) \\cdot X Y \\geq 2 \\cdot Q X \\cdot P Y$. Since $M P \\geq Q M-Q P$, our inequality follows directly. Let $A$ the intersection point of $\\ell$ with the diameter which passes through $Q$. Like in the following picture, choose a coordinative system centered at $O$ and such that $Q=(a, 0), A=(c, 0)$, $P=(c, h)$ and denote the lengths $Q X=x, P Q=t, P Y=y, O P=d, Q M=z$.\nLet $\\lambda_{Q}=r^{2}-a^{2}$ and $\\lambda_{P}=r^{2}-d^{2}$ respectively the power of $Q$ and $P$ with respect to our circle $\\Omega$. We will show that:\n$$\n(z-t)(t+x+y) \\geq 2 x y\n$$\n![](attached_image_2.png)\n\nAdding and multiplying respectively the relations $x(t+y)=\\lambda_{Q}$ and $y(t+x)=\\lambda_{P}$, we will have\n$$\nt(x+y)+2 x y=\\lambda_{P}+\\lambda_{Q}\n$$\nand\n$$\nx y(t+x)(t+y)=\\lambda_{P} \\lambda_{Q}\n$$\nUsing these two equations, it's easy to deduce that:\n$$\n(x y)^{2}-x y\\left(t^{2}+\\lambda_{P}+\\lambda_{Q}\\right)+\\lambda_{P} \\lambda_{Q}=0\n$$\nSo, $w_{1}=x y$ is a zero of the second degree polynomial:\n$$\np(w)=w^{2}-w\\left(t^{2}+\\lambda_{P}+\\lambda_{Q}\\right)+\\lambda_{P} \\lambda_{Q}\n$$\nBut $w_{1}=x y 2$ then, without loss of generality, let $a > b$ and $a \\geq 2$. Putting $a = x + 1$ with $x \\geq 1$, we have\n$$\n\\begin{aligned}\n\\left|a^{5} - b^{5}\\right| & = \\left|(x + 1)^{5} - b^{5}\\right| \\\\\n& \\geq \\left|(x + 1)^{5} - x^{5}\\right| \\\\\n& = \\left|5 x^{4} + 10 x^{3} + 10 x^{2} + 5 x + 1\\right| \\geq 31\n\\end{aligned}\n$$\nwhich is impossible. Thus, the only solutions are $(x, y) = (0, 0)$ or $(-2, 2)$.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34471, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nShow that there exist infinitely many positive integers $n$ such that\n$$\n\\frac{4^{n}+2^{n}+1}{n^{2}+n+1}\n$$\nis an integer.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nLet $f(n) = n^{2} + n + 1$. Note that\n$$\nf\\left(n^{2}\\right) = n^{4} + n^{2} + 1 = \\left(n^{2} + n + 1\\right)\\left(n^{2} - n + 1\\right)\n$$\nThis means that $f(n) \\mid f\\left(n^{2}\\right)$ for every positive integer $n$. By induction on $k$, one can easily see that $f(n) \\mid f\\left(n^{2^{k}}\\right)$ for every positive integers $n$ and $k$. Note that the required condition is equivalent to $f(n) \\mid f\\left(2^{n}\\right)$. From the discussion above, if there exists a positive integer $n$ so that $2^{n}$ can be written as $n^{2^{k}}$, for some positive integer $k$, then $f(n) \\mid f\\left(2^{n}\\right)$. If we choose $n = 2^{2^{m}}$ and $k = 2^{m} - m$ for some positive integer $m$, then $2^{n} = n^{2^{k}}$ and since there are infinitely many positive integers of the form $n = 2^{2^{m}}$, we have the desired result.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34472, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nReal numbers $a$ and $b$ satisfy $a^{3}+b^{3}-6 a b=-11$. Prove that $-\\frac{7}{3}18\n$$\nHere, we have used the fact that $a+b<-2$, which we have proved earlier. Since $a+b+2$ is negative, it immediately implies that $a+b+2< -\\frac{2 \\cdot 3}{18} = -\\frac{1}{3}$, i.e. $a+b< -\\frac{7}{3}$ which we wanted.\nSolution:\n\nWriting $s=a+b$ and $p=a b$ we have\n$$\na^{3}+b^{3}-6 a b=(a+b)\\left(a^{2}-a b+b^{2}\\right)-6 a b=s\\left(s^{2}-3 p\\right)-6 p=s^{3}-3 p s-6 p\n$$\nThis gives $3 p(s+2)=s^{3}+11$. Thus $s \\neq -2$ and using the fact that $s^{2} \\geqslant 4 p$ we get\n$$\np=\\frac{s^{3}+11}{3(s+2)} \\leqslant \\frac{s^{2}}{4}\n$$\nIf $s>-2$, then (1) gives $s^{3}-6 s^{2}+44 \\leqslant 0$. This is impossible as\n$$\ns^{3}-6 s^{2}+44=(s+2)(s-4)^{2}+8>0\n$$\nSo $s<-2$. Then from (1) we get $s^{3}-6 s^{2}+44 \\geqslant 0$. If $s< -\\frac{7}{3}$ this is again impossible as $s^{3}-6 s^{2}=s^{2}(s-6)< -\\frac{49}{9} \\cdot \\frac{25}{3}<-44$. (Since $49 \\cdot 25=1225>1188=44 \\cdot 27$.) So $-\\frac{7}{3}a+b+c\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\nBy the Cauchy-Schwarz Inequality, we have\n$$\n\\frac{1}{a+b+c}+\\frac{1}{a+c} \\geqslant \\frac{4}{2 a+b+2 c}\n$$\nand\n$$\n\\frac{1}{b+c}+\\frac{1}{a+b} \\geqslant \\frac{4}{a+2 b+c}\n$$\nSince\n$$\na^{2}+a c+c^{2}=\\frac{3}{4}(a+c)^{2}+\\frac{1}{4}(a-c)^{2} \\geqslant \\frac{3}{4}(a+c)^{2}\n$$\nthen, writing $L$ for the Left Hand Side of the required inequality, we get\n$$\nL \\geqslant \\frac{3(a+c)^{2}}{2 a+b+2 c}+\\frac{4 b^{2}}{a+2 b+c}\n$$\nUsing again the Cauchy-Schwarz Inequality, we have:\n$$\nL \\geqslant \\frac{(\\sqrt{3}(a+c)+2 b)^{2}}{3 a+3 b+3 c}>\\frac{(\\sqrt{3}(a+c)+\\sqrt{3} b)^{2}}{3 a+3 b+3 c}=a+b+c\n$$\nAlternative Solution by PSC:\nThe required inequality is equivalent to\n$$\n\\left[\\frac{b^{2}}{a+b}-(b-a)\\right]+\\frac{b^{2}}{b+c}+\\left[\\frac{a^{2}+a c+c^{2}}{a+c}-a\\right]+\\left[\\frac{a^{2}+a c+c^{2}}{a+b+c}-(a+c)\\right]>0\n$$\nor equivalently, to\n$$\n\\frac{a^{2}}{a+b}+\\frac{b^{2}}{b+c}+\\frac{c^{2}}{c+a}>\\frac{a b+b c+c a}{a+b+c}\n$$\nHowever, by the Cauchy-Schwarz Inequality we have\n$$\n\\frac{a^{2}}{a+b}+\\frac{b^{2}}{b+c}+\\frac{c^{2}}{c+a} \\geqslant \\frac{(a+b+c)^{2}}{2(a+b+c)} \\geqslant \\frac{3(a b+b c+c a)}{2(a+b+c)}>\\frac{a b+b c+c a}{a+b+c}\n$$", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34476, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $S$ be a set of 100 positive integer numbers having the following property:\n\"Among every four numbers of $S$, there is a number which divides each of the other three or there is a number which is equal to the sum of the other three.\"\nProve that the set $S$ contains a number which divides all other 99 numbers of $S$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nLet $a < b$ be the two smallest numbers of $S$ and let $d$ be the largest number of $S$. Consider any two other numbers $x < y$ of $S$. For the quadruples $(a, b, x, d)$ and $(a, b, y, d)$ we cannot get both of $d = a + b + x$ and $d = a + b + y$, since $a + b + x < a + b + y$. From here, we get $a \\mid b$ and $a \\mid d$.\n\nConsider any number $s$ of $S$ different from $a, b, d$. From the condition of the problem, we get $d = a + b + s$ or $a$ divides $b, s$ and $d$. But since we already know that $a$ divides $b$ and $d$ anyway, we also get that $a \\mid s$, as in the first case we have $s = d - a - b$. This means that $a$ divides all other numbers of $S$.\nSolution:\n\nOrder the elements of $S$ as $x_{1} < x_{2} < \\cdots < x_{100}$.\n\nFor $2 \\leqslant k \\leqslant 97$, looking at the quadruples $(x_{1}, x_{k}, x_{k+1}, x_{k+2})$ and $(x_{1}, x_{k}, x_{k+1}, x_{k+3})$, we get that $x_{1} \\mid x_{k}$ as alternatively, we would have $x_{k+2} = x_{1} + x_{k} + x_{k+1} = x_{k+3}$, a contradiction.\n\nFor $5 \\leqslant k \\leqslant 100$, looking at the quadruples $(x_{1}, x_{k-2}, x_{k-1}, x_{k})$ and $(x_{1}, x_{k-3}, x_{k-1}, x_{k})$ we get that $x_{1} \\mid x_{k}$ as alternatively, we would have $x_{k} = x_{1} + x_{k-2} + x_{k-1} = x_{1} + x_{k-3} + x_{k-1}$, a contradiction.\n\nSo $x_{1}$ divides all other elements of $S$.\nSolution:\n\nThe condition that one element is the sum of the other three cannot be satisfied by all quadruples. So we have four elements such that one divides the other three. Suppose inductively that we have a subset $S'$ of $S$ with $|S'| = k \\geqslant 4$ such that there is $x \\in S'$ with $x \\mid y$ for every $y \\in S'$. Pick $s \\in S \\setminus S'$ and $y, z \\in S'$ different from $x$. Considering $(s, x, y, z)$ either $s \\mid x$, or $x \\mid s$ or one of the four is a sum of the other three. In the last case we have $s = \\pm x \\pm y \\pm z$ and so $x \\mid s$. In any case either $x$ or $s$ divides all elements of $S' \\cup \\{s\\}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34477, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn a certain city there are $n$ straight streets, such that every two streets intersect, and no three streets pass through the same intersection. The City Council wants to organize the city by designating the main and the side street on every intersection. Prove that this can be done in such way that if one goes along one of the streets, from its beginning to its end, the intersections where this street is the main street, and the ones where it is not, will appear in alternating order.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nPick any street $s$ and organize the intersections along $s$ such that the intersections of the two types alternate, as in the statement of the problem.\n\nOn every other street $s_{1}$, exactly one intersection has been organized, namely the one where $s_{1}$ intersects $s$. Call this intersection $I_{1}$. We want to organize the intersections along $s_{1}$ such that they alternate between the two types. Note that, as $I_{1}$ is already organized, we have exactly one way to organize the remaining intersections along $s_{1}$.\n\nFor every street $s_{1} \\neq s$, we can apply the procedure described above. Now, we only need to show that every intersection not on $s$ is well-organized. More precisely, this means that for every two streets $s_{1}, s_{2} \\neq s$ intersecting at $s_{1} \\cap s_{2}=A$, $s_{1}$ is the main street on $A$ if and only if $s_{2}$ is the side street on $A$.\n\nConsider also the intersections $I_{1}=s_{1} \\cap s$ and $I_{2}=s_{2} \\cap s$. Now, we will define the \"role\" of the street $t$ at the intersection $X$ as \"main\" if this street $t$ is the main street on $X$, and \"side\" otherwise. We will prove that the roles of $s_{1}$ and $s_{2}$ at $A$ are different.\n\nConsider the path $A \\rightarrow I_{1} \\rightarrow I_{2} \\rightarrow A$. Let the number of intersections between $A$ and $I_{1}$ be $u_{1}$, the number of these between $A$ and $I_{2}$ be $u_{2}$, and the number of these between $I_{1}$ and $I_{2}$ be $v$. Now, if we go from $A$ to $I_{1}$, we will change our role $u_{1}+1$ times, as we will encounter $u_{1}+1$ new intersections. Then, we will change our street from $s_{1}$ to $s$, changing our role once more. Then, on the segment $I_{1} \\rightarrow I_{2}$, we have $v+1$ new role changes, and after that one more when we change our street from $s_{1}$ to $s_{2}$. The journey from $I_{2}$ to $A$ will induce $u_{2}+1$ new role changes, so in total we have changed our role $u_{1}+1+1+v+1+1+u_{2}+1=u_{1}+v+u_{2}+5$, As we try to show that roles of $s_{1}$ and $s_{2}$ differ, we need to show that the number of role changes is odd, i.e. that $u_{1}+v+u_{2}+5$ is odd.\n\nObviously, this claim is equivalent to $2 \\mid u_{1}+v+u_{2}$. But $u_{1}, v$ and $u_{2}$ count the number of intersections of the triangle $A I_{1} I_{2}$ with streets other than $s, s_{1}, s_{2}$. Since every street other than $s, s_{1}, s_{2}$ intersects the sides of $A I_{1} I_{2}$ in exactly two points, the total number of intersections is even. As a consequence, $2 \\mid u_{1}+v+u_{2}$ as required.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34478, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nWe have a group of $n$ kids. For each pair of kids, at least one has sent a message to the other one. For each kid $A$, among the kids to whom $A$ has sent a message, exactly $25\\%$ have sent a message to $A$. How many possible two-digit values of $n$ are there?", "options": [], "answer": "26", "solution": "Solution:\n\nIf the number of pairs of kids with two-way communication is $k$, then by the given condition the total number of messages is $4k + 4k = 8k$. Thus the number of pairs of kids is $\\frac{n(n-1)}{2} = 7k$. This is possible only if $n \\equiv 0,1 \\pmod{7}$.\n\n- In order to obtain $n = 7m + 1$, arrange the kids in a circle and let each kid send a message to the first $4m$ kids to its right and hence receive a message from the first $4m$ kids to its left. Thus there are exactly $m$ kids to which it has both sent and received messages.\n\n- In order to obtain $n = 7m$, let kid $X$ send no messages (and receive from every other kid). Arrange the remaining $7m - 1$ kids in a circle and let each kid on the circle send a message to the first $4m - 1$ kids to its right and hence receive a message from the first $4m - 1$ kids to its left. Thus there are exactly $m$ kids to which it has both sent and received messages.\n\nThere are 26 two-digit numbers with remainder 0 or 1 modulo 7. (All numbers of the form $7m$ and $7m+1$ with $2 \\leqslant m \\leqslant 14$.)\nSolution:\n\nSuppose kid $x_{i}$ sent $4d_{i}$ messages. (Guaranteed by the conditions to be a multiple of 4.) Then it received $d_{i}$ messages from the kids that it has sent a message to, and another $n-1-4d_{i}$ messages from the rest of the kids. So it received a total of $n-1-3d_{i}$ messages. Since the total number of messages sent is equal to the total number of messages received, we must have:\n$$\nd_{1} + \\cdots + d_{n} = (n-1-3d_{1}) + \\cdots + (n-1-3d_{n})\n$$\nThis gives $7(d_{1} + \\cdots + d_{n}) = n(n-1)$ from which we get $n \\equiv 0,1 \\pmod{7}$ as in the first solution.\n\nWe also present an alternative inductive construction (which turns out to be different from the construction in the first solution).\n\nFor the case $n \\equiv 0 \\pmod{7}$, we start with a construction for $7k$ kids, say $x_{1}, \\ldots, x_{7k}$, and another construction with 7 kids, say $y_{1}, \\ldots, y_{7}$. We merge them by demanding that in addition, each kid $x_{i}$ sends and receives gifts according to the following table:\n\n| $i \\bmod 7$ | Sends | Receives |\n| :---: | :---: | :---: |\n| 0 | $y_{1}, y_{2}, y_{3}, y_{4}$ | $y_{4}, y_{5}, y_{6}, y_{7}$ |\n| 1 | $y_{2}, y_{3}, y_{4}, y_{5}$ | $y_{5}, y_{6}, y_{7}, y_{1}$ |\n| 2 | $y_{3}, y_{4}, y_{5}, y_{6}$ | $y_{6}, y_{7}, y_{1}, y_{2}$ |\n| 3 | $y_{4}, y_{5}, y_{6}, y_{7}$ | $y_{7}, y_{1}, y_{2}, y_{3}$ |\n| 4 | $y_{5}, y_{6}, y_{7}, y_{1}$ | $y_{1}, y_{2}, y_{3}, y_{4}$ |\n| 5 | $y_{6}, y_{7}, y_{1}, y_{2}$ | $y_{2}, y_{3}, y_{4}, y_{5}$ |\n| 6 | $y_{7}, y_{1}, y_{2}, y_{3}$ | $y_{3}, y_{4}, y_{5}, y_{6}$ |\n\nSo each kid $x_{i}$ sends an additional four messages and receives a message from only one of those four additional kids. Also, each kid $y_{j}$ sends an additional $4k$ messages and receives from exactly $k$ of those additional kids. So this is a valid construction for $7(k+1)$ kids.\n\nFor the case $n \\equiv 1 \\pmod{7}$, we start with a construction for $7k+1$ kids, say $x_{1}, \\ldots, x_{7k+1}$, and we take another 7 kids, say $y_{1}, \\ldots, y_{7}$ for which we do not yet mention how they exchange gifts. The kids $x_{1}, \\ldots, x_{7k+1}$ exchange gifts with the kids $y_{1}, \\ldots, y_{7}$ according to the previous table. As before, each kid $x_{i}$ satisfies the conditions. We now put $y_{1}, \\ldots, y_{7}$ on a circle and demand that each of $y_{1}, \\ldots, y_{3}$ sends gifts to the next four kids on the circle and each of $y_{4}, \\ldots, y_{7}$ sends gifts to the next three kids on the circle. It is easy to check that the condition is satisfied by each $y_{i}$ as well.", "topic": "Algebra", "subtopic": "Abstract Algebra" }, { "id": 34479, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAn economist and a statistician play a game on a calculator which does only one operation. The calculator displays only positive integers and it is used in the following way: Denote by $n$ an integer that is shown on the calculator. A person types an integer, $m$, chosen from the set $\\{1,2, \\ldots, 99\\}$ of the first 99 positive integers, and if $m \\%$ of the number $n$ is again a positive integer, then the calculator displays $m \\%$ of $n$. Otherwise, the calculator shows an error message and this operation is not allowed. The game consists of doing alternatively these operations and the player that cannot do the operation loses. How many numbers from $\\{1,2, \\ldots, 2019\\}$ guarantee the winning strategy for the statistician, who plays second?\n\nFor example, if the calculator displays 1200, the economist can type 50, giving the number 600 on the calculator, then the statistician can type 25 giving the number 150. Now, for instance, the economist cannot type 75 as $75 \\%$ of 150 is not a positive integer, but can choose 40 and the game continues until one of them cannot type an allowed number.", "options": [], "answer": "931", "solution": "Solution:\n\nFirst of all, the game finishes because the number on the calculator always decreases. By picking $m \\%$ of a positive integer $n$, players get the number\n$$\n\\frac{m \\cdot n}{100} = \\frac{m \\cdot n}{2^{2} 5^{2}}\n$$\nWe see that at least one of the powers of 2 and 5 that divide $n$ decreases after one move, as $m$ is not allowed to be 100, or a multiple of it. These prime divisors of $n$ are the only ones that can decrease, so we conclude that all the other prime factors of $n$ are not important for this game. Therefore, it is enough to consider numbers of the form $n = 2^{k} 5^{\\ell}$ where $k, \\ell \\in \\mathbb{N}_{0}$, and to draw conclusions from these numbers.\n\nWe will describe all possible changes of $k$ and $\\ell$ in one move. Since $5^{3} > 100$, then $\\ell$ cannot increase, so all possible changes are from $\\ell$ to $\\ell + b$, where $b \\in \\{0, -1, -2\\}$. For $k$, we note that $2^{6} = 64$ is the biggest power of 2 less than 100, so $k$ can be changed to $k + a$, where $a \\in \\{-2, -1, 0, 1, 2, 3, 4\\}$. But the changes of $k$ and $\\ell$ are not independent. For example, if $\\ell$ stays the same, then $m$ has to be divisible by 25, giving only two possibilities for a change $(k, \\ell) \\rightarrow (k-2, \\ell)$, when $m=25$ or $m=75$, or $(k, \\ell) \\rightarrow (k-1, \\ell)$, when $m=50$. Similarly, if $\\ell$ decreases by 1, then $m$ is divisible exactly by 5 and then the different changes are given by $(k, \\ell) \\rightarrow (k+a, \\ell-1)$, where $a \\in \\{-2, -1, 0, 1, 2\\}$, depending on the power of 2 that divides $m$ and it can be from $2^{0}$ to $2^{4}$. If $\\ell$ decreases by 2, then $m$ is not divisible by 5, so it is enough to consider when $m$ is a power of two, giving changes $(k, \\ell) \\rightarrow (k+a, \\ell-2)$, where $a \\in \\{-2, -1, 0, 1, 2, 3, 4\\}$.\n\nWe have translated the starting game into another game with changing (the starting pair of non-negative integers) $(k, \\ell)$ by moves described above and the player who cannot make the move loses, i.e. the player who manages to play the move $(k, \\ell) \\rightarrow (0,0)$ wins. We claim that the second player wins if and only if $3 \\mid k$ and $3 \\mid \\ell$.\n\nWe notice that all moves have their inverse modulo 3, namely after the move $(k, \\ell) \\rightarrow (k+a, \\ell+b)$, the other player plays $(k+a, \\ell+b) \\rightarrow (k+a+c, \\ell+b+d)$, where\n$$\n(c, d) \\in \\{(0,-1), (0,-2), (-1,0), (-1,-1), (-1,-2), (-2,0), (-2,-1), (-2,-2)\\}\n$$\nis chosen such that $3 \\mid a+c$ and $3 \\mid b+d$. Such $(c, d)$ can be chosen as all possible residues different from $(0,0)$ modulo 3 are contained in the set above and there is no move that keeps $k$ and $\\ell$ the same modulo 3. If the starting numbers $(k, \\ell)$ are divisible by 3, then after the move of the first player at least one of $k$ and $\\ell$ will not be divisible by 3, and then the second player will play the move so that $k$ and $\\ell$ become divisible by 3 again. In this way, the first player can never finish the game, so the second player wins. In all other cases, the first player will make such a move to make $k$ and $\\ell$ divisible by 3 and then he becomes the second player in the game, and by previous reasoning, wins.\n\nThe remaining part of the problem is to compute the number of positive integers $n \\leqslant 2019$ which are winning for the second player. Those are the $n$ which are divisible by exactly $2^{3k} 5^{3\\ell},\\ k, \\ell \\in \\mathbb{N}_{0}$. Here, exact divisibility by $2^{3k} 5^{3\\ell}$ in this context means that $2^{3k} \\| n$ and $5^{3\\ell} \\| n$, even for $\\ell=0$, or $k=0$. For example, if we say that $n$ is exactly divisible by 8, it means that $8 \\mid n, 16 \\nmid n$ and $5 \\nmid n$. We start by noting that for each ten consecutive numbers, exactly four of them are coprime to 10. Then we find the desired amount by dividing 2019 by numbers $2^{3k} 5^{3\\ell}$ which are less than 2019, and then computing the number of numbers no bigger than $\\left\\lfloor \\frac{2019}{2^{3k} 5^{3\\ell}} \\right\\rfloor$ which are coprime to 10.\n\nFirst, there are $4 \\cdot 201 + 4 = 808$ numbers (out of positive integers $n \\leqslant 2019$) coprime to 10. Then, there are $\\left\\lfloor \\frac{2019}{8} \\right\\rfloor = 252$ numbers divisible by 8, and $25 \\cdot 4 + 1 = 101$ among them are exactly divisible by 8. There are $\\left\\lfloor \\frac{2019}{64} \\right\\rfloor = 31$ numbers divisible by 64, giving $3 \\cdot 4 + 1 = 13$ divisible exactly by 64. And there are two numbers, 512 and $3 \\cdot 512$, which are divisible by exactly 512. Similarly, there are $\\left\\lfloor \\frac{2019}{125} \\right\\rfloor = 16$ numbers divisible by 125, implying that $4 + 2 = 6$ of them are exactly divisible by 125. Finally, there is only one number divisible by exactly 1000, and this is 1000 itself. All other numbers that are divisible by exactly $2^{3k} 5^{3\\ell}$ are greater than 2019. So, we obtain that $808 + 101 + 13 + 2 + 6 + 1 = 931$ numbers not bigger than 2019 are winning for the statistician.\nAlternative Solution by PSC:\n\nLet us call a positive integer $n$ losing if $n = 2^{r} 5^{s} k$ where $r \\equiv s \\equiv 0 \\bmod 3$ and $(k, 10) = 1$. We call all other positive integers winning.\n\nLemma 1. If $n$ is losing, then $\\frac{m n}{100}$ is winning for all $m \\in \\{1,2, \\ldots, 99\\}$ such that $100 \\mid m n$.\n\nProof of Lemma 1. Let $m = 2^{t} 5^{u} k'$. For $\\frac{m n}{100}$ to be losing, we would need $t \\equiv u \\equiv 2 \\bmod 3$. But then $m \\geqslant 100$, a contradiction.\n\nLemma 2. If $n$ is winning, then there is an $m \\in \\{1,2, \\ldots, 99\\}$ such that $100 \\mid m n$ and $\\frac{m n}{100}$ is losing.\n\nProof of Lemma 2. Let $n = 2^{r} 5^{s} k$ where $(k, 10) = 1$. Pick $t, u \\in \\{0,1,2\\}$ such that $t \\equiv (2-r) \\bmod 3$ and $u \\equiv (2-s) \\bmod 3$ and let $m = 2^{t} 5^{u}$. Then $100 \\mid m n$ and $\\frac{m n}{100}$ is losing. Furthermore $m < 100$ as otherwise $m = 100, t = u = 2$ giving $r \\equiv s \\equiv 0 \\bmod 3$ contradicting the fact that $n$ was winning.\n\nCombining Lemmas 1 and 2 we obtain that the second player wins if and only if the game starts from a losing number.\n\nThe remaining part of the problem is to compute the number of positive integers $n \\leqslant 2019$ which are winning for the second player. Those are the $n$ which are divisible by exactly $2^{3k} 5^{3\\ell},\\ k, \\ell \\in \\mathbb{N}_{0}$. Here, exact divisibility by $2^{3k} 5^{3\\ell}$ in this context means that $2^{3k} \\| n$ and $5^{3\\ell} \\| n$, even for $\\ell=0$, or $k=0$. For example, if we say that $n$ is exactly divisible by 8, it means that $8 \\mid n, 16 \\nmid n$ and $5 \\nmid n$. We start by noting that for each ten consecutive numbers, exactly four of them are coprime to 10. Then we find the desired amount by dividing 2019 by numbers $2^{3k} 5^{3\\ell}$ which are less than 2019, and then computing the number of numbers no bigger than $\\left\\lfloor \\frac{2019}{2^{3k} 5^{3\\ell}} \\right\\rfloor$ which are coprime to 10.\n\nFirst, there are $4 \\cdot 201 + 4 = 808$ numbers (out of positive integers $n \\leqslant 2019$) coprime to 10. Then, there are $\\left\\lfloor \\frac{2019}{8} \\right\\rfloor = 252$ numbers divisible by 8, and $25 \\cdot 4 + 1 = 101$ among them are exactly divisible by 8. There are $\\left\\lfloor \\frac{2019}{64} \\right\\rfloor = 31$ numbers divisible by 64, giving $3 \\cdot 4 + 1 = 13$ divisible exactly by 64. And there are two numbers, 512 and $3 \\cdot 512$, which are divisible by exactly 512. Similarly, there are $\\left\\lfloor \\frac{2019}{125} \\right\\rfloor = 16$ numbers divisible by 125, implying that $4 + 2 = 6$ of them are exactly divisible by 125. Finally, there is only one number divisible by exactly 1000, and this is 1000 itself. All other numbers that are divisible by exactly $2^{3k} 5^{3\\ell}$ are greater than 2019. So, we obtain that $808 + 101 + 13 + 2 + 6 + 1 = 931$ numbers not bigger than 2019 are winning for the statistician.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34480, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $ABC$ be a right-angled triangle with $\\hat{A}=90^{\\circ}$ and $\\hat{B}=30^{\\circ}$. The perpendicular at the midpoint $M$ of $BC$ meets the bisector $BK$ of the angle $\\hat{B}$ at the point $E$. The perpendicular bisector of $EK$ meets $AB$ at $D$. Prove that $KD$ is perpendicular to $DE$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nLet $I$ be the incenter of $ABC$ and let $Z$ be the foot of the perpendicular from $K$ on $EC$. Since $KB$ is the bisector of $\\hat{B}$, then $\\angle EBC=15^{\\circ}$ and since $EM$ is the perpendicular bisector of $BC$, then $\\angle ECB=\\angle EBC=15^{\\circ}$. Therefore $\\angle KEC=30^{\\circ}$. Moreover, $\\angle ECK=60^{\\circ}-15^{\\circ}=45^{\\circ}$. This means that $KZC$ is isosceles and thus $Z$ is on the perpendicular bisector of $KC$.\nSince $\\angle KIC$ is the external angle of triangle $IBC$, and $I$ is the incenter of triangle $ABC$, then $\\angle KIC=15^{\\circ}+30^{\\circ}=45^{\\circ}$. Thus, $\\angle KIC=\\frac{\\angle KZC}{2}$. Since also $Z$ is on the perpendicular bisector of $KC$, then $Z$ is the circumcenter of $IKC$. This means that $ZK=ZI=ZC$. Since also $\\angle EKZ=60^{\\circ}$, then the triangle $ZKI$ is equilateral. Moreover, since $\\angle KEZ=30^{\\circ}$, we have that $ZK=\\frac{EK}{2}$, so $ZK=IK=IE$.\nTherefore $DI$ is perpendicular to $EK$ and this means that $DIKA$ is cyclic. So $\\angle KDI=\\angle IAK=45^{\\circ}$ and $\\angle IKD=\\angle IAD=45^{\\circ}$. Thus $ID=IK=IE$ and so $KD$ is perpendicular to $DE$ as required.\n\n![](attached_image_1.png)\n\nAlternative Solution by PSC.\nLet $P$ be the point of intersection of $EM$ with $AC$. The triangles $ABC$ and $MPC$ are equal since they have equal angles and $MC=\\frac{BC}{2}=AC$. They also share the angle $\\hat{C}$, so they must have identical incenter.\nLet $I$ be the midpoint of $EK$. We have $\\angle PEI=\\angle BEM=75^{\\circ}=\\angle EKP$. So the triangle $PEK$ is isosceles and therefore $PI$ is a bisector of $\\angle CPM$. So the incenter of $MPC$ belongs on $PI$. Since it shares the same incenter with $ABC$, then $I$ is the common incenter. We can now finish the proof as in the first solution.\n\n![](attached_image_2.png)\n\nAlternative Solution by PSC.\nLet $P$ be the point of intersection of $EM$ with $AC$ and let $I$ be the midpoint of $EK$. Then the triangle $PBC$ is equilateral. We also have $\\angle PEI=\\angle BEM=75^{\\circ}$ and $\\angle PKE=75^{\\circ}$, so $PEK$ is isosceles. We also have $PI \\perp EK$ and $DI \\perp EK$, so the points $P, D, I$ are collinear.\nFurthermore, $\\angle PBI=\\angle BPI=45^{\\circ}$, and therefore $BI=PI$.\nWe have $\\angle DPA=\\angle BEM=15^{\\circ}$ and also $BM=\\frac{AB}{2}=AC=PA$. So the right-angled triangles $PDA$ and $BEM$ are equal. Thus $PD=BE$.\nSo\n$$\nEI=BI-BE=PI-PD=DI\n$$\nTherefore $\\angle DEI=\\angle IDE=45^{\\circ}$. Since $DE=DK$, we also have $\\angle DEI=\\angle DKI=\\angle KDI=45^{\\circ}$. So finally, $\\angle EDK=90^{\\circ}$.\n\nCoordinate Geometry Solution by PSC.\nWe may assume that $A=(0,0), B=(0, \\sqrt{3})$ and $C=(1,0)$. Since $m_{BC}=-\\sqrt{3}$, then $m_{EM}=\\frac{\\sqrt{3}}{3}$. Since also $M=\\left(\\frac{1}{2}, \\frac{\\sqrt{3}}{2}\\right)$, then the equation of $EM$ is $y=\\frac{\\sqrt{3}}{3} x+\\frac{\\sqrt{3}}{3}$. The slope of $BK$ is\n$$\nm_{BK}=\\tan \\left(105^{\\circ}\\right)=\\frac{\\tan \\left(60^{\\circ}\\right)+\\tan \\left(45^{\\circ}\\right)}{1-\\tan \\left(60^{\\circ}\\right) \\tan \\left(45^{\\circ}\\right)}=-(2+\\sqrt{3})\n$$\nSo the equation of $BK$ is $y=-(2+\\sqrt{3}) x+\\sqrt{3}$ which gives $K=(2 \\sqrt{3}-3,0)$ and $E=(2-\\sqrt{3}, \\sqrt{3}-1)$. Letting $I$ be the midpoint of $EK$ we get $I=\\left(\\frac{\\sqrt{3}-1}{2}, \\frac{\\sqrt{3}-1}{2}\\right)$. Thus $I$ is equidistant from the sides $AB, AC$, so $AI$ is the bisector of $\\hat{A}$, and thus $I$ is the incenter of triangle $ABC$. We can now finish the proof as in the first solution.\n\nMetric Solution by PSC.\nWe can assume that $AC=1$. Then $AB=\\sqrt{3}$ and $BC=2$. So $BM=MC=1$. From triangle $BEM$ we get $BE=EC=\\sec \\left(15^{\\circ}\\right)$ and $EM=\\tan \\left(15^{\\circ}\\right)$. From triangle $BAK$ we get $BK=\\sqrt{3} \\sec \\left(15^{\\circ}\\right)$. So $EK=BK-BE=(\\sqrt{3}-1) \\sec \\left(15^{\\circ}\\right)$. Thus, if $N$ is the midpoint of $EK$, then $EN=NK=\\frac{\\sqrt{3}-1}{2} \\sec \\left(15^{\\circ}\\right)$ and $BN=BE+EN=\\frac{\\sqrt{3}+1}{2} \\sec \\left(15^{\\circ}\\right)$. From triangle $BDN$ we get $DN=BN \\tan \\left(15^{\\circ}\\right)=\\frac{\\sqrt{3}+1}{2} \\tan \\left(15^{\\circ}\\right) \\sec \\left(15^{\\circ}\\right)$. It is easy to check that $\\tan \\left(15^{\\circ}\\right)=2-\\sqrt{3}$. Thus $DN=\\frac{\\sqrt{3}-1}{2} \\sec \\left(15^{\\circ}\\right)=EN$. So $DN=EN=EK$ and therefore $\\angle EDN=\\angle KDN=45^{\\circ}$ and $\\angle KDE=90^{\\circ}$ as required.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34481, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $ABC$ be a triangle and let $\\omega$ be its circumcircle. Let $\\ell_{B}$ and $\\ell_{C}$ be two parallel lines passing through $B$ and $C$ respectively. The lines $\\ell_{B}$ and $\\ell_{C}$ intersect with $\\omega$ for the second time at the points $D$ and $E$ respectively, with $D$ belonging on the arc $AB$, and $E$ on the arc $AC$. Suppose that $DA$ intersects $\\ell_{C}$ at $F$, and $EA$ intersects $\\ell_{B}$ at $G$. If $O, O_{1}$ and $O_{2}$ are the circumcenters of the triangles $ABC, ADG$ and $AEF$ respectively, and $P$ is the center of the circumcircle of the triangle $OO_{1}O_{2}$, prove that $OP$ is parallel to $\\ell_{B}$ and $\\ell_{C}$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nWe write $\\omega_{1}, \\omega_{2}$ and $\\omega'$ for the circumcircles of $AGD, AEF$ and $OO_{1}O_{2}$ respectively. Since $O_{1}$ and $O_{2}$ are the centers of $\\omega_{1}$ and $\\omega_{2}$, and because $DG$ and $EF$ are parallel, we get that\n$$\n\\angle GAO_{1} = 90^{\\circ} - \\frac{\\angle GO_{1}A}{2} = 90^{\\circ} - \\angle GDA = 90^{\\circ} - \\angle EFA = 90^{\\circ} - \\frac{\\angle EO_{2}A}{2} = \\angle EAO_{2}\n$$\nSo, because $G, A$ and $E$ are collinear, we come to the conclusion that $O_{1}, A$ and $O_{2}$ are also collinear.\n\nLet $\\angle DFE = \\varphi$. Then, as a central angle $\\angle AO_{2}E = 2\\varphi$. Because $AE$ is a common chord of both $\\omega$ and $\\omega_{2}$, the line $OO_{2}$ that passes through their centers bisects $\\angle AO_{2}E$, thus $\\angle AO_{2}O = \\varphi$. By the collinearity of $O_{1}, A, O_{2}$, we get that $\\angle O_{1}O_{2}O = \\angle AO_{2}O = \\varphi$. As a central angle in $\\omega'$, we have $\\angle O_{1}PO = 2\\varphi$, so $\\angle POP_{1} = 90^{\\circ} - \\varphi$. Let $Q$ be the point of intersection of $DF$ and $OP$. Because $AD$ is a common chord of $\\omega$ and $\\omega_{1}$, we have that $OO_{1}$ is perpendicular to $DA$ and so $\\angle DQP = 90^{\\circ} - \\angle POP_{1} = \\varphi$. Thus, $OP$ is parallel to $\\ell_{C}$ and so to $\\ell_{B}$ as well.\n\n![](attached_image_1.png)\n\nAlternative Solution by PSC.\n\nLet us write $\\alpha, \\beta, \\gamma$ for the angles of $ABC$. Since $ADBC$ is cyclic, we have $\\angle GDA = 180^{\\circ} - \\angle BDA = \\gamma$. Similarly, we have\n$$\n\\angle GAD = 180^{\\circ} - \\angle DAE = \\angle EBD = \\angle BEC = \\angle BAC = \\alpha\n$$\nwhere we have also used the fact that $\\ell_{B}$ and $\\ell_{C}$ are parallel.\nThus, the triangles $ABC$ and $AGD$ are similar. Analogously, $AEF$ is also similar to them.\n\nSince $AD$ is a common chord of $\\omega$ and $\\omega_{1}$ then $AD$ is perpendicular to $OO_{1}$. Thus,\n$$\n\\angle OO_{1}A = \\frac{1}{2} \\angle DO_{1}A = \\angle DGA = \\beta\n$$\nSimilarly, we have $\\angle OO_{2}A = \\gamma$. Since $O_{1}, A, O_{2}$ are collinear (as in the first solution) we get that $OO_{1}O_{2}$ is also similar to $ABC$. Their circumcentres are $P$ and $O$ respectively, thus $\\angle POO_{1} = \\angle OAB = 90^{\\circ} - \\gamma$.\nSince $OO_{1}$ is perpendicular to $AD$, letting $X$ be the point of intersection of $OO_{1}$ with $GD$, we get that $\\angle DXO_{1} = 90^{\\circ} - \\gamma$. Thus $OP$ is parallel to $\\ell_{B}$ and therefore to $\\ell_{C}$ as well.\nSolution:\n\nLet $L$ and $Z$ be the points of intersection of $OO_{1}$ with $\\ell_{b}$ and $DA$ respectively. Since $LZ$ is perpendicular on $DA$, and since $\\ell_{b}$ is parallel to $\\ell_{c}$, then\n$$\n\\angle DLO = 90^{\\circ} - \\angle LDZ = 90^{\\circ} - \\angle DFE = 90^{\\circ} - \\angle AFE\n$$\nSince $AE$ is a common chord of $\\omega$ and $\\omega_{2}$, then it is perpendicular to $OO_{2}$. So letting $H$ be their point of intersection, we get\n$$\n\\angle DLO = 90^{\\circ} - \\angle AFE = 90^{\\circ} - \\angle AO_{2}H = \\angle O_{2}AH\n$$\nLet $K, Y, U$ be the projections of $P$ onto $OO_{2}, O_{1}O_{2}$ and $OO_{1}$ respectively. Then $YKUO_{1}$ is a parallelogram and so the extensions of $PY$ and $PU$ meet the segments $UK$ and $KY$ at points $X, V$ such that $YX \\perp KU$ and $UV \\perp KY$.\nSince the points $O_{1}, A, O_{2}$ are collinear, we have\n$$\n\\angle FAO_{2} = O_{1}AZ = 90^{\\circ} - \\angle AO_{1}Z = 90^{\\circ} - \\angle YKU = \\angle PUK = \\angle POK = \\angle POK\n$$\nwhere the last equality follows since $PUOK$ is cyclic.\nSince $AZOH$ is also cyclic, we have $\\angle FAH = \\angle O_{1}OO_{2}$. From this, together with (1) and (2) we get\n$$\n\\angle DLO = \\angle O_{2}AH = \\angle FAH - \\angle FAO_{2} = \\angle O_{1}OO_{2} - \\angle POK = \\angle UOP = \\angle LOP\n$$\nTherefore $OP$ is parallel to $\\ell_{B}$ and $\\ell_{C}$.\n\n![](attached_image_2.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34482, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $ABC$ be a triangle with incenter $I$. The points $D$ and $E$ lie on the segments $CA$ and $BC$ respectively, such that $CD = CE$. Let $F$ be a point on the segment $CD$. Prove that the quadrilateral $ABEF$ is circumscribable if and only if the quadrilateral $DIEF$ is cyclic.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nSince $CD = CE$ it means that $E$ is the reflection of $D$ on the bisector of $\\angle ACB$, i.e. the line $CI$. Let $G$ be the reflection of $F$ on $CI$. Then $G$ lies on the segment $CE$, the segment $EG$ is the reflection of the segment $DF$ on the line $CI$. Also, the quadrilateral $DEGF$ is cyclic since $\\angle DFE = \\angle EGD$.\n\nSuppose that the quadrilateral $ABEF$ is circumscribable. Since $\\angle FAI = \\angle BAI$ and $\\angle EBI = \\angle ABI$, then $I$ is the centre of its inscribed circle. Then $\\angle DFI = \\angle EFI$ and since segment $EG$ is the reflection of segment $DF$ on the line $CI$, we have $\\angle EFI = \\angle DGI$. So $\\angle DFI = \\angle DGI$ which means that quadrilateral $DIGF$ is cyclic. Since the quadrilateral $DEGF$ is also cyclic, we have that the quadrilateral $DIEF$ is cyclic.\n\n![](attached_image_1.png)\n\nSuppose that the quadrilateral $DIEF$ is cyclic. Since quadrilateral $DEGF$ is also cyclic, we have that the pentagon $DIEGF$ is cyclic. So $\\angle IEB = 180^{\\circ} - \\angle IEG = \\angle IDG$ and since segment $EG$ is the reflection of segment $DF$ on the line $CI$, we have $\\angle IDG = \\angle IEF$. Hence $\\angle IEB = \\angle IEF$, which means that $EI$ is the angle bisector of $\\angle BEF$. Since $\\angle IFA = \\angle IFD = \\angle IGD$ and since the segment $EG$ is the reflection of segment $DF$ on the line $CI$, we have $\\angle IGD = \\angle IFE$, hence $\\angle IFA = \\angle IFE$, which means that $FI$ is the angle bisector of $\\angle EFA$. We also know that $AI$ and $BI$ are the angle bisectors of $\\angle FAB$ and $\\angle ABE$. So all angle bisectors of the quadrilateral $ABEF$ intersect at $I$, which means that it is circumscribable.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34483, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $P$ be a point in the interior of a triangle $A B C$. The lines $A P, B P$ and $C P$ intersect again the circumcircles of the triangles $P B C, P C A$, and $P A B$ at $D, E$ and $F$ respectively. Prove that $P$ is the orthocenter of the triangle $D E F$ if and only if $P$ is the incenter of the triangle $A B C$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nIf $P$ is the incenter of $A B C$, then $\\angle B P D = \\angle A B P + \\angle B A P = \\frac{\\hat{A} + \\hat{B}}{2}$, and $\\angle B D P = \\angle B C P = \\frac{\\hat{C}}{2}$. From triangle $B D P$, it follows that $\\angle P B D = 90^{\\circ}$, i.e. that $E B$ is one of the altitudes of the triangle $D E F$. Similarly, $A D$ and $C F$ are altitudes, which means that $P$ is the orthocenter of $D E F$.\n\n![](attached_image_1.png)\n\nNotice that $A P$ separates $B$ from $C$, $B$ from $E$ and $C$ from $F$. Therefore $A P$ separates $E$ from $F$, which means that $P$ belongs to the interior of $\\angle E D F$. It follows that $P \\in \\operatorname{Int}(\\triangle D E F)$.\nIf $P$ is the orthocenter of $D E F$, then clearly $D E F$ must be acute. Let $A^{\\prime} \\in E F$, $B^{\\prime} \\in D F$ and $C^{\\prime} \\in D E$ be the feet of the altitudes. Then the quadrilaterals $B^{\\prime} P A^{\\prime} F$, $C^{\\prime} P B^{\\prime} D$, and $A^{\\prime} P C^{\\prime} E$ are cyclic, which means that $\\angle B^{\\prime} F A^{\\prime} = 180^{\\circ} - \\angle B^{\\prime} P A^{\\prime} = 180^{\\circ} - \\angle B P A = \\angle B F A$. Similarly, one obtains that $\\angle C^{\\prime} D B^{\\prime} = \\angle C D B$, and $\\angle A^{\\prime} E C^{\\prime} = \\angle A E C$.\n- If $B \\in \\operatorname{Ext}(\\triangle F P D)$, then $A \\in \\operatorname{Int}(\\triangle E P F)$, $C \\in \\operatorname{Ext}(\\triangle D P E)$, and thus $B \\in \\operatorname{Int}(\\triangle F P D)$, contradiction.\n- If $B \\in \\operatorname{Int}(\\triangle F P D)$, then $A \\in \\operatorname{Ext}(\\triangle E P F)$, $C \\in \\operatorname{Int}(\\triangle D P E)$, and thus $B \\in \\operatorname{Ext}(\\triangle F P D)$, contradiction.\nThis leaves us with $B \\in F D$. Then we must have $A \\in E F$, $C \\in D E$, which means that $A = A^{\\prime}$, $B = B^{\\prime}$, $C = C^{\\prime}$. Thus $A B C$ is the orthic triangle of triangle $D E F$ and it is well known that the orthocenter of an acute triangle $D E F$ is the incenter of its orthic triangle.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34484, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $A B C$ be a non-isosceles triangle with incenter $I$. Let $D$ be a point on the segment $B C$ such that the circumcircle of $B I D$ intersects the segment $A B$ at $E \\neq B$, and the circumcircle of $C I D$ intersects the segment $A C$ at $F \\neq C$. The circumcircle of $D E F$ intersects $A B$ and $A C$ at the second points $M$ and $N$ respectively. Let $P$ be the point of intersection of $I B$ and $D E$, and let $Q$ be the point of intersection of $I C$ and $D F$. Prove that the three lines $E N, F M$ and $P Q$ are parallel.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nSince $B D I E$ is cyclic, and $B I$ is the bisector of $\\angle D B E$, then $I D = I E$. Similarly, $I D = I F$, so $I$ is the circumcenter of the triangle $D E F$.\n\nWe also have\n$$\n\\angle I E A = \\angle I D B = \\angle I F C\n$$\nwhich implies that $A E I F$ is cyclic. We can assume that $A, E, M$ and $A, N, F$ are collinear in that order. Then $\\angle I E M = \\angle I F N$. Since also $I M = I E = I N = I F$, the two isosceles triangles $I E M$ and $I N F$ are congruent, thus $E M = F N$ and therefore $E N$ is parallel to $F M$.\n\nFrom that, we can also see that the two triangles $I E A$ and $I N A$ are congruent, which implies that $A I$ is the perpendicular bisector of $E N$ and $M F$.\n\nNote that $\\angle I D P = \\angle I D E = \\angle I B E = \\angle I B D$, so the triangles $I P D$ and $I D B$ are similar, which implies that $\\frac{I D}{I B} = \\frac{I P}{I D}$ and $I P \\cdot I B = I D^{2}$. Similarly, we have $I Q \\cdot I C = I D^{2}$, thus $I P \\cdot I B = I Q \\cdot I C$. This implies that $B P Q C$ is cyclic, which leads to\n$$\n\\angle I P Q = \\angle I C B = \\frac{\\hat{C}}{2}\n$$\nBut $\\angle A I B = 90^{\\circ} + \\frac{\\hat{C}}{2}$, so $A I$ is perpendicular to $P Q$. Hence, $P Q$ is parallel to $E N$ and $F M$.\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34485, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $ABC$ be a right-angled triangle with $\\hat{A}=90^{\\circ}$. Let $K$ be the midpoint of $BC$, and let $AKLM$ be a parallelogram with centre $C$. Let $T$ be the intersection of the line $AC$ and the perpendicular bisector of $BM$. Let $\\omega_{1}$ be the circle with centre $C$ and radius $CA$ and let $\\omega_{2}$ be the circle with centre $T$ and radius $TB$. Prove that one of the points of intersection of $\\omega_{1}$ and $\\omega_{2}$ is on the line $LM$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nLet $M'$ be the symmetric point of $M$ with respect to $T$. Observe that $T$ is equidistant from $B$ and $M$, therefore $M$ belongs on $\\omega_{2}$ and $M'M$ is a diameter of $\\omega_{2}$. It suffices to prove that $M'A$ is perpendicular to $LM$, or equivalently, to $AK$. To see this, let $S$ be the point of intersection of $M'A$ with $LM$. We will then have $\\angle M'SM=90^{\\circ}$ which shows that $S$ belongs on $\\omega_{2}$ as $M'M$ is a diameter of $\\omega_{2}$. We also have that $S$ belongs on $\\omega_{1}$ as $AL$ is diameter of $\\omega_{1}$.\n\nSince $T$ and $C$ are the midpoints of $M'M$ and $KM$ respectively, then $TC$ is parallel to $M'K$ and so $M'K$ is perpendicular to $AB$. Since $KA=KB$, then $KM'$ is the perpendicular bisector of $AB$. But then the triangles $KBM'$ and $KAM'$ are equal, showing that $\\angle M'AK=\\angle M'BK=\\angle M'BM=90^{\\circ}$ as required.\n\n![](attached_image_1.png)\n\nAlternative Solution by Proposers.\nSince $CA=CL$, then $L$ belongs on $\\omega_{1}$. Let $S$ be the other point of intersection of $\\omega_{1}$ with the line $LM$. We need to show that $S$ belongs on $\\omega_{2}$. Since $TB=TM$ ($T$ is on the perpendicular bisector of $BM$) it is enough to show that $TS=TM$.\n\nLet $N, T'$ be points on the lines $AL$ and $LM$ respectively, such that $MN \\perp LM$ and $TT' \\perp LM$. It is enough to prove that $T'$ is the midpoint of $SM$. Since $AL$ is diameter of $\\omega_{1}$ we have that $AS \\perp LS$. Thus, it is enough to show that $T$ is the midpoint of $AN$. We have\n$$\nAT=\\frac{AN}{2} \\Leftrightarrow AC-CT=\\frac{AL-LN}{2} \\Leftrightarrow 2AC-2CT=AL-LN \\Leftrightarrow LN=2CT\n$$\nas $AL=2AC$. So it suffices to prove that $LN=2CT$.\n\nLet $D$ be the midpoint of $BM$. Since $BK=KC=CM$, then $D$ is also the midpoint of $KC$. The triangles $LMN$ and $CTD$ are similar since they are right-angled with $\\angle TCD=\\angle CAK=\\angle MLN$. ($AK=KC$ and $AK$ is parallel to $LM$.) So we have\n$$\n\\frac{LN}{CT}=\\frac{LM}{CD}=\\frac{AK}{CD}=\\frac{CK}{CD}=2\n$$\nas required.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34486, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all triples $(p, q, r)$ of prime numbers such that all of the following numbers are integers\n$$\n\\frac{p^{2}+2 q}{q+r}, \\quad \\frac{q^{2}+9 r}{r+p}, \\quad \\frac{r^{2}+3 p}{p+q}\n$$", "options": [], "answer": "(2, 3, 7)", "solution": "Solution:\nWe consider the following cases:\n\n1st Case: If $r=2$, then $\\frac{r^{2}+3 p}{p+q}=\\frac{4+3 p}{p+q}$. If $p$ is odd, then $4+3 p$ is odd and therefore $p+q$ must be odd. From here, $q=2$ and $\\frac{r^{2}+3 p}{p+q}=\\frac{4+3 p}{p+2}=3-\\frac{2}{p+2}$ which is not an integer. Thus $p=2$ and $\\frac{r^{2}+3 p}{p+q}=\\frac{10}{q+2}$ which gives $q=3$. But then $\\frac{q^{2}+9 r}{r+p}=\\frac{27}{4}$ which is not an integer. Therefore $r$ is an odd prime.\n\n2nd Case: If $q=2$, then $\\frac{q^{2}+9 r}{r+p}=\\frac{4+9 r}{r+p}$. Since $r$ is odd, then $4+9 r$ is odd and therefore $r+p$ must be odd. From here $p=2$, but then $\\frac{r^{2}+3 p}{p+q}=\\frac{r^{2}+6}{4}$ which is not integer. Therefore $q$ is an odd prime.\n\nSince $q$ and $r$ are odd primes, then $q+r$ is even. From the number $\\frac{p^{2}+2 q}{q+r}$ we get that $p=2$. Since $\\frac{p^{2}+2 q}{q+r}=\\frac{4+2 q}{q+r}<2$, then $4+2 q=q+r$ or $r=q+4$. Since\n$$\n\\frac{r^{2}+3 p}{p+q}=\\frac{(q+4)^{2}+6}{2+q}=q+6+\\frac{10}{2+q}\n$$\nis an integer, then $q=3$ and $r=7$. It is easy to check that this triple works. So the only answer is $(p, q, r)=(2,3,7)$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34487, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all prime numbers $p$ and nonnegative integers $x \\neq y$ such that $x^{4}-y^{4}=p\\left(x^{3}-y^{3}\\right)$.", "options": [], "answer": "All solutions are x = 0, y = p or x = p, y = 0 for any prime p.", "solution": "Solution:\nIf $x=0$ then $y=p$ and if $y=0$ then $x=p$. We will show that there are no other solutions.\n\nSuppose $x, y>0$. Since $x \\neq y$, we have\n$$\np\\left(x^{2}+x y+y^{2}\\right)=(x+y)\\left(x^{2}+y^{2}\\right)\n$$\nIf $p$ divides $x+y$, then $x^{2}+y^{2}$ must divide $x^{2}+x y+y^{2}$ and so it must also divide $x y$. This is a contradiction as $x^{2}+y^{2} \\geqslant 2 x y > x y$.\n\nThus $p$ divides $x^{2}+y^{2}$, so $x+y$ divides $x^{2}+x y+y^{2}$. As $x+y$ divides $x^{2}+x y$ and $y^{2}+x y$, it also divides $x^{2}$, $x y$ and $y^{2}$. Suppose $x^{2}=a(x+y)$, $y^{2}=b(x+y)$ and $x y=c(x+y)$. Then $x^{2}+x y+y^{2}=(a+b+c)(x+y)$, $x^{2}+y^{2}=(a+b)(x+y)$, while $(x+y)^{2}=x^{2}+y^{2}+2 x y=(a+b+2 c)(x+y)$ yields $x+y=a+b+2 c$.\n\nSubstituting into $(*)$ gives\n$$\np(a+b+c)=(a+b+2 c)(a+b)\n$$\nNow let $a+b=d m$ and $c=d c_{1}$, where $\\operatorname{gcd}\\left(m, c_{1}\\right)=1$. Then\n$$\np\\left(m+c_{1}\\right)=\\left(m+2 c_{1}\\right) d m\n$$\nIf $m+c_{1}$ and $m$ had a common divisor, it would divide $c_{1}$, a contradiction. So $\\operatorname{gcd}(m, m+c_{1})=1$. and similarly, $\\operatorname{gcd}\\left(m+c_{1}, m+2 c_{1}\\right)=1$. Thus $m+2 c_{1}$ and $m$ divide $p$, so $m+2 c_{1}=p$ and $m=1$. Then $m+c_{1}=d$ so $c \\geqslant d=a+b$. Now\n$$\nx y=c(x+y) \\geqslant(a+b)(x+y)=x^{2}+y^{2}\n$$\nagain a contradiction.\n\n\nAlternative Solution by PSC:\nLet $d=\\operatorname{gcd}(x, y)$. Then $x=d a$ and $y=d b$ for some $a, b$ such that $\\operatorname{gcd}(a, b)=1$. Then\n$$\nd^{4}\\left(a^{4}-b^{4}\\right)=p d^{3}\\left(a^{3}-b^{3}\\right)\n$$\nwhich gives\n$$\nd(a+b)\\left(a^{2}+b^{2}\\right)=p\\left(a^{2}+a b+b^{2}\\right)\n$$\nIf a prime $q$ divides both $a+b$ and $a^{2}+a b+b^{2}$, then it also divides $(a+b)^{2}-\\left(a^{2}+a b+b^{2}\\right)=a b$. So $q$ divides $a$ or $q$ divides $b$. Since $q$ also divides $a+b$, it must divide both $a$ and $b$. This is impossible as $\\operatorname{gcd}(a, b)=1$. So $\\operatorname{gcd}\\left(a+b, a^{2}+a b+b^{2}\\right)=1$ and similarly $\\operatorname{gcd}\\left(a^{2}+b^{2}, a^{2}+a b+b^{2}\\right)=1$. Then $(a+b)\\left(a^{2}+b^{2}\\right)$ divides $p$ and since $a+b \\leqslant a^{2}+b^{2}$, then $a+b=1$.\n\nIf $a=0, b=1$ then $(*)$ gives $d=p$ and so $x=0, y=p$ which is obviously a solution. If $a=1, b=0$ we similarly get the solution $x=p, y=0$. These are the only solutions.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34488, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all integers $x, y$ such that\n$$\nx^{3}(y+1)+y^{3}(x+1)=19\n$$", "options": [], "answer": "(-1, -20), (-20, -1), (1, 2), (2, 1)", "solution": "Solution:\nSubstituting $s = x + y$ and $p = x y$ we get\n$$\n2 p^{2} - (s^{2} - 3 s) p + 19 - s^{3} = 0\n$$\nThis is a quadratic equation in $p$ with discriminant $D = s^{4} + 2 s^{3} + 9 s^{2} - 152$.\nFor each $s$ we have $D < (s^{2} + s + 5)^{2}$ as this is equivalent to $(2 s + 5)^{2} + 329 > 0$.\nFor $s \\geqslant 11$ and $s \\leqslant -8$ we have $D > (s^{2} + s + 3)^{2}$ as this is equivalent to $2 s^{2} - 6 s - 161 > 0$, and thus also to $2(s + 8)(s - 11) > -15$.\nWe have the following cases:\n- If $s \\geqslant 11$ or $s \\leqslant -8$, then $D$ is a perfect square only when $D = (s^{2} + s + 4)^{2}$, or equivalently, when $s = -21$. From (1) we get $p = 232$ (which yields no solution) or $p = 20$, giving the solutions $(-1, -20)$ and $(-20, -1)$.\n- If $-7 \\leqslant s \\leqslant 10$, then $D$ is directly checked to be perfect square only for $s = 3$. Then $p = \\pm 2$ and only $p = 2$ gives solutions, namely $(2, 1)$ and $(1, 2)$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34489, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all positive integers $x, y, z$ such that\n$$\n45^{x}-6^{y}=2019^{z}\n$$", "options": [], "answer": "(2, 1, 1)", "solution": "Solution:\nWe define $v_{3}(n)$ to be the non-negative integer $k$ such that $3^{k} \\mid n$ but $3^{k+1} \\nmid n$. The equation is equivalent to\n$$\n3^{2x} \\cdot 5^{x} - 3^{y} \\cdot 2^{y} = 3^{z} \\cdot 673^{z}\n$$\nWe will consider the cases $y \\neq 2x$ and $y = 2x$ separately.\n\nCase 1. Suppose $y \\neq 2x$. Since $45^{x} > 45^{x} - 6^{y} = 2019^{z} > 45^{z}$, then $x > z$ and so $2x > z$. We have\n$$\nz = v_{3}\\left(3^{z} \\cdot 673^{z}\\right) = v_{3}\\left(3^{2x} \\cdot 5^{x} - 3^{y} \\cdot 2^{y}\\right) = \\min \\{2x, y\\}\n$$\nas $y \\neq 2x$. Since $2x > z$, we get $z = y$. Hence the equation becomes $3^{2x} \\cdot 5^{x} - 3^{y} \\cdot 2^{y} = 3^{y} \\cdot 673^{y}$, or equivalently,\n$$\n3^{2x-y} \\cdot 5^{x} = 2^{y} + 673^{y}\n$$\nCase 1.1. Suppose $y = 1$. Doing easy manipulations we have\n$$\n3^{2x-1} \\cdot 5^{x} = 2 + 673 = 675 = 3^{3} \\cdot 5^{2} \\Longrightarrow 45^{x-2} = 1 \\Longrightarrow x = 2\n$$\nHence one solution which satisfies the condition is $(x, y, z) = (2, 1, 1)$.\n\nCase 1.2. Suppose $y \\geqslant 2$. Using properties of congruences we have\n$$\n1 \\equiv 2^{y} + 673^{y} \\equiv 3^{2x-y} \\cdot 5^{y} \\equiv (-1)^{2x-y} \\pmod{4}\n$$\nHence $2x - y$ is even, which implies that $y$ is even. Using this fact we have\n$$\n0 \\equiv 3^{2x-y} \\cdot 5^{y} \\equiv 2^{y} + 673^{y} \\equiv 1 + 1 \\equiv 2 \\pmod{3}\n$$\nwhich is a contradiction.\n\nCase 2. Suppose $y = 2x$. The equation becomes $3^{2x} \\cdot 5^{x} - 3^{2x} \\cdot 2^{2x} = 3^{z} \\cdot 673^{z}$, or equivalently,\n$$\n5^{x} - 4^{x} = 3^{z-2x} \\cdot 673^{z}\n$$\nWorking modulo 3 we have\n$$\n(-1)^{x} - 1 \\equiv 5^{x} - 4^{x} \\equiv 3^{z-2x} \\cdot 673^{z} \\equiv 0 \\pmod{3}\n$$\nhence $x$ is even, say $x = 2t$ for some positive integer $t$. The equation is now equivalent to\n$$\n\\left(5^{t} - 4^{t}\\right)\\left(5^{t} + 4^{t}\\right) = 3^{z-4t} \\cdot 673^{z}\n$$\nIt can be checked by hand that $t = 1$ is not possible. For $t \\geqslant 2$, since 3 and 673 are the only prime factors of the right hand side, and since, as it is easily checked $\\gcd\\left(5^{t} - 4^{t}, 5^{t} + 4^{t}\\right) = 1$ and $5^{t} - 4^{t} > 1$, the only way for this to happen is when $5^{t} - 4^{t} = 3^{z-4t}$ and $5^{t} + 4^{t} = 673^{z}$ or $5^{t} - 4^{t} = 673^{z}$ and $5^{t} + 4^{t} = 3^{z-4t}$. Adding together we have\n$$\n2 \\cdot 5^{t} = 3^{z-4t} + 673^{z}\n$$\nWorking modulo 5 we have\n$$\n0 \\equiv 2 \\cdot 5^{t} \\equiv 3^{z-4t} + 673^{z} \\equiv 3^{4t} \\cdot 3^{z-4t} + 3^{z} \\equiv 2 \\cdot 3^{z} \\pmod{5}\n$$\nwhich is a contradiction. Hence the only solution which satisfies the equation is $(x, y, z) = (2, 1, 1)$.\nSolution:\nAlternative Solution by PSC. Working modulo 5 we see that $-1 \\equiv 4^{z} \\pmod{5}$ and therefore $z$ is odd. Now working modulo 4 and using the fact that $z$ is odd we get that $1 - 2^{y} \\equiv 3^{z} \\equiv 3 \\pmod{4}$. This gives $y = 1$. Now working modulo 9 we have $-6 \\equiv 3^{z} \\pmod{9}$ which gives $z = 1$. Now since $y = z = 1$ we get $x = 2$ and so $(2, 1, 1)$ is the unique solution.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34490, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all triples $(a, b, c)$ of nonnegative integers that satisfy\n$$\na! + 5^{b} = 7^{c}\n$$", "options": [], "answer": "(3, 0, 1), (2, 1, 1), (4, 2, 2)", "solution": "Solution:\nWe cannot have $c=0$ as $a!+5^{b} \\geqslant 2 > 1 = 7^{0}$.\n\nAssume first that $b=0$. So we are solving $a!+1=7^{c}$. If $a \\geqslant 7$, then $7 \\mid a!$ and so $7 \\nmid a!+1$. So $7 \\nmid 7^{c}$ which is impossible as $c \\neq 0$. Checking $a<7$ by hand, we find the solution $(a, b, c) = (3, 0, 1)$.\n\nWe now assume that $b>0$. In this case, if $a \\geqslant 5$, we have $5 \\mid a!$, and since $5 \\mid 5^{b}$, we have $5 \\mid 7^{c}$, which obviously cannot be true. So we have $a \\leqslant 4$. Now we consider the following cases:\n\nCase 1. Suppose $a=0$ or $a=1$. In this case, we are solving the equation $5^{b}+1=7^{c}$. However the Left Hand Side of the equation is always even, and the Right Hand Side is always odd, implying that this case has no solutions.\n\nCase 2. Suppose $a=2$. Now we are solving the equation $5^{b}+2=7^{c}$. If $b=1$, we have the solution $(a, b, c) = (2, 1, 1)$. Now assume $b \\geqslant 2$. We have $5^{b}+2 \\equiv 2 \\pmod{25}$ which implies that $7^{c} \\equiv 2 \\pmod{25}$. However, by observing that $7^{4} \\equiv 1 \\pmod{25}$, we see that the only residues that $7^{c}$ can have when divided with 25 are $7, 24, 18, 1$. So this case has no more solutions.\n\nCase 3. Suppose $a=3$. Now we are solving the equation $5^{b}+6=7^{c}$. We have $5^{b}+6 \\equiv 1 \\pmod{5}$ which implies that $7^{c} \\equiv 1 \\pmod{5}$. As the residues of $7^{c}$ modulo 5 are $2, 4, 3, 1$, in that order, we obtain $4 \\mid c$.\n\nViewing the equation modulo 4, we have $7^{c} \\equiv 5^{b}+6 \\equiv 1+2 \\equiv 3 \\pmod{4}$. But as $4 \\mid c$, we know that $7^{c}$ is a square, and the only residues that a square can have when divided by 4 are 0, 1. This means that this case has no solutions either.\n\nCase 4. Suppose $a=4$. Now we are solving the equation $5^{b}+24=7^{c}$. We have $5^{b} \\equiv 7^{c}-24 \\equiv 1-24 \\equiv 1 \\pmod{3}$. Since $5 \\equiv 2 \\pmod{3}$, we obtain $2 \\mid b$. We also have $7^{c} \\equiv 5^{b}+24 \\equiv 4 \\pmod{5}$, and so we obtain $c \\equiv 2 \\pmod{4}$. Let $b=2m$ and $c=2n$. Observe that\n$$\n24 = 7^{c} - 5^{b} = (7^{n} - 5^{m})(7^{n} + 5^{m})\n$$\nSince $7^{n} + 5^{m} > 0$, we have $7^{n} - 5^{m} > 0$. There are only a few ways to express $24 = 24 \\cdot 1 = 12 \\cdot 2 = 8 \\cdot 3 = 6 \\cdot 4$ as a product of two positive integers. By checking these cases we find one by one, the only solution in this case is $(a, b, c) = (4, 2, 2)$.\n\nHaving exhausted all cases, we find that the required set of triples is\n$$\n(a, b, c) \\in \\{(3, 0, 1), (2, 1, 1), (4, 2, 2)\\}\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34491, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all perfect squares $n$ such that if the positive integer $a \\geqslant 15$ is some divisor of $n$ then $a+15$ is a prime power.", "options": [], "answer": "1, 4, 9, 16, 49, 64, 196", "solution": "Solution:\nWe call a positive integer $a$ \"nice\" if $a+15$ is a prime power.\nFrom the definition, the numbers $n=1, 4, 9$ satisfy the required property. Suppose that for some $t \\in \\mathbb{Z}^{+}$, the number $n=t^{2} \\geqslant 15$ also satisfies the required property. We have two cases:\n\n1. If $n$ is a power of $2$, then $n \\in\\{16, 64\\}$ since\n$$\n2^{4}+15=31, \\quad 2^{5}+15=47, \\quad \\text{and} \\quad 2^{6}+15=79\n$$\nare prime, and $2^{7}+15=143=11 \\cdot 13$ is not a prime power. (Thus $2^{7}$ does not divide $n$ and therefore no higher power of $2$ satisfies the required property.)\n\n2. Suppose $n$ has some odd prime divisor $p$. If $p>3$ then $p^{2} \\mid n$ and $p^{2}>15$ which imply that $p^{2}$ must be a nice number. Hence\n$$\np^{2}+15=q^{m}\n$$\nfor some prime $q$ and some $m \\in \\mathbb{Z}^{+}$. Since $p$ is odd, then $p^{2}+15$ is even, thus we can conclude that $q=2$. I.e.\n$$\np^{2}+15=2^{m}\n$$\nConsidering the above modulo $3$, we can see that $p^{2}+15 \\equiv 0,1 \\pmod{3}$, so $2^{m} \\equiv 1 \\pmod{3}$, and so $m$ is even. Suppose $m=2k$ for some $k \\in \\mathbb{Z}^{+}$. So we have $\\left(2^{k}-p\\right)\\left(2^{k}+p\\right)=15$ and $\\left(2^{k}+p\\right)-\\left(2^{k}-p\\right)=2p \\geqslant 10$. Thus\n$$\n2^{k}-p=1 \\quad \\text{and} \\quad 2^{k}+p=15\n$$\ngiving $p=7$ and $k=3$. Thus we can write $n=4^{x} \\cdot 9^{y} \\cdot 49^{z}$ for some non-negative integers $x, y, z$.\n\nNote that $27$ is not nice, so $27 \\nmid n$ and therefore $y \\leqslant 1$. The numbers $18$ and $21$ are also not nice, so similarly, $x, y$ and $y, z$ cannot both be positive. Hence, we just need to consider $n=4^{x} \\cdot 49^{z}$ with $z \\geqslant 1$.\n\nNote that $7^{3}$ is not nice, so $z=1$. By checking directly, we can see that $7^{2}+15=2^{6}$, $2 \\cdot 7^{2}+15=113$, $4 \\cdot 7^{2}+15=211$ are nice, but $8 \\cdot 7^{2}$ is not nice, so only $n=49, 196$ satisfy the required property.\n\nTherefore, the numbers $n$ which satisfy the required property are $1, 4, 9, 16, 49, 64$ and $196$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34492, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all triples of positive real numbers $(a, b, c)$ so that the expression\n$$\nM=\\frac{(a+b)(b+c)(a+b+c)}{a b c}\n$$\ngets its least value.", "options": [], "answer": "The minimum value is (11 + 5√5)/2. Equality occurs for all triples of the form (a, b, c) = (t ((1+√5)/2)^{1/3}, t ((1+√5)/2)^{-2/3}, t ((1+√5)/2)^{1/3}) with t > 0, i.e., when a = c and (ac)^{3/2} = (1+√5)/2.", "solution": "Solution:\nThe expression $M$ is homogeneous, therefore we can assume that $a b c=1$. We set $s=a+c$ and $p=a c$ and using $b=\\frac{1}{a c}$, we get\n$$\nM=\\left(a+\\frac{1}{a c}\\right)\\left(\\frac{1}{a c}+c\\right)\\left(a+\\frac{1}{a c}+c\\right)=\\left(a+p^{-1}\\right)\\left(c+p^{-1}\\right)\\left(s+p^{-1}\\right)\n$$\nExpanding the right-hand side we get\n$$\nM=p s+\\frac{s^{2}}{p}+1+\\frac{2 s}{p^{2}}+\\frac{1}{p^{3}}\n$$\nNow by $s \\geq 2 \\sqrt{p}$ and setting $x=p \\sqrt{p}>0$ we get\n$$\nM \\geq 2 x+5+\\frac{4}{x}+\\frac{1}{x^{2}}\n$$\nWe will now prove that\n$$\n2 x+5+\\frac{4}{x}+\\frac{1}{x^{2}} \\geq \\frac{11+5 \\sqrt{5}}{2} \\text{.}\n$$\nIndeed, the latter is equivalent to $4 x^{3}-(5 \\sqrt{5}+1) x^{2}+8 x+2 \\geq 0$, which can be rewritten as\n$$\n\\left(x-\\frac{1+\\sqrt{5}}{2}\\right)^{2}(4 x+3-\\sqrt{5}) \\geq 0\n$$\nwhich is true.", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 34493, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAlice and Bob play the following game: starting with the number $2$ written on a blackboard, each player in turn changes the current number $n$ to a number $n + p$, where $p$ is a prime divisor of $n$. Alice goes first and the players alternate in turn. The game is lost by the one who is forced to write a number greater than $\\underbrace{2 \\ldots 2}_{2020}$. Assuming perfect play, who will win the game.", "options": [], "answer": "Alice", "solution": "Solution:\n\nWe prove that Alice wins the game. For argument's sake, suppose that Bob can win by proper play regardless of what Alice does on each of her moves. Note that Alice can force the line $2 \\rightarrow \\mathbf{4} \\rightarrow 6 \\rightarrow \\mathbf{8} \\rightarrow 10 \\rightarrow \\mathbf{12}$ at the beginning stages of the game. (As each intermediate 'position' from which Bob has to play is a prime power.) Thus the player on turn when the number $12$ is written on the blackboard must be in a 'winning position', i.e., can win the game with skillful play. However, Alice can place herself in that position through the following line that is once again forced for Bob: $2 \\rightarrow \\mathbf{4} \\rightarrow 6 \\rightarrow \\mathbf{9} \\rightarrow 12$. (This time she is in turn with $12$ written on the blackboard.) The obtained contradiction proves our point.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34494, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nViktor and Natalia bought $2020$ buckets of ice-cream and want to organize a degustation schedule with $2020$ rounds such that:\n- In every round, each one of them tries $1$ ice-cream, and those $2$ ice-creams tried in a single round are different from each other.\n- At the end of the $2020$ rounds, each one of them has tried each ice-cream exactly once.\n\nWe will call a degustation schedule fair if the number of ice-creams that were tried by Viktor before Natalia is equal to the number of ice creams tried by Natalia before Viktor.\n\nProve that the number of fair schedules is strictly larger than $2020!\\left(2^{1010}+(1010!)^{2}\\right)$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nIf we fix the order in which Natalia tries the ice-creams, we may consider 2 types of fair schedules:\n\n1) Her last $1010$ ice-creams get assigned as Viktor's first $1010$ ice-creams, and vice versa: Viktor's first $1010$ ice-creams are assigned as Natalia's last $1010$ ice-creams. This generates $(1010!)^{2}$ distinct fair schedules by permuting the ice-creams within each group.\n\n2) We divide all ice-creams into disjoint groups of $4$, and in each group we swap the first $2$ ice-creams with the last $2$, which gives us $\\left((2!)^{2}\\right)^{504}=2^{1010}$ distinct schedules.\n\nNow, to make the inequality strict, we consider $1$ more schedule like $2)$, but with groups of $2$ ice-creams instead of $4$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34495, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $\\triangle ABC$ be a right-angled triangle with $\\angle BAC = 90^\\circ$ and let $E$ be the foot of the perpendicular from $A$ on $BC$. Let $Z \\neq A$ be a point on the line $AB$ with $AB = BZ$. Let $(c)$ be the circumcircle of the triangle $\\triangle AEZ$. Let $D$ be the second point of intersection of $(c)$ with $ZC$ and let $F$ be the antidiametric point of $D$ with respect to $(c)$. Let $P$ be the point of intersection of the lines $FE$ and $CZ$. If the tangent to $(c)$ at $Z$ meets $PA$ at $T$, prove that the points $T, E, B, Z$ are concyclic.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nWe will first show that $PA$ is tangent to $(c)$ at $A$.\nSince $E, D, Z, A$ are concyclic, then $\\angle EDC = \\angle EAZ = \\angle EAB$. Since also the triangles $\\triangle ABC$ and $\\triangle EBA$ are similar, then $\\angle EAB = \\angle BCA$, therefore $\\angle EDC = \\angle BCA$.\nSince $\\angle FED = 90^\\circ$, then $\\angle PED = 90^\\circ$ and so\n$$\n\\angle EPD = 90^\\circ - \\angle EDC = 90^\\circ - \\angle BCA = \\angle EAC\n$$\nTherefore the points $E, A, C, P$ are concyclic. It follows that $\\angle CPA = 90^\\circ$ and therefore the triangle $\\angle PAZ$ is right-angled. Since also $B$ is the midpoint of $AZ$, then $PB = AB = BZ$ and so $\\angle ZPB = \\angle PZB$.\n\n![](attached_image_1.png)\n\nFurthermore, $\\angle EPD = \\angle EAC = \\angle CBA = \\angle EBA$ from which it follows that the points $P, E, B, Z$ are also concyclic.\nNow observe that\n$$\n\\angle PAE = \\angle PCE = \\angle ZPB - \\angle PBE = \\angle PZB - \\angle PZE = \\angle EZB\n$$\nTherefore $PA$ is tangent to $(c)$ at $A$ as claimed.\nIt now follows that $TA = TZ$. Therefore\n$$\n\\begin{aligned}\n\\angle PTZ & = 180^\\circ - 2(\\angle TAB) = 180^\\circ - 2(\\angle PAE + \\angle EAB) = 180^\\circ - 2(\\angle ECP + \\angle ACB) \\\\\n& = 180^\\circ - 2\\left(90^\\circ - \\angle PZB\\right) = 2(\\angle PZB) = \\angle PZB + \\angle BPZ = \\angle PBA .\n\\end{aligned}\n$$\nThus $T, P, B, Z$ are concyclic, and since $P, E, B, Z$ are also concyclic then $T, E, B, Z$ are concyclic as required.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34496, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nDetermine whether there is a natural number $n$ for which $8^{n}+47$ is prime.", "options": [], "answer": "No; there is no natural number for which the expression is prime.", "solution": "Solution:\nThe number $m = 8^{n} + 47$ is never prime.\n\nIf $n$ is even, say $n = 2k$, then $m = 64^{k} + 47 \\equiv 1 + 2 \\equiv 0 \\pmod{3}$. Since also $m > 3$, then $m$ is not prime.\n\nIf $n \\equiv 1 \\pmod{4}$, say $n = 4k + 1$, then $m = 8 \\cdot (8^{k})^{4} + 47 \\equiv 3 + 2 \\equiv 0 \\pmod{5}$. Since also $m > 3$, then $m$ is not prime.\n\nIf $n \\equiv 3 \\pmod{4}$, say $n = 4k + 3$, then $m = 8(64^{2k+1} + 1) \\equiv 8((-1)^{2k+1} + 1) \\equiv 0 \\pmod{13}$. Since also $m > 13$, then $m$ is not prime.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34497, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind the largest integer $k$ ($k \\geq 2$), for which there exists an integer $n$ ($n \\geq k$) such that from any collection of $n$ consecutive positive integers one can always choose $k$ numbers, which verify the following conditions:\n1. each chosen number is not divisible by $6$, by $7$ and by $8$;\n2. the positive difference of any two different chosen numbers is not divisible by at least one of the numbers $6$, $7$ or $8$.", "options": [], "answer": "108", "solution": "Solution:\nAn integer is divisible by $6$, $7$ and $8$ if and only if it is divisible by their Least Common Multiple, which equals $6 \\times 7 \\times 4 = 168$.\nLet $n$ be a positive integer and let $A$ be an arbitrary set of $n$ consecutive positive integers. Replace each number $a_{i}$ from $A$ with its remainder $r_{i}$ (mod $168$). The number $a_{i}$ is divisible by $6$ ($7$ or $8$) if and only if its remainder $r_{i}$ is divisible by $6$ (respectively $7$ or $8$). The difference $|a_{i} - a_{j}|$ is divisible by $168$ if and only if their remainders $r_{i} = r_{j}$.\nChoosing $k$ numbers from the initial set $A$, which verify the required conditions, is the same as choosing $k$ of their remainders (mod $168$) such that:\n1. each chosen remainder is not divisible by $6$, $7$ and $8$;\n2. all chosen remainders are different.\nSuppose we have chosen $k$ numbers from $A$, which verify the conditions. Therefore, all remainders are different and $k \\leq 168$ (otherwise, there would be two equal remainders).\nDenote by $B = \\{0, 1, 2, 3, \\ldots, 167\\}$ the set of all possible remainders (mod $168$) and by $B_{m}$ the subset of all elements of $B$, which are divisible by $m$. Compute the number of elements of the following subsets:\n$$\n\\begin{gathered}\n|B_{6}| = 168 / 6 = 28, \\quad |B_{7}| = 168 / 7 = 24, \\quad |B_{8}| = 168 / 8 = 21 \\\\\n|B_{6} \\cap B_{7}| = |B_{42}| = 168 / 42 = 4, \\quad |B_{6} \\cap B_{8}| = |B_{24}| = 168 / 24 = 7 \\\\\n|B_{7} \\cap B_{8}| = |B_{56}| = 168 / 56 = 3, \\quad |B_{6} \\cap B_{7} \\cap B_{8}| = |B_{168}| = 1\n\\end{gathered}\n$$\nDenote by $D = B_{6} \\cup B_{7} \\cup B_{8}$, the subset of all elements of $B$, which are divisible by at least one of the numbers $6$, $7$ or $8$. By the Inclusion-Exclusion principle we get\n$$\n\\begin{gathered}\n|D| = |B_{6}| + |B_{7}| + |B_{8}| - (|B_{6} \\cap B_{7}| + |B_{6} \\cap B_{8}| + |B_{7} \\cap B_{8}|) + |B_{6} \\cap B_{7} \\cap B_{8}| = \\\\\n28 + 24 + 21 - (4 + 7 + 3) + 1 = 60.\n\\end{gathered}\n$$\nEach chosen remainder belongs to the subset $B \\setminus D$, since it is not divisible by $6$, $7$ and $8$. Hence, $k \\leq |B \\setminus D| = 168 - 60 = 108$.\nLet us show that the greatest possible value is $k = 108$. Consider $n = 168$. Given any collection $A$ of $168$ consecutive positive integers, replace each number with its remainder (mod $168$). Choose from these remainders $108$ numbers, which constitute the set $B \\setminus D$. Finally, take $108$ numbers from the initial set $A$, having exactly these remainders. These $k = 108$ numbers verify the required conditions.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34498, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all prime numbers $p$ such that\n$$\n(x+y)^{19}-x^{19}-y^{19}\n$$\nis a multiple of $p$ for any positive integers $x, y$.", "options": [], "answer": "2, 3, 7, 19", "solution": "Solution:\nIf $x = y = 1$ then $p$ divides\n$$\n2^{19} - 2 = 2\\left(2^{18} - 1\\right) = 2\\left(2^{9} - 1\\right)\\left(2^{9} + 1\\right) = 2 \\cdot 511 \\cdot 513 = 2 \\cdot 3^{3} \\cdot 7 \\cdot 19 \\cdot 73\n$$\nIf $x = 2$, $y = 1$ then\n$$\np \\mid 3^{19} - 2^{19} - 1\n$$\nWe will show that $3^{19} - 2^{19} - 1$ is not a multiple of $73$. Indeed,\n$$\n3^{19} \\equiv 3^{3} \\cdot (3^{4})^{4} \\equiv 3^{3} \\cdot 8^{4} \\equiv 3^{3} \\cdot (-9)^{2} \\equiv 27 \\cdot 81 \\equiv 27 \\cdot 8 \\equiv 70 \\pmod{73}\n$$\nand\n$$\n2^{19} \\equiv 2 \\cdot 64^{3} \\equiv 2 \\cdot (-9)^{3} \\equiv -18 \\cdot 81 \\equiv -18 \\cdot 8 \\equiv -144 \\equiv 2 \\pmod{73}\n$$\nThus $p$ can be only among $2, 3, 7, 19$. We will prove all these work.\n\n- For $p = 19$ this follows by Fermat's Theorem as\n$$\n(x+y)^{19} \\equiv x + y \\pmod{19}, \\quad x^{19} \\equiv x \\pmod{19}, \\quad y^{19} \\equiv y \\pmod{19}\n$$\n\n- For $p = 7$, we have that\n$$\na^{19} \\equiv a \\pmod{7}\n$$\nfor every integer $a$. Indeed, if $7 \\mid a$, it is trivial, while if $7 \\nmid a$, then by Fermat's Theorem we have\n$$\n7 \\mid a^{6} - 1 \\implies 7 \\mid a^{18} - 1\n$$\ntherefore\n$$\n7 \\mid a(a^{18} - 1)\n$$\n\n- For $p = 3$, we will prove that\n$$\nb^{19} \\equiv b \\pmod{3}\n$$\nIndeed, if $3 \\mid b$, it is trivial, while if $3 \\nmid b$, then by Fermat's Theorem we have\n$$\n3 \\mid b^{2} - 1 \\implies 3 \\mid b^{18} - 1\n$$\ntherefore\n$$\n3 \\mid b(b^{18} - 1)\n$$\n\n- For $p = 2$ it is true, since among $x + y$, $x$ and $y$ there are $0$ or $2$ odd numbers.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34499, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nThe positive integer $k$ and the set $A$ of different integers from $1$ to $3k$ inclusive are such that there are no distinct $a, b, c$ in $A$ satisfying $2b = a + c$. The numbers from $A$ in the interval $[1, k]$ will be called small; those in $[k+1, 2k]$ - medium and those in $[2k+1, 3k]$ - large. Is it always true that there are no positive integers $x$ and $d$ such that if $x, x+d$ and $x+2d$ are divided by $3k$ then the remainders belong to $A$ and those of $x$ and $x+d$ are different and are:\n\na) small?\nb) medium?\nc) large?\n\n(In this problem we assume that if a multiple of $3k$ is divided by $3k$ then the remainder is $3k$ rather than $0$.)", "options": [], "answer": "a) No (counterexample: k=3, A={1,2,9}, x=2, d=8); b) Yes; c) No (counterexample: k=3, A={1,8,9}, x=8, d=1)", "solution": "Solution:\n\nA counterexample for a) is $k=3$, $A=\\{1,2,9\\}$, $x=2$ and $d=8$.\nA counterexample for c) is $k=3$, $A=\\{1,8,9\\}$, $x=8$ and $d=1$.\n\nWe will prove that b) is true.\n\nSuppose the contrary and let $x, d$ have the above properties. We can assume $0 < d < 3k$, $0 < x \\leq 3k$ (since for $d=3k$ the remainders for $x$ and $x+d$ are equal). Hence $0 < x+d < 6k$ and there are two cases:\n\n- If $x+d > 3k$, then since the remainder for $x+d$ is medium we have $4k < x+d \\leq 5k$. This means that the remainder of $x+d$ when it is divided by $3k$ is\n$$\nx+d-3k\n$$\nSince $x$ is medium we have $x \\leq 2k$ so $d = (x+d) - x > 2k$. Therefore $6k = 4k + 2k < (x+d) + d < 8k$. This means that the remainder of $x+2d$ when it is divided by $3k$ is\n$$\nx+2d-6k.\n$$\nThus the remainders $(x+2d-6k)$, $(x+d-3k)$ and $x$ are in $[1,3k]$, they belong to $A$ and\n$$\n2(x+d-3k) = (x+2d-6k) + x\n$$\na contradiction.\n\n- If $x+d \\leq 3k$ then as $x+d$ is medium we have $k < x+d \\leq 2k$. From the limitations on $x$, we have $x > k$ so $d = (x+d) - x < k$. Hence $0 \\leq x+2d = (x+d) + d < 3k$. Thus the remainders $x, x+d$ and $x+2d$ are in $A$ and\n$$\n2(x+d) = (x+2d) + x\n$$\na contradiction.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34500, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nAre there any positive integers $m$ and $n$ satisfying the equation\n$$\nm^{3}=9 n^{4}+170 n^{2}+289 ?\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\nWe will prove that the answer is no. Note that\n$$\nm^{3}=9 n^{4}+170 n^{2}+289=(9 n^{2}+17)(n^{2}+17)\n$$\nIf $n$ is odd then $m$ is even, therefore $8 \\mid m^{3}$. However,\n$$\n9 n^{4}+170 n^{2}+289 \\equiv 9+170+289 \\equiv 4 \\pmod{8}\n$$\nwhich leads to a contradiction. If $n$ is a multiple of $17$ then so is $m$ and hence $289$ is a multiple of $17^{3}$, which is absurd. For $n$ even and not multiple of $17$, since\n$$\n\\gcd\\left(9 n^{2}+17, n^{2}+17\\right) \\mid 9\\left(n^{2}+17\\right)-\\left(9 n^{2}+17\\right)=2^{3} \\cdot 17\n$$\nthis gcd must be $1$. Therefore $n^{2}+17=a^{3}$ for an odd $a$, so\n$$\nn^{2}+25=(a+2)\\left(a^{2}-2 a+4\\right)\n$$\nFor $a \\equiv 1 \\pmod{4}$ we have $a+2 \\equiv 3 \\pmod{4}$, while for $a \\equiv 3 \\pmod{4}$ we have $a^{2}-2 a+4 \\equiv 3 \\pmod{4}$. Thus $(a+2)\\left(a^{2}-2 a+4\\right)$ has a prime divisor of type $4 \\ell+3$. As it divides $n^{2}+25$, it has to divide $n$ and $5$, which is absurd.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34501, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nProve that there doesn't exist any prime $p$ such that every power of $p$ is a palindrome (palindrome is a number that is read the same from the left as it is from the right; in particular, number that ends in one or more zeros cannot be a palindrome).", "options": [], "answer": "Detailed solution", "solution": "Solution:\nNote that by criterion for divisibility by $11$ and the definition of a palindrome we have that every palindrome that has even number of digits is divisible by $11$.\nSince $11^{5} = 161051$ is not a palindrome and since $11$ cannot divide $p^{k}$ for any prime other than $11$ we are now left to prove that no prime whose all powers have odd number of digits exists.\n\nAssume the contrary. It means that the difference between the numbers of digits of $p^{m}$ and $p^{m+1}$ is even number. We will prove that for every natural $m$, the difference is the same even number.\nIf we assume not, that means that the difference for some $m_{1}$ has at least $2$ digits more than the difference for some $m_{2}$. We will prove that this is impossible.\nLet $p^{m_{1}} = 10^{t_{1}} \\cdot a_{1}$, $p^{m_{2}} = 10^{t_{2}} \\cdot a_{2}$ and $p = 10^{h} \\cdot z$, where\n$$\n1 < a_{1}, a_{2}, z < 10\n$$\nThis implies that\n$$\n1 < a_{1} \\cdot z,\\ a_{2} \\cdot z < 100\n$$\nwhich further implies that multiplying these powers of $p$ by $p$ can increase their number of digits by either $h$ or $h+1$.\nThis is a contradiction. Call the difference between numbers of digits of consecutive powers $d$. Number $p$ clearly cannot be equal to $10^{d}$ for $d \\geq 1$ because $10$ is divisible by two primes, but for $d=0$, we would have that $1$ is a prime which is not true.\n\nCase 1. $p > 10^{d}$. Let $p = 10^{d} \\cdot a$, for some real number $a$ greater than $1$. (1)\nFrom the definition of $d$ we also see that $a$ is smaller than $10$. (2)\nFrom (1) we see that powering $a$ gives us arbitrarily large numbers and from (2) we conclude that there is some natural power of $a$, call it $b$, greater than $1$, such that\n$$\n10 < a^{b} < 100\n$$\nIt is clear that $p^{b}$ has exactly $(b-1)d+1$ digits more than $p$ has, which is an odd number, but sum of even numbers is even.\n\nCase 2. $p < 10^{d}$. Let $p = \\frac{10^{d}}{a}$, for some real number $a$ greater than $1$. (1) From the definition of $d$ we also see that $a$ is smaller than $10$. (2)\nFrom (1) we see that powering $a$ gives us arbitrarily large numbers and from (2) we conclude that there is some natural power of $a$, call it $b$, greater than $1$, such that\n$$\n10 < a^{b} < 100\n$$\nIt is clear that $p^{b}$ has exactly $(b-1)d-1$ digits more than $p$ has, which is an odd number, but sum of even numbers is even.\n\nWe have now arrived at the desired contradiction for both cases and have thus finished the proof.\nSolution:\nNote that the sequence $\\{p^{n}\\}$ is periodic $(\\bmod\\ 10)$. Let the period be $d$. Also, let $p^{d} = g$.\nSince all powers of $p$ are palindromes, all powers of $g$ are as well. Since $\\{g^{n}\\}$ is constant (mod $10$), the leftmost digit of each power of $g$ is equal to some $f$.\nWe will prove that the difference between numbers of digits of $g^{m}$ and $g^{m+1}$ is equal to some $r$ for every natural number $m$.\nThis is true due to size reasons. Namely, to add exactly $k$ digits, and yet to have the same leftmost digit, we need to multiply the number by at least $5 \\cdot 10^{k-1}$ (if $k=0$ then it's $1$) and by at most $2 \\cdot 10^{k}$ (values depend on the leftmost digit, it can easily be seen that leftmost digit being $1$ yields the extremal values). Notice that\n$$\n2 \\cdot 10^{k} < 5 \\cdot 10^{k+1-1}\n$$\nSince this inequality has clearly shown that the interval of multipliers which add exactly $k$ digits and leave the leftmost digit the same is disjunct from the same kind of interval for $k+1$ digits, which implies that no number can belong to both intervals, we have successfully proven the claim.\nClearly, $g$ cannot be equal to $10^{r}$ for $r \\geq 1$ because a palindrome cannot be divisible by $10$, but for $r=0$ we again cannot have the equality because $1$ is not a natural power of a prime.\n\nCase 1. $g > 10^{r}$. Let $g = 10^{r} \\cdot a$, where $a$ is a real number, $10 > a > 1$. (1) Here, $a$ is less than $10$ because if it was not, multiplying by $g$ would add at least $r+1$ digits, which is impossible.\nFrom (1) we see that powering $a$ gives us arbitrarily large numbers and that there is some natural power of $a$, call it $b$, greater than $1$, such that\n$$\n10 < a^{b} < 100\n$$\nPick smallest such $b$.\nNow we easily see that the difference between numbers of digits of numbers $g^{b-1}$ and $g^{b}$ is exactly $r+1$.\n\nCase 2. $g < 10^{r}$. Let $g = \\frac{10^{r}}{a}$, where $a$ is a real number, $10 > a > 1$. (2) Here, $a$ is less than $10$ because if it was not, multiplying by $g$ would add at most $r-1$ digits, which is impossible.\nFrom (2) we see that powering $a$ gives us arbitrarily large numbers and that there is some natural power of $a$, call it $b$, greater than $1$, such that\n$$\n10 < a^{b} < 100\n$$\nPick smallest such $b$.\nNow we easily see that the difference between numbers of digits of numbers $g^{b-1}$ and $g^{b}$ is exactly $r-1$.\n\nWe have arrived at the desired contradiction for both cases and have thus finished the proof.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34502, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all triples $(a, b, c)$ of real numbers such that the following system holds:\n$$\n\\left\\{\\begin{array}{l}\na+b+c=\\frac{1}{a}+\\frac{1}{b}+\\frac{1}{c} \\\\\na^{2}+b^{2}+c^{2}=\\frac{1}{a^{2}}+\\frac{1}{b^{2}}+\\frac{1}{c^{2}}\n\\end{array}\\right.\n$$", "options": [], "answer": "All permutations of (t, 1/t, 1) and (t, 1/t, −1) for any nonzero real t.", "solution": "Solution:\nFirst of all if $(a, b, c)$ is a solution of the system then also $(-a,-b,-c)$ is a solution. Hence we can suppose that $a b c>0$. From the first condition we have\n$$\na+b+c=\\frac{a b+b c+c a}{a b c}\n$$\nNow, from the first condition and the second condition we get\n$$\n(a+b+c)^{2}-\\left(a^{2}+b^{2}+c^{2}\\right)=\\left(\\frac{1}{a}+\\frac{1}{b}+\\frac{1}{c}\\right)^{2}-\\left(\\frac{1}{a^{2}}+\\frac{1}{b^{2}}+\\frac{1}{c^{2}}\\right)\n$$\nThe last one simplifies to\n$$\na b+b c+c a=\\frac{a+b+c}{a b c}\n$$\nFirst we show that $a+b+c$ and $a b+b c+c a$ are different from $0$. Suppose on contrary then from relation (1) or (2) we have $a+b+c=a b+b c+c a=0$. But then we would have\n$$\na^{2}+b^{2}+c^{2}=(a+b+c)^{2}-2(a b+b c+c a)=0\n$$\nwhich means that $a=b=c=0$. This is not possible since $a, b, c$ should be different from $0$. Now multiplying (1) and (2) we have\n$$\n(a+b+c)(a b+b c+c a)=\\frac{(a+b+c)(a b+b c+c a)}{(a b c)^{2}}\n$$\nSince $a+b+c$ and $a b+b c+c a$ are different from $0$, we get $(a b c)^{2}=1$ and using the fact that $a b c>0$ we obtain that $a b c=1$. So relations (1) and (2) transform to\n$$\na+b+c=a b+b c+c a.\n$$\nTherefore,\n$$\n(a-1)(b-1)(c-1)=a b c-a b-b c-c a+a+b+c-1=0.\n$$\nThis means that at least one of the numbers $a, b, c$ is equal to $1$. Suppose that $c=1$ then relations (1) and (2) transform to $a+b+1=a b+a+b \\Rightarrow a b=1$. Taking $a=t$ then we have $b=\\frac{1}{t}$. We can now verify that any triple $(a, b, c)=\\left(t, \\frac{1}{t}, 1\\right)$ satisfies both conditions. $t \\in \\mathbb{R} \\setminus\\{0\\}$. From the initial observation any triple $(a, b, c)=\\left(t, \\frac{1}{t},-1\\right)$ satisfies both conditions. $t \\in \\mathbb{R} \\setminus\\{0\\}$. So, all triples that satisfy both conditions are $(a, b, c)=\\left(t, \\frac{1}{t}, 1\\right),\\left(t, \\frac{1}{t},-1\\right)$ and all permutations for any $t \\in \\mathbb{R} \\setminus\\{0\\}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34503, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $\\triangle ABC$ be a right-angled triangle with $\\angle BAC = 90^\\circ$ and let $E$ be the foot of the perpendicular from $A$ on $BC$. Let $Z \\neq A$ be a point on the line $AB$ with $AB = BZ$. Let $(c)$ be the circumcircle of the triangle $\\triangle AEZ$. Let $D$ be the second point of intersection of $(c)$ with $ZC$ and let $F$ be the antidiametric point of $D$ with respect to $(c)$. Let $P$ be the point of intersection of the lines $FE$ and $CZ$. If the tangent to $(c)$ at $Z$ meets $PA$ at $T$, prove that the points $T, E, B, Z$ are concyclic.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nWe will first show that $PA$ is tangent to $(c)$ at $A$.\nSince $E, D, Z, A$ are concyclic, then $\\angle EDC = \\angle EAZ = \\angle EAB$. Since also the triangles $\\triangle ABC$ and $\\triangle EBA$ are similar, then $\\angle EAB = \\angle BCA$, therefore $\\angle EDC = \\angle BCA$.\nSince $\\angle FED = 90^\\circ$, then $\\angle PED = 90^\\circ$ and so\n$$\n\\angle EPD = 90^\\circ - \\angle EDC = 90^\\circ - \\angle BCA = \\angle EAC\n$$\nTherefore the points $E, A, C, P$ are concyclic. It follows that $\\angle CPA = 90^\\circ$ and therefore the triangle $\\triangle PAZ$ is right-angled. Since also $B$ is the midpoint of $AZ$, then $PB = AB = BZ$ and so $\\angle ZPB = \\angle PZB$.\n\n![](attached_image_1.png)\n\nFurthermore, $\\angle EPD = \\angle EAC = \\angle CBA = \\angle EBA$ from which it follows that the points $P, E, B, Z$ are also concyclic.\nNow observe that\n$$\n\\angle PAE = \\angle PCE = \\angle ZPB - \\angle PBE = \\angle PZB - \\angle PZE = \\angle EZB\n$$\nTherefore $PA$ is tangent to $(c)$ at $A$ as claimed.\nIt now follows that $TA = TZ$. Therefore\n$$\n\\begin{aligned}\n\\angle PTZ & = 180^\\circ - 2(\\angle TAB) = 180^\\circ - 2(\\angle PAE + \\angle EAB) = 180^\\circ - 2(\\angle ECP + \\angle ACB) \\\\\n& = 180^\\circ - 2\\left(90^\\circ - \\angle PZB\\right) = 2(\\angle PZB) = \\angle PZB + \\angle BPZ = \\angle PBA .\n\\end{aligned}\n$$\nThus $T, P, B, Z$ are concyclic, and since $P, E, B, Z$ are also concyclic then $T, E, B, Z$ are concyclic as required.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34504, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAlice and Bob play the following game: Alice picks a set $A=\\{1,2, \\ldots, n\\}$ for some natural number $n \\geqslant 2$. Then starting with Bob, they alternatively choose one number from the set $A$, according to the following conditions: initially Bob chooses any number he wants, afterwards the number chosen at each step should be distinct from all the already chosen numbers, and should differ by 1 from an already chosen number. The game ends when all numbers from the set $A$ are chosen. Alice wins if the sum of all of the numbers that she has chosen is composite. Otherwise Bob wins. Decide which player has a winning strategy.", "options": [], "answer": "Alice", "solution": "Solution:\n\nTo say that Alice has a winning strategy means that she can find a number $n$ to form the set $A$, so that she can respond appropriately to all choices of Bob and always get at the end a composite number for the sum of her choices. If such $n$ does not exist, this would mean that Bob has a winning strategy instead.\n\nAlice can try first to check the small values of $n$. Indeed, this gives the following winning strategy for her: she initially picks $n=8$ and responds to all possible choices made by Bob as in the list below (in each row the choices of Bob and Alice are given alternatively, starting with Bob):\n\n$\\begin{array}{llllllll}1 & 2 & 3 & 4 & 5 & 6 & 7 & 8\\end{array}$\n$\\begin{array}{llllllll}2 & 3 & 1 & 4 & 5 & 6 & 7 & 8\\end{array}$\n$\\begin{array}{llllllll}2 & 3 & 4 & 1 & 5 & 6 & 7 & 8\\end{array}$\n$\\begin{array}{llllllll}3 & 2 & 1 & 4 & 5 & 6 & 7 & 8\\end{array}$\n$\\begin{array}{llllllll}3 & 2 & 4 & 5 & 1 & 6 & 7 & 8\\end{array}$\n$\\begin{array}{llllllll}3 & 2 & 4 & 5 & 6 & 1 & 7 & 8\\end{array}$\n$\\begin{array}{llllllll}4 & 5 & 3 & 6 & 2 & 1 & 7 & 8\\end{array}$\n$\\begin{array}{llllllll}4 & 5 & 3 & 6 & 7 & 8 & 2 & 1\\end{array}$\n$\\begin{array}{llllllll}4 & 5 & 6 & 7 & 3 & 2 & 1 & 8\\end{array}$\n$\\begin{array}{llllllll}4 & 5 & 6 & 7 & 3 & 2 & 8 & 1\\end{array}$\n$\\begin{array}{llllllll}4 & 5 & 6 & 7 & 8 & 3 & 2 & 1\\end{array}$\n$\\begin{array}{llllllll}5 & 4 & 3 & 2 & 1 & 6 & 7 & 8\\end{array}$\n$\\begin{array}{llllllll}5 & 4 & 3 & 2 & 6 & 7 & 1 & 8\\end{array}$\n$\\begin{array}{llllllll}5 & 4 & 3 & 2 & 6 & 7 & 8 & 1\\end{array}$\n$\\begin{array}{llllllll}5 & 4 & 6 & 3 & 2 & 1 & 7 & 8\\end{array}$\n$\\begin{array}{llllllll}5 & 4 & 6 & 3 & 7 & 8 & 2 & 1\\end{array}$\n$\\begin{array}{llllllll}6 & 7 & 5 & 4 & 3 & 8 & 2 & 1\\end{array}$\n$\\begin{array}{llllllll}6 & 7 & 5 & 4 & 8 & 3 & 2 & 1\\end{array}$\n$\\begin{array}{llllllll}6 & 7 & 8 & 5 & 4 & 3 & 2 & 1\\end{array}$\n$\\begin{array}{llllllll}7 & 6 & 8 & 5 & 4 & 3 & 2 & 1\\end{array}$\n$\\begin{array}{llllllll}7 & 6 & 5 & 8 & 4 & 3 & 2 & 1\\end{array}$\n$\\begin{array}{llllllll}8 & 7 & 6 & 5 & 4 & 3 & 2 & 1\\end{array}$\n\nIn all cases, Alice's sum is either an even number greater than $2$, or else $15$ or $21$, thus Alice always wins.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34505, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all pairs $(p, q)$ of prime numbers such that\n$$\n1+\\frac{p^{q}-q^{p}}{p+q}\n$$\nis a prime number.", "options": [], "answer": "(2,5)", "solution": "Solution:\nIt is clear that $p \\neq q$. We set\n$$\n1+\\frac{p^{q}-q^{p}}{p+q}=r\n$$\nand we have that\n$$\np^{q}-q^{p}=(r-1)(p+q)\n$$\nFrom Fermat's Little Theorem we have\n$$\np^{q}-q^{p} \\equiv -q \\quad(\\bmod p)\n$$\nSince we also have that\n$$\n(r-1)(p+q) \\equiv -r q - q \\quad(\\bmod p)\n$$\nfrom (3) we get that\n$$\nr q \\equiv 0 \\quad(\\bmod p) \\Rightarrow p \\mid q r\n$$\nhence $p \\mid r$, which means that $p=r$. Therefore, (3) takes the form\n$$\np^{q}-q^{p}=(p-1)(p+q)\n$$\nWe will prove that $p=2$. Indeed, if $p$ is odd, then from Fermat's Little Theorem we have\n$$\np^{q}-q^{p} \\equiv p \\quad(\\bmod q)\n$$\nand since\n$$\n(p-1)(p+q) \\equiv p(p-1) \\quad(\\bmod q)\n$$\nwe have\n$$\np(p-2) \\equiv 0 \\quad(\\bmod q) \\Rightarrow q|p(p-2) \\Rightarrow q| p-2 \\Rightarrow q \\leq p-2n^{2}+n+2$. This means that $q \\leq 5$ and the only solution is for $q=5$. Hence the only pair which satisfy the condition is $(p, q)=(2,5)$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34506, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all pairs $(a, b)$ of positive integers such that\n$$\n11 a b \\leq a^{3}-b^{3} \\leq 12 a b\n$$", "options": [], "answer": "(5, 2)", "solution": "Solution:\nLet $a-b=t$. Due to $a^{3}-b^{3} \\geq 11 a b$ we conclude that $a>b$ so $t$ is a positive integer and the condition can be written as\n$$\n11 b(b+t) \\leq t\\left[b^{2}+b(b+t)+(b+t)^{2}\\right] \\leq 12 b(b+t)\n$$\nSince\n$$\nt\\left[b^{2}+b(b+t)+(b+t)^{2}\\right]=t\\left(b^{2}+b^{2}+b t+b^{2}+2 b t+t^{2}\\right)=3 t b(b+t)+t^{3}\n$$\nthe condition can be rewritten as\n$$\n(11-3 t) b(b+t) \\leq t^{3} \\leq(12-3 t) b(b+t)\n$$\nWe can not have $t \\geq 4$ since in that case $t^{3} \\leq(12-3 t) b(b+t)$ is not satisfied as the right hand side is not positive. Therefore it remains to check the cases when $t \\in\\{1,2,3\\}$. If $t=3$, the above condition becomes\n$$\n2 b(b+3) \\leq 27 \\leq 3 b(b+3)\n$$\nIf $b \\geq 3$, the left hand side is greater than 27 and if $b=1$ the right hand side is smaller than 27 so there are no solutions in these cases. If $b=2$, we get a solution $(a, b)=(5,2)$.\nIf $t \\leq 2$, we have\n$$\n(11-3 t) b(b+t) \\geq(11-6) \\cdot 1 \\cdot(1+1)=10>t^{3}\n$$\nso there are no solutions in this case.\nIn summary, the only solution is $(a, b)=(5,2)$.\nSolution:\nFirst, from $a^{3}-b^{3} \\geq 11 a b>0$ it follows that $a>b$, implying that $a-b \\geq 1$. Note that\n$$\na^{3}-b^{3}=(a-b)\\left(a^{2}+a b+b^{2}\\right)=(a-b)\\left[(a-b)^{2}+3 a b\\right] \\geq(a-b)(1+3 a b)>3 a b(a-b)\n$$\nTherefore $12 a b \\geq a^{3}-b^{3}>3 a b(a-b)$, which implies that $a-b<4$ so $a-b \\in\\{1,2,3\\}$. We discuss three possible cases:\n- $a-b=1$\n\nAfter replacing $a=b+1$, the condition $a^{3}-b^{3} \\geq 11 a b$ reduces to $1 \\geq 8 b^{2}+8 b$, which is not satisfied for any positive integer $b$.\n\n- $a-b=2$\n\nAfter replacing $a=b+2$, the condition $a^{3}-b^{3} \\geq 11 a b$ reduces to $8 \\geq 5 b^{2}+10 b$, which is also not satisfied for any positive integer $b$.\n\n- $a-b=3$\n\nAfter replacing $a=b+3$, the condition $a^{3}-b^{3} \\geq 11 a b$ reduces to $27 \\geq 2 b^{2}+6 b$. The last inequality holds true only for $b=1$ and $b=2$. For $b=1$ we get $a=4$ and for $b=2$ we get $a=5$. Direct verification shows that $a^{3}-b^{3} \\leq 12 a b$ is satisfied only for $(a, b)=(5,2)$.\n\nIn summary, $(a, b)=(5,2)$ is the only pair of positive integers satisfying all conditions of the problem.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34507, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $ABC$ be an acute triangle such that $AH = HD$, where $H$ is the orthocenter of $ABC$ and $D \\in BC$ is the foot of the altitude from the vertex $A$. Let $\\ell$ denote the line through $H$ which is tangent to the circumcircle of the triangle $BHC$. Let $S$ and $T$ be the intersection points of $\\ell$ with $AB$ and $AC$, respectively. Denote the midpoints of $BH$ and $CH$ by $M$ and $N$, respectively. Prove that the lines $SM$ and $TN$ are parallel.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nIn order to prove that $SM$ and $TN$ are parallel, it suffices to prove that both of them are perpendicular to $ST$. Due to symmetry, we will provide a detailed proof of $SM \\perp ST$, whereas the proof of $TN \\perp ST$ is analogous. In this solution we will use the following notation: $\\angle BAC = \\alpha$, $\\angle ABC = \\beta$, $\\angle ACB = \\gamma$.\n\n![](attached_image_1.png)\n\nWe first observe that, due to the tangency condition, we have\n$$\n\\angle SHB = \\angle HCB = 90^\\circ - \\beta\n$$\nCombining the above with\n$$\n\\angle SBH = \\angle ABH = 90^\\circ - \\alpha\n$$\nwe get\n$$\n\\angle BSH = 180^\\circ - (90^\\circ - \\beta) - (90^\\circ - \\alpha) = \\alpha + \\beta = 180^\\circ - \\gamma\n$$\nfrom which it follows that $\\angle AST = \\gamma$.\n\nSince $AH = HD$, $H$ is the midpoint of $AD$. If $K$ denotes the midpoint of $AB$, we have that $KH$ and $BC$ are parallel. Since $M$ is the midpoint of $BH$, the lines $KM$ and $AD$ are parallel, from which it follows that $KM$ is perpendicular to $BC$. As $KH$ and $BC$ are parallel, we have that $KM$ is perpendicular to $KH$ so $\\angle MKH = 90^\\circ$. Using the parallel lines $KH$ and $BC$ we also have\n$$\n\\angle KHM = \\angle KHB = \\angle HBC\n$$\nNow,\n$$\n\\angle HMK = 90^\\circ - \\angle KHM = 90^\\circ - \\angle HBC = 90^\\circ - (90^\\circ - \\gamma) = \\gamma = \\angle AST = \\angle KSH\n$$\nso the quadrilateral $MSKH$ is cyclic, which implies that $\\angle MSH = \\angle MKH = 90^\\circ$. In other words, the lines $SM$ and $ST$ are perpendicular, which completes our proof.\nSolution:\n\nWe will refer to the same figure as in the first solution. Since $CH$ is tangent to the circumcircle of triangle $BHC$, we have\n$$\n\\angle SHB = \\angle HCB = 90^\\circ - \\angle ABC = \\angle HAB\n$$\nFrom the above it follows that triangles $AHB$ and $HSB$ are similar. If $K$ denotes the midpoint of $AB$, then triangles $AHK$ and $HSM$ are also similar. Now, observe that $H$ and $K$ are respectively the midpoints of $AD$ and $AB$, which implies that $HK \\parallel DB$, so\n$$\n\\angle AHK = \\angle ADB = 90^\\circ\n$$\nNow, from the last observation and the similarity of triangles $AHK$ and $HSM$, it follows that\n$$\n\\angle HSM = \\angle AHK = 90^\\circ\n$$\nDue to symmetry, analogously as above, we can prove that $\\angle HTN = 90^\\circ$, implying that both $SM$ and $TN$ are perpendicular to $TS$, hence they are parallel.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 34508, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all quadruples of positive integers $(p, q, a, b)$, where $p$ and $q$ are prime numbers and $a>1$, such that\n$$\np^{a}=1+5 q^{b}\n$$", "options": [], "answer": "[(2,3,4,1), (3,2,4,4)]", "solution": "Solution:\nFirst of all, observe that if $p, q$ are both odd, then the left hand side of the given equation is odd and the right hand side is even so there are no solutions in this case. In other words, one of these numbers has to be equal to $2$ so we can discuss the following two cases:\n\n- $p=2$\n\nIn this case the given equation becomes\n$$\n2^{a}=1+5 q^{b}\n$$\nNote that $q$ has to be odd. In addition, $2^{a} \\equiv 1 \\pmod{5}$. It can be easily shown that the last equation holds if and only if $a=4c$, for some positive integer $c$. Now, our equation becomes $2^{4c}-1=5q^{b}$, which can be written into its equivalent form\n$$\n(4^{c}-1)(4^{c}+1)=5q^{b}\n$$\nSince $q$ is odd, it can not divide both $4^{c}-1$ and $4^{c}+1$. Namely, if it divides both of these numbers then it also divides their difference, which is equal to $2$, and this is clearly impossible. Therefore, we have that either $q^{b} \\mid 4^{c}-1$ or $q^{b} \\mid 4^{c}+1$, which implies that one of the numbers $4^{c}-1$ and $4^{c}+1$ divides $5$. Since for $c \\geq 2$ both of these numbers are greater than $5$, we only need to discuss the case $c=1$. But in this case $5q^{b}=15$, which is obviously satisfied only for $b=1$ and $q=3$. In summary, $(p, q, a, b)=(2,3,4,1)$ is the only solution in this case.\n\n- $q=2$\n\nIn this case obviously $p$ must be an odd number and the given equation becomes\n$$\np^{a}=1+5 \\cdot 2^{b}\n$$\nFirst, assume that $b$ is even. Then $2^{b} \\equiv 1 \\pmod{3}$, which implies that $1+5 \\cdot 2^{b}$ is divisible by $3$, hence $3 \\mid p^{a}$ so $p$ must be equal to $3$ and our equation becomes\n$$\n3^{a}=1+5 \\cdot 2^{b}\n$$\nFrom here it follows that $3^{a} \\equiv 1 \\pmod{5}$, which implies that $a=4c$, for some positive integer $c$. Then the equation $3^{a}=1+5 \\cdot 2^{b}$ can be written into its equivalent form\n$$\n\\frac{3^{2c}-1}{2} \\cdot \\frac{3^{2c}+1}{2}=5 \\cdot 2^{b-2}\n$$\nObserve now that $3^{2c} \\equiv 1 \\pmod{4}$ from where it follows that $\\frac{3^{2c}+1}{2} \\equiv 1 \\pmod{2}$. From here we can conclude that the number $\\frac{3^{2c}+1}{2}$ is relatively prime to $2^{b-2}$, so it has to divide $5$. Clearly, this is possible only for $c=1$ since for $c>1$ we have $\\frac{3^{2c}+1}{2}>5$. For $c=1$, we easily find $b=4$, which yields the solution $(p, q, a, b)=(3,2,4,4)$.\n\nNext, we discuss the case when $b$ is odd. In this case,\n$$\np^{a}=1+5 \\cdot 2^{b} \\equiv 1+5 \\cdot 2 \\equiv 2 \\pmod{3}\n$$\nThe last equation implies that $a$ must be odd. Namely, if $a$ is even then we can not have $p^{a} \\equiv 2 \\pmod{3}$ regardless of the value of $p$. Combined with the condition $a>1$, we conclude that $a \\geq 3$. The equation $p^{a}=1+5 \\cdot 2^{b}$ can be written as\n$$\n5 \\cdot 2^{b}=p^{a}-1=(p-1)(p^{a-1}+p^{a-2}+\\cdots+1)\n$$\nObserve that\n$$\np^{a-1}+p^{a-2}+\\cdots+1 \\equiv 1+1+\\cdots+1=a \\equiv 1 \\pmod{2}\n$$\nso this number is relatively prime to $2^{b}$, which means that it has to divide $5$. But this is impossible, since $a \\geq 3$ and $p \\geq 3$ imply that\n$$\np^{a-1}+p^{a-2}+\\cdots+1 \\geq p^{2}+p+1 \\geq 3^{2}+3+1=13>5\n$$\nIn other words, there are no solutions when $q=2$ and $b$ is an odd number.\n\nIn summary, $(a, b, p, q)=(4,4,3,2)$ and $(a, b, p, q)=(4,1,2,3)$ are the only solutions.\nSolution:\nAnalogously as in the first solution we conclude that at least one of the numbers $p$ and $q$ has to be even. Since these numbers are prime, this implies that at least one of $p$ and $q$ must be equal to $2$. Therefore it is sufficient to discuss the following two cases:\n\n- $p=2$\n\nIn this case the given equation then becomes\n$$\n2^{a}=1+5q^{b}\n$$\nFrom here, it follows that $q$ is an odd number. In addition, $2^{a} \\equiv 1 \\pmod{5}$, which implies that $a=4c$, for some positive integer $c$. Then the above equation can be written in its equivalent form\n$$\n(2^{c}-1)(2^{c}+1)(2^{2c}+1)=5q^{b}\n$$\nSince $2^{c}-1, 2^{c}$ and $2^{c}+1$ are three consecutive integers, one of them must be divisible by $3$. Clearly it is not $2^{c}$ implying that one of the numbers $2^{c}-1$ and $2^{c}+1$ is divisible by $3$. This implies that $3 \\mid (2^{c}-1)(2^{c}+1)(2^{2c}+1)$ so $3 \\mid 5q^{b}$, hence $q$ must be equal to $3$ and we are left with solving the equation\n$$\n(2^{c}-1)(2^{c}+1)(2^{2c}+1)=5 \\cdot 3^{b}\n$$\nNote that $2^{2c}+1 \\equiv 2 \\pmod{3}$ so from the above equation it follows that $2^{2c}+1$ must be equal to $5$, which implies that $c=1$. For $c=1$ we have $b=1$, so we get $(a, b, p, q)=(4,1,2,3)$ as the only solution in this case.\n\n- $q=2$\n\nIn this case the given equation becomes\n$$\np^{a}=1+5 \\cdot 2^{b}\n$$\nso clearly $p$ must be an odd number.\n\nIf $a$ is odd then we have\n$$\n5 \\cdot 2^{b}=(p-1)(p^{a-1}+p^{a-2}+\\cdots+p+1)\n$$\nThe second bracket on the right hand side is sum of $a$ odd numbers so it is an odd number. Due to the condition $a>1$ we must have $a \\geq 3$. But then\n$$\np^{a-1}+p^{a-2}+\\cdots+p+1 \\geq p^{2}+p+1 \\geq 3^{2}+3+1>5\n$$\nso we do not have solutions in this case. Therefore it remains to discuss the case when $a$ is even.\n\nLet $a=2c$ for some positive integer $c$. Then we have the following equation\n$$\n(p^{c}-1)(p^{c}+1)=5 \\cdot 2^{b}\n$$\nNote that $p^{c}-1$ and $p^{c}+1$ are two consecutive even numbers so one of them is divisible by $2$ but not by $4$. Looking into the right hand side of the above equation, we conclude that this number must be equal to either $2$ or $5 \\cdot 2=10$. In other words, either $p^{c}-1 \\in \\{2,10\\}$ or $p^{c}+1 \\in \\{2,10\\}$ yielding the following possible values for $p^{c}$: $1,3,9,11$. Clearly $p^{c}=1$ is impossible, whereas $p^{c}=3$ implies that $(p^{c}-1)(p^{c}+1)$ is not divisible by $5$ so there are no solutions if $p^{c}=3$. Similarly, for $p^{c}=11$ we have that $(p^{c}-1)(p^{c}+1)$ is divisible by $3$ so it can not be equal to $5 \\cdot 2^{b}$ for any positive integer $b$. Finally, if $p^{c}=9$, we have solution $(a, b, p, q)=(4,4,3,2)$.\n\nIn summary, $(a, b, p, q)=(4,4,3,2)$ and $(a, b, p, q)=(4,1,2,3)$ are the only solutions.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34509, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nWe call an even positive integer $n$ nice if the set $\\{1,2, \\ldots, n\\}$ can be partitioned into $\\frac{n}{2}$ two-element subsets, such that the sum of the elements in each subset is a power of $3$. For example, $6$ is nice, because the set $\\{1,2,3,4,5,6\\}$ can be partitioned into subsets $\\{1,2\\},\\{3,6\\},\\{4,5\\}$. Find the number of nice positive integers which are smaller than $3^{2022}$.", "options": [], "answer": "2^{2022} - 1", "solution": "Solution:\n\nFor a nice number $n$ and a given partition of the set $\\{1,2, \\ldots, n\\}$ into two-element subsets such that the sum of the elements in each subset is a power of $3$, we say that $a, b \\in \\{1,2, \\ldots, n\\}$ are paired if both of them belong to the same subset.\n\nLet $x$ be a nice number and $k$ be a (unique) non-negative integer such that $3^{k} \\leq x < 3^{k+1}$. Suppose that $x$ is paired with $y < x$. Then, $x + y = 3^{s}$, for some positive integer $s$. Since\n$$\n3^{s} = x + y < 2x < 2 \\cdot 3^{k+1} < 3^{k+2}\n$$\nwe must have $s < k+2$. On the other hand, the inequality\n$$\nx + y \\geq 3^{k} + 1 > 3^{k}\n$$\nimplies that $s > k$. From these we conclude that $s$ must be equal to $k+1$, so $x + y = 3^{k+1}$. The last equation, combined with $x > y$, implies that $x > \\frac{3^{k+1}}{2}$.\n\nSimilarly as above, we can conclude that each number $z$ from the closed interval $[3^{k+1} - x, x]$ is paired with $3^{k+1} - z$. Namely, for any such $z$, the larger of the numbers $z$ and $3^{k+1} - z$ is greater than $\\frac{3^{k+1}}{2}$ which is greater than $3^{k}$, so the numbers $z$ and $3^{k+1} - z$ must necessarily be in the same subset. In other words, each number from the interval $[3^{k+1} - x, x]$ is paired with another number from this interval. Note that this implies that all numbers smaller than $3^{k+1} - x$ are paired among themselves, so the number $3^{k+1} - x - 1$ is either nice or equals zero. Also, the number $3^{k}$ must be paired with $2 \\cdot 3^{k}$, so $x \\geq 2 \\cdot 3^{k}$.\n\nFinally, we prove by induction that $a_{n} = 2^{n} - 1$, where $a_{n}$ is the number of nice positive integers smaller than $3^{n}$. For $n = 1$, the claim is obviously true, because $2$ is the only nice positive integer smaller than $3$. Now, assume that $a_{n} = 2^{n} - 1$ for some positive integer $n$. We will prove that $a_{n+1} = 2^{n+1} - 1$. To prove this, first observe that the number of nice positive integers between $2 \\cdot 3^{n}$ and $3^{n+1}$ is exactly $a_{n+1} - a_{n}$. Next, observe that $3^{n+1} - 1$ is nice. For every nice number $2 \\cdot 3^{n} \\leq x < 3^{n+1} - 1$, the number $3^{n+1} - x - 1$ is also nice and is strictly smaller than $3^{n}$. Also, for every positive integer $y < 3^{n}$, obviously there is a unique number $x$ such that $2 \\cdot 3^{n} \\leq x < 3^{n+1} - 1$ and $3^{n+1} - x - 1 = y$. Thus,\n$$\na_{n+1} - a_{n} = a_{n} + 1 \\Leftrightarrow a_{n+1} = 2 a_{n} + 1 = 2(2^{n} - 1) + 1 = 2^{n+1} - 1\n$$\ncompleting the proof.\n\nIn summary, there are $2^{2022} - 1$ nice positive integers smaller than $3^{2022}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34510, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all pairs $(a, b)$ of positive integers such that $a!+b$ and $b!+a$ are both powers of $5$.", "options": [], "answer": "(1,4), (4,1), (5,5)", "solution": "Solution:\nThe condition is symmetric so we can assume that $b \\leq a$.\n\nThe first case is when $a = b$. In this case, $a! + a = 5^{m}$ for some positive integer $m$. We can rewrite this as $a \\cdot ((a-1)! + 1) = 5^{m}$. This means that $a = 5^{k}$ for some integer $k \\geq 0$. It is clear that $k$ cannot be $0$. If $k \\geq 2$, then $(a-1)! + 1 = 5^{l}$ for some $l \\geq 1$, but $a-1 = 5^{k} - 1 > 5$, so $5 \\mid (a-1)!$. However, $5 \\mid (a-1)! + 1$, which is not possible. This means that $k = 1$ and $a = 5$. In this case, $5! + 5 = 125$, which gives us the solution $(5,5)$.\n\nLet us now assume that $1 \\leq b < a$. Let us first assume that $b = 1$. Then $a + 1 = 5^{x}$ and $a! + 1 = 5^{y}$ for integers $x, y \\geq 1$. If $x \\geq 2$, then $a = 5^{x} - 1 \\geq 5^{2} - 1 > 5$, so $5 \\mid a!$. However, $5 \\mid 5^{y} = a! + 1$, which leads to a contradiction. We conclude that $x = 1$ and $a = 4$. From here $a! + b = 25$ and $b! + a = 5$, so we get two more solutions: $(1,4)$ and $(4,1)$.\n\nNow we focus on the case $1 < b < a$. Then we have $a! + b = 5^{x}$ for $x \\geq 2$, so $b \\cdot \\left(\\frac{a!}{b} + 1\\right) = 5^{x}$, where $b \\mid a!$ because $a > b$. Because $b \\mid 5^{x}$ and $b > 1$, we have $b = 5^{z}$ for $z \\geq 1$. If $z \\geq 2$, then $5 < b < a$, so $5 \\mid a!$, which means that $\\frac{a!}{b} + 1$ cannot be a power of $5$. We conclude that $z = 1$ and $b = 5$. From here $5! + a$ is a power of $5$, so $5 \\mid a$, but $a > b = 5$, which gives us $a \\geq 10$. However, this would mean that $25 \\mid a!$, $5 \\mid b$ and $25 \\nmid b$, which is not possible, because $a! + b = 5^{x}$ and $25 \\mid 5^{x}$.\n\nWe conclude that the only solutions are $(1,4)$, $(4,1)$ and $(5,5)$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34511, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nProve that for all non-negative real numbers $x, y, z$, not all equal to $0$, the following inequality holds\n$$\n\\frac{2x^{2}-x+y+z}{x+y^{2}+z^{2}}+\\frac{2y^{2}+x-y+z}{x^{2}+y+z^{2}}+\\frac{2z^{2}+x+y-z}{x^{2}+y^{2}+z} \\geqslant 3\n$$\nDetermine all the triples $(x, y, z)$ for which the equality holds.", "options": [], "answer": "Equality holds exactly for the triples: (t, t, t) with t > 0; (t, t, 1 − t) with t in [0, 1]; (t, 1 − t, t) with t in [0, 1]; and (1 − t, t, t) with t in [0, 1].", "solution": "Solution:\nLet us first write the expression $L$ on the left hand side in the following way\n$$\n\\begin{aligned}\nL & = \\left(\\frac{2x^{2}-x+y+z}{x+y^{2}+z^{2}} + 2\\right) + \\left(\\frac{2y^{2}+x-y+z}{x^{2}+y+z^{2}} + 2\\right) + \\left(\\frac{2z^{2}+x+y-z}{x^{2}+y^{2}+z} + 2\\right) - 6 \\\\\n& = \\left(2x^{2} + 2y^{2} + 2z^{2} + x + y + z\\right)\\left(\\frac{1}{x+y^{2}+z^{2}} + \\frac{1}{x^{2}+y+z^{2}} + \\frac{1}{x^{2}+y^{2}+z}\\right) - 6\n\\end{aligned}\n$$\nIf we introduce the notation $A = x + y^{2} + z^{2}$, $B = x^{2} + y + z^{2}$, $C = x^{2} + y^{2} + z$, then the previous relation becomes\n$$\nL = (A + B + C)\\left(\\frac{1}{A} + \\frac{1}{B} + \\frac{1}{C}\\right) - 6\n$$\nUsing the arithmetic-harmonic mean inequality or Cauchy-Schwarz inequality for positive real numbers $A, B, C$, we easily obtain\n$$\n(A + B + C)\\left(\\frac{1}{A} + \\frac{1}{B} + \\frac{1}{C}\\right) \\geqslant 9\n$$\nso it holds $L \\geqslant 3$.\n\nThe equality occurs if and only if $A = B = C$, which is equivalent to the system of equations\n$$\nx^{2} - y^{2} = x - y, \\quad y^{2} - z^{2} = y - z, \\quad x^{2} - z^{2} = x - z\n$$\nIt follows easily that the only solutions of this system are\n$(x, y, z) \\in \\{(t, t, t) \\mid t > 0\\} \\cup \\{(t, t, 1-t) \\mid t \\in [0,1]\\} \\cup \\{(t, 1-t, t) \\mid t \\in [0,1]\\} \\cup \\{(1-t, t, t) \\mid t \\in [0,1]\\}$.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34512, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAlice and Bob play the following game on a $100 \\times 100$ grid, taking turns, with Alice starting first. Initially the grid is empty. At their turn, they choose an integer from $1$ to $100^{2}$ that is not written yet in any of the cells and choose an empty cell, and place it in the chosen cell. When there is no empty cell left, Alice computes the sum of the numbers in each row, and her score is the maximum of these $100$ sums. Bob computes the sum of the numbers in each column, and his score is the maximum of these $100$ sums. Alice wins if her score is greater than Bob's score, Bob wins if his score is greater than Alice's score, otherwise no one wins.\nFind if one of the players has a winning strategy, and if so which player has a winning strategy.", "options": [], "answer": "Bob has a winning strategy.", "solution": "Solution:\n\nWe denote by $(i, j)$ the cell in the $i$-th line and in the $j$-th column for every $1 \\leq i, j \\leq n$. Bob associates the following pair of cells: $(i, 2k+1), (i, 2k+2)$ for $1 \\leq i \\leq 100$ and $0 \\leq k \\leq 49$ except for $(i, k) = (100, 0)$ and $(100, 1)$, and the pairs $(100, 1), (100, 3)$ and $(100, 2), (100, 4)$.\nEach time Alice writes the number $j$ in one of the cells, Bob writes the number $100^{2} + 1 - j$ in the other cell of the pair.\nOne can prove by induction that after each of Bob's turns, for each pair of cells, either there is a number written in each of the cells of the pair, or in neither of them. And that if a number $j$ is written, $100^{2} + 1 - j$ is also written. Thus Bob can always apply the previous strategy (since $j = 100^{2} + 1 - j$ is impossible).\n\nAt the end, every line has sum $\\left(100^{2} + 1\\right) \\times 50$.\n\nAssume by contradiction that Alice can stop Bob from winning if he applies this strategy. Let $c_{j}$ be the sum of the numbers in the $j$-th column for $1 \\leq j \\leq 100$: then $c_{j} \\leq 50\\left(100^{2} + 1\\right)$. Note that:\n$$\n100 \\times 50\\left(100^{2} + 1\\right) \\geq c_{1} + \\cdots + c_{100} = 1 + \\cdots + 100^{2} = \\frac{100^{2}\\left(100^{2} + 1\\right)}{2} = 100 \\times 50\\left(100^{2} + 1\\right)\n$$\nThus we have equality in the previous inequality: $c_{1} = \\cdots = c_{100} = 50\\left(100^{2} + 1\\right)$. But if $a$ is the number written in the cell $(100, 1)$ and $b$ the number written in the cell $(100, 2)$, then $c_{1} - b + c_{2} - c = 99\\left(100^{2} + 1\\right)$. Thus $b + c = 100\\left(100^{2} + 1\\right) - 99\\left(100^{2} + 1\\right) = 100^{2} + 1$: by hypothesis $c$ is also written in the cell $(100, 3)$ which is a contradiction.\n\nThus Bob has a winning strategy.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34513, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $ABC$ be an acute triangle with circumcenter $O$. Let $D$ be the foot of the altitude from $A$ to $BC$ and let $M$ be the midpoint of $OD$. The points $O_{b}$ and $O_{c}$ are the circumcenters of triangles $AOC$ and $AOB$, respectively. If $AO = AD$, prove that the points $A$, $O_{b}$, $M$ and $O_{c}$ are concyclic.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n![](attached_image_1.png)\nNote that $AB = AC$ cannot hold since $AO = AD$ would imply that $O$ is the midpoint of $BC$, which is not possible for an acute triangle. So we may assume without loss of generality that $AB < AC$.\nLet $M_{b}$ and $M_{c}$ be the midpoints of $AC$ and $AB$, respectively. Since $\\angle AM_{b}O = \\angle AM_{c}O = 90^{\\circ} = \\angle AMO$ (the latter since $AO = AD$), the pentagon $AM_{b}OMM_{c}$ is cyclic.\n\nNext, notice that $AM$ is the perpendicular bisector of $OD$, $O_{b}O_{c}$ is the perpendicular bisector of $AO$ and $M_{b}M_{c}$ is the perpendicular bisector of $AD$. Hence these three lines are concurrent - denote their common point by $T$.\n\nThe quadrilateral $AO_{b}MO_{c}$ is cyclic if and only if $AT \\cdot TM = O_{b}T \\cdot O_{c}T$. From the cyclic $AM_{b}MM_{c}$ we have $AT \\cdot TM = M_{b}T \\cdot M_{c}T$. Hence it now suffices to argue $M_{b}T \\cdot M_{c}T = O_{b}T \\cdot O_{c}T$ - or equivalently, that $M_{b}$, $M_{c}$, $O_{b}$ and $O_{c}$ are concyclic.\n\nWe assume that $\\angle AOB < 90^{\\circ}$ and $\\angle AOC > 90^{\\circ}$ so that $O_{c}$ is in the interior of triangle $AOB$ and $O_{b}$ is external to the triangle $AOC$ (the other cases are analogous and if $\\angle AOB = 90^{\\circ}$ or $\\angle AOC = 90^{\\circ}$, then $M_{b} \\equiv O_{b}$ or $M_{c} \\equiv O_{c}$ and we are automatically done). We have\n$$\n\\angle M_{c}M_{b}O_{b} = 90^{\\circ} + \\angle AM_{b}M_{c} = 90^{\\circ} + \\angle ACB\n$$\nas well as (since $O_{c}O_{b}$ is a perpendicular bisector of $AO$ and hence bisects $\\angle AO_{c}O$)\n$$\n\\angle M_{c}O_{c}O_{b} = 180^{\\circ} - \\angle OO_{c}O_{b} = 90^{\\circ} + \\frac{\\angle AO_{c}M_{c}}{2}\n$$\n$$\n= 90^{\\circ} + \\frac{\\angle AO_{c}B}{4} = 90^{\\circ} + \\frac{\\angle AOB}{2} = 90^{\\circ} + \\angle ACB\n$$\nand therefore $O_{b}M_{b}O_{c}M_{c}$ is cyclic, as desired.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34514, "subject": "Mathematics (Multi-modal)", "question": "Five distinct points $A$, $M$, $B$, $C$ and $D$ are on a circle $O$ in this order with $MA = MB$.\nLet the lines $AC$ and $MD$ intersect at $P$, the lines $BD$ and $MC$\nat $Q$. Let the line $PQ$ meet the circle $O$ at $X$ and $Y$. Prove that\n$MX = MY$.", "options": [], "answer": "Detailed solution", "solution": "Since $\\angle ACM = \\angle BDM$ (because of $MA = MB$), $\\angle PCQ = \\angle PDQ$, so four points $C$, $D$, $P$ and $Q$ are concyclic. So $\\angle PQD = \\angle PCD = \\angle ACD = \\angle ABD$. Therefore $AB$ and $PQ$, hence $AB$ and $XY$ are parallel. Since $M$ is the middle point of the arc $AB$, it is also that of the arc $XY$. Thus $MX = MY$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34515, "subject": "Mathematics (Multi-modal)", "question": "$n$ is a positive 3-digit number, and its hundred's place and its one's place are not $0$. Make a new number by exchanging the hundred's place and the one's place of $n$, and call it $m$. Answer the maximum value of $n - m$.", "options": [], "answer": "792", "solution": "Let $n = 100A + 10B + C$. Then,\n$$\nn - m = (100A + 10B + C) - (A + 10B + 100C) = 99(A - C).\n$$\nSince $A$ and $C$ can be any natural number between $1$ and $9$, the maximum value of $n - m$ is $99 \\cdot (9 - 1) = 792$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34516, "subject": "Mathematics (Multi-modal)", "question": "Consider the equation\n$$\nx^2 + xy + y^2 + 3x + 6y + 6 = 0. \\quad (*)\n$$\n(1) Find all pair $(x, y)$ of integers with $x = 1$ which satisfy equation $(*)$.\n(2) Find all pair $(x, y)$ of integers which satisfy equation $(*)$.", "options": [], "answer": "Part (1): (1, -2), (1, -5). Part (2): (-2, -2), (-1, -4), (-1, -1), (1, -5), (1, -2), (2, -4).", "solution": "(1) Substituting $x = 1$ into the given equation, we obtain a quadratic equation $y^2 + 7y + 10 = 0$, and solving this equation normally, we get $y = -2, -5$. Hence the solutions are $(x, y) = (1, -2), (1, -5)$.\n\n(2) Assume that $(x, y)$ is a root of the given equation. Substituting the value of $x$, we obtain a quadratic equation $y^2 + (x+6)y + (x^2+3x+6) = 0$ of variable $y$. The roots of this equation are\n$$\ny = \\frac{-(x + 6) + \\sqrt{(x + 6)^2 - 4(x^2 + 3x + 6)}}{2} = \\frac{-(x + 6) + \\sqrt{-3x^2 + 12}}{2}\n$$\nSince $x + 6$ and $y$ are integers, $\\sqrt{-3x^2 + 12}$ must be an integer, i.e., there exists integer $k$ such that $k^2 = -3x^2 + 12$. One easily checks that $x$ must be $\\pm 1$ or $\\pm 2$ (as a square of an integer is a nonnegative integer). Solving the corresponding quadratic equation for each $x$, we conclude that the answers are $(x, y) = (-2, -2), (-1, -4), (-1, -1), (1, -5), (1, -2), (2, -4)$.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34517, "subject": "Mathematics (Multi-modal)", "question": "A dodecahedron and a vertex $X$ of the dodecahedron are given. An ant started from $X$, walked along the edges of the dodecahedron, passing each of the vertices of the dodecahedron except $X$ just once, and returned to $X$. How many such routes exist? We consider a route and its reversal to be different.", "options": [], "answer": "60", "solution": "Take an arbitrary route. For each face, count the number of the edges on the face which are on the route. Since they can be neither less than $3$ nor more than $4$, and they add up to $2 \\times 20 = 40$, there exists exactly $4$ faces with $4$ of their edge on the route.\n\nNow, assume that the ant passed consecutive four edges of a face as below.\n\n---\n![](attached_image_1.png)\n\nSince the ant did not pass edge $AB$, the ant passed the edges $BC$ and $AK$. Also, since all the vertices must be passed just once, looking at vertices $E$, $G$ and $I$, it follows that the route contains edges $DE$, $EF$, $FG$, $GH$, $HI$ and $IJ$. By the same reason, looking at vertices $O$ and $P$, it follows that it contains $NO$, $OP$ and $PQ$. There are two ways to complete the route: one is to take the edges $KL$, $LM$, $MN$, $CD$ and $JQ$; the other is to take $CL$, $LM$, $MQ$, $KJ$ and $DN$.\n\nNow we can compute how many ways are there to make a route. There are $12$ ways to choose the first face, $5$ ways to choose the lacked edge, $2$ ways to complete the route, and $2$ ways to decide the direction. Since each route appears exactly $4$ times (note that there are $4$ faces of which $4$ edges are contained in a route), there are $12 \\times 5 \\times 2 \\times 2 \\div 4 = 60$ routes.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 34518, "subject": "Mathematics (Multi-modal)", "question": "For $0 \\le x, y \\le 1$, let\n$$\nf(x, y) = x y^2 \\sqrt{1-x^2} - x^2 y \\sqrt{1-y^2}\n$$\n\nFind the minimum constant $c$ for which the following condition holds.\nFor any integer $n > 1$ and any real numbers $a_1, a_2, \\dots, a_n$ such that $0 \\le a_1 < a_2 < \\dots < a_n \\le 1$,\n$$\nf(a_1, a_2) + f(a_2, a_3) + \\dots + f(a_{n-1}, a_n) < c\n$$", "options": [], "answer": "pi/4", "solution": "Draw a semicircle whose radius is $1$, and let $A$ and $B$ be the two ends of the arc. Take two points $C$ and $D$ on arc $AB$ so that $A$, $C$, $D$ and $B$ are on the arc in this order.\nLet $2a = AC$, $2b = AD$, $\\angle CAB = \\alpha$, $\\angle DAB = \\beta$. Then $a = \\cos \\alpha$, $b = \\cos \\beta$ and area of the triangle $ACD$ is\n$$\n\\begin{aligned}\n\\frac{1}{2}(2a)(2b) \\sin(\\alpha - \\beta) &= 2ab(\\sin \\alpha \\cos \\beta - \\cos \\alpha \\sin \\beta) \\\\\n&= 2ab(b\\sqrt{1-a^2} - a\\sqrt{1-b^2}) = 2f(a, b).\n\\end{aligned}\n$$\nTherefore, by taking points $A_1, A_2, \\dots, A_n$ on the arc $AB$ with $AA_i = 2a_i$ and considering the sum of the area of triangles $AA_iA_{i+1}$, we conclude that the left side of the given inequality does not exceed $\\pi/4$, the half of the area of the semicircle.\n\nNext, we shall prove that $c$ cannot be smaller than $\\pi/4$. Take any positive integer $n$. Take points $A = A_0, A_1, A_2, \\dots, A_{2^n-1}, A_{2^n} = B$ on the arc $AB$ in this order so that these points divide the arc equally. Let $AA_i = 2a_i$ ($i = 1, 2, \\dots, 2^n$). Denote by $S_n$ the part of the semicircle not covered by polygon $A_0A_1 \\cdots A_{2^n}$. $S_n$ consists of $2^n$ congruent figures (a fan minus a triangle). Denote each of them by $P_n$. We can easily show that $2|P_{n+1}| < \\frac{1}{2}|P_n|$, so $|S_{n+1}| < \\frac{1}{2}|S_n|$, hence $|S_n| < \\frac{1}{2^{n-1}}|S_1|$. This inequality shows that, if $c$ is less than $\\pi/4$, we can take $n$ large enough so that the area of the part which is not covered by polygon $A_0A_1 \\cdots A_{2^n}$ be less than $\\pi/4 - c$, which yields $c$ inappropriate. Therefore the minimum value of $c$ is $\\pi/4$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34519, "subject": "Mathematics (Multi-modal)", "question": "A $3 \\times 3$ grid is given. You shall color each square with one of the given colors. However, you may not color two squares sharing an edge with the same color. How many such colorings are there if you can use\n\n(1) three colors (say red, blue and green)?\n\n(2) four colors (say red, blue, green and yellow)?\n\nIt is not necessary to use all the colors. We consider two colorings different even if they correspond by rotation and/or reversal.", "options": [], "answer": "(1) 246; (2) 9612", "solution": "We call the squares corners, edges or the center, according to their position. We first consider the case that the center is colored red.\n\n(1) The edges must be colored into blue or yellow. There are 2 ways to color a square on the corner if the two squares next to it have the same color, and there are 1 way if otherwise. Split the cases by how the edges are colored.\n\n(i) If all 4 edges have the same color, there are $2 \\times 2^4 = 32$ ways.\n\n(ii) If exactly 3 edges have the same color, there are 4 ways to choose the edge with the different color, 2 ways to choose its color, and $2^2$ ways to color the corners. Therefore there are $2 \\times 4 \\times 2^2 = 32$ ways.\n\n(iii) If two opposing edges have the same color and the rest have the other color, there are 2 ways.\n\n(iv) If two non-opposing edges have the same color and the rest have the other color, there are $4 \\times 2^2 = 16$ ways.\n\n(2) The edges must be colored into blue, yellow or green. There are 3 ways to color a square on the corner if the two squares next to it have the same color, and there are 2 ways if otherwise. Split the cases by how the edges are colored.\n\n(i) Case we use single color on the edges.\n(a) If all four edges have the same color, there are $3 \\times 3^4 = 243$ ways.\n\n(ii) Case we use exactly 2 colors.\n(a) If exactly three edges have the same color, there are $3 \\times 2 \\times 4 \\times 3^2 \\times 2^2 = 864$ ways.\n(b) If two opposing edges have the same color and the rest have the other color, there are $3 \\times 2 \\times 2^4 = 96$ ways.\n(c) If two non-opposing edges have the same color and the rest have the other color, there are $3 \\times 4 \\times 2^2 \\times 3^2 = 432$ ways.\n\n(iii) Case we use 3 colors.\n(a) If two opposing edges have the same color and the rest have different colors, there are $3 \\times 2 \\times 2 \\times 2^4 = 192$ ways.\n(b) If two non-opposing edges have the same color and the rest have different colors, there are $3 \\times 4 \\times 2 \\times 3 \\times 2^3 = 576$ ways.\n\nConsequently, there are $2403 \\times 4 = 9612$ ways in total.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 34520, "subject": "Mathematics (Multi-modal)", "question": "Find the number of 20-tuple $(p_1, p_2, \\dots, p_{10}, q_1, q_2, \\dots, q_{10})$ of positive integers with $p_1 = q_{10} = 1$ and $p_i+1 < q_i - p_i$ for all $i = 1, 2, \\dots, 9$.", "options": [], "answer": "16796", "solution": "Generally, let $S_n$ be the number of $2n$-tuple $(p_1, p_2, \\dots, p_n; q_1, q_2, \\dots, q_n)$ of positive integers with $p_1 = q_n = 1$ and $p_{i+1}q_i - p_iq_{i+1} = 1$ for all $i = 1, 2, \\dots, n-1$. We use semicolons to make the boundary simple.\nLet $(p_1, p_2, \\dots, p_n; q_1, q_2, \\dots, q_n)$ a tuple with the desired conditions. We first prove that there uniquely exists $i$ such that $p_i = q_i = 1$.\nAssume that there does not exist such $i$. Then $q_1 \\neq 1$ and $p_n \\neq 1$.\n\nSince the sequence $p_j/q_j$ is increasing, there exists $j$ such that\n$$\n\\frac{p_j}{q_j} < 1 < \\frac{p_{j+1}}{q_{j+1}}.\n$$\nBut then\n$$\n\\frac{p_{j+1}}{q_{j+1}} - \\frac{p_j}{q_j} \\ge \\frac{1}{q_{j+1}} + \\frac{1}{q_j} \\ge \\frac{2}{q_j q_{j+1}},\n$$\nhence $p_{j+1}q_j - p_jq_{j+1} \\ge 2$, a contradiction. So there exists $i$ such that $p_i = q_i = 1$. Uniqueness is clear.\n\nNow we consider the number of tuples which meets the condition for fixed $i$ such that $p_i = q_i = 1$.\n\n(1) Case $i=1$:\nAssume that $(1, p_2, \\dots, p_n; 1, q_2, \\dots, q_n)$ meets the condition. Let $p'_j = p_j - q_j$. Then the $2(n-1)$-tuple $(p'_2, p'_3, \\dots, p'_{n-1}; q_2, q_3, \\dots, q_n)$ meets the condition.\nConversely, assume that a $2(n-1)$-tuple $(p_1, \\dots, p_{n-1}; q_1, \\dots, q_{n-1})$ meets the condition. Let $p'_j = p_j + q_j$. Then $(1, p'_1, p'_2, \\dots, p'_{n-1}; 1, q_1, q_2, \\dots, q_{n-1})$ meets the condition.\nSince each of these two operations gives the inverse of the other, it follows that the number of $2n$-tuples with $p_1 = q_1 = 1$ which meets the condition is equal to $S_{n-1}$.\n\n(2) Case $1 < i < n$:\nAssume that $(p_1, \\dots, p_{i-1}, 1, p_{i+1}, \\dots, p_n; q_1, \\dots, q_{i-1}, 1, q_{i+1}, \\dots, q_n)$ meets the condition. Let $q'_j = q_j - p_j$ and $p''_j = p_j - q_j$. Then two tuples $(p_1, \\dots, p_{i-1}; q'_1, \\dots, q'_{i-1})$ and $(p''_{i+1}, \\dots, p''_n; q_{i+1}, \\dots, q_n)$ meet the condition.\nConversely, assume that a $2(i-1)$-tuple $(p_1, \\dots, p_{i-1}; q_1, \\dots, q_{i-1})$ and a $2(n-i)$-tuple $(\\tilde{p}_1, \\dots, \\tilde{p}_{n-i}; \\tilde{q}_1, \\dots, \\tilde{q}_{n-i})$ meet the condition. Let $q'_j = p_j + q_j$ and $\\tilde{p}''_j = \\tilde{p}_j + \\tilde{q}_j$. Then $(p_1, \\dots, p_{i-1}, 1, \\tilde{p}''_1, \\dots, \\tilde{p}''_{n-i}; q'_1, \\dots, q'_{i-1}, 1, \\tilde{q}_1, \\dots, \\tilde{q}_{n-i})$ meets the condition.\nSince each of these two operations gives the inverse of the other, it follows that the number of $2n$-tuples with $p_i = q_i = 1$ which meets the condition is equal to $S_{i-1}S_{n-i}$.\n\n(3) Case $i = n$:\nThinking similarly to the case $i=1$, the number of $2n$-tuples with $p_n = q_n = 1$ which meets the condition is equal to $S_{n-1}$.\n\nFrom arguments above, we obtain a recursive relation\n$$\nS_n = S_{n-1} + S_1 S_{n-2} + \\dots + S_{n-2} S_1 + S_{n-1}.\n$$\nWith this formula and the initial value $S_1 = 1$, we can compute and get $S_{10} = 16796$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34521, "subject": "Mathematics (Multi-modal)", "question": "Let $m$, $n$ be integers greater than $1$. A $m \\times n$ grid is given. We want to write integers in each square so that\n(i) at least one of the entries are nonzero, and\n(ii) for each square $S$, $\\sigma(S) = 0$, where $\\sigma(S)$ denotes the sum of the entry in all the squares which are next to $S$ (i.e., all the squares which share an edge with $S$).\nFor example, let $m = 3$, $n = 4$. Assume that we write $1$ in all unit squares.\n\n| 1 | 1 | 1 | 1 |\n|---|---|---|---|\n| 1 | 1 | 1 | 1 |\n| 1 | 1 | 1 | 1 |\n\nIf we write $\\sigma(S)$ in each square, it shows\n\n| 2 | 3 | 3 | 2 |\n|---|---|---|---|\n| 3 | 4 | 4 | 3 |\n| 2 | 3 | 3 | 2 |\n\nand so in this way condition (ii) does not hold.\n\nWe call $(m, n)$ a *good pair* if we can write integers in the squares with conditions (i) and (ii).\nFor example, consider the pair $(2, 2)$.\n\n| 0 | 1 |\n|---|---|\n| -1 | 0 |\n\nBy writing integers as above, the desired conditions indeed hold. Therefore $(2, 2)$ is a good pair.\n\n(1) Let $m = 3$. Find all integer $n \\le 10$ such that $(m, n)$ is good pair.\n(2) Find the number of good pair $(m, n)$ such that $2 \\le m, n \\le 10$. We consider ordered pairs, i.e., pairs $(m, n)$ and $(n, m)$ are considered different if $n \\ne m$.", "options": [], "answer": "(1) n = 3, 5, 7, 9. (2) 29", "solution": "Denote by $X_{i,j}$ the entry that lies in the $i$$-$th row and the $j$$-$th column. We will prove that $(m, n)$ is a good pair if and only if $m+1$ and $n+1$ are not relatively prime.\n\nFirst, we prove that $(k, k)$ is a good pair for any integer $k \\ge 2$. In fact, given a $k \\times k$ grid, write integers as\n$$\nX_{i,j} = \\begin{cases} (-1)^i & \\text{if } i = j \\pm 1 \\\\ 0 & \\text{otherwise} \\end{cases}\n$$\nand the desired condition holds.\n\nNext, we prove $(m, n)$ is a good pair if $m + 1$ and $n + 1$ are not relatively prime. Let $d$ be the greatest common divisor of $m+1$ and $n+1$. Since $(d-1, d-1)$ is a good pair, there exists a $(d-1) \\times (d-1)$ matrix $Y = (Y_{i,j})$ which satisfies the required conditions. Then extend the domain of $Y_{i,j}$ (as a function $(i, j) \\mapsto Y_{i,j}$) to $\\mathbb{Z} \\times \\mathbb{Z}$ by\n$$\nY_{i,j} = Y_{2d+i,j} = Y_{i,2d+j} \\quad \\text{and} \\\\ -Y_{i,j} = Y_{i,-j} = Y_{-i,j}\n$$\nand then $(Y_{i,j})_{1 \\le i \\le m, 1 \\le j \\le n}$ satisfies the required conditions.\n\nTherefore, it suffices to prove that $(m, n)$ is not a good pair if $m + 1$ and $n + 1$ are relatively prime. Assume that we have written integers $X_{i,j}$ in the squares with condition (ii). It suffices to prove $X_{i,j} = 0$.\n\nExtend the domain of $X_{i,j}$ (as a function $(i, j) \\mapsto X_{i,j}$) to $\\mathbb{Z} \\times \\mathbb{Z}$ by\n$$\nX_{i,j} = X_{2(m+1)+i,j} = X_{i,2(n+1)+j} \\quad \\text{and} \\\\ -X_{i,j} = X_{i,-j} = X_{-i,j}\n$$\nThen it is clear that $\\sigma(S) = 0$ holds for all square $S$.\n\nDenote by $S(k, l)$ the square on the $k$$-$th row and the $l$$-$th column. $\\sigma(S(1, 1)) = 0$ yields $X_{1,2} + X_{2,1} = 0$. Then $\\sigma(S(2, 2)) = 0$ yields $X_{2,3} + X_{3,2} = 0$. It follows that $X_{k,k+1} + X_{k+1,k} = 0$ for any integer $k$.\n\nNow, let $i$ and $j$ be integers such that $i - j$ is even. Since $m + 1$ and $n + 1$ are relatively prime, there exist integers $u, v$ such that\n$$i - j = 2v(n + 1) - 2u(m + 1),$$\nor,\n$$i + 2u(m + 1) = j + 2v(n + 1).$$\nThen, $0 = X_{i+2u(m+1)+1,j+2v(n+1)} + X_{i+2u(m+1),j+2v(n+1)+1} = X_{i+1,j} + X_{i,j+1}$ follows from the periodicity of $X$. Since $X_{0,j} = 0$, it follows by induction that $X_{i,j} = 0$ for all $i, j$ such that $i + j$ is odd.\n\nSince $m + 1$ and $n + 1$ are relatively prime, $m$ or $n$ is even. Assume that $m$ is even. Then, by symmetry, $X_{i+1,j} + X_{i,j+1} = 0$ for even $i + j$ too, and $X_{i,j} = 0$ follows for all $i$ and $j$. Hence $(m, n)$ is not a good pair.\n\nWe can solve the problem using the results above.\n\n(1) $(3, n)$ is a good pair if and only if $4$ and $n+1$ are not relatively prime, in other words, if $n$ is odd. So the answer is $n = 3, 5, 7, 9$.\n\n(2) One counts the number of pairs $(i, j)$ of integers such that $3 \\le i, j \\le 11$ and $i, j$ not relatively prime, and obtain the answer $29$.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 34522, "subject": "Mathematics (Multi-modal)", "question": "Find every integer $k$ that satisfies the following condition.\nThere are infinitely many triplet $(a, b, c)$ of integers such that $(a^2 - k)(b^2 - k) = c^2 - k$.", "options": [], "answer": "all integers", "solution": "Consider an arbitrary integer $k$. Take a complex number $\\alpha$ that meets $\\alpha^2 = k$. (For example, let $\\alpha = \\sqrt{k}$ if $k$ is nonnegative, and $\\alpha = i\\sqrt{-k}$ if $k$ negative.)\nIt is easy verify the following equalities:\n$$\n(n + \\alpha)(n + 1 - \\alpha) = ((n(n + 1) - k) + \\alpha), \\\\\n(n - \\alpha)(n + 1 + \\alpha) = ((n(n + 1) - k) - \\alpha).\n$$\nBy multiplying these two formulae, we obtain an identity,\n$$\n(n^2 - k)((n + 1)^2 - k) = ((n(n + 1) - k)^2 - k).\n$$\nIn consequence, for any $k$, we can pick up any $n$ and let $(a, b, c) = (n, n + 1, n(n + 1) - k)$ so that the required equality holds. There are infinitely many $n$ and hence $(a, b, c)$. Therefore, every integer $k$ meets the required condition.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34523, "subject": "Mathematics (Multi-modal)", "question": "$P$ is a point inside an equilateral triangle. The length of the perpendiculars from $P$ towards three sides are $1$, $2$, and $3$. Answer the length of one edge of this triangle.", "options": [], "answer": "4√3", "solution": "Denote by $A$, $B$ and $C$ the three apexes of the triangle and by $a$ the length of one edge. Then\n$$\n\\triangle ABC = \\frac{\\sqrt{3}}{4} a^2, \\text{ and}\n$$\n$$\n\\triangle ABC = \\triangle ABP + \\triangle BCP + \\triangle CAP = \\frac{1}{2} \\cdot (1 + 2 + 3) \\cdot a = 3a.\n$$\n\nTherefore $\\frac{\\sqrt{3}}{4}a^2 = 3a$ and hence the answer is $a = 4\\sqrt{3}$.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 34524, "subject": "Mathematics (Multi-modal)", "question": "Find every $f : \\mathbb{R} \\to \\mathbb{R}$ such that for any $x$ and $y$,\n$$\nf(x)^2 + 2y f(x) + f(y) = f(y + f(x)).\n$$", "options": [], "answer": "Either the identically zero function, or the family f(x) = x^2 + c for any real constant c.", "solution": "The given equation clearly holds if $f(x) = 0$ for all $x$. Assume that there exists $a$ such that $f(a) \\neq 0$.\nSubstituting $y = -f(x)$ into the given equation and letting $c = f(0)$, we obtain\n$$\nf(-f(x)) = c + f(x)^2. \\quad (1)\n$$\nSubstituting $y = -f(y)$ into the equation and using (1),\n$$\n\\begin{aligned}\nf(f(x) - f(y)) &= f(x)^2 - 2f(x)f(y) + f(-f(y)) \\\\\n&= f(x)^2 - 2f(x)f(y) + f(y)^2 + c \\\\\n&= (f(x) - f(y))^2 + c.\n\\end{aligned} \\quad (2)\n$$\n\n$$\nf(a)^2 + 2y f(a) = f(y + f(a)) - f(y).\n$$\nSince the left-hand side runs through $\\mathbb{R}$ when $y$ runs through $\\mathbb{R}$, the right-hand side runs through $\\mathbb{R}$. Hence, $f(x) - f(y)$ runs all real numbers when $x$ and $y$ run through $\\mathbb{R}$.\nTherefore, according to (2), $f(x) = x^2 + c$ for all $x$. This meets the given equation for any constant $c$.\nTherefore, $f(x) = x^2 + c$ ($c$ any constant) or $f(x) = 0$ (for all $x$).", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34525, "subject": "Mathematics (Multi-modal)", "question": "A $3 \\times 4$ grid is given. Answer the number of possible cases to write a number among $1$, $2$, $3$ or $4$ in each square so that\n* no number appears twice (or more) in the same row, and\n* no number appears twice (or more) in the same column.", "options": [], "answer": "576", "solution": "Denote by $a_{ij}$ the entry that lies in the $i$-th column and the $j$-th row. The given conditions yields that each $1$, $2$, $3$ and $4$ appear exactly once in each column.\nWe may assume without loss of generality that $a_{1j} = j$ for $j = 1, 2, 3, 4$. We would multiply the answer by $4!$ afterwards. We may also assume that $a_{22} = a_{33} = 1$. We would multiply the answer by $3 \\times 2$ afterwards.\nIf $a_{21}, a_{31} \\neq 4$, then $a_{23} = a_{32} = 4$. We can choose which of $a_{24}$ and $a_{34}$ to be $2$, and the rest entries would be determined uniquely. So we have two ways.\nOtherwise, if $a_{21} = 4$, there are only one way to fill the other squares. The case $a_{31} = 4$ is similar. So we have two ways.\nTherefore, the answer is $4! \\times 3 \\times 2 \\times (2+2) = 576$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34526, "subject": "Mathematics (Multi-modal)", "question": "$m, n, a, a', b$ and $b'$ are positive integers with $2 \\le m \\le n$, $a, a' \\le m$, $b, b' \\le n$ and $(a, b) \\ne (a', b')$.\nThere is a rectangular town like a chessboard with $m$ avenues and $n$ streets. $\\langle x, y \\rangle$ represents the intersection of the $x$-th avenue from the west and the $y$-th street from the north. For which $(m, n, a, b, a', b')$ there exists a path from $\\langle a, b \\rangle$ to $\\langle a', b' \\rangle$ passing all the intersections exactly once?", "options": [], "answer": "There exists such a path if and only if the parity condition holds and none of the small obstructions occur. Precisely: (i) If the total number of intersections mn is odd, then both a+b and a'+b' are even; or (ii) if mn is even, then exactly one of a+b and a'+b' is odd. In addition, the following exceptional cases admit no such path: (iii) m = 2 and b = b' with b not equal to 1 or n; (iv) m = 3, n even, and either b' − b > 1 or a = a' = 2, together with the orientation constraint that if a+b is odd then b < b', and if a+b is even then b > b'.", "solution": "By walking one block from one intersection to another, the sum of the coordinates changes its parity. Since there are totally $mn - 1$ blocks in the way, $(m, n, a, a', b, b')$ must satisfy one of the followings:\n(1) $mn$ is odd, and both $a+b$ and $a'+b'$ are even, or\n(2) $mn$ is even, and one of $a+b$ and $a'+b'$ is odd and the other is even.\nHowever, even if (1) or (2) holds, there are no such paths if one of the followings are satisfied (see Fig. 1):\n(3) $m = 2$ and $1 \\neq b = b' \\neq n$, or\n(4) $m = 3, n$ is even, ($b' - b > 1$ or $a = a' = 2$) and\n• $a+b$ is odd and $b < b'$, or\n• $a+b$ is even and $b > b'$.\n![](attached_image_1.png)\nFigure 1: These examples satisfy (3) or (4), so there is no such paths.\n\nNow we take arbitrary $(m, n, a, b, a', b') = (\\hat{m}, \\hat{n}, \\hat{a}, \\hat{b}, \\hat{a}', \\hat{b}')$ satisfying $\\star$ and prove, by induction, the existence of a path with the required conditions.\n$\\star$ (1) or (2) satisfied, and neither (3) nor (4) satisfied.\nFor $\\hat{n} \\le 3$, see Fig. 2. Let $\\hat{n} > 3$ and assume, as presumption of the induction, that such paths exist for $(m, n) = (\\min\\{\\hat{m}, \\hat{n} - 2\\}, \\max\\{\\hat{m}, \\hat{n} - 2\\})$ and any $a, b, a'$ and $b'$ satisfying $\\star$.\n![](attached_image_2.png)\nFigure 2: When $(\\hat{m}, \\hat{n}) = (2, 2), (2, 3)$ or $(3, 3)$, the positions of $(a, b)$ and $(a', b')$ are the same as one of those in the figure, allowing rotation and reversing. In any cases in the figure, there exists a path satisfying the required conditions.\nWhen both $\\hat{b}$ and $\\hat{b}'$ are greater than 2, excluding the cases mentioned in Fig. 3, there is a path which passes all the intersections on third to $m$-th avenue exactly once, because of the presumption of the induction. Since such paths always contain some part of the third avenue, one can expand that part as Fig. 4 and get a path which satisfies the required conditions. One can prove similarly the case both $\\hat{b}$ and $\\hat{b}'$ are less than $n-1$.\nReversing the direction if necessary, we may assume $\\hat{b} \\le 2$ and $\\hat{b}' \\ge \\hat{n} - 1$. Reversing the whole town if necessary, we may assume $\\hat{a} + \\hat{b}$ is even. Start from $\\langle \\hat{a}, \\hat{b} \\rangle$ and go to $\\langle 2, 1 \\rangle$ via all the intersections on the first and second avenue. Walk one block to the east. From that intersection, because of the presumption of the induction, there is a path to $\\langle \\hat{a}', \\hat{b}' \\rangle$ via all the rest intersections.\n\n![](attached_image_3.png)\nFigure 3: The positions of $(a, b)$ and $(a', b')$ which don't meet $\\star$ if the two avenues are removed from the west are the case in the figure, and the upside-down version of it. In both cases in the figure, there are a way satisfying the conditions in the problem.\n![](attached_image_4.png)\nFigure 4: Expand a block of the third avenue.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34527, "subject": "Mathematics (Multi-modal)", "question": "Find three distinct positive integers which minimize their sum under the condition that any two of them add up to a perfect square.", "options": [], "answer": "6, 19, 30", "solution": "Let $a$, $b$ and $c$ be distinct positive integers with sum of any two of them being squares. We may assume that $a < b < c$. Write $a + b = x^2$, $b + c = y^2$, $c + a = z^2$. Then we shall minimize $x^2 + y^2 + z^2$ under the conditions $x < y < z$, $z^2 < x^2 + y^2$, and $x^2 + y^2 + z^2$ even. $z > 5$, since if otherwise $z^2 \\ge x^2 + y^2$.\nIf $z = 6$, $x$ and $y$ must be both even or both odd, but neither is appropriate since $6^2 > 5^2 + 3^2 > 4^2 + 2^2$.\nIf $z = 7$, only $(x, y, z) = (5, 6, 7)$ satisfies the required conditions.\nIf $z \\ge 8$, $x^2 + y^2 + z^2 > 2z^2 \\ge 2 \\times 8^2 > 7^2 + 6^2 + 5^2$.\nTherefore $(x, y, z) = (5, 6, 7)$ satisfies the required conditions and minimizes $x^2 + y^2 + z^2$. So the answer is $(a, b, c) = (6, 19, 30)$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34528, "subject": "Mathematics (Multi-modal)", "question": "Answer the maximum value of $A$ for which, for every positive $x_1, x_2, x_3, y_1, y_2, y_3, z_1, z_2$ and $z_3$, the inequality\n$$\n(x_1^3 + x_2^3 + x_3^3 + 1)(y_1^3 + y_2^3 + y_3^3 + 1)(z_1^3 + z_2^3 + z_3^3 + 1) \n\\geq A(x_1 + y_1 + z_1)(x_2 + y_2 + z_2)(x_3 + y_3 + z_3)\n$$\nholds.\nFor the maximum value of $A$, establish the cases of equality.", "options": [], "answer": "A = 3/4; equality iff x1 = x2 = x3 = y1 = y2 = y3 = z1 = z2 = z3 = 6^(-1/3).", "solution": "First we prove that, for any positive real numbers $p_1, \\dots, p_n, q_1, \\dots, q_n, r_1, \\dots, r_n$, the following inequality holds:\n$$\n(p_1^3 + \\cdots + p_n^3)(q_1^3 + \\cdots + q_n^3)(r_1^3 + \\cdots + r_n^3) \\ge (p_1q_1r_1 + \\cdots + p_nq_nr_n)^3.\n$$\nIndeed, by using Cauchy-Schwarz inequality repeatedly, we obtain\n$$\n\\begin{align*}\n& (p_1^3 + \\cdots + p_n^3)(q_1^3 + \\cdots + q_n^3)(r_1^3 + \\cdots + r_n^3)(p_1 q_1 r_1 + \\cdots + p_n q_n r_n) \\\\\n\\ge & ((p_1^{\\frac{3}{2}} q_1^{\\frac{3}{2}} + \\cdots + p_n^{\\frac{3}{2}} q_n^{\\frac{3}{2}})(p_1^{\\frac{1}{2}} q_1^{\\frac{1}{2}} r_1^2 + \\cdots + p_n^{\\frac{1}{2}} q_n^{\\frac{1}{2}} r_n^2))^2 \\\\\n\\ge & ((p_1 q_1 r_1 + \\cdots + p_n q_n r_n)^2)^2 \\\\\n= & (p_1 q_1 r_1 + \\cdots + p_n q_n r_n)^4\n\\end{align*}\n$$\nand hence the desired inequality.\n\nLet $t = 6^{-\\frac{1}{3}}$. Using this inequality and AM-GM inequality,\n$$\n\\begin{align*}\n& (x_1^3 + x_2^3 + x_3^3 + 1)(y_1^3 + y_2^3 + y_3^3 + 1)(z_1^3 + z_2^3 + z_3^3 + 1) \\\\\n&= (x_1^3 + x_2^3 + x_3^3 + t^3 + t^3 + t^3 + t^3 + t^3 + t^3) \\\\\n& \\quad \\times (t^3 + t^3 + t^3 + y_1^3 + y_2^3 + y_3^3 + t^3 + t^3 + t^3) \\\\\n& \\quad \\times (t^3 + t^3 + t^3 + t^3 + t^3 + t^3 + z_1^3 + z_2^3 + z_3^3) \\\\\n&\\ge (t^2 x_1 + t^2 x_2 + t^2 x_3 + t^2 y_1 + t^2 y_2 + t^2 y_3 + t^2 z_1 + t^2 z_2 + t^2 z_3)^3 \\\\\n&= \\frac{1}{36} \\left( (x_1 + y_1 + z_1) + (x_2 + y_2 + z_2) + (x_3 + y_3 + z_3) \\right)^3 \\\\\n&\\ge \\frac{3^3}{36} (x_1 + y_1 + z_1)(x_2 + y_2 + z_2)(x_3 + y_3 + z_3).\n\\end{align*}\n$$\nEquality holds if and only if equality holds for each Cauchy-Schwarz and AM-GM, namely $x_1 = x_2 = x_3 = y_1 = y_2 = y_3 = z_1 = z_2 = z_3 = t$.\n\nTherefore, the maximum value of $A$ is $\\frac{3}{4}$ and equality holds if $x_1 = x_2 = x_3 = y_1 = y_2 = y_3 = z_1 = z_2 = z_3 = t$.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34529, "subject": "Mathematics (Multi-modal)", "question": "Find all real numbers $x$, $y$ and $z$ such that all the following equations hold.\n$$\nx^2 - 3y - z = -8\n$$\n$$\ny^2 - 5z - x = -12\n$$\n$$\nz^2 - x - y = 6\n$$", "options": [], "answer": "(1, 2, 3)", "solution": "By adding the three equations and simplifying, we get\n$$\n(x - 1)^2 + (y - 2)^2 + (z - 3)^2 = 0.\n$$\nSo it is necessary that $(x, y, z) = (1, 2, 3)$. And this satisfies the given equations.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34530, "subject": "Mathematics (Multi-modal)", "question": "A $3 \\times 3$ grid is given. We color each square by red or blue so that no red $2 \\times 2$ square nor blue $2 \\times 2$ square appears. How many such colorings are there?\nWe consider two colorings different even if they correspond by rotation and/or reversal.", "options": [], "answer": "322", "solution": "We call the squares corners, edges or the center, according to their position. We first consider the case that the center is colored red. Call the edges $A$, $B$, $C$ and $D$ clockwise. We divide the cases by how many edges are colored red. Note that any $2 \\times 2$ square must include the center.\n\n* If there are no red edge, or if just one was red, or if two opposing edges were colored red, then however we color the 4 corners, no $2 \\times 2$ red square appears. So we can color each of these 4 squares in arbitrary color. On the second case, we have 4 ways each to choose which edge to be colored red. On the third case, we have 2 ways. Hence this case has $(1+4+2) \\times 2^4 = 112$ ways.\n\n* If two non-opposing edges were colored red, one corner which is between two red edges must be colored blue, and the other squares can be colored arbitrarily. So this case has $4 \\times 2^3 = 32$ ways.\n\n* If there are exactly three red edges, there are exactly 2 corners which are between two red edges and they must be colored blue. Others can be arbitrary color. So this case has $4 \\times 2^2 = 16$ ways.\n\n* If all the four edges are colored red, all the corners must be colored blue. There is only 1 way of coloring.\n\nThere are the same number of ways of coloring if the center square was colored blue. So we have $(112 + 32 + 16 + 1) \\times 2 = 322$ ways of coloring.", "topic": "Algebra", "subtopic": "Abstract Algebra" }, { "id": 34531, "subject": "Mathematics (Multi-modal)", "question": "We can make a cube by connecting every two centroids on neighboring faces of a regular octahedron. How many times is the cube as large as the octahedron?", "options": [], "answer": "2/9", "solution": "Consider a regular octahedron $A$-$BCDE$-$F$. Denote by $\\pi_1$, $\\pi_2$ and $\\pi_3$ the planes passing through the diagonals $BD$ and $CE$, the diagonals $CE$ and $AF$, and the diagonals $BD$ and $EF$, respectively.\nBy symmetry, $\\pi_1$, $\\pi_2$ and $\\pi_3$ divide the octahedron into 8 equal parts. The octahedron is divided into 8 triangular pyramids, and the cube is divided into 8 small cubes. The ratio of the volume of the small cube and the triangular pyramid is equal to that of the original cube and the octahedron. We will calculate the volume ratio of the small cube and the triangular pyramid.\n\nCall $O$ the intersection of the 3 diagonals. Consider the triangular pyramid $OABC$ and the cube in it. $\\angle AOB$, $\\angle BOC$ and $\\angle COA$ are right angles. Let $M$ be the midpoint of $BC$ and let $G$ be the centroid of the triangle $ABC$. Then $O$ and $G$ are vertices of the small cube.\n\nSince the centroid of a triangle divides a median in the ratio $2 : 1$, $A$ is three times as high as $G$ is from the plane $OBC$. Let $OA = x$. The length of the edges of the small cube is $\\frac{1}{3}x$ and so its volume is $\\frac{1}{27}x^3$. The volume of the triangular pyramid is $\\frac{1}{3} \\cdot x \\cdot \\frac{1}{2}x^2 = \\frac{1}{6}x^3$. Thus, the ratio of the volume of the small cube and that of the triangular pyramid is $\\frac{1}{27}x^3 \\div \\frac{1}{6}x^3 = \\frac{2}{9}$.", "topic": "Algebra", "subtopic": "Abstract Algebra" }, { "id": 34532, "subject": "Mathematics (Multi-modal)", "question": "$x$, $y$ and $z$ are distinct 2-digit positive integers. The first digit of $x$ is equal to the second digit of $y$, the first digit of $y$ is equal to the second digit of $z$, and the first digit of $z$ is equal to the second digit of $x$. How many positive integers can be the greatest common divisor of $x$, $y$ and $z$?", "options": [], "answer": "7", "solution": "We can write $x = 10a + b$, $y = 10b + c$, $z = 10c + a$ with positive integers $a, b, c$ less than $10$. Let $d$ be the greatest common divisor of $x$, $y$ and $z$. $11$ cannot divide $d$, since otherwise it contradicts the fact that $x$, $y$ and $z$ are distinct.\n\n$x + y + z = (10a + b) + (10b + c) + (10c + a) = 11(a + b + c)$ is divisible by $d$. Since $d$ is not divisible by $11$, $a+b+c$ is divisible by $d$. Thus $d \\le a+b+c \\le 27$.\n\nAlso, $100x - 10y + z = 1000a + 100b - 100b - 10c + 10c + a = 1001a$ is divisible by $d$. Similarly, $1001b$ and $1001c$ are divisible by $d$. So $1001k$ and hence $91k$ is divisible by $d$, where $k$ is the greatest common divisor of $a$, $b$ and $c$.\n\nSince $d \\le 27$ and $k \\le 4$ (otherwise $x = y = z$), $d$ is one of $1, 2, 3, 4, 7, 13, 14, 21$ or $26$.\n\nBut, $d$ cannot be $21$, because a 2-digit multiple of $21$ must be $21, 42, 63$ or $84$, and we can't find $x$, $y$, $z$ among them with the required conditions. Similarly, $d$ cannot be $26$.\n\nOn the other hand, since $(x, y, z) = (32, 21, 13), (64, 42, 26), (96, 63, 39), (88, 84, 48), (42, 21, 14), (65, 52, 26)$ and $(84, 42, 28)$ give examples for $d = 1, 2, 3, 4, 7, 13$ and $14$, there are exactly $7$ such $d$'s.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34533, "subject": "Mathematics (Multi-modal)", "question": "There are ten red cards, numbered $1$, $2$, $\\ldots$, $10$, and ten blue cards, also numbered $1$, $2$, $\\ldots$, $10$. How many ways are there to choose three from these twenty cards so that the sum of the numbers on the cards chosen is $16$ or less?", "options": [], "answer": "570", "solution": "Write $1$, $2$, $\\ldots$, $9$ or $10$ on the back of the cards so that each card has two numbers which add up to $11$.\n\nCall a set of three cards *good* if the sum of the numbers on their faces is $16$ or less, and call it *bad* if the sum of the numbers on their backs is $16$ or less.\n\nSince the sum of their faces and their backs add up to $11 \\times 3 = 33$, every set of three cards is good or bad, and none is both. Furthermore, by symmetry, there must be the same number of good and bad sets. Therefore, there are exactly $\\frac{1}{2} \\cdot \\binom{20}{3} = 570$ ways of required choice.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34534, "subject": "Mathematics (Multi-modal)", "question": "Tomohiro and Akinori read mathematical books as follows. Akinori reads 2 pages a day. Tomohiro reads 3 pages a day. However, each of the two stop reading of that day if he reaches the end of a chapter.\n\nThere is a mathematical book which consists of 10 chapters and 120 pages. Find the smallest value of the difference between the number of days in which Akinori reads the book and that of Tomohiro. A new chapter always begins with a new page.", "options": [], "answer": "14", "solution": "It is clear that the smallest value exists. Let $B$ be a book with $n_i$ pages for the $i$-th chapter which attains the smallest value.\n\nWe first prove that none of $n_1, n_2, \\dots, n_{10}$ are equivalent to $3$ or $5$ modulo $6$. Assume that $n_1 \\equiv 3, 5 \\pmod{6}$. Checking the parity, we can assume without loss of generality that $n_2$ is odd. Consider book $B'$ whose chapter one has 4 pages, chapter two has $n_1 + n_2 - 4$ pages, and the remaining chapters have the same number of pages with corresponding chapters of $B$. Then easy computation shows that Akinori can read $B'$ faster than $B$, and that Tomohiro can't read $B'$ faster than $B$. Then the difference of the days needed to read $B'$ is smaller than that of $B$, which contradicts minimality of $B$.\n\nNow let $n_i = 6m_i + k_i$ ($m_i$ nonnegative, $k_i$ nonnegative $< 6$ and $k_i \\ne 3, 5$). Then it can be easily checked that Tomohiro reads $i$-th chapter $m_i$ days faster than Akinori. Since\n$$\n\\sum_{i=1}^{10} m_i = \\frac{1}{6} \\left( \\sum_{i=1}^{10} n_i - \\sum_{i=1}^{10} k_i \\right) = \\frac{1}{6} \\left( 120 - \\sum_{i=1}^{10} k_i \\right)\n$$\nand $k_i \\le 4$, it follows that $\\sum m_i \\ge 20 - \\frac{40}{6}$, hence $\\sum m_i \\ge 14$. This value is in fact attained if, for example, $n_1 = n_2 = \\dots = n_9 = 10$ and $n_{10} = 30$. Therefore, the smallest value is **14**.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34535, "subject": "Mathematics (Multi-modal)", "question": "The triangle $ABC$ satisfies $BC = 5$, $CA = 7$ and $AB = 8$. Let $O$ be a point inside the triangle $ABC$ such that the triangles $OBC$, $OCA$ and $OAB$ have the same circumradius. Find their common circumradius.", "options": [], "answer": "7/√3", "solution": "Let $P$, $Q$ and $R$ be the circumcenters of the triangles $OBC$, $OCA$ and $OAB$, respectively, and let $r$ be their common circumradius.\n\nSince $PB = PO = RB = RO = r$, the quadrilateral $BPOR$ is a rhombus and so $\\vec{BR} = \\vec{PO}$. Similarly, $\\vec{CQ} = \\vec{PO}$. So $\\vec{BR} = \\vec{CQ}$, and it follows that $BCQR$ is a parallelogram. Therefore $BC = QR$.\n\nSimilarly $CA = RP$ and $AB = PQ$ follows, and we obtain $\\triangle ABC \\cong \\triangle PQR$. Since the points $P$, $Q$ and $R$ are on the circle with center $O$ and radius $r$, the circumradius of triangle $PQR$ is $r$. So $r$ is equal to the circumradius of triangle $ABC$.\n\nBy cosine formula, $\\cos \\angle B = \\frac{AB^2 + BC^2 - CA^2}{2AB \\cdot BC} = \\frac{1}{2}$. By sine formula, $r = \\frac{CA}{2 \\sin \\angle B} = \\frac{7}{\\sqrt{3}}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34536, "subject": "Mathematics (Multi-modal)", "question": "Find the value of\n$$\n\\frac{7}{12} + \\frac{5}{12} \\times \\frac{7}{11} + \\frac{5}{12} \\times \\frac{4}{11} \\times \\frac{7}{10} + \\frac{5}{12} \\times \\frac{4}{11} \\times \\frac{3}{10} \\times \\frac{7}{9}\n$$", "options": [], "answer": "98/99", "solution": "$$\n\\begin{aligned}\n& 1 - \\left( \\frac{7}{12} + \\frac{5}{12} \\times \\frac{7}{11} + \\frac{5}{12} \\times \\frac{4}{11} \\times \\frac{7}{10} + \\frac{5}{12} \\times \\frac{4}{11} \\times \\frac{3}{10} \\times \\frac{7}{9} \\right) \\\\\n&= \\frac{5}{12} - \\left( \\frac{5}{12} \\times \\frac{7}{11} + \\frac{5}{12} \\times \\frac{4}{11} \\times \\frac{7}{10} + \\frac{5}{12} \\times \\frac{4}{11} \\times \\frac{3}{10} \\times \\frac{7}{9} \\right) \\\\\n&= \\frac{5}{12} \\times \\frac{4}{11} - \\left( \\frac{5}{12} \\times \\frac{4}{11} \\times \\frac{7}{10} + \\frac{5}{12} \\times \\frac{4}{11} \\times \\frac{3}{10} \\times \\frac{7}{9} \\right) \\\\\n&= \\frac{5}{12} \\times \\frac{4}{11} \\times \\frac{3}{10} - \\left( \\frac{5}{12} \\times \\frac{4}{11} \\times \\frac{3}{10} \\times \\frac{7}{9} \\right) \\\\\n&= \\frac{5}{12} \\times \\frac{4}{11} \\times \\frac{3}{10} \\times \\frac{2}{9} \\\\\n&= \\frac{1}{99}.\n\\end{aligned}\n$$\nSo the answer is $\\frac{98}{99}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34537, "subject": "Mathematics (Multi-modal)", "question": "Let $n$ be a positive integer. Two people $P$, $Q$ play a game in which they call an integer $m$ ($1 \\le m \\le n$) alternately. $P$ calls the first number. They cannot call the numbers which are already called by themselves or by their opponent. The game is over when neither can call numbers. If the sum of the numbers that $A$ has called is divisible by $3$, $P$ wins, otherwise $Q$ wins. Find all $n$ which satisfy the condition below.\n\nCondition: $P$ can win the game whatever $Q$ does.", "options": [], "answer": "n ≡ 0, 4, 5 (mod 6)", "solution": "Let the number called by a player in the $m$th turn be $N_m$. Then sequence $(N_1, \\dots, N_l)$ is called \"history up to the $l$th turn\". We call $j$ which satisfies $j \\neq N_1, \\dots, N_l$ \"free in the $l+1$th turn\". We are going to prove a proposition that if $n \\equiv 0, 4, 5 \\pmod 6$, $P$ can absolutely win and that if $n \\equiv 1, 2, 3 \\pmod 6$, $Q$ can absolutely win.\n\ni) for $0 \\le n \\le 5$\nIf $n = 0, 1, 2$, the proposition is surely true.\nAssume that $n = 3$. If $Q$ calls $1$ or $2$ in the second turn, the sum of the numbers that $P$ has said is $5$ or $4$. Hence, $Q$ can absolutely win.\nAssume that $n = 4$. If $P$ calls $2$ in the first turn, and calls $1$ or $4$ in the third turn, the sum of the numbers that $Q$ has said is $3$ or $6$. Hence, $P$ can absolutely win.\nFor $n = 5$, we call $(1, 4)$ and $(2, 5)$ a pair. If $P$ calls $3$ in the first turn, and after the turn, $P$ calls the other number of the pair including the number which $Q$ called in the last turn, then $P$ can absolutely win.\nWith that, the proposition is proved for $0 \\le n \\le 5$.\n\nii) We are going to prove that if a proposition holds for $n = k$, it also holds for $n = k + 6$.\nFor $n = k$, let the player who has the winning strategy be $A$, and the other $B$. Let $M = \\{k+1, k+2, k+3, k+4, k+5, k+6\\}$, and presume the sets of the numbers $(k+1, k+4), (k+2, k+5)$, and $(k+3, k+6)$ to be pairs. Let the $l$th turn be $A$'s turn.\n\n(1) In the $l$th turn, when there are some free numbers except the elements of $M$, it is only necessary for $A$ to act according to the following tactics.\n(a) When $A$ is $P$ and $l=1$, call the number $j$ which $A$ should call according to the winning strategy for $n=k$.\n(b) When $B$ called $i \\in M$ in $l-1$th turn, call in the $l$th turn another number $j$ of the pair including $i$.\n(c) When $B$ called $i \\notin M$ in $l-1$th turn, let $c' = (N'_1, \\dots, N'_{l-1})$, where elements of $c'$ are the elements of $c$ excluding elements of $M$, and the order of the elements of $c'$ is similar to $c$. Then $c'$ is the history for $n=k$. Because of the tactics (1)(b), if $B$ called an element of $M$ in $m-1$th turn ($m \\neq l$), $A$ also called an element of $M$ in the $m$th turn. With that, $l \\equiv l' \\pmod 2$. Hence, according to the winning strategy for $n=k$, let the number $j$ be the number which $A$ should call in $l'$th turn when given a history $c'$, and call the number $j$ in the $l$th turn.\n\n(2) In the $l$th turn, if all the \"free\" numbers are included in $M$, $A$ should act according to the following tactics.\n(a) When $B$ called $i \\in M$ in the $l-1$th turn is included in $M$, $j \\in M$ which is the pair of $i$ is free in the $l$th turn (because of (1)(b)). Then call $j$ in the $l$th turn. Until the game ends, call $j' \\in M$ which is the pair of the $i' \\in M$ called by $B$ in the last turn.\n(b) When the number called by $B$ in the $l-1$th turn is not included in $M$, if $i \\in M$ is free in $l$th turn, the pair $j$ is also free. Then call any element $j_0 \\in M$, and act in the $l$th turn according to the following tactics ($l' \\ge l+1$).\nLet the number which $B$ called in $l'-1$th turn be $i'$, and the pair $j'$. If $j'$ is free in $l'$th turn, call $j'$ in $l'$th turn. If there is no free number in the $l'$th turn, then the game is over. Otherwise, call any element $i'' \\in M$ in the $l'$th turn.\n\nIf $A$ acts according to the tactics above, two following propositions hold.\n* When the game is over, the sum of the numbers $j$ ($1 \\le j \\le k$) called by $A$ is the same as one of the sums that appear when $A$ wins the game in the case of $n=k$.\n* When the game is over, each player calls only one number of the pairs.\n\nConsequently, when the game is over, the sum of the numbers which were called by $A$ is equivalent to one of the sums that appear when $A$ wins the game in the case of $n=k$ modulo $3$. So $A$ wins. With that, the mathematical induction is completed.\n\nHence, it can be said that $P$ has a winning strategy if and only if $n \\equiv 0, 4, 5 \\pmod 6$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34538, "subject": "Mathematics (Multi-modal)", "question": "Let $ABCD$ be a convex quadrilateral with $AB = 3$, $BC = 4$, $CD = 5$, $DA = 6$ and $\\angle ABC = 90^\\circ$. Find the area of $ABCD$.", "options": [], "answer": "18", "solution": "Since $AB = 3$, $BC = 4$ and $\\angle ABC = 90^\\circ$, we get $AC = 5$. Let $M$ be the midpoint of $AD$. Because $AM = DM$, $MC = MC$, $AC = 5 = DC$ and $\\angle ABC = \\angle AMC = 90^\\circ$, $AB = AM$, $AC = AC$, the triangles $ABC$, $AMC$ and $DMC$ are all congruent.\n\nTherefore, the area of $ABCD$ is $\\frac{3 \\times 4}{2} \\times 3 = 18$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34539, "subject": "Mathematics (Multi-modal)", "question": "Let $n$ be a positive integer. Two people $P$, $Q$ play a game in which they call an integer $m$ ($1 \\le m \\le n$) alternately. $P$ calls the first number. They cannot call the numbers which are already called by themselves or by their opponent. The game is over when neither can call numbers. If the sum of the numbers that $A$ has called is divisible by $3$, $P$ wins, otherwise $Q$ wins. Find all $n$ which satisfy the condition below.\nCondition: $P$ can win the game whatever $Q$ does.", "options": [], "answer": "P can force a win if and only if n ≡ 0, 4, or 5 modulo 6.", "solution": "Let the number called by a player in the $m$th turn be $N_m$. Then sequence $(N_1, \\dots, N_l)$ is called \"history up to the $l$th turn\". We call $j$ which satisfies $j \\neq N_1, \\dots, N_l$ \"free in the $l+1$th turn\". We are going to prove a proposition that if $n \\equiv 0, 4, 5 \\pmod 6$, $P$ can absolutely win and that if $n \\equiv 1, 2, 3 \\pmod 6$, $Q$ can absolutely win.\n\na. for $0 \\le n \\le 5$\nIf $n = 0, 1, 2$, the proposition is surely true.\nAssume that $n = 3$. If $Q$ calls $1$ or $2$ in the second turn, the sum of the numbers that $P$ has said is $5$ or $4$. Hence, $Q$ can absolutely win.\nAssume that $n = 4$. If $P$ calls $2$ in the first turn, and calls $1$ or $4$ in the third turn, the sum of the numbers that $Q$ has said is $3$ or $6$. Hence, $P$ can absolutely win.\nFor $n = 5$, we call $(1, 4)$ and $(2, 5)$ a pair. If $P$ calls $3$ in the first turn, and after the turn, $P$ calls the other number of the pair including the number which $Q$ called in the last turn, then $P$ can absolutely win.\nWith that, the proposition is proved for $0 \\le n \\le 5$.\n\nb. We are going to prove that if a proposition holds for $n = k$, it also holds for $n = k + 6$.\nFor $n = k$, let the player who has the winning strategy be $A$, and the other $B$. Let $M = \\{k + 1, k + 2, k + 3, k + 4, k + 5, k + 6\\}$, and presume the sets of the numbers $(k + 1, k + 4), (k + 2, k + 5)$, and $(k + 3, k + 6)$ to be pairs. Let the $l$th turn be $A$'s turn.\n\n(1) In the $l$th turn, when there are some free numbers except the elements of $M$, it is only necessary for $A$ to act according to the following tactics.\n(a) When $A$ is $P$ and $l=1$, call the number $j$ which $A$ should call according to the winning strategy for $n=k$.\n(b) When $B$ called $i \\in M$ in $l-1$th turn, call in the $l$th turn another number $j$ of the pair including $i$.\n(c) When $B$ called $i \\notin M$ in the $l-1$th turn, let $c' = (N'_1, \\dots, N'_{l-1})$, where elements of $c$ are the elements of $c$ excluding elements of $M$, and the order of the elements of $c'$ is similar to $c$. Then $c'$ is the history for $n=k$. Because of the tactics (1)(b), if $B$ called an element of $M$ in $m-1$th turn ($m \\le l-1$), $A$ also called an element of $M$ in the $m$th turn. With that, $l \\equiv l' \\pmod 2$. Hence, according to the winning strategy for $n=k$, let the number $j$ be the number which $A$ should call in $l'$th turn when given a history $c'$, and call the number $j$ in the $l$th turn.\n\n(2) In the $l$th turn, if all the \"free\" numbers are included in $M$, $A$ should act according to the following tactics.\n(a) When $B$ called $i \\in M$ in the $l-1$th turn is included in $M$, $j \\in M$ which is the pair of $i$ is free in the $l$th turn (because of (1)(b)). Then call $j$ in the $l$th turn. Until the game ends, call $j' \\in M$ which is the pair of the $i' \\in M$ called by $B$ in the last turn.\n(b) When the number called by $B$ in the $l-1$th turn is not included in $M$, if $i \\in M$ is free in $l$th turn, the pair $j$ is also free. Then call any element $j_0 \\in M$, and act in the $l'$th turn according to the following tactics ($l' \\ge l+1$).\nLet the number which $B$ called in $l'-1$th turn be $i'$, and the pair $j'$. If $j'$ is free in $l'$th turn, call $j'$ in $l'$th turn. If there is no free number in the $l'$th turn, then the game is over. Otherwise, call any element $i'' \\in M$ in the $l''$th turn.\n\nIf $A$ acts according to the tactics above, two following propositions hold.\n* When the game is over, the sum of the numbers $j$ ($1 \\le j \\le k$) called by $A$ is the same as one of the sums that appear when $A$ wins the game in the case of $n=k$.\n* When the game is over, each player calls only one number of the pairs.\n\nConsequently, when the game is over, the sum of the numbers which were called by $A$ is equivalent to one of the sums that appear when $A$ wins the game in the case of $n=k$ modulo $3$. So $A$ wins. With that, the mathematical induction is completed.\n\nHence, it can be said that $P$ has a winning strategy if and only if $n \\equiv 0, 4, 5 \\pmod 6$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34540, "subject": "Mathematics (Multi-modal)", "question": "There are some cards with positive integers on them, and the sum of these integers is $2007$. For any integer $1 \\le k \\le 2006$ we can choose some cards so that the sum of the numbers written on those cards is $k$, and there is only one way (if cards with same number are considered to be the same) to do so for each $k$. How many kinds of such a set of cards are possible?", "options": [], "answer": "20", "solution": "Let there be $k$ kinds of numbers on the cards. Let $a_1 < a_2 < \\dots < a_k$ be these numbers and each number is written on $p_1, p_2, \\dots, p_k$ cards respectively. We will show $(p_1+1)(p_2+1)\\dots(p_n+1) = 2008$, $a_1 = 1$ and $a_i = (p_1+1)(p_2+1)\\dots(p_{i-1}+1)$ ($1 < i \\le k$).\n\nSince it is able to choose some cards which sum up to $1$, $a_1 = 1$. Only the numbers less than or equal to $p_1$ can be made with $a_1$s, so if $k \\ge 2$ we get $a_2 = p_1+1$. Then only the numbers less than or equal to $a_1p_1 + a_2p_2 = (p_1+1)(p_2+1) - 1$ can be made with $a_1$s and $a_2$s, so if $k \\ge 3$ we get $a_3 = (p_1+1)(p_2+1)$. Continuing this argument we get $a_i = (p_1+1)(p_2+1)\\cdots(p_{i-1}+1)$ for $1 < i \\le k$. Since $a_1p_1 + a_2p_2 + \\cdots + a_kp_k = 2007$, $(p_1+1)(p_2+1)\\cdots(p_n+1) = 2007+1 = 2008$.\n\nOn the other hand, given some positive integers $p_1, p_2, \\dots, p_k$ with $(p_1+1)(p_2+1)\\cdots(p_n+1) = 2008$, letting $a_1 = 1$ and $a_i = (p_1+1)(p_2+1)\\cdots(p_{i-1}+1)$ ($1 < i \\le k$) satisfies the condition.\n\nSo all we have to do is to count $(p_1, p_2, \\dots, p_k)$ which $(p_1+1)(p_2+1)\\cdots(p_n+1) = 2008$ holds. Since $2008 = 2^3 \\times 251$ and $2$ and $251$ are primes, $(p_1+1) \\times (p_2+1) \\times \\cdots \\times (p_n+1)$ must be $2008, 2 \\times 1004, 4 \\times 502, 8 \\times 251, 2 \\times 2 \\times 502, 2 \\times 4 \\times 251, 2 \\times 2 \\times 2 \\times 251$ or one of their permutations. There are $1, 2, 2, 2, 3, 6, 4$ possible permutations respectively, so the answer is $1+2+2+2+3+6+4=20$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34541, "subject": "Mathematics (Multi-modal)", "question": "In a mathematical competition, gold medals are given to $\\lfloor \\frac{n}{a} \\rfloor$ people, silver medals to $\\lfloor \\frac{n}{b} \\rfloor$ and bronze medals to $\\lfloor \\frac{n}{c} \\rfloor$ ($a \\ge b \\ge c$ are integer constants and $n$ is the number of participants). No one gets two or more medals. Determine all triplets $(a, b, c)$ with the following property.\n\nProperty: For all integer $k \\ge 3$, there are exactly two $n$ such that the number of people without medals are $k$.\n\n* $[r]$ is the maximum integer that does not exceed $r$.", "options": [], "answer": "(6,6,6), (8,8,4), (10,5,5), (12,6,4)", "solution": "Let $f(n) = n - \\lfloor \\frac{n}{a} \\rfloor - \\lfloor \\frac{n}{b} \\rfloor - \\lfloor \\frac{n}{c} \\rfloor$ for integer $n$. For $n$ positive, $f(n)$ is equal to the contestants with no medals on an $n$-people contest. Since $x - 1 < [x] \\le x$, it follows that $Sn \\le f(n) < Sn + 3$ where $S = 1 - \\frac{1}{a} - \\frac{1}{b} - \\frac{1}{c}$. To satisfy the conditions $S$ must be positive.\n\nIt can be conjectured that $S = \\frac{1}{2}$, because $f(n)$ increases in constant speed $S$ and takes every integer larger than or equal to $3$ twice. We will prove a stronger fact and prove this conjecture from that.\n\nLet $L$ be the L.C.M. of $a, b, c$. Let $S = 1 - \\frac{1}{a} - \\frac{1}{b} - \\frac{1}{c} = \\frac{M}{L}$. $M$ is integer, and is positive because $S > 0$. For any integer $n$,\n$$\n\\begin{aligned}\nf(n+L) &= n+L - \\left\\lfloor \\frac{n+L}{a} \\right\\rfloor - \\left\\lfloor \\frac{n+L}{b} \\right\\rfloor - \\left\\lfloor \\frac{n+L}{c} \\right\\rfloor \\\\\n&= n+L - \\left\\lfloor \\frac{n}{a} \\right\\rfloor - \\frac{L}{a} - \\left\\lfloor \\frac{n}{b} \\right\\rfloor - \\frac{L}{b} - \\left\\lfloor \\frac{n}{c} \\right\\rfloor - \\frac{L}{c} \\\\\n&= f(n) + L \\left( 1 - \\frac{1}{a} - \\frac{1}{b} - \\frac{1}{c} \\right) = f(n) + M\n\\end{aligned}\n$$\nand so $f(n + tL) = f(n) + tM$.\n\nLet $\\bar{f}(n)$ be the remainder of $f(n)$ divided by $M$. From the last equality, $\\bar{f}$ has period $L$. Now we prove the following lemma.\n\n**Lemma.** Let $L$ and $M$ be positive integers and $g(n)$ be a function from integers to integers such that $g(n+tL) = g(n)+tM$ for all $n, t$. Let $\\bar{g}(n)$ be the remainder of $g(n)$ divided by $M$. Then for $0 \\le k < m$ we have the following: if there are exactly $q$ integers $n$ with $0 \\le n < L$ and $\\bar{g}(n) = k$, for all integer $k'$ which is congruent to $k$ modulo $M$ there are exactly $q$ integers $n$ with $g(n) = k'$.\n\n**Proof of Lemma.** Let there be exactly $q$ integers $0 \\le n_1, \\dots, n_q < L$ with $\\bar{g}(n_i) = k$. Take $k' = k + uM$. If we write $g(n_i) = k + t_i M$ by integer $t_i$ and let $n'_i = n_i + (u - t_i)L$, $g(n'_i) = k'$ and all $n'_i$ are different since their remainder modulo $L$ is different. Now we are going to prove that possible cases for $n$ with $g(n) = k'$ are only $n'_1, \\dots, n'_q$. Suppose $g(n) = k'$ then we have $\\bar{g}(n) = k$. Let $\\bar{n}$ be the remainder of $n$ divided by $L$. Since $\\bar{g}$ has a period $L$ it follows that $\\bar{g}(\\bar{n}) = k$ and $\\bar{n}$ is equal to some $n_i$. Writing $n = n'_i + sL$ we have $g(n'_i) = g(n) = g(n'_i + sL) = g(n'_i) + sM$ and therefore $s = 0, n = n'_i$.\n\n**Corollary.** The condition in the problem is equivalent to the condition that for any $0 \\le k < M$ there are exactly 2 integers with $\\bar{f}(n) = k$ among $0, \\dots, L-1$. And if it is satisfied, $S = \\frac{1}{2}$.\n\n**Proof of Corollary.** If $f(n) \\ge 3$, $n$ must be positive, so the first statement follows from the lemma. Then it must be satisfied that $L = 2M$ and $S = \\frac{M}{L} = \\frac{1}{2}$.\n\nNow we are going to solve the problem with this corollary. First, determine all $(a,b,c)$ with $\\frac{1}{a} + \\frac{1}{b} + \\frac{1}{c} = \\frac{1}{2}$. Since $a \\ge b \\ge c > 0$, $\\frac{1}{2} > \\frac{1}{c} \\ge \\frac{1}{6}$ and $3 \\le c \\le 6$. If $c = 3$, $\\frac{1}{a} + \\frac{1}{b} = \\frac{1}{6}$. By $a \\ge b$ we get $\\frac{1}{b} \\ge \\frac{1}{12}$. Trying all possible $b$, we get $(a,b) = (42,7), (24,8), (18,9), (15,10), (12,12)$. Checking other possible $c$ in the same way, we get all $(a,b,c)$ with $\\frac{1}{a} + \\frac{1}{b} + \\frac{1}{c} = \\frac{1}{2}$ as $(a,b,c) = (42,7,3), (24,8,3), (18,9,3), (15,10,3), (12,12,3), (20,5,4), (12,6,4), (8,8,4), (10,5,5), (6,6,6)$.\n\nChecking these possibilities by the corollary, we get the answer to the problem: $(a,b,c) = (6,6,6), (8,8,4), (10,5,5), (12,6,4)$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34542, "subject": "Mathematics (Multi-modal)", "question": "There is a village with a population of $2007$. This village has no name. You are God of this village and you want villagers to decide the name of this village. Every villager has one idea of the village's name.\n\nEach villager can send a letter to each villager (including himself). And every villager can send any number of letters every day. Letters are collected in the evening and delivered at once the next morning every day. The villager who sends the letter can decide to whom the letter should be delivered. And each villager can send a letter to tell the idea of the name of the village to God only one time. This idea doesn't need to be the same as the idea which he and the other villagers had thought at first. And every villager's action is only writing a letter.\n\nEvery villager can be classified into an honest person or a liar. You and every villager don't know who is an honest person, and who is a liar. But you know that the number of liars is less than or equal to $T$, and there is one honest person at least in this village.\n\nYou can give instructions to every villager only once at noon of one day. An honest person necessarily follows the instruction, but you don't know if a liar follows the instruction. Find the maximum $T$ for which there exists an instruction which fulfills the conditions below.\n\n* At last, every honest person sends a letter to God and every honest person sends the same idea of the village's name.\n* If every honest person had thought the same idea of the name of the village at first, every honest person sends this idea to God.", "options": [], "answer": "668", "solution": "If $0 \\le T \\le 668$, we will prove that there exists an instruction which fulfills the conditions. Give the following instruction to every villager.\n\nDefine today as 0th day. All the villagers must prepare a notebook and a memo pad.\n\nToday, each villager $p$ should write the idea of the village's name $m$ in the letters $[p$ proposed $m]$ and send these letters to every villager (including oneself). And at $i = 1, 2, \\dots, 2T + 2$th day, perform all the following in order.\n\n* If you receive the letter $[p_0$ proposed $m]$ from villager $p$ in the morning, send the letter $[i - 1$th day $p$ says $p_0$ proposed $m]$ to every villager.\n* Until then, if you have received the letter $[j$th day $p$ says $p_0$ proposed $m]$ ($j \\le i - 2$) from $2007 - 2T$ or more persons, send the letter $[j$th day $p$ says $p_0$ proposed $m]$ to every villager.\n* Until then, if you have received the letter $[j$th day $p$ says $p_0$ proposed $m]$ ($j \\le i - 2$) from $2007 - T$ or more persons, write [sure: $j$th day $p$ says $p_0$ proposed $m]$ to your memo pad.\n* About villager $p_0$ and idea $m$, if $i$ is even and distinct $\\frac{i}{2}$ villagers $p_0, p_2, \\dots, p_{i-2}$ exist and [sure: $j$th day $p_j$ says $p_0$ proposed $m]$ is written in your memo pad for all the even numbers that satisfy $0 \\le j < i$, then write $[p_0$'s idea seems to be $m]$ in your notebook and send the letter $[p_0$ proposed $m]$ to every villager.\n\nAnd at $2T + 2$th day, all the villagers must look into their notebook and look for all the pairs $(p, m)$ that satisfy the following condition.\n\nCondition: $[p$'s idea seems to be $m]$ is written in your notebook. And if $[p$'s idea seems to be $m]$ and $[p$'s idea seems to be $n]$ are both written in your notebook, then $m = n$.\n\nConsider $(p, m)$ pairs that satisfy this condition only. Count the kind of $p$ corresponding to each $m$. And if only one $m$ has the most kinds of $p$, then send a letter $[m]$ to God. Otherwise, send a letter [JMO] to God.\n\nNow let us prove that this instruction satisfies the problem's condition. We will prove the following. Notice that $2007 > 3T$.\n\n(1) If some honest person wrote [sure: $j$th day $p$ says $p_0$ proposed $m$] in his memo pad, villager $p$ really sent the letter [$p_0$ proposed $m$] on the $j$th day.\n\n(2) If some honest person wrote [sure: $j$th day $p$ says $p_0$ proposed $m$] in his memo pad on the $k$th day, every honest person wrote the same content in their memo pads by the $k+1$th day.\n\n(3) Now assume that $p_0$ is an honest person. If some honest person wrote [$p_0$'s idea seems to be $m$] in his notebook, $p_0$ really proposed $m$. And if $p_0$ proposed $m$, every honest person would write [$p_0$'s idea seems to be $m$] in their notebook by the $2T+2$th day.\n\n(4) If some honest person wrote [$p$'s idea seems to be $m$] in his notebook, every honest person would write the same content in their memo pads by the $2T+2$th day.\n\n**Proof of (1):** Assume that some honest person wrote [sure: $j$th day $p$ says $p_0$ proposed $m$] to his memo pad. According to the instruction, he received the letter [$j$th day $p$ says $p_0$ proposed $m$] from $2007-T$ or more persons. Especially, from $2007-T > T$, there exists some honest person who sent the letter [$j$th day $p$ says $p_0$ proposed $m$]. Now define $q$ as the honest person who sent this content first. There are two possible reasons why $q$ sent this letter.\n\n(a) $q$ received the letter of this content from $2007 - 2T$ or more people.\n\n(b) $q$ received the letter of the content [$p_0$ proposed $m$] from $p$.\n\nBut in the case of (a), from $2007 - 2T > T$, a certain honest person sent a letter [$j$th day $p$ says $p_0$ proposed $m$] to $q$ earlier than $q$ sent the same letter. This is contrary to the definition of $q$. Therefore, there is the case (b) only, and lemma (1) is proved.\n\n**Proof of (2):** Assume that some honest person wrote [sure: $j$th day $p$ says $p_0$ proposed $m$] to his memo pad on the $k$th day. It means that $2007 - T$ or more villagers, therefore $2007 - 2T$ or more honest people sent a letter [$j$th day $p$ says $p_0$ proposed $m$] to him by the $k$th day. By the way, every honest person sent letters to every villager every day, so every villager receives the letter of this content from $2007 - 2T$ or more persons by the $k$th day, and so every honest person sent the letter of this content to every villager, and therefore every villager will receive the letter of this content from $2007 - T$ or more persons by the $k+1$th day. Thus, every honest person wrote [sure: $j$th day $p$ says $p_0$ proposed $m$] in their memo pad by the $k+1$th day. Lemma (2) is proved.\n\n**Proof of (3):** Assume that some honest person wrote [$p_0$'s idea seems to be $m$] in his notebook. According to the instruction, [sure: 0th day $p_0$ says $p_0$ proposed $m$] was written in his memo pad. According to lemma (1), $p_0$ sent the letter [$p_0$ proposed $m$] on the 0th day. Next, assume that $p_0$ sent the letter [$p_0$ proposed $m$] to every villager. Then on the 1st day, every honest person, that means $2007-T$ or more honest people receive this letter, and send the letter [0th day $p_0$ says $p_0$ proposed $m$] to every villager. Then on the 2nd day, every honest person receives this letter, and writes [0th day $p_0$ says $p_0$ proposed $m$] to their memo pad, and then write [$p_0$'s idea seems to be $m$] to their notebook. Lemma (3) is proved.\n\n**Proof of (4):** Assume that the honest person who wrote [$p_0$'s idea seems to be $m$] in the notebook earliest is $q$, and $q$ wrote this on the $2i+2$th day. According to the instruction, there exist distinct villagers $p_0, p_2, \\dots, p_{2i}$ and [sure: $2j$th day $p_{2j}$ says $p_0$ proposed $m$] in $q$'s notebook. From $2i + 2 \\le 2T + 2$, then $i \\le T$. So there exists a number $j$ that $p_{2j}$ is an honest person, or there doesn't exist such number $j$. In this case, $i < T$.\n\nIn the case of the former, if $p_{2j}$ is an honest person, according to lemma (1), $p_{2j}$ really sent the letter $[p_0$ proposed $m]$ on the $2j$th day, or $2j = 0$. But the former is contrary to the definition of $q$. So $j = 0$. And thus every honest person wrote $[p_0$'s idea seems to be $m]$ in their notebook on the 2nd day. (This fact is proved by the part of proof of lemma (3))\n\nIn the case of the latter, $q$ sent the letter $[p_0$ proposed $m]$ to every villager on the $2i + 2$th day. And from the same argument as (3), every honest person wrote [sure: $2i+2$th day $q$ says $p_0$ proposed $m$] in their notebook on the $2i+4$th day. By the way, the content [sure: $2j$th day $p_{2j}$ says $p_0$ proposed $m$] ($0 \\le j \\le i$) in $q$'s notebook will be also written in every honest person's notebook (reference to lemma (2)). Every $p_{2j}$ isn't honest, so $q$ is different from every $p_{2j}$. Therefore, from these facts, every honest person wrote $[p_0$'s idea seems to be $m]$ in their notebook on the $2i+4$th day. Now $i < T$, then $2i + 4 \\le 2T + 2$. Lemma (4) is proved.\n\nAccording to lemma (4), on the evening of the $2T+2$th day, the contents of every honest person's notebook are the same. So every honest person will send the same letter to God. Thus the first condition is satisfied. Next, according to lemma (3), every honest person's idea is written in every honest person's memo pad. And for honest person $p$, at most one $m$ is written as $[p$'s idea seems to be $m]$. Therefore, if every honest person had the same idea of the village name $h$, $h$ gains the most votes. ($2007 - T > \\frac{2007}{2}$) Thus every honest person sends a letter $[m]$ to God. So the second condition is satisfied.\n\nNext, we will prove that if $T \\ge 669$, instructions which fulfill the conditions don't exist. At first, prove the following lemma.\n\n**Lemma A:** In the problem, if the number of villagers is changed into $3$, and put $T = 1$, instructions which fulfill the conditions don't exist.\n\n**Proof of Lemma A:** Assume that instructions which fulfill the conditions exist. Define three villagers as $1, 2$ and $3$. Assume that this instruction doesn't direct to send a letter to oneself. Consider the following situation X. There was another village in which three villagers $1', 2', 3'$ live. And this village also had no name. And in this village, another God gave the same instruction as the same day ($1, 2, 3$ correspond to $1', 2', 3'$). But because of a mistake of the post office, the letter from $i$ to $j$ always arrived as a letter from $i'$ to $j'$, and the letter from $i'$ to $j'$ always arrived as a letter from $i$ to $j$ ($i, j = 1, 2, 3$). And $1, 2, 3, 1', 2', 3'$ are honest people, and consider $a, a, b, b, b, a$ as their ideas of the name of the village respectively. ($a \\ne b$)\n\nFirst, take notice of $1$ and $2'$. Consider the following village Z.\n\n* Village Z has three villagers $1'', 2'', 3''$.\n* The same direction was given to village Z.\n* $1''$ is a honest person, and considers $a$ as an idea of the name of the village Z.\n* $2''$ is a honest person, and considers $b$ as an idea of the name of the village Z.\n* $3''$ is a liar. $3''$ sends a letter which $3$ sent to $2$ on the $i$th day to $2''$ on the $i$th day. And $3''$ sends a letter which $3$ sent to $1$ on the $i$th day to $1''$ on the $i$th day.\n\nIn this situation, actions of $1''$, $2''$ in Village Z is the same as actions of $1, 2'$ in Situation X. From the assumption that the instruction fulfills the conditions, $1''$ and $2''$ send the same idea $x$ for the name of the village Z to God. $x \\ne a$ or $x \\ne b$ holds, and we can assume $x \\ne a$.\n\nNext, take notice of $1$ and $3'$. From the same reason, they send the same idea $x$ for the name of the village Z to God. But they considered the same idea $a$ at first, so the idea they send to God is $a$ (from the second condition). This is a contradiction. So the lemma A is proved.\n\nAnd now assume that there exists an instruction $K$ which fulfills the conditions if $T \\ge 669$. Define $2007$ villagers as $A_1, A_2, \\dots, A_{669}, B_1, B_2, \\dots, B_{669}, C_1, C_2, \\dots, C_{669}$. Consider the following instruction $J$ about the village which three persons $\\alpha, \\beta, \\gamma$ live in and $T = 1$.\n\nEach villager must prepare $669$ dolls. Define the dolls of $\\alpha, \\beta, \\gamma$$ as $a_1, a_2, \\dots, a_{669}, b_1, b_2, \\dots, b_{669}, c_1, c_2, \\dots, c_{669}$. $\\alpha$ should make each doll $a_j$ consider the same idea as $\\alpha$ thinks. And $\\alpha$ should make each doll $a_j$ do the same action as the action which $A_j$ does in the instruction $K$. If $a_j$ sends a letter $[x]$ to $A_i$ (or $B_i, C_i$), $\\alpha$ must send a letter $[A_j \\to A_i, x]$ to $\\alpha$ (or $\\beta, \\gamma$). And if $\\alpha$ receives the letter of the following form, $\\alpha$ must give this letter to $a_j$ (as the letter from $A_i, B_i, C_i$. And the content of this letter is $[y]$). And if $\\alpha$ received a letter in other forms, $\\alpha$ must ignore it.\n\n* $[A_i \\to A_j, y]$ from $\\alpha$\n* $[B_i \\to A_j, y]$ from $\\beta$\n* $[C_i \\to A_j, y]$ from $\\gamma$\n\nAnd if every $a_i$ ($i = 1, 2, \\dots, 669$) sent the same letter $[z]$ to God, $\\alpha$ must send the letter $[z]$ to God. $\\beta, \\gamma$ must act the same way. We will prove that the instruction $J$ fulfills the conditions. Assume that only $\\alpha$ is a liar. In the case of $A_1, A_2, \\dots, A_{669}$ are liars and the others are honest people, $B_1, B_2, \\dots, B_{669}, C_1, C_2, \\dots, C_{669}$ will send the same idea to God, so $\\beta, \\gamma$ will send the same idea. And the instruction $J$ also fulfills the second condition. We can prove other cases in the same way. But this is contrary to Lemma A. So it is proved that if $T \\ge 669$, instructions which fulfill the conditions don't exist.\n\nThe answer is $668$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34543, "subject": "Mathematics (Multi-modal)", "question": "There is a village with a population of $2007$. This village has no name. You are God of this village and you want villagers to decide the name of this village. Every villager has one idea of the village's name.\n\nEach villager can send a letter to each villager (including himself). And every villager can send any number of letters every day. Letters are collected in the evening and delivered at once the next morning every day. The villager who sends the letter can decide to whom the letter should be delivered. And each villager can send a letter to tell the idea of the name of the village to God only one time. This idea doesn't need to be the same as the idea which he and the other villagers had thought at first. And every villager's action is only writing a letter.\n\nEvery villager can be classified into an honest person or a liar. You and every villager don't know who is an honest person, and who is a liar. But you know that the number of liars is less than or equal to $T$, and there is one honest person at least in this village.\n\nYou can give instructions to every villager only once at noon of one day. An honest person necessarily follows the instruction, but you don't know if a liar follows the instruction. Find the maximum $T$ for which there exists an instruction which fulfills the conditions below.\n\n* At last, every honest person sends a letter to God and every honest person sends the same idea of the village's name.\n* If every honest person had thought the same idea of the name of the village at first, every honest person sends this idea to God.", "options": [], "answer": "668", "solution": "If $0 \\le T \\le 668$, we will prove that there exists an instruction which fulfills the conditions. Give the following instruction to every villager.\n\nDefine today as 0th day. All the villagers must prepare a notebook and a memo pad.\n\nToday, each villager $p$ should write the idea of the village's name $m$ in the letters $[p$ proposed $m]$ and send these letters to every villager (including oneself). And at $i = 1,2,\\dots, 2T + 2$th day, perform all the following in order.\n\n* If you receive the letter $[p_0$ proposed $m]$ from villager $p$ in the morning, send the letter $[i - 1$th day $p$ says $p_0$ proposed $m]$ to every villager.\n* Until then, if you have received the letter $[j$th day $p$ says $p_0$ proposed $m]$ ($j \\le i - 2$) from $2007 - 2T$ or more persons, send the letter $[j$th day $p$ says $p_0$ proposed $m]$ to every villager.\n* Until then, if you have received the letter $[j$th day $p$ says $p_0$ proposed $m]$ ($j \\le i - 2$) from $2007 - T$ or more persons, write [sure: $j$th day $p$ says $p_0$ proposed $m]$ to your memo pad.\n* About villager $p_0$ and idea $m$, if $i$ is even and distinct $\\frac{i}{2}$ villagers $p_0, p_2, \\dots, p_{i-2}$ exist and [sure: $j$th day $p_j$ says $p_0$ proposed $m]$ is written in your memo pad for all the even numbers that satisfy $0 \\le j < i$, then write $[p_0$'s idea seems to be $m]$ in your notebook and send the letter $[p_0$ proposed $m]$ to every villager.\n\nAnd at $2T + 2$th day, all the villagers must look into their notebook and look for all the pairs $(p, m)$ that satisfy the following condition.\n\nCondition: $[p$'s idea seems to be $m]$ is written in your notebook. And if $[p$'s idea seems to be $m]$ and $[p$'s idea seems to be $n]$ are both written in your notebook, then $m = n$.\n\nConsider $(p, m)$ pairs that satisfy this condition only. Count the kind of $p$ corresponding to each $m$. And if only one $m$ has the most kinds of $p$, then send a letter $[m]$ to God. Otherwise, send a letter [JMO] to God.\n\nNow let us prove that this instruction satisfies the problem's condition. We will prove the following. Notice that $2007 > 3T$.\n\n(1) If some honest person wrote [sure: $j$th day $p$ says $p_0$ proposed $m$] in his memo pad, villager $p$ really sent the letter [$p_0$ proposed $m$] on the $j$th day.\n\n(2) If some honest person wrote [sure: $j$th day $p$ says $p_0$ proposed $m$] in his memo pad on the $k$th day, every honest person wrote the same content in their memo pads by the $k + 1$th day.\n\n(3) Now assume that $p_0$ is an honest person. If some honest person wrote [$p_0$'s idea seems to be $m$] in his notebook, $p_0$ really proposed $m$. And if $p_0$ proposed $m$, every honest person would write [$p_0$'s idea seems to be $m$] in their notebook by the $2T + 2$th day.\n\n(4) If some honest person wrote [$p$'s idea seems to be $m$] in his notebook, every honest person would write the same content in their memo pads by the $2T + 2$th day.\n\n**Proof of (1):** Assume that some honest person wrote [sure: $j$th day $p$ says $p_0$ proposed $m$] to his memo pad. According to the instruction, he received the letter [$j$th day $p$ says $p_0$ proposed $m$] from $2007 - T$ or more persons. Especially, from $2007 - T > T$, there exists some honest person who sent the letter [$j$th day $p$ says $p_0$ proposed $m$]. Now define $q$ as the honest person who sent this content first. There are two possible reasons why $q$ sent this letter.\n\n(a) $q$ received the letter of this content from $2007 - 2T$ or more people.\n(b) $q$ received the letter of the content [$p_0$ proposed $m$] from $p$.\n\nBut in the case of (a), from $2007 - 2T > T$, a certain honest person sent a letter [$j$th day $p$ says $p_0$ proposed $m$] to $q$ earlier than $q$ sent the same letter. This is contrary to the definition of $q$. Therefore, there is the case (b) only, and lemma (1) is proved.\n\nProof of (2): Assume that some honest person wrote [sure: $j$th day $p$ says $p_0$ proposed $m$] to his memo pad on the $k$th day. It means that $2007 - T$ or more villagers, therefore $2007 - 2T$ or more honest people sent a letter [$j$th day $p$ says $p_0$ proposed $m$] to him by the $k$th day. By the way, every honest person sent letters to every villager every day, so every villager receives the letter of this content from $2007 - 2T$ or more persons by the $k$th day, and so every honest person sent the letter of this content to every villager, and therefore every villager will receive the letter of this content from $2007 - T$ or more persons by the $k + 1$th day. Thus, every honest person wrote [sure: $j$th day $p$ says $p_0$ proposed $m$] in their memo pad by the $k + 1$th day. Lemma (2) is proved.\n\nProof of (3): Assume that some honest person wrote [$p_0$'s idea seems to be $m$] in his notebook. According to the instruction, [sure: 0th day $p_0$ says $p_0$ proposed $m$] was written in his memo pad. According to lemma (1), $p_0$ sent the letter [$p_0$ proposed $m$] on the 0th day. Next, assume that $p_0$ sent the letter [$p_0$ proposed $m$] to every villager. Then on the 1st day, every honest person, that means $2007 - T$ or more honest people receive this letter, and send the letter [0th day $p_0$ says $p_0$ proposed $m$] to every villager. Then on the 2nd day, every honest person receives this letter, and writes [0th day $p_0$ says $p_0$ proposed $m$] to their memo pad, and then write [$p_0$'s idea seems to be $m$] to their notebook. Lemma (3) is proved.\n\nProof of (4): Assume that the honest person who wrote [$p_0$'s idea seems to be $m$] in the notebook earliest is $q$, and $q$ wrote this on the $2i + 2$th day. According to the instruction, there exist distinct villagers $p_0, p_2, \\dots, p_{2i}$ and [sure: $2j$th day $p_{2j}$ says $p_0$ proposed $m$] in $q$'s notebook. From $2i + 2 \\le 2T + 2$, then $i \\le T$. So there exists a number $j$ that $p_{2j}$ is an honest person, or there doesn't exist such number $j$. In this case, $i < T$.\n\nIn the case of the former, if $p_{2j}$ is an honest person, according to lemma (1), $p_{2j}$ really sent the letter [$p_0$ proposed $m$] on the $2j$th day, or $2j = 0$. But the former is contrary to the definition of $q$. So $j = 0$. And thus every honest person wrote [$p_0$'s idea seems to be $m$] in their notebook on the 2nd day. (This fact is proved by the part of proof of lemma (3))\n\nIn the case of the latter, $q$ sent the letter [$p_0$ proposed $m$] to every villager on the $2i + 2$th day. And from the same argument as (3), every honest person wrote [sure: $2i+2$th day $q$ says $p_0$ proposed $m$] in their notebook on the $2i+4$th day. By the way, the content [sure: $2j$th day $p_{2j}$ say $p_0$ proposed $m$] ($0 \\le j \\le i$) in $q$'s notebook will be also written in every honest person's notebook (reference to lemma (2)). Every $p_{2j}$ isn't honest, so $q$ is different from every $p_{2j}$. Therefore, from these facts, every honest person wrote [$p_0$'s idea seems to be $m$] in their notebook on the $2i + 4$th day. Now $i < T$, then $2i + 4 \\le 2T + 2$. Lemma (4) is proved.\n\nAccording to lemma (4), on the evening of the $2T + 2$th day, the contents of every honest person's notebook are the same. So every honest person will send the same letter to God. Thus the first condition is satisfied. Next, according to lemma (3), every honest person's idea is written in every honest person's memo pad. And for honest person $p$, at most one $m$ is written as [$p$'s idea seems to be $m$]. Therefore, if every honest person had the same idea of the village name $h$, $h$ gains the most votes. ($2007 - T > \\frac{2007}{2}$) Thus every honest person sends a letter $[m]$ to God. So the second condition is satisfied.\n\nNext, we will prove that if $T \\ge 669$, instructions which fulfill the conditions don't exist. At first, prove the following lemma.\n\n**Lemma A:** In the problem, if the number of villagers is changed into $3$, and put $T = 1$, instructions which fulfill the conditions don't exist.\n\n**Proof of Lemma A:** Assume that instructions which fulfill the conditions exist. Define three villagers as $1, 2$ and $3$. Assume that this instruction doesn't direct to send a letter to oneself. Consider the following situation X. There was another village in which three villagers $1, 2$ and $3$ live. And this village also had no name. And in this village, another God gave the same instruction as the same day ($1, 2, 3$ correspond to $1, 2, 3$). But because of a mistake of the post office, the letter from $i$ to $j$ always arrived as a letter from $i$ to $j$, and the letter from $i$ to $j$ always arrived as a letter from $i$ to $j$ ($i, j = 1, 2, 3$). And $1, 2, 3, 1', 2', 3'$ are honest people, and consider $a, a, b, b, b, a$ as their ideas of the name of the village respectively. ($a \\ne b$)\n\nFirst, take notice of $1$ and $2'$. Consider the following village Z.\n\n* Village Z has three villagers $1'', 2'', 3''$.\n* The same direction was given to village Z.\n* $1''$ is a honest person, and considers $a$ as an idea of the name of the village Z.\n* $2''$ is a honest person, and considers $b$ as an idea of the name of the village Z.\n* $3''$ is a liar. $3''$ sends a letter which $3$ sent to $2$ on the $i$th day to $2''$ on the $i$th day. And $3''$ sends a letter which $3$ sent to $1$ on the $i$th day to $1''$ on the $i$th day.\n\nIn this situation, actions of $1''$, $2''$ in Village Z is the same as actions of $1, 2'$ in Situation X. From the assumption that the instruction fulfills the conditions, $1''$ and $2''$ send the same idea $x$ for the name of the village Z to God. $x \\ne a$ or $x \\ne b$ holds, and we can assume $x \\ne a$.\n\nNext, take notice of $1$ and $3'$. From the same reason, they send the same idea $x$ for the name of the village Z to God. But they considered the same idea $a$ at first, so the idea they send to God is $a$ (from the second condition). This is a contradiction. So the lemma A is proved.\n\nAnd now assume that there exists an instruction $K$ which fulfills the conditions if $T \\ge 669$. Define $2007$ villagers as $A_1, A_2, \\dots, A_{669}, B_1, B_2, \\dots, B_{669}, C_1, C_2, \\dots, C_{669}$. Consider the following instruction J about the village which three persons $\\alpha, \\beta, \\gamma$ live in and $T = 1$.\n\nEach villager must prepare $669$ dolls. Define the dolls of $\\alpha, \\beta, \\gamma$ as $a_1, a_2, \\dots, a_{669}, b_1, b_2, \\dots, b_{669}, c_1, c_2, \\dots, c_{669}$. $\\alpha$ should make each doll $a_j$ consider the same idea as $\\alpha$ thinks. And $\\alpha$ should make each doll $a_j$ do the same action as the action which $A_j$ does in the instruction $K$. If $a_j$ sends a letter $[x]$ to $A_i$ (or $B_i, C_i$), $\\alpha$ must send a letter $[A_j \\to A_i, x]$ to $\\alpha$ (or $\\beta, \\gamma$). And if $\\alpha$ receives the letter of the following form, $\\alpha$ must give this letter to $a_j$ (as the letter from $A_i, B_i, C_i$. And the content of this letter is $[y]$). And if $\\alpha$ received a letter in other forms, $\\alpha$ must ignore it.\n\n* $[A_i \\to A_j, y]$ from $\\alpha$\n* $[B_i \\to A_j, y]$ from $\\beta$\n* $[C_i \\to A_j, y]$ from $\\gamma$\n\nAnd if every $a_i$ ($i = 1, 2, \\dots, 669$) sent the same letter $[z]$ to God, $\\alpha$ must send the letter $[z]$ to God. $\\beta, \\gamma$ must act the same way. We will prove that the instruction J fulfills the conditions. Assume that only $\\alpha$ is a liar. In the case of $A_1, A_2, \\dots, A_{669}$ are liars and the others are honest people, $B_1, B_2, \\dots, B_{669}, C_1, C_2, \\dots, C_{669}$ will send the same idea to God, so $\\beta, \\gamma$ will send the same idea. And the instruction J also fulfills the second condition. We can prove other cases by the same way. But this is contrary to the Lemma A. So it is proved that if $T \\ge 669$, instructions which fulfill the conditions don't exist.\n\nTherefore, the answer is $668$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34544, "subject": "Mathematics (Multi-modal)", "question": "A quadrilateral $ABCD$ that satisfies $AB = 5$, $BC = 7$, $CD = 6$ is given. And $AC$ and $BD$ are perpendicular to each other. Find the length of $DA$.", "options": [], "answer": "2√3", "solution": "Define $P$ as the intersection point of $AC$ and $BD$. Then from the Pythagorean theorem, $AB^2 = AP^2 + BP^2$, $BC^2 = BP^2 + CP^2$, $CD^2 = CP^2 + DP^2$, $DA^2 = DP^2 + AP^2$. Then $DA^2 = AB^2 + CD^2 - BC^2 = 5^2 + 6^2 - 7^2 = 12$. So $DA = 2\\sqrt{3}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34545, "subject": "Mathematics (Multi-modal)", "question": "Determine ten's place of $11^{12^{13}}$. ($12^{13}$th power of $11$, not $13$th power of $11^{12}$.)", "options": [], "answer": "2", "solution": "For positive integer $n$,\n$$\n11^n = (10 + 1)^n = \\sum_{k=0}^{n} C_n^k 10^k = n \\cdot 10^n + n \\cdot 10^0 = n \\cdot 10^n + 1 \\pmod{100}.\n$$\nTherefore, the ten's place of $11^n$ is equal to the last digit of $n$. The last digit of $12^n$ for $n = 1, 2, \\dots$ is $2, 4, 8, 6, 2, 4, \\dots$, with period $4$, so the last digit of $12^{13}$ is $2$ and the answer is $2$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34546, "subject": "Mathematics (Multi-modal)", "question": "Let $\\Gamma$ be the circumcircle of triangle $ABC$. Let $\\Gamma_A$ be the circle which is tangent to $AB$, $AC$ and tangent to $\\Gamma$ internally, $\\Gamma_B$ be the circle which is tangent to $AB$, $BC$ and tangent to $\\Gamma$ internally, and $\\Gamma_C$ be the circle which is tangent to $AC$, $BC$ and tangent to $\\Gamma$ internally. Denote $\\Gamma_A, \\Gamma_B, \\Gamma_C$ are tangent to $\\Gamma$ at $P, Q, R$. Prove that the lines $AP, BQ, CR$ are concurrent.", "options": [], "answer": "Detailed solution", "solution": "Let $M_A, M_B, M_C$ be the midpoint of the arcs $BC$, $CA$, $AB$, not containing $A$, $B$, $C$ respectively, and $l_A, l_B, l_C$ be the tangent of $\\Gamma$ at $M_A, M_B, M_C$. Then, note that $l_A \\parallel BC$, $l_B \\parallel CA$, $l_C \\parallel AB$.\n\nNow, let $D$ be the common point of lines $l_B$ and $l_C$, similarly $E$ be the common point of lines $l_C$ and $l_A$, $F$ be the common point of lines $l_A$ and $l_B$.\n\nSince $\\Gamma_A$ is tangent to $\\Gamma$ at $P$, there exists a homothety $T$ with center $P$ which satisfies $T(\\Gamma_A) = \\Gamma$. Now, let $T$ transform $AB$ into line $m$.\n\nThen, it follows that $m \\parallel AB$ and that $m$ and $P$ are in the opposite sides of $AB$. Since $AB$ is tangent to $\\Gamma_A$, $m$ is tangent to $\\Gamma$. Hence, we get $m = l_C$.\n\nSimilarly, we can prove that $T$ transforms $AB$ into $l_B$. Since $A$ is the intersection point of lines $AC$ and $AB$, $T(A)$ is the common point of lines $l_B$ and $l_C$. Hence, we get $T(A) = D$. Since $T$ is a homothety with center $P$, three points $P, A, D$ are on the same line.\n\nSimilarly, three points $Q, B, E$ are on the same line, and three points $R, C, F$ are on the same line. So, we get that $AP$ is $AD$, $BQ$ is $BE$, $CR$ is $CF$.\n\nOn the other hand, triangle $ABC$ and triangle $DEF$ are similar and $AB \\parallel DE$, $BC \\parallel EF$, $CA \\parallel FD$. So there exists a homothety $S$ where $S(A) = D$, $S(B) = E$, $S(C) = F$.\n\nLet the center of homothety $S$ be $G$. Then the lines $AP, BQ, CR$ are concurrent at $G$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34547, "subject": "Mathematics (Multi-modal)", "question": "$AB$ is a segment on a plane with length $7$, and $P$ is a point such that the distance between $P$ and line $AB$ is $3$. Find the smallest possible value of $AP \\times BP$.", "options": [], "answer": "21", "solution": "Take $\\angle APB = \\theta$ and let $S$ be the area of $APB$. Then $\\frac{1}{2} \\times AP \\times BP \\times \\sin \\theta = S = \\frac{3 \\times 7}{2} = \\frac{21}{2}$. Since $\\sin \\theta$ is positive, $AP \\times BP$ takes minimum value when $\\sin \\theta$ takes maximum. Since $\\frac{7}{2} > 3$, we can take $P$ on the circle with diameter $AB$. Then $\\sin \\theta$ takes maximum value $1$ and $AP \\times BP$ takes minimum value $21$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34548, "subject": "Mathematics (Multi-modal)", "question": "Find all positive integer pairs $(m, n)$ that satisfy the following conditions.\n$$\n(1)\\ m, n \\leq 20\n$$\n(2) $m$ and $n$ are relatively prime.\n$$\n(3) \\quad \\frac{5}{7} < \\frac{m}{n} < \\frac{3}{4}\n$$", "options": [], "answer": "(8, 11), (11, 15), (13, 18), (14, 19)", "solution": "Now put $p = n - m$, $q = n$. Finding all positive integer pairs $(m, n)$ is equivalent to finding all integer pairs $(p, q)$. And then condition (1) and (3) is equivalent to the conditions that $1 \\leq q \\leq 20$, $\\frac{1}{4} < \\frac{p}{q} < \\frac{2}{7}$. And condition (2) is equivalent to the condition that $p$ and $q$ are relatively prime. And $\\frac{1}{4} < \\frac{p}{q} < \\frac{2}{7}$ is equivalent to $\\frac{7}{2}p < q < 4p$. So,\n* If $p \\leq 0$, $q$ doesn't exist because of $\\frac{p}{q} \\leq 0$\n* If $p = 1$, then $\\frac{7}{2} < q < 4$, so $q$ doesn't exist.\n* If $p = 2$, then $7 < q < 8$, so $q$ doesn't exist.\n* If $p = 3$, then $\\frac{21}{2} < q < 12$, so $q = 11$.\n* If $p = 4$, then $14 < q < 16$, so $q = 15$.\n* If $p = 5$, then $\\frac{35}{2} < q < 20$, so $q = 18, 19$.\n* If $p \\geq 6$, $q$ doesn't exist because $q > \\frac{7}{2}p \\geq 21$.\nThen all integer pairs $(p, q)$ are $(3, 11)$, $(4, 15)$, $(5, 18)$, $(5, 19)$. So, all positive integer pairs $(m, n)$ are $(13, 18)$, $(8, 11)$, $(11, 15)$, $(14, 19)$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34549, "subject": "Mathematics (Multi-modal)", "question": "On a plane, the band with width $d$ is the set of all points whose distance from a line is less than or equal to $\\frac{d}{2}$. There are four points $A$, $B$, $C$, $D$ on the plane. If you chose any three points among them, there exists a band with width $1$ containing them. Prove that there exists a band with width $\\sqrt{2}$ containing all four points.", "options": [], "answer": "Detailed solution", "solution": "When a group $X$ consisting of points in the plane is included in band $B$, we say that band $B$ covers $X$. First, we prove the following lemma.\n\n**Lemma.** For triangle $XYZ$, let $H_X$ be the foot of the perpendicular from $X$ to $YZ$, $H_Y$ be the foot of the perpendicular from $Y$ to $ZX$, and $H_Z$ be the foot of the perpendicular from $Z$ to $XY$. When a band with width $w$ covers the triangle $XYZ$, $\\min\\{XH_X, YH_Y, ZH_Z\\} \\le w$.\n\n**Proof of Lemma.** Let $B$ be a band with width $w$ covering triangle $XYZ$. Then, there exists a line $l$ and a real number $d$ which the following condition holds.\n$$\nB = \\{P \\mid \\text{The distance between } P \\text{ and } l \\text{ is less than or equal to } \\frac{d}{2}\\}\n$$\nLet $m_X, m_Y, m_Z$ be the lines perpendicular to $l$ which pass through $X$, $Y$, $Z$. Then, we can say that at least one of the following proposition holds.\n* The common point of $m_X$ and line $YZ$ is covered by $B$.\n* The common point of $m_Y$ and line $ZX$ is covered by $B$.\n* The common point of $m_Z$ and line $XY$ is covered by $B$.\nWithout loss of generality, assume that $B$ covers the point $W$ which is the common point of $m_Y$ and $XZ$. Since $W$ is a point on line $XZ$, $YH_Y \\le YW \\le w$. On the other hand, $Y, W \\in B$, so we get $YW \\le w$. With that, it can be said that $YH_Y \\le YW \\le w$.\n\nIf the convex closure of points $A$, $B$, $C$, $D$ is a triangle, the problem's statement is trivial. So we can assume that $A$, $B$, $C$, $D$ make a convex quadrangle $ABCD$. We are going to show a contradiction, assuming that for any three points among $A$, $B$, $C$, $D$ there exists a band with width $1$ containing them, and that $ABCD$ cannot be covered by a band with width $\\sqrt{2}$.\n\nWithout loss of generality, assume that the area of the triangle $ABC$ is the largest in all triangles constituted by three points among $A$, $B$, $C$, $D$. (Then note that $D$ locates in shadow area.) Let $H_A$ be the foot of the perpendicular from $A$ to $BC$, $H_B$ be the foot of the perpendicular from $B$ to $CA$, and $H_C$ be the foot of the perpendicular from $C$ to $AB$. By the lemma, $\\min\\{AH_A, BH_B, CH_C\\} \\le 1$.\n\n![](attached_image_1.png)\n\nIf $CH_C \\le 1$ or $AH_A \\le 1$, all four points can be covered by a band with width $1$, but this conflicts with our assumption. So we get $BH_B \\le 1$.\n\nIf $AB \\ge \\frac{1}{\\sqrt{2}}AC$, it follows that $CH_C \\le \\sqrt{2}BH_B \\le \\sqrt{2}$, so all four points can be covered with a band with width $\\sqrt{2}$. This conflicts with the assumption, so we get $AB < \\frac{1}{\\sqrt{2}}AC$. Similarly, it follows that $BC < \\frac{1}{\\sqrt{2}}AC$.\n$$\n\\text{Since } AB, BC < \\frac{1}{\\sqrt{2}}AC,\n$$\n$$\n\\cos \\angle ABC = \\frac{AB^2 + BC^2 - AC^2}{2AB \\cdot AC} < 0.\n$$\nHence, $\\angle ABC > \\frac{\\pi}{2}$. Thus, at least one of $\\angle ABD$, $\\angle CBD$ is wider than $\\frac{\\pi}{4}$. Without loss of generality, we assume that $\\angle ABD > \\frac{\\pi}{4}$. Let $G_A$ be the foot of the perpendicular from $A$ to $BD$, $G_D$ be the foot of the perpendicular from $D$ to $AB$, $G_B$ be the foot of the perpendicular from $B$ to $DA$. If $BG_B \\le \\sqrt{2}$, all four points can be covered by a band with width $\\sqrt{2}$. This conflicts with the assumption, so it follows that $BG_B > \\sqrt{2}$. Similarly we get $AH_A > \\sqrt{2}$. $AB \\ge AH_A$, $BD \\ge BG_B$, so it follows that $AB, BD > \\sqrt{2}$.\n\nBy the lemma, $\\min\\{AG_A, BG_B, DG_D\\} \\le 1$. If $AG_A \\le 1$, since $AB > \\sqrt{2}$, and we get $\\sin \\angle ABD < \\frac{1}{\\sqrt{2}}$. Noting that $\\angle ABD > \\frac{\\pi}{4}$, we get $\\angle ABD > \\frac{3\\pi}{4}$. Then, $BG_B < AG_A \\le 1$. If $DG_D \\le 1$, since $BD > \\sqrt{2}$, we get $\\sin \\angle ABD < \\frac{1}{\\sqrt{2}}$. So it follows that $\\angle ABD > \\frac{3\\pi}{4}$. Then $BG_B < DG_D \\le 1$. With that we get $BG_B \\le 1$ in each case. However, when $BG_B \\le 1$, all four points can be covered by a band with width $1$. This conflicts with our assumption. With that, all four points $A$, $B$, $C$, $D$ can be covered by a band with width $\\sqrt{2}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34550, "subject": "Mathematics (Multi-modal)", "question": "Find one of the polynomials $f(x, y, z)$ whose degree is $3$, with real coefficients, that satisfy the following conditions.\n• $f(x, y, z) + x$ is divisible by $y + z$\n• $f(x, y, z) + y$ is divisible by $z + x$\n• $f(x, y, z) + z$ is divisible by $x + y$\nA polynomial $P(x, y, z)$ is divisible by a polynomial $Q(x, y, z)$ means that there exists a polynomial $R(x, y, z)$ that satisfies $P(x, y, z) = Q(x, y, z)R(x, y, z)$.", "options": [], "answer": "f(x, y, z) = k(x + y)(y + z)(z + x) - x - y - z, where k is any nonzero real constant", "solution": "$f(x, y, z) = k(x + y)(y + z)(z + x) - x - y - z$, ($k \\neq 0$) satisfies the conditions (in fact, only this form is a solution).\n\nPut $g(x, y, z) = f(x, y, z) + x + y + z$. Then the conditions are equivalent to the condition that $g(x, y, z)$ is divisible by $x + y$, $y + z$, $z + x$. And the condition that the degree of $f(x, y, z)$ is $3$ and $f$ is with real coefficients are equivalent to the condition that the degree of $g(x, y, z)$ is $3$ and $g$ is with real coefficients.\n\nNow $g(x, y, z) = k(x + y)(y + z)(z + x)$, ($k \\neq 0$) satisfies all the conditions. Then $f(x, y, z) = k(x + y)(y + z)(z + x) - x - y - z$, ($k \\neq 0$) satisfies all the conditions too.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34551, "subject": "Mathematics (Multi-modal)", "question": "Find one of the polynomials $f(x, y, z)$ whose degree is $3$, with real coefficients, that satisfy the following conditions.\n• $f(x, y, z) + x$ is divisible by $y + z$\n• $f(x, y, z) + y$ is divisible by $z + x$\n• $f(x, y, z) + z$ is divisible by $x + y$\nA polynomial $P(x, y, z)$ is divisible by a polynomial $Q(x, y, z)$ means that there exists a polynomial $R(x, y, z)$ that satisfies $P(x, y, z) = Q(x, y, z)R(x, y, z)$.", "options": [], "answer": "f(x, y, z) = (x + y)(y + z)(z + x) - x - y - z", "solution": "$f(x, y, z) = k(x + y)(y + z)(z + x) - x - y - z$, ($k \\neq 0$) satisfies the conditions (in fact, only this form is a solution).\n\nPut $g(x, y, z) = f(x, y, z) + x + y + z$. Then the conditions are equivalent to the condition that $g(x, y, z)$ is divisible by $x + y$, $y + z$, $z + x$. And the condition that the degree of $f(x, y, z)$ is $3$ and $f$ is with real coefficients are equivalent to the condition that the degree of $g(x, y, z)$ is $3$ and $g$ is with real coefficients.\n\nNow $g(x, y, z) = k(x + y)(y + z)(z + x)$, ($k \\neq 0$) satisfies all the conditions. Then $f(x, y, z) = k(x + y)(y + z)(z + x) - x - y - z$, ($k \\neq 0$) satisfies all the conditions too.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34552, "subject": "Mathematics (Multi-modal)", "question": "$n$ is a 4-digit integer with ten's place nonzero, and if we take the first 2 digits and the last 2 digits as two 2-digit integers, their product is a divisor of $n$. Determine all $n$ with this property.", "options": [], "answer": "1734, 1352", "solution": "Let $A$ and $B$ be the first and the last 2 digits of $n$ respectively. We have to determine all $(A, B)$ such that $AB$ divides $100A + B$.\n\nSince $A$ divides $100A + B$, $A$ divides $B$. Let $k = \\frac{B}{A}$. Since $A$ and $B$ are 2-digit numbers, $10 \\leq A < \\frac{100}{k}$.\n\nThe condition is equivalent to $kA^2 \\mid 100A + kA$ and this is equivalent to $kA \\mid 100 + k$. $k$ divides $100 + k$ iff $k$ divides $100$, and with $k < 10$ we get $k = 1, 2, 4, 5$.\n\nFrom $A \\mid \\frac{100 + k}{k}$ and $10 \\leq A < \\frac{100}{k}$ we get $(k, A) = (2, 17), (4, 13)$ and we get $n = 1734, 1352$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34553, "subject": "Mathematics (Multi-modal)", "question": "There is a grid of $5 \\times 5$. And write the integers $1,2,\\ldots,16$ in all the grids (each number can be written only once) in the upper left grid of $4 \\times 4$ (♣). About the 4 rows, write the sum of four numbers that are written in each row at the right end of each row. Similarly, about the 4 columns, write the sum of four numbers that are written in each column at the lower end of each column. And nothing is written in the lower right grid. Find the maximum integer $m$ which satisfies the following condition.\n\nConditions: About step (♣), there exists a way of writing the numbers such that you can choose two numbers $a, b$ which $|a-b| \\ge m$ hold from the right end column and also from the lower end row.", "options": [], "answer": "35", "solution": "Define the numbers written to each grid as shown in the table 1. I can assume that $A_1$ is the minimum and $A_4$ is the maximum in $A_1, A_2, A_3, A_4$, and that $B_1$ is the minimum and $B_4$ is the maximum in $B_1, B_2, B_3, B_4$, by rearranging rows and columns appropriately. Now $m \\leq A_4 - A_1$, $m \\leq B_4 - B_1$, so\n$$\n\\begin{aligned}\nm &\\leq \\frac{(A_4 - A_1) + (B_4 - B_1)}{2} \\\\\n&= \\frac{1}{2}(a_{4,4} - a_{1,1}) + \\frac{1}{2}(a_{4,4} + a_{4,2} + a_{4,3} + a_{2,4} + a_{3,4} - a_{1,1} - a_{1,2} - a_{1,3} - a_{2,1} - a_{3,1}) \\\\\n&\\leq \\frac{1}{2}(16 - 1) + \\frac{1}{2}(16 + 15 + 14 + 13 + 12 - 1 - 2 - 3 - 4 - 5) \\\\\n&= 35\n\\end{aligned}\n$$\nAnd there exists a way of writing if $m = 35$ (table 2). So the maximum $m$ is $35$. This is table 1.\n\n| $a_{1,1}$ | $a_{1,2}$ | $a_{1,3}$ | $a_{1,4}$ | $A_1$ |\n|-----------|-----------|-----------|-----------|-------|\n| $a_{2,1}$ | $a_{2,2}$ | $a_{2,3}$ | $a_{2,4}$ | $A_2$ |\n| $a_{3,1}$ | $a_{3,2}$ | $a_{3,3}$ | $a_{3,4}$ | $A_3$ |\n| $a_{4,1}$ | $a_{4,2}$ | $a_{4,3}$ | $a_{4,4}$ | $A_4$ |\n| $B_1$ | $B_2$ | $B_3$ | $B_4$ | |\n\nThis is table 2.\n\n| 1 | 2 | 5 | 11 | 19 |\n|---|---|---|----|----|\n| 3 | 6 | 7 | 12 | 28 |\n| 4 | 8 | 9 | 14 | 35 |\n|10 |13 |15 | 16 | 54 |\n|18 |29 |36 | 53 | |", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34554, "subject": "Mathematics (Multi-modal)", "question": "Let $[r]$ be the largest integer not exceeding real number $r$. For real positive numbers $x$, the set $A(x)$ is defined by\n$$\nA(x) = \\{[nx] \\mid n: \\text{positive integer}\\}.\n$$\nFind all irrational numbers $\\alpha > 1$ satisfying the following condition.\nCondition: If a positive real number $\\beta$ satisfies $A(\\alpha) \\supset A(\\beta)$, then $\\frac{\\beta}{\\alpha}$ is an integer.", "options": [], "answer": "All irrational real numbers greater than 2", "solution": "First, we prove that any irrational number $\\alpha > 2$ satisfies the condition. Let $A(\\alpha) \\supset A(\\beta)$, $[\\beta] = [m\\alpha]$ ($m$: positive integer). We can prove this by proving that $[k\\beta] = [km\\alpha]$ for any positive integer $k$. We are going to prove this by induction on $k$. Assume that $[k\\beta] = [km\\alpha]$, and $[(k+1)\\beta] = [l\\alpha]$ ($l$: positive integer). Then we only have to prove that $l = (k+1)m$.\nFrom $[m\\alpha] + [km\\alpha] \\le \\beta + k\\beta < [m\\alpha] + [km\\alpha] + 2$, $[l\\alpha] \\le (k+1)\\beta < [l\\alpha] + 1$, we get\n$$\n[l\\alpha] < [m\\alpha] + [km\\alpha] + 2 < [l\\alpha] + 3.\n$$\nNote that all the terms are integers. We get $[l\\alpha] - 1 \\le [m\\alpha] + [km\\alpha] \\le [l\\alpha]$. Hence,\n$$\n(k+1)m\\alpha - 2 < [m\\alpha] + [km\\alpha] \\le [l\\alpha] \\le l\\alpha \\\\ < [l\\alpha] + 1 \\le [m\\alpha] + [km\\alpha] + 2 \\le (k+1)m\\alpha + 2\n$$\nSo, $-2 < (l - (k + 1)m)\\alpha < 2$. Since $\\alpha > 2$, we get $l = (k + 1)m$. With that the induction is completed.\nSecond, we prove that any irrational number $\\alpha > 2$ doesn't satisfy the condition. Let $\\beta = \\frac{\\alpha}{2-\\alpha}$. Then $\\frac{\\beta}{\\alpha} = \\frac{1}{2-\\alpha}$ is not integer, because $\\frac{1}{2-\\alpha}$ is an irrational number.\nLet $m = [n\\beta] \\in A(\\beta)$ ($n$ is positive integer). Then $m \\le n\\beta < m + 1 \\Leftrightarrow 2m - m\\alpha \\le n\\alpha < (2m + 2) - (m + 1)\\alpha$. We get the following inequality.\n$$\nm \\le \\frac{n+m}{2} \\alpha < \\frac{n+m+1}{2} \\alpha < m+1\n$$\nSince either $n+m$ or $n+m+1$ is even, we get $m \\in A(\\alpha)$, and $A(\\alpha) \\supset A(\\beta)$. With that, the answer is $\\alpha < 2$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34555, "subject": "Mathematics (Multi-modal)", "question": "3 rectangles are placed on a plane, and any 2 rectangles have their edges that are parallel to each other. They divide the plane into several parts. Determine the maximum possible number of such parts. (We consider the area that are contained in no rectangles as one part. For example, if we have only 1 rectangle, the plane is divided into 2 parts.)", "options": [], "answer": "14", "solution": "We will show that in case of $n$ rectangles the answer is $2n^2 - 2n + 2$. We call each divided part region.\n\n$n$ rectangles $R_{1,n}, \\dots, R_{i,n+1-i}, \\dots, R_{n,1}$ divide plane into $2n^2 - 2n + 2$ regions, where $R_{x,y}$ is a rectangle with corners at $(x, y)$, $(x, -y)$, $(-x, y)$, $(-x, -y)$. Therefore we only have to show that $n$ rectangles cannot divide the plane into more than $2n^2 - 2n + 2$ regions.\n\nInduction. The case $n = 1$ is trivial. Suppose that the case $n = k$ is true. Let $R_1, \\dots, R_{k+1}$ be $k+1$ rectangles with the property in the problem, and $D_1, \\dots, D_m$ be the regions divided by $R_1, \\dots, R_k$. By the induction's hypothesis, we have $m \\le 2k^2 - 2k + 2$.\n\nLet $C_i$ be the border of $R_i$. Suppose that for $i \\ne j$, $C_i$ and $C_j$ shares finitely many points. (The proof goes the same way if it's not satisfied). Let $P_1, \\dots, P_l$ be the intersection of $C_{k+1}$ and $C_1, \\dots, C_n$, ordered along $C_{k+1}$. $l \\le 4k$ since $C_i$ and $C_{k+1}$ crosses at 4 or less points. Add polygonal lines $P_1P_2, \\dots, P_iP_{i+1}, \\dots, P_lP_1$ one by one to $D_1, \\dots, D_m$. One line increases the number of region by 1 or less, So adding all polygonal lines increases the number of region by $l$ or less.\n\nSince adding $P_1P_2, \\dots, P_iP_{i+1}, \\dots, P_lP_1$ is equivalent to adding $C_{k+1}$, the number of regions divided by $R_1, \\dots, R_{k+1}$ is\n$$\nm+l \\le (2k^2 - 2k + 2) + 4k = 2(k+1)^2 - 2(k+1) + 2.\n$$\nSo we have completed the induction. Therefore, the answer of the problem is 14.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 34556, "subject": "Mathematics (Multi-modal)", "question": "$ABC$ is a triangle and $D$, $E$, $F$ are midpoints of $BC$, $CA$, $AB$ respectively. If $AD = 3$, $BE = 4$ and $CF = 5$, what is the area of $ABC$?", "options": [], "answer": "8", "solution": "Let $|PQR|$ denote the area of triangle $PQR$. $AD$, $BE$, $CF$ cross at a point $G$ and $AG : GD = BG : GE = CG : GF = 2 : 1$. Take a point $C'$ on line $GC$ so that $G$ is the midpoint of $CC'$. From $C'G = GC$ and $CG : GF = 2 : 1$, it follows that $C'F = GF$. Since $AF = BF$, $C'F = GF$ and $\\angle AFC' = \\angle BFG$, triangles $AFC'$ and $BFG$ are congruent and so $AC' = BG$. Now we have $AC' = BG = \\frac{8}{3}$, $AG = 2$, $GC' = GC = \\frac{10}{3}$, so $AGC'$ is a right triangle with hypotenuse $GC'$. Therefore $|AGC'| = \\frac{8}{3}$. By $C'G = GC$ we get $|AGC| = |AGC'| = \\frac{8}{3}$, and by $BG : GE = 2 : 1$ we get $|ABC| = 3|AGC| = 8$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34557, "subject": "Mathematics (Multi-modal)", "question": "We have 15 cards numbered $1$, $2$, $\\dots$, $15$. How many ways are there to choose some (at least 1) cards so that all numbers on these cards are larger than or equal to the number of cards chosen?", "options": [], "answer": "1596", "solution": "Consider a general problem with cards $1$, $2$, $\\dots$, $n$. Let $F_n$ be the number of choices when there are $n$ cards. $F_1 = 1$ and $F_2 = 2$ are trivial. Let $k \\ge 3$. We will consider $F_k$. If card $k$ is not chosen, the number of ways is trivially $F_{k-1}$.\n\nConsider the case where card $k$ is chosen. If any card other than $k$ is chosen, we cannot choose $1$. And if we remove the card $k$ and decrease the numbers on other cards by $1$, we get a proper choice from cards $1$, $\\dots$, $k-2$. On the other hand, if we have a proper choice from $1$, $\\dots$, $k-2$, we get a choice with $k$ and some other cards among $1$, $\\dots$, $k-1$. If no card other than $k$ is chosen, there is trivially only $1$ way. Therefore, the number of proper choices with card $k$ is $F_{k-2} + 1$.\n\nSo we get a relation $F_k = F_{k-1} + F_{k-2} + 1$. Calculate the sequence by this relation we get $F_{15} = 1596$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34558, "subject": "Mathematics (Multi-modal)", "question": "Two diagonals $AC$ and $BD$ of quadrilateral $ABCD$ intersect at a point $P$ in the quadrilateral. If we have $AC = 2$, $BD = 3$ and $\\angle APB = 60^\\circ$, what is the smallest possible value of $AB + BC + CD + DA$?", "options": [], "answer": "sqrt(7) + sqrt(19)", "solution": "Take points $E$ and $F$ so that $ABEC$ and $ACFD$ are parallelograms. Then $AB = CE$, $DA = FC$, and by the triangle inequality we get $BC + CF \\ge BF$, $DC + DE \\ge DE$. Therefore $AB + BC + CD + DA \\ge BF + DE$.\n\nAnd if we consider a case $AC$ and $BD$ cross at their midpoints, we get $BC + CF = BF$, $DC + CE = DE$ and $AB + BC + CD + DA = BF + DE$. So the minimum value is $BF + DE$.\n\n$18$\n\nSince $BE \\parallel AC$ and $\\angle APB = 60^\\circ$, $\\angle DBE = 60^\\circ$. And since $BE = AC = 2$ and $BD = 3$, letting $H$ be the foot of perpendicular from $E$ to line $BD$ we have $BH = 1$, $EH = \\sqrt{3}$ and $HD = BD - BH = 2$. By the Pythagorean theorem we get $DE = \\sqrt{7}$. In the same way we get $BF = \\sqrt{19}$ so the minimum is $BF + DE = \\sqrt{7} + \\sqrt{19}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34559, "subject": "Mathematics (Multi-modal)", "question": "In how many ways can $100$ be written as a sum of nonnegative powers of $3$? (We consider two ways same if they differ only in the order of numbers.)", "options": [], "answer": "402", "solution": "Let $f(n)$ be the number of ways to write $n$ as sum of nonnegative powers of $3$ and $f(0) = 1$.\nWe can write $n$ as sum of nonnegative powers of $3$ with $k$ $1$s iff $n-k$ is divisible by $3$. Let $n-k = 3m$, then the number of ways to write $n$ as sum of nonnegative powers of $3$ with $k$ $1$s is equal to write $3m$ as sum of positive powers of $3$, and that is equal to $f(m)$. So we get\n$$\nf(n) = \\sum_{0 \\le m \\le n/3} f(m).\n$$\nWe can compute $f(100)$ by this relation. First we get $f(100) = f(0) + f(1) + \\cdots + f(33)$. And from $f(0) = f(1) = f(2), f(3) = f(4) = f(5) = f(0) + f(1), \\cdots, f(30) = f(31) = f(32) = f(0) + \\cdots + f(10), f(33) = f(0) + \\cdots + f(11)$, we get $f(100) = 34f(0) + 31f(1) + \\cdots + 4f(10) + f(11)$. Applying the relation one more time we get\n$$\n\\begin{aligned}\nf(100) &= (34 + 31 + 28)f(0) + (25 + 22 + 19)(f(0) + f(1)) \\\\\n&\\quad + (16 + 13 + 10)(f(0) + f(1) + f(2)) \\\\\n&\\quad + (7 + 4 + 1)(f(0) + f(1) + f(2) + f(3)) \\\\\n&= 210f(0) + 117f(1) + 51f(2) + 12f(3).\n\\end{aligned}\n$$\nFrom $f(0) = f(1) = f(2) = 1$ and $f(3) = 2$, we get $f(100) = 402$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34560, "subject": "Mathematics (Multi-modal)", "question": "How many ways are there to cut a cube $S$ into tetrahedron $\\{T_1, \\dots, T_k\\}$ with following properties?\n(1) Every vertex of $T_1, \\dots, T_k$ is one of the vertices of $S$.\n(2) For every $i \\neq j$, the intersection of $T_i$ and $T_j$ is a common face of them, a common edge of them, a common vertex of them or empty.", "options": [], "answer": "74", "solution": "Consider a division of cube $S = ABCD - EFGH$ into $T_1, \\cdots, T_k$ with properties in the problem. Then one of the below holds.\n* $\\triangle ABC$ and $\\triangle ACD$ is a face of a tetrahedron.\n* $\\triangle ABD$ and $\\triangle BCD$ is a face of a tetrahedron.\nBy symmetry we can get the answer by counting the former case and double it. Assume that $T_1$ has $\\triangle ABC$ as its face. Then $T_1$ is $ABCE$, $ABCF$, $ABCG$ or $ABCH$.\n\n$$(1) \\quad T_1 = ABCE.$$ \nThere must be another tetrahedron $T_2$ with face $\\triangle ACE$. $T_2$ is $ACDE$ or $ACEH$.\n\n$$(a) \\quad T_2 = ACDE.$$ \nThere must be another tetrahedron $T_3$ with face $\\triangle CDE$. $T_3$ is $CDEG$ or $CDEH$.\n\ni. $T_3 = CDEG$.\nThere must be $DEGH$. Then we need to count the ways of dividing the square pyramid $BCGF - E$. There are 2 ways: $\\{BCEG, BEFG\\}$ and $\\{BCEF, CEFG\\}$.\n\nii. $T_3 = CDEH$.\nWe need to count the ways of dividing the triangle prism $BEF - CHG$ such that each of $\\triangle BCE$ and $\\triangle CEH$ is a face of a tetrahedron. There are 3 ways: $\\{BCEF, CEFG, CEGH\\}$, $\\{BCEF, CEFH, CFGH\\}$ and $\\{BCEG, BEFG, CEFH\\}$.\nSo there are 5 ways in the case $T_2 = ACDE$.\n\n$$(b) \\quad T_2 = ACEH.$$ \nThere must be $ACDH$. Then we need to count the ways of dividing the triangle prism $BEF - CHG$ such that each of $\\triangle BCE$ and $\\triangle CEH$. There are 3 ways, as we counted in (1)(a)ii.\nTherefore, we have 8 ways in the case $T_1 = ABCE$.\n\n(2) $T_1 = ABCF$.\nThere must be another tetrahedron $T_2$ with face $\\Delta ACF$. $T_2$ is $ACFH$, $ACDF$, $ACEF$ or $ACFG$.\n\n(a) $T_2 = AFCH$.\nThere is only 1 way: the remaining tetrahedron must be $ACDH$, $AEFH$ and $CFGH$.\n\n(b) $T_2 = ACDF, ACEF, ACFG$.\nThese 3 cases are all congruent, so we only have to consider the case $T_2 = ACDF$. Since if we remove $ABCF$ and $ACDF$ from $S$, there remains a shape congruent to the case $ABCE$ and $ACDE$ removed, there are 5 ways to divide the remaining shape, as we counted in (1)(a). So there are 15 ways in this case.\nTherefore we have 16 ways in the case $T_1 = ABCF$.\n\n(3) $T_1 = ABCG$.\nSame as $T_1 = ABCE$. We have 8 ways.\n\n(4) $T_1 = ABCH$.\nThere must be $ACDH$. Since if we remove $ABCH$ and $ACDH$ from $S$, there remains a shape congruent to the case $ABCE$ and $ACDE$ removed, there are 5 ways to divide the remaining shape, as we counted in (1)(a).\n\nBy these, we get the answer $(8 + 16 + 8 + 5) \\times 2 = 74$.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 34561, "subject": "Mathematics (Multi-modal)", "question": "We have a square grid of $19 \\times 19$. We call a rectangle **good** if its edges are all along the border of small squares. What is the smallest $n$ with the following property?\n\nProperty: If $9$ small squares are removed from the grid, we can divide remaining area into $n$ or less number of good rectangles.", "options": [], "answer": "28", "solution": "Let $(i, j)$ denote the square on the intersection of the $i$-th row and the $j$-th column.\n\nFirst, let us show that $n = 28$ works. Remove the squares one by one. The initial grid can be divided into $1$ good rectangle. If $1$ square is removed from a good rectangle, we can divide the remaining part into $4$ or less good rectangles as shown in the figure below. By this method we can divide the final grid into $1 + 3 \\times 9 = 28$ or less good rectangles.\n\n![](attached_image_1.png)\n![](attached_image_2.png)\n![](attached_image_3.png)\n\nNow we only have to show that $n$ with the property in this problem is more than or equal to $28$. We will show $28$ rectangles are needed when $(2, 2), (4, 4), \\dots, (18, 18)$ are removed. Paint all squares which are next to the removed ones in red. We have $36$ red squares. Rectangles containing $(1, 2), (2, 1), (18, 19)$ or $(19, 18)$ cannot have another red square inside it. For a rectangle with other red squares, we can assume, by rotating and flipping, that it contains square $A$ in the picture below.\n\n![](attached_image_4.png)\n\nIt cannot contain dotted squares because such rectangle contains some removed squares. The only red squares that are not dotted are $B$ and $C$. A rectangle with $A$ in its inside cannot contain $B$ and $C$ together, and if it contains $B$ or $C$ it also have $D$ in it.\n\nSo no rectangles have $3$ red squares and every rectangle with $2$ red squares contains some square of the form $(2k + 1, 2k + 1)(1 \\le k \\le 8)$. Therefore $n \\ge (36 - 2 \\times 8) + 8 = 28$.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 34562, "subject": "Mathematics (Multi-modal)", "question": "How many pairs of integers $(a, b)$ satisfy $a^2 b^2 = 4a^5 + b^3$?", "options": [], "answer": "8", "solution": "If $a$ or $b$ is $0$, both must be $0$.\n\nConsider the case $a, b \\neq 0$. Let $g > 0$ be the G.C.D. of $a$ and $b$, and $a = g a'$, $b = g b'$. Substituting them into the given equation we get\n$$\nga'^2 (b'^2 - 4g a'^3) = b'^3.\n$$\nSince $a'$ divides $b'^3$ and $a'$ and $b'$ are relatively prime, $a' = \\pm 1$. Therefore $a$ divides $b$. Let $b = a c$ ($c \\in \\mathbb{Z}$). Substituting them into the last equation we get\n$$\na c^2 = 4a^2 + c^3.\n$$\nLet $d > 0$ be the G.C.D of $a$ and $c$, and $a = dA$, $c = dC$. Substituting them into the last equation we get\n$$\nd C^2 (A - C) = 4A^2.\n$$\nSince $A$ and $C$ are relatively prime, $C^2$ must divide $4$. Therefore $C = -2, -1, 1, 2$.\n\nSince $d = \\frac{4A^2}{C^2(A-C)} = \\frac{4}{C^2}(A+C) + \\frac{4}{A-C}$ is an integer, $A-C$ must divide $4$. By $d > 0$, $A-C$ must be positive. Checking all the possible cases one by one, we get $(A, C) = (-1, -2), (3, -1), (1, -1), (5, 1), (3, 1), (2, 1), (3, 2)$.\n\nFrom $b = a c$, we get all the possible cases, including $(a, b) = (0, 0)$, as $(a, b) = (0, 0), (-1, 2), (2, -4), (27, -243), (27, 486), (32, 512), (54, 972), (125, 3125)$. So the answer is $8$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34563, "subject": "Mathematics (Multi-modal)", "question": "Calculate the following number:\n$$\n877 \\times 879 - 121 \\times 123.\n$$", "options": [], "answer": "756000", "solution": "Using $(a-b)(a+b) = a^2-b^2$, we obtain\n$$\n\\begin{aligned}\n877 \\times 879 - 121 \\times 123 &= (878 - 1)(878 + 1) - (122 - 1)(122 + 1) \\\\\n&= (878^2 - 1) - (122^2 - 1) = 878^2 - 122^2 \\\\\n&= (878 - 122)(878 + 122) = 756 \\times 1000 = 756000.\n\\end{aligned}\n$$\n\nAlternatively,\n$$\n\\begin{aligned}\n877 \\times 879 - 121 \\times 123 &= 877 \\times (1000 - 121) - 121 \\times 123 \\\\\n&= 877 \\times 1000 - 121 \\times (877 + 123) \\\\\n&= 877 \\times 1000 - 121 \\times 1000 = 756000.\n\\end{aligned}\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34564, "subject": "Mathematics (Multi-modal)", "question": "A polynomial $P(x)$ with integer coefficients satisfies $P(n^2) = 0$ for some nonzero integer $n$. Show that $P(a^2) \\neq 1$ must hold for any nonzero rational number $a$.", "options": [], "answer": "Detailed solution", "solution": "The assertion of the problem is obvious if $P(x)$ is a constant. Therefore, we assume in the sequel that $P(x)$ is a polynomial of degree $m$, where $m$ is a positive integer. As $P(x)$ is a polynomial with integer coefficients and satisfies $P(n^2) = 0$, there exists, by the factorization theorem, a polynomial $Q(x)$ with integer coefficients such that\n$$\nP(x) = Q(x)(x - n^2)\n$$\nholds.\nSuppose that $P(a^2) = 1$ holds for some nonzero rational number $a$. We can represent $a$ as $a = \\frac{q}{p}$ with $p$ being a positive integer, $q$ a nonzero integer and $p, q$ relatively prime. Therefore, if we substitute $x = a^2$ in the equation above, we obtain\n$$\nP(a^2) = Q(a^2)(a^2 - n^2) = \\frac{1}{p^{2m}} \\left( p^{2(m-1)} Q\\left(\\left(\\frac{q}{p}\\right)^2\\right) \\right) (q^2 - (pn)^2),\n$$\nfrom which we conclude as $P(a^2) = 1$ that\n$$\n\\left( p^{2(m-1)} Q\\left(\\left(\\frac{q}{p}\\right)^2\\right) \\right) (q^2 - (pn)^2) = p^{2m}.\n$$\nWe note that both $p^{2(m-1)}Q\\left(\\left(\\frac{q}{p}\\right)^2\\right)$ and $q^2 - (pn)^2$ are integers, and therefore, the validity of the identity above implies that $q^2 - (pn)^2$ must be a factor of $p^{2m}$. However, since $p, q$ are relatively prime, neither $q - pn$ nor $q + pn$ has a common prime factor with $p$. Furthermore, since none of $n, p, q$ is zero, it is easy to check that it is impossible for $q - pn$ and $q + pn$ to have absolute value 1 simultaneously. Putting these facts together we conclude that neither $q - pn$ and $q + pn$ can be a factor of $p^{2m}$, and hence $q^2 - (pn)^2 = (q - pn)(q + pn)$ cannot be a factor of $p^{2m}$, contradicting the conclusion obtained above from the assumption $P(a^2) = 1$, and this contradiction proves the assertion of the problem.", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 34565, "subject": "Mathematics (Multi-modal)", "question": "Determine the maximum possible value for the least common multiple of 4 distinct single digit positive integers.", "options": [], "answer": "2520", "solution": "Possible prime factors for a single digit positive integer are $2$, $3$, $5$, $7$, and since $2^4 = 16$, $3^3 = 27$, $5^2 = 25$, $7^2 = 49$, are all bigger than $10$, orders of $2$, $3$, $5$, $7$ that can appear in a prime factorization of a single digit positive integer would be less than or equal to $3$, $2$, $1$, $1$ respectively. Hence the least common multiple of $4$ single digit positive integers is a divisor of $2^3 \\times 3^2 \\times 5 \\times 7 = 2520$, and in particular, it must be less than or equal to this number. On the other hand, the least common multiple of $4$ numbers $5$, $7$, $8$, $9$ is $2520$, and therefore, $2520$ is the desired answer.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34566, "subject": "Mathematics (Multi-modal)", "question": "2008 boys and 2008 girls decided to get together and play the game of exchanging presents. Each participating boy was asked to bring a bouquet of flowers and each participating girl was asked to bring a bar of chocolate to the get-together. When all the participants showed up, they were lined up in some way and were seated in a circular arrangement with every one facing toward the interior of the circle. Then they were ordered to pass on simultaneously the presents they brought to the person sitting on their right in the circular arrangement. After the actions were repeated a certain number of times the situation was reached where every participating boy had in his possession a chocolate bar and every participating girl possessed a bouquet of flowers. How many possible arrangements of the chairs occupied by the boys are there?", "options": [], "answer": "2^{251} + 2^{502} + 2^{1004} + 2^{2008}", "solution": "$[2^{251} + 2^{502} + 2^{1004} + 2^{2008}]$\n\nLet us call the situation the [initial state] if every participating boy has a bouquet of flowers and every participating girl has a chocolate bar, and call the situation the [good state] if every participating boy has a chocolate bar and every participating girl has a bouquet of flowers.\n\nSuppose the good state was attained for the first time after $d$ actions, then after $2d$ actions, the situation returns for the first time to the initial state. This is because the good state represents the situation in which the possessions of boys and girls are completely reversed from those in the initial state, and therefore, if we repeat once more the process of reversing the possessions of boys and girls completely, it is clear that the situation returns to the initial state. Furthermore, if for some $d' < 2d$ the situation returned to the initial state after $d'$ actions, then this would mean that after $|d-d'|$ actions the initial state and the good state were interchanged, and since $|d-d'| < d$, this is a contradiction. So, $2d$ is exactly the number of actions necessary to return to the initial state for the first time. Let us prove the following Lemma\n\n**Lemma.** Suppose after $a$ actions the situation returns for the first time to the initial state. If the situation returns to the initial state after $b$ actions, then $b$ must be a multiple of $a$.\n\n**Proof of Lemma** $b$ can be represented as $b = ma + k$ with a nonnegative integer $m$ and a number $k$ satisfying $0 \\le k < a$. From the definition of $a$ it follows that the situation returns to the initial state after $ma$ actions. Consequently, after $b$ actions the situation is the same as the situation reached after $k$ actions from the initial state. If $k > 0$, then this would mean that the situation returns to the initial state in less than $a$ actions, and this contradicts the fact that $a$ was assumed to be the number of actions necessary to return for the first time to the initial state. Therefore, we must have $k = 0$, and this proves the Lemma.\n\nFrom what we obtained above, we see that the situation returns to the initial state after the repetition of even multiples of $d$ actions, and goes into the good state after an odd multiples of $d$ actions. Furthermore, in view of the Lemma, we see that at no other time the initial state or the good state would be attained.\n\nSince there are altogether $4016$ people participating, it is clear that after $4016$ actions, the situation returns to the initial state. Therefore, $2d$ must be a factor of $4016$, and this implies that $d$ must be one of the numbers\n\n$1, 2, 4, 8, 251, 502, 1004, 2008$. We note that the good state can be reached also by going through $251$ actions if $d=1$, by $502$ actions if $d=2$, by $1004$ actions if $d=4$ and by $2008$ actions if $d=8$ respectively. By the Lemma, we see that there are no common seating arrangement among the seating arrangements corresponding to $251, 502, 1004, 2008$ as the number of actions necessary to get to the good state for the first time. Therefore, to obtain the possible number of seating arrangements to satisfy the requirement of the problem, it is enough to determine how many possible seating arrangements there are which produce the good state after $251, 502, 1004$ and $2008$ actions.\n\nSo, let $n \\in \\{251, 502, 1004, 2008\\}$, and consider seating arrangements that will produce the good state after $n$ actions. Since the number $\\frac{4016}{n}$ is an even integer, we see that if we decide the seating arrangement for some block consisting of $n$ consecutive chairs by deciding whether a boy or a girl sits in each of these $n$ chairs, then precisely $1$ seating arrangement for all the participants satisfying the requirement of the problem can be produced by putting alternately this arrangement of seating and the arrangement obtained by changing a boy by a girl and a girl by a boy in each chair to each of $\\frac{4016}{n}$ distinct blocks of $n$ consecutive chairs. Therefore, there are $2^n$ seating arrangement satisfying the requirement for each $n$.\n\nConsequently, the number of possible arrangements satisfying the requirement of the problem is\n\n$$\n2^{251} + 2^{502} + 2^{1004} + 2^{2008}\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34567, "subject": "Mathematics (Multi-modal)", "question": "Consider a square consisting of 9 little squares of side length $1$ arranged in $3$ rows and $3$ columns as in the figure below. Let us number the little squares as indicated in the figure.\n\n| ① | ② | ③ |\n|----|----|----|\n| ⑧ | | ④ |\n| ⑦ | ⑥ | ⑤ |\n\nLet $A$, $B$, $C$, $D$ be points chosen from the interior (not on the boundary) of the squares $1$, $3$, $5$, $7$, respectively. Denote by $X$ the sum of the areas of the intersections of the quadrilateral $ABCD$ with the squares $1$, $3$, $5$ and $7$. Denote also by $Y$ the sum of the areas of the intersections of the quadrilateral $ABCD$ with the squares $2$, $4$, $6$ and $8$. Prove that the inequality $X < Y$ holds.", "options": [], "answer": "Detailed solution", "solution": "We partition the intersection of the quadrilateral $ABCD$ and the union of squares $1$, $3$, $5$, $7$ into $8$ triangles $T_1, T_2, \\dots, T_8$ as indicated in the figure below. Then, $X$ equals the sum of the areas of the triangles $T_1, T_2, \\dots, T_8$. We also partition the intersection of $ABCD$ and the union of the squares $2$, $4$, $6$, $8$ into $8$ triangles $S_1, S_2, \\dots, S_8$ as indicated in the figure below. Then, $Y$ equals the sum of the areas of the triangles $S_1, S_2, \\dots, S_8$.\n\n![](attached_image_1.png)\n\nAs can be seen from the figure, for each $i$ ($1 \\le i \\le 8$), the triangles $T_i$ and $S_i$ have a side in common. If we consider this common side as the base for the triangles $T_i$ and $S_i$, then the altitude of the triangle $T_i$ is $< 1$, since by assumption $A$, $B$, $C$, $D$ are points in the interior of the squares, while the altitude of $S_i$ equals $1$. Therefore, for each $i$ the area of $S_i$ is greater than the area of $T_i$. Consequently, $Y$, the sum of the areas of $S_1, S_2, \\dots, S_8$ is greater than $X$, the sum of the areas of $T_1, T_2, \\dots, T_8$.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34568, "subject": "Mathematics (Multi-modal)", "question": "For a convex quadrilateral $ABCD$, the conditions $AB = BC = 2$, $CD = 2\\sqrt{3}$, $DA = 2\\sqrt{5}$ are satisfied. Also, if we let $M$, $N$ be the midpoint of $AC$ and $BD$, respectively, then $MN = \\sqrt{2}$. Determine the area of the quadrilateral $ABCD$. Here, by $XY$ we are representing the length of the line segment $XY$.", "options": [], "answer": "2 + 4√2", "solution": "$[2 + 4\\sqrt{2}]$\n$$\n\\text{Choose a point } P \\text{ so that the quadrilateral } ABCP \\text{ becomes a parallelogram. Then, we have } AP = PC = 2. \\text{ Since } M \\text{ is the mid-point of } BC \\text{ and } N \\text{ is the mid-point of } BD, \\text{ we have } PD = 2MN = 2\\sqrt{2}. \\text{ Since } PC^2 + PD^2 = 2^2 + (2\\sqrt{2})^2 = 12 = (2\\sqrt{3})^2 = CD^2, \\text{ we see that the } \\triangle PCD \\text{ is a right triangle with } CD \\text{ as its hypotenuse. We also have from the law of cosines that}\n$$\n\\cos \\angle APD = \\frac{AP^2 + PD^2 - AD^2}{2 \\cdot AP \\cdot PD} = -\\frac{\\sqrt{2}}{2},\n$$\n\\text{from which we get that } \\angle APD = 135^\\circ.\n\\text{We separate two cases depending on whether or not the points } A \\text{ and } C \\text{ lie on the same side of the plane divided by the line } PD.\n\\text{If } A \\text{ and } C \\text{ lie on the opposite sides of the plane divided by the line } PD, \\text{ the quadrilateral becomes convex, and its area is the sum of the areas of the parallelogram } ABCP, \\text{ the triangle } CDP \\text{ and the triangle } DAP. \\text{ Since } \\angle APC = 360^\\circ - \\angle APD - \\angle CPD = 135^\\circ, \\text{ we get that the area of the quadrilateral is given by}\n$$\nAP \\cdot CP \\cdot \\sin \\angle APC + \\frac{1}{2} AP \\cdot DP \\cdot \\sin \\angle APD + \\frac{1}{2} CP \\cdot DP \\cdot \\sin \\angle CPD = 2 + 4\\sqrt{2}.\n$$\n\\text{On the other hand, if the points } A \\text{ and } C \\text{ lie on the same side of the plane divided by the line } PD, \\text{ then we have } \\angle BCP = 180^\\circ - \\angle CPA = 180^\\circ - (\\angle APD - \\angle CPD) = 135^\\circ \\text{ and } \\angle BCP + \\angle PCD = 135^\\circ + \\angle PCD. \\text{ Since } \\angle CPD = 90^\\circ \\text{ and } PC < PD, \\text{ we have } \\angle PCD > 45^\\circ \\text{ and hence } \\angle BCP + \\angle PCD > 135^\\circ + 45^\\circ = 180^\\circ. \\text{ Therefore, the point } P \\text{ and the point } C \\text{ lie on the same side of the plane divided by the line } BD. \\text{ Since the points } A \\text{ and } P \\text{ lie on the same side of the plane divided by the line } BD, \\text{ the points } A \\text{ and } C \\text{ also lie on the same side of the plane divided by the line } BD. \\text{ This means that the 4 given points } A, B, C, D \\text{ traversed in this order will not form the 4 vertices of a convex quadrilateral.}\n\\text{Thus, the desired area is } 2 + 4\\sqrt{2}.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34569, "subject": "Mathematics (Multi-modal)", "question": "Let $m, n$ be positive integers. $m \\times n$ square boxes of side length 1 form a grid for a rectangle (or a square if $m=n$) of sides $m$ and $n$. We want to color each of the $m \\times n$ boxes by using one of the colors red, blue or black in such a way that all of the following conditions are satisfied:\n* every red box is adjacent to exactly 1 blue box and exactly 1 black box.\n* every blue box is adjacent to exactly 1 black box and exactly 1 red box.\n* every black box is adjacent to exactly 1 red box and exactly 1 blue box.\nHere, we say that two different boxes are adjacent to each other if they have a side in common.\nAnswer the following questions in this context:\n(1) Give an example of coloring satisfying the conditions given above in case $m=3, n=4$. (Give just an example.)\n(2) Determine all the pairs $(m, n)$ for which the coloring of boxes satisfying the conditions given above is possible.", "options": [], "answer": "(1) Example for 3×4: Row 1: red, blue, red, blue; Row 2: black, black, black, black; Row 3: blue, red, blue, red. (2) All pairs (m, n) with one dimension a multiple of 3 and the other a multiple of 2, i.e., (m, n) = (3s, 2t) or (2t, 3s) for positive integers s, t.", "solution": "Let us denote by $(i, j)$ the unit square lying in the $i$-th row and $j$-th column in the given grid. For two unit squares lying in the same row, call the square corresponding to the smaller value of $j$ to be lying to the left of the other one, and the one corresponding to the larger value of $j$ to be lying to the right of the other one. Similarly, for two squares lying in the same column, call the one corresponding to the smaller value of $i$ to be lying above the other, and the one corresponding to the larger value of $i$ to be lying below the other.\n\nLet us first consider the case for $n=1$. Since there is only one square adjacent to the square lying on the top of the column, there can be no coloring of squares satisfying the conditions of the problem. Similarly, the desired coloring cannot exist in the case of $m=1$.\n\nWe will investigate the possibility of a desired coloring in the cases for $m \\ge 2$, $n \\ge 2$, by starting with the square located at the upper left corner.\n\nWithout loss of generality, we may assume that we start by coloring the square (1,1) by red, (1,2) by blue and (2,1) by black. Then, the color of (2,2) must be either blue or black, since if (2,2) is colored red, then (1,2) would become adjacent to two red squares, violating the required condition. We suppose that (2,2) is colored by black and continue our investigation. In case blue is chosen for (2,2), we will obtain a coloring satisfying the conditions of the problem if we interchange rows and columns and go through the argument with colors blue and black interchanged.\n\nNow since the color of (2,1) is black, it must become adjacent to a blue colored square. Therefore, we must have the 3rd row, and the square (3,1) must be colored blue. Then, we see that the square (3,2) must be colored red, since if it is colored blue, then the square (2,2) which was colored black would be adjacent to two blue squares violating the requirement of the problem, while if it is colored black, then the square (3,1) which was colored blue would be adjacent to two black squares, again violating the requirement.\n\nLet us next determine the colors of all the squares lying on the top three rows.\nIf there exists the 3rd column, we see that the color of each of the squares (1,3), (2,3), (3,3) must be the same as the color of its left neighbor, since otherwise the requirement of the problem will be violated, as each of the left neighbors is already adjacent to two squares with different colors, different also from its own.\n\nArguing in the same way, we see that if for some positive integer $i$ the $(2i+1)$-th column exists, then the $(2i+2)$-th column must exist, and therefore, the number $n$ of columns must necessarily be even, and the coloring of top 3 rows in this case must be as in the following diagram.\n\nBased on the results obtained so far, let us try to determine the coloring of the 4-th and further rows starting with the 4-th row and going down.\nTo begin with, we see that if the 4-th row exists, it must have exactly the same coloring pattern as the 3-rd row, since for each square on the 4-th row, the square on the 3-rd row lying immediately above it is already adjacent to each of the two different colors.\nThus we have that the color of (4,1) is blue and that of (4,2) is red, but then we see that we need the 5-th row since otherwise the square (4,1) would not be adjacent to a square colored black. But then since any of the squares on the 4-th row is not adjacent to a black square, we see that all the squares on the 5-th row must be colored black.\n\nThe square (5,1) colored black, then, is seen not to be adjacent to a red square, so we need the 6-th row, and the square (6,1) must be colored red. As the square (5,2) is not adjacent to a blue square, we see that the square (6,2) has to have the blue color; continuing in this way, we can conclude that the coloring of the 6-th row must be the one obtained by interchanging the blue and red in the 4-th row.\n\nRepeating the same argument we see that if for some positive integer $i$ the $(3i+1)$-th row exists, then both the $(3i+2)$-th row, and the $(3i+3)$-th row must exist and the coloring of the $(3i+1)$-th row must be identical with the $(3i)$-th row, the $(3i+2)$-th row has all squares colored black and the coloring of the $(3i+3)$-th row is obtained by interchanging red and blue in $(3i+1)$-th row. In particular, the number $m$ of rows necessary must be a multiple of 3.\n\nFurthermore, we see that for any positive integers $k, l$ any rectangular (or square) grid of $3k \\times 2l$ squares with the coloring scheme described as above satisfies the conditions of the problem. We also note that interchanging rows and columns (thereby turning the $i$-th row into the $i$-th column, and the $j$-th column into the $j$-th row, we can get from a $3k \\times 2l$ rectangular grid with a coloring satisfying the conditions of the problem a $2l \\times 3k$ rectangular grid with a coloring satisfying the conditions of the problem as well.\n\nThus, we conclude that in order to get a coloring of $m \\times n$ rectangular grids (with $m \\cdot n$ squares) which satisfies the conditions of the problem we have to have $m$ to be a multiple of 3 and $n$ to be a multiple of 2 (or $m$ to be a multiple of 2 and $n$ a multiple of 3.) And if these conditions are met, the desired coloring of the grid is obtained by folding the pattern of the $3 \\times 2$ upper left corner subgrid over the horizontal line lying in between the 3-rd row and the 4-th row and repeating the folding an appropriate number of times, and then folding the resulting $3k \\times 2$ grid over the vertical line lying in between the 2-nd and the 3-rd column appropriate number of times to obtain the coloring of $3k \\times 2l$ grid which satisfies the conditions of the problem (assuming that $m = 3k, n = 2l$.)\n\n(1) From the discussion above, we see that the following arrangement of colors satisfy the condition of the problem.\n\n| | 1 | 2 | 3 | 4 |\n|---|-----|-----|-----|-----|\n| 1 | red | blue| red | blue|\n| 2 | black| black| black| black|\n| 3 | blue| red | blue| red |\n\n(Any of the 6 colorings obtained by permuting the three colors in this pattern is also valid.)\n\n(2) All pairs $(m, n)$ such that $m$ is a multiple of 3 and $n$ is a multiple of 2, or $m$ is a multiple of 2 and $n$ is a multiple of 3, i.e., $(m, n) = (3s, 2t)$ or $(2t, 3s)$ for positive integers $s, t$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34570, "subject": "Mathematics (Multi-modal)", "question": "Suppose that the combination $(n; a_1, a_2, \\dots, a_n)$ of positive integers satisfy the condition $a_1 + a_2 + \\dots + a_n = 2008$. Let for each $k$ with $1 \\le k \\le n$, $A_k = a_1a_2\\cdots a_k$. Determine the maximum possible value that the quantity $A_1 + A_2 + \\dots + A_n$ can take.", "options": [], "answer": "(47/2)*3^667 - 3/2", "solution": "$\\left[\\frac{47}{2} \\cdot 3^{667} - \\frac{3}{2}\\right]$\n\nFor $(a_1, a_2, \\dots, a_n)$ satisfying the condition of the problem, let us put $A_0 = 1$ and\n$$\nS(a_1, a_2, \\dots, a_n) = A_1 + A_2 + \\dots + A_n.\n$$\n\n**Lemma 1.** For $(a_1, a_2, \\dots, a_n)$ which yields the maximum possible value of $S(a_1, a_2, \\dots, a_n)$, we must have $a_i \\ge a_{i+1}$ for each $i$ satisfying $1 \\le i \\le n-1$.\n\n**Proof of Lemma 1.** Suppose there exists a $k$ with $1 \\le k \\le n-1$, for which $a_k < a_{k+1}$. Let us define an $n$-tuple of positive integers $(b_1, b_2, \\dots, b_n)$ by setting\n$$\nb_i = a_i \\text{ if } i \\ne k, k+1; \\quad b_k = a_{k+1}, \\quad b_{k+1} = a_k.\n$$\nSince $b_1 + b_2 + \\dots + b_n = 2008$, $(b_1, b_2, \\dots, b_n)$ satisfies the condition of the problem. To prove the Lemma, therefore, it is enough to show that $S(a_1, a_2, \\dots, a_n) < S(b_1, b_2, \\dots, b_n)$. Let us put $B_i = b_1b_2\\dots b_i$ for each $i$. It is clear that $A_i = B_i$ holds for each $i \\ne k$. We also have\n$$\nB_k - A_k = (a_{k+1} - a_k)A_{k-1} > 0,\n$$\nand therefore, the Lemma is proved.\n\n**Lemma 2.** If $(a_1, a_2, \\dots, a_n)$ with $a_1 + a_2 + \\dots + a_n = 2008$ gives the maximum possible value to $S(a_1, a_2, \\dots, a_n)$, then $a_i \\le 3$ must hold for each $i$, $1 \\le i \\le n$.\n\n**Proof of Lemma 2.** Suppose there exists a $k$ with $1 \\le k \\le n$, for which $a_k \\ge 4$. We may assume that $a_1 \\ge 4$ in view of Lemma 1. Let us define an $n+1$ tuple $(c_1, c_2, \\dots, c_{n+1})$ by setting\n$$\nc_1 = a_1 - 2; \\quad c_2 = 2; \\quad c_i = a_{i-1} \\text{ (for } 2 < i \\le n+1).\n$$\nSince $c_1 + c_2 + \\dots + c_{n+1} = 2008$, to prove the Lemma it is enough to show that $S(a_1, a_2, \\dots, a_n) < S(c_1, c_2, \\dots, c_{n+1})$. Let us set $Q = \\frac{A_2+A_3+\\dots+A_n}{A_1}$. Then we have\n$$\nS(a_1, a_2, \\dots, a_n) = a_1 + Qa_1.\n$$\nWe also have\n$$\nS(c_1, c_2, \\dots, c_{n+1}) = (a_1 - 2) + 2(a_1 - 2) + 2Q(a_1 - 2).\n$$\nFrom these identities and from the fact that $a_1 \\ge 4$ it follows that\n$$\nS(c_1, c_2, \\dots, c_{n+1}) = S(a_1, a_2, \\dots, a_n) = (2a_1 - 6) + Q(a_1 - 4) > 0,\n$$\nwhich establishes the claim of the Lemma.\n\n**Lemma 3.** There exists a combination $(n, a_1, a_2, \\dots, a_n)$ giving $S(a_1, a_2, \\dots, a_n)$ the maximum value and having the additional property that 1 appears among $a_1, a_2, \\dots, a_n$ at most once.\n\n**Proof of Lemma 3.** Suppose $S(a_1, a_2, \\dots, a_n)$ attains the maximum possible value, and suppose there are two or more 1's among $a_1, a_2, \\dots, a_n$. We may assume that $a_{n-1} = a_n = 1$ in view of Lemma 1. Let us define an $n-1$ tuple $(d_1, d_2, \\dots, d_{n-1})$ by\n$$\nd_i = a_i \\quad (i < n-1); \\quad d_{n-1} = 2.\n$$\nThen, $d_1 + d_2 + \\dots + d_{n-1} = 2008$. For each $k$ with $1 \\le k \\le n-1$, let $D_k = d_1d_2\\dots d_k$. We then have $A_k = D_k$ when $1 \\le k \\le n-2$. We also have $D_{n-1} = 2A_{n-2}$. Furthermore, from the fact that $a_{n-1} = a_n = 1$ it follows that $A_{n-1} = A_n = A_{n-2}$. Consequently, we have $S(a_1, a_2, \\dots, a_n) = S(d_1, d_2, \\dots, d_{n-1})$. This shows that if there are two or more 1's among $a_1, a_2, \\dots, a_n$, then we can introduce $d_1, d_2, \\dots, d_{n-1}$ to reduce the number of 1's among $a_1, a_2, \\dots, a_n$ while keeping the maximality of the value $S(a_1, a_2, \\dots, a_n)$. We can reduce the number of 1's further, if necessary, by starting with $d_1, d_2, \\dots, d_{n-1}$ and going through the same procedure. Thus, there is a combination $(n; a_1, a_2, \\dots, a_n)$ of positive integers which give the maximum value of $S(a_1, a_2, \\dots, a_n)$ with the additional property that 1 appears among $a_1, a_2, \\dots, a_n$ at most once.\n\n**Lemma 4.** There exists a combination $(n; a_1, a_2, \\dots, a_n)$ of positive integers which gives the maximum value for $S(a_1, a_2, \\dots, a_n)$ and for which there are at most three 2's among $a_1, a_2, \\dots, a_n$.\n\n**Proof of Lemma 4.** Suppose there exists an $n$ tuple $a_1, a_2, \\dots, a_n$ which gives the maximum value for $S(a_1, a_2, \\dots, a_n)$ and there are $4$ or more $2$'s among $a_1, a_2, \\dots, a_n$. In view of Lemma 1, we may assume that there exists a $k$ with $1 \\le k \\le n-3$ such that $a_k = a_{k+1} = a_{k+2} = a_{k+3} = 2$. Introduce an $n-1$ tuple $(e_1, e_2, \\dots, e_{n-1})$ by defining\n$$\ne_i = a_i \\quad (i < k); \\quad 3 = a_i + k; \\quad i = k, k+1; \\quad i > k+1.\n$$\nIf $k > 1$ call $P = A_1 + A_2 + \\dots + A_{k-1}$. If $k = 1$, let $P = 0$. Also, if $k < n-3$ let $Q = \\frac{A_{k+4} + A_{k+5} + \\dots + A_n}{A_{k+3}}$, and $Q = 0$ if $k = n-3$. Then, we have\n$$\nS(a_1, a_2, \\dots, a_n) = P + 2A_{k-1} + 4A_{k-1} + 8A_{k-1} + 16A_{k-1} + 16QA_{k-1}.\n$$\nWe also have\n$$\nS(e_1, e_2, \\dots, e_{n-1}) = P + 3A_{k-1} + 9A_{k-1} + 18A_{k-1} + 18QA_{k-1}.\n$$\nIt follows from these identities that we have\n$$\nS(e_1, e_2, \\dots, e_{n-1}) - S(a_1, a_2, \\dots, a_n) = 2QA_{k-1} \\ge 0.\n$$\n\nSince $e_1+e_2+\\cdots+e_{n-1} = 2008$, the combination $(n-1; e_1, e_2, \\cdots, e_{n-1})$ satisfies the condition of the problem, and since $S(a_1, a_2, \\cdots, a_n)$ has the maximum value, $S(e_1, e_2, \\cdots, e_{n-1})$ also takes the maximum value. Therefore, if there are 4 or more 2's among $a_1, a_2, \\cdots, a_n$, then we can reduce the number of 2's without losing the maximality of the value $S(a_1, a_2, \\cdots, a_n)$. This proves the assertion of this Lemma.\n\nNow going back to the problem, we note that, in view of Lemmas 1, 2, 3, 4, it is enough to check the following 3 cases in order to determine the maximum value of $S(a_1, a_2, \\cdots, a_n)$:\n$$\n(1) \\quad a_1 = a_2 = \\cdots = a_{669} = 3, \\quad a_{670} = 1.\n$$\n$$\n(2) \\quad a_1 = a_2 = \\cdots = a_{667} = 3, \\quad a_{668} = a_{669} = a_{670} = 2, \\quad a_{671} = 1.\n$$\n$$\n(3) \\quad a_1 = a_2 = \\cdots = a_{668} = 3, \\quad a_{669} = a_{670} = 2.\n$$\nLet $X = 3 + 3^2 + \\cdots + 3^{667}$ and $Y = 3^{667}$. Then\n\nIn the case (1): $S(a_1, a_2, \\cdots, a_n) = X + 3Y + 9Y + 9Y = X + 21Y$,\n\nIn the case (2): $S(a_1, a_2, \\cdots, a_n) = X + 2Y + 4Y + 8Y + 8Y = X + 22Y$,\n\nIn the case (3): $S(a_1, a_2, \\cdots, a_n) = X + 3Y + 6Y + 12Y = X + 21Y$,\n\nso that we have the desired maximum value to be $X + 22Y = \\frac{47}{2} \\cdot 3^{667} - \\frac{3}{2}$.", "topic": "Discrete Mathematics", "subtopic": "Combinatorics" }, { "id": 34571, "subject": "Mathematics (Multi-modal)", "question": "What is the maximum number of times that you can divide by $2$ the number\n$$\n1004 \\times 1005 \\times 1006 \\times \\dots \\times 2008?\n$$", "options": [], "answer": "1006", "solution": "For a real number $x$, denote by $\\lfloor x \\rfloor$ the greatest integer $\\le x$. Then, for every positive integer $n$, there are exactly $\\lfloor \\frac{n}{2} \\rfloor$ even numbers among $1, 2, \\dots, n$ and therefore, $1 \\times 2 \\times 3 \\times \\dots \\times n$ can be divided by $2$ at least $\\lfloor \\frac{n}{2} \\rfloor$ times, and if we go through the division by $2$ $\\lfloor \\frac{n}{2} \\rfloor$ times, then you get as the quotient $1 \\times 2 \\times \\dots \\times \\lfloor \\frac{n}{2} \\rfloor \\times q$, where $q$ is a product of odd integers. Similarly, $1 \\times 2 \\times \\dots \\times \\lfloor \\frac{n}{2} \\rfloor$ can be divided by $2$ at least $\\lfloor \\frac{\\lfloor \\frac{n}{2} \\rfloor}{2} \\rfloor = \\lfloor \\frac{n}{4} \\rfloor$ times, and if we carry through the division by $2$ so many times you get the quotient $1 \\times 2 \\times \\dots \\lfloor \\frac{n}{2} \\rfloor \\times q'$, where $q'$ is a product of odd integers. If you repeat this procedure $k-1$ times, where $k$ is the smallest positive integer for which $2^k > n$, then we see that $1 \\times 2 \\times 3 \\times \\dots \\times n$ can be divided by $2$ exactly $\\lfloor \\frac{n}{2} \\rfloor + \\lfloor \\frac{n}{4} \\rfloor + \\lfloor \\frac{n}{8} \\rfloor + \\dots + \\lfloor \\frac{n}{2^k} \\rfloor$ times, since after you carry through the division by $2$ so many times you end up as the quotient with a number which is a product of odd integers only.\n\nSince $2^{10} = 1024 < 2008 < 2028 = 2^{11}$, and $2^9 = 512 < 1003 < 1024 = 2^{10}$, we can conclude from the discussion above by letting $n = 2008$ and $1003$, respectively, that $1 \\times 2 \\times \\dots \\times 2008$ can be divided by $2$ exactly $\\lfloor \\frac{2008}{2} \\rfloor + \\lfloor \\frac{2008}{4} \\rfloor + \\lfloor \\frac{2008}{8} \\rfloor + \\dots + \\lfloor \\frac{2008}{1024} \\rfloor$ times and that $1 \\times 2 \\times \\dots \\times 1003$ can be divided by $2$ exactly $\\lfloor \\frac{1003}{2} \\rfloor + \\lfloor \\frac{1003}{4} \\rfloor + \\lfloor \\frac{1003}{8} \\rfloor + \\dots + \\lfloor \\frac{1003}{512} \\rfloor$ times. Since the desired answer is the difference of these two numbers, we get\n$$\n(1004 + 502 + 251 + 125 + 62 + 31 + 15 + 7 + 3 + 1)\n$$\n\n$-(501 + 250 + 125 + 62 + 31 + 15 + 7 + 3 + 1) = 1006.$\n$$\n\nAlternatively, since\n$$\n\\begin{aligned}\n1004 \\times 1005 \\times \\dots \\times 2008 &= \\frac{1 \\times 2 \\times 3 \\times 4 \\times \\dots \\times 2008}{1 \\times 2 \\times \\dots \\times 1003} \\\\\n&= 1 \\times 3 \\times 5 \\times \\dots \\times 2007 \\times \\frac{2 \\times 4 \\times 6 \\times \\dots \\times 2006}{1 \\times 2 \\times 3 \\times \\dots \\times 1003} \\times 2008 \\\\\n&= 1 \\times 3 \\times 5 \\times \\dots \\times 2007 \\times 2^{1003} \\times (2^3 \\times 251) \\\\\n&= 2^{1006} \\times 1 \\times 3 \\times 5 \\times \\dots \\times 2007 \\times 251,\n\\end{aligned}\n$$\nfrom which we conclude that the given number can be divided by $2$ exactly $1006$ times.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34572, "subject": "Mathematics (Multi-modal)", "question": "There are $2008$ pieces each of red cards and white cards. These $4016$ cards are mixed and put on a pile. Then, each of the $2008$ participating players is dealt $2$ cards from the pile, and then all of the players are seated in a circular arrangement facing interior of the circle. At every turn of the game each player will perform the following act simultaneously:\nIf a player possesses at least one red card, he will pass one red card to the player sitting next to him on the left-side. If a player does not have any red card in his possession, then he will pass one white card to the player on his left.\nDetermine the maximum possible number of turns necessary to reach for the first time the situation where every player will have one each of red and white cards.", "options": [], "answer": "2007", "solution": "Pick some player and call him $A$. Let $A_1$ be $A$ and for $i = 2, 3, \\dots$ designate by $A_i$ the player sitting at the $i-1$-th position from the player $A$ counted clockwise. For a non-negative integer $k$ and a positive integer $i$ denote by $F(k, i)$ the number obtained by subtracting the total number of red cards possessed by the players $A_1, A_2, \\dots, A_i$ from the total number of white cards possessed by the same set of players after the $k$-th turn. By $0$-th turn we mean the initial distribution of red and white cards. Let us first prove the following lemma.\n\n**Lemma 1.** If we choose the player $A$ suitably, then we can make $F(0, i) \\ge 0$ for every positive integer $i$.\n**Proof.** Choose a player arbitrarily and call him $B$. Define $B_i$ and $G(k, i)$ starting with $B$ in the same way as we defined $A_i$ and $F(k, i)$ from $A$. As the total number of red cards possessed by the players $B_1, B_2, \\dots, B_{2008}$ equals the total number of white cards possessed by the same set of players, we have $G(0, i) = G(0, i + 2008)$, and therefore, we can choose a number $m$ ($1 \\le m \\le 2008$) such that $G(0, m) = \\min_{i \\ge 1} G(0, i)$. Now, let $A$ be $B_{m+1}$, then since $A_i = B_{m+i}$, $F(0, i)$ equals the number obtained by subtracting the total number of red cards possessed initially by the players $B_{m+1}, B_{m+2}, \\dots, B_{m+i}$ from the total number of white cards possessed initially by the same set of players. Consequently, we have $F(0, i) = G(0, m+i) - G(0, m) \\ge 0$.\n\nFrom now on we consider the player $A$ satisfying the condition of Lemma 1. We can now prove the following lemma.\n\n**Lemma 2.** $F(k, i) \\ge 0$ holds for every choice of the nonnegative integer $k$ and the positive integer $i$.\n**Proof.** We prove the assertion by using the mathematical induction on $k$.\nThe assertion is valid for $k=0$ by our choice of $A$.\nSuppose the assertion holds for the case $k=l$. We will show that the existence of $j$ for which $F(l+1,j) < 0$ will lead to a contradiction. As $F(l+1,j) = F(l+1,j+2008)$, we may suppose that $j \\ge 2$. We see from the definition of $F(l,j)$ and the fact that the total number of cards possessed by $A_1, A_2, \\dots, A_j$ is even that $F(l,j)$ is also even. The value of $F(l,j)-F(l+1,j)$ is determined completely by the kind of cards $A_1$ receives and $A_j$ passes on at the $l+1$-th turn, and this value is $-2$, $0$ or $2$. Since $F(l,j) \\ge 0$ and $F(l+1,j) < 0$, we see that only possible combination is $F(l,j) = 0$ and $F(l+1,j) = -2$ and this can happen only if $A_1$ receives a red card and $A_j$ passes on a white card at the $l$-th turn. But if $A_j$ passes on a white card at the $l$-th turn, this means that $A_j$ must have $2$ white cards at the end of the $l$-th turn, which implies that $F(l,j-1) = F(l,j) - 2 = -2 < 0$, which contradicts the induction hypothesis. Thus, we must have $F(l+1,i) \\ge 0$ for all positive integers $i$. This completes the mathematical induction and the proof of Lemma 2.\n\nBy letting $i=2007$ in Lemma 2, we get $F(k, 2007) \\ge 0$ for every $k \\ge 0$. Combined with the fact $F(k, 2008) = 0$ for every $k \\ge 0$, we can conclude that $A_{2008}$ always possesses at least one red card, and consequently, $A_1$ receives a red card at every turn. Starting with this fact, we can prove by using mathematical induction on $n$ that for every positive integer $n$, every one of the players $A_1, A_2, \\dots, A_n$ possesses at least $1$ red card at the end of $n$-th turn. Combined with the fact that $A_{2008}$ always possesses at least $1$ red card, this tells us that every one of the players $A_1, A_2, \\dots, A_{2008}$ possesses at least $1$ red card at the end of $2007$-th turn. Since the total number of red cards is $2008$, this means that every player has exactly $1$ red card at the end of $2007$-th turn, which implies that the situation where every player possesses exactly $1$ white and $1$ red cards must be reached in at most $2007$ turns.\n\nOn the other hand, if initially a certain player has $2$ white cards, the player sitting on his right has $2$ red cards and every other player has exactly $1$ white and $1$ red cards, the situation where every player has exactly $1$ white and $1$ red cards can be reached for the first time at the end of the $2007$-th turn.\n\nThus, the maximum number of turns necessary to achieve the desired situation is $2007$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34573, "subject": "Mathematics (Multi-modal)", "question": "Let $ABCD$ be a square of side length $1$. Let $O$ be the circle having the side $AD$ of the square as its diameter, and pick a point $E$ on the side $AB$ of the square in such a way that the line $CE$ becomes a tangent line to the circle $O$. Determine the area of the triangle $CBE$.", "options": [], "answer": "3/8", "solution": "Let $M$ be the mid-point of the side $AD$ of the square, and let $N$ be the point of tangency of the line $CE$ to the circle $O$. Since $MD = MN$, and $\\angle MDC = \\angle MNC = 90^\\circ$, we have $\\triangle MNC \\equiv \\triangle MDC$. Similarly, we have $\\triangle MNE \\equiv \\triangle MAE$. From $\\triangle MNC \\equiv \\triangle MDC$ we have $\\angle CMN = \\angle CMD$, which implies that $2\\angle CMN = \\angle DMN$. Similarly, we get $2\\angle EMN = \\angle AMN$ from $\\triangle MNE \\equiv \\triangle MAE$. Consequently, we have\n$$\n\\angle EMC = \\angle EMN + \\angle CMN = \\frac{1}{2}(\\angle DMN + \\angle AMN) = 90^\\circ.\n$$\nHence, we have $\\angle EMN = 90^\\circ - \\angle CMN = \\angle MNC$, which together with the fact that $\\angle ENM = 90^\\circ = \\angle MNC$ implies that $\\triangle EMN$ and $\\triangle MCN$ are similar triangles. Therefore, we have $EN : NM = NM : NC$. On the other hand, from the fact that $\\triangle MNC \\equiv \\triangle MDC$, we have $NC = DC = 1$, $NM = DM = \\frac{1}{2}$, from which we obtain $EN = \\frac{1}{4}$. From $\\triangle MNE \\equiv \\triangle MAE$ we get $EA = EN = \\frac{1}{4}$ so that we have $BE = \\frac{3}{4}$, and therefore, the area of $\\triangle CBE = \\frac{1}{2} \\cdot 1 \\cdot \\frac{3}{4} = \\frac{3}{8}$.\n\nAlternatively:\n![](attached_image_1.png)\nWe can argue in the same way as above to conclude that $\\triangle MNC \\equiv \\triangle MDC$, $\\triangle MNE \\equiv \\triangle MAE$. Then we can put $AE = t$ and get $EC = EN + NC = EA + DC = t + 1$ and $BE = BA - AE = 1 - t$. By applying the Pythagorean theorem to the right triangle $CBE$, we get $(1+t)^2 = (1-t)^2 + 1^2$. Solving for $t$ we get $t = \\frac{1}{4}$, and we get the area of the $\\triangle CBE = \\frac{3}{8}$ as above.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34574, "subject": "Mathematics (Multi-modal)", "question": "Put 6 points $A$, $B$, $C$, $D$, $E$, $F$ on the circumference of a circle in this order in such a way that the following conditions are satisfied: arc $AB$ and arc $BC$, arc $CD$ and arc $DE$, and arc $EF$ and arc $FA$ have same lengths, respectively. Determine the value of the angle $\\angle BFD$ if $\\angle ACE = 68^\\circ$. (Caution: the following diagram may not be accurate.)\n\n![](attached_image_1.png)\n", "options": [], "answer": "56°", "solution": "From the well-known property of a quadrilateral inscribed in a circle, we have $\\angle ACE + \\angle AFE = 180^\\circ$, and therefore, $\\angle AFE = 180^\\circ - 68^\\circ = 112^\\circ$.\n\nSince the arcs $CD$ and $DE$ have the same lengths, we have from the theorem on inscribed angles that $\\angle CFD = \\angle DFE$, from which we conclude that $\\angle CFD = \\frac{1}{2} \\angle CFE$.\n\nSimilarly, we have $\\angle BFC = \\frac{1}{2} \\angle AFC$.\n\nConsequently,\n$$\n\\angle BFD = \\angle BFC + \\angle CFD = \\frac{1}{2}(\\angle AFC + \\angle CFE) = \\frac{1}{2} \\angle AFE = 56^\\circ.\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34575, "subject": "Mathematics (Multi-modal)", "question": "Currently circulating coins in Japanese currency come in 6 different denominations: 500 yen, 100 yen, 50 yen, 10 yen, 5 yen and 1 yen. Taro had 1 each of 1000 yen note, 100 yen coin, 10 yen coin and 1 yen coin. He made a certain purchase from a merchant and handed him all he had and received some change. Assume that Taro made the payment in such a way that he would not receive in the change any coins of the denominations same as what he had had to begin with, nor a 1000 yen note. Furthermore, he chose the method of the payment so that he would end up with the minimum possible number of coins when he received his change. Assume also that the merchant gave Taro the change with minimum possible number of coins. Count the case of no change as a possibility for the purchase price also. Under these conditions how many distinct purchase prices are possible?", "options": [], "answer": "8", "solution": "To begin with, we note that two or more of 500 yen coins, or of 50 yen coins, or of 5 yen coins could not be included in the change Taro received. This is because if two or more of any of these coins were in the change, two of them could be exchanged for one 1000 yen note, or one 100 yen coin or one 10 yen coin to reduce the total number of coins in the change. Also, the change did\n\nnot include 1000 yen note, 100 yen coin, 10 yen coin or 1 yen coin, since Taro used all of these in his payment. Therefore, the change must have consisted of zero or one piece each of 500 yen, 50 yen and 5 yen coins. Consequently, the purchase price must have been of the form: $1111 - (500a + 50b + 5c)$ yen, where each of $a$, $b$, $c$ being either 0 or 1.\n\nConversely, let us show that if the purchase price is of the form $1111 - (500a + 50b + 5c)$ yen, with each one of $a$, $b$, $c$ being 0 or 1, then Taro would make his payment in the way specified in the statement of the problem. Note that as each of $a$, $b$, $c$ is either 0 or 1, a 500 yen, b 50 yen and c 5 yen coins together would yield the method of payment of $500a + 50b + 5c$ yen with the minimum number of coins. The change does not contain any of 1000 yen note or 100 yen, 10 yen, 1 yen coins, as we have noted before. Also, the amount of change should be $500a + 50b + 5c$ yen regardless of the method of payment, and hence the number of coins Taro received as the change is the minimum possible for the amount of change.\n\nSince each of $a$, $b$, $c$ can take either 0 or 1, the number of possible values for the purchase price is $2^3 = 8$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34576, "subject": "Mathematics (Multi-modal)", "question": "Let $O$ be the circumcenter of an acute triangle $ABC$. A circle passing through points $A, O$ intersects lines $AB$ and $AC$ at points $P, Q$ distinct from $A$, respectively. If the lengths of the line segments $PQ$ and $BC$ are equal, what is the magnitude of the angle formed by the lines $PQ$ and $BC$ and less than $90^\\circ$?", "options": [], "answer": "60°", "solution": "Let us denote by $(XYZ)$ the directed angle determined by the 3 points $X, Y, Z$. More precisely, we set $(XYZ)$ to be equal to $\\alpha$ if the line $XY$ comes on top of the line $YZ$ when $XY$ is rotated around $Y$ counterclockwise by $\\alpha$ degrees. When an integral multiple of $180^\\circ$ is added to such an $\\alpha$, the same condition on the line $XY$ will be satisfied, so, in the sequel we identify two values differing by an integral multiple of $180^\\circ$, when we refer to directed angles. Let us prove the following simple lemma.\n\n**Lemma.** If four distinct points $X, Y, Z, W$ lie on the circumference of a same circle, then $(XZY) = (XWY)$ holds.\n\n**Proof.** The circumference of the circle are divided into 2 disjoint arcs by the points $X, Y$. If the 2 points $Z, W$ lie on a same arc given by this division, then by the well-known theorem on inscribed angles, we have $\\angle XZY = \\angle XWY$, and since these angles have the same direction, we have $(XZY) = (XWY)$ in this case. On the other hand, if $Z$ and $W$ lie on different arcs, from a well-known property of a quadrilateral inscribed in a circle, we can conclude that $\\angle XZY = 180^\\circ - \\angle XWY$. Since the direction of these angles are reversed in this situation, we have $(XZY) = 180^\\circ - (-(XWY)) = (XWY)$ in this case also.\n\nLet us denote by $M, N$ the midpoints of the sides $AB$ and $AC$ of the triangle $ABC$, respectively. From the fact that $OM \\perp AM, ON \\perp AN$ it follows that the four points $A, O, M, N$ lie on the circumference of a same circle, and hence by Lemma, we have $(MON) = (MAN)$. Since $A, O, P, Q$ also lie on the circumference of a same circle, we also have $(POQ) = (PAQ)$. Furthermore, since the three points $A, P, M$ lie on a same line and so do the three points $A, Q, N$, we have $(MAN) = (PAQ)$, and therefore, we conclude that $(MON) = (POQ)$, from which we obtain $(MOP) = (MON) - (PON) = (POQ) - (PON) = (NOQ)$.\n\nIf we denote by $B'$ the point situated symmetrically to the point $B$ with respect to the point $P$, then we have $\\vec{AB}' = 2\\vec{MP}$ since $\\vec{BA} = 2\\vec{BM}$ and $\\vec{BB}' = 2\\vec{BP}$ hold. Similarly, if we let $C'$ be the point situated symmetrically to the point $C$ with respect to the point $Q$, then we have $\\vec{AC}' = 2\\vec{NQ}$.\n\nSince $\\vec{MP} \\cdot (\\vec{NQ})$ coincides with the vector obtained by rotating $\\vec{OM} \\cdot (\\vec{ON})$, respectively counterclockwise by $90^\\circ$ and multiplied by $\\tan(MOP)\\ (= \\tan(NOQ))$, we can conclude that $\\vec{AB}' \\cdot (\\vec{AC}')$ coincides with the vector obtained by rotating $\\vec{OM} \\cdot (\\vec{ON})$, respectively counterclockwise by $90^\\circ$ and multiplied by $2\\tan(MOP)$. Therefore, $\\vec{B'C}'$ coincides with the vector obtained by rotating $\\vec{MN}$ counterclockwise by $90^\\circ$ and multiplied by $2\\tan(MOP)$. In particular, we have $\\vec{B'C}' \\perp \\vec{BC}$, since $\\vec{MN} \\parallel \\vec{MN}$.\n\nDenote by $H$ the point of intersection of the lines $B'C'$ and $BC$, and let $P'(Q')$ be the foot of the perpendicular line drawn from $P(Q)$, respectively, to the line $BC$. Then, since $P'(Q')$, respectively, is the midpoint of the line segment $HB(HC$, respectively), we have $P'Q' = \\frac{1}{2}BC = \\frac{1}{2}PQ$.\n\nIf we let $\\theta$ be the angle formed by the lines $PQ$ and $BC$ ($0^\\circ \\le \\theta \\le 90^\\circ$ and $\\theta = 0$ if the two lines are parallel), then we see that $P'Q' = PQ \\cos \\theta$ holds so that we get $\\cos \\theta = \\frac{1}{2}$ and therefore, $\\theta = 60^\\circ$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34577, "subject": "Mathematics (Multi-modal)", "question": "Determine all the real-valued functions $f$ defined on the real line, which satisfies for all real numbers $x$ and $y$\n$$\nf(x+y)f(f(x)-y) = xf(x) - yf(y).\n$$", "options": [], "answer": "Either f(x) = x for all real x, or f(x) = 0 for all nonzero x and f(0) is an arbitrary real constant.", "solution": "Let $f(0) = a$ and in the given functional equation\n$$\nf(x+y)f(f(x)-y) = xf(x) - yf(y) \\quad (1)\n$$\nsubstitute $x = y = 0$, then we get\n$$\nf(0)f(a) = 0,\n$$\nfrom which we obtain $f(0) = 0$ or $f(a) = 0$. Since $f(0) = 0$ implies that $a = 0$ by definition, we see that $f(a) = 0$ always holds.\nLet $t$ be an arbitrary real number. By substituting $x = 0, y = t$, into (1), we obtain\n$$\nf(t)f(a-t) = -tf(t) \\quad (2)\n$$\nfrom which we can conclude that either $f(t) = 0$ or $f(a-t) = -t$ holds. Therefore, if $u \\neq 0$ and $f(u) \\neq 0$, then since $f(a-u) = -u \\neq 0$, by substituting $t = a-u$ we obtain $f(u) = u-a$. Consequently, we get the implication\n$$\nu \\neq 0 \\Rightarrow [f(u) = 0 \\text{ or } f(u) = u-a] \\quad (3)\n$$\nLet us first consider the case where $f(u) = 0$ holds for every $u \\neq 0$. We will show that such an $f$ satisfies the functional equation (1). If $a = 0$, then the function $f$ is the identically zero function, and it is obvious that the equation (1) is satisfied in this case. So, let us suppose that $a \\neq 0$. Since $vf(v) = 0$ holds for all $v$ by the right-hand side of the functional equation (1) is always 0. On the other hand, the left-hand side of (1) is $\\neq 0$ only when both $x+y=0$ and $f(x)-y=0$ are satisfied. We will show this cannot happen. For, if $x=y=0$, then $f(x)-y=f(0)=a \\neq 0$, while if $0 \\neq x = -y$, then $f(x)-y=-y \\neq 0$. Therefore, the left-hand side of (1) is always 0 also, and thus our function $f$ satisfies (1).\nNext we consider the case where there exists $u \\neq 0$ for which $f(u) \\neq 0$. Let us denote one such $u$ by $b$. If we substitute $x = a, y = -b$ in the equation (1), we get $f(a-b)f(b) = bf(-b)$, while by (2) we have $f(b)f(a-b) = -bf(b)$, and since $b \\neq 0$, we conclude that\n$$\nf(-b) = -f(b) \\neq 0 \\quad (4)\n$$\nWe also have, in view of (3) that\n$$\nf(b) = b - a, \\quad f(-b) = -b - a. \\quad (5)\n$$\nCombining (4) and (5), we get that $a = 0$, and therefore, $f(b) = b$. We now show that $f(x) = x$ must hold for all $x$ in this case. So, suppose that there\n\nexists a $c$ for which $f(c) \\neq c$. Since $f(0) = a = 0$. $c \\neq 0$, and hence we have by (3) $f(c) = 0$. By substituting $x = b$ and $y = c$ in (1), we obtain\n$$\nf(b+c)f(b-c) = b^2. \\quad (6)\n$$\nSince, $b \\neq 0$, $f(b+c) \\neq 0$, $f(b-c) \\neq 0$ must hold. As $f(0) = 0$, we also have $b+c \\neq 0$ and $b-c \\neq 0$. If we apply (3) to $u = b+c$ and $u = b-c$, we conclude that $f(b+c) = b+c$ and $f(b-c) = b-c$ and therefore, $f(b+c)f(b-c) = b^2-c^2$. However, since $c \\neq 0$, this contradicts (6). Thus, we conclude that if there exists a $b \\neq 0$ for which $f(b) \\neq 0$, then $f(x) = x$ for all $x$. It is easy to check that the function $f(x) = x$ satisfies the functional equation (1).\nAs we covered all the possibilities we conclude that the only functions $f$ that satisfy the functional equation (1) are:\n$$\nf(x) = x\n$$\nand\n$$\nf(x) = a \\text{ (if } x = 0\\text{); } 0 \\text{ (if } x \\neq 0\\text{)},\n$$\nwhere $a$ can be an arbitrary real number.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34578, "subject": "Mathematics (Multi-modal)", "question": "Suppose a positive integer has the property that the sum of the remainders when its factors are divided by $4$ equals $1000$. Determine all positive integers having this property.", "options": [], "answer": "448, 796", "solution": "For a positive integer $n$, let us denote by $S(n)$ the sum of all the positive factors of $n$ whose remainder when divided by $4$ is not equal to $2$. Let us first determine $S(n)$.\nSuppose the prime factorization of $n$ is given by\n$$\n2^m p_1^{m_1} \\cdots p_k^{m_k} \\quad (p_1, \\ldots, p_k \\text{ are distinct odd primes, } m \\ge 0, m_1, \\ldots, m_k \\ge 1).\n$$\nSince the fact that an integer has a remainder $2$ when divided by $4$ is equivalent to the fact that it is divisible by $2$ only once, we can see that $S(n)$ is the sum of all numbers of the form\n$$\n2^l p_1^{l_1} \\cdots p_k^{l_k} \\quad (\\text{where } 0 \\le l \\le m, 1 \\ne l \\ne 1, 0 \\le l_1 \\le m_1, \\ldots, 0 \\le l_k \\le m_k).\n$$\nConsequently, $S(n)$ equals\n$$\n\\sum_{l=0, l \\ne 1}^{m} 2^l \\sum_{l_1=0}^{m_1} p_1^{l_1} \\cdots \\sum_{l_k=0}^{m_k} p_k^{l_k}.\n$$\n(Note that because of the distributive law the number of terms in each sum corresponds to the number of possible values for each of the exponents.)\nFor the sake of simplicity, let for each non-negative integer $m$,\n$$\nf(2, m) = \\sum_{l=0, l \\ne 1}^{m} 2^l; \\quad f(p, m) = \\sum_{l=0}^{m} p^l \\quad (\\text{when } p \\text{ is a prime } \\ne 2).\n$$\nThen, if $n = 2^m p_1^{m_1} \\cdots p_k^{m_k}$, we have $S(n) = f(2, m)f(p_1, m_1) \\cdots f(p_k, m_k)$. In order to determine positive integers $n$ for which $S(n) = 1000$, let us first determine the pairs $(p, m)$, where $p$ is a prime and $m$ is a positive integer for which $f(p, m)$ is a factor of $1000$.\n\nWhen $p=2$, we get that if $m \\ge 9$, then $f(2, m) \\ge f(2, 9) = 1021$. So, it is sufficient to consider the cases for $m \\le 8$, and we can conclude that $f(2, 1) = 1$, $f(2, 2) = 5$, $f(2, 6) = 125$ are the only cases which give a factor of $1000$ for $f(2, m)$.\nWhen $3 \\le p \\le 31$, we can similarly check that $f(3, 1) = 4$, $f(3, 3) = 40$, $f(7, 1) = 8$, $f(19, 1) = 20$ are the only cases for this range of primes $p$ for which $f(p, m)$ is a factor of $1000$.\nWhen $p \\ge 32$, we get if $m \\ge 2$ $f(p, m) \\ge f(m, 2) = 1+p+p^2 \\ge 1+32+32^2 > 1000$. So, it is enough to check the cases for $m=1$ only for this range of $p$, and we get $f(199, 1) = 200$, $f(499) = 500$ as the only possibilities for a factor of $1000$.\nFinally, we search for combinations of these values of $f(p, m)$'s which yield the product $1000$, and we find that the desired answer is given by $2^6 \\times 7^1 = 448$ and $2^2 \\times 199^1 = 796$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34579, "subject": "Mathematics (Multi-modal)", "question": "Suppose there are 5 cards, each one of which has a distinct number from the set $\\{2, 3, 4, 5, 6\\}$ written on it. When these cards are placed in line from left to right randomly, what is the probability that for each $i$, $1 \\leq i \\leq 5$ the number written on the card placed on the $i$-th spot from the left is greater than or equal to $i$?", "options": [], "answer": "2/15", "solution": "Let $N_i$ be the number written on the card placed on the $i$-th position from the left. If $N_i \\geq i$ is satisfied for all $i$ ($1 \\leq i \\leq 5$), then $N_5$ has 2 possibilities as it can either be 5 or 6. When $N_5$ is determined, $N_4$ has 2 possibilities as it can be one of the numbers 4, 5, 6 different from $N_5$. Furthermore, when $N_4, N_5$ are determined, $N_3$ can be one of the numbers 3, 4, 5, 6 different from $N_4, N_5$ so there are 2 possibilities for $N_3$. Finally, $N_2 \\geq 2, N_1 \\geq 1$ are always satisfied. Therefore, the probability in question is\n$$\n\\frac{2 \\times 2 \\times 2 \\times 2 \\times 1}{5 \\times 4 \\times 3 \\times 2 \\times 1} = \\frac{2}{15}.\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34580, "subject": "Mathematics (Multi-modal)", "question": "Does there exist a positive integer $n$ satisfying the following condition?\n\nCondition: For an arbitrary rational number $r$, there exist an integer $b$ and nonzero integers $a_1, a_2, \\dots, a_n$ such that\n$$\nr = b + \\frac{1}{a_1} + \\dots + \\frac{1}{a_n}\n$$", "options": [], "answer": "No; there does not exist any positive integer satisfying the condition.", "solution": "We will show that there exists no positive integer $n$ for which the statement of the problem is satisfied. Let us denote by $A_n$ the set of all rational numbers $r$ for which there exist an integer $b$ and nonzero integers $a_1, \\dots, a_n$ such that $r = b + \\sum_{k=1}^{n} \\frac{1}{a_k}$. In order to establish our claim, it suffices to show that for any positive integer $n$ the set $A_n$ does not exhaust the set of all rational numbers. We will show more: in fact there exists a pair $p_n, q_n$ of rational numbers with $p_n < q_n$ such that there exists no member of the set $A_n$ which lies strictly in between $p_n$ and $q_n$. We will show the existence of such a pair recursively.\n\nFor $n = 1$ it suffices to take $p_1 = \\frac{1}{3}$ and $q_1 = \\frac{1}{2}$. Now suppose, we were able to choose for some $n$ a pair $p_n, q_n$ such that $p_n < q_n$ for which there is no element from the set $A_n$ lying strictly between $p_n$ and $q_n$. Set $d = q_n - p_n$, and define $p_{n+1} = p_n + \\frac{d}{3}$ and $q'_{n+1} = q_n - \\frac{d}{3}$. Suppose that there exist an integer $b$ and nonzero integers $a_1, \\dots, a_{n+1}$ for which\n$$\np_{n+1} < b + \\sum_{k=1}^{n+1} \\frac{1}{a_k} < q'_{n+1}\n$$\nholds.\n\nBy the induction hypothesis, we have for each $l \\in \\{1, \\dots, n+1\\}$, either\n$$\np_n \\ge b + \\sum_{k=1, k \\neq l}^{n+1} \\frac{1}{a_k}\n$$\nor\n$$\nb + \\sum_{k=1, k \\neq l}^{n+1} \\frac{1}{a_k} \\ge q_n.\n$$\n\nIf the former holds, then we have $\\frac{1}{a_l} < p_{n+1} - p_n = \\frac{d}{3}$, while if the latter holds, then $\\frac{1}{a_l} < q'_{n+1} - q_n = -\\frac{d}{3}$. In either case, we get $-\\frac{3}{d} < a_l < \\frac{3}{d}$, which implies that for each $l \\in \\{1, \\dots, n+1\\}$, there are only finitely many possible integral values that $a_l$ can take. Furthermore if we fix $(a_1, \\dots, a_{n+1})$, the number of integers $b$ that satisfy the property $p_{n+1} < b + \\sum_{k=1}^{n+1} \\frac{1}{a_k} < q'_{n+1}$ is also finite.\n\nConsequently, we can conclude that there exist at most a finite number of elements of the set $A_{n+1}$ which lie in between $p_{n+1}$ and $q'_{n+1}$. If we define $q_{n+1}$ to be equal to the minimum of such exceptional numbers of $A_{n+1}$ if such exists and equal to $q'_{n+1}$ if there is no such exceptional element, then we can see that $p_{n+1}$ and $q_{n+1}$ will satisfy the statement of our assertion for $n+1$, and therefore, our induction process is complete and our assertion is proved.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34581, "subject": "Mathematics (Multi-modal)", "question": "In a certain fencing competition there were $6$ participants. Each participant had one match each with $5$ other participants. The number of winning matches of the participants turned out to be all different. Assume that there was no draw in all of the matches. How many distinct winner-loser combinations were possible for this competition?", "options": [], "answer": "720", "solution": "By assumption there exists exactly $1$ person who won $j$ matches for $j = 0, 1, 2, 3, 4, 5$, so let $A_j$ be the person who won $j$ matches for each $j$ ($0 \\leq j \\leq 5$). Then we can see that\n\n* $A_5$ won all matches, so, he won over $A_0, A_1, A_2, A_3, A_4$.\n* $A_4$ lost to $A_5$, but won over $A_0, A_1, A_2, A_3$.\n* $A_3$ lost to $A_4, A_5$, but won over $A_0, A_1, A_2$.\n* $A_2$ lost to $A_3, A_4, A_5$, but won over $A_0, A_1$.\n* $A_1$ lost to $A_2, A_3, A_4, A_5$, but won over $A_0$.\n* $A_0$ lost to $A_1, A_2, A_3, A_4, A_5$.\n\nIn this way, we can see that if we can determine who won how many games, then we can tabulate all the win-loss combinations at the tournament. Hence the number of possible combinations is $6! = 720$.", "topic": "Discrete Mathematics", "subtopic": "Combinatorics" }, { "id": 34582, "subject": "Mathematics (Multi-modal)", "question": "Suppose we denote by $n_{(10)}$ the decimal representation for a positive integer $n$. Suppose three distinct positive integers $a, b, c$ satisfy all of the following conditions:\n* $c_{(10)}$ coincides with the number obtained by removing a 6 from $a_{(10)}$.\n* $c_{(10)}$ coincides with the number obtained by removing a 6 from $b_{(10)}$.\n* The number of digits for $a$ coincides with the number of digits for $b$, and $a$ is a multiple of $b$.\nDetermine the smallest possible value that $c$ can have satisfying these conditions.", "options": [], "answer": "15384", "solution": "We note that under the hypothesis the top digits of $a_{(10)}$ and $b_{(10)}$ must be different, since if they are the same, then we get $\\frac{a}{b} < 2$ which violates the condition that $a$ is a multiple of $b$. Therefore, we must have the top digit of $a_{(10)}$ or $b_{(10)}$ to be 6, but if the top digit of $b_{(10)}$ is 6, then the fact that $a \\ge 2b$ forces $a$ to have more digits than $b$, contradicting the assumption. Therefore, the top digit of $a_{(10)}$ must be 6. Furthermore, since the number of digits of $a$ and $b$ are the same, $\\frac{a}{b}$ must be one of the numbers 2, 3, 4, 5, 6. Let us call this number $m$.\n\nNext, we will show that if $c$ is the minimum number satisfying the conditions, then the 6 to be removed from $b_{(10)}$ to get $c_{(10)}$ must be one of the last three digits of $b_{(10)}$. First we note that the minimality of $c$ implies that $b$ cannot be a multiple of 10. For if the last digit of $b$ is 0, this forces the last digit of both $a_{(10)}$ and $c_{(10)}$ to be 0, and thus dividing every one of $a, b, c$ by 10, we get a triple satisfying all the conditions, thereby violating the minimality of $c$. Now if the 6 to be removed from $b_{(10)}$ to get $c_{(10)}$ is not among the last three digits of $b$, then we must have $a \\equiv b \\pmod{1000}$. But from the fact $a = mb$ it follows that $(m-1)b \\equiv 0 \\pmod{1000}$, from which it follows that $b$ is a multiple of 10, as $m-1 \\in \\{1, 2, 3, 4, 5\\}$, but this is impossible.\n\nNext, we separate the cases depending on which digit the 6 to be removed from $b_{(10)}$ lies. We keep in mind that $b$ is not a multiple of 10 in the following discussion.\n\n(1) Case when 6 to be removed is the last digit of $b$.\nSince $a \\equiv mb \\pmod{10}$ the fact that $b \\equiv 6 \\pmod{10}$ determines the last digit of $a_{(10)}$, which would be equal to the next to the last digit of $b_{(10)}$. The consideration in terms of $\\mod 100$, then determines the next to the last digit of $a_{(10)}$, which equals the third digit from the bottom of $b_{(10)}$. Continuing in this fashion, one can determine the digits of $a_{(10)}$ one by one from the bottom up. If the $n$-th digit from the bottom of $a_{(10)}$ equals 6, then we let $a, b$ be what are determined thus far. If this pair satisfies $a \\equiv mb \\pmod{10^n}$, then with $c_{(10)}$ determined from $b_{(10)}$ by removing the 6 in the last digit of $b_{(10)}$, we have the triple $(a, b, c)$ satisfying all the conditions. If the value of $m$ is given, then the $c$ obtained in this way will be the minimum one under the condition (1).\nChecking for each of the cases $m = 2, 3, 4, 5, 6$ we see that with $m = 4$, we get $a = 615383$, $b = 153846$ and the corresponding $c = 15384$ gives the minimum.\n\n(2) Case when 6 to be removed is next to the last digit of $b$.\nFrom $a \\equiv mb \\pmod{10}$ and $a \\equiv b \\pmod{10}$ we can determine the last digit of $a, b$ to be 2, 4, 6 or 8 if $m = 6$, and be 5 if $m = 3$ or 5. If we check each of these possibilities as we have done in the case (1), we see that in each case the $c$ obtained has at least 6 digits.\n\n(3) Case when 6 to be removed is the third digit from the bottom of $b$.\nFrom $a \\equiv mb \\pmod{100}$ and $a \\equiv b \\pmod{100}$ we can get that the last two digits of $a, b$ are 25 and 75 respectively. If we check these cases further as we have done in the case (1), we see that in each case we get a $c$ having at least 6 digits.\n\nConsequently, we can conclude that the smallest possible $c$ desired is 15348.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34583, "subject": "Mathematics (Multi-modal)", "question": "How many 3-digit numbers are there that can appear as the top three digits of a 6-digit number, which is a perfect square?", "options": [], "answer": "650", "solution": "Since $(n+1)^2 - n^2 = 2n + 1$ holds for any positive integer $n$, the difference of any contiguous pair of perfect squares, larger of which is no more than $500^2 = 250000$, does not exceed $2 \\cdot 499 + 1 = 999$. From this fact it follows that for any positive integer $m$ satisfying $100 \\le m < 250$, there exists a perfect square of 6 digits whose top 3 digits coincide with $m$. For if there is no such perfect square for some such $m$, then the smallest perfect square greater than or equal to $100(m+1)$ and the largest perfect square less than or equal to $1000m$ will constitute a contiguous pair of perfect squares less than or equal to $500^2$ and with difference more than $1000$.\n\nOn the other hand, the difference of any contiguous pair of perfect squares, the smaller of which is greater than or equal to $500^2$, is at least $2 \\cdot 500 + 1 = 1001$, the top 3 digits of $500^2, 501^2, \\dots, 999^2$ are all distinct.\n\nConsequently, the numbers that can appear as the top 3 digits of a 6-digit perfect square are every $m$ satisfying $100 \\le m < 250$ and the top 3 digits of the numbers $500^2, 501^2, \\dots, 999^2$, and there are exactly $150 + 500 = 650$ such numbers.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34584, "subject": "Mathematics (Multi-modal)", "question": "How many triplets of positive integers $(a, b, c)$ are there which satisfy the property that the least common multiple of $a, b, c$ is $720$? If three numbers are ordered differently resulting with different configuration, regard the resulting triplets distinct.", "options": [], "answer": "8113", "solution": "The prime factorization of $720$ is given by $2^4 \\times 3^2 \\times 5^1$. Therefore, none of $a, b, c$ has prime factors other than $2$, $3$, $5$, so we can write\n$$\na = 2^{p_1}3^{q_1}5^{r_1}, \\quad b = 2^{p_2}3^{q_2}5^{r_2}, \\quad c = 2^{p_3}3^{q_3}5^{r_3}.\n$$\nwhere, for each $i$, $p_i, q_i, r_i$ are nonnegative integers. The fact that the least common multiple of $a, b, c$ is $720 = 2^4 \\times 3^2 \\times 5^1$ is equivalent to the validity of all of the following three conditions:\n\n(1) The largest number among $p_1, p_2, p_3$ is $4$.\n\n(2) The largest number among $q_1, q_2, q_3$ is $2$.\n\n(3) The largest number among $r_1, r_2, r_3$ is $1$.\n\nLet us find the number of the triplets $(p_1, p_2, p_3)$ which satisfy the requirement (1). (We distinguish triplets obtained from the same $3$ numbers by changing their order in the arrangement). There are $5^3 = 125$ triplets $(p_1, p_2, p_3)$ for which every $p_i$ ($i = 1, 2, 3$) satisfies $0 \\le p_i \\le 4$, and $4^3 = 64$ triplets for which $0 \\le p_i \\le 3$ for each $i$. The number of those triplets $(p_1, p_2, p_3)$ satisfying the condition (1) is given by the difference of these two numbers, and thus it is $125 - 64 = 61$.\n\nSimilarly, the number of triplets $(q_1, q_2, q_3)$ satisfying the condition (2) is $3^3 - 2^3 = 19$ and the number of triplets $(r_1, r_2, r_3)$ satisfying (3) is $2^3 - 1^3 = 7$.\n\nTherefore, the number of triplets $(a, b, c)$ satisfying the condition of the problem is $61 \\times 19 \\times 7 = 8113$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34585, "subject": "Mathematics (Multi-modal)", "question": "8 coins are placed on a line from left to right.\nIn the sequel, we keep on repeating the following action:\nChoose at random a coin showing a head and satisfying the following condition:\nCondition: Either there is no coin on its right showing a tail, or there is no coin on its left showing a tail.\nSuppose we keep on repeating this action until there remains no coin showing a head and satisfying the condition stated above. Determine the expectation of the number of coins showing a head when the actions end.", "options": [], "answer": "621/140", "solution": "It is clear that the conclusion would be the same if we follow the following procedure instead of the procedure specified in the statement of the problem:\nFirst we assign one of the numbers $1, 2, \\ldots, 8$ to the coins already lined up in a random way (so that each of $8!$ ways of assigning the numbers has the same probability.) Then we start with the coin with number $1$ assigned to check whether it satisfies the condition of the problem. If it does, turn the coin to show the tails; if not, then leave the coin as it is. Then we do the same with the coin with number $2$ assigned, and keep on doing the same with all the coins in the increasing order of the numbers assigned. Now, consider the probability that the coin placed on the $k$-th spot from the right will be turned to show tails. The desired expectation will be the sum over $k$ of the corresponding probabilities.\n\nWhen the time comes for the coin placed on the $k$-th spot from the right to be examined, the event that there is no coin to the right of it which shows the tails corresponds precisely to the event that the number assigned to it is less than each of the numbers assigned to the coins placed on its right. The probability of the latter event is the same as the probability that the number assigned to a coin chosen at random from randomly chosen $k$ coins to be the smallest of the numbers assigned to the initially chosen $k$ coins, and this probability is obviously $\\frac{1}{k}$.\n\nSince the coin placed at the $k$-th spot from the right is placed at the $9-k$-th spot from the left, a similar argument as above shows that the probability that there is no coin showing tails placed to the left of this coin is $\\frac{1}{9-k}$.\n\nFinally, the event that there is no coin either to the left or to the right of this coin showing tails is the same as the event that the number assigned to this coin is the smallest number $1$, and hence this probability is $\\frac{1}{8}$.\n\nThus the probability that this coin will be turned to show the tails is $\\frac{1}{k} + \\frac{1}{9-k} - \\frac{1}{8}$, and the desired value of the expectation is\n\n$$\n\\sum_{k=1}^{8} \\left( \\frac{1}{k} + \\frac{1}{9-k} - \\frac{1}{8} \\right) = 2 \\times \\left( 1 + \\frac{1}{2} + \\frac{1}{3} + \\dots + \\frac{1}{8} \\right) - 1 = \\frac{621}{140}\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34586, "subject": "Mathematics (Multi-modal)", "question": "In some junior high school, a group of students are asked to plant tulip bulbs. Each participating student will be required to plant at least one bulb. And students in the same grade will be planting the same number of bulbs. There are 6 possibilities for the number less than 100 of bulbs to be planted, and the smallest and the next smallest of these numbers are 52 and 64. What are the possible combinations for the numbers of 7th, 8th and 9th graders among the participating students.", "options": [], "answer": "(12, 12, 28)", "solution": "Since the smallest and the next to smallest possible numbers of the bulbs to be planted are $52$ and $64$, and since each participating student is asked to plant at least $1$ bulb, the total number of participating students should be $52$, and the number of students in the grade with the smallest number of participating student is $12$. Let us denote by $$ the total number of the bulbs to be planted if each 7th grader plants $a$ bulbs, 8th grader $b$ bulbs and 9th grader $c$ bulbs. Then we can check that the total number of bulbs to be planted will be less than $100$ only in the cases resulting in $<1, 1, 1>$, $<1, 1, 2>$, $<1, 2, 1>$, $<1, 2, 2>$, $<2, 1, 1>$, $<2, 1, 2>$, $<2, 2, 1>$. Since there are only $6$ possibilities for the total number of bulbs to be planted, distribution of the number of students in different grades should be such that among these $7$ numbers there be a pair which should be equal and others are all distinct. Taking into account that the total number of students is $52$ and the number of students in the grade with the smallest number of participating students is $12$, we can conclude that the possible student distributions among different grades must be such that either the number of students in one grade is equal to the number of students in one other grade, or the number of students in one grade is equal to the sum of the numbers of students in two other grades, and this forces the possibility for the distribution of students among different grades to be one of the following three cases: $(12, 12, 28)$, $(12, 20, 20)$, $(12, 14, 26)$. Among these three, we can check there is only one case $(12, 12, 28)$ for which there are exactly $6$ possible numbers of bulbs under $100$ to be planted.\n\nAlternatively,\nsuppose we denote by $A$, $B$, $C$ the number of participating students in different grades. We may assume without loss of generality that $A \\le B \\le C$. Then, from the fact that $52 = A + B + C$, $64 = 2A + B + C$, we obtain $A = 12$, $B + C = 40$. Since $A \\le B \\le C$, we also have $12 \\le B \\le 20$. Let us denote by $$ the total number of bulbs planted if each student in the grade with $A$, $B$, $C$ students plants $a$, $b$, $c$ bulbs, respectively. Now, if the condition $13 \\le B \\le 20$ is satisfied, there are $7$ distinct numbers $<1, 1, 1>$, $<2, 1, 1>$, $<3, 1, 1>$, $<4, 1, 1>$, $<1, 2, 1>$, $<2, 1, 1>$, $<3, 2, 1>$, which are all less than $100$. On the other hand, we can check that the case for $B = 12$ yields exactly $6$ distinct possibilities for the total number of bulbs to be planted. Therefore, $(12, 12, 28)$ is the only possible distribution of students among different grades.", "topic": "Discrete Mathematics", "subtopic": "Combinatorics" }, { "id": 34587, "subject": "Mathematics (Multi-modal)", "question": "Suppose $2008$ real numbers $x_1, x_2, \\dots, x_{2008}$ are given and suppose that $|x_1| = 999$ and $|x_n| = |x_{n-1} + 1|$ for all $n$ with $2 \\le n \\le 2008$ are satisfied. Determine the smallest possible value that $x_1 + x_2 + \\dots + x_{2008}$ can have under these conditions.", "options": [], "answer": "-500004", "solution": "Let $S = x_1 + x_2 + \\dots + x_{2008}$. Since $x_1^2 = |x_1|^2 = 999^2$, and $x_n^2 = |x_{n-1} + 1|^2 = (x_{n-1} + 1)^2$ for $2 \\le n \\le 2008$, we have\n$$\n\\begin{aligned}\nx_1^2 + x_2^2 + \\dots + x_{2008}^2 &= 999^2 + (x_1 + 1)^2 + \\dots + (x_{2007} + 1)^2 \\\\\n&= (x_1^2 + \\dots + x_{2007}^2) + 2(x_1 + \\dots + x_{2007}) + 2007 + 999^2 \\\\\n&= (x_1^2 + \\dots + x_{2007}^2) + 2(S - x_{2008}) + 1000008,\n\\end{aligned}\n$$\nfrom which we obtain\n$$\n2S = x_{2008}^2 + 2x_{2008} - 1000008 = (x_{2008} + 1)^2 - 1000009.\n$$\nBecause $|x_n| = |x_{n-1} + 1|$ is satisfied, the even-odd parity of $x_n$ is different from that of $x_{n-1}$, namely, the even-odd parity of $x_n$ changes as $n$ increases by $1$. As $x_1$ is an odd number, $x_{2008}$ is even, and hence, $(x_{2008} + 1)^2 \\ge 1$. Consequently, we have $S \\ge \\frac{1-1000009}{2} = -500004$.\nOn the other hand, if we set\n$$\nx_n = n - 1000 \\quad (1 \\le n \\le 1000); \\quad = -1 \\quad (1001 \\le n \\le 2008, \\text{ and $n$ is odd}); \\\\\n= 0 \\quad (1001 \\le n \\le 2008, \\text{ and $n$ is even.})\n$$\nthen this choice of $x_1, \\dots, x_{2008}$ satisfies the conditions of the problem, and since $x_{2008} = 0$ for this choice, we get $S = -500004$. Therefore, the minimum value that $S = x_1 + \\dots + x_{2008}$ can take is $-500004$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34588, "subject": "Mathematics (Multi-modal)", "question": "(1) Find the value of $S(30)$ (you don't need to give a proof.)\n\n(2) Determine all $n$ for which $S(n)$ is a prime.\n\nHere, by a prime we mean an integer greater than or equal to 2, which has no factor other than 1 and itself.\n\nFor a positive integer $n$. Let $S(n)$ be the sum of all those integers $k$, $1 \\le k \\le n$, which are relatively prime to $n$ (i.e., the largest common divisor of $k$ and $n$ is 1.)", "options": [], "answer": "S(30) = 120; and the only n with S(n) prime is n = 3.", "solution": "(1): Since $30 = 2 \\times 3 \\times 5$, a positive integer relatively prime to $30$ is not a multiple of $2$, $3$, or $5$. Hence integers lying in between $1$ and $30$ and relatively prime to $30$ are $1, 7, 11, 13, 17, 19, 23, 29$. Therefore,\n$$\nS(30) = 1 + 7 + 11 + 13 + 17 + 19 + 23 + 29 = 120\n$$\n\n(2): First of all, we have $S(1) = 1$, and since $1$ is not a prime, we consider the case for $n \\ge 2$.\nSuppose that an integer $k$ satisfying $1 \\le k \\le n$ is relatively prime to $n$. Then, $k < n$ and we also have $1 \\le n-k < n$. If we let $d$ be the greatest common divisor of $n$ and $n-k$, then $d$ divides both $n$ and $k-n$. $(n-k)$, and therefore, $d=1$, since $k$ and $n$ are relatively prime by assumption. Thus $n-k$ lies in between $1$ and $n$ and is relatively prime to $n$. Therefore, integers lying in between $1$ and $n$ and relatively prime to $n$ appear in pairs whose sum equals $n$. (For the case of $n=30$, for instance, they appear in pairs \\{$(1, 29)$, $(7, 23)$, $(11, 19)$, $(13, 17)$\\}.) Consequently, we can conclude that $S(n)$ must be a multiple of $n$.\nIf we suppose that $S(n) = p$, where $p$ is a prime, then since $n$ must be a divisor of $p$ and $n \\ge 2$, $n$ must equal $p$. But, then since $p$ is a prime, every integer $k$ satisfying $1 \\le k \\le p-1$ is relatively prime to $p$, and therefore, we have $S(p) = 1+2+\\cdots+(p-1) = \\frac{p(p-1)}{2}$ and thus $\\frac{p(p-1)}{2} = p$, which yields that $p=3$.\nThus we conclude that $n=3$ is the only positive integer for which $S(n)$ is a prime.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34589, "subject": "Mathematics (Multi-modal)", "question": "In the diagram given below, the triangles $\\triangle OAB$, $\\triangle OBC$, $\\triangle OCD$ are isosceles right triangles with $\\angle OAB$, $\\angle OBC$, $\\angle OCD$ being the right angle, respectively. Find the area of the triangle $\\triangle OAB$ if the area of the triangle $\\triangle OCD$ is 12.\n\n![](attached_image_1.png)", "options": [], "answer": "3", "solution": "Since the length of the hypotenuse of an isosceles right triangle is $\\sqrt{2}$ times the length of each of the other sides, by letting $OA = x$ we have $OB = \\sqrt{2}x$, $OC = \\sqrt{2} \\cdot \\sqrt{2}x = 2x$. Then the ratio of the area of the triangle $\\triangle OAB$ to that of the triangle $\\triangle OCD$ is given by $\\frac{x^2}{2} : \\frac{(2x)^2}{2} = 1 : 4$. Thus we conclude that the area of the triangle $\\triangle OAB$ is $\\frac{12}{4} = 3$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34590, "subject": "Mathematics (Multi-modal)", "question": "Determine the number which can be represented in the form $n^2 + 4n$ for some positive integer $n$ and for which the absolute value of its difference from the number $10000$ is the smallest.", "options": [], "answer": "9996", "solution": "[9996]\n\nNote that $n^2 + 4n = (n + 2)^2 - 4$ and that if $m < n$, then $m^2 + 4m < n^2 + 4n$.\n\nSince $100^2 = 10000$, we see that the desired solution is either $100^2 - 4 = 9996$ or $101^2 - 4 = 10197$, whichever has the smaller difference (in absolute value) from $10000$. So, the answer is $9996$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34591, "subject": "Mathematics (Multi-modal)", "question": "Determine all positive integers $n$ for which $8^n + n$ is divisible by $2^n + n$.", "options": [], "answer": "1, 2, 4, 6", "solution": "To begin with, we transform $8^n + n$ into the following expression:\n$$\n8^n + n = (2n)^3 + n = (2^n + n)((2^n)^2 - n \\cdot 2^n + n^2) - (n^3 - n).\n$$\nSince $(2^n)^2 - n \\cdot 2^n + n^2$ is an integer, from the expression above it follows that the statement $8^n + n$ is divisible by $2^n + n$ is equivalent to the statement $n^3 - n$ is divisible by $2^n + n$.\nIf $n=1$, then $n^3 - n = 0$, so $8^n + n$ is divisible by $2^n + n$ in this case. If $n \\ge 2$, $n^3 - n > 0$, so we must have $n^3 - n \\ge 2^n + n$; in particular, it is necessary that $n^3 > 2^n$. Let us, therefore, set $f(n) = \\frac{n^3}{2^n}$. Then, if $n \\ge 4$ we have\n$$\n\\frac{f(n+1)}{f(n)} = \\frac{1}{2} \\cdot \\left(\\frac{n+1}{n}\\right)^3 = \\frac{1}{2} \\cdot \\left(1 + \\frac{1}{n}\\right)^3 \\le \\frac{1}{2} \\cdot \\left(1 + \\frac{1}{4}\\right)^3 = \\frac{125}{128} < 1.\n$$\nTherefore, we get $f(4) > f(5) > \\dots$. Since $f(10) = \\frac{1000}{1024} < 1$, we see that if $n \\ge 10$, then $f(n) < 1$, i.e., $n^3 < 2^n$.\nThus, we see that it is enough to check that for which $n$ satisfying $2 \\le n < 10$, $n^3 - n$ is divisible by $2^n + n$. For, $n = 2, 3, 4, 5, 6, 7, 8, 9$ we get\n$$\n(n^3 - n, 2^n + n) = (6, 6), (24, 11), (60, 20), (120, 37), (210, 70) \\\\\n(336, 135), (504, 264), (720, 521),\n$$\nand we conclude that $n^3 - n$ is divisible by $2^n + n$, when $n = 2, 4, 6$. Together with $n = 1$, we get that the desired solution is $n = 1, 2, 4, 6$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34592, "subject": "Mathematics (Multi-modal)", "question": "Compute the value of\n$$\n\\frac{\\sum_{n=1}^{99} (\\sqrt{10 + \\sqrt{n}})}{\\sum_{n=1}^{99} (\\sqrt{10 - \\sqrt{n}})}\n$$", "options": [], "answer": "1 + sqrt(2)", "solution": "$[1 + \\sqrt{2}]$\nLet us denote by *S* and *T* the numerator and the denominator, respectively of the fraction to be computed. Namely,\n$$\nS = \\sum_{n=1}^{99} (\\sqrt{10 + \\sqrt{n}}), \\quad T = \\sum_{n=1}^{99} (\\sqrt{10 - \\sqrt{n}}).\n$$\nFirst, we note that for a pair of positive real numbers *a*, *b*, we have\n$$\n\\sqrt{a+b+2\\sqrt{ab}} = \\sqrt{a} + \\sqrt{b}.\n$$\nIn particular, if we choose, for each fixed $n$ such that $1 \\le n \\le 99$, $a$ and $b$ in such a way that $a+b=20$ and $ab=n$ are satisfied, then we get\n$$\n\\sqrt{20 + 2\\sqrt{n}} = \\sqrt{10 + \\sqrt{100-n}} + \\sqrt{10 - \\sqrt{100-n}}\n$$\nTherefore, we obtain\n$$\n\\begin{aligned} \\sqrt{2}S &= \\sum_{n=1}^{99} \\sqrt{20 + 2\\sqrt{n}} = \\sum_{n=1}^{99} \\left( \\sqrt{10 + \\sqrt{100-n}} + \\sqrt{10 - \\sqrt{100-n}} \\right) \\\\ &= \\sum_{n=1}^{99} \\left( \\sqrt{10 + \\sqrt{n}} + \\sqrt{10 - \\sqrt{n}} \\right) = S + T, \\end{aligned}\n$$\nwhich yields $(\\sqrt{2} - 1)S = T$, and therefore, we get $\\frac{S}{T} = \\frac{1}{\\sqrt{2}-1} = 1 + \\sqrt{2}$. as the desired solution to the problem.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34593, "subject": "Mathematics (Multi-modal)", "question": "Suppose that 6 real numbers $a, b, c, d, e, f$ satisfy the following equations:\n$$\n\\begin{aligned}\n& (a + 1999)(b - 1999)(c + 1999) + (d - 1999)(e + 1999)(f - 1999) = 1, \\\\\n& (a + 2000)(b - 2000)(c + 2000) + (d - 2000)(e + 2000)(f - 2000) = 10, \\\\\n& (a + 2001)(b - 2001)(c + 2001) + (d - 2001)(e + 2001)(f - 2001) = 100.\n\\end{aligned}\n$$\nDetermine the value of the following quantity:\n$$\n(a + 2009)(b - 2009)(c + 2009) + (d - 2009)(e + 2009)(f - 2009).\n$$", "options": [], "answer": "3736", "solution": "Let\n$A = a+2000$, $B = b-2000$, $C = c+2000$, $D = d-2000$, $E = e+2000$, $F = f-2000$,\nand\n$$\nP(x) = (A + x)(B - x)(C + x) + (D - x)(E + x)(F - x).\n$$\n$P(x)$ is a polynomial in $x$, and the left-hand side of the 3 equations given for the problem equals $P(-1)$, $P(0)$ and $P(1)$, respectively. The problem is asking to find the value $P(9)$.\n\nSince we have\n$$\n\\begin{aligned}\n(A + x)(B - x)(C + x) &= -x^3 + \\text{(terms with degree 2 or less)}, \\\\\n(D - x)(E + x)(F - x) &= x^3 + \\text{(terms with degree 2 or less)},\n\\end{aligned}\n$$\nwe can represent $P(x)$ in the form $P(x) = px^2 + qx + r$, with some real coefficients $p, q, r$. From the fact that we have $P(-1) = 1$, $P(0) = 10$ and $P(1) = 100$ we obtain\n$$\np - q + r = 1, \\quad r = 10, \\quad p + q + r = 100.\n$$\nWe can solve this simultaneous equations to get $(p, q, r) = (81/2, 99/2, 10)$, and conclude that\n$$\nP(x) = \\frac{81}{2}x^2 + \\frac{99}{2}x + 10.\n$$\nSubstituting $9$ for $x$, we get\n$$\nP(9) = \\frac{81}{2} \\cdot 81 + \\frac{99}{2} \\cdot 9 + 10 = 3736\n$$\nfor the answer.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34594, "subject": "Mathematics (Multi-modal)", "question": "For a real number $r$, let $[r]$ represent the largest integer less than or equal to $r$. Determine the sum of all real numbers $x$ which satisfy the equation\n$$\n[x] + [2x] + [3x] + [4x] + [5x] + [6x] + [7x] + [8x] + [9x] = 44x.\n$$", "options": [], "answer": "379/2", "solution": "$\\left[\\frac{379}{2}\\right]$.\nThe left-hand side of the given equation represents an integer. So, the right-hand side must also be an integer and thus we can write $x = \\frac{n}{44}$, for some integer $n$. We then have $n = 44m + r$, where $m, r$ are integers and $0 \\le r \\le 43$. Therefore, the given equation can be transformed as\n$$\n\\begin{aligned}\n\\sum_{k=1}^{9} \\left[ k \\left( m + \\frac{r}{44} \\right) \\right] &= 44m + r \\\\\n\\iff \\sum_{k=1}^{9} km + \\sum_{k=1}^{9} \\left[ \\frac{kr}{44} \\right] = 44m + r \\\\\n\\iff m &= r - \\sum_{k=1}^{9} \\left[ \\frac{kr}{44} \\right].\n\\end{aligned}\n$$\nFrom the transformed equation above, it is clear that if we fix $r$, then a corresponding $m$ can be determined uniquely. Therefore, there are 44 real solutions $x$ of the given equation since there are 44 possible values $r$ can take. Let us denote by $S$ the sum of these 44 solutions $x$, and write $m_r$ for the value of $m$ corresponding to $r$. Then we have\n$$\n\\begin{aligned}\n44S &= \\sum_{r=0}^{43} (44m_r + r) = \\sum_{r=0}^{43} \\left( 44 \\left( r - \\sum_{k=1}^{9} \\left[ \\frac{kr}{44} \\right] \\right) + r \\right) \\\\\n&= \\sum_{r=0}^{43} 45r - 44 \\sum_{r=0}^{43} \\sum_{k=1}^{9} \\left[ \\frac{kr}{44} \\right] \\\\\n&= 45 \\cdot \\frac{43 \\cdot 44}{2} - 44 \\sum_{r=0}^{43} \\sum_{k=1}^{9} \\left[ \\frac{kr}{44} \\right],\n\\end{aligned}\n$$\nfrom which it follows that\n$$\nS = \\frac{45 \\cdot 43}{2} - \\sum_{r=0}^{43} \\sum_{k=1}^{9} \\left[ \\frac{kr}{44} \\right] = \\frac{1935}{2} - \\sum_{r=0}^{43} \\sum_{k=1}^{9} \\left[ \\frac{kr}{44} \\right].\n$$\nNow we let $T$ be given by\n$$\nT = \\sum_{r=0}^{43} \\sum_{k=1}^{9} \\left[ \\frac{kr}{44} \\right] = \\sum_{r=1}^{43} \\sum_{k=1}^{9} \\left[ \\frac{kr}{44} \\right] = \\sum_{k=1}^{9} \\sum_{r=1}^{43} \\left[ \\frac{kr}{44} \\right],\n$$\nthen we have\n$$\n\\begin{align*}\n2T &= \\sum_{k=1}^{9} \\sum_{r=1}^{43} \\left( \\left[ \\frac{kr}{44} \\right] + \\left[ \\frac{k(44 - r)}{44} \\right] \\right) \\\\\n&= \\sum_{k=1}^{9} \\sum_{r=1}^{43} \\left( \\left[ \\frac{kr}{44} \\right] + \\left[ k - \\frac{kr}{44} \\right] \\right)\n\\end{align*}\n$$\nand\n$$\n\\left[ \\frac{kr}{44} \\right] + \\left[ k - \\frac{kr}{44} \\right] \\equiv \\begin{cases} k, & \\frac{kr}{44} \\text{ is an integer} \\\\ k-1, & \\frac{kr}{44} \\text{ is not an integer} \\end{cases}\n$$\nWhen $k$ and $r$ vary over $1 \\le k \\le 9$, $1 \\le r \\le 43$, respectively, the quantity $\\frac{kr}{44}$ takes an integer-value only when the pair $(k,r)$ is one of the following 8 pairs: (4, 11), (8, 11), (2, 22), (4, 22), (6, 22), (8, 22), (4, 33), (8, 33). Therefore, we have\n$$\n\\begin{align*}\n2T - 8 &= \\sum_{k=1}^{9} \\sum_{r=1}^{43} (k - 1) \\\\\n&= \\sum_{k=1}^{9} 43(k - 1) \\\\\n&= 43 \\cdot \\frac{9 \\cdot 8}{2} = 1548.\n\\end{align*}\n$$\nFrom this it follows that $T = \\frac{1548+8}{2} = 778$, and we finally obtain that $S = 1935/2 - 778 = 379/2$ as the desired answer.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34595, "subject": "Mathematics (Multi-modal)", "question": "On each of 9 balls a distinct number chosen from 1 through 9 is marked. How many distinct ways of choosing some balls from this collection of 9 balls are there if the choice has to satisfy the following condition? Selecting no ball from the collection should be considered as 1 possibility.\n**Condition:** By selecting suitably some balls from the chosen balls and putting them into a red box, and putting the remaining chosen balls into a blue box, we can make the difference of the numbers marked on any pair of balls in the same colored box to be 2 or less.", "options": [], "answer": "256", "solution": "If no balls are selected, the condition is satisfied by agreement.\n\nIn all other cases, let us denote by $M$ and $m$ the maximum and the minimum number, respectively, among the numbers marked on the selected balls. When $M - m$ is fixed, there are exactly $9 - (M - m)$ ways of choosing the pair $(m, M)$.\n\nFor each pair $(m, M)$ let us determine the number of possible ways of choosing balls to satisfy the given condition.\n\nCase (i): $M - m = 0$.\nIn this case, just 1 ball was selected and the condition is satisfied.\n\nCase (ii): $1 \\le M - m \\le 5$.\nIn this case, put the ball with the number $m$ into the red box, and if there are balls numbered $m + 1, m + 2$ among the selected balls, put these also in the red box, and put the remaining selected balls into the blue box. Then, by the method of distribution it is clear that the difference of any pair of numbers on the balls in the red box does not exceed 2, and since all the balls put into the blue box have numbers greater than or equal to $m + 3$ and less than or equal to $M$ and since $M - (m + 3) \\le 2$, the difference of any pair of numbers on the balls in the blue box also does not exceed 2. Thus, in Case (ii), any method of selecting the balls satisfies the condition, and thus the number of ways to select balls to satisfy the condition coincides with the number of ways of choosing some (may be none) balls from the group of balls numbered $\\{m + 1, m + 2, \\dots, M - 1\\}$, and this number is $2^{M-m-1}$.\n\nCase (iii): $M - m \\ge 6$.\nIf all of the numbers on the selected balls belong to the set $\\{m, m+1, m+2, M-2, M-1, M\\}$, then put those balls with numbers $m$, or $m+1$ or $m+2$ into the red box and put all other selected balls into the blue box. Then it is easy to check that the distribution of the balls in the 2 boxes satisfies the requirement. If on the other hand, for some number $x$ different from any number in the set $\\{m, m+1, m+2, M-2, M-1, M\\}$, the ball with that number $x$ is among the selected balls, then at least 2 among the balls numbered $m, x$, $M$ have to be put into the same box, no matter how the distribution of the selected balls into the 2 boxes is carried out. But since each of the numbers $x - m, M - x, M - m$ is $\\ge 3$, there is no way of distributing selected balls into the 2 boxes to satisfy the requirement. So, in Case (iii) the number of ways of selecting balls to satisfy the requirement coincides with the number of choosing some (may be none) balls from those numbered $\\{m+1, m+2, M-2, M-1\\}$ and this number is $2^4$.\n\nTherefore, the total number of ways to select balls to satisfy the condition is:\n$$\n1+9 \\times 1+8 \\times 2^{0}+7 \\times 2^{1}+6 \\times 2^{2}+5 \\times 2^{3}+4 \\times 2^{4}+3 \\times 2^{4}+2 \\times 2^{4}+1 \\times 2^{4}=256.\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34596, "subject": "Mathematics (Multi-modal)", "question": "A plane lying in the 3-dimensional space splits the space into 2 parts. We call one such part (excluding the plane) a **half space**. Let $S$ be a set consisting of 10 points in the space, no 4 among them lying on a same plane. Determine the number of subsets of $S$ which can be obtained as an intersection of $S$ with some half space.", "options": [], "answer": "260", "solution": "[260].\nFirst, let us explain some terminologies used in the sequel.\nFor sets $A$ and $B$, we denote by $A \\setminus B$ the set of those elements in $A$ not in $B$.\nFor a finite set $A$, we denote by $|A|$ the number of elements in $A$. For a mapping $F: A \\to B$ and for $b \\in B$, we denote by $F^{-1}(b)$ the set $\\{a \\in A \\mid F(a) = b\\}$. We call a mapping $F: A \\to B$ surjective if for every $b \\in B$ the set $F^{-1}(b)$ is not empty.\n\nIn order to give the answer to the problem, we prove a couple of lemmas.\n\n**Lemma 1**\nA plane is partitioned into 2 parts by a straight line on it. One of the parts (excluding the line itself) is called a half-plane. Let $S$ be a subset of a plane consisting of $n$ points, no 3 among them lie on a same straight line. Then the number of subsets of $S$ which can be obtained as an intersection of $S$ with some half-plane is $n^2 - n + 2$.\n\n**Proof:**\nFix an $xy$-coordinate system in the plane. Then we claim that a subset $T$ of the set $S$ satisfies the condition of Lemma 1 if and only if the following condition is satisfied:\nThere exists a linear function $f(x, y)$ of 2 variables $x, y$ such that\n$$\n\\begin{cases}\nf(P) > 0, & P \\in T \\\\\nf(P) < 0, & P \\in S \\setminus T\n\\end{cases}\n$$\nHere, we mean by $f(P)$ the value $f(x, y)$, where $(x, y)$ are the coordinates of the point $P$. If $f$ satisfies the property stated above, we will say that $f(x, y)$ cuts off $T$ from $S$.\n\nLet us prove the claim made above by induction on the number $n$ of points of $S$. Clearly, the claim holds if $n = 1$. So, suppose the claim is valid for $k \\le n - 1$ and show that it holds for $n$. Let us represent $S$ as $\\{P_1, P_2, \\dots, P_n\\}$. Denote by $X(S)$ the set of all those subsets $T$ of $S$ which satisfy the condition of Lemma 1. Define $S'$ to be the set $S \\setminus \\{P_n\\}$, and define $X(S')$ in the same way. Define a mapping $F: X(S) \\to X(S')$ by setting $F(T) = T \\cap S'$ for $T \\in X(S)$. It is easy to see that $F^{-1}(T') \\subset \\{T, T \\cup \\{P_n\\}\\}$ holds for any $T \\in X(S')$.\n\nLet $T \\in X(S')$ and let $f(x, y)$ be a linear function which cuts off $T$ from $S'$. If $f(P_n) \\ge 0$, then for any sufficiently small $\\epsilon > 0$, the linear function $f(x, y) + \\epsilon$ cuts off $T \\cup \\{P_n\\}$ from $S$. Therefore, $T \\cup \\{P_n\\} \\in X(S)$, while if $f(P_n) \\le 0$, the function $f(x, y) - \\epsilon$ for sufficiently small $\\epsilon > 0$ will cut off $T'$ from $S$ so that $T \\in X(S)$. Therefore, we can conclude that the mapping $F$ defined above is surjective, and for every $T \\in X(S')$ we have that $|F^{-1}(T')|$ equals either 1 or 2.\n\nWe now prove the following:\n\n**Lemma 2.** For $T \\in X(S')$, the following 2 conditions are mutually equivalent:\n(1) There exists a linear function $f(x, y)$ which cuts off $T$ from $S'$ and for which $f(P_n) = 0$.\n(2) $|F^{-1}(T)| = 2$.\n\n**Proof:** It follows from what we stated above that the condition (2) is equivalent to the statement $F^{-1}(T) = \\{T, T \\cup \\{P_n\\}\\}$. Now, if (1) is satisfied, for a sufficiently small $\\epsilon > 0$, the function $f(x, y) - \\epsilon$ cuts off $T$ from $S$, and the function $f(x, y) + \\epsilon$ cuts off $T \\cup \\{P_n\\}$ from $S$. Therefore, we have $T, T \\cup \\{P_n\\} \\in X(S)$ and (2) is satisfied.\n\nConversely, suppose (2) is satisfied. Let $f(x, y)$ and $g(x, y)$ be linear functions cutting off $T$, $T \\cup \\{P_n\\}$, respectively, from $S$. Let $\\lambda = -\\frac{f(P_n)}{g(P_n)}$. Then the linear function $f(x, y) + \\lambda g(x, y)$ takes the value 0 at the point $P_n$, and cuts off $T$ from $S'$, since $\\lambda > 0$. Therefore, (1) is satisfied. Thus, Lemma 2 is proved.\n\nLet us continue with the proof of Lemma 1. Since $F$ is surjective, Lemma 2 implies that the number $|X(S)| - |X(S')|$ coincides with the number of $T$'s satisfying the condition (1) of Lemma 2. We may assume that the $x$-coordinates of the points $P_1, \\dots, P_n$ are all distinct, by changing the coordinate system, if necessary. Let $a$ be a real number different from the $x$-coordinate of the point $P_n$. For each $P_i \\in S'$, let $(a, y_i)$ be the point of intersection of the lines $x = a$ and $P_n P_i$. Then, from the assumption that no 3 points from the set $S$ are colinear it follows that numbers $y_1, y_2, \\dots, y_{n-1}$ are all distinct. We also see that the fact $T$ satisfies the condition (1) of Lemma 2 is equivalent to the statement that\n$$\nT = \\{ P_i \\in S' \\mid h(y_i) > 0 \\}\n$$\nfor some linear function $h(y)$ of 1 variable. Total number of such $T$'s is $2(n-1)$, and the induction hypothesis says that $|X(S')| = (n-1)^2 - (n-1) + 2$ so that we have $|X(S)| = |X(S')| + 2(n-1) = n^2 - n + 2$, which proves the assertion of Lemma 1.\n\nNow, let $P(n) = \\frac{n^3 - 3n^2 + 8n}{3}$. Then, $P(1) = 2$ and $P(n+1) - P(n) = n^2 - n + 2$ and we can prove the following claim:\n\n**Claim:** Let $S$ be a set consisting of $n$ points in the space, no 4 among them lying on a same plane. Then the number of subsets of $S$ which can be obtained as an intersection of $S$ with some half space equals the number $P(n)$.\n\nA proof of this claim can be obtained as for the proof of Lemma 1 above by replacing the **plane** by the **space** and **straight lines** by **planes**. Thus the answer to this problem is given by $P(10) = 260$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34597, "subject": "Mathematics (Multi-modal)", "question": "How many positive integers of $2009$ or less digits can be represented in the form $a^{2009} + b^{2009}$ using integers $a$ and $b$?", "options": [], "answer": "99", "solution": "By symmetry, it is sufficient to determine the number of those positive integers having digits less than or equal to $2009$ that can be represented in the form $a^{2009} + b^{2009}$ by using a pair of integers $a$ and $b$ with the additional hypothesis $a \\ge b$.\n\nNote also that the requirement that $a^{2009} + b^{2009}$ is positive and has digits less than or equal to $2009$ is equivalent to the condition $10^{2009} > a^{2009} + b^{2009} > 0$.\n\nLet us first show the following:\nIf a pair of integers $(a, b)$ satisfies either one of the following conditions, then $a^{2009} + b^{2009}$ is positive and has digits less than or equal to $2009$.\n$$\n(A) : 1 \\le a \\le 9 \\quad \\text{and} \\quad -a < b \\le a.\n$$\n$$\n(B) : a = 10 \\quad \\text{and} \\quad -10 < b < 0.\n$$\nWe first prove the following simple lemma.\n\n**Lemma:** $(9/10)^{2009} < 1/3$.\n\n**Proof:** In fact, you can check that $(9/10)^n < 1/3$ if $n \\ge 11$, but we can give a simpler proof for $n \\ge 15$. Note that $9^5 = 59049$ so that $(9/10)^5 < 3/5 < 2/3$ and $(2/3)^3 < 1/3$. Therefore, $(9/10)^{15} = \\{(9/10)^5\\}^3 < (2/3)^3 < 1/3$.\n\nIf the condition (A) is satisfied, then it is clear that $a^{2009} + b^{2009}$ is positive, and since its maximum value is attained when $a = b = 9$, $a^{2009} + b^{2009} \\le 2 \\times 9^{2009} < 10^{2009}$ by the lemma. When the condition (B) is satisfied, we have $10^{2009} = 10^{2009} - 0^{2009} > a^{2009} + b^{2009} > 10^{2009} + (-1)^{2009} = 0$, therefore, we conclude that under either of the conditions (A) or (B), $10^{2009} > a^{2009} + b^{2009} > 0$.\n\nWe next show that there are no other pairs $(a, b)$, which satisfy the requirement. So, suppose that $10^{2009} > a^{2009} + b^{2009} > 0$ and $a \\ge b$. Then, we must have $a \\ge 1$ and $b > -a$. Therefore, if $9 \\ge a \\ge 1$, there are no solutions unless $a \\ge b > -a$. If $a = 10$, then if $b \\ge 0$ we get $a^{2009} + b^{2009} \\ge 10^{2009}$, which contradicts the assumption, hence $0 > b > -a = -10$ must be satisfied. Finally, if $a \\ge 11$, then it is clear that we need $0 > b > -a$. But then, $a^{2009} + b^{2009} = a^{2009} - (-b)^{2009} \\ge a^{2009} - (a-1)^{2009}$ since $0 < -b \\le a - 1$. Since\n$$\n\\begin{aligned}\n& a^{2009} - (a-1)^{2009} \\\\\n&= \\{a - (a-1)\\}\\{a^{2008} + a^{2007}(a-1) + \\dots + a(a-1)^{2007} + (a-1)^{2008}\\} \\\\\n&> 2009(a-1)^{2008} \\ge 2009 \\cdot 10^{2008} > 10^{2009},\n\\end{aligned}\n$$\nwe see that $a \\ge 11$ cannot occur. Thus, we conclude that either (A) or (B) must be satisfied.\n\nThe number of pairs $(a, b)$ which satisfies the condition (A) is $\\sum_{a=1}^{9} 2a = (9+1) \\cdot 9 = 90$, and the number of pairs $(a, b)$ satisfying the condition (B) is $9$, so if we can show that no $2$ pairs satisfying either condition (A) or (B) give the same number $a^{2009} + b^{2009}$, then we can conclude that $90+9=99$ is the desired answer to the problem.\n\nSo, suppose $a^{2009} + b^{2009} = c^{2009} + d^{2009}$, with $a \\ge b$ and $c \\ge d$. We may suppose $a \\ge c$. If $a=c$, then $b=d$. So, let us suppose $1 \\le c \\le a-1 \\le 8$. Then, since $1-a \\le b \\le a$ and $2-a \\le 1-c \\le d \\le c \\le a-1$, we have $a^{2009} = c^{2009} + d^{2009} - b^{2009} \\le 3 \\cdot (a-1)^{2009}$. Since $2 \\le a \\le 9$, we have $\\frac{a-1}{a} \\le \\frac{8}{9} < \\frac{9}{10}$, and by the lemma $(\\frac{a-1}{a})^{2009} < (\\frac{9}{10})^{2009} < \\frac{1}{3}$, from which it follows that $a^{2009} \\le 3 \\cdot (a-1)^{2009} < a^{2009}$, a contradiction. Thus, the numbers $a^{2009} + b^{2009}$ for pairs $(a, b)$ satisfying the condition (A) are distinct.\n\nFinally, if $10^{2009} + b^{2009} = c^{2009} + d^{2009}$ with $0 > b > -10$, $10 \\ge c \\ge 1$ and $c \\ge d > -c$, the condition $c=10$ forces $d$ to be equal to $b$, while if $9 \\ge c$, we get $10^{2009} = c^{2009} - b^{2009} + d^{2009} < 3 \\cdot 9^{2009}$, and we obtain a contradiction since $3 \\cdot 9^{2009} < 10^{2009}$ again by the lemma. Thus the numbers $a^{2009} + b^{2009}$ corresponding to the pairs satisfying the condition (B) are all distinct and different from any of those corresponding to pairs satisfying the condition (A).\n\nTherefore, the answer is $99$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34598, "subject": "Mathematics (Multi-modal)", "question": "Let $P$, $Q$ be points on the side $AB$ and $AC$, respectively, of a triangle $\\triangle ABC$, which satisfy $BP + CQ = PQ$. Let $R$ be the point of intersection, other than $A$, of the bisector of the angle $\\angle BAC$ and the circum-circle of the triangle $\\triangle ABC$. If $\\angle BAC = \\alpha$, express $\\angle PRQ$ in terms of $\\alpha$. Here we denote by $XY$ the length of the line segment $XY$.", "options": [], "answer": "90° − α/2", "solution": "Since the line segment $AR$ is the bisector of the angle $\\angle BAC$, we have $BR = CR$. Take a point $S$ on the other side from $A$ with respect to the line $BR$ in such a way that the triangles $\\triangle CRQ$ and $\\triangle BRS$ become congruent. Then, since\n$$\n\\angle SBR + \\angle RBA = \\angle QCR + \\angle RBA = 180^\\circ,\n$$\nwe see that the point $S$ lies on the line $AB$. From\n$$\n\\begin{aligned}\nPS &= PB + BS = PB + CQ = PQ \\\\\nSR &= QR \\\\\nPR &= PR\n\\end{aligned}\n$$\nit follows that the triangles $\\triangle PSR$ and $\\triangle PQR$ are congruent, and therefore, we have $\\angle PRS = \\angle PRQ$. From\n$$\n\\angle PRS + \\angle PRQ = \\angle QRS = \\angle QRB + \\angle BRS = \\angle QRB + \\angle CRQ = \\angle CRB\n$$\nit follows that $\\angle PRQ = \\frac{1}{2}\\angle CRB$. Since $\\angle CRB + \\angle BAC = 180^\\circ$, we obtain $\\angle PRQ = 90^\\circ - \\frac{\\alpha}{2}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34599, "subject": "Mathematics (Multi-modal)", "question": "Let $N$ be a positive integer. Suppose some collection of integers are written on a blackboard satisfying the following properties.\n* Every number $k$ written satisfies $1 \\le k \\le N$.\n* Every $k$ with $1 \\le k \\le N$ is written at least once.\n* The sum of all the numbers written is even.\nProve that by marking some of the numbers written by $\\mathcal{O}$ and the rest by $\\times$, it is possible to make the sum of those marked by $\\mathcal{O}$ equal to the sum of those marked by $\\times$.", "options": [], "answer": "Detailed solution", "solution": "Suppose we line up the numbers written on the blackboard in a non-increasing order and represent them as $a_1, a_2, \\dots, a_m$, with $a_k \\ge a_{k+1}$ for each $k$. We mark each of the numbers $a_1, a_2, \\dots, a_m$ by $\\bigcirc$ or $\\times$ in order in the following way. Start with $a_1$, and at each step compare the sum of those numbers already marked by $\\bigcirc$ with the sum of those already marked by $\\times$. If the former is less than the latter then mark the next number by $\\bigcirc$, otherwise mark it by $\\times$.\nLet us show by induction on $i$ that after the time when the number $a_i$ gets marked, the difference between the sum of those numbers marked by $\\bigcirc$ and the sum of those marked by $\\times$ is no bigger than $a_i$.\nFor $i=1$, this difference is clearly $a_1$.\nSuppose the assertion holds for $i = k-1$. Let us denote by $d$ the difference of the sum of those numbers marked by $\\bigcirc$ and the sum of those marked by $\\times$ prior to the time of the marking of $a_k$. By the rule of our marking procedure, this difference after the marking of $a_k$ becomes $|d - a_k|$. In view of the assumptions made on the numbers on the blackboard to begin with, we have $a_{k-1} = a_k$ or $= a_k + 1$. By the induction hypothesis, we have $0 \\le d \\le a_k + 1$, and therefore, we get $-a_k \\le d - a_k \\le 1 \\le a_k$.\nThus we conclude that the assertion holds for $i = k$.\nSince the last number $a_m = 1$, we see that the difference of those numbers marked by $\\mathcal{O}$ and those marked by $\\times$ when the markings of all the numbers are done does not exceed 1. On the other hand, since by assumption the sum of all the numbers written on the blackboard is even, the difference of the sum of those marked by $\\mathcal{O}$ and those marked by $\\times$ cannot equal 1. Thus, we can conclude that the two sums in question must coincide.\nSince there are only finite number of possibilities for marking the given set of numbers by $\\mathcal{O}$ and $\\times$, there must be ways to get the marking done for which the difference of the sum of those marked by $\\mathcal{O}$ and the sum of those marked by $\\times$ is the minimum. Choose one such method of marking. We will show that for this choice of the marking method the difference in question must be 0. Suppose on the contrary this difference is greater than 0. Since the sum of all the numbers given is even, this difference cannot be equal to 1, and hence is greater than or equal to 2. Without the loss of generality, we may assume that the sum of those numbers marked by $\\mathcal{O}$ is bigger. Now consider the following procedure:\nDenote by $t$ the number smallest among the numbers marked by $\\mathcal{O}$.\nIf $t=1$, then choose one of those $1$'s marked by $\\mathcal{O}$ and change its marking to $\\times$.\nIf $t > 1$, then choose one of those $t$'s marked by $\\mathcal{O}$ and change its marking to $\\times$ and choose one of those $t-1$'s marked by $\\times$ and change its marking to $\\mathcal{O}$.\nWe note that the procedure outlined above is possible, since by assumption the sum of the numbers marked by $\\mathcal{O}$ is greater than the sum of those marked by $\\times$ so there exist numbers marked by $\\mathcal{O}$ and thus we can choose the one smallest among them. Furthermore, if $t > 1$, then by assumption there must be at least one $t-1$ among the numbers written on the blackboard and all those must be marked by $\\times$.\nFinally, we see that after performing the procedure above, we end up with the situation where the difference of the sum of those marked by $\\mathcal{O}$ and the sum of those marked by $\\times$ is 2 less than the case for the marking method chosen originally, and this contradicts the minimality assumption. Thus the difference in question for the marking method chosen originally must equal 0.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34600, "subject": "Mathematics (Multi-modal)", "question": "A circle $O_1$ of radius $2$ and a circle $O_2$ of radius $4$ are externally tangent at the point $P$. Points $A$ and $B$, both distinct from the point $P$, are chosen on the circumference of the circles $O_1$ and $O_2$, respectively, in such a way that the points $A$, $P$ and $B$ are collinear. Determine the length of the line segment $PB$ if the length of $AB$ is $4$.\n\n![](attached_image_1.png)", "options": [], "answer": "8/3", "solution": "Let $C_1, C_2$ be the centers of the circles $O_1, O_2$, respectively. Since the circles $O_1$ and $O_2$ are externally tangent at the point $P$, the three points $C_1, P$ and $C_2$ are situated on a straight line in this order. Therefore, $\\angle C_1PA = \\angle C_2PB$ holds. As the triangles $C_1PA$ and $C_2PB$ are isosceles, we have $\\angle C_1AP = \\angle C_1PA = \\angle C_2PB = \\angle C_2BP$. Therefore, the triangles $\\triangle C_1PA$ and $\\triangle C_2PB$ are similar, and we get $AP : PB = C_1P : C_2P = 2 : 4$, from which we conclude that\n$$\nPB = \\frac{4}{2+4} \\times AB = \\frac{8}{3}.\n$$\n\n![](attached_image_2.png)\nSuppose we draw the graphs of the circles $O_1$ and $O_2$ tangent externally at the point $P$, rotate the picture by $180^\\circ$ around the point $P$, and then enlarge the result $2$ times. Then we see that the original circle $O_1$ gets mapped onto the circle which is originally $O_2$, and the point $A$ on the original circle $O_1$ gets mapped onto the point $B$ on the original circle $O_2$. Therefore, we can conclude that $AP : PB = 1 : 2$, and we can deduce as in the preceding argument that\n$$\nPB = \\frac{8}{3}.\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34601, "subject": "Mathematics (Multi-modal)", "question": "Let $k$ be an integer greater than or equal to $2$, and let $n_1$, $n_2$, $n_3$ be positive integers, and $a_1$, $a_2$, $a_3$ be integers greater than or equal to $1$ and less than or equal to $k-1$. Define\n$$\nb_i = a_i \\sum_{j=0}^{n_i} k^j \\quad (i = 1, 2, 3).\n$$\nDetermine all possible combinations $(n_1, n_2, n_3)$ if $b_1 b_2 = b_3$.", "options": [], "answer": "(1, 1, 3)", "solution": "We may assume without loss of generality that $n_1 \\ge n_2$. Since $0 < a_1 b_2 < k \\cdot k^{n_2+1} = k^{n_2+2}$, we can represent\n$$\na_1 b_2 = \\sum_{j=0}^{n_2+1} d_j k^j\n$$\nby choosing $d_j$ with $0 \\le d_j \\le k-1$ ($j = 0, 1, \\dots, n_2+1$) suitably.\nSet $e_j = d_0 + d_1 + \\dots + d_j$ ($j = 0, 1, \\dots, n_2+1$).\nNow let us separate the two cases:\n* When $n_1 > n_2$.\nWe have\n$$\nb_1 b_2 = \\sum_{j=0}^{n_1} k^j \\times \\sum_{j=0}^{n_2+1} d_j k^j \\equiv \\sum_{j=0}^{n_2+1} e_j k^j \\pmod{k^{n_2+2}}\n$$\nSince $0 \\le e_0 = d_0 \\le k-1$, we get $a_3 = e_0$ and $a_3 \\equiv e_1 \\pmod k$. Consequently, we see that $d_1 = e_1 - e_0$ is a multiple of $k$, and from $0 \\le d_1 < k-1$, we must have $d_1 \\ne 0$. This in turn implies that $e_0 = e_1 = a_3$ and hence $e_1 = a_3 \\equiv e_2 \\pmod k$, and in the same way as above we conclude that $d_2 = 0$.\nRepeating this argument we obtain that $d_1 = d_2 = \\cdots = d_{n_2+1} = 0$, which implies that $a_1 b_2 = d_0 \\le k-1$, which, in turn, contradicts the assumption that $n_1, n_2, a_1, a_2$ are all positive integers. Thus, we see that there are no triples $(n_1, n_2, n_3)$ which satisfy the requirements in this case.\n* When $n_1 = n_2$.\nIn this case\n$$\nb_1 b_2 \\equiv \\sum_{j=0}^{n_1} k^j \\times \\sum_{j=0}^{n_2+1} d_j k^j \\equiv \\sum_{j=0}^{n_2} e_j k^j \\pmod{k^{n_2+1}}\n$$\nis valid, and we can conclude that $d_1 = d_2 = \\cdots = d_{n_2} = 0$ hold as in the case where $n_1 > n_2$. If we let $a_1 a_2 = c_0 + c_1 k$ ($0 \\le c_0, c_1 \\le k-1$), then we have\n$$\na_1 b_2 = c_0 + (c_0 + c_1)(k + k^2 + \\cdots + k^{n_2}) + c_1 k^{n_2+1}.\n$$\nSince $c_0 + c_1$ is a multiple of $k$ as $d_1 = 0$, and since $0 < c_0 + c_1 \\le 2k-2$, we have $c_0 + c_1 = k$. If we assume that $n_1 = n_2 \\ge 2$, then we get $d_2 = 1$, contradicting $d_2 = 0$. Thus, we get $n_1 = n_2 = 1$, and $n_3 = 2n_1 + 1 = 3$.\nConversely, if $(n_1, n_2, n_3) = (1, 1, 3)$, we will show that $(k, a_1, a_2, a_3)$ which satisfy the requirement exist. Since we have\n$$\na_1(1+k) \\times a_2(1+k) = a_1 a_2(k+1)^2, \\quad a_3(1+k+k^2+k^3) = a_3(k+1)(k^2+1),\n$$\nif we can find $a_1, a_2$ satisfying $a_1 a_2 = \\frac{k^2+1}{2}$, $1 \\le a_i \\le k-1$ ($i=1, 2$) for some odd integer $k$, then such a pair $a_1, a_2$ together with $a_3 = \\frac{k+1}{2}$ will satisfy the desired conditions. By checking odd numbers in turn starting with $3$, we find that the quadruple $(k, a_1, a_2, a_3) = (7, 5, 5, 4)$ satisfies the requirement. Thus, the only triple $(n_1, n_2, n_3)$ to satisfy the requirement of the problem is $(1, 1, 3)$.\nIf we rewrite the relation $b_1 b_2 = b_3$ by using the summation formula for the geometric series, we get\n$$\na_1 a_2 \\cdot \\frac{k^{n_1+1}-1}{k-1} \\times \\frac{k^{n_2+1}-1}{k-1} = a_3 \\cdot \\frac{k^{n_3+1}-1}{k-1}.\n$$\nBy multiplying both sides of the equation above by $(k-1)^2$, we get\n$$\na_1 a_2 (k^{n_1+1} - 1) (k^{n_2+1} - 1) = a_3 (k^{n_3+1} - 1) (k-1) \\quad (*)\n$$\nSince $k^{n_2+1} - 1 \\ge k^2 - 1 > a_3(k-1)$ imply that $k^{n_1+1} - 1 < k^{n_3+1} - 1$ holds, we get $n_1 < n_3$. We similarly get $n_2 < n_3$. We can also assume that $n_1 \\ge n_2$ without loss of generality.\nAssume that $n_2 \\ge 2$. Considering the equation (*) in $\\mod k^3$, we get $a_1 a_2 \\equiv -a_3(k-1) \\pmod{k^3}$. However, since\n$$\n0 < a_1 a_2 + a_3 (k-1) < k^2 + k(k-1) < 2k^2 \\le k^3\n$$\nhold, we get a contradiction. Thus, we conclude that $n_2 = 1$.\nIf we then divide both sides of the equation (*) by $k-1$, we obtain\n$$\na_1 a_2 (k^{n_1+1} - 1)(k+1) = a_3 (k^{n_3+1} - 1).\n$$\nSuppose now $n_1 \\ge 2$. If we consider both sides of the equation above in $\\mod k^3$, then we get $-a_1a_2(k+1) \\equiv -a_3 \\pmod{k^3}$. However, since\n$$\n\\begin{aligned}\na_1a_2(k+1) - a_3 &\\ge (k+1) - (k-1) = 2 > 0, \\\\\na_1a_2(k+1) - a_3 &\\le (k-1)^2(k+1) - 1 = k^3 - k^2 - k < k^3\n\\end{aligned}\n$$\nhold, we get a contradiction. Therefore, we must have $n_1 = 1$.\nSummarizing we get\n$$\na_1a_2(k^2 - 1)(k + 1) = a_3(k^{n_3+1} - 1),\n$$\nand furthermore, since\n$$\n\\begin{aligned}\nk^{n_3+1} - 1 &\\le a_3(k^{n_3+1} - 1) = a_1a_2(k^2 - 1)(k + 1) \\\\\n&\\le (k-1)^2(k^2 - 1)(k + 1) \\\\\n&= k^5 - k^4 - 2k^3 + 2k^2 + k - 1 \\\\\n&< k^5 - 1,\n\\end{aligned}\n$$\nwe obtain $n_3 < 4$.\nIf we suppose $n_3 = 2$, then we get $a_1a_2(k+1)^2 = a_3(k^2+k+1)$, so we conclude that $0 < a_1a_2 < a_3 < k$ holds, since $(k+1)^2 > k^2+k+1$. However, if we consider both sides of $a_1a_2(k+1)^2 = a_3(k^2+k+1)$ in $\\mod k$, we get $a_1a_2 \\equiv a_3 \\pmod{k}$, which gives a contradiction. As $n_3 > n_1 = 1$, we conclude from $b_1b_2 = b_3$ that $(n_1, n_2, n_3) = (1, 1, 3)$. We can get $(k, a_1, a_2, a_3)$ satisfying the conditions of the problem when $(n_1, n_2, n_3) = (1, 1, 3)$ as in the preceding solution to the problem.", "topic": "Discrete Mathematics", "subtopic": "Combinatorics" }, { "id": 34602, "subject": "Mathematics (Multi-modal)", "question": "Determine all the triples $(a, b, c)$ of positive integers which satisfy the following 2 identities. Distinguish two triples which are obtained by permuting the order of the same set of three numbers.\n$$\nab + c = 13, \\quad a + bc = 23.\n$$", "options": [], "answer": "[(1, 2, 11), (1, 11, 2), (2, 3, 7)]", "solution": "[(1, 2, 11), (1, 11, 2), (2, 3, 7)]\n\nTaking the sum and the difference of the corresponding sides of the given 2 equations, we obtain, respectively\n$$\n(ab + c) + (a + bc) = (b + 1)(a + c) = 36\n$$\n$$\n(a + bc) - (ab + c) = (b - 1)(c - a) = 10\n$$\nSince both $a$ and $c$ are positive integers, we see that $b+1$, $b-1$ are factors of $36$, $10$, respectively. From this fact, we can conclude that only possible values of $b$ are $2$, $3$, $11$.\n\nIf $b = 2$, we obtain by solving the simultaneous equations $a + c = 12$, $c - a = 10$ that $(a, b, c) = (1, 2, 11)$.\n\nIf $b = 3$, we obtain by solving the simultaneous equations $a + c = 9$, $c - a = 5$ that $(a, b, c) = (2, 3, 7)$.\n\nIf $b = 11$, we obtain by solving the simultaneous equations $a + c = 3$, $c - a = 1$ that $(a, b, c) = (1, 11, 2)$.\n\nSince it is easy to check that all of these triples satisfy the requirement, the desired answer is $(1, 2, 11)$, $(1, 11, 2)$, $(2, 3, 7)$.\n**Alternate Solution:**\n\nSince $ab + c = 13$, we have $abc = (13 - c)c = -(c - \\frac{13}{2})^2 + \\frac{169}{4} \\le \\frac{169}{4}$, but since $a, b, c$ are positive integers, we must have $abc \\le 42$. Since we also have $a + bc = 23$, we see that only possible values that $a$ can have are $1$, $2$, $21$, $22$.\n\nIf $a = 21$ or $a = 22$, then $ab + c > 21$, so the condition $ab + c = 13$ is not satisfied.\n\nIf $a = 1$, we obtain by solving the simultaneous equations $b + c = 13$, $bc = 22$ that $(b, c) = (2, 11)$, $(11, 2)$.\n\nIf $a = 2$, we obtain by solving the simultaneous equations $2b + c = 13$, $bc = 21$ that $(b, c) = (3, 7)$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34603, "subject": "Mathematics (Multi-modal)", "question": "When you represent the following fraction in a decimal form, what is the integral part of the resulting expression?\n$$\n\\frac{9 + 98 + 987 + 9876 + 98765 + 987654 + 9876543 + 98765432}{12345678 + 1234567 + 123456 + 12345 + 1234 + 123 + 12 + 1}\n$$", "options": [], "answer": "8", "solution": "[8].\nConsider pairs of numbers $(9, 1)$, $(98, 12)$, ..., $(98765432, 12345678)$, which are formed by pairing the first number of the numerator with the last number of the denominator, second number of the numerator with the next-to-the last number of the denominator and so on and the last number of the numerator with the first number of the denominator. For each of these pairs, it is easy to check the first entry is at least $8$ times bigger than the second entry. Therefore, the given fraction is at least $8$. On the other hand, except for the first pair, for which $9 = 9 \\times 1$, the first entry is less than $9$ times the second entry for all other pairs. Therefore, the fraction is less than $9$ and the answer to the problem is $8$.", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 34604, "subject": "Mathematics (Multi-modal)", "question": "Let $n$ be an integer greater than or equal to $2$. Assign to each vertex of a regular $2n$-gon a distinct number chosen from $\\{1, 2, \\dots, 2n\\}$.\n\n(1) Show that there exists a method of assigning these numbers in such a way that the differences of the numbers assigned to every neighboring pair of vertices are all greater than or equal to $n-1$.\n\n(2) Show that there is no way of assigning these numbers so that the differences of the numbers assigned to every neighboring pair of vertices are all greater than or equal to $n$.", "options": [], "answer": "Detailed solution", "solution": "(1): Pick a vertex $P$ of the given $2n$-gon and label the vertices consecutively as $1, 2, \\dots, 2n$ starting with $P$ as $1$ and going around clockwise. Then for $1 \\le k \\le n$ reassign the number $k$ to the vertex labeled $2k-1$, respectively, and the number $n+k$ to the vertex labeled $2k$, respectively. Let us check that this reassignment of numbers to the vertices satisfies the requirement that for each neighboring pair of vertices the difference of the numbers assigned is at least $n-1$. If, for $1 \\le j < 2n$, we compare the numbers reassigned to the vertices originally labeled $j$ and $j+1$, we see that the difference of those numbers is $n$ if $j$ is odd, and is $n-1$ if $j$ is even. And the difference of the numbers reassigned to the vertices originally labeled $1$ and $2n$ is $2n-1$. So, the requirement is satisfied.\n\n(2): Note that $k=2n$ is the only integer which satisfies the conditions $1 \\le k \\le 2n$ and $|k-n| \\ge n$. Hence if we reassign the number $n$ to some vertex originally labeled $j$, say, then it is impossible to reassign numbers to both of the two neighboring vertices originally labeled $j-1$ and $j+1$ to satisfy the requirement that the difference of the numbers assigned to each neighboring pair of vertices is $n$ or greater.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 34605, "subject": "Mathematics (Multi-modal)", "question": "Let $M$ be the mid-point of the side $BC$ of a triangle $ABC$. Suppose $AB = 4$ and $AM = 1$, where by $XY$ we denote the length of the line segment $XY$. Determine the smallest possible value the angle $\\angle BAC$ can take.", "options": [], "answer": "150°", "solution": "Let $N$ be the point on the line $AM$ which is symmetric to the point $A$ with respect to the point $M$. Then the triangle $ABMN$ is congruent to the triangle $CAM$, since $BM = CM$, $MN = MA$ and $\\angle BMN = \\angle CMA$. Therefore, we have\n$$\n\\angle BAC = \\angle BAM + \\angle CAM = \\angle BAM + \\angle BNM = 180^\\circ - \\angle ABN.\n$$\nThis implies that when $\\angle BAC$ attains its minimum possible value, $\\angle ABN$ takes its maximum possible value. Thus it suffices to find the maximum possible value for the angle $\\angle ABN$.\nConsider the circle of radius $2$ with its center at the point $A$. Then, since $AN = 2AM = 2$, the point $N$ lies on this circle. It is clear that $\\angle ABN$ attains its maximum value when the line $BN$ is tangent to this circle. When this is the case, we have\n$$\n\\angle BNA = 90^\\circ, \\ AB = 4, \\ AN = 2.\n$$\nTherefore, we have $\\angle ABN = 30^\\circ$, and we conclude that the minimum possible value for $\\angle BAC$ equals $180^\\circ - 30^\\circ = 150^\\circ$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34606, "subject": "Mathematics (Multi-modal)", "question": "$$\n\\frac{3}{2} < \\frac{4a+b}{a+4b} + \\frac{4b+c}{b+4c} + \\frac{4c+a}{c+4a} < 9\n$$\nfor positive real numbers $a, b, c$.", "options": [], "answer": "Detailed solution", "solution": "Let\n$$\nS = \\frac{4a+b}{a+4b} + \\frac{4b+c}{b+4c} + \\frac{4c+a}{c+4a}\n$$\nWe will show that $\\frac{3}{2} < S < 9$.\n\nFirst, let us show that $\\frac{3}{2} < S$. Let us suppose that $a$ is greater than or equal to $b$ and $c$. Then,\n$$\n\\begin{aligned}\n\\frac{4a+b}{a+4b} &= \\frac{(a+b)+3a}{(a+b)+3b} \\ge 1 \\\\\n\\frac{4b+c}{b+4c} &> \\frac{4b+c}{16b+4c} = \\frac{1}{4} \\\\\n\\frac{4c+a}{c+4a} &> \\frac{4c+a}{16c+4a} = \\frac{1}{4}\n\\end{aligned}\n$$\nfrom which we obtain that $S > 1 + \\frac{1}{4} + \\frac{1}{4} = \\frac{3}{2}$. By symmetry, we see that if $b$ is greater than or equal to $a$ and $c$, or if $c$ is greater than or equal to $a$ and $b$, then one of the terms of $S$ is greater than or equal to 1 and other two terms are greater than $\\frac{1}{4}$ to yield $S > \\frac{3}{2}$.\n\nNext, we show that $S < 9$. To see this suppose $a$ is smaller than or equal to $b$ and $c$. Then,\n$$\n\\begin{aligned}\n\\frac{4a+b}{a+4b} &= \\frac{(a+b)+3a}{(a+b)+3b} \\le 1 \\\\\n\\frac{4b+c}{b+4c} &< \\frac{4b+16c}{b+4c} = 4 \\\\\n\\frac{4c+a}{c+4a} &< \\frac{4c+16a}{c+4a} = 4,\n\\end{aligned}\n$$\nfrom which we get that $S < 1+4+4=9$. By symmetry, we see that we get the same result $S < 9$ in case $b$ or $c$ is greater than or equal to the other two. Thus, the desired inequalities $\\frac{3}{2} < S < 9$ are proved.\nWithout assuming that any one of $a, b, c$ is greater than or equal to the other two, we see as in the argument above that each of the three terms of $S$ is $> \\frac{1}{4}$. So, if we can show that at least one of the three terms of $S$ is $\\ge 1$, then we see that $S > \\frac{3}{2}$ must hold. So, suppose that each of the three terms of $S$ is $< 1$. Then, we get\n$$\n\\begin{align*}\n4a + b < a + 4b \\\\\n4b + c < b + 4c \\\\\n4c + a < c + 4a,\n\\end{align*}\n$$\nfrom which we obtain that $5a + 5b + 5c < 5a + 5b + 5c$, which is a contradiction. Thus, we must have at least one of the three terms of $S$ is $\\ge 1$ and $S > \\frac{3}{2}$.\n\nIn a similar manner as we have seen above, we can show that every term of $S$ is $< 4$ and at least one term of $S$ must be $\\le 1$, and therefore $S < 9$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34607, "subject": "Mathematics (Multi-modal)", "question": "2 positive integers each with 3 digits are given. Suppose the one's digit and the ten's digit are both 9 for both of these numbers. Write down all possible numbers that can appear as the thousand's digit of the product of these 2 numbers.", "options": [], "answer": "[8, 9]", "solution": "$[8, 9]$.\nWe can represent 2 three-digit numbers of the problem in the form $100m - 1$, $100n - 1$ with some pairs of integers $m, n$ satisfying $2 \\le m, n \\le 10$. Then, the product of the 2 given numbers can be written $10000mn - 100(m + n) + 1 = (mn - 1)10000 + (100 - m - n)100 + 1$, and therefore the value of the thousand's digit of the product equals the ten's digit of the number $100-m-n$. Since $4 \\le m+n \\le 20$, we have $80 \\le 100-m-n \\le 96$, from which it follows that the values the thousand's digit of the product of the 2 given numbers can take are 8 and 9.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34608, "subject": "Mathematics (Multi-modal)", "question": "Let $\\Gamma$ be the circum-circle of a triangle $\\triangle ABC$. Suppose a circle with its center at a point $O$ is tangent to the line segment $BC$ at a point $P$, and is tangent to the arc $BC$ (not containing $A$) at a point $Q$. If $\\angle BAO = \\angle CAO$, show that $\\angle PAO = \\angle QAO$ must be satisfied.", "options": [], "answer": "Detailed solution", "solution": "If $AB = AC$, then both of the points $P, Q$ lie on the bisector of the angle $\\angle BAC$, and we get $\\angle PAO = \\angle QAO = 0^\\circ$; so the assertion is valid in this case.\n\nLet us assume in the sequel that $AB \\ne AC$. Let $\\gamma$ be the circle with $O$ as its center and tangent to the line $BC$ at the point $P$ and tangent to the circle $\\Gamma$ at the point $Q$. We also denote by $P'$ ($M$, respectively) the point of intersection of the perpendicular bisector of the line segment $BC$ and the circle $\\Gamma$ and lying on the same side (opposite side, respectively) as the point $A$ with respect to the line $BC$. Then, since the arc $BM$ has the same length as the arc $MC$, we have $\\angle BP'M = \\angle CP'M$. By the assumption for the problem, we also have $\\angle BAO = \\angle CAO$, and therefore, the arcs of the circle $\\Gamma$ which subtend these angles must have the same length. This means that the three points $A, O$ and $M$ must be collinear. We also see that if we denote by $O'$ the center of the circle $\\Gamma$, then the three points $Q, O$ and $O'$ are also collinear, since the circles $\\Gamma$ and $\\gamma$ are tangent at the point $Q$.\n\nNext, we show that the three points $P', P$ and $Q$ are also collinear. Let us denote by $R$ the point of intersection of the line segment $P'Q$ and the circle $\\gamma$. Then we see that\n$$\n\\angle MP'R = \\angle O'P'Q = \\angle O'QR = \\angle ORQ.\n$$\nTherefore, the line segment $OR$ must be parallel to the line segment $MP'$, and since $MP' \\perp BC$, we must have $OR \\perp BC$. This means that the point $R$ on $\\gamma$ must coincide with the point $P$ of the tangency of $\\gamma$ with $BC$. Thus, we see that the three points $P', P$ and $Q$ are collinear. Furthermore, we see that $\\angle QP'M = \\angle PQO = \\angle QPO$ hold. We also have $\\angle QAO = \\angle QP'M$, as they are subtended by the same arc $QM$ of the circle $\\Gamma$, and therefore, $\\angle QAO = \\angle QPO$. It then follows\n\nthat the four points A, P, O, Q must lie on the same circle, which in turn implies that $\\angle PQO = \\angle PAO$, as these two angles are subtended by the same arc PO of that circle. As $\\angle PQO = \\angle QPO = \\angle QAO$, as we saw above, we finally obtain that $\\angle PAO = \\angle QAO$, proving the assertion of the problem.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34609, "subject": "Mathematics (Multi-modal)", "question": "Determine all non-negative real-valued functions $f$ defined for non-negative real numbers, which satisfy\n$$\nf(x^2) + f(y) = f(x^2 + y + x f(4y))\n$$\nfor every pair of non-negative real numbers $x$ and $y$.", "options": [], "answer": "f(x) = sqrt(x) and f(x) ≡ 0", "solution": "First of all, let us show that the function $f$ is monotone increasing in the wide sense, namely it satisfies the property that $a < b \\implies f(a) \\le f(b)$. So, suppose $a < b$. Then we can choose a number $t > 0$ such that $b = t^2 + a + t f(4a)$. Substituting $x = t$, $y = a$ into the given functional equation, we obtain $f(t^2) + f(a) = f(b)$. Since $f(t^2) \\ge 0$, we then obtain $f(a) \\le f(b)$, showing the desired monotone property of $f$. Furthermore, we note that the same argument shows that if $f(t) > 0$ for an arbitrary $t > 0$, then $a < b \\implies f(a) < f(b)$.\n\nWe separate the following two cases:\n(1): $f(t) > 0$ is satisfied for an arbitrary $t > 0$.\n(2): $f(t) = 0$ for some $t > 0$.\n\nLet us first determine $f(x)$ in the case (1). As we stated above, in this case, we have $a < b \\implies f(a) < f(b)$, and therefore, we must have $f(a) = f(b) \\implies a = b$. ($f$ is said to be **injective** if it satisfies this property.) For arbitrary non-negative real numbers $a$ and $b$, substitute $(x, y) = (\\sqrt{a}, b)$, $(\\sqrt{b}, a)$ into the given functional equation, then we obtain\n$$\n\\begin{align*}\nf(a) + f(b) &= f(a + b + \\sqrt{a} f(4b)), \\\\\nf(b) + f(a) &= f(b + a + \\sqrt{b} f(4a))\n\\end{align*}\n$$\nfrom which we get $f(a + b + \\sqrt{a} f(4b)) = f(b + a + \\sqrt{b} f(4a))$. Since $f$ is injective in the case (1), we conclude that $a + b + \\sqrt{a} f(4b) = b + a + \\sqrt{b} f(4a)$, and hence $\\sqrt{a} f(4b) = \\sqrt{b} f(4a)$ holds for every pair of non-negative real numbers $a$ and $b$. By substituting $a = 1$ and $b = \\frac{x}{4}$, where $x$ is an arbitrary non-negative real number, into the last equation we get $f(x) = \\frac{f(4)}{2} \\sqrt{x}$. Therefore, we can write $f(x) = k \\sqrt{x}$ for some $k > 0$. If we substitute $x = y = 1$ into the functional equation for this choice of $f$, we obtain that $2k = k \\sqrt{2} + 2k$, from which we get, since $k > 0$, $2 = \\sqrt{2} + 2k$, and therefore, $k = 1$. Thus, we conclude that $f(x) = \\sqrt{x}$.\n\nConversely, if $f(x) = \\sqrt{x}$, then we get for any pair of non-negative real numbers $x$ and $y$,\n$$\n\\begin{align*}\nf(x^2) + f(y) &= x + \\sqrt{y} \\\\\nf(x^2 + y + x f(4y)) &= \\sqrt{x^2 + y + x \\sqrt{4y}} = \\sqrt{(x + \\sqrt{y})^2} = x + \\sqrt{y}.\n\\end{align*}\n$$\nSo the function $f(x) = \\sqrt{x}$ satisfies the given functional equation. Thus, the desired answer in the case (1) is $f(x) = \\sqrt{x}$.\n\n\nAlternate Solution:\nThe proof of the fact that $f(x)$ is monotone increasing in the wide sense is the same as the preceding solution. We now separate the 2 cases as follows:\n(1) When $f(x)$ is injective, i.e., when $f(a) = f(b) \\Rightarrow a = b$.\n(2) When $f(x)$ is not injective, i.e., when there exist a pair $a, b$ ($a \\neq b$) for which $f(a) = f(b)$.\nThe fact that $f(x) = \\sqrt{x}$ for the case (1) can be shown as in the preceding solution.\n\nLet us show that $f(x) = 0$ must hold in the case (2). Choose a pair $a, b$ ($a < b$) for which $f(a) = f(b)$. Let $t$ be an arbitrary non-negative real number and substitute $(x, y) = (t, a)$, $(t, b)$ into the functional equation, then we get\n$$\n\\begin{aligned}\nf(t^2) + f(a) &= f(t^2 + a + t f(4a)), \\\\\nf(t^2) + f(b) &= f(t^2 + b + t f(4b)),\n\\end{aligned}\n$$\nfrom which we get, in view of the fact that $f(a) = f(b)$,\n$$\nf(t^2 + a + t f(4a)) = f(t^2 + b + t f(4b)).\n$$\nIn particular, for $t > 0$ for which $t^2 + a + t f(4a) = b$ (such a $t$ exists since $a < b$) we get $f(b) = f(b')$ if we put $b' = t^2 + b + t f(4b)$. We thus have $f(a) = f(b')$ with $b' = (t^2 + a + t f(4a)) + (b - a) + t(f(4b) - f(4a)) \\ge b + (b - a) = 2b - a$ since $f(4b) \\ge f(4a)$. Summarizing this we now see that if $f(a) = f(b)$ holds for some pair of non-negative real numbers $a, b$ ($a < b$), then there exists a $b'$ for which\n$$\nf(a) = f(b'), \\quad b' \\ge 2b - a\n$$\nhold.\n\nRepeating the procedure above to obtain $b'$ from the pair $(a, b)$, we get a sequence $b_1, b_2, \\dots$ of positive numbers for which\n$$\n\\begin{aligned}\n\\bullet & b_1 = b \\\\\n\\bullet & f(a) = f(b_n) \\quad (n = 1, 2, \\dots), \\\\\n\\bullet & b_{n+1} \\ge 2b_n - a \\quad (n = 1, 2, \\dots)\n\\end{aligned}\n$$\nFrom $b_{n+1} \\ge 2b_n - a$ we get $b_{n+1} - a \\ge 2(b_n - a)$, from which it follows that $b_n - a \\ge 2^{n-1}(b_1 - a)$. Since $b_1 - a > 0$, we see that $b_n$ can be taken to be arbitrarily large by choosing $n$ larger and larger.\n\nLet now $x$ be an arbitrary positive number for which $x \\ge a$, then for a sufficiently large $n$ we have $a \\le x \\le b_n$, and since $f$ is monotone increasing in the wide sense and since $f(a) = f(b_n)$, we get $f(x) = f(a)$. Thus, we have shown that $x \\ge a \\Rightarrow f(x) = f(a)$. If we take both $x$ and $y$ to be sufficiently large real numbers and substitute these in the functional equation, we get the identity $f(a) + f(a) = f(a)$, from which we conclude that $f(a) = 0$. Consequently, we have $f(x) = f(a) = 0$ if $x \\ge a$. Since $f(x)$ is non-negative valued, and is monotone increasing in the wide sense, we also have $0 \\le x \\le a \\Rightarrow 0 \\le f(x) \\le f(a) = 0$ as well, and therefore, $f(x) = 0$ for all $x \\ge 0$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34610, "subject": "Mathematics (Multi-modal)", "question": "For a convex pentagon, all of its sides have length $1$ and some pair of diagonals intersect perpendicularly. Find the maximum possible area that such a pentagon can have. A pentagon is said to be convex if all of its interior angles are less than $180^\\circ$.", "options": [], "answer": "1 + sqrt(3)/4", "solution": "Let $ABCDE$ be a convex pentagon with all of its sides having length $1$ and for which some pair of diagonals intersect perpendicularly. It is sufficient to consider the two cases where $AC \\perp AD$ or $AC \\perp BD$, since all other cases can be handled in the same way as for one of these two cases.\n\nLet us first consider the case where $AC \\perp AD$.\nIn this case, we have $AC, AD \\le CD = 1$, since the triangle $\\triangle ACD$ is a right triangle with $\\angle CAD = 90^\\circ$. So, if we consider the triangle $\\triangle ABC$, we have $\\angle BCA = \\angle CAB \\ge \\angle ABC$, since $AB = BC \\ge CA$. Together with the fact that $\\angle BCA + \\angle CAB + \\angle ABC = 180^\\circ$, we obtain $\\angle CAB \\ge 60^\\circ$. Arguing in the same way for the triangle $\\triangle AED$, we obtain that $\\angle DAE \\ge 60^\\circ$. But, then we get that $\\angle BAE = \\angle CAB + \\angle CAD + \\angle DAE \\ge 60^\\circ + 90^\\circ + 60^\\circ > 180^\\circ$, contradicting the fact that $ABCDE$ is a convex pentagon. Thus this case does not occur.\n\nNext consider the case where $AC \\perp BD$.\nLet $P$ be the point of intersection of $AC$ and $BD$, then since $\\angle BPC = \\angle BPA = 90^\\circ$ the triangles $\\triangle APB$ and $\\triangle CPB$ are congruent. Consequently, we have $AP = CP$, and since $\\angle APD = \\angle CPD = 90^\\circ$, we see also that the triangles $\\triangle APD$ and $\\triangle CPD$ are congruent. Thus we have $AD = CD = 1$. Now we have $AD = DE = EA = 1$, which shows that the triangle $\\triangle ADE$ is an equilateral triangle with the side length $1$. From $AB = BC = CD = DA = 1$, we also see that the quadrilateral $ABCD$ must be a rhombus with the side length $1$. Thus the area of the pentagon $ABCDE$ is the sum of the areas of the equilateral triangle $ADE$ and that of the rhombus $ABCD$.\n\nThe area of $ADE$ equals $\\frac{1}{2} \\cdot 1 \\cdot \\frac{\\sqrt{3}}{2} = \\frac{\\sqrt{3}}{4}$, so, it suffices to consider the maximum of the area of the rhombus $ABCD$. Since the sides of the rhombus $ABCD$ have length $1$, it is clear that its area is no more than $1$, and since it equals $1$ when the rhombus is a square, the maximum area must be $1$. We can easily check that the pentagon $ABCDE$ is convex when the rhombus $ABCD$ is a square, so we can conclude that the desired solution for the problem is $1 + \\frac{\\sqrt{3}}{4}$.\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34611, "subject": "Mathematics (Multi-modal)", "question": "Suppose there are $6$ red, $3$ blue and $3$ yellow balls. When you place all of these balls on a straight line, how many distinguishable ways of lining them up are there, in which no adjacent balls are of the same color? Assume that balls of the same color are non-distinguishable.", "options": [], "answer": "100", "solution": "Since at least one non-red ball has to be placed between any pair of red balls and since there are $6$ red balls and $6$ non-red balls, it is easy to see that a yellow and a blue ball can be placed next to each other at most once.\n\nIn the case where no $2$ non-red balls are placed next to each other, red balls and non-red balls alternate in their placement, and if the red ball is placed at the left-most position, then the number of distinguishable ways to place balls to satisfy the requirement is equal to the number of placing $3$ non-distinguishable yellow balls and $3$ non-distinguishable blue balls in $6$ places (in between $2$ adjacent red balls and at the right-most spot), which is equal to $\\frac{6!}{3!3!} = 20$. Similarly, if red balls and non-red balls are placed alternatively, but the left-most ball has to be non-red, there are also $20$ ways of placing the balls. Therefore, there are $20 \\times 2 = 40$ ways of placing the balls in which red balls and non-red balls alternate.\n\nIf there is a pair consisting of a yellow ball and a blue one to be placed next to each other, let us regard the pair combined as one ball and count the number of $5$ non-red balls consisting of $2$ yellow, $2$ blue and $1$ combination into $5$ spots which are located in between adjacent pair of red balls. This number is $\\frac{5!}{2!2!1!} = 30$. Since one can place a yellow ball on the left or blue ball on the left when you combine a pair of balls, yielding distinguishable placements in the end, we get $2 \\times 30 = 60$ distinguishable placements in which one pair of a yellow and a blue are placed next to each other.\n\nThus, we have altogether $40 + 60 = 100$ distinguishable ways of lining up these balls.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34612, "subject": "Mathematics (Multi-modal)", "question": "For a convex hexagon $ABCDEF$, angles formed by any pair chosen from the 3 diagonals $AD, BE, CF$ are $60^\\circ$. Prove that the inequality\n$$\nAB + BC + CD + DE + EF + FA \\ge AD + BE + CF\n$$\nmust hold.\nHere, we say that a polygon is convex if all of its interior angles are less than $180^\\circ$. We also denote by $XY$ the length of the line segment $XY$.", "options": [], "answer": "Detailed solution", "solution": "First, we prove the following Lemma:\n**Lemma:** Suppose the angle $\\angle XYZ$ of a triangle $\\triangle XYZ$ is $60^\\circ$. Let the lengths of the sides $YZ, XZ, XY$ be $x, y, z$ respectively. Then, the inequality $2x \\ge y + z$ holds.\n**Proof:** Let $\\Gamma$ be the circum-circle of the triangle $\\triangle XYZ$. If we move the vertex $X$ of the triangle along the arc $\\widehat{YZ}$ from the point $Y$ to $Z$, the area of the triangle $XYZ$ changes and it attains the maximum when the height of the triangle is the largest. Clearly, this happens when the vertex $X$ lies on the perpendicular bisector of the base $YZ$ of the triangle, and then the triangle becomes the right triangle with its side length $x$, since the angle $\\angle XYZ$ remains $60^\\circ$ when the vertex moves along the arc $\\widehat{YZ}$. The area of the triangle $XYZ$ equals $\\frac{1}{2} \\cdot x \\cdot y \\cdot \\cos 60^\\circ = yz$, and when the triangle becomes the right triangle, this value equals $x^2$, as $x = y = z$ in this case. We therefore have the inequality $yz \\le x^2$. On the other hand, if we denote by $H$ the foot of the perpendicular line drawn from the vertex $Y$ to the side $XZ$, then by the Pythagorean theorem we have $x^2 - (y-z \\cos 60^\\circ)^2 = yH^2 = z^2 - (z \\cos 60^\\circ)^2$, from which it follows that\n$$\n\\begin{align*} \nx^2 &= \\left(y - \\frac{1}{2}z\\right)^2 + \\frac{3}{4}z^2 = y^2 + z^2 - yz \\\n&= (y + z)^2 - 3yz \\ge (y + z)^2 - 3x^2, \n\\end{align*}\n$$\nsince $x^2 \\ge yz$. Thus, we get $4x^2 \\ge (y+z)^2$ and $2x \\ge y+z$, since $x, y, z$ are all positive. This proves the lemma.\n\nNow, let us consider the convex hexagon $ABCDEF$ for which any pair of diagonals chosen from $AD, BE, CF$ intersect with $60^\\circ$. Let the points $P, Q, R$ be the points of intersection of the line segments $AD$ and $BE, BE$ and $CF, CF$ and $AD$, respectively. Since the hexagon $ABCDEF$ is convex, we see that the angle $\\angle APB$ of the triangle $\\triangle APB$ is $60^\\circ$. Therefore, by the Lemma, we obtain that $2AB \\ge PA + PB$. Similarly, we can apply the Lemma to five other triangles $\\triangle BQC, \\triangle CRD, \\triangle DPE, \\triangle EQF, \\triangle FRA$, and adding the corresponding sides\n\n$$\n\\begin{aligned}\n& 2AB + 2BC + 2CD + 2DE + 2EF + 2FA \\\\\n& \\geq (PA + PB) + (QB + QC) + (RC + RD) \\\\\n& \\quad + (PD + PE) + (QE + QF) + (RF + RA)\n\\end{aligned}\n$$\n\nSince $AD = AP + PD = AR + RD$, $BE = BP + PE = BQ + BE$, $CF = CR + RF = CQ + QF$, the righthand-side of the inequality above equals $2(AD + BE + CF)$, and thus we get the desired inequality\n$$\nAB + BC + CD + DE + EF + FA \\geq AD + BE + CF.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34613, "subject": "Mathematics (Multi-modal)", "question": "Determine the smallest possible positive integer $n$ for which the 4 numbers $14n$, $16n$, $18n$, $20n$ have exactly the same number of positive factors.", "options": [], "answer": "30", "solution": "Let us first prove the following Theorem:\n\n**Theorem**\nSuppose that a positive integer $n$ has the prime factorization $n = p_1^{e_1} p_2^{e_2} \\cdots p_m^{e_m}$. (Here, $p_1, p_2, \\cdots, p_m$ are distinct prime numbers and $e_1, e_2, \\cdots, e_m$ are positive integers.) Then the total number of factors of $n$ equals $(e_1 + 1)(e_2 + 1) \\cdots (e_m + 1)$.\n\n**Proof:** Any factor of $n$ can be represented in the form $p_1^{f_1} p_2^{f_2} \\cdots p_m^{f_m}$ with $f_j$ being an integer satisfying $0 \\le f_j \\le e_j$ for each $j = 1, 2, \\cdots, m$. It is clear that the different $m$-tuples of integers $(f_1, f_2, \\cdots, f_m)$ correspond to different factors of $n$. Therefore, the total number of factors of $n$ coincides with the number of $m$-tuples $(f_1, f_2, \\cdots, f_m)$ satisfying the conditions above. Since there are exactly $e_j + 1$ choices for $f_j$ for each $j = 1, 2, \\cdots, m$ there are $(e_1 + 1)(e_2 + 1) \\cdots (e_m + 1)$ such $m$-tuples, which proves the claim of the Theorem.\n\nLet us now show that the desired answer for the problem is 30. Suppose $n$ is an integer satisfying the condition of the problem. If $n$ has a prime factor besides 2, 3, 5, 7, then since $14 = 2 \\cdot 7$, $16 = 2^4$, $18 = 2 \\cdot 3^2$, $20 = 2^2 \\cdot 5$, the integer obtained by dividing $n$ by that prime factor is smaller than $n$ and satisfies the condition of the problem as well. So, we may assume that $n$ has only $2, 3, 5, 7$ as its prime factors. Therefore, we can write $n = 2^a \\cdot 3^b \\cdot 5^c \\cdot 7^d$, where $a, b, c, d$ are non-negative integers. If we now assume that the number of factors of $14n, 16n, 18n, 20n$ are $p, q, r, s$, respectively, then by the Theorem above, we have\n$$\np = (a + 2)(b + 1)(c + 1)(d + 2), \\quad q = (a + 5)(b + 1)(c + 1)(d + 1), \\\\\nr = (a + 2)(b + 3)(c + 1)(d + 1), \\quad s = (a + 3)(b + 1)(c + 2)(d + 1).\n$$\nIt then follows that we have\n$$\n\\begin{align*}\nq &= p \\iff (a+5)(d+1) = (a+2)(d+2) &\\iff a-1 &= 3d, \\\\\nq &= r \\iff (a+5)(b+1) = (a+2)(b+3) &\\iff 2a+1 &= 3b, \\\\\nq &= s \\iff (a+5)(c+1) = (a+3)(c+2) &\\iff a+1 &= 2c.\n\\end{align*}\n$$\nIf we make the value of $a$ bigger, $b, c, d$ also get bigger, so if $n$ is the smallest possible integer satisfying the requirement, then $a$ also has to be the smallest non-negative integer satisfying the conditions above. By substituting $a = 0, 1, \\dots$, and checking to see when all of $b, c, d$ become non-negative integers, we see that $a = 1$ is the smallest value for $a$ for which all of $b, c, d$ are non-negative integers and their values are $b = 1, c = 1, d = 0$. Thus the answer to the problem is $n = 2^1 \\cdot 3^1 \\cdot 5^1 \\cdot 7^0 = 30$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34614, "subject": "Mathematics (Multi-modal)", "question": "Suppose for a tetrahedron $OABC$, $OA = 3$, $OB = 4$, $OC = 5$, where by $XY$ we denote the length of the line segment $XY$. Suppose also that we have $\\angle AOB = \\angle AOC = 45^\\circ$, and $\\angle BOC = 60^\\circ$. Determine the volume of the tetrahedron $OABC$.", "options": [], "answer": "5", "solution": "Take points $P$, $Q$, $R$ on the line segments $OA$, $OB$, $OC$, respectively, in such a way that the conditions $OP = 1$, $\\angle OPQ = \\angle OPR = 90^\\circ$ are satisfied. Since $\\angle POQ = 45^\\circ$, we have $PQ = 1$ and $OQ = \\sqrt{2}$. Similarly, we get $PR = 1$ and $OR = \\sqrt{2}$. From $\\angle ROQ = 60^\\circ$ and $OR = OQ$, we see that the triangle $\\triangle OQR$ is an equilateral triangle, so that we have that $QR = \\sqrt{2}$. We then have $QR^2 = PQ^2 + PR^2$, from which we conclude that $\\angle RPO = 90^\\circ$. This means that the planes $AOB$ and $AOC$ intersect perpendicularly. Consequently, the foot $H$ of the perpendicular line segment drawn from the vertex $C$ to the plane $AOB$ must lie on the line $OA$, and we obtain $CH = OC \\cdot \\sin \\angle AOC = \\frac{5}{\\sqrt{2}}$.\n\nOn the other hand, the area of the triangle $\\triangle AOB$ equals\n$$\n\\frac{1}{2} \\cdot OA \\cdot OB \\cdot \\sin \\angle AOB = \\frac{1}{2} \\cdot 3 \\cdot 4 \\cdot \\sin 45^\\circ = 3\\sqrt{2}\n$$\nand therefore, we conclude that the volume of the tetrahedron $OABC$ equals\n$$\n\\frac{1}{3} \\cdot 3\\sqrt{2} \\cdot \\frac{5}{\\sqrt{2}} = 5\n$$", "topic": "Geometry", "subtopic": "Solid Geometry" }, { "id": 34615, "subject": "Mathematics (Multi-modal)", "question": "8 cubes each of edge length 1 are assembled to form a cube of edge length 2. How many straight lines are there in the space which go through at least 2 points, which are vertices of some of the 8 small cubes?\n\n![](attached_image_1.png)", "options": [], "answer": "253", "solution": "There are $3^3 = 27$ points in the space which are the vertices of the 8 small cubes assembled to form the cube of the edge length 2. There are $\\frac{27!}{2!25!} = 351$ ways of choosing 2 different points from these 27 and each chosen pair will determine a straight line in the space going through this pair. However, some of these lines will go through a third point among the 27 points, and will be counted more than once. If such a line goes through exactly 3 of the 27 points, for example, it was counted $\\frac{3!}{2!1!} = 3$ times as a line determined by a pair of points from the group. It is clear that no line will go through 4 or more points from the group of 27 points. So, let us investigate the number of lines in the space going through 3 points from the group. These lines arise in the following 3 categories:\n\n(i) Lines parallel to an edge of the large cube (with the edge length 2).\nThere are 9 such lines parallel to one of the 3 perpendicular directions determined by the edges of the large cube, and so altogether there are $9 \\times 3 = 27$ lines in this category.\n\n(ii) Lines parallel to a diagonal of one of the faces of the large cube.\nThere are 3 such lines for each such diagonal, and there are 2 diagonals on a face of the large cube, and there are 3 kinds of faces extending into 3 perpendicular directions, so there are $3 \\times 2 \\times 3 = 18$ straight lines in this category.\n\n(iii) Diagonals of the large cube.\nThere are 4 diagonals of the cube.\n\nSince each of these lines going through 3 points from the group of 27 points is counted 3 times, the number of straight lines in the space going through 2 or more points from the group of 27 points is given by $351 - (3 - 1) \\times (27 + 18 + 4) = 253$.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 34616, "subject": "Mathematics (Multi-modal)", "question": "Suppose the real numbers $x_1, x_2, x_3, x_4, x_5$ satisfy the following set of five equations:\n$$\n\\begin{cases}\nx_1x_2 + x_1x_3 + x_1x_4 + x_1x_5 = -1 \\\\\nx_2x_1 + x_2x_3 + x_2x_4 + x_2x_5 = -1 \\\\\nx_3x_1 + x_3x_2 + x_3x_4 + x_3x_5 = -1 \\\\\nx_4x_1 + x_4x_2 + x_4x_3 + x_4x_5 = -1 \\\\\nx_5x_1 + x_5x_2 + x_5x_3 + x_5x_4 = -1\n\\end{cases}\n$$\nDetermine all the possible values that the number $x_1$ can take.", "options": [], "answer": "±√2, ±√2/2", "solution": "Suppose the real numbers $x_1, x_2, \\dots, x_5$ satisfy the given set of equations. Let $a = x_1 + x_2 + \\dots + x_5$. Then, each of the five numbers $x_j, j = 1, 2, \\dots, 5$ satisfies the quadratic equation $x^2 - a x - 1 = 0$. This equation has 2 distinct real roots $\\frac{a \\pm \\sqrt{a^2 + 4}}{2}$. Denote one of the roots equaling $x_1$ by $\\alpha$ and the other by $\\beta$. Then we have $\\alpha \\beta = -1$. Furthermore, if we assume that exactly $k$ among the numbers $x_j, j = 1, 2, \\dots, 5$ equal $\\alpha$, and $5-k$ among them equal $\\beta$, we get $a = k\\alpha + (5-k)\\beta = k\\alpha - \\frac{5-k}{\\alpha}$. Substituting this into the equation $\\alpha^2 - a\\alpha - 1 = 0$, we obtain $(k-1)\\alpha^2 = 4-k$. Since $\\alpha^2 > 0$, we must have either $k=2$ or $k=3$. If we have $k=2$, then we get $\\alpha = \\pm\\sqrt{2}$, while if $k=3$, we get $\\alpha = \\pm\\frac{\\sqrt{2}}{2}$. It is easy to check that each of these values of $\\alpha$ and the corresponding values for $\\beta$ satisfy the quadratic equation $x^2 - a x - 1 = 0$, so the desired solution for the problem is given by $\\pm\\sqrt{2}, \\pm\\frac{\\sqrt{2}}{2}$.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34617, "subject": "Mathematics (Multi-modal)", "question": "Both $f(x)$ and $g(x)$ are polynomials with real coefficients, and are not identically zero. Suppose that they satisfy the following functional equation:\n$$\nf(x^3) + g(x) = f(x) + x^5g(x)\n$$\nGive an example of such a function $f(x)$ with the smallest possible degree.", "options": [], "answer": "f(x) = x^4 + x^3 + x^2 + x", "solution": "Let us try to find a polynomial $f(x)$ of degree at most $4$, which satisfies the condition of the problem with some non-zero polynomial $g(x)$. As the given equation can be rewritten in the form $f(x^3) - f(x) = (x^5 - 1)g(x)$, we see that $f(x^3) - f(x)$ must be divisible by $x^5 - 1$. Let us represent $f(x)$ as $f(x) = a_4x^4 + a_3x^3 + a_2x^2 + a_1x + a_0$, where $a_4, a_3, a_2, a_1, a_0$ are real numbers. Then, we get\n$$\nf(x^3) - f(x) = a_4(x^{12} - x^4) + a_3(x^9 - x^3) + a_2(x^6 - x^2) + a_1(x^3 - x).\n$$\nIf we divide $x^{12} - x^4$, $x^9 - x^3$ and $x^6 - x^2$ by $x^5 - 1$ we get the remainders $x^2 - x^4$, $x^4 - x^3$ and $x - x^2$, respectively. Therefore, the remainder which results when we divide $f(x^3) - f(x)$ by $x^5 - 1$ is $(-a_4 + a_3)x^4 + (-a_3 + a_1)x^3 + (a_4 - a_2)x^2 + (a_2 - a_1)x$. Consequently, the fact that $f(x^3) - f(x)$ is divisible by $x^5 - 1$ is equivalent to the validity of $-a_4 + a_3 = -a_3 + a_1 = a_4 - a_2 = a_2 - a_1 = 0$. These together imply that $a_1 = a_2 = a_3 = a_4$ so that we can conclude that $f(x)$ must be of the form $f(x) = ax^4 + ax^3 + ax^2 + ax + b$, with some pair of real numbers $a, b$. When this is the case, we can determine from $f(x^3) - f(x) = (x^5 - 1)g(x)$ that $g(x) = ax^7 + ax^4 + ax^2 + ax$. From the fact that neither $f(x)$ nor $g(x)$ are identically zero, we get that the constant $a$ must be non-zero and $b$ can be arbitrary. Hence we see that $(f(x), g(x)) = (ax^4 + ax^3 + ax^2 + ax + b, ax^7 + ax^4 + ax^2 + ax)$ gives a pair $(f(x), g(x))$, satisfying the given functional equation. Since any polynomial of degree $4$ or less can be represented in the form $a_4x^4 + a_3x^3 + a_2x^2 + a_1x + a_0$ for some choice of real numbers $a_4, a_3, a_2, a_1, a_0$, the argument above shows that the polynomial $f(x)$ desired must be of the form $f(x) = ax^4 + ax^3 + ax^2 + ax + b$ for some choice of non-zero real number $a$ and a real number $b$.\n\nAlternate Solution:\nWe can use the following theorem from the complex function theory (de Moivre's Theorem):\nFor an arbitrary angle $\\theta$ and a positive integer $n$\n$$\n(\\cos \\theta + i \\sin \\theta)^n = \\cos n\\theta + i \\sin n\\theta\n$$\nholds. Here $i$ represents the imaginary unit $\\sqrt{-1}$.\nNow, if we let $\\theta = \\frac{2\\pi}{5}$ and set $\\omega = \\cos\\theta + i\\sin\\theta$, then by de Moivre's Theorem, we get $\\omega^5 = 1$. For any positive integer $k$, we also have $(\\omega^k)^5 = (\\omega^5)^k = 1$ so that each of the five numbers $1, \\omega, \\omega^2, \\omega^3, \\omega^4$ gives a complex-valued root to the equation $x^5 - 1 = 0$. From the fact that $\\omega^k = \\cos k\\theta + i \\sin k\\theta$, it follows that these five numbers are all distinct, and therefore by the factorization theorem, we obtain that\n$$\nx^5 - 1 = (x - 1)(x - \\omega)(x - \\omega^2)(x - \\omega^3)(x - \\omega^4).\n$$\nDividing both sides of the equation above by $x - 1$, we get\n$$\nx^4 + x^3 + x^2 + x + 1 = (x - \\omega)(x - \\omega^2)(x - \\omega^3)(x - \\omega^4).\n$$\nIf we substitute $x = \\omega, \\omega^2, \\omega^3, \\omega^4$ into the identity $f(x^3) - f(x) = (x^5 - 1)g(x)$, we obtain, since $x^5 - 1 = 0$,\n$$\nf(\\omega^3) = f(\\omega), \\quad f(\\omega^6) = f(\\omega^2), \\quad f(\\omega^9) = f(\\omega^3), \\quad f(\\omega^{12}) = f(\\omega^4),\n$$\nrespectively. Since $\\omega^6 = \\omega$, $\\omega^9 = \\omega^4$, $\\omega^{12} = \\omega^2$, we see that the identities $f(\\omega) = f(\\omega^2) = f(\\omega^3) = f(\\omega^4)$ hold. Let $b$ denote the common value of these quantities, then since $f(\\omega) - b = f(\\omega^2) - b = f(\\omega^3) - b = f(\\omega^4) - b = 0$, we can conclude from the factorization theorem that $f(x) - b$ is divisible by\n$$\n(x - \\omega)(x - \\omega^2)(x - \\omega^3)(x - \\omega^4) = x^4 + x^3 + x^2 + x + 1.\n$$\nTherefore, there exists a polynomial $h(x)$ such that $f(x) = h(x)(x^4 + x^3 + x^2 + x + 1) + b$.\nIf $h(x) = 0$, we get $f(x^3) - f(x) = 0$, which forces $g(x) = 0$, contradicting the assumption. Therefore, we must have $h(x) \\neq 0$, and this shows that the degree of $f(x)$ must be at least $4$. When $h(x)$ is a non-zero constant function, then the corresponding $f(x)$ has the minimal degree of $4$, and if we write $h(x) = a$ for some non-zero number $a$, we get\n$$\n(f(x), g(x)) = (a(x^4 + x^3 + x^2 + x) + b, a(x^7 + x^4 + x^2 + x))\n$$\nas before.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34618, "subject": "Mathematics (Multi-modal)", "question": "Determine the last 3 digits of the number obtained by multiplying all the odd numbers between $1$ and $100$.", "options": [], "answer": "875", "solution": "Let $N$ be the product of all the odd integers lying in between $1$ and $100$. It is clear that the last $3$ digits of $N$ equals the remainder obtained when $N$ is divided by $1000$. Note that $1000 = 10^3 = 2^3 \\times 5^3 = 8 \\times 125$.\n\nFrom the identity $(8x + a)(8y + b) = 8(axy + a + b) + ab$, valid for any choice of integers $x, y, a, b$, it follows that for any integer $P$ which can be written as a product $P_1P_2$ of integers $P_1$ and $P_2$, the remainder obtained when $P$ is divided by $8$ is the same as the product of the remainders obtained when $P_1$ and $P_2$ are divided by $8$, respectively. Therefore, the remainder obtained by dividing $N$ by $8$ must be the product of the remainders obtained when each odd integer lying in between $1$ and $100$ are divided by $8$.\n\nWhen odd numbers $1, 3, 5, 7, 9, 11, \\dots$ are divided by $8$ the remainders $1, 3, -3, -1, 1, \\dots$ are obtained, and one can see easily that the block of $4$ numbers $1, 3, -3, -1$, repeats $12$ times and followed by $1, 3$ (as $97 = 8 \\times 12 + 1$ and $99 = 8 \\times 13 + 3$). Therefore, we can conclude that the remainder obtained when $N$ is divided by $8$ equals the remainder obtained by dividing $3^{25}$ by $8$, and this number equals $3$, since $3^{25} = 9^{12} \\times 3$, and the remainder obtained by dividing $9$ by $8$ is $1$.\n\nFurthermore, since $1000$ is divisible by $8$, the remainder obtained when the last $3$-digits of $N$ is divided by $8$ must also be $3$. From these considerations we conclude that the solution to the problem is given by the number between $0$ and $999$ which is a multiple of $125$ and gives a remainder $3$ when divided by $8$. The number $875$ is the only number satisfying these requirements and is the desired answer.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34619, "subject": "Mathematics (Multi-modal)", "question": "10 language interpreters are invited to participate in an international mathematical contest. Each of the 10 interpreters is proficient in exactly 2 among the 5 following languages: Greek, Slovanian, Vietnamese, Spanish and German. Furthermore, the combinations of the 2 proficient languages among the 5 are all different for the interpreters. It is decided that the interpreters are distributed into 5 rooms, 2 people per room, in such a way that each pair of the interpreters assigned to the same room shares a common language of proficiency. How many different ways of distributing interpreters satisfy this requirement? Do not distinguish the two arrangements of room assignments in which all the five pairs occupying the same room are identical.", "options": [], "answer": "144", "solution": "Let us call the interpreter proficient in the pair of different languages $X$, $Y$ $I_{XY}$. Suppose the interpreters are assigned to 5 rooms satisfying the condition of the problem. For each room call the language which the 2 occupants of the room can speak the **common** language of the room. By assumptions made for the problem, for each of the languages, say $L$, there are exactly 4 interpreters who are proficient in $L$. If there are 3 or more rooms having a language $L$ as the common language, then there must be $2 \\times 3 = 6$ or more interpreters who are proficient in $L$, which contradicts the assumption. Hence for each of the languages, the number of rooms which have that language as the common language must be at most 2. Suppose two different languages $L_1$ and $L_2$ are the common languages of 2 different rooms, then 4 interpreters proficient in the language $L_1$ must be staying in the 2 rooms whose common language is $L_1$, 4 interpreters proficient in the language $L_2$ must be staying in the 2 rooms whose common language is $L_2$. But, then the interpreter $I_{L_1 L_2}$ would have to be staying in 2 different rooms, which is impossible. Therefore, the following 2 cases exhaust all the possibilities:\n\n(i) The common languages are all different for the 5 rooms.\n\n(ii) There exists a pair of rooms whose common languages are the same.\n\nFirst, let us consider the case (i).\n\nSince there are 5 languages and 5 rooms, every language is a common language of one and only one room. Denote by $G$ the German, and the room whose common language is German by $R_G$. Suppose languages $A$, $B$ are the languages different from German that the 2 interpreters staying in $R_G$ are proficient in, respectively. There are 2 other interpreters besides those 2 in the room $R_G$ who are proficient in German. These 2 are staying in different rooms, since if they are staying in a same room, then there would be 2 rooms whose common language is German, contradicting the assumption of (i). So, let those 2 rooms be $R_C$ and $R_D$ with respective common language being $C$ and $D$. If the languages $C$ and $A$ are the same, then there would be 2 interpreters whose proficient languages are $G$ and $A$, contradicting the assumption. Thus $C$ has to be different from $A$, and for the same reason, $C$ is different from $B$. Similarly, $D$ has to be different from both $A$ and $B$, now the common languages of the 2 rooms besides $R_G, R_C, R_D$ must be $A$ and $B$, respectively. Call these 2 rooms $R_A$ and $R_B$, respectively. We know that the interpreter $I_{AB}$ must be staying in the room $R_A$ or $R_B$, and $I_{CD}$ in $R_C$ or $R_D$. Suppose $I_{AB}$ is staying in the room $R_A$ and $I_{CD}$ is staying in the room $R_C$. Then, there are 1 spot each in the rooms $R_D$ and $R_A$, 2 spots in the room $R_B$ to be filled by the remaining 4 interpreters $I_{AC}, I_{AD}, I_{BC}, I_{BD}$. Among these 4 interpreters, only 2 who are proficient in the language $B$, namely $I_{BC}$ and $I_{BD}$ can go into the room $R_B$. But then, the only interpreter who can go into the room $R_D$ is $I_{AD}$ who is proficient in the language $D$, and the remaining interpreter $I_{AC}$ goes into the room $R_A$. Summarizing we get the room assignment as follows:\n\n$$\nR_G : I_{GA}, I_{GB}, \\quad R_A : I_{AB}, I_{AC}, \\quad R_B : I_{BC}, I_{BD}, \\quad R_C : I_{GC}, I_{CD}, \\quad R_D : I_{GD}, I_{AD}.\n$$\n\nThis room assignment clearly satisfies the condition of the problem. There are 3 other choices for the combination of the rooms for $I_{AB}$ and $I_{CD}$ to go in to start the argument above. But for each of the choices made, the exactly same argument as above, gives a room assignment (all distinct) which satisfies the requirement. There are also $\\frac{4!}{2!2!}$ ways of choosing the languages $A$, $B$ and once the choice is made $C$, $D$ are determined. There are $2 \\times 2$ ways of determining the rooms for $I_{AB}$, $I_{CD}$ to go in, and once these are decided, then as we saw above a room assignment for all the interpreters satisfying the requirement of the problem is determined uniquely. Hence the number of room assignments satisfying the requirement under the condition (i) is $\\frac{4!}{2!2!} \\times 2 \\times 2 = 24$.\n\nNext we consider the case (ii),\n\nLet the language $L$ be the common language for both of the rooms $R_{L_1}$ and $R_{L_2}$. Let $(R_A, A)$, $(R_B, B)$, $(R_C, C)$ be the 3 remaining rooms with their respective common languages. $L$, $A$, $B$, $C$ are distinct languages. Let $X$ be the remaining language different from any of $L$, $A$, $B$, $C$. All of the 4 people staying in the rooms $R_{L_1}$ and $R_{L_2}$ are proficient in the language $L$, so none of the people staying in other 3 rooms are proficient in $L$. The interpreter $I_{XA}$ cannot stay in any of the rooms $R_{L_1}$, $R_{L_2}$, $R_B$, $R_C$ because the common language of the room he stays must either be $A$ or $X$. Hence he has to stay in the room $R_A$. Similarly, $I_{XB}$ has to stay in the room $R_B$ and $I_{XC}$ in the room $R_C$. The interpreter $I_{AB}$ can stay either in $R_A$ or $R_B$. Let us suppose that he stays in $R_A$. (Subsequent argument will work in the same way if we assume that $I_{AB}$ stays $R_B$ instead.) Then, 2 people to stay in the room $R_A$ are decided so the interpreter $I_{AC}$ has to stay in $R_C$, and this determines the 2 people who should go into the room $R_C$, which in turn determines that the interpreter $I_{BC}$ has to go into the room $R_B$. Remaining 4 interpreters $I_{LA}$, $I_{LB}$, $I_{LC}$, $I_{LX}$ can go into the remaining 2 rooms $R_{L_1}$ and $R_{L_2}$ (with 2 people in a room) in any combination. There are $\\frac{4!}{2!2!} = 3$ ways of determining who should occupy these 2 rooms (Note that we do not distinguish the rooms in counting the number of possible distributions.) As we saw above, if we decide whether the interpreter $I_{AB}$ goes into the room $R_A$ or $R_B$, then the occupants of the rooms $R_A$, $R_B$, $R_C$ will be determined completely. Thus, when the combination of common languages is determined, then there are $3 \\times 2 = 6$ ways of room assignments. The combination of the common languages is determined if the language $L$ is picked from the 5 given languages and then the language $X$ is chosen from the remaining 4. Consequently, there are $5 \\times 4 = 20$ ways of determining the combination of the common languages, and the number of room assignments satisfying the requirement under the condition (ii) is $6 \\times 20 = 120$ and the total number of the room assignments is $24 + 120 = 144$.", "topic": "Discrete Mathematics", "subtopic": "Combinatorics" }, { "id": 34620, "subject": "Mathematics (Multi-modal)", "question": "$OA = 2$, $OB = 3$, $OC = 4$, $\\angle AOB = \\angle BOC = \\angle COA$\nare satisfied. Furthermore, there is a point $X$ on the base $ABC$ for which\n$\\angle AOX = \\angle BOX = \\angle COX = 30^\\circ$.\nDetermine the volume of this triangular pyramid $OABC$. Here, by $PQ$ we denote the length of the line segment $PQ$.", "options": [], "answer": "9/4", "solution": "Choose points $P$, $Q$ on the line segments $OB$, $OC$, respectively in such a way that $OP = OQ = 2$. Let us compare the volumes of the triangular pyramids $OABC$ and $OAPQ$. Considering the triangles $\\triangle OBC$ and $\\triangle OPQ$ as their respective bases and $A$ as their top vertex, we have that\n$$\n\\frac{\\text{the volume of the pyramid } OABC}{\\text{the volume of the pyramid } OAPQ} = \\frac{\\text{the area of } \\triangle OBC}{\\text{the area of } \\triangle OPQ} = \\frac{OB \\cdot OC}{OP \\cdot OQ} = 3\n$$\nConsequently, we will try to find the volume of the pyramid $APQ$ and multiply it by $3$ to find the desired answer.\nSince $OA = OP = OQ$, and $\\angle AOP = \\angle POQ = \\angle QOA$, we see that the triangles $\\triangle OAP$, $\\triangle OPQ$, and $\\triangle OQA$ are all congruent, and therefore, we can conclude that the triangle $\\triangle APQ$ is an equilateral triangle. Furthermore, if we let $Y$ be the point of intersection of the line segment $OX$ and the triangle $\\triangle APQ$, then we have $\\angle AOY = \\angle BOY = \\angle COY = 30^\\circ$, and since we also have $OA = OP = OQ$, we conclude that the triangles $\\triangle OAY$, $\\triangle OPY$ and $\\triangle OQY$ are all congruent. Therefore, we have $AY = PY = QY$, and we see that both of the points $O$ and $Y$ are equidistant from the points $A$ and $P$. The set of all points which are equidistant from the points $A$ and $P$ forms a plane perpendicular to the line segment $AP$, so we must have $OP \\perp AP$, and similarly, $OY \\perp PQ$. Consequently, $OP$ is perpendicular to the plane $APQ$. For the triangle $OAP$, we get $OY = \\sqrt{3}$, $AY = PY = QY = 1$, since $OA = 2$, $\\angle AYO = 90^\\circ$, $\\angle AOY = 30^\\circ$. Thus, we get $AP = PQ = QA = \\sqrt{3}$ and the area of the triangle $\\triangle APQ$ equals $\\frac{1}{2} \\cdot \\sqrt{3} \\cdot \\frac{3}{2} = \\frac{3\\sqrt{3}}{4}$. The volume of the triangular pyramid $OAPQ$ equals $\\frac{1}{3} \\cdot \\frac{3\\sqrt{3}}{4} \\cdot \\sqrt{3} = \\frac{3\\sqrt{3}}{4}$ and finally, the volume of the triangular pyramid $OABC$ equals $3 \\cdot \\frac{3}{4} = \\frac{9}{4}$.", "topic": "Geometry", "subtopic": "Solid Geometry" }, { "id": 34621, "subject": "Mathematics (Multi-modal)", "question": "How many sextuples $(a, b, c, d, e, f)$ of positive integers are there for which conditions $a > b > c > d > e > f$ and $a+f = b+e = c+d = 22$ are satisfied?", "options": [], "answer": "120", "solution": "To each $n$ chosen from the set of integers $1, 2, \\ldots, 10$, there is a pair $(m, n)$ of integers satisfying the conditions $m > n$ and $m + n = 22$. Therefore, there are exactly $10$ such pairs $(m, n)$. Finding sextuples $(a, b, c, d, e, f)$ satisfying the conditions of this problem is equivalent to finding triplets of pairs $(m, n)$ from this set of $10$ pairs. In fact, if we order the $3$ pairs chosen as $(a, f), (b, e), (c, d)$ starting with the smallest and increasing the value of $n$ (hence $f < e < d$), then associate this triplet with the sextuple $(a, b, c, d, e, f)$. We then see that it satisfies the condition $a > b > c > d > e > f$ of the problem. Conversely, any such sextuple arises from a triplet of pairs from the set of $10$ pairs considered above. Therefore, the number we seek is given by $10C3 = 120$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34622, "subject": "Mathematics (Multi-modal)", "question": "Let $n$ be a positive integer greater than or equal to 3. Determine all those $n$'s for which there exists an $n$-gon with all the sides having the same length and with all its interior angles having either $120^\\circ$ or $240^\\circ$.", "options": [], "answer": "n = 6 or n is even and at least 10", "solution": "We will show that $n = 6$ and $n = 2k$, where $k$ is an integer greater than or equal to 5, satisfy the condition of the problem and that there are no other $n$ satisfying the requirement.\n\nFirst, let us show that $n = 6$ and $n = 2k$ with $k \\ge 5$ satisfy the condition of the problem.\n\n![](attached_image_1.png)\n\nLet us consider figures obtained by piecing together a number of regular hexagons as shown in the diagram above. The figure on the left in the diagram above is a $(6+4m)$-gon, and the one on the right is a $(12+4m)$-gon. So, we see that $n = 6+4m$, $12+4m$, where $m$ is a non-negative integer, satisfy the condition of the problem. Since the numbers $6$ and $2k$ with $k$ being an integer greater than or equal to $5$, can be expressed in the form $6+4m$ or $12+4m$, we see that these numbers satisfy the condition of the problem.\n\nWe next show that no other numbers satisfy the condition of the problem. Let us suppose that a number $n$ greater than or equal to $3$ satisfies the condition of the problem, and denote by $\\ell$ the number (greater than or equal to $0$) of inner angles with $240^\\circ$ of the $n$-gon satisfying the condition of the problem. Then, since the sum of all the inner angles of an $n$-gon is $(n-2) \\times 180^\\circ$, we have\n$$\n(n - 2) \\times 180 = (n - \\ell) \\times 120 + \\ell \\times 240,\n$$\nfrom which we conclude that $n = 2\\ell + 6$. This means that if $n$ is an odd integer or is equal to $4$, then it does not satisfy the condition of the problem. Therefore, it remains only to show that if $n = 8$, then the condition is not satisfied. So, let us suppose that $n = 8$. It then follows that $\\ell = 1$, and thus the octagon which satisfies the condition must have $7$ inner angles with $120^\\circ$ each, and $1$ inner angle with $240^\\circ$. It must be the case, then, that the $7$ inner angles with $120^\\circ$ would appear consecutively in the figure of this octagon, but this is impossible, since $6$ inner angles with $120^\\circ$ appearing consecutively will form a regular hexagon because of the assumption that the length of each side must be the same. Thus, we conclude that $n = 8$ cannot satisfy the condition of the problem.\n\nThis establishes our claim that $n$ must equal $6$ or of the form $2k$ with $k$ being greater than or equal to $5$ in order to satisfy the condition of the problem.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34623, "subject": "Mathematics (Multi-modal)", "question": "For an acute triangle $ABC$ satisfying $AB \\neq AC$, denote by $H$ the foot of the perpendicular line segment drawn from the point $A$ to the side $BC$. Take points $P$ and $Q$ in such a way that the 3 points $A$, $B$, $P$ and the 3 points $A$, $C$, $Q$ lie on a straight line in the given order, respectively. If the 4 points $B$, $C$, $P$, $Q$ lie on the circumference of a circle, and if the condition $HP = HQ$ is satisfied, prove that the point $H$ must coincide with the circum-center of the triangle $APQ$.\n\nHere we mean by $XY$ the length of the line segment $XY$.", "options": [], "answer": "Detailed solution", "solution": "Without loss of generality we may assume that $AB < AC$ is satisfied. Let us write, for the sake of simplicity, $\\angle B$ for $\\angle ABC$ and $\\angle C$ for $\\angle BCA$.\n\nUsing the fact that the points $B$, $P$, $Q$, $C$ lie on the circumference of the same circle, we get\n$$\n\\angle AQH - \\angle APH = \\angle AQP - \\angle APQ = \\angle B - \\angle C,\n$$\nfrom which it follows that\n$$\n\\begin{aligned}\n\\angle AHP - \\angle AHQ &= (90^\\circ + \\angle BHP) - (90^\\circ + \\angle CHQ) \\\\\n&= (\\angle B - \\angle APH) - (\\angle C - \\angle AQH) = 2(\\angle B - \\angle C).\n\\end{aligned}\n$$\nLet $P'$ be the point symmetrically located to the point $P$ with respect to the line $AH$. Then, we have\n$$\n\\angle QHP' = \\angle AHP' - \\angle AHQ = \\angle AHP - \\angle AHQ = 2(\\angle B - \\angle C)\n$$\nWe also have\n$$\n\\angle QAP' = \\angle HAQ - \\angle HAP' = \\angle HAQ - \\angle HAP = \\angle B - \\angle C.\n$$\nConsequently, we have $\\angle QHP' = 2\\angle QAP'$. Since the two points $A$, $H$ lie in the same half plane determined by the line $P'Q$, it follows from $\\angle QHP' = 2\\angle QAP'$ and $HP' = HQ$ that the point $A$ lies on the circumference of the circle with center $H$ and the radius $HQ$. Hence, we have $HA = HQ = HP$ and this proves the assertion of the problem.\n\n\n**Alternate Solution:** Assume that $AB < AC$. Let $O$ be the circum-center of the triangle $APQ$ and $M$ be the mid-point of the line segment $PQ$. Then, since both $H$ and $O$ lie on the perpendicular bisector of the line segment $PQ$, the points $M$, $H$, $O$ lie on the same straight line. On the other hand, since\n$$\n\\angle PAO = \\frac{180^\\circ - \\angle AOP}{2} = 90^\\circ - \\angle AQP = 90^\\circ - \\angle B = \\angle PAH,\n$$\nthe points $A$, $H$, $O$ also lie on the same straight line.\nFrom\n$$\n\\begin{aligned}\n\\angle AHM &= 360^\\circ - \\angle HAQ - \\angle AQM - \\angle QMH \\\\\n&= 270^\\circ - (90^\\circ - \\angle C) - \\angle B = 180^\\circ - \\angle B + \\angle C \\neq 180^\\circ\n\\end{aligned}\n$$\nwe see that the lines $AH$ and $MH$ are not parallel. Since both lines $AH$ and $MH$ pass through both of the points $O$ and $H$, these points must coincide. Therefore, we have shown that $H$ is the circum-center of the triangle $APQ$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34624, "subject": "Mathematics (Multi-modal)", "question": "A positive integer with 2 digits was given. When it was multiplied by $7$ it became a $3$-digit number. When that $3$-digit number was multiplied again by $7$, it remained as a $3$-digit number. How many possibilities are there for the original $2$-digit number?", "options": [], "answer": "6", "solution": "Let $n$ be the given integer, then from the first condition we have $100 \\le 7n < 1000$, from which we get $15 \\le n < 142$. From the second condition, we have $100 \\le 7^2n < 1000$, which yields $3 \\le n \\le 20$. Therefore, we get $15 \\le n \\le 20$, and any integer $n$ satisfying the last inequalities satisfies the conditions of the problem. Hence there are $6$ such integers.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34625, "subject": "Mathematics (Multi-modal)", "question": "For a positive integer $n$, denote by $S(n)$ the sum of the digits of $n$. If $S(n) = 5$, what is the maximum possible value that $S(n^5)$ can take?", "options": [], "answer": "398", "solution": "First, let us prove the following lemma.\n\n**Lemma:** For any set of positive integers $m_1, m_2, \\dots, m_k$, we have the inequality\n$$\nS\\left(\\sum_{i=0}^{k} m_i\\right) \\le \\sum_{i=0}^{k} S(m_i).\n$$\nFurthermore, equality holds in the inequality above if the following condition is satisfied:\nFor any nonnegative integer $j$, the $10^j$-th digit of $m_i = 0$ for all but at most one $i$.\n\n**Proof:** Whenever there is a carry-over of digits when the addition $\\sum_{i=0}^{k} m_i$ is performed, there occurs the reduction by 9 for the value of the sum of digits. Thus, the inequality is satisfied. If the additional condition is satisfied then no carry-over of digits will occur and we get the equality.\n\nFor a quintuple $(a_1, \\dots, a_5)$ of non-negative integers satisfying the condition $a_1 + \\dots + a_5 = 5$ (in the sequel, we simply call such \"a quintuple\"), denote by $f(a_1, \\dots, a_5)$ the coefficient of the term $X_1^{a_1} \\cdots X_5^{a_5}$ in the expansion of the multinomial $(X_1 + X_2 + X_3 + X_4 + X_5)^5$. The values of $f(a_1, \\dots, a_5)$ are given by $\\frac{5!}{a_1! a_2! \\cdots a_5!}$ for each quintuple $(a_1, \\dots, a_5)$ (we use the convention $0! = 1$).\n\nNow, since $n$ satisfies the condition $S(n) = 5$, we can represent $n$ in the form $n = 10^{k_1} + 10^{k_2} + 10^{k_3} + 10^{k_4} + 10^{k_5}$, using non-negative integers $k_1, k_2, k_3, k_4, k_5$. (Note that the $k_j$'s need not have distinct values.) Then, using the multinomial expansion we can write\n$$\nn^5 = \\sum f(a_1, \\dots, a_5) 10^{a_1 k_1 + \\dots + a_5 k_5},\n$$\nwhere the sum is taken over all possible quintuples $(a_1, \\dots, a_5)$. By using the Lemma, we then get\n$$\nS(n^5) \\le \\sum S(f(a_1, \\dots, a_5) \\cdot 10^{a_1 k_1 + \\dots + a_5 k_5}) = \\sum S(f(a_1, \\dots, a_5)) \\quad (1)\n$$\nHere again the sums are taken over all possible quintuples $(a_1, \\dots, a_5)$.\n\nFor a quintuple $(a_1, \\dots, a_5)$, let us denote by $(b_1, \\dots, b_5)$ a quintuple obtained by rearranging the entries in decreasing order. Then, there are only the following 7 possibilities for $(b_1, \\dots, b_5)$:\n$$\n(5, 0, 0, 0, 0),\\ (4, 1, 0, 0, 0),\\ (3, 2, 0, 0, 0),\\ (3, 1, 1, 0, 0),\\\\ (2, 2, 1, 0, 0),\\ (2, 1, 1, 1, 0),\\ (1, 1, 1, 1, 1),\n$$\nand each of these $(b_1, \\dots, b_5)$ corresponds to 5, 20, 20, 30, 30, 20, 1 different $(a_1, \\dots, a_5)$'s, respectively. Furthermore, we have $f(a_1, \\dots, a_5) = f(b_1, \\dots, b_5)$ if $(b_1, \\dots, b_5)$ is the decreasing arrangement of $(a_1, \\dots, a_5)$. The value of $f(b_1, \\dots, b_5)$ for the 7 different $(b_1, \\dots, b_5)$'s are given by 1, 5, 10, 20, 30, 60, 120, respectively. Therefore, we have that the value of $\\sum S(f(a_1, \\dots, a_5))$ is given by\n$$\n5 \\cdot S(1) + 20 \\cdot S(5) + 20 \\cdot S(10) + 30 \\cdot S(20) + 30 \\cdot S(30) + 20 \\cdot S(60) + 1 \\cdot S(120), \\\\\n\\text{which equals } 5 \\cdot 1 + 20 \\cdot 5 + 20 \\cdot 1 + 30 \\cdot 2 + 30 \\cdot 3 + 20 \\cdot 6 + 1 \\cdot 3 = 398. \\text{ Therefore,} \\\\\n\\text{we have } S(n^5) \\le 398.\n$$\n\nFinally, let us show that it is possible to construct $n$ for which $S(n^5) = 398$. Choose $k_1, \\dots, k_5$ suitably so that for any pair of different quintuples $(a_1, \\dots, a_5)$ the corresponding values of $a_1 k_1 + \\dots + a_5 k_5$ differ at least by 3 (for instance, let $k_i = 3 \\times 6^{i-1}$ for $i = 1, \\dots, 5$). Then, since $f(a_1, \\dots, a_5) < 10^3$ is satisfied for any quintuple $(a_1, \\dots, a_5)$, for any non-negative $j$ the coefficient of $10^j$ term in the sum $\\sum f(a_1, \\dots, a_5) 10^{a_1 k_1 + \\dots + a_5 k_5}$ is 0 except for at most one quintuple $(a_1, \\dots, a_5)$.\n\nTherefore, by the Lemma, we have the equality in the inequality (1). This shows that 398 is the desired answer to the problem.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34626, "subject": "Mathematics (Multi-modal)", "question": "30 students took a test consisting of three problems. Problems were worth 1, 2, 4 points respectively if solved correctly, and no partial credits were given for any of the problems. Suppose that for each of the problems there were 10 students answering it correctly. How many different possibilities were there for the set of 30 grades obtained by students? We consider two sets of 30 grades to represent a same set if one is a permutation of the other.", "options": [], "answer": "1296", "solution": "1296\n\nBecause of the way the grading was done, it is the case that two students receive the same grades only if the problems they answer correctly are exactly the same. Designate problems as the problem I, II, and III, corresponding to the grades 1, 2 and 4 for a correct answer, respectively. The possibilities for the total score for each of the students are $0, 1, 2, 3, 4, 5, 6, 7$. Since two sets of 30 grades will not be distinguished if one is a permutation of the other, the answer we seek is to determine how many ways we can select, under the conditions of the problem, 8 numbers corresponding to the numbers of students receiving grades of $j$ points for $0 \\le j \\le 7$.\n\nLet us denote by $a, b, c, d$ the number of students who received 7, 6, 5, 3 points, respectively. Note that a student had to answer all 3 problems correctly to receive 7 points, problems II and III correctly and not problem I to receive 6 points, problems I and III correctly and not problem II to receive 5 points, and problems I and II correctly and not problem III to receive 3 points. Then, since for each problem there were 10 students who answered it correctly, we have\n$$\na+c+d \\le 10, \\quad a+b+d \\le 10, \\quad a+b+c \\le 10. \\quad (**)\n$$\nConversely, if we determine a quadruple $(a, b, c, d)$ of nonnegative integers satisfying the set of inequalities above, then we can determine the number of students receiving the grades of 0, 1, 2, 4 points, respectively, as\n$$\n2a+b+c+d, \\quad 10-a-c-d, \\quad 10-a-b-d, \\quad 10-a-b-c,\n$$\n(note that each of these numbers will be non-negative), and therefore, we can determine the set of 8 numbers uniquely. Thus, we see that the solution of the problem can be obtained by finding the number of the quadruples $(a, b, c, d)$ of non-negative integers which satisfy the 3 inequalities in (**).\n\nCase (1): When the number $a$ is even.\nIn this case, we can write $a = 10 - 2n$ by using some integer $n$ with $0 \\le n \\le 5$.\n* If the maximum of the numbers $b, c, d$ is less than or equal to $n$, then all 3 inequalities in (***) are satisfied, and $(b, c, d)$ can be any triple of non-negative integers less than or equal to $n$, and therefore, there are $(n+1)^3$ possible choices in this case.\n* If the maximum of the numbers $b, c, d$ is greater than or equal to $n+1$, let this maximum be $2n-k$. Then, $k$ is a non-negative integer less than or equal to $n-1$, and the pair of non-maximum numbers of $b, c, d$ can be any of $(k+1)^2$ pairs of non-negative numbers less than or equal to $k$. Since the maximum can be any of $b, c, d$, there are $3(k+1)^2$ possibilities, and hence the number of possible ways of choosing $(b, c, d)$ for the case where the maximum of $b, c, d$ is greater than or equal to $n+1$ is the sum $\\sum_{k=0}^{n-1} 3(k+1)^2 = \\frac{n(n+1)(2n+1)}{2}$ for $n=0, 1, 2, 3, 4, 5$.\n\nCase (2): When the number $a$ is odd.\nIn this case, we can write $a = 9 - 2n$ by using some integer $n$ with $0 \\le n \\le 4$.\n* If the maximum of the numbers $b, c, d$ is less than or equal to $n$, $(b, c, d)$ can be, as in the case above for $a$ being even, any triple of non-negative integers less than or equal to $n$, and hence there are $(n+1)^3$ possible choices in this case.\n* If the maximum of the numbers $b, c, d$ is greater than or equal to $n+1$, let this maximum be $2n-k+1$. Then, $k$ is a non-negative integer less than or equal to $n$, and we can conclude as in the case above for $a$ being even, there are $3(k+1)^2$ possibilities, and the number of possible ways of choosing $(b, c, d)$ for the case where the maximum of $b, c, d$ is greater than or equal to $n+1$ is the sum $\\sum_{k=0}^{n} 3(k+1)^2 = \\frac{(n+1)(n+2)(2n+3)}{2}$ for $n=0, 1, 2, 3, 4$.\n\nSumming all the possibilities considered above, we obtain\n$$\n\\sum_{n=0}^{5} (n+1)^3 + \\sum_{n=0}^{5} \\frac{n(n+1)(2n+1)}{2} + \\sum_{n=0}^{4} (n+1)^3 + \\sum_{n=0}^{4} \\frac{(n+1)(n+2)(2n+3)}{2},\n$$\n$$\n2(1^3 + 2^3 + 3^3 + 4^3 + 5^3) + 6^3 + (6 + 30 + 84 + 180 + 330) = 1296.\n$$\n\nSo, we conclude that 1296 is the desired answer to the problem.", "topic": "Discrete Mathematics", "subtopic": "Combinatorics" }, { "id": 34627, "subject": "Mathematics (Multi-modal)", "question": "How many triplets $(a, b, c)$ of positive integers less than or equal to $2010$ are there for which $a + b + c$ is a multiple of each of $a$, $b$, $c$? We regard such triplets as ordered triplets (i.e., two such triplets are considered different if the same set of three numbers appear in a different order.)", "options": [], "answer": "9045", "solution": "Since the condition of the problem is symmetric with respect to $a$, $b$, $c$, let us assume, to begin with, that $a \\le b \\le c$ is satisfied. We consider the effect of permuting the order of $a$, $b$, $c$ later. Let us determine the form that $(a, b, c)$ has to take if $a+b+c$ is a multiple of each of $a$, $b$, $c$ without worrying about the restriction that $a$, $b$, $c$ are less than equal to $2010$.\n\nSince $a+b+c$ is a multiple of $c$, $a+b$ must be a multiple of $c$, and since $0 < a+b \\le 2c$, we must have, either $a+b=c$ or $a+b=2c$. If $a+b=2c$, then we have $a=b=c$. Conversely, for an arbitrary positive integer $k$, $(k, k, k)$ satisfies the condition of the problem.\n\nIf $a+b=c$, then since $2c = a+b+c$ is a multiple of both $a$ and $b$, we can write $a = \\frac{2c}{m}, b = \\frac{2c}{n}$, using positive integers $m, n$. From $a+b=c$, it follows that $\\frac{1}{m} + \\frac{1}{n} = \\frac{1}{2}$. Since $a \\le b$, we have $\\frac{1}{m} \\le \\frac{1}{n}$, and hence $\\frac{1}{2} = \\frac{1}{m} + \\frac{1}{n} \\le \\frac{2}{n}$. So, we conclude that $n \\le 4$.\n\nIf $n=4$, we get $m=4$ so that $a=b=\\frac{c}{2}$, and hence $c=2a$. Conversely, for any positive integer $k$, $(k, k, 2k)$ satisfies the condition of the problem.\n\nIf $n=3$, we get $m=6$ and we get $a = \\frac{c}{3}, b = \\frac{2c}{3}$, from which we obtain $b = 2a, c = 3a$. Conversely, for any positive integer $k$, $(k, 2k, 3k)$ satisfies the condition of the problem.\n\nFinally, if $n \\le 2$, then we must have $\\frac{1}{m} \\le 0$, which is impossible. So, this case does not occur.\n\nThus, we can conclude that under the condition $a \\le b \\le c$, the only possible triples satisfying the condition of the problem are of the three types $(k, k, k)$, $(k, k, 2k)$, $(k, 2k, 3k)$.\n\nNow, let us consider the effect of the restriction that $a$, $b$, $c$ are all less than or equal to $2010$, and take care the effect of permuting the order of $a$, $b$, $c$.\n\nIn the case of $(k, k, k)$, we can take any value for $k$, $1 \\le k \\le 2010$, and permutations will not introduce new solutions. So, there are $2010$ cases of this type. In the case of $(k, k, 2k)$ the condition $2k \\le 2010$ implies that there are $1005$ possibilities for $k$, and permutations introduce $3$ possibilities for each $k$, namely $(k, k, 2k)$, $(k, 2k, k)$, $(2k, k, k)$. Hence we have $3 \\times 1005 = 3015$ cases of this type. In case of $(k, 2k, 3k)$ we similarly conclude that $k$ can take $\\frac{2010}{3} = 670$ possible values and all possible permutations of $(a, b, c)$ will yield different choice so we get $6 \\times 670 = 4020$ cases of this type.\n\nSummarizing the considerations above, we get $2010 + 3015 + 4020 = 9045$ for the answer to the problem.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34628, "subject": "Mathematics (Multi-modal)", "question": "Let $ABC$ be a triangle for which $\\angle BAC = 60^\\circ$. Let $P$ ($Q$) be the point of intersection of the bisector of $\\angle ABC$ ($\\angle ACB$) and the side $AC$ ($AB$), respectively. Denote by $r_1$ ($r_2$) the radius of the in-circle of the triangle $ABC$ ($APQ$), respectively. Determine the radius of the circum-circle of the triangle $APQ$ in terms of $r_1$ and $r_2$.", "options": [], "answer": "2(r1 - r2)", "solution": "Let us denote by $I$, the intersection of $BP$ and $CQ$, which is the in-center of the triangle $ABC$. Let $I'$ be the in-center of the triangle $APQ$. Since both $AI$ and $AI'$ are the bisector of $\\angle BAC$, the points $A, I, I'$ lie on the same line. If we denote by $D$ the point of tangency of the in-circle of the triangle $ABC$ on the side $AB$, then $ID$ is a radius of the in-circle of the triangle $ABC$, and so we have $ID = r_1$. From\n$\\angle IAD = \\frac{1}{2}\\angle BAC = 30^\\circ$ and $\\angle IDA = 90^\\circ$, we get $AI = 2ID = 2r_1$. Similarly, we obtain that $AI' = 2r_2$.\nLet us denote by $O$ the circum-center of the triangle $APQ$, and let $R$ be the radius of the circum-circle of the triangle $APQ$. Then, we have\n$$\n\\angle BIQ = \\angle IBC + \\angle ICB = \\frac{1}{2}(\\angle ABC + \\angle ACB) = \\frac{1}{2}(180^\\circ - \\angle BAC) = 60^\\circ = \\angle PAQ,\n$$\nfrom which we conclude that the 4 points $A, P, I, Q$ lie on the circumference of a same circle. This circle has its center at $O$. Consequently, we have $\\angle POI = 2\\angle PAI = \\angle BAC = 60^\\circ$, which implies that the triangle $POI$ is an equilateral triangle, and hence $PI = OP = R$.\nSince the 4 points $A, P, I, Q$ lie on the circumference of a same circle, we have $\\angle IPQ = \\angle IAQ$. This fact together with $\\angle IAQ = \\angle IAP$ and $\\angle API' = \\angle QPI'$ imply\n$$\n\\angle IPI' = \\angle IPQ + \\angle QPI' = \\angle IAQ + \\angle QPI' = \\angle IAP + \\angle API' = \\angle II'P,\n$$\nand hence we obtain $I'I = PI = R$, and since we have $2r_1 = 2r_2 + R$ from $AI = AI' + I'I$, we conclude that $R = 2(r_1 - r_2)$.\n\n\n**Alternate Solution.** Let $BC = a$, $CA = b$, $AB = c$, Choose the points $I, D$ and $O$ as in the solution above. We then get $\\angle BIQ = 60^\\circ$ just as in the solution above.\nTake the point $T$ on the side $BC$ which satisfies the condition $BT = BQ$. The triangles $BQI$ and $BTI$ are congruent since they share the side $BI$ and $BQ = BT$, $\\angle QBI = \\angle TBI$ are satisfied. Consequently, we have\n$$\n\\angle BIT = \\angle BIQ = 60^\\circ, \\quad \\angle CIT = 180^\\circ - \\angle BIT - \\angle BIQ = 60^\\circ.\n$$\nThe triangles $CIP$ and $CIT$ are also congruent since they share the side $CI$ and $\\angle CIP = \\angle BIQ = 60^\\circ = \\angle CIT$ and $\\angle ICP = \\angle ICT$ are satisfied. Hence we have $CP = CT$. Consequently, we get\n$$ BQ + CP = BT + CT = BC = a, \\quad AP + AQ = AC + AB - (BQ + CP) = b+c-a. $$\nThese, together with $AD = \\frac{1}{2}(b+c-a)$, give us $AP + AQ = 2AD$. Since $AD = \\sqrt{3}ID = \\sqrt{3}r_1$, which follows from $\\angle IAD = \\frac{1}{2}\\angle BAC = 30^\\circ$ and $\\angle IDA = 90^\\circ$, we conclude that $AP + AQ = 2\\sqrt{3}r_1$. If we let $E$ be the point of tangency of the in-circle of the triangle $APQ$ to the side $AQ$, then we similarly get $AE = \\sqrt{3}r_2$. From $AE = \\frac{1}{2}(AP + AQ - PQ)$ it follows that $PQ = AP + AQ - 2AE = 2\\sqrt{3}(r_1 - r_2)$.\nSince $O$ is the circum-center of the triangle $APQ$, we get\n$$\n\\angle POQ = 2\\angle PAQ = 120^\\circ, \\quad OP = OQ,\n$$\nfrom which we get $OP = \\frac{1}{\\sqrt{3}}PQ = 2(r_1 - r_2)$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34629, "subject": "Mathematics (Multi-modal)", "question": "Suppose there are $2010$ airports. Each airport has a number of direct flights to some of the other airports and the following conditions (1), (2) are known to be satisfied:\n(1) For any pair of airports, say $A$ and $B$, one can go from $A$ to $B$, by making connections of several direct flights.\n(2) If any one of the direct flights currently in operation is canceled, then the condition (1) will no longer be valid.\nOne day one of the direct flights in operation is canceled. How many possible ways are there for opening a new direct flight (which may be the same as the canceled one) in order to ensure that both of the conditions (1) and (2) above will be satisfied?\nNote that even when there is a direct flight from airport $X$ to airport $Y$ it is not necessarily true that there is a direct flight from $Y$ to $X$.", "options": [], "answer": "1008016", "solution": "Let us say that the airport $B$ is accessible from the airport $A$ if one can reach $B$ starting from $A$ by making connections of direct flights.\n\nFirst, we will show that the answer we seek is no more than $1004^2$.\n\nIn the sequel until we say otherwise, we will assume that we are in the situation where one of the direct flights was canceled from the original set-up in which the operation of direct flights satisfied both of the conditions (1) and (2) of the problem. Then, we see that there is a positive integer $n$ such that we can divide the set of the $2010$ airports into subsets $V_1, V_2, \\dots, V_n$ in such a way that the following conditions (a), (b), (c) are satisfied.\n\n(a) None of the subsets $V_i$ ($1 \\le i \\le n$) is empty, and every airport belongs to one and only one of the $V_i$'s.\n(b) For each $i$ ($1 \\le i \\le n$), for any pair of different airports $A$ and $B$ belonging to $V_i$, $B$ is accessible from $A$.\n(c) For any pair of different $i, j$ ($1 \\le i, j \\le n$), there are different airports $A$ and $B$ belonging to $V_i$ or $V_j$ such that $B$ is not accessible from $A$.\n\nFor different groups $X$ and $Y$ of airports, we say that $Y$ is accessible from $X$ if the following condition is satisfied:\nThere exist airports $A$ and $B$ such that $A$ belongs to $X$, $B$ belongs to $Y$ and $B$ is accessible from $A$.\n\nWe also say that a group $X$ of airports is a startable group if there exists a group $Y$ of airports such that $Y$ is accessible from $X$. If there is no such group $Y$, then $X$ is called a non-startable group. $X$ is called an accessible group if there exists a group $Y$ such that $X$ is accessible from $Y$. If there is no such group $Y$, then $X$ is called a non-accessible group.\n\nLet us first show that there must exist a non-startable group and a non-accessible group. So, suppose on the contrary every group of airports is startable. Then, there exists a sequence $U_1, U_2, \\dots$ of airports such that for every $i \\ge 1$, $U_{i+1}$ is accessible from $U_i$. Since the number $n$ of groups is finite, there exist integers $j < k$ for which $U_j = U_k$. Since $U_j$ and $U_{j+1}$ are different groups, we must have $j < j+1 < k$. But since each group of airports satisfies the condition (b), every airport in the group $U_{j+1}$ is accessible from every airport in the group $U_j$, and every airport in the group $U_k = U_j$ is accessible from every airport in the group $U_{j+1}$. But this contradicts the condition (c). Thus we have shown that there must exist a non-startable group. Similarly, we can show that there must exist a non-accessible group.\n\nNow, let $X$ be one of the non-startable groups, and $Y$ be one of the non-accessible groups. Suppose that the direct flight canceled was from airport $A$ to airport $B$. Since the condition (1) of the problem was satisfied before the flight was canceled, $A$ must belong to the group $X$ and $B$ to the group $Y$. If $X = Y$, then by the condition (b) it would be possible to reach $B$ from $A$ without using the direct flight, and this would contradict the fact that the condition (2) of the problem was satisfied before the cancelation. Therefore, we must have $X \\neq Y$. We also see that $A$ was accessible from $B$ before the cancelation, and there was a way to reach $B$ from $A$ without using the direct flight from $A$ to $B$ before the cancelation and hence $B$ is accessible from $A$ even after the cancelation. So, let us suppose that $B = C_1, C_2, \\dots, C_p = A$ is the route of connecting direct flights starting from $B$ and reaching $A$. Now, choose airports $A'$ and $B'$ in such a way that the following 2 conditions (i) and (ii) are satisfied:\n\n(i) $A'$ belongs to the group $X$ and $B'$ belongs to the group $Y$.\n(ii) There exists a way to reach $A'$ from $B'$ using neither a direct flight between 2 airports belonging to $X$ nor a direct flight between 2 airports belonging to $Y$.\n\nFor example, among the $C_l$'s belonging to $Y$, let $C_{l'}$ be the one corresponding to the largest index and define $B' = C_{l'}$, and define $A'$ to be the $C_m$ corresponding to the smallest index among $C_m$ ($m > l'$) belonging to $X$.\n\nLet us now show by opening a direct flight we can attain a situation where both the conditions (1) and (2) are satisfied. Let us denote by $A_1, A_2, \\dots, A_s$ and $B_1, B_2, \\dots, B_t$ the airports belonging to the group $X$ and $Y$, respectively. In order to satisfy the condition (1), we see that we have to open a direct flight starting from an airport in the group $X$ and arriving at an airport belonging to the group $Y$. Therefore, the number of ways to open a direct flight to achieve our goal is at most $st$. Furthermore, we have the condition $s + t \\le 2010$. Thus, we see that if\n\n$s=1$ or $t=1$ is satisfied, the number of ways is less than or equal to $2009$. We assume in the sequel that both $s$ and $t$ are greater than or equal to $2$.\n\nSince $X$ satisfies the condition (b), there exists an airport $A''$ in $X$ such that there exists a direct flight from $A''$ to $A'$. Similarly, there exists an airport $B''$ in $Y$ such that there exists a direct flight from $B'$ to $B''$. Suppose opening a direct flight from $A_i$ to $B_j$ we can get the situation where both of the conditions (1) and (2) are satisfied. We can show that $A_i \\neq A''$. Suppose on the contrary we have $A_i = A''$. Then after opening the direct flight $A_i \\to B_j$, we get a direct flight from $A''$ to $B_j$, and by the condition (b) we can reach $B'$ from $B_j$ by using several direct flights between 2 airports belonging to $Y$, and by the condition (ii) we can reach $A'$ from $B'$ without using any direct flight between 2 airports belonging to $X$. Thus we can reach from $A''$ to $A'$ without using the direct flight from $A''$ to $A'$. If we then cancel the direct flight from $A''$ to $A'$ the condition (1) remains valid, so we get a contradiction to the fact that the condition (2) must be satisfied after the direct flight $A_i \\to B_j$ is opened. Therefore, we must have $A_i \\neq A''$. By a similar argument we can also show that $B_j \\neq B''$.\n\nWe thus see that the number of ways of opening a direct flight so as to have the conditions (1) and (2) satisfied is at most $(s-1)(t-1)$. Since $s+t \\le 2010$ is also satisfied, we see that the desired number is at most $1004^2$.\n\nLet us finally show that there is an example where there are $1004^2$ ways of opening a direct flight to have the conditions (1) and (2) satisfied.\n\nSuppose for $2010$ airports $A_1, A_2, \\dots, A_{1005}, B_1, B_2, \\dots, B_{1005}$ there are direct flights from $A_i$ to $A_{i+1}$, from $B_{i+1}$ to $B_i$ for each $i$ ($1 \\le i \\le 1004$), direct flights from $A_{1005}$ to $A_1$ and $B_1$ to $B_{1005}$, and direct flights from $A_4$ to $B_4$ and from $B_2$ to $A_2$. We can easily check that the conditions (1) and (2) are satisfied with this situation. Now suppose we cancel the direct flight from $A_4$ to $B_4$. Then by opening any direct flight from $A_i$ to $B_j$ where $2 \\le i \\le 1005$ and $2 \\le j \\le 1005$ we can get the situation where the conditions (1) and (2) will be satisfied. Thus there are at least $1004^2$ ways of opening a direct flight to have both of the conditions (1) and (2) are satisfied.\n\nWe have thus shown that the desired answer to the problem is $1004^2 = 1008016$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34630, "subject": "Mathematics (Multi-modal)", "question": "Let $k$ be a positive integer and $m$ an odd integer. Show that there exists a positive integer $n$ for which the number $n^n - m$ is divisible by $2^k$.", "options": [], "answer": "Detailed solution", "solution": "We prove the assertion of the problem by using the mathematical induction on $k$.\n\nIf $k=1$ let $n=1$. Then, $n^n - m = 1 - m$ is divisible by $2$ since $m$ is odd. So the assertion holds.\n\nSuppose the assertion holds when $k = t$, we will show that the assertion holds when $k = t + 1$.\nFrom the induction hypothesis, it follows that there exists a positive integer $n_0$ for which\n$$\nn_0^{n_0} \\equiv m \\pmod{2^t}.\n$$\nSince $n_0^{n_0}$ is odd, $n_0$ is odd. If $n_0^{n_0} \\equiv m \\pmod{2^{t+1}}$ is satisfied, then this $n_0$ satisfies the assertion for the case of $k = t + 1$. If not, we have $n_0^{n_0} \\equiv m + 2^t \\pmod{2^{t+1}}$. Let us show that $n = n_0 + 2^t$ will satisfy the condition in this case.\nThis $n$ is then odd and hence $n$ and $2^{t+1}$ are relatively prime, and by Euler's Theorem we have $n^2 \\equiv 1 \\pmod{2^{t+1}}$. Consequently, we have\n$$\nn^n = n^{n_0+2^t} \\equiv n^{n_0} \\cdot n^{2^t} \\equiv n^{n_0} \\pmod{2^{t+1}}.\n$$\nThe binomial expansion of $n^{n_0} = (n_0 + 2^t)^{n_0}$ gives us\n$$\nn^{n_0} = \\sum_{i=0}^{n_0} n_i \\cdot 2^{it} n_0^{n_0-i}.\n$$\nSince from the fact that $it \\ge t+1$ if $i \\ge 2$, it follows that $2^{it} \\equiv 0 \\pmod{2^{t+1}}$ and we get\n$$\n\\begin{aligned}\nn^{n_0} &\\equiv n_0^{n_0} + n_0 C_1 \\cdot 2^t n_0^{n_0-1} \\equiv (m + 2^t) + 2^t n_0^{n_0} \\pmod{2^{t+1}} \\\\\n&\\equiv m + 2^t (n_0^{n_0} + 1).\n\\end{aligned}\n$$\nSince $n_0^{n_0} + 1$ is an even number, we get from the above that\n$$\nn^n \\equiv n^{n_0} \\equiv m + 2^t (n_0^{n_0} + 1) \\equiv m \\pmod{2^{t+1}},\n$$\nwhich shows that this $n$ satisfies the condition for $k = t + 1$, and this completes the induction.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34631, "subject": "Mathematics (Multi-modal)", "question": "There are four spade cards with numbers $1$, $2$, $3$, $4$, six heart cards with numbers $1$, $2$, $3$, $\\ldots$, $6$ and eight diamond cards with numbers $1$, $2$, $3$, $\\ldots$, $8$. Suppose you choose three cards, one from each group. How many possible choices are there if the total of the numbers on the chosen cards must be a multiple of $7$?", "options": [], "answer": "28", "solution": "28 ways\n\nLet $a$, $b$, $c$ be the number on the spade, heart and diamond card chosen, respectively. If $a + c$ is not a multiple of $7$, let $k$ be the remainder obtained when $a + c$ is divided by $7$. Then $k$ satisfies $1 \\le k \\le 6$, and $a + b + c$ becomes a multiple of $7$ when and only when $b = 7 - k$. On the other hand if $a + c$ is a multiple of $7$, then $a + b + c$ cannot be a multiple of $7$, since $1 \\le b \\le 6$. Thus, the number of possible choices satisfying the requirement of the problem is the total number of choices for $(a, c)$, which equals $4 \\times 8 = 32$, minus the number of cases for which $a + c$ is a multiple of $7$. The latter possibility occurs in 4 ways, namely, $(a, c) = (1, 6), (2, 5), (3, 4), (4, 3)$. Therefore, the answer we seek is $32 - 4 = 28$ ways.", "topic": "Algebra", "subtopic": "Abstract Algebra" }, { "id": 34632, "subject": "Mathematics (Multi-modal)", "question": "Determine the largest possible non-negative integer $k$ for which there exists a positive integer $n$ with the following property:\n$n$ is a perfect square with at least $k+1$ digits, and for every $i < k$ the integer obtained by deleting the last $i$ digits from $n$ is a perfect square.", "options": [], "answer": "2", "solution": "We will show that $k = 2$ is the desired maximum number. First of all, if $k = 2$, then $n = 169$ satisfies the condition of the problem since $169$, $16$, $1$ are all perfect squares.\n\nNext, let $k \\ge 3$, and suppose $n$ satisfies the condition of the problem for this $k$. Then, from the condition it follows that the number obtained from $n$ by deleting the last $2$ digits must be a perfect square, which we represent as $a^2$ for some positive integer $a$. Then, we can represent $n$ as $100a^2 + b$, where $b$ is a non-negative integer with $2$ or less digits. If $b = 0$, then the number $10a^2$, which coincides with the number obtained from $n$ by deleting the last digit, must be a perfect square, but this is impossible. Hence, we must have $b > 0$. This implies that $n$ is a perfect square bigger than $100a^2 = (10a)^2$, and hence we must have\n$$\nn = 100a^2 + b \\geq (10a + 1)^2 = 100a^2 + 20a + 1,\n$$\nfrom which we conclude that $a \\le 4$, since $b \\le 99$.\n\nSince $n$ has at least $k+1$ digits by assumption, $a^2$ must have at least $k-1$ digits, and since $k \\ge 3$, $a^2$ must have $2$ or more digits. As, $3^2 = 9$ is a $1$ digit number, we must have $a = 4$. Therefore, we conclude that $n = 1600 + b$ is a perfect square satisfying $1600 < n \\le 1699$. Only perfect square satisfying the last condition is $1681$, but since $168$ is not a perfect square, $1681$ does not satisfy the condition of the problem. Thus, we conclude that for $k \\ge 3$, there is no $n$ satisfying the condition of the problem, and we have shown that $k=2$ is the desired maximum.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34633, "subject": "Mathematics (Multi-modal)", "question": "Find the average value of all those integers $n$ satisfying $0 \\le n \\le 10000$ for which the digit $1$ does not appear in their decimal expansions.", "options": [], "answer": "48884/9", "solution": "Call a non-negative integer less than or equal to $10000$ for which the digit $1$ does not appear in its decimal expansion a good integer.\nLet us denote by $A$ the average value of all good integers. Since $10000$ is not a good integer, it suffices to consider only good integers of $4$ or less digits. Write a good integer in the form $a_1 + 10a_2 + 10^2a_3 + 10^3a_4$, where $a_j$'s are chosen from the set $\\{0, 2, 3, 4, 5, 6, 7, 8, 9\\}$.\nSince for $a_1$ each of the values $0, 2, 3, \\ldots, 9$ can be chosen the same number of times, the average value for $a_1$ over the set of all good integers is $\\frac{1}{9}(0 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9) = \\frac{44}{9}$.\nSimilarly, the average value of $a_2, a_3, a_4$ over the set of all good integers is $\\frac{44}{9}$ for each one. Hence we get\n$$A = \\frac{44}{9}(1 + 10 + 10^2 + 10^3) = \\frac{48884}{9}.$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34634, "subject": "Mathematics (Multi-modal)", "question": "Suppose there are $2010$ islands, and $2009$ bridges connecting some pair of these islands. Any pair of islands are either connected by one of the bridges or they are not. Also, any bridge connects two different islands. Furthermore, one can reach any island from any other island by crossing certain number of bridges. One day, each of the islands sent a letter to some island (possibility of sending the letter to itself was allowed). After the letters were delivered, the following facts came to light:\nFor islands $A$ and $B$ which are connected by a bridge, the addressee of the letter from $A$ and the addressee of the letter from $B$ are either connected by a bridge or else they are the same island.\nShow that in this situation at least one of the following statements must be valid:\n(1) There must be an island which sent its letter to itself.\n(2) There is a pair of islands connected by a bridge, which exchanged letters.", "options": [], "answer": "Detailed solution", "solution": "Throughout the discussion of this problem, we exclude the consideration of bridges both ends of which belong to the same island.\nFor a positive integer $n$ greater than or equal to $2$, we say that a collection of islands and bridges has the property $T(n)$ if the following three conditions (i), (ii), (iii) are satisfied:\n(i) Any pair of islands are connected by one of the bridges or they are not.\n(ii) There are $n$ islands and $n-1$ bridges.\n(iii) One can reach any island from any other island by crossing certain number of bridges.\nWe also say that a collection of islands and bridges has a closed loop if the following conditions are satisfied:\nThere exist an integer $k$ greater than or equal to $3$ and $k$ distinct islands $A_1, A_2, \\dots, A_k$ such that for each $i$ ($1 \\le i \\le k-1$) the islands $A_i$ and $A_{i+1}$ are connected by a bridge, and the islands $A_k$ and $A_1$ are connected by a bridge.\nBy degree of an island we mean the number of bridges starting from that island. Call an island an end island if the island has degree $1$, and a regular island if it has degree $\\ge 2$. Two islands $A$ and $B$ are said to be adjacent if there is a bridge connecting $A$ and $B$. The following assertions for a collection of islands and bridges having the property $T(n)$ are valid:\n\n**Lemma 1.** If a collection has the property $T(n)$, then there must exist an end island in this collection.\n**Proof:** The sum of the degrees of islands belonging to the collection must equal twice the number of bridges in the collection, and hence it equals $2(n-1)$. If every island has degree greater than or equal to $2$, then the sum of degrees exceeds $2n$, a contradiction. Hence there must be an island in the collection whose degree is $0$ or $1$, but since by the condition (iii) every island has degree at least $1$, we conclude that there must be an island which has degree exactly $1$.\n**Lemma 2.** If a collection has the property $T(n)$ for some $n$ greater than or equal to $3$, then there exists in this collection at least one island which is a regular island.\n**Proof:** The sum of degrees of islands in the collection is $2(n-1)$. If every island is an end island then the sum of degrees of islands must be $n$, so we get a contradiction if $n \\ge 3$.\n**Lemma 3.** Let $n \\ge 2$. For a collection $U$ of $n$ islands and several bridges connecting these islands, the following two assertions are equivalent:\n(a) $U$ has the property $T(n)$.\n(b) $U$ satisfies the properties (i) and (iii), and there is no closed loop in $U$.\n**Proof:** We will prove the assertion of the lemma by using induction on $n$.\nFor the case $n=2$, we note that if $U$ satisfies the properties (i) and (iii), then $U$ has only $2$ islands and at least $1$ bridge connecting these $2$ islands. So if $U$ has the property $T(2)$, then there is only $1$ bridge in $U$ and hence there is no loop. Conversely, if $U$ satisfies (i) and (iii), and there is no closed loop in $U$, then there is only $1$ bridge and hence $U$ satisfies the property $T(2)$. So, the assertions (a) and (b) are equivalent.\nSuppose that the assertion of the Lemma holds when $n = k-1 \\ge 2$. Let us show it also holds when $n = k$. So, let us suppose a collection $U$ has the property $T(k)$. Then, by Lemma 1, $U$ must have an end island. Call it $A$. Let $U'$ be the collection obtained by removing from $U$ the island $A$ and the bridge starting from $A$. Then, it is clear that $U'$ satisfies the property $T(k-1)$. So, by the induction hypothesis $U'$ has no closed loop. But then since $A$ is an end island, we see that $U$ cannot have any closed loop either. Hence we have (a) $\\Rightarrow$ (b).\nConversely, suppose that a collection $U$ having $k$ islands and several bridges satisfies the properties (i) and (iii) and has no closed loops. First, we will show that there must be an end island in $U$. So, suppose on the contrary every island in $U$ has degree $\\ge 2$. Pick an island $A_1$ and another island $A_2$ adjacent to $A_1$. For every $i \\ge 3$, we can choose, by using the fact that every island has degree $\\ge 2$, an island $A_i$ in such a way that $A_i$ and $A_{i-1}$ are adjacent, and $A_i \\ne A_{i-2}$. Since the number of islands in $U$ is finite, there must exist positive integers $j$ and $\\ell \\ge 2$ such that $A_j, A_{j+1}, \\dots, A_{j+\\ell}$ are distinct and $A_j = A_{j+\\ell+1}$. This means that there is a closed loop in $U$, contradicting the assumption. Thus, there must be an end island, say $A$ in $U$. Let $U'$ be the collection obtained from $U$ by removing $A$ and the bridge starting from $A$. Then, clearly, $U'$ has no closed loop and satisfies properties (i) and (iii). Since $U'$ has $k-1$ islands, by using the induction hypothesis, we conclude that $U'$ has the property $T(k-1)$, and hence it has $k-2$ bridges. As $U$ has $1$ more bridge than $U'$, $U$ must have $k-1$ bridges, and therefore $U$ satisfies the property (ii) and we conclude that $U$ has the property $T(k)$. This shows that the implication (b) $\\Rightarrow$ (a) is satisfied for $n=k$.\nThus, the induction is complete and we have proved the assertion of Lemma 3.\n\n* if for any collection $U$ of islands and bridges having the property $T(n)$, letters are sent by islands in $U$ in such a manner that the resulting situation described in the problem would occur, then at least one of the statements (1) or (2) given in the problem must hold.\nThen, we will have a proof of the assertion of the problem by considering the case of $n = 2010$.\nThe proof of the assertion * will be given by using an induction on $n$.\nIf $n = 2$ it is easy to check that one of the statements (1) or (2) must hold, regardless of how the letters sent are addressed.\nNext, suppose for $k \\ge 3$ the assertion * is valid for $n$ ($2 \\le n \\le k - 1$). We will show that it holds for the case $k = n$. we separate the argument into the following two cases:\n**Case (a):** The addressees of the letters are all different.\n**Case (b):** There are two or more different islands which send their letters to the same addressee.\n**Proof for Case (a):** First we claim that in this case a letter sent from a regular island goes to a regular island. To prove this claim, suppose it is not the case. Then, there are an island $A$ with degree $\\ge 2$ and an end island $B$ such that $A$ sends a letter to $B$. Let $C$ be the only island adjacent to $B$. Then by the rule for sending the letters, an island adjacent to $A$ must send its letter to $B$ or $C$, but since the addressees of the letters must be all different, it has to go to $C$. Since $A$ has $2$ or more adjacent islands, this means that the island $C$ receives $2$ or more letters, which is a contradiction. Thus, we have proved the claim.\nNext, let us consider the collection $U'$ of islands and bridges which is obtained by removing, from the collection $U$ in consideration, all the end islands and bridges starting from these end islands. Let $m$ be the number of islands in $U'$. Then, by Lemma 2, $m \\ge 1$ and we can check quite easily that $U'$ has the property $T(m)$. Since in $U$ a letter sent from a regular island went to a regular island, we can restrict our consideration of sending letters to $U'$. By Lemma 1, we see that $m \\le k - 1$, and so if $m \\ge 2$, then we can conclude by using the induction hypothesis that there must be island(s) in $U'$ for which the condition (1) or (2) of the problem is satisfied. If $m = 1$, then $U'$ consists of only $1$ island, so it must send a letter to itself, and thus, the condition (1) is satisfied in this case as well.\n\n**Proof for Case (b):** In this case, there is at least $1$ island which receives no letters.\nLet $S$ be the collection of islands and bridges obtained by removing from the collection $U$ in consideration all the islands which received no letters and all the bridges starting from those islands. Let $m$ be the number of islands in $S$. Let us show that the collection $S$ has the property $T(m)$. Condition (i) is not affected since all the bridges starting from any of the removed islands are removed. To see that (iii) is satisfied, let $A$ and $B$ be any pair of islands in $S$, and suppose that in the collection $U$ let $C, D$ be the islands which sent letters to $A, B$, respectively. Suppose that in $U$ you can reach $D$ from $C$ by going through the route $C, E_1, E_2, \\dots, E_l, D$. Let for each $i$ ($1 \\le i \\le l$) $F_i$ be the island to which the letter from the island $E_i$ is sent. Then by the requirement for addressing the letters, either the island $F_{i+1}$ is adjacent to the island $F_i$, or is the same as $F_i$. Therefore, we can go from $A$ to $B$ in $S$ by going through the route $A, F_1, F_2, \\dots, F_l, B$. This shows that $S$ satisfies (iii). Finally, by Lemma 3, we know that $U$ has no closed loop, and therefore, $S$ has no closed loop. Since we already showed that $S$ satisfies both (i) and (iii), we can apply Lemma 3 again to conclude that $S$ has the property $T(m)$.\nThus, we can restrict our consideration of sending letters to $S$, and in the same way as we argued above for the case (a), we can conclude that $S$ and hence $U$ satisfies the condition (1) or (2) of the problem.\nPutting the $2$ cases (a) and (b) above together, we have shown that the assertion * holds for the case $n = k$.\nOur induction is thus complete and we have established the assertion of the problem.\nAlternate Solution: Let us consider $2$ people whom we call $X$ and $Y$. Send $X$ to an island, say $A$, and call $B$ the island to which a letter from $A$ is sent. Then send $Y$ to $B$. Now keep on repeating the following procedure:\nIf $X$ and $Y$ are in the same island, i.e., if $A = B$, stop the procedure.\nIf not, do the following: since one can reach $B$ from $A$ by going through several bridges, there must be an island, adjacent to $A$, which can be reached from $B$ by some route which does not include $A$. Call one such island $C$, and let $X$ move to $C$, and simultaneously, let $Y$ move to the island which received the letter from $C$.\nBy the requirement for sending letters we see that either $Y$ stays in the same island $B$ or goes to an island adjacent to $B$. If $X$ and $Y$ meet on a bridge during the move, stop the procedure. Otherwise, keep on repeating the procedure.\nLet us denote by $V_{XY}$ the set of all the islands in the collection in consideration which $Y$ can reach by going through islands which are different from the island where $X$ is. Note that the set $V_{XY}$ keeps on changing after each move described in the procedure above. Let us consider how $V_{XY}$ changes while the procedure above is repeated. Since by Lemma 3 there is no closed loop in the collection in consideration, there is one and only one island in $V_{XY}$ which is adjacent to the island where $X$ is at some moment before the process is stopped. Call this island $D$. If $X$ and $Y$ do not meet on a bridge during the process of the next move, then $Y$ must be moving to an island in $V_{XY}$ different from $D$ and $X$ is moving to $D$. This implies that the $V_{XY}$ after the move would be contained in the previous $V_{XY}$ minus the island $D$. Therefore, the number of islands in $V_{XY}$ keeps on decreasing at least by $1$ as long as $X$ and $Y$ do not meet on a bridge, and this means that $X$ and $Y$ must meet eventually, and the procedure above has to stop.\nIf at the moment when the procedure stops $X$ and $Y$ are on the same island, then this island satisfies condition (1), while if they meet on a bridge at that moment then the $2$ islands which this bridge is connecting satisfy condition (2).", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34635, "subject": "Mathematics (Multi-modal)", "question": "A square $ABCD$ has a side length equal to $3$. Let $P$ be the point on the side $AB$ dividing $AB$ into $2 : 1$ ratio. Let $Q$, $R$ be the points on the side $CD$ dividing $CD$ into $1 : 2$, $2 : 1$ ratio, respectively. And let $S$, $T$ be the points on the side $DA$ dividing $DA$ into $1 : 2$, $2 : 1$ ratio, respectively. Let $U$ be the point of intersection of the lines $PR$ and $QT$, and $V$ be the point of intersection of the lines $SU$ and $BC$. Find the length of the line segment $BV$.\n\n![](attached_image_1.png)", "options": [], "answer": "13/5", "solution": "$\\frac{13}{5}$\nLet $E$, $F$ be the point of intersection of the line $PR$ and the lines $AD$, $BC$, respectively. Also, let $G$ be the point of intersection of the lines $TQ$ and $BC$. Then, it is clear that the triangles $APE$ and $DRE$ are similar so that we have $AE : DE = AP : DR = 2 : 1$, from which it follows that $DE = 3$. Similarly, we get $BF = 3$. We also have $\\angle QTD = \\angle QGC$ and $\\angle QDT = \\angle QCG$, from which it follows that the triangles $QDT$ and $QCG$ are similar. Hence we have $DT : CG = DQ : QC = 2 : 1$ and therefore, $CG = 1$.\n\nSince $AE$ and $FG$ are parallel, we have $\\angle USE = \\angle UVF$ and $\\angle SEU = \\angle VFU$ so that the triangles $USE$ and $UVF$ are similar. Analogously, we get that the triangles $UTE$ and $UGF$ are similar.\n\nFrom these facts we obtain $ES : FV = UE : UF = ET : FG = 5 : 7$, and we get $BV = FV - BF = 4 \\times \\frac{7}{5} - 3 = \\frac{13}{5}$.\n\n![](attached_image_2.png)", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34636, "subject": "Mathematics (Multi-modal)", "question": "Suppose $n$ is a positive integer of 3 distinct non-zero digits. Let $g$ be the greatest common divisor of the 6 numbers obtained by permuting the digits of $n$. Determine the maximum possible value that $g$ can take.", "options": [], "answer": "18", "solution": "[18]\nFirst, let us show that $g$ cannot exceed $18$ for any $n$. Denote by $a, b, c$ the $3$ digits of $n$, where we assume $a < b < c$. Both $100c+10b+a$ and $100c+10a+b$ are numbers obtained by permuting the digits of $n$. Hence $g$ is a divisor of $(100c+10b+a) - (100c+10a+b) = 9(b-a)$. Similarly, we get that $g$ is a divisor of $9(c-b)$ and of $9(c-a)$. If we set $x = b-a$, $y = c-b$, $z = c-a$, then $x, y, z$ are positive integers not exceeding $8$, and satisfy $x+y=z$. If we denote by $g'$ the greatest common divisor of $x, y, z$ then $g$ is a divisor of $9g'$.\n\n(1) If $g' \\ge 5$, there exists at most $1$ number less than or equal to $8$ divisible by $g'$, and we get a contradiction to the fact that $x + y = z$. So, $g' \\ge 5$ is impossible.\n\n(2) If $g' = 4$, then $4$ and $8$ are the only positive integers not bigger than $8$ and divisible by $4$, so we must have $(x, y, z) = (4, 4, 8)$. We then have $(a, b, c) = (1, 5, 9)$ and $g = 3$.\n\n(3) If $g' = 3$, then $3$ and $6$ are the only positive integers not bigger than $8$ and divisible by $3$, so we must have $(x, y, z) = (3, 3, 6)$. Then $(a, b, c)$ must be $(1, 4, 7)$ or $(2, 5, 8)$ or $(3, 6, 9)$ and the value of $g$ is $3$, $3$, $9$, respectively.\n\n(4) If $g' \\le 2$, then since $g$ divides $9g'$, we must have $g \\le 9g' \\le 18$.\n\nThus we have shown that $g \\le 18$. On the other hand if $n = 468$, then $g = 18$ and this shows that $18$ is the maximum possible value for $g$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34637, "subject": "Mathematics (Multi-modal)", "question": "Suppose 5 line segments are given on a plane satisfying the following property:\nOf the 10 possibilities for choosing 3 line segments from the given 5, in 9 cases, one can form an acute triangle with the chosen 3 line segments.\nProve that in the remaining 10-th possibility for the choice of 3 line segments, there is a triangle with the 3 chosen line segments as its sides.", "options": [], "answer": "Detailed solution", "solution": "When 3 line segments with their lengths $x, y, z$ ($x \\le y \\le z$) are given, the necessary and sufficient condition for these line segments to form a triangle is $x + y > z$, and if the triangle they form is acute, then the condition $x^2 + y^2 > z^2$ is also satisfied.\nLet us denote by $a, b, c, d, e$ ($a \\le b \\le c \\le d \\le e$) the lengths of the given 5 line segments.\nSuppose that $\\{a, b, e\\}$ can form a triangle. Then, since $a + b \\ge e$ must hold, we can conclude that for any choice of 3 line segments from the given five, the sum of the lengths of any 2 among the three is greater than the length of the remaining one, and hence we can construct a triangle for any of the 9 combinations of 3 line segments beside the combination $\\{a, b, e\\}$. Therefore, in order to prove the assertion of the problem, it suffices to show that if we assume that for any choice of 3 line segments, beside the combination $\\{a, b, e\\}$, we can form an acute triangle with the chosen 3 line segments, then we can also form a triangle with $\\{a, b, e\\}$.\nBy assumption, then, we can form an acute triangle from $\\{a, b, c\\}$ and from $\\{a, c, e\\}$. We therefore have $a^2 + b^2 > c^2$ and $a^2 + c^2 > e^2$. From these inequalities, we obtain\n$$\n(a + b)^2 = a^2 + 2ab + b^2 \\ge 2a^2 + b^2 > a^2 + c^2 > e^2,\n$$\nand we conclude that $a + b \\ge e$ so that we can form a triangle with $\\{a, b, e\\}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34638, "subject": "Mathematics (Multi-modal)", "question": "Suppose a quadrilateral $ABCD$ is inscribed in a circle of radius $1$, and its diagonals intersect with the angle of $60^\\circ$. Let $P$ be the point of intersection of the diagonals. Suppose that it is known that $AP = \\frac{1}{3}$ and $CP = \\frac{2}{3}$. Determine all possible values that the absolute value of the difference of $BP$ and $DP$ can take. Here, we represent by $XY$ the length of the line segment $XY$.", "options": [], "answer": "{4/3, 5/3}", "solution": "$$\n\\boxed{\\left\\{\\frac{4}{3},\\ \\frac{5}{3}\\right\\}}\n$$\nWe can draw, as in the figures below, a regular hexagon $ACEFGH$ which is inscribed in the circle given in the statement of the problem. As we are concerned with the absolute value of the difference between $BP$ and $DP$, the point $B$ is chosen to lie on the opposite side from the center of the circle with respect to the line $AC$.\n\n![](attached_image_1.png)\n\nLet us consider the case where $\\angle APB = 60^\\circ$ as indicated in the figure on the left side. Then, since $\\angle PAF = 60^\\circ$ also, the lines $BD$ and $AF$ are parallel. If we let $Q$ be the point of intersection of the lines $BD$ and $EF$, we have $BP = DQ$ due to the symmetry. Hence the absolute value of the difference between $BP$ and $DP$ equals $PQ$. From the fact that $AP : PC = FQ : QE = 1 : 2$ we obtain $PQ = \\frac{5}{3}$ since $AF = 2$ and $CE = 1$.\n\nIn the case where $\\angle APB = 120^\\circ$ as indicated in the figure on the right side, let $Q$ be the point of intersection of $BD$ and $GH$. Then, similarly as in the preceding case, we deduce the fact that the absolute value of the difference between $BP$ and $DP$ equals $PQ$. From the fact that $AP : PC = HQ : QG = 1 : 2$ we obtain $PQ = \\frac{4}{3}$ since $CG = 2$ and $AH = 1$.\n\nHence the possible values for the absolute value of the difference between $BP$ and $DP$ are $\\frac{4}{3}, \\frac{5}{3}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34639, "subject": "Mathematics (Multi-modal)", "question": "Prove that for positive real numbers $x, y, z$ the following inequality is satisfied:\n$$\n\\frac{1+xy+xz}{(1+y+z)^2} + \\frac{1+yz+yx}{(1+z+x)^2} + \\frac{1+zx+zy}{(1+x+y)^2} \\ge 1\n$$", "options": [], "answer": "Detailed solution", "solution": "From the Cauchy-Schwarz Inequality we get\n$$\n\\left(1 + \\frac{y}{x} + \\frac{z}{x}\\right) \\left(1 + xy + xz\\right) \\geq \\left(1 + y + z\\right)^2\n$$\nMultiplying both sides of the inequality above by $\\frac{x}{(x+y+z)(1+y+z)^2}$, we obtain\n$$\n\\frac{1 + xy + xz}{(1 + y + z)^2} \\geq \\frac{x}{x + y + z}.\n$$\n\nSimilarly, we obtain\n$$\n\\frac{1 + yz + yx}{(1 + z + x)^2} \\ge \\frac{y}{x + y + z}, \\quad \\frac{1 + zx + zy}{(1 + x + y)^2} \\ge \\frac{z}{x + y + z}\n$$\nAdding both sides of these 3 inequalities side-by-side, we obtain the desired inequality:\n$$\n\\frac{1 + xy + xz}{(1 + y + z)^2} + \\frac{1 + yz + yx}{(1 + z + x)^2} + \\frac{1 + zx + zy}{(1 + x + y)^2} \\ge 1\n$$", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34640, "subject": "Mathematics (Multi-modal)", "question": "Both $m$ and $n$ are 3-digit positive integers, and $m$ and $n$ differ only in one of the 3 digits. Also, $n$ is an integral multiple of $m$. How many possible such pairs $(m, n)$ are there?", "options": [], "answer": "22", "solution": "From $m \\neq n$ and the fact that $n$ is a multiple of $m$, it follows that $n \\geq 2m$. Since $m$ is an integer greater than or equal to $100$, we have $n - m \\geq m \\geq 100$, and therefore, we see that $n$ and $m$ differ on the hundred's digit. This means that there exists an integer $k$ ($1 \\leq k \\leq 8$) for which $n - m = 100k$. Since $m$ divides $n$, we see that $m$ divides $n - m = 100k$. Also, from $2m \\leq n \\leq 999$ it follows that $m \\leq 499$. From these considerations we conclude that $m$ must be one of the following:\n\n$100$, $120$, $125$, $140$, $150$, $160$, $175$, $200$, $250$, $300$, $350$, $400$.\n\nValues of $n$ matching these values of $m$ can be chosen for $8$, $1$, $1$, $1$, $2$, $1$, $1$, $3$, $1$, $2$, $0$, $1$ different ways, respectively. Hence the total number of ways the pair $(m, n)$ can be chosen to satisfy the conditions of the problem is $22$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34641, "subject": "Mathematics (Multi-modal)", "question": "Suppose for a triangle $ABC$ the following condition is satisfied:\nA circle $O$ going through the vertices $B, C$ intersects the line segments $AB$ and $AC$ (excluding the end-points) at the points $D$ and $E$, respectively, and $AD + AE = BC$ is satisfied.\nLet $I$ be the in-center of the triangle $ABC$ and suppose that the lines $BI$ and $CI$ intersect the circle $O$ at $P, Q$ (different from $B, C$), respectively. Prove that the points $A, I, P, Q$ lie on the same circumference of a circle.\nHere by $XY$ we mean the length of the line segment $XY$.", "options": [], "answer": "Detailed solution", "solution": "From $AD + AE = BC$ it follows that we can choose a point $F$ on the side $BC$ in such a way that both $AD = CF$ and $AE = BF$ are satisfied. We have $DP = CP$, since the angles the cords $DP$ and $CP$ subtend on the circle $O$ are equal. We also have $\\angle PDA = \\angle PCB = \\angle PCF$, since the points $P, C, B, D$ lie on the circumference of a same circle. These facts together with the fact $AD = FC$ imply that the triangles $PDA$ and $PCF$ are congruent. Therefore, we have\n\n$\\angle PFC = \\angle PAD = \\angle PAB$, and we conclude that the points $A, R, F, B$ lie on the circumference of a same circle.\n\nSimilarly, we can conclude that the points $A, Q, F, C$ also lie on the circumference of a same circle. Consequently, we get\n$$\n\\angle PAQ = \\angle PAF + \\angle FAQ = \\angle PBF + \\angle FCQ = 180^\\circ - \\angle CIB = 180^\\circ - \\angle QIP,\n$$\nfrom which we conclude that the points $A, I, P, Q$ lie on the circumference of a same circle.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34642, "subject": "Mathematics (Multi-modal)", "question": "Suppose a regular 2010-gon is given. How many combinations of 3 distinct vertices $A$, $B$, $C$ of this polygon are there for which all the inner angles of the triangle $ABC$ have integer-valued degrees (i.e., integral multiples of $1^\\circ$)? Regard 2 triples as representing the same combination if one is a permutation of the other.", "options": [], "answer": "272020", "solution": "$$\n\\boxed{272020}\n$$\nLet $a$ be the number of the sides of the 2010-gon lying in between the vertices $B$ and $C$ and on the opposite side from the vertex $A$, and $b$ be the number of the sides lying in between the vertices $C$ and $A$ and on the opposite side from the vertex $B$. Let $\\Gamma$ be the circum-circle of this regular 2010-gon, and let $O$ be its center. Then, we have\n$$\n\\angle CAB = \\frac{1}{2} \\angle COB = \\frac{1}{2} \\times 360^\\circ \\times \\frac{a}{2010} = \\left( \\frac{6a}{67} \\right)^\\circ\n$$\nIn the same way, we get $\\angle ABC = \\left(\\frac{6b}{67}\\right)^\\circ$. When these two angles take the integral values, then the $\\angle BCA$ also takes an integral value. Hence the condition of the problem is satisfied if and only if both $6a$ and $6b$ are divisible by $67$, which is the same as the statement that both $a$ and $b$ are multiples of $67$ (since $67$ is a prime).\nFrom $\\frac{2010}{67} = 30$, it also follows that this is equivalent to the statement that $A$, $B$, $C$ are the vertices of a regular 30-gon inscribed in the circle $\\Gamma$. There are $\\frac{2010}{30} = 67$ regular 30-gons whose vertices are chosen from the given regular 2010-gon and for each of these regular 30-gons there are $\\binom{30}{3}$ ways of choosing 3 vertices. Therefore, there are $67 \\times \\binom{30}{3} = 272020$ triangles satisfying the condition of the problem.", "topic": "Discrete Mathematics", "subtopic": "Combinatorics" }, { "id": 34643, "subject": "Mathematics (Multi-modal)", "question": "It is known that there are exactly 2958 pairs $(m, n)$ of positive integers not exceeding 100 for which the inequalities $m < \\sqrt{2n} < 2m$ are valid. How many pairs $(m, n)$ of positive integers not exceeding 100 are there for which $\\sqrt{2n} < m$ is satisfied?", "options": [], "answer": "3521", "solution": "Since $\\sqrt{2}$ is irrational, neither $m = \\sqrt{2} n$ nor $2m = \\sqrt{2} n$ can occur for a pair $(m, n)$ of positive integers. Therefore, the pairs $(m, n)$ of positive integers not exceeding 100 split into the following three types depending on the values of $\\sqrt{2} n$, $m$ and $2m$:\n\n* Type (1): satisfies $\\sqrt{2} n < m$,\n* Type (2): satisfies $m < \\sqrt{2} n < 2m$,\n* Type (3): satisfies $2m < \\sqrt{2} n$.\n\nThe condition $2m < \\sqrt{2} n$ can be restated as $\\sqrt{2} m < n$. Therefore, the fact that a pair $(a, b)$ is of type (1) is equivalent to the fact that the pair $(b, a)$ is of type (3). Consequently, the number of pairs belonging to type (1) is the same as the number of pairs belonging to (3).\n\nThere are altogether $100^2 = 10000$ pairs $(m, n)$ of positive integers not exceeding 100, and it is given that there are 2958 pairs belonging to type (2). Therefore, the number of pairs belonging to type (1) is\n$$\n\\frac{10000 - 2958}{2} = 3521.\n$$", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34644, "subject": "Mathematics (Multi-modal)", "question": "Suppose for a convex 2010-gon, any 3 diagonals do not share a common point except for vertices. Let us consider a closed zig-zag line segments (abbr. by Z.Z.L.S.) which goes through each of the vertices of the 2010-gon once and only once. Determine the maximum possible number of the self-intersection points for such a closed Z.Z.L.S. Here, by a closed Z.Z.L.S. we mean contiguous line segments $P_1P_2\\ldots P_nP_{n+1}$ for which $P_1 = P_{n+1}$ is satisfied.", "options": [], "answer": "2016031", "solution": "More generally than the assertion of the problem, we prove that if we replace the number $2010$ in the problem by any even integer $2m$ bigger than or equal to $6$, we get for any convex $2m$-gon satisfying the condition of the problem the number $2m^2 - 4m + 1$ is the answer for the assertion.\n\nFor any integer $i$ less than or equal to $m$, let us agree to say that a diagonal of the polygon has the length $i$ if the diagonal connects two vertices which bound $i$ sides in between.\n\nLet us first give an example of a Z.Z.L.S. for which there are exactly $2m^2 - 4m + 1$ self-intersection points. Let $P_1P_2 \\cdots P_mQ_1Q_2 \\cdots Q_m$ be the given $2m$-gon. For each $i = 1, 2, \\dots, m-1$ connect vertices $P_i$ and $Q_{i+1}$, and vertices $Q_i$ and $P_{i+1}$. Each of these $2m-2$ diagonals has length $m-1$. Connect also the vertices $P_1$ and $Q_1$, and vertices $P_m$ and $Q_m$. These two diagonals have length $2$. It is easy to check that these $2m$ diagonals form a closed Z.Z.L.S.\n\nLet us count the number of self-intersections of this closed Z.Z.L.S. In the sequel, the term \"diagonal\" refers only to diagonals constituting segments of this closed Z.Z.L.S.\n\nLet us first show that there are $2m-4$ self-intersection points on the diagonal $P_iQ_{i+1}$. If we dissect the polygon into two parts by the diagonal $P_iQ_{i+1}$, then one part has $m$ vertices and the other $m-2$ vertices. There is no diagonal other than $P_{i+1}Q_i$ having length $m-1$ or more which is contained in either of these two parts. Consequently, the diagonal $P_iQ_{i+1}$ shares points with every one of the diagonals except $P_{i+1}Q_i$. So, it shares points with $2m-1$ diagonals. Of these $2m-1$ diagonals there are itself and two diagonals with which it shares an end point and these should be excluded from the consideration of self-intersection points, and therefore, there are $2m-4$ diagonals giving self-intersection points on the diagonal $P_iQ_{i+1}$. The same argument gives also that the diagonal $P_{i+1}Q_i$ has $2m-4$ self-intersection points as well.\n\nFor the diagonals $P_1Q_1$ and $P_mQ_m$ the same type of argument as above shows that both of them share points with all of the diagonals, and excluding itself and two diagonals which share an end point from the consideration, $2m-3$ diagonals give self-intersection points on each of these two diagonals.\n\nTaking into account the fact that each self-intersection point is counted twice in this argument, we conclude, therefore, that there are\n$$\n\\frac{(2m-2)(2m-4) + 2 \\cdot (2m-3)}{2} = 2m^2 - 4m + 1\n$$\nself-intersection points for the closed Z.Z.L.S. constructed above.\n\nNext, we show that there cannot be more than $2m^2 - 4m + 1$ self-intersections for any closed Z.Z.L.S.\n\nBy arguing as above, we can show that the number of self-intersection points on any diagonal cannot exceed $2m - 3$. Call a diagonal good diagonal if it contains $2m - 3$ self-intersection points. If there are $2$ or less good diagonals, then the total number of self-intersection points would be at most $2m^2 - 4m + 1$. So, we must have at least $3$ good diagonals.\n\nNote that any good diagonal must have length $m$. To see why this is so, let us assume that a diagonal $l$ has length less than $m$. Then, when we dissect the polygon into two parts by $l$, one part has at most $m - 2$ vertices, and any diagonal intersecting with $l$ must have one of these vertices as its end point. Therefore, there are at most $2m - 4$ such diagonals, and $l$ cannot be a good diagonal.\n\nLet us take three good diagonals. Since each one has length $m$, any pair of them intersect each other. So, we may designate them as $A_1A_4$, $A_2A_5$, $A_3A_6$, assuming that vertices $A_1$, $A_2$, $A_3$, $A_4$, $A_5$, $A_6$ lie on the polygon in this order.\n\nLet $Q$ be a vertex of the polygon and let $Q'$ be the vertex lying at the other end of one of the diagonals starting from $Q$, and $Q''$ be the vertex lying at the other end of the diagonal starting from $Q'$ but different from $Q'Q$. If both $Q$ and $Q''$ are different from both $A_1$ and $A_4$ (then $Q'$ would be different from both $A_1$ and $A_4$ also), both diagonals $QQ'$, $Q'Q''$ intersect $A_1A_4$, since $A_1A_4$ is a good diagonal. Therefore, vertices $Q$ and $Q''$ lie on the same side of $A_1A_4$. The same reasoning applies to $A_2A_5$ and $A_3A_6$ as well, so we can conclude that there exists an integer $i$ ($1 \\leq i \\leq 6$) such that $Q$ and $Q''$ lie in between $A_i$ and $A_{i+1}$. Here we take $A_7$ to be equal to $A_1$, and we allow the possibility that $Q$ or $Q''$ may coincide with $A_i$ or $A_{i+1}$.\n\nLet us color every other vertex on the closed Z.Z.L.S. black as we go along the cycle starting with a vertex. Then, for each of the pairs $A_1$, $A_4$, $A_2$, $A_5$, $A_3$, $A_6$, one and only one of the two vertices in the pair will be colored black. Without loss of generality we may assume that one of the following two cases occurs.\n\n• $A_1$, $A_2$, $A_3$ are black.\n• $A_1$, $A_3$, $A_5$ are black.\n\nIn the first case above, it should be possible to start from $A_1$ and repeating the process of going along $2$ contiguous diagonals to go through both $A_2$ and $A_3$ exactly once and return to $A_1$. But as we have seen above it would be impossible to go from $A_1$ to $A_3$ (and from $A_3$ to $A_1$) without going through $A_2$, so we have a contradiction.\n\nIn the second case, it is impossible to start from $A_1$ to go outside of the portion of the polygon bounded by $A_6$ and $A_2$ by repeating the process of going along $2$ contiguous diagonals, and hence it is impossible to reach from $A_1$ to $A_3$ by repeating the process of going along $2$ contiguous diagonals. Thus we have a contradiction in this case as well.\n\nSummarizing, we have shown that there is no closed Z.Z.L.S. which has more than $2m^2 - 4m + 1$ self-intersections, and we have $2(1005)^2 - 4(1005) + 1 = 2016031$ as the solution to the problem.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34645, "subject": "Mathematics (Multi-modal)", "question": "Let $n$ be an integer greater than or equal to $2$. Suppose $n$ white points and $n$ black points are distributed on the circumference of a circle, and suppose we try to draw $2n$ line segments using these points so as to satisfy the following conditions:\n(1) Each line segment has a white point and a black point as its end points.\n(2) By tracing these line segments in order, it is possible to complete a cycle going through each of the given $2n$ points once and only once.\nProve that regardless of the way how the given $2n$ points are distributed on the circumference, it is possible to draw the line segments satisfying the conditions above in such a way that there are at most $n-1$ intersections among the line segments drawn. Here, we do not consider an end point of a line segment as an intersection point.", "options": [], "answer": "Detailed solution", "solution": "For $\\ell$ white points and $\\ell$ black points distributed on the circumference of a circle, call a method of drawing $2\\ell$ line segments a good method if the following three conditions are satisfied:\n(1) Each line segment has a white point and a black point as its end points.\n(2) By tracing these line segments in order, it is possible to complete a cycle going through each of the given $2\\ell$ points once and only once.\n(3) There are at most $\\ell - 1$ intersections among the line segments drawn.\n\nFirst, let us prove the following Lemma:\n\n**Lemma:** Let $k$ be an integer greater than or equal to $3$. If for a distribution of $k-1$ white points and $k-1$ black points on the circumference of a circle there exists a good method of drawing $2(k-1)$ line segments, then there exists a good method of drawing $2k$ line segments for a distribution of $k$ white points and $k$ black points.\n\n**Proof:** If $k$ white points and $k$ black points are placed alternatively on the circumference traced clockwise, then by connecting the points in order, we get a good method of drawing $2k$ line segments with $0$ intersections. So, in the sequel we consider other cases. Then we have at least one string of $3$ consecutive points with the configuration $\\{\\text{white}, \\text{black}, \\text{black}\\}$ or $\\{\\text{black}, \\text{white}, \\text{white}\\}$ traced clockwise. As the following argument will work in the same way in both cases, let us assume that the former case takes place, and call the three points $P, Q', Q$.\n\n![](attached_image_1.png)\n\nAs indicated in the figure above, connect $P$ and $Q$, and then $P$ and $Q'$ by solid lines. For the configuration of $2k-2$ points excluding $P$ and $Q$, there is a good method of drawing $2k-2$ line segments by assumption. Draw these $2k-2$ line segments using dotted lines. Label the two points that are connected to $Q'$ by dotted lines as $P'$ and $P''$ so that $P', Q', P''$ lie in this order when traced clockwise. Then, erase the dotted line $Q'P''$ and connect $Q$ and $P''$ with a dotted line. Note that we still have $2k-2$ dotted line segments.\n\nWe will now show that the $2k$ line segments ($2$ solid lines and $2k-2$ dotted lines) give a good method of drawing $2k$ line segments. To see that we can complete a cycle going through each of the $2k$ points once and only once by tracing these $2k$ line segments in order, we just note that the dotted line path going through $P' \\to Q' \\to P''$ is replaced by the new path $P' \\to Q' \\to P \\to Q \\to P''$ and the rest of dotted line path remains unchanged. Finally, to see that there are at most $k-1$ intersections among $2k$ line segments, we first note that the number of intersections among dotted line segments remain the same (and hence no more than $k-2$) by erasing the dotted line $Q'P''$ and introducing the new dotted line $QP''$ as we did above. Furthermore, the $2$ solid line segments introduced above do not intersect each other, and there is only $1$ intersection between a solid line segment and a dotted one (namely, the intersection of $PQ$ and $P'Q'$). Consequently, the number of intersections among $2k$ line segments (comprised with $2k-2$ dotted lines and $2$ solid lines) is no more than $(k-2)+1=k-1$ as claimed, and this proves the lemma.\n\nIt now remains to show that there exists a good method of drawing $2 \\times 2 = 4$ line segments when $2$ white and $2$ black points are distributed on the circumference of a circle. For if this fact can be established, then by using the Lemma above for the case of $k=3$, we conclude that there is a good method of drawing line segments when there are $3$ white and $3$ black points are involved, and by keeping on applying the Lemma whereby increasing the value of $k$ at each step, we can conclude that the assertion of the problem is valid for any $n \\ge 2$.\n\nFinally, we will show that there is a good method for drawing $2k$ line segments when $k=2$. If we label the $4$ points ($2$ white and $2$ black) as $A, B, C, D$, then the combination of line segments that can intersect among them can be chosen only in $1$ way (namely, $AC$ and $BD$) and therefore, the number of possible intersections of the line segments that we have to be concerned with is at most $1$, and this will take care of the question we are concerned with, and thus we complete the proof of the assertion of the problem.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34646, "subject": "Mathematics (Multi-modal)", "question": "Suppose there are 3 islands each for 3 different colors, red, blue and yellow. Try to build several bridges so as to satisfy the following conditions:\n* For any pair of islands, they are either connected by a bridge or not connected by any bridge, and every bridge connects two distinct islands.\n* For any pair of islands of a same color, there is no bridge connecting the pair, and furthermore, there is no island which is connected to both of the islands in the pair by bridges.\nHow many ways of building bridges to satisfy these conditions? Building no bridges will be counted as one possibility.", "options": [], "answer": "39304", "solution": "If the conditions specified in the problem for building bridges are satisfied, then clearly the following modified condition is satisfied:\n(†) For any choice of two colors out of the given three, both of the requirements stated for the problem are satisfied if we restrict our consideration only to the islands of the chosen colors and the bridges between those islands.\nConversely, if the condition (†) is satisfied, then we can show that the conditions specified in the problem are satisfied. Indeed, in such a case the first requirement of the problem is clearly satisfied, and to show that the second requirement is satisfied it is enough to show that for any choice of two islands $P_1$, $P_2$ of the same color and an island $Q$ of a different color the pair $\\{P_1, P_2\\}$ is not connected by any bridge and at least one of the pairs $\\{P_1, Q\\}$, $\\{P_2, Q\\}$ is not connected by any bridge. But the last assertion follows if we apply (†) to the case of the pairing of colors of $P_1$ ($P_2$) and $Q$.\nSince two islands of a same color are not connected by any bridge, the answer to the question is given, due to the symmetry, by $A^3$ where $A$ is the number of ways of building bridges in the case of 6 islands of two colors (say, red and blue).\nSo, let us find the value of $A$. By the given requirement, any island connected to a red island by a bridge must be a blue island, and if there is a red island connected with two different blue islands, this would violate the second requirement. So, each red island is connected with at most 1 island (which has to be blue) by a bridge. Similarly, each blue island is connected with at most 1 island (which has to be red) by a bridge. Therefore, to construct $k$ bridges, we have to choose $k$ islands each from red and blue groups and establish one-to-one correspondence between the sets of 3 red (distinguishable) islands and of 3 blue (distinguishable) islands. This means that there are $(3C_k)^2 \\times k!$ ways of constructing $k$ bridges, and hence we have\n$$\nA = (3C_0)^2 \\times 0! + (3C_1)^2 \\times 1! + (3C_2)^2 \\times 2! + (3C_3)^2 \\times 3! = 34,\n$$\nand the answer for the problem is given by $A^3 = 34^3 = 39304$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34647, "subject": "Mathematics (Multi-modal)", "question": "On the left scale of a balance 4 weights weighing $22$, $24$, $26$, $28$ grams each are placed and on the right scale 4 weights weighing $23$, $25$, $27$, $29$ grams each are placed. This balance gets tilted toward the side having heavier total weight, and settles in equilibrium position when the total weights of both sides are equalized. Suppose we repeat a procedure of removing a weight from the scale on the tilted side, until the equilibrium is reached. How many different ways of removing the weights are there if the equilibrium is reached only when all the weights are removed?", "options": [], "answer": "480", "solution": "Suppose we keep on removing weights from the scale on the tilted side, and instead of stopping when the balance gets in the equilibrium position with some weights still left on the scales, remove another weight from the left-side scale and keep on removing weights from the tilted side again until there are no more weights to be removed. Then the total number of ways of removing weights is given by $(4!)^2 = 576$, which is equal to the total number of ordering the removals of weights from each of the scales. The desired number we seek as the answer to the problem is obtained by subtracting from $576$ the number of ways where equilibrium is reached with some weights still remaining on the scales.\nSuppose we denote by $r$ the ratio (taken as no less than $1$) of the numbers of weights left on the two scales when equilibrium is reached, then $r$ is no more than the ratio $\\frac{29}{22}$ of the heaviest weight to the lightest, since the product of the number of weights and the average weight of the weights must be equal for the both scales, when equilibrium is attained. Since the numbers of the weights left are no more than $4$, the smallest possible value for $r$ is, if not equal to $1$, $\\frac{4}{3}$. Since $\\frac{4}{3} > \\frac{29}{22}$, we conclude that $r = 1$, which means that if equilibrium is achieved, then there must be a same number of weights left on both scales.\nSince the value of each weight on the left scale is even, the total weight on each of the scales when equilibrium is achieved must be even. Since the value of each weight on the right scale is odd, the number of weights on each scale must be a same even number; in fact, we can see that both scales must have $2$ weights when equilibrium occurs. We can check easily that the following $6$ cases are the only possibilities:\n$$\n\\begin{aligned}\n22 + 26 &= 23 + 25, & 22 + 28 &= 23 + 27, & 24 + 26 &= 23 + 27, \\\\\n24 + 28 &= 23 + 29, & 24 + 28 &= 25 + 27, & 26 + 28 &= 25 + 29.\n\\end{aligned}\n$$\nFor each of these $6$ possibilities there are $2$ occasions before equilibrium is achieved and $2$ occasions after it is achieved, when you can make a choice of deciding which of the two remaining weights to remove from the scales, and therefore, the total number of ways of removing weights to attain equilibrium with some weights still remaining on the scales is $6 \\times 2^4 = 96$ and the desired answer to the problem is $576 - 96 = 480$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34648, "subject": "Mathematics (Multi-modal)", "question": "Consider an infinite sequence $a_1, a_2, a_3, \\dots$ of positive integers. Suppose that the following 2 conditions are satisfied for an arbitrary positive integer $n$:\n* $a_n$ is a multiple of $n$.\n* $|a_n - a_{n+1}| \\le 5$.\nFind the maximum possible value that $a_1$ can take.", "options": [], "answer": "85", "solution": "Let $a_1, a_2, a_3, \\dots$ be an infinite sequence of positive integers satisfying the conditions of the problem. From $a_{n+1} \\le a_n + 5$ ($n = 1, 2, \\dots$) it follows that for every $n$ $a_n \\le 5 (n-1) + a_1$ is satisfied. In particular, for all sufficiently large $n$ $a_n < 6n$ is satisfied (in fact, $n \\ge a_1 - 4$ will do.) As $a_n$ is a multiple of $n$ by assumption, we see that $a_n \\le 5n$ for all sufficiently large $n$.\n\nSuppose there exists an $n$ for which $a_n > 5n$. Since there are only a finite number of such $n$'s, as we saw above, there must be the largest such $n$, which we denote by $N$. Then, $a_N > 5N$ and $a_{N+1} \\le 5(N + 1)$. As $a_N$ is a multiple of $N$, we in fact have $a_N \\ge 6N$. From\n$$\n5 \\ge a_N - a_{N+1} \\ge 6N - 5(N+1) = N - 5\n$$\nwe obtain that $N \\le 10$. We have thus shown that if $n \\ge 11$, then $a_n \\le 5n$. In particular, $a_{11} \\le 55$. and since $a_n$ is a multiple of $n$ and does not exceed $a_{n+1} + 5$, we obtain recursively,\n$$\n\\begin{align*} \na_{10} &\\le 60, \\quad a_9 \\le 63, \\quad a_8 \\le 64, \\quad a_7 \\le 63, \\quad a_6 \\le 66, \\\\\na_5 &\\le 70, \\quad a_4 \\le 72, \\quad a_3 \\le 75, \\quad a_2 \\le 80, \\quad a_1 \\le 85. \n\\end{align*}\n$$\nIf, on the other hand, we define\n$$\n\\begin{align*} \na_1 &= 85, \\quad a_2 = 80, \\quad a_3 = 75, \\quad a_4 = 72, \\quad a_5 = 70, \\quad a_6 = 66, \\\\\na_7 &= 63, \\quad a_8 = 64, \\quad a_9 = 63, \\quad a_{10} = 60, \\quad a_n = 5n\\ (n \\ge 11) \n\\end{align*}\n$$\nthen this sequence can be shown to satisfy the conditions of the problem, and hence we conclude that 85 is the desired maximum.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34649, "subject": "Mathematics (Multi-modal)", "question": "Let $ABCDEFG$ be a regular heptagon. Suppose $P$, $Q$, $R$, $S$ are points on the line segments $AB$, $BC$, $CD$, $EF$, respectively, for which $BP = CQ = DR = FS = \\frac{1}{3}$ are satisfied. Let $T$ be the point of intersection of the line segments $PR$ and $QS$. Find the value of $\\angle PTS$.\n\nHere by $XY$ we mean the length of the line segment $XY$.\n\n![](attached_image_1.png)", "options": [], "answer": "720/7 degrees", "solution": "$\\boxed{\\frac{720^{\\circ}}{7}}$\n\nLet $U$, $V$, $W$ be points on the sides $DE$, $FG$, $GA$, respectively, dividing respective side in $2 : 1$ ratio. Then, it is easy to see that $PQRUSVW$ becomes also a regular heptagon. Hence these $7$ points lie on the circumference of a same circle, and divides the circumference into $7$ arcs of equal length. From this it follows that $\\angle PRS$ is $\\frac{1}{2}$ of the angle subtended by the arc $PWVS$ of the circum-circle of this heptagon at its center, and thus $\\angle PRS = \\frac{1}{2} \\cdot \\frac{3}{7} \\cdot 360^{\\circ}$. Similarly, we have $\\angle QSR = \\frac{1}{2} \\cdot \\frac{1}{7} \\cdot 360^{\\circ}$. Consequently, we get $\\angle PTS = \\angle PRS + \\angle QSR = \\frac{720^{\\circ}}{7}$.\n\n![](attached_image_2.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34650, "subject": "Mathematics (Multi-modal)", "question": "In the left-hand side diagram below there are 4 rows and 3 columns of rectangles, and in the right-hand side diagram below there are 3 rows and 4 columns of rectangles. Numbers are inserted in the rectangles in the left-hand side diagram as indicated below, while no numbers are inserted yet in the right-hand side diagram.\n\n| 1 | 2 | 3 |\n|---|---|---|\n| 4 | 5 | 6 |\n| 7 | 8 | 9 |\n| 10 | 11 | 12 |\n\n| | | | |\n|---|---|---|---|\n| | | | |\n| | | | |\n| | | | |\n\nSuppose we try to insert into each rectangle of the right-hand side diagram an integer greater than or equal to 1 and less than or equal to 12 in such a way that the following two conditions are satisfied:\n* If numbers $n$ and $m$ are written in a same row of the right-hand side diagram, then they also appear in a same row of the left-hand side diagram.\n* If numbers $n$ and $m$ are written in a same column of the right-hand side diagram, then they appear in a same column of the left-hand side diagram.\n\nHow many different ways are there for inserting numbers into the rectangles of the diagram on the right-hand side satisfying these conditions? We may insert a same number into more than one rectangles in the right-hand side diagram or we need not insert some number into any rectangle on the right-hand side diagram.", "options": [], "answer": "5184", "solution": "$\\boxed{5184\\ \\text{ways}}$\n\nLet us label some of the rectangles in the $3 \\times 4$ (right) diagram as indicated below: We will first show the following fact: if we decide what numbers to put into\n\n| A | B | C | X |\n|---|---|---|---|\n| | | | |\n| | | | |\n\nThe rectangles labeled A, B, C, D with the proviso that the 2 numbers to be put in C, D should be chosen from a same row of the $4 \\times 3$ (left) diagram, then the numbers to be put into other rectangles of the right diagram can be determined uniquely. For example, the number to be inserted into the rectangle labeled X is the number appearing in the same row (say $i$-th row) of the left diagram as the number inserted in A, and appearing in the same column (say $j$-th column) of the left diagram as the number inserted in D (note that there is one and only one such number, namely the number in the $ij$-th rectangle in the left diagram). We can find the unique number to be inserted into each of other rectangles of the right diagram in a similar manner. And thus, there is exactly one way of completing the right diagram once the numbers to be inserted into A, B, C, D are decided.\n\nLet us now count the number of ways we can put numbers into A, B, C, D satisfying the conditions stated above. There are 12 choices for each rectangle labeled A, B, C. The number to be put into D has to be a number which appears in the same row of the left diagram as the number inserted in C, and so there are 3 choices for D. (Note that the number to be put into D can be the same number as the one in C.) Thus, the total number of ways to choose numbers to be inserted into A, B, C, D satisfying the requirement is $12^3 \\times 3 = 5184$.\n\n\n**Alternate Solution.** Suppose we label rows and columns of the left diagram as in the figure below. Suppose we put the numbers into the rectangles of the right\n\n| | a | b | c |\n|---|---|---|---|\n| $\\alpha$ | 1 | 2 | 3 |\n| $\\beta$ | 4 | 5 | 6 |\n| $\\gamma$ | 7 | 8 | 9 |\n| $\\delta$ | 10 | 11 | 12 |\n\ndiagram satisfying the conditions of the problem. Then, for each of the rows of the right diagram the numbers appearing in that row must appear in a same row of the left diagram, so we can associate one symbol from $\\{\\alpha, \\beta, \\gamma, \\delta\\}$ to each of the rows of the right diagram. Similarly, we can associate one symbol from $\\{a, b, c\\}$ to each of the columns of the right diagram.\n\nConversely, suppose we associate to each of the rows of the right diagram one symbol from $\\{\\alpha, \\beta, \\gamma, \\delta\\}$, and to each of the columns of the right diagram one symbol from $\\{a, b, c\\}$ (we may associate a same symbols to two or more rows or columns, and we allow the possibility that some symbols may not be used). Then we see that we get a method of inserting numbers satisfying the requirement of the problem. (For instance insert 1 to the rectangle appearing in the row associated with $\\alpha$ and the column associated with $a$, and do similarly for other rectangles.)\n\nConsequently, to determine the number of ways to insert numbers into the rectangles of the right diagram satisfying the requirement of the problem, it suffices to find the number of ways of associating symbols $\\{\\alpha, \\beta, \\gamma, \\delta\\}$ to the rows and $\\{a, b, c\\}$ to the columns of the right diagram. There are $4^3$ ways of associating the 4 symbols to the 3 rows and $3^4$ ways of associating the 3 symbols to the 4 columns, and therefore, the answer desired is $4^3 \\times 3^4 = 5184$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34651, "subject": "Mathematics (Multi-modal)", "question": "A point $P$ is located in the interior of a triangle $ABC$. If\n$$\nAP = \\sqrt{3},\\ BP = 5,\\ CP = 2,\\ AB : AC = 2 : 1,\\ \\angle BAC = 60^\\circ,\n$$\nwhat is the value of the area of the triangle $ABC$?\n\nHere by $XY$ we represent the length of the line segment $XY$.", "options": [], "answer": "(6+7√3)/2", "solution": "$$\n\\frac{6+7\\sqrt{3}}{2}\n$$\nTake a point $Q$ in the opposite side from the point $C$ with respect to the line $AB$ so as to make the triangles $ABQ$ and $ACP$ similar. The similarity ratio of the triangle $ABQ$ to the triangle $ACP$ is given by $AB : AC = 2 : 1$, and so we obtain $AQ = 2AP = 2\\sqrt{3}$, $BQ = 2CP = 4$. Also, from $\\angle QAB = \\angle PAC$ we get\n$$\n\\angle QAP = \\angle QAB + \\angle BAP = \\angle PAC + \\angle BAP = \\angle BAC = 60^{\\circ},\n$$\nwhich, together with the fact that $AQ : AP = 2 : 1$, yield $\\angle APQ = 90^{\\circ}$ and $PQ = \\sqrt{3}AP = 3$.\n![](attached_image_1.png)\nFrom these facts, we deduce that $BP^2 = BQ^2 + PQ^2$, and this in turn implies that $\\angle BQP = 90^{\\circ}$. Consequently, we get $AB^2 = PQ^2 + (AP + BQ)^2 = 28 + 8\\sqrt{3}$, and the area of the triangle $ABC$ is given by\n$$\n\\frac{1}{2} \\cdot AB \\cdot AC \\cdot \\sin 60^{\\circ} = \\frac{\\sqrt{3}}{8} AB^2 = \\frac{6+7\\sqrt{3}}{2}\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34652, "subject": "Mathematics (Multi-modal)", "question": "How many ways of lining up $2010$ white stones and $2010$ black stones along a horizontal straight line are there so as to satisfy the following condition?\n\n* In the line-up there are odd number of pairs consisting of one white stone and one black stone with the white one lying on the right of the black one.", "options": [], "answer": "(binom(4020,2010) - binom(2010,1005))/2", "solution": "$$\n\\frac{\\binom{4020}{2010} - \\binom{2010}{1005}}{2} \\text{ ways}\n$$\n\nWhen you line-up $4020$ stones, $2010$ of them white and $2010$ others black, along a horizontal straight line, you have the following two possibilities for the resulting configuration, regardless of the condition of the problem:\n\n(1) For each $i$, the two stones located at $(2i - 1)$-th spot and $2i$-th spot are of the same color.\n\n(2) There exists an $i$, for which the stones located at $(2i - 1)$-th spot and $2i$-th spot have different colors.\n\nHere and for the remainder of this argument, by the \"$j$-th spot\" we mean the spot in the $j$-th position counted from the left-most location.\n\nThe sum of the numbers of ways of putting stones in fashion (1) and in fashion (2), which equals the total number of ways of putting $4020$ stones ($2010$ of which are white and the rest black) on a line equals $\\binom{4020}{2010}$, since it is the same as the number of ways of finding $2010$ spots for black stones to go in out of $4020$ possible spots. By lumping the two consecutive stones of the same color put into $(2i - 1)$-th and $2i$-th spots together, we can conclude that the number of ways of putting stones so as to satisfy the condition (1) is given by $\\binom{2010}{1005}$. Therefore, there are $\\binom{4020}{2010} - \\binom{2010}{1005}$ ways of putting stones to satisfy the condition (2).\n\nLet us consider now in each of the two cases above how many ways of putting stones to satisfy the required condition of the problem.\n\nWe first show that none of the ways of distributing stones to satisfy the condition (1) satisfies the requirement of the problem. The reason for this is that in the configuration of the locations of stones satisfying (1) the number of the pairs of stones in the configuration with a white stone lying on the right of a black stone must always be even. This is so, because in a configuration satisfying the condition (1) if for some pair $(i, j)$ with $2i - 1 < j$ the stone in the $(2i - 1)$-th spot is black and the one in the $j$-th spot is white, then we must have $2i < j$ (since by the condition (1), the stone in the $2i$-th spot must be black), and we have a pair of stones in the same configuration in which, the stone in $2i$-th spot is black and the one in the $j$-th spot is white.\n\nOn the other hand, exactly half of the configurations satisfying the condition (2) can be shown to satisfy the condition of the problem. Let us show why this is the case. Let us take a configuration satisfying the condition (2) and call it A. For A there is at least one number $i$ for which the stone located in the $(2i - 1)$-th spot and the stone located in the $2i$-th spot have different colors. Let $k$ be the smallest of such $i$'s. Let B be the configuration obtained by interchanging the stones in the $(2k - 1)$-th spot and $2k$-th spot and leaving all other stones as they are in the configuration A. Clearly, B is also a configuration satisfying the condition (2). By changing from A to B the number of pairs of stones for which a white stone lies on the right of a black stone in the configuration changes exactly by $1$. We also note that we get the configuration A from B by going through the same procedure as we did for getting B from A. Thus, if we put A and B together to form a pair of configurations of type (2), then we can see that the number of such pairs of configurations is exactly $\\frac{1}{2}$ of the total number of configurations satisfying the condition (2). Since one and only one of configurations constituting such a pair of configurations satisfies the requirement of the problem, we see that the answer to the problem is given by $\\frac{\\binom{4020}{2010} - \\binom{2010}{1005}}{2}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34653, "subject": "Mathematics (Multi-modal)", "question": "For a positive integer $n$, denote by $S(n)$ the sum of the digits of $n$. Determine the number of positive integers $n$ less than or equal to $999$ for which $S(9n) = 27$ is valid.", "options": [], "answer": "165", "solution": "First of all let us determine the number of possible ways of forming the triplets $(a, b, c)$ of integers satisfying the condition $n \\ge a \\ge b \\ge c \\ge 1$ for a given positive integer $n$. If we let $a' = a + 2$, $b' = b + 1$, $c' = c$, then we see that a triplet $(a, b, c)$ satisfying the condition will correspond in one-to-one manner to a triplet $(a', b', c')$ satisfying $n + 2 \\ge a' \\ge b' \\ge c' \\ge 1$. Therefore, the number we seek is the same as the number of possible ways of choosing 3 distinct elements from the set of $n + 2$ elements, which is $\\binom{n+2}{3}$.\n\nSuppose that $n$ is a non-negative integer with 3 or less digits. Then, we can represent $n$ as $n = 100a + 10b + c$ with $0 \\le a, b, c \\le 9$, and we have\n$$\n9n = 900a + 90b + 9c = 1000(a-1) + 100[9 - (a-b)] + 10[9 - (b-c)] + (10-c), \\quad (*)\n$$\nfrom which it follows that if $9 \\ge a \\ge b \\ge c \\ge 1$, then we have\n$$\n0 \\le a - 1 \\le 9, \\quad 0 \\le b - 1 \\le 9, \\quad 0 \\le c - 1 \\le 9\n$$\nso that\n$$\nS(9n) = (a - 1) + 9 - (a - b) + 9 - (b - c) + 10 - c = 27.\n$$\nOn the other hand, if $c = 0$ or $a < b$ or $b < c$, then from $(*)$ we see there will be carry-over(s) of the digits of $9n$ which will cause the value of $S(9n)$ to be strictly less than $27$. From these considerations it follows that the answer for the problem is the number of possible triplets $(a, b, c)$ of integers satisfying the condition $9 \\ge a \\ge b \\ge c \\ge 1$ and this number equals, as we derived above, $\\binom{11}{3} = 165$.\n\n\n**Alternate Solution**\n\nIt is easy to check that any positive integer for which the sum of all of its digits is a multiple of $9$ is divisible by $9$. Therefore, if for some positive integer $k$, $S(k) = 27$, then $k$ is a multiple of $9$ and we can write $k = 9n$ for some positive integer $n$ and $S(9n) = 27$. Thus our problem for finding the number of elements in the set of positive integers $n$, $1 \\le n \\le 999$ for which $S(9n) = 27$ is the same as finding the number of elements in the set of positive integers $k$, $1 \\le k \\le 9000$ for which $S(k) = 27$ (Note that there are no integers in the set $\\{j|1 \\le j \\le 8\\} \\cup \\{j|8992 \\le j \\le 9000\\}$ for which $S(j) = 27$).\n\nIf for a positive integer $k$ with 4 or less digits we have $S(k) = 27$, then writing $k = 10^3a + 10^2b + 10c + d$, with $0 \\le a, b, c, d \\le 9$, we have $9999 - k = 10^3(9 - a) + 10^2(9 - b) + 10(9 - c) + 9 - d$, and we get $S(9999 - k) = 4 \\times 9 - (a + b + c + d) = 36 - S(k) = 36 - 27 = 9$. Conversely, by the same reasoning we get that if $m$ is a positive integer with 4 or less digits for which $S(m) = 9$, then $k = 9999 - m$ is a positive integer of 4 or less digit for which $S(m) = 27$. Thus the number of elements in the set $\\{k|0 \\le k \\le 9999, S(k) = 27\\}$ is the same as the number of elements in the set $\\{m|0 \\le m \\le 9999, S(m) = 9\\}$.\n\nThe condition for an integer $m$ of 4 or less digits to have $S(m) = 9$ can be written as $0 \\le a, b, c, d \\le 9$, $a+b+c+d=9$ where $a, b, c, d$ are the digits of $m$. By introducing $a' = a+1, b' = a+b+1, c' = a+b+c+1$, we can replace these conditions as $1 \\le a' \\le b' \\le c' \\le 10$, and our problem of finding the number of elements in the set $\\{m|0 \\le m \\le 9999, S(m) = 9\\}$ is reduced the problem of finding the number of triplets $(a', b', c')$ of integers satisfying $1 \\le a' \\le b' \\le c' \\le 10$, which as we saw in the beginning of our discussion is given by $\\binom{12}{3} = 220$.\n\nNow for the desired solution to our problem, we have to subtract from this number $220$ the number of 4-digit numbers $n$ greater than $9000$ for which $S(n) = 27$. Since the top digit of such a number is $9$, we see that it is sufficient to consider the last 3 digits of such a number, and so it is enough to find the number of elements in the set of 3-digit integers $m$ for which $S(m) = 18$. As we went through above, by considering $999 - m$ we can reduce the problem to that of finding the number of triplets $(a, b, c)$ which satisfy conditions $0 \\le a, b, c \\le 9$ and $a+b+c=9$. This problem, in turn, becomes the one for finding the number of elements in the set $\\{(a', b')|1 \\le a' \\le b' \\le 10\\}$. The same type of argument as the one we have used in the beginning of discussion for this problem shows that it is equal to $\\binom{11}{2} = 55$. Hence, the answer to the problem is $220 - 55 = 165$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34654, "subject": "Mathematics (Multi-modal)", "question": "Let $x$ be a 2-digit positive integer and $y$ be a 1-digit positive integer. Suppose that the ten's digit of $x$, the one's digit of $x$ and $y$ are all distinct. Determine the maximum possible value the product $xy$ can take.", "options": [], "answer": "783", "solution": "Let $a$ and $b$ be the ten's digit and the one's digit of $x$, respectively. Since we are concerned with the maximum value of $xy$ and since $a, b, y$ are distinct by assumption, it is clear that it suffices to consider the situation where $a, b, y$ are chosen from $7, 8, 9$. If the numbers for $a$ and $b$ are chosen, then clearly if the number for $a$ is bigger than the number for $b$, the product $xy$ becomes larger. Thus it is enough to consider the three cases: $87 \\times 9$, $97 \\times 8$ and $98 \\times 7$. Of these three numbers the largest is $87 \\times 9 = 783$, which is the desired answer.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34655, "subject": "Mathematics (Multi-modal)", "question": "Let $H$ be the orthocenter of an acute triangle $ABC$, and $M$ be the midpoint of the side $BC$. Let $P$ be the point of intersection of the line $AM$ and the line through $H$ and perpendicular to the line $AM$. Prove that $AM \\cdot PM = BM^2$ holds. Here for a line segment $XY$ its length is also denoted by $XY$.", "options": [], "answer": "Detailed solution", "solution": "Let $X$ be the point of intersection of the lines $BH$ and $AC$, and let $N$ be the midpoint of the line segment $AH$. Since $\\angle AXH = \\angle APH = 90^\\circ$, the points $P$, $X$ lie on the circle having $AH$ as its diameter (if $AB = AC$, then $P$ coincides with $H$ and it is clear that $X$ lies on the circle with $AH$ as its diameter in this case). Since $N$ is the midpoint of $AH$, we then have $\\angle AXN = \\angle XAN$. Also, since $\\angle BXC = 90^\\circ$, the point $X$ lies on the circle having $BC$ as its diameter, and from this we get $\\angle CXM = \\angle XCM$ and $XM = BM$. Using these facts we get\n$$\n\\angle NXM = 180^\\circ - (\\angle AXN + \\angle CXM) = 180^\\circ - (\\angle XAN + \\angle XCM) = 90^\\circ,\n$$\nfrom which it follows that the circle going through the 3 points $A, P, X$ is tangent to the line $MX$. Hence by the well-known theorem on the power of a point with respect to a circle, we obtain $AM \\cdot PM = (XM)^2 = (BM)^2$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34656, "subject": "Mathematics (Multi-modal)", "question": "How many quadruples $(a, b, c, d)$ of positive integers lying in between $1$ and $9$ ($1$ and $9$ inclusive) are there which satisfy $0 < b - a < c - b < d - c$?", "options": [], "answer": "7", "solution": "Let $x = b - a$, $y = c - b$, $z = d - c$. Then, $x, y, z$ are integers satisfying $0 < x < y < z$. Furthermore, since $x + y + z = d - a \\le 9 - 1 = 8$, we see that the triple $(x, y, z)$ must be one of the following $4$ triples:\n$$\n(1, 2, 3),\\ (1, 2, 4),\\ (1, 2, 5),\\ (1, 3, 4).\n$$\nWhen $(x, y, z) = (1, 2, 3)$, we get $(a, b, c, d) = (a, a+1, a+3, a+6)$. So, corresponding to the cases $a = 1, 2, 3$, we get $3$ quadruples $(a, b, c, d)$ satisfying the required condition. Similarly, when $(x, y, z) = (1, 2, 4)$, we get $2$ quadruples $(a, b, c, d)$ satisfying the requirement corresponding to the cases $a = 1, 2$. We also find if $(x, y, z) = (1, 2, 5)$ or if $(x, y, z) = (1, 3, 4)$ only $1$ quadruple $(a, b, c, d)$ corresponding to $a = 1$ will satisfy the requirement. Therefore, there are only $3 + 2 + 1 + 1 = 7$ quadruples $(a, b, c, d)$ satisfying the requirement.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34657, "subject": "Mathematics (Multi-modal)", "question": "A hexagon $ABCDEF$ is inscribed in a circle. If the sides $AB$ and $DE$ are parallel and so are the sides $BC$ and $EF$, prove that the sides $CD$ and $FA$ are also parallel.", "options": [], "answer": "Detailed solution", "solution": "Since the sides $BC$ and $FA$ are not parallel, the lines $BC$ and $FA$ intersect. Call the point of their intersection $X$. Similarly, let $Y$ and $Z$ be the points of intersections of the lines $BC$, $DE$ and of the lines $DE$, $FA$, respectively.\nSince the quadrilateral $ABCD$ is inscribed in the circle, we have $\\angle YCD = \\angle BAD$. As the lines $AB$, $DE$ are parallel, $\\angle BAD = \\angle ADE$. We also have $\\angle ADE = \\angle ZFE$, since the quadrilateral $ADEF$ is inscribed in the circle. Finally, we have $\\angle ZFE = \\angle AXB$ since the lines $BC$ and $EF$ are parallel. Putting these identities together, we get $\\angle YCD = \\angle AXB$, which implies that the sides $CD$ and $FA$ are parallel.\n\n**Alternate Solution:** Since the lines $AB$ and $DE$ are parallel, we have $\\angle ABE = \\angle BED$. Let $\\alpha$ be the common value of these angles. Similarly, we have $\\angle CBE = \\angle BEF$, whose value we call $\\beta$. Using the properties of quadrilaterals inscribed in a circle, we obtain\n$$\n\\angle FCD = 180^\\circ - \\angle DEF = 180^\\circ - \\angle BED - \\angle BEF = 180^\\circ - \\alpha - \\beta,\n$$\n$$\n\\angle CFA = 180^\\circ - \\angle ABC = 180^\\circ - \\angle ABE - \\angle CBE = 180^\\circ - \\alpha - \\beta.\n$$\nFrom this we get $\\angle FCD = \\angle CFA$ which implies that the sides $CD$ and $FA$ are parallel.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34658, "subject": "Mathematics (Multi-modal)", "question": "Suppose $f$ is a positive integer-valued function defined for the set of positive integers satisfying for any pair of positive integers $x, y$ the following inequality:\n$$\n(x + y)f(x) \\leq x^2 + f(xy) + 110.\n$$\nDetermine the minimum and the maximum value of $f(23) + f(2011)$ for this $f$.", "options": [], "answer": "minimum 1902, maximum 2034", "solution": "Let $a = 110$. We will first show that a necessary and sufficient condition for a positive integer-valued function $f$ defined on the set positive integers to satisfy the given inequality is that $f$ satisfies the following simpler inequality:\n$$\n(\\dagger) \\quad t - a \\le f(t) \\le t \\quad \\text{for any positive integer } t.\n$$\nTo see this, first note that for any positive integer $s$, substituting $(x, y) = (s, 1)$ into the given inequality, we obtain $(s+1)f(s) \\le s^2 + f(s) + a$, from which we get $f(s) \\le s + \\frac{a}{s}$. Next, for any positive integer $t$, substitute $(x, y) = (t, 2a)$ into the given inequality and using the fact $f(2at) \\le 2at + \\frac{1}{2t}$ which follows from the result above, we get\n$$\n(t + 2a)f(t) \\le t^2 + f(2at) + a \\le t^2 + 2at + \\frac{1}{2t} + a,\n$$\nwhich yields further that\n$$\nf(t) \\le t + \\frac{1}{2t(t + 2a)} + \\frac{a}{t + 2a} < t + \\frac{1}{2} + \\frac{1}{2} = t + 1.\n$$\nSince $f$ is positive integer-valued, we conclude that $1 \\le f(t) \\le t$, and in particular, $f(1) = 1$. Finally, substituting $(x, y) = (1, t)$ into the given inequality, we get $(1+t) \\cdot 1 \\le 1 + f(t) + a$, from which we get $t - a \\le f(t)$, and thus we have shown that the function $f$ satisfying the given inequality satisfies the inequality $(\\dagger)$ for any positive integer $t$.\nConversely, suppose a positive integer-valued function $f$ satisfies the inequality $(\\dagger)$ for any positive integer $t$. Then, for any pair of positive integers $x, y$, we have\n$$\n(x + y)f(x) \\le (x + y)x = x^2 + (xy - a) + a \\le x^2 + f(xy) + a,\n$$\nso that $f$ satisfies the inequality given for the problem.\nThus, if $f$ satisfies the given inequality, then we have\n$$\n1 \\le f(23) \\le 23, \\quad 1901 = 2011 - 110 \\le f(2011) \\le 2011,\n$$\nand since the value of $f(23)$ and $f(2011)$ can be chosen to take any of the integer values in $[1, 23]$ and $[1901, 2011]$, we conclude that the minimum possible value for $f(23) + f(2011)$ is $1 + 1901 = 1902$ and the maximum possible value is $23 + 2011 = 2034$.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34659, "subject": "Mathematics (Multi-modal)", "question": "How many positive integers $n$ less than or equal to $1000$ are there for which the sum of digits of $5n$ is the same as the sum of digits of $n$?", "options": [], "answer": "91", "solution": "$1000$ does not satisfy the requirement, so let us consider only positive integers $n \\le 999$. One can represent such an integer in the form $100a + 10b + c$ where $a, b, c$ are 1-digit non-negative integers. Since the number obtained by multiplying a 1-digit integer by $5$ is at most $45$ and its one's digit is either $0$ or $5$, we see that there is no carry-over in the addition $5a \\cdot 100 + 5b \\cdot 10 + 5c$. Hence if $n = a \\cdot 100 + b \\cdot 10 + c$, then $S(5n) = S(5a) + S(5b) + S(5c)$. Furthermore, if $k$ is an even 1-digit number, then $S(5k) = \\frac{k}{2}$, while if $k$ is an odd 1-digit number, then $S(5k) = \\frac{k+9}{2}$. Therefore, if $S(N) = S$ for a positive integer $N$ less than or equal to $999$, then $S(5N) = \\frac{S+9\\ell}{2}$, where $\\ell$ is the number of odd integers among the one's, ten's and hundred's digits of $N$.\n\nThe remainder one gets when one divides a positive integer $n$ by $9$ equals the remainder one gets when $S(n)$ is divided by $9$. Hence if $S(N) = S(5N)$, then $N$ must be a multiple of $9$. There are $111$ multiples of $9$ less than or equal to $999$. We will find, by grouping them into sub-classes and checking, how many numbers among these will not satisfy the condition $S(5N) = S(N)$.\n\n(1) When $S(N) = 9$.\nSince $S(5N) = \\frac{S(N)+9\\ell}{2}$, where $\\ell$ is the number of integers among the one's, ten's and hundred's digits of $N$, $\\ell$ must be $1$ if $N$ in this class satisfies $S(5N) = S(N)$. Consequently, among those $N$'s in this class which do not satisfy the requirement have a representation corresponding with $(a, b, c)$ given by $(1, 1, 7), (1, 3, 5), (3, 3, 3)$ and their permutations, and there are exactly $3+6+1=10$ such numbers.\n\n(2) When $S(N) = 18$.\nAmong $N$'s in this class those which satisfy the requirement have exactly $2$ odd integers among their one's, ten's and hundred's digits. If one such $N$ is written as $a \\cdot 100 + b \\cdot 10 + c$, then the number $999 - N = (9 - a) \\cdot 100 + (9 - b) \\cdot 10 + (9 - c)$ belongs to the class (1) and satisfies the requirement, and conversely, if $N' = a' \\cdot 100 + b' \\cdot 10 + c'$ is a number belonging to the class (1), which satisfies the requirement, then $999 - N' = (9 - a') \\cdot 100 + (9 - b') \\cdot 10 + (9 - c')$ belongs to class (2) and satisfies the requirement. Thus, there is a one-to-one correspondence between elements of class (1) and those of class (2), and the correspondence preserves the validity of the requirement. Therefore, as in class (1) there are $10$ numbers in class (2) which do not satisfy the requirement.\n\nThere is only the number $999$ belonging to this class, and this number satisfies the requirement.\n\nThus, among the multiples of $9$, there are $10 \\times 2 = 20$ numbers which do not satisfy the requirement, and hence there are exactly $111 - 20 = 91$ positive integers $N$ less than or equal to $1000$ for which $S(5N) = S(N)$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34660, "subject": "Mathematics (Multi-modal)", "question": "Suppose 4 sides $AB$, $BC$, $CD$, $DA$ of a quadrilateral $ABCD$ are tangent to a circle with its center $O$, and conditions\n$$\nOA = 5,\\ OB = 6,\\ OC = 7,\\ OD = 8\n$$\nare satisfied. Let $M$, $N$ be the midpoint of the line segments $AC$, $BD$ respectively. Find the value of $OM : ON$. Here for a line segment $XY$ its length is also denoted by $XY$.", "options": [], "answer": "35 : 48", "solution": "Let $P$, $Q$, $R$, $S$ be the points of tangency of the given circle to the sides $DA$, $AB$, $BC$, $CD$, respectively. Let, also $A'$, $B'$, $C'$, $D'$ be the midpoints of the line segments $PQ$, $QR$, $RS$, $SP$, respectively. Note that $A'$, $B'$, $C'$, $D'$ lie on the line segments $OA$, $OB$, $OC$, $OD$, respectively. Denote the length of the radius of the circle by $r$.\n\nSince $\\angle APO = \\angle PA'O = 90^\\circ$ and $\\angle AOP = \\angle POA'$, the triangles $APO$ and $PA'O$ are similar, and therefore, we have $AO : PO = PO : A'O$. From this we obtain $AO' = \\frac{PO^2}{AO} = \\frac{r^2}{AO}$. Similarly, we get $C'O = \\frac{C'O}{r}$. Hence, we have $AO : CO = C'O : A'O$ and since $\\angle AOC = \\angle C'OA'$, we see that the triangles $AOC$ and $C'OA'$ are similar. This similarity carries the point $M$ to the midpoint $M'$ of the line segment $A'C'$, and therefore, we have $OM = OM' \\cdot \\frac{AO}{C'O} = OM' \\cdot \\frac{AO \\cdot CO}{r^2}$.\n\nIn the same way, we conclude that if we denote by $N'$ the midpoint of the line segment $B'D'$ then $ON = ON' \\cdot \\frac{BO \\cdot DO}{r^2}$. We see that\n$$\n\\overrightarrow{OM'} = \\frac{1}{2}(\\overrightarrow{OA'} + \\overrightarrow{OC'}) = \\frac{1}{4}(\\overrightarrow{OP} + \\overrightarrow{OQ} + \\overrightarrow{OR} + \\overrightarrow{OS}) = \\frac{1}{2}(\\overrightarrow{OB'} + \\overrightarrow{OD'}) = \\overrightarrow{ON'}\n$$\n\nholds, and therefore, we conclude that $M' = N'$. Putting these facts together, we get\n$$\nOM : ON = OM' \\cdot \\frac{AO \\cdot CO}{r^2} : ON' \\cdot \\frac{BO \\cdot DO}{r^2} = AO \\cdot CO : BO \\cdot DO = 35 : 48,\n$$\nwhich gives the desired answer.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34661, "subject": "Mathematics (Multi-modal)", "question": "64 squares each with side length 1 are arranged in 8 rows and 8 columns to fill the inside of a square $ABCD$ with side length 8. We choose a number of small squares and color them following the 3 conditions specified below:\n* The placement of the colored small squares within the square $ABCD$ is symmetric with respect to both of the diagonals $AC$ and $BD$.\n* For each row the number of colored small squares is at most 1.\n* For each column the number of colored small squares is at most 1.\nHow many possible arrangements of the location of the colored small squares satisfying the 3 conditions above are there? The arrangement where none of the small squares is colored is counted as one possibility.", "options": [], "answer": "201", "solution": "Let us denote by $(i, j)$ the small square located at the intersection of the $i$-th row and the $j$-th column. We may assume that the vertices $A$, $B$, $C$, $D$ of the big square are a vertex of the small squares $(1, 1)$, $(8, 1)$, $(8, 8)$, $(1, 8)$, respectively. The small square located at the position symmetric to the small square $(i, j)$ with respect to the diagonal $AC$ is $(j, i)$ and with respect to the diagonal $BD$ is $(9-j, 9-i)$. For a pair of integers $\\{i, j\\}$ with $1 \\le i, j \\le 8$ call the set of small squares $\\{(i, j), (j, i), (9-i, 9-j), (9-j, 9-i)\\}$ the clique $[i, j]$. Since by assumption the location of colored small squares is symmetric with respect to both of the diagonals $AC$ and $BD$, every small square in a clique $[i, j]$ is colored if the small square $(i, j)$ is colored. We note also that for a pair $\\{i, j\\}$ the cliques $[i, j]$, $[j, i]$, $[9-i, 9-j]$, $[9-j, 9-i]$ are identical, and we see as in the figure below that the set of all the small squares is partitioned into cliques (small squares belonging to a same clique is labeled by a same symbol in the figure).\n\n![](attached_image_1.png)\n\nLet us first consider the number of ways we can choose for coloring small squares $(i, j)$ located off either of the diagonals $AC$ or $BD$. It is enough to consider the number of ways to choose corresponding cliques. Since for such $(i, j)$ the clique $[i, j]$ consists of 4 small squares the number of cliques corresponding to such a small square that can be colored is at most 2, so we consider separately the following 3 cases.\n\n* No clique is chosen for coloring: There is only 1 way for this case.\n\n* Only 1 clique is chosen for coloring: Suppose $[i, j]$ is the clique chosen for coloring, then for each of the 8 choices for $i$, $j$ can be chosen to be any of the 6 numbers different from $i$ and $j-1$. Since for each such choice of $\\{i, j\\}$, the same clique is counted 4 times, so the number of ways to choose 1 clique corresponding to the off-diagonal pair $\\{i, j\\}$ for coloring is $\\frac{8 \\times 6}{4} = 12$.\n\n* 2 cliques are chosen for coloring: First we choose a clique $[i, j]$ as in the preceding case. There are 12 ways of making such a choice. Next, for each choice of $[i, j]$ we choose a clique $[i', j']$ for coloring, without violating the rules for coloring. We see that there are 4 ways of choosing $i'$ and 2 ways of choosing $j'$ so we can choose $\\frac{4 \\times 2}{4} = 2$ ways of choosing $[i', j']$. Since the combination of every such choice $\\{[i, j], [i', j']\\}$ is counted twice in this procedure, the number of ways of choosing 2 cliques with off-diagonal position is $\\frac{12 \\times 2}{2} = 12$.\n\nNext we consider, for each of the choices of off-diagonal cliques for coloring made above, the number of ways of choosing cliques lying on the diagonals for further coloring. For this purpose consider for an integer $k$ with $1 \\le k \\le 4$, the following alternatives:\n\n(1) When there already is a colored small square on the $k$-th row: In this case the cliques $[k, k]$ and $[k, 9-k]$ cannot be chosen for coloring. So, there is only 1 way for the choice (namely for not choosing a clique for coloring).\n\n(2) When there is no colored small squares on the $k$-th row: In this case, none of $(9-k)$-th row, $k$-th column, $(9-k)$-th column contains a colored small square, and at most 1 from the cliques $[k, k]$, $[k, 9-k]$ can be chosen for coloring. So there are 3 ways of choosing a clique (or not choosing any) for coloring from this pair $\\{[k, k], [k, 9-k]\\}$.\n\nFurthermore, for each $k$ considered above, we can make choices for coloring independently. When $n$ small squares on an off-diagonal position were chosen for coloring, $4n$ rows already contain 1 colored small square, so there are only $\\frac{8-4n}{2} = 4-2n$ possibilities for the choice of $k$ corresponding to the case (2) above. Consequently, there are $3^{4-2n}$ ways of choosing small squares on the diagonals for coloring when $n$ off-diagonal small squares are colored.\n\nPutting together the considerations made above we obtain\n$$\n1 \\cdot 3^4 + 12 \\cdot 3^2 + 12 \\cdot 3^0 = 201\n$$\nas the desired answer.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34662, "subject": "Mathematics (Multi-modal)", "question": "Let $n$ be a positive integer greater than or equal to $2$. Determine the maximum possible value the quantity\n$$\n\\left( \\sum_{i=1}^{n} i a_i \\right) \\left( \\sum_{i=1}^{n} \\frac{a_i}{i} \\right)^2\n$$\ncan take where $a_1, a_2, \\dots, a_n$ are non-negative real numbers satisfying $a_1 + a_2 + \\dots + a_n = 1$.", "options": [], "answer": "4(n+1)^3/(27n^2)", "solution": "Let $X = \\sum_{i=1}^{n} i a_{i}$, $Y = \\sum_{i=1}^{n} \\frac{a_{i}}{i}$. We have to find the maximum possible value of the quantity $X Y^{2}$.\n\nFirst, we note that for each $i \\in \\{1, 2, \\dots, n\\}$, $i + \\frac{n}{i} \\le n + 1$ holds. This follows since $(n+1) - (i + \\frac{n}{i}) = \\frac{1}{i}(i-1)(n-i) \\ge 0$. Using this fact we get\n$$\nX + nY = \\sum_{i=1}^{n} \\left(i + \\frac{n}{i}\\right) a_i \\le \\sum_{i=1}^{n} (n+1)a_i = n+1.\n$$\nWe then apply the inequality on additive and multiplicative means to the three quantities $X$, $\\frac{nY}{2}$, $\\frac{nY}{2}$ to obtain\n$$\nX \\cdot \\frac{nY}{2} \\cdot \\frac{nY}{2} \\le \\left(\\frac{X+nY}{3}\\right)^3 \\le \\left(\\frac{n+1}{3}\\right)^3 = \\frac{(n+1)^3}{27},\n$$\nfrom which we conclude that $XY^2 \\le \\frac{4(n+1)^3}{27n^2}$ holds.\n\nOn the other hand, by choosing\n$$\na_1 = \\frac{2n-1}{3(n-1)}, \\quad a_2 = \\dots = a_{n-1} = 0, \\quad a_n = \\frac{n-2}{3(n-1)}\n$$\nwe get $XY^2 = \\frac{4(n+1)^3}{27n^2}$, which implies that $\\frac{4(n+1)^3}{27n^2}$ is the desired maximum value.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34663, "subject": "Mathematics (Multi-modal)", "question": "Let $I$ and $O$ be the incenter and circumcenter of a triangle $ABC$, respectively. If $AB = 2$, $AC = 3$ and $\\angle AIO = 90^\\circ$, what is the area of the triangle $ABC$? Here for a line segment $XY$ its length also is denoted by $XY$.", "options": [], "answer": "15√7/16", "solution": "Let $M$, $N$ be the midpoints of the sides $AB$, $AC$, respectively. Since $\\angle AMO = \\angle ANO = 90^\\circ = \\angle AIO$, we see that the points $A$, $M$, $N$, $I$ lie on the circle having $AO$ as a diameter. In particular, the quadrilateral $AMIN$ is inscribed in this circle, and hence we have $\\angle ANI = \\angle BMI$.\n\nSince we have from the triangle inequality that $BC > |AB - AC| = 1$, we can take a point $D$ on the side $BC$ in such a way that $BM = BD$ holds. From $BM = BD$ and $\\angle MBI = \\angle DBI$, we get the fact that the triangles $MBI$ and $DBI$ are congruent, and hence that $\\angle BMI = \\angle BDI$.\n\nThus we have $\\angle BDI = \\angle ANI$, from which it follows that $\\angle INC = \\angle IDC$. Since we also have $\\angle NCI = \\angle DCI$, as $I$ is the incenter of the triangle $ABC$, we conclude that the triangles $NCI$ and $DCI$ are congruent. Hence, we have $CD = CN = \\frac{3}{2}$, and therefore, $BC = BD + DC = BM + CN = 1 + \\frac{3}{2} = \\frac{5}{2}$.\n\nDenote by $H$ the foot of perpendicular line drawn from $A$ to the line $BC$. From $2^2 + (\\frac{5}{2})^2 > 3^2$, we see that the point $H$ lies on the side $BC$. If we let $BD = x$, then we get from the Pythagorean theorem that $2^2 = x^2 = 3^2 - (\\frac{5}{2} - x)^2$. Solving this, we get $x = \\frac{1}{4}$. We then have $AH = \\sqrt{2^2 - \\frac{1}{16}} = \\frac{3\\sqrt{7}}{4}$ and finally, we obtain that the area of the triangle $ABC = \\frac{1}{2} BC \\cdot AH = \\frac{15\\sqrt{7}}{16}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34664, "subject": "Mathematics (Multi-modal)", "question": "Determine all the quintets $(a, n, p, q, r)$ of positive integers for which the identity\n$$a^n - 1 = (a^p - 1)(a^q - 1)(a^r - 1)$$\nis satisfied.", "options": [], "answer": "All solutions are:\n- a = 1 with arbitrary positive integers n, p, q, r.\n- (a, n, p, q, r) = (3, 2, 1, 1, 1).\n- (a, n, p, q, r) = (2, 6, 2, 2, 3) and all permutations of (p, q, r).\n- (a, n, p, q, r) = (2, k, 1, 1, k) for any positive integer k, and all permutations of (p, q, r).", "solution": "If $a = 1$, the identity of the problem holds regardless of how other positive integers $n, p, q, r$ are chosen. So, we assume that $a \\ge 2$ in the sequel. Since the given identity is symmetric in $p, q, r$, we may assume that $p \\le q \\le r$ holds.\n\nWe can rewrite the given identity in the form\n$$\na^n = a^{p+q+r} - (a^{p+q} + a^{p+r} + a^{q+r}) + (a^p + a^q + a^r).\n$$\nSince $a \\ge 2$, we have $a^{p+q} > a^p$, $a^{q+r} > a^q$, $a^{p+r} > a^r$. This together with the fact that $a^p + a^q + a^r > 0$ gives us\n$$\na^{p+q+r} > a^n > a^{p+q+r} - (a^{p+q} + a^{p+r} + a^{q+r}).\n$$\nFrom the left half of the inequality above, we see that $n \\le p+q+r-1$ and using this we get from the right half of the inequality above that $a^{p+q+r-1} > a^{p+q+r} - (a^{p+q} + a^{p+r} + a^{q+r})$, which simplifies to\n$$\na^{-1} + a^{-p} + a^{-q} + a^{-r} > 1.\n$$\nBecause of the fact that $1 \\le p \\le q \\le r$, we have $a^{-1} \\ge a^{-p} \\ge a^{-q} \\ge a^{-r}$ and since the sum of these 4 numbers is greater than 1 as we saw above, we get $a^{-1} > \\frac{1}{4}$. Thus we have $a < 4$ and since $a \\ge 2$, we must have either $a = 2$ or $a = 3$.\n\n(1) Consider the case when $a = 3$:\n\nIn this case we have $3^{-p} + 3^{-q} + 3^{-r} > 1 - 3^{-1} = \\frac{2}{3}$ so that $3^{-p} > \\frac{2}{9}$, and therefore, $p = 1$. We then get $3^{-q} + 3^{-r} > \\frac{1}{3}$, which in turn implies $3^{-q} > \\frac{1}{6}$, and therefore, $q = 1$. Now from $p = q = 1$, we conclude from the given identity that $3^n = 4 \\cdot 3^r - 3$ must hold. Since $4 \\cdot 3^r < 9 \\cdot 3^r = 3^{r+2}$, we must have $n \\le r+1$. Consequently, we must have $3^{r+1} \\ge 4 \\cdot 3^r - 3$, which simplifies to $3^r \\le 3$. Therefore, $r = 1$ must hold. Thus we see that if $a = 3$, then $p = q = r = 1$ must hold and then the given identity forces $n$ to satisfy $3^n - 1 = (3-1)^3$, from which we get $n = 2$. Thus we conclude that $(3, 2, 1, 1, 1)$ is the unique solution in the case (1).\n\n(2) Consider the case when $a = 2$:\n\nIn this case, we have $2^{-p} + 2^{-q} + 2^{-r} > \\frac{1}{2}$, which implies $2^{-p} > \\frac{1}{6}$. Therefore, we must have either $p = 1$ or $p = 2$.\n\n* Case when $p = 2$:\n\nIn this case, we have $2^{-q} + 2^{-r} > \\frac{1}{4}$ so that $2^{-q} > \\frac{1}{8}$ and combining with the fact $q \\ge p = 2$ we get $q = 2$ as well. Then, we see that the given identity takes the form $2^n = 9 \\cdot 2^r - 8$. From $9 \\cdot 2^r < 16 \\cdot 2^r = 2^{r+4}$ we get $2^{r+3} \\ge 9 \\cdot 2^r - 8$, which simplifies to $2^r \\le 8$. So, we must have $r = 2$ or $r = 3$. Checking each of these cases, we can conclude that $(a, n, p, q, r) = (2, 6, 2, 2, 3)$ is the unique solution in this case.\n\n* Case when $p = 1$:\n\nIn this case the given identity takes the form $2^n = 2^{q+r} - 2^q - 2^r + 2$. Since the right side of this equality is less than $2^{q+r}$, we must have $2^{q+r-1} \\ge 2^{q+r} - 2^q - 2^r + 2$, which reduces to the inequality $2^{q+r-1} + 2 \\le 2^q + 2^r$, from which we get, as $2^q + 2^r \\le 2^{r+1}$, that $2^{q+r-1} < 2^{r+1}$. Hence, $q+r-1 < r+1$ and we get $q = 1$. The given identity now reduces, as $p = q = 1$, to the equality $2^n = 2^r$, so we must have $n = r$, which can be any positive integer. Thus the solution in this case takes the form $(a, n, p, q, r) = (2, k, 1, 1, k)$, where $k$ is an arbitrary positive integer.\n\nSummarizing the arguments given above, we can write down all the quintuples $(a, n, p, q, r)$ satisfying the given identity as follows:\n\n* $a = 1$ and $n, p, q, r$ can be arbitrary positive integers.\n* $(a, n, p, q, r) = (3, 2, 1, 1, 1)$.\n* $(a, n, p, q, r) = (2, 6, 2, 2, 3)$ and its variants obtained by permuting $p, q, r$.\n* $(a, n, p, q, r) = (2, k, 1, 1, k)$ where $k$ is an arbitrary positive integer and their variants obtained by permuting $p, q, r$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34665, "subject": "Mathematics (Multi-modal)", "question": "Suppose a positive integer $n$ is a perfect square. Consider the set of numbers that can be represented as the product of 2 numbers, both of which are greater than or equal to $n$ (2 numbers may be the same). Express the number, which is the $n$-th smallest in this set, in terms of $n$.", "options": [], "answer": "(n + sqrt(n) - 1)^2", "solution": "We will show that the desired answer is $(n + \\sqrt{n} - 1)^2$.\n\nFor a positive integer $c$ greater than or equal to $2n$, let us call a number a *c*-product if it can be represented as a product of 2 numbers greater than or equal to $n$ whose sum equals $c$. We also denote for any real number $x$ the greatest integer less than or equal to $x$ by $\\lfloor x \\rfloor$ (the Gauss symbol).\n\n**Lemma 1.** Let $c$ be an integer greater than or equal to $2n$. Then, there are exactly $\\lfloor \\frac{c}{2} \\rfloor - n + 1$ c-products, and they are all greater than or equal to $n(c-n)$ and less than or equal to $\\frac{c^2}{4}$.\n\n**Proof:** There are $\\lfloor \\frac{c}{2} \\rfloor - n + 1$ pairs of integers $(x, y)$ with $x, y \\ge n$ and $x + y = c$. They are\n$$\n(n, c-n), (n+1, c-n-1), \\dots, \\left(\\left\\lfloor \\frac{c}{2} \\right\\rfloor, c - \\left\\lfloor \\frac{c}{2} \\right\\rfloor\\right).\n$$\nIf we define $f(t) = t(c-t)$ for any real number $t$, then the products $xy$ for the pairs $(x, y)$ in this set are given by $f(n), f(n+1), \\dots, f(\\lfloor \\frac{c}{2} \\rfloor)$. Since $f(t) = \\frac{c^2}{4} - (c - \\frac{t}{2})^2$, we see that $f(n) < f(n+1) < \\dots < f(\\lfloor \\frac{c}{2} \\rfloor) \\le \\frac{c^2}{4}$. Thus, there are exactly $\\lfloor \\frac{c}{2} \\rfloor - n + 1$ c-products and they are all greater than or equal to $f(n) = n(c-n)$ and less than or equal to $\\frac{c^2}{4}$.\n\n**Lemma 2.** If $2n \\le c < c' \\le 2(n+\\sqrt{n})$, then each $c'$-product is strictly bigger than any of the $c$-products. In particular, the set of $c$-products and the set of $c'$-products are disjoint.\n\n**Proof:** It suffices to prove this for the case where $c' = c + 1$. From Lemma 1, we see that it is enough then to show that $\\frac{c^2}{4} < n(c+1-n)$. But the last inequality follows since by assumption $0 \\le c - 2n < 2\\sqrt{n}$ we have $-\\frac{1}{4}(c-n^2)^2 > -n$, and therefore,\n$$\nn(c+1-n) - \\frac{c^2}{4} = -\\frac{1}{4}(c-2n)^2 + n > -n + n = 0.\n$$\n\n**Lemma 3.** If $2(n + \\sqrt{n}) \\le c$, then any $c$-product is greater than any of the $(2(n + \\sqrt{n}) - 1)$-products.\n\n**Proof:** By Lemma 2, every $(2(n+\\sqrt{n})-1)$-product is less than any of the $2(n+\\sqrt{n})$-products. In particular, it is less than $n(n+2\\sqrt{n})$, which is a $2(n+\\sqrt{n})$-product. As $2(n+\\sqrt{n}) \\le c$ by assumption, the assertion of the Lemma follows since $n(n+2\\sqrt{n}) = n(2(n+\\sqrt{n})-n) \\le n(c-n)$.\n\nIn view of Lemma 2 and Lemma 3, we can see that if we list all the numbers that can be written as a product of 2 numbers both of which are greater than or equal to $n$, starting with the smallest such number, then up until we reach the largest $(2(n + \\sqrt{n}) - 1)$-product, these numbers are listed in the following precise manner:\n\nThe first number on the list is $n^2$ which is the unique $(2n)$-product, then comes $n(n+1)$, which is the unique $(2n+1)$-product, followed by $(2n+2)$-products in increasing order, $(2n+3)$-products in increasing order, ..., $2(n+\\sqrt{n}-2)$-products in increasing order, and finally, $2(n+\\sqrt{n}-1)$-products in increasing order.\n\nBy Lemma 1, $(n+\\sqrt{n}-1)^2$ is the largest $(2(n+\\sqrt{n})-2)$-product. Consequently, if $(n+\\sqrt{n}-1)^2$ is the $k$-th smallest number in this list, then by using Lemma 1, we see that $k$ is given by\n$$\n\\sum_{c=2n}^{2(n+\\sqrt{n})-2} \\text{ (the total number of } c\\text{-products).}\n$$\nTherefore,\n$$\n\\begin{align*}\nk &= 1+1+2+2+\\cdots+\\left(\\left[\\frac{2(n+\\sqrt{n})-3}{2}\\right]-n+1\\right)+\\left(\\left[\\frac{2(n+\\sqrt{n})-2}{2}\\right]-n+1\\right) \\\\\n&= 1+1+2+2+\\cdots+(\\sqrt{n}-1)+(\\sqrt{n}-1)+\\sqrt{n} \\\\\n&= 2(1+2+\\cdots+\\sqrt{n}) - \\sqrt{n} = 2\\left(\\frac{(1+\\sqrt{n})\\sqrt{n}}{2}\\right) - \\sqrt{n} = n.\n\\end{align*}\n$$\nHence the desired answer to the problem is $(n + \\sqrt{n} - 1)^2$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34666, "subject": "Mathematics (Multi-modal)", "question": "Suppose for a quadrilateral $ABCD$, $\\angle DAB = 90^\\circ$, $\\angle ABC = \\angle BCD = 60^\\circ$. If $AB = 5$ and $CD = 4$, what is the value of $BC$? Here for a line segment $XY$, its length is also denoted by $XY$.\n\n![](attached_image_1.png)", "options": [], "answer": "6", "solution": "Let $E$ be the point of intersection of the lines $AB$ and $CD$. Then, since $\\angle EBC = \\angle ECB = 60^\\circ$, the triangle $EBC$ is an equilateral triangle. If we let $x = EA$, then the triangle $ADE$ is a right triangle with $\\angle EAD = 90^\\circ$ and since $\\angle AED = 60^\\circ$, we have $DE = 2x$. From $EB = EC$ we obtain $5 + x = 4 + 2x$. Solving this equation we get $x = 1$, and therefore, we conclude that $BC = EB = 1 + 5 = 6$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34667, "subject": "Mathematics (Multi-modal)", "question": "For positive integers $n$, $m$, $k$, let us write $n \\equiv m \\pmod k$ if $n - m$ is divisible by $k$. Let $A$ be the sum of all positive integers $a$ less than or equal to $2011$ for which $a \\equiv 1 \\pmod 3$, and $B$ be the sum of all positive integers $b$ less than or equal to $2011$ for which $b \\equiv 2 \\pmod 3$. Find the value of $A - B$.", "options": [], "answer": "1341", "solution": "Note that $2011 \\equiv 1 \\pmod 3$. So, we see that $A$ is the sum of the numbers\n$$\n3 \\cdot 0 + 1,\\ 3 \\cdot 1 + 1,\\ \\dots,\\ 3 \\cdot 669 + 1,\\ 3 \\cdot 670 + 1,\n$$\nwhile $B$ is the sum of the numbers\n$$\n3 \\cdot 0 + 2,\\ 3 \\cdot 1 + 2,\\ \\dots,\\ 3 \\cdot 668 + 2,\\ 3 \\cdot 669 + 2.\n$$\nFor $0 \\le i \\le 669$ we have $(3i+1)-(3i+2)=-1$ so we obtain\n$$\nA - B = (-1) \\times 670 + (3 \\cdot 670 + 1) = 1341.\n$$", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34668, "subject": "Mathematics (Multi-modal)", "question": "Determine the smallest positive integer with the last 4 digits 9999, which is divisible by 2011.", "options": [], "answer": "5849999", "solution": "Let $n$ be a positive integer for which the last 4 digits of $2011n$ is $9999$. Since the one's digit of $2011n$ is $9$, the one's digit of $n$ has to be $9$. Therefore, we can represent $n$ in the form $n = 10k + 9$ where $k$ is a non-negative integer. Then we must have $2011n = 10 \\cdot 2011k + 18099$ and since the ten's digit of $2011n$ is $9$, we see that the one's digit of $k$ has to be $0$. Thus we conclude that $n = 100\\ell + 9$ with some non-negative integer $\\ell$. We then have $2011n = 100 \\cdot 2011\\ell + 18099$, and since the hundred's digit of this number is $9$ we must have $9$ for the one's digit of $2011\\ell$, and therefore, the one's digit of $\\ell$ must be $9$ as well. Consequently, we can represent $n$ as $n = 1000m + 909$ with a non-negative integer $m$, and we have $2011n = 1000 \\cdot 2011m + 1827999$, and since the thousand's digit of this number must also be $9$, we have to have $2$ for the one's digit of $2011m$, which means that the one's digit of $m$ must be $2$. Thus we can conclude that the last 4 digits of $n$ must be $2909$ and since $2011 \\cdot 2909 = 5849999$, we have $5849999$ for the desired answer.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34669, "subject": "Mathematics (Multi-modal)", "question": "Let $N$ be a positive integer. $N$ squares are lined up contiguously from left to right. Students A and B play a game according to the following rules:\n(1) To start off, A will write 1 non-negative integer into each of the $N$ squares.\n(2) The game ends when the following condition is achieved: For every $i$ satisfying $1 \\le i \\le N - 1$, the number in the $i$-th square from the left is less than or equal to the number in the $(i+1)$-th square from the left. The game continues as long as this condition is not achieved by repeating the following procedure:\n(a) A designates 1 non-negative integer.\n(b) B chooses one of the $N$ squares and replaces the number in that square by the number designated by A in (a).\nIs it possible for B to end the game no matter how A plays?", "options": [], "answer": "Yes; B can always force the game to end in finitely many moves.", "solution": "We will show that the player B can finish the game no matter how A plays.\nSuppose we represent by $(x_1, x_2, \\dots, x_N)$ the list of numbers written into the $N$ boxes from left to right. Let also $x_0 = 0$. For this list we call the index $i$ $(1 \\le i \\le N-1)$ the **index of completion** if it is the smallest index which satisfies $x_i > x_{i+1}$. If such an $i$ does not exist, we let the index of completion be $N$. If at some stage of the game the index of completion is $N$, then the game ends at that stage.\nSuppose at some stage the index of completion $j$ is less than $N$. Then, no matter what non-negative integer $a$ the player A chooses, the player B can use the following strategy (†) to make sure one of the following two possibilities will occur:\n(i) The index of completion increases.\n(ii) The index of completion remains the same, but the sum of all the numbers written in the boxes decreases at least by 1.\n\nStrategy (†):\n* If $x_j \\le a$, replace $x_{j+1}$ by $a$. Then the index of completion increases to at least $j+1$.\n* If $x_j > a$, there exists a unique $i$ with $1 \\le i \\le j$ for which $x_{i-1} \\le a < x_i$. So, replace $x_i$ for this $i$ by $a$. Then the index of completion remains at $j$ and the sum of all the numbers written in the boxes decreases at least by 1.\n\nSince all the integers written in the boxes are non-negative at any stage, it is not possible for the sum of these numbers to keep on decreasing at least by 1 indefinitely while the index of completion is remaining the same. So, the index of completion will keep on increasing, and after a finite number of repetitions the index of completion reaches $N$ and the game will be over and the player B will be the winner.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34670, "subject": "Mathematics (Multi-modal)", "question": "Let $H$ be the orthocenter of an acute triangle $ABC$, and let $D$ be the intersection of the two lines $AH$, $BC$. Let $E$ be the point of intersection of the circumcircle to the triangle $ABD$ and the line $CH$, lying outside of the triangle $ABC$. And let $F$ be the point of intersection of the circumcircle to the triangle $ACD$ and the line $BH$, lying outside of the triangle $ABC$. Show that the two line segments $AE$ and $AF$ have the same length.", "options": [], "answer": "Detailed solution", "solution": "Let $K$, $L$ be the feet of the perpendicular lines drawn from $B$ to the side $CA$ and from $C$ to the side $AB$, respectively. Since the line segment $AB$ is a diameter of the circumcircle to the triangle $ABD$, $\\angle AEB = 90^\\circ$. We see that the triangles $AEB$ and $ALE$ are similar, since they have the angles of same magnitudes. Therefore, we have $AE : AL = AB : AE$, and we get $AE^2 = AB \\cdot AL$.\n\nSimilarly, we obtain $AF^2 = AC \\cdot AK$ from the similarity of the triangles $AFC$ and $AKF$. Since $\\angle BKC = \\angle BLC = 90^\\circ$, we see that the points $B$, $C$, $K$, $L$ lie on the circumference of a same circle. Using the well-known theorem on the power of a point with respect to a circle, we then obtain $AB \\cdot AL = AC \\cdot AK$, and therefore, we obtain $AE^2 = AF^2$, which shows that $AE = AF$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34671, "subject": "Mathematics (Multi-modal)", "question": "Let $a, b, c, d, e, f, g$ be 7 distinct positive integers less than or equal to 7. Determine all the prime numbers which can be represented in the form\n$$\na \\times b \\times c \\times d + e \\times f \\times g.\n$$", "options": [], "answer": "179", "solution": "Let $A = \\{a, b, c, d\\}$, $B = \\{e, f, g\\}$. Suppose the number $X = abcd + efg$ is a prime. Then, we see that the numbers $2, 4, 6$ must belong to the same set $A$ or $B$, because, otherwise, both $abcd$ and $efg$ become even, and therefore $X$ must be even, and since $X \\ne 2$, $X$ cannot be a prime. Also, the numbers $3$ and $6$ must belong to the same set $A$ or $B$, because, otherwise $X$ becomes a multiple of $3$ and since $X \\ne 3$, $X$ cannot be a prime.\nConsequently, we see that $A = \\{2, 3, 4, 6\\}$ and $B = \\{1, 5, 7\\}$, and we conclude that the only prime number of the form $abcd + efg$ is $2 \\cdot 3 \\cdot 4 \\cdot 6 + 1 \\cdot 5 \\cdot 7 = 179$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34672, "subject": "Mathematics (Multi-modal)", "question": "Let $p$, $q$ be positive integers. To start off, we write the integer $1$ on a blackboard. Then, we repeat the following operation:\n**Operation:** Choose $p$ or $q$ and replace the number written on the blackboard by the number obtained by adding the chosen number to it.\nFind a condition on $p$, $q$ which guarantees that the operation can be repeated indefinitely without writing any multiples of $p$ or $q$.", "options": [], "answer": "The operation is possible indefinitely if and only if gcd(p, q) ≥ 2 (i.e., p and q are not relatively prime).", "solution": "We will show that the condition we seek is that $p$ and $q$ are not relatively prime.\n\nSo, first let us show that if $p$ and $q$ are not relatively prime, then the operation can be continued indefinitely without writing on the blackboard any multiples of $p$ or any multiples of $q$. If $p$ and $q$ are not relatively prime then the greatest common divisor $d$ of $p$ and $q$ satisfies $d \\ge 2$. The numbers that can be written on the blackboard are of the form $1 + mp + nq$, where $m$, $n$ are non-negative integers. If such a number is a multiple of $p$, then since both $p$ and $q$ are divisible by $d$, this number has to be divisible by $d$, which implies that $1$ is divisible by $d$, a contradiction since $d \\ge 2$. Similarly, if any number appearing on the blackboard is a multiple of $q$, we get a contradiction. Thus we conclude that regardless of the way how $p$ or $q$ is chosen throughout the process of repeating operations, no multiples of $p$ or $q$ will appear on the blackboard.\n\nConversely, we show that if $p$ and $q$ are relatively prime, then no matter how $p$ or $q$ is chosen in each operation, a multiple of $p$ or $q$ will appear eventually in the process of repeated operations. For this purpose, we first show the following Lemma:\n**Lemma:** If $p$ and $q$ are relatively prime there exists a positive integer $a$ for which $ap+1$ is divisible by $q$.\n**Proof:** Consider the set of $q$ positive integers $\\{p, 2p, \\dots, qp\\}$. Suppose there exist 2 distinct elements $kp$, $lp$ ($k > l$) in this set for which the remainders when divided by $q$ are the same. Then, $kp - lp = (k-l)p$ is divisible by $q$. Since $p$ and $q$ are relatively prime, this means that the positive integer $k-l$ is divisible by $q$. But since $1 \\le l < k \\le q$ implies $0 < k-l < q$, this is a contradiction. Hence we conclude that the set of remainders obtained by dividing each number of the set above contains $q$ distinct numbers between $0$ and $q-1$, and hence this set of remainders is $\\{0, 1, \\dots, q-1\\}$. If we let $ap$ to be the number for which the remainder is $q-1$, then we see that $ap+1$ is divisible by $q$, which proves the Lemma.\n\nNow by using the Lemma above, we get positive integers $a$, $b$ for which $ap+1$ is a multiple of $q$ and $bq+1$ is a multiple of $p$. Then, since $1+ap+nq$ will be a multiple of $q$ for any non-negative integer $n$, we see that if $p$ is chosen $a$ times then a multiple of $q$ will appear on the blackboard, regardless of how many times $q$ is chosen. Similarly, since $1+mp+bq$ will be a multiple of $p$ for any nonnegative integer $m$, a multiple of $p$ will appear on the blackboard regardless of how many times $p$ is chosen if $q$ is chosen $b$ times. Thus, we see that if $p$ and $q$ are relatively prime, then eventually a multiple of $p$ or a multiple of $q$ will appear on the blackboard.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34673, "subject": "Mathematics (Multi-modal)", "question": "On a triangle $ABC$, a point $D$ is picked on the side $AB$ and a point $E$ is picked on the side $AC$ in such a way that the line $DE$ is parallel to the line $BC$. Let $M$ and $N$ be the mid-points of the line segments $BD$ and $CE$, respectively. Determine the area of the triangle $ADE$ if the areas of the quadrilaterals $DMNE$ and $MBCN$ are $1$ and $2$, respectively.\n\n![](attached_image_1.png)", "options": [], "answer": "1/8", "solution": "Since the lines $BC$ and $DE$ are parallel and since $M$ and $N$ are mid-points of the line segments $DB$ and $EC$, respectively, it is easy to see that the line $MN$ is also parallel to the line $BC$ (and $DE$). Therefore, the triangles $ADE$, $AMN$ and $ABC$ are similar. If we let $a = DE$, $b = BC$ and let $h$ and $\\ell$ be the height of the triangles $ADE$ and $ABC$, respectively, then we have $MN = \\frac{1}{2}(a+b)$ and the height of the trapezoid $DMNE$ (and the trapezoid $MBCN$) equals $\\frac{1}{2}(\\ell-h)$. Since the areas of the trapezoids $DMNE$ and $MBCN$ are $1$ and $2$, respectively, we have\n\n$$\n\\frac{1}{2} \\left( a + \\frac{a+b}{2} \\right) \\cdot \\left( \\frac{\\ell - h}{2} \\right) = 1 \\quad \\text{and} \\quad \\frac{1}{2} \\left( b + \\frac{a+b}{2} \\right) \\cdot \\left( \\frac{\\ell - h}{2} \\right) = 2,\n$$\n\nfrom which we obtain $b = 5a$. From the similarity of the triangles $ADE$ and $ABC$, we also get $\\ell = 5h$. The area $S_1$ of the triangle $ADE$ is $\\frac{1}{2}ah$ and the area $S_2$ of the triangle $ABC$ is $\\frac{1}{2}bh = \\frac{25}{2}ah$, and since we also have\n$$\nS_2 - S_1 = \\text{the area of the trapezoid } DBCE = 1 + 2 = 3,\n$$\nwe get\n$$\n\\frac{25}{2}ah - \\frac{1}{2}ah = 3,\n$$\nfrom which it follows that $ah = \\frac{1}{4}$ and we obtain the desired answer $S_1 = \\frac{1}{2}ah = \\frac{1}{8}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34674, "subject": "Mathematics (Multi-modal)", "question": "Determine all the real-valued functions $f$ defined on the real line, for which the following identity is satisfied for any pair of real numbers $x, y$:\n$$\nf(f(x) - f(y)) = f(f(x)) - 2x^2f(y) + f(y^2).\n$$", "options": [], "answer": "f(x) = 0; f(x) = x^2; f(x) = -x^2; f(x) = x^2 - 1; f(x) = 1 - x^2", "solution": "Let us label the equation given in the problem by $(\\star)$. We will show that the functions $f$ satisfying the equation $(\\star)$ are given by the following:\n$$\nf(x) = 0, \\quad x^2, \\quad -x^2, \\quad x^2 - 1, \\quad 1 - x^2.\n$$\nIt is easy to check that all of these functions satisfy the equation $(\\star)$.\nWe will show in the sequel that there are no other function which satisfies the equation $(\\star)$.\nSo, let a function $f$ satisfy the equation $(\\star)$ and suppose for some $t$, $f(t) \\neq 0$ is true. Suppose for some pair of real numbers $a, b$ the condition $f(a) = f(b)$ is satisfied. By comparing the results obtained by substituting into $(\\star)$ $(x, y) = (a, t)$ and $(x, y) = (b, t)$, we see that $2a^2f(t) = 2b^2f(t)$ must hold, from which we get $a = \\pm b$.\nLet $f(0) = k$. Substituting $(x, y) = (0, 0)$ into the equation $(\\star)$, we see that\n$f(k) = 0$ must be satisfied. Also, if we substitute $(x, y) = (0, k)$ into $(\\star)$ and use\nthe fact $f(k) = 0$, we get $f(k^2) = 0$. Thus, we see that we must have $k^2 = \\pm k$,\nand therefore $k = 0, \\pm 1$. Finally, substituting $(x, y) = (0, y)$ into $(\\star)$, we get\n$f(k - f(y)) = f(y^2)$, from which we can conclude that $k - f(y) = \\pm y^2$ for any $y$,\ni.e., for any $y$, $f(y) \\in \\{k + y^2, k - y^2\\}$ must hold.\n\n(1) Let us consider the case $k=0$.\nSuppose there exist non-zero real numbers $z, w$ for which $f(z) = z^2$, $f(w) = -w^2$ are satisfied. By substituting $(x, y) = (w, w)$ into the equation $(\\star)$, we obtain $0 = f(f(w)) + 2w^4 + f(w^2)$. Since $k = 0$, we have $f(f(w)) = \\pm w^4$ and $f(w^2) = \\pm w^4$, and we can check that $f(w^2) = -w^4$ must hold, since $w \\neq 0$. Finally, if we substitute $(x, y) = (z, w)$ into the equation $(\\star)$, we get\n$$\n\\pm(z^2 + w^2)^2 = \\pm z^4 + 2z^2w^2 - w^4.\n$$\nBy simplifying each of the 4 cases arising from the combinations of ± signs,\nwe can check easily that there are no $(z, w)$'s with $z^2 > 0$, $w^2 > 0$ which\nsatisfies the last equation. We can thus conclude that if $k = 0$, then either\n$f(x) = x^2$ for all $x$ or $f(x) = -x^2$ for all $x$.\n\n(2) Consider the cases when $k = \\pm 1$.\nBy substituting $(x, y) = (x, k)$ into the equation $(\\star)$, we get\n$$\nf(f(x) - k) = f(f(x)) - 2kx^2 + k.\n$$\nFrom $f(x) - k = \\pm x^2$, we have $f(f(x) - k) = k \\pm x^4$, and since $f(f(x)) = k \\pm f(x)^2$ we get\n$$\n(\\star\\star) \\qquad \\pm f(x)^2 = \\pm x^4 + 2kx^2 - k.\n$$\n• Suppose $k = 1$ holds.\nIf there exists a $c \\neq 0$ for which $f(c) = 1 + c^2$, then by substituting $x = c$ into the equation $(\\star\\star)$ above, we get\n$$\n\\pm(1 + c^2)^2 = \\pm c^4 + 2c^2 = 1.\n$$\nBut we can check easily that this is impossible for any combination of ± signs, since $c^2 > 0$. Hence, if $k = 1$ we must have $f(x) = 1 - x^2$ for all $x$.\n\n• Suppose $k = -1$ holds.\nIf there exists a $c \\neq 0$ for which $f(c) = 1 - c^2$, we get from the equation $(\\star\\star)$ that\n$$\n\\pm(-1 - c^2)^2 = \\pm c^4 - 2c^2 + 1.\n$$\nBut as for the case of $k = 1$, this identity (for any combination of ± signs) does not hold since $c^2 > 0$. Thus we must have $f(x) = -1 + x^2$ for all $x$.\n\nPutting together the arguments made above, we conclude that there are only 5 possibilities: $0, x^2, -x^2, x^2 - 1, 1 - x^2$ for $f$ satisfying the equation $(\\star)$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34675, "subject": "Mathematics (Multi-modal)", "question": "Let $OAB$ be a sector of a circle with its center $O$ as in the figure below. A point $Q$ is chosen on the chord $AB$. Let $P$ be the point of intersection of the arc of the circular sector and the line $OQ$. If $AQ = 5$, $BQ = 6$, $OQ = PQ$, determine the value of the radius of this sector. Here for a line segment $XY$, its length is also denoted by $XY$.\n\n![](attached_image_1.png)", "options": [], "answer": "2*sqrt(10)", "solution": "Let $r$ be the radius of the circle. Consider the full circle obtained by extending the arc of the circular sector in question. Let $R$ be the point of intersection, other than $P$, of the line $PO$ and the full circle. By the well-known theorem on the power of a point with respect to a circle, we have $AQ \\cdot BA = PQ \\cdot RQ$, which gives us\n\nthe equation $5 \\cdot 6 = \\frac{r}{2} \\cdot \\frac{3}{2} r$. Solving this equation, we obtain $r = 2\\sqrt{10}$, which is the desired answer.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34676, "subject": "Mathematics (Multi-modal)", "question": "4 points lie on a plane in such a way that no 3 among them lie on a same straight line. Consider 4 triangles formed by 3 of the 4 given points. If the radii of the 4 inscribed circles to these 4 triangles have the same length, prove that all of these triangles are congruent.", "options": [], "answer": "Detailed solution", "solution": "First, let us show that the following lemma holds.\n**Lemma:** Suppose a triangle $T$ contains a triangle $T'$, and that the lengths of the radii of $T$ and $T'$ are the same. Then, we must have $T = T'$.\n**Proof:** It is clear that the incircle of a triangle is uniquely determined by the fact that it is the circle having the largest value for its radius among circles contained in the triangle. So, if we denote by $\\Gamma$ and $\\Gamma'$ the incircles of the triangles $T$ and $T'$, respectively, then since $\\Gamma'$ is contained in $T'$ and $T' \\subset T$, we must have that the length of the radius of $\\Gamma'$ must be less than or equal to that of $\\Gamma$. Since these lengths are equal by assumption, we must have $\\Gamma = \\Gamma'$ by the uniqueness. Then, $\\Gamma$ must be contained in $T'$ so we must have $T = T'$.\n\nDenote by $A, B, C, D$ the 4 points given for the problem. We may assume that the triangle $ABC$ has the largest area among the 4 triangles formed by any 3 of the 4 given points. Denote by $\\ell_A$ the line parallel to the side $BC$ and going through the point $A$. If the point $D$ lies on the other side from the points $B, C$ with respect to the line $\\ell_A$, then the triangle $DBC$ will have the area bigger than that of the triangle $ABC$, contrary to our assumption. So, $D$ must lie either on the line $\\ell_A$ or on the same side as $B, D$ with respect to $\\ell_A$.\n\nIf we denote by $\\ell_B, (\\ell_C)$ the line parallel to $AC$ ($AB$) going through the point $B$ ($C$), then we can conclude in the same way as above that the point $D$ lies inside of the triangle (possibly on the boundary) formed by the lines $\\ell_A, \\ell_B, \\ell_C$. Denote by $A', B'$ and $C'$ the points of intersections of the lines $\\ell_B, \\ell_C$, of the lines $\\ell_C, \\ell_A$ and of the lines $\\ell_A, \\ell_B$, respectively.\n\n![](attached_image_1.png)\n\nNow suppose the point $D$ lies in the triangle $ABC$. Then, the triangle $ABC$ contains the triangle $ABD$. But since the radii of the incircles of $ABC$ and $ABD$ have the same length by assumption, we must have $D = C$ by the Lemma proved above. But this contradicts the fact that the 4 given points are distinct. Hence the point $D$ must lie outside of the triangle $ABC$. We may assume without loss\n\nof generality that $D$ lies inside of the triangle $AB'C$. Since the sides $AB, B'C$ are parallel and so are the sides $AB', BC$, the quadrilateral $AB'CB$ is a parallelogram, and so, the triangles $ABC$ and $CB'A$ are congruent and hence the length of the radii of the incircles of these 2 triangles are equal. Since the triangle $CDA$ is contained in the triangle $CB'A$ and the radii of their incircles have the same length, we must have $D = B'$ by the Lemma. Consequently, we conclude that the quadrilateral $ABCD$ is a parallelogram, and therefore, the triangles $ABC$ and $BCD$ have the same area. Since the radii of the incircles of these triangles are also the same, we conclude that the perimeters of these triangles also have the same length (since the area of the triangle is given by $sr$, where $s$ is the length of its perimeter and $r$ is the length of its radius). Thus we get $AB + BC + CA = BC + CD + DB$ and since $AB = CD$ as $ABCD$ is a parallelogram, we see that $CA = DB$ must hold. Thus, the diagonals $AC$ and $BD$ of this parallelogram have the same length, and we conclude that the parallelogram is a rectangle, and all 4 triangles formed by any 3 of the points $A, B, C, D$ are congruent.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34677, "subject": "Mathematics (Multi-modal)", "question": "Let $X$ be the product of all those positive integers less than or equal to $2011$ having either $3$ or $7$ for the one's digit. Determine the value of the ten's digit for $X$.", "options": [], "answer": "2", "solution": "For integers $a$, $b$, $m$, write $a \\equiv b \\pmod{m}$ if $a - b$ is divisible by $m$. For any integer $n$ we have\n$$\n(10n + 3)(10n + 7) = 100n^2 + 100n + 21 \\equiv 21 \\pmod{100}.\n$$\nWe also have\n$$\n21^5 = (20 + 1)^5 = \\sum_{k=0}^{5} \\binom{5}{k} \\cdot 20^k \\equiv \\binom{5}{1} \\cdot 20^1 + \\binom{5}{0} \\cdot 20^0 \\equiv 1 \\pmod{100}.\n$$\nThen, we see that\n$$\n\\begin{aligned}\nX &= (3 \\times 7) \\cdot (13 \\times 17) \\cdots (2003 \\times 2007) \\equiv 21^{201} \\\\\n&\\equiv (21^5)^{40} \\times 21 \\equiv 1^{40} \\times 21 \\equiv 21 \\pmod{100},\n\\end{aligned}\n$$\nwhich implies that $2$ is the desired answer.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34678, "subject": "Mathematics (Multi-modal)", "question": "Suppose a magician can perform each of the following 3 kinds of tricks any number of times:\n* Trick A: Change 1 orange and 1 grape into 2 apples.\n* Trick B: Change 1 grape and 1 apple into 3 oranges\n* Trick C: Change 1 apple and 1 orange into 4 grapes.\n\nInitially, there were 2011 each of apples, grapes and oranges, and the magician performed a number of tricks and ended up with the situation in which there are 2011 apples, 2011 grapes and more than 2011 oranges. What is the smallest possible number of oranges in this situation?", "options": [], "answer": "2024", "solution": "The number of apples decreases by $1$ after $1$ trick of type $B$ or $C$ is performed, and increases by $2$ after $1$ trick of type $A$ is performed. The number of grapes decreases by $1$ after $1$ trick of type $A$ or $B$ is performed, and increases by $4$ after $1$ trick of type $C$ is performed. Suppose the magician used $x$ tricks of type $A$, $y$ tricks of type $B$ and $z$ tricks of type $C$ to reach the situation where the numbers of apples and grapes are the same as their initial numbers, then we must have\n$$\ny+z=2x, \\quad x+y=4z.\n$$\nSince $x, y, z$ are non-negative integers and at least one of $x, y, z$ must be positive, we see that the solution of the simultaneous equation above must have the form $(x, y, z) = (5k, 7k, 3k)$, where $k$ is a positive integer. Since the number of oranges decreases by $1$ after $1$ trick of type $A$ or $C$ is performed and increases by $3$ after $1$ trick of type $B$ is performed, the change of the number of oranges after $5k$ tricks of type $A$, $7k$ tricks of type $B$ and $3k$ tricks of type $C$ are performed is given by $-5k+3 \\times 7k-3k = 13k$. $k=1$, then, gives the smallest possible number of oranges when the number is $2011$ for both apples and grapes, which is $2011+13=2024$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34679, "subject": "Mathematics (Multi-modal)", "question": "Let $n$ be an integer greater than or equal to $2$. Consider the ways of lining up $n^2$ numbers consisting of $n$ numbers each of $\\{1, 2, \\dots, n\\}$ from left to right. Is there a way to line them up to satisfy the following condition?\n\n**Condition:** For any integer $k$ with $1 \\le k \\le n^2 - 1$, the remainder obtained when the sum of the first $k$ numbers on the left is divided by $n$ is different from the remainder obtained when $k$ is divided by $n$.", "options": [], "answer": "Detailed solution", "solution": "We first note that in order to show the existence of such an arrangement, it is enough to show the following:\n> It is possible to line up from left to right $n^2$ numbers consisting of $n$ numbers each of $\\{0, 1, \\dots, n-1\\}$ in such a way that for each $k$ with $1 \\le k \\le n^2-1$ the sum of the $k$ numbers on the left is not a multiple of $n$.\nIndeed, if you get an arrangement for the set of $n^2$ numbers chosen by using the set $\\{0, 1, \\dots, n-1\\}$ satisfying the condition above, then by adding $1$ to each entry of this arrangement, we get an arrangement for $n^2$ numbers chosen by using $\\{1, 2, \\dots, n\\}$ satisfying the condition of the problem.\n\nSo, in the sequel we consider the situation dealing with $n^2$ numbers chosen from $\\{0, 1, \\dots, n-1\\}$.\nFor an arrangement $a_1, a_2, \\dots, a_{n^2}$ of such $n^2$ numbers, let us say it is *i*-safe if $\\sum_{j=1}^i a_j$ is not a multiple of $n$, and is *i*-not-safe otherwise. Let us call such an arrangement *safe-up-to-i* if it is *k*-safe for each $k$, $1 \\le k \\le i$.\nSuppose we consider a process of putting down integers one-by-one from left to right. For any $i$, $(1 \\le i \\le n^2 - 1)$, the number to be put down for the $i$-th spot to make the arrangement $i$-not-safe is unique among $\\{0, 1, \\dots, n-1\\}$. Therefore, if, after the $(i-1)$-th stage of construction, there are at least $2$ distinct numbers different from $1$ remain to be used, then without using $1$, we can put a number into the $i$-th spot to make the arrangement $i$-safe. Repeating this procedure, we can keep on putting down numbers until there are only $n$ $1$'s and some number (say, $k$) of one number different from $1$ (call it $a$) remain (there may not be such an $a$) so as to make the arrangement obtained up-to-$(n^2-n-k)$-safe.\nAfter this stage is reached, we put down $a$ into the $(n^2 - n - k + 1)$-th spot if the result will keep the arrangement $(n^2 - n - k + 1)$-safe, and put down $1$ there instead of $a$, otherwise. Repeat this procedure until either $1$'s or $a$'s are exhausted. In so doing, we note that as long as there are some $a$'s remaining, we do not get a situation where $1$ would be put down consecutively (say at $j$-th and $(j+1)$-th spots). This is so since if $1$ is to be put into both $j$-th and $(j+1)$-th spots, then if we denote by $S$ the sum of all the numbers put down up-to (and including) the $(j-1)$-th spot, then both $S+a$ and $S+a+1$ must be divisible by $n$, which contradicts the assumption that $n \\ge 2$. Thus, if we repeat the procedure, then we end up with the situation where there is only one $a$ remaining or some number (say $\\ell$) of $1$'s remaining to be put down. If only one $a$ remains, $a$ goes into the last spot, and clearly, the arrangement obtained will satisfy the condition of the problem. So, let us consider the case where $\\ell$ $1$'s and nothing else remain. As the sum of all the $n^2$ numbers we are dealing with is $n(\\sum_{j=0}^{n-1} j) = n \\cdot \\frac{n(n-1)}{2}$ is a multiple of $n$, we can write this sum as $An$ where $A$ is a positive integer, and then the sum of all the terms except the last $\\ell$ terms of the arrangement is $An - \\ell$, which is not a multiple of $n$, since the arrangement is up-to-$(n^2 - \\ell)$-safe. Thus, we must have $1 \\le \\ell \\le n-1$ and we are assured that the arrangement will be up-to-$(n^2 - 1)$-safe even after putting down $\\ell$ $1$'s consecutively to fill up all the remaining spots.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34680, "subject": "Mathematics (Multi-modal)", "question": "There are 4 cards and on each one a positive 1-digit integer is written. By choosing 2 different cards from the 4 and writing down the sum of the 2 numbers written on the chosen cards, we can get 4 distinct integers. Also by choosing 2 distinct cards and writing down the product of the 2 numbers written on the chosen cards, we can get 3 distinct integers. Determine all possible combinations of the numbers written on the 4 given cards.", "options": [], "answer": "(1, 2, 2, 4), (1, 3, 3, 9), (2, 4, 4, 8), (4, 6, 6, 9)", "solution": "If we assume that the number of distinct integers written on the 4 cards is 1 or 2, then the possible number of the sums of the 2 integers written on 2 chosen cards is at most 3, so this contradicts the assumption that 4 distinct sums can be obtained. Also, if the 4 numbers written on the 4 cards are all distinct, then by writing these as $a < b < c < d$, we see that $a+b < a+c < b+c < b+d < c+d$ hold so that we can get at least 5 distinct sums for the 2 integers written on 2 chosen cards, again contradicting the assumption. Thus, there must be exactly 3 distinct integers among the numbers written on the 4 cards, with a same number appearing on 2 of the 4 cards and the other 2 numbers are different from it and also distinct. Let us denote by $p < q < r$ these 3 numbers, then since $pq < pr < qr$, the square of the number which appears on 2 cards must coincide with one of the numbers $pq, pr, qr$. Since $p^2 < pq < pr < r^2$ holds, we see that the number appearing on 2 cards must be $q$ and since $pq < q^2 < qr$ holds we must have $q^2 = pr$. Thus we conclude that the numbers written on the 4 cards are representable as $(p, q, q, r)$ with $1 \\le p < q < r \\le 9$ and $q^2 = pr$. We see that only quadruples of integers satisfying these conditions are $(1, 2, 2, 4), (1, 3, 3, 9), (2, 4, 4, 8), (4, 6, 6, 9)$ and it is easy to check that each of these quadruples satisfies the requirements of the problem.", "topic": "Discrete Mathematics", "subtopic": "Combinatorics" }, { "id": 34681, "subject": "Mathematics (Multi-modal)", "question": "Let $ABC$ be a right triangle with $\\angle ABC = 90^\\circ$. Points $P, Q, R$ lie on the sides $BC, CA, AB$, respectively, in such a way that conditions\n$$\nAQ : QC = 2 : 1, \\quad AR = AQ, \\quad QP = QR, \\quad \\angle PQR = 90^\\circ\n$$\nare satisfied. Find the value of $AR$ if $CP = 1$. Here for a line segment $XY$ its length is also represented by $XY$.", "options": [], "answer": "2√5 + 4", "solution": "Take a point $C'$ on the line $AR$ in such a way that the points $A, R, C'$ lie on the line in this order and $RC' = 1$ is satisfied. From the hypothesis of the problem, it then follows that $RC' = PC, RQ = PQ$ are satisfied, and furthermore, we obtain the fact that the triangles $C'RQ$ and $CPQ$ are congruent since\n$$\n\\begin{aligned}\n\\angle C'RQ &= 360^\\circ - (\\angle RQP + \\angle QPB + \\angle PBR) = 360^\\circ - (90^\\circ + \\angle QPB + 90^\\circ) \\\\\n&= 180^\\circ - \\angle QPB = \\angle CPQ.\n\\end{aligned}\n$$\nConsequently, we have $\\angle AQC' = \\angle AQR + \\angle RQC' = \\angle AQR + \\angle PQC = 90^\\circ$. Let $AR = AQ = 2x$. Then, we have $QC = QC' = x$, and by applying the Pythagorean Theorem to the triangle $AQC'$, we get $AC' = \\sqrt{AQ^2 + (QC')^2} = \\sqrt{5}x$. From $1 = RC' - AR = (\\sqrt{5} - 2)x$ we have $x = \\frac{1}{\\sqrt{5}-2}$, and therefore,\n$$\nAR = 2x = \\frac{2}{\\sqrt{5}-2} = 2\\sqrt{5} + 4.\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34682, "subject": "Mathematics (Multi-modal)", "question": "A square with side length $3$ is partitioned into a $3 \\times 3$ grid with $9$ unit squares. In each of the $9$ unit squares a distinct positive integer greater than or equal to $1$ and less than or equal to $9$ is inserted. For each of the $3$ columns the second largest of the $3$ numbers appearing on that column is marked. How many possible arrangements of the $9$ integers are there if the second largest of the $3$ marked numbers is $5$?", "options": [], "answer": "207360", "solution": "First we show that if one of the marked numbers is $5$, then $5$ is the second largest of the three marked numbers. For this purpose, let us note that if $5$ is marked for one of the columns, then there is exactly one number less than or equal to $4$ in this column, and therefore, there must be a column which contains at least two numbers less than or equal to $4$. For such a column the second largest number in it must be less than or equal to $4$, so the number marked for that column must be less than or equal to $4$. By the same reasoning we conclude that there must be a column for which the marked number is greater than or equal to $6$. Thus $5$ is the second largest of the marked numbers.\nFrom the consideration made above, it is enough to find the number of arrangements of nine numbers having $5$ as one of the marked numbers. There are $3$ ways of choosing a column to contain $5$, and for the chosen column containing $5$ there are $4^2$ ways of choosing other two numbers in that column, and there are $6$ ways of permuting the chosen three numbers in that column. Finally, for each arrangement of three numbers in that column, there are $6!$ ways of arranging the remaining six numbers into the other two columns. Therefore, the total number of the desired arrangements is\n$$\n3 \\cdot 4^2 \\cdot 6 \\cdot (6!) = 207360.\n$$", "topic": "Algebra", "subtopic": "Abstract Algebra" }, { "id": 34683, "subject": "Mathematics (Multi-modal)", "question": "Determine the smallest positive integer $n$ for which there are exactly 23 perfect squares greater than or equal to $n$ and less than or equal to $n + 2011$.", "options": [], "answer": "901", "solution": "Suppose we let $k^2$ (where $k$ is some positive integer) be the largest perfect square less than $n$. Then, the 23 perfect squares bigger than or equal to $n$ and less than or equal to $n+2011$ are $(k+1)^2, (k+2)^2, \\dots, (k+23)^2$. So, we must have $(k+24)^2 > n$.\n\nFrom $k^2 < n$ and $(k+24)^2 > n + 2011$, we obtain $(k+24)^2 - k^2 > 2011$. Simplifying the last inequality we get $k > \\frac{2011}{48} - 12 > 29$. Therefore, we must have $k \\ge 30$ from which it follows that $n \\ge k^2 + 1 \\ge 901$. On the other hand, if we let $n = 901$, then we get\n$$\n30^2 < 901 < 31^2, \\quad 53^2 < 901 + 2011 = 2912 < 54^2,\n$$\nwhich shows that the perfect squares bigger than or equal to 901 and less than or equal to $901 + 2011 = 2912$ are 23 numbers $31^2, 32^2, \\dots, 53^2$, and we can conclude that the desired answer to the problem is 901.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34684, "subject": "Mathematics (Multi-modal)", "question": "For positive 2-digit integers $x$ and $y$, the ten's digit of $x$ equals the one's digit of $y$ and the ten's digit of $y$ equals the one's digit of $x$. Let $P$ be the product of $x$ and $y$. Suppose $P$ is a 4-digit number, and suppose that the 2-digit number given by the last (i.e., the bottom) 2 digits of $P$ is 23 greater than the 2-digit number given by the first (i.e., the top) 2 digits of $P$. Determine the value of $P$.", "options": [], "answer": "3154", "solution": "By the given assumptions of the problem, we can write\n$$\nx = 10a + b, \\quad y = 10b + a, \\quad P = xy = 100c + (c + 23) = 101c + 23,\n$$\nwhere $a, b, c$ are integers satisfying $1 \\le a, b \\le 9$ and $c$ has 2-digits. We then obtain from\n$$\n101c + 23 = P = (10a + b)(10b + a) = 101ab + 10(a^2 + b^2),\n$$\nthe fact that $10(a^2 + b^2) \\equiv 23 \\pmod{101}$ holds. Consequently, we have\n$$\na^2 + b^2 \\equiv -100(a^2 + b^2) \\equiv -10 \\cdot 23 = -230 \\equiv 73 \\pmod{101}.\n$$\nFrom $a^2 + b^2 \\equiv 73 \\pmod{101}$ and $2 = 1^2 + 1^2 \\le a^2 + b^2 \\le 9^2 + 9^2 \\le 162$, we see that $a^2 + b^2 = 73$. There are only two pairs $(a, b)$ with $1 \\le a, b \\le 9$ satisfying this equality, namely, $(a, b) = (8, 3)$ or $(3, 8)$. We then get $P = xy = 83 \\cdot 38 = 3154$ and this gives the desired answer.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34685, "subject": "Mathematics (Multi-modal)", "question": "Suppose both the triangles $ABC$ and $PQR$ are right isosceles triangles with $\\angle ACB = \\angle PQR = 90^\\circ$ and $AB = 5$, $PR = 3$ are satisfied. Suppose further that the 3 points $A, P, Q$ lie on a straight line in the written order, and the same is true for the 3 points $B, Q, R$, and also for the 3 points $R, C, P$. Determine the value of the area of the triangle $ABQ$. Here for a line segment $XY$ its length is also denoted by $XY$.\n\n![](attached_image_1.png)", "options": [], "answer": "41/8", "solution": "Since $\\angle ACB = \\angle AQB = 90^\\circ$, the 4 points $A$, $B$, $Q$, $C$ lie on a same circle. Since the angles $\\angle AQC$ and $\\angle ABC$ are subtended by the same arc of this circle at the points $Q$ and $C$ respectively, we have $\\angle AQB = \\angle ABC = 45^\\circ$. Therefore, $\\angle RQC = 90^\\circ - 45^\\circ = 45^\\circ = \\angle PQC$, and this implies that the point $C$ is the mid-point of the side $PR$. Let $H$ and $I$ be the foot of the perpendicular lines drawn from the point $C$ to the sides $PQ$ and $RQ$, respectively. Since the triangle $PQR$ is a right isosceles triangle and since $C$ is the mid-point of the side $PR$, we see that\n$$\nPH = QH = CH = QI = RI = CI = \\frac{PR}{2\\sqrt{2}} = \\frac{3}{2\\sqrt{2}}.\n$$\nBy applying the Pythagorean Theorem to the right triangles $AHC$ and $BIC$, we then obtain\n$$\nAH = \\sqrt{AC^2 - CH^2} = \\sqrt{\\frac{25}{2} - \\frac{9}{8}} = \\sqrt{\\frac{91}{8}}, \\quad BI = \\sqrt{BC^2 - CI^2} = \\sqrt{\\frac{25}{2} - \\frac{9}{8}} = \\sqrt{\\frac{91}{8}}.\n$$\nFrom these we obtain that the area of the triangle $ABQ$ equals\n$$\n\\frac{1}{2}BQ \\cdot AQ = \\frac{1}{2}(BI - QI)(AH + QH) = \\frac{1}{2}\\left(\\sqrt{\\frac{91}{8}} - \\frac{3}{2\\sqrt{2}}\\right)\\left(\\sqrt{\\frac{91}{8}} + \\frac{3}{2\\sqrt{2}}\\right) = \\frac{41}{8}.\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34686, "subject": "Mathematics (Multi-modal)", "question": "Suppose $12$ boxes are lined up from left to right. We want to put a ball in each of these $12$ boxes. Balls are colored red, blue or yellow. How many distinct ways of putting balls into the $12$ boxes are there if the following condition is to be satisfied?\n\n* Condition: For each ball placed in a box, at least $1$ of the balls in the adjacent boxes has the same color as its color.", "options": [], "answer": "2049", "solution": "For an integer $n \\ge 2$, let us consider the number of ways of filling the $n$ boxes lined up from left to right by putting $n$ balls one-by-one into the boxes starting from the left-most one, assuming that any of the balls can have any of the three colors. Denote by $a_n$ the possible number of ways of filling the boxes so as to satisfy the condition of the problem, starting with a red ball going into the left-most box. We see that the number of ways will be the same $a_n$ if we start with a blue ball instead of a red one, and this is true also if we start with a yellow one.\n\nNext, suppose $n \\ge 4$, and we start with a red ball, and count how many red balls were used before the first non-red ball is put into a box. Call this number $k$. Then by the assumption of the problem, $k \\ge 2$. Now consider the following two cases:\n\n(1) When $k=2$: In this case, either a blue or a yellow ball has to go into the third box, and in either case the number of ways of filling the remaining $n-2$ boxes so as to satisfy the condition of the problem is $a_{n-2}$, and therefore there are $2a_{n-2}$ ways of filling the $n$ boxes so as to satisfy the condition.\n\n(2) When $k \\ge 3$: In this case, if we remove the left-most box (containing a red ball), the left-most box for the remaining $n-1$ boxes has a red ball and the number of ways of filling the remaining $n-2$ boxes must be $a_{n-1}$ in order to satisfy the condition.\n\nThus we get the recurrence formula: $a_n = a_{n-1} + 2a_{n-2}$.\n\nWhen $n=2,3$ the only way to fill boxes starting with a red ball and satisfying the condition is to use red balls only, so we have $a_2 = 1$ and $a_3 = 1$.\n\nIf we use the recurrence formula above repeatedly, we obtain $a_{12} = 683$, and therefore, the desired answer is $3 \\times 683 = 2049$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34687, "subject": "Mathematics (Multi-modal)", "question": "Let us denote by $S(k)$ the sum of the digits of a positive integer $k$. Find the smallest positive integer $n$ for which $S(n^2) = S(n) - 7$.", "options": [], "answer": "149", "solution": "For integers $a, b, m$ we write $a \\equiv b \\pmod m$ if $a - b$ is divisible by $m$. First, let us note that $S(k) \\equiv k \\pmod 9$. From $S(n^2) = S(n) - 7$ it then follows that $n^2 \\equiv n - 7 \\pmod 9$. So, we must have $n \\equiv 2, 5, 8 \\pmod 9$.\nFrom $0 < S(n^2) = S(n) - 7$, we see that $S(n) \\ge 8$. If $S(n) = 8$, then $S(n^2) = 8 - 7 = 1$, which implies that $n^2$ is a power of 10 and so is $n$. But, then we get a contradiction to $S(n) = 8$, and therefore, we must have $S(n) \\ge 9$.\nIf the one's digit of $n$ is other than 0, 1, 9, the one's digit of $n^2$ is larger or equal to 4. Furthermore, if, in addition, $n \\ge 4$, then $n^2$ has at least 2 digits and therefore, $S(n^2) \\ge 5$ and so $S(n) \\ge 12$.\nUsing these criteria, we can start with 1 and eliminate numbers which cannot satisfy the condition $S(n^2) = S(n) - 7$. Then we can list the numbers which may not\n\nbe eliminated so quickly and get a list of possible candidates for the desired solution in increasing order. The list grows like 29, 59, 68, 77, 86, 89, 95, 98, 119, 149, ... From this list, we can eliminate some of the numbers rather quickly; for example, the one's digit of $77^2$ is 9 so that $S(77^2) > 9 > 14 - 7 = S(77) - 7$ and thus 77 does not satisfy the desired condition. Similarly, both the one's digit and the thousand's digit of $68^2$ is 4 so $S(68^2) \\ge 4 + 4 = 8 > S(68) - 7$ and 68 can be eliminated and so on. In this way, we can shorten the list of possible candidates to 59, 89, 119, 149, ... and finally, checking these 4 numbers we find that 149 is the smallest positive integer for which $S(n^2) = S(n) - 7$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34688, "subject": "Mathematics (Multi-modal)", "question": "Two people, $A$ and $B$, go up a staircase with a certain number of steps. $A$ goes up 2 steps in one stride, while $B$ goes up 5 steps in one stride, except if $A$ finds only 1 step before the last stride, then he will go up just 1 step to finish, and if $B$ finds 4 or less steps remaining before the last stride, then $B$ will go up whatever steps remaining to climb to finish. $B$ took 6 strides less than $A$ to finish climbing this staircase. Determine all possible numbers of steps for this staircase can have.", "options": [], "answer": "19, 20, 21, 22", "solution": "$[19, 20, 21, 22]$\n\nLet $n$ be the number of steps in the staircase, $a$ and $b$ be the number of strides $A$ and $B$ have taken, respectively. Then, we have\n$$\na - b = 6, \\quad \\frac{n}{2} \\le a < \\frac{n}{2} + 1, \\quad \\frac{n}{5} \\le b < \\frac{n}{5} + 1.\n$$\nFrom these we obtain $\\frac{n}{2} - (\\frac{n}{5} + 1) < a - b < (\\frac{n}{2} + 1) - \\frac{n}{5}$, which yields $\\frac{50}{3} < n < \\frac{70}{3}$.\n\nThus the possibilities for $n$ are 17, 18, 19, 20, 21, 23, but since corresponding values of $a, b, a-b$ are as in the table below, we conclude that the answers we desire are $n = 19, 20, 21, 22$.\n\n| $n$ | 17 | 18 | 19 | 20 | 21 | 22 | 23 |\n|-----|----|----|----|----|----|----|----|\n| $a$ | 9 | 9 | 10 | 10 | 11 | 11 | 12 |\n| $b$ | 4 | 4 | 4 | 4 | 5 | 5 | 5 |\n| $a-b$ | 5 | 5 | 6 | 6 | 6 | 6 | 7 |", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34689, "subject": "Mathematics (Multi-modal)", "question": "A square $ABCD$ is given. Points $P$, $Q$, $R$, $S$ lie on the sides $AB$, $BC$, $CD$, $DA$, of this square, respectively, in such a way that the lines $PR$ and $BC$ are parallel and so are the lines $SQ$ and $AB$. Let $Z$ be the point of intersection of the lines $PR$ and $SQ$. If $BP = 7$, $BQ = 6$, $DZ = 5$, determine the length of a side of the square $ABCD$. Here we are denoting the length of a line segment $XY$ also by $XY$.\n![](attached_image_1.png)", "options": [], "answer": "10", "solution": "Let $x$ be the length of a side of the square $ABCD$. Then, we have $ZS = x - 7$ and $DS = x - 6$. Applying the Pythagorean theorem to the right triangle $ZSD$, we get $(x - 7)^2 + (x - 6)^2 = 5^2$, from which we get $x = 3, 10$. But from $x > BP$ we conclude that $x = 10$, and it is easy to check that $x = 10$ does satisfy the requirement of the problem.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34690, "subject": "Mathematics (Multi-modal)", "question": "Let $ABCDE$ be a convex pentagon, for which the quadrilateral $ABCD$ is a square. If $\\angle AEC + \\angle BED = 180^\\circ$, show that the pentagon $ABCDE$ is circumscribed by a circle. Here, by a convex pentagon we mean a pentagon for which each of the inner angles is less than $180^\\circ$.", "options": [], "answer": "Detailed solution", "solution": "Take a point $E'$ on the opposite side of the line $BC$ from $A$ in such a way that the triangle $BCE'$ becomes congruent with the triangle $ADE$. Since $ABCD$ is a square, we have $AC = BD$ and $\\angle DAC = \\angle CBD$. We also have $AE = BE'$ and $\\angle EAD = \\angle E'BC$. Therefore, we get $\\angle EAC = \\angle EAD + \\angle DAC = \\angle E'BC + \\angle CBD = \\angle E'BD$, and we conclude that the triangles $ACE$ and $BDE'$ are congruent. Then, we see that $\\angle BED + \\angle BE'D = \\angle BED + \\angle AEC = 180^\\circ$, which implies that the 4 points $B$, $D$, $E$, $E'$ lie on the circumference of a circle.\n\nFurthermore, from\n$$\n\\begin{align*}\n\\angle BEC + \\angle BE'C &= \\angle BEC + \\angle AED \\\\\n&= (\\angle BED - \\angle CED) + (\\angle AEC + \\angle CED) \\\\\n&= \\angle BED + \\angle AEC = 180^\\circ,\n\\end{align*}\n$$\nwe see that the 4 points $B$, $C$, $E$, $E'$ also lie on the circumference of a circle. Since the circle going through 3 points $B$, $E$, $E'$ is unique (which is the circumcircle of the triangle $BEE'$), and since the points $C$ and $D$ lie on this circle, we conclude that the circle is the circumcircle of the square $ABCD$ and that the point $E$ lies on it.\n\n\n**Alternate Solution:**\nLet us denote by $\\Gamma$ the circumcircle of the square $ABCD$ and let $O$ be the center of $\\Gamma$. Denote by $F$ the point of intersection of the half line $OE$ and $\\Gamma$. It is enough to show that if $F$ and $E$ do not coincide, then $\\angle AEC + \\angle BED \\neq 180^\\circ$ must hold.\n\nWe note first that $\\angle AFC = \\angle BFD = 90^\\circ$ holds since the line segments $AC$, $BD$ are the diameters of $\\Gamma$.\n\nAssume that $E$ and $F$ are distinct and the 3 points $O$, $E$, $F$ lie on the line in this order. Then, we have $\\angle AEC = \\angle AFC - \\angle EAF - \\angle ECF < 90^\\circ$. Similarly, we get $\\angle BED < 90^\\circ$ and therefore, $\\angle AEC + \\angle BED < 180^\\circ$.\n\nIf, on the other hand, the points lie on the line in the order of $O$, $E$, $F$, we get $\\angle AEC = \\angle AFC + \\angle EAF + \\angle ECF > 90^\\circ$, and similarly, $\\angle BED > 90^\\circ$ and therefore, $\\angle AEC + \\angle BED > 180^\\circ$. Our claim is thus established.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34691, "subject": "Mathematics (Multi-modal)", "question": "For a triangle $ABC$ the line tangent to its circum-circle at $A$ and the line $BC$ intersects at a point $P$. Let $Q$ and $R$ be the points which are symmetrically located from $P$ with respect to the lines $AB$ and $AC$, respectively. Prove that the lines $BC$ and $QR$ intersect perpendicularly.", "options": [], "answer": "Detailed solution", "solution": "Without loss of generality, we may assume that the points $B$, $C$, $P$ lie on the same straight line in this order. Let us denote by $Q'$ the point of intersection of the lines $AB$ and $PQ$ and by $R'$ the point of intersection of the lines $AC$ and $PR$.\nIf $\\angle ACB \\neq 90^\\circ$, we see from $PQ' \\perp AQ'$ and $PR' \\perp AR'$ that the 4 points $A$, $Q'$, $P$, $R'$ lie on the circumference of a circle. Therefore, if we let $S$ be the point of intersection of the lines $BC$ and $Q'R'$, then we get\n$$\n\\begin{align*}\n\\angle BSQ' &= \\angle BPQ' + \\angle PQ'S \\\\\n&= \\angle BPQ' + \\angle PAR' \\\\\n&= \\angle BPQ' + \\angle PBQ' \\\\\n&= \\angle BQ'Q = 90^\\circ,\n\\end{align*}\n$$\nwhich means that $BC \\perp Q'R'$.\nIf $\\angle ACB = 90^\\circ$, we see that the points $Q'$ and $R'$ coincide with the points $A$ and $C$, respectively, and therefore, $BC \\perp Q'R'$ holds in this case as well.\n$Q'$, $R'$ are the mid-points of the line segments $PQ$ and $PR$, respectively, and therefore, we must have $QR \\parallel Q'R'$, and thus we have shown that $BC \\perp QR$ must hold.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34692, "subject": "Mathematics (Multi-modal)", "question": "For a real number $r$ denote by $[r]$ the greatest integer less than or equal to $r$. How many positive integers $n$ are there for which\n$$\n\\lfloor \\frac{1000000}{n} \\rfloor - \\lfloor \\frac{1000000}{n+1} \\rfloor = 1\n$$\nis satisfied?", "options": [], "answer": "1172", "solution": "First, we prove the following Lemma.\n\n**Lemma.** If real numbers $x, y$ and an integer $k$ satisfy $k < x - y < k + 1$, then $[x] - [y] = k$ or $k + 1$ must hold.\n**Proof:** Since $0 \\le x - [x] < 1$ and $0 \\le y - [y] < 1$, we have $x - y - 1 < [x] - [y] < x - y + 1$. This, together with $k < x - y < k + 1$, yields $k - 1 < [x] - [y] < k + 2$. Since $[x] - [y]$ is an integer, we obtain the assertion of the Lemma.\nFor a positive integer $n$, let us write $f(n) = \\frac{1000000}{n}$. Then, we get $f(n) - f(n + 1) = \\frac{1000000}{n(n+1)}$.\n\n(1) Case where $1 \\le n < 707$: We have $n(n + 1) < 500000$ so that $2 < f(n) - f(n + 1)$ holds in this case. Therefore, by the Lemma, we get $[f(n)] - [f(n + 1)] \\ge 2$, which shows that there are no $n$ satisfying the condition of the problem in this case.\n\n(2) Case where $707 \\le n < 1000$: We have $500000 < n(n + 1) < 1000000$ and therefore, $1 < f(n) - f(n + 1) < 2$ in this case. So, we have $[f(n)] - [f(n + 1)] = 1$ or $2$ by the Lemma. If we let $a$ ($b$) be the number of $n$'s with $707 \\le n < 1000$, for which $[f(n)] - [f(n + 1)] = 1$ ($[f(n)] - [f(n + 1)] = 2$, respectively), then we have\n$$\na + b = 1000 - 707 = 293, \\quad a + 2b = [f(707)] - [f(1000)] = 1414 - 1000 = 414.\n$$\nSolving these simultaneous equations, we obtain $a = 172$.\n\n(3) Case where $n \\ge 1000$: We have $1000000 < n(n + 1)$, so that $0 < f(n) - f(n + 1) < 1$ hold in this case. By the Lemma, we have $[f(n)] - [f(n + 1)] = 0$ or $1$. Since we have $[f(n)] = 0$ if $n > 1000$, the number of $n$'s for which $[f(n)] - [f(n + 1)] = 1$ in this case equals $[f(1000)] = 1000$.\n\nTherefore, we conclude that the desired answer for the problem is $172+1000 = 1172$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34693, "subject": "Mathematics (Multi-modal)", "question": "For each positive integer $k$, denote by $S(k)$ the sum of the digits of $k$. How many positive integers $n$ less than or equal to $999$ are there for which $\\frac{S(n)}{S(n+1)}$ is an integer?", "options": [], "answer": "17", "solution": "A positive integer $n$ less than or equal to $999$ can be represented as $10^2a + 10b + c$ where $a, b, c$ are integers satisfying $0 \\le a, b, c \\le 9$ and $a + b + c \\ne 0$. Then we have $S(n) = a + b + c$ and\n$$\nS(n+1) = \\begin{cases} a + b + c + 1, & \\text{if } c < 9 \\cdots (\\text{i}), \\\\ a + b + 1, & \\text{if } c = 9, b < 9 \\cdots (\\text{ii}), \\\\ a + 1, & \\text{if } c = b = 9, a < 9 \\cdots (\\text{iii}), \\\\ 1, & \\text{if } c = b = a = 9 \\cdots (\\text{iv}). \\end{cases}\n$$\n\nNow, it is clear that $\\frac{S(n)}{S(n+1)}$ is not an integer in case (i), and is the integer $999$ in case (iv) above. In case (iii), we have $\\frac{S(n)}{S(n+1)} = \\frac{a + 18}{a + 1}$, which is an integer only when $a = 0$, corresponding to the case $n = 99$. Finally, in case (ii), $\\frac{S(n)}{S(n+1)} = \\frac{a + b + 9}{a + b + 1}$, with $0 \\le a \\le 9$, $0 \\le b < 9$. If we let $k = a + b$, then we see that $\\frac{k + 9}{k + 1}$ is an integer only when $k = 0, 1, 3, 7$, from which we conclude that only possibilities for $(a, b)$ under the case (ii) are\n$$\n(a, b) = (0, 0), (0, 1), (0, 3), (0, 7), (1, 0), (1, 2), (1, 6), (2, 1), (2, 5), (3, 0), (3, 4), (4, 3), (5, 2), (6, 1), (7, 0),\n$$\nand these choices of $(a, b)$ correspond to\n$$\nn = 9, 19, 39, 79, 109, 129, 169, 219, 259, 309, 349, 439, 529, 619, 709,\n$$\nrespectively. These, together with the numbers $99$ and $999$ found above, give $17$ integers satisfying the condition of the problem.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34694, "subject": "Mathematics (Multi-modal)", "question": "Let $n$ be a positive integer and suppose a $2n \\times 2n$ square grid is given. Suppose we color exactly $2n^2$ square boxes of the grid in such a way that the following condition is satisfied.\n\nCondition: If a box is colored then none of the boxes which share only a vertex with that box is not colored.\n\nHow many ways of coloring $2n^2$ square boxes of the grid are there that satisfy the condition stated above? We regard two configurations of colored boxes to be distinct if one configuration can be transposed on the other by rotation or by flipping.", "options": [], "answer": "(2n choose n)^2", "solution": "$(2nC_n)^2$ ways\n\nLet us consider the $n \\times n$ grid of squares of side length $2$ obtained from the original grid by forming $n^2$ non-overlapping squares of side length $2$ by coalescing $4$ neighboring squares of the original grid into one large square. Let us call each of the squares of the new grid a *block*. By the condition of the problem, each block contains at most $2$ squares to be colored, and since $2n^2$ squares of the original grid must be colored, we see that exactly $2$ of the $4$ squares in each block must be colored.\n\nSuppose we label $4$ squares in a block $A, B, C, D$ as indicated in the figure below, and do this in the same way for each block.\n\n| A | B |\n|---|---|\n| C | D |\n\nIn order to color $2$ of the $4$ squares in a block so as to satisfy the condition of the problem, it is enough to choose one of the squares from $A$ and $D$ and one of the squares from $B$ and $C$ to color.\nA square in a block can share a side, or a vertex but not a side, or nothing with any square in an adjacent block (which shares with the block a side or just a vertex). Sharing of a vertex but not a side by two squares in adjacent blocks can occur only when the labels of the two squares are $A$ and $D$ or when they are $B$ and $C$.\n\nTherefore, the decision to color which of the squares $A$ and $D$ for a block can be made independently of the decision to color $B$ or $C$ in that block.\n\nLet us now consider how to decide whether $A$ or $D$ should be colored for each block. Let us start off with the block located at the upper-left corner and choose $A$ or $D$ in that block to color, and proceed to the block lying to the immediate right of the initial block on the same row to make the choice between $A$ and $D$ (so as to satisfy the condition of the problem) and keep on doing the same process until we hit the last block on this row, and then go over to the left-most block lying on the second row to repeat the process, going from left to right, and on to the third row, and so on, finally to reach the last block lying at the lower-right corner. In this process, if for some block $X$, the square $D$ was chosen to be colored, then for all of the blocks lying on the same row and to the right of $X$, $D$ should be colored in order to satisfy the condition of the problem. We also see that if there is a row under the row for $X$, then the block lying directly under $X$ must have the square $D$ colored.\n\nConsequently, for each $k = 1, 2, \\dots, n$, there exists an integer $a_k$ such that in the $k$-th row of the blocks, in all of the $n - a_k$ blocks from the left the square $A$ is colored, while in the remaining $a_k$ blocks in the same row the square $D$ is colored. Furthermore, from the condition on the vertically adjacent pairs of the blocks, we see that $a_k$'s satisfy\n$$\n0 \\le a_1 \\le a_2 \\le \\dots \\le a_n \\le n \\quad (\\dagger).\n$$\nConversely, if for such a sequence $\\{a_k; 1 \\le k \\le n\\}$ we color the square $A$ or $D$ in the $k$-th row so that for all of the first $n - a_k$ blocks from the left the square $A$ will be colored and for the remaining $a_k$ blocks in the same row the square $D$ will be colored, and we do this for every $k = 1, 2, \\dots, n$, then the condition of the coloring will be satisfied as far as the squares $A$ and $D$ are concerned.\n\nIf we define, for each $k = 1, 2, \\dots, n$, $b_k = a_k + k$ the inequalities $(\\dagger)$ above are equivalent to\n$$\n1 \\le b_1 < b_2 < \\dots < b_n \\le 2n,\n$$\nand therefore, we see that the number of ways of choosing $A$ or $D$ to color from each of $n^2$ blocks is the same as the number of choosing $n$ distinct integers lying in between $1$ and $2n$ ($1$ and $2n$ inclusive), which equals $2nC_n$. The same argument applies to the number of ways of choosing $B$ or $C$ to color, and therefore, the total number of coloring the $2n^2$ squares of the original grid to satisfy the condition of the problem is $(2nC_n)^2$.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 34695, "subject": "Mathematics (Multi-modal)", "question": "For a triplet $(a, b, c)$ of positive integers, an $a \\times b \\times c$ rectangular parallelepiped is constructed by assembling $abc$ unit cubes. Then, all the faces of the parallelepiped are colored. How many possible triplets $(a, b, c)$ are there if the number of colored unit cubes equals the number of uncolored ones? Regard two triplets to be the same if they are permutations of each other.", "options": [], "answer": "20", "solution": "If one of $a, b, c$ is less than or equal to $2$, then we see all of the cubes used will be colored and therefore, the condition of the problem will not be satisfied. So, we assume that each of $a, b, c$ is greater than or equal to $3$. We see that the uncolored cubes form an $(a-2) \\times (b-2) \\times (c-2)$ rectangular parallelepiped enclosed within the given rectangular parallelepiped. Therefore, it is enough to determine the number of distinct (modulo permutations) triples $(a, b, c)$ of positive integers for which\n$$\n\\frac{abc}{(a-2)(b-2)(c-2)} = 2, \\quad a, b, c \\ge 3\n$$\nare satisfied.\n\nWe may assume, without loss of generality, that $a \\ge b \\ge c$ hold. Since the function $\\frac{x}{x-2} = 1+\\frac{2}{x-2}$ is monotone decreasing for $x \\ge 3$, we have $\\frac{a}{a-2} \\le \\frac{b}{b-2} \\le \\frac{c}{c-2}$, and therefore, we have $2 = \\frac{abc}{(a-2)(b-2)(c-2)} \\le \\left(\\frac{c}{c-2}\\right)^3$. As $\\left(\\frac{10}{8}\\right)^3 = \\frac{125}{64} < 2$, we must have $c \\le 9$. On the other hand, if $c \\le 4$, then we get $\\frac{c}{c-2} \\ge 2$ from which it follows that $\\frac{ab}{(a-2)(b-2)} \\le 1$, but this is impossible since $1 < \\frac{a}{a-2} \\le \\frac{b}{b-2}$. Thus, we conclude that $c = 5, 6, 7, 8, 9$ must be satisfied.\n\ni. When $c = 5$: In this case, we have $5ab = 6(a-2)(b-2)$, which is transformed into $(a-12)(b-12) = 120$. From $a \\ge b \\ge 5$, we get $a-12 \\ge b-12 \\ge -7$ and we see that it is not possible for $a-12$ and $b-12$ to be negative simultaneously. Therefore, the number of distinct pairs $(a, b)$ to satisfy the condition of the problem under the case in consideration equals the one-half of the numbers of the positive factors of $120 = 2^3 \\cdot 3 \\cdot 5$, which equals $\\frac{1}{2} \\{(3+1) \\times (1+1) \\times (1+1)\\} = 8$.\n\nii. When $c = 6$: In this case, we have $3ab = 4(a-2)(b-2)$, which is transformed into $(a-8)(b-8) = 48$. Since $a \\ge b \\ge 6$ implies that $a-8 \\ge b-8 \\ge -2$, we see that it is not possible to have $a-8$ and $b-8$ be negative simultaneously. Thus the number of pairs $(a,b)$ to satisfy the condition of the problem in this case is the one-half of the positive factors of $48 = 2^4 \\cdot 3$, which equals $\\frac{1}{2}\\{(4+1) \\times (1+1)\\} = 5$.\n\niii. When $c = 7$: In this case, we have $7ab = 10(a-2)(b-2)$, which is transformed to $(3a-20)(3b-20) = 280$. If we note that $a \\ge b \\ge 7$, $3a-20 \\equiv 1 \\pmod{3}$ and $3b-20 \\equiv 1 \\pmod{3}$, then we see that only possibilities for $(3a-20, 3b-20)$ are $(12, 2)$, $(70, 4)$, $(40, 7)$, $(28, 10)$, and the number of pairs $(a,b)$ to satisfy the condition of the problem in this case equals $4$.\n\niv. When $c = 8$: In this case, we have $2ab = 3(a-2)(b-2)$, which is transformed to $(a-6)(b-6) = 24$. From $a \\ge b \\ge 8$, we see that the pairs $(12, 2)$, $(8, 3)$, $(6, 4)$ are the only possibilities for $(a,b)$ to satisfy the condition of the problem in this case. Thus the number of such $(a,b)$ in this case is $3$.\n\nv. When $c = 9$: In this case, we get $9ab = 14(a-2)(b-2)$, which is transformed to $(5a-28)(5b-28) = 18 \\cdot 28$. From $a \\ge b \\ge 9$, $5a-28 \\equiv 2 \\pmod{5}$ and $5b-28 \\equiv 2 \\pmod{5}$, we see that there are no pairs $(a,b)$ satisfying the condition of the problem in this case.\n\nSummarizing the results for the cases considered above, we get $8+5+4+3=20$ for the number of triples $(a,b,c)$ to satisfy the condition of the problem.", "topic": "Discrete Mathematics", "subtopic": "Combinatorics" }, { "id": 34696, "subject": "Mathematics (Multi-modal)", "question": "A circle $X$ is inscribed in a quadrilateral $PQRS$. Construct 4 circles $A, B, C, D$, each of which is tangent to 3 of the 4 straight lines determined by the sides of the quadrilateral, as shown in the figure below. Suppose that the radii of the circles $A, B, C, X$ are $2$, $1$, $4$, $3$, respectively. Determine the radius of the circle $D$.\n\n![](attached_image_1.png)", "options": [], "answer": "8", "solution": "Let us consider the situation, as indicated in the figure below, where $2$ circles and $2$ straight lines which are outer tangent to both of the circles and $1$ inner common tangent line are involved.\n\n![](attached_image_2.png)\n\nLet $T$ and $U$ be the points of intersection of the common inner tangent line and $2$ outer common tangent lines to the circles. Denote by $M, N$ the centers of the $2$ circles and let $m, n$ be the corresponding radius, respectively. Let $I$ and $J$ be the foot of the perpendicular line to the line $TU$ drawn from $M$ and $N$, respectively, and put $TI = mt$, $UI = mu$. Since the line $TM$ bisects one of the angles formed by the outer common tangent and inner common tangent to circles through $T$, and the line $TN$ does the same with respect to the other angle formed by these tangents, we see that $\\angle MTN = 90^\\circ$ holds. This fact, together with $\\angle TIM = \\angle NJT = 90^\\circ$\n\nimplies that we have $\\angle MTI = 90^\\circ - \\angle NTJ = \\angle TNJ$ and therefore, we conclude that the triangles $MTI$ and $TNJ$ are similar.\nConsequently, we obtain $TJ = NJ \\times \\frac{MI}{TI} = \\frac{n}{t}$. Similarly, we get $UJ = \\frac{n}{u}$. It then follows that we have $TU = m(t+u) = n\\left(\\frac{1}{t} + \\frac{1}{u}\\right)$, and therefore, $n = mtu$.\n\n$$\nx = ars = bsp = cpq = dgr,\n$$\nfrom which we obtain\n$$\nx^2 = ars \\times cpq = acpqrs,\n$$\nand\n$$\nx^2 = bsp \\times dqr = bdpqrs.\n$$\nHence, we conclude that $ac = bd$ holds and since $a = 2$, $b = 1$, $c = 4$, we see that $d = 8$ is the desired answer.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34697, "subject": "Mathematics (Multi-modal)", "question": "Suppose a cube $ABCD$-$EFGH$ having a side length of $2012$ and a plane are placed in space, and the intersection of the plane and the cube forms a hexagon $IJKLMN$, where the points $I$, $J$, $K$, $L$, $M$, $N$ lie on the sides $AE$, $EF$, $FG$, $GC$, $CD$, $DA$, respectively, as shown in figure 3 below.\nIf $AI - GL = 8$, $CM - EJ = 6$, $FK - DN = 4$, determine the value obtained by subtracting the area of the hexagon $IJKLMN$ from the sum of the areas of the triangles $IKM$ and $JLN$. Here we denote for a line segment $XY$ its length also by $XY$.\n\n![](attached_image_1.png)", "options": [], "answer": "4\\sqrt{61}", "solution": "Take three points $P$, $Q$, $R$ inside of the cube in such a way that the quadrilaterals $KLMP$, $MNIQ$ and $IJKR$ are parallelograms. Since $IJ$ and $ML$ are parallel, so are $PK$ and $RK$, and we see that the points $P$, $R$, $K$ lie on a same straight line. Therefore, we conclude that the hexagon $IJKLMN$ is partitioned into 3 parallelograms and a triangle $PQR$ as indicated in the figure below.\n\n![](attached_image_2.png)\n\nWe then have\n$$\n\\begin{aligned}\n\\Delta IKM &= \\Delta IKR + \\Delta KMP + \\Delta MIQ + \\Delta PQR \\\\\n&= \\frac{1}{2}(\\square IJKR + \\square KLMP + \\square MNIQ) + \\Delta PQR \\\\\n&= \\frac{1}{2}(a - \\Delta PQR) + \\Delta PQR = \\frac{1}{2}(a + \\Delta PQR).\n\\end{aligned}\n$$\n\nHere we are denoting $\\Delta XYZ$ and $\\square XYZW$ for the areas of the triangle $XYZ$ and of the quadrilateral $XYZW$, respectively. We note also that since $P$ and $R$ lie on the same side from $K$ on the line $PK$, $PR = |PK - RK| = |ML - IJ|$ holds. Similarly, we have $PQ = |NI - LK|$ and $QR = |JK - MN|$.\n\nNext, take three points $P'$, $Q'$, $R'$ inside of the cube so that the quadrilaterals $NIJP'$, $JKLQ'$, $LMNR'$ are parallelograms. Then, in the same way as above, we obtain that $\\Delta JLN = \\frac{1}{2}(a + \\Delta P'Q'R')$. Furthermore, we get $P'R' = |ML - IJ| = PR$, $P'Q' = |NI - LK| = PQ$ and $Q'R' = |JK - MN| = QR$. Hence, the triangles $PQR$ and $P'Q'R'$ are congruent, and in particular, we have $\\Delta PQR = \\Delta P'Q'R'$. Thus we obtain the fact that the answer we seek is $\\Delta IKM + \\Delta JLN - a = \\Delta PQR$, and thus it is enough to find the area of the triangle $PQR$.\n\nLet us now observe that the right triangles $EJI$ and $CML$ are similar since the corresponding sides are parallel. Therefore, we have\n$$\n\\begin{aligned}\nEJ : EI : IJ &= (CM - EJ) : (CL - EI) : (LM - IJ) \\\\\n&= 6 : ((2012 - GL) - (2012 - AI)) : (ML - IJ) = 6 : 8 : (ML - IJ).\n\\end{aligned}\n$$\nSince the triangle for which the ratios of the lengths of the three sides are $6 : 8 : |ML - IJ|$ is a right triangle whose hypotenuse is the side with length $|ML - IJ|$, we get $|ML - IJ| = \\sqrt{6^2 + 8^2} = 10$. Thus, we get $PR = 10$. Similarly, we obtain $PQ = |NI - LK| = \\sqrt{4^2 + 8^2} = 4\\sqrt{5}$ and $QR = |JK - MN| = \\sqrt{4^2 + 6^2} = 2\\sqrt{13}$.\n\nLet $S$ be the foot of the perpendicular line drawn from $Q$ to $PR$ and let $x = RS$ (assume that if $S$ lies on the opposite side from $P$ with respect to $R$, then $x$ is negative). Then, from the Pythagorean theorem, we get\n$$\n(2\\sqrt{13})^2 - x^2 = QS^2 = (4\\sqrt{5})^2 - (10 - x)^2.\n$$\nSolving for $x$ we obtain $x = \\frac{18}{5}$, and then we get $QS = \\frac{4\\sqrt{61}}{5}$. Finally, we obtain\n$$\n\\Delta PQR = \\frac{1}{2} \\cdot 10 \\cdot \\frac{4\\sqrt{61}}{5} = 4\\sqrt{61},\n$$\nwhich is the desired answer for the problem.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34698, "subject": "Mathematics (Multi-modal)", "question": "Suppose the points $A$, $B$, $C$, $D$ are located on the circumference of a circle in this order as indicated in the figure below.\nSuppose the angle formed by the line tangent to the circle at $B$ and the line $AB$ is $30^\\circ$, and that formed by the line tangent to the circle at $C$ and the line $CD$ is $10^\\circ$. Suppose further that the lines $AB$ and $DC$ are parallel and they are located on the opposite sides from each other with respect to the center of the circle. Determine the magnitude of the angle $\\angle BDC$.\n![](attached_image_1.png)\n", "options": [], "answer": "70°", "solution": "Since $AB \\parallel DC$ and since $\\angle DCA$ and $\\angle DBA$ are angles subtended by the same arc $\\widearc{AD}$ at the points $C$ and $B$ on the circle, we have $\\angle BDC = \\angle DBA = \\angle DCA$.\n\nSince the angle subtended by an arc $\\widearc{AB}$ at the point $C$ on the circle equals the angle formed by the tangent line to the circle at $B$ and the chord $AB$, which is $30^\\circ$, we have $\\angle ACB = 30^\\circ$.\n\nSimilarly, we have $\\angle DBC = 10^\\circ$.\n\nTherefore, the sum of the inner angles of the triangle $BCD$ equals\n$$\n\\angle BDC + \\angle DCA + \\angle ACB + \\angle DBC = 2\\angle BDC + 30^\\circ + 10^\\circ,\n$$\nfrom which we get\n$$\n\\angle BDC = \\frac{180^\\circ - (10^\\circ + 30^\\circ)}{2} = 70^\\circ.\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34699, "subject": "Mathematics (Multi-modal)", "question": "Find all functions $f : \\mathbb{R} \\to \\mathbb{R}$ such that\n$$\nf(f(x+y)f(x-y)) = x^2 - y f(y)\n$$\nfor all $x, y \\in \\mathbb{R}$.", "options": [], "answer": "f(x) = x for all real x", "solution": "", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34700, "subject": "Mathematics (Multi-modal)", "question": "Suppose each digit of a positive integer is greater than or equal to $1$ and less than or equal to $7$. Suppose further that $n$ is a multiple of $7$ and every integer obtained by permuting digits of $n$ is also a multiple of $7$. Determine all such integers $n$.", "options": [], "answer": "All positive integers whose digits are all equal. If the common digit is seven, any length is allowed. If the common digit is between one and six, the number of digits must be a multiple of six.", "solution": "Let us show first that any positive integer $n$ satisfying the condition of the problem must have the same number in all of its digits. In order to show this it is enough to show that if the integers $a$ and $b$ appear among the digits of $n$, where $1 \\le a, b \\le 7$ and if $n$ satisfies the condition of the problem, then $a = b$ must hold.\n\nSo, suppose $a$ and $b$ appear among the digits of the number $n$. Permute the digits of $n$ in such a way to get a number in which $a$ appears in the 10's digit and $b$ appears in 1's digit. Call this new number $n'$. Let $N$ be the number obtained by discarding the 10's and 1's digits of $n'$ (In case $n'$ is a 2-digit number, let $N = 0$). Then we can write $n' = 100N + 10a + b$. Let $n''$ be the number obtained by interchanging the 10's and 1's digits of $n'$. Then we also have $n'' = 100N + 10b + a$.\n\nBy the condition of the problem both $n'$ and $n''$ are the multiples of $7$ since both are obtained by permuting digits of $n$. Consequently, the difference $n' - n'' = (100N + 10a + b) - (100N + 10b + a) = 9(a - b)$ must also be a multiple of $7$. Since $7$ and $9$ are relatively prime, we conclude that $a - b$ must be a multiple of $7$. But since $1 \\le a, b \\le 7$, we conclude that $a = b$, which establishes our claim.\n\nNext, consider the case where $1 \\le a \\le 6$. By carrying out simple divisions, we see that the 6-digit number $111111$ is a multiple of $7$, while any $j$-digit number obtained by putting $1$ into each digit is not a multiple of $7$ if $1 \\le j \\le 5$.\n\nNow, for each positive integer $k \\ge 1$ and $\\ell$ with $0 \\le \\ell \\le 5$, denote by $N(6k+\\ell)$ the number having $6k+\\ell$ digits, each of which is $a$. Then if we divide $N(6k+\\ell)$ by $111111$ we get as a remainder a number $m_\\ell$ which has $\\ell$ digits each of which is $a$ (We let $m_0 = 0$, since there is no remainder if $\\ell = 0$). Consequently, we see that in order to decide whether a number $N(6k+\\ell)$ is a multiple of $7$ or not it is enough to see whether the remainder $m_\\ell$ is a multiple of $7$ or not.\n\nIf $\\ell = 0$, $N(6k)$ is a multiple of $7$. So, let us suppose that $1 \\le \\ell \\le 5$. Then, $m_\\ell$ is a multiple by $a$ of the number $t$ having $\\ell$-digits, each of which is $1$. Since $1 \\le \\ell \\le 5$, we see that $t$ is not multiple of $7$. Since $a$ is also not a multiple of $7$, we conclude that $m_\\ell$ is not multiple of $7$ either. Thus, we see that the number with all of its digits being equal to $a$, where $1 \\le a \\le 6$, must be of the form $N(6k)$, where $k \\ge 1$.\n\nSummarizing the arguments made above, we conclude that the positive integer $n$ satisfying the condition of the problem must have one of the following forms:\n\n$$\n\\bullet\\ n = \\underbrace{aa\\cdots aa}_{6k \\text{ times}} \\quad (1 \\le a \\le 6,\\ k \\ge 1),\n$$\n$$\n\\bullet\\ n = \\underbrace{77\\cdots77}_{p \\text{ times}} \\quad (p \\text{ is an arbitrary positive integer}).\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34701, "subject": "Mathematics (Multi-modal)", "question": "A positive integer whose 1's digit is not 0 is called a *palindromic number* if the number remains the same when its digits are read in reverse order. For example, the number $12321$ is a palindromic number, since the number obtained by reading its digits in reverse order is the same $12321$, while $1234$ is not since the number $4321$ is obtained if its digits are read in reverse order. How many palindromic numbers are there which are less than or equal to $2012$?", "options": [], "answer": "119", "solution": "Let us call a palindromic number a p.d.number. We count p.d.numbers less than $2012$ by classifying them according to the number of digits.\n\n* A 4-digit number is a p.d.number if and only if its thousand's digit and one's digit coincide and also its hundred's digit and ten's digit coincide. Therefore, $2002$ is the only p.d.number with its thousand's digit equal to $2$ (and less than $2012$). For a 4-digit number with its thousand's digit $1$ to be a p.d.number, its hundred's digit can be any of the numbers between $0$ and $9$ ($0$ and $9$ inclusive), and therefore there are $10$ such numbers. Thus there are $11$ p.d.numbers with $4$ digits less than $2012$.\n\n* A 3-digit number is a p.d.number if and only if its hundred's digit and one's digit coincide. Hundred's digit of a 3-digit number can be any number between $1$ and $9$ ($1$ and $9$ inclusive), and ten's digit of a 3-digit p.d.number can be any of the $10$ numbers lying in between $0$ and $9$. Therefore, there are $9 \\times 10 = 90$ p.d.numbers with $3$ digits.\n\n* A 2-digit number is a p.d.number if and only if its ten's digit and one's digit coincide. Since the ten's digit of a 2-digit number can take any number lying in between $1$ and $9$, there are $9$ p.d.numbers with $2$ digits.\n\n* Any 1-digit non-zero number is a p.d.number, so there are $9$ such numbers.\n\nThus the answer we seek is $11+90+9+9 = 119$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34702, "subject": "Mathematics (Multi-modal)", "question": "Determine all the real valued functions $f$ defined on the real line for which the following identity is satisfied for every pair of real numbers $x, y$:\n$$\nf(f(x+y)f(x-y)) = x^2 - y f(y).\n$$", "options": [], "answer": "f(x) = x for all real x", "solution": "If we substitute $(0,0)$ for $(x, y)$ into the given identity, we get $f((f(0))^2) = 0$. And applying this fact after substituting $(0, (f(0))^2)$ for $(x, y)$ in the given identity, we obtain the fact that $f(0) = 0$ must hold.\n\nLet $t$ be an arbitrary non-zero real number, and substitute $(t, t)$ for $(x, y)$ in the given identity, we get $0 = t^2 - t f(t)$, from which we conclude that $f(t) = t$ holds. Combining with the fact that $f(0) = 0$ holds as well, we conclude that $f(t) = t$ holds for any real number $t$.\n\nClearly, the function $f(t) = t$ satisfies the given identity for any pair of real numbers $(x, y)$, so we conclude that the function $f(t) = t$ is the only solution for the problem.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34703, "subject": "Mathematics (Multi-modal)", "question": "Let $a, b, c, d, e, f, g, h, i$ be the distinct integers lying in between $1$ and $9$ (both $1$ and $9$ inclusive). Let $N$ be the maximum of the three numbers $a \\times b \\times c$, $d \\times e \\times f$ and $g \\times h \\times i$. Determine the minimum value the number $N$ can take.", "options": [], "answer": "72", "solution": "Let us write $p = abc$, $q = def$ and $r = ghi$.\nWe first show that it is possible to make the maximum of the three numbers $p, q, r$ to be no more than $72$. Indeed, if we consider the following, we see that this is possible:\n$$\n1 \\times 8 \\times 9 = 72, \\quad 2 \\times 5 \\times 7 = 70, \\quad 3 \\times 4 \\times 6 = 72.\n$$\nNext, we will show that the maximum of the three numbers $p, q, r$ must be at least $72$. Since all the numbers $a, b, c, d, e, f, g, h, i$ lie in between $1$ and $9$ and are distinct, we see that the product $pqr$ of the three numbers $p, q, r$ must be a constant, which from the example above must equal $72 \\times 70 \\times 72$. In particular, we have $70^3 < pqr$. Thus the maximum of $p, q, r$ must be greater than $70$. Since $71$ cannot be written as a product of integers lying in between $1$ through $9$, we see that it is impossible to have any of $p, q, r$ to be $71$. Therefore, the maximum of $p, q, r$ has to be at least $72$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34704, "subject": "Mathematics (Multi-modal)", "question": "Let $a$ and $b$ be positive integers. Suppose an $a \\times b$ square grid is given and $N$ of the $ab$ square boxes of the grid are marked by $\\checkmark$. It was possible to mark all of the $ab$ boxes by repeating the following procedure:\n\nProcedure: If you find a row or a column of the boxes for which all but one of the boxes lying in it are marked, then mark its remaining box.\n\nExpress the minimum possible value of $N$ in terms of $a$ and $b$ for which this is possible.", "options": [], "answer": "(a - 1)(b - 1)", "solution": "In the sequel, we assume that all of $ab$ boxes of the original grid can be marked by repeating the given procedure a certain number of times after we reach the situation where $N$ of the boxes are marked, and we show that $N \\geq (a - 1)(b - 1)$.\n\nSuppose the last marked box to attain the goal of marking all of the $ab$ boxes lies on the $X$-th row and $Y$-th column. Then, we see that the sum of the number of rows and the number of columns on which the markings were performed prior to the last marking and after the marking of $N$ boxes are achieved is at most $a + b - 2$. Furthermore, markings cannot be repeated consecutively on any row or column. Therefore, the number of markings performed after $N$ boxes are marked (including the last marking) is at most $a + b - 1$. Since the number of $\\checkmark$ increases by $1$ at each marking, we need, in order to complete the marking of all the $ab$ boxes, to have $N \\geq ab - (a + b - 1) = (a - 1)(b - 1)$.\n\nThus, we conclude that $(a-1)(b-1)$ is the desired answer to the problem.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34705, "subject": "Mathematics (Multi-modal)", "question": "In the exterior of a triangle $ABC$, 3 squares $PQBA$, $RSCB$ and $TUAC$, each having a side of the triangle as one of its sides, were drawn. If $AB = 3$, $BC = 4$ and $CA = 3$, determine the area of the hexagon $PQRSTU$. Here we denote for a line segment $XY$ its length also by $XY$.\n\n![](attached_image_1.png)", "options": [], "answer": "34 + 8√5", "solution": "First, let us show that the areas of the triangles $AUP$, $BQR$ and $CST$ are all equal to the area of the triangle $ABC$. Since we have $\\angle QBR + \\angle ABC = 180^\\circ$, $QB = AB$ and $BR = BC$, if we rotate the triangle $BQR$ clockwise for $90^\\circ$ around the axis through $B$, it lands onto a triangle having the length of the base and the height equal to those of the triangle $ABC$. Therefore, the triangle $BQR$ has the same area as that of the triangle $ABC$. The same argument shows that the triangles $AUP$ and $CST$ also have the same area as $ABC$.\n\nTherefore, the area of the hexagon $PQRSTU$ equals the sum of the areas of the 3 squares $PQBA$, $RSCB$, $TUAC$ plus 4 times the area of the triangle $ABC$. The sum of the areas of the 3 squares is $3^2 + 3^2 + 4^2 = 34$.\n\nIt remains to compute the area of the triangle $ABC$. Since it is an isosceles triangle with $AB = AC$, the line segment $AM$ connecting the vertex $A$ to the midpoint $M$ of the base $BC$ satisfies $AM \\perp BC$. By the Pythagorean theorem, we get $AM = \\sqrt{3^2 - 2^2} = \\sqrt{5}$. Therefore, the area of the triangle $ABC$ is $\\frac{1}{2} BC \\cdot AM = 2\\sqrt{5}$ and we conclude that the area of the hexagon $PQRSTU$ is $34 + 8\\sqrt{5}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34706, "subject": "Mathematics (Multi-modal)", "question": "Let $p$ be a prime. Determine all positive integers $n$ for which the following condition is satisfied for all the integers $x$:\nCondition: If $x^n - 1$ is divisible by $p$, then it is also divisible by $p^2$.", "options": [], "answer": "All positive multiples of p; that is, n = k p for some positive integer k.", "solution": "If, for a pair of integers $a, b$ and a positive integer $m$, $a - b$ is divisible by $m$, we write $a - b \\equiv 0 \\pmod{m}$.\nWe will show that the numbers $n$ we seek are those of the form $kp$, where $k$ is a positive integer.\nLet us first show that if $n$ satisfies the condition of the problem, then $n$ must be a multiple of $p$. To see this let $x = p + 1$. Then from $x^n - 1 \\equiv 1^n - 1 \\equiv 0 \\pmod{p}$, we get the fact that $x^n - 1$ is divisible by $p$, and hence by the condition of the problem, is divisible by $p^2$ as well. By using the binomial expansion we get $(p+1)^n \\equiv np + 1 \\pmod{p^2}$, and therefore, $x^n - 1 \\equiv np \\pmod{p^2}$. This implies that $np$ is a multiple of $p^2$, and therefore, $n$ must be a multiple of $p$.\n\nConversely, we will show that if $n = kp$ for a positive integer $k$, then it satisfies the condition of the problem. First we note that $x^n = (x^k)^p \\equiv x^k \\pmod{p}$ holds by Fermat's Little Theorem. This shows that if $x^n - 1$ is a multiple of $p$, then so is $x^k - 1$. Now we have\n$$\n\\frac{x^n - 1}{x^k - 1} = 1 + x^k + x^{2k} + \\dots + x^{(p-1)k} \\equiv \\underbrace{1+1+\\dots+1}_{p} \\equiv 0 \\pmod{p},\n$$\nfrom which we conclude that $x^n - 1 = (x^k - 1) \\times \\frac{x^n - 1}{x^k - 1}$ is a multiple of $p^2$. Thus, we see that $n = kp$ satisfies the condition of the problem.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34707, "subject": "Mathematics (Multi-modal)", "question": "A point $E$ is located on the side $DA$ of a quadrilateral $ABCD$ in such a way that the lines $AB$ and $EC$ are parallel. If $AB = 3$, $BC = 3$, $CD = 5$, $DE = 3$ and $EA = 2$, determine $EC$.\nHere we denote for a line segment $XY$ its length also be $XY$.\n![](attached_image_1.png)", "options": [], "answer": "24/5", "solution": "$$\n\\boxed{\\frac{24}{5}}\n$$\nLet $F$ be the point of intersection of $BD$ and $EC$. From $AB // EF$, we get $AB : EF = DA : DE$. Therefore, we have $EF = \\frac{AB \\cdot DE}{DA} = \\frac{9}{5}$.\n\nWe also have $AB = CB = 3$, $AD = CD = 5$, which imply that the triangles $ABD$ and $CBD$ are congruent as the side $BD$ is common to both. Consequently, we have $\\angle ABD = \\angle CBD$, and this, together with the fact $AB // EC$ yields $\\angle CFB = \\angle ABF = \\angle CBF$. Therefore, we have $FC = BC = 3$. We finally obtain $EC = EF + FC = \\frac{24}{5}$ for the desired answer.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34708, "subject": "Mathematics (Multi-modal)", "question": "Let $A$ be a positive integer which is a multiple of $3$ but not of $9$. When we add to $A$ the product of all the digits of $A$, then we obtain a number which is a multiple of $9$. Find the smallest possible value for such a number $A$.", "options": [], "answer": "138", "solution": "$138$\n\n$138$ is a multiple of $3$, but not of $9$, and since $138 + 1 \\times 3 \\times 8 = 162$ is a multiple of $9$, the number $138$ satisfies the conditions of the problem. We will show in the sequel that if $A < 138$, then $A$ does not satisfy the conditions of the problem.\n\nNow, if a number $A$ satisfies the conditions of the problem, then it is easy to see that the product of all the digits of $A$ must be a multiple of $3$ but not a multiple of $9$. Hence $A$ must satisfy the following condition, which we call the condition X:\n\nOne and only one of the digits of $A$ must be either $3$ or $6$ and none of the digits of $A$ can equal $0$ or $9$.\n\nIf $A$ has only one digit, then neither $3$ nor $6$ satisfies the conditions of the problem, so $A$ must have at least two digits. Now write $A = 10a + b$ with $a$ a positive integer and $b$ an integer such that $0 \\leq b \\leq 9$. From the condition that $A < 138$, we see that $a \\leq 13$. Now consider the following cases:\n\n(1) When $b = 3$ or $6$:\nSince $10a = A - b$ must be a multiple of $3$ in this case, $a$ must also be a multiple of $3$. If $a = 3$ or $6$ or $9$, then $A$ violates the condition X, so we must have $a = 12$. But then since $126$ is a multiple of $9$, $A$ cannot be $126$. On the other hand, since $123 + 1 \\times 2 \\times 3 = 129$ is not a multiple of $9$, $A$ cannot be $123$ either. So, the case under consideration cannot occur.\n\n(2) When $b$ is neither $3$ nor $6$:\nBy the condition X, we see that one and only one of the digits of $a$ must be either $3$ or $6$. If $a = 3$ or $a = 6$, then $b = A - 10a$ must be a multiple of $3$, but any choice of $b = 0, 3, 6, 9$ violates the condition X. Finally, if $a = 13$, only number less than $138$ and is a multiple of $3$ and not of $9$ is $132$, but since $132 + 1 \\times 3 \\times 2 = 138$ is not a multiple of $9$, the case under consideration cannot occur either.\n\nThus we conclude that $138$ is the smallest possible positive integer satisfying the conditions of the problem.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34709, "subject": "Mathematics (Multi-modal)", "question": "Let $ABC$ be an acute triangle for which $\\angle BAC = 30^\\circ$. Take a point $X$ inside of the triangle $ABC$ in such a way that $\\angle XBC = \\angle XCB = 30^\\circ$. Also, take points $P$ and $Q$ on the straight lines $BX$ and $CX$, respectively, in such a way that $AP = BP$ and $AQ = CQ$ are satisfied. Let $M$ be the midpoint of the line segment $BC$. Prove that $\\angle PMQ = 90^\\circ$ must hold.", "options": [], "answer": "Detailed solution", "solution": "Let $B'$ be the point symmetric to $B$ with respect to $P$, and $C'$ be the point symmetric to $C$ with respect to $Q$. Since $B$ is the mid-point of the line segment $PP'$ and $M$ is the mid-point of the line segment $BC$ we see that $PM // BC'$, and similarly, we have $QM // C'B$. Thus, it suffices to show that $B'C \\perp C'B$ holds.\n\nFrom $AP = BP = B'P$, we see that $P$ is the orthocenter of the triangle $ABB'$, and therefore, $BB'$ is a diameter of the circum-circle of the triangle $ABB'$. Thus, we have $\\angle BAB' = 90^\\circ$, from which we get $\\angle CAB' = \\angle BAB' - \\angle BAC = 90^\\circ - 30^\\circ = 60^\\circ$. We also have $\\angle CXB' = \\angle XBC + \\angle XCB = 60^\\circ$. Consequently, we see that the 4 points $A, X, C, B'$ lie on the circumference of a same circle, and this implies, in particular that $\\angle XAC = \\angle XB'C$.\n\nSimilarly, we get the fact that $Q$ is the orthocenter of the triangle $AC'B$, from which we obtain $\\angle C'AB = \\angle C'XB = 60^\\circ$ and $\\angle XAB = \\angle XC'B$. From these, it follows that we also have $\\angle C'AB' = \\angle C'AB + \\angle BAC + \\angle CAB' = 60^\\circ + 30^\\circ + 60^\\circ = 150^\\circ$, $\\angle C'XB' = \\angle BXC = 180^\\circ - 60^\\circ = 120^\\circ$ and $\\angle XC'A + \\angle XB'A = 360^\\circ - (\\angle C'AB' + \\angle C'XB') = 360^\\circ - (150^\\circ + 120^\\circ) = 90^\\circ$.\n\nFurthermore, we get\n$$\n\\begin{aligned}\n\\angle BC'A + \\angle CB'A &= (\\angle BC'X + \\angle XC'A) + (\\angle XB'C + \\angle XB'A) \\\\\n&= (\\angle XAB + \\angle XAC) + (\\angle XC'A + \\angle XB'A) \\\\\n&= 30^\\circ + 90^\\circ = 120^\\circ.\n\\end{aligned}\n$$\n\nIf we let $D$ be the point of intersection of the lines $B'C$ and $C'B$, then we get, putting together the facts obtained above\n$$\n\\begin{aligned}\n\\angle C'DB' &= 360^\\circ - (\\angle DC'A + \\angle C'AB' + \\angle AB'D) \\\\\n&= 360^\\circ - (150^\\circ + \\angle BC'A + \\angle CB'A) \\\\\n&= 360^\\circ - (150^\\circ + 120^\\circ) = 90^\\circ,\n\\end{aligned}\n$$\nwhich implies that $B'C \\perp C'B$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34710, "subject": "Mathematics (Multi-modal)", "question": "Triangles $PAB$ and $PCD$ are placed on a plane. Suppose that $PA = PB$, $PC = PD$ are satisfied and that the 3 points $P$, $A$, $C$ lie on a straight line in this order and the same is true for the 3 points $B$, $P$, $D$. Suppose further that a circle $S_1$ going through $A$, $C$ and the circle $S_2$ going through $B$, $D$ intersect at 2 distinct points $X$ and $Y$. Prove that the orthocenter of the triangle $PXY$ coincides with the mid-point of the line segment connecting the centers of the circles $S_1$ and $S_2$.\nHere, we denote for a line segment $ZW$ its length also by $ZW$.", "options": [], "answer": "Detailed solution", "solution": "Given a circle $S$ and a point $Z$ in the plane, we define the power $p = p_S(Z)$ of $Z$ with reference to $S$ in the following way: Let $p = 0$ if the point $Z$ lies on the circumference of $S$. Otherwise draw a line through $Z$ and intersecting at the points $I_1$ and $I_2$ with the circle $S$. Then, $p = p_S(Z) = -ZI_1 \\cdot ZI_2$ if $Z$ lies in the interior of $S$, and $= ZI_1 \\cdot ZI_2$ if $Z$ lies in the exterior of $S$. Here we are considering the line segments $ZI_1, ZI_2$ to be directed. A well-known theorem (called the theorem on the power of a point) tells us that the value of the power $p$ of $Z$ w.r.t. the circle $S$ is independent of the choice of the line going through it and intersecting the circle $S$, and it is easy to give a proof of this theorem using the fact that angles subtended by an arc of a circle at any pair of points lying on the circle have the same magnitude and similarity of ensuing triangles. Also by considering the line going through $Z$ and the center $O$ of the circle $S$, we see that $p = ZO^2 - r^2$ holds, where $r$ is the radius of $S$.\n\nNow going back to the problem, we see, from $PA \\cdot PC - PB \\cdot PD = 0$ and the fact that both of the points $X, Y$ lie on both of the circles $S_1, S_2$, that each of the three points $P, X, Y$ satisfies the following:\n$$\np_{S_1}(\\text{of the point}) + p_{S_2}(\\text{of the point}) = 0 \\quad (*)\n$$\nLet $r_i$ be the radius of the circle $S_i$ and $O_i$ be the center of $S_i$, ($i = 1, 2$), and denote by $M$ the mid-point of the line segment $O_1O_2$. Now for a point $Z$ on the plane note that the following statements are valid:\n$$\n\\begin{align*}\nZ \\text{ satisfies the condition } (*) &\\iff (ZO_1^2 - r_1^2) + (ZO_2^2 - r_2^2) = 0 \\\\\n&\\iff (ZO_1^2 + ZO_2^2) = r_1^2 + r_2^2 \\\\\n&\\iff 2(MO_1^2 + ZM^2) = r_1^2 + r_2^2 \\\\\n&\\iff ZM^2 = \\frac{1}{2}(r_1^2 + r_2^2) - MO_1^2.\n\\end{align*}\n$$\nSince the right-hand side of the last identity above is independent on $Z$ we conclude that every point in the plane satisfying the condition (*) lies on the circumference of a same circle. In particular, $M$ coincides with the orthocenter of the triangle $PXY$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34711, "subject": "Mathematics (Multi-modal)", "question": "Given two triangles $PAB$ and $PCD$ such that $PA = PB$, $PC = PD$, $P$, $A$, $C$ and $B$, $P$, $D$ are collinear in this order respectively. The circle $S_1$ passing through $A$, $C$ intersects with the circle $S_2$ passing through $B$, $D$ at distinct points $X$, $Y$. Prove that the circumcenter of the triangle $PXY$ is the midpoint of the centers of $S_1$, $S_2$.", "options": [], "answer": "Detailed solution", "solution": "", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34712, "subject": "Mathematics (Multi-modal)", "question": "How many quadruples $(a, b, c, d)$ of 1-digit positive integers are there which satisfy $a + bcd = ab + cd$?", "options": [], "answer": "913", "solution": "$$\n\\boxed{913}\n$$\nThe given equation can be transformed to $(a - cd)(b - 1) = 0$, so it is enough to determine quadruples $(a, b, c, d)$ satisfying either $a - cd = 0$ or $b - 1 = 0$.\n\nFor each $a = 1, 2, \\dots, 9$ the number of pairs $(c, d)$ satisfying $a = cd$ is the same as the number of positive factors of $a$. Therefore, the number of triplets $(a, b, c)$ for which $a = cd$ is satisfied is $1 + 2 + 2 + 3 + 2 + 4 + 2 + 4 + 3 = 23$.\n\nWhen $b = 1$, we can choose $a, b, c, d$ arbitrarily to satisfy the condition. So, there are $9 \\times 9 \\times 9 = 729$ ways of quadruples of the form $(a, 1, c, d)$ to satisfy the condition, while if $b \\neq 1$, then for each such $b$ there are 23 ways to choose $(a, c, d)$ so that $(a, b, c, d)$ becomes a quadruple satisfying the condition. Since $b \\neq 1$ can be chosen 8 different ways, we see that the number of quadruples satisfying the condition is $729 + 8 \\times 23 = 913$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34713, "subject": "Mathematics (Multi-modal)", "question": "Let $n$ be a positive integer. Suppose there are infinitely many cards and on each of these cards one integer greater than or equal to $0$ is written. Suppose also for each integer $l$ greater than or equal to $0$, there are exactly $n$ cards which have the number $l$ written on them. Let us consider repeating the process of selecting $2012$ cards from the given infinite collection of cards. Assume that we do not return the cards once selected to the original collection. Find the smallest possible value of $n$ for which it is possible to keep going through the procedures satisfying the following condition:\n\nCondition: For every positive integer $k$, the sums of the numbers written on the $2012$ cards selected at the $k$-th stage equals $k$.", "options": [], "answer": "2012^2", "solution": "We will show that the smallest $n$ satisfying the condition of the problem is $2012^2$.\n\nFirst, let us show that if $n = 2012^2$, then there exists a method of selecting cards at each stage so as to satisfy the condition of the problem. For this purpose, let for each $k \\ge 1$, select $2012$ cards to be drawn in the $k$-th stage in the following way:\n\nWrite $k = 2012q + r$ for some choice of $q \\ge 0$ and $1 \\le r \\le 2012$, and choose $2012 - r$ cards, each of which has the number $q$ written on it, and choose $r$ cards, each of which has the number $q + 1$ written on it.\n\nLet us check that this method to keep on choosing cards satisfies the condition of the problem. There are the following two facts to be checked:\n\n(1) The sum of the numbers written on the cards at the $k$-th stage must equal $k$.\n\n(2) For every integer $a \\ge 0$, there are at most $2012^2$ cards with the attached number $a$ among the selected cards throughout the whole procedure.\n\nWe see that the condition (1) is satisfied, since\n\n$$\nq(2012 - r) + (q + 1)r = 2012q + r = k\n$$\nholds, because of the way $q$ and $r$ are chosen.\n\nTo show that the condition (2) is satisfied, we first consider the case where $a \\ge 1$. Then for any $r$ satisfying the condition $1 \\le r \\le 2012$, $2012 - r$ cards each with the number $a$ attached are selected at the $(2012a + r)$-th stage, and $r$ cards each with the number $a$ attached are selected at the $(2012(a - 1) + r)$-th stage. Therefore, the total number of the cards with the number $a$ attached which are selected in the whole procedure equals\n\n$$\n\\sum_{r=1}^{2012} ((2012 - r) + r) = (2011 + 2010 + \\cdots + 0) + (1 + 2 + \\cdots + 2012) \\\\\n= \\frac{2011 \\cdot 2012}{2} + \\frac{2012 \\cdot 2013}{2} = 2012^2,\n$$\nwhich shows that the condition (2) is satisfied for each $a \\ge 1$.\n\nFinally, if $a = 0$, we see that for each $r$, with $1 \\le r \\le 2012$, $2012 - r$ cards with $0$ attached are selected at the $r$-th stage so that the total number of cards with $0$ attached chosen in the whole process is\n\n$$\n\\sum_{r=1}^{2012} (2012 - r) = \\sum_{r=1}^{2011} r = \\frac{2011 \\cdot 2012}{2} < 2012^2,\n$$\nwhich shows that the condition (2) is satisfied for $a = 0$ as well, and this completes the proof that if $n = 2012^2$, then there is a method to keep on choosing cards at each stage so as to satisfy the condition of the problem.\n\nNext, we show that if there is a method of choosing cards at each stage so as to satisfy the condition of the problem, then we must have $n \\ge 2012^2$. For this purpose, let $k$ be an arbitrary positive integer and keep on choosing the cards at each stage according to the method which is supposed to satisfy the condition of the problem. Then, the sum of all the numbers attached to $2012nk$ cards selected by the end of the $(nk)$-th stage must be, because of the condition of the problem,\n\n$$\n\\sum_{j=1}^{nk} j = \\frac{1}{2}nk(nk + 1).\n$$\n\nOn the other hand, since for each $j \\ge 0$ there are exactly $n$ cards having the number $j$ attached, the sum of all the numbers attached to the $2012nk$ cards selected must be greater than or equal to\n\n$$\nn \\sum_{j=0}^{2012k - 1} j = n \\cdot \\frac{2012k \\cdot (2012k - 1)}{2}.\n$$\n\nTherefore, we must have\n\n$$\n\\frac{nk(nk + 1)}{2} \\ge n \\cdot \\frac{2012k(2012k - 1)}{2},\n$$\nwhich can be simplified to\n\n$$\nn \\ge 2012^2 - \\frac{2013}{k}.\n$$\n\nSince $k$ can be any positive integer, we take $k = 2014$ to conclude that $n \\ge 2012^2$ must be satisfied.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34714, "subject": "Mathematics (Multi-modal)", "question": "Let $k$ be a positive integer. Players $A$ and $B$ play a game according to the following rule: Initially, a chess piece is placed at the origin $(0, 0)$ of the $xy$-plane. The player $A$ will start the game followed by $B$ and repeat, each choosing a strategy among those specified by the following rules:\n* Possible strategies for $A$: Choose a lattice point, which is not occupied by the chess piece and mark the point by a ✓.\n(Here, by a lattice point we mean a point in the $xy$-plane whose $x$-coordinate and $y$-coordinate are both integers).\n* Possible strategies for $B$: Repeat the process of moving the chess piece located at $(x, y)$ to either $(x+1, y)$ or $(x, y+1)$ $j$ times where $1 \\le j \\le k$. However, in each move of the process he is not allowed to move the chess piece into a lattice point marked by a ✓.\n$A$ wins the game if $B$ gets into the situation where he cannot move the chess piece. Determine all possible values for $k$ for which $A$ can win the game after a finite number of steps no matter how $B$ chooses his strategies.", "options": [], "answer": "All positive integers k", "solution": "We will show that for any positive integer $k$ $A$ has strategies to win the game no matter how $B$ chooses his strategies.\nIn the sequel, we restrict the possibilities for $A$ to mark only those lattice points in the set $J = \\{(x, y) : x + y = 2^{k+1}k\\}$. Also, we allow $A$ not to choose any lattice point to mark in his action. We will show that it is possible for $A$ to choose a correct strategy at each stage in such a way to prevent for $B$ to move the chess piece into the set $J$ no matter how $B$ chooses his strategies.\nLet us set $I_i = \\{(x, y) : ik \\le x + y < (i+1)k\\}$. If the chess piece lies in the region $I_i$, it stays in $I_i$ or moves into $I_{i+1}$ after the next action by $B$. This implies\n\nthat in order for the chess piece to reach the set $J$, it is necessary that for each $i$ ($i = 1, 2, \\dots, 2^{k+1}$) $B$ must end his action at least once in the set $I_i$. Now, for each $s$ ($s = k+1, k, k-1, \\dots, 2$) take note of the consecutive actions starting with the time of the first action by $B$ after the chess piece reached the set $I_{2^{k+1}-2^s}$ for the first time and ending with the action by $A$ taken immediately after the chess piece reached the set $I_{2^{k+1}-2^{s-1}}$, and call its listing the $s$-phase of the listing of consecutive actions taken during a game played.\nLet us investigate the situation in an $s$-phase more in detail. For $t$ ($t = 1, 2, \\dots, 2^{s-1}$), suppose that the chess piece was moved to a point $(x', y')$ of the set $\\{(x, y) : x+y = (2^{k+1}-2^s+t)k\\}$ during or at the end of an action by $B$, then define the set $X_{s,t}$ by\n$$\nX_{s,t} = \\{(x,y) : x+y = 2^{k+1}k, (2^{s-1}-t)k+x' \\le x \\le 2^{s-1}k+x'\\},\n$$\nIt is easy to check that the inclusion relations $X_{s,1} \\subset X_{s,2} \\subset \\dots \\subset X_{s,2^{s-1}}$ hold.\nLet $h_s$ be an integer satisfying $0 \\le h_s < k$. Then there are exactly $t$ or $t+1$ elements $(x, y)$ of the set $X_{s,t}$ for which $x \\equiv h_s \\pmod k$ holds. ($t+1$ such elements exist only when $2^{s-1}k+x' \\equiv h_s \\pmod k$). Now, consider the following strategy for the player $A$:\nIf at the first time of the arrival of the chess piece in the set $I_{2^{k+1}-2^{s+t}}$ there is an element in $X_{s,t}$ which is unmarked and for which $x \\equiv h_s \\pmod k$ is satisfied, then mark this element. If there are 2 or more such elements, then choose an element to be marked in such a way that one of the elements of the form $((2^{s-1}-t)k+x', (2^{k+1}-2^{s-1})k+x')$ or $(2^{s-1}k+x', (2^{k+1}-2^{s-1})k+x')$ remains unmarked.\nDo not mark any point if there are no such elements.\nBy using the induction on $t$, the following facts can be established:\n* Immediately after the action by $A$ using the strategy stated above, there are $t$ or more elements $(x, y)$ in the set $X_{s,t}$ which are marked and for which $x \\equiv h_s \\pmod k$ hold.\n* If there is an unmarked element of the set $X_{s,t}$ satisfying $x \\equiv h_s \\pmod k$, then this element must be either $((2^{s-1}-t)k+x', (2^{k+1}-2^{s-1})k-x')$ or $(2^{s-1}k+x', (2^{k+1}-2^{s-1})k-x')$.\nBy definition the set $X_{s,2^s-1}$ is precisely the set of points lying in the set $J$ that can be reached by the chess piece if $B$ can make moves ignoring $\\checkmark$'s after the time it reaches the set $\\{(x, y) : x+y = (2^{k+1}-2^s)k\\}$ for the first time. Hence, we have the inclusion relations $X_{k+1,2^k} \\supset X_{k,2^{k-1}} \\supset \\dots \\supset X_{2,2}$. Therefore, if $A$ chooses strategies in such a way that for each $s$ ($s = k+1, k, \\dots, 2$) he picks distinct $h_s$ and performs the action for the $s$-phase using the strategy with the picked $h_s$ specified above, then $A$ can end up with the situation where $X_{2,2}$ has at most one element unmarked. At this stage the only points on the set $J$ that the chess piece can move into must belong to the set $X_{2,2}$. But since the chess piece at this stage lies in the set $I_{2^{k+1}-2}$, $B$ has to take at least 2 more actions in order to move the chess piece into the set $J$, which means that $A$ can take an action at least once before the chess piece can reach the set $J$, and therefore, $A$ can mark the unmarked point in $X_{2,2}$.\n\n(if there is an unmarked point) to prevent $B$ to move the chess piece into the set $J$.\nThus we have established the assertion that for any positive integer $k$ there are strategies that $A$ can follow to win the game regardless of how $B$ chooses his strategies.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34715, "subject": "Mathematics (Multi-modal)", "question": "Given a piece on the origin in the coordinate plane. Two persons $A$, $B$ act as the following. First $A$ marks on a lattice point on which a piece isn't put. Then $B$ moves a piece put on the point $(x, y)$ to the point $(x + 1, y)$ or $(x, y + 1)$ $m$ times ($1 \\leq m \\leq k$). Note that we may not move the piece to unmarked point. If $A$ wins when $B$ can't move any pieces, then find all possible integers $k$ such that $A$ will win at finite action in regardless of how $B$ moves each piece.", "options": [], "answer": "All powers of two", "solution": "", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34716, "subject": "Mathematics (Multi-modal)", "question": "Determine all the positive integers $n$ for which the product of all positive factors equals $24^{240}$.", "options": [], "answer": "n = 2^15 · 3^5", "solution": "If a positive integer $l$ is a factor of a positive integer $n$, then $n/l$ is also a factor of $n$ and vice versa. Hence, if $\\{a_1, a_2, \\dots, a_r\\}$ is a listing of all the positive factors of $n$, then so is $\\{n/a_1, n/a_2, \\dots, n/a_r\\}$. So, if we denote by $N$ the product of all the positive factors of $n$, we obtain\n$$\nN^2 = (a_1 \\cdot \\frac{n}{a_1}) \\cdots (a_r \\cdot \\frac{n}{a_r}) = n^r,\n$$\nfrom which we conclude that $N = n^{r/2}$ holds.\n\nNow, suppose that the product $N$ of all the positive factors of $n$ equals $24^{240}$, then since the prime factors of $24^{240}$ are $2$ and $3$, we see that the prime factors of $n$ must also be $2$ and $3$. Hence, we can write $n = 2^a 3^b$ for some pair of non-negative integers $a$ and $b$. Then, we can conclude that all of the positive factors of $n$ can be listed as $\\{2^{a'} 3^{b'} : 0 \\le a' \\le a, 0 \\le b' \\le b\\}$ and there are exactly $(a+1)(b+1)$ numbers in this list. Hence, from the observation made above, we get that the product $N$ of all the factors of $n$ equals\n$$\n(2^a 3^b)^{\\frac{(a+1)(b+1)}{2}} = 2^{\\frac{a(a+1)(b+1)}{2}} 3^{\\frac{b(b+1)(a+1)}{2}},\n$$\nand this number should equal $24^{240} = 2^{720}3^{240}$. So, it remains for us to solve the simultaneous equations\n\n$$\n\\begin{cases} \\frac{a(a+1)(b+1)}{2} = 720 \\\\ \\frac{b(b+1)(a+1)}{2} = 240 \\end{cases}\n$$\nDividing both sides of the first equation by the corresponding sides of the second equation, we get $a = 3b$, and substituting this into the second equation, we obtain $(3b+1)b(b+1) = 480$, from which it follows that\n$$\n(3b+1)b(b+1) - 480 = (b-5)(3b^2+19b+96) = 0\n$$\nAs the equation $3b^2 + 19b + 96 = 0$ does not have a real root, we conclude that $b = 5$ must hold, and therefore, $a = 15$. Thus, $n = 2^{15}3^5$ is the desired solution for this problem.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34717, "subject": "Mathematics (Multi-modal)", "question": "A $2 \\times 100$ square grid is given. Suppose we color each of the $200$ square boxes of the grid either red or blue. How many possible ways of coloring these boxes are there that satisfy the following conditions? Regard two patterns of colored boxes to be distinct if one of the patterns can be obtained from the other by rotating or flipping.\n\n* There is at least one box colored red and at least one box colored blue.\n* The region determined by all the red colored boxes forms a connected region and the same is true for blue colored boxes. (Here we consider $2$ boxes to be connected if they share a side).", "options": [], "answer": "39800", "solution": "Suppose all the square boxes of the grid were colored in such a way that the conditions specified for the problem were satisfied. There are $204$ points (let us call them vertex points), on the rectangle forming the perimeter of the grid, which are either a vertex of one of the square boxes or a common vertex of two adjacent square boxes of the grid. If we go around the entire grid along the perimeter rectangle starting at the lower left side corner and going clockwise, noticing the colors of boxes lying on our right as we go along, then we find that there is exactly one vertex point, where we see the color of the square boxes changes from red to blue as we go through this point, and exactly one other vertex point where the color of the squares change from blue to red. It is clear that these points where color change occurs must be common vertex points for two adjacent squares. There are exactly $200$ such points (out of $204$ points exclude $4$ points lying at the corner of the rectangle). These points are indicated by circular dots in the figures below.\n\n![](attached_image_1.png)\n\nTherefore, the number of ways of coloring the square boxes of the grid so as to satisfy the conditions of the problem corresponds to the number of ways of choosing one point where the coloring changes from red to blue and another point where the coloring changes from blue to red from the collection of $200$ points. This number is clearly, $2 \\times {}_{200}C_2 = 200 \\times 199 = 39800$, which gives the desired answer to the problem.", "topic": "Algebra", "subtopic": "Abstract Algebra" }, { "id": 34718, "subject": "Mathematics (Multi-modal)", "question": "A regular octagon $ABCDEFGH$ of side length $1$ is given. Let $I$ be the point of intersection of the lines $AD$ and $BF$. Find the area of the quadrilateral $AIGH$.\n\n![](attached_image_1.png)", "options": [], "answer": "(1+\\sqrt{2})/2", "solution": "$$\n\\boxed{\\frac{1 + \\sqrt{2}}{2}}\n$$\nSince the straight lines $CH$ and $AD$ are symmetrically positioned with respect to the straight line $BF$, the lines $CH$, $AD$, $BF$ intersect at a single point. Therefore, the $3$ points $C$, $I$, $H$ lie on the same straight line. Since the diagonals $DH$ and $CG$ are diameters of the circum-circle of the octagon, we have $\\angle DAH = \\angle CHG = 90^\\circ$. Since $BC \\parallel AD$ and $BA \\parallel CH$ are satisfied, the quadrilateral $ABCI$ is a parallelogram, and hence we get $AI = BC = 1$. From $\\angle IAH = 90^\\circ$ we get $IH = \\sqrt{AI^2 + AH^2} = \\sqrt{2}$. Consequently, the area of the triangle $AIH$ is $\\frac{1}{2} \\cdot AI \\cdot AH = \\frac{1}{2}$,\n\nand since $\\angle IHG = 90^\\circ$, the area of the triangle $HIG = \\frac{1}{2} \\cdot HI \\cdot HG = \\frac{\\sqrt{2}}{2}$. We then conclude that the area of the quadrilateral $AIGH = \\frac{1}{2} + \\frac{\\sqrt{2}}{2} = \\frac{1+\\sqrt{2}}{2}$.\n\n\n**Alternate Solution:**\nSince $AG\\parallel BF$, the areas of the triangles $AIG$ and $AFG$ are the same. Hence it is enough to determine the area of the quadrilateral $AFGH$.\nLet $J$ be the point of intersection of the straight lines $AH$ and $FG$. Then we have $\\angle JHG = \\angle JGH = 180^\\circ - 135^\\circ = 45^\\circ$, and we see that the triangle $JHG$ is a right isosceles triangle with $\\angle GJH = 90^\\circ$. Consequently, we have $JH = JG = \\frac{\\sqrt{2}}{2}$.\nPutting together what we obtained above, we get that the area of the triangle $JAF = \\frac{1}{2} \\cdot JA \\cdot JF = \\frac{1}{2} \\cdot (1 + \\frac{\\sqrt{2}}{2})^2 = \\frac{3+2\\sqrt{2}}{4}$, and the area of the triangle $JHG = \\frac{1}{2} \\cdot JH \\cdot JG = \\frac{1}{2} (\\frac{\\sqrt{2}}{2})^2 = \\frac{1}{4}$. And finally, the area of the quadrilateral $AFGH = \\frac{3+2\\sqrt{2}}{4} - \\frac{1}{4} = \\frac{1+\\sqrt{2}}{2}$, which is the desired answer.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34719, "subject": "Mathematics (Multi-modal)", "question": "Let $O$ be the circum-center of a triangle $ABC$. When points $D$ and $E$ were chosen on the line segments $AB$ and $AC$, respectively, the mid-point of the line segment $DE$ coincided with the point $O$. If $AD = 8$, $BD = 3$ and $AO = 7$, determine the value of $CE$. Here for a line segment $XY$ we denote also by $XY$ its length.", "options": [], "answer": "4*sqrt(21)/7", "solution": "\\boxed{\\frac{4\\sqrt{21}}{7}}\n\nLet $P(Q)$ be the point of intersection of the line $DE$ and the circum-circle of the triangle $ABC$, which lies on the opposite side (on the same side, respectively) as the point $O$ with respect to the line $AB$. Let $x = OD = OE$, $y = AE$ and $z = EC$. Then, we have $OP = OQ = OA = 7$. From the similarity of the triangles $\\triangle ADQ$ and $\\triangle PDB$ it follows that\n$$\nAD \\cdot BD = PD \\cdot DQ = (OP - OD)(OQ + OD),\n$$\nfrom which it follows that $8 \\cdot 3 = (7 - OD)(7 + OD) = (7 - x)(7 + x) = 49 - x^2$ and therefore, we get $x^2 = 49 - 24 = 25$ and we have $x = 5$. From the similarity of the triangles $\\triangle AEQ$ and $\\triangle PEC$, we also get $PE \\cdot QE = AE \\cdot CE$, from which we get $(7+5)(7-5) = yz$.\nLet now $\\alpha = \\angle AOD$, then $\\angle AOE = 180^\\circ - \\alpha$. Applying the law of cosine to the triangles $\\triangle AOD$ and $\\triangle AOE$, we get\n$$AO^2 + DO^2 - 2AO \\cdot DO \\cos \\alpha = AO^2, \\quad AO^2 + EO^2 - 2AO \\cdot EO \\cos(180^\\circ - \\alpha) = y^2,$$ \nfrom which we get\n$$\n7^2 + 5^2 - 2 \\cdot 7 \\cdot 5 \\cos \\alpha = 8^2, \\quad 7^2 + 5^2 + 2 \\cdot 7 \\cdot 5 \\cos \\alpha = y^2,\n$$\nand therefore, we have\n$$\n2(49 + 25) = 64 + y^2.\n$$\nFrom this it follows that $y = \\sqrt{84} = 2\\sqrt{21}$ and $EC = z = \\frac{12 \\cdot 2}{y} = \\frac{24}{2\\sqrt{21}} = \\frac{4}{7}\\sqrt{21}$, which gives the desired answer to the problem.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34720, "subject": "Mathematics (Multi-modal)", "question": "How many possible ways of writing down a sequence of positive integers are there satisfying the following conditions?\nConditions: You start out with writing down the number $2012$ and end up with writing down the number $1$, and after writing down a number $n$ you follow with writing an integer less than or equal to $\\sqrt{n}$.", "options": [], "answer": "201", "solution": "Let $m$ be a positive integer and denote by $a_m$ the number of possible ways of writing down a sequence of positive integers satisfying the following, which we call the conditions $C_m$:\n$C_m$: Start with writing down the number $m$, and end up with writing down the number $1$, and after writing down a number $n$, follow with writing a positive integer less than or equal to $\\sqrt{n}$.\nThen, we have\n$$\na_1 = 1, \\quad a_m = a_1 + a_2 + \\cdots + a_k,\n$$\nwhere $k$ is a positive integer satisfying $k^2 + 1 \\le m \\le (k+1)^2$.\n\n$$\na_1 = 1,\n$$\n$$\na_2 = a_3 = a_4 = a_1 = 1,\n$$\n$$\na_5 = a_6 = \\cdots = a_9 = a_1 + a_2 = 2,\n$$\n$$\na_{10} = a_{11} = \\cdots = a_{16} = a_1 + a_2 + a_3 = 3,\n$$\n$$\na_{17} = a_{18} = \\cdots = a_{25} = a_1 + a_2 + a_3 + a_4 = 4,\n$$\n$$\na_{26} = a_{27} = \\cdots = a_{36} = a_1 + a_2 + a_3 + a_4 + a_5 = 6\n$$\n$$\na_{37} = a_{38} = \\cdots = a_{44} = a_1 + a_2 + a_3 + a_4 + a_5 + a_6 = 8.\n$$\nFrom these we finally obtain\n$$\n\\begin{align*} a_{2012} &= a_1 + a_2 + \\cdots + a_{44} \\\\ &= (a_1 + \\cdots + a_4) + (a_5 + \\cdots + a_9) + (a_{10} + \\cdots + a_{16}) \\\\ &\\quad + (a_{17} + \\cdots + a_{25}) + (a_{26} + \\cdots + a_{36}) + (a_{37} + \\cdots + a_{44}) \\\\ &= 4 \\times 1 + 5 \\times 2 + 7 \\times 3 + 9 \\times 4 + 11 \\times 6 + 8 \\times 8 \\\\ &= 4 + 10 + 21 + 36 + 66 + 64 = 201. \\end{align*}\n$$\n\nSo, $201$ is the desired answer.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34721, "subject": "Mathematics (Multi-modal)", "question": "Suppose you write down on a blackboard without repetition each of those positive integers which are less than or equal to $10^6$ and are divisible by $3$. How many $1$'s do you have to write on the blackboard?", "options": [], "answer": "199998", "solution": "For $k = 0, 1, 2, 3, 4, 5$ let us denote by $A_k$ the set of all multiples of $3$ less than or equal to $10^6$ whose $10^k$'s digit is $1$, and define $N_k$ to be the number of elements in the set $A_k$. Then the desired answer for the problem is $\\sum_{k=0}^5 N_k$.\n\nThe set $A_5$ consists of multiples of $3$ lying in between $100000$ and $200000$, and there are $33333$ of those starting with $100002$ and ending with $199998$. Hence $N_5 = 33333$.\n\nLet us now consider $N_k$ for $0 \\le k \\le 4$. For a number $n$ in the set $A_k$ associate a number $n'$, which is obtained from $n$ by interchanging the $10^k$'s digit of $n$ with the $10^5$'s digit of $n$ (if $n$ has less than $6$ digits, we consider a $6$ digit number by supplying necessary number of $0$'s in upper digits, and define $n'$). Since the sum of the digits of $n'$ obtained in this way is the same as the sum of digits of $n$, we see that $n'$ is a multiple of $3$ and hence belongs to the set $A_5$ as the $10^5$'s digit of $n'$ is $1$. Conversely, by interchanging the $10^5$'s digit and $10^k$'s digit of a number in the set $A_5$, we get a number belonging to the set $A_k$. Thus, we see that there is a one-to-one correspondence between the elements of the sets $A_k$ and $A_5$, and therefore, there are exactly $33333$ elements in the set $A_k$ also for each $k = 0, 1, 2, 3, 4$.\n\nConsequently, the answer we seek is $\\sum_{k=0}^5 N_k = 6 \\times 33333 = 199998$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34722, "subject": "Mathematics (Multi-modal)", "question": "Players $A$ and $B$ wrote down two positive integers each on a black board. The product of the two numbers $A$ wrote is twice the sum of the two numbers $B$ wrote, and the product of the two numbers $B$ wrote is twice the sum of the two numbers $A$ wrote, and furthermore, the sum of the two numbers $A$ wrote is greater than or equal to the sum of the two numbers $B$ wrote. Determine all possible values for the sum of the two numbers $B$ wrote. Note that four numbers written down need not be distinct.", "options": [], "answer": "[8, 9, 10, 13, 17, 19, 27]", "solution": "$8, 9, 10, 13, 17, 19, 27$\n\nLet $a$ be the sum of two numbers the player $A$ wrote, and $b$ be the sum of the two numbers $B$ wrote. If we let $t, s$ be the two numbers $A$ wrote, then $t+s = a$ and $ts = 2b$, so $t, s$ must be the solutions of the quadratic equation $x^2 - a x + 2b = 0$. Similarly, the two numbers $B$ wrote down are the solutions of the equation $x^2 - b x + 2a = 0$. From this we obtain the fact that the discriminants $a^2 - 8b$ and $b^2 - 8a$ of these equations must be perfect squares. Conversely, suppose that $a^2 - 8b$ is a perfect square, equal to $k^2$ for positive integer $k$, say. Then, we see that from $(a+k)(a-k) = 8b$ that $a > k$ and that $a$ and $k$ have the same even-odd parity. Therefore, the two roots $\\frac{a+k}{2}$, $\\frac{a-k}{2}$ of the equation $x^2 - a x + 2b = 0$ are positive integers. Similarly, if $b^2 - 8a$ is a perfect square, we see that the two roots of the equation $x^2 - b x + 2a = 0$ are positive integers. Thus, we see that the conditions for the problem are equivalent to the following:\n$a$ and $b$ are positive integers and both $a^2-8b$ and $b^2-8a$ are perfect squares, and $a \\ge b$.\nIn the sequel, we determine the pairs $(a, b)$ satisfying these conditions.\nSince $a \\ge b$, we see that if $a > 9$, then\n$$\na^2 > a^2 - 8b \\geq a^2 - 8a > (a-6)^2\n$$\nmust hold. As $a^2 - 8b$ and $a$ have the same even-odd parity, we must have either $a^2 - 8b = (a-2)^2$ or $a^2 - 8b = (a-4)^2$. From the former we get $b = \\frac{a-1}{2}$ and from the latter $b = a - 2$.\nNow, suppose $b = \\frac{a-1}{2}$ is satisfied. Then, we have $b^2 - 8a = b^2 - 8(2b + 1) = b^2 - 16b - 8 < (b-8)^2$. Since $b^2 - 8a$ and $b$ have the same even-odd parity, we see that we can write\n$$\nb^2 - 16b - 8 = (b - 2\\ell)^2,\n$$\nwhere $\\ell$ is an integer greater than 4. Then, we get\n$$\nb = \\frac{\\ell^2+2}{2} = (\\ell + 4) + \\frac{18}{\\ell-4}\n$$\nand we conclude that $\\ell = 5, 6, 7, 10, 13, 22$ must hold and these values of $\\ell$ yield $b = 17, 19, 27$ with corresponding values for $a = 35, 39, 55$ respectively.\nNext suppose $b = a-2$ is satisfied. Then, we have $b^2 - 8a - 16 < (b-4)^2$. Since $b^2 - 8a$ and $b$ have the same even-odd parity, we can write\n$$\nb^2 - 8b - 16 = (b - 2j)^2,\n$$\nwhere $j$ is an integer greater than 2. Then, we get\n$$\nb = \\frac{j^2+4}{j-2} = (j + 2) + \\frac{8}{j-2},\n$$\nfrom which we get $j = 3, 4, 6, 10$, which yield $b = 10, 13$ and $a = 12, 15$ respectively.\nFinally, let us consider the case where $a \\le 9$. If $b < 8$, then we get $b^2 - 8a \\le b^2 - 8b < 0$, which does not satisfy our requirement. So, we must have $b = 8$ or $9$. It is easy to check that $(a,b) = (9,8)$ does not satisfy the requirement, while $(a,b) = (8,8), (9,9)$ do. So, we conclude that the possible values that $b$ can take to satisfy the requirement of the problem are $8, 9, 10, 13, 17, 19, 27$.\n\n\n**Alternate Solution:**\n\nLet us denote by $x, y$ and $z, w$ the two numbers that the players $A$ and $B$ wrote down, respectively. We may assume that $x \\ge y$ and $z \\ge w$ are satisfied. The conditions of the problems can be stated as\n$$\nxy = 2(z+w), \\quad zw = 2(x+y), \\quad x+y \\ge z+w.\n$$\n\nAdding the respective sides of the first two equations, we obtain $xy + zw = 2(x + y + z + w)$, which can be transformed into the form\n$$\n(x-2)(y-2) + (z-2)(w-2) = 8.\n$$\nFirst, let us consider the case where $y = 1$. Since $x = 2z + 2w$, we get $zw = 2(x + y) = 4z + 4w + 2$, which is transformed to $(z - 4)(w - 4) = 18$. From this we obtain $(x, w) = (22, 5)$, $(13, 6)$, $(10, 7)$. We find the corresponding values of $x$ are $54, 38, 34$, respectively, and the requirement $x + y \\geq z + w$ is also satisfied in all of the three cases. We also find that $z + w = 27, 19, 17$, respectively.\nWhen $w = 1$, we can argue in the same way as above, and find the other two are no solutions satisfying the conditions of the problem.\nNext, we assume that $x \\geq y \\geq 2$ and $z \\geq w \\geq 2$ are satisfied. Then, we have $(x-2)(y-2) \\geq 0$ and $(z-2)(w-2) \\geq 0$, and since $(x-2)(y-2)+(z-2)(w-2) = 8$, we must have $(x-2)(y-2) \\leq 8$ and $(z-2)(w-2) \\leq 8$. If $y \\geq 5$, then we get $(x-2)(y-2) \\geq (y-2)^2 \\geq 9$. So, we must have $y \\leq 4$.\nIf $y = 4$, then from $(x-2)(y-2) \\leq 8$, we conclude that $x = 4$ or $5$ or $6$.\n* When $x = 4$: From $zw = 2(x + y) = 16$, $z + w = \\frac{xy}{2} = 8$, we get $(x, w) = (4, 4)$.\n* When $x = 5$: We see there are no pairs $(x, w)$ satisfying $zw = 18$ and $z + w = 10$.\n* When $x = 6$: We get $zw = 20$ and $z + w = 12$, which yield $(x, w) = (10, 2)$.\nWe see that among the possibilities found for $(x, w)$ above only $(x, w) = (4, 4)$ satisfies the condition $x + y \\geq z + w$. So, the only solution we get for the case $y = 4$ is $(x, y, z, w) = (4, 4, 4, 4)$ for which $z + w = 8$.\nIf $y = 3$, then from $xy = 2(z + w)$ we see that $x$ must be even, and from $(x-2)(y-2) \\leq 8$, $x$ must be one of $4, 6, 8, 10$.\n* When $x = 4$: There are no $(x, w)$ satisfying $zw = 14$, $z + w = 6$.\n* When $x = 6$: Only $(x, w) = (6, 3)$ satisfies $zw = 18$, $z + w = 9$.\n* When $x = 8$: There are no $(x, w)$ satisfying $zw = 22$, $z + w = 12$.\n* When $x = 10$: Only $(x, w) = (13, 2)$ satisfies $zw = 26$, $z + w = 15$.\nAmong the possibilities found above, we see that only $(x, y, z, w) = (6, 3, 6, 3)$ satisfies the additional condition $x + y \\geq z + w$, and we have $z + w = 9$ in this case.\nFinally, when $y = 2$, we see that from $(z-2)(w-2) = 8$, we must have $w = 3$ or $w = 4$. When $w = 3$, then $z = 10$ and $x = \\frac{2(z+w)}{y} = 13$, and $(x, y, z, w) = (13, 2, 10, 3)$ satisfies the requirements, and we get $z+w = 13$ in this case. If $w = 4$, then we have $z = 6$, $x = \\frac{2(z+w)}{y} = 10$, and $(x, y, z, w) = (10, 2, 6, 4)$ satisfies the requirements, and we get $z+w = 10$.\nSummarizing what we considered above, we get the possible values for the sum of the two numbers $B$ wrote to be $8, 9, 10, 13, 17, 19, 27$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34723, "subject": "Mathematics (Multi-modal)", "question": "Each of two people, $A$ and $B$, chose 3 positive one-digit integers (which need not be distinct). The sum of the 3 numbers $A$ chose is equal to the product of the 3 numbers $B$ chose, and the product of the 3 numbers $A$ chose is equal to the sum of the 3 numbers $B$ chose. How many possibilities are there for triplets of numbers chosen by $A$? Two triplets which are permutations of each other should be counted as the same triplet.", "options": [], "answer": "7", "solution": "Let us denote by $S_A$ and $P_A$ the sum and product of the 3 numbers chosen by $A$, respectively, and by $S_B$ and $P_B$ those for $B$. Then the condition of the problem states that $S_A = P_B$ and $S_B = P_A$ hold.\nWe then have $P_B = S_A \\le 9+9+9 \\le 27$. In view of the fact that for any pair of real numbers $a$ and $b$ satisfying $a \\le b$ the inequality $ab > (a-1)(b+1)$ holds, we see that if $S_B \\ge 14$ then $P_B \\ge 1 \\times 4 \\times 9 = 36$. Therefore, we must have $S_B \\le 13$ since $P_B \\le 27$. But this implies that $P_A \\le 13$, which yields, by the same argument as above, $S_A \\le 11$. We then have $P_B \\le 11$. But since 11 cannot be a product of 3 positive integers, we must have $P_B \\le 10$, and $S_A \\le 10$. Similarly, we must have $S_B = P_A \\le 10$. There are only 14 triples of positive one-digit positive integers whose sum and product are both less than or equal to 10, which are listed below:\n$$\n(1, 2, 5), (1, 3, 3), (1, 1, 8), (1, 2, 4), (2, 2, 2), (1, 1, 7), (1, 1, 6) \\\\ (1, 2, 3), (1, 1, 5), (1, 1, 4), (1, 2, 2), (1, 1, 3), (1, 1, 2), (1, 1, 1).\n$$\nThus, it is enough to decide the combination of triples of numbers chosen by $A$ and $B$ from the list above so as to satisfy the condition of the problem. Suppose we denote the choice by $A$ of the triple $(x, y, z)$ by $A(x, y, z)$ and similarly for $B$ by $B(x, y, z)$, then we see that\n$$\nA(1, 2, 5), B(1, 1, 8); A(1, 3, 3), B(1, 1, 7); A(2, 2, 2), B(1, 1, 6); A(1, 2, 3), B(1, 2, 3) \\\\ A(1, 1, 8), B(1, 2, 5); A(1, 1, 7), B(1, 3, 3); A(1, 1, 6), B(2, 2, 2)\n$$\nare the only combinations satisfying the requirement, and therefore, we conclude that the answer we seek is 7.", "topic": "Discrete Mathematics", "subtopic": "Combinatorics" }, { "id": 34724, "subject": "Mathematics (Multi-modal)", "question": "Suppose the least common multiple of three positive integers $x$, $y$, $z$ is $2100$. What is the minimum possible value that the sum $x + y + z$ can take?", "options": [], "answer": "44", "solution": "44\nSince $2100 = 2^2 \\cdot 3 \\cdot 5^2 \\cdot 7$, if we take $x = 5^2 = 25$, $y = 7$, $z = 2^2 \\cdot 3 = 12$, then the least common multiple of $x$, $y$, $z$ is $2100$ and we get $x + y + z = 44$.\n\nNow let us show that $44$ is the desired minimum value. Assume that the least common multiple of $x$, $y$, $z$ is $2100$, and $x + y + z < 44$ is satisfied. Then, at least one of $x$, $y$, $z$ must be a multiple of $5^2$. By symmetry we may assume without loss of generality that one such number is $x$. Since $2 \\cdot 5^2 > 44$, we must have $x = 5^2 = 25$. Then, we see that $y + z < 19$, and among $y$ and $z$, we must have a multiple of $2^2$, a multiple of $3$ and a multiple of $7$. By symmetry we may assume that $y$ is a multiple of $7$. Then, since $2^2 \\cdot 7 > 19$ and $3 \\cdot 7 > 19$, we see that $y$ can be a multiple neither of $2^2$ nor of $3$. Therefore, we see that $z$ must be a multiple of $2^2 \\cdot 3 = 12$. But then, we get $x + y + z \\ge 25 + 7 + 12 = 44$, which shows that it is impossible to have $x + y + z < 44$, and this establishes the claim that $44$ is the desired minimum value.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34725, "subject": "Mathematics (Multi-modal)", "question": "Let $n, k$ be positive integers satisfying $n \\ge k$.\nThere is a group consisting of $n$ people. Each person of this group belongs to one and only one of $k$ clubs, called club $C_1, C_2, \\dots, C_k$. Each club has at least one member belonging to it. Prove that it is possible to distribute $n^2$ pieces of cake to these $n$ people in such a way to satisfy all of the following conditions:\n* Every one receives at least 1 piece of cake.\n* For each $i$ $1 \\le i \\le k$, every member of the club $C_i$ receives $a_i$ pieces of cake.\n* If $1 \\le i < j \\le k$, then $a_i > a_j$ is satisfied.", "options": [], "answer": "Detailed solution", "solution": "Let for each $i$, $1 \\le i \\le k$, $x_i$ be the number of people belonging to the club $C_i$.\nIf we set $a_i = x_i + 2(x_{i+1} + x_{i+2} + \\cdots + x_k)$ for each $i$, then we claim that $a_1, a_2, \\cdots, a_k$ satisfy all the conditions of the problem. The condition $a_i > 0$ is obvious. For $1 \\le i \\le k-1$, we have $a_i = x_i + x_{i+1} + a_{i+1} > a_{i+1}$ which shows that $a_i > a_j$ holds for $1 \\le i < j \\le k$. Finally, the total number of the cakes distributed is given by\n$$\na_1x_1 + a_2x_2 + \\cdots a_kx_k = \\sum_{i=1}^{k} x_i^2 + 2 \\sum_{i=1}^{k-1} \\sum_{j=i+1}^{k} x_i x_j = (x_1 + x_2 + \\cdots + x_k)^2 = n^2.\n$$\nThus our claim is proved.", "topic": "Algebra", "subtopic": "Abstract Algebra" }, { "id": 34726, "subject": "Mathematics (Multi-modal)", "question": "Suppose the least common multiple of three positive integers $x$, $y$, $z$ is $2100$.\nWhat is the minimum possible value that the sum $x + y + z$ can take?", "options": [], "answer": "44", "solution": "Since $2100 = 2^2 \\cdot 3 \\cdot 5^2 \\cdot 7$, if we take $x = 5^2 = 25$, $y = 7$, $z = 2^2 \\cdot 3 = 12$, then the least common multiple of $x$, $y$, $z$ is $2100$ and we get $x+y+z = 44$.\n\nNow let us show that $44$ is the desired minimum value. Assume that the least common multiple of $x$, $y$, $z$ is $2100$, and $x+y+z < 44$ is satisfied. Then, at least one of $x$, $y$, $z$ must be a multiple of $5^2$. By symmetry we may assume without loss of generality that one such number is $x$. Since $2 \\cdot 5^2 > 44$, we must have $x = 5^2 = 25$. Then, we see that $y+z < 19$, and among $y$ and $z$, we must have a multiple of $2^2$, a multiple of $3$ and a multiple of $7$. By symmetry we may assume that $y$ is a multiple of $7$. Then, since $2^2 \\cdot 7 > 19$ and $3 \\cdot 7 > 19$, we see that $y$ can be a multiple neither of $2^3$ nor of $3$. Therefore, we see that $z$ must be a multiple of $2^2 \\cdot 3 = 12$. But then, we get $x+y+z \\ge 25+7+12 = 44$, which shows that it is impossible to have $x+y+z < 44$, and this establishes the claim that $44$ is the desired minimum value.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34727, "subject": "Mathematics (Multi-modal)", "question": "There are 2013 cards numbered $0$, $1$, $2$, $\\ldots$, $2012$. Initially, all the cards are placed with the face with a written number down. Then, we perform for each $i = 1, 2, \\dots, 2013$ the following operation $i$ starting with $i = 1$ and with increasing order ending up with $i = 2013$:\n\nOperation $i$: Flip each of the $i$ cards having the number $\\left\\lfloor \\frac{2013j}{i} \\right\\rfloor$ for $j = 0, 1, \\dots, i - 1$.\n\nHow many cards are with their faces up (showing their numbers) at the end of all the operations?\n\nHere we denote by $[r]$ for each real number $r$ the greatest integer less than or equal to $r$.", "options": [], "answer": "793", "solution": "Let $n = 2013$ throughout the subsequent discussion on this problem. For any real number $r$ denote by $\\lfloor r \\rfloor$ the smallest integer greater than or equal to $r$. In order to obtain the desired solution, we prove the following two lemmas.\n\n**Lemma 1.** For $1 \\le i \\le n$ and $0 \\le x \\le n-1$, we have $\\lfloor \\frac{i(x+1)}{n} \\rfloor - \\lfloor \\frac{ix}{n} \\rfloor = 1$ holds if the card with number $x$ is turned over at the operation $i$, and $\\lfloor \\frac{i(x+1)}{n} \\rfloor - \\lfloor \\frac{ix}{n} \\rfloor = 0$, otherwise.\n\n**Proof:** We note first that for any such pair $(i, x)$, we have $\\lfloor \\frac{i(x+1)}{n} \\rfloor - \\lfloor \\frac{ix}{n} \\rfloor = 0$ or $1$, since $0 \\le \\frac{i(x+1)}{n} - \\frac{ix}{n} = \\frac{i}{n} \\le 1$ holds. Now we have card numbered $x$ is turned over at the operation $i$\n$$\n\\iff \\text{there exists a non-negative integer } j \\text{ satisfying } \\lfloor \\frac{nj}{i} \\rfloor = x\n$$\n$$\n\\iff \\text{there exist a non-negative integer } j \\text{ satisfying } x \\le \\frac{nj}{i} < x+1\n$$\n$$\n\\iff \\text{there exists a non-negative integer } j \\text{ satisfying } \\frac{ix}{n} \\le j < \\frac{i(x+1)}{n}.\n$$\nNote that the last statement is equivalent to $\\lfloor \\frac{i(x+1)}{n} \\rfloor - \\lfloor \\frac{ix}{n} \\rfloor > 0$, and therefore, this completes the proof of Lemma 1 in view of the opening remark for the proof.\n\nFor each integer $i$, $1 \\le i \\le n-1$, let us say that the operations $\\{i, n-i\\}$ are performed if the operation $i$ and operation $n-i$ are applied consecutively.\n\n**Lemma 2.** The following assertion is valid:\n\nThe card numbered $x$ is turned over once during the operations $\\{i, n-i\\} \\leftrightarrow$ neither $\\frac{i(x+1)}{n}$ nor $\\frac{ix}{n}$ is an integer.\n\n**Proof:** First note that the following holds in general for any pair of real numbers $r$ and $s$ for which $r+s$ is an integer:\n$$\n[r] + [s] = \\begin{cases} r+s & (r \\text{ is an integer}), \\\\ r+s+1 & (r \\text{ is not an integer}). \\end{cases}\n$$\nFrom Lemma 1 it follows that\nThe card numbered $x$ is turned over once during the operations $\\{i, n-i\\}$\n$$\n\\leftrightarrow \\left( \\left\\lfloor \\frac{i(x+1)}{n} \\right\\rfloor - \\left\\lfloor \\frac{ix}{n} \\right\\rfloor \\right) + \\left( \\left\\lfloor \\frac{(n-i)(x+1)}{n} \\right\\rfloor - \\left\\lfloor \\frac{(n-i)x}{n} \\right\\rfloor \\right) = 1\n$$\n$$\n\\leftrightarrow \\left( \\left\\lfloor \\frac{i(x+1)}{n} \\right\\rfloor + \\left\\lfloor \\frac{(n-i)(x+1)}{n} \\right\\rfloor \\right) - \\left( \\left\\lfloor \\frac{ix}{n} \\right\\rfloor + \\left\\lfloor \\frac{(n-i)x}{n} \\right\\rfloor \\right) = 1 \\cdots (\\dagger)\n$$\nFrom the remark made above, we have\n$$\n\\left\\lfloor \\frac{i(x+1)}{n} \\right\\rfloor + \\left\\lfloor \\frac{(n-i)(x+1)}{n} \\right\\rfloor = \\begin{cases} x+1 & \\left( \\frac{i(x+1)}{n} \\right) \\text{ is an integer} \\\\ x+2 & \\left( \\frac{i(x+1)}{n} \\right) \\text{ is not an integer} \\end{cases}\n$$\nand also\n$$\n\\left\\lfloor \\frac{ix}{n} \\right\\rfloor + \\left\\lfloor \\frac{(n-i)x}{n} \\right\\rfloor = \\begin{cases} x & \\left( \\frac{ix}{n} \\right) \\text{ is an integer} \\\\ x+1 & \\left( \\frac{ix}{n} \\right) \\text{ is not an integer}. \\end{cases}\n$$\nTherefore, we can conclude that\n($\\dagger$) holds $\\leftrightarrow$ either both $\\frac{i(x+1)}{n}$ and $\\frac{ix}{n}$ are integers, or neither is an integer.\nBut since $\\frac{i(x+1)}{n} - \\frac{ix}{n} = \\frac{i}{n}$ is not an integer, it is impossible to have both $\\frac{i(x+1)}{n}$ and $\\frac{ix}{n}$ to be integers simultaneously. This proves the assertion of the Lemma.\n\nNow, since we have\n$$\n\\frac{ix}{n} \\text{ is an integer} \\leftrightarrow x \\text{ is a multiple of } \\frac{n}{\\text{gcd}(i, n)}\n$$\nwhere $\\text{gcd}(i, n)$ denotes the greatest common divisor of $i$ and $n$, we now have the following assertion:\nDuring the operations $\\{i, n-i\\}$ the card numbered $x$ is turned over once\n$$\n\\leftrightarrow \\text{ neither } x \\text{ nor } x+1 \\text{ is a multiple of } \\frac{n}{\\text{gcd}(i, n)} \\cdots \\cdots (\\dagger\\dagger)\n$$\n\nNext, we note that the result of applying each of the operations $1, 2, \\ldots, 2013$ once and only once the end result does not depend on the order these operations are applied. Therefore, in order to get the answer to the question of the problem, we may assume we apply operations $\\{1, 2012\\}$, $\\{2, 2011\\}$, $\\ldots$, $\\{1006, 1007\\}$ and the operation $2013$ in any order.\n\nFrom $2013 = 3 \\cdot 11 \\cdot 61$, we see that there are\n$$\n(3-1)(11-1)(61-1) = 1200 \\text{ i's, satisfying } \\gcd(i, 2013) = 1.\n$$\n$$\n(11-1)(61-1) = 600 \\text{ i's, satisfying } \\gcd(i, 2013) = 3.\n$$\n$$\n(3-1)(61-1) = 120 \\text{ i's, satisfying } \\gcd(i, 2013) = 11.\n$$\n$$\n(3-1)(11-1) = 20 \\text{ i's, satisfying } \\gcd(i, 2013) = 61.\n$$\n$$\n61-1=60 \\text{ i's, satisfying } \\gcd(i, 2013) = 3 \\cdot 11.\n$$\n$$\n11-1=10 \\text{ i's, satisfying } \\gcd(i, 2013) = 3 \\cdot 61.\n$$\n$$\n3-1=2 \\text{ i's, satisfying } \\gcd(i, 2013) = 11 \\cdot 61.\n$$\nSince we have $\\gcd(i, 2013) = \\gcd(2013 - i, 2013)$, among $i = 1, 2, \\dots, 1006$ there are precisely half, namely, $600$, $300$, $60$, $210$, $30$, $5$, $1$ i's satisfying the corresponding conditions on $\\gcd(i, 2013)$ stated above. In particular, for $i = 1, 2, \\dots, 1006$ there are odd numbers of i's for which $\\gcd(i, 2013) = 3 \\cdot 61$ or $11 \\cdot 61$ and there are even number of i's for which $\\gcd(i, 2013)$ takes other values. According to the statement $(\\dagger\\dagger)$ if we apply the operations $\\{i, 2013 - i\\}$ for even number of i's for which $\\gcd(i, 2013)$ take the same value, the face-side-arrangement of the cards remain the same. Consequently, it is enough to consider the result of applying each of the following operations once.\n\n(a) Operations $\\{i, 2013 - i\\}$ for each $i$ for which $\\gcd(i, 2013) = 3 \\cdot 61$,\n(b) Operations $\\{i, 2013, i\\}$ for each $i$ for which $\\gcd(i, 2013) = 11 \\cdot 61$,\n(c) Operation $2013$.\n\nBecause of the statement $(\\dagger\\dagger)$, after the application of the type (a) above, those cards having numbers which have remainder $1, 2, \\ldots, 9$ after the division by $11$ change their sides. After the application of the type (b) above, those cards having numbers which have remainder $1$ after division by $3$ also changes their sides. Consequently, by the Chinese Remainder Theorem, we obtain the fact that the number of cards with their side with their number facing down (i.e., the face-side state is the same as in the initial state) after the applications of the types (a) and (b) is given by $(9 \\times 1 + (11-9) \\times (3-1)) \\times 61 = 793$. With the operation of the type (c) all of the cards will be turned over, and therefore, the number of cards which show their side with their number facing up after the application of all the operations $i, 1 \\le i \\le 2013$, is $793$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34728, "subject": "Mathematics (Multi-modal)", "question": "Let $n$ be a positive integer. By a lattice point in the $xyz$-space we mean a point $(k, l, m)$ where $k, l, m$ are integers. A line segment connecting two lattice points contained in the region $0 \\le x, y, z \\le n$ and distance 1 between them is called a lattice segment. We can assign a direction to each lattice segment (e.g., for a lattice segment with end points $A$ and $B$ assign one and only one of the directions $A \\rightarrow B$, or $A \\leftarrow B$). Call a square a lattice square if all of the four sides of the square are lattice segments. Let us say that two lattice squares are congruent if by rotation and a parallel displacement one can place one of the squares on top of the other square with further requirement that the directions of all four sides coincide. How many ways of assigning directions to lattice segments are there assuring that all the lattice squares are congruent?", "options": [], "answer": "2^((n+1)^3 - 1) + 2^(3n) + 2", "solution": "$$\n2^{(n+1)^3-1} + 2^{3n} + 2 \\text{ ways}\n$$\n![](attached_image_1.png)\nA lattice square with its sides directed is congruent in the sense of the problem with one of the four types of such lattice square shown above. For each of these types we determine a number of ways of giving directions to every lattice segment contained in the region $0 \\le x, y, z \\le n$ so that all the lattice squares in the region become congruent to the lattice square of that type.\n\na.\nLet $O = (0,0,0)$, $X = (1,0,0)$, $Y = (0,1,0)$, $Z = (0,0,1)$. Suppose the lattice segment $OX$ is assigned the direction $O \\to X$. Then, since the lattice square containing $O, X, Y$ is congruent to the type (A) lattice square, we see that the lattice segment $OY$ must be given the direction $O \\leftarrow Y$. Similarly, we see that the lattice segment $OZ$ must have direction $O \\leftarrow Z$. But then the lattice square containing $O, Y, Z$ cannot be congruent to the type (A) lattice square. In the same way, we obtain the fact that if the lattice segment $OX$ is given the direction $O \\leftarrow X$ there exists a lattice square not congruent with type (A) lattice square. Therefore, we conclude that there is 0 way of giving directions to all the lattice segments to get all the lattice squares to be congruent to the type (A) lattice square.\n\nb.\nWhen a lattice square is congruent to the type (B) lattice square, then if you decide the direction of one of the sides of the square, the directions of other three sides are determined uniquely. Therefore, if you just assign a direction to any one lattice segment, then there is at most 1 way of assigning directions to all the lattice segments in the region so as to make all the lattice squares congruent to the type (B) lattice square. Thus, the number of ways to assign directions to all lattice segments to get all the lattice squares to be congruent to the type (B) lattice squares is at most 2. Now for a lattice square with one vertex having the coordinates $(x, y, z)$, then other end points of the two sides of the square sharing the vertex $(x, y, z)$ have the coordinates whose sum has the even-odd parity different from $x+y+z$. So, if you give a direction to each lattice segment by assigning a positive direction to the segment starting with a point having coordinates with an even sum ending with the point having coordinates with an odd sum, then the resulting orientations of all the lattice segments yield the situation where all the lattice squares are congruent to the type (B) lattice square. The same is also true if you give a direction to each lattice segment in such a way that a segment starting with a point having coordinates with an odd sum and ending with a point having coordinates with an even sum receives a positive direction. Therefore, there are exactly 2 ways of assigning directions to all the lattice segments to satisfy the requirement of the problem in this case.\n\nc.\nWe can see that the statement that a lattice square is congruent to the type (C) lattice square is equivalent to the statement that parallel sides of a square have the same direction. Consequently, if all the lattice segments are assigned directions so as to satisfy the condition that all the lattice squares are congruent to the type (C) lattice square, then the directions given to lattice segments parallel to the x-axis and having the same x-coordinate must be the same. The same statement holds for all the lattice segments parallel to the y-axis (z-axis) and having the same y-coordinate (z-coordinate, respectively). Conversely, if we give directions to all the lattice segments in such a way that all the parallel segments with the same relevant coordinates have the same direction, then the resulting orientations of the sides of lattice squares show that all of the lattice squares have parallel sides with the same direction so that they are all congruent to the type (C) lattice square. Therefore, we can assign directions arbitrarily to the lattice segments on x, y and z-axis to get the desired assignment of directions to all the lattice segments to so as to satisfy the condition of the problem in this case. There are $2^{3n}$ different ways of assigning directions to lattice segments in the region lying on one of the coordinate axes. So, $2^{3n}$ is the desired number in this case.\n\nd.\nIt is easy to see that the statement that a lattice square is congruent to the type (D) lattice square is equivalent to the following statement:\nWith respect to the perpendicular axis through the center of a square the number of sides of the square assigned with counter-clockwise direction minus the number of sides assigned with clockwise direction is either -2 or 2.\nNote that the condition stated above does not depend on the fact how the directions of the sides of the square are observed, either from the positive side of the central axis or from the negative side. We now need two lemmas to complete the argument of the assertion in this case.\n\n**Lemma 1.** If a lattice square is congruent to the type (D) lattice square, then once the directions of 3 of its sides are specified, the orientation of the remaining side is uniquely determined.\n\n**Proof:** With respect to the perpendicular axis through the center of a lattice square, for any given 3 sides of the square the number of those having the counter-clockwise direction minus the number of those having the clockwise direction is -3, -1, 1 or 3. If we give the counter-clockwise direction to the remaining side, then this difference increases by 1, while if we assign clock-wise direction, then this difference decreases by 1. Therefore, one and only one choice of the assignment of direction for the remaining side satisfies the equivalent statement given above in order for the square to be congruent to the type (D) lattice square.\n\n**Lemma 2.** For a cube with unit side length, if 5 of the 6 faces are all congruent to the type (D) lattice square, then the remaining face also is congruent to the type (D) lattice square.\n\n**Proof:** If we observe the cube from outside, we see that each edge of the cube is contained in two adjacent faces and the direction assigned to an edge has the counter-clockwise direction with respect to one of the faces and the clockwise direction with respect to the other. Therefore, if we add the differences between the number of sides with the counter-clockwise orientation and the number of sides with the clockwise orientation for all 6 faces of the cube, we get the value 0. Furthermore, if we observe from outside each of the 5 faces of the cube which are congruent to the type (D) lattice square, then we have the difference between the number of sides with the counter-clockwise orientation and the number of sides with the clockwise orientation to be -2 or 2. Therefore, the sum of these differences for the five congruent faces must take value in the set $\\{-12, -6, -2, 2, 6, 12\\}$.\n\nFor the remaining 6-th face of the cube the same difference must take the value greater than or equal to -4 and less than or equal to 4. Since the sum of these differences over all 6 faces must equal 0, we conclude that this difference for the 6-th face must be 2 or -2, which implies that the 6-th face is also congruent to the type (D) lattice square.\n\nIn view of Lemma 1, there is at most one way of assigning a direction to all of the lattice segments to get the configuration resulting with all lattice squares being congruent with the type (D) lattice square, if we start by assigning a direction to each of the lattice segments parallel to the x-axis, and then assign to each of the lattice segments lying on the yz-plane and parallel to the y-axis, and finally assign a direction to all of the lattice segments on the z-axis. Conversely, if we assign directions to these lattice segments mentioned above in the way specified, then by Lemma 1, we see that there is a way to assign directions to all the remaining lattice segments lying on the yz-plane in such a way that all the lattice squares lying on the yz-plane become congruent to the type (D) lattice square. Furthermore, we can determine directions of all the lattice segments which are perpendicular to the x-axis in such a way that all the lattice squares parallel to the x-axis becomes congruent to the type (D) lattice square. The Lemma 2 now guarantees that all the remaining lattice squares perpendicular to the x-axis are congruent to the type (D) lattice square. Thus, we conclude that the number of ways to assign directions to all of the lattice segments to satisfy the requirement of the problem in the case we are considering is given by $2^{n(n+1)^2+n(n+1)+n} = 2(n+1)^3-1$.\n\nSumming the numbers of possible ways of assigning the directions to lattice segments in the cases (a)~(d), we obtain $2^{(n+1)^3-1} + 2^{3n} + 2$ as the desired answer.", "topic": "Algebra", "subtopic": "Abstract Algebra" }, { "id": 34729, "subject": "Mathematics (Multi-modal)", "question": "Let $a_1, a_2, \\dots$ be an infinite sequence of distinct non-zero real numbers for which $\\frac{a_{i+1}}{a_i} + \\frac{a_{i+1}}{a_i}$ takes the same value lying in between 0 and 2 for each $i \\ge 1$. Express in terms of $a_1, a_2, a_3$ the smallest number $c$ satisfying the following condition:\nCondition: For any pair of positive integers $x, y$ with $x < y$,\n$$\n\\frac{a_x a_{x+1} + a_{x+1} a_{x+2} + \\dots + a_{y-1} a_y}{a_x a_y} \\le c \\quad \\text{holds.}\n$$", "options": [], "answer": "2 / sqrt(4 - (a_2/a_1 + a_2/a_3)^2)", "solution": "$$\n\\boxed{\\frac{2}{\\sqrt{4 - \\left(\\frac{a_2}{a_1} + \\frac{a_2}{a_3}\\right)^2}}}\n$$\n\nFix a positive integer $x$. Let for a positive integer $y$ greater than $x$,\n$$\nb_y = \\frac{a_x a_{x+1} + a_{x+1} a_{x+2} + \\dots + a_{y-1} a_y}{a_x a_y}.\n$$\nThen, we get\n$$\n\\begin{aligned}\nb_y + b_{y+2} &= \\frac{1}{a_x} \\left( \\frac{a_x a_{x+1} + \\dots + a_{y-1} a_y}{a_y} + \\frac{a_x a_{x+1} + \\dots + a_{y+1} a_{y+2}}{a_{y+2}} \\right) \\\\\n&= \\frac{1}{a_x} \\left( \\frac{a_x a_{x+1} + \\dots + a_{y-1} a_y}{a_y} + \\frac{a_x a_{x+1} + \\dots + a_y a_{y+1}}{a_{y+2}} + a_{y+1} \\right) \\\\\n&= \\frac{1}{a_x} \\left( \\frac{a_x a_{x+1} + \\dots + a_{y-1} a_y}{a_y} + \\frac{a_y a_{y+1} + a_x a_{x+1}}{a_{y+2}} + \\frac{a_x a_{x+1} + \\dots + a_y a_{y+1}}{a_{y+2}} \\right) \\\\\n&= \\frac{1}{a_x} \\left( \\frac{1}{a_y} + \\frac{1}{a_{y+2}} \\right) (a_x a_{x+1} + \\dots + a_y a_{y+1}) \\\\\n&= \\left( \\frac{a_{y+1}}{a_y} + \\frac{a_y}{a_{y+2}} \\right) \\frac{a_x a_{x+1} + \\dots + a_y a_{y+1}}{a_x a_y} \\\\\n&= \\left( \\frac{a_{y+1}}{a_y} + \\frac{a_y}{a_{y+2}} \\right) b_{y+1}.\n\\end{aligned}\n$$\nBy assumption, $\\frac{a_{y+1}}{a_y} + \\frac{a_{y+1}}{a_{y+2}} = \\left( \\frac{a_2}{a_1} + \\frac{a_2}{a_3} \\right)$ is a constant bigger than 0 and less than 2, so we can write this constant as $2 \\cos \\theta$ by using an angle $\\theta$ satisfying $0 < \\theta < \\frac{\\pi}{2}$. The identity we obtained above can be represented as\n$$\nb_y + b_{y+2} = 2 \\cos \\theta \\cdot b_{y+1}.\n$$\nAlso, by letting $b_x = 0$ and $y = x$, we get $b_{x+1} = \\frac{a_x a_{x+1}}{a_x a_{x+1}} = 1$, and $b_{x+2} = 2 \\cos \\theta$. Using the identity\n$$\n\\sin \\theta + \\sin (n + 2)\\theta = 2 \\cos \\theta \\sin (n + 1)\\theta,\n$$\nwe can prove by mathematical induction that $b_{x+n} = \\frac{\\sin n\\theta}{\\sin \\theta}$ holds for any non-negative integer $n$. Consequently, to obtain the desired answer to the problem it suffices to find the smallest positive number $c$ which satisfies the inequality\n$$\n\\frac{\\sin n\\theta}{\\sin \\theta} \\le c\n$$\nfor any $n \\ge 1$.\nNext, we show that if a positive constant $c$ satisfies $c > \\frac{\\sin n\\theta}{\\sin \\theta}$ for any $n \\ge 1$, then for any $\\alpha$ satisfying $0 < \\alpha < \\frac{\\pi}{2}$, we must have $c > \\frac{\\sin \\alpha}{\\sin \\theta}$. To show this, let us choose a positive integer $m$ large enough so that $\\frac{2\\pi}{m} < \\pi - 2\\alpha$. Let for $k = 0, 1, 2, \\dots, m$, $\\phi_k$ be the unique number lying in the interval $[0, 2\\pi)$ for which $k\\theta = 2\\pi \\cdot j + \\phi_k$ is satisfied for some integer $j$. Since there are $m+1$ numbers $\\phi_0, \\phi_1, \\dots, \\phi_m$, by the pigeon-hole principle, there exists at least one interval among $m$ disjoint intervals\n$[\\frac{2\\pi(i-1)}{m}, \\frac{2\\pi i}{m})$ ($i = 1, 2, \\dots, m$), which contains two or more of these $m+1$ numbers. Suppose for some $p, q$ with $0 \\le p < q \\le m$, $\\phi_p$ and $\\phi_q$ belong to the same interval. If $\\phi_p = \\phi_q$ holds, then we have $q\\theta - p\\theta = 2\\pi \\cdot (j - j')$ for some pair of integers $j$ and $j'$, so $(q-p)\\theta$ is an integral multiple of $2\\pi$ and we have\n$$ \\frac{a_1 a_2 + \\dots + a_{q-p} a_{p-q+1}}{a_1 a_{q-p+1}} = \\frac{\\sin(q-p)\\theta}{\\sin\\theta} = 0, $$ \n$$ \\frac{a_1 a_2 + \\dots + a_{q-p+1} a_{q-p+2}}{a_1 a_{q-p+2}} = \\frac{\\sin(q-p+1)\\theta}{\\sin\\theta} = \\frac{\\sin\\theta}{\\sin\\theta} = 1. $$\nFrom the first of these equations we get $a_1 a_2 + \\dots + a_{q-p} a_{q-p+1} = 0$, and substituting this into the second equation, we get $a_{q-p+1} = a_1$. But this contradicts the assumption that all the $a_j$'s are distinct. Therefore, we have $\\phi_p \\ne \\phi_q$, which implies that $0 < |\\phi_p - \\phi_q| < \\frac{2\\pi}{m} < \\pi - 2\\alpha$. Now if for any $k \\ge 1$, we write $k(q-p)\\theta = 2\\pi s + \\eta_k$, where $0 \\le \\eta_k < 2\\pi$ and $s$ is some integer, then as $k$ increases by 1, $\\eta_k$ changes by the amount $\\phi_q - \\phi_p$. Therefore, there exists a positive integer $k$ so that $\\eta_k$ belongs to the interval $(\\alpha, \\pi - \\alpha)$. For this $k$ we have $\\sin k(q-p)\\theta = \\sin(2\\pi s + \\eta_k) = \\sin \\eta_k > \\sin \\alpha$, and therefore, we get\n$$\nc \\ge \\frac{\\sin k(q-p)\\theta}{\\sin\\theta} > \\frac{\\sin\\alpha}{\\sin\\theta}.\n$$\nThus we conclude that $c > \\frac{\\sin\\alpha}{\\sin\\theta}$ holds for any $\\alpha$ satisfying $0 < \\alpha < \\frac{\\pi}{2}$. From this we can conclude also that $c \\ge \\frac{1}{\\sin\\theta}$ is satisfied. If we let $c_0 = \\frac{1}{\\sin\\theta}$, then $\\frac{\\sin n\\theta}{\\sin\\theta} \\le c_0$ obviously holds.\nFrom these considerations we conclude that the smallest constant $c$ which satisfies the requirement of the problem equals $c_0 = \\frac{1}{\\sin\\theta} = \\frac{1}{\\sqrt{1 - \\cos^2\\theta}}$, and since $2\\cos\\theta = (\\frac{a_2}{a_1} + \\frac{a_2}{a_3})$, the desired answer for the problem is given by\n$$\n\\frac{2}{\\sqrt{4 - \\left(\\frac{a_2}{a_1} + \\frac{a_2}{a_3}\\right)^2}}.\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34730, "subject": "Mathematics (Multi-modal)", "question": "Suppose two $20 \\times 13$ rectangular grids consisting of $260$ small squares are given.\nWe insert into each square box of the two grids, numbers $1, 2, \\ldots, 260$ in the following way:\n\n* For the first grid, we start inserting numbers $1, 2, \\ldots, 13$ into the boxes on the top row from left to right. Continue to insert numbers $14, 15, \\ldots, 26$ into the boxes on the second row from left to right. Keep on going until you finish inserting numbers $248, 249, \\ldots, 260$ from left to right into the boxes on the bottom row.\n\n* For the second grid, we start inserting numbers $1, 2, \\ldots, 20$ into the boxes on the right-most column from top to bottom. Continue to insert numbers $21, 22, \\ldots, 40$ into the boxes on the second column from the right from top to bottom. Keep on doing until you finish inserting numbers $241, 242, \\ldots, 260$ into the boxes on the left most column from top to bottom.\n\nList all the positive integers which get inserted into the boxes located in the same position in the two grids in the two ways of distributing numbers described above.", "options": [], "answer": "87, 174", "solution": "The number inserted into the box located on the $i$-th row from the top and $j$-th column from the left is given by $13(i-1)+j$ for the case of the first grid, and by $20(13-j)+i$ for the case of the second grid. If the same number goes into the boxes located at the same position in the two grids, we must have $13(i-1)+j = 20(13-j)+i$. Simplifying this identity, we get $12i + 21j = 273$. Since both $21j$ and $273$ are multiples of $7$, we must have $12i$ to be a multiple of $7$, which implies that $i$ must be a multiple of $7$. From the fact that $1 \\le i \\le 20$, it follows that we get $i=7, 14$. The corresponding values for $j$ are $9, 5$, respectively, and we see by computing $13(i-1)+j = 20(13-j)+i$ for these values of $i, j$ that $87$ and $174$ give the desired answer.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34731, "subject": "Mathematics (Multi-modal)", "question": "Suppose two $20 \\times 13$ rectangular grids consisting of $260$ small squares are given. We insert into each square box of the two grids, numbers $1, 2, \\ldots, 260$ in the following way:\n* For the first grid, we start inserting numbers $1, 2, \\ldots, 13$ into the boxes on the top row from left to right. Continue to insert numbers $14, 15, \\ldots, 26$ into the boxes on the second row from left to right. Keep on going until you finish inserting numbers $248, 249, \\ldots, 260$ from left to right into the boxes on the bottom row.\n* For the second grid, we start inserting numbers $1, 2, \\ldots, 20$ into the boxes on the right-most column from top to bottom. Continue to insert numbers $21, 22, \\ldots, 40$ into the boxes on the second column from the right from top to bottom. Keep on doing until you finish inserting numbers $241, 242, \\ldots, 260$ into the boxes on the left most column from top to bottom.\n\nList all the positive integers which get inserted into the boxes located in the same position in the two grids in the two ways of distributing numbers described above.", "options": [], "answer": "87, 174", "solution": "$87$, $174$\n\nThe number inserted into the box located on the $i$-th row from the top and $j$-th column from the left is given by $13(i - 1) + j$ for the case of the first grid, and by $20(13 - j) + i$ for the case of the second grid. If the same number goes into the boxes located at the same position in the two grids, we must have $13(i - 1) + j = 20(13 - j) + i$. Simplifying this identity, we get $12i + 21j = 273$. Since both $21j$ and $273$ are multiples of $7$, we must have $12i$ to be a multiple of $7$, which implies that $i$ must be a multiple of $7$. From the fact that $1 \\le i \\le 20$, it follows that we get $i = 7, 14$. The corresponding values for $j$ are $9$, $5$, respectively, and we see by computing $13(i - 1) + j = 20(13 - j) + i$ for these values of $i, j$ that $87$ and $174$ give the desired answer.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34732, "subject": "Mathematics (Multi-modal)", "question": "Determine all real-valued functions $f$ defined on the set of all integers and satisfying the following identity for an arbitrary pair $m, n$ of integers:\n$$\nf(m) + f(n) = f(mn) + f(m + n + mn).\n$$", "options": [], "answer": "All functions of the form: f(n) = a for n odd, and f(n) = b for n even (including zero), where a and b are arbitrary real constants.", "solution": "Let $f(1) = a$. By letting $n = 1$, we get from the given equation that $f(m) + f(1) = f(m) + f(2m + 1)$ is valid for any integer $m$. Thus we see that $f(d) = a$ must hold for any odd integer $d$.\n\nAn arbitrary non-zero integer can be written in the form $2^k d$ where $d$ is an odd integer and $k$ is a non-negative integer. By taking $m = d$ and $n = 2^k$, we obtain from the given equation that $f(d) + f(2^k) = f(2^k d) + f(2^k(d + 1) + d)$. Since both $d$ and $2^k(d + 1) + d$ are odd integers, we get from the preceding identity that $a + f(2^k) = f(2^k d) + a$, from which it follows further that $f(2^k d) = f(2^k)$. Consequently, we see that if we can determine $f(2^k)$ for all $k = 0, 1, 2, \\cdots$ and $f(0)$, then $f(n)$ is determined completely for all integers $n$.\n\nFor $k \\ge 2$, substitute $m = 2^k, n = 2$ into the given equation we obtain $f(2^k) + f(2) = f(2^{k+1}) + f(2^k \\cdot 3 + 2)$. Since $2^k \\cdot 3 + 2$ is an odd multiple of 2, we have $f(2^k \\cdot 3 + 2) = f(2)$ by what we observed in the preceding paragraph. Hence, we have $f(2^k) = f(2^{k+1})$ for any $k \\ge 2$. If we put $f(2^2) = b$, we then get $f(2^2) = f(2^3) = \\cdots = b$. Letting $m = n = 2$ in the given equation, we get $2f(2) = f(4) + f(8) = 2b$, which says that $f(2) = b$ holds as well. What we have seen so far tells us that $f(n) = b$ holds for all even integer different from 0. Finally, by letting $m = n = -2$ in the given equation, we get $2f(-2) = f(4) + f(0)$, which implies that $f(0) = b$ holds as well. Thus, we can conclude that any function $f$ satisfying the given equation must have the form\n$$\n(*) \\qquad f(n) = \\begin{cases} a & (n \\text{ odd}) \\\\ b & (n \\text{ even or } 0). \\end{cases}\n$$\nfor some pair $a, b$ of real numbers.\n\nConversely, let us show that for an arbitrary pair $a, b$ of real numbers the function defined by $(*)$ satisfies the given equation.\n\n* When both $m$ and $n$ are even, $mn$ and $m+n+mn$ are both even, so both sides of the given equation are equal to $2b$.\n\n* When both $m$ and $n$ are odd, $mn$ and $m+n+mn$ are both odd, so both sides of the given equation are equal to $2a$.\n\n* If one of $m, n$ is even and the other is odd, $mn$ is even and $m+n+mn$ is odd, so both sides of the given equation are equal to $a+b$.\n\nThus, the function defined by $(*)$ satisfies the given equation for any choice of a pair $a, b$ of real numbers and thus the desired functions $f$ are all functions of this form.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34733, "subject": "Mathematics (Multi-modal)", "question": "Let $n$ be an integer greater than or equal to $2$. Find the smallest positive integer $m$ for which there exists a sequence $a_1, a_2, \\dots, a_n$ of positive integers satisfying the following two conditions:\n* $a_1 < a_2 < \\dots < a_n = m$.\n* All of the $n-1$ numbers $\\frac{a_1^2 + a_2^2}{2}, \\dots, \\frac{a_{n-1}^2 + a_n^2}{2}$ are perfect squares.", "options": [], "answer": "2n^2 - 1", "solution": "We will show that smallest possible value for $m$ is $2n^2 - 1$.\nIf we let $a_k = 2k^2 - 1$ for $k = 1, 2, \\dots, n$, then we see that\n$$\n\\frac{a_k^2 + a_{k+1}^2}{2} = \\frac{(2k^2 - 1)^2 + (2(k+1)^2 - 1)^2}{2} = (2k^2 + 2k + 1)^2\n$$\nare all complete squares for each $k = 1, 2, \\dots, n-1$, and we have $m = a_n = 2n^2 - 1$ in this case. So, we will show that if there exists a sequence $a_1, a_2, \\dots, a_n$ satisfying the two conditions of the problem, then $m \\ge 2n^2 - 1$ must hold. To do this it is enough to show that $a_k \\ge 2k^2 - 1$ holds for each $k = 1, 2, \\dots, n$. For this purpose, let us first show the following lemma.\n\n**Lemma.** Let $k$ be a positive integer. Then, for any pair of positive integers $x$, $y$ satisfying $2k^2 - 1 \\le x < y < 2(k+1)^2 - 1$, the number $\\frac{x^2+y^2}{2}$ is not a perfect square.\n\n**Proof.** If $x$ and $y$ have different even-odd parity, then the assertion of the lemma is obvious since $\\frac{x^2+y^2}{2}$ is not even an integer in this case. So, let us assume that $x$ and $y$ have the same even-odd parity. Then we see that the following inequalities hold:\n$$\n\\begin{aligned}\n\\frac{x^2+y^2}{2} - \\left(\\frac{x+y}{2}\\right)^2 &= \\left(\\frac{y-x}{2}\\right)^2 > 0, \\\\\ny-x \\le (2(k+1)^2-2) - (2k^2-1) &= 4k+1, \\\\\nx \\ge 2k^2-1, \\quad y \\ge x+2 \\ge 2k^2+1.\n\\end{aligned}\n$$\nSince $y-x$ is an even number, the second inequality above can be sharpened to $y-x \\le 4k$. Consequently, we have\n$$\n\\left(\\frac{x+y}{2}+1\\right)^2 - \\frac{x^2+y^2}{2} = x+y+1 - \\left(\\frac{y-x}{2}\\right)^2 \\\\\n\\ge (2k^2-1) + (2k^2+1) + 1 - (2k)^2 = 1 > 0.\n$$\nWe can thus conclude that\n$$\n\\left(\\frac{x+y}{2}\\right)^2 < \\frac{x^2+y^2}{2} < \\left(\\frac{x+y}{2}+1\\right)^2.\n$$\nThis shows that $\\frac{x^2+y^2}{2}$ lies strictly in between two adjacent perfect squares, and therefore, it cannot be a perfect square, proving the assertion of the Lemma.\n\nLet us now show the assertion that $a_k \\ge 2k^2 - 1$ holds for each $k = 1, 2, \\dots, n$, using induction on $k$. The assertion is obvious for $k = 1$. So, suppose $a_l \\ge 2l^2 - 1$ is satisfied for a positive integer $l$. If we have $a_{l+1} < 2(l+1)^2 - 1$, then by taking $x = a_l$ and $y = a_{l+1}$ in the Lemma, we get a contradiction to the fact that $\\frac{a_l^2 + a_{l+1}^2}{2}$ is a perfect square. Thus we must have $a_{l+1} \\ge 2(l+1)^2 - 1$, completing the induction. Therefore, we have $a_k \\ge 2k^2 - 1$ for each $k = 1, 2, \\dots, n$, and in particular, $m = a_n \\ge 2n^2 - 1$. This shows that the minimum value of $m$ we seek is $2n^2 - 1$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34734, "subject": "Mathematics (Multi-modal)", "question": "On the circumference of the circle with radius $1$, points $A_1$, $A_2$, $A_3$, $A_4$, $A_5$ are placed in this order, and they satisfy\n$$\n\\angle A_5A_2A_4 = \\angle A_1A_3A_5 = \\angle A_2A_4A_1 = \\angle A_3A_5A_2 = 30^{\\circ}.\n$$\nLet $B_1$, $B_2$, $B_3$, $B_4$, $B_5$ be the points of intersections of $A_2A_4$ and $A_3A_5$, $A_3A_5$ and $A_4A_1$, $A_4A_1$ and $A_5A_2$, $A_5A_2$ and $A_1A_3$, $A_1A_3$ and $A_2A_4$, respectively. Find the area of the pentagon $B_1B_2B_3B_4B_5$.\n\n![](attached_image_1.png)\n", "options": [], "answer": "sqrt(3)/6", "solution": "$\\frac{\\sqrt{3}}{6}$\n\nFirst note that we have $\\angle A_2A_3A_4 = \\angle A_2A_3A_1 + \\angle A_1A_3A_5 + \\angle A_5A_3A_4$. By the theorem on subtended angles by arcs on the circumference on a circle, we have $\\angle A_2A_3A_1 = \\angle A_2A_4A_1 = 30^{\\circ}$, $\\angle A_5A_3A_4 = \\angle A_5A_2A_4 = 30^{\\circ}$. We also have $\\angle A_1A_3A_5 = 30^{\\circ}$, and therefore, we conclude that $\\angle A_2A_3A_4 = 90^{\\circ}$, which implies that the line segment $A_2A_4$ is a diameter of the given circle. Similarly, we get that the line segment $A_3A_5$ is also a diameter of the given circle, and therefore, the point $B_1$ of the intersection of $A_2A_4$ and $A_3A_5$ is the center of the circle.\n\nLet us denote by $H$ the foot of the perpendicular line drawn from $B_1$ to the line $A_2A_5$. For the triangle $A_2B_1H$, we have $\\angle HA_2B_1 = 30^{\\circ}$ and $\\angle B_1HA_2 = 90^{\\circ}$, from which we get\n$\\angle A_2B_1H = 60^{\\circ}$. Using the fact that $A_2B_1 = 1$, we get $B_1H = \\frac{1}{2}$ and $HA_2 = \\frac{\\sqrt{3}}{2}$, and then we obtain that the area of the triangle $A_2B_1H = \\frac{1}{2} \\cdot \\frac{1}{2} \\cdot \\frac{\\sqrt{3}}{2} = \\frac{\\sqrt{3}}{8}$.\n\nFor the triangle $A_3B_1B_5$, we have $\\angle B_5A_3B_1 = 30^{\\circ}$ and $\\angle A_3B_1B_5 = \\angle B_1A_5A_2 + \\angle B_1A_2A_5 = 30^{\\circ} + 30^{\\circ} = 60^{\\circ}$, from which it follows that $\\angle B_1B_5A_3 = 90^{\\circ}$. We therefore, conclude that $B_1B_5 = \\frac{1}{2}$ and $B_5A_2 = B_1A_2 - B_1B_5 = 1 - \\frac{1}{2} = \\frac{1}{2}$.\n\nFor the triangle $A_2B_4B_5$, we have $\\angle B_5A_2B_4 = 30^{\\circ}$, $\\angle B_4B_5A_2 = \\angle B_1B_5A_3 = 90^{\\circ}$, from which we get $B_4B_5 = B_5A_2 \\tan 30^{\\circ} = \\frac{1}{2} \\cdot \\frac{\\sqrt{3}}{3} = \\frac{\\sqrt{3}}{6}$. Therefore, we conclude that the area of the triangle $A_2B_4B_5$ equals $\\frac{1}{2} \\cdot \\frac{\\sqrt{3}}{6} \\cdot \\frac{1}{2} = \\frac{\\sqrt{3}}{24}$.\n\nSummarizing what we obtained so far, we now get that the area of the quadrilateral $B_1HB_4B_5$ equals $\\frac{\\sqrt{3}}{8} - \\frac{\\sqrt{3}}{24} = \\frac{\\sqrt{3}}{12}$. Since we get in the same way that the area of the quadrilateral $B_1HB_3B_2$ also equals $\\frac{\\sqrt{3}}{12}$, we conclude that the area of the pentagon $B_1B_2B_3B_4B_5$ equals $2 \\cdot \\frac{\\sqrt{3}}{12} = \\frac{\\sqrt{3}}{6}$.\n\n![](attached_image_2.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34735, "subject": "Mathematics (Multi-modal)", "question": "Let for $k$, $0 \\le k \\le 9$, $a_k$ be the coefficient of the $x^k$-term in the polynomial $(x+1)^3(x+2)^3(x+3)^3$. Find the value of $a_2 + a_4 + a_6 + a_8$.", "options": [], "answer": "6696", "solution": "Using the coefficients $a_0, a_1, a_2, \\dots, a_9$, we can write\n$$\n(x+1)^3(x+2)^3(x+3)^3 = a_0 + a_1x + a_2x^2 + \\dots + a_8x^8 + a_9x^9.\n$$\nSubstitution of $x = 1$ and $x = -1$ in the equation above yields, respectively\n$$\na_0 + a_1 + a_2 + \\dots + a_8 + a_9 = 2^3 \\cdot 3^3 \\cdot 4^3\n$$\n$$\na_0 - a_1 + a_2 - a_3 + a_4 - a_5 + a_6 - a_7 + a_8 - a_9 = 0.\n$$\nFrom these identities we obtain $a_0 + a_2 + a_4 + a_6 + a_8 = \\frac{1}{2}(2^3 \\cdot 3^3 \\cdot 4^3 + 0) = 6912$. By substituting $x = 0$ in the equation above, we also get $a_0 = 1^3 \\cdot 2^3 \\cdot 3^3 = 216$. We can therefore conclude that $a_2 + a_4 + a_6 + a_8 = 6912 - 216 = 6696$.", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 34736, "subject": "Mathematics (Multi-modal)", "question": "Let $ABC$ be an acute triangle and let $H$ be its orthocenter. Suppose that a circle going through the points $B$, $C$ and the circle having the line segment $AH$ as its diameter intersect at two distinct points $X$ and $Y$. Let $D$ be the foot of the perpendicular line drawn from $A$ to the line $BC$, and $K$ be the foot of the perpendicular line drawn from $D$ to the line $XY$. Prove that $\\angle BKD = \\angle CKD$ must hold.", "options": [], "answer": "Detailed solution", "solution": "If $AB = AC$ holds, the center of a circle going through the points $B$, $C$ and the center of the circle having $AH$ as its diameter both lie on the perpendicular bisector of the side $BC$ of the triangle. Therefore, the line $XY$ and the perpendicular bisector of $BC$ intersect perpendicularly and the point of their intersection coincides with the point $K$. Furthermore, the point $D$ is the mid-point of the line segment $BC$. Therefore, it is clear that $\\angle BKD = \\angle CKD$ holds.\n\nSo, we consider the case where $AB \\ne AC$. We may assume that $AB > AC$.\n\nLet $E$ be the point of intersection of the lines $BH$ and $AC$, and $F$ be the point of intersection of the lines $CH$ and $AB$. Since $\\angle AEH = \\angle AFH = 90^\\circ$, the points $E$, $F$ lie on the circumference of the circle having $AH$ as its diameter. Call this circle $\\Gamma_1$. Note that the points $X$, $Y$ also lie on $\\Gamma_1$. Note also that 4 points $B$, $C$, $X$, $Y$ lie on the circumference of a circle, which we denote by $\\Gamma_2$, and 4 points $B$, $C$, $E$, $F$ lie on the circumference of another circle, which we denote by $\\Gamma_3$.\n\n**Lemma.** 3 lines $XY$, $BC$ and $EF$ intersect at 1 point.\n\n**Proof.** Let $O$ be the point of intersection of the two lines $BC$ and $EF$. Denote by $Y'$ and $Y''$ the points of intersection of the line $OX$ and the circles $\\Gamma_1$ and $\\Gamma_2$, respectively. By the well-known theorem on power of a point with respect to a circle, we get\n$$\nOX \\cdot OY' = OE \\cdot OF = OC \\cdot OB = OX \\cdot OY''.\n$$\nTherefore, we have $OY' = OY''$. Thus, the two points $Y'$ and $Y''$ must coincide. Since $Y'$ lies on the circle $\\Gamma_1$ and $Y''$ lies on the circle $\\Gamma_2$, we see that $Y' = Y'' = Y$. This shows that the point $O$ lies on the line $XY$ and proves the Lemma.\n\nBy Ceva's Theorem we have\n$$\n\\frac{AF}{FB} \\cdot \\frac{BD}{DC} \\cdot \\frac{CE}{EA} = 1,\n$$\nand by Menelaus' Theorem we also have\n$$\n\\frac{AF}{FB} \\cdot \\frac{BO}{OC} \\cdot \\frac{CE}{EA} = 1.\n$$\nFrom these two equations, we get $\\frac{BD}{DC} = \\frac{BO}{OC}$. Let $C'$ be the point on the line segment $DO$ satisfying the condition $\\angle BKD = \\angle C'KD$. The line $KD$ is the bisector of the $\\angle BKC'$, and from $\\angle DKO = 90^\\circ$ it follows that the line $KO$ is the bisector of $\\angle EKO$. Thus we obtain\n$$\n\\frac{BD}{DC'} = \\frac{KB}{KC'}, \\quad \\frac{BO}{OC'} = \\frac{KB}{KC'}\n$$\nTherefore, we conclude that $\\frac{BD}{DC'} = \\frac{BO}{OC'}$. Combining this with $\\frac{BD}{DC} = \\frac{BO}{OC}$, obtained above, we get $\\frac{OC}{DC} = \\frac{OC'}{DC'}$. Since both $C$ and $C'$ lie on the line segment $DO$, we conclude that $C' = C$ must hold, and thus we get $\\angle BKD = \\angle CKD$, which establishes the assertion of the problem.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34737, "subject": "Mathematics (Multi-modal)", "question": "Let $n$ be a positive integer. Points $P_1, P_2, \\dots, P_{4n}$ are placed in a plane in such a way that no 3 points among them lie on any straight line. Furthermore, for each $i = 1, 2, \\dots, 4n$ if we rotate the half-line $P_i P_{i-1}$ starting at $P_i$ around the point $P_i$ by $90^\\circ$ clockwise, then the half line falls onto the half-line $P_i P_{i+1}$ starting at $P_i$. Determine the maximum possible number of the pairs $(i, j)$ for which the line segments $P_i P_{i+1}$ and $P_j P_{j+1}$ intersect at a point different from the end points of the line segments. Here we let $P_0 = P_{4n}, P_{4n+1} = P_1$ and assume that $1 \\le i < j \\le 4n$.", "options": [], "answer": "(2n-1)(n-1)", "solution": "Let for $k = 1, 2, \\dots, n$ $A_k = P_{4k-3}$, $B_k = P_{4k-2}$, $C_k = P_{4k-1}$, $D_k = P_{4k}$. Also, let $A_{n+1} = A_1$ and $B_{n+1} = B_1$. From now on let us say that the directed line segments $A_i B_i, B_i C_i, C_i D_i, D_i A_{i+1}$ are leftward, downward, rightward, upward segments, respectively. Furthermore, let us say a bent line segment $A_i B_i C_i$ is leftdown type for each $i = 1, 2, \\dots, n$, and define similarly, downright, rightup, upleft type bent segments.\n\nThen the point of intersection (different from their end-points) of a leftward segment and a downward segment can be regarded as the intersection of two leftdown type bent segments. The same statement can be made for intersections of other types of directed segments. Therefore, to get the answer to the problem, it suffices to find the maximum possible value for the sum of the number of intersections of two leftdown type bent segments, that of two downright bent segments, that of two rightup bent segments and that of two upleft bent segments.\n\nLet us say the pair $(i, j)$ where $1 \\le i \\ne j \\le n$ is a good pair if for all of the four pairs of bent segments $A_i B_i C_i$ and $A_j B_j C_j$, $B_i C_i D_i$ and $B_j C_j D_j$, $C_i D_i A_{i+1}$ and $C_j D_j A_{j+1}$, $D_i A_{i+1} B_i$ and $D_j A_{j+1} B_j$, two bent segments intersect each other.\n\nWe note that if $(i, j)$ is a good pair and if $A_i$ lies above $A_j$, then $B_i$ lies to the right of $B_j$, $C_i$ lies below $C_j$, $D_i$ lies to the left of $D_j$ and $A_{i+1}$ lies below $A_{j+1}$.\n\nLemma. For any non-empty proper subset $X$ of the set $\\{1, 2, \\dots, n\\}$, let $Y = X^c$, the complement of $X$. Then, there exist $x \\in X$ and $y \\in Y$ such that the pair $(x, y)$ is not a good pair.\n\n**Proof.** For $x \\in \\{1, 2, \\dots, n\\}$, let us define\n$$\nx^+ = \\begin{cases} x+1 & (\\text{if } 1 \\le x \\le n-1) \\\\ 1 & (\\text{if } x=n), \\end{cases} \\qquad x^- = \\begin{cases} x-1 & (\\text{if } 2 \\le x \\le n) \\\\ n & (\\text{if } x=1). \\end{cases}\n$$\nNow suppose for every choice of $x \\in X$ and $y \\in Y$ the pair $(x, y)$ is a good pair. Define $f(k) = i$ and $f^{-1}(i) = k$ if $A_k$ is located at the $i$-th position from the top among $A_1, A_2, \\dots, A_n$. We show that for each $k$, $1 \\le k \\le n$, the number of points among $f(1), f(2), \\dots, f(k)$ which belong to $X$ and the number of points among $f(1)^-, f(2)^-, \\dots, f(k)^-$ which belong to $X$ must coincide.\n\nIn order to show this, let us suppose the number for the former is larger than the number for the latter. Then, there exists $x \\in X$ for which both $f^{-1}(x) \\le k$ and $f^{-1}(x^+) > k$ hold. Furthermore, there must exist $y \\in Y$ which satisfies both $f^{-1}(y) > k$ and $f^{-1}(y^+) \\le k$, since the number of points in the set $\\{f(k+1), f(k+2), \\dots, f(n)\\}$ which belong to $Y$ is more than the number of points in the set $\\{f(k+1)^-, f(k+2)^-, \\dots, f(n)^-\\}$ which belong to $Y$. But this implies that the pair $(x, y)$ is not a good pair contradicting our assumption. Similarly, we arrive at a contradiction also if we assume that the number for the former case is smaller than the number for the latter. Therefore, we conclude that the number for the former equals the number for the latter.\n\nBy comparing this fact for the case $k = \\ell$ and for the case $k = \\ell - 1$, we arrive at the conclusion that\n$$\nf(\\ell) \\in X \\iff f(\\ell)^- \\in X.\n$$\nThis means that for any $x \\in \\{1, 2, \\dots, n\\}$ we have\n$$\nx \\in X \\iff x^- \\in X.\n$$\nBut this contradicts our assumption that $X$ is a non-empty proper subset of $\\{1, 2, \\dots, n\\}$, and this proves the Lemma.\n\nNow, in order to arrive at the answer to the problem, suppose that the number of $(x, y)$, which is not a good pair is at most $n-2$. Then, among the elements of $\\{1, 2, \\dots, n\\}$, the number of those which can be reached from the element $1$ by going through the string of not-good pairs can be at most $n-1$. So, let $X$ be the subset consisting of those elements accessible from $1$ in this way and let $Y$ be the complement of $X$. Then, we arrive at a situation contradicting the conclusion of the Lemma. So, we must have at least $n-1$ not-good pairs among $\\{1, 2, \\dots, n\\}$. Therefore, the maximum number of pairs $(i, j)$ satisfying the requirement of the problem is at most $4 \\times \\binom{n}{2} - (n-1) = (2n-1)(n-1)$.\n\nOn the other hand, as indicated in the diagram below, if we start by placing $A_1, A_2, \\dots, A_n$ in turn with $A_1$ at a left-top position and going down-right direction, and placing $C_n, C_{n-1}, \\dots, C_1$ in turn with $C_n$ at a left-top position and going down-right direction, and finally placing $B_1, B_2, \\dots, B_n$ and $D_1, D_2, \\dots, D_n$ by following the rule specified in the problem, we can arrive at a situation where the number of relevant intersection points is exactly $(2n-1)(n-1)$. Therefore, the answer we seek for the problem is $(2n-1)(n-1)$.\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34738, "subject": "Mathematics (Multi-modal)", "question": "Let $n$ be a positive integer. Points $P_1, P_2, \\dots, P_{4n}$ are placed in a plane in such a way that no 3 points among them lie on any straight line. Furthermore, for each $i = 1, 2, \\dots, 4n$ if we rotate the half-line $P_i P_{i-1}$ starting at $P_i$ around the point $P_i$ by $90^\\circ$ clockwise, then the half line falls onto the half-line $P_i P_{i+1}$ starting at $P_i$. Determine the maximum possible number of the pairs $(i, j)$ for which the line segments $P_i P_{i+1}$ and $P_j P_{j+1}$ intersect at a point different from the end points of the line segments. Here we let $P_0 = P_{4n}, P_{4n+1} = P_1$ and assume that $1 \\le i < j \\le 4n$.", "options": [], "answer": "(2n-1)(n-1)", "solution": "Let for $k = 1, 2, \\dots, n$ $A_k = P_{4k-3}$, $B_k = P_{4k-2}$, $C_k = P_{4k-1}$, $D_k = P_{4k}$. Also, let $A_{n+1} = A_1$ and $B_{n+1} = B_1$. From now on let us say that the directed line segments $A_iB_i, B_iC_i, C_iD_i, D_iA_{i+1}$ are leftward, downward, rightward, upward segments, respectively. Furthermore, let us say a bent line segment $A_iB_iC_i$ is leftdown type for each $i = 1, 2, \\dots, n$, and define similarly, downright, rightup, upleft type bent segments.\n\nThen the point of intersection (different from their end-points) of a leftward segment and a downward segment can be regarded as the intersection of two leftdown type bent segments. The same statement can be made for intersections of other types of directed segments. Therefore, to get the answer to the problem, it suffices to find the maximum possible value for the sum of the number of intersections of two leftdown type bent segments, that of two downright bent segments, that of two rightup bent segments and that of two upleft bent segments.\n\nLet us say the pair $(i, j)$ where $1 \\le i \\ne j \\le n$ is a good pair if for all of the four pairs of bent segments $A_iB_iC_i$ and $A_jB_jC_j$, $B_iC_iD_i$ and $B_jC_jD_j$, $C_iD_iA_{i+1}$ and $C_jD_jA_{j+1}$, $D_iA_{i+1}B_i$ and $D_jA_{j+1}B_j$, two bent segments intersect each other.\n\nWe note that if $(i, j)$ is a good pair and if $A_i$ lies above $A_j$, then $B_i$ lies to the right of $B_j$, $C_i$ lies below $C_j$, $D_i$ lies to the left of $D_j$ and $A_{i+1}$ lies below $A_{j+1}$.\n\n**Lemma.** For any non-empty proper subset $X$ of the set $\\{1, 2, \\dots, n\\}$, let $Y = X^c$, the complement of $X$. Then, there exist $x \\in X$ and $y \\in Y$ such that the pair $(x, y)$ is not a good pair.\n\n**Proof.** For $x \\in \\{1, 2, \\dots, n\\}$, let us define\n$$\nx^+ = \\begin{cases} x+1 & (\\text{if } 1 \\le x \\le n-1) \\\\ 1 & (\\text{if } x=n), \\end{cases}\n$$\n$$\nx^- = \\begin{cases} x-1 & (\\text{if } 2 \\le x \\le n) \\\\ n & (\\text{if } x=1). \\end{cases}\n$$\nNow suppose for every choice of $x \\in X$ and $y \\in Y$ the pair $(x, y)$ is a good pair. Define $f(k) = i$ and $f^{-1}(i) = k$ if $A_k$ is located at the $i$-th position from the top among $A_1, A_2, \\dots, A_n$. We show that for each $k, 1 \\le k \\le n$, the number of points among $f(1), f(2), \\dots, f(k)$ which belong to $X$ and the number of points among $f(1)^-, f(2)^-, \\dots, f(k)^-$ which belong to $X$ must coincide.\n\nIn order to show this, let us suppose the number for the former is larger than the number for the latter. Then, there exists $x \\in X$ for which both $f^{-1}(x) \\le k$ and $f^{-1}(x^+) > k$ hold. Furthermore, there must exist $y \\in Y$ which satisfies both $f^{-1}(y) > k$ and $f^{-1}(y^+) \\le k$, since the number of points in the set $\\{f(k+1), f(k+2), \\dots, f(n)\\}$ which belong to $Y$ is more than the number of points in the set $\\{f(k+1)^-, f(k+2)^-, \\dots, f(n)^-\\}$ which belong to $Y$. But this implies that the pair $(x, y)$ is not a good pair contradicting our assumption. Similarly, we arrive at a contradiction also if we assume that the number for the former case is smaller than the number for the latter. Therefore, we conclude that the number for the former equals the number for the latter.\n\nBy comparing this fact for the case $k = \\ell$ and for the case $k = \\ell - 1$, we arrive at the conclusion that\n$$\nf(\\ell) \\in X \\iff f(\\ell)^- \\in X.\n$$\nThis means that for any $x \\in \\{1, 2, \\dots, n\\}$ we have\n$$\nx \\in X \\iff x^- \\in X.\n$$\nBut this contradicts our assumption that $X$ is a non-empty proper subset of $\\{1, 2, \\dots, n\\}$, and this proves the Lemma.\n\nNow, in order to arrive at the answer to the problem, suppose that the number of $(x, y)$, which is not a good pair is at most $n-2$. Then, among the elements of $\\{1, 2, \\dots, n\\}$, the number of those which can be reached from the element 1 by going through the string of not-good pairs can be at most $n-1$. So, let $X$ be the subset consisting of those elements accessible from 1 in this way and let $Y$ be the complement of $X$. Then, we arrive at a situation contradicting the conclusion of the Lemma. So, we must have at least $n-1$ not-good pairs among $\\{1, 2, \\dots, n\\}$. Therefore, the maximum number of pairs $(i, j)$ satisfying the requirement of the problem is at most $4 \\times {}_nC_2 - (n-1) = (2n-1)(n-1)$.\n\nOn the other hand, as indicated in the diagram below, if we start by placing $A_1, A_2, \\dots, A_n$ in turn with $A_1$ at a left-top position and going down-right direction, and placing $C_n, C_{n-1}, \\dots, C_1$ in turn with $C_n$ at a left-top position and going down-right direction, and finally placing $B_1, B_2, \\dots, B_n$ and $D_1, D_2, \\dots, D_n$ by following the rule specified in the problem, we can arrive at a situation where the number of relevant intersection points is exactly $(2n-1)(n-1)$. Therefore, the answer we seek for the problem is $(2n-1)(n-1)$.\n\n![](attached_image_1.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34739, "subject": "Mathematics (Multi-modal)", "question": "Two circles $O_1$ and $O_2$ intersect at two distinct points $P$ and $Q$. The tangent line to the circle $O_1$ at the point $P$ intersects the circle $O_2$ at $R$, different from $P$, and the tangent line to the circle $O_2$ at the point $Q$ intersects the circle $O_1$ at $S$, different from $Q$. Let $X$ be the point of the intersection of the two lines $PR$ and $QS$. If $XR = 9$ and $XS = 2$, what is the value of the ratio $\\frac{r_1}{r_2}$, where $r_1$ and $r_2$ are the radii of the circles $O_1, O_2$, respectively? Here we denote by $YZ$ the length of the line segment $YZ$.", "options": [], "answer": "(2/9)^(1/3)", "solution": "![](attached_image_1.png)\n\nIn view of a well-known theorem on angles subtended by arcs on a circle, we have $\\angle PSQ = \\angle QPR$, and $\\angle SQP = \\angle PRQ$. This implies that the triangles $PSQ$ and $QPR$ are similar triangles. Since the circles $O_1$ and $O_2$ are circum-circles of the triangles $PSQ$ and $QPR$, respectively, the ratio $\\frac{r_1}{r_2}$ of the radii of these circles must be the same as the similarity ratio $\\frac{PQ}{QR}$ of these triangles. The same theorem quoted above also tells us that we have $\\angle XPS = \\angle XQP = \\angle XRQ$. Since the angle $\\angle X$ is common to all of the three triangles $XPS$, $XQP$ and $XRQ$, we conclude that these triangles are similar to each other. Hence, we obtain $\\frac{XS}{XP} = \\frac{XP}{XQ} = \\frac{XQ}{XR}$. Consequently, we get\n$$\n\\left(\\frac{XQ}{XR}\\right)^3 = \\frac{XQ}{XR} \\cdot \\frac{XP}{XQ} \\cdot \\frac{XS}{XP} = \\frac{XS}{XR} = \\frac{2}{9}.\n$$\nFinally, from the similarity of the triangles $XQP$ and $XRQ$, we also get $\\frac{PQ}{QR} = \\frac{XQ}{XR}$, which enables us to conclude that we have\n$$\n\\frac{r_1}{r_2} = \\frac{PQ}{QR} = \\frac{XQ}{XR} = \\sqrt[3]{\\frac{2}{9}}.\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34740, "subject": "Mathematics (Multi-modal)", "question": "There are $24$ pieces each of two different kinds of cakes $A$ and $B$. All the cakes will be distributed among three people $X$, $Y$, $Z$. A method of distribution where a person may not receive any cake of a particular kind is allowed for consideration. How many different ways of distributing cakes are there in which there are no pairs of people ending up with the following situation?\n\nOne person in the pair receives $a$ pieces of $A$ and $b$ pieces of $B$, and the other person in the pair receives $a'$ pieces of $A$ and $b'$ pieces of $B$, where all of the conditions $a \\le a'$, $b \\le b'$ and $a+b < a'+b'$ are satisfied.", "options": [], "answer": "14017", "solution": "Let us denote by $a_X$, $a_Y$ and $a_Z$ the numbers of cakes of type $A$ received by $X$, $Y$ and $Z$ respectively, and by $b_X$, $b_Y$ and $b_Z$ the numbers of cakes of type $B$ received by $X$, $Y$ and $Z$, respectively. Then, they are non-negative integers and they satisfy $a_X + a_Y + a_Z = b_X + b_Y + b_Z = 24$.\n\nIf $a_X < a_Y$, then by the condition specified for the problem, we must have either $b_X > b_Y$ or $a_X + b_X \\ge a_Y + b_Y$. We note that even when the second alternative takes place, we must have $b_X > b_Y$, since $a_X < a_Y$. So, we must have the following implication: $\\lceil a_X < a_Y \\rceil \\Rightarrow \\lceil b_X > b_Y \\rceil$. Arguing similarly, we see that in order for the condition of the problem to be satisfied, we must also have the following implications as well: $\\lceil a_X > a_Y \\rceil \\Rightarrow \\lceil b_X < b_Y \\rceil$, $\\lceil b_X < b_Y \\rceil \\Rightarrow \\lceil a_X > a_Y \\rceil$, $\\lceil b_X > b_Y \\rceil \\Rightarrow \\lceil a_X < a_Y \\rceil$. We therefore conclude that in order for the condition of the problem to be satisfied for $X$ and $Y$, we need one of the following conditions to be satisfied:\n\n* $a_X < a_Y$ and $b_X > b_Y$,\n* $a_X = a_Y$ and $b_X = b_Y$,\n* $a_X > a_Y$ and $b_X < b_Y$.\n\nConversely, if one of these conditions is satisfied, then we see the condition of the problem is satisfied for $X$ and $Y$. Similar statements can be made for $X$ and $Z$, and for $Y$ and $Z$, which guarantee the validity of the condition of the problem for the corresponding pairs.\n\nThe number of triples $(x, y, z)$ of non-negative integers satisfying $x + y + z = 24$ is given by\n$$\n\\binom{26}{2} = \\frac{26 \\times 25}{2 \\times 1} = 325.\n$$\nWe classify them further according to the relative order of $x, y, z$.\n\n* When $x = y = z$ is satisfied: there is only one triple $(x, y, z) = (8, 8, 8)$ in this case.\n* When $x = y < z$ is satisfied: in this case, we can write $(x, y, z) = (k, k, 24-2k)$, where $k$ is an integer satisfying $0 \\le k \\le 7$. So, there are $8$ such triples. The same result holds for the cases $y = z < x$, $z = x < y$.\n* When $x = y > z$ is satisfied: in this case, we have $(x, y, z) = (k, k, 24-2k)$, where $k$ is an integer satisfying $9 \\le k \\le 12$. So, there are $4$ such triples. The same result holds for the cases $y = z > x$, $z = x > y$.\n* The remaining case: We have $x, y, z$ to be distinct in this case, and there are $325-1-8 \\times 3-4 \\times 3 = 288$ such triples $(x, y, z)$. There are $6$ possibilities for the order of $x, y, z$, but by symmetry, we can conclude that the number of those triples $(x, y, z)$ with $x < y < z$ is $\\frac{288}{6} = 48$, and the same result holds for others.\n\nIn order to get the solution for the problem, we count the number of cases depending on the order relation among $a_X, a_Y, a_Z$.\n\n* When $a_X = a_Y = a_Z$: in this case, we must have $b_X = b_Y = b_Z$, so we have only $1 \\times 1 = 1$ possibility.\n* When $a_X = a_Y < a_Z$: in this case, we have to have $b_X = b_Y > b_Z$, so we have $8 \\times 4 = 32$ possibilities. The same result holds for the cases $a_Y = a_Z < a_X$ and $a_Z = a_X < a_Y$.\n* When $a_X = a_Y > a_Z$: in this case, we have to have $b_X = b_Y < b_Z$, so we have $4 \\times 8 = 32$ possibilities. The same result holds for the cases $a_Y = a_Z > a_X$ and $a_Z = a_X > a_Y$.\n* When $a_X < a_Y < a_Z$: in this case, we have to have $b_X > b_Y > b_Z$, so we have $48 \\times 48 = 2304$ possibilities. The same result holds for the five other cases, where $a_X, a_Y, a_Z$ are all distinct.\n\nSumming up all these numbers of possibilities, we obtain that the number of ways to distribute cakes among $X$, $Y$, $Z$ to satisfy the condition of the problem is\n$$\n1 \\times 1 + 32 \\times 3 + 32 \\times 3 + 2304 \\times 6 = 14017.\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34741, "subject": "Mathematics (Multi-modal)", "question": "How many 25-tuples $(x_1, x_2, \\dots, x_{25})$ of non-negative integers are there which satisfy the following identity?\n$$\nx_1^2 + x_2^2 + \\dots + x_{25}^2 = 2 + x_1x_2 + x_2x_3 + \\dots + x_{24}x_{25}.\n$$", "options": [], "answer": "29900", "solution": "29900\n![](attached_image_1.png)\nLet $x_0 = 0$. Then, the given identity can be rewritten as:\n$$\n\\begin{aligned}\n& x_0^2 + x_1^2 + \\dots + x_{25}^2 = 2 + x_0x_1 + x_1x_2 + \\dots + x_{24}x_{25} + x_{25}x_0 \\\\\n& \\iff (x_0 - x_1)^2 + (x_1 - x_2)^2 + \\dots + (x_{24} - x_{25})^2 + (x_{25} - x_0)^2 = 4.\n\\end{aligned}\n$$\n\n26 integers $x_0 - x_1, x_1 - x_2, \\dots, x_{24} - x_{25}, x_{25} - x_0$ add up to 0, and the sum of their squares equals 4. Therefore, each of these 26 numbers can only take value in $0, \\pm1, \\pm2$. If there is one of these 26 numbers taking value $\\pm2$, then all other numbers must be 0, but then the sum of all the 26 numbers cannot be equal to 0, contrary to our assumption. Therefore, each of these 26 numbers must take 0 or $\\pm1$. Since the sum of all these numbers is 0 and the sum of all the squares is 4, we can conclude that there are exactly two 1's and two -1's among them and all others must be 0. Furthermore, since $x_0 = 0$ and $x_1, x_2, \\dots, x_{25}$ are non-negative integers, we see that among the 26 numbers $x_0 - x_1, x_1 - x_2, \\dots, x_{24} - x_{25}, x_{25} - x_0$ the numbers 1 and -1 can appear only in the order of -1, -1, 1, 1 or -1, 1, -1, 1. If we put these two 1's and two -1's among 26 possible spots keeping one of the above two orders, then we end up with a 25-tuple $(x_1, x_2, \\dots, x_{25})$ satisfying the requirement of the problem. For each of the two orders for the appearance of 1 and -1, there are $2 \\cdot {}_{26}C_4$ ways of choosing 4 spots for $\\pm1$ to go in, and therefore, there are $2 \\cdot {}_{26}C_4 = 29900$ 25-tuples satisfying the condition of the problem.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34742, "subject": "Mathematics (Multi-modal)", "question": "Let $ABCD$ be a convex quadrilateral for which the line segments $AC$ and $BD$ intersect perpendicularly at a point $X$. Suppose $AX = 5$, $BX = 6$ and $CX = 20$ are satisfied. Let us denote by $O_1, O_2, O_3$ and $O_4$, respectively, the circle with center at $A$ and radius $AX$, the circle with center at $B$ and radius $BX$, the circle with center at $C$ and radius $CX$ and the circle with center at $D$ and radius $DX$. Determine the value of $DX$ if there exists a circle which is tangent to all of the circles $O_1, O_2, O_3$ and $O_4$. Here we denote by $YZ$ the length of the line segment $YZ$.", "options": [], "answer": "12", "solution": "Let $DX = d$. Choose xy-coordinate axis in such a way that $X = (0,0)$, $A = (5,0)$, $B = (0,6)$, $C = (-20,0)$, $D = (0,-d)$ are satisfied. Let $\\Gamma$ be the circle tangent to each of the circles $O_1, O_2, O_3, O_4$, and let $P = (x, y)$ be the center of $\\Gamma$ and $r$ be its radius. Since the circle $O_1$ touches the circle $\\Gamma$ tangentially from inside, we see that $AP = r - 5$, which means that $(x - 5)^2 + y^2 = (r - 5)^2$ is satisfied. Simplifying this, we obtain\n$$\nr^2 - x^2 - y^2 = 10(r - x).\n$$\nIf we use the fact that each of the circles $O_2, O_3, O_4$ also touches the circle $\\Gamma$ tangentially from inside, we obtain in the same way as above,\n$$\nr^2 - x^2 - y^2 = 40(r + x), \\quad r^2 - x^2 - y^2 = 12(r - y), \\quad r^2 - x^2 - y^2 = 2d(r + y).\n$$\nConsequently, if we let $t = r^2 - x^2 - y^2$, then we have\n$$\nr - x = \\frac{t}{10}, \\quad r + x = \\frac{t}{40}, \\quad r - y = \\frac{t}{12}, \\quad r + y = \\frac{t}{2d}.\n$$\nSince $2r = (r-x) + (r+x) = (r-y) + (r+y)$, we obtain\n$$\n2r = t \\left( \\frac{1}{10} + \\frac{1}{40} \\right) = t \\left( \\frac{1}{12} + \\frac{1}{2d} \\right),\n$$\nfrom which we get, as $r \\neq 0$, $\\frac{1}{10} + \\frac{1}{40} = \\frac{1}{12} + \\frac{1}{2d}$. Thus we obtain $d = 12$ for the desired answer for the problem.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34743, "subject": "Mathematics (Multi-modal)", "question": "Find all the factors $k$ of $10^{2013} - 1$, which satisfy $1 \\le k \\le 100$.", "options": [], "answer": "1, 3, 9, 27, 37, 67", "solution": "1, 3, 9, 27, 37, 67\nLet us use the following notations in the subsequent argument to obtain the solution to this problem:\n* For a pair of positive integers $(a, b)$, denote by $\\gcd(a, b)$ the greatest common divisor of $a$ and $b$.\n* For integers $a, b$ and $p$, we write $a \\equiv b \\pmod p$ to mean that $a - b$ is a multiple of $p$.\nWe also quote, without proof, the following well-known facts:\n* When $a^n \\equiv 1 \\pmod p$ holds for positive integers $a, n, p$, the following statement holds for a positive integer $m$:\n$$\na^m \\equiv 1 \\pmod p \\iff a^{\\gcd(m,n)} \\equiv 1 \\pmod p.\n$$\n* If $p$ is a prime, and an integer $a$ is not a multiple of $p$, then\n$$\na^{p-1} \\equiv 1 \\pmod p\n$$\nholds (Fermat's Little Theorem).\nStarting the search for the positive factors of $10^{2013} - 1$ less than or equal to 100, let us first determine the prime numbers $p$ less than 100, which are factors of $10^{2013} - 1$. From what we stated above it follows that we have\n$$10^{2013} - 1 \\equiv 0 \\pmod p \\iff 10^{2013} \\equiv 1 \\pmod p \\iff 10^d \\equiv 1 \\pmod p,$$\nwhere $d = \\gcd(2013, p-1)$. Then, we see that $d$ is a factor of $2013 = 3 \\cdot 11 \\cdot 61$ and must satisfy $d \\le p-1 < 99$. Therefore, we conclude that $d \\in \\{1, 3, 11, 33, 61\\}$ must be satisfied. Let us go through the search for $p$ case by case depending on the possible value of $d$.\n(1) When $d=1$: in this case, we see that $p=3$ is the only prime which satisfies $10^1 \\equiv 1 \\pmod p$, and it satisfies $\\gcd(2013, p-1) = 1$ as well.\n(2) When $d=3$: in this case, we have $10^3 - 1 = 3^3 \\cdot 37$. So, $p=3, 37$ are the only primes satisfying $10^3 \\equiv 1 \\pmod p$. Of these two primes, 37 is the only one satisfying $\\gcd(2013, p-1) = 3$.\n(3) When $d=11$: in this case, $p=23, 89$ are the only primes less than 100 satisfying the condition $\\gcd(2013, p-1) = 11$. For each of these two primes $p$, let us check whether it satisfies the condition $10^{11} \\equiv 1 \\pmod p$. Let $p=23$, then since we have\n$$\n10^5 \\equiv 10^2 \\cdot 10^2 \\cdot 10 \\equiv 8 \\cdot 8 \\cdot 10 \\equiv -4 \\pmod{23},\n$$\nfrom which it follows that\n$$\n10^{11} \\equiv 10^5 \\cdot 10^5 \\cdot 10 \\equiv (-4) \\cdot (-4) \\cdot 10 \\equiv -1 \\pmod{23}.\n$$\nTherefore, $10^{11} \\equiv 1$ is not satisfied.\nIf $p=89$, then from\n$$\n10^5 \\equiv 10^2 \\cdot 10^2 \\cdot 10 \\equiv 11 \\cdot 11 \\cdot 10 \\equiv -36 \\pmod{89}\n$$\nit follows that\n$$\n10^{11} \\equiv 10^5 \\cdot 10^5 \\cdot 10 \\equiv (-36) \\cdot (-36) \\cdot 10 \\equiv 55 \\pmod{89}.\n$$\nTherefore, $10^{11} \\equiv 1 \\pmod{89}$ is not satisfied.\nConsequently, there are no prime factors less than 100 for $10^{2013} - 1$ for the case $d=11$.\n(4) When $d=33$: in this case, we see that 67 is the only prime less than 100 satisfying the condition $\\gcd(2013, p-1) = 33$. Let us check whether $10^{33} \\equiv 1 \\pmod{67}$. By repeating to take squares, we get\n$$\n10^2 \\equiv 33, \\quad 10^4 \\equiv 17, \\quad 10^8 \\equiv 21, \\quad 10^{16} \\equiv 39, \\quad 10^{32} \\equiv 47 \\pmod{67},\n$$\nand by multiplying further by 10, we obtain $10^{33} \\equiv 1 \\pmod{67}$. Thus, we get $p=67$ is the prime factor of $10^{2103}-1$ corresponding to the case $d=33$.\n(5) When $d=61$: in this case, we see that there is no prime $p$ less than 100 satisfying the condition $\\text{gcd}(2013, p-1) = 61$.\nThus we conclude that only prime factors of $10^{2013}-1$ less than 100 are 3, 37, 67, and since any positive factor of $10^{2013}-1$ less than or equal to 100 cannot have any other prime factors, we see that only possible positive factors of $10^{2013}-1$ must come from\n1, 3, 9, 27, 37, 67, 81.\nWe already checked that 3, 37, 67 all divide $10^{2013}-1$ and 1 is obviously a factor. So, it is enough to check whether any of 9, 27, 81 divides $10^{2013}-1$. Since we have\n$$\n10^{2013}-1 = (10-1)(10^{2012} + 10^{2011} + \\cdots + 10^1 + 1)\n$$\nand\n$$10^{2012} + 10^{2011} + \\cdots + 10^1 + 1 \\equiv 1^{2012} + 1^{2011} + \\cdots + 1^1 + 1 \\equiv 2013 \\equiv 6 \\pmod{9},$$\nwe get $10^{2013}-1 \\equiv 54 \\pmod{81}$. From this we conclude that both 9 and 27 are factors of $10^{2013}-1$, while 81 is not, and we get 1, 3, 9, 27, 37, 67 for the answer to the problem.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34744, "subject": "Mathematics (Multi-modal)", "question": "Circle $C_1$ is internally tangent to circle $C_2$ at point $A$. Let $O$ be the center of circle $C_2$. A tangent line to circle $C_1$ at point $P$ on $C_1$ goes through point $O$. Let $Q$ be the point of intersection of half-line $OP$ and circle $C_2$, and let $R$ be the point of intersection of the line tangent to circle $C_1$ at point $A$ and the line $OP$. Suppose that the radius of circle $C_2$ is $9$ and that $PQ = QR$ is satisfied. Here we denote the length of the line segment $XY$ also by $XY$. Determine the value of $OP$.", "options": [], "answer": "3", "solution": "3\n\nSince lines $RA$, $RP$ are tangent to circle $C_1$ at $A$, $P$, respectively, we have $AR = PR$. Also, if we let $S$ be the point of intersection, different from $Q$, of line $OQ$ and circle $C_2$, then, by the theorem on the power of a point with respect to a circle, we have $AR^2 = SR \\cdot QR$. From $AR = PR = 2QR$ it follows that $SR = \\frac{(2QR)^2}{QR} = 4QR$. Consequently, we obtain $SQ = SR - QR = 3QR$. Since $SQ$ is the radius of circle $C_2$, we have $3QR = SQ = 9 \\cdot 2 = 18$, and therefore, $QR = 6$, from which we conclude that\n$$\nOP = OQ - PQ = OQ - QR = 3\n$$\nis the desired answer.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34745, "subject": "Mathematics (Multi-modal)", "question": "For a grid of $55 \\times 55$ squares, let us consider the following operation:\n\nOperation: Choose a rectangular region consisting of a number of squares from the grid, and color the region either white or black.\n\nDetermine the smallest possible number of operations necessary to reach from the initial configuration, in which all the squares are colored white to the configuration satisfying the following conditions:\n* the square at the upper left corner is colored black.\n* every square sharing a side with a black-colored square is colored white.\n* every square sharing a side with a white-colored square is colored black.", "options": [], "answer": "784", "solution": "$784$\n\nFirst, we show that the answer we seek is at least $784$.\nLet us call the vertices of the squares of the grid lattice points. There are $56^2$ lattice points. For each lattice point, call the set of all the squares of the grid having this lattice point as a vertex its neighborhood. We will first show that in order to reach the configuration satisfying the conditions of the problem, it is necessary to include in the sequence of operations, for every lattice point, an operation involving a rectangle for which it is a vertex.\n\nNote that if a configuration satisfies the conditions of the problem, then for every lattice point there must be at least one black square in its neighborhood. For a lattice point $P$, let us say that an operation is an operation containing $P$ if it chooses a rectangle having $P$ either in its interior or on its sides. If for some lattice point $P$, no operation containing $P$ is performed throughout the process, then all the squares in the neighborhood of $P$ remain white, so the process does not attain the configuration desired. Therefore, at least one operation containing $P$ must be performed.\n\nSo, suppose for a lattice point $P$ we consider the last operation containing $P$ that has been performed. If this operation chooses a rectangle containing $P$ in the interior (hence $P$ is not a vertex of the rectangle), then some pair of adjacent squares in the neighborhood of $P$ must have the same color. Thus this process cannot reach the desired configuration, and this implies that the last operation containing $P$ must pick a rectangle having $P$ as its one of the vertices.\n\nSince there are $4$ vertices for a rectangle chosen for an operation, and since there are $56^2$ lattice points, we see that number of operations in a process necessary to achieve the desired configuration is at least $\\frac{56^2}{4} = 784$.\n\nNext, we show that there is a process consisting of exactly $784$ operations to reach the desired configuration.\nFor this purpose, let us consider $28$ rectangles consisting of all the squares lying on $1$st, $3$rd, ... $55$-th row (i.e., odd-numbered rows) from the top and go through $28$ operations of coloring all the squares in the rectangle black starting with the top row. Next take $27$ rectangles consisting of all the squares lying on $2$nd, $4$-th, ... $54$-th column (i.e., even-numbered columns) from the left and go through $27$ operations of coloring all the squares in the rectangle white starting with the left-most row. After these operations, all the squares located at the intersection of an odd-numbered row and an odd-numbered column are colored black and all other squares in the grid are colored white. Finally, for each of $27^2$ squares located at the intersection of an even-numbered row and an even-numbered column, we go through the operation of picking one of these squares in some order and coloring it black till we exhaust all of these squares. Then, we see that we end up with the configuration for which all the three conditions of the problem are satisfied. The number of operations necessary to go through this process is $28 + 27 + 27^2 = 784$, and therefore, the answer we seek is $784$.", "topic": "Algebra", "subtopic": "Abstract Algebra" }, { "id": 34746, "subject": "Mathematics (Multi-modal)", "question": "Consider an operation of putting an integer greater than or equal to $1$ and less than or equal to $6$ to each square in a grid of $6 \\times 6$ squares. For a pair of integers $(i, j)$ with $1 \\le i, j \\le 6$, denote by $i \\diamond j$ the integer put into the square located on $i$-th row and $j$-th column after an operation. How many different operations are there which satisfy the following 2 conditions?\n\n* For every $i$ ($1 \\le i \\le 6$), $i \\diamond i = i$ holds.\n* For every choice of $i, j, k, \\ell$ with $1 \\le i, j, k, \\ell \\le 6$, $(i \\diamond j) \\diamond (k \\diamond \\ell) = i \\diamond \\ell$ holds.", "options": [], "answer": "122", "solution": "First, we consider how we can obtain an operation that satisfies the two conditions of the problem. Let us begin with the following Lemma:\n**Lemma 1:** For every pair of integers $i$ and $j$ with $1 \\le i, j \\le 6$, $i \\diamond j$ is the only integer which appears in both $i$-th row and $j$-th column.\n**Proof of Lemma 1:** It is clear that the number $i \\diamond j$ appears in both $i$-th row and $j$-th column. Suppose now that for some pair of integers $j'$, $i'$ both lying in between $1$ and $6$, some integer $k$ appears in both the square located on $i$-th row and $j$-th column and the square located on $i'$-th row and $j$-th column, then we have $k \\diamond k = (i \\diamond j')(i' \\diamond j) = i \\diamond j$, which implies that $i \\diamond j$ is the only number that can appear in both $i$-th row and $j$-th column.\n\nNext, we note that since for any choice of positive integers $i, j, k$ lying in between $1$ and $6$ the identity\n$$\ni \\diamond k = (i \\diamond j) \\diamond (k \\diamond k) \\diamond k\n$$\nholds, we see that distribution of numbers in $i$-th row and $(i \\diamond j)$-th row must coincide. Consequently, for any pair of numbers $i_1, i_2$ lying in between $1$ and $6$, no pair $j_1, j_2$ exists for which $i_1 \\diamond j_1 = i_2 \\diamond j_2$, if the distribution of numbers in $i_1$-th and $i_2$-th rows are different. In other words, for any pair of rows the distributions of integers in them either coincide or there exists no integer which appears in both rows.\n\nOn the other hand, for any integer $i$ lying in between $1$ and $6$, $i \\diamond i = i$ holds; therefore, in $i$-th row number $i$ appears at least once. In view of this fact and the fact mentioned above, we can conclude that the set $\\{1, 2, \\dots, 6\\}$ of positive integers is partitioned into the collection $I_1, I_2, \\dots, I_m$, (where $m$ is a positive integer $\\le 6$), of non-empty subsets, which satisfies the following condition:\nFor any $x \\in \\{1, 2, \\dots, m\\}$ and for any $i \\in I_x$, the set $I_x$ coincides with the set of all numbers appearing in $i$-th row.\n\nBy considering columns instead of rows, we can also obtain the following:\nThe set $\\{1, 2, \\dots, 6\\}$ of positive integers is partitioned into the collection $J_1, J_2, \\dots, J_n$, (where $n$ is a positive integer $\\le 6$), of non-empty subsets, which satisfies the following condition:\nFor any $y \\in \\{1, 2, \\dots, n\\}$ and for any $j \\in J_y$, the set $J_y$ coincides with the set of all numbers appearing in $j$-th column.\n\nFrom Lemma 1 it follows that for any pair of numbers $x, y$ with $1 \\le x \\le m$ and $1 \\le y \\le n$, there is a unique integer belonging to the set $I_x \\cap J_y$. Denote this integer by $(x, y)$. Then we can show the following:\n**Lemma 2:** For any choice of $x_1, x_2, y_1, y_2$, $(x_1, y_1) \\diamond (x_2, y_2) = (x_1, y_2)$.\n**Proof of Lemma 2:** First, we note that for any pair $i \\in I_x, j \\in J_y$, $(x, y) = i \\diamond j$ holds. Therefore, we see that for $i_1 \\in I_{x_1}, i_2 \\in I_{x_2}, j_1 \\in J_{y_1}, j_2 \\in J_{y_2}$, we have\n$$\n\\langle x_1, y_1 \\rangle \\diamond \\langle x_2, y_2 \\rangle = (i_1 \\diamond j_1) \\diamond (i_2 \\diamond j_2) = i_1 \\diamond j_2 = \\langle x_1, y_2 \\rangle,\n$$\nproving the Lemma.\n\nNow, since both $I_1, I_2, \\dots, I_m$ and $J_1, J_2, \\dots, J_n$ are partitions of the set $\\{1, 2, \\dots, 6\\}$, we see that in the enumeration\n$$\n(\\dagger) \\quad \\langle 1, 1 \\rangle, \\langle 1, 2 \\rangle, \\dots, \\langle 1, n \\rangle, \\langle 2, 1 \\rangle, \\langle 2, 2 \\rangle, \\dots, \\langle 2, n \\rangle, \\dots \\dots \\langle m, 1 \\rangle, \\langle m, 2 \\rangle, \\dots \\langle m, n \\rangle,\n$$\n\n**Lemma 3:** When positive integers $m, n$ satisfying $mn = 6$ and enumeration ($\\dagger$) above of the numbers $1, 2, ..., 6$ are given, assignment of numbers into squares to satisfy the statement of Lemma 2 is uniquely determined, and this assignment satisfies the conditions of the problem.\n**Proof of Lemma 3:** First, we note that the two conditions of the problem can be stated in terms of $\\langle x, y \\rangle$ as follows:\n$$\n\\bullet \\quad \\langle x, y \\rangle \\diamond \\langle x, y \\rangle = \\langle x, y \\rangle\n$$\n$$\n\\bullet \\quad (\\langle x_1, y_1 \\rangle \\diamond \\langle x_2, y_2 \\rangle) \\diamond (\\langle x_3, y_3 \\rangle \\diamond \\langle x_4, y_4 \\rangle) = \\langle x_1, y_2 \\rangle \\diamond \\langle x_3, y_4 \\rangle = \\langle x_1, y_4 \\rangle \\\\ = \\langle x_1, y_1 \\rangle \\diamond \\langle x_4, y_4 \\rangle.\n$$\nSince for each $i$ lying in between $1$ and $6$, there is a unique pair $x$ and $y$ for which $i = \\langle x, y \\rangle$, we see that the claim of Lemma 3 is valid.\n\nNow if we consider an assignment of numbers satisfying the conditions of the problem, then there are $m! \\cdot n!$ enumeration ($\\dagger$)'s giving this assignment corresponding to the number of permutations of sets $I_1, I_2, \\dots, I_m$ and $J_1, J_2, \\dots, J_n$. For each pair $m, n$ satisfying $mn = 6$ there are $6!$ different ($\\dagger$)'s, and therefore, the number of ways of assignments satisfying the conditions of the problem is $\\frac{6!}{m!n!}$, which yields\n$$\n\\frac{6!}{1! \\cdot 6!} + \\frac{6!}{2! \\cdot 3!} + \\frac{6!}{3! \\cdot 2!} + \\frac{6!}{6! \\cdot 1!} = 122\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34747, "subject": "Mathematics (Multi-modal)", "question": "Suppose we assign one of positive integers $n$ satisfying $1 \\le n \\le 8$ to each of the 8 vertices of a regular octagon. How many ways of assigning these numbers are there, which satisfy the following 2 conditions?:\n* assigned numbers are all distinct.\n* any pair of numbers assigned to adjacent vertices are relatively prime.\nRegard two assignments of 8 numbers to be distinct if one is obtained from the other by rotation or flipping of the octagon.", "options": [], "answer": "576", "solution": "576 ways\nSince pair of even integers are not relatively prime, any pair of adjacent vertices cannot both be occupied by even numbers. Hence even and odd numbers must be assigned to vertices alternately. So, the assignment of numbers must be carried out as in the figures 1 or 2 below.\n\n![](attached_image_1.png)\nfigure 1\n![](attached_image_2.png)\nfigure 2\n\nThere are $4! = 24$ ways of assigning even numbers 2, 4, 6, 8 to the vertices marked even in the figure 1, and the same is true for the vertices in figure 2, and all these assignments have to be considered distinct. Therefore, there are 48 ways of assigning the even numbers to the vertices of the octagon to satisfy the requirement of the problem.\n\nNow, after we decide on the assignments of even numbers, we have to consider the ways of assigning odd numbers to the vertices marked odd in figures 1 and 2 in such a way to satisfy the requirements of the problem. Since 3 and 6 are not relatively prime, 3 has to be assigned to a vertex not adjacent to a vertex which has 6 as the assigned number, and therefore, there are exactly 2 vertices to which the number 6 can be assigned. On the other hand, all the even-odd pairs of numbers in between 1 through 8 except the pair (3, 6) are relatively prime, remaining odd numbers 1, 5, 7 can be assigned to the remaining vertices marked odd in any order,\n\nwhich means that there are $3! = 6$ ways of assigning these numbers. Therefore, there are altogether $48 \\times 2 \\times 6 = 576$ ways of assigning the numbers 1, 2, ..., 8 to the vertices of the octagon in such a way to satisfy the conditions of the problem.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34748, "subject": "Mathematics (Multi-modal)", "question": "Let $n$ be a positive integer. For every pair of students enrolled in a certain school having $n$ students, either the pair are mutual friends or not mutual friends. Let $N$ be the smallest possible sum $a+b$ of positive integers $a$ and $b$ satisfying the following 2 conditions concerning students in this school:\n(1) It is possible to divide students into $a$ teams in such a way that any pair of students belonging to a same team are mutual friends.\n(2) It is possible to divide students into $b$ teams in such a way that any pair of students belonging to a same team are not mutual friends.\nAssume that every student will belong to one and only one team when the students are divided to form teams to satisfy the conditions (1) and (2) above, and a team may consist of only one student, in which case this team is assumed to satisfy both of the conditions: that any pair of students in this team are mutual friends; are not mutual friends. Determine in terms of $n$ the maximum possible value that $N$ can take.", "options": [], "answer": "n+1", "solution": "Call a team a good team if any pair of students in the team are mutual friends, a bad team if any pair of students in the team are not mutual friends. By agreement, we consider a team consisting of only one student to be both good and bad. Let us show that the minimum value of $N$ we seek is $n+1$.\n\nIf, in a certain school having $n$ students, every pair of students are mutual friends, then they have to form $b = n$ bad teams, since every team must contain only one student in this case to get a partition into bad teams. Since, we must have $a \\ge 1$ also, we see that $N \\ge n + 1$.\n\nWe next show by induction on $n$, that for any school $N \\le n+1$ must hold.\n\n* When $n = 1$, we have $a = b = 1$, and therefore, $N \\le a+b = 2 = n+1$ and our claim holds in this case.\n\n* Assume that our claim $N \\le n+1$ is satisfied for the case $n = k$, and consider the case of $n = k+1$. Choose a student and call him $A$. By the induction hypothesis, there is a way to partition the student body of $k$ students excepting $A$ into $a'$ good teams and also into $b'$ bad teams in such a way that $a' + b' \\le k+1$ is satisfied.\n\nIf $a' + b' \\le k$, then adding a team consisting of student $A$ only to each of the two ways of partitioning students beside $A$ into good and bad teams as above, we obtain the partitions of all $k+1$ students into $a = a' + 1$ good teams and $b = b' + 1$ bad teams, for which we have $N \\le a+b = (a'+1) + (b'+1) \\le k+2 = n+1$.\n\nIf $a' + b' = k+1$, we can consider the following three cases:\n\n(i) If among $a'$ good teams of $k$ students there is a team whose members are all friends of $A$, then adding $A$ to this team, we get a partition of all $k+1$ students into $a = a'$ good teams. We can also form a partition of all students into $b = b' + 1$ bad teams by creating a team consisting of $A$ only. Then, we get partitions into $a$ good teams and $b$ bad teams for which $N \\le a+b = a' + (b'+1) = k+2 = n+1$.\n\n(ii) Similarly, if, among $b'$ bad teams there is a team all of whose members are not friends of $A$, then we can get a partition of all $k+1$ students into good teams and bad teams for which $N \\le k+2 = n+1$.\n\n(iii) If every one of $a'$ good teams contains at least one student who is not a friend of $A$, and every one of $b'$ bad teams contains at least one student who is a friend of $A$, then $A$ must have at least $a'$ students who are not his friends and also have at least $b'$ students who are his friends, which implies that the number of students in this school besides $A$ must be at least $a'+b'$. But, since the number of students besides $A$ is $k$ which equals $a'+b' - 1$ by our assumption, we get a contradiction.\n\nThis completes our induction, and establishes that $N \\le n + 1$, and proves that $N = n + 1$ is the desired answer for the problem.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34749, "subject": "Mathematics (Multi-modal)", "question": "Find the value of\n$$\n\\sum \\frac{1}{d + \\sqrt{10!}}\n$$\nwhere the sum is taken over all the positive factors $d$ of the number $10!$.", "options": [], "answer": "3/(16√7)", "solution": "$$\n\\boxed{\\frac{3}{16\\sqrt{7}}}\n$$\nFrom $10! = 2^8 \\cdot 3^4 \\cdot 5^2 \\cdot 7$ it follows that there are $(8+1) \\cdot (4+1) \\cdot (2+1) \\cdot (1+1) = 270$ positive factors of $10!$. Suppose we enumerate them as $d_1, d_2, \\dots, d_{270}$ in increasing order of magnitude, starting with the smallest one as $d_1$, then for each $k$, $1 \\le k \\le 270$, we have\n$$\nd_k \\cdot d_{271-k} = 10!,\n$$\nand therefore, we get\n$$\n\\frac{1}{d_k + \\sqrt{10!}} + \\frac{1}{d_{271-k} + \\sqrt{10!}} = \\frac{d_k + d_{271-k} + 2\\sqrt{10!}}{\\sqrt{10!}(d_k + d_{271-k}) + 2 \\cdot 10!} = \\frac{1}{\\sqrt{10!}}\n$$\nConsequently, the desired sum is given by\n$$\n\\frac{1}{2} \\sum_{k=1}^{270} \\left( \\frac{1}{d_k + \\sqrt{10!}} + \\frac{1}{d_{271-k} + \\sqrt{10!}} \\right) = \\frac{1}{2} \\cdot 270 \\cdot \\frac{1}{\\sqrt{10!}} = \\frac{3}{16\\sqrt{7}}\n$$", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34750, "subject": "Mathematics (Multi-modal)", "question": "On the circumference of a circle, 6 points $A$, $B$, $C$, $D$, $E$, $F$ are placed in this order counter-clockwise, and three lines $AD$, $BE$ and $CF$ intersect at a single point. If\n$$\nAB = 1,\\ BC = 2,\\ CD = 3,\\ DE = 4,\\ EF = 5,\n$$\nfind the value of $FA$. Here we denote the length of a line segment $XY$ also by $XY$.", "options": [], "answer": "15/8", "solution": "$$\n\\boxed{\\frac{15}{8}}\n$$\nLet $P$ be the point of intersection of lines $AD$, $BE$ and $CF$. Then, we have $\\angle PBA = \\angle PDE$, since they are subtended by the same arc $\\overarc{EA}$ of the circle at the points $B$ and $D$ on the circumference. We also have $\\angle BPA = \\angle DPE$ so that the triangles $BPA$ and $DPE$ are similar. Consequently, we get\n$$\n(1) \\qquad PA : PE = BA : DE = 1 : 4.\n$$\nIn the same way, we see that the triangles $CPB$ and $EPF$ are similar, and therefore, we get\n$$\n(2) \\qquad PE : PC = EF : CB = 5 : 2.\n$$\nFrom (1) and (2) above, we get $PC : PA = 8 : 5$. Also, from the similarity of the triangles $FPA$ and $DPC$, we obtain $PC : PA = DC : FA$, from which it follows that $FA = \\frac{5}{8} \\cdot DC = \\frac{15}{8}$, which is the desired answer.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34751, "subject": "Mathematics (Multi-modal)", "question": "Let $\\Gamma$ be the circumcircle of a triangle $ABC$, and $\\ell$ be the line tangent to $\\Gamma$ at point $A$. Let $D, E$ be interior points of the sides $AB, AC$, respectively, satisfying the condition $BD : DA = AE : EC$. Let $F, G$ be the two points of intersection of line $DE$ and circle $\\Gamma$, $H$ be the point of intersection of the line $\\ell$ and the line parallel to $AC$ and going through point $D$, and $I$ be the point of intersection of the line $\\ell$ and the line parallel to $AB$ and going through point $E$. Prove that four points $F, G, H, I$ lie on the circumference of a circle which is tangent to line $BC$. Here, for a line segment $XY$ we denote its length also by $XY$.", "options": [], "answer": "Detailed solution", "solution": "Let $X$ be the point of intersection of line $BC$ and the line going through point $D$ and parallel to line $AC$. Then, we see that $X$ lies on the line going through point $E$ and parallel to line $AB$, because we have $BX : XC = BD : DA = AE : EC$.\nSince line $IA$ (which is the same as $\\ell$) is tangent to circle $\\Gamma$, we have $\\angle IAC = \\angle ABC$. We also have $\\angle ABC = \\angle IXC$, since lines $EX$ and $AB$ are parallel. Consequently, we have $\\angle IAC = \\angle IXC$, from which it follows that 4 points $A, I, C, X$ are concyclic. By the theorem on powers of a point with respect to a circle, we then get $AE \\cdot CE = IE \\cdot XE$. By the same theorem, we also get $AE \\cdot CE = FE \\cdot GE$. Combining these two identities, we get $IE \\cdot XE = FE \\cdot GE$, which in turn implies that 4 points $I, X, F, G$ are concyclic. Similarly, we can obtain the fact that 4 points $H, X, F, G$ are concyclic, and therefore, 5 points $F, G, H, I, X$ are concyclic.\nFinally, from the fact that lines $AC$ and $HX$ are parallel, we get $\\angle IHX = \\angle IAC$, and since we also have $\\angle IAC = IXC$ as we have seen earlier, we obtain the fact that $\\angle IXC = \\angle IHX$, and this implies that line $BC$ is tangent to the circumcircle of triangle $HIX$ at point $X$.\nThus we have shown that points $F, G, H, I$ lie on a same circle and that circle is tangent to line $BC$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34752, "subject": "Mathematics (Multi-modal)", "question": "Find the value of\n$$\n\\sum 17C_a \\cdot 17C_b \\cdot 17C_c,\n$$\nwhere the sum is taken over all triples $(a, b, c)$ of non-negative integers satisfying $a+b+c=5$.", "options": [], "answer": "2349060", "solution": "$$\n\\boxed{2349060}\n$$\nConsider a particle moving on the $xy$-plane according to the following rule: if the particle is at the point $(n, m)$ where $n$ and $m$ are integers, it moves in one step either to the point $(n+1, m)$ or to the point $(n, m+1)$. Consider the set $\\Omega$ of all paths that a particle can take to start at the origin $(0, 0)$ and take steps, following the rule as above to reach the point $(46, 5)$. It is easy to see that there are exactly $51C_5$ such paths. Among these paths, there are exactly $17C_8 \\cdot 17C_8 \\cdot 17C_8$ (where $a+b+c=5$) paths which cross the lines $x+y=17$ and $x+y=34$ at the points $(17-a, a)$ and $(34-a-b, a+b)$, respectively. Since all the paths belonging to the set $\\Omega$ cross these two lines at these points for some choice of $a$ and $b$ with $0 \\le a, b,$\n\nand $a+b \\le 5$, we see that the value of the sum we seek is exactly the same as the number of paths belonging to the set $\\Omega$, which is $51C_5 = 2349060$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34753, "subject": "Mathematics (Multi-modal)", "question": "There are two blackboards $A$ and $B$, and on each of these blackboards certain number of distinct integers greater than or equal to $2$ and less than or equal to $20$ are written in such a way that any pair of numbers one of which is chosen from $A$ and the other from $B$ are relatively prime. Determine the maximum possible value the product of the number of integers written on $A$ and the number of integers written on $B$ can take.", "options": [], "answer": "65", "solution": "Denote by $A$ and $B$ the set of numbers written on the blackboard $A$ and $B$, respectively. Denote also by $|X|$ the number of elements belonging to the set $X$. If we let\n$$\nA = \\{2, 3, 4, 5, 6, 8, 9, 10, 12, 15, 16, 18, 20\\}, \\quad B = \\{7, 11, 13, 17, 19\\},\n$$\nthen we see that arbitrary pair of numbers $(a, b)$ with $a \\in A$ and $b \\in B$ are relatively prime, and that we have $|A||B| = 65$. We will show in the sequel that $65$ is the maximum possible value for the product $|A||B|$.\n\nSo, suppose that for some choice of $A$ and $B$, $|A||B| \\ge 66$, and we will show that this will lead to a contradiction. From $|A| + |B| \\ge 2\\sqrt{|A||B|} \\ge 2\\sqrt{66}$, it follows that we must have $|A| + |B| \\ge 17$. Therefore, we conclude that there are at most $2$ numbers among the integers, greater than or equal to $2$ and less than or equal to $20$, which belong neither to $A$ nor to $B$. Hence, at least one number among $6, 12, 18$ must belong either to $A$ or to $B$. We may suppose without loss of generality that the former is the case. By the assumption of the problem, multiples of a same positive number cannot belong to both $A$ and $B$. Since at least one of the numbers $6, 12, 18$ belongs to $A$, we conclude that all the multiples of $2$ and all the multiples of $3$ must also belong to $A$. Since there are only six numbers $5, 7, 11, 13, 17, 19$, among the numbers greater than or equal to $2$ and less than or equal to $20$, which are neither multiples of $2$ nor multiples of $3$, we conclude that $|B| \\le 6$ must be satisfied. If we assume that $|B| \\le 4$, then we get $|A||B| \\le (19-|B|)|B| \\le 60$, which contradicts our assumption. Therefore, we must have either $|B| = 5$ or $|B| = 6$.\n\n* When $|B| = 5$:\n\nIn this case, we must have either $5$ or $7$ in the set $B$. But then at least one of the numbers $10$ or $14$ cannot be in the set $A$, so that we have $|A| \\le 13$, which implies that $|A||B| \\le 65$, which contradicts our assumption.\n\n* When $|B| = 6$:\n\nIn this case, we have $B = \\{5, 7, 11, 13, 17, 19\\}$, so neither $10$ nor $14$ can belong to the set $A$, which means that $|A| \\le 9$, and this also leads to the contradiction to our assumption.\n\nThus we conclude that $65$ is the maximum possible value that the product $|A||B|$ can take.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34754, "subject": "Mathematics (Multi-modal)", "question": "In a certain school, there is a committee consisting of 4 members. There are 4 sub-committees for this committee, and each committee member will be asked to chair a different sub-committee. Suppose each committee member has 2 sub-committees he prefers to chair. It is known that there are exactly 2 ways to assign sub-committees to members in such a way to satisfy the preferences of all the members. How many possible combinations of the preferences of all four members are there in this situation?", "options": [], "answer": "936", "solution": "Consider a graph which consists of 4 vertices, representing 4 sub-committees, and edges, representing 4 members, each of which connects a pair of vertices, corresponding to two sub-committees a committee member prefers to serve in. Let us call a method of choosing one of the end points for each of the edges to be a good method if every vertex of the graph is chosen exactly once by the method. A method of assigning sub-committee to each member of the committee to satisfy the requirement of the problem corresponds to a good method. For each vertex of a graph, define the degree of the vertex to be the number of edges emanating from the vertex.\n\nLet us say that a graph of 4 vertices and 4 edges as above is of type $S_0$ if there exists a good method of choosing. If a graph is type $S_0$, then since for the corresponding situation for sub-committee assignments, for any sub-committee there is a member who prefers to serve in it, every vertex of such a graph has a positive degree. Suppose there is a vertex with degree 1. Consider the operation of removing that vertex and the edge emanating from it. We note that the number of good methods of choosing does not change before and after the removal of a vertex of degree 1 and the edge emanating from it. This is because if you apply a good method to the graph before the removal of a vertex $v$ of degree 1 and the edge $\\ell$ emanating from it, we have to remove that vertex $v$ when we choose a vertex to remove for the edge $\\ell$. Now keep repeating the process of removing a vertex of degree 1 and the edge emanating from it, then we reach the situation where every remaining vertex has degree greater than or equal to 2. Let us say that a graph is of type $S_1$ if every vertex has degree greater than or equal to 2. Suppose in a graph of type $S_1$ there are $k$ vertices and $k$ edges. Then the sum of the degrees of all the vertices must be two times the number of edges, namely $2k$. On the other hand, every vertex has degree greater than or equal to 2, which forces each vertex to have degree 2.\n\nNext, for a graph of type $S_1$, consider a process of starting from a vertex and tracing edges to move to different vertices without tracing in reverse direction the edge traced in the immediately preceding step. Since every vertex has degree 2, the process does not stop and eventually comes back to the starting vertex after a finite number of steps. Furthermore, every vertex passed through during this process cannot be a vertex for an edge not passed through during this operation. Therefore, we can remove all the vertices and edges passed through under this operation. Let us say that the set of vertices and edges removed in this way is a cycle. If we repeat the process of removing cycles until all the vertices and edges are removed, then we can decompose the original graph into the disjoint union of a finite number of cycles.\n\nNext, we compute the number of good methods of choosing: if for an edge one of its vertices is chosen, then for any other edge lying in the same cycle, the choice of its end points is uniquely determined. Therefore, if there are $n$ cycles in a graph, then there are $2^n$ good methods for choosing. Since the condition of the problem asks for a configuration for which the number of good methods of choosing is 2, we see that the number of cycles must be 1.\n\nLet us now determine the number of ways vertices and edges can be combined in a graph of type $S_0$ when the type $S_1$ graph derived from it has exactly 1 cycle. We do this by separating cases depending on the number of vertices in the cycle in $S_1$.\n\n* When the number of vertices in the cycle is 4, there are 3 ways of placing vertices, and for each placement of vertices there are $4!$ ways of placing edges. So, there are $3 \\cdot 4! = 72$ ways of combining vertices and edges in this case.\n\n![](attached_image_1.png)\n\n* When the number of vertices in the cycle is 3, there are $\\binom{4}{3} = 4$ ways of choosing vertices to be included in the cycle, 3 ways to combine the remaining point to one of the vertices of the cycle and $4! = 24$ ways of placing edges for each placement of vertices. Therefore, there are $4 \\cdot 3 \\cdot 24 = 288$ ways of combining vertices and edges in this case.\n\n![](attached_image_2.png)\n\n![](attached_image_3.png)\n\n(i) When one of the 2 vertices is connected with $A$, other vertex with $B$, there are just 2 ways depending on which of the remaining vertices is connected with $A$.\n\n![](attached_image_3.png)\n\n(ii) When both of the vertices are connected with $A$ or both with $B$, there are 2 ways depending on whether $A$ or $B$ is the vertex to be connected.\n\n![](attached_image_4.png)\n\nWhen one of the remaining vertices, say $C$, is connected with $A$ or $B$ and the other remaining vertex is connected with $C$, there are 4 ways depending on which of the remaining vertices is $C$ (2 choices) and whether $C$ is connected with $A$ or $B$ (2 choices).\n\n![](attached_image_5.png)\n\nConsequently, there are $2+2+4=8$ choices for the placement of remaining 2 vertices, and the total number of placements of vertices when the number of vertices in the cycle is 2 is given by $6 \\cdot 8 = 48$. For each placement of the vertices, there are $4 \\cdot 3 = 12$ ways of choosing the ways of placing edges outside of the cycle, and therefore, there are $48 \\cdot 12 = 576$ ways of combining vertices and edges in this case.\n\nSummarizing the results obtained above, we get $72 + 288 + 576 = 936$ ways of connecting vertices and edges resulting with a graph for which there are exactly 2 good methods of choosing.", "topic": "Discrete Mathematics", "subtopic": "Combinatorics" }, { "id": 34755, "subject": "Mathematics (Multi-modal)", "question": "Let $m$ be a positive integer of $1000$ digits, with the property that all of its digits are non-zero. For a positive integer $n$, consider $\\left\\lfloor \\frac{m}{n} \\right\\rfloor$, where we define for any real number $r$, $\\lfloor r \\rfloor$ to be the largest integer less than or equal to $r$. Determine the largest possible number of digits which are $0$ for $\\left\\lfloor \\frac{m}{n} \\right\\rfloor$, where $1 \\le n \\le m$.", "options": [], "answer": "939", "solution": "Let $M$ be the maximum number we seek. First we show that $M \\le 939$ must hold.\nLet $m, n$ be positive integers satisfying the conditions of the problem, and let $k$ be the number of digits of $n$ (so, $1 \\le k \\le 1000$). Let us represent $\\frac{m}{n}$ as\n$$\n\\frac{m}{n} = a_1 10^{b_1} + a_2 10^{b_2} + \\dots + a_N 10^{b_N} + \\epsilon,\n$$\nwhere $1 \\le a_i \\le 9$, for $i = 1, 2, \\dots, N$, $0 \\le b_N < b_{N-1} < \\dots < b_1$, and $0 \\le \\epsilon < 1$. Then from $10^{999} \\le m < 10^{1000}$ and $10^{k-1} \\le n < 10^k$ it follows that we have $b_1 \\le 1000 - k$. We can also show that the following lemma holds:\n\n**Lemma:** $b_i - b_{i+1} \\le k+1$ holds for every $i, 1 \\le i \\le N-1$, and $b_N \\le k$ holds also.\n\n**Proof of Lemma:** Suppose for some $i, 1 \\le i \\le N-1$, $b_i - b_{i+1} \\ge k+2$ is satisfied. Then, if we let\n$$\nA = a_1 10^{b_1 - b_{i+1} - k - 2} + a_2 10^{b_2 - b_{i+1} - k - 2} + \\dots + a_i 10^{b_i - b_{i+1} - k - 2},\n$$\n$$\nB = a_{i+1} 10^{b_{i+1}} + a_{i+2} 10^{b_{i+2}} + \\dots + a_N 10^{b_N} + \\epsilon,\n$$\nwe see that $A$ is a positive integer and $B$ satisfies $0 < B < 10^{b_i + 1 + k}$.\nWe see that with $A$ and $B$ as above we can write $\\frac{m}{n} = 10^{b_i+1+k+2} A + B$. But then, since we have\n$$\n10^{b_i+1+k+2} A_n < m = 10^{b_i+1+k+2} A_n + Bn < 10^{b_i+1+k+2} A_n + 10^{b_i+1+k+1},\n$$\nwe have to conclude that the $10^{b_i+1+k+1}$-th digit of $m$ is $0$. But this contradicts the assumption that all the digits of $m$ are not zero, and therefore, $b_i - b_{i+1} \\le k+1$ must be satisfied for every $i, 1 \\le i \\le N-1$.\n\nNext assume that $b_N \\ge k+1$ is satisfied. If we let\n$$\nC = a_1 10^{b_1 - k - 1} + a_2 10^{b_2 - k - 1} + \\dots + a_N 10^{b_N - k - 1},\n$$\nthen we see that $C$ is a positive integer and we can write $\\frac{m}{n} = 10^{k+1} C + \\epsilon$. But then we have\n$$\n10^{k+1} C_n \\le m = 10^{k+1} C_n + \\epsilon n < 10^{k+1} C_n + 10^k,\n$$\nwhich implies that the $10^k$-th digit of $m$ is $0$, contradicting the assumption of the problem. Therefore, we must have $b_N \\le k$, and this completes the proof of Lemma.\n\nGoing back to the proof of the claim that $M \\le 939$, we note that the number of $0$ digits in $\\left\\lfloor \\frac{m}{n} \\right\\rfloor$ equals $b_1 + 1 - N$. By summing the corresponding sides of the following $N$ inequalities shown in Lemma above\n$$\nb_1 - b_2 \\le k+1,\\ b_2 - b_3 \\le k+1,\\ \\dots,\\ b_{N-1} - b_N \\le k+1,\\ b_N \\le k,\n$$\nwe obtain $b_1 \\le (k+1)N - 1$, which yields $\\frac{b_1+1}{k+1} \\le N$. Consequently, we get\n$$\n\\begin{aligned}\nb_1 + 1 - N &\\le b_1 + 1 - \\frac{b_1+1}{k+1} \\\\\n&= \\frac{k b_1 - 1}{k+1} + 1 \\le \\frac{k(1000-k)-1}{k+1} + 1 \\\\\n&= 1003 - \\left( (k+1) + \\frac{1002}{k+1} \\right) \\le 1003 - 2\\sqrt{1002} < 940,\n\\end{aligned}\n$$\nwhere we used the fact $(k+1) + \\frac{1002}{k+1} \\ge 2\\sqrt{(k+1) \\cdot \\frac{1002}{k+1}} = 2\\sqrt{1002}$. This shows our claim that $M \\le 939$.\n\nFinally, we show that $M \\ge 939$ by exhibiting a particular choice of $m$ and $n$, satisfying the conditions of the problem, for which $M = 939$. For this purpose, consider\n$$\nm = \\overbrace{211\\cdots1}^{31\\text{ digits}} \\overbrace{1266\\cdots6}^{32\\text{ digits}} \\overbrace{1266\\cdots6}^{32\\text{ digits}} \\overbrace{1266\\cdots6}^{32\\text{ digits}} \\overbrace{1266\\cdots6}^{9\\text{ digits}}, \\quad n = \\overbrace{211\\cdots1}^{31\\text{ digits}}\n$$\nThen, we see that $\\left\\lfloor \\frac{m}{n} \\right\\rfloor = 1 \\overbrace{00\\cdots06}^{32\\text{ digits}} \\overbrace{00\\cdots06}^{32\\text{ digits}} \\overbrace{00\\cdots06}^{32\\text{ digits}} \\overbrace{00\\cdots06}^{32\\text{ digits}} \\overbrace{00\\cdots0}^{9\\text{ digits}}$ and, therefore the number of its $0$-digits is $939$. Thus, we conclude that $939$ is the desired answer to the problem.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34756, "subject": "Mathematics (Multi-modal)", "question": "Let $O$ be the point of intersection of two diagonals of a square $ABCD$. Points $P, Q, R, S$ lie on the line segments $OA, OB, OC, OD$, respectively, and satisfy $OP = 3$, $OQ = 5$, $OR = 4$. Here we denote for a line segment $XY$ its length also by $XY$. If the point of intersection of lines $AB$ and $PQ$, the point of intersection of lines $BC$ and $QR$, and the point of intersection of lines $CD$ and $RS$ are collinear, what is the value of $OS$?", "options": [], "answer": "60/23", "solution": "$\\boxed{\\frac{60}{23}}$\nLet $\\ell$ be the length of a side of square $ABCD$, and $OA = OB = OC = OD = r$, $OP = a$, $OQ = b$, $OR = c$, $OS = d$. Also let $X$, $Y$, $Z$ be the point of intersection of lines $AB$ and $PQ$, lines $BC$ and $QR$, lines $CD$ and $RS$, respectively. Then, by Menelaus' theorem, we have\n$$\n\\frac{OP}{AP} \\cdot \\frac{AX}{BX} \\cdot \\frac{BQ}{OQ} = \\frac{a}{r-a} \\cdot \\frac{BX + \\ell}{BX} \\cdot \\frac{r-b}{b} = 1,\n$$\nfrom which we obtain $BX = \\frac{\\ell a (r-b)}{r(b-a)}$. Similarly, we get $BY = \\frac{\\ell c (r-b)}{r(b-c)}$, $CZ = \\frac{\\ell d (r-c)}{r(c-d)}$. Also, we have $CY = BC + BY = \\ell + \\frac{\\ell c (r-b)}{r(b-c)} = \\frac{\\ell b (r-c)}{r(b-c)}$. Since triangles $YBX$ and $YCZ$ are similar, we get\n$$\n\\begin{align*}\n& BY \\cdot CZ = BX \\cdot CY \\\\\n\\iff & \\frac{\\ell c (r-b)}{r(b-c)} \\cdot \\frac{\\ell d (r-c)}{r((c-d))} = \\frac{\\ell a (r-b)}{r(b-a)} \\cdot \\frac{\\ell b (r-c)}{r(b-c)} \\\\\n\\iff & cd(b-a) = ab(c-d).\n\\end{align*}\n$$\n\nSolving for $d$ from the last equation above, we get $d = \\frac{abc}{ab+bc-ca}$, and substituting the values $a = 3$, $b = 5$, $c = 4$, we get the length of the line segment $OS$ to be equal to $d = \\frac{3 \\cdot 4 \\cdot 5}{3 \\cdot 5 + 5 \\cdot 4 - 4 \\cdot 3} = \\frac{60}{23}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34757, "subject": "Mathematics (Multi-modal)", "question": "Determine all positive integers $n$ for which the following quantity is a positive integer:\n$$\n\\frac{10^n}{n^3 + n^2 + n + 1}\n$$", "options": [], "answer": "3, 7", "solution": "For integers $a$ and $b$ and for a positive integer $c$, let us write $a \\equiv b \\pmod c$ if $a-b$ is divisible by $c$. We shall show that $n=3, 7$ are the answer we seek for the problem. Since\n$$\n\\frac{10^3}{3^3+3^2+3+1} = 25, \\quad \\frac{10^7}{7^3+7^2+7+1} = 25000,\n$$\nwe see that $n=3, 7$ satisfy the condition of the problem. We shall show in the sequel that there are no other values of $n$ satisfying the condition of the problem.\nSince $n^3 + n^2 + n + 1 = (n+1)(n^2 + 1)$, $n+1$ and $n^2 + 1$ do not have prime factors other than 2 and 5 if $n$ satisfies the condition of the problem. Also from the fact that $(n^2 + 1) - (n+1)(n-1) = 2$ it follows that the greatest common divisor $(\\text{gcd})$ of $n^2 + 1$ and $n + 1$ is either 1 or 2. If $n$ is even, then both $n+1$ and $n^2 + 1$ are odd, therefore must be divisible by 5, which contradicts the fact that the $(\\text{gcd}\\{n+1, n^2+1\\}) = 1$ or 2. Hence we can assume in the sequel that $n$ is odd. Then, $n+1$ and $n^2 + 1$ are both even. Furthermore, since $n^2 + 1 \\equiv 2 \\pmod 4$, $n^2 + 1$ is not divisible by 4. In the sequel, we consider various cases separately.\n\n(1) When $n^2 + 1$ is not divisible by 5:\n$n^2 + 1$ is a power of 2, but since it is not divisible by 4, it must be the case that $n^2 + 1 = 2$, i.e., $n=1$. But since $\\frac{10^1}{1^3+1^2+1+1} = \\frac{5}{2}$ is not an integer, we see that $n=1$ does not satisfy the requirement of the problem.\n\n(2) When $n^2 + 1$ is divisible by 5:\nSince $n > 1$ and $n^2 + 1$ is not divisible by 4, we can represent $n+1 = 2^k$, $n^2 + 1 = 2 \\cdot 5^l$, where $k, l$ are positive integers and $k \\ge 2$. If $k=2$, then we must have $n=3$. Let us assume in the sequel that $k \\ge 3$ holds. From $2 \\cdot 5^l = (2^k - 1)^2 + 1$ it follows that $5^l - 1 = 2^k(2^{k-1} - 1)$. Consequently, $5^l - 1$ is a multiple of 8. If $l$ is even, we have $5^l \\equiv 1 \\pmod 8$, while if $l$ is odd, $5^l \\equiv 5 \\pmod 8$; therefore, $l$ must be even. If we put $l=2m$, where $m$ is a positive integer, we get $(5^m - 1)(5^m + 1) = 2^k(2^{k-1} - 1)$. Since $5^m + 1 \\equiv 2 \\pmod 4$, we can write $5^m - 1 = 2^{k-1}a$, where $a$ is a positive odd number. Then, from $2^{k-1}a(2^{k-1}a + 2) = 2^k(2^{k-1} - 1)$, it follows that $a(2^{k-2}a + 1) = 2^{k-1} - 1$ holds. If we let $a \\ge 3$, then we get $a(2^{k-2}a + 1) > 2k - 2 \\cdot 2 + 1 > 2^{k-1} - 1$, which is a contradiction. Thus, we must have $a=1$. In this case, we get $2^{k-1}(2^{k-1} + 2) = 2^k(2^{k-1} - 1)$, which implies that $2^{k-1} = 4$ so that $k=3$. Consequently, we have $n=7$.\n\nIn summarizing above, we conclude that $n=3, 7$ are the numbers that satisfy the condition of the problem.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34758, "subject": "Mathematics (Multi-modal)", "question": "How many non-square numbers are there among the positive factors of the number $6000$?", "options": [], "answer": "34", "solution": "[34]\nSince $6000 = 2^4 3^1 5^3$, positive factors of $6000$ can be written as $2^a 3^b 5^c$ where $a = 0, 1, 2, 3, 4$; $b = 0, 1$; $c = 0, 1, 2, 3$. Therefore, there are altogether $5 \\cdot 2 \\cdot 4 = 40$ positive factors of $6000$. Among them, square numbers arise only when all of $a, b, c$ are even, and this happens only $3 \\cdot 1 \\cdot 2 = 6$ times. Therefore, there are $40 - 6 = 34$ non-square factors of $6000$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34759, "subject": "Mathematics (Multi-modal)", "question": "Consider the following operation you can perform on any positive integer $n$:\nRemove the lowest digit of $n$ and add to the resulting number 4 times the removed digit.\nFor example, if $n = 1234$ we get $123+16 = 139$, and if $n = 7$ then we get $0+28 = 28$.\nIf we start with $25^{2015}$ and keep on applying the operation above 10000 times, what is the number you obtain at the end?", "options": [], "answer": "4", "solution": "For integers $k$, $\\ell$ and a positive integer $m$, let us write $k \\equiv \\ell \\pmod m$ to mean that $k - \\ell$ is divisible by $m$. For a non-negative integer $n$, let $a_n$ be the integer obtained by applying the operation stated for the problem $n$ times starting with the initial number $a_0 = 25^{2015}$. Let for a non-negative integer $n$ $b_n$ be the lowest digit number of $a_n$. Then, we get\n$$\na_{n+1} = \\frac{a_n - b_n}{10} + 4b_n = \\frac{a_n + 39b_n}{10}\n$$\nTherefore, we get $a_{n+1} \\le \\frac{a_n}{10} + \\frac{39}{10} \\cdot 9$, from which it follows that $a_{n+1} - 39 \\le \\frac{a_n - 39}{10}$.\nIt follows further that $a_n - 39 \\le \\frac{a_0 - 39}{10^n}$ is valid for any $n$. We also have\n$$\na_{n+1} = 4a_n - 39 \\cdot \\frac{a_n - b_n}{10} \\equiv 4a_n \\pmod{39}\n$$\nAlso from $a_0 = 25^{2015} < 10^{2015} = 10^{4030}$, we get $a_{10000} - 39 < \\frac{a_0 - 39}{10^{10000}} < 1$, which implies that $a_{10000} \\le 39$. From $a_{10000} = 4^{10000}a_0 = 4^{10000} \\cdot 25^{2015} \\pmod{39}$, we\n\n$$\na_{10000} \\equiv 1 \\pmod{3}\n$$\n$$\na_{10000} \\equiv 4 \\cdot 64^{3333} \\cdot (-1)^{2015} \\equiv 4 \\cdot (-1)^{3333} \\cdot (-1)^{2015} \\equiv 4 \\pmod{13},\n$$\nwhich says that $a_{10000}$ is a positive integer less than or equal to 39 and has the remainder 1 when divided by 3 and remainder 4 when divided by 13. It is easy to check that 4 is the only such integer.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34760, "subject": "Mathematics (Multi-modal)", "question": "Let $\\Gamma$ be the circumcircle of triangle $ABC$. Let $A'$ be the mid-point of arc $BC$ of the circle $\\Gamma$ opposite to $A$, $B'$ be the mid-point of arc $CA$ opposite to $B$ and $C'$ be the mid-point of arc $AB$ opposite to $C$. If the area of the triangle $AB'C'$, $A'BC'$, $A'B'C'$ is $2$, $3$, $4$, respectively, what is the area of triangle $ABC$?", "options": [], "answer": "288/35", "solution": "$$\n\\frac{288}{35}\n$$\nFor a polygon $P$, let us denote by $S(P)$ its area.\nLet $I$ be the incenter of the circle $\\Gamma$. Since $AI$ is the bisector of the angle $\\angle CAB$, $I$ lies on the line segment $AA'$. Similarly, $I$ lies on the line segments $BB'$ and $CC'$. By using the theorem on angles at a point on the circumference of a circle subtended by arcs of the circle, we have\n$$\n\\angle C'B'A = \\angle C'CA = \\angle C'CB = \\angle C'B'B = \\angle C'B'I.\n$$\nSimilarly, we obtain $\\angle B'C'A = \\angle B'C'I$. We then see that the triangles $AB'C'$ and $IB'C'$ are congruent. For the same reason, we have that the triangles $A'BC'$ and $A'IC'$ are congruent and so are the triangles $A'B'C$ and $A'B'I$. From these facts we obtain that $S(IB'C') = 2$, $S(IC'A') = 3$ and $S(IA'B') = 4$, from which it follows that\n$$\n\\begin{aligned}\nAI : IA' &= S(AC'IB') : S(A'C'IB') \\\\ &= (2+2) : (3+4) = 4 : 7.\n\\end{aligned}\n$$\nSimilarly, we obtain\n$$\nBI : IB' = (3+3) : (4+2) = 1 : 1\n$$\n$$\nCI : IC' = (4+4) : (2+3) = 8 : 5.\n$$\nUtilizing these, we obtain\n$$\nS(BIC) = S(B'IC') \\cdot \\frac{BI}{IB'} \\cdot \\frac{CI}{IC'} = 2 \\cdot \\frac{1}{1} \\cdot \\frac{8}{5} = \\frac{16}{5}\n$$\n$$\nS(CIA) = S(C'IA') \\cdot \\frac{CI}{IC'} \\cdot \\frac{AI}{IA'} = 3 \\cdot \\frac{8}{5} \\cdot \\frac{4}{7} = \\frac{96}{35}\n$$\n$$\nS(AIB) = S(A'IB') \\cdot \\frac{AI}{IA'} \\cdot \\frac{BI}{IB'} = 4 \\cdot \\frac{4}{7} \\cdot \\frac{1}{1} = \\frac{16}{7}\n$$\nTherefore, the answer we seek is $\\frac{16}{5} + \\frac{96}{35} + \\frac{16}{7} = \\frac{288}{35}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34761, "subject": "Mathematics (Multi-modal)", "question": "Suppose that three points $A$, $B$, $C$ lie on the circumference of a circle $\\Gamma$. Let $P$ be the point of intersection of the lines tangent to $\\Gamma$ at $B$ and $C$. Suppose that the lines $AB$ and $CP$ are parallel, and that $AB = 3$ and $BP = 4$. Find the length of the line segment $BC$. Here we represent the length of the line segment $XY$ also by $XY$.\n\n![](attached_image_1.png)", "options": [], "answer": "2√3", "solution": "$2\\sqrt{3}$\n\nSince $AB$ and $CP$ are parallel, $\\angle ABC = \\angle BCP$. By a well-known theorem we also see that $\\angle CAB = \\angle PBC$ must hold. Therefore the triangles $ABC$ and $BCP$ are similar, which implies that $AB : BC = BC : CP$. From this it follows that $BC = \\sqrt{AB \\cdot CP}$. Since $P$ is the point of intersection of the tangent lines to the circle $\\Gamma$, we have $CP = BP = 4$, from which it follows that we have $BC = \\sqrt{3} \\cdot 4 = 2\\sqrt{3}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34762, "subject": "Mathematics (Multi-modal)", "question": "When five positive integers $a, b, c, d, e$ satisfy $a < b < c < d < e < a^2 < b^2 < c^2 < d^2 < e^2 < a^3 < b^3 < c^3 < d^3 < e^3$, determine the minimum possible value that the sum $a+b+c+d+e$ can take.", "options": [], "answer": "35", "solution": "From the given inequalities, it follows that $a+4 \\le e$ and $e^2+1 \\le a^3$ must hold. Therefore, we have\n$$(a+4)^2 \\le e^2 \\le a^3 - 1,$$\nfrom which it follows that $(a + 4)^2 \\le a^3 - 1$, i.e.,\n$$\n(a-4)(a^2+3a+4) \\geq 1 > 0.\n$$\nThis means that we must have $a > 4$. Consequently, we have\n$$\na+b+c+d+e > 5+6+7+8+9 = 35.\n$$\nOn the other hand, we see that the choice of $(a, b, c, d, e) = (5, 6, 7, 8, 9)$ satisfies the requirements of the problem. Consequently, we conclude that $35$ is the desired answer.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34763, "subject": "Mathematics (Multi-modal)", "question": "A sequence $\\{a_n \\mid n = 1, 2, \\dots\\}$ of positive integers is called an ascending sequence if $a_n < a_{n+1}$ and $a_{2n} = 2a_n$ are satisfied for every positive integer $n$.\n\n(1) Suppose $\\{a_n\\}$ is an ascending sequence. For any prime $p$ greater than $a_1$, show that a multiple of $p$ appears among the terms of the sequence $\\{a_n\\}$.\n\n(2) Let $p$ be an odd prime. Show that there exists an ascending sequence $\\{a_n\\}$ for which multiples of $p$ never appear among the terms of $\\{a_n\\}$.", "options": [], "answer": "Detailed solution", "solution": "(1) Since $\\{a_n\\}$ is ascending, $a_{n+1} - a_n$ takes a positive integral value for every $n$. So, let $s$ be the minimum value for $a_{n+1} - a_n$ where $n \\ge 1$. Then, $s$ is a positive integer.\nLet $m$ be one positive integer for which $a_{m+1} - a_m = s$, and let $k$ be an integer satisfying $2^k > p$. Using the fact $a_{2n} = 2a_n$ repeatedly, we get\n$$\n\\begin{aligned}\na_{2^k(m+1)} - a_{2^k m} &= 2(a_{2^{k-1}(m+1)} - a_{2^{k-1} m}) = \\dots \\\\\n&= 2^{k-1}(a_{2(m+1)} - a_{2m}) = 2^k(a_{m+1} - a_m) = 2^k s.\n\\end{aligned}\n$$\n\nOn the other hand, since $a_{n+1}-a_n$ takes values greater than or equal to $s$ for every $n$ satisfying $2^k m \\le n \\le 2^k (m+1)-1$, we see that $a_{n+1}-a_n = s$ must hold for all such $n$. This means that the sequence $a_{2^k m}, a_{2^k m+1}, \\dots, a_{2^k (m+1)}$ forms an arithmetic progression with increment $s$. Suppose that for some pair of integers $i, j$ ($0 \\le i < j \\le p-1$), $a_{2^k m+i} \\equiv a_{2^k m+j} \\pmod p$ holds. Then, we see that $a_{2^k m+i} - a_{2^k m+j} = (j-i)s$ must be a multiple of $p$. But this contradicts the fact $p$ is a prime, since both $0 < j-i < p$ and $0 < s \\le a_2 - a_1 = a_1 < p$ hold. Thus, we conclude that the remainders obtained by dividing each of $p$ numbers $a_{2^k m}, a_{2^k m+1}, \\dots, a_{2^k m+p-1}$ by $p$ are all distinct. In particular, there exists a multiple of $p$ among these numbers, and this proves that $\\{a_n\\}$ satisfies the requirement for part (1) of the problem.\n\n(2) For a positive integer $n$, let $k_n$ be a non-negative integer for which $2^{k_n} \\le n < 2^{k_{n+1}}$ holds. Then, we see that $k_n \\le k_{n+1}$ and $k_{2n} = k_n + 1$ are satisfied. Therefore, if we let $a_n = np + 2^{k_n}$, then it is easy to check that the sequence $\\{a_n\\}$ is ascending. Furthermore, since $p$ is an odd prime, $2^{k_n}$ is not a multiple of $p$, and therefore, neither is $a_n$. Thus the sequence $\\{a_n\\}$ satisfies the requirement for part (2) of the problem.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34764, "subject": "Mathematics (Multi-modal)", "question": "Let $ABC$ be a triangle, which is not an isosceles triangle. Let $\\Gamma$ be its circum-circle and $I$ be its in-center. Let $D$ and $E$ be the points of tangency of the in-circle of $ABC$ to the side $AB$ and $AC$, respectively. Let $P$ be the point of intersection, different from $B$, of $\\Gamma$ and the circum-circle of triangle $BEI$, and $Q$ be the point of intersection, different from $C$, of $\\Gamma$ and the circum-circle of triangle $CDI$. Show that four points $D$, $E$, $P$, $Q$ are con-cyclic.", "options": [], "answer": "Detailed solution", "solution": "Let $\\alpha = \\frac{1}{2} \\angle CAB$, $\\beta = \\frac{1}{2} \\angle ABC$, $\\gamma = \\frac{1}{2} \\angle BCA$. Since $P$ lies on the arc $AC$ opposite to $B$, we have $\\angle APB = \\angle ACB = 2\\gamma$. We will show that $\\angle APE = \\alpha + \\gamma$ holds, separating cases depending on the positions of the points involved.\n\n* When $BA < BC$ is satisfied:\nSince we have\n$$ \\angle BPE = 180^\\circ - \\angle BIE = 180^\\circ - \\angle AIB - \\angle AIE = 180^\\circ - (90^\\circ + \\gamma) - (\\beta + \\gamma) = \\alpha - \\gamma, $$\nwe have $\\angle APE = \\angle APB + \\angle BPE = 2\\gamma + (\\alpha - \\gamma) = \\alpha + \\gamma$.\n\n* When $BA > BC$ is satisfied:\nSince we have\n$$ \\angle BPE = 180^\\circ - \\angle BIE = 180^\\circ - \\angle CIB - \\angle CIE = 180^\\circ - (90^\\circ + \\alpha) - (\\beta + \\alpha) = \\gamma - \\alpha, $$\nwe have $\\angle APE = \\angle APB - \\angle BPE = 2\\gamma - (\\gamma - \\alpha) = \\alpha + \\gamma$.\n\nThus, in both cases we have $\\angle APE = \\alpha + \\gamma$. From\n$$\n\\angle APC = 180^\\circ - \\angle ABC = 2\\alpha + 2\\gamma = 2\\angle APE,\n$$\nthe half-line $PE$ bisects the angle $\\angle APC$. Consequently, if we let $M$ be the mid-point of the arc $AC$ (containing the point $B$) of the circle $\\Gamma$, then three points $P$, $E$, $M$ lie on the same straight line. Similarly, if we let $N$ be the mid-point of the arc $AB$ (containing the point $C$) of $\\Gamma$, then three points $Q$, $D$, $N$ lie on the same straight line.\n\nLet $\\Omega$ be the in-circle of the triangle $ABC$, $\\ell_1$ be the line tangent to $\\Gamma$ at $M$, and $\\ell_2$ be the line tangent to $\\Gamma$ at $N$. Then, $\\ell_1$ is parallel to line $AC$ and $\\ell_2$ is parallel to line $AB$. Therefore, if we let $X$ be the point of intersection of $\\ell_1$ and $\\ell_2$, then the bisector of $\\angle BAC$ and the bisector of $\\angle MXN$ are parallel. From $AD = AE$ it follows that line $DE$ is perpendicular to the bisector of $\\angle BAC$, and\n\nfrom $XM = XN$ follows that line $MN$ is perpendicular to the bisector of $\\angle MXN$. Consequently, lines $DE$ and $MN$ are parallel. Let $O$ be the point of intersection of lines $PE$ and $QD$, then $OE:OD:OM:ON$ holds. By the theorem on the power of a point with respect to a circle, we also have $OP \\cdot OM = OQ \\cdot ON$, we obtain $OP \\cdot OE = OQ \\cdot OD$. Points $O$, $E$, $P$ lie on a straight line in this order, and points $O$, $D$, $Q$ lie on a straight line in this order. Hence by the converse part of the theorem on a power of a point with respect to a circle, we conclude that four points $D$, $E$, $P$, $Q$ are con-cyclic.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34765, "subject": "Mathematics (Multi-modal)", "question": "Suppose you want to distribute nine distinct integers greater than or equal to $1$ and less than or equal to $9$ into nine square boxes of a $3 \\times 3$ grid in such a way that the sums of the numbers on each row and each column are all multiples of $3$. How many possible ways of distributing numbers are there to attain this goal? Regard two configurations, for which one can be obtained from rotating the other one or by flipping over the other one, to be distinct in counting the number of possible ways.", "options": [], "answer": "5184", "solution": "Let us replace every number $n$ distributed into a box in the grid by $p = 0, 1, 2$ which satisfies the identity $n \\equiv p \\pmod 3$. The condition that the sum of the numbers on each row and on each column must be a multiple of $3$ does not change after the replacement of the numbers $n$ by $p$. Among the triples $(a, b, c)$ of integers lying in between (and including) $0$ and $2$, only $(0, 0, 0)$, $(1, 1, 1)$, $(2, 2, 2)$ and $(0, 1, 2)$ and its permutation of entries are the ones satisfying the requirement that the sum of the entries of the three numbers equals a multiple of $3$. This means that only possible triplets to satisfy the requirement of the problem after the replacement of $n$ by $p$ are either the ones with all the same entries (such as $(1, 1, 1)$) or the ones with all distinct entries (such as $(0, 1, 2)$).\n\nIf we represent the remainders $0$, $1$, $2$ by the letters $A$, $B$, $C$ (disregarding the order), we see that each of the letters $A$, $B$, $C$ can represent any of the three numbers $0$, $1$, $2$ and the only possible placement of these letters that can satisfy the requirements of the problem must be one of the four placements indicated below:\n![](attached_image_1.png)\n![](attached_image_2.png)\n![](attached_image_3.png)\n![](attached_image_4.png)\nFor each of the placements shown above, there are $3!$ ways of associating $3$ kinds of remainder to each of the three letters, and therefore, there are $4 \\cdot 3! = 24$ possible ways of getting the distinct configurations after the replacement of numbers $n$ by remainders $p$. Furthermore, since there are $3$ possible ways of choosing integers $n$ for each of the possible remainders $p$, there are $(3!)^3 = 216$ ways of inserting integers for each of the $24$ possible configurations of the placements of remainders $p$ considered above.\nTherefore, there are $24 \\cdot 216 = 5184$ ways of distributing numbers into the boxes of the grid, so as to satisfy the requirement of the problem.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34766, "subject": "Mathematics (Multi-modal)", "question": "Let $a$ be a positive integer. Show the following assertion is valid for sufficiently large integer $n$:\nFrom a grid of squares extending to $\\pm\\infty$ in both $x$- and $y$-directions, choose $n$ unit (i.e., $1 \\times 1$) squares and color them black. Let $K$ be the number of $a \\times a$ square blocks which contain exactly $a$ black unit squares. Then the maximum possible value $K$ can take is $a(n+1-a)$.\nHere, by the statement \"An assertion is valid for sufficiently large $n$\", we mean that there exists a positive integer $N$ for which the assertion is valid for all $n \\ge N$.", "options": [], "answer": "Detailed solution", "solution": "For a pair of integers $u, v$ and a positive integer $m$ we write $u \\equiv v \\pmod m$ to mean that $u - v$ is divisible by $m$.\n\nLet us call an $a \\times a$ square box of the given grid a region. When $n \\ge a$, if we color black all of $n \\times 1$ square boxes stacked consecutively on a vertical strip, the rectangular patch of the grid consisting of $n \\times (2a-1)$ squares formed by the $n$ black $1 \\times 1$ vertically stacked boxes and their $2a-2$ horizontal translates ($(1, 2, \\dots, a-1)$ to the left and $(1, 2, \\dots, a-1)$ to the right) has the property that any region contained in the interior of the patch satisfies the requirement of the problem. So, we see that $K = a(n+1-a)$ is satisfied.\n\nNext, we show that for all sufficiently large $n$, we get $K \\le a(n+1-a)$. For a region $R$, having $x$ black $1 \\times 1$ squares, define\n$$\n\\mathcal{L}(R) = \\begin{cases} x, & \\text{if } x \\le a-1, \\\\ x-a, & \\text{if } x \\ge a. \\end{cases}\n$$\nand call it a loss for $R$. There are $a^2 n$ pairings of a black square and a region containing it. Let $L = \\sum \\mathcal{L}(R)$, where the sum is taken over all regions containing black boxes. For $K$ regions $R$ that satisfy the requirement of the problem $\\mathcal{L}(R) = 0$, while other regions $R'$ appearing as a summand for the definition of $L$ above, contain more black squares than $\\mathcal{L}(R')$, we have $aK \\le a^2 n - L$. So, it is sufficient to show that there exists an $N$ such that if $n \\ge N$, then $L \\ge a^2(a-1)$.\n\nSo, let $N = (a^2(a-1) - a)^2 + 1$. We will show that if $n \\ge N$, then $L \\ge a^2(a-1)$ holds. In the sequel, let us call contiguous $a$ rows of squares in the grid a horizontal line and contiguous $a$ columns of squares in the grid a vertical line. Then we see that either $a^2(a-1)$ or more horizontal lines or $a^2(a-1)$ or more vertical lines will contain at least one black square. Therefore, if we assume that $L < a^2(a-1)$ holds, then at least one of the horizontal lines in the former case, or at least one vertical in the latter case must have the property that $\\mathcal{L}(R) = 0$ must hold for any region $R$ contained in it. (Note that by definition $\\mathcal{L}(R) = 0$ if the region $R$ does not contain any black square.) By symmetry, we may and do assume that such a horizontal line exists. Take one such horizontal line and call the lowest row the 0-th row and the row $y$ steps above the 0-th row the $y$-th row, where $y$ is a positive integer. Let $A$ be a black box in this horizontal line lying on the left-most position. Among the regions contained in this horizontal line, those containing $A$ in the rightmost column must contain $a$ black squares, we see that every square in the column where $A$ is located must be black-colored. Furthermore, among regions contained in this horizontal line and containing $A$ in their left-most column, all the $a-1$ columns lying to the right of the column containing $A$ do not contain any black squares, since the column containing $A$ has a black square. (Since $A$ is the black square having the left-most position in the horizontal line, all of the $a-1$ columns lying to the left of the column containing $A$ contain no black squares either.)\n\nLet us next show that for any vertical line containing $A$, the sum of the $\\mathcal{L}(R)$ for all the regions $R$ contained inside of the vertical line is at least $a(a-1)$. Fix one such vertical line, and let $R_y$ be a region contained in the vertical line and its lowermost row is the $y$-th row. Let $f(y) = \\mathcal{L}(R_y)$ and denote by $g(y)$ the number of black squares contained in $R_y$. Then we have $f(y) \\equiv g(y) \\pmod a$. Suppose $(as+t)$-th row ($0 \\le t < s$) is the uppermost row containing a black square, and $b$ is the number of black squares lying on and above the 0-th row. If we denote by $c_l$ for $l=1, 2, \\dots, a$ the remainder obtained when $\\sum_{i=0}^{s+1} f(ai + l)$ is divided by $a$, then we have\n$$\nc_l \\equiv \\sum_{i=0}^{s+1} g(ai+l) \\equiv b-l \\pmod a,\n$$\nwhich shows that $\\{c_1, c_2, \\dots, c_a\\}$ is a permutation of $\\{0, 1, 2, \\dots, a-1\\}$. Therefore, we have\n$$\n\\sum_{y=1}^{as+t} f(y) \\ge \\sum_{l=1}^{a} c_l = \\frac{a(a-1)}{2}.\n$$\nSimilarly, if we add the values of $f(y)$ for $y < 0$, we get the sum to be $\\ge \\frac{a(a-1)}{2}$ as well. Therefore, the sum taken over all regions lying inside of the vertical is greater than or equal to $a(a-1)$.\n\nSince there are $a$ vertical lines containing $A$ we conclude that $L \\ge a^2(a-1)$ and therefore, $K \\le a(n+1-a)$ must hold, and this completes the proof.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34767, "subject": "Mathematics (Multi-modal)", "question": "Reduce the following expression into the form $a + b\\sqrt{2}$, where both $a$ and $b$ are rational numbers:\n$$\n\\frac{(1 \\times 4 + \\sqrt{2})(2 \\times 5 + \\sqrt{2})\\cdots(10 \\times 13 + \\sqrt{2})}{(2 \\times 2 - 2)(3 \\times 3 - 2)\\cdots(11 \\times 11 - 2)}\n$$", "options": [], "answer": "11 + 5√2", "solution": "$\\boxed{11+5\\sqrt{2}}$\n$$\n\\text{For } k = 1, 2, \\dots, 10, \\text{ we have}\n$$\n\\frac{k(k+3)+\\sqrt{2}}{(k+1)^2-2} = \\frac{(k+1+\\sqrt{2})(k+2-\\sqrt{2})}{(k+1+\\sqrt{2})(k+1-\\sqrt{2})} = \\frac{k+2-\\sqrt{2}}{k+1-\\sqrt{2}}\n$$\n\\text{Therefore, we obtain}\n$$\n\\begin{aligned}\n\\frac{(1 \\times 4 + \\sqrt{2})(2 \\times 5 + \\sqrt{2}) \\cdots (10 \\times 13 + \\sqrt{2})}{(2 \\times 2 - 2)(3 \\times 3 - 2) \\cdots (11 \\times 11 - 2)} &= \\frac{3 - \\sqrt{2}}{2 - \\sqrt{2}} \\cdot \\frac{4 - \\sqrt{2}}{3 - \\sqrt{2}} \\cdots \\frac{12 - \\sqrt{2}}{11 - \\sqrt{2}} \\\\\n&= \\frac{12 - \\sqrt{2}}{2 - \\sqrt{2}} = 11 + 5\\sqrt{2}\n\\end{aligned}\n$$\n\\text{for the desired answer.}", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 34768, "subject": "Mathematics (Multi-modal)", "question": "Suppose positive integers $a$, $b$, $c$ satisfy the following four conditions:\n$\\bullet$ $\\text{gcd}\\{a, b, c\\} = 1$.\n$\\text{gcd}(a, b + c) > 1$.\n$\\text{gcd}(b, c + a) > 1$.\n$\\text{gcd}(c, a + b) > 1$.\nHere we denote by $\\text{gcd}\\{ \\}$ the greatest common divisor of the numbers in $\\{ \\}$.\nDetermine the minimum possible value the sum $a + b + c$ can take.", "options": [], "answer": "30", "solution": "$\\boxed{30}$\n\nLet $g_1 = \\text{gcd}\\{a, b+c\\}$, $g_2 = \\text{gcd}\\{b, c+a\\}$, $g_3 = \\text{gcd}\\{c, a+b\\}$. If there exists a prime $p$ which divides both $g_1$ and $g_2$, then $p$ must divide both $a$ and $b$. Furthermore, since $p$ divides $b+c$ as well, $c$ must be divisible by $p$, but this contradicts the assumption that $\\text{gcd}\\{a, b, c\\} = 1$. Therefore, we conclude that $g_1$ and $g_2$ are relatively prime. Similarly, $g_2$ and $g_3$ are relatively prime and so are $g_3$ and $g_1$. Combining these facts with the assumption that $g_1$, $g_2$, $g_3$ are all greater than $1$, we get $g_1g_2g_3 \\ge 2 \\cdot 3 \\cdot 5 = 30$.\n\nFurthermore, since $g_1$ divides both $a$ and $b+c$, it divides $a+b+c$ as well. Similarly, both $g_2$ and $g_3$ divide $a+b+c$. Therefore, we conclude that the product $g_1g_2g_3$ divides $a+b+c$ also, and this implies that $a+b+c \\ge g_1g_2g_3 \\ge 30$ must hold.\n\nOn the other hand, we see that the triple $(a, b, c) = (2, 3, 25)$ satisfies all the conditions of the problem and that $a + b + c = 30$ is satisfied. Therefore, we conclude that $30$ is the minimum value we seek.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34769, "subject": "Mathematics (Multi-modal)", "question": "Let $l$ be a straight line lying on the $xy$-plane. For given $20 \\times 15$ points $(m, n) : (m = 1, 2, \\dots, 20, n = 1, 2, \\dots, 15)$ on the $xy$-plane, there are $222$ straight lines parallel to the line $l$ ($l$ itself may be considered as one of those parallel lines) and going through at least one of these points. How many straight lines are there which go through at least one of these points and are perpendicular to $l$?", "options": [], "answer": "212", "solution": "212\nLet us call a point $(m, n)$ a lattice point if both $m$ and $n$ are integers. Call a lattice point $(m, n)$ a good point if it lies in the portion of the $xy$-plane given by $1 \\le x \\le 20$, $1 \\le y \\le 15$.\nIf a straight line $\\ell$ lying on the $xy$-plane is parallel either to the $x$-axis or to the $y$-axis, then there are only $15$ (or $20$) straight lines parallel to $\\ell$ and going through a good point. Therefore, the slope of the line $\\ell$ satisfying the condition of the problem must be a real number not equal to $0$. Next, suppose the slope of the line $\\ell$ is an irrational number. Then, any straight line parallel to $\\ell$ can go through at most one good point, since a line connecting any pair of lattice points must either be parallel to the $y$-axis or have a rational slope. Therefore, there are $300$ straight lines parallel to $\\ell$, going through one good point, which contradicts the assumption of the problem. Thus, we can assume that the line $\\ell$ satisfying the assumption of the problem has the slope of the form $\\pm \\frac{b}{a}$, where $a$, $b$ are integers not equal to $0$ and are relatively prime.\nIf there are lattice points on the line with slope $\\pm \\frac{b}{a}$, then they are located on the line with gaps $(a, b)$, since $a$ and $b$ are relatively prime. So, if either $|a| > 20$ or $|b| > 15$, then all the lines parallel to $\\ell$ going through different good points are distinct. Since there are $300$ good points, this contradicts the assumption. Therefore, we must have both $|a| \\le 20$ and $|b| \\le 15$. Let us first consider the case where $a, b > 0$. In this case no pair of lattice points from the set $\\{(m', n') \\mid \\text{either } 1 \\le m' \\le a \\text{ or } 1 \\le n' \\le b \\}$ can lie on the same straight line parallel to line $\\ell$, since on such lines lattice points are located with gaps $(a, b)$. On the other hand for any lattice point $(m'', n'')$ from the set $\\{(m'', n'') \\mid a < m'' \\le 20, \\text{ and } b < n'' \\le 15\\}$ the straight line through this point and parallel to line $\\ell$ must go through a lattice point $(m', n')$ satisfying either $1 \\le m' \\le a$ or $1 \\le n' \\le b$. (See the diagram below.) Consequently, we see that there are exactly $20 \\times 15 - (20 - |a|)(15 - |b|)$ straight lines parallel to $\\ell$ going through a good point. When $a$ or $b$ or both are negative, we can argue in the same way to conclude that the number of lines satisfying the requirement of the problem is $20 \\times 15 - (20 - |a|)(15 - |b|)$.\n![](attached_image_1.png)\n($k$ is a positive integer)\n\nBy assumption, we have $20 \\times 15 - (20 - |a|)(15 - |b|) = 222$, from which we obtain\n$(20 - |a|)(15 - |b|) = 78$. There is only one way, i.e., $78 = 6 \\times 13$, to express the\nnumber $78$ as the product of a positive integer less than equal to $20$ and a positive\ninteger less than or equal to $15$. If we set $20 - |a| = 6$ and $15 - |b| = 13$, then we\nget $|a| = 14$ and $|b| = 2$, which will contradict the assumption that $a$ and $b$ are\nrelatively prime. So, we must have $20 - |a| = 13$ and $15 - |b| = 6$, which yield\n$|a| = 7$ and $|b| = 9$.\nThe slope of a line perpendicular to line $l$ is $\\frac{-a}{b}$. Note that both of the conditions $|b| \\le 20$ and $|-a| \\le 15$ are satisfied. Then we can check that exactly same arguments applied for lines parallel to $l$ as above can be applied to the lines perpendicular to $l$. Thus we can conclude that the number we seek for the problem is\n$$\n20 \\times 15 - (20 - |b|)(15 - |-a|) = 222.\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34770, "subject": "Mathematics (Multi-modal)", "question": "Five points $A$, $B$, $C$, $D$, $E$, $P$ lie on a plane. Points $A$, $B$, $C$, $D$ lie on a straight line in this order. Furthermore, it is known that $AB = BC = CD = 6$, $PB = 5$ and $PC = 7$ are satisfied. Here we denote the length of the line segment $XY$ also by $XY$. Let $Q$ be the point of intersection, different from $P$, of the circumcircle of the triangle $AC$ and the circumcircle of the triangle $PBD$. Determine the length of the line segment $PQ$.", "options": [], "answer": "55√7/14", "solution": "$\\frac{55\\sqrt{7}}{14}$\n\nLet $M$ be the point of intersection of line segments $BC$ and $PQ$. By using the well-known theorem on the power of a point with respect to a circle for the point $M$ and the two given circles, we get $AM \\cdot CM = PM \\cdot QM = DM \\cdot BM$. Combining this with the fact $AM + CM = BM + DM = 12$, we obtain $(12 - CM) \\cdot CM = (12 - BM) \\cdot BM$, which reduces to\n$$\n(BM - CM)(BM + CM - 12) = 0.\n$$\nSince $BM + CM = BC \\neq 12$, we get $BM = CM$, i.e., $M$ is the mid-point of the line segment $BC$. Therefore, we have\n$$\nPM = \\sqrt{\\frac{PB^2 + PC^2}{2} - BM^2} = \\sqrt{\\frac{5^2 + 7^2}{2} - 3^2} = 2\\sqrt{7},\n$$\nfrom which we obtain\n$$\nQM = \\frac{AM \\cdot CM}{PM} = \\frac{9 \\cdot 3}{2\\sqrt{7}} = \\frac{27\\sqrt{7}}{14}.\n$$\nConsequently, we obtain\n$$\nPQ = PM + QM = 2\\sqrt{7} + \\frac{27\\sqrt{7}}{14} = \\frac{55\\sqrt{7}}{14}.\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34771, "subject": "Mathematics (Multi-modal)", "question": "There are $4030$ numbers consisting of two of each number lying in between (and including) $1$ and $2015$. Suppose we line up these numbers from left to right. An ordered sequence of $2015$ numbers chosen from this line-up of $4030$ numbers and considered with the order inherited from the original line-up is called a *half-sequence*. What is the largest possible number of distinct half-sequences? Regard two half-sequences to be the same if they represent the same sequence of integers, even if they may come from different portions of the original line-up.", "options": [], "answer": "binom(4030,2015) - 2015", "solution": "$\\binom{4030}{2015} - 2015$\n\nIn the following, by a subsequence of the given sequence of positive integers we mean a sequence obtained by choosing entries from the original sequence and retaining the order of the choices.\n\nThere are $\\binom{4030}{2015}$ ways of choosing $2015$ numbers from the given sequence. We assume that the given sequence is lined up from left to right, and we define a new sequence $f(1), f(2), \\dots, f(4030)$ by setting $f(i) = j$ and $f(j) = i$ for $i < j$ if the number on the $i$-th spot from the left equals the number on the $j$-th spot from the left in the original sequence. If there exists an $i$ for which $0 < f(i) - i < 2015$, then there must exist at least $2015$ numbers occupying $1$st, $2$nd $\\dots$, $(i-1)$-th spots from the left or $(f(i)+1)$-th, $(f(i)+2)$-th, $\\dots$, $4030$-th spots from the left on the original sequence, and therefore, there are at least $2015$ ways of choosing $2014$ numbers. Suppose we consider one such sequence of $2014$ numbers, and we insert the number lying at the $i$-th spot from left in the original sequence to this sequence at the correct spot to get another subsequence consisting of $2015$ elements and do the same by inserting the number lying at the $f(i)$-th spot from left in the original sequence to the sequence at the correct spot to obtain two half-sequences. But it is clear these half-sequences are identical. Therefore, the number of distinct half-sequences is at most $\\binom{4030}{2015} - 2015$ if there exists $i$ satisfying $0 < f(i) - i < 2015$. The same conclusion holds if there exists $i$ satisfying $0 < i - f(i) < 2015$.\n\nIn the sequel, we assume that for each $i$, $1 \\le i \\le 4030$, $|f(i) - i| \\ge 2015$ is satisfied. Then, we have $f(2015 + i) \\le i$ ($i = 1, 2, \\dots, 2015$), from which we obtain inductively $f(2016) = 1$, $f(2017) = 2$, $\\dots$, $f(4030) = 2015$. By symmetry, we may assume that the original sequence is $1, 2, 3, \\dots, 2015, 1, 2, 3, \\dots, 2015$. Call this sequence $A$. Now suppose two distinct subsequences formed by selecting $2015$ elements from $A$ give the same half-sequence. Select one integer lying on the same spot as an entry of half-sequence but chosen from different location from $A$, and call this number $n$. If this $n$ was chosen from the left-half of $A$, then the entries in the half-sequence lying to the left of $n$ must form a subsequence of $1, 2, \\dots, n-1$, and the entries in the half-sequence lying to the right form a subsequence of $n+1, n+2, \\dots, 2015$. Consequently, we conclude that this half-sequence must be $1, 2, \\dots, 2015$. On the other hand, suppose we consider the way of choosing $2015$ elements from $A$ to form the half-sequence $1, 2, \\dots, 2015$. If $n$ is chosen from the left-half of $A$, then we must choose any number less than $n$ also from the left-half of $A$, and if $n$ is chosen from the right-half of $A$, then any number greater than $n$ must also be chosen from the right half of $A$. Therefore, there are $2016$ ways of choosing the half-sequence $1, 2, \\dots, 2015$ from $A$, and we conclude that the number of distinct half-sequences is $\\binom{4030}{2015} - 1 = 4030C_{2015-1}$, which gives the answer we seek.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34772, "subject": "Mathematics (Multi-modal)", "question": "Find all the triplets $(x, y, z)$ of positive integers satisfying the following conditions:\n$$\nx + xy + xyz = 31, \\quad x < y < z.\n$$", "options": [], "answer": "(1, 2, 14), (1, 3, 9)", "solution": "$(1, 2, 14), (1, 3, 9)$\n\nRewriting the given equation, we get $x(1 + y + yz) = 31$. Since $31$ is a prime, and since $1 + y + yz > 1$, we must have $x = 1$, $1 + y + yz = 31$. Thus, we obtain $y(1 + z) = 30$. From the given inequality, we must have $1 < y < z$ and hence, we conclude that the desired answer is $(x, y, z) = (1, 2, 14), (1, 3, 9)$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34773, "subject": "Mathematics (Multi-modal)", "question": "Find all triplets $(a, b, c)$ of positive integers satisfying the following identity:\n$$\na^2 + b + 3 = (b^2 - c^2)^2.\n$$", "options": [], "answer": "(2, 2, 1)", "solution": "Let $N = |b^2 - c^2|$. Then, from $N^2 = a^2 + b + 3 \\ge 1 + 1 + 3 = 5$ it follows that $N \\ge 3$. In particular, since $b \\ne c$, we get\n$$\nN = |b + c||b - c| \\ge (b + 1) \\cdot 1 = b + 1,\n$$\nso we have $b \\le N - 1$. Since from $a^2 < N^2$ we have $a \\le N - 1$, we get\n$$\n(1) \\quad 0 = N^2 - (a^2 + b + 3) \\ge N^2 - (N - 1)^2 - b - 3 = 2N - b - 4 \\ge N - 3,\n$$\nshowing $N \\le 3$. As we have seen in the beginning that $N \\le 3$, we get $N = 3$. But, then we have = throughout the inequalities (1), and thus, we get $a = N - 1 = 2$, $b = N - 1 = 2$, which, in turn implies $9 = N^2 = |b^2 - c^2|^2 = (c^2 - 4)^2$ holds. Thus, we have $c^2 = 1, 7$. Since $c$ is a positive integer, we get $c = 1$. Therefore, the answer we seek for the problem is $(a, b, c) = (2, 2, 1)$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34774, "subject": "Mathematics (Multi-modal)", "question": "Suppose $D$, $E$ are points on the sides $AB$, $AC$, respectively, of a triangle $ABC$, and the following are known: $AB = 6$, $AC = 9$, $AD = 4$, $AE = 6$. Suppose, furthermore, the circum-circle of the triangle $ADE$ intersects the side $BC$ at two points $F$, $G$ and the points $B$, $F$, $G$, $C$ are lined up in this order. If the point of intersection of the lines $DF$ and $EG$ lies on the circum-circle of the triangle $ABC$, find the value of $\\frac{FG}{BC}$. Here $XY$ denotes the length of the line segment $XY$ as well.", "options": [], "answer": "(-3 + sqrt(33))/6", "solution": "$$\n\\frac{-3 + \\sqrt{33}}{6}\n$$\nLet $H$ be the point of intersection of the lines $DF$ and $EG$, and let $I'$, $I$ be the point of intersection of the lines $AH$ and $DE$, $BC$, respectively. Let $H'$ be the point of intersection, different from $A$, of the circum-circle of the triangle $ADE$ and the line $AH$. Let $x$ be the answer to the problem we seek. Then, we have $FG : BC = x : 1$. From $AD : AB = AE : AC$ it follows that $DE // BC$, and we get $IF : IG = I'D : I'E = IB : IC$. Consequently, we have\n$$\nIF : IB = IG : IC = FG : BC = x : 1 \\quad \\text{and hence} \\quad IF \\cdot IG : IB \\cdot IC = x^2 : 1.\n$$\nBy the theorem on the power of a point with respect a circle, we have $IA \\cdot IH' = IF \\cdot IG$, $IA \\cdot IH = IB \\cdot IC$. Combining with the result above, we conclude that $IH' : IH = x^2 : 1$.\nIf we consider the similarity map which expands the triangle $ADE$ into the triangle $ABC$ with the similarity ratio $3/2$, we see that the point $H'$ is mapped onto the point $H$ under this similarity mapping. Since $I'$ is mapped onto $I$ under this similarity map, we get $AH' : AH = AI' : AI = 2 : 3$. Combining this with the fact $IH' : IH = x^2 : 1$, we obtain\n$$\nAI' : I'I : IH' : H'H = 4 - 6x^2 : 2 - 3x^2 : 3x^2 : 3 - 3x^2.\n$$\nConsequently, we obtain $FG : DE = HI : HI' = 3 : 5 - 3x^2$ and combining this with $DE : BC = 2 : 3$, we obtain $FG : BC = 2 : 5 - 3x^2$. Since $FG : BC = x : 1$, we obtain $3x^3 - 5x^2 + 2 = 0$. From the fact that $B \\neq F$, we have $x \\neq 1$, so from $3x^3 - 5x + 2 = (x-1)(3x^2 + 3x - 2)$ it follows that $3x^2 + 3x - 2 = 0$. Solving this equation and noting that $x > 0$, we obtain $x = \\frac{-3 + \\sqrt{33}}{6}$ as the desired answer.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34775, "subject": "Mathematics (Multi-modal)", "question": "Let $S = \\{1, 2, \\dots, 6\\}$. Let $\\mathcal{S}$ be the set of all subsets of $S$. How many mappings $F: \\mathcal{S} \\to \\mathcal{S}$ are there that satisfy the following condition:\n$$\nF(F(A) \\cup B) = A \\cap F(B) \\text{ for any pair of subsets of } S.\n$$", "options": [], "answer": "499", "solution": "Let us fix $C \\subset S$ and consider the situation where $F(\\emptyset) = C$. If we let $A = \\emptyset$ in the given identity, we get $F(C \\cup B) = \\emptyset$ for any set $B$ in $\\mathfrak{S}$. So, if $D \\supset C$ then we have $F(D) = \\emptyset$. Therefore, if we let $A = C$, we get $F(B) = C \\cap F(B)$, which implies that for any $B$ in $\\mathfrak{S}$, $F(B) \\subset C$ holds. Also, by letting $B = \\emptyset$ in the given identity, we get $F(F(D)) = D \\cap C$ for any set $D$ in $\\mathfrak{S}$. If we substitute $D = F(A)$ in this identity, we obtain $F(F(F(A))) = F(A) \\cap C = F(A)$. We also get from $F(F(A)) = A \\cap C$, $F(F(F(A))) = F(A \\cap C)$, and therefore, we have $F(A) = F(A \\cap C)$ for any $A$. Thus, we conclude that the mapping $F: \\mathfrak{S} \\to \\mathfrak{S}$ is determined completely by how the subsets of $C$ are mapped. Conversely, if for any pair of subsets $X, Y$ of $C$ condition\n$$\n(1) \\qquad F(F(X) \\cup Y) = X \\cap F(Y)\n$$\nis satisfied, and for any $A \\in \\mathfrak{S}$ $F(A) = F(A \\cap C) \\subset C$, then by letting $X = A \\cap C$ and $Y = B \\cap C$, we get\n$$\n\\begin{aligned}\nF(F(A) \\cup B) &= F((F(X) \\cup B) \\cap C) = F(F(X) \\cup Y) \\\\\n&= X \\cap F(Y) = (A \\cap C) \\cap F(B) = A \\cap F(B),\n\\end{aligned}\n$$\nwhich shows that the identity given for the problem is satisfied. Consequently, it is sufficient to consider the mapping $F: \\mathfrak{S}_C \\to \\mathfrak{S}_C$ satisfying the condition (1), where by $\\mathfrak{S}_C$ we mean the set of all subsets of $C$.\nNow, if we consider such a mapping $F: \\mathfrak{S}_C \\to \\mathfrak{S}_C$, then we have $F(F(X)) = X$ so that the mapping $F$ is bijective, and if we replace $X$ by $F(X)$ in (1), then we get\n$$\n(2) \\qquad F(X \\cup Y) = F(X) \\cap F(Y).\n$$\nConversely, if both $F(F(X)) = X$ and $F(X \\cup Y) = F(X) \\cap F(Y)$ are satisfied, then by replacing $X$ in (2) by $F(X)$, we get back the condition (1). So, from now on we consider mapping $F: \\mathfrak{S}_C \\to \\mathfrak{S}_C$ satisfying the two conditions $F(F(X)) = X$ and $F(X \\cup Y) = F(X) \\cap F(Y)$.\nSuppose now $X \\subset Y$ is satisfied, then we get $F(X) \\supset F(Y)$, since $F(Y) = F(X) \\cap F(Y)$. By the injectivity of $F$, we get, in particular, that if $X \\subset Y$ but $X \\neq Y$, then we get $F(X) \\supset F(Y)$ but $F(X) \\neq F(Y)$. So, if we consider the process of transferring elements from $C \\cap X^c$ to $X$ one element at every step starting with $X = \\emptyset$, then the number of elements in the set $F(X)$ decreases strictly. Since we can repeat this process exactly $t$ times, where $t$ is the number of elements of $C$, every element $x \\in C$, the number of elements in the set $F(\\{x\\})$ is larger than or equal to the number of elements in $C-1$. But since $F$ is injective, this number cannot be equal to the number of elements in $C$. Thus, we conclude that for each $x \\in C$, the number of elements in the set $F(x)$ equals the number of elements of $C-1$.\nConsequently, there must exist in $C$ exactly one element, which does not belong to $F(\\{x\\})$. Call this element $f(x)$. Then, the mapping $f: C \\to C$ is injective since $F$ is and surjective since $C$ is a finite set.\nSince $F(F(X)) = X$ for every $X$, by letting $X = \\emptyset$, we get $F(C) = \\emptyset$ and if we let $X = \\{x\\}$, $Y = \\{f(x)\\}$, then the left hand side becomes $\\emptyset$, and therefore, we have $x \\notin C \\cap \\{f(f(x))\\}^c$, from which it follows that $f(f(x)) = x$ must be valid. When $X = \\{x_1, \\dots, x_k\\}$, if we keep on applying (2), we get $F(X) = C \\cap \\{f(x_1), \\dots, f(x_k)\\}^c$, and conversely, $F$ defined by this formula satisfies the condition $F(F(X))$ and the property (2). Therefore, we can conclude that the number of functions $F$ satisfying $F(\\emptyset) = C$ equals the number of functions $f: C \\to C$ satisfying the property $f(f(x)) = x$.\nThe number of such functions $f: C \\to C$ coincides with the number of ways of specifying pairs $x, y$ satisfying the property $f(x) = y$, $f(y) = x$ without repetition. In fact, for $z \\in C$ left out of the pairing mentioned above, it is sufficient to let $f(z) = z$, and conversely, from every $f$ satisfying the property mentioned above, the pairing mentioned above can be achieved.\nAt this point, we just ignore the specification of $C$ and consider the way of counting the mappings $F$ satisfying the conditions stated above. Then, since it is not necessary to specify $C$ to start off, we can start off by forming some pairs of elements of $S$, and decide whether to make the remaining elements of $S$ to become elements of $C$ or not. To decide the number of ways of forming $k$ pairs of elements from the set containing $2k$ elements, we can line up $2k$ elements from left to right and among the elements having no partner, pick the one having the leftmost position and decide its partner and keep on doing the same until every one of $2k$ elements has a partner. Then, the number of ways this can be done is\n\n$(2k-1)(2k-3)\\dots 1$. Therefore, the answer we seek for the problem is\n$$\n\\binom{6}{0} 2^6 + \\binom{6}{2} 2^4 + \\binom{6}{4} 3 \\cdot 2^2 + \\binom{6}{6} 5 \\cdot 3 = 64 + 240 + 180 + 15 = 499\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34776, "subject": "Mathematics (Multi-modal)", "question": "Let $n$ be an odd integer greater than or equal to $3$. Suppose you play the following game using an $n \\times n$ grid made up of $n^2$ $1 \\times 1$ squares. The game consists of $n^2$ turns, and at each turn the following actions must be performed in the order specified:\n* Choose one empty square and insert one positive integer greater than or equal to $1$ and less than or equal to $n^2$. Throughout the game, any integer can be used only once.\n* You gain $1$ point if the sum of numbers written into the squares lying on the same row as the square you chose is a multiple of $n$, and the same rule applies for the column (you get $2$ points if both row sum and column sum are multiples of $n$.)\n\nFind the maximum possible value for the total sum of the points you gain by the end of the game.", "options": [], "answer": "n(n+1)", "solution": "It is clear that whether the number inserted at every turn matters for the point(s) earned or not depends only on the remainder obtained when that number is divided by $n$. Therefore, we may assume that every integer $k$ satisfying $0 \\le k \\le n - 1$ will be inserted into squares exactly $n$ times.\n\nLet us show that the value we seek as the answer to the problem is $n(n+1)$. We first exhibit a method of inserting numbers for which the total number of points earned at the end of the game is exactly $n(n+1)$. This method tells us to insert into the square located at the $i$-th row from the top and $j$-th column from the left the number obtained as the remainder when $i+j$ is divided by $n$. If $0$ is inserted $n$ times, $1$ is inserted $n$ times, $n-1$ is inserted $n$ times, $2$ is inserted $n$ times, $n-2$ is inserted $n$ times, ..., then, whenever $0, n-1, n-2, \\dots, \\frac{n+1}{2}$ are inserted, $2$ points are earned so that the total of $n(n+1)$ points will be earned at the end.\n\nNext, let us show that the total number of points earned by the end of the game can be at most $n(n+1)$. Let $A_0 = B_0 = 0$. For any $i$ satisfying $1 \\le i \\le n^2$, let $A_i = A_{i-1} + 1$ if the sum of the numbers written into the squares lying on the same row of the grid as the square into which a number is inserted at the $i$-th turn (which is included in the sum) is a multiple of $n$, and $A_i = A_{i-1}$ otherwise. We define $B_i$'s for columns in the same way. Then, the total sum of the points earned at the end of the game is given by $A_{n^2} + B_{n^2}$.\n\nLet us consider the maximum value that $A_{n^2}$ can take. For every $i$ satisfying $0 \\le i \\le n^2$, let us denote by $C_i$ the number of columns for which the column-sum of the numbers inserted into the squares is not a multiple of $n$ right after the end of $i$-th turn. We also let $C_0 = 0$. Then, we see that $A_i + \\frac{1}{2}C_i$ increases, in comparison with $A_{i-1} + \\frac{1}{2}C_{i-1}$ at most by $1$ if $0$ is the number inserted at the $i$-th turn, and at most by $\\frac{1}{2}$ otherwise. Since $0$ is inserted $n$ times and non-zero $n$ is inserted $n^2 - n = n(n - 1)$ times, we see that\n$$\nA_{n^2} + \\frac{1}{2}C_{n^2} \\le n + \\frac{n(n-1)}{2} = \\frac{n(n+1)}{2}\n$$\nmust hold. Since $C_{n^2}$ is a non-negative integer, we conclude that $A_{n^2} \\le \\frac{n(n+1)}{2}$ must be satisfied. By the same argument we obtain $B_{n^2} \\le \\frac{n(n+1)}{2}$. Therefore, the maximum of the total points we obtain at the end of the game is $n(n+1)$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34777, "subject": "Mathematics (Multi-modal)", "question": "Call a positive integer a good number if its every digit is a prime number. Find all the good numbers having three digits and with the property that their squares are good numbers of five digits.", "options": [], "answer": "235", "solution": "235\n\nLet $n$ be a three-digit good number, then we can write $n = 100a + 10b + c$, where $a, b, c$ are 1-digit primes. If $n^2$ is a good number with 5 digits, we must have $n^2 < 10^5$, from which it follows that we have $n < 320$. Since $10b + c \\ge 22$, we conclude that $a = 2$ must hold. When $c = 2, 3, 5, 7$, the lowest digit of $n^2$ is 4, 9, 5, 9, respectively. If $n^2$ is also a good number, the lowest digit of $n^2$ must be 5, which, in turn, implies that $c = 5$ must hold.\n\nSince $a = 2$ and $c = 5$, we conclude that the possibilities for the choice of $n$ is 225, 235, 255, 275. But, then $n^2 = 50625, 55225, 65025, 75625$, among which $55225 = 235^2$ is the only good number. Therefore, we conclude that $n = 235$ is the desired answer.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34778, "subject": "Mathematics (Multi-modal)", "question": "A $3 \\times 3$ grid made up of $9$ $1 \\times 1$ squares is given. Suppose you want to distribute $9$ distinct positive integers chosen from the integers greater than or equal to $1$ and less than or equal to $9$ into $9$ square boxes of the grid. How many distinct ways of distributing the $9$ numbers are there if for any pair of boxes sharing a side the difference of the numbers inserted must be $3$ or less? Even when the two configurations of the result of distribution coincide under a rotation or flipping over, regard the configurations distinct.", "options": [], "answer": "32", "solution": "$32$ ways\n\nFrom the grid of $9$ squares, we pick a $2 \\times 2$ four squares to fill in with numbers. Let as in the diagram (a) below $a$, $b$, $c$, $d$ be the numbers inserted into the $4$ squares. Then, we see that the difference between $a$ and $d$ is $5$ or less. In fact, since both $|a-b|$ and $|b-d|$ are no more than $3$, $|a-d|$ must be less than or equal to $6$. If $|a-d| = 6$, we must have $b = \\frac{a+d}{2}$. For the same reason, we must have $c = \\frac{a+d}{2}$, but this violates the requirement that the numbers written into the boxes must be distinct. Consequently, we must have $|a-d| \\le 5$.\n\nIn view of the facts obtained above, we see that if we insert a number less than or equal to $3$ into the center square of the given $3 \\times 3$ grid, then the number $9$ cannot be inserted anywhere. Also, if we insert any number greater than or equal to $7$ into the center square, there will be no square to insert $1$. Consequently, the number which can be inserted into the center square of the $3 \\times 3$ grid must be one of $4$, $5$, $6$.\n\nLet us first consider the case where $4$ is the one to be inserted into the center square. Then $9$ cannot be inserted into any of the squares sharing a side with the center square. So, $9$ has to be inserted into one of the squares at four corners. By rotating the diagram, if necessary, we may insert $9$ into the square located at the right lower corner. Then, we see that among the $4$ squares located at the lower right corner, the remaining two empty squares must be filled by $6$, $7$. So, by considering the operation of flipping over, if necessary, we may conclude that we need to consider only the allocation of numbers shown in the diagram (b). If we then let $e = 8$, then we see that $5$ is the only number qualified to be chosen as $f$.\n\nand $h$, so the choice of $e = 8$ is inappropriate. Since the number at the center is $4$, we see that $f$, $h \\neq 8$. And if $g = 8$, then $5$ becomes only number to go into both $i$ and $h$, it is necessary to let $i = 8$. Then, $h = 5$ becomes the only possibility and $g = 3$, $e = 2$, $f = 1$ will be determined uniquely in this order. Thus, we conclude that the method of allocation indicated in the diagram (c) is the only possibility. It is easy to check that this allocation of numbers does satisfy all the requirements of the problem.\n\nThus, we conclude that the methods of allocation with the center number $4$ can be obtained by considering rotations and flipping over of the allocation (c), and therefore there are $8$ ways to satisfy the conditions of the problem with the center number $4$. Considering symmetry, we can also conclude that there are also $8$ ways of allocating numbers to satisfy the conditions of the problem with the center number $6$.\n\n| a | b |\n|---|---|\n| c | d |\n(a)\n\n| e | f | g |\n|---|---|---|\n| h | 4 | 6 |\n| i | 7 | 9 |\n(b)\n\n| 2 | 1 | 3 |\n|---|---|---|\n| 5 | 4 | 6 |\n| 8 | 7 | 9 |\n(c)\n\n| 1 | j | k |\n|---|---|---|\n| l | 5 | m |\n| n | o | 9 |\n(d)\n\n| 1 | 2 | 3 |\n|---|---|---|\n| 4 | 5 | 6 |\n| 7 | 8 | 9 |\n(e)\n\n| 1 | 2 | 4 |\n|---|---|---|\n| 3 | 5 | 7 |\n| 6 | 8 | 9 |\n(f)\n\nNext, we consider the case where $5$ is the number to go into the center square. Then both $1$ and $9$ cannot be written into the squares sharing a side with the center square, and therefore, they have to be written into one of the four corner squares. By considering a rotation, if necessary, we may put $1$ into the upper left corner square. If we put $9$ into the upper-right or the lower-left corner square, then it becomes impossible to insert numbers into squares lying in between the squares occupied by $1$ and $9$, so the only possibility is to put $9$ into the lower-right corner square.\n\nConsequently, it is enough to consider which of the remaining numbers should be put into the squares $j$, $k$, $l$, $m$, $n$, $o$ in the diagram (d). We note that the numbers that $j$, $l$ can take have to be chosen from $2$, $3$, $4$, and the numbers that $m$, $o$ can take have to be chosen from $6$, $7$, $8$. Consequently, one of $k$, $n$ has to be assigned with a number, which is less than or equal to $4$, and the other has to be assigned with a number greater than or equal to $6$. So, we may assume, without loss of generality that $k$ is assigned with a number $4$ or less, and $n$ is assigned with a number $6$ or more.\n\nSince the squares to which the numbers $k$, $l$ are assigned share a side with square with numbers greater than or equal to $6$, we conclude that $j = 2$ is the only possibility, and similarly, we can conclude that $o = 8$ is the only possibility. When $k = 3$, $l = 4$, $m = 6$, $n = 7$ are determined one by one in this order to obtain the result shown in (e). When $k = 4$, $l = 3$, $n = 6$, $m = 7$ are determined in this order to obtain the result shown in (f).\n\nFrom each of these allocation of numbers (e) and (f), we can obtain $8$ ways to get the allocation of numbers via rotation and flipping over. Therefore, there are $16$ ways of allocating numbers to satisfy the conditions of the problem with the center number $5$. Thus, the desired answer for the problem is $16 + 16 = 32$.", "topic": "Algebra", "subtopic": "Abstract Algebra" }, { "id": 34779, "subject": "Mathematics (Multi-modal)", "question": "Suppose a regular pentagon $ABCDE$ is given. Let $F$ be the point of intersection of the lines $BE$ and $AC$. Suppose that a straight line going through $F$ intersects sides $AB$ and $CD$ at the points $G$, $H$, respectively, and $BG = 4$ and $CH = 5$ hold. Find the length of the line segment $AG$. Here by $XY$ we denote the length of the line segment $XY$ as well.\n\n![](attached_image_1.png)", "options": [], "answer": "2√6 - 2", "solution": "$2\\sqrt{6} - 2$\n\nLet $I$ be the point of intersection of the line segments $CE$ and $FH$. Let also $AG = a$. Five vertices of the regular pentagon $ABCDE$ lie on the circumference of the same circle, and these points divide the circumference of this circle into five equal parts. Consequently, we have\n$$\n\\angle BAE = \\frac{1}{2} \\cdot \\frac{3}{5} \\cdot 360^\\circ = 108^\\circ, \\quad \\angle AEC = \\frac{1}{2} \\cdot \\frac{2}{5} \\cdot 360^\\circ = 72^\\circ,\n$$\nfrom which it follows that we have $AB \\parallel EC$. Similarly, we get $CD \\parallel BE$, $DE \\parallel CA$. By the equality of alternate angles, we then get $\\angle GBF = \\angle IEF$, $\\angle BGF = \\angle EIF$, from which we conclude that the triangles $GBF$ and $IEF$ are similar. Arguing the same way, we obtain from $\\angle GAF = \\angle ICF$, $\\angle AGF = \\angle CIF$ the fact that the triangles $GAF$ and $ICF$ are similar. Consequently, we get\n$$\nAG : CI = FG : FI = BG : EI \\quad \\text{from which it follows that} \\quad \\frac{CI}{EI} = \\frac{AG}{BG} = \\frac{a}{4}\n$$\nholds.\nBy using the same argument as above, we get from $CD \\parallel BE$ the fact that the triangles $EFI$ and $CHI$ are similar. Furthermore, from $CD \\parallel BE$, $DE \\parallel CA$ we see that the quadrilateral $CDEF$ is a parallelogram, from which it follows that $EF = DC = AB = 4 + a$. Therefore, we get\n$$\n\\frac{CI}{EI} = \\frac{CH}{EF} = \\frac{5}{4+a}\n$$\nPutting together the facts we obtained above, we conclude that\n$$\n\\frac{a}{4} = \\frac{CI}{EI} = \\frac{5}{4+a}\n$$\nmust hold, and therefore, we get $(4 + a)a - 20 = 0$, from which it follows, since $a > 0$, that $a = 2\\sqrt{6} - 2$ is the desired answer.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34780, "subject": "Mathematics (Multi-modal)", "question": "Let $I$ be the in-center and $\\Omega$ be the inscribed circle of a triangle $ABC$, and let $M$ be the mid-point of the side $BC$. Let $K$ be the point of intersection of the line, going through $A$ and perpendicular to line $BC$, and the line, going through $M$ and perpendicular to the line $AI$. Prove that the circle having the line segment $AK$ as a diameter is tangent to the circle $\\Omega$.", "options": [], "answer": "Detailed solution", "solution": "Let us write $XY$ to indicate the length of the line segment $XY$. If $AB = AC$, the points $K$ and $M$ coincide and the 2 circles become tangent to each other. So, in the sequel, we assume that $AB \\ne AC$.\n\nLet $\\Gamma$ be the ex-circle within $\\angle A$ of the triangle $ABC$. Let $D$ be the point of tangency of the circle $\\Omega$ on the side $BC$, and let $D'$ be the point for which $DD'$ is a diameter of $\\Gamma$. Let also be the point on $BC$ which is the point of tangency of the circle $\\Gamma$, and let $E'$ be the point for which $EE'$ is a diameter of $\\Gamma$. Let $F$ be the point of intersection of $\\Omega$ and the line $AD'$, different from $D'$, and let $G$ be the point of intersection of $\\Gamma$ and the line $AE'$ different from $E'$.\n\nLet $B', C'$ be the point of intersection of the line tangent to the circle $\\Omega$ going through $D'$ and the line $AB, BC$, respectively. Then, we see that the triangles $ABC$ and $A'B'C'$ are similar since lines $BC$ and $B'C'$ are parallel. Since the point $E$ is the point of tangency of the ex-circle within $\\angle A$ on the side $BC$, and since the point $D'$ is the point of tangency of the ex-circle within $\\angle A$ on the side $B'C'$, under the similarity map between the triangles $ABC$ and $AB'C'$ the points $E$ and $D'$ correspond. Therefore, the 3 points $A, D', E$ lie on the same straight line. We have $\\angle DFD' = 90^\\circ$ since the line segment $DD'$ is a diameter of $\\Gamma$, we also have $\\angle DFE = 90^\\circ$. In the same way, we get that the 3 points $A, D, E'$ lie on the same straight line and that $\\angle DGE = 90^\\circ$. Consequently, if we let $K'$ be the point of intersection of lines $DE$ and $EG$, then $K'$ is the orthocenter of the triangle $ADE$ and we see that the line $AK'$ is perpendicular to the side $BC$.\n\nSince $BD = \\frac{1}{2}(AB+BC=CA) = CE$, we see that $M$ is the mid-point of the line segment $DE$. Consequently, the powers of the point $M$ with respect to the two circles $\\Omega$ and $\\Gamma$ coincide. Also, from $\\angle DFE = \\angle DGE = 90^\\circ$, we see that the four points $D, E, F, G$ lie on the circumference of the same circle. Therefore, from the theorem on power of points with respect to a circle, we conclude that $K'D \\cdot K'F = K'E \\cdot K'G$. Consequently, the powers of the point $K'$ with respect to the two circles $\\Omega$ and $\\Gamma$ coincide. Therefore, we see that $MK'$ is the radical axis of the two circles $\\Omega$ and $\\Gamma$, and if we let $I_A$ be the center of the circle $\\Gamma$, then the line $MK'$ is perpendicular to the line $II_A$. Since the three points $A, I, I_A$ lie on a straight line, we conclude that the line $MK'$ is perpendicular to the line $AI$.\n\nFrom the discussions made above, we can conclude that the points $K$ and $K'$ coincide, and therefore, the three points $K, D, F$ are collinear. Furthermore, both of the lines $AK$ and $DD'$ are perpendicular to the line $BC$, and they are parallel, from which it follows that the triangles $FKA$ and $FDD'$ are similar. Since $\\angle AFK = 90^\\circ$, the circle having the line segment $AK$ as its diameter is the circum-circle of the triangle $FKA$, while $\\Omega$ is the circum-circle of the triangle $FDD'$, we see that these circles correspond to each other under the similarity map between the triangles $FKA$ and $FDD'$. Thus, we conclude that the two circle are tangent to each other at the point $F$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34781, "subject": "Mathematics (Multi-modal)", "question": "Find the smallest integer $n$ with the following property:\nRemainders obtained when $n$ is divided by $97$, $100$, $103$ are $32$, $33$, $34$, respectively.", "options": [], "answer": "333033", "solution": "$333033$\nLet $n$ be a positive integer satisfying the conditions of the problem. Then, $n-32$, $n-33$, $n-34$ are multiples of $97$, $100$, $103$, respectively. Then, we have\n$$\n3n+1 = 3(n-32) + 97 = 3(n-33) + 100 = 3(n-34) + 103,\n$$\nfrom which it follows that $3n + 1$ is a multiple of $97$, $100$, $103$. Any pair from $97$, $100$, $103$ are relatively prime, we see that $3n+1$ must be a multiple of $97 \\cdot 100 \\cdot 103$.\nThe smallest positive integer $n$ for which $3n + 1$ is a multiple of $97 \\cdot 100 \\cdot 103$ is\n$$ \\frac{97 \\cdot 100 \\cdot 103 - 1}{3} = 333033, \\text{ and since we have} $$\n$$\n\\begin{aligned} \\frac{97 \\cdot 100 \\cdot 103 - 1}{3} &= 97 \\cdot \\frac{100 \\cdot 103 - 1}{3} + 32 = 100 \\frac{97 \\cdot 100 \\cdot 103 - 1}{3} + 33 \\\\ &= 103 \\cdot \\frac{97 \\cdot 100 - 1}{3} + 34, \\end{aligned}\n$$\nwe conclude that $333033$ is the desired answer to the problem.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34782, "subject": "Mathematics (Multi-modal)", "question": "Some of the vertices of a regular $120$-gon are labeled by $*$. What is the maximal possible number of vertices labeled with $*$ if the following condition must be satisfied?\n\nThere exists no isosceles triangle with the angle at the top vertex of $18^\\circ$ formed by $*$-labeled vertices of the $120$-gon.", "options": [], "answer": "78", "solution": "$78$\n\nLabel the vertices of the regular $120$-gon as $A_1, A_2, \\dots, A_{120}$ clockwise. Form six subsets of the set of all the vertices $A_i$, $i = 1, 2, \\dots, 120$ by putting the vertex $A_i$ into the $r$-th group for $r = 1, 2, \\dots, 6$ if the remainder obtained is $r-1$ when $i$ is divided by $6$. Note that for $r = 1, 2, \\dots, 6$ the vertex $A_r$ belongs to the $r$-th group, which we call simply the group $r$.\n\nCall a triplet $(X, Y, Z)$ of vertices of the regular $120$-gon a bad triangle if $X, Y, Z$ are located clockwise in this order and if $\\angle YXZ = \\angle YZX$, and $\\angle XYZ = 18^\\circ$. Note that the vertices of the regular $120$-gon lie on the same circle and they divide the circumference of the circle into $120$ segments of equal length. Let us call $O$ the center of this circle. If $(A_i, A_j, A_k)$ is a bad triangle, we have $\\angle A_j A_i A_k = 81^\\circ$, from which it follows that $\\angle A_j O A_k = 2 \\cdot 81^\\circ$, which, in turn, implies that $k-j \\equiv 54 \\pmod{120}$. We also get $j-i \\equiv 54 \\pmod{120}$ by the same argument. Thus, we conclude that $A_i, A_j, A_k$ belong to the same group.\n\nFix a positive integer $r$ satisfying $1 \\le r \\le 6$, and define for $1 \\le i \\le 20$ $B_i = A_{54i+r}$. Here, we let $A_{n+120} = A_n$. From the fact that the greatest common divisor of $120$ and $54$ is $6$ and in view of the Chinese Remainder Theorem, we see that in each of $B_1, B_2, \\dots, B_{20}$ an element of the group $r$ appears exactly once. For a triplet $(B_i, B_{i+1}, B_{i+2})$ belonging to the group $r$, $(B_i, B_{i+1}, B_{i+2})$ is a bad triangle if and only if $i+2 \\equiv j+1 \\equiv k \\pmod{20}$.\n\nNow suppose there are $14$ or more vertices marked with $*$ among the vertices of the group $r$. Let $i$ be an integer satisfying $1 \\le i \\le 20$, and consider a triplet $(B_i, B_{i+1}, B_{i+2})$ of vertices. (Here, we let $B_{n+20} = B_n$.) If $B_k$ is not marked by $*$, then there are exactly $3$ indices $i$ for which one of the vertices among $B_i, B_{i+1}, B_{i+2}$ coincides with $B_k$. Consequently, the number of $i$ for which at least one of $B_i, B_{i+1}, B_{i+2}$ is not marked with $*$ is at most $3 \\cdot (20-14) = 18$. Consequently, there exists an $i$ for which all of $B_i, B_{i+1}, B_{i+2}$ are marked with $*$. Since this situation cannot occur by the condition of the problem, we conclude that the number of vertices marked with $*$ belonging to the group $r$ is at most $13$. Thus, there are at most $13 \\cdot 6 = 78$ vertices of regular $120$-gon marked with $*$.\n\nOn the other hand, suppose that for every pair $r, i$ chosen from $78$ combinations formed when $r$ is one of $1, 2, 3, 4, 5, 6$ and $i$ is one of $1, 2, 4, 5, 7, 8, 10, 11, 13, 14, 16, 17, 19$, the vertex $A_{54i+r}$ is marked with $*$. Then, there exists no bad triangle formed by vertices marked with $*$ belonging to the same group. Since the triplet $X, Y, Z$ of vertices must always belong to the same group if the triple $(X, Y, Z)$ is a bad triangle, we conclude that the conditions of the problem are satisfied for all of the $78$ pairs $r, i$ considered above. Therefore, the answer we seek is $78$.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 34783, "subject": "Mathematics (Multi-modal)", "question": "Suppose quadratic polynomials $P$, $Q$, $R$ with integer coefficients satisfy the following properties:\n* $P(1) = P(2) = Q(3) = 0$.\n* $P(x)^2 + Q(x)^2 = R(x)^2$ holds for any real number $x$.\n* There exists no integer greater than or equal to $2$, which divides all of the numbers appearing as a coefficient of any of $P$, $Q$, $R$.\n* The coefficients of the quadratic terms of $P$ and $Q$ are not $0$, and the coefficient of the quadratic term of $R$ is positive.\nFind all possible forms of $R(x)$ satisfying the conditions above.", "options": [], "answer": "5x^2 - 18x + 17", "solution": "$5x^2 - 18x + 17$\nBy the given conditions, we see that $P(x) = a(x-1)(x-2)$ with $a$ being a non-zero constant. We then see that we have\n$$\na^2(x-1)^2(x-2)^2 = P(x)^2 = R(x)^2 - Q(x)^2 = (R(x) + Q(x))(R(x) - Q(x))\n$$\nvalid for all $x$. We know that both $R(x) + Q(x)$ and $R(x) - Q(x)$ have degrees less than or equal to $2$, but since the left hand-side of the equation above has degree $4$, we see that both $R(x) + Q(x)$ and $R(x) - Q(x)$ have degree $2$. Therefore, $(R(x) + Q(x), R(x) - Q(x))$ can be written by using integers $b$ and $c$ in one of the following form:\n$$\n(b(x-1)(x-2), c(x-1)(x-2)), (b(x-1)^2, c(x-2)^2), (b(x-2)^2, c(x-1)^2)\n$$\nIn the first possibility above, we get\n$$\nQ(x) = \\frac{1}{2}((R(x) + Q(x)) - (R(x) - Q(x))) = \\frac{b-c}{2}(x-1)(x-2),\n$$\nfrom which it follows that we have $b-c = Q(3) = 0$, but this will imply that the coefficient of $x^2$ term in $Q(x)$ is $0$, contradicting the assumption. Thus, the first possibility is not valid.\nFor the second possibility above, if we replace $Q$ by $-Q$, $R(x) + Q(x)$ and $R(x) - Q(x)$ get interchanged, and this case reduces to the third possibility. So, it suffices to consider only the third possibility.\nIn the third case, we have\n$$\nQ(x) = \\frac{1}{2}((R(x) + Q(x)) - (R(x) - Q(x))) = \\frac{b}{2}(x-2)^2 - \\frac{c}{2}(x-1)^2.\n$$\nFrom $Q(3) = 0$ we get $b = 4c$, and from $a^2 = bc$, we get $a = \\pm 2c$. We may assume that $a = 2c$ by replacing $P$ with $-P$ if necessary. Then, we get\n$$\nP(x) = 2c(x-1)(x-2), \\quad Q(x) = 2c(x-2)^2 - \\frac{c}{2}(x-1)^2, \\quad R(x) = 2c(x-2)^2 + \\frac{c}{2}(x-1)^2.\n$$\nSince the coefficient of $x^2$ in $R$ must be positive, we must have $c > 0$. Furthermore, since all the coefficients of $P$, $Q$, $R$ must be integers, we see, in particular, $\\frac{c}{2}$ can be written as $c = 2d$ for some positive integer $d$. Then, all the coefficients of $P$, $Q$, $R$ become multiples of $d$, and therefore, we must have $d = 1$. We can therefore, conclude that\n$$\nP(x) = 4(x-1)(x-2), \\quad Q(x) = 3x^2 - 14x + 15, \\quad R(x) = 5x^2 - 18x + 17\n$$\nhold, and we get $5x^2 - 18x + 17$ is the desired solution to the problem.", "topic": "Algebra", "subtopic": "Abstract Algebra" }, { "id": 34784, "subject": "Mathematics (Multi-modal)", "question": "Let $I$ be the in-center of a triangle $ABC$ satisfying $AB > AC$, and let $D, E$ be points on the sides $AB, AC$, respectively, dividing the sides into two segments with $1:8$ ratio. If the triangle $DIE$ becomes the regular triangle with side length $1$, what is the length of $AB$? Here by $XY$ we denote the length of the line segment $XY$ as well.", "options": [], "answer": "(81 + 9*sqrt(13))/16", "solution": "$$\n\\frac{81 + 9\\sqrt{13}}{16}\n$$\nLet $P, Q$ be the foot of the perpendicular line drawn from $I$ to sides $AB, AC$, respectively. Then, from $IP = IQ$ and $ID = IE$ it follows that the right triangles $IDP$ and $IEQ$ are congruent. If we suppose that the points $P$ and $Q$ are located in the same side of the plane with respect to the line $DE$, then we can conclude from $AP = AQ$ and $DP = EQ$ that $AD = AE$ must hold. But this contradicts the assumption $AB > AC$. Therefore, $P$ and $Q$ lie on opposite sides of the plane with respect to the line $DE$. This fact implies that $\\angle ADI + \\angle AEI = 180^\\circ$ follows from $\\angle PDI = \\angle QEI$, and since $\\angle DIE = 60^\\circ$, we get $\\angle BAC = 120^\\circ$. We also have $\\angle BAI = 60^\\circ$. If we now let $F$ be the point of intersection of lines $DI$ and $BC$, then we see that\n$$\n\\angle BFI = \\angle IDE = 60^\\circ = \\angle BAI\n$$\nmust hold since lines $DE$ and $BC$ are parallel. We also have $\\angle ABI = \\angle FBI$, from which it follows that the triangles $BAI$ and $BFI$ are congruent. Since we also have $DI : FI = DB : FB$, we get\n$$\nDI : AI = DI : FI = DB : FB = DB : AB = 8 : 9,\n$$\nfrom which it follows that we have $AI = \\frac{9}{8}$. If we now apply the Law of Cosines to the triangle $ADI$, we obtain\n$$\nDI^2 = AD^2 + AI^2 - 2AD \\cdot AI \\cos \\angle DAI,\n$$\nwhich yields $AD = \\frac{9 \\pm \\sqrt{13}}{16}$. In the same way, we get $AE = \\frac{9 \\pm \\sqrt{13}}{16}$. Since $AD > AE$, we get $AD = \\frac{9 + \\sqrt{13}}{16}$. Consequently, we obtain $AB = 9AD = \\frac{81 + 9\\sqrt{13}}{16}$ as the desired answer.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34785, "subject": "Mathematics (Multi-modal)", "question": "A $4 \\times 4$ grid made up of $16$ $1 \\times 1$ squares is given. Suppose we want to color each of the squares by using one of the four colors, red, blue, yellow or green. How many ways of painting all of the boxes are there if the following requirement must be met:\nFor any row and any column one of the following 3 conditions must be satisfied:\n* all four squares must be colored by the same color.\n* use two colors, each one to be used to color two squares.\n* use all four colors, each one to be used to color one square.", "options": [], "answer": "262144", "solution": "When we say color in this solution we mean red, blue, yellow and green.\nAn $n$-tuple $(c_1, c_2, \\dots, c_n)$ of colors (in which the same color can appear any number of times) is called consistent if every color appearing appears an even number of times, or every color appearing appears an odd number of times. Note that $n$ must be even if $(c_1, c_2, \\dots, c_n)$ is consistent. The conditions imposed for the problem is equivalent to the statement that for any row and any column the colors $(c_1, c_2, c_3, c_4)$ used to paint is consistent.\n**Lemma:** Let $n$ be an odd number, and let $(c_1, c_2, \\dots, c_n)$ be an $n$-tuple of colors. Then, there exists a unique color $d$ for which $(c_1, c_2, \\dots, c_n, d)$ becomes consistent.\n**Proof:** Since $n$ is odd, there are odd number of colors which appear odd number of times among $c_1, \\dots, c_n$. Thus, there is one color for which the even-odd parity of the appearances among $c_1, \\dots, c_n$ is different from other colors appearing there, and this color is $d$.\nLet us consider how many ways there are for coloring squares of the given grid to satisfy the conditions of the problem. As indicated in the diagram below, we indicate colors by using symbols. There are $4^9$ ways of choosing colors if we choose $c_1, c_2, \\dots, c_9$ freely. If we fix one such choice, then by applying the Lemma to the $3$ upper rows to obtain $d_1, d_2, d_3$, and by applying the Lemma to $3$ left columns to obtain $e_1, e_2, e_3$. If we can show that the color $x$ for which $(d_1, d_2, d_3, x)$ is consistent coincides with the color $y$ for which $(e_1, e_2, e_3, y)$ is consistent, then this common color must be the unique color that should be used to color the right lowest corner of the diagram below.\nSince each one of the quadruples\n$$\n(c_1, c_2, c_3, d_1), (c_4, c_5, c_6, d_2), (c_7, c_8, c_9, d_3), (d_1, d_2, d_3, x)\n$$\nis consistent, the $16$-tuple obtained by combining these four quadruples is consistent, and so is the $10$-tuple obtained by deleting each of $(d_1, d_2, d_3)$ twice from the $16$-tuple above. Thus, we conclude that $(c_1, c_2, \\dots, c_9, x)$ is consistent. Arguing in the same way, we also get the fact that $(c_1, c_2, \\dots, c_9, y)$ is consistent. In view of the Lemma above, we conclude that $x$ and $y$ represent the same color.\nNo matter how we choose the colors $c_1, c_2, \\dots, c_9$, we see that there is a unique choice of the color to color the right lowermost square of the diagram below. So, $4^9 = 262144$ is the desired answer to the problem.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34786, "subject": "Mathematics (Multi-modal)", "question": "In a triangle $ABC$, we suppose that points $D$ and $E$ lie on the segments $AB$ and $AC$, respectively. Let $D$, $B$, $C$, $E$ lie on the same circumference and let point $P$ lie inside quadrilateral $DBCE$ with $\\angle BDP = \\angle BPC = \\angle PEC$. Calculate $\\frac{BP}{CP}$, given that $AB = 9$, $AC = 11$, $DP = 1$ and $EP = 3$.", "options": [], "answer": "sqrt(33)/11", "solution": "$$\n\\frac{\\sqrt{33}}{11}\n$$\nLet $Q$ be the intersection of line $EP$ and $AB$, and $R$ be the intersection of line $DP$ and $AC$. Since $\\angle BPC + \\angle CPE = \\angle PEC + \\angle CPE = 180^\\circ - \\angle ECP$, we have $\\angle QPB = \\angle ECP$. Similarly, we have $\\angle RPC = \\angle DBP$. Hence $\\angle QPB = \\angle RCP$ and $\\angle QBP = \\angle RPC$, which yields $\\triangle QBP \\sim \\triangle RPC$.\n\nSince $\\angle QDR = \\angle BDP = \\angle PEC = \\angle QER$, $D$, $Q$, $R$ and $E$ lie on the same circumference. Hence we have $\\angle ABC = \\angle DBC = 180^\\circ - \\angle CED = 180^\\circ - \\angle RED = \\angle DQR = \\angle AQR$ (note that $D$, $B$, $C$, $E$ are also concyclic). This means the line $BC$ is parallel to the line $QR$ and thus $BQ : CR = AB : AC = 9 : 11$. In addition, we have $\\triangle QDP \\sim \\triangle REP$ since $D$, $Q$, $R$ and $E$ are concyclic, and thus $QP : RP = DP : EP = 1 : 3$.\n\nThe above argument yields $\\frac{BP^2}{CP^2} = \\frac{BQ \\cdot QP}{PR \\cdot RC} = \\frac{BQ}{CR} \\cdot \\frac{QP}{RP} = \\frac{9}{11} \\cdot \\frac{1}{3} = \\frac{3}{11}$, hence $\\frac{BP}{CP} = \\frac{\\sqrt{3}}{11} = \\frac{\\sqrt{33}}{11}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34787, "subject": "Mathematics (Multi-modal)", "question": "For all quadruples $(x, y, z, w)$ consisting of integers $1 \\le x, y, z, w \\le 1000$, we consider adding up the maximum value of $xy + zw$, $xz + yw$, $xw + yz$ and denote the sum by $M$. Similarly, for all quadruples $(x, y, z, w)$ consisting of integers $1 \\le x, y, z, w \\le 1000$, we consider adding up the minimum value of $xy + zw$, $xz + yw$, $xw + yz$ and denote the sum by $m$. Determine the number of positive divisors of $M - m$.", "options": [], "answer": "20412", "solution": "$$\n\\boxed{20412}\n$$\nFor 3 real numbers $a, b, c$, the difference of the maximum value and the minimum value of them is $\\frac{|a-b|+|b-c|+|c-a|}{2}$. Using $|(xy + zw) - (xz + yw)| = |x - w||y - z|$, we have\n$$\nM - m = \\frac{1}{2} \\sum_{x,y,z,w=1}^{1000} \\left( |x - w||y - z| + |x - y||z - w| + |x - z||y - w| \\right).\n$$\nSince\n$$\n\\sum_{x,y,z,w=1}^{1000} |x - w||y - z| = \\left( \\sum_{x,y=1}^{1000} |x - y| \\right)^2 = \\left( 2 \\sum_{d=1}^{999} d(1000 - d) \\right)^2 = \\frac{(999 \\cdot 1000 \\cdot 1001)^2}{9},\n$$\nwe have\n$$\nM - m = \\frac{3}{2} \\cdot \\frac{(999 \\cdot 1000 \\cdot 1001)^2}{9} = 2^5 \\cdot 3^5 \\cdot 5^6 \\cdot 7^2 \\cdot 11^2 \\cdot 13^2 \\cdot 37^2.\n$$\nTherefore, the number of positive divisors of $M - m$ is $6 \\cdot 6 \\cdot 7 \\cdot 3 \\cdot 3 \\cdot 3 \\cdot 3 = 20412$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34788, "subject": "Mathematics (Multi-modal)", "question": "In a $7 \\times 7$ chessboard, a coin is placed in the square in the first row from the top, the fourth column from the left. We call square $Y$ a lower left square of square $X$ if $Y$ is $k$ squares to the left and $k$ squares below $X$ for some positive integer $k$. Similarly, we call square $Y$ a lower right square of square $X$ if $Y$ is $k$ squares to the right and $k$ squares below $X$ for some positive integer $k$. For a square $X$ not on the bottom line, one can perform one of the following four operations when a coin is placed on $X$:\n\na. Remove a coin from $X$ and place a coin in the square one below $X$.\n\nb. Remove a coin from $X$ and place coins in each of the lower left squares of $X$.\n\nc. Remove a coin from $X$ and place coins in each of the lower right squares of $X$.\n\nd. Remove a coin from $X$ and place coins in the square one square to the left and one square below $X$, and the square one square to the right and one square below $X$. If there is only one such square, place a coin in that square only.\n\nIf there is already a coin in the place where one intends to place a coin, one will not place the coin there.\nFind the maximum possible number of coins that can be placed on the square when the operation is performed an arbitrary number of times.\n\n![](attached_image_1.png)\n(a)\n![](attached_image_2.png)\n(b)\n![](attached_image_3.png)\n(c)\n![](attached_image_4.png)\n(d)", "options": [], "answer": "19", "solution": "$19$\n\nIf one writes the number in each square as shown in the figure below, the sum of the numbers written in the squares where the coins are placed cannot be increased by the operations.\n![](attached_image_5.png)\nThe number written in the square where the coin was initially placed is $64$ and there are three squares with $1$ written in them, eight squares with $2$ and six squares with $4$. Since the number written in each of the other squares is at least $8$, $64 < 1 \\cdot 3 + 2 \\cdot 8 + 4 \\cdot 6 + 8 \\cdot 3$ shows that the number of coins placed in the squares is always less than or equal to $3 + 8 + 6 + 3 - 1 = 19$.\n\nOn the other hand, one can place $19$ coins in the squares by performing the operations as follows. In the following operation $(x)$ on the square in $i$th row from the top and $j$th column from the left is denoted by \"$x$ on $(i, j)$\".\n\nDo $d$ on $(1, 4)$, $b$ on $(2, 5)$, $a$ on $(5, 2)$, $d$ on $(6, 2)$, $d$ on $(4, 3)$, $a$ on $(5, 2)$, $d$ on $(5, 4)$, $d$ on $(6, 3)$, $d$ on $(6, 5)$, $d$ on $(3, 4)$, $d$ on $(4, 3)$, $a$ on $(4, 5)$, $d$ on $(5, 5)$, $d$ on $(6, 6)$, $d$ on $(5, 4)$, $c$ on $(2, 3)$, $a$ on $(5, 6)$, $d$ on $(4, 5)$, $d$ on $(3, 4)$ in that order.\n\nFrom the above, the answer is $19$.\nThe proof that the number of coins placed in the squares is at most $19$ is the same as above. One can also place $19$ coins in the squares by performing the operations as follows.\n\nDo $d$ on $(1, 4)$, $d$ on $(2, 3)$, $d$ on $(3, 2)$, $d$ on $(4, 3)$, $a$ on $(5, 2)$, $d$ on $(6, 2)$, $d$ on $(5, 4)$, $d$ on $(6, 3)$, $d$ on $(6, 5)$, $d$ on $(3, 4)$, $a$ on $(4, 3)$, $d$ on $(5, 3)$, $d$ on $(4, 5)$, $d$ on $(5, 4)$, $a$ on $(5, 6)$, $d$ on $(6, 6)$, $d$ on $(2, 5)$, $d$ on $(3, 6)$, $d$ on $(4, 5)$, $a$ on $(5, 6)$, $d$ on $(3, 4)$, $b$ on $(4, 3)$, $c$ on $(4, 5)$ in that order.\n\nFrom the above, the answer is $19$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34789, "subject": "Mathematics (Multi-modal)", "question": "Let $n > 1$ be an integer. Alice and Bob play the following game using an $n \\times 2021$ grid. First, Alice colors each square either black or white. Bob places a piece in one of the squares in the top row and designates one square in the bottom row as the goal. Then, Alice repeatedly does the following operation $n-1$ times:\n> If the piece is on a white square, she moves the piece to the square one below.\n> Otherwise, she moves the piece to one left or right and then to one below.\n\nFind the minimum possible value of $n$ such that Alice can always move the piece to the goal regardless of Bob's choice.", "options": [], "answer": "2022", "solution": "The answer is $n = 2022$.\n\nFirst, we will prove that $n \\ge 2022$. We denote the square in the $i^{\\text{th}}$ row and the $j^{\\text{th}}$ column as $(i, j)$. When the piece in $(i, j)$ is moved to $(i', j')$ in a single operation, it holds that $i' = i+1$ and $|j' - j| \\le 1$. Thus, in order to move the piece from $(a, b)$ to $(c, d)$ in some operations, it requires that $a \\le c$ and $|d - b| \\le c - a$. If Bob places the piece in $(1, 1)$ and designates $(n, 2021)$ as the goal, then $|2021 - 1| \\le n - 1$ yields $n \\ge 2021$.\n\nFor $n = 2021$, if Bob places the piece in $(1, 1)$ and designates $(2021, 2021)$ as the goal, then Alice has to move the piece from $(k, k)$ to $(k+1, k+1)$ for any $1 \\le k \\le 2020$. Hence she has to color any $(k, k)$ black. In this situation, we can show that she cannot move the piece from $(1, 1)$ to $(k+1, k)$ for any $1 \\le k \\le 2020$, and specifically to $(2021, 2020)$, which yields $n \\ge 2022$. The proof follows from induction on $k$. For $k = 1$ this claim holds since $(1, 1)$ is colored black. For $k \\ge 2$, note that she can move the piece to $(k+1, k)$ only from $(k, k-1)$, $(k, k)$, or $(k, k+1)$. Here, as $|(k+1) - 1| > k - 1$, she cannot move from $(1, 1)$ to $(k, k+1)$. Also, she cannot move to $(k, k-1)$ by the induction hypothesis. Additionally, as $(k, k)$ is colored black, she cannot move from that square to $(k+1, k)$.\n\nConversely, we will prove that Alice can move the piece to the goal when $n = 2022$. First, she colors the squares $(i, j)$ with $i \\ge 4$ black. Then, for any odd integers $a, b$ with $3 \\le a \\le 2019$ and $1 \\le b \\le 2021$, she can move the piece from $(4, a)$ to $(2022, b)$. Similarly, for any even integers $a, b$ with $2 \\le a, b \\le 2022$, she can move the piece from $(4, a)$ to $(2022, b)$.\n\nNext, for the squares $(i, j)$ with $1 \\le i \\le 3$, she colors the following form of squares black for any $k$ with $0 \\le k \\le 336$:\n$$\n(1, 3k + 1), (1, 2021 - 3k), (1, 3k + 3), (1, 2019 - 3k), (2, 3k + 2), (2, 2020 - 3k), (3, 3k + 1), (3, 2021 - 3k)\n$$\n\nAnd she colors the remaining squares white. Note that for $k = 336$, $(1, 3k+3)$ and $(1, 2019-3k)$ are the same squares. In this situation, we prove that Alice can move the piece to the goal. From the symmetry of this coloring, we only need to prove that she can move from $(1, a)$ with $1 \\le a \\le 1011$ to any squares in the bottom row. For $k$ with $0 \\le k \\le 336$, she can move from $(1, 3k+1)$, $(1, 3k+2)$, or $(1, 3k+3)$ to $(2, 3k+2)$, then through $(3, 3k+1)$ or $(3, 3k+3)$, she can move to $(4, 3k+2)$ or $(4, 3k+3)$. Hence, she can move from $(1, a)$ to any squares in the bottom row. This completes the proof.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34790, "subject": "Mathematics (Multi-modal)", "question": "Let $P$ be a point inside isosceles triangle $ABC$ with $AB = AC$, and let $D, E, F$ be the feet of the perpendicular from $P$ to $BC, CA, AB$, respectively. If $BD = 9$, $CD = 5$, $PE = 2$, $PF = 5$, find $AB$.\n![](attached_image_1.png)", "options": [], "answer": "4*sqrt(7)", "solution": "$4\\sqrt{7}$\nLet $M$ be the midpoint of segment $BC$, and let $Q$ (resp. $R$) be the intersection of the line through $P$ parallel to segment $BC$ with segments $AB$ (resp. $AC$). As $AB = AC$, we have $\\angle ABM = \\angle AQP = \\angle ARP$, which yields that the right-angled triangles $AMB$, $PFQ$, $PER$ are similar. Thus $PQ : PR = PF : PE = 5 : 2$. Also, the quadrilateral $BCRQ$ is an isosceles trapezoid and those bases are perpendicular to the segment $PD$, so that $PQ - PR = BD - CD = 4$. Therefore, $PQ = 4 \\cdot \\frac{5}{5-2} = \\frac{20}{3}$, and so we have $AB : AM = PQ : PF = 4 : 3$.\n\nSince $AB : BM = AB : \\sqrt{AB^2 - AM^2} = 4 : \\sqrt{4^2 - 3^2} = 4 : \\sqrt{7}$ by the Pythagorean theorem, we have $AB = BM \\cdot \\frac{AB}{BM} = \\frac{9+5}{2} \\cdot \\frac{4}{\\sqrt{7}} = 4\\sqrt{7}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34791, "subject": "Mathematics (Multi-modal)", "question": "In an acute triangle $ABC$, points $D$ and $E$ lie on sides $AB$ and $AC$ respectively which satisfy $BD = CE$. Point $P$ is on line segment $DE$ and point $Q$ lie on arc $BC$, not containing $A$, of the circumcircle of triangle $ABC$. These points satisfy $BP : PC = EQ : QD$ and points $A, B, C, D, E, P, Q$ are all distinct. Show that $\\angle BPC = \\angle BAC + \\angle EQD$.\n\nIn the above, denote by $XY$ the length of line segment $XY$.", "options": [], "answer": "Detailed solution", "solution": "Let $F, G$ be the intersection points of lines $QD, QE$ and triangle $ABC$ other than $Q$ respectively. Let line $BG$ and $CF$ meet at $R$. Then, application of Pascal's theorem for six points $A, B, G, Q, F, C$ which are concyclic shows that $D, E, R$ are colinear. These six points are on the same circle in the order $A, F, B, Q, C, G$. In particular, $R$ lies on segment $DE$. We will show that $P = R$.\n\nFirst, we show that $BP : PC = BR : RC$. Applying the sine rule to triangle $BRC$ provides that\n$$\nBR : RC = \\sin \\angle RCB : \\sin \\angle CBR = \\sin \\angle DQB : \\sin \\angle CQE.\n$$\nOn the other hand, applying the sine rule to triangle $DQB$ and triangle $CQE$ provides that\n$$\nBP : PC = QE : QD = CE \\cdot \\frac{\\sin \\angle ECQ}{\\sin \\angle CQE} : BD \\cdot \\frac{\\sin \\angle QBD}{\\sin \\angle DQB}\n$$\nFrom $\\angle ECQ + \\angle QBD = 180^\\circ$ and $BD = CE$ we obtain\n$$\nBP : PC = \\sin \\angle DQB : \\sin \\angle CQE = BR : RC.\n$$\nAssume that $P$ and $R$ are distinct. In case that $D, P, R, E$ lie in that order, we have\n$$\n\\angle CBR < \\angle CBP < \\angle CBA < 90^\\circ, \\\\\n\\angle PCB < \\angle RCB < \\angle ACB < 90^\\circ.\n$$\nThis shows that $\\sin \\angle CBR < \\sin \\angle CBP$, $\\sin \\angle PCB < \\sin \\angle RCB$. By the sine rule we obtain\n$$\n\\frac{PC}{BP} = \\frac{\\sin \\angle CBP}{\\sin \\angle PCB} > \\frac{\\sin \\angle CBR}{\\sin \\angle RCB} = \\frac{RC}{BR}\n$$\nwhich contradicts $BP : PC = BR : RC$. In case that $D, R, P, E$ lie in that order, we have a contradiction similarly. Thus we have $P = R$ by contradiction.\n\nFrom above we have\n$$\n\\angle BPC = \\angle BRC = 180^\\circ - \\angle RCB - \\angle CBR = 180^\\circ - \\angle DQB - \\angle CQE.\n$$\nIn addition, we have\n$$\n\\angle DQB + \\angle CQE = \\angle CQB - \\angle EQD = 180^\\circ - \\angle BAC - \\angle EQD.\n$$\nPutting them together, we obtain $\\angle BPC = \\angle BAC + \\angle EQD$, which yields the desired conclusion.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34792, "subject": "Mathematics (Multi-modal)", "question": "2021 integers $a_1, a_2, \\dots, a_{2021}$ satisfy\n$$\na_{n+5} + a_n > a_{n+2} + a_{n+3}\n$$\nfor all integers $n = 1, \\dots, 2016$. Determine the minimum value of the difference between maximum and minimum of $a_1, a_2, \\dots, a_{2021}$.", "options": [], "answer": "85008", "solution": "85008 is the minimum value of the difference.\n\nFirst we show the difference between maximum and minimum is greater than or equal to 85008. Let $a_1, a_2, \\dots, a_{2021}$ be 2021 integers satisfying the condition. Let $n$ be an integer satisfying $1 \\le n \\le 2016$ then the condition shows $a_{n+5} - a_{n+3} > a_{n+2} - a_n$ and both left and right hand sides are integers thus\n$$\na_{n+5} - a_{n+3} \\ge a_{n+2} - a_n + 1\n$$\nholds. Let $m$ be an integer satisfying $1 \\le m \\le 1006$, then by summing up this inequality for 506 integers $n = m, m+2, \\dots, m+1010$ we get $a_{m+1015} - a_{m+3} \\ge a_{m+1012} - a_m + 506$ hence\n$$\na_{m+1015} - a_{m+1012} \\ge a_{m+3} - a_m + 506\n$$\nis obtained. Then by summing up this inequality for 336 integers $m = 1, 4, \\dots, 1006$ we get $a_{2021} - a_{1013} \\ge a_{1009} - a_1 + 170016$ hence $(a_{2021} - a_{1013}) + (a_1 - a_{1009}) \\ge 170016$ holds. Therefore at least one of $a_{2021} - a_{1013}$ and $a_1 - a_{1009}$ is greater than or equal to $\\frac{170016}{2} = 85008$ and thus the difference between maximum and minimum is greater than or equal to 85008.\n\nNext we show there exists 2021 integers $a_1, a_2, \\dots, a_{2021}$ satisfying the condition whose maximum and minimum have the 85008 difference. Let $n$ be an integer satisfying $1 \\le n \\le 2021$ and take non-negative integer $q$ less than or equal to 336 and non-negative integer $r$ less than or equal to 5 such that $n = 6q + r$ holds. Define $a_n$ as\n$$\n\\begin{cases} 3(q - 168)(q - 169) + 1 & (r = 0), \\\\ (q - 168)(3q + r - 507) & (1 \\le r \\le 5). \\end{cases}\n$$\nIf $n$ is less than or equal to 2020, $a_{n+1} - a_n$ is equal to\n$$\n\\begin{cases} (q - 168)(3q + 1 - 507) - (3(q - 168)(q - 169) + 1) = q - 169 & (r = 0), \\\\ (q - 168)(3q + (r + 1) - 507) - (q - 168)(3q + r - 507) = q - 168 & (1 \\le r \\le 4), \\\\ 3((q + 1) - 168)((q + 1) - 169) + 1 - (q - 168)(3q + 5 - 507) = q - 167 & (r = 5) \\end{cases}\n$$\nhence we get\n$$\na_1 \\ge a_2 \\ge \\dots \\ge a_{1010} \\ge a_{1011} \\le a_{1012} \\le \\dots \\le a_{2020} \\le a_{2021}.\n$$\nTherefore the minimum and maximum of $a_1, a_2, \\dots, a_{2021}$ are $a_{1011} = 0$ and $a_1 = a_{2021} = 85008$ respectively then the difference is 85008. We prove those 2021 integers $a_1, a_2, \\dots, a_{2021}$ satisfy the condition. If $n$ is less than or equal to 2019, $a_{n+2} - a_n = (a_{n+2} - a_{n+1}) + (a_{n+1} - a_n)$ is equal to\n$$\n\\begin{cases} 2q - 337 & (r = 0), \\\\ 2q - 336 & (1 \\le r \\le 3), \\\\ 2q - 335 & (4 \\le r \\le 5) \\end{cases}\n$$\n\nand thus for $n$ less than or equal to 2016, $(a_{n+5} + a_n) - (a_{n+2} + a_{n+3}) = (a_{(n+3)+2} - a_{n+3}) - (a_{n+2} - a_n)$ is equal to\n$$\n\\begin{cases} (2q - 336) - (2q - 337) = 1 & (r = 0), \\\\ (2q - 335) - (2q - 336) = 1 & (r = 1, 2), \\\\ (2(q + 1) - 337) - (2q - 336) = 1 & (r = 3), \\\\ (2(q + 1) - 336) - (2q - 335) = 1 & (r = 4, 5) \\end{cases}\n$$\nwhich is positive hence the condition is satisfied.\n\nWe have proved the answer is 85008.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34793, "subject": "Mathematics (Multi-modal)", "question": "There are three distinct positive integers written on the blackboard. When real numbers $a$, $b$, $c$ are on the blackboard, consider the procedure that replaces those three numbers with $\\frac{b+c}{2}$, $\\frac{c+a}{2}$, $\\frac{a+b}{2}$ at the same time. After this procedure is done $2021$ times, all three numbers on the blackboard are positive integers. Determine the minimum value of the sum of initial three positive integers on the blackboard.", "options": [], "answer": "3 * 2^2021 + 3", "solution": "$3 \\cdot 2^{2021} + 3$\n\nFor integers $n = 0, \\dots, 2021$, let $a \\le b \\le c$ be three numbers on the blackboard after the procedure is done $n$ times and let $p_n = c - b$, $q_n = b - a$. Here $n = 0$ means the initial status. When the procedure is done once, three numbers $a \\le b \\le c$ are replaced with $\\frac{a+b}{2} \\le \\frac{a+c}{2} \\le \\frac{b+c}{2}$ hence $p_{n+1} = \\frac{b-a}{2} = \\frac{q_n}{2}$, $q_{n+1} = \\frac{c-b}{2} = \\frac{p_n}{2}$ holds. Therefore $p_{2021} = \\frac{q_0}{2^{2021}}$, $q_{2021} = \\frac{p_0}{2^{2021}}$. Initial three numbers are distinct thus neither of $p_0, q_0$ is $0$ and then neither of $p_{2021}, q_{2021}$ is $0$. All three numbers after $2021$ procedures are positive integers hence $p_{2021} \\ge 1$, $q_{2021} \\ge 1$ and $p_0 \\ge 2^{2021}$, $q_0 \\ge 2^{2021}$. The minimum number of initial three numbers is greater than or equal to $1$ thus the sum of initial three numbers is greater than or equal to $1 + (1 + 2^{2021}) + (1 + 2 \\cdot 2^{2021}) = 3 \\cdot 2^{2021} + 3$.\n\nWe show $1$, $1 + 2^{2021}$, $1 + 2 \\cdot 2^{2021}$ satisfy the condition of initial three numbers. Discussion above shows $p_{2021} = 1$, $q_{2021} = 1$. The sum of three numbers is kept unchanged by the procedure thus the sum is $3 \\cdot 2^{2021} + 3$ after $2021$ procedures. Therefore three numbers after $2021$ procedures are $2^{2021}$, $2^{2021} + 1$, $2^{2021} + 2$ and these are all integers. Hence the answer is $3 \\cdot 2^{2021} + 3$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34794, "subject": "Mathematics (Multi-modal)", "question": "As shown in the following figure, there are four types of blocks formed by four cubes of side one. How many ways are there for putting four blocks of these types in a $2 \\times 2 \\times 4$ rectangular box so that they do not stick out?\nNote that we can use multiple blocks of the same type, and blocks can be rotated. Additionally, we distinguish ways which coincide with each other by rotating the box.\n![](attached_image_1.png)\n![](attached_image_2.png)\n![](attached_image_3.png)\n![](attached_image_4.png)", "options": [], "answer": "379", "solution": "$379$\nDenote a cube of side one as a *small cube*. The rectangular box consists of $16$ small cubes, and we denote a cube of side two (formed by eight small cubes) in the box as a *medium cube*.\nConsider the case where there are four blocks in the box. For each block in the box, there exists a medium cube containing that block. We choose one such medium cube and call it *circumscribed medium cube* of the block. There are four circumscribed medium cubes, but the rectangular box contains only three medium cubes. By the pigeonhole principle, there exist two blocks with common circumscribed medium cubes. Since the sum of the volumes of the two blocks is equal to the volume of a medium cube, these two blocks form a medium cube.\nNow, we calculate the number of cases to combine two blocks to form a medium cube. First, we distinguish the order of these two blocks. As shown in the figure below, we denote four types of blocks as (a), (b), (c), and (d), respectively. Note that when the position of the first block is given, the shape and orientation of the second block are uniquely determined if there exists such a second block that forms a medium cube with the first.\n![](attached_image_5.png)\n(a)\n![](attached_image_6.png)\n(b)\n![](attached_image_7.png)\n(c)\n![](attached_image_8.png)\n(d)\n* In the case where the first block is (a), there is a one-to-one correspondence between the position of the first block and the location of the vertex of the medium cube where the black dot in the figure coincides with it. Then we can combine another (a) to form a medium cube. Since there are eight vertices in the cube, there are eight combinations.\n* In the case where the first block is (b), there is a one-to-one correspondence between the position of the first block and the location of the edge of the medium cube where the bold line in the figure coincides with it. Then we can combine another (b) to form a medium cube. Since there are twelve edges in the cube, there are twelve combinations.\n* In the case where the first block is (c), the same argument as (b) holds from symmetry. Thus there are twelve combinations.\n* In the case where the first block is (d), there is a one-to-one correspondence between the position of the first block and the location of the face of the medium cube where the shaded area in the figure coincides with it. Then we can combine another (d) to form a medium cube. Since there are six faces in the cube, there are six combinations.\nTherefore, there are a total of $8 + 12 + 12 + 6 = 38$ combinations, and counting without distinguishing the first and second block yields $38 \\div 2 = 19$ combinations.\n\nFinally, we consider the position of the medium cube formed by two blocks in the box. Denote the two $2 \\times 2$ faces of the box as *upper face* and *lower face*, respectively. Among three medium cubes, let *A* be the one containing the upper face, *B* containing the lower face, and *C* containing neither. If *A* is formed by two blocks, *B* is also formed by two blocks, and vice versa. Thus,\n$$\n\\#\\{\\text{total cases}\\} = \\#\\{\\text{both A and B are formed by two blocks}\\} + \\#\\{\\text{C is formed by two blocks}\\} - \\#\\{\\text{A, B, C are all formed by two blocks}\\}.\n$$\n* In the case where *A* and *B* are formed by two blocks, there are $19 \\times 19 = 361$ ways to put blocks.\n\n* In the case where C is formed by two blocks, the remaining two blocks are both (d). Hence there are $19$ ways to put blocks.\n* In the case where A, B, and C are all formed by two blocks, all four blocks are (d) and put in the box so that the $2 \\times 2$ faces are parallel to the top face, thus there is only one way to put blocks.\nTherefore, the answer is $361 + 19 - 1 = 379$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34795, "subject": "Mathematics (Multi-modal)", "question": "Let $n$ be a positive integer. Determine all integers $1 \\le k \\le 2n^2$ satisfying the following condition.\n\n> There is a $2n \\times 2n$ board. When $k$ distinct cells are chosen and colored black, while the other cells are colored white, the minimum number of the $2 \\times 2$ squares which have both black and white cells is $2n-1$.", "options": [], "answer": "All integers k with n^2 − n + 1 ≤ k ≤ n^2, and all multiples of 2n with n^2 + 1 ≤ k ≤ 2n^2.", "solution": "In this answer, the rows are numbered from the top and, the columns are numbered from the left. We denote the cell in the $i$-th row, the $j$-th column by $(i, j)$, $2 \\times 2$ square consisting of $(i, j)$, $(i+1, j)$, $(i, j+1)$, $(i+1, j+1)$ by $[i, j]$. Also, a set of cells is said to be mixed, if it has both black and white cells.\n\nFirst, we consider the case $1 \\le k \\le n^2$. Let $0 \\le a \\le n-1$, $1 \\le b \\le n$ be integers satisfying $k = an + b$. We color cells $(i, j)$ black if $1 \\le i \\le a$, $1 \\le j \\le n$ or $i = a+1$, $1 \\le j \\le b$ and color the other cells white. In this coloring, $[i, j]$ is mixed if and only if $1 \\le i \\le a$, $j = n$ or $i = a$, $b \\le j < n$, or $i = a+1$, $1 \\le j \\le b$. Hence, the number of mixed $2 \\times 2$ squares is $b$ if $a = 0$, $n+a$ if $a \\ge 1$. Therefore, $k \\le n^2 - n$ does not satisfy the condition in the problem statement, while for $n^2 - n + 1 \\le k \\le n^2$, we can color the board such that there are exactly $2n-1$ mixed $2 \\times 2$ squares.\n\nSecondly, we consider the case $n^2 - n + 1 \\le k \\le 2n^2$. We show that there exist at least $2n-1$ mixed $2 \\times 2$ squares in this case. In the case that all rows are mixed, there exists $1 \\le j < 2n$ for any $1 \\le i < 2n$ such that the colors of $(i, j)$ and $(i, j+1)$ are different, and $[i, j]$ is mixed for such $j$. Hence, the number of mixed $2 \\times 2$ squares is at least $2n-1$. Similarly, this argument works also in the case all columns are mixed. Therefore, we only have to check the case when there exist a row and a column whose all cells have the same color. We show the following lemma.\n\n**Lemma.** Let $R, C$ be positive integers. Each cell in a $R \\times C$ board is colored black or white. If all cells in the first row and the first column have the same color, and there are $m$ cells which have the other color, the number of mixed $2 \\times 2$ squares is at least $2\\sqrt{m} - 1$.\n\n**Proof.** Since the case $m=0$ is trivial, we assume that $m \\ge 1$. When the number of mixed rows is $a$ and the number of mixed columns is $b$, we show that there exist at least $a+b-1$ mixed $2 \\times 2$ squares. Since rows and columns are mixed if they have a cell whose color is different from that of the top left cell, $ab \\ge m$ holds. We only have to show it since $a+b \\ge 2\\sqrt{ab} \\ge 2\\sqrt{m}$ by AM-GM inequality.\n\nWe create a graph $G$ whose vertices are mixed $2 \\times 2$ squares and the set of edges are defined as follows. (The terms of graph theory in the following are explained at the end of this answer.)\n\nFor each integer $1 < i < R$, if the $i$-th row is mixed, we choose an integer $1 \\le j < C$ such that $(i, j)$ and $(i, j+1)$ have different colors and connect $[i-1, j]$ and $[i, j]$ by an edge. Similarly, for each integer $1 < j < C$, if the $j$-th column is mixed, we choose an integer $1 \\le i < R$ such that $(i, j)$ and $(i+1, j)$ have different colors and connect $[i, j-1]$ and $[i, j]$ by an edge.\n\nWe show that $G$ has no cycle. Take any edge in $G$. Without loss of generality, we can assume that this edge connects $[i-1, j]$ and $[i, j]$ for some $1 < i < R$ and $1 \\le j < C$. By the definition of the set of edge of $G$, none of the other edges connect a $2 \\times 2$ square located in the 1st to $i$-th rows and a $2 \\times 2$ square located in the $i$-th to $R$-th rows, from which $G$ has no cycle.\n\n$G$ has at least one vertex by $m \\ge 1$. Since $G$ has no cycle, each connected component of $G$ is a tree, and the number of the vertices is bigger than that of the edges exactly by 1. Therefore, denoting the number of the vertices and the edges and the connected components of $G$ by $V$, $E$, $C$ respectively, we have $V = E + C$. By the definition of the set of edges, $E \\ge (a-1) + (b-1)$ holds and, combined with $C \\ge 1$, we have $V \\ge a+b-1$, which is what we wanted to show. ■\n\nWe take $1 \\le i, j, \\le 2n$ such that all the cells in the $i$-th row and $j$-th column have the same color. We denote the number of cells with the other color\n* in the 1st to $i$-th rows, the 1st to $j$-th columns by $a$,\n* in the 1st to $i$-th rows, the $j$-th to $2n$-th columns by $b$,\n* in the $i$-th to $2n$-th rows, the 1st to $j$-th columns by $c$,\n* in the $i$-th to $2n$-th rows, the $j$-th to $2n$-th columns by $d$.\n\nDenoting $\\max\\{0, 2\\sqrt{m} - 1\\}$ by $f(m)$, the number of mixed $2 \\times 2$ squares is at least $f(a) + f(b) + f(c) + f(d)$ by the lemma. We define $g(m) = \\frac{f(m)}{m}$ for $m \\ge 1$ and $g(0) = g(1) = 1$. Then, $f$ is weakly monotonically increasing and $f(m) = mg(m)$ for any $m \\ge 0$. Also, since for any $1 \\le l \\le m$,\n$$\n\\begin{aligned}\ng(m) - g(l) &= \\frac{2\\sqrt{m} - 1}{m} - \\frac{2\\sqrt{l} - 1}{l} \\\\\n&= \\left( \\frac{2}{\\sqrt{m}} - \\frac{2}{\\sqrt{l}} \\right) - \\left( \\frac{1}{m} - \\frac{1}{l} \\right) \\\\\n&= \\left( \\frac{2}{\\sqrt{m}} - \\frac{2}{\\sqrt{l}} \\right) \\left( 1 - \\left( \\frac{1}{2\\sqrt{m}} + \\frac{1}{2\\sqrt{l}} \\right) \\right) \\\\\n&\\le 0\n\\end{aligned}\n$$\n\nequals to $k$ or $4n^2 - k$, we have $a+b+c+d \\ge k \\ge n^2 - n + 1$ by $n^2 - n + 1 \\le k \\le 2n^2$ and have\n$$\n\\begin{aligned}\nf(a) + f(b) + f(c) + f(d) \\\\\n&= ag(a) + bg(b) + cg(c) + dg(d) \\\\\n&\\ge ag(a+b+c+d) + bg(a+b+c+d) + cg(a+b+c+d) + dg(a+b+c+d) \\\\\n&= (a+b+c+d)g(a+b+c+d) \\\\\n&= f(a+b+c+d) \\\\\n&\\ge f(n^2 - n + 1) \\\\\n&> 2n - 2.\n\\end{aligned}\n$$\n\nTherefore, there exist at least $2n-1$ mixed $2 \\times 2$ squares. Especially, for $k$ in $n^2-n+1 \\le k \\le n^2$ satisfy the condition in the problem statement.\n\nLastly, we consider the case $n^2 + 1 \\le k \\le 2n^2$. We show that $k$ is a multiple of $2n$ if the number of the mixed $2 \\times 2$ squares is $2n-1$. Since the case $n=1$ is obvious, we assume that $n \\ge 2$.\n\nIf all cells in a row and a column have the same color, the argument above shows that there exist at least $f(k)$ mixed $2 \\times 2$ squares. By $f(k) > 2n-1$, this case is excluded. Hence, without loss of generality, we can assume that all the rows are mixed. In this case, for any $1 \\le i < 2n$, there exists exactly one $1 \\le j < 2n$ such that $[i, j]$ is mixed. Therefore, for any $1 \\le i \\le 2n$, there exists exactly one $1 \\le j < 2n$ such that $(i, j)$ and $(i, j+1)$ have different colors and $j$ is the same value for any $i$. The shared value $j$ is denoted simply by $j$. If $(i, 1)$ and $(i+1, 1)$ have different colors for some $1 \\le i < 2n$, $(i, 2n)$ and $(i+1, 2n)$ also have different colors and both $[i, 1]$ and $[i, 2n-1]$ are mixed, which contradicts since $n \\ge 2$. Therefore, since $(i, 1)$ and $(i+1, 1)$ have the same color for any $1 \\le i < 2n$, the number of the cells which have the same color as $(1, 1)$ is $2jn$ and the number of the cells which have the same color as $(1, 2n)$ is $2n(2n-j)$, which shows that $k$ is a multiple of $2n$.\n\nWe assume that $k$ is a multiple of $2n$ and $a = \\frac{k}{2n}$. When the cell in the 1st to $a$-th columns are colored black and the other cells are colored white, the number of mixed $2 \\times 2$ squares is $2n-1$. Therefore, in the case $n^2 + 1 \\le k \\le 2n^2$, the condition in the problem statement is satisfied if and only if $k$ is a multiple of $2n$.\n\nFrom all the arguments above, the values $k$ which satisfy the condition in the problem statements are all $n^2-n+1 \\le k \\le n^2$ and all multiples of $2n$ in $n^2+1 \\le k \\le 2n^2$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34796, "subject": "Mathematics (Multi-modal)", "question": "For every positive integer $n$, let $f(n)$ be the smallest positive integer such that $f(n)$ is prime to $n$ and $f(n) + 1$ is prime to $n + 1$. How many different integers will appear in $\\{f(1), f(2), \\dots, f(10^{10})\\}$?", "options": [], "answer": "11", "solution": "11\n\nFirst, we prove $f(n) = p-1$ for a positive integer $n$ and the smallest prime $p$ that does not divide $n+1$. For any integer $m$ with $1 \\le m < p-1$, $m+1$ has a prime factor $q$ with $q < p$. Since $q$ must divide $n+1$ from the definition of $p$, $m+1$ cannot be prime to $n+1$, thus $f(n) \\ge p-1$. On the other hand, every prime factor of $p-1$ must divide $n+1$, again from the definition of $p$, thus it cannot divide $n$. Hence $p-1$ is prime to $n$ and $p$ is prime to $n+1$, which yields $f(n) = p-1$.\n\nLet $p_n$ denote the $n$-th smallest prime and let $a_k = p_1p_2\\cdots p_k - 1$. $\\{a_k\\}$ is a strictly increasing sequence with $6469693229 = a_{10} \\le 10^{10} < a_{11} = 200560490129$. From the above statement, if $1 \\le n \\le 10^{10}$ then there exists $1 \\le k \\le 11$ such that $f(n) = p_k - 1$ (note that $n+1 \\le a_{11}$ and cannot be divided by at least one of $\\{p_1, p_2, \\dots, p_{11}\\}$). On the other hand, $f(2) = 1 = p_1 - 1$ and $f(a_k) = p_{k+1} - 1$ for $1 \\le k \\le 10$, since $a_k + 1$ is divided by $p_1, p_2, \\dots, p_k$ and not by $p_{k+1}$. Hence, $\\{f(1), f(2), \\dots, f(10^{10})\\}$ consists of 11 integers, $p_1 - 1, p_2 - 1, \\dots, p_{11} - 1$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34797, "subject": "Mathematics (Multi-modal)", "question": "In triangle $ABC$, let $P$ and $Q$ be points on side $BC$ and suppose that the orthocenter of triangle $ACP$ and the orthocenter of triangle $ABQ$ coincide. Given that $AB = 10$, $AC = 11$, $BP = 5$, $CQ = 6$, find the length of $BC$.", "options": [], "answer": "sqrt(231)", "solution": "Let $H$ be the orthocenter of triangle $ABC$ and $K$ be the common orthocenter of triangle $ABQ$ and triangle $ACP$. Let $D$ be the foot of the perpendicular from $A$ to line $BC$. By definition, $A, D, H, K$ are collinear.\n\nSince $AB = 10$, $AC = 11$ and $BC > 5$, both $\\angle B$ and $\\angle C$ are less than $90^\\circ$. Therefore $D$ lies on side $BC$ and $D$ is different from $H$. Assume that $D$ and $K$ coincide, then two points $P$ and $Q$ coincide with $D$. The Pythagorean theorem shows that $AB^2 - BP^2 = AD^2 = AC^2 - CQ^2$, which is a contradiction because $10^2 - 5^2 \\ne 11^2 - 6^2$. It follows that $D$ and $K$ are different points.\n\nTwo lines $BH$ and $PK$ are both perpendicular to side $AC$. Therefore these two lines are parallel and $DB : BP = DH : HK$ follows. Similarly, two lines $CH$ and $QK$ are parallel and $DC : CQ = DH : HK$ follows. From the above, it follows that $DB : BP = DC : CQ$ and $DB : DC = BP : CQ = 5 : 6$. Set $DB = 5t$, $DC = 6t$ where $t$ is a real number, then by using Pythagorean theorem for triangles $ABD$ and $ACD$ we have $10^2 - (5t)^2 = 11^2 - (6t)^2$. Since the required length is $BC = 11t$, the answer is $\\sqrt{231}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34798, "subject": "Mathematics (Multi-modal)", "question": "Determine the number of tuples of integers $(a_1, a_2, \\dots, a_{17})$ which satisfy $2 \\le a_i \\le 20$ for all $i = 1, \\dots, 17$ and\n$$\na_1^{a_2} \\cdots a_{16}^{a_{17}} \\equiv a_2^{a_3} \\cdots a_{17}^{a_{17}} \\equiv 1 \\pmod{17}.\n$$\nHere the exponential is calculated in order from upper right two numbers.", "options": [], "answer": "2042 * 19^14", "solution": "$\\boxed{2042 \\cdot 19^{14}}$\n\nFirst we show the following lemma.\n\n**Lemma.** Let $a, b, c$ be integers satisfying $a \\neq 0 \\pmod{17}$, $b \\ge 1$, $c \\ge 4$. Then $a^{b^c} \\equiv 1 \\pmod{17}$ holds if and only if $a \\equiv 1 \\pmod{17}$ or $b$ is even.\n\n**Proof.** If $a \\equiv 1 \\pmod{17}$, obviously $a^{b^c} \\equiv 1 \\pmod{17}$ holds. If $b$ is even, $c \\ge 4$ shows $b^c$ is divisible by $16$. By Fermat's little theorem $a^{16} \\equiv 1 \\pmod{17}$ holds thus $a^{b^c} \\equiv 1 \\pmod{17}$. We show the converse. If $a^{b^c} \\equiv 1 \\pmod{17}$ holds, we can take minimum positive integer $d$ satisfying $a^d \\equiv 1 \\pmod{17}$. If $a \\neq 1 \\pmod{17}$ then $d \\neq 1$. Assume $b^c$ is not divisible by $d$, then $b^c$ can be written in the form $b^c = sd + t$ with a non-negative integer $s$ and an integer $t$ satisfying $1 \\le t < d$ hence\n$$\na^t \\equiv (a^d)^s \\cdot a^t = a^{b^c} \\equiv 1 \\pmod{17},\n$$\nwhich contradicts to the minimality of $d$. Therefore $b^c$ is divisible by $d$. Similarly $16$ is divisible by $d$ and $d \\neq 1$ shows $d$ is even. Hence $b^c$ is even and thus $b$ is even. ■\n\nIf $a_1 \\equiv 0 \\pmod{17}$ or $a_2 \\equiv 0 \\pmod{17}$ then the condition is not satisfied. From here we assume $a_1 \\neq 0 \\pmod{17}$ and $a_2 \\neq 0 \\pmod{17}$. Let\n$$\nc_1 = a_3^{a_4^{a_5^{a_6^{a_7}}}}, \\quad c_2 = a_4^{a_5^{a_6^{a_7}}},\n$$\nthen $c_1 \\ge 2^2 = 4$, $c_2 \\ge 2^2 = 4$ holds. We have two cases; when $a_2$ is odd and when it is even.\n\n* When $a_2$ is odd.\n\nLemma shows $a_1^{a_2^{c_1}} \\equiv 1 \\pmod{17}$ if and only if $a_1 \\equiv 1 \\pmod{17}$. Since $a_2 \\neq 18$, we have $a_2 \\neq 1 \\pmod{17}$ and then lemma shows $a_2^{a_3^{c_2}} \\equiv 1 \\pmod{17}$ if and only if $a_3$ is even. Therefore the number of tuples satisfying the condition is $1 \\cdot 8 \\cdot 10 \\cdot 19^{14} = 80 \\cdot 19^{14}$.\n\n* When $a_2$ is even.\n\nWe have $a_1 \\neq 0 \\pmod{17}$ then lemma shows $a_1^{a_2^{c_1}} \\equiv 1 \\pmod{17}$. By lemma, $a_2^{a_3^{c_2}} \\equiv 1 \\pmod{17}$ holds if and only if $a_2 \\equiv 1 \\pmod{17}$ or $a_3$ is even. Therefore the number of tuples satisfying the condition is $18 \\cdot 1 \\cdot 19^{15} + 18 \\cdot 9 \\cdot 10 \\cdot 19^{14} = 1962 \\cdot 19^{14}$.\n\nHence the total number of tuples satisfying the condition is $80 \\cdot 19^{14} + 1962 \\cdot 19^{14} = 2042 \\cdot 19^{14}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34799, "subject": "Mathematics (Multi-modal)", "question": "Let $A$ be the number of cases such that each cell of a $2021 \\times 2021$ table is filled with one of $1$, $2$, or $3$ in such a way that any $2 \\times 2$ square in the table sums up to $8$. Answer the remainder after dividing $A$ by $100$.", "options": [], "answer": "3", "solution": "$\\boxed{3}$\n\nFor $1 \\le i \\le 2021$ and $1 \\le j \\le 2021$, let $(i, j)$ denote the cell in the $i$-th row and the $j$-th column, and let $f(i, j)$ denote the number filled in $(i, j)$. We also define $g(i, j)$ as\n$$\ng(i, j) = \\begin{cases} f(i, j) & (i + j \\text{ is even}), \\\\ 4 - f(i, j) & (i + j \\text{ is odd}). \\end{cases}\n$$\n\nIt is easy to check that $g(i, j) \\in \\{1, 2, 3\\}$ and $g$ satisfies, for $1 \\le i \\le 2020$ and $1 \\le j \\le 2020$,\n$$\ng(i+1, j) - g(i, j) = g(i+1, j+1) - g(i, j+1). \\quad (*)\n$$\nIndeed, since $f(i, j) + f(i, j + 1) + f(i + 1, j) + f(i + 1, j + 1) = 8$, if $i + j$ is even,\n$$\n\\begin{aligned}\ng(i+1, j) - g(i, j) &= (4 - f(i+1, j)) - f(i, j) \\\\\n&= f(i+1, j+1) - (4 - f(i, j+1)) \\\\\n&= g(i+1, j+1) - g(i, j+1)\n\\end{aligned}\n$$\nand if $i + j$ is odd,\n$$\n\\begin{aligned}\ng(i+1, j) - g(i, j) &= f(i+1, j) - (4 - f(i, j)) \\\\\n&= (4 - f(i+1, j+1)) - f(i, j+1) \\\\\n&= g(i+1, j+1) - g(i, j+1).\n\\end{aligned}\n$$\nOn the other hand, if we assign $g(i, j)$ for $1 \\le i \\le 2021$ and $1 \\le j \\le 2021$ in such a way that $g(i, j) \\in \\{1, 2, 3\\}$ and $g$ satisfies (*),\n$$\n\\tilde{f}(i, j) = \\begin{cases} g(i, j) & (i + j \\text{ is even}), \\\\ 4 - g(i, j) & (i + j \\text{ is odd}). \\end{cases}\n$$\nsatisfies the restriction of the original problem. Hence, $A$ equals to the number of cases of defining $g(i, j)$ under the above condition.\n\nLet $M$ and $m$ denote the maximum and the minimum of $\\{g(1, 1), \\dots, g(1, 2021)\\}$, respectively. Having (*) for every $1 \\le i \\le 2020$ and $1 \\le j \\le 2020$ is equivalent to the condition that $g(k+1, \\ell) - g(1, \\ell)$ is constant for $1 \\le \\ell \\le 2021$ for each $1 \\le k \\le 2020$. We denote this constant value by $d_k$. Since $1 \\le g(i, j) \\le 3$ for every $(i, j)$ is equivalent to $1 \\le m + d_k$ and $M + d_k \\le 3$, or $1 - m \\le d_k \\le 3 - M$, for every $1 \\le k \\le 2020$, there are $(3 + m - M)^{2020}$ possibilities for assigning $g(i, j)$ when $g(1, 1), \\dots, g(1, 2021)$ are given.\n\n* $M - m = 0$.\n\nIn this case we have $g(1, 1) = \\dots = g(1, 2021)$ and there are only $3$ possibilities for $(g(1, 1), \\dots, g(1, 2021))$. For each possibility, we have $3^{2020}$ ways of assigning the rest of $g(i, j)$, thus the number of cases is $3 \\cdot 3^{2020} = 3^{2021}$.\n\n* $M - m = 1$.\n\nIn this case we have $m = 1$ or $2$. For each $m$, we have $2^{2021} - 2$ possibilities for $(g(1, 1), \\dots, g(1, 2021))$. Thus, the number of cases is $2 \\cdot ((2^{2021} - 2) \\cdot 2^{2020}) = 2^{4042} - 2^{2022}$.\n\n* $M - m = 2$.\n\nIn this case we have $3^{2021} - 2 \\cdot (2^{2021} - 2) - 3$ possibilities for $(g(1, 1), \\dots, g(1, 2021))$. Thus, the number of cases is $(3^{2021} - 2 \\cdot (2^{2021} - 2) - 3) \\cdot 1^{2020} = 3^{2021} - 2 \\cdot (2^{2021} - 2) - 3$.\n\n$$\nA = 3^{2021} + (2^{4042} - 2^{2022}) + (3^{2021} - 2 \\cdot (2^{2021} - 2) - 3) = 2 \\cdot 3^{2021} + 2^{4042} - 2^{2023} + 1.\n$$\n\nTo obtain the remainder after dividing $A$ by $100$, we compute $A \\pmod{4}$ and $A \\pmod{25}$. Since $3^{2021} \\equiv 3 \\pmod{4}$, we have $A \\equiv 2 \\cdot 3 + 0 - 0 + 1 \\equiv 3 \\pmod{4}$. And since $2^{20} \\equiv 3^{20} \\equiv 1 \\pmod{25}$ from Euler's totient theorem,\n$$\nA \\equiv 2 \\cdot 3 \\cdot (3^{20})^{101} + 2^2 \\cdot (2^{20})^{202} - 2^3 \\cdot (2^{20})^{101} + 1 \\equiv 6 + 4 - 8 + 1 \\equiv 3 \\pmod{25}.\n$$\nThis concludes that $A \\equiv 3 \\pmod{100}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34800, "subject": "Mathematics (Multi-modal)", "question": "Alex and Betty play a game with a row of consecutive $2022$ cells. At the start of the game, the name of Alex is written in the $1$st, $3$rd, ..., $2021$st cells from the left and the name of Betty is written in the $2$nd, $4$th, ..., $2022$nd cells from the left. Starting from Alex, two players do the following operation in turn.\nChoose two cells with his or her own name which are not adjacent such that all cells between the two have the opponent's name. Then replace opponent's names with his or her own names for all cells between the chosen two.\nThe game ends when one player is not able to do the operation. Determine the largest positive integer $m$ satisfying the following condition.\nNo matter how Betty does the operations, Alex can play such that there are $m$ or more cells with Alex's name at the end of the game.", "options": [], "answer": "1011", "solution": "At the start of the game, there are $2021$ pairs of two adjacent cells with different names and the number of such pairs is reduced by two per one operation. If there are three or more pairs of two adjacent cells with different names then a player can do the operation hence the number of such pairs is one at the end of the game. Therefore the total number of operations done by two players is $1010$.\n\nWhen Alex does the operation, there are three or more pairs of two adjacent cells with different names. Let $(X, Y)$ be the leftmost one among all such pairs and let $(Z, W)$ be the second one from the left. Assume $X$ lies to the left of $Y$ and $Z$ lies to the left of $W$ then $X$ and $W$ have the name of Alex and all cells between $X$ and $W$ have the name of Betty. Therefore by doing the operation to $X$ and $W$, Alex can increase the number of consecutive cells with Alex's name beginning from the leftmost cell by two. When there are consecutive cells with Alex's name beginning from the leftmost cell, they are not replaced by Betty's operation hence the number of such cells is not reduced by Betty's operation. Alex does the operation $505$ times thus $m = 1 + 2 \\cdot 505 = 1011$ satisfies the condition. On the other hand, Betty can similarly make $1011$ or more consecutive cells with Betty's name beginning from the rightmost cell hence we have $m \\le 2022 - 1011 = 1011$. Therefore the answer is $1011$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34801, "subject": "Mathematics (Multi-modal)", "question": "Find the smallest four-digit integer divisible by three and greater than $2022$ such that there are exactly two types of numbers that appear in the digits.", "options": [], "answer": "2112", "solution": "We call four-digit integers **good** if their digits consist of exactly two types of numbers.\nFirst, the upper two digits of integers in $[2000, 2099]$ are $20$. So the only good integers in the range are $2000$, $2002$, $2020$, and $2022$. But all of them are less than or equal to $2022$.\nSecond, the upper two digits of integers in $[2100, 2199]$ are $21$. So the only good integers in the range are $2111$, $2112$, $2121$, and $2122$. Since $2111$ is not divisible by three, and $2112$ is divisible by three, the answer is $2112$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34802, "subject": "Mathematics (Multi-modal)", "question": "Determine the number of ways to choose distinct $25$ integers from $1$ to $50$ such that for any two integers chosen, one is not a divisor of the other.", "options": [], "answer": "1632", "solution": "For each odd integer $n$ from $1$ to $49$, define the group of $n$ as the set of integers from $1$ to $50$ which can be expressed as $n \\cdot 2^k$ for a non-negative integer $k$. Then each integer from $1$ to $50$ belongs to only one group.\nFor any two integers in the same group, one is a divisor of the other. Therefore we can choose at most one integer from the same group when we choose $25$ integers satisfying the condition. The number of groups is $25$, hence we need to choose one integer from each group.\nFirstly, there is only one way to choose from each group of $27$, $29$, $31$, $33$, $35$, $37$, $39$, $41$, $43$, $45$, $47$, $49$. Then $27$ is chosen, hence the integer chosen from the group of $9$ is a multiple of $18$. Since $18$ is a multiple of $3$ and $6$, the integer chosen from the group of $3$ is a multiple of $12$. Since $12$ is a multiple of $1$, $2$ and $4$, the integer chosen from the group of $1$ is a multiple of $8$. Integers $39$ and $45$ are also chosen, thus we need to choose $26$ and $30$ from each group of $13$ and $15$. In the following, we consider how to choose integers from other groups.\n\nSince $33$ is chosen, $11$ is not chosen. Integers $22$ and $44$ can not be a divisor of integers in other groups and they can not be a multiple of integers in other groups since $1$, $2$, and $4$ are not chosen. Therefore the number of ways to choose one integer from the group of $11$ is $2$, which is independent of the choice from other groups.\nIntegers $25$ and $50$ can not be a divisor of integers in other groups. Since $30$ is chosen, $1$, $2$, $5$, and $10$ are not chosen, thus $25$ and $50$ can not be a multiple of integers in other groups. Therefore the number of ways to choose one integer from the group of $25$ is $2$, which is independent of the choice from other groups.\nIntegers $17$ and $34$ can not be a divisor of integers in other groups and they can not be a multiple of integers in other groups since $1$ and $2$ are not chosen. Therefore the number of ways to choose one integer from the group of $17$ is $2$, which is independent of the choice from other groups. This is the same for the group of $19$ and $23$.\nThe choice of one integer each from the group of $7$ and $21$ must be $(14, 21)$, $(28, 21)$, or $(28, 42)$. Integers $14$, $28$, $21$, and $42$ can not be a divisor of integers in other groups and they can not be a multiple of integers in other groups since $1$, $2$, $3$, $4$, and $6$ are not chosen. Therefore the number of ways to choose one integer each from the group of $7$ and $21$ is $3$, which is independent of the choice from other groups. We need to determine the way to choose from the group of $1$, $3$, $5$, and $9$.\n\nFrom the group of $1$ we need to choose a multiple of $8$.\n* If $8$ is chosen, the choice from each group of $3$, $5$, and $9$ must be $12$, $20$, and $18$, thus we have only one way.\n* If $16$ is chosen, the choice from the group of $5$ must be $20$ or $40$, and the choice from the group of $3$ and $9$ must be $(12, 18)$, $(24, 18)$, or $(24, 36)$.\n* If $32$ is chosen, the choice from the group of $5$ must be $20$ or $40$, and the choice from the group of $3$ and $9$ must be $(12, 18)$, $(24, 18)$, $(24, 36)$, $(48, 18)$, or $(48, 36)$.\nHence the number of ways to choose from the group of $1$, $3$, $5$, and $9$ is $1 + 2 \\cdot 3 + 2 \\cdot 5 = 17$.\n\nTherefore the answer is $2^5 \\cdot 3 \\cdot 17 = 1632$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34803, "subject": "Mathematics (Multi-modal)", "question": "For each positive integer $n$, define $f(n)$ by\n$$\n f(n) = \\begin{cases}\n n^{100} & \\text{(if digit sum of $n$ is even)}, \\\\\n -n^{100} & \\text{(if digit sum of $n$ is odd)}.\n \\end{cases}\n$$\nLet $S = f(1) + f(2) + \\dots + f(10^{100} - 1)$, and determine the largest non-negative integer $m$ such that $S$ is divided by $5^m$. (You can use the fact without proof that $S$ is nonzero.)", "options": [], "answer": "5074", "solution": "In the following, we denote $d = 100$ and let $f(0) = 0$. Note that $S = f(0) + f(1) + \\dots + f(10^d - 1)$. For any integer $n$ such that $0 \\le n \\le 10^d$, there exists unique $(a_0, a_1, \\dots, a_{d-1})$ with $0 \\le a_i \\le 9$ ($i = 0, 1, \\dots, d-1$) such that\n$$\nn = a_0 + a_1 \\cdot 10 + \\dots + a_{d-1} \\cdot 10^{d-1}.\n$$\nIf $n > 0$,\n$$\nf(n) = (-1)^{a_0+a_1+\\dots+a_{d-1}} (a_0 + a_1 \\cdot 10 + \\dots + a_{d-1} \\cdot 10^{d-1})^d \\quad (*)\n$$\n\n(and it is obvious to check it also holds for $n = 0$). Hence, $S$ equals to the sum of $(*)$ for all $(a_0, a_1, \\dots, a_{d-1})$ with $0 \\le a_i \\le 9$ ($i = 0, 1, \\dots, d-1$).\nBy multinomial theorem,\n$$\n(a_0 + a_1 \\cdot 10 + \\dots + a_{d-1} \\cdot 10^{d-1})^d = \\sum_d \\sum_{b_0+\\dots+d_{d-1}=d, b_i \\ge 0} \\frac{d!}{b_0!b_1!\\dots b_{d-1}!} \\prod_{b_i \\ne 0} (a_i \\cdot 10^i)^{b_i} \\\\\n= \\sum_d \\sum_{b_0+\\dots+d_{d-1}=d, b_i \\ge 0} \\frac{d!}{b_0!b_1!\\dots b_{d-1}!} \\left(\\prod_{b_i \\ne 0} 10^{ib_i}\\right) \\left(\\prod_{b_i \\ne 0} a_i^{b_i}\\right).\n$$\nSince $\\frac{d!}{b_0!b_1!\\dots b_{d-1}!} \\prod_{b_i \\ne 0} 10^{ib_i}$ is independent of $(a_0, a_1, \\dots, a_{d-1})$, it suffices to compute, for each $(b_0, b_1, \\dots, b_{d-1})$,\n$$\n\\sum_{a_0=0}^{9} \\dots \\sum_{a_{d-1}=0}^{9} (-1)^{a_0+a_1+\\dots+a_{d-1}} \\prod_{b_i \\ne 0} a_i^{b_i}.\n$$\n\nIn the case where $b_k \\ne 0$ for some $0 \\le k \\le d-1$, it equals zero since\n$$\n\\begin{aligned}\n\\sum_{a_k=0}^{9} \\left( (-1)^{a_0+a_1+\\dots+a_k+\\dots+a_{d-1}} \\prod_{b_i \\ne 0} a_i^{b_i} \\right)\n&= \\left( \\sum_{a_k=0}^{9} (-1)^{a_0+a_1+\\dots+a_k+\\dots+a_{d-1}} \\right) \\prod_{b_i \\ne 0} a_i^{b_i} \\\\\n&= (1 \\cdot 5 + (-1) \\cdot 5) \\prod_{b_i \\ne 0} a_i^{b_i} \\\\\n&= 0.\n\\end{aligned}\n$$\n\nIn the case where $b_k \\ne 0$ for all $k$, i.e. $b_0 = b_1 = \\dots = b_{d-1} = 1$,\n$$\n(-1)^{a_0+a_1+\\dots+a_{d-1}} \\prod_{b_i \\ne 0} a_i^{b_i} = (-1)^{a_0+a_1+\\dots+a_{d-1}} \\prod_{i=0}^{d-1} a_i = \\prod_{i=0}^{d-1} ((-1)^{a_i} \\cdot a_i).\n$$\n\n$$\n\\prod_{i=0}^{d-1} \\left( \\sum_{a_i=0}^{9} ((-1)^{a_i} \\cdot a_i) \\right) = (-5)^d.\n$$\n\n$b_0 = b_1 = \\dots = b_{d-1} = 1$ implies\n$$\n\\frac{d!}{b_0!b_1!\\dots b_{d-1}!} \\prod_{b_i \\ne 0} 10^{ib_i} = d! \\prod_{i=0}^{d-1} 10^i = d! \\cdot 10^{\\frac{d(d-1)}{2}},\n$$\nand hence\n$$\nS = d! \\cdot 10^{\\frac{d(d-1)}{2}} \\cdot (-5)^d = 100! \\cdot 2^{4950} \\cdot 5^{5050}.\n$$\nThis concludes that the answer is $\\left\\lfloor \\frac{100}{5^1} \\right\\rfloor + \\left\\lfloor \\frac{100}{5^2} \\right\\rfloor + 5050 = 5074$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34804, "subject": "Mathematics (Multi-modal)", "question": "Let $ABC$ be an acute triangle with $AB = 11$, $AC = 10$, and denote the orthocenter by $H$ and the midpoint of $BC$ by $M$. Point $P$ in triangle $ABC$ lies on the circumcircle of triangle $BHC$ and satisfies $\\angle ABP = \\angle CPM$, $PM = 3$. Find the length of $BC$.", "options": [], "answer": "2\\sqrt{21}", "solution": "Let the radius of the circumcircles of triangle $ABC$ and $BHC$ be $R$ and $R'$, respectively. From the sine theorem, we have $\\frac{BC}{\\sin \\angle BAC} = 2R$ and $\\frac{BC}{\\sin \\angle BHC} = 2R'$. Also, by $\\angle BHC = \\angle BAC + \\angle ABH + \\angle ACH = \\angle BAC + 2 \\cdot (90^\\circ - \\angle BAC) = 180^\\circ - \\angle BAC$, we have $\\sin \\angle BAC = \\sin \\angle BHC$. Therefore, $R = R'$.\n\nDenote the intersection of the circumcircle of triangle $BHC$ and line $PM$ other than $P$ by $Q$. Then we have $\\angle PBQ = \\angle PBC + \\angle CBQ = \\angle PBC + \\angle CPQ = \\angle PBC + \\angle ABP = \\angle ABC$. By the sine theorem, we get $\\frac{AC}{\\sin \\angle ABC} = 2R = 2R' = \\frac{PQ}{\\sin \\angle PBQ}$, which implies $PQ = AC = 10$. Therefore, we obtain $QM = PQ - PM = 7$, and by the power of a point theorem, we have $BM \\cdot CM = PM \\cdot QM = 21$. Since $BM = CM$, we obtain $BM = \\sqrt{21}$, and the answer is $BC = 2BM = 2\\sqrt{21}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34805, "subject": "Mathematics (Multi-modal)", "question": "A circle with radius $3$ is inscribed in a trapezoid $ABCD$ such that $AD \\parallel BC$ and both angles $B$ and $C$ are acute. If $AB = 7$ and $CD = 8$, find the area of trapezoid $ABCD$.\n![](attached_image_1.png)", "options": [], "answer": "45", "solution": "Let $E$, $F$, $G$ and $H$ be the points of contact of side $AB$, $BC$, $CD$ and $DA$ respectively to the inscribed circle of trapezoid $ABCD$. Since the lengths of tangents from $A$ to this inscribed circle are equal, $AE = AH$ holds. Similarly we have $BE = BF$, $CF = CG$ and $DG = DH$. Then we have $AD + BC = AH + DH + BF + CF = AE + BE + CG + DG = AB + DC = 7 + 8 = 15$.\n\nLet $I$ be the center of the inscribed circle of trapezoid $ABCD$, then $AD \\perp IH$ and $BC \\perp IF$ hold. Since $AD \\parallel BC$, $H$, $I$, $F$ are collinear. Thus the height of trapezoid $ABCD$ is equal to $FH$, and the area of trapezoid $ABCD$ is $$\\frac{1}{2} \\cdot (AD + BC) \\cdot FH = \\frac{1}{2} \\cdot 15 \\cdot 6 = 45.$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34806, "subject": "Mathematics (Multi-modal)", "question": "Let $N$ be the set of positive integers. Determine all functions $f : N \\to N$ such that, for all positive integers $m$ and $n$,\n$$\nf^{f(n)}(m) + mn = f(m)f(n).\n$$\nNote that $f^k(n) = \\underbrace{f(f(\\cdots f(n)\\cdots))}_{k \\text{ times}}$.", "options": [], "answer": "f(n) = n + 1", "solution": "Let $\\ell$ be a positive integer. By substituting $(m, n) = (f(\\ell), \\ell)$ and $(\\ell, f(\\ell))$ into the original equation and comparing them, we obtain\n$$\nf^{f(\\ell)+1}(\\ell) + \\ell f(\\ell) = f(\\ell)f(f(\\ell)) = f^{f(f(\\ell))}(\\ell) + \\ell f(\\ell),\n$$\nor $f^{f(\\ell)+1}(\\ell) = f^{f(f(\\ell))}(\\ell)$.\nLetting $m = n$ in the original equation yield $f(n)^2 = n^2 + f^{f(n)}(n) > n^2$, or $f(n) > n$. Hence, $f^{k+1}(n) = f(f^k(n)) > f^k(n)$ for any positive integer $k$, which leads to\n$$\nf(n) < f^2(n) < f^3(n) < \\dots\n$$\nIn particular, if $f^s(n) = f^t(n)$ for some positive integers $s, t$, then $s = t$. Combined with $f^{f(\\ell)+1}(\\ell) = f^{f(f(\\ell))}(\\ell)$, we obtain $f(f(\\ell)) = f(\\ell) + 1$.\n\nIn particular, by letting $k = f(n)$ in the above statement, $f^{f(n)}(n) = f(n) + f(n) - 1 = 2f(n) - 1$. We also have $f(n)^2 = n^2 + f^{f(n)}(n)$ (see the second paragraph), and we deduce $(f(n) - 1)^2 = n^2$. Since $f(n) - 1 \\ge 0$, it implies $f(n) - 1 = n$, or $f(n) = n + 1$.\nWe conclude the proof by checking $f(n) = n + 1$ satisfies the original equation. The left side of the equation is $f^{f(n)}(m) + mn = m + f(n) + mn = mn + m + n + 1$; the right is $f(m)f(n) = (m+1)(n+1) = mn + m + n + 1$. Therefore, the answer is $f(n) = n + 1$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34807, "subject": "Mathematics (Multi-modal)", "question": "In isosceles triangle $ABC$ with $AB = AC$, point $O$ is in its interior (not including circumference) and the circle $\\omega$ centered $O$ and passing through $C$ intersects the sides (excluding end points) $BC$ and $AC$ at $D$ and $E$, respectively. Let $\\Gamma$ be the circumcircle of triangle $AEO$ and intersect with $\\omega$ again at $F \\neq E$. Prove that the circumcenter of the triangle $BDF$ lies on $\\Gamma$. In the above, denote by $XY$ the length of line segment $XY$.", "options": [], "answer": "Detailed solution", "solution": "Let $\\angle YXZ$ denote the directed angle between lines $XY$ and $XZ$, measured modulo $180^\\circ$.\n\nSince $OE = OF$, we have $\\angle FAO = \\angle OAE = \\angle OAC$. Hence\n$$\n\\begin{aligned}\n\\angle AOF &= 180^\\circ - \\angle FAO - \\angle OFA \\\\\n&= 180^\\circ - \\angle OAC - \\angle OEC \\\\\n&= 180^\\circ - \\angle OAC - \\angle ACO \\\\\n&= \\angle COA,\n\\end{aligned}\n$$\nwhich yields that triangles $AOF$ and $AOC$ are congruent. Thus $AB = AC = AF$, and since $A$ is the circumcenter of triangle $BFC$, we have $\\angle FAC = 2\\angle FBC$.\n\nLet line $ED$ meet $\\Gamma$ again at $P$, then we have $\\angle FPO = \\angle OPE = \\angle OPD$. Hence\n$$\n\\begin{aligned}\n\\angle POF &= 180^\\circ - \\angle FPO - \\angle OFP \\\\\n&= 180^\\circ - \\angle OPD - (180^\\circ - \\angle PEO) \\\\\n&= 180^\\circ - \\angle OPD - (180^\\circ - \\angle ODE) \\\\\n&= 180^\\circ - \\angle OPD - \\angle PDO \\\\\n&= \\angle DOP,\n\\end{aligned}\n$$\nwhich yields that triangles $POF$ and $POD$ are congruent, and it follows that $PD = PF$.\n\nNow we have $\\angle FPD = \\angle FPE = \\angle FAE = \\angle FAC = 2\\angle FBC = 2\\angle FBD$. Then from this and $PD = PF$, it follows that the circumcenter of triangle $BDF$ is $P$, and lies on $\\Gamma$.\n\nComment. If we don't consider the direction of the angle, to derive that $P$ is the circumcenter of triangle $BDF$ from $PD = PF$ and $\\angle FPD = 2\\angle FBD$, we need to show that $B$ and $P$ are on the same side with respect to line $DF$.\n\n\nAnother solution.\n\nLet $a = \\angle CBA = \\angle ACB$, then we have $\\angle EOD = 2\\angle ECD = 2\\angle ACB = 2a$. Since $\\angle ODC = \\angle OCD < \\angle ACB = \\angle ABC$, lines $AB$ and $OD$ are not parallel. Let these lines meet at $G$, then we have $\\angle GAE + \\angle EOG = (180^\\circ - \\angle CBA - \\angle ACB) + \\angle EOD = (180^\\circ - 2a) + 2a = 180^\\circ$, which yields that $G$ lies on $\\Gamma$.\n\nNote that $\\angle ODE = 90^\\circ - \\frac{1}{2}\\angle EOD = 90^\\circ - a$. Let $P$ be the circumcenter of triangle $GBD$, then we have $\\angle GDP = 90^\\circ - \\frac{1}{2}\\angle DPG = 90^\\circ - \\angle DBA = 90^\\circ - a = \\angle ODE$, which yields that points $E, D, P$ are colinear. In addition, since $\\angle PGO = \\angle PGD = \\angle GDP = \\angle ODE = \\angle DEO = \\angle PEO$, $P$ lies on $\\Gamma$.\n\nLet $F'$ be symmetric to $D$ with respect to line $OP$. Since $OD = OF'$, $F'$ lies on $\\omega$. Moreover, since $PB = PD = PF'$, $P$ is the circumcenter of $BDF'$. Now since $\\angle OF'P = \\angle PDO$ and $\\angle PEO = \\angle ODE$, it follows that $\\angle OF'P + \\angle PEO = \\angle PDO + \\angle ODE = 180^\\circ$. Hence $F'$ lies on $\\Gamma$. From this, $F'$ is the second intersection of $\\Gamma$ and $\\omega$, which yields that $F'$ coincides with $F$. Therefore the circumcenter of triangle $BDF$ is $P$ and lies on $\\Gamma$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34808, "subject": "Mathematics (Multi-modal)", "question": "There is a convex quadrilateral $ABCD$ and a point $P$ inside such that the lines $AP$ and $AD$ are orthogonal and the lines $BP$ and $CD$ are orthogonal. When $AB = 7$, $AP = 3$, $BP = 6$, $AD = 5$, $CD = 10$, find the area of triangle $ABC$.", "options": [], "answer": "245/6", "solution": "We can assume $A$, $B$, $C$, $D$ are in counter-clockwise order. Since the lines $AP$ and $AD$, the lines $BP$ and $CD$ are orthogonal respectively, if we rotate the triangle $APB$ counter-clockwise by $90^\\circ$ then $AP$ and $AD$ are parallel and $BP$ and $CD$ are parallel. The points $P$, $A$, $B$ and $D$, $A$, $C$ are in counter-clockwise order respectively hence we get $\\angle APB = \\angle ADC$.\n\nWe have $AP : BP = 1 : 2 = AD : CD$ thus the triangle $APB$ and $ADC$ are similar.\nTherefore $AC = \\frac{AB \\cdot AD}{AP} = \\frac{35}{3}$ is obtained. Since $APB$ and $ADC$ are similar, we also have $\\angle BAC = \\angle BAP + \\angle PAC = \\angle CAD + \\angle PAC = \\angle PAD = 90^\\circ$. Hence the area of the triangle $ABC$ is $\\frac{1}{2} \\cdot AB \\cdot AC = \\frac{245}{6}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34809, "subject": "Mathematics (Multi-modal)", "question": "Determine all pairs of positive integers $(x, y)$ which satisfy $3^x - 8^y = 2xy + 1$.", "options": [], "answer": "(4, 2)", "solution": "For a prime $p$ and a positive integer $n$, denote by $\\text{ord}_p n$ the largest nonnegative integer $i$ such that $p^i$ divides $n$.\n\nFirst we consider the case $y \\equiv 0 \\pmod 2$. Since $3^z = 8^y + 2xy + 1 \\equiv 1 \\pmod 4$, $x$ is even. Write $x = 2z$ and $y = 2w$ for positive integers $z$ and $w$, and we have $8zw + 1 = 3^{2z} - 8^{2w} = (3^z - 8^w)(3^z + 8^w) \\ge 3^z + 8^w$. $3^z - 8^w > 0$ shows $z > w$, hence we have $8z^2 + 1 > 8zw + 1 > 3^z$. If $z \\ge 6$, by the binomial theorem we have\n$$\n3^z = (2+1)^z \\ge 2^{z-2} \\cdot {}_zC_2 + 2^{z-1}z + 2^z > 16 \\cdot {}_zC_2 + 32z + 1 > 8z^2 + 1,\n$$\nwhich is absurd. If $z = 5$, $3^z > 8z^2 + 1$ holds. It follows that $z = 1, 2, 3, 4$ is necessary. Since $9^4 \\ge 9^z > 64^w$, $w = 1, 2$ is necessary. Moreover, $3^z + 8^w \\le 8zw + 1 \\le 65$ shows that $w = 1$ is necessary. Among $z = 1, 2, 3, 4$, only $z = 2$ satisfies $9^z = 8z + 65$. Therefore the solution in this case is $(z, w) = (2, 1)$, that is, $(x, y) = (4, 2)$.\n\nNext we consider the case $y \\equiv 1 \\pmod 2$. From $8^y + 1 = 3^z - 2xy$ we have $\\text{ord}_3(8^y + 1) = \\text{ord}_3(3^z - 2xy)$. Here we use the following lemma:\n**Lemma.** For any positive odd integer $y$, $\\text{ord}_3(8^y + 1) = \\text{ord}_3 y + 2$.\n**Proof.** We proceed by induction on $y$. If $y = 1$, $\\text{ord}_3(8^y + 1) = \\text{ord}_3 y + 2 = 2$, thus the claim is true. Let $\\ell \\ge 3$ be an odd integer and assume that the claim is true for $y < \\ell$.\nIf $\\ell$ is not a multiple of 3, we can write $\\ell = 3k+r$ with a nonnegative integer $k$ and $r \\in \\{1, 2\\}$. Then we have $8^\\ell = 8^r \\times 512^k \\equiv (-1)^k 8^r \\pmod{27}$. Since $r \\in \\{1, 2\\}$, $8^\\ell + 1 \\not\\equiv 0 \\pmod{27}$. On the other hand, since $\\ell$ is odd we have $8^\\ell + 1 \\equiv 0 \\pmod 9$, thus $\\text{ord}_3(8^\\ell + 1) = 2$. Therefore the claim is true when $\\ell$ is not a multiple of 3.\nIf $\\ell$ is a multiple of 3, we can write $\\ell = 3k$ for a positive odd integer $k$. Then we have $\\text{ord}_3(8^\\ell + 1) = \\text{ord}_3(8^k + 1) + \\text{ord}_3(64^k - 8^k + 1)$, for $8^\\ell + 1 = (8^k + 1)(64^k - 8^k + 1)$. Since $k < \\ell$, inductive hypothesis shows that $\\text{ord}_3(8^k + 1) = \\text{ord}_3 k + 2$. From $64^k - 8^k + 1 \\equiv 3 \\pmod 9$ we have $\\text{ord}_3(64^k - 8^k + 1) = 1$. It follows that $\\text{ord}_3(8^\\ell + 1) = \\text{ord}_3 k + 3 = \\text{ord}_3 \\ell + 2$. Therefore the claim is also true when $\\ell$ is a multiple of 3 and the induction is complete. $\\blacksquare$\n\nSince $0 < 3^z - 2xy < 3^z$ we have $\\text{ord}_3(3^z - 2xy) < x$. This and the lemma show that $\\text{ord}_3 2xy = \\text{ord}_3(3^z - 2xy) = \\text{ord}_3 y + 2$, thus we have $\\text{ord}_3 x = 2$. Hence $x$ is a multiple of 9 and can be written as $x = 3v$ where $v$ is a multiple of 3. Then we have $6vy + 1 = 3^{3v} - 2^{3v} = (3^v - 2^v)(9^v + 3^v \\cdot 2^v + 4^v) > 9^v$. From $3^v - 2^v > 0$, we have $2v > y$ and $12v^2 + 1 > 6vy + 1 > 9^v$ holds. Since $v \\ge 3$, the binomial theorem shows that\n$$\n9^v = (8+1)^v \\ge 64 \\cdot {}_vC_2 + 8v + 1 > 12v^2 + 1,\n$$\nwhich is a contradiction. As a result, there exist no solutions when $y$ is odd.\nFrom above, the answer is $(x, y) = (4, 2)$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34810, "subject": "Mathematics (Multi-modal)", "question": "How many pairs of integers $(m, n)$ are there with $1 \\le m, n \\le 2022$ satisfying the following condition?\nFor any positive integer $N$, there exists a nonnegative integer $k$ and an integer $d > N$ such that both $\\frac{m-k^2}{d}$ and $\\frac{n+2k}{d}$ are integers.", "options": [], "answer": "44", "solution": "If a positive integer $d$ divides both $m-k^2$ and $n+2k$, $d$ also divides $4(m-k^2)-(n-2k)(n+2k) = 4m-n^2$. Thus when $4m \\neq n^2$ holds, $N = |4m-n^2|$ satisfies $d \\le N$ for any positive integer $d$ and $(m,n)$ does not satisfy the condition.\nOn the other hand, when $4m = n^2$ holds, $n = 2t$ for a positive integer $t$ since $n$ is even. Then we have $m = \\frac{n^2}{4} = t^2$. Let $k = N$ and $d = t + N$, then $d > N$ holds and\n$$\n\\frac{m-k^2}{d} = \\frac{t^2-N^2}{t+N} = t-N, \\quad \\frac{n+2k}{d} = \\frac{2t+2N}{t+N} = 2\n$$\nare both integers. Hence $(m,n)$ satisfies the condition.\nFrom the above, it follows that pairs $(m,n)$ satisfying the condition are the pairs which can be written as $(t^2, 2t)$ with a positive integer $t$ and $1 \\le t^2, 2t \\le 2022$. $1 \\le t^2 \\le 2022$ shows $1 \\le t \\le 44$, and then both $t^2$ and $2t$ are integers between 1 and 2022. Hence the answer is 44.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34811, "subject": "Mathematics (Multi-modal)", "question": "In isosceles right triangle $ABC$ with $\\angle BAC = 90^\\circ$ and $AB = AC = 7$, let $D$, $E$ and $F$ be points on sides $BC$, $CA$ and $AB$ respectively. Given that $\\angle EDF = 90^\\circ$, $DE = 5$, $DF = 3$, find the length of $BD$.", "options": [], "answer": "21√2/8", "solution": "Let $P$ be a point on line $AB$ such that $PD \\perp BC$, then we have $\\angle CDE = \\angle PDF$ since $\\angle CDP = \\angle EDF = 90^\\circ$, and $\\angle DCE = \\angle DPF = 45^\\circ$, which yields $\\triangle PDF \\sim \\triangle CDE$ with a similarity ratio of $3:5$. In addition, we have $BD = DP$ since $\\angle PBD = \\angle BPD = 45^\\circ$. Therefore it follows $BD : DP : DC = 3 : 3 : 5$, and so we have $BD = 7\\sqrt{2} \\cdot \\frac{3}{8} = \\frac{21\\sqrt{2}}{8}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34812, "subject": "Mathematics (Multi-modal)", "question": "Find the number of tuples of positive integers $(a_1, a_2, \\dots, a_{2022})$ which satisfy $a_1 < a_2 < \\dots < a_{2022}$ and\n$$\na_1^2 - 6^2 \\ge a_2^2 - 7^2 \\ge \\dots \\ge a_{2022}^2 - 2027^2.\n$$", "options": [], "answer": "10", "solution": "Since $1 \\le a_1 < a_2 < \\dots < a_{2022}$, we have $a_i \\ge i$ for all $1 \\le i \\le 2022$. Also, the condition $a_1^2 - 6^2 \\ge a_2^2 - 7^2 \\ge \\dots \\ge a_{2022}^2 - 2027^2$ is equivalent to $a_{i+1}^2 - a_i^2 \\le (i+6)^2 - (i+5)^2 = 2i + 11$ ($1 \\le i \\le 2021$).\n\nWhen $a_{i+1} \\ge a_i + 3$ holds for some $1 \\le i \\le 2021$, we have $a_{i+1}^2 - a_i^2 \\ge (a_i + 3)^2 - a_i^2 = 6a_i + 9 \\ge 6i + 9 > 2i + 11$ for such $i$, which contradicts to $a_{i+1}^2 - a_i^2 \\le 2i + 11$. Therefore, since $a_i < a_{i+1}$, we have $a_{i+1} = a_i + 1$ or $a_{i+1} = a_i + 2$ ($1 \\le \\forall i \\le 2021$).\nFor each $i$, if $a_{i+1} = a_i + 1$, then since $a_{i+1}^2 - a_i^2 = 2a_i + 1$, $a_{i+1}^2 - a_i^2 \\le 2i + 11$ is equivalent to $a_i \\le i + 5$. Therefore, the tuples satisfying $a_{i+1} = a_i + 1$ for all $1 \\le i \\le 2021$ are of the form $a_i = i + c$ for a constant integer $0 \\le c \\le 5$. There are exactly six such tuples.\nHereafter, we assume that $a_{i+1} = a_i + 2$ for some $1 \\le i \\le 2021$ and denote the maximum of such $i$ by $j$. Since $4j + 4 \\le 4a_j + 4 = a_{j+1}^2 - a_j^2 \\le 2j + 11$, we have $j = 1, 2, 3$.\n* When $j = 1$, since $4a_1 + 4 = a_2^2 - a_1^2 \\le 2 \\cdot 1 + 11$, we have $a_1 = 1, 2$. In this case, $(a_1, a_2, \\dots, a_{2022}) = (1, 3, 4, 5, \\dots, 2022, 2023)$, $(2, 4, 5, 6, \\dots, 2023, 2024)$.\n* When $j = 2$, since $4a_2 + 4 = a_3^2 - a_2^2 \\le 2 \\cdot 2 + 11$ and $a_2 \\ge 2$, we have $a_2 = 2$. In this case, $(a_1, a_2, \\dots, a_{2022}) = (1, 2, 4, 5, 6, \\dots, 2022, 2023)$.\n* When $j = 3$, since $4a_3 + 4 = a_4^2 - a_3^2 \\le 2 \\cdot 3 + 11$ and $a_3 \\ge 3$, we have $a_3 = 3$. In this case, $(a_1, a_2, \\dots, a_{2022}) = (1, 2, 3, 5, 6, 7, \\dots, 2022, 2023)$.\nHence the total number of the tuples is $6 + 4 = 10$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34813, "subject": "Mathematics (Multi-modal)", "question": "How many permutations $(p_1, p_2, \\dots, p_{1000})$ of $\\{1, 2, \\dots, 1000\\}$ are there such that $p_i$ is a multiple of $i$ for any $1 \\le i \\le 999$?", "options": [], "answer": "504", "solution": "Let $S = \\{1, 2, \\dots, 1000\\}$. We want to find the number of bijective functions $f: S \\to S$ such that $f(i)$ is a multiple of $i$ for any $1 \\le i \\le 999$. Denote $f^k(i) = \\underbrace{f(f(\\dots f(i)\\dots))}_{k \\text{ times}}$.\n\nConsider the sequence $\\{1000, f(1000), f^2(1000), \\dots\\}$. Since $S$ is finite, there exists a pair of positive integers $(i, j)$ with $i < j$ and $f^i(1000) = f^j(1000)$. Since $f$ is injective we have $f^{j-i}(1000) = 1000$, thus there exists a positive integer $m$ such that $f^m(1000) = 1000$. Let $l$ be the smallest such positive integer.\n\nWe will show that $f(1000), f^2(1000), \\dots, f^l(1000) = 1000$ are distinct. Assume that there exists a pair of integers $(s, t)$ such that $f^s(1000) = f^t(1000)$ and $1 \\le s < t \\le l$. Then we have $f^s(1000) = f^t(1000) = f^s(f^{t-s}(1000))$ and the injectivity of $f$ shows $f^{t-s}(1000) = 1000$, which contradicts the minimality of $l$ since $0 < t-s < l$. Therefore $f(1000), f^2(1000), \\dots, f^l(1000) = 1000$ are distinct. In particular, $f(1000), f^2(1000), \\dots, f^{l-1}(1000)$ is not equal to 1000, thus $f^{i+1}(1000)$ is a multiple of $f^i(1000)$ for any integer $i \\le l-1$.\n\nNow let $a_1 < a_2 < \\dots < a_k$ be all positive integers less than or equal to 1000 which do not appear in $\\{1000, f(1000), \\dots, f^{l-1}(1000)\\}$. Since $f(1000), f^2(1000), \\dots, f^l(1000)$ is a permutation of $\\{1000, f(1000), \\dots, f^{l-1}(1000)\\}$, $f(a_1), f(a_2), \\dots, f(a_k)$ is a permutation of $\\{a_1, a_2, \\dots, a_k\\}$ by the bijectivity of $f$. Therefore we have\n\n$$\nf(a_1) + f(a_2) + \\dots + f(a_k) = a_1 + a_2 + \\dots + a_k. \\quad (*)\n$$\n\nFor any positive integers $i \\le k$ we have $a_i \\ne 1000$, thus $f(a_i)$ is a multiple of $a_i$. In particular $f(a_i) \\ge a_i$ holds. This and (*) show that $f(a_i) = a_i$ for any positive integer $i \\le k$. It follows that there exists a sequence of positive integers $d_1 < d_2 < \\dots < d_l = 1000$ such that $d_{i+1}$ is a multiple of $d_i$ for any $1 \\le i \\le l-1$ and\n$$\nf(n) = \\begin{cases} d_{i+1} & (n = d_i, 1 \\le i \\le l-1), \\\\ d_1 & (n = d_l), \\\\ n & \\text{(otherwise)}. \\end{cases}\n$$\n\nConversely, if there exists such a sequence $d_1 < d_2 < \\dots < d_l$, $f$ satisfies the given condition. Therefore the problem is equivalent to count sequences of integers $d_1 < d_2 < \\dots < d_l = 1000$ such that $d_{i+1}$ is a multiple of $d_i$ for any $1 \\le i \\le l-1$.\n\nFor a positive integer $n$, let $c_n$ be the number of sequences of positive integers $d_1 < d_2 < \\dots < d_l = n$ such that $d_{i+1}$ is a multiple of $d_i$ for any $1 \\le i \\le l-1$.\nIt is clear that $c_1 = 1$. Let $n \\ge 2$. If $l=1$, such sequence is unique. If $l \\ge 2$, $d_{l-1}$ must be a positive divisor of $n$ less than $n$, and for any positive divisor $m < n$ of $n$ there exists $c_m$ sequences satisfying the condition with $d_{l-1} = m$. Hence it follows that\n$$\nc_n = 1 + \\sum_{m < n,\\ m \\mid n} c_m.\n$$\n\n$$\n\\begin{align*}\nc_1 &= 1, & c_2 &= 2, & c_4 &= 4, & c_8 &= 8, \\\\\nc_5 &= 2, & c_{10} &= 6, & c_{20} &= 16, & c_{40} &= 40, \\\\\nc_{25} &= 4, & c_{50} &= 16, & c_{100} &= 52, & c_{200} &= 152, \\\\\nc_{125} &= 8, & c_{250} &= 40, & c_{500} &= 152, & c_{1000} &= 504.\n\\end{align*}\n$$\n\nHence the answer is $c_{1000} = 504$.", "topic": "Discrete Mathematics", "subtopic": "Combinatorics" }, { "id": 34814, "subject": "Mathematics (Multi-modal)", "question": "Find the smallest positive integer $n$ such that $10 + n$ and $10n$ are both perfect squares.", "options": [], "answer": "90", "solution": "Let $n$ be a positive integer such that $n + 10$ and $10n$ are both perfect squares. Then, there exists a positive integer $k$ such that $10n = k^2$. Since $k$ is a multiple of $2$ and $5$, we can write $k = 10\\ell$ for some positive integer $\\ell$, and we have $n = 10\\ell^2$. For $\\ell = 1$ or $\\ell = 2$, we have $n + 10 = 20$ or $50$, respectively, which are not perfect squares. Therefore, we must have $\\ell \\ge 3$, which implies $n = 10\\ell^2 \\ge 10 \\cdot 3^2 = 90$.\n\nOn the other hand, since we have $90 + 10 = 100 = 10^2$ and $90 \\cdot 10 = 900 = 30^2$, $90$ satisfies the condition. Therefore, the answer is $90$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34815, "subject": "Mathematics (Multi-modal)", "question": "On a $5 \\times 5$ square board, a number of tiles consisting of 4 squares, as shown in the figure, are placed along the grid. Note that the placed tiles may be rotated or flipped over. Furthermore, the placed tiles may be overlapped, but must not protrude beyond the board. Assume that every square of the board is covered with at most two tiles. Find the maximum possible number of squares of the board that are covered by at least one tile.\n\n![](attached_image_1.png)", "options": [], "answer": "24", "solution": "Consider the tile placement obtained by superposing the two given arrangements below. In this placement, each square of the board should be covered by at most two tiles. Furthermore, with the exception of the central square, each of the 24 remaining squares are covered by at least one tile.\n\n![](attached_image_2.png)\n![](attached_image_3.png)\n\nNext, we will prove that the number of squares covered by at least one tile is no more than 24. Let us annotate some squares with the letters A and B as shown in the figure below. Then, no matter how a single tile is placed, exactly one square marked with A and exactly one square marked with B will be covered by the tile. Note that there are 4 squares marked with A. Since each square is covered by at most two tiles, the total number of tiles that can be placed is at most 8. Therefore, it is impossible to cover all of the 9 squares marked with B. Hence, the number of squares covered by at least one tile is $25 - 1 = 24$ or less.\n\n![](attached_image_4.png)\n\nWith the above argument, we have proved that the maximum value in question is 24.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34816, "subject": "Mathematics (Multi-modal)", "question": "Let $ABC$ be an acute triangle, $D$ be the foot of the perpendicular from $A$ to $BC$, and $M$ be the midpoint of $AC$. Let $P$ be a point on the segment $BM$ such that $\\angle PAM = \\angle MBA$. Given $\\angle BAP = 41^\\circ$ and $\\angle PDB = 115^\\circ$, find the value of $\\angle BAC$.", "options": [], "answer": "78°", "solution": "78°\n\nTriangles $MBA$ and $MAP$ are similar since $\\angle MBA = \\angle PAM$, thus $MP \\cdot MB = MA^2$. Moreover, we have $MD = MA = MC$, since $\\angle CDA = 90^\\circ$ and $M$ is the midpoint of $AC$. Then triangles $MBD$ and $MDP$ are similar since $MP \\cdot MB = MD^2$, thus $\\angle DBM = \\angle MDP$. By $MD = MC$, we obtain\n$$\n\\begin{aligned}\n\\angle AMP &= \\angle CBM + \\angle MCB \\\\\n&= \\angle MDP + \\angle CDM \\\\\n&= \\angle CDP \\\\\n&= 180^\\circ - \\angle PDB \\\\\n&= 180^\\circ - 115^\\circ = 65^\\circ.\n\\end{aligned}\n$$\nSince $\\angle MBA = \\angle PAM$ and the sum of the three angles of $BAM$ is equal to $180^\\circ$, we obtain $\\angle PAM = \\frac{180^\\circ - \\angle BAP - \\angle AMB}{2} = \\frac{180^\\circ - 41^\\circ - 65^\\circ}{2} = 37^\\circ$. Thus the answer is $\\angle BAP + \\angle PAM = 78^\\circ$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34817, "subject": "Mathematics (Multi-modal)", "question": "Alice and Bob are playing a game using a blackboard. Initially, each of $2, 3, \\dots, 50$ is written on the blackboard once. Also, a non-empty subset $S$ of $\\{2, 3, \\dots, 50\\}$ is given. In the first turn, Alice erases all the elements of $S$ from the blackboard. After that, the two players, starting with Bob, take turns erasing one or more integers from the blackboard. However, they cannot erase integers that are relatively prime to all of the integers erased in the opponent's previous turn. The game ends when a player has no integers left to erase at the beginning of their turn, resulting in that player's loss and the other player's win.\nHow many sets $S$ are there such that Alice can always win, regardless of Bob's actions?", "options": [], "answer": "32767", "solution": "For $k$ primes $p_1, p_2, \\dots, p_k$, denote by $X(p_1, p_2, \\dots, p_k)$ the set of all integers in $\\{2, 3, \\dots, 50\\}$ that do not have any prime factor other than $p_1, p_2, \\dots, p_k$. The blackboard is said to be in $(p_1, p_2, \\dots, p_k)$-good situation or simply good, if the set of all integers that are already erased is identical to $X(p_1, p_2, \\dots, p_k)$.\n**Lemma.** If the blackboard becomes good after a turn, the player who plays the turn is able to win regardless of the opponent's actions.\n**Proof.** Suppose that after the turn, the blackboard becomes in $(p_1, p_2, \\dots, p_m)$-good situation. We only have to consider the case the opponent can erase at least one integer in the next turn. Denote the set of integers erased by the opponent in the next turn by $T_1$. All elements in $T_1$ have a prime factor other than $p_1, p_2, \\dots, p_m$. Let $q_1, q_2, \\dots, q_n$ be prime numbers that are not in $\\{p_1, p_2, \\dots, p_m\\}$ but appears as prime factors of some of elements in $T_1$. Then, $X(p_1, p_2, \\dots, p_m) \\cup T_1$ is a subset of $X(p_1, p_2, \\dots, p_m, q_1, q_2, \\dots, q_n)$.\nDenote by $T_2$ the set of all elements in $X(p_1, p_2, \\dots, p_m, q_1, q_2, \\dots, q_n)$ not included in $X(p_1, p_2, \\dots, p_m) \\cup T_1$. Since $q_1, q_2, \\dots, q_n \\in T_2$ but $q_1, q_2, \\dots, q_n \\notin X(p_1, p_2, \\dots, p_m) \\cup T_1$, $T_2$ is not empty. Additionally, since any element in $T_2$ has a prime factor in $\\{q_1, q_2, \\dots, q_n\\}$, the player is able to erase all elements in $T_2$.\nFrom the discussion above, it is shown inductively that if the blackboard becomes good after a turn, the player who plays the turn can erase one or more integers and make the blackboard good at every turn afterwards.\nEspecially, the player is able to erase at least one integer at every turn, which imply the player is able to win. ■\nLet $r_1, r_2, \\dots, r_\\ell$ be prime numbers which divide at least one element of $S$. If $S = X(r_1, r_2, \\dots, r_\\ell)$, then Alice can always win. If $S \\neq X(r_1, r_2, \\dots, r_\\ell)$, $T := X(r_1, r_2, \\dots, r_\\ell) \\setminus S$ is not empty. Additionally, since any element in $T$ has a prime factor in $\\{r_1, r_2, \\dots, r_\\ell\\}$, by the definition of $r_1, r_2, \\dots, r_\\ell$, Bob can erase all elements in $T$ and make the blackboard in $(r_1, r_2, \\dots, r_\\ell)$-good situation. By the lemma, Bob can win regardless of actions of Alice.\nTherefore, the sets $S$ that satisfy the problem condition are those in the form of $X(p_1, p_2, \\dots, p_k)$ with some prime numbers $p_1, p_2, \\dots, p_k$. The number of such sets corresponds to the number of ways to choose one or more elements from the set of prime numbers less than or equal to 50, which is $\\{2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47\\}$ (15 prime numbers). Therefore, the answer is $2^{15}-1$ sets.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34818, "subject": "Mathematics (Multi-modal)", "question": "Let $A$ be a set of functions defined for integers from $1$ to $2023$ and taking integer values from $1$ to $2023$. Suppose that $A$ satisfies the following two conditions:\n* For any function $f$ belonging to $A$ and any integers $x$ and $y$ with $1 \\le x < y \\le 2023$, we have $f(x) \\ge f(y)$.\n* For any functions $f$ and $g$ belonging to $A$ and any integer $x$ from $1$ to $2023$, we have $f(g(x)) = g(f(g(x)))$.\nIn this case, find the maximum possible number of elements of $A$.", "options": [], "answer": "2022 choose 1011", "solution": "$$\n\\boxed{\\binom{2022}{1011}}\n$$\nWe say that $x$ is a fixed point of $f$ if we have $f(x) = x$. Suppose that a function $f$ belonging to $\\mathcal{A}$ has two fixed points $a$ and $b$ with $a < b$. Then, it follows from the first condition that $a = f(a) \\ge f(b) = b$, which is a contradiction. Therefore, each function belonging to $\\mathcal{A}$ has at most one fixed point.\n\nSuppose that $\\mathcal{A}$ is non-empty. Take a function $f$ belonging to $\\mathcal{A}$, and define $a = f(f(1))$. Then, $a$ is a fixed point of $f$ since we have $f(f(1)) = f(f(f(1)))$ by the second condition. Let $g$ be a function belonging to $\\mathcal{A}$. Then, we have\n$$\ng(a) = g(f(a)) = f(g(f(a))) = f(g(a))\n$$\nby the second condition. It shows that $g(a)$ is also a fixed point of $f$. By the uniqueness of the fixed point of $f$, we conclude that $g(a) = a$. Therefore, we have proved that $a$ is the unique fixed point of any function $g$ belonging to $\\mathcal{A}$.\nLet $f$ and $g$ be functions belonging to $\\mathcal{A}$, and $x$ an integer from $1$ to $2023$. Then, the second condition says that $f(g(x))$ is a fixed point of $g$, and hence, we have $f(g(x)) = a$.\nLet $X$ denote the set of integers $x$ from $1$ to $2023$ such that $f(x) = a$ holds for any function $f$ belonging to $\\mathcal{A}$. Let $\\ell$ be the smallest element of $X$, and $m$ the largest element of $X$. Then, for any function $f$ belonging to $\\mathcal{A}$, we have $a = f(\\ell) \\ge f(\\ell+1) \\ge \\dots \\ge f(m) = a$ by the first condition. Therefore, we conclude that $X$ is the set of integers from $\\ell$ to $m$. Note that we already proved that $f(g(x)) = a$ for any functions $f$ and $g$ belonging to $\\mathcal{A}$ and any integer $x$ from $1$ to $2023$. Therefore, we conclude that $g(x)$ belongs to $X$ for such $g$ and $x$. Summarizing the discussion here, it has been shown that $f$ belonging to $\\mathcal{A}$ satisfies both\n$$\n(1) \\quad m \\ge f(1) \\ge f(2) \\ge \\dots \\ge f(2023) \\ge \\ell, \\text{ and}\n$$\n$$\n(2) \\quad \\text{we have } f(x) = a \\text{ for any integer } x \\text{ from } \\ell \\text{ to } m.\n$$\nWe fix a function $f$ belonging to $\\mathcal{A}$. For an integer $x$ from $1$ to $2023$, we define $s_x = f(x) - x$. Then, by (1), the sequence $s_1, s_2, \\dots, s_{2023}$ satisfies\n$$\nm - 1 \\ge s_1 > s_2 > \\dots > s_{2023} \\ge \\ell - 2023.\n$$\nFurthermore, by (2), we have $s_x = a - x$ for any integer $x$ from $\\ell$ to $m$. Therefore, for any function that belongs to $\\mathcal{A}$, we can associate it with a method of choosing $2023$ integers from the integers from $\\ell - 2023$ to $m - 1$, such that all integers from $a - m$ to $a - \\ell$ are chosen. Here, this choice corresponds to choosing $2023 - ((a - \\ell) - (a - m) + 1) = 2022 - m + \\ell$ integers from the $2022$ integers that are from $\\ell - 2023$ to $m - 1$ but not between $a - m$ and $a - \\ell$. Hence, the number of such choice is $\\binom{2022}{2022 - m + \\ell}$. Furthermore, since the methods of choosing corresponding to different functions belonging to $\\mathcal{A}$ are distinct, the number of elements in $\\mathcal{A}$ is at most $\\binom{2022}{2022 - m + \\ell}$. In addition, for a positive integer $x$ from $0$ to $2021$, we have\n$$\n\\frac{\\binom{2022}{\\ell+1}}{\\binom{2022}{\\ell}} = \\frac{2022 - \\ell}{\\ell+1},\n$$\nwhich implies\n$$\n\\binom{2022}{0} < \\binom{2022}{1} < \\dots < \\binom{2022}{1010} < \\binom{2022}{1011} > \\binom{2022}{1012} > \\dots > \\binom{2022}{2021} > \\binom{2022}{2022}.\n$$\nTherefore, we can conclude that the number of elements in $\\mathcal{A}$ is at most $\\binom{2022}{1011}$.\nOn the other hand, consider the set $\\mathcal{B}$ of functions $f$ that are defined for integers from $1$ to $2023$ and take integer values from $1$ to $2023$, and satisfy\n$$\n1012 = f(1) = f(2) = \\dots = f(1012) \\ge f(1013) \\ge f(1014) \\ge \\dots \\ge f(2023).\n$$\nThis set satisfies the first condition. Furthermore, for any functions $f$ and $g$ in $\\mathcal{B}$ and any integer $x$ from $1$ to $2023$, we have $g(x) \\le 1012$, so $f(g(x)) = 1012$ holds. Thus, the second condition is also satisfied. By considering $\\ell = 1$ and $a = m = 1012$ in the argument above, we see that there is a one-to-one correspondence between the functions $f$ in $\\mathcal{B}$ and the sequences $s_1, s_2, \\dots, s_{2023}$ of integers satisfying\n$$\ns_1 = 1011, s_2 = 1010, \\dots, s_{1012} = 0, \\quad -1 \\ge s_{1013} > s_{1014} > \\dots > s_{2023} \\ge -2022.\n$$\nTherefore, the number of elements in $\\mathcal{B}$ is $\\binom{2022}{1011}$.\nTherefore, we conclude that the maximum possible number of elements in $\\mathcal{A}$ is $\\binom{2022}{1011}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34819, "subject": "Mathematics (Multi-modal)", "question": "Let us call a positive integer a *good number* if the digit $2$ appears more frequently than the digit $3$, and a *bad number* if the digit $3$ appears more frequently than the digit $2$. For example, $2023$ is a good number because the digit $2$ appears twice and the digit $3$ once, and $123$ is neither a good number nor a bad number because the digit $2$ appears once and the digit $3$ once.\nFind the difference between the number of good numbers less than or equal to $2023$ and the number of bad numbers less than or equal to $2023$.", "options": [], "answer": "22", "solution": "$22$\n\nFor a positive integer $k$, let us define the changed number of $k$ as the number obtained by switching each digit $2$ in $k$ to $3$, and each digit $3$ in $k$ to $2$. By this definition, if $l$ is the changed number of $k$, then the changed number of $l$ is $k$ itself. For a good number $m \\le 1999$ and a bad number $n \\le 1999$, we call $(m, n)$ a nice pair if $n$ is the changed number of $m$.\n\nLet $m$ be a good number. Let $a$ (respectively, $b$) be the number of times the digit $2$ (respectively, $3$) appears in $m$. Then, we have $a > b$. Let $n$ denote the changed number of $m$. Then, the number of times the digit $2$ appears in $n$ is $b$, and the number of times the digit $3$ appears in $n$ is $a$. Hence, $n$ is a bad number. Furthermore, if $m \\le 1999$, then we have $n \\le 1999$. Note that a number cannot be both a good number and a bad number. These observations show that each good number less than or equal to $1999$ is contained in exactly one nice pair. Similarly, each bad number less than or equal to $1999$ is contained in exactly one nice pair. Therefore, the number of good numbers less than or equal to $1999$ and the number of bad numbers less than or equal to $1999$ are both equal to the number of nice pairs.\n\nIn addition, among the integers between $2000$ and $2023$, there are $22$ good numbers (excluding $2003$ and $2013$) and no bad numbers. Thus, the answer is $22$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34820, "subject": "Mathematics (Multi-modal)", "question": "In an acute triangle $ABC$, let $D$, $E$, and $F$ be the midpoints of sides $BC$, $CA$, and $AB$ respectively. Let $X$ and $Y$ be the feet of the perpendiculars drawn from $D$ to sides $AB$ and $AC$ respectively. The line passing through $F$ and parallel to line $XY$ intersects line $DY$ at a point $P$ that is different from $E$. Prove that line $AD$ and line $EP$ are perpendicular.", "options": [], "answer": "Detailed solution", "solution": "Since $\\angle AXD = \\angle AYD = 90^\\circ$, points $A$, $D$, $X$ and $Y$ are concyclic. Therefore, we have $\\angle FAD = \\angle XAD = \\angle XYD = \\angle FPD$, and by the converse of the inscribed angle theorem, points $A$, $D$, $F$ and $P$ are concyclic. According to the midpoint theorem in triangle $ABC$, we find that $FD$ is parallel to $AC$. Hence, we have $\\angle FDP = 90^\\circ$ and consequently $\\angle FAP = 90^\\circ$. This implies that lines $AB$ and $AP$ are perpendicular. Furthermore, applying the midpoint theorem in triangle $ABC$ again, we find that $DE$ is parallel to $AB$. Thus, lines $DE$ and $AP$ are perpendicular. Now, since lines $AE$ and $DP$ are perpendicular, $E$ is the orthocenter of triangle $ADP$. Therefore, we can conclude that lines $AD$ and $EP$ are perpendicular.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34821, "subject": "Mathematics (Multi-modal)", "question": "Let $c$ be a non-negative integer. Find all sequences of positive integers $\\{a_n\\}_{n \\ge 1}$ such that for any positive integer $n$, the following condition holds:\nThere are exactly $a_n$ positive integers $i$ satisfying $a_i \\le a_{n+1} + c$.", "options": [], "answer": "a_n = n + c + 1 for all n ≥ 1", "solution": "Assume that $a_{n+1} \\ge a_{n+2}$ holds for some positive integers $n$. Since any positive integer $i$ with $a_i \\le a_{n+2} + c$ must also satisfy $a_i \\le a_{n+1} + c$, it follows that $a_n \\ge a_{n+1}$. Hence, if $a_n < a_{n+1}$ holds for some positive integer $n$, then $a_{n+1} < a_{n+2}$ follows, and by induction, we have $a_n < a_{n+1} < a_{n+2} < a_{n+3} < \\dots$.\n\nSimilarly, when $a_n > a_{n+1}$ holds for some positive integer $n$, we have $a_n > a_{n+1} > a_{n+2} > \\dots$, especially $a_{n+d} \\le a_n - d$ for any non-negative integer $d$. This leads to a contradiction since $a_{n+a_n} \\le 0$.\n\nSuppose that $a_n = a_{n+1}$ for all positive integers $n$. Then, as all integers $i \\ge 2$ satisfy $a_i = a_2 \\le a_2 + c$, this contradicts the fact that there are exactly $a_1$ positive integers $i$ satisfying it. Therefore, there exists a positive integer $k$ such that $a_k < a_{k+1}$, and from the above discussion, we have $a_1 \\le a_2 \\le \\dots \\le a_k < a_{k+1} < a_{k+2} < \\dots$.\n\nFor integers $n \\ge k$, since any integer $i > n+c+1$ satisfies $a_i > a_{n+c+1} \\ge a_{n+1} + c$, we have $a_n \\le n+c+1$. Therefore, if we set $b_n = a_n - n$ ($n \\ge k$), then we have $b_n \\le c+1$ and $b_k \\le b_{k+1} \\le b_{k+2} \\le \\dots$. Thus, there exist an integer $d$ and an integer $M \\ge k$ such that for $n \\ge M$, $b_n = d$, i.e., $a_n = n+d$. Since $a_1 \\le a_2 \\le \\dots \\le a_{M+c+1} < a_{M+c+2} < \\dots$, for any positive integer $i$, $a_i \\le a_{M+1}+c = a_{M+c+1}$ and $i \\le M+c+1$ are equivalent. Therefore, $a_M = M+c+1$, which is also equal to $M+d$, and for integers $n \\ge M$, we have $a_n = n+c+1$.\n\nSuppose that for an integer $N \\ge 2$, we have $a_n = n+c+1$ for all $n \\ge N$. Since $a_1 \\le a_2 \\le \\dots \\le a_{N+c} < a_{N+c+1} < \\dots$, for any positive integer $i$, $a_i \\le a_N + c = a_{N+c}$ and $i \\le N+c$ are equivalent. Therefore, $a_{N-1} = N+c$.\n\nThus, by induction, we have $a_n = n+c+1$ for any positive integer $n$. This indeed satisfies the problem condition because $a_i \\le a_{n+1} + c$ and $i \\le a_n$ are equivalent for any positive integer $i$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34822, "subject": "Mathematics (Multi-modal)", "question": "We have an equilateral triangle $ABC$ with side length $3$, and points $D$, $E$, and $F$ on sides $BC$, $CA$, and $AB$, respectively. Given that $BD = 1$ and $\\angle ADE = \\angle DEF = 60^\\circ$, find the length of segment $AF$.\n\n![](attached_image_1.png)", "options": [], "answer": "7/9", "solution": "$\\frac{7}{9}$\n\nFor the triangles $ABD$, $DCE$, and $EAF$, we have\n$$\n\\angle EDC = \\angle ADC - \\angle ADE = (\\angle DAB + \\angle ABD) - 60^\\circ = \\angle DAB\n$$\nand similarly,\n$$\n\\angle FEA = \\angle DEA - \\angle DEF = (\\angle EDC + \\angle DCE) - 60^\\circ = \\angle EDC\n$$\n\nAlso, since $\\angle ABD = \\angle DCE = \\angle EAF = 60^\\circ$, the triangles $ABD$, $DCE$, and $EAF$ are similar.\nTherefore, we have $\\frac{EA}{AF} = \\frac{DC}{CE} = \\frac{AB}{BD} = 3$, and\n$$\nDC = BC - BD = 2, \\quad CE = \\frac{1}{3}DC = \\frac{2}{3}, \\quad EA = CA - CE = \\frac{7}{3}, \\quad AF = \\frac{1}{3}EA = \\frac{7}{9}\n$$\nfollows. Thus, the answer is $\\frac{7}{9}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34823, "subject": "Mathematics (Multi-modal)", "question": "Find all positive integers $n$ such that $\\frac{\\phi(n)^{d(n)} + 1}{n}$ is an integer and $\\frac{n^{\\phi(n)} - 1}{d(n)^5}$ is not. Here, $\\phi(n)$ denotes the number of integers in $\\{1, \\dots, n\\}$ coprime to $n$, and $d(n)$ denotes the number of positive divisors of $n$.", "options": [], "answer": "n = 2", "solution": "Let $\\prod_{i=1}^{m} x_i$ denote the product of $m$ real numbers $x_1, x_2, \\dots, x_m$. For any positive integer $N$, let $\\text{ord}_2 N$ denote the maximum nonnegative integer $\\ell$ such that $2^\\ell$ divides $N$.\n\n$n=1$ does not meet the assumption since $\\frac{1^{\\phi(1)} - 1}{d(1)^5} = 0$ is an integer. In the following we assume $n \\ge 2$. If distinct prime numbers $p_1, p_2, \\dots, p_k$ and positive integers $e_1, e_2, \\dots, e_k$ satisfy $n = \\prod_{i=1}^{k} p_i^{e_i}$, then $\\phi(n) = \\prod_{i=1}^{k} p_i^{e_i-1}(p_i - 1)$.\n\nWhen $n$ is even, the assumption that $\\frac{\\phi(n)^{d(n)} + 1}{n}$ is an integer implies that $\\phi(n)$ is odd, thus $n=2$. On the other hand, $n=2$ satisfies the assumptions since $\\frac{\\phi(2)^{d(2)} + 1}{2} = \\frac{1^2+1}{2} = 1$ and $\\frac{2^{\\phi(2)} - 1}{d(2)^5} = \\frac{2^1 - 1}{2^5} = \\frac{1}{32}$.\n\nIn the following we assume $n$ is odd and $n \\ge 3$. The assumption that $\\frac{\\phi(n)^{d(n)} + 1}{n}$ is an integer implies that $n$ and $\\phi(n)$ are coprime, thus $n$ is square-free. Then $n = \\prod_{i=1}^{k} p_i$ with distinct odd primes $p_1, \\dots, p_k$, thus $d(n) = 2^k$. Now we need the following lemma.\n\n**Lemma.** For any odd integer $x \\ge 3$ and any positive integer $y$, there holds $\\text{ord}_2(x^y - 1) \\ge \\text{ord}_2(x-1) + \\text{ord}_2 y$.\n\n**Proof.** Suppose $y = 2^v \\cdot s$ with a nonnegative integer $v$ and a positive odd integer $s$. Then $x^y - 1 = (x^s - 1) \\prod_{i=0}^{v-1} (x^{2^i \\cdot s} + 1)$. Since $x^s - 1 = (x-1)(x^{s-1} + \\dots + x+1)$, $\\text{ord}_2(x^s - 1) \\ge \\text{ord}_2(x-1)$.\nAlso, $\\text{ord}_2(x^{2^i \\cdot s} + 1) \\ge 1$ for any $i$ since $x$ is odd, thus we obtain $\\text{ord}_2 \\left( \\prod_{i=0}^{v-1} (x^{2^i \\cdot s} + 1) \\right) \\ge v$.\nHence $\\text{ord}_2(x^y - 1) \\ge \\text{ord}_2(x-1) + \\text{ord}_2 y$. $\\blacksquare$\n\nThe condition that $\\frac{n^{\\phi(n)} - 1}{d(n)^5} = \\frac{n^{\\phi(n)} - 1}{2^{5k}}$ is not an integer is equivalent to $\\text{ord}_2(n^{\\phi(n)} - 1) < 5k$. The above lemma implies that $\\text{ord}_2(n^{\\phi(n)} - 1) \\ge \\text{ord}_2(n-1) + \\text{ord}_2(\\phi(n))$. Since $\\frac{\\phi(n)^{d(n)} + 1}{n}$ is an integer, for any $p_i$ there holds $\\phi(n)^{2k} \\equiv -1 \\pmod{p_i}$, thus $\\phi(n)^{2^{k+1}} \\equiv 1 \\pmod{p_i}$. Let $t_i$ be the minimum positive integer $t$ such that $\\phi(n)^t \\equiv 1 \\pmod{p_i}$. If a positive integer $\\ell$ satisfies $\\phi(n)^\\ell \\equiv 1 \\pmod{p_i}$, then $t_i$ divides $\\ell$; this is because when $r$ denotes the remainder of $\\ell$ modulo $t_i$, then $\\phi(n)^\\ell \\equiv \\phi(n)^r \\equiv 1 \\pmod{p_i}$, which implies $r=0$ by the minimality of $t_i$. Now $t_i$ divides $2^{k+1}$ since $\\phi(n)^{2^{k+1}} \\equiv 1 \\pmod{p_i}$. On the other hand $t_i$ does not divide $2^k$ since $\\phi(n)^{2^k} \\equiv -1 \\not\\equiv 1 \\pmod{p_i}$. Hence we obtain $t_i = 2^{k+1}$.\n\nBy the Fermat's little theorem $\\phi(n)^{p_i-1} \\equiv 1 \\pmod{p_i}$, thus $2^{k+1}$ divides $p_i - 1$. Hence $\\text{ord}_2(\\phi(n)) = \\sum_{i=1}^{k} \\text{ord}_2(p_i - 1) \\ge k(k+1)$. On the other hand, by $n-1 = \\prod_{i=1}^{k} p_i - 1 \\equiv \\prod_{i=1}^{k} 1 - 1 \\equiv 0 \\pmod{2^{k+1}}$ we obtain $\\text{ord}_2(n-1) \\ge k+1$. Therefore $5k > \\text{ord}_2(n^{\\phi(n)} - 1) \\ge \\text{ord}_2(n-1) + \\text{ord}_2(\\phi(n)) \\ge (k+1)^2$. Then we obtain $k=1, 2$.\n\nWhen $k=1$ we obtain $\\phi(n) = n-1$ and $d(n) = 2$, thus $\\frac{\\phi(n)^{d(n)} + 1}{n} = \\frac{(n-1)^2 + 1}{n} = n-2 + \\frac{2}{n}$ is not an integer, which contradicts the assumption. When $k=2$, the condition $3+2 \\cdot 3 \\le \\text{ord}_2(n-1) + \\text{ord}_2(\\phi(n)) < 5 \\cdot 2$ implies that $\\text{ord}_2(n-1) = 3$ and $\\text{ord}_2(\\phi(n)) = 6$. Since $p_1-1$ and $p_2-1$ are both multiples of $2^{2+1}$, $\\text{ord}_2((p_1-1)(p_2-1)) = \\text{ord}_2(\\phi(n)) = 6$ implies $\\text{ord}_2(p_1-1) = \\text{ord}_2(p_2-1) = 3$. Thus $p_1 \\equiv p_2 \\equiv 9 \\pmod{16}$. Hence $n-1 = p_1p_2-1 \\equiv 0$ (mod 16), which contradicts $ord_2(n-1) = 3$. Thus there does not exist an odd integer $n \\ge 3$ which satisfies the required conditions.\n\nHence the answer is $n = 2$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34824, "subject": "Mathematics (Multi-modal)", "question": "For positive real numbers $x, y$, the positive real number $x \\star y$ is defined as $x \\star y = \\frac{x}{xy+1}$.\nCalculate the following expression:\n$$\n(((\\cdots (((100 \\star 99) \\star 98) \\star 97) \\star \\cdots) \\star 3) \\star 2) \\star 1.\n$$", "options": [], "answer": "100/495001", "solution": "$\\frac{100}{495001}$\n\nFor any positive real numbers $x, y$, and $z$, the following equation holds:\n$$\n(x \\star y) \\star z = \\frac{x \\star y}{(x \\star y)z + 1} = \\frac{\\frac{x}{xy+1}}{\\frac{x}{xy+1}z + 1} = \\frac{x}{xy + xz + 1} = \\frac{x}{x(y+z) + 1} = x \\star (y+z).\n$$\nUsing this repeatedly, we have:\n$$\n\\begin{aligned}\n& ((\\cdots((((100 \\star 99) \\star 98) \\star 97) \\star 96) \\star \\cdots \\star 3) \\star 2) \\star 1 \\\\\n&= ((\\cdots((((100 \\star (99 + 98)) \\star 97) \\star 96) \\star \\cdots \\star 3) \\star 2) \\star 1 \\\\\n&= ((\\cdots((100 \\star (99 + 98 + 97)) \\star 96) \\star \\cdots \\star 3) \\star 2) \\star 1 \\\\\n&= \\cdots \\\\\n&= 100 \\star (99 + 98 + 97 + \\cdots + 3 + 2 + 1) \\\\\n&= 100 \\star \\frac{99 \\cdot 100}{2}.\n\\end{aligned}\n$$\n$$\n\\text{Therefore, the answer is } 100 \\star 4950 = \\frac{100}{495001}.\n$$", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 34825, "subject": "Mathematics (Multi-modal)", "question": "Let $a_1, a_2, a_3, a_4, a_5, a_6, a_7$ be distinct positive integers. Find the minimum possible value of $|a_7 - a_1|$ assuming that the sequence $a_1, 2a_2, 3a_3, 4a_4, 5a_5, 6a_6, 7a_7$ is an arithmetic progression. A sequence $x_1, x_2, \\dots, x_7$ is called an arithmetic progression if $x_2 - x_1 = x_3 - x_2 = \\dots = x_7 - x_6$.", "options": [], "answer": "360", "solution": "360\nThe assumption implies that there holds $ia_i = a_1 + (i-1)(2a_2 - a_1)$ for any integer $2 \\le i \\le 7$. Subtracting $a_1$ from both sides and dividing by $i$, one obtains\n$$\na_i - a_1 = \\frac{ia_i - ia_1}{i} = \\frac{(i-1)(2a_2 - a_1) - (i-1)a_1}{i} = \\frac{2(i-1)(a_2 - a_1)}{i}.\n$$\nSince $i$ and $i-1$ are coprime, $2(a_2 - a_1)$ is divided by $i$ for any $2 \\le i \\le 7$, thus divided by $420$. By the assumption $a_2 - a_1 \\ne 0$, thus $|2(a_2 - a_1)| \\ge 420$. Hence\n$$\n|a_7 - a_1| = \\left| \\frac{2 \\cdot 6 \\cdot (a_2 - a_1)}{7} \\right| \\ge \\frac{6}{7} \\cdot 420 = 360.\n$$\nOn the other hand, the sequence $(a_1, a_2, a_3, a_4, a_5, a_6, a_7) = (420, 210, 140, 105, 84, 70, 60)$ satisfies the assumption and $|a_7 - a_1| = 360$, thus the answer is $360$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34826, "subject": "Mathematics (Multi-modal)", "question": "We denote $S = \\{1, 2, \\dots, 3000\\}$. Find the maximum possible value of an integer $X$ that satisfies the following condition:\nFor any bijection $f: S \\to S$, there exists a bijection $g: S \\to S$ such that\n$$\n\\sum_{k=1}^{3000} \\left( \\max\\{f(f(k)), f(g(k)), g(f(k)), g(g(k))\\} - \\min\\{f(f(k)), f(g(k)), g(f(k)), g(g(k))\\} \\right)\n$$\nis no less than $X$.", "options": [], "answer": "6000000", "solution": "We denote\n$$\nX_{\\max}(f,g) = \\sum_{k=1}^{3000} \\max\\{f(f(k)), f(g(k)), g(f(k)), g(g(k))\\},\n$$\n$$\nX_{\\min}(f,g) = \\sum_{k=1}^{3000} \\min\\{f(f(k)), f(g(k)), g(f(k)), g(g(k))\\},\n$$\nand $X(f,g) = X_{\\max}(f,g) - X_{\\min}(f,g)$. Moreover, for a finite set $T$, we denote the number of its elements by $|T|$.\n\nFirst, we will prove that the answer is at most $6000000$. When the bijection $f$ is the identity map, for any bijection $g$ on $S$, we have $f \\circ g = g \\circ f$. For any $a \\in S$, since the function $f \\circ f$ is bijective, the equation $f(f(x)) = a$ for $x$ has at most one solution. The same is true for the bijections $f \\circ g = g \\circ f$ and $g \\circ g$. Therefore, the equation $\\max\\{f(f(x)), f(g(x)), g(f(x)), g(g(x))\\} = a$ for $x$ has at most three solutions. Hence we have\n$$\nX_{\\max}(f,g) \\le 3 \\times 3000 + 3 \\times 2999 + \\dots + 3 \\times 2001 = \\sum_{k=2001}^{3000} 3k,\n$$\nand similarly,\n$$\nX_{\\min}(f,g) \\ge 3 \\times 1 + 3 \\times 2 + \\dots + 3 \\times 1000 = \\sum_{k=1}^{1000} 3k.\n$$\nTherefore,\n$$\nX(f,g) \\le \\sum_{k=2001}^{3000} 3k - \\sum_{k=1}^{1000} 3k = 6000000.\n$$\nHence, the answer is at most $6000000$.\n\nIn the following, we will prove that $X = 6000000$ satisfies the condition. We denote\n$$\nS_1 = \\{1, 2, \\dots, 1000\\}, \\quad S_2 = \\{1001, 1002, \\dots, 2000\\}, \\quad S_3 = \\{2001, 2002, \\dots, 3000\\}.\n$$\nAdditionally, for $a, b \\in \\{1, 2, 3\\}$, let $S_{a,b} = \\{x \\in S_a \\mid f(x) \\in S_b\\}$ and $n_{a,b} = |S_{a,b}|$. Now, for any $x \\in S$, there exists exactly one pair $(a, b) \\in \\{1, 2, 3\\}^2$ such that $x \\in S_{a,b}$.\n\n**Lemma.** For any bijection $f$ on $S$, there exists a partition $\\{Z_1, Z_2, \\dots, Z_{1000}\\}$ of $S$ satisfying the following condition:\nFor any $1 \\le i \\le 1000$, $|Z_i| = 3$ and when $a_1, a_2, a_3$ denote the elements of $Z_i$ in ascending order, we have $a_1 \\in S_1, a_2 \\in S_2$ and $a_3 \\in S_3$. In addition, exactly one element of $\\{f(a_1), f(a_2), f(a_3)\\}$ belongs to $S_b$ for every $b \\in \\{1, 2, 3\\}$.\n\n**Proof.** Assume that there exists a tuple $(A_1, B_1, A_2, B_2, A_3, B_3)$ of non-negative integers satisfying the equations:\n$$\n\\begin{align*}\nA_1 + B_1 &= n_{1,1}, & A_2 + B_2 &= n_{1,2}, & A_3 + B_3 &= n_{1,3}, \\\\\nA_3 + B_2 &= n_{2,1}, & A_1 + B_3 &= n_{2,2}, & A_2 + B_1 &= n_{2,3}, & (*) \\\\\nA_2 + B_3 &= n_{3,1}, & A_3 + B_1 &= n_{3,2}, & A_1 + B_2 &= n_{3,3}.\n\\end{align*}\n$$\nThen, we have a partition $\\{Z_1, \\dots, Z_{1000}\\}$ of $S$ which satisfies the condition in the lemma and the following condition:\nFor each $Z_i = \\{a_1, a_2, a_3\\}$ with $a_1 < a_2 < a_3$, define a permutation $\\sigma_i$ of $\\{1, 2, 3\\}$ such that $a_k \\in S_{k, \\sigma_i(k)}$ for $k = 1, 2, 3$. Then the number of $Z_i$ such that $(\\sigma_i(1), \\sigma_i(2), \\sigma_i(3))$ is equal to $(1, 2, 3)$, $(1, 3, 2)$, $(2, 3, 1)$, $(2, 1, 3)$, $(3, 1, 2)$, and $(3, 2, 1)$ is equal to $A_1, B_1, A_2, B_2, A_3$ and $B_3$, respectively.\nHence it is sufficient to prove that a tuple $(A_1, B_1, A_2, B_2, A_3, B_3)$ satisfying the equations $(*)$ exists.\n\nWithout loss of generality, we can assume that $n_{1,1}$ is the smallest among nine integers $n_{a,b}$ ($a, b \\in \\{1, 2, 3\\}$). Setting\n$$\n(A_1, B_1, A_2, B_2, A_3, B_3) = (n_{1,1}, 0, n_{2,3}, n_{3,3} - n_{1,1}, n_{3,2}, n_{2,2} - n_{1,1}),\n$$\nthis is a tuple of non-negative integers by the minimality of $n_{1,1}$, and satisfies the first, fifth, sixth, eighth, and ninth equations in $(*)$. Furthermore, for any $a \\in \\{1, 2, 3\\}$, we have\n$$\n\\begin{align*}\nn_{a,1} + n_{a,2} + n_{a,3} &= |S_a| = 1000, \\\\\nn_{1,a} + n_{2,a} + n_{3,a} &= |\\{x \\in S \\mid f(x) \\in S_a\\}| = 1000.\n\\end{align*}\n$$\nThus, we find that the tuple satisfies the second, third, fourth, and seventh equations in $(*)$:\n$$\nA_2 + B_2 = n_{2,3} + n_{3,3} - n_{1,1} = (n_{1,3} + n_{2,3} + n_{3,3}) - (n_{1,1} + n_{1,2} + n_{1,3}) + n_{1,2} = n_{1,2},\n$$\n$$\nA_3 + B_3 = n_{3,2} + n_{2,2} - n_{1,1} = (n_{1,2} + n_{2,2} + n_{3,2}) - (n_{1,1} + n_{1,2} + n_{1,3}) + n_{1,3} = n_{1,3},\n$$\n$$\nA_3 + B_2 = n_{3,2} + n_{3,3} - n_{1,1} = (n_{3,1} + n_{3,2} + n_{3,3}) - (n_{1,1} + n_{2,1} + n_{3,1}) + n_{2,1} = n_{2,1},\n$$\n$$\nA_2 + B_3 = n_{2,3} + n_{2,2} - n_{1,1} = (n_{2,1} + n_{2,2} + n_{2,3}) - (n_{1,1} + n_{2,1} + n_{3,1}) + n_{3,1} = n_{3,1},\n$$\nwhich completes the proof. ■\n\nLet us consider $Z_j = \\{a_1, a_2, a_3\\}$ with $a_1 < a_2 < a_3$. Then $a_1 \\in S_1$, $a_2 \\in S_2$ and $a_3 \\in S_3$. For each $i \\in \\{1, 2, 3\\}$, we define $k_i$ by $f(k_i) = a_i$. Since $g(k_i) = h(f(k_i)) = h(a_i) = a_{i+1}$, we obtain\n$$\n\\begin{aligned} \\max\\{f(f(k_i)), f(g(k_i)), g(f(k_i)), g(g(k_i))\\} &= \\max\\{f(a_i), f(a_{i+1}), g(a_i), g(a_{i+1})\\} \\\\ &= \\max\\{f(a_i), f(a_{i+1}), h(f(a_i)), h(f(a_{i+1}))\\}, \\end{aligned}\n$$\nwhere $a_4 = a_1$. Let us define $F_1, F_2, F_3$ by $\\{f(a_1), f(a_2), f(a_3)\\} = \\{F_1, F_2, F_3\\}$ and $F_1 < F_2 < F_3$. By the condition of the lemma, we have $F_1 \\in S_1$, $F_2 \\in S_2$ and $F_3 \\in S_3$. Furthermore, we have $h(F_1) \\in S_2$, $h(F_2) \\in S_3$ and $h(F_3) \\in S_1$, by the definition of $h$. Therefore, we obtain\n$$\n\\begin{aligned} & \\sum_{i=1}^{3} \\max\\{f(f(k_i)), f(g(k_i)), g(f(k_i)), g(g(k_i))\\} \\\\ &= \\max\\{F_1, F_2, h(F_1), h(F_2)\\} + \\max\\{F_2, F_3, h(F_2), h(F_3)\\} + \\max\\{F_3, F_1, h(F_3), h(F_1)\\} \\\\ &= h(F_2) + \\max\\{F_3, h(F_2)\\} + F_3 \\\\ & \\geq h(F_2) + \\frac{1}{2}(F_3 + h(F_2)) + F_3 \\\\ &= \\frac{3}{2}F_3 + \\frac{3}{2}h(F_2). \\end{aligned} \\quad (**)\n$$\nEvery element of $S$ appears exactly once as $a_1, a_2$ or $a_3$ for some $Z_j$. Since $f$ is bijective, the same is true for $k_1, k_2$ or $k_3$. Furthermore, since $f$ and $h$ are both bijections, each element of $S_3$ appears exactly once as $F_3$, and as $h(F_2)$, for some $Z_j$. Hence, by taking sums of both sides of $(**)$ for $Z_1, \\dots, Z_{1000}$, we have\n$$\nX_{\\max}(f,g) \\geq \\frac{3}{2} \\sum_{k=2001}^{3000} k + \\frac{3}{2} \\sum_{k=2001}^{3000} k = \\sum_{k=2001}^{3000} 3k.\n$$\nSimilarly, we have $X_{\\min}(f,g) \\leq \\sum_{k=1}^{1000} 3k$. Therefore, we can conclude that\n$$\nX(f,g) \\geq \\sum_{k=2001}^{3000} 3k - \\sum_{k=1}^{1000} 3k = 6000000.\n$$\nThis completes the proof that $X = 6000000$ satisfies the condition, hence the answer is $6000000$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34827, "subject": "Mathematics (Multi-modal)", "question": "A regular hexagon is inscribed in a rectangle as shown in the figure. The areas of the shaded triangle and quadrilateral are $20$ and $23$ respectively. Find the area of the regular hexagon.\n\n![](attached_image_1.png)", "options": [], "answer": "222", "solution": "222\nLet $XY$ represent the length of segment $XY$. In the figure, let $A$, $B$, $C$ and $D$ be the vertices of the rectangle, and $P$, $Q$, $R$, $S$, $T$, $U$ and $O$ the vertices and the center of the regular hexagon.\n![](attached_image_2.png)\nSince $\\angle QAP = \\angle PQS = 90^\\circ$, we can conclude that $\\angle APQ = 90^\\circ - \\angle AQP = \\angle BQS$. Moreover, $\\angle PAQ = \\angle QBS = 90^\\circ$. Hence, triangles $PAQ$ and $QBS$ are similar. From $\\angle PQS = 90^\\circ$ and $\\angle QPS = 60^\\circ$, the ratio of similarity between triangles $PAQ$ and $QBS$ is $PQ : QS = 1 : \\sqrt{3}$. Therefore, the area of triangle $QBS$ is $20 \\cdot (\\sqrt{3})^2 = 60$, and the area of triangle $QRS$ is $60 - 23 = 37$. Since $OQ \\parallel SR$, the areas of triangles $QRS$ and $ORS$ are equal, and this is $1/6$ of the area of hexagon $PQRSTU$. Hence, the answer is $37 \\cdot 6 = 222$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34828, "subject": "Mathematics (Multi-modal)", "question": "Let $a$, $b$ and $c$ be positive integers satisfying\n$$\n\\frac{(ab-1)(ac-1)}{bc} = 2023, \\quad \\text{and} \\quad b \\le c.\n$$\nFind all possible values for $c$.", "options": [], "answer": "82, 167, 1034", "solution": "$82$, $167$, $1034$\n\nWe have\n$$\n\\frac{(ab-1)(ac-1)}{bc} = \\left(a - \\frac{1}{b}\\right) \\left(a - \\frac{1}{c}\\right).\n$$\nSince we have $0 \\le a - 1 \\le a - \\frac{1}{b} < a$ and $0 \\le a - 1 \\le a - \\frac{1}{c} < a$, we conclude\n$$\n(a-1)^2 \\le \\frac{(ab-1)(ac-1)}{bc} < a^2,\n$$\nand hence, $(a-1)^2 \\le 2023 < a^2$. Since $44^2 = 1936 < 2023 < 2025 = 45^2$, we have $a-1 \\le \\sqrt{2023} < 45$ and $44 < \\sqrt{2023} < a$. Therefore, we have $44 < a < 46$, and hence, $a = 45$.\n\nBy substituting $a = 45$ into $\\frac{(ab-1)(ac-1)}{bc} = 2023$, we get $(45b-1)(45c-1) = 2023bc$, which can be rewritten as $2bc-45b-45c+1 = 0$. From this, we obtain $4bc-90b-90c+2 = 0$, and hence, we have $(2b-45)(2c-45) = 2023$. Since $2023 = 7 \\cdot 17^2$ and $-43 \\le 2b-45 \\le 2c-45$, the possible pairs for $(2b - 45, 2c - 45)$ are $(1, 2023)$, $(7, 289)$, and $(17, 119)$. Then the corresponding pairs are given by $(b, c) = (23, 1034)$, $(26, 167)$, $(31, 82)$, and all of them satisfy the given conditions.\n\nTherefore, the positive integers $(a, b, c)$ that satisfy the conditions are $(45, 23, 1034)$, $(45, 26, 167)$, and $(45, 31, 82)$. Hence, the answer is $82$, $167$, $1034$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34829, "subject": "Mathematics (Multi-modal)", "question": "Consider a figure consisting of 15 circles and 20 line segments as shown below. Each circle is labeled with a 0, 1, or 2, and we define the *beauty* of a labeling as the number of line segments whose endpoints are labeled with numbers that differ by 1.\nLet $M$ be the largest possible beauty that can be achieved with any labeling. How many labelings exist that achieve the beauty of $M$?\n\n![](attached_image_1.png)\n\nNote that we distinguish labelings which can be obtained from each other by rotations or reflections.", "options": [], "answer": "1920", "solution": "1920\nA line segment for which the difference between the numbers written in the two circles at its endpoints is 1 is called a good line segment, and one that does not satisfy this condition is called a bad line segment. Let us also name the six pentagons as $P_1$ to $P_6$, as shown in the figure below.\n![](attached_image_2.png)\n**Lemma.** Among the five line segments that form a pentagon, at least one is a bad line segment.\n**Proof.** Assume that all five line segments are good line segments, and we will show a contradiction. Let $a, b, c, d, e$ be the numbers written in the circles of the pentagon in clockwise order. Since we are assuming that all line segments are good, we have $a-b, b-c, c-d, d-e$, and $e-a$ are all odd numbers. Thus, their sum is also odd. However, this sum is equal to 0, which is a contradiction. ■\n\nFor each pentagon $P_i$, let $b_i$ be the number of bad line segments among the five line segments that form it. From the lemma, we know that $b_i \\ge 1$ for all $i$. Let $a$ be the number of bad line segments among the ten line segments on the outer border, and let $b$ be the number of bad line segments among the remaining ten line segments. Then, we have $a + 2b = \\sum_{i=1}^{6} b_i$. Thus, we have $a + 2b \\ge 6$, which implies $a + b \\ge \\frac{a+2b}{2} \\ge 3$. Therefore, there are at least three bad line segments in total. Conversely, if we label circles in the following way, there are exactly three bad line segments (shown bold), satisfying the given conditions. Therefore, the maximum value $M$ of beauty is $20 - 3 = 17$.\n\n![](attached_image_3.png)\n\nConsider the case where there are 3 bad line segments. By considering the equality condition of the inequality above, we have $a = 0$ and $b = 3$, which implies that there are no bad line segments among the outer 10 line segments. Furthermore, from $\\sum_{i=1}^{6} b_i = a + 2b = 6$, we have $b_i = 1$ for each pentagon $P_i$ and each of its 5 line segments has exactly 1 bad line segment. Therefore, by symmetry, the answer is 5 times the number of valid labelings when we fix one bad line segment of $P_1$ to be the bold line segment in the lower left figure. When we fix it, the arrangement of bad line segments is uniquely determined as the bold line segments shown in the lower right figure.\n![](attached_image_4.png)\n\nNote that the only allowed odd number is 1, a good line segment must have different parity between the ends and vice versa. Hence, the parity of labeling must be one of the following two patterns, and conversely, any labelling consistent with these patterns satisfies the condition.\n\n![](attached_image_5.png)\n![](attached_image_6.png)\n\nThere are two even numbers allowed, so there are $2^7$ ways to fill in the left pattern and $2^8$ ways to fill in the right pattern, for a total of $2^7 + 2^8 = 384$ ways.\n\nTherefore, the answer is $5 \\times 384 = 1920$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34830, "subject": "Mathematics (Multi-modal)", "question": "How many permutations $p_1, p_2, \\dots, p_{2023}$ of $1, 2, \\dots, 2023$ satisfy the equation\n$$\np_1 + |p_2 - p_1| + |p_3 - p_2| + \\dots + |p_{2023} - p_{2022}| + p_{2023} = 4048?\n$$", "options": [], "answer": "2021 * 2^2021", "solution": "Let $p_0 = p_{2024} = 0$ and let $t$ be a positive integer such that $p_t = 2023$. The given condition gives\n$$\n\\begin{aligned}\n& 2 = 4048 - (2023 + 2023) \\\\\n&= \\left( p_1 + \\sum_{i=1}^{2022} |p_{i+1} - p_i| + p_{2023} \\right) - \\left( \\sum_{i=0}^{t-1} (p_{i+1} - p_i) + \\sum_{i=t}^{2023} (p_i - p_{i+1}) \\right) \\\\\n&= \\left( \\sum_{i=0}^{t-1} |p_{i+1} - p_i| + \\sum_{i=t}^{2023} |p_i - p_{i+1}| \\right) - \\left( \\sum_{i=0}^{t-1} (p_{i+1} - p_i) + \\sum_{i=t}^{2023} (p_i - p_{i+1}) \\right) \\\\\n&= \\sum_{i=0}^{t-1} \\left( |p_{i+1} - p_i| - (p_{i+1} - p_i) \\right) + \\sum_{i=t}^{2023} \\left( |p_i - p_{i+1}| - (p_i - p_{i+1}) \\right),\n\\end{aligned}\n$$\nthus\n$$\nf(i) = \\begin{cases} p_{i+1} - p_i & (0 \\le i \\le t-1), \\\\ p_i - p_{i+1} & (t \\le i \\le 2023) \\end{cases}\n$$\nsatisfies $\\sum_{i=0}^{2023} (|f(i)| - f(i)) = 2$. Since we have\n$$\n|a| - a = \\begin{cases} 0 & (a \\ge 0), \\\\ 2|a| & (a < 0) \\end{cases}\n$$\nfor any integer $a$, $\\sum_{i=0}^{2023} (|f(i)| - f(i)) = 2$ if and only if there exists an integer $k$ with $0 \\le k \\le 2023$ such that $f(k) = -1$ and $f(i) > 0$ for every integer $i$ which is different from $k$ and $0 \\le i \\le 2023$. Since $f(0)$, $f(t-1)$, $f(t)$ and $f(2023)$ are all positive, $k$ is neither $0$, $t-1$, $t$ nor $2023$.\n\nWhen $k \\ge t+1$, we have $0 = p_0 < p_1 < \\dots < p_t > p_{t+1} > \\dots > p_k < p_{k+1} > p_{k+2} > \\dots > p_{2024} = 0$ with $p_{k+1} = p_k + 1$. Since $p_{k+1} < 2023$, we have $p_k = p_{k+1} - 1 \\le 2021$. Let $(A, B)$ be a pair of sets satisfying $A \\cap B = \\emptyset$, $A \\cup B = \\{1, 2, \\dots, m-1, m+2, m+3, \\dots, 2022\\}$ for some integer $m$ with $1 \\le m \\le 2021$. We fix such a pair $(A, B)$, and consider all permutations $p_1, p_2, \\dots, p_{2023}$ that satisfy the following conditions:\n$$\n\\bullet \\{p_1, p_2, \\dots, p_{t-1}\\} = A,\n$$\n$$\n\\bullet p_t = 2023,\\ p_k = m,\\ p_{k+1} = m+1,\n$$\n$$\n\\bullet \\{p_{t+1}, p_{t+2}, \\dots, p_{k-1}, p_{k+2}, p_{k+3}, \\dots, p_{2023}\\} = B\n$$\nThe number of such permutations is to be determined. Note that $p_1, p_2, \\dots, p_{t-1}$ are arranged in increasing order of elements in $A$. The numbers $p_{t+1}, p_{t+2}, \\dots, p_{k-1}$ are arranged in decreasing order of the elements in $B$ that are greater than $m$, and the numbers $p_{k+2}, p_{k+3}, \\dots, p_{2023}$ are arranged in decreasing order of the elements in $B$ that are less than $m+1$. Therefore, $p_{t+1}, p_{t+2}, \\dots, p_{k-1}, p_{k+2}, p_{k+3}, \\dots, p_{2023}$ are arranged in decreasing order of elements in $B$. Conversely, this permutation satisfies all the conditions, hence we conclude that there is exactly one such permutation. Since there are $2021$ choices for $m$, and $2^{2020}$ choices for $(A, B)$, there are $2021 \\cdot 2^{2020}$ permutations satisfying the conditions when $k \\ge t+1$.\n\nBy the same reasoning, the number of permutations satisfying the conditions when $k \\le t-2$ is also $2021 \\cdot 2^{2020}$. Thus, the answer is $2021 \\cdot 2^{2020} \\cdot 2 = 2021 \\cdot 2^{2021}$.", "topic": "Discrete Mathematics", "subtopic": "Combinatorics" }, { "id": 34831, "subject": "Mathematics (Multi-modal)", "question": "You are given that the following value is a rational number. Express it as an irreducible fraction.\n$$\n\\sqrt{\\frac{123! - 122!}{122! - 121!}}\n$$", "options": [], "answer": "122/11", "solution": "$$\n\\boxed{\\frac{122}{11}}\n$$\nWe have\n$$\n\\begin{align*}\n\\sqrt{\\frac{123! - 122!}{122! - 121!}} &= \\sqrt{\\frac{123 \\cdot 122! - 122!}{122 \\cdot 121! - 121!}} = \\sqrt{\\frac{(123 - 1) \\cdot 122!}{(122 - 1) \\cdot 121!}} \\\\\n&= \\sqrt{\\frac{122 \\cdot 122 \\cdot 121!}{121 \\cdot 121!}} = \\sqrt{\\frac{122^2}{121}} = \\frac{122}{11}.\n\\end{align*}\n$$\nSince $122$ and $11$ are coprime, the answer is $\\frac{122}{11}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34832, "subject": "Mathematics (Multi-modal)", "question": "Let $n \\ge 2$ be an integer. Find all sets of real numbers $(a_1, a_2, \\dots, a_n)$ such that $a_1 - 2a_2, a_2 - 2a_3, \\dots, a_{n-1} - 2a_n, a_n - 2a_1$ is a permutation of $a_1, a_2, \\dots, a_n$. Note that $a_1, a_2, \\dots, a_n$ itself is also a permutation of $a_1, a_2, \\dots, a_n$.", "options": [], "answer": "a1 = a2 = ... = an = 0", "solution": "Let $a_{n+1} = a_1$, $a_0 = a_n$, and let $M$ and $m$ denote the maximum and minimum values of $a_1, a_2, \\dots, a_n$, respectively. Remark that the maximum and minimum values of $a_1 - 2a_2, a_2 - 2a_3, \\dots, a_n - 2a_1$ are also $M$ and $m$, respectively. Take $s$ satisfying $a_s = m$. Then, from $M \\ge a_{s-1} - 2a_s \\ge m - 2m$, we have $M + m \\ge 0$. Therefore, if we choose $t$ satisfying $a_t = M$, then from $a_{t-1} - 2a_t \\ge m$, it follows that $a_{t-1} \\ge 2a_t + m = 2M + m \\ge M$, implying $a_{t-1} = M$. Hence, by induction, we conclude that $a_i = M$ for any $i$. Consequently, from the assumption, we have $M = M - 2M$, which implies $M = 0$. Thus, it is necessary for $a_i = 0$ for any $i$. Conversely, the problem assumption is satisfied for this case. Therefore, the solution is $(a_1, a_2, \\dots, a_n) = (0, 0, \\dots, 0)$.\n\n**Another Solution.** Let $a_{n+1} = a_1$, then from the assumption, we have:\n$$\n\\begin{align*} \n0 &= \\sum_{i=1}^{n} (a_i - 2a_{i+1})^2 - \\sum_{i=1}^{n} a_i^2 \\\\\n&= \\sum_{i=1}^{n} a_i^2 - 4 \\sum_{i=1}^{n} a_i a_{i+1} + 4 \\sum_{i=1}^{n} a_{i+1}^2 - \\sum_{i=1}^{n} a_i^2 \\\\\n&= 2 \\left( \\sum_{i=1}^{n} a_i^2 - 2 \\sum_{i=1}^{n} a_i a_{i+1} + \\sum_{i=1}^{n} a_{i+1}^2 \\right) \\\\\n&= 2 \\sum_{i=1}^{n} (a_i - a_{i+1})^2 \n\\end{align*}\n$$\nHence, $a_1 = a_2 = \\dots = a_n$. The subsequent steps are the same as the main solution.", "topic": "Discrete Mathematics", "subtopic": "Combinatorics" }, { "id": 34833, "subject": "Mathematics (Multi-modal)", "question": "Consider filling each square of an $100 \\times 100$ table with one of the letters J, M, or O. A $2 \\times 2$ square of the table is called a **good block** if it satisfies one of the following conditions:\n* The four squares have exactly one type of letter.\n* The four squares have exactly two types of letters, and each letter appears twice.\n* The four squares have exactly three types of letters, and the lower-left and upper-right squares have the same letter.\nFind the number of ways of filling the 10000 squares of the table satisfying the following two conditions:\n* Every $2 \\times 2$ square of the table is a good block.\n* Among pairs of two adjacent squares (sharing an edge) of the table, there are exactly 10000 pairs whose two squares have different letters. Here, two pairs where the order of squares is just swapped are considered as the same pair and are counted only once.\nNote that we distinguish two ways of filling which can be obtained from each other by rotations or reflections.", "options": [], "answer": "binom(198,100) * 3 * 2^100", "solution": "$\\displaystyle \\binom{198}{100} \\cdot 3 \\cdot 2^{100}$\n\n**STEP 1** In this step, we give $\\binom{198}{100} \\cdot 3 \\cdot 2^{100}$ possible ways of filling satisfying the two conditions. Let $\\ell_1, \\dots, \\ell_{99}$ be the horizontal grid lines of the table, and let $\\ell'_1, \\dots, \\ell'_{99}$ be the vertical grid lines of the table. We have exactly $\\binom{198}{100}$ ways to choose 100 lines from 198 lines $\\ell_1, \\dots, \\ell_{99}, \\ell'_1, \\dots, \\ell'_{99}$. Furthermore, there are $3 \\cdot 2^{100}$ sequences $a_1, \\dots, a_{101}$ of letters J, M, and O such that adjacent letters are different. We fix one way of choosing 100 grid lines and one sequence $a_1, \\dots, a_{101}$. For these choices, we give a way of filling the $100 \\times 100$ table as follows:\nLet $s$ be the number of the horizontal grid lines among the chosen 100 grid lines. Then, there are $100-s$ vertical grid lines among the chosen 100 lines, and the $100 \\times 100$ table is divided into $(s+1)(101-s)$ many rectangular-shaped blocks. For $1 \\le i \\le s+1$ and $1 \\le j \\le 101-s$, let $[i, j]$ denote the block located at the $i$-th row from the top and the $j$-th column from the left. Then, for each $i$ and $j$, we fill the squares in the block $[i, j]$ with the letter $a_{i+j-1}$.\n\nBy this way of filling, the squares within the same block have the same letter. On the other hand, two squares in adjacent blocks have different letters since adjacent letters in the sequence $a_1, \\dots, a_{101}$ are different.\n\n**Lemma 1.** This way of filling satisfies the first condition of the problem.\n\n**Proof of Lemma 1.** We fix a $2 \\times 2$ square in the $100 \\times 100$ table. Let $N$ be the number of chosen grid lines passing through the interior of the $2 \\times 2$ square. The possibility of $N$ is either $N=0, 1, 2$. When $N=0$, the $2 \\times 2$ square is contained in one block, and the four squares have exactly one type of letter. When $N=1$, the $2 \\times 2$ square crosses over two blocks. In this case, the four squares in the $2 \\times 2$ square have exactly two types of letters, and each letter appears twice. When $N=2$, the $2 \\times 2$ square crosses over four blocks. Let $[i, j]$ be the block containing the upper-right square of the $2 \\times 2$ square. Then, the block $[i+1, j-1]$ contains the lower-left square of the $2 \\times 2$ square. By the way of filling, those two squares have the same letter. In any case, it has been shown that the $2 \\times 2$ square is a good block, which completes the proof of Lemma 1. ■\n\n**Lemma 2.** This way of filling satisfies the second condition of the problem.\n\n**Proof of Lemma 2.** By the way of filling, for a pair of two adjacent squares of the table, the following two conditions are equivalent:\n* The two squares have different letters.\n* The two squares are separated by one of the chosen 100 grid lines.\nTherefore, we conclude that there are exactly $100 \\cdot 100 = 10000$ pairs whose two squares have different letters, which completes the proof of Lemma 2. ■\n\nThus, we have established a way of filling from a choice of 100 grid lines and a choice of a sequence. Since different choices give different fillings, we have proved that there are at least $\\binom{198}{100} \\cdot 3 \\cdot 2^{100}$ possible ways of filling satisfying the two conditions.\n\n**STEP 2** We suppose that the squares of the $100 \\times 100$ table are filled to satisfy the two conditions. In this step, we will prove that such way of filling is one of the ways given in STEP 1.\n\nLet $(i, j)$ denote the square in the $i$-th row from the top and $j$-th column from the left. Furthermore, $f(i, j)$ denotes the letter written in the square $(i, j)$.\n\nFirst, we will prove the following two lemmas.\n\n**Lemma 3.** Let $a$ and $b$ be integers satisfying $1 \\le a, b \\le 99$. Then, the two conditions $f(a, b) = f(a, b+1)$ and $f(a+1, b) = f(a+1, b+1)$ are equivalent. Furthermore, the two conditions $f(a, b) = f(a+1, b)$ and $f(a, b+1) = f(a+1, b+1)$ are equivalent.\n\n**Proof of Lemma 3.** We will show that $f(a, b) = f(a, b+1)$ implies $f(a+1, b) = f(a+1, b+1)$. Let $N$ denote the number of types of letters written in the four squares $(a, b), (a, b+1), (a+1, b), (a+1, b+1)$. Here, we have $N \\le 3$ by the definition of a good block. If $N=1$, then we have $f(a+1, b) = f(a+1, b+1)$ and it shows the assertion. If $N=2$, then each letter appears exactly twice by the definition of a good block, and hence, we conclude that $f(a, b) = f(a, b+1)$ implies $f(a+1, b) = f(a+1, b+1)$. If $N=3$, then we have $f(a+1, b) = f(a, b+1)$ by the definition of a good block. Since $N=3$, we have $f(a, b) \\neq f(a, b+1)$ and it shows the assertion.\nWe have proved that $f(a, b) = f(a, b+1)$ implies $f(a+1, b) = f(a+1, b+1)$. The other implications can be proved similarly. ■\n\n**Lemma 4.** Let $a$ and $b$ be integers satisfying $1 \\le a, b \\le 99$. If\n$$\nf(a,b) \\neq f(a,b+1) \\neq f(a+1,b+1) \\neq f(a+1,b) \\neq f(a,b),\n$$\nthen we have $f(a+1, b) = f(a, b+1)$.\n\n**Proof of Lemma 4.** Let $N$ denote the number of types of letters written in the four squares $(a, b)$, $(a, b+1)$, $(a+1, b)$, and $(a+1, b+1)$. Here, we have $N \\le 3$ by the definition of a good block, and $N \\ge 2$ by the assumption $f(a, b) \\neq f(a, b+1)$. When $N=2$, the assertion $f(a+1, b) = f(a, b+1)$ follows from the assumption $f(a, b) \\neq f(a, b+1) \\neq f(a+1, b+1)$. When $N=3$, the assertion $f(a+1, b) = f(a, b+1)$ follows from the definition of a good block. ■\n\nWhen two squares sharing an edge have different letters, we call such shared edge a **boundary edge**. From Lemma 3, for each integer $a$ with $1 \\le a \\le 99$, we conclude that either\n* all edges shared by a square on the $a$-th row and a square on the $(a+1)$-th row are boundary edges, or\n* none of them are boundary edges.\nThe same assertion holds for columns as well. Therefore, the union of the boundary edges forms a collection of some of the grid lines $\\ell_1, \\dots, \\ell_{99}, \\ell'_1, \\dots, \\ell'_{99}$. Let $s$ denote the number of horizontal grid lines obtained by the horizontal boundary edges, and let $t$ denote the number of vertical grid lines obtained by the vertical boundary edges. Then, by the boundary edges, the $100 \\times 100$ table is divided into $(s+1)(t+1)$ many rectangular-shaped blocks. By the definition of a boundary edge, the squares within the same block have the same letter, and two squares in adjacent blocks have different letters. Therefore, the number of pairs of adjacent squares sharing a boundary edge is exactly $100(s+t)$. Hence, by the second condition of the problem, we conclude that $t = 100-s$.\n\nFor $1 \\le i \\le s+1$ and $1 \\le j \\le t+1 = 101-s$, let $[i, j]$ denote the block located at the $i$-th row from the top and the $j$-th column from the left. Note that the squares in the block $[i, j]$ have the same letter, and we denote the letter by $g(i, j)$. We define a sequence $a_1, \\dots, a_{101}$ of letters J, M, and O by\n$$\na_1 = g(1, 1), \\quad a_2 = g(2, 1), \\quad \\dots, \\quad a_{s+1} = g(s+1, 1), \\\\\na_{s+2} = g(s+1, 2), \\quad \\dots, \\quad a_{101} = g(s+1, t+1).\n$$\nThen, adjacent letters of the sequence are different.\n\nBy Lemma 4, we have\n$$\ng(i,j) = \\begin{cases} g(i+j-1, 1) & \\text{if } i+j-1 \\le s+1 \\\\ g(s+1, i+j-s-1) & \\text{otherwise} \\end{cases} = a_{i+j-1}\n$$\nfor any $1 \\le i \\le s+1$ and $1 \\le j \\le t+1 = 101-s$. Therefore, this way of filling coincides with the way given in STEP 1 corresponding to the choice of the 100 grid lines and the sequence $a_1, \\dots, a_{101}$.\n\nBy STEP 1 and STEP 2, we conclude that there are exactly $\\binom{198}{100} \\cdot 3 \\cdot 2^{100}$ ways of filling satisfying the two conditions.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 34834, "subject": "Mathematics (Multi-modal)", "question": "Let $N$ be the set of positive integers. A function $f: N \\to N$ satisfies $f(34) = 2024$, and for any positive integers $a, b, c$, there exists a triangle with side lengths $a+f(b)$, $b+f(c)$, $c+f(a)$. Find the smallest possible value of $f(100) + f(101) + \\dots + f(199)$ under these conditions. Note that three points lying on the same line do not form a triangle.", "options": [], "answer": "102050", "solution": "The existence of a triangle with side lengths $a + f(b)$, $b + f(c)$, $c + f(a)$ is equivalent to the following conditions:\n$$\n\\begin{cases} a + f(b) < b + f(c) + c + f(a), \\\\ b + f(c) < c + f(a) + a + f(b), \\\\ c + f(a) < a + f(b) + b + f(c). \\end{cases}\n$$\nBy symmetry of $a, b, c$, the existence of a triangle with side lengths $a + f(b)$, $b + f(c)$, $c + f(a)$ for any positive integers $a, b, c$ is equivalent to the condition that for any positive integers $a, b, c$, we have $a + f(b) < b + f(c) + c + f(a)$, or equivalently,\n$$\n(f(b) - b) - (f(a) - a) < f(c) + c. \\quad (*)\n$$\nBy considering the cases where $a = c = 1$ and $b = c = 1$ in $(*)$, we can establish that $-2 < f(x) - x < 2f(1)$ holds for any positive integer $x$. Consequently, $f(x) - x$ has both a minimum and a maximum value. Denote the minimum and the maximum values as $m$ and $M$ respectively, and let $r = M - m$. Then, from $(*)$, we have $f(x) + x > r$, which implies $f(x) \\ge r - x + 1$. Furthermore, let $k = f(34) - 34 = 1990$. Since $M \\ge k$, it follows that $m = M - r \\ge k - r$. Thus, for any positive integer $x$, we have $f(x) - x \\ge k - r$, or equivalently, $f(x) \\ge k + x - r$.\nTherefore, we have:\n$$\n\\begin{aligned} f(100) &\\ge r - 99, & f(101) &\\ge r - 100, & \\dots, & f(149) &\\ge r - 148, \\\\ f(150) &\\ge k + 150 - r, & f(151) &\\ge k + 151 - r, & \\dots, & f(199) &\\ge k + 199 - r. \\end{aligned}\n$$\nSince all these inequalities hold, summing them up, we obtain $f(100) + f(101) + \\dots + f(199) \\ge 50k + 2550$.\n\nOn the other hand, define:\n$$\ng(x) = \\begin{cases} \\frac{k}{2} + 150 - x & (100 \\le x \\le 149) \\\\ \\frac{k}{2} + x - 149 & (150 \\le x \\le 199) \\\\ x + k & \\text{(other cases).} \\end{cases}\n$$\nBy considering each of three cases, it can be seen that for any positive integer $x$, $g(x) + x \\ge \\frac{k}{2} + 150$ and $\\frac{k}{2} - 149 \\le g(x) - x \\le k$. Therefore, for any positive integers $a, b, c$,\n$$\n(g(b) - b) - (g(a) - a) \\le k - \\left(\\frac{k}{2} - 149\\right) < \\frac{k}{2} + 150 \\le g(c) + c\n$$\nholds, and since $g(34) = k + 34$, $g$ satisfies the conditions of the problem. For this function $g$, $g(100)+g(101)+\\cdots+g(199) = 50k+2550$ holds, so the minimum to find is $50k+2550 = 102050$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34835, "subject": "Mathematics (Multi-modal)", "question": "Find the number of tuples $(a_1, a_2, \\dots, a_{2100})$ of integers between $0$ and $2099$ inclusive that satisfy the following condition:\nThere exists a tuple of integers $(b_1, b_2, \\dots, b_{2100})$ such that for every integer $i$ from $1$ to $2100$,\n$$\na_i \\equiv \\sum_{\\substack{\\gcd(j-i, 2100)=1 \\\\ 1 \\le j \\le 2100}} b_j \\pmod{2100}\n$$\nholds.", "options": [], "answer": "2100^{210}/(2^{164}*3^{30})", "solution": "$$\n\\boxed{\\frac{2100^{210}}{2^{164} \\cdot 3^{30}}}\n$$\nLet the function $\\gcd(a, b)$ denote the greatest common divisor of $|a|$ and $|b|$, with the definition that the greatest common divisor of $0$ and a non-negative integer $x$ is $x$. Let us also denote that, for conditions $P_1, P_2, \\dots, P_k$, the notation $\\sum_{P_1, P_2, \\dots, P_k}$ represents the sum under the conditions where all of $P_1, P_2, \\dots, P_k$ are satisfied. Unless otherwise stated, the modulus for congruences will be $2100$ in the following.\n\nLet $M = 210$. Note that $M$ is square-free. For any prime $p$, $p \\mid 2100$ and $p \\mid 210$ are equivalent, thus $\\gcd(s, 2100) = 1$ is equivalent to $\\gcd(s, 210) = 1$ for any integer $s$.\n\nConsider tuples of integers $(a_1, a_2, \\dots, a_{2100})$ and $(b_1, b_2, \\dots, b_{2100})$ satisfying\n$$\na_i \\equiv \\sum_{\\substack{\\gcd(j-i, 2100)=1 \\\\ 1 \\le j \\le 2100}} b_j.\n$$\nFor integers $i$ from $1$ to $M$, take integers $c_i$ from $0$ to $2099$ such that $c_i = \\sum_{j=0}^{9} b_{i+M j}$ holds. Then, for integers $l$ from $1$ to $2100$, it follows that $a_l = \\sum_{\\substack{\\gcd(j-l, M)=1 \\\\ 1 \\le j \\le M}} c_j$, and thus $a_{i+kM} \\equiv a_i$ holds for integers $i$ from $1$ to $M$ and integers $k$ from $0$ to $9$. Conversely, for any tuple $(c_1, c_2, \\dots, c_M)$ of integers from $0$ to $2099$, if we take $b_i$ as $\\begin{cases} c_i & (1 \\le i \\le M), \\\\ 0 & (M+1 \\le i \\le 2100) \\end{cases}$, then $c_i = \\sum_{j=0}^{9} b_{i+M j}$ ($1 \\le i \\le M$) holds. Hence it suffices to find the number of tuples $(a_1, a_2, \\dots, a_M)$ of integers from $0$ to $2099$ that satisfy the following condition:\n\nThere exists some tuple $(c_1, c_2, \\dots, c_M)$ of integers from $0$ to $2099$ such that $a_i = \\sum_{\\substack{\\gcd(j-i, M)=1 \\\\ 1 \\le j \\le M}} c_j$ holds for any integer $i$ from $1$ to $M$.\n\nIn the following, a tuple of $M$ integers from $0$ to $2099$ is called a good tuple, and for simplicity, we write $(A_i)$ to represent a good tuple $(A_1, A_2, \\dots, A_M)$. We also define that $A_{k+M} = A_k$ for any good tuple $(A_i)$ and any positive integer $k$. Additionally, $i$ will represent an integer from $1$ to $M$ and $g(i)$ will denote $\\gcd(i, M)$ hereinafter.\n\nIf good tuples $(S_i)$ and $(s_i)$ satisfy the following condition, $(S_i)$ is called the parent of $(s_i)$ and $(s_i)$ is called a child of $(S_i)$, respectively:\n$$\nS_i = \\sum_{j=0}^{g(i)-1} s_{i+\\frac{M}{g(i)}j}\n$$\nFurthermore, a good tuple $(s'_i)$ is called the inverse of $(s_i)$ if they satisfy the following condition:\n$$\ns'_i = \\sum_{\\substack{M \\mid j(j-i) \\\\ 1 \\le j \\le M}} \\mu(j)s_j.\n$$\nHere, $\\omega(n)$ denotes the number of distinct prime factors of $n$, and $\\mu(n)$ is defined by $\\mu(n) = (-1)^{\\omega(g(n))}$.\n\n**Lemma 1.** $\\mu(n)$ satisfies the following two properties.\n(1) For coprime positive integers $m$ and $n$, $\\mu(mn) = \\mu(m)\\mu(n)$.\n(2) For a positive divisor $n$ of $M$,\n$$\n\\sum_{x|n} \\mu(x) = \\begin{cases} 1 & (n=1), \\\\ 0 & (n \\ge 2). \\end{cases}\n$$\n\n**Proof of Lemma 1.**\n(1) Since $m$ and $n$ are coprime, $g(mn) = g(m)g(n)$. Since $g(m)$ and $g(n)$ are also coprime, $\\omega(g(m)g(n)) = \\omega(g(m)) + \\omega(g(n))$. Therefore,\n$$\n\\mu(mn) = (-1)^{\\omega(g(mn))} = (-1)^{\\omega(g(m))+\\omega(g(n))} = (-1)^{\\omega(g(m))}(-1)^{\\omega(g(n))} = \\mu(m)\\mu(n)\n$$\nfollows.\n(2) The case of $n=1$ is obvious. Assume $n \\ge 2$. We write $n = 2^{e_2}3^{e_3}5^{e_5}7^{e_7}$ with $e_2, e_3, e_5, e_7 \\in \\{0, 1\\}$. By property (1),\n$$\n\\sum_{x|n} \\mu(x) = \\left( \\sum_{0 \\le e_2 \\le e_1} \\mu(2^{e_2}) \\right) \\left( \\sum_{0 \\le e_3 \\le e_1} \\mu(3^{e_3}) \\right) \\left( \\sum_{0 \\le e_5 \\le e_1} \\mu(5^{e_5}) \\right) \\left( \\sum_{0 \\le e_7 \\le e_1} \\mu(7^{e_7}) \\right).\n$$\nSince $n \\ge 2$, we can take $q \\in \\{2, 3, 5, 7\\}$ with $e_q = 1$, which satisfies $\\mu(q^0) + \\mu(q^1) = 0$.\nTherefore, $\\sum_{x|n} \\mu(x) = 0$ holds for $n \\ge 2$.\n\nThus we have Lemma 1.\n\nNext, we prove the following two lemmas.\n\n**Lemma 2.** The following two properties hold:\n(1) For any good tuple $(s_i)$, there exists exactly one child.\n(2) For any good tuple $(s_i)$, there exists exactly one good tuple whose inverse is $(s_i)$.\n\n**Proof of Lemma 2.**\n(1) Note that, since there are only finite good tuples, it suffices to show that the number of child for a given good tuple is at most one. To be more precise, we show that if $(S_i)$ and $(T_i)$ are the parents of $(s_i)$ and $(t_i)$, respectively, then $(S_i) = (T_i)$ $\\Rightarrow$ $(s_i) = (t_i)$.\nSuppose otherwise, i.e., $(S_i) = (T_i)$ and there exists an $i$ such that $s_i \\neq t_i$. Without loss of generality, we can assume that $i$ is the smallest among such integers. Since $\\gcd(g(i), \\frac{M}{g(i)}) = \\gcd(i, \\frac{M}{g(i)}) = 1$ and $g(i) \\mid i$, it holds for any integer $j$ that\n$$\n\\begin{aligned}\ng\\left(i + \\frac{M}{g(i)}j\\right) &= \\gcd\\left(g(i) \\cdot \\frac{M}{g(i)}, i + \\frac{M}{g(i)}j\\right) \\\\\n&= \\gcd\\left(g(i), i + \\frac{M}{g(i)}j\\right) \\gcd\\left(\\frac{M}{g(i)}, i + \\frac{M}{g(i)}j\\right) \\\\\n&= \\gcd\\left(g(i), \\frac{M}{g(i)}j\\right) \\gcd\\left(\\frac{M}{g(i)}, i\\right) \\\\\n&= \\gcd(g(i), j).\n\\end{aligned}\n$$\nTherefore, for $1 \\le j \\le g(i) - 1$, $g\\left(i + \\frac{M}{g(i)}j\\right) < g(i)$ and thus $s_{i+\\frac{M}{g(i)}j} = t_{i+\\frac{M}{g(i)}j}$ by the minimality of $g(i)$. Hence,\n$$\ns_i \\equiv S_i - \\sum_{j=1}^{g(i)-1} s_{i+\\frac{M}{g(i)}j} \\equiv T_i - \\sum_{j=1}^{g(i)-1} t_{i+\\frac{M}{g(i)}j} \\equiv t_i,\n$$\nwhich contradicts the assumption that $s_i \\neq t_i$.\n\n(2) Similarly to (1), let $(s'_i)$ and $(t'_i)$ be the inverses of $(s_i)$ and $(t_i)$, respectively, and it suffices to show that $(s'_i) = (t'_i) \\Rightarrow (s_i) = (t_i)$.\nSuppose $(s'_i) = (t'_i)$ and there exists an $i$ such that $s_i \\neq t_i$. Again, we can assume that $i$ is the smallest among such integers without loss of generality. Since $g(i) \\mid M$, if $1 \\le j \\le M$ and $M \\mid j(j - i)$, then $j^2 \\equiv j(j - i) \\equiv 0 \\pmod{g(i)}$. Since $g(i)$ is square-free, we have $g(i) \\mid j$ and thus $g(i) \\mid g(j)$. Noting that $g(j) > g(i) \\Rightarrow s_j = t_j$ from the maximality of $g(i)$, $s'_i = t'_i$ means\n$$\n\\begin{align*}\n\\sum_{\\substack{M \\mid j(j-i), g(j)=g(i) \\\\ 1 \\le j \\le M}} \\mu(j) s_j &\\equiv \\sum_{\\substack{M \\mid j(j-i) \\\\ 1 \\le j \\le M}} \\mu(j) s_j - \\sum_{\\substack{M \\mid j(j-i), g(j)>g(i) \\\\ 1 \\le j \\le M}} \\mu(j) s_j \\\\\n&\\equiv s'_i - \\sum_{\\substack{M \\mid j(j-i), g(j)>g(i) \\\\ 1 \\le j \\le M}} \\mu(j) s_j \\\\\n&= t'_i - \\sum_{\\substack{M \\mid j(j-i), g(j)>g(i) \\\\ 1 \\le j \\le M}} \\mu(j) t_j \\\\\n&\\equiv \\sum_{\\substack{M \\mid j(j-i), g(j)=g(i) \\\\ 1 \\le j \\le M}} \\mu(j) t_j.\n\\end{align*}\n$$\nHere, $M \\mid j(j - i)$ implies $M/g(j) \\mid (j - i)$. Also, $g(j) = g(i)$ implies $g(j) \\mid (j - i)$. Since $g(j)$ and $M/g(j)$ are coprime, $M/g(j) \\mid (j - i)$ and $g(j) \\mid (j - i)$ mean $j = i$ under the condition $1 \\le j \\le M$. Hence the condition $s'_i = t'_i$ reduces to $s_i = t_i$, which contradicts the assumption that $s_i \\ne t_i$.\nThis concludes the proof of Lemma 2. ■\n\n**Lemma 3.** Consider good tuples $(a_i)$ and $(c_i)$, with $(A_i)$ and $(C_i)$ being their parents respectively, and let $(C'_i)$ be the inverse of $(C_i)$. The following two conditions are equivalent:\n$$\n(1) \\text{ For every } i, \\text{ it holds that } a_i \\equiv \\sum_{\\substack{\\gcd(j-i,M)=1 \\\\ 1 \\le j \\le M}} c_j.\n$$\n(2) For every $i$, it holds that $A_i \\equiv \\phi(g(i))C'_i$, where $\\phi(n)$ is Euler's totient function.\n\n**Proof of Lemma 3.** (1) $\\implies$ (2): Suppose that (1) holds. By definition of inversion, we have\n$$\nC'_i \\equiv \\sum_{\\substack{M \\mid j(j-i) \\\\ 1 \\le j \\le M}} \\mu(j) C_j \\equiv \\sum_{M \\mid j(j-i)} \\sum_{k=0}^{g(j)-1} \\mu(j) c_{j+\\frac{M}{g(j)}k}.\n$$\nSince $\\mu(j) = (-1)^{\\omega(g(j))} = (-1)^{\\omega(g(g(j)))} = \\mu(g(j))$, we have\n$$\nC'_i \\equiv \\sum_{\\substack{M \\mid j(j-i) \\\\ 1 \\le j \\le M}} \\sum_{k=0}^{g(j)-1} \\mu(g(j)) c_{j+\\frac{M}{g(j)}k}.\n$$\nRearranging terms based on the values of $g(j)$, we have\n$$\nC'_i \\equiv \\sum_{v \\mid M} \\sum_{\\substack{g(j)=v \\\\ M \\mid j(j-i)}} \\sum_{1 \\le j \\le M}^{v-1} \\mu(v) c_{j+\\frac{M}{v}k} \\equiv \\sum_{u=0}^{M-1} \\sum_{v \\mid M} \\sum_{k=0}^{v-1} \\sum_{\\substack{g(j)=v \\\\ M \\mid j(j-i) \\\\ j+v'k \\equiv i+u \\\\ 1 \\le j \\le M}} \\mu(v) c_{i+u}\n$$\nwhere $v' = \\frac{M}{v}$.\nThus, the right side can be written as $\\sum_{u=0}^{M-1} \\sum_{v|M} \\alpha_{i,u,v} \\mu(v) c_{i+u}$, where $\\alpha_{i,u,v}$ is the number of integer pairs $(j, k)$ satisfying $1 \\le j \\le M, 0 \\le k < v, g(j) = v, M | j(j-i)$, and $j+v'k = i+u$. We want to show that\n$$\n\\alpha_{i,u,v} = \\begin{cases} 1 & (u \\equiv 0 \\pmod{v'} \\text{ and } \\gcd(i, v') = 1), \\\\ 0 & (\\text{otherwise}). \\end{cases}\n$$\nholds.\nNote that $M|j(j - i)$ and $g(j) = v$ mean that $M/v = v' | (j - i)$. Hence, we have $u \\equiv j + v'k - i \\equiv 0 \\pmod{v'}$. This yields $\\alpha_{i,u,v} = 0$ for $u \\ne 0 \\pmod{v'}$. Also, when $\\gcd(i, v') \\ne 1$, $v' | (j - i)$ implies $\\gcd(j, v') \\ne 1$ and thus $g(j) \\ne v$. This yields $\\alpha_{i,u,v} = 0$ for the case $\\gcd(i, v') \\ne 1$.\nWe now consider the case $u \\equiv 0 \\pmod{v'}$ and $\\gcd(i, v') = 1$, and determine the number of pairs $(j, k)$ satisfying five conditions above. $g(j) = v$ implies $v | j$, or $j \\equiv 0 \\pmod{v}$. On the other hand, $j + v'k \\equiv i + u \\equiv i \\pmod{v'}$ since $u \\equiv 0 \\pmod{v'}$. Since $v$ and $v'$ are coprime, there exists unique $j$ (up to mod $M$) that satisfies both congruences by the Chinese remainder theorem. Additionally, when $j$ is fixed, there is at most one $k$ that satisfies $j + v'k \\equiv i + u$ and $0 \\le k < v$. Hence, $\\alpha_{i,u,v} \\le 1$ for this case.\nOn the other hand, Chinese remainder theorem assures that we can take $j$ such that $1 \\le j \\le M, v | j$ and $v' | (j - i)$ are satisfied. Moreover, since $j \\equiv i \\pmod{v'}$ and $u \\equiv 0 \\pmod{v'}$, we can take $k$ such that $0 \\le k < v$ and $j + v'k \\equiv i + u \\equiv u \\pmod{v'}$ are satisfied. Since $v' | (j - i)$, it holds $\\gcd(j, v') = \\gcd(i, v') = 1$. Together with $v | j$, we have $g(j) = v$. Since $v | j$ and $v' | (j - i)$, it holds $M = vv' | j(j - i)$. This implies that we can construct the pair $(j, k)$ that satisfies all five conditions, and thus $\\alpha_{i,u,v} \\ge 1$. This concludes that $\\alpha_{i,u,v} = 1$ for $u \\equiv 0 \\pmod{v'}$ and $\\gcd(i, v') = 1$.\nNote that $u \\equiv 0 \\pmod{v'}$ is equivalent to $\\frac{M}{g(u)} | v$, and that $\\gcd(i, v') = 1$ is equivalent to $g(i) | v$, we have\n$$\n\\sum_{v|M} \\alpha_{i,u,v} \\mu(v) = \\sum_{v|M, \\frac{M}{g(u)}|v, g(i)|v} \\mu(v)\n$$\nIn this sum, if we let $v = g(i)w$, $w$ varies while satisfying $w \\mid \\frac{M}{g(i)}$ and $\\frac{M}{g(u)} | g(i)w$. This is equivalent to $w \\mid \\frac{M}{g(i)}$ and $\\frac{M}{g(iu)} | w$, thus letting $w = \\frac{M}{g(iu)}x$, $x$ varies over all positive divisors of $\\frac{g(iu)}{g(i)}$, and we have\n$$\n\\mu(v) = \\mu(g(i)w) = \\mu\\left(\\frac{Mg(i)}{g(iu)}x\\right).\n$$\nSince $x$ is a positive divisor of $\\frac{g(iu)}{g(i)}$, $\\frac{Mg(i)}{g(iu)}$ and $x$ are coprime and thus\n$$\n\\mu\\left(\\frac{Mg(i)}{g(iu)}x\\right) = \\mu\\left(\\frac{Mg(i)}{g(iu)}\\right) \\mu(x)\n$$\nholds.\nSince $\\frac{g(iu)}{g(i)}$ is a divisor of $M$, according to Lemma 1(2), $\\sum_{x|\\frac{g(iu)}{g(i)}} \\mu(x)$ is equal to $1$ when $\\frac{g(iu)}{g(i)} = 1$ (i.e., $g(u) | g(i)$), and $0$ otherwise. Furthermore, when $g(u) | g(i)$, we have $\\mu\\left(\\frac{Mg(i)}{g(iu)}\\right) = \\mu(M) = 1$. Hence\n$$\nC'_i = \\sum_{u=0}^{M-1} \\mu\\left(\\frac{Mg(i)}{g(iu)}\\right) \\sum_{x|\\frac{g(iu)}{g(i)}} \\mu(x)c_{i+u} = \\sum_{\\substack{g(u)|g(i) \\\\ 0 \\le u < M}} c_{i+u}.\n$$\nOn the other hand, since we assume that (1) holds, we have\n$$\nA_i \\equiv \\sum_{j=0}^{g(i)-1} a_{i+\\frac{M}{g(i)}j} \\equiv \\sum_{j=0}^{g(i)-1} \\sum_{\\substack{k=1 \\\\ 1 \\le k \\le M}}^{g(k)=1} c_{i+\\frac{M}{g(i)}j+k}\n$$\nand the coefficient of $c_{i+u}$ is the number of pairs of integers $(j, k)$ satisfying $0 \\le j \\le g(i) - 1$, $1 \\le k \\le M$, $\\frac{M}{g(i)}j + k \\equiv u$, and $g(k) = 1$. This is the number of $k$ satisfying $1 \\le k \\le M$, $k \\equiv u \\pmod{\\frac{M}{g(i)}}$ and $g(k) = 1$. Therefore, by the Chinese remainder theorem, the coefficient of $c_{i+u}$ is $0$ when $\\gcd(u, \\frac{M}{g(i)}) > 1$ (i.e., when $g(u) \\nmid g(i)$), and $\\phi(g(i))$ otherwise (i.e., when $g(u) | g(i)$). Hence we have $A_i \\equiv \\phi(g(i)) \\sum_{\\substack{g(u)|g(i) \\\\ 0 \\le u < M}} c_{i+u} \\equiv \\phi(g(i))C'_i$, which concludes this part.\n$$\n(2) \\implies (1): \\text{ Suppose that (2) holds. Define a good tuple } (\\tilde{a}_i) \\text{ by } \\tilde{a}_i \\equiv \\sum_{\\substack{\\gcd(j-i,M)=1 \\\\ 1 \\le j \\le M}} c_j, \\text{ and let}\n$$\n$(\\tilde{A}_i)$ be the parent of $(\\tilde{a}_i)$. Since we have $(A_i) = (\\tilde{A}_i)$ from the above argument, (1) follows from the uniqueness of child. ■\n\nFrom Lemmas 2 and 3, what we need to find is the number of good tuples $(A_i)$ such that there exists some good tuple $(C'_i)$ for which $A_i \\equiv \\phi(g(i))C'_i$ holds for every $i$. This number is equal to $\\prod_{i=1}^{M} \\frac{2100}{\\gcd(2100, \\phi(g(i)))}$. Since $\\phi(g(i))$ is a divisor of $\\phi(M) = 48$, $\\gcd(2100, \\phi(g(i)))$ is a divisor of $\\gcd(2100, 48) = 12$.\n\n* $2 \\mid \\gcd(2100, \\phi(g(i)))$ is equivalent to claim that $i$ is a multiple of $3$, $5$, or $7$, hence the number of such $i$ is $2 \\cdot (3 \\cdot 5 \\cdot 7 - 2 \\cdot 4 \\cdot 6) = 114$.\n* $4 \\mid \\gcd(2100, \\phi(g(i)))$ is equivalent to claim that $i$ is a multiple of either $21$ or $5$, hence the number of such $i$ is $2 \\cdot (21 \\cdot 5 - 20 \\cdot 4) = 50$.\n* $3 \\mid \\gcd(2100, \\phi(g(i)))$ is equivalent to claim that $7 \\mid i$, hence the number of such $i$ is $30$.\n\nThus, the answer is $\\frac{2100^M}{2^{114+50} \\cdot 3^{30}} = \\frac{2100^{210}}{2^{164} \\cdot 3^{30}}$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34836, "subject": "Mathematics (Multi-modal)", "question": "Positive integers such that all the digits are prime numbers are called excellent numbers. Determine all the three-digit positive integers $n$ such that $n + 2024$ and $n - 34$ are both excellent numbers. There exist exactly two such positive integers $n$.", "options": [], "answer": "309, 311", "solution": "$$\n\\boxed{309,\\ 311}\n$$\nLet $a$, $b$ and $c$ be each digit of $n$ in the hundreds, tens, and ones place respectively, then $n$ is described as $n = 100a + 10b + c$. Both $n + 2024$ and $n - 34$ have a prime number in the ones place, hence $c$ is $1$ or $9$.\n\nIn the case of $c = 1$, both integers\n$$\nn + 2024 = 100(a + 20) + 10(b + 2) + 5, \\quad n - 34 = 100a + 10(b - 4) + 7\n$$\nhave a prime number in tens place, hence $b = 1$. Similarly, both integers\n$$\nn + 2024 = 100(a + 20) + 35, \\quad n - 34 = 100(a - 1) + 77\n$$\nhave a prime number in the hundreds place, hence $a = 3$. Therefore, $n = 311$, and this $n$ satisfies the condition since $n + 2024 = 2335$ and $n - 34 = 277$.\n\nIn the case of $c = 9$, both integers\n$$\nn + 2024 = 100(a + 20) + 10(b + 3) + 3, \\quad n - 34 = 100a + 10(b - 3) + 5\n$$\nhave a prime number in the tens place, hence $b = 0$. Similarly, both integers\n$$\nn + 2024 = 100(a + 20) + 33, \\quad n - 34 = 100(a - 1) + 75\n$$\nhave a prime number in the hundreds place, hence $a = 3$. Therefore $n = 309$, and this $n$ satisfies the condition since $n + 2024 = 2333$ and $n - 34 = 275$.\n\nWe have proved that the two integers $n$ satisfying the condition are $309$, $311$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34837, "subject": "Mathematics (Multi-modal)", "question": "Let $N$ denote the set of positive integers. Find all functions $f : N \\to N$ such that the equation\n$$\n\\operatorname{lcm}(m, f(m + f(n))) = \\operatorname{lcm}(f(m), f(m) + n)\n$$\nholds for any positive integers $m$ and $n$. Here, for positive integers $x$ and $y$, $\\operatorname{lcm}(x, y)$ denotes their least common multiple.", "options": [], "answer": "f(n) = n for all positive integers n", "solution": "We prove that the function $f(n) = n$ is the unique function satisfying the condition in the problem. It is easy to see that this $f$ satisfies the condition in the problem.\n\nSuppose that $f$ is the function that satisfies the condition in the problem. First, for any positive integer $k$, we prove that $f(k)$ is a multiple of $k$. Let $r$ be the remainder when dividing $f(k)$ by $k$. Substituting $m = k$ and $n = k - r + 1$ into the equation in the problem, we obtain\n$$\n\\operatorname{lcm}(k, f(k + f(k - r + 1))) = \\operatorname{lcm}(f(k), f(k) + k - r + 1).\n$$\nTherefore, $\\operatorname{lcm}(f(k), f(k) + k - r + 1)$ is a multiple of $k$. Here, $f(k) + k - r + 1$ leaves a remainder of $1$ when divided by $k$, and hence, $f(k) + k - r + 1$ is coprime to $k$. Therefore, we conclude that $f(k)$ is a multiple of $k$.\n\nLet $m$ be a positive integer. We prove that $f(m) = m$. Substituting $n = f(m)$ into the equation in the problem, we get\n$$\n\\operatorname{lcm}(m, f(m + f(f(m)))) = \\operatorname{lcm}(f(m), 2f(m)) = 2f(m).\n$$\nTherefore, $2f(m)$ is a multiple of $f(m + f(f(m)))$. Since $f(m + f(f(m)))$ is a multiple of $m + f(f(m))$, $2f(m)$ is a multiple of $m + f(f(m))$. Note that we have\n$$\n2f(m) \\le 2f(f(m)) < 2(m + f(f(m))).\n$$\nHere, the first inequality follows from the fact that $f(f(m))$ is a multiple of $f(m)$. Therefore, we conclude that $2f(m) = m + f(f(m))$. Since\n$$\nf(f(m)) = 2f(m) - m < 2f(m)\n$$\nand $f(f(m))$ is a multiple of $f(m)$, we conclude that $f(f(m)) = f(m)$. Hence, we have $2f(m) = m + f(m)$, and hence $f(m) = m$. We complete the proof.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34838, "subject": "Mathematics (Multi-modal)", "question": "Let us call a point in the $xy$-plane a good point if each of its coordinates is an integer from $1$ to $2000$. Let us also call polyline $ABCD$ a Z-shaped polyline if four points $A(x_1, y_1)$, $B(x_2, y_2)$, $C(x_3, y_3)$, $D(x_4, y_4)$ satisfy all the following conditions:\n* $A$, $B$, $C$, $D$ are good points.\n* $x_1 < x_2$, $y_1 = y_2$.\n* $x_2 > x_3$, $y_2 - x_2 = y_3 - x_3$.\n* $x_3 < x_4$, $y_3 = y_4$.\nDetermine the smallest possible positive integer $n$ such that, there exist Z-shaped polylines $Z_1, Z_2, \\dots, Z_n$ which satisfy the following condition:\nAny good point $P$ lies on $Z_i$ for some $1 \\le i \\le n$.\nNote that polyline $ABCD$ is the union sets of line segments (including both endpoints) $AB$, $BC$ and $CD$.", "options": [], "answer": "1333", "solution": "Let us call a good point on $x = 1$ or $x = 2000$ excluding $(1, 1)$ a special point. Consider Z-shaped polyline $ABCD$ and let $A(x_1, y_1)$, $B(x_2, y_2)$, $C(x_3, y_3)$, $D(x_4, y_4)$. Since $1 \\le x_1 < x_2 \\le 2000$, $1 \\le x_3 < x_2 \\le 2000$ and $1 \\le x_3 < x_4 \\le 2000$, any special point on Z-shaped polyline $ABCD$ coincides with either $A$, $B$, $C$ or $D$. Assume that both $B$ and $C$ are special points. Then $x_2 = 2000$, $y_2 \\le 2000$, $x_3 = 1$ and $y_3 \\ge 2$ holds. Therefore we have $y_2 - x_2 \\le 2000 - 2000 < 2 - 1 \\le y_3 - x_3$, which contradicts the condition $y_2 - x_2 = y_3 - x_3$. Therefore at most three special points lie on a Z-shaped polylines, hence we must select at least $\\frac{3999}{3} = 1333$ Z-shaped polylines to meet the condition.\n\nDenote polyline $ABCD$ with $A(x_1, y_1)$, $B(x_2, y_2)$, $C(x_3, y_3)$, $D(x_4, y_4)$ by $(x_1, y_1) - (x_2, y_2) - (x_3, y_3) - (x_4, y_4)$. Define Z-shaped polylines $X_1, X_2, \\dots, X_{666}$, $Y_1, Y_2, \\dots, Y_{666}$, $Z$ as following:\n* For $k = 1, \\dots, 666$, let $X_k$ be $(1, 1334-k) - (1334-2k, 1334-k) - (1, 1+k) - (2000, 1+k)$.\n* For $k = 1, \\dots, 666$, let $Y_k$ be $(1, 2000-k) - (2000, 2000-k) - (667+2k, 667+k) - (2000, 667+k)$.\n* Let $Z$ be $(1, 2000) - (2000, 2000) - (1, 1) - (2000, 1)$.\n\nNote that any good point on $y = 1, 2000$ lies on $Z$. For $2 \\le k \\le 667$, any good point on $y = k$ lies on $X_{k-1}$. For $1334 \\le k \\le 1999$, any good point on $y = k$ lies on $Y_{2000-k}$. Let $668 \\le k \\le 1333$ and consider good points on $y = k$.\n* When $1 \\le x < 2k - 1333$, $(x, k)$ lies on $X_{1334-k}$.\n* When $2k - 1333 \\le x < k$, $(x, k)$ lies on $X_{k-x}$.\n\n* When $x = k$, $(x, k)$ lies on $Z$.\n* When $k < x \\le 2k - 668$, $(x, k)$ lies on $Y_{x-k}$.\n* When $2k - 668 < x \\le 2000$, $(x, k)$ lies on $Y_{k-667}$.\n\nWe have shown that any good point lies on any of $X_1, X_2, \\dots, X_{666}$, $Y_1, Y_2, \\dots, Y_{666}$ and $Z$.\nTherefore the smallest possible number of Z-shaped polylines is $1333$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34839, "subject": "Mathematics (Multi-modal)", "question": "Consider an equilateral triangle $ABC$ with each side measuring $10$. A circle passing through $A$ touches the side $BC$ (excluding the endpoints) at point $X$, and intersects sides $AB$ and $AC$ at points $D$ and $E$ respectively, both of which are different from point $A$. Given that $BX > CX$ and $AD + AE = 13$, find the length of segment $BX$.\n\n![](attached_image_1.png)", "options": [], "answer": "5 + sqrt(10)", "solution": "$5 + \\sqrt{10}$\n\nLet $x = BX$. Since $CX = 10 - x$ and $BX > CX$, we have $5 < x < 10$. By the power of a point theorem,\n$$\nx^2 + (10-x)^2 = BX^2 + CX^2 = BD \\cdot BA + CE \\cdot CA = 10(BD + CE)\n$$\nholds. Also, from the condition $AD + AE = 13$, we find\n$$\nBD + CE = (10 - AD) + (10 - AE) = 20 - (AD + AE) = 7\n$$\nand thus\n$$\nx^2 + (10 - x)^2 = 70\n$$\nSince $5 < x < 10$, this yields $x = 5 + \\sqrt{10}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34840, "subject": "Mathematics (Multi-modal)", "question": "Let $0 \\le n \\le 5^5$ be an integer. Arrange $n$ black stones and $5^5-n$ white stones in a row, and repeat the following operation 5 times:\nDivide the row of stones into groups of 5 stones from left to right. For each group, replace the 5 stones in the group with one stone of the color that appears more frequently among them.\nFind the smallest possible value of $n$ for which the single remaining stone at the end is always black regardless of the initial arrangement of stones.", "options": [], "answer": "2883", "solution": "2883\n\nLet $k$ be a positive integer. Consider arranging black and white stones in a single row, with a total of $5^k$ stones. Define a **bad arrangement** as one where, after $k$ repetitions of an operation, the last remaining stone is white.\n\nDefine $f(k)$ as the minimum non-negative integer $m$ such that a bad arrangement can be formed with $5^k - m$ black stones and $m$ white stones. Obviously, $f(1) = 3$. If $m \\ge f(k)$, then there exists a bad arrangement with $5^k - m$ black stones and $m$ white stones.\n\nNow, if $n \\ge 5^5 - f(5) + 1$, then there are at most $f(5) - 1$ white stones, and since no bad arrangement exists, the last remaining stone must be a black stone. Conversely, if $n \\le 5^5 - f(5)$, then there are $f(5)$ or more white stones, and there exists an arrangement where the last remaining stone is a white stone. Therefore, the desired value is $5^5 - f(5) + 1$. Thus, we will consider expressing $f(k+1)$ in terms of $f(k)$ for $k \\ge 1$.\n\nConsider a bad arrangement $W_k$ with $5^k - f(k)$ black stones and $f(k)$ white stones. Now, arrange $2 \\cdot 5^k$ black stones in the beginning, followed by three instances of $W_k$, forming a row of $5^{k+1}$ stones. The number of white stones in this row is $3f(k)$. After $k$ repetitions of the operation, the final arrangement consists of black, black, white, white, white stones, ensuring that the last remaining stone is white. Therefore, $f(k+1) \\le 3f(k)$.\n\nConversely, consider a row of $5^{k+1}$ stones where there are at most $3f(k) - 1$ white stones. Divide this row into sets of $5^k$ stones each. Since there are fewer than $3f(k)$ white stones, there can be at most 2 sets with $f(k)$ or more white stones. From the minimality of $f(k)$, after $k$ repetitions of the operation, there can be at most 2 white stones among the last 5 remaining stones. Thus, the last remaining stone is black, implying $f(k+1) > 3f(k) - 1$.\n\nHence, we have $f(k+1) = 3f(k)$. Since $f(5) = 3^4 \\cdot f(1) = 3^5$, the desired value is $5^5 - f(5) + 1 = 2883$.", "topic": "Algebra", "subtopic": "Abstract Algebra" }, { "id": 34841, "subject": "Mathematics (Multi-modal)", "question": "Let $ABC$ be an acute triangle with $AB < AC$, $O$ be its circumcenter, and $M$ be the midpoint of arc $BC$ of triangle $ABC$'s circumcircle which does not include $A$. There is a point $D$ on the extension of side $AB$ beyond $B$ satisfying $BD = BM$, and there is a point $E$ on side $AC$ (except for end points) satisfying $CE = CM$. If the circumcircles of triangle $ABE$ and $ACD$ intersect at the point $X$ other than $A$, prove that the perpendicular bisector of segment $DE$ is tangent to the circumcircle of triangle $AOX$.", "options": [], "answer": "Detailed solution", "solution": "For distinct three points $P$, $Q$, $R$, the description $\\angle QPR = \\theta$ means that line $PQ$ rotated around $P$ by angle $\\theta$ counterclockwise coincides with line $PR$. Here $180^\\circ$ difference is ignored.\nBy the inscribed angle theorem, we have $\\angle XBD = \\angle XEC$, $\\angle XDB = \\angle XCE$. We also have $BD = BM = CM = CE$ hence triangle $BDX$ and triangle $ECX$ are congruent, therefore $BX = EX$.\nLet $N$ be the midpoint of arc $BC$ of triangle $ABC$'s circumcircle which includes $A$. We have $\\angle BXE = \\angle BAE = \\angle BAC = \\angle BNC$, and triangle $BEX$ is an isosceles triangle with apex $X$, triangle $BCN$ is an isosceles triangle with apex $N$. Also both $\\angle BXE$ and $\\angle BAC$ are acute angles, hence those two triangles are similar including orientation. Therefore we obtain $BX : BE = BN : BC$ and $\\angle NBX = \\angle EBX + \\angle NBE = \\angle CBN + \\angle NBE = \\angle CBE$, which shows triangle $BNX$ and triangle $BCE$ are similar. Also we have\n$$\n\\angle XAB = \\angle XEB = \\angle NCB = \\angle NAB\n$$\nthus the points $A$, $N$, $X$ are collinear.\nFurthermore, $\\angle BNO = \\angle BNM = \\angle BCM$ holds and triangle $BNO$ is an isosceles triangle with apex $O$, triangle $BCM$ is an isosceles triangle with apex $M$ hence those two are similar. Therefore by $CE = CM = BM$ we obtain\n$$\nNX = CE \\cdot \\frac{BN}{BC} = CM \\cdot \\frac{BO}{BM} = NO.\n$$\nLet $T$ be the point symmetric to $N$ with respect to line $OX$, then above shows $TO = NO = NX = TX$ hence quadrilateral $NOTX$ is a rhombus. Therefore we have $\\angle OTX = \\angle XNO = \\angle OAX$, thus $T$ is on the circumcircle of triangle $AOX$. Also by $NO = OT$, $T$ is on the circumcircle of triangle $ABC$.\nSince we have $\\angle MBD = \\angle MCE$ and $BD = BM = CM = CE$, triangle $BDM$ and triangle $CEM$ are congruent, implying $DM = EM$. Also we have $\\angle ADM = \\angle CEM$ thus $E$ is on the circumcircle of triangle $ADM$. Furthermore, line $NX$ and line $OT$ are parallel and line $NX$ and line $AM$ are orthogonal, hence line $OT$ and line $AM$ are also orthogonal. Thus by $AO = MO$, we obtain $AT = MT$. Therefore, $A$ and $M$ are symmetric with respect to line $OT$, hence we have $\\angle OAT = \\angle TMO = \\angle OTM$ and thus line $MT$ is tangent to the circumcircle of triangle $AOT$.\nSince we have\n$$\n\\angle ATM = \\angle ABM = \\angle ADM + \\angle DMB = 2\\angle ADM\n$$\n\nand two points $D$ and $T$ are on the same side with respect to line $AM$, $T$ is the circumcenter of triangle $ADM$. Therefore, we have $DT = ET$, thus by $DM = EM$ we have proved line $MT$ is the perpendicular bisector of segment $DE$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34842, "subject": "Mathematics (Multi-modal)", "question": "Show that there are no positive integer solutions $(a, b, c, d, n)$ satisfying the equation $a^2 + b^2 + c^2 + d^2 - 4\\sqrt{abcd} = 7 \\cdot 2^{2n-1}$.", "options": [], "answer": "Detailed solution", "solution": "Assume the existence of a positive integer solution $(a, b, c, d, n)$ such that $a^2 + b^2 + c^2 + d^2 - 4\\sqrt{abcd} = 7 \\cdot 2^{2n-1}$, and take the one with the minimum value of $n$. Since $\\sqrt{abcd}$ is rational, $abcd$ must be a square number. First, we establish the following two lemmas. Note that $a^2 + b^2 + c^2 + d^2 - 4\\sqrt{abcd} = (a-b)^2 + (c-d)^2 + 2(\\sqrt{ab} - \\sqrt{cd})^2$.\n\n**Lemma 1.** $a, b, c, d$ are all distinct from each other.\n**Proof.** From the symmetry of $a, b, c, d$, it suffices to assume $a = b$ and derive a contradiction. Since $abcd = a^2cd$ is a square number, $cd$ must also be a square number. Therefore, both $M = c - d$ and $N = a - \\sqrt{cd}$ are integers, and we have $M^2 + 2N^2 = 7 \\cdot 2^{2n-1}$. Since the residues of square numbers divided by $7$ are $0, 1, 2,$ or $4$, the residues of $M^2$ and $2N^2$ when divided by $7$ must also be $0, 1, 2,$ or $4$. Since their sum is a multiple of $7$, both $M$ and $N$ must be multiples of $7$. Therefore, $M^2 + 2N^2$ is a multiple of $49$. However, $7 \\cdot 2^{2n-1}$ is not a multiple of $49$, which is a contradiction. ■\n\n**Lemma 2.** The product of any two numbers among $a, b, c, d$ is different from the product of the remaining two numbers.\n**Proof.** From the symmetry of $a, b, c, d$, we only need to derive a contradiction by assuming $ab = cd$. Let $M = a - b$ and $N = c - d$, then $M$ and $N$ are integers, and $M^2 + N^2 = 7 \\cdot 2^{2n-1}$ holds. Because the residues of square numbers divided by $7$ can only be $0, 1, 2,$ or $4$, as mentioned in Lemma 1, both $M$ and $N$ must be multiples of $7$. Therefore, $M^2 + N^2$ is a multiple of $49$, but $7 \\cdot 2^{2n-1}$ is not, leading to a contradiction. ■\n\nConsider cases based on the value of $n$.\n\n(1) $n = 1$\nBy the symmetry of $a, b, c, d$ and Lemma 1, we can assume that $a < b < c < d$. From $(d-a)^2 + (c-b)^2 + 2(\\sqrt{ad} - \\sqrt{bc})^2 = 14$, we have $d-a \\le \\sqrt{14} < 4$, implying $a = b-1 = c-2 = d-3$. We also get $bc = a^2 + 3a + 2 = ad + 2$ and consequently $\\sqrt{ad} + 2 - \\sqrt{ad} = \\sqrt{2}$, which leads to a contradiction since $a$ and $d$ are positive.\n\n(2) $n > 1$\nWhen $a, b, c, d$ are all even, $(\\frac{a}{2}, \\frac{b}{2}, \\frac{c}{2}, \\frac{d}{2}, n-1)$ satisfies the given equation, contradicting the minimality of $n$. Therefore, at least one of $a, b, c, d$ is odd. Since the residues of square numbers divided by $4$ are $0$ or $1$, and $a^2 + b^2 + c^2 + d^2 = 7 \\cdot 2^{2n-1} + 4\\sqrt{abcd}$ is divisible by $4$, all of $a, b, c, d$ are odd. Since $abcd$ is an odd square number, $abcd \\equiv 1 \\pmod{4}$, implying that there are an even number of elements among $a, b, c, d$ that leave a remainder of $3$ when divided by $4$. Thus, without loss of generality, we can assume $a \\equiv b \\pmod{4}$ and $c \\equiv d \\pmod{4}$. Let $g$ denote the greatest common divisor of $ab$ and $cd$. Then, $\\frac{ab}{g}$ and $\\frac{cd}{g}$ are coprime, and $\\frac{ab}{g} \\cdot \\frac{cd}{g} = \\frac{abcd}{g^2}$ is a square number. Hence, there exist positive integers $x$ and $y$ such that $ab = gx^2$ and $cd = gy^2$, and $(\\sqrt{ab} - \\sqrt{cd})^2 = g(x - y)^2$ holds. Since $a \\equiv b \\pmod{4}$, we have $ab \\equiv 1 \\pmod{4}$, and combined with $x^2 \\equiv 1 \\pmod{4}$, this yields $g \\equiv 1 \\pmod{4}$. By Lemma 1 and Lemma 2, we can find positive odd integers $p, q, r$ and non-negative integers $\\alpha, \\beta, \\gamma$ satisfying $|a-b| = p \\cdot 2^\\alpha, |c-d| = q \\cdot 2^\\beta$, and $|x-y| = r \\cdot 2^\\gamma$. Remark that\n$$\n\\begin{aligned}\n7 \\cdot 2^{2n-1} &= a^2 + b^2 + c^2 + d^2 - 4\\sqrt{abcd} \\\\\n&= (a-b)^2 + (c-d)^2 + 2(\\sqrt{ab} - \\sqrt{cd})^2 \\\\\n&= p^2 \\cdot 2^{2\\alpha} + q^2 \\cdot 2^{2\\beta} + gr^2 \\cdot 2^{2\\gamma+1}\n\\end{aligned}\n$$\nholds. $p^2 \\equiv q^2 \\equiv 1 \\pmod{8}$, $gr^2 \\equiv 1 \\pmod{4}$ imply a contradiction by the following lemma.\n\n**Lemma 3.** There exist no non-negative integers $\\alpha, \\beta, \\gamma$, positive integers $n, s, t, u$ such that $s \\equiv t \\equiv 1 \\pmod{8}$, $u \\equiv 1 \\pmod{4}$, and\n$$\ns \\cdot 2^{2\\alpha} + t \\cdot 2^{2\\beta} + u \\cdot 2^{2\\gamma+1} = 7 \\cdot 2^{2n-1}.\n$$\n**Proof.** By the symmetry of $(\\alpha, s)$ and $(\\beta, t)$, we can assume $\\alpha \\le \\beta$.\n\n* case when $\\alpha \\le \\gamma$\nSince $s+t \\cdot 2^{2(\\beta-\\alpha)} + u \\cdot 2^{2(\\gamma-\\alpha)+1} = 7 \\cdot 2^{2(n-\\alpha)-1}$ is a positive integer, we must have $n-\\alpha \\ge 1$. Therefore, both $u \\cdot 2^{2(\\gamma-\\alpha)+1}$ and $7 \\cdot 2^{2(n-\\alpha)-1}$ are even, implying that $s+t \\cdot 2^{2(\\beta-\\alpha)}$ is even as well, and consequently, $\\alpha = \\beta$. Since $s+t \\cdot 2^0$ cannot be divisible by $4$, we obtain either $\\gamma-\\alpha = 0$ or $n-\\alpha = 1$. In the former case, $7 \\cdot 2^{2(n-\\alpha)-1} = s+t+2u \\equiv 4 \\pmod{8}$, leading to a contradiction. In the latter case, $u \\cdot 2^{2(\\gamma-\\alpha)+1} = 14-s-t \\equiv 4 \\pmod{8}$, which also contradicts the conditions.\n\n* case when $\\gamma < \\alpha$\nSince $s \\cdot 2^{2(\\alpha-\\gamma)} + t \\cdot 2^{2(\\beta-\\gamma)} + 2u = 7 \\cdot 2^{2(n-\\gamma)-1}$ has a remainder of $2$ when divided by $4$, we must have $n-\\gamma = 1$. In this case, $2^{2(\\beta-\\gamma)} < 14$, implying $\\alpha-\\gamma \\le \\beta-\\gamma \\le 1$, which leads to $\\alpha-\\gamma = \\beta-\\gamma = 1$. Therefore, we have $2s+2t+u = 7$, but $2s+2t+u \\equiv 1 \\pmod{4}$, which is a contradiction.\n\nTherefore we have proved the lemma.\n\nTherefore, there are no solutions $(a, b, c, d, n)$.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34843, "subject": "Mathematics (Multi-modal)", "question": "Find the smallest integer $n \\ge 10$ such that\n$$\n\\left[ \\frac{n}{1} \\right] \\left[ \\frac{n}{2} \\right] \\cdots \\left[ \\frac{n}{10} \\right] = \\binom{n}{10}\n$$\nHere denote by $[r]$ the largest integer less than or equal to $r$ for a real number $r$. For example, $[3.14] = 3$ and $[5] = 5$.", "options": [], "answer": "2519", "solution": "2519\nNote that $[x] > x - 1$ for any real number $x$. In particular, for an integer $1 \\le k \\le 10$ we have $\\lfloor \\frac{n}{k} \\rfloor > \\frac{n}{k} - 1$, thus $k \\lfloor \\frac{n}{k} \\rfloor > n - k$. Since both sides are integers, we have $k \\lfloor \\frac{n}{k} \\rfloor \\ge n - k + 1$, thus $\\lfloor \\frac{n}{k} \\rfloor \\ge \\frac{n-k+1}{k}$. Since $0 < k \\le n$ implies $\\frac{n-k+1}{k} > 0$, multiplying both sides of $\\lfloor \\frac{n}{k} \\rfloor \\ge \\frac{n-k+1}{k}$ for $k = 1, 2, \\dots, 10$ yields\n$$\n\\lfloor \\frac{n}{1} \\rfloor \\lfloor \\frac{n}{2} \\rfloor \\dots \\lfloor \\frac{n}{10} \\rfloor \\ge \\frac{n}{1} \\cdot \\frac{n-1}{2} \\dots \\frac{n-9}{10} = \\binom{n}{10}.\n$$\nTherefore the equation in the problem holds if and only if $\\lfloor \\frac{n}{k} \\rfloor = \\frac{n-k+1}{k}$ for all integers $1 \\le k \\le 10$.\nIf $\\lfloor \\frac{n}{k} \\rfloor = \\frac{n-k+1}{k}$ holds, $k$ divides $n-k+1$ because the right side is an integer. Conversely, if $k$ divides $n-k+1$ then $\\lfloor \\frac{n}{k} \\rfloor = \\lfloor \\frac{n-k+1}{k} \\rfloor + \\frac{k-1}{k} = \\frac{n-k+1}{k}$ holds. Therefore the equation $\\lfloor \\frac{n}{k} \\rfloor = \\frac{n-k+1}{k}$ holds if and only if $k$ divides $n-k+1$, that is, $n+1$ is a multiple of $k$.\nTherefore, for an integer $n \\ge 10$, the equation in the problem holds if and only if $n+1$ is a multiple of $k$ for any integer $1 \\le k \\le 10$, that is, $n+1$ is a common multiple of $1, 2, \\dots, 10$. Since the least common multiple of $1, 2, \\dots, 10$ is 2520, the smallest possible $n$ is $2520 - 1 = 2519$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34844, "subject": "Mathematics (Multi-modal)", "question": "Let $ABC$ be an isosceles triangle with $AB = AC = 5$. Let $D$ be a point on side $AB$ satisfying $AD = 3$, and let $E$ be a point on side $BC$ (excluding the endpoints $B$ and $C$). Let $\\omega$ be the circle passing through $E$ and tangent to line $AB$ at $B$. Suppose that $\\omega$ is tangent to the circumcircle of triangle $ADE$. Let $F$ be the intersection point of $\\omega$ and line $AE$, other than $E$. When $CF = 10$, find the length of side $BC$.", "options": [], "answer": "14√65/13", "solution": "$\\frac{14\\sqrt{65}}{13}$\n\nBy the alternate segment theorem and the assumption $AB = AC$, we have $\\angle EFB = \\angle EBA = \\angle ACB$. Therefore, the four points $A$, $B$, $F$, $C$ are concyclic.\n\nLet $X$ be any point on the tangent to $\\omega$ at $E$, lying on the same side of line $AF$ as $B$. Then, by the alternate segment theorem, we have\n$$\n\\angle DEB = \\angle DEX + \\angle XEB = \\angle DAE + \\angle EFB = \\angle DAE + \\angle EBA = \\angle CEA.\n$$\nSince $\\angle DBE = \\angle ACE$, we conclude that triangles $DEB$ and $AEC$ are similar. Therefore, we have $EB : EC = DB : AC = 2 : 5$. Hence, we may write $EB = 2x$ and $EC = 5x$ with some $x > 0$.\n\nSince $A$, $B$, $F$, $C$ are concyclic, triangles $EBA$ and $EFC$ are similar. Therefore, we have\n$$\nEB : EF = EA : EC = AB : CF = 5 : 10 = 1 : 2,\n$$\nand hence, we have $EF = 4x$ and $EA = \\frac{5}{2}x$. By the power of a point theorem, we have\n$$\n25 = AB^2 = AE \\cdot AF = \\frac{5}{2} \\cdot \\frac{13}{2}x.\n$$\n\nSolving this equation with the condition $x > 0$, we get $x = \\frac{2\\sqrt{65}}{13}$. Thus, we conclude that\n$$\nBC = BE + EC = 7x = \\frac{14\\sqrt{65}}{13}.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34845, "subject": "Mathematics (Multi-modal)", "question": "Determine the number of pairs $(p, a)$ of a prime number $p$ and an integer $a$ such that $p \\ge 3$, $1 \\le a \\le 2024$, and the following condition is satisfied:\n$a < p^4$ holds and $ap^4 + 2p^3 + 2p^2 + 1$ is a square number.", "options": [], "answer": "16", "solution": "When the condition is satisfied, there exists a non-negative integer $n$ such that $ap^4 + 2p^3 + 2p^2 + 1 = n^2$ and then\n$$\n(a - p^2 - 2p - 1)p^4 = n^2 - (p^3 + p^2 + 1)^2 = (n + p^3 + p^2 + 1)(n - p^3 - p^2 - 1) \\quad (*)\n$$\nholds. If we assume that both $n + p^3 + p^2 + 1$ and $n - p^3 - p^2 - 1$ are divisible by $p$, then $n + 1 \\equiv 0 \\equiv n - 1 \\pmod p$, leading to $2 \\equiv 0 \\pmod p$, which contradicts the assumption that $p$ is an odd prime. Therefore, at least one of $n + p^3 + p^2 + 1, n - p^3 - p^2 - 1$ is not divisible by $p$. Since the left hand side of (*) is divisible by $p^4$, one of $n + p^3 + p^2 + 1, n - p^3 - p^2 - 1$ is divisible by $p^4$.\nIn the case $n + p^3 + p^2 + 1$ is divisible by $p^4$, there exists a positive integer $k$ such that $n = kp^4 - p^3 - p^2 - 1$. By substituting this into (*), we obtain $(a - p^2 - 2p - 1)p^4 = kp^4(kp^4 - 2p^3 - 2p^2 - 2)$, hence $a = p^2 + 2p + 1 + k(kp^4 - 2p^3 - 2p^2 - 2)$. If $k \\ge 2$, we have\n$$\na > 4(p^4 - p^3 - p^2 - 1) = 4p^4 \\left(1 - \\frac{1}{p} - \\frac{1}{p^2} - \\frac{1}{p^4}\\right) \\ge 4p^4 \\left(1 - \\frac{1}{3} - \\frac{1}{9} - \\frac{1}{81}\\right) > p^4\n$$\nwhich contradicts $a < p^4$. If $k = 1$, then $a = p^4 - 2p^3 - p^2 + 2p - 1 = (p^2 - p - 1)^2 - 2$. In this case, by $p \\ge 3$ we get $2 \\le p^2 - p - 1 < p^2$ and then $1 \\le a < p^4$. Therefore, the number of pairs $(p, a)$ satisfying the condition is equal to the number of odd prime $p$ such that $(p^2 - p - 1)^2 - 2 \\le 2024$, and there exist three such primes $p = 3, 5, 7$.\nIn the case $n - p^3 - p^2 - 1$ is divisible by $p^4$, there exists a non-negative integer $k$ such that $n = kp^4 + p^3 + p^2 + 1$. By substituting this to (*), we obtain $(a - p^2 - 2p - 1)p^4 = kp^4(kp^4 + 2p^3 + 2p^2 + 2)$, hence $a = p^2 + 2p + 1 + k(kp^4 + 2p^3 + 2p^2 + 2)$. If $k \\ge 1$, then we have $a > p^4$ which contradicts $a < p^4$. If $k = 0$, then we have $a = p^2 + 2p + 1 = (p+1)^2$. In this case, by $p \\ge 3$ we get $1 < (p+1)^2 < (p^2)^2 = p^4$ and then $1 \\le a < p^4$. Therefore, the number of pairs $(p, a)$ satisfying the condition is equal to the number of odd prime $p$ such that $(p+1)^2 \\le 2024$, and there exist 13 such primes $p = 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43$.\nWe have proved that the total number of pairs $(p, a)$ satisfying the condition is $3 + 13 = 16$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34846, "subject": "Mathematics (Multi-modal)", "question": "Let $N_0$ be the set of nonnegative integers and $\\mathbb{Z}$ be the set of integers. Find the number of possible tuples $(f(0), f(1), \\dots, f(2024))$ for $f: N_0 \\to \\mathbb{Z}$ satisfying\n$$\nf(m+n)^2 = f(m|f(n)|) + f(n^2)\n$$\nfor any $m, n \\in N_0$.", "options": [], "answer": "2^990 + 1", "solution": "Denote the equation $f(m + n)^2 = f(m|f(n)|) + f(n^2)$ by $P(m, n)$. $P(0, 0)$ implies $f(0)^2 = 2f(0)$, thus $f(0) \\in \\{0, 2\\}$.\n\nWhen $f(0) = 0$, $P(m, 0)$ implies $f(m) = 0$ for any $m \\in \\mathbb{N}_0$. Since this $f$ satisfies the condition, there is just one possible tuple $(f(0), f(1), \\dots, f(2024))$ in this case.\n\nWe consider the case $f(0) = 2$. $P(0, 1)$ implies $f(1)^2 = f(1)+2$, thus we have $f(1) \\in \\{-1, 2\\}$. If $f(1) = -1$, $P(1, 1)$ implies $f(2)^2 = -2$ which contradicts $f(2) \\in \\mathbb{Z}$. Therefore we have $f(1) = 2$. Then $P(m, 1)$ and $P(m, 0)$ imply that $f(m+1)^2 = f(2m)+2 = f(m)^2$. By induction we have $|f(m)| = 2$ for any $m \\in \\mathbb{N}_0$. Moreover, $f(2m) = f(m)^2 - 2 = 2$ holds. On the other hand, $P(0, n)$ implies $f(n^2) = f(n)^2 - f(0) = 2$ for any $n \\in \\mathbb{N}_0$.\n\nConversely, if we choose $f: \\mathbb{N}_0 \\to \\{-2, 2\\}$ so that $f(n) = 2$ whenever $n$ is even or square, $f$ satisfies the condition because $f(m+n)^2 = 4$, $f(m|f(n)|) = f(2m) = 2$ and $f(n^2) = 2$ for any $m, n \\in \\mathbb{N}_0$. Since there exist 990 integers between 0 to 2024 which are neither even nor square, the number of possible tuples $(f(0), f(1), \\dots, f(2024))$ in this case is $2^{990}$.\n\nTherefore the answer is $2^{990} + 1$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34847, "subject": "Mathematics (Multi-modal)", "question": "A quadrilateral $ABCD$ is inscribed in a circle, with $AB = 7$ and $BC = 18$. The bisector of $\\angle CDA$ intersects side $BC$ at point $E$, and a point $F$ on segment $DE$ satisfies $\\angle AED = \\angle FCD$. When $BE = 5$ and $EF = 3$, find the length of segment $DF$.", "options": [], "answer": "17/3", "solution": "
17
3
\nSince $\\angle ADE = \\angle FDC$ and $\\angle DEA = \\angle DCF$, triangles $DAE$ and $DFC$ are similar, hence $DA : DE = DF : DC$. Additionally we have $\\angle ADF = \\angle EDC$ and thus triangles $DAF$ and $DEC$ are similar in the same orientation. This means that the angle formed by lines $AF$ and $EC$ is equal to the angle formed by lines $AD$ and $ED$. Therefore, let $G$ denote the intersection point of lines $AF$ and $BC$, and $\\angle AGE = \\angle ADE$ holds. Consequently, $\\angle BAG = 180^\\circ - \\angle ABC - \\angle AGB = \\angle ADC - \\angle AGB = \\angle AGB$, which implies $BA = BG$; hence we obtain $EG = BG - BE = 2$. Furthermore, since $\\angle FGE = \\angle FDC$, quadrilateral $DFGC$ is cyclic, and by the power of a point theorem, $EF \\cdot ED = EG \\cdot EC$ holds. Therefore, with $ED = \\frac{26}{3}$, we find $FD = ED - EF = \\frac{17}{3}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34848, "subject": "Mathematics (Multi-modal)", "question": "Let $n \\ge 2$ be an integer. Suppose that real numbers $a_1, a_2, \\dots, a_{2n}$ satisfy $|a_k - a_{n+k}| \\ge 1$ for every integer $k$ such that $1 \\le k \\le n$. Find the minimum possible value of\n$$\n(a_1 - a_2)^2 + (a_2 - a_3)^2 + \\dots + (a_{2n-1} - a_{2n})^2 + (a_{2n} - a_1)^2.\n$$", "options": [], "answer": "2", "solution": "Set $a_{2n+1} = a_1$. Since $a_{n+1} - a_{2n+1} = -(a_1 - a_{n+1})$, the values\n$$\na_1 - a_{n+1}, \\ a_2 - a_{n+2}, \\ \\dots, \\ a_n - a_{2n}, \\ a_{n+1} - a_{2n+1}\n$$\nare all nonzero, and $a_1 - a_{n+1}$ and $a_{n+1} - a_{2n+1}$ have opposite signs. Therefore, there exists an integer $m$ with $1 \\le m \\le n$ such that $a_m - a_{n+m}$ and $a_{m+1} - a_{n+m+1}$ have opposite signs. In this case, since both $|a_m - a_{n+m}|$ and $|a_{m+1} - a_{n+m+1}|$ are at least 1, we have\n$$\n|(a_m - a_{m+1}) - (a_{n+m} - a_{n+m+1})| = |(a_m - a_{n+m}) - (a_{m+1} - a_{n+m+1})| \\ge 2.\n$$\nIn general, for real numbers $x$ and $y$, we have\n$$\nx^2 + y^2 - \\frac{(x - y)^2}{2} = \\frac{(x + y)^2}{2} \\geq 0,\n$$\nso it follows that\n$$\n(a_m - a_{m+1})^2 + (a_{n+m} - a_{n+m+1})^2 \\ge \\frac{((a_m - a_{m+1}) - (a_{n+m} - a_{n+m+1}))^2}{2} \\\\ \\ge 2.\n$$\nTherefore, we obtain\n$$\n(a_1 - a_2)^2 + (a_2 - a_3)^2 + \\dots + (a_{2n-1} - a_{2n})^2 + (a_{2n} - a_1)^2 \\ge 2.\n$$\nOn the other hand, the values $a_1 = a_2 = \\dots = a_n = 1$ and $a_{n+1} = a_{n+2} = \\dots = a_{2n} = 0$ satisfy the given condition, and the value of the given function is 2 in this case. Hence, the minimum possible value is 2.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34849, "subject": "Mathematics (Multi-modal)", "question": "As shown in the figure, seven regular hexagonal cells form a hexagonal pattern. We write one integer from $1$ to $7$ in each cell without repetition. For any two cells that share an edge, the sum of the integers written in those cells must be at most $10$. How many ways are there to write the integers under these conditions?\n\nNote that two labelings that coincide by rotation or reflection are counted as distinct ways.\n\n![](attached_image_1.png)", "options": [], "answer": "72", "solution": "$72$\n\nSince the sum of the integers in any two adjacent cells must be at most $10$, the only possible integers that can appear in the neighbors of the cell containing $7$ are $1$, $2$, or $3$. Therefore, the cell labeled $7$ cannot be the central cell, and there are exactly $6$ possible cells in which to place the $7$.\n\nBy symmetry, the total number of labelings is $6$ times the number of labelings in which the leftmost cell contains $7$. Suppose the leftmost cell contains $7$, and denote this cell by $A$. We classify the other six cells into three groups, $B$, $C$, and $D$, as shown in the left diagram below.\n\n![](attached_image_2.png)\n![](attached_image_3.png)\n\nThe three cells in group $B$ are all adjacent to $A$, so they must be labeled with $1$, $2$, or $3$ in some order. The remaining three cells in groups $C$ and $D$ must be labeled with $4$, $5$, and $6$. Since the two cells labeled $5$ and $6$ are not adjacent to each other, both of them must lie in group $C$ (which consists of two cells), and the cell in group $D$ must be labeled $4$.\n\nConversely, any labeling satisfying these assignments clearly meets the condition that each pair of adjacent cells sums to at most $10$. There are $3!$ ways to assign $\\{1, 2, 3\\}$ to the three cells in $B$, and $2!$ ways to assign $\\{5, 6\\}$ to the two cells in $C$. Hence the total number of labelings is $6 \\cdot (3! \\cdot 2!) = 72$.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 34850, "subject": "Mathematics (Multi-modal)", "question": "Let $S = \\{0, 1, 2, \\dots, 8\\}$. How many functions $f : S \\to S$ satisfy the following condition: For any elements $x, y, z \\in S$, if $x+y-z$ is divisible by $9$, then $f(x)f(y) - f(f(z))$ is also divisible by $9$?", "options": [], "answer": "858", "solution": "$858$\n\nIn this solution, $x \\equiv y$ always means that $x-y$ is divisible by $9$. Furthermore, for any integer $x$, we denote by $[x]$ the unique element $x' \\in S$ satisfying $x \\equiv x'$. Note that for any integers $s$ and $t$, we have $[[s-t]+t] = [s]$ and $[s[t]] = [st]$.\n\nUnder this notation, the condition in the problem can be rewritten as\n$$\nf(x)f(y) \\equiv f(f([x+y]))\n$$\nfor any elements $x, y \\in S$. We denote this equation by $P(x, y)$.\n\nDefine $T = \\{f(x) \\mid x \\in S\\}$. For any elements $s = f(x)$ and $t = f(y)$ in $T$, note that\n$$\n[st] = [f(x)f(y)] = f(f([x+y])) \\in T.\n$$\n\nFirst, consider the case where $T$ contains a multiple of $3$. Let $a$ be such an element. Then, since $0 = [a^2] \\in T$, there exists some $b \\in S$ such that $f(b) = 0$. Therefore, we have $f(f(x)) = 0$ for any $x \\in S$ since $P([x-b], b)$ gives\n$$\nf(f(x)) \\equiv f([x-b])f(b) = 0.\n$$\nFurthermore, $f(x)$ is a multiple of $3$ since $P(x, x)$ gives\n$$\nf(x)^2 \\equiv f(f([2x])) = 0.\n$$\nConversely, suppose that for every $x \\in S$, we have $f(f(x)) = 0$ and $f(x)$ is a multiple of $3$. Then such $f$ satisfies the condition because for any $x, y \\in S$, both sides of $P(x, y)$ are divisible by $9$.\n\nSince $T$ contains $0$, the condition that $f(x)$ is a multiple of $3$ for all $x \\in S$ is equivalent to $T$ being one of $\\{0\\}$, $\\{0, 3\\}$, $\\{0, 6\\}$, or $\\{0, 3, 6\\}$. Furthermore, the condition that $f(f(x)) = 0$ for all $x \\in S$ is equivalent to saying that $f(x) = 0$ for all $x \\in T$. In the following, we consider each of the four possible cases for $T$ and count the number of possible functions $f$ in each case.\n\n* When $T = \\{0\\}$, there is only one function $f$, namely $f(x) = 0$ for all $x$.\n* When $T = \\{0, 3\\}$, the number of such functions $f$ is the number of ways to assign $f(x) = 0$ or $3$ for each $x \\in S \\setminus T = \\{1, 2, 4, 5, 6, 7, 8\\}$, such that there is at least one $x$ with $f(x) = 3$. There is exactly one way to assign all values to $0$, so the number of valid functions $f$ is $2^7 - 1 = 127$.\n* When $T = \\{0, 6\\}$, by the same reason, the number of such functions $f$ is also $127$.\n* When $T = \\{0, 3, 6\\}$, the number of such functions $f$ is the number of ways to assign $f(x) = 0, 3$, or $6$ for each $x \\in S \\setminus T = \\{1, 2, 4, 5, 7, 8\\}$ such that there is at least one $x$ with $f(x) = 3$ and at least one $y$ with $f(y) = 6$. There are $2^6$ ways where $f(x) \\neq 3$ for all $x \\in S \\setminus T$, and $2^6$ ways where $f(y) \\neq 6$ for all $y \\in S \\setminus T$, and one way where $f(x) \\neq 3, 6$ for all $x \\in S \\setminus T$. So the number of valid functions $f$ in this case is $3^6 - 2^6 - 2^6 + 1 = 602$.\n\n$$\n1 + 127 + 127 + 602 = 857.\n$$\n\nNext, we consider the case where $T$ does not contain any multiples of $3$. Since $T$ is nonempty, we can take an element $a$ of $T$. Because $a$ is not divisible by $3$, Euler's theorem gives $a^6 \\equiv 1$, so we have $1 = [a^6] \\in T$. Thus, there exists some $b \\in S$ such that $f(b) = 1$. Therefore, we have $f(0) = f(1)$ since $P(b, 0)$ gives\n$$\nf(0) = f(b)f(0) \\equiv f(f(b)) = f(1).\n$$\nFurthermore, for any $x \\in S$, from $P(x, [-x])$ and $P([x+1], [-x])$, we obtain\n$$\nf(x)f([-x]) \\equiv f(f(0)) = f(f(1)) \\equiv f([x+1])f([-x]).\n$$\nThus, we have\n$$\nf([-x]) (f([x+1]) - f(x)) \\equiv 0.\n$$\nSince $f([-x])$ is not divisible by $3$, we conclude that\n$$\nf([x+1]) = f(x)\n$$\nholds for every $x \\in S$. Therefore, the set $T$ has exactly one element. Since $1 \\in T$, we must have $T = \\{1\\}$, which does not contain a multiple of $3$. The constant function $f(x) = 1$ is the only function with this property. Conversely, this function satisfies the condition because both sides of $P(x, y)$ equal $1$ for any $x, y \\in S$.\n\nHence, the total number of possible functions $f$ is $857 + 1 = 858$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34851, "subject": "Mathematics (Multi-modal)", "question": "The JMO Cluster initially consists of five stars $O$, $A$, $B$, $C$, and $D$. Each star is assigned a value called its **importance**. The importance of $O$ is $0$, and the importance of each of $A$, $B$, $C$, and $D$ is $1$. Moreover, there are one-way direct flights from $O$ to $A$ and $C$; from $A$ to $B$ and $D$; from $B$ to $O$; from $C$ to $B$ and $D$; and from $D$ to $O$, and no other direct flights exist.\nTo prevent the stars from aging, the JMO Cluster periodically performs an operation consisting of the following sequence of actions:\n(1) Abolish all existing direct flights and destroy all the stars.\n(2) For each direct flight $f$ abolished in step (1), construct a new star $S_f$. Then assign to $S_f$ an importance equal to the sum of the importances of the departure and arrival stars of $f$.\n(3) For every ordered pair $(f, f')$ of two abolished direct flights such that the arrival star of $f$ coincides with the departure star of $f'$, open a one-way direct flight from $S_f$ to $S_{f'}$.\nFind the sum of the importances of the stars constructed in the 100th operation.\n![](attached_image_1.png)", "options": [], "answer": "2^68 * (2^102 - 1) / 3", "solution": "Let the initial configuration be called state $0$, and for each integer $n \\ge 1$, let state $n$ denote the configuration after the $n$-th operation.\n\n**Lemma 1.** There exists an assignment of every star into exactly one of groups $0$, $1$, or $2$ such that:\n(1) Star $O$ is assigned to group $0$.\n(2) For every flight $f$, the star $S_f$ belongs to the same group as the arrival star of $f$.\n(3) For every flight $f$, if the departure star of $f$ lies in group $i$, then its arrival star lies in group $i + 1$ (where group $3$ is identified with group $0$).\n\n**Proof of Lemma 1.** In state $0$, assign the five stars $O$, $A$, $B$, $C$, $D$ to groups $0$, $1$, $2$, $1$, $2$, respectively. Now assume inductively that every star in states $0$, $1$, ..., $n$ has already been assigned to a group satisfying conditions (1)-(3). To extend the assignment to state $n + 1$, proceed as follows:\n* For each flight $f$ in state $n$, assign the new star $S_f$ to the same group as the arrival star of $f$. This guarantees condition (2) in the new state.\n* To check condition (3), consider any flight $S_f \\to S_{f'}$ that appears in state $n+1$. By construction this means the arrival star of $f$ coincides with the departure star of $f'$. If $S_f$ lies in group $i$, then its arrival star is in group $i$, so by the induction hypothesis the arrival star of $f'$ (hence $S_{f'}$) must lie in group $i+1$.\nThis completes the inductive step, and hence the proof. ■\n\nUsing Lemma 1, partition all stars into the three groups. For any star $S$, we define $g(S) \\in \\{0, 1, 2\\}$ such that $S$ belongs to group $g(S)$. Moreover, we set $d_0 = 2$, $d_1 = 2$, $d_2 = 1$. For any integer $k$, define $d_k = d_r$, where $r$ is the remainder when $k$ is divided by $3$.\n\n**Lemma 2.** For any star $S$, the number of outgoing flights from $S$ is $d_{g(S)}$.\n\n**Proof of Lemma 2.** We argue by induction on $n$, where $S$ is a star in state $n$. The base $n=0$ holds by inspection. Assume the claim for state $k$, and let $f$ be any flight in state $k$, arriving at some star $T$. Then the number of flights departing from $S_f$ in state $k+1$ equals $d_{g(T)}$, which is the number of flights departing from $T$ in state $k$. Since $g(S_f) = g(T)$, this completes the induction. ■\n\n**Lemma 3.** For each nonnegative integer $n$ and each integer $i$, all stars in state $n$ that lie in group $i$ have the same importance, say $v_{n,i}$.\n\n**Proof of Lemma 3.** We proceed by induction on $n$. The claim is clear for $n=0$. Suppose it holds for $n=k$. Let $f$ be any flight in state $k$, departing from a star $T_1$ and arriving at a star $T_2$. Then we have\n$$\n\\text{importance}(S_f) = v_{k,g(T_1)} + v_{k,g(T_2)} = v_{k,g(S_f)-1} + v_{k,g(S_f)}.\n$$\n\nFrom Lemma 3 we have the recurrence $v_{n+1,i} = v_{n,i-1} + v_{n,i}$. Let $V_n = \\sum_{j=0}^{2} v_{n,j}$. Then, we have $V_{n+1} = 2V_n$ with $V_0 = 2$, so $V_n = 2^{n+1}$. Moreover, it follows that\n$$\nv_{n+1,i} = 2^{n+1} - v_{n,i+1},\n$$\nand therefore\n$$\nv_{n+3,i} = 2^{n+3} - 2^{n+2} + 2^{n+1} - v_{n,i+3} = 3 \\cdot 2^{n+1} - v_{n,i}.\n$$\nThus, we have\n$$\n\\begin{aligned}\nv_{100,2} &= (v_{100,2} + v_{97,2}) - (v_{97,2} + v_{94,2}) + (v_{94,2} + v_{91,2}) - \\cdots + (v_{4,2} + v_{1,2}) - v_{1,2} \\\\\n&= 3 \\cdot 2^{98} - 3 \\cdot 2^{95} + 3 \\cdot 2^{92} - \\cdots + 3 \\cdot 2^2 - (v_{0,1} + v_{0,2}) \\\\\n&= 3 \\cdot \\frac{2^{101} + 4}{9} - 2 \\\\\n&= \\frac{2^{101} - 2}{3}.\n\\end{aligned}\n$$\n\nNext, let $s_{n,i}$ be the number of stars in state $n$ lying in group $i$. Since each new star in state $n+1$ corresponds to a flight departing from a star in group $i-1$, Lemma 2 yields\n$$\ns_{n+1,i} = d_{i-1} s_{n,i-1}.\n$$\nIn particular one finds\n$$\ns_{n+3,i} = d_{i-1} d_{i-2} d_{i-3} s_{n,i} = 4 s_{n,i}.\n$$\nWith $s_{0,0} = 1$, $s_{0,1} = s_{0,2} = 2$, this gives\n$$\ns_{100,0} = s_{100,1} = 2^{67}, \\quad s_{100,2} = 2^{68}.\n$$\nFinally, the total importance in state $100$ is\n$$\n\\begin{aligned}\ns_{100,0} \\cdot v_{100,0} + s_{100,1} \\cdot v_{100,1} + s_{100,2} \\cdot v_{100,2} &= 2^{67}(v_{100,0} + v_{100,1} + 2v_{100,2}) \\\\\n&= 2^{67}(V_{100} + v_{100,2}) \\\\\n&= 2^{67} \\left( 2^{101} + \\frac{2^{101} - 2}{3} \\right) \\\\\n&= \\frac{2^{68}(2^{102} - 1)}{3}.\n\\end{aligned}\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34852, "subject": "Mathematics (Multi-modal)", "question": "A pentagon **ABCDE** is inscribed in a circle $\\Omega$, and it satisfies $AC = AD$ and $BC \\parallel DE$. Take a point $P$ on the arc $CD$ of $\\Omega$ which does not contain $A$. Let $P_1, P_2, P_3, P_4$, and $P_5$ be the points symmetric to $P$ with respect to the lines $AB, BC, CD, DE$, and $EA$, respectively. When $PC : PD = P_1P_2 : P_4P_5 = 2 : 3$ and $CD : P_2P_4 = 4\\sqrt{2} : 11$, determine the value of $\\frac{P_1P_3}{P_1P_5}$.", "options": [], "answer": "sqrt(37)/10", "solution": "$\\boxed{\\frac{\\sqrt{37}}{10}}$\n\nSince $C$ is the circumcenter of the triangle $PP_2P_3$, we have $P_2P_3 = 2PC \\sin \\angle P_2PP_3$ by the law of sines. Similarly, since $D$ is the circumcenter of the triangle $PP_4P_3$, we have\n\n$P_4P_3 = 2PD \\sin \\angle P_4PP_3$. Since the lines $BC$ and $DE$ are parallel, $P_2$, $P$ and $P_4$ are collinear. Therefore, we have\n\n$$\nP_2P_3 : P_4P_3 = 2PC \\sin \\angle P_2PP_3 : 2PD \\sin \\angle P_4PP_3 = PC : PD = 2 : 3.\n$$\n\nSince $B$ is the circumcenter of the triangle $PP_1P_2$, and $P$ and $P_1$ are symmetric with respect to the line $AB$, we obtain $\\angle PBA = \\angle PP_2P_1$. Similarly, since $C$ is the circumcenter of the triangle $PP_3P_2$ and $P$ and $P_3$ are symmetric with respect to the line $CD$, we obtain $\\angle PP_2P_3 = \\angle PCD$. Therefore, we have\n\n$$\n\\angle P_3P_2P_1 = \\angle PP_2P_1 - \\angle PP_2P_3 = \\angle PBA - \\angle PCD = \\angle PCA - \\angle PCD = \\angle DCA.\n$$\n\nSimilarly, we have $\\angle P_3P_4P_5 = \\angle CDA$. Since $\\angle DCA = \\angle CDA$, we have $\\angle P_3P_2P_1 = \\angle P_3P_4P_5$. From this and $P_2P_3 : P_4P_3 = 2 : 3 = P_2P_1 : P_4P_5$, the triangles $P_3P_2P_1$ and $P_3P_4P_5$ are similar with ratio $2 : 3$.\n\nSince $B$ is the circumcenter of the triangle $PP_1P_2$, and $P$ and $P_2$ are symmetric with respect to the line $BC$, we have $\\angle P_2P_1P = \\angle CBP$. Similarly, since $A$ is the circumcenter of the triangle $PP_1P_5$, and $P$ and $P_5$ are symmetric with respect to the line $AE$, we have $\\angle PP_1P_5 = \\angle PAE$. Also the quadrilateral $BCDE$ is an isosceles trapezoid since $BC \\parallel DE$. Therefore, we have\n\n$$\n\\angle P_2P_1P_5 = \\angle P_2P_1P + \\angle PP_1P_5 = \\angle CBP + \\angle PAE = \\angle CBP + \\angle PBE = \\angle CBE = \\angle BCD.\n$$\n\nSimilarly, we have $\\angle P_4P_5P_1 = \\angle EDC$. Hence, we have\n\n$$\n\\angle P_2P_1P_5 + \\angle P_4P_5P_1 = \\angle BCD + \\angle EDC = 180^\\circ,\n$$\n\nwhich means that the lines $P_1P_2$ and $P_4P_5$ are parallel. Let $M_2$ and $M_4$ be the midpoints of the segments $PP_2$ and $PP_4$, respectively. Then $B$, $C$, and $M_2$ all lie on the perpendicular bisector of the segment $PP_2$, and $E$, $D$, and $M_4$ all lie on the perpendicular bisector of the segment $PP_4$. Therefore, we have\n\n$$\n\\sin \\angle P_2P_1P_5 = \\sin \\angle BCD = \\frac{M_2M_4}{CD} = \\frac{P_2P_4}{2CD} = \\frac{11}{8\\sqrt{2}}.\n$$\n\nLet $Q$ be the foot of the perpendicular from $P_5$ to the line $P_1P_2$, and let $R$ and $S$ be the feet of the perpendiculars from $P_3$ to the lines $P_1P_2$ and $P_4P_5$, respectively. Then the quadrilateral $QRSP_5$ is a rectangle. Since the triangles $P_3P_2P_1$ and $P_3P_4P_5$ are similar with ratio $2 : 3$, the triangles $P_3RP_1$ and $P_3SP_5$ are also similar with ratio $2 : 3$, and hence we have $P_1R : P_5S = P_3R : P_3S = 2 : 3$. Therefore, $Q$, $P_1$, and $R$ are collinear in this order, and we have $QP_1 : P_1R = 1 : 2$. Hence, we have\n\n$$\n\\frac{P_1R}{P_1P_5} = \\frac{2QP_1}{P_1P_5} = 2|\\cos \\angle P_2P_1P_5| = 2\\sqrt{1 - \\left(\\frac{11}{8\\sqrt{2}}\\right)^2} = \\sqrt{\\frac{7}{32}}.\n$$\n\nWe also have\n\n$$\n\\frac{RP_3}{P_1P_5} = \\frac{2QP_5}{5P_1P_5} = \\frac{2}{5} \\sin \\angle P_2P_1P_5 = \\frac{11}{20\\sqrt{2}}\n$$\n\nTherefore, applying the Pythagorean theorem, we conclude\n\n$$\n\\frac{P_1P_3}{P_1P_5} = \\sqrt{\\left(\\frac{P_1R}{P_1P_5}\\right)^2 + \\left(\\frac{RP_3}{P_1P_5}\\right)^2} = \\sqrt{\\frac{7}{32} + \\left(\\frac{11}{20\\sqrt{2}}\\right)^2} = \\frac{\\sqrt{37}}{10}\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34853, "subject": "Mathematics (Multi-modal)", "question": "How many tuples of positive integers $(a, b, c, d)$ satisfy $abcd = 2025$, such that each of $ab$, $bc$, $cd$, and $da$ is a perfect square?", "options": [], "answer": "44", "solution": "44\nSince $2025 = 3^4 \\times 5^2$, each of $a$, $b$, $c$, and $d$ has no prime factors other than $3$ and $5$. Therefore, we can write\n$$\na = 3^{x_1} 5^{y_1}, \\quad b = 3^{x_2} 5^{y_2}, \\quad c = 3^{x_3} 5^{y_3}, \\quad d = 3^{x_4} 5^{y_4}\n$$\nfor some non-negative integers $x_1, x_2, x_3, x_4, y_1, y_2, y_3, y_4$. Since $abcd = 2025$, we obtain\n$$\nx_1 + x_2 + x_3 + x_4 = 4, \\quad y_1 + y_2 + y_3 + y_4 = 2.\n$$\n\nAlso, since $ab$, $bc$, $cd$, and $da$ are all perfect squares, the following sums must be even:\n$$\nx_1 + x_2, \\quad x_2 + x_3, \\quad x_3 + x_4, \\quad x_4 + x_1, \\\\\ny_1 + y_2, \\quad y_2 + y_3, \\quad y_3 + y_4, \\quad y_4 + y_1.\n$$\nThus, all of $x_1, x_2, x_3, x_4$ must have the same parity, and similarly, all of $y_1, y_2, y_3, y_4$ must have the same parity. Conversely, the tuple $(a, b, c, d)$ corresponding to any tuple $(x_1, x_2, x_3, x_4, y_1, y_2, y_3, y_4)$ of non-negative integers satisfying (*) and the parity conditions satisfies the given conditions.\nTherefore, the possible $(x_1, x_2, x_3, x_4)$ are the permutations of $(4, 0, 0, 0)$, $(2, 2, 0, 0)$, $(1, 1, 1, 1)$, and the possible $(y_1, y_2, y_3, y_4)$ are the permutations of $(2, 0, 0, 0)$. Hence, the number of tuples $(a, b, c, d)$ that satisfy the given conditions is $((\\binom{4}{1} + \\binom{4}{2}) + 1) \\times \\binom{4}{1} = 44$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34854, "subject": "Mathematics (Multi-modal)", "question": "Let $\\triangle ABC$ be an acute triangle with circumcenter $O$. Let $O_1$ and $O_2$ be the circumcenters of triangles $ABO$ and $ACO$, respectively. Suppose that the circumcircle of triangle $AO_1O_2$ intersects line segment $BC$ at two distinct points $P$ and $Q$ (excluding the endpoints), with the four points $B, P, Q, C$ appearing in this order along the segment. Let $O_3$ be the circumcenter of triangle $OPQ$. Prove that the three points $A, O, $ and $O_3$ lie on a straight line.", "options": [], "answer": "Detailed solution", "solution": "Let $Q'$ be the intersection of the perpendicular bisector of $AB$ with line $BC$. Then, we have\n$$\n\\angle AQ'O_1 = \\angle BQ'O_1 = 90^\\circ - \\angle ABC.\n$$\nMoreover, since $O_1$ and $O_2$ lie on the perpendicular bisector of segment $AO$ and $O_2$ is the circumcenter of triangle $ACO$, we have\n$$\n\\angle AO_2O_1 = \\frac{1}{2}\\angle AO_2O = \\angle ACO = \\frac{1}{2}(180^\\circ - \\angle AOC) = 90^\\circ - \\angle ABC.\n$$\nHence, the four points $A, O_1, O_2, Q'$ are concyclic. Similarly, let $P'$ be the intersection of the perpendicular bisector of $AC$ with $BC$. Then, $A, O_1, O_2, P'$ are concyclic. Since triangle $ABC$\n\nis acute, $O$ does not lie on line $BC$ and $P'$ and $Q'$ are distinct. Hence \\{$P, Q$\\} = \\{$P', Q'$\\}, and $O_3$ is the circumcenter of triangle $OP'Q'$. Now $O_1$, $O$ and $Q'$ are collinear and $O_2$, $O$ and $P'$ are collinear. Let $D$ be the intersection of $O_1O_2$ and $OO_3$. Then, we have\n$$\n\\begin{align*} \n\\angle O_2 DO_3 &= \\angle O_2 OO_3 - \\angle DO_2 O \\\\ \n&= (180^\\circ - \\angle P' OO_3) - \\angle O_1 O_2 P' \\\\ \n&= 180^\\circ - \\frac{1}{2}(180^\\circ - \\angle OO_3 P') - \\angle O_1 O_2 P' \\\\ \n&= 180^\\circ - (90^\\circ - \\angle OQ' P') - \\angle O_1 Q' P' \\\\ \n&= 90^\\circ, \n\\end{align*}\n$$\nso lines $O_1O_2$ and $OO_3$ meet at right angles. On the other hand, $O_1O_2$ is the perpendicular bisector of $AO$, so both $A$ and $O_3$ lie on the perpendicular to line $O_1O_2$ through $O$. Therefore $A$, $O$, $O_3$ are collinear, as claimed.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34855, "subject": "Mathematics (Multi-modal)", "question": "Let $n$ be a positive integer. Consider triples $(x_1, y_1, z_1)$, $(x_2, y_2, z_2)$, \\dots, $(x_n, y_n, z_n)$ which consist of integers $1, 2, \\dots, 100$ and satisfy the following condition:\nFor all infinite sequences $a_1, a_2, \\dots$ which consist of integers $1, 2, \\dots, 100$, there exist a positive integer $i$ and an integer $j$ with $1 \\le j \\le n$ such that $(a_i, a_{i+1}, a_{i+2}) = (x_j, y_j, z_j)$.\nDetermine the minimum possible value of $n$.", "options": [], "answer": "333400", "solution": "**Lemma.** Let $x, y, z$ be integers with $1 \\le x, y, z \\le N$. Then at least one of $(x, y, z)$, $(y, z, x)$, or $(z, x, y)$ belongs to $S$.\n\n**proof.** Consider a sequence $a_1 = x, a_2 = y, a_3 = z, a_4 = x, a_5 = y, a_6 = z, \\dots$. Then, for every positive integer $i$, $(a_i, a_{i+1}, a_{i+2})$ is one of $(x, y, z)$, $(y, z, x)$, or $(z, x, y)$. Therefore, by the assumption of the problem, at least one of these triples must belong to $S$. ■\n\nConsider the set\n$$\nX = \\{(x_1, y_1, z_1), (x_2, y_2, z_2), \\dots, (x_n, y_n, z_n), (y_1, z_1, x_1), (y_2, z_2, x_2), \\dots, (y_n, z_n, x_n), \\\\ (z_1, x_1, y_1), (z_2, x_2, y_2), \\dots, (z_n, x_n, y_n)\\}.\n$$\nLet $p, q, r$ be integers with $1 \\le p, q, r \\le N$. Applying Lemma to $(x, y, z) = (p, q, r)$, it follows that at least one of $(p, q, r)$, $(q, r, p)$, or $(r, p, q)$ belongs to $S$, say it is $(x_j, y_j, z_j)$ for some $1 \\le j \\le n$. Then, $(p, q, r)$ is equal to one of $(x_j, y_j, z_j)$, $(z_j, x_j, y_j)$, or $(y_j, z_j, x_j)$, and therefore, $(p, q, r)$ belongs to $X$. Thus, it has been shown that $X$ is the set of all $N^3$ triples $(p, q, r)$ with $1 \\le p, q, r \\le N$.\nBy applying Lemma to $(x, y, z) = (1, 1, 1), (2, 2, 2), \\dots, (N, N, N)$, we find that these triples $(1, 1, 1), (2, 2, 2), \\dots, (N, N, N)$ all belong to $S$. If $(x_j, y_j, z_j)$ is equal to one of them, we have $(x_j, y_j, z_j) = (y_j, z_j, x_j) = (z_j, x_j, y_j)$, hence the number of elements of $X$ is less than or equal to $3n - 2N$. Therefore we have $3n - 2N \\ge N^3$, thus $n \\ge \\frac{N^3 + 2N}{3}$.\n\nNext, we construct a set $S$ satisfying $n = \\frac{N^3 + 2N}{3}$. Define $S$ to be the set of triples $(x, y, z)$ with $1 \\le x, y, z \\le N$ such that either\n* $x > y$ and $x \\ge z$, or\n\n$$\n\\bullet x = y = z.\n$$\nIf we fix an integer $x$ with $1 \\le x \\le N$, the number of pairs $(y, z)$ such that $(x, y, z)$ belongs to $S$ is equal to $x(x-1)+1$. Therefore, the number of elements in $S$, denoted by $n$, is\n$$\nn = \\sum_{x=1}^{N} (x(x-1)+1) = \\frac{N^3 + 2N}{3}.\n$$\nAssume, for the sake of contradiction, that there exists a sequence $a_1, a_2, \\dots$ of integers $1, 2, \\dots, N$ such that none of the triples $(a_1, a_2, a_3), (a_2, a_3, a_4), \\dots$ belongs to $S$. Let $a_k$ be one of the largest terms among $a_1, a_2, \\dots$. Then we have $a_k \\ge a_{k+1}$ and $a_k \\ge a_{k+2}$. Since $(a_k, a_{k+1}, a_{k+2})$ does not belong to $S$, we have $a_{k+1} = a_k$. Therefore, $a_{k+1}$ is also one of the largest terms in the sequence. Applying the same argument to $(a_{k+1}, a_{k+2}, a_{k+3})$, we obtain $a_{k+2} = a_{k+1}$. Hence, $a_k = a_{k+1} = a_{k+2}$, so $(a_k, a_{k+1}, a_{k+2})$ belongs to $S$, a contradiction. Therefore, this set $S$ satisfies the required condition.\n\nThis shows that the minimum value of $n$ is $\\frac{N^3 + 2N}{3} = 333400$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34856, "subject": "Mathematics (Multi-modal)", "question": "Determine how many integers between $1$ and $1000$ (inclusive) have the property that the remainders upon division by $2$, $3$, $4$, $5$, and $6$ are all distinct.", "options": [], "answer": "49", "solution": "Let $n$ be an integer with $1 \\le n \\le 1000$, and for each integer $i$ with $2 \\le i \\le 6$, let $r_i$ denote the remainder when $n$ is divided by $i$. We require that $r_2, r_3, r_4, r_5, r_6$ be pairwise distinct. Since $0 \\le r_i \\le i - 1$, in particular $r_2$ can only be $0$ or $1$.\n\n**Case 1:** Assume $r_2 = 0$. Then $n$ is even, so $r_4 \\in \\{0, 2\\}$, and $r_2 \\neq r_4$ forces $r_4 = 2$. Similarly $r_6 \\in \\{0, 2, 4\\}$ and $r_6 \\neq r_2, r_4$ force $r_6 = 4$, which in turn gives $r_3 = 1$. Finally $r_5 \\notin \\{0, 1, 2, 4\\}$ forces $r_5 = 3$. Hence the only possible tuple is\n$$\n(r_2, r_3, r_4, r_5, r_6) = (0, 1, 2, 3, 4),\n$$\nwhich, by the Chinese remainder theorem, holds precisely when $n \\equiv 58 \\pmod{60}$.\n\n**Case 2:** Assume $r_2 = 1$. Then $n$ is odd, so $r_4 \\in \\{1, 3\\}$, and $r_2 \\neq r_4$ forces $r_4 = 3$. Similarly $r_6 \\in \\{1, 3, 5\\}$ and $r_6 \\neq r_2, r_4$ force $r_6 = 5$, which in turn gives $r_3 = 2$. Finally $r_5 \\notin \\{1, 2, 3, 5\\}$ forces $r_5 \\in \\{0, 4\\}$. Hence the only possible tuples are\n$$\n(r_2, r_3, r_4, r_5, r_6) = (1, 2, 3, 0, 5) \\quad \\text{and} \\quad (1, 2, 3, 4, 5),\n$$\nwhich, by the Chinese remainder theorem, hold precisely when $n \\equiv 35 \\pmod{60}$ or $n \\equiv 59 \\pmod{60}$.\n\nTherefore it suffices to count the integers between $1$ and $1000$ whose remainder modulo $60$ is $35$, $58$, or $59$. There are $17$, $16$, and $16$ such integers, respectively. Hence the total number is $49$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34857, "subject": "Mathematics (Multi-modal)", "question": "Determine all polynomials $f(x)$ with integer coefficients such that, for any integer $n \\ge 2$, the following conditions hold:\n$\\bullet\\ f(n) > 0.$\n$\\bullet\\ f(n)$ divides $n^{f(n)} - 1$.", "options": [], "answer": "f(x) = (x - 1)^m for some nonnegative integer m", "solution": "**Solution:** We will show that $f(x) = (x-1)^m$ provides an answer. For $n \\ge 2$ we have $f(n) = (n-1)^m > 0$, thus the first condition is satisfied.\n\n**Lemma 1.** Let $d, t, x$ be positive integers. If $x-1$ is a multiple of $d^t$, then $x^d-1$ is a multiple of $d^{t+1}$.\n\n**Proof.** Since $x \\equiv 1 \\pmod d$, we have $x^{d-1} + \\dots + x + 1 \\equiv 1 + \\dots + 1 \\equiv 0 \\pmod d$. Thus $x^d - 1 = (x-1)(x^{d-1} + \\dots + x + 1)$ is a multiple of $d^{t+1}$ as desired. $\\blacksquare$\n\nLet $n \\ge 2$. Since $n^{(n-1)0} - 1 = n-1$ is a multiple of $n-1$, an induction using Lemma 1 shows that $n^{(n-1)m} - 1$ is a multiple of $(n-1)^{m+1}$ for $m \\ge 0$. Thus, we conclude that $f(x) = (x-1)^m$ is an answer for $m \\ge 0$.\n\nNext we will show that no other answers exist. For integers $a, b$ with $b \\ne 0$, we write $b \\mid a$ to mean that $a$ is divisible by $b$.\n\n**Lemma 2.** For a positive integer $n$ and integers $a$ and $b$, $a \\equiv b \\pmod n$ implies $f(a) \\equiv f(b) \\pmod n$.\n\n**Proof.** Write $f(x) = a_0 + a_1x + \\dots + a_d x^d$, where $d$ is a nonnegative integer and $a_0, a_1, \\dots, a_d$ are integers. Since $n \\mid a-b$,\n$$\nf(a) - f(b) = \\sum_{i=1}^{d} a_i (a^i - b^i) = (a-b) \\sum_{i=1}^{d} a_i (a^{i-1} + a^{i-2}b + \\dots + ab^{i-2} + b^{i-1})\n$$\nis divisible by $n$. $\\blacksquare$\n\nWe will show that, for an odd prime $p$ and an integer $n \\ge 2$, $p \\mid f(n)$ implies $p \\mid n-1$. For a nonnegative integer $k$, Lemma 2 shows that $f(n + kp) \\equiv f(n) \\equiv 0 \\pmod p$. Thus we have\n$$\n0 \\equiv (n + kp)^{f(n+kp)} - 1 \\equiv n^{f(n+kp)} - 1 \\pmod p\n$$\nSince $p$ and $p-1$ are coprime, we can take a nonnegative integer $k$ such that $p-1 \\mid n + kp$.\nThen $f(n + kp) \\equiv f(p-1) \\pmod{p-1}$ holds and thus Fermat's little theorem shows that\n$$\n0 \\equiv n^{f(n+kp)} - 1 \\equiv n^{f(p-1)} - 1, \\pmod{p}\n$$\ntherefore we have\n$$\nn^{f(p-1)} \\equiv 1. \\pmod{p}\n$$\nSince $f(p-1) \\mid (p-1)^{f(p-1)} - 1$, $f(p-1)$ and $p-1$ are coprime. Thus, there exists a positive integer $r$ such that $f(p-1)r \\equiv 1 \\pmod{p-1}$. By Fermat's little theorem we have\n$$\nn \\equiv n^{f(p-1)r} \\equiv 1^r \\equiv 1, \\pmod{p}\n$$\nthat is, $p \\mid n-1$.\n\nWe have shown that, for an odd prime $p$ and an integer $n \\ge 2$, $p \\mid f(n)$ implies $p \\mid n-1$. In particular, for an odd prime $p$, any prime factor of $f(p+1)$ is also a prime factor of $p+1-1 = p$, which means that $f(p+1)$ is a power of $p$.\n\nWrite $f(x+1) = x^m(b_0 + b_1x + \\dots + b_lx^l)$ where $l$ and $m$ are nonnegative integers and $b_0 \\ne 0, b_1, \\dots, b_l$ are integers. Let $p$ be an odd prime greater than $|b_0|$. Then $f(p+1)$ is a multiple of $p^m$, while $f(p+1) \\equiv b_0p^m \\ne 0 \\pmod{p^{m+1}}$. The argument above shows that $f(p+1) = p^m$.\n\nLet $g(x) = f(x) - (x-1)^m$. Then there exist infinitely many integers $n$ such that $g(n) = 0$. It follows that $g(x) = 0$ as polynomials. We conclude that $f(x) = (x-1)^m$.", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 34858, "subject": "Mathematics (Multi-modal)", "question": "In the interior of an acute triangle $ABC$ that is not isosceles, there are three distinct points $A_1, B_1, C_1$ such that $AB_1 : CB_1 = AB : CB$ and $AC_1 : BC_1 = AC : BC$. Let $A_2$ be the point symmetric to $A_1$ with respect to the line $BC$, let $B_2$ be the point symmetric to $B_1$ with respect to the line $AC$, and let $C_2$ be the point symmetric to $C_1$ with respect to the line $AB$. Then, all of the following conditions are satisfied.\n$\\bullet$ The four points $A, A_2, B, C_2$ are concyclic.\n$\\bullet$ The four points $A, A_2, B_2, C$ are concyclic.\n$\\bullet$ The four points $B, B_2, C, C_2$ are concyclic.\n$\\bullet$ None of the three points $A_2, B_2, C_2$ lie on the circumcircle of the triangle $ABC$.\nProve that the triangle $A_1B_1C_1$ and the triangle $A_2B_2C_2$ are similar.", "options": [], "answer": "Detailed solution", "solution": "For three distinct points $X_1, X_2, X_3$, when the line $X_1X_2$ is rotated counterclockwise by an angle $\\theta$ about $X_1$ to coincide with the line $X_1X_3$, this $\\theta$ is denoted by $\\angle X_2X_1X_3$. Note that differences of $180^\\circ$ are disregarded. First, we show the following lemma concerning the Circle of Apollonius.\n\n**Lemma 1.** Let $STU$ be a triangle satisfying $ST \\neq SU$, and let $\\omega$ be a circle passing through $S$. When an inversion with center $S$ is performed, mapping $T$ and $U$ to $T'$ and $U'$ respectively, the circle $\\omega$ is the Apollonius circle for the segment $TU$ passing through $S$ if and only if $\\omega$ is mapped by this inversion to the perpendicular bisector of the segment $T'U'$.\n\n**Proof of Lemma 1.** Let $V$ and $W$ be the intersection points of the internal and external angle bisectors of $\\angle TSU$ with the line $TU$ respectively, and let $V'$ and $W'$ be their respective images under the inversion. From $ST : SU = VT : VU = WT : WU$, the circumcircle of the triangle $SVW$ is the Apollonius circle for the segment $TU$ passing through $S$, so it suffices to show that the circumcircle of the triangle $SVW$ is mapped to the perpendicular bisector of the segment $T'U'$ by the inversion. Since $V'$ and $W'$ are the intersection points of the internal and external angle bisectors of $\\angle T'SU'$ with the circumcircle of the triangle $ST'U'$ respectively, they are the midpoints of the arc $T'U'$ not containing $S$ and the arc $T'U'$ containing $S$ on the circumcircle of the triangle $ST'U'$ respectively. Therefore, the image of the circumcircle of triangle $SVW$ under the inversion, which is the line $V'W'$, is the perpendicular bisector of the segment $T'U'$. Thus, the lemma is proved. ■\n\nLet $\\Omega_A$ be the Apollonius circle for the side $BC$ passing through $A$, and similarly define $\\Omega_B$ and $\\Omega_C$. Note that $B_1$ and $B_2$ lie on $\\Omega_B$, and $C_1$ and $C_2$ lie on $\\Omega_C$.\n\n**Lemma 2.** $A_1, A_2$ lie on $\\Omega_A$.\n\n**Proof of Lemma 2.** Since $\\Omega_A$ is symmetric with respect to the line $BC$, $A_1$ is on $\\Omega_A$ if and only if $A_2$ is on $\\Omega_A$. We will show that $A_2$ lies on $\\Omega_A$.\nLet $P$ and $Q$ be the two intersection points of $\\Omega_B$ and $\\Omega_C$. Then,\n$$\nBP : CP = \\frac{AP \\cdot BC}{AC} : \\frac{AP \\cdot BC}{AB} = AB : AC\n$$\nTherefore, $P$ lies on $\\Omega_A$, and similarly for $Q$.\nLet $\\sigma$ be the inversion with respect to a circle centered at $P$ with radius 1. Then, for any points $Y, Z$ different from $P$, the triangle $PYZ$ is similar to the triangle $P\\sigma(Z)\\sigma(Y)$, so we obtain\n$$\n\\sigma(A)\\sigma(B) = \\frac{AB}{AP \\cdot BP} = \\frac{BC}{BP \\cdot CP} = \\sigma(B)\\sigma(C).\n$$\nSimilarly, $\\sigma(A)\\sigma(C) = \\sigma(B)\\sigma(C)$ also holds, so the triangle $\\sigma(A)\\sigma(B)\\sigma(C)$ is equilateral. Also, by Lemma 1, $\\sigma(\\Omega_A)$ is the perpendicular bisector of the segment $\\sigma(B)\\sigma(C)$, and similarly for $\\sigma(\\Omega_B)$ and $\\sigma(\\Omega_C)$.\nTherefore, $\\sigma(Q)$ is the center of the equilateral triangle $\\sigma(A)\\sigma(B)\\sigma(C)$, and the line $\\sigma(B)\\sigma(B_2)$ and the line $\\sigma(C)\\sigma(C_2)$ are symmetric with respect to the line $\\sigma(A)\\sigma(Q)$. Also, the four points $\\sigma(B), \\sigma(B_2), \\sigma(C), \\sigma(C_2)$ are concyclic, and since $\\sigma(B)$ and $\\sigma(C)$ are symmetric with respect to the line $\\sigma(A)\\sigma(Q)$, $\\sigma(B_2)$ and $\\sigma(C_2)$ are also symmetric with respect to the line $\\sigma(A)\\sigma(Q)$. Here, from the condition that $B_2, C_2$ do not lie on the circumcircle of the triangle $ABC$, note that the circumcircle of the triangle $\\sigma(A)\\sigma(B)\\sigma(C_2)$ and the circumcircle of the triangle $\\sigma(A)\\sigma(B_2)\\sigma(C)$ are distinct. Since $\\sigma(A_2)$ is the intersection point of these two circles other than $\\sigma(A)$, it lies on the line $\\sigma(A)\\sigma(Q)$, and this line is $\\sigma(\\Omega_A)$, so $A_2$ lies on $\\Omega_A$.\n\nLet $R$ be the intersection point, other than $A$, of the circumcircle of the triangle $ABC_1$ and the circumcircle of the triangle $AB_1C$. If the two circles are tangent, then let $R = A$, and the line $AR$ is taken to be the common tangent line to the two circles at $A$. Also, since $B_1, C_1$ are points in the interior of the triangle $ABC$, note that $R$ is different from $B$ and $C$. Then,\n$$\n\\begin{aligned} \\angle BRC &= \\angle BRA + \\angle ARC \\\\ &= \\angle BC_1A + \\angle AB_1C \\\\ &= \\angle AC_2B + \\angle CB_2A \\\\ &= \\angle AA_2B + \\angle CA_2A \\\\ &= \\angle CA_2B \\\\ &= \\angle BA_1C. \\end{aligned}\n$$\nTherefore, the circumcircle of the triangle $A_1BC$ also passes through $R$. Here, since $A_1$ is a point in the interior of the triangle $ABC$, $R$ is also different from $A$.\n\n**Proof of Lemma 3.** Let $\\Gamma_A$ be the arc $BC$ of the circumcircle of the triangle $A_1BC$ that contains $A_1$. Let $\\Gamma_B$ be the arc $CA$ of the circumcircle of the triangle $AB_1C$ that contains $B_1$. Let $\\Gamma_C$ be the arc $AB$ of the circumcircle of the triangle $ABC_1$ that contains $C_1$. Then, since $A_1$ is in the interior of the triangle $ABC$, $\\Gamma_A$ is inside the circumcircle of the triangle $ABC$, and the part of the circumcircle of the triangle $A_1BC$ not containing $\\Gamma_A$ is outside the circumcircle of the triangle $ABC$. Since the same holds for $\\Gamma_B$ and $\\Gamma_C$, either all of $\\Gamma_A, \\Gamma_B, \\Gamma_C$ contain $R$, or none of them contain $R$. Also, if none of them contain $R$, then $R$ must be on the opposite side of the line $BC$ from $A_1$, on the opposite side of the line $CA$ from $B_1$, and on the opposite side of the line $AB$ from $C_1$. But since $A_1, B_1, C_1$ are all in the interior of the triangle $ABC$, this is a contradiction. Thus $\\Gamma_A, \\Gamma_B, \\Gamma_C$ all pass through $R$.\nHere, if we assume $P = R$ (where $P$ is from Lemma 2), then $P = A_1 = B_1 = C_1$, which contradicts the assumption that $A_1, B_1, C_1$ are distinct. So note that $P \\neq R$. Let $\\tau$ be the operation of applying $\\sigma$ defined in Lemma 2 followed by an inversion centered at $\\sigma(R)$. By Lemma 1, $\\tau(\\Omega_A)$ is the Apollonius circle for the segment $\\tau(B)\\tau(C)$ passing through $\\tau(A)$.\nFurthermore, since the four points $A_1, B, C, R$ are concyclic, $\\tau(A_1)$ lies on the line $\\tau(B)\\tau(C)$. Therefore, $\\tau(A_1)$ is the intersection of the internal or external bisector of $\\angle\\tau(B)\\tau(A)\\tau(C)$ with the line $\\tau(B)\\tau(C)$, and similarly for $\\tau(B_1)$ and $\\tau(C_1)$. Here, since $\\Gamma_A, \\Gamma_B, \\Gamma_C$ all contain $R$, $\\tau(\\Gamma_A), \\tau(\\Gamma_B), \\tau(\\Gamma_C)$ all contain the point at infinity $\\tau(R)$. Therefore, $\\tau(A_1), \\tau(B_1), \\tau(C_1)$ are all intersection points of external angle bisectors with the opposite sides. Also,\n$$\n\\frac{\\tau(B)\\tau(A_1)}{\\tau(A_1)\\tau(C)} \\cdot \\frac{\\tau(C)\\tau(B_1)}{\\tau(B_1)\\tau(A)} \\cdot \\frac{\\tau(A)\\tau(C_1)}{\\tau(C_1)\\tau(B)} = \\frac{\\tau(A)\\tau(B)}{\\tau(C)\\tau(A)} \\cdot \\frac{\\tau(B)\\tau(C)}{\\tau(A)\\tau(B)} \\cdot \\frac{\\tau(C)\\tau(A)}{\\tau(B)\\tau(C)} = 1.\n$$\nTherefore, by the converse of Menelaus's Theorem, the three points $\\tau(A_1), \\tau(B_1), \\tau(C_1)$ are collinear. Thus the lemma is proved. ■\n\nLet $D$ be the intersection of the internal angle bisector of $\\angle BAC$ with the line $BC$. This point $D$ lies on $\\Omega_A$. Also, let $O_A$ be the center of $\\Omega_A$. Then $O_A$ lies on the line $BC$. Therefore,\n$$\n\\angle O_A A B = \\angle O_A A D + \\angle D A B = \\angle A D O_A + \\angle C A D = \\angle A C D\n$$\nfrom which it follows that the line $AO_A$ is tangent to the circumcircle of triangle $ABC$ at $A$, so $O_A A^2 = O_A B \\cdot O_A C$ holds. From this and $O_A A = O_A A_2$, $O_A A_2^2 = O_A B \\cdot O_A C$ holds. Therefore, the line $A_2 O_A$ is tangent to the circumcircle of the triangle $A_2 BC$ at $A_2$. Also, under the inversion with respect to $\\Omega_A$, $B$ and $C$ are interchanged, and since $P, Q$ defined in Lemma 2 are invariant, $\\Omega_B$ and $\\Omega_C$ are interchanged by this inversion.\nTherefore, if $B'_2$ is the image of $C_2$ under this inversion, then $B'_2$ lies on $\\Omega_B$. Here, the four points $B, B'_2, C, C_2$ are concyclic, and this circle is invariant under the inversion with respect to $\\Omega_A$, so $B'_2 = B_2$. Therefore, $O_A$ lies on the line $B_2 C_2$, and since $O_A A_2^2 = O_A B_2 \\cdot O_A C_2$, the circumcircle of the triangle $A_2B_2C_2$ is tangent to the line $A_2O_A$. Therefore,\n$$\n\\begin{aligned}\n\\angle A_1B_1C_1 &= \\angle A_1RC_1 \\\\\n&= \\angle A_1RB + \\angle BRC_1 \\\\\n&= \\angle A_1CB + \\angle BAC_1 \\\\\n&= \\angle BCA_2 + \\angle C_2AB \\\\\n&= \\angle BCA_2 + \\angle C_2A_2B \\\\\n&= \\angle BA_2O_A + \\angle C_2A_2O_A + \\angle O_A A_2B \\\\\n&= \\angle C_2A_2O_A \\\\\n&= \\angle C_2B_2A_2\n\\end{aligned}\n$$\n\nand, similarly $\\angle A_1C_1B_1 = \\angle B_2C_2A_2$, so the result is shown.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34859, "subject": "Mathematics (Multi-modal)", "question": "Let $ABCD$ be a cyclic quadrilateral with an incircle of radius $6$. Let the extensions of sides $AB$ and $DC$ beyond $B$ and $C$, respectively, meet at $P$, and let the extensions of sides $AD$ and $BC$ beyond $D$ and $C$, respectively, meet at $Q$. The inradii of triangle $PBC$ and $QCD$ are $5$ and $3$, respectively. Find $\\frac{BC}{CD}$.", "options": [], "answer": "15/11", "solution": "$\\boxed{\\frac{15}{11}}$\n\nLet the inscribed circle of quadrilateral $ABCD$ be tangent to sides $AB$, $BC$, $CD$, and $DA$ at points $S$, $T$, $U$, and $V$, respectively.\nSince $AS$ and $AV$ are tangent segments from $A$ to this incircle, we have $AS = AV$. Similarly, $BS = BT$, $CT = CU$ and $DU = DV$ hold. Thus we have\n$$\nAB + CD = AS + BS + CU + DU = AV + BT + CT + DV = AD + BC. \\quad (*)\n$$\nSince quadrilateral $ABCD$ is concyclic, we have $\\angle PCB = \\angle PAD$. Therefore, triangles $PBC$ and $PDA$ are similar. Since the similarity ratio is same as the ratio of the radii of their inscribed circles, it follows that $BC : DA = 5 : 6$. Similarly we have $CD : AB = 3 : 6 = 1 : 2$.\nNow we can write $BC = 5y$, $DA = 6y$, $CD = x$ and $AB = 2x$. From $(*)$ we have $2x + x = 6y + 5y$ and thus $x : y = 11 : 3$. We conclude that $\\frac{BC}{CD} = \\frac{5y}{x} = \\frac{5 \\cdot 3}{11} = \\frac{15}{11}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34860, "subject": "Mathematics (Multi-modal)", "question": "Let $a_1, a_2, \\dots$ and $b_1, b_2, \\dots$ be two sequences consisting of positive integers such that, for any positive integer $n$,\n$$\n(a_{n+1}, b_{n+1}) = \\left( \\frac{a_n}{2}, b_n + \\frac{a_n}{2} \\right) \\text{ or } (a_{n+1}, b_{n+1}) = \\left( a_n + \\frac{b_n}{2}, \\frac{b_n}{2} \\right)\n$$\nholds. How many initial pairs $(a_1, b_1)$ with $1 \\le a_1, b_1 \\le 40$ are possible?", "options": [], "answer": "1064", "solution": "\\boxed{1064}\n$$\n\\text{For a positive integer } k, \\text{ denote the maximum nonnegative integer } i \\text{ such that } 2^i \\text{ divides } k \\text{ by } v_2(k). \\text{ Note that } v_2(kl) = v_2(k) + v_2(l) \\text{ holds for any positive integers } k \\text{ and } l, \\text{ and that } v_2\\left(\\frac{k}{2}\\right) = v_2(k) - 1 \\text{ holds for any positive even number } k.\n$$\n**Lemma 1.** Let $s$ and $t$ be positive integers.\n* If $v_2(s) \\neq v_2(t)$, we have $v_2(s + t) = \\min\\{v_2(s), v_2(t)\\}$.\n\n* If $v_2(s) = v_2(t)$, we have $v_2(s+t) > v_2(s)$.\n**Proof.** We can write $s = 2^{v_2(s)}x$, $t = 2^{v_2(t)}y$ for some odd integers $x, y$.\nIn the case of $v_2(s) < v_2(t)$, we have $s+t = 2^{v_2(s)}(x+2^{v_2(t)-v_2(s)}y)$. Since $2^{v_2(t)-v_2(s)}y$ is even, $x+2^{v_2(t)-v_2(s)}y$ is odd. Thus $v_2(s+t) = v_2(s) = \\min\\{v_2(s), v_2(t)\\}$ holds.\nIn the case of $v_2(s) > v_2(t)$ the same argument shows that $v_2(s+t) = \\min\\{v_2(s), v_2(t)\\}$.\nIn the case of $v_2(s) = v_2(t)$, we have $s+t = 2^{v_2(s)}x + 2^{v_2(s)}y = 2^{v_2(s)}(x+y)$. Since $x+y$ is even, we have $v_2(s+t) > v_2(s)$. ■\n\n**Lemma 2.** If $s, t \\in \\mathbb{N}$ satisfy $v_2(s) = v_2(t) \\ge 1$, we have:\n$$\n\\bullet \\quad v_2\\left(t + \\frac{s}{2}\\right) = v_2\\left(\\frac{s}{2}\\right) = v_2(s) - 1,\n$$\n$$\n\\bullet \\quad v_2\\left(s + \\frac{t}{2}\\right) = v_2\\left(\\frac{t}{2}\\right) = v_2(s) - 1.\n$$\n**Proof.** Since $v_2\\left(\\frac{s}{2}\\right) = v_2(s) - 1 < v_2(s) = v_2(t)$, we have $v_2\\left(t + \\frac{s}{2}\\right) = \\min\\{v_2(t), v_2\\left(\\frac{s}{2}\\right)\\} = v_2\\left(\\frac{s}{2}\\right)$ by Lemma 1. Thus we have $v_2\\left(t + \\frac{s}{2}\\right) = v_2\\left(\\frac{s}{2}\\right) = v_2(s) - 1$. Similarly $v_2\\left(s + \\frac{t}{2}\\right) = v_2\\left(\\frac{t}{2}\\right) = v_2(t) - 1 = v_2(s) - 1$ holds. ■\n\nWe will show that, if $a_1, a_2, \\dots$ and $b_1, b_2, \\dots$ satisfy the condition of the problem, $v_2(a_1) \\ne v_2(b_1)$ holds.\nAssume $v_2(a_1) = v_2(b_1)$. If $v_2(a_1) = v_2(b_1) = 0$, $a_2$ cannot be an integer. If $v_2(a_1) = v_2(b_1) = k \\ge 1$, Lemma 2 shows inductively that $v_2(a_n) = v_2(b_n) = k - n + 1$ for $n \\le k + 1$. However, when $n = k + 1$ we have $v_2(a_n) = v_2(b_n) = 0$, then $a_{n+1}$ cannot be an integer. This is a contradiction and we conclude that $v_2(a_1) \\ne v_2(b_1)$.\nNext we will show that, for any integers $1 \\le s, t \\le 40$ with $v_2(s) \\ne v_2(t)$, there exists sequences $a_1, a_2, \\dots$ and $b_1, b_2, \\dots$ such that $a_1 = s$ and $b_1 = t$.\n**Lemma 3.** If $s, t \\in \\mathbb{N}$ satisfy $v_2(s) \\ne v_2(t)$, at least one of the following statements hold:\n* $s$ is even and $v_2\\left(t + \\frac{s}{2}\\right) \\ne v_2\\left(\\frac{s}{2}\\right)$ holds.\n* $t$ is even and $v_2\\left(s + \\frac{t}{2}\\right) \\ne v_2\\left(\\frac{t}{2}\\right)$ holds.\n**Proof.** We will show that if $v_2(s) > v_2(t)$ the first condition holds. $s$ is even because $v_2(s) \\ge 1$.\nIf $v_2(s) = v_2(t) + 1$, we have $v_2\\left(\\frac{s}{2}\\right) = v_2(s) - 1 = v_2(t)$ and thus $v_2\\left(t + \\frac{s}{2}\\right) > v_2\\left(\\frac{s}{2}\\right)$ by Lemma 1. If $v_2(s) \\ge v_2(t) + 2$, we have $v_2\\left(\\frac{s}{2}\\right) = v_2(s) - 1 > v_2(t)$ and thus $v_2\\left(t + \\frac{s}{2}\\right) = \\min\\{v_2(t), v_2\\left(\\frac{s}{2}\\right)\\} = v_2(t) < v_2\\left(\\frac{s}{2}\\right)$ by Lemma 1.\n\nLet $a_1 = s, b_1 = t$. Then for $n = 1, 2, \\dots$ we can proceed inductively as follows:\nSince $v_2(a_n) \\neq v_2(b_n)$, Lemma 3 shows that at least one of $(x, y) = \\left(\\frac{a_n}{2}, b_n + \\frac{a_n}{2}\\right)$, $\\left(a_n + \\frac{b_n}{2}, \\frac{b_n}{2}\\right)$ is a pair such that $v_2(x) \\neq v_2(y)$. We set $a_{n+1} = x, b_{n+1} = y$ for such $(x, y)$.\nThe resulting sequences $a_1, a_2, \\dots$ and $b_1, b_2, \\dots$ meet the condition of the problem. Therefore the answer is the number of pairs of integers $(s, t)$ with $1 \\le s, t \\le 40$ such that $v_2(s) \\neq v_2(t)$.\nNote that $v_2(n) \\le 5$ for $1 \\le n \\le 40$ because $40 < 2^6$. For $k \\in \\{0, 1, \\dots, 5\\}$, the number $f(k)$ of integers $1 \\le n \\le 40$ such that $v_2(n) = k$ is $\\lfloor \\frac{40}{2^k} \\rfloor - \\lfloor \\frac{40}{2^{k+1}} \\rfloor$. Thus we can calculate\n$$\nf(0) = 20, \\quad f(1) = 10, \\quad f(2) = 5, \\quad f(3) = 3, \\quad f(4) = 1, \\quad f(5) = 1.\n$$\nThe number of pairs of integers $(s, t)$ with $1 \\le s, t \\le 40$ such that $v_2(s) = v_2(t)$ is $\\sum_{k=0}^{5} f(k)^2 = 536$. Therefore, the answer is $40^2 - 536 = \\mathbf{1064}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34861, "subject": "Mathematics (Multi-modal)", "question": "Alice plays a game using a board with 20 rows and 25 columns. Initially, no number is written in any of the $20 \\times 25$ cells. The game proceeds in several turns, and on the $n$-th turn, the following operation is performed:\nChoose a positive integer $k$ and $k$ empty cells $A_1, A_2, \\dots, A_k$ such that for every integer $i$ with $1 \\le i \\le k-1$, the cell $A_{i+1}$ is adjacent to $A_i$ either to the right or above. Write the number $n$ in each of these $k$ cells.\nThe game ends when all cells on the board are filled with some numbers. When Alice plays optimally to minimize the number of turns until the game ends, how many different possible numberings of the board can be obtained when the game ends?\nNote: Numberings that are identical under rotation or reflection are considered distinct and counted as different.", "options": [], "answer": "20!^3", "solution": "$20!^3$\n\nLet $k$ and $l$ be positive integers. We denote by $(k, l)$ the cell in the $k$-th column from the left and the $l$-th row from the bottom. For the cell $(k, l)$, we define its *height* as $k + l - 1$. Note that the possible values for the height of a cell range from 1 to 44. For each integer $1 \\le i \\le 44$, the sequence formed by the numbers written in the cells of height $i$, listed from the upper-left to the lower-right, is called the *level-$i$ sequence* or *level sequence of height $i$*.\n\nIn the operation, for the chosen cells $A_1, \\dots, A_k$, the height of $A_{i+1}$ is one more than that of $A_i$ for every $1 \\le i \\le k-1$. In particular, the following properties hold:\n(1) For every $1 \\le i \\le 44$, the level-$i$ sequence contains no repeated numbers.\n(2) Let $p$ and $q$ be integers with $1 \\le p < q \\le 44$, and let $n$ be a positive integer. If there are cells of height $p$ and $q$ with the number $n$ written in them, then for every integer $i$ with $p \\le i \\le q$, there exists a cell of height $i$ that has the number $n$ written in it.\n(3) Let $i$ and $n$ be positive integers. If there exist cells of height $i$ and $i+1$ that both have the number $n$ written in them, then these two cells are adjacent.\n\nSince there are 20 cells of height 20, Alice must perform at least 20 turns. Conversely, in the $n$-th turn ($1 \\le n \\le 20$), if Alice chooses $k=25$ and $A_i = (i, n)$ for $1 \\le i \\le 25$, she can fill the entire board in exactly 20 turns. Therefore, the minimum number of turns is 20.\n\nFrom now on, we consider the possible numberings when the game ends in exactly 20 turns.\nIn this case, since only the numbers 1 through 20 are filled, by (1), the level-20 sequence must be a permutation of 1, 2, ..., 20.\n\n**Lemma 1.** The level sequences of height 20, 21, ..., 25 are all identical.\n**Proof.** Since there are also 20 cells of each height 21, 22, 23, 24, and 25, by the same reason as in the case of height 20, the level sequences of height 20, 21, ..., 25 are all permutations of 1, 2, ..., 20.\nLet $l$ be the first term of the level-20 sequence. That is, $l$ is the number written in the cell $(1, 20)$. Then, by (3), the cell of height 21 in which $l$ is written must be $(2, 20)$.\nLet $m$ be the second term of the level-20 sequence. That is, $m$ is the number written in the cell $(2, 19)$. Then, by (3), the possible cells of height 21 where $m$ could be written are $(2, 20)$ or $(3, 19)$. However, since $l$ is already written in $(2, 20)$, $m$ must be written in $(3, 19)$.\nContinuing this consideration, for every integer $k$ with $1 \\le k \\le 20$, it turns out that the cell $(k+1, 21-k)$ contains the $k$-th term of the level-20 sequence. Therefore, the level-21 sequence is identical to the level-20 sequence. Similarly, the level sequences of heights 22, 23, 24, and 25 are also identical to it. ■\n\n**Lemma 2.** For each integer $1 \\le i \\le 19$, the level-$i$ sequence is equal to the sequence obtained from the level-$(i+1)$ sequence by deleting exactly one term while preserving the order.\n**Proof.** Suppose that $n$ appears in the level-$i$ sequence. Since the level-20 sequence is a permutation of $1, 2, \\dots, 20$, the number $n$ also appears in the level-20 sequence. Therefore, by (2), $n$ must also appear in the level-$(i+1)$ sequence. This shows that exactly one number appears in the level-$(i+1)$ sequence but not in the level-$i$ sequence. Let this number be the $j$-th term of the level-$(i+1)$ sequence.\nThen, by applying the same argument in the proof of Lemma 1 in the order $k = 1, 2, \\dots, j-1$, we can show that for any integer $k$ with $1 \\le k \\le j-1$, the $k$-th term of the level-$i$ sequence is equal to the $k$-th term of the level-$(i+1)$ sequence. Similarly, by applying the same argument in the reverse order $k = i, i-1, \\dots, j+1$, we can show that for any integer $k$ with $j+1 \\le k \\le i$, the $k$-th term of the level-$i$ sequence is equal to the $(k+1)$-th term of the level-$(i+1)$ sequence, thus the lemma is proved. ■\n\n**Lemma 3.** For each integer $25 \\le i \\le 43$, the level-$(i+1)$ sequence is equal to the sequence obtained from the level-$i$ sequence by deleting exactly one term while preserving the order.\n**Proof.** The proof is similar to that of Lemma 2. ■\n\n(i) The level sequences of height 20, 21, ..., 25 are all identical and are permutations of 1, 2, ..., 20.\n(ii) For every integer $1 \\le i \\le 19$, the level-$i$ sequence is obtained from the level-$(i+1)$ sequence by deleting exactly one term while preserving the order.\n(iii) For every integer $25 \\le i \\le 43$, the level-$(i+1)$ sequence is obtained from the level-$i$ sequence by deleting exactly one term while preserving the order.\n\nConversely, we will show that any numbering that satisfies the conditions (i), (ii), and (iii) can be realized as the final result of the game. Let $X$ be a numbering that satisfies (i), (ii), and (iii). Fix an integer $n$ with $1 \\le n \\le 20$, and let $m$ be the minimum and $M$ the maximum of the heights in which the number $n$ appears in $X$. From (i), we have $m \\le 20$ and $M \\ge 25$. From (ii) and (iii), it follows that for any $m \\le i \\le M$, the level-$i$ sequence also contains the number $n$ exactly once. Suppose that $n$ appears in the $l_i$-th term of the level-$i$ sequence. Then, by conditions (i), (ii), and (iii), for any $m \\le i < M$, the $l_{i+1}$-th cell in the level-$(i+1)$ sequence is either to the right or above the $l_i$-th cell of the level-$i$ sequence. Therefore, in the $n$-th turn, Alice can choose $k = M - m + 1$, and $A_i$ as the $l_{m+i-1}$-th cell in the level-$(m + i - 1)$ sequence for each $i = 1, 2, \\dots, k$, and in this case, the final numbering coincides with $X$.\n\nHence, it is sufficient to count the numberings satisfying (i), (ii), and (iii). First, there are $20!$ ways to fill the cells of heights 20, 21, ..., 25 satisfying (i). Fix one such filling. Then, the number of ways to fill the cells of heights 1, 2, ..., 19 satisfying (ii) is equal to the number of ways to successively remove one integer at a time from the set $\\{1, 2, ..., 20\\}$, which is $20!$. Similarly, the number of ways to fill the cells of heights 26, 27, ..., 44 satisfying (iii) is also $20!$. Therefore, the total number of possible final numberings is $20! \\cdot 20! \\cdot 20! = 20!^3$.", "topic": "Algebra", "subtopic": "Abstract Algebra" }, { "id": 34862, "subject": "Mathematics (Multi-modal)", "question": "For an integer $n \\ge 3$, a sequence of integers $a_1, a_2, \\dots, a_n$ is called a **beautiful sequence** if the following conditions are all satisfied.\n* $0 = a_1 < a_2 < \\dots < a_n$.\n* There exists an integer $i$ such that $1 \\le i \\le n$ and $a_i = 2025$.\n* For all integers $i, j, k$ with $1 \\le i < j < k \\le n$, the inequality $\\frac{a_i + a_k}{2} \\le a_j$ holds.\nLet $N$ be the maximum possible length of a beautiful sequence. For beautiful sequences $a_1, a_2, \\dots, a_N$ of length $N$, determine the minimum possible value of $a_N$.\nHere, the length of a sequence of integers $x_1, x_2, \\dots, x_l$ is $l$.", "options": [], "answer": "N = 13; minimum a_N = 2057", "solution": "Let $a_1, a_2, \\dots, a_n$ be a beautiful sequence of length $n$. Take an integer $m$ such that $a_m = 2025$. Then $m \\ge 2$ since $a_1 = 0$.\nWe first prove $n \\le 13$. Let $t$ be an integer with $1 \\le t \\le n - 2$. By applying the third condition to $(i, j, k) = (t, t+1, n)$, we obtain\n$$\n\\frac{a_t + a_n}{2} \\le a_{t+1},\n$$\nwhich implies\n$$\na_n - a_t \\ge 2(a_n - a_{t+1}).\n$$\nIf $m = n$, repeatedly applying this inequality gives\n$$\n2025 = a_n - a_1 \\ge 2(a_n - a_2) \\ge \\dots \\ge 2^{n-2}(a_n - a_{n-1}) \\ge 2^{n-2},\n$$\nand hence $n \\le 12$. If $m < n$, we have\n$$\na_n - a_1 \\ge 2(a_n - a_2) \\ge \\dots \\ge 2^{m-2}(a_n - a_{m-1}) \\ge 2^{m-1}(a_n - a_m),\n$$\nand\n$$\na_n - a_m \\ge 2(a_n - a_{m+1}) \\ge 2^2(a_n - a_{m+2}) \\ge \\dots \\ge 2^{n-m-1}(a_n - a_{n-1}) \\ge 2^{n-m-1}.\n$$\n\\begin{aligned}\n2025 &= a_m - a_1 = (a_n - a_1) - (a_n - a_m) \\ge (2^{m-1} - 1)(a_n - a_m) \\\\\n&\\ge (2^{m-1} - 1)2^{n-m-1} \\ge 2^{m-2} \\cdot 2^{n-m-1} = 2^{n-3}\n\\end{aligned} \n\\quad (*)\n$$\nand so we obtain $n \\le 13$.\nLet $n = 13$. Then the above argument shows $n > m$. From $(*)$, we have\n$$\n2025 \\ge (2^{m-1} - 1)2^{n-m-1} = 2^{n-2} - 2^{n-m-1} = 2^{11} - 2^{12-m},\n$$\nwhich implies $2^{12-m} \\ge 23$, and hence $2^{12-m} \\ge 32$. Therefore,\n$$\na_n = a_m + (a_n - a_m) \\ge a_m + 2^{n-m-1} = 2025 + 2^{12-m} \\ge 2057.\n$$\nThus, we have $a_n \\ge 2057$ when $n = 13$.\nFinally, we show that the sequence\n$$\n(a_1, a_2, \\dots, a_{13}) = (0, 1033, 1545, 1801, 1929, 1993, 2025, 2041, 2049, 2053, 2055, 2056, 2057)\n$$\nis a beautiful sequence of length 13. The first and second conditions are clearly satisfied. We now verify the third condition. We have\n$$\n(a_{13} - a_1, a_{13} - a_2, \\dots, a_{13} - a_{12}) = (2057, 1024, 512, 256, 128, 64, 32, 16, 8, 4, 2, 1),\n$$\nso for all integers $t$ with $1 \\le t \\le 11$, we have $a_{13} - a_t \\ge 2(a_{13} - a_{t+1})$. Therefore, for all integers $1 \\le i < j < k \\le 13$, we have\n$$\n\\begin{aligned}\na_j - \\frac{a_i + a_k}{2} &\\ge a_j - \\frac{a_i + a_{13}}{2} = \\frac{(a_{13} - a_i) - 2(a_{13} - a_j)}{2} \\\\\n&\\ge \\frac{(a_{13} - a_i) - (a_{13} - a_{j-1})}{2} = \\frac{a_{j-1} - a_i}{2} \\\\\n&\\ge 0.\n\\end{aligned}\n$$\nThis confirms the third condition.\nTherefore, the maximum value of the length of a beautiful sequence is 13 and for beautiful sequences $a_1, a_2, \\dots, a_{13}$ of length 13, the minimum value of $a_{13}$ is **2057**.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34863, "subject": "Mathematics (Multi-modal)", "question": "Let $ABC$ be an acute triangle with circumcenter $O$ and let $D$ be the foot of the perpendicular from $A$ to $BC$. Assume $\\angle AOD = 90^\\circ$ and $OD = 4\\sqrt{7}$ hold. Let $E$ and $F$ be the feet of perpendiculars from $D$ to $AB$ and $AC$ respectively, and let the lines $AO$ and $EF$ meet at $P$. If $AP = 11$, find the length of $EF$.", "options": [], "answer": "2√61", "solution": "Without loss of generality assume $AB \\ge AC$. First, since $\\angle AED = \\angle ADB = 90^\\circ$, triangles $AED$ and $ADB$ are similar, so $AE : AD = AD : AB$, that is $AD^2 = AB \\cdot AE$. Similarly $AD^2 = AC \\cdot AF$, hence $AB \\cdot AE = AC \\cdot AF$ and points $E$, $B$, $C$, $F$ are concyclic. Now,\n$$\n\\angle BAO = \\frac{1}{2}(180^\\circ - \\angle AOB) = 90^\\circ - \\angle ACB = \\angle DAC,\n$$\n\nso $\\angle BAO + \\angle AEF = \\angle DAC + \\angle ACB = 90^\\circ$ and lines $AO$ and $EF$ are perpendicular.\nLet $M$ be the midpoint of $AD$. Since $\\angle AED = \\angle AFD = 90^\\circ$, $M$ is the circumcenter of triangle $AFE$. Therefore in the similarity between triangles $ABC$ and $AFE$, the points $(A, B, C, O, D)$ correspond to $(A, F, E, M, P)$. In particular triangles $AOD$ and $AMP$ are similar, and since $\\angle AOD = 90^\\circ$, we have $\\angle AMP = 90^\\circ$. As $M$ is the midpoint of $AD$, we have $PD = PA = 11$.\nFrom $\\angle POD = 90^\\circ$ and $OD = 4\\sqrt{7}$, the Pythagorean theorem gives $OP = 3$. Also $\\angle AOD = \\angle AED = \\angle AFD = 90^\\circ$, so points $A$, $E$, $O$, $D$, $F$ are concyclic. Moreover $EF$ and $OD$ are both perpendicular to $AO$, hence parallel, making $EODF$ an isosceles trapezoid. Let $EP = x$, so that $FP = EP + OD = x + 4\\sqrt{7}$. By the power of the point $P$, we have $EP \\cdot FP = AP \\cdot OP$, i.e. $x(x + 4\\sqrt{7}) = 33$, which yields $x = \\sqrt{61} - 2\\sqrt{7}$. Hence $EF = x + (x + 4\\sqrt{7}) = 2\\sqrt{61}$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34864, "subject": "Mathematics (Multi-modal)", "question": "Decimos que un polinomio $p(x)$, con coeficientes reales, es *almeriense* si tiene la forma\n$$\np(x) = x^3 + ax^2 + bx + a\n$$\ny sus tres raíces son números reales positivos en progresión aritmética. Halla todos los polinomios almerienses tales que $p(7/4) = 0$.", "options": [], "answer": "p(x) = x^3 - \\frac{21}{4}x^2 + \\frac{73}{8}x - \\frac{21}{4} and p(x) = x^3 - \\frac{291}{56}x^2 + \\frac{14113}{1568}x - \\frac{291}{56}.", "solution": "Llamemos $\\alpha \\le \\beta \\le \\gamma$ a las raíces del polinomio. De la condición de estar en progresión aritmética tenemos que existe un número real no negativo $\\delta$ de manera que $\\alpha = \\beta - \\delta$ y $\\gamma = \\beta + \\delta$. Por su parte, utilizando las fórmulas de Cardano–Viète, resulta que\n$$\n\\alpha\\beta\\gamma = -a = \\alpha + \\beta + \\gamma,\n$$\no lo que es lo mismo\n$$\n\\beta(\\beta^2 - \\delta^2) = 3\\beta.\n$$\nComo las raíces son distintas de cero, se llega finalmente a que\n$$\n(\\beta - \\delta)(\\beta + \\delta) = \\beta^2 - \\delta^2 = 3.\n$$\nTenemos que analizar los tres casos posibles:\n\na. Si $\\beta - \\delta = 7/4$, entonces $\\beta + \\delta = 12/7$. De aquí se tiene que $\\beta = 97/56$ y $\\delta = -1/56$, lo cual contradice la hipótesis de que $\\delta \\ge 0$ (alternativamente, no es posible que $\\beta + \\delta < \\beta - \\delta$).\n\nb. Si $\\beta = 7/4$, entonces $\\delta^2 = 1/4$. Por lo tanto, las raíces del polinomio son $(3/2, 7/4, 2)$ y se obtiene que\n$$\np(x) = (x - 3/2)(x - 7/4)(x - 2) = x^3 - \\frac{21}{4}x^2 + \\frac{73}{8}x - \\frac{21}{4}.\n$$\n\nc. Si $\\beta + \\delta = 7/4$, entonces $\\beta - \\delta = 12/7$. De aquí se tiene que $\\beta = 97/56$ y $\\delta = 1/56$. Por lo tanto, las raíces del polinomio son $(12/7, 97/56, 7/4)$ y se obtiene que\n$$\np(x) = (x - 12/7)(x - 97/56)(x - 7/4) = x^3 - \\frac{291}{56}x^2 + \\frac{14113}{1568}x - \\frac{291}{56}.\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34865, "subject": "Mathematics (Multi-modal)", "question": "Consideramos la sucesión de números enteros $\\{f(n)\\}_{n=1}^{\\infty}$ definida por:\n* $f(1) = 1$.\n* Si $n$ es par, $f(n) = f(n/2)$.\n* Si $n > 1$ es impar y $f(n-1)$ es impar, entonces $f(n) = f(n-1) - 1$.\n* Si $n > 1$ es impar y $f(n-1)$ es par, entonces $f(n) = f(n-1) + 1$\na) Calcula $f(2^{2020} - 1)$.\nb) Demuestra que $\\{f(n)\\}_{n=1}^{\\infty}$ no es periódica, es decir, no existen enteros positivos $t$ y $n_0$ tales que $f(n+t) = f(n)$ para cualquier $n \\ge n_0$.", "options": [], "answer": "0", "solution": "En primer lugar, hacemos notar que la sucesión está bien definida: para cada $n \\in \\mathbb{N}$, $n > 1$, el valor de $f(n)$ está perfectamente determinado a partir de los valores de $f(r)$ con $r < n$.\nConsideramos la sucesión $g(n)$ dada por $g(n) = 0$ si la expresión binaria de $n$ tiene un número par de unos; y $g(n) = 1$ si la expresión binaria de $n$ tiene un número impar de unos. Es obvio que $g$ cumple todas las condiciones que definen a $f$, luego $f(n) = g(n)$ para todo $n \\in \\mathbb{N}$.\nDe esta forma, puesto que $2^{2020} - 1$ se escribe en binario con 2020 unos,\n$$\nf(2^{2020} - 1) = 0\n$$\nFinalmente, veamos que la sucesión no es periódica. Supongamos que lo fuera a partir de un valor $n_0$ y con periodo $t$. Tomamos el entero, $r$, tal que $2^r \\le t < 2^{r+1}$. Observamos que la expresión binaria de $2^r + t$ se obtiene sustituyendo el primer 1 (por la izquierda) de la expresión de $t$ por dos dígitos 10, con lo que $f(2^r + t) = f(t)$. Tomamos un entero $k > r + 1$ tal que $2^k > n_0$. Ahora, se tiene:\nSi $f(t) = 1$, entonces $f(2^k + t) = 0$ y por tanto, $f(2^k + t) \\ne f(2^k) = 1$.\n\nSi $f(t) = 0$, entonces $f(2^k + 2^r + t) = 1 + f(2^r + t) = 1 + f(t) = 1$ y por tanto, $f(2^k + 2^r + t) \\neq f(2^k + 2^r) = 0$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34866, "subject": "Mathematics (Multi-modal)", "question": "A cada punto del conjunto $A = \\{(x, y, z) \\in \\mathbb{Z}^3\\}$, formado por los puntos del espacio tridimensional cuyas coordenadas son enteras, le asignamos un color de entre $p$ colores posibles. Demuestra que forzosamente existe algún paralelepípedo recto (poliedro de seis caras en el que cada cara es un rectángulo) cuyos vértices pertenecen a $A$ y son todos del mismo color.", "options": [], "answer": "Detailed solution", "solution": "Ponemos $n = p \\binom{p+1}{2}$. Para cada $j \\in \\{0, 1, \\dots, n\\}$, pensamos en el conjunto $A_j^0 = \\{(i, j, 0) \\in A; 0 \\le i \\le p\\}$. Por el Principio del Palomar, podemos asegurar que, para cada $j$ hay dos puntos de $A_j^0$ del mismo color. Puede que haya más de dos o que ocurra para más de un color; no importa, de entre los $p+1$ marcamos dos que comparten color. Teniendo en cuenta que hay $p \\binom{p+1}{2} + 1$ posibles valores de $j$, de nuevo por el Palomar, existirán al menos $r = \\binom{p+1}{2} + 1$ de esos $A_j^0$ (digamos $A_{j_1}^0, \\dots, A_{j_r}^0$) en los que el color repetido en todos ellos es el mismo (color $c$). Como el número de maneras de elegir los dos lugares (valores de $i$) de cada uno de esos $A_{j_t}^0$, con $t = 1, \\dots, r$, es $\\binom{p+1}{2}$, usando de nuevo el Principio del Palomar, podemos asegurar que existen $A_{j_\\alpha}$ y $A_{j_\\beta}$, con $\\alpha, \\beta \\in \\{1, \\dots, r\\}$, en los que el color $c$ aparece dos veces en cada uno y en los mismos lugares. O sea, queda probado que en el plano $z = 0$, y con valores de la coordenada $x \\in \\{0, 1, \\dots, p\\}$ y de la coordenada $y \\in \\{0, 1, \\dots, n\\}$, existen cuatro puntos\n$$\n(i_1, j_\\alpha, 0), (i_2, j_\\alpha, 0) \\in A_{j_\\alpha} \\quad (i_1, j_\\beta, 0), (i_2, j_\\beta, 0) \\in A_{j_\\beta}\n$$\nque son vértices de un rectángulo (siempre de Lados Paralelos a los Bordes de la Cuadrícula: LPBC) y los cuatro de un mismo color.\n\nEl número, $m$, de formas de elegir, en una cuadrícula de $(p+1) \\times (n+1)$ puntos, cuatro puntos que sean vértices de un rectángulo LPBC es lo mismo que el número de maneras de elegir dos valores de la abscisa y dos valores de la ordenada, o sea $m = \\binom{p+1}{2} \\binom{n+1}{2}$.\n\nPara cada $k \\in \\{0, 1, \\dots, p \\times m\\}$ consideramos la cuadrícula $A^k = \\{(i, j, k) \\in A; 0 \\le i \\le p, 0 \\le j \\le n\\}$. Tenemos $pm + 1$ cuadrículas y en cada una de ellas hay cuatro puntos que comparten color y son vértices de un rectángulo LPBC. Por el Principio del Palomar, hay al menos $p+1$ de esas cuadrículas en las que los cuatro puntos de cada una de ellas ocupan los mismos lugares en lo referido a sus dos primeras coordenadas. Finalmente, de nuevo por el Palomar, hay (al menos) dos de esas $p+1$ cuadrículas tales que el color común de los cuatro vértices de una es el mismo que el color común de los cuatro vértices de la otra. Así tenemos ocho puntos de $A$ que comparten color y son vértices de un paralelepípedo recto.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34867, "subject": "Mathematics (Multi-modal)", "question": "Ana y Benito juegan a un juego que consta de 2020 rondas. Inicialmente, en la mesa hay 2020 cartas, numeradas de 1 a 2020, y Ana tiene una carta adicional con el número 0. En la ronda $k$-ésima, el jugador que no tiene la carta $k-1$ decide si toma la carta $k$ o si se la entrega al otro jugador. El número de cada carta indica su valor en puntos. Al terminar el juego, gana quien tiene más puntos. Determina qué jugador tiene estrategia ganadora, o si ambos jugadores pueden forzar el empate, y describe la estrategia a seguir.", "options": [], "answer": "Both players can force a tie.", "solution": "Ambos jugadores pueden forzar el empate. Dividimos el juego en 505 etapas, cada una con cuatro rondas consecutivas de la forma\n$$\n\\{k, k+1, k+2, k+3\\}.\n$$\nVamos a demostrar que cada jugador puede conseguir al menos la mitad de los puntos de cada etapa, independientemente de qué jugador tenga la carta $k-1$. No importa qué ocurra en la $k$-ésima ronda. A partir de ahí:\n\n* El jugador que recibe la carta $k$ (sin pérdida de generalidad, podemos suponer que es Ana) puede asegurarse al menos el empate en la etapa de 4 turnos. En efecto, si Benito le entrega también la carta $k+1$ y la carta $k+2$, entonces Ana ya ha recibido $3k+3$ puntos y gana la etapa de 4 turnos. Si Benito entrega a Ana la carta $k+1$ y se queda la $k+2$, Ana toma la carta $k+3$ y gana la etapa de 4 turnos. Si Benito se queda la carta $k+1$, Ana entrega la carta $k+2$ a Benito y se queda con la carta $k+3$, con lo que empata la etapa de 4 turnos. En resumen, quien recibe la carta $k$ siempre puede conseguir al menos el empate.\n\n* El jugador que no recibe la carta $k$ (sin pérdida de generalidad, Benito) se queda con la carta $k+1$. Si Ana le entrega la carta $k+2$, Benito ya tiene $2k+3$ puntos y se garantiza el empate en la etapa de 4 turnos. Si Ana se queda la carta $k+2$, Benito se queda con la carta $k+3$, con lo que acaba con $2k+4$ puntos y gana la etapa de 4 turnos. En resumen, quien no recibe la carta $k$ siempre puede conseguir al menos el empate.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34868, "subject": "Mathematics (Multi-modal)", "question": "En un triángulo acutángulo $ABC$, sea $M$ el punto medio del lado $AB$ y $P$ el pie de la altura sobre el lado $BC$. Prueba que si $AC + BC = \\sqrt{2}AB$, entonces la circunferencia circunscrita del triángulo $BMP$ es tangente al lado $AC$.", "options": [], "answer": "Detailed solution", "solution": "Sea $S$ el punto de $AC$, al mismo lado de $A$ que $C$, tal que $AS = \\sqrt{2}AB/2$. Este punto cumple que $AS^2 = \\frac{AB^2}{2} = AB \\cdot AM$, que es la potencia de $A$ con respecto a la circunferencia circunscrita de $BMP$; luego si esta circunferencia circunscrita pasa por $S$ entonces es tangente a $AB$. Vamos a demostrar que esto es cierto, probando que $\\angle MSB = \\angle MPB$. Sea $N$ el\n![](attached_image_1.png)\npunto medio de $AC$. Como $AS = \\frac{\\sqrt{2}AB}{2} = \\frac{AC+BC}{2} = AN + MN$, tenemos $NS = NM$. De ahí obtenemos $\\angle NMS = \\angle NSM$.\n\nObsérvese que los triángulos $ASB$ y $AMS$ son semejantes, porque $\\frac{AB}{AS} = \\sqrt{2} = \\frac{AS}{AM}$. De aquí se deduce que $\\angle AMS = \\angle ASB$. Entonces $\\angle ABC = \\angle AMN = \\angle AMS - \\angle NMS = \\angle ASB - \\angle NSM = \\angle MSB$.\n\nPor otro lado, por ser $M$ el punto medio de la hipotenusa del triángulo rectángulo $APB$, tenemos $MP = MB$. Esto quiere decir que $\\angle MPB = \\angle MBP = \\angle ABC = \\angle MSB$, como queríamos demostrar.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34869, "subject": "Mathematics (Multi-modal)", "question": "Sea $S$ un subconjunto finito de los números enteros. Definimos $d_2(S)$ y $d_3(S)$ de la siguiente manera:\n* $d_2(S)$ es el número de elementos $a \\in S$ para los que existen $x, y \\in \\mathbb{Z}$ tales que $x^2 - y^2 = a$.\n* $d_3(S)$ es el número de elementos $a \\in S$ para los que existen $x, y \\in \\mathbb{Z}$ tales que $x^3 - y^3 = a$.\n\na. Sea $m$ un número entero y sea $S = \\{m, m+1, \\dots, m+2019\\}$. Prueba que\n$$\nd_2(S) > \\frac{13}{7} \\cdot d_3(S).\n$$\n\nb. Sea $n$ un entero positivo y sea $S_n = \\{1, 2, \\dots, n\\}$. Prueba que existe un número $N$ de manera que si $n > N$,\n$$\nd_2(S_n) > 4 \\cdot d_3(S_n).\n$$", "options": [], "answer": "Detailed solution", "solution": "En primer lugar, observamos que un número se puede escribir como diferencia de cuadrados si y solo si no es de la forma $4k + 2$. Para ver esto, escribimos $x^2 - y^2 = \\alpha \\cdot \\beta$, donde $\\alpha$ y $\\beta$ tienen la misma paridad y simplemente ponemos $x = \\frac{\\alpha+\\beta}{2}$, $y = \\frac{\\beta-\\alpha}{2}$. Por ejemplo, si $n = 4k$ sirve $\\alpha = 2$, $\\beta = 2k$; si $n = 4k + 1$ o $n = 4k + 3$, sirve $\\alpha = 1$, $\\beta = n$. Recíprocamente, una diferencia de cuadrados nunca podrá dar resto 2 al dividir entre 4 (simplemente notando que un cuadrado es 0 o 1 módulo 4).\n\nAnalicemos ahora cómo pueden ser las diferencias de dos cubos. Observamos que la congruencia módulo 7 del cubo de un entero solo puede ser 0, 1 o 6; en consecuencia, la diferencia de dos cubos, módulo 7, solo puede ser 0, 1, 2, 5 o 6. Haciendo lo mismo módulo 9, vemos que la congruencia de un cubo módulo 9 solo puede ser 0, 1 u 8; en consecuencia, la diferencia de dos cubos módulo 9, solo puede ser 0, 1, 2, 7 u 8. Por tanto, hay a lo sumo 5 opciones módulo 7 y 5 opciones módulo 9, y, por el teorema chino de los restos, tenemos tan solo 25 opciones módulo 63.\n\nEn un intervalo de longitud 2020 (múltiplo de 4), exactamente 3/4 partes de los números serán no congruentes con 2 módulo 4 (esto es, $d_2(S) = 1515$). Por su parte, tenemos que $2020 = 32 \\cdot 63 + 4$, de manera que\n$$\nd_3(S) \\leq 32 \\cdot 25 + 4 = 804.\n$$\nPor tanto, tenemos que $d_2(S)/d_3(S) \\geq 1515/804 > 13/7$, como queríamos demostrar.\n\nPasamos ahora a resolver la segunda parte. El mismo razonamiento usado anteriormente muestra que\n$$\n\\frac{3n}{4} - \\frac{1}{2} \\leq d_2(S_n) \\leq \\frac{3n}{4} + \\frac{1}{4}.\n$$\nSerá suficiente entonces con ver que asintóticamente $d_3(n) < \\frac{3n}{16}$, esto es, que para valores de $n$ suficientemente grandes se cumple esa última desigualdad.\n\nSupongamos que $x > y > 0$. Una primera observación es que si $x^3 - y^3 \\le n$, entonces\n$$\nn \\ge x^3 - y^3 = (x - y)(x^2 + xy + y^2) \\ge x^2 + xy + y^2 > 3y^2,\n$$\ncon lo que $y < \\sqrt{n/3}$. Por su parte,\n$$\nx^3 \\le n + y^3 \\le n + (n/3)^{3/2}.\n$$\nEsto es, $x \\le \\sqrt[3]{n + (n/3)^{3/2}}$. Como el cociente $n/(n/3)^{3/2}$ tiende a 0 cuando $n$ tiende a infinito, tenemos que para cualquier $\\delta > 0$ existirá un número $N$ suficientemente grande de manera que cuando $n > N$,\n$$\nx \\le \\sqrt[3]{n + (n/3)^{3/2}} < (1 + \\delta)\\sqrt{n/3}.\n$$\nComo sabemos además que $y < x$, necesariamente el número de parejas está acotado por $(1+\\delta)^{2n/3}/2$. Por tanto, podemos obtener a lo sumo $(1+\\delta)^2n/6$ números. Observamos que no es necesario considerar el caso en el que $x, y < 0$, dado que los números obtenidos serán los mismos.\n\nEn el caso en que $y < 0 < x$, tenemos que $x^3 + (-y)^3 \\le n$, y han de ser $x, -y < n^{1/3}$, de manera que podemos obtener a lo sumo $n^{2/3}$ números. Seleccionando un $\\delta$ suficientemente pequeño (por ejemplo $\\delta = 0.01$), concluimos que\n$$\nd_3(S_n) \\le (1 + 0.01)^2 n/6 + n^{2/3} < \\frac{3n}{16}\n$$\nsi $n$ es suficientemente grande.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34870, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDetermine all functions $f: \\mathbb{R} \\rightarrow \\mathbb{R}$ such that\n$$\nf(x f(y)+2 y)=f(x y)+x f(y)+f(f(y))\n$$\nholds for all real numbers $x$ and $y$.", "options": [], "answer": "f(x) = 0 for all x, and f(x) = 2x for all x", "solution": "Solution:\n\nThe functional equation has two solutions, $f(x) \\equiv 0$ and $f(x) \\equiv 2 x$.\n\nSetting $x=0$ and $y=0$ in the functional equation yields $f(f(0))=0$. So there is at least one zero point of $f$. Let $a$ be any of them. Setting $y=a$ gives us $f(2 a)=f(a x)+f(0)$. If $a \\neq 0$, then $f$ is a constant function and we know that $f(a)=0$, so it is a zero function, which is indeed a solution.\n\nIt remains to investigate the case where $0$ is the only zero point of $f$, i.e. $f(a)=0$ if and only if $a=0$. Furthermore, taking $x=0$ in the functional equation we obtain\n$$\nf(2 y)=f(f(y))\n$$\nIf we prove an injectivity of $f$, the previous identity yields $f(y)=2 y$, what is the second solution, as we can easily check.\n\nNow we prove the injectivity of $f$. Firstly, let us examine the set of the fixed points of $f$. This set is non-empty because $0$ is one of its points. Assume that $p$ is any of the fixed points, i.e. $f(p)=p$. Setting $x=-1, y=p$ in the functional equation gives\n$$\np=f(-f(p)+2 p)=f(-p)-f(p)+f(f(p))=f(-p)\n$$\nNow we set $x=1, y=-p$ in the functional equation and we obtain using proved $f(-p)=p$\n$$\np=f(f(-p)-2 p)=f(-p)+f(-p)+f(f(-p))=3 p\n$$\nThis yields that $p=0$ is the only fixed point of $f$.\n\nSecondly, we choose $x$ so that $x f(y)+2 y=x y$, which yields $x=2 y /(y-f(y))$. This can be done for each $y \\neq 0$, since $0$ is the only fixed point of $f$. This substitution gives us\n$$\nf(f(y))=\\frac{2 y f(y)}{f(y)-y}=\\frac{2 f^{2}(y)}{f(y)-y}-2 f(y)\n$$\nIn order to finish the proof of injectivity let us assume that non-zero real numbers $a, b$ satisfy $f(a)=f(b)$. We have already proved that $f(a)=f(b) \\neq 0$. The previous identity yields\n$$\n\\frac{2 f^{2}(a)}{f(a)-a}-2 f(a)=f(f(a))=f(f(b))=\\frac{2 f^{2}(b)}{f(b)-b}-2 f(b)\n$$\nand it follows that $a=b$. The proof of the injectivity is thereby finished.\n\nWe set $x=1, y=0$ in the original equation and we obtain\n$$\nf(f(0))=f(0)+f(0)+f(f(0))\n$$\nwhich implies $f(0)=0$. This identity yields after setting $x=0$ in the original equation\n$$\nf(2 y)=f(f(y))\n$$\nLet us assume that there exists $t_{0} \\neq 0$ such that $f\\left(t_{0}\\right)=0$. For every real number $t$ we obtain by substitution $x=t / t_{0}, y=t_{0}$ in the original equation\n$$\nf\\left(2 t_{0}\\right)=f(t)+\\frac{t}{t_{0}} \\cdot f\\left(t_{0}\\right)+f(f(y))=f(t)+f\\left(f\\left(t_{0}\\right)\\right)\n$$\nThis equation with (2) gives us $f(t)=0$ for each real number $t$, which is one of the solutions, as we can easily check.\n\nNow we can assume that $f(y) \\neq 0$ for every real number $y \\neq 0$. For each real number $t$ and $y \\neq 0$ we obtain by putting $x=2 t / f(y)$ in the original equation\n$$\nf(2 t+2 y)=f\\left(\\frac{2 t y}{f(y)}\\right)+2 t+f(f(y))\n$$\nWe prove that the function $f$ is injective. If $a, b$ are numbers from $\\mathbb{R} \\backslash\\{0\\}$ such that $f(a)=f(b)(\\neq 0)$ then the substitutions $t=a, y=b$ or $t=b, y=a$ in the previous equation gives\n$$\n\\begin{aligned}\nf(2 a+2 b) & =f\\left(\\frac{2 a b}{f(b)}\\right)+2 a+f(f(b)) \\\\\nf(2 b+2 a) & =f\\left(\\frac{2 b a}{f(a)}\\right)+2 b+f(f(a))\n\\end{aligned}\n$$\nThis two equations directly yields to $a=b$, which proves the injectivity.\n\nThe injectivity of the function $f$ together with (2) lead to $f(y)=2 y$ what is the second solution, as we can check.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34871, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $n \\geq 3$ be an integer. We say that a vertex $A_{i}$ ($1 \\leq i \\leq n$) of a convex polygon $A_{1} A_{2} \\ldots A_{n}$ is Bohemian if its reflection with respect to the midpoint of the segment $A_{i-1} A_{i+1}$ (with $A_{0}=A_{n}$ and $A_{n+1}=A_{1}$) lies inside or on the boundary of the polygon $A_{1} A_{2} \\ldots A_{n}$. Determine the smallest possible number of Bohemian vertices a convex $n$-gon can have (depending on $n$).\n\n(A convex polygon $A_{1} A_{2} \\ldots A_{n}$ has $n$ vertices with all inner angles smaller than $180^{\\circ}$.)", "options": [], "answer": "n−3", "solution": "Solution:\n\nThe answer is $n-3$.\n\nLemma. If $ABCD$ is a convex quadrilateral with $\\angle BAD + \\angle CBA \\geq \\pi$ and $\\angle BAD + \\angle ADC \\geq \\pi$ then $A$ is a Bohemian vertex of $ABCD$.\n\nProof. Let $E$ be the reflection of $A$ in $ABCD$. It is clearly seen that $E$ belongs to the halfplanes containing $C$ determined by lines $AB$ and $AD$. Since $\\angle BAD + \\angle CBA \\geq \\pi$ and $\\angle BAD + \\angle EBA = \\pi$, point $E$ belongs to the (closed) halfplane containing points $A, D$ determined by the line $BC$. Analogously, using the assumption $\\angle BAD + \\angle ADC$ we infer that $E$ belongs to the closed halfplane containing points $A, B$ determined by the line $CD$.\n\n![](attached_image_1.png)\n\nTherefore $E$ lies inside or on the boundary of $ABCD$. Thus $A$ is Bohemian.\n\nConsider a convex $n$-gon $A_{1} A_{2} \\ldots A_{n}$. Choose any four vertices $A_{i}, A_{j}, A_{k}, A_{l}$ with $i < j < k < l$ as in the picture below. Consider quadrilateral $A_{i} A_{j} A_{k} A_{l}$. It is clear that one of the points $A_{i}, A_{j}, A_{k}, A_{l}$ satisfies the assumption of the lemma, let's say this point is $A_{i}$. We claim that $A_{i}$ satisfies the assumption of the lemma in quadrilateral $A_{i-1} A_{i} A_{i+1} A_{k}$. Observe that the point $X := A_{k}A_{i+1} \\cap A_{i}A_{i-1}$ lies in the triangle bounded by lines $A_{k}A_{j}, A_{j}A_{i}$ and $A_{i}A_{l}$. So\n$$\n\\angle A_{k}A_{i+1}A_{i} + \\angle A_{i+1}A_{i}A_{i-1} = \\pi + \\angle A_{k}XA_{i} \\geq \\pi\n$$\n(Note: it may happen that $X$ does not exist. It happens iff $j = i+1, l = i-1$ and $A_{k}A_{j} \\parallel A_{l}A_{i}$. In that case $\\angle A_{k}A_{i+1}A_{i} + \\angle A_{i+1}A_{i}A_{i-1} = \\pi$.)\n\nAnalogously $\\angle A_{i+1}A_{i}A_{i-1} + \\angle A_{i}A_{i-1}A_{k} \\geq \\pi$. Using the lemma we conclude that $A_{i}$ is a Bohemian vertex of quadrilateral $A_{i-1}A_{i}A_{i+1}A_{k}$. This implies that $A_{i}$ is a Bohemian vertex of $A_{1}A_{2}\\ldots A_{n}$ since the quadrilateral $A_{i-1}A_{i}A_{i+1}A_{k}$ is a subset of the $n$-gon and the reflection point is the same.\n\n![](attached_image_2.png)\n\nTherefore, amongst any four vertices of a convex $n$-gon there exists a Bohemian vertex. So, every $n$-gon has at least $n-3$ Bohemian vertices.\n\nAn example of a convex $n$-gon with exactly $n-3$ Bohemian vertices is the following: take any kite $A_{1}A_{2}A_{3}A_{4}$ with $A_{4}A_{1} = A_{1}A_{2} < A_{2}A_{3} = A_{3}A_{4}$ and place points $A_{5}, \\ldots, A_{n}$ very close to $A_{1}$. Then $A_{2}, A_{3}, A_{4}$ are not Bohemian vertices of $A_{1}A_{2}\\ldots A_{n}$.\nSolution:\n\nWe present a sketch of an alternative proof of the fact that every $n$-gon has at least $n-3$ Bohemian vertices.\n\nObservation 1. Let us place the polygon into a coordinate system in such a way that $A_{1} = [0,0]$, $A_{2} = [a, 0]$, $a > 0$ and the second coordinates of all the remaining vertices are positive. If all the remaining vertices $A_{2}, \\ldots, A_{n}$ have their first coordinates between $0$ and $a$ (see picture below), it is easy to see that the only vertices that could be non-Bohemian are $A_{1}, A_{2}$, and the point with the strictly largest second coordinate (if such a vertex exists). So, in this case, there exist at least $n-3$ Bohemian vertices.\n\n![](attached_image_3.png)\n\nObservation 2. An affine transformation does not change anything, so the statement is proved for all polygons that lie between two parallel lines that go through two adjacent vertices, i.e., whenever there are two adjacent vertices with sum of their angles at most $180^{\\circ}$.\n\nConsider now any polygon $P = A_{1}A_{2}, \\ldots, A_{n}$.\n\nObservation 3. If there are two (non-adjacent) vertices $A_{i}, A_{j}$ and two parallel lines $p_{i}, p_{j}$ with $A_{i} \\in p_{i}, A_{j} \\in p_{j}$ such that the whole polygon lies between $p_{i}$ and $p_{j}$, then the diagonal $A_{i}A_{j}$ splits $P$ into two polygons of the type considered in Observation 2. By Observations 1 and 2, these two polygons have at most 4 non-Bohemian points together, $A_{i}, A_{j}$, and two more.\n\nObservation 4. For any vertex $A_{i}$ there exist a vertex $A_{j}$ and two parallel lines $p_{i}$ and $p_{j}$ with $A_{i} \\in p_{i}, A_{j} \\in p_{j}$ such that the whole polygon lies between them. In fact, take a line $p_{i}$ such that $p_{i} \\cap P = \\{A_{i}\\}$, then $A_{j}$ is the vertex with maximal distance from $p_{i}$, if there are two such vertices, change the direction of $p_{i}$ slightly to obtain a unique $A_{j}$.\n\nLet $n = 4$. Then there exist two adjacent vertices with sum of their angles not larger than $180^{\\circ}$, so, by Observation 2, any quadrilateral has at most 3 non-Bohemian vertices.\n\nLet $n \\geq 5$. By Observations 3 and 4, there exist at most 4 non-Bohemian vertices. So, at least one vertex is Bohemian, denote it by $A_{i}$. Then, by Observations 3 and 4, all the non-Bohemian vertices are contained in the quadruple $A_{i}, A_{j}$ and some other two vertices. Since $A_{i}$ is Bohemian, there are at most three non-Bohemian vertices and the proof is complete.\nSolution:\n\nWe prove by induction that every $n$-gon has at least $n-3$ Bohemian vertices.\n\nStep 1, $n=4$. We show that every quadrilateral $ABCD$ has at least one Bohemian vertex. We consider a triangle $ABC$. Then $D$ has to be in one of the areas $P_{1}, P_{2}, P_{3}, P_{4}$ (see picture below), otherwise, $ABCD$ would not be a convex quadrilateral. If $D$ were in $P_{2}$, then $B$ would be Bohemian. If $D$ were in $P_{3}$, it would be Bohemian. If $D$ were in $P_{1}$, then $A$ would be Bohemian and similarly if $D$ were in $P_{4}$, then $C$ would be Bohemian (the last two cases are not immediate but easy to prove).\n\n![](attached_image_4.png)\n\nInduction step. Consider an $n$-gon $P = A_{1}A_{2}\\ldots A_{n}$ with $n \\geq 5$. Let $P'$ be an $(n-1)$-gon obtained from $P$ by omitting one vertex different from $A_{1}$. Let $A_{1}'$ be the reflection of $A_{1}$ in $P$ and $A_{1}''$ the reflection of $A_{1}$ in $P'$. We show the following statement\n$$\n\\text{if } A_{1} \\text{ is non-Bohemian in } P, \\text{ then it is non-Bohemian also in } P'.\n$$\nThis statement is obvious if the omitted vertex is not adjacent to $A_{1}$ (since in this case $A_{1}' = A_{1}''$ and $P' \\subset P$). So, let the omitted vertex be $A_{n}$ (the other neighbour $A_{2}$ can be done in the same way) and let us assume for contradiction that $A_{1}' \\notin P$ and $A_{1}'' \\in P'$. Let us observe that vectors $A_{n}A_{n-1}$ and $A_{1}'A_{1}''$ are equal. Let us discuss the possible position of $A_{n-1}$. If $A_{n-1} \\in Q_{3} \\cup Q_{4}$ (as in the picture below) then $A_{1}''$ lies below the line $A_{n}A_{n-1}$ while the whole polygon $P$ lies above this line, contradiction with $A_{1}'' \\in P' \\subset P$. If $A_{n-1} \\in Q_{2}$, then $A_{1}' \\in \\triangle A_{2}A_{n}A_{n-1} \\subset P$, contradiction. If $A_{n-1} \\in Q_{1}$, then the new reflection $A_{1}'' \\in Q_{2}$ and $A_{1}' \\in \\triangle A_{2}A_{n}A_{1}''$ and $\\triangle A_{2}A_{n}A_{1}'' \\subset P'$ since $A_{1}'' \\in P'$. Therefore $A_{1}' \\in P' \\subset P$, contradiction. Statement (S) is proved.\n\n![](attached_image_5.png)\n\nSince (by the induction hypothesis) there are at most 3 non-Bohemian vertices in $P'$, there are at most 4 non-Bohemian vertices in $P$ (the three and the omitted one). Since $n \\geq 5$ there is at least one Bohemian vertex in $P$. Assume now that $P'$ is obtained from $P$ by omitting a Bohemian vertex. Since there are at most 3 non-Bohemian vertices in $P'$, there are at most 3 non-Bohemian vertices in $P$ and the proof is complete.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 34872, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $ABC$ be an acute-angled triangle with $AC > BC$ and circumcircle $\\omega$. Suppose that $P$ is a point on $\\omega$ such that $AP = AC$ and that $P$ is an interior point of the shorter arc $BC$ of $\\omega$.\nLet $Q$ be the point of intersection of the lines $AP$ and $BC$. Furthermore, suppose that $R$ is a point on $\\omega$ such that $QA = QR$ and that $R$ is an interior point of the shorter arc $AC$ of $\\omega$. Finally, let $S$ be the point of intersection of the line $BC$ with the perpendicular bisector of the side $AB$. Prove that the points $P, Q, R$, and $S$ are concyclic.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nLet us denote $O$ the center of the circle $\\omega$ and $\\varphi = \\angle PAR$. Since the triangle $QAR$ is isosceles, we have $\\angle ARQ = \\varphi$ and $\\angle PQR = 2\\varphi$. The central angle theorem (applying to the chord $PR$) also yields $\\angle POR = 2\\varphi$. Thus the points $P, Q, O$ and $R$ are concyclic.\n\n![](attached_image_1.png)\n\nFurther, let us denote $\\beta = \\angle ABC$. Since $AP = AC$, we have $\\angle ACP = \\angle APC = \\beta$ and thus (by the central angle theorem) $\\angle AOP = 2\\beta$, which gives\n$$\n\\angle PAO = \\angle APO = 90^\\circ - \\beta = \\angle OPQ\n$$\nSince $\\angle ABS = \\beta$, we furthermore have $\\angle OSB = \\angle OSQ = 90^\\circ - \\beta$, which concludes $\\angle OPQ = \\angle OSB$ and therefore also the points $P, Q, O$ and $S$ are concyclic.\n\nFrom both paragraphs above it immediately follows the requested claim, i.e. the points $P, Q, R, S$ are concyclic, and the proof is done.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34873, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDetermine the smallest positive integer $n$ for which the following statement holds true: From any $n$ consecutive integers one can select a non-empty set of consecutive integers such that their sum is divisible by $2019$.", "options": [], "answer": "340", "solution": "Solution:\n\nAnswer. $n=340$.\n\nThe prime factorization of $2019$ is $3 \\cdot 673$. Let $p=673$.\n\nFor each integer $k$, color the three numbers $k p-1$, $k p$, $k p+1$ red, and the six numbers $k p+\\frac{p-5}{2}$, $k p+\\frac{p-3}{2}$, $k p+\\frac{p-1}{2}$, $k p+\\frac{p+1}{2}$, $k p+\\frac{p+3}{2}$, $k p+\\frac{p+5}{2}$ blue. Now the integers are colored periodically. In a period of length $p=673$, there are $3$ red integers, then $332$ uncolored integers, then $6$ blue integers and finally $332$ uncolored integers.\n\nThe sum of the integers in a red interval is $3 k p = 2019 \\cdot k$, and the sum of the integers in a blue interval is $6\\left(k p+\\frac{p}{2}\\right)=2019 \\cdot (2 k+1)$. So if there is a colored interval (we mean a maximal one throughout) in the given $n$ consecutive integers, one can choose it. It is easy to see, that among any $340=332+(6-1)+(3-1)+1$ consecutive integers, there must be a colored interval. Thus the smallest $n$ (that we look for) satisfies $n \\leq 340$.\n\nNow we will show that it is not possible to choose consecutive integers in the desired way from the set $A=\\{335,336, \\ldots, 673\\}$ ($|A|=339$ and thus $n \\geq 340$). Assume that there exists $\\{a, a+1, \\ldots, b\\} \\subseteq A$ such that\n$$\n2019 \\mid a+(a+1)+\\cdots+b=\\frac{(b-a+1)(a+b)}{2}\n$$\nThat means either $673 \\mid b-a+1$, or $673 \\mid a+b$. Since\n$$\n0<1 \\leq b-a+1 \\leq 339<673\n$$\n$673$ must divide $a+b$. Taking into account that\n$$\n671=335+336 \\leq a+b \\leq 673+673=2 \\cdot 673\n$$\nwe conclude that $a+b$ must be $673$ or $2 \\cdot 673$. It means either $a=335$ and $b=338$, or $a=336$ and $b=337$, or $a=b=673$. But $2019 \\nmid 335+336+337+338=1346$, $2019 \\nmid 336+337=673$ and $2019 \\nmid 673$, a contradiction.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34874, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $\\left(a_{n}\\right)_{n=1}^{\\infty}$ be a sequence of positive integers such that $a_{n}a_{j}+a_{k}$ is satisfied. Determine the least possible value of $a_{2008}$.", "options": [], "answer": "2015029", "solution": "Solution:\n\nSince $a_{2}-a_{1} \\geqslant 1$ and $a_{n+2}-a_{n+1} \\geqslant \\left(a_{n+1}-a_{n}\\right)+1$ (by applying the quadruple $(n, n+1, n+1, n+2)$ for each $n$), induction yields $a_{n+1}-a_{n} \\geqslant n$ for all $n \\geqslant 1$. Thus $a_{n+1} \\geqslant n+a_{n}$ (and $a_{1} \\geqslant 1$), hence induction again yields $a_{n} \\geqslant \\frac{1}{2}\\left(n^{2}-n+2\\right)$. Since the sequence $a_{n}=\\frac{1}{2}\\left(n^{2}-n+2\\right)$ is as required (transform $a_{i}+a_{l}>a_{j}+a_{k}$ to $i^{2}+l^{2}>j^{2}+k^{2}$ and substitute $i=d-y, l=d+y$, $j=d-x, k=d+x$, where $0 \\leqslant x1$ is a positive integer. We select the centers of $2 n-2$ squares. How many selections are there such that no two selected centers lie on a line parallel to one of the diagonals of the chessboard?", "options": [], "answer": "2^n", "solution": "Solution:\n\nBy a $k$-diagonal we mean any chessboard diagonal formed by $k$ squares, where $1 \\leqslant k \\leqslant n$. Since the number of stones is $2 n-2$, while the number of chessboard diagonals in one direction is $2 n-1$ and two of them, which are 1-diagonals, must not be occupied by stones simultaneously, we can conclude that each $k$-diagonal with $k>1$ contains exactly 1 stone and that exactly two of the 4 corner squares (1-diagonals) are occupied (and lie on the same border side). Let us call two different directions of diagonals as A and B.\n\nNow let us consider the set $P$ of all the pairs $(s, f)$, for which the stone $s$ lies on the same diagonal as the unoccupied (\"free\") square $f$. There are exactly $n^{2}-2 n+2$ free squares on the chessboard, two of them are corner, hence for each of the $n^{2}-2 n$ free squares $f$ which lie on two $k$-diagonals with $k>1$, we have $(s, f) \\in P$ for exactly two stones $s$. Thus the total number $p$ of the pairs in $P$ is given by the formula\n$$\np=2\\left(n^{2}-2 n\\right)+2=2 n^{2}-4 n+2\n$$\nwhere $+2$ stands for the two free corner squares.\n\nIf a stone $s$ lies on the intersection of a $k_{1}$-diagonal and a $k_{2}$-diagonal with $k_{1}, k_{2}>1$, then the number of pairs $(s, f) \\in P$ with this $s$ equals $k_{1}+k_{2}-2$. The same holds also for the two other stones with $\\left\\{k_{1}, k_{2}\\right\\}=\\{1, n\\}$. Obviously, for any stone we have $k_{1}+k_{2} \\geqslant n+1$ with equality iff the stone lies on a border square. Thus for each stone $s$, the number of pairs $(s, f) \\in P$ is at least $n-1$, and therefore\n$$\np \\geqslant(2 n-2)(n-1)=2 n^{2}-4 n+2\n$$\nSince we have the equality, all the stones must lie on the border squares of the chessboard.\n\nIf we put some stones (even no stone) on the first horizontal row in any way, then the border squares for the other stones are determined in exactly one way. To see this, consider separately the four corner squares and then, for each $k, 1 1$, i.e. if $k-4 = \\pm 2^{k}$ with any nonnegative integer $k$.\n\nOn the other hand, if $k-4$ has got an odd divisor $p > 1$, then we can easily find a multiple of $p$ of the form $4 n+1$ (for example, the number $p^{2}$ or simply one of the numbers $p, 3p$). For any number $4 n+1$ being a multiple of $p$, the above identity implies that $p \\mid k n+1$, hence $4 n+1$ and $k n+1$ are not relatively prime.\n\nAnswer: $k = 4 \\pm 2^{k}$, where $k = 0, 1, 2, \\ldots$", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34878, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $n \\geqslant 2$ be an integer. There are $n$ positive integers written on a blackboard. In each step we choose two of the numbers on the blackboard and replace each of them by their sum. Determine all values of $n$ for which it is always possible to get $n$ identical integers in a finite number of steps.", "options": [], "answer": "all even n (n ≥ 2)", "solution": "Solution:\n\nStarting from the $n$-tuple $(2,2,1,1, \\ldots, 1)$ with any $n \\geqslant 3$, we get always an $n$-tuple in which the number of maximal values is even. Hence no odd $n \\geqslant 3$ is as required.\n\nLet us show by induction that any even $n \\geqslant 2$ is satisfactory, which is obvious if $n=2$. For an even $n \\geqslant 4$, by the induction hypothesis, we can transform any initial $n$-tuple to $(a, a, \\ldots, a, b, b)$. If $a \\neq b$, we apply repeatedly some of the following series of steps, which always lead to an $n$-tuple of type $(\\underbrace{a, \\ldots, a}_{k}, \\underbrace{b, \\ldots, b}_{n-k})$ in which the number $k$ may differ from the initial value $k=n-2$ (remaining to be even):\n$$\n\\text{series } \\alpha:(\\underbrace{a, \\ldots, a}_{k}, \\underbrace{b, \\ldots, b}_{n-k}) \\rightarrow (\\underbrace{2a, \\ldots, 2a}_{k}, \\underbrace{b, \\ldots, b}_{n-k}),\n$$\n$$\n\\begin{array}{r}\n\\text{series } \\beta:(\\underbrace{a, \\ldots, a}_{k}, \\underbrace{b, \\ldots, b}_{n-k}) \\rightarrow (\\underbrace{a, \\ldots, a}_{k}, \\underbrace{2b, \\ldots, 2b}_{n-k}), \\\\\n\\text{series } \\gamma_{1}(\\text{if } k \\leqslant n-k):(\\underbrace{a, \\ldots, a}_{k}, \\underbrace{b, \\ldots, b}_{n-k}) \\rightarrow (\\underbrace{a+b, \\ldots, a+b}_{2k}, \\underbrace{b, \\ldots, b}_{n-2k}), \\\\\n\\text{series } \\gamma_{2}(\\text{if } k \\geqslant n-k):(\\underbrace{a, \\ldots, a}_{k}, \\underbrace{b, \\ldots, b}_{n-k}) \\rightarrow (\\underbrace{a, \\ldots, a}_{2k-n}, \\underbrace{a+b, \\ldots, a+b}_{2(n-k)}).\n\\end{array}\n$$\nTo describe our procedure, we introduce the notation $c=2^{P(c)} N(c)$ for any positive integer $c$, where $P(c) \\geqslant 0$ and $N(c)$ is odd. To each $n$-tuple $(\\underbrace{a, \\ldots, a}_{k}, \\underbrace{b, \\ldots, b}_{n-k})$ with $a \\neq b$, let us apply\n$\\triangleright$ series $\\alpha$ if $P(a)P(b)$,\n$\\triangleright$ series $\\gamma_{1}$ or $\\gamma_{2}$ if $P(a)=P(b)$ (and hence $N(a) \\neq N(b)$).\n\nUsing the series $\\alpha$ and $\\beta$, the numbers $N(a), N(b)$ do not change, while the series $\\gamma_{1}$ and $\\gamma_{2}$ cause the changes exactly one of them, namely\n$$\nN(b) \\rightarrow \\frac{N(a)+N(b)}{2^{m}}, \\quad \\text{or} \\quad N(b) \\rightarrow \\frac{N(a)+N(b)}{2^{m}} \\quad \\text{respectively}\n$$\nwhere $m=P(N(a)+N(b)) \\geqslant 1$ and hence\n$$\n\\frac{N(a)+N(b)}{2^{m}} \\leqslant \\frac{N(a)+N(b)}{2}<\\max (N(a), N(b))\n$$\n(recall that $N(a) \\neq N(b)$). Consequently, throughout our procedure, the value of $\\max (N(a), N(b))$ is a nonincreasing variable, and hence constant after a finite numbers of series. From this moment, we must still have either $N(a) \\geqslant N(b)$, or $N(a) \\leqslant N(b)$. This excludes either series $\\gamma_{1}$, or series $\\gamma_{2}$ from future applications, in which, therefore, all possible changes of the parameter $k$ are either $k \\rightarrow 2k$, or $(n-k) \\rightarrow 2(n-k)$. Since this can repeat only $r$ times, where $2^{r} \\leqslant n$, at the end we always get an $n$-tuple $(a, \\ldots, a, b, \\ldots, b)$ for which (if $a \\neq b$) the continuation of our procedure reduces only to the series $\\alpha$ and $\\beta$. Applying now either $\\alpha$, or $\\beta$ exactly $|P(a)-P(b)|$ times, we get an $n$-tuple $\\left(a', \\ldots, a', b', \\ldots, b'\\right)$ with $P\\left(a'\\right)=P\\left(b'\\right)$. Since $\\gamma_{1}, \\gamma_{2}$ are already excluded, we have $a'=b'$, which completes the induction proof.\n\n\nAnother solution (German team, adapted):\n\nWe show without induction on $n$ that any even $n=2k$ is satisfactory. At the beginning in the initial $2k$-tuple $\\left(a_{1}, \\ldots, a_{2k}\\right)$ we replace every pair ($a_{2i-1}, a_{2i}$) (for $i=1, \\ldots, k$) by the pair $\\left(a_{2i-1}+a_{2i}, a_{2i-1}+a_{2i}\\right)$. From now on, we shall have always identical numbers on the $(2i-1)$th and $(2i)$th position. Hence because of brevity we shall work with $k$-tuples $(x, y, z, \\ldots)$ instead of $2k$-tuples $(x, x, y, y, z, z, \\ldots)$. We are allowed to do the following transformations on the $k$-tuples:\n\n$\\triangleright$ choose two of the numbers $x, y$ and replace each of them by their sum (this corresponds with two steps $(\\ldots, x, x, \\ldots, y, y, \\ldots) \\rightarrow (\\ldots, x+y, x, \\ldots, x+y, y, \\ldots) \\rightarrow (\\ldots, x+y, x+y, \\ldots, x+y, x+y, \\ldots)$ performed on the $2k$-tuple);\n\n$\\triangleright$ choose one number $x$ and multiply it by $2$ (this corresponds with one step $(\\ldots, x, x, \\ldots) \\rightarrow (\\ldots, x+x, x+x, \\ldots)$);\n\n$\\triangleright$ divide all numbers by $2$ (this obviously does not affect anything; formally we could remember how many times we have performed this dividing and multiply all the numbers by the proper power of two at the end).\n\nOur aim is to obtain $k$ identical numbers. We reach it by iterating the following algorithm:\n\n1. While there are at least two odd numbers, find the minimum and the maximum odd number and replace each of them by their (even) sum.\n2. If there is one odd number left after finishing the first step, multiply it by two.\n3. Divide all numbers by $2$.\n\nClearly, after each iteration, the maximum number among all $k$ numbers either decreases or does not change. As this maximum is permanently a positive integer, after a finite number of iterations, it fixes at the value $M$ and does not change anymore. From now on, look at the number $N$ of $M$'s in the $k$-tuple.\n\nObviously $M$ is odd (otherwise it would decrease in the third step in the next iteration). If $N \\angle A C' B = \\angle A B C' = \\angle A B E' > \\angle A B E$ (because $E$ lies between $A$ and $E'$), which contradicts $\\angle A C B = \\angle E B A$.\n\nSimilarly, if $C$ does not lie on the segment $C' D$, then $C$ lies outside $\\mathcal{K}$ (on the same side of the line $A B$ as $C'$), therefore $\\angle A C B < \\angle A C' B = \\angle A B C' = \\angle A B E' < \\angle A B E$ (because $E'$ lies between $A$ and $E$), which again contradicts $\\angle A C B = \\angle E B A$.\n\n![](attached_image_2.png)\nFig. 4\nSolution:\n\nFrom the given equalities of angles it follows that triangles $A B D$ and $C E D$ are similar (Fig. 5). From that similarity we immediately get that triangles $A C D$ and $B E D$ are similar (by SAS, same angles at common vertex $D$, and proportional sides). From the equal angles $B E D$ and $A C D$ it follows that the sum of three angles $B C A$, $A C D$ and $D C E$ is equal to the sum of angles in the triangle $A B E$, so $E, C$, and $B$ are collinear.\n\n![](attached_image_3.png)\nFig. 5", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34880, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $n$ be a positive integer. Prove that if the sum of all positive divisors of $n$ is a perfect power of $2$, then the number of these divisors is also a perfect power of $2$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nSuppose that $n = p_{1}^{s_{1}} p_{2}^{s_{2}} \\ldots p_{k}^{s_{k}}$, where $p_{1}, \\ldots, p_{k}$ are distinct primes and $s_{i} \\geqslant 1$ for each $i$, and that the sum of all positive divisors of $n$, which is given by\n$$\n\\left(1 + p_{1} + p_{1}^{2} + \\cdots + p_{1}^{s_{1}}\\right)\\left(1 + p_{2} + p_{2}^{2} + \\cdots + p_{2}^{s_{2}}\\right) \\ldots \\left(1 + p_{k} + p_{k}^{2} + \\cdots + p_{k}^{s_{k}}\\right)\n$$\nis a perfect power of $2$. Then each of the factors\n$$\nf_{i} = 1 + p_{i} + p_{i}^{2} + \\cdots + p_{i}^{s_{i}}\n$$\nis also a perfect power of $2$ greater than $1$ and hence both $p_{i}$ and $s_{i}$ are odd. Suppose that $s_{i} > 1$. In this case we have\n$$\nf_{i} = \\left(1 + p_{i}\\right)\\left(1 + p_{i}^{2} + p_{i}^{4} + \\cdots + p_{i}^{s_{i}-1}\\right)\n$$\nSince $f_{i}$ has no odd divisor greater than $1$, the even integer $s_{i} - 1$ (which is supposed to be positive) must be of the form $4k + 2$ and thus we can make another factorization\n$$\nf_{i} = \\left(1 + p_{i}\\right)\\left(1 + p_{i}^{2}\\right)\\left(1 + p_{i}^{4} + p_{i}^{8} + \\cdots + p_{i}^{s_{i}-3}\\right)\n$$\nConsequently, both $1 + p_{i}$ and $1 + p_{i}^{2}$ are powers of $2$, hence $1 + p_{i} \\mid 1 + p_{i}^{2}$, which contradicts to $1 + p_{i}^{2} = \\left(1 + p_{i}\\right)\\left(p_{i} - 1\\right) + 2$ (as $1 + p_{i} \\mid 2$ is impossible). This means that $s_{i} = 1$ for each $i$ and thus the number of divisors of $n$ equals $2^{k}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34881, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAll positive divisors of a positive integer $N$ are written on a blackboard. Two players $A$ and $B$ play the following game taking alternate moves. In the first move, the player $A$ erases $N$. If the last erased number is $d$, then the next player erases either a divisor of $d$ or a multiple of $d$. The player who cannot make a move loses. Determine all numbers $N$ for which $A$ can win independently of the moves of $B$.", "options": [], "answer": "All positive integers that are perfect squares", "solution": "Solution:\n\nLet $N = p_1^{a_1} p_2^{a_2} \\ldots p_k^{a_k}$ be the prime factorization of $N$. In an arbitrary move the players write down a divisor of $N$, which we can represent as a sequence $(b_1, b_2, \\ldots, b_k)$, where $b_i \\leq a_i$ (such a sequence represents the number $p_1^{b_1} p_2^{b_2} \\ldots p_k^{b_k}$). The rules of the game say that the sequence $(b_1, b_2, \\ldots, b_k)$ can be followed by a sequence $(c_1, c_2, \\ldots, c_k)$ with either $c_i \\leq b_i$ for each $i$, or $a_i \\geq c_i \\geq b_i$ for each $i$ (obviously, if such a sequence is not on the sheet).\n\nIf one of the numbers $a_i$ is odd, then the player $B$ possesses the winning strategy. Indeed, let for simplicity $a_1$ be odd. Then the response for the move $(b_1, b_2, \\ldots, b_k)$ should be\n$$\n(a_1 - b_1, b_2, \\ldots, b_k)\n$$\nOne can easily check that this is a winning strategy for $B$: All the legal sequences split up into pairs and when $A$ writes down one sequence from a pair, player $B$ responds with the second one from the same pair ($a_1 - b_1 \\neq b_1$ because $a_1$ is odd).\n\nIf all $a_i$ are even, then the player $A$ has a winning strategy. Let the move of player $B$ be $(b_1, b_2, \\ldots, b_k)$, where one of $b_i$ is strictly less than $a_i$ ($(b_1, b_2, \\ldots, b_k) \\neq (a_1, a_2, \\ldots, a_k)$, as it was the first move of $A$). Let $j$ be the smallest index such that $b_j < a_j$. Then the response of $A$ can be\n$$\n(b_1, b_2, \\ldots, b_{j-1}, a_j - b_j - 1, b_{j+1}, \\ldots, b_k) \\quad \\text{(symmetric reflection of $b_j$)}\n$$\nAgain, all legal sequences (except for $(a_1, a_2, \\ldots, a_k)$) split up into pairs and when $B$ writes down one sequence from a pair, player $A$ can respond with the second one ($a_j - b_j - 1 \\neq b_j$ because $a_j$ is even).\n\nObviously the condition \"all $a_i$ are even\" means that \"$N$ is a square\". For $N \\in [2000, 2100]$ it is possible only for $N = 2025$. The answer for the alternative question is $2010^{1005}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34882, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nWe are given a cyclic quadrilateral $A B C D$ with a point $E$ on the diagonal $A C$ such that $A D = A E$ and $C B = C E$. Let $M$ be the center of the circumcircle $k$ of the triangle $B D E$. The circle $k$ intersects the line $A C$ in the points $E$ and $F$. Prove that the lines $F M$, $A D$, and $B C$ meet at one point.\n\n![](attached_image_1.png)", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nAssume that $A$ lies between $C$ and $F$ (the case when $C$ lies between $A$ and $F$ can be handled in the same way). Let the lines $B C$ and $A D$ meet in $P$. Using $M B = M E$, $B C = C E$ and $M E = M F$ we get $\\triangle M B C \\cong \\triangle M E C$ and therefore\n$$\n\\angle M B C = \\angle M E C = 180^{\\circ} - \\angle M E F = 180^{\\circ} - \\angle M F C,\n$$\nwhich implies that the points $M, B, C$, and $F$ are concyclic. Using $M E = M D$ and $A E = A D$ (which means $\\triangle M E A \\cong \\triangle M D A$) we get $\\angle A E M = \\angle A D M$, hence $\\angle M D P = \\angle M B P$ and the quadrilateral $M P B D$ is cyclic. This gives (using that quadrilaterals $A B C D$ and $F M B C$ are cyclic as well) that\n$$\n\\angle P M B = \\angle P D B = \\angle A D B = \\angle A C B = \\angle F C B = 180^{\\circ} - \\angle F M B\n$$\nwhich means that the points $F, M$ and $P$ are collinear, therefore the lines $A D, B C$ and $F M$ meet in a point.\nSolution:\n\nLike in the first solution, $F M B C$ is cyclic. Since the points $M$ and $A$ lie on the perpendicular bisector of the segment $D E$, we have $\\angle M D A = \\angle M E A$. Moreover, $M E = M F$, hence $\\angle M F A = \\angle M F E = \\angle M E F = \\angle M E A$. Therefore, the quadrilateral $M A D F$ is cyclic. Then the radical axes of circumcircles of cyclic quadrilaterals $F M B C$, $B C D A$ and $A D F M$ are the lines $F M, A D$ and $B C$, which meet in the radical center of the three circles. Thus, the lines $F M, A D$ and $B C$ meet in a point.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34883, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all positive integers $n$ which satisfy the following two conditions:\n(i) $n$ has at least four different positive divisors;\n(ii) for any divisors $a$ and $b$ of $n$ satisfying $1 < a < b < n$, the number $b - a$ divides $n$.", "options": [], "answer": "All such numbers are 1, all primes, all squares of primes, and 6, 8, 12.", "solution": "Solution:\nClearly primes, squares of primes and the number $1$ have the given property. We will exclude these numbers from further considerations.\n\nFirst assume that $n$ is even; thus $n = 2x$ for some integer $x$. Then $x - 2$ divides $n$. Any divisor of $n$ smaller than $x = n/2$ is at most $n/3$. Therefore, $x - 2 \\leq n/3$, yielding $x \\leq 6$. Checking all possibilities for $x$, we arrive to three new satisfactory values of $n$, namely, $6$, $8$, and $12$.\n\nNext assume that $n$ is odd. Let $n = p x$, where $p$ is the smallest divisor of $n$ greater than one. Obviously $p$ is an odd prime. Note that $p + 1 \\nmid n$ because $p + 1$ is even; thus $x \\neq p + 1$. Since $1 < p < x < n$, we have\n$$\nx - p \\mid p x\n$$\nIf $p \\nmid x$ then $x - p$ and $x$ are coprime; hence $x - p \\mid p$. Then $x - p \\leq p$. On the other hand, $x \\neq p + 1$; therefore, $x - p \\geq p$ since $p$ is the smallest nontrivial divisor. Hence $x = 2p$, contradicting the assumption that $n$ is odd.\n\nIf $p \\mid x$, then $x = p y$ for some integer $y$ greater than one. The choice of $p$ implies that $y \\geq p$. Moreover, $p y - p \\mid p^{2} y$; thus $y - 1 \\mid p y$. Since $y - 1$ and $y$ are coprime, $y \\leq p + 1$. If $y = p + 1$, then $y$ is an even divisor of $n$; this contradicts the assumption that $n$ is odd. Otherwise $y = p$ since $y \\geq p$. This contradicts the condition $y - 1 \\mid p y$.\n\nAll the solutions are primes, squares of primes and the numbers $1$, $6$, $8$ and $12$.\nSolution:\nIf $n = 1$, $n$ is prime or $n$ is a square of a prime, there are no divisors $a$ and $b$ satisfying $n > a > b > 1$, thus the condition is trivially satisfied. Otherwise, for some integers $k$ and $\\ell$, $n = \\ell \\cdot k$ with $\\ell > k > 1$. Then $\\ell - k$ also divides $n = \\ell \\cdot k$.\n\nIf $\\ell$ and $k$ are coprime, $\\ell - k$ is coprime to $\\ell$ and $k$, thus $\\ell - k = 1$. Hence $n = k(k + 1)$. Let $p$ be a prime divisor of $k$. Since $k + 1 - p$ is coprime to $p(k + 1)$, the condition implies that $k + 1 - p$ divides $k$. But\n$$\nk + 1 - p = (p - 1)\\left(\\frac{k}{p} - 1\\right) + \\frac{k}{p}\n$$\ndivides $k$ if and only if $(p - 1)(k/p - 1) = 0$; thus $k = p$ and $n = p(p + 1)$. Clearly $p = 2$ gives a solution $n = 6$. Otherwise $p + 1 = q \\cdot r$ for some prime $q$ and integer $r$ greater than $1$. Since\n$$\np - q = q r - 1 - q = (q - 1)(r - 1) - 2 + r\n$$\nis a divisor of $r$, we have $(q - 1)(r - 1) \\leq 2$. This gives only three possibilities: $q = r = 2$ or $q = 2, r = 3$ or $q = 3, r = 2$. The first one yields a solution $n = 12$, while the other two give $n = 30$, which fails to satisfy the conditions: $6 - 2 \\nmid 30$.\n\nIt remains to consider the case when $n$ cannot be written as a product of two coprime numbers greater than $1$. Then $n = p^{a}$, where $a \\geq 3$ (for $a \\leq 2$, we obtain the solutions we have already described). This implies that $p$ and $p^{2}$ are proper divisors of $n$, hence $p^{2} - p = p(p - 1)$ divides $n = p^{a}$. Since $p$ and $p - 1$ are coprime, this is only possible when $p - 1 = 1$; thus $p = 2$. However, $2^{3} - 2 = 6$ is not a divisor of $2^{a}$; hence there are no solutions for $a \\geq 4$. Only the number $8$ satisfies the condition in this case.\nSolution:\nClearly $1$, $p$, $p^{2}$ are solutions. For the other prime powers, $n = p^{k}$ is possible only for $p = 2$ and $k < 4$ ($p^{2} - p$ is even for odd $p$, $8 - 2 = 6$ does not divide $16$).\n\nNow, $n$ is not a prime power, then it has two (or more) prime factors $p, q$. Then $q - p \\mid n$. If $p, q$ are both odd, then $2 \\mid n$. (Otherwise also $2 \\mid n$.) Therefore, if $n$ is not a prime power, one of its factors is $2$.\n\nLet $p$ be the smallest divisor of $n$ larger than $2$; $1 < 2 < p < n$. From $p - 2 \\mid n$ follows $p = 3$, so $6 \\mid n$. Clearly, $n = 6$ is a solution.\n\nLet $n = 6a$, $a > 1$. Then $1 < 3 < 3a < 6a = n$, therefore\n$$\n\\begin{gathered}\n(3a - 3) = 3(a - 1) \\mid n = 6a \\\\\na - 1 \\mid 2a .\n\\end{gathered}\n$$\nSince $\\gcd(a, a - 1) = 1$, we have $a - 1 \\mid 2$, hence $a - 1 = 1$ or $a - 1 = 2$, which yields $n = 12$ or $n = 18$.\n\nIt is easy to check that $n = 12$ is a solution, and $n = 18$ is not (e.g., $7 = 9 - 2$ is not a divisor of $18$).", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34884, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nThree strictly increasing sequences\n$$\na_{1}, a_{2}, a_{3}, \\ldots, \\quad b_{1}, b_{2}, b_{3}, \\ldots, \\quad c_{1}, c_{2}, c_{3}, \\ldots\n$$\nof positive integers are given. Every positive integer belongs to exactly one of the three sequences. For every positive integer $n$, the following conditions hold:\n(i) $c_{a_{n}}=b_{n}+1$;\n(ii) $a_{n+1}>b_{n}$;\n(iii) the number $c_{n+1} c_{n}-(n+1) c_{n+1}-n c_{n}$ is even.\nFind $a_{2010}, b_{2010}$, and $c_{2010}$.", "options": [], "answer": "a2010 = 2010^2, b2010 = 2011^2 - 2, c2010 = 2099", "solution": "Solution:\nSince $\\{c_{n}\\}$ is a strictly increasing sequence of positive integers, it is clear that $c_{n} \\geq n, n \\in \\mathbb{N}$. Hence, $c_{a_{n}} \\geq a_{n}, n \\in \\mathbb{N}$. However, the given sequences do not contain equal terms, so $c_{a_{n}}>a_{n}$ and $b_{n}=c_{a_{n}}-1>a_{n}, n \\in \\mathbb{N}$. Similarly, from (ii) and (iii), $a_{n+1}>b_{n}+1=c_{a_{n}}, n \\in \\mathbb{N}$. It is also easy to see that $b_{n}1$ then $c_{1}=1$ or $b_{1}=1$. The latter case is impossible because $b_{1}>a_{1}$. Then we must have $c_{1}=1$, and either $c_{2}=2$, or $a_{1}=2$ and $c_{a_{1}}=c_{2}=a_{1}+2=4$. In both cases we obtain a contradiction by setting $n=1$ in (iv). This proves that $a_{1}=1$, and, together with (2), defines a unique sequence $\\{a_{n}\\}$ :\n$a_{n}=a_{n-1}+(2 n-1)=a_{n-2}+(2 n-3)+(2 n-1)=\\cdots=a_{1}+3+5+\\ldots+(2 n-1)=n^{2}, \\quad n \\in \\mathbb{N}$.\nHence,\n$$\n\\begin{aligned}\na_{2010} & =2010^{2} \\\\\nb_{2010} & =c_{a_{2010}}-1=a_{2010}+2 \\cdot 2010-1=2011^{2}-2 \\\\\nc_{1936} & =c_{44^{2}}=c_{a_{44}}=a_{44}+2 \\cdot 44=44^{2}+88=2024 \\\\\na_{45} & =45^{2}=2025\n\\end{aligned}\n$$\nand all the integers between $a_{45}$ and $b_{45}=c_{a_{45}}-1=a_{45}+2 \\cdot 45-1=a_{45}+89$ belong to the sequence $\\{c_{n}\\}$. Hence, these integers have the form\n$$\nc_{1936+k}=a_{45}+k, \\quad k=1,2, \\ldots, 88\n$$\nand $c_{2010}=c_{1936+74}=a_{45}+74=2099$.\nAnswer. $a_{2010}=2010^{2}, b_{2010}=2011^{2}-2, c_{2010}=2099$.\nSolution:\nDenote by $(*)$ the trivial fact $a_{n}b_{1}$, which is impossible. If $c_{1}=2$, then by (ii) we have $2=c_{1}=c_{a_{1}}=b_{1}+1$, hence $b_{1}=1$ which is also impossible. So the only way is to put $b_{2}=2$. Then by (ii) $c_{1}=c_{a_{1}}=b_{1}+1=3$.\n\n| $n$ | 1 | 2 | 3 | 4 | 5 | $\\ldots$ |\n| :---: | :--- | :--- | :--- | :--- | :--- | :--- |\n| $a_{n}$ | 1 | | | | | |\n| $b_{n}$ | 2 | | | | | |\n| $c_{n}$ | 3 | | | | | |\n\nNow, because of (iv), we have $c_{2} \\neq 4$. Also, $b_{2} \\neq 4$, because otherwise by (*) and (ii) $a_{2}1\n$$\nThe numbers $1$ and $2$ are powers of two, hence we may assume that $n \\geq 3$. Since $n$ is not a power of two, it has an odd divisor greater than one; therefore, according to our lemma, there are coprime numbers $a$ and $b$ such that\n$$\n10^{n}+1=a b\n$$\nOur task is to prove that there are numbers $t$ and $s$ such that\n$$\nm=\\left(10^{n}+1\\right) t=a b t=s(s-1)\n$$\nFirst, we show that there is a positive integer $s$ divisible by $a$ which satisfies $s \\equiv 1$ $($mod $b$ $)$. Consider the numbers $0, a, 2 a, \\ldots,(b-1) a$. These numbers give mutually different remainders modulo $b$ since $a$ and $b$ are coprime. Therefore, one of them gives remainder $1$ and we take $s$ to be this number.\n\nSimilarly we can pick a number $s'$ divisible by $b$ which satisfies $s' \\equiv 1 (\\bmod a)$. The numbers $s$ and $s'$ are positive and smaller than $10^{n}$. Therefore, $s(s-1)$ and $s'(s'-1)$ are both divisible by $a b$ and smaller than $10^{2 n}$. Moreover, $s+s' \\equiv 1 (\\bmod a b)$. The number $s+s'$ is greater than $1$ and smaller than $2 \\cdot 10^{n}$. Hence $s+s'=a b+1$. Therefore, one of the numbers $s$ and $s'$ is greater than $5 \\cdot 10^{n-1}$. Then one of the numbers $s(s-1)$ or $s'(s'-1)$ is greater than $25 \\cdot 10^{2 n-2}$, thus it has $2 n$ digits. This number has all the required properties.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34892, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nInitially, only the integer $44$ is written on a board. An integer $a$ on the board can be replaced with four pairwise different integers $a_{1}, a_{2}, a_{3}, a_{4}$ such that the arithmetic mean $\\frac{1}{4}\\left(a_{1}+a_{2}+a_{3}+a_{4}\\right)$ of the four new integers is equal to the number $a$. In a step we simultaneously replace all the integers on the board in the above way. After $30$ steps we end up with $n=4^{30}$ integers $b_{1}, b_{2}, \\ldots, b_{n}$ on the board. Prove that\n$$\n\\frac{b_{1}^{2}+b_{2}^{2}+\\cdots+b_{n}^{2}}{n} \\geqslant 2011\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nLet us first prove an auxiliary statement.\n\nLemma. If $a_{1}, a_{2}, a_{3}, a_{4}$ are four different integers such that their average $a=\\left(a_{1}+a_{2}+a_{3}+a_{4}\\right) / 4$ is also an integer, then\n$$\n\\frac{a_{1}^{2}+a_{2}^{2}+a_{3}^{2}+a_{4}^{2}}{4}-a^{2} \\geqslant \\frac{5}{2}\n$$\nProof. Note that the expression on the left hand side can be transformed as\n$$\n\\begin{aligned}\n& \\frac{a_{1}^{2}+a_{2}^{2}+a_{3}^{2}+a_{4}^{2}}{4}-a^{2} \\\\\n& =\\frac{a_{1}^{2}+a_{2}^{2}+a_{3}^{2}+a_{4}^{2}-8 a^{2}+4 a^{2}}{4} \\\\\n& =\\frac{a_{1}^{2}+a_{2}^{2}+a_{3}^{2}+a_{4}^{2}-2 a\\left(a_{1}+a_{2}+a_{3}+a_{4}\\right)+4 a^{2}}{4} \\\\\n& =\\frac{\\left(a_{1}-a\\right)^{2}+\\left(a_{2}-a\\right)^{2}+\\left(a_{3}-a\\right)^{2}+\\left(a_{4}-a\\right)^{2}}{4}\n\\end{aligned}\n$$\nNow, $a_{1}-a, a_{2}-a, a_{3}-a, a_{4}-a$ are four different integers that add up to $0$. We claim that sum of their squares is at least $10$. If none of these integers is $0$, then that sum is at least $1^{2}+(-1)^{2}+2^{2}+(-2)^{2}=10$. On the other hand, if one of the integers is $0$, then the remaining three cannot be only from the set $\\{1,-1,2,-2\\}$, because no three different elements of that set add up to $0$. Therefore, the sum of their squares is at least $3^{2}+1^{2}+(-1)^{2}=11$. This completes the proof of the lemma.\n\nReturning to the given problem, we denote by $S_{k}$ the average of squares of the numbers on the board after $k$ steps. More precisely,\n$$\nS_{k}=\\frac{b_{k, 1}^{2}+b_{k, 2}^{2}+\\cdots+b_{k, 4^{k}}^{2}}{4^{k}}\n$$\nwhere $b_{k, 1}, b_{k, 2}, \\ldots, b_{k, 4^{k}}$ are the numbers appearing on the board after the operation is performed $k$ times. Applying the above lemma to each of the numbers, adding up these inequalities, and dividing by $4^{k}$, we obtain $S_{k+1}-S_{k} \\geqslant \\frac{5}{2}$, so in particular\n$$\nS_{30} \\geqslant S_{0}+30 \\cdot \\frac{5}{2}=44^{2}+30 \\cdot \\frac{5}{2}=2011\n$$\nSolution:\n\nLet $a_{0,1}=44$ and let $a_{i, 1}, a_{i, 2}, \\ldots, a_{i, 4^{i}}$ be numbers written on the board after $i$ steps. In $(i+1)$-st step we replace the number $a_{i, k}$ with $a_{i+1,4 k-3}, a_{i+1,4 k-2}, a_{i+1,4 k-1}$ and $a_{i+1,4 k}$. We denote\n$$\nS_{i}=\\frac{\\sum_{j=1}^{4} a_{i, j}^{2}}{4^{i}}\n$$\nWe want to prove that $S_{i+1} \\geqslant S_{i}+2.5$, with equality occurring when each number $a$ is replaced by $(a-2, a-1, a+1, a+2)$. For a given number $a$, let $\\left(b_{1}, b_{2}, b_{3}, b_{4}\\right)$ be an arbitrary quadruple of integers that satisfy the conditions that $b_{1}+b_{2}+b_{3}+b_{4}=4 a$ and $b_{1}>b_{2}>b_{3}>b_{4}$. We will prove that $\\left(b_{1}, b_{2}, b_{3}, b_{4}\\right)$ majorizes $(a+2, a+1, a-1, a-2)$.\n\nFirst we conclude that $b_{1} \\geqslant a+2$, otherwise\n$$\nb_{1}+b_{2}+b_{3}+b_{4} \\leqslant(a+1)+a+(a-1)+(a-2)<4 a .\n$$\nNext, it holds that $b_{1}+b_{2} \\geqslant(a+2)+(a+1)=2 a+3$.\nOtherwise, it holds that $b_{1}+b_{2} \\leqslant 2 a+2$ and thus $b_{2} \\leqslant a, b_{3} \\leqslant a-1$ and $b_{4} \\leqslant a-2$. This implies that $b_{1}+b_{2}+b_{3}+b_{4} \\leqslant 4 a-1<4 a$, which is false.\nFinally, in order to prove that $b_{1}+b_{2}+b_{3} \\geqslant 3 a+2$, which is equivalent to $b_{4} \\leqslant a-2$, we assume otherwise: $b_{4} \\geqslant a-1$ and we arrive to contradiction in the same way as in the first case (in this case the sum is strictly bigger than $4 a$ ). Thus, we have proved that $\\left(b_{1}, b_{2}, b_{3}, b_{4}\\right) \\succ(a+2, a+1, a-1, a-2)$.\n\nThe function $f(x)=x^{2}$ is convex (because $f''(x)=2>0$ ) and by Karamata inequality it holds that:\n$$\nb_{1}^{2}+b_{2}^{2}+b_{3}^{2}+b_{4}^{2} \\geqslant(a+2)^{2}+(a+1)^{2}+(a-1)^{2}+(a-2)^{2}=4 a^{2}+10\n$$\nSimilar to first solution, we conclude that $S_{i+1} \\geqslant S_{i}+2.5$ and finally by inductive argument:\n$$\nS_{30} \\geqslant S_{0}+30 \\cdot 2.5=2011\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34893, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $n \\geqslant 3$ be an integer. John and Mary play the following game: First John labels the sides of a regular $n$-gon with the numbers $1,2, \\ldots, n$ in whatever order he wants, using each number exactly once. Then Mary divides this $n$-gon into triangles by drawing $n-3$ diagonals which do not intersect each other inside the $n$-gon. All these diagonals are labeled with number 1. Into each of the triangles the product of the numbers on its sides is written. Let $S$ be the sum of those $n-2$ products.\nDetermine the value of $S$ if Mary wants the number $S$ to be as small as possible and John wants $S$ to be as large as possible and if they both make the best possible choices.", "options": [], "answer": "(n^2 + 3n - 6)/2", "solution": "Solution:\n\nFor $n=3$ the answer is $6$. Suppose $n \\geqslant 4$. It is obvious that in each triangulation there are at least two triangles that share two sides with the polygon. We will prove that it is always best for Mary to choose a triangulation for which there is no more than two triangles of this kind.\n\nWe call a triangle in a triangulation bad if all of its sides are diagonals of the polygon. First we prove that Mary can choose an optimal triangulation that contains no bad triangles. Assume on the contrary that every optimal triangulation contains a bad triangle. For an optimal triangulation $\\mathcal{T}$ let $d(\\mathcal{T})$ be the length of the smallest side of all bad triangles in $\\mathcal{T}$. Among all optimal triangulations with minimal number of bad triangles let $\\mathcal{T}_0$ be such that $d\\left(\\mathcal{T}_0\\right)$ is minimal.\n\nConsider a bad triangle $ABC$ in $\\mathcal{T}_0$ such that $|AB|=d\\left(\\mathcal{T}_0\\right)$. Let $ABD$ be the other triangle of $\\mathcal{T}_0$ that contains $\\overline{AB}$ as one of its sides. Since $D$ lies on the arc $\\overparen{AB}$ of the circumcircle of $ABC$ that does not contain $C$ and $\\angle ACB$ is acute, we have $|AD|<|AB|$ and $|BD|<|AB|$.\n\nLet $\\mathcal{T}_1$ be the triangulation obtained from $\\mathcal{T}_0$ by replacing $\\overline{AB}$ with $\\overline{CD}$. If the sides $\\overline{AD}$ and $\\overline{BD}$ have labels $a$ and $b$ respectively, then\n$$\nS\\left(\\mathcal{T}_1\\right)-S\\left(\\mathcal{T}_0\\right)=a+b-ab-1=-(a-1)(b-1) \\leqslant 0\n$$\nBecause $\\mathcal{T}_0$ is optimal triangulation, we conclude that $\\mathcal{T}_1$ is also optimal. Since $\\mathcal{T}_0$ has the minimal number of bad triangles at least one of the segments $\\overline{AD}$ and $\\overline{BD}$ should be a diagonal, but then $d\\left(\\mathcal{T}_1\\right)$ is less than $d\\left(\\mathcal{T}_0\\right)$ what is a contradiction.\n\nNow that we know that Mary can choose an optimal triangulation that contains no bad triangles, we easily conclude that in such a triangulation there are exactly two triangles that share two sides with the polygon. If we denote by $x_1$ (respectively $x_2$) the number of triangles that have exactly one (respectively two) of their sides being the sides of the polygon, then $x_1+x_2=n-2$ and $x_1+2x_2=n$, so $x_2=2$.\n\nMary's strategy is to choose these two triangles so that the side of the polygon labeled with $1$ is contained in one of these triangles and the side labeled with $2$ is contained in the other.\n\nBy this strategy Mary makes sure that\n$$\n\\begin{aligned}\nS & \\leqslant \\max \\left\\{\\frac{n(n+1)}{2}-(1+2+n+n-1)+1 \\cdot n+2 \\cdot(n-1), \\\\\n& \\qquad \\frac{n(n+1)}{2}-(1+2+n+n-1)+1 \\cdot(n-1)+2 \\cdot n\\right\\} \\\\\n& = \\frac{n^2+3n-6}{2}\n\\end{aligned}\n$$\n\nOn the other hand, John can force Mary to achieve exactly this bound by labeling the sides of the polygon in the following order\n$$\n1, n-1, 4, n-3, 5, \\ldots, n-2, 3, n, 2\n$$\n\nThus, the answer to our problem is $S=\\frac{n^2+3n-6}{2}$, for each $n \\geqslant 3$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34894, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nIn a plane the circles $\\mathcal{K}_{1}$ and $\\mathcal{K}_{2}$ with centers $I_{1}$ and $I_{2}$, respectively, intersect in two points $A$ and $B$. Assume that $\\varangle I_{1} A I_{2}$ is obtuse. The tangent to $\\mathcal{K}_{1}$ in $A$ intersects $\\mathcal{K}_{2}$ again in $C$ and the tangent to $\\mathcal{K}_{2}$ in $A$ intersects $\\mathcal{K}_{1}$ again in $D$. Let $\\mathcal{K}_{3}$ be the circumcircle of the triangle $B C D$. Let $E$ be the midpoint of that arc $C D$ of $\\mathcal{K}_{3}$ that contains $B$. The lines $A C$ and $A D$ intersect $\\mathcal{K}_{3}$ again in $K$ and $L$, respectively. Prove that the line $A E$ is perpendicular to $K L$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\n![](attached_image_1.png)\nSince $A D$ is tangent to $\\mathcal{K}_{2}$, it follows that $\\varangle A C B=\\varangle D A B$. Similarly, $\\varangle A D B=\\varangle B A C$.\nFrom this we have $\\varangle D B C=(\\varangle A D B+\\varangle D A B)+(\\varangle B A C+\\varangle A C B)=2(\\varangle D A B+\\varangle B A C)$, hence\n$$\n\\varangle D B C=2 \\varangle D A C .\n$$\nBy $\\widehat{X Y}$ we denote the angle $\\varangle X Z Y$ where $Z$ is a point on the circle $\\mathcal{K}_{3}$ such that $X, Y, Z$ are ordered counterclockwise.\nSince $E$ is the midpoint of the arc $C D$ and the points $C, E, D, K$ are concyclic we have\n$$\n\\varangle A K E=\\frac{1}{2} \\overparen{C D}=\\frac{1}{2}\\left(180^{\\circ}-\\overparen{D C}\\right)=\\frac{1}{2}\\left(180^{\\circ}-\\varangle C B D\\right)=90^{\\circ}-\\varangle D A C\n$$\nThis means that $K E$ and $A L$ are perpendicular.\n\nAnalogously, $L E$ and $A K$ are perpendicular and $E$ is the orthocenter of the triangle $A K L$. Hence $A E$ and $K L$ are perpendicular.\nSolution:\n\nSince $A D$ is tangent to $\\mathcal{K}_{2}$, it follows that $\\varangle A C B=\\varangle D A B$. Similarly, $\\varangle A D B=\\varangle B A C$.\nFrom this we have $\\varangle D B C=(\\varangle A D B+\\varangle D A B)+(\\varangle B A C+\\varangle A C B)=2(\\varangle D A B+\\varangle B A C)$, hence\n$$\n\\varangle D E C=\\varangle D B C=2 \\varangle D A C .\n$$\nSince $|E D|=|E C|$, the point $E$ is the circumcenter of $A C D$. Therefore $|E C|=|E A|=|E D|$.\nBecause the points $C, B, D, K$ are concyclic we have $\\varangle K D B=\\varangle A C B$. From this and the first arguments of this solution we have that $|D K|=|A K|$. Since we proved $|E A|=|E D|$, we conclude that the line $K E$ is the bisector of the segment $A D$ and therefore perpendicular to it.\n\nAnalogously, $L E$ and $A K$ are perpendicular and $E$ is the orthocenter of the triangle $A K L$. Hence $A E$ and $K L$ are perpendicular.\nSolution:\n\nLet us apply inversion with respect to a circle with the center $A$ and radius $r$. Denote the image of point $X$ with $X'$. From the assumptions of the problem and well known facts about the inversion directly follows that $A D' B' C'$ is a parallelogram.\nFrom the definition of the image of the point by inversion we have\n$$\n\\left|E' C'\\right|=|E C| \\frac{r^{2}}{|A E||A C|}, \\quad\\left|E' D'\\right|=|E D| \\frac{r^{2}}{|A E||A D|}\n$$\nDividing these two identities and using that $E$ is the midpoint of the arc $\\overparen{C D}$ we obtain\n$$\n\\frac{\\left|E' C'\\right|}{\\left|E' D'\\right|}=\\frac{|E C|}{|E D|} \\cdot \\frac{|A D|}{|A C|}=\\frac{|A D|}{|A C|}=\\frac{\\left|A C'\\right|}{\\left|A D'\\right|}=\\frac{\\left|D' B'\\right|}{\\left|C' B'\\right|}\n$$\nWe consider all points $X$ with the property\n$$\n\\frac{\\left|X C'\\right|}{\\left|X D'\\right|}=\\frac{\\left|D' B'\\right|}{\\left|C' B'\\right|}\n$$\nThese points form the Apollonius circle and hence there are exactly two such points intersecting the image of $\\mathcal{K}_{3}$, each on different arc $\\overline{C' D'}$. One of these is the point $E'$. Since the point symmetric to $B'$ with respect to the line $C' D'$ also lies on the same arc $\\widehat{C' D'}$ as $E'$ and lies on the mentioned Apollonius circle we conclude that $E'$ is symmetric to $B'$.\nThis implies $\\left|E' C'\\right|=\\left|B' D'\\right|=\\left|C' A'\\right|$ (first equality holds because of the symmetry the second because $A D' B' C'$ is a parallelogram) and similarly $\\left|E' D'\\right|=\\left|D' A'\\right|$. Hence $A C' E' D'$ is a deltoid so $A E' \\perp C' D'$. This means that $A E'$ contains the orthocenter of the triangle $A C' D'$. It is well know that the orthocenter and circumcenter are isogonal conjugates (lying on the lines which are symmetric with respect to the angle bisector). On the other hand triangles $A C' D'$ and $A L' K'$ are inversely similar, so the circumcenter of $A K' L'$ lies on the same line through $A$ as the orthocenter of $A C' D'$.\nAll of this shows that $A E'$ pass through the circumcenter of $A K' L'$, so $A E$ is perpendicular to $K L$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34895, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $k$ and $m$, with $k > m$, be positive integers such that the number $k m (k^{2} - m^{2})$ is divisible by $k^{3} - m^{3}$. Prove that $(k - m)^{3} > 3 k m$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nLet $d$ be the greatest common divisor of $k$ and $m$. Write $k = d a$, $m = d b$. Then $a$ and $b$ are relatively prime. Moreover, $a > b$.\n\nThe number $k m (k^{2} - m^{2}) = d^{4} a b (a^{2} - b^{2}) = d^{4} a b (a - b)(a + b)$ is divisible by $k^{3} - m^{3} = d^{3} (a^{3} - b^{3}) = d^{3} (a - b)(a^{2} + a b + b^{2})$, so we have\n$$\na^{2} + a b + b^{2} \\mid d a b (a + b)\n$$\nHowever, since the numbers $a$ and $b$ are relatively prime, the number $a^{2} + a b + b^{2}$ is relatively prime to $a$, $b$, and $a + b$. (For example, in case of $a + b$ we note that $a^{2} + a b + b^{2} = (a + b) a + b^{2}$, and $a + b$ is relatively prime to $b$ and hence to $b^{2}$.) Thus\n$$\na^{2} + a b + b^{2} \\mid d\n$$\nThis, in particular, yields $d \\geqslant a^{2} + a b + b^{2} = (a - b)^{2} + 3 a b > 3 a b$. Therefore\n$$\n(k - m)^{3} = d^{3} (a - b)^{3} \\geqslant d^{3} = d^{2} \\cdot d > d^{2} \\cdot 3 a b = 3 k m\n$$\nSolution:\nSince $k^{2} + k m + m^{2}$ divides $k m (k + m)$ and $(k^{2} + k m + m^{2})(k + m)$, we have that it divides their difference $(k + m)(k^{2} + m^{2}) = k^{3} + k^{2} m + k m^{2} + m^{3}$. From this we conclude that $k^{2} + k m + m^{2}$ also divides $k^{3} + k^{2} m + k m^{2} + m^{3} - k(k^{2} + k m + m^{2}) = m^{3}$.\n\nAnalogously, we conclude that $k^{2} + k m + m^{2}$ divides $k^{3}$.\n\nMultiplying the second power of $k^{2} + k m + m^{2} \\mid k^{3}$ with $k^{2} + k m + m^{2} \\mid m^{3}$ we conclude $(k^{2} + k m + m^{2})^{3} \\mid k^{6} m^{3}$. Hence $k^{2} + k m + m^{2}$ also divides $k^{2} m$ and analogously $k m^{2}$.\n\nAdding all the results we have obtained we conclude that $k^{2} + k m + m^{2}$ divides $k^{3} - 3 k^{2} m + 3 k m^{2} - m^{3} = (k - m)^{3}$.\n\nBecause $k > m$, i.e. $k - m > 0$, we have $k^{2} + k m + m^{2} \\leqslant (k - m)^{3}$.\n\nSince $(k - m)^{2}$ is equivalent to $k^{2} + k m + m^{2} > 3 k m$, we obtain $3 k m < (k - m)^{3}$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34896, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all functions $f: \\mathbb{R} \\rightarrow \\mathbb{R}$ such that the equality\n$$\ny^{2} f(x)+x^{2} f(y)+x y=x y f(x+y)+x^{2}+y^{2}\n$$\nholds for all $x, y \\in \\mathbb{R}$, where $\\mathbb{R}$ is the set of real numbers.", "options": [], "answer": "f(x) = c x + 1 for all real c", "solution": "Solution:\nSubstituting $y=0$ we find that $x^{2} f(0)=x^{2}$ holds for all real numbers $x$ which implies $f(0)=1$.\nLet us introduce a new function $g: \\mathbb{R} \\rightarrow \\mathbb{R}$ given by $g(x)=f(x)-1$. Equation from the problem becomes\n$$\ny^{2} g(x)+x^{2} g(y)=x y g(x+y)\n$$\nwhile $g(0)=0$.\nDenoting $c=g(1)$ and introducing another function $h: \\mathbb{R} \\rightarrow \\mathbb{R}$ defined by $h(x)=g(x)-c x$, we obviously get $h(0)=h(1)=0$, whereas the equation that must be satisfied is now\n$$\ny^{2} h(x)+x^{2} h(y)=x y h(x+y)\n$$\nSubstituting $x=y=1$ in the last equation we get $h(2)=0$, while another substitution $x=-1, y=1$ gives $h(-1)=0$.\nLet us suppose that there exists a real number $y_{0}$ such that $h\\left(y_{0}\\right) \\neq 0$.\nPutting $x=1, y=y_{0}+1$ in (2) we get:\n$$\nh\\left(y_{0}+1\\right)=\\left(y_{0}+1\\right) h\\left(y_{0}+2\\right), \\quad \\text{ or } \\quad h\\left(y_{0}+2\\right)=\\frac{h\\left(y_{0}+1\\right)}{y_{0}+1}\n$$\nOn the other hand, substituting $x=2, y=y_{0}$ in (2) gives\n$$\n4 h\\left(y_{0}\\right)=2 y_{0} h\\left(y_{0}+2\\right), \\quad \\text{ i.e. } \\quad h\\left(y_{0}+2\\right)=\\frac{2 h\\left(y_{0}\\right)}{y_{0}}\n$$\nFinally, putting $x=1, y=y_{0}$ in (2) leads to:\n$$\nh\\left(y_{0}\\right)=y_{0} h\\left(y_{0}+1\\right), \\quad \\text{ or } \\quad h\\left(y_{0}+1\\right)=\\frac{h\\left(y_{0}\\right)}{y_{0}}\n$$\nFrom (3), (4) and (5) it follows that $y_{0}=-\\frac{1}{2}$. However, substituting $x=y=-\\frac{1}{2}$ in (2) and using $h(-1)=0$ we arrive at $h\\left(-\\frac{1}{2}\\right)=0$, which is a contradiction.\nWe conclude that $h(x)=0$ holds for all $x \\in \\mathbb{R}$ and thus $f(x)=c x+1$ is the only solution. We check that this really is the solution for every real number $c$.\nSolution:\nWe define function $h$ as in the first solution of the problem. Hence, we have $h(0)=0$, $h(1)=0$,\n$$\ny^{2} h(x)+x^{2} h(y)=x y h(x+y) \\text{.}\n$$\nSubstituting $y=x: \\quad 2 x^{2} h(x)=x^{2} h(2 x), \\forall x, \\quad$ or $h(2 x)=2 h(x)$ for all $x$.\nThus $h(2)=0$.\nSubstituting $y=-x: \\quad x^{2}(h(x)+h(-x))=x^{2} h(0)=0, \\forall x, \\quad$ which gives\n$$\nh(-x)=-h(x), \\quad \\forall x\n$$\nThus $h(-1)=0$.\nPut $y=1$ in $(*): \\quad h(x)+x^{2} h(1)=x h(x+1)$ i.e.\n$$\nh(x)=x h(x+1)\n$$\nIn (1) we change $x \\rightarrow x+1$\n$$\nh(x+1)=(x+1) h(x+2)\n$$\nPut $y=2$ in $(*): \\quad 4 h(x)+x^{2} h(2)=2 x h(x+2) \\quad$ i.e.\n$$\n2 h(x)=x h(x+2)\n$$\nNow we conclude\n$$\n\\begin{aligned}\n2(x+1) h(x) & =(3)=x(x+1) h(x+2) \\\\\n& =(2)=x h(x+1) \\\\\n& =(1)=h(x)\n\\end{aligned}\n$$\nTherefore,\n$$\n2(x+1) h(x)=h(x), \\quad \\forall x\n$$\nso $h(x)=0$ or $2(x+1)=1$ for all $x$. Obviously, $h(x)=0$ for all $x \\neq-\\frac{1}{2}$.\nMoreover, $2 h\\left(-\\frac{1}{2}\\right)=h\\left(2 \\cdot\\left(-\\frac{1}{2}\\right)\\right)=h(-1)=0$ so $h\\left(-\\frac{1}{2}\\right)=0$ holds as well.\nWe have proved that $h(x)=0$ for all $x \\in \\mathbb{R}$, hence, $g(x)=c x, f(x)=c x+1$.\nDirect check shows that $f(x)=c x+1$ is the solution of the given functional equation for all $c \\in \\mathbb{R}$.\nSolution:\nAs in the first solution we obtain $f(0)=1$ and we define $g(x)=f(x)-1$. Then $g(0)=0$ and\n$$\ng(x+y)=\\frac{y}{x} g(x)+\\frac{x}{y} g(y) \\quad \\text{ for } x, y \\neq 0\n$$\nTherefore\n$g(x+y+z)=\\frac{y+z}{x} g(x)+\\frac{x}{y+z} g(y+z)=\\frac{y+z}{x} g(x)+\\frac{x y}{z(y+z)} g(z)+\\frac{x z}{y(y+z)} g(y)$\nfor all nonzero $x, y$ and $z$ such that $z \\neq-y$. However, since the left side of the above equation is symmetric in $x$ and $z$, we obtain that\n$$\n\\frac{y+z}{x} g(x)+\\frac{x y}{z(y+z)} g(z)+\\frac{x z}{y(y+z)} g(y)=\\frac{y+x}{z} g(z)+\\frac{z y}{x(y+x)} g(x)+\\frac{x z}{y(y+x)} g(y)\n$$\nfor all nonzero $x, y$ and $z$ such that $y \\neq-x$ and $y \\neq-z$. In this equation we set $y=z=1$ and we obtain\n$$\n\\frac{2 g(x)}{x}+x g(1)=\\frac{1}{x(x+1)} g(x)+\\left(x+1+\\frac{x}{x+1}\\right) g(1) \\quad \\text{ for all } x \\neq 0,-1\n$$\ni.e.\n$$\n\\frac{2 x+1}{x(x+1)} g(x)=\\frac{2 x+1}{x+1} g(1) \\quad \\text{ for all } x \\neq 0,-1\n$$\nTherefore\n$$\ng(x)=g(1) x \\quad \\text{ for all } x \\neq 0,-1,-\\frac{1}{2}\n$$\nClearly, the above equation holds also for $x=0$. If we set $x=1$ and $y=-1$ into the equation (1), we obtain $g(-1)-g(1)$, and if we set $x=y=-\\frac{1}{2}$, then we obtain $-g(1)=g(-1)=2 g\\left(-\\frac{1}{2}\\right)$, therefore $g\\left(-\\frac{1}{2}\\right)=-\\frac{g(1)}{2}$. Hence $g(x)=g(1) x$ for all $x \\in \\mathbb{R}$. $f(1)=a$ can be arbitrary, therefore all solutions are functions $g(x)=a x$, or equivalently, $f(x)=a x+1$ for all $x \\in \\mathbb{R}$, where $a \\in \\mathbb{R}$ is arbitrary.\nSolution:\nSimilar to the first solution, we introduce the function $g(x)$ and prove that $g(0)=0$ and $g(-x)=-g(x)$. Inserting $y=1$ and $y=-1$ into the equation for $g(x)$ we get:\n$$\n\\begin{aligned}\ng(x)+x^{2} g(1) & =x g(x+1) \\\\\ng(x)+x^{2} g(-1) & =-x g(x-1)\n\\end{aligned}\n$$\nInserting $x+1$ instead of $x$ into (2) we get:\n$$\ng(x+1)+(x+1)^{2} g(-1)=-(x+1) g(x)\n$$\nFrom (2) and (3) we get represent $g(x+1)$ in two ways:\n$$\ng(x+1)=\\frac{g(x)+x^{2} g(1)}{x}=-(x+1) g(x)-(x+1)^{2} g(-1) \\quad \\text{ for } x \\neq 0\n$$\nSolving for $g(x)$ and using $g(-1)=-g(1)$ we get:\n$$\ng(x)\\left(x^{2}+x+1\\right)=g(1) x\\left(x^{2}+x+1\\right)\n$$\nSince $x^{2}+x+1>0$ for all $x \\in \\mathbb{R}$ we get $g(x)=g(1) x$ and $f(x)=c x+1$. Direct check shows that this is, indeed, the solution of the given functional equation for all $c \\in \\mathbb{R}$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34897, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $a, b, c$ be positive real numbers such that\n$$\n\\frac{a}{1+a}+\\frac{b}{1+b}+\\frac{c}{1+c}=2\n$$\nProve that\n$$\n\\frac{\\sqrt{a}+\\sqrt{b}+\\sqrt{c}}{2} \\geqslant \\frac{1}{\\sqrt{a}}+\\frac{1}{\\sqrt{b}}+\\frac{1}{\\sqrt{c}}\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\nNote that the condition of the problem is equivalent to\n$$\n\\frac{1}{1+a}+\\frac{1}{1+b}+\\frac{1}{1+c}=1\n$$\nWe want to prove that\n$$\n\\begin{gathered}\n\\frac{\\sqrt{a}+\\sqrt{b}+\\sqrt{c}}{2} \\geqslant \\frac{1}{\\sqrt{a}}+\\frac{1}{\\sqrt{b}}+\\frac{1}{\\sqrt{c}} \\\\\n\\Longleftrightarrow \\quad \\sqrt{a}+\\sqrt{b}+\\sqrt{c} \\geqslant 2\\left(\\frac{1}{\\sqrt{a}}+\\frac{1}{\\sqrt{b}}+\\frac{1}{\\sqrt{c}}\\right) \\\\\n\\Longleftrightarrow \\quad\\left(\\sqrt{a}+\\frac{1}{\\sqrt{a}}\\right)+\\left(\\sqrt{b}+\\frac{1}{\\sqrt{b}}\\right)+\\left(\\sqrt{c}+\\frac{1}{\\sqrt{c}}\\right) \\geqslant 3\\left(\\frac{1}{\\sqrt{a}}+\\frac{1}{\\sqrt{b}}+\\frac{1}{\\sqrt{c}}\\right) \\\\\n\\Longleftrightarrow \\quad \\frac{a+1}{\\sqrt{a}}+\\frac{b+1}{\\sqrt{b}}+\\frac{c+1}{\\sqrt{c}} \\geqslant 3\\left(\\frac{1}{\\sqrt{a}}+\\frac{1}{\\sqrt{b}}+\\frac{1}{\\sqrt{c}}\\right)\n\\end{gathered}\n$$\nFrom (1) we see that at most one of the numbers $a, b$, and $c$ can be strictly smaller than 1. (Otherwise, we would have $\\frac{1}{1+a}+\\frac{1}{1+b}+\\frac{1}{1+c}>\\frac{1}{2}+\\frac{1}{2}=1$.)\nWithout loss of generality we can take $a \\geqslant b \\geqslant c$.\n\nCase 1. $a \\geqslant b \\geqslant c \\geqslant 1$\nWe have\n$$\n\\sqrt{a}(\\sqrt{a b}-1) \\geqslant \\sqrt{b}(\\sqrt{a b}-1) \\quad \\Longrightarrow \\quad \\frac{a+1}{\\sqrt{a}} \\geqslant \\frac{b+1}{\\sqrt{b}}\n$$\nand also\n$$\n\\sqrt{b}(\\sqrt{b c}-1) \\geqslant \\sqrt{c}(\\sqrt{b c}-1) \\quad \\Longrightarrow \\quad \\frac{b+1}{\\sqrt{b}} \\geqslant \\frac{c+1}{\\sqrt{c}}\n$$\n\nCase 2. $a \\geqslant b \\geqslant 1$, and $c<1$\nThe same way as in Case 1, we get $\\frac{a+1}{\\sqrt{a}} \\geqslant \\frac{b+1}{\\sqrt{b}}$.\nSince $a, b$, and $c$ are positive numbers, (1) implies\n$$\n\\frac{1}{1+b} \\leqslant 1-\\frac{1}{1+c}=\\frac{c}{1+c} \\quad \\Longrightarrow \\quad b c \\geqslant 1 \\quad \\Longrightarrow \\quad b \\geqslant \\frac{1}{c}\n$$\nAnd this gives\n$$\n\\sqrt{b}\\left(\\sqrt{\\frac{b}{c}}-1\\right) \\geqslant \\sqrt{\\frac{1}{c}}\\left(\\sqrt{\\frac{b}{c}}-1\\right) \\Longrightarrow \\frac{b+1}{\\sqrt{b}} \\geqslant \\frac{c+1}{\\sqrt{c}}\n$$\nWe have showed that\n$$\na \\geqslant b \\geqslant c \\quad \\Longrightarrow \\quad \\frac{a+1}{\\sqrt{a}} \\geqslant \\frac{b+1}{\\sqrt{b}} \\geqslant \\frac{c+1}{\\sqrt{c}}\n$$\nand\n$$\na \\geqslant b \\geqslant c \\quad \\Longrightarrow \\quad \\frac{1}{1+a} \\leqslant \\frac{1}{1+b} \\leqslant \\frac{1}{1+c}\n$$\nhold.\nNow (3), (4) and the Chebyshev inequality imply\n$$\n\\begin{aligned}\n\\frac{a+1}{\\sqrt{a}}+\\frac{b+1}{\\sqrt{b}}+\\frac{c+1}{\\sqrt{c}} & =\\left(\\frac{a+1}{\\sqrt{a}}+\\frac{b+1}{\\sqrt{b}}+\\frac{c+1}{\\sqrt{c}}\\right)\\left(\\frac{1}{1+a}+\\frac{1}{1+b}+\\frac{1}{1+c}\\right) \\\\\n& \\geqslant 3\\left(\\frac{1}{\\sqrt{a}}+\\frac{1}{\\sqrt{b}}+\\frac{1}{\\sqrt{c}}\\right)\n\\end{aligned}\n$$\nwhich is exactly (2).\nSolution:\nWe make a substitution $x=\\frac{1}{a+1}, y=\\frac{1}{b+1}, z=\\frac{1}{c+1}$. The condition\n$$\n\\frac{1}{1+a}+\\frac{1}{1+b}+\\frac{1}{1+c}=1\n$$\nis then equivalent to\n$$\nx+y+z=1\n$$\nand the original variables can be expressed as $a=\\frac{1}{x}-1=\\frac{1-x}{x}=\\frac{y+z}{x}, b=\\frac{x+z}{y}$ and $c=\\frac{x+y}{z}$. The inequality\n$$\n\\frac{\\sqrt{a}+\\sqrt{b}+\\sqrt{c}}{2} \\geqslant \\frac{1}{\\sqrt{a}}+\\frac{1}{\\sqrt{b}}+\\frac{1}{\\sqrt{c}}\n$$\nis then equivalent to\n$$\n\\sqrt{\\frac{x+y}{2 z}}+\\sqrt{\\frac{y+z}{2 x}}+\\sqrt{\\frac{z+x}{2 y}} \\geqslant \\sqrt{\\frac{2 x}{y+z}}+\\sqrt{\\frac{2 y}{z+x}}+\\sqrt{\\frac{2 z}{y+x}}\n$$\nWe will prove that this inequality holds for all positive numbers $x, y$ and $z$.\nWe make a substitution $p=x+y, q=y+z, r=z+x$. Then $p, q$ and $r$ are sides of a triangle and we have to prove that\n$$\n\\sqrt{\\frac{p}{q+r-p}}+\\sqrt{\\frac{q}{r+p-q}}+\\sqrt{\\frac{r}{p+q-r}} \\geqslant \\sqrt{\\frac{p+q-r}{r}}+\\sqrt{\\frac{q+r-p}{p}}+\\sqrt{\\frac{r+p-q}{q}}\n$$\nSince $p, q$ and $r$ are sides of a triangle, we can write $p=2 R \\sin \\alpha, q=2 R \\sin \\beta$ and $r=2 R \\sin \\gamma$, where $R$ is the circumradius and $\\alpha, \\beta$ and $\\gamma$ angles of the triangle with sides $p, q$ and $r$. Then\n$$\n\\begin{gathered}\n\\sqrt{\\frac{p}{q+r-p}}=\\sqrt{\\frac{\\sin \\alpha}{\\sin \\beta+\\sin \\gamma-\\sin \\alpha}}=\\sqrt{\\frac{\\sin (\\beta+\\gamma)}{\\sin \\beta+\\sin \\gamma-\\sin (\\beta+\\gamma)}}= \\\\\n\\quad=\\sqrt{\\frac{2 \\sin \\frac{\\beta+\\gamma}{2} \\cos \\frac{\\beta+\\gamma}{2}}{2 \\sin \\frac{\\beta+\\gamma}{2}\\left(\\cos \\frac{\\beta-\\gamma}{2}-\\cos \\frac{\\beta+\\gamma}{2}\\right)}}=\\sqrt{\\frac{\\sin \\frac{\\alpha}{2}}{2 \\sin \\frac{\\beta}{2} \\sin \\frac{\\gamma}{2}}}\n\\end{gathered}\n$$\nSimilarly we compute the other terms in (1), therefore (1) is equivalent to\n$$\n\\begin{aligned}\n& \\sqrt{\\frac{\\sin \\frac{\\alpha}{2}}{2 \\sin \\frac{\\beta}{2} \\sin \\frac{\\gamma}{2}}}+\\sqrt{\\frac{\\sin \\frac{\\beta}{2}}{2 \\sin \\frac{\\gamma}{2} \\sin \\frac{\\alpha}{2}}}+\\sqrt{\\frac{\\sin \\frac{\\gamma}{2}}{2 \\sin \\frac{\\alpha}{2} \\sin \\frac{\\beta}{2}}} \\\\\n& \\quad \\geqslant \\sqrt{\\frac{2 \\sin \\frac{\\alpha}{2} \\sin \\frac{\\beta}{2}}{\\sin \\frac{\\gamma}{2}}}+\\sqrt{\\frac{2 \\sin \\frac{\\beta}{2} \\sin \\frac{\\gamma}{2}}{\\sin \\frac{\\alpha}{2}}}+\\sqrt{\\frac{2 \\sin \\frac{\\gamma}{2} \\sin \\frac{\\alpha}{2}}{\\sin \\frac{\\beta}{2}}}\n\\end{aligned}\n$$\nor equivalently, to\n$$\n\\begin{aligned}\n\\sin \\frac{\\alpha}{2}+\\sin \\frac{\\beta}{2}+\\sin \\frac{\\gamma}{2} & \\geqslant 2\\left(\\sin \\frac{\\alpha}{2} \\sin \\frac{\\beta}{2}+\\sin \\frac{\\alpha}{2} \\sin \\frac{\\gamma}{2}+\\sin \\frac{\\beta}{2} \\sin \\frac{\\gamma}{2}\\right) \\\\\n& =\\left(\\sin \\frac{\\alpha}{2}+\\sin \\frac{\\beta}{2}+\\sin \\frac{\\gamma}{2}\\right)^{2}-\\left(\\sin ^{2} \\frac{\\alpha}{2}+\\sin ^{2} \\frac{\\beta}{2}+\\sin ^{2} \\frac{\\gamma}{2}\\right)\n\\end{aligned}\n$$\nSince $\\sin x$ is concave function on $(0, \\pi)$, Jensen's inequality implies that\n$$\n\\sin \\frac{\\alpha}{2}+\\sin \\frac{\\beta}{2}+\\sin \\frac{\\gamma}{2} \\leqslant 3 \\sin \\frac{\\alpha+\\beta+\\gamma}{6}=3 \\sin \\frac{\\pi}{6}=\\frac{3}{2}\n$$\nTherefore\n$$\n\\begin{aligned}\n\\sin \\frac{\\alpha}{2}+\\sin \\frac{\\beta}{2}+\\sin \\frac{\\gamma}{2} & \\geqslant \\frac{2}{3}\\left(\\sin \\frac{\\alpha}{2}+\\sin \\frac{\\beta}{2}+\\sin \\frac{\\gamma}{2}\\right)^{2} \\\\\n& \\geqslant\\left(\\sin \\frac{\\alpha}{2}+\\sin \\frac{\\beta}{2}+\\sin \\frac{\\gamma}{2}\\right)^{2}-\\left(\\sin ^{2} \\frac{\\alpha}{2}+\\sin ^{2} \\frac{\\beta}{2}+\\sin ^{2} \\frac{\\gamma}{2}\\right)\n\\end{aligned}\n$$\nwhere at the end we used the arithmetic-quadratic mean. Therefore the inequality is proved.\nSolution:\nLet $a=2 x, b=2 y, c=2 z$. Then our condition is equivalent to :\n$$\n\\frac{x}{1+2 x}+\\frac{y}{1+2 y}+\\frac{z}{1+2 z}=1 \\quad \\Longleftrightarrow \\quad \\frac{1}{1+2 x}+\\frac{1}{1+2 y}+\\frac{1}{1+2 z}=2\n$$\nand we need to prove that\n$$\n\\sqrt{x}+\\sqrt{y}+\\sqrt{z} \\geqslant \\frac{1}{\\sqrt{x}}+\\frac{1}{\\sqrt{y}}+\\frac{1}{\\sqrt{z}}\n$$\nwhich is equivalent to :\n$$\n\\sum_{cyc} \\frac{x-1}{\\sqrt{x}} \\geqslant 0 \\Longleftrightarrow \\sum_{cyc} \\frac{x-1}{2 x+1} \\cdot \\frac{2 x+1}{\\sqrt{x}} \\geqslant 0\n$$\nSince this inequality is symmetric, we can assume $x \\geqslant y \\geqslant z$. We prove that then:\n$$\n\\frac{x-1}{2 x+1} \\geqslant \\frac{y-1}{2 y+1} \\geqslant \\frac{z-1}{2 z+1}\n$$\nand\n$$\n\\frac{2 x+1}{\\sqrt{x}} \\geqslant \\frac{2 y+1}{\\sqrt{y}} \\geqslant \\frac{2 z+1}{\\sqrt{z}}\n$$\nIn order to prove (1) we note that:\n$$\n\\frac{x-1}{2 x+1} \\geqslant \\frac{y-1}{2 y+1} \\Longleftrightarrow 3 x \\geqslant 3 y\n$$\nwhich holds. The same argument holds for $y$ and $z$.\nIn order to prove (2) we factor the inequality in the following equivalent way:\n$$\n(\\sqrt{x}-\\sqrt{y})(2 \\sqrt{x y}-1) \\geqslant 0\n$$\nBy the assumption, $\\sqrt{x}-\\sqrt{y} \\geqslant 0$ thus we need to prove that $2 \\sqrt{x y}-1 \\geqslant 0$. Assume the opposite, ie. that $4 x y<1$. Then:\n$$\n\\frac{1}{1+2 x}+\\frac{1}{1+2 y}=\\frac{2(1+x+y)}{1+2(x+y)+4 x y}=1+\\frac{1-4 x y}{(1+2 x)(1+2 y)}>1\n$$\nwhich contradicts the condition.\nWe have proven that triplets\n$$\n\\left(\\frac{x-1}{2 x+1}, \\frac{y-1}{2 y+1}, \\frac{z-1}{2 z+1}\\right) \\quad \\text{ and } \\quad\\left(\\frac{2 x+1}{\\sqrt{x}}, \\frac{2 y+1}{\\sqrt{y}}, \\frac{2 z+1}{\\sqrt{z}}\\right)\n$$\nare ordered in the same way thus by Chebyshev inequality we have:\n$$\n\\sum_{\\text{cyc}}\\left(\\frac{x-1}{2 x+1} \\cdot \\frac{2 x+1}{\\sqrt{x}}\\right) \\geqslant \\frac{1}{3} \\sum_{\\text{cyc}} \\frac{x-1}{2 x+1} \\cdot \\sum_{\\text{cyc}} \\frac{2 x+1}{\\sqrt{x}}=0\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34898, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nFor an integer $n \\geqslant 3$, let $\\mathcal{M}$ be the set $\\{(x, y) \\mid x, y \\in \\mathbb{Z}, 1 \\leqslant x \\leqslant n, 1 \\leqslant y \\leqslant n\\}$ of points in the plane. ($\\mathbb{Z}$ is the set of integers.)\nWhat is the maximum possible number of points in a subset $S \\subseteq \\mathcal{M}$ which does not contain three distinct points being the vertices of a right triangle?", "options": [], "answer": "2n - 2", "solution": "Solution:\n\nWe will prove that the maximal cardinality of $S$ is $2 n-2$.\nThe set\n$$\nS=\\{1\\} \\times\\{2, \\ldots, n\\} \\cup\\{2, \\ldots, n\\} \\times\\{1\\}\n$$\nhas cardinality $2 n-2$ and it does not contain three distinct points that form a right triangle.\n\nWe will show that any subset $S \\subset \\mathcal{M}$ which does not contain three distinct points that form a right triangle can have at most $2 n-2$ points. For such set $S$ consider its subsets:\n- $S_{x}$ consists of those points $P=(x, y)$ in $S$ that have unique $x$ coordinate, that is, there exists no $y^{\\prime} \\neq y$ such that $\\left(x, y^{\\prime}\\right) \\in S$.\n- $S_{y}$ consists of those points $P=(x, y)$ in $S$ that have unique $y$ coordinate, that is, there exists no $x^{\\prime} \\neq x$ such that $\\left(x^{\\prime}, y\\right) \\in S$.\n\nWe claim that $S=S_{x} \\cup S_{y}$. We prove this by contradiction. Assume there exists a point $P \\in S \\backslash\\left(S_{x} \\cup S_{y}\\right)$. Since $P \\notin S_{x}$, there exists $P_{x} \\neq P$ in $S$ with the same $x$ coordinate as $P$. Similarly, there exists $P_{y} \\neq P$ in $S$ with the same $y$ coordinate as $P$. Hence $P, P_{x}, P_{y} \\in S$ and $\\varangle P_{x} P P_{y}=90^{\\circ}$, a contradiction.\n\nClearly, $\\left|S_{x}\\right| \\leqslant n$, and if $\\left|S_{x}\\right|=n$, then $S=S_{x}$. The same holds for $S_{y}$. So, $|S|=n$ or $\\left|S_{x}\\right|,\\left|S_{y}\\right| \\leqslant n-1$ and $|S| \\leqslant\\left|S_{x}\\right|+\\left|S_{y}\\right| \\leqslant 2 n-2$. It follows that the cardinality of $S$ is at $\\operatorname{most} \\max (n, 2 n-2)=2 n-2$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34899, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $n \\geqslant 3$ be an integer. At a MEMO-like competition, there are $3n$ participants, there are $n$ languages spoken, and each participant speaks exactly three different languages.\nProve that at least $\\left\\lceil\\frac{2n}{9}\\right\\rceil$ of the spoken languages can be chosen in such a way that no participant speaks more than two of the chosen languages.\n\n($\\lceil x\\rceil$ is the smallest integer which is greater than or equal to $x$.)", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nConsider the classifications of the set of $n$ available languages into easy, medium, and hard languages. There are $3^{n}$ possible classifications in total and we denote by $S$ the set of all possible classifications. For each classification $s \\in S$, let $A(s)$ be the number of easy languages and let $B(s)$ be the number of students who speak 3 easy languages.\n\nIf we add up quantities $A(s)$ over all possible classifications $s \\in S$, the resulting sum will be $\\sum_{s \\in S} A(s) = n 3^{n-1}$. In order to verify that, we realize that the result should be the same for medium and hard languages too, but all three of these sums add up to\n$$\n3 \\sum_{s \\in S} A(s) = \\text{number of classifications} \\times \\text{number of languages} = 3^{n} \\cdot n.\n$$\nOn the other hand, we use double counting to compute the sum of quantities $B(s)$ over all possible classifications $s \\in S$.\nFor each student there are $3^{n-3}$ classifications for which he speaks 3 easy languages, as we only have the choice to classify each of the $n-3$ languages that the student does not speak. In two ways, we count the cardinality of the set\n$$\n\\{(X, s) : \\text{for a classification } s \\text{ student } X \\text{ speaks } 3 \\text{ easy languages}\\}\n$$\nto get the identity\n$$\n\\sum_{s \\in S} B(s) = 3n \\cdot 3^{n-3} = n 3^{n-2}\n$$\nWe claim that there exists a classification $s \\in S$ such that $A(s) - B(s) \\geqslant \\frac{2n}{9}$. If we assume on the contrary that $A(s) - B(s) < \\frac{2n}{9}$ for all classifications $s \\in S$, then summing over all $3^{n}$ of them would give\n$$\nn 3^{n-1} - n 3^{n-2} = \\sum_{s \\in S} A(s) - \\sum_{s \\in S} B(s) < 3^{n} \\cdot \\frac{2n}{9}\n$$\ni.e. $2n 3^{n-2} < 2n 3^{n-2}$, which is a contradiction.\n\nLet us consider any classification $s \\in S$ of languages satisfying $A(s) - B(s) \\geqslant \\frac{2n}{9}$. We can first choose all $A(s)$ easy languages. Then we find all $B(s)$ students who can speak 3 of these languages, and for each of them we remove one of the languages the student speaks. This leaves us with a choice of at least $\\frac{2n}{9}$ languages.\nSolution:\n\nIn this proof we will use probabilistic method. Let $p \\in [0,1]$. For each language, suppose we choose it with probability $p$ and we make these decisions independently. Let $A$ be the number of chosen languages (i.e. the number of $1$'s in $\\omega$) and $B$ the number of students whose all three languages are among chosen ones. Let's calculate the expectations of these random variables.\n$$\n\\begin{aligned}\n\\mathbb{E} A & = \\mathbb{E}\\left[\\sum_{\\text{language } l} \\mathbf{1}_{\\text{we have chosen the language } l}\\right] = \\sum_{\\text{language } l} \\mathbb{E}\\left[\\mathbf{1}_{\\text{we have chosen the language } l}\\right] \\\\\n& = \\sum_{\\text{language } l} \\mathbb{P}(\\text{we have chosen the language } l) = n p \\\\\n\\mathbb{E} B & = \\mathbb{E}\\left[\\sum_{\\text{student } s} \\mathbf{1}_{\\text{student's } s \\text{ languages are all chosen}}\\right] = \\sum_{\\text{student } s} \\mathbb{E}\\left[\\mathbf{1}_{\\text{student's } s \\text{ languages are all chosen}}\\right] \\\\\n& = \\sum_{\\text{student } s} \\mathbb{P}(\\text{student's } s \\text{ languages are all chosen}) = 3n p^{3}\n\\end{aligned}\n$$\nWe will use the following obvious (and easily proved) inequality. For arbitrary random variable $X$ we have\n$$\n\\mathbb{P}(X \\geqslant \\mathbb{E} X) > 0\n$$\nFor $X = A - B$ we get\n$$\n\\mathbb{P}\\left(A - B \\geqslant n p - 3n p^{3}\\right) > 0\n$$\nIn this way we have proved that there is a choosing of languages such that $A - B \\geqslant n p - 3n p^{3}$. For this choosing, for each student that speaks three chosen languages, remove one of them. In the end we are left with at least $A - B$ (and thus $n p - 3n p^{3}$) languages that do the job. Taking $p = \\frac{1}{3}$ we get what we need, i.e. we can choose at least $\\left\\lceil\\frac{2n}{9}\\right\\rceil$ such that no student speaks more than two of them.\nSolution:\n\nWe choose $\\left\\lceil\\frac{n}{3}\\right\\rceil$ languages uniformly and randomly. Similarly to the previous probabilistic solution we show that with positive probability the number of students that speak three of the chosen languages is less or equal to $\\left\\lfloor\\frac{n}{9}\\right\\rfloor$. Again, use the same trick of removing some of the languages to obtain at least $\\left\\lceil\\frac{2n}{9}\\right\\rceil$ of them such that no student speaks three of them.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34900, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $A B C D E$ be a convex pentagon with all five sides equal in length. The diagonals $A D$ and $E C$ meet in $S$ with $\\varangle A S E=60^{\\circ}$. Prove that $A B C D E$ has a pair of parallel sides.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nLet $F$ be such that $D E F$ is an equilateral triangle and the points $B$ and $F$ lay in the opposite half-planes determined by $D E$. Denote $\\varangle D A E=\\alpha$. Then $\\varangle A D E=\\alpha$.\n![](attached_image_1.png)\nSince $\\varangle E S D=120^{\\circ}$, we have $\\varangle D E C=60^{\\circ}-\\alpha$. Then $\\varangle S C D=\\varangle E C D$ and\n$$\n\\varangle A D C=\\varangle S D C=180^{\\circ}-\\varangle S C D-\\varangle D S C=60^{\\circ}+\\alpha .\n$$\nObviously $\\varangle A D F=60^{\\circ}+\\alpha$ and because $|F D|=|C D|$ we conclude that $A D F \\simeq A D C$. Similarly, $\\varangle A E C=\\varangle F E C=120^{\\circ}-\\alpha$, so $A C E \\cong F C E$.\nFrom these two pairs of equal triangles we conclude $|A F|=|A C|=|F C|$, so both triangles $D E F$ and $A C F$ are equilateral.\nIf $E$ lies on the line $A F$ or $D$ lies on the line $F C$ then $|A C|=2|E D|=|A B|+|B C|$ and $B$ lies on $A C$, which is not possible. Therefore exactly one of the points $D$ and $E$ lays inside the triangle $A C F$. Without loss of generality, let it be the point $E$.\nThe triangles $A E F$ and $A B C$ have their corresponding sides equal therefore $A E F \\cong A B C$ and this yields $60^{\\circ}=\\varangle F A C=\\varangle E A B$, so $|E B|=|A B|$. Hence $B C D E$ is a rhombus, i.e., $E D \\| B C$.\n\n\nSolution 2:\n\nLet $\\alpha$ be as in the first solution. In the same way we prove $\\varangle A E C=120^{\\circ}-\\alpha$ and $\\varangle C E D=60^{\\circ}-\\alpha$. Let $F$ be the symmetric image of $A$ with respect to $C E$. We get $\\varangle D E F=120^{\\circ}-\\alpha-\\left(60^{\\circ}-\\alpha\\right)=60^{\\circ}$. Since $|D E|=|A E|=|E F|$, triangle $D E F$ is equilateral.\nBecause $|A B|=|B C|=|D F|=|C D|$ the triangles $A B C$ and $C D F$ are congruent.\nIf the point $D$ is outside the triangle $A C F$ then this implies that $B$ and $D$ are symmetric with respect to $C E$, so $|B E|=|D E|$. Hence $B C D E$ is a rhombus and $D E \\| B C$.\nIf the point $D$ is inside the triangle $A C F$ then the point $E$ is outside that triangle and we see in the similar way that $F$ and $C$ are symmetric with respect to $A D$ and also $B$ and $E$ are symmetric with respect to $A D$. Hence $|B D|=|D E|$ and $A B D E$ is a rhombus, so $D E \\| A B$.\n\n\nSolution 3:\n\nDefine the point $B^{\\prime}$ such that $B^{\\prime} C D E$ is rhombus.\nIf the pentagon $A B^{\\prime} C D E$ is convex, denote $\\varangle E A D=\\varangle E D A=\\alpha$. Similarly to other solution we have $\\varangle A E B^{\\prime}=\\varangle A E D-\\varangle B^{\\prime} E C-\\varangle C E D=180^{\\circ}-2 \\alpha-\\left(60^{\\circ}-\\alpha\\right)-\\left(60^{\\circ}-\\alpha\\right)=$ $60^{\\circ}$.\nSince $|A E|=\\left|B^{\\prime} E\\right|$, we conclude that $A B^{\\prime} E$ is equilateral.\nPoints $B$ and $B^{\\prime}$ are on the same side of the line $A C$, so we conclude that $B=B^{\\prime}$, so $D E \\| A B$.\nIf the pentagon $A B^{\\prime} C D E$ is not convex, denote the intersection of $B^{\\prime} E$ and $A D$ by $F$ and $\\varangle D E C=\\varangle D C E=\\beta$. Similarly to other solutions we have $A E B^{\\prime}=180^{\\circ}-\\varangle E A F-$ $\\varangle E F A=180^{\\circ}-\\varangle E D A-(\\varangle F E C+\\varangle F S E)=180^{\\circ}-\\left(60^{\\circ}-\\beta\\right)-\\left(\\beta+60^{\\circ}\\right)=60^{\\circ}$.\nSince $|A E|=\\left|B^{\\prime} E\\right|$, we conclude that $A B^{\\prime} E$ is equilateral.\nLet $B^{\\prime \\prime}$ be the symmetric image of $B^{\\prime}$ with respect to $A C$. Then $A B^{\\prime \\prime} C B^{\\prime}$ is a rhombus and $B=B^{\\prime \\prime}$, so we conclude $B^{\\prime} C \\| A B^{\\prime \\prime}$ and hence $D E \\| A B$.\n\n\nSolution 4:\n\nDenote $\\varangle D E C=\\varangle D C E=\\alpha$ and suppose that all five sides of the pentagon have length $a$. As in the previous solutions we see that $\\varangle S E A=60^{\\circ}+\\alpha, \\varangle S D C=120^{\\circ}-\\alpha$. Applying the law of sines to the triangles $A S E$ and $C S D$ implies\n$$\n|S A|=\\frac{a \\sin \\left(60^{\\circ}+\\alpha\\right)}{\\sin 60^{\\circ}}=\\frac{a \\sin \\left(120^{\\circ}-\\alpha\\right)}{\\sin 60^{\\circ}}=|S C|\n$$\nThe triangle $A S C$ is isosceles and $\\varangle A C S=\\varangle C A S=30^{\\circ}$ and we have $|A C|=\\sqrt{3} \\cdot|A S|$.\nThe law of cosines applied to the triangle $A B C$ gives\n$$\na^{2}=a^{2}+3|A S|^{2}-2 \\sqrt{3} a \\cdot|A S| \\cdot \\cos (\\varangle A C B)\n$$\nfrom where we get $\\cos (\\varangle A C B)=\\frac{3|A S|}{2 \\sqrt{3} a}=\\sin \\left(60^{\\circ}+\\alpha\\right)=\\cos \\left(30^{\\circ}-\\alpha\\right)$.\nSince $0<\\varangle A C B<90^{\\circ}$ we have two possibilities.\nThe first possibility is that $\\varangle A C B=30^{\\circ}-\\alpha$, so $\\varangle B C E=\\alpha=\\varangle C E D$ and hence $B C \\| E D$.\nThe second possibility is that $\\varangle A C B=\\alpha-30^{\\circ}$, so $\\varangle B A D=60^{\\circ}-\\alpha=\\varangle A D E$ and hence $A B \\| E D$.\n\n\nSolution 5:\n\nWe construct a point $Q$ on the line $S E$ such that $A S Q$ is the equilateral triangle. As in the previous solutions it is easily seen that $\\varangle E A Q=\\varangle D C S$ and since $\\varangle A Q S=60^{\\circ}=$ $\\varangle C S D$ and $|A E|=|D C|$ we have that the triangle $A E Q$ and $S C D$ are congruent, so $|A S|=|A Q|=|C S|$.\nThis shows that the quadrilateral $A B C S$ is a deltoid, so $\\varangle A S B=\\varangle B S C=60^{\\circ}$ and the point $S$ is the Fermat's point of the triangle $B D E$.\nLet point $X$ be such that $B E X$ is equilateral and that $S$ and $X$ lie on different sides of the line $E B$. It is well know that the property of the Fermat's point $S$ is that $X, S$ and $D$ are collinear. Also, since $|B X|=|E X|, X$ lies on the bisector of the segment $\\overline{B E}$.\nWe have two cases. In the first case, the segment bisector of $\\overline{B E}$ coincides with the line $D S$, so $A B D E$ is a rhombus and $A B \\| E D$.\nIn the second case, the segment bisector of $\\overline{B E}$ intersects the line $A S$ at exactly one point. From the remarks we have given, that point must be $X$ and also $A$, so $A=X$. Then the triangle $B E A$ is equilateral, so $A B C D$ is a rhombus and $B C \\| E D$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34901, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $ABC$ be an acute triangle. Denote by $B_{0}$ and $C_{0}$ the feet of the altitudes from vertices $B$ and $C$, respectively. Let $X$ be a point inside the triangle $ABC$ such that the line $BX$ is tangent to the circumcircle of the triangle $AXC_{0}$ and the line $CX$ is tangent to the circumcircle of the triangle $AXB_{0}$. Show that the line $AX$ is perpendicular to $BC$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\n![](attached_image_1.png)\nLet $A_{0}$ be the foot of the altitude from $A$. The quadrilateral $ACA_{0}C_{0}$ is cyclic because $\\varangle AA_{0}C=\\varangle AC_{0}C=90^{\\circ}$. By the power of the point $B$ with respect to that circle we have $|BA||BC_{0}|=|BA_{0}||BC|$.\nThe power of the point $B$ with respect to the circumcircle of $AXC_{0}$ gives $|BX|^{2}=|BA||BC_{0}|$.\nSimilarly, we have $|CX|^{2}=|CA||CB_{0}|=|CA_{0}||BC|$.\nSumming these two results we have\n$$\n|BX|^{2}+|CX|^{2}=|BA_{0}||BC|+|CA_{0}||BC|=|BC|^{2}\n$$\nThe converse of Pythagoras' theorem implies $\\varangle BXC=90^{\\circ}$.\nMoreover, from $|BX|^{2}=|BA_{0}||BC|$, i.e. $|BX|:|BC|=|BA_{0}|:|BX|$ we have that the triangles $BXA_{0}$ and $BCX$ are similar. It follows that\n$$\n\\varangle BA_{0}X=\\varangle BXC=90^{\\circ}=\\varangle BA_{0}A,\n$$\nso $A_{0}, X$ and $A$ are collinear, so $AX$ and $BC$ are perpendicular.\n\n\nLet $H$ be the orthocenter of the triangle $ABC$. Because $BX$ is tangent to the circumcircle of $AXC_{0}$ we have $\\varangle BXC_{0}=\\varangle BAX$ (the tangent chord angle theorem). Hence the triangles $BAX$ and $BXC_{0}$ are similar.\nAnalogously, the triangle $CAX$ and $CXB_{0}$ are similar.\n![](attached_image_2.png)\nObserve that the quadrilateral $AC_{0}HB_{0}$ is cyclic because $\\varangle AC_{0}H=\\varangle AB_{0}H=90^{\\circ}$. The power of the point $B$ with respect to circumcircles of $AC_{0}X$ and $AC_{0}HB_{0}$ gives\n$$\n|BB_{0}||BH|=|BA||BC_{0}|=|BX|^{2}\n$$\nFrom this we conclude that the triangles $BXH$ and $BB_{0}X$ are similar and $\\varangle BXH=\\varangle XB_{0}H=\\varangle XB_{0}C-90^{\\circ}$. Since $CAX$ and $CXB_{0}$ are similar we have $\\varangle XB_{0}C=\\varangle AXC$. We obtained $\\varangle BXH=\\varangle AXC-90^{\\circ}$ and analogously $\\varangle CXH=\\varangle AXB-90^{\\circ}$.\nSumming up these results we get\n$$\n\\varangle BXC=\\varangle BXH+\\varangle CXH=\\varangle AXC+\\varangle AXB-180^{\\circ}=180^{\\circ}-\\varangle BXC\n$$\nand so $\\varangle BXC=90^{\\circ}$.\nHence, the points $B, C_{0}, X, B_{0}, C$ all lie on the same circle and we have\n$$\n\\varangle AXB=\\varangle BC_{0}X=180^{\\circ}-\\varangle XB_{0}B=180^{\\circ}-\\varangle BXH\n$$\nwhich means that $A, X$ and $H$ are collinear. So $AX$ and $BC$ are perpendicular.\nSolution:\n\nBy power of the point we have\n$$\n|CX|^{2}=|CA||CB_{0}|, \\quad |BX|^{2}=|BA||BC_{0}|\n$$\nso the point $X$ is the intersection of the circle with center $C$ and radius $\\sqrt{|CA||CB_{0}|}$ and the circle with center $B$ and radius $\\sqrt{|BA||BC_{0}|}$. There are two such points, but only one is in the interior of the triangle $ABC$, so we conclude that the point $X$ is unique.\nOn the other hand we will prove that the point $Y$ which is the intersection of the circle with diameter $\\overline{BC}$ and the altitude from the point $A$ has the same properties as the point $X$, from which we conclude that $X$ and $Y$ are the same point and hence $X$ lies on the line perpendicular to $BC$.\nSince $\\varangle BB_{0}C=90^{\\circ}$, the quadrilateral $BCB_{0}Y$ is cyclic and hence $\\varangle CBB_{0}=\\varangle CYB_{0}$. On the other hand $\\varangle CAY=90^{\\circ}-\\varangle ACB=\\varangle CBB_{0}=\\varangle CYB_{0}$, so by the tangent-chord theorem the line $CY$ is tangent to the circumcircle of the triangle $AYB_{0}$. Analogously, the line $BY$ is tangent to the circumcircle of the triangle $AYC_{0}$. Hence, $X=Y$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34902, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $A$ and $B$ be disjoint nonempty sets with $A \\cup B=\\{1,2,3, \\ldots, 10\\}$. Show that there exist elements $a \\in A$ and $b \\in B$ such that the number $a^{3}+a b^{2}+b^{3}$ is divisible by 11.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nFor each $n=0,1,2, \\ldots$ the numbers $2^{n}, 2^{n+1}, 2^{n+2}, \\ldots, 2^{n+9}$ have different remainders when divided by 11.\nSuppose that for every $b \\in B$ there is no $a \\in A$ such that $a \\equiv 2 b\\ (\\bmod\\ 11)$.\nFrom the above statement there exists $n \\in\\{0,1, \\ldots, 9\\}$ such that $b \\equiv 2^{n}\\ (\\bmod\\ 11)$ and we conclude that elements of $B$ give ten different remainders when divided by 11, so $B$ has 10 elements. That is a contradiction with the fact that $A$ is nonempty.\nTherefore there exist $b \\in B$ and $a \\in A$ such that $a \\equiv 2 b\\ (\\bmod\\ 11)$, and we have\n$$\na^{3}+a b^{2}+b^{3} \\equiv 8 b^{3}+2 b^{3}+b^{3}=11 b^{3} \\equiv 0 \\quad(\\bmod\\ 11)\n$$", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34903, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nWe call a positive integer $n$ amazing if there exist positive integers $a, b, c$ such that the equality\n$$\nn = (b, c)(a, b c) + (c, a)(b, c a) + (a, b)(c, a b)\n$$\nholds. Prove that there exist $2011$ consecutive positive integers which are amazing. (By $(m, n)$ we denote the greatest common divisor of positive integers $m$ and $n$.)", "options": [], "answer": "Detailed solution", "solution": "Solution:\nWe may choose such positive integers $x_{1}, x_{2}, \\ldots, x_{2011}$ that the numbers\n$$\ny_{1} = x_{1}^{2}(x_{1} + 2), \\quad y_{2} = x_{2}^{2}(x_{2} + 2), \\quad \\ldots, \\quad y_{2011} = x_{2011}^{2}(x_{2011} + 2)\n$$\nare pairwise coprime. For example, we may choose $x_{1} = 1$ and $x_{i} = y_{1} y_{2} \\ldots y_{i-1} - 1$ for every consecutive $i$. This choice guarantees that for every integer $2 \\leqslant i \\leqslant 2011$ both $x_{i}$ and $x_{i} + 2$ (hence, $y_{i}$ as well) are coprime with any of the numbers $y_{1}, y_{2}, \\ldots, y_{i-1}$.\n\nIf a positive integer $n$ is divisible by any of the numbers $y_{1}, y_{2}, \\ldots, y_{2011}$ then it is amazing. Indeed, if, say, $n = y_{i} m = x_{i}^{2}(x_{i} + 2) m$ for some positive integers $m$ and $1 \\leqslant i \\leqslant 2011$ then $n = (b, c)(a, b c) + (c, a)(b, c a) + (a, b)(c, a b)$ for $a = m x_{i}^{2}, b = m x_{i}, c = x_{i}$.\n\nSince the numbers $y_{1}, y_{2}, \\ldots, y_{2011}$ are pairwise coprime, the Chinese remainder theorem implies that there exists a positive integer $k$ satisfying the equalities\n$$\nk \\equiv -i \\quad (\\bmod\\ y_{i}), \\quad i = 1, 2, \\ldots, 2011\n$$\nThis means that $k + i$ is divisible by $y_{i}$ for any $1 \\leqslant i \\leqslant 2011$. Thus, the consecutive positive integers $k + 1, k + 2, \\ldots, k + 2011$ are all amazing, and the statement of the problem is proved.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34904, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $a, b, c$ be positive real numbers such that\n$$\na+b+c=\\frac{1}{a^{2}}+\\frac{1}{b^{2}}+\\frac{1}{c^{2}}\n$$\nProve that\n$$\n2(a+b+c) \\geq \\sqrt[3]{7 a^{2} b+1}+\\sqrt[3]{7 b^{2} c+1}+\\sqrt[3]{7 c^{2} a+1}\n$$\nFind all triples $(a, b, c)$ for which equality holds.", "options": [], "answer": "(1, 1, 1)", "solution": "Solution:\nFrom the AM-GM inequality, we obtain that\n$$\n\\sqrt[3]{7 a^{2} b+1}=2 \\cdot \\sqrt[3]{a \\cdot a \\cdot\\left(\\frac{7 b}{8}+\\frac{1}{8 a^{2}}\\right)} \\leq \\frac{2}{3}\\left(a+a+\\frac{7 b}{8}+\\frac{1}{8 a^{2}}\\right)\n$$\nWe have analogous upper bounds for $\\sqrt[3]{7 b^{2} c+1}$ and $\\sqrt[3]{7 c^{2} a+1}$. Adding up these three inequalities, we obtain that\n$$\n\\sqrt[3]{7 a^{2} b+1}+\\sqrt[3]{7 b^{2} c+1}+\\sqrt[3]{7 c^{2} a+1} \\leq \\frac{2}{3}\\left(\\frac{23(a+b+c)}{8}+\\frac{1}{8}\\left(\\frac{1}{a^{2}}+\\frac{1}{b^{2}}+\\frac{1}{c^{2}}\\right)\\right)\n$$\nUsing the condition of the problem, we obtain\n$$\n\\sqrt[3]{7 a^{2} b+1}+\\sqrt[3]{7 b^{2} c+1}+\\sqrt[3]{7 c^{2} a+1} \\leq 2(a+b+c)\n$$\nEquality holds if and only if $a, b$, and $c$ satisfy the system of equations\n$$\n\\begin{aligned}\n& a=\\frac{7 b}{8}+\\frac{1}{8 a^{2}} \\\\\n& b=\\frac{7 c}{8}+\\frac{1}{8 b^{2}} \\\\\n& c=\\frac{7 a}{8}+\\frac{1}{8 c^{2}}\n\\end{aligned}\n$$\nNote that this system actually implies the equation stipulated in the problem.\nDefining $f(x)=\\frac{8}{7}\\left(x-\\frac{1}{8 x^{2}}\\right)$, we can rewrite the system as\n$$\n\\begin{aligned}\n& b=f(a) \\\\\n& c=f(b)\n\\end{aligned}\n$$\n$$\na=f(c)\n$$\nWe prove that $f(x)$ is a non-decreasing function. Let $u \\geq v$. Then\n$$\n\\begin{aligned}\nf(u)-f(v) & =\\frac{8}{7}\\left((u-v)+\\frac{1}{8 v^{2}}-\\frac{1}{8 u^{2}}\\right) \\\\\n& =\\frac{8}{7}\\left((u-v)+\\frac{(u-v)(u+v)}{8 u^{2} v^{2}}\\right) \\\\\n& =\\frac{8}{7}(u-v)\\left(1+\\frac{u+v}{8 u^{2} v^{2}}\\right) \\\\\n& \\geq 0 .\n\\end{aligned}\n$$\nSince the system of equations is cyclically symmetric, we may assume that $a=\\max \\{a, b, c\\}$. Since $a \\geq b$, we have $b=f(a) \\geq f(b)=c$, so $c=f(b) \\geq f(c)=a$. In all, $c \\geq a \\geq b \\geq c$, so $a=b=c$.\nWe now have to find the solutions of $f(a)=a$.\n$$\n\\begin{aligned}\n\\frac{8}{7}\\left(a-\\frac{1}{8 a^{2}}\\right) & =a \\\\\n8 a-\\frac{1}{a^{2}} & =7 a \\\\\n\\frac{1}{a^{2}} & =a \\\\\n1 & =a^{3}\n\\end{aligned}\n$$\nThus, equality holds if and only if $a=b=c=1$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34905, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $n$ be a positive integer. On a board consisting of $4 n \\times 4 n$ squares, exactly $4 n$ tokens are placed so that each row and each column contains one token. In a step, a token is moved horizontally or vertically to a neighbouring square. Several tokens may occupy the same square at the same time. The tokens are to be moved to occupy all the squares of one of the two diagonals.\nDetermine the smallest number $k(n)$ such that for any initial situation, we can do it in at most $k(n)$ steps.", "options": [], "answer": "k(n) = 6n^2", "solution": "Solution:\nWe shall prove that $k(n)=6 n^{2}$.\n\nWe define the distance from a given square to a given diagonal to be the minimal number of steps needed to get from the square to the diagonal. This equals the minimal number of horizontal steps needed to do that. It also equals the minimal number of vertical steps needed to do that.\n\nGiven a configuration of tokens, we define the distance from this configuration to a given diagonal to be the sum of distances of the tokens to that diagonal.\n\nChoose the coordinate system so that the vertices of the board have coordinates $\\pm 2 n$. Place a token on each of the $n$ squares the coordinates of whose centres satisfy $x>0$ and $y-x=n$. Now complete this configuration of tokens so that it has a rotational symmetry of $90^{\\circ}$ about the origin. Then we have $4 n$ tokens, one in each row, one in each column. The distance from this configuration to either diagonal is $2 n \\cdot n+2 n \\cdot 2 n=6 n^{2}$. Therefore, $k(n) \\geq 6 n^{2}$.\n\nNow consider any configuration satisfying the conditions of the problem. We prove that $\\leq 6 n^{2}$ steps suffice even if we only allow horizontal moves. I.e., the smallest of the two distances from the given configuration to the diagonals is $\\leq 6 n^{2}$. It suffices to prove that the sum of the two distances from the given configuration to the diagonals is $\\leq 12 n^{2}$.\n\nObserve that the sum of the two distances from the square with center $(x, y)$ to the two diagonals is $2 \\max (|x|,|y|)$. This number can take values $1,3, \\ldots, 4 n-1$. The squares where it takes a given value can be covered by two columns and two rows, so we can place at most four tokens there. Thus, the sum of the values for the $4 n$ tokens is $\\leq 4((4 n-1)+(4 n-3)+\\cdots+(2 n+1))=4 n \\cdot 3 n=12 n^{2}$.", "topic": "Algebra", "subtopic": "Abstract Algebra" }, { "id": 34906, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $ABC$ be an isosceles triangle with $AC = BC$. Let $N$ be a point inside the triangle such that $2 \\angle ANB = 180^{\\circ} + \\angle ACB$. Let $D$ be the intersection of the line $BN$ and the line parallel to $AN$ that passes through $C$. Let $P$ be the intersection of the angle bisectors of the angles $CAN$ and $ABN$.\nShow that the lines $DP$ and $AN$ are perpendicular.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nSince $AC = BC$, there is a circle $k$ such that the lines $AC$ and $BC$ are the tangents to $k$ at the points $A$ and $B$. The condition defining the point $N$ implies that the point $N$ lies on the circle $k$.\n\nBy the tangent-chord theorem, we have $\\angle BAN = \\angle DBC$ and $\\angle CAN = \\angle ABD$. Since $DC$ is parallel to $AN$, we have $\\angle CAN = \\angle ACD$. Hence $\\angle ACD = \\angle ABN$, so the quadrilateral $ABCD$ is cyclic. It follows that $\\angle CAD = \\angle CBD = \\angle BAN$.\n\nWe can conclude that the angle bisector of $\\angle CAN$ is the angle bisector of $\\angle BAD$. Hence the point $P$ is the incenter of the triangle $ABD$ and $DP$ is the angle bisector of $\\angle ADB$.\n\nWe also note that since $CD$ is parallel to $AN$, we have $\\angle AND = \\angle BDC = \\angle BAC = \\angle BAN + \\angle NAC = \\angle CAD + \\angle NAC = \\angle NAD$. Hence $AD = ND$ and we conclude that the angle bisector of $\\angle ADB$ is the perpendicular bisector of the segment $AN$.\n\nHence $DP$ is perpendicular to $AN$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34907, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $a$ and $b$ be positive integers. Prove that there exist positive integers $x$ and $y$ such that\n$$\n\\binom{x+y}{2}=a x+b y\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\nDenoting $A=2a+1$ and $B=2b+1$, the equation can be translated into\n$$\n\\frac{B-(x+y)}{x}=\\frac{(x+y)-A}{y}\n$$\nFor $A=B$, any integers with $x+y=A$ satisfy the equation. Now suppose that $A 2$.\n\nLet $H_{i}$ denote the house with number $i$ at the start of the day, and let $(i \\rightleftarrows i+1)$ denote the swap between $H_{i}$ and $H_{i+1}$. Let $H_{k}$ be the house that has plate $n$ at the end of the day. It follows that the swaps $(n-1 \\rightleftarrows n), (n-2 \\rightleftarrows n-1), \\ldots, (k \\rightleftarrows k+1)$ must have happened in this order, for otherwise plate $n$ could not have reached the house $H_{k}$. In addition, $(k-1 \\rightleftarrows k)$ must have happened before $(k \\rightleftarrows k+1)$, otherwise plate $n$ would have ended up somewhere between $H_{1}$ and $H_{k-1}$.\n\nIt follows that for any $k \\leq i < n$ the plate $i$ will be on $H_{i+1}$, while plates $1, \\ldots, k$ will be on the houses $H_{1}, H_{2}, \\ldots, H_{k-1}$, and $H_{k+1}$ in some mixed order. If we restrict our attention to the first $k$ houses: the same happens that would happen if the only houses were $H_{1}, H_{2}, \\ldots, H_{k}$; the only difference is that at the end of the game, $H_{k}$ should change its plate to $n$. So there are $f(k)$ different final orderings of the plates such that $n$ is on $H_{k}$ (for $k=1, \\ldots, n-1$).\n\nTherefore,\n$$\nf(n) = \\sum_{k=1}^{n-1} f(k) = 1 + \\sum_{i=0}^{n-3} 2^{i} = 2^{n-2}\n$$\nSolution:\n\nTo each pair of neighbouring houses we assign the moment $t$ in time when they swap plates. In this way, we get a sequence $t_{1}, \\ldots, t_{n-1}$ of $n-1$ moments in time, such that $t_{i-1} \\neq t_{i}$ for all $i$. This sequence can be split into maximal monotonically increasing subsequences (with each subsequence consisting of consecutive elements). It can also be split into maximal monotonically decreasing subsequences (again, with each subsequence consisting of consecutive elements). If $t_{i-1} > t_{i}$, or $i=1$, then plate $i$ will finish the day at the eastern end of the maximal increasing subsequence starting at $t_{i}$. If $t_{i-1} < t_{i}$, or $i=n$, then plate $i$ will finish the day at the western end of the maximal decreasing subsequence ending at $t_{i-1}$.\n\nThus, the $n-2$ relations $<$ and $>$ between the neighbouring $t$'s determine the final distribution of the plates. Conversely, given the final distribution of the plates, we can calculate the relations. Indeed, let $2 \\leq i \\leq n-1$. If plate $i$ ends up east of its original position, then $t_{i-1} > t_{i}$, whereas if plate $i$ ends up west of its original position, then $t_{i-1} < t_{i}$. There is no third possibility.\n\nThe number of ways to choose these relations is clearly $2^{n-2}$. Each choice can be realized by suitable moments $t_{i}$ in time: we may choose $t_{1}$ to be any moment during the day, and if $t_{1}, \\ldots, t_{i-1}$ are already given, then we may choose $t_{i}$ to be smaller, resp. greater than $t_{i-1}$, as desired. Therefore, the answer is $2^{n-2}$.", "topic": "Algebra", "subtopic": "Abstract Algebra" }, { "id": 34911, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nConsider finitely many points in the plane with no three points on a line. All these points can be coloured red or green such that any triangle with vertices of the same colour contains at least one point of the other colour in its interior.\nWhat is the maximal possible number of points with this property?", "options": [], "answer": "8", "solution": "Solution:\n\nThe answer is $8$.\n\nCall a set consisting of red points and green points good if no three points are collinear and any unicoloured triangle contains a point of the other colour.\n\nOn the one hand, the figure on the left below shows an example of a good set with $8$ points. The figure on the right shows the two types of unicoloured triangles - all other unicoloured triangles are reflections of those.\n\n![](attached_image_1.png)\n\nOn the other hand, we shall prove that a good set can have at most four points of each colour. We give two proofs.\n\nFirst proof. For a proof by contradiction, let $S$ be a counterexample of minimal cardinality. We may assume that $S$ has at least five red points.\nLet $P$ be any vertex of the convex hull of $S$. Then $P$ cannot be in the interior of any triangle, so $S \\setminus \\{P\\}$ is good. But $S$ was a minimal counterexample, so $S \\setminus \\{P\\}$ has at most four points of each colour. Therefore, $S$ has exactly five red points, all vertices of the convex hull of $S$ are red, and $S$ has at most four green points.\n\nConsider the convex hull of $S$. It is a triangle, a quadrilateral, or a pentagon.\n\n![](attached_image_2.png)\n\nCase i: The convex hull is a triangle.\nLet $A, B$ and $C$ denote the vertices of the triangle, and let $I$ and $J$ be the interior red points. Without loss of generality, we may assume that the line $IJ$ intersects sides $AB$ and $AC$ (and not $BC$), and $I$ is nearer to $AB$ than $J$ is. Now $ABI$, $AIJ$, $AJC$, $BIJ$ and $BJC$ are five unired triangles with disjoint interiors, so at least one of them must be empty, because there are at most four green points. Thus, $S$ is not good, in contradiction to our assumptions.\n\nCase ii: The convex hull is a quadrilateral.\nLet the vertices of the quadrilateral be $A, B, C, D$, in this cyclic order, and $I$ be the red point in the interior. Now $ABI$, $BCI$, $CDI$ and $DAI$ are unired triangles with disjoint interiors, each has a green point inside: denote them by $X, Y, Z, W$ respectively. Then $XYZ$ and $ZWX$ are two unigreen triangles, but both cannot have $I$ (the only possible red point) in their interiors.\n\n![](attached_image_3.png)\n\n![](attached_image_4.png)\n\nCase iii: The convex hull is a pentagon.\nLet $A, B, C, D$ and $E$ denote the vertices of the pentagon, in this cyclic order. Now $ABC$, $ACD$ and $ADE$ are three unired triangles with disjoint interiors, each must have a green point in its interior, these form a unigreen triangle, which cannot have any red point inside.\n\n\nSecond proof.\n\nLemma. Let a good set of coloured points be given.\nIf the convex hull of some red points contains exactly $x$ red points, with exactly $y$ of them being in its interior, then there are at least $x+y-2$ green points in its interior. (The statement is analogous for switched colours.)\n\nProof. If the convex hull is not a polygon (i.e. $x \\leq 2$), the statement is trivial. Otherwise consider a partition of the convex hull of the red points into triangles, all of which have only red points as vertices, and have no other red points in their interiors. Let $N$ be the number of triangles of the partition. Then the sum of their angles is $N\\pi$. On the other hand, at each interior point, the sum of the angles of the triangles is always $2\\pi$, and at the peripheral points that form a convex $(x-y)$-gon, the sum is $(x-y-2)\\pi$. So the sum of the angles of the triangles in the partition is\n$$\nN\\pi = 2y\\pi + (x-y-2)\\pi\n$$\nwhich reduces to $N = x + y - 2$. Each of the disjoint unicoloured triangles must contain a single point in its interior, which proves the lemma.\n\nApplying the lemma on all $n$ red points, where $m$ red points are inside their convex hull, gives that there are at least $n + m - 2$ green points inside the red points' convex hull. Now applying the lemma again on these green points gives that there are at least $(n + m - 2) - 2$ red points in their convex hull. But these red points are also interior points of the convex hull of all red points, therefore\n$$\n(n + m - 2) - 2 \\leq m\n$$\nThis reduces to $n \\leq 4$, and our statement is proven.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34912, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $A B C$ be an acute triangle. Construct a triangle $P Q R$ such that $A B=2 P Q$, $B C=2 Q R$, $C A=2 R P$, and the lines $P Q$, $Q R$, and $R P$ pass through the points $A$, $B$, and $C$, respectively. (All six points $A, B, C, P, Q$, and $R$ are distinct.)", "options": [], "answer": "Detailed solution", "solution": "![](attached_image_1.png)\nSince the angles of triangles $P Q R$ and $A B C$ are equal, $\\angle Q A B=\\angle R B C=\\angle P C A$. Let $S$ denote the Brocard point of $A B C$, the one for which $\\angle S A B=\\angle S B C=\\angle S C A$.\nThe circle $A P C$ is tangent to $A B$ by the reverse tangent-chord theorem (since $\\angle P A B=\\angle P C A$ ). The same argument holds for $S$ (circle $A S C$ is tangent to $A B$ ). It follows that $A P S C$ is cyclic.\nWe intend to prove that triangle $A P S$ is similar to triangle $B Q S$. For this we observe that $\\angle S A P=\\angle S B Q$ (since $\\angle S A B=\\angle S B C$ and $\\angle P A B=\\angle Q B C$ ), and also $\\angle A S P=\\angle B S Q$, because $\\angle A S P=\\angle A C P=\\angle B A Q=\\angle B S Q$. So all the angles are the same in the two triangles, and the same holds for the third triangle $C R S$. Now considering the twirl with centre $S$, oriented angle $P S A$ and ratio $S A / S P$, the image of triangle $P Q R$ is triangle $A B C$. This yields the following construction:\n- Construct the Brocard point $S$ with the property $\\angle S A B=\\angle S B C=\\angle S C A$. It is obtained as the intersection point of the three circles $A S B, B S C, C S A$ which are tangent to the lines $B C, C A, A B$ at $B, C, A$ and pass through $A, B, C$, respectively.\n- Construct the circle with center $S$ and radius $S A / 2$.\n- Take the point of intersection of this circle and arc $A S$ of circle $A S C$ not containing $C$. This point is $P$.\n- Take the intersection of line $A P$ and arc $B S$ of circle $B S A$ not containing $A$ : this point is $Q$.\n- Take the intersection of line $B Q$ and arc $C S$ of circle $C S B$ not containing $B$ : this is point $R$.\n![](attached_image_2.png)\nThis construction works. We know that the Brocard point $S$ always exists and it is inside the triangle. It is easy to verify that the arcs $A S, B S$ and $C S$ used in the construction are inside the triangle (e.g. arc $A S$ is tangent to side $A B$ and so it is also inside the obtuse triangle $A S B$ ). This means that point $P$ is uniquely defined and is inside triangle $A B C$. Similarly, $Q$ is also unique, and by the tangent-chord theorem $\\angle P A B=\\angle Q B C$. Now $R$ is also unique, and $\\angle Q B C=\\angle R C A$. Angle $P C A$ is also the same, because one last time by the tangent-chord theorem $\\angle P C A=\\angle P A B$. This means that $R, P$ and $C$ are collinear. We are done.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34913, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $K$ be a point inside an acute triangle $A B C$, such that $B C$ is a common tangent of the circumcircles of $A K B$ and $A K C$. Let $D$ be the intersection of the lines $C K$ and $A B$, and let $E$ be the intersection of the lines $B K$ and $A C$. Let $F$ be the intersection of the line $B C$ and the perpendicular bisector of the segment $D E$. The circumcircle of $A B C$ and the circle $k$ with centre $F$ and radius $F D$ intersect at points $P$ and $Q$.\nProve that the segment $P Q$ is a diameter of $k$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nThe line $B C$ is tangent to the circumcircle of $A K C$, so the angles $B C D$ and $C A K$ are equal. Analogously, the angles $C B E$ and $B A K$ are equal.\n\n![](attached_image_1.png)\n\nTherefore\n$$\n\\pi = |\\angle K B C| + |\\angle K C B| + |\\angle B K C| = |\\angle D A K| + |\\angle E A K| + |\\angle D K E|\n$$\nso $A D K E$ is a cyclic quadrilateral. Then\n$$\n|\\angle K B C| = |\\angle D A K| = |\\angle D E K|\n$$\nwhich implies that $D E$ is parallel to $B C$. Observe that $F$ is the unique point on line $B C$ for which the angles $D F B$ and $C F E$ are the same. Let $F'$ be the point on side $B C$ for which $B F' K D$ is cyclic. Then\n$$\n|\\angle F' K E| = 2\\pi - |\\angle E K D| - |\\angle D K F'| = 2\\pi - (\\pi - |\\angle B A C|) - (\\pi - |\\angle C B A|) = \\pi - |\\angle A C B|\n$$\nwhich tells us that $F' C E K$ is also cyclic, therefore\n$$\n|\\angle D F' B| = |\\angle D K B| = |\\angle C K E| = |\\angle C F' E|\n$$\nThis means that $F = F'$ and $|\\angle D F B| = |\\angle C F E| = \\pi - |\\angle B K C| = |\\angle B A C|$, so the triangles $F B D$ and $F E C$ are both similar to $A B C$, therefore\n$$\n\\frac{|A B|}{|A C|} = \\frac{|F E|}{|F C|} = \\frac{|F B|}{|F D|}\n$$\nWe get $|F B||F C| = |F D|^2$. Let $Q'$ be the intersection of the line $P F$ and the circumcircle of $A B C$. Using the power of the point $F$, we get $|F D|^2 = |F B||F C| = |F P||F Q'| = |F D||F Q'|$, therefore $|F Q'| = |F D|$, so $Q = Q'$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34914, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nThe numbers from $1$ to $2013^{2}$ are written row by row into a table consisting of $2013 \\times 2013$ cells. Afterwards, all columns and all rows containing at least one of the perfect squares $1, 4, 9, \\ldots, 2013^{2}$ are simultaneously deleted.\nHow many cells remain?", "options": [], "answer": "825423", "solution": "Solution:\nLet $m = 503$ and $n = 4m + 1 = 2013$.\nNote that\n$$\n(m-1)n = (m-1)(4m+1) < m \\cdot 4m = (2m)^2 < m(4m+1) = mn\n$$\nso the perfect square $(2m)^2$ is in the $m$-th row.\nNote that $(k+1)^2 - k^2 = 2k + 1$ is at most $n$ if $k \\leq 2m$ and is at least $n$ if $k \\geq 2m$. Therefore, on the one hand, the first $2m+1$ perfect squares never skip a row and the first $m+1$ rows are all deleted. On the other hand, the last $n - (2m-1) = 2m + 2$ perfect squares are in pairwise distinct rows.\nThus, the first $m+1$ rows and $2m$ more are deleted, so $m$ rows remain.\nThe $j$-th column is deleted if and only if $j$ is a square modulo $n = 2013 = 3 \\cdot 11 \\cdot 61$. By the Chinese Remainder Theorem, this is the case if and only if $j$ is a square modulo each of $3$, $11$, and $61$. Since the numbers of squares for these three moduli are $2$, $6$, and $31$ respectively, the number of squares modulo $n$, again by the Chinese Remainder Theorem, is $2 \\cdot 6 \\cdot 31 = 372$. The number of remaining columns is therefore $2013 - 372 = 1641$.\nThe number of remaining cells is $503 \\cdot 1641 = 825423$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34915, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nThe expression\n$$\n\\pm \\square \\pm \\square \\pm \\square \\pm \\square \\pm \\square \\pm \\square\n$$\nis written on the blackboard. Two players, $A$ and $B$, play a game, taking turns. Player $A$ takes the first turn. In each turn, the player on turn replaces a symbol $\\square$ by a positive integer. After all the symbols $\\square$ are replaced, player $A$ replaces each of the signs $\\pm$ by either + or $-$, independently of each other. Player $A$ wins if the value of the expression on the blackboard is not divisible by any of the numbers $11,12, \\ldots, 18$. Otherwise, player $B$ wins.\n\nDetermine which player has a winning strategy.", "options": [], "answer": "Player B", "solution": "Solution:\n\nWe will call a number good if it has a divisor in the set $\\{11,12, \\ldots, 18\\}$.\n\nWe will show that player $B$ has a winning strategy. Namely, $B$ plays $18!$ in both his first and second move. In his last move he plays a number $x$ (which we will specify later), which ensures that each possible result will be good.\n\nWhen choosing this number, we may, without loss of generality, work with the result mod $18!$, thus his first and second moves count as zero. Before he plays the last move, there are eight $(=2^3)$ possible combinations of signs which give eight results $a_{1}, a_{2}, \\ldots, a_{8}$. If we ensure that each of the numbers $a_{1}+x, a_{2}+x, \\ldots, a_{8}+x$ be good, then also the numbers $a_{1}-x, a_{2}-x, \\ldots, a_{8}-x$ will be good since for each $i \\in\\{1, \\ldots, 8\\}$ there exists $j \\in\\{1, \\ldots, 8\\}$ such that $a_{i}-x=-\\left(a_{j}+x\\right)$.\n\nNow observe that all of the numbers $a_{1}, \\ldots, a_{8}$ have the same parity and thus they have at most two different remainders mod $4$. Further, if there are two possible remainders, then each appears exactly four times (check it!).\n\nAt least three of the numbers have the same remainder mod $3$, wlog let $a_{1} \\equiv a_{2} \\equiv a_{3}$ $(\\bmod 3)$. Also, we may assume that $a_{4} \\equiv a_{3}(\\bmod 4)$.\n\nThen, we choose our $x$ from the Chinese Remainder Theorem so that $9 \\mid a_{1}+x$, $5\\mid a_{2}+x$, $16\\mid a_{4}+x$, $7\\mid a_{5}+x$, $11\\mid a_{6}+x$, $13 \\mid a_{7}+x$, and $17 \\mid a_{8}+x$.\n\nWith this choice of $x$ we have in fact ensured $18\\mid a_{1}+x$, $15\\mid a_{2}+x$, $12 \\mid a_{3}+x$, $16\\mid a_{4}+x$, $14\\mid a_{5}+x$, $11\\mid a_{6}+x$, $13\\mid a_{7}+x$, and $17 \\mid a_{8}+x$. Hence the result.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34916, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nFind all surjective functions $f: \\mathbb{N} \\rightarrow \\mathbb{N}$ such that for all positive integers $a$ and $b$, exactly one of the following equations is true:\n$$\n\\begin{aligned}\nf(a) &= f(b) \\\\\nf(a+b) &= \\min \\{f(a), f(b)\\}\n\\end{aligned}\n$$\n\nRemarks: $\\mathbb{N}$ denotes the set of all positive integers. A function $f: X \\rightarrow Y$ is said to be surjective if for every $y \\in Y$ there exists $x \\in X$ such that $f(x)=y$.", "options": [], "answer": "For every positive integer written uniquely as 2^k times an odd number l, f(2^k l) = k + 1.", "solution": "Solution:\n\nEach positive integer can be uniquely written as $n=2^{k} l$ where $k \\geqslant 0$ and $l$ is odd. We will show that the only function satisfying the conditions is $f\\left(2^{k} l\\right)=k+1$ for all $k \\geqslant 0$ and all odd $l$.\n\nAssume that $f(1) \\neq 1$. Since $f$ is surjective, there exists $a \\in \\mathbb{N}$ such that $f(a)=1$. Since $f(1) \\neq 1=f(a)$, we get $f(a+1)=\\min \\{f(a), f(1)\\}=1$, and inductively we get $f(n)=1$ for each $n \\geqslant a$. However, this contradicts the surjectivity of $f$.\n\nTherefore $f(1)=1$. Then $f(2) \\neq \\min \\{f(1), f(1)\\}=1$, and $f(3)=\\min \\{f(1), f(2)\\}=1$. Now it easily follows by induction that $f(n)=1$ if $n$ is odd and $f(n)>1$ if $n$ is even.\n\nWe will show by induction on $k$ that $f\\left(2^{k} l\\right)=k+1$ for all odd $l$ and $f\\left(2^{k} m\\right)>k+1$ for all even $m$. The basis of induction has been proved above. Assume that the statement holds for all $k1$ if $n$ is even, as we have shown above. Therefore $f\\left(2^{k_{0}} l\\right)=k_{0}+1$ for odd $l$ and $f\\left(2^{k_{0}} m\\right)>k_{0}+1$ for even $m$, which completes the induction. It is easy to check that this function indeed satisfies the conditions of the problem.\n\n\nLike in Solution 1 we prove that\n$$\nf(\\text{ odd })=1, \\quad \\text{ and } \\quad f(\\text{ even })>1\n$$\nWe will show by induction on $k$ that $f\\left(2^{k} l\\right)=k+1$ for all odd $l$ and $f\\left(2^{k} m\\right)>k+1$ for all even $m$. The basis of induction has been proved above. Assume that the statement holds for all $kk_{0}+1$. Surjectivity of $f$ implies, that there exists positive integer $b$ such that $f(b)=k_{0}+1$. By induction hypothesis $b$ is of the form $b=2^{k_{0}} r$ for some $r$ ($r$ may be odd or even). Considering the pair $\\left(2^{k_{0}}, b\\right)$ we get $f\\left(2^{k_{0}}(r+1)\\right)=f\\left(b+2^{k_{0}}\\right)=\\min \\left\\{f\\left(2^{k_{0}}\\right), f(b)\\right\\}=k_{0}+1$. By induction we get $f\\left(2^{k_{0}} r'\\right)=k_{0}+1$ for all $r' \\geqslant r$, contradicting the surjectivity of $f$. Hence $f\\left(2^{k_{0}}\\right)=k_{0}+1$. Conditions of the problem and induction hypothesis imply that $f(n)=k_{0}+1$ iff $f\\left(n+2^{k_{0}}\\right)>k_{0}+1$. Therefore it follows inductively that $f\\left(2^{k_{0}} l\\right)=k_{0}+1$ for odd $l$ and $f\\left(2^{k_{0}} m\\right)>k_{0}+1$ for even $m$, which finishes the induction step.\nIt is easy to check that the function defined by $f\\left(2^{k_{0}} l\\right)=k_{0}+1$ for odd $l$ indeed satisfies the conditions of the problem.\nSolution:\n\nLike in Solution 1 we prove that $f($ odd $)=1$, and $f($ even $)>1$. Define a sequence of functions $g_{k}: \\mathbb{N} \\rightarrow \\mathbb{N}$ by\n$$\ng_{0}(n)=f(n) \\quad \\text{ and } \\quad g_{k}(n)=g_{k-1}(2 n)-1, \\quad \\text{ for } k \\in \\mathbb{N}\n$$\nUsing the first part of the solution we prove by induction that all $g_{k}$ satisfy the initial conditions of the problem (they map to $\\mathbb{N}$, are surjective and satisfy the mutually exclusive equations). It follows from the first part of the solution that $g_{k}($ odd $)=1$ for all $k=0,1,2, \\ldots$ From $g_{k}(l)=1$ for odd $l$ we inductively obtain $f\\left(2^{k} l\\right)=k+1$ by backward substitution. This shows that the problem has a unique solution given by $f\\left(2^{k} l\\right)=k+1$ for all $k \\geqslant 0$ and all odd $l$. It is easy to check that this function indeed satisfies the conditions of the problem.\nSolution:\n\nPlugging pair $(a, a)$ into the given equations we obtain $f(2 a) \\neq \\min \\{f(a), f(a)\\}=f(a)$, in particular $f(4 a) \\neq f(2 a)$. From pair $(a, 2 a)$ we get $f(3 a)=f(2 a+a)=\\min \\{f(2 a), f(a)\\}$. Suppose $f(2 a)f(a)$.\n\nNext we prove by induction on $l$ that $f(l a)=f(a)$ for all odd $l$. For $l=1$, there is nothing to show. We assume that $f((l-2) a)=f(a)$. As $f(2 a)>f(a)$, we have\n$$\nf(l a)=\\min \\{f((l-2) a), f(2 a)\\}=\\min \\{f(a), f(2 a)\\}=f(a)\n$$\nwhich proves the induction step.\n\nLet now $n=2^{k} l$ for odd $l$. By the above we have $f(n)=f\\left(2^{k}\\right)$. Thus we only have to determine $f\\left(2^{k}\\right)$ for $k \\geqslant 0$. Since $f(2 a)>f(a)$ for all $a$, $f\\left(2^{k}\\right)$ is increasing in $k$. By surjectivity, the only solution is $f\\left(2^{k}\\right)=k+1$. It is easily seen that $f\\left(2^{k} l\\right)=k+1$ is indeed a solution.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34917, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $n \\geqslant 3$ be an integer. An inner diagonal of a simple $n$-gon is a diagonal that is contained in the $n$-gon. Denote by $D(P)$ the number of all inner diagonals of a simple $n$-gon $P$ and by $D(n)$ the least possible value of $D(Q)$, where $Q$ is a simple $n$-gon. Prove that no two inner diagonals of $P$ intersect (except possibly at a common endpoint) if and only if $D(P)=D(n)$.\n\nRemark: A simple $n$-gon is a non-self-intersecting polygon with $n$ vertices. A polygon is not necessarily convex.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nFirst we prove that for every $n$-gon $P$ with $n \\geqslant 4$ we have $D(P) \\geqslant 1$. Let $A$ be one of the vertices of $P$ with inner angle less than $180^{\\circ}$. Denote the two vertices adjacent to $A$ by $B$ and $C$. The segment $BC$ is a diagonal of $P$, since $n \\geqslant 4$. If it lies in $P$, we are done, so suppose it does not lie in $P$. Let $C'$ be the unique point on the segment $AC$ such that the triangle $ABC'$ lies in $P$ and the segment $BC'$ contains at least one point in the boundary of $P$ distinct from $B$ and $C'$. Let $D \\neq C'$ be the point on the segment $BC'$, which lies in the boundary of $P$ and is closest to $C'$. Then $D$ must be a vertex of $P$ and $AD$ is an inner diagonal.\n\nNext we prove that $D(n) = n-3$.\n\n![](attached_image_1.png)\n\nOn the picture, diagonals between pairs of points on the bottom are clearly outer because that part of the polygon is concave. Therefore inner diagonals only exist between the upper point and lower points. Number of those diagonals is $n-3$, therefore $D(n) \\leqslant n-3$.\n\nWe prove by induction that $D(n) \\geqslant n-3$. The case $n=3$ is clear. So suppose $n \\geqslant 4$ and let $P$ be an $n$-gon. By the above there exists an inner diagonal of $P$. This diagonal divides $P$ into two polygons $R$ and $S$ with $k$ and $m$ vertices respectively. Clearly $k, m < n$ and $k + m = n + 2$. By induction we have $D(k) \\geqslant k-3$ and $D(m) \\geqslant m-3$. Note that $D(P) \\geqslant D(R) + D(S) + 1$, hence $D(P) \\geqslant (k-3) + (m-3) + 1 = k + m - 5 = n - 3$. Since $P$ was arbitrary this shows that $D(n) \\geqslant n-3$.\n\nNow we prove the claim by induction. Again the case $n=3$ is clear. So assume $n \\geqslant 4$. As above there exists an inner diagonal $d$ of $P$ and it divides $P$ into polygons $R$ and $S$ with $k$ and $m$ vertices, where $k + m = n + 2$. In addition\n$$\nD(P) \\geqslant D(R) + D(S) + 1 \\geqslant D(k) + D(m) + 1 = n - 3\n$$\nIf $D(P) = D(n) = n-3$ then in the above inequality we actually have equalities. In particular $D(P) = D(R) + D(S) + 1$ which means that the inner diagonals of $P$ are $d$ and those that lie in $R$ or $S$. In addition $D(R) = D(k)$ and $D(S) = D(m)$, so by induction the inner diagonals of $R$ and $S$ do not intersect. Thus the inner diagonals of $P$ do not intersect. Conversely, if the inner diagonals of $P$ do not intersect then the inner diagonals of $R$ and $S$ do not intersect and $D(P) = D(R) + D(S) + 1$ holds. By induction we have $D(R) = D(k) = k-3$ and $D(S) = D(m) = m-3$, thus $D(P) = (k-3) + (m-3) + 1 = n-3 = D(n)$.\nSolution:\n\n(using triangulation)\n\nClaim 1.\nEvery $n$-gon $P$ can be triangulated with exactly $n-3$ inner diagonals.\n\nProof\nThis is well known but can also be proven from $D(P) \\geqslant 1$ by induction.\n\nClaim 2.\nFor every polygon $P$ and every inner diagonal $\\ell$ there exists a triangulation that includes $\\ell$.\n\nProof\nDiagonal $\\ell$ divides polygon $P$ into two separate polygons. Both of them can be triangulated. Therefore also $P$ can be triangulated.\n\nFrom claim 1 it follows that $D(n) \\geqslant n-3$. With the same example as in solution 1 we can show that $D(n) \\leqslant n-3$. Therefore $D(n) = n-3$.\n\nOption 1.\nIf inner diagonals in $n$-gon do not intersect then they must all form one triangulation. Because every triangulation has exactly $n-3$ diagonals, the number of all inner diagonals in $P$ is $n-3$ and therefore $D(P) = n-3$.\n\nSuppose $D(P) = n-3$. If we take a triangulation of $P$ it has exactly $n-3$ inner diagonals. Therefore all inner diagonals are included in this triangulation and they do not intersect. So no inner diagonals in $P$ intersect.\n\nOption 2.\nWe can prove that inner diagonals of $n$-gon do not intersect if and only if there exists exactly one triangulation of $P$. Suppose some two inner diagonals would intersect. By claim 2 each of them would be a part of some triangulation and those two triangulations would be different. Hence we have a contradiction. Similarly, suppose there would exist at least two different triangulations. Because each of them is produced with $n-3$ inner diagonals, some diagonals must be different. Therefore some of them must intersect, otherwise there would exist a triangulation with more diagonals. Hence we again get a contradiction and the equivalence is proven.\n\nIt remains to prove that $P$ has exactly one triangulation if and only if $D(P) = n-3$. If $P$ has only one triangulation then $P$ has at least $n-3$ inner diagonals. But there cannot be any other inner diagonals, otherwise it would follow from claim 2 that there exists a different triangulation with some other diagonals. If it holds $D(P) = n-3$ then there must exist exactly one triangulation with exactly those $n-3$ inner diagonals.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34918, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $ABCD$ be a cyclic quadrilateral. Let $E$ be the intersection of lines parallel to $AC$ and $BD$ passing through points $B$ and $A$, respectively. The lines $EC$ and $ED$ intersect the circumcircle of $AEB$ again at $F$ and $G$, respectively. Prove that points $C$, $D$, $F$, and $G$ lie on a circle.\n\n![](attached_image_1.png)", "options": [], "answer": "Detailed solution", "solution": "Solution:\nThe solution uses directed angles. It suffices to show $\\angle GDC = \\angle GFC$, which is done as follows\n$$\n\\begin{aligned}\n\\angle GDC & = \\angle EDC = \\angle EDB + \\angle BDC \\\\\n& = \\angle DEA + \\angle BAC = \\angle GEA + \\angle ABE \\\\\n& = \\angle GBA + \\angle ABE = \\angle GBE = \\angle GFE = \\angle GFC\n\\end{aligned}\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34919, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all pairs of positive integers $(m, n)$ for which there exist relatively prime integers $a$ and $b$ greater than $1$ such that\n$$\n\\frac{a^{m}+b^{m}}{a^{n}+b^{n}}\n$$\nis an integer.", "options": [], "answer": "(m, n) = (q n, n) where q is an odd positive integer", "solution": "Solution:\n\nIf $\\frac{m}{n}=q$ is an odd integer, we have\n$$\n\\frac{a^{m}+b^{m}}{a^{n}+b^{n}}=\\frac{\\left(a^{n}\\right)^{q}+\\left(b^{n}\\right)^{q}}{a^{n}+b^{n}}=\\left(a^{n}\\right)^{q-1}-\\left(a^{n}\\right)^{q-2} \\cdot b^{n}+\\cdots-a^{n} \\cdot\\left(b^{n}\\right)^{q-2}+\\left(b^{n}\\right)^{q-1}\n$$\nwhich is an integer for all positive integers $a$ and $b$. We will prove that pairs $(q n, n)$, where $q$ is an odd integer, are the only solutions. Let us assume the opposite, i.e. that there exist pairs $(m, n)$ that are solutions to our problem for which $\\frac{m}{n}$ is not an odd integer. Among those pairs, let us choose one pair having the minimal sum.\n\nObviously, $m>n$. Let $m=n+k$ for a positive integer $k$. Without loss of generality, we may assume $a>b$. In that case\n$$\n\\frac{a^{m}+b^{m}}{a^{n}+b^{n}}>\\frac{a^{n} \\cdot b^{k}+b^{m}}{a^{n}+b^{n}}=b^{k}\n$$\nthus there exists a positive integer $t$ such that\n$$\n\\frac{a^{m}+b^{m}}{a^{n}+b^{n}}=b^{k}+t\n$$\nThis equation can be written as follows:\n$$\n\\begin{aligned}\na^{m}+b^{m} & =\\left(b^{k}+t\\right)\\left(a^{n}+b^{n}\\right), \\\\\na^{m} & =a^{n} b^{k}+t\\left(a^{n}+b^{n}\\right) .\n\\end{aligned}\n$$\nSince $a$ and $b$ are relatively prime, $a^{n}+b^{n}$ and $a^{n}$ are relatively prime as well. Therefore, from the last equation we can conclude that $t$ is divisible by $a^{n}$. Let $c$ be a positive integer such that $t=c \\cdot a^{n}$. We have\n$$\na^{k}=b^{k}+c \\cdot a^{n}+c \\cdot b^{n}\n$$\nThe right-hand side of the previous equation is greater than $a^{n}$ so we conclude that $k>n$. Previous equation can be written as\n$$\na^{n}\\left(a^{k-n}-c\\right)=b^{n}\\left(b^{k-n}+c\\right) \\text{.}\n$$\nThis implies that $b^{k-n}+c$ is divisible by $a^{n}$, since $a$ and $b$ are relatively prime. Let $x$ be a positive integer such that\n$$\nb^{k-n}+c=x \\cdot a^{n}\n$$\nThe previous equation gives us\n$$\na^{k-n}-c=x \\cdot b^{n}\n$$\nSumming the last two equations gives us\n$$\na^{k-n}+b^{k-n}=x\\left(a^{n}+b^{n}\\right)\n$$\nwhich means that\n$$\n\\frac{a^{k-n}+b^{k-n}}{a^{n}+b^{n}}\n$$\nis an integer. Since $(k-n)+n=kn$. Write $m=k n+r$, where $k \\geqslant 1$ and $0 \\leqslant r x_{j}$. So the sum to the right equals less than $(n-1) + (n-3) + \\ldots + (n - 2\\left\\lfloor \\frac{n}{2} \\right\\rfloor + 1)$. Times 2 equals $\\left\\lfloor \\frac{n^{2}}{2} \\right\\rfloor$.\n\n\nSolution 3:\n\n$S(x) = \\sum_{i=1}^{n} |x_{i} - i|$\n\nWhen we resolve absolute values, we get\n$$\nS(x) = \\sum_{\\text{some } i} (x_{i} - i) + \\sum_{\\text{other } i} (i - x_{i})\n$$\nso\n$$\nS(x) = \\sum_{i=1}^{n} a_{i} - \\sum_{i=1}^{n} b_{i}\n$$\nwhere the numbers $a_{i}$ and $b_{i}$ are all numbers from $1$ to $n$ (twice!). So\n$$\nS(x) \\leq n + n + (n-1) + (n-1) + \\ldots + (\\left\\lfloor \\frac{n}{2} \\right\\rfloor + 1) - (1 + 1 + 2 + 2 + \\ldots + \\left\\lfloor \\frac{n+1}{2} \\right\\rfloor)\n$$\nwhich evaluates to $\\left\\lfloor \\frac{n^{2}}{2} \\right\\rfloor$. Equality is attained when $i$ and $x_{i}$ are on different sides of $\\frac{n+1}{2}$, for all $i$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34923, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $N$ be a positive integer. In each of the $N^{2}$ unit squares of an $N \\times N$ board, one of the two diagonals is drawn. The drawn diagonals divide the $N \\times N$ board into $K$ regions. For each $N$, determine the smallest and the largest possible values of $K$.\n![](attached_image_1.png)\nExample with $N=3, K=7$", "options": [], "answer": "Minimum K = 2N; Maximum K = ceil(((N+1)^2)/2), i.e., ((N+1)^2 + 1)/2 for even N and ((N+1)^2)/2 for odd N.", "solution": "Solution:\nA small triangle is a right-angled isosceles triangle whose area is $\\frac{1}{2}$ whose hypotenuse is a diagonal of a unit square. A board segment is a horizontal or a vertical segment on the boundary of the board. There are $4 N$ board segments and each of these segments belongs to the boundary of some region.\n\nCrucial remark is that each region has either 0 or 2 board segments on its boundary. Indeed, let $R$ be a region that has at least one board segment on its boundary. Let us colour one such board segment in red and then colour the small triangle whose leg is that board segment. In each subsequent step we colour red the unique small triangle which was not coloured so far and which has one of its legs coloured red. This process ends when the other leg of the small triangle is also a board segment. In this way we have exhausted all small triangles of which $R$ consists and shown that $R$ has exactly two board segments on its boundary.\n\nIt follows that if the number of regions is $K$, then there is at most $2 K$ board segments. Thus\n$$\n2 K \\geqslant 4 N \\quad \\Longrightarrow \\quad K \\geqslant 2 N\n$$\n\nExample with $K=2 N$ :\n\nMaximum\nThe sum of areas of all regions is constant as it is equal to the area of the board.\n![](attached_image_2.png)\n\nAn inner region is a region that has no board segments on its boundary. The boundary of an inner region consists of diagonals and all of them lie on one of two parallel directions. Let us start at some point of the boundary of an inner region and trace the boundary clockwise. In order to return to the same point (i.e. to close the boundary) we need to change direction at least three times, which means that there are at least four diagonals on its boundary. Each diagonal belongs to a different small triangle, so the area of an inner region is at least 2.\n\nIf a region is not inner, then it has exactly two board segments on its boundary. If these two segments meet at the corner of a board, then the region consists of a single small triangle and has area $\\frac{1}{2}$. We call such regions corner regions. If a region is not inner and not a corner region, we call it outer. An outer region has exactly two board segments on its boundary, which are not legs of the same small triangle, so each such region has an area at least 1. The area is exactly 1 if the two board segments on the boundary are on the same side of the board and share an endpoint.\n\nThe number of non inner regions is $2 N$, so their area is at least $4 \\cdot \\frac{1}{2}+(2 N-4) \\cdot 1=2 N-2$.\n\nCase 1. If $N$ is even, it is possible to make 4 corner regions and $4 \\cdot\\left(\\frac{1}{2} N-1\\right)=2 N-4$ regions of area 1. So, the area on non inner regions is at least $2 N-2$ and the area of inner regions is thus at most $N^{2}-2 N+2$. It follows that there are at most $\\frac{1}{2}\\left(N^{2}-2 N+2\\right)$ inner regions, i.e. there are at most\n$$\n2 N+\\frac{N^{2}-2 N+2}{2}=\\frac{(N+1)^{2}+1}{2}\n$$\nregions when $N$ is even.\n\nCase 2. Let us consider the case when $N$ is odd. If there are exactly 2 corner regions, the total area of outer and corner regions is at least $2 \\cdot \\frac{1}{2}+(2 N-2) \\cdot 1=2 N-1$.\n\nIf there are 3 corner regions, then there are two sides of the board with 2 board segments belonging to corner regions. These sides have an odd number of board segments belonging to outer regions. Hence there must be an outer region which has two board segments on different sides of the boards and its area is at least $\\frac{3}{2}$. We see that in this case the area of all outer and corner regions is at least $3 \\cdot \\frac{1}{2}+\\frac{3}{2}+(2 N-4) \\cdot 1=2 N-1$.\n\nAlso, if there are 4 corner regions, all four sides of the board have an odd number of board segments belonging to outer regions, so at least 2 outer regions have area $\\frac{3}{2}$. The total area (of outer and corner regions) in this case is also at least $4 \\cdot \\frac{1}{2}+2 \\cdot \\frac{3}{2}+(2 N-6) \\cdot 1=2 N-1$.\n\nIf there would be no corner regions or exactly 1 corner region, then the total area of all outer and corner regions would be at least $1 \\cdot \\frac{1}{2}+(2 N-1) \\cdot 1>2 N-1$. (We could have argued that these cases are actually impossible, but for the sake of our argument this is sufficient.)\n\nSo the area of all non inner regions is at least equal to $2 N-1$. The remaining area is at most $N^{2}-2 N+1=(N-1)^{2}$, so there are at most $\\frac{1}{2}(N-1)^{2}$ inner regions. This implies that there are at most\n$$\n2 N+\\frac{(N-1)^{2}}{2}=\\frac{(N+1)^{2}}{2}\n$$\nregions when $N$ is odd.\n\nThe following examples show that these numbers of regions can be obtained.\nSolution:\nWe make use of the generalized Euler's polyhedron formula\n$$\nV+F=E+C+1\n$$\nHerein $V$ denotes the number of vertices, $E$ the number of edges, $F$ the number of faces (regions) and $C$ the number of connected components of a planar graph. We apply this formula to the graph whose vertices are the $(N+1)^{2}$ corner points of all the $N^{2}$ unit squares. The edges are the $4 N$ segments on the circumference and the $N^{2}$ drawn diagonals. Then we get for the number of faces (without the exterior face)\n$$\nK=F-1=E-V+C=4 N+N^{2}-(N+1)^{2}+C=2 N-1+C\n$$\nSince $C \\geqslant 1$ we must have $K \\geqslant 2 N$. We can easily achieve $C=1$ and $K=2 N$, for instance by choosing all the diagonals parallel to each other. Hence $2 N$ is the least possible value of $K$.\n\nIn order to find an upper bound for $C$ we assign to every corner point its boundary distance, i.e. the smallest distance from the four sides of the $N \\times N$ square. (The corner points with boundary distance $d$ lie on the circumference of a square of side length $N+1-2 d$, there are exactly $(N+1-2 d)^{2}-(N-1-2 d)^{2}=4(N-2 d)$ such points, except for $N=2 d$, in which there is exactly one such point - the midpoint of the board.) Furthermore to a connected component $Z$ of the graph we assign the minimal boundary distance $D(Z)$ of the corner points contained in $Z$. (Since all the corner points lie in the same connected component, there is exactly one component $Z_{0}$ such that $D\\left(Z_{0}\\right)=0$.) We now consider two neighbouring corner points both having boundary distance $d \\geqslant 1$ and we observe that at least one of them must be connected to a point with boundary distance $d-1$. (Namely these two corner points are two vertices of a unit square whose other two vertices have boundary distance $d-1$. The diagonal drawn in this unit square is the desired connection.) That means that for $2 d AC$. Prove that there exists a point $D$ with the following property: whenever two distinct points $X$ and $Y$ lie in the interior of $ABC$ such that the points $B$, $C$, $X$, and $Y$ lie on a circle and\n$$\n\\angle AXB - \\angle ACB = \\angle CYA - \\angle CBA\n$$\nholds, the line $XY$ passes through $D$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nLet $D$ be the point on $BC$ for which $AD$ is a tangent to the circumcircle of $ABC$. As we will show in the sequel, the point $D$ is as desired.\n\n![](attached_image_1.png)\n\nSolution 1. We assume $B$, $C$, $X$, $Y$ lie on a circle in that order, the other case being similar. We compute the following equality\n$$\n\\begin{aligned}\n\\angle AXY - \\angle DAY & = \\angle AXB - \\angle YXB - \\angle DAB - \\angle BAY \\\\\n& = \\angle AXB - \\angle YCB - \\angle ACB - \\angle BAY \\\\\n& = \\angle AXB - 2\\angle ACB + \\angle ACY - \\angle BAC + \\angle YAC \\\\\n& = \\angle AXB - 2\\angle ACB - \\angle BAC + \\pi - \\angle CYA \\\\\n& = \\angle AXB - \\angle AYC + \\angle CBA - \\angle ACB = 0.\n\\end{aligned}\n$$\nSo $AD$ is tangent to the circumcircle of triangle $AXY$. Consequently $AD$ is the radical axis of the circumcircles of triangles $AXY$ and $ABC$. On the other hand $BC$ is the radical axis of the circumcircles of triangles $BCX$ and $ABC$. By a well known theorem the radical axes of three circles intersect in one point, so $XY$ passes through $D$.\n\n\nSolution 2. Let $X$ and $Y$ be two points satisfying the condition mentioned in the problem and let the line $DX$ meet the circumcircle of triangle $BXC$ for the second time in $Y'$. It suffices to prove that $Y = Y'$.\nLet us assume that the points $D$, $X$ and $Y'$ are collinear in this order, the other case being similar. Due to $DX \\cdot DY' = DB \\cdot DC = DA^2$ the triangles $ADX$ and $Y'DA$ are similar. Hence\n$$\n\\begin{aligned}\n\\angle CY'A & = 360^\\circ - \\angle AY'D - \\angle DY'C \\\\\n& = 180^\\circ - \\angle DAX + \\angle CBX \\\\\n& = (180^\\circ - \\angle BAX) - \\angle DAB + \\angle CBX \\\\\n& = \\angle AXB + \\angle XBA - \\angle ACB + \\angle CBX \\\\\n& = \\angle AXB + \\angle CBA - \\angle ACB\n\\end{aligned}\n$$\nUsing the condition\n$$\n\\angle AXB - \\angle ACB = \\angle AY'C - \\angle CBA\n$$\nwe get $\\angle AYC = \\angle AY'C$, so $Y$ and $Y'$ lie on the same circle through $A$ and $C$. On the other hand, $Y$ and $Y'$ both lie on the circumcircle of $BXC$, therefore $Y = Y'$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34925, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $I$ be the incentre of triangle $A B C$ with $A B > A C$ and let the line $A I$ intersect the side $B C$ at $D$. Suppose that point $P$ lies on the segment $B C$ and satisfies $P I = P D$. Further, let $J$ be the point obtained by reflecting $I$ over the perpendicular bisector of $B C$, and let $Q$ be the other intersection of the circumcircles of the triangles $A B C$ and $A P D$. Prove that $\\angle B A Q = \\angle C A J$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nLet $A I$ intersect the circumcircle of triangle $A B C$ for the second time at $T$. It is known that $T$ is the centre of the circumcircle of triangle $B I C$ and due to symmetry the point $J$ lies on this circle as well.\nSince\n$$\n\\angle B Q P = \\angle A Q P - \\angle A Q B = \\pi - \\angle A D P - \\angle A C B = \\angle D A C = \\angle B A T = \\angle B Q T\n$$\nthe points $T$, $P$, and $Q$ are collinear.\nNow let $T J$ intersect $B C$ at $S$. We have $I J \\parallel B C$ and the triangle $J T I$ is isosceles, so $S T D$ is isosceles as well. The same applies to $D P I$ and as their base angles are both equal to\n$$\n\\frac{\\pi - \\angle A C B + \\angle C B A}{2}\n$$\nwe must have $\\angle I T S = \\angle I P S$ as well, meaning that the quadrilateral $I P T S$ is cyclic. It follows that $\\angle S P T = \\angle S I T$.\nTheir angles being equal, the triangles $T A B$ and $T B D$ are similar, whence\n$$\n\\frac{|T D|}{|T B|} = \\frac{|T B|}{|T A|}\n$$\nIn view of $|T D| = |T S|$ and $|T B| = |T I| = |T J|$ this yields\n$$\n\\frac{|T S|}{|T I|} = \\frac{|T J|}{|T A|}\n$$\nwhich proves $I S \\parallel A J$. It follows that $\\angle S I T = \\angle J A T$, which in combination with the result of our third paragraph proves\n$$\n\\angle I A Q = \\pi - \\angle Q P D = \\angle S P T = \\angle J A T\n$$\nUsing $\\angle T A C = \\angle B A I$ we get $\\angle J A C = \\angle B A Q$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34926, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all pairs of positive integers $(a, b)$ such that\n$$\na! + b! = a^{b} + b^{a}\n$$", "options": [], "answer": "(a, b) = (1, 1), (1, 2), (2, 1)", "solution": "Solution:\nIf $a = b$, the equation reduces to $a! = a^{a}$. Since $a^{a} > a!$ for $a \\geqslant 2$, the only solution in this case is $a = b = 1$.\n\nIf $a = 1$, the equation reduces to $b! = b$, which gives an additional solution $a = 1, b = 2$.\n\nWe prove $a = b = 1$; $a = 1, b = 2$ and $a = 2, b = 1$ are the only solutions of the Diophantine equation.\n\nAssume $a, b$ is another solution satisfying $1 < a < b$ (the case $1 < b < a$ is symmetric). This implies $a \\mid b!$ and consequently $a \\mid b^{a}$. Let $p$ be a prime factor of $a$. By just argued, also $p \\mid b$. We compare the exponent of $p$ in prime factorizations of both sides of the equation. LHS of the equation can be rewritten as $a!\\left(\\frac{b!}{a!} + 1\\right)$. Since $p \\mid b$ and $b > a$ we have $p \\left\\lvert\\, \\frac{b!}{a!}\\right.$ and hence, $\\frac{b!}{a!} + 1$ is coprime to $p$. Thus, the exponent in prime factorization of LHS equals the exponent of $p$ in prime factorization of $a!$. It is well known, that this equals\n$$\n\\sum_{k=1}^{\\infty} \\left\\lfloor \\frac{a}{p^{k}} \\right\\rfloor = \\left\\lfloor \\frac{a}{p} \\right\\rfloor + \\left\\lfloor \\frac{a}{p^{2}} \\right\\rfloor + \\left\\lfloor \\frac{a}{p^{3}} \\right\\rfloor + \\ldots\n$$\nWe have $\\sum_{k=1}^{\\infty} \\left| \\frac{a}{p^{k}} \\right| < \\frac{a}{p} + \\frac{a}{p^{2}} + \\cdots = a\\left(\\frac{1}{p-1}\\right) \\leqslant a$. The exponent of $p$ in prime factorization of RHS is however at least $a$ since $p \\mid a$, $p \\mid b$ and $b > a$. This contradicts the assumption that $a, b$ is a solution. Therefore there are no solutions to the equation, when $a, b \\geqslant 2$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34927, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $n \\geqslant 2$ be an integer. Determine the number of positive integers $m$ such that $m \\leqslant n$ and $m^{2}+1$ is divisible by $n$.", "options": [], "answer": "Let n = 2^α · ∏ p_i^{α_i} · ∏ q_j^{β_j}, where each p_i ≡ 1 (mod 4) and each q_j ≡ 3 (mod 4). Then D(n), the count of m with 1 ≤ m ≤ n and n | (m^2 + 1), satisfies:\n- If α ≥ 2 or any β_j ≥ 1, then D(n) = 0.\n- If α ∈ {0,1} and all odd prime factors are ≡ 1 (mod 4), then D(n) = 2^r, where r is the number of distinct primes p_i.\nIn particular, D(2) = 1.", "solution": "Solution:\nLet $D(n)$ be the number of positive integers $m$ such that $m \\leqslant n$ and $m^{2}+1$ is divisible by $n$.\nNo number of the form $m^{2}+1$ is divisible by $4$, so if $4$ divides $n$, we have $D(n)=0$. It is also known that $D(n)=0$ if $n$ is divisible by some number of the form $4k+3$. Furthermore, $D(2)=1$.\n\n1. Assume first that $n=p$ is an odd prime of the form $4k+1$. We show that $D(p)=2$.\n\nLemma: If $p=4k+1$, where $k$ is a positive integer and $p$ is a prime number, and if $S=\\{x_{1}, \\ldots, x_{p}\\}$ is a complete residue system modulo $p$, then there exist exactly two elements $x \\in S$ for which $x^{2} \\equiv -1 \\pmod{p}$.\n\nFirst, we will prove that the congruence equation $x^{2} \\equiv -1 \\pmod{p}$ has at least one solution if $p \\equiv 1 \\pmod{4}$.\nUsing Wilson's theorem, we have\n$$\n\\left(1 \\cdot 2 \\cdots \\frac{p-1}{2}\\right) \\cdot \\left((p-1)(p-2) \\cdots \\left(p-\\frac{p-1}{2}\\right)\\right) \\equiv \\left(\\left(\\frac{p-1}{2}\\right)!\\right)^{2} \\equiv -1 \\pmod{p}\n$$\nthus $x=\\left(\\frac{p-1}{2}\\right)!$ is a solution.\nFurthermore, if $x_{i} \\in S$ is a solution then $x_{j}=p-x_{i} \\in S$ is also a solution. If $p=2q+1$, exactly one of the numbers $x_{i}, x_{j}$ is smaller than or equal to $q$. We can assume that $x_{i} \\leqslant q$. If the given congruence equation had another solution $x_{k} \\in S$, we could, by the same argument, assume that $x_{k} \\leqslant q$. However, $x_{i}^{2} \\equiv x_{k}^{2} \\equiv -1 \\pmod{p}$ implies that $p$ divides $(x_{k}-x_{i})(x_{k}+x_{i})$, which is impossible since $x_{i}, x_{k} \\leqslant q$.\nThis completes the proof of the lemma.\n\n2. Now let $n=p^{k}$ be a prime power where $p$ is congruent to $1$ modulo $4$. We will prove by induction that $D\\left(p^{k}\\right)=2$.\nInduction basis, the case for $k=1$, is the previous step.\nAssume that $D\\left(p^{k}\\right)=2$ for some positive integer $k$.\nLet $i$ and $j$ be those two integers less than $p^{k}$ such that $i^{2}+1$ and $j^{2}+1$ are divisible by $p^{k}$.\nThen all numbers less than $p^{k+1}$ that satisfy the congruence equation $x^{2} \\equiv -1 \\pmod{p^{k}}$ are the following numbers:\n$$\nm p^{k}+i, \\quad \\text{for } m=0, \\ldots, p-1 \\quad \\text{and} \\quad m p^{k}+j, \\quad \\text{for } m=0, \\ldots, p-1\n$$\nExactly one of the numbers $\\frac{(m p^{k}+i)^{2}+1}{p^{k}}$ (for $m=0, \\ldots, p-1$) is divisible by $p$, i.e. exactly one among numbers $(m p^{k}+i)^{2}+1$ (for $m=0, \\ldots, p-1$) is divisible by $p^{k+1}$.\nTo prove that, assume the opposite - that there are two such numbers, namely $(m_{1} p^{k}+i)^{2}+1$ and $(m_{2} p^{k}+i)^{2}+1$. This means that the number\n$$\n\\begin{aligned}\n& \\frac{(m_{1} p^{k}+i)^{2}+1}{p^{k}}-\\frac{(m_{2} p^{k}+i)^{2}+1}{p^{k}} \\\\\n= & \\frac{(m_{1} p^{k}+i-m_{2} p^{k}-i)(m_{1} p^{k}+i+m_{2} p^{k}+i)}{p^{k}} \\\\\n= & (m_{1}-m_{2})(p^{k}(m_{1}+m_{2})+2i)\n\\end{aligned}\n$$\nis divisible by $p$ which is impossible because neither $m_{1}-m_{2}$ nor $i$ are divisible by $p$.\nIn the same way, we conclude that exactly one of the numbers $(m p^{k}+j)^{2}+1$ (for $m=0, \\ldots, p-1$) is divisible by $p^{k+1}$.\nTherefore, $D\\left(p^{k+1}\\right)=2$.\n\n3. Next, assume that $n=p^{a} q^{b}$ where $p$ and $q$ are two distinct prime numbers of the form $4k+1$, for positive integers $k$, then $D\\left(p^{a} q^{b}\\right)=4$ for all positive integers $a$ and $b$.\nAccording to above, $D\\left(p^{a}\\right)=2$.\nLet $i$ and $j$ be those two positive integers smaller than $p^{a}$ such that $i^{2}+1$ and $j^{2}+1$ are both divisible by $p^{a}$.\nAll numbers smaller than $p^{a} q^{b}$ that satisfy the congruence equation $x^{2} \\equiv -1 \\pmod{p^{a}}$ are the following:\n$$\nm p^{a}+i \\text{ for } m=0, \\ldots, q^{b}-1 \\text{ and } \\quad m p^{a}+j \\quad \\text{for } m=0, \\ldots, q^{b}-1\n$$\nSince $\\{0,1,2, \\ldots, q^{b}-1\\}$ is a complete residue system modulo $q^{b}$, the same is true for $\\{0, p^{a}, 2 p^{a}, \\ldots, (q^{b}-1) p^{a}\\}$ (because $p^{a}$ and $q^{b}$ are relatively prime), hence $T=\\{i, p^{a}+i, 2 p^{a}+i, \\ldots, (q^{b}-1) p^{a}+i\\}$ is a complete residue system modulo $q^{b}$, as well.\nLemma implies that there are exactly two elements of the set $T$ that satisfy the congruence equation $x^{2} \\equiv -1 \\pmod{q^{b}}$.\nIn the same way, there are exactly two elements of $\\{j, p^{a}+j, 2 p^{a}+j, \\ldots, (q^{b}-1) p^{a}+j\\}$ that satisfy the congruence equation $x^{2} \\equiv -1 \\pmod{q^{b}}$.\nTherefore, $D\\left(p^{a} q^{b}\\right)=4$.\nUsing the previous part inductively, we conclude that $D\\left(p_{1}^{\\alpha_{1}} \\cdots p_{n}^{\\alpha_{n}}\\right)=2^{n}$ for distinct odd prime numbers $p_{i}, i=1,2, \\ldots, n$.\n\n4. Finally, we show that $D\\left(p_{1}^{\\alpha_{1}} \\cdots p_{n}^{\\alpha_{n}}\\right)=D\\left(2 p_{1}^{\\alpha_{1}} \\cdots p_{n}^{\\alpha_{n}}\\right)$, if $p_{i}, i=1,2, \\ldots, n$ are distinct odd prime numbers, all congruent to $1$ modulo $4$.\nLet $a=p_{1}^{\\alpha_{1}} \\cdots p_{n}^{\\alpha_{n}}$.\nIf $i_{1}, i_{2}, i_{3}, \\ldots, i_{2^{n}}$ are all positive integers less than $a$ that satisfy the congruence equation $x^{2} \\equiv -1 \\pmod{a}$, then all positive integers less than $2a$ that satisfy that equation are the following:\n$$\n\\delta a+i_{j}, \\quad j=1,2,3, \\ldots, 2^{n} \\quad \\text{for } \\delta=0,1\n$$\nHowever, exactly one of the numbers $i_{j}^{2}+1$ and $(a+i_{j})^{2}+1$ is even, which implies that $D\\left(p_{1}^{\\alpha_{1}} \\cdots p_{n}^{\\alpha_{n}}\\right)=D\\left(2 p_{1}^{\\alpha_{1}} \\cdots p_{n}^{\\alpha_{n}}\\right)$.\nThus we conclude that\n$$\nD\\left(p_{1}^{\\alpha_{1}} \\cdots p_{n}^{\\alpha_{n}}\\right)=D\\left(2 p_{1}^{\\alpha_{1}} \\cdots p_{n}^{\\alpha_{n}}\\right)=2^{n}\n$$\nfor distinct odd prime numbers $p_{i}, i=1,2, \\ldots, n$.\nSolution:\nNo number of the form $m^{2}+1$ is divisible by $4$, so if $4$ divides $n$, we have $D(n)=0$.\nAlso $D(2)=1$.\nWrite $n=p_{0}^{\\alpha_{0}} p_{1}^{\\alpha_{1}} \\cdots p_{k}^{\\alpha_{k}}$ with $p_{0}=2, \\alpha_{0} \\in\\{0,1\\}$ and $p_{i}$ odd and $\\alpha_{i} \\geqslant 1$ for $i \\geqslant 1$.\nThe problem is to find the number of residue classes $m$ modulo $n$ with $m^{2} \\equiv -1 \\pmod{n}$.\nIt is clear that $m^{2} \\equiv -1 \\pmod{n}$ if and only if $m^{2} \\equiv -1 \\pmod{p_{i}^{\\alpha_{i}}}$ for all $i$.\nWe use the following lemma.\n\nLemma: Let $p$ be a prime number and $\\alpha \\geqslant 1$. Then the number of residue classes $m$ fulfilling\n$$\nm^{2} \\equiv -1 \\quad \\pmod{p^{\\alpha}}\n$$\nequals\n$$\n\\begin{cases}\n0 & \\text{if } p \\equiv 3 \\pmod{4} \\\\\n1 & \\text{if } p^{\\alpha}=2 \\\\\n2 & \\text{if } p \\equiv 1 \\pmod{4}\n\\end{cases}\n$$\nProof of lemma: For $p^{\\alpha}=2$, there is nothing to show. It is well-known that $-1$ is a quadratic residue modulo an odd prime $p$ if and only if $p \\equiv 1 \\pmod{4}$. We now assume $p \\equiv 1 \\pmod{4}$.\nIt is also known (Hensel lifting) that if some $b$ is a quadratic residue modulo some odd prime $p$, then $b$ is also a quadratic residue modulo $p^{\\alpha}$.\nThus there is at least one residue class $m$ with $m^{2} \\equiv -1 \\pmod{p^{\\alpha}}$. Another residue class $r$ is also a solution $r^{2} \\equiv -1 \\pmod{p^{\\alpha}}$ if and only if $m^{2} \\equiv r^{2} \\pmod{p^{\\alpha}}$ or equivalently $p^{\\alpha} \\mid (m-r)(m+r)$. We have $\\gcd(m+r, m-r) \\mid 2m$ which is coprime to $p^{\\alpha}$. Thus $r \\equiv \\pm m \\pmod{p^{\\alpha}}$.\nThus $m^{2} \\equiv -1 \\pmod{p^{\\alpha}}$ has exactly two solutions. This proves the lemma.\n\nBy the lemma, $\\alpha_{0}$ does not influence the result. For each $1 \\leqslant i \\leqslant k$, there are two choices for $m$ modulo $p_{i}^{\\alpha_{i}}$, thus there are $2^{k}$ choices for $m$ modulo $n$ by the Chinese remainder theorem.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34928, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $n \\geqslant 2$ be an integer and $x_{1}, x_{2}, \\ldots, x_{n}$ be real numbers satisfying\n(a) $x_{j}>-1$ for $j=1,2, \\ldots, n$ and\n(b) $x_{1}+x_{2}+\\cdots+x_{n}=n$.\nProve the inequality\n$$\n\\sum_{j=1}^{n} \\frac{1}{1+x_{j}} \\geqslant \\sum_{j=1}^{n} \\frac{x_{j}}{1+x_{j}^{2}}\n$$\nand determine when equality holds.", "options": [], "answer": "Equality holds if and only if all the numbers are equal to 1.", "solution": "Solution:\nWe have to prove\n$$\n\\sum_{j=1}^{n} \\frac{1}{1+x_{j}}-\\sum_{j=1}^{n} \\frac{x_{j}}{1+x_{j}^{2}}=\\sum_{j=1}^{n} \\frac{1-x_{j}}{\\left(1+x_{j}\\right)\\left(1+x_{j}^{2}\\right)} \\geqslant 0\n$$\nWe use the supporting line method and consider the function $f$ defined by\n$$\nf(x)=\\frac{1-x}{(1+x)\\left(1+x^{2}\\right)}\n$$\nfor all $x>-1$. The tangent line of $f$ at $x=1$ is given by $y=\\frac{1-x}{4}$. We claim that\n$$\nf(x)=\\frac{1-x}{(1+x)\\left(1+x^{2}\\right)} \\geqslant \\frac{1-x}{4}\n$$\nfor all $x>-1$ with equality for $x=1$. For $x \\geqslant 1$ we get $4 \\leqslant(1+x)\\left(1+x^{2}\\right)$ and for $-10$ for $j=1,2, \\ldots, n$, Cauchy-Schwarz inequality yields\n$$\n\\sum_{j=1}^{n} \\frac{1}{1+x_{j}} \\cdot \\sum_{j=1}^{n}\\left(1+x_{j}\\right) \\geqslant\\left(\\sum_{j=1}^{n} 1\\right)^{2}\n$$\nwhich is equivalent to\n$$\n\\sum_{j=1}^{n} \\frac{1}{1+x_{j}} \\geqslant \\frac{n}{2}\n$$\nIt therefore suffices to prove that\n$$\n\\sum_{j=1}^{n} \\frac{x_{j}}{1+x_{j}^{2}} \\leqslant \\frac{n}{2}\n$$\nbut this last inequality is equivalent to the trivial one\n$$\n\\sum_{j=1}^{n} \\frac{\\left(1-x_{j}\\right)^{2}}{1+x_{j}^{2}} \\geqslant 0\n$$\nso the inequation is proven.\nIn the last equation, we have equality if and only if $x_{j}=1$ for $j=1,2, \\ldots, n$, and one can easily see that this is indeed a case of equality, so it is the only case of equality.\nSolution:\nThe inequality is equivalent to\n$$\n\\sum_{i=1}^{n} \\frac{1-x_{i}}{\\left(1+x_{i}\\right)\\left(1+x_{i}^{2}\\right)} \\geqslant 0\n$$\nAs the functions $f(x)=1-x$ and $g(x)=\\frac{1}{(1+x)\\left(1+x^{2}\\right)}$ are both strictly decreasing, we can apply the Chebychev inequality to obtain:\n$$\nn \\cdot \\sum_{i=1}^{n} \\frac{1-x_{i}}{\\left(1+x_{i}\\right)\\left(1+x_{i}^{2}\\right)} \\geqslant\\left(\\sum_{i=1}^{n} 1-x_{i}\\right)\\left(\\sum_{i=1}^{n} \\frac{1}{\\left(1+x_{i}\\right)\\left(1+x_{i}^{2}\\right)}\\right)=0\n$$\nSo we're done.\nSolution (via Lagrange multipliers):\nLet us write $f(x)=\\frac{1}{1+x}-\\frac{x}{1+x^{2}}$. We want to show that the expression $f\\left(x_{1}\\right)+\\ldots+f\\left(x_{n}\\right)$ in the domain\n$$\nD: x_{1}, \\ldots, x_{n}>-1, x_{1}+\\ldots+x_{n}=n\n$$\nattains its minimal value 0 exactly at the point $x_{1}=\\ldots=x_{n}=1$.\nWe first consider the boundary of $D$. This means that w. l. o. g. we may assume that $x_{1}=-1$, in which case the expression attains the value $+\\infty$, which is not the minimum.\nWe now look for minima in the interior of the domain: The method of Lagrange multipliers gives the Langrange function\n$$\nF\\left(x_{1}, \\ldots, x_{n}, \\lambda\\right)=\\sum_{j=1}^{n}\\left(f\\left(x_{j}\\right)-\\lambda\\left(x_{j}-1\\right)\\right)\n$$\nand results in the system of equations\n$$\n\\begin{aligned}\nf^{\\prime}\\left(x_{j}\\right) & =\\lambda, \\quad j=1, \\ldots, n \\\\\n\\sum_{j=1}^{n} x_{j} & =n\n\\end{aligned}\n$$\nNow note that\n- $f^{\\prime}(x)=\\frac{-1}{(1+x)^{2}}+\\frac{x^{2}-1}{\\left(1+x^{2}\\right)^{2}}=\\frac{2\\left(x^{3}-x^{2}-x-1\\right)}{(1+x)^{2}\\left(1+x^{2}\\right)^{2}}$.\n- $f^{\\prime}(x)<0$ for $-10$ for $x>2$. This can be seen from the second expression for $f^{\\prime}(x)$, since for $x>2$ we have $1+x+x^{2}<\\frac{x^{3}}{8}+\\frac{x^{3}}{4}+\\frac{x^{3}}{2}0$ for $-1\\frac{1}{(1+x)\\left(1+x^{2}\\right)}\n$$\nThus we get\n$$\n\\begin{aligned}\n& f^{\\prime \\prime}(x)> \\frac{2 x\\left(3-x^{2}\\right)}{\\left(1+x^{2}\\right)^{3}}+\\frac{2}{(1+x)\\left(1+x^{2}\\right)}=\\frac{2 x\\left(3-x^{2}\\right)(1+x)+2\\left(1+x^{2}\\right)^{2}}{(1+x)\\left(1+x^{2}\\right)^{3}}= \\\\\n&= \\frac{\\left(6 x+6 x^{2}-2 x^{3}-2 x^{4}\\right)+\\left(2+4 x^{2}+2 x^{4}\\right)}{(1+x)\\left(1+x^{2}\\right)^{3}}=\\frac{2+6 x+10 x^{2}-2 x^{3}}{(1+x)\\left(1+x^{2}\\right)^{3}}= \\\\\n&=\\frac{\\frac{1}{2}(2+3 x)^{2}+\\frac{11}{2} x^{2}-2 x^{3}}{(1+x)\\left(1+x^{2}\\right)^{3}}>0\n\\end{aligned}\n$$\n- For $0 \\leqslant x \\leqslant \\sqrt{3}$, the assertion is obvious.\n- For $\\sqrt{3}\\frac{2}{27}, \\quad \\frac{2 x\\left(3-x^{2}\\right)}{\\left(1+x^{2}\\right)^{3}}=-\\frac{2 x\\left(x^{2}-3\\right)}{\\left(1+x^{2}\\right)^{3}}>-\frac{2 \\cdot 2\\left(2^{2}-3\\right)}{\\left(1+\\sqrt{3}^{2}\\right)^{3}}=-\\frac{1}{16}>-\\frac{2}{27}\n$$\n- Hence $f^{\\prime}$ is strictly increasing for $-1 45^{\\circ}$ and with circumcentre $O$. The point $P$ lies in its interior such that the points $A, P, O, B$ lie on a circle and $BP$ is perpendicular to $CP$. The point $Q$ lies on the segment $BP$ such that $AQ$ is parallel to $PO$.\nProve that $\\Varangle QCB = \\Varangle PCO$.\n\n![](attached_image_1.png)", "options": [], "answer": "Detailed solution", "solution": "Solution:\nSince $\\Varangle BAC > 45^{\\circ}$, we have $\\Varangle BOC > 90^{\\circ}$, and the points $A, P, O, B$ lie on a circle in this order.\nInstead of the equality $\\Varangle QCB = \\Varangle PCO$, we show the equivalent statement $\\Varangle OCB = \\Varangle PCQ$.\nWe know that $\\Varangle OCB = 90^{\\circ} - \\Varangle BAC$ and $\\Varangle PCQ = 90^{\\circ} - \\Varangle CQP$. So we just need to show $\\Varangle BAC = \\Varangle CQP$. By the construction of $P$ and $Q$, we have\n$$\n\\Varangle PQA = \\Varangle QPO = \\Varangle BPO = \\Varangle BAO = \\Varangle OBA = 180^{\\circ} - \\Varangle APO = \\Varangle QAP\n$$\nso the triangle $AQP$ is isosceles with $PA = PQ$. Thus if $Q'$ denotes the point obtained by reflecting $Q$ about $P$, then $\\Varangle QAQ' = 90^{\\circ}$.\nMoreover, reusing some part of the above calculation and exploiting that $O$ is the circumcentre of $ABC$, we find\n$$\n\\Varangle AQ'B = \\Varangle AQ'Q = 90^{\\circ} - \\Varangle Q'QA = 90^{\\circ} - \\Varangle PQA = 90^{\\circ} - \\Varangle OBA = \\Varangle ACB,\n$$\nwhich proves that the quadrilateral $ABCQ'$ is cyclic. Finally, since $\\Varangle QPC = 90^{\\circ}$ and $PQ = PQ'$, the triangle $Q'QC$ is isosceles with $CQ = CQ'$, whence\n$$\n\\Varangle CQP = \\Varangle CQQ' = \\Varangle QQ'C = \\Varangle BQ'C = \\Varangle BAC,\n$$\nas we wanted to show.\n\nAnother solution of the second part:\nLet $Q'$ be the point of intersection of $BP$ with the circumcircle of the triangle $ABC$. Then we have\n$$\n\\Varangle BQ'C = \\Varangle BAC = \\alpha \\quad \\text{and} \\quad \\Varangle AQ'B = \\Varangle ACB = \\gamma.\n$$\nSince $\\Varangle Q'PA = 180^{\\circ} - \\Varangle APB = 180^{\\circ} - 2\\gamma$ we get $\\Varangle PAQ' = 180^{\\circ} - \\Varangle AQ'B - \\Varangle Q'PA = \\gamma$ and triangle $APQ'$ is isosceles with $PQ' = PA$. Therefore we get $PQ = PA = PQ'$ and the point $P$ is the midpoint of $QQ'$.\nFinally, since $\\Varangle QPC = 90^{\\circ}$ and $PQ = PQ'$, the triangle $Q'QC$ is isosceles with $CQ = CQ'$. Therefore\n$$\n\\Varangle CQP = \\Varangle QQ'C = \\Varangle BAC,\n$$\nas we wanted to show.\n\n![](attached_image_2.png)\nSolution:\nSince $\\Varangle BAC > 45^{\\circ}$, we have $\\Varangle BOC > 90^{\\circ}$, and the points $A, P, O, B$ lie on a circle in this order.\nInstead of showing the equality $\\Varangle QCB = \\Varangle PCO$, we prove the equivalent statement $\\Varangle OCB = \\Varangle PCQ$.\nLet $Y$ be the point of intersection of $AQ$ with the circle through $A, O$ and $B$. Due to $PO \\parallel AY$ the quadrilateral $AYOP$ is an isosceles trapezoid with $PA = OY$. Since $AO = OB$, we can conclude $OP = YB$, e.g. by proving the congruence of the triangles $AOP$ and $OBY$. Therefore, $PBYO$ is an isosceles trapezoid as well and we get that $PQYO$ is a parallelogram.\nThe triangle $AQP$ is isosceles due to $PA = OY = PQ$ and, in addition, similar to triangle $ABO$ because of $\\Varangle APB = \\Varangle AOB$.\nNow let $Z$ be the midpoint of $BC$. Since $\\Varangle BPC = 90^{\\circ}$, we know that $Z$ is the center point of the circle through $P, B$ and $C$. Hence we get $ZC = ZP = ZB$. Since triangle $PBZ$ is isosceles, we have $\\Varangle ZBP = \\Varangle BPZ$. Because of $\\Varangle ZBP = \\Varangle ZBY + \\Varangle YBP$ and $\\Varangle BPZ = \\Varangle BPO + \\Varangle OPZ$ and $\\Varangle YBP = \\Varangle BPO$, we conclude $\\Varangle ZBY = \\Varangle OPZ$. Now we have the equality of two corresponding sides and the enclosed angle. Therefore, the triangles $YBZ$ and $POZ$ are congruent, yielding $OZ = YZ$.\nSince $\\Varangle OZY = 90^{\\circ} - \\Varangle YZB = 90^{\\circ} - \\Varangle PZO = \\Varangle CZP$ and $ZC = ZP$, we see that the triangles $OYZ$ and $CPZ$ are similar. Therefore, we get\n$$\n\\frac{CP}{OY} = \\frac{CZ}{OZ}, \\quad \\text{hence} \\quad \\frac{CP}{PQ} = \\frac{CZ}{OZ}\n$$\nNow the similarity of the triangles $PQC$ and $OZC$ follows from $\\Varangle QPC = \\Varangle CZO = 90^{\\circ}$ and we get $\\Varangle PCQ = \\Varangle OCZ = \\Varangle OCB$, which completes the proof.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34931, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all functions $f: \\mathbb{N} \\rightarrow \\mathbb{N}$ such that $f(a)+f(b)$ divides $2(a+b-1)$ for all $a, b \\in \\mathbb{N}$.", "options": [], "answer": "f(n) = 1 for all n, and f(n) = 2n - 1 for all n", "solution": "Solution:\nWe will first prove that $f$ is either injective or bounded.\nAssume that we have $f(m)=f(n)=t$ for some $m$ and $n$. If we plug in $m$ and $n$ as $b$, we get respectively:\n$$\n\\begin{aligned}\n& f(a)+t \\mid 2(a+m-1) \\\\\n& f(a)+t \\mid 2(a+n-1)\n\\end{aligned}\n$$\nSince the divisor of two numbers must divide their difference, we get $f(a)+t \\mid 2 m-2 n$. That means that if $f$ is not bounded, it is injective, because then we must have $m=n$.\n\nCase 1: $f$ is injective\nIf we put $a=b=1$ in the given relation, we get $f(1)=1$. Putting $a=b$ gives us $f(a) \\mid 2 a-1$. Since $f$ is injective, we can now prove by induction that $f(a)=2 a-1$ for $a=2,3, \\ldots$ since all smaller divisors of $2 a-1$ are already attained by previous values of $f$.\n\nCase 2: $f$ is bounded\nIf $f$ is bounded, the maximum of $f$ exists and for any $a \\in \\mathbb{N}$ we can choose a prime $p$ that is greater than $a$ and at least three times greater than this maximum. We can now choose $b \\in \\mathbb{N}$ such that $a+b-1=p$ and we get $f(a)+f(b) \\mid 2 p$. Clearly, $f(a)+f(b)1$ implies $f(a+2)=2 a+3$. Setting $b=a+2$ gives $f(a+2)+2 a-1 \\mid 2(2 a+1)$. If $f(a+2)=1$, then $a \\mid 2 a+1$. This implies $a=1$, which was excluded. Therefore, the odd number $f(a+2)$ is greater than 2, so $f(a+2)+2 a-1$ is a divisor of $2(2 a+1)$ that is greater than $2 a+1$ (half of $2(2 a+1)$). Thus $f(a+2)+2 a-1$ must be equal to $2(2 a+1)$, which gives $f(a+2)=2 a+3$ as desired.\n\nTherefore, $f(2)=3$ implies $f(4)=7$. Now, setting $a=3$ and $b=4$ gives $f(3)+7 \\mid 12$, which implies $f(3)=5$.\n\nSince we now know that $f(a)=2 a-1$ holds for $1,2,3,4$ and we can use induction in steps of two, we get $f(a)=2 a-1$ for all $a$, which is clearly a solution.\n\nThe two solutions are $f(a)=1$ for all $a$ and $f(a)=2 a-1$ for all $a$.\nSolution:\nWe have $f(1)=1$ and $f(a) \\mid(2 a-1)$ as in the previous solution.\nIf $f(2)=1$, then $f(a)=1$ for all $a$ as in the previous solution.\nTherefore, we only have to consider $f(2)=3$. We easily check that $f(a)=2 a-1$ for all $a$ is a solution.\n\nChoose $k$ maximally such that $f(a)=2 a-1$ holds for all $1 \\leqslant a \\leqslant k$. Then setting $a=k$ and $b=k+1$ yields\n$$\n2 k-1+f(k+1)=f(k)+f(k+1) \\mid 4 k\n$$\nwhich by maximality of $k$ implies that $f(k+1)=1$.\n\nSetting $a=k-1$ and $b=k+1$ yields\n$$\n2 k-2=f(k-1)+f(k+1) \\mid 2(k-1+k+1-1)=4 k-2\n$$\nwhich also implies $2 k-2 \\mid((4 k-2)-2(2 k-2))=2$ and thus $k=2$.\n\nWe conclude that $f(3)=1$ and $f(4) \\mid 7$. If $f(4)=1$, then\n$$\n4=f(2)+f(4) \\mid 10\n$$\na contradiction. Thus $f(4)=7$. This leads to the contradiction\n$$\n8=f(3)+f(4) \\mid 12\n$$\nThus there are only the constant solution and the solution $f(a)=2 a-1$ for all $a$.\nSolution:\nWe have $f(1)=1$ and $f(a) \\mid(2 a-1)$ as in the previous solutions.\nIf $f(2)=1$, then $f(a)=1$ for all $a$ as in the previous solutions.\nTherefore, we only have to consider $f(2)=3$.\n\nLet $p$ be a prime with $p \\equiv-1(\\bmod 4)$. Since we already know that $f(a) \\mid 2 a-1$, we get $f\\left(\\frac{p+1}{2}\\right) \\mid p$ which implies that $f\\left(\\frac{p+1}{2}\\right)$ is either 1 or $p$.\n\nIf $f\\left(\\frac{p+1}{2}\\right)=1$ then we choose $a=2$ and $b=\\frac{p+1}{2}$ in the original equation and get $4 \\mid p+3$ which is impossible. Therefore, $f\\left(\\frac{p+1}{2}\\right)=p$ for all such primes $p$.\n\nNow we choose $b=\\frac{p+1}{2}$ in the original equation and get\n$$\nf(a)+p|2 a-1+p \\Longrightarrow f(a)+p| 2 a-1-f(a) \\text{.}\n$$\nSince there exist arbitrarily large primes $p$ with $p \\equiv-1(\\bmod 4)$, the right-hand side has to be 0, so $f(a)=2 a-1$ which is indeed a solution.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34932, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nDetermine all triples $(a, b, c)$ of real numbers satisfying the system of equations\n$$\n\\begin{aligned}\n& a^{2}+a b+c=0 \\\\\n& b^{2}+b c+a=0 \\\\\n& c^{2}+c a+b=0\n\\end{aligned}\n$$", "options": [], "answer": "{(0,0,0), (-1/2,-1/2,-1/2)}", "solution": "Solution:\nIf one of the numbers $a, b$ and $c$ is equal to zero, it is easy to see that the other two numbers also have to be equal to zero, which gives us the solution $(0,0,0)$.\nNow assume that $a, b, c \\neq 0$.\nIf all three numbers are positive, then the left-hand side of each equation is positive, while the right-hand sides are equal to zero, which is impossible.\nLet us assume that only one of the numbers is positive, and without loss of generality let it be $a$. Since $b, c<0$, it follows that $b^{2}+b c+a>0$, which is a contradiction.\nIt remains to consider the two following cases:\n\na. All three numbers are negative.\nWe substitute $a=-x, b=-y$ and $c=-z$, where $x, y, z>0$. The original system transforms into\n$$\n\\begin{aligned}\n& x^{2}+x y=z \\\\\n& y^{2}+y z=x \\\\\n& z^{2}+z x=y\n\\end{aligned}\n$$\nThe system is cyclic, so we can assume that $x \\leqslant y$ and $x \\leqslant z$. Now we have\n$$\n\\begin{aligned}\n& x^{2}+x y=z \\geqslant x \\Longrightarrow x+y \\geqslant 1 \\\\\n& y^{2}+y z=x \\leqslant y \\Longrightarrow y+z \\leqslant 1\n\\end{aligned}\n$$\nFrom the previous two inequalities we conclude that\n$$\nx+y \\geqslant 1 \\geqslant y+z, \\quad \\text{ i.e. } \\quad x \\geqslant z\n$$\nOn the other hand $x \\leqslant z$, so we get $x=z$.\nNow, from equation (1) it follows that $x+y=1$, while from equation (2) it follows that\n$$\nx=y^{2}+y z=y^{2}+y x=y(y+x)=y\n$$\nThus $x=y=z$ and from $x+y=1$ we see that $x=y=z=1 / 2$.\nWe easily verify that $(a, b, c)=\\left(-\\frac{1}{2},-\\frac{1}{2},-\\frac{1}{2}\\right)$ is indeed a solution.\n\nb. Exactly one of the numbers is negative.\nWithout loss of generality we can assume that $c$ is negative, while $a$ and $b$ are positive. From the second equation we conclude that $b(b+c)=-a<0$, thus $b+c<0$. The third equation yields $c(a+c)=-b<0$, thus $a+c>0$.\nAdding $a+b$ to the first equation and cyclic permutation yields\n$$\na+b+c=(1-a)(a+b)=(1-b)(b+c)=(1-c)(c+a)\n$$\nThe last product is positive. This implies that $1-a>0$ and $1-b<0$ by our above considerations. Therefore $00$ (note that $S=0$ would imply $x=y=z=0$ and hence $a=b=c=0$, which has already been excluded), we can split it into the inequalities $3 \\geqslant S$ and $S \\geqslant 3$, so we have equality and actually all the inequalities are equalities.\nThe case of equality for the triangle equality is when all nonzero $x, y, z$ have the same sign and, in view of equations 6, the only possibility is that $x, y, z$ are all negative. Moreover, in the last inequality, we have equality exactly when $x^{2}=y^{2}=z^{2}$ and, because they have the same sign, it means $x=y=z$. Finally, in view of $x y z=-1$, the only possibility is $x=y=z=-1$. By definition of $x, y, z$ the values of $a, b, c$ are then\n$$\n(a, b, c)=\\left(\\frac{-1}{2}, \\frac{-1}{2}, \\frac{-1}{2}\\right)\n$$\nand this is indeed a solution.\n\nThe solutions are\n$$(a, b, c) \\in\\left\\{(0,0,0),\\left(-\\frac{1}{2},-\\frac{1}{2},-\\frac{1}{2}\\right)\\right\\}$$", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34933, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $\\mathbb{R}$ denote the set of real numbers. Determine all functions $f: \\mathbb{R} \\rightarrow \\mathbb{R}$ such that\n$$\nf(x) f(y) = x f(f(y-x)) + x f(2x) + f\\left(x^{2}\\right)\n$$\nholds for all real numbers $x$ and $y$.", "options": [], "answer": "f(x) = 0 for all real x; f(x) = 3x for all real x", "solution": "Solution:\nWe set $x=0$ and get $f(0) f(y) = f(0)$, so $f(0) = 0$ or $f(y) = 1$ for all $y$. The latter leads to a contradiction.\nWe set $y = x + z$ and get\n$$\nf(x) f(x+z) = x f(f(z)) + x f(2x) + f\\left(x^{2}\\right)\n$$\nfor all $x$ and $z$. Setting $z=0$ yields\n$$\nf(x)^{2} = x f(2x) + f\\left(x^{2}\\right)\n$$\nWe set $C = f(1)$. For $x=1$ and $x=2$, we get $f(2) = C(C-1)$ and $f(4) = C^{2}(C-1)^{2} / 3$, respectively.\nIf $C=0$, so (1) with $x=1$ yields $f(f(z)) = f(2) = 0$, so (1) reads $f(x) f(x+z) = x f(2x) + f\\left(x^{2}\\right)$ for all $z$, which implies that $f(x) = 0$ for all $x$.\nSetting $x=1$ and $x=2$ in (1) leads to\n$$\n\\begin{aligned}\nC f(z+1) & = f(f(z)) + C^{2} \\\\\nC(C-1) f(z+2) & = 2 f(f(z)) + C^{2}(C-1)^{2}\n\\end{aligned}\n$$\nEliminating $f(f(z))$ and division by $C \\neq 0$ leads to\n$$\n(C-1) f(z+2) - 2 f(z+1) = C\\left(C^{2} - 2C - 1\\right)\n$$\nfor all $z$. Setting $z = -1$ leads to $C(C-1) = C\\left(C^{2} - 2C - 1\\right)$. In view of $C \\neq 0$, this implies $C=3$. Inserting this in (3), dividing by 2 and shifting $z$ leads to\n$$\nf(z+1) - f(z) = 3\n$$\nfor all $z$.\nWe set $z=1$ in (1) and get\n$$\nf(x)(f(x)+3) = 9x + x f(2x) + f\\left(x^{2}\\right)\n$$\nTogether with (2), we get $3 f(x) = 9x$, i.e., $f(x) = 3x$ for all $x$.\nBoth $f(x) = 3x$ and $f(x) = 0$ are solutions.\nSolution:\nAlternative Solution. Setting $x=0$ in the original equation gives $f(0) f(y) = f(0)$. If $f(0) \\neq 0$ then $f(x) = 1, x \\in \\mathbb{R}$, but this function does not satisfy the original equation. Hence, $f(0) = 0$.\nSetting $y=0$ and $y=x$ in the original equation we get\n$$\n0 = x f(f(-x)) + x f(2x) + f\\left(x^{2}\\right), \\quad f(x)^{2} = x f(2x) + f\\left(x^{2}\\right)\n$$\nIn combination this gives\n$$\n-x f(f(-x)) = f(x)^{2} \\quad \\text{and} \\quad x f(f(x)) = f(-x)^{2}, \\ x \\in \\mathbb{R}\n$$\nMultiplying the original equation by $y-x$ gives\n$(y-x) f(x) f(y) = x(y-x) f(f(y-x)) + (y-x)\\left(x f(2x) + f\\left(x^{2}\\right)\\right) = x f(x-y)^{2} + (y-x) f(x)^{2}$, which gives\n$$\nx f(x-y)^{2} = (y-x) f(x)(f(y) - f(x))\n$$\nNow setting $x=2y \\neq 0$ in (5) we get\n$$\n2y f(y)^{2} = -y f(2y)(f(y) - f(2y))\n$$\nand consequently\n$$\n0 = f(2y)^{2} - f(y) f(2y) - 2 f(y)^{2} = (f(2y) + f(y))(f(2y) - 2 f(y))\n$$\nThus, for any $y \\neq 0$ (and for $y=0$ as well) we have $f(2y) = -f(y)$ or $f(2y) = 2 f(y)$. Setting $y=2x \\neq 0$ in (5) we get\n$$\nx f(-x)^{2} = x f(x)(f(2x) - f(x))\n$$\nand consequently\n$$\nf(-x)^{2} + f(x)^{2} = f(x) f(2x)\n$$\nIf $f(2x) = -f(x)$ holds for some $x \\in \\mathbb{R}$, then $f(-x)^{2} + 2 f(x)^{2} = 0$ implies $f(-x) = f(x) = 0 = f(2x)$. Hence, the equality $f(2x) = 2 f(x)$ holds for all $x \\in \\mathbb{R}$.\nReplacing $y$ by $y+x$ in the original equation and using (4) gives\n$$\nf(x) f(x+y) = x f(f(y)) + x f(2x) + f\\left(x^{2}\\right) = x f(f(y)) + f(x)^{2}\n$$\nNow setting $y=x$ gives $2 f(x)^{2} = x f(f(x)) + f(x)^{2}$, which means $f(x)^{2} = x f(f(x))$. Multiplying (6) by $y$ yields\n$$\ny f(x) f(x+y) = x f(y)^{2} + y f(x)^{2}\n$$\nHere we can deduce that $f(x) = 0$ implies $x = 0$, unless $f$ is identically 0. Now we can interchange $x$ and $y$ and achieve $y f(x) f(x+y) = x f(y) f(x+y)$. Setting $y=1$ now gives $f(x) = x f(1)$ for all $x \\neq -1$. However, we also have\n$$\nf(-1) = \\frac{1}{2} f(-2) = \\frac{1}{2} \\cdot (-2) f(1) = -f(1)\n$$\nso $f(x) = x f(1)$ is valid for all $x$. Plugging in $f(x) = c x$ easily gives $c = 0$ or $c = 3$. Hence these are the two solutions.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34934, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nA tract of land in the shape of an $8 \\times 8$ square, whose sides are oriented north-south and east-west, consists of 64 smaller $1 \\times 1$ square plots. There can be at most one house on each of the individual plots. A house can only occupy a single $1 \\times 1$ square plot.\nA house is said to be blocked from sunlight if there are three houses on the plots immediately to its east, west and south.\nWhat is the maximum number of houses that can simultaneously exist, such that none of them is blocked from sunlight?\n\nRemark: By definition, houses on the east, west and south borders are never blocked from sunlight.", "options": [], "answer": "50", "solution": "Solution:\nLet us represent the tract as an $8 \\times 8$-chessboard, with cells colored black if the corresponding parcel is occupied, and white otherwise. We denote by $(i, j)$ the cell in the $i$-th row and $j$-th column (with the first row being the northernmost and the first column being the westernmost). We start by showing that an optimal configuration can be obtained by coloring all the cells along the east, south, and west borders.\n\nAssume that there is an optimal configuration in which one of those cells, for example $(i, 1)$, is left white. Since we have an optimal configuration, this cell cannot be colored black. This means that by coloring $(i, 1)$, we would block the cell $(i, 2)$. In other words, we know that the cells $(i, 2), (i, 3)$ and $(i+1, 2)$ are all colored black in this optimal configuration. However, we now see that we can color $(i, 1)$ instead of $(i, 2)$, keeping the same number of black cells and coloring $(i, 1)$, without disturbing any of the other cells.\n\nWe can apply the same reasoning to any of the cells $(1,1)-(8,1), (8,1)-(8,8)$ and, similarly, to $(8,8)-(1,8)$, thus showing that there is an optimal configuration in which all the cells along the E, S, W borders are colored black.\n\nThose cells being colored, we are left with a $7 \\times 6$ area of the board. We can now show that no more than 28 cells in this area can be colored black. In order to obtain 28, the average number of black cells per row has to be 4. However, if any row contains six black cells, the next row down cannot contain any black cells, since such a black cell would block the cell immediately north of it. Similarly, if a row were to contain 5 black cells, the next row down would be able to contain at most 3 black cells (namely in the cell immediately below the single white one and the two next to it). This shows that the average number of black cells per row in our $7 \\times 6$ area cannot be greater than 4.\n\n![](attached_image_1.png)\n(a)\n![](attached_image_2.png)\n(b)\nFigure 1: Alternative Solution\n\nThis gives us an upper bound on the total number of black cells: the 22 border cells plus 28 cells in the remaining $7 \\times 6$ area, i.e., 50 cells in total.\n\nAn example to show that 50 can indeed be achieved is the following. We color the columns $1,2,4,5,7,8$ and row 8 black, leaving the other cells white. This coloring clearly satisfies the conditions and contains exactly 50 black cells, completing the proof.\nSolution:\nBy building a house on each dark grey plot in Figure 1(a), we see that 50 houses can be built accordingly.\n\nWe will prove that no more than 50 houses can be built, or, equivalently, that at least 14 plots remain empty. Consider the $14$ $4 \\times 1$ rectangles in Figure 1(b) marked by their thick boundary. We will uniquely assign one empty plot to each of these 14 rectangles as follows:\n- if the rectangle contains at least one empty plot, assign to it the easternmost such plot;\n- if the rectangle contains no empty plots, assign to it the westernmost empty plot in the rectangle directly to the south of it.\n\nIn order to see that this assignment is feasible, note that if some rectangle contains no empty plots, then its two central houses are blocked from sunlight from the east and west. Therefore, the two central plots of the rectangle directly to the south of it must be empty, showing that we can indeed assign its westernmost empty plot to the original rectangle while leaving its easternmost empty plot unassigned. The above assignment is thus feasible and shows that there are at least 14 empty plots, concluding the proof.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34935, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nA class of high school students wrote a test. Every question was graded as either 1 point for a correct answer or 0 points otherwise. It is known that each question was answered correctly by at least one student and the students did not all achieve the same total score.\nProve that there was a question on the test with the following property: The students who answered the question correctly got a higher average test score than those who did not.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nLet $n$ be the number of the students in the class and $a$ their average score. Denote by $P$ and $S$ the set of all problems, and the set of all students respectively, and let $S(p)$ be the non-empty set of students who solved problem $p \\in P$. For any student $s$, let $\\operatorname{sc}(s)$ be the score of $s$. For any proposition $A$, let $[A]=1$ if $A$ is true and $0$ if $A$ is false.\n\nWe will prove the assertion by contradiction. Assume that on all questions the average test score of solvers was at most the general average $a$, that is\n$$\na \\geqslant \\frac{1}{|S(p)|} \\sum_{s \\in S(p)} \\operatorname{sc}(s) \\Leftrightarrow a|S(p)| \\geqslant \\sum_{s \\in S(p)} \\operatorname{sc}(s)\n$$\nWe now sum these inequalities over all problems $p \\in P$ to get\n$$\n\\begin{aligned}\n& a \\sum_{p \\in P}|S(p)| \\geqslant \\sum_{p \\in P} \\sum_{s \\in S(p)} \\operatorname{sc}(s) \\\\\n& \\Leftrightarrow \\quad a \\sum_{p \\in P} \\sum_{s \\in S}[s \\text{ solved } p] \\geqslant \\sum_{p \\in P} \\sum_{s \\in S}[s \\text{ solved } p] \\sum_{q \\in P}[s \\text{ solved } q] \\\\\n& \\Leftrightarrow \\quad a \\sum_{s \\in S} \\operatorname{sc}(s) \\geqslant \\sum_{s \\in S}\\left(\\sum_{p \\in P}[s \\text{ solved } p]\\right) \\cdot\\left(\\sum_{q \\in P}[s \\text{ solved } q]\\right) \\\\\n& \\Leftrightarrow \\quad \\frac{1}{n}\\left(\\sum_{s \\in S} \\operatorname{sc}(s)\\right)^{2} \\geqslant \\sum_{s \\in S} \\operatorname{sc}(s)^{2}\n\\end{aligned}\n$$\nHowever, this is the reverse of the inequality between the arithmetic and the quadratic mean. Since the case of equality, namely that $\\operatorname{sc}(s)$ is the same for all $s \\in S$, is excluded by the problem statement, we arrive at the desired contradiction.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34936, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $ABC$ be an acute-angled triangle with $AB \\neq AC$, and let $O$ be its circumcentre. The line $AO$ intersects the circumcircle $\\omega$ of $ABC$ a second time in point $D$, and the line $BC$ in point $E$. The circumcircle of $CDE$ intersects the line $CA$ a second time in point $P$. The line $PE$ intersects the line $AB$ in point $Q$. The line through $O$ parallel to $PE$ intersects the altitude of the triangle $ABC$ that passes through $A$ in point $F$.\nProve that $FP = FQ$.\n\n![](attached_image_1.png)", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nLet us denote $\\Varangle ABC$ by $\\beta$ and $\\Varangle BCA$ by $\\gamma$. Without loss of generality, $AB > AC$, or equivalently $\\beta < \\gamma$, as in the figure.\nSegment $AD$ is a diameter of $\\omega$, so by Thales' theorem we have $\\Varangle DCA = 90^{\\circ}$. Since the quadrilateral $CEDP$ is cyclic, we get $\\Varangle PED = 90^{\\circ}$, which immediately gives $\\Varangle AEQ = 90^{\\circ}$.\nSince $\\Varangle EAQ = \\Varangle OAB = 90^{\\circ} - \\gamma$, we also get $\\Varangle AQP = \\Varangle AQE = \\gamma$. Since $CEDP$ is cyclic, we get $\\Varangle ADP = \\Varangle EDP = 180^{\\circ} - \\Varangle PCE = \\Varangle ACB = \\gamma$. This means that the quadrilateral $AQDP$ is cyclic.\nLet us denote the circumcentre of $AQDP$ by $F'$. We show that $F = F'$.\nWe have $\\Varangle APQ = 180^{\\circ} - \\Varangle CAB - \\Varangle AQP = \\beta$. Hence $\\Varangle F'AQ = 90^{\\circ} - \\beta$, which implies that $F'$ lies on the altitude of $ABC$ that passes through $A$.\nMoreover, by definition $F'$ must lie on the perpendicular bisector of $AD$, which is the line through $O$ parallel to $PE$.\nSo we get $F' = F$, and consequently $FP = FQ$.\n\n![](attached_image_2.png)\nSolution:\n\nLet $\\alpha, \\beta$ and $\\gamma$ denote the angles of $ABC$ in the natural way.\nPoint $F$ is defined as the intersection point of the perpendicular bisector of diameter $AD$ with the altitude of triangle $ABC$ through $A$. We define points $P'$ and $Q'$ as the intersection points of the circle with center $F$ passing through $A$ (and therefore also through $D$) with sides $AC$ and $AB$, respectively. First we show $P = P'$.\nWe calculate\n$$\n\\begin{gathered}\n\\Varangle EDP' = \\Varangle ADP' = \\Varangle AQ'P' = \\Varangle AQ'F + \\Varangle FQ'P' = \\\\\n\\Varangle AQ'F + \\frac{180^{\\circ} - \\Varangle Q'FP'}{2} = 90^{\\circ} - \\beta + 90^{\\circ} - \\alpha = \\gamma = 180^{\\circ} - \\Varangle ECP'.\n\\end{gathered}\n$$\nSo we have that $P'$ is the intersection of the circumcircle of triangle $EDC$ with $AC$ and therefore we have $P = P'$.\nNow we prove $Q = Q'$. We have\n$$\n\\Varangle ABC = \\Varangle ADC = \\Varangle EDC = \\Varangle EPC = \\Varangle Q'PA = \\Varangle Q'DA = \\beta\n$$\nand therefore quadrilateral $BDEQ'$ is cyclic. Since $\\Varangle DBQ' = 90^{\\circ}$ we get $Q'E \\perp AD$. Together with $\\Varangle DEP' = \\Varangle DEP = 90^{\\circ}$ we have that $Q'$ lies on the line $PE$ and thus $Q' = Q$. Therefore we have proven $FP = FQ$.\nSolution:\n\nLet us denote $\\angle ABC$ by $\\beta$ and $\\angle BCA$ by $\\gamma$ and the foot of the altitude from $A$ by $G$. Without loss of generality let $AB > AC$, or equivalently $\\beta < \\gamma$, as in the figure.\n\n![](attached_image_3.png)\n\nLet $\\omega_1$ be the reflection of $\\omega$ about the angle bisector of $\\angle BAC$. Since $\\angle EAB = \\angle OAB = \\angle CAG = 90^{\\circ} - \\gamma$, the center $O_1$ of $\\omega_1$ lies on the altitude from $A$ and $AO = AO_1$. The circle $\\omega_1$ intersects $AB$ for the second time at $C_1$ with $AC = AC_1$ and $AC$ for the second time at $B_1$ with $AB = AB_1$.\nNow, if we can prove\n$$\nAC_1 : AQ = AB_1 : AP = AO_1 : AF\n$$\nthen there is a homothety with center $A$ which maps $C_1 \\rightarrow Q$, $B_1 \\rightarrow P$ and $O_1 \\rightarrow F$. Hence $P$ and $Q$ lie on a circle $\\omega_2$ with center $F$ and the problem is solved.\nTherefore it remains to prove $AC_1 : AQ = AB_1 : AP = AO_1 : AF$.\nThe triangles $AOF$ and $AGE$ are similar, so we have $AF = \\frac{AO \\cdot AE}{AG}$. Due to segment $AD$ being a diameter of $\\omega$, we have $\\angle DCA = 90^{\\circ}$ by Thales' theorem. Since the quadrilateral $CEDP$ is cyclic, we get $\\angle PED = 90^{\\circ}$, which immediately gives $\\angle AEQ = 90^{\\circ}$. Since $\\angle EAQ = \\angle OAQ = 90^{\\circ} - \\gamma$, we have $AQ = \\frac{AE}{\\sin \\gamma}$ and with $AC = \\frac{AG}{\\sin \\gamma}$, we get\n$$\nAC_1 : AQ = AC : AQ = \\frac{AG}{\\sin \\gamma} : \\frac{AE}{\\sin \\gamma} = AG : AE = AO : \\frac{AO \\cdot AE}{AG} = AO_1 : AF\n$$\nSimilarly we can prove $AB_1 : AP = AO_1 : AF$ and we are ready.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34937, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $ABC$ be a triangle with $AB \\neq AC$. The points $K, L, M$ are the midpoints of the sides $BC, CA, AB$, respectively. The inscribed circle of $ABC$ with centre $I$ touches the side $BC$ at point $D$. The line $g$, which passes through the midpoint of segment $ID$ and is perpendicular to $IK$, intersects the line $LM$ at point $P$.\n\nProve that $\\angle PIA = 90^{\\circ}$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nLet $(XYZ)$ denote the circumcircle of a triangle $XYZ$. We use the following well-known lemma:\n\nLemma. The centre of the circle $(BIC)$ is the midpoint of arc $BC$ of circle $(ABC)$ and therefore lies on the angle bisector of $\\angle BAC$.\n\n![](attached_image_1.png)\n\nNow assume without loss of generality that $AB < AC$, as in the figure. Let the circle $(BIC)$ cut $AB$ and $AC$ at $X$ and $Y$ respectively. From the lemma it follows that $X$ is symmetric to $C$, and $Y$ is symmetric to $B$ with respect to the angle bisector of $\\angle BAC$. We have\n\n$MX \\cdot MB = (AX - AM) \\cdot MB = (AC - AM) \\cdot MB = \\frac{(2AC - AB) \\cdot AB}{4} = \\frac{AC^2}{4} - \\left(\\frac{AC - AB}{2}\\right)^2$,\n\nand since $\\frac{AC}{2} = MK$ and\n\n$$\n\\frac{AC - AB}{2} = \\frac{BC}{2} - \\frac{AB + BC - AC}{2} = BK - BD = DK\n$$\n\nwe get\n\n$$\nMX \\cdot MB = MK^2 - DK^2\n$$\n\nSo $M$ lies on the radical axis of the circle $(BIC)$ and the circle $k$, which is the circle with midpoint $K$ and radius $DK$. An analogous calculation shows that $L$ lies on it as well, so the line through $M$ and $L$ is the radical axis of circles $(BIC)$ and $k$. Obviously $g$ is the radical axis of circle $k$ and point $I$ (regarded as a degenerate circle). Thus $P$ is the radical centre of $(BIC), k$, and $I$. It follows that $P$ also lies on the radical axis of $(BIC)$ and $I$, which is the line perpendicular to $AI$ passing through $I$. This shows that $\\angle PIA = 90^{\\circ}$.\n\n![](attached_image_2.png)\nSolution:\n\nLet $X$ be the midpoint of $ID$, and let $Y$ be the midpoint of $AD$ (which is also the intersection of $AD$ with $LM$). Clearly, $XY$ is parallel to $AI$.\n\nNext we show that $IK$ passes through $Y$. To this end, let $S$ be the intersection of $AI$ with $BC$, and let $T$ be the intersection of $KI$ with the line through $A$ that is parallel to $BC$. Note that triangles $ATI$ and $SKI$ are similar.\n\nBy the angle bisector theorem, we have\n$$\n\\frac{AT}{KS} = \\frac{AI}{IS} = \\frac{AB}{BS}\n$$\nSo\n$$\nAT = \\frac{AB \\cdot KS}{BS} = \\frac{AB \\cdot (BK - BS)}{BS} = \\frac{AB \\cdot BK}{BS} - AB\n$$\nUsing the angle bisector theorem once again, we get\n$$\nAT = \\frac{(AB + AC) \\cdot BK}{BC} - AB = \\frac{AB + AC}{2} - AB = \\frac{BC}{2} - \\frac{AB + BC - AC}{2} = BK - BD = DK\n$$\nThus $DKAT$ is a parallelogram, which means that $AD$ and $KT$ meet at $Y$, the midpoint of $AD$.\n\nNow we know that $KI$ passes through $Y$, and by definition it is perpendicular to $XP$. Hence it is an altitude in $XYP$. Moreover, $DI$ is clearly also an altitude in $XYP$ (it passes through $X$ and is perpendicular to $PY$). Thus $I$ is the orthocentre of $XYP$, which means that $PI$ is perpendicular to $XY$ and thus also to $AI$. This proves the desired statement.\n\n![](attached_image_3.png)\nSolution:\n\nLet $X, Y, Z$ be reflections of $D$ about $I, K, P$ respectively.\n\nWe shall prove that $A, X, Y$ are collinear. Since $K$ is the midpoint of segments $BC, DY$, we have $BD = CY$. Therefore $Y$ is the common point of segment $BC$ and the $A$-excircle. Consider homothety centered at $A$ mapping incircle to $A$-excircle. It's easy to see that this homothety maps $X$ to $Y$. Therefore $A, X, Y$ are collinear.\n\nConsider homothety with centre $D$ and ratio $2$. We easily see that $AZ \\parallel LM$. Since $IX \\perp BC \\parallel LM$, we have\n$$\nIX \\perp AZ\n$$\nMoreover $IZ \\parallel g \\perp KI \\parallel XY$. Since $A, X, Y$ are collinear, we have\n$$\nIZ \\perp AX\n$$\nThus $X$ is the orthocentre of triangle $AIZ$. Therefore $ZX \\perp AI$. Since $ZX \\parallel PI$, we conclude that $PI \\perp AI$. In other words,\n$$\n\\angle PIA = 90^{\\circ}.\n$$\nSolution:\n\nLet $a, b, c$ be the sides of the triangle, $s = \\frac{a + b + c}{2}$ the half-perimeter, $\\rho$ the radius of the inscribed circle, $\\alpha, \\beta, \\gamma$ the angles and $A$ the area of the triangle.\n\nIn the coordinate plane, let $B = (0, 0)$ be the origin and $C = (a, 0)$. Then $A = (c \\cos \\beta, c \\sin \\beta)$. We get:\n$$\nI = (s - b, \\rho), \\quad D = (s - b, 0), \\quad H = \\left(s - b, \\frac{\\rho}{2}\\right) \\text{ (midpoint of } DI), \\quad K = \\left(\\frac{a}{2}, 0\\right)\n$$\nThe line $g$ that passes through $H$ and is perpendicular to $IK$ has the following equation:\n$$\n\\left(s - b - \\frac{a}{2}\\right)x + \\rho y = \\left(s - b - \\frac{a}{2}\\right)(s - b) + \\frac{\\rho^2}{2}\n$$\nThis is equivalent to\n$$\n(c - b)x + 2\\rho y = (c - b)(s - b) + \\rho^2\n$$\nOn the other hand, the line $h = LM$ that is parallel to the $x$-axis has the equation\n$$\ny = \\frac{c}{2} \\sin \\beta\n$$\nWe deduce that $P$ (the intersection of $g$ and $h$) has the coordinates\n$$\nP = \\left(s - b + \\frac{\\rho^2 - \\rho c \\sin \\beta}{c - b}, \\frac{c}{2} \\sin \\beta\\right)\n$$\nNow we have to prove that\n$$\n\\overrightarrow{AI} \\cdot \\overrightarrow{IP} = 0\n$$\nwhich is equivalent to\n$$\n(s - b - c \\cos \\beta) \\cdot \\frac{\\rho^2 - \\rho c \\sin \\beta}{c - b} + (\\rho - c \\sin \\beta)\\left(\\frac{c}{2} \\sin \\beta - \\rho\\right) = 0\n$$\nSince $\\rho - c \\sin \\beta \\neq 0$, we can cancel the factor $\\rho - c \\sin \\beta$ to obtain the equation\n$$\n(s - b - c \\cos \\beta)\\rho + (c - b)\\left(\\frac{c}{2} \\sin \\beta - \\rho\\right) = 0\n$$\nwhich is equivalent to\n$$\n2\\rho(s - c) - 2\\rho c \\cos \\beta + c(c - b) \\sin \\beta = 0\n$$\nNow we use the well-known identities $\\rho = \\frac{A}{s}$ and $ac \\sin \\beta = 2A$ to end up with the equation\n$$\na(s - c) - ac \\cos \\beta + s(c - b) = 0\n$$\nSince this is equivalent to\n$$\nb^2 = a^2 + c^2 - 2ac \\cos \\beta\n$$\nwhich holds by the law of cosines, the proof is complete.\nSolution:\n\nLet $S$ be the point of intersection of the interior angle bisector of $\\angle BAC$ and $BC$, $H$ the midpoint of $ID$, $R$ the point of intersection of $LM$ and $ID$, $Q$ the point of intersection of $LM$ and the altitude from $A$, $r$ the inradius and $h$ the length of the altitude from $A$.\n\nSince $KD$ and $PR$ are perpendicular to $RD$ and $IK$ is perpendicular to $PH$, we have $\\angle IKS = \\angle IHP$ and $\\angle RPH = \\angle DIK$. So the triangles $RPH$ and $DIK$ are similar. We have $PH : HR = IK : KD$ and since $HR = \\frac{h - r}{2}$ and $KD = \\frac{a}{2} - \\frac{a + b - c}{2} = \\frac{c - b}{2}$ we conclude\n$$\nPH = \\frac{IK(h - r)}{c - b}\n$$\nNow we want to show that the triangles $IKS$ and $PHI$ are similar. Since $\\angle IKS = \\angle PHI$, it suffices to prove that $IK : KS = PH : HI$.\n\n![](attached_image_4.png)\n\nWith the angle bisector theorem we get $SC = \\frac{ab}{b + c}$ and we deduce $KS = \\frac{a}{2} - \\frac{ab}{b + c} = \\frac{a(c - b)}{2(b + c)}$.\nNow we have\n$$\nPH : HI = IK : KS \\Longleftrightarrow \\frac{IK(h - r)}{c - b} : \\frac{r}{2} = IK : \\frac{a(c - b)}{2(b + c)} \\Longleftrightarrow r(a + b + c) = ah\n$$\nand we are done, because $r(a + b + c) = ah =$ twice the area of the triangle $ABC$.\n\nHence the triangles $IKS$ and $PHI$ are similar and we conclude that the triangles $PIR$ and $ISD$ are similar too. Now we have\n$$\n\\angle QPI = \\angle RPI = \\angle DIS = \\angle QAI\n$$\nand it follows that $APIQ$ is cyclic, and consequently\n$$\n90^{\\circ} = \\angle PQA = \\angle PIA\n$$", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34938, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nA positive integer $n$ is called a Mozartian number if the numbers $1,2, \\ldots, n$ together contain an even number of each digit (in base 10).\nProve:\n(a) All Mozartian numbers are even.\n(b) There are infinitely many Mozartian numbers.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n(a) Note that we need an even number of digits altogether if every digit occurs an even number of times. There is an odd number of numbers with one digit. For $k>1$, there are $9 \\cdot 10^{k-1}$ numbers with $k$ digits, which is an even number. Thus we need to end after a segment of odd length of numbers with an odd number of digits, i.e., we end on an even number, so a Mozartian number is indeed even.\n\n(b) The numbers $n=\\underbrace{2 \\ldots 2}_{2 \\ell} 0$ are Mozartian numbers for all natural numbers $\\ell$: There are an even number of least significant digits $0,1, \\ldots, 9$; and all other digits at higher positions except for those in $n$ are repeated 10 times in a row which does not change the parities of occurrences. The leading $2 \\ell$ digits 2 of $n$ do not change parities, either.\nSolution:\n(a) Let $k$ be any integer $\\geqslant 0$. In the pairing $(2,3),(4,5), \\ldots,(2k, 2k+1)$, the members of each pair need the same number of digits, so each pair needs an even number of digits together, so altogether the numbers from $1$ to $2k+1$ need an odd number of digits. Therefore, any Mozartian number has to be even because the total number of digits used up to a Mozartian number has to be even.\n\n(b) We will show that $10^{2k}+22$ are Mozartian numbers for all natural numbers $k$.\nWe first note that by the proof of the first part, we know that we need an odd number of digits up to $10^{2k}+21$, and therefore an even number of digits up to $10^{2k}+22$. So it is sufficient to check that the digits $1,2, \\ldots, 9$ occur an even number of times because the condition for $0$ will be automatically satisfied.\nNow, we will consider the numbers from $0$ to $10^{2k}-1$ as numbers with $2k+1$ digits with leading zeros where necessary. Clearly, each digit must occur equally often. Since the number of all digits in this list is divisible by $100$, this quantity is still divisible by $10$, therefore even. This proves that nonzero digits occur an even number of times in this interval.\nIt remains to consider the numbers $10^{2k}, 10^{2k}+1, \\ldots, 10^{2k}+22$. Clearly, the leading ones occur an odd number of times. Since the list $1,2, \\ldots, 22$ contains an odd number of ones and an even number of the other digits, the proof is finished.\nSolution:\n(b) We will first show that for any $k \\geqslant 1$ the numbers from $0$ to $20k-1$ together contain an even number of each digit from $0$ to $9$.\nThe units digits clearly run from $0$ to $9$ an even number of times, so they contribute an even number to each digit count. For any possible fixed choice of all digits except the units digits, there are $10$ numbers that satisfy this condition, so again, they contribute an even number to each digit count which proves the assertion.\nConsider now the numbers from $1$ to $M=20k$ where $M$ has a decimal representation that contains an odd number of zeros and an even number of each digit from $1$ to $9$. Since the odd number of zeros compensates for the missing zero that was counted in the above assertion, we find that $M$ is a Mozartian number.\nThere are clearly infinitely many such numbers, for example all numbers of the form $22\\ldots 20$ that contain an even number of $2$'s.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34939, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nWe consider the equation $a^{2}+b^{2}+c^{2}+n=a b c$, where $a, b, c$ are positive integers.\nProve:\n(a) There are no solutions $(a, b, c)$ for $n=2017$.\n(b) For $n=2016$, $a$ must be divisible by $3$ for every solution $(a, b, c)$.\n(c) The equation has infinitely many solutions $(a, b, c)$ for $n=2016$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\n(a) We distinguish cases depending on the parity of $a, b, c$ :\n- If all three are odd, we have $a^{2}+b^{2}+c^{2}+2017 \\equiv 0\\pmod{2}$ and $a b c \\equiv 1\\pmod{2}$.\n- If exactly one of them is even, we have $a^{2}+b^{2}+c^{2}+2017 \\equiv 1\\pmod{2}$ and $a b c \\equiv 0$ $\\pmod{2}$.\n- If exactly two of them are even, we have $a^{2}+b^{2}+c^{2}+2017 \\equiv 2\\pmod{4}$ (recalling that squares are either congruent to $0$ or $1$ modulo $4$) and $a b c \\equiv 0\\pmod{4}$.\n- If all three are even, we have $a^{2}+b^{2}+c^{2}+2017 \\equiv 1\\pmod{2}$ and $a b c \\equiv 0\\pmod{2}$.\nIn each of the four cases, we see that the two sides of the equation cannot be equal.\n\n(b) Note that $m^{2} \\equiv 0\\pmod{3}$ if $m$ is divisible by $3$ and $m^{2} \\equiv 1\\pmod{3}$ otherwise, and note also that $2016$ is divisible by $3$. We consider two cases:\n- If none of the three numbers $a, b, c$ is divisible by $3$, then neither is $a b c$, while on the other hand $a^{2}+b^{2}+c^{2}+2016 \\equiv 1+1+1+0 \\equiv 0\\pmod{3}$. Hence we get a contradiction.\n- Otherwise, $a b c$ is divisible by $3$, so $a^{2}+b^{2}+c^{2}$ must be divisible by $3$ as well. If exactly one of the three variables is divisible by $3$, we have $a^{2}+b^{2}+c^{2} \\equiv 2\\pmod{3}$, and if exactly two of them are divisible by $3$, we have $a^{2}+b^{2}+c^{2} \\equiv 1\\pmod{3}$. In both cases, we see that there cannot be a solution. This leaves us with the only possibility that $a, b, c$ are all divisible by $3$.\n\n(c) We know from the previous part that we must have $a=3 x, b=3 y, c=3 z$ for certain positive integers $x, y, z$. We plug these into the given equation and divide by $9$ to obtain\n$$\nx^{2}+y^{2}+z^{2}+224=3 x y z\n$$\nNote that $225=15^{2}$ is a perfect square, so we try to find solutions with $x=1$ :\n$$\ny^{2}+z^{2}+225=3 y z\n$$\nIndeed, $y=z=15$ is a solution, and we find further solutions by means of \"Vieta jumping\". Suppose that $(y_{0}, z_{0})$ is a solution, i.e.,\n$$\ny_{0}^{2}+z_{0}^{2}+225=3 y_{0} z_{0}\n$$\nwhere $y_{0} \\geqslant z_{0}$. The second solution to the quadratic equation\n$$\nz^{2}-3 y_{0} z+(225+y_{0}^{2})=0\n$$\nis $z_{1}=3 y_{0}-z_{0} \\geqslant 2 y_{0}>y_{0}$, giving us a new solution pair $(z_{1}, y_{0})$ that has a greater first component than the previous one. Repeating the procedure, we obtain infinitely many solutions.\nSolution:\n\nThe third part can also be solved by means of the theory of Pellian equations. Let us return to the equation\n$$\ny^{2}+z^{2}+225=3 y z\n$$\nWe multiply by $4$ and complete the square:\n$$\n4 y^{2}-12 y z+4 z^{2}+900=(2 y-3 z)^{2}-5 z^{2}+900=0\n$$\nFor odd $k$, we have\n$$\n(2+\\sqrt{5})^{k} \\cdot (2-\\sqrt{5})^{k}=-1\n$$\nWe can write $(2+\\sqrt{5})^{k}$ as $u+v \\sqrt{5}$ for certain positive integers $u$ and $v$, so that $(2-\\sqrt{5})^{k}=u-v \\sqrt{5}$ and thus\n$$\nu^{2}-5 v^{2}=-1\n$$\nNow simply set $z=30 v$ and $y=15 u+45 v$ (so that $2 y-3 z=30 u$) to obtain\n$$\n(2 y-3 z)^{2}-5 z^{2}+900=0\n$$\nas desired. Since we obtain a solution for every odd $k$ in this way, there must be infinitely many.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34940, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nDetermine all functions $f: \\mathbb{R} \\rightarrow \\mathbb{R}$ satisfying\n$$\nf\\left(x^{2}+f(x) f(y)\\right)=x f(x+y)\n$$\nfor all real numbers $x$ and $y$.", "options": [], "answer": "f(x) = 0, f(x) = x, or f(x) = -x", "solution": "Solution:\nPut $x:=0$. Then $f(f(0) f(y))=0$, so there is at least one real number $a$ such that $f(a)=0$.\n\nLet $z$ be an arbitrary real number, let's put $x:=a, y:=z-a$. Then we get $f\\left(a^{2}\\right)=a \\cdot f(z)$. If $a \\neq 0$, we'll get that $f$ is constant, i.e. $f(x) \\equiv c$. The equation (1) is then equivalent to $c=c x$ for all $x$, which gives us $c=0$. The function $f(x) \\equiv 0$ is really a solution.\n\nSo we've proved that $f(x)=0$ if and only if $x=0$. Therefore after putting $y:=-x$ we get\n$$\nx^{2}+f(x) f(-x)=0\n$$\nNow let's put $y:=0$, which gives us\n$$\nf\\left(x^{2}\\right)=x f(x)\n$$\nFrom (3) for $x:=-x$ we get $f\\left(x^{2}\\right)=-x f(-x)$, so $x(f(x)+f(-x))=0$, which for $x \\neq 0$ means $f(x)=-f(-x)$ and for $x=0$ it holds too, so $f$ is an odd function.\n\nBy putting $f(-x)=-f(x)$ to (2) we get $x^{2}=f(x)^{2}$, which means that for every $x$ is $f(x)=x$ or $f(x)=-x$. We'll prove that $f(x) \\equiv x$ or $f(x) \\equiv-x$.\n\nAssume there are $a, b$ such that $f(a)=a$ and $f(b)=-b$. Let's put $x:=a, y:=b$ to (1). Then we have\n$$\nf\\left(a^{2}-a b\\right)=a \\cdot f(a+b)\n$$\nThis relation together with $f(x)=x$ or $f(x)=-x$ means that\n$$\ne_{1}\\left(a^{2}-a b\\right)=e_{2}\\left(a^{2}+a b\\right)\n$$\nwhere $e_{1}, e_{2} \\in\\{1,-1\\}$. After checking options (if we WLOG suppose $e_{1}=1$, there'll be only two) we'll find out it must hold $a=0$ or $b=0$. If $a=0$, then for all $x \\neq 0$ we have $f(x)=-x$,\nwhich is true even for $x=0$, so $f(x) \\equiv-x$, in that case. Analogously, if $b=0$, then $f(x) \\equiv x$. These two solutions really satisfy (1).\n\nThe equation has 3 solutions: $f(x) \\equiv 0, f(x) \\equiv x, f(x) \\equiv-x$.\nSolution:\nSuppose $f$ is injective; that is, $f\\left(y_{0}\\right)=f\\left(y_{1}\\right)$ implies $y_{0}=y_{1}$. Plugging $x=1$ gives\n$$\nf(1+f(1) f(y))=f(1+y) .\n$$\nFrom injectivity, this gives $1+f(1) f(y)=1+y$. We see that $f(1)=c \\neq 0$, and $f(y)=c^{-1} y$. For $y=1$ this gives $c^{2}=1$. Thus, $f(y)=y$ or $f(y)=-y$, and both are the solutions.\n\nAssume $f$ is not injective, and $f\\left(y_{0}\\right)=f\\left(y_{1}\\right)$ for a certain pair $y_{0} \\neq y_{1}$. Plugging $y \\mapsto y_{0}$, and $y \\mapsto y_{1}$, and comparing, gives\n$$\nx f\\left(x+y_{0}\\right)=x f\\left(x+y_{1}\\right) .\n$$\nThus, if $x \\neq 0$, then $f\\left(x+y_{0}\\right)=f\\left(x+y_{1}\\right)$. This is also valid for $x=0$. So, for $P=y_{0}-y_{1} \\neq 0$, we get\n$$\nf(x+P)=f(x) .\n$$\nPut in the initial equation $x=0$. We see that $f(f(y) f(0))=0$. Let $a$ be such that $f(a)=0$, which does exist. Put $x=a, y=z-a$. This gives $f\\left(a^{2}\\right)=a f(z)$. If $a \\neq 0$, we get that $f(x)=c$, and only $c=0$ does satisfy this. So, if $f$ is not identically $0, a$ can be only 0. But this now contradicts to $f(P)=f(0)=0$.\nSolution:\nObviously, the functions $f(x)=0$ and $f(x)= \\pm x$ are solutions. Let us prove that there are no more solutions.\n\nLet $f$ be any other solution. Denote $f(0)=c$. Taking $x=0$ we get $f(c f(y))=0$ for all $y$. Hence $f(a)=0$ for $a=c f(1)$ and therefore $0=f(c f(a))=f(0)=c$.\n\nNow take $y=0$; then $f\\left(x^{2}\\right)=x f(x)$ for all $x$ and therefore $x f(x)=-x f(-x)$, i.e. $f(-x)=-f(x)$ for all $x \\neq 0$. Hence $f$ is an odd function.\n\nNext prove that 0 is the only point, where $f(x)=0$. Let $f(c)=0$ for $c \\neq 0$. Then $f\\left(c^{2}\\right)=c f(y)$ for all $y$, i.e. $f(y)=c_{1}$ for all $y$. Obviously, such $f$ is not a solution; we got a contradiction.\n\nNow take $y=-x$; then $f\\left(x^{2}-f^{2}(x)\\right)=0$ and therefore $x^{2}=f^{2}(x)$ for all $x$.\n\nSuppose $f(1) f(y)=-y$ for some $y \\neq 0$; then\n$$\nf(1-y)=f(1+y)\n$$\nwhich yields $1-y= \\pm(1+y)$, a contradiction.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34941, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $n \\geqslant 3$ be an integer. A labelling of the $n$ vertices, the $n$ sides and the interior of a regular $n$-gon by $2n+1$ distinct integers is called memorable if the following conditions hold:\n\n1. Each side has a label that is the arithmetic mean of the labels of its endpoints.\n2. The interior of the $n$-gon has a label that is the arithmetic mean of the labels of all the vertices.\n\nDetermine all integers $n \\geqslant 3$ for which there exists a memorable labelling of a regular $n$-gon consisting of $2n+1$ consecutive integers.", "options": [], "answer": "All integers at least three that are divisible by four", "solution": "Solution:\n\nWe prove that the desired $n$'s are precisely those divisible by $4$.\n\nFix $n$ and assume such labelling exists. Without loss of generality, the labels form a set $\\{0,1, \\ldots, 2n\\}$. A maximum can't be obtained by averaging, so number $2n$ labels a vertex. In order for the side labels to be integers, the vertex labels have to have the same parity, hence all of them are even.\n\nSince the label of the interior is the average of the vertex as well as edge labels, we see that the interior label is the average of all labels. Thus the interior label is equal to $n$.\n\nThere are $n+1$ even labels and $n$ of them label vertices. Denote by $e$ the one that doesn't. We have\n$$\nn = \\frac{0+2+\\cdots+2n-e}{n} = \\frac{n(n+1)-e}{n}\n$$\nwhich gives $n = e$, i.e. $n$ has to be even. In that case, the vertex labels form a set $V = \\{0,2, \\ldots, n-2, n+2, \\ldots, 2n\\}$ and hence the side labels form a set $S = \\{1,3, \\ldots, 2n-1\\}$.\n\nNow assume $n = 4k+2$ for some integer $k \\geqslant 1$. Then $V$ contains $n/2+1$ numbers divisible by four, hence two such labels are used on neighbouring vertices which contradicts the fact that all edges get odd label. Therefore, $n$ is divisible by $4$.\n\nFinally, for any $n = 4k$ we construct a satisfying labelling: Label the vertices by numbers\n$$\n0,2,4, \\ldots, 4k-2, \\quad 4k+4,4k+2, \\quad 4k+8,4k+6, \\ldots, \\quad 8k, 8k-2\n$$\nin this order. Then all the even labels but $n = 4k$ are used for vertices, $n$ itself is used for the interior, and the side labels are $1,3, \\ldots, 4k-3, 4k+1, 4k+3, \\ldots, 8k-1, 4k-1$ in this order.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34942, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $ABCDE$ be a convex pentagon. Let $P$ be the intersection of the lines $CE$ and $BD$. Assume that $\\angle PAD = \\angle ACB$ and $\\angle CAP = \\angle EDA$. Prove that the circumcentres of the triangles $ABC$ and $ADE$ are collinear with $P$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nSimple angle chasing gives us:\n$$\n\\begin{gathered}\n\\angle BCD + \\angle EDC = \\angle ACB + \\angle ACD + \\angle EDA + \\angle ADC = \\\\\n= \\angle PAD + \\angle ACD + \\angle CAP + \\angle ADC = 180^\\circ,\n\\end{gathered}\n$$\nso $BC \\parallel DE$. Therefore there exists a homothety $H$ centered in $P$ that maps $BC$ to $DE$. Let $A'$ be the image of $A$ under this homothety. Then simply $\\angle A'ED = \\angle ACB = \\angle A'AD$, so quadrilateral $A'DEA$ is cyclic. This means that the circumcircle of triangle $AED$ is the same as the circumcircle of triangle $DA'E$. But triangle $ABC$ maps to the triangle $A'DE$, so their circumcenters are collinear with the center of homothety $P$, which concludes the proof.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34943, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nDetermine the smallest possible value of\n$$\n\\left|2^{m}-181^{n}\\right|,\n$$\nwhere $m$ and $n$ are positive integers.", "options": [], "answer": "7", "solution": "Solution:\nCalculating\n$$\n181^{2}=32,761\n$$\none should get the idea that this may be close to\n$$\n2^{15}=32,768\n$$\nso taking the difference of both we arrive at the minimum possible value $7$.\nAs we can clearly see that the difference must be positive and odd, we only need to eliminate the possibilities $1,3$ and $5$ for the given difference.\nFirst consider the difference modulo $15$ since this will lead to a short period of basis $2$ and an even shorter one of basis $181$. Since $2^{m} \\equiv 1,2,4,8$ modulo $15$ and $181^{n} \\equiv 1$ modulo $15$ we get that\n$$\n2^{m}-181^{n} \\equiv 0,1,3,7 \\text{ modulo } 15\n$$\nthus leaving us with possible residues $0,1,3,7,8,12,14$ for the absolute of the difference. Therefore we can eliminate the minimum $5$ for the difference, leaving us with $1$ and $3$ as possible values less than $7$.\nWe can easily see that indeed $m \\geqslant 4$ is clearly required for the difference to be anywhere near $7$ or less. So now let us consider the following equations:\n$$\n\\begin{aligned}\n2^{m}-181^{n}=-1 &\\Rightarrow 2^{m} \\equiv 181^{n}-1 \\equiv 0 \\text{ modulo } 3, \\text{ which is impossible;} \\\\\n2^{m}-181^{n}=1 &\\Rightarrow 2^{m} \\equiv 181^{n}+1 \\equiv 2 \\text{ modulo } 4, \\text{ which is impossible for } m \\geqslant 2 ; \\\\\n2^{m}-181^{n}=-3 &\\Rightarrow 2^{m} \\equiv 181^{n}-3 \\equiv 2 \\text{ modulo } 4, \\text{ which is still impossible. }\n\\end{aligned}\n$$\nTherefore one last equation needs to be considered:\n$$\n2^{m}-181^{n}=3 \\Leftrightarrow 2^{m}=181^{n}+3 .\n$$\nBy looking at the period of the values obtained modulo $15$ we can see that $m \\equiv 2$ modulo $4$ is required, so $m=4k+2$.\nBut then we can look at the equation modulo $13$ and see that:\n$$\n\\begin{aligned}\n2^{m}-181^{n}=3 &\\Leftrightarrow 2^{m}=181^{n}+3 \\\\\n&\\Rightarrow 2^{4k+2} \\equiv (-1)^{n}+3 \\quad \\text{ modulo } 13 \\\\\n&\\Leftrightarrow 4 \\cdot 16^{k} \\equiv (-1)^{n}+3 \\quad \\text{ modulo } 13 \\\\\n&\\Leftrightarrow 4 \\cdot 3^{k} \\equiv (-1)^{n}+3 \\quad \\text{ modulo } 13\n\\end{aligned}\n$$\nWe can clearly see that $(-1)^{n}+3 \\equiv 2,4$ modulo $13$ and $4 \\cdot 3^{k} \\equiv 12,10,4$ modulo $13$ periodically. So the only possible solution would be if $(-1)^{n}+3 \\equiv 4$ but that requires $n$ to be even, thus $n=2q$ and hence\n$$\n\\left|2^{m}-181^{n}\\right|=\\left|2^{4k+2}-181^{2q}\\right|=\\left|\\left(2^{2k+1}-181^{q}\\right) \\cdot \\left(2^{2k+1}+181^{q}\\right)\\right| \\geqslant 183\n$$\nso this will not lead to any solution less than $7$, which proves $7$ to be the minimum possible value.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34944, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nDetermine all pairs of polynomials $(P, Q)$ with real coefficients satisfying\n$$\nP(x+Q(y))=Q(x+P(y))\n$$\nfor all real numbers $x$ and $y$.", "options": [], "answer": "All pairs (P, Q) of real-coefficient polynomials such that either (i) P ≡ Q (any polynomial), or (ii) P(x) = x + a and Q(x) = x + b for some real constants a, b.", "solution": "Solution:\nIf either $P$ or $Q$ is constant then clearly $P \\equiv Q$. Suppose neither of $P, Q$ is constant.\nWrite $P(x)=a x^{n}+b x^{n-1}+R(x)$ and $Q(x)=c x^{m}+d x^{m-1}+S(x)$ with $n, m \\geqslant 1, a \\neq 0 \\neq c$, $\\operatorname{deg} R0$ or $j<0$, we argue analogously. If $j=0$, then $i \\neq 0$ for a non-central lamp, therefore the maximum is $|i|$ and we have again the values $|i-1|,|i|,|i|$, $|i+1|$ to check which contain an odd number of values $\\equiv 0,1 \\bmod 4$.\n\nTherefore, we have found an arrangement with exactly one lamp with an even number of neighbours that are on as desired.\n\n![](attached_image_1.png)\n\nThe images show the discussed optimal arrangement for $n=77$. Lamps that are on are yellow, lamps that are off are blue. The first image shows all lamps, the second image shows the lamps with $i+j$ even and the third image shows the lamps with $i+k$ odd.\nSolution:\n\nWe color the board as a chess board in such a way that the four corners are white.\n\nAn active lamp on a black field has no influence on the number of active neighbours of any lamp on a black field, and vice versa an active lamp on a white field has no influence on the number of active neighbours of a lamp on a white field. Therefore, we can optimize the number of lamps with an even number of active neighbours separately for lamps on black and white fields.\n\nFor the black fields, it is easy to find an arrangement in which all black fields have exactly one active neighbour, by turning on the following lamps: In the 1st, 5th, 9th, 13th, $\\ldots$ row the 1st, 5th, 9th, 13th, ... lamp (so all lamps with $x \\equiv y \\equiv 1 \\bmod 4$, assuming that the corner has coordinates $(1,1)$), and in the 3rd, 7th, 11th, ... row the 3rd, 7th, 11th, ... lamp (so all lamps with $x \\equiv y \\equiv 3 \\bmod 4$).\n\nAn example for $n=77$ with the same color coding as in the previous solution:\n\n![](attached_image_2.png)\n\nFor white fields, we first show that at least one white field has to have an even number of active neighbours. To do so, we colour all white fields in the 1st, 3rd, 5th, ... row and in the 1st, 3rd, 5th, ... column red. Each black field is neighbour to exactly two red fields, and red fields have only black neighbours. If $x$ lamps on black fields are active, then all red fields together have exactly $2x$ active neighbours. Since the number of red fields is odd, at least one of them has to have an even number of active neighbours.\n\nAll that is left to do is finding an arrangement in which all white fields except for one have an odd number of active neighbours. To do so, we separate the board into four \"triangles\" roughly as follows:\n\n![](attached_image_3.png)\n\nIn the upper triangle we turn on the following lamps: In the 1st, 3rd, 5th, ... row always the lamp on the second field from the left, and then every 4th lamp, like this:\n\n![](attached_image_4.png)\n\nFor filling the other triangles, we rotate the same pattern by $90^\\circ$. Each lamp is only neighboured to fields from the own triangle, and each field within the triangle has exactly one active neighbour. Only the field in the middle of the board is left.\n\nAn example for $n=77$:\n\n![](attached_image_5.png)\n\nAltogether, the pattern looks like this:\n\n![](attached_image_6.png)", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34947, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $n \\geqslant 3$ be an integer. A sequence $P_{1}, P_{2}, \\ldots, P_{n}$ of distinct points in the plane is called good if no three of them are collinear, the polyline $P_{1} P_{2} \\ldots P_{n}$ is non-self-intersecting and the triangle $P_{i} P_{i+1} P_{i+2}$ is oriented counterclockwise for every $i=1,2, \\ldots, n-2$.\nFor every integer $n \\geqslant 3$ determine the greatest possible integer $k$ with the following property: there exist $n$ distinct points $A_{1}, A_{2}, \\ldots, A_{n}$ in the plane for which there are $k$ distinct permutations $\\sigma:\\{1,2, \\ldots, n\\} \\rightarrow\\{1,2, \\ldots, n\\}$ such that $A_{\\sigma(1)}, A_{\\sigma(2)}, \\ldots, A_{\\sigma(n)}$ is good.\n(A polyline $P_{1} P_{2} \\ldots P_{n}$ consists of the segments $P_{1} P_{2}, P_{2} P_{3}, \\ldots, P_{n-1} P_{n}$.)", "options": [], "answer": "n^2 - 4n + 6", "solution": "Solution:\nFix $n$ points on a plane, no three of which are collinear. Let $\\mathcal{P}$ be their convex hull. Let the vertices of $\\mathcal{P}$ be $A_{1}, A_{2}, \\ldots, A_{m}$ (lying in this order on the boundary of $\\mathcal{P}$ counterclockwise). We denote $A_{m+1}=A_{1}$. Also, let $\\mathcal{I}$ be the set of our fixed points other than $A_{1}, \\ldots, A_{m}$, i.e. the points lying in the interior of $\\mathcal{P}$.\n\nLemma. Every good polyline contains all but one side of $\\mathcal{P}$.\nProof. The key observation is that if a segment $A_{i} A_{i+1}$ is not a part of our polyline, then the point $A_{i+1}$ appears in the polyline before $A_{i}$.\nThis is clear if $A_{i}$ is the last vertex of the polyline. Otherwise there is a segment $A_{i} X$ in the polyline, where $X \\neq A_{i+1}$. Observe that all segments appearing after $A_{i} X$ are located in the halfplane determined by the line $A_{i} X$ which does not contain the point $A_{i+1}$. This is because the polyline always turns left, has no self-intersections, and $A_{i}$ is a vertex of $\\mathcal{P}$. This implies that the point $A_{i+1}$ must appear in the polyline before $A_{i}$.\nIt is clear that at least one side of $\\mathcal{P}$ does not appear in the polyline. Suppose now that $A_{i_{1}} A_{i_{1}+1}, A_{i_{2}} A_{i_{2}+1}, \\ldots, A_{i_{j}} A_{i_{j}+1}$ are all segments on the boundary of $\\mathcal{P}$ that do not appear in the polyline (where $1 \\leqslant i_{1} AC$ and circumcircle $\\Gamma$. Let $M$ be the midpoint of the shorter arc $BC$ of $\\Gamma$, and let $D$ be the intersection of the rays $AC$ and $BM$. Let $E \\neq C$ be the intersection of the internal bisector of the angle $ACB$ and the circumcircle of the triangle $BDC$. Let us assume that $E$ is inside the triangle $ABC$ and there is an intersection $N$ of the line $DE$ and the circle $\\Gamma$ such that $E$ is the midpoint of the segment $DN$.\n\nShow that $N$ is the midpoint of the segment $I_{B} I_{C}$, where $I_{B}$ and $I_{C}$ are the excentres of $ABC$ opposite to $B$ and $C$, respectively.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nConsider the following implications:\nLet us denote by $P$ the other point of intersection of internal bisector from $C$ and the circle $\\Gamma$.\n$BDCE$ is cyclic\n$$\n\\begin{aligned}\n& \\Longrightarrow \\angle BDC = \\angle BEP \\\\\n& \\Longrightarrow \\triangle BEP \\sim \\triangle BDA \\\\\n& (\\angle BPE = \\angle BPC = \\angle BAC = \\angle BAD) \\\\\n& \\Longrightarrow \\frac{BE}{BP} = \\frac{BD}{BA} \\\\\n& \\Longrightarrow \\frac{BE}{BD} = \\frac{BP}{BA} \\\\\n& \\Longrightarrow \\triangle BDE \\sim \\triangle BAP \\\\\n& \\left(\\angle DBE = \\angle ABP = \\frac{1}{2} \\angle ACB\\right) \\\\\n& \\Longrightarrow EB = ED \\\\\n& \\text{ ( } \\triangle BAP \\text{ is isosceles) } \\\\\n& \\Longrightarrow \\angle MBN = \\angle DBN = 90^{\\circ} \\\\\n& \\Longrightarrow M \\text{ and } N \\text{ are diametrically opposite on } \\Gamma \\\\\n& \\Longrightarrow NB = NC \\text{. }\n\\end{aligned}\n$$\nThe quadrilateral $I_{B} I_{C} BC$ is cyclic, as $I_{B}B \\perp I_{C}B$ and $I_{C}C \\perp I_{B}C$. Let $I_{A}$ be the excentre of $\\triangle ABC$ opposite to $A$. Now consider the nine point circle of $\\triangle I_{A} I_{B} I_{C}$. We can clearly see that this circle is $\\Gamma$, as $\\triangle ABC$ is the orthic triangle of $\\triangle I_{A} I_{B} I_{C}$. So $\\Gamma$ passes through the midpoint of $I_{B} I_{C}$ and this midpoint is also equidistant from $B$ and $C$, so $N$ must be the described midpoint.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34949, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $ABC$ be an acute-angled triangle with $AB \\neq AC$, circumcentre $O$ and circumcircle $\\Gamma$. Let the tangents to $\\Gamma$ through $B$ and $C$ meet each other at $D$, and let the line $AO$ intersect $BC$ at $E$. Denote the midpoint of $BC$ by $M$ and let $AM$ meet $\\Gamma$ again at $N \\neq A$. Finally, let $F \\neq A$ be a point on $\\Gamma$ such that $A, M, E$ and $F$ are concyclic. Prove that $FN$ bisects the segment $MD$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nWe may suppose $AB < AC$. It is known that $AD$ is a symmedian of triangle $ABC$. Let $Q$ be its second point of intersection with $k$. The triangles $ABM$ and $AQC$ are similar to each other, since their corresponding angles are equal, and it follows that\n$$\n\\angle AFQ = \\angle ACQ = \\angle AMB = \\angle AFE.\n$$\nHence the points $Q, E$, and $F$ are collinear.\n\nNow let $R \\neq F$ denote the point where $FD$ intersects $k$ again. As before, $FD$ is a symmedian of triangle $FBC$, the triangles $CFM$ and $RFB$ are similar,\n$$\n\\angle EAF = \\angle EMF = \\angle RBF = \\angle RAF,\n$$\nand the points $A, O$, and $R$ are collinear as well. So $AR$ is a diameter of $k$ and thus $\\angle AFD = 90^\\circ$.\n\nNow let $X$ be the midpoint of $AD$ and put $J = MD \\cap FN$. As we have just seen, the triangle $AXF$ is isosceles at $X$, the angle at its base being $\\angle XAF = \\angle QNJ$. But since $AM$ is a median in triangle $ABC$ and $AQ$ the corresponding symmedian, we have $QN \\parallel BC \\perp OD$, so the triangle $QJN$ is likewise isosceles. As we have just seen, it has the same angle at its base. We thus have two similar isosceles triangles and looking at their remaining angles we learn $\\angle FXA = \\angle NJQ$. This implies that the quadrilateral $XQJF$ is cyclic.\n\nThus $\\angle QXJ = \\angle QFJ = \\angle QFN = \\angle QAN$ or in other words, the lines $XJ$ and $AM$ are parallel. Since $X$ was defined to be the midpoint of $AD$, this tells us that $J$ is the midpoint of $MD$, as desired.\nSolution:\n\nAs in the first solution we restrict our attention to the case $AB < AC$, define the points $Q$ and $J$, and remark that the points $Q, E$, and $F$ are collinear.\n\nOur next step is to prove the similarity of the triangles $JFM$ and $JMN$. Evidently their angles at $J$ coincide and in view of\n$$\n\\angle MFJ = \\angle MFQ + \\angle QFN = \\angle MAE + \\angle QAM = \\angle QAO\n$$\nit remains to be shown that $\\angle QAO = \\angle JMN$. To this end we notice that because of $DM \\cdot DO = DB^2 = DQ \\cdot DA$ the quadrilateral $AQMO$ is cyclic, and deduce that $\\angle QAO = \\angle OQA = \\angle OMA = \\angle JMN$ is indeed the case. This concludes the proof of $\\triangle JFM \\sim \\triangle JMN$. Now $JM^2 = JN \\cdot JF$ has become clear. Writing $r$ for the radius of $k$ and considering the power of $J$ with respect to this circle we obtain\n$$\nJN \\cdot JF = JO^2 - r^2 = JO^2 - OM \\cdot OD,\n$$\nso altogether we have\n$$\nOM \\cdot OD = JO^2 - JM^2 = (JO - JM)(JO + JM) = OM \\cdot (2JM + OM).\n$$\nThis simplifies immediately to $2JM = MD$, whereby the problem is solved.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34950, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nDetermine all integers $n \\geqslant 2$ such that there exists a permutation $x_{0}, x_{1}, \\ldots, x_{n-1}$ of the numbers $0,1, \\ldots, n-1$ with the property that the $n$ numbers\n$$\nx_{0}, \\quad x_{0}+x_{1}, \\quad \\ldots, \\quad x_{0}+x_{1}+\\ldots+x_{n-1}\n$$\nare pairwise distinct modulo $n$.", "options": [], "answer": "All even integers n ≥ 2", "solution": "Solution:\nSuppose that $x_{0}, \\ldots, x_{n-1}$ is such a permutation.\nNote that $x_{0}=0$. Indeed, if $x_{i}=0$ for some $i>0$ then\n$$\nx_{0}+\\cdots+x_{i-1}=x_{0}+\\cdots+x_{i-1}+x_{i}\n$$\nwhich is a contradiction.\nOn the other hand\n$$\nx_{0}+x_{1}+\\cdots+x_{n-1}=0+1+2+\\cdots+n-1=n \\cdot \\frac{n-1}{2} .\n$$\nThis means that if $n$ is odd then $x_{0}+x_{1}+\\cdots+x_{n-1} \\equiv 0\\ (\\bmod\\ n)$. This gives a contradiction if $n>1$, because $x_{0}=0$.\nIf $n$ is even then we put $x_{i}=i$ if $i$ is even and $x_{i}=n-i$ if $i$ is odd. Then\n$$\nx_{0}+x_{1}+\\cdots+x_{2 m}=0+(n-1)+2+(n-3)+\\cdots+2 m \\equiv m \\quad(\\bmod n)\n$$\nand\n$$\nx_{0}+x_{1}+\\cdots+x_{2 m+1}=x_{0}+x_{1}+\\cdots+x_{2 m}+(n-2 m-1) \\equiv n-m-1 \\quad(\\bmod n) .\n$$\nThus the numbers $x_{0}+x_{1}+\\cdots+x_{i}$, $i=0,1, \\ldots, n-1$, are pairwise distinct modulo $n$.", "topic": "Number Theory", "subtopic": "Modular Arithmetic" }, { "id": 34951, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nFor an integer $n \\geqslant 3$ we define the sequence $\\alpha_{1}, \\alpha_{2}, \\ldots, \\alpha_{k}$ as the sequence of exponents in the prime factor decomposition of $n! = p_{1}^{\\alpha_{1}} p_{2}^{\\alpha_{2}} \\ldots p_{k}^{\\alpha_{k}}$, where $p_{1} < p_{2} < \\cdots < p_{k}$ are primes.\nDetermine all integers $n \\geqslant 3$ for which $\\alpha_{1}, \\alpha_{2}, \\ldots, \\alpha_{k}$ is a geometric progression.", "options": [], "answer": "3, 4, 6, 10", "solution": "Solution:\n\nLet $p_{i}$ be the $i$\\textsuperscript{th} prime number and let $\\alpha_{i}$ be the exponent of $p_{i}$ in $n!$. It is well known that\n$$\n\\alpha_{i} = \\left\\lfloor \\frac{n}{p_{i}} \\right\\rfloor + \\left\\lfloor \\frac{n}{p_{i}^{2}} \\right\\rfloor + \\left\\lfloor \\frac{n}{p_{i}^{3}} \\right\\rfloor + \\ldots\n$$\nFor $n \\geqslant 9$, we have\n$$\n\\begin{aligned}\n& \\alpha_{2} > \\frac{n}{3} - \\frac{2}{3} + \\frac{n}{9} - \\frac{8}{9} = \\frac{4n - 14}{9} \\\\\n& \\alpha_{4} > \\frac{n-6}{7} \\\\\n& \\alpha_{3} < \\frac{n}{5} + \\frac{n}{25} + \\cdots = \\frac{n}{4} .\n\\end{aligned}\n$$\nIn the geometric sequence, we have $\\alpha_{2} \\alpha_{4} = \\alpha_{3}^{2}$. Since all terms in the above inequalities are positive, we get:\n$$\n\\left(\\frac{4n - 14}{9}\\right)\\left(\\frac{n-6}{7}\\right) < \\alpha_{2} \\alpha_{4} = \\left(\\alpha_{3}\\right)^{2} < \\frac{n^{2}}{16} .\n$$\nAfter simplification, we get: $n^{2} - 608n + 1344 \\leqslant 0$. This is certainly false for $n \\geqslant 608$ and it remains to check the small cases.\nFor two primes $p$ and $q$ with $p < q < 2p$, we know that for $q \\leqslant n \\leqslant 2p-1$, they will both have exponent 1 in the prime factor decomposition of $n!$ which is impossible because the ratio of the geometric sequence is bigger than 1 for $n > 3$. We will now give a list of appropriate primes $p$ and $q$ such that the intervals $[q, 2p-1]$ cover most of our interval.\n\n| $p$ | 3 | 5 | 7 | 11 | 17 | 29 | 47 | 83 | 157 | 311 |\n| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |\n| $q$ | 5 | 7 | 11 | 13 | 19 | 31 | 53 | 89 | 163 | 313 |\n| $2p-1$ | 5 | 9 | 13 | 21 | 33 | 57 | 93 | 165 | 313 | 621 |\n\nIt remains to check $n = 3, 4, 6, 10$ which give the sequences of exponents $(1,1), (3,1), (4,2,1)$ and $(8,4,2,1)$, respectively, which clearly work.\n\n\nAlternative solution:\n\nLet $p_{i}$ be the $i$\\textsuperscript{th} prime number, that is $p_{1} = 2, p_{2} = 3, p_{3} = 5$, etc.\nWe check the small cases up to $n = 11$ and find the solutions $3!$, $4!$, $6!$ and $10!$.\nFrom now on, let $n > 11$.\n\nClaim. The smallest and last exponent $\\alpha_{k}$ in the prime factor decomposition of $n!$ is always $1$.\n\nProof. By Bertrand's postulate, we know $p_{k+1} < 2p_{k}$. Therefore, for all $n \\in [p_{k}, p_{k+1} - 1]$, the largest prime number that occurs in $n!$ is $p_{k}$ and it occurs exactly once.\nTherefore, $\\alpha_{1} = f^{m}$ for some $f \\in \\mathbb{N}$ and $m+1$ is the number of primes in the prime factor decomposition of $n!$.\n\nCase 1: $f = 2$.\nThe exponent of $2$ in the prime factor decomposition of $(2^{m})!$ is $2^{m-1} + 2^{m-2} + \\cdots + 1 = 2^{m} - 1$. Therefore, $\\alpha_{1} = 2^{m}$ holds exactly for $n = 2^{m} + 2$ and $2^{m} + 3$, and since $n > 11$, we have $m \\geqslant 4$.\nLet $\\pi(x)$ be the number of primes $\\leqslant x$. We check easily that $\\pi(16) = 6$. Bertrand's postulate implies $\\pi(2x) \\geqslant \\pi(x) + 1$, therefore,\n$$\n\\pi(n) \\geqslant \\pi(2^{m}) \\geqslant \\pi(2^{m-1}) + 1 \\geqslant \\ldots \\geqslant \\pi(2^{4}) + m - 4 = 6 + m - 4 = m + 2\n$$\nwhich is not compatible with the fact that there are $m+1$ primes in the prime factor decomposition of $n!$.\n\nCase 2: $f > 2$.\nSince the exponent of $2$ is now even bigger than $2^{m}$, $n$ must be bigger than $2^{m} + 3$, so as before, the number of primes in the prime factor decomposition of $n!$ must be bigger than $m+1$ which is again a contradiction.\n\nWe have seen, that the solutions $3, 4, 6, 10$ are indeed all the solutions.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34952, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $\\mathbb{Q}^{+}$ denote the set of all positive rational numbers and let $\\alpha \\in \\mathbb{Q}^{+}$. Determine all functions $f: \\mathbb{Q}^{+} \\rightarrow (\\alpha,+\\infty)$ satisfying\n$$\nf\\left(\\frac{x+y}{\\alpha}\\right)=\\frac{f(x)+f(y)}{\\alpha}, \\quad \\text{ for all } x, y \\in \\mathbb{Q}^{+} .\n$$", "options": [], "answer": "For α = 2: f(x) = A x + B with either A > 0 and B ≥ 2, or A = 0 and B > 2. For α ≠ 2: no solutions exist.", "solution": "Solution:\nAnswer. For $\\alpha=2$ the solutions of our functional equation are given by $f(x)=A x+B$ for all $x \\in \\mathbb{Q}^{+}$, where either $A>0$ and $B \\geq 2$ or $A=0$ and $B>2$. For $\\alpha \\neq 2$ there are no solutions.\n\nBy putting $x=y$ in the given functional equation we get $f\\left(\\frac{2 x}{\\alpha}\\right)=f(x) \\cdot \\frac{2}{\\alpha}$. It follows that\n$$\nt \\in \\operatorname{Im}(f) \\Longleftrightarrow t \\cdot \\frac{2}{\\alpha} \\in \\operatorname{Im}(f) \\quad \\text{ for all } t \\in \\mathbb{Q}^{+} .\n$$\nTherefore, if $\\alpha \\neq 2$ then $f$ takes arbitrarily small values. This is a contradiction with the assumption that $f(x)>\\alpha$ for all $x \\in \\mathbb{Q}^{+}$. We conclude that there are no such functions for $\\alpha \\neq 2$.\n\nAssume now that $\\alpha=2$. By putting $x=a+b$ and $y=a-b$ in the given functional equation, where $a>b>0$ are any rationals, we get\n$$\nf(a+b)-f(a)=f(a)-f(a-b)\n$$\nIt follows that $f$ restricted to any arithmetic sequence is linear. Since for every rational number $q$ there is an arithmetic sequence containing $q$, $1$, and $2$, it follows that $f$ is linear on $\\mathbb{Q}^{+}$. Therefore $f(x)=A x+B$ for some reals $A$ and $B$. A direct check of the condition $f(x)>2$ for all $x \\in \\mathbb{Q}^{+}$ yields that it must be that either $A>0$ and $B \\geq 2$ or $A=0$ and $B>2$. Clearly, all such functions satisfy the given equation.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34953, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $ABC$ be an acute-angled triangle with $AB < AC$, and let $D$ be the foot of its altitude from $A$. Let $R$ and $Q$ be the centroids of the triangles $ABD$ and $ACD$, respectively. Let $P$ be a point on the line segment $BC$ such that $P \\neq D$ and the points $P, Q, R$ and $D$ are concyclic. Prove that the lines $AP, BQ$ and $CR$ are concurrent.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nWithout loss of generality, we may assume that $P$ lies on the line segment $CD$. Let $K, L$ be the midpoints of the sides $AB, AC$, respectively. Obviously\n$$\n\\angle CBA = \\angle KDB = \\angle RQP \\quad \\text{and} \\quad \\angle ACB = \\angle CDL = \\angle PRQ.\n$$\nFurthermore, from the fact that\n$$\n\\frac{DR}{DK} = \\frac{2}{3} = \\frac{DQ}{DL}\n$$\nwe can see that $RQ \\parallel KL$. Since $BC \\parallel KL$ we also have $RQ \\parallel BC$. This, together with angle equalities $\\left(^*\\right)$, implies that the sides $PQ, QR, RP$ of triangle $PQR$ are parallel to the sides $AB, BC, CA$ of triangle $ABC$, respectively. Obviously those triangles are not congruent, which means that there exists a homothety which maps triangle $PQR$ to $ABC$. The center of this homothety is the common intersection point of the lines $AP, BQ, CR$.\n\n![](attached_image_1.png)\nSolution:\n\nThe fact that triangles $ABC, PQR$ are homothetic may be proven in a slightly different way, as follows.\nLet $M$ be the midpoint of $BC$. Since the points $A, D$ are symmetric with respect to the line $KL$, it follows that\n$$\n\\angle KML = \\angle BAC = \\angle KDL = \\angle RPQ\n$$\nConsider a homothety $h$ with center $D$ and ratio $\\frac{DK}{DR} = \\frac{3}{2} = \\frac{DL}{DQ}$. Then $h$ maps the line segment $QR$ to the line segment $LK$. Furthermore, $h$ maps the point $P$ to the point $P'$ lying on the line $BC$ such that $\\angle LP'K = \\angle QPR$. But there are exactly two points that satisfy those conditions, namely $D$ and $M$. Since $P' \\neq D$ we have $P' = M$ and therefore $h$ maps triangle $PQR$ to $MLK$. Composing $h$ and the homothety centered at the centroid of $ABC$ with ratio $-2$ which maps $MLK$ to $ABC$, we obtain a homothety with negative ratio which maps $PQR$ to $ABC$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34954, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\na. Prove that for every positive integer $m$ there exists an integer $n \\geq m$ such that\n$$\n\\left\\lfloor\\frac{n}{1}\\right\\rfloor \\cdot\\left\\lfloor\\frac{n}{2}\\right\\rfloor \\cdots\\left\\lfloor\\frac{n}{m}\\right\\rfloor=\\binom{n}{m}\n$$\n\nb. Denote by $p(m)$ the smallest integer $n \\geq m$ such that the equation (*) holds. Prove that $p(2018)=p(2019)$.\n\nRemark: For a real number $x$, we denote by $\\lfloor x\\rfloor$ the largest integer not larger than $x$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nIt is clear that $p(1)=1$ and $p(2)=3$. From now on we assume that $m \\geq 3$.\n\nFirst, we prove that for all positive integers $n$ and $k$ with $1 \\leq k \\leq n$, it holds that\n$$\n\\left\\lfloor\\frac{n}{k}\\right\\rfloor \\geq \\frac{n-k+1}{k}\n$$\nIndeed, if we write $n$ as $i k+r$ where $0 \\leq r \\leq k-1$, then\n$$\n\\left\\lfloor\\frac{n}{k}\\right\\rfloor=i \\geq \\frac{i k+r-(k-1)}{k}=\\frac{n-k+1}{k}\n$$\nNote here that the equality holds if and only if $r=k-1$, that is, $n+1$ is divisible by $k$.\n\nTherefore, for all $n \\geq m$ we have\n$$\n\\left\\lfloor\\frac{n}{1}\\right\\rfloor \\cdot\\left\\lfloor\\frac{n}{2}\\right\\rfloor \\ldots\\left\\lfloor\\frac{n}{m}\\right\\rfloor \\geq \\frac{n}{1} \\cdot \\frac{n-1}{2} \\cdot \\ldots \\cdot \\frac{n-m+1}{m}=\\binom{n}{m} .\n$$\nThe equality holds if and only if $k$ divides $n+1$ for all $1 \\leq k \\leq m$. Since $m \\geq 3$, we have $\\operatorname{lcm}(1,2, \\ldots, m)>m$. Thus the least $n$ that satisfies these conditions is $\\operatorname{lcm}(1,2, \\ldots, m)-1$. It follows that $p(m)=\\operatorname{lcm}(1,2, \\ldots, m)-1$ for every integer $m \\geq 3$. In particular, a number $n$ as in statement a) always exists.\n\nTo finish the problem we need to prove that $\\operatorname{lcm}(1,2, \\ldots, 2018)=\\operatorname{lcm}(1,2, \\ldots, 2019)$. But this is clear, because $2019=3 \\cdot 673 \\mid \\operatorname{lcm}(1,2, \\ldots, 2018)$, so we are done.", "topic": "Algebra", "subtopic": "Equations and Inequalities" }, { "id": 34955, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nA group of pirates had an argument and now each of them holds some other two at gunpoint. All the pirates are called one by one in some order. If the called pirate is still alive, he shoots both pirates he is aiming at (some of whom might already be dead). All shots are immediately lethal. After all the pirates have been called, it turns out that exactly 28 pirates got killed.\nProve that if the pirates were called in whatever other order, at least 10 pirates would have been killed anyway.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nCall a pirate mortal if someone is aiming at him in the beginning. Since some order of shooting results in 28 pirates dead, there are at least 28 mortal pirates.\n\nFor the sake of contradiction, suppose that some order of shooting results in at most 9 dead pirates. Then at least 19 mortal pirates survive. Each mortal pirate is pointed at by some other pirate but the (at most) 9 dead pirates cannot point at more than 18 different pirates. Hence there is a mortal pirate, call him Will, who is pointed at by another pirate, call him Jack, and both Will and Jack survive till the end of the shooting. But then at some point Jack is called and he kills Will, a contradiction.", "topic": "Algebra", "subtopic": "Abstract Algebra" }, { "id": 34956, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $n$ be a positive integer and $u_{1}, u_{2}, \\ldots, u_{n}$ be positive integers not larger than $2^{k}$, for some integer $k \\geq 3$. A representation of a non-negative integer $t$ is a sequence of non-negative integers $a_{1}, a_{2}, \\ldots, a_{n}$ such that\n$$\nt = a_{1} u_{1} + a_{2} u_{2} + \\cdots + a_{n} u_{n}\n$$\nProve that if a non-negative integer $t$ has a representation, then it also has a representation where less than $2k$ of the numbers $a_{1}, a_{2}, \\ldots, a_{n}$ are non-zero.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nWe shall treat a representation of $t$ as a multiset with entries from $\\{u_{1}, \\ldots, u_{n}\\}$ whose sum is equal to $t$, where integers $a_{1}, \\ldots, a_{n}$ correspond to the multiplicities of numbers $u_{1}, \\ldots, u_{n}$ in the multiset. For a representation $M$, let the support of $M$ be the subset of those elements of $\\{u_{1}, \\ldots, u_{n}\\}$ that appear at least once in $M$. The problem boils down to proving that if there is some representation of $t$, then there is also one with support of size less than $2k$.\n\nOrdering numbers $u_{1}, \\ldots, u_{n}$ as in this sequence, let $M$ be the lexicographically smallest representation of $t$. We shall prove that $M$ satisfies the claim. Suppose for contradiction that the support of $M$ has size at least $2k$. Let $S$ be any subset of the support of $M$ consisting of $2k$ numbers and for each $X \\subseteq S$, consider the sum of numbers in $X$. This sum is an integer between $0$ and $2k \\cdot 2^{k}$, for which there are $1 + 2k \\cdot 2^{k}$ possibilities. On the other hand, there are $2^{2k}$ different subsets of $S$. Since $1 + 2k \\cdot 2^{k} < 2^{2k}$ for $k \\geq 3$ (straightforward induction), we infer that there are two different subsets $X, Y$ of $S$ such that $X$ and $Y$ have the same sum.\n\nSince both $X$ and $Y$ are subsets of $S$, they are also sub(multisets) of $M$. Consider constructing two multisets $M'$, $M''$ from $M$: $M'$ is obtained by subtracting $Y$ and adding $X$, whereas $M''$ is obtained by subtracting $X$ and adding $Y$. Since the sums of $X$ and $Y$ are equal, it follows that $M'$ and $M''$ are both representations of $t$. However, either $M'$ or $M''$ is lexicographically smaller than $M$, depending on whether $X$ is lexicographically smaller than $Y$. This is a contradiction with the choice of $M$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34957, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $ABC$ be an acute-angled triangle with $AB < AC$, and let $D$ be the foot of its altitude from $A$. Points $B'$, $C'$ lie on the rays $AB$ and $AC$, respectively, so that points $B'$, $C'$, and $D$ are collinear and points $B$, $C$, $B'$, and $C'$ lie on one circle with center $O$. Prove that if $M$ is the midpoint of $BC$ and $H$ is the orthocenter of $ABC$, then $DHMO$ is a parallelogram.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nWithout loss of generality assume that $AB < AC$. Let $H'$, $H''$ be the points symmetric to $H$ with respect to $BC$ and with respect to $M$, respectively. It is well-known that $H'$, $H''$ both lie on the circumcircle of $ABC$; furthermore, $AH''$ is the diameter of this circumcircle. Since $DH \\parallel MO$ (they are both perpendicular to $BC$), it suffices to prove that $MO = DH$. We will prove that $O$ is the midpoint of $H'H''$ which leads easily to the conclusion.\n\nSince $\\angle BH'A = \\angle BCA = \\angle BB'D$, we see that the points $B$, $B'$, $H'$, $D$ are concyclic. Therefore $\\angle H'B'B = 180^{\\circ} - \\angle BDH' = 90^{\\circ}$ and we find that $BB'H'H''$ is a right-angled trapezoid. It follows that the midpoint $P$ of $H'H''$ lies on the perpendicular bisector of $BB'$. Analogously we can prove that $P$ lies on the perpendicular bisector of $CC'$. However, $BB'$ and $CC'$ are chords of a circle with center $O$, which means that the intersection of their perpendicular bisectors is $O$. This implies that $O = P$ and finishes the proof.\n\n![](attached_image_1.png)\nSolution:\n\nAs in the first solution we introduce the point $H'$ and we observe that it lies on the circumcenter of $ABC$. By the power of point theorem we get\n$$\nDA \\cdot DH' = DB \\cdot DC = DB' \\cdot DC'\n$$\nand therefore $B'$, $H'$, $C'$, $A$ are concyclic. We conclude that\n$$\n\\angle AH'C' = \\angle AB'C' = \\angle BCA.\n$$\nThus\n$$\n\\angle BH'C' = \\angle BH'A + \\angle AH'C' = 2\\angle BCA = \\angle BOC'\n$$\nwhich leads us to the conclusion that $B$, $H'$, $O$, $C'$ are concyclic. Since the triangle $BOC'$ is isosceles, $\\angle C'BO = 90^{\\circ} - \\frac{1}{2} \\angle BOC' = 90^{\\circ} - \\angle BCA$ and therefore\n$$\n\\angle DH'O = \\angle AH'C' + \\angle C'H'O = \\angle BCA + \\angle C'BO = \\angle BCA + 90^{\\circ} - \\angle BCA = 90^{\\circ}.\n$$\nFrom $AD \\perp BC$ and $OM \\perp BC$ we deduce that $DMOH'$ is a rectangle which implies that $OM = H'D = DH$. Together with the fact that lines $DH$, $MO$ are parallel (they are both perpendicular to $BC$), this leads us to the final conclusion.\n\n![](attached_image_2.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34958, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $ABC$ be a triangle. The internal bisector of $\\angle ABC$ intersects the side $AC$ at $L$ and the circumcircle of triangle $ABC$ again at $W \\neq B$. Let $K$ be the perpendicular projection of $L$ onto $AW$. The circumcircle of triangle $BLC$ intersects line $CK$ again at $P \\neq C$. Lines $BP$ and $AW$ meet at point $T$. Prove that $AW = WT$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nNote that\n$$\n\\angle BPC = \\angle BLC = \\angle BAC + \\frac{\\angle CBA}{2} = \\angle BAW\n$$\nTherefore, $ABPK$ is cyclic.\nLet $KL$ intersect the circumcircle of triangle $BLC$ at a point $S \\neq L$. Then\n$$\n\\angle KSC = \\angle LSC = \\angle LBC = \\angle WBC = \\angle WAC = \\angle KAC.\n$$\nSo $KASC$ is cyclic.\nNow, radical axes of circles $KABP$, $BPCS$, $KASC$ are concurrent. That is: $AK$, $BP$, $CS$ concur and so $CS$ passes through $T$. Note that $\\angle SCA = \\angle SKA = 90^\\circ$, so $\\angle TCA = 90^\\circ$. As $AW = WC$, we find that $W$ is the circumcenter of the (right) triangle $ACT$, so $AW = WT$.\n\n![](attached_image_1.png)\nSolution:\nLet $T'$ be the point on the ray $AW$ such that $AW = WT'$. We will show that $T' = T$.\nAs $WA = WC = WT'$, $C$ lies on the circle with diameter $AT'$, so $\\angle ACT' = 90^\\circ = \\angle LKT'$. It follows that $KLCT'$ is cyclic.\nNote that $\\angle ALW = \\angle BLC = \\angle BAC + \\frac{\\angle CBA}{2} = \\angle BAW$. Therefore, triangles $AWL$ and $BWA$ are similar. It follows that $WA^2 = WL \\cdot WB$. So $WT'^2 = WL \\cdot WB$, and triangles $T'WL$ and $BWT'$ are similar.\nNow, let $BT'$ intersect $KC$ at $P'$. We will show that $P' = P$, from which we will get $T' = T$. Note that from $\\triangle T'WL \\sim \\triangle BWT'$ we get $\\angle LT'W = \\angle LBT' = \\angle LBP'$. As $KLCT'$ is cyclic, $\\angle LT'W = \\angle LT'K = \\angle LCK = \\angle LCP'$. Combining, we get $\\angle LCP' = \\angle LBP'$, meaning that $LBCP'$ is cyclic. As $LBCP$ is cyclic, $P' = P$, as desired.\n\n![](attached_image_2.png)", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34959, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $a_{1}, a_{2}, a_{3}, \\ldots$ be the sequence of positive integers such that\n$$\na_{1}=1 \\quad \\text{ and } \\quad a_{k+1}=a_{k}^{3}+1, \\text{ for all positive integers } k\n$$\nProve that for every prime number $p$ of the form $3 \\ell+2$, where $\\ell$ is a non-negative integer, there exists a positive integer $n$ such that $a_{n}$ is divisible by $p$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nLet $f(x)=x^{3}+1$. In what follows all congruences are considered modulo $p$.\nWe will prove that if $f(a) \\equiv f(b)$ for some integers $a$ and $b$, then $a \\equiv b$. This is clear when $f(a) \\equiv 1$, because then $a \\equiv b \\equiv 0$. Otherwise $a \\not \\equiv 0 \\not \\equiv b$. By Fermat's little theorem, we have $a^{3k+1} \\equiv 1 \\equiv b^{3k+1}$ and hence\n$$\nf(a) \\equiv f(b) \\Longrightarrow a^{3} \\equiv b^{3} \\Longrightarrow\\left(a^{3}\\right)^{2k+1} \\equiv\\left(b^{3}\\right)^{2k+1} \\Longrightarrow a \\cdot\\left(a^{3k+1}\\right)^{2} \\equiv b \\cdot\\left(b^{3k+1}\\right)^{2} \\Longrightarrow a \\equiv b .\n$$\nThe above observation implies that $f$ considered as a map from $\\mathbb{F}_{p}$ to $\\mathbb{F}_{p}$ is an injection, and therefore it is a permutation, because $\\mathbb{F}_{p}$ is finite. Let $\\ell$ be the length of the cycle of this permutation that contains $1$. Then\n$$\nf\\left(f^{\\ell-1}(1)\\right) \\equiv f^{\\ell}(1) \\equiv 1 \\equiv f(0) .\n$$\nSince $f$ is injective, it follows that $f^{\\ell-1}(1) \\equiv 0$. Therefore $n=\\ell-1$ is as required.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34960, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nAn integer $n$ is called Silesian if there exist positive integers $a, b$ and $c$ such that\n$$\nn = \\frac{a^{2} + b^{2} + c^{2}}{ab + bc + ca}\n$$\n\na. Prove that there are infinitely many Silesian integers.\n\nb. Prove that not every positive integer is Silesian.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\na.\n\nAlternative 1:\nFirst, we try to find $k$ such that $k = \\frac{a^{2} + b^{2} + c^{2}}{ab + bc + ca}$ for some (not necessarily positive) integers $a, b, c$. In order to reduce the number of variables, we look for solutions satisfying $a + b = 1$. Substituting $b = 1 - a$ we find\n$$\nk = \\frac{2a^{2} - 2a + 1 + c^{2}}{c + a(1 - a)} = \\frac{(c + 1)^{2}}{c + a(1 - a)} - 2.\n$$\nWe take $c = 1 - a(1 - a) = a^{2} - a + 1$ so that the denominator is equal to $1$. This forces $k = (c + 1)^{2} - 2 = (a^{2} - a + 2)^{2} - 2$.\nIt follows that if $c = a^{2} - a + 1$ and $k = (a^{2} - a + 2)^{2} - 2$ then $b_{1} = 1 - a$ is a root of the following quadratic equation in variable $b$:\n$$\na^{2} + b^{2} + c^{2} = k(ab + bc + ca)\n$$\nThe other root is, by Viète's formula, $b_{2} = k(a + c) - b_{1} = k(a + c) + a - 1$.\nIt is clear that for every integer $a > 0$ one has $c = a^{2} - a + 1 > 0$, $k = (a^{2} - a + 2)^{2} - 2 > 0$, and $b = k(a + c) + a - 1 > 0$. These numbers satisfy\n$$\n\\frac{a^{2} + b^{2} + c^{2}}{ab + bc + ca} = k\n$$\nand witness that $k = (a^{2} - a + 2)^{2} - 2 \\in S$ for every positive integer $a$.\n\nAlternative 2:\nTo prove that $k \\in S$ we have to find positive integers $a, b, c$ satisfying\n$$\nk \\cdot (ab + bc + ca) = a^{2} + b^{2} + c^{2}\n$$\nSet $a = k \\cdot (b + c) + x$ for some positive integer $x$. Then the above becomes equivalent to:\n$$\n\\begin{aligned}\nk \\cdot ((k(b + c) + x)(b + c) + bc) &= (k(b + c) + x)^{2} + b^{2} + c^{2} \\\\\nk^{2}(b + c)^{2} + kx(b + c) + kbc &= k^{2}(b + c)^{2} + 2kx(b + c) + x^{2} + b^{2} + c^{2} \\\\\nkbc - kx(b + c) &= x^{2} + b^{2} + c^{2} \\\\\nk(bc - bx - cx) &= x^{2} + b^{2} + c^{2}\n\\end{aligned}\n$$\nThis can be trivially satisfied, if we find positive integers $b, c, x$ with $bc - bx - cx = 1$. Or equivalently:\n$$\nb = \\frac{cx + 1}{c - x}\n$$\nThis shows that for any positive integer $x$ the following integers satisfy ($*$):\n$$\n\\begin{aligned}\n& c = x + 1 \\\\\n& b = cx + 1 = x^{2} + x + 1 \\\\\n& k = x^{2} + b^{2} + c^{2} = x^{4} + 2x^{3} + 5x^{2} + 4x + 2 \\\\\n& a = k(b + c) + x = x^{6} + 4x^{5} + 11x^{4} + 18x^{3} + 20x^{2} + 13x + 4\n\\end{aligned}\n$$\nIn particular, any integer of the form $x^{4} + 2x^{3} + 5x^{2} + 4x + 2$ is an element of $S$. As this grows strictly monotonically with $x$, we get infinitely many possible positive integer values in $S$.\n\nAlternative 3:\nLet $m$ be an odd positive number and let $a = F_{m}, b = F_{m+1}$, where $F_{i}$ denotes the $i$-th Fibonacci number. Moreover, let\n$$\nc = \\frac{(a^{2} + ab + b^{2})^{2} - ab}{a + b} = a^{3} + a^{2}b + ab^{2} + b^{3} + ab \\cdot \\frac{ab - 1}{a + b}.\n$$\nIn order to prove that $c$ is an integer we will first prove the following identity:\n$$\nF_{k+1}^{2} - F_{k}^{2} = F_{k}F_{k+1} + (-1)^{k}\n$$\nfor all integers $k \\geq 1$. Recall that $F_{i} = \\frac{\\xi^{i} - \\eta^{i}}{\\xi - \\eta}$, where $\\xi$ and $\\eta$ are the roots of the quadratic polynomial $t^{2} - t - 1$. Then $\\xi\\eta = -1$. Therefore\n$$\n\\begin{aligned}\nF_{k+1}^{2} - F_{k}^{2} - F_{k}F_{k+1} &= F_{k+1}(F_{k+1} - F_{k}) - F_{k}^{2} = F_{k+1}F_{k-1} - F_{k}^{2} \\\\\n&= \\frac{\\xi^{k+1} - \\eta^{k+1}}{\\xi - \\eta} \\cdot \\frac{\\xi^{k-1} - \\eta^{k-1}}{\\xi - \\eta} - \\left(\\frac{\\xi^{k} - \\eta^{k}}{\\xi - \\eta}\\right)^{2} \\\\\n&= \\frac{\\xi^{2k} + \\eta^{2k} - \\xi^{k+1}\\eta^{k-1} - \\xi^{k-1}\\eta^{k+1} - (\\xi^{2k} + \\eta^{2k} - 2\\xi^{k}\\eta^{k})}{(\\xi - \\eta)^{2}} \\\\\n&= \\frac{-\\xi^{k-1}\\eta^{k-1}(\\xi^{2} + \\eta^{2} - 2\\xi\\eta)}{(\\xi - \\eta)^{2}} = \\frac{(-1)^{k}(\\xi - \\eta)^{2}}{(\\xi - \\eta)^{2}} = (-1)^{k}.\n\\end{aligned}\n$$\nSince $m$ is odd we have\n$$\n(b - a)(b + a) = b^{2} - a^{2} = ab - 1,\n$$\ntherefore $a + b \\mid ab - 1$ which means that $c$ is indeed an integer.\nNow, observe that\n$$\nab + bc + ca = ab + c(a + b) = (a^{2} + ab + b^{2})^{2}.\n$$\nAs a consequence,\n$$\n\\begin{aligned}\n(a^{2} + b^{2} + c^{2})(a + b)^{2} &= (a^{2} + b^{2})(a + b)^{2} + (c(a + b))^{2} \\\\\n&\\equiv (a^{2} + b^{2})^{2} + 2(a^{2} + b^{2})ab + (ab)^{2} \\\\\n&= (a^{2} + ab + b^{2})^{2} \\equiv 0 \\pmod{ab + bc + ca}.\n\\end{aligned}\n$$\nBut since $\\gcd(a, b) = \\gcd(F_{m}, F_{m+1}) = 1$, then also\n$$\n\\gcd(a + b, ab + bc + ca) = \\gcd(a + b, ab) = 1\n$$\nTherefore we obtain that $\\frac{a^{2} + b^{2} + c^{2}}{ab + bc + ca}$ is an integer.\nTo end the proof it suffices to show that $\\frac{a^{2} + b^{2} + c^{2}}{ab + bc + ca}$ can be arbitrarily large, depending on the choice of $m$. But\n$$\n\\begin{gathered}\na^{2} + b^{2} + c^{2} \\geq c^{2} \\geq b^{6} \\quad \\text{and} \\\\\nab + bc + ca = (a^{2} + ab + b^{2})^{2} \\leq 9b^{4}\n\\end{gathered}\n$$\nwhich means that $\\frac{a^{2} + b^{2} + c^{2}}{ab + bc + ca} \\geq \\frac{b^{2}}{9}$. Since $b = F_{m+1}$ can be arbitrarily large, the conclusion follows.\n\n\nb.\n\nAlternative 1:\nWe will show that $4 \\notin S$. It is enough to prove that the equation\n$$\na^{2} + b^{2} + c^{2} = 4(ab + bc + ca)\n$$\nhas no solutions in positive integers. Since squares of integers may be congruent only to $0$ or $1$ modulo $4$, while the right hand side is divisible by $4$, we have $a^{2} \\equiv b^{2} \\equiv c^{2} \\equiv 0 \\pmod{4}$. Therefore $a = 2a_{1}, b = 2b_{1}, c = 2c_{1}$ for some positive integers $a_{1}, b_{1}, c_{1}$. Then\n$$\na_{1}^{2} + b_{1}^{2} + c_{1}^{2} = 4(a_{1}b_{1} + b_{1}c_{1} + c_{1}a_{1}).\n$$\nBy continuing this process we see that $a, b, c$ are divisible by $2^{k}$ for every positive integer $k$, which is a contradiction.\n\nAlternative 2:\nWe will prove that $3 \\notin S$. We have to show that there are no positive integers $a, b, c$ satisfying\n$$\na^{2} + b^{2} + c^{2} = 3(ab + bc + ca)\n$$\nSuppose the contrary and let $a, b, c$ be a solution to the above that minimizes $a + b + c$. Then at least one of $a, b, c$ is odd because otherwise $a/2, b/2, c/2$ is a solution with a smaller sum of variables.\nWe rewrite the equation in the following form:\n$$\n(a + b)^{2} + (b + c)^{2} + (c + a)^{2} = 8(ab + bc + ca).\n$$\nSince squares of integers may be congruent only to $0$ or $1$ modulo $4$, we see that $(a + b)^{2} \\equiv (b + c)^{2} \\equiv (c + a)^{2} \\pmod{4}$. It follows that $a, b, c$ have the same parity. Since one of $a, b, c$ is odd, actually all of them are odd. Write $a = 2k + 1, b = 2l + 1, c = 2m + 1$. Substituting this to the original equation yields\n$$\n4(k^{2} + k + l^{2} + l + m^{2} + m) + 3 = 12(kl + lm + mk + k + l + m) + 9.\n$$\nIt follows that $3 \\equiv 9 \\pmod{4}$ which is absurd. Therefore, there are no positive integers $a, b, c$ satisfying $a^{2} + b^{2} + c^{2} = 3(ab + bc + ca)$.\n\nAlternative 3:\nBefore we start the actual proof, let us give some preparatory statements. First, we may assume without loss of generality that $\\gcd(a, b, c) = 1$, as otherwise we can simply divide all of $a, b, c$ by $\\gcd(a, b, c)$. Next, we claim that $\\gcd(a, b) = 1$. Otherwise, the denominator would be divisible by $\\gcd(a, b)$, so the numerator would have to be divisible by $\\gcd(a, b)$ as well, which would entail $\\gcd(a, b) \\mid c$. But this contradicts $\\gcd(a, b, c) = 1$.\nWe now move to the main problem: we claim that $3 \\notin S$. In other words, we have to prove that the equation\n$$\na^{2} + b^{2} + c^{2} = 3ab + 3bc + 3ca\n$$\nhas no solutions in positive integers. Regrouping the terms yields\n$$\nc^{2} - (3a + 3b)c + a^{2} - 3ab + b^{2} = 0\n$$\nwhich we now consider as a quadratic equation in $c$. For $c$ to be an integer, it is necessary that the discriminant, written below, is a perfect square:\n$$\n\\Delta = 9(a + b)^{2} - 4(a^{2} - 3ab + b^{2}) = 5(a^{2} + 6ab + b^{2})\n$$\nThis implies that $a^{2} + 6ab + b^{2} = (a + 3b)^{2} - 8b^{2}$ is divisible by $5$. However, $(a + 3b)^{2}$ may be congruent only to $0, 1$, or $4$ modulo $5$, whereas $8b^{2}$ may be congruent only to $0, 2$, or $3$ modulo $5$, so their difference can only be divisible by $5$ only if $b \\equiv 0 \\pmod{5}$ and $a + 3b \\equiv 0 \\pmod{5}$. This however implies $5 \\mid \\gcd(a, b) = 1$, which is a contradiction.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34961, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nDetermine the smallest and the greatest possible values of the expression\n\n$$\n\\left(\\frac{1}{a^{2}+1}+\\frac{1}{b^{2}+1}+\\frac{1}{c^{2}+1}\\right)\\left(\\frac{a^{2}}{a^{2}+1}+\\frac{b^{2}}{b^{2}+1}+\\frac{c^{2}}{c^{2}+1}\\right)\n$$\nprovided $a$, $b$, and $c$ are non-negative real numbers satisfying $ab+bc+ca=1$.", "options": [], "answer": "minimum 27/16, maximum 2", "solution": "Solution:\n\nLet us denote\n$$\nx=\\frac{a^{2}}{a^{2}+1}+\\frac{b^{2}}{b^{2}+1}+\\frac{c^{2}}{c^{2}+1}, \\quad y=\\frac{2 a b c}{(a+b)(b+c)(c+a)}\n$$\nto simplify notation.\nDenominators in $x$ can be manipulated using $ab+bc+ca=1$ as\n$$\na^{2}+1=a^{2}+ab+bc+ca=(a+b)(a+c)\n$$\nand similarly for $b^{2}+1$ and $c^{2}+1$. This yields a relation between $x$ and $y$\n$$\nx=\\frac{a^{2}(b+c)+b^{2}(c+a)+c^{2}(a+b)}{(a+b)(b+c)(c+a)}=1-\\frac{2 a b c}{(a+b)(b+c)(c+a)}=1-y\n$$\nUsing\n$$\n\\frac{1}{a^{2}+1}=1-\\frac{a^{2}}{a^{2}+1}\n$$\nand similar relations for $b$ and $c$ we have\n$$\n\\left(\\frac{1}{a^{2}+1}+\\frac{1}{b^{2}+1}+\\frac{1}{c^{2}+1}\\right)\\left(\\frac{a^{2}}{a^{2}+1}+\\frac{b^{2}}{b^{2}+1}+\\frac{c^{2}}{c^{2}+1}\\right)=(3-x) x\n$$\nSince $(3-x) x=(2+y)(1-y)=2-y-y^{2}$, we want to estimate $y$. Obviously $y \\geq 0$ with equality e.g. for $(a, b, c)=(0,1,1)$. On the other hand $y \\leq \\frac{1}{4}$ as can be seen after multiplying three AM-GM inequalities\n$$\na+b \\geq 2 \\sqrt{ab}, \\quad b+c \\geq 2 \\sqrt{bc}, \\quad c+a \\geq 2 \\sqrt{ca}\n$$\nThe equality is reached for $a=b=c=\\sqrt{\\frac{1}{3}}$.\nFinally we compute\n$$\n\\frac{27}{16}=2-\\frac{1}{4}-\\frac{1}{16} \\leq 2-y-y^{2} \\leq 2\n$$\n\n\nSimilar solution:\n\nLet us denote\n$$\nx=\\frac{1}{a^{2}+1}+\\frac{1}{b^{2}+1}+\\frac{1}{c^{2}+1}\n$$\nSince\n$$\n\\frac{a^{2}}{a^{2}+1}=1-\\frac{1}{a^{2}+1}\n$$\nholds we have\n$$\n\\left(\\frac{1}{a^{2}+1}+\\frac{1}{b^{2}+1}+\\frac{1}{c^{2}+1}\\right)\\left(\\frac{a^{2}}{a^{2}+1}+\\frac{b^{2}}{b^{2}+1}+\\frac{c^{2}}{c^{2}+1}\\right)=x(3-x)=\\frac{9}{4}-\\left(x-\\frac{3}{2}\\right)^{2}\n$$\nTo obtain the extrema it is sufficient to find the bounds of $x$.\nThe sum $a+b+c$ is non-negative because $a, b, c \\geq 0$. If $a+b+c=0$ then $a=b=c=0$ what is in contradiction with $ab+bc+ca=1$, so $a+b+c>0$. Using $ab+bc+ca=1$ we obtain\n$$\n\\frac{1}{a^{2}+1}=\\frac{1}{a^{2}+ab+bc+ca}=\\frac{1}{(a+b)(a+c)}\n$$\nand similarly for $1/(b^{2}+1)$ and $1/(c^{2}+1)$. This yields\n$$\nx=\\frac{2(a+b+c)}{(a+b)(b+c)(c+a)}=\\frac{2(a+b+c)}{(a+b+c)(ab+bc+ca)-abc}=\\frac{2}{1-\\frac{abc}{a+b+c}}\n$$\nand the problem is reduced to find bounds of $\\frac{abc}{a+b+c}$. We have obviously\n$$\n0 \\leq \\frac{abc}{a+b+c}\n$$\nThe equality holds there if one of $a, b, c$ is equal 0 and the product of remaining two is 1. On the other hand using AM-GM inequality we have\n$$\na+b+c=(a+b+c)(ab+bc+ca) \\geq 3(abc)^{\\frac{1}{3}} \\cdot 3(abc)^{\\frac{2}{3}}=9abc\n$$\nwith equality in the case $a=b=c=\\frac{\\sqrt{3}}{3}$. So\n$$\n\\frac{abc}{a+b+c} \\leq \\frac{1}{9}\n$$\nThese inequalities give us the bounds for $x$\n$$\n2 \\leq x=\\frac{2}{1-\\frac{abc}{a+b+c}} \\leq \\frac{9}{4}\n$$\nThis follows\n$$\n\\frac{27}{16} \\leq \\frac{9}{4}-\\left(x-\\frac{3}{2}\\right)^{2} \\leq 2\n$$\nThe lower bound arises if one of $a, b, c$ is zero and product of the others is 1, the upper bound arises if $a=b=c=\\frac{\\sqrt{3}}{3}$.", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 34962, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $\\alpha$ be a real number. Determine all polynomials $P$ with real coefficients such that\n$$\nP(2x+\\alpha) \\leq (x^{20} + x^{19}) P(x)\n$$\nholds for all real numbers $x$.", "options": [], "answer": "P(x) ≡ 0", "solution": "Solution:\n\nZero polynomial obviously satisfies the problem. Further, let us suppose that polynomial $P$ is non-zero. Let $n$ be its degree and $a_n \\neq 0$ be its coefficient at $x^n$. Polynomial $(x^{20} + x^{19}) P(x) - P(2x+\\alpha)$ has degree $n+20$, coefficient $a_n$ at $x^{n+20}$ and it is non-negative for all real numbers $x$. It follows that $n+20$ (and $n$ too) is an even number and $a_n > 0$.\n\nFor $x = -1$ and $x = 0$ we obtain\n$$\nP(-2 + \\alpha) \\leq 0 \\quad \\text{and} \\quad P(\\alpha) \\leq 0\n$$\nSo $P$ has real roots. Let $m$ be its minimal real root and $M$ the maximal real root. Since $a_n > 0$ the values $P(x)$ are positive outside the interval $\\langle m, M \\rangle$. It yields $\\{-2 + \\alpha, \\alpha\\} \\subset \\langle m, M \\rangle$, the interval $\\langle m, M \\rangle$ is so proper (non-degenerate) and it has the length at least $2$.\n\nFor $x = m$ we have\n$$\nP(2m + \\alpha) \\leq 0\n$$\nThis implies $m \\leq 2m + \\alpha$ and therefore $-\\alpha \\leq m$. Analogously for $x = M$ we obtain\n$$\nP(2M + \\alpha) \\leq 0\n$$\nThis yields $2M + \\alpha \\leq M$ and $M \\leq -\\alpha$. It follows altogether $m = M = -\\alpha$, which contradicts the fact that $\\langle m, M \\rangle$ is the proper interval. This finally proves that non-zero polynomial $P$ satisfying the problem does not exist.", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 34963, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nThere are $n$ boys and $n$ girls in a school class, where $n$ is a positive integer. The heights of all the children in this class are distinct. Every girl determines the number of boys that are taller than her, subtracts the number of girls that are taller than her, and writes the result on a piece of paper. Every boy determines the number of girls that are shorter than him, subtracts the number of boys that are shorter than him, and writes the result on a piece of paper. Prove that the numbers written down by the girls are the same as the numbers written down by the boys (up to a permutation).", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nWe prove the statement by induction. The case $n=1$ is easy (either both children write down $0$, or both write down $1$).\n\nFor the induction step, suppose that the children are standing in a row in order of height (the tallest first), and consider a boy and a girl standing next to each other (such a pair must clearly always exist). If $k$ boys and $\\ell$ girls are taller than these two, then either both write down $k-\\ell = (n-\\ell-1)-(n-k-1)$ (if the girl is taller), or both write down $(k+1)-\\ell = (n-\\ell)-(n-k-1)$ (if the boy is taller).\n\nIf we remove these two children from the class, the numbers of all the other children would remain the same (the boy and the girl cancel in the other children's calculations). Thus we are done by the induction hypothesis.", "topic": "Discrete Mathematics", "subtopic": "Combinatorics" }, { "id": 34964, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nProve that every integer from $1$ to $2019$ can be represented as an arithmetic expression consisting of up to $17$ symbols $2$ and an arbitrary number of additions, subtractions, multiplications, divisions and brackets. The $2$'s may not be used for any other operation, for example to form multi-digit numbers (such as $222$) or powers (such as $2^{2}$).\n\nValid examples:\n$$\n\\left((2 \\times 2+2) \\times 2-\\frac{2}{2}\\right) \\times 2=22, \\quad(2 \\times 2 \\times 2-2) \\times\\left(2 \\times 2+\\frac{2+2+2}{2}\\right)=42\n$$", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nWe will first prove by induction that every even number less than $2^{n}$ can be written with at most $\\frac{3}{2} n-1$ $2$'s. This is certainly true for $n=2$ and $n=3$ with $2=2$, $4=2+2$ and $6=2+2+2$.\n\nLet $k \\geq 8$ be an even number $<2^{n}$. If it is divisible by $4$, it can be written as $2\\left(\\frac{k}{2}\\right)$ which needs at most $1+\\frac{3}{2}(n-1)-1<\\frac{3}{2} n-1$ by induction. If $k \\equiv 2\\pmod{4}$, then $k=2+2 \\cdot 2 k'$ where $k'<2^{n-2}$. If $k'$ is an even number, then we obtain $k$ using at most $1+2+\\frac{3}{2}(n-2)-1=\\frac{3}{2} n-1$ $2$'s, by induction. If $k'$ is odd, then $k'+1$ is even and we have $k=2 \\cdot 2\\left(k'+1\\right)-2$. If $k'+1<2^{n-2}$ then we can use induction again to get $k$ with at most $1+2+\\frac{3}{2}(n-2)-1=\\frac{3}{2} n-12$ $2$'s. If $k'+1=2^{n-2}$, we obtain $k=2 \\cdot 2 \\cdot 2^{n-2}-2$ using $n+12$ $2$'s which is less or equal to $\\frac{3}{2} n-1$ since $n \\geq 4$. This finishes the proof for even numbers.\n\nObviously, any odd number can be obtained from an even number by adding $\\frac{2}{2}$, so any odd number less than $2^{n}$ can be obtained by at most $\\frac{3}{2} n-1+2=\\frac{3}{2} n+12$ $2$'s, which for $n=11$ yields $17$ $2$'s.\nSolution:\n\nIt is enough to show that all multiples of $4$ can be written using at most $15$ $2$'s (since numbers not divisible by $4$ can be written as $N+2$ or $N \\pm \\frac{2}{2}$ where $N$ is divisible by $4$). So, let $N$ be divisible by $4$ and let its binary representation be $N=2^{a_{1}}+\\cdots+2^{a_{k}}$ with $a_{1}>a_{2}>\\cdots>a_{k}>1$. Since $N<2019$ we have $a_{1} \\leq 10$. Observe that $k$ is the number of $1$'s in the binary representation of $N$. We distinguish two cases:\n\n1st case: Let $k \\leq 6$, i.e. there are at most six $1$'s in the binary representation of $N$. Then we can write\n$$\nN=2^{a_{k}-1}\\left(2+2^{a_{k-1}-a_{k}}\\left(2+2^{a_{k-2}-a_{k-1}}\\left(2+\\ldots\\left(2+2^{a_{1}-a_{2}+1}\\right)\\right)\\right)\\right)\n$$\nIf we rewrite all powers using multiplication, we obtain an expression with $a_{k}-1+a_{k-1}-a_{k}+\\cdots+a_{1}-a_{2}+1=a_{1}$ $2$'s coming from powers and one additional $2$ added in each bracket. Since there are $k-1$ brackets, we need $a_{1}+k-1 \\leq 10+5=15$ $2$'s to represent $N$.\n\n2nd case: Let $k \\geq 7$. Then we can write $N=2^{11}-1-2^{b_{1}}-2^{b_{2}}-\\cdots-2^{b_{l}}$, where $b_{1}>b_{2}>\\cdots>b_{l}$ are the positions of zeros in the binary representation of $N$. Since $N$ is divisible by $4$, we have $b_{l}=0$, $b_{l-1}=1$. Similarly to the first case, we have\n$$\nN=2^{11}-2^{b_{1}}-\\cdots-2^{b_{l-2}}-4=2\\left(2^{b_{l-2}-2}\\left(2^{b_{l-3}-b_{l-2}}\\left(\\ldots\\left(2^{11-b_{1}+1}-2\\right) \\ldots\\right)-2\\right)-2\\right)\n$$\nIf we expand powers into multiplications, the number of multiplying $2$'s is $1+\\left(b_{l-2}-2\\right)+\\left(b_{l-3}-b_{l-2}\\right)+\\cdots+11-b_{1}+1=11$ and the number of $2$'s after minus signs is exactly $l-1$, i.e. at most $10+l$ $2$'s in total. Since $k \\geq 7$, there are at most four zeros in the binary representation of $N$, i.e. $l \\leq 4$ and $10+l \\leq 15$, which completes the proof.", "topic": "Algebra", "subtopic": "Algebraic Expressions" }, { "id": 34965, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $ABC$ be an acute-angled triangle such that $AB < AC$. Let $D$ be the point of intersection of the perpendicular bisector of the side $BC$ with the side $AC$. Let $P$ be a point on the shorter arc $AC$ of the circumcircle of the triangle $ABC$ such that $DP \\parallel BC$. Finally, let $M$ be the midpoint of the side $AB$. Prove that $\\angle APD = \\angle MPB$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nLet the line $DP$ intersect the circumcircle of the triangle $ABC$ again at a point $Q$. We can see that\n$$\n\\angle ADQ = \\angle ACB = \\angle APB \\quad \\text{and} \\quad \\angle AQD = \\angle AQP = \\angle ABP\n$$\nThis implies that the triangles $AQD$ and $ABP$ are similar and therefore the equality\n$$\n\\frac{AQ}{QD} = \\frac{AB}{BP}\n$$\nholds.\n\n![](attached_image_1.png)\n\nSince $QP = 2 QD$ and $AB = 2 MB$ we immediately obtain\n$$\n\\frac{AQ}{QP} = \\frac{MB}{BP}\n$$\nSince further $\\angle AQP = \\angle MBP$, the triangles $AQP$ and $MBP$ are also similar. This yields $\\angle APD = \\angle MPB$ and the proof is finished.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34966, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $ABC$ be a right-angled triangle with its right angle at $B$ and circumcircle $c$. Denote by $D$ the midpoint of the shorter arc $AB$ of $c$. Let $P$ be the point on the side $AB$ such that $CP = CD$ and let $X$ and $Y$ be two distinct points on $c$ satisfying $AX = AY = PD$. Prove that the points $X$, $Y$ and $P$ are collinear.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nIt will be enough to prove that $PX \\perp AC$. Without loss of generality assume that $X$ lies in another half-plane with regard to the line $AC$ than the point $B$. Let us denote $K \\neq D$ the point of intersection of the line $DP$ and the circle $c$. Further, let $S$ be the point on the ray $AX$ with $AS = DK$. Since $D$ is the midpoint of the arc $AB$, we have\n$$\n\\angle BAD = \\angle PAD = \\angle AKD = \\angle AXD\n$$\nand thus the triangles $DAP$ and $DKA$ are (by the AA-theorem) similar. Therefore it holds $AD^{2} = DP \\cdot DK = AX \\cdot AS$. This implies that the triangles $AXD$ and $ADS$ are also similar. Hence\n$$\n\\angle DSA = \\angle ADX = \\angle ACX = 90^{\\circ} - \\angle XAC = 90^{\\circ} - \\angle SAC\n$$\nThus $SD \\perp AC$.\n\n![](attached_image_1.png)\n\nLet $c_1$ be the circle with center $C$ and radius $CD = CP$. Similarly, let $c_2$ be the circle with center $D$ and radius $DA = DB$. Finally, let $L$ be a point of intersection of the lines $SD$ and $AB$. Then $DL$ (i.e. $DS$) is the radical axis of $c_1$ and $c$, because $D$ lies on both circles ($c_1$ and $c$) and $DS$ is perpendicular to the line passing through the centres of $c_1$ and $c$.\n\nMoreover, $AB$ is the radical axis of $c_2$ and $c$ since both circles pass through $A$ and $B$. Hence the point $L$ is the radical center of the circles $c$, $c_1$ and $c_2$. For powers of the point $K$ with respect to the circles $c_1$ and $c_2$ we therefore have\n$$\n\\operatorname{Pow}\\left(K, c_2\\right) = DK^{2} - DA^{2} = DK^{2} - DP \\cdot DK = KP \\cdot KD = \\operatorname{Pow}\\left(K, c_1\\right)\n$$\nThus $KL$ is the radical axis of $c_1$ and $c_2$. In particular, $KL$ is perpendicular to the line passing through centres of these two circles, i.e. $KL \\perp CD$. Since $AD \\perp CD$, we get $KL \\parallel AD$. Similarity of the triangles $KLP$ and $DAP$ (the quadrilateral $KLDA$ is a trapezoid with the intersection point $P$ of its diagonals) further yields\n$$\n\\frac{AP}{AL} = \\frac{DP}{DK} = \\frac{AX}{AS}\n$$\nthus $PX \\parallel DS$, so $PX \\perp AC$, and the proof is done.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34967, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $a$, $b$ and $c$ be positive integers satisfying $a < b < c < a + b$. Prove that $c(a-1) + b$ does not divide $c(b-1) + a$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nPut $A = c(a-1) + b$, $B = c(b-1) + a$ and suppose that $A$ is a divisor of $B$. Then $A$ is also a divisor of the number $C = bA - aB$. Since\n$$\nC = b(c(a-1) + b) - a(c(b-1) + a) = (b-a)(a+b-c) > 0\n$$\nit follows from $c > b-a > 0$ and $a-1 \\geq a+b-c > 0$ that\n$$\nA = c(a-1) + b > c(a-1) > (b-a)(a+b-c) = C\n$$\nThus $A > C > 0$, which implies that $A$ does not divide $C$, a contradiction.\n\n\nSolution 2:\n\nIt suffices to verify that\n$$\n\\frac{b-1}{a} < \\frac{c(b-1)+a}{c(a-1)+b} < \\frac{b}{a}\n$$\nbecause no integer lies between the two fractions $\\frac{b-1}{a}$ and $\\frac{b}{a}$. Routine algebraic manipulations show that the left-hand inequality is equivalent to\n$$\nc > b - \\frac{a^{2}}{b-1}, \\quad \\text{ where } \\quad \\frac{a^{2}}{b-1} > 0\n$$\nwhile the right-hand inequality is equivalent to $c < a + b$. The proof is complete.\n\n\nSolution 3:\n\nPut $A = c(a-1) + b$, $B = c(b-1) + a$ and suppose that $A$ divides $B$. We will prove by induction that for any positive integer $n$, both inequalities $b \\geq n a$ and $B \\geq n A$ hold true. It is clear that no such $a$ and $b$ exist, since $a \\geq 1$ and thus $b < n a$ for some $n$.\n\nFor $n = 1$, we have $b > a$ by the conditions of the problem. Besides, since $A \\mid B$ and $A, B$ are clearly positive, we have $B \\geq A$ as well.\n\nLet $n \\geq 1$ be now an integer such that $b \\geq n a$ and $B \\geq n A$. Our goal is to prove that $b \\geq (n+1) a$ and $B \\geq (n+1) A$ as well. Firstly we verify that $B > n A$. If $b > n a$, then\n$$\nB - n A = c(b-1-a n) + c n + a - n b \\geq c n + a - n b = n(c-b) + a > a > 0\n$$\nand we are done. On the other hand, if $b = n a$, then $n b - a = (n-1)(a+b)$ and hence the nonnegative number $B - n A$ can be written as\n$$\nB - n A = (n-1) c - (n b - a) = (n-1) c - (n-1)(a+b) = (n-1)(c-a-b)\n$$\nwhich means that $n = 1$ (because of $c < a + b$), which contradicts to $b = n a$. So $B > n A$ is proven. Since $A \\mid (B - n A)$, we have $B - n A \\geq A$, i.e. $B \\geq (n+1) A$. To finish the second induction step, it remains to prove that $b \\geq (n+1) a$.\n\nThe proved inequality $B \\geq (n+1) A$ means that\n$$\nc(b-(n+1)a+n) \\geq (n+1) b - a\n$$\nSince $b \\geq n a$ implies that $a \\leq \\frac{b}{n}$ and hence $\\frac{n+1}{n} b \\geq a + b > c$, we can conclude the following:\n$$\n(n+1) b - a \\geq \\left((n+1) - \\frac{1}{n}\\right) b = \\frac{n(n+1)-1}{n} b > \\frac{n(n+1)-1}{n+1} c = \\left(n - \\frac{1}{n+1}\\right) c\n$$\nComparing this with the preceding inequality, we get\n$$\nb - (n+1)a + n > n - \\frac{1}{n+1}, \\quad \\text{ or } \\quad b - (n+1)a > -\\frac{1}{n+1} > -1\n$$\nhence the integer $b - (n+1)a$ is nonnegative, as we wished to prove.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34968, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $N$ be a positive integer such that the sum of the squares of all positive divisors of $N$ is equal to the product $N(N+3)$. Prove that there exist two indices $i$ and $j$ such that $N=F_{i} \\cdot F_{j}$, where $\\left(F_{n}\\right)_{n=1}^{\\infty}$ is the Fibonacci sequence defined by $F_{1}=F_{2}=1$ and $F_{n}=F_{n-1}+F_{n-2}$ for all $n \\geq 3$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nDenote by $1=d_{1}0$ implies that $k \\geq 3$. However, if $k=3$, then $N=p^{2}$ with some prime $p=d_{2}$ satisfying $p^{2}=3 p^{2}-1$, which is impossible. Thus $k \\geq 4$.\nFor each $i=2,3, \\ldots, k-1$, we have $d_{i} d_{k+1-i}=N$ and hence $d_{i}^{2}+d_{k+1-i}^{2} \\geq 2 N$ by the AM-GM inequality. Consequently,\n$$\n3 N-1=\\sum_{i=2}^{k-1} d_{i}^{2}=\\frac{1}{2} \\sum_{i=2}^{k-1}\\left(d_{i}^{2}+d_{k+1-i}^{2}\\right) \\geq \\frac{1}{2}(k-2) \\cdot 2 N=(k-2) N\n$$\nHowever, $3 N-1 \\geq(k-2) N$ means that $k \\leq 5-\\frac{1}{N}<5$, which together with the previous fact that $k \\geq 4$ leads to the equality $k=4$. Thus either $N=p^{3}$ with $p$ being a prime and our equation becomes $p^{2}+p^{4}=3 p^{3}-1$, or $N$ has a factorization $N=p q$, with some primes $p>q$ and our equation becomes $p^{2}+q^{2}=3 p q-1$. As the first case cannot have any solutions, we conclude that the latter must be true.\nNotice that the equation $p^{2}+q^{2}=3 p q-1$ has 'prime' solutions $(p, q)=(5,2)=\\left(F_{5}, F_{3}\\right)$ and $(p, q)=(13,5)=\\left(F_{7}, F_{5}\\right)$. This encourages us to prove a more general fact: Any solution $(a, b)$ of the equation $a^{2}+b^{2}=3 a b-1$ with positive integers $a>b$ is of the form $(a, b)=\\left(F_{2 i+1}, F_{2 i-1}\\right)$, for some $i \\geq 1$. After proving it, we get the desired representation $N=p q=F_{2 i+1} F_{2 i-1}$.\nAssume to the contrary that there exist integers $a>b>0$ such that $a^{2}+b^{2}=3 a b-1$ but no $i$ such that $a=F_{2 i+1}$ and $b=F_{2 i-1}$. Among all such pairs $(a, b)$, take the one with $b$ minimal. By Vieta's formulas, the equation $a^{2}+b^{2}=3 a b-1$ remains to hold if we replace $a$ by the number $a^{\\prime}$ that satisfies $a+a^{\\prime}=3 b$ and $a a^{\\prime}=b^{2}+1$. In view of the symmetry, the solutions of the equation are then not only pairs $(a, b)$ and $\\left(a^{\\prime}, b\\right)$, but $\\left(b, a^{\\prime}\\right)$ as well.\nNote that the number $a^{\\prime}=3 b-a$ is an integer which is positive, because of $a>0$ and $a a^{\\prime}=b^{2}+1>0$. Moreover, $a \\geq b+1$ implies that\n$$\na^{\\prime}=\\frac{b^{2}+1}{a} \\leq \\frac{b^{2}+1}{b+1}=b-\\frac{b-1}{b+1} \\leq b\n$$\nThus $a^{\\prime} X+999$. Then the 1000 consecutive integers\n$$\n10^{i} + X, 10^{i} + X + 1, \\ldots, 10^{i} + X + 999\n$$\nhave a total digit sum equal to $N+1000$ (since each number got an extra digit 1 and, possibly, several zeroes).\n\n\nPart 2, by discrete continuity. We make three observations:\n(A) For any integer $n \\geq 0$, we have $S(n+1) - S(n) \\leq 1$.\n- Indeed, as before, we have\n$$\nS(n+1) - S(n) = \\left(s_{n+1} + \\cdots + s_{n+1000}\\right) - \\left(s_{n} + \\cdots + s_{n+999}\\right) = s_{n+1000} - s_{n}\n$$\nNote that the numbers $n+1000$ and $n$ have the same last three digits. We distinguish two cases:\na) If the fourth digit of $n$ from the right is less than 9, then the digits of $n+1000$ and $n$ differ only in that position and we have $s_{n+1000} - s_{n} = 1$. (If $n$ is 3-digit, this is true too.)\nb) Otherwise, suppose that there are $d \\geq 1$ consecutive digits 9 just in front of the last three digits of $n$. Then $s_{n+1000} - s_{n} = 1 - 9d < 1$, because the resulting number will have $d$ zeroes in place of the nines, and the digit to the left of the nines increased by one.\n(B) We have $S(0) = 13500$.\n- By the same argument as in Part 1 we get $S(0) = 3 \\cdot 100 \\cdot (0+1+\\cdots+9) = 13500$.\n(C) The sequence $S(n)$ is unbounded as $n \\rightarrow \\infty$.\n- For instance, setting $n = 10^{k} - 1$ we get $S(n) \\geq s_{n} = 9k$.\nIt remains to put the observations together. By (B), the number $n = 13500$ is contagious. Now fix $N \\geq 13501$. Since the sequence $(S(n))_{n=0}^{\\infty}$ is unbounded, there exists an integer $k \\geq 1$ such that $S(k) \\geq N$. Take the smallest such $k$. By minimality of $k$ we have $S(k-1) \\leq N-1$. Combining this with (A) we now deduce\n$$\nN \\leq S(k) \\leq 1 + S(k-1) \\leq 1 + (N-1) = N\n$$\nhence $S(k) = N$ implying that $N$ is contagious.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34970, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $ABC$ be an acute scalene triangle with circumcircle $\\omega$ and incenter $I$. Suppose the orthocenter $H$ of $BIC$ lies inside $\\omega$. Let $M$ be the midpoint of the longer arc $BC$ of $\\omega$. Let $N$ be the midpoint of the shorter arc $AM$ of $\\omega$.\nProve that there exists a circle tangent to $\\omega$ at $N$ and tangent to the circumcircles of $BHI$ and $CHI$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nDenote the circumcircles of $BHI$ and $CHI$ by $\\omega_{1}$ and $\\omega_{2}$ and their centers by $O_{1}$ and $O_{2}$, respectively. Let $O$ be the center of $\\omega$. Let $R$ be the radius of $\\omega$.\nSince $H$ is the orthocenter of triangle $BIC$ it follows that $I$ is the orthocenter of triangle $BHC$. Therefore\n$\\angle HIB = 180^{\\circ} - (\\angle BHI + \\angle IBH) = 180^{\\circ} - \\left(90^{\\circ} - \\angle CBH + 90^{\\circ} - \\angle BHC\\right) = 180^{\\circ} - \\angle HCB$,\nand analogously we get $\\angle CIH = 180^{\\circ} - \\angle CBH$ and $\\angle BIC = 180^{\\circ} - \\angle BHC$.\nDenote by $r$ the radius of circle $\\omega_{1}$, then from sine law we get\n$$\n\\begin{aligned}\n2r &= \\frac{HB}{\\sin \\angle HIB} = \\frac{HB}{\\sin \\left(180^{\\circ} - \\angle HIB\\right)} = \\frac{HB}{\\sin \\angle HCB} = \\\\\n&= \\text{ diameter of circumcircle of the triangle } BHC\n\\end{aligned}\n$$\nUsing the same argument for triangles $CIH$ and $BIC$ we see that $r$ is equal to radii of $\\omega_{1}, \\omega_{2}$, circumcircles of $BIC$ and $BHC$.\nFrom the following angle chase it follows that\n$$\n\\begin{aligned}\n\\angle BHC &= 180^{\\circ} - \\angle BIC = 180^{\\circ} - \\left(180^{\\circ} - \\frac{1}{2} \\angle CBA - \\frac{1}{2} \\angle BCA\\right) = \\\\\n&= \\frac{1}{2}(\\angle CBA + \\angle BCA) = 90^{\\circ} - \\frac{1}{2} \\angle BAC\n\\end{aligned}\n$$\nSince $H$ lies inside $\\omega$ and $\\angle BAC$ is acute we conclude that\n$$\n\\angle BAC < \\angle BHC = 90^{\\circ} - \\frac{1}{2} \\angle BAC < 90^{\\circ}\n$$\nso\n$$\n2r = \\text{ diameter of circumcircle of } BHC = \\frac{BC}{\\sin \\angle BHC} < \\frac{BC}{\\sin \\angle BAC} = 2R\n$$\nthus $r < R$.\nLet $\\angle BAC = \\alpha, \\angle CBA = \\beta, \\angle ACB = \\gamma$. Then\n$$\n\\angle BO_{1}I = 2\\angle BHI = 2\\left(90^{\\circ} - \\angle CBH\\right) = 2\\angle ICB = \\gamma\n$$\nso\n$$\n\\angle IBO_{1} = 90^{\\circ} - \\frac{1}{2} \\angle BO_{1}I = 90^{\\circ} - \\frac{\\gamma}{2} = \\frac{\\alpha + \\beta}{2}\n$$\nand finally\n$$\n\\angle ABO_{1} = \\angle IBO_{1} - \\angle IBA = \\frac{\\alpha + \\beta}{2} - \\frac{\\beta}{2} = \\frac{\\alpha}{2} = \\angle BAI.\n$$\nThis shows that $BO_{1} \\parallel AI$, and moreover, rays $BO_{1}^{\\rightarrow}, AI \\rightarrow$ determine opposite directions. Similarly, rays $CO_{2}, AI^{\\rightarrow}$ are parallel and determine opposite directions. Therefore these rays are parallel and $BO_{1}, CO_{2} \\rightarrow$ determine the same direction. Since $BO_{1} = r = CO_{2}$, it follows that vectors $\\overrightarrow{BO_{1}}, \\overrightarrow{CO_{2}}$ are equal. Denote this vector by $\\vec{v}$.\n\n![](attached_image_1.png)\n\nNote that $ON \\perp AM$. Moreover\n$$\n\\begin{aligned}\n\\angle IAM &= \\angle IAC + \\angle CAM = \\angle IAC + \\angle CBM = \\\\\n&= \\angle IAC + \\frac{1}{2}\\left(180^{\\circ} - \\angle BMC\\right) = \\angle IAC + \\frac{1}{2}\\left(180^{\\circ} - \\angle BAC\\right) = 90^{\\circ}\n\\end{aligned}\n$$\nso $AM \\perp AI$, hence $ON \\parallel AI \\parallel BO_{1} \\parallel \\vec{v}$. Let $X$ be a point such that $\\overrightarrow{OX} = \\vec{v}$. Since $ON \\parallel \\vec{v}$, $X$ lies on line $ON$. It actually lies on ray $ON \\rightarrow$ since rays $ON \\rightarrow, AI^{\\rightarrow}$ determine opposite directions.\nNote that translation by $\\vec{v}$ maps triangle $BCO$ to triangle $O_{1}O_{2}X$. Therefore $O_{1}X = BO = R$ and $O_{2}X = CO = R$.\nLet $\\omega'$ be the circle centered at $X$ with radius $R - r > 0$.\nObserve that $O_{1}X = R = r + (R - r)$, so $\\omega'$ is tangent externally to $\\omega_{1}$. For similar reason it is tangent externally to $\\omega_{2}$. Moreover $OX = r = R - (R - r) = ON - XN$, so $\\omega'$ is tangent to $\\omega$ internally at point $N$.\nSolution:\n\nLet $\\beta := \\angle ABI = \\angle IBC$ and $\\gamma := \\angle BCI = \\angle ICA$. Without loss of generality, we assume that $\\beta > \\gamma$. Furthermore, we define $P$ to be the intersection of $NB$ and the circumcircle of $BHI$ and $Q$ to be the intersection of $NC$ and the circumcircle of $CHI$.\n\n![](attached_image_2.png)\n\nOur goal is to prove that the circumcircle of $NPQ$ satisfies the desired conditions. To this end, define the tangent $t_{N}$ to $\\omega$ through $N$, tangent $t_{P}$ to the circumcircle of $BHI$ through $P$ and tangent $t_{Q}$ to the circumcircle of $CHI$ through $Q$. Let $X$ be the intersection of $t_{P}$ and $t_{Q}$, $Y$ the intersection of $t_{N}$ and $t_{Q}$ and $Z$ the intersection of $t_{N}$ and $t_{P}$. If we can prove that $PX = QX$, $NY = QY$ and $NZ = PZ$, it follows that the circumcircle of $NPQ$ is the incircle of $XYZ$ and $N, P$ and $Q$ are the contact points. By definition of $t_{N}, t_{P}$ and $t_{Q}$, this would imply that the circumcircle of $NPQ$ satisfies the desired properties.\n\nUsing that the arcs $MN$ and $NA$ have the same lengths and the triangle $BMC$ is isosceles, we calculate some angles:\n$$\n\\begin{aligned}\n\\angle ACN = \\angle ABN &= \\frac{1}{2} \\angle ABM \\\\\n&= \\frac{1}{2}(\\angle ABC - \\angle MBC) \\\\\n&= \\frac{1}{2}\\left(2\\beta - \\frac{180^{\\circ} - \\angle CMB}{2}\\right) \\\\\n&= \\frac{1}{2}\\left(2\\beta - \\frac{180^{\\circ} - (180^{\\circ} - 2\\beta - 2\\gamma)}{2}\\right) \\\\\n&= \\frac{1}{2}(\\beta - \\gamma)\n\\end{aligned}\n$$\nFurthermore, using that $H$ is the orthocenter of $BIC$ and has to lie outside of it but inside $\\omega$, we compute\n$$\n\\begin{aligned}\n\\angle ICQ &= \\angle ICA + \\angle ACN = \\gamma + \\frac{1}{2}(\\beta - \\gamma) = \\frac{1}{2}(\\beta + \\gamma) \\\\\n\\angle PBI &= \\angle ABI - \\angle ABN = \\beta - \\frac{1}{2}(\\beta - \\gamma) = \\frac{1}{2}(\\beta + \\gamma) \\\\\n\\angle BCH &= 90^{\\circ} - \\angle IBC = 90^{\\circ} - \\beta \\\\\n\\angle HIQ &= \\angle HCQ \\\\\n&= \\angle BCI + \\angle ICQ - \\angle BCH \\\\\n&= \\gamma + \\frac{1}{2}(\\beta + \\gamma) - (90^{\\circ} - \\beta) \\\\\n&= \\frac{1}{2}(3\\beta + 3\\gamma - 180^{\\circ})\n\\end{aligned}\n$$\nBy an analogous computation, we find that\n$$\n\\angle PIH = \\frac{1}{2}(3\\beta + 3\\gamma - 180^{\\circ})\n$$\nIf we now define $X'$ as the intersection of $t_{P}$ and $HI$ as well as $X''$ the intersection of $t_{Q}$ and $HI$, we obtain by tangency:\n$$\n\\angle X'PI = \\frac{1}{2} \\angle PBI = \\frac{1}{2}(\\beta + \\gamma) = \\frac{1}{2} \\angle ICQ = \\angle IQX''\n$$\nSince also\n$$\n\\angle PIX' = \\angle PIH = \\frac{1}{2}(3\\beta + 3\\gamma - 180^{\\circ}) = \\angle HIQ = \\angle X''IQ\n$$\nwe get two similar triangles $X'PI$ and $X''QI$. Also, since $HI$ is the power line of the circumcircles of $BHI$ and $CHI$, we have\n$$\nX'P^{2} = X'H \\cdot X'I, \\quad X''Q^{2} = X''H \\cdot X''I\n$$\nand hence\n$$\n\\frac{X'H \\cdot X'I}{X''H \\cdot X''I} = \\left(\\frac{X'P}{X''Q}\\right)^{2} = \\left(\\frac{X'I}{X''I}\\right)^{2}\n$$\nusing similarity. By simplifying those terms, we get\n$$\n\\frac{X'H}{X''H} = \\frac{X'I}{X''I} = \\frac{X'H + HI}{X''H + HI}\n$$\nhence $X'H \\cdot HI = X''H \\cdot HI$ and therefore $X'H = X''H$, which implies that $X' = X'' = X$. By the power of $X$ to $BHI$ and $CHI$, we finally get $XP^{2} = XQ^{2}$, so $XP = XQ$ as desired.\n\nTo see that $NY = QY$, define $D$ as the second intersection of the circumcircles of $CHI$ and $ABC$ and let $Y'$ be the intersection of $CD$ and $t_{N}$. We want to show that $Y' = Y$. Using that $\\angle CQI = \\angle CHI = 90^{\\circ} - \\angle BCH = 90^{\\circ} - (90^{\\circ} - \\angle IBC) = \\beta$, we compute\n$$\n\\begin{aligned}\n\\angle QDY' &= 180^{\\circ} - \\angle CDQ \\\\\n&= \\angle QIC \\\\\n&= 180^{\\circ} - \\angle CQI - \\angle ICQ \\\\\n&= 180^{\\circ} - \\beta - \\frac{1}{2}(\\beta + \\gamma)\n\\end{aligned}\n$$\nOn the other hand, the tangency to $\\omega$ at $N$ yields\n$$\n\\angle Y'NQ = \\angle Y'NC = \\angle NBC = \\angle IBC + \\angle NBI = \\beta + \\frac{1}{2}(\\beta + \\gamma)\n$$\nNow, since $\\angle QDY' + \\angle Y'NQ = 180^{\\circ}$, we conclude that $NQDY'$ is a cyclic quadrilateral. The same is true for $NQDY$ because of\n$$\n\\angle YND = \\angle NCD = \\angle QCD = \\angle YQD\n$$\nwhere we used tangency of $t_{N}$ to $\\omega$ and of $t_{Q}$ to the circumcircle of $CHI$. Since both $Y$ and $Y'$ lie on $t_{N}$, they have to be the same point. Since $CD$ is the power line of circle $\\omega$ and the circumcircle of $CHI$, we obtain $YQ^{2} = YN^{2}$, so $QY = NY$. We can find a completely analogous argument for $PZ = NZ$ to conclude.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34971, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind all positive integers $n$ for which there exist positive integers $x_{1}, x_{2}, \\ldots, x_{n}$ such that\n$$\n\\frac{1}{x_{1}^{2}}+\\frac{2}{x_{2}^{2}}+\\frac{4}{x_{3}^{2}}+\\cdots+\\frac{2^{n-1}}{x_{n}^{2}}=1\n$$", "options": [], "answer": "All positive integers except 2", "solution": "Solution:\n- $n=1$ :\nHere, $x_{1}:=1$ provides a solution, since\n$$\n\\frac{1}{1^{2}}=1\n$$\n\n- $n=2$ :\nHere, no solution exists. Indeed, $x_{1}=1$ or $x_{2}=1$ yields $\\frac{1}{x_{1}^{2}}+\\frac{2}{x_{2}^{2}}>1$, while $x_{1}, x_{2} \\geq 2$ leads to\n$$\n\\frac{1}{x_{1}^{2}}+\\frac{2}{x_{2}^{2}} \\leq \\frac{1}{4}+\\frac{2}{4}=\\frac{3}{4}<1\n$$\n\n- $n=4$ :\nHere, $(x_{1}, x_{2}, x_{3}, x_{4}):=(3,3,3,6)$ provides a solution, since\n$$\n\\frac{1}{3^{2}}+\\frac{2}{3^{2}}+\\frac{4}{3^{2}}+\\frac{8}{6^{2}}=\\frac{7}{9}+\\frac{8}{36}=\\frac{7}{9}+\\frac{2}{9}=1\n$$\n\n- Induction step from $n$ to $(n+2)$ :\nLet $(y_{1}, y_{2}, \\ldots, y_{n})$ be a solution for $n$, i.e.,\n$$\n\\frac{1}{y_{1}^{2}}+\\frac{2}{y_{2}^{2}}+\\frac{4}{y_{3}^{2}}+\\cdots+\\frac{2^{n-1}}{y_{n}^{2}}=1\n$$\nThen\n$$\n(x_{1}, x_{2}, \\ldots, x_{n+2}):=(2,2,4 y_{1}, 4 y_{2}, \\ldots, 4 y_{n})\n$$\nis a solution for $(n+2)$, since\n$$\n\\begin{aligned}\n\\frac{1}{x_{1}^{2}}+\\frac{2}{x_{2}^{2}}+\\frac{4}{x_{3}^{2}}+\\cdots+\\frac{2^{n+1}}{x_{n+2}^{2}} & =\\frac{1}{2^{2}}+\\frac{2}{2^{2}}+\\frac{4}{(4 y_{1})^{2}}+\\cdots+\\frac{2^{n+1}}{(4 y_{n})^{2}} \\\\\n& =\\frac{1}{4}+\\frac{2}{4}+\\frac{4}{16}\\left[\\frac{1}{(y_{1})^{2}}+\\cdots+\\frac{2^{n-1}}{(y_{n})^{2}}\\right] \\\\\n& =\\frac{3}{4}+\\frac{1}{4} \\cdot 1 \\\\\n& =1\n\\end{aligned}\n$$\nUsing this induction step and the solutions for $n=1$ and $n=4$, we can construct solutions for all $n \\geq 3$.\n\n\nSolution 1a. There are other induction steps possible. For example from $n$ to $(n+3)$ :\nLet $(y_{1}, y_{2}, \\ldots, y_{n})$ be a solution for $n$, i.e.,\n$$\n\\frac{1}{y_{1}^{2}}+\\frac{2}{y_{2}^{2}}+\\frac{4}{y_{3}^{2}}+\\cdots+\\frac{2^{n-1}}{y_{n}^{2}}=1\n$$\nThen\n$$\n(x_{1}, x_{2}, \\ldots, x_{n+3}):=(3,3,3,6 y_{1}, 6 y_{2}, \\ldots, 6 y_{n})\n$$\nis a solution for $(n+3)$, since\n$$\n\\begin{aligned}\n\\frac{1}{x_{1}^{2}}+\\frac{2}{x_{2}^{2}}+\\frac{4}{x_{3}^{2}}+\\cdots+\\frac{2^{n+2}}{x_{n+3}^{2}} & =\\frac{1}{3^{2}}+\\frac{2}{3^{2}}+\\frac{4}{3^{2}}+\\frac{8}{(6 y_{1})^{2}}+\\cdots+\\frac{2^{n+2}}{(6 y_{n})^{2}} \\\\\n& =\\frac{1}{9}+\\frac{2}{9}+\\frac{4}{9}+\\frac{8}{36}\\left[\\frac{1}{(y_{1})^{2}}+\\cdots+\\frac{2^{n-1}}{(y_{n})^{2}}\\right] \\\\\n& =\\frac{7}{9}+\\frac{2}{9} \\cdot 1 \\\\\n& =1\n\\end{aligned}\n$$\n\n\nSolution 2. As in the previous solution, we can show that there does not exist a solution for $n=2$ and find explicit solutions for $n=1$ and $n=3$.\nWe construct further solutions by induction. Let $(y_{1}, y_{2}, \\ldots, y_{n})$ be a solution for $n \\geq 3$.\nThen setting $x_{n-2}=x_{n+1}:=3 y_{n-2}$ and $x_{i}:=y_{i}$ for all other $i$ is a solution for $n+1$, since for the sum of the terms corresponding to $x_{n-2}$ and $x_{n+1}$ (which are the only ones that differ between the solutions for $n$ and $n+1$ ) we get\n$$\n\\frac{2^{n-3}}{x_{n-2}^{2}}+\\frac{2^{n}}{x_{n+1}^{2}}=\\frac{2^{n-3}}{9 y_{n-2}^{2}}+\\frac{2^{n}}{9 y_{n-2}^{2}}=\\frac{(1+8) \\cdot 2^{n-3}}{9 y_{n-2}^{2}}=\\frac{2^{n-3}}{y_{n-2}^{2}}\n$$\nthereby keeping the sum of all terms equal.\n\n\nSolution 3. As in the other solutions, we can show that there does not exist a solution for $n=2$. Also, we can find explicit solutions for $n=4, n=6$ and $n=8$. Now we prove that we can find suitable integers for all other $n$ :\nFor $n=2 k+1$ (where $k$ is a suitable non-negative integer), we can choose\n$$\nx_{1}=\\cdots=x_{n-1}=2^{k}, \\quad x_{n}=2^{2 k}\n$$\nto obtain\n$$\n\\sum_{i=1}^{n} \\frac{2^{i-1}}{x_{i}^{2}}=\\sum_{i=1}^{2 k} \\frac{2^{i-1}}{2^{2 k}}+\\frac{2^{2 k}}{2^{4 k}}=\\frac{\\frac{2^{2 k}-1}{2-1}}{2^{2 k}}+\\frac{1}{2^{2 k}}=1\n$$\nFor $n=2 k$ with an integer $k \\geq 5$, observe that, by setting $x_{i}=2^{\\frac{i-1}{2}}$ for odd $i$ and $x_{i}=2^{\\frac{i}{2}-1}$ for even $i$, we have\n$$\n\\sum_{i=1}^{2 k} \\frac{2^{i-1}}{x_{i}^{2}}=\\sum_{j=1}^{k}\\left(\\frac{2^{2 j-2}}{2^{2 j-2}}+\\frac{2^{2 j-1}}{2^{2 j-2}}\\right)=\\sum_{j=1}^{k}(1+2)=3 k\n$$\nIf we can modify the $x_{i}$ in order to obtain some square number $m^{2}$ on the right hand side, we can in a second step multiply each $x_{i}$ by $m$ to obtain a sum of 1 .\nObserve that all $x_{i}$ for $i>2$ are even. We show that there is a square divisible by 3 that can be obtained by replacing some of the $x_{i}$ (with $i>2$ ) by $x_{i}^{\\prime}:=x_{i} / 2$ :\nNote that for odd $i$, this increases the sum by $4-1=3$ and for even $i$, this increases the sum by $8-2=6$. Since there are $k-1$ odd and $k-1$ even indexes to choose from, we can increase the sum by every number $l$ that is divisible by three and satisfies $0 \\leq l \\leq 3(k-1)+6(k-1)=9 k-9$.\nBecause of $k \\geq 5$ and therefore $\\sqrt{3 k}A \\geqslant 2$.\nWe claim that $x_{n+k}>1$ for all $k \\geq 1$. This is easily proven by induction: we already did this for $k=1$, and the induction step follows from\n$$\nx_{n+k+1}=A-\\frac{1}{x_{n+k}}>A-1 \\geqslant 1\n$$\nHence, there is at most one negative term if $A \\geqslant 2$.\n\n\nThe case $A \\geqslant 2$ is handled as in the above solution.\nIn the case $A<2$ assume that only finitely many members of the sequence are positive. Without loss of generality we can assume all members are positive. We have that\n$$\nx_{n+1}=A-\\frac{1}{x_{n}}0$. As we have that the sequence is bounded below by 0 and bounded above, we have that it has a limit, denote it $L>0$. Taking the limit of the recursive relation we obtain\n$$\nL=A-\\frac{1}{L} \\Longrightarrow A=L+\\frac{1}{L} \\geqslant 2\n$$\nwhich is a contradiction.\n\n\nThe case $A \\geqslant 2$ is handled as in the above solution.\nLet us assume that there is a sequence $\\left(x_{n}\\right)$ such that $x_{n}>0$ for all $n \\geqslant N$. Without loss of generality, we may assume that $x_{n}>0$ for all $n \\geqslant 0$. Summing the first $n$ equalities we obtain\n$$\nx_{2}+\\ldots+x_{n+1}+\\frac{1}{x_{1}}+\\ldots+\\frac{1}{x_{n}}=n A\n$$\nSince $x_{k}+\\frac{1}{x_{k}} \\geqslant 2$ for $k=2, \\ldots, n$, we get\n$$\n0 \\leqslant x_{n+1}+\\frac{1}{x_{1}} \\leqslant n A-2(n-1)=2-n(2-A)\n$$\nFor large enough $n$ this expression is negative so we get a contradiction.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34973, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $m$ and $n$ be positive integers. Some squares of an $m \\times n$ board are coloured red. A sequence $a_{1}, a_{2}, \\ldots, a_{2 r}$ of $2 r \\geqslant 4$ pairwise distinct red squares is called a bishop circuit if for every $k \\in\\{1, \\ldots, 2 r\\}$, the squares $a_{k}$ and $a_{k+1}$ lie on a diagonal, but the squares $a_{k}$ and $a_{k+2}$ do not lie on a diagonal (here $a_{2 r+1}=a_{1}$ and $a_{2 r+2}=a_{2}$).\nIn terms of $m$ and $n$, determine the maximum possible number of red squares on an $m \\times n$ board without a bishop circuit.\n\n(Remark. Two squares lie on a diagonal if the line passing through their centres intersects the sides of the board at an angle of $45^{\\circ}$.)", "options": [], "answer": "If min(m, n) = 1, the maximum is mn. If m, n ≥ 2, the maximum is 2m + 2n − 4.", "solution": "Solution:\n\nObviously, for the tables $1 \\times n$ and $n \\times 1$, the largest number of black cells is $n$. Therefore, we assume that $m \\geq 2$ and $n \\geq 2$ for the rest of the solution. In the table $m \\times n$, we can color the first two rows, the first column and the last column, which is $2 m + 2 n - 4$ black cells in total. It is easy to see that such a table contains no bishop circuit.\n\nNow we show that if there is no bishop circuit, there are at most $2 m + 2 n - 4$ black cells in the table $m \\times n$. We denote the cell in $i$-th row and $j$-th column by $(i, j)$. The $k$-th positive diagonal is a set of cells $(i, j)$, such that $i + j - 1 = k$. Similarly, the $k$-th negative diagonal is a set of cells $(i, j)$, such that $n + i - j = k$.\n\nConsider a bipartite graph $G$ with partitions\n$$\nA = \\left\\{a_{1}, a_{2}, \\ldots, a_{m+n-1}\\right\\} \\quad \\text{and} \\quad B = \\left\\{b_{1}, b_{2}, \\ldots, b_{m+n-1}\\right\\}\n$$\nwhere the vertices $a_{i}$ and $b_{j}$ are connected by an edge if and only if the cell in the intersection of the $i$-th positive diagonal and the $j$-th negative diagonal is black. Notice that a bishop circuit corresponds to a circuit in $G$ and vice versa.\n\nThe graph $G$ has at least two components: If we color the cells of the table alternately green and red like in chess, then the edges of $G$ corresponding to green cells lie in a different component than the edges of $G$ corresponding to red cells - it is not possible to move a bishop between a green and a red cell.\n\nFurthermore, $G$ has $2 n + 2 m - 2$ vertices. If $G$ is acyclic, then $G$ is a forest consisting of at least two trees. Therefore, $G$ contains at most $2 n + 2 m - 2 - 2 = 2 n + 2 m - 4$ edges and that is the upper bound on the number of black cells we wanted to prove.\nSolution:\n\nDenote by $S$ the coloring configuration from the first proof consisting of the first two rows and the first and the last column of the table. It is easy to see that $S$ does not contain the bishop circuit. Also, $S$ is maximal in the sense that if we add any new cell to it, the new coloring will contain a bishop circuit.\n\nWe will show that any optimal coloring $C$ has the same number of cells as $S$ by transforming $C$ to $S$ by iterating the following steps:\n\n1) First we choose any cell $a$ which is in $S$, but not in $C$. If there is no such cell, we are done since maximality of $S$ and optimality of $C$ imply that $S = C$.\n\n2) From the optimality of $C$ it follows that there is a bishop circuit $B$ in the coloring $C \\cup\\{a\\}$ containing $a$. Since $S$ does not contain a bishop circuit, there is an element $b$ in cycle $B$ which is not in $S$. We replace coloring $C$ with the coloring $\\tilde{C} = (C \\cup\\{a\\}) \\backslash\\{b\\}$.\n\nTo finish the proof, we need to show that $\\tilde{C}$ is optimal. For that we need to prove that $B$ is a unique cycle in $C \\cup\\{a\\}$ containing $a$.\n\nAssume the opposite. Let $a_{0}, a, a_{1}, \\ldots, a_{2 r}$ and $b_{0}, a, b_{1}, \\ldots, b_{2 s}$ be two bishop cycles in $C \\cup\\{a\\}$ such that $a_{0}$ and $b_{1}$ (as well as $a_{1}$ and $b_{0}$) are on the same diagonal. Consider the cycle in $C$ (every two consecutive cells are on the same diagonal)\n$$\na_{0}, b_{1}, b_{2}, \\ldots, b_{2 s}, b_{0}, a_{1}, a_{2}, \\ldots, a_{2 r}\n$$\nIt remains to prove that it contains a bishop circuit which will contradict the optimality of $C$.\n\nNote that no three consecutive cells are on the same diagonal, so the only problem is if the cells are not pairwise different. Thus we can assume that we can write the cycle in the following form\n$$\nc_{1}, \\ldots, c_{k}, c_{1}, d_{1}, d_{2}, \\ldots, d_{t-1}\n$$\nwhere $t \\geq k$. If we remove first $k$ cells we obtain the cycle\n$$\nc_{1}, d_{1}, d_{2}, \\ldots, d_{t-1}\n$$\nFurthermore, if $d_{t-1}, c_{1}$ and $d_{1}$ are on the same diagonal, we remove $c_{1}$. By repeating this procedure, we end up with the bishop's circuit.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34974, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $ABC$ be an acute triangle and $D$ an interior point of segment $BC$. Points $E$ and $F$ lie in the half-plane determined by the line $BC$ containing $A$ such that $DE$ is perpendicular to $BE$ and $DE$ is tangent to the circumcircle of $ACD$, while $DF$ is perpendicular to $CF$ and $DF$ is tangent to the circumcircle of $ABD$. Prove that the points $A, D, E$ and $F$ are concyclic.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nDenote by $T$ the intersection point of $BE$ and $CF$. Clearly, $D, E, F, T$ are concyclic because of the right angle $DET$ and $TFD$.\n\n![](attached_image_1.png)\n\nThe tangent line $DE$ gives $\\angle ADE = \\angle ACD$. Similarly $\\angle FDA = \\angle DBA$, therefore $\\angle FDE = 180^{\\circ} - \\angle BAC$. This gives\n$$\n\\angle BTC = \\angle ETF = 180^{\\circ} - \\angle EDF = 180^{\\circ} - (180^{\\circ} - \\angle BAC) = \\angle BAC\n$$\nwhich means that $B, C, A, T$ are also concyclic. With this we have\n$$\n\\angle ATE = \\angle ATB = \\angle ACB = \\angle ACD = \\angle ADE\n$$\nwhich shows that $A, E, D, T$ are also concyclic.\nTherefore all points $A, D, E, F, T$ are concyclic.\nSolution:\n\nDenote the angles of $ABC$ conventionally by $\\alpha, \\beta, \\gamma$, also let $\\angle BAD = x$ and $\\angle DAC = y$. As in the previous solution, notice that $\\angle FDE = 180^{\\circ} - \\alpha$. It is enough to show that $\\angle EAF = \\alpha$.\nBecause of the tangent line $DE$, it holds that $\\angle DBE = 90^{\\circ} - \\angle EDB = 90^{\\circ} - y$, and analogously $\\angle FCD = 90^{\\circ} - x$.\nWe will show that it cannot happen that both points $E$ and $F$ lie inside or outside $ABC$. If they both were outside, we would have $\\angle DBE > \\angle ABD$ and $\\angle FCD > \\angle ACD$, in other words $90^{\\circ} - y > \\beta$ and $90^{\\circ} - x > \\gamma$. The sum of these inequalities gives $180^{\\circ} - x - y > \\beta + \\gamma$, which is a contradiction, since $x + y = \\alpha$. Analogously, $E, F$ cannot be both inside.\n\n![](attached_image_2.png)\n\nWithout loss of generality assume that $E$ is not outside $ABC$ (i.e. it is inside or on $AB$) and $F$ is not inside (i.e. it is outside or on $AC$). In order to show that $\\angle EAF = \\alpha$, it remains to show that triangles $AEB$ and $AFC$ are similar.\nWe have $\\angle EBA = \\beta - (90^{\\circ} - x)$ and $\\angle FCA = (90^{\\circ} - y) - \\gamma$. These two angles are equal, since\n$$\n\\beta - (90^{\\circ} - x) - ((90^{\\circ} - y) - \\gamma) = x + y + \\beta + \\gamma - 180^{\\circ} = \\alpha + \\beta + \\gamma - 180^{\\circ} = 0\n$$\nNow we can finish the proof by calculating ratios:\n$$\n\\frac{BE}{CF} = \\frac{BD \\cdot \\sin y}{CD \\cdot \\sin x} = \\frac{BD}{\\sin x} \\cdot \\frac{\\sin y}{CD} = \\frac{AB}{\\sin \\angle ADB} \\cdot \\frac{\\sin \\angle ADC}{AC} = \\frac{AB}{AC}\n$$\nSolution:\n\nLet $G$ be the point on the line $FD$ such that the quadrilateral $ADCG$ is cyclic.\nSince $DF$ is tangent to the circumcircle of $ABD$ we have $\\angle GAC = \\angle GDC = \\angle DAB$. Similarly, since $DE$ is tangent to the circumcircle of $ACD$ we have $\\angle GCA = \\angle GDA = \\angle FDA = \\angle DBA$. We hence conclude that the triangles $ABD$ and $ACG$ are spirally similar with center at $A$.\n\n![](attached_image_3.png)\n\nAdditionally, since $\\angle FGC = \\angle DGC = \\angle DAC = \\angle BDE$ and $\\angle BED = \\angle CFG = 90^{\\circ}$ (and thus $\\triangle BED \\sim \\triangle CFG$), we have that the same spiral similarity maps the point $E$ to point $F$. From this we get $\\angle EAF = \\angle BAC$.\nSince $DE$ and $DF$ are tangent to the circumcircles of $ACD$ and $ABD$ respectively, we also have $\\angle ADE = \\angle ACD$ and $\\angle FDA = \\angle DBA$. Therefore,\n$$\n\\angle FDE = \\angle FDA + \\angle ADE = \\angle DBA + \\angle ACD = 180^{\\circ} - \\angle BAC\n$$\nBy combining the above equalities, we get that $\\angle EAF = \\angle BAC = 180^{\\circ} - \\angle FDE$ and thus $A, D, E, F$ are concyclic, as desired.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34975, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $n \\geqslant 3$ be an integer. Zagi the squirrel sits at a vertex of a regular $n$-gon. Zagi plans to make a journey of $n-1$ jumps such that in the $i$-th jump, it jumps by $i$ edges clockwise, for $i \\in\\{1, \\ldots, n-1\\}$. Prove that if after $\\left\\lceil\\frac{n}{2}\\right\\rceil$ jumps Zagi has visited $\\left\\lceil\\frac{n}{2}\\right\\rceil+1$ distinct vertices, then after $n-1$ jumps Zagi will have visited all of the vertices.\n\n(Remark. For a real number $x$, we denote by $\\lceil x\\rceil$ the smallest integer larger or equal to $x$.)", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nNumber the vertices $0,1, \\ldots, n-1$ clockwise starting at the vertex Zagi is on. After his $i$-th jump Zagi will be at a vertex numbered $1+2+\\cdots+i=\\frac{i(i+1)}{2} \\pmod n$. We need to prove that if for all $k \\in\\left\\{0,1,2, \\ldots,\\left\\lceil\\frac{n}{2}\\right\\rceil\\right\\}$ the fractions $\\frac{k(k+1)}{2}$ achieve different values modulo $n$ then they achieve different values modulo $n$ even for all $k \\in\\{0,1,2, \\ldots, n-1\\}$. We will in fact prove two following claims:\n\n- for numbers of the form $n=2^{r}$, with $r \\geq 2$, all $k \\in\\{0,1,2, \\ldots, n-1\\}$ the fractions $\\frac{k(k+1)}{2}$ achieve different values mod $n$;\n- for numbers of the form $n=2^{r} \\cdot l$, with $r \\geq 0$ and $l \\geq 3$ odd, we have that there exist distinct $a, b \\in\\left\\{0,1,2, \\ldots,\\left\\lceil\\frac{n}{2}\\right\\rceil\\right\\}$ such that $\\frac{a(a+1)}{2} \\equiv \\frac{b(b+1)}{2} \\pmod n$.\n\nLet us firstly observe $n$ of the form $2^{r}$, with $r \\geq 2$. Let us assume that there are $1 \\leq b < a \\leq n-1$ such that $\\frac{a(a+1)}{2} \\equiv \\frac{b(b+1)}{2} \\pmod{2^{r}}$. Equivalently, $2^{r+1} \\mid (a-b)(a+b+1)$. Factors on the right hand side have different parity, thus we have either $2^{r+1} \\mid a-b$ or $2^{r+1} \\mid a+b+1$. In the first case we have that $a-b \\leq n-1 < 2n$. In the second case we have $a+b+1 \\leq (n-1)+(n-2)+1 = 2n-2 < 2n$. Hence, in both cases we obtain contradiction, and we can conclude that there indeed do not exist such $a$ and $b$.\n\nLet us now observe $n$ of the form $2^{r} \\cdot l$, with $r \\geq 0, l \\geq 3$ odd. Set $M=\\max \\left\\{2^{r+1}, l\\right\\}$ and $m=\\min \\left\\{2^{r+1}, l\\right\\}$. We claim that the pair $(a, b)=\\left(\\frac{M+m-1}{2}, \\frac{M-m-1}{2}\\right)$ satisfies the desired conditions. Indeed:\n\n- Since $2^{r+1}$ is even and $l$ is odd, both $M+m-1$ and $M-m-1$ are even and thus $a, b$ are integers.\n- We have: $\\frac{a(a+1)}{2}-\\frac{b(b+1)}{2}=\\frac{1}{2}(a-b)(a+b+1)=\\frac{1}{2} m \\cdot M=2^{r} l=n$.\n- Since $M>m>0$, we have $0 \\leq b < a$.\n\nIt remains to argue that $a \\leq \\left\\lceil\\frac{n}{2}\\right\\rceil$. Since $r \\geq 0$ and $l \\geq 3$ we conclude that both $m, M$ are greater or equal to $\\min \\left\\{2^{r+1}, l\\right\\} \\geq 2$. From $m M=2 n$, they are both less or equal to $n$. So we have inequality $(m-n)(m-2) \\leq 0$, which implies $m+M=m+\\frac{2 n}{m} \\leq 2+n$. Hence $a=\\frac{M+m-1}{2} \\leq \\frac{n+1}{2} \\leq \\left\\lceil\\frac{n}{2}\\right\\rceil$ as desired.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 34976, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nGiven a positive integer $n$, we say that a polynomial $P$ with real coefficients is $n$-pretty if the equation $P(\\lfloor x\\rfloor)=\\lfloor P(x)\\rfloor$ has exactly $n$ real solutions. Show that for each positive integer $n$\n(a) there exists an $n$-pretty polynomial;\n(b) any $n$-pretty polynomial has a degree of at least $\\frac{2 n+1}{3}$.\n\n(Remark. For a real number $x$, we denote by $\\lfloor x\\rfloor$ the largest integer smaller than or equal to $x$.)", "options": [], "answer": "Detailed solution", "solution": "Solution:\nWe begin by making some preliminary observations. Let $P$ be a real polynomial. We associate to it the sets\n$$\nS(P)=\\{x \\in \\mathbb{R} \\mid P(\\lfloor x\\rfloor)=\\lfloor P(x)\\rfloor\\} \\text{ and } I(P)=\\{x \\in \\mathbb{Z} \\mid P(x) \\in \\mathbb{Z}\\}\n$$\nThen it is easily seen that\n$$\nS(P)=I(P) \\cup \\bigcup_{i \\in I(P)}\\{x \\in(i, i+1) \\mid P(x) \\in[P(i), P(i)+1)\\}\n$$\n\n(i) We claim that $P(x)=-\\sqrt{2}(x-1)^{2}(x-2)^{2} \\cdot \\ldots \\cdot(x-n)^{2}$ is $n$-pretty. Indeed, we will show that $S(P)=\\{1,2, \\ldots, n\\}$. To see this, first observe that for all $x \\in \\mathbb{R}$ we have $P(x) \\leqslant 0$, with equality iff $x \\in\\{1,2, \\ldots, n\\}$. It follows that $I(P) \\supseteq\\{1,2, \\ldots, n\\}$, but $I(P) \\subseteq\\{1,2, \\ldots, n\\}$ is also immediate because $\\sqrt{2}$ is irrational. Hence, we have $I(P)=\\{1,2, \\ldots, n\\}$. Finally, if $i \\in I(P)$ and $x \\in(i, i+1)$, then $P(x)<0$, so $P(x) \\notin [P(i), P(i)+1)$. The claim now follows by $(\\dagger)$.\n\n(ii) Suppose $P$ is a real polynomial with $|S(P)|=n$. It follows from ( $\\dagger$ ) that we may write $I(P)=\\left\\{i_{1}, i_{2}, \\ldots, i_{k}\\right\\}$ for some positive integer $k$. Furthermore, if we define\n$$\nS_{j}=\\left\\{x \\in\\left(i_{j}, i_{j}+1\\right) \\mid P(x) \\in\\left[P\\left(i_{j}\\right), P\\left(i_{j}\\right)+1\\right)\\right\\}\n$$\nfor $1 \\leqslant j \\leqslant k$, then $(\\dagger)$ can be rewritten as\n$$\nS(P)=I(P) \\cup \\bigcup_{j=1}^{k} S_{j}\n$$\n\nClaim 1. $k \\leqslant d$\n\nProof: Suppose that $k \\geq d+1$ holds. By the Lagrange interpolation formula, we have\n$$\nP(x)=\\sum_{j=1}^{d+1} P\\left(i_{j}\\right) \\prod_{l \\neq j} \\frac{x-i_{l}}{i_{j}-i_{l}}\n$$\nHence, $P$ has rational coefficients, so we can write $P(x)=\\frac{Q(x)}{M}$, where $M$ is a positive integer and $Q$ has integer coefficients. Then $i_{1}+M \\mathbb{Z} \\subseteq I(P)$, so $I(P)$ is infinite, which is a contradiction.\n\nClaim 2. For each $1 \\leqslant j \\leqslant k$, we have $P(x) \\leqslant P\\left(i_{j}\\right)$ for all $x \\in\\left[i_{j}, i_{j}+1\\right)$.\n\nProof: Suppose not and pick $x \\in\\left(i_{j}, i_{j}+1\\right)$ such that $P(x)>P\\left(i_{j}\\right)$. Note that $P$ is continuous, so by the intermediate value theorem, there exists $y \\in\\left(i_{j}, x\\right)$ such that $P(y)=\\min \\left(\\frac{P(x)+P\\left(i_{j}\\right)}{2}, P\\left(i_{j}\\right)+\\frac{1}{2}\\right) \\in\\left(P\\left(i_{j}\\right), P\\left(i_{j}\\right)+1\\right)$. By continuity of $P$, there exists $\\delta>0$ such that $(y-\\delta, y+\\delta) \\subseteq S_{j}$. By ( ††), $S(P)$ is infinite, which is a contradiction.\n\nClaim 3. For each $1 \\leqslant j \\leqslant k, P'$ has at least $2|S_{j}|$ zeroes in $\\left(i_{j}, i_{j}+1\\right)$.\n\nProof: Indeed, fix $j \\in\\{1, \\ldots, k\\}$ and let $S_{j}=\\left\\{x_{1}, \\ldots, x_{m}\\right\\}$, where we may assume $i_{j}x$ coins, the other $b-1$ bags in the $b$-tuple containing $a$ coins in total. Then we have $a+x0$, then $k(kp+1)=(p+1)(2p+1)$. Firstly, after observing the equation modulo $p$ we can deduce that $p \\mid k-1$. Secondly, the equation can be written as quadratic equation in $p$ :\n$$\n2p^{2}+(3-k^{2})p+1-k=0\n$$\nIts discriminant is $D=(k^{2}-3)^{2}+8(k-1)$. If $k=1$ we obtain $n=p$, but this does not lead to any solution. If $k>1$, then $D$ is strictly greater than $(k^{2}-3)^{2}$. To be a perfect square, $D$ must be greater than or equal to $(k^{2}-2)^{2}$. Hence we obtain\n$$\n(k^{2}-3)^{2}+8(k-1) \\geq (k^{2}-2)^{2} \\Longrightarrow 2(k-2)^{2} \\geq 5\n$$\nwhich holds only for $k=1,2,3$. The case $k=1$ is already solved. The case $k=2$ implies that $p \\mid 2-1=1$, which leads to contradiction. In the case $k=3$, we similarly obtain that $p$ must be equal to $2$, but the pair $(k, p)=(3,2)$ does not satisfy the equation $k(kp+1)=(p+1)(2p+1)$.\n\nIn the second case, if $p \\mid n+1$, then we again introduce positive integer $k$ such that $n+1=kp$ and obtain equation $k(kp-1)=(p+1)(2p+1)$. Now we have that $p \\mid k+1$, and the quadratic equation in terms of $p$ is\n$$\n2p^{2}+(3-k^{2})p+1+k=0\n$$\nIts discriminant $D=(k^{2}-3)^{2}-8(k+1)$ is less than $(k^{2}-3)^{2}$, so it must be less than or equal to $(k^{2}-4)^{2}$ :\n$$\n(k^{2}-3)^{2}-8(k+1) \\leq (k^{2}-4)^{2} \\Longrightarrow 2(k-2)^{2} \\leq 23\n$$\nWe conclude $k \\leq 5$. Since $p \\mid k+1$, we have that $p$ divides one of the numbers $2,3,4,5,6$, so we have $p \\in\\{2,3,5\\}$. After we plug in those choices for $p$ in (2), we obtain the only solution $(n, p)=(5,2)$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34981, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nProve that there are infinitely many positive integers $n$ such that $n^{2}$ written in base 4 contains only digits 1 and 2.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nWe prove that there are infinitely many $n$'s such that $n^{2}$ written in base 4 contains only 1 and 2, with the first and last digit being 1. One example is $n=5$, for which $n^{2}=25=121_{4}$.\n\nNow we describe how for a given such $n$ we can obtain another, bigger one, which satisfies these requirements as well. Let $n^{2}$ have $k$ digits in base 4 and satisfy the aforementioned requirements. Now let us consider the number $n' = 2^{2k-1} n + n$. Then we have\n$$\nn'^{2} = (2^{2k-1} n + n)^{2} = 4^{2k-1} n^{2} + 2 \\cdot 2^{2k-1} n^{2} + n^{2} = 4^{2k-1} n^{2} + 4^{k} n^{2} + n^{2}\n$$\nIn base 4 this number consists of three copies of $n^{2}$, with the first one ($n^{2}$) ending on the right, the second one ($4^{k} n^{2}$) ending right before the beginning of the first one, and the third one ($4^{2k-1} n^{2}$) overlapping by its last digit with the first digit of the second one. As both the first and last digit of $n^{2}$ are 1, in this place two digits 1 get summed to digit 2. Otherwise, there are no other places where two non-zero digits would overlap, neither is there any 'empty space' which would get filled by zeros, so $n'^{2}$ contains only digits 1 and 2. Furthermore, the first and last digit of $n'^{2}$ is the same as the first and last digit of $n^{2}$, so this property also remains.\n\nBy repeating this construction one gets an infinite sequence of numbers satisfying the problem statement.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34982, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $ABCD$ be a parallelogram with $\\angle DAB < 90^{\\circ}$. Let $E \\neq B$ be the point on the line $BC$ such that $AE = AB$ and let $F \\neq D$ be the point on the line $CD$ such that $AF = AD$. The circumcircle of the triangle $CEF$ intersects the line $AE$ again in $P$ and the line $AF$ again in $Q$. Let $X$ be the reflection of $P$ over the line $DE$ and $Y$ the reflection of $Q$ over the line $BF$. Prove that $A, X$ and $Y$ lie on the same line.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nWe have $\\angle ECD = \\angle EBA = \\angle AEC$, so $AECD$ is an isosceles trapezoid. We now deduce $\\angle EPF = 180^{\\circ} - \\angle ECF = \\angle EAD$, so $PF$ is parallel to $AD$. Analogously, $QE$ is parallel to $AB$. Therefore the quadrilaterals $ABEQ$ and $APFD$ are isosceles trapezoids and hence cyclic.\n\nLet $X$ be the intersection of $DE$ and $BF$. Since $\\frac{AD}{AE} = \\frac{AF}{AB}$ and $\\angle EAD = \\angle BAF$, the triangles $ADE$ and $AFB$ are similar. Since $A$ is the center of the spiral similarity taking one to the other, it follows that $X$ is the second intersection of the circumcircles of triangles $ABE$ and $AFD$.\n\nNow, directing angles, we find $\\angle DXP = \\angle DAP = \\angle FDA$, so\n$$\n\\angle P'XA = \\angle P'XD + \\angle DXF + \\angle FXA = \\angle DXP + \\angle DAF + \\angle FDA = 0^{\\circ}\n$$\nso the points $A, X, P'$ are collinear. Analogously we find that the points $A, X, Q'$ are collinear, which solves the problem.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34983, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nInitially, two positive integers $a$ and $b$ with $a \\neq b$ are written on a blackboard. At each step, Andrea picks two numbers $x$ and $y$ on the blackboard with $x \\neq y$ and writes the number\n$$\n\\operatorname{gcd}(x, y)+\\operatorname{lcm}(x, y)\n$$\non the blackboard as well. Let $n$ be a positive integer. Prove that, regardless of the values of $a$ and $b$, Andrea can perform a finite number of steps such that a multiple of $n$ appears on the blackboard.\n\nRemark. If $x$ and $y$ are two positive integers, then $\\operatorname{gcd}(x, y)$ denotes their greatest common divisor and $\\operatorname{lcm}(x, y)$ their least common multiple.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nWrite $a = d x$, $b = d y$ with $d = \\operatorname{gcd}(a, b)$. Then\n$$\n\\operatorname{gcd}(a, b) + \\operatorname{lcm}(a, b) = d + d x y = d(1 + x y) = d \\cdot (\\operatorname{gcd}(x, y) + \\operatorname{lcm}(x, y))\n$$\nand $1 + x y$ is coprime with both $x$ and $y$. This means that without loss of generality we can assume that $a$ and $b$ are coprime.\n\nNow we start with $a$ and $b$ and obtain the new number $1 + a b > a$. Then we compute $\\operatorname{gcd}(a, 1 + a b) + \\operatorname{lcm}(a, 1 + a b) = 1 + a + a^{2} b$, which is again coprime with $a$. Repeatedly applying this procedure with $a$ and the last written number, we obtain all the numbers of the form\n$$\n1 + a + \\ldots + a^{k-1} + a^{k} b = \\frac{a^{k} - 1}{a - 1} + a^{k} b =: V_{k}\n$$\nBy the pigeonhole principle there exist two positive integers $k_{1} < k_{2}$ such that $\\frac{a^{k_{1}} - 1}{a - 1}$ and $\\frac{a^{k_{2}} - 1}{a - 1}$ are congruent modulo $b$. Therefore their difference is divisible by $b$ and since $a$ and $b$ are coprime it follows that $\\frac{a^{k_{2} - k_{1}} - 1}{a - 1}$ is divisible by $b$. Moreover, for this integer $k = k_{2} - k_{1}$ clearly we have $V_{k} > b$, so we will write $V_{k} = t \\cdot b$ with $t > 1$.\n\nNow we take $V_{k}$ and $b$ and compute\n$$\n\\operatorname{gcd}\\left(V_{k}, b\\right) + \\operatorname{lcm}\\left(V_{k}, b\\right) = b + V_{k} = (t + 1) \\cdot b\n$$\nand hence repeatedly applying this procedure with $b$ and the last written number gives all numbers of the form $s \\cdot b$ for $s \\geq t$. In particular, if we apply this procedure sufficiently many times $s$ will be a multiple of $n$.", "topic": "Number Theory", "subtopic": "Divisibility / Factorization" }, { "id": 34984, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nGiven a pair $(a_{0}, b_{0})$ of real numbers, we define two sequences $a_{0}, a_{1}, a_{2}, \\ldots$ and $b_{0}, b_{1}, b_{2}, \\ldots$ of real numbers by\n$$\na_{n+1}=a_{n}+b_{n} \\quad \\text{ and } \\quad b_{n+1}=a_{n} \\cdot b_{n}\n$$\nfor all $n=0,1,2, \\ldots$ Find all pairs $(a_{0}, b_{0})$ of real numbers such that $a_{2022}=a_{0}$ and $b_{2022}=b_{0}$.", "options": [], "answer": "All pairs with b0 = 0 (with a0 arbitrary real).", "solution": "Solution:\nConsider a function $\\Phi$ of two real variables defined by $\\Phi(a, b)=(a-1)^{2}+(b-1)^{2}$. We claim that $\\Phi\\left(a_{n+1}, b_{n+1}\\right) \\geq \\Phi\\left(a_{n}, b_{n}\\right)$ for all $n$, with equality if and only if $a_{n} b_{n}=0$. Indeed, setting $a_{n}=a$ and $b_{n}=b$ we verify\n$$\n\\Phi\\left(a_{n+1}, b_{n+1}\\right)-\\Phi\\left(a_{n}, b_{n}\\right)=(a b-1)^{2}+(a+b-1)^{2}-(a-1)^{2}-(b-1)^{2}=(a b)^{2} \\geq 0\n$$\nThis means that\n$$\n\\Phi\\left(a_{2022}, b_{2022}\\right) \\geq \\Phi\\left(a_{2021}, b_{2021}\\right) \\geq \\cdots \\geq \\Phi\\left(a_{0}, b_{0}\\right)\n$$\nso equalities must occur everywhere. We distinguish two cases:\n\na. If $b_{0}=0$ then $a_{i}=a_{0}$ and $b_{i}=0$ for all $i=1, \\ldots, 2022$ and we get a valid solution for arbitrary real number $a_{0}$.\n\nb. If $b_{0} \\neq 0$ then from $(a_{0} b_{0})^{2}=0$ we infer $a_{0}=0$. Thus $a_{1}=b_{0} \\neq 0, b_{1}=0$ and from this point on $a_{i}=b_{0}, b_{i}=0$ for all $i=1, \\ldots, 2022$. Hence we do not get any solution here.\nAlternative solution:\nSince\n$$\na_{n+2}-a_{n+1}=b_{n+1}=a_{n} b_{n}=a_{n}(a_{n+1}-a_{n})=a_{n} a_{n+1}-a_{n}^{2}\n$$\nwe can write\n$$\n\\sum_{n}(a_{n+1}-a_{n})^{2}=2 \\sum_{n} a_{n}^{2}-2 \\sum_{n} a_{n+1} a_{n}=-2 \\sum_{n}(a_{n} a_{n+1}-a_{n}^{2})=-2 \\sum_{n}(a_{n+2}-a_{n+1})=0\n$$\nthus $a_{n}=a_{n+1}=a_{n}+b_{n}$ and $b_{n}=0$ for all $n$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34985, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $k$ be a positive integer and $a_{1}, a_{2}, \\ldots, a_{k}$ be nonnegative real numbers. Initially, there is a sequence of $n \\geq k$ zeros written on a blackboard. At each step, Nicole chooses $k$ consecutive numbers written on the blackboard and increases the first number by $a_{1}$, the second one by $a_{2}$, and so on, until she increases the $k$-th one by $a_{k}$. After a positive number of steps, Nicole managed to make all the numbers on the blackboard equal. Prove that all the nonzero numbers among $a_{1}, a_{2}, \\ldots, a_{k}$ are equal.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nDenote by $L_{i}, 0 \\leq i < n$, the number of tiles that John puts in such a way that $a_{0}$ is added at position $i$. Note that $L_{n-k} = L_{n-k+1} = \\cdots = L_{n-1} = 0$. Analogously, we define $R_{i}, 0 \\leq i < n$ for the number of times $a_{k-1}$ was added at position $i$.\n\nFirst, note that $a_{0} L_{0} = K$, since only the leftmost operations add something to the first zero. Note that for all $0 \\leq i < k$ we have $K \\geq a_{i} L_{0} = a_{i} K / a_{0}$, hence $a_{i} \\leq a_{0}$. Analogously, focusing on $a_{k-1}$ and $R_{n-1}$ we conclude that for every $0 \\leq i < k$ we have $a_{i} \\leq a_{k-1}$. That is, we have $a_{0} = a_{k-1}$ and this is the largest value in the sequence $a_{0}, \\ldots, a_{k-1}$; moreover, $L_{0} = R_{n-1}$. To simplify notation, we denote $a = a_{0} = a_{k-1}$ and $p = L_{0} = R_{n-1}$.\n\nOur task is to prove that every $a_{i}$ has value either $0$ or $a$. We will prove that by induction, in fact proving the following, stronger, statement. For every $0 \\leq i < \\lceil k / 2 \\rceil$, we prove:\n\n(a) $a_{i} = a_{k-1-i}$,\n\n(b) $L_{i} = R_{n-1-i}$,\n\n(c) either $a_{i} = 0$ or $a_{i} = a$.\n\nIn plain words, besides proving the required statement, we are also gradually proving that the sequence $a_{i}$ is symmetrical, as well as John's moves.\n\nWe have already proven this statement for $i = 0$. Let us now prove it for any $i$, assuming it was proven for $0, \\ldots, i-1$.\n\nNote that for the $i$-th position on the blackboard we have\n$$\nK = \\sum_{j=0}^{i} L_{j} a_{i-j}\n$$\nLet us first focus on the terms $L_{1} a_{i-1}, L_{2} a_{i-2}, \\ldots, L_{i-1} a_{1}$. By the induction statement, the value of each of these terms is either $0$ or $p \\cdot a = K$. If the latter ever happens, the induction statement implies $L_{i} = R_{n-1-i} = 0$ together with $a_{i} = a_{k-1-i} = 0$ and we are finished.\n\nHence, we can next assume that\n$$\nK = L_{0} a_{i} + L_{i} a = p a_{i} + L_{i} a\n$$\nand the analogous argument on the other side (replace $L_{j}$ by $R_{n-1-j}$ and $a_{j}$ by $a_{k-1-j}$ ) allows us to assume that\n$$\nK = R_{n-1} a_{k-1-i} + R_{n-1-i} a\n$$\n\nConsider the case $a_{i} < a$. Equation (1) implies that $L_{i} > 0$. Focusing now at the $k$th number in John's sequence, we get $K = L_{0} a_{k-1} + \\cdots + L_{i} a_{k-1-i} + \\ldots$. But $L_{0} a_{k-1} = p a = K$, so we are getting $L_{i} a_{k-1-i} = 0$, hence $a_{k-1-i} = 0$.\n\nWe can apply exactly the same argument on the other side (replace $L_{j}$ with $R_{n-1-j}$ and $a_{j}$ with $a_{k-1-j}$ and eq. (1) with eq. (2)). We get that whenever $a_{k-1-i} < a$, it has to be that $a_{i} = 0$.\n\nPutting these two arguments together, we conclude that one of the two possibilities is true: Either $a_{i} = a_{k-1-i} = a$ and eqs. (1) and (2) imply $L_{i} = R_{n-i} = 0$. Or $a_{i} = a_{k-1-i} = 0$ and eqs. (1) and (2) imply $L_{i} = R_{n-i} = p$. In either case, the induction statement is proven for $i$ and we are done.\n\n\nNumber-theoretic solution. As in the first solution, we denote by $L_{i}$ the number of times that $a_{0}$ was added to the $i$-th position and note that $a_{0}$ is maximal among the terms of the sequence. Obviously, we are done if $a_{0} = 0$, so let's assume $a_{0} > 0$, implying $L_{0} > 0$. We normalize the sequence by dividing each term by $a_{0}$, so that $a_{0} = 1$ and all numbers on the board are equal to $L_{0}$ in the end.\n\nClaim. All terms of the sequence are now rational numbers.\n\nProof. Assume the contrary. Consider the smallest index $i$ with $a_{i} \\notin \\mathbb{Q}$ and look at the $i$-th number on the board which in the end of the process takes the value $L_{0} \\in \\mathbb{N}$. Since $a_{i}$ was added to this position $L_{0}$ times and all other terms added to it must have been rational by minimality of $i$, we get a contradiction.\n\nIf there now exists some index $j$ with $0 < a_{j} < 1$, write $a_{j}$ as a reduced fraction and take a prime factor $q$ of its denominator. In other words, $v_{q}\\left(a_{j}\\right) < 0 = v_{q}\\left(a_{0}\\right)$.\n\nWe now choose a minimal index $t$ that minimizes $v_{q}\\left(a_{t}\\right)$ and a minimal index $s$ that minimizes $v_{q}\\left(L_{s}\\right)$. By evaluating the number on the $(s+t)$-th position on the blackboard, we obtain\n$$\nL_{0} \\cdot a_{0} = \\sum_{i=0}^{s+t} L_{i} \\cdot a_{s+t-i}\n$$\nHere, we simply set $a_{s+t-i} = 0$ if $s+t-i \\geq k$. Note that the term $L_{s} \\cdot a_{t}$ appearing in this sum has strictly smaller $v_{q}$ than any other term in the sum, by definition and minimality of $s$ and $t$. Also, since $v_{q}\\left(L_{s}\\right) \\leq v_{q}\\left(L_{0}\\right)$ and $v_{q}\\left(a_{t}\\right) < v_{q}\\left(a_{0}\\right) = 0$, we have $v_{q}\\left(L_{0} \\cdot a_{0}\\right) > v_{q}\\left(L_{s} \\cdot a_{t}\\right)$. Hence,\n$$\nv_{q}\\left(L_{0} \\cdot a_{0}\\right) > v_{q}\\left(L_{s} \\cdot a_{t}\\right) = v_{q}\\left(\\sum_{i=0}^{s+t} L_{i} \\cdot a_{s+t-i}\\right)\n$$\ncontradiction. We conclude that no such $j$ could have existed, so all terms are either equal to $0$ or $a_{0}$.\n\n\nSolution using Polynomials. By the claim of the previous solution, we see that we may assume all terms of the sequence to be nonnegative integers (just multiply everything by the lcm of the denominators). Again, we note that for all $i$, it holds that $a_{0} \\geq a_{i}$.\n\nNow observe the polynomial\n$$\nP(x) = \\sum_{i=0}^{k-1} a_{i} x^{i}\n$$\nand interpret the numbers on the board as a polynomial in a similar way, i.e. if the numbers on the board are $b_{0}, \\ldots, b_{n-1}$, read it as\n$$\n\\sum_{i=0}^{n-1} b_{i} x^{i}\n$$\nThe problem states that after each step, the polynomial on the board is increased by $x^{p} \\cdot P(x)$ for some $p \\in \\mathbb{N}_{0}$. Therefore, the condition can be rewritten as\n$$\nP(x) \\cdot Q(x) = K \\cdot \\frac{x^{n} - 1}{x - 1}\n$$\nfor some polynomial $Q \\in \\mathbb{Z}[x]$ and $K \\in \\mathbb{N}$. It follows that\n$$\nP(x) = a \\cdot R(x)\n$$\nwhere $a \\mid K$ and $R(x) \\left\\lvert\\, \\frac{x^{n} - 1}{x - 1}\\right.$. We see that the constant term of $R$ must be equal to $1$, and so $a_{0} = a$. As $a \\mid a_{i}$ and $a_{0} \\geq a_{i}$ for all $i$, they are indeed all equal to $a$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34986, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $n$ be a positive integer. We are given a $2n \\times 2n$ table. Each cell is coloured with one of $2n^{2}$ colours such that each colour is used exactly twice. Jana stands in one of the cells. There is a chocolate bar lying in one of the other cells. Jana wishes to reach the cell with the chocolate bar. At each step, she can only move in one of the following two ways. Either she walks to an adjacent cell or she teleports to the other cell with the same colour as her current cell. (Jana can move to an adjacent cell of the same colour by either walking or teleporting.) Determine whether Jana can fulfill her wish, regardless of the initial configuration, if she has to alternate between the two ways of moving and has to start with a teleportation.\n\nRemark. Two cells are adjacent if they share a common edge.", "options": [], "answer": "Yes, Jana can always reach the chocolate for any colouring and starting positions when starting with teleportation and alternating moves.", "solution": "Solution:\n\nFix the colouring of the cells and the starting position. We prove that Jana can reach any cell. Call a series of moves legal, if she starts from the starting cell with a teleport move, and uses the two types of moves alternately. Divide the cells into four categories.\n\n- Call a cell teleport reachable, if Jana can make a legal series of moves finishing in this cell, but all such legal movement ends with a teleport move.\n- Call a cell adjacent reachable, if Jana can make a legal series of moves finishing in this cell, but all such legal movement ends with an adjacent move.\n- Call a cell easily reachable if it can be reached legally such that the last move is a teleportation, and also it can be reached with the last move being an adjacent move.\n- Finally, call a cell unreachable, if Jana cannot move to this cell with a legal movement.\n\nFor consistency, we assume the cell that Jana starts on to be reachable with an adjacent move that happened before the start of the game and forces Jana to perform a teleport move next. The starting cell therefore is either adjacent reachable or easily reachable. Also, for any given cell, we call the other cell with the same colour its \"partner cell\".\n\nLemma. The number of teleport reachable cells and adjacent reachable cells must be the same.\n\nProof. Consider a cell $T$ and its partner cell $T'$. If $T$ is easily reachable, so is $T'$ (as any move before teleporting from $T'$ to $T$ must be an adjacent move to $T'$, and any adjacent move to $T$ can be extended by a teleport to $T'$). Similarly, if $T$ is teleport reachable, $T'$ must be adjacent reachable and vice versa. If $T$ is unreachable, so is $T'$, otherwise it would contradict the previous observations. Each pair therefore contributes equally many adjacent and teleport reachable cells.\n\nLemma. Each neighbour $N$ of a teleport reachable cell $T$ must be adjacent reachable.\n\nProof. A legal movement to $T$ can be extended with an adjacent move to $N$. But if $N$ was easily reachable, we could extend a teleport movement to $N$ with an adjacent move to $T$, so $T$ would be easily reachable too.\n\nLemma. Neighbours of easily reachable cells are never unreachable.\n\nProof. At the very least we could extend a teleport movement to the easily reachable cell with an adjacent move.\n\nAssume that there exist one or more unreachable cells. Then somewhere on the board, there are two adjacent cells of which one is unreachable and the other is not. By the second and third lemma, this neighbour cell can neither be easily reachable nor teleport reachable, so it must be adjacent reachable.\n\nPut a domino covering these two cells, and tile the whole table with dominoes containing this domino. Clearly, we can do this: Extend the two short sides of the domino such that the sides of the domino now partition the board into four rectangular regions. Since each of those rectangles have at least one even dimension, we can cover them by dominoes.\n\nNow by the second lemma, every domino that contains a teleport reachable cell must contain an adjacent reachable cell, and there is a domino that contains an adjacent reachable cell with no teleport reachable cell. This is a contradiction, as the number of teleport reachable cells and adjacent reachable cells are the same by the first lemma.", "topic": "Discrete Mathematics", "subtopic": "Graph Theory" }, { "id": 34987, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $\\Omega$ be the circumcircle of a triangle $A B C$ with $\\angle C A B = 90^\\circ$. The medians through $B$ and $C$ meet $\\Omega$ again at $D$ and $E$, respectively. The tangent to $\\Omega$ at $D$ intersects the line $A C$ at $X$ and the tangent to $\\Omega$ at $E$ intersects the line $A B$ at $Y$. Prove that the line $X Y$ is tangent to $\\Omega$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nLet $G$ be the second intersection of the median through $A$ and $\\Omega$. We will show that $X Y$ is tangent to $\\Omega$ at $G$. Let $X'$ be the intersection of the tangents to $\\Omega$ at $D$ and $G$. We claim that $A$, $C$, and $X'$ are collinear.\n\n![](attached_image_1.png)\n\nLet $O$ be the center of $\\Omega$, and $M$ the midpoint of $A C$. We start by noting that\n$$\n\\angle G O X' = \\frac{1}{2} \\angle G O D = \\angle G B D = \\angle A M B\n$$\nwhere we used that $A C \\parallel B G$ in the last equality. Hence, $\\triangle M A B \\sim \\triangle O G X'$, in particular $\\frac{X' G}{O G} = \\frac{B A}{A M}$. As $A C = 2 \\cdot A M$ and $A G = 2 \\cdot O G$, we also have $\\triangle C A B \\sim A G X'$. In particular, $\\angle G A X' = \\angle A C B = \\angle G A C$, proving the claim. Hence $X = X'$, so that the tangent at $G$ contains $X$, and by symmetry, $Y$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34988, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $ABCD$ be a convex quadrilateral such that $AC = BD$ and the sides $AB$ and $CD$ are not parallel. Let $P$ be the intersection point of the diagonals $AC$ and $BD$. Points $E$ and $F$ lie, respectively, on segments $BP$ and $AP$ such that $PC = PE$ and $PD = PF$. Prove that the circumcircle of the triangle determined by the lines $AB$, $CD$ and $EF$ is tangent to the circumcircle of the triangle $ABP$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\nWithout loss of generality assume that $AP < BP$. Let $X = AB \\cap CD$, $Y = AB \\cap C' D'$, and $Z = CD \\cap C' D'$. Furthermore, denote by $M$ the midpoint of arc $APB$. We will show that the circumcircle of $\\triangle XYZ$ is tangent to the circumcircle of $\\triangle ABP$ at $M$.\n\n![](attached_image_1.png)\n\nSince $MA = MB$, $AC = BD$ and $\\angle MAC = \\angle MBD$, we have $\\triangle MAC \\cong \\triangle MBD$. From this we get $\\angle PCM = \\angle ACM = \\angle BDM = \\angle PDM$, which means that $P, D, C, M$ are concyclic.\n\nThe points $C$ and $D$ are the reflections of $C'$ and $D'$ with respect to the external angle bisector of $\\angle APB$, which is the line $PM$. Therefore the points $M, P, Z$ are collinear and $ZM$ is the external angle bisector of $\\angle XZY$.\n\nSince $\\angle YBM = \\angle APM = \\angle D'PM = \\angle YC'M$, we have that the points $M, C', B, Y$ are concyclic. Furthermore, $\\angle XCM = \\angle DCM = \\angle BPM = \\angle BAM$ gives us that the points $C, M, A, X$ are also concyclic. The final angle chasing\n$$\n\\angle MYX = \\angle MYB = \\angle MC'P = \\angle PCM = \\angle ACM = \\angle AXM = \\angle YXM\n$$\nshows $MX = MY$. Together with the fact that $ZM$ is the external bisector of $\\angle XZY$ we have that the points $X, Y, Z, M$ indeed lie on a circle, which clearly is tangent to the circumcircle of $\\triangle ABP$ due to $MA = MB$ and $MX = MY$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34989, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $\\mathbb{N}$ denote the set of positive integers. Determine all functions $f: \\mathbb{N} \\rightarrow \\mathbb{N}$ such that $f(1) \\leq f(2) \\leq f(3) \\leq \\ldots$ and the numbers $f(n)+n+1$ and $f(f(n))-f(n)$ are both perfect squares for every positive integer $n$.", "options": [], "answer": "f(n) = n^2 + n for all positive integers n", "solution": "Solution:\nFor a positive integer $n$, denote by $b_{n}$ the number $\\sqrt{f(n)+n+1}$. Note that we have $f(n)+n+1 > f(n-1)+(n-1)+1$ for all $n > 1$. In other words, the sequence $\\left(b_{n}\\right)_{n}$ is a strictly increasing sequence of positive integers. Since $b_{1} \\geq 2$, we have $b_{n} \\geq n+1$, or, in other words, $f(n) \\geq n^{2}+n$ for every $n \\geq 1$.\n\nConsider some $n \\geq 1$. We have $f(f(n))+f(n)+1 = j^{2}$ for some integer $j$ from the condition of the problem applied to $f(n)$. Also $f(f(n))-f(n) = k^{2}$ for some integer $k$. Clearly $k < j$ and so we obtain\n$$\n2 f(n)+1 = (f(f(n))+f(n)+1)-(f(f(n))-f(n)) = j^{2}-k^{2} = (j-k)(j+k)\n$$\nSince $j > k$, we have $j \\geq k+1$ and hence $j-k \\geq 1$, $j+k \\geq 2k+1$. Combining these inequalities with the previous equation yield $2 f(n)+1 \\geq 2k+1$ and therefore $k \\leq f(n)$. This means that $f(f(n))-f(n) \\leq f(n)^{2}$.\n\nCombining the two results we obtain that $f(f(n)) = f(n)^{2}+f(n)$ for all $n$. Moreover by the problem conditions $b_{n} := \\sqrt{f(n)+n+1}$ is a strictly increasing sequence of integers such that $b_{n} \\geq n+1$ and $b_{f(n)} = f(n)+1$ for all $n$. Therefore we must have that $b_{n} = n+1$ for all $n$ and hence $f(n) = n^{2}+n$ for all $n$. We verify easily that this function verify the conditions of the problem.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34990, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nWe call a positive integer cheesy if we can obtain the average of the digits in its decimal representation by putting a decimal separator after the leftmost digit. Prove that there are only finitely many cheesy numbers.\n\nExample. For instance, $2250$ is cheesy, as the average of the digits is $2.250$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nLet $n$ be a positive integer and $k$ be the number of digits of $n$. Let $m$ be the sum of digits of $n$. We prove that if $k \\geq 2^{6}$ then $n$ is not reflexive.\n\nLet $a = v_{2}(k)$ be the nonnegative integer such that $2^{a} \\leq k < 2^{a+1}$. It is easy to see that $n$ is reflexive exactly if\n$$\nm \\cdot 10^{k-1} = n k\n$$\nSuppose by contradiction that $n$ is reflexive and $k \\geq 2^{6}$. The left hand side is divisible by $10^{k-1}$ and $k < 2^{a+1}$, and also from this trivially $k < 5^{a+1}$, so $2^{a+1}$ and $5^{a+1}$ do not divide $k$, which means $10^{k-1-a} \\mid n$.\n\nHence the last $k-1-a$ digits of $n$ is $0$, so only the first $a+1$ digits can be nonzero, thus $m \\leq 9(a+1)$. Also $n \\geq 10^{k-1}$ as $n$ has $k$ digits.\n\nIt is easy to prove that $9(A+1) < 2^{A}$ if $A \\geq 6$.\n\nCombining these\n$$\nm \\cdot 10^{k-1} \\leq 9(a+1) \\cdot 10^{k-1} < 10^{k-1} \\cdot 2^{a} \\leq n k\n$$\nwhich is a contradiction.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34991, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $\\mathbb{R}$ denote the set of all real numbers. For each pair $(\\alpha, \\beta)$ of nonnegative real numbers subject to $\\alpha+\\beta \\geq 2$, determine all functions $f: \\mathbb{R} \\rightarrow \\mathbb{R}$ satisfying\n$$\nf(x) f(y) \\leq f(x y)+\\alpha x+\\beta y\n$$\nfor all real numbers $x$ and $y$.", "options": [], "answer": "The only case with a solution is when the parameters both equal one, in which case the unique function is f of x equals x plus one. For any other parameter pair there is no function.", "solution": "Solution:\nWe know $f(x) f(y) \\leq f(x y)+\\alpha x+\\beta y$ and by exchanging $x$ and $y$ we get $f(x) f(y) \\leq f(x y)+\\beta x+\\alpha y$. Combining the two we get\n$$\nf(x) f(y) \\leq f(x y)+\\gamma x+\\gamma y\n$$\nwhere $\\gamma=\\frac{\\alpha+\\beta}{2}$. Notice that $\\gamma \\geq 1$.\n\nSetting $x=y=-1$ in (1) we get $f(-1)^2 \\leq f(1)-2 \\gamma$, so $f(1) \\geq 2 \\gamma$. Setting $x=y=1$ in (1) we get $f(1)^2 \\leq f(1)+2 \\gamma$, so $f(1)^2-f(1) \\leq 2 \\gamma$. Since $f(1) \\geq 2 \\gamma \\geq 2$ and $t^2-t$ is an increasing function for $t \\geq 2$, we have $(2 \\gamma)^2-2 \\gamma \\leq f(1)^2-f(1) \\leq 2 \\gamma$, hence $4 \\gamma^2 \\leq 4 \\gamma$, so $\\gamma \\leq 1$. Therefore, $\\gamma=1$.\n\nWe know that $f(1) \\geq 2$ and $f(1)^2-f(1) \\leq 2$, thus necessarily $f(1)=2$. We also know $f(-1) \\leq f(1)-2 \\gamma=0$, so $f(-1)=0$.\n\nSetting $x=z, y=1$ in (1) we get $2 f(z) \\leq f(z)+z+1$, so $f(z) \\leq z+1$. Setting $x=-z$, $y=-1$ in (1) we get $0 \\leq f(z)-z-1$, so $f(z) \\geq z+1$. It follows that the only function which can possibly satisfy the problem statement is\n$$\nf(z)=z+1\n$$\nIt remains to check for which $\\alpha$ and $\\beta$ this is indeed a solution.\n\nSubstituting $f$ into original inequality, we get $(x+1)(y+1) \\leq(x y+1)+\\alpha x+\\beta y$, thus $(1-\\alpha) x+(1-\\beta) y \\leq 0$. This holds for all $x, y$ iff $\\alpha=\\beta=1$. Hence, for $(\\alpha, \\beta)=(1,1)$ the only solution is $f(z)=z+1$ and for $(\\alpha, \\beta) \\neq(1,1)$ there are no solutions.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34992, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $\\mathbb{R}$ denote the set of all real numbers. For each pair $(\\alpha, \\beta)$ of nonnegative real numbers subject to $\\alpha+\\beta \\geq 2$, determine all functions $f: \\mathbb{R} \\rightarrow \\mathbb{R}$ satisfying\n$$\nf(x) f(y) \\leq f(x y)+\\alpha x+\\beta y\n$$\nfor all real numbers $x$ and $y$.", "options": [], "answer": "The only solution occurs when alpha equals beta equals one, in which case f(x) equals x plus one. For all other parameter pairs with nonnegative values summing to at least two, there is no function satisfying the inequality.", "solution": "Solution:\nWe know $f(x) f(y) \\leq f(x y)+\\alpha x+\\beta y$ and by exchanging $x$ and $y$ we get $f(x) f(y) \\leq f(x y)+\\beta x+\\alpha y$. Combining the two we get\n$$\nf(x) f(y) \\leq f(x y)+\\gamma x+\\gamma y\n$$\nwhere $\\gamma=\\frac{\\alpha+\\beta}{2}$. Notice that $\\gamma \\geq 1$.\n\nSetting $x=y=-1$ in (1) we get $f(-1)^2 \\leq f(1)-2 \\gamma$, so $f(1) \\geq 2 \\gamma$. Setting $x=y=1$ in (1) we get $f(1)^2 \\leq f(1)+2 \\gamma$, so $f(1)^2-f(1) \\leq 2 \\gamma$. Since $f(1) \\geq 2 \\gamma \\geq 2$ and $t^2-t$ is an increasing function for $t \\geq 2$, we have $(2 \\gamma)^2-2 \\gamma \\leq f(1)^2-f(1) \\leq 2 \\gamma$, hence $4 \\gamma^2 \\leq 4 \\gamma$, so $\\gamma \\leq 1$. Therefore, $\\gamma=1$.\n\nWe know that $f(1) \\geq 2$ and $f(1)^2-f(1) \\leq 2$, thus necessarily $f(1)=2$. We also know $f(-1) \\leq f(1)-2 \\gamma=0$, so $f(-1)=0$.\n\nSetting $x=z, y=1$ in (1) we get $2 f(z) \\leq f(z)+z+1$, so $f(z) \\leq z+1$. Setting $x=-z$, $y=-1$ in (1) we get $0 \\leq f(z)-z-1$, so $f(z) \\geq z+1$. It follows that the only function which can possibly satisfy the problem statement is\n$$\nf(z)=z+1\n$$\nIt remains to check for which $\\alpha$ and $\\beta$ this is indeed a solution.\n\nSubstituting $f$ into original inequality, we get $(x+1)(y+1) \\leq(x y+1)+\\alpha x+\\beta y$, thus $(1-\\alpha) x+(1-\\beta) y \\leq 0$. This holds for all $x, y$ iff $\\alpha=\\beta=1$. Hence, for $(\\alpha, \\beta)=(1,1)$ the only solution is $f(z)=z+1$ and for $(\\alpha, \\beta) \\neq(1,1)$ there are no solutions.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34993, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nFind all integers $n \\geq 3$ for which it is possible to draw $n$ chords of one circle such that their $2 n$ endpoints are pairwise distinct and each chord intersects precisely $k$ other chords for:\n(a) $k=n-2$,\n(b) $k=n-3$.", "options": [], "answer": "(a) All even n with n at least four.\n(b) All integers n with n at least three.", "solution": "Solution:\n\n(a) Every chord avoids precisely one other chord, hence the avoiding chords form pairs and $n$ must be even. On the other hand, for any even $n \\geq 2$ the construction is simple (see the left figure).\n\n![](attached_image_1.png)\n\n(b) For $n=3,4,5,8$ we can draw the chords as in the middle figure. From an admissible drawing with $n=3,4,8$, we can build an admissible drawing with $n+3k$ by adding $k$ triples of parallel lines within the gray strip: Each existing chord crosses all the newly added chords, so it avoids precisely the 2 other chords it avoided before. Each newly added chord crosses all other chords except the other two chords in its triple.\nAnother Solution to (b):\n\nAnother way to look at the construction in part (2) is as follows: Consider two \"blocks\" $T$ and $F$ of three and four chords, respectively, shown below in the left figure.\n\n![](attached_image_2.png)\n\nNote that each chord misses exactly two other chords from its block, so any time we place several blocks such that any two chords from different blocks cross, we obtain an admissible drawing (see the middle figure). Since all integers $n \\geq 3$ except $n=5$ can be expressed as a sum of several 3's and 4's (by a casework mod 3, or by the Frobenius coin problem aka the ChickenMcNugget theorem), it remains to find an admissible drawing for $n=5$. For that, see the right figure.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34994, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $ABC$ be a triangle with incenter $I$. The incircle $\\omega$ of $ABC$ is tangent to the line $BC$ at point $D$. Denote by $E$ and $F$ the points satisfying $AI \\parallel BE \\parallel CF$ and $\\angle BEI = \\angle CFI = 90^\\circ$. Lines $DE$ and $DF$ intersect $\\omega$ again at points $E'$ and $F'$, respectively. Prove that $E'F' \\perp AI$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nOur goal essentially is to prove that the circumcircle of $DEF$ is tangent to the incircle - that would immediately mean $EF \\parallel E'F'$, which together with $EF \\perp AI$ gives the desired result. In order to prove that we just need to show $\\angle BDE = \\angle EFD$.\n\n![](attached_image_1.png)\n\nNotice that quadrilaterals $BDIE$, $DCFI$ are cyclic due to right angles $BDI$, $BEI$, $IDC$, $IFC$. It is well-known that the circumcenter of $BIC$ lies on $AI$ (in fact, it is the second intersection of $AI$ with the circumcircle of $ABC$). This means that line $EIF$ is tangent to the circumcircle of $BIC$. With all these facts, we just need to perform simple angle chasing:\n$$\n\\angle BDE = \\angle BIE = \\angle ICB = \\angle ICD = \\angle IFD = \\angle EFD.\n$$\nSolution:\n\nDenote by $B'$ and $C'$ the projections of $I$ on $AC$ and $AB$, respectively. The right angles give us that $C, F, B', D$ lie on a circle. Angle chasing using $AI \\parallel CF$ then gives:\n$$\n\\angle F'I B' = 2\\angle F'DB' = 2\\angle FDB' = 2\\angle FCB' = 2\\angle IAC = \\angle BAC\n$$\nFurthermore, we angle chase that:\n$$\n\\angle FIB' = 90^\\circ - \\angle AIB' = \\angle IAC = \\frac{\\angle BAC}{2}\n$$\nSo we get that:\n$$\n\\angle F'IF = \\angle F'I B' - \\angle FIB' = \\angle BAC - \\frac{\\angle BAC}{2} = \\frac{\\angle BAC}{2}\n$$\nAnalogously, $\\angle E'IE = \\frac{\\angle BAC}{2}$, so the line $EIF$ is an external angle bisector in the triangle $E'IF'$. Since $AI \\perp EF$, the line $AI$ is an internal angle bisector in the triangle $E'IF'$. But triangle $E'IF'$ is isosceles, hence the line $AI$ is also an altitude, so $AI \\perp E'F'$.", "topic": "Geometry", "subtopic": "Plane Geometry" }, { "id": 34995, "subject": "Mathematics (Multi-modal)", "question": "Problem:\n\nLet $n$ and $m$ be positive integers. We call a set $S$ of positive integers $(n, m)$-good if it satisfies the following three conditions:\n(i) We have $m \\in S$.\n(ii) For all $a \\in S$, all of the positive divisors of $a$ are elements of $S$ too.\n(iii) For all mutually different numbers $a, b \\in S$, we have $a^{n}+b^{n} \\in S$.", "options": [], "answer": "Detailed solution", "solution": "Solution:\n\nFor $m=1$ we have that $\\{1\\}$ is $(m, n)$-good. For the rest of the solution we assume $m \\geq 2$.\n\n- $n$ is odd\n\nLet $S$ be $(m, n)$-good set. Since $x+y \\mid x^{n}+y^{n}$, for $x, y \\in S$ with $x \\neq y$ we have $x+y \\in S$. Since $1 \\mid m$, it implies $1 \\in S$ and also $m+1 \\in S$. By induction, all positive integers greater than $m$ are in $S$. Moreover, every positive integer smaller than $m$ has a multiple which is greater than $m$. This implies that $S=\\mathbb{Z}_{\\geq 1}$.\n\n- $n$ is even\n\nLet $n=2k$ and let $p$ be a prime coprime to $m$ such that $p \\equiv 3 \\bmod 4$. Such prime exists since there are infinitely many primes with remainder $3$ modulo $4$ (this well-known fact follows for example from Dirichlet's theorem). Let $S=\\{x \\in \\mathbb{Z}_{\\geq 1}: p \\nmid x\\}$. We will show that $S$ is $(m, n)$-good set. Clearly, the first two conditions are satisfied. Consider two distinct elements $x, y \\in S$ such that\n$$\nx^{2k} \\equiv -y^{2k} \\pmod{p}\n$$\nBy exponentiating this congruence to the power of $\\frac{p-1}{2}$, we obtain\n$$\nx^{k(p-1)} \\equiv (-1)^{\\frac{p-1}{2}} \\cdot y^{k(p-1)} \\pmod{p},\n$$\nfrom which it follows that\n$$\n1 \\equiv (-1)^{\\frac{p-1}{2}} \\pmod{p}\n$$\nSince $p \\equiv 3 \\bmod 4$, $(p-1)/2$ is an odd number, thus $(-1)^{\\frac{p-1}{2}} = -1$ is a contradiction. Therefore, $S$ is $(m, n)$-good set.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34996, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $\\mathbb{Z}$ denote the set of all integers and $\\mathbb{Z}_{>0}$ denote the set of all positive integers.\n\na. A function $f: \\mathbb{Z} \\rightarrow \\mathbb{Z}$ is called $\\mathbb{Z}$-good if it satisfies $f\\left(a^{2}+b\\right)=f\\left(b^{2}+a\\right)$ for all $a, b \\in \\mathbb{Z}$. Determine the largest possible number of distinct values that can occur among $f(1), f(2), \\ldots, f(2023)$, where $f$ is a $\\mathbb{Z}$-good function.\n\nb. A function $f: \\mathbb{Z}_{>0} \\rightarrow \\mathbb{Z}_{>0}$ is called $\\mathbb{Z}_{>0}$-good if it satisfies $f\\left(a^{2}+b\\right)=f\\left(b^{2}+a\\right)$ for all $a, b \\in \\mathbb{Z}_{>0}$. Determine the largest possible number of distinct values that can occur among $f(1), f(2), \\ldots, f(2023)$, where $f$ is a $\\mathbb{Z}_{>0}$-good function.", "options": [], "answer": "(a) 2; (b) 1077", "solution": "Solution:\nThe answer is (a) 2 and (b) 1077.\n\na.\nNote that\n$$\nf\\left(a^{2}+b\\right)=f\\left(b^{2}+a\\right)=f\\left((-b)^{2}+a\\right)=f\\left(a^{2}-b\\right)\n$$\nIn particular, by setting $a \\in \\{0,1\\}$ we get $f(b)=f(-b)$ and $f(1+b)=f(1-b)$. This then yields\n$$\nf(2+b)=f(1+(1+b))=f(1-(1+b))=f(-b)=f(b)\n$$\nhence by induction the function must be constant on even integers and (separately) on odd integers. On the other hand, a function $f(n)=n\\bmod 2$ satisfies the requirements and attains 2 distinct values on $\\{1, \\ldots, 2023\\}$.\n\nb.\nGiven two positive integers $mb>0$. Then either $n=a, k=b$ (in which case we obtain a parent $k^{2}+na$, a contradiction.\n\n(d) For any $n \\geq 2$, the $n+2$ numbers in $B_{n}=\\{n^{2}+n, \\ldots, n^{2}+2n+1\\}$ do not have a parent: Let $n \\leq k \\leq 2n+1$ and assume that $n^{2}+k=a^{2}+b$ with $a>b>0$. Since $n^{2}+k<(n+1)^{2}+1$, we must have $a \\leq n$ but then $b \\geq k \\geq n \\geq a$, a contradiction.\n\nNote that as $n \\in \\mathbb{N}$ varies, the sets $A_{n}, B_{n}$ form a partition of $\\mathbb{N} \\setminus S$, hence each positive integer has at most one parent. In other words, if we process the positive integers in increasing order, for any currently processed integer $n$ there will always be at most one parent, and thus at most one requirement on which value to assign to $f(n)$. Therefore, as we process the integers, to any integer $n$ without a parent we can always safely assign any value $f(n)$. (Clearly, when $n$ has a parent $m$, we must assign $f(n)=f(m)$.) The answer is the number of integers $n \\in \\{1, \\ldots, 2023\\}$ with no parent. Since $2023=44^{2}+87$, this is\n$$\n|S|+\\left(\\sum_{i=2}^{43}(i+2)\\right)+(87-44+1)=1077\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34997, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $\\mathbb{Z}$ denote the set of all integers and $\\mathbb{Z}_{>0}$ denote the set of all positive integers.\n\na. A function $f: \\mathbb{Z} \\rightarrow \\mathbb{Z}$ is called $\\mathbb{Z}$-good if it satisfies $f\\left(a^{2}+b\\right)=f\\left(b^{2}+a\\right)$ for all $a, b \\in \\mathbb{Z}$. Determine the largest possible number of distinct values that can occur among $f(1), f(2), \\ldots, f(2023)$, where $f$ is a $\\mathbb{Z}$-good function.\n\nb. A function $f: \\mathbb{Z}_{>0} \\rightarrow \\mathbb{Z}_{>0}$ is called $\\mathbb{Z}_{>0}$-good if it satisfies $f\\left(a^{2}+b\\right)=f\\left(b^{2}+a\\right)$ for all $a, b \\in \\mathbb{Z}_{>0}$. Determine the largest possible number of distinct values that can occur among $f(1), f(2), \\ldots, f(2023)$, where $f$ is a $\\mathbb{Z}_{>0}$-good function.", "options": [], "answer": "a = 2; b = 1077", "solution": "Solution:\n\na.\nNote that\n$$\nf\\left(a^{2}+b\\right)=f\\left(b^{2}+a\\right)=f\\left((-b)^{2}+a\\right)=f\\left(a^{2}-b\\right)\n$$\nIn particular, by setting $a \\in\\{0,1\\}$ we get $f(b)=f(-b)$ and $f(1+b)=f(1-b)$. This then yields\n$$\nf(2+b)=f(1+(1+b))=f(1-(1+b))=f(-b)=f(b)\n$$\nhence by induction the function must be constant on even integers and (separately) on odd integers. On the other hand, a function $f(n)=n(\\bmod 2)$ satisfies the requirements and attains 2 distinct values on $\\{1, \\ldots, 2023\\}$.\n\nb.\nGiven two positive integers $mb>0$. Then either $n=a, k=b$ (in which case we obtain a parent $k^{2}+na$, a contradiction.\n\nd. For any $n \\geq 2$, the $n+2$ numbers in $B_{n}=\\left\\{n^{2}+n, \\ldots, n^{2}+2 n+1\\right\\}$ do not have a parent: Let $n \\leq k \\leq 2 n+1$ and assume that $n^{2}+k=a^{2}+b$ with $a>b>0$. Since $n^{2}+k<(n+1)^{2}+1$, we must have $a \\leq n$ but then $b \\geq k \\geq n \\geq a$, a contradiction.\n\nNote that as $n \\in \\mathbb{N}$ varies, the sets $A_{n}, B_{n}$ form a partition of $\\mathbb{N} \\backslash S$, hence each positive integer has at most one parent. In other words, if we process the positive integers in increasing order, for any currently processed integer $n$ there will always be at most one parent, and thus at most one requirement on which value to assign to $f(n)$. Therefore, as we process the integers, to any integer $n$ without a parent we can always safely assign any value $f(n)$. (Clearly, when $n$ has a parent $m$, we must assign $f(n)=f(m)$.) The answer is the number of integers $n \\in\\{1, \\ldots, 2023\\}$ with no parent. Since $2023=44^{2}+87$, this is\n$$\n|S|+\\left(\\sum_{i=2}^{43}(i+2)\\right)+(87-44+1)=1077\n$$", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34998, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nLet $a$, $b$, $c$ and $d$ be positive real numbers with $a b c d = 1$. Prove that\n$$\n\\frac{a b + 1}{a + 1} + \\frac{b c + 1}{b + 1} + \\frac{c d + 1}{c + 1} + \\frac{d a + 1}{d + 1} \\geq 4\n$$\nand determine all quadruples $(a, b, c, d)$ for which equality holds.", "options": [], "answer": "The sum is at least 4, with equality if and only if (a, b, c, d) = (t, 1/t, t, 1/t) for some positive real t.", "solution": "Solution:\nBy assumption we have\n$$\n\\begin{aligned}\n\\frac{a b + 1}{a + 1} + \\frac{b c + 1}{b + 1} + \\frac{c d + 1}{c + 1} + \\frac{d a + 1}{d + 1} & = \\left(\\frac{a b + 1}{a + 1} + \\frac{c d + a b c d}{c + 1}\\right) + \\left(\\frac{b c + 1}{b + 1} + \\frac{d a + a b c d}{d + 1}\\right) = \\\\\n& = (a b + 1)\\left(\\frac{1}{a + 1} + \\frac{c d}{c + 1}\\right) + (b c + 1)\\left(\\frac{1}{b + 1} + \\frac{a d}{d + 1}\\right) = \\\\\n& = (a b + 1)\\left(\\frac{1}{a + 1} + \\frac{1}{a b c + a b}\\right) + (b c + 1)\\left(\\frac{1}{b + 1} + \\frac{1}{b c d + b c}\\right)\n\\end{aligned}\n$$\nWhen estimating the parentheses by the inequality of the arithmetic-harmonic mean (i.e. $1 / u + 1 / v \\geq 4 / (u + v)$ for positive real numbers $u$ and $v$ with equality iff $u = v$), we see that the above expression is at least\n$$\n\\begin{aligned}\n(a b + 1) \\frac{4}{a + 1 + a b c + a b} + (b c + 1) \\frac{4}{b + 1 + b c d + b c} & = \\frac{4(a b + 1)}{a + 1 + a b c + a b} + \\frac{4(b c + 1) \\cdot a}{(b + 1 + b c d + b c) \\cdot a} = \\\\\n& = \\frac{4(a b + 1)}{a + 1 + a b c + a b} + \\frac{4(a b c + a)}{a b + a + 1 + a b c} = \\\\\n& = \\frac{4(a b + 1 + a b c + a)}{1 + a + a b + a b c} = 4\n\\end{aligned}\n$$\nEquality holds iff $a + 1 = a b c + a b$ and $b + 1 = b c d + b c \\Leftrightarrow a b + a = 1 + a b c$. Addition of these equations yields $2 a = 2 a b c$, that is $b c = 1$. Plugging this into the first equation, we also get $1 = a b$. Therefore $a b = b c = c d = 1$, which implies $a = c$ and $b = d = 1 / a$. Indeed, these conditions suffice, as is readily checked. Thus, equality holds iff $(a, b, c, d) = \\left(t, \\frac{1}{t}, t, \\frac{1}{t}\\right)$ for some positive real $t$.", "topic": "Algebra", "subtopic": "Intermediate Algebra" }, { "id": 34999, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind the smallest integer $b$ with the following property: For each way of colouring exactly $b$ squares of an $8 \\times 8$ chessboard green, one can place 7 bishops on 7 green squares so that no two bishops attack each other.\n\nRemark. Two bishops attack each other if they are on the same diagonal.", "options": [], "answer": "41", "solution": "Solution:\nLet us place 40 bishops on 6 diagonals as shown in Figure 2. If we select any 7 of the placed bishops, by the Pigeonhole Principle, at least two of the selected bishops are on the same diagonal, so they attack each other. Thus, the number $b$ of selected bishops is at least 41.\n\n![](attached_image_1.png)\nFigure 1\n\nNow, suppose for a contrary, that there is a placement of 41 bishops such that there are not 7 non-attacking bishops. Divide all tiles into 8 groups as shown in Figure ??. It is easy to see that any two bishops belonging to the same group do not attack each other. Therefore, each group contains at most 6 bishops. Moreover, groups 7 and 8 contain at most 2 bishops due to their size. Therefore, we have at most $6 \\cdot 6 + 2 \\cdot 2 = 40$ bishops, which is a contradiction. Therefore, from any placement of 41 bishops, it is possible to select some 7 of them such that no two attack each other. This, together with the lower bound of $b \\geq 41$ finishes this solution.\n\n![](attached_image_2.png)\nFigure 2", "topic": "Algebra", "subtopic": "Abstract Algebra" }, { "id": 35000, "subject": "Mathematics (Multi-modal)", "question": "Problem:\nFind the smallest integer $b$ with the following property: For each way of colouring exactly $b$ squares of an $8 \\times 8$ chessboard green, one can place 7 bishops on 7 green squares so that no two bishops attack each other.\n\nRemark. Two bishops attack each other if they are on the same diagonal.", "options": [], "answer": "41", "solution": "Solution:\nLet us place 40 bishops on 6 diagonals as shown in Figure 2. If we select any 7 of the placed bishops, by Pigeon hole principle, at least two of the selected bishops are on the same diagonal, so they attack each other. Thus, the number $b$ of selected bishops is at least 41.\n\n![](attached_image_1.png)\nFigure 1\n\nNow, suppose for a contrary, that there is a placement of 41 bishops such there are not 7 non-attacking bishops. Divide all tiles to 8 groups as shown in Figure ??. It is easy to see that any two bishops belonging to the same group do not attack each other. Therefore, each group contains at most 6 bishops. Moreover, groups 7 and 8 contain at most 2 bishops due to their size. Therefore, we have at most $6 \\cdot 6+2 \\cdot 2=40$ bishops, which is a contradiction. Therefore, from any placement of 41 bishops, it is possible to select some 7 of them such that no two attack each other. This, together with the lower bound of $b \\geq 41$ finishes this solution.\n\n![](attached_image_2.png)\nFigure 2", "topic": "Algebra", "subtopic": "Abstract Algebra" } ]