Theory of Numbers - Lecture 4
Theory of Numbers - Lecture 4
FF
(Definition) Complete Residue System: A complete residue system mod m
is a collection of integers a1 . . . am such that ai 6⌘ aj mod m if i 6= j and any
integer n is congruent to some ai mod m
Eg. For m = 12
complete = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}
reduced = {1, 5, 7, 11}
Proof.
Proof. All we need to show is that ari are all coprime to m and distinct mod m,
since there are k of these ari and k is the number of elements in any residue
system mod m. We know that if (r, m) = 1 and (a, m) = 1 then (ar, m) = 1.
Also, if we had ari ⌘ arj mod m, then m|ari arj = a(ri rj ). If (a, m) = 1
then m|ri rj ) ri ⌘ rj mod m, which cannot happen unless i = j. ⇤
1
each other mod m (ie., ari ⌘ rj(i) mod m).
r1 r2 . . . rk ⌘ ar1 ar2 . . . ark (mod m)
(m)
r1 r2 . . . rk ⌘ a r1 r2 . . . rk (mod m)
(r1 r2 . . . rk , m) = 1 ) can cancel
(m)
a ⌘1 (mod m)
⌅
Proof by induction.
p
We saw that k is divisible by p for 1 k p 1, so
(x + y)p ⌘ xp + y p (mod p)
⇤
2
Proposition 19 (Inverses of elements mod m). If (a, m) = 1, then there is a unique
integer b mod m such that ab ⌘ 1 mod m. This b is denoted by a1 or a 1 mod m
Proof of Uniqueness. If ab1 ⌘ 1 mod m and ab2 ⌘ 1 mod m, then ab1 ⌘ ab2
mod m ) m|a(b1 b2 ). Since (m, a) = 1, m|b1 b2 ) b1 ⌘ b2 mod m. ⌅
Lemma 21. The congruence x2 ⌘ 1 mod p has only the solutions x ⌘ ±1 mod p
Proof.
x2 ⌘ 1 mod p
2
) p|x 1
) p|(x 1)(x + 1)
) p|x ± 1
) x ⌘ ±1 mod p
3
Proof. p = 2 is easy. We’ll show that there is no solution for p ⌘ 3 mod 4 by
contradiction. Assume x2 ⌘ 1 mod p for some x coprime to p (p = 4k + 3).
Note that
p 1 = 4k + 2 = 2(2k + 1)
so (x2 )2k+1 ⌘ ( 1)2k+1 ⌘ 1 mod p. But also,
If p ⌘ 1 mod 4:
p1 ⌘ ( 1)1 (mod p)
p2 ⌘ ( 1)2 (mod p)
..
.
p+1 p 1
⌘ ( 1) (mod p)
✓ ◆ 2 2✓ ✓ ◆◆
p+1 p 1 p 1
. . . (p 1) ⌘ ( 1) 2 1 · 2... (mod p)
2 2
| {z } | {z }
second factor x
p 1
2 is even since p ⌘ 1 mod 4, and so second factor equals the first factor, so
x = p 2 1 ! solves x2 ⌘ 1 mod p if p ⌘ 1 mod 4. ⌅
N = (2p1 p2 . . . pn )2 + 1
4
(Definition) Congruence: A congruence (equation) is of the form an xn +
an 1 x n 1
· · · + a0 ⌘ 0 mod m where an . . . a0 are integers. Solution of the
congruence are integers or residue classes mod m that satisfy the equation.
Note: The number of solutions to a non-prime modulus can be larger than the
degree
Theorem 24. Let g = (a, m). Then there is a solution to ax ⌘ b mod m if and only
if g|b. If it has solutions, then it has exactly g solutions mod m.
and so x = b0 x0 is a solution.
We need to show that there are exactly g solutions. We know that there is one
solution x1 , and the congruence says ax ⌘ b ⌘ ax1 mod m.
a(x x1 ) ⌘ 0 (mod m)
a(x x1 ) ⌘ mk for some integer k
g = (a, m) ) a = a0 g, m = m0 g
5
mod m0 = m. So all the solutions are x1 , x1 + m0 , x1 + 2m0 , . . . , x1 + (g 1)m0 .
They are all distinct, so they are all the solutions mod m. ⌅