2$.
Remark (Author comments). The author provides the following remarks.
- Even though the flood can be stopped when $\alpha=2+\varepsilon$, it takes a very long time to do that. Starting from a single flooded cell, the strategy I have outlined requires $\Theta\left(1 / \varepsilon^{2}\right)$ days. Starting from several flooded cells contained within an area of diameter $D$, it takes $\Theta\left(D / \varepsilon^{2}\right)$ days. I do not know any strategies that require fewer days than that.
- There is a gaping chasm between $\alpha \leq 2$ and $\alpha>2$. Since $\alpha \leq 2$ does not suffice even when only one cell is flooded in the beginning, there are in fact no initial
configurations at all for which it is sufficient. On the other hand, $\alpha>2$ works for all initial configurations.
- The second half of the solution essentially estimates the perimeter of a polyomino in terms of its diameter (where diameter is measured entirely within the polyomino).
It appears that this has not been done before, or at least I was unable to find any reference for it. I did find tons of references where the perimeter of a polyomino is estimated in terms of its area, but nothing concerning the diameter.
My argument is a formalisation of the intuition that if $P$ is any shortest path within some weirdly-shaped polyomino, then the boundary of that polyomino must hug $P$ rather closely so that $P$ cannot be shortened.
## §2 Solutions to Day 2
## §2.1 USA TST 2020/4, proposed by Zack Chroman, Mehtaab Sawhney
Available online at https://aops.com/community/p13913804.
## Problem statement
For a finite simple graph $G$, we define $G^{\prime}$ to be the graph on the same vertex set as $G$, where for any two vertices $u \neq v$, the pair $\{u, v\}$ is an edge of $G^{\prime}$ if and only if $u$ and $v$ have a common neighbor in $G$. Prove that if $G$ is a finite simple graph which is isomorphic to $\left(G^{\prime}\right)^{\prime}$, then $G$ is also isomorphic to $G^{\prime}$.
We say a vertex of a graph is fatal if it has degree at least 3, and some two of its neighbors are not adjacent.
Claim - The graph $G^{\prime}$ has at least as many triangles as $G$, and has strictly more if $G$ has any fatal vertices.
Proof. Obviously any triangle in $G$ persists in $G^{\prime}$. Moreover, suppose $v$ is a fatal vertex of $G$. Then the neighbors of $G$ will form a clique in $G^{\prime}$ which was not there already, so there are more triangles.
Thus we only need to consider graphs $G$ with no fatal vertices. Looking at the connected components, the only possibilities are cliques (including single vertices), cycles, and paths. So in what follows we restrict our attention to graphs $G$ only consisting of such components.
Remark (Warning). Beware: assuming $G$ is connected loses generality. For example, it could be that $G=G_{1} \sqcup G_{2}$, where $G_{1}^{\prime} \cong G_{2}$ and $G_{2}^{\prime} \cong G_{1}$.
First, note that the following are stable under the operation:
- an isolated vertex,
- a cycle of odd length, or
- a clique with at least three vertices.
In particular, $G \cong G^{\prime \prime}$ holds for such graphs.
On the other hand, cycles of even length or paths of nonzero length will break into more connected components. For this reason, a graph $G$ with any of these components will not satisfy $G \cong G^{\prime \prime}$ because $G^{\prime}$ will have strictly more connected components than $G$, and $G^{\prime \prime}$ will have at least as many as $G^{\prime}$.
Therefore $G \cong G^{\prime \prime}$ if and only if $G$ is a disjoint union of the three types of connected components named earlier. Since $G \cong G^{\prime}$ holds for such graphs as well, the problem statement follows right away.
Remark. Note that the same proof works equally well for an arbitrary number of iterations $G^{\prime \prime} \ldots{ }^{\prime \prime} \cong G$, rather than just $G^{\prime \prime} \cong G$.
Remark. The proposers included a variant of the problem where given any graph $G$, the operation stabilized after at most $O(\log n)$ operations, where $n$ was the number of vertices of $G$.
## §2.2 USA TST 2020/5, proposed by Carl Schildkraut
Available online at https://aops.com/community/p13913769.
## Problem statement
Find all integers $n \geq 2$ for which there exists an integer $m$ and a polynomial $P(x)$ with integer coefficients satisfying the following three conditions:
- $m>1$ and $\operatorname{gcd}(m, n)=1$;
- the numbers $P(0), P^{2}(0), \ldots, P^{m-1}(0)$ are not divisible by $n$; and
- $P^{m}(0)$ is divisible by $n$.
Here $P^{k}$ means $P$ applied $k$ times, so $P^{1}(0)=P(0), P^{2}(0)=P(P(0))$, etc.
The answer is that this is possible if and only if there exists primes $p^{\prime}0 \mid P^{e}(0) \equiv 0 \bmod N\right\}
$$
where we set $\min \varnothing=0$ by convention. Note that in general we have
$$
\operatorname{zord}(P \bmod N)=\operatorname{lcm}_{q \mid N}(\operatorname{zord}(P \bmod q))
$$
where the index runs over all prime powers $q \mid N$ (by Chinese remainder theorem). This will be used in both directions.
Construction: First, we begin by giving a construction. The idea is to first use the following prime power case.
Claim - Let $p^{e}$ be a prime power, and $1 \leq k