Combinatorics 2008
Combinatorics 2008
S0 =?
Example
Let A = 4 := {1, 2, 3, 4}, then
|S0| = 1.
|S1| = 4.
|S2| = 6.
|S3| = |S1| = 4.
|S4| = |S0| = 1.
|S5| = 0.
1 + 4 + 6 + 4 + 1 = 24
Properties
Let A be a finite set of size n and k ∈ N.
Let c(n, k) denote the number of subsets
of A of size k.
1. c(n, k) = 0 ∀k > n and ∀k < 0;
c(n, 0) = 1 = c(n, n).
2. c(n, 1) = n = c(n, n − 1);
c(n, k) = c(n, n − k).
3. c(n + 1, k) = c(n, k) + c(n, k − 1).
Properties
Definition: Let n, k ∈ N. The bino-
mial coefficient ”n choose k” is
n n!
:= .
k k!(n − k)!
n n!
Theorem: c(n, k) = k = k!(n−k)! .
In other words, the number of subsets
of size k of an n-set is nk .
Property 3 says that binomial coefficients
can be calculated recursively, using Pas-
cal’s triangle, where each entry is the
sum of the two adjacent ones in the up-
per row.
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
1 5 10 10 5 1
Binomial Theorem:
Let X, Y be any ‘variables’ such that
XY = Y X. Then
n
X n
(X + Y )n = X n−k Y k
k
k=0
n n
= X n+ X n−1Y +· · ·+ XY n−1+Y n
1 n−1
Setting X = Y = 1, we get:
n
n
X n
2 = .
k
k=0
Examples:
• (X + Y )2 = X 2 + 2XY + Y 2.
• (X + Y )3 = X 3 + 3X 2Y + 3XY 2 +
Y 3.
• (X + Y )4 = X 4 + 4X 3Y + 6X 2Y 2 +
4XY 3 + Y 4.
• ···
Permutations with Identical Ob-
jects
Consider the word ‘abracadabra’
Solution:
11!
.
5! × 2! × 2!
Permutations with Identical Ob-
jects
Theorem: Let aa · · · a bb · · · b cc · · · c · · ·
be an arrangement of n - objects among
which there are n1,n2,· · · nk identical
ones (so n = n1 + n2 + · · · + nk ).
Solution:
7 7!
= .
2, 3, 2 2! · 3! · 2!
Multinomial Theorem
General formula:
(X1 + X2 + · · · + Xk )n
X n
n
= X1n1 X2n2 · · · Xk k
n 1 , n 2 , · · · , nk
n! Q n!c
# for that type: n1 !·n2 !···nk ! # for that type: .
i (i!) ci !
i
Ordered / Unordered Partitions
Let A be a set with |A| = n.
Example: A = {1, 2, 3, 4, 5}
Ordered / Unordered Partitions
Let A be a set with |A| = n.
Example: A = {1, 2, 3, 4, 5}
({2, 5}, {1, 3}, {4}) 6= {{2, 5}, {1, 3}, {4}} =
({1, 3}, {2, 5}, {4}) {{1, 3}, {2, 5}, {4}}.
Ordered / Unordered Partitions
Let A be a set with |A| = n.
Example: A = {1, 2, 3, 4, 5}
({2, 5}, {1, 3}, {4}) 6= {{2, 5}, {1, 3}, {4}} =
({1, 3}, {2, 5}, {4}) {{1, 3}, {2, 5}, {4}}.
Example: A = {1, 2, 3, 4, 5}
({2, 5}, {1, 3}, {4}) 6= {{2, 5}, {1, 3}, {4}} =
({1, 3}, {2, 5}, {4}) {{1, 3}, {2, 5}, {4}}.
Example
4!
|1234| 41 4!1 ·1! =1
4!
1|234 2|134 3|124 4|123 11 31 1!1 1!·3!1 1! = 4
4!
12|34 13|24 23|14 22 2!2 2! = 3
4!
1|2|34 1|3|24 1|4|23 12 21 1!2 2!·2!1 1 =6
2|3|14 2|4|13 3|4|12
4!
1|2|3|4 14 1!4 4! =1
T otal 15
Unordered Partitions
How many unordered partitions of 8 with
block sizes ≥ 2?
Solution
types #
8 1
8!
26 2!6! = 28
8!
35 3!5! = 56
8!
42 (4!)2 ·2! = 35
8!
22 4 (2!)2 4!·2! = 210
8!
2 32 (3!)2 2!2! = 280
8!
24 (2!)4 4! = 3 · 7 · 5 = 105
Total: 715