Ordinary Generating Functions

Ordinary generating function counts unlabelled balls in unlabelled bucket. You may want to watch this . Thus in generating function we are not concerned about the value of the function. Rather we are concerned about the coefficients which represent the sequence of numbers.

The good example is rolling two six face dice and this can be done as (x+x^2+x^3+x^4+x^5+x^6)^2 and the coefficient will give us the sum of the two numbers on the dice. If you want the range of the sum for m dice then it becomes $(x+x^2+x^3+x^4+x^5+x^6)^m$.

Weights to get new weights: Suppose one has 1,2,3,4 gms of weights present. What sort of weights can one obtain ? We have a choice whether to include a particular weight or not. So the total number of different weights are (1+x)(1+x^2)(1+x^3)(1+x^4) is x^{10} + x^{9} + x^{8} + 2 \, x^{7} + 2 \, x^{6} + 2 \, x^{5} + 2 \,x^{4} + 2 \, x^{3} +x^{2} + x + 1 . Which show that there are two ways to get the sum from 3\cdot\cdot\cdot7. For example 3=3=1+2,4=4=1+3,5 = 2+3 = 1+4, 6= 2+4=3+2+1, 7=3+4=4+2+1.

OGF also can model problems of selection and distribution

Selection with repetition: Consider the expression (1+x+x^2)^4. The coefficient x^r when we multiply several polynomial factors together can be restated in terms of exponents. Selecting 5 objects from a collection of four types, with at most two objects of each type. It is also equivalent to the problem of distributing five identical objects into four distinct boxes with at most two objects in each box.

Another place where we see the use of OGF is in Integer partition. Suppose we have

About Sumant Sumant

I love Math and I am always looking forward to collaborate with fellow learners. If you need help learning math then please do contact me.
This entry was posted in Combinatorics and tagged , , . Bookmark the permalink.

Leave a comment