CS109A Notes For Lecture 1/17/96 Simple Inductions: Basis Inductive Step Inductive Hypothesis Not
CS109A Notes For Lecture 1/17/96 Simple Inductions: Basis Inductive Step Inductive Hypothesis Not
Simple Inductions
Three pieces:
1. A statement ( ) to be proved.
The statement must be about an integer
parameter .
2. A basis for the proof. This is the statement
( ) for some integer . Often = 0 or = 1.
3. An inductive step for the proof. We prove the
statement \ ( ) implies ( + 1)" for any .
The statement ( ), used in this proof, is
called the inductive hypothesis.
We conclude that ( ) is true for all
.
( ) might not be true for some
.
Example: The limit of the sum
1 + 1 + 1 + 1 +
1 2 2 3 3 4 4 5
is 1. (Each term is 1 divided by the product of
two consecutive integers.)
To prove this fact, we can prove the following
statement about the nite pre xes of the sum:
S n
S b
S n
S n
S n
S n
S n
n < b
( ):
S n
1 =
+1
=1 ( + 1)
n
i i
1
X
1 = 1
=1 ( + 1) 1 + 1
There is one term, for = 1, so we nd that the
left and right sides of the = sign evaluate to 1 2.
Thus, the basis is true.
i
i i
S n
+1
X
S n
1 =
+1
=1 ( + 1) ( + 1) + 1
i i
S n
S n
S n
= n
S n
1
1 +
= ( + + 1+ 1
1)
=1 ( + 1) ( + 1)( + 2)
Use the inductive hypothesis. The sum is equal to
( + 1); that's what ( ) says. Thus, we must
prove:
1
+ ( + 1)( + 2) = ( + + 1+ 1
+1
1)
n
i i
n= n
S n
S b
S n
S n
S n
S b ;S b
; :::; S n
<
S n
4 24, the
lowest basis case.
Thus, ( 4) is true, and we can write
4 = 5 + 7 for some and .
Thus, +1 = 5( +1)+7 , proving ( +1).
Do not be thrown by the fact that in
the statement ( +1) is +1 here. The
statement calls for \any ."
n
S n
S n
S n
S n