Example (Catalan number)
Denote $P_n$ the set of integer-valued paths $(x_0,x_1,\ldots,x_{2n})$ such that
-
$x_0=x_{2n}=0$;
-
$|x_i - x_{i-1}| = 1$ for all $i\geq 1$;
-
$x_i\geq 0$ for all $i$.
Let $C_n = |P_n|$.
Observe that we can split the path into two parts: before and after first reaching 0. More specifically, set $$ k = \min\sb{m\geq 1}{x_{2m}=0}. $$ Then $$\begin{align*} (x_1-1,x_2-1,\ldots,2_{2k-1}-1)&\in P_{k-1}, \\ (x_{2k},x_{2k+1},\ldots,x_{2n})&\in P_{n-k}, \end{align*}$$ and we get all pairs of path in $P_{k-1}\times P_{n-k}$ in this way. Hence $$ C_n = \fsum k1n C_{k-1}C_{n-k}. $$
To find a closed form for $C_n$, consider the generating function $$ c(t) = \fsum n0\infty C_n t^n. $$ To do anything useful with this, we need to make sure the radius convergence is non-zero. Since $C_n \leq 2^{2n}$ which is the number of $2n$ binary choices, $c(t)$ converges for $t<1/4$, so $R\geq 1/4$.
Applying the recurrence relation, $$ \begin{align*} c(t) &= 1+\fsum n1\infty \fsum k1n C_{k-1}C_{n-k} t^n \\ &= 1+\fsum k1\infty t\cdot C_{k-1}t^{k-1}\fsum nk\infty C_{n-k}t^{n-k} \\ &= 1+t\left(\fsum k0\infty C_kt^k\right)\left(\fsum n0\infty C_n t^n\right) \\ &= 1+tc(t)^2 \end{align*} $$ so by quadratic formula, $$ c(t) = \frac{1\pm\sqrt{1-4t}}{2t}. $$
Since $c(t)$ is continuous on $[0,1/4)$, the choice of $\pm$ cannot change, and $c(0)$ would diverge if $+$ was chosen, so $$ \fsum n0\infty C_n t^n = c(t) = \frac{1-\sqrt{1-4t}}{2t}. $$
Hence $$\begin{align*} C_n &= -\frac12 \pmat{1/2 \\ n+1} (-4)^{n+1} \\ &= (-1)^n \frac12 \frac{1}{(n+1)!}\frac12\Big(-\frac12\Big)\Big(-\frac32\Big)\ldots\Big(-\frac{2n-1}{2}\Big)4^{n+1} \\ &= \frac{1\cdot3\cdot5\cdot\ldots\cdot(2n-1)}{(n+1)!} (2^n) \\ &= \frac{(2n)!}{2^n\,n!\,(n+1)!}(2^n) \\ &= \frac1{n+1}\pmat{2n\\n}. \end{align*}$$