Let \(d\) be an integer \(\geqq 3\). Prove the existence of an irreducible
polynomial of degree \(d\) over Q. having precisely \(d-2\) real roots, and a pair
of complex conjugate roots. Use the following construction. Let \(b_{1},
\ldots, b_{\ell-2}\) be distinct integers, and let \(a\) be an integer \(>0\). Let
$$
g(X)=\left(X^{2}+a\right)\left(X-b_{1}\right)
\cdots\left(X-b_{d-1}\right)=X^{d}+c_{t-1} X^{d-1}+\cdots+c_{0}
$$
Observe that \(c_{i} \in \mathbf{Z}\) for all \(i\). Let \(p\) be a prime number,
and let
$$g_{n}(X)=g(X)+\frac{p}{p^{d n}}$$
so that \(g_{n}\) converges to \(g\) (i.e. the coefficients of \(g_{n}\) converge to
the coefficients of \(g\) ).
(a) Prove that \(g_{n}\), has precisely \(d-2\) real roots for \(n\) sufficiently
large. (You may use a bit of calculus, or use whatever method you want.)
(b) Prove that \(g_{n}\) is irreducible over \(\mathbf{Q}\).