# 默比乌斯函数

**默比乌斯函数** μ(n) 是数论中定义在正整数上的算术函数：μ(1) = 1；当 n 是 k 个不同素数的乘积时，μ(n) = (−1)^k；当 n 被某个素数的平方整除时，μ(n) = 0。<sup>[1](https://dlmf.nist.gov/27.2)</sup><sup> • </sup><sup>[2](https://oeis.org/A008683)</sup> 它只取 −1、0 和 1 三个值，并且充当对除数求和的反演核，是默比乌斯反演公式背后的工具。<sup>[3](https://encyclopediaofmath.org/wiki/M%C3%B6bius_inversion)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | μ(1) = 1；当 n 为 k 个不同素数之积时 μ(n) = (−1)^k；其余情形 μ(n) = 0<sup>[1](https://dlmf.nist.gov/27.2)</sup><sup> • </sup><sup>[2](https://oeis.org/A008683)</sup> |
| 最初取值（n = 1, 2, 3, …） | 1, −1, −1, 0, −1, 1, −1, 0, 0, 1, −1, 0, …<sup>[2](https://oeis.org/A008683)</sup> |
| 反演 | g(n) = Σ_{d\|n} f(d) ⟺ f(n) = Σ_{d\|n} g(d) μ(n/d)<sup>[3](https://encyclopediaofmath.org/wiki/M%C3%B6bius_inversion)</sup> |
| 与 zeta 的联系 | 当 Re(s) > 1 时，Σ_{n≥1} μ(n)/n^s = 1/ζ(s)<sup>[2](https://oeis.org/A008683)</sup> |
| 无平方因子密度 | 整数中有 1/ζ(2) = 6/π² ≈ 0.6079 的比例是无平方因子的<sup>[4](https://oeis.org/wiki/Mertens_function)</sup> |
| 梅滕斯函数 | M(n) = Σ_{k≤n} μ(k)；猜想 \|M(n)\| < √n 于 1985 年被推翻<sup>[5](https://ir.cwi.nl/pub/1823/1823D.pdf)</sup> |
| 黎曼假设 | 等价于：对每个 ε > 0，M(x) = O(x^{1/2+ε})<sup>[4](https://oeis.org/wiki/Mertens_function)</sup> |
| 记录值 | M(10^24) = 7,189,337,839；M(10^25) = −258,560,632,948<sup>[6](https://arxiv.org/html/2607.07566)</sup> |

## 定义与最初取值

定义直接从素因数分解读出。每个整数 n > 1 都唯一地分解为素数幂的乘积，这就是算术基本定理，本节诸函数的性质皆由此而来。<sup>[1](https://dlmf.nist.gov/27.2)</sup> 若 n 无平方因子，即没有任何素数能整除它两次，且它有 k 个不同的素因子，则 μ(n) = (−1)^k；若有某个素数的平方整除 n，则 μ(n) = 0。<sup>[1](https://dlmf.nist.gov/27.2)</sup><sup> • </sup><sup>[7](https://mathworld.wolfram.com/MoebiusFunction.html)</sup> n = 1, 2, 3, … 的最初取值为 1, −1, −1, 0, −1, 1, −1, 0, 0, 1, −1, 0, …。<sup>[2](https://oeis.org/A008683)</sup> 零点恰好出现在非无平方因子的整数处：在上面的列表中，μ(4) = μ(8) = μ(9) = μ(12) = 0。<sup>[7](https://mathworld.wolfram.com/MoebiusFunction.html)</sup>

两个结构性质使这个函数有用。它是乘性的，因此只要 a 与 b 互素，就有 μ(ab) = μ(a)μ(b)；它的除数和在 1 之外处处为零：当 n > 1 时，Σ_{d|n} μ(d) = 0。<sup>[8](https://encyclopediaofmath.org/wiki/Moebius_function)</sup> 等价地说，当 n = 1 时 Σ_{d|n} μ(d) 等于 1，否则等于 0——这一筛选恒等式能在任何除数和内部把整数 1 检测出来。<sup>[9](https://visiblecement.nist.gov/27.5)</sup>

## 默比乌斯反演

经典公式断言：对算术函数 f 与 g，

\[ g(n) = \sum_{d \mid n} f(d) \quad \Longleftrightarrow \quad f(n) = \sum_{d \mid n} g(d)\,\mu(n/d). \]

因此，若 g 是 f 的除数和，μ 就能从 g 还原出 f。<sup>[3](https://encyclopediaofmath.org/wiki/M%C3%B6bius_inversion)</sup><sup> • </sup><sup>[10](https://math.gordon.edu/ntic/ntic2021/section-invert-funcs.html)</sup> 其机制是狄利克雷卷积，即乘积 (f∗g)(n) = Σ_{d|n} f(d)g(n/d)。在此乘积下，满足 f(1) ≠ 0 的数论函数集合构成一个阿贝尔群，而 μ 是常函数 E(n) = 1 的逆元。<sup>[9](https://visiblecement.nist.gov/27.5)</sup><sup> • </sup><sup>[8](https://encyclopediaofmath.org/wiki/Moebius_function)</sup> 恒等式 Σ_{d|n} μ(d) = ⌊1/n⌋ 是反演公式的基础。<sup>[9](https://visiblecement.nist.gov/27.5)</sup>

对标准函数作反演会产生新的函数。把公式应用于恒等函数的除数和，便得到欧拉函数 φ(n) = Σ_{d|n} d μ(n/d)。<sup>[3](https://encyclopediaofmath.org/wiki/M%C3%B6bius_inversion)</sup> 一种广义反演可处理兰伯特型级数：G(x) = Σ_{m≥1} F(mx)/m^s 当且仅当 F(x) = Σ_{m≥1} μ(m) G(mx)/m^s。<sup>[9](https://visiblecement.nist.gov/27.5)</sup>

## 与 zeta 函数的联系

μ 的狄利克雷生成函数是黎曼 zeta 函数的倒数：Σ_{n≥1} μ(n)/n^s = 1/ζ(s)；此外还有 Σ_{n≥1} μ(n)x^n/(1−x^n) = x，以及 Σ_{n>0} μ(n)/n = 0。<sup>[2](https://oeis.org/A008683)</sup>

这一联系把 μ 部分和的增长与 ζ(s) 的零点绑在一起。若 M(x) = O(x^θ)，则 ζ(s) 在半平面 Re s > θ 内没有零点。<sup>[11](https://arxiv.org/html/2502.21021)</sup> 特别地，对每个 ε > 0 都有 M(x) = O(x^{1/2+ε})，这等价于黎曼假设，因此这些和的精细行为编码了 zeta 零点的位置。<sup>[4](https://oeis.org/wiki/Mertens_function)</sup><sup> • </sup><sup>[6](https://arxiv.org/html/2607.07566)</sup>

## 梅滕斯函数及其猜想

**梅滕斯函数** M(n) = Σ_{k≤n} μ(k) 累加 μ 的 ±1 与 0 值。1885 年梅滕斯猜想：对所有 n 都有 |M(n)| < √n；1979 年 H. 科恩与 F. 德雷斯通过计算验证了 n ≤ 7.8×10^9 的情形。<sup>[4](https://oeis.org/wiki/Mertens_function)</sup> 1985 年，A. M. 奥德利兹科与赫尔曼·特·里勒利用格基约化算法推翻了这一猜想。<sup>[5](https://ir.cwi.nl/pub/1823/1823D.pdf)</sup><sup> • </sup><sup>[12](https://www.cambridge.org/core/journals/mathematical-proceedings-of-the-cambridge-philosophical-society/article/on-a-mertenstype-conjecture-for-number-fields/B01C7628DF4D57CAE8410901FD6A9321)</sup> 他们的否定证明是间接的，并未给出任何一个满足 |M(x)| > √x 的 x 值；他们推测直到大约 10^20 甚至 10^30 都不存在反例。<sup>[5](https://ir.cwi.nl/pub/1823/1823D.pdf)</sup> OeisWiki 的记述把反例放在 e^(1.59·10^40) 附近，那里 |M(n)|/√n > 1.06；原始论文的间接方法本身并不能展示这一位置。<sup>[4](https://oeis.org/wiki/Mertens_function)</sup><sup> • </sup><sup>[5](https://ir.cwi.nl/pub/1823/1823D.pdf)</sup>

这一否定证明对黎曼假设毫发无损。人们早已知道梅滕斯猜想蕴含 RH，但反过来绝不成立：RH 只需要弱得多的界 |M(n)| ≪ n^{1/2+ε}。<sup>[5](https://ir.cwi.nl/pub/1823/1823D.pdf)</sup><sup> • </sup><sup>[4](https://oeis.org/wiki/Mertens_function)</sup> 2025 年，借助最先进的格算法，最小反例的上界被改进到约 exp(1.96×10^19)，低于此前科特尼克与范德隆猜想的 exp(5.15×10^23)。<sup>[11](https://arxiv.org/html/2502.21021)</sup>

## 数字一览

无平方因子整数的密度可由 μ 推出。由于 μ² 是无平方因子数的特征函数，该密度为 Σ μ(n)/n² = 1/ζ(2) = 6/π² ≈ 0.6079；在无平方因子整数中，素因子个数为奇数与为偶数的各占密度 3/π²，而其余 1 − 6/π² 的整数都有 μ = 0。<sup>[4](https://oeis.org/wiki/Mertens_function)</sup>

如果 μ(n) 表现得像独立的随机符号，M(n) 就会服从标准差约为 0.3898484·√n 的二项模型，在此模型下梅滕斯猜想会对约 1% 的整数失效。<sup>[4](https://oeis.org/wiki/Mertens_function)</sup> 实际计算出的值要小得多：M(10^24) = 7,189,337,839，M(10^25) = −258,560,632,948，而在 10^24 处随机符号的尺度约为 4×10^11。<sup>[6](https://arxiv.org/html/2607.07566)</sup><sup> • </sup><sup>[4](https://oeis.org/wiki/Mertens_function)</sup> 赫斯特 2018 年的振荡结果表明，这个和最终确实会超过平方根尺度：liminf M(x)/x^{1/2} < −1.837625，limsup > 1.826054。<sup>[12](https://www.cambridge.org/core/journals/mathematical-proceedings-of-the-cambridge-philosophical-society/article/on-a-mertenstype-conjecture-for-number-fields/B01C7628DF4D57CAE8410901FD6A9321)</sup> 赫尔夫戈特与汤普森通过计算验证了 33 ≤ x ≤ 10^23 时 |M(x)| < 0.571√x。<sup>[13](https://www.mathtube.org/sites/default/files/lecture-extra-files/Leong.pdf)</sup> 已知最强的无条件界是 M(x) = O(x exp(−C(log x)^{3/5}(log log x)^{−1/5}))，远弱于 √x。<sup>[13](https://www.mathtube.org/sites/default/files/lecture-extra-files/Leong.pdf)</sup> 均值之小——(1/x)|Σ_{n≤x} μ(n)| ≤ exp{−c ln^{3/5} x (ln ln x)^{−1/5}}——蕴含素数分布的渐近律，这正是可证明的结论与猜想的结论之间的差距之所以要紧的原因。<sup>[8](https://encyclopediaofmath.org/wiki/Moebius_function)</sup>

## 与其他算术函数的比较

**刘维尔函数** λ(n) 按重数计算素因子：λ(n) = (−1)^{a_1+…+a_ν}，因此 λ(4) = 1，而 μ(4) = 0。<sup>[1](https://dlmf.nist.gov/27.2)</sup>

欧拉函数 φ(n) 由 μ 经反演得到：φ(n) = Σ_{d|n} d μ(n/d)，这是从除数和还原函数的标准范例之一。<sup>[3](https://encyclopediaofmath.org/wiki/M%C3%B6bius_inversion)</sup> 更一般地，把任何算术函数在除数上求和、再用 μ 重新求和，就能还原原来的函数——通常的算术函数就是这样被“反演”的。<sup>[10](https://math.gordon.edu/ntic/ntic2021/section-invert-funcs.html)</sup>

**偏序集默比乌斯函数**把这一切推广开来。对局部有限的偏序集 P，定义 μ(x,x) = 1；若 x ≰ y 则 μ(x,y) = 0；且对 x < y 有 Σ_{x≤z≤y} μ(x,z) = 0；这套理论在 詹卡洛·罗塔的经典论文中臻于成熟，是代数组合学的基石。<sup>[3](https://encyclopediaofmath.org/wiki/M%C3%B6bius_inversion)</sup> 偏序集公式最早由 路易斯·魏斯纳于 1935 年得到，1936 年菲利普·霍尔独立地注意到了它。<sup>[14](http://sydneymwong.com/assets/wong_mobius.pdf)</sup> 在子集的布尔代数上，对 A ⊆ B 有 μ(A,B) = (−1)^{|B|−|A|}，那里的默比乌斯反演给出容斥原理。<sup>[3](https://encyclopediaofmath.org/wiki/M%C3%B6bius_inversion)</sup> 在整除格上，除非 m | n 且 n/m 无平方因子，否则 μ(m,n) = 0；在后一情形它等于 (−1)^e，其中 e 是 n/m 中素数的个数，由此还原出数论中的 μ。<sup>[3](https://encyclopediaofmath.org/wiki/M%C3%B6bius_inversion)</sup>

## 计算与算法

批量计算 M(n) 使用分段筛法，在区间上制表 μ。2025 年的记录计算用 7.0 天得到 M(10^24)，用 34.6 天得到 M(10^25)，把赫尔夫戈特与汤普森此前 M(10^23) 的记录推进了两个数量级；一个独立的分段筛约用 7.4 天就算出了直到 10^16 的全部梅滕斯值，而此前报道需要 7.5 个月。<sup>[6](https://arxiv.org/html/2607.07566)</sup>

对单个大 n 计算 μ(n) 是另一个问题。所有已知的经典算法都依赖因数分解，而一个显著更快的 μ 算法可能威胁到使用约 10^300 的无平方因子模数的 RSA 型密码系统，因为快速的无平方因子检测会牵涉到快速因数分解。<sup>[15](https://link.springer.com/article/10.1186/s40537-024-00889-7)</sup> 布克、希亚里与基廷给出了第一个不依赖因数分解、能检测非无平方因子 n 的算法，它的确定性运行时间相对于 log n 为次指数级，尽管在实践中并非已知最快。<sup>[15](https://link.springer.com/article/10.1186/s40537-024-00889-7)</sup> 2024 年的一项机器学习研究在 n 最大到 4×10^9 的 317,284 个观测上训练了随机森林与前馈神经网络模型；随机森林达到准确率 0.9493、召回率 0.5865、精确率 0.6626，神经网络则达到准确率 0.7871、召回率 0.9477、精确率 0.2784。<sup>[15](https://link.springer.com/article/10.1186/s40537-024-00889-7)</sup>

## 历史与近期进展

奥古斯特·费迪南德·默比乌斯（August Ferdinand Möbius，1790–1868）在其论文《论一种特殊的级数反演方式》中引入了这个函数，研究的是级数反演中的系数；MacTutor 把该论文系于 1831 年，而《数学百科全书》给出的是 1832 年。<sup>[16](https://mathshistory.st-andrews.ac.uk/Biographies/Mobius/)</sup><sup> • </sup><sup>[8](https://encyclopediaofmath.org/wiki/Moebius_function)</sup> 早在一个多世纪之前，莱昂哈德·欧拉就已隐含地定义了这个函数。<sup>[14](http://sydneymwong.com/assets/wong_mobius.pdf)</sup> 梅滕斯猜想从 1885 年提出，一直到 1985 年才被推翻。<sup>[4](https://oeis.org/wiki/Mertens_function)</sup><sup> • </sup><sup>[5](https://ir.cwi.nl/pub/1823/1823D.pdf)</sup>

自 2023 年以来，记录在几条战线上都有推进。10^24 与 10^25 处的梅滕斯值被算出，把赫尔夫戈特–汤普森的记录推进了两个数量级。<sup>[6](https://arxiv.org/html/2607.07566)</sup> 最小反例的界降到了 exp(1.96×10^19)。<sup>[11](https://arxiv.org/html/2502.21021)</sup> 数域上的梅滕斯型猜想被证明：对任意给定次数的数域，除有限多个外均不成立。<sup>[12](https://www.cambridge.org/core/journals/mathematical-proceedings-of-the-cambridge-philosophical-society/article/on-a-mertenstype-conjecture-for-number-fields/B01C7628DF4D57CAE8410901FD6A9321)</sup> 在相关性方面，在黎曼假设与零点单重性下所做的工作给出对数平均相关 〈μ(n)M(n−1)〉 趋于 −3/π²，这与数值观察一起暗示 μ(n) 与 M(n−1) 之间存在反相关。<sup>[17](https://www.worldscientific.com/doi/10.1142/S1793042126500934)</sup>

## References

1. [DLMF §27.2 Functions — Multiplicative Number Theory, NIST](https://dlmf.nist.gov/27.2)
2. [OEIS A008683 — Möbius (or Moebius) function mu(n)](https://oeis.org/A008683)
3. [Möbius inversion — Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/M%C3%B6bius_inversion)
4. [Mertens function — OeisWiki](https://oeis.org/wiki/Mertens_function)
5. [A. M. Odlyzko and H. J. J. te Riele (1985). Disproof of the Mertens conjecture, CWI](https://ir.cwi.nl/pub/1823/1823D.pdf)
6. [Practical Computations of the Mertens Function: M(10^24) and M(10^25), arXiv](https://arxiv.org/html/2607.07566)
7. [Möbius Function — Wolfram MathWorld](https://mathworld.wolfram.com/MoebiusFunction.html)
8. [Möbius function — Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Moebius_function)
9. [DLMF §27.5 Inversion Formulas, NIST](https://visiblecement.nist.gov/27.5)
10. [Inverting Functions, Number Theory in Context (Gordon College)](https://math.gordon.edu/ntic/ntic2021/section-invert-funcs.html)
11. [On counterexamples to the Mertens conjecture, arXiv (2025)](https://arxiv.org/html/2502.21021)
12. [On a Mertens-type conjecture for number fields, Math. Proc. Camb. Phil. Soc.](https://www.cambridge.org/core/journals/mathematical-proceedings-of-the-cambridge-philosophical-society/article/on-a-mertenstype-conjecture-for-number-fields/B01C7628DF4D57CAE8410901FD6A9321)
13. [Explicit bounds for Möbius sums and 1/ζ(s), Mathtube lecture notes](https://www.mathtube.org/sites/default/files/lecture-extra-files/Leong.pdf)
14. [The Möbius Function and Möbius Inversion, S. Wong](http://sydneymwong.com/assets/wong_mobius.pdf)
15. [Algorithms of the Möbius function by random forests and neural networks, Journal of Big Data (2024)](https://link.springer.com/article/10.1186/s40537-024-00889-7)
16. [August Möbius (1790–1868), MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk/Biographies/Mobius/)
17. [Correlations of the Möbius and Liouville functions with their partial sums, Int. J. Number Theory](https://www.worldscientific.com/doi/10.1142/S1793042126500934)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: 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/mobius-function

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