Sub topic 7
Finding the nth term of a GP
This chapter assumes you can work with exponents and the laws of indices, solve simple equations, and handle fractions and negative numbers. Earlier chapters defined a geometric progression (GP) as a sequence where each term is the previous term multiplied by a fixed common ratio, written r. Here you will turn that definition into a formula for any term. Then you will use it to find missing terms, count terms, and avoid the usual slips.
The formula and where it comes from
Let the first term be a and the common ratio be r. Each step multiplies by r:
- T₁ = a
- T₂ = a·r
- T₃ = a·r·r = a·r²
- T₄ = a·r³
The exponent of r is always one less than the position, because the first term has had no multiplications yet. So:
Tₙ = a · rⁿ⁻¹
The "n − 1" is the most common source of errors in GP problems. The 10th term uses r⁹, not r¹⁰.
Confirming that a sequence is a GP
Divide each term by the one before it. If every quotient is the same number, the sequence is a GP and that number is r. One quotient is not enough. The sequence 2, 6, 18, 60 starts with ratio 3 but the last step gives 60/18 = 10/3, so it is not a GP.
from fractions import Fraction
def gp_nth(a, r, n):
return Fraction(a) * Fraction(r) ** (n - 1)
print(gp_nth(2, 3, 5)) # 162
print(gp_nth(81, Fraction(-1, 3), 6)) # -1/3The first call reproduces the sequence 2, 6, 18, 54, 162. The second shows that a negative fractional ratio causes no trouble. Using Fraction keeps the answers exact instead of rounding them.
A procedure for most nth-term problems
Worked example 1: two terms given
The 3rd term of a GP is 12 and the 6th term is 96. Find the first term and the 10th term.
Divide the later term by the earlier one:
T₆ / T₃ = (a·r⁵) / (a·r²) = r³
So r³ = 96/12 = 8, which gives r = 2. The first term cancels in the division, which is why this method works.
Now use T₃ = a·r² = 12, so 4a = 12 and a = 3.
For the 10th term you can use a directly: 3 · 2⁹ = 1536. A faster route uses the general rule that Tₘ = Tₖ · r^(m−k), so T₁₀ = T₆ · r⁴ = 96 · 16 = 1536. Both methods agree. The second saves time because it never needs a.
Worked example 2: an even power gives two answers
The 2nd term is 6 and the 4th term is 54.
T₄ / T₂ = r² = 9, so r = 3 or r = −3.
- If r = 3, then a = 6/3 = 2, and the GP is 2, 6, 18, 54.
- If r = −3, then a = 6/(−3) = −2, and the GP is −2, 6, −18, 54.
Both satisfy the conditions. When the gap between the two positions is even, the ratio of terms is r raised to an even power, and you must keep both signs unless the problem excludes one, for example "all terms are positive". When the gap is odd, there is only one real root. For instance, r³ = −27 forces r = −3.
Counting the terms
Sometimes the question gives the last term and asks how many terms there are. Set Tₙ equal to the last term and solve for n.
How many terms are in 3, 6, 12, …, 768?
3 · 2ⁿ⁻¹ = 768, so 2ⁿ⁻¹ = 256 = 2⁸. Then n − 1 = 8 and n = 9.
Write both sides as powers of the same base. The following function does the same job by direct multiplication and also detects when the target never appears.
from fractions import Fraction
def gp_term_number(a, r, last, limit=200):
term = Fraction(a)
r = Fraction(r)
last = Fraction(last)
for n in range(1, limit + 1):
if term == last:
return n
term *= r
return None
print(gp_term_number(3, 2, 768)) # 9
print(gp_term_number(81, Fraction(-1, 3), Fraction(1, 81))) # 9
print(gp_term_number(81, Fraction(-1, 3), Fraction(-1, 81))) # NoneThe last call returns None because with r = −1/3 the terms at odd positions are positive. The value −1/81 would need an even exponent to produce a negative sign, and the magnitudes do not match at any such position. Signs matter as much as sizes.
Threshold questions
Questions of the form "from which term onward does the GP exceed some number?" need a small search over powers.
A GP has a = 5 and r = 2. Find the smallest n for which Tₙ > 1000.
5 · 2ⁿ⁻¹ > 1000, so 2ⁿ⁻¹ > 200. Since 2⁷ = 128 and 2⁸ = 256, the smallest exponent that works is 8. So n − 1 = 8 and n = 9.
Check: T₈ = 5 · 128 = 640 (too small) and T₉ = 5 · 256 = 1280 (large enough).
Growth and decay as a GP
Compound interest and fixed percentage change are GPs. If a quantity changes by a fixed percentage each period, the ratio is 1 + p/100 for growth or 1 − p/100 for decay.
An amount of ₹10,000 grows at 10% per year, compounded annually. What is it after 5 years?
The amounts at the start, after year 1, after year 2, and so on form a GP with a = 10000 and r = 1.1. The amount after 5 years is the 6th term, because the starting amount is the 1st term.
T₆ = 10000 · 1.1⁵ = 10000 · 1.61051 = 16105.1
Handling unusual values
Some edge cases show up in exams as traps.
| Situation | What happens | Column | Column |
|---|---|---|---|
| r = 1 | Every term equals a. The sequence is constant. | ||
| r < 0 | Signs alternate: positive, negative, positive, and so on. | ||
| 0 < \ | r\ | < 1 | Terms shrink toward 0 but never reach it. |
| \ | r\ | > 1 | Terms grow in size without bound. |
| r = 0 | Terms after the first are 0. This is normally excluded from GP problems. | ||
| a = 0 | Every term is 0, and the ratio is undefined. Not treated as a GP. |
Common mistakes
- Using rⁿ instead of rⁿ⁻¹. Test the formula on n = 1: it must return a.
- Reading a ratio from only the first two terms without checking the rest.
- Dropping the negative root when the exponent is even.
- Treating a decrease of p% as a ratio of p/100. A 20% drop gives r = 0.8, not 0.2.
- Subtracting terms to find r. Differences belong to an AP. For a GP, divide.
Quick checks under time pressure
- Sanity-check the sign: if r < 0, even-numbered terms have the opposite sign to a.
- Sanity-check the size: if |r| > 1 the terms must increase in magnitude as n grows.
- Substitute your a and r back into the two given terms before moving on.
- For terms that are far apart, factor the numbers into primes. That makes r³ = 8 or r⁴ = 81 easy to read off.
Exercise
The 3rd term of a GP is 20 and the 6th term is 160. Find the common ratio, the first term and the 9th term.
Show answer
T₆ / T₃ = r³ = 160/20 = 8, so r = 2. From T₃ = a·r² = 20 we get 4a = 20, so a = 5. The 9th term is T₆ · r³ = 160 · 8 = 1280, or equivalently 5 · 2⁸ = 1280.
Exercise
A GP has 2nd term −6 and 5th term 162. Find a and r, and decide whether the number 4374 appears as a term.
Show answer
T₅ / T₂ = r³ = 162/(−6) = −27, so r = −3. Then a·(−3) = −6 gives a = 2. For 4374 we need 2·(−3)ⁿ⁻¹ = 4374, so (−3)ⁿ⁻¹ = 2187 = 3⁷. A positive result needs an even exponent, but 7 is odd and would give −2187. So 4374 does not appear. The value −4374 appears at n = 8, since 2·(−3)⁷ = −4374.