# 水仙花数

水仙花数是指在给定进制下，一个 n 位非负整数，它等于其各位数字的 n 次幂之和；在十进制中，153 就是一个水仙花数，因为 1³ + 5³ + 3³ = 153<sup>[1](https://oeis.org/A005188/internal)</sup><sup> • </sup><sup>[2](https://deimel.org/rec_math/dik1.htm)</sup>。按照定义，指数等于位数，这正是该性质罕见的原因：随着数字增大，其各位数字幂次之和的增长远远慢于数字本身。这类数字也被称为阿姆斯特朗数、超完全数或超完全数字不变量（PPDI）<sup>[1](https://oeis.org/A005188/internal)</sup>。在十进制中，恰好存在 88 个正整数水仙花数，从一位数一直到 39 位的巨数；若把 0 也算入则为 89 个，其完整性由迪克·温特（Dik Winter）于 1985 年证明<sup>[3](https://mathworld.wolfram.com/NarcissisticNumber.html)</sup>。

| 关键事实 | 详情 |
|---|---|
| 定义 | 一个 n 位 b 进制数，等于其各位数字的 n 次幂之和；153 = 1³ + 5³ + 3³<sup>[2](https://deimel.org/rec_math/dik1.htm)</sup> |
| 十进制数量 | 88 个水仙花数（计入 0 则为 89 个），由迪克·温特于 1985 年证明，并经 D. 霍伊（D. Hoey）验证<sup>[3](https://mathworld.wolfram.com/NarcissisticNumber.html)</sup><sup> • </sup><sup>[4](https://www.scientificamerican.com/article/all-natural-numbers-are-either-happy-or-sad-some-are-narcissistic-too/)</sup> |
| 最小示例 | 1–9，然后是 153、370、371、407、1634、8208、9474、54748、……<sup>[3](https://mathworld.wolfram.com/NarcissisticNumber.html)</sup> |
| 最大者 | 115,132,219,018,763,992,565,095,597,973,971,522,401，共 39 位<sup>[5](http://recmath.com/Magic%20Squares/narciss.htm)</sup> |
| 有限性上界 | 十进制水仙花数的位数不可能达到 61 位或更多，因为 61 × 9⁶¹ < 10⁶⁰<sup>[4](https://www.scientificamerican.com/article/all-natural-numbers-are-either-happy-or-sad-some-are-narcissistic-too/)</sup> |
| 存在的位数 | 1、3、4、5、6、7、8、9、10、11、14、16、17、19、20、21、23、24、25、27、29、31、32、33、34、35、37、38、39<sup>[6](https://oeis.org/A114904)</sup> |
| 其他进制 | 在任何进制中都是有限的；三进制有 1、2、5、8、17，四进制有 1、2、3、28、29、35、43、55、62、83、243<sup>[3](https://mathworld.wolfram.com/NarcissisticNumber.html)</sup> |

## 定义

阿姆斯特朗数是指 b 进制下的一个 n 位数，其 b 进制各位数字的 n 次幂之和等于该数本身<sup>[2](https://deimel.org/rec_math/dik1.htm)</sup>。指数与位数绑定，因此该性质随数字长度而变化：153 是三位数，用立方检验；而 1634 是四位数，用四次方检验，1⁴ + 6⁴ + 3⁴ + 4⁴ = 1634<sup>[7](https://rgmia.org/papers/v19/v19a32.pdf)</sup>。定义依赖于进制：17 在三进制中是水仙花数，写作 122，因为 17 = 1³ + 2³ + 2³<sup>[8](https://www.scientificlib.com/en/Mathematics/LX/NarcissisticNumber.html)</sup>。

这个名称记录了该性质的自足性：数字实际上只由自身的各位数字构成。约瑟夫·S. 马达奇（Joseph S. Madachy）在 1966 年的著作《假日数学》（*Mathematics on Vacation*）中引入了“水仙花数”一词，而马克斯·拉姆尼（Max Rumney）在 1962 年《娱乐数学杂志》（*Recreational Mathematics Magazine*）的一篇文章中创造了 PDI/PPDI 术语（完全数字不变量、超完全数字不变量）<sup>[9](https://primepuzzles.net/puzzles/puzz_015.htm)</sup>。

## 完整的十进制列表

十进制序列以 1、2、3、4、5、6、7、8、9、153、370、371、407、1634、8208、9474、54748、…… 开始（OEIS A005188）<sup>[3](https://mathworld.wolfram.com/NarcissisticNumber.html)</sup>。所有一位数都平凡地满足条件，因为每个数字都等于自身的一次幂<sup>[4](https://www.scientificamerican.com/article/all-natural-numbers-are-either-happy-or-sad-some-are-narcissistic-too/)</sup>。

分布并不均匀。六位数只有一个例子，即 548,834；不存在二位数、十二位数或十三位数的例子；同一位数下数量最多的是 11 位，共有八个这样的数<sup>[10](https://tangente-mag.com/en/articles/narcissistic-numbers)</sup>。在所有长度中，水仙花数只存在于 1、3、4、5、6、7、8、9、10、11、14、16、17、19、20、21、23、24、25、27、29、31、32、33、34、35、37、38 和 39 位（OEIS A114904）<sup>[6](https://oeis.org/A114904)</sup>。最大的有 39 位：115,132,219,018,763,992,565,095,597,973,971,522,401，等于其各位数字的 39 次幂之和<sup>[5](http://recmath.com/Magic%20Squares/narciss.htm)</sup>。

## 列表为何有限，以及完整性是如何证明的

有限性的论证是一个简单的不等式。一个 n 位 b 进制数的各位数字的 n 次幂之和的最大可能值为 n(b − 1)ⁿ，当 n 很大时，这个值会低于 bⁿ⁻¹，即最小的 n 位数值；一旦如此，就不存在 n 位的水仙花数<sup>[8](https://www.scientificlib.com/en/Mathematics/LX/NarcissisticNumber.html)</sup>。在十进制中，交叉点位于 60 位：60 × 9⁶⁰ ≈ 1.08 × 10⁵⁹ 仍超过 10⁵⁹，但 61 × 9⁶¹ ≈ 0.99 × 10⁶⁰ 低于 10⁶⁰，因此水仙花数的位数不可能超过 60 位<sup>[4](https://www.scientificamerican.com/article/all-natural-numbers-are-either-happy-or-sad-some-are-narcissistic-too/)</sup>。每增加一位，数字乘以 10，而各位数字幂次之和只变为原来的约 9 倍，因此差距稳步扩大<sup>[11](https://math.tools/blog/narcissistic-numbers-numbers-that-contain-their-own-secret)</sup>。

60 位的上界仍然留下了天文数字般的搜索空间，而实际最大值结果是 39 位<sup>[5](http://recmath.com/Magic%20Squares/narciss.htm)</sup>。温特 1985 年的证明利用了一种对称性：水仙花数只取决于其各位数字的多重集，而与顺序无关。高效的搜索会遍历数字的多重集（多少个 0、多少个 1，依此类推直到 9），计算一次各位数字幂次之和，然后检查结果的各位数字是否与多重集匹配，与逐个检验每个数字相比，这节省了天文数字级别的工作量<sup>[11](https://math.tools/blog/narcissistic-numbers-numbers-that-contain-their-own-secret)</sup>。温特用这类搜索证明了十进制中恰好有 88 个正整数水仙花数（计入 0 则为 89 个），D. 霍伊验证了这一结果<sup>[3](https://mathworld.wolfram.com/NarcissisticNumber.html)</sup><sup> • </sup><sup>[11](https://math.tools/blog/narcissistic-numbers-numbers-that-contain-their-own-secret)</sup>。这些计算即使在 1980 年代的硬件上也是可行的：温特 1985 年在 CDC Cyber 上进行十二进制搜索耗时 36 小时 6 分 30.061 秒，后来的台式机完成十进制搜索用 11 分钟，再后来缩短到 1.5 分钟<sup>[2](https://deimel.org/rec_math/dik1.htm)</sup>。

## 相关的数字幂次迭代

水仙花数是一族迭代映射的不动点。对任意数字反复施加“各位数字 n 次幂之和”的运算，要么导向一个不动点，要么导向一个循环；当迭代回到其序列中最小的数时，该数被称为循环数字不变量（RDI）<sup>[3](https://mathworld.wolfram.com/NarcissisticNumber.html)</sup><sup> • </sup><sup>[12](https://archive.lib.msu.edu/crcmath/math/math/n/n023.htm)</sup>。

对于立方（n = 3），每个起始值最终都会落入九个去处之一：不动点 153、370、371 和 407，或者四个循环之一，55 → 250 → 133 → 55；160 → 217 → 352 → 160；136 → 244 → 136；以及 919 → 1459 → 919，或者最终到达 1（“快乐立方”）<sup>[4](https://www.scientificamerican.com/article/all-natural-numbers-are-either-happy-or-sad-some-are-narcissistic-too/)</sup><sup> • </sup><sup>[5](http://recmath.com/Magic%20Squares/narciss.htm)</sup>。这四个不动点恰好就是三位水仙花数。

各位数字平方的情形定义了快乐数，由英国数学家雷金纳德·艾伦比（Reginald Allenby）在 1960 年代推广：如果一个数反复求各位数字平方之和最终到达不动点 1，它就是快乐的<sup>[4](https://www.scientificamerican.com/article/all-natural-numbers-are-either-happy-or-sad-some-are-narcissistic-too/)</sup>。迭代各位数字平方之和映射最终总会到达 0、1、4、16、20、37、42、58、89 或 145 这十个数之一，这一结果归功于波尔赫斯（Porges）1945 年的工作；不快乐的数会落入循环 4、16、37、58、89、145、42、20，再回到 4<sup>[13](https://mathworld.wolfram.com/HappyNumber.html)</sup><sup> • </sup><sup>[5](http://recmath.com/Magic%20Squares/narciss.htm)</sup>。由于水仙花数只有有限多个，它们引发的未解问题远少于快乐数<sup>[4](https://www.scientificamerican.com/article/all-natural-numbers-are-either-happy-or-sad-some-are-narcissistic-too/)</sup>。

## 其他进制与推广

水仙花数的数量很大程度上取决于进制。MathWorld 列出了二到九进制的情况：三进制有 1、2、5、8、17，四进制有 1、2、3、28、29、35、43、55、62、83、243<sup>[3](https://mathworld.wolfram.com/NarcissisticNumber.html)</sup>。约束十进制的同一个不等式在每个进制中都成立，因此对任意进制 b，该集合都是有限的；更一般地，对任意有限乘数 r，存在一个阈值 k*(b, r)，超过它之后 b^(k−1) 大于 r·k·(b−1)^k，不存在解<sup>[8](https://www.scientificlib.com/en/Mathematics/LX/NarcissisticNumber.html)</sup>。

是否每个进制都有一个非平凡（多于一位）的阿姆斯特朗数，是一个未解问题；18 的倍数进制比较困难，最小的九十进制阿姆斯特朗数有 8 位。所有小于 1000 的进制都已被已发表的最小解表覆盖<sup>[2](https://deimel.org/rec_math/dik1.htm)</sup>。L. 戴梅尔 Jr.（L. Deimel Jr.）和 M. 琼斯（M. Jones）的论文《寻找超完全数字不变量》（"Finding Pluperfect Digital Invariants"，《娱乐数学杂志》，第 14 卷第 2 期，1981–82 年，第 87–107 页）列出了二到十进制的 PPDI，包括所有 39 阶以内的 88 个十进制 PPDI<sup>[5](http://recmath.com/Magic%20Squares/narciss.htm)</sup>。还存在基于族的构造：对于不被 3 整除的进制 b，布雷迪型定理族产生不动点，例如 407 和 370 作为同一族在十进制和十一进制的代表，而公式为 (b − 1)(b² + 2)/6 的族在 b = 10 时给出 153<sup>[15](https://doi.org/10.5281/zenodo.18807582)</sup>。

## 变体与比较

放弃幂次等于位数的要求会大大拓宽这一类。完全数字不变量（PDI）是指等于其各位数字的某个固定幂次之和的数：4150 有四位，但等于 4⁵ + 1⁵ + 5⁵ + 0⁵，所以它是 PDI 但不是水仙花数。PDI 没有已知的上界，它们在任意进制中是否有限仍是未解问题<sup>[8](https://www.scientificlib.com/en/Mathematics/LX/NarcissisticNumber.html)</sup>。已知最大的 PDI 有 41 位：36,428,594,490,313,158,783,584,452,532,870,892,261,556，等于其各位数字的 42 次幂之和<sup>[5](http://recmath.com/Magic%20Squares/narciss.htm)</sup>。

其他数字对数字的不变量包括完全数字对数字不变量 3435 = 3³ + 4⁴ + 3³ + 5⁵，其中每个数字升到自身次幂；以及升幂数，如 135 = 1¹ + 3² + 5³<sup>[8](https://www.scientificlib.com/en/Mathematics/LX/NarcissisticNumber.html)</sup>。对于 n = 3、4、5、……，等于其各位数字 n 次幂之和的最小数分别是 153、1634、4150、548834、1741725、……（OEIS A003321）<sup>[3](https://mathworld.wolfram.com/NarcissisticNumber.html)</sup>。进一步的扩展，完全 r-水仙花数，推广了经典的 PPDI；这个集合也是有限的，十进制中大于 1 的前 15 个例子已被列出<sup>[14](https://doi.org/10.5281/zenodo.19036369)</sup>。

与其他有名称的数类相比，水仙花数由数字表示定义，而完全数（等于其真因子之和，与梅森素数相关）与进制无关<sup>[16](https://globalcalcs.com/en/math/narcissistic-number-checker/)</sup>。卡普雷卡routine由 D. R. 卡普雷卡（D. R. Kaprekar）于 1949 年针对四位数发现，迭代地将数字按降序和升序排列并相减；在十进制中，除去会到达 0 的 77 个四位数，其余所有四位数最多经过 8 次迭代都会到达常数 6174<sup>[17](https://mathworld.wolfram.com/KaprekarRoutine.html)</sup>。两者都是迭代现象，但卡普雷卡映射把每个输入送到同一个常数，而数字幂次映射把输入分散到多个不动点和循环中。

## 历史与术语

最早的印刷出现是亨利·欧内斯特·杜德尼（Henry Ernest Dudeney）1926 年的《现代谜题》（*Modern Puzzles*），第 94 题，尽管杜德尼未能找到 371<sup>[18](https://proofwiki.org/wiki/Definition:Pluperfect_Digital_Invariant/Historical_Note)</sup>。G. H. 哈代（G. H. Hardy）在《一个数学家的辩白》（*A Mathematician's Apology*，1940 年，第 25 页）中指出，除 1 之外，恰好有四个数等于其各位数字的立方之和：153、370、371 和 407，并将它们视为没有严肃数学意义的奇趣<sup>[8](https://www.scientificlib.com/en/Mathematics/LX/NarcissisticNumber.html)</sup>。

命名有一条有据可查的链条。马克斯·拉姆尼于 1962 年创造了 PDI/PPDI；马达奇于 1966 年使用了“水仙花数”；1962 年马达奇在其著作第 163–175 页详细研究了这些数字，随后许多作者跟进<sup>[9](https://primepuzzles.net/puzzles/puzz_015.htm)</sup><sup> • </sup><sup>[7](https://rgmia.org/papers/v19/v19a32.pdf)</sup>。阿姆斯特朗之名可追溯到迈克尔·弗雷德里克·阿姆斯特朗（Michael Frederick Armstrong，1941–2020），他大约在 1966 年于罗切斯特大学讲授一门 Fortran 与计算基础课程时，发明了阿姆斯特朗数作为学生的练习<sup>[19](http://blog.deimel.org/2010/05/mystery-solved.html)</sup><sup> • </sup><sup>[1](https://oeis.org/A005188/internal)</sup>。他的身份在 1988 年被确认，此前蒂姆·哈特内尔（Tim Hartnell）关于“阿姆斯特朗数”的专栏于 1988 年 2 月 23 日发表在《澳大利亚人报》（*The Australian*）上，引发了确认阿姆斯特朗的通信，并在 1988 年 4 月 19 日的那一期上跟进<sup>[19](http://blog.deimel.org/2010/05/mystery-solved.html)</sup>。

## References

1. [A005188 - OEIS](https://oeis.org/A005188/internal)
2. [Armstrong Numbers (Dik Winter / Lionel Deimel)](https://deimel.org/rec_math/dik1.htm)
3. [Narcissistic Number -- from Wolfram MathWorld](https://mathworld.wolfram.com/NarcissisticNumber.html)
4. [All Natural Numbers Are Either Happy or Sad. Some Are Narcissistic, Too, Scientific American](https://www.scientificamerican.com/article/all-natural-numbers-are-either-happy-or-sad-some-are-narcissistic-too/)
5. [Narcissistic Numbers, recmath.com](http://recmath.com/Magic%20Squares/narciss.htm)
6. [A114904 - OEIS](https://oeis.org/A114904)
7. [Flexible Power Narcissistic Numbers, RGMIA](https://rgmia.org/papers/v19/v19a32.pdf)
8. [Narcissistic number, Scientific Lib](https://www.scientificlib.com/en/Mathematics/LX/NarcissisticNumber.html)
9. [Puzzle 15. Narcissistic and Handsome Primes, primepuzzles.net](https://primepuzzles.net/puzzles/puzz_015.htm)
10. [Narcissistic numbers and their secrets, Tangente Magazine](https://tangente-mag.com/en/articles/narcissistic-numbers)
11. [Narcissistic Numbers: Numbers That Contain Their Own Secret, Math Tools](https://math.tools/blog/narcissistic-numbers-numbers-that-contain-their-own-secret)
12. [Narcissistic Number, CRC Concise Encyclopedia of Mathematics archive](https://archive.lib.msu.edu/crcmath/math/math/n/n023.htm)
13. [Happy Number -- from Wolfram MathWorld](https://mathworld.wolfram.com/HappyNumber.html)
14. [Perfect R-Narcissistic Numbers in Any Base](https://doi.org/10.5281/zenodo.19036369)
15. [Brady's Theorem Families](https://doi.org/10.5281/zenodo.18807582)
16. [Narcissistic (Armstrong) Number Checker, Calc](https://globalcalcs.com/en/math/narcissistic-number-checker/)
17. [Kaprekar Routine -- from Wolfram MathWorld](https://mathworld.wolfram.com/KaprekarRoutine.html)
18. [Definition: Pluperfect Digital Invariant / Historical Note, ProofWiki](https://proofwiki.org/wiki/Definition:Pluperfect_Digital_Invariant/Historical_Note)
19. [Lionel Deimel's Web Log: Mystery Solved!](http://blog.deimel.org/2010/05/mystery-solved.html)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 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/narcissistic-number

English original: https://www.edgepedia.org/narcissistic-number
