Lect3 Long
Lect3 Long
DISCRETE MATHEMATICS
LECTURE 3
¡ Conditional statement: p → q
¡ Assumption: p is true
¡ Goal: q to be true (the combination p true and q false never occurs)
¡ Methodology: construct subsequent steps using rules of inference, axioms, definitions, and previously
proven theorems
DIRECT PROOF
Theorem: “If m and n are both perfect squares, then nm is also a perfect square”
Conditional Statement: p → q
p: “m and n are both perfect squares”
q: “nm is also a perfect square”
Proof:
¡ Assume that m and n are perfect squares, thus m=s2 and n=t2
¡ mn= s2t2 = (ss)(tt) = (st)(st) = (st)2, using commutativity and associativity of multiplication
¡ (st)2 is a perfect square and hence mn is a perfect square
¡ Thus, we prove the theorem
PROOF BY CONTRAPOSITION
Indirect Proof: do not start from premises and end with the conclusion
¡ Conditional statement: p → q ≡ q→ p
¡ Premise: q
¡ Goal: p follows q
¡ Methodology: construct subsequent steps using rules of inference, axioms, definitions, and previously
proven theorems
PROOF BY CONTRAPOSITION
Proof:
¡ Assume that “If 3n + 2 is odd, then n is odd” is false; namely, assume that n is even (premise: q)
¡ n = 2k for some integer k
¡ 3n + 2 = 3(2k) + 2 = 6k + 2 = 2(3k + 1), thus 3n + 2 is even and not odd
¡ 3n+2 is even ( p), the negation of the premise of the theorem
¡ Thus, we prove the theorem
PROOF BY CONTRAPOSITION
Theorem: “if n = ab, where a and b are positive integers, then a ≤√n or b ≤√n”
Conditional Statement: p → q ≡ q→ p
p: n = ab, where a and b are positive integers
q: a ≤√n or b ≤√n
Proof:
¡ Assume that the theorem is false
¡ Premise( q ): (a ≤√n) ∨ (b ≤√n) is false ≡ both a ≤√n and b ≤√n are false, using the meaning of disjunction and De Morgan’s
law
¡ a >√n and b >√n
¡ ab >√n ·√n = n (using the fact that if 0 < s < t and 0 < u < v, then su < tv)
¡ ab > n ( p) & n=ab contradicts
¡ Thus, we prove the theorem
VACUOUS PROOF
Theorem: P(0) is true, where P(n) is “If n > 1, then n2 > n” and the domain consists of all integers
Proof:
¡ P(0) is “If 0 > 1, then 02 > 0.”
¡ The hypothesis 0 > 1 is false
¡ Thus, P(0) is automatically true
TRIVIAL PROOF
Theorem: P(0) is true, where P(n) “If a and b are positive integers with a ≥ b, then an ≥ bn” and the domain
consists of all nonnegative integers
Proof:
¡ P(0): “If a ≥ b, then a0 ≥ b0” where a0 = b0 = 1
¡ a0 = b0 thus a0 ≥ b0 is true (q)
¡ Thus, we prove that P(0) is true
PROOF BY CONTRADICTION
Theorem: “at least four of any 22 days must fall on the same day of the week”
Proof:
¡ Assume that p is true à “at most three of the 22 days fall on the same day of the week”
¡ 7 days of the week, hence at most 21 days could have been chosen; one for each of the days of the
week
¡ Contradicts with 22 days under consideration
PROOF BY CONTRADICTION
Proof:
¡ p: “n is odd” and q: “n2 is odd”
¡ show that p → q (Direct Proof) and q → p (Proof by Contraposition) are true
PROOF OF EQUIVALENCE
Statement: “Every positive integer is the sum of the squares of two integers” is false
Proof:
Counter example - 3 cannot be written as the sum of the squares of two integers
¡ The only perfect squares not exceeding 3 are 02 = 0 and 12 = 1
Theorem: “There is a positive integer that can be written as the sum of cubes of positive integers in two
different ways”
Proof:
1729 = 103 + 93 = 123 + 13
UNIQUENESS PROOF
¡ Some theorems assert the existence of a unique element with a particular property
¡ Methodology: to show that an element with this property exists and that no other element has this
property
Theorem: “If a and b are real numbers and a = 0, then there is a unique real number r such that ar + b = 0”
Proof:
¡ the real number r = −b/a; a solution of ar + b = 0 (existence part of the proof)
¡ the real number s such that as + b = 0; (uniqueness part of the proof)
¡ ar + b = as + b, where r = −b/a
¡ after subtracting b from both sides, ar = as
¡ after dividing both sides by a (nonzero), r = s
¡ if s = r, then as + b = 0
¡ if s ≠ r, then as + b ≠ 0