QlarIITy

MathematicsJEE Main 2022 · 26 JuneInteger

LetA={n∈N:H.C.F.(n,45)=1}A = \{n \in N : \text{H.C.F.}(n, 45) = 1\}and let B={2k:k∈{1,2,…,100}}B = \{2k : k \in \{1, 2, \ldots, 100\}\}. Then the sum of all the elements of A∩BA \cap B 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. Conditions of evenness and coprimality combine into multiples of products, handled by inclusion and exclusion.

Concept refresher. The multiples of dd up to nn are d,2d,…,qdd, 2d, \ldots, qd, where qq is the whole part of nd\dfrac{n}{d}, and their sum is

S=d⋅q(q+1)2S = d \cdot \dfrac{q(q + 1)}{2}

Picture the situation. Since 45=32×545 = 3^2 \times 5, the set AA consists of the numbers divisible by neither 3 nor 5. The set BB is the even numbers from 2 to 200. So A∩BA \cap B is the even numbers up to 200 with the multiples of 6 and of 10 removed; the multiples of 30 belong to both groups.

Approach. Subtract the sums of the multiples of 6 and of 10 from the sum of the even numbers, and add back the multiples of 30.

  1. Step 1: The sums

    The even numbers up to 200 add to 2×5050=101002 \times 5050 = 10100. The multiples of 6 add to 6×561=33666 \times 561 = 3366, those of 10 to 10×210=210010 \times 210 = 2100 and those of 30 to 30×21=63030 \times 21 = 630.

  2. Step 2: The required sum

    The multiples of 30 are removed twice, so they are added back once: 10100−3366−2100+630=526410100 - 3366 - 2100 + 630 = 5264.

Answer. 5264

Sanity check. About 23×45=815\dfrac{2}{3} \times \dfrac{4}{5} = \dfrac{8}{15} of the even numbers survive, and 815×10100\dfrac{8}{15} \times 10100 is about 5387, close to the result.

Common wrong answers

  • 4634: Forgetting to add back the multiples of 30 gives 4634.

Key takeaway

The trap. The common multiples are subtracted twice and must be added back once.

How toppers think. They estimate the surviving fraction to check the size of the result.

Remember. 4634+630=52644634 + 630 = 5264

More on Set Operations & Venn Diagrams