Chapter 5: Sequences, Mathematical Induction and Recursion

Slides:



Advertisements
Similar presentations
Chapter 8 Vocabulary. Section 8.1 Vocabulary Sequences An infinite sequence is a function whose domain is the set of positive integers. The function.
Advertisements

Sequences and Mathematical Induction
Sequences, Induction and Probability
Discrete Structures Chapter 2 Part A Sequences Nurul Amelina Nasharuddin Multimedia Department.
Chapter 4 Mathematical Induction Used to verify a property of a sequence 2,4,6,8,… for i >= 1 a i = 2i –infinite sequence with infinite distinct values.
Kavita Hatwal Fall Sequences and Induction.
CMSC 250 Discrete Structures Summation: Sequences and Mathematical Induction.
1 Sequences and Mathematical Induction An important task of mathematics is to discover and characterize regular patterns, such as those associated with.
Discrete Structures Chapter 5: Sequences, Mathematical Induction, and Recursion 5.2 Mathematical Induction I [Mathematical induction is] the standard proof.
Copyright © 2007 Pearson Education, Inc. Slide 8-1 Warm-Up Find the next term in the sequence: 1, 1, 2, 6, 24, 120,…
Introduction Arithmetic sequences are linear functions that have a domain of positive consecutive integers in which the difference between any two consecutive.
Arithmetic Sequences A sequence in which each term after the first is obtained by adding a fixed number to the previous term is an arithmetic sequence.
Arithmetic Sequences ~adapted from Walch Education.
Copyright © Cengage Learning. All rights reserved. CHAPTER 11 ANALYSIS OF ALGORITHM EFFICIENCY ANALYSIS OF ALGORITHM EFFICIENCY.
8.1 Sequences and Series Essential Questions: How do we use sequence notation to write the terms of a sequence? How do we use factorial notation? How.
Copyright © 2007 Pearson Education, Inc. Slide 8-1.
GPS – Sequences and Series  MA3A9. Students will use sequences and series  a. Use and find recursive and explicit formulae for the terms of sequences.
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.
MATH 224 – Discrete Mathematics
Sequences & Summations CS 1050 Rosen 3.2. Sequence A sequence is a discrete structure used to represent an ordered list. A sequence is a function from.
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.
Copyright © 2014, 2010 Pearson Education, Inc. Chapter 9 Further Topics in Algebra Copyright © 2014, 2010 Pearson Education, Inc.
1 Introduction to Abstract Mathematics Chapter 4: Sequences and Mathematical Induction Instructor: Hayk Melikya 4.1- Sequences. 4.2,
Section 8.1 Sequences & Series. Sequences & Series Definition of Sequence: An infinite sequence is a function whose domain is the set of positive integers.
Factorial Notation For any positive integer n, n! means: n (n – 1) (n – 2)... (3) (2) (1) 0! will be defined as equal to one. Examples: 4! = =
1 © 2010 Pearson Education, Inc. All rights reserved © 2010 Pearson Education, Inc. All rights reserved Chapter 11 Further Topics in Algebra.
1 © 2010 Pearson Education, Inc. All rights reserved © 2010 Pearson Education, Inc. All rights reserved Chapter 10 Further Topics in Algebra.
1 Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications Kenneth H. Rosen Chapter 3 Mathematical Reasoning, Induction and Recursion.
Sequences and Summations
Copyright © Cengage Learning. All rights reserved. CHAPTER 9 COUNTING AND PROBABILITY.
Review of Sequences and Series.  Find the explicit and recursive formulas for the sequence:  -4, 1, 6, 11, 16, ….
13.6 Sigma Notation. Objectives : 1. Expand sequences from Sigma Notation 2. Express using Sigma Notation 3. Evaluate sums using Sigma Notation Vocabulary.
Lesson 8.1 Page #1-25(EOO), 33, 37, (ODD), 69-77(EOO), (ODD), 99, (ODD)
Sequence – a function whose domain is positive integers. Section 9.1 – Sequences.
Slide Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
Chapter 11 Sequences, Induction, and Probability Copyright © 2014, 2010, 2007 Pearson Education, Inc Sequences and Summation Notation.
(CSC 102) Lecture 23 Discrete Structures. Previous Lecture Summery  Sequences  Alternating Sequence  Summation Notation  Product Notation  Properties.
1, Mustafa Jarrar Lecture Notes on Sequences & Mathematical Induction. Birzeit University, Palestine, 2015 mjarrar©2015 Sequences & Mathematical Induction.
1 CMSC 250 Chapter 4, Summations and Products. 2 CMSC 250 Induction l Induction is a proof technique used to verify a property of a sequence –2,4,6,8,…
9.1 Sequences and Series. Definition of Sequence  An ordered list of numbers  An infinite sequence is a function whose domain is the set of positive.
SEQUENCES OBJECTIVES: Write the first several terms of a sequence Write the terms of a sequence defined by a Recursive Formula Use Summation Notation Find.
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.
Lecture#15 Discrete Mathematics. Summation Computing Summation Let a 0 = 2, a 1 = 3, a 2 = -2, a 3 = 1 and a 4 = 0. Compute each of the summations: =
8.1 Sequences and Series Essential Questions: How do we use sequence notation to write the terms of a sequence? How do we use factorial notation? How.
Review of Sequences and Series
Chapter 2 1. Chapter Summary Sets The Language of Sets - Sec 2.1 – Lecture 8 Set Operations and Set Identities - Sec 2.2 – Lecture 9 Functions and sequences.
Do Now Solve the inequality and come up with a real world scenario that fits the solution. Also Pick up a textbook.
Lecture # 20 Sequence & Series
Arithmetic Sequences and Series Section Objectives Use sequence notation to find terms of any sequence Use summation notation to write sums Use.
 A sequence is a function whose domain is a set of consecutive integers. If a domain is not specified, it is understood that the domain starts with 1.
Essential Question: How do you find the nth term and the sum of an arithmetic sequence? Students will write a summary describing the steps to find the.
Sect.R10 Geometric Sequences and Series
The symbol for summation is the Greek letter Sigma, S.
Sequences and Series Section 8.1.
Copyright © Cengage Learning. All rights reserved.
CS100: Discrete structures
Copyright © 2014, 2010, 2007 Pearson Education, Inc.
Chapter 8: Further Topics in Algebra
ICS 253: Discrete Structures I
DAY 30 AGENDA: Quiz Tues.
9.1: Introduction to Sequences
Chapter 11: Further Topics in Algebra
Sequences and Summation Notation
Sullivan Algebra and Trigonometry: Section 13.1
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
Copyright © 2014, 2010, 2007 Pearson Education, Inc.
61 – Sequences and Series Day 2 Calculator Required
10.1 Sequences and Summation Notation
Presentation transcript:

Chapter 5: Sequences, Mathematical Induction and Recursion Discrete Mathematics and Applications Chapter 5: Sequences, Mathematical Induction and Recursion 5.1 Sequences Yan Zhang (yzhang16@usf.edu) Department of Computer Science and Engineering, USF

Sequences A sequence is a function. Function 𝑓 : 𝐴 → 𝐵 Not allowed Every element 𝑥 in 𝐴 is mapped to only one element 𝑦 in 𝐵, such that (𝑥, 𝑦)∈𝑓. Domain: A 𝑓 : 𝐴 → 𝐵 Codomain: B Not allowed

Sequences Finite sequences: 𝑎 𝑚 , 𝑎 𝑚+1 , 𝑎 𝑚+2 , ⋯, 𝑎 𝑛 Definition A sequence is a function. Domain is either all the integers between two given integers or all the integers greater than or equal to a given integer. Finite sequences: 𝑎 𝑚 , 𝑎 𝑚+1 , 𝑎 𝑚+2 , ⋯, 𝑎 𝑛 Domain 𝑚 𝑚+1 𝑚+2 ⋯ 𝑛 Codomain 𝑎 𝑚 𝑎 𝑚+1 𝑎 𝑚+2 𝑎 𝑛 Infinite sequences: 𝑎 𝑚 , 𝑎 𝑚+1 , 𝑎 𝑚+2 , ⋯ Domain 𝑚 𝑚+1 𝑚+2 ⋯ Codomain 𝑎 𝑚 𝑎 𝑚+1 𝑎 𝑚+2 𝑎𝑘 (read “𝑎 sub 𝑘”) is called a term. 𝑘 in 𝑎𝑘 is called a subscript or index. Initial term: 𝑎 𝑚 Final term: 𝑎 𝑛

Sequence Example 1 Finding Terms of Sequences Given by Explicit Formulas Define sequences 𝑎1, 𝑎2, 𝑎3,… and 𝑏2, 𝑏3, 𝑏4,… by the following explicit formulas: Compute the first five terms of both sequences. Solution: 𝑎 1 = 1 1+1 = 1 2 , 𝑎 2 = 2 2+1 = 2 3 , 𝑎 3 = 3 3+1 = 3 4 , 𝑎 4 = 4 4+1 = 4 5 , 𝑎 5 = 5 5+1 = 5 6 𝑏 2 = 2−1 2 = 1 2 , 𝑏 3 = 3−1 3 = 2 3 , 𝑏 4 = 4−1 4 = 3 4 , 𝑏 5 = 5−1 5 = 4 5 , 𝑏 6 = 6−1 6 = 5 6 Note: all terms of both sequences are identical.

Sequence Example 2 Finding an Explicit Formulas to Fit Given Initial Terms Find an explicit formula for a sequence that has the following initial terms: 1, − 1 4 , 1 9 , − 1 16 , 1 25 , − 1 36 , ⋯ Solution: Denote the general term of the sequence by 𝑎 𝑘 and suppose the first term is 𝑎 1 . 𝑎 1 = 1 1 2 , 𝑎 2 =(−1) 1 2 2 , 𝑎 3 = 1 3 2 , 𝑎 4 =(−1) 1 4 2 , 𝑎 5 = 1 5 2 , 𝑎 6 =(−1) 1 6 2 An explicit formulator that gives the correct first six terms is: 𝑎 𝑘 = (−1) 𝑘+1 1 𝑘 2

Summation Notation Given a sequence 𝑎 𝑚 , 𝑎 𝑚+1 , 𝑎 𝑚+2 , ⋯, 𝑎 𝑛 , The summation from 𝑘 equals 𝑚 to 𝑛 of 𝑎-sub-𝑘: 𝑘=𝑚 𝑛 𝑎 𝑘 = 𝑎 𝑚 + 𝑎 𝑚+1 + ⋯ +𝑎 𝑛 Domain 𝑚 𝑚+1 𝑚+2 ⋯ 𝑛 Codomain 𝑎 𝑚 𝑎 𝑚+1 𝑎 𝑚+2 𝑎 𝑛 Summation notation Expanded form 𝑘: the index of the summation 𝑚: the lower limit of the summation 𝑛: the upper limit of the summation

Summation Example – Computing Summations Let 𝑎1 = −2, 𝑎2 = −1, 𝑎3 = 0, 𝑎4 = 1, and 𝑎5 = 2. Compute the following: 𝑘=1 5 𝑎 𝑘 𝑘=1 5 𝑎 𝑘 = 𝑎 1 + 𝑎 2 + 𝑎 3 + 𝑎 4 + 𝑎 5 = −2 + −1 +0+1+2=0 𝑘=2 2 𝑎 𝑘 𝑘=2 2 𝑎 𝑘 = 𝑎 2 =−1 𝑘=1 2 𝑎 2𝑘 𝑘=1 2 𝑎 2𝑘 = 𝑎 2 + 𝑎 4 = −1 +1=0

Summation Example – Changing from Summation Notation to Expanded Form Write the following summation in expanded form: Solution:

Summation Example – Changing from Expanded Form to Summation Notation Express the following using summation notation: Solution: The general term of this summation can be expressed as for integers k from 0 to n. Hence

Summation Notation - Recursive Definition If 𝑚 is any integer and 𝑚<𝑛, then Recursive definition is useful to rewrite a summation, by separating off the final term of a summation by adding a final term to a summation. 𝑘=𝑚 𝑚 𝑎 𝑘 = 𝑎 𝑚 𝑘=𝑚 𝑚+1 𝑎 𝑘 = 𝑘=𝑚 𝑚 𝑎 𝑘 + 𝑎 𝑚+1 𝑘=𝑚 𝑚+2 𝑎 𝑘 = 𝑘=𝑚 𝑚+1 𝑎 𝑘 + 𝑎 𝑚+2 ⋯ 𝑘=𝑚 𝑛 𝑎 𝑘 = 𝑘=𝑚 𝑛−1 𝑎 𝑘 + 𝑎 𝑛

Recursive Definition Example – Separating Off a Final Term and Adding On a Final Term a. Rewrite by separating off the final term. b. Write as a single summation. Solution: a. b.

Summation Notation - A Telescoping Sum In certain sums each term is a difference of two quantities. For example: 𝑎 𝑘 = 1 𝑘 − 1 𝑘+1 , 𝑘=𝑚, ⋯,𝑛 When you write such sums in expanded form, you sometimes see that all the terms cancel except the first and the last. 𝑎 𝑘 + 𝑎 𝑘+1 + 𝑎 𝑘+2 = 1 𝑘 − 1 𝑘+1 + 1 𝑘+1 − 1 𝑘+2 + 1 𝑘+2 − 1 𝑘+3 Successive cancellation of terms collapses the sum like a telescope.

A Telescoping Sum Example Some sums can be transformed into telescoping sums, which then can be rewritten as a simple expression. For instance, observe that Use this identity to find a simple expression for

Product Notation Given a sequence 𝑎 𝑚 , 𝑎 𝑚+1 , 𝑎 𝑚+2 , ⋯, 𝑎 𝑛 , The product from 𝑘 equals 𝑚 to 𝑛 of 𝑎-sub-𝑘: 𝑘=𝑚 𝑛 𝑎 𝑘 = 𝑎 𝑚 ∙ 𝑎 𝑚+1 ∙ ⋯ ∙𝑎 𝑛 Domain 𝑚 𝑚+1 𝑚+2 ⋯ 𝑛 Codomain 𝑎 𝑚 𝑎 𝑚+1 𝑎 𝑚+2 𝑎 𝑛 A recursive definition for the product notation is the following: If 𝑚 is any integer, then

Product Notation Example – Computing Products Compute the following products: a. b. Solution:

Properties of Summations and Products

Properties of Summation & Product Exercise Let 𝑎𝑘 = 𝑘 + 1 and 𝑏𝑘 = 𝑘 − 1 for all integers 𝑘. Write each of the following expressions as a single summation or product: a. b.

Properties of Summation & Product Exercise Solution: a.

Properties of Summation & Product Exercise Solution: b.

𝑖=𝑚 𝑛 𝑎 𝑖 = 𝑗=𝑚 𝑛 𝑎 𝑗 and 𝑖=𝑚 𝑛 𝑎 𝑖 = 𝑗=𝑚 𝑛 𝑎 𝑗 Change of Variable The index symbol in a summation or product is internal to summation or product. The index symbol can be replaced by any other symbol as long as the replacement is made in each location where the symbol occurs. 𝑖=𝑚 𝑛 𝑎 𝑖 = 𝑗=𝑚 𝑛 𝑎 𝑗 and 𝑖=𝑚 𝑛 𝑎 𝑖 = 𝑗=𝑚 𝑛 𝑎 𝑗 As a consequence, the index of a summation or a product is called a dummy variable. A dummy variable is a symbol that derives its entire meaning from its local context. Outside of that context, the symbol may have another meaning entirely.

Change of Variable Exercise 1 summation: change of variable:

Change of Variable Exercise 1 - Solution First calculate the lower and upper limits of the new summation: Thus the new sum goes from j = 1 to j = 7. Next calculate the general term of the new summation by replacing each occurrence of k by an expression in j : Finally, put the steps together to obtain

Factorial Notation A recursive definition for factorial is the following: Given any nonnegative integer 𝑛,

Factorials Exercise Simplify the following expressions: a. b. c. d. e. Solution: a. b. d. e.

Factorials Exercise Solution

“n Choose r ” Notation Chose 2 objects from {a,b,c,d}: {a, b}, {a, c}, {a, d}, {b, c}, {b,d}, and {c, d}.

“n Choose r” Exercise Use the formula for computing to evaluate the following expressions: a. b. c. Solution: a.

“n Choose r” Exercise b. c.

n Choose r Properties 𝑛 𝑘 = 𝑛 𝑛−𝑘 for 0≤ 𝑘≤ 𝑛 𝑛 0 = 𝑛 𝑛 =1 𝑛 0 = 𝑛 𝑛 =1 𝑛 𝑘 = 𝑛 𝑘−1 𝑛−𝑘+1 𝑘 for 𝑘>0 𝑛 𝑘 = 𝑛−1 𝑘 𝑛 𝑛−𝑘 for 𝑘<𝑛 𝑛 𝑘 = 𝑛−1 𝑘−1 𝑛 𝑘 for 𝑛,𝑘>0

Exercise Prove that for all nonnegative integers 𝑛 and 𝑟 with 𝑟+1≤𝑛, 𝑛 𝑟+1 = 𝑛−𝑟 𝑟+1 𝑛 𝑟 .

Exercise Prove that for all nonnegative integers 𝑛 and 𝑟 with 𝑟+1≤𝑛, 𝑛 𝑟+1 = 𝑛−𝑟 𝑟+1 𝑛 𝑟 . Hint: 𝑛−𝑟 𝑟+1 𝑛 𝑟 = 𝑛−𝑟 𝑟+1 ∙ 𝑛! 𝑟! 𝑛−𝑟 ! = 𝑛−𝑟 𝑟+1 ∙ 𝑛! 𝑟! 𝑛−𝑟 ∙ 𝑛−𝑟−1 ! = 𝑛! (𝑟+1)! 𝑛−𝑟−1 ! = 𝑛 𝑟+1