Let \( L \) = number of leaves, and \( I \) = number of internal nodes.
W.K.T. in a tree:
- The number of edges is \( n-1 \). ⇒ Total edges = \( 3 * I \)
- Each internal node has 3 children, so contributes 3 edges.
We have:
\[
n = L + I
\]
Also,
\[
3I = n-1 \quad \Rightarrow \quad I = \frac{n-1}{3}
\]
Substituting:
\[
L = n - I = n - \frac{n-1}{3}
\]
\[
= \frac{3n - (n-1)}{3}
\]
\[
= \frac{2n+1}{3}
\]
Thus, the number of leaf nodes is:
\[
\boxed{\frac{2n+1}{3}}
\]