Math Core

Lesson 4.5 · Introduction to Functions

Arithmetic sequences

Stack paper cups and each new row adds the same number of cups. Save $15 every week and your balance grows by the same amount each time. Patterns that change by a constant amount at every step are called arithmetic sequences, and they are your first look at the linear functions of the next unit.

Sequences

A sequence is an ordered list of numbers. Each number is a term. We name the terms with a letter and a subscript that gives the position: a1a_1 is the first term, a2a_2 is the second, and ana_n is the nnth term.

For the sequence 7,11,15,19,23,…7, 11, 15, 19, 23, \ldots we have a1=7a_1 = 7, a2=11a_2 = 11, a3=15a_3 = 15, and so on. The three dots mean the pattern continues.

A sequence is really a function. The input is the position nn and the output is the term ana_n. Since positions are 1,2,3,…1, 2, 3, \ldots, the domain is the positive integers. In function notation you could write a(3)=15a(3) = 15 instead of a3=15a_3 = 15.

Arithmetic sequences

Definition

Arithmetic sequence

An arithmetic sequence is a sequence in which you get each term by adding the same number to the term before it. That number is the common difference, dd.

To find dd, subtract any term from the term right after it: d=a2−a1d = a_2 - a_1. In 7,11,15,19,…7, 11, 15, 19, \ldots, the common difference is 11−7=411 - 7 = 4. Check that it stays the same: 15−11=415 - 11 = 4 and 19−15=419 - 15 = 4.

The common difference can be negative. In 20,14,8,2,…20, 14, 8, 2, \ldots, each term is 66 less than the last, so d=−6d = -6.

Common mistake

Always subtract in the order later term minus earlier term. For 20,14,8,…20, 14, 8, \ldots, computing 20−14=620 - 14 = 6 gives the wrong sign. The sequence goes down, so d=14−20=−6d = 14 - 20 = -6.

Worked example: Is it arithmetic?

Decide whether each sequence is arithmetic. If it is, give dd and the next two terms.

  1. 3,10,17,24,…3, 10, 17, 24, \ldots
  2. 2,6,18,54,…2, 6, 18, 54, \ldots
  3. 5,3.5,2,0.5,…5, 3.5, 2, 0.5, \ldots

Solutions.

  1. The differences are 7,7,77, 7, 7. Arithmetic with d=7d = 7. Next terms: 31,3831, 38.
  2. The differences are 4,12,364, 12, 36, which are not equal. Not arithmetic. (Each term is multiplied by 33; you'll meet sequences like this in the exponents unit.)
  3. The differences are −1.5,−1.5,−1.5-1.5, -1.5, -1.5. Arithmetic with d=−1.5d = -1.5. Next terms: −1,−2.5-1, -2.5.

The recursive formula

A recursive formula tells you the first term and how to get each term from the one before it. For an arithmetic sequence:

a1=first term,an=an−1+d.a_1 = \text{first term}, \qquad a_n = a_{n-1} + d.

Here an−1a_{n-1} means "the term just before ana_n." For 7,11,15,…7, 11, 15, \ldots, the recursive formula is a1=7a_1 = 7, an=an−1+4a_n = a_{n-1} + 4.

Recursive formulas describe the pattern well, but they're slow for far-off terms. To find a100a_{100}, you'd need all 9999 terms before it.

The explicit formula

An explicit formula gives any term directly from its position. Look at how the terms of 7,11,15,19,…7, 11, 15, 19, \ldots are built:

nnana_nbuilt from a1a_1
11777+0⋅47 + 0 \cdot 4
2211117+1⋅47 + 1 \cdot 4
3315157+2⋅47 + 2 \cdot 4
4419197+3⋅47 + 3 \cdot 4

To reach the nnth term, you start at a1a_1 and add dd one time fewer than the position number: n−1n - 1 times.

Explicit formula for an arithmetic sequence

an=a1+(n−1)da_n = a_1 + (n - 1)d

where a1a_1 is the first term and dd is the common difference.

For 7,11,15,…7, 11, 15, \ldots: an=7+(n−1)(4)a_n = 7 + (n - 1)(4). Simplifying gives an=7+4n−4=4n+3a_n = 7 + 4n - 4 = 4n + 3. Now a100=4(100)+3=403a_{100} = 4(100) + 3 = 403 takes one step.

Worked example: Writing and using an explicit formula

For the sequence 20,14,8,2,…20, 14, 8, 2, \ldots, write an explicit formula and find a15a_{15}.

Here a1=20a_1 = 20 and d=−6d = -6.

an=20+(n−1)(−6)=20−6n+6=26−6n\begin{aligned} a_n &= 20 + (n - 1)(-6) \\ &= 20 - 6n + 6 \\ &= 26 - 6n \end{aligned}

Then a15=26−6(15)=26−90=−64a_{15} = 26 - 6(15) = 26 - 90 = -64.

Check with a known term: a4=26−24=2a_4 = 26 - 24 = 2. Correct.

Graphing an arithmetic sequence

Plot each term as a point (n,an)(n, a_n). Because the terms go up by the same amount each step, the points lie on a line. The common difference is how much the points rise for each step to the right.

The terms of 7, 11, 15, 19, 23 plotted as points (n, aₙ). They lie on the dashed line y = 4x + 3.Open in grapher →

The graph is a set of separate dots, not a solid line, because the domain is only the positive integers. There is no "term number 2.52.5." The dashed line just shows the pattern. Notice that the explicit formula an=4n+3a_n = 4n + 3 looks exactly like the equation of that line.

Working with two known terms

If you know two terms that aren't next to each other, count the steps between them.

Worked example: Finding a sequence from two terms

In an arithmetic sequence, a4=17a_4 = 17 and a10=41a_{10} = 41. Find the explicit formula.

Going from term 44 to term 1010 takes 10−4=610 - 4 = 6 steps, and the value grows by 41−17=2441 - 17 = 24. So each step adds

d=246=4.d = \frac{24}{6} = 4.

To find a1a_1, go back 33 steps from a4a_4: a1=17−3(4)=5a_1 = 17 - 3(4) = 5.

The formula is an=5+(n−1)(4)=4n+1a_n = 5 + (n - 1)(4) = 4n + 1. Check: a10=40+1=41a_{10} = 40 + 1 = 41. Correct.

Worked example: Which term is it?

A theater's first row has 1818 seats, and each row has 33 more seats than the row in front of it. Which row has 102102 seats?

The seat counts form an arithmetic sequence with a1=18a_1 = 18 and d=3d = 3. Set the explicit formula equal to 102102 and solve for nn:

18+(n−1)(3)=102(n−1)(3)=84n−1=28n=29\begin{aligned} 18 + (n - 1)(3) &= 102 \\ (n - 1)(3) &= 84 \\ n - 1 &= 28 \\ n &= 29 \end{aligned}

Row 29 has 102102 seats.

Tip

If solving for nn gives a fraction or a negative number, the value is not a term of the sequence. Positions must be positive integers.

Practice

Practice 1

What is the common difference of 3,10,17,24,…3, 10, 17, 24, \ldots?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 2

Find the next term of 45,38,31,24,…45, 38, 31, 24, \ldots

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

Which sequence is arithmetic?

Practice 4

An arithmetic sequence has a1=6a_1 = 6 and d=5d = 5. Find a20a_{20}.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 5

Write an explicit formula for 9,13,17,21,…9, 13, 17, 21, \ldots Enter the expression for ana_n in terms of nn.

Enter an expression, e.g. 3x^2 - 2x + 1

Practice 6

A sequence is defined by a1=−4a_1 = -4 and an=an−1+6a_n = a_{n-1} + 6. Find a5a_5.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 7

In an arithmetic sequence, a3=14a_3 = 14 and a8=39a_8 = 39. Find a20a_{20}.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 8

Which term of the sequence 7,11,15,19,…7, 11, 15, 19, \ldots is equal to 203203? Give the position nn.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.