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

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

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.

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

Well-Ordering Principle. Axiom: Every nonempty subset of Z + has a least element. That is, if S Z + and S, then S has a smallest element.

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:

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

Principles of Real Analysis I Fall I. The Real Number System

Complete Induction and the Well- Ordering Principle

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

Integers modulo N. Geoff Smith c 1998

Notes on Systems of Linear Congruences

Definition For a set F, a polynomial over F with variable x is of the form

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

ALGEBRA. 1. Some elementary number theory 1.1. Primes and divisibility. We denote the collection of 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:

Chapter 5: The Integers

Chapter 1 : The language of mathematics.

The Fundamental Theorem of Arithmetic

Chapter 2. Divisibility. 2.1 Common Divisors

NOTES ON INTEGERS. 1. Integers

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

Four Basic Sets. Divisors

Division Algorithm B1 Introduction to the Division Algorithm (Procedure) quotient remainder

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.

The Real Number System

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

EDULABZ INTERNATIONAL NUMBER SYSTEM

Chapter 1 A Survey of Divisibility 14

Ch 4.2 Divisibility Properties

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

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

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

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

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

Example: This theorem is the easiest way to test an ideal (or an element) is prime. Z[x] (x)

Euclidean Domains. Kevin James

Homework 3, solutions

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

5: The Integers (An introduction to Number Theory)

Contribution of Problems

OSTROWSKI S THEOREM FOR Q(i)

To hand in: (a) Prove that a group G is abelian (= commutative) if and only if (xy) 2 = x 2 y 2 for all x, y G.

2.2 Some Consequences of the Completeness Axiom

Commutative Rings and Fields

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

2. THE EUCLIDEAN ALGORITHM More ring essentials

4 Powers of an Element; Cyclic Groups

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

Contribution of Problems

MATH10040 Chapter 1: Integers and divisibility

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

Intermediate Math Circles February 29, 2012 Linear Diophantine Equations I

Chapter 5. Number Theory. 5.1 Base b representations

Chapter 3 Basic Number Theory

PRIME NUMBERS YANKI LEKILI

CHAPTER 3. Number Theory

AN ALGEBRAIC PROOF OF RSA ENCRYPTION AND DECRYPTION

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

A n = A N = [ N, N] A n = A 1 = [ 1, 1]. n=1

. As the binomial coefficients are integers we have that. 2 n(n 1).

Studying Rudin s Principles of Mathematical Analysis Through Questions. August 4, 2008

Divisibility of Natural Numbers

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

The theory of numbers

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

Chapter 1 The Real Numbers

Elementary Properties of the Integers

Subsets of Euclidean domains possessing a unique division algorithm

Structure of R. Chapter Algebraic and Order Properties of R

Notes for Recitation 6

x y B =. v u Note that the determinant of B is xu + yv = 1. Thus B is invertible, with inverse u y v x On the other hand, d BA = va + ub 2

However another possibility is

Module 1. Integers, Induction, and Recurrences

Lecture 2. The Euclidean Algorithm and Numbers in Other Bases

Climbing an Infinite Ladder

Cool Results on Primes

Notes on arithmetic. 1. Representation in base B

Standard forms for writing numbers

Chapter One. The Real Number System

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:

Factorization in Polynomial Rings

Carmen s Core Concepts (Math 135)

The Euclidean Algorithm and Multiplicative Inverses

CSE 1400 Applied Discrete Mathematics Proofs

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

Theorems. Theorem 1.11: Greatest-Lower-Bound Property. Theorem 1.20: The Archimedean property of. Theorem 1.21: -th Root of Real Numbers

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.

Summary: Divisibility and Factorization

(a) We need to prove that is reflexive, symmetric and transitive. 2b + a = 3a + 3b (2a + b) = 3a + 3b 3k = 3(a + b k)

MATH FINAL EXAM REVIEW HINTS

Linear Algebra, Theory And Applications. Kenneth Kuttler

Notes 6: Polynomials in One Variable

LECTURE 13. Quotient Spaces

Polynomials. In many problems, it is useful to write polynomials as products. For example, when solving equations: Example:

Chapter 1. Sets and Numbers

2 Lecture 2: Logical statements and proof by contradiction Lecture 10: More on Permutations, Group Homomorphisms 31

MATH 3330 ABSTRACT ALGEBRA SPRING Definition. A statement is a declarative sentence that is either true or false.

Show Your Work! Point values are in square brackets. There are 35 points possible. Some facts about sets are on the last page.

Transcription:

2. Induction and the division algorithm The main method to prove results about the natural numbers is to use induction. We recall some of the details and at the same time present the material in a different fashion to the way it is normally presented in a first course. Principle 2.1 (Well-ordering principle). The natural numbers are wellordered, that is, every non-empty subset S of N contains a least element; that is, there is an element a S such that a b for every b S. Note that it is not possible to prove the well-ordering principle (unless one assumes something equivalent such as the principle of mathematical induction). It is something that seems intuitevely clear that we accept is a property of the natural numbers. Proposition 2.2 (Archimedean principle). If a and b are any positive integers, then there is a natural number n such that na b. Proof. Suppose not, suppose that na < b for every natural number n. Then the set S = { b na n N } is a subset of the natural numbers. As S is non-empty, it contains a smallest element, b ma, say. However, b (m + 1)a S and b (m + 1)a = (b ma) a < b ma, which contradicts the fact that b ma is the smallest element of S. Thus the Archimedean principle does hold. Axiom 2.3 (Induction Principle). Let S be a set of natural numbers with the properties: (1) 1 S (2) if k S then k + 1 S. Then S = N. Theorem 2.4. (2.1) and (2.3) are equivalent. Proof. Assume that (2.1) holds. Let S N be a subset of the natural numbers with the properties (1) 1 S (2) if k S then k + 1 S. 1

Let T = N \ S be the set of natural numbers not in S. Suppose that T is non-empty. As we are assuming (2.1) T has a smallest element a. As a 1 as 1 S. As a is the smallest element of T and a 1 is a natural number smaller than a, it follows that a 1 / T, that is, a 1 S. As a 1 S it follows that a = (a 1) + 1 S. Thus a / T, a contradiction. Thus T is empty so that S = N. Thus (2.1) implies (2.3). (2.3). Now suppose that (2.3) holds. Let S be the set of all natural numbers n such that if T N contains a number no bigger than n then T contains a smallest element. Note that if 1 T then 1 is the smallest element of T. Thus 1 S. Suppose that k S and that T is a subset of the natural numbers which contains k + 1. There are two cases. Either k + 1 is the smallest element of T, in which case there is nothing to prove, or T contains a smaller element a. Then T contains a number no bigger than k, so that T contains a smallest element, as k S. Either way, T contains a smallest element. Thus (2.3) implies (2.1). Theorem 2.5 (Division Algorithm). If a and b are integers and b 0 then there are unique integers q and r, called the quotient and remainder such that 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 S = { a xb x Z, a xb 0 }. If we put x = a then a xb = a + a b a + a a a = 0. Thus S is non-empty. By the well-ordering principle S has a smallest element r = a qb. Suppose that r b. Then r (q + 1)b = r b 0 is a smaller element of S, a contradiction. Thus 0 r < b. This establishes existence in the case b > 0. Now suppose that a = q 1 b + r 1 = q 2 b + r 2, 2

where q 1, q 2, r 1 and r 2 are all integers and 0 r i < b. Then (q 1 q 2 )b = r 1 r 2. Note that b < r 1 r 2 < b. Since r 1 r 2 is a multiple of b, it follows that r 1 r 2 = 0, that is, r 1 = r 2. But then (q 1 q 2 )b = 0, so that q 1 q 2 = 0 as b 0. It follows that q 1 = q 2. This establishes uniqueness, when b > 0. It remains to deal with the case b < 0. In this case b > 0 and there are integers q and r such that a = q( b) + r where 0 r < b = b. Multiplying through by 1 in the first equation we get Finally suppose for i = 1 and 2. In this case a = qb + r where 0 r < b. a = q i b + r i where 0 r i < b, a = q i ( b) + r i where 0 r i < b = b, As b > 0 it follows that q 1 = q 2 and r 1 = r 2. Definition 2.6. Let a and b be two integers, not both zero. The greatest common divisor of a and b is the unique integer d with the following properties (1) d a and d b. (2) If d a and d b then d d. (3) d > 0. Theorem 2.7 (Euclid). If a and b are two integers, not both zero, then there is a unique greatest common divisor d. Proof. We check uniqueness. Suppose that d 1 and d 2 are both the greatest common divisor of a and b. As d 1 is a common divisor and d 2 is the greatest common divisor, we have d 2 d 1. Similarly, as d 2 is a common divisor and d 1 is the greatest common divisor, we have d 1 d 2. Thus, we may find k 1 and k 2 such that d 1 = k 1 d 2 and d 2 = k 2 d 1. It follows that d 2 = k 2 d 1 = k 1 k 2 d 2. Thus k 1 k 2 = 1 so that d 1 = ±d 2. As both d 1 > 0 and d 2 > 0 we must have d 1 = d 2. Thus the greatest common divisor is unique. 3

Now we turn to existence. If a = 0 then we take d = b > 0. Then d 0 and d b, so that d is common divisor. If d a and d b then surely d divides d = b. Thus d is the greatest common divisor. The case b = 0 can be handled by symmetry. So we may assume that both a and b are non-zero. It is easy to see that if d is the greatest common divisor of a and b then it is also the greatest common divisor of a and b, so that we may assume that a and b are positive. Possibly switching a and b we may assume that a b. We may find q and r such that a = qb + r. Note that if d divides b and r then it divides a. Conversely, if d divides a and b then it divides r. Thus the pair { a, b } have the same common divisors as the pair { b, r }. It follows that they have the same greatest common divisors, as well. Therefore it suffices to show that b and r have a greatest common divisor. But r < b a and so we are done by induction on the maximum a of a and b. It is intereting to note that (2.7) gives an algorithm to find the greatest common divisor of a pair of integers, known as the Euclidean algorithm. It is easiest just to give an example. Question 2.8. What is the greatest common divisor of 45 and 210? We first divide 45 into 210, 210 = 4 45 + 30. The quotient is 4 and the remainder is 30. So it suffices to find the greatest common divisor of 45 and 30. We divide 30 into 45, 45 = 1 30 + 15. The quotient is 1 and the remainder is 15. So it suffices to find the greatest common divisor of 15 and 30. We divide 15 into 30, 30 = 2 15 + 0 The quotient is 2 and the remainder is 0. So it suffices to find the greatest common divisor of 0 and 15, which is 15. The greatest common divisor of 45 and 210 is 15. Euclid s algorithm has one very important consequence: Corollary 2.9. Let d be the greatest common divisor of integers a and b, not both zero. Then there are integers λ and µ such that d = λa + µb. 4

Proof. If a = 0 then d = b and we make take λ = µ = 1. Similarly if b = 0. Thus we may assume that a and b are non-zero. Note that d is greatest common divisor of a and b. If d = λ a + µ b then d = (±λ)a + (±µ)b, where we choose the negative sign if a or b is negative. Thus we may assume that both a and b are positive. We may assume that a b. We may write a = qb + r, where 0 r < b. d is the greatest common divisor of a and r, so that by induction we may find x and y so that d = xb + yr. In this case d = xb + yr = xb + y(a qb) = (q + x)b + ya. This completes the induction and the proof. Let us go back to the example above. As we have As we have Thus 45 = 1 30 + 15. 15 = 45 1 30. 210 = 4 45 + 30, 30 = 210 4 45. 15 = 45 1 30 = 45 1 (210 4 45) = 3 45 1 210. 5