I know that if $n$ is prime then $G=\operatorname{Gal}(\mathbb{Q}(\zeta_n)/\mathbb{Q}) \simeq \Bbb Z_{n-1}$
But I am unsure what $G$ is when $n$ is not prime. For example when $n=4$:
$\operatorname{Gal}(\mathbb{Q}(\zeta_4)/\mathbb{Q}) \simeq \Bbb Z_4^*$
What is the structure of the group $\Bbb Z_4^*$? I am guessing it is cyclic, but I do not know how to explicitly find its generators.
Also, what is the basis of $\mathbb{Q}(\zeta_4)$ over $\mathbb{Q}$? Is it $\{\zeta, ..., \zeta^4\}$?
For general $n$, the units of the ring $\Bbb Z/n\Bbb Z$, which I’ll write $(\Bbb Z/n\Bbb Z)^*$, do not form a cyclic group. For, when $n=p_1^{e_1}p_2^{e_2}\cdots p_m^{e_m}$, then $(\Bbb Z/n\Bbb Z)^*\cong(\Bbb Z/p_1^{e_1}\Bbb Z)^*\oplus(\Bbb Z/p_2^{e_2}\Bbb Z)^*\oplus\cdots\oplus(\Bbb Z/p_m^{e_m}\Bbb Z)^*$, the $p_i$ all being prime.
For odd primes $p$, $(\Bbb Z/p^e\Bbb Z)^*$ is always cyclic, but the structure of $(\Bbb Z/2^e\Bbb Z)^*$ is $C_2\oplus C_{2^{e-2}}$, where by $C_m$ I mean an abstract cyclic group of order $m$. (The explanation of why these groups have this structure is a story for another night.)