I am asked to show explicitly all homomorphisms $h: C_q \to Aut(C_{31})$ for $q=5,3,2,29$
For $q=5$, $C_5 =\{1,y^2,...,y^4\}$ and $Aut(C_{31})=C_{30}=\{1,\alpha,...,\alpha^{29}\}$ so we know the order of $h(y)$ is 5. There are 4 elements of order 5 in $C_{30}$: $\alpha^6,\alpha^{12},\alpha^{18}$ and $\alpha^{24}$. But what is the strategy for identifying these explicitly in terms of automorphisms $\phi_a: x \mapsto x^a$? The only way I can think of is computing the orders of $\phi_a$ (all 30 of them...) and see which ones have order 5 but this can't be the best strategy(?!) I suppose I need to solve $a^5 $(mod 31) $=1$ but is there a way of doing this without going mental with the calculator? Finally, can I perhaps identify a generator $\phi_a$ of $Aut(C_{31})$ then the homomorphisms would be $\phi_a^6, \phi_a^{12},\phi_a^{18},\phi_a^{24}$ and what is a quick way of identifying $\phi_a$? Thanks.
Well here is one approach: pick a random element $b\neq 0 \pmod{31}$ and set $a\equiv b^6 \pmod{31}$. Unless you got unlucky and $b$ happened to be in the subgroup of order 6 (which only has probability $6/30=1/5$), then you'll have $a\neq 1$. Then $$a^5 = (b^6)^5 = b^{30} = 1 \pmod{31}$$ so $\phi_{a}$ will be an automorphism of order 5, and the others will be $\phi_a^2, \phi_a^3$, and $\phi_a^4$.