Consider a set A = {1, 2, 3, …….., 1000}. How many members of A shall be…

2014

Consider a set A = {1, 2, 3, …….., 1000}. How many members of A shall be divisible by 3 or by 5 or by both 3 and 5 ?

  1. A.

    533

  2. B.

    599

  3. C.

    467

  4. D.

    66

Attempted by 292 students.

Show answer & explanation

Correct answer: C

Solution:

Count how many integers from 1 to 1000 are divisible by 3 or 5 using inclusion–exclusion.

  • Numbers divisible by 3: floor(1000 ÷ 3) = 333.

  • Numbers divisible by 5: floor(1000 ÷ 5) = 200.

  • Numbers divisible by both 3 and 5 (i.e. by 15): floor(1000 ÷ 15) = 66.

  • Apply inclusion–exclusion: 333 + 200 − 66 = 467.

Answer: There are 467 members of the set {1, …, 1000} divisible by 3 or 5 (or both).

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Mppsc Assistant Professor