Mathematical Induction

Slides:



Advertisements
Similar presentations
Mathematical Induction
Advertisements

PROOF BY CONTRADICTION
Mathematical Induction
Copyright © Cengage Learning. All rights reserved. CHAPTER 5 SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION.
Week 5 - Friday.  What did we talk about last time?  Sequences  Summation and production notation  Proof by induction.
1 Mathematical Induction. 2 Mathematical Induction: Example  Show that any postage of ≥ 8¢ can be obtained using 3¢ and 5¢ stamps.  First check for.
Induction and recursion
1.  The set N = {1,2,3,4,……..} is known as natural numbers or the set of positive integers  The natural numbers are used mainly for :  counting  ordering.
Induction Sections 41. and 4.2 of Rosen Fall 2008 CSCE 235 Introduction to Discrete Structures Course web-page: cse.unl.edu/~cse235 Questions:
Induction Sections 4.1 and 4.2 of Rosen Fall 2010
1 Inductive Proofs Rosen 6 th ed., § Mathematical Induction A powerful, rigorous technique for proving that a predicate P(n) is true for every.
1 Intro to Induction Supplementary Notes Prepared by Raymond Wong Presented by Raymond Wong.
1 Mathematical Induction. 2 Mathematical Induction: Example  Show that any postage of ≥ 8¢ can be obtained using 3¢ and 5¢ stamps.  First check for.
CSE115/ENGR160 Discrete Mathematics 03/22/12 Ming-Hsuan Yang UC Merced 1.
Lecture ,3.3 Sequences & Summations Proof by Induction.
Module #1 - Logic 1 Based on Rosen, Discrete Mathematics & Its Applications. Prepared by (c) , Michael P. Frank. Modified By Mingwu Chen Induction.
1 Section 3.3 Mathematical Induction. 2 Technique used extensively to prove results about large variety of discrete objects Can only be used to prove.
CSE115/ENGR160 Discrete Mathematics 03/29/11 Ming-Hsuan Yang UC Merced 1.
1 Strong Mathematical Induction. Principle of Strong Mathematical Induction Let P(n) be a predicate defined for integers n; a and b be fixed integers.
1 Mathematical Induction. 2 Mathematical Induction: Example  Show that any postage of ≥ 8¢ can be obtained using 3¢ and 5¢ stamps.  First check for.
Mathematical Maxims and Minims, 1988
Induction and recursion
Chapter 6 Mathematical Induction
Discrete Mathematics, 1st Edition Kevin Ferland
Introduction to Proofs
Mathematical Induction. F(1) = 1; F(n+1) = F(n) + (2n+1) for n≥ F(n) n F(n) =n 2 for all n ≥ 1 Prove it!
1 Introduction to Abstract Mathematics Chapter 4: Sequences and Mathematical Induction Instructor: Hayk Melikya 4.1- Sequences. 4.2,
Copyright © Peter Cappello Mathematical Induction Goals Explain & illustrate construction of proofs of a variety of theorems using mathematical induction.
Module #13: Inductive Proofs Rosen 5 th ed., § inference of a generalized conclusion from particular instances 2. mathematical demonstration of the.
Chapter Mathematical Induction 4.2 Strong Induction and Well-Ordering 4.3 Recursive Definitions and Structural Induction 4.4 Recursive Algorithms.
Induction Proof. Well-ordering A set S is well ordered if every subset has a least element. [0, 1] is not well ordered since (0,1] has no least element.
Chap 3 –A theorem is a statement that can be shown to be true –A proof is a sequence of statements to show that a theorem is true –Axioms: statements which.
Section 3.3: Mathematical Induction Mathematical induction is a proof technique that can be used to prove theorems of the form:  n  Z +,P(n) We have.
ICS 253: Discrete Structures I Induction and Recursion King Fahd University of Petroleum & Minerals Information & Computer Science Department.
Module #15 – Inductive Proofs 12/6/2015(c) , Michael P. Frank1 Inductive Proofs: a brief introduction Rosen 5 th ed., §3.3 ~35 slides, ~1.5 lecture.
Based on Rosen, Discrete Mathematics & Its Applications, 5e Prepared by (c) Michael P. Frank Modified by (c) Haluk Bingöl 1/18 Module.
CompSci 102 Discrete Math for Computer Science March 1, 2012 Prof. Rodger Slides modified from Rosen.
CS 103 Discrete Structures Lecture 13 Induction and Recursion (1)
1 Mathematical Induction CS 202 Epp, chapter 4. 2.
Mathematical Induction Section 5.1. Climbing an Infinite Ladder Suppose we have an infinite ladder: 1.We can reach the first rung of the ladder. 2.If.
Mathematical Induction
CS104:Discrete Structures Chapter 2: Proof Techniques.
CompSci 102 Discrete Math for Computer Science March 13, 2012 Prof. Rodger Slides modified from Rosen.
Chapter 5. Section 5.1 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.
Proofs, Recursion and Analysis of Algorithms Mathematical Structures for Computer Science Chapter 2 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProofs,
Induction Practice CS1050. Prove that whenever n is a positive integer. Proof: Basis Case: Let n = 1, then.
Section 5.1. 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.
1 Discrete Mathematical Mathematical Induction ( الاستقراء الرياضي )
Mathematical Induction
Chapter 1 Logic and proofs
3.3 Mathematical Induction 1 Follow me for a walk through...
Chapter 5 1. Chapter Summary  Mathematical Induction  Strong Induction  Recursive Definitions  Structural Induction  Recursive Algorithms.
CSE15 Discrete Mathematics 03/22/17
Advanced Algorithms Analysis and Design
Chapter 3 The Real Numbers.
Induction and recursion
Methods of Proof A mathematical theorem is usually of the form pq
Chapter 5 Induction and Recursion
Proofs, Recursion and Analysis of Algorithms
CS201: Data Structures and Discrete Mathematics I
Discrete Mathematics and its Applications
Induction and recursion
Follow me for a walk through...
Module #13: Inductive Proofs
Induction Chapter
Advanced Analysis of Algorithms
Mathematical Induction
Mathematical Induction
Discrete Mathematics and its Applications
Agenda Proofs (Konsep Pembuktian) Direct Proofs & Counterexamples
Presentation transcript:

Mathematical Induction Wednesday, April 19, 2017 Mathematical Induction Section 4.1 © 2006 by A-H. Esfahanian. All Rights Reserved.

Example Consider the predicate Wednesday, April 19, 2017 Example Consider the predicate P(n): ``1 + 3 + ··· + (2n-1) is equal n2’’ Let’s verify the truth value of P(n) for some n: P(1): 1 (1) is equal 12 P(2): 1 + 3 (4) is equal 22 P(3): 1 + 3 + 5 (9) is equal 32 .... P(9): 1 + 3 + 5 + 7 + 9 + 11 + 13 + 15 + 17 is equal 92 …Let us write “is equal” by the symbol =. Thus, 1 + 3 + 5 + 7 + 9 + 11 + 13 + 15 + 17 = 92 © 2006 by A-H. Esfahanian. All Rights Reserved.

Example… (no calculators!) Wednesday, April 19, 2017 Example… (no calculators!) Suppose, without verifying, that P(21): 1 + 3 + 5 + … + 39 + 41= 212 Given above, can we prove that P(22): 1 + 3 + 5 + … + 39 + 41 + 43 = 222 ? P(22): 1 + 3 + 5 + … + 39 + 41 + 43 = 222 ? P(22) : 212 (by P(21)) +43= 222 P(22) : 212 + 43 = 222 ? P(22): (22 – 1)2 + (22×2 – 1) = 222 ? P(22): 222 – 22×2 + 1 + 22×2 – 1 = 222 ✔ © 2006 by A-H. Esfahanian. All Rights Reserved.

Example (no calculators!) Wednesday, April 19, 2017 Example (no calculators!) How general is our methods? Let’s replace 21 with a place holder k. Suppose, without verifying, that P(k) = 1 + 3 + 5 + … + (2k-1)= k2 Given this, can we prove that P(k+1) = 1 + 3 + 5 + … + (2(k+1)-1)= (k+1)2 ? P(k+1) = 1 + 3 + 5 + … + (2k-1) + (2(k+1)-1) = (k+1)2 ? P(k+1) = k2 (by P(k)) + (2(k+1)-1) = (k+1)2 ? P(k+1) = k2 + (2(k+1)-1) = (k+1)2 ? P(k+1) = ((k+1) – 1)2 + (2(k+1)-1) = (k+1)2 ? P(k+1) = (k+1)2 – 2(k+1) + 1 + 2(k+1) – 1 = (k+1)2 ✔ © 2006 by A-H. Esfahanian. All Rights Reserved.

Example… What have we accomplished so far? Wednesday, April 19, 2017 Example… What have we accomplished so far? We have shown that P(k) ⇒ P(k+1), for any k. For instance: P(1) ⇒ P(2), P(2) ⇒ P(3), … P(6) ⇒ P(7), P(19) ⇒ P(20), P(2000) ⇒ P(2001), …. Note that, we do NOT know if, for example, P(6) or P(19) … is true. All we know is that IF, for example, P(6) is true, then P(7) is also true. What do we need to show that P(n) is true for all n? All we need is to PROVE that P(1) is indeed true. © 2006 by A-H. Esfahanian. All Rights Reserved.

Mathematical Induction Wednesday, April 19, 2017 Mathematical Induction Let P(n) be some propositional function involving integer n. P(n) = “n (n+3) is an even number ” P(n) = “1 + 3 + ··· + (2n-1) = n2 ” ….. To prove that P(n) is true for all positive integers n, we can do the following: Give a proof (usually a straight verification) that P(1) is true. Give a proof that for an arbitrary k, IF P(k) is true THEN P(k + 1) is true. That is, we validate the logical implication: P(k) ⇒ P(k+1) © 2006 by A-H. Esfahanian. All Rights Reserved.

Mathematical Induction Wednesday, April 19, 2017 Mathematical Induction Mathematical induction amounts to the following rule of inference: [P(1)  k ((k ≥ 1)  P(k))  P(k +1))] ⇒ n P(n) where our universe is the set of positive integers A proof using mathematical induction involves: The Basis: prove P(1) is true. The Hypothesis: Assume P(k) is true for an arbitrary k ≥ 1. The Induction Step: Establish that P(k +1) A (direct) proof that ((k ≥ 1)  P(k)) ⇒ P(k +1) © 2006 by A-H. Esfahanian. All Rights Reserved.

Mathematical Induction…. Wednesday, April 19, 2017 Mathematical Induction…. In proof by mathematical induction it is not given that P(k) is true for all positive integers! It is only shown that IF P(k) is true, THEN P(k+1) is also true. Otherwise the proof by mathematical induction was a case of begging the question or circular reasoning. © 2006 by A-H. Esfahanian. All Rights Reserved.

Wednesday, April 19, 2017 Example Let P(n) = “1 + 3 + ··· + (2n-1) = n2 ”. We want to prove by induction that P(n) is true for all n. Basis: Prove that when n =1, the proposition is correct. P(1) is “1= 12”; thus, it is correct. Hypothesis: We will assume that P(k) is true for some arbitrary k. Step: Using the hypothesis, we want to prove that P(k +1) is true. © 2006 by A-H. Esfahanian. All Rights Reserved.

Example Wednesday, April 19, 2017 © 2006 by A-H. Esfahanian. All Rights Reserved.

Example Wednesday, April 19, 2017 © 2006 by A-H. Esfahanian. All Rights Reserved.

Induction can start anywhere Wednesday, April 19, 2017 Induction can start anywhere To show P(n) for any n ≥ b : The Basis: prove P(b) is true. The Hypothesis: Assume P(k) is true and k ≥ b. The Induction Step: Establish that P(k +1) A (direct) proof that ((k ≥ b)  P(k)) ⇒ P(k +1) © 2006 by A-H. Esfahanian. All Rights Reserved. 12

Wednesday, April 19, 2017 Example Suppose we have coins of two different denominations, namely, 3 cents and 5 cents. We want to show that it is possible to pay exactly for any purchase of 8 cents or higher. In other words, that we can make up 8, 9, 10, …. cents using just these coins. Here is a proof by induction: Basis: 8 = 3+5 ✓ Hypothesis: Suppose we can pay exactly with just 3-cent coins and 5-cent coins for a purchase amount of k cents. © 2006 by A-H. Esfahanian. All Rights Reserved.

Wednesday, April 19, 2017 Example Want to show that it is we can pay exact for (k + 1) cents using just 3-cent coins and 5-cent coins. Proof: If in making up k cents, we used at least one 5- cent coin, then replace that coin with two 3-cent coins to make up (k + 1) cents. Otherwise, we must have used at least three 3-cent coins to make up k since we are considering k > 8. In the case, we will replace three 3-cent coins with two 5-cent coins to make up (k + 1) cents. © 2006 by A-H. Esfahanian. All Rights Reserved.

Wednesday, April 19, 2017 Strong induction To prove that P(k+1) holds, we may use any of the following assumptions: P(k) is true P(k – 1) is true P(k – 2) is true …. P(1) is true We must make sure that all the “assumptions” are in fact true for the induction “engine” to start. © 2006 by A-H. Esfahanian. All Rights Reserved.

Wednesday, April 19, 2017 Induction, recap Let P(n) be some propositional function about an integer n. To prove that P(n) is true for all positive integers n, we do the following: Give a proof that P(1) is true Give a proof that if all of P(1), P(2), …, P(k) are true and k ≥ 1 then P(k+1) is also true. As before, the induction can start at any integer b: Give a proof that P(b) is true Give a proof that if all of P(b), P(b+1), …, P(k) are true and k ≥ b then P(k+1) is also true. © 2006 by A-H. Esfahanian. All Rights Reserved.

Wednesday, April 19, 2017 Example Show that any positive integer n > 1 is either a prime or a product of primes. Proof: Basis: n = 2. Since 2 is prime.✓ Hypothesis: Assume true for n ≤ k Step: Need to show that, given the hypothesis, the proposition is true for k +1. Proof: If n = k +1 is a prime, then the proposition is true. If k +1 is not prime, then k +1=pq, where p ≤ k and q ≤ k. By the hypothesis, p and q are either primes or product of primes, and thus so is pq. © 2006 by A-H. Esfahanian. All Rights Reserved.

Example Show that for every nonnegative integer n Wednesday, April 19, 2017 Example Show that for every nonnegative integer n 20+ 21 + 22 + 23 + ∙∙∙ + 2n = 2n+1 –1. Let P(n) be the corresponding predicate Basis: P(0) is true since 20 =1= 21-1. Hypothesis: Assume that P(k) is true and that k ≥ 0. Step: Need to show that P(k +1) is true given that the hypothesis is true. © 2006 by A-H. Esfahanian. All Rights Reserved.

Example P(k+1) = 20+21+22+23+ ∙∙∙ +2k + 2k+1 Wednesday, April 19, 2017 Example P(k+1) = 20+21+22+23+ ∙∙∙ +2k + 2k+1 = 2k+1 –1 + 2k+1 by the induction hypothesis = 2k+2 –1 by arithmetic = 2(k+1)+1 –1 by arithmetic Thus P(k) ⇒ P(k +1) © 2006 by A-H. Esfahanian. All Rights Reserved.

Example Wednesday, April 19, 2017 © 2006 by A-H. Esfahanian. All Rights Reserved.

Hypothesis is used here Wednesday, April 19, 2017 Example Hypothesis is used here © 2006 by A-H. Esfahanian. All Rights Reserved.

Proof of Correctness of Mathematical Induction Wednesday, April 19, 2017 Proof of Correctness of Mathematical Induction We want to show that [P(1)  k ((k ≥ 1)  P(k))  P(k +1))] ⇒ n P(n) where the universe is the positive integers Proof is done by contradiction ¬ n P(n) Contrary assumption x ¬ P(x) 1, Demogan’s ¬ P(r) 2, EI, select smallest r P(r -1) 3, choice of r P(1) Premise r > 1 r is positive (by choice in 4) & 5 k ((k ≥ 1)  P(k))  P(k +1)) Premise ((r-1 ≥ 1)  P(r-1))  P(r) UI, k = r-1 P(r) 4, 6 & 8, modus ponens Contradiction 3 & 9 © 2006 by A-H. Esfahanian. All Rights Reserved.

Example Wednesday, April 19, 2017 © 2006 by A-H. Esfahanian. All Rights Reserved.

Example Wednesday, April 19, 2017 © 2006 by A-H. Esfahanian. All Rights Reserved.

Proof: Wednesday, April 19, 2017 © 2006 by A-H. Esfahanian. All Rights Reserved.

Wednesday, April 19, 2017 Example Prove by induction that if S is a finite set with n elements then S has 2n subsets. Basis: Assume n = 0. There is one set with cardinality zero: the empty set. Thus, S = . The empty set has only one subset: itself. Moreover, 20 = 1. Thus the basis is verified. Hypothesis. Assume true for any set S with cardinality 1,2,…, k Step. Want to show that if S has cardinality k+1, the proposition still holds. Let S be such a set. Let r be an arbitrary element of S. Write S = X ⋃ {r }. Now, the subsets of S either contain r or they don’t. For the ones that do not contain r , those are also subsets of X, and there are 2k of them. To form the ones that do contain r, we take each subset of X and inset r in it. That would give us another 2k subsets. Thus, S has a total of 2k+1 subsets. © 2006 by A-H. Esfahanian. All Rights Reserved.

“Induction” and “Mathematical Inductions” Wednesday, April 19, 2017 “Induction” and “Mathematical Inductions” Let P(n) denote the number of different ways to write n as a sum of positive integers when order is not important. For instance, integer 5 can be written in the following 7 ways: 1+1+1+1+1=2+1+1+1=2+2+1=3+1+1=3+2=4+1=5 Verify that: P(2) = 2 P(3) = 3 P(4) = 5 P(5) = 7 P(6) = ? P(7) ….. P(6) = 11, P(7) = 15 © 2006 by A-H. Esfahanian. All Rights Reserved.

What’s wrong with the following proof? Wednesday, April 19, 2017 What’s wrong with the following proof? It fails when n = 1 (that is k = 0). Problem 54, page 255 © 2006 by A-H. Esfahanian. All Rights Reserved.