Sum of the First n Terms of Geometric Sequences

Finding the sum of the first nn terms of a geometric sequence is an important problem in the study of sequences. Unlike arithmetic sequences, the summation formula of a geometric sequence needs to be discussed in separate cases.

Grains of Rice on the Chessboard

Let us return to the story from the opening: on the 64 squares of a chessboard, put 1 grain of rice on the first square, 2 grains on the second, 4 grains on the third… each square has twice as many as the previous one.

This forms a geometric sequence: 1,2,4,8,16,,2631, 2, 4, 8, 16, \ldots, 2^{63}

How many grains of rice are needed in total? That is, find:

S64=1+2+4+8++263S_{64} = 1 + 2 + 4 + 8 + \cdots + 2^{63}

How do we compute this sum? Let us derive the summation formula of a geometric sequence.

Derivation of the Formula

Let SnS_n be the sum of the first nn terms of the geometric sequence {an}\{a_n\}, with first term a1a_1 and common ratio qq.

Case 1: q=1q = 1

When q=1q = 1, the sequence is constant: a1,a1,a1,a_1, a_1, a_1, \ldots

In this case:

Sum of the first n terms of a geometric sequence (q = 1)
Sn=na1S_n = na_1

Case 2: q1q \neq 1

When q1q \neq 1, use the method of “multiplying by the common ratio and subtracting”:

Sn=a1+a1q+a1q2++a1qn1S_n = a_1 + a_1 q + a_1 q^2 + \cdots + a_1 q^{n-1}

Multiply both sides by qq:

qSn=a1q+a1q2+a1q3++a1qnqS_n = a_1 q + a_1 q^2 + a_1 q^3 + \cdots + a_1 q^n

Subtract the two equations (the second minus the first):

qSnSn=a1qna1Sn(q1)=a1(qn1)Sn=a1(qn1)q1\begin{aligned} qS_n - S_n &= a_1 q^n - a_1 \\ S_n(q - 1) &= a_1(q^n - 1) \\ S_n &= \frac{a_1(q^n - 1)}{q - 1} \end{aligned}

It can also be written as:

Sn=a1(1qn)1qS_n = \frac{a_1(1 - q^n)}{1 - q}

Sum of the first n terms of a geometric sequence (q ≠ 1)
Sn=a1(1qn)1q=a1(qn1)q1S_n = \frac{a_1(1 - q^n)}{1 - q} = \frac{a_1(q^n - 1)}{q - 1}
What is the difference between the two forms of the summation formula?

The two formulas are essentially the same, just in different forms:

  • Form 1 Sn=a1(1qn)1qS_n = \frac{a_1(1 - q^n)}{1 - q}: used when 0<q<10 < q < 1; the denominator is positive, making it easier to understand
  • Form 2 Sn=a1(qn1)q1S_n = \frac{a_1(q^n - 1)}{q - 1}: used when q>1q > 1; the denominator is positive, making it easier to compute

Which formula to choose depends on the size of qq. Choosing the right formula avoids negative signs and makes the calculation clearer!

Memory tip: the signs of the numerator and denominator must be consistent—both are “large minus small” or both are “small minus large”.

The Answer to the Chessboard Problem

Now we can compute the total number of grains of rice on the chessboard:

S64=1×(2641)21=26411.84×1019\begin{aligned} S_{64} &= \frac{1 \times (2^{64} - 1)}{2 - 1} \\ &= 2^{64} - 1 \\ &\approx 1.84 \times 10^{19} \end{aligned}

This number is about 18,446,744,073,709,551,615 grains!

If each grain of rice weighs 0.02 grams, the total weight is about 3.69×10143.69 \times 10^{14} kilograms, equivalent to 369 billion tons—far exceeding the world’s annual grain production!

Worked Examples

Example 1: Using the Summation Formula

Find the sum of the first 6 terms of the geometric sequence 2,6,18,54,2, 6, 18, 54, \ldots.

Solution:

Given a1=2a_1 = 2, q=3q = 3, n=6n = 6.

Using the formula (for q>1q > 1, use the second form):

S6=2×(361)31=2×(7291)2=2×7282=728S_6 = \frac{2 \times (3^6 - 1)}{3 - 1} = \frac{2 \times (729 - 1)}{2} = \frac{2 \times 728}{2} = 728

Example 2: Finding the Number of Terms from the Sum

In the geometric sequence {an}\{a_n\}, a1=1a_1 = 1 and q=2q = 2. If the sum of the first nn terms is Sn=127S_n = 127, find nn.

Solution:

Sn=1×(2n1)21=2n1=127S_n = \frac{1 \times (2^n - 1)}{2 - 1} = 2^n - 1 = 127

2n=128=272^n = 128 = 2^7

n=7n = 7

Example 3: The Sum of an Infinitely Decreasing Geometric Sequence

When q<1|q| < 1, as nn increases, qnq^n tends to 0, and the sum of the first nn terms approaches a limiting value:

limnSn=limna1(1qn)1q=a11q\lim_{n \to \infty} S_n = \lim_{n \to \infty} \frac{a_1(1 - q^n)}{1 - q} = \frac{a_1}{1 - q}

Example: Find the sum of 12+14+18+116+\frac{1}{2} + \frac{1}{4} + \frac{1}{8} + \frac{1}{16} + \cdots.

This is an infinite geometric sequence with first term a1=12a_1 = \frac{1}{2} and common ratio q=12q = \frac{1}{2}.

S=12112=1212=1S = \frac{\frac{1}{2}}{1 - \frac{1}{2}} = \frac{\frac{1}{2}}{\frac{1}{2}} = 1

Practice Problems

Exercise 1

Find the sum of the first 8 terms of the geometric sequence 1,3,9,27,1, 3, 9, 27, \ldots.

Reference Answer(2 个标签)
geometric sequencesum of first n terms

Idea: Determine the first term and common ratio, then use the summation formula.

Detailed steps:

Given a1=1a_1 = 1, q=3q = 3, n=8n = 8.

S8=1×(381)31=656112=65602=3280S_8 = \frac{1 \times (3^8 - 1)}{3 - 1} = \frac{6561 - 1}{2} = \frac{6560}{2} = 3280

Answer: S8=3280S_8 = 3280

Exercise 2

In the geometric sequence {an}\{a_n\}, a1=64a_1 = 64 and q=12q = \frac{1}{2}. Find the sum of the first 6 terms.

Reference Answer(2 个标签)
geometric sequencesum of first n terms

Idea: Since 0<q<10 < q < 1, use the first form of the formula.

Detailed steps:

S6=64×(1(12)6)112=64×(1164)12=64×636412=6312=126S_6 = \frac{64 \times (1 - (\frac{1}{2})^6)}{1 - \frac{1}{2}} = \frac{64 \times (1 - \frac{1}{64})}{\frac{1}{2}} = \frac{64 \times \frac{63}{64}}{\frac{1}{2}} = \frac{63}{\frac{1}{2}} = 126

Answer: S6=126S_6 = 126

Exercise 3

Find the sum of the infinite geometric sequence 1+13+19+127+1 + \frac{1}{3} + \frac{1}{9} + \frac{1}{27} + \cdots.

Reference Answer(2 个标签)
geometric sequencesum of first n terms

Idea: This is an infinitely decreasing geometric sequence with q<1|q| < 1.

Detailed steps:

First term a1=1a_1 = 1, common ratio q=13q = \frac{1}{3}.

S=a11q=1113=123=32S = \frac{a_1}{1 - q} = \frac{1}{1 - \frac{1}{3}} = \frac{1}{\frac{2}{3}} = \frac{3}{2}

Answer: S=32S = \frac{3}{2}

Exercise 4

Adapted from a postgraduate entrance examination problem

The sum of the first nn terms of the geometric sequence {an}\{a_n\} is SnS_n. Given S3=7S_3 = 7 and S6=63S_6 = 63, find the common ratio qq.

Reference Answer(2 个标签)
geometric sequencesum of first n terms

Idea: Use the geometric sequence summation formula to set up equations.

Detailed steps:

Let the common ratio be qq (q1q \neq 1). Then:

{S3=a1(q31)q1=7S6=a1(q61)q1=63\begin{cases} S_3 = \frac{a_1(q^3 - 1)}{q - 1} = 7 \\ S_6 = \frac{a_1(q^6 - 1)}{q - 1} = 63 \end{cases}

Dividing the two equations:

S6S3=q61q31=637=9\frac{S_6}{S_3} = \frac{q^6 - 1}{q^3 - 1} = \frac{63}{7} = 9

Since q61=(q31)(q3+1)q^6 - 1 = (q^3 - 1)(q^3 + 1), we have:

(q31)(q3+1)q31=q3+1=9\frac{(q^3 - 1)(q^3 + 1)}{q^3 - 1} = q^3 + 1 = 9

q3=8q^3 = 8

q=2q = 2

Answer: q=2q = 2


Summary

Symbols Used in This Article

符号类型读音/说明在本文中的含义
SnS_n求和符号S sub nThe sum of the first nn terms of a geometric sequence
a1a_1元素符号a sub 1The first term of a geometric sequence
qq参数quotientThe common ratio of a geometric sequence
nn变量nThe term number, a positive integer

中英对照

中文术语英文术语音标说明
前n项和sum of first n terms/sʌm əv fɜːst en tɜːmz/The total of the first nn terms of a sequence
无穷递缩等比数列infinite decreasing geometric series/ˈɪnfɪnət dɪˈkriːsɪŋ ˌdʒiːəˈmetrɪk ˈsɪəriːz/An infinite geometric sequence with $
极限limit/ˈlɪmɪt/The value a sequence approaches