This page explains the inclusion-exclusion principle for counting distinct elements in overlapping sets, detailing how to adjust for over-counting overlaps. An example with students in math courses il...This page explains the inclusion-exclusion principle for counting distinct elements in overlapping sets, detailing how to adjust for over-counting overlaps. An example with students in math courses illustrates this principle. It also defines a derangement as a permutation where no element retains its original position, and concludes with practice checkpoints on related counting problems.