Sequences Defined by an Explicit Formula

Site: Saylor Academy
Course: MA001: College Algebra
Book: Sequences Defined by an Explicit Formula
Printed by: Guest user
Date: Friday, May 17, 2024, 1:39 AM

Description

If you plan to learn calculus, this introduction to sequences and series will be very helpful. The first topic you will explore is how to write the terms of a sequence given a formula.

Sequences and Their Notations

Learning Objectives

In this section, you will:

  • Write the terms of a sequence defined by an explicit formula.
  • Write the terms of a sequence defined by a recursive formula.
  • Use factorial notation.

A video game company launches an exciting new advertising campaign. They predict the number of online visits to their website, or hits, will double each day. The model they are using shows 2 hits the first day, 4 hits the second day, 8 hits the third day, and so on. See Table 1.

Day 1 2 3 4 5
Hits 2 4 8 16 32

Table 1

If their model continues, how many hits will there be at the end of the month? To answer this question, we'll first need to know how to determine a list of numbers written in a specific order. In this section, we will explore these kinds of ordered lists.


Source: Rice University, https://openstax.org/books/college-algebra/pages/9-1-sequences-and-their-notations
Creative Commons License This work is licensed under a Creative Commons Attribution 4.0 License.

Writing the Terms of a Sequence Defined by an Explicit Formula

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

\{2,4,8,16,32,…\}.

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.


The first term of the sequence is 2^1=2, the second term is 2^2=4, the third term is 2^3=8, and so on. The nth term of the sequence can be found by raising 2 to the nth power. An explicit formula for a sequence is named by a lower case letter a,b,c... with the subscript n. The explicit formula for this sequence is

a_n=2^n.

Now that we have a formula for the nth 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 31^{st} term of the sequence. We will substitute 31 for n in the formula.

\begin{align}
a_{31} &=2^{31} \\
&=2,147,483,648
\end{align}

If the doubling trend continues, the company will get 2,147,483,648 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 nth term of the sequence are shown in Table 2.

n
1 2 3 4 5 n
nth term of the sequence, a_n
2 4 8 16 32 2^n

Table 2

Graphing provides a visual representation of the sequence as a set of distinct points. We can see from the graph in Figure 1 that the number of hits is rising at an exponential rate. This particular sequence forms an exponential function.


Lastly, we can write this particular sequence as

\{2,4,8,16,32,…,2^n,…\}.

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

\{2,4,8,16,32,…,2^n,…,1024\}.

This sequence is called a finite sequence because it does not continue indefinitely.


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 n positive integers. The numbers in a sequence are called terms. The variable a with a number subscript is used to represent the terms in a sequence and to indicate the position of the term in the sequence.

a_1,a_2,a_3,…,a_n,…

We call a_1 the first term of the sequence, a_2 the second term of the sequence, a_3 the third term of the sequence, and so on. The term a_n is called the nth term of the sequence, or the general term of the sequence. An explicit formula defines the nth 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 a_1?

No. In certain problems, it may be useful to define the initial term as a_0 instead of a_1. In these problems, the domain of the function includes 0.


How To

Given an explicit formula, write the first n terms of a sequence.

  1. Substitute each value of n into the formula. Begin with n=1 to find the first term, a_1.
  2. To find the second term, a_2, use n=2.
  3. Continue in the same manner until you have identified all n terms.


Example 1

Writing the Terms of a Sequence Defined by an Explicit Formula

Write the first five terms of the sequence defined by the explicit formula a_n=−3n+8.


Solution

Substitute n=1 into the formula. Repeat with values 2 through 5 for n.

\begin{array}{ll}n=1 & a_{1}=-3(1)+8=5 \\n=2 & a_{2}=-3(2)+8=2 \\n=3 & a_{3}=-3(3)+8=-1 \\n=4 & a_{4}=-3(4)+8=-4 \\n=5 & a_{5}=-3(5)+8=-7\end{array}

The first five terms are \{5,2,−1,−4,−7\}.


Analysis

The sequence values can be listed in a table. A table, such as Table 3, is a convenient way to input the function into a graphing utility.

n
1 2 3 4 5
an
5 2 –1 –4 –7

Table 3

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.


Figure 2


Try It #1

Write the first five terms of the sequence defined by the explicit formula t_n=5n−4.


Investigating Alternating Sequences

Sometimes sequences have terms that are alternate. In fact, the terms may actually alternate in sign. The steps to finding terms of the sequence are the same as if the signs did not alternate. However, the resulting terms will not show increase or decrease as n increases. Let's take a look at the following sequence.

\{2,−4,6,−8\}

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 n terms of a sequence.

  1. Substitute each value of n into the formula. Begin with n=1 to find the first term, a_1. The sign of the term is given by the (−1)^n in the explicit formula.
  2. To find the second term, a_2, use n=2.
  3. Continue in the same manner until you have identified all n terms.


Example 2

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

Write the first five terms of the sequence.

a_n = \frac{(−1)^nn^2}{n+1}


Solution

Substitute n=1, n=2, and so on in the formula.

\begin{array}{ll}n=1 & a_{1}=\frac{(-1)^{1} 1^{2}}{1+1}=-\frac{1}{2} \\n=2 & a_{2}=\frac{(-1)^{2} 2^{2}}{2+1}=\frac{4}{3} \\n=3 & a_{3}=\frac{(-1)^{3} 3^{2}}{3+1}=-\frac{9}{4} \\n=4 & a_{4}=\frac{(-1)^{4} 4^{2}}{4+1}=\frac{16}{5} \\n=5 & a_{5}=\frac{(-1)^{5} 5^{2}}{5+1}=-\frac{25}{6}\end{array}

The first five terms are \{−\frac{1}{2},\frac{4}{3},−\frac{9}{4},\frac{16}{5},−\frac{25}{6}\}.


Analysis

The graph of this function, shown in Figure 3, looks different from the ones we have seen previously in this section because the terms of the sequence alternate between positive and negative values.


Figure 3


Q&A

In Example 2, does the (–1) to the power of n account for the oscillations of signs?

Yes, the power might be n,n+1,n−1, 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 #2

Write the first five terms of the sequence.

a_n= \frac{4n}{(−2)^n}


Investigating Piecewise 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.


How To

Given an explicit formula for a piecewise function, write the first n terms of a sequence

  1. Identify the formula to which n=1 applies.
  2. To find the first term, a_1, use n=1 in the appropriate formula.
  3. Identify the formula to which n=2 applies.
  4. To find the second term, a_2, use n=2 in the appropriate formula.
  5. Continue in the same manner until you have identified all n terms.


Example 3

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

Write the first six terms of the sequence.

a_{n}=\left\{\begin{array}{lll}n^{2} & \text { if } n & \text { is not divisible by } 3 \\\frac{n}{3} & \text { if } n & \text { is divisible by } 3\end{array}\right.


Solution

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

\begin{array}{ll}a_{1}=1^{2}=1 & 1 \text { is not a multiple of } 3 . \text { Use } n^{2} . \\a_{2}=2^{2}=4 & 2 \text { is not a multiple of } 3 . \text { Use } n^{2} . \\a_{3}=\frac{3}{3}=1 & 3 \text { is a multiple of } 3 . \text { Use } \frac{n}{3} . \\a_{4}=4^{2}=16 & 4 \text { is not a multiple of } 3 . \text { Use } n^{2} . \\a_{5}=5^{2}=25 & 5 \text { is not a multiple of } 3 . \text { Use } n^{2} . \\a_{6}=\frac{6}{3}=2 & 6 \text { is a. multiple of } 3 . \text { Use } \frac{n}{3} .\end{array}

The first six terms are \{1,4,1,16,25,2\}.


Analysis

Every third point on the graph shown in Figure 4 stands out from the two nearby points. This occurs because the sequence was defined by a piecewise function.


Figure 4


Try It #3

Write the first six terms of the sequence.

a_{n}=\left\{\begin{array}{lll}
2n^{3} & \text { if } n & \text { is odd } \\
\frac{5n}{2} & \text { if } n & \text { is even }
\end{array}\right.


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 nth 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.


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 a_n in terms of n. Test your formula for n=1,n=2, and n=3.


Example 4

Writing an Explicit Formula for the nth Term of a Sequence

Write an explicit formula for the nth term of each sequence.

\{−\frac{2}{11},\frac{3}{13},−\frac{4}{15},\frac{5}{17},−\frac{6}{19},…\}

\{−\frac{2}{25},−\frac{2}{125},−\frac{2}{625},−\frac{2}{3,125},−\frac{2}{15,625},…\}

\{e^4,e^5,e^6,e^7,e^8,…\}


Solution

Look for the pattern in each sequence.

ⓐ The terms alternate between positive and negative. We can use (−1)^n to make the terms alternate. The numerator can be represented by n+1. The denominator can be represented by 2n+9.

a_n=\frac{(−1)^n(n+1)}{2n+9}

ⓑ The terms are all negative.

\begin{array}{lll}
    \{ -\frac{2}{25},-\frac{2}{125},-\frac{2}{625},-\frac{2}{3,125},-\frac{2}{15,125},...\} & \text{ the numerator is } 2 \\
    \{-\frac{2}{5^2},-\frac{2}{5^3},-\frac{2}{5^4},-\frac{2}{5^6},-\frac{2}{5^7},...-\frac{2}{5^n},\} & \text {the denominators are increasing power of } 5
    \end{array}

So we know that the fraction is negative, the numerator is 2, and the denominator can be represented by 5^{n+1}.

a_n=−\frac{2}{5^{n+1}}

ⓒ The terms are powers of e. For n=1, the first term is e^4 so the exponent must be n+3.

a^n=e^{n+3}


Try It #4

Write an explicit formula for the nth term of the sequence.

\{9,−81,729,−6,561,59,049,…\}


Try It #5

Write an explicit formula for the nth term of the sequence.

\{−\frac{3}{4},−\frac{9}{8},−\frac{27}{12},−\frac{81}{16},−\frac{243}{20},...\}


 Try It #6

Write an explicit formula for the nth term of the sequence.

\{\frac{1}{e^2}, \frac{1}{e}, 1, e, e^2,...\}

Determine Terms of a Basic Arithmetic Sequence Given a Formula



Source: Mathispower4u, https://www.youtube.com/watch?v=546aSVAePUw
Creative Commons License This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License.