Let P(x) = x6 + ax5 + bx4 + cx3 + dx2 + ex + f be a polynomial such that P(1)=1; P(2)=2; P(3)=3; P(4)=4; P(5)=5; P(6)=6 then find the value of P(7).
Dear student,
In order to solve this question, by inspecting the given values of P(x)
for different values of x from 1 to 6 , we can write a function
F(x) = P(x)-x = (x-1)(x-2)(x-3)(x-4)(x-5)(x-6)
since leading coeff. has to be 1 as P(x) = x6 + ax5 + bx4 + cx3 + dx2 + ex + f
=> p(7)-7 = 6!
=> P(7) = 727