Skip to content
Tutorials Center
My learning

Topics

Lesson 33 of 86 ยท Algebra, Geometry and Calendars

Arithmetic and Geometric Progressions

Learn the nth term and sum formulas for arithmetic and geometric progressions, means, special sums and word problems, and test them with code.

A progression (or sequence) is a list of numbers where each term follows from the one before by a fixed rule. Two rules are so common that they have names: you add the same amount each time (an arithmetic progression) or you multiply by the same factor each time (a geometric progression). Salaries that rise by a fixed raise, savings that double, a ball that bounces lower each time, and the sum of the first n natural numbers all belong here.

In this lesson you will learn the formula for the nth term and for the sum of each type, the three kinds of mean, the special sums every exam uses, and how to translate word problems. Two scripts generate a series and verify the formulas.

Arithmetic progressions (AP)

In an AP the common difference d is constant. If the first term is a, the terms are a, a + d, a + 2d, ...

  • nth term: a(n) = a + (n - 1)d
  • Sum of n terms: S(n) = n/2 x (2a + (n - 1)d) = n/2 x (first term + last term)
  • Number of terms from first term a to last term l: n = (l - a) / d + 1

Example 1. In the series 5, 9, 13, ... the first term is 5 and d = 4. The 20th term is 5 + 19 x 4 = 81. The sum of 20 terms is 20/2 x (5 + 81) = 860.

Example 2. How many terms are in 7, 12, 17, ..., 102? The count is (102 - 7) / 5 + 1 = 20.

Three useful properties:

  • The middle of three consecutive terms is their average. For three numbers in AP, write them as x - d, x, x + d.
  • Terms equally far from the two ends add up to the same total (first + last = second + second-last = ...), which is where the sum formula comes from.
  • If a(n) is linear in n, the progression is an AP.

Example 3. Three numbers in AP have a sum of 27 and a product of 693. Write them as x - d, x, x + d. The sum is 3x = 27, so x = 9. The product is 9(81 - d squared) = 693, so 81 - d squared = 77 and d = 2. The numbers are 7, 9 and 11.

Geometric progressions (GP)

In a GP the common ratio r is constant. With first term a, the terms are a, ar, ar squared, ...

  • nth term: a(n) = a x r to the power (n - 1)
  • Sum of n terms: S(n) = a(r to the power n - 1) / (r - 1) when r is not 1 (use a(1 - r to the power n) / (1 - r) when r is less than 1)
  • Sum to infinity (only when the absolute value of r is less than 1): S = a / (1 - r)

Example 4. For 3, 6, 12, ... we have a = 3 and r = 2. The 8th term is 3 x 2 to the 7th = 384. The sum of 8 terms is 3(2 to the 8th - 1) = 3 x 255 = 765.

Example 5. For 12, 6, 3, ... we have a = 12 and r = 1/2. The sum of infinitely many terms is 12 / (1 - 1/2) = 24. The first 60 terms already add up to 24 to six decimal places.

flowchart TB
    A["Compare consecutive terms"] --> B{"Same difference?"}
    B -->|"Yes"| C["AP: a + (n-1)d"]
    B -->|"No"| D{"Same ratio?"}
    D -->|"Yes"| E["GP: a x r^(n-1)"]
    D -->|"No"| F["Check second differences,<br/>squares, cubes, mixed rules"]

Test the difference first, then the ratio; the number series lesson covers everything else.

A series generator

This script builds both kinds of series from a, d or r and n, prints the nth term and the sum, and compares the sum with the formula. Edit the values to test your own questions.

JS Series generator

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

No output.

Means: AM, GM and HM

For two positive numbers a and b:

  • Arithmetic mean: AM = (a + b) / 2, the middle term of an AP a, AM, b.
  • Geometric mean: GM = the square root of ab, the middle term of a GP a, GM, b.
  • Harmonic mean: HM = 2ab / (a + b).

For 4 and 9: AM = 6.5, GM = 6 and HM = 72/13, about 5.54. Always AM >= GM >= HM, with equality only when a = b. Also AM x HM = GM squared: 6.5 x 72/13 = 36.

To insert m arithmetic means between a and b, the common difference is d = (b - a) / (m + 1). Four means between 3 and 23 give d = 20 / 5 = 4, so the series is 3, 7, 11, 15, 19, 23. To insert m geometric means, the ratio is r = (b / a) to the power 1 / (m + 1).

Special sums

These formulas appear constantly in series, mensuration and probability. Learn them:

Sum Formula First 10 terms
1 + 2 + ... + n n(n + 1) / 2 55
1 squared + ... + n squared n(n + 1)(2n + 1) / 6 385
1 cubed + ... + n cubed (n(n + 1) / 2) squared 3025
First n odd numbers n squared 100
First n even numbers n(n + 1) 110

Notice that the sum of cubes is the square of the sum of the natural numbers: 55 squared = 3025.

Word problems

Fixed raise (AP). A job starts at 30,000 a year with a raise of 1,500 each year. Total earnings over 10 years: 10/2 x (2 x 30,000 + 9 x 1,500) = 5 x 73,500 = 367,500.

Bouncing ball (infinite GP). A ball is dropped from 16 m and rebounds to 3/4 of its previous height each time. The total distance travelled is the first drop plus every up-and-down trip. The rebound heights are 12, 9, 6.75, ..., with an infinite sum of 12 / (1 - 3/4) = 48. Each rebound height is travelled twice (up and down), so the total is 16 + 2 x 48 = 112 m.

Doubling. A bacteria colony of 500 doubles every hour. After 6 hours the count is 500 x 2 to the 6th = 32,000. The same pattern with a percentage rate is compound interest, covered in Compound Interest.

Verify the special sums and word problems

This script checks the special-sum formulas against a loop and reproduces the ball and the three-number problem.

JS Check special sums and word problems

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

No output.

Common mistakes

  • Using n instead of n - 1 in the nth-term formula.
  • Using the infinite-sum formula when the ratio is 1 or larger in size. It only works if the absolute value of r is below 1.
  • Forgetting to double the rebound distances in a bouncing-ball problem.
  • Counting terms as (l - a) / d without adding 1.
  • Mixing up the sum of the first n odd numbers (n squared) with the sum of the first n even numbers (n(n + 1)).

Check your understanding

Quick check ยท 5 questions

of 5 answered You scored / 5 ยท perfect!

  1. 1. What is the 15th term of the AP 8, 13, 18, ...?

    a = 8 and d = 5, so a(15) = 8 + 14 x 5 = 78.
  2. 2. What is the sum of the first 30 natural numbers?

    30 x 31 / 2 = 465.
  3. 3. The first term of a GP is 5 and the ratio is 3. What is the sum of the first 4 terms?

    The terms are 5, 15, 45, 135, with sum 200. By formula: 5(81 - 1) / 2 = 200.
  4. 4. What is the sum to infinity of 18, 6, 2, ...?

    a = 18 and r = 1/3, so S = 18 / (1 - 1/3) = 18 / (2/3) = 27.
  5. 5. How many terms does the AP 4, 9, 14, ... have if its sum to be 265?

    The sum of n terms is n/2 x (8 + 5(n - 1)) = n(5n + 3) / 2. For n = 10 that is 10 x 53 / 2 = 265.

Summary

  • AP: a(n) = a + (n - 1)d and S(n) = n/2 x (2a + (n - 1)d). GP: a(n) = a x r to the power (n - 1) and S(n) = a(r to the power n - 1) / (r - 1).
  • A GP with absolute ratio below 1 has an infinite sum a / (1 - r).
  • AM >= GM >= HM, and AM x HM = GM squared for two numbers; m arithmetic means need d = (b - a) / (m + 1).
  • Learn the sums of the natural numbers, squares, cubes, odd numbers and even numbers.
  • Translate word problems by finding a and d (or r) and the number of terms.

Next: Mensuration: Areas and Perimeters, where the formulas move from sequences to shapes.