


























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



























Docsity.com
Overview
Docsity.com
Docsity.com
continued
S(n) can be much more complicated, such as a program that reads in a n value.
Docsity.com
Induction to the Rescue
continued Docsity.com
continued
"--> stands for "implies"
Docsity.com
Let’s do it
continued Docsity.com
continued Docsity.com
Induction More Formally
continued Docsity.com
Docsity.com
for all n >= 1
so 1 = (1*2)/
2
( 1 ) 1
n n i
n
i
=
1 1
1 i
i
continued
(1)
Docsity.com
Prove S(n+1), which is:
Notice that:
2
( 1 )( 2 ) 2
(^11) ( 1 1 )
1
=
∑ =
=
n n n n i
n
i
(2)
∑ ∑
= =
= + +
1
1 1
( 1 )
n
i
n
i
i i n (3)
continued Docsity.com
Example 2
for all n >= 0
so 2^0 = 2^1 -
2 2 1 1 0
∑
n n
i
i
=
0 0
2 20 i
i
continued
(1)
Docsity.com
Prove S(n+1), which is:
Notice that:
2 2 2 1
1
0
= + −
=
∑
n n
i
i (^) (2)
∑ ∑
= =
(^1) = + +
0 0
n 2 2 2 1
i
n
i
i i n (3)
continued Docsity.com