Chapter 5
Chapter 5
Copyright © McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
Chapter Summary
Mathematical Induction
Strong Induction
Well-Ordering
Recursive Definitions
Structural Induction
Recursive Algorithms
Section 5.1
Section Summary
Mathematical Induction
Examples of Proof by Mathematical Induction
Mistaken Proofs by Mathematical Induction
Climbing an
Infinite Ladder
Suppose we have an infinite ladder:
1. We can reach the first rung of the ladder.
2. If we can reach a particular rung of the ladder, then we can
reach the next rung.
continued →
An Incorrect “Proof” by
Mathematical Induction
Inductive Hypothesis: Every set of k lines in the plane, where
k ≥ 2, no two of which are parallel, meet in a common point.
Consider a set of k + 1 distinct lines in the plane, no two parallel. By the
inductive hypothesis, the first k of these lines must meet in a common point
p1. By the inductive hypothesis, the last k of these lines meet in a common
point p2.
If p1 and p2 are different points, all lines containing both of them must be the
same line since two points determine a line. This contradicts the assumption
that the lines are distinct. Hence, p1 = p2 lies on all k + 1 distinct lines, and
therefore P(k + 1) holds. Assuming that k ≥2, distinct lines meet in a common
point, then every k + 1 lines meet in a common point.
There must be an error in this proof since the conclusion is absurd. But where is
the error?
Answer: P(k)→ P(k + 1) only holds for k ≥3. It is not the case that P(2) implies P(3).
The first two lines must meet in a common point p1 and the second two must meet in
a common point p2. They do not have to be the same point since only the second line
is common to both sets of lines.
Section 5.2
Section Summary
Strong Induction
Example Proofs using Strong Induction
Well-Ordering Property
Strong Induction
Strong Induction: To prove that P(n) is true for all
positive integers n, where P(n) is a propositional
function, complete two steps:
Basis Step: Verify that the proposition P(1) is true.
Inductive Step: Show the conditional statement
[P(1) ∧ P(2) ∧∙∙∙ ∧ P(k)] → P(k + 1) holds for all positive
integers k.
−
2
.
(uniqueness of q and r is Exercise 37)
Section 5.3
Section Summary
Recursively Defined Functions
Recursively Defined Sets and Structures
Structural Induction
Recursively Defined Functions
Definition: A recursive or inductive definition of a
function consists of two steps.
BASIS STEP: Specify the value of the function at zero.
RECURSIVE STEP: Give a rule for finding its value at an
integer from its values at smaller integers.
A function f(n) is the same as a sequence a0, a1, … ,
where ai, where f(i) = ai. This was done using
recurrence relations in Section 2.4.
Recursively Defined Functions
Example: Suppose f is defined by:
f(0) = 3,
f(n + 1) = 2f(n) + 3
Find f(1), f(2), f(3), f(4)
Solution:
f(1) = 2f(0) + 3 = 2∙3 + 3 = 9
f(2) = 2f(1)+ 3 = 2∙9 + 3 = 21
f(3) = 2f(2) + 3 = 2∙21 + 3 = 45
f(4) = 2f(3) + 3 = 2∙45 + 3 = 93
Fibonacci Numbers
Example : The Fibonacci numbers are defined as
follows:
f0 = 0
In Chapter 8, we will use the
f1 = 1 Fibonacci numbers to model
population growth of rabbits.
fn = fn−1 + fn−2 This was an application
Find f2, f3 , f4 , f5 . described by Fibonacci himself.