Euler 函数
欧拉函数 | |
---|---|
术语名称 | 欧拉函数 |
英语名称 | Euler's totient function |
别名 | Euler's function, 欧拉φ函数, Euler's phi function |
totative | |
---|---|
术语名称 | |
英语名称 | totative |
totient | |
---|---|
术语名称 | |
英语名称 | totient |
cototient | |
---|---|
术语名称 | |
英语名称 | cototient |
欧拉函数(Euler's totient function)指一个函数,把一个正整数,映射到又不大于其的又与其互质的正整数数目。
定义
Euler 函数 | |
---|---|
运算名称 | Euler 函数 |
运算符号 | [math]\displaystyle{ \varphi() }[/math],[math]\displaystyle{ \phi() }[/math] |
Latex | \varphi , \phi
|
运算对象 | 正整数 |
运算元数 | 1 |
运算结果 | |
定义域 | [math]\displaystyle{ \mathbb{N}^* }[/math] |
陪域 | [math]\displaystyle{ \mathbb{N}^* }[/math] |
对正整数 [math]\displaystyle{ n }[/math] ,称任意不大于 [math]\displaystyle{ n }[/math] 且与 [math]\displaystyle{ n }[/math] 互质的正整数称为正整数 [math]\displaystyle{ n }[/math] 的一个 totative ,正整数 [math]\displaystyle{ n }[/math] 的 totative 的个数称为正整数 [math]\displaystyle{ n }[/math] 的 totient ,将不大于 [math]\displaystyle{ n }[/math] 的其他正整数数目称为正整数 [math]\displaystyle{ n }[/math] 的 cototient 。
对正整数 [math]\displaystyle{ n }[/math] ,记函数将任意正整数 [math]\displaystyle{ n }[/math] 映射到 [math]\displaystyle{ n }[/math] 的 totient ,称为欧拉函数(Euler's totient function),记作 [math]\displaystyle{ \varphi(n) }[/math] ,也有时记作 [math]\displaystyle{ \phi(x) }[/math] 。
性质
- Euler 函数是一个乘性函数。
- 可依次按 [math]\displaystyle{ p_i }[/math] 、 [math]\displaystyle{ p_i^k }[/math] 、 [math]\displaystyle{ n = \prod p_i^{n_i} }[/math] 顺序推断出以下结果。
将正整数 [math]\displaystyle{ n }[/math] 写成其标准分解式,如下:
[math]\displaystyle{ n = \prod_{p_i \mid n} p_i^{n_i} = p_1^{n_1} p_2^{n_2} \dots p_k^{n_k} }[/math]
其中 [math]\displaystyle{ p_i }[/math] 是互不相同的质因数。则有
[math]\displaystyle{ \varphi(n) = n \prod_{p_i \mid n} \left( 1 - \tfrac{1}{p_i} \right) = n \left( 1 - \tfrac{1}{p_1} \right) \left( 1 - \tfrac{1}{p_2} \right) \dots \left( 1 - \tfrac{1}{p_k} \right) }[/math]
等价地,可以写成
[math]\displaystyle{ \varphi(n) = \prod_{p_i \mid n} p_i^{ n_i - 1 } \left( p_i - 1 \right) = p_1^{n_1-1} \left( p_1 - 1 \right) p_2^{n_2-1} \left( p_2 - 1 \right) \dots p_k^{n_k-1} \left( p_k - 1 \right) }[/math]
- 有 [math]\displaystyle{ \sum_{d\mid n} \varphi(d) = \sum_{d\mid n} \varphi(n/d) = n }[/math] 。
也就是说, Euler 函数的 Möbius 变换是恒等函数 [math]\displaystyle{ n }[/math] 。
琐事
命名
单词 totient 有时被译为“欧拉商”或“欧拉商数”,但这个词字面含义上不正确,且很不常用,故未列出。