1 2/21/2016 MATH 224 – Discrete Mathematics Sequences and Sums A sequence of the form ar 0, ar 1, ar 2, ar 3, ar 4, …, ar n, is called a geometric sequence.

Slides:



Advertisements
Similar presentations
Mathematical Induction
Advertisements

Lecture 2 Based on Chapter 1, Weiss. Mathematical Foundation Series and summation: ……. N = N(N+1)/2 (arithmetic series) 1 + r+ r 2 + r 3 +………r.
We want to prove the above statement by mathematical Induction for all natural numbers (n=1,2,3,…) Next SlideSlide 1.
Copyright © Cengage Learning. All rights reserved. CHAPTER 5 SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION.
Induction and recursion
Discrete Structures Chapter 2 Part A Sequences Nurul Amelina Nasharuddin Multimedia Department.
Kavita Hatwal Fall Sequences and Induction.
Discrete Structures Chapter 2 Part B Mathematical Induction
Discrete Structures Chapter 5: Sequences, Mathematical Induction, and Recursion 5.2 Mathematical Induction I [Mathematical induction is] the standard proof.
Chapter 10 Sequences, Induction, and Probability Copyright © 2014, 2010, 2007 Pearson Education, Inc Mathematical Induction.
Lecture 4 Discrete Mathematics Harper Langston. Algorithms Algorithm is step-by-step method for performing some action Cost of statements execution –Simple.
1 Section 3.3 Mathematical Induction. 2 Technique used extensively to prove results about large variety of discrete objects Can only be used to prove.
Copyright © 2007 Pearson Education, Inc. Slide 8-1.
Properties refer to rules that indicate a standard procedure or method to be followed. A proof is a demonstration of the truth of a statement in mathematics.
Algorithm Design and Analysis (ADA)
Sequences and Series (T) Students will know the form of an Arithmetic sequence.  Arithmetic Sequence: There exists a common difference (d) between each.
1 © 2010 Pearson Education, Inc. All rights reserved 10.1 DEFINITION OF A SEQUENCE An infinite sequence is a function whose domain is the set of positive.
Rev.S08 MAC 1140 Module 12 Introduction to Sequences, Counting, The Binomial Theorem, and Mathematical Induction.
MATH 224 – Discrete Mathematics
Sequences Informally, a sequence is a set of elements written in a row. – This concept is represented in CS using one- dimensional arrays The goal of mathematics.
Introduction to Proofs
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!
College Algebra Fifth Edition James Stewart Lothar Redlin Saleem Watson.
CSNB143 – Discrete Structure Topic 5 – Induction Part I.
1 Introduction to Abstract Mathematics Chapter 4: Sequences and Mathematical Induction Instructor: Hayk Melikya 4.1- Sequences. 4.2,
Discrete Maths Objective to introduce mathematical induction through examples , Semester 2, Mathematical Induction 1.
MATH 224 – Discrete Mathematics
Chapter 1 Introduction. Goals Why the choice of algorithms is so critical when dealing with large inputs Basic mathematical background Review of Recursion.
Math Review Data Structures & File Management Computer Science Dept Va Tech July 2000 ©2000 McQuain WD 1 Summation Formulas Let N > 0, let A, B, and C.
Sequences and Summations
Discrete Maths: Induction/1 1 Discrete Maths Objective – –to introduce mathematical induction through examples , Semester
 Here are a few review concepts before we start solving equations!
1.3 Solving Linear Equations
CompSci 102 Discrete Math for Computer Science March 1, 2012 Prof. Rodger Slides modified from Rosen.
(CSC 102) Lecture 23 Discrete Structures. Previous Lecture Summery  Sequences  Alternating Sequence  Summation Notation  Product Notation  Properties.
(Finite) Mathematical Induction In our first lesson on sequences and series, you were told that How can we be certain that this will be true for all counting.
Foundations of Discrete Mathematics Chapters 5 By Dr. Dalia M. Gil, Ph.D.
1+2+3+…+n = n(n+1)/2 We want to prove the above statement by mathematical Induction for all natural numbers (n=1,2,3,…) Next SlideSlide 1.
An exponential equation is one in which a variable occurs in the exponent. An exponential equation in which each side can be expressed in terms of the.
CS104:Discrete Structures Chapter 2: Proof Techniques.
Copyright © Cengage Learning. All rights reserved. Sequences and Series.
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.
Proofs, Recursion and Analysis of Algorithms Mathematical Structures for Computer Science Chapter 2 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProofs,
Section 8.4 Mathematical Induction. Mathematical Induction In this section we are going to perform a type of mathematical proof called mathematical induction.
Section 1.8. Proof by Cases Example: Let b = max{a, b} = a if a ≥ b, otherwise b = max{a, b} = b. Show that for all real numbers a, b, c
1 Discrete Mathematical Mathematical Induction ( الاستقراء الرياضي )
Identity and Equality Properties. Properties refer to rules that indicate a standard procedure or method to be followed. A proof is a demonstration of.
Notions & Notations - 1ICOM 4075 (Fall 2010) UPRM Department of Electrical and Computer Engineering University of Puerto Rico at Mayagüez Fall 2010 ICOM.
Section 1.7. Section Summary Mathematical Proofs Forms of Theorems Direct Proofs Indirect Proofs Proof of the Contrapositive Proof by Contradiction.
Lecture # 20 Sequence & Series
Week 1 Real Numbers and Their Properties (Section 1.6, 1.7, 1.8)
1.7: Adding Like Terms TERM: A number, a variable, or the product of the two.Ex: a, 3x, 2x, 5, CONSTANT: a term with no variable (number) Ex: 4, -1, 6,
Chapter 5 1. Chapter Summary  Mathematical Induction  Strong Induction  Recursive Definitions  Structural Induction  Recursive Algorithms.
Mathematical Induction. The Principle of Mathematical Induction Let S n be a statement involving the positive integer n. If 1.S 1 is true, and 2.the truth.
MATH 224 – Discrete Mathematics
Copyright 2013, 2009, 2005, 2002 Pearson, Education, Inc.
Identity and Equality Properties
Induction and recursion
The symbol for summation is the Greek letter Sigma, S.
Proofs, Recursion and Analysis of Algorithms
Induction and recursion
Copyright © Cengage Learning. All rights reserved.
Algebra: Equations and Inequalities
Mathematical Induction
Mathematical Induction
Chapter 11: Further Topics in Algebra
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
11.4 Mathematical Induction
Presentation transcript:

1 2/21/2016 MATH 224 – Discrete Mathematics Sequences and Sums A sequence of the form ar 0, ar 1, ar 2, ar 3, ar 4, …, ar n, is called a geometric sequence and occurs quite often in computer science applications. Another common sequence is of the form a, 2a, 3a, 4a, …, na is called an arithmetic sequence. We have seen this when examining the number of steps executed by selection sort. In our example, the variable a was equal to 1, so we just had 1, 2, 3, …. N. Often we are interested in the sum of one of these sequences as in the arithmetic sum and the geometric sum. = = Arithmetic Sum Geometric Sum (as long as r ≠ 1) What will be the formula for the geometric sum when a = 1. Compare this to the formula on Page 155 from our text. Are they equivalent?

2 2/21/2016 MATH 224 – Discrete Mathematics Basic Properties of Sums = From this equality it follows that

3 2/21/2016 MATH 224 – Discrete Mathematics Mathematical Induction Mathematical induction is a property of the integers and any well ordered set. It may be used to prove properties hold for an infinite set of values. For example it may be used to prove something such as Proofs by induction require two steps: the Basis Step and the Inductive Step. In addition, a proof of the inductive step, makes use of the an Inductive Hypothesis. All three of these elements will be required in your proofs. = when r ≠ 1

4 2/21/2016 MATH 224 – Discrete Mathematics Mathematical Induction Basis Step The Basis Step requires the proof of some property P(x 0 ) for a starting value x 0. P(x) might involve an equation as in the summation above or it might be a statements such as a C++ function sorts all input arrays from smallest to largest. So for example the basis step might require one to prove that Or it might require one to prove that a C++ function such as binary_search works correctly for a sorted array with just one element. =

5 2/21/2016 MATH 224 – Discrete Mathematics Mathematical Induction Inductive Step The Inductive Step requires a proof that P(x) → P(x+1) for any x ≥ x 0. To do this you assume that the Inductive Hypothesis P(x) is true for some arbitrary value x ≥ x 0. You are not assuming this for all x, but just for some x with no restrictions. Note that x is greater than or equal to the starting value. In your proofs you must state the inductive hypothesis explicitly. So for example, in a proof of the geometric sum, the inductive hypothesis would be something like: Assume that for some x ≥ 0 the following holds as long as r ≠ 1. Note the word some. We are only assuming this for one value of x. Also be sure to note the x is set greater than or equal to the starting value. Both of these are critical for a correct proof. =

6 2/21/2016 MATH 224 – Discrete Mathematics Proof without Using Induction The following is a proof of the formula for the Geometric Sum without using induction. = Consider How do we get the expression on the right? Then dividing the left and right sides by 1 – r we get the final result. What is wrong with dividing by 1 – r if r = 1? when r ≠ 1

7 2/21/2016 MATH 224 – Discrete Mathematics Proof Using Induction The following is a proof of the formula for the Geometric Sum using induction. = Basis: (Sometimes called the base case.) Consider the sum when n = 0. Then the sum has only one term r 0 =1. And the fraction on the right is just (1– r )/(1– r ) since n+1 = 1. Thus the equation is correct for the base case. Inductive Hypothesis: Assume that for some k ≥ 0 the equation holds. In other words, when r ≠ 1 =

8 2/21/2016 MATH 224 – Discrete Mathematics Proofs Using Induction It is critical that the inductive hypothesis does not restrict the value of k. In other words it must be possible for k to take on the base value. Why would k > 0 be wrong for the Inductive Hypothesis in this proof? Inductive Step: Consider the following sum : for some k ≥ 0. By algebra this sum may be written as The right side of the equality follows from the inductive hypothesis. Why? Then adding the two fractions and simplifying yields the fraction: And from this we may conclude that the original equation is correct by induction. If we substitute k+1 for n, what does the original equation give?