Trees & Connectivity

Answer & solution
Answer: The formula as printed is false; with +3 (2n+1 leaves) it holds (no official key was published)
1. Base n=1: a root with three children has three leaves, equal to 2(1−1)+3.
2. For any full ternary tree with n+1 internal nodes, choose a deepest internal node. Its three children are leaves. Prune those three children, making their parent a leaf.
3. The smaller tree has n internal nodes and, by induction, 2n+1 leaves. Restoring the three children replaces one leaf by three, increasing the leaf count by two. Thus the original has 2n+3=2((n+1)−1)+3 leaves.
4. The single-node tree n=0 also satisfies 2n+1=1 if that case is included.
- Both say interval nodes, understood as internal nodes from the definition.