In the rational root theorem p and q should be