Homomorphismscanexist between groups of different orders. The problem given to you is really about the additive groups and (NB: Homomorphisms need not be isomorphisms. They need not be bijective.)

Now and (meaning the additive groups) are cyclic; therefore any homomorphism maps the generators of to Now is obviously a generator of You've found the generators of as What are the possible values of