CSCE 222 Lecture 17

From Notes
Jump to navigation Jump to search

« previous | Friday, March 4, 2011 | next »


Mathematical Induction

Let P(n) be a prediate with domain of natural numbers (not including zero). Suppose that we want to show xP(x) is true:

P(1)P(n)P(n+1)xP(x) is true

Note: Induction is just an infinite amount of modus ponens arguments


In general, we always prove P(x0), where x0 is our starting premise. For example, if we wanted to prove something was true for all natural numbers (including zero), we would first have to show P(0) is true, then show x(P(x)P(x+1)).

Example 1

Show that P(k)=m=1k(2m1)=k2 is true.

P(1) is true: 211=12

Assume that P(k) is true. is P(k+1) true?

1+3++2k1=k2P(k) hypothesis1+3++2k1+2(k+1)1=(k+1)2P(k+1) implication1+3++2k1+2k+1=k2+2k+1expand (k+1)21+3++2k1=k2subtract 2k+1 to get hypothesis


Example 2

If you make n straight cuts across a pizza, then you divide it into at most n(n+1)2+1 pieces.

If we make a single cut, then we divide the pizza into 2 pieces, which holds true.

Suppose that for n cuts, the claim holds true. The next cut will create the largest possible number of pizza pieces iff we cut through all previous lines and avoid intersections. An additional piece is created every time we cross a line, creating at most n+1 additional pieces.

n(n+1)2+1+n+1=n2+n+2n+22+1=(n+1)(n+2)2+1=P(n+1)

Therefore, the claim holds by induction.


Direct Proof

An integer l is called even iff there exists an integer l such that l=2l.

Lemma: Prove that the sum of two even integers is an even integer.

Proof: Suppose that x and y are two even integers. Then x=2x and y=2y. Therefore x+y=2x+2y=2(x+y) is an even number.


Proof by Contradiction

Lemma: Prove that there are infinitely many prime numbers.

Proof: By contradiction, suppose there is a finite number of prime numbers p1 to pn. However, q=1+k=1npk is not divisible by any prime numbers (will always have a remainder of 1):

q1modpk1kn

Therefore, q must be a prime number that is not in our finite list of prime numbers, which contradicts our assumption of a finite number of primes.