With induction on the number of nodes with two children:
Base - 0 nodes with 2 children - 1 leaf (provided that the root is not considered one). Step. Let T be a tree with n + 1> 0 nodes with 2 children.
=> there is node a with 2 children a1, a2 and in the subtree, the root in a1 or a2, there are no nodes with 2 children. we can consider its subtree root in a1.
=> delete the subtree embedded in a1, we got a tree T 'with n nodes with 2 children.
=> T 'has n + 1 leaf.
=> add a subtree, root in a1 in T '- we added one leaf and one node with two children.
There are a few holes you need to make, but they work. Sorry for my bad english.
source share