Mathematics (JEE)Very hardCMI entrance

How many strings of length 6 over {0, 1, 2} have an even digit sum?

  1. A. 365
  2. B. 364
  3. C. 378
  4. D. 729

Correct answer: A. 365

Over the three digits, the number of digits with even value is 2 and odd is 1; the signed sum Σ(−1)^(digit) per position is 1, so the even-sum count is (3⁶ + 1)/2 = 365. Option 364 is a slip in the halving step.

More Permutations, Combinations and Probability questions

Exams that ask this topic