I have proven that when the homomorphism $f$ is a automorphism, then if $a$ generates the cyclic group $G$, that $f(a)$ also generates the cyclic group G.
The problem is the other direction, if $a$ and $f(a)$ are generators of the cyclic group $G$, then the homomorphism $f$ is an automorphims. I believe that I have to prove that $f$ is a bijective function, but do I define some function or do I approach this differently.
Hint for showing surjectivity: $f(a)^k = f(a^k).$ Hint for showing injectivity: for any elements in the codomain, they are of the form $f(a^m) $ and $f(a^n).$ Multiply one by the inverse of the other and conclude.