Skip to main content

The inclusion-exclusion principle

  • Chapter
  • 1177 Accesses

Part of the book series: Texts and Readings in Mathematics ((TRM,volume 65))

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 AB is given by |A| + |B| − |AB|: 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| + |AB|. 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 AB 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

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   65.00
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints 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

Publish with us

Policies and ethics