By remainder theorem, P(a) = a, and P(c) =c . Let the required reminder be R (x). Then,
P(x)= (x-a)(x-b)(x-c)Q(x)+R(x)
Where R(x) is a polynomial of degree at most 2.
We get R(a) = a, R(b) = b and R(c) = c.So, the equation R(x)- x = 0 has three roots a, b, and c, But its degree is at most 2. So, R(x) must be a zero polynomial (or identity). Hence, R(x) = x.