Abstract
The inclusion-exclusion principle, is among the most basic techniques of combinatorics. Suppose we have a set X with subsets A and B. Then the number of elements that are in A or B (or both) i.e., the cardinality of A ∪ B is given by |A| + |B| − |A ∩ B|: The elements that are in both A and B were counted twice. To get rid of the over-counting, we must subtract. If \({\bar A}\) and \({\bar B}\) denote the complements of A and B respectively, then how many elements does the set \(\bar A \cup \bar B\) have? This number is |X| − |A| − |B| + |A ∩ B|. The explanation is as before. From the set of all the elements we get rid of those that are in A or B. In doing so, we subtracted the elements of A ∩ B twice. This has to be corrected by adding such elements once. Essentially, this way of over-counting (inclusion), correcting it using under-counting (exclusion) and again correcting (overcorrection) and so on is referred to as the inclusion-exclusion technique. As another example, consider the question of finding how many positive integers up to 100 are not divisible by 2, 3 or 5. We see that there are 50 integers that are multiple of 2, 33 that are multiples of 3 and 20 that are multiples of 5. This certainly amounts to over-counting as there are integers that are divisible by two of the given three numbers 2, 3 and 5. In fact, the number of integers divisible by both 2 and 3 is 16, the number of integers divisible by both 2 and 5, that is divisible by 10 is 10. The number of integers divisible by both 3 and 5 is the number of integers below 100 and divisible by 15 and that number is 6. Finally the number of integers divisible by all of 2, 3 and 5 is just 3.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2013 Hindustan Book Agency
About this chapter
Cite this chapter
Sane, S.S. (2013). The inclusion-exclusion principle. In: Combinatorial Techniques. Texts and Readings in Mathematics, vol 65. Hindustan Book Agency, Gurgaon. https://doi.org/10.1007/978-93-86279-55-2_4
Download citation
DOI: https://doi.org/10.1007/978-93-86279-55-2_4
Publisher Name: Hindustan Book Agency, Gurgaon
Print ISBN: 978-93-80250-48-9
Online ISBN: 978-93-86279-55-2
eBook Packages: Mathematics and StatisticsMathematics and Statistics (R0)