Module docstring
{"# Natural number multiplicity
This file contains lemmas about the multiplicity function (the maximum prime power dividing a number) when applied to naturals, in particular calculating it for factorials and binomial coefficients.
Multiplicity calculations
Nat.Prime.multiplicity_factorial: Legendre's Theorem. The multiplicity ofpinn!isn / p + ... + n / p ^ bfor anybsuch thatn / p ^ (b + 1) = 0. SeepadicValNat_factorialfor this result stated in the language ofp-adic valuations andsub_one_mul_padicValNat_factorialfor a related result.Nat.Prime.multiplicity_factorial_mul: The multiplicity ofpin(p * n)!isnmore than that ofn!.Nat.Prime.multiplicity_choose: Kummer's Theorem. The multiplicity ofpinn.choose kis the number of carries whenkandn - kare added in basep. SeepadicValNat_choosefor the same result but stated in the language ofp-adic valuations andsub_one_mul_padicValNat_choose_eq_sub_sum_digitsfor a related result.
Other declarations
Nat.multiplicity_eq_card_pow_dvd: The multiplicity ofminnis the number of positive natural numbersisuch thatm ^ idividesn.Nat.multiplicity_two_factorial_lt: The multiplicity of2inn!is strictly less thann.Nat.Prime.multiplicity_something: Specialization ofmultiplicity.somethingto a prime in the naturals. Avoids having to providep ≠ 1and other trivialities, along with translating betweenPrimeandNat.Prime.
Tags
Legendre, p-adic "}