#!/bin/sh set -eu PROOF=${PROOF:-/app/proof.md} mkdir -p "$(dirname -- "$PROOF")" cat > "$PROOF" <<'IMO_PROOF_1b86e7fbeb90b9c3bc8089b1bd84fc5325e511a4b78dc431a15018fcc769b3a2' Let $n>k\geq1$ be integers. Let $P(x)\in\mathbb{R}[x]$ be a polynomial of degree $n$ with no repeated roots and $P(0)\neq0$. Suppose that for any real numbers $a_{0},\ldots,a_{k}$ such that the polynomial $a_{k}x^{k}+\cdots+a_{1}x+a_{0}$ divides $P(x)$, the product $a_{0}a_{1}\ldots a_{k}$ is zero. Prove that $P(x)$ has a non-real root. By considering any $k+1$ of the roots of $P$, we may as well assume WLOG that $n=k+1$. Suppose that $P(x)=\left(x+r_{1}\right)\ldots\left(x+r_{n}\right)\in\mathbb{R}[x]$ has $P(0)\neq0$. Then the problem hypothesis is that each of the $n$ polynomials (of degree $n-1$ ) given by \[ \begin{aligned}P_{1}(x) & =\left(x+r_{2}\right)\left(x+r_{3}\right)\left(x+r_{4}\right)\ldots\left(x+r_{n}\right) P_{2}(x) & =\left(x+r_{1}\right)\left(x+r_{3}\right)\left(x+r_{4}\right)\ldots\left(x+r_{n}\right) P_{3}(x) & =\left(x+r_{1}\right)\left(x+r_{2}\right)\left(x+r_{4}\right)\ldots\left(x+r_{n}\right) & \vdots P_{n}(x) & =\left(x+r_{1}\right)\left(x+r_{2}\right)\left(x+r_{3}\right)\ldots\left(x+r_{n-1}\right) \end{aligned} \] has at least one coefficient equal to zero. (Explicitly, $P_{i}(x)=\frac{P(x)}{x+r_{i}}$.) We'll prove that at least one $r_{i}$ is not real. Obviously the leading and constant coefficients of each $P_{i}$ are nonzero, and there are $n-2$ other coefficients to choose between. So by pigeonhole principle, we may assume, say, that $P_{1}$ and $P_{2}$ share the position of a zero coefficient, say the $x^{k}$ one, for some $1\leq k