P2 4.1, P2 4.3 - Describing sequences

P2 4.1, P2 4.3 - Describing sequences

Use a formula or a recurrence rule to generate a sequence, as in P2 4.1, then describe increasing, decreasing and periodic behaviour, as in P2 4.3. You will distinguish a term's position from its value and use the rule to justify behaviour beyond a few listed terms.

Explicit nth terms

Could a sequence have its millionth term equal to its second term? It could, but the first few numbers alone cannot tell you. A rule makes the question answerable; later we will build a sequence that alternates forever.

First consider the ordered list 3,8,15,24,…3,8,15,24,\ldots. Its terms are values, while 1,2,3,4,…1,2,3,4,\ldots are their positions. The rule un=n2+2nu_n=n^2+2n produces exactly these four values, and also specifies every later one.

Sequence and explicit formula

A sequence is an ordered list of terms. The notation unu_n means the term in position nn. An explicit formula gives unu_n directly in terms of nn, so you can calculate a term without calculating all its predecessors.

Unless another starting index is stated, use n=1,2,3,…n=1,2,3,\ldots.

A sequence is discrete: its positions are integers. The expression n2+2nn^2+2n can be evaluated at n=1.5n=1.5, but that does not give a term of this sequence. Write negative substitutions in brackets: (−1)n(-1)^n is different from −1n-1^n.

Worked example 1: substituting term positions

Question. A sequence has un=n2−2nu_n=n^2-2n. Find its first four terms and its tenth term.

Plan. Substitute the positions 1,2,3,41,2,3,4, then substitute 1010 directly.

u1=12−2(1)=−1u2=22−2(2)=0u3=32−2(3)=3u4=42−2(4)=8u10=102−2(10)=80.\begin{aligned} u_1&=1^2-2(1)=-1\\ u_2&=2^2-2(2)=0\\ u_3&=3^2-2(3)=3\\ u_4&=4^2-2(4)=8\\ u_{10}&=10^2-2(10)=80. \end{aligned}

Answer. The first four terms are −1,0,3,8-1,0,3,8, and the tenth term is 8080.

Check. Rewrite the rule as n(n−2)n(n-2). It gives 1(−1),2(0),3(1),4(2)1(-1),2(0),3(1),4(2) and 10(8)10(8), confirming all five outputs by a different form.

Change only the sign before 2n2n. The positions stay the same; the term values change.

Worked example 2: changing one sign

Question. A sequence has un=n2+2nu_n=n^2+2n. Find its first four terms and its tenth term.

Plan. Substitute each requested position into the new rule.

u1=1+2=3u2=4+4=8u3=9+6=15u4=16+8=24u10=100+20=120.\begin{aligned} u_1&=1+2=3\\ u_2&=4+4=8\\ u_3&=9+6=15\\ u_4&=16+8=24\\ u_{10}&=100+20=120. \end{aligned}

Answer. 3,8,15,243,8,15,24, with u10=120u_{10}=120.

Check. The new rule exceeds the old one by 4n4n. At positions 1,2,3,4,101,2,3,4,10, adding 4,8,12,16,404,8,12,16,40 to Example 1's values gives precisely the new values.

A term's subscript is its position, rather than a multiplier.

Watch out

u10u_{10} means “the tenth term”, not 10u10u. The first term of un=n2+2nu_n=n^2+2n is 33, because the first input is n=1n=1, not zero.

Change the coefficient and calculate only the requested positions.

Recurrence rules and initial terms

A recurrence rule tells you how to get the next term from the current one, so an initial value is needed to start the process.

For example, “start at 22, then multiply the current term by 33 and subtract 11” gives 2,5,14,41,…2,5,14,41,\ldots. Starting at 11 with that same rule gives 1,2,5,14,…1,2,5,14,\ldots. The transition rule is identical, but the sequences differ.

Recurrence relation

A recurrence relation of the form un+1=f(un)u_{n+1}=f(u_n) gives the next term from the current term. Together with an initial term, such as u1=2u_1=2, it determines the sequence wherever the rule is defined.

Here un+1u_{n+1} is one term after unu_n; it does not mean un+1u_n+1. To find u3u_3, first find u2u_2 and then use that new value. Do not keep putting the initial term into the rule. If the starting index were u0u_0, the first update would produce u1u_1, rather than u2u_2.

Worked example 3: using each new output

Question. A sequence is defined by u1=2u_1=2 and un+1=3un−1u_{n+1}=3u_n-1. Find its first four terms.

Plan. Begin with the supplied first term and update the current value three times.

u1=2u2=3(2)−1=5u3=3(5)−1=14u4=3(14)−1=41.\begin{aligned} u_1&=2\\ u_2&=3(2)-1=5\\ u_3&=3(5)-1=14\\ u_4&=3(14)-1=41. \end{aligned}

Answer. 2,5,14,412,5,14,41.

Check. Reverse each update by adding one and dividing by three: (41+1)/3=14(41+1)/3=14, (14+1)/3=5(14+1)/3=5 and (5+1)/3=2(5+1)/3=2.

Change only the initial term from 22 to 11. Every update still uses the same recurrence.

Worked example 4: the importance of the initial term

Question. A sequence is defined by u1=1u_1=1 and un+1=3un−1u_{n+1}=3u_n-1. Find its first four terms.

Plan. Start from 11 and feed each calculated term into the next update.

u1=1u2=3(1)−1=2u3=3(2)−1=5u4=3(5)−1=14.\begin{aligned} u_1&=1\\ u_2&=3(1)-1=2\\ u_3&=3(2)-1=5\\ u_4&=3(5)-1=14. \end{aligned}

Answer. 1,2,5,141,2,5,14.

Check. From the second term onward, the sequence now follows the start of Example 3, because it has reached that example's initial value 22. Also, reversing 1414 gives (14+1)/3=5(14+1)/3=5, as required.

Iteration means repeating the whole update, with the latest value.

Watch out

Putting n=2n=2 into 3un−13u_n-1 does not mean calculating 3(2)−13(2)-1. The input is u2u_2, the second term's value. Its subscript only identifies which term to use.

Change just the initial value once more.

Increasing decreasing and periodic behaviour

The relationship between successive terms lets you describe a whole sequence, beyond the short list visible on a page.

The terms 1,2,3,4,…1,2,3,4,\ldots increase; 1,1/2,1/3,1/4,…1,1/2,1/3,1/4,\ldots decrease. The alternating sequence 2,5,2,5,…2,5,2,5,\ldots does neither: it repeats after two positions.

Increasing decreasing and periodic sequences

A sequence is increasing when un+1>unu_{n+1}>u_n for every allowed nn, and decreasing when un+1<unu_{n+1}<u_n for every allowed nn. These are strict comparisons; equality gives a constant step rather than an increase or decrease.

A sequence is periodic when there is a positive integer pp such that un+p=unu_{n+p}=u_n for every allowed nn. Its period is the smallest such pp. A constant sequence has period 11.

To prove increase or decrease from a formula, examine un+1−unu_{n+1}-u_n: positive means increase, negative means decrease. A few computed terms can suggest behaviour but cannot establish it for every position. Similarly, seeing two equal terms is insufficient to prove that the entire sequence repeats.

[DIAGRAM: asset_name: Sequence positions and behaviour; asset_slug: sequence-behaviour; caption: Sequence graphs contain integer-position points; a periodic pattern returns to the same value after a fixed number of steps.; description: Three discrete point plots at n equals one to eight. Increasing u n equals n has values one to eight; decreasing u n equals one over n has values one, one half, one third through one eighth; periodic values two five alternate, with a bracket showing period two. No points are joined by continuous curves.]
Sequence graphs contain integer-position points

For increase and decrease, a difference calculation covers every position at once.

Worked example 5: proving increase

Question. Show that un=n2u_n=n^2, for n=1,2,3,…n=1,2,3,\ldots, is increasing.

Plan. Subtract the current term from the next and determine its sign for every positive integer nn.

un+1−un=(n+1)2−n2=2n+1>0(n≥1).u_{n+1}-u_n=(n+1)^2-n^2=2n+1>0\quad(n\ge1).

Answer. Every next term is larger, so the sequence is increasing.

Check. The first four values are 1,4,9,161,4,9,16, with positive differences 3,5,73,5,7. These agree with 2n+12n+1 at n=1,2,3n=1,2,3; the algebra establishes all later cases.

Change only the sign of the explicit formula. Every term and every successive difference changes sign.

Worked example 6: proving decrease

Question. Show that un=−n2u_n=-n^2, for n=1,2,3,…n=1,2,3,\ldots, is decreasing.

Plan. Calculate the same next-minus-current difference, keeping the minus sign outside each square.

un+1−un=−(n+1)2−(−n2)=−2n−1<0(n≥1).u_{n+1}-u_n=-(n+1)^2-(-n^2)=-2n-1<0\quad(n\ge1).

Answer. Every next term is smaller, so the sequence is decreasing.

Check. The values −1,−4,−9,−16-1,-4,-9,-16 have differences −3,−5,−7-3,-5,-7, matching the negative of the previous example's differences.

A positive sequence can decrease too: for wn=1/nw_n=1/n,

wn+1−wn=1n+1−1n=−1n(n+1)<0.w_{n+1}-w_n=\frac1{n+1}-\frac1n=-\frac1{n(n+1)}<0.

Positivity describes the terms, while increase or decrease describes how they change. Periodicity needs a different comparison: compare a term with the one a fixed number of positions later.

Worked example 7: proving a period

Question. A sequence is defined by u1=2u_1=2 and un+1=7−unu_{n+1}=7-u_n. Find its first five terms and determine its period, justifying that it continues to repeat.

Plan. Generate the values, then apply the recurrence twice symbolically to check return to any current value.

2,7−2=5,7−5=2,7−2=5,7−5=2.2,\quad 7-2=5,\quad7-5=2,\quad7-2=5,\quad7-5=2.

For every nn,

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

Answer. The first five terms are 2,5,2,5,22,5,2,5,2, and the period is 22. It is not period 11, since u1≠u2u_1\ne u_2.

Check. Each update exchanges the two distinct values 22 and 55. Returning after two updates applies indefinitely, not only for the first five terms.

Change only the initial term to 7/27/2. The same recurrence now starts exactly halfway between the two values it would exchange.

Worked example 8: when a repeating rule becomes constant

Question. A sequence is defined by u1=7/2u_1=7/2 and un+1=7−unu_{n+1}=7-u_n. Find its first five terms and determine its period.

Plan. Test the first update, then use its result to identify all later terms.

u2=7−72=72.u_2=7-\frac72=\frac72.

The next term is again 7−7/2=7/27-7/2=7/2, and the same reasoning continues.

Answer. The first five terms are 7/2,7/2,7/2,7/2,7/27/2,7/2,7/2,7/2,7/2. The period is 11: the sequence is constant, so it is neither strictly increasing nor strictly decreasing.

Check. A fixed value cc must satisfy c=7−cc=7-c. Solving 2c=72c=7 gives c=7/2c=7/2, precisely the supplied initial term.

The opening puzzle now has a concrete answer: in Example 7, every even-positioned term is 55, so u1000000=u2=5u_{1000000}=u_2=5.

Watch out

A period must be the smallest positive repeat length. Example 7 also satisfies un+4=unu_{n+4}=u_n, but its period is 22, not 44. Example 8 has period 11, even though the two-update identity also holds.

Use the paired examples to analyse another initial value, rather than guessing from one repeated term.