Determin all integers for which $(\mathbb{Z}/n\mathbb{Z})^*$ is cyclic of order 4.
What I did:
I know that $|(\mathbb{Z}/n\mathbb{Z})^*| = \varphi(n)$ the Euler function. but how to solve $\varphi(n)=4$?
Many thanks.
Determin all integers for which $(\mathbb{Z}/n\mathbb{Z})^*$ is cyclic of order 4.
What I did:
I know that $|(\mathbb{Z}/n\mathbb{Z})^*| = \varphi(n)$ the Euler function. but how to solve $\varphi(n)=4$?
Many thanks.
You already know that $\#(\mathbb{Z}/n\mathbb{Z})^\times=\phi(n)$, where $\phi$ is the Euler-totient function. In general, I am unaware if there is any known direct 'inverse' for the Euler-totient function (whatever that means since the function is not injective). But this is an area of some research, see this paper.
However, $\lim_{n \to \infty} \phi(n)=\infty$ and $\phi(n)$ is 'eventually' increasing (in that the function takes the same value finitely many times). So one would only need to test a few integers $n$. See the table here to see that $\phi(n)=4$ only for $n \in \{5,8,10,12\}$.