Prove Proposition (6.11).
Let's remind ourselves of Proposition (6.11).
Let $\gcd (r, n) = 1$ and $r_1, r_2, r_3, \ldots , r_{\phi (n)}$ be integers relatively prime to $n$. If $r$ is a primitive root of $n$, then
$$ r, r^2, r^3, \ldots, r^{\phi(n)} $$
are congruent modulo $n$ to $r_1, r_2, r_3, \ldots , r_{\phi(n)}$ in some order.
Assuming the integers $r_1, r_2, r_3, \ldots , r_{\phi (n)}$ are pair-wise incongruent modulo $n$, then the set $\{ r_1, r_2, \ldots, r_{\phi(n)} \}$ is a reduced residue system modulo $n$.
We will first show the set $\{ r, r^2, r^3, \ldots, r^{\phi(n)} \}$ is also a reduced residue system modulo $n$. We need to show:
- the set has cardinality $\phi(n)$
- $\gcd(r^k, n)=1$ for $1 \le k \le \phi(n)$
- $r^j \not \equiv r^k \pmod n$ where $j \ne k$ for $1 \le j,k \le \phi(n)$
The set $\{ r, r^2, r^3, \ldots, r^{\phi(n)} \}$ clearly has cardinality $\phi(n)$.
We're given $\gcd(r,n)=1$, and so $\gcd(r^k,n)=1$ for any positive integer $k$, and in particular $1 \le k \le \phi(n)$.
To show $j \ne k \implies r^j \not \equiv r^k \pmod n$, we prove the contrapositive $r^j \equiv r^k \pmod n \implies j = k$.
Using Proposition (6.6) we have, noting that $r$ primitive means the order of $r$ modulo $n$ is $\phi(n)$,
$$r^j \equiv r^k \pmod n \quad \iff \quad j \equiv k \pmod {\phi(n)}$$
Since $1 \le j,k \le \phi(n)$, this means $j = k$.
And so the set $\{ r, r^2, r^3, \ldots, r^{\phi(n)} \}$ is also a reduced residue system modulo $n$
We now show that any two reduced residue systems modulo $n$ are congruent. That is, every element in one set is congruent to an element in the other, and vice versa.
We will do this by showing that any reduced residue system $X$ modulo $n$ is congruent to the reduced residue system of least positive residues $R$ modulo $n$. So we need to show both
- for all $x \in X$, there is a congruent $r \in R$
- for all $r \in R$, there is a congruent $x \in X$
(1) For every $x \in X$, using the division algorithm, we can write $x = r +kn$ where $r,k$ are integers and $0 \le s < n$. In fact the constraint is stronger $0 < r < n$ because $r=0$ would mean $x=kn$ which is not coprome to $n$. Here $r$ is the least positive residue of $x$ modulo $n$. Also, $x=r+kn$ means $x \equiv s \pmod n$, so $x$ is congruent to $r$.
For $r$ to be a member of $R$ we also need to show $\gcd(r,n)=1$. Using the Lemma A, which we prove below, we can say $\gcd(x,n) = \gcd(x- kn, n)$ and so $\gcd(r,n) = 1$.
And so for every $x \in X$, there is a congruent $r$ in $R$.
(2) The argument is similar to (1) with the difference being that we use Lemma A to say $\gcd(r,n)=\gcd(r+kn,n)$ and so $\gcd(x,n)=1$.
By showing that any two reduced residue systems are congruent, we have shown that $\{ r, r^2, r^3, \ldots, r^{\phi(n)} \}$ is congruent to $\{ r_1, r_2, \ldots, r_{\phi(n)} \}$.
Lemma A
We will show that
$$ \boxed{ \gcd(x,n) = \gcd(x+kn,n) }$$
Let $g=\gcd(x,n)$ and $h=\gcd(x+kn,n)$. This gives us
$$ g \mid x, \quad g \mid n, \quad h \mid n, \quad h \mid x+kn $$
Here $g$ divides any linear combination of $x$ and $n$, and $h$ divides any linear combination of $n$ and $x+kn$. This gives us
$$ g \mid x + kn, \quad h \mid x $$
Together these facts give us
$$ g \mid x+kn \land g \mid n \implies g \mid h $$
$$ h \mid x \land h \mid n \implies h \mid g $$
And so we conclude $h=g$, that is,
$$ \gcd(x,n) = \gcd(x+kn,n) $$