Problem

Source:

Tags: modular arithmetic, number theory, prime factorization, Divisibility Theory



Prove that if the odd prime $p$ divides $a^{b}-1$, where $a$ and $b$ are positive integers, then $p$ appears to the same power in the prime factorization of $b(a^{d}-1)$, where $d=\gcd(b,p-1)$.