QlarIITy

MathematicsJEE Main 2023 · 25 JanuaryInteger

Let S={1,2,3,5,7,10,11}S = \{1, 2, 3, 5, 7, 10, 11\}. The number of non-empty subsets of SS that have the sum of all elements a 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. Divisibility of a sum depends on how many elements of each remainder are taken.

Concept refresher. A sum is divisible by 3 exactly when the remainders of its terms add to a multiple of 3. If aa terms leave remainder 1 and bb terms leave remainder 2, the condition is

a+2b=3ka + 2b = 3k

for a whole number kk.

Picture the situation. On division by 3 the element 3 leaves remainder 0; the elements 1, 7 and 10 leave 1; and 2, 5 and 11 leave 2. Only the remainders matter for divisibility of the sum. The element 3 never changes the remainder, so it can be put in or left out of any suitable subset.

Approach. Find the allowed numbers of elements of each remainder, count the choices, and allow for the element 3.

  1. Step 1: The condition

    Take aa elements of remainder 1 and bb of remainder 2. The sum leaves the same remainder as a+2ba + 2b, which is a multiple of 3 exactly when a−ba - b is. With aa and bb from 0 to 3, the pairs are (0,0)(0, 0), (1,1)(1, 1), (2,2)(2, 2), (3,3)(3, 3), (0,3)(0, 3) and (3,0)(3, 0).

  2. Step 2: Count

    These give 1+9+9+1+1+1=221 + 9 + 9 + 1 + 1 + 1 = 22 choices, using 3C1=3C2=3{}^3C_1 = {}^3C_2 = 3. The element 3 can be included or not, which doubles this to 44, and removing the empty set leaves 43.

Answer. 43

Sanity check. The set has 27=1282^7 = 128 subsets, and about one third of them should have a sum divisible by 3; 44 is close to a third of 128.

Common wrong answers

  • 44: Forgetting to remove the empty set gives 44.
  • 39: Missing the pairs (0,3)(0, 3) and (3,0)(3, 0) gives 20 choices and 2×20−1=392 \times 20 - 1 = 39.

Key takeaway

The trap. The empty set has sum zero but is excluded by the words non-empty.

How toppers think. They expect about one third of all subsets and compare.

Remember. a+2b=3ka + 2b = 3k

More on Combinations