maths.freeCombinatorics & Graph Theory › 8. Generating Functions › Basic Notation and Terminology

Basic Notation and Terminology

With a sequence \sigma=\{a_n:n\ge0\} of real numbers, we associate a function F(x) defined by \[\begin{aligned}\end{aligned}\] The word function is put in quotes as we do not necessarily care about substituting a value…

Basic Notation and Terminology

With a sequence \(\sigma=\{a_n:n\ge0\}\) of real numbers, we associate a function \(F(x)\) defined by \[\begin{aligned}\end{aligned}\] The word function is put in quotes as we do not necessarily care about substituting a value of \(x\) and obtaining a specific value for \(F(x)\). In other words, we consider \(F(x)\) as a formal power series and frequently ignore issues of convergence.

It is customary to refer to \(F(x)\) as the generating function of the sequence \(\sigma\). As we have already remarked, we are not necessarily interested in calculating \(F(x)\) for specific values of \(x\). However, by convention, we take \(F(0)=a_0\).

Example

Consider the constant sequence \(\sigma=\{a_n:n\ge0\}\) with \(a_n=1\) for every \(n\ge0\). Then the generating function \(F(x)\) of \(\sigma\) is given by \[\begin{aligned}\end{aligned}\], which is called the infinite geometric series.

You may remember that this last expression is the Maclaurin series for the function \(F(x)=1/(1-x)\) and that the series converges when \(|x|\lt 1\). Since we want to think in terms of formal power series, let's see that we can justify the expression \[\begin{aligned}\end{aligned}\] without any calculus techniques. Consider the product \[\begin{aligned}\end{aligned}\] and notice that, since we multiply formal power series just like we multiply polynomials (power series are pretty much polynomials that go on forever), we have that this product is \[\begin{aligned}\end{aligned}\] Now we have that \[\begin{aligned}\end{aligned}\] or, more usefully, after dividing through by \(1-x\), \[\begin{aligned}\end{aligned}\]

The method of can be adapted to address the finite geometric series \(\sum_{j=0}^n x^j\). In that case, we look at \[\begin{aligned}(1-x) \sum_{j=0}^nx^j \amp= \sum_{j=0}^n x^j - \sum_{j=0}^n x^{j+1} \\ \amp= (1+x+\cdots + x^n) - (x+x^2+\cdots x^n + x^{n+1})\end{aligned}\]. Looking carefully, we see that everything cancels in the final expression except \(1-x^{n+1}\). Dividing both sides by \(1-x\) gives us \[\begin{aligned}\end{aligned}\] as the formula for the sum of a finite geometric series.

For reference, we state the following elementary result, which emphasizes the form of a product of two power series.

Condensed — the full section is in Keller & Trotter, Applied Combinatorics.

Symbols used here

\sum_{k=1}^{n} a_k
summation
Add a_k for k = 1 up to n.
\infty
infinity
Not a number: "grows without bound" in limits and intervals.
\sigma,\ s,\ \sigma^2
standard deviation, sample s.d., variance
Typical distance from the mean; its square.
\leq,\ \geq
less/greater than or equal
Inequalities that allow equality; < and > exclude it.
\sup,\ \inf
supremum, infimum
Least upper bound, greatest lower bound.
n!
factorial
n × (n−1) × … × 1; the number of orderings of n things. 0! = 1.
\binom{n}{k}
binomial coefficient, "n choose k"
Number of k-element subsets of n things: n!/(k!(n−k)!).
\prod_{k=1}^{n} a_k
product
Multiply a_k for k = 1 up to n.
\emptyset,\ |A|
empty set, cardinality
The set with no elements; the number of elements of A.

Questions people ask

Permutation or combination?

Ask whether order matters. A lock code is a permutation (order matters); a hand of cards is a combination (it does not).

What is a graph in this sense?

Dots (vertices) joined by lines (edges) — not a plot. Road maps, social networks and molecules are graphs; questions like "is there a route" and "how few colours" are graph theory.

ลองดูสิ

Parts of this page are adapted from Keller & Trotter, Applied Combinatorics (CC BY-SA 4.0). Condensed and re-explained here; errors are ours.

เพิ่มเติมใน Combinatorics & Graph Theory