Let $H= \mathbb{Z}/p\mathbb{Z}$ and $F=\mathbb{Z}/q\mathbb{Z}$ with $p,q$ primes. As indication, I got that $${\rm Aut}(H) \cong (\mathbb{Z}/p\mathbb{Z})^\times \cong \mathbb{Z}/(p-1)\mathbb{Z}.$$
I have to show that if $q$ divides $p-1$ there exist a non-trivial homomorphism $\psi$: $F \rightarrow{\rm Aut}(H)$. I understand if $q$ divides $p-1$ then there is an element of order $q$ in $\mathbb{Z}/(p-1)\mathbb{Z}$. But, the problem I have, is that I don't really understand how to construct homomorphisms so I'd like to have a step-by-step explanation if possible, please. For me, this non-trivial homomorphism is simply of form $\psi([x]_q): y \rightarrow y \cdot g^x$, where $g$ is generator of $(\mathbb{Z}/p\mathbb{Z})^\times$. But I was told that it is wrong.
Thanks in advance and have a nice day.