Find the remainder by using remainder theorem when polynomial x3−3x2+x+1 is divided by x−1.
Find the remainder when the polynomial x3+3x2+3x+1 is divided by (x−12).