# A functional equation

Level pending

Let $$k$$ be a positive integer and $$P(x)$$ be a polynomial that satisfies $P(P(x))=(P(x))^{k}$ for all real $$x$$. If the number of such polynomials is $$\frac{k}{2014}$$, find the sum of distinct prime factors of $$k$$.

×