Week 3 - Friday.  What did we talk about last time?  Proving universal statements  Disproving existential statements  Rational numbers  Proof formatting.

Slides:



Advertisements
Similar presentations
Methods of Proof. Methods of Proof The Vicky Pollard Proof Technique Prove that when n is even n2 is even. Assume n is 0, then n2 is 0, and that is.
Advertisements

Discrete Mathematics Lecture 3
With examples from Number Theory
Discrete Math Methods of proof 1.
Introduction to Proofs
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.
Proofs, Recursion and Analysis of Algorithms Mathematical Structures for Computer Science Chapter 2 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProofs,
(CSC 102) Lecture 12 Discrete Structures. Previous Lecture Summary Floor and Ceiling Functions Definition of Proof Methods of Proof Direct Proof Disproving.
Copyright © Cengage Learning. All rights reserved. CHAPTER 5 SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION.
Elementary Number Theory and Methods of Proof
Quotient-Remainder Theory, Div and Mod
Basic properties of the integers
Copyright © Cengage Learning. All rights reserved.
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.
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(
Proof Must Have Statement of what is to be proven.
1 Indirect Argument: Contradiction and Contraposition.
The essential quality of a proof is to compel belief.
Chapter 4: Elementary Number Theory and Methods of Proof
Copyright © Cengage Learning. All rights reserved.
Methods of Proof Lecture 4: Sep 16 (chapter 3 of the book)
Chapter Number Theory 4 4 Copyright © 2013, 2010, and 2007, Pearson Education, Inc.
The Integers and Division
Week 3 - Wednesday.  What did we talk about last time?  Basic number theory definitions  Even and odd  Prime and composite  Proving existential statements.
DISCRETE MATHEMATICS I LECTURES CHAPTER 4 Dr. Adam Anthony Spring 2011 Some material adapted from lecture notes provided by Dr. Chungsim Han and Dr. Sam.
Methods of Proof & Proof Strategies
Introduction to Proofs
MATH 224 – Discrete Mathematics
1 Methods of Proof CS/APMA 202 Epp, chapter 3 Aaron Bloomfield.
Copyright © Cengage Learning. All rights reserved. CHAPTER 4 ELEMENTARY NUMBER THEORY AND METHODS OF PROOF ELEMENTARY NUMBER THEORY AND METHODS OF PROOF.
Methods of Proof. This Lecture Now we have learnt the basics in logic. We are going to apply the logical rules in proving mathematical theorems. Direct.
Chapter 3 Elementary Number Theory and Methods of Proof.
Week 3 - Monday.  What did we talk about last time?  Predicate logic  Multiple quantifiers  Negating multiple quantifiers  Arguments with quantified.
CS 173, Lecture B August 27, 2015 Tandy Warnow. Proofs You want to prove that some statement A is true. You can try to prove it directly, or you can prove.
Prerequisites: Fundamental Concepts of Algebra
Chapter 3 Elementary Number Theory and Methods of Proof.
1 Methods of Proof. 2 Consider (p  (p→q)) → q pqp→q p  (p→q)) (p  (p→q)) → q TTTTT TFFFT FTTFT FFTFT.
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
Methods of Proof Lecture 3: Sep 9. This Lecture Now we have learnt the basics in logic. We are going to apply the logical rules in proving mathematical.
1 Methods of Proof Proof techniques in this handout –Direct proof –Division into cases –Proof by contradiction In this handout, the proof techniques will.
Copyright © Cengage Learning. All rights reserved.
CONJECTURES. A conjecture is a statement that must be proved or disproved.
Week 4 - Monday.  What did we talk about last time?  Divisibility  Quotient-remainder theorem  Proof by cases.
Theorem The square of any odd integer has the form 8m + 1 for some integer m.
Copyright © Cengage Learning. All rights reserved. CHAPTER 4 ELEMENTARY NUMBER THEORY AND METHODS OF PROOF ELEMENTARY NUMBER THEORY AND METHODS OF PROOF.
Week 4 - Monday.  What did we talk about last time?  Rational numbers.
Week 3 - Friday.  What did we talk about last time?  Proving existential statements  Disproving universal statements  Proving universal statements.
Copyright © Cengage Learning. All rights reserved. CHAPTER 8 RELATIONS.
CS104:Discrete Structures Chapter 2: Proof Techniques.
Week 3 - Monday.  What did we talk about last time?  Predicate logic  Multiple quantifiers  Negating multiple quantifiers  Arguments with quantified.
Week 4 - Friday.  What did we talk about last time?  Floor and ceiling  Proof by contradiction.
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.
Slide Copyright © 2009 Pearson Education, Inc. Slide Copyright © 2009 Pearson Education, Inc. Chapter 1 Number Theory and the Real Number System.
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.
Methods of Proof Lecture 4: Sep 20 (chapter 3 of the book, except 3.5 and 3.8)
CS 173, Lecture B August 27, 2015 Tandy Warnow. Proofs You want to prove that some statement A is true. You can try to prove it directly, or you can prove.
Direct Proof and Counterexample IV: Division into Cases and the Quotient-Remainder Theorem For each of the following values of n and d, find integers q.
Direct Proof by Contraposition Direct Proof by Contradiction
ELEMENTARY NUMBER THEORY AND METHODS OF PROOF
Direct Proof and Counterexample V: Floor and Ceiling
Copyright © Cengage Learning. All rights reserved.
Indirect Proof by Contradiction Direct Proof by Cases
Copyright © Cengage Learning. All rights reserved.
Lecture 5 Number Theory & Proof Methods
Presentation transcript:

Week 3 - Friday

 What did we talk about last time?  Proving universal statements  Disproving existential statements  Rational numbers  Proof formatting

 An anthropologist studying on the Island of Knights and Knaves is told that an astrologer and a sorcerer are waiting in a tower  When he goes up into the tower, he sees two men in conical hats  One hat is blue and the other is green  The anthropologist cannot determine which man is which by sight, but he needs to find the sorcerer  He asks, "Is the sorcerer a Knight?"  The man in the blue hat answers, and the anthropologist is able to deduce which one is which  Which one is the sorcerer?

 After determining that the man in the green hat is the sorcerer, the sorcerer asks a question that has a definite yes or no answer  Nevertheless, the anthropologist, a naturally honest man, could not answer the question, even though he knew the answer  What's the question?

 A real number is rational if and only if it can be expressed at the quotient of two integers with a nonzero denominator  Or, more formally, r is rational   a, b  Z  r = a/b and b  0

 The reciprocal of any rational number is a rational number

 Math moves forward not by people proving things purely from definitions but also by using existing theorems  "Standing on the shoulders of giants"  Given the following: 1. The sum, product, and difference of any two even integers is even 2. The sum and difference of any two odd integers are even 3. The product of any two odd integers is odd 4. The product of any even integer and any odd integer is even 5. The sum of any odd integer and any even integer is odd  Using these theorems, prove that, if a is any even integer and b is any odd integer, then (a 2 + b 2 + 1)/2 is an integer

 If n and d are integers, then n is divisible by d if and only if n = dk for some integer k  Or, more formally:  For n, d  Z,  n is divisible by d   k  Z  n = dk  We also say:  n is a multiple of d  d is a factor of n  d is a divisor of n  d divides n  We use the notation d | n to mean "d divides n"

 Prove that for all integers a, b, and c, if a | b and b | c, then a | c  Steps:  Rewrite the theorem in formal notation  Write Proof:  State your premises  Justify every line you infer from the premises  Write QED after you have demonstrated the conclusion

 For all integers a and b, if a | b and b | a, then a = b  How could we change this statement so that it is true?  Then, how could we prove it?

 For any integer n > 1, there exist a positive integer k, distinct prime numbers p 1, p 2, …, p k, and positive integers e 1, e 2, …, e k such that  And any other expression of n as a product of prime numbers is identical to this except, perhaps, for the order in which the factors are written

 Let m be an integer such that  8∙7 ∙6 ∙5 ∙4 ∙3 ∙2 ∙m = 17∙16 ∙15 ∙14 ∙13 ∙12 ∙11 ∙10  Does 17 | m?  Leave aside for the moment that we could actually compute m

 If you have a premise consisting of clauses that are ANDed together, you can split them up  Each clause can be used in your proof  What if clauses are ORed together?  You don't know for sure that they're all true  In this situation, you use a proof by cases  Assume each of the individual possibilities is true separately  If the proof works out in all possible cases, it still holds

 For a direct proof using cases, follow the same format that you normally would  When you reach your cases, number them clearly  Show that you have proved the conclusion for each case  Finally, after your cases, state that, since you have shown the conclusion is true for all possible cases, the conclusion must be true in general

 For any integer n and any positive integer d, there exist unique integers q and r such that  n = dq + r and 0 ≤ r < d  This is a fancy way of saying that you can divide an integer by another integer and get a unique quotient and remainder  We will use div to mean integer division (exactly like / in Java )  We will use mod to mean integer mod (exactly like % in Java)  What are q and r when n = 54 and d = 4?

 As another way of looking at our earlier definition of even and odd, we can apply the quotient-remainder theorem with the divisor 2  Thus, for any integer n  n = 2q + r and 0 ≤ r < 2  But, the only possible values of r are 0 and 1  So, for any integer n, exactly one of the following cases must hold:  n = 2q + 0  n = 2q + 1  We call even or oddness parity

 Prove that, given any two consecutive integers, one is even and the other is odd  Hint Divide into two cases:  The smaller of the two integers is even  The smaller of the two integers is odd

 Theorem: for all integers n, 3n 2 + n + 14 is even  How could we prove this using cases?  Be careful with formatting

 For any real number x, the floor of x, written  x , is defined as follows:   x  = the unique integer n such that n ≤ x < n + 1  For any real number x, the ceiling of x, written  x , is defined as follows:   x  = the unique integer n such that n – 1 < x ≤ n

 Prove or disprove:   x, y  R,  x + y  =  x  +  y   Prove or disprove:   x  R,  m  Z  x + m  =  x  + m

 Give the floor for each of the following values  25/4    Now, give the ceiling for each of the same values  If there are 4 quarts in a gallon, how many gallon jugs do you need to transport 17 quarts of werewolf blood?  Does this example use floor or ceiling?

 Indirect argument  Proof by contradiction  Irrationality of the square root of 2  Infinite number of primes

 Turn in Assignment 2 by midnight tonight!  Keep reading Chapter 4