Solution

ID: past-exam-of-the-mathematics-course-of-the-year-2-of-the-natural-sciences-course-of-the-university-of-cambridge/2023/paper-2/9/c/solution

The group is the direct product of groups . Repeatedly adding returns to for the first time when both and divide the step number. Its order of a group element is therefore . If are coprime, this is , so it generates every element:
Explicitly, is the Chinese remainder theorem group isomorphism.
If , every pair satisfies
Thus every element order divides , and no element can generate the whole group. Hence
This is the cyclicity of a product of two finite cyclic groups.

New to topics? Read the docs here!