跳转到内容

Advertising:

Legendre 定理

来自GSXAB的知识库
勒让德定理
术语名称 勒让德定理
英语名称 Legendre's formula

Legendre 定理(Legendre's formula)是给出阶乘标准质因子分解的定理。

显然质数 [math]\displaystyle{ p }[/math] 能整除阶乘 [math]\displaystyle{ n! }[/math] 当且仅当 [math]\displaystyle{ p\leq n }[/math] ,而 Legendre 定理在此基础上进一步给出了其指数的表达形式。

定理

对任意整数 [math]\displaystyle{ n }[/math] 的阶乘 [math]\displaystyle{ n! }[/math] ,记其分解式中质数 [math]\displaystyle{ p }[/math] 的指数为 [math]\displaystyle{ \nu_p(n!) }[/math] (即 [math]\displaystyle{ p }[/math] 进赋值函数),有

[math]\displaystyle{ \nu_p(n!) = \sum_{k=1}^\infty \left\lfloor \tfrac{n}{p^k} \right\rfloor }[/math]

说明

且由于 [math]\displaystyle{ n }[/math] 有限,随着 [math]\displaystyle{ p^k }[/math] 的增大,直到 [math]\displaystyle{ k \gt \log_p n }[/math] 后就会超过 [math]\displaystyle{ n }[/math] ,因此右侧的无穷求和实际上仅包含 [math]\displaystyle{ \lfloor\log_p n\rfloor }[/math] 个有效项,后续的都是 0 。


整除理论
整除关系 整除、倍数、因数 带余除法
正整数的分类 1质数、合数
质数测试 试除法Fermat 测试 Eratosthenes 筛法Euler 筛法
最大公约数理论 公倍数、最小公倍数 [math]\displaystyle{ \operatorname{lcm} }[/math]公因数、最大公因数 [math]\displaystyle{ \operatorname{gcd} }[/math] 辗转相除法
互质
算术基本定理 算术基本定理 标准质因数分解

Advertising: