P1.4.2 - Sequences

P1.4.2 - Sequences

A sequence is an ordered list of terms, and the subscript tells you the position of a term in that list. In this lesson you will work with sequences given directly by a formula for the nth term and sequences generated recursively from an earlier term. The goal is not just to make terms, but to decide whether the sequence is increasing, decreasing, or periodic.

Sequence notation and nth-term formulae

A sequence is usually written as

u1, u2, u3, u_1,\ u_2,\ u_3,\ \ldots

where u_1 is the first term, u_2 is the second term, and u_n is the nth term. The subscript n is a position label. It is not automatically the same as the value of the term.

Sequence

A sequence is an ordered list of numbers. The individual numbers are called terms, and u_n denotes the term in position n.

One way to define a sequence is to give a formula for the nth term. For example,

un=3n22u_n=3n^2-2

allows you to find any term directly by substituting the required position for n.

Worked example 1

A sequence is defined by

un=n24n+7,nZ+.u_n=n^2-4n+7,\qquad n\in \mathbb{Z}^+.

Find u_1, u_2, and u_5.

Solution

Substitute the term position into the formula.

For the first term,

u1=124(1)+7=4.u_1=1^2-4(1)+7=4.

For the second term,

u2=224(2)+7=3.u_2=2^2-4(2)+7=3.

For the fifth term,

u5=524(5)+7=12.u_5=5^2-4(5)+7=12.

So the requested terms are

u1=4,u2=3,u5=12.u_1=4,\qquad u_2=3,\qquad u_5=12.

Notice that u_5 is not found by putting u=5; it is found by putting n=5.

Recurrence relations

A recurrence relation defines each new term using an earlier term. In this specification the key form is

xn+1=f(xn).x_{n+1}=f(x_n).

This means: take the current term x_n, put it into the function f, and the result is the next term x_{n+1}.

Recurrence relation

A recurrence relation gives a rule for moving from one term to another. A starting term, such as x_1, is also needed before the sequence is fully defined.

The starting term matters. The recurrence relation

xn+1=2xn+1x_{n+1}=2x_n+1

does not define one unique sequence until you are told a value such as x_1=3.

Worked example 2

A sequence is defined by

x1=5,xn+1=2xn3.x_1=5,\qquad x_{n+1}=2x_n-3.

Find x_2, x_3, and x_4.

Solution

Use the previous term each time.

For x_2, use x_1=5:

x2=2x13=2(5)3=7.x_2=2x_1-3=2(5)-3=7.

For x_3, use the term just found, x_2=7:

x3=2x23=2(7)3=11.x_3=2x_2-3=2(7)-3=11.

For x_4, use x_3=11:

x4=2x33=2(11)3=19.x_4=2x_3-3=2(11)-3=19.

So

x2=7,x3=11,x4=19.x_2=7,\qquad x_3=11,\qquad x_4=19.

The key decision is what to substitute. In x_{n+1}=2x_n-3, the input is the previous term value, not the position number on its own.

Worked example 3

A sequence is defined by

u1=2,un+1=kun3,u_1=2,\qquad u_{n+1}=ku_n-3,

where k is a positive constant. Given that u_3=6, show that

2k23k9=0,2k^2-3k-9=0,

and hence find k.

Solution

First express u_2 in terms of k:

u2=ku13=k(2)3=2k3.u_2=ku_1-3=k(2)-3=2k-3.

Now use u_2 to express u_3:

u3=ku23=k(2k3)3=2k23k3.u_3=ku_2-3=k(2k-3)-3=2k^2-3k-3.

But the question tells us that u_3=6, so

2k23k3=6.2k^2-3k-3=6.

Rearrange to the requested form:

2k23k9=0.2k^2-3k-9=0.

Now solve:

2k23k9=(2k+3)(k3)=0.2k^2-3k-9=(2k+3)(k-3)=0.

So

k=32ork=3.k=-\frac{3}{2}\quad\text{or}\quad k=3.

Since k is positive,

k=3.k=3.

Increasing and decreasing sequences

A sequence is increasing if every next term is greater than the term before it. It is decreasing if every next term is less than the term before it.

Increasing and decreasing

A sequence is increasing when u_{n+1}>u_n for every relevant positive integer n. It is decreasing when u_{n+1}<u_n for every relevant positive integer n.

[DIAGRAM: asset_name: Lesson p1.4.2: Work with sequences - diagram 01; asset_slug: p1_4_2_work_with_sequences__diagram_01; recommended_method: drawn_math; description: Draw a clean 16:9 three-panel discrete sequence diagram. Panel 1: increasing sequence u_n=2n for n=1 to 6, plotted as separate dots/stems and labelled u_{n+1}>u_n. Panel 2: decreasing sequence v_n=1/(3n+1) for n=1 to 6, plotted as separate dots/stems and labelled v_{n+1}<v_n. Panel 3: periodic order-2 sequence generated by w_{n+1}=1/w_n, w_1=3, showing terms 3, 1/3, 3, 1/3, .... Use spacious margins, direct labels, compact panel titles, no decorative colour, and make clear that sequence terms occur only at whole-number positions.]
Diagram

For a sequence given by an nth-term formula, a good test is often to compare u_{n+1} with u_n.

Worked example 4

Show that

un=2nu_n=2n

is increasing for n\in\mathbb{Z}^+.

Solution

Find the next term in algebraic form:

un+1=2(n+1)=2n+2.u_{n+1}=2(n+1)=2n+2.

Compare it with u_n:

un+1un=(2n+2)2n=2.u_{n+1}-u_n=(2n+2)-2n=2.

Since 2>0, we have

un+1>unu_{n+1}>u_n

for every positive integer n. Therefore the sequence is increasing.

Worked example 5

Show that

vn=13n+1v_n=\frac{1}{3n+1}

is decreasing for n\in\mathbb{Z}^+.

Solution

The next term is

vn+1=13(n+1)+1=13n+4.v_{n+1}=\frac{1}{3(n+1)+1}=\frac{1}{3n+4}.

For positive integer n, both denominators are positive, and

3n+4>3n+1.3n+4>3n+1.

A larger positive denominator gives a smaller positive fraction, so

13n+4<13n+1.\frac{1}{3n+4}<\frac{1}{3n+1}.

Therefore

vn+1<vn,v_{n+1}<v_n,

so the sequence is decreasing.

Increasing and decreasing sequences Continued

Do not rely only on the first two or three terms unless the question only asks you to classify from a displayed finite list. For an infinite sequence, increasing or decreasing means the inequality works for every relevant n.

Periodic sequences

A periodic sequence repeats its terms in a cycle. The order, also called the period, is the shortest length of a repeating cycle.

Periodic sequence

A sequence is periodic if its terms repeat in a fixed cycle. The order of the sequence is the smallest positive number of terms in one complete repeating cycle.

For example, the sequence

3, 13, 3, 13, 3, 13,3,\ \frac{1}{3},\ 3,\ \frac{1}{3},\ 3,\ \frac{1}{3},\ldots

is periodic of order 2, because the repeating block is

3, 13.3,\ \frac{1}{3}.

It would be wrong to say the order is 4 just because the first four terms also repeat the pattern. The order is the shortest repeating cycle.

Worked example 6

A sequence is defined by

w1=4,wn+1=2wn.w_1=4,\qquad w_{n+1}=\frac{2}{w_n}.

Find the first five terms and state whether the sequence is periodic.

Solution

Use the previous term each time:

w1=4.w_1=4.

Then

w2=2w1=24=12.w_2=\frac{2}{w_1}=\frac{2}{4}=\frac{1}{2}.

Next,

w3=2w2=21/2=4.w_3=\frac{2}{w_2}=\frac{2}{1/2}=4.

Then

w4=2w3=24=12,w_4=\frac{2}{w_3}=\frac{2}{4}=\frac{1}{2},

and

w5=2w4=21/2=4.w_5=\frac{2}{w_4}=\frac{2}{1/2}=4.

The terms are

4, 12, 4, 12, 4,4,\ \frac{1}{2},\ 4,\ \frac{1}{2},\ 4,\ldots

so the sequence is periodic of order 2.

Choosing the right test

When you meet a sequence question, first identify how the sequence is defined.

If you are given...Do this firstCommon trap
an nth-term formula such as u_n=n^2+1substitute positions or compare u_{n+1} with u_ntreating it like a recurrence
a recurrence such as u_{n+1}=f(u_n)start from the given term and generate terms one by onesubstituting n where u_n is needed
a repeating list or recurrence cyclefind the shortest repeating blockgiving a non-minimal period

Worked example 7

Classify each sequence as increasing, decreasing, periodic, or none of these.

  1. a_n=10-3n
  2. b_1=1, b_{n+1}=1-b_n
  3. c_n=n(5-n)

Solution

For a_n=10-3n, find the next term:

an+1=103(n+1)=73n.a_{n+1}=10-3(n+1)=7-3n.

Then

an+1an=(73n)(103n)=3.a_{n+1}-a_n=(7-3n)-(10-3n)=-3.

Since this is always negative, the sequence is decreasing.

For b_1=1, use the recurrence:

b2=1b1=0,b_2=1-b_1=0, b3=1b2=1,b_3=1-b_2=1, b4=1b3=0.b_4=1-b_3=0.

The sequence is

1, 0, 1, 0,1,\ 0,\ 1,\ 0,\ldots

so it is periodic of order 2.

For c_n=n(5-n), generate a few terms carefully:

c1=4,c2=6,c3=6,c4=4,c5=0.c_1=4,\quad c_2=6,\quad c_3=6,\quad c_4=4,\quad c_5=0.

This is not increasing because c_3 is not greater than c_2. It is not decreasing because c_2 is greater than c_1. There is no repeating cycle shown by the formula here, so from these options it is none of these.

Explain It Back

Use this as a self-explanation check after the section above. It is for diagnosing what you can already explain, not for learning new material from scratch.

That last example is deliberately sneaky. A recurrence of the form r_{n+1}=25/r_n can produce an order-2 sequence for many starting values, but with r_1=5 it becomes constant. Always generate enough terms to check the actual cycle.