Pages from Lecture 5,6,7 (Discrete mathmatics)
Pages from Lecture 5,6,7 (Discrete mathmatics)
Chapter 4
Section Summary
Mathematical Proofs
Forms of Theorems
Direct Proofs
Indirect Proofs
Proof of the Contrapositive
Proof by Contradiction
Proofs of Mathematical Statements
A proof is a valid argument that establishes the truth
of a statement.
Fact:
Integers are closed under addition, subtraction, multiplication but
not division.
ℤ = {…, -2,-1,0,1,2,…}
Note that every integer is either even or odd and no integer is both
even and odd.
Direct Proof
where v = pu + qt
w = qu ≠ 0
Thus the sum is rational.
Contraposition
Proof by Contradiction
A preview of Chapter 4.
Example: Use a proof by contradiction to give a proof that
√2 is irrational.
Solution: Suppose √2 is rational. Then there exists
integers a and b with √2 = a/b, where b≠ 0 and a and b
have no common factors (see Chapter 4). Then
22
Divisibility
Definition:
If one integer, n, divides a second integer, m, without
producing a remainder, then we say that “n divides m”.
Denoted n | m , m=n*k
Definition:
If one integer, n, does not divide evenly into a second
integer, m, i.e., mn produces a remainder, then we say
that “n does not divide m”. Denoted n | m
23
Divisors
• Definition: Let a, b and c be integers such that
• a = b·c (b divides a)
= c.b (c divides a)
• Then b and c are said to divide (or are factors) of
a, while a is said to be a multiple of b (as well as of
c). The pipe symbol “|” denotes “divides” so the
situation is summarized by:
• b|a c|a.
24
Divisors: Examples
Answer:
1. 77 | 7:
false bigger number can’t divide smaller positive number
2. 7 | 77: true because 77 = 7 · 11
3. 24 | 24: true because 24 = 24 · 1
4. 0 | 24: false, only 0 is divisible by 0
5. 24 | 0: true, 0 is divisible by every number (0 = 24 · 0)
25
Examples of divisibility
Which of these holds?
4 | 12 11 | -11
4|4 -22 | 11
4|6 7 | -15
12 | 4 4 | -16
6|0
0|6
26
Theorem
Let a, b, and c be integers, where a ≠ 0. Then
(i) if a ∣ b and a ∣ c, then a ∣ (b + c);
(ii) if a ∣ b, then a ∣ bc for all integers c;
(iii) if a ∣ b and b ∣ c, then a ∣ c;
27
Proof: (i)
Suppose a | b and a | c, then it follows that there are
integers s and t with b = as and c = at. Hence,
b + c = as + at = a (s + t).
Hence, a | (b + c)
28
Division Theorem
When an integer is divided by a positive integer, there
is a quotient and a remainder. This is traditionally
called the “Division Algorithm/ theorem”.
29
Examples
What are the quotient and remainder when
101 is divided by 11?
Solution: The quotient when 101 is divided by
11 is 9, and the remainder is 2.
30