Sub topic 3
Finding the nth Term of an AP
This chapter assumes you can solve linear equations and simultaneous equations, and that you are comfortable with negative numbers and fractions. It also assumes you already know that an arithmetic progression (AP) is a sequence in which each term differs from the previous one by a fixed common difference, d.
The working model
Write an AP as a, a + d, a + 2d, a + 3d, and so on. The first term is a. Each step adds d. To reach the nth term you take n − 1 steps from the first term, so:
T(n) = a + (n − 1)d
Two facts follow from this formula and drive most exam questions.
- The nth term is a linear function of n. Its slope is d.
- The difference between any two terms depends only on how many steps separate them: T(m) − T(n) = (m − n)d.
The second fact is the faster tool. You can often skip finding a altogether.
Computing a term
The function below implements the formula and the sum from the next chapter. The sum is shown here only so you can check examples.
def ap_nth(a, d, n):
return a + (n - 1) * d
def ap_sum(a, d, n):
return n * (2 * a + (n - 1) * d) // 2
print(ap_nth(3, 4, 10)) # 39
print(ap_sum(3, 4, 10)) # 210For the AP 3, 7, 11, ..., a = 3 and d = 4. The 10th term is 3 + 9 × 4 = 39.
Worked examples
Example 1: Find the term from two other terms
The 4th term of an AP is 17 and the 9th term is 42. Find the 20th term.
Use the difference fact. T(9) − T(4) = 5d = 25, so d = 5. Then T(20) = T(9) + 11d = 42 + 55 = 97.
You never needed a. If you want it, a = T(4) − 3d = 17 − 15 = 2.
Example 2: Is a number in the AP?
Is 301 a term of the AP 7, 12, 17, ...?
Here a = 7 and d = 5. Set 7 + (n − 1) × 5 = 301. Then (n − 1) × 5 = 294, so n − 1 = 58.8. This is not a whole number, so 301 is not a term.
The test is general. A value x is in the AP only if (x − a)/d is a non-negative integer. Then n = (x − a)/d + 1.
Example 3: Count the terms
How many terms does the list 12, 19, 26, ..., 306 have?
Here d = 7. Solve 12 + (n − 1) × 7 = 306. Then (n − 1) = 294/7 = 42, so n = 43.
A compact rule for counting terms is:
number of terms = (last − first) / d + 1
Example 4: Counting multiples in a range
How many multiples of 7 lie between 100 and 500?
The first multiple of 7 above 100 is 105, since 7 × 14 = 98 is too small and 7 × 15 = 105. The last multiple of 7 below 500 is 497, since 7 × 71 = 497. The list 105, 112, ..., 497 is an AP with d = 7.
Number of terms = (497 − 105)/7 + 1 = 56 + 1 = 57.
Check by counting multipliers: 15 through 71 gives 71 − 15 + 1 = 57.
Example 5: Finding n from a condition on the term
Find the first term of the AP 200, 193, 186, ... that is negative.
Here a = 200 and d = −7. We need 200 − 7(n − 1) < 0, so n − 1 > 28.57. The smallest integer n − 1 is 29, so n = 30. Check: T(30) = 200 − 203 = −3. T(29) = 200 − 196 = 4, which is still positive.
Example 6: Terms that satisfy a linear relation
In an AP, the 5th term is twice the 2nd term, and the 7th term is 22. Find a and d.
- T(5) = a + 4d and T(2) = a + d. So a + 4d = 2(a + d), which gives a = 2d.
- T(7) = a + 6d = 22. Substituting a = 2d gives 8d = 22, so d = 11/4 and a = 11/2.
The answer is a fraction, which is allowed. An AP does not need integer terms unless the question says so.
The nth term as a linear function
Expand the formula: T(n) = dn + (a − d). This has the form pn + q, where p = d and q = a − d. Two consequences are useful.
- If a question gives T(n) = 5n + 3, then d = 5 and a = 8 immediately. You need no further work.
- If T(n) is quadratic in n, such as n² + 1, the sequence is not an AP. Its differences (2, 4, 6, ...) are not constant.
A related fact is that the sum of n terms of an AP is quadratic in n with no constant term. If S(n) = 3n² + 2n, then T(n) = S(n) − S(n − 1) = 3(2n − 1) + 2 = 6n − 1. So the sequence is an AP with a = 5 and d = 6. This works for n ≥ 2, and T(1) = S(1) = 5 agrees with it.
Common errors
| Error | What goes wrong | Fix |
|---|---|---|
| Using a + nd | This is the (n + 1)th term | Use n − 1 steps from the first term |
| Counting terms as last − first over d | This gives the number of steps, not terms | Add 1 |
| Forgetting the sign of d | A decreasing AP has negative d | Compute d as second term minus first term |
| Rounding n when it is not an integer | n must be a whole number for a term to exist | Test whether (x − a)/d is an integer |
| Counting both ends wrongly in range problems | "Between" may or may not include the end values | Read whether the end values are included |
Edge cases
- If d = 0, every term equals a. This is a constant AP, and (x − a)/d is undefined, so test x = a separately.
- If d is negative, the terms fall. The "first negative term" question in Example 5 then depends on the direction of the inequality. Dividing both sides by a negative number reverses it, so keep d on one side and check the answer by substitution.
- If a question says three or more terms are "in AP" and gives them as expressions, use the equal-difference condition. For three terms x, y, z, the condition is y − x = z − y. This is covered fully in the properties chapter.
Time-saving checks
- Before solving, ask which two terms the question connects. If it gives two terms, use T(m) − T(n) = (m − n)d first.
- After finding d, substitute back into one given term to catch sign errors.
- For a count question, test the formula on a tiny case. The list 5, 8, 11 has (11 − 5)/3 + 1 = 3 terms, which is correct.
- For a "which term is closest to X" question, compute n from the formula, then check the two neighbouring integers.
Putting it together
Exercise
The 6th term of an AP is 4 and the 15th term is -23. (a) Find the common difference and the 1st term. (b) Which term equals -80?
Show answer
(a) T(15) - T(6) = 9d = -27, so d = -3. Then a = T(6) - 5d = 4 + 15 = 19. (b) Solve 19 - 3(n - 1) = -80. Then 3(n - 1) = 99, so n - 1 = 33 and n = 34. The 34th term is -80.
Exercise
How many three-digit numbers leave remainder 3 when divided by 8?
Show answer
The numbers have the form 8k + 3. The smallest three-digit one is 107 (8 × 13 + 3), and the largest is 995 (8 × 124 + 3). With d = 8, the count is (995 - 107)/8 + 1 = 111 + 1 = 112.
Exercise
The sum of the first n terms of a sequence is S(n) = 2n^2 + 5n. Show that the sequence is an AP and find its 20th term.
Show answer
T(n) = S(n) - S(n-1) = 2(2n - 1) + 5 = 4n + 3 for n >= 2, and T(1) = S(1) = 7, which also equals 4(1) + 3. So T(n) = 4n + 3 is linear in n, and the sequence is an AP with a = 7 and d = 4. T(20) = 4 × 20 + 3 = 83.