We've updated our
Privacy Policy effective December 15. Please read our updated Privacy Policy and tap

Study Guides > College Algebra CoRequisite Course

Sequences Defined by an Explicit Formula

Learning Outcomes

  • Write the terms of a sequence defined by an explicit formula
  • Write the formula for the nth term of a sequence
  • Find the terms of an alternating sequence

tip for success

We'll learn quite a lot of new terminology in this module that will be frequently used in context. Making a glossary for yourself and using flashcards to memorize the terms will help reduce the challenge in this module. Work on memorizing the terms and using them in context each day so that they will be familiar to you on quizzes and tests.
One way to describe an ordered list of numbers is as a sequence. A sequence is a function whose domain is a subset of the counting numbers. The sequence established by the number of hits on the website is

[latex]\left\{2,4,8,16,32,\dots \right\}[/latex]. The ellipsis (…) indicates that the sequence continues indefinitely. Each number in the sequence is called a term. The first five terms of this sequence are 2, 4, 8, 16, and 32. Listing all of the terms for a sequence can be cumbersome. For example, finding the number of hits on the website at the end of the month would require listing out as many as 31 terms. A more efficient way to determine a specific term is by writing a formula to define the sequence. One type of formula is an explicit formula, which defines the terms of a sequence using their position in the sequence. Explicit formulas are helpful if we want to find a specific term of a sequence without finding all of the previous terms. We can use the formula to find the [latex]n\text{th}[/latex] term of the sequence, where [latex]n[/latex] is any positive number. In our example, each number in the sequence is double the previous number, so we can use powers of 2 to write a formula for the [latex]n\text{th}[/latex] term. Sequence of {2, 4, 8, 16, 32, ...} expressed in exponential form (i.e., {2^1, 2^2, 2^3, ..., 2^n, ...} The first term of the sequence is [latex]{2}^{1}=2[/latex], the second term is [latex]{2}^{2}=4[/latex], the third term is [latex]{2}^{3}=8[/latex], and so on. The [latex]n\text{th}[/latex] term of the sequence can be found by raising 2 to the [latex]n\text{th}[/latex] power. An explicit formula for a sequence is named by a lower case letter [latex]a,b,c..[/latex]. with the subscript [latex]n[/latex]. The explicit formula for this sequence is

[latex]{a}_{n}={2}^{n}[/latex] Now that we have a formula for the [latex]n\text{th}[/latex] term of the sequence, we can answer the question posed at the beginning of this section. We were asked to find the number of hits at the end of the month, which we will take to be 31 days. To find the number of hits on the last day of the month, we need to find the 31st term of the sequence. We will substitute 31 for [latex]n[/latex] in the formula.

[latex]\begin{align}{a}_{31}&={2}^{31} \\ &=\text{2,147,483,648} \end{align}[/latex] If the doubling trend continues, the company will get [latex]\text{2,147,483,648}[/latex] hits on the last day of the month. That is over 2.1 billion hits! The huge number is probably a little unrealistic because it does not take consumer interest and competition into account. It does, however, give the company a starting point from which to consider business decisions. Another way to represent the sequence is by using a table. The first five terms of the sequence and the [latex]n\text{th}[/latex] term of the sequence are shown in the table.

[latex]n[/latex] 12345[latex]n[/latex]
[latex]n\text{th}[/latex] term of the sequence, [latex]{a}_{n}[/latex] 2481632[latex]{2}^{n}[/latex]
Graphing provides a visual representation of the sequence as a set of distinct points. We can see from the graph below that the number of hits is rising at an exponential rate. This particular sequence forms an exponential function. Graph of a plotted exponential function, f(n) = 2^n, where the x-axis is labeled n and the y-axis is labeled a_n. Lastly, we can write this particular sequence as

[latex]\left\{2,4,8,16,32,\dots ,{2}^{n},\dots \right\}[/latex]. A sequence that continues indefinitely is called an infinite sequence. The domain of an infinite sequence is the set of counting numbers. If we consider only the first 10 terms of the sequence, we could write

[latex]\left\{2,4,8,16,32,\dots ,1024\right\}[/latex] This sequence is called a finite sequence because it does not continue indefinitely.

A General Note: Sequence

A sequence is a function whose domain is the set of positive integers. A finite sequence is a sequence whose domain consists of only the first [latex]n[/latex] positive integers. The numbers in a sequence are called terms. The variable [latex]a[/latex] with a number subscript is used to represent the terms in a sequence and to indicate the position of the term in the sequence.

[latex]{a}_{1},{a}_{2},{a}_{3},\dots ,{a}_{n},\dots [/latex] We call [latex]{a}_{1}[/latex] the first term of the sequence, [latex]{a}_{2}[/latex] the second term of the sequence, [latex]{a}_{3}[/latex] the third term of the sequence, and so on. The term [latex]{a}_{n}[/latex] is called the [latex]n\text{th}[/latex] term of the sequence, or the general term of the sequence. An explicit formula defines the [latex]n\text{th}[/latex] term of a sequence using the position of the term. A sequence that continues indefinitely is an infinite sequence.

Q & A

Does a sequence always have to begin with [latex]{a}_{1}?[/latex]

No. In certain problems, it may be useful to define the initial term as [latex]{a}_{0}[/latex] instead of [latex]{a}_{1}[/latex]. In these problems, the domain of the function includes 0.

How To: Given an explicit formula, write the first [latex]n[/latex] terms of a sequence.

  1. Substitute each value of [latex]n[/latex] into the formula. Begin with [latex]n=1[/latex] to find the first term, [latex]{a}_{1}[/latex].
  2. To find the second term, [latex]{a}_{2}[/latex], use [latex]n=2[/latex].
  3. Continue in the same manner until you have identified all [latex]n[/latex] terms.

Example: Writing the Terms of a Sequence Defined by an Explicit Formula

Write the first five terms of the sequence defined by the explicit formula [latex]{a}_{n}=-3n+8[/latex].

Answer: Substitute [latex]n=1[/latex] into the formula. Repeat with values 2 through 5 for [latex]n[/latex].

[latex]\begin{align}n=1 && {a}_{1}=-3\left(1\right)+8=5 \\ n=2 && {a}_{2}=-3\left(2\right)+8=2 \\ n=3 && {a}_{3}=-3\left(3\right)+8=-1 \\ n=4 && {a}_{4}=-3\left(4\right)+8=-4 \\ n=5 && {a}_{5}=-3\left(5\right)+8=-7 \end{align}[/latex]

The first five terms are [latex]\left\{5,2,-1,-4,-7\right\}[/latex].

Analysis of the Solution

The sequence values can be listed in a table. A table is a convenient way to input the function into a graphing utility.
[latex]n[/latex] 12345
[latex]{a}_{n}[/latex] 52–1–4–7
A graph can be made from this table of values. From the graph in Figure 2, we can see that this sequence represents a linear function, but notice the graph is not continuous because the domain is over the positive integers only. Graph of a scattered plot where the x-axis is labeled n and the y-axis is labeled a_n.

Try It

Write the first five terms of the sequence defined by the explicit formula [latex]{t}_{n}=5n - 4[/latex].

Answer: The first five terms are [latex]\left\{1,6, 11, 16, 21\right\} [/latex]

[embed]

Investigating Explicit Formulas

We’ve learned that sequences are functions whose domain is over the positive integers. This is true for other types of functions, including some piecewise functions. Recall that a piecewise function is a function defined by multiple subsections. A different formula might represent each individual subsection.

recall piecewise functions

You saw piecewise-defined functions in Module 5: Function Basics. Feel free to return there for a refresher at anytime.

How To: Given an explicit formula for a piecewise function, write the first [latex]n[/latex] terms of a sequence

  1. Identify the formula to which [latex]n=1[/latex] applies.
  2. To find the first term, [latex]{a}_{1}[/latex], use [latex]n=1[/latex] in the appropriate formula.
  3. Identify the formula to which [latex]n=2[/latex] applies.
  4. To find the second term, [latex]{a}_{2}[/latex], use [latex]n=2[/latex] in the appropriate formula.
  5. Continue in the same manner until you have identified all [latex]n[/latex] terms.

Example: Writing the Terms of a Sequence Defined by a Piecewise Explicit Formula

Write the first six terms of the sequence.

[latex]{a_{n}}=\begin{cases}n^{2} & \text{if }n\text{ is not divisible by 3} \\[1mm] \dfrac{n}{3} & \text{if }n\text{ is divisible by 3}\end{cases}[/latex]

Answer: Substitute [latex]n=1,n=2[/latex], and so on in the appropriate formula. Use [latex]{n}^{2}[/latex] when [latex]n[/latex] is not a multiple of 3. Use [latex]\frac{n}{3}[/latex] when [latex]n[/latex] is a multiple of 3.

[latex]\begin{align}&{a}_{1}={1}^{2}=1 && \text{1 is not a multiple of 3. Use }{n}^{2}. \\[1mm] &{a}_{2}={2}^{2}=4 && \text{2 is not a multiple of 3. Use }{n}^{2}. \\[1mm] &{a}_{3}=\frac{3}{3}=1 && \text{3 is a multiple of 3. Use }\frac{n}{3}. \\[1mm] &{a}_{4}={4}^{2}=16 && \text{4 is not a multiple of 3. Use }{n}^{2}. \\[1mm] &{a}_{5}={5}^{2}=25 && \text{5 is not a multiple of 3. Use }{n}^{2}. \\[1mm] &{a}_{6}=\frac{6}{3}=2 && \text{6 is a multiple of 3. Use }\frac{n}{3}. \end{align}[/latex] The first six terms are [latex]\left\{1,4,1,16,25,2\right\}[/latex].

Analysis of the Solution

Every third point on the graph shown in Figure 5 stands out from the two nearby points. This occurs because the sequence was defined by a piecewise function. Graph of a scattered plot where the x-axis is labeled n and the y-axis is labeled a_n.

Try It

Write the first six terms of the sequence.

[latex]{a_{n}}=\begin{cases}2n^{3} & \text{if }n\text{ is odd} \\[1mm] \dfrac{5n}{2} & \text{if }n\text{ is even}\end{cases}[/latex]

Answer: The first six terms are [latex]\left\{2,5,54,10,250,15\right\}[/latex].

Finding an Explicit Formula

Thus far, we have been given the explicit formula and asked to find a number of terms of the sequence. Sometimes, the explicit formula for the [latex]n\text{th}[/latex] term of a sequence is not given. Instead, we are given several terms from the sequence. When this happens, we can work in reverse to find an explicit formula from the first few terms of a sequence. The key to finding an explicit formula is to look for a pattern in the terms. Keep in mind that the pattern may involve alternating terms, formulas for numerators, formulas for denominators, exponents, or bases.

tip for success

Finding an explicit formula for a sequence involves creativity and diligence. Sometimes it can be difficult to find! Do work through all the examples to gain experience with as many patterns as possible.

How To: Given the first few terms of a sequence, find an explicit formula for the sequence.

  1. Look for a pattern among the terms.
  2. If the terms are fractions, look for a separate pattern among the numerators and denominators.
  3. Look for a pattern among the signs of the terms.
  4. Write a formula for [latex]{a}_{n}[/latex] in terms of [latex]n[/latex]. Test your formula for [latex]n=1,n=2[/latex], and [latex]n=3[/latex].

tip for success

Try to find the patterns in the example below before looking at the answers.

Example: Writing an Explicit Formula for the nth Term of a Sequence

Write an explicit formula for the [latex]n\text{th}[/latex] term of each sequence.
  1. [latex]\left\{-\dfrac{2}{11},\dfrac{3}{13},-\dfrac{4}{15},\dfrac{5}{17},-\dfrac{6}{19},\dots \right\}[/latex]
  2. [latex]\left\{-\dfrac{2}{25},-\dfrac{2}{125},-\frac{2}{625},-\dfrac{2}{3\text{,}125},-\frac{2}{15\text{,}625},\dots \right\}[/latex]
  3. [latex]\left\{{e}^{4},{e}^{5},{e}^{6},{e}^{7},{e}^{8},\dots \right\}[/latex]

Answer: Look for the pattern in each sequence.

  1. The terms alternate between positive and negative. We can use [latex]{\left(-1\right)}^{n}[/latex] to make the terms alternate. The numerator can be represented by [latex]n+1[/latex]. The denominator can be represented by [latex]2n+9[/latex].
    [latex]{a}_{n}=\dfrac{{\left(-1\right)}^{n}\left(n+1\right)}{2n+9}[/latex]
  2. The terms are all negative.
    [latex]\begin{align} & \left\{-\dfrac{2}{25},-\dfrac{2}{125},-\dfrac{2}{625},-\dfrac{2}{3\text{,}125},-\dfrac{2}{15\text{,}625},\dots \right\}&& \text{The numerator is 2.} \\[1mm] & \left\{-\dfrac{2}{5^2},-\dfrac{2}{5^3},- \dfrac{2}{5^4},-\dfrac{2}{5^5},-\dfrac{2}{5^6},\dots,-\dfrac{2}{5^n},\dots \right\} && \text{The denominators are increasing powers of 5.}\end{align}[/latex]
    So we know that the fraction is negative, the numerator is 2, and the denominator can be represented by [latex]{5}^{n+1}[/latex].
    [latex]{a}_{n}=-\dfrac{2}{{5}^{n+1}}[/latex]
  3. The terms are powers of [latex]e[/latex]. For [latex]n=1[/latex], the first term is [latex]{e}^{4}[/latex] so the exponent must be [latex]n+3[/latex].
    [latex]{a}_{n}={e}^{n+3}[/latex]

Try It

Write an explicit formula for the [latex]n\text{th}[/latex] term of the sequence.

[latex]\{9;−81,729;−6,561;59,049\}[/latex]

Answer: [latex-display]{a}_{n}={\left(-1\right)}^{n+1}{9}^{n}[/latex-display]

[embed]

Try It

Write an explicit formula for the [latex]n\text{th}[/latex] term of the sequence.
[latex]\left\{-\dfrac{3}{4},-\dfrac{9}{8},-\dfrac{27}{12},-\dfrac{81}{16},-\dfrac{243}{20},\dots\right\}[/latex]

Answer: [latex-display]{a}_{n}=-\dfrac{{3}^{n}}{4n}[/latex-display]

[embed]

Try It

Write an explicit formula for the [latex]n\text{th}[/latex] term of the sequence.
[latex]\left\{\dfrac{1}{{e}^{2}}, \dfrac{1}{e}, 1, e, {e}^{2},...\right\}[/latex]

Answer: [latex-display]{a}_{n}={e}^{n - 3}[/latex-display]

Investigating Alternating Sequences

Sometimes sequences have terms that alternate in sign. The steps to finding terms of the sequence are the same as if the signs did not alternate. Let’s take a look at the following sequence.
[latex]\left\{2,-4,6,-8\right\}[/latex]
Notice the first term is greater than the second term, the second term is less than the third term, and the third term is greater than the fourth term. This trend continues forever. Do not rearrange the terms in numerical order to interpret the sequence.

How To: Given an explicit formula with alternating terms, write the first [latex]n[/latex] terms of a sequence.

  1. Substitute each value of [latex]n[/latex] into the formula. Begin with [latex]n=1[/latex] to find the first term, [latex]{a}_{1}[/latex]. The sign of the term in the explicit formula is given by the [latex]{\left(-1\right)}^{n}[/latex] if the first term is negative and [latex]{\left(-1\right)}^{n-1}[/latex] if the first term is positive.
  2. To find the second term, [latex]{a}_{2}[/latex], use [latex]n=2[/latex].
  3. Continue in the same manner until you have identified all [latex]n[/latex] terms.

Example: Writing the Terms of an Alternating Sequence Defined by an Explicit Formula

Write the first five terms of the sequence.
[latex]{a}_{n}=\dfrac{{\left(-1\right)}^{n}{n}^{2}}{n+1}[/latex]

Answer: Substitute [latex]n=1[/latex], [latex]n=2[/latex], and so on in the formula.

[latex]\begin{align}&n=1 && {a}_{1}=\dfrac{{\left(-1\right)}^{1}{2}^{2}}{1+1}=-\dfrac{1}{2} \\[1mm] &n=2 && {a}_{2}=\dfrac{{\left(-1\right)}^{2}{2}^{2}}{2+1}=\dfrac{4}{3} \\[1mm] &n=3 && {a}_{3}=\dfrac{{\left(-1\right)}^{3}{3}^{2}}{3+1}=-\frac{9}{4} \\[1mm] &n=4 && {a}_{4}=\dfrac{{\left(-1\right)}^{4}{4}^{2}}{4+1}=\dfrac{16}{5} \\[1mm] &n=5 && {a}_{5}=\dfrac{{\left(-1\right)}^{5}{5}^{2}}{5+1}=-\dfrac{25}{6} \end{align}[/latex]
The first five terms are [latex]\left\{-\dfrac{1}{2},\dfrac{4}{3},-\dfrac{9}{4},\dfrac{16}{5},-\dfrac{25}{6}\right\}[/latex].

Analysis of the Solution

The graph of this function looks different from the ones we have seen previously in this section because the terms of the sequence alternate between positive and negative values. Graph of a scattered plot with labeled points: (1, -1/2), (2, 4/3), (3, -9/4), (4, 16/5), and (5, -25/6). The x-axis is labeled n and the y-axis is labeled a_n.

Q & A

In Example: Writing the Terms of an Alternating Sequence Defined by an Explicit Formula, does the (–1) to the power of [latex]n[/latex] account for the oscillations of signs?

Yes, the power might be [latex]n,n+1,n - 1[/latex], and so on, but any odd powers will result in a negative term, and any even power will result in a positive term.

Try It

Write the first five terms of the sequence:
[latex]{a}_{n}=\dfrac{4n}{{\left(-2\right)}^{n}}[/latex]

Answer: The first five terms are [latex]\left\{-2, 2, -\dfrac{3}{2}, 1,-\dfrac{5}{8}\right\}[/latex].

[embed]

Licenses & Attributions

CC licensed content, Original

CC licensed content, Shared previously

  • College Algebra. Provided by: OpenStax Authored by: Abramson, Jay et al.. License: CC BY: Attribution. License terms: Download for free at http://cnx.org/contents/[email protected].
  • Question ID 5846, 5823. Authored by: Webwork-Rochester. License: CC BY: Attribution. License terms: IMathAS Community License CC-BY + GPL.
  • Question ID 5805, 5806. Authored by: David Lippman. License: CC BY: Attribution. License terms: IMathAS Community License CC-BY + GPL.

CC licensed content, Specific attribution