## Sequences and Their Notations

### Learning Outcomes

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

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

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.

## Sequences 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

$\left\{2,4,8,16,32,\dots \right\}$.

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 $n\text{th}$ 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 $n\text{th}$ term. 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 $n\text{th}$ term of the sequence can be found by raising 2 to the $n\text{th}$ 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 $n\text{th}$ 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.

\begin{align}{a}_{31}&={2}^{31} \\ &=\text{2,147,483,648} \end{align}

If the doubling trend continues, the company will get $\text{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 $n\text{th}$ term of the sequence are shown in the table.

 $n$ 1 2 3 4 5 $n$ $n\text{th}$ term of the sequence, ${a}_{n}$ 2 4 8 16 32 ${2}^{n}$

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. Lastly, we can write this particular sequence as

$\left\{2,4,8,16,32,\dots ,{2}^{n},\dots \right\}$.

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

$\left\{2,4,8,16,32,\dots ,1024\right\}$.

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.

${a}_{1},{a}_{2},{a}_{3},\dots ,{a}_{n},\dots$

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 $n\text{th}$ term of the sequence, or the general term of the sequence. An explicit formula defines the $n\text{th}$ term of a sequence using the position of the term. A sequence that continues indefinitely is an infinite sequence.

### 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: 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$.

### Try It

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

## 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

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: Writing the Terms of a Sequence Defined by a Piecewise Explicit Formula

Write the first six terms of the sequence.

${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}$

### Try It

Write the first six terms of the sequence.

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

## 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 $n\text{th}$ 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: Writing an Explicit Formula for the nth Term of a Sequence

Write an explicit formula for the $n\text{th}$ term of each sequence.

1. $\left\{-\dfrac{2}{11},\dfrac{3}{13},-\dfrac{4}{15},\dfrac{5}{17},-\dfrac{6}{19},\dots \right\}$
2. $\left\{-\dfrac{2}{25},-\dfrac{2}{125},-\dfrac{2}{625},-\dfrac{2}{3\text{,}125},-\dfrac{2}{15\text{,}625},\dots \right\}$
3. $\left\{{e}^{4},{e}^{5},{e}^{6},{e}^{7},{e}^{8},\dots \right\}$

### Try It

Write an explicit formula for the $n\text{th}$ term of the sequence.

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

### Try It

Write an explicit formula for the $n\text{th}$ term of the sequence.

$\left\{-\dfrac{3}{4},-\dfrac{9}{8},-\dfrac{27}{12},-\dfrac{81}{16},-\dfrac{243}{20},\dots\right\}$

### Try It

Write an explicit formula for the $n\text{th}$ term of the sequence.

$\left\{\dfrac{1}{{e}^{2}}, \dfrac{1}{e}, 1, e, {e}^{2},…\right\}$

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

$\left\{2,-4,6,-8\right\}$

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 in the explicit formula is given by the ${\left(-1\right)}^{n}$ if the first term is negative and ${\left(-1\right)}^{n-1}$ if the first term is positive.
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: Writing the Terms of an Alternating Sequence Defined by an Explicit Formula

Write the first five terms of the sequence.

${a}_{n}=\dfrac{{\left(-1\right)}^{n}{n}^{2}}{n+1}$

### Q & A

#### In Example: Writing the Terms of an Alternating Sequence Defined by an Explicit Formula, 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

Write the first five terms of the sequence:

${a}_{n}=\dfrac{4n}{{\left(-2\right)}^{n}}$

## Sequences 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 ${a}_{n}$ in terms of preceding terms. For example, suppose we know the following:

\begin{align}{a}_{1}&=3 \\ {a}_{n}&=2{a}_{n - 1}-1, \text{for } n\ge 2 \end{align}

We can find the subsequent terms of the sequence using the first term.

\begin{align}{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{align}

So the first four terms of the sequence are $\left\{3,5,9,17\right\}$.

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.

\begin{align}{a}_{1}&=1 \\ {a}_{2}&=1 \\ {a}_{n}&={a}_{n - 1}+{a}_{n - 2}, \text{for } n\ge 3 \end{align}

To find the tenth term of the sequence, for example, we would need to add the eighth and ninth terms. We saw above that the eighth and ninth terms are 21 and 34, so

${a}_{10}={a}_{9}+{a}_{8}=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.

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

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

Write the first five terms of the sequence defined by the recursive formula.

\begin{align} {a}_{1}&=9 \\ {a}_{n}&=3{a}_{n - 1}-20\text{, for }n\ge 2 \end{align}

### Try It

Write the first five terms of the sequence defined by the recursive formula.

\begin{align}{a}_{1}&=2\\ {a}_{n}&=2{a}_{n - 1}+1\text{, for }n\ge 2\end{align}

## 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,

\begin{align}4!&=4\cdot 3\cdot 2\cdot 1=24 \\ 5!&=5\cdot 4\cdot 3\cdot 2\cdot 1=120\\ \end{align}

An example of formula containing a factorial is ${a}_{n}=\left(n+1\right)!$. The sixth term of the sequence can be found by substituting 6 for $n$.

\begin{align}{a}_{6}=\left(6+1\right)!=7!=7\cdot 6\cdot 5\cdot 4\cdot 3\cdot 2\cdot 1=5040 \\ \text{ }\end{align}

The factorial of any whole number $n$ is $n\left(n - 1\right)!$ We can therefore also think of $5!$ as $5\cdot 4!\text{.}$

### 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:

\begin{align}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 \\ \text{ }\end{align}

The special case $0!$ is defined as $0!=1$.

### 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: WRITING THE TERMS OF A SEQUENCE USING FACTORIALS

Write the first five terms of the sequence defined by the explicit formula ${a}_{n}=\dfrac{5n}{\left(n+2\right)!}$.

### Try It

Write the first five terms of the sequence defined by the explicit formula ${a}_{n}=\dfrac{\left(n+1\right)!}{2n}$.

## Key Equations

 Formula for a factorial \begin{align}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{align}

## 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 $n\text{th}$ 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 $\left\{1,2,\dots n\right\}$ 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