CHAPTER 2

Recurrence and Generating Functions

Standard references on the theory and application of generating functions are [Riordan 1968 and 1980].

2.1 RECURSIONS

A recursion for a sequence a0, a1, … is a rule for computing an in terms of quantities depend on n and perhaps some of the previous terms a0, a1, … , an−1.

Examples 2.1.

a) The factorial n! of the integer n may be defined recursively by

c02ue001

b) The harmonic numbers {Hn : 1 ≤ n < ∞} may be defined recursively by

c02ue002

c) The Fibonacci sequence1 {Fn : 0 ≤ n < ∞} may be defined recursively by

c02ue003

d) The Catalan numbers2 {Cn : 0 ≤ n < ∞} may be defined by the recursion

c02ue004

2.2 GENERATING FUNCTIONS

The generating function A(z) of the sequence a0, a1, … is the power series

(2.1a) c02e001a

Whenever we write an infinite series, there is the question of convergence. The series in equation (2.1a) converges provided the radius of convergence c02ue005. In this ...

Get Hashing in Computer Science: Fifty Years of Slicing and Dicing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.