Given a tree-structure with a root node, the node can either get zero, one or two children, all with the same probability of 1/3. The children also has the same probability of getting zero, one or two children, which is 1/3. Recursively the algorithm creates the tree. What is the probability that the tree has more than N nodes in total?
Came across this question after programming a random tree generator and got really curious, would be cool if someone knew the answer.
Interesting question! Not a full answer, but an interesting problem representation that could lead to solutions. Too long for a comment.
For this analysis the only thing that's really relevant is the number of 'live' ends where the tree can grow. We start with $1$ live end. At each step a live end is explored, replacing it with 0, 1, or 2 new live ends. View each number of live ends as a state $k$, at each step we have the chance of going to a state with $k-1, k$ or $k+1$ live ends. If we hit state $0$ we are stuck there.
Let's represent our possibilities as a polynomial $f_n(x)$, where $n$ is the number of steps, and the coefficient of $x^k$ tells us the probability of being in state $k$ after $n$ steps. Initially we have $f_0(x) = x$, we have a 100% chance of having $1$ live end. Note that $f_n(0)$ is neatly the probability of hitting state $0$ after $n$ steps.
Now the beauty of this representation is that $f_{n+1}(x) = \frac{1}{3}(x^{-1} + 1 + x) \cdot (f_{n}(x) - f_{n}(0)) + f_{n}(0)$, cancelling fractions such as $x^2 \cdot x^{-1} = x$ (so that we do not divide by zero later).
Since $f_n(0)$ is exactly the chance that after $n$ steps our tree is no longer growing, if we want to know the probability of our tree having at least $n$ nodes we simply look at $1 - f_{n-1}(0)$.
Let's be crazy, and instead of looking directly at the value of $f_n(0)$, let's look at the limit instead. We also reorder terms a bit:
$$\lim_{x\to 0}\quad f_{n+1}(x) = \frac{1}{3}(1 + x + x^2) \frac{f_{n}(x) - f_{n}(0)}{x} +f_{n}(0)$$
Doesn't that remind you of something?
$$\lim_{x\to 0}\quad f_{n+1}(x) = \frac{1}{3}(1 + x + x^2) f'_n(x) +f_{n}(0)$$ $$f_{n+1}(0) = \frac{1}{3} f'_n(0) +f_{n}(0)$$
This looked really exciting until I realized that $f'_n(0)$ is simply the coefficient of state $1$.