# 积性函数

**积性函数**是一种算术函数，即定义在正整数上的函数，其在两个互素整数之积处的值等于它在两个因子处取值之积：若 \( \gcd(a,b) = 1 \)，则 \( f(ab) = f(a)f(b) \)。若该恒等式对所有正整数对都成立、无需互素条件，则称该函数为**完全积性**的。<sup>[1](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/An_Introduction_to_Number_Theory_%28Veerman%29/04%3A_Number_Theoretic_Functions/4.01%3A_New_Page)</sup>算术函数通常取复值。<sup>[1](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/An_Introduction_to_Number_Theory_%28Veerman%29/04%3A_Number_Theoretic_Functions/4.01%3A_New_Page)</sup>

| 关键事实 | 细节 |
|---|---|
| 定义性质 | \( \gcd(a,b)=1 \) 蕴含 \( f(ab)=f(a)f(b) \)；完全积性意味着对所有 \( a,b \) 都有 \( f(ab)=f(a)f(b) \)<sup>[1](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/An_Introduction_to_Number_Theory_%28Veerman%29/04%3A_Number_Theoretic_Functions/4.01%3A_New_Page)</sup> |
| 在 1 处的值 | 非零积性函数满足 \( f(1)=1 \)；若 \( f(1)=0 \)，则函数恒为零<sup>[3](https://zteitler.github.io/analytic-number-theory-notes/sec-af1-multiplicative.html)</sup> |
| 由素数幂决定 | 若 \( n = \prod_{r=1}^{\nu(n)} p_r^{a_r} \)，则 \( f(n) = \prod_{r=1}^{\nu(n)} f(p_r^{a_r}) \)<sup>[2](https://dlmf.nist.gov/27.3)</sup> |
| 完全积性的情形 | \( f(n) = \prod_{r=1}^{\nu(n)} (f(p_r))^{a_r} \)，因此仅凭素数处的值即可决定一切<sup>[2](https://dlmf.nist.gov/27.3)</sup> |
| 经典例子 | 欧拉函数 \( \varphi \)、莫比乌斯函数 \( \mu \)、除数函数 \( d \) 与除数和函数 \( \sigma \) 都是积性的；\( \varphi \) 与 \( \mu \) 不是完全积性的，而刘维尔函数 \( \lambda \) 是<sup>[3](https://zteitler.github.io/analytic-number-theory-notes/sec-af1-multiplicative.html)</sup><sup> • </sup><sup>[4](https://crypto.stanford.edu/pbc/notes/numbertheory/mult.html)</sup> |
| 欧拉乘积 | 对完全积性的 \( f \)，当级数绝对收敛时，\( \sum_{n=1}^{\infty} f(n)n^{-s} = \prod_p (1 - f(p)p^{-s})^{-1} \)<sup>[5](https://visiblecement.nist.gov/27.4)</sup> |
| 计算 | 素数幂处的值决定所有值；线性筛可在 \( O(N) \) 总时间内计算任意积性函数在 \( N \) 以内的值<sup>[6](https://dlmf.nist.gov/draft1/27.20)</sup><sup> • </sup><sup>[7](https://neelmishra.github.io/blog/cp/number-theory-2/arithmetic-functions-sieve.html)</sup> |

## 定义与初步推论

定义中的互素条件，把 \( a \) 与 \( b \) 的素因子彼此独立的情形同二者有重叠的情形区分开来。完全积性函数去掉了这一限制，因此完全积性蕴含积性，反之则不然。<sup>[1](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/An_Introduction_to_Number_Theory_%28Veerman%29/04%3A_Number_Theoretic_Functions/4.01%3A_New_Page)</sup>有些作者还要求积性函数不恒为零；无论采用哪种约定，一个具有积性性质且 \( f(1) = 0 \) 的函数必定处处为零，因为 \( f(n) = f(1 \cdot n) = f(1)f(n) = 0 \)。<sup>[3](https://zteitler.github.io/analytic-number-theory-notes/sec-af1-multiplicative.html)</sup>因此非零积性函数必有 \( f(1) = 1 \)。<sup>[3](https://zteitler.github.io/analytic-number-theory-notes/sec-af1-multiplicative.html)</sup>

这一定义的实际效力在于：积性函数完全由它在素数幂处的值决定。由算术基本定理，若 \( n = \prod_{i=1}^{r} p_i^{l_i} \)，则 \( f(n) = \prod_{i=1}^{r} f(p_i^{l_i}) \)。<sup>[1](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/An_Introduction_to_Number_Theory_%28Veerman%29/04%3A_Number_Theoretic_Functions/4.01%3A_New_Page)</sup><sup> • </sup><sup>[2](https://dlmf.nist.gov/27.3)</sup>对完全积性函数，素数幂处的值本身还可分解：\( f(p^a) = f(p)^a \)，因此仅凭素数处的值即可决定整个函数。<sup>[2](https://dlmf.nist.gov/27.3)</sup>

## 例子

初等数论中的经典函数提供了标准范例。<sup>[3](https://zteitler.github.io/analytic-number-theory-notes/sec-af1-multiplicative.html)</sup><sup> • </sup><sup>[4](https://crypto.stanford.edu/pbc/notes/numbertheory/mult.html)</sup>

- **欧拉函数** \( \varphi(n) \)，计算不超过 \( n \) 且与 \( n \) 互素的整数个数，是积性的但不是完全积性的，因为 \( \varphi(p^2) \neq \varphi(p)^2 \)。<sup>[3](https://zteitler.github.io/analytic-number-theory-notes/sec-af1-multiplicative.html)</sup>用素数幂形式表示，\( \varphi(n) = n \prod_{p \mid n} (1 - p^{-1}) \)。<sup>[2](https://dlmf.nist.gov/27.3)</sup>
- **莫比乌斯函数** \( \mu \) 是积性的但不是完全积性的：\( \mu(p) = -1 \)，而 \( \mu(p^2) = 0 \)。<sup>[3](https://zteitler.github.io/analytic-number-theory-notes/sec-af1-multiplicative.html)</sup>
- **刘维尔函数** \( \lambda(p_1^{a_1} \cdots p_k^{a_k}) = (-1)^{a_1 + \cdots + a_k} \) 是完全积性的。<sup>[3](https://zteitler.github.io/analytic-number-theory-notes/sec-af1-multiplicative.html)</sup>
- **除数函数** \( d(n) \)，即 \( n \) 的除数个数，是积性的，因为 \( d(n) = \sum_{d \mid n} 1 \) 而常函数 1 是完全积性的；类似地，除数和函数 \( \sigma(n) = \sum_{d \mid n} d \) 是积性的，因为 \( f(n) = n \) 是积性的。<sup>[4](https://crypto.stanford.edu/pbc/notes/numbertheory/mult.html)</sup>用素因子形式表示，\( d(n) = \prod_{r=1}^{\nu(n)} (1 + a_r) \)。<sup>[2](https://dlmf.nist.gov/27.3)</sup>
- **幂函数** \( f(n) = n^k \) 是完全积性的，狄利克雷特征也是如此。<sup>[2](https://dlmf.nist.gov/27.3)</sup><sup> • </sup><sup>[4](https://crypto.stanford.edu/pbc/notes/numbertheory/mult.html)</sup>

并非每个自然的计数函数都是积性的。函数 \( \nu(n) \)，即 \( n \) 的不同素因子个数，不是积性的；而 \( f(n) = (-1)^{\nu(n)} \) 是积性的但不是完全积性的。<sup>[8](https://www.iiserkol.ac.in/~kaneenika/Number-Theory-notes.pdf)</sup>

## 封闭性质

积性在若干自然运算下得以保持。两个（完全）积性函数之积仍是（完全）积性函数。<sup>[4](https://crypto.stanford.edu/pbc/notes/numbertheory/mult.html)</sup>对数论更为重要的是，若 \( f \) 是积性的，则其**除数和变换** \( F(n) = \sum_{d \mid n} f(d) \) 也是积性的：当 \( \gcd(m,n) = 1 \) 时，\( mn \) 的每个除数都唯一地分解为乘积 \( rs \)，其中 \( r \mid m \)、\( s \mid n \)，于是求和分解为 \( F(m)F(n) \)。<sup>[4](https://crypto.stanford.edu/pbc/notes/numbertheory/mult.html)</sup>反向步骤，即用 \( F \) 表示 \( f \)，就是莫比乌斯反演。<sup>[4](https://crypto.stanford.edu/pbc/notes/numbertheory/mult.html)</sup>

同样的机制在**狄利克雷卷积** \( (f * g)(n) = \sum_{ab = n} f(a)g(b) \) 下也起作用。一篇关于积性函数狄利克雷级数的综述阐述了：大多数经典恒等式都源于算术函数经狄利克雷卷积或逐点相乘组合时所传递的积性，并以幂函数、除数和函数以及欧拉函数的狄利克雷级数为出发点。<sup>[9](https://arxiv.org/abs/1106.4038)</sup>

## 狄利克雷级数与欧拉乘积

积性函数在解析数论中的重要性，很大程度上来自它们与狄利克雷级数的相互作用。具有积性性质的算术函数对应于允许欧拉乘积表示的狄利克雷级数，而完全积性函数对应于特别简单的这类乘积。<sup>[10](https://people.reed.edu/~jerry/361/lectures/lec03.pdf)</sup>当级数 \( \sum_{n=1}^{\infty} f(n)n^{-s} \) 绝对收敛时，对所有素数的乘积也绝对收敛；若 \( f \) 是完全积性的，则每个因子都是几何级数，从而得到

\[ \sum_{n=1}^{\infty} f(n)n^{-s} = \prod_{p} \left(1 - f(p)p^{-s}\right)^{-1}. \]<sup>[5](https://visiblecement.nist.gov/27.4)</sup>

原型是完全积性函数 \( f(n) = n^{-s} \)，其欧拉乘积就是黎曼 zeta 函数的表示：

\[ \zeta(s) = \sum_{n=1}^{\infty} n^{-s} = \prod_{p} (1 - p^{-s})^{-1}, \qquad \Re(s) > 1. \]<sup>[5](https://visiblecement.nist.gov/27.4)</sup>

欧拉乘积被用来寻找生成积性数论中众多函数的级数，大量研究文献致力于把重要积性函数的狄利克雷级数表示为 zeta 函数的乘积与商。<sup>[5](https://visiblecement.nist.gov/27.4)</sup><sup> • </sup><sup>[9](https://arxiv.org/abs/1106.4038)</sup>

## 计算

由于积性函数由其在素数幂处的值固定，算法直接利用这一结构：要计算一个积性函数，只需确定它在素数幂处的值，再按乘积公式重新组合即可；对完全积性函数，仅素数处的值就足够了。<sup>[6](https://dlmf.nist.gov/draft1/27.20)</sup>在算法数论中，线性筛通过在筛法过程中维护辅助数组，能在 \( O(N) \) 总时间内计算任意积性函数从 1 到 \( N \) 的值，因为只需产生素数幂处的值 \( f(p^a) \)。<sup>[7](https://neelmishra.github.io/blog/cp/number-theory-2/arithmetic-functions-sieve.html)</sup>

## 数论之外的术语

在数论内部，“积性”带有互素这一限定，而“完全积性”是其更强的形式。在本领域之外，积性函数一词通常指完全积性函数，且定义域不限于正整数。<sup>[11](https://oeis.org/wiki/Multiplicative_arithmetic_functions)</sup>

## References

1. [J. J. P. Veerman, 4.1: Multiplicative Functions, An Introduction to Number Theory, Portland State University via PDXOpen, Mathematics LibreTexts](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/An_Introduction_to_Number_Theory_%28Veerman%29/04%3A_Number_Theoretic_Functions/4.01%3A_New_Page)
2. [DLMF §27.3 Multiplicative Properties, NIST Digital Library of Mathematical Functions](https://dlmf.nist.gov/27.3)
3. [Stefan Steinerberger (course notes), Section 2.2 Multiplicative Functions, Analytic Number Theory notes](https://zteitler.github.io/analytic-number-theory-notes/sec-af1-multiplicative.html)
4. [Number Theory: Multiplicative Functions, Stanford cryptography course notes (Paul Burchard)](https://crypto.stanford.edu/pbc/notes/numbertheory/mult.html)
5. [DLMF §27.4 Euler Products and Dirichlet Series, NIST Digital Library of Mathematical Functions](https://visiblecement.nist.gov/27.4)
6. [DLMF §27.20 Methods of Computation: Other Number-Theoretic Functions, NIST Digital Library of Mathematical Functions](https://dlmf.nist.gov/draft1/27.20)
7. [Neel Mishra, Arithmetic Functions & Sieves](https://neelmishra.github.io/blog/cp/number-theory-2/arithmetic-functions-sieve.html)
8. [Kaneenika Sinha, Number Theory notes, IISER Kolkata](https://www.iiserkol.ac.in/~kaneenika/Number-Theory-notes.pdf)
9. [Survey of Dirichlet Series of Multiplicative Arithmetic Functions, arXiv:1106.4038](https://arxiv.org/abs/1106.4038)
10. [Jerry Shurman, MATH 361 Number Theory, Third Lecture, Reed College](https://people.reed.edu/~jerry/361/lectures/lec03.pdf)
11. [Multiplicative arithmetic functions, OEIS Wiki](https://oeis.org/wiki/Multiplicative_arithmetic_functions)

---
*Initially written Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Number theory › Elementary number theory › Arithmetic functions

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/multiplicative-function

English original: https://www.edgepedia.org/multiplicative-function
