Suppose a given tree $T$ has $n_1$ nodes that have $1$ child, $n_2$ nodes that have $2$ children, . . . , $n_m$ nodes that have $m$ children and no node has more than $m$ children, how many nodes have NO child are there in $T$?
I have no clue of how to solve it. Please help. Is there anyway i can know total number of nodes here?
HINT: The information given in the problem allows you to calculate the number of edges in $T$ in terms of the numbers $n_1,n_2,\ldots,n_m$. Since $T$ is a tree, the number of edges tells you the number of vertices. You know (in terms of $n_1,n_2,\ldots,n_m$) how many of those vertices have children, so you can calculate the number that have no children.