Let $n$ be a positive integer and let $d$ be some divisor of $n$. Consider the group of units modulo $n$, which we shall denote by $U(n)$. Likewise, denote the group of units modulo $d$ by $U(d)$.
Consider the homomorphism $f:\ U(n)\rightarrow U(d)$ given by reducing modulo $d$, $$f(u) = u \pmod{d}$$ I wish to show that this map is surjective. Can anyone supply a simple proof of this fact?
Alternatively, it is sufficient to prove that the set $$S = \left\{u\in U(n) \mid u\equiv 1 \pmod{d} \right\}$$ has cardinality $|S| = \phi(n)/\phi(d)$ where $\phi$ is the totient function.