(CSC 102) Lecture 12 Discrete Structures. Previous Lecture Summary Floor and Ceiling Functions Definition of Proof Methods of Proof Direct Proof Disproving.

Slides:



Advertisements
Similar presentations
Discrete Mathematics Lecture 3
Advertisements

With examples from Number Theory
Discrete Math Methods of proof 1.
Introduction to Proofs
Chapter 3 Elementary Number Theory and Methods of Proof.
Chapter 3 Elementary Number Theory and Methods of Proof.
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.
(CSC 102) Discrete Structures Lecture 14.
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.
Elementary Number Theory and Methods of Proof
– Alfred North Whitehead,
Quotient-Remainder Theory, Div and Mod
CSE115/ENGR160 Discrete Mathematics 01/31/12 Ming-Hsuan Yang UC Merced 1.
CSE115/ENGR160 Discrete Mathematics 02/01/11
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(
So far we have learned about:
Proof Must Have Statement of what is to be proven.
1 Indirect Argument: Contradiction and Contraposition.
EE1J2 - Slide 1 EE1J2 – Discrete Maths Lecture 12 Number theory Mathematical induction Proof by induction Examples.
1 Set Theory. Notation S={a, b, c} refers to the set whose elements are a, b and c. a  S means “a is an element of set S”. d  S means “d is not an element.
1 Set Theory. Notation S={a, b, c} refers to the set whose elements are a, b and c. a  S means “a is an element of set S”. d  S means “d is not an element.
1 Number Theory and Methods of Proof Content: Properties of integer, rational and real numbers. Underlying theme: Methods of mathematical proofs.
ELEMENTARY NUMBER THEORY AND METHODS OF PROOF
Week 3 - Wednesday.  What did we talk about last time?  Basic number theory definitions  Even and odd  Prime and composite  Proving existential statements.
Methods of Proof & Proof Strategies
(CSC 102) Discrete Structures Lecture 10.
Introduction to Proofs
Copyright © Cengage Learning. All rights reserved. CHAPTER 4 ELEMENTARY NUMBER THEORY AND METHODS OF PROOF ELEMENTARY NUMBER THEORY AND METHODS OF PROOF.
Conditional Statements CS 2312, Discrete Structures II Poorvi L. Vora, GW.
Review I Rosen , 3.1 Know your definitions!
Chapter 3 Elementary Number Theory and Methods of Proof.
1 Introduction to Abstract Mathematics Chapter 3: Elementary Number Theory and Methods of Proofs Instructor: Hayk Melikya Direct.
1 Sections 1.5 & 3.1 Methods of Proof / Proof Strategy.
Chapter 5 Existence and Proof by contradiction
Copyright © Cengage Learning. All rights reserved. CHAPTER 8 RELATIONS.
1 Methods of Proof Proof techniques in this handout –Direct proof –Division into cases –Proof by contradiction In this handout, the proof techniques will.
Proof By Contradiction Chapter 3 Indirect Argument Contradiction Theorems and pg. 171.
1 Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications Kenneth H. Rosen (5 th Edition) Chapter 3 The Foundations: Logic and Proof,
Methods of Proof Dr. Yasir Ali. Proof A (logical) proof of a statement is a finite sequence of statements (called the steps of the proof) leading from.
Method of proofs.  Consider the statements: “Humans have two eyes”  It implies the “universal quantification”  If a is a Human then a has two eyes.
Copyright © Cengage Learning. All rights reserved. CHAPTER 4 ELEMENTARY NUMBER THEORY AND METHODS OF PROOF ELEMENTARY NUMBER THEORY AND METHODS OF PROOF.
Copyright © Cengage Learning. All rights reserved. CHAPTER 8 RELATIONS.
CS104:Discrete Structures Chapter 2: Proof Techniques.
Week 4 - Friday.  What did we talk about last time?  Floor and ceiling  Proof by contradiction.
Introduction to Proofs
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:"
Week 4 - Wednesday.  What did we talk about last time?  Divisibility  Proof by cases.
Math 51/COEN 19. Number theory vocab Let a, b Z, a ≠ 0. We say that a divides b and write a|b if m Z such that b = ma (ie b is a multiple of a)
Direct Proof and Counterexample I Lecture 11 Section 3.1 Fri, Jan 28, 2005.
Divisibility and Modular Arithmetic
5-5 Indirect Proof. Indirect Reasoning: all possibilities are considered and then all but one are proved false. The remaining possibility must be true.
1 Discrete Mathematical Mathematical Induction ( الاستقراء الرياضي )
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.
Dr Nazir A. Zafar Advanced Algorithms Analysis and Design Advanced Algorithms Analysis and Design By Dr. Nazir Ahmad Zafar.
Methods of Proof Proof techniques in this handout
Indirect Argument: Contradiction and Contraposition
CSE15 Discrete Mathematics 02/01/17
Indirect Argument: Two Classical Theorems
Direct Proof by Contraposition Direct Proof by Contradiction
Advanced Algorithms Analysis and Design
Direct Proof and Counterexample V: Floor and Ceiling
The sum of any two even integers is even.
Indirect Proof by Contradiction Direct Proof by Cases
Section 2.1 Proof Techniques Introduce proof techniques:   o        Exhaustive Proof: to prove all possible cases, Only if it is about a.
Direct Proof and Counterexample I
Copyright © Cengage Learning. All rights reserved.
Lecture 5 Number Theory & Proof Methods
Proof: [We take the negation and suppose it to be true.]
Introduction to Proofs
Presentation transcript:

(CSC 102) Lecture 12 Discrete Structures

Previous Lecture Summary Floor and Ceiling Functions Definition of Proof Methods of Proof Direct Proof Disproving by Counterexample. Indirect Proof: Proof by Contradiction

Methods of Proof and Number Theory

Today's Lecture Mod Functions Divisibility and Floor Mod Congruence Indirect Proofs Proof by Contra-positive Relation between Contradiction and Contra-positive methods of Proof

Compute following mod mod mod 24: 113 div mod 7: -29 div 7 Mod Functions

Mod and div Definitions

Theorem Divisibility and Floor

Cont…

Use the floor notation to compute 3850 div 17 and 3850 mod 17. Sol: Computing div and mod

Let a, b be integers and n be a positive integer. We say that a is congruent to b modulo n (i.e. a  b (mod n) ) iff n | (b-a), implies that there exist some integer k such that b-a = n·k. Note: a mod n = b mod n Which of the following are true? 1. 3  3 (mod 17) 2. 3  -3 (mod 17)  177 (mod 5)  13 (mod 26) Mod Congruence's

Cont… 1.3  3 (mod 17) True: any number is congruent to itself (3-3 = 0, divisible by all) 2.3  -3 (mod 17) False: (-3-3) = 6 isn ’ t divisible by  177 (mod 5) True: = 5 is a multiple of  13 (mod 26) True: 13-(-13) = 26 divisible by 26.

Congruence's Identities Let n > 1 be fixed and a, b, c, d be arbitrary integers. Then the following properties holds: a)(Reflexive Property ) a  a (mod n). b)(Symmetric Property) If a  b(mod n) then b  a(mod n). c)( Transitive Property) If a  b(mod n) and b  c (mod n) then a  c(mod n). d)If a  b(mod n) and c  d (mod n) then a + c  (b + d ) (mod n) and a·c  b·d(mod n). e)If a  b(mod n) then a + c  b+c(mod n) and a·c  b·c(mod n). f)If a  b(mod n) then a k  b k (mod n) for any positive integer k.

Theorem If k is any integer such that k  1 (mod 3), then k 3  1 (mod 9). Proof:  k  Z, k  1(mod 3)  k 3  1(mod 9) k  1(mod 3)   n, k-1 = 3n   n, k = 3n + 1   n, k 3 = (3n + 1) 3   n, k 3 = 27n n 2 + 9n + 1   n, k 3 -1 = 27n n 2 + 9n   n, k 3 -1 = (3n 3 + 3n 2 + n)·9   m, k 3 -1 = m·9 where m = 3n 3 + 3n 2 + n  k 3  1(mod 9)

1. Express the statement to be proved in the form ∀ x in D, if P(x) then Q(x). 2. Rewrite this statement in the contra positive form ∀ x in D, if Q(x) is false then P(x) is false. 3. Prove the contra-positive by a direct proof. a. Suppose x is a (particular but arbitrarily chosen) element of D such that Q(x) is false (or ¬Q(x) is true). b. Show that P(x) is false (or ¬P(x) is true). Indirect Proofs Method of Proof by Contra-Positive

Proof by Contra-positive Proposition: For all integers n, if n 2 is even then n is even. Contra positive: For all integers n, if n is not even then n 2 is not even. Proof: Suppose n is any odd integer. [We must show that n 2 is odd.] By definition of odd, n = 2k + 1 for some integer k. By substitution and algebra, n 2 = (2k+1) 2 = 4 k 2 + 4k + 1 = 2(2 k 2 + 2k) + 1. But 2k 2 + 2k is an integer because products and sums of integers are integers. So n 2 = 2·(an integer) + 1, and thus, by definition of odd, n 2 is odd.

Relation ship between Contra-positive and Contradiction Proofs In a proof by contraposition, the statement ∀ x in D, if P(x) then Q(x) is proved by giving a direct proof of the equivalent statement ∀ x in D, if ∼ Q(x) then ∼ P(x). To do this, you suppose you are given an arbitrary element x of D such that ∼ Q(x). You then show that ∼ P(x). This is illustrated in Figure

To rewrite the proof as a proof by contradiction, you suppose there is an x in D such that P(x) and ¬Q(x). You then follow the steps of the proof by contraposition to deduce the statement ¬P(x). But ¬P(x) is a contradiction to the supposition that P(x) and ¬Q(x). (Because to contradict a conjunction of two statements, it is only necessary to contradict one of them.) This process is illustrated in Figure Cont….

Proof by Contradiction Proposition: For all integers n, if n 2 is even then n is even. Proof: Suppose n is not even integer. Then n is odd integer. By definition of odd, n = 2k + 1 for some integer k. By substitution and algebra, n 2 = (2k+1) 2 = 4 k 2 + 4k + 1 = 2(2 k 2 + 2k) + 1. But 2k 2 + 2k is an integer because products and sums of integers are integers. So n 2 = 2·(an integer) + 1, and thus, by definition of odd, n 2 is odd. But n 2 is even in hypothesis. Which is a contradiction because any integer cannot be both even and odd. Thus our supposition was wrong. Hence n is even.

When to use which method…??? In the absence of obvious clues suggesting indirect argument, Try first to prove a statement directly. Then, if that does not succeed, look for a counterexample. If the search for a counterexample is unsuccessful, look for a proof by contradiction or contraposition.

Two Classical Theorems Theorem 1: is an irrational number. Proof:

Cont… m = 2k for some integer k. m 2 = (2k) 2 = 4k 2 = 2n 2. n 2 =2k 2 Consequently, n 2 is even, and so n is even. But we also know that m is even. Hence both m and n have a common factor of 2. But this contradicts the supposition that m and n have no common factors. [Hence the supposition is false and so the theorem is true.]

Theorem 2

Lecture Summary Mod Functions Divisibility and Floor Mod Congruence Indirect Proofs Proof by Contra-positive Relation between Contradiction and Contra-positive methods of Proof