# 等差数列

**等差数列**（AP），又称算术数列，是一列数，其中任意两个相邻项之差为一个常数，称为公差。形式化地说，一个数列 \( \{a_n\} \) 是等差数列，当且仅当存在某个 \( d \)，使得对每个 \( n \) 都有 \( a_{n+1} - a_n = d \)；英文中表示“公差”的说法用定冠词是有道理的，因为这个 \( d \) 是唯一的。<sup>[2](https://www.math.cuhk.edu.hk/course_builder/2122/math1050a/1050-t01-04.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 除首项外，每一项都是前一项加上一个固定数 \( d \)，即公差，它可以是正数、负数或零<sup>[1](https://cgi.csc.liv.ac.uk/~frans/OldLectures/COMP101/week7/arithProg.html)</sup><sup> • </sup><sup>[3](https://sathee.iitk.ac.in/ncert-books/udaan/udaan-math-11/sequences-and-series/math-11-sequences-and-series-1/)</sup> |
| 通项 | \( a_n = a_1 + (n-1)d \)，其中 \( a_1 \) 是首项<sup>[4](https://openstax.org/books/college-algebra-2e/pages/9-2-arithmetic-sequences)</sup> |
| 前 \( n \) 项和 | \( S_n = n a_1 + \tfrac{1}{2} d (n-1) = \tfrac{1}{2} n \left[ 2a_1 + d(n-1) \right] \)<sup>[5](https://archive.lib.msu.edu/crcmath/math/math/a/a351.htm)</sup> |
| 线性刻画 | 一个数列是等差数列，当且仅当其第 \( n \) 项是 \( n \) 的线性表达式，此时公差就是 \( n \) 的系数<sup>[3](https://sathee.iitk.ac.in/ncert-books/udaan/udaan-math-11/sequences-and-series/math-11-sequences-and-series-1/)</sup> |
| 图像 | 各项总落在一条直线上；公差就是恒定的变化率，即斜率<sup>[6](https://openstax.org/books/college-algebra/pages/9-2-arithmetic-sequences)</sup> |
| 数论中的作用 | 狄利克雷1837年定理：对互素的整数 \( a \) 与 \( m \)，存在无穷多个素数 \( p \equiv a \bmod m \)<sup>[7](https://ocw.mit.edu/courses/18-785-number-theory-i-fall-2021/mit18_785f21_full_lec.pdf)</sup> |

## 项与公差

首项为 \( a \)、公差为 \( d \) 的等差数列，其各项依次为 \( a, \; a+d, \; a+2d, \; a+3d, \ldots \)，因此第 \( n \) 项是 \( a + (n-1)d \)。出现因子 \( n-1 \) 是因为首项本身不包含任何一步：当 \( n = 1 \) 时，\( (n-1) = 0 \)，该项就是 \( a \) 本身。<sup>[1](https://cgi.csc.liv.ac.uk/~frans/OldLectures/COMP101/week7/arithProg.html)</sup><sup> • </sup><sup>[8](https://oercollective.caul.edu.au/mathematical-reasoning-investigation/chapter/arithmetic-progressions/)</sup>

**求 \( d \)。** 公差可以用任一项减去其前一项得到，而不必只用第二项减第一项，尽管用前两项相减是通常做法。<sup>[6](https://openstax.org/books/college-algebra/pages/9-2-arithmetic-sequences)</sup> 对于数列 2, 7, 12, 17, 22, ...，各差都是 5，所以 \( a = 2 \)，\( d = 5 \)；对于 4, 0, −4, −8, −12, ...，差为 −4。<sup>[9](https://uosb.org/files/MATHS%20PART%201.pdf)</sup> 像 1, 3, 6, 10, 15, ... 这样的数列不是等差数列，因为没有任何一个差反复出现。<sup>[4](https://openstax.org/books/college-algebra-2e/pages/9-2-arithmetic-sequences)</sup>

**\( d \) 的符号。** 若 \( d = 0 \)，数列为常数列；若 \( d > 0 \)，数列递增；若 \( d < 0 \)，数列递减。<sup>[3](https://sathee.iitk.ac.in/ncert-books/udaan/udaan-math-11/sequences-and-series/math-11-sequences-and-series-1/)</sup>

**等价判别法。** 一个数列是等差数列，当且仅当其一阶差分数列是常数列，等价地，当且仅当其二阶差分全为零。反过来，一个数列是等差数列，当且仅当其第 \( n \) 项是 \( n \) 的线性表达式，此时公差就是 \( n \) 的系数。<sup>[3](https://sathee.iitk.ac.in/ncert-books/udaan/udaan-math-11/sequences-and-series/math-11-sequences-and-series-1/)</sup>

## 等差数列的求和

前 \( n \) 项之和由两个等价的封闭形式给出：<sup>[5](https://archive.lib.msu.edu/crcmath/math/math/a/a351.htm)</sup>

\[ S_n = n a_1 + \tfrac{1}{2} d (n-1) = \tfrac{1}{2} n \left[ 2a_1 + d(n-1) \right]. \]

第二种形式体现了通常归功于少年卡尔·弗里德里希·高斯的配对思想：对于等差数列，整个数列的平均值等于首项与末项的平均值，也等于关于中点对称的任意一对项的平均值。<sup>[10](https://www.americanscientist.org/article/a-magic-bullet)</sup> 在广为流传的版本中，高斯把 1 到 100 的整数配成 50 对，每对之和为 101，从而求出总和。<sup>[11](https://people.cs.kuleuven.be/~adhemar.bultheel/WWW/EMS/r218.php)</sup>

**高斯轶事的来源并不严谨。** 《美国科学家》杂志“计算科学”专栏作者、科学作家布莱恩·海斯收集了一百多个已发表的版本，发现数字和细节在不同讲述中不断变化。<sup>[10](https://www.americanscientist.org/article/a-magic-bullet)</sup><sup> • </sup><sup>[12](https://geniuses.club/blog/carl-friedrich-gauss-iq)</sup> 最早的讲述，也是其他版本的最终来源，是高斯的一位同事在 1855 年高斯去世后不久所写的一部纪念文集；萨托里乌斯·冯·瓦尔特斯豪森近乎同时代的记述只说有人给高斯出了“一个等差数列求和”的题，他立刻解了出来，并没有提到 1 到 100 这些数字。<sup>[13](https://www.americanscientist.org/article/adventures-in-a-less-fretful-cosmos)</sup><sup> • </sup><sup>[14](https://iqmetrics.org/celebrity-iq/carl-friedrich-gauss/)</sup> 具体的 1 到 100 这一细节，是在该轶事流传过程中晚得多的时候才出现的。<sup>[15](https://hsm.stackexchange.com/questions/384/did-gauss-find-the-formula-for-123-ldotsn-2n-1n-in-elementary-school)</sup>

## 与线性函数的联系

等差数列可以看作定义在自然数集上的函数，由于变化率恒定，它是一个线性函数。公差就是该函数的斜率，数列的图像总是一条直线上的一组点。<sup>[6](https://openstax.org/books/college-algebra/pages/9-2-arithmetic-sequences)</sup> 例如，数列 200, 150, 100, 50, 0, ... 的公差为 −50，对应线性函数 \( a_n = -50n + 250 \)，其纵截距可由首项减去公差求得。<sup>[6](https://openstax.org/books/college-algebra/pages/9-2-arithmetic-sequences)</sup>

这种线性性还为有限数列提供了一种计数工具：在 \( a_n = a_1 + d(n-1) \) 中用末项替换 \( a_n \) 并解出 \( n \)，就得到项数。有限数列 8, 1, −6, ..., −41 的公差为 −7，解 \( -41 = 15 - 7n \) 可知它有八项。<sup>[4](https://openstax.org/books/college-algebra-2e/pages/9-2-arithmetic-sequences)</sup>

## 历史

**古代。** 公元前二世纪的希腊几何学家许普西克勒斯（Hypsicles）被丢番图引用，给出过一个将等差数列与多边形数联系起来的定义：若从 1 开始的数按公差递增，则公差为 1 时和为三角形数，公差为 2 时为正方形数，公差为 3 时为五边形数，依此类推。许普西克勒斯在其《上升论》（*Anaphorikos*）中用了三个关于等差数列的引理来估算黄道十二宫星座的上升时间，尽管他假定这些时间构成等差数列本身就是错误的。<sup>[16](https://mathshistory.st-andrews.ac.uk/DSB/Hypsicles.pdf)</sup> 在古代印度，阿耶波多（Aryabhata，生于公元 476 年）的《阿耶波多历数书》（*Aryabhatiya*）包含了求若干类级数之和的公式，以及求等差数列项数的法则。<sup>[17](https://mathshistory.st-andrews.ac.uk//Projects/Pearce/chapter-10/)</sup> 马凯特大学一篇关于该主题历史的学位论文指出，等差数列和等比数列是在希腊人使调和级数崭露头角之后才首次引起关注的，而“series”源自希腊语，“progression”源自拉丁语。<sup>[18](https://epublications.marquette.edu/bachelor_essays/2096/)</sup>

**等差数列中的素数。** 在现代数论中，“等差数列”一词指形如 \( a + bk \)（\( k = 0, 1, 2, \ldots \)）的集合，核心问题是哪些这样的集合含有素数。狄利克雷 1837 年的定理指出，对所有互素的整数 \( a \) 与 \( m \)，存在无穷多个素数 \( p \equiv a \bmod m \)；这一结果比素数定理早六十年，而狄利克雷的证明首次引入了 L 函数。<sup>[7](https://ocw.mit.edu/courses/18-785-number-theory-i-fall-2021/mit18_785f21_full_lec.pdf)</sup><sup> • </sup><sup>[19](https://arxiv.org/abs/0808.1408)</sup> 格林（Green）与陶哲轩（Tao）证明了一个更强的命题：素数本身包含任意长的等差数列，尽管素数在整数中的密度为零。<sup>[20](https://arxiv.org/abs/math/0512114)</sup>

## 在教育中的地位

等差数列作为计数规律很早就出现在学校数学中。英格兰的国家课程要求小学生从不同的倍数开始按 2、5、10 数数，以认识数系中的规律，随后要求学生识别等差数列并求出第 \( n \) 项。<sup>[21](https://www.gov.uk/government/publications/national-curriculum-in-england-mathematics-programmes-of-study/national-curriculum-in-england-mathematics-programmes-of-study)</sup> 十年级的教学大纲要求学生推导线性数列第 \( n \) 项的表达式，并与三角形数、正方形数和立方数一并学习。<sup>[22](https://www.chace.enfield.sch.uk/attachments/download.asp?file=440&type=pdf)</sup> 在高中阶段，赞比亚及其他地方的教学大纲将等差数列和等比数列列为数列与级数中的一个专门单元。<sup>[23](https://www.edu.gov.zm/wp-content/uploads/2025/02/Maths_STEM_FINALISED_Copy1.pdf)</sup>

## References

1. [COMP101 – Arithmetic Progressions, University of Liverpool](https://cgi.csc.liv.ac.uk/~frans/OldLectures/COMP101/week7/arithProg.html)
2. [MATH1050 Arithmetic progression and geometric progression, CUHK](https://www.math.cuhk.edu.hk/course_builder/2122/math1050a/1050-t01-04.pdf)
3. [SATHEE: Sequences and Series – 1 (Arithmetic Progression), IIT Kanpur](https://sathee.iitk.ac.in/ncert-books/udaan/udaan-math-11/sequences-and-series/math-11-sequences-and-series-1/)
4. [9.2 Arithmetic Sequences, College Algebra 2e, OpenStax](https://openstax.org/books/college-algebra-2e/pages/9-2-arithmetic-sequences)
5. [Arithmetic Series, CRC Concise Encyclopedia of Mathematics archive](https://archive.lib.msu.edu/crcmath/math/math/a/a351.htm)
6. [9.2 Arithmetic Sequences, College Algebra, OpenStax](https://openstax.org/books/college-algebra/pages/9-2-arithmetic-sequences)
7. [18.785 Number Theory I, Lecture 18: Dirichlet L-functions, primes in arithmetic progressions, MIT OpenCourseWare](https://ocw.mit.edu/courses/18-785-number-theory-i-fall-2021/mit18_785f21_full_lec.pdf)
8. [Arithmetic progressions, Mathematical Reasoning and Investigation, CAUL Open Educational Resources](https://oercollective.caul.edu.au/mathematical-reasoning-investigation/chapter/arithmetic-progressions/)
9. [Mathematics Secondary Course, Part 1, University of Zambia](https://uosb.org/files/MATHS%20PART%201.pdf)
10. [Brian Hayes, Gauss's Day of Reckoning, American Scientist 94 (2006)](https://www.americanscientist.org/article/a-magic-bullet)
11. [Book review of Hayes, Foolproof, by A. Bultheel, EMS](https://people.cs.kuleuven.be/~adhemar.bultheel/WWW/EMS/r218.php)
12. [Gauss's IQ: The 250–300 Myth and What the Record Shows, Geniuses Club](https://geniuses.club/blog/carl-friedrich-gauss-iq)
13. [Brian Hayes, Adventures in a Less Fretful Cosmos, American Scientist](https://www.americanscientist.org/article/adventures-in-a-less-fretful-cosmos)
14. [Carl Friedrich Gauss' IQ: The Real Story, IQ Metrics](https://iqmetrics.org/celebrity-iq/carl-friedrich-gauss/)
15. [Did Gauss find the formula for 1+2+...+n in elementary school? History of Science and Mathematics Stack Exchange](https://hsm.stackexchange.com/questions/384/did-gauss-find-the-formula-for-123-ldotsn-2n-1n-in-elementary-school)
16. [Hypsicles, Dictionary of Scientific Biography, MacTutor History of Mathematics archive](https://mathshistory.st-andrews.ac.uk/DSB/Hypsicles.pdf)
17. [The Classical period: II. Aryabhata and his commentators, MacTutor History of Mathematics archive](https://mathshistory.st-andrews.ac.uk//Projects/Pearce/chapter-10/)
18. [Arithmetical Progressions, Frances Agnes Scherkenbach, Marquette University](https://epublications.marquette.edu/bachelor_essays/2096/)
19. [There are infinitely many prime numbers in all arithmetic progressions with first term and difference coprime, arXiv](https://arxiv.org/abs/0808.1408)
20. [The dichotomy between structure and randomness, arithmetic progressions, and the primes, arXiv](https://arxiv.org/abs/math/0512114)
21. [National curriculum in England: mathematics programmes of study, GOV.UK](https://www.gov.uk/government/publications/national-curriculum-in-england-mathematics-programmes-of-study/national-curriculum-in-england-mathematics-programmes-of-study)
22. [KS4 Long Term Curriculum Plan: Mathematics, Year 10, Chace Enfield](https://www.chace.enfield.sch.uk/attachments/download.asp?file=440&type=pdf)
23. [Mathematics STEM syllabus, Examinations Council of Zambia](https://www.edu.gov.zm/wp-content/uploads/2025/02/Maths_STEM_FINALISED_Copy1.pdf)

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

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Arithmetic and number systems › Elementary and formal arithmetic › Arithmetic progressions

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/arithmetic-progression

English original: https://www.edgepedia.org/arithmetic-progression
