Division of polynomials by monomials