Discrete Structures: Slides For A Course Based On The Text (6 Edition)
Discrete Structures: Slides For A Course Based On The Text (6 Edition)
Discrete Structures
11/9/2008
Inductive Proofs
Rosen 6th ed., 4.1
11/9/2008
6
5
4
Note:
this works
even if there
are infinitely
many dominoes!
3
11/9/2008
Induction Example
Induction Example 1
2. Show that if P(n) is true, then P(n + 1) is true.
(inductive step)
11/9/2008
Induction Example 1
Then P(n) must be true for any positive
integer.
(conclusion)
n < 2n is true for any positive integer.
End of proof.
11/9/2008
Induction Example 2
1 + 2 + + n = n (n + 1)/2
Show that P(0) is true.
(basis step)
For n = 0 we get 0 = 0. True.
11/9/2008
10
Induction Example 2
Show that if P(n) then P(n + 1) for any nN.
(inductive step)
1 + 2 + + n = n (n + 1)/2
1 + 2 + + n + (n + 1) = n (n + 1)/2 + (n + 1)
= (2n + 2 + n (n + 1))/2
= (2n + 2 + n2 + n)/2
= (2 + 3n + n2 )/2
= (n + 1) (n + 2)/2
= (n + 1) ((n + 1) + 1)/2
11/9/2008
11
Induction Example 2
Then P(n) must be true for any nN.
(conclusion)
1 + 2 + + n = n (n + 1)/2 is true for all
n N.
End of proof.
11/9/2008
12
13
Induction Example 3
Prove that the sum of the first n odd
positive integers is n2. That is, prove:
n
n 1 : (2i 1) = n
i =1
Proof by induction.
P(n)
14
Example 3 cont.
Inductive step: Prove n1: P(n)P(n+1).
Let n1, assume P(n), and prove P(n+1).
n
(2i 1) = (2i 1) + (2(n + 1) 1)
i =1
i =1
By inductive
2
= n + 2n + 1 hypothesis P(n)
n +1
= (n + 1)
11/9/2008
15
Induction Example 4
Prove that 11! + 22! + + nn! = (n+1)! - 1, n
Base case (n= 1): 11! = (1+1)! - 1?
11! = 1, 2! - 1 = 1
Assume P(k): 11! + 22! + + kk! = (k+1)! - 1
Prove that 11! + + kk! + (k+1)(k+1)! = (k+2)! - 1
11! + + kk! + (k+1)(k+1)! = (k+1)! - 1 + (k+1)(k+1)!
= (1 + (k+1))(k+1)! - 1
= (k+2)(k+1)! - 1
= (k+2)! - 1
11/9/2008
16
17
18
19
11/9/2008
20
21