Why does $\{ax \mod n: a, x, n > 0 \land \gcd(a, n) = 1 \}$ is a permutation of $\{0, 1, .., n - 1\}$? I've seen some proofs, but I can't intuitively see why is that true. I like to think about euclidean algorithm etc. with two sticks of length $a$ and $b$, but even using this I still can't understand why does set of all multiplies of $a \mod n$ is a permutation of $\{0, 1, ..., n - 1\}$
Why does $\{ax \mod n: a, x, n > 0 \land \gcd(a, n) = 1 \}$ is a permutation of $\{0, 1, .., n - 1\}$
0
$\begingroup$
number-theory
greatest-common-divisor
1 Answers
2
It is enough to show that $$ x \mapsto a x \pmod{n} $$ is injective.
If $a x \pmod{n} = a y \pmod{n}$, then $n \mid a x - a y = a (x - y)$. Since $\gcd(a, n) = 1$, we have $n \mid x - y$, so $x = y$.
-
0Thx. ${}{}{}{}$ – 2017-03-16