# 帕斯卡三角形

**帕斯卡三角形**是一个三角形排列的数阵，其中第*n*行第*k*个位置的项为二项式系数\( \binom{n}{k} \)，每一个内部数字都是其正上方两个数字之和。各行依次为1；1，1；1，2，1；1，3，3，1，行与位置均从零开始计数。<sup>[1](https://arxiv.org/abs/1708.07429)</sup>这些相同的数字既是从*n*个物体中选取*k*个的方法数，也作为\( (x+y)^n \)展开式的系数出现，还给出抛硬币结果的概率——这正是该三角形处于代数、组合数学与概率论交汇处的原因。<sup>[2](https://www.feynmanlectures.caltech.edu/I_06.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义规则 | \( \binom{n}{k} = \binom{n-1}{k-1} + \binom{n-1}{k} \)，其中\( \binom{n}{0} = \binom{n}{n} = 1 \)；每一项都是其上方两项之和<sup>[3](https://r-knott.surrey.ac.uk/PascalsTriangle/pascalsTriangle.html)</sup> |
| 封闭形式 | \( \binom{n}{k} = \dfrac{n!}{k!(n-k)!} \)<sup>[2](https://www.feynmanlectures.caltech.edu/I_06.html)</sup> |
| 行和 | 第*n*行各项之和为\( 2^n \)，与*n*次抛硬币的\( 2^n \)种可能结果数相吻合<sup>[3](https://r-knott.surrey.ac.uk/PascalsTriangle/pascalsTriangle.html)</sup> |
| 最早已知的出现 | 哈拉尤达（Halayudha）在10世纪末对平伽拉（Pingala）《韵律学经》（Chandahsutra）的注释中给出了二项式系数的三角形排列，用于计算短音节与长音节模式<sup>[4](https://plato.stanford.edu/entries/umar-khayyam/index.html)</sup> |
| 中国与波斯的优先权 | 贾宪（约1050年）用该三角形开*n*次方，其成果经由杨辉1261年的著作传世；阿尔·卡拉吉（al-Karaji）在奥马尔·海亚姆（Omar Khayyam）已佚著作之前便讨论过它<sup>[5](https://mathshistory.st-andrews.ac.uk//Biographies/Jia_Xian/)</sup><sup> • </sup><sup>[6](https://mathshistory.st-andrews.ac.uk//Biographies/Khayyam/)</sup> |
| 帕斯卡的论著 | 《算术三角形论》（*Treatise on the Arithmetical Triangle*），1653年出版，是关于该三角形最重要的早期著作<sup>[7](https://mathshistory.st-andrews.ac.uk/Chronology/11/)</sup><sup> • </sup><sup>[8](https://mathshistory.st-andrews.ac.uk/Biographies/Pascal/)</sup> |
| 隐藏的分形 | 将各项对2取模，在行数趋于无穷的极限下形成谢尔宾斯基三角形<sup>[1](https://arxiv.org/abs/1708.07429)</sup> |

## 构造与二项式定理

帕斯卡三角形由一条规则生成。从顶点处孤零零的一个1开始，下方每个数都是其上方两个位置上数字之和，空位视为零。<sup>[3](https://r-knott.surrey.ac.uk/PascalsTriangle/pascalsTriangle.html)</sup>这条加法规则并非布局的偶然巧合：它恰好反映了二项式系数的组合方式——从*n*个物品中选取*k*个，要么包含某个固定物品，有\( \binom{n-1}{k-1} \)种选法，要么不包含它，有\( \binom{n-1}{k} \)种选法。<sup>[9](https://www3.cs.stonybrook.edu/~skiena/392/lectures/week6/)</sup>

与代数的联系通过二项式定理建立，该定理展开一个和的幂：

\[ (x+y)^n = \sum_{k=0}^{n} \binom{n}{k} x^{k} y^{n-k} \]

\( x^k y^{n-k} \)的系数是\( \binom{n}{k} \)，因为从*n*个因子中选出哪*k*个贡献*x*，每一种选法恰好产生一次该项。<sup>[9](https://www3.cs.stonybrook.edu/~skiena/392/lectures/week6/)</sup>因此三角形的第3行，1 3 3 1，正是\( (a+b)^3 = a^3 + 3a^2b + 3ab^2 + b^3 \)的系数模式。<sup>[9](https://www3.cs.stonybrook.edu/~skiena/392/lectures/week6/)</sup>帕斯卡关于这些系数的工作经由约翰·沃利斯（John Wallis）传承，引导艾萨克·牛顿（Isaac Newton）于1665年发现了适用于分数次幂和负次幂的广义二项式定理。<sup>[8](https://mathshistory.st-andrews.ac.uk/Biographies/Pascal/)</sup><sup> • </sup><sup>[7](https://mathshistory.st-andrews.ac.uk/Chronology/11/)</sup>

## 概率

帕斯卡三角形回答了概率论中一个基本的计数问题：抛*n*次硬币，\( 2^n \)个等可能序列中有多少个恰好产生*k*个正面？答案是\( \binom{n}{k} \)，即第*n*行中的项，因此概率为\( \binom{n}{k}/2^n \)。<sup>[2](https://www.feynmanlectures.caltech.edu/I_06.html)</sup>同一张图也可以读作路径计数：每一项等于从顶点到该位置向下路径的数目，每次抛掷分出正面和反面两条分支。<sup>[2](https://www.feynmanlectures.caltech.edu/I_06.html)</sup>

对于非等可能的结果，三角形仍然提供计数因子。若一次试验中某种结果的概率为*p*，另一种为\( q = 1-p \)，则*n*次试验中恰好有*k*次成功的概率为

\[ P(k,n) = \binom{n}{k} p^{k} q^{n-k} \]

即伯努利分布，或称二项分布。<sup>[2](https://www.feynmanlectures.caltech.edu/I_06.html)</sup>行和恒等式\( \sum_{r=0}^{n} \binom{n}{r} = 2^n \)表达的正是：对于公平硬币，这些概率穷尽了所有结果。<sup>[3](https://r-knott.surrey.ac.uk/PascalsTriangle/pascalsTriangle.html)</sup>

## 三角形内部的数字模式

**斐波那契数。** 将三角形沿向右上方的浅对角线求和，得到1，1，2，3，5，8，13，依此类推。原因就在加法规则本身：一条对角线上的每一项都是前两条对角线各取一项之和，因此对角线之和满足斐波那契递推关系\( D(i) = D(i-1) + D(i-2) \)。<sup>[3](https://r-knott.surrey.ac.uk/PascalsTriangle/pascalsTriangle.html)</sup>

**分形。** 按奇偶性给每一项着色，即对三角形取模2，便显现出谢尔宾斯基三角形，在行数趋于无穷的极限下，图案恰好就是该分形。<sup>[1](https://arxiv.org/abs/1708.07429)</sup>对于素数*p*，三角形对*p*取模后的非零项构成广义谢尔宾斯基图案，其中每一递归层包含\( p(p+1)/2 \)个整体的副本；分形维数为\( \ln[p(p+1)/2] / \ln p \)。<sup>[1](https://arxiv.org/abs/1708.07429)</sup><sup> • </sup><sup>[10](https://www.mathstat.dal.ca/FQ/Scanned/31-2/reiter.pdf)</sup>对于合数模，图案是各素数幂因子图案的并集；例如模6时，可以看到模2图案与模3图案的重叠形状。<sup>[1](https://arxiv.org/abs/1708.07429)</sup>哪些项能被某个素数整除，由卢卡斯定理（Lucas's theorem）确定，该定理将\( \binom{n}{k} \bmod p \)与*n*和*k*的*p*进制数字联系起来。<sup>[1](https://arxiv.org/abs/1708.07429)</sup>

## 历史

在帕斯卡之前数百年，这个三角形便以其他名称、为其他目的而为人所知。其最早已知的三角形排列出现在公元10世纪末印度注释家哈拉尤达为平伽拉《韵律学经》所作的注释中（平伽拉本人约活动于公元前200年），在那里它仅用于计算梵语诗歌中短音节与长音节的组合。<sup>[4](https://plato.stanford.edu/entries/umar-khayyam/index.html)</sup>历史学家阿穆利亚·库马尔·巴格（Amulya Kumar Bag）1966年的一项研究指出，同一数阵在印度被称为*meru-prastara*，比它在中国出现的时间早了好几个世纪。<sup>[11](https://repository.ias.ac.in/70374/)</sup>

在中国，数学家贾宪（1010—1070）既理解该三角形及其生成规则——将上方两数相加得到下方之数——又计算到了第6行的二项式系数：1 6 15 20 15 6 1。他用该三角形开*n*次方并求解多项式方程，实质上就是如今所称的鲁菲尼-霍纳法（Ruffini-Horner method）。他的著作已佚，该三角形经由杨辉1261年的《详解九章算法》传世，杨辉此书正是为了阐释和传播贾宪的数学；在中国，该数阵被称为杨辉三角。<sup>[5](https://mathshistory.st-andrews.ac.uk//Biographies/Jia_Xian/)</sup><sup> • </sup><sup>[12](https://www.math93.com/index.php/histoire-des-maths/les-developpements/le-triangle-de-pascal)</sup><sup> • </sup><sup>[13](https://amsi.org.au/ESA_Senior_Years/SeniorTopic1/1c/1c_4history_2.html)</sup>

在伊斯兰世界，阿尔·卡拉吉（约953—1029）研究过二项式展开，奥马尔·海亚姆在一部现已失传的代数书中讨论过该三角形，不过他并非第一人；在伊朗，该三角形被称为海亚姆三角。<sup>[6](https://mathshistory.st-andrews.ac.uk//Biographies/Khayyam/)</sup><sup> • </sup><sup>[4](https://plato.stanford.edu/entries/umar-khayyam/index.html)</sup><sup> • </sup><sup>[13](https://amsi.org.au/ESA_Senior_Years/SeniorTopic1/1c/1c_4history_2.html)</sup>阿尔·萨马瓦勒（al-Samaw'al）在12世纪使用过以某种三角形形式计算的二项式系数，他究竟是独立发现该方法，还是从中国的资料中学得，至今未有定论。<sup>[5](https://mathshistory.st-andrews.ac.uk//Biographies/Jia_Xian/)</sup>

在欧洲，该三角形最早的印刷记录出现在彼得鲁斯·阿皮亚努斯（Petrus Apianus，1495—1552）一部书的卷首插图中，16世纪又出现于斯蒂费尔（Stifel）、舍伊贝尔（Scheubel）、塔尔塔利亚（Tartaglia）和邦贝利（Bombelli）的著作中。<sup>[13](https://amsi.org.au/ESA_Senior_Years/SeniorTopic1/1c/1c_4history_2.html)</sup><sup> • </sup><sup>[11](https://repository.ias.ac.in/70374/)</sup>在意大利，它至今仍被称为塔尔塔利亚三角，以尼科洛·塔尔塔利亚（Niccolo Tartaglia，1500—1577）命名。<sup>[13](https://amsi.org.au/ESA_Senior_Years/SeniorTopic1/1c/1c_4history_2.html)</sup>布莱兹·帕斯卡（Blaise Pascal，1623—1662）并非研究该数阵的第一人，但他1653年出版的《算术三角形论》是关于它最重要的早期论述，在西方大部分地区，他的名字便与该三角形联系在了一起。<sup>[8](https://mathshistory.st-andrews.ac.uk/Biographies/Pascal/)</sup><sup> • </sup><sup>[7](https://mathshistory.st-andrews.ac.uk/Chronology/11/)</sup>

## 计算

该三角形也是一种实用的计算工具。直接用阶乘计算\( \binom{n}{k} \)可能导致中间乘积的算术溢出，即便最终系数完全在整数类型的表示范围之内；因此稳定的实现转而利用递推关系\( \binom{n}{k} = \binom{n-1}{k-1} + \binom{n-1}{k} \)构建数表——这是动态规划的一个标准范例。<sup>[9](https://www3.cs.stonybrook.edu/~skiena/392/lectures/week6/)</sup>该递推关系还保证全程使用精确整数运算，因为三角形中的每一项都是由加法产生的整数。<sup>[3](https://r-knott.surrey.ac.uk/PascalsTriangle/pascalsTriangle.html)</sup>

## References

1. [Bannink, T., Buhrman, H. (2017). Quantum Pascal's Triangle and Sierpinski's carpet. arXiv.](https://arxiv.org/abs/1708.07429)
2. [The Feynman Lectures on Physics, Vol. I, Ch. 6: Probability. Caltech.](https://www.feynmanlectures.caltech.edu/I_06.html)
3. [Knott, R. Pascal's Triangle. University of Surrey.](https://r-knott.surrey.ac.uk/PascalsTriangle/pascalsTriangle.html)
4. [Umar Khayyam. Stanford Encyclopedia of Philosophy.](https://plato.stanford.edu/entries/umar-khayyam/index.html)
5. [Jia Xian (1010–1070). MacTutor History of Mathematics, University of St Andrews.](https://mathshistory.st-andrews.ac.uk//Biographies/Jia_Xian/)
6. [Omar Khayyam (1048–1131). MacTutor History of Mathematics, University of St Andrews.](https://mathshistory.st-andrews.ac.uk//Biographies/Khayyam/)
7. [Chronology for 1650–1675. MacTutor History of Mathematics, University of St Andrews.](https://mathshistory.st-andrews.ac.uk/Chronology/11/)
8. [Blaise Pascal (1623–1662). MacTutor History of Mathematics, University of St Andrews.](https://mathshistory.st-andrews.ac.uk/Biographies/Pascal/)
9. [Skiena, S. CSE 392: Programming Challenges, Combinatorics (Week 6). Stony Brook University.](https://www3.cs.stonybrook.edu/~skiena/392/lectures/week6/)
10. [Reiter, C. A. (1993). Determining the Dimension of Fractals Generated by Pascal's Triangle. Fibonacci Quarterly 31(2).](https://www.mathstat.dal.ca/FQ/Scanned/31-2/reiter.pdf)
11. [Bag, A. K. (1966). Binomial theorem in ancient India. Indian Journal of History of Science 1(1).](https://repository.ias.ac.in/70374/)
12. [Le Triangle de Pascal et coefficients binomiaux. Math93, Histoire des maths.](https://www.math93.com/index.php/histoire-des-maths/les-developpements/le-triangle-de-pascal)
13. [History and applications. AMSI Senior Years, History of Pascal's triangle.](https://amsi.org.au/ESA_Senior_Years/SeniorTopic1/1c/1c_4history_2.html)

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

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Number theory › Elementary number theory › Combinatorial and additive number theory (elementary)

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/pascals-triangle

English original: https://www.edgepedia.org/pascals-triangle
