Chapter 5 The Principle of Inclusion and Exclusion
Chapter 5 The Principle of Inclusion and Exclusion
Chapter 5 The Principle of Inclusion and Exclusion
The Principle
Theorem 4.1. (Addition Principle (AP) If A and B are finite sets such that A B = , then
|A B| = |A| + |B|
|A B| = |A| + |B| |A B|
|A1 A2 Aq | =
q
X
i=1
|Ai |
X
i<j
|Ai Aj | +
i<j<k
Example 4.1. Let {1, 2, . . . , 500}. Find the number of integers in S which are divisible by 2,3, or 5.
1. none of 2, 3, 5?
2. exactly one of 2,3,5?
3. exactly two of 2,3,5?
4. all of 2,3,5?
Definition 4.1. For integer m with 0 m q, let E(m) denote the number of elements of S that posses exactly
m of the q properties; and 1 m q, let (Pi1 , Pi2 , . . . , Pim ) denote the number of elements of S that possess
the properties of Pi1 , Pi2 , . . . , Pim and let
X
(m) =
((Pi1 , Pi2 , . . . , Pim ))
D
MATH 141 - INTRODUCTORY COMBINATORICS / A.B.A. Dalam, MS Math
D
MATH 141 - INTRODUCTORY COMBINATORICS / A.B.A. Dalam, MS Math