Direct Proof and Counterexample III Part 2 Lecture 16 Section 3.3 Tue, Feb 13, 2007.

Slides:



Advertisements
Similar presentations
1 Lect. 12: Number Theory. Contents Prime and Relative Prime Numbers Modular Arithmetic Fermat’s and Euler’s Theorem Extended Euclid’s Algorithm.
Advertisements

Sets, Combinatorics, Probability, and Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS Slides.
1 Section 2.4 The Integers and Division. 2 Number Theory Branch of mathematics that includes (among other things): –divisibility –greatest common divisor.
Chapter Primes and Greatest Common Divisors ‒Primes ‒Greatest common divisors and least common multiples 1.
February 19, 2015Applied Discrete Mathematics Week 4: Number Theory 1 The Growth of Functions Question: If f(x) is O(x 2 ), is it also O(x 3 )? Yes. x.
NUMBER THEORY Chapter 1: The Integers. The Well-Ordering Property.
Direct Proof and Counterexample II Lecture 12 Section 3.2 Thu, Feb 9, 2006.
Basic properties of the integers
Prime An integer greater than one is called a prime number if its only positive divisors (factors) are one and itself. Examples: The first six primes are.
Discrete Structures Chapter 2 Part B Mathematical Induction
Lecture 4 Discrete Mathematics Harper Langston. Algorithms Algorithm is step-by-step method for performing some action Cost of statements execution –Simple.
Fundamental Theorem of Arithmetic. Euclid's Lemma If p is a prime that divides ab, then p divides a or p divides b.
1 Number Theory and Methods of Proof Content: Properties of integer, rational and real numbers. Underlying theme: Methods of mathematical proofs.
Fall 2002CMSC Discrete Structures1 Let us get into… Number Theory.
The Integers and Division
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.
9/2/2015Discrete Structures1 Let us get into… Number Theory.
Rings,Fields TS. Nguyễn Viết Đông Rings, Integral Domains and Fields, 2. Polynomial and Euclidean Rings 3. Quotient Rings 2.
Module :MA3036NI Cryptography and Number Theory Lecture Week 7
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!
Numbers MST101. Number Types 1.Counting Numbers (natural numbers) 2.Whole Numbers 3.Fractions – represented by a pair of whole numbers a/b where b ≠ 0.
1 Introduction to Abstract Mathematics Chapter 3: Elementary Number Theory and Methods of Proofs Instructor: Hayk Melikya Direct.
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.
Chapter 5 Existence and Proof by contradiction
DETERMINING PRIMITIVE ROOTS by Christoph and John C. Witzgall September 15, 2015.
Number Theory 이재원 School of Information Technology Sungshin W. University.
Boolean Algebras Lecture 27 Section 5.3 Wed, Mar 7, 2007.
Foundations of Discrete Mathematics Chapter 4 By Dr. Dalia M. Gil, Ph.D.
Chapter 2 Logic 2.1 Statements 2.2 The Negation of a Statement 2.3 The Disjunction and Conjunction of Statements 2.4 The Implication 2.5 More on Implications.
Properties of Sets Lecture 26 Section 5.2 Tue, Mar 6, 2007.
Application: Algorithms Lecture 20 Section 3.8 Wed, Feb 21, 2007.
Direct Proof and Counterexample III
Properties of the gcd Theorem: For any two integers a,b there exist integers x,y such that xa + yb = gcd(a,b). A proof will not be given at this point.
1 Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications Kenneth H. Rosen (5 th Edition) Chapter 2 The Fundamentals: Algorithms,
Application: Algorithms Lecture 19 Section 3.8 Tue, Feb 20, 2007.
Direct Proof and Counterexample I Lecture 11 Section 3.1 Fri, Jan 28, 2005.
Part II – Theory and Computations. Major Ideas....
Boolean Algebras Lecture 24 Section 5.3 Wed, Mar 22, 2006.
Chapter 4 With Question/Answer Animations 1. Chapter Summary Divisibility and Modular Arithmetic - Sec 4.1 – Lecture 16 Integer Representations and 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 Lecture 1 Text book: Discrete Mathematics and its Applications, 7 th Edition.
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 II
CMSC Discrete Structures
Warm-up Multiply the factors and write in standard form.
CSE 311 Foundations of Computing I
MATH301- DISCRETE MATHEMATICS Copyright © Nahid Sultana Dr. Nahid Sultana Chapter 4: Number Theory and Cryptography.
Applied Discrete Mathematics Week 4: Number Theory
Direct Proof and Counterexample III
Foundations of Discrete Mathematics
Direct Proof and Counterexample IV
The sum of any two even integers is even.
Indirect Proof by Contradiction Direct Proof by Cases
Direct Proof and Counterexample II
GCD and LCM relationship
Direct Proof and Counterexample III
Copyright © Cengage Learning. All rights reserved.
Lecture 43 Section 10.1 Wed, Apr 6, 2005
Direct Proof and Counterexample I
Direct Proof and Counterexample IV
Application: Algorithms
Application: Algorithms
Lecture 5 Number Theory & Proof Methods
Applied Discrete Mathematics Week 10: Introduction to Counting
Counting Elements of Disjoint Sets: The Addition Rule
Number Theory.
Number Theory.
Introduction to Proofs
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.
Sets, Combinatorics, Probability, and Number Theory
Presentation transcript:

Direct Proof and Counterexample III Part 2 Lecture 16 Section 3.3 Tue, Feb 13, 2007

Example: Direct Proof Theorem: Let a and b be integers. If a | b and b | a, then a =  b. Proof:

Example: Direct Proof Corollary: If a, b  N and a | b and b | a, then a = b. This is analogous to the set-theoretic statement that if A  B and B  A, then A = B. Preview: A property ~ is called antisymmetry if a ~ b and b ~ a implies that a = b.

Example: Direct Proof Theorem: Let a, b, c be integers. If a | b and b | a + c, then a | c. Proof:

Example: Direct Proof Theorem: If n is odd, then 8 | (n 2 – 1). Proof:

Proving Biconditionals To prove a statement  x  D, P(x)  Q(x), we must prove both  x  D, P(x)  Q(x) and  x  D, Q(x)  P(x).

Proving Biconditionals Or we could prove both  x  D, P(x)  Q(x) and  x  D,  P(x)   Q(x).

Proving Biconditionals A half-integer is a number of the form n + ½, for some integer n. Theorem: Let a and b be real numbers. Then a + b and a – b are integers if and only if a and b are both integers or both half-integers.

Proving Biconditionals Proof (  ): Let a and b be real numbers and suppose that a + b and a – b are integers. …

Proving Biconditionals Case I: Suppose m and n are both even or both odd. Then …

Proving Biconditionals Case II: Suppose one of m and n is even and the other is odd. Then …

Proving Biconditionals Proof (  ): Let a and b be real numbers and suppose that a and b are both integers or both half- integers. Case I: Suppose that a and b are both integers. …

Proving Biconditionals Case II: Suppose a and b are both half- integers. …

The Fundamental Theorem of Arithmetic Theorem: Let a be a positive integer. Then a = p 1 a 1 p 2 a 2 …p k a k, where each p i is a prime and each a i is a nonnegative integer. Furthermore, this representation is unique except for the order of factors.

Application of the Fundamental Theorem of Arithmetic Let a and b be positive integers. Then a = p 1 a 1 p 2 a 2 …p k a k and b = p 1 b 1 p 2 b 2 …p k b k. Then the g.c.d. of a and b is gcd(a, b) = p 1 min(a 1, b 1 ) p 2 min(a 2, b 2 ) …p k min(a k, b k )

Application of the Fundamental Theorem of Arithmetic and the l.c.m. of a and b is lcm(a, b) = p 1 max(a 1, b 1 ) p 2 max(a 2, b 2 ) …p k max(a k, b k ).

Example: gcd’s and lcm’s Let a = 4200 and b = Then a = 2 3  3 1  5 2  7 1 and b = 2 3  3 2  5 1  7 0. Then gcd(a, b) = 2 3  3 1  5 1  7 0 = 120 and lcm(a, b) = 2 3  3 2  5 2  7 1 =

Example: gcd’s and lcm’s Corollary: Let a and b be positive integers. Then gcd(a, b)  lcm(a, b) = ab. Comment: The Euclidean algorithm is a lot faster.