Lucas' Theorem
Lesson · Advanced
Number Theory: Combinatorial Number Theory
Lucas' Theorem
Let p be a prime. Write m and n in base p
Then
By the Binomial Theorem
By Freshman's Dream
Now consider the coefficient of
To obtain this term, we must choose
from the respective factors
Their coefficients are
Hence the coefficient of x^n is
But the coefficient of x^n on the left is binom{m}{n}. Therefore
Find
In base 3
Therefore, by Lucas' Theorem
Thus
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