Inclusion-Exclusion (Medium)
AMC 10/12 mid (≈Q9–16) — multi-step.
Inclusion-Exclusion: core idea
Example problem: hint and answer
How many integers from to are **not** divisible by , , or ?
Hint: Count divisible by with PIE, subtract from . Answer: 266.
Practice (9 problems — type your answers)
1. How many integers from to are divisible by **or** **or** ?
2. How many integers from to are divisible by **or** **or** ?
3. How many surjective functions are there from a -element set to a -element set?
4. How many length- binary strings contain **no** two consecutive s?
5. How many integers satisfy ?
6. How many integers from to are divisible by **or** **or** **or** ?
7. How many functions from a -element set to a -element set are **surjective**?
8. How many integers from to are divisible by **or** **or** ?
9. How many integers from to are divisible by **neither** **nor** ?