Factoring Monomials from a Polynomial