Example 8 : Find the remainder obtained on dividing p(x) = x^3 + 1 by x + 1.