Composita of Generating Functions
1. Definition of the Composita
The composita of a generating function \(F(x) = \sum_{n>0} f(n) x^n\) (with \(f(0) = 0\)) is the function of two variables \[ F^{\Delta}(n, k) = \sum_{\pi_k \in C_n} f(\lambda_1) f(\lambda_2) \cdots f(\lambda_k), \] where \(C_n\) is the set of all compositions of the integer \(n\), and \(\pi_k = (\lambda_1, \ldots, \lambda_k)\) is a composition of \(n\) into \(k\) parts with \(\sum_{i=1}^k \lambda_i = n\).
The composita generalizes the binomial coefficients. For example, the composita of \(F(x) = \frac{x}{1-x} = x + x^2 + x^3 + \cdots\) is precisely the Pascal triangle: \[ F^{\Delta}(n,k) = \binom{n-1}{k-1}. \]
2. Recurrence Formula
Proof sketch
For \(k=1\), the only composition is \(\pi_1 = (n)\), so \(F^{\Delta}(n,1) = f(n)\). For \(k>1\), group all compositions by their first part \(\lambda_1 = i\). The sum over the remaining \(k-1\) parts is \(F^{\Delta}(n-i, k-1)\). Summing over \(i = 1, \ldots, n-k+1\) (since at least \(k-1\) parts of size 1 remain) gives the recurrence.
Special values:
- \(F^{\Delta}(n,n) = f(1)^n\) (all parts are 1)
- \(F^{\Delta}(n,1) = f(n)\) (single part of size \(n\))
- \(F^{\Delta}(n,k) = 0\) if \(k > n\) or \(k < 1\)
3. Composita Calculator
Enter the coefficients \(f(n)\) of your generating function \(F(x) = \sum_{n>0} f(n) x^n\). The composita triangle \(F^{\Delta}(n,k)\) will be computed below.
4. Composition of Generating Functions
This theorem is the workhorse for solving iterative functional equations. For \(A(A(x)) = F(x)\), we need the composita of the composition formula: \[ A^{\Delta}(n,k) = \sum_{m=k}^{n} F^{\Delta}(n,m) \, G^{\Delta}(m,k) \] when \(A(x) = G(F(x))\). Setting \(G = A\) and using \(A(A(x)) = F(x)\) gives a triangular system for the unknown coefficients \(a(n)\).