Problem

Source: 2017 Thailand October Camp 2.1

Tags: polynomial, algebra



Find all polynomials $P(x)$ with real coefficients satisfying: $P(2017) = 2016$ and $$(P(x)+1)^2=P(x^2+1).$$