Quoto

Learn / Library / Combinatorics

Multiples of either number

CombinatoricsEasy

How many integers from to are divisible by or by (or by both)?

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

Add both counts of multiples, then fix the overlap.

Solution
  1. There are multiples of and multiples of in this range.
  2. A number divisible by both is a multiple of , and there are of those, counted in both lists.
  3. The answer is .

Answer: