By the primitive-root modulus classification, only forwith an odd prime, and thenFix . The finite fibres of the Euler totient function imply that there are only finitely many possible values satisfying . For each such , the same result gives only finitely many satisfying . The union of these finitely many finite sets is finite, proving the claim.
Solved by gpt-5.6-sol high.
Codex Wiki