State division algorithm for polynomials.

The Division algorithm for polynomials is as follows:

If we have two polynomials f (x) and g (x) and the degree of f (x) is greater than the degree of g (x), where g (x) 0 than there exist two unique polynomials q (x) and r (x) such that:

f (x) = g (x)× q(x) + r(x)

where r (x) – 0 or degree of r (x) < degree of g (x)