Let $\left(\widehat{\mathbb Z}\right)^\times=\prod_p{\mathbb Z}_p^\times$ be the unit group of the ring $\widehat{\mathbb{Z}}$, which is the profinite completion of $\mathbb Z$. We give it the product topology. For a given prime $p$ let $$ f_p=(1,p)\in\mathbb{Z}_p^\times\ \times\ \prod_{q\ne p}\mathbb{Z}_q^\times. $$ Is the group generated by all $f_p$ dense in $\left(\widehat{\mathbb{Z}}\right)^\times$?
1 Answer
More is true: the generating set $\{f_p:\text{$p$ is a prime}\}$ is dense in $\smash{\widehat{\mathbb Z}}^\times$. To see this, it suffices to show that, for any finite set of primes $S$, the projection of the above generating set onto $\prod_{q\in S}\mathbb{Z}_q^\times$ is dense. Let $t$ be a positive integer whose prime factors are from $S$, and let $a\in(\mathbb{Z}/t\mathbb{Z})^\times$ be a reduced residue class modulo $t$. Then it suffices to show that there is a prime $p\notin S$ such that $p\equiv a\pmod{t}$. Such a prime exists by Dirichlet's theorem on primes in arithmetic progressions, and we are done.
\widehat{\mathbb Z}^\times
puts the\times
too high. To get it at the proper level, you can\smash
the\widehat{\mathbb Z}
to force TeX to forget its height: $\smash{\widehat{\mathbb Z}}^\times$\smash{\widehat{\mathbb Z}}^\times
. I have edited accordingly. $\endgroup$