AMC 10 Step by Step

Topics / Counting & Probability

Inclusion-Exclusion

Overlapping sets, Venn diagrams, PIE counting

6
primary-topic problems (0.5% of all)
6
more as a secondary topic
Where it appears
0
P1-10
2
P11-15
1
P16-20
3
P21-25

## What you need to know
- Two sets: AB=A+BAB|A \cup B| = |A| + |B| - |A \cap B|.
- Three sets: ABC=A+B+CABACBC+ABC|A \cup B \cup C| = |A| + |B| + |C| - |A \cap B| - |A \cap C| - |B \cap C| + |A \cap B \cap C|.
- General principle: add the single sets, subtract pairwise intersections, add triple intersections, and so on with alternating signs.
- Complement form: elements in none of the sets number NABN - |A \cup B \cup \cdots|.
- Multiples of mm in {1,,N}\{1, \dots, N\}: N/m\lfloor N/m \rfloor; multiples of both aa and bb are multiples of lcm(a,b)\operatorname{lcm}(a,b).
- Venn-diagram bookkeeping: fill the innermost region first and work outward.

## How AMC 10 tests it
- Problems 5–12: survey problems ("3030 take math, 2020 take science, 1010 take both") asking for the "neither" count or an "exactly one" region.
- Problems 10–18: integers up to NN divisible by at least one of several numbers, or by none.
- Problems 15–22: inclusion-exclusion hidden inside arrangements ("every color is used," "at least one letter in its original spot").
- Occasionally an "exactly two" region, where the union formula is not enough and the diagram must be filled.

## Standard approaches
1. Draw the Venn diagram and fill regions from the center; many problems need no formula.
2. For "at least one," compute the union; for "none," subtract the union from the total.
3. For divisibility, each term is N/lcm\lfloor N / \operatorname{lcm} \rfloor.
4. For "every box used," count all assignments and subtract those missing a box: kn(k1)(k1)n+(k2)(k2)nk^n - \binom{k}{1}(k-1)^n + \binom{k}{2}(k-2)^n - \cdots.
5. Check that every region is a nonnegative integer; a negative region means a misread.

## Worked example
How many positive integers at most 600600 are divisible by 44 or 66 but not by 99?

(A) 150150 (B) 167167 (C) 178178 (D) 184184 (E) 200200

Solution. Divisible by 44 or 66: 600/4+600/6600/12=150+10050=200\lfloor 600/4 \rfloor + \lfloor 600/6 \rfloor - \lfloor 600/12 \rfloor = 150 + 100 - 50 = 200. Among these, remove those divisible by 99: multiples of lcm(4,9)=36\operatorname{lcm}(4,9) = 36 or of lcm(6,9)=18\operatorname{lcm}(6,9) = 18. Every multiple of 3636 is a multiple of 1818, so this is just the multiples of 1818: 600/18=33\lfloor 600/18 \rfloor = 33. Answer 20033=167200 - 33 = 167, so (B) 167\boxed{\textbf{(B)}\ 167}.

## Pitfalls
- Subtracting the pairwise overlaps but forgetting to add the triple overlap back.
- Reading "1010 take both" as an "exactly both" region when it includes the triple region (or the reverse).
- Using N/(ab)\lfloor N/(ab) \rfloor instead of N/lcm(a,b)\lfloor N/\operatorname{lcm}(a,b) \rfloor when aa and bb share a factor.
- Reporting the union when the question asks for the complement, or vice versa.

Traps that recur

  • Adding the five box probabilities (5 · 1/25) without subtracting overlaps, or dropping the alternating signs in inclusion–exclusion. (2021 AMC 10B #22)
  • Forgetting to add back the single arrangement with both red and blue empty (all candy in white), which gives 1931. (2010 AMC 10B #22)
  • Subtracting all 400 multiples of 5 instead of only the multiples of 5 that are also multiples of 3 or 4. (2001 AMC 10 #25)
  • Applying |A union B union C| = sum of singles minus pairs plus triple with the wrong meaning of the 9, which counts students in at least two classes, not pairwise overlaps. (2017 AMC 10B #13)

Problems, easiest first

2005 AMC 10B · #13Inclusion-Exclusion

How many numbers between 11 and 20052005 are integer multiples of 33 or 44 but not 1212 ?

2017 AMC 10B · #13Inclusion-Exclusion

There are 2020 students participating in an after-school program offering classes in yoga, bridge, and painting. Each student must take at least one of these three classes, but may take two or all three. There are 1010 students taking yoga, 1313 taking bridge, and 99 taking painting. There are 99 students taking at …

2013 AMC 10A · #17Inclusion-Exclusion

Daphne is visited periodically by her three best friends: Alice, Beatrix, and Claire. Alice visits every third day, Beatrix visits every fourth day, and Claire visits every fifth day. All three friends visited Daphne yesterday. How many days of the next 365-day period will exactly two friends visit her?

2021 AMC 10B · #22Inclusion-Exclusion

Ang, Ben, and Jasmin each have 55 blocks, colored red, blue, yellow, white, and green; and there are 55 empty boxes. Each of the people randomly and independently of the other two people places one of their blocks into each box. The probability that at least one box receives 33 blocks all of the same color is …

2010 AMC 10B · #22Inclusion-Exclusion

Seven distinct pieces of candy are to be distributed among three bags. The red bag and the blue bag must each receive at least one piece of candy; the white bag may remain empty. How many arrangements are possible?

2001 AMC 10 · #25Inclusion-Exclusion

How many positive integers not exceeding 20012001 are multiples of 33 or 44 but not 55 ?