Induction Chapter 4.1-4.2.

Slides:



Advertisements
Similar presentations
Discrete Math Methods of proof 1.
Advertisements

PROOF BY CONTRADICTION
Review for CS1050. Review Questions Without using truth tables, prove that  (p  q)   q is a tautology. Prove that the sum of an even integer and an.
Mathematical induction Isaac Fung. Announcement ► Homework 1 released ► Due on 6 Oct 2008 (in class)
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.
Induction and Recursion. Odd Powers Are Odd Fact: If m is odd and n is odd, then nm is odd. Proposition: for an odd number m, m k is odd for all non-negative.
Induction Lecture 5: Sep 21 (chapter of the book and chapter of the notes)
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 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.
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.
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.
Mathematical 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 by: Mohsin tahir (GL) Numan-ul-haq Waqas akram Rao arslan Ali asghar.
Copyright © 2007 Pearson Education, Inc. Slide 8-1.
Induction (chapter of the book and chapter of the notes)
Induction and recursion
Mathematical Maxims and Minims, 1988
Induction and recursion
Chapter 6 Mathematical Induction
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!
CSNB143 – Discrete Structure Topic 5 – Induction Part I.
1 Introduction to Abstract Mathematics Chapter 4: Sequences and Mathematical Induction Instructor: Hayk Melikya 4.1- Sequences. 4.2,
Mathematical Induction I Lecture 4: Sep 16. This Lecture Last time we have discussed different proof techniques. This time we will focus on probably the.
Module #13: Inductive Proofs Rosen 5 th ed., § inference of a generalized conclusion from particular instances 2. mathematical demonstration of the.
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.
1 Inductive Proofs Rosen 6 th ed., § Mathematical Induction A powerful, rigorous technique for proving that a predicate P(n) is true for every.
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.
Methods of Proof Dr. Yasir Ali. Proof A (logical) proof of a statement is a finite sequence of statements (called the steps of the proof) leading from.
CS 103 Discrete Structures Lecture 13 Induction and Recursion (1)
1 INFO 2950 Prof. Carla Gomes Module Induction Rosen, Chapter 4.
Inductive Proofs and Inductive Definitions Jim Skon.
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
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,
Mathematical Induction I Lecture 5: Sep 20 (chapter of the textbook and chapter of the course notes)
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 And Recursion Discrete Math Team KS MATEMATIKA DISKRIT (DISCRETE MATHEMATICS ) 1.
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.
Induction (chapter of the book and chapter of the notes)
Advanced Algorithms Analysis and Design
Mathematical Induction II
Induction and recursion
Chapter 5 Induction and Recursion
Proofs, Recursion and Analysis of Algorithms
Discrete Mathematics and its Applications
Induction and recursion
Follow me for a walk through...
CSE 373 Data Structures and Algorithms
Module #13: Inductive Proofs
Follow me for a walk through...
Advanced Analysis of Algorithms
Chapter 11: Further Topics in Algebra
Mathematical Induction
Induction Rosen 5 Lecture 8: Oct 29, 30.
Mathematical Induction
Follow me for a walk through...
Discrete Mathematics and its Applications
Copyright © Cengage Learning. All rights reserved.
Agenda Proofs (Konsep Pembuktian) Direct Proofs & Counterexamples
Presentation transcript:

Induction Chapter 4.1-4.2

Odd Powers Are Odd If m is odd and n is odd, then nm is odd Proposition: for an odd number m, mk is odd for all non-negative integer k. Let P(i) be the proposition that mi is odd. Proof by induction

Proof by induction P(1) is true by definition. P(2) is true by P(1) and the fact. P(3) is true by P(2) and the fact. P(i+1) is true by P(i) and the fact. So P(i) is true for all i.

Mathematical Induction 1 and (from n to n +1) are valid, then, proves 1, 2, 3,…. Expressed as a rule of inference To prove that P(n) is true for all positive integers, where P(n) is a propositional function Two steps: Basis: verify P(1) is true Show that conditional statement if P(k) then P(k+1) is true for all positive integers k

Induction Basis step: Very easy to prove Induction step: Much easier to prove with P(n) as an assumption Domino effects.

Proof by Induction Example: summation of integers Proof: P(1) is true Assume: Then

Example Prove: Basis: Induction: if Then add to both side rn+1

Example Prove an inequity Basis: Induction:

Strong Induction To prove that P(n) is true for all positive integers n, where P(n) is a propositional function Tow steps: Basis step: verify that P(1) is true Inductive step: show that the conditional statement is true for ALL positive integers k Conclusion:

Equivalent to Ordinary Induction From ordinary induction: 0 to 1, 1 to 2, 2 to 3, …, n-1 to n So by the time we got to n+1, already know all of P(0), P(1), …, P(n) So strong induction is equivalent to ordinary one

Example: Prime Products Claim: Every integer > 1 is a product of primes. Proof:(by strong induction) Base case is easy, 2 is a prime itself; Suppose the claim is true for all 2 <= i < n. Consider an integer n; In particular, n is not prime since if it is we do not need to prove. So n = k·m for integers k, m where n > k,m>1. Since k,m smaller than n, by the induction hypothesis, both k and m are product of prime Therefore, n is a prime product

Example: Postage Available stamps: 5¢ 3¢ What amount can we get from these stamps Theorem: Can form any amount larger or equal to 8¢ Prove by strong induction on all n larger or equal to 8 P(n) ::= can form (n+8)¢.

Postage: Strong induction proof Basis step: n=0 (0+8)¢=8¢. Inductive Step: assume (m +8)¢ for 0 <= m < n then prove ((n +1) + 8)¢ Case 1: n +1=1, 9¢ Case 2: n +1=2, 10¢

Postage: Strong induction proof Case 3: n +1 >= 3: let m=n-2 now n >= m >= 0, so by induction hypothesis + = (n+1)+8 can be formed (n-2)+8 is formed Add a 3¢