1: \begin{abstract}
2: Let $f(x)$ be a monic polynomial in $\mathbb{Z}[x]$ with no
3: rational roots but with roots in $\mathbb{Q}_p$ for all $p$, or
4: equivalently, with roots mod $n$ for all $n$. It is known that
5: $f(x)$ cannot be irreducible but can be a product of two or more
6: irreducible polynomials, and that if $f(x)$ is a product of $m>1$
7: irreducible polynomials, then its Galois group must be ``$m$-coverable", i.e. a union of
8: conjugates of $m$ proper subgroups, whose total intersection is trivial. We are thus led to a variant of the inverse Galois problem: given an $m$-coverable finite group $G$, find a Galois realization of $G$ over the rationals $\mathbb{Q}$ by a polynomial $f(x) \in \mathbb{Z}[x]$ which is a product of $m$ nonlinear irreducible factors (in $\mathbb{Q}[x]$) such that $f(x)$ has a root in $\mathbb{Q}_p$ for all $p$.
9: The minimal value $m=2$ is
10: of special interest. It is known that the symmetric group $S_n$ is $2$-coverable if and only if $3\leq n\leq6$, and the alternating group $A_n$ is $2$-coverable if and only if $4\leq n\leq8$.
11: In this paper we solve the above variant of the inverse Galois problem for the $2$-coverable symmetric and alternating groups, and exhibit an explicit polynomial for each group, with the help of the software packages MAGMA, PARI and GAP. % The problem of finding infinitely many such realizations for these groups remains open.
12:
13:
14: \end{abstract}