Note that P(a) =a, P(b) = b, and P(c) = c.
Hence if we consider the polynomial Q(x) = P(x) – x, we see that Q(a) = Q(b) = Q(c) = 0. By Factor theorem we conclude (x-a)(x-b)(x-c) is a factor of Q(x).
i.e. Q(x) = (x-a)(x-b)(x-c) R(x) for some polynomial R(x).
so that P(x) – x = (x-a)(x-b)(x-c) R(x) or
P(x) = (x-a)(x-b)(x-c) R(x)+x
From the above eqn is evident that when P(x) is divided by (x-a)(x-b)(x-c), the remainder is x