Problem

Source: 3rd SAFEST Olympiad (July 2021) p5, South African - Estonian IMO teams

Tags: algebra, polynomial, complex numbers



Find all polynomials $P$ with real coefficients having no repeated roots, such that for any complex number $z$, the equation $zP(z) = 1$ holds if and only if $P(z-1)P(z + 1) = 0$. Remark: Remember that the roots of a polynomial are not necessarily real numbers.