Mathematical Induction

Similar documents
Mathematical Induction

Climbing an Infinite Ladder

Discrete Mathematics. Spring 2017

CS 220: Discrete Structures and their Applications. Mathematical Induction in zybooks

Climbing an Infinite Ladder

Mathematical Induction Assignments

Proof by Contradiction

Sum of Squares. Defining Functions. Closed-Form Expression for SQ(n)

Mathematical Induction. Section 5.1

CSE 311: Foundations of Computing. Lecture 14: Induction

Carmen s Core Concepts (Math 135)

Chapter Summary. Mathematical Induction Strong Induction Well-Ordering Recursive Definitions Structural Induction Recursive Algorithms

INDUCTION AND RECURSION. Lecture 7 - Ch. 4

CSC 344 Algorithms and Complexity. Proof by Mathematical Induction

CISC-102 Fall 2017 Week 3. Principle of Mathematical Induction

Mathematical Induction. Defining Functions. Overview. Notation for recursive functions. Base case Sn(0) = 0 S(n) = S(n 1) + n for n > 0

Math 324 Summer 2012 Elementary Number Theory Notes on Mathematical Induction

Discrete Math, Spring Solutions to Problems V

Induction and recursion. Chapter 5

THE ISLAMIC UNIVERSITY OF GAZA ENGINEERING FACULTY DEPARTMENT OF COMPUTER ENGINEERING DISCRETE MATHMATICS DISCUSSION ECOM Eng. Huda M.

At the start of the term, we saw the following formula for computing the sum of the first n integers:

Problem Set 5 Solutions

Induction and Recursion

Induction. Announcements. Overview. Defining Functions. Sum of Squares. Closed-form expression for SQ(n) There have been some corrections to A1

CS1800: Mathematical Induction. Professor Kevin Gold

Note that r = 0 gives the simple principle of induction. Also it can be shown that the principle of strong induction follows from simple induction.

Mathematical Induction. How does discrete math help us. How does discrete math help (CS160)? How does discrete math help (CS161)?

With Question/Answer Animations

Any Wizard of Oz fans? Discrete Math Basics. Outline. Sets. Set Operations. Sets. Dorothy: How does one get to the Emerald City?

Proofs. Joe Patten August 10, 2018

1 Examples of Weak Induction

Mathematical Induction. Part Two

MATHEMATICAL INDUCTION

Mathematical Induction. Rosen Chapter 4.1,4.2 (6 th edition) Rosen Ch. 5.1, 5.2 (7 th edition)

Show Your Work! Point values are in square brackets. There are 35 points possible. Some facts about sets are on the last page.

Chapter 2. Mathematical Reasoning. 2.1 Mathematical Models

MATH 324 Summer 2011 Elementary Number Theory. Notes on Mathematical Induction. Recall the following axiom for the set of integers.

Induction. Induction. Induction. Induction. Induction. Induction 2/22/2018

Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 1

Mathematical Induction. EECS 203: Discrete Mathematics Lecture 11 Spring

Announcements. Read Section 2.1 (Sets), 2.2 (Set Operations) and 5.1 (Mathematical Induction) Existence Proofs. Non-constructive

Mathematical Induction. Part Two

Homework #2 Solutions Due: September 5, for all n N n 3 = n2 (n + 1) 2 4

Chapter 3: Propositional Calculus: Deductive Systems. September 19, 2008

Disproof MAT231. Fall Transition to Higher Mathematics. MAT231 (Transition to Higher Math) Disproof Fall / 16

Department of Computer Science University at Albany, State University of New York Solutions to Sample Discrete Mathematics Examination I (Spring 2008)

Mathematical Induction Again

Lecture 3.2: Induction, and Strong Induction

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 3

M381 Number Theory 2004 Page 1

Some Review Problems for Exam 1: Solutions

CS173 Strong Induction and Functions. Tandy Warnow

Proof Techniques (Review of Math 271)

Mathematical Induction Again

Mat Week 8. Week 8. gcd() Mat Bases. Integers & Computers. Linear Combos. Week 8. Induction Proofs. Fall 2013

Student Responsibilities Week 8. Mat Section 3.6 Integers and Algorithms. Algorithm to Find gcd()

Mathematical Fundamentals

Mathematical Induction

Recurrence Relations

Discrete Mathematics. Spring 2017

n n P} is a bounded subset Proof. Let A be a nonempty subset of Z, bounded above. Define the set

Section 4.2: Mathematical Induction 1

CSE373: Data Structures and Algorithms Lecture 2: Proof by Induction. Linda Shapiro Spring 2016

Discrete Mathematics for CS Spring 2008 David Wagner Note 4

STUDY PROBLEMS FOR EXAM I CMSC 203 DISCRETE STRUCTURES. n (n +1)(2n +1), 6. j 2 = 1(1+1)(2 1+1) 6. k (k +1)(2k +1) 6

0.Axioms for the Integers 1

CSC 125 :: Final Exam May 3 & 5, 2010

Predicate Logic. Andreas Klappenecker

Solutions Quiz 9 Nov. 8, Prove: If a, b, m are integers such that 2a + 3b 12m + 1, then a 3m + 1 or b 2m + 1.

F 2k 1 = F 2n. for all positive integers n.

CHAPTER 8: EXPLORING R

Sample Problems. Lecture Notes Proof by Induction page 1. Prove each of the following statements by induction.

Basics of Proofs. 1 The Basics. 2 Proof Strategies. 2.1 Understand What s Going On

Department of Computer Science University at Albany, State University of New York Solutions to Sample Discrete Mathematics Examination II (Fall 2007)

n(n + 1). 2 . If n = 3, then 1+2+3=6= 3(3+1) . If n = 2, then = 3 = 2(2+1)

Writing proofs for MATH 51H Section 2: Set theory, proofs of existential statements, proofs of uniqueness statements, proof by cases

Limits and Continuity

MATH 102 INTRODUCTION TO MATHEMATICAL ANALYSIS. 1. Some Fundamentals

LINEAR RECURSIVE SEQUENCES. The numbers in the sequence are called its terms. The general form of a sequence is

CSCE 222 Discrete Structures for Computing. Dr. Hyunyoung Lee

Fall 2017 Test II review problems

Sequences of Real Numbers

21 Induction. Tom Lewis. Fall Term Tom Lewis () 21 Induction Fall Term / 14

What can you prove by induction?

Logic, Sets, and Proofs

Math 24 Spring 2012 Questions (mostly) from the Textbook

Lecture 7 Feb 4, 14. Sections 1.7 and 1.8 Some problems from Sec 1.8

MATH 13 SAMPLE FINAL EXAM SOLUTIONS

3 The language of proof

CS173 Lecture B, September 10, 2015

CS 360, Winter Morphology of Proof: An introduction to rigorous proof techniques

SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION

Lecture 2: Proof Techniques Lecturer: Lale Özkahya

Algorithm Analysis Recurrence Relation. Chung-Ang University, Jaesung Lee

Contradiction MATH Contradiction. Benjamin V.C. Collins, James A. Swenson MATH 2730

Introduction to Induction (LAMC, 10/14/07)

Recurrence Relations and Recursion: MATH 180

Induction 1 = 1(1+1) = 2(2+1) = 3(3+1) 2

Mathematical Induction

Final Exam Review. 2. Let A = {, { }}. What is the cardinality of A? Is

Transcription:

Mathematical Induction MAT30 Discrete Mathematics Fall 018 MAT30 (Discrete Math) Mathematical Induction Fall 018 1 / 19

Outline 1 Mathematical Induction Strong Mathematical Induction MAT30 (Discrete Math) Mathematical Induction Fall 018 / 19

Motivation Suppose we were presented with the formula 1 + + 3 + + n = n(n + 1) but were not shown how it was derived. How could we prove that it holds for all integers n 1? We could try a bunch of different values of n and find that it works, but how can we know it works for all n 1? MAT30 (Discrete Math) Mathematical Induction Fall 018 3 / 19

Mathematical Induction This sort of problem is solved using mathematical induction. Some key points: Mathematical induction is used to prove that each statement in a list of statements is true. Often this list is countably infinite (i.e. indexed by the natural numbers). It consists of four parts: a base step, an explicit statement of the inductive hypothesis, an inductive step, and a summary statement. MAT30 (Discrete Math) Mathematical Induction Fall 018 4 / 19

Mathematical Induction Here is a list of statements corresponding to the sum we are interested in. P(1): 1 = (1)(1 + 1)/ P(): 1 + = ()( + 1)/ P(3): 1 + + 3 = (3)(3 + 1)/.. P(n 1): 1 + + 3 + + (n 1) = (n 1)((n 1) + 1)/ P(n): 1 + + 3 + + (n 1) + n = (n)(n + 1)/ Notice that the list is finite as it contains n statements. However, proving all these are true for any positive integer n means that we have proved an infinite number of statements. MAT30 (Discrete Math) Mathematical Induction Fall 018 5 / 19

Mathematical Induction Using mathematical induction is a bit like setting up cascading dominos: We begin by proving P(1) is true. This is the base step. We next show that P(k) P(k + 1) for k 1. This is the inductive step. We now know that P(1) P(). But as soon as P() is known to be true we can say P() P(3). But then P(3) P(4), P(4) P(5), P(5) P(6),... MAT30 (Discrete Math) Mathematical Induction Fall 018 6 / 19

Mathematical Induction Proof Proposition 1 + + + n = n(n + 1) for any n Z +. Proof. We prove this by mathematical induction. (Base Case) When n = 1 we find 1 = 1(1 + 1) so the statement is true when n = 1. = = 1 MAT30 (Discrete Math) Mathematical Induction Fall 018 7 / 19

Mathematical Induction Proof Proof (continued). We now want to show that if for some k Z + then 1 + + + k + (k + 1) = 1 + + + k = k(k + 1) (k + 1)((k + 1) + 1) = (k + 1)(k + ). (Note: Stating this does not prove anything, but is very helpful. It forces us to explicitly write what we are going to prove, so both we (as prover) and the reader know what to look for in the remainder of the inductive step.) MAT30 (Discrete Math) Mathematical Induction Fall 018 8 / 19

Mathematical Induction Proof Proof (continued). (Inductive Hypothesis) Suppose 1 + + + k = k Z +. (Inductive Step) Then k(k + 1) for some 1 + + + k = 1 + + + k + (k + 1) = = = = k(k + 1) k(k + 1) + (k + 1) k(k + 1) (k + 1) + k(k + 1) + (k + 1) (k + 1)(k + ) MAT30 (Discrete Math) Mathematical Induction Fall 018 9 / 19

Mathematical Induction Proof Proof (continued). (Summary) It follows by induction that 1 + + + n = n Z +. n(n + 1) for all MAT30 (Discrete Math) Mathematical Induction Fall 018 10 / 19

Mathematical Induction Logic Notice that mathematical induction is an application of Modus Ponens: (P(1)) ( k Z +, (P(k) P(k + 1))) ( n Z +, P(n)) Some notes: The actual indexing scheme used is unimportant. For example, we could start with P(0), P(), or even P( 1) rather than P(1). The key is that we start with a specific statement, and then prove that any one statements implies the next. To prove something about statements indexed by the integers, the inductive step would include two parts P(k) P(k + 1) and P(k) P(k 1). MAT30 (Discrete Math) Mathematical Induction Fall 018 11 / 19

Example Recall that a b means a divides b. This is a proposition; it is true if there is a nonzero integer k such that b = ka otherwise it is false. Proposition Show that 3 (n 3 n) whenever n is a positive integer. Proof. We use mathematical induction. When n = 1 we find n 3 n = 1 1 = 0 and 3 0 so the statement is proved for n = 1. Now we need to show that if 3 (k 3 k) for some integer k > 0 then 3 ((k + 1) 3 (k + 1)). MAT30 (Discrete Math) Mathematical Induction Fall 018 1 / 19

Example Proof (continued). Suppose that 3 (k 3 k). Then (k 3 k) = 3a for some integer a. Then, starting with (k + 1) 3 (k + 1), we find (k + 1) 3 (k + 1) = k 3 + 3k + 3k + 1 k 1 = (k 3 k) + 3k + 3k = 3a + 3k + 3k = 3(a + k + k). We know that a + k + k is an integer so we see that (k + 1) 3 (k + 1) is a multiple of 3. By definition, therefore, 3 ((k + 1) 3 (k + 1)). It follows by induction that 3 (n 3 n) for all integers n > 0. MAT30 (Discrete Math) Mathematical Induction Fall 018 13 / 19

Strong Mathematical Induction Sometimes it is helpful to use a slightly different inductive step. In particular, it may be difficult or impossible to show P(k) P(k + 1) but easier (or possible) to show that (P(1) P() P(k)) P(k + 1). In other words, assume that all statements from P(1) to P(k) have been proved and use some combination of them to prove P(k + 1). This is called strong mathematical induction. MAT30 (Discrete Math) Mathematical Induction Fall 018 14 / 19

Strong Mathematical Induction Example Proposition Any integer n > 11 can be written in the form n = 4a + 5b for a, b Z. Proof. We use mathematical induction. Let P(n) be the statement n can be written in the form 4a + 5b for some a, b Z and note that P(1) : 1 = 4(3) + 5(0) P(13) : 13 = 4() + 5(1) P(14) : 14 = 4(1) + 5() P(15) : 15 = 4(0) + 5(3) to see that P(1), P(13), P(14), and P(15) are all true. MAT30 (Discrete Math) Mathematical Induction Fall 018 15 / 19

Strong Mathematical Induction Example Proof (continued). Now, suppose that P(k 3), P(k ), P(k 1), and P(k) have all been proved. This means that P(k 3) is true, so we know that k 3 = 4a + 5b for some integers a and b. Adding 4 to both sides we have k 3 + 4 = 4a + 5b + 4 k + 1 = 4(a + 1) + 5b so P(k + 1) must be true, completing the induction. MAT30 (Discrete Math) Mathematical Induction Fall 018 16 / 19

Another Mathematical Induction Example Proposition 9 (10 n 1) for all integers n 0. Proof. (By induction on n.) When n = 0 we find 10 n 1 = 10 0 1 = 0 and since 9 0 we see the statement holds for n = 0. Now suppose the statement holds for all values of n up to some integer k; we need to show it holds for k + 1. Since 9 (10 k 1) we know that 10 k 1 = 9x for some x Z. Multiplying both sides by 10 gives 10 (10 k 1) = 10 9x 10 k+1 10 = 9 10x 10 k+1 1 = 9 10x + 9 = 9 (10x + 1) which clearly shows that 9 (10 k+1 1). This completes the induction. MAT30 (Discrete Math) Mathematical Induction Fall 018 17 / 19

Fibonacci Numbers The Fibonacci sequence is usually defined as the sequence starting with f 0 = 0 and f 1 = 1, and then recursively as f n = f n 1 + f n. The Fibonacci sequence starts off with 0, 1, 1,, 3, 5, 8, 13, 1, 34,.... MAT30 (Discrete Math) Mathematical Induction Fall 018 18 / 19

Fibonacci Numbers Proposition Prove that f 0 + f 1 + f + + f n = f n+ 1 for n. Proof. We use induction. As our base case, notice that f 0 + f 1 = f 3 1 since f 0 + f 1 = 0 + 1 = 1, and f 3 1 = 1 = 1. Suppose that f 0 + f 1 + f + + f k = f k+ 1 for some k. Adding f k+1 on both sides, we have f 0 + f 1 + f + + f k + f k+1 = f k+ 1 + f k+1 = f k+1 + f k+ 1 This completes the induction. = f k+3 1. MAT30 (Discrete Math) Mathematical Induction Fall 018 19 / 19