Binomial Coefficients and Generating Functions - Cs.ioc.ee
Binomial Coefficients and Generating Functions - Cs.ioc.ee
Binomial Coefficients and Generating Functions - Cs.ioc.ee
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Counting elements of two sets<br />
Convolution Rule<br />
Let A(x) be the generating function for selecting items from set A , <strong>and</strong><br />
let B(x), be the generating function for selecting items from set B.<br />
If A <strong>and</strong> B are disjoint, then the generating function for selecting items from<br />
the union A ∪ B is the product A(x) · B(x).<br />
Proof. To count the number of ways to select n items from A ∪ B we have to select j<br />
items from A <strong>and</strong> n − j items from B, where j ∈ {0,1,2,...,n}.<br />
Summing over all the possible values of j gives a total of<br />
a0bn + a1bn−1 + a2bn−2 + ··· + anb0<br />
ways to select n items from A ∪ B. This is precisely the coefficient of x n in the series<br />
for A(x) · B(x) Q.E.D.