WorkbenchFirst look at the values computed term by term, and at the ratio column. Which number does the ratio approach? Then press “Check with the closed form”. Finally drag p and q to find a pair that makes the characteristic roots complex.
Loading figure…
What this move does
In a recursive sequence of order k, each term is determined by the k terms before it. The most common, and the most systematic, kind is the linear recurrence with constant coefficients
an+2=pan+1+qan.
The key observation: if a geometric sequence λn satisfies the recurrence, then λn+2=pλn+1+qλn, that is,
λ2=pλ+q(the characteristic equation).
Moreover, any linear combination of sequences satisfying the recurrence satisfies it too. So:
Write down the characteristic equation and find the characteristic rootsλ1,λ2.
If the roots are different, put an=Aλ1n+Bλ2n; if they are equal, put an=(A+Bn)λn.
Use the two initial values to set up equations and solve for A,B; then substitute back to check.
Predict first
a0=1,a1=3,an+2=3an+1−2an. Find a10.
Choose an answer first; then you can see the result.
✓You predicted it!✗Not what you expected — which is exactly why it is worth a pause.
The characteristic equation is λ2=3λ−2, with roots 1 and 2. Put an=A+B⋅2n: A+B=1 and A+2B=3, so B=2,A=−1. Hence an=2n+1−1 and a10=2047.
Loading figure…
Compute term by term up to a10 and compare with the formula.
Work through one
Example: a₀ = 1, a₁ = 4, a_{n+2} = 5a_{n+1} − 6aₙ
Step 1 / 5
Loading figure…
Compute a few terms
1,4,14,46,146,… grows fast. The ratio column gets closer and closer to 3, a hint that the “main part” of the sequence is 3n.
a2=5⋅4−6⋅1=14
The characteristic equation
The shape of the general term
Fit the initial values
Check
The first-order case: subtract the fixed point
an+1=pan+r (p=1) is not a geometric sequence, but it is one up to a constant. Find the fixed pointx∗=px∗+r and subtract the two equations:
an+1−x∗=p(an−x∗),
so {an−x∗} is a geometric sequence with common ratio p.
Loading figure…
an+1=3an−4: the fixed point is x∗=2 and an=2+3⋅3n. Drag p to 1: the fixed point disappears and the sequence becomes arithmetic.
Double roots and complex roots
When the two roots are equal, λn gives only one solution and we need another: it is nλn. When the roots are complex conjugates, i appears in the formula, but the sequence itself is still made of integers, and it may swing back and forth periodically.
Loading figure…
an+2=an+1−an: the characteristic roots 21±3i have modulus 1 and argument 60∘. Six turns bring them back to the start, so the sequence has period 6. That is the star of the next stop.
When it fails
Break it
Counterexample lab: remove one condition
Conclusion: an=Aλ1n+Bλ2n can match any initial values← still true?
an+2=5an+1−6an, with different roots 2,3: two initial values, two unknowns, always solvable.
Loading figure…
an+2=4an+1−4an with a0=1,a1=6. The characteristic root is a double root2. If you still put an=A⋅2n+B⋅2n=(A+B)2n, there is only one unknown, A+B: n=0 requires it to be 1, n=1 requires it to be 3. A contradiction.
Loading figure…
Add the second solution n⋅2n: an=(1+2n)2n. The machine checks every term, and they all agree.
Practice
Exercise 1Basic
a0=1,an+1=2an+3. Find a5 and write down the general term.
Hint · direction
Find the fixed point first.
Hint · method
x∗=2x∗+3 gives x∗=−3. So an+3 is a geometric sequence with common ratio 2.
Hint · first step
a0+3=4, so an+3=4⋅2n.
Full solution
an=2n+2−3, and a5=128−3=125. (Term by term: 1,5,13,29,61,125.)
Exercise 2Basic
a0=2,a1=1,an+2=an+1+6an. Find a6.
Hint · direction
What is the characteristic equation?
Hint · method
λ2=λ+6, with roots 3 and −2. Put an=A⋅3n+B(−2)n.
Hint · first step
A+B=2 and 3A−2B=1, so A=B=1.
Full solution
an=3n+(−2)n, and a6=729+64=793.
Exercise 3Advanced
a0=1,a1=6,an+2=6an+1−9an. Find the general term and a4.
Hint · direction
Are the characteristic roots equal?
Hint · method
λ2−6λ+9=(λ−3)2: a double root 3. Put an=(A+Bn)3n.
Hint · first step
n=0: A=1; n=1: 3(1+B)=6, so B=1.
Full solution
an=(n+1)3n, and a4=5⋅81=405.
Exercise 4Challenge
Let f(n) be the number of strings of length n made of the digits 0,1,2 in which no two 0s are adjacent. Find f(5), and write down the recurrence that f(n) satisfies and its characteristic roots.
Hint · direction
Split into cases according to whether the last character is 0.
Hint · method
If the last character is 1 or 2, anything valid can come before it: 2f(n−1) strings. If the last is 0, the one before it must be 1 or 2: 2f(n−2) strings.
Hint · first step
f(n)=2f(n−1)+2f(n−2), with f(1)=3 and f(2)=9−1=8.
Full solution
f(3)=22, f(4)=60, f(5)=2⋅60+2⋅22=164. The characteristic equation is λ2=2λ+2, with roots 1±3; so f(n) grows roughly like (1+3)n≈2.73n.
The initial values are a₁, a₂, but the constants are solved as if they were a₀, a₁
✗
The wrong step: a1=1,a2=4,an+2=5an+1−6an. The characteristic roots are 2,3. Put an=A⋅3n+B⋅2n; from A+B=1,3A+2B=4 we get an=2⋅3n−2n.
What went wrong? Think first, then open
DiagnosisThe system of equations uses n=0 and n=1, but the problem gives a1 and a2. Check: the formula gives a1=6−2=4, while the problem says a1=1. The whole sequence has been shifted by one place.
✓
The right step: Set up the equations with n=1,2: 3A+2B=1 and 9A+4B=4, which give A=32,B=−21, that is, an=2⋅3n−1−2n−1. Check that a1=1,a2=4.
“Once you have the constants, substitute the initial values back to check”
Recursive Sequences ← → step · F full screen · Esc exit