Week 9
Week 9
(a) −8981280000
(b) 8981280000
(c) 55440
(d) −55440
X n!
(a1 + a2 + a3 )n = ak11 ak22 ak33
k1 !k2 !k3 !
k1 +k2 +k3 =n
12!
· (3)4 · (−2)5 · (5)3
4!5!3!
Calculate the factorials and powers:
27720 · 81 = 2245320
2. What is the generating function for the generating series 2, 6, 12, 20, . . .?
2x
(a) (1−x)2
2x+1
(b) (1−x)3
2x+1
(c) (1−x)2
2x
(d) (1−x)3
3. What is the closed-form expression of the generating function for the sequence:
1, −2, 3, −4, 5, −6, . . .?
1
(a) (1−x)2
1
(b) (1+x)2
1−x
(c) (1+x)2
x
(d) (1+x)2
1
= 1 − 2x + 3x2 − 4x3 + . . .
(1 + x)2
1
∴ the generating function for the sequence 1, −2, 3, −4, 5, −6, . . . is (1+x)2
.
4. What is the sequence in the generating series for the expression 5x2 + 10x3 + 15x4 +
20x5 + . . .?
5. How many 5-lettered words can be formed from the following letter blocks, given that
you must pick one block of letters per line?
Ka P T
e r o
Sa Ram
(a) 6
(b) 9
(c) 12
(d) 18
((x2 ) + x + x) · (x + x + x) · (x2 + x3 )
(x2 + 2x) · (3x) · (x2 + x3 )
3x · (x2 + 2x) · (x2 + x3 ) = 3x · (x4 + x5 + 2x3 + 2x4 )
3x · (x5 + 3x4 + 2x3 ) = 3x6 + 9x5 + 6x4
Therefore, the coefficient of x5 denotes the number of 5-lettered words that can be
formed from the given sequence, which is 9.
Lecture 360: Words and the polynomials Explained.
6. In how many ways can 120 players be allocated to 4 different teams such that each
team has at least 8 players and no more than 10 players?
7. In a game, there are several baskets of different colors: red, orange, green, and blue.
In how many ways can Arjun choose 8 balls to place into these red, orange, green,
and blue baskets?
(a) 120
(b) 165
(c) 300
(d) 350
B1 + B2 + B3 + B4 = 8
where B1 , B2 , B3 , and B4 represent the number of balls placed into the red, orange,
green, and blue baskets, respectively.
The number of solutions to this equation is given by the combinatorial formula:
n+r−1
r
where n is the number of different baskets (4 in this case), and r is the total number
of balls (8 in this case).
Substituting the values, we get:
4+8−1 11 11
= = = 165
8 8 3
Therefore, Arjun can place the 8 balls into the four different colored baskets in 165
ways.
Lecture 370: Picking 7 Balls The naive way.
1
(a) 1−x
1
(b) 1−6x
(c) (1 + x)6
(d) (1 + x)7
9. Find the closed form expression of the generating function for the sequence:
1
(a) 1−x
1
(b) 1−13x
13
(c) 1−x
1
(d) 1−13x
Correct Answer: (d)
Solution: The given sequence is 1, 13, 169, 2197, 28561, . . .. Observing the sequence, it
appears that each term is 13n , where n is the index of the term, starting from n = 0.
Therefore, the n-th term of the sequence is 13n .
The generating function for the sequence a0 , a1 , a2 , a3 , . . . is given by:
1
1 − ax
where a is the base of the exponentials. Substituting a = 13, we get:
1
1 − 13x
This expression generates the series:
Therefore, the generating function for the sequence 1, 13, 169, 2197, 28561, . . . is:
1
1 − 13x
Lecture 366: Generating function examples Part 2.
1
(a) 1+x
1
(b) (1+x)2
(c) (1 + x)2
(d) (1 + x)3