From what I read, the number of binary trees can be counted with respect to their internal nodes using the Catalan numbers:
$$ T(z) = \frac{1-\sqrt{1-4z}}{2z} $$
Taking the Taylor series of $T(z)$ at $z=0$, we get the series:
$$ 1 + z + 2z^2 + 5z^3 + 14z^4+.... $$
If we let $a_n$ denote the coefficients of the series, we have one binary tree with no internal node ($a_0=1$ at $z^0$), one binary tree with one internal node ($a_1=1$ at $z^1$) and two binary trees with two internal nodes ($a_2=2$ at $z^2$) and five binary trees with three internal nodes ($a_3=5$ at $z^3$) and so on and so forth ...
I came across this problem that asks how many binary trees have "superleaves". I will state the definition of "superleaf" below as best as I can. The definition may be a bit confusing since a "superleaf" is not really a leaf, but a subtree of a binary tree.
A superleaf is a subtree in a binary tree. The superleaf subtree has three internal nodes and four external nodes.
The root of the superleaf subtree is an internal node whose immediate children are two internal nodes. The two child internal nodes in turn are connected to the four external nodes (where the external nodes are leaves of the binary tree and are not connected with any node below them).
Counting binary trees in terms of their internal nodes, the number of superleaves is:
$$ a_0 = 0 \text{ for $z_0$, i.e. no binary tree with superleaf for binary trees with $0$ internal nodes} $$ $$ a_1 = 0 \text{ for $z_1$, i.e. no binary tree with superleaf for binary trees with $1$ internal nodes} $$ $$ a_2 = 0 \text{ for $z_2$, i.e. no binary tree with superleaf for binary trees with $2$ internal nodes} $$ $$ a_3 = 1 \text{ for $z_3$, i.e. $1$ binary tree with superleaf for binary trees with $3$ internal nodes} $$ $$ a_4 = 2 \text{ for $z_4$, i.e. $2$ binary trees with superleaves for binary trees with $4$ internal nodes} $$ $$ a_5 = 6 \text{ for $z_5$, i.e. $6$ binary trees with superleaves for binary trees with $5$ internal nodes} $$
But I could not find out a generating function for binary trees with superleaves... Any help?