← 学习库 Discrete Mathematics (Levin) · 中英对照 目录

2.2 Arithmetic and Geometric Sequences 等差与等比数列

本页译自 LibreTexts · Discrete Mathematics (Levin) 第 2.2 章。公式经 MathJax 渲染,自定义宏已注入。

Investigate! 探究!

For the patterns of dots below, draw the next pattern in the sequence. Then give a recursive definition and a closed formula for the number of dots in the $n$th pattern.

对于下面这些点阵模式,请画出该数列中的下一个模式。然后给出模式中点数的递推定义与闭式公式。

We now turn to the question of finding closed formulas for particular types of sequences.

现在我们转而讨论如何为特定类型的数列求出闭式公式。

Arithmetic Sequences 等差数列

If the terms of a sequence differ by a constant, we say the sequence is arithmetic. If the initial term ($a_0$) of the sequence is $a$ and the common difference is $d\text{,}$ then we have,

若数列各项之差为常数,则称该数列为等差数列(arithmetic)。若数列的首项($a_0$)为 $a$、公差(common difference)为 $d\text{,}$则有

Recursive definition: $a_n = a_{n-1} + d$ with $a_0 = a\text{.}$

递推定义:$a_n = a_{n-1} + d$,其中 $a_0 = a\text{。}$

Closed formula: $a_n = a + dn\text{.}$

闭式:$a_n = a + dn\text{。}$

How do we know this? For the recursive definition, we need to specify $a_0\text{.}$ Then we need to express $a_n$ in terms of $a_{n-1}\text{.}$ If we call the first term $a\text{,}$ then $a_0 = a\text{.}$ For the recurrence relation, by the definition of an arithmetic sequence, the difference between successive terms is some constant, say $d\text{.}$ So $a_n - a_{n-1} = d\text{,}$ or in other words,

我们怎么知道这一点?对于递推定义,我们需要指定 $a_0\text{。}$接下来,我们要用 $a_{n-1}$ 表示 $a_n\text{。}$若把首项记为 $a\text{,}$则 $a_0 = a\text{。}$就递推关系而言,由等差数列的定义,相邻两项之差是某个常数,记为 $d\text{。}$于是 $a_n - a_{n-1} = d\text{,}$换言之,

$\begin{equation*} a_0 = a \qquad a_n=a_{n-1}+d. \end{equation*}$

即首项 $a_0 = a$,且 $a_n = a_{n-1} + d\text{。}$

To find a closed formula, first write out the sequence in general:

要得到闭式,先把数列按一般形式写出:

$\begin{align*} a_0 & = a\\ a_1 & = a_0 + d = a+d\\ a_2 & = a_1 + d = a+d+d = a+2d\\ a_3 & = a_2 + d = a+2d+d = a+3d\\ & \vdots \end{align*}$

(展开:第 0 项为 $a$,第 1 项为 $a+d$,第 2 项为 $a+2d$,依此类推。)

We see that to find the $n$th term, we need to start with $a$ and then add $d$ a bunch of times. In fact, add it $n$ times. Thus $a_n = a+dn\text{.}$

可见,要得到第 $n$ 项,需从 $a$ 出发,再把 $d$ 加上若干次——确切地说,加 $n$ 次。因此 $a_n = a+dn\text{。}$

Example 1

示例 1

Find recursive definitions and closed formulas for the sequences below. Assume the first term listed is $a_0\text{.}$

求下列各数列的递推定义与闭式。假定所列第一项即为 $a_0\text{。}$
  1. $2, 5, 8, 11, 14, \ldots\text{.}$
  2. $50, 43, 36, 29, \ldots\text{.}$
  1. $2, 5, 8, 11, 14, \ldots\text{。}$
  2. $50, 43, 36, 29, \ldots\text{。}$

Solution

解答

First we should check that these sequences really are arithmetic by taking differences of successive terms. Doing so will reveal the common difference $d\text{.}$

首先应通过求相邻项之差来核验这些数列确实为等差数列。这样做会揭示出公差 $d\text{。}$
  1. $5-2 = 3\text{,}$ $8-5 = 3\text{,}$ etc. To get from each term to the next, we add three, so $d = 3\text{.}$ The recursive definition is therefore $a_n = a_{n-1} + 3$ with $a_0 = 2\text{.}$ The closed formula is $a_n = 2 + 3n\text{.}$
  2. Here the common difference is $-7\text{,}$ since we add $-7$ to 50 to get 43, and so on. Thus we have a recursive definition of $a_n = a_{n-1} - 7$ with $a_0 = 50\text{.}$ The closed formula is $a_n = 50 - 7n\text{.}$
  1. $5-2 = 3\text{,}$ $8-5 = 3\text{,}$其余同理。要从一项得到下一项,我们加 3,故 $d = 3\text{。}$因此递推定义为 $a_n = a_{n-1} + 3$,其中 $a_0 = 2\text{;}$闭式为 $a_n = 2 + 3n\text{。}$
  2. 此处公差为 $-7\text{,}$因为用 $-7$ 加 50 得到 43,依此类推。于是递推定义为 $a_n = a_{n-1} - 7$,其中 $a_0 = 50\text{;}$闭式为 $a_n = 50 - 7n\text{。}$

What about sequences like $2, 6, 18, 54, \ldots\text{?}$ This is not arithmetic because the difference between terms is not constant. However, the ratio between successive terms is constant. We call such sequences geometric.

那么像 $2, 6, 18, 54, \ldots\text{?}$ 这样的数列呢?它不是等差数列,因为各项之差不是常数。然而,相邻两项之比(ratio)是常数。这类数列称为等比数列(geometric)

The recursive definition for the geometric sequence with initial term $a$ and common ratio $r$ is $a_n = a_{n}\cdot r; a_0 = a\text{.}$ To get the next term we multiply the previous term by $r\text{.}$ We can find the closed formula like we did for the arithmetic progression. Write

对首项为 $a$、公比为 $r$ 的等比数列,其递推定义为 $a_n = a_{n}\cdot r; a_0 = a\text{。}$要得到下一项,需将前一项乘以 $r\text{。}$求闭式的方法与等差数列相同。写出

$\begin{align*} a_0 & = a\\ a_1 & = a_0\cdot r\\ a_2 & = a_1 \cdot r = a_0\cdot r\cdot r = a_0\cdot r^2\\ & \vdots \end{align*}$

(展开:第 0 项为 $a$,第 1 项为 $a_0\cdot r$,第 2 项为 $a_0\cdot r^2$,依此类推。)

We must multiply the first term $a$ by $r$ a number of times, $n$ times to be precise. We get $a_n = a\cdot r^{n}\text{.}$

我们必须把首项 $a$ 乘以 $r$ 若干次,准确地说乘 $n$ 次。于是得到 $a_n = a\cdot r^{n}\text{。}$

Geometric Sequences 等比数列

A sequence is called geometric if the ratio between successive terms is constant. Suppose the initial term $a_0$ is $a$ and the common ratio is $r\text{.}$ Then we have,

若相邻两项之比为常数,则称该数列为等比数列(geometric)。设首项 $a_0$ 为 $a$、公比(common ratio)为 $r\text{,}$则有

Example 3

示例 3

Find the recursive and closed formula for the sequences below. Again, the first term listed is $a_0\text{.}$

求下列各数列的递推定义与闭式。同样,所列第一项即为 $a_0\text{。}$
  1. $3, 6, 12, 24, 48, \ldots$
  2. $27, 9, 3, 1, 1/3, \ldots$
  1. $3, 6, 12, 24, 48, \ldots$
  2. $27, 9, 3, 1, 1/3, \ldots$

Solution

解答

Again, we should first check that these sequences really are geometric, this time by dividing each term by its previous term. Assuming this ratio is constant, we will have found $r\text{.}$

同样,应先核验这些数列确为等比数列,这次用每一项除以其前一项。若该比值恒定,就找到了 $r\text{。}$
  1. $6/3 = 2\text{,}$ $12/6 = 2\text{,}$ $24/12 = 2\text{,}$ etc. Yes, to get from any term to the next, we multiply by $r = 2\text{.}$ So the recursive definition is $a_n = 2a_{n-1}$ with $a_0 = 3\text{.}$ The closed formula is $a_n = 3\cdot 2^{n}\text{.}$
  2. The common ratio is $r = 1/3\text{.}$ So the sequence has recursive definition $a_n = \frac{1}{3}a_{n-1}$ with $a_0 = 27$ and closed formula $a_n = 27\cdot \frac{1}{3}^{n}\text{.}$
  1. $6/3 = 2\text{,}$ $12/6 = 2\text{,}$ $24/12 = 2\text{,}$其余同理。是的,要从任一项得到下一项,我们乘以 $r = 2\text{。}$故递推定义为 $a_n = 2a_{n-1}$,其中 $a_0 = 3\text{;}$闭式为 $a_n = 3\cdot 2^{n}\text{。}$
  2. 公比为 $r = 1/3\text{。}$于是该数列的递推定义为 $a_n = \frac{1}{3}a_{n-1}$,其中 $a_0 = 27$;闭式为 $a_n = 27\cdot \frac{1}{3}^{n}\text{。}$

In the examples and formulas above, we assumed that the initial term was $a_0\text{.}$ If your sequence starts with $a_1\text{,}$ you can easily find the term that would have been $a_0$ and use that in the formula. For example, if we want a formula for the sequence $2, 5, 8,\ldots$ and insist that $2= a_1\text{,}$ then we can find $a_0 = -1$ (since the sequence is arithmetic with common difference 3, we have $a_0 + 3 = a_1\text{.}$ Then the closed formula will be $a_n = -1 + 3n\text{.}$

在上面的例子和公式中,我们假设项为 $a_0\text{。}$若你的数列以 $a_1$ 起始,可以轻易求出本应为 $a_0$ 的那一项,再代入公式。例如,若我们要为数列 $2, 5, 8,\ldots$ 求公式,并坚持令 $2 = a_1\text{,}$则可求得 $a_0 = -1$(因为该数列是公差为 3 的等差数列,有 $a_0 + 3 = a_1\text{。}$)。于是闭式为 $a_n = -1 + 3n\text{。}$

If you look at other textbooks or online, you might find that their closed formulas for arithmetic and geometric sequences differ from ours. Specifically, you might find the formulas $a_n = a +(n-1)d$ (arithmetic) and $a_n = a\cdot r^{n-1}$ (geometric). Which is correct? Both! In our case, we take $a$ to be $a_0\text{.}$ If instead we had $a_1$ as our initial term, we would get the (slightly more complicated) formulas you find elsewhere.

如果你查阅其他教材或网上资料,可能会发现它们给出的等差与等比数列闭式与我们不同。具体而言,你可能会看到公式 $a_n = a +(n-1)d$(等差)与 $a_n = a\cdot r^{n-1}$(等比)。哪个正确?都正确!在我们这里,取 $a$ 为 $a_0\text{。}$若改以 $a_1$ 为首项,就会得到你在别处看到的(略微复杂些的)公式。

Sums of Arithmetic and Geometric Sequences 等差与等比数列的求和

Investigate! 探究!

Your neighborhood grocery store has a candy machine full of Skittles.

你家附近的杂货店有一台装满 Skittles 糖果的糖果机。
  1. Suppose that the candy machine currently holds exactly 650 Skittles, and every time someone inserts a quarter, exactly 7 Skittles come out of the machine.
    1. How many Skittles will be left in the machine after 20 quarters have been inserted?
    2. Will there ever be exactly zero Skittles left in the machine? Explain.
  2. What if the candy machine gives 7 Skittles to the first customer who put in a quarter, 10 to the second, 13 to the third, 16 to the fourth, etc. How many Skittles has the machine given out after 20 quarters are put into the machine?
  3. Now, what if the machine gives 4 Skittles to the first customer, 7 to the second, 12 to the third, 19 to the fourth, etc. How many Skittles has the machine given out after 20 quarters are put into the machine?
  1. 假设这台糖果机当前恰好装有 650 颗 Skittles,且每次有人投入一枚 25 美分硬币,就恰好掉出 7 颗。
    1. 投入 20 枚硬币后,机器里还会剩下多少颗 Skittles?
    2. 机器里的 Skittles 会不会恰好剩下零颗?请说明。
  2. 如果糖果机给第一位投币的顾客 7 颗,第二位 10 颗,第三位 13 颗,第四位 16 颗,依此类推。投入 20 枚硬币后,机器共发出了多少颗 Skittles?
  3. 如果机器给第一位顾客 4 颗,第二位 7 颗,第三位 12 颗,第四位 19 颗,依此类推。投入 20 枚硬币后,机器共发出了多少颗 Skittles?

Look at the sequence $(T_n)_{n\ge 1}$ which starts $1, 3, 6, 10, 15,\ldots\text{.}$ These are called the triangular numbers since they represent the number of dots in an equilateral triangle (think of how you arrange 10 bowling pins: a row of 4 plus a row of 3 plus a row of 2 and a row of 1).

观察数列 $(T_n)_{n\ge 1}$,它起始于 $1, 3, 6, 10, 15,\ldots\text{。}$这些数称为三角形数(triangular numbers),因为它们表示等边三角形中的点数(想象一下如何摆放 10 个保龄球瓶:一排 4 个,加一排 3 个、一排 2 个、一排 1 个)。

triangular numbers diagram

(三角形数示意图:用点排成等边三角形。)

Is this sequence arithmetic? No, since $3-1 = 2$ and $6-3 = 3 \ne 2\text{,}$ so there is no common difference. Is the sequence geometric? No. $3/1 = 3$ but $6/3 = 2\text{,}$ so there is no common ratio. What to do?

这个数列是等差数列吗?不是,因为 $3-1 = 2$,而 $6-3 = 3 \ne 2\text{,}$所以没有公差。它是等比数列吗?也不是。$3/1 = 3$ 但 $6/3 = 2\text{,}$所以没有公比。怎么办?

Notice that the differences between terms form an arithmetic sequence: $2, 3, 4, 5, 6,\ldots\text{.}$ This says that the $n$th term of the sequence $1,3,6,10,15,\ldots$ is the sum of the first $n$ terms in the sequence $1,2,3,4,5,\ldots\text{.}$ We say that the first sequence is the sequence of partial sums of the second sequence (partial sums because we are not taking the sum of all infinitely many terms). If we know how to add up the terms of an arithmetic sequence, we could use this to find a closed formula for a sequence whose differences are the terms of that arithmetic sequence.

注意,各项之差构成一个等差数列:$2, 3, 4, 5, 6,\ldots\text{。}$这意味着数列 $1,3,6,10,15,\ldots$ 的第 $n$ 项,就是数列 $1,2,3,4,5,\ldots$ 前 $n$ 项之。我们说前一个数列是后一个数列的部分和数列(sequence of partial sums)(之所以叫部分和,是因为我们并没有取无穷多项的总和)。如果我们知道如何把等差数列的各项相加,就能借此为「差分为该等差数列各项」的数列求出闭式。

This should become clearer if we write the triangular numbers like this:

如果我们把三角形数写成下面这样,就会更清楚:

$\begin{align*} 1 & = 1\\ 3 & = 1+2\\ 6 & = 1 + 2 + 3\\ 10 & = 1+2 + 3+ 4\\ \vdots & \qquad \vdots\\ T_n & = 1 + 2 + 3 + \cdots + n. \end{align*}$

(即把 $T_n$ 写成从 1 到 $n$ 的累加。)

Consider how we could find the sum of the first 100 positive integers (that is, $T_{100}$). Instead of adding them in order, we regroup and add $1+100 = 101\text{.}$ The next pair to combine is $2+99 = 101\text{.}$ Then $3+98 = 101\text{.}$ Keep going. This gives 50 pairs which each add up to $101\text{,}$ so $T_{100} = 101\cdot 50 = 5050\text{.}$1 This insight is usually attributed to Carl Friedrich Gauss, one of the greatest mathematicians of all time, who discovered it as a child when his unpleasant elementary teacher thought he would keep the class busy by requiring them to compute the lengthy sum.

想一想我们如何求前 100 个正整数之和(即 $T_{100}$)。与其按顺序相加,不如重新分组:$1+100 = 101\text{。}$下一对组合是 $2+99 = 101\text{。}$接着 $3+98 = 101\text{。}$以此类推。这样得到 50 对,每对之和都是 $101\text{,}$故 $T_{100} = 101\cdot 50 = 5050\text{。}$1 这一洞见通常归功于卡尔·弗里德里希·高斯——史上最伟大的数学家之一。他童年时,一位令人不快的老师想让学生算这道冗长的求和来消磨课堂时间,他却发现了这个办法。

In general, using this same sort of regrouping, we find that $T_n = \frac{n(n+1)}{2}\text{.}$ Incidentally, this is exactly the same as ${n+1 \choose 2}\text{,}$ which makes sense if you think of the triangular numbers as counting the number of handshakes that take place at a party with $n+1$ people: the first person shakes $n$ hands, the next shakes an additional $n-1$ hands and so on.

一般地,用同样的重新分组方法,我们得到 $T_n = \frac{n(n+1)}{2}\text{。}$顺便指出,这恰好等于 ${n+1 \choose 2}\text{,}$这一点不难理解:把三角形数看作一场有 $n+1$ 人的聚会上发生的握手次数——第一个人与 $n$ 人握手,第二个人再与另外 $n-1$ 人握手,依此类推。

The point of all of this is that some sequences, while not arithmetic or geometric, can be interpreted as the sequence of partial sums of arithmetic and geometric sequences. Luckily there are methods we can use to compute these sums quickly.

这一切的要义在于:有些数列虽既非等差也非等比,却可解释为等差或等比数列的部分和数列。幸而我们有方法能迅速计算这些和。

Summing Arithmetic Sequences: Reverse and Add 等差数列求和:倒序相加

Here is a technique that allows us to quickly find the sum of an arithmetic sequence.

下面这种方法让我们能快速求出等差数列之和。

Example 4

示例 4

Find the sum: $2 + 5 + 8 + 11 + 14 + \cdots + 470\text{.}$

求和:$2 + 5 + 8 + 11 + 14 + \cdots + 470\text{。}$

Solution

解答

The idea is to mimic how we found the formula for triangular numbers. If we add the first and last terms, we get 472. The second term and second-to-last term also add up to 472. To keep track of everything, we might express this as follows. Call the sum $S\text{.}$ Then,

思路是模仿我们求三角形数公式的方法。若把首项与末项相加,得到 472。第二项与倒数第二项相加也是 472。为了理清全部,我们可以如下表示。记该和为 $S\text{。}$于是,
$S =$$2$$+$$8$$+$$467$$+ \cdots +$$470$$+$470
$+ \quad S =$$470$$+$$467$$+$$464$$+ \cdots +$$5$$+$2
$2S =$$472$$+$$472$$+$$472$$+ \cdots +$$472$$+$$472$
(把和 $S$ 与其倒序上下对齐相加:每行对应项之和均为 472,故 $2S$ 是若干个 472 相加。)

To find $2S$ then we add 472 to itself a number of times. What number? We need to decide how many terms (summands) are in the sum. Since the terms form an arithmetic sequence, the $n$th term in the sum (counting $2$ as the 0th term) can be expressed as $2 + 3n\text{.}$ If $2 + 3n = 470$ then $n = 156\text{.}$ So $n$ ranges from 0 to 156, giving 157 terms in the sum. This is the number of 472's in the sum for $2S\text{.}$ Thus

为求 $2S$,我们把 472 自身相加若干次。加几次?我们需要确定该和中共有多少项(被加数)。由于各项构成等差数列,和中第 $n$ 项(把 $2$ 算作第 0 项)可表示为 $2 + 3n\text{。}$若 $2 + 3n = 470$,则 $n = 156\text{。}$于是 $n$ 从 0 取到 156,共 157 项。这就是 $2S$ 之和中 472 的个数。因此

$\begin{equation*} 2S = 157\cdot 472 = 74104 \end{equation*}$

即 $2S$ 等于 157 个 472 相加,得 74104。

It is now easy to find $S\text{.}$

现在很容易求出 $S\text{。}$

$\begin{equation*} S = 74104/2 = 37052 \end{equation*}$

即 $S = 74104/2 = 37052\text{。}$

This will work for any sum of arithmetic sequences. Call the sum $S\text{.}$ Reverse and add. This produces a single number added to itself many times. Find the number of times. Multiply. Divide by 2. Done.

这对任意等差数列之和都适用。记该和为 $S\text{。}$倒序相加。这样会得到一个常数被自身相加多次。求出次数,相乘,再除以 2。完成。

Example 5

示例 5

Find a closed formula for $6 + 10 + 14 + \cdots + (4n - 2)\text{.}$

求 $6 + 10 + 14 + \cdots + (4n - 2)\text{。}$ 的闭式。

Solution

解答

Again, we have a sum of an arithmetic sequence. We need to know how many terms are in the sequence. Clearly each term in the sequence has the form $4k -2$ (as evidenced by the last term). For which values of $k$ though? To get 6, $k = 2\text{.}$ To get $4n-2$ take $k = n\text{.}$ So to find the number of terms, we need to know how many integers are in the range $2,3,\ldots, n\text{.}$ The answer is $n-1\text{.}$ (There are $n$ numbers from 1 to $n\text{,}$ so one less if we start with 2.)

同样,我们得到一个等差数列之和。需要知道该数列共有多少项。显然数列中每一项都具有 $4k -2$ 的形式(由末项可见)。但 $k$ 取哪些值?要得到 6,需 $k = 2\text{。}$要得到 $4n-2$,取 $k = n\text{。}$因此,为求项数,需知道区间 $2,3,\ldots, n$ 中有多少个整数。答案是 $n-1\text{。}$(从 1 到 $n$ 共有 $n$ 个数,若从 2 开始则少一个。)

Now reverse and add:

现在倒序相加:
$S =$$6$$+$$10$$+ \cdots +$$4n-6$$+$$4n-2$
$+ \quad S =$$4n-2$$+$$4n-6$$+ \cdots +$$10$$+$6
$2S =$$4n+4$$+$$4n+4$$+ \cdots +$$4n+4$$+$$4n+4$
(倒序相加后,每一列之和均为 $4n+4$。)

Since there are $n-2$ terms, we get

因为有 $n-2$ 项,得到

$\begin{equation*} 2S = (n-2)(4n+4)\qquad \mbox{ so } \qquad S = \frac{(n-2)(4n+4)}{2} \end{equation*}$

即 $2S = (n-2)(4n+4)$,从而 $S = \frac{(n-2)(4n+4)}{2}\text{。}$

Besides finding sums, we can use this technique to find closed formulas for sequences we recognize as sequences of partial sums.

除了求和,我们还能用这一技巧为那些可识别为部分和数列的序列求出闭式。

Example 6

示例 6

Use partial sums to find a closed formula for $(a_n)_{n\ge 0}$ which starts $2, 3, 7, 14, 24, 37,\ldots$

用部分和求 $(a_n)_{n\ge 0}$ 的闭式,该数列起始于 $2, 3, 7, 14, 24, 37,\ldots\text{。}$

Solution

解答

First, if you look at the differences between terms, you get a sequence of differences: $1,4,7,10,13, \ldots\text{,}$ which is an arithmetic sequence. Written another way:

首先,观察各项之差,得到一个差分数列:$1,4,7,10,13, \ldots\text{,}$它是一个等差数列。换一种写法:

$\begin{align*} a_0 & = 2\\ a_1 & = 2+1\\ a_2 & = 2+1+4\\ a_3 & = 2+1+4+7 \end{align*}$

(即把 $a_n$ 写成首项 2 加上前面若干差分项。)

and so on. We can write the general term of $(a_n)$ in terms of the arithmetic sequence as follows:

依此类推。我们可以用该等差数列把 $(a_n)$ 的通项写作:

$\begin{equation*} a_n = 2 + 1 + 4 + 7 + 10 + \cdots + (1+3(n-1)) \end{equation*}$

即 $a_n = 2 + 1 + 4 + 7 + 10 + \cdots + (1+3(n-1))\text{。}$

(we use $1+3(n-1)$ instead of $1+3n$ to get the indices to line up correctly; for $a_3$ we add up to 7, which is $1+3(3-1)$.

(我们取 $1+3(n-1)$ 而非 $1+3n$,是为了让下标正确对齐;对 $a_3$ 而言,累加到 7,即 $1+3(3-1)$。)

We can reverse and add, but the initial 2 does not fit our pattern. This just means we need to keep the 2 out of the reverse part:

我们可以倒序相加,但开头的 2 并不符合我们的模式。这仅仅意味着要把这个 2 排除在倒序部分之外:
$a_n =$$2$$+$$1$$+$$4$$+ \cdots +$$1+3(n-1)$
$+ ~ a_n =$$2$$+$$1+3(n-1)$$+$$1+3(n-2)$$+ \cdots +$$1$
$2a_n =$$4$$+$$2+3(n-1)$$+$$2+3(n-1)$$+ \cdots +$$2+3(n-1)$
(把倒序的和与原式相加,除首项 2 之外,其余每一列都等于 $2+3(n-1)$。)

Not counting the first term (the 4) there are $n$ summands of $2+3(n-1) = 3n-1$ so the right-hand side becomes $2+(3n-1)n\text{.}$

不计第一项(即 4),共有 $n$ 个 $2+3(n-1) = 3n-1$ 这样的被加数,故等式右边变为 $2+(3n-1)n\text{。}$

Finally, solving for $a_n$ we get

最后,解出 $a_n$ 得

$\begin{equation*} a_n = \d \frac{4+(3n-1)n}{2}. \end{equation*}$

即 $a_n = \frac{4+(3n-1)n}{2}\text{。}$

Just to be sure, we check $a_0 = \frac{4}{2} = 2\text{,}$ $a_1 = \frac{4+2}{2} = 3\text{,}$ etc. We have the correct closed formula.

为保险起见,我们验算:$a_0 = \frac{4}{2} = 2\text{,}$ $a_1 = \frac{4+2}{2} = 3\text{,}$依此类推。我们已得到正确的闭式。

Summing Geometric Sequences: Multiply, Shift and Subtract 等比数列求和:乘、移、减

To find the sum of a geometric sequence, we cannot just reverse and add. Do you see why? The reason we got the same term added to itself many times is because there was a constant difference. So as we added that difference in one direction, we subtracted the difference going the other way, leaving a constant total. For geometric sums, we have a different technique.

求等比数列之和,不能简单地倒序相加。你能看出原因吗?我们之所以得到同一个项被自身相加多次,是因为存在常数差。于是我们朝一个方向加上这个差,朝另一方向减去这个差,留下一个常数总和。对等比和,我们采用另一种技巧。

Example 7

示例 7

What is $3 + 6 + 12 + 24 + \cdots + 12288\text{?}$

$3 + 6 + 12 + 24 + \cdots + 12288\text{?}$ 是多少?

Solution

解答

Multiply each term by 2, the common ratio. You get $2S = 6 + 12 + 24 + \cdots + 24576\text{.}$ Now subtract: $2S - S = -3 + 24576 = 24573\text{.}$ Since $2S - S = S\text{,}$ we have our answer.

把每一项乘以公比 2。得到 $2S = 6 + 12 + 24 + \cdots + 24576\text{。}$现在相减:$2S - S = -3 + 24576 = 24573\text{。}$由于 $2S - S = S\text{,}$我们便得到了答案。

To better see what happened in the above example, try writing it this way:

为了更清楚地看出上面例子中发生了什么,不妨这样写:
$S=$$3 +$$6 + 12 + 24 + \cdots + 12288$
$-~2S=$$6 + 12 + 24 + \cdots + 12288$$+ 24576$
$-S = $$3 +$$0 + 0 + 0 + \cdots + 0$$-24576$
(把 $S$ 乘以公比 2 得到 $2S$,再与原式相减,中间各项全部抵消,只留下首项和新的末项。)

Then divide both sides by $-1$ and we have the same result for $S\text{.}$ The idea is, by multiplying the sum by the common ratio, each term becomes the next term. We shift over the sum to get the subtraction to mostly cancel out, leaving just the first term and new last term.

然后两边同除以 $-1$,便得到与上面相同的 $S$ 之结果。其思想是:把和乘以公比后,每一项都变成它的下一项。我们把和错位相减,使大部分项相互抵消,只留下首项和新的末项。

Example 8

示例 8

Find a closed formula for $S(n) = 2 + 10 + 50 + \cdots + 2\cdot 5^n\text{.}$

求 $S(n) = 2 + 10 + 50 + \cdots + 2\cdot 5^n\text{。}$ 的闭式。

Solution

解答

The common ratio is 5. So we have

公比为 5。于是有
$S$$= 2 + 10 + 50 + \cdots + 2\cdot 5^n$
$-5S$$= 10 + 50 + \cdots + 2\cdot 5^n + 2\cdot5^{n+1}$
$-4S$$= 2 - 2\cdot5^{n+1}$
(把和乘以 5 后错位相减,得 $-4S$。)

Thus $S = \dfrac{2-2\cdot 5^{n+1}}{-4}$

因此 $S = \dfrac{2-2\cdot 5^{n+1}}{-4}\text{。}$

Even though this might seem like a new technique, you have probably used it before.

尽管这看似是一种新技巧,你很可能以前就用过。

Example 9

示例 9

Express $0.464646\ldots$ as a fraction.

把 $0.464646\ldots$ 表示为分数。

Solution

解答

Let $N = 0.46464646\ldots\text{.}$ Consider $0.01N\text{.}$ We get:

令 $N = 0.46464646\ldots\text{。}$考虑 $0.01N\text{。}$有:
$N =$$0.4646464\ldots$
$-$$0.01N =$$0.00464646\ldots$
$0.99N =$$0.46$
(用 $N$ 减去 $0.01N$,中间项全部抵消,得 $0.99N = 0.46$。)

So $N = \frac{46}{99}\text{.}$ What have we done? We viewed the repeating decimal $0.464646\ldots$ as a sum of the geometric sequence $0.46, 0.0046, 0.000046, \ldots$ The common ratio is $0.01\text{.}$ The only real difference is that we are now computing an infinite geometric sum, we do not have the extra "last" term to consider. Really, this is the result of taking a limit as you would in calculus when you compute infinite geometric sums.

于是 $N = \frac{46}{99}\text{。}$我们做了什么?我们把循环小数 $0.464646\ldots$ 看作等比数列 $0.46, 0.0046, 0.000046, \ldots$ 的和。公比为 $0.01\text{。}$唯一的实质区别是:我们现在计算的是无穷等比和,没有额外的「末」项需要考虑。确切地说,这正是你在微积分中求无穷等比和时取极限的结果。

$\sum$ and $\prod$ notation 求和与求积记号

To simplify writing out sums, we will use notation like $\d\sum_{k=1}^n a_k\text{.}$ This means add up the $a_k$'s where $k$ changes from 1 to $n\text{.}$

为简化求和的书写,我们将使用形如 $\d\sum_{k=1}^n a_k\text{。}$ 的记号。它表示把各个 $a_k$ 相加,其中 $k$ 从 1 变到 $n\text{。}$

Example 10

示例 10

Use $\sum$ notation to rewrite the sums:

用 $\sum$ 记号重写下列各和:
  1. $1 + 2 + 3 + 4 + \cdots + 100$
  2. $1 + 2 + 4 + 8 + \cdots + 2^{50}$
  3. $6 + 10 + 14 + \cdots + (4n - 2)\text{.}$
  1. $1 + 2 + 3 + 4 + \cdots + 100$
  2. $1 + 2 + 4 + 8 + \cdots + 2^{50}$
  3. $6 + 10 + 14 + \cdots + (4n - 2)\text{。}$

Solution

解答

$\d\sum_{k=1}^{100} k$ $\d\sum_{k=0}^{50} 2^k$ $\d\sum_{k=2}^{n} (4k -2)$

即 $\d\sum_{k=1}^{100} k$、$\d\sum_{k=0}^{50} 2^k$、$\d\sum_{k=2}^{n} (4k -2)$。

If we want to multiply the $a_k$ instead, we would write $\d\prod_{k=1}^n a_k\text{.}$ For example, $\d\prod_{k=1}^n k = n!\text{.}$

若想改为把各项 $a_k$ 相乘,则写作 $\d\prod_{k=1}^n a_k\text{。}$例如,$\d\prod_{k=1}^n k = n!\text{。}$