Sequences are often introduced to us as examples for finding basic numerical patterns. We are shown the start to a list of numbers and asked if we can identify the next few numbers in the list or are asked to identify the rule being used to generate the sequence.

You probably recognized that in the first sequence, the next number would be 17 because the pattern involved adding 4 to the previous number. In the second sequence, you probably saw that we were multiplying by the value 3, so that the next number would have been 162. Not all sequences follow patterns. However, we use examples such as these to motivate the mathematical definition of a sequence.

We study sequences because they illustrate a number of ideas we will use in calculus. We eventually want to describe functions as dynamic models. Dynamic models for sequences are easier to illustrate than for general functions.

This section introduces the basic terminology for sequences. It explains how a sequence is a special type of function, where the domain is a set of integers. We will learn about explicit formulas for a sequence and recursive formulas for a sequence, using arithmetic and geometric sequences as our original motivation.

Later in this chapter, we will explore the dynamic ideas that will motivate calculus. Sequences that converge to a single value will be used to introduce the concept of limits. Recursive formulas for sequences will be used to introduce the ideas of accumulation which ultimately motivates the concept of integration. The dynamic behavior of a sequence will be analyzed in terms of its increment sequence which will motivate the calculus concept of the derivative.

Subsection2.1.1Basic Terminology and Notation

A sequence is an ordered collection of numbers. The idea of being ordered is that we can say what the first number is, what the second number is, and so forth. To emphasize that the number have assigned positions, a sequence can be written as an ordered list using parentheses. The entire sequence can be assigned a symbol, just like a variable, so that a sequence assigned a symbol \(x\) and given by the values 1, 5, 9, 13, etc., would be written

\begin{equation*}
x = (1, 5, 9, 13, \ldots).
\end{equation*}

Because the sequence has a specific order, we use an index as a way of counting through the sequence. For a given sequence, the term with index 1 is the first number of the sequence, the term with index 2 is the second number, the term with index 3 is the third number, and so forth. We use subscripts on a sequence to refer to an indexed value. So \(x_1\) is the first value of sequence \(x\) and \(x_5\) refers to the value of the sequence \(x\) with index 5.

Example2.1.1

For the sequence \(x = (1,5,9,13,\ldots)\) and assuming the pattern continues, find each of the following values: \(x_1\text{,}\) \(x_3\text{,}\) and \(x_5\text{.}\)

The ordering of the list of values in the sequence can be made explicit with a table.

ordinal position

index

sequence value

first

1

1

second

2

5

third

3

9

fourth

4

13

fifth

5

17

Of course, you probably thought through the ordering in your head rather than make a table. From this ordering, we know that \(x_1=1\text{,}\) \(x_3=9\text{,}\) and \(x_5=17\text{.}\)

The table in the solution for the previous example illustrates an explicit association between the index and the sequence value. We could reorganize this table to create a mapping between values.

The mapping can be illustrated using two number lines, one for the index and the other for the sequence values, with arrows drawn from the index to the corresponding sequence value. We write \(n \mapsto x_n\) to indicate that we have a mapping that goes from a value of \(n\) to a value \(x_n\text{.}\)

Another name for a mapping is a function. Sequences are functions whose domains correspond to an interval of the integers. The domain for a sequence is the set of possible values for the index. An interval of integers corresponds to a subset of integers with no gaps. The interval could be finite, as in \(\{4, \ldots, 10\}\text{,}\) or it could be infinite, as in \(\{4, \ldots, \infty\}\text{.}\) The usual domain for sequences is the set of natural numbers \(D=\mathbb{N}=\{1,2,3,\ldots,\infty\}\text{.}\) We often also want to include an initial value corresponding to an index value \(n=0\text{,}\) in which case our domain is the extended natural numbers \(D=\mathbb{N}_0 = \{0,1,2,3,\ldots\}\text{.}\)

Definition2.1.3Sequence

A sequence \(x\) is a function with a domain \(D\) that is an interval of integers and values that are real numbers. We can write this in symbols using mapping notation,

\begin{equation*}
x : n \in D \mapsto x_n \in \mathbb{R}.
\end{equation*}

The mapping notation used in the definition of a sequence is a symbolic representation of the statement that a sequence is a function or a map. In particular, it says there is a map (\(\mapsto\)) named \(x\) that takes a value \(n\) from the set \(D\) (\(n \in D\)) and returns a value \(x_n\) from the set of real numbers \(\mathbb{R}\) (\(x_n \in \mathbb{R}\)).

Defining a sequence as a function allows us more flexibility in what we include as sequences. The new definition allows us to have our first index value start at a value other than \(1\text{.}\) It also allows us to use other variables for our index. The variable used for an index is most often a letter from the middle of the alphabet.

Example2.1.4

Interpret the statement \(u : k \in \{0, \ldots,10\} \mapsto u_k \in \mathbb{R}\text{.}\)

The map \(u\) defines a sequence with index values \(k\) going from \(k=0\) to \(k=10\text{.}\) Because we do not have more information, we do not yet know the values of this sequence.

Although mapping notation is useful to remind us that a sequence is a map or function, it can be a little cumbersome to use all the time. Mathematicians developed a more concise representation that reminds us of an ordered list. If we consider an interval of integers \(\{n_i, \ldots, n_f\}\) (\(n_i\) is the initial value in the interval and \(n_f\) is the final value in the interval), then the mapping notation

\begin{equation*}
x : n \in \{n_i,\ldots,n_f\} \mapsto x_n \in \mathbb{R}
\end{equation*}

is equivalent to the more compact sequence notation

\begin{equation*}
x = (x_n)_{n=n_i}^{n_f}\text{.}
\end{equation*}

Example2.1.5

Rewrite \(u : k \in \{0, \ldots,10\} \mapsto u_k \in \mathbb{R}\) using sequence notation.

Sequence notation can be coupled with an ordered list of values to define a sequence that follows a pattern with an index that starts at a value other than \(1\text{.}\)

This sequence notation tells us that \(w\) is a sequence, the index variable is \(j\text{,}\) and the interval of integers used for the index starts at \(j=4\) and continues through all integers greater than 4. The first few terms in a table showing the mapping are given below.

We can create a graph anytime we can find a relation between two variables. For a sequence \(x\text{,}\) there is a natural choice for the two variables—the index \(n\) and the value \(x_n\text{.}\) The natural graph for a sequence \(x\) consists of the points \((n, x_n)\text{.}\) Because the index comes from a domain that is an interval of integers, the graph will be a collection of isolated points. This is why a sequence is called a discrete model.

Example2.1.8

The graph of the sequence \(x=(1,5,9,13,\ldots)\) consists of the points \((n,x_n)\text{.}\) The first few points of the graph—\((1,1)\text{,}\) \((2,5)\text{,}\) \((3,9)\text{,}\) and \((4,13)\)—are shown in the figure below. The sequence continues with addition points for \(n \gt 4\text{,}\) but there are no points with \(n \lt 1\text{.}\)

Example2.1.9

Create the graph for \(u=(u_k)_{k=-1}^{\infty} = (8, 5, 2, -1, -4, \ldots)\text{.}\)

The points in the graph use an index starting at \(k=-1\text{.}\) They include \((-1,8)\text{,}\) \((0,5)\text{,}\) \((1,2)\text{,}\) \((2,-1)\text{,}\) and \((3,-4)\text{.}\) The sequence continues to the right of these points.

Subsection2.1.3Explicit Sequence Representations

We sometimes have an explicit representation for a sequence, where the value of the sequence is a dependent variable in terms of the index as the independent variable. The expression defining the dependent variable could be used with each of the different notations.

Example2.1.10

Each of the following notations define the same sequence.

\begin{gather*}
x : n \in \{1, \ldots, \infty\} \mapsto x_n = \frac{n}{n+1}\\
x = \left( x_n = \frac{n}{n+1} \right)_{n=1}^{\infty}\\
x = \left(\frac{n}{n+1} \right)_{n=1}^{\infty}
\end{gather*}

as the subscript notation \(x_n\) itself implies we have a sequence.

Writing the sequence value as a dependent variable provides a compact way of representing the entire sequence. To find a particular value of the sequence, we substitute the value for the independent variable into the expression.

In addition to substitution using actual integer values, we can also use substitution of expressions that have integer values. This includes using other variables that have integer values. To do this, we substitute the expression that appears in the subscript for every occurrence of the index in the expression.

With this interpretation, we can even do composition to find the sequence value at an index defined by a formula. Substituting the variable \(k\) for the index \(n\) in the dependent variable's expression, we find

Some sequences have patterns where we can easily find an explicit formula by recognizing how the numbers defining the sequence values relate to the index.

Example2.1.12

Find an explicit formula for the sequence

\begin{equation*}
x = (\frac{1}{4}, \frac{1}{9}, \frac{1}{16}, \frac{1}{25}, \ldots),
\end{equation*}

To find the explicit formula, we look for a pattern in the sequence and then try to find a relationship between the index and the pattern. Because the sequence domain was not specified, it is understood to be the natural numbers \(\mathbb{N}=(1, \ldots,\infty)\text{.}\) In this case, every sequence value is the reciprocal of a perfect square. If we look at this pattern with a table showing the index and the pattern, we find a relationship.

\(n\)

1

2

3

4

\(x_n\)

\(\frac{1}{4} = \frac{1}{2^2}\)

\(\frac{1}{9} = \frac{1}{3^2}\)

\(\frac{1}{16} = \frac{1}{4^2}\)

\(\frac{1}{25} = \frac{1}{5^2}\)

The pattern is that the number that is squared is always 1 greater than the index. So the explicit formula for this sequence is given by

Sequences are functions with domains that are intervals of integers. The independent variable (input) is called the index, and the dependent variable (output) is called the value. The value of a sequence \(x\) at index \(n\) is represented using subscripts for the index \(x_n\text{.}\)

An explicit representation of a sequence \(x\) is when the function or map \(n \mapsto x_n\) can be written with \(x_n\) as a dependent variable in terms of the index \(n\text{.}\)

Sequence evaluation with an explicit formula involves substitution of the index variable by whatever expression appears in the subscript position.

The standard graph of a sequence \(x\) uses the points \((n,x_n)\) where \(n\) is chosen from the domain set of the sequence.

Subsection2.1.5Exercises

In the following group of exercises, a sequence is defined. Identify the variable representing the sequence, the variable representing the index, and the domain or interval of integers the values of the index come from.

\(v : n \in \{5,\ldots,\infty\} \mapsto v_n \in \mathbb{R}\)

3

\(z = (z_k)_{k=2}^{\infty}\)

4

\(M = (M_t)_{t=-\infty}^{10}\)

In the following group of exercises, a sequence with a pattern is given. Identify the values of the requested terms from the sequence. Create a graph that includes the first ten values from the sequence.