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

أدلة الدراسة > Precalculus II

Sequences and Their Notations

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
[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, ...} >Figure 1
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{array}{l}{a}_{31}={2}^{31}\hfill \\ \text{ }=\text{2,147,483,648}\hfill \end{array}[/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] 1 2 3 4 5 [latex]n[/latex]
[latex]n\text{th}[/latex] term of the sequence, [latex]{a}_{n}[/latex] 2 4 8 16 32 [latex]{2}^{n}[/latex]
Graphing provides a visual representation of the sequence as a set of distinct points. We can see from the graph in Figure 2 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. Figure 2
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 ,{2}^{n},\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 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 [latex]{a}_{n}=-3n+8[/latex].

Solution

Substitute [latex]n=1[/latex] into the formula. Repeat with values 2 through 5 for [latex]n[/latex].
[latex]\begin{array}{llllll}n=1\hfill & \hfill & \hfill & \hfill & \hfill & {a}_{1}=-3\left(1\right)+8=5\hfill \\ n=2\hfill & \hfill & \hfill & \hfill & \hfill & {a}_{2}=-3\left(2\right)+8=2\hfill \\ n=3\hfill & \hfill & \hfill & \hfill & \hfill & {a}_{3}=-3\left(3\right)+8=-1\hfill \\ n=4\hfill & \hfill & \hfill & \hfill & \hfill & {a}_{4}=-3\left(4\right)+8=-4\hfill \\ n=5\hfill & \hfill & \hfill & \hfill & \hfill & {a}_{5}=-3\left(5\right)+8=-7\hfill \end{array}[/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] 1 2 3 4 5
[latex]{a}_{n}[/latex] 5 2 –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. Figure 3

Try It 1

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

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 [latex]n[/latex] increases. 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 is given by the [latex]{\left(-1\right)}^{n}[/latex] in the explicit formula.
  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 2: Writing the Terms of an Alternating Sequence Defined by an Explicit Formula

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

Solution

Substitute [latex]n=1[/latex], [latex]n=2[/latex], and so on in the formula.
[latex]\begin{array}{lll}n=1\hfill & \begin{array}{cc}& \end{array}\hfill & {a}_{1}=\frac{{\left(-1\right)}^{1}{2}^{2}}{1+1}=-\frac{1}{2}\hfill \\ n=2\hfill & \begin{array}{cc}& \end{array}\hfill & {a}_{2}=\frac{{\left(-1\right)}^{2}{2}^{2}}{2+1}=\frac{4}{3}\hfill \\ n=3\hfill & \begin{array}{cc}& \end{array}\hfill & {a}_{3}=\frac{{\left(-1\right)}^{3}{3}^{2}}{3+1}=-\frac{9}{4}\hfill \\ n=4\hfill & \begin{array}{cc}& \end{array}\hfill & {a}_{4}=\frac{{\left(-1\right)}^{4}{4}^{2}}{4+1}=\frac{16}{5}\hfill \\ n=5\hfill & \hfill & {a}_{5}=\frac{{\left(-1\right)}^{5}{5}^{2}}{5+1}=-\frac{25}{6}\hfill \end{array}[/latex]
The first five terms are [latex]\left\{-\frac{1}{2},\frac{4}{3},-\frac{9}{4},\frac{16}{5},-\frac{25}{6}\right\}[/latex].

Analysis of the Solution

The graph of this function, shown in Figure 4, 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. Figure 4

Q & A

In Example 2, 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 2

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

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.

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 3: 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} \hfill& \text{if }n\text{ is not divisible by 3} \\ \frac{n}{3} \hfill& \text{if }n\text{ is divisible by 3}\end{cases}[/latex]

Solution

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{array}{ll}{a}_{1}={1}^{2}=1\begin{array}{cccc}& & & \end{array}\hfill & \text{1 is not a multiple of 3}\text{. Use }{n}^{2}.\hfill \\ {a}_{2}={2}^{2}=4\hfill & \text{2 is not a multiple of 3}\text{. Use }{n}^{2}.\hfill \\ {a}_{3}=\frac{3}{3}=1\hfill & \text{3 is a multiple of 3}\text{. Use }\frac{n}{3}.\hfill \\ {a}_{4}={4}^{2}=16\hfill & \text{4 is not a multiple of 3}\text{. Use }{n}^{2}.\hfill \\ {a}_{5}={5}^{2}=25\hfill & \text{5 is not a multiple of 3}\text{. Use }{n}^{2}.\hfill \\ {a}_{6}=\frac{6}{3}=2\hfill & \text{6 is a multiple of 3}\text{. Use }\frac{n}{3}.\hfill \end{array}[/latex]
The first six terms are [latex]\left\{1,\text{ }4,\text{ }1,\text{ }16,\text{ }25,\text{ }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. Figure 5

Try It 3

Write the first six terms of the sequence.

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

Solution

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.

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,\text{ }n=2[/latex], and [latex]n=3[/latex].

Example 4: 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\{-\frac{2}{11},\frac{3}{13},-\frac{4}{15},\frac{5}{17},-\frac{6}{19},\dots \right\}[/latex]
  2. [latex]\left\{-\frac{2}{25}\text{,}-\frac{2}{125}\text{,}-\frac{2}{625}\text{,}-\frac{2}{3\text{,}125}\text{,}-\frac{2}{15\text{,}625}\text{,}\dots \right\}[/latex]
  3. [latex]\left\{{e}^{4}\text{,}{e}^{5}\text{,}{e}^{6}\text{,}{e}^{7}\text{,}{e}^{8}\text{,}\dots \right\}[/latex]

Solution

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}=\frac{{\left(-1\right)}^{n}\left(n+1\right)}{2n+9}[/latex]

  2. The terms are all negative.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}=-\frac{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 4

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

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

Solution

Try It 5

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

Try It 6

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

Writing the Terms of a Sequence Defined by a Recursive Formula

Sequences occur naturally in the growth patterns of nautilus shells, pinecones, tree branches, and many other natural structures. We may see the sequence in the leaf or branch arrangement, the number of petals of a flower, or the pattern of the chambers in a nautilus shell. Their growth follows the Fibonacci sequence, a famous sequence in which each term can be found by adding the preceding two terms. The numbers in the sequence are 1, 1, 2, 3, 5, 8, 13, 21, 34,…. Other examples from the natural world that exhibit the Fibonacci sequence are the Calla Lily, which has just one petal, the Black-Eyed Susan with 13 petals, and different varieties of daisies that may have 21 or 34 petals. Each term of the Fibonacci sequence depends on the terms that come before it. The Fibonacci sequence cannot easily be written using an explicit formula. Instead, we describe the sequence using a recursive formula, a formula that defines the terms of a sequence using previous terms. A recursive formula always has two parts: the value of an initial term (or terms), and an equation defining [latex]{a}_{n}[/latex] in terms of preceding terms. For example, suppose we know the following:
[latex]\begin{array}{l}{a}_{1}=3\hfill \\ {a}_{n}=2{a}_{n - 1}-1, \text{for} n\ge 2\hfill \end{array}[/latex]
We can find the subsequent terms of the sequence using the first term.
[latex]\begin{array}{l}{a}_{1}=3\\ {a}_{2}=2{a}_{1}-1=2\left(3\right)-1=5\\ {a}_{3}=2{a}_{2}-1=2\left(5\right)-1=9\\ {a}_{4}=2{a}_{3}-1=2\left(9\right)-1=17\end{array}[/latex]
So the first four terms of the sequence are [latex]\left\{3,\text{ }5,\text{ }9,\text{ }17\right\}[/latex] . The recursive formula for the Fibonacci sequence states the first two terms and defines each successive term as the sum of the preceding two terms.
[latex]\begin{array}{l}{a}_{1}=1\hfill \\ {a}_{2}=1\hfill \\ {a}_{n}={a}_{n - 1}+{a}_{n - 2}, \text{for} n\ge 3\hfill \end{array}[/latex]
To find the tenth term of the sequence, for example, we would need to add the eighth and ninth terms. We were told previously that the eighth and ninth terms are 21 and 34, so
[latex]{a}_{10}={a}_{9}+{a}_{8}=34+21=55[/latex]

A General Note: Recursive Formula

A recursive formula is a formula that defines each term of a sequence using preceding term(s). Recursive formulas must always state the initial term, or terms, of the sequence.

Q & A

Must the first two terms always be given in a recursive formula?

No. The Fibonacci sequence defines each term using the two preceding terms, but many recursive formulas define each term using only one preceding term. These sequences need only the first term to be defined.

How To: Given a recursive formula with only the first term provided, write the first [latex]n[/latex] terms of a sequence.

  1. Identify the initial term, [latex]{a}_{1}[/latex], which is given as part of the formula. This is the first term.
  2. To find the second term, [latex]{a}_{2}[/latex], substitute the initial term into the formula for [latex]{a}_{n - 1}[/latex]. Solve.
  3. To find the third term, [latex]{a}_{3}[/latex], substitute the second term into the formula. Solve.
  4. Repeat until you have solved for the [latex]n\text{th}[/latex] term.

Example 5: Writing the Terms of a Sequence Defined by a Recursive Formula

Write the first five terms of the sequence defined by the recursive formula.
[latex]\begin{array}{l}\begin{array}{l}\\ {a}_{1}=9\end{array}\hfill \\ {a}_{n}=3{a}_{n - 1}-20\text{, for }n\ge 2\hfill \end{array}[/latex]

Solution

The first term is given in the formula. For each subsequent term, we replace [latex]{a}_{n - 1}[/latex] with the value of the preceding term.
[latex]\begin{array}{ll}n=1\begin{array}{lllll}\hfill & \hfill & \hfill & \hfill & \hfill \end{array}\hfill & {a}_{1}=9\hfill \\ n=2\hfill & {a}_{2}=3{a}_{1}-20=3\left(9\right)-20=27 - 20=7\hfill \\ n=3\hfill & {a}_{3}=3{a}_{2}-20=3\left(7\right)-20=21 - 20=1\hfill \\ n=4\hfill & {a}_{4}=3{a}_{3}-20=3\left(1\right)-20=3 - 20=-17\hfill \\ n=5\hfill & {a}_{5}=3{a}_{4}-20=3\left(-17\right)-20=-51 - 20=-71\hfill \end{array}[/latex]
The first five terms are [latex]\left\{9,\text{ }7,\text{ }1,\text{ }-17,\text{ }-71\right\}[/latex].
Graph of a scattered plot with labeled points: (1, 9), (2, 7), (3, 1), (4, -17), and (5, -71). The x-axis is labeled n and the y-axis is labeled a_n. Figure 6

Try It 7

Write the first five terms of the sequence defined by the recursive formula.
[latex]\begin{array}{l}{a}_{1}=2\\ {a}_{n}=2{a}_{n - 1}+1\text{, for }n\ge 2\end{array}[/latex]
Solution

How To: Given a recursive formula with two initial terms, write the first [latex]n[/latex] terms of a sequence.

  1. Identify the initial term, [latex]{a}_{1}[/latex], which is given as part of the formula.
  2. Identify the second term, [latex]{a}_{2}[/latex], which is given as part of the formula.
  3. To find the third term, substitute the initial term and the second term into the formula. Evaluate.
  4. Repeat until you have evaluated the [latex]n\text{th}[/latex] term.

Example 6: Writing the Terms of a Sequence Defined by a Recursive Formula

Write the first six terms of the sequence defined by the recursive formula.
[latex]\begin{array}{l}{a}_{1}=1\\ {a}_{2}=2\\ {a}_{n}=3{a}_{n - 1}+4{a}_{n - 2}\text{, for }n\ge 3\end{array}[/latex]

Solution

The first two terms are given. For each subsequent term, we replace [latex]{a}_{n - 1}[/latex] and [latex]{a}_{n - 2}[/latex] with the values of the two preceding terms.
[latex]\begin{array}{lllllll}n=3\hfill & \hfill & \hfill & \hfill & \hfill & \hfill & {a}_{3}=3{a}_{2}+4{a}_{1}=3\left(2\right)+4\left(1\right)=10\hfill \\ n=4\hfill & \hfill & \hfill & \hfill & \hfill & \hfill & {a}_{4}=3{a}_{3}+4{a}_{2}=3\left(10\right)+4\left(2\right)=38\hfill \\ n=5\hfill & \hfill & \hfill & \hfill & \hfill & \hfill & {a}_{5}=3{a}_{4}+4{a}_{3}=3\left(38\right)+4\left(10\right)=154\hfill \\ n=6\hfill & \hfill & \hfill & \hfill & \hfill & \hfill & {a}_{6}=3{a}_{5}+4{a}_{4}=3\left(154\right)+4\left(38\right)=614\hfill \end{array}[/latex]
The first six terms are [latex]\text{{1,2,10,38,154,614}}\text{.}[/latex]
Graph of a scattered plot with labeled points: (1, 1), (2, 2), (3, 10), (4, 38), (5, 154) and (6, 614). The x-axis is labeled n and the y-axis is labeled a_n. Figure 7

Try It 8

Write the first eight terms of the sequence defined by the recursive formula.
[latex]\begin{array}{l}\begin{array}{l}\\ {a}_{1}=0\end{array}\hfill \\ {a}_{2}=1\hfill \\ {a}_{3}=1\hfill \\ {a}_{n}=\frac{{a}_{n - 1}}{{a}_{n - 2}}+{a}_{n - 3}\text{, for }n\ge 4\hfill \end{array}[/latex]
Solution

Using Factorial Notation

The formulas for some sequences include products of consecutive positive integers. [latex]n[/latex] factorial, written as [latex]n![/latex], is the product of the positive integers from 1 to [latex]n[/latex]. For example,
[latex]\begin{array}{l}4!=4\cdot 3\cdot 2\cdot 1=24\hfill \\ 5!=5\cdot 4\cdot 3\cdot 2\cdot 1=120\hfill \end{array}[/latex]
An example of formula containing a factorial is [latex]{a}_{n}=\left(n+1\right)![/latex]. The sixth term of the sequence can be found by substituting 6 for [latex]n[/latex].
[latex]{a}_{6}=\left(6+1\right)!=7!=7\cdot 6\cdot 5\cdot 4\cdot 3\cdot 2\cdot 1=5040[/latex]
The factorial of any whole number [latex]n[/latex] is [latex]n\left(n - 1\right)![/latex] We can therefore also think of [latex]5![/latex] as [latex]5\cdot 4!\text{.}[/latex]

A General Note: Factorial

n factorial is a mathematical operation that can be defined using a recursive formula. The factorial of [latex]n[/latex], denoted [latex]n![/latex], is defined for a positive integer [latex]n[/latex] as:
[latex]\begin{array}{l}0!=1\\ 1!=1\\ n!=n\left(n - 1\right)\left(n - 2\right)\cdots \left(2\right)\left(1\right)\text{, for }n\ge 2\end{array}[/latex]
The special case [latex]0![/latex] is defined as [latex]0!=1[/latex].

Q & A

Can factorials always be found using a calculator?

No. Factorials get large very quickly—faster than even exponential functions! When the output gets too large for the calculator, it will not be able to calculate the factorial.

Example 7: Writing the Terms of a Sequence Using Factorials

Write the first five terms of the sequence defined by the explicit formula [latex]{a}_{n}=\frac{5n}{\left(n+2\right)!}[/latex].

Solution

Substitute [latex]n=1,n=2[/latex], and so on in the formula.
[latex]\begin{array}{lllll}n=1\hfill & \hfill & \hfill & \hfill & {a}_{1}=\frac{5\left(1\right)}{\left(1+2\right)!}=\frac{5}{3!}=\frac{5}{3\cdot 2\cdot 1}=\frac{5}{6}\hfill \\ n=2\hfill & \hfill & \hfill & \hfill & {a}_{2}=\frac{5\left(2\right)}{\left(2+2\right)!}=\frac{10}{4!}=\frac{10}{4\cdot 3\cdot 2\cdot 1}=\frac{5}{12}\hfill \\ n=3\hfill & \hfill & \hfill & \hfill & {a}_{3}=\frac{5\left(3\right)}{\left(3+2\right)!}=\frac{15}{5!}=\frac{15}{5\cdot 4\cdot 3\cdot 2\cdot 1}=\frac{1}{8}\hfill \\ n=4\hfill & \hfill & \hfill & \hfill & {a}_{4}=\frac{5\left(4\right)}{\left(4+2\right)!}=\frac{20}{6!}=\frac{20}{6\cdot 5\cdot 4\cdot 3\cdot 2\cdot 1}=\frac{1}{36}\hfill \\ n=5\hfill & \hfill & \hfill & \hfill & {a}_{5}=\frac{5\left(5\right)}{\left(5+2\right)!}=\frac{25}{7!}=\frac{25}{7\cdot 6\cdot 5\cdot 4\cdot 3\cdot 2\cdot 1}=\frac{5}{1\text{,}008}\hfill \end{array}[/latex]
The first five terms are [latex]\left\{\frac{5}{6},\frac{5}{12},\frac{1}{8},\frac{1}{36},\frac{5}{1,008}\right\}[/latex].

Analysis of the Solution

Figure 8 shows the graph of the sequence. Notice that, since factorials grow very quickly, the presence of the factorial term in the denominator results in the denominator becoming much larger than the numerator as [latex]n[/latex] increases. This means the quotient gets smaller and, as the plot of the terms shows, the terms are decreasing and nearing zero.
Graph of a scattered plot with labeled points: (1, 5/6), (2, 5/12), (3, 1/8), (4, 1/36), and (5, 5/1008). The x-axis is labeled n and the y-axis is labeled a_n. Figure 8

Try It 9

Write the first five terms of the sequence defined by the explicit formula [latex]{a}_{n}=\frac{\left(n+1\right)!}{2n}[/latex]. Solution

Key Equations

Formula for a factorial [latex]\begin{array}{l}0!=1\\ 1!=1\\ n!=n\left(n - 1\right)\left(n - 2\right)\cdots \left(2\right)\left(1\right)\text{, for }n\ge 2\end{array}[/latex]

Key Concepts

  • A sequence is a list of numbers, called terms, written in a specific order.
  • Explicit formulas define each term of a sequence using the position of the term.
  • An explicit formula for the [latex]n\text{th}[/latex] term of a sequence can be written by analyzing the pattern of several terms.
  • Recursive formulas define each term of a sequence using previous terms.
  • Recursive formulas must state the initial term, or terms, of a sequence.
  • A set of terms can be written by using a recursive formula.
  • A factorial is a mathematical operation that can be defined recursively.
  • The factorial of [latex]n[/latex] is the product of all integers from 1 to [latex]n[/latex]

Glossary

explicit formula
a formula that defines each term of a sequence in terms of its position in the sequence
finite sequence
a function whose domain consists of a finite subset of the positive integers [latex]\left\{1,2,\dots n\right\}[/latex] for some positive integer [latex]n[/latex]
infinite sequence
a function whose domain is the set of positive integers
n factorial
the product of all the positive integers from 1 to [latex]n[/latex]
nth term of a sequence
a formula for the general term of a sequence
recursive formula
a formula that defines each term of a sequence using previous term(s)
sequence
a function whose domain is a subset of the positive integers
term
a number in a sequence

Section Exercises

1. Discuss the meaning of a sequence. If a finite sequence is defined by a formula, what is its domain? What about an infinite sequence? 2. Describe three ways that a sequence can be defined. 3. Is the ordered set of even numbers an infinite sequence? What about the ordered set of odd numbers? Explain why or why not. 4. What happens to the terms [latex]{a}_{n}[/latex] of a sequence when there is a negative factor in the formula that is raised to a power that includes [latex]n?[/latex] What is the term used to describe this phenomenon? 5. What is a factorial, and how is it denoted? Use an example to illustrate how factorial notation can be beneficial. For the following exercises, write the first four terms of the sequence. 6. [latex]{a}_{n}={2}^{n}-2[/latex] 7. [latex]{a}_{n}=-\frac{16}{n+1}[/latex] 8. [latex]{a}_{n}=-{\left(-5\right)}^{n - 1}[/latex] 9. [latex]{a}_{n}=\frac{{2}^{n}}{{n}^{3}}[/latex] 10. [latex]{a}_{n}=\frac{2n+1}{{n}^{3}}[/latex] 11. [latex]{a}_{n}=1.25\cdot {\left(-4\right)}^{n - 1}[/latex] 12. [latex]{a}_{n}=-4\cdot {\left(-6\right)}^{n - 1}[/latex] 13. [latex]{a}_{n}=\frac{{n}^{2}}{2n+1}[/latex] 14. [latex]{a}_{n}={\left(-10\right)}^{n}+1[/latex] 15. [latex]{a}_{n}=-\left(\frac{4\cdot {\left(-5\right)}^{n - 1}}{5}\right)[/latex] For the following exercises, write the first eight terms of the piecewise sequence. 16. [latex]{a}_{n}=\begin{cases}\left(−2\right)^{n}−2 \hfill& \text{if }n\text{ is even} \\ \left(2\right)^{n−1} \hfill& \text{if }n\text{ is odd}\end{cases}[/latex] 17. [latex]{a}_{n}=\begin{cases}\frac{n^{2}}{2n+1}\hfill& \text{if }n\le5 \\ n^{2}−5 \hfill& \text{if }n>5\end{cases}[/latex] 18. [latex]{a}_{n}=\begin{cases}\left(2n+1\right)^{2}\hfill& \text{if }n\text{ is divisible by }4 \\ \frac{2}{n}\hfill& \text{if }n\text{ is not divisible by }4\end{cases}[/latex] 19. [latex]{a}_{n}=\begin{cases}−0.6\times5^{n−1}\hfill& \text{if }n\text{ is prime or }1 \\ 2.5\times\left(−2\right)^{n−1}\hfill& \text{if }n\text{ is composite}\end{cases}[/latex] 20. [latex]{a}_{n}=\begin{cases}4\left({n}^{2}-2\right)&\text{ if }{ n }\le{3}\text{ or }{ n }>{ 6 }\\\frac{{n}^{2}-2}{4} & \text{ if }{ 3 }<{ n }\le{ 6 }\end{cases}[/latex] For the following exercises, write an explicit formula for each sequence. 21. [latex]4, 7, 12, 19, 28,\dots [/latex] 22. [latex]-4,2,-10,14,-34,\dots [/latex] 23. [latex]1,1,\frac{4}{3},2,\frac{16}{5},\dots [/latex] 24. [latex]0,\frac{1-{e}^{1}}{1+{e}^{2}},\frac{1-{e}^{2}}{1+{e}^{3}},\frac{1-{e}^{3}}{1+{e}^{4}},\frac{1-{e}^{4}}{1+{e}^{5}},\dots [/latex] 25. [latex]1,-\frac{1}{2},\frac{1}{4},-\frac{1}{8},\frac{1}{16},\dots [/latex] For the following exercises, write the first five terms of the sequence. 26. [latex]{a}_{1}=9,\text{ }{a}_{n}={a}_{n - 1}+n[/latex] 27. [latex]{a}_{1}=3,\text{ }{a}_{n}=\left(-3\right){a}_{n - 1}[/latex] 28. [latex]{a}_{1}=-4,\text{ }{a}_{n}=\frac{{a}_{n - 1}+2n}{{a}_{n - 1}-1}[/latex] 29. [latex]{a}_{1}=-1,\text{ }{a}_{n}=\frac{{\left(-3\right)}^{n - 1}}{{a}_{n - 1}-2}[/latex] 30. [latex]{a}_{1}=-30,\text{ }{a}_{n}=\left(2+{a}_{n - 1}\right){\left(\frac{1}{2}\right)}^{n}[/latex] For the following exercises, write the first eight terms of the sequence. 31. [latex]{a}_{1}=\frac{1}{24},{\text{ a}}_{2}=1,\text{ }{a}_{n}=\left(2{a}_{n - 2}\right)\left(3{a}_{n - 1}\right)[/latex] 32. [latex]{a}_{1}=-1,{\text{ a}}_{2}=5,\text{ }{a}_{n}={a}_{n - 2}\left(3-{a}_{n - 1}\right)[/latex] 33. [latex]{a}_{1}=2,{\text{ a}}_{2}=10,\text{ }{a}_{n}=\frac{2\left({a}_{n - 1}+2\right)}{{a}_{n - 2}}[/latex] For the following exercises, write a recursive formula for each sequence. 34. [latex]-2.5,-5,-10,-20,-40,\dots [/latex] 35. [latex]-8,-6,-3,1,6,\dots [/latex] 36. [latex]2,\text{ }4,\text{ }12,\text{ }48,\text{ }240,\text{ }\dots [/latex] 37. [latex]35,\text{ }38,\text{ }41,\text{ }44,\text{ }47,\text{ }\dots [/latex] 38. [latex]15,3,\frac{3}{5},\frac{3}{25},\frac{3}{125},\cdots [/latex] For the following exercises, evaluate the factorial. 39. [latex]6![/latex] 40. [latex]\left(\frac{12}{6}\right)![/latex] 41. [latex]\frac{12!}{6!}[/latex] 42. [latex]\frac{100!}{99!}[/latex] For the following exercises, write the first four terms of the sequence. 43. [latex]{a}_{n}=\frac{n!}{{n}^{\text{2}}}[/latex] 44. [latex]{a}_{n}=\frac{3\cdot n!}{4\cdot n!}[/latex] 45. [latex]{a}_{n}=\frac{n!}{{n}^{2}-n - 1}[/latex] 46. [latex]{a}_{n}=\frac{100\cdot n}{n\left(n - 1\right)!}[/latex] For the following exercises, graph the first five terms of the indicated sequence 47. [latex]{a}_{n}=\frac{{\left(-1\right)}^{n}}{n}+n[/latex] 48. [latex]{a}_{n}=\begin{cases}\frac{4+n}{2n} & \text{if }n\text{ is even} \\ 3+n & \text{if }n\text{ is odd}\end{cases}[/latex] 49. [latex]{a}_{1}=2,\text{ }{a}_{n}={\left(-{a}_{n - 1}+1\right)}^{2}[/latex] 50. [latex]{a}_{n}=1,\text{ }{a}_{n}={a}_{n - 1}+8[/latex] 51. [latex]{a}_{n}=\frac{\left(n+1\right)!}{\left(n - 1\right)!}[/latex] For the following exercises, write an explicit formula for the sequence using the first five points shown on the graph. 52. Graph of a scattered plot with labeled points: (1, 5), (2, 7), (3, 9), (4, 11), and (5, 13). The x-axis is labeled n and the y-axis is labeled a_n. 53. Graph of a scattered plot with labeled points: (1, 0.5), (2, 1), (3, 2), (4, 4), and (5, 8). The x-axis is labeled n and the y-axis is labeled a_n. 54. Graph of a scattered plot with labeled points: (1, 12), (2, 9), (3, 6), (4, 3), and (5, 0). The x-axis is labeled n and the y-axis is labeled a_n. For the following exercises, write a recursive formula for the sequence using the first five points shown on the graph. 55. Graph of a scattered plot with labeled points: (1, 6), (2, 7), (3, 9), (4, 13), and (5, 21). The x-axis is labeled n and the y-axis is labeled a_n. 56. Graph of a scattered plot with labeled points: (1, 16), (2, 8), (3, 4), (4, 2), and (5, 1). The x-axis is labeled n and the y-axis is labeled a_n. Follow these steps to evaluate a sequence defined recursively using a graphing calculator:
  • On the home screen, key in the value for the initial term [latex]{a}_{1}[/latex] and press [ENTER].
  • Enter the recursive formula by keying in all numerical values given in the formula, along with the key strokes [2ND] ANS for the previous term [latex]{a}_{n - 1}[/latex]. Press [ENTER].
  • Continue pressing [ENTER] to calculate the values for each successive term.
For the following exercises, use the steps above to find the indicated term or terms for the sequence. 57. Find the first five terms of the sequence [latex]{a}_{1}=\frac{87}{111},\text{ }{a}_{n}=\frac{4}{3}{a}_{n - 1}+\frac{12}{37}[/latex]. Use the >Frac feature to give fractional results. 58. Find the 15th term of the sequence [latex]{a}_{1}=625, {a}_{n}=0.8{a}_{n - 1}+18[/latex]. 59. Find the first five terms of the sequence [latex]{a}_{1}=2, {a}_{n}={2}^{\left[\left({a}_{n}-1\right)-1\right]}+1[/latex]. 60. Find the first ten terms of the sequence [latex]{a}_{1}=8,\text{ }{a}_{n}=\frac{\left({a}_{n - 1}+1\right)!}{{a}_{n - 1}!}[/latex]. 61. Find the tenth term of the sequence [latex]{a}_{1}=2,\text{ }{a}_{n}=n{a}_{n - 1}[/latex] Follow these steps to evaluate a finite sequence defined by an explicit formula. Using a TI-84, do the following.
  • In the home screen, press [2ND] LIST.
  • Scroll over to OPS and choose "seq(" from the dropdown list. Press [ENTER].
  • In the line headed "Expr:" type in the explicit formula, using the [latex]\left[\text{X,T},\theta ,n\right][/latex] button for [latex]n[/latex]
  • In the line headed "Variable:" type in the variable used on the previous step.
  • In the line headed "start:" key in the value of [latex]n[/latex] that begins the sequence.
  • In the line headed "end:" key in the value of [latex]n[/latex] that ends the sequence.
  • Press [ENTER] 3 times to return to the home screen. You will see the sequence syntax on the screen. Press [ENTER] to see the list of terms for the finite sequence defined. Use the right arrow key to scroll through the list of terms.
Using a TI-83, do the following.
  • In the home screen, press [2ND] LIST.
  • Scroll over to OPS and choose "seq(" from the dropdown list. Press [ENTER].
  • Enter the items in the order "Expr", "Variable", "start", "end" separated by commas. See the instructions above for the description of each item.
  • Press [ENTER] to see the list of terms for the finite sequence defined. Use the right arrow key to scroll through the list of terms.
For the following exercises, use the steps above to find the indicated terms for the sequence. Round to the nearest thousandth when necessary. 62. List the first five terms of the sequence [latex]{a}_{n}=-\frac{28}{9}n+\frac{5}{3}[/latex]. 63. List the first six terms of the sequence [latex]{a}_{n}=\frac{{n}^{3}-3.5{n}^{2}+ 4.1n - 1.5}{2.4n}[/latex]. 64. List the first five terms of the sequence [latex]{a}_{n}=\frac{15n\cdot {\left(-2\right)}^{n - 1}}{47}[/latex] 65. List the first four terms of the sequence [latex]{a}_{n}={5.7}^{n}+0.275\left(n - 1\right)![/latex] 66. List the first six terms of the sequence [latex]{a}_{n}=\frac{n!}{n}[/latex]. 67. Consider the sequence defined by [latex]{a}_{n}=-6 - 8n[/latex]. Is [latex]{a}_{n}=-421[/latex] a term in the sequence? Verify the result. 68. What term in the sequence [latex]{a}_{n}=\frac{{n}^{2}+4n+4}{2\left(n+2\right)}[/latex] has the value [latex]41?[/latex] Verify the result. 69. Find a recursive formula for the sequence [latex]1,\text{ }0,\text{ }-1,\text{ }-1,\text{ }0,\text{ }1,\text{ }1,\text{ }0,\text{ }-1,\text{ }-1,\text{ }0,\text{ }1,\text{ }1,\text{ }...\text{ }[/latex]. (Hint: find a pattern for [latex]{a}_{n}[/latex] based on the first two terms.) 70. Calculate the first eight terms of the sequences [latex]{a}_{n}=\frac{\left(n+2\right)!}{\left(n - 1\right)!}[/latex] and [latex]{b}_{n}={n}^{3}+3{n}^{2}+2n[/latex], and then make a conjecture about the relationship between these two sequences. 71. Prove the conjecture made in the preceding exercise.

Licenses & Attributions

CC licensed content, Specific attribution