Skip to main content

Recitation 24

Today we discussed that the Chinese remainder theorem is not applicable unless all nin_is are pairwise relatively prime, in which case we need to break each single linear congruence equation that causes the problem into equivalent equations.

For instance, suppose we want to solve x≡3mod  6,x≡4mod  7,x≡5mod  8x\equiv 3 \mod 6, x\equiv 4 \mod 7, x\equiv 5 \mod 8 for xx. Then we could replace x≡3mod  6x\equiv 3 \mod 6 by x≡3mod  2x\equiv 3 \mod 2 and x≡3mod  3x\equiv 3 \mod 3. Also notice that x≡5mod  8x\equiv 5 \mod 8 implies x≡3mod  2x\equiv 3 \mod 2. So it is enough to solve x≡3mod  3,x≡4mod  7,x≡5mod  8x\equiv 3 \mod 3, x\equiv 4 \mod 7, x\equiv 5 \mod 8, in which case we could apply the Chinese remainder theorem.

Also we covered an elegant proof of Fermat’s little theorem. In that proof, we considered two reduced residue systems, 1,2,…,p−11, 2, \ldots, p-1 and a,2a,…,(p−1)aa, 2a, \ldots, (p-1)a. Since they are both reduced residue systems, the products should be the same in modulo pp arithmetic. Hence (p−1)!≡(p−1)!ap−1mod  p(p-1)!\equiv (p-1)!a^{p-1} \mod p.

One can also use this idea to prove Euler’s theorem, which says the following.

If nn and aa are coprime positive integers, then aϕ(n)≡1mod  na^{\phi(n)}\equiv 1 \mod n, where ϕ(n)\phi(n) is Euler’s totient function.