Problem

Source: 2024 Israel TST Test 1 P3

Tags: algebra, polynomial, number theory, modular arithmetic, prime numbers



Let $n$ be a positive integer and $p$ be a prime number of the form $8k+5$. A polynomial $Q$ of degree at most $2023$ and nonnegative integer coefficients less than or equal to $n$ will be called "cool" if \[p\mid Q(2)\cdot Q(3) \cdot \ldots \cdot Q(p-2)-1.\]Prove that the number of cool polynomials is even.