Mathematical Induction. Part Two

Similar documents
Mathematical Induction. Part Two

Mathematical Induction

Mathematical Induction Part Two

Discrete Mathematics. Spring 2017

CSC236H Lecture 2. Ilir Dema. September 19, 2018

1 Continued Fractions

Mathematical Induction

Mathematical Induction Assignments

What is proof? Lesson 1

Checkpoint Questions Due Monday, October 1 at 2:15 PM Remaining Questions Due Friday, October 5 at 2:15 PM

CS173 Strong Induction and Functions. Tandy Warnow

Grade 8 Chapter 7: Rational and Irrational Numbers

Grade 7/8 Math Circles Winter March 20/21/22 Types of Numbers

CSC 344 Algorithms and Complexity. Proof by Mathematical Induction

The Inductive Proof Template

What can you prove by induction?

CS1800: Mathematical Induction. Professor Kevin Gold

THE DIVISION THEOREM IN Z AND R[T ]

Section 4.2: Mathematical Induction 1

Lecture 3.2: Induction, and Strong Induction

CHAPTER 1 NUMBER SYSTEMS. 1.1 Introduction

CS 173: Induction. Madhusudan Parthasarathy University of Illinois at Urbana-Champaign. February 7, 2016

x 2 + 6x 18 x + 2 Name: Class: Date: 1. Find the coordinates of the local extreme of the function y = x 2 4 x.

3 Finite continued fractions

Prepared by Sa diyya Hendrickson. Package Summary

CSC236 Week 2. Larry Zhang

What Fun! It's Practice with Scientific Notation!

Discrete Mathematics. Spring 2017

Reading and Writing. Mathematical Proofs. Slides by Arthur van Goetham

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

Hence, the sequence of triangular numbers is given by., the. n th square number, is the sum of the first. S n

Direct Proof Division into Cases

Proof Techniques (Review of Math 271)

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

Climbing an Infinite Ladder

CSE 311: Foundations of Computing. Lecture 14: Induction

Introduction to Techniques for Counting

Mathematics 228(Q1), Assignment 2 Solutions

Chapter 2. Mathematical Reasoning. 2.1 Mathematical Models

GCSE AQA Mathematics. Numbers

1.2 The Well-Ordering Principle

1 Sequences and Summation

Fall 2017 Test II review problems

Lecture Overview. 2 Weak Induction

MAT115A-21 COMPLETE LECTURE NOTES

Announcements. Problem Set 1 out. Checkpoint due Monday, September 30. Remaining problems due Friday, October 4.

Standard forms for writing numbers

Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 1

INDUCTION AND RECURSION. Lecture 7 - Ch. 4

CSC236 Week 3. Larry Zhang

Some Review Problems for Exam 1: Solutions

Inference and Proofs (1.6 & 1.7)

Mathematical Induction. Section 5.1

Discrete Mathematics and Probability Theory Fall 2014 Anant Sahai Note 7

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

UNIT 4 NOTES: PROPERTIES & EXPRESSIONS

Section 3.6 Complex Zeros

Writing proofs for MATH 61CM, 61DM Week 1: basic logic, proof by contradiction, proof by induction

Math 324 Summer 2012 Elementary Number Theory Notes on Mathematical Induction

CS103 Handout 08 Spring 2012 April 20, 2012 Problem Set 3

arxiv: v1 [math.co] 21 Sep 2015

CS1800: Strong Induction. Professor Kevin Gold

Discrete Mathematics for CS Spring 2008 David Wagner Note 4

THE DIVISION THEOREM IN Z AND F [T ]

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 3

CHAPTER 1 NUMBER SYSTEMS. 1.1 Introduction

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Note 8

MHF4U. Advanced Functions Grade 12 University Mitchell District High School. Unit 3 Rational Functions & Equations 6 Video Lessons

PRINCIPLE OF MATHEMATICAL INDUCTION

MAT 243 Test 2 SOLUTIONS, FORM A

CONTINUED FRACTIONS Lecture notes, R. M. Dudley, Math Lecture Series, January 15, 2014

Divisibility of Natural Numbers

Mathematical Induction. EECS 203: Discrete Mathematics Lecture 11 Spring

One-to-one functions and onto functions

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

Fractions. Warm up galleryitem. If I eat the two pizza slices shown, how much of the pizza did I eat?

The Dynamics of Continued Fractions

Lecture 2: Continued fractions, rational approximations

Problem One: Order Relations i. What three properties does a binary relation have to have to be a partial order?

Carmen s Core Concepts (Math 135)

ICS141: Discrete Mathematics for Computer Science I

Outline Goals and Assumptions Real Numbers Rational and Irrational. L11: Numbers. Alice E. Fischer

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

Assignment #2 COMP 3200 Spring 2012 Prof. Stucki

Climbing an Infinite Ladder

Epsilon Delta proofs

CIS Spring 2018 (instructor Val Tannen)

Math 3361-Modern Algebra Lecture 08 9/26/ Cardinality

Proof: If (a, a, b) is a Pythagorean triple, 2a 2 = b 2 b / a = 2, which is impossible.

Finding Prime Factors

INTEGERS. In this section we aim to show the following: Goal. Every natural number can be written uniquely as a product of primes.

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

Math 016 Lessons Wimayra LUY

Mathematical Induction

More Polynomial Equations Section 6.4

3 The language of proof

Proofs Not Based On POMI

ACCUPLACER MATH 0310

ON THE POSSIBLE QUANTITIES OF FIBONACCI NUMBERS THAT OCCUR IN SOME TYPES OF INTERVALS

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

Transcription:

Mathematical Induction Part Two

Announcements Problem Set due Friday, January 8 at the start of class. Problem Set checkpoints graded, will be returned at end of lecture. Afterwards, will be available in the filing cabinets in the Gates Open Area.

The principle of mathematical induction states that if for some property P(n), we have that If it starts P(0) is true and For any n N, we have P(n) P(n + ) Then and it keeps going then it's always true. For any n N, P(n) is true.

n(n+ ) Theorem: For any natural number n, i= Proof: By induction. Let P(n) be 2 n n(n+ ) P(n) i= i= 2 For our base case, we need to show P(0) is true, meaning that 0 0(0+ ) i= i= 2 Since the empty sum is defined to be 0, this claim is true. n+ i= n i= n i= For the inductive step, assume that for some n N that P(n) holds, so n(n+ ) i= 2 We need to show that P(n + ) holds, meaning that n+ (n+ )(n+ 2) i= i= 2 To see this, note that n n(n+ ) n(n+ )+ 2(n+ ) (n+ )(n+ 2) i= i+ (n+ )= + n+ = = i= 2 2 2 Thus P(n + ) is true, completing the induction.

Induction in Practice Typically, a proof by induction will not explicitly state P(n). Rather, the proof will describe P(n) implicitly and leave it to the reader to fill in the details. Provided that there is sufficient detail to determine what P(n) is, that P(0) is true, and that whenever P(n) is true, P(n + ) is true, the proof is usually valid.

Theorem: For any natural number n, Proof: By induction on n. For our base case, if n = 0, note that and the theorem is true for 0. For the inductive step, assume that for some n the theorem is true. Then we have that n(n+ ) n(n+ )+ 2(n+ ) (n+ )(n+ 2) i+ (n+ )= + n+ = = 2 2 2 n+ i= n i= i= 0 i= i= so the theorem is true for n +, completing the induction. n i= 0(0+ ) =0 2 i= n(n+ ) 2

A Variant of Induction

n 2 versus 2 n 0 2 = 0 2 = 2 2 = 4 3 2 = 9 4 2 = 6 5 2 = 25 6 2 = 36 7 2 = 49 8 2 = 64 9 2 = 8 0 2 = 00 < < = > = < < < < < < 2 0 = 2 = 2 2 2 = 4 2 3 = 8 2 4 = 6 2 5 = 32 2 6 = 64 2 7 = 28 2 8 = 256 2 9 = 52 2 0 = 024 2 n n is is much much bigger bigger here. here. Does Does the the trend trend continue? continue?

Theorem: For any natural number n 5, n 2 < 2 n. Proof: By induction on n. As a base case, if n = 5, then we have that 5 2 = 25 < 32 = 2 5, so the claim holds. For the inductive step, assume that for some n 5, that n 2 < 2 n. Then we have that (n + ) 2 = n 2 + 2n + Since n 5, we have (n + ) 2 = n 2 + 2n + < n 2 + 2n + n (since < 5 n) = n 2 + 3n < n 2 + n 2 (since 3n < 5n n 2 ) = 2n 2 So (n + ) 2 < 2n 2. Now, by our inductive hypothesis, we know that n 2 < 2 n. This means that (n + ) 2 < 2n 2 (from above) < 2(2 n ) (by the inductive hypothesis) = 2 n + Completing the induction.

Induction Starting at k To prove that P(n) is true for all natural numbers greater than or equal to k: Show that P(k) is true. Show that for any n k, that P(n) P(n + ). Conclude P(k) holds for all natural numbers greater than or equal to k.

An Important Observation

One Major Catch 0 2 3 4 5 6 7 8 In In an an inductive inductive proof, proof, to to prove prove P(5), P(5), we we can can only only assume assume P(4). P(4). We We cannot cannot rely rely on on any any of of our our earlier earlier results! results!

Strong Induction

The principle of strong induction states that if for some property P(n), we have that Assume Assume that that P(n) P(n) holds holds for for all all natural natural numbers numbers smaller smaller than than n. n. P(0) is true and For any n N with n 0, if P(0), P(),, and P(n ) are true, then P(n) is true then For any n N, P(n) is true.

Induction and Dominoes

Strong Induction and Dominoes

Weak and Strong Induction Weak induction (regular induction) is good for showing that some property holds by incrementally adding in one new piece. Strong induction is good for showing that some property holds by breaking a large structure down into multiple small pieces.

Why Use Weak Induction? Any proof done by weak induction can be done by strong induction. It is never wrong to use strong induction. However, if you only need the immediately previous result, weak induction can be a lot cleaner. More on that later on.

The principle of strong induction states that if for some property P(n), we have that Assume Assume that that P(n) P(n) holds holds for for all all natural natural numbers numbers smaller smaller than than n. n. P(0) is true and For any n N with n 0, if P(n') is true for all n' N satisfying 0 n' < n, then P(n) is true then For any n N, P(n) is true.

Proof by Strong Induction State that you are attempting to prove something by strong induction. State what your choice of P(n) is. Prove the base case: State what P(0) is, then prove it. Prove the inductive step: State that you assume for all 0 n' < n, that P(n') is true. State what P(n) is. (this is what you're trying to prove) Go prove P(n).

The Candy Bar Problem C A N D Y!

The Candy Bar Problem You are given a candy bar with n pieces. How many breaks do you have to make to separate it into n individual pieces?

n = 0 0 Breaks n = Break n = 2 2 Breaks n = 3 3 Breaks

n pieces k pieces k breaks n - k pieces n k breaks

Theorem: Breaking a chocolate bar with n pieces into individual pieces requires n breaks. Proof: By strong induction. Let P(n) be breaking a chocolate bar with n pieces into individual pieces requires n breaks. We prove P(n) holds for all n N with n. For our base case, we prove P(), that breaking a candy bar with one piece into individual pieces takes zero breaks. Since the candy bar is already in individual pieces, no breaks are required, so P() holds. For the inductive step, assume that for some n N with n, that for any n' N with n' < n, that P(n') is true and any candy bar with n' pieces requires n' breaks. We will prove P(n), that breaking any candy bar with n pieces requires n breaks. To see this, consider any possible break made in the candy bar. This will split the candy bar into two pieces, one of size k and one of size n k, where k < n. Note that n k < n as well, since the second piece is not empty and is not the entire candy bar. Since k < n, by our inductive hypothesis, breaking the k-piece candy bar requires k breaks. Since n k < n, by our inductive hypothesis, breaking the (n k)-piece candy bar takes n k breaks. Counting all breaks, we need k + n k + = n breaks for the n-piece candy bar. Thus P(n) holds, completing the induction.

Application: Continued Fractions

Continued Fractions 4 + + 2

Continued Fractions 3 + 3 + + 4 + 2

Continued Fractions A continued fraction is an expression of the form a + a 2 + a 3 +...+ a n Formally, a continued fraction is either An integer n, or n + / F, where n is an integer and F is a continued fraction. Continued fractions have numerous applications in number theory and computer science. (They're also really fun to write!)

Fun with Continued Fractions Every rational number, including negative rational numbers, has a continued fraction representation. Harder result: every irrational number has an (infinite) continued fraction representation. Even harder result: If we truncate an infinite continued fraction for an irrational number, we can get progressively better approximations of that number.

π as a Continued Fraction π=3+ 7+ 5+ + + 292+ + + + 2+...

Approximating π π=3+ 7+ 5+ + 292 3 = 3.0000... And And he he made made the the Sea Sea of of cast cast bronze, bronze, ten ten cubits cubits from from one one brim brim to to the the other; other; it it was was completely completely round. round. [ [ A] A] line line of of thirty thirty cubits cubits measured measured its its circumference. Kings Kings 7:23, 7:23, New New King King James James Translation Translation

Approximating π π=3+ 7+ 5+ + 292 3 = 3.0000... 22/7 = 3.42857... Greek Greek mathematician Archimedes knew knew of of this this approximation, circa circa 250 250 BCE BCE

Approximating π π=3+ 7+ 5+ + 292 3 = 3.0000... 22/7 = 3.42857... 336/06 = 3.45094... 355/3 = 3.459292... Chinese Chinese mathematician 祖沖之祖沖之 (Zu (Zu Chongzhi) Chongzhi) discovered discovered this this approximation in in the the early early fifth fifth century; century; this this was was the the best best approximation of of π for for over over a a thousand thousand years. years.

Approximating π π=3+ 7+ 5+ + 292 3 = 3.0000... 22/7 = 3.42857... 336/06 = 3.45094... 355/3 = 3.459292... 03993/3302 = 3.45926530...

More Continued Fractions 4 3 3 4 = 4 + + 2

An Interesting Continued Fraction x=+ + + + + + + + + +...

An Interesting Continued Fraction x=+ + + + + + / 2 / 3 / 2 5 / 3 8 / 5 3 / 8 Each Each fraction fraction is is the the ratio ratio of of consecutive consecutive Fibonacci Fibonacci numbers! numbers! + 2 / 3 34 / 2

The Golden Ratio ϕ= + 5 2 =+ + + +... ϕ.6803399

The Golden Spiral

How do we prove all rational numbers have continued fractions?

Constructing a Continued Fraction 7 0+ 9 = 9 7 9 7 = + 7 2 7 2 = 3+ 2

Constructing a Continued Fraction 7 9 9 = 0+ + 3+ 2 7 7 2 9 > 7 > 2 > 2

The Division Algorithm The division algorithm is the following theorem: For any integers a and b, with b > 0, there exists unique integers q and r such that and a = qb + r 0 r < b q is the quotient and r is the remainder. Given a = and b = 4: = 2 4 + 3 Given a = -37 and b = 42: -37 = -4 42 + 3

The Division Algorithm n d = q+ d r n = qd + r

Theorem: Every rational has a continued fraction. Proof: By strong induction. Let P(d) be any rational with denominator d has a continued fraction. We prove that P(d) is true for all positive natural numbers. Since all rationals can be written with a positive denominator, this proves that all rationals have continued fractions. For our base case, we prove P(), that any rational with denominator has a continued fraction. Consider any rational with denominator ; let it be n /. Since n is a continued fraction and n = n /, P() holds. For our inductive step, assume that for some d N with d >, that for any d' N where d' < d, that P(d') is true, so any rational with denominator d' has a continued fraction. We prove P(d) by showing that any rational with denominator d has a continued fraction. Take any rational with denominator d; let it be n / d. Using the division algorithm, write n = qd + r, where 0 r < d. We consider two cases: Case : r = 0. Then n = qd, so n / d = q. Then q is a continued fraction for n / d. n Case 2: r 0. Given that n = qd + r, we have d =q+ r d =q+ d /r. Since r < d, by our inductive hypothesis there is some continued fraction for d / r; call it F. Then q + / F is a continued fraction for n / d. In either case, we find a continued fraction for n / d, so P(d) holds, completing the induction.

For more on continued fractions: http://www.maths.surrey.ac.uk/hosted-sites/r.knott/fibonacci/cfintro.html

When Use Strong Induction? Normal (weak) induction is good for when you are shrinking the problem size by exactly one. Peeling one final term off a sum. Making one weighing on a scale. Considering one more action on a string. Strong induction is good when you are shrinking the problem, but you can't be sure by how much. Breaking a candy bar into two arbitrary smaller pieces. Taking the remainder of one number divided by another.

Next Time Graphs and Relations Representing structured data. Categorizing how objects are connected.