Inclusion-Exclusion (Hard)
Late AMC 10/12 through early AIME — dense computation.
Inclusion-Exclusion: core idea
Complements / derangements.
Example problem: hint and answer
Integers not divisible by or ?
Hint: PIE. Answer: 266.
Practice (9 problems — type your answers)
1. Derangements .
2. Surjections .
3. Positive integers divisible by or or or ?
4. with . Count?
5. .
6. Length- binary strings with no consecutive s.
7. divisible by or or .
8. Functions that miss at least one value.
9. Integers divisible by neither nor .