# 三角数

三角数是将物体排列成等边三角形时用来计数的数；它等于从 1 到 n 的整数之和，记作 \( T_n = n(n+1)/2 \)。三角数是最简单的多边形数，这一族还包括平方数和五边形数，它们在整数数列在线百科全书中构成序列 A000217：0, 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 66, 78。<sup>[1](https://oeis.org/wiki/Polygonal_numbers)</sup>

| 关键事实 | 详情 |
|---|---|
| 公式 | \( T_n = 1 + 2 + \cdots + n = \dfrac{n(n+1)}{2} \)；例如 \( T_4 = 1+2+3+4 = 10 \)<sup>[2](https://www.cs.utexas.edu/~vl/teaching/311/ln3.pdf)</sup> |
| 数列 | 0, 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 66, 78, ...（OEIS A000217）<sup>[1](https://oeis.org/wiki/Polygonal_numbers)</sup> |
| 几何形式 | 将筹码放在三角形网格上，第一行放一个，以下每行各多放一个<sup>[3](https://mathworld.wolfram.com/TriangularNumber.html)</sup> |
| 二项式形式 | \( T_n = \binom{n+1}{2} \)，即 n + 1 个物体中两两配对的数目<sup>[1](https://oeis.org/wiki/Polygonal_numbers)</sup> |
| 高斯定理 | 每个非负整数都是三个三角数之和；由高斯证明，并于 1796 年 7 月 10 日记入其日记<sup>[4](https://mathworld.wolfram.com/FermatsPolygonalNumberTheorem.html)</sup> |
| 握手计数 | n 个人之间的握手次数是第 (n − 1) 个三角数<sup>[5](https://nrich.maths.org/problems/handshakes)</sup> |
| 在族中的地位 | 多边形数的 3 边形情形，其通式为 \( \frac{n}{2}[(N_0 - 2)n - (N_0 - 4)] \)<sup>[1](https://oeis.org/wiki/Polygonal_numbers)</sup> |

## 定义与公式

三角数 \( T_n \) 是从 1 到 n 的所有整数之和，因此 \( T_n = \sum_{i=1}^{n} i \)。<sup>[2](https://www.cs.utexas.edu/~vl/teaching/311/ln3.pdf)</sup> 1911 年版《大英百科全书》将同一数列描述为首项为 1、公差为 1 的等差数列连续各项之和：1；1 + 2 = 3；1 + 2 + 3 = 6；1 + 2 + 3 + 4 = 10，一般地 \( 1 + 2 + \cdots + n = \frac{1}{2}n(n+1) \)。<sup>[6](https://en.wikisource.org/wiki/1911_Encyclop%C3%A6dia_Britannica/Polygonal_Numbers)</sup>

这一名称来自其几何排列。三角数可以表示为一个由点构成的三角形网格，其中第一行只有一个元素，此后每一行都比前一行多一个元素。<sup>[3](https://mathworld.wolfram.com/TriangularNumber.html)</sup> 古希腊数学家盖拉萨的尼科马库斯正是用这样的说法描述其构造：在一个单位下方并排放置两个单位，便构成 3 的三角形；再加上下一个数便得到 6。<sup>[7](https://www.ms.uky.edu/~sohum/ma330/files/Chemla_K.Ed.-The_history_of_mathematical_proof_in_ancient_traditions-Cambridge_University_Press_2012.pdf)</sup>

**配对计数。** 公式 \( T_n = \binom{n+1}{2} \) 也可读作二项式系数，即从 n + 1 个元素中选取两个的方法数。<sup>[1](https://oeis.org/wiki/Polygonal_numbers)</sup><sup> • </sup><sup>[2](https://www.cs.utexas.edu/~vl/teaching/311/ln3.pdf)</sup> 这正是最常见的应用——握手问题——的来源：若有 n 个人，则每两人之间握手的总次数是第 (n − 1) 个三角数，因为按每人计一次握手再除以 2，可以避免把每一对重复计算。<sup>[5](https://nrich.maths.org/problems/handshakes)</sup>

## 与其他数列的关系

**平方数。** 相邻三角数之和是一个平方数。<sup>[3](https://mathworld.wolfram.com/TriangularNumber.html)</sup> 等价地说，每个平方数都是两个相邻三角数之和，这与多边形数表中平方数一栏相符，即 \( n^2 = P^{(2)}_3(n-1) + P^{(2)}_3(n) \)。<sup>[1](https://oeis.org/wiki/Polygonal_numbers)</sup>

**四面体数。** 将三角数依次求和便得到四面体数，即计算堆叠在四面体中的物体的三维形数。<sup>[8](https://encyclopediaofmath.org/wiki/Arithmetic_series)</sup>

**平方三角数。** 有些数既是三角数又是平方数，例如 36。更一般地，对于给定的无平方因子的整数 m > 1，两个三角数之间的关系 P = mP′ 有无穷多对解，这是佩尔方程的一个简单推论；对于更高阶的多边形数，这一点可能不成立。<sup>[9](https://arxiv.org/abs/1806.07981)</sup>

## 高斯定理与多边形数定理

费马于 1638 年提出一个断言：任何正整数都可以表示为不超过三个三角数之和、不超过四个平方数之和、不超过五个五边形数之和，或者更一般地，不超过 k 个 k 边形数之和。费马声称自己有证明，但他的证明从未被发现。<sup>[1](https://oeis.org/wiki/Polygonal_numbers)</sup> 拉格朗日于 1770 年证明了平方数情形，即四平方定理。<sup>[1](https://oeis.org/wiki/Polygonal_numbers)</sup>

高斯证明了三角数情形，并于 1796 年 7 月 10 日将此事记入日记。<sup>[4](https://mathworld.wolfram.com/FermatsPolygonalNumberTheorem.html)</sup> 用加性数论的语言说，高斯定理表明三角数构成非负整数的一个三阶基：每个非负整数都是其中三个之和。<sup>[1](https://oeis.org/wiki/Polygonal_numbers)</sup> 柯西于 1813 年证明了完整的横向推广，即多边形数定理，表明每个非负整数都是 k 边形数之和；其高维推广被称为希尔伯特—华林问题，这一领域至今仍很活跃。<sup>[1](https://oeis.org/wiki/Polygonal_numbers)</sup>

## 精细化与现代工作

高斯的三三角数定理已在若干方向上得到加强。2016 年，数论学家德米特里·克拉春证实了孙智伟的一个猜想，证明每个自然数都可表示为四个三角数之和，其中两个下标为偶数，其余两个为奇数。<sup>[10](https://arxiv.org/abs/1602.01133)</sup>

另一条研究路线问的是：哪些三角数的加权和能表示每个非负整数。这样的和若表示所有非负整数，便称为通用的。2013 年，博斯马与凯恩证明了八项三角定理：对于正整数 \( \alpha_1, \dots, \alpha_k \)，和 \( \Delta_{\alpha_1,\dots,\alpha_k} \) 是通用的，当且仅当它能表示 1、2、4、5 和 8。<sup>[11](https://arxiv.org/abs/2408.11310)</sup> 后来的工作对所有偶通用三角数和作了分类，找到 15 个三元、37 个四元和 23 个五元这样的和，并给出了偶通用性的一个有效判据，作为八项三角定理的推广。<sup>[11](https://arxiv.org/abs/2408.11310)</sup> 相关问题的研究确立了：一个结合三角数与平方数的形式是通用的，当且仅当它能表示某一特定有限集合中的每个元素：1、2、3、4、5、6、7、8、10、13、14、15、18、19、20、23、27、28、34、41、47 和 48。<sup>[12](https://arxiv.org/abs/2307.02118)</sup>

## References

1. [Polygonal numbers, OeisWiki](https://oeis.org/wiki/Polygonal_numbers)
2. [Vladimir Lifschitz, Lecture Notes: Triangular Numbers and Their Relatives, University of Texas at Austin](https://www.cs.utexas.edu/~vl/teaching/311/ln3.pdf)
3. [Triangular Number, Wolfram MathWorld](https://mathworld.wolfram.com/TriangularNumber.html)
4. [Fermat's Polygonal Number Theorem, Wolfram MathWorld](https://mathworld.wolfram.com/FermatsPolygonalNumberTheorem.html)
5. [Handshakes, NRICH](https://nrich.maths.org/problems/handshakes)
6. [Polygonal Numbers, 1911 Encyclopædia Britannica, Wikisource](https://en.wikisource.org/wiki/1911_Encyclop%C3%A6dia_Britannica/Polygonal_Numbers)
7. [The History of Mathematical Proof in Ancient Traditions, Cambridge University Press (2012)](https://www.ms.uky.edu/~sohum/ma330/files/Chemla_K.Ed.-The_history_of_mathematical_proof_in_ancient_traditions-Cambridge_University_Press_2012.pdf)
8. [Arithmetic series, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Arithmetic_series)
9. [When are Multiples of Polygonal Numbers again Polygonal Numbers?, arXiv:1806.07981](https://arxiv.org/abs/1806.07981)
10. [Dmitry Krachun (2016), On sums of triangular numbers, arXiv:1602.01133](https://arxiv.org/abs/1602.01133)
11. [Even universal sums of triangular numbers, arXiv:2408.11310](https://arxiv.org/abs/2408.11310)
12. [Universal Sums of Triangular Numbers and Squares, arXiv:2307.02118](https://arxiv.org/abs/2307.02118)

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

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

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/triangular-number

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