[math-fun] Rational-coefficient polynomial, applied to integers