Generating Functions
In probability theory, statistics and the theory of Markov chains, the clothesline at hand is woven of the analytic yarn, the Maclauren series strain. It's almost tangible and can be checked point by point wherever the series converges. In combinatorics, the rather delicate threads come from the abstract variety of formal series. By definition, the (ordinary) generating function of the sequence {an}, where, by convention, the index n ranges from 0 to
Two such series are equal iff they have exactly same sequence of coefficients. [xn]f(x) is the usual notation for the coefficient an in f. Thus, two series f and g are equal iff The series is formal in that it is defined as an algebraic, not an analytic concept. Formally speaking, we append to the set of numbers (mostly real numbers on these pages) a new term x, whose nature is quite irrelevant for the construction. The new term and the numbers can be added and multiplied, and both operations are postulated to be commutative:
so that we can state that
Mulitplicative Inverse PropertyThe series (*) has a multiplicative inverse iff a0 ProofLet's simply show how to constructively find the inverse f -1 in the form
Such an inverse should satisfy
From the first equation, b0 = 1/a0. From the second equation, In analytic terms, x is a variable with the range over the numbers, real or complex, and the identity holds whenever the series on the right is convergent, i.e., whenever As another example, the binomial theorem
says that the expression (1 + x)n is the generating function of the sequence of the binomial coefficients
What it takes is to equate [xk](1 + x)n with
The representation of the function (1 + x)n as a product of monomials
with n factors, gives an immediate interpretation of the coefficients The binomial theorem makes frequent appearances not only in combinatorics but also in other branches of mathematics, see, for example, a proof of Lucas' Theorem. What is the generating function of the series 1, -1, 1, -1, ... ? Obviously, it's
Then
such that the generating function of the series 1, 0, 1, 0, ... is given by
Note that (3) might have been obtained from (1) with the substitution of x2 for x. Perversely, it can be shown that the substitution, although deemed illegal at the outset, leads to correct identities as long as the result includes either finite or formal quantities. With a substitution, we for example get without much ado
so that 1/(1 - cx) is the generating function of the series It's possible to go a step further and ask, What is the generating function of the sequence 1,
And further,
On the other hand, in (5), we may expand the terms (1 + x)i according to the binomial theorem
from where [xk]1/(1 - (1 + x)y) can also be found to be
We thus obtain another useful formula:
which of course could be rewritten in terms of x:
Consider now the recurrence relation:
It's obvious that sn is the sum of the first n natural numbers:
As is well known, the sum is a triangular number, sn = n(n + 1)/2. There is a very simple proof that was discovered by young Gauss to the astonishment of his teacher. Presently, I'll establish the formula with the help of generating functions. First let's find the generating function of {sn},
Multiply (7) by xn-1 and sum up:
or
If we introduce g(x) = ∑nnxn-1 and assume that taking derivative is a legitimate operation (which it is) in the ring of formal series, we may proceed as follows
In combination with (8), this gives
Now, letting k = 2 in (6)
which in part means that References
Generating Functions
|Contact| |Front page| |Contents| |Geometry| |Store| Copyright © 1996-2010 Alexander Bogomolny |
| 37225096 |

