Learn / Library / Probability
Divisibility by small primes
An integer is chosen uniformly at random from to . What is the probability that it is divisible by at least one of , or ?
Checking an answer needs JavaScript. The hint and the solution open without it.
Hint
Count multiples of each number, then correct for overlaps.
Solution
- Single counts: multiples of , of , of , total .
- Pair overlaps: multiples of number , of number , of number , total .
- Multiples of number , and they must be added back.
- The union has numbers.
- The probability is .
Answer: