Mathematical Induction EECS 203: Discrete Mathematics Lecture 11 Spring 2016 1.

Slides:



Advertisements
Similar presentations
With examples from Number Theory
Advertisements

Mathematical Induction
Introduction to Proofs
MA/CSSE 473/474 How (not) to do an induction proof.
Induction Lecture 5: Sep 21 (chapter of the book and chapter of the notes)
Induction and recursion
Induction Sections 41. and 4.2 of Rosen Fall 2008 CSCE 235 Introduction to Discrete Structures Course web-page: cse.unl.edu/~cse235 Questions:
CS5371 Theory of Computation
Induction Sections 4.1 and 4.2 of Rosen Fall 2010
Logic: Connectives AND OR NOT P Q (P ^ Q) T F P Q (P v Q) T F P ~P T F
TR1413: INTRO TO DISCRETE MATHEMATICS LECTURE 2: MATHEMATICAL INDUCTION.
Copyright © Cengage Learning. All rights reserved.
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
1 Mathematical Induction. 2 Mathematical Induction: Example  Show that any postage of ≥ 8¢ can be obtained using 3¢ and 5¢ stamps.  First check for.
What it is? Why is it a legitimate proof method? How to use it?
MATH 224 – Discrete Mathematics
Induction and recursion
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!
College Algebra Fifth Edition James Stewart Lothar Redlin Saleem Watson.
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,
Math Review Data Structures & File Management Computer Science Dept Va Tech July 2000 ©2000 McQuain WD 1 Summation Formulas Let N > 0, let A, B, and C.
March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 1Arguments Just like a rule of inference, an argument consists of one or more.
1 Sections 1.5 & 3.1 Methods of Proof / Proof Strategy.
Methods of Proof Lecture 3: Sep 9. This Lecture Now we have learnt the basics in logic. We are going to apply the logical rules in proving mathematical.
Discrete Maths: Induction/1 1 Discrete Maths Objective – –to introduce mathematical induction through examples , Semester
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.
Chapter Mathematical Induction 4.2 Strong Induction and Well-Ordering 4.3 Recursive Definitions and Structural Induction 4.4 Recursive Algorithms.
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.
1 INFO 2950 Prof. Carla Gomes Module Induction Rosen, Chapter 4.
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.
CSE373: Data Structures and Algorithms Lecture 2: Proof by Induction Linda Shapiro Winter 2015.
INDUCTION Slides of Ken Birman, Cornell University.
Mathematical Induction
CS104:Discrete Structures Chapter 2: Proof Techniques.
Copyright © Cengage Learning. All rights reserved. Sequences and Series.
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,
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 ( الاستقراء الرياضي )
Mathematical Induction I Lecture 19 Section 4.2 Mon, Feb 14, 2005.
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)
The Foundations: Logic and Proofs
CSE15 Discrete Mathematics 03/22/17
Advanced Algorithms Analysis and Design
EECS 203: Discrete Mathematics
CSE 311 Foundations of Computing I
CSE 311 Foundations of Computing I
Induction and recursion
CSE 311: Foundations of Computing
Mathematical Induction
CSE373: Data Structures and Algorithms Lecture 2: Proof by Induction
CSE373: Data Structures and Algorithms Lecture 2: Proof by Induction
BaSIC Math Reviews.
Induction and recursion
Mathematical Induction I
Direct Proof and Counterexample I
Induction Chapter
Advanced Analysis of Algorithms
Mathematical Induction
CSE 321 Discrete Structures
Presentation transcript:

Mathematical Induction EECS 203: Discrete Mathematics Lecture 11 Spring

Climbing the Ladder We want to show that ∀ n≥1 P(n) is true. –Think of the positive integers as a ladder. – 1, 2, 3, 4, 5, 6,... You can reach the bottom of the ladder: – P(1) From each ladder step, you can reach the next. – P(1) → P(2), P(2) → P(3),... – ∀ k≥1 P(k) → P(k+1) Then, by mathematical induction: – ∀ n≥1 P(n) 2

Mathematical Induction How do we prove a universal statement about the positive integers: ∀ n≥1 P(n) Mathematical induction is an inference rule –Base case: P(1) –Inductive step: ∀ k≥1 P(k) → P(k+1) –Conclusion: ∀ n≥1 P(n) The inductive step requires proving an implication. 3

Simple Math Induction Example Prove, for all n ∈ N, Proof: We use induction. Let P(n) be: Base case: P(0), because 0 = 0. 4

Simple Math Induction Example Inductive step: Assume that P(k) is true, where k is an arbitrary natural number. 5

Simple Math Induction Example Inductive step: Assume that P(k) is true, where k is an arbitrary natural number. The first equality follows from P(k), and the second by simplification. Thus, P(k+1) is true. By induction, P(n) is true for all natural numbers n. QED –This shows how to write a clear inductive proof. 6

Question Did you understand the proof by induction? –(A) Yes, that’s really clever! –(B) How can you start with P(0) instead of P(1)? –(C) When do you use P(k) and when P(n)? –(D) Isn’t it circular to assume P(k), when you are trying to prove P(n)? –(E) I just don’t get it. 7

Divisibility Example (1) Let’s try to prove ∀ n ∈ N 3 | n 3 −n. –First, we’ll work through the mathematics. –Then we’ll structure a clear proof. Base case: P(0) is easy: 3 | (0 3 −0) –Everything divides zero, so it’s true. 8

Divisibility Example (2) Inductive step: ∀ k ∈ N P(k) → P(k+1) –Assume P(k): 3 | (k 3 −k) (for arbitrary k) –Can we prove P(k+1): 3 | ((k+1) 3 – (k+1)) ? Try multiplying it out: We know that 3 | (k 3 −k) and 3 | (3k 2 +3k). Conclude that 3 | ((k+1) 3 – (k+1)), so P(k) → P(k+1). 9

A Clear Divisibility Proof Theorem: ∀ n ∈ N 3 | (n 3 −n) Proof: Use induction on P(n): 3 | (n 3 −n). Base case: P(0) is true because 3 | (0 3 −0). Inductive step: Assume P(k), for arbitrary natural number k. Then: The final statement is P(k+1), so we have proved that P(k) → P(k+1) for all natural numbers k. By mathematical induction, P(n) is true for all n ∈ N. QED 10

Notice: we had to go back and start by assuming P(k) and then showing it implied P(k+1). –That first step isn’t at all clear unless you’ve done the math first! 11

Theorem: Proof: Base case: Inductive step: 12

A False “Proof” 13

False “Proof” (2) Inductive hypothesis P(k): In any set of k horses, all have the same color. Now consider a set of k+1 horses – h 1, h 2,... h k, h k+1 By P(k), the first k horses are all the same color – h 1, h 2,... h k, Likewise, the last k horses are also the same color – h 2,... h k, h k+1 Therefore, all k+1 horses must have the same color Thus, ∀ k ∈ N P(k) → P(k+1) So, ∀ n ∈ N P(n). What’s wrong? 14

Question What’s wrong with that proof by induction? –(A) Mathematical induction doesn’t apply to horses. –(B) The Base Case is incorrect. –(C) The Inductive Step is incorrect. –(D) The Base Case and Inductive Step are correct, but you’ve put them together wrong. –(E) It’s completely correct: all horses are the same color! 15

The Problem with the Horses Inductive step: ∀ k ∈ N P(k) → P(k+1) –Now consider a set of k+1 horses h 1, h 2,... h k, h k+1 –By P(k), the first k horses are all the same color h 1, h 2,... h k, –Likewise, the last k horses are also the same color h 2,... h k, h k+1 –Therefore, all k+1 horses must have the same color 16 A set of one horse with the same color Another set of one horse with the same color

The Problem with the Horses 17

The Problem with the Horses Inductive step: ∀ k ∈ N P(k) → P(k+1) –Now consider a set of k+1 horses h 1, h 2,... h k, h k+1 –By P(k), the first k horses are all the same color h 1, h 2,... h k, –Likewise, the last k horses are also the same color h 2,... h k, h k+1 –Therefore, all k+1 horses must have the same color 18

The Problem with the Horses Inductive step: ∀ k ∈ N P(k) → P(k+1) –Now consider a set of k+1 horses h 1, h 2,... h k, h k+1 –By P(k), the first k horses are all the same color h 1, h 2,... h k, –Likewise, the last k horses are also the same color h 2,... h k, h k+1 –Therefore, all k+1 horses must have the same color 19 A group of two

The Problem with the Horses Inductive step: ∀ k ∈ N P(k) → P(k+1) –Now consider a set of k+1 horses h 1, h 2,... h k, h k+1 –By P(k), the first k horses are all the same color h 1, h 2,... h k, –Likewise, the last k horses are also the same color h 2,... h k, h k+1 –Therefore, all k+1 horses must have the same color 20 Another group of two

The Problem with the Horses Inductive step: ∀ k ∈ N P(k) → P(k+1) –Now consider a set of k+1 horses h 1, h 2,... h k, h k+1 –By P(k), the first k horses are all the same color h 1, h 2,... h k, –Likewise, the last k horses are also the same color h 2,... h k, h k+1 –Therefore, all k+1 horses must have the same color 21 But base step wasn’t true!

Tiling a Checkerboard (1) For n≥1, consider a 2 n ×2 n checkerboard. Can we cover it with 3-square L-shaped tiles? No. Remove any one of the squares. Can we tile it now? Prove by induction: Let P(n) be the proposition: –A 2 n ×2 n checkerboard, minus any one of the squares, can be tiled with these L-shaped tiles. 22

Tiling a Checkerboard (2) Consider a 2 k+1 ×2 k+1 checkerboard, minus any one square. –Divide the checkerboard into four 2 k ×2 k quadrants. The missing square is in one quadrant. –From the other three quadrants, remove the square closest to the center of the checkerboard. 23

Tiling a Checkerboard (3) P(k) says that each quadrant (minus one square) can be tiled. One tile covers the three central squares. Thus, P(k) → P(k+1), for arbitrary k≥1. By mathematical induction, ∀ n≥1 P(n). 24

The Harmonic Series (1) The Harmonic Numbers are the partial sums of the Harmonic Series: We want to prove that: This implies an important property of the Harmonic Series: 25

The Harmonic Series (2) Theorem: Proof: By induction, with P(n) being Base case: P(0) is true because Inductive step: The inductive hypothesis P(k) is From that assumption, we want to prove P(k+1). 26

The Harmonic Series (3) The inductive hypothesis P(k) is This demonstrates P(k+1). 27

The Harmonic Series (4) This proves that P(k)  P(k+1) for arbitrary k. Therefore, by mathematical induction, P(n) is true for all n  N. QED. –Theorem: Let j = 2 n be some integer. Then n = log j. –Therefore, the Harmonic series diverges, because –But it diverges very slowly. 28

Prove that 6 divides n 3 − n whenever n is a nonnegative integer. 29