Geometric Sequence: nth Term and Sum

From the first term and the common ratio, finds the nth term ar^(n−1) of a geometric sequence and the sum of the first n terms.

In a geometric sequence each term is the previous one multiplied by a fixed number, the common ratio. The first term, the ratio and a term number give you both the nth term and the sum up to it.

an=arn1a_n = a r^{n-1}
Sn=a(1rn)1r(r1)S_n = \dfrac{a(1 - r^n)}{1 - r} \quad (r \neq 1)

The exponent is n1n - 1, not nn. At the first term r0=1r^0 = 1, which hands back the first term unchanged, exactly as it should.

Example

Take a=2a = 2, r=3r = 3 and n=5n = 5. The sequence is 2, 6, 18, 54, 162.

a5=2×351=2×81=162a_5 = 2 \times 3^{5-1} = 2 \times 81 = 162
S5=2×(135)13=2×(242)2=242S_5 = \dfrac{2 \times (1 - 3^5)}{1 - 3} = \dfrac{2 \times (-242)}{-2} = 242

The fifth term is 162 and the sum is 242, which you can confirm by adding 2+6+18+54+1622 + 6 + 18 + 54 + 162 by hand.

Notes