Lucas' Theorem
Lesson · Advanced
Number Theory
Lucas' Theorem
Let p be a prime. Write m and n in base p
Then
By the Binomial Theorem
Now consider the coefficient of
To obtain this term, we must choose
from the respective factors
Their coefficients are
Hence, the coefficient of on the right-hand side is
But the coefficient of on the left-hand side is . Therefore,
Find
How many integers n with 0≤n≤1000 satisfy
Write 1000 in base 3
The digits are
Therefore the number of possible n is
so the answer is