Mathematics (JEE)ModerateCodeforces Div2 D
What is C(1024, 512) mod 3?
- A. 0
- B. 1
- C. 2
- D. 7
Correct answer: A. 0
Lucas' theorem: 1024 = 1101221 and 512 = 0200222 in base 3. In the second digit from the left 512 has a 2 where 1024 has a 1, and C(1, 2) = 0, so C(1024, 512) ≡ 0 (mod 3). Multiplying the digit-wise binomials without spotting that zero factor is the usual slip.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- What is C(50, 20) mod 13, where 13 is prime?
- What is the exponent of 2 in the prime factorisation of C(100, 50)?
- How many trailing zeros does C(200, 100) have when written in base 10?
- What is the sum of C(20, k)^2 for k = 0 to 19, taken modulo 1009?
- What is 12!/(3! 4! 5!) modulo 13?
- How many entries of row 500 of Pascal's triangle (C(500, k) for k = 0 to 500) are odd?