Skip to content
Tutorials Center
My learning

Topics

Lesson 25 of 38 ยท Patterns and Sequences

Arithmetic Sequences

Learn what an arithmetic sequence is, how to find the common difference, use the n-th term formula, and add up the first n terms with a simple trick.

An arithmetic sequence is a list of numbers where you get from each term to the next by adding the same number every time. That fixed number is called the common difference, written d. Seat numbers along a row, the cost of buying 1, 2, 3 pencils at a fixed price, and the days on a calendar every week are all arithmetic sequences.

For example 5, 8, 11, 14, ... has first term 5 and common difference 3. The sequence 50, 45, 40, 35, ... has first term 50 and common difference -5 (a negative difference means the terms decrease).

Notation

Symbol Meaning
aโ‚ the first term
d the common difference
aโ‚™ the n-th term (the term in position n)
n the position number

To find d, subtract any term from the one after it: d = aโ‚‚ - aโ‚. In an arithmetic sequence the answer is the same wherever you check.

The n-th term formula

How do you reach term n? Start at aโ‚ and add d a total of n - 1 times (the first term is already there):

Text
aโ‚™ = aโ‚ + (n - 1) ยท d

Example 1. Find the 20th term of 3, 7, 11, 15, .... Here aโ‚ = 3, d = 4, n = 20.

Text
aโ‚‚โ‚€ = 3 + (20 - 1) ร— 4 = 3 + 76 = 79

Example 2. The sequence 100, 94, 88, ... has d = -6. Find the 11th term.

Text
aโ‚โ‚ = 100 + 10 ร— (-6) = 100 - 60 = 40

Example 3 (reverse). Which term of 7, 12, 17, 22, ... equals 102? Solve 7 + (n - 1) ร— 5 = 102:

Text
(n - 1) ร— 5 = 95
n - 1 = 19
n = 20

The 20th term is 102.

You can also rearrange the formula into the form from the last lesson. Since aโ‚™ = aโ‚ + (n-1)d = dn + (aโ‚ - d), the sequence 3, 7, 11, ... has rule 4n - 1. Check: n = 20 gives 79. Same answer.

Python n-th term calculator

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Adding up an arithmetic sequence

A famous story says a young pupil was asked to add 1 + 2 + 3 + ... + 100. The trick is to pair the first and last terms: 1 + 100 = 101, 2 + 99 = 101, 3 + 98 = 101, and so on. There are 50 such pairs, so the total is 50 ร— 101 = 5050.

This works for any arithmetic sequence. The sum of the first n terms is:

Text
Sโ‚™ = n/2 ร— (aโ‚ + aโ‚™)

Example 4. Add the first 20 terms of 3, 7, 11, .... We found aโ‚‚โ‚€ = 79.

Text
Sโ‚‚โ‚€ = 20/2 ร— (3 + 79) = 10 ร— 82 = 820
flowchart LR
  A["1 + 2 + ... + 100"] --> B["Pair ends:<br/>1+100, 2+99, 3+98 ..."]
  B --> C["50 pairs, each 101"]
  C --> D["50 ร— 101 = 5050"]

Pairing the first and last terms turns a long sum into a multiplication.

The code below checks the pairing formula against a brute-force sum for several sequences.

Python Sum formula versus brute force

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Visualizing an arithmetic sequence

If you plot position n along the horizontal axis and the term aโ‚™ on the vertical axis, the points fall on a straight line. The common difference is how much the line rises for each step to the right. This link between sequences and straight lines returns when we study slope in the coordinate plane chapter.

Python Arithmetic sequences lie on a line

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Everyday uses

  • Saving. You start with $20 and add $15 each week: 20, 35, 50, .... After week n you have 20 + 15n.
  • Seating. A theater has 12 seats in the first row and 2 more in each next row. Row 10 has 12 + 9 ร— 2 = 30 seats.
  • Temperature drops. In the troposphere, air cools roughly 6.5 ยฐC per kilometer, so temperatures at equal height steps form an arithmetic sequence.

Common mistakes

  • Using n instead of n - 1 in the formula. Check by testing n = 1: you must get aโ‚.
  • Getting the sign of d wrong in a decreasing sequence.
  • Forgetting to halve in the sum formula.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. What is the common difference of 40, 34, 28, 22, ...?

    Each term is 6 less than the one before, so d = 34 - 40 = -6.
  2. 2. Find the 15th term of 2, 5, 8, 11, ...

    aโ‚โ‚… = 2 + 14 ร— 3 = 2 + 42 = 44.
  3. 3. Find 1 + 2 + 3 + ... + 40.

    S = 40/2 ร— (1 + 40) = 20 ร— 41 = 820.
  4. 4. Which term of 4, 9, 14, 19, ... is 94?

    4 + (n - 1) ร— 5 = 94 gives (n - 1) ร— 5 = 90, so n - 1 = 18 and n = 19.

Summary

  • An arithmetic sequence adds a constant common difference d each step.
  • The n-th term is aโ‚™ = aโ‚ + (n - 1)d.
  • The sum of the first n terms is Sโ‚™ = n/2 ร— (aโ‚ + aโ‚™).
  • Plotted points of an arithmetic sequence lie on a straight line.

Next: Geometric Sequences