Mathematics (JEE)Hard

How many subsets of {1, 2, …, 20} (the empty set included) have an element sum divisible by 10?

  1. A. 104857
  2. B. 103840
  3. C. 105888
  4. D. 104864

Correct answer: D. 104864

Track residues of subset sums mod 10 with a dynamic programme over the 20 numbers; the number of subsets with sum ≡ 0 mod 10 is 104864. The value 2²⁰/10 assumes the residues are uniform, which is only approximately true.

More Permutations, Combinations and Probability questions

Exams that ask this topic