since divisor is cubic therefore degree of remaider 2 or less then 2. let remainder be Ax
2+Bx+C
p(x)= (x-a)(x-b)(x-c).q(x)+Ax2+Bx+c [dividend= divisor x quotient + remainder]............1
put x=a,b,c in 1
p(a)= Aa2+Ba+C or a=Aa2+Ba+C.........2
p(b)= Ab2+Bb+C or b= Ab2+Bb+C..............3
p(c)=Ac2+Bc+c or c=Ac2+Bc+C.............4
subtract equation 2 from 3 & 3 from 4, find the value of A,B and C and get the required answer.
Thanks & Regards
Sunil Raikwar
askIITiann's faculty