SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION

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

ELEMENTARY NUMBER THEORY AND METHODS OF PROOF

Taylor and Maclaurin Series. Copyright Cengage Learning. All rights reserved.

Climbing an Infinite Ladder

ELEMENTARY NUMBER THEORY AND METHODS OF PROOF

Complete Induction and the Well- Ordering Principle

3.3 Dividing Polynomials. Copyright Cengage Learning. All rights reserved.

Mathematical Induction

THE LOGIC OF QUANTIFIED STATEMENTS. Predicates and Quantified Statements I. Predicates and Quantified Statements I CHAPTER 3 SECTION 3.

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.

ELEMENTARY NUMBER THEORY AND METHODS OF PROOF

Climbing an Infinite Ladder

MAT 243 Test 2 SOLUTIONS, FORM A

11.4 The Comparison Tests. Copyright Cengage Learning. All rights reserved.

PRINCIPLE OF MATHEMATICAL INDUCTION

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

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

Discrete Mathematics. Spring 2017

Midterm Exam Solution

Foundations of Discrete Mathematics

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

Solutions to Assignment 1

CS 514, Mathematics for Computer Science Mid-semester Exam, Autumn 2017 Department of Computer Science and Engineering IIT Guwahati

Mathematical Induction. Section 5.1

Discrete Math in Computer Science Solutions to Practice Problems for Midterm 2

ICS141: Discrete Mathematics for Computer Science I

THE LOGIC OF QUANTIFIED STATEMENTS

With Question/Answer Animations

Infinite Series. Copyright Cengage Learning. All rights reserved.

Homework 1. 10(b) A useful denial of the statement We will win the first game or the second one is We will lose the first two games.

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

CSE 20 DISCRETE MATH SPRING

Math 324 Summer 2012 Elementary Number Theory Notes on Mathematical Induction

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

Fall 2017 Test II review problems

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

Sequences and Series. Copyright Cengage Learning. All rights reserved.

Proofs Not Based On POMI

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

Four Basic Sets. Divisors

Homework #2 solutions Due: June 15, 2012

CSC 344 Algorithms and Complexity. Proof by Mathematical Induction

not to be republished NCERT REAL NUMBERS CHAPTER 1 (A) Main Concepts and Results

THE LOGIC OF QUANTIFIED STATEMENTS

a + b = b + a and a b = b a. (a + b) + c = a + (b + c) and (a b) c = a (b c). a (b + c) = a b + a c and (a + b) c = a c + b c.

Properties of the Integers

Section 4.2: Mathematical Induction 1

Proofs Not Based On POMI

CSCE 222 Discrete Structures for Computing. Proofs. Dr. Hyunyoung Lee. !!!!! Based on slides by Andreas Klappenecker

Introduction Integers. Discrete Mathematics Andrei Bulatov

CSE 20 DISCRETE MATH. Fall

Strong Mathematical Induction

1.3 Algebraic Expressions. Copyright Cengage Learning. All rights reserved.

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

Mathematics 228(Q1), Assignment 2 Solutions

Basic Proof Examples

CSE 20 DISCRETE MATH. Winter

SET THEORY. Disproving an Alleged Set Property. Disproving an Alleged Set. Example 1 Solution CHAPTER 6

1. Propositions: Contrapositives and Converses

3.2 Equations that Reduce to Linear Form. Copyright Cengage Learning. All rights reserved.


1 Predicates and Quantifiers

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.

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

Standard forms for writing numbers

MATH 271 Summer 2016 Practice problem solutions Week 1

MATH10040: Numbers and Functions Homework 1: Solutions

THE LOGIC OF COMPOUND STATEMENTS

Proof by Induction. Andreas Klappenecker

1.7 Inequalities. Copyright Cengage Learning. All rights reserved.

Discrete Mathematics. Spring 2017

This is a recursive algorithm. The procedure is guaranteed to terminate, since the second argument decreases each time.

Lecture Notes 1 Basic Concepts of Mathematics MATH 352

Math 3000 Section 003 Intro to Abstract Math Homework 6

Carmen s Core Concepts (Math 135)

PUTNAM TRAINING NUMBER THEORY. Exercises 1. Show that the sum of two consecutive primes is never twice a prime.

Notes on arithmetic. 1. Representation in base B

Complex Numbers. Copyright Cengage Learning. All rights reserved.

Integration. Antiderivatives and Indefinite Integration 3/9/2015. Copyright Cengage Learning. All rights reserved.

CSCE 222 Discrete Structures for Computing. Proof by Induction. Dr. Hyunyoung Lee. !!!!!! Based on slides by Andreas Klappenecker

5. Use a truth table to determine whether the two statements are equivalent. Let t be a tautology and c be a contradiction.

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

2 Arithmetic. 2.1 Greatest common divisors. This chapter is about properties of the integers Z = {..., 2, 1, 0, 1, 2,...}.

Wollongong College Australia

and LCM (a, b, c) LCM ( a, b) LCM ( b, c) LCM ( a, c)

Sums of Squares. Bianca Homberg and Minna Liu

1. (a) q = 4, r = 1. (b) q = 0, r = 0. (c) q = 5, r = (a) q = 9, r = 3. (b) q = 15, r = 17. (c) q = 117, r = 11.

IS 709/809: Computational Methods for IS Research. Math Review: Algorithm Analysis

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

4 Integration. Copyright Cengage Learning. All rights reserved.

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

CmSc 250 Intro to Algorithms. Mathematical Review. 1. Basic Algebra. (a + b) 2 = a 2 + 2ab + b 2 (a - b) 2 = a 2-2ab + b 2 a 2 - b 2 = (a + b)(a - b)

A number that can be written as, where p and q are integers and q Number.

Proof Terminology. Technique #1: Direct Proof. Learning objectives. Proof Techniques (Rosen, Sections ) Direct Proof:

1.1 Inductive Reasoning filled in.notebook August 20, 2015

INDUCTION AND RECURSION. Lecture 7 - Ch. 4

Chapter 5. Number Theory. 5.1 Base b representations

3.6. Disproving Quantified Statements Disproving Existential Statements

1. (a) q = 4, r = 1. (b) q = 0, r = 0. (c) q = 5, r = (a) q = 9, r = 3. (b) q = 15, r = 17. (c) q = 117, r = 11.

UNIT 4 NOTES: PROPERTIES & EXPRESSIONS

Transcription:

CHAPTER 5 SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION Copyright Cengage Learning. All rights reserved.

SECTION 5.4 Strong Mathematical Induction and the Well-Ordering Principle for the Integers Copyright Cengage Learning. All rights reserved.

Strong Mathematical Induction and the Well-Ordering Principle for the Integers Strong mathematical induction is similar to ordinary mathematical induction in that it is a technique for establishing the truth of a sequence of statements about integers. Also, a proof by strong mathematical induction consists of a basis step and an inductive step. However, the basis step may contain proofs for several initial values, and in the inductive step the truth of the predicate P(n) is assumed not just for one value of n but for all values through k, and then the truth of P(k + 1) is proved. 3

Strong Mathematical Induction and the Well-Ordering Principle for the Integers 4

Strong Mathematical Induction and the Well-Ordering Principle for the Integers Any statement that can be proved with ordinary mathematical induction can be proved with strong mathematical induction. The reason is that given any integer k b, if the truth of P(k) alone implies the truth of P(k + 1), then certainly the truth of P(a), P(a + 1),..., and P(k) implies the truth of P(k + 1). It is also the case that any statement that can be proved with strong mathematical induction can be proved with ordinary mathematical induction. 5

Strong Mathematical Induction and the Well-Ordering Principle for the Integers The principle of strong mathematical induction is known under a variety of different names including the second principle of induction, the second principle of finite induction, and the principle of complete induction. 6

Applying Strong Mathematical Induction 7

Applying Strong Mathematical Induction The divisibility-by-a-prime theorem states that any integer greater than 1 is divisible by a prime number. We prove this theorem using strong mathematical induction. 8

Example 1 Divisibility by a Prime Prove: Any integer greater than 1 is divisible by a prime number. Solution: The idea for the inductive step is this: If a given integer greater than 1 is not itself prime, then it is a product of two smaller positive integers, each of which is greater than 1. Since you are assuming that each of these smaller integers is divisible by a prime number, by transitivity of divisibility, those prime numbers also divide the integer you started with. 9

Example 1 Solution cont d Proof (by strong mathematical induction): Let the property P(n) be the sentence n is divisible by a prime number. Show that P(2) is true: To establish P(2), we must show that 2 is divisible by a prime number. But this is true because 2 is divisible by 2 and 2 is a prime number. 10

Example 1 Solution cont d Show that for all integers k 2, if P(i) is true for all integers i from 2 through k, then P(k + 1) is also true: Let k be any integer with k 2 and suppose that i is divisible by a prime number for all integers i from 2 through k. We must show that k + 1 is divisible by a prime number. 11

Example 1 Solution cont d Case 1 (k + 1 is prime): In this case k + 1 is divisible by a prime number, namely itself. Case 2 (k + 1 is not prime): In this case k + 1 = ab where a and b are integers with 1 < a < k + 1 and 1 < b < k + 1. Thus, in particular, 2 a k, and so by inductive hypothesis, a is divisible by a prime number p. In addition because k + 1 = ab, we have that k + 1 is divisible by a. 12

Example 1 Solution cont d Hence, since k + 1 is divisible by a and a is divisible by p, by transitivity of divisibility, k + 1 is divisible by the prime number p. Therefore, regardless of whether k + 1 is prime or not, it is divisible by a prime number [as was to be shown]. [Since we have proved both the basis and the inductive step of the strong mathematical induction, we conclude that the given statement is true.] 13

Applying Strong Mathematical Induction Strong mathematical induction makes possible a proof of the fact used frequently in computer science that every positive integer n has a unique binary integer representation. The proof looks complicated because of all the notation needed to write down the various steps. But the idea of the proof is simple. It is that if smaller integers than n have unique representations as sums of powers of 2, then the unique representation for n as a sum of powers of 2 can be found by taking the representation for n/2 (or for (n 1)/2 if n is odd) and multiplying it by 2. 14

Applying Strong Mathematical Induction 15

The Well-Ordering Principle for the Integers 16

The Well-Ordering Principle for the Integers The well-ordering principle for the integers looks very different from both the ordinary and the strong principles of mathematical induction, but it can be shown that all three principles are equivalent. That is, if any one of the three is true, then so are both of the others. 17

Example 4 Finding Least Elements In each case, if the set has a least element, state what it is. If not, explain why the well-ordering principle is not violated. a. The set of all positive real numbers. b. The set of all nonnegative integers n such that n 2 < n. c. The set of all nonnegative integers of the form 46 7k, where k is an integer. Solution: a. There is no least positive real number. For if x is any positive real number, then x/2 is a positive real number that is less than x. 18

Example 4 Solution cont d No violation of the well-ordering principle occurs because the well-ordering principle refers only to sets of integers, and this set is not a set of integers. b. There is no least nonnegative integer n such that n 2 < n because there is no nonnegative integer that satisfies this inequality. The well-ordering principle is not violated because the well-ordering principle refers only to sets that contain at least one element. 19

Example 4 Solution cont d c. The following table shows values of 46 7k for various values of k. The table suggests, and you can easily confirm, that 46 7k < 0 for k 7 and that 46 7k 46 for k 0. Therefore, from the other values in the table it is clear that 4 is the least nonnegative integer of the form 46 7k. This corresponds to k = 6. 20

The Well-Ordering Principle for the Integers Another way to look at the analysis of Example 4(c) is to observe that subtracting six 7 s from 46 leaves 4 left over and this is the least nonnegative integer obtained by repeated subtraction of 7 s from 46. In other words, 6 is the quotient and 4 is the remainder for the division of 46 by 7. More generally, in the division of any integer n by any positive integer d, the remainder r is the least nonnegative integer of the form n dk. 21

The Well-Ordering Principle for the Integers This is the heart of the following proof of the existence part of the quotient-remainder theorem. Proof: Let S be the set of all nonnegative integers of the form where k is an integer. 22

The Well-Ordering Principle for the Integers This set has at least one element. [For if n is nonnegative, then and so n 0 d is in S. And if n is negative, then and so n nd is in S.] It follows by the well-ordering principle for the integers that S contains a least element r. Then, for some specific integer k = q, [because every integer in S can be written in this form]. 23

The Well-Ordering Principle for the Integers Adding dq to both sides gives Furthermore, r < d. [For suppose r d. Then and so n d(q + 1) would be a nonnegative integer in S that would be smaller than r. But r is the smallest integer in S. This contradiction shows that the supposition r d must be false.] 24

The Well-Ordering Principle for the Integers The preceding arguments prove that there exist integers r and q for which [This is what was to be shown.] Another consequence of the well-ordering principle is the fact that any strictly decreasing sequence of nonnegative integers is finite. That is, if r 1, r 2, r 3,... is a sequence of nonnegative integers satisfying for all i 1, then r 1, r 2, r 3,... is a finite sequence. 25

The Well-Ordering Principle for the Integers [For by the well-ordering principle such a sequence would have to have a least element r k. It follows that r k must be the final term of the sequence because if there were a term r k + 1, then since the sequence is strictly decreasing, r k + 1 < r k, which would be a contradiction.] This fact is frequently used in computer science to prove that algorithms terminate after a finite number of steps. 26