Given p(x)= x³¹+31
Using remainder theorem, we have x=-1 (from g(x))
So, putting x=-1 in p(x), we have
(-1)³¹+31= -1+31=30 is the remainder
When a negative integer is raised to an odd power, the answer is negative but when it is raised to an even power, the answer is positive.