MathsAlgebra

Geometric Sequence
calculator.

Find any term, sum or ratio when each number is multiplied by the same amount.

How it's worked out

In a geometric sequence, each term divided by the one before gives the same number, the common ratio r. So 3, 6, 12, 24 has a ratio of 2. To reach term n, start at the first term and multiply by r, n − 1 times.

an\displaystyle a_n=a1rn−1\displaystyle {}= a_1 r^{n-1}

The sum of the first n terms comes from writing the sum, writing r times the sum under it, and subtracting. Nearly every term cancels, and only the first term and the one past the last are left.

Sn\displaystyle S_n=a1(1−rn)1−r\displaystyle {}= \frac{a_1(1 - r^n)}{1 - r}

This needs r to differ from 1. With r = 1 every term is the same, so the sum is n times the first term. When r is between −1 and 1, rnr^n shrinks toward 0 as n grows, and that leaves a limit for the sum.

S∞\displaystyle S_\infty=a11−r\displaystyle {}= \frac{a_1}{1 - r}

To find r from two terms, divide them and take a root. To find which term a value is, use logs. In 5, 15, 45 the value 1,215 is term 6.

Worked examples

Sam adds eight terms

Sam's worksheet starts 3, 6, 12 and asks for the eighth term and the sum of the first eight. The first term is 3 and the ratio is 2.

a8\displaystyle a_8=3×27\displaystyle {}= 3 \times 2^{7}=384\displaystyle {}= 384
S8\displaystyle S_8=3(1−28)1−2\displaystyle {}= \frac{3(1 - 2^{8})}{1 - 2}=765\displaystyle {}= 765

Adding the eight terms by hand gives 765 too. Each term here is larger than all the earlier terms put together, and the last one is 384 of the 765.

Open this example in the tool

Ada has two terms and needs the ratio

Ada knows the first term is 2 and the fifth term is 162. Going from term 1 to term 5 is four steps, so r to the fourth power is 162 over 2, which is 81.

r4\displaystyle r^4=1622\displaystyle {}= \frac{162}{2}=81\displaystyle {}= 81

That gives r = 3 or −3. Both work, because an even power hides the sign. One sequence is 2, 6, 18, 54, 162, and the other is 2, −6, 18, −54, 162.

Open this example in the tool

Lee turns a repeating decimal into a fraction

Lee wants to show that 0.333... is one third. The decimal is 0.3 + 0.03 + 0.003 and so on, so the first term is 0.3 and each term is 0.1 times the last.

S∞\displaystyle S_\infty=0.31−0.1\displaystyle {}= \frac{0.3}{1 - 0.1}=13\displaystyle {}= \frac{1}{3}

After ten terms the running total is already 0.33333333. By the same steps 0.999... has a first term of 0.9, and its limit is 1.

Open this example in the tool

Reading your result

Does it settle? The sum to infinity exists only when −1 < r < 1. With r = 0.5, starting at 1, the total after 20 terms is 1.99999809 and the limit is 2. By term 8, each new term is under 1% of the first, so the total has nearly stopped moving.

A negative ratio. The signs alternate. With a first term of 3 and r = −0.5 the terms are 3, −1.5, 0.75, −0.375, 0.1875, −0.09375. The running total swings above and below its limit of 2 and closes in on it.

Exact sums. A decimal ratio often has an exact fraction behind it. The first ten terms of 1, 0.5, 0.25 add up to exactly 1023512\frac{1023}{512}, and the tool shows that when the digits fit. A sum such as the grains on a chessboard, 1.844674 × 10¹⁹, is too long to show every digit, so it appears in scientific form. The tool lists up to 500 terms.

Where this comes up. Money that earns 5% a year is multiplied by 1.05 each year, so 1,000 becomes 1,710.34 by the twelfth term. Repeated dilution where each step keeps one tenth has r = 0.1. If a quarter of each dose of a medicine is left when you take the next one, a dose of 100 builds toward a ceiling of 133.33. For a constant difference between terms, use the arithmetic sequence calculator. For other series, the series convergence calculator applies general tests.

Common mistakes

  • Using n in place of n − 1. The first term has no factor of r yet. So term 8 in Sam's list uses 272^7, which gives 384, and 282^8 would give double that.
  • Dropping the second ratio. When an even number of steps separates two terms, both signs fit. Ada's example has two answers, and a test that wants one will say which sign to use.
  • Looking for a ratio that is not real. With a first term of 1 and a third term of −4, r squared would be negative, so no real ratio works. With an odd number of steps it works: a first term of 3 and a fourth term of −24 give r = −2.
  • Using the infinite sum when the size of r is 1 or more. The formula still prints a number. With r = 2 and a first term of 1 it gives −1, which is nonsense for a sum of positive terms.

Questions people ask

The terms shrink fast enough that the running total stops moving in any digit you can see. The sum to infinity is defined as the number that running total closes in on. For 1, 0.5, 0.25 that number is 2, even though no finite run of terms ever reaches it.

Sources