Mathematical Induction

Similar documents
Climbing an Infinite Ladder

Discrete Mathematics. Spring 2017

Climbing an Infinite Ladder

SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION

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 Induction. Section 5.1

Math.3336: Discrete Mathematics. Proof Methods and Strategy

INDUCTION AND RECURSION. Lecture 7 - Ch. 4

= 1 2x. x 2 a ) 0 (mod p n ), (x 2 + 2a + a2. x a ) 2

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

CSE 20 DISCRETE MATH SPRING

Example ( x.(p(x) Q(x))) ( x.p(x) x.q(x)) premise. 2. ( x.(p(x) Q(x))) -elim, 1 3. ( x.p(x) x.q(x)) -elim, x. P(x) x.

MAT246H1S - Concepts In Abstract Mathematics. Solutions to Term Test 1 - February 1, 2018

Math.3336: Discrete Mathematics. Mathematical Induction

Lecture 2. Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits. Reading (Epp s textbook)

We want to show P (n) is true for all integers

WORKSHEET MATH 215, FALL 15, WHYTE. We begin our course with the natural numbers:

CSC 344 Algorithms and Complexity. Proof by Mathematical Induction

Proofs. Methods of Proof Divisibility Floor and Ceiling Contradiction & Contrapositive Euclidean Algorithm. Reading (Epp s textbook)

Mathematical Induction. EECS 203: Discrete Mathematics Lecture 11 Spring

4. Number Theory (Part 2)

Mathematics 220 Midterm Practice problems from old exams Page 1 of 8

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

Division Algorithm B1 Introduction to the Division Algorithm (Procedure) quotient remainder

MATH 215 Final. M4. For all a, b in Z, a b = b a.

Mathematical Induction Assignments

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

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

Introduction Integers. Discrete Mathematics Andrei Bulatov

Long division for integers

Midterm Exam Solution

Lecture Notes 1 Basic Concepts of Mathematics MATH 352

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

Number Bases. Ioan Despi. University of New England. August 4, 2013

Chapter 5. Number Theory. 5.1 Base b representations

Chapter 2 (Part 3): The Fundamentals: Algorithms, the Integers & Matrices. Integers & Algorithms (2.5)

Standard forms for writing numbers

Proof Techniques (Review of Math 271)

ELEMENTARY NUMBER THEORY AND METHODS OF PROOF

THE DIVISION THEOREM IN Z AND R[T ]

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.

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

Name CMSC203 Fall2008 Exam 2 Solution Key Show All Work!!! Page (16 points) Circle T if the corresponding statement is True or F if it is False.

Mathematical Induction

THE DIVISION THEOREM IN Z AND F [T ]

CSE 20: Discrete Mathematics

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

Chapter 1 : The language of mathematics.

Fall 2017 Test II review problems

Mathematical Writing and Methods of Proof

CMPSCI 250: Introduction to Computation. Lecture 11: Proof Techniques David Mix Barrington 5 March 2013

Mathematics 228(Q1), Assignment 2 Solutions

Principles of Real Analysis I Fall I. The Real Number System

Discrete Mathematics GCD, LCM, RSA Algorithm

Complete Induction and the Well- Ordering Principle

MAT 243 Test 2 SOLUTIONS, FORM A

CSE 20. Final Review. CSE 20: Final Review

Chapter 2 Section 2.1: Proofs Proof Techniques. CS 130 Discrete Structures

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

With Question/Answer Animations

C241 Homework Assignment 7

Induction and recursion. Chapter 5

2.5 정수와알고리즘 (Integers and Algorithms)

PROOFS IN MATHEMATICS

3 The fundamentals: Algorithms, the integers, and matrices

Lecture 4: Probability, Proof Techniques, Method of Induction Lecturer: Lale Özkahya

Base-b representations of integers. (b 진법표현 ) Algorithms for computer arithmetic: Euclidean algorithm for finding GCD s.

The Real Number System

CS173 Strong Induction and Functions. Tandy Warnow

Divisibility = 16, = 9, = 2, = 5. (Negative!)

Induction and Recursion

Prompt. Commentary. Mathematical Foci

Mathematical Reasoning & Proofs

UNIVERSITY OF VICTORIA DECEMBER EXAMINATIONS MATH 122: Logic and Foundations

M381 Number Theory 2004 Page 1

CSE 1400 Applied Discrete Mathematics Proofs

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

1 Overview and revision

2 Elementary number theory

3 The language of proof

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

Seunghee Ye Ma 8: Week 2 Oct 6

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

MATH 2200 Final Review

Ch 3.2: Direct proofs

4 Number Theory and Cryptography

MATH Dr. Halimah Alshehri Dr. Halimah Alshehri

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

Basic Proof Examples

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

MATH FINAL EXAM REVIEW HINTS

SMT 2013 Power Round Solutions February 2, 2013

Solution Set 2. Problem 1. [a] + [b] = [a + b] = [b + a] = [b] + [a] ([a] + [b]) + [c] = [a + b] + [c] = [a + b + c] = [a] + [b + c] = [a] + ([b + c])

Section 4.2: Mathematical Induction 1

Ch 4.2 Divisibility Properties

CSE 20 DISCRETE MATH. Fall

Proofs. Joe Patten August 10, 2018

CS1800: Mathematical Induction. Professor Kevin Gold

NUMBER SYSTEMS. Number theory is the study of the integers. We denote the set of integers by Z:

Transcription:

Mathematical Induction Representation of integers Mathematical Induction Reading (Epp s textbook) 5.1 5.3 1

Representations of Integers Let b be a positive integer greater than 1. Then if n is a positive integer, it can be expressed uniquely in the form: n = a k b k + a k-1 b k-1 + + a 1 b + a 0, where k is a nonnegative integer, a 0, a 1,, a k are nonnegative integers less than b, and a k 0. Example for b=10: 859 = 8 10 2 + 5 10 1 + 9 10 0 2

Representations of Integers Example for b=2 (binary expansion): (10110) 2 = 1 2 4 + 1 2 2 + 1 2 1 = (22) 10 Example for b=16 (hexadecimal expansion): (we use letters A to F to indicate numbers 10 to 15) (3A0F) 16 = 3 16 3 + 10 16 2 + 15 16 0 = (14863) 10 (B0C) 16 = 11 16 2 + 12 16 0 = (2828) 10 = (101100001100) 2 = 1 2 11 + 1 2 9 + 1 2 8 + 1 2 3 + 1 2 2 3

Base b expansion How can we construct the base b expansion of an integer n? First, divide n by b to obtain a quotient q 0 and remainder a 0, that is, n = bq 0 + a 0, where 0 a 0 < b. The remainder a 0 is the rightmost digit in the base b expansion of n. Next, divide q 0 by b to obtain: q 0 = bq 1 + a 1, where 0 a 1 < b. a 1 is the second digit from the right in the base b expansion of n. Continue this process until you obtain a quotient equal to zero. 4

Example What is the base 8 expansion of (12345) 10? First, divide 12345 by 8: 12345 = 8 1543 + 1 1543 = 8 192 + 7 192 = 8 24 + 0 24 = 8 3 + 0 3 = 8 0 + 3 The result is: (12345) 10 = (30071) 8. 5

Base b expansion Algorithm n: positive integer b: positive integer, greater than 1 procedure base_b_expansion(n, b) q := n k := 0 while (k = 0 or q 0) a k := q mod b q := q/b k := k + 1 end while {the base b expansion of n is (a k-1 a 1 a 0 ) b } 6

Proof Methods (seen so far) Many different strategies for proving theorems: Direct proof: p q proved by directly showing that if p is true, then q must follow. Proof by contraposition: Prove p q by proving q p Proof by contradiction: Prove that the negation of the theorem yields a contradiction. Proof by cases: Exhaustively enumerate different possibilities, and prove the theorem for each case In many proofs, one needs to combine several different strategies! 7

Invalid Proof Methods Proof by obviousness: The proof is so clear, it need not be mentioned! Proof by intimidation: Don t be stupid of course it s true! Proof by confusion: α θ β α β γ Proof by intuition: I have this gut feeling.. Proof by resource limits: Due to lack of space, we omit this part of the proof... Don t ever use anything like these!! 8

Induction Suppose we have an infinite ladder, and we know two things: I. We can reach the first rung of the ladder. II. If we reach a particular rung, then we can also reach the next rung. From these two facts, can we conclude that we can reach every step of the infinite ladder? Answer is yes, and mathematical induction allows us to make arguments like this. 9

Induction The principle of mathematical induction is a useful tool for proving that a certain property is true for all integers n a. It cannot be used to discover theorems, but only to prove them. If we have a propositional function P(n), and we want to prove that P(n) is true for any integer n a, we do the following: 1.Show that P(a) is true. (basis step) 2.Show that if P(k) then P(k + 1) for any k a. (inductive step) 3.Then P(n) must be true for any n a. (conclusion) 10

Mathematical Induction Used to prove statements of the form x Z +, P(x). An inductive proof has two steps: 1. Base case: Prove that P(1) is true. 2. Inductive step: Prove n Z +, P(k) P(k + 1). Induction says if you can prove (1) and (2), you can conclude: x Z +, P(x). 11

Inductive Hypothesis In the inductive step, need to show: k Z +, P(k) P(k + 1) To prove this, we assume P(k) holds, and based on this assumption, prove P(k + 1). The assumption that P(n) holds is called the inductive hypothesis. 12

Example 1 (Proving an Inequality) Show that n < 2 n for all positive integers n. Let P(n) be the propositional function n < 2 n. Prove that n Z +, P(n) 1. Base case: Show that P(1) is true. 1 < 2 1 (True) 2. Inductive step: Show that if P(k) is true, then P(k + 1) is true. Assume that k < 2 k is true (Inductive Hypothesis). We need to show that P(k + 1) is true, i.e. Show: k + 1 < 2 k+1 We start from k < 2 k : k + 1 < 2 k + 1 < 2 k +2 1 2 k + 2 k = 2 k+1 Therefore, if k < 2 k then k + 1 < 2 k+1 13

Example 1 (Cont.) 3. (Conclusion) Then P(n) must be true for any positive integer. n < 2 n is true for any positive integer. End of proof. 14

Example 2 Prove the following statement by induction: n Z +, 1 + 2 + 3 + + n = n (n+1) 2. Let P(n) be the propositional function 1 + 2 + 3 + + n = n (n+1) 2 Prove that n Z +, P(n) 1 1+1 1. Base case: n = 1. In this case, = 1; thus, the base 2 case holds. 2. Inductive step: By the inductive hypothesis, we assume P(k): 1 + 2 + 3 + + k = k (k + 1) 2 Now, we want to show P(k + 1): 1 + 2 + 3 + + (k + 1) = (k + 1) (k + 2) 2 15

Example 2 (Cont.) The left-hand side of P(k+1) is 1 + 2 + 3 + + k + 1 = 1 + 2 + 3 + + k + k + 1 = k(k + 1) 2 + k + 1 = k(k + 1) 2 + 2(k + 1) 2 = k2 + k 2 + 2k + 2 2 = k2 + 3k + 1 2 16

Example 2 (Cont.) And the right-hand side of P(k+1) is k+1 k+2 2 = k2 +3k+1 2 Thus the two sides of P(k + 1) are equal to the same quantity and so they are equal to each other. 3. (Conclusion) Then P(n) must be true for any positive integer. 1 + 2 + 3 + + n = n (n+1) 2 is true for any positive integer. End of proof. 17

Example 3 (Geometric Series) Prove the following statement by induction: n Z nonneg and any real number r except than 1, r 0 + r 1 + r 2 + + r n = r(n+1) 1. r 1 Let P(n) be the propositional function r 0 + r 1 + r 2 + + r n = r (n+1) 1 r 1 Prove that n Z nonneg, P(n) 1. Base case: n = 0. In this case, r(0+1) 1 = r 1 = 1; thus, the base case r 1 r 1 holds. 2. Inductive step: By the inductive hypothesis, we assume P(k): r 0 + r 1 + r 2 + + r k = r(k+1) 1 r 1 Now, we want to show P(k + 1): r 0 + r 1 + r 2 + + r k+1 = r(k+2) 1 r 1 18

Example 3 (Cont.) The left-hand side of P(k+1) is r 0 + r 1 + r 2 + + r k+1 = r 0 + r 1 + r 2 + + r k + r k+1 = r(k+1) 1 r 1 + r k+1 = rk+1 1 r 1 + rk+1 (r 1) r 1 = r(k+1) 1 r 1 + rk+2 r k+1 r 1 = r(k+1) 1 + r k+2 r k+1 r 1 = rk+2 1 r 1 19

Example 3 (Cont.) Thus the two sides of P(k + 1) are equal. 3. (Conclusion) Then P(n) must be true for any nonnegative integer. r 0 + r 1 + r 2 + + r n = r(n+1) 1 non-negative integer. End of proof. r 1 is true for any 20

Example 4 (Divisibility Property) Prove the following statement by induction: n Z +, 2 2n 1 is divisible by 3. Let P(n) be the propositional function 2 2n 1 is divisible by 3 Prove that n Z +, P(n) 1. Base case: n = 1. In this case, 2 2 1 1= 3 is divisible by 3; thus, the base case holds. 2. Inductive step: By the inductive hypothesis, we assume P(k): 2 2k 1 = 3r for some integer r Now, we want to show P(k + 1): 2 2(k+1) 1 = 3s for some integer s 21

Example 4 (Cont.) The left-hand side of P(k+1) is 2 2(k+1) 1 = 2 2k+2 1 = 2 2k 2 2 1 = 2 2k 4 1 = 2 2k (3 + 1) 1 = 2 2k 3 + 2 2k 1 = 3 2 2k + 3r = 3 (2 2k + r) = 3s But s = 2 2k + r is an integer because it is a sum of products of integers. 22

Example 4 (Cont.) Thus the two sides of P(k + 1) are equal for some integer s. 3. (Conclusion) Then P(n) must be true for any positive integer. 2 2n 1 is divisible by 3 is true for any positive integer n. End of proof. 23

More Examples to practice Prove that 2 n < n! for all integers n 4. Prove that 3 (n 3 n) for all positive integers n. Prove that 7 n 2 n is divisible by 5 for all positive integers n. 24