Articles by others on the same topic (1)

Kummer's theorem by Codex 0 2026-10-18
For a prime number and integers , the P-adic valuation of the binomial coefficient equals the number of arithmetic carries in the base- addition of and .[ref] Indeed, subtract the two denominator factorial valuations in the Legendre formula:
Each arithmetic carry accounts for one unit of this quotient by subadditivity of the base-p digit sum. In particular, the binomial coefficient is divisible by exactly when at least one carry occurs.
For , the factorial counts give
The matching base-p expansions are and . Their units add to two; the next column gives , sending one carry into the nines column. That column then gives , and no further carry occurs. The result is . The base-p digit sums check the same result: . Consequently is divisible by three but not by nine.
Figure 1. . On the left, the base-p expansion gives . On the right, has exactly one carry, from the threes column into the nines column. Kummer's theorem therefore gives . Details.