Direct Proof and Counterexample III

Slides:



Advertisements
Similar presentations
Lecture 3 – February 17, 2003.
Advertisements

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.
Section 11 Direct Products and Finitely Generated Abelian Groups One purpose of this section is to show a way to use known groups as building blocks to.
The Integers and Division. Outline Division: Factors, multiples Exercise 2.3 Primes: The Fundamental Theorem of Arithmetic. The Division Algorithm Greatest.
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.
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.
Direct Proof and Counterexample II Lecture 12 Section 3.2 Thu, Feb 9, 2006.
Basic properties of the integers
Copyright © Cengage Learning. All rights reserved.
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.
Chapter 4 Properties of the integers: mathematical induction Yen-Liang Chen Dept of IM NCU.
CMSC 250 Discrete Structures Number Theory. 20 June 2007Number Theory2 Exactly one car in the plant has color H( a ) := “ a has color”  x  Cars –H(
Discrete Structures Chapter 2 Part B Mathematical Induction
The essential quality of a proof is to compel belief.
Copyright © Cengage Learning. All rights reserved.
Fundamental Theorem of Arithmetic. Euclid's Lemma If p is a prime that divides ab, then p divides a or p divides b.
WHOLE NUMBERS; INTEGERS Whole numbers: Z 0,+ = the natural numbers  {0}. Integers:
Fall 2002CMSC Discrete Structures1 Let us get into… Number Theory.
CS555Spring 2012/Topic 61 Cryptography CS 555 Topic 6: Number Theory Basics.
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.
Methods of Proof & Proof Strategies
(CSC 102) Discrete Structures Lecture 10.
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.
Copyright © Curt Hill Divisibility and Modular Arithmetic A Topic in Number Theory.
Number Theory 이재원 School of Information Technology Sungshin W. University.
Boolean Algebras Lecture 27 Section 5.3 Wed, Mar 7, 2007.
Application: Algorithms Lecture 20 Section 3.8 Wed, Feb 21, 2007.
CS104:Discrete Structures Chapter 2: Proof Techniques.
1 CMSC 250 Chapter 3, Number Theory. 2 CMSC 250 Introductory number theory l A good proof should have: –a statement of what is to be proven –"Proof:"
Section 1.7. Definitions A theorem is a statement that can be shown to be true using: definitions other theorems axioms (statements which are given as.
Direct Proof and Counterexample I Lecture 11 Section 3.1 Fri, Jan 28, 2005.
Divisibility and Modular Arithmetic
1 Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications Kenneth H. Rosen (5 th Edition) Chapter 2 The Fundamentals: Algorithms,
1 Discrete Mathematical Mathematical Induction ( الاستقراء الرياضي )
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.
Lecture 34 Section 6.7 Wed, Mar 28, 2007
Direct Proof and Counterexample III Part 2 Lecture 16 Section 3.3 Tue, Feb 13, 2007.
Dr Nazir A. Zafar Advanced Algorithms Analysis and Design Advanced Algorithms Analysis and Design By Dr. Nazir Ahmad Zafar.
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
Direct Proof and Counterexample II
Advanced Algorithms Analysis and Design
CMSC Discrete Structures
Thinking Critically 4.1 Divisibility Of Natural Numbers
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
Direct Proof and Counterexample IV
Direct Proof and Counterexample II
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
Applied Discrete Mathematics Week 10: Introduction to Counting
Counting Elements of Disjoint Sets: The Addition Rule
Counting Elements of Disjoint Sets: The Addition Rule
Number Theory.
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
PROGRAMME: F.Y.B.Sc.I.T. (SEM-I) COURSE: DISCRETE MATHEMATICS
Presentation transcript:

Direct Proof and Counterexample III Lecture 13 Section 3.3 Fri, Feb 10, 2006

Divisibility Definition: An integer a divides an integer b if a  0 and there exists an integer c such that ac = b. Write a | b to indicate that a divides b. Divisibility is a “positive” property.

Prime Numbers Definition: An integer p is prime if p  2 and the only positive divisors of p are 1 and p. A prime number factors only in a trivial way: p = 1  p. Prime numbers: 2, 3, 5, 7, 11, … Is this a positive property? Is there a positive characterization of primes?

Composite Numbers Definition: An integer n is composite if there exist integers a and b such that a > 1 and b > 1 and n = ab. A composite number factors in a non-trivial way. Composite numbers: 4, 6, 8, 9, 10, 12, … Is this a positive property?

Units and Zero Definition: An integer u is a unit if u | 1. The only units are 1 and –1. Definition: 0 is zero.

Example: Direct Proof Theorem: If a | b and b | c, then a | c. Proof: Let a, b, c be integers and assume a | b and b | c. Since a | b, there exists an integer r such that ar = b. Since b | c, there exists an integer s such that bs = c. Therefore, a(rs) = (ar)s = bs = c. So a | c.

Example: Direct Proof Theorem: Let a and b be integers. If a | b and b | a, then a = b. Proof: Let a and b be integers. Suppose a | b and b | a. There exist integers c and d such that ac = b and bd = a. Therefore, acd = bd = a.

Example: Direct Proof Divide by a to get cd = 1. Thus, c = d = 1 or c = d = -1. Then a = b or a = -b.

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: This property is called antisymmetry. If a ~ b and b ~ a, then a = b.

Example: Direct Proof Theorem: Let a, b, c be integers. If a | b and b | a + c, then a | c. Proof: Let a, b, and c be integers. Suppose a | b and b | a + c. There exist integers r and s such that ar = b and bs = a + c.

Example: Direct Proof Substitute ar for b in the 2nd equation to get (ar)s = a + c. Rearrange the terms and factor to get a(rs – 1) = c. Therefore, a | c.

Example: Direct Proof Theorem: If n is odd, then 8 | (n2 – 1). Proof: Let n be an odd integer. Then n = 2k + 1 for some integer k. So n2 – 1 = (2k + 1)2 – 1 = 4k2 + 4k = 4k(k + 1).

Example: Direct Proof Either k or k + 1 is even. Therefore, k(k + 1) is a multiple of 2. Therefore, n2 – 1 is a multiple of 8. Can you think of an alternate, simpler proof, based on the factorization of n2 – 1?

Example: Direct Proof Theorem: If n is odd, then 24 | (n3 – n). 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. Let a + b = m and a – b = n for some integers m, n. Add to get 2a = m + n and subtract to get 2b = m – n. Divide by 2 to get a = (m + n)/2 and b = (m – n)/2.

Proving Biconditionals Case I: Suppose m and n are both even or both odd. Then m + n and m – n are both even. Let m + n = 2r and m – n = 2s for some integers r and s. Then a = r and b = s, so a and b are integers.

Proving Biconditionals Case II: Suppose one of m and n is even and the other is odd. Then m + n and m – n are odd. Let m + n = 2u + 1 and m – n = 2v + 1. Then a = u + ½ and b = v + ½, so a and b are half-integers.

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. Then a + b and a – b are integers.

Proving Biconditionals Case II: Suppose a and b are both half-integers. Let a = p + ½ and b = q + ½. Then a + b = p + q + 1 and a – b = p – q. So a + b and a – b are both integers.

The Fundamental Theorem of Arithmetic Theorem: Let a be a positive integer. Then a = p1a1p2a2…pkak, where each pi is a prime and each ai 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 = p1a1p2a2…pkak and b = p1b1p2b2…pkbk. Then the g.c.d. of a and b is gcd(a, b) = p1min(a1, b1)p2min(a2, b2)…pkmin(ak, bk)

Application of the Fundamental Theorem of Arithmetic and the l.c.m. of a and b is lcm(a, b) = p1max(a1, b1)p2max(a2, b2)…pkmax(ak, bk).

Example: gcd’s and lcm’s Let a = 4200 and b = 1080. Then a = 23315271 and b = 23325170. Then gcd(a, b) = 23315170 = 120 and lcm(a, b) = 23325271 = 13600.

Example: gcd’s and lcm’s Corollary: Let a and b be positive integers. Then gcd(a, b)lcm(a, b) = ab.