One way to ensure this is to choose $n$ such that $f(x)$ has a rational root. By the Rational Root Theorem, any rational root of $f(x)$ must be an integer divisor of $n$. So, if we choose $n$ to be a perfect square, then $f(x)$ will have a rational root and thus
Show more…