QlarIITy

MathematicsJEE Main 2021 · 31 AugustInteger

The number of 4-digit numbers which are neither multiple of 7 nor multiple of 3 is ______ .

Try it before you look.The full solution is on this page, below the answer box, the moment you check. No sign-in needed.

Solution

Core idea. Numbers in neither of two sets are the total less the union.

Concept refresher. For two sets inside a universal set UU,

n(A∪B)=n(A)+n(B)−n(A∩B)n(A \cup B) = n(A) + n(B) - n(A \cap B)

and the number of elements in neither is n(U)−n(A∪B)n(U) - n(A \cup B).

Picture the situation. The four-digit numbers run from 1000 to 9999, which is 9000 numbers. Inside this collection are the multiples of 7 and the multiples of 3, which overlap in the multiples of 21. The numbers asked for are those outside both circles of the diagram.

A rectangle for the 9000 four-digit numbers with two overlapping circles inside it. The circle of multiples of 7 holds 857 numbers outside the overlap, the circle of multiples of 3 holds 2571 outside the overlap, the overlap holds 429, and 5143 numbers lie outside both circles.

Approach. Count each set and the overlap, find the union, and subtract from the total.

  1. Step 1: The counts

    There are 9000 four-digit numbers. The multiples of 7 run from 1001 to 9996, which is 1286; the multiples of 3 run from 1002 to 9999, which is 3000; the multiples of 21 run from 1008 to 9996, which is 429.

  2. Step 2: The union

    Counting the multiples of 21 once, the multiples of 7 or 3 number 1286+3000−429=38571286 + 3000 - 429 = 3857.

  3. Step 3: Neither

    So the numbers that are multiples of neither are 9000−3857=51439000 - 3857 = 5143.

Answer. 5143

Sanity check. The fraction of numbers that avoid both 7 and 3 is 67×23=47\dfrac{6}{7} \times \dfrac{2}{3} = \dfrac{4}{7}, and 47×9000≈5143\dfrac{4}{7} \times 9000 \approx 5143.

Common wrong answers

  • 4714: Not adding back the multiples of 21 gives 9000−4286=47149000 - 4286 = 4714.

Key takeaway

The trap. The common multiples are removed twice unless they are added back once.

How toppers think. They check with the product of the fractions that avoid each divisor.

Remember. Neither: n(U)−n(A∪B)n(U) - n(A \cup B)

More on Inclusion–Exclusion Principle