Académique Documents
Professionnel Documents
Culture Documents
Econometric Institute
May 1, 2013
Combinatorics
May 1, 2013
1 / 27
What is combinatorics?
Combinatorics
May 1, 2013
2 / 27
Example: Passwords
A password for a website should satisfy the following conditions.
It should consist of 12 characters.
It should consist of letters and digits only.
Question: How many different passwords are possible.
1
Answer:
6212 = 3, 226, 266, 762, 397, 899, 821, 056 3.3 1021
Combinatorics
May 1, 2013
3 / 27
Combinatorics
May 1, 2013
4 / 27
k from n
Order is
important
Repetition is
not allowed
k-permutation
from n
Repetition is
allowed
k-permutation with
repetition from n
Order is not
important
k-combination
from n
k-combination with
repetition from n
Combinatorics
May 1, 2013
5 / 27
k from n
Order is
important
Order is not
important
k-combination
from n
hands in a card game
Combinatorics
Repetition is
allowed
k-permutation with
repetition from n
passwords
k-combination with
repetition from n
May 1, 2013
6 / 27
a chairman, and
a treasurer, and
a secretary.
Combinatorics
May 1, 2013
7 / 27
k from n
Order is
important
Order is not
important
Repetition is
not allowed
k-permutation
from n
forming a committee
k-combination
from n
hands in a card game
Combinatorics
Repetition is
allowed
k-permutation with
repetition from n
passwords
k-combination with
repetition from n
distributing chocolate
May 1, 2013
8 / 27
What is counting?
Basic rule 1.0
Counting is determining the number of elements in a set.
We denote the number of elements in a set A by |A|.
The number of elements in a set A equals the number of ways to
choose an element x A.
Combinatorics
May 1, 2013
9 / 27
k from n
Order is
important
Order is not
important
Repetition is
not allowed
k-permutation
from n
forming a committee
k-combination
from n
hands in a card game
Combinatorics
Repetition is
allowed
k-permutation with
repetition from n
passwords
???
k-combination with
repetition from n
distributing chocolate
May 1, 2013
10 / 27
Combinatorics
May 1, 2013
11 / 27
k from n
Order is
important
Order is not
important
Repetition is
not allowed
k-permutation
from n
forming a committee
k-combination
from n
hands in a card game
Combinatorics
Repetition is
allowed
k-permutation with
repetition from n
passwords
nk
k-combination with
repetition from n
distributing chocolate
May 1, 2013
12 / 27
Combinatorics
May 1, 2013
13 / 27
Combinatorics
May 1, 2013
14 / 27
Product rule
Combinatorics
May 1, 2013
15 / 27
k from n
Order is
important
Order is not
important
Repetition is
not allowed
k-permutation
from n
forming a committee
???
k-combination
from n
hands in a card game
Combinatorics
Repetition is
allowed
k-permutation with
repetition from n
passwords
nk
k-combination with
repetition from n
distributing chocolate
May 1, 2013
16 / 27
50 49 . . . 41 = 50 49 . . . 41
Here n! = n (n 1) . . . 1.
Twan Dollevoet (Econometric Institute)
Combinatorics
May 1, 2013
17 / 27
Combinatorics
May 1, 2013
18 / 27
k from n
Order is
important
Order is not
important
Repetition is
not allowed
k-permutation
from n
displaying DVDs
n!
P(n, k) = (nk)!
k-combination
from n
hands in a card game
Combinatorics
Repetition is
allowed
k-permutation with
repetition from n
passwords
nk
k-combination with
repetition from n
distributing chocolate
May 1, 2013
19 / 27
Combinatorics
May 1, 2013
20 / 27
Combinatorics
May 1, 2013
21 / 27
Combinatorics
May 1, 2013
22 / 27
k from n
Order is
important
Order is not
important
Repetition is
not allowed
k-permutation
from n
displaying DVDs
n!
P(n, k) = (nk)!
k-combination
from n
hands in a card game
???
Combinatorics
Repetition is
allowed
k-permutation with
repetition from n
passwords
nk
k-combination with
repetition from n
distributing chocolate
May 1, 2013
23 / 27
n
k
Combinatorics
May 1, 2013
24 / 27
Combinatorial theorems I
Theorem: Complementarity (Exercise 1.21)
For n 0, 0 k n, it holds that
n
n
=
.
k
nk
Proof Consider the set Nn .
n
k is the number of subsets of Nn of size k.
Combinatorics
May 1, 2013
25 / 27
Combinatorial theorems II
Theorem: Pascals identity (Exercise 1.22)
For n 0, 1 k n, it holds that
n+1
n
n
=
+
.
k
k
k 1
Proof Consider the set Nn+1 .
n+1
is the number of subsets of Nn+1 of size k.
k
Each subset A of size k satisfies either
1
2
n+1
/ A: A Nn : A is a subset of Nn of size k
n + 1 A: A {n + 1} Nn : |A {n + 1}| is a subset of Nn of size
k 1.
Combinatorics
May 1, 2013
26 / 27
k from n
Order is
important
Order is not
important
Repetition is
not allowed
k-permutation
from n
displaying DVDs
n!
P(n, k) = (nk)!
k-combination
from n
hands in a card game
C (n, k) = kn
Combinatorics
Repetition is
allowed
k-permutation with
repetition from n
passwords
nk
k-combination with
repetition from n
distributing chocolate
May 1, 2013
27 / 27