Inclusion–Exclusion
Tip
The principle
.
In plain terms. Add each group, subtract the double-counted overlaps, then add back what you subtracted too many times.
Example. Integers – divisible by or : .
Stars and Bars
Tip
Distributing identical objects
Nonnegative solutions of number ; positive solutions number .
In plain terms. Line up identical items and dividers; where the dividers go decides who gets what. Counting the arrangements is one binomial.
Example. Give candies to kids: ways; if each must get one, .