By the primitive-root modulus classification, only for
with an odd prime, and then
Fix . 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.