Solution:
Since P(P(1))=P(P(2))=0, but P(1)=P(2), it follows that P(1)=1+b+c and P(2)=4+2b+c are the distinct roots of the polynomial P(x). Thus, P(x) factors:
P(x)=x2+bx+c=(x−(1+b+c))(x−(4+2b+c))=x2−(5+3b+2c)x+(1+b+c)(4+2b+c)
It follows that −(5+3b+2c)=b, and that c=(1+b+c)(4+2b+c). From the first equation, we find 2b+c=−25. Plugging in c=−25−2b into the second equation yields
−25−2b=(1+(−25)−b)(4+(−25))
Solving this equation yields b=−21, so c=−25−2b=−23.
Therefore,
P(0)=02+b⋅0+c=c=−23.