JEE Main 2023 · 1 February · morning · Numerical answer · +4 / −0

The number of 3-digit numbers, that are divisible by either 2 or 3 but not divisible by 7, is ____________.

Answer and solution

Answer 514

Solution

Maths sir · 4 steps

First count numbers divisible by 2 or 3, then remove the ones among them that 7 also divides.

  1. Counting tool. The number of multiples of n from 100 to 999 is ⌊ 999/n ⌋ - ⌊ 99/n ⌋. Let A be the multiples of 2 and B the multiples of 3.
  2. Count the union. n(A) = 499 - 49 = 450, n(B) = 333 - 33 = 300, and n(A ∩ B) is the multiples of 6: 166 - 16 = 150. So n(A ∪ B) = 450 + 300 - 150 = 600.
  3. Remove multiples of 7. A number in A ∪ B that 7 divides is a multiple of 14 or of 21. Multiples of 14: 71 - 7 = 64. Multiples of 21: 47 - 4 = 43. Multiples of both, that is of 42: 23 - 2 = 21.

    600 - (64 + 43 - 21) = 600 - 86 = 514

  4. So. The number of 3-digit numbers divisible by 2 or 3 but not by 7 is 514.

The common slip: 600. Stopping after the 2-or-3 count and never taking out the multiples of 7 gives 600, not 514.

The idea to keep. For "in this set but not divisible by k", first build the set with inclusion–exclusion. Then subtract only the part of it that is divisible by k, using the LCMs.

Answer from the NTA final answer key. Solution by PrepWiser.

Study Sets

Asked about 40 times in JEE Main since 2020. This question is from 2023.