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.
Explanation
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=arn−1 Sn=1−ra(1−rn)(r=1) - a — the first term
- r — the common ratio, the multiplier applied at each step
- n — which term you want, an integer of 1 or more
- an — the nth term
- Sn — the sum of the first n terms
The exponent is n−1, not n. At the first term r0=1, which hands back the first term unchanged, exactly as it should.
Example
Take a=2, r=3 and n=5. The sequence is 2, 6, 18, 54, 162.
a5=2×35−1=2×81=162 S5=1−32×(1−35)=−22×(−242)=242 The fifth term is 162 and the sum is 242, which you can confirm by adding 2+6+18+54+162 by hand.
Notes
- n must be a whole number of 1 or more.
- The sum formula breaks at r=1, where the denominator would be zero. Every term is then just the first term, so the sum is simply Sn=an. The calculator handles that case separately.
- A negative ratio flips the sign of every other term.
- When ∣r∣<1 the terms shrink towards zero, and letting n grow without bound gives the convergent infinite series 1−ra.
- With a ratio above 1 the nth term grows extremely fast, so large values of n run into very big numbers quickly.