14.08.2013 Views

Binomial Coefficients and Generating Functions - Cs.ioc.ee

Binomial Coefficients and Generating Functions - Cs.ioc.ee

Binomial Coefficients and Generating Functions - Cs.ioc.ee

SHOW MORE
SHOW LESS

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.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!