Jessie Zhao Course page: 1.

Slides:



Advertisements
Similar presentations
Mathematical Induction
Advertisements

PROOF BY CONTRADICTION
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:
Discussion #131/18 Discussion #13 Induction (the process of deriving generalities from particulars) Mathematical Induction (deductive reasoning over the.
Induction Sections 4.1 and 4.2 of Rosen Fall 2010
1 Intro to Induction Supplementary Notes Prepared by Raymond Wong Presented by Raymond Wong.
TR1413: INTRO TO DISCRETE MATHEMATICS LECTURE 2: MATHEMATICAL INDUCTION.
CSE115/ENGR160 Discrete Mathematics 03/22/12 Ming-Hsuan Yang UC Merced 1.
EE1J2 - Slide 1 EE1J2 – Discrete Maths Lecture 12 Number theory Mathematical induction Proof by induction Examples.
CSS342: Induction1 Professor: Munehiro Fukuda. CSS342: Induction2 Today’s Topics Review of sequence and summations Mathematical induction Strong form.
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.
Mathematical Induction
Induction and Recursion by: Mohsin tahir (GL) Numan-ul-haq Waqas akram Rao arslan Ali asghar.
What it is? Why is it a legitimate proof method? How to use it?
ICS 253 Presents Mathematical Induction Sultan Almuhammadi muhamadi
Induction and recursion
Chapter 6 Mathematical Induction
Discrete Mathematics, 1st Edition Kevin Ferland
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,
CSE 311 Foundations of Computing I Lecture 15 Recursive Definitions and Structural Induction Autumn 2011 CSE 3111.
Discrete Mathematics Tutorial 11 Chin
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.
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.
Mathematical Induction
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.
Induction Practice CS1050. Prove that whenever n is a positive integer. Proof: Basis Case: Let n = 1, then.
UCI ICS/Math 6D, Fall Induction-1 Induction Let P(n) be a predicate (“propositional function”) regarding integers n≥n 0 for some n 0 (typically.
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 ( الاستقراء الرياضي )
6/12/2016 Prepared by Dr.Saad Alabbad1 CS100 : Discrete Structures Proof Techniques(2) Mathematical Induction & Recursion Dr.Saad Alabbad Department of.
Mathematical Induction What it is? Why is it a legitimate proof method? How to use it?
Mathematical Induction I Lecture 19 Section 4.2 Mon, Feb 14, 2005.
1 Section 4.4 Inductive Proof What do we believe about nonempty subsets of N? Since  N, <  is well-founded, and in fact it is linear, it follows that.
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.
1 Mathematical Induction. 2 What is induction? A method of proof It does not generate answers: it only can prove them Three parts: Base case(s): show.
Hubert Chan (Chapters 1.6, 1.7, 4.1)
11.7 – Proof by Mathematical Induction
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
Hubert Chan (Chapters 1.6, 1.7, 4.1)
Chapter 5 Induction and Recursion
Explorations in Artificial Intelligence
Proofs, Recursion and Analysis of Algorithms
Discrete Mathematics and its Applications
Induction and recursion
Exercise Use mathematical induction to prove the following formula.
Follow me for a walk through...
Applied Discrete Mathematics Week 9: Integer Properties
Follow me for a walk through...
Induction Chapter
Advanced Analysis of Algorithms
Mathematical Induction
Mathematical Induction
Follow me for a walk through...
Agenda Proofs (Konsep Pembuktian) Direct Proofs & Counterexamples
CSE 311 Foundations of Computing I
Presentation transcript:

Jessie Zhao Course page: 1

 Last date to drop courses without receiving a grade : Nov 9 th  No Assignment is released today!  Test 2 on Nov 5 th, ◦ Ch ◦ 7pm-8:20pm ◦ Location: SLH F (Last name from A-L) and SLH A (Last name from M-Z) ◦ Lecture: 8:40pm, SLH A.  You may pick up your Assignment 4 during my office hour: Nov 5 th 2:00pm - 4:00pm (TEL 3056) 2

 Proof methods: direct proof, proof by cases, proof by contraposition, proof by contradiction, disproof by counterexample  Mathematical induction ◦ very simple and powerful proof technique ◦ often used to prove P(x) is true for all positive integers ◦ “Guess” and verify strategy 3

(P(1) ⋀ ∀k(P(k) ➝ P(k+1)) ➝ ∀nP(n)  To prove that ∀nP(n), where n∈Z⁺ and P(n) is a propositional function, we complete two steps: ◦ i) Basis step: Verify P(1) is true ◦ ii)Inductive step: Show P(k) ➝ P(k+1) is true for arbitrary k∈Z⁺ 4

 Knowing it is true for the first element means it must be true for the next element, i.e. the second element  Knowing it is true for the second element implies it is true for the third and so forth.  Need a starting point (Base case) 5 P(1) P(k) → P(k+1) , P(2) P(k) → P(k+1) , … P(3)

 How to show P(1) is true? ◦ Replace n by 1 in P(n)  How to show P(k) ➝ P(k+1) is true? ◦ Direct proof is normally used ◦ (Inductive Hypothesis) Assume P(k) is true for some arbitrary k ◦ Then show P(k+1) is true 6

 Example: Show that 1² + 2² + 3² + …+n² = n(n+1)(2n+1)/6, where n ∈ Z⁺  Proof: ◦ Basis case P(1): LHS=1² = 1, RHS=1*(1+1)(2*1+1)/6=1 ◦ Inductive step:  Assume P(k) is true: 1² + 2² + 3² + …+k² = k(k+1)(2k+1)/6  For P(k+1): Show that 1² + 2² + 3² + …+k²+ (k+1)²= (k+1)(k+2)(2k+3)/6 (Details on Board)  We showed P(k+1) is true under the assumption that P(k) is true. ◦ By mathematical induction P(n) is true for all positive integers 7

 Example: n < 4 n, where n ∈ Z⁺  Proof ◦ Basis case: P(1) holds since 1<4 ◦ Inductive step:  Assume P(k) is true: k < 4 k  For P(k+1): k+1 < 4 k +1 < 4 k + 4 k = 2*4 k < 4*4 k = 4 k+1 ◦ By mathematical induction P(n) is true for all positive integers 8

 Example: Prove that n³-n is divisible by 3 whenever n is a positive integer. ◦ Basis step: P(1): 1³-1=0, which is divisible by 3. ◦ Inductive step:  Assume P(k) is true: k³ -k is divisible by 3  For P(k+1): (k+1)³ -(k+1) =k³ +3k²+3k+1-k-1 =(k³-k ) +3(k²+k) From the assumption, k³-k is divisible by 3, so P(k+1) is true. By mathematical induction, P(n) is true for all positive integers 9

 Basis case doe not have to be n=1  How to show that P(n) is true for n=b, b+1, b+2,.... where b is an integer other than 1? ◦ i) Basis step: Verify P(b) is true ◦ ii)Inductive step: Show P(k) ➝ P(k+1) is true for arbitrary k∈Z 10

 Show that 1+2+2² n = 2 n+1 -1, where n∈N  Proof by induction: ◦ Basis step: P(0): LHS=1, RHS = = 1. ◦ Inductive step:  Assume P(k) is true for arbitrary k∈N, k = 2 k+1 -1  Need to show P(k+1): k +2 k+1 = 2 k+2 -1 is true. LHS = ( k )+2 k+1 = 2 k k+1 = 2 k+2 -1 So LHS = RHS. We showed P(k+1) is true under the assumption that P(k) is true. ◦ By mathematical induction P(n) is true for all natural numbers 11

 Prove  Proof by induction: ◦ P(n): a+ar+ar ar n = (ar n+1 -a)/(r-1) ◦ Basis case: P(0): a = (ar-a)/(r-1). So, P(0) is true ◦ Inductive step:  Assume P(k) is true for arbitrary k∈N, a+ar+ar ar k = (ar k+1 -a)/(r-1)  Need to show P(k+1): a+ar+ar ar k + ar k+1 = (ar k+2 -a)/(r-1) is true.  LHS = (ar k+1 -a)/(r-1) +ar k+1 = (ar k+1 -a +ar k+2 -ar k+1 )/(r-1)  So LHS = RHS.  We showed P(k+1) is true under the assumption that P(k) is true. ◦ By mathematical induction P(n) is true for all natural numbers 12

 Show that all horses are the same color.  Proof: ◦ We do induction on the size of sets of horses of the same color. ◦ Basis step: Obviously all sets of 0 horses (and all sets with 1 horse) are the same color ◦ Inductive step:  Assume all horses are the same color for k horses  Now show it must be true for all sets of k+1 horses  Every set of k+1 horses has an overlap of horses which are the same color.  So k+1 horses have the same color.  Therefore all horses have the same color. 13

(P(1) ⋀ ∀k(P(1)⋀P(2)⋀...⋀P(k) ➝ P(k+1))) ➝ ∀nP(n)  To prove that ∀nP(n), where n∈Z⁺ and P(n) is a propositional function, we complete two steps: ◦ i) Basis step: Verify P(1) is true ◦ ii)Inductive step: Show P(1)⋀P(2)⋀...⋀P(k) ➝ P(k+1)is true for arbitrary k∈Z⁺ 14

 A more general strong induction can handle cases where the inductive step is valid only for integers greater than a particular integer.  To prove that P(n) is true for all integer n≥b, we complete two steps: ◦ i) Basis step: Verify P(b), P(b+1),..., P(b+j) are true ◦ ii)Inductive step: Show P(b+1)⋀P(b+2)⋀...⋀P(b+k) ➝ P(k+1) is true for every integer k≥b+j 15

 Example: Show that if n is an integer greater than 1, then n can be written as the product of primes  Proof by strong induction: ◦ First identify P(n), P(n): n can be written as the product of primes ◦ Basis step: P(2): 2 is a prime number, so P(2) is true. ◦ Inductive step:  Assume P(j) is true for 1 1, i.e. j can be written as the product of primes when 1<j≤k  Need to show P(k+1).  Case 1: k+1 is prime, then P(k+1) is true.  Case 2: k+1 is composite k+1=a*b, where a and b are positive integers, and 2≤a,b≤k. By the assumption, a and b can be written as the product of primes. Then k+1 can be written as the product of primes. 16