Presentation is loading. Please wait.

Presentation is loading. Please wait.

Discrete Math for CS CMPSC 360 LECTURE 4 Last time and recitations:

Similar presentations


Presentation on theme: "Discrete Math for CS CMPSC 360 LECTURE 4 Last time and recitations:"โ€” Presentation transcript:

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


Download ppt "Discrete Math for CS CMPSC 360 LECTURE 4 Last time and recitations:"

Similar presentations


Ads by Google