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 (nr)\binom{n}{r}% p.

Lucas theorem approach

In number theory, the Lucas’ Theorem expresses the remainder of the division of the binomial coefficient (nr)\binom{n}{r} ...