NOTES ON INTEGERS. 1. Integers

Similar documents
Ch 4.2 Divisibility Properties

Greatest Common Divisor MATH Greatest Common Divisor. Benjamin V.C. Collins, James A. Swenson MATH 2730

Chapter 5: The Integers

4 Powers of an Element; Cyclic Groups

The following is an informal description of Euclid s algorithm for finding the greatest common divisor of a pair of numbers:

5: The Integers (An introduction to Number Theory)

Chapter 2. Divisibility. 2.1 Common Divisors

The Fundamental Theorem of Arithmetic

(e) Commutativity: a b = b a. (f) Distributivity of times over plus: a (b + c) = a b + a c and (b + c) a = b a + c a.

Elementary Properties of the Integers

8 Primes and Modular Arithmetic

1. multiplication is commutative and associative;

Number Theory Solutions Packet

MATH 215 Final. M4. For all a, b in Z, a b = b a.

Summary: Divisibility and Factorization

COMP239: Mathematics for Computer Science II. Prof. Chadi Assi EV7.635

Writing Assignment 2 Student Sample Questions

MATH10040 Chapter 1: Integers and divisibility

Homework #2 Solutions Due: September 5, for all n N n 3 = n2 (n + 1) 2 4

Homework #2 solutions Due: June 15, 2012

Contribution of Problems

NOTES ON SIMPLE NUMBER THEORY

Chapter 1 A Survey of Divisibility 14

Number Theory Proof Portfolio

This is a recursive algorithm. The procedure is guaranteed to terminate, since the second argument decreases each time.

1 Overview and revision

Chapter 1. Greatest common divisor. 1.1 The division theorem. In the beginning, there are the natural numbers 0, 1, 2, 3, 4,...,

Divisibility. Def: a divides b (denoted a b) if there exists an integer x such that b = ax. If a divides b we say that a is a divisor of b.

Rings and modular arithmetic

All variables a, b, n, etc are integers unless otherwise stated. Each part of a problem is worth 5 points.

0 Sets and Induction. Sets

2 Elementary number theory

EUCLID S ALGORITHM AND THE FUNDAMENTAL THEOREM OF ARITHMETIC after N. Vasiliev and V. Gutenmacher (Kvant, 1972)

MATH 420 FINAL EXAM J. Beachy, 5/7/97

An Algorithm for Prime Factorization

Number Theory Basics Z = {..., 2, 1, 0, 1, 2,...} For, b Z, we say that divides b if z = b for some. Notation: b Fact: for all, b, c Z:

CS 5319 Advanced Discrete Structure. Lecture 9: Introduction to Number Theory II

a = qb + r where 0 r < b. Proof. We first prove this result under the additional assumption that b > 0 is a natural number. Let

a the relation arb is defined if and only if = 2 k, k

18 Divisibility. and 0 r < d. Lemma Let n,d Z with d 0. If n = qd+r = q d+r with 0 r,r < d, then q = q and r = r.

2. THE EUCLIDEAN ALGORITHM More ring essentials

Senior Math Circles Cryptography and Number Theory Week 2

Exercises Exercises. 2. Determine whether each of these integers is prime. a) 21. b) 29. c) 71. d) 97. e) 111. f) 143. a) 19. b) 27. c) 93.

2 Arithmetic. 2.1 Greatest common divisors. This chapter is about properties of the integers Z = {..., 2, 1, 0, 1, 2,...}.

Homework 3, solutions

WORKSHEET MATH 215, FALL 15, WHYTE. We begin our course with the natural numbers:

Discrete Mathematics Logics and Proofs. Liangfeng Zhang School of Information Science and Technology ShanghaiTech University

Math 412, Introduction to abstract algebra. Overview of algebra.

Number Theory and Graph Theory. Prime numbers and congruences.

NUMBER SYSTEMS. Number theory is the study of the integers. We denote the set of integers by Z:

Math Circle Beginners Group February 28, 2016 Euclid and Prime Numbers Solutions

CISC-102 Fall 2017 Week 6

Elementary Algebra Chinese Remainder Theorem Euclidean Algorithm

Lecture Notes 1 Basic Concepts of Mathematics MATH 352

Properties of the Integers

a + b = b + a and a b = b a. (a + b) + c = a + (b + c) and (a b) c = a (b c). a (b + c) = a b + a c and (a + b) c = a c + b c.

Discrete valuation rings. Suppose F is a field. A discrete valuation on F is a function v : F {0} Z such that:

Proofs. Methods of Proof Divisibility Floor and Ceiling Contradiction & Contrapositive Euclidean Algorithm. Reading (Epp s textbook)

Introduction to Abstract Mathematics

Chapter 5.1: Induction

Chapter 1 : The language of mathematics.

Mathematics for Computer Science Exercises for Week 10

M381 Number Theory 2004 Page 1

Ma/CS 6a Class 2: Congruences

MATH FINAL EXAM REVIEW HINTS

cse547, math547 DISCRETE MATHEMATICS Professor Anita Wasilewska

WORKSHEET ON NUMBERS, MATH 215 FALL. We start our study of numbers with the integers: N = {1, 2, 3,...}

Chapter V. Theory of the Integers. Mathematics is the queen of the sciences and number theory is the queen of mathematics. Carl Friedrich Gauss

Algorithmic number theory. Questions/Complaints About Homework? The division algorithm. Division

MATH 433 Applied Algebra Lecture 4: Modular arithmetic (continued). Linear congruences.

ALGEBRA HANDOUT 2.3: FACTORIZATION IN INTEGRAL DOMAINS. In this handout we wish to describe some aspects of the theory of factorization.

The Chinese Remainder Theorem

Math 2070BC Term 2 Weeks 1 13 Lecture Notes

INTEGERS. In this section we aim to show the following: Goal. Every natural number can be written uniquely as a product of primes.

Complete Induction and the Well- Ordering Principle

Lecture 4: Number theory

Introduction to Sets and Logic (MATH 1190)

Direct Proof MAT231. Fall Transition to Higher Mathematics. MAT231 (Transition to Higher Math) Direct Proof Fall / 24

However another possibility is

Prof. Ila Varma HW 8 Solutions MATH 109. A B, h(i) := g(i n) if i > n. h : Z + f((i + 1)/2) if i is odd, g(i/2) if i is even.

We want to show P (n) is true for all integers

a + bi by sending α = a + bi to a 2 + b 2. To see properties (1) and (2), it helps to think of complex numbers in polar coordinates:

COMMUTATIVE RINGS. Definition 3: A domain is a commutative ring R that satisfies the cancellation law for multiplication:

1. Factorization Divisibility in Z.

MATH 2200 Final Review

PRIME NUMBERS YANKI LEKILI

CSE 311 Lecture 13: Primes and GCD. Emina Torlak and Kevin Zatloukal

Divisibility = 16, = 9, = 2, = 5. (Negative!)

PROBLEMS ON CONGRUENCES AND DIVISIBILITY

MATH 501 Discrete Mathematics. Lecture 6: Number theory. German University Cairo, Department of Media Engineering and Technology.

Notes for Recitation 6

Objective Type Questions

CSE 311: Foundations of Computing. Lecture 12: Two s Complement, Primes, GCD

Know the Well-ordering principle: Any set of positive integers which has at least one element contains a smallest element.

Math Circle Beginners Group February 28, 2016 Euclid and Prime Numbers

Math 109 September 1, 2016

Chapter 14: Divisibility and factorization

ALGEBRA. 1. Some elementary number theory 1.1. Primes and divisibility. We denote the collection of integers

Chapter 5. Number Theory. 5.1 Base b representations

The Chinese Remainder Theorem

Transcription:

NOTES ON INTEGERS STEVEN DALE CUTKOSKY The integers 1. Integers Z = {, 3, 2, 1, 0, 1, 2, 3, } have addition and multiplication which satisfy familar rules. They are ordered (m < n if m is less than n). The absolute value n of an integer n is { n if n 0 n = n if n < 0 The natural numbers (nonnegative integers) are The positive integers are N = {n Z n 0}. Z + = {n Z n 1}. The integers satisfy the cancellation law of multiplication; that is, if a, b, c are integers with c 0, and ca = cb, then a = b. The integers Z are well ordered : Suppose that S is a nonempty subset of Z which is bounded from below (there exists c Z such that x c for all x S). Then S has a smallest element. Theorem 1.1. (Principle of Mathematical Induction) Suppose that P (n) are propositions for n N such that 1. P (0) is true and 2. If P (n) is true for some n N then P (n + 1) is true. Then P (n) is true for all n N. Proof. Let S = {n N P (n) is not true}. We must prove that S =. Suppose not. Then there exists a smallest element m S (by well ordering of the integers). Since P (0) is true, m > 0, so m 1, and thus m 1 N. But then P (m 1) is true so P (m) must be true, and thus m S, a contradiction. Thus S =. A useful variation on this theorem is the following. Theorem 1.2. Suppose that c Z and T = {n Z n c}. Suppose that P (n) are propositions for n T such that 1. P (c) is true and 2. If P (n) is true for some n T then P (n + 1) is true. Then P (n) is true for all n T. 1

From the fact that the integers are ordered and the well ordering axiom we can deduce the following important property of the integers, which is very important in writing proofs: Suppose that m, n are integers and n > m. then n m + 1. Theorem 1.3. (Euclidean Division) Suppose m, n Z with m > 0. Then there exists a unique expression n = qm + r with q, r Z and 0 r < m. Proof. We first proof existence. Let S = {n am a Z and n am is nonnegative}. We will establish that S is nonempty. We have that 1 m since m > 0. Thus n m n n, and n + n m S. Thus S is nonempty. S is a nonempty set which is bounded from below, so it has a smallest element, r. We will assume r m and derive a contradiction. We have an expression r = n qm for some q Z. 0 r m < r. Thus r m S, a contradiction to our assumption that r was the smallest element of S. We thus have that 0 r < m. We have an expression n = qm + r with 0 r < m. We now prove uniqueness. Suppose we have expressions n = qm + r with 0 r < m and n = q 1 m + r 1 with 0 r 1 < m. We will prove that r = r 1 and q = q 1. If r = r 1, then 0 = (q q 1 )m and m 0 implies q = q 1. Suppose r r 1. Without loss of generality, we may suppose that r > r 1. Since r 1 0 and r < m we have that r r 1 < m. We also have that 0 < r r 1 = m(q 1 q). Thus q 1 q > 0 and we have q 1 q 1. So r r 1 m, a contradiction. We thus have that r = r 1, and q = q 1. An integer b divides an integer a if a = cb for some integer c. Write b a if b divides a. We will also say that a is a multiple of b. Lemma 1.4. Suppose that m, n, q are integers. Then: a) 1 n. b) m 0. c) If m n and n q then m q. d) If m n and m q then m divides un + vq for all integers u, v. e) If m 1 then m = 1 or m = 1. f) If m n and n m then m = ±n. Proof of c: Suppose that m n and n q. Then there exist integers c and d such that n = cm and q = dn. Thus q = dcm. Since dc is an integer, m divides q. Proof of d: Suppose that m n and m q. Then n = cm and q = dm for some integers c and d. Thus, for u, v Z, un + vq = ucm + vdm = (uc + vd)m, which implies that m divides un + vq. Definition 1.5. Suppose that a, b Z. A greatest common divisor c of a and b is c Z such that 1. c > 0. 2. c a and c b. 2

3. If d is an integer such that d a and d b then d c. Theorem 1.6. Suppose that a, b Z are not both zero. Then their greatest common divisor c exists and is unique. Moreover, c = m 0 a + n 0 b for suitable integers m 0 and n 0. Proof. We first prove existence. Since a, b are not both zero, A = {ma + nb m, n Z} has nonzero elements. Further, A has positive elements, since if x A and x < 0 then x A. By the well ordering of the integers, there is a smallest positive integer c A. c = m 0 a + n 0 b for some m 0, n 0 Z. We now will show that c satisfies 1,2 and 3 of the definition of a greatest common divisor. 1 follows since c is positive. We now establish 3. Suppose that d Z such that d a and d b. Then d divides c = m 0 a + n 0 b by d) of Lemma 1.4. Now we establish 2. By Euclidean division, a = qc + r with 0 r < c, so that a = q(m 0 a + n 0 b) + r, which implies r = qn 0 b + (1 qm 0 )a A. Since 0 r < c, we have by the minimality of c in the set of positive elements of A that r = 0. Thus a = qc so that c a. Similarly, c b. Thus c is a greatest common divisor of a and b. We now prove uniqueness. Suppose that c and t are two integers, both of which are greatest common divisors of a and b. Then c t since c is a common divisor of a and b and t is a greatest common divisor, and t c since t is a common divisor of a and b and c is a greatest common divisor. Thus t = ±c by f) of Lemma 1.4. Since c and t are both positive, c = t. If a, b Z are not both zero, write gcd(a, b) for the greatest common divisor of a and b. The proof of Theorem 1.6 shows that: Theorem 1.7. Suppose that a, b Z are not both zero. Let d = gcd(a, b). Then az + bz = {ma + nb m, n Z} = {dl l Z} = dz. Observation: If a = qb + r with 0 r < b, then gcd(a, b) = gcd(b, r). As an example, we compute gcd(91, 196), using the Euclidean Algorithm. gcd(91, 196) = gcd(196, 91) = gcd(91, 14) since 196 = 2 91 + 14 = gcd(14, 7) since 91 = 6 14 + 7 = gcd(7, 0) since 14 = 2 7 + 0 = 7 We can now work back through the computation to find: gcd(91, 196) = 7 = 91 6 14 = 91 6 ( 2 91 + 196) = 13 91 6 196. We say that two nonzero integers a and b are relatively prime if gcd(a, b) = 1. Relatively prime integers a and b have the following very important property. 3

Theorem 1.8. Suppose that a, b Z are nonzero and gcd(a, b) = 1. Suppose that c Z and a bc. Then a c. Proof. By Theorem 1.6, there exist s, t Z such that 1 = sa+tb. Since a bc by assumption, bc = qa for some q Z. We have Thus a c. c = 1c = (sa + tb)c = sac + tbc = a(sc + tq). Definition 1.9. Suppose that m and n are nonzero integers. The least common multiple of m and n is the smallest positive integer v such that m v and n v. We will write lcm(m, n) for the least common multiple of two nonzero integers m and n. Lemma 1.10. Suppose that m, n are positive integers. Then 1. gcd(m, n)lcm(m, n) = mn. 2. If w Z is such that m w and n w then lcm(m, n) w. Definition 1.11. A prime p is an integer p 2 such that given a factorization p = mn with positive integers m, n, then m = 1 or n = 1. Theorem 1.12. Suppose that p is a prime number and a, b Z are such that p ab. Then p a or p b. Proof. Assume that p a. Since gcd(a, p) divides p and p is a prime, we have that gcd(a, p) = 1 or gcd(a, p) = p. Since p a, we have gcd(a, p) = 1. Now p b by Theorem 1.8. We now prove the fundamental theorem of arithmetic. Theorem 1.13. Suppose that n > 1 is an integer. Then there is a unique factorization (1) n = p a 1 1 pa 2 2 pa k k where k is a positive integer, p 1 < p 2 < < p k are primes and a 1,..., a k are positive integers. Proof. We first prove the existence of such a factorization for every integer n > 1. We assume that the existence of such a factorization is false, and will derive a contradiction. Let S be the set of all integers n > 1 for which there is not a factorization (1). By our assumption, S is nonempty. Since S is bounded below, it has a smallest element m, by well ordering of the integers. Now m is not a prime, since otherwise it could not be in S. Thus m has a positive divisor a which is not 1 and not m. We have m = ab for appropriate b Z which is also not 1 and not m. We thus have 1 < a < m and 1 < b < m. Since m is the least element of S, we must have a S and b S. Thus both a and b have factorizations of the form of (1), so that their product m = ab also has a factorization of the form of (1). This gives a contradiction to our assumption that S is nonempty. We conclude that every integer n > 1 must have a factorization into products of primes of the form of (1). Now we prove the uniqueness of the expression (1). We will assume that uniqueness is false, and derive a contradiction. Let T be the set of integers which are greater than 1 and which do not have a unique factorization of the form (1). Since we are assuming that T is nonempty, and T is bounded from below, there is a smallest element m of T, by well 4

ordering of the integers. m necessarily has two distinct factorizations into primes of the form (1), say (2) m = p a 1 1 pa 2 2 pa k k and (3) m = q b 1 1 qb 2 2 qb l l. Thus p 1 divides m = q b 1 1 qb l l. By Theorem 1.12, we have that p 1 divides q b 1 1 or p 1 divides q b 2 2 qb l l. Repeating this argument at most l 1 times, we conclude that p 1 divides q b i i for some i. Now we conclude by further application of Theorem 1.12 that p 1 q i. Since q i is a prime, and p 1 > 1, we must have that p 1 = q i. Dividing p 1 out of the expressions (2) and (3), we have two distinct factorizations m = p a 1 1 1 p a 2 2 p pa k k = qb 1 1 qb i 1 i q b l l, 1 so that we either have that m p 1 T, which is impossible since m > m p 1 is the smallest element of T, or m = p 1. But in this case m = q 1 = p 1, giving a contradiction to the assumption that the factorizations (2) and (3) are distinct. Theorem 1.14. (Euclid) There are infinitely many primes. Proof. Suppose that the theorem is false. Then there are only finitely many primes, p 1, p 2,..., p m. Let q = p 1 p 2 p m + 1. Since q > p i for 1 i m, q cannot be a prime. If a prime p i divided q, then p i would have to divide 1, which is impossible, by e) of Lemma 1.4. Thus q is an integer which is greater than 1 and is not divisible by a prime. But this is impossible, since q is divisible by a prime by Theorem 1.13 5