All About Division. Definition / A nonzero integer t is a divisor of an integer s if there is an integer u such that s = tu. / If t is a divisor of s,

Slides:



Advertisements
Similar presentations
The Fundamental Theorem of Arithmetic. Primes p > 1 is prime if the only positive factors are 1 and p if p is not prime it is composite The Fundamental.
Advertisements

Division & Divisibility. a divides b if a is not zero there is a m such that a.m = b a is a factor of b b is a multiple of a a|b Division.
1 In this lecture  Number Theory ● Rational numbers ● Divisibility  Proofs ● Direct proofs (cont.) ● Common mistakes in proofs ● Disproof by counterexample.
Chapter 3 Elementary Number Theory and Methods of Proof.
Copyright © Cengage Learning. All rights reserved. CHAPTER 5 SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION.
Thinking Mathematically
3.3 Divisibility Definition If n and d are integers, then n is divisible by d if, and only if, n = dk for some integer k. d | n  There exists an integer.
5.1 Number Theory. The study of numbers and their properties. The numbers we use to count are called the Natural Numbers or Counting Numbers.
Thinking Mathematically
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
Chapter Primes and Greatest Common Divisors ‒Primes ‒Greatest common divisors and least common multiples 1.
The Fundamental Theorem of Arithmetic (2/12) Definition (which we all already know). A number greater than 1 is called prime if its only divisors are 1.
Greatest Common Divisor. Definitions Let a and b be two non-zero integers. The greatest common divisor of a and b, denoted gcd(a,b) is the largest of.
Basic properties of the integers
1.  The set N = {1,2,3,4,……..} is known as natural numbers or the set of positive integers  The natural numbers are used mainly for :  counting  ordering.
Elementary Number Theory and Methods of Proof. Basic Definitions An integer n is an even number if there exists an integer k such that n = 2k. An integer.
Chapter II. THE INTEGERS
Inverses and GCDs Supplementary Notes Prepared by Raymond Wong
Fundamental Theorem of Arithmetic. Euclid's Lemma If p is a prime that divides ab, then p divides a or p divides b.
1 Strong Mathematical Induction. Principle of Strong Mathematical Induction Let P(n) be a predicate defined for integers n; a and b be fixed integers.
Properties of the Integers: Mathematical Induction
Fall 2002CMSC Discrete Structures1 Let us get into… Number Theory.
Chapter Number Theory 4 4 Copyright © 2013, 2010, and 2007, Pearson Education, Inc.
BY MISS FARAH ADIBAH ADNAN IMK
Homework Review notes Complete Worksheet #2. Homework State whether the conditional sentence is true or false 1.If 1 = 0, then 1 = – 1 True F F T.
Chapter 2 The Fundamentals: Algorithms, the Integers, and Matrices
1 Properties of Integers Objectives At the end of this unit, students should be able to: State the division algorithm Apply the division algorithm Find.
February 24, 2015Applied Discrete Mathematics Week 4: Number Theory 1 Modular Arithmetic Let a be an integer and m be a positive integer. We denote by.
Discrete Mathematics, 1st Edition Kevin Ferland
Numbers, Operations, and Quantitative Reasoning.
Mathematical Induction. F(1) = 1; F(n+1) = F(n) + (2n+1) for n≥ F(n) n F(n) =n 2 for all n ≥ 1 Prove it!
Factors and Multiples. Definition of Factors and Multiples If one number is a factor of a second number or divides the second (as 3 is a factor of 12),
The Integers. The Division Algorithms A high-school question: Compute 58/17. We can write 58 as 58 = 3 (17) + 7 This forms illustrates the answer: “3.
Cyclic Groups (9/25) Definition. A group G is called cyclic if there exists an element a in G such that G =  a . That is, every element of G can be written.
5.1 Divisibility. Natural Numbers The set of natural numbers or counting numbers is {1,2,3,4,5,6,…}
2. 1 – The Meaning and Properties of Fractions 2
Math 409/409G History of Mathematics Books VII – IX of the Elements Part 3: Prime Numbers.
Foundations of Discrete Mathematics Chapter 4 By Dr. Dalia M. Gil, Ph.D.
Application: Algorithms Lecture 20 Section 3.8 Wed, Feb 21, 2007.
Ref: Pfleeger96, Ch.31 Properties of Arithmetic Reference: Pfleeger, Charles P., Security in Computing, 2nd Edition, Prentice Hall, 1996.
Divisibility and Modular Arithmetic
Slide Copyright © 2009 Pearson Education, Inc. 5.1 Number Theory.
Prime Numbers and composite numbers
1 Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications Kenneth H. Rosen (5 th Edition) Chapter 2 The Fundamentals: Algorithms,
Ch04-Number Theory and Cryptography 1. Introduction to Number Theory Number theory is about integers and their properties. We will start with the basic.
Number Theory: Prime and Composite Numbers
Chapter 4 With Question/Answer Animations 1. Chapter Motivation Number theory is the part of mathematics devoted to the study of the integers and their.
Number Theory Lecture 1 Text book: Discrete Mathematics and its Applications, 7 th Edition.
Fuw-Yi Yang1 Textbook: Introduction to Cryptography 2nd ed. By J.A. Buchmann Chap 1 Integers Department of Computer Science and Information Engineering,
Agenda Review:  Relation Properties Lecture Content:  Divisor and Prime Number  Binary, Octal, Hexadecimal Review & Exercise.
Number Theory. Introduction to Number Theory Number theory is about integers and their properties. We will start with the basic principles of divisibility,
Direct Proof and Counterexample III: Divisibility
CMSC Discrete Structures
Chapter 5: Number Theory
Copyright © 2016, 2013, and 2010, Pearson Education, Inc.
Thinking Critically 4.1 Divisibility Of Natural Numbers
Exercise 24 ÷ 2 12.
Applied Discrete Mathematics Week 4: Number Theory
Direct Proof and Counterexample III
Foundations of Discrete Mathematics
Direct Proof and Counterexample III
Copyright © Cengage Learning. All rights reserved.
Algebra 1 Section 1.6.
Copyright © 2013, 2010, and 2007, Pearson Education, Inc.
Applied Discrete Mathematics Week 10: Introduction to Counting
PRIME AND COMPOSITE NUMBERS
Prime Factorization FACTOR TREE.
Number Theory.
THE WELL ORDERING PROPERTY
From the last time: gcd(a, b) can be characterized in two different ways: It is the least positive value of ax + by where x and y range over integers.
Presentation transcript:

All About Division

Definition / A nonzero integer t is a divisor of an integer s if there is an integer u such that s = tu. / If t is a divisor of s, we write t | s, read 't divides s' / A nonzero integer t is a divisor of an integer s if there is an integer u such that s = tu. / If t is a divisor of s, we write t | s, read 't divides s'

Vocabulary / We also say that s is a multiple of t. / A prime is an integer greater than 1 whose only positive divisors are 1 and itself. / A positive integer with divisors other than itself and 1 is composite. / We also say that s is a multiple of t. / A prime is an integer greater than 1 whose only positive divisors are 1 and itself. / A positive integer with divisors other than itself and 1 is composite.

Example / 8|24 because 24 = 8*3 8 is a divisor of is a multiple of is not prime. 24 is composite. / 8|24 because 24 = 8*3 8 is a divisor of is a multiple of is not prime. 24 is composite.

Theorem 0.1 Division Algorithm / Let a and b be integers with b > 0. / There exist unique integers q and r with the property that a = bq + r, where 0 ≤ r < b / Let a and b be integers with b > 0. / There exist unique integers q and r with the property that a = bq + r, where 0 ≤ r < b

/ Consider every multiple of b. / Since a is an integer, it must lie in some interval [qb,(q+1)b). / Set r = a – qb. / Note that r is an integer with 0 ≤ r < b and a = qb + r as required. / Consider every multiple of b. / Since a is an integer, it must lie in some interval [qb,(q+1)b). / Set r = a – qb. / Note that r is an integer with 0 ≤ r < b and a = qb + r as required. a My Proof (Existence) qb (q+1)b

Proof: (Uniqueness) / Suppose a = q 1 b + r 1 and a = q 2 b + r 2 where 0 ≤ r 1,r 2 < b. We may suppose that r 1 ≥ r 2. / Then 0 ≤ r 1 – r 2 < b, But r 1 – r 2 = (a – q 1 b ) – (a – q 2 b) = (q 2 – q 1 )b / Hence r 1 – r 2 is a non-negative multiple of b that is strictly less than b. / It follows that r 1 – r 2 = 0. / So r 1 = r 2 and then q 1 = q 2 as required. / Suppose a = q 1 b + r 1 and a = q 2 b + r 2 where 0 ≤ r 1,r 2 < b. We may suppose that r 1 ≥ r 2. / Then 0 ≤ r 1 – r 2 < b, But r 1 – r 2 = (a – q 1 b ) – (a – q 2 b) = (q 2 – q 1 )b / Hence r 1 – r 2 is a non-negative multiple of b that is strictly less than b. / It follows that r 1 – r 2 = 0. / So r 1 = r 2 and then q 1 = q 2 as required.

Note / In our existence proof, we said that "a must lie" in an interval … / How do we know that? It is not a consequence of algebra(+ - * \) or of order ( ) / It is a consequence of the well ordering principle. / In our existence proof, we said that "a must lie" in an interval … / How do we know that? It is not a consequence of algebra(+ - * \) or of order ( ) / It is a consequence of the well ordering principle.

Gallian's proof / S = {a–bk | k is an integer, a–bk > 0} / By the WOP, there is a smallest element of S, call it r. / S = {a–bk | k is an integer, a–bk > 0} / By the WOP, there is a smallest element of S, call it r. a a–bkr=a–bq

It remains to show that r < b. To get a contradiction, suppose r ≥ b. Then r – b ≥ 0. But r = a – bk for some integer k, So r – b = a – (k+1)b ≥ 0 Then r – b is in S and smaller than r. This contradiction shows r < b. To get a contradiction, suppose r ≥ b. Then r – b ≥ 0. But r = a – bk for some integer k, So r – b = a – (k+1)b ≥ 0 Then r – b is in S and smaller than r. This contradiction shows r < b.

Given a, b find q, r / Divide 38 by 7: / Write: 38 = 5*7 + 3, so q = 5, r = 3 / Divide -38 by 7: / Write: -38 = -6*7 + 4, so q = -6, r = 4 / Divide 38 by 7: / Write: 38 = 5*7 + 3, so q = 5, r = 3 / Divide -38 by 7: / Write: -38 = -6*7 + 4, so q = -6, r = 4