Problem

Source: Iran 3rd round 2017 first Algebra exam

Tags: algebra, polynomial, Iran, IranMO



Find all polynomials $P(x)$ and $Q(x)$ with real coefficients such that $$P(Q(x))=P(x)^{2017}$$for all real numbers $x$.