Now using reminder theorem,
D=d×Q+r
(x3+x2+x+1)=(x2+32x+74)(x−12)+158
Using the remainder theorem, find the remainder, when p(x) is divided by g(x), where (px)=x3−2x2−8x−1,g(x)=x+1