Properties of the Integers: Mathematical Induction

Slides:



Advertisements
Similar presentations
Recursive Definitions and Structural Induction
Advertisements

Copyright © Cengage Learning. All rights reserved. CHAPTER 5 SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION.
Sets, Combinatorics, Probability, and Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS Slides.
1 Section 2.4 The Integers and Division. 2 Number Theory Branch of mathematics that includes (among other things): –divisibility –greatest common divisor.
Chapter Primes and Greatest Common Divisors ‒Primes ‒Greatest common divisors and least common multiples 1.
NUMBER THEORY Chapter 1: The Integers. The Well-Ordering Property.
Basic properties of the integers
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:
Recursive Definitions Rosen, 3.4. Recursive (or inductive) Definitions Sometimes easier to define an object in terms of itself. This process is called.
Elementary Number Theory and Methods of Proof. Basic Definitions An integer n is an even number if there exists an integer k such that n = 2k. An integer.
Induction Sections 4.1 and 4.2 of Rosen Fall 2010
Chapter 4 Properties of the integers: mathematical induction Yen-Liang Chen Dept of IM NCU.
Chapter II. THE INTEGERS
Discrete Structures Chapter 2 Part B Mathematical Induction
CSE115/ENGR160 Discrete Mathematics 03/31/11
Lecture 4 Discrete Mathematics Harper Langston. Algorithms Algorithm is step-by-step method for performing some action Cost of statements execution –Simple.
CSE115/ENGR160 Discrete Mathematics 03/29/11 Ming-Hsuan Yang UC Merced 1.
Fall 2002CMSC Discrete Structures1 Let us get into… Number Theory.
BY MISS FARAH ADIBAH ADNAN IMK
CSCI 1900 Discrete Structures
Chapter 2 The Fundamentals: Algorithms, the Integers, and Matrices
1 Properties of Integers Objectives At the end of this unit, students should be able to: State the division algorithm Apply the division algorithm Find.
9/2/2015Discrete Structures1 Let us get into… Number Theory.
Mathematical Maxims and Minims, 1988
Induction and recursion
Chapter 6 Mathematical Induction
Discrete Mathematics, 1st Edition Kevin Ferland
Numbers, Operations, and Quantitative Reasoning.
Mathematics Review Exponents Logarithms Series Modular arithmetic 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!
1 Introduction to Abstract Mathematics Chapter 3: Elementary Number Theory and Methods of Proofs Instructor: Hayk Melikya Direct.
Discrete Mathematics Tutorial 11 Chin
The Integers. The Division Algorithms A high-school question: Compute 58/17. We can write 58 as 58 = 3 (17) + 7 This forms illustrates the answer: “3.
CompSci 102 Discrete Math for Computer Science
Copyright © Zeph Grunschlag, Basic Number Theory Zeph Grunschlag.
Chapter 5 With Question/Answer Animations. Section 5.1.
ICS 253: Discrete Structures I Induction and Recursion King Fahd University of Petroleum & Minerals Information & Computer Science Department.
CompSci 102 Discrete Math for Computer Science March 1, 2012 Prof. Rodger Slides modified from Rosen.
Chapter 4 With Question/Answer Animations. Section 4.1.
CS 103 Discrete Structures Lecture 13 Induction and Recursion (1)
Foundations of Discrete Mathematics Chapters 5 By Dr. Dalia M. Gil, Ph.D.
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.
Mathematical Induction
CompSci 102 Discrete Math for Computer Science March 13, 2012 Prof. Rodger Slides modified from Rosen.
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.
1 Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications Kenneth H. Rosen (5 th Edition) Chapter 2 The Fundamentals: Algorithms,
Chapter 4 With Question/Answer Animations 1. Chapter Summary Divisibility and Modular Arithmetic - Sec 4.1 – Lecture 16 Integer Representations and Algorithms.
Ch04-Number Theory and Cryptography 1. Introduction to Number Theory Number theory is about integers and their properties. We will start with the basic.
Number Theory Lecture 1 Text book: Discrete Mathematics and its Applications, 7 th Edition.
Chapter 5 With Question/Answer Animations 1. Chapter Summary Mathematical Induction - Sec 5.1 Strong Induction and Well-Ordering - Sec 5.2 Lecture 18.
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.
Number Theory. Introduction to Number Theory Number theory is about integers and their properties. We will start with the basic principles of divisibility,
Advanced Algorithms Analysis and Design
Advanced Algorithms Analysis and Design
Induction and recursion
MATH301- DISCRETE MATHEMATICS Copyright © Nahid Sultana Dr. Nahid Sultana Chapter 4: Number Theory and Cryptography.
Mathematical Induction Recursion
Chapter 5 Induction and Recursion
Induction and recursion
Applied Discrete Mathematics Week 9: Integer Properties
Copyright © Zeph Grunschlag,
Divisibility and Modular Arithmetic
Advanced Analysis of Algorithms
Applied Discrete Mathematics Week 10: Introduction to Counting
Mathematical Induction
Agenda Proofs (Konsep Pembuktian) Direct Proofs & Counterexamples
From the last time: gcd(a, b) can be characterized in two different ways: It is the least positive value of ax + by where x and y range over integers.
Sets, Combinatorics, Probability, and Number Theory
Presentation transcript:

Properties of the Integers: Mathematical Induction Chapter 4 Properties of the Integers: Mathematical Induction 1. Mathematical Induction 2. Harmonic, Fibonacci, Lucas Numbers 3. Prime Numbers

Chapter 4 Properties of the Integers: Mathematical Induction 4.1 The Well-Ordering Principle: Mathematical Induction The Well-Ordering Principle Any nonempty subset of Z+ contains a smallest element. (We often express this by saying that Z+ is well ordered.) This principle serves to distinguish Z+ from Q+ and R+. Theorem 4.1 Finite Induction Principle or Principle of Mathematical Induction S(n): an open statement, n a positive integer (a) If S(1) is true; and /* basis, not necessarily from 1 */ (b) If whenever S(k) is true (for some ), then S(k+1) is true; (inductive step) then S(n) is true for all If

Chapter 4 Properties of the Integers: Mathematical Induction 4.1 The Well-Ordering Principle: Mathematical Induction

Chapter 4 Properties of the Integers: Mathematical Induction 4.1 The Well-Ordering Principle: Mathematical Induction

Chapter 4 Properties of the Integers: Mathematical Induction 4.1 The Well-Ordering Principle: Mathematical Induction Ex. 4.5 Find a formula for Ans: Observe and conjecture. n=1 1 1=12 n=2 1+3 4=22 n=3 1+3+5 9=32 n=4 1+3+5+7 16=42 conjecture: =n2 then prove by induction

Chapter 4 Properties of the Integers: Mathematical Induction 4.1 The Well-Ordering Principle: Mathematical Induction Ex. 4.7 the Harmonic Numbers

Chapter 4 Properties of the Integers: Mathematical Induction 4.1 The Well-Ordering Principle: Mathematical Induction Ex. 4.7 the Harmonic Numbers

Chapter 4 Properties of the Integers: Mathematical Induction 4.1 The Well-Ordering Principle: Mathematical Induction Ex. 4.7 the Harmonic Numbers

Chapter 4 Properties of the Integers: Mathematical Induction 4.1 The Well-Ordering Principle: Mathematical Induction Ex. 4.8 For let R, where |An|=2n and the elements of An are listed in ascending order. If R, prove that in order to determine whether An, we must compare r with no more than n+1 elements in An. Proof: When n=0, A0={a} and only one comparison is needed. Assume the result is true for some and consider the case for Ak+1. Let and Bk < Ck 1 (1) Compare once to determine whether k+1 k+2 (2) Then compare in Bk or in Ck Total comparisons

Chapter 4 Properties of the Integers: Mathematical Induction 4.1 The Well-Ordering Principle: Mathematical Induction Ex. 4.10 Prove S(n): n can be written as a sum of 3's and/or 8's (with no regard to order) for any basis: n=14=3+3+8 OK induction hypothesis: k can be added up by 3's and/or 8's. If k=...+8+..., then k+1=...+3+3+3+... Otherwise, there are at least 5 3's in k's summands. k+1=...3+3+3+3+3+1+...=...8+8+...

Chapter 4 Properties of the Integers: Mathematical Induction 4.1 The Well-Ordering Principle: Mathematical Induction Theorem 4.2 Finite Induction Principle--Alternate Form

Chapter 4 Properties of the Integers: Mathematical Induction 4.1 The Well-Ordering Principle: Mathematical Induction Ex. 4.11 Prove S(n): n can be written as a sum of 3's and/or 8's (with no regard to order) for any Assume the truth of the statements:

Chapter 4 Properties of the Integers: Mathematical Induction 4.1 The Well-Ordering Principle: Mathematical Induction (recurrence relation)

Chapter 4 Properties of the Integers: Mathematical Induction 4.2 Recursive Definitions 0,2,4,6,8,10,12,...: bn=2n 1,2,3,6,11,20,37,68,125,...:an=? explicit definition implicit recursive definition Examples: factorial: (n+1)!=(n+1)(n!) Harmonic Number:

Chapter 4 Properties of the Integers: Mathematical Induction 4.2 Recursive Definitions Ex. 4.16 The Fibonacci Numbers

Chapter 4 Properties of the Integers: Mathematical Induction 4.2 Recursive Definitions Ex. 4.16 The Fibonacci Numbers Please check out the induction basis for yourselves first.

Chapter 4 Properties of the Integers: Mathematical Induction 4.2 Recursive Definitions Ex. 4.17 The Lucas Number

Chapter 4 Properties of the Integers: Mathematical Induction 4.2 Recursive Definitions Ex. 4.17 The Lucas Number Please check out the induction basis for yourselves first.

Chapter 4 Properties of the Integers: Mathematical Induction 4.3 The Division Algorithm: Prime Numbers Def. 4.1 For integers a,b, we say b divides a, and we write b|a, if there is an integer n, such that a=bn. We say b is a divisor of a or a is a multiple of b.

Chapter 4 Properties of the Integers: Mathematical Induction 4.3 The Division Algorithm: Prime Numbers proof of (f): Ex. 4.21 Let a,b in Z so that 2a+3b is a multiple of 17. Prove that 17 divides 9a+5b.

Chapter 4 Properties of the Integers: Mathematical Induction 4.3 The Division Algorithm: Prime Numbers For n in Z+ where n>1, n is a prime number if n has only two divisors, 1 and n. Otherwise n is a composite. Lemma 4.1. If n in Z+ and n is composite, then there is a prime p such that p|n. Proof: If not, let S be the set of all composite integers that have no prime divisors. If S is not empty, then by the well-ordering principle, S has a least element m. But if m is composite, m=m1m2 with 1<m1<m and 1<m2<m. Since m1 is not in S, m1 is a prime or divisible by a prime, which means m is also divisible by a prime, a contradiction. lemma, theorem, corollary

Chapter 4 Properties of the Integers: Mathematical Induction 4.3 The Division Algorithm: Prime Numbers Theorem 4.4 (Euclid) There are infinitely many primes.

Chapter 4 Properties of the Integers: Mathematical Induction 4.3 The Division Algorithm: Prime Numbers Theorem 4.5 (The Division Algorithm) a: dividend b: divisor q: quotient r: remainder

Chapter 4 Properties of the Integers: Mathematical Induction 4.3 The Division Algorithm: Prime Numbers

Chapter 4 Properties of the Integers: Mathematical Induction 4.4 The Greatest Common Divisor: the Euclidean Algorithm Def. 4.2 For a, b in Z, a position integer c is said to be a common divisor of a and b if c|a and c|b. Def 4.3 Greatest Common Divisor For any common divisor d of a and b, we have d|c. Then c is a greatest common divisor of a and b. Theorem 4.6 For any a,b in Z+, there exists a unique c in Z+ that is the greatest common divisor of a and b.

Chapter 4 Properties of the Integers: Mathematical Induction 4.4 The Greatest Common Divisor: the Euclidean Algorithm (existence and uniqueness)

Chapter 4 Properties of the Integers: Mathematical Induction 4.4 The Greatest Common Divisor: the Euclidean Algorithm From Theorem 4.6, gcd(a,b) is the smallest positive integer we can write as a linear combination of a and b. Integers a and b are called relative prime when gcd(a,b)=1. That is, when there exist x,y in Z with ax+by=1. Ex. 4.30 Since gcd(42,70)=14, we can find x,y in Z with 42x+70y=14, or 3x+5y=1. By inspection, x=2, y=-1 is a solution. But, general solution? x=2-5k, y=-1+3k or x=2+5k, y=-1-3k..

Chapter 4 Properties of the Integers: Mathematical Induction 4.4 The Greatest Common Divisor: the Euclidean Algorithm Theorem 4.7 Euclidean Algorithm

Chapter 4 Properties of the Integers: Mathematical Induction 4.4 The Greatest Common Divisor: the Euclidean Algorithm Ex. 4.31 gcd(250,111)=? gcd(250,111)=1, what is x, and y such that 250x+111y=1? 250 111 222 28 84 27 1 *2 1=28-1(27)=28-1[111-3(28)]= (-1)111+4(28)=(-1)111+4[250-2(111)] =4(250)+(-9)(111) *3 *1 x=4+111k, y=-9-250k

Chapter 4 Properties of the Integers: Mathematical Induction 4.4 The Greatest Common Divisor: the Euclidean Algorithm Ex. 4.32 For any n in Z+, prove that 8n+3 and 5n+2 are relative prime. gcd(8n+3,5n+2)=1. But we could also arrived at this conclusion if we had noticed that (8n+3)(-5)+(5n+2)(8)=1 8n+3 5n+2 5n+2 3n+1 2n+1 n 2n 1

Chapter 4 Properties of the Integers: Mathematical Induction 4.4 The Greatest Common Divisor: the Euclidean Algorithm Ex. 4.34. Griffin has two unmarked containers. One container holds 17 ounces and the other holds 55 ounces. Explain how Griffin can use his two containers to have exactly one ounce. gcd(17,55)=1, 1=13(17)-4(55), Consequently, Griffin must fill his smaller container 13 times and empty the contents into the larger container.

Chapter 4 Properties of the Integers: Mathematical Induction 4.4 The Greatest Common Divisor: the Euclidean Algorithm Ex. 4.35. Diophantine equation Find nonnegative integer solutions for 6x+10y=104. Ans: 3x+5y=52, gcd(3,5)=1, 1=3(2)+5(-1), 52=3(104)+5(-52) x=104-5k, y=-52+3k, 104-5k 0 and -52+3k 0. So k=18,19,20. Theorem 4.8. If a,b,c in Z+, the Diophantine equcation ax+by=c has an integer solution if and only if gcd(a,b) divides c.

Chapter 4 Properties of the Integers: Mathematical Induction 4.4 The Greatest Common Divisor: the Euclidean Algorithm Def 4.4. For a,b,c in Z+, c is called a common multiple of a,b if c is a multiple of both a and b. Furthermore, c is the least common multiple if it is the smallest of all positive integers that are common multiple of a,b. We denote c by lcm(a,b). Theorem 4.10 For a,b in Z+, ab=lcm(a,b)gcd(a,b)

Chapter 4 Properties of the Integers: Mathematical Induction 4.5 The Fundamental Theorem of Arithmetic

Chapter 4 Properties of the Integers: Mathematical Induction 4.5 The Fundamental Theorem of Arithmetic Theorem 4.11 (The fundamental theorem of arithmetic) Every integer n>1 can be written as a product of primes uniquely, up to the order of the primes. Ex. 4.41 For n in Z+, we want to count the number of positive divisors of n.

Chapter 4 Properties of the Integers: Mathematical Induction 4.5 The Fundamental Theorem of Arithmetic Ex. 4.43 Can we find three consecutive positive integers whose product is a perfect square, that is, do there exist m,n in Z+ with (m)(m+1)(m+2)=n2? Sol: Suppose m,n do exist. Since gcd(m,m+1)=gcd(m+1,m+2)=1, so for any prime p, if p|(m+1), then p|m and p|m+2. Furthermore, if p|(m+1), then p|n2. Since n2 is a perfect square, the exponents on p in the prime factorizations of both m+1 and n2 must be the same even integer. So m+1 is a perfect square. And m(m+2) must be a perfect square too. But m2<m(m+2)<m2+2m+1<(m+1)2. So m(m+2) cannot be a perfect square. m,n do not exist.