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 x3mod6,x4mod7,x5mod8x\equiv 3 \mod 6, x\equiv 4 \mod 7, x\equiv 5 \mod 8 for xx. Then we could replace x3mod6x\equiv 3 \mod 6 by x3mod2x\equiv 3 \mod 2 and x3mod3x\equiv 3 \mod 3. Also notice that x5mod8x\equiv 5 \mod 8 implies x3mod2x\equiv 3 \mod 2. So it is enough to solve x3mod3,x4mod7,x5mod8x\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,,p11, 2, \ldots, p-1 and a,2a,,(p1)aa, 2a, \ldots, (p-1)a. Since they are both reduced residue systems, the products should be the same in modulo pp arithmetic. Hence (p1)!(p1)!ap1modp(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)1modna^{\phi(n)}\equiv 1 \mod n, where ϕ(n)\phi(n) is Euler’s totient function.