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
{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.
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 nth term of the sequence, where n 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 nth term.
>Figure 1
The first term of the sequence is 21=2, the second term is 22=4, the third term is 23=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
an=2n.
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 31st term of the sequence. We will substitute 31 for n in the formula.
a31=231 =2,147,483,648
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 the table.
n |
1 |
2 |
3 |
4 |
5 |
n |
nth term of the sequence, an |
2 |
4 |
8 |
16 |
32 |
2n |
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.
Figure 2
Lastly, we can write this particular sequence as
{2,4,8,16,32,…,2n,…}.
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,…,2n,…,1024}.
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
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.
a1,a2,a3,…,an,…
We call
a1 the first term of the sequence,
a2 the second term of the sequence,
a3 the third term of the sequence, and so on. The term
an 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 a1?
No. In certain problems, it may be useful to define the initial term as a0 instead of a1. In these problems, the domain of the function includes 0.
How To: Given an explicit formula, write the first n terms of a sequence.
- Substitute each value of n into the formula. Begin with n=1 to find the first term, a1.
- To find the second term, a2, use n=2.
- 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
an=−3n+8.
Solution
Substitute
n=1 into the formula. Repeat with values 2 through 5 for
n.
n=1n=2n=3n=4n=5a1=−3(1)+8=5a2=−3(2)+8=2a3=−3(3)+8=−1a4=−3(4)+8=−4a5=−3(5)+8=−7
The first five terms are
{5,2,−1,−4,−7}.
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.
n |
1 |
2 |
3 |
4 |
5 |
an |
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.
Figure 3
Try It 1
Write the first five terms of the sequence defined by the
explicit formula tn=5n−4.
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 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.
- Substitute each value of n into the formula. Begin with n=1 to find the first term, a1. The sign of the term is given by the (−1)n in the explicit formula.
- To find the second term, a2, use n=2.
- 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.
an=n+1(−1)nn2
Solution
Substitute
n=1,
n=2, and so on in the formula.
n=1n=2n=3n=4n=5a1=1+1(−1)122=−21a2=2+1(−1)222=34a3=3+1(−1)332=−49a4=4+1(−1)442=516a5=5+1(−1)552=−625
The first five terms are
{−21,34,−49,516,−625}.
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.
Figure 4
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:
an=(−2)n4n
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 n terms of a sequence
- Identify the formula to which n=1 applies.
- To find the first term, a1, use n=1 in the appropriate formula.
- Identify the formula to which n=2 applies.
- To find the second term, a2, use n=2 in the appropriate formula.
- 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.
an={n23nif n is not divisible by 3if n is divisible by 3
Solution
Substitute
n=1,n=2, and so on in the appropriate formula. Use
n2 when
n is not a multiple of 3. Use
3n when
n is a multiple of 3.
a1=12=1a2=22=4a3=33=1a4=42=16a5=52=25a6=36=21 is not a multiple of 3. Use n2.2 is not a multiple of 3. Use n2.3 is a multiple of 3. Use 3n.4 is not a multiple of 3. Use n2.5 is not a multiple of 3. Use n2.6 is a multiple of 3. Use 3n.
The first six terms are
{1, 4, 1, 16, 25, 2}.
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.
Figure 5
Try It 3
Write the first six terms of the sequence.
an={2n325nif n is oddif n is even
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 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.
- Look for a pattern among the terms.
- If the terms are fractions, look for a separate pattern among the numerators and denominators.
- Look for a pattern among the signs of the terms.
- Write a formula for an 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.
- {−112,133,−154,175,−196,…}
- {−252,−1252,−6252,−3,1252,−15,6252,…}
- {e4,e5,e6,e7,e8,…}
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.
an=2n+9(−1)n(n+1)
- The terms are all negative.
So we know that the fraction is negative, the numerator is 2, and the denominator can be represented by 5n+1.
an=−5n+12
- The terms are powers of e. For n=1, the first term is e4 so the exponent must be n+3.
an=en+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.
{−43,−89,−1227,−1681,−20243,...}
Try It 6
Write an explicit formula for the
nth term of the sequence.
{e21,e1,1,e,e2,...}
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 an in terms of preceding terms. For example, suppose we know the following:
a1=3an=2an−1−1,forn≥2
We can find the subsequent terms of the sequence using the first term.
a1=3a2=2a1−1=2(3)−1=5a3=2a2−1=2(5)−1=9a4=2a3−1=2(9)−1=17
So the first four terms of the sequence are {3, 5, 9, 17} .
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.
a1=1a2=1an=an−1+an−2,forn≥3
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
a10=a9+a8=34+21=55
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 n terms of a sequence.
- Identify the initial term, a1, which is given as part of the formula. This is the first term.
- To find the second term, a2, substitute the initial term into the formula for an−1. Solve.
- To find the third term, a3, substitute the second term into the formula. Solve.
- Repeat until you have solved for the nth 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.
a1=9an=3an−1−20, for n≥2
Solution
The first term is given in the formula. For each subsequent term, we replace
an−1 with the value of the preceding term.
n=1n=2n=3n=4n=5a1=9a2=3a1−20=3(9)−20=27−20=7a3=3a2−20=3(7)−20=21−20=1a4=3a3−20=3(1)−20=3−20=−17a5=3a4−20=3(−17)−20=−51−20=−71
The first five terms are
{9, 7, 1, −17, −71}.
Figure 6
Try It 7
Write the first five terms of the sequence defined by the recursive formula.
a1=2an=2an−1+1, for n≥2
How To: Given a recursive formula with two initial terms, write the first n terms of a sequence.
- Identify the initial term, a1, which is given as part of the formula.
- Identify the second term, a2, which is given as part of the formula.
- To find the third term, substitute the initial term and the second term into the formula. Evaluate.
- Repeat until you have evaluated the nth 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.
a1=1a2=2an=3an−1+4an−2, for n≥3
Solution
The first two terms are given. For each subsequent term, we replace
an−1 and
an−2 with the values of the two preceding terms.
n=3n=4n=5n=6a3=3a2+4a1=3(2)+4(1)=10a4=3a3+4a2=3(10)+4(2)=38a5=3a4+4a3=3(38)+4(10)=154a6=3a5+4a4=3(154)+4(38)=614
The first six terms are
1,2,10,38,154,614.
Figure 7
Try It 8
Write the first eight terms of the sequence defined by the recursive formula.
a1=0a2=1a3=1an=an−2an−1+an−3, for n≥4
Using Factorial Notation
The formulas for some sequences include products of consecutive positive integers. n factorial, written as n!, is the product of the positive integers from 1 to n. For example,
4!=4⋅3⋅2⋅1=245!=5⋅4⋅3⋅2⋅1=120
An example of formula containing a factorial is an=(n+1)!. The sixth term of the sequence can be found by substituting 6 for n.
a6=(6+1)!=7!=7⋅6⋅5⋅4⋅3⋅2⋅1=5040
The factorial of any whole number n is n(n−1)! We can therefore also think of 5! as 5⋅4!.
A General Note: Factorial
n factorial is a mathematical operation that can be defined using a recursive formula. The factorial of
n, denoted
n!, is defined for a positive integer
n as:
0!=11!=1n!=n(n−1)(n−2)⋯(2)(1), for n≥2
The special case
0! is defined as
0!=1.
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
an=(n+2)!5n.
Solution
Substitute
n=1,n=2, and so on in the formula.
n=1n=2n=3n=4n=5a1=(1+2)!5(1)=3!5=3⋅2⋅15=65a2=(2+2)!5(2)=4!10=4⋅3⋅2⋅110=125a3=(3+2)!5(3)=5!15=5⋅4⋅3⋅2⋅115=81a4=(4+2)!5(4)=6!20=6⋅5⋅4⋅3⋅2⋅120=361a5=(5+2)!5(5)=7!25=7⋅6⋅5⋅4⋅3⋅2⋅125=1,0085
The first five terms are
{65,125,81,361,1,0085}.
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
n increases. This means the quotient gets smaller and, as the plot of the terms shows, the terms are decreasing and nearing zero.
Figure 8
Try It 9
Write the first five terms of the sequence defined by the explicit formula
an=2n(n+1)!.
Solution
Key Equations
Formula for a factorial |
0!=11!=1n!=n(n−1)(n−2)⋯(2)(1), for n≥2 |
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 nth 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 n is the product of all integers from 1 to n
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 {1,2,…n} for some positive integer n
- infinite sequence
- a function whose domain is the set of positive integers
- n factorial
- the product of all the positive integers from 1 to n
- 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 an of a sequence when there is a negative factor in the formula that is raised to a power that includes n? 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. an=2n−2
7. an=−n+116
8. an=−(−5)n−1
9. an=n32n
10. an=n32n+1
11. an=1.25⋅(−4)n−1
12. an=−4⋅(−6)n−1
13. an=2n+1n2
14. an=(−10)n+1
15. an=−(54⋅(−5)n−1)
For the following exercises, write the first eight terms of the piecewise sequence.
16. an={(−2)n−2(2)n−1if n is evenif n is odd
17. an={2n+1n2n2−5if n≤5if n>5
18. an={(2n+1)2n2if n is divisible by 4if n is not divisible by 4
19. an={−0.6×5n−12.5×(−2)n−1if n is prime or 1if n is composite
20. an={4(n2−2)4n2−2 if n≤3 or n>6 if 3<n≤6
For the following exercises, write an explicit formula for each sequence.
21. 4,7,12,19,28,…
22. −4,2,−10,14,−34,…
23. 1,1,34,2,516,…
24. 0,1+e21−e1,1+e31−e2,1+e41−e3,1+e51−e4,…
25. 1,−21,41,−81,161,…
For the following exercises, write the first five terms of the sequence.
26. a1=9, an=an−1+n
27. a1=3, an=(−3)an−1
28. a1=−4, an=an−1−1an−1+2n
29. a1=−1, an=an−1−2(−3)n−1
30. a1=−30, an=(2+an−1)(21)n
For the following exercises, write the first eight terms of the sequence.
31. a1=241, a2=1, an=(2an−2)(3an−1)
32. a1=−1, a2=5, an=an−2(3−an−1)
33. a1=2, a2=10, an=an−22(an−1+2)
For the following exercises, write a recursive formula for each sequence.
34. −2.5,−5,−10,−20,−40,…
35. −8,−6,−3,1,6,…
36. 2, 4, 12, 48, 240, …
37. 35, 38, 41, 44, 47, …
38. 15,3,53,253,1253,⋯
For the following exercises, evaluate the factorial.
39. 6!
40. (612)!
41. 6!12!
42. 99!100!
For the following exercises, write the first four terms of the sequence.
43. an=n2n!
44. an=4⋅n!3⋅n!
45. an=n2−n−1n!
46. an=n(n−1)!100⋅n
For the following exercises, graph the first five terms of the indicated sequence
47. an=n(−1)n+n
48. an={2n4+n3+nif n is evenif n is odd
49. a1=2, an=(−an−1+1)2
50. an=1, an=an−1+8
51. an=(n−1)!(n+1)!
For the following exercises, write an explicit formula for the sequence using the first five points shown on the graph.
52.
53.
54.
For the following exercises, write a recursive formula for the sequence using the first five points shown on the graph.
55.
56.
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 a1 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 an−1. 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 a1=11187, an=34an−1+3712. Use the >Frac feature to give fractional results.
58. Find the 15th term of the sequence a1=625,an=0.8an−1+18.
59. Find the first five terms of the sequence a1=2,an=2[(an−1)−1]+1.
60. Find the first ten terms of the sequence a1=8, an=an−1!(an−1+1)!.
61. Find the tenth term of the sequence a1=2, an=nan−1
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 [X,T,θ,n] button for n
- In the line headed "Variable:" type in the variable used on the previous step.
- In the line headed "start:" key in the value of n that begins the sequence.
- In the line headed "end:" key in the value of n 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 an=−928n+35.
63. List the first six terms of the sequence an=2.4nn3−3.5n2+4.1n−1.5.
64. List the first five terms of the sequence an=4715n⋅(−2)n−1
65. List the first four terms of the sequence an=5.7n+0.275(n−1)!
66. List the first six terms of the sequence an=nn!.
67. Consider the sequence defined by an=−6−8n. Is an=−421 a term in the sequence? Verify the result.
68. What term in the sequence an=2(n+2)n2+4n+4 has the value 41? Verify the result.
69. Find a recursive formula for the sequence 1, 0, −1, −1, 0, 1, 1, 0, −1, −1, 0, 1, 1, ... . (Hint: find a pattern for an based on the first two terms.)
70. Calculate the first eight terms of the sequences an=(n−1)!(n+2)! and bn=n3+3n2+2n, 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
- Precalculus. Provided by: OpenStax Authored by: OpenStax College. Located at: https://cnx.org/contents/fd53eae1-fa23-47c7-bb1b-972349835c3c@5.175:1/Preface. License: CC BY: Attribution.