This question was asked in Ex 2.3, 4

Find the remainder when x3 3x2 3x 1is divided by x pai

Riyaz Riyaz's image