Mathematics (JEE)ModerateCodeforces Div2 D

What is C(3000, 1500) mod 1009, where 1009 is prime?

  1. A. 856
  2. B. 858
  3. C. 703
  4. D. 656

Correct answer: C. 703

Lucas' theorem in base 1009 with 3000 = (2,982) and 1500 = (1,491) gives C(2,1)*C(982,491) mod 1009 = 703.

More Permutations, Combinations and Probability questions

Exams that ask this topic