← All lessons

Inclusion-Exclusion (Medium)

AMC 10/12 mid (≈Q9–16) — multi-step.

Inclusion-Exclusion: core idea

Three sets.

Example problem: hint and answer

How many integers from 11 to 10001000 are **not** divisible by 22, 33, or 55?

Hint: Count divisible by 2,3,52,3,5 with PIE, subtract from 10001000. Answer: 266.

Practice (9 problems — type your answers)

  • 1. How many integers from 11 to 100100 are divisible by 22 **or** 33 **or** 55?

  • 2. How many integers from 11 to 4040 are divisible by 22 **or** 33 **or** 55?

  • 3. How many surjective functions are there from a 55-element set to a 33-element set?

  • 4. How many length-66 binary strings contain **no** two consecutive 11s?

  • 5. How many integers 1≤n≤1001\le n\le100 satisfy gcd⁡(n,100)>1\gcd(n,100)>1?

  • 6. How many integers from 11 to 210210 are divisible by 22 **or** 33 **or** 55 **or** 77?

  • 7. How many functions from a 44-element set to a 22-element set are **surjective**?

  • 8. How many integers from 11 to 360360 are divisible by 88 **or** 99 **or** 1010?

  • 9. How many integers from 11 to 3030 are divisible by **neither** 44 **nor** 66?

Inclusion-Exclusion Practice Problems — Medium