Combinat or Ics
Combinat or Ics
LUANAR-BUNDA
September 4, 2023
1 / 58
Outline
2 / 58
Introduction
3 / 58
Introduction
3 / 58
Introduction
3 / 58
Introduction
4 / 58
THE Fundamental Theory of Counting
4 / 58
THE Fundamental Theory of Counting
4 / 58
THE Fundamental Theory of Counting
5 / 58
The FTC
5 / 58
The FTC
5 / 58
The FTC
5 / 58
The FTC
5 / 58
The Basic Counting Rules/Techniques
6 / 58
Product rule: Example 1
7 / 58
Example 1: Solution
8 / 58
Example 1: Solution
8 / 58
Example 1: Solution
8 / 58
Example 1: Solution
8 / 58
Example 1: Solution
8 / 58
Example 1: Solution
9 / 58
Example 2: Solution
10 / 58
Example 2: Solution
10 / 58
Example 2: Solution
10 / 58
Example 2: Solution
10 / 58
Example 2: Solution
11 / 58
Generalised Product rule
11 / 58
Generalised Product rule
11 / 58
Generalised Product rule
12 / 58
Example 3
12 / 58
Example 3
12 / 58
Example 3
12 / 58
Example 3
13 / 58
Example 4:
13 / 58
Example 4:
13 / 58
Example 4:
13 / 58
Example 4:
13 / 58
Example 5: Counting functions
14 / 58
Example 5: Counting functions
14 / 58
Example 5: Counting functions
14 / 58
Example 5: Counting functions
15 / 58
Product rule in set theory
15 / 58
Product rule in set theory
16 / 58
Product rule in set theory
16 / 58
The Sum Rule
17 / 58
The Sum Rule
17 / 58
Example 6
18 / 58
Example 6 - Solution
19 / 58
Example 6 - Solution
19 / 58
Example 7
20 / 58
Example 7
20 / 58
Example 7
20 / 58
Example 7
21 / 58
Example 8
22 / 58
Example 8
22 / 58
Example 8
23 / 58
Sum rule in set theory
24 / 58
Subtraction rule
25 / 58
Subtraction rule
25 / 58
Subtraction rule
26 / 58
Example 9-Subtraction rule
26 / 58
Example 9-Subtraction rule
27 / 58
Example 10-Subtraction rule
28 / 58
Example 10-Solution
29 / 58
Example 10-Solution
29 / 58
Example 10-Solution
29 / 58
Example 10-Solution
29 / 58
Inclusion-Excusion Principle: 3 sets
30 / 58
Example 11
Subject A B C AB AC BC ABC
Failed 12 5 8 2 6 3 1
32 / 58
Exercise
35 / 58
The Pigeonhole principle
36 / 58
The Pigeonhole principle
Theorem
The Pigeonhole Principle: If n is a positive
integer and n + 1 or more objects are placed into
n boxes, then there is at least one box containing
two or more of the objects.
Proof: By Contradiction
36 / 58
The Pigeonhole principle
Theorem
The Pigeonhole Principle: If n is a positive
integer and n + 1 or more objects are placed into
n boxes, then there is at least one box containing
two or more of the objects.
Proof: By Contradiction
36 / 58
The Pigeonhole principle
Theorem
The Pigeonhole Principle: If n is a positive
integer and n + 1 or more objects are placed into
n boxes, then there is at least one box containing
two or more of the objects.
Proof: By Contradiction
37 / 58
Corollary 1
A function f from a set with k + 1 or more
elements to a set with k elements is not
one-to-one.
The pigeonhole principle tell us that there
must be at least two elements in the domain
that have the same image in the co-domain.
37 / 58
Corollary 1
A function f from a set with k + 1 or more
elements to a set with k elements is not
one-to-one.
The pigeonhole principle tell us that there
must be at least two elements in the domain
that have the same image in the co-domain.
37 / 58
Example 12
38 / 58
Example 12
38 / 58
Example 12
38 / 58
Example 12
39 / 58
Example 13
39 / 58
The Generalized Pigeonhole Principle
40 / 58
The Generalized Pigeonhole Principle
40 / 58
Proof: The Generalized Pigeonhole Principle
Suppose
N there
is no box containing more than
k − 1 objects.
41 / 58
Proof: The Generalized Pigeonhole Principle
Suppose
N there is no box containing more than
k − 1 objects.
Then
N the total
number of objects is at most
k k −1 .
41 / 58
Proof: The Generalized Pigeonhole Principle
Suppose
N there is no box containing more than
k − 1 objects.
Then
N the total
number of objects is at most
k k −1 .
Notice that Nk < ( Nk ) + 1. This implies that
N N
k −1 <k +1 −1 =N
k k
41 / 58
Proof: The Generalized Pigeonhole Principle
Suppose
N there is no box containing more than
k − 1 objects.
Then
N the total
number of objects is at most
k k −1 .
Notice that Nk < ( Nk ) + 1. This implies that
N N
k −1 <k +1 −1 =N
k k
41 / 58
Proof: The Generalized Pigeonhole Principle
Suppose
N there is no box containing more than
k − 1 objects.
Then
N the total
number of objects is at most
k k −1 .
Notice that Nk < ( Nk ) + 1. This implies that
N N
k −1 <k +1 −1 =N
k k
Suppose
N there is no box containing more than
k − 1 objects.
Then
N the total
number of objects is at most
k k −1 .
Notice that Nk < ( Nk ) + 1. This implies that
N N
k −1 <k +1 −1 =N
k k
42 / 58
Example 14: The Generalized Pigeonhole Principle
42 / 58
Example 14: The Generalized Pigeonhole Principle
42 / 58
The Generalized Pigeonhole Principle cont’
43 / 58
The Generalized Pigeonhole Principle cont’
43 / 58
The Generalized Pigeonhole Principle cont’
44 / 58
Example 15
44 / 58
Example 15
45 / 58
Example 15-Solution
45 / 58
Example 15-Solution
45 / 58
Example 15-Solution
46 / 58
Example 15-Solution
46 / 58
Example 15-Solution
46 / 58
Example 15-Solution
47 / 58
Example 15-Solution
47 / 58
Example 15-Solution
47 / 58
Example 15-Solution
47 / 58
EXERCISE
48 / 58
Permutations
49 / 58
Permutations
49 / 58
Permutations
49 / 58
Permutations
50 / 58
Permutations
50 / 58
Permutations
50 / 58
Permutations
50 / 58
Permutations
51 / 58
Permutations
52 / 58
Proof
52 / 58
Proof
53 / 58
Corollary
53 / 58
Example 16
54 / 58
Example 16
54 / 58
Example 16
55 / 58
Example 16-Solution
55 / 58
Example 16-Solution
55 / 58
Example 16-Solution
55 / 58
Example 16-Solution
56 / 58
Example 16-Solution
56 / 58
Example 16-Solution
56 / 58
Example 16-Solution
56 / 58
Example 16-Solution