What is remainder theorem
Have a look at: http://www.mathsisfun.com/algebra/polynomials-remainder-factor.html