Why does $3^{-1} \text{mod} \ 10 = 7$ and $3^9 \ \text{mod} \ 10 = 3$? Since -1 and 9 are the same mod 10, shouldn't I be able to replace one with the other?
2026-03-27 18:25:57.1774635957
Substitution with Modular Exponents
48 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
2
Similar to the freshman's dream that $(x+y)^n=x^n+y^n$, it's beguiling to think that, if $m\equiv n$ mod $N$, then $a^m\equiv a^n$ mod $N$. What's true, instead, is a bit more complicated to state:
This is an elaboration of Euler's totient theorem:
which is a generalization of Fermat's little theorem:
It's worth noting that Fermat's little theorem has an equivalent restatement that doesn't put any restriction on $a$:
It follows that the freshman's dream is true in the limited context, $(x+y)^p\equiv x+y\equiv x^p+y^p$ mod $p$. But there is no equivalent restatement for Euler's generalization. For example, no power of $2$ higher than the first is ever again congruent to $2$ mod $4$.