# 数根

非负整数的**数根**，是指将其各位数字反复相加，直到只剩一位数字时所得的那个数字。例如，42,918 给出 4 + 2 + 9 + 1 + 8 = 24，再算 2 + 4 = 6，所以它的数根是 6。这一运算等价于取除以 9 的余数，其中数字 9 代表余数为零的情形；它也是古老算术验算方法“弃九法”的基础。<sup>[1](https://www.statgarden.com/maths/digital-root.html)</sup><sup> • </sup><sup>[2](https://miniwebtool.com/digital-root-calculator/)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 反复相加各位数字后得到的那一位数字；也称重复数字和。<sup>[1](https://www.statgarden.com/maths/digital-root.html)</sup><sup> • </sup><sup>[3](https://planetmath.org/digitalroot)</sup> |
| 公式 | 对 n > 0，数根 = 1 + (n − 1) mod 9；零的数根仍为 0。<sup>[1](https://www.statgarden.com/maths/digital-root.html)</sup> |
| 模 9 含义 | 数根就是除以 9 的余数，只不过每个 9 的正倍数，其数根为 9 而非 0。<sup>[1](https://www.statgarden.com/maths/digital-root.html)</sup> |
| 为何成立 | 相加各位数字保持模 9 的余数不变，因为 (10q + r) − (q + r) = 9q。<sup>[4](https://math.stackexchange.com/questions/654523/repeatedly-summing-digits-casting-out-nines-digital-root/654535)</sup> |
| 主要用途 | 弃九法，一种手工算术的验算方法；结果不符即可证明有错，结果相符却不能证明无误。<sup>[1](https://www.statgarden.com/maths/digital-root.html)</sup> |
| 整除性 | 数根可用于检验能否被 3 和 9 整除。<sup>[5](https://www.mathsisfun.org/numbers/digital-root)</sup> |
| 历史 | 这一验算方法可追溯至十世纪，见于医师兼哲学家阿维森纳（Avicenna）；亚伯拉罕·林肯（Abraham Lincoln）在 1824 年的算术本中用过弃九法。<sup>[6](https://users.fmf.uni-lj.si/lavric/Tattersall%20-%20Elementary%20number%20theory%20in%20nine%20chapters.pdf)</sup><sup> • </sup><sup>[7](https://mathworld.wolfram.com/CastingOutNines.html)</sup> |

## 过程如何运作

从一个数 n 出发，用其各位数字之和替换它，再对每个结果重复这一操作。对任何多于一位的数字，其值在每一步都会缩小，因此经过有限步后，过程会稳定在 1 到 9 之间的某一位数字上。<sup>[8](https://web.bogazici.edu.tr/topcu/RecreationalMathematics.pdf)</sup> 即使对很大的数，终点也很快到达，因为一次数字和运算就能把一个 d 位数压缩成至多几位数。<sup>[1](https://www.statgarden.com/maths/digital-root.html)</sup>

**与模 9 的联系。** 一个写成 10q + r 的数，与 q + r 除以 9 的余数相同，因为二者相差 9q。反复应用这一点即可看出，一个数与其数字和总是模 9 同余；这也是熟悉的 9 的整除判定规则成立的原因。<sup>[4](https://math.stackexchange.com/questions/654523/repeatedly-summing-digits-casting-out-nines-digital-root/654535)</sup><sup> • </sup><sup>[2](https://miniwebtool.com/digital-root-calculator/)</sup> 因此，把数字和重复算到只剩一位，最终落在模 9 的余数上，只须作一处调整：每个 9 的正倍数，最终落在 9 而非 0，而按约定只有零的数根为 0。<sup>[1](https://www.statgarden.com/maths/digital-root.html)</sup> 这就给出了 n > 0 时的闭式公式：数根 = 1 + (n − 1) mod 9，它无需迭代即可重现反复求数字和的结果。<sup>[1](https://www.statgarden.com/maths/digital-root.html)</sup>

## 弃九法

**弃九法**是一种利用数根检验算术的方法。其名称来自这样一个事实：计算数根时不必把 9 计入，因为它们对最终结果没有影响；更一般地说，求和过程中任何相加为 9 的数字或数字组都可以舍弃。<sup>[9](https://www.daviddarling.info/encyclopedia/C/casting_out_nines.html)</sup><sup> • </sup><sup>[10](https://gscsricf.org/files/public-papers/mckeown_ppt_082816.pdf)</sup>

这一检验之所以有效，是因为数根与加法、减法、乘法相容：和的数根由各加数的数根决定，其他运算同理。<sup>[4](https://math.stackexchange.com/questions/654523/repeatedly-summing-digits-casting-out-nines-digital-root/654535)</sup> 这种检验是部分的。它只检验模 9 的余数，所以任何恰好是 9 的倍数的错误都会蒙混过关，包括两个数字对调，因为对调会使数改变 9 的倍数。结果不符即可证明有错，但结果相符却不能证明无误。<sup>[1](https://www.statgarden.com/maths/digital-root.html)</sup>

历史上，这一方法常被教给小学生，作为求模 9 最小剩余并对整数计算作部分检验的有效办法。<sup>[4](https://math.stackexchange.com/questions/654523/repeatedly-summing-digits-casting-out-nines-digital-root/654535)</sup> 塔特索尔（Tattersall）的《九章初等数论》（*Elementary number theory in nine chapters*）将这一过程追溯至十世纪的伊斯兰医师兼哲学家阿维森纳（Avicenna），而沃尔弗拉姆数学世界（Wolfram MathWorld）记载，1824 年亚伯拉罕·林肯（Abraham Lincoln）曾用弃九法在他的算术本中检验长乘法。<sup>[6](https://users.fmf.uni-lj.si/lavric/Tattersall%20-%20Elementary%20number%20theory%20in%20nine%20chapters.pdf)</sup><sup> • </sup><sup>[7](https://mathworld.wolfram.com/CastingOutNines.html)</sup>

## 相关性质与用途

由于数根就是模 9 的余数，它可直接给出整除检验：一个数能被 9 整除，当且仅当其数根为 9；能被 3 整除，当且仅当其数根为 3、6 或 9。<sup>[5](https://www.mathsisfun.org/numbers/digital-root)</sup>

在某些情形下，数根在幂运算下也表现出可预测的规律：PlanetMath 指出，在其所考虑的设定中，幂 b<sup>x</sup> 的数根对任意自然数 x 恒为 1，而 y·b<sup>n</sup> 的数根等于 y 的数根。<sup>[3](https://planetmath.org/digitalroot)</sup> 在整数之外，arXiv 上的一项代数处理将数根推广到有理数，并研究了它在任意自然进制表示下关于除法的不变性规则。<sup>[11](https://arxiv.org/abs/2110.03746)</sup>

## References

1. [Digital root calculator, StatGarden](https://www.statgarden.com/maths/digital-root.html)
2. [Free Digital Root Calculator, MiniWebtool](https://miniwebtool.com/digital-root-calculator/)
3. [Digital root, PlanetMath](https://planetmath.org/digitalroot)
4. [Repeatedly summing digits, casting out nines, digital root, Mathematics Stack Exchange](https://math.stackexchange.com/questions/654523/repeatedly-summing-digits-casting-out-nines-digital-root/654535)
5. [Digital Root, Math is Fun](https://www.mathsisfun.org/numbers/digital-root)
6. [Tattersall, Elementary number theory in nine chapters](https://users.fmf.uni-lj.si/lavric/Tattersall%20-%20Elementary%20number%20theory%20in%20nine%20chapters.pdf)
7. [Casting Out Nines, Wolfram MathWorld](https://mathworld.wolfram.com/CastingOutNines.html)
8. [Recreational Mathematics (Bogazici University course notes)](https://web.bogazici.edu.tr/topcu/RecreationalMathematics.pdf)
9. [Casting out nines, David Darling Encyclopedia](https://www.daviddarling.info/encyclopedia/C/casting_out_nines.html)
10. [McKeown, Casting out nines (presentation)](https://gscsricf.org/files/public-papers/mckeown_ppt_082816.pdf)
11. [Properties of the Digital Root and its Extension to Rational Numbers, arXiv:2110.03746](https://arxiv.org/abs/2110.03746)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026; Oct 25, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Arithmetic and number systems › Integer sequences and partitions › Special and named integers › Digit-based named numbers

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/digital-root

English original: https://www.edgepedia.org/digital-root
