Adding the sizes of two overlapping groups counts the overlap twice. Inclusion-exclusion adds both sizes and subtracts the overlap once, so every item in either group is counted exactly once.
| Step | On the integers 1 to 60 divisible by 4 or 6 | |
|---|---|---|
| 1 | Define the two sets. Name each property as a set of items. | : multiples of ; : multiples of |
| 2 | Count each set. Here the count is for the multiples of . | , |
| 3 | Count the overlap. Items in both sets; for divisibility, the multiples of the least common multiple, . | |
| 4 | Add, then subtract the overlap once. Each item in both sets was counted twice by the sum. |