COS 341 Discrete Mathematics. Exponential Generating Functions and Recurrence Relations

Similar documents
Sums, products and sequences

Math 155 (Lecture 3)

Chapter 6. Advanced Counting Techniques

You may work in pairs or purely individually for this assignment.

Solutions to Final Exam

Recurrence Relations

Math 475, Problem Set #12: Answers

Chapter 4. Fourier Series

Generating Functions. 1 Operations on generating functions

Discrete Mathematics Recurrences

Section 5.1 The Basics of Counting

NICK DUFRESNE. 1 1 p(x). To determine some formulas for the generating function of the Schröder numbers, r(x) = a(x) =

Books Recommended for Further Reading

+ au n+1 + bu n = 0.)

Infinite Sequences and Series

CHAPTER 1 SEQUENCES AND INFINITE SERIES

Algebra II Notes Unit Seven: Powers, Roots, and Radicals

Recursive Algorithms. Recurrences. Recursive Algorithms Analysis

Sequences, Sums, and Products

Introduction To Discrete Mathematics

Different kinds of Mathematical Induction

Week 5-6: The Binomial Coefficients

Name of the Student:

Northwest High School s Algebra 2/Honors Algebra 2 Summer Review Packet

2.4 - Sequences and Series

SEQUENCE AND SERIES NCERT

Symbolic computation 2: Linear recurrences

Generating Functions II

Tutorial F n F n 1

1/(1 -x n ) = \YJ k=0

GENERALIZATIONS OF ZECKENDORFS THEOREM. TilVIOTHY J. KELLER Student, Harvey Mudd College, Claremont, California

( ) GENERATING FUNCTIONS

Sequences, Mathematical Induction, and Recursion. CSE 2353 Discrete Computational Structures Spring 2018

Sequences A sequence of numbers is a function whose domain is the positive integers. We can see that the sequence

CSE 1400 Applied Discrete Mathematics Number Theory and Proofs

CS284A: Representations and Algorithms in Molecular Biology

CALCULATION OF FIBONACCI VECTORS

62. Power series Definition 16. (Power series) Given a sequence {c n }, the series. c n x n = c 0 + c 1 x + c 2 x 2 + c 3 x 3 +

1 Generating functions for balls in boxes

3sin A 1 2sin B. 3π x is a solution. 1. If A and B are acute positive angles satisfying the equation 3sin A 2sin B 1 and 3sin 2A 2sin 2B 0, then A 2B

CSE 191, Class Note 05: Counting Methods Computer Sci & Eng Dept SUNY Buffalo

Real Variables II Homework Set #5

PUTNAM TRAINING PROBABILITY

Discrete Mathematics I Tutorial 12

and each factor on the right is clearly greater than 1. which is a contradiction, so n must be prime.

Lecture 11 April 24. We first prove the case n = 1. Since

MATH 324 Summer 2006 Elementary Number Theory Solutions to Assignment 2 Due: Thursday July 27, 2006

CALCULUS BASIC SUMMER REVIEW

CSI 2101 Discrete Structures Winter Homework Assignment #4 (100 points, weight 5%) Due: Thursday, April 5, at 1:00pm (in lecture)

Test One (Answer Key)

Putnam Training Exercise Counting, Probability, Pigeonhole Principle (Answers)

ARITHMETIC PROGRESSION

XT - MATHS Grade 12. Date: 2010/06/29. Subject: Series and Sequences 1: Arithmetic Total Marks: 84 = 2 = 2 1. FALSE 10.

The Binomial Theorem

International Contest-Game MATH KANGAROO Canada, Grade 11 and 12

SEQUENCES AND SERIES

CHAPTER 10 INFINITE SEQUENCES AND SERIES

Bertrand s Postulate

6.003 Homework #3 Solutions

A sequence of numbers is a function whose domain is the positive integers. We can see that the sequence

Probability theory and mathematical statistics:

COS 341 Discrete Mathematics. Exponential Generating Functions

Apply change-of-basis formula to rewrite x as a linear combination of eigenvectors v j.

Pell and Lucas primes

Topic 1 2: Sequences and Series. A sequence is an ordered list of numbers, e.g. 1, 2, 4, 8, 16, or

Summer High School 2009 Aaron Bertram

07 - SEQUENCES AND SERIES Page 1 ( Answers at he end of all questions ) b, z = n

SECTION 1.5 : SUMMATION NOTATION + WORK WITH SEQUENCES

Castiel, Supernatural, Season 6, Episode 18

AN ALMOST LINEAR RECURRENCE. Donald E. Knuth Calif. Institute of Technology, Pasadena, Calif.

Substitute these values into the first equation to get ( z + 6) + ( z + 3) + z = 27. Then solve to get

(a) (b) All real numbers. (c) All real numbers. (d) None. to show the. (a) 3. (b) [ 7, 1) (c) ( 7, 1) (d) At x = 7. (a) (b)

Axioms of Measure Theory

Sets. Sets. Operations on Sets Laws of Algebra of Sets Cardinal Number of a Finite and Infinite Set. Representation of Sets Power Set Venn Diagram

Polynomials with Rational Roots that Differ by a Non-zero Constant. Generalities

The Random Walk For Dummies

Permutations, Combinations, and the Binomial Theorem

Combinatorially Thinking

Precalculus MATH Sections 3.1, 3.2, 3.3. Exponential, Logistic and Logarithmic Functions

DIGITAL SIGNAL PROCESSING LECTURE 3

1. By using truth tables prove that, for all statements P and Q, the statement

MATH 10550, EXAM 3 SOLUTIONS

MEI Casio Tasks for Further Pure

18th Bay Area Mathematical Olympiad. Problems and Solutions. February 23, 2016

REVIEW FOR CHAPTER 1

Homework 9. (n + 1)! = 1 1

-ORDER CONVERGENCE FOR FINDING SIMPLE ROOT OF A POLYNOMIAL EQUATION

A recurrence equation is just a recursive function definition. It defines a function at one input in terms of its value on smaller inputs.

Solutions to Problem Set 7

Worksheet on Generating Functions

Lemma Let f(x) K[x] be a separable polynomial of degree n. Then the Galois group is a subgroup of S n, the permutations of the roots.

Math 172 Spring 2010 Haiman Notes on ordinary generating functions

subcaptionfont+=small,labelformat=parens,labelsep=space,skip=6pt,list=0,hypcap=0 subcaption ALGEBRAIC COMBINATORICS LECTURE 8 TUESDAY, 2/16/2016

LINEAR RECURSION RELATIONS - LESSON FOUR SECOND-ORDER LINEAR RECURSION RELATIONS

3.1 & 3.2 SEQUENCES. Definition 3.1: A sequence is a function whose domain is the positive integers (=Z ++ )

PROBLEMS ON ABSTRACT ALGEBRA

Calculus Sequences and Series FAMAT State Convention For all questions, answer E. NOTA means none of the above answers are correct.

( a) ( ) 1 ( ) 2 ( ) ( ) 3 3 ( ) =!

September 2012 C1 Note. C1 Notes (Edexcel) Copyright - For AS, A2 notes and IGCSE / GCSE worksheets 1

Induction: Solutions

Transcription:

COS 341 Discrete Mathematics Epoetial Geeratig Fuctios ad Recurrece Relatios 1

Tetbook? 1 studets said they eeded the tetbook, but oly oe studet bought the tet from Triagle. If you do t have the book, please get it from Triagle. We will have to pay for the copies that are t take!

Deragemets (or Hatcheck lady revisited) d : umber of permutatios o objects without a fied poit D ( ) : epoetial geeratig fuctio for umber of deragemets A permutatio o [ ] ca be costructed by pickig a subset K of [ ], costructig a deragemet of K ad fiig the elemets of [ ]- K. Every permutatio of [] arises eactly oce this way. EGF for all permutatios! 1 = =! 1 = 0 EGF for permutatios with all elemets fied 1 1 = D ( ) e 1! = = = 0 e 3

Deragemets 1 = D ( ) e 1 1 D ( ) = e 1 = ( 1)! = 0 = 0 k d ( 1) = coefficiet of =! k = 0 k! k ( 1) d =! k! k= 0 Differet proof i Matousek 10., problem 17 4

Eample How may sequeces of letters ca be formed from A, B, ad C such that the umber of A's is odd ad the umber of B's is odd? EGF for A's EGF for B's EGF for C' s required EGF = e = = odd! e e = = =! e = 0 e = e e e e e e 3 + 4 5

Eample How may sequeces of letters ca be formed from A, B, ad C such that the umber of A's is odd ad the umber of B's is odd? required EGF = coefficiet of = required umber = e e e 3 + 4 1 3 ( 1) +! 4 3 + ( 1) 4 6

Recurrece relatios A recurrece relatio for the sequece {a } is a equatio that epressed a i terms of oe or more of the previous terms of the sequece, for all itegers 0 A sequece is called a solutio of a recurrece relatio if its terms satisfy the recurrece relatio. a = a a a a a 1 0 1 3 = 3, a = 5 = 5 3= = 5= 3 Iitial coditios 7

Reproducig rabbits Suppose a ewly-bor pair of rabbits, oe male, oe female, are placed o a islad. A pair of rabbits does ot breed util they are moths old. After they are two moths old, each pair of rabbits produces aother pair each moth. Suppose that our rabbits ever die ad that the female always produces oe ew pair (oe male, oe female) every moth from the secod moth o. The puzzle that Fiboacci posed was... How may rabbits will there be i oe year? 8

I the begiig 9

Eter recurrece relatios Let f be the umber of rabbits after moths. f = 1, f = 1 1 f = f + f 1 Number of pairs moths old Number of eistig pairs Fiboacci sequece 10

Towers of Haoi N disks are placed o first peg i order of size. The goal is to move the disks from the first peg to the secod peg Oly oe disk ca be moved at a time A larger disk caot be placed o top of a smaller disk 11

Towers of Haoi Let be the umber of moves required to H solve the problem with disks. H H 1 = 1 = + 1 H 1 1

Towers of Haoi solutio H = + 1 H 1 = ( H + 1) + 1= H + + 1 = ( H + 1) + + 1= H + + + 1 3 3 3 = H + + + + + 1 1 3 1 = + + + + + 1 3 1 = 1 13

The ed of the world? A aciet leged says that there is a tower i Haoi where the moks are trasferrig 64 gold disks from oe peg to aother accordig to the rules of the puzzle. The moks work day ad ight, takig 1 secod to trasfer each disk. The myth says that the world will ed whe they fiish the puzzle. How log will this take? 64 1= 18,446,744,073,709,551,615 It will take more tha 500 billio years to solve the puzzle! 14

More recurrece relatios How may bit strigs of legth do ot have cosecutive 0 s? Let a be the umber of such bit strigs of legth. Ed with 1: Ay bit strig of legth -1 with o two cosecutive 0 s 1 a 1 Ed with 0: Ay bit strig of legth - with o two cosecutive 0 s 1 0 a a = a + a 1 15

A familiar sequece? How may bit strigs of legth do ot have cosecutive 0 s? Let a be the umber of such bit strigs of legth. a = a + a 1 1 = = f 3 = 3 = f 4 a a a a 3 4 = 3+ = 5 = = 5+ 3= 8 = a = f + f 5 f 6 16

How may ways ca you multiply? I how may ways ca you parethesize the product of + umbers? 3 1 0 1 e.g. (( ) ), 0 1 3 ( ( ))), 0 1 3 ( ) ( ), 0 1 3 (( ) ), 0 1 3 ( ( )). 0 1 3 Let be the umber of ways of parethesizig C a product of + 1 umbers. C = 5 17

How may ways ca you multiply? Let C be the umber of ways of parethesizig the product 0 1 ( ) ( ) k 0 1 k k+ 1 C 1 C = C C C k 1 k k 1 k= 0 th Catala umber C = 1, C = 1 0 1 18

Solvig recurrece relatios A liear homogeeous recurrece relatio of degree k with costat coefficiets is a recurrece relatio of the form a = c a + c a + + c a 1 1 k k where c, c are real umbers ad c 0 1 k k a 5 1 a a = a + a a = = a 1 19

Solvig recurrece relatios a = c a + c a + + c a 1 1 k k Try a = r r = c r + c r + + c r 1 k 1 k r c r c r c r = 1 k 1 k r c r c r c r c = k k 1 k k 1 1 k 1 0 k 0 Characteristic equatio 0

Solvig recurrece relatios 1 r c1r c a = c a + c a 1 1 Let r, r be the roots of the characteristic equatio = 0 The the solutio to the recurrece relatio is of the form a = α r +α r 1 1 1

1 1 ( ) Solvig recurrece relatios f = f + f 1 Let r, r be the roots of the characteristic equatio r r r 1= 0 = 1+ 5 / r ( 1 5) = / The the solutio to the recurrece relatio is of the form f 1+ 5 1 5 = α +α 1

Solvig recurrece relatios f = f + f 1 f 1 1+ 5 1 1 5 = 5 5 3