Download Congruences (Part 1) - Department of Mathematics, University of

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
Congruences (Part 1)
Original Notes adopted from September 25, 2001 (Week 3)
© P. Rosenthal , MAT246Y1, University of Toronto, Department of Mathematics typed by A. Ku Ong
Modular Arithmetic
a, b ∈ Z , m >1
"a is congruent to b modulo m" means m|(a-b).
Equivalently, a & b leave the same remainder by division by m (for a,b≥0)
1) If a ≡ b (mod m) then (a+c) ≡ (b+d) (mod m) & c ≡ (mod m)
Proof: a ≡ b (mod m) means a – b = mq, some q ∈ Z
Also c – d = mr some r ∈ Z.
We Want: (a-b) – (b+d) is a multiple of m
a = b + mq
c = d + mr
(a+c) – (b+d) = ( b + nq + (d + mr)) – b
= b + d + mq + mr - b – d
= mq + mr
= m( q + r) , a multiple
∴ (a + c) ≡ (b+d) (mod m)
Eg. 7 ≡ 3 (mod 4)
-2 ≡ 6 (mod 4)
5 ≡ 9 (mod 4)
2) If a ≡ b (mod m) & c ≡ d (mod n) then ac ≡ bd (mod m)
Proof:
a = b + qm
c = d + rm, some r,q
ac – bd = (b + qm) ( d + rm) – bd
= bd + brm + qmd +qrm2 – bd
= m (br + qd + qrm)
Divisible by m, so ac ≡ bd (mod m)
Corollary: If a ≡ b (mod m), then a2 ≡ b2 (mod m)
Proof: Case where a = c & b = d
3) If a ≡ b (mod m) and n ∈ N then an = bn (mod m)
Proof: Use Mathematical Induction.
Case n = 1 True
Assume true for n = k.
Induction Hypothesis: ak ≡ bk (mod m)
Given a ≡ b (mod m)
By 2) aak ≡ bbk (mod m) or ak + 1 = b k +1 (mod m).
Does 7/ (229 + 3)?
23 ≡ 1 (mod 7)
(23) 8 ≡ 18 (mod 7)
224 ≡ 1 (mod 7)
23 ≡ 1 (mod 7)
23224 ≡ 1 * 1 (mod 7)
227 ≡ 1 (mod 7)
22227 ≡ 4 * 1 (mod 7)
229≡ 4 (mod 7)
229 + 3 ≡ (4+3)(mod 7)
229 + 3 ≡ 0 (mod 7)
229 + 3 is divisible by 7.
Eg. What is the remainder when 3202 + 59 is divided by 8?
32 ≡ 1 (mod 8)
(32) 101 ≡ 1101(mod 8)
3202 ≡ 1 (mod 8)
52 ≡ 1 (mod 8)
(52) 4 ≡ 14(mod 8)
54 ≡5 (mod 8)
3302 + 59 ≡ 6 (mod 8). The remainder when 3202 + 59 is divisible by 8 is 6.
Eg. 52 ≡ 32 (mod 8)
52 ≡ 1 (mod 8)
32 ≡ 1 (mod 8 ) But 5 ≠ 3 (mod 8)
Eg. To tell if 3, 974, 279 is divisible by 3, see if 3+ 9 + 7 + 4+ 2 + 7+ 9 is divisible by 3.
3, 974, 279 = 9 + 7 x 10 + 2 x 102 + 4 x 103 + 7 x 104 + 9 x 105 + 3 x 106
10 ≡ 1 (mod 3)
102 ≡ 1 (mod 3)
10k ≡ 1 (mod 3) for all k ∈ N
∴a x 10k ≡ a (mod 3) for all k
7 x 10 ≡ 7 (mod 3)
2 x 102 ≡ 2 (mod 3) etc.
9 + 7*10 + 2*102 + 4*103 + 7*104 + 9*105 + 3*106
= 9 + 7 + 2+ 4 + 7 + 9 + 3
Thm: The natural number an10n + an-110n-1 + an-210 n-2 + ... + a110 + a0 whose each ai is a number from
{ 0,1,2,3... 9} is congruent to an + an-1 +... + a1 + a0 (mod 3)
Proof: 10m ≡ 1(mod 3) for all m
∴an10m ≡ an (mod 3) for all an for all m.
∴an10n + an-110n-1 + ... an10 + a0 ≡ an + an-1 + ... + a1 + a0.
Eg. 7,230, 591, 006 leaves remainder 0 upon division by 3 (its divisible by 3)
Thm: The natural number an10n + an-110n-1 + an-210 n-2 + ... + a110 + a0 whose each ai is a number from
{ 0,1,2,3... 9} is congruent to an + an-1 +... + a1 + a0 (mod 9)
Proof : As in case mod 3;
10m ≡ 1 (mod 9) for all m.
What about mod 11?
10 ≡ (-1)(mod 11)
10 2 ≡ (-1) 2(mod 11) ≡ 1 (mod 11)
10 3 ≡ -1(mod 11)
10 m ≡ 1(mod 11) if m even
10 m ≡ -1 (mod 11) if m odd.
Eg. What is the remainder when 7, 224, 689 is divisible by 11?
7224689 = 9 + 8 *10 + 6*10 2 + 4*10 3 + 2*10 4 + 2*10 5 + 7-10 6
= 9 – 8(odd) + 6(even) – 4 + 2 –2 + 7 (mod 11)
= 10 (mod 11)
Question : Is 3 729 = 7 104 ?
Recall: We proved that every natural number other than 1 is a product of prime numbers.
Thm: The Fundamental Thm of Arithmetic
Every natural number ≠1 is a product of primes & the primes in the product are unique (including
multiplicity) except for the order in which they occur.
Eg. 48 = 16 * 3 = 4*4*3 = 2*2*2*3
48 = 24*2 = 3*8*2 = 3*2*2*2
Proof: We know that every natural number ≠1 is a product of primes. We must show the uniqueness of
the factorization into primes. (Using contradiction)
If there are natural numbers with two distinct factorizations into primes, then there is a smallest one, say k.
We'll show that this is impossible. We have k = p1, p2, p3... pm = q1, q2,... qn where all pi of all q, are primes
and a difference in the occurrence of primes in p1,... pn to q other than order.
Since k is the smallest, the factorization have no primes in common for if since p1 were a qj, dividing both
sides by it, getting a smaller number than k that has distinct prime factorizations.
Either p > q or p < q.
Suppose p1 < q1 ( Etc. if p > q)
Consider L = k – p1q2 q3... qn ∈ N
= p1p2... pm – p1q2... q
(I)= p1 (p2...pm-q1...qm)
But also L = q1q2... qn – p1q2.... qn
(II) = (q1-p1)(q2... qn)
L < k, so it has unique factorization
(I) ⇒ p1 occurs in factorization of L
( II) ⇒ p1 divides into (q1 – p1)
q1 – p1 = tp1
∴ q1 = p1 (1+t) q1 ≠ p, p, q primes, impossible.
Related documents