Mathematics — Probability · binomial-coefficients-modular-lucas
Problem
Lucas proved the following general result relating to Exercise 37. If p is any prime number, then (jn)(modp) can be found as follows: Expand n and j in base p as n=s0+s1p+s2p2+⋯+skpk and j=r0+r1p+r2p2+⋯+rkpk, respectively. (Here k is chosen large enough to represent all numbers from 0 to n in base p using k digits.) Let s=(s0,s1,s2,…,sk) and r=(r0,r1,r2,…,rk). Then
(jn)(modp)=i=0∏k(risi)(modp).
For example, if p=7, n=12, and j=9, then
12=5⋅70+1⋅71,9=2⋅70+1⋅71,
so that s=(5,1), r=(2,1), and this result states that
(912)(modp)=(25)(11)(mod7).
Since (912)=220=3(mod7), and (25)=10=3(mod7), we see that the result is correct for this example.
Show that this result implies that, for p=2, the (pk−1)st row of your triangle in Exercise 37 has no zeros.