Mathematics (JEE)HardCodeforces Div2 D

What is C(60, 30) mod 5, where 5 is prime?

  1. A. 4
  2. B. 1
  3. C. 24
  4. D. 0

Correct answer: A. 4

Lucas' theorem in base 5 with 60 = (2,2,0) and 30 = (1,1,0) gives C(2,1)*C(2,1)*C(0,0) mod 5 = 4.

More Permutations, Combinations and Probability questions

Exams that ask this topic