§ Finite differences and Umbral calculus
Umbral calculus lays out a large collection of "umbral" / "shadowy"
coincidences across combinatorics and calculus. Here, I'll lay out some of
these that I learnt from Concrete Mathematics .
I hope to use this for myself to motivate a bunch of combinatorics. I'll
provide an interesting proof of why ∑1≤k<nk2=k(k−1)/2
using this umbral calculus.
§ Discrete Derivative: Forward difference
We begin by trying to build a discrete version of the derivative operator. The
derivative of f
will be denoted using f'
. The forward difference
of f:R→R is defined as:
δf:R→R;(δf)(x)=f(x+1)−f(x)
Immediately, we can see that this operator is linear:
δ(f+g)=(f(x+1)−f(x))+(g(x+1)−g(x))=(δf)+(δg)δ(αf)(x)=α⋅(f(x+1)−f(x))=α(δf)=(f+g)(x+1)−(f+g)(x)=(αf)(x+1)−(αf)(x)
it obeys a slightly corrupted version of the chain rule, (fg)′=f′g+g′f:
δ(fg)=(fg)(x+1)−(fg)(x)=f(x+1)g(x+1)−f(x)g(x)+0=f(x+1)g(x+1)−f(x)g(x)+[f(x)g(x+1)−f(x)g(x+1)]=g(x+1)[f(x+1)−f(x)]+f(x)[g(x+1)−g(x)]=g(x+1)(δf)(x)+f(x)(δg)(x)=(Sδf)(x)+(fδg)(x)[(Sh)(x)≡h(x+1)]=(Sδf+fδg)(x)
We need this new S operator to shift the function's input from x to x+1.
§ Falling factorial as polynomials
cool, now that we seem to have a linear derivative operator that behaves
roughly sanely, let's test it out! The first reasonable target is a polynomial,
so let's try x2:
δ(x2)=(x+1)2−x2=2x+1
This is disappointing, it does not behave very well :(
However, there is
an analogue that does well. This is the falling factorial , defined as:
x(n)≡x(x−1)(x−2)⋯(x−n+1)
For example:
x(0)=1x(1)=xx(2)=x(x−1)x(3)=x(x−1)(x−2)
Let's try and apply our discrete difference δ:
δ(x(2))=(x+1)(x−1+1)−x(x−1)=(x+1)(x)−x(x−1)=x∗2=2x(1)δ(x(3))=(x+1)(x−1+1)(x−2+1)−x(x−1)(x−2)=(x+1)(x)(x−1)−x(x−1)(x−2)=x(x−1)((x+1)−(x−2))=3x(x−1)=3x(2)
These falling factorials look pretty unnatural though, why do we care?
Well, once we build some integral calculus, we can handle our problem
of ∑1≤i<ki2 using this calculus, by rewriting i2
in terms of these falling factorials.
§ Sums as discrete integrals
We want to think of ∑0≤i<nf(i) as the correct variant of
∫0nf(i)di. The most important property of an integral is
the fundamental theorem of calculus:
∫abf′(i)di=f(b)−f(a)↦a≤i<b∑(δf)(i)=?=f(b)−f(a)
we can check if the assertion is true:
a≤i<b∑(δf)(i)=[f(a+1)−f(a)]+[f(a+2)−f(a+1)]+[f(a+3)−f(a+2)]+⋯+[f(b)−f(b−1)]=f(b)−f(a)(The sum telescopes)
Sweet, so we just kicked a theory of calculus of the ground. Let's put
this to some use:
§ Gauss' famous formula from discrete calculus
Let's begin by deriving the closed form for [1⋅(k−1)] naturals:
0≤i<n∑i=0≤i<n∑i(1)=i(2)/2∣∣∣0n=n(n−1)/2
Let's now derive the closed form form the sum of squares of [1⋅(k−1)]:
0≤i<n∑i2=0≤i<n∑i∗(i−1)+i=0≤i<n∑i(2)+i(1)=n(3)/2+n(2)/2=n(n−1)(n−2)/3+n(n−1)/2=n(n−1)(n/3−2/3+1/2)=n(n−1)(2n−1)/6
Trying to perform this process in general does beg a question: how do we
convert from xn into some combination of rising and falling factorials?
It turns out that Stirling Numbers will show up to aid this conversion.
But before that, let's see some more connections.
§ 2x as the combinatorial version of ex
We want to find the analogue of the exponential function ex, which
satisfies the equation f′(x)=f(x). Setting this up in the discrete case:
d′f(x)=f(x)∣f(0)=1f(x+1)−f(x)=f(x)∣f(0)=1f(x+1)=2f(x)∣f(0)=1f(n)=2n
What does this buy us? It gives us a nice proof that ∑knCk=2n.
It proceeds by taking the taylor of ex, "combinatorializing it", and then
simplifying:
ex=n=0∑∞n!xn2x=n=0∑∞n!x(n)=n=0∑∞n!x∗(x−1)∗(x−2)∗⋯(x−n+1)=n=0∑∞n!x∗(x−1)∗(x−2)∗⋯(x−n+1)
§ Harmonic series as the combinatorial version of logarithm
In the continuous case, we have that ∫1/x=logx. In the
discrete case, we get ∑i=1n1/x≡Hn, the sum of the
first n harmonic numbers. This explains why the harmonic numbers
keep showing up in different places across discrete math --- We're often
trying to integrate some kind of 1/x quantity.
This also may tell us that Hn and 2n are somewhat "weak inverses" of each other.
I haven't thought about this weak inverse thing too much.
§ Stirling numbers of the first kind for convering between polynomials and falling factorials
We can express x(n)=∑k=0n[n,k]xk where [n,k]
are the (yet to be defined) unsigned stirling numbers of the first kind.
(aside: I wonder if this can be derived from some kind of mobius inversion).
We begin my in fact defining the stirling numbers of the first kind, [n,k]
as the coefficients of the rising factorial:
x(n)=x(x+1)(x+2)…(x+n−1)=i=0∑n[n,i]xi
The question as a combinatorialist is:
what do the unsigned striling numbers of the first kind, [n,i], count?
The answer is:
[n,i] counts the number of permutations of n elements with i disjoint cycles.
There is a more evocative definition, which goes like this:
[n,i] counts the number of ways to seat n people at i circular tables, such that no table is left empty.
For example, in the case of the permutations of the set {1,2,3},
we have the permutations:
(1)(2)(3)3 cycles(12)(3)2 cycles(1)(23)2 cycles(2)(13)2 cycles(132)1 cycle(123)1 cycle
So, this gives the counts:
- [3,1]=2
- [3,2]=3
- [3,3]=1
From the seating people perspective, here's how this goes:
- [3,1] is the number of ways to seat 3 people at 1 table. The first person sits at the table in only one way . The second person can sit to the left or to the right of the first person, but this is symmetric: they too have only one way . Now the third person can sit to the left of the first person or to the left of the second person. So there are two ways . In total, there are only two ways. Key idea: On a circular table, it only matters who is to your left, since there is no difference between left and right. The second person has two choices: they
- [3,3] is the number of ways to seat 3 people at 3 tables so that no table is empty. We are forced to place one person per table.
- [3,2] is the number of ways to seat 3 people at 2 tables so that no table is empty. So we will need to have two people on the first table, and then the final personal on the second table. Once we pick which two people sit together in the first table, we are done, because for upto two people, it doesn't matter how they sit at a table, the situation is symmetric.
These stirling numbers satisfy a recurrence:
[n+1,k]=n[n,k]+[n,k−1]
This can be seen combinatorially. If we want the number permutations of n+1 objects
with k cycles, we can either:
- Take the permutations of n objects with k−1 cycles, [n,k−1], and then insert the new (n+1)th object into a new cycle all by itself. That is, we create a new permutation where p(n+1)=(n+1).
- Take the permutation of n objects with k cycles, and insert this new (n+1)th object into any of the k cycles. If the original permutation had
x -p-> y
, we can insert this new object as x -p-> * -p->y
for any x
. Thus, there are n choices of locations to inser *
--- as the image of all possible x
s. This gives us the n[n,k] term.
Another cute fact of the unsigned stirling numbers of the first kind [n,k]
is that since permutations are partitioned by their number of cycles, we have:
k=1∑n[n,k]=n!
§ References