Math 2.0

statement theorem

Lucas's theorem

Statement

Let pp be a prime number, and let mm and nn be natural numbers with base-pp digits m=∑i=0kmipim = \sum_{i=0}^{k} m_i p^i and n=∑i=0knipin = \sum_{i=0}^{k} n_i p^i, where 0≤mi,ni<p0 \le m_i, n_i < p. Then (mn)≡∏i=0k(mini)(modp),\binom{m}{n} \equiv \prod_{i=0}^{k} \binom{m_i}{n_i} \pmod p, with the convention (ab)=0\binom{a}{b} = 0 when b>ab > a.

Remarks

A consequence: p∣(mn)p \mid \binom{m}{n} if and only if ni>min_i > m_i for some digit ii. For example, with p=3p = 3: 10=101310 = 101_3 and 4=01134 = 011_3. The theorem gives (104)≡(10)(01)(11)=0(mod3)\binom{10}{4} \equiv \binom{1}{0} \binom{0}{1} \binom{1}{1} = 0 \pmod 3, and indeed (104)=210\binom{10}{4} = 210. For p=2p = 2, the binomial coefficient (mn)\binom{m}{n} is odd if and only if mm has a binary digit 11 at each place where nn has one.

History

Édouard Lucas published the theorem in 1878.

Explanations

L1 human

To find a binomial coefficient modulo a prime pp, write both numbers in base pp. Then compute small binomial coefficients digit by digit and multiply them. This explains the pattern of odd numbers in Pascal's triangle, which looks like the Sierpiński triangle.

What this node needs for W1
  • an inventory row: the row of the inventory that the node accounts for (0 of 1)

The writing levels say how complete the text of a node is. They do not measure its truth.

What this needs

To read this node, read these 4 nodes in this order. The foundations come first, and the list ends with this node.

Each node uses the nodes above it. The colour of the bar on a box shows the evidence level, and the box also gives it as text. The list below has the same nodes.
  • no evidence level
  1. Divisibility definition
  2. Congruence modulo n definition
  3. Prime number definition
  4. Lucas's theorem statement

Sources

  1. Web https://en.wikipedia.org/wiki/Lucas%27s_theorem, Statement