Professional Documents
Culture Documents
CSM 166 Chapter 2 Lecture Slides
CSM 166 Chapter 2 Lecture Slides
31/05/2021
Content
Multinomial Coefficients
CSM 166: Discrete Mathematics for Computer Science Chapter 2: Multinomial Coefficients, 31/05/2021
Binomial Coefficients
CSM 166: Discrete Mathematics for Computer Science Chapter 2: Multinomial Coefficients, 31/05/2021
Theorem 1 (Binomial Theorem)
Let x and y be variables, and let n be a
nonnegative integer. Then
à !
n
n n−j j
(x + y)n =
X
x y
j=0 j
à ! à ! à ! à !
n n n n−1 n n n
= x + x y +···+ xy n−1 + y
0 1 n−1 n
¡n¢
where j
is called the binomial coefficient.
CSM 166: Discrete Mathematics for Computer Science Chapter 2: Multinomial Coefficients, 31/05/2021
Binomial Coefficients
Example 1
What is the expansion of (x + y)4
Solution:
à !
4
4 4−j j
(x + y)4 =
X
x y
j=0 j
à ! à ! à ! à ! à !
4 4 4 3 4 2 2 4 4 4
= x + x y+ x y + xy 3 + y
0 1 2 3 4
à ! à ! à ! à ! à !
4 4 4 3 4 2 2 4 4 4
= x + x y+ x y + xy 3 + y
0 1 2 3 4
Example 2
What is the coefficient of x12 y 13 in the expansion
of (x + y)25 ?
Solution:
It follows from the binomial theorem that this
coefficient is
à !
25 25!
= = 5, 200, 300
13 13!12!
CSM 166: Discrete Mathematics for Computer Science Chapter 2: Multinomial Coefficients, 31/05/2021
Binomial Coefficients
Example 2
What is the coefficient of x12 y 13 in the expansion
of (x + y)25 ?
Solution:
It follows from the binomial theorem that this
coefficient is
à !
25 25!
= = 5, 200, 300
13 13!12!
CSM 166: Discrete Mathematics for Computer Science Chapter 2: Multinomial Coefficients, 31/05/2021
Example 3
What is the coefficient of x12 y 13 in the expansion
of (2x − 3y)25 ?
Solution:
(2x − 3y)25 = (2x + (−3y))25
By the binomial theorem
à !
25
25
(2x + (−3y))25 = (2x)25−j (−3y)j
X
J=0 j
Solution:
(2x − 3y)25 = (2x + (−3y))25
By the binomial theorem
à !
25
25
(2x + (−3y))25 = (2x)25−j (−3y)j
X
J=0 j
2. Ã !
n
n
(−1)k
X
=0
k=0 k
3. Ã !
n
n
2k = 3n
X
k=0 k
CSM 166: Discrete Mathematics for Computer Science Chapter 2: Multinomial Coefficients, 31/05/2021
Binomial Coefficients
CSM 166: Discrete Mathematics for Computer Science Chapter 2: Multinomial Coefficients, 31/05/2021
Pascal’s Identity and Triangle
CSM 166: Discrete Mathematics for Computer Science Chapter 2: Multinomial Coefficients, 31/05/2021
Multinomial Coefficients
Definition 1
Let k1 , k1 , . . . kr be integers satisfying the relation
k1 + k2 + · · · + kr = n. Then
à !
n n!
=
k1 , k2 . . . kr k1 !k2 ! . . . kr !
à !à !à ! à Pr−i !
n n − k1 n − k1 − k2 n − i=1 ki
= ...
k1 k2 k3 kr
n
¡ ¢
The multinomial coefficient k1 ,k2 ,...,kr
is:
Ï the number of ways to put interchangeable
objects into r boxes, so that box i has ki
objects in it, for 1 ≤ i ≤ r.
CSM 166: Discrete Mathematics for Computer Science Chapter 2: Multinomial Coefficients, 31/05/2021
Multinomial Coefficients
n
¡ ¢
The multinomial coefficient k1 ,k2 ,...,kr
is:
Ï the number of unique permutations of a
word with n letters and r distinct letters,
such that the ith letter occurs ki times.
CSM 166: Discrete Mathematics for Computer Science Chapter 2: Multinomial Coefficients, 31/05/2021
Multinomial Coefficients
Example 4
A police department of 10 officers wants to have
5 patrol the streets of KNUST, 2 doing
paperwork, and 3 at the Icy-cup shops on
campus. How many ways can this be done?
Solution
à !
10 10!
= = 2520
5, 2, 3 5!2!3!
CSM 166: Discrete Mathematics for Computer Science Chapter 2: Multinomial Coefficients, 31/05/2021
Multinomial Coefficients
Theorem 3
For any x1 , . . . , xr and n > 1
à !
n
(x1 + · · · + xr )n = x1k1 x2k2 . . . xrkr
X
(k1 ,...,kr ) k1 , k2 , . . . , kr
k1 +···+kr =n
(1)
CSM 166: Discrete Mathematics for Computer Science Chapter 2: Multinomial Coefficients, 31/05/2021
Multinomial Coefficients I
Example 5
Expand (x + y + z)3
Solution
CSM 166: Discrete Mathematics for Computer Science Chapter 2: Multinomial Coefficients, 31/05/2021
Multinomial Coefficients II
3! 3 3! 3 3! 3 3! 2
= x + y + z + x y
3!0!0! 0!3!0! 3!0!0! 2!1!0!
3! 2 3! 3! 2 3!
+ x z+ xy 2 + y z+ xz2
2!0!1! 1!2!0! 0!2!1! 1!0!2!
3! 3!
+ yz2 + xyz
0!1!2! 1!1!1!
CSM 166: Discrete Mathematics for Computer Science Chapter 2: Multinomial Coefficients, 31/05/2021
Multinomial Coefficients
Example 6
1. Evaluate the following
¡ 6 ¢
a) 4,2,0
¡5¢
b) 3,2
¡ 10 ¢
c) 5,3,0,2
v) x3 y 4 z5 in (x − 2y + 3z)12
CSM 166: Discrete Mathematics for Computer Science Chapter 2: Multinomial Coefficients, 31/05/2021
Exercise B:
1. The letters B, C, E, E, N, R, S, S, Y , Z, Z, Z, Z are
arranged at random. Determine the
probability that these letters will spell the
word SZCZEBRZESZYN
CSM 166: Discrete Mathematics for Computer Science Chapter 2: Multinomial Coefficients, 31/05/2021
End of Lecture
Questions...???
Thanks
CSM 166: Discrete Mathematics for Computer Science Chapter 2: Multinomial Coefficients, 31/05/2021
Reference Books