Given a fixed positive integer $k$. Show that there are only finitely many trees containing $k$ leaves and zero vertices of degree $2$.
I tried to use the theorem related to rooted trees and tried to prove it by contradiction, but could not quite use the condition of having zero vertices of degree $2$.
Is it even related to rooted trees theorem or can it be proved by contradiction? Can we use the fact that a tree with $m$ edges has $m+1$ vertices?
Consider an arbitrary tree with $k$ leaves and no vertices of degree $2$. Let $\epsilon$ represent the number of edges and $\nu_j$ represent the number of vertices with a degree of $j$ (so that $\nu_1=k$ and $\nu_2=0$). We know that $\sum_{j=1}^\infty j\nu_j=2\epsilon$ (since that's true for all graphs) and $\sum_{j=1}^\infty \nu_j=\epsilon+1$ (since it's a tree). So we can combine the equations as follows (where the index of the summations have been taken out).
$$\sum j\nu_j=2\big(\sum\nu_j-1\big)=2\sum \nu_j-2\\ 2\sum\nu_j-\sum j\nu_j=2\\\sum(2-j)\nu_j=2$$
The RHS is positive, so the LHS must be as well. The first few terms of the LHS is $\nu_1+0\nu_2-\nu_3-2\nu_4-\ldots.$ This could not be positive if $\nu_3+\nu_4+\nu_5+\ldots>\nu_1$. Since we know that $\nu_2=0$, we can conclude that a tree with $k$ leaves and no vertices of degree $2$ cannot have more than $2k$ vertices. Since the number of trees with fewer than $2k$ vertices is finite, we are done.