Solving polynomials with unknown constant terms