{"year": "2017", "tier": "T1", "problem_label": "1", "problem_type": null, "exam": "USAMO", "problem": "Prove that there exist infinitely many pairs of relatively prime positive integers $a, b>1$ for which $a+b$ divides $a^{b}+b^{a}$.", "solution": " One construction: let $d \\equiv 1(\\bmod 4), d>1$. Let $x=\\frac{d^{d}+2^{d}}{d+2}$. Then set $$ a=\\frac{x+d}{2}, \\quad b=\\frac{x-d}{2} . $$ To see this works, first check that $b$ is odd and $a$ is even. Let $d=a-b$ be odd. Then: $$ \\begin{aligned} a+b \\mid a^{b}+b^{a} & \\Longleftrightarrow(-b)^{b}+b^{a} \\equiv 0 \\quad(\\bmod a+b) \\\\ & \\Longleftrightarrow b^{a-b} \\equiv 1 \\quad(\\bmod a+b) \\\\ & \\Longleftrightarrow b^{d} \\equiv 1 \\quad(\\bmod d+2 b) \\\\ & \\Longleftrightarrow(-2)^{d} \\equiv d^{d}(\\bmod d+2 b) \\\\ & \\Longleftrightarrow d+2 b \\mid d^{d}+2^{d} . \\end{aligned} $$ So it would be enough that $$ d+2 b=\\frac{d^{d}+2^{d}}{d+2} \\Longrightarrow b=\\frac{1}{2}\\left(\\frac{d^{d}+2^{d}}{d+2}-d\\right) $$ which is what we constructed. Also, since $\\operatorname{gcd}(x, d)=1$ it follows $\\operatorname{gcd}(a, b)=\\operatorname{gcd}(d, b)=$ 1. Remark. Ryan Kim points out that in fact, $(a, b)=(2 n-1,2 n+1)$ is always a solution.", "metadata": {"resource_path": "USAMO/segmented/en-USAMO-2017-notes.jsonl"}} {"year": "2017", "tier": "T1", "problem_label": "2", "problem_type": null, "exam": "USAMO", "problem": "Let $m_{1}, m_{2}, \\ldots, m_{n}$ be a collection of $n$ positive integers, not necessarily distinct. For any sequence of integers $A=\\left(a_{1}, \\ldots, a_{n}\\right)$ and any permutation $w=w_{1}, \\ldots, w_{n}$ of $m_{1}, \\ldots, m_{n}$, define an $A$-inversion of $w$ to be a pair of entries $w_{i}, w_{j}$ with $iw_{j}$, - $w_{j}>a_{i} \\geq w_{i}$, or - $w_{i}>w_{j}>a_{i}$. Show that, for any two sequences of integers $A=\\left(a_{1}, \\ldots, a_{n}\\right)$ and $B=\\left(b_{1}, \\ldots, b_{n}\\right)$, and for any positive integer $k$, the number of permutations of $m_{1}, \\ldots, m_{n}$ having exactly $k A$-inversions is equal to the number of permutations of $m_{1}, \\ldots, m_{n}$ having exactly $k B$-inversions.", "solution": " Denote by $M$ our multiset of $n$ positive integers. Define an inversion of a permutation to be pair $i0$ such that there exists a labeling of the lattice points in $\\mathbb{Z}^{2}$ with positive integers for which: - only finitely many distinct labels occur, and - for each label $i$, the distance between any two points labeled $i$ is at least $c^{i}$.", "solution": " The construction for any $c<\\sqrt{2}$ can be done as follows. Checkerboard color the lattice points and label the black ones with 1 . The white points then form a copy of $\\mathbb{Z}^{2}$ again scaled up by $\\sqrt{2}$ so we can repeat the procedure with 2 on half the resulting points. Continue this dyadic construction until a large $N$ for which $c^{N}<2^{\\frac{1}{2}(N-1)}$, at which point we can just label all the points with $N$. I'll now prove that $c=\\sqrt{2}$ (and hence $c \\geq \\sqrt{2}$ ) can't be done. Claim - It is impossible to fill a $2^{n} \\times 2^{n}$ square with labels not exceeding $2 n$. The case $n=1$ is clear. So now assume it's true up to $n-1$; and assume for contradiction a $2^{n} \\times 2^{n}$ square $S$ only contains labels up to $2 n$. (Of course every $2^{n-1} \\times 2^{n-1}$ square contains an instance of a label at least $2 n-1$.) ![](https://cdn.mathpix.com/cropped/2024_11_19_31dda431671476b0de3cg-12.jpg?height=647&width=632&top_left_y=1484&top_left_x=712) Now, we contend there are fewer than four copies of $2 n$ : ## Lemma In a unit square, among any four points, two of these points have distance $\\leq 1$ apart. So WLOG the northwest quadrant has no $2 n$ 's. Take a $2 n-1$ in the northwest and draw a square of size $2^{n-1} \\times 2^{n-1}$ directly right of it (with its top edge coinciding with the top of $S$ ). Then $A$ can't contain $2 n-1$, so it must contain a $2 n$ label; that $2 n$ label must be in the northeast quadrant. Then we define a square $B$ of size $2^{n-1} \\times 2^{n-1}$ as follows. If $2 n-1$ is at least as high $2 n$, let $B$ be a $2^{n-1} \\times 2^{n-1}$ square which touches $2 n-1$ north and is bounded east by $2 n$. Otherwise let $B$ be the square that touches $2 n-1$ west and is bounded north by $2 n$. We then observe $B$ can neither have $2 n-1$ nor $2 n$ in it, contradiction. Remark. To my knowledge, essentially all density arguments fail because of hexagonal lattice packing.", "metadata": {"resource_path": "USAMO/segmented/en-USAMO-2017-notes.jsonl"}} {"year": "2017", "tier": "T1", "problem_label": "6", "problem_type": null, "exam": "USAMO", "problem": "Find the minimum possible value of $$ \\frac{a}{b^{3}+4}+\\frac{b}{c^{3}+4}+\\frac{c}{d^{3}+4}+\\frac{d}{a^{3}+4} $$ given that $a, b, c, d$ are nonnegative real numbers such that $a+b+c+d=4$.", "solution": " The minimum $\\frac{2}{3}$ is achieved at $(a, b, c, d)=(2,2,0,0)$ and cyclic permutations. The problem is an application of the tangent line trick: we observe the miraculous identity $$ \\frac{1}{b^{3}+4} \\geq \\frac{1}{4}-\\frac{b}{12} $$ since $12-(3-b)\\left(b^{3}+4\\right)=b(b+1)(b-2)^{2} \\geq 0$. Moreover, $$ a b+b c+c d+d a=(a+c)(b+d) \\leq\\left(\\frac{(a+c)+(b+d)}{2}\\right)^{2}=4 $$ Thus $$ \\sum_{\\mathrm{cyc}} \\frac{a}{b^{3}+4} \\geq \\frac{a+b+c+d}{4}-\\frac{a b+b c+c d+d a}{12} \\geq 1-\\frac{1}{3}=\\frac{2}{3} $$ Remark. The main interesting bit is the equality at $(a, b, c, d)=(2,2,0,0)$. This is the main motivation for trying tangent line trick, since a lower bound of the form $\\sum a(1-\\lambda b)$ preserves the unusual equality case above. Thus one takes the tangent at $b=2$ which miraculously passes through the point $(0,1 / 4)$ as well.", "metadata": {"resource_path": "USAMO/segmented/en-USAMO-2017-notes.jsonl"}}