Lucas Theorem
Learn the Lucas Theorem to calculate the binomial coefficient.
We'll cover the following...
Problem introduction
Given three numbers n
, r
, and p
, compute the above value of % p.
Lucas theorem approach
In number theory, the Lucas’ Theorem expresses the remainder of the division of the binomial coefficient ...