Reduced Residues and Euler's phi

Reading

Practice Problems

9.2
1, 3, 4, 5, 8, 10, 11, 18, 21, 22

Notes

Before we extend Fermat's theorem to non-primes, we will need some preliminary work.

Reduced Residues

\(\bar a\) is a reduced residue if \(\gcd(a,n) = 1\).

The reduced residues are exactly those numbers that have a multiplicative inverse modulo \(n\).

Reduced residues are also called "units". The set of all reduced residues is some times denoted by \(\mathbb{Z}_n^*\).

In simple terms, a number is a reduced residue if it has no common prime factors with the modulus \(n\).

Euler's phi function is: \(\phi(n)=\) the number of reduced residues modulo \(n\), i.e. the size of \(\mathbb{Z}_n^*\).

This is well defined: If \(\bar a = \bar b\) and \(\gcd(a,n) = 1\), then it is also the case that \(\gcd(b,n) = 1\). To see this, note that \(b = a + nk\) for some integer \(k\). And we already know \(\gcd(a + nk, n) =\gcd(a, n)\).

What are the reduced residues in \(\mathbb{Z}_{10}\), \(\mathbb{Z}_{12}\), \(\mathbb{Z}_{15}\)?

Here is a crucial property of reduced residues:

If \(\bar a\) and \(\bar b\) are two reduced residues in \(\mathbb{Z}_n\), then their product \(\bar a \cdot \bar b\) is also a reduced residue.

In other words the set \(\mathbb{Z}_n^*\) of residues is closed under the operation of multiplication. And as we also know, all elements there also have inverses.

In algebraic systems language, we say that \(\mathbb{Z}_n^*\) is a group under multiplication.

Some standard results about Euler's phi function:

Let us discuss the proofs of some of the above, starting with the second one, \(\phi(p^a) = (p-1)p^{a-1}\):

The next key thing to prove is the fourth case: If \(m,n\) are relatively prime, then \(\phi(mn) = \phi(m) \cdot \phi(n)\). This will turn out to be related to the Chinese Remainder Theorem. For this we will need the following:

Consider \(m,n\) relatively prime. Then there is a function:

\[I:\mathbb{Z}_{mn} \to \mathbb{Z}_m \times \mathbb{Z}_n\]

that sends the conguence class \(\bar x\) in \(\mathbb{Z}_{mn}\) to the pair \((\bar x, \bar x) \in \mathbb{Z}_m \times \mathbb{Z}_n\)

This function is 1-1 and onto (this is effectively the Chinese Remainder Theorem).

Further, this function respects addition and multiplication: \(I(x+y) = I(x) + I(y)\) and \(I(xy) = I(x)I(y)\).

A class \(\bar x \in \mathbb{Z}_{mn}\) is a reduced residue if and only if the corresponding \(\bar x\) in \(\mathbb{Z}_m\) and \(\mathbb{Z}_n\) are reduced residues.

Let us discuss the 1-1 / onto statement:

Now we consider the last part, about reduced residues.