Number of caterpillars
Problem You are given degree sequence $A$, determine the number of possible caterpillars. We say that the graphs are different if they are not isomorphic. Solution Let us prove first prove the following fact: the degree sequence $A = (a_1,\ldots, a_n)$ can form a tree if and only if the sum of degree sequence is equal to $2\cdot (n - 1)$ and that $\forall i\, a_i > 0$. The only if direction is true by the definition of tree....