Difference between revisions of "Generating function"
(added links) |
m (proofreading) |
||
Line 3: | Line 3: | ||
== Simple Example == | == Simple Example == | ||
− | If we let <math>A(k)={n \choose k}</math> then we have <math>{n \choose 0}+{n \choose 1}x + {n \choose 2}x^2+\cdots+</math><math>{n \choose n}x^n</math>. | + | If we let <math>A(k)={n \choose k}</math>, then we have <math>{n \choose 0}+{n \choose 1}x + {n \choose 2}x^2+\cdots+</math><math>{n \choose n}x^n</math>. |
This function can be described as the number of ways we can get <math>\displaystyle{k}</math> heads when flipping <math>n</math> different coins. | This function can be described as the number of ways we can get <math>\displaystyle{k}</math> heads when flipping <math>n</math> different coins. |
Revision as of 12:23, 3 July 2006
The idea behind generating functions is to represent a combinatorial function in terms of a polynomial function which is equivalent for all purposes. This function is , where the coefficient of is the number of ways an event can occur.
Simple Example
If we let , then we have .
This function can be described as the number of ways we can get heads when flipping different coins.
The reason to go to such lengths is that our above polynomial is equal to (which is clearly seen due to the Binomial Theorem). By using this equation, we can rapidly uncover identities such as (let ), also .