girgit.org

Sequences and Series

Adding up a G.P.: the chessboard and the rice

The big ideaMultiply a geometric series by \( r \), subtract, and almost everything cancels, leaving \( S_n = \dfrac{a(r^n - 1)}{r - 1} \) for \( r \ne 1 \).

In simple words

Adding up a doubling list by hand is slow, because the numbers get huge. But there is a neat trick. Write the sum, then write it again with every number moved one place along. The two lines are almost the same. Take one from the other and nearly everything disappears, leaving only the two ends. From the ends you get the whole total.

Guess first: rice on a chessboard

An old Indian story tells of the inventor of chaturanga, the game that became chess. The king offered any reward. The inventor asked for rice: 1 grain on the first square, 2 on the second, 4 on the third, doubling on every square up to the 64th. The king laughed at so small a wish.

Guess: roughly how much rice is that? A sack? A lorry? A godown?

See what happens
The total is \( 1 + 2 + 4 + \cdots + 2^{63} = 2^{64} - 1 = 18{,}446{,}744{,}073{,}709{,}551{,}615 \) grains, about \( 1.8 \times 10^{19} \). A grain of rice weighs about 25 mg, so that is roughly 460 billion tonnes: hundreds of years of the whole world's rice harvest. No king could pay. And the last square alone, \( 2^{63} \) grains, holds one grain more than all the 63 squares before it put together.

Fill the board square by square.

How do we get \( 2^{64} - 1 \) without adding 64 numbers? That is the formula below.

The sum of n terms

Let \( S_n \) be the sum to n terms of a G.P. with first term \( a \) and common ratio \( r \):

\[ S_n = a + ar + ar^2 + \cdots + ar^{n-1} \qquad (1) \]

Case 1: \( r = 1 \). Every term is \( a \), so \( S_n = a + a + \cdots + a = na \).

Case 2: \( r \ne 1 \). Multiply (1) by \( r \). Every term moves one step along:

\[ rS_n = ar + ar^2 + \cdots + ar^{n-1} + ar^n \qquad (2) \]

Lines (1) and (2) share every term from \( ar \) to \( ar^{n-1} \). Subtract (2) from (1) and those cancel, leaving only the first term of (1) and the last term of (2):

\[ (1 - r)S_n = a - ar^n = a(1 - r^n) \]

Divide by \( 1 - r \) (allowed, since \( r \ne 1 \)):

\[ S_n = \frac{a(1 - r^n)}{1 - r} \quad \text{or, the same thing,} \quad S_n = \frac{a(r^n - 1)}{r - 1} \]

Both forms are equal (multiply top and bottom by \( -1 \)). Use the first when \( r \lt 1 \) and the second when \( r \gt 1 \), so that you work with positive numbers.

Try the trick with real numbers.

For the chessboard, \( a = 1 \), \( r = 2 \), \( n = 64 \): \( S_{64} = \frac{1(2^{64} - 1)}{2 - 1} = 2^{64} - 1 \).

Sum of a G.P.

  • \( S_n = \dfrac{a(r^n - 1)}{r - 1} = \dfrac{a(1 - r^n)}{1 - r} \) when \( r \ne 1 \).
  • \( S_n = na \) when \( r = 1 \).

Worked examples

Worked example 1

Find the sum of the first 8 terms of \( 3, 6, 12, \ldots \)

  1. \( a = 3 \), \( r = 2 \), \( n = 8 \).
  2. \( S_8 = \dfrac{3(2^8 - 1)}{2 - 1} = 3 \times 255 = 765 \).

Worked example 2

How many ancestors does a person have in the 6 generations before their own (parents, grandparents, and so on)?

  1. \( 2 + 4 + 8 + \cdots \) for 6 terms: \( a = 2 \), \( r = 2 \), \( n = 6 \).
  2. \( S_6 = \dfrac{2(2^6 - 1)}{1} = 2 \times 63 = 126 \).

Worked example 3

Find \( 1 + \frac{1}{2} + \frac{1}{4} + \cdots \) to 6 terms.

  1. \( a = 1 \), \( r = \frac{1}{2} \lt 1 \), so use the first form.
  2. \( S_6 = \dfrac{1 - (\frac{1}{2})^6}{1 - \frac{1}{2}} = \dfrac{1 - \frac{1}{64}}{\frac{1}{2}} = 2 \times \dfrac{63}{64} = \dfrac{63}{32} \).

Worked example 4

How many terms of \( 2, 6, 18, \ldots \) add up to 728?

  1. \( a = 2 \), \( r = 3 \): \( \dfrac{2(3^n - 1)}{3 - 1} = 3^n - 1 = 728 \).
  2. \( 3^n = 729 = 3^6 \), so \( n = 6 \). Check: \( 2 + 6 + 18 + 54 + 162 + 486 = 728 \).

Don't mix these up

  • The power in the sum is \( r^n \), but the last term is \( ar^{n-1} \). Different powers, both correct.
  • When \( r = 1 \) the formula has \( 0 \) on the bottom and cannot be used. The sum is simply \( na \).
  • With a negative \( r \), keep the brackets: \( (-2)^6 = 64 \) but \( -2^6 = -64 \).

Try it. (a) Find \( 1 + 3 + 9 + \cdots \) to 7 terms. (b) Find \( 5 - 10 + 20 - \cdots \) to 6 terms. (c) Would you rather have ₹1 lakh a day for 30 days, or 1 paisa on day 1, 2 paise on day 2, 4 paise on day 3, doubling for 30 days?

Answer
(a) \( \frac{3^7 - 1}{2} = \frac{2186}{2} = 1093 \). (b) \( a = 5 \), \( r = -2 \): \( \frac{5((-2)^6 - 1)}{-2 - 1} = \frac{5 \times 63}{-3} = -105 \). (c) The lakh a day gives ₹30,00,000. The doubling paise give \( 2^{30} - 1 = 1{,}073{,}741{,}823 \) paise, which is ₹1,07,37,418.23: more than three times as much.

Words to know

Sum to n terms \( S_n \)
The total of the first \( n \) terms.
Multiply-and-subtract trick
Write \( S_n \) and \( rS_n \), subtract, and the middle terms cancel.
\( S_n \) of a G.P.
\( \frac{a(r^n - 1)}{r - 1} \) for \( r \ne 1 \); \( na \) for \( r = 1 \).
Chaturanga
The old Indian board game that grew into chess.

What is \( 1 + 2 + 4 + \cdots + 512 \)?

  1. 1024
  2. 1023
  3. 511

In the proof, why do we subtract \( rS_n \) from \( S_n \)?

  1. Because all terms except \( a \) and \( ar^n \) cancel
  2. To make \( r \) disappear
  3. Because it only works when \( r \) is positive

A G.P. has \( a = 7 \) and \( r = 1 \). What is \( S_{10} \)?

  1. 0
  2. 70
  3. 7