Let $T_{n}$ be a set of all binary trees with $n$ leaves.
Show that: $$|T_1|=1,|T_2|=1,|T_3|=2,|T_4|=5$$
My attempt:
I was trying to find how many options of leaves we should add to the previous tree when the tree belongs to $T_{n-1}$, and then subtract the common options after the addition of the leaf. For example, for $T_4$ we have the following trees of $T_3$:
C C
/ \ / \
C L L C
/ \ / \
L L , L L
we have 3 options to add another leaf for each tree, however, we have to remove the common tree when:
C
/ \
C C
/ \ / \
L L L L
and we got $6-1=5$ options of trees for $T_4$.
Now, I don't know how to formal this and create a regression formula based on the process which I have used.
There is only one tree which has exactly one leaf - the tree which doesn't branch. Thus, $|T_1| = 1$.
Now consider $T_n$ for $n > 1$. A tree with $n$ leaves can only be made by combining a tree with $k$ leaves with a tree with $n - k$ leaves, where $1 \leq k < n$. That is, $T_n \approx \coprod\limits_{k = 1}^{n - 1} T_k \times T_{n - k}$. So we have $|T_n| = \sum\limits_{k = 1}^{n - 1} |T_k| \times |T_{n - k}|$.
This gives us $|T_2| = |T_1| |T_1| = 1$, $|T_3| = |T_1| |T_2| + |T_2| |T_1| = 2$, and $|T_4| = |T_1| |T_3| + |T_2| |T_2| + |T_3| |T_1| = 5$.