210 likes | 417 Views
Introduction to Number Theory. Integers: Z={…-3, -2, -1, 0, 1, 2, 3, …}. Operations: addition, multiplication, subtraction. Given any two integers a , b Z we can define a + b Z a b Z a b Z. Integers Z are closed under operations ‘+’, ‘ ’, ‘’.
E N D
Introduction to Number Theory Integers: Z={…-3, -2, -1, 0, 1, 2, 3, …} Operations: addition, multiplication, subtraction. Given any two integers a, bZ we can define a + b Z a b Z a b Z Integers Z are closed under operations ‘+’, ‘’, ‘’. Closure properties under +, , If a, b are integers, then a+b, a b, ab are integers.
Commutative Law If a, b are integers, thena+b=b+a; ab=ba Associative Law If a, b are integers, then a+(b+c) = (a+b)+c; a( bc ) = (ab)c Distributive Law If a, b are integers, then a(b+c) = ab+ ac Identity elements for addition and multiplication For all integer a, a+0=a; a 1= a Additive inverse For all integer a, a + (a) = (a)+a = 0
divisor of a multiple of b If a, b Z, b 0, then it may be that (a / b) Z, so integers are not closed under division. Example. If we divide 10 by 5, the result is an integer again. So, we say, that 10 is divisible by 5 because there exists an integer n (2 in this case) such that 10=5 n. But 10 is not divisible by 3 (within integer domain). Definition. Given two integers a, b Z, b 0, we say that a is divisible by b and denote it b | a,if there exists an integer n Z, such that a = b n .
Some properties of divisibility For any a Z: 1) a | 0 because 0= a0 2) 1 | a because a =1a For any a, b Z 3) If a | b and b | a, then a = b 4) If a | b and b>0and a>0, then a b 5) If mZ, m0, then a | b if and only if (ma)|(mb)
For any a, b, c 6) If a | b and b | c, then a | c. Proof. a | b b = ax for some xZ (by defn of divisibility) b | c c = by for some yZ (by defn of divisibility) By substitution we have c = (ax)y. By associative law, c = a(xy). xy=k is an integer by the closure property of integers under multiplication. c = ak means that a | c .
7) If a | b then a | bc. Proof. By the definition of divisibility a | b implies that there is some integer x such that b = ax. For any integer c, bc = (ax)c = a(xc) by associative property of multiplication. By the closure property integers under multiplication xc = k, an integer, so bc =ak, i. e. a | bc 8) If a | b and a | c then a | (bx + cy) for any x, y Z Proof is left as an exercise. Does the linear equation 21x + 3y= 133 has integer solution ? No, because for any integer x, y, 3| (21x + 3y), but 133 is not divisible by 3.
Example. Prove that the expression n 3 4n is divisible by 3 for all integers n 0 Proof by induction on n 0. To prove n 0 [P (n): 3|(n 3 4n)] We use the pattern: 1) (Basis) check P (0): 03 40=0, 3|0. 2) n 0 [P(n) P (n +1)] Induction Hypothesis. Assume P(n)for n = k , for some k 0, i. e. assume 3|(k 3 4k) Induction Step. We need to show that P(n=k+1) holds, i. e. 3|((k+1)3 4(k+1)). Here you need to use your creativity and some algebra skills… By definition of divisibility we have from IH: k 3 4k =3m for some integer m, i. e. k 3 4k =3m (k+1)3 4(k+1) = k3+3k2+3k+14(k+1)= (k 3 4k )+ 3k2+3k+14 = (k 3 4k )+ 3k2+3k 3 = 3m + 3k2+3k 3 =3(m + k2+k 1)
remainder dividend divisor quotient b 3a 4a 2a a 0 a 2a r What is the outcome when any integer b is divided by any positive integer a >0 in general case? For example, if 25 is divided by 7, the quotient is 3 and the remainder is 4. These numbers are related by 25=37+4. Division Algorithm. Given any integers a and b, with a>0, there existuniqueintegers q and r such that b = aq + r, with 0 r <a. Proof. Consider the multiples of a on the real line: We can always find such a multiple aq, that the remainder r=baq satisfies 0 r <a.
b 3a 4a 2a a 0 a 2a b 3a b 4a b 2a b a b b + a b +2a b= … =a+(b a)=2a+(b2a)= 3a+(b3a)=4a+(b4a)=… Consider set R ={… b+2a,b+a,b, b a, b2a , … } Among nonnegative terms of R there exists the smallest element (by Well-Ordering Principle). Denote this smallest nonnegative r, then we have that for some q and r: r = b qa 0 and r a < 0 . If not (i. e. if r a0), b = qa +r = (q+1)a +ra and r is not the smallest positive term (contradiction). So, 0 r <a .
To prove the uniqueness of q and r, suppose thereis another pair q1 and r1 satisfying the same conditions, i. e. we have b=aq+r and b=aq1+r1, with 0 r, r1 <a. Assume r < r1, so that 0 < r1 r <a. Then by subtracting we have r1 r = a(q q1), so a | (r1 r ) by definition of divisibility. Since r1 r >0 and a >0 it means that r1 r a in contradiction to 0 r, r1 <a. Hence r = r1 and q =q1, i.e. the quotient and remainder are unique.
Definition. If an integer n>1 divides the difference a b, we say that a b (mod n): a is congruent to b modulo n. Examples of valid congruences: 63 0 (mod 3) ……….meaning 3 | 63 7 1 (mod 8) ……….meaning 8 | (7 (1)) 25 1(mod 13)…….meaning 13 | (25 (1)) What are the properties of relation Rn = {(a, b) | a b (mod n)} on Z? a b (mod n) b a (mod n) (symmetric!) because n | (a b) n | (b a) Reflexive? Transitive?
Note, that relation a b (mod n) means that a and b differ by a multiple of n, i. e. a = sn+r , b =tn+r (for some s,t Z), Or a and b have the same remainder r when divided by n. So that a b =(st)n, or n | (a b). Example. Take n =3. Then any a Zcan be represented as a = 3q+r, with 0 r <3. So, with respect to division by 3 a remainder may have the values: r = 0 (a is divisible by 3), 1 or 2 (a is not divisible by 3). In accordance to this we have 3 equivalence classes of integers with the same remainder (residue).
…3 03 6 9 12(mod 3)… …2 1 4 7 10 13(mod 3)… …12 5 8 11 14(mod 3)… ‘congruence’ classes So, for any n we have n congruence classes (for residue r=0, 1, 2, … n). r =0: …, 3, 0, 3, 6, 9, 12, … r =1: …, 2, 1, 4, 7, 10, 13, … r =2: …, 1, 2, 5, 8, 11, 14, … What are congruence classes with respect to relation a b (mod 2)? r =0: n = 2q, q Z(even numbers) r =1: n = 2q+1, q Z(odd numbers)
The properties that follow from the definition: 1. a b (mod n), b a (mod n) are equivalent statements (symmetry) 2. If a b(mod n) and b c(mod n), then a c (mod n) (transitivity) 3. If a b(mod n) and c d(mod n), then for any integer x, y ax + cy bx+ dy (mod n) 4. If a b(mod n) and c d(mod n), then ac bd (mod n). Special cases: If a b(mod n), then a2b2(mod n), a3b3(mod n), etc. If a b(mod n), then if ac bc (mod n). 5. If a b(mod n), then am bm (mod n) for anym1 (can be proved by induction on m1). Example (4): 6 15 (mod 3) (6 15)=3k 6x 15x =3kx 10 4 (mod 3) (10 4)=3s 10y 4y = 3s y 6x + 10y (15x+ 4y) =3(kx+ s y) 6x+10y 15x+4y (mod 3)
The last property can be used in solving following problem. Example. Find the remainder when 320 is divided by 25. Try to find a power of 3 that equals a multiple of 25 with small ‘residue’, for instance 33=27 320 = 336+2 = (33)69 = (27)6 9 (2)6 9(mod 25) ………because 27 2(mod 25) = 25 2 9 = 32 2 9 7 2 9 (mod 25)………. because 32 7(mod 25) = 63 2 13 2 (mod 25)…………. because 6313 (mod 25) =26 1 (mod 25)
Definition. Let a, b Z. A positive integer d is called a common divisor of a and b if d | a and d | b . For any two integers a and b the greatest common divisor is always defined (except the case a = b =0) and is denoted by gcd (a, b). Note, that gcd (a, b) 1. • if gcd (a, b) =1, integers a and b are called relatively prime. • gcd (a, b) = gcd (b, a) = gcd (a, b) = gcd (a, b) = gcd (a, b)
Proof. Consider set of integers {ax+by|x, y Z}. This set includes positive, negative values and 0. Choose x0and y0so that l =ax0+by0 is the least positive integer l in the set. Prove that l | a and l | b. Prove l | a by contradiction. Assume l | a , i. e. a = ql+r , where 0<r<l. Hence r = a ql = a q(ax0+by0 )= a(1 qx0)+b(qy0). So, r {ax+by|x, y Z}, but it smaller than l in contradiction with assumption, that l is the least positive element in the set. l | b is proved analogously. / Theorem. The gcd(a, b) is the least positive value of ax+by, where x and y range over all integers. Let d =gcd(a, b). It means that a = d n and b = d m. Then, l = ax0+by0 = d(nx0+my0), thus d | l and so l d . But l > d is impossible, since d is the greatest common divisor. So, l =d.