Mathematics (JEE)HardCodeforces Div2 D

How many entries of row 500 of Pascal's triangle (C(500, k) for k = 0 to 500) are odd?

  1. A. 512
  2. B. 128
  3. C. 64
  4. D. 437

Correct answer: C. 64

By Lucas' theorem the odd entries number 2 to the number of 1-bits of 500 = 111110100 in binary, which is 2^6 = 64.

More Permutations, Combinations and Probability questions

Exams that ask this topic