Divide polynomials with remainders