QlarIITy

MathematicsJEE Main 2021 · 27 AugustInteger

Let S={1,2,3,4,5,6,9}S = \{1, 2, 3, 4, 5, 6, 9\}. Then the number of elements in the setT={A⊆S:A≠ϕT = \{A \subseteq S : A \neq \phiand the sum of all the elements of AA is not 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 elements 3, 6 and 9 leave remainder 0; 1 and 4 leave 1; and 2 and 5 leave 2. It is easier to count the subsets whose sum is a multiple of 3 and remove them from all the non-empty subsets. The elements with remainder 0 can be put in or left out freely.

Approach. Count the non-empty subsets with a sum divisible by 3 and subtract from all the non-empty subsets.

  1. Step 1: Sum divisible by 3

    Take aa elements of remainder 1 and bb of remainder 2, each from 0 to 2. The sum is a multiple of 3 when a=ba = b, giving 1+4+1=61 + 4 + 1 = 6 choices. Any of 3, 6, 9 can be added, giving 6×23=486 \times 2^3 = 48 subsets, of which 47 are non-empty.

  2. Step 2: Subtract

    The set has 27−1=1272^7 - 1 = 127 non-empty subsets, so those whose sum is not a multiple of 3 number 127−47=80127 - 47 = 80.

Answer. 80

Sanity check. Directly: the pairs with a≠ba \neq b give 2+1+2+2+1+2=102 + 1 + 2 + 2 + 1 + 2 = 10 choices, and 10×23=8010 \times 2^3 = 80.

Common wrong answers

  • 79: Subtracting all 48 subsets with a sum divisible by 3, the empty set included, from 127 gives 79.
  • 47: The value 47 counts the non-empty subsets whose sum is a multiple of 3, the opposite of what is asked.

Key takeaway

The trap. The empty set must be left out of both counts or of neither.

How toppers think. They check the result with a direct count of the wanted subsets.

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

More on Combinations