Apply remainder theorem
Determine which of the following polynomials has (x+1) as a factor: (i) x3+x2+x+1 (ii) x4+x3+x2+x+1