Cayley's formula via generating functions!?
by math_explorer, Nov 10, 2015, 1:35 AM
Cayley's formula for the number of trees is probably my favorite elementary theorem. I got an additional reason around a week ago. As far as I know, generating function solutions are not usually known for elegance, but I thought this was pretty mindblowing.
Theorem. Let
be the polynomial in
variables such that the coefficient of
in
is equal to the number of rooted trees on vertices labeled
where the vertex labeled
has
children. Then
.
Proof. We use induction. When
we have
and there is indeed exactly one rooted tree on one vertex labeled
where it has zero children.
When
, let's consider the rooted trees where
is a leaf. These have a one-to-one correspondence with pairs of rooted trees on
labeled vertices and a specified vertex, since you just attach
as a child to the specified vertex. Therefore, if
, the coefficient of
in the polynomial
is equal to the number of rooted trees on vertices labeled
where the vertex labeled
has
children (by the induction hypothesis).
You might think we now have to count or classify rooted trees where
isn't a leaf... but nope:
Therefore,
and
are the same polynomial! This is because if they had different coefficients for some term
, then
so some
. Then by symmetry, they would still have different coefficients for some other term
, where
and
are identical except for
and
being swapped. But from our observations above, since
, the coefficients of these terms are the same, contradiction. So
.
Corollary 1. There are
rooted trees on
labeled vertices.
Proof. The sum of the coefficients of
is computed by
.
Corollary 2. There are
unrooted trees on
labeled vertices.
Proof. Rooted trees are just unrooted trees with one of
vertices specified.
Theorem. Let








Proof. We use induction. When



When










You might think we now have to count or classify rooted trees where

- In polynomial form, our results above state that, when
, the coefficients of
in
and in
agree.
- By inspection, when
, the coefficients of
in
and in
agree.
and
are both homogeneous symmetric polynomials with degree
in the
variables
.
Therefore,












Corollary 1. There are


Proof. The sum of the coefficients of


Corollary 2. There are


Proof. Rooted trees are just unrooted trees with one of

This post has been edited 1 time. Last edited by math_explorer, Dec 10, 2015, 2:40 PM