# USA TSTST 2018 Solutions
United States of America - TST Selection Test
Evan Chen《陳誼廷》
$60^{\text {th }}$ IMO 2019 United Kingdom and $8^{\text {th }}$ EGMO 2019 Ukraine
## Contents
0 Problems ..... 2
1 Solutions to Day 1 ..... 4
1.1 TSTST 2018/1, proposed by Evan Chen, Yang Liu ..... 4
1.2 TSTST 2018/2, proposed by Victor Wang ..... 6
1.3 TSTST 2018/3, proposed by Yannick Yao, Evan Chen ..... 8
2 Solutions to Day 2 ..... 11
2.1 TSTST 2018/4, proposed by Ivan Borsenco ..... 11
2.2 TSTST 2018/5, proposed by Ankan Bhattacharya, Evan Chen ..... 13
2.3 TSTST 2018/6, proposed by Ray Li ..... 17
3 Solutions to Day 3 ..... 20
3.1 TSTST 2018/7, proposed by Ashwin Sah ..... 20
3.2 TSTST 2018/8, proposed by Ankan Bhattacharya, Evan Chen ..... 22
3.3 TSTST 2018/9, proposed by Linus Hamilton ..... 24
## §0 Problems
1. As usual, let $\mathbb{Z}[x]$ denote the set of single-variable polynomials in $x$ with integer coefficients. Find all functions $\theta: \mathbb{Z}[x] \rightarrow \mathbb{Z}$ such that for any polynomials $p, q \in$ $\mathbb{Z}[x]$,
- $\theta(p+1)=\theta(p)+1$, and
- if $\theta(p) \neq 0$ then $\theta(p)$ divides $\theta(p \cdot q)$.
2. In the nation of Onewaynia, certain pairs of cities are connected by one-way roads. Every road connects exactly two cities (roads are allowed to cross each other, e.g., via bridges), and each pair of cities has at most one road between them. Moreover, every city has exactly two roads leaving it and exactly two roads entering it.
We wish to close half the roads of Onewaynia in such a way that every city has exactly one road leaving it and exactly one road entering it. Show that the number of ways to do so is a power of 2 greater than 1 (i.e. of the form $2^{n}$ for some integer $n \geq 1$ ).
3. Let $A B C$ be an acute triangle with incenter $I$, circumcenter $O$, and circumcircle $\Gamma$. Let $M$ be the midpoint of $\overline{A B}$. Ray $A I$ meets $\overline{B C}$ at $D$. Denote by $\omega$ and $\gamma$ the circumcircles of $\triangle B I C$ and $\triangle B A D$, respectively. Line $M O$ meets $\omega$ at $X$ and $Y$, while line $C O$ meets $\omega$ at $C$ and $Q$. Assume that $Q$ lies inside $\triangle A B C$ and $\angle A Q M=\angle A C B$.
Consider the tangents to $\omega$ at $X$ and $Y$ and the tangents to $\gamma$ at $A$ and $D$. Given that $\angle B A C \neq 60^{\circ}$, prove that these four lines are concurrent on $\Gamma$.
4. For an integer $n>0$, denote by $\mathcal{F}(n)$ the set of integers $m>0$ for which the polynomial $p(x)=x^{2}+m x+n$ has an integer root.
(a) Let $S$ denote the set of integers $n>0$ for which $\mathcal{F}(n)$ contains two consecutive integers. Show that $S$ is infinite but
$$
\sum_{n \in S} \frac{1}{n} \leq 1
$$
(b) Prove that there are infinitely many positive integers $n$ such that $\mathcal{F}(n)$ contains three consecutive integers.
5. Let $A B C$ be an acute triangle with circumcircle $\omega$, and let $H$ be the foot of the altitude from $A$ to $\overline{B C}$. Let $P$ and $Q$ be the points on $\omega$ with $P A=P H$ and $Q A=Q H$. The tangent to $\omega$ at $P$ intersects lines $A C$ and $A B$ at $E_{1}$ and $F_{1}$ respectively; the tangent to $\omega$ at $Q$ intersects lines $A C$ and $A B$ at $E_{2}$ and $F_{2}$ respectively. Show that the circumcircles of $\triangle A E_{1} F_{1}$ and $\triangle A E_{2} F_{2}$ are congruent, and the line through their centers is parallel to the tangent to $\omega$ at $A$.
6. Let $S=\{1, \ldots, 100\}$, and for every positive integer $n$ define
$$
T_{n}=\left\{\left(a_{1}, \ldots, a_{n}\right) \in S^{n} \mid a_{1}+\cdots+a_{n} \equiv 0 \quad(\bmod 100)\right\}
$$
Determine which $n$ have the following property: if we color any 75 elements of $S$ red, then at least half of the $n$-tuples in $T_{n}$ have an even number of coordinates with red elements.
7. Let $n$ be a positive integer. A frog starts on the number line at 0 . Suppose it makes a finite sequence of hops, subject to two conditions:
- The frog visits only points in $\left\{1,2, \ldots, 2^{n}-1\right\}$, each at most once.
- The length of each hop is in $\left\{2^{0}, 2^{1}, 2^{2}, \ldots\right\}$. (The hops may be either direction, left or right.)
Let $S$ be the sum of the (positive) lengths of all hops in the sequence. What is the maximum possible value of $S$ ?
8. For which positive integers $b>2$ do there exist infinitely many positive integers $n$ such that $n^{2}$ divides $b^{n}+1$ ?
9. Show that there is an absolute constant $c<1$ with the following property: whenever $\mathcal{P}$ is a polygon with area 1 in the plane, one can translate it by a distance of $\frac{1}{100}$ in some direction to obtain a polygon $\mathcal{Q}$, for which the intersection of the interiors of $\mathcal{P}$ and $\mathcal{Q}$ has total area at most $c$.
## §1 Solutions to Day 1
## §1.1 TSTST 2018/1, proposed by Evan Chen, Yang Liu
Available online at https://aops.com/community/p10570981.
## Problem statement
As usual, let $\mathbb{Z}[x]$ denote the set of single-variable polynomials in $x$ with integer coefficients. Find all functions $\theta: \mathbb{Z}[x] \rightarrow \mathbb{Z}$ such that for any polynomials $p, q \in \mathbb{Z}[x]$,
- $\theta(p+1)=\theta(p)+1$, and
- if $\theta(p) \neq 0$ then $\theta(p)$ divides $\theta(p \cdot q)$.
The answer is $\theta: p \mapsto p(c)$, for each choice of $c \in \mathbb{Z}$. Obviously these work, so we prove these are the only ones. In what follows, $x \in \mathbb{Z}[x]$ is the identity polynomial, and $c=\theta(x)$.
【 First solution (Merlijn Staps). Consider an integer $n \neq c$. Because $x-n \mid p(x)-p(n)$, we have
$$
\theta(x-n)|\theta(p(x)-p(n)) \Longrightarrow c-n| \theta(p(x))-p(n) .
$$
On the other hand, $c-n \mid p(c)-p(n)$. Combining the previous two gives $c-n \mid$ $\theta(p(x))-p(c)$, and by letting $n$ large we conclude $\theta(p(x))-p(c)=0$, so $\theta(p(x))=p(c)$.
II Second solution. First, we settle the case $\operatorname{deg} p=0$. In that case, from the second property, $\theta(m)=m+\theta(0)$ for every integer $m \in \mathbb{Z}$ (viewed as a constant polynomial). Thus $m+\theta(0) \mid 2 m+\theta(0)$, hence $m+\theta(0) \mid-\theta(0)$, so $\theta(0)=0$ by taking $m$ large. Thus $\theta(m)=m$ for $m \in \mathbb{Z}$.
Next, we address the case of $\operatorname{deg} p=1$. We know $\theta(x+b)=c+b$ for $b \in \mathbb{Z}$. Now for each particular $a \in \mathbb{Z}$, we have
$$
c+k|\theta(x+k)| \theta(a x+a k)=\theta(a x)+a k \Longrightarrow c+k \mid \theta(a x)-a c .
$$
for any $k \neq-c$. Since this is true for large enough $k$, we conclude $\theta(a x)=a c$. Thus $\theta(a x+b)=a c+b$.
We now proceed by induction on $\operatorname{deg} p$. Fix a polynomial $p$ and assume it's true for all $p$ of smaller degree. Choose a large integer $n$ (to be determined later) for which $p(n) \neq p(c)$. We then have
$$
\left.\frac{p(c)-p(n)}{c-n}=\theta\left(\frac{p-p(n)}{x-n}\right) \right\rvert\, \theta(p-p(n))=\theta(p)-p(n)
$$
Subtracting off $c-n$ times the left-hand side gives
$$
\left.\frac{p(c)-p(n)}{c-n} \right\rvert\, \theta(p)-p(c)
$$
The left-hand side can be made arbitrarily large by letting $n \rightarrow \infty$, since $\operatorname{deg} p \geq 2$. Thus $\theta(p)=p(c)$, concluding the proof.
\ Authorship comments. I will tell you a story about the creation of this problem. Yang Liu and I were looking over the drafts of December and January TST in October 2017, and both of us had the impression that the test was too difficult. This sparked a non-serious suggestion that we should try to come up with a problem now that would be easy enough to use. While we ended up just joking about changing the TST, we did get this problem out of it.
Our idea was to come up with a functional equation that was different from the usual fare: at first we tried $\mathbb{Z}[x] \rightarrow \mathbb{Z}[x]$, but then I suggested the idea of using $\mathbb{Z}[x] \rightarrow \mathbb{Z}$, with the answer being the "evaluation" map. Well, what properties does that satisfy? One answer was $a-b \mid p(a)-p(b)$; this didn't immediately lead to anything, but eventually we hit on the form of the problem above off this idea. At first we didn't require $\theta(p) \neq 0$ in the bullet, but without the condition the problem was too easy, since 0 divides only itself; and so the condition was added and we got the functional equation.
I proposed the problem to USAMO 2018, but it was rejected (unsurprisingly; I think the problem may be too abstract for novice contestants). Instead it was used for TSTST, which I thought fit better.
## §1.2 TSTST 2018/2, proposed by Victor Wang
Available online at https://aops.com/community/p10570985.
## Problem statement
In the nation of Onewaynia, certain pairs of cities are connected by one-way roads. Every road connects exactly two cities (roads are allowed to cross each other, e.g., via bridges), and each pair of cities has at most one road between them. Moreover, every city has exactly two roads leaving it and exactly two roads entering it.
We wish to close half the roads of Onewaynia in such a way that every city has exactly one road leaving it and exactly one road entering it. Show that the number of ways to do so is a power of 2 greater than 1 (i.e. of the form $2^{n}$ for some integer $n \geq 1$ ).
In the language of graph theory, we have a simple digraph $G$ which is 2 -regular and we seek the number of sub-digraphs which are 1-regular. We now present two solution paths.
『 First solution, combinatorial. We construct a simple undirected bipartite graph $\Gamma$ as follows:
- the vertex set consists of two copies of $V(G)$, say $V_{\text {out }}$ and $V_{\text {in }}$; and
- for $v \in V_{\text {out }}$ and $w \in V_{\text {in }}$ we have an undirected edge $v w \in E(\Gamma)$ if and only if the directed edge $v \rightarrow w$ is in $G$.
Moreover, the desired sub-digraphs of $H$ correspond exactly to perfect matchings of $\Gamma$.
However the graph $\Gamma$ is 2 -regular and hence consists of several disjoint (simple) cycles of even length. If there are $n$ such cycles, the number of perfect matchings is $2^{n}$, as desired.
Remark. The construction of $\Gamma$ is not as magical as it may first seem.
Suppose we pick a road $v_{1} \rightarrow v_{2}$ to use. Then, the other road $v_{3} \rightarrow v_{2}$ is certainly not used; hence some other road $v_{3} \rightarrow v_{4}$ must be used, etc. We thus get a cycle of forced decisions until we eventually return to the vertex $v_{1}$.
These cycles in the original graph $G$ (where the arrows alternate directions) correspond to the cycles we found in $\Gamma$. It's merely that phrasing the solution in terms of $\Gamma$ makes it cleaner in a linguistic sense, but not really in a mathematical sense.
【 Second solution by linear algebra over $\mathbb{F}_{2}$ (Brian Lawrence). This is actually not that different from the first solution. For each edge $e$, we create an indicator variable $x_{e}$. We then require for each vertex $v$ that:
- If $e_{1}$ and $e_{2}$ are the two edges leaving $v$, then we require $x_{e_{1}}+x_{e_{2}} \equiv 1(\bmod 2)$.
- If $e_{3}$ and $e_{4}$ are the two edges entering $v$, then we require $x_{e_{3}}+x_{e_{4}} \equiv 1(\bmod 2)$.
We thus get a large system of equations. Moreover, the solutions come in natural pairs $\vec{x}$ and $\vec{x}+\overrightarrow{1}$ and therefore the number of solutions is either zero, or a power of two. So we just have to prove there is at least one solution.
For linear algebra reasons, there can only be zero solutions if some nontrivial linear combination of the equations gives the sum $0 \equiv 1$. So suppose we added up some subset $S$
of the equations for which every variable appeared on the left-hand side an even number of times. Then every variable that did appear appeared exactly twice; and accordingly we see that the edges corresponding to these variables form one or more even cycles as in the previous solution. Of course, this means $|S|$ is even, so we really have $0 \equiv 0(\bmod 2)$ as needed.
Remark. The author's original proposal contained a second part asking to show that it was not always possible for the resulting $H$ to be connected, even if $G$ was strongly connected. This problem is related to IMO Shortlist 2002 C6, which gives an example of a strongly connected graph which does have a full directed Hamiltonian cycle.
## §1.3 TSTST 2018/3, proposed by Yannick Yao, Evan Chen
Available online at https://aops.com/community/p10570988.
## Problem statement
Let $A B C$ be an acute triangle with incenter $I$, circumcenter $O$, and circumcircle $\Gamma$. Let $M$ be the midpoint of $\overline{A B}$. Ray $A I$ meets $\overline{B C}$ at $D$. Denote by $\omega$ and $\gamma$ the circumcircles of $\triangle B I C$ and $\triangle B A D$, respectively. Line $M O$ meets $\omega$ at $X$ and $Y$, while line $C O$ meets $\omega$ at $C$ and $Q$. Assume that $Q$ lies inside $\triangle A B C$ and $\angle A Q M=\angle A C B$.
Consider the tangents to $\omega$ at $X$ and $Y$ and the tangents to $\gamma$ at $A$ and $D$. Given that $\angle B A C \neq 60^{\circ}$, prove that these four lines are concurrent on $\Gamma$.
Henceforth assume $\angle A \neq 60^{\circ}$; we prove the concurrence. Let $L$ denote the center of $\omega$, which is the midpoint of minor arc $B C$.
Claim - Let $K$ be the point on $\omega$ such that $\overline{K L} \| \overline{A B}$ and $\overline{K C} \| \overline{A L}$. Then $\overline{K A}$ is tangent to $\gamma$, and we may put
$$
x=K A=L B=L C=L X=L Y=K X=K Y .
$$
Proof. By construction, $K A=L B=L C$. Also, $\overline{M O}$ is the perpendicular bisector of $\overline{K L}$ (since the chords $\overline{K L}, \overline{A B}$ of $\omega$ are parallel) and so $K X L Y$ is a rhombus as well.
Moreover, $\overline{K A}$ is tangent to $\gamma$ as well since
$$
\measuredangle K A D=\measuredangle K A L=\measuredangle K A C+\measuredangle C A L=\measuredangle K B C+\measuredangle A B K=\measuredangle A B C .
$$

Up to now we have not used the existence of $Q$; we henceforth do so.
Note that $Q \neq O$, since $\angle A \neq 60^{\circ} \Longrightarrow O \notin \omega$. Moreover, we have $\angle A O M=\angle A C B$ too. Since $O$ and $Q$ both lie inside $\triangle A B C$, this implies that $A, M, O, Q$ are concyclic. As $Q \neq O$ we conclude $\angle C Q A=90^{\circ}$.
The main claim is now:
Claim - Assuming $Q$ exists, the rhombus $L X K Y$ is a square. In particular, $\overline{K X}$ and $\overline{K Y}$ are tangent to $\omega$.
First proof of Claim, communicated by Milan Haiman. Observe that $\triangle Q L C \sim \triangle L O C$ since both triangles are isosceles and share a base angle. Hence, $C L^{2}=C O \cdot C Q$.
Let $N$ be the midpoint of $\overline{A C}$, which lies on $(A M O Q)$. Then,
$$
x^{2}=C L^{2}=C O \cdot C Q=C N \cdot C A=\frac{1}{2} C A^{2}=\frac{1}{2} L K^{2}
$$
where we have also used the fact $A Q O N$ is cyclic. Thus $L K=\sqrt{2} x$ and so the rhombus $L X K Y$ is actually a square.
Second proof of Claim, Evan Chen. Observe that $Q$ lies on the circle with diameter $\overline{A C}$, centered at $N$, say. This means that $O$ lies on the radical axis of $\omega$ and $(N)$, hence $\overline{N L} \perp \overline{C O}$ implying
$$
\begin{aligned}
N O^{2}+C L^{2} & =N C^{2}+L O^{2}=N C^{2}+O C^{2}=N C^{2}+N O^{2}+N C^{2} \\
\Longrightarrow x^{2} & =2 N C^{2} \\
\Longrightarrow x & =\sqrt{2} N C=\frac{1}{\sqrt{2}} A C=\frac{1}{\sqrt{2}} L K
\end{aligned}
$$
So $L X K Y$ is a rhombus with $L K=\sqrt{2} x$. Hence it is a square.
Third proof of Claim. A solution by trig is also possible. As in the previous claims, it suffices to show that $A C=\sqrt{2} x$.
First, we compute the length $C Q$ in two ways; by angle chasing one can show $\angle C B Q=$ $180^{\circ}-(\angle B Q C+\angle Q C B)=\frac{1}{2} \angle A$, and so
$$
\begin{aligned}
A C \sin B=C Q & =\frac{B C}{\sin \left(90^{\circ}+\frac{1}{2} \angle A\right)} \cdot \sin \frac{1}{2} \angle A \\
\Longleftrightarrow \sin ^{2} B & =\frac{\sin A \cdot \sin \frac{1}{2} \angle A}{\cos \frac{1}{2} \angle A} \\
\Longleftrightarrow \sin ^{2} B & =2 \sin ^{2} \frac{1}{2} \angle A \\
\Longleftrightarrow \sin B & =\sqrt{2} \sin \frac{1}{2} \angle A \\
\Longleftrightarrow 2 R \sin B & =\sqrt{2}\left(2 R \sin \frac{1}{2} \angle A\right) \\
\Longleftrightarrow A C & =\sqrt{2} x
\end{aligned}
$$
as desired (we have here used the fact $\triangle A B C$ is acute to take square roots).
It is interesting to note that $\sin ^{2} B=2 \sin ^{2} \frac{1}{2} \angle A$ can be rewritten as
$$
\cos A=\cos ^{2} B
$$
since $\cos ^{2} B=1-\sin ^{2} B=1-2 \sin ^{2} \frac{1}{2} \angle A=\cos A$; this is the condition for the existence of the point $Q$.
We finish by proving that
$$
K D=K A
$$
and hence line $\overline{K D}$ is tangent to $\gamma$. Let $E=\overline{B C} \cap \overline{K L}$. Then
$$
L E \cdot L K=L C^{2}=L X^{2}=\frac{1}{2} L K^{2}
$$
and so $E$ is the midpoint of $\overline{L K}$. Thus $\overline{M X O Y}, \overline{B C}, \overline{K L}$ are concurrent at $E$. As $\overline{D L} \| \overline{K C}$, we find that $D L C K$ is a parallelogram, so $K D=C L=K A$ as well. Thus $\overline{K D}$ and $\overline{K A}$ are tangent to $\gamma$.
Remark. The condition $\angle A \neq 60^{\circ}$ cannot be dropped, since if $Q=O$ the problem is not true.
On the other hand, nearly all solutions begin by observing $Q \neq O$ and then obtaining $\angle A Q O=90^{\circ}$. This gives a way to construct the diagram by hand with ruler and compass. One draws an arbitrary chord $\overline{B C}$ of a circle $\omega$ centered at $L$, and constructs $O$ as the circumcenter of $\triangle B L C$ (hence obtaining $\Gamma$ ). Then $Q$ is defined as the intersection of ray $C O$ with $\omega$, and $A$ is defined by taking the perpendicular line through $Q$ on the circle $\Gamma$. In this way we can draw a triangle $A B C$ satisfying the problem conditions.
\ Authorship comments. In the notation of the present points, the question originally sent to me by Yannick Yao read:
Circles $(L)$ and $(O)$ are drawn, meeting at $B$ and $C$, with $L$ on $(O)$. Ray $C O$ meets $(L)$ at $Q$, and $A$ is on $(O)$ such that $\angle C Q A=90^{\circ}$. The angle bisector of $\angle A O B$ meets $(L)$ at $X$ and $Y$. Show that $\angle X L Y=90^{\circ}$.
Notice the points $M$ and $K$ are absent from the problem. I am told this was found as part of the computer game "Euclidea". Using this as the starting point, I constructed the TSTST problem by recognizing the significance of that special point $K$, which became the center of attention.
## §2 Solutions to Day 2
## §2.1 TSTST 2018/4, proposed by Ivan Borsenco
Available online at https://aops.com/community/p10570991.
## Problem statement
For an integer $n>0$, denote by $\mathcal{F}(n)$ the set of integers $m>0$ for which the polynomial $p(x)=x^{2}+m x+n$ has an integer root.
(a) Let $S$ denote the set of integers $n>0$ for which $\mathcal{F}(n)$ contains two consecutive integers. Show that $S$ is infinite but
$$
\sum_{n \in S} \frac{1}{n} \leq 1
$$
(b) Prove that there are infinitely many positive integers $n$ such that $\mathcal{F}(n)$ contains three consecutive integers.
We prove the following.
Claim - The set $S$ is given explicitly by $S=\{x(x+1) y(y+1) \mid x, y>0\}$.
Proof. Note that $m, m+1 \in \mathcal{F}(n)$ if and only if there exist integers $q>p \geq 0$ such that
$$
\begin{aligned}
m^{2}-4 n & =p^{2} \\
(m+1)^{2}-4 n & =q^{2}
\end{aligned}
$$
Subtraction gives $2 m+1=q^{2}-p^{2}$, so $p$ and $q$ are different parities. We can thus let $q-p=2 x+1, q+p=2 y+1$, where $y \geq x \geq 0$ are integers. It follows that
$$
\begin{aligned}
4 n & =m^{2}-p^{2} \\
& =\left(\frac{q^{2}-p^{2}-1}{2}\right)^{2}-p^{2}=\left(\frac{q^{2}-p^{2}-1}{2}-p\right)\left(\frac{q^{2}-p^{2}-1}{2}+p\right) \\
& =\frac{q^{2}-\left(p^{2}+2 p+1\right)}{2} \cdot \frac{q^{2}-\left(p^{2}-2 p+1\right)}{2} \\
& =\frac{1}{4}(q-p-1)(q-p+1)(q+p-1)(q+p+1)=\frac{1}{4}(2 x)(2 x+2)(2 y)(2 y+2) \\
\Longrightarrow n & =x(x+1) y(y+1) .
\end{aligned}
$$
Since $n>0$ we require $x, y>0$. Conversely, if $n=x(x+1) y(y+1)$ for positive $x$ and $y$ then $m=\sqrt{p^{2}+4 n}=\sqrt{(y-x)^{2}+4 n}=2 x y+x+y=x(y+1)+(x+1) y$ and $m+1=2 x y+x+y+1=x y+(x+1)(y+1)$. Thus we conclude the main claim.
From this, part (a) follows as
$$
\sum_{n \in S} n^{-1} \leq\left(\sum_{x \geq 1} \frac{1}{x(x+1)}\right)\left(\sum_{y \geq 1} \frac{1}{y(y+1)}\right)=1 \cdot 1=1
$$
As for (b), retain the notation in the proof of the claim. Now $m+2 \in S$ if and only if $(m+2)^{2}-4 n$ is a square, say $r^{2}$. Writing in terms of $p$ and $q$ as parameters we find
$$
\begin{aligned}
r^{2} & =(m+2)^{2}-4 n=m^{2}-4 n+4 m+4=p^{2}+2+2(2 m+1) \\
& =p^{2}+2\left(q^{2}-p^{2}\right)+2=2 q^{2}-p^{2}+2 \\
\Longleftrightarrow 2 q^{2}+2 & =p^{2}+r^{2} \quad(\dagger)
\end{aligned}
$$
with $q>p$ of different parity and $n=\frac{1}{16}(q-p-1)(q-p+1)(q+p-1)(q+p+1)$.
Note that (by taking modulo 8 ) we have $q \not \equiv p \equiv r(\bmod 2)$, and so there are no parity issues and we will always assume $p2$ do there exist infinitely many positive integers $n$ such that $n^{2}$ divides $b^{n}+1$ ?
This problem is sort of the union of IMO 1990/3 and IMO 2000/5.
The answer is any $b$ such that $b+1$ is not a power of 2 . In the forwards direction, we first prove more carefully the following claim.
Claim - If $b+1$ is a power of 2 , then the only $n$ which is valid is $n=1$.
Proof. Assume $n>1$ and let $p$ be the smallest prime dividing $n$. We cannot have $p=2$, since then $4 \mid b^{n}+1 \equiv 2(\bmod 4)$. Thus,
$$
b^{2 n} \equiv 1 \quad(\bmod p)
$$
so the order of $b(\bmod p)$ divides $\operatorname{gcd}(2 n, p-1)=2$. Hence $p \mid b^{2}-1=(b-1)(b+1)$.
But since $b+1$ was a power of 2 , this forces $p \mid b-1$. Then $0 \equiv b^{n}+1 \equiv 2(\bmod p)$, contradiction.
On the other hand, suppose that $b+1$ is not a power of 2 (and that $b>2$ ). We will inductively construct an infinite sequence of distinct primes $p_{0}, p_{1}, \ldots$, such that the following two properties hold for each $k \geq 0$ :
- $p_{0}^{2} \ldots p_{k-1}^{2} p_{k} \mid b^{p_{0} \ldots p_{k-1}}+1$,
- and hence $p_{0}^{2} \ldots p_{k-1}^{2} p_{k}^{2} \mid b^{p_{0} \ldots p_{k-1} p_{k}}+1$ by exponent lifting lemma.
This will solve the problem.
Initially, let $p_{0}$ be any odd prime dividing $b+1$. For the inductive step, we contend there exists an odd prime $q \notin\left\{p_{0}, \ldots, p_{k}\right\}$ such that $q \mid b^{p_{0} \ldots p_{k}}+1$. Indeed, this follows immediately by Zsigmondy theorem since $p_{0} \ldots p_{k}$ divides $b^{p_{0} \ldots p_{k-1}}+1$. Since $\left(b^{p_{0} \ldots p_{k}}\right)^{q} \equiv b^{p_{0} \ldots p_{k}}(\bmod q)$, it follows we can then take $p_{k+1}=q$. This finishes the induction.
To avoid the use of Zsigmondy, one can instead argue as follows: let $p=p_{k}$ for brevity, and let $c=b^{p_{0} \ldots p_{k-1}}$. Then $\frac{\frac{c}{}^{p}+1}{c+1}=c^{p-1}-c^{p-2}+\cdots+1$ has GCD exactly $p$ with $c+1$. Moreover, this quotient is always odd. Thus as long as $c^{p}+1>p \cdot(c+1)$, there will be some new prime dividing $c^{p}+1$ but not $c+1$. This is true unless $p=3$ and $c=2$, but we assumed $b>2$ so this case does not appear.
Remark (On new primes). In going from $n^{2} \mid b^{n}+1$ to $(n q)^{2} \mid b^{n q}+1$, one does not necessarily need to pick a $q$ such that $q \nmid n$, as long as $\nu_{q}\left(n^{2}\right)<\nu_{q}\left(b^{n}+1\right)$. In other words it suffices to just check that $\frac{b^{n}+1}{n^{2}}$ is not a power of 2 in this process.
However, this calculation is a little more involved with this approach. One proceeds by noting that $n$ is odd, hence $\nu_{2}\left(b^{n}+1\right)=\nu_{2}(b+1)$, and thus $\frac{b^{n}+1}{n^{2}}=2^{\nu_{2}(b+1)} \leq b+1$, which is a little harder to bound than the analogous $c^{p}+1>p \cdot(c+1)$ from the previous solution.
\ Authorship comments. I came up with this problem by simply mixing together the main ideas of IMO 1990/3 and IMO 2000/5, late one night after a class. On the other hand, I do not consider it very original; it is an extremely "routine" number theory problem for experienced contestants, using highly standard methods. Thus it may not be that interesting, but is a good discriminator of understanding of fundamentals.
IMO 1990/3 shows that if $b=2$, then the only $n$ which work are $n=1$ and $n=3$. Thus $b=2$ is a special case and for this reason the problem explicitly requires $b>2$.
An alternate formulation of the problem is worth mentioning. Originally, the problem statement asked whether there existed $n$ with at least 3 (or 2018, etc.) prime divisors, thus preventing the approach in which one takes a prime $q$ dividing $\frac{b^{n}+1}{n^{2}}$. Ankan Bhattacharya suggested changing it to "infinitely many $n$ ", which is more natural.
These formulations are actually not so different though. Explicitly, suppose $k^{2} \mid b^{k}+1$ and $p \mid b^{k}+1$. Consider any $k \mid n$ with $n^{2} \mid b^{n}+1$, and let $p$ be an odd prime dividing $b^{k}+1$. Then $2 \nu_{p}(n) \leq \nu_{p}\left(b^{n}+1\right)=\nu_{p}(n / k)+\nu_{p}\left(b^{k}+1\right)$ and thus
$$
\nu_{p}(n / k) \leq \nu_{p}\left(\frac{b^{k}+1}{k^{2}}\right) .
$$
Effectively, this means we can only add each prime a certain number of times.
## §3.3 TSTST 2018/9, proposed by Linus Hamilton
Available online at https://aops.com/community/p10571003.
## Problem statement
Show that there is an absolute constant $c<1$ with the following property: whenever $\mathcal{P}$ is a polygon with area 1 in the plane, one can translate it by a distance of $\frac{1}{100}$ in some direction to obtain a polygon $\mathcal{Q}$, for which the intersection of the interiors of $\mathcal{P}$ and $\mathcal{Q}$ has total area at most $c$.
The following solution is due to Brian Lawrence. We will prove the result with the generality of any measurable set $\mathcal{P}$ (rather than a polygon). For a vector $v$ in the plane, write $\mathcal{P}+v$ for the translate of $\mathcal{P}$ by $v$.
Suppose $\mathcal{P}$ is a polygon of area 1 , and $\varepsilon>0$ is a constant, such that for any translate $\mathcal{Q}=\mathcal{P}+v$, where $v$ has length exactly $\frac{1}{100}$, the intersection of $\mathcal{P}$ and $\mathcal{Q}$ has area at least $1-\varepsilon$. The problem asks us to prove a lower bound on $\varepsilon$.
## Lemma
Fix a sequence of $n$ vectors $v_{1}, v_{2}, \ldots, v_{n}$, each of length $\frac{1}{100}$. A grasshopper starts at a random point $x$ of $\mathcal{P}$, and makes $n$ jumps to $x+v_{1}+\cdots+v_{n}$. Then it remains in $\mathcal{P}$ with probability at least $1-n \varepsilon$.
Proof. In order for the grasshopper to leave $\mathcal{P}$ at step $i$, the grasshopper's position before step $i$ must be inside the difference set $\mathcal{P} \backslash\left(\mathcal{P}-v_{i}\right)$. Since this difference set has area at most $\varepsilon$, the probability the grasshopper leaves $\mathcal{P}$ at step $i$ is at most $\varepsilon$. Summing over the $n$ steps, the probability that the grasshopper ever manages to leave $\mathcal{P}$ is at most $n \varepsilon$.
## Corollary
Fix a vector $w$ of length at most 8. A grasshopper starts at a random point $x$ of $\mathcal{P}$, and jumps to $x+w$. Then it remains in $\mathcal{P}$ with probability at least $1-800 \varepsilon$.
Proof. Apply the previous lemma with 800 jumps. Any vector $w$ of length at most 8 can be written as $w=v_{1}+v_{2}+\cdots+v_{800}$, where each $v_{i}$ has length exactly $\frac{1}{100}$.
Now consider the process where we select a random starting point $x \in \mathcal{P}$ for our grasshopper, and a random vector $w$ of length at most 8 (sampled uniformly from the closed disk of radius 8 ). Let $q$ denote the probability of staying inside $\mathcal{P}$ we will bound $q$ from above and below.
- On the one hand, suppose we pick $w$ first. By the previous corollary, $q \geq 1-800 \varepsilon$ (irrespective of the chosen $w$ ).
- On the other hand, suppose we pick $x$ first. Then the possible landing points $x+w$ are uniformly distributed over a closed disk of radius 8 , which has area $64 \pi$. The probability of landing in $\mathcal{P}$ is certainly at most $\frac{[\mathcal{P}]}{64 \pi}$.
Consequently, we deduce
$$
1-800 \varepsilon \leq q \leq \frac{[\mathcal{P}]}{64 \pi} \Longrightarrow \varepsilon>\frac{1-\frac{[\mathcal{P}]}{64 \pi}}{800}>0.001
$$
as desired.
Remark. The choice of 800 jumps is only for concreteness; any constant $n$ for which $\pi(n / 100)^{2}>1$ works. I think $n=98$ gives the best bound following this approach.