# 9.1: Sequences

- Page ID
- 4031

When we first introduced a function as a special type of relation in Section \ref{IntrotoFunctions}, we did not put any restrictions on the domain of the function. All we said was that the set of \(x\)-coordinates of the points in the function \(F\) is called the domain, and it turns out that any subset of the real numbers, regardless of how weird that subset may be, can be the domain of a function. As our exploration of functions continued beyond Section \ref{IntrotoFunctions}, we saw fewer and fewer functions with 'weird' domains. It is worth your time to go back through the text to see that the domains of the polynomial, rational, exponential, logarithmic and algebraic functions discussed thus far have fairly predictable domains which almost always consist of just a collection of intervals on the real line. This may lead some readers to believe that the only important functions in a College Algebra text have domains which consist of intervals and everything else was just introductory nonsense. In this section, we introduce **sequences** which are an important class of functions whose domains are the set of natural numbers. Recall that this is the set \(\{1, 2, 3, \ldots\}\).

Before we get to far ahead of ourselves, let's look at what the term 'sequence' means mathematically. Informally, we can think of a sequence as an infinite list of numbers. For example, consider the sequence

\[ \label{seq1} \frac{1}{2}, -\frac{3}{4}, \frac{9}{8}, -\frac{27}{16}, \ldots \]

As usual, the periods of \index{ellipsis (\ldots)} ellipsis, \(\ldots\), indicate that the proposed pattern continues forever. Each of the numbers in the list is called a \textbf{term}, and we call \(\frac{1}{2}\) the 'first term', \(-\frac{3}{4}\) the 'second term', \(\frac{9}{8}\) the 'third term' and so forth. In numbering them this way, we are setting up a function, which we'll call \(a\) per tradition, between the natural numbers and the terms in the sequence.

\[ \begin{array}{|r||r|} \hline n & a(n) \\[2pt] \hline 1 & \frac{1}{2} \\[3pt] \hline 2 & -\frac{3}{4} \\[3pt] \hline 3 & \frac{9}{8} \\[3pt] \hline 4 & -\frac{27}{16} \\[3pt] \hline \vdots & \vdots \\[2pt] \hline \end{array} \]

In other words, \(a(n)\) is the \(n^{\text{th}}\) term in the sequence. We formalize these ideas in our definition of a sequence and introduce some accompanying notation.

Note: Sequence

A **sequence** is a function \(a\) whose domain is the natural numbers. The value \(a(n)\) is often written as \(a_{n}\) and is called the \(n^{\textbf{th}}\) term of the sequence. The sequence itself is usually denoted using the notation: \(a_{n}\), \(n \geq 1\) or the notation:

\[\left\{ a_{n} \right\}_{n = 1}^{\infty}. \label{sequencedefn}\]

Applying the notation provided in Definition \ref{sequencedefn} to the sequence given (\ref{seq1}), we have \(a_{1} = \frac{1}{2}\), \(a_{2} = -\frac{3}{4}\), \(a_{3} = \frac{9}{8}\) and so forth. Now suppose we wanted to know \(a_{117}\), that is, the \(117^{\text{th}}\) term in the sequence. While the pattern of the sequence is apparent, it would benefit us greatly to have an explicit formula for \(a_{n}\). Unfortunately, there is no general algorithm that will produce a formula for every sequence, so any formulas we do develop will come from that greatest of teachers, experience. In other words, it is time for an example.

Example \(\PageIndex{1}\):

Write the first four terms of the following sequences.

- \(a_{n} = \dfrac{5^{n-1}}{3^{n}}\), \(n \geq 1\)
- \(b_{k} = \dfrac{(-1)^{k}}{2k+1}\), \(k \geq 0\)
- \(\left\{ 2n - 1 \right\}_{n=1}^{\infty} \vphantom{\left\{\dfrac{1 + (-1)^{i}}{i} \right\}_{i=2}^{\infty}}\)
- \(\left\{\dfrac{1 + (-1)^{i}}{i} \right\}_{i=2}^{\infty}\)
- \(a_{1} = 7\), \(a_{n + 1} = 2 - a_{n}\), \(n \geq 1\)
- \(f_{0} = 1\), \(f_{n} =n \cdot f_{n-1} \label{factorialintroex}\), \(n \geq 1\)

**Solution**

- Since we are given \(n \geq 1\), the first four terms of the sequence are \(a_{1}\), \(a_{2}\), \(a_{3}\) and \(a_{4}\). Since the notation \(a_{1}\) means the same thing as \(a(1)\), we obtain our first term by replacing every occurrence of \(n\) in the formula for \(a_{n}\) with \(n=1\) to get \(a_{1} = \frac{5^{1-1}}{3^{1}} = \frac{1}{3}\). Proceeding similarly, we get \(a_{2} = \frac{5^{2-1}}{3^{2}} =\frac{5}{9}\), \(a_{3} = \frac{5^{3-1}}{3^{3}} =\frac{25}{27}\) and \(a_{4} = \frac{5^{4-1}}{3^{4}} =\frac{125}{81}\).
- For this sequence we have \(k \geq 0\), so the first four terms are \(b_{0}\), \(b_{1}\), \(b_{2}\) and \(b_{3}\). Proceeding as before, replacing in this case the variable \(k\) with the appropriate whole number, beginning with \(0\), we get \(b_{0} = \frac{(-1)^{0}}{2(0)+1} = 1\), \(b_{1} = \frac{(-1)^{1}}{2(1)+1} = - \frac{1}{3}\), \(b_{2} = \frac{(-1)^{2}}{2(2)+1} = \frac{1}{5}\) and \(b_{3} = \frac{(-1)^{3}}{2(3)+1} = -\frac{1}{7}\). (This sequence is called an
**alternating**sequence since the signs alternate between \(+\) and \(-\). The reader is encouraged to think what component of the formula is producing this effect.) - From \(\left\{ 2n - 1 \right\}_{n=1}^{\infty}\), we have that \(a_{n} = 2n -1\), \(n \geq 1\). We get \(a_{1} = 1\), \(a_{2} = 3\), \(a_{3} = 5\) and \(a_{4} = 7\). (The first four terms are the first four odd natural numbers. The reader is encouraged to examine whether or not this pattern continues indefinitely.)
- Here, we are using the letter \(i\) as a counter, not as the imaginary unit we saw in Section \ref{ComplexZeros}. Proceeding as before, we set \(a_{i} = \frac{1 + (-1)^{i}}{i}\), \(i \geq 2\). We find \(a_{2} = 1\), \(a_{3} = 0\), \(a_{4} = \frac{1}{2}\) and \(a_{5} = 0\).
- To obtain the terms of this sequence, we start with \(a_{1} = 7\) and use the equation \(a_{n + 1} = 2 - a_{n}\) for \(n \geq 1\) to generate successive terms. When \(n = 1\), this equation becomes \(a_{1 + 1} = 2 - a_{1}\) which simplifies to \(a_{2} = 2 - a_{1} = 2 - 7 = -5\). When \(n = 2\), the equation becomes \(a_{2 + 1} = 2 - a_{2}\) so we get \(a_{3} = 2 - a_{2} = 2 - (-5) = 7\). Finally, when \(n = 3\), we get \(a_{\mbox{\tiny\)3 + 1\)}} = 2 - a_{3}\) so \(a_{4} = 2 - a_{3} = 2-7 = -5\).
- As with the problem above, we are given a place to start with \(f_{0} = 1\) and given a formula to build other terms of the sequence. Substituting \(n = 1\) into the equation \(f_{n} = n \cdot f_{n-1}\), we get \(f_{1} = 1 \cdot f_{0} = 1 \cdot 1 = 1\). Advancing to \(n = 2\), we get \(f_{2} = 2 \cdot f_{1} = 2 \cdot 1 = 2\). Finally, \(f_{3} = 3 \cdot f_{2} = 3 \cdot 2 = 6\).

Some remarks about Example \(\PageIndex{1}\) are in order. We first note that since sequences are functions, we can graph them in the same way we graph functions. For example, if we wish to graph the sequence \(\left\{ b_{k} \right\}_{k=0}^{\infty}\) from Example \(\PageIndex{1}\), we graph the equation \(y=b(k)\) for the values \(k \geq 0\). That is, we plot the points \((k, b(k))\) for the values of \(k\) in the domain, \(k = 0, 1, 2, \ldots\). The resulting collection of points is the graph of the sequence. Note that we do not connect the dots in a pleasing fashion as we are used to doing, because the domain is just the whole numbers in this case, not a collection of intervals of real numbers. If you feel a sense of nostalgia, you should see Section \ref{Relations}.

Speaking of \(\left\{ b_{k} \right\}_{k=0}^{\infty}\), the astute and mathematically minded reader will correctly note that this technically isn't a sequence, since according to Definition \ref{sequencedefn}, sequences are functions whose domains are the *natural* numbers, not the *whole* numbers, as is the case with \(\left\{ b_{k} \right\}_{k=0}^{\infty}\). In other words, to satisfy Definition \ref{sequencedefn}, we need to shift the variable \(k\) so it starts at \(k=1\) instead of \(k=0\). To see how we can do this, it helps to think of the problem graphically. What we want is to shift the graph of \(y=b(k)\) to the right one unit, and thinking back to Section \ref{Transformations}, we can accomplish this by replacing \(k\) with \(k-1\) in the definition of \(\left\{ b_{k} \right\}_{k=0}^{\infty}\). Specifically, let \(c_{k} = b_{k-1}\) where \(k - 1 \geq 0\). We get

\[c_{k} = \frac{(-1)^{k-1}}{2(k-1)+1} = \frac{(-1)^{k-1}}{2k-1}\]

where now \(k \geq 1\). We leave to the reader to verify that \(\left\{ c_{k} \right\}_{k=1}^{\infty}\) generates the same list of numbers as does \(\left\{ b_{k} \right\}_{k=0}^{\infty}\), but the former satisfies Definition \ref{sequencedefn}, while the latter does not. Like so many things in this text, we acknowledge that this point is pedantic and join the vast majority of authors who adopt a more relaxed view of Definition \ref{sequencedefn} to include any function which generates a list of numbers which can then be matched up with the natural numbers.\footnote{We're basically talking about the 'countably infinite' subsets of the real number line when we do this.} Finally, we wish to note the sequences in parts \(5\) and \(6\) are examples of sequences described \index{sequence ! recursive} \textbf{recursively}. In each instance, an initial value of the sequence is given which is then followed by a \index{recursion equation} \textbf{recursion equation} \(-\) a formula which enables us to use known terms of the sequence to determine other terms. The terms of the sequence in part \(6\) are given a special name: \(f_{n}=n!\) is called \index{factorial} \textbf{\boldmath \(n\)-factorial}. Using the '!' notation, we can describe the factorial sequence as: \(0! = 1\) and \(n! = n(n-1)!\) for \(n \geq 1\). After \(0! = 1\) the next four terms, written out in detail, are

\[1! = 1 \cdot 0! = 1 \cdot 1 = 1,\]

\[2! = 2 \cdot 1! = 2 \cdot 1 = 2,\]

\[3! = 3 \cdot 2! = 3 \cdot 2 \cdot 1 = 6,\]

and

\[4! = 4 \cdot 3! = 4 \cdot 3 \cdot 2 \cdot 1 = 24.\]

From this, we see a more informal way of computing \(n!\), which is \(n! = n\cdot(n -1)\cdot(n -2) \cdots 2 \cdot 1\) with \(0! = 1\) as a special case. (We will study factorials in greater detail in Section \ref{Binomial}.) The world famous **Fibonacci Numbers** are defined recursively and are explored in the exercises. While none of the sequences worked out to be the sequence in (\ref{seq1}), they do give us some insight into what kinds of patterns to look for. Two patterns in particular are given in the next definition.

Note: Arithmetic and Geometric Sequences

Suppose \(\left\{ a_{n} \right\}_{n=k}^{\infty}\) is a sequence\footnote{Note that we have adjusted for the fact that not all 'sequences' begin at \(n=1\).}

- If there is a number \(d\) so that \(a_{n + 1} = a_{n} + d\) for all \(n \geq k\), then \(\left\{ a_{n} \right\}_{n=k}^{\infty}\) is called an
**arithmetic sequence**. The number \(d\) is called the**common difference**. - If there is a number \(r\) so that \(a_{n + 1} = r a_{n}\) for all \(n \geq k\), then \(\left\{ a_{n} \right\}_{n=k}^{\infty}\) is called an
**geometric sequence**. The number \(r\) is called the**common ratio**.

Both arithmetic and geometric sequences are defined in terms of recursion equations. In English, an arithmetic sequence is one in which we proceed from one term to the next by always *adding *the fixed number \(d\). The name 'common difference' comes from a slight rewrite of the recursion equation from \(a_{n + 1} = a_{n} + d\) to \(a_{n + 1} - a_{n} = d\). Analogously, a geometric sequence is one in which we proceed from one term to the next by always *multiplying *by the same fixed number \(r\). If \(r \neq 0\), we can rearrange the recursion equation to get \(\frac{a_{n+1}}{a_{n}} = r\), hence the name 'common ratio.' Some sequences are arithmetic, some are geometric and some are neither as the next example illustrates (sequences which are both arithmetic and geometric are discussed in the Exercises).

Example \(\PageIndex{2}\):

Determine if the following sequences are arithmetic, geometric or neither. If arithmetic, find the common difference \(d\); if geometric, find the common ratio \(r\).

- \(a_{n} = \dfrac{5^{n-1}}{3^{n}}\), \(n \geq 1\)
- \(b_{k} = \dfrac{(-1)^{k}}{2k+1}\), \(k \geq 0\)
- \(\left\{ 2n - 1 \right\}_{n=1}^{\infty} \vphantom{\dfrac{1}{2}, -\dfrac{3}{4}, \dfrac{9}{8}, -\dfrac{27}{16}, \ldots}\)
- \(\dfrac{1}{2}, -\dfrac{3}{4}, \dfrac{9}{8}, -\dfrac{27}{16}, \ldots\)

**Solution**

A good rule of thumb to keep in mind when working with sequences is ''When in doubt, write it out!'' Writing out the first several terms can help you identify the pattern of the sequence should one exist.

- From Example \(\PageIndex{1}\), we know that the first four terms of this sequence are \(\frac{1}{3}, \, \frac{5}{9}, \, \frac{25}{27}\) and \(\frac{125}{81}\). To see if this is an arithmetic sequence, we look at the successive differences of terms. We find that \(a_{2} - a_{1} = \frac{5}{9} - \frac{1}{3} = \frac{2}{9}\) and \(a_{3} - a_{2} = \frac{25}{27} - \frac{5}{9} = \frac{10}{27}\). Since we get different numbers, there is no 'common difference' and we have established that the sequence is \textit{not} arithmetic. To investigate whether or not it is geometric, we compute the ratios of successive terms. The first three ratios \[\frac{a_{2}}{a_{1}} = \frac{\frac{5}{9}}{\frac{1}{3}} = \frac{5}{3}, \;\;\; \frac{a_{3}}{a_{2}} = \frac{\frac{25}{27}}{\frac{5}{9}} = \frac{5}{3} \;\; \mbox{ and } \;\; \frac{a_{4}}{a_{3}} = \frac{\frac{125}{81}}{\frac{25}{27}} = \frac{5}{3}\] suggest that the sequence is geometric. To prove it, we must show that \(\frac{a_{n+1}}{a_{n}} = r\) for all \(n\). \[ \dfrac{a_{n + 1}}{a_{n}} = \dfrac{\dfrac{5^{(n+1)-1}}{3^{n+1}}}{\dfrac{5^{n-1}}{3^{n}}} = \dfrac{5^{n}}{3^{n+1}} \cdot \dfrac{3^{n}}{5^{n-1}} = \dfrac{5}{3} \] This sequence is geometric with common ratio \(r = \frac{5}{3}\).
- Again, we have Example \(\PageIndex{1}\) to thank for providing the first four terms of this sequence: \(1, \, -\frac{1}{3}, \, \frac{1}{5}\) and \(-\frac{1}{7}\). We find \(b_{1} - b_{0} = -\frac{4}{3}\) and \(b_{2} - b_{1} = \frac{8}{15}\). Hence, the sequence is not arithmetic. To see if it is geometric, we compute \(\frac{b_{1}}{b_{0}} = -\frac{1}{3}\) and \(\frac{b_{2}}{b_{1}} = -\frac{3}{5}\). Since there is no 'common ratio,' we conclude the sequence is not geometric, either.
- As we saw in Example \(\PageIndex{1}\), the sequence \(\left\{ 2n - 1 \right\}_{n=1}^{\infty}\) generates the odd numbers: \(1, 3, 5, 7, \ldots\). Computing the first few differences, we find \(a_{2} - a_{1} = 2\), \(a_{3} - a_{2} = 2\), and \(a_{4} - a_{3} = 2\). This suggests that the sequence is arithmetic. To verify this, we find \[a_{n + 1} - a_{n} = (2(n+1)-1) - (2n-1) = 2n+2-1-2n+1 = 2\] This establishes that the sequence is arithmetic with common difference \(d = 2\). To see if it is geometric, we compute \(\frac{a_{2}}{a_{1}} = 3\) and \(\frac{a_{3}}{a_{2}} = \frac{5}{3}\). Since these ratios are different, we conclude the sequence is not geometric.
- We met our last sequence at the beginning of the section. Given that \(a_{2} - a_{1} = -\frac{5}{4}\) and \(a_{3} - a_{2} = \frac{15}{8}\), the sequence is not arithmetic. Computing the first few ratios, however, gives us \(\frac{a_{2}}{a_{1}} = -\frac{3}{2}\), \(\frac{a_{3}}{a_{2}} = -\frac{3}{2}\) and \(\frac{a_{4}}{a_{3}} = -\frac{3}{2}\). Since these are the only terms given to us, we assume that the pattern of ratios continue in this fashion and conclude that the sequence is geometric.

We are now one step away from determining an explicit formula for the sequence given in (Equation \ref{seq1}). We know that it is a geometric sequence and our next result gives us the explicit formula we require.

Formulas for Arithmetic and Geometric Sequences

- An
**arithmetic sequence**with first term \(a\) and common difference \(d\) is given by \[a_{n} = a + (n-1) d, \quad n \geq 1 \label{arithgeoformula} \] for \(n^{\textrm{th}}\) term. - A
**geometric sequence**with first term \(a\) and common ratio \(r \neq 0\) is given by \[ a_{n} = ar^{n-1}, \quad n \geq 1 \label{arithgeodefn}\] for \(n^{\textrm{th}}\) term.

While the formal proofs of the formulas in Equation \ref{arithgeoformula} require the techniques set forth in Section \ref{Induction}, we attempt to motivate them here. According to Definition \ref{arithgeodefn}, given an arithmetic sequence with first term \(a\) and common difference \(d\), the way we get from one term to the next is by adding \(d\). Hence, the terms of the sequence are: \(a\), \(a+d\), \(a+2d\), \(a+3d\), \ldots. We see that to reach the \(n\)th term, we add \(d\) to \(a\) exactly \((n-1)\) times, which is what the formula says. The derivation of the formula for geometric series follows similarly. Here, we start with \(a\) and go from one term to the next by multiplying by \(r\). We get \(a, ar, ar^2, ar^3\) and so forth. The \(n\)th term results from multiplying \(a\) by \(r\) exactly \((n-1)\) times. We note here that the reason \(r=0\) is excluded from Equation \ref{arithgeoformula} is to avoid an instance of \(0^{0}\) which is an indeterminant form.\footnote{See the footnotes on page \pageref{indeterminantformone} in Section \ref{GraphsofPolynomials} and page \pageref{indeterminantformtwo} of Section \ref{IntroExpLogs}.} With Equation \ref{arithgeoformula} in place, we finally have the tools required to find an explicit formula for the \(n\)th term of the sequence given in (\ref{seq1}). We know from Example \ref{arithgeoex1} that it is geometric with common ratio \(r = -\frac{3}{2}\). The first term is \(a = \frac{1}{2}\) so by Equation \ref{arithgeoformula} we get \(a_{n} = ar^{n-1} = \frac{1}{2} \left( - \frac{3}{2}\right)^{n-1}\) for \(n \geq 1\). After a touch of simplifying, we get \(a_{n} = \frac{(-3)^{n-1}}{2^{n}}\) for \(n \geq 1\). Note that we can easily check our answer by substituting in values of \(n\) and seeing that the formula generates the sequence given in (\ref{seq1}). We leave this to the reader. Our next example gives us more practice finding patterns.

Example \(\PageIndex{3}\):

Find an explicit formula for the \(n^{\mbox{\scriptsize th}}\) term of the following sequences.

- \(0.9, 0.09, 0.009, 0.0009, \ldots\)
- \(\dfrac{2}{5}, 2, -\dfrac{2}{3}, -\dfrac{2}{7}, \ldots\)
- \(1, -\dfrac{2}{7}, \dfrac{4}{13}, -\dfrac{8}{19}, \ldots\)

**Solution**

- Although this sequence may seem strange, the reader can verify it is actually a geometric sequence with common ratio \(r = 0.1 = \frac{1}{10}\). With \(a = 0.9 = \frac{9}{10}\), we get \(a_{n} = \frac{9}{10} \left(\frac{1}{10}\right)^{n-1}\) for \(n \geq 0\). Simplifying, we get \(a_{n} = \frac{9}{10^{n}}\), \(n \geq 1\). There is more to this sequence than meets the eye and we shall return to this example in the next section.
- As the reader can verify, this sequence is neither arithmetic nor geometric. In an attempt to find a pattern, we rewrite the second term with a denominator to make all the terms appear as fractions. We have \(\frac{2}{5}, \frac{2}{1}, -\frac{2}{3}, -\frac{2}{7}, \ldots\). If we associate the negative '\)-\)' of the last two terms with the denominators we get \(\frac{2}{5}, \frac{2}{1}, \frac{2}{-3}, \frac{2}{-7}, \ldots\). This tells us that we can tentatively sketch out the formula for the sequence as \(a_{n} = \frac{2}{d_{n}}\) where \(d_{n}\) is the sequence of denominators. Looking at the denominators \(5,1,-3,-7, \ldots\), we find that they go from one term to the next by subtracting \(4\) which is the same as adding \(-4\). This means we have an arithmetic sequence on our hands. Using Equation \ref{arithgeoformula} with \(a = 5\) and \(d = -4\), we get the \(n\)th denominator by the formula \(d_{n} = 5 + (n-1)(-4) = 9-4n\) for \(n \geq 1\). Our final answer is \(a_{n} = \frac{2}{9-4n}\), \(n \geq 1\).
- The sequence as given is neither arithmetic nor geometric, so we proceed as in the last problem to try to get patterns individually for the numerator and denominator. Letting \(c_{n}\) and \(d_{n}\) denote the sequence of numerators and denominators, respectively, we have \(a_{n} = \frac{c_{n}}{d_{n}}\). After some experimentation,\footnote{Here we take 'experimentation' to mean a frustrating guess-and-check session.} we choose to write the first term as a fraction and associate the negatives '\)-\)' with the numerators. This yields \(\frac{1}{1}, \frac{-2}{7}, \frac{4}{13}, \frac{-8}{19}, \ldots\). The numerators form the sequence \(1, -2, 4, -8, \ldots\) which is geometric with \(a=1\) and \(r = -2\), so we get \(c_{n} = (-2)^{n-1}\), for \(n \geq 1\). The denominators \(1, 7, 13, 19, \ldots\) form an arithmetic sequence with \(a = 1\) and \(d = 6\). Hence, we get \(d_{n} = 1 + 6(n-1) = 6n-5\), for \(n \geq 1\). We obtain our formula for \(a_{n} = \frac{c_{n}}{d_{n}} = \frac{(-2)^{n-1}}{6n-5}\), for \(n \geq 1\). We leave it to the reader to show that this checks out. \qed

While the last problem in Example \ref{seqex2} was neither geometric nor arithmetic, it did resolve into a combination of these two kinds of sequences. If handed the sequence \(2, 5, 10, 17, \ldots\), we would be hard-pressed to find a formula for \(a_{n}\) if we restrict our attention to these two archetypes. We said before that there is no general algorithm for finding the explicit formula for the \(n\)th term of a given sequence, and it is only through experience gained from evaluating sequences from explicit formulas that we learn to begin to recognize number patterns. The pattern \(1, 4, 9, 16, \ldots\) is rather recognizable as the squares, so the formula \(a_{n} = n^2\), \(n \geq 1\) may not be too hard to determine. With this in mind, it's possible to see \(2, 5, 10, 17, \ldots\) as the sequence \(1 + 1, 4 + 1, 9 + 1, 16 + 1 , \ldots\), so that \(a_{n} = n^2 + 1\), \(n \geq 1\). Of course, since we are given only a small \textit{sample} of the sequence, we shouldn't be too disappointed to find out this isn't the \textit{only} formula which generates this sequence. For example, consider the sequence defined by \(b_{n} = -\frac{1}{4} n^4 + \frac{5}{2} n^3 - \frac{31}{4} n^2 + \frac{25}{2} n - 5\), \(n \geq 1\). The reader is encouraged to verify that it also produces the terms \(2, 5, 10, 17\). In fact, it can be shown that given any finite sample of a sequence, there are infinitely many explicit formulas all of which generate those same finite points. This means that there will be infinitely many correct answers to some of the exercises in this section.\footnote{For more on this, see \href{www.math.kent.edu/~white/pape...underline{When Every Answer is Correct: Why

Sequences and Number Patterns Fail the Test}}.} Just because your answer doesn't match ours doesn't mean it's wrong. As always, when in doubt, write your answer out. As long as it produces the same terms in the same order as what the problem wants, your answer is correct.

Sequences play a major role in the Mathematics of Finance, as we have already seen with Equation \ref{compoundinterest} in Section \ref{ExpLogApplications}. Recall that if we invest \(P\) dollars at an annual percentage rate \(r\) and compound the interest \(n\) times per year, the formula for \(A_{k}\), the amount in the account after \(k\) compounding periods, is \(A_{k} = P\left(1 + \frac{r}{n}\right)^{k} = \left[P\left(1 + \frac{r}{n}\right)\right]\left(1 + \frac{r}{n}\right)^{k-1}\), \( k \geq 1\). We now spot this as a geometric sequence with first term \(P\left(1 + \frac{r}{n}\right)\) and common ratio \(\left(1 + \frac{r}{n}\right)\). In retirement planning, it is seldom the case that an investor deposits a set amount of money into an account and waits for it to grow. Usually, additional payments of principal are made at regular intervals and the value of the investment grows accordingly. This kind of investment is called an \textbf{annuity} and will be discussed in the next section once we have developed more mathematical machinery.

## Contributors and Attributions

- Carl Stitz, Ph.D. (Lakeland Community College) and Jeff Zeager, Ph.D. (Lorain County Community College)