7.4 Generating Functions Definition 1: The generation function for the sequence a 0, a 1,...,a k,... of real numbers is the infinite series G(x) = a 0.

Slides:



Advertisements
Similar presentations
10.1 Complex Numbers Definition:
Advertisements

Section 6.2 Calculating Coefficients Of Generating Functions
Counting Chapter 6 With Question/Answer Animations.
Lecture 17 Generating Functions. Recap Generating functions are defined by a sequence as follows: Thus: For every sequence there a generating function.
Chapter Recurrence Relations
Polynomials and Special Products
1 Copyright M.R.K. Krishna Rao Solving Recurrence Relations Steps for solving a linear homogeneous recurrence relation of degree 2 : Step #1.
Chapter 9 Generating functions Yen-Liang Chen Dept of Information Management National Central University.
INFINITE SEQUENCES AND SERIES
Counting Techniques: r-combinations with
College Algebra Fifth Edition
Applied Discrete Mathematics Week 9: Relations
Advanced Counting Techniques
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 15.3.
Chapter 8. Section 8. 1 Section Summary Introduction Modeling with Recurrence Relations Fibonacci Numbers The Tower of Hanoi Counting Problems Algorithms.
The importance of sequences and infinite series in calculus stems from Newton’s idea of representing functions as sums of infinite series.  For instance,
Chap. 7 (c) , Michael P. Frank1 Chapter 7: Advanced Counting Techniques.
Generalized Permutations and Combinations
4.6.2 Exponential generating functions
Week 15 - Wednesday.  What did we talk about last time?  Review first third of course.
Chapter 6 With Question/Answer Animations 1. Chapter Summary The Basics of Counting The Pigeonhole Principle Permutations and Combinations Binomial Coefficients.
Permutations and Combinations
Chapter 8 With Question/Answer Animations 1. Chapter Summary Applications of Recurrence Relations Solving Linear Recurrence Relations Homogeneous Recurrence.
1 Chapter 7 Generating functions. 2 Summary Generating functions Recurrences and generating functions A geometry example Exponential generating functions.
4.5.2 Applications of Inclusion-Exclusion principle
Sequences and Summations
Chapter 7 Advance Counting Techniques. Content Recurrence relations Generating function The principle of inclusion-exclusion.
1 Binomial Coefficients CS 202 Epp, section ??? Aaron Bloomfield.
Chapter 5 The Binomial Coefficients
Copyright © 2011 Pearson Education, Inc. Combinations, Labeling, and the Binomial Theorem Section 8.5 Sequences, Series, and Probability.
Copyright © Cengage Learning. All rights reserved. CHAPTER 11 ANALYSIS OF ALGORITHM EFFICIENCY ANALYSIS OF ALGORITHM EFFICIENCY.
Chapter 8 With Question/Answer Animations. Chapter Summary Applications of Recurrence Relations Solving Linear Recurrence Relations Homogeneous Recurrence.
Infinite Sequences and Series 8. Taylor and Maclaurin Series 8.7.
Sequences and Summations Section 2.4. Section Summary Sequences. – Examples: Geometric Progression, Arithmetic Progression Recurrence Relations – Example:
Copyright © 2009 Pearson Education, Inc. Chapter 5 Section 1 - Slide 1 Chapter 1 Number Theory and the Real Number System.
CS201: Data Structures and Discrete Mathematics I
College Algebra Sixth Edition James Stewart Lothar Redlin Saleem Watson.
Series Solutions of Linear Differential Equations CHAPTER 5.
Mathematics.
Counting nCr = n!/r!(n-r)!=nC(n-r) This equation reflects the fact that selecting r items is same as selecting n-r items in forming a combination from.
The Pigeonhole Principle. The pigeonhole principle Suppose a flock of pigeons fly into a set of pigeonholes to roost If there are more pigeons than pigeonholes,
1 Melikyan/DM/Fall09 Discrete Mathematics Ch. 6 Counting and Probability Instructor: Hayk Melikyan Today we will review sections 6.6,
Slide Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
7.2 Solving Linear Recurrence Relations Some of these recurrence relations can be solved using iteration or some other ad hoc technique. However, one important.
Recurrence Relations. Outline Recurrence relationsSolving recurrence relationsRecurrence and Divide-and-conquer algorithmsGenerating functions
4.6 Generating functions Generating functions
Lecture 16 Generating Functions. Basically, generating functions are a tool to solve a wide variety of counting problems and recurrence relations, find.
5.5 Generalized Permutations and Combinations
Section The Pigeonhole Principle If a flock of 20 pigeons roosts in a set of 19 pigeonholes, one of the pigeonholes must have more than 1 pigeon.
7 th Grade Math Vocabulary Word, Definition, Model Emery Unit 1.
Advanced Counting Techniques
Section 6.3. Section Summary Permutations Combinations.
CMSC Discrete Structures
Section 6.2 Calculating Coefficients Of Generating Functions
Copyright © Cengage Learning. All rights reserved.
Advanced Counting Techniques
The Real-Number System
Calculating Coefficients Of Generating Functions
Techniques of Differentiation
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
5.1 Power Series Method Section 5.1 p1.
CMSC Discrete Structures
Chapter 12 Section 4.
One-to-One and Onto, Inverse Functions
CMSC Discrete Structures
Recurrence Relations Discrete Structures.
Chapter 7 Advanced Counting Techniques
ICS 253: Discrete Structures I
Algebra and Indices.
Presentation transcript:

7.4 Generating Functions Definition 1: The generation function for the sequence a 0, a 1,...,a k,... of real numbers is the infinite series G(x) = a 0 + a 1 x a k x k +... =  k=0  a k x k Example 1: The generating functions for the sequences {a k } with a k =3, a k =k+1, and a k = 2 k are  k=0  3x k,  k=0  (k+1)x k,and  k=0  2 k x k,respectively. Example 2: what is the generating function for the sequence 1, 1, 1, 1, 1, 1? 1

Useful Facts About Power Series Example 3: Let m be a positive integer. Let a k = C(m,k), for k=0, 1, 2,... m,. What is the generating function for the sequence a 0, a 1,...,a m ? Example 4: The function f(x)=1/(1-x) is the generating function of the sequence 1, 1, 1, 1,..., because 1/(1-x)= 1 + x + x for |x|<1. Example 5: The function f(x)=1/(1-ax) is the generating function of the sequence 1, a, a 2, a 3,... because 1/(1-ax)=1 + ax + a 2 x when |ax|<1, or equivalently, for |x|<1/|a| for |a|≠ 0 2

Useful Facts About Power Series Theorem 1: Let f(x)=  k=0  a k x k and g(x)=  k=0  b k x k. Then f(x)+ g(x)=  k=0  (a k + b k )x k and f (x)g(x) =  k=0   j=0 k (a j × b k-j )x k Example 6: Let f(x) =1/(1-x) 2. Use example 4 to find the coefficients a 0, a 1,..., in the expansion f(x)=  k=0  a k x k. 3

Useful Facts About Power Series Definition 2: Let u be a real number and k a nonnegative integer then the extended binomial coefficient is defined by Example 7: Find the values of the extended binomial coefficients and. 4

Useful Facts About Power Series Example 8: When the top parameter is a negative integer, the extended binomial coefficient can be expressed in terms of an ordinary binomial coefficient. note that by definition of extended binomial coefficient factoring out -1 from each term in the numerator by the commutative law for multiplication multiplying both the numerator and denominator by (n-1)! by the definition of binomial coefficients using alternative notation for binomial coefficients 5

Useful Facts About Power Series Theorem 2: The Extended Binomial Theorem Let x be a real number with |x|< 1 and let u be a real number. Then Example 9: Find the generating functions for (1+x) -n and (1-x) -n, where n is a positive integer, using the extended Binomial Theorem. 6

Counting Problems and Generating Functions 7

8

Example 10: Find the number of solutions of e 1 +e 2 +e 3 =17 Where e 1,e 2,e 3 are nonnegative integers with 2  e 1  5, 3  e 2  6, 4  e 3  7 Example 11: In how many different ways can eight identical cookies be distributed among three distinct children if each child receives at least two cookies and no more than four cookies? 9

Counting Problems and Generating Functions Example 12: Use generating functions to determine the number of ways to insert tokens worth $1, $2, and $5 into a vending machine to pay for an item that costs r dollars in both the cases then the order in which the tokens are inserted does not matter and when the order does matter. Example 13: Use generating functions to find the number of k-combinations of a set with n elements. Assume that the Binomial Theorem has already been established. 10

Counting Problems and Generating Functions Example 14: Use generating functions to find the number of r-combinations from a set with n elements when repetition of elements is allowed. Example 15: Use generating functions to find the number of ways to select r objects of n different kinds if we must select at least one object of each kind. 11

Using Generating Functions to Solve Recurrence Relations Example 16: Solve the recurrence relation a k =3a k-1 for k=1, 2, 3,... and initial condition a 0 =2. Example 17: Suppose that a valid codeword is an n- digit number in decimal notation containing an even number of 0s. Let a n denote the number of valid codewords of length n. In Example 7 of section 7.1 we showed that the sequence {a n } satisfies the recurrence relation a n = 8a n n-1 And the initial condition a 1 =9. use generating functions to find an explicit formula for a n. 12

Proving Identities via Generating Functions Example 18: Use generating functions to show that  k=0 n C(n, k) 2 = C(2n, n) whenever n is a positive integer. 13