JEE Main 2021MathematicsPermutation CombinationHardNumerical

JEE Main 2021Permutation Combination Question with Solution

JEE Main 2021 (22 Jul Shift 1)

Question

The sum of all the elements in the set {n{1,2,,100} H.C.F. of n and 2040 is 1} is equal to __________.

Enter your answer

Show full solutionCorrect answer: 1251
Correct answer
1251

Step-by-step explanation

The prime factorisation of the given number is 2040=23×3×5×17

The H.C.F. of n and 2040 is 1 if n is not a multiple of 2, 3, 5 and 17.

Hence n cannot be multiple of 2,3,5 and 17

Then sum is n(1)-(n(2)+n(3)+n(5)+n(17)-n(6)-n(10)-n(34)-n(15)-n(51)-n(85))+n(30))
Where n(a) means the sum of all numbers belonging to the set {1,2,.100} which are divisible by a

=100×1012-2×50×512+3×33×342+5×20×212+17×5×62-6×16×172-10×10×112-34×2×32-15×6×72-51-85+180

=5050-2550-1683-1050-255+816+550+102+315+51+85-180

=1251

Alternate Solution:
Thus, the sum of all the required numbers taking the common elements only once, is  1+3+5+..+99-3+9+15+21++99-5+25+35+55+65+85+95-17

Now, using the sum of n terms of an arithmetic progression i.e. Sn=n2a+l, where a is the first term and l is the last term.

=5021+99-1723+99-365-17

=502100-172102-365-17

=2500-867-365-17

=1251.

Practice this on the real CBT interface

Solve this JEE Main question (and the rest of the Permutation Combination chapter) on PrepSharp's TCS iON-style CBT player — with timer, bookmarks and session analytics.

Solve interactively →

About this question

This is a previous-year question from JEE Main 2021, covering the Permutation Combination chapter of Mathematics. PrepSharp catalogues every PYQ from JEE Main with a verified answer key and step-by-step solution prepared by IIT alumni — so you can search by chapter, topic or year and revise efficiently.