Mathematics (JEE)HardCodeforces Div2 D
How many entries of row 1000 of Pascal's triangle (C(1000, k) for k = 0 to 1000) are odd?
- A. 64
- B. 256
- C. 1024
- D. 937
Correct answer: A. 64
By Lucas' theorem the number of odd entries is 2 to the number of 1-bits of 1000, which is 2^6 = 64.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- What is the remainder when 30!/(10! 10! 10!) is divided by 1000? (This counts the ways to split 30 labelled items into three ordered…
- For how many k from 0 to 300 is C(300, k) NOT divisible by 3?
- How many positive divisors does N = 44452800 have?
- What is the sum of all positive divisors of N = 6220800, including 1 and N itself?
- How many positive divisors of N = 2^30 3^20 are perfect squares?
- How many ordered pairs of positive integers (a, b) satisfy lcm(a, b) = 720?