Problem

Source: 10th European Mathematical Cup - Problem S4

Tags: polynomial, algebra, European Mathematical Cup, emc



Find all positive integers $d$ for which there exist polynomials $P(x)$ and $Q(x)$ with real coefficients such that degree of $P$ equals $d$ and $$P(x)^2+1=(x^2+1)Q(x)^2.$$