2. I believe you mean the generator to be $f(a)$. Here's a hint: any element in the first group can be represented as $a^n$ for some integer $n$. Now given an element in the second group (say $b$), we can express $b = f(a^n)$. Can you figure out the rest?