Cayley's formula for labeled trees
Statement
For any integer , the number of trees on labeled vertices is (with for ).
Why is it true?
Every labeled tree on vertices can be encoded uniquely as a sequence of vertex labels (its Prüfer code) by repeatedly plucking the smallest-numbered leaf and recording its neighbor; conversely, any such sequence of length from decodes to a unique tree, so there are of them.
Proof sketch
Construct Prüfer's bijection between labeled trees on and sequences in : at each of steps, delete the leaf with the smallest label and append its unique neighbor's label to the sequence, leaving a single edge at the end. Observe that a vertex appears in the Prüfer sequence exactly times, so the leaves of the original tree are the labels absent from the sequence, which makes each step uniquely reversible and establishes the bijection.
Topics that use this theorem
Related theorems
Step-by-step proofs
No step-by-step proof yet for this theorem.
References
- Arthur Cayley (1889). A theorem on trees