Root the tree at any vertex and order vertices so every parent precedes its children. The root has colour choices. Each of the other vertices has exactly one earlier adjacent vertex, its parent, and therefore exactly choices. There are no other restrictions because a tree has no cycles and no extra edges between those branches. Multiplication yields
The formula also includes the one-vertex tree.
In the complete graph every pair of vertices is adjacent, so all colours assigned to vertices must be distinct. Choose colours successively, leaving one fewer choice at each step. Thus
For nonnegative integer the product is zero, as required.

Articles by others on the same topic (0)

There are currently no matching articles.