Download presentation
Presentation is loading. Please wait.
Published byBethany Letitia Carter Modified over 6 years ago
1
Discrete Math for CS CMPSC 360 LECTURE 4 Last time and recitations:
Propositions with quantifiers Proofs Today: More proofs CMPSC 360 11/9/2018
2
Proof types Direct proof.
Proof by contradiction (also, proof by contraposition). 11/9/2018
3
Some useful definitions
An integer is even if ๐=2๐ for some integer ๐. An integer is odd if ๐=2๐+1 for some integer ๐. Two integers have the same parity if they are both even or both odd. Otherwise, they have opposite parity. Integer ๐ divides integer ๐, written ๐|๐, if ๐=๐๐ for some integer ๐. Then ๐ is a divisor of ๐, and ๐ is a multiple of ๐. A natural number ๐ is prime if it has exactly two positive divisors, 1 and ๐. A natural number ๐ is composite if it factors into ๐=๐๐ for ๐>1,๐>1. 11/9/2018
4
I-clicker problem (frequency: BC)
Theorem. If ๐ is odd then ๐ 2 is odd. Which of the following arguments correctly prove the theorem? Suppose ๐ is not odd. Then ๐=2๐ for some ๐. Then ๐ 2 = 2๐ 2 =2โ
2 ๐ 2 , which is not odd. Suppose ๐ is odd. Then ๐=2๐+1 for some ๐. Then ๐ 2 = 2๐+1 2 =4 ๐ 2 +4๐+1=2โ
2 ๐ 2 +2๐ +1, which is odd. Both A and B. 11/9/2018
5
I-clicker problem (frequency: BC)
Theorem. A product of several numbers of the form (4๐+1) also has that form. Indicate the first incorrect step in the following ``proofโโ: Suppose the numbers are ๐ฅ 1 , ๐ฅ 2 ,โฆ, ๐ฅ ๐ It is sufficient to prove the statement for a product of two numbers and apply it first to ๐ฅ 1 ๐ฅ 2 , then to (๐ฅ 1 ๐ฅ 2 ) ๐ฅ 3 , etc. Consider two numbers of the specified form: ๐ฅ 1 =4๐+1 and ๐ฅ 2 =4๐+1. Their product is 4๐+1 2 =16 ๐ 2 +8๐ =4 8 ๐ 2 +2๐ +1. We showed that the product is of the right form. 11/9/2018
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.