Sub topic 2
Arithmetic progressions and the common difference
This chapter defines an arithmetic progression (AP) precisely and shows how to test whether a list of numbers is one. It also covers how the common difference behaves under simple changes to a sequence. The formulas for the nth term and for sums come in the next chapters. It assumes you can solve linear equations and work with fractions and negative numbers.
What makes a sequence arithmetic
A sequence is an ordered list of numbers, written t₁, t₂, t₃, and so on. A sequence is an arithmetic progression if every term after the first equals the previous term plus the same fixed number. That fixed number is the common difference, written d.
In symbols, the sequence is an AP when
t₂ − t₁ = t₃ − t₂ = t₄ − t₃ = … = d
The first term is usually written a. So an AP looks like a, a + d, a + 2d, a + 3d, and so on.
Three points are easy to miss:
- d is always "later term minus earlier term". Reversing the order flips the sign.
- d can be positive, negative, zero, a fraction, or irrational (for example √2).
- Every consecutive pair must give the same difference. Two matching gaps are not enough.
| Value of d | Behaviour | Example |
|---|---|---|
| d > 0 | Strictly increasing | 3, 7, 11, 15, … |
| d = 0 | Constant | 5, 5, 5, 5, … |
| d < 0 | Strictly decreasing | 20, 14, 8, 2, −4, … |
A constant sequence counts as an AP with d = 0. CAT questions sometimes depend on this edge case. For example, a question may say "the terms are in AP" and then ask for the number of possible values of d. Do not discard d = 0 unless the problem says the terms are distinct.
Recognising an AP
The test is to subtract each term from the next one and compare the results.
Worked example 1: a clear AP
Test 7, 12, 17, 22.
The differences are 12 − 7 = 5, 17 − 12 = 5 and 22 − 17 = 5. All are equal, so this is an AP with a = 7 and d = 5.
Worked example 2: not an AP
Test 2, 5, 9, 14.
The differences are 3, 4 and 5. They are not equal, so this is not an AP. The gaps themselves grow by 1 each time, which is a different pattern.
Worked example 3: fractions
Test 1/2, 1, 3/2, 2.
Each gap is 1/2, so d = 1/2. Fractions do not stop a sequence from being an AP.
Now test 1, 1/2, 1/3, 1/4. The differences are −1/2, −1/6 and −1/12. This is not an AP. These terms are reciprocals of an AP, which is a harmonic progression, covered later in this tutorial.
A checker you can run
The function below returns d if the list is an AP and None otherwise. It uses Fraction so that decimal rounding cannot cause a false mismatch.
from fractions import Fraction
def common_difference(seq):
"""Return d if seq is an AP, otherwise None."""
if len(seq) < 2:
return None
terms = [Fraction(x) for x in seq]
d = terms[1] - terms[0]
for prev, cur in zip(terms, terms[1:]):
if cur - prev != d:
return None
return d
print(common_difference([7, 12, 17, 22])) # 5
print(common_difference([20, 14, 8, 2, -4])) # -6
print(common_difference([5, 5, 5])) # 0
print(common_difference([Fraction(1, 2), 1, Fraction(3, 2)])) # 1/2
print(common_difference([2, 5, 9, 14])) # None
print(common_difference([1, 2, 4, 8])) # NoneThe last line shows 1, 2, 4, 8, which is a geometric progression, not an arithmetic one. Telling the two apart is the first skill this tutorial builds. Add for an AP and multiply for a GP.
Using the definition to find unknowns
The equal-gap condition becomes an equation whenever a question gives terms containing an unknown.
Worked example 4: solving for x
The numbers 2x + 1, 5x − 2 and 7x + 3 are consecutive terms of an AP. Find x and d.
Set the two gaps equal:
(5x − 2) − (2x + 1) = (7x + 3) − (5x − 2)
3x − 3 = 2x + 5
x = 8
The terms are 17, 38 and 59. Check: 38 − 17 = 21 and 59 − 38 = 21, so d = 21.
Always substitute back. In harder versions the equation is quadratic and one root may break a condition stated in the problem, such as "all terms positive".
Worked example 5: d from two distant terms
In an AP the 4th term is 17 and the 9th term is 42. Find d.
Going from the 4th term to the 9th term means adding d five times, so 5d = 42 − 17 = 25 and d = 5. The first term is 17 − 3d = 2.
In general, tₘ − tₙ = (m − n)d. This follows directly from the definition. Subtract the term numbers, divide the difference in values by that number, and you have d. It is usually faster than writing two equations in a and d.
What changes the common difference
CAT questions often change an AP in some way and ask about the result. These rules let you answer without recomputing anything. Suppose t₁, t₂, t₃, … is an AP with common difference d.
| Operation on every term | Result | New common difference |
|---|---|---|
| Add a constant k | Still an AP | d |
| Multiply by a constant k | Still an AP | kd |
| Drop the first m terms | Still an AP | d |
| Reverse the order | Still an AP | −d |
| Take every kth term | Still an AP | kd |
The reason is the same each time. Adding k cancels in every subtraction, and multiplying by k scales every gap by k.
For two APs with differences d₁ and d₂, adding them term by term gives an AP with difference d₁ + d₂. Subtracting gives d₁ − d₂.
Worked example 6: taking every third term
Take the AP 4, 9, 14, 19, 24, 29, 34, … with d = 5. The terms in positions 1, 4, 7, … are 4, 19, 34, …. They form an AP with difference 3 × 5 = 15.
Sequences given by a rule
A sequence may be given by a formula for tₙ instead of a list. To test it, compute tₙ₊₁ − tₙ and see whether n cancels.
- tₙ = 3n + 2 gives tₙ₊₁ − tₙ = 3(n + 1) + 2 − (3n + 2) = 3. This is an AP with d = 3.
- tₙ = n² gives (n + 1)² − n² = 2n + 1. The result depends on n, so this is not an AP.
A sequence is an AP exactly when tₙ is a linear expression in n, that is, of the form pn + q. In that case d = p. The graph of an AP is a set of equally spaced points on a straight line.
Common errors
- Checking too few gaps. The list 1, 3, 5, 8 starts with two equal gaps of 2 and then breaks. Check every consecutive pair.
- Sign slips. For 20, 14, 8 the common difference is −6, not 6. A decreasing AP has negative d.
- Confusing d with the ratio. For 2, 6, 18 the differences are 4 and 12, so it is not an AP. The ratio is 3, so it is a GP.
- Forgetting d = 0. Constant sequences are valid APs unless the question rules them out.
- Treating "in AP" as symmetric in order. The terms must be in the stated order. The numbers 3, 11, 7 are not in AP in that order, although they are after rearranging to 3, 7, 11.
Exercise
The numbers (k + 2), (4k − 6) and (5k − 7) are three consecutive terms of an AP. Find k and the common difference. Then state the common difference of the sequence formed by taking every second term of the full AP that continues these terms.
Show answer
Set the gaps equal: (4k − 6) − (k + 2) = (5k − 7) − (4k − 6), so 3k − 8 = k − 1, which gives k = 3.5. The terms are 5.5, 8, 10.5, so d = 2.5. Every second term gives an AP with difference 2 × 2.5 = 5.
Exercise
Decide whether tₙ = 4n − 7 and uₙ = n(n + 1) − n² are APs. If so, give d.
Show answer
For tₙ, tₙ₊₁ − tₙ = 4(n + 1) − 7 − (4n − 7) = 4, so it is an AP with d = 4. For uₙ, expand to get n² + n − n² = n. This is linear in n with coefficient 1, so it is an AP with d = 1. It is the sequence 1, 2, 3, … even though it was written in a form that looks quadratic.
Exercise
An AP has common difference −3. Every term is multiplied by 4 and then 10 is added. What is the common difference of the new sequence?
Show answer
Multiplying by 4 gives difference 4 × (−3) = −12. Adding 10 does not change the difference. The new common difference is −12.