CSCE 222 Lecture 18

From Notes
Jump to navigation Jump to search

« previous | Monday, March 7, 2011 | next »


Review: Proof by Induction

Let n be a natural number. Show that P(n) is true: for every 2n×2n checkerboard with one square removed can be tiled using right "triominoes"

Basis Step
P(1) is true, as a 2 × 2 checkerboard can be covered by a triomino.
Induction Step
uppose that P(k) is true for some k1. Does this imply P(k+1)? A 2k+1×2k+1 checkerboard implies that we have four sub-checkerboards of size 2k×2k. If we remove one square from each checkerboard (three at the central "intersection"), we can cover that empty space with a triomino. Therefore, only one square remains that has not been covered.

Strong Induction

Basis Step:P(1)Induction Step:P(1)P(2)P(k)P(k+1)

Example

An integer n>1 can be written as a product of primes.

Proof: Let P(n) denote the predicate: "n can be written as a product of primes."

Basis Step
P(2) is true since 2=k=112
Inductive Hypothesis
Suppose that P(j) is true for all j in the range 2jk.
Induction Step
(we need to show that P(k+1) is true)
Case 1: k+1 is prime, then k+1=l=11(k+1), so P(k+1) is true
Case 2: k+1 is not prime, say, k+1=ab , where a and b are natural numbers (excluding 1). both of these numbers are less than or equal to k, so P(a) and P(b) are true. So a and b can both be written as a product of primes. Thus k+1=ab can be written as a product of primes.

Difficult Example

Suppose a sequence is defined as the sum of the previous three elements, where the first three elements are (1,2,3,). Prove that an2n.

Basis Step
The claim is true for n=0: (a0=1)(20=1), n=1, and n=2
Induction Step
For any k>2, assume that P(i) is true for all i in the range 0ik. (i.e. ai2i)
ak=ak1+ak2+ak32k1+2k2+2k32k1+2k2+2k3++21+20=2k1212k