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

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

Write the first five terms of the sequence.

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

### Solution

Substitute $n=1$, $n=2$, and so on in the formula.

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

The first five terms are $\left\{-\frac{1}{2},\frac{4}{3},-\frac{9}{4},\frac{16}{5},-\frac{25}{6}\right\}$.

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

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

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