Let $k$ be a positive integer. Find all polynomials with real coefficients which satisfy the equation $$P(P(x))=\left(P(x)\right)^k.$$
I simply don't even know how to think about this problem.
I've tried simple stuff just to get my head on the problem.
For example for $P(x)=x^n$ I have $P(P(x))=(P(x))^n$, and I think that any polynomial $P(x)=x^n+x^{n-1} +\cdots +c$ can't be a solution as I would have $P(x)=P(x)q_1(x) +R $.
After that I simply stare at the problem.
Can you guys give some help ?
Note: I would like to understand how to tackle these kind of problems, so I would be really grateful if you would explain the thinking process behind the solution. (This is optional, so feel free to give an answer as you prefer.)
Thanks in advance.