I tried summing all of the cases (I found 4), but somehow i'm getting the wrong answer.
For ex. the number of trees on 7 vertices such that the following sequence is the sequence of their degrees:
My solution (wrong) using Cayley's formula:
The only possible degree sequences are:
$(2,1,1,2,2,2,2) = \binom{5}{1}*\binom{6}{4}$
$(2,3,2,2,1,1,1) = \binom{5}{2}*6\binom{5}{2}$
$(2,3,3,1,1,1,1) = \binom{5}{2,2}*\binom{6}{2}$
$(2,4,2,1,1,1,1) = \binom{5}{3}*6*4$
What am I missing here?



Since all degrees $\le 2$, the tree is actually a path. The two vertices of degree $1$ have to go on the ends: wlog $2$ on the left and $3$ on the right, and the other five can be in any order. So $5! = 120$ such trees.