Chapter 5: The Integers

Similar documents
5: The Integers (An introduction to Number Theory)

4 Powers of an Element; Cyclic Groups

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.

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

NOTES ON INTEGERS. 1. Integers

2 Elementary number theory

NOTES ON SIMPLE NUMBER THEORY

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

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

(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.

Writing Assignment 2 Student Sample Questions

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

0 Sets and Induction. Sets

Lecture Notes 1 Basic Concepts of Mathematics MATH 352

Elementary Properties of the Integers

4 Number Theory and Cryptography

Chapter 2. Divisibility. 2.1 Common Divisors

1. multiplication is commutative and associative;

Introduction to Induction (LAMC, 10/14/07)

Discrete Structures Lecture Primes and Greatest Common Divisor

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

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

2x 1 7. A linear congruence in modular arithmetic is an equation of the form. Why is the solution a set of integers rather than a unique integer?

Ch 4.2 Divisibility Properties

Chapter 1 A Survey of Divisibility 14

Math 110 FOUNDATIONS OF THE REAL NUMBER SYSTEM FOR ELEMENTARY AND MIDDLE SCHOOL TEACHERS

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

MATH FINAL EXAM REVIEW HINTS

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

M381 Number Theory 2004 Page 1

3 The fundamentals: Algorithms, the integers, and matrices

Course 2BA1: Trinity 2006 Section 9: Introduction to Number Theory and Cryptography

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

Final Exam Review. 2. Let A = {, { }}. What is the cardinality of A? Is

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

An integer p is prime if p > 1 and p has exactly two positive divisors, 1 and p.

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,...,

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

Definitions. Notations. Injective, Surjective and Bijective. Divides. Cartesian Product. Relations. Equivalence Relations

Mathematical Reasoning & Proofs

Chapter 5. Number Theory. 5.1 Base b representations

Course MA2C02, Hilary Term 2013 Section 9: Introduction to Number Theory and Cryptography

Notes on Systems of Linear Congruences

2. THE EUCLIDEAN ALGORITHM More ring essentials

CHAPTER 6. Prime Numbers. Definition and Fundamental Results

2x 1 7. A linear congruence in modular arithmetic is an equation of the form. Why is the solution a set of integers rather than a unique integer?

Introduction to Abstract Mathematics

Simultaneous Linear, and Non-linear Congruences

Contribution of Problems

4.3 - Primes and Greatest Common Divisors

Number Theory and Graph Theory. Prime numbers and congruences.

Mat Week 8. Week 8. gcd() Mat Bases. Integers & Computers. Linear Combos. Week 8. Induction Proofs. Fall 2013

Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Spring 2006

Chapter 1 : The language of mathematics.

Student Responsibilities Week 8. Mat Section 3.6 Integers and Algorithms. Algorithm to Find gcd()

Complete Induction and the Well- Ordering Principle

32 Divisibility Theory in Integral Domains

C-N Math 207 Discrete Math

C-N Math 207 Discrete Math

CSC B36 Additional Notes sample induction and well-ordering proofs. c Nick Cheng

D-MATH Algebra I HS18 Prof. Rahul Pandharipande. Solution 1. Arithmetic, Zorn s Lemma.

4 PRIMITIVE ROOTS Order and Primitive Roots The Index Existence of primitive roots for prime modulus...

3 FUNCTIONS. 3.1 Definition and Basic Properties. c Dr Oksana Shatalov, Fall

5.1. Primes, Composites, and Tests for Divisibility

PRIME NUMBERS YANKI LEKILI

The Fundamental Theorem of Arithmetic

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:

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.

Lecture 2: A crash course in Real Analysis

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

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

Integers and Division

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

Rings and modular arithmetic

1. Factorization Divisibility in Z.

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

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

Part V. Chapter 19. Congruence of integers

In N we can do addition, but in order to do subtraction we need to extend N to the integers

Axioms for the Real Number System

Math 2070BC Term 2 Weeks 1 13 Lecture Notes

7. Prime Numbers Part VI of PJE

CHAPTER 8: EXPLORING R

Contribution of Problems

CSE 1400 Applied Discrete Mathematics Proofs

MATH 102 INTRODUCTION TO MATHEMATICAL ANALYSIS. 1. Some Fundamentals

CHAPTER 3. Number Theory

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

= 1 2x. x 2 a ) 0 (mod p n ), (x 2 + 2a + a2. x a ) 2

Math 118: Advanced Number Theory. Samit Dasgupta and Gary Kirby

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

Applied Cryptography and Computer Security CSE 664 Spring 2017

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

Do not open this exam until you are told to begin. You will have 75 minutes for the exam.

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

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

1 Lecture 1 (1/5/2009)

Transcription:

c Dr Oksana Shatalov, Fall 2014 1 Chapter 5: The Integers 5.1: Axioms and Basic Properties Operations on the set of integers, Z: addition and multiplication with the following properties: A1. Addition is associative: A2. Addition is commutative: A3. Z has an identity element with respect to addition namely, the integer 0. A4. Every integer x in Z has an inverse w.r.t. addition, namely, its negative x : A5. Multiplication is associative: A6. Multiplication is commutative: A7. Z has an identity element with respect to multiplication namely, the integer 1. (and 1 0.) A8. Distributive Law: REMARK 1. We do not prove A1-A8. We take them as axioms: statements we assume to be true about the integers. We use xy instead x y and x y instead x + ( y). PROPOSITION 2. Let a, b, c Z. P1. If a + b = a + c then b = c. (cancellation law for addition) P2. a 0 = 0 a = 0. P3. ( a)b = a( b) = (ab) P4. ( a) = a P5. ( a)( b) = ab P6. a(b c) = ab bc P7. ( 1)a = a P8. ( 1)( 1) = 1.

c Dr Oksana Shatalov, Fall 2014 2 Proof Z contains a subset Z +, called the positive integers, that has the following properties: A9. Closure property: Z + is closed w.r.t. addition and multiplication: A10. Trichotomy Law: for all x Z exactly one is true: PROPOSITION 3. If x Z, x 0, then x 2 Z +. COROLLARY 4. Z + = {1, 2, 3,..., n, n + 1,...}

c Dr Oksana Shatalov, Fall 2014 3 Inequalities (the order relation less than) DEFINITION 5. For x, y Z, x < y if and only y x Z +. Note that Z + = {n Z n > 0}. PROPOSITION 6. For all a, b Z: Q1. Exactly one of the following holds: a < b, b < a, or a = b. Q2. If a > 0 then a < 0; if a < 0 then a > 0. Q3. If a > 0 and b > 0 then a + b > 0 and ab > 0. Q4. If a < 0 and b < 0 then a + b < 0 and ab > 0. A11. The Well Ordering Principle Every nonempty subset on Z + has a smallest element; that is, if S is a nonempty subset of Z +, then there exists a S such that a x for all x S. PROPOSITION 7. There is no integer x such that 0 < x < 1.

c Dr Oksana Shatalov, Fall 2014 4 COROLLARY 8. 1 is the smallest element of Z +. COROLLARY 9. The only integers having multiplicative inverses in Z are ±1. 5.2: Induction THEOREM 10. (First Principle of Mathematical Induction) Let P (n) be a statement about the positive integer n. Suppose that P (1) is true. Whenever k is a positive integer for which P (k) is true, then P (k + 1) is true. Then P (n) is true for every positive integer n.

c Dr Oksana Shatalov, Fall 2014 5 Strategy The proof by induction consists of three steps: Basic Step. Verify that P (1) is true. Induction hypothesis. Assume that P (k) is true. Inductive Step. With the assumption made, prove that P (k + 1) is true. EXAMPLE 11. Prove by induction the formula for the sum of the first n positive integers 1 + 2 + 3 +... + n = n(n + 1). (1) 2 EXAMPLE 12. Prove by induction the formula for the sum of the first 2n + 1 odd numbers.

c Dr Oksana Shatalov, Fall 2014 6 EXAMPLE 13. Prove by induction the following formula 1 2 + 2 2 + 3 2 +... + n 2 = n(n + 1)(2n + 1) 6 Paradox: All horses are of the same color. Question: What s wrong in the following proof of G. Pólya? Basic Step. If there is only one horse, there is only one color. Inductive step. Assume as induction hypothesis that within any set of n horses, there is only one color. Now look at any set of k+1 horses. Number them: 1, 2, 3,..., k, k+1. Consider the sets {1, 2, 3,..., k} and {2, 3, 4,..., k + 1}. Each is a set of only n horses, therefore within each there is only one color. But the two sets overlap, so there must be only one color among all k + 1 horses.

c Dr Oksana Shatalov, Fall 2014 7 5.3: The Division Algorithm And Greatest Common Divisor Recall A11. The Well Ordering Principle Every nonempty subset on Z + has a smallest element; that is, if S is a nonempty subset of Z +, then there exists a S such that a x for all x S. THEOREM 14. (Division Algorithm) Let a Z, b Z +. Then there exist unique integers q and r such that a = bq + r, where 0 r < b.

c Dr Oksana Shatalov, Fall 2014 8 Divisors DEFINITION 15. Let a and b be integers. We say that b divides a, written b a, if there is an integer c such that bc = a. We say that b and c are factors of a, or that a is divisible by b and c. For example, EXAMPLE 16. Prove that 3 4 n 1, where n Z +. Greatest common divisor (gcd) DEFINITION 17. Let a and b be integers, not both zero. The greatest common divisor of a and b (written gcd(a, b), or (a, b)) is the largest positive integer d that divides both a and b. EXAMPLE 18. Find gcd(18, 24).

c Dr Oksana Shatalov, Fall 2014 9 Euclidean Algorithm is based on the following two lemmas: LEMMA 19. Let a and b be integers. If a b then gcd(a, b) = a. LEMMA 20. Let a and b be two positive integers such that b a. Then gcd(a, b) = gcd(a, b a). COROLLARY 21. Let a and b be integers, not both zero. Suppose that there exist integers q 1 and r 1 such that b = aq 1 + r 1, 0 r 1 < a. Then gcd(a, b) = gcd(a, r 1 ). Procedure for finding gcd of two integers (the Euclidean Algorithm)

c Dr Oksana Shatalov, Fall 2014 10 EXAMPLE 22. Find gcd(1176, 3087). EXAMPLE 23. Find integers x and y such that 147 = 1176x + 3087y. COROLLARY 24. If d = gcd(a, b) then there exist integers x and y such that ax + by = d. Moreover, d is the minimal natural number with such property. Relatively prime (or coprime) integers DEFINITION 25. Two integers a and b, not both zero, are said to be relatively prime (or coprime), if gcd(a, b) = 1. For example, Combining the above definition and the proof of Corollary 24, we obtain THEOREM 26. a and b are relatively prime integers if and only if there exist integers x and y such that ax + by = 1. THEOREM 27. Let a, b, c Z. Suppose a bc and gcd(a, b) = 1. Then a c.

c Dr Oksana Shatalov, Fall 2014 11 5.4: Primes and Unique Factorization DEFINITION 28. An integer p greater than 1 is called a prime number if the only divisors of p are ±1 and ±p. If an integer greater than 1 is not prime, it is called composite. For example, Sieve of Eratosthenes. The method to find all primes from 2 to n. 1. Write out all integers from 2 to n. 2. Select the smallest integer k that is not selected or crossed out. 3. Cross out all multiples of k. 4. If not all numbers are selected or crossed out return to step 2. Otherwise, all selected numbers are prime. EXAMPLE 29. Find all two digit prime numbers. 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 REMARK 30. If the number k in step 2 is greater than n then all numbers that are already selected or not crossed out are prime. Prime Factorization of a positive integer n greater than 1 is a decomposition of n into a product of primes. THEOREM 31. Unique Prime Factorization Theorem. Any positive integer n greater than one admits a prime factorization. This factorization is unique up to rearranging of the factors. EXAMPLE 32. Write 1224 in standard form (i.e. find its prime factorization).

c Dr Oksana Shatalov, Fall 2014 12 LEMMA 33. Let a and b be integers. If p is prime and divides ab, then p divides either a, or b. (Note, p also may divide both a and b.) COROLLARY 34. Let a 1, a 2,..., a n be integers.if p is prime and divides a 1 a 2... a n, then p divides at least one integer from a 1, a 2,..., a n. Note that Lemma 33 corresponds to n = 2. General proof of the above Corollary is by induction. THEOREM 35. (Second Principle of Mathematical Induction) Let P (n) be a statement about the positive integer n. Suppose that P (1) is true. Whenever k is a positive integer for which P (i) is true for every positive integer i such that i k, then P (k + 1) is true. Then P (n) is true for every positive integer n. THEOREM 36. Unique Prime Factorization Theorem. Any positive integer n greater than one admits a prime factorization. This factorization is unique up to rearranging of the factors. Proof of the Unique Prime Factorization Theorem. Existence: Use the Second Principle of Mathematical Induction. P (n) : Basic step: Induction hypothesis: Case 1: k + 1 is prime Case 1: k + 1 is composite

c Dr Oksana Shatalov, Fall 2014 13 Uniqueness Use the Second Principle of Mathematical Induction. P (n) : Basic step: Induction hypothesis: COROLLARY 37. There is infinitely many prime numbers.

c Dr Oksana Shatalov, Fall 2014 14 EXAMPLE 38. Prove that if a is a positive integer of the form 4n + 3, then at least one prime divisor of a is of the form 4n + 3.