Quoto

Learn / Library / Probability

Divisibility by small primes

ProbabilityMedium

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.

A whole number, a decimal, a fraction like 3/8 or a percent.

Hint

Count multiples of each number, then correct for overlaps.

Solution
  1. Single counts: multiples of , of , of , total .
  2. Pair overlaps: multiples of number , of number , of number , total .
  3. Multiples of number , and they must be added back.
  4. The union has numbers.
  5. The probability is .

Answer: