Let $T$ be a tree with $n_1$ vertices of degree 1 and $n_2$ other vertices. Prove that the sum of the vertex degrees for the vertices of degree greater than 1 is $$n_1+2(n_2−1).$$
I'm pretty new to graph theory and am very stuck on where to even start with this question.
Any insight and help would be greatly appreciated.
Hint:
The sum of the vertex degrees for ANY tree on $n$ vertices is always the same. Do you know what it is?
If so, you can write $n=n_1+n_2$, plug it into the expression for the total vertex degree, and rearrange the equation to get what you need.
If you don't know the result for vertex degrees: do you know that the number of edges in a tree on $n$ vertices is always the same? If you do, then you just need to realize that each edge contributes exactly two to the total vertex degree -- one for each vertex it connects to.
Update You know that the total degree of the graph is $2(n-1)$. Therefore, we can write $$ \begin{align*} 2(n-1)&=\sum_{v\in V}\deg(v)\\ &=\sum_{v\in V_1}\deg(v)+\sum_{v\in V_2}\deg(v), \end{align*} $$ where $V_1$ is the set of vertices of degree $1$, and $V_2$ is the set of vertices of degree $2$ or more.
Now, we know that $$ \sum_{v\in V_1}\deg(v)=n_1, $$ since there are $n_1$ such vertices and each has degree $1$. So, this tells us that $$ \sum_{v\in V_2}\deg(v)=2(n-1)-n_1. $$ But, we also know that $n_1+n_2=n$. Can you see how to use this to finish up?