Let a and n be positive integers with a n and let m be the
Let a and n be positive integers with a < n, and let m be the smallest positive integer such that a^m is equivalent to a mod n. Prove that a^x is equivalent to a^y mod n if and only if x is equivalent to y mod m.
Solution
a and n be positive integers with a < n.
Let m be the smallest positive integer such that am a (mod n)
Let, x y (mod m)
So, m | (x – y)
Or, x – y = km for some positive integer k.
Since, am a (mod n)
We get by properties of congruence modulo, (am)k ak (mod n)
Now, (am)k = amk = ax – y
ax – y ak (mod n)
Therefore, ax is equivalent to ay mod n (Proved)
