#!/bin/sh set -eu PROOF=${PROOF:-/app/proof.md} mkdir -p "$(dirname -- "$PROOF")" cat > "$PROOF" <<'IMO_PROOF_a9aad31a8bdf1311c6dc42d44c11086264b96b4610a037c6d6afa3a8fbd3831c' Checking the possibility of recursive construction using induction Let's assume that two polynomials $P_{0}$ and $Q_{0}$ satisfy the polynomial equation given in the problem as follows: \[ P_{0}\left(Q_{0}(x)-x-1\right)=Q_{0}\left(P_{0}(x)\right) \] For a positive integer $n$, let's define the polynomial $P_{n}(x)$ recursively as follows: \[ P_{n}(x)=P_{n-1}\left(Q_{0}(x)-x-1\right); n \geq 1 \] Let's prove by mathematical induction that for any non-negative integer $n$, $(P_{n}, Q_{0})$ also satisfies the given polynomial equation. *(1)* First, we have already confirmed that the case $n=0$ holds. *(2)* Next, let's assume that the case $n=k$ holds, i.e., assume that $(P_{k}, Q_{0})$ is also a solution to the polynomial equation. Then, by the induction hypothesis and the recursive formula for $P_{n}$ defined above, we have \[ P_{k+1}(x)=P_{k}\left(Q_{0}(x)-x-1\right)=Q_{0}\left(P_{k}(x)\right) \] Now, substituting $x=Q_{0}(y)-y-1$, we get \[ P_{k+1}\left(Q_{0}(y)-y-1\right)=Q_{0}\left(P_{k}\left(Q_{0}(y)-y-1\right)\right)=Q_{0}\left(P_{k+1}(y)\right) \] Therefore, we can see that the proposition holds for the case $n=k+1$. Initialization As we saw in , if we find an initial solution $(P_{0}, Q_{0})$, we can continuously generate solutions. In particular, looking at the recursive formula for $P_{n}$, if the degree of $Q_{0}$ is at least 2, the degree of $P_{n}$ is twice the degree of $P_{n-1}$, which continuously increases. Therefore, by repeating this process, we can eventually make the degree of $P_{n}$ greater than 2024. Therefore, to find an initial solution, let's first try $P_{0}$ as a linear polynomial and $Q_{0}$ as a quadratic polynomial. It is easy to see that there are no possible cases. If both $P_{0}$ and $Q_{0}$ are quadratic polynomials, substituting $P_{0}(x)=ax^{2}+bx+c$, $Q_{0}(x)=ux^{2}+vx+w$ and using the method of undetermined coefficients, we find that \[ P_{0}(x)=x^{2}+\frac{5}{2} x, \quad Q_{0}(x)=x^{2}+\frac{7}{2} x+\frac{3}{2} \] is a solution to the polynomial equation $P_{0}\left(Q_{0}(x)-x-1\right)=Q_{0}\left(P_{0}(x)\right)$. Now, repeating based on this initial solution, $(P_{n}, Q_{0})$ is also a solution for any $n$, and in particular, the degree of $P_{11}$ is 2048, which is greater than 2024. IMO_PROOF_a9aad31a8bdf1311c6dc42d44c11086264b96b4610a037c6d6afa3a8fbd3831c