Combinatorics 16
Combinatorics 16
Combinatorics 16
Lecture 15
Department of Mathematics
Indian Institute of Technology Delhi
Scaling Rule
Let a0 , a1 , a2 , . . . be a sequence of real numbers. If a0 , a1 , a2 , . . . gives a
generating function f (x ) then ca0 , ca1 , ca2 , . . . gives the generating
function cf (x ), for c ∈ R.
Addition Rule
If a0 , a1 , a2 , . . . give a generating function f (x ) and b0 , b1 , b2 , . . . give a
generating function g(x ) then a0 + b0 , a1 + b1 , a2 + b2 , . . . give the
generating function f (x ) + g(x ).
Derivative Rule
If a0 , a1 , a2 , a3 , . . . give a generating function f (x ) then a1 , 2a2 , 3a3 . . .
give a generating function f ′ (x ).
Problem 1
Find the number of solutions to x1 + x2 + x3 + x4 = 17, where
0 ≤ x1 ≤ 2, 0 ≤ x2 ≤ 5, 0 ≤ x3 ≤ 5 and 2 ≤ x4 ≤ 6.
Solution:
Consider the function f (x ) = (1 + x + x 2 )(1 + x + x 2 + x 3 + x 4 +
x 5 )(1 + x + x 2 + x 3 + x 4 + x 5 )(x 2 + x 3 + x 4 + x 5 + x 6 ).
Problem 2
Find the number of solutions to x1 + x2 + x3 = 11, where x1 , x2 , x3 are non
negative integers such that x1 is odd, x2 is even, and x3 is unrestricted.
Solution:
Consider the function f (x ) = (x + x 3 + x 5 + x 7 + x 9 + x 11 + · · · )(1 +
x 2 + x 4 + x 6 + x 8 + x 10 + · · · )(1 + x + x 2 + x 3 + x 4 + · · · ).
Since we need coefficient of x 11 , we can consider the function
f (x ) = (x + x 3 + x 5 + x 7 + x 9 + x 11 )(1 + x 2 + x 4 + x 6 + x 8 +
x 10 )(1 + x + x 2 + x 3 + x 4 + · · · + x 11 )
Problem 3
Find the coefficient of x 17 in the expansion of (1 + x 5 + x 7 )20 .
Solution:
The only way to form an x 17 term is to gather two x 5 and one x 7 .
Problem 4
How many integer solutions to the equation a + b + c = 6 satisfy
−1 ≤ a ≤ 2 and 1 ≤ b, c ≤ 4?
Solution:
Since −1 ≤ a ≤ 2, the variable a contributes a term
x −1 + x 0 + x 1 + x 2 to the generating function.
Similarly, each of b and c contributes a term x 1 + x 2 + x 3 + x 4 .
Hence the generating function is
f (x ) = (x −1 + x 0 + x 1 + x 2 )(x 1 + x 2 + x 3 + x 4 )2 = x (1 + x + x 2 + x 3 )3 .
Thus, f (x ) = x + 3x 2 + 6x 3 + 10x 4 + 12x 5 + 12x 6 + · · · .
The number of solutions is 12.
Example
The partitions of 5 are
5
4+1
3+2
3 + 1 + 1,
2+2+1
2+1+1+1
1 + 1 + 1 + 1 + 1.
Thus p5 = 7.
Solution:
A partition is uniquely described by the number of 1s, number of 2s,
and so on and their sum is n.
Thus, f (x ) = (1 + x + x 2 + x 3 + · · · )(1 + x 2 + x 4 + x 6 + · · · ) · · · (1 +
x k + x 2k + x 3k + · · · ) · · · .
For example, if we pick x 3 from the first factor, x 3 from the third
factor, x 15 from the fifth factor, and 1s from all other factors, we get
x 21 . In the context of the product, this represents 3 · 1 + 1 · 3 + 3 · 5,
corresponding to the partition 1 + 1 + 1 + 3 + 5 + 5 + 5 of 21, that is,
three 1s, one 3, and three 5s.
Q∞
Thus, f (x ) = n=1 1−x n .
1
pn is the coefficient of x n in f (x ).
Solution:
Q∞
The generating function if f (x ) = n=1 1−x n .
1
Theorem
Let pd (n) be the number of partitions of n into distinct parts. Let po (n)
be the number of partitions into odd parts. Then pd (n) = po (n).
n=1
1 − x 2n−1
Therefore, pd (n) = po (n).