How are these recursively defined sequences related?
Question
A list of real numbers x1, x2, x3, … is defined by x1=1, x2=3 and then for n≥3 by xn=2xn−1−xn−2+1.
So, for example, x3=2x2−x1+1=2×3−1+1=6.
- Find the values of x4 and x5.
- Find values of real constants A, B, C such that for n=1, 2, 3,
xn=A+Bn+Cn2.(∗)
- Assuming that equation (star) holds true for all n≥1, find the smallest n such that xn≥800.
- A second list of real numbers y1, y2, y3, … is defined by y1=1 and yn=yn−1+2n. Find, explaining your reasoning, a formula for yn which holds for n≥2. What is the approximate value of ynxn for large values of n?
Suggestion
Write out the first few terms of yn – what kind of sequence is this? Are there any familiar patterns in the nth term?
Could we write yn in terms of xn? Or xn in terms of yn?
Solution
Using the given formula,
x4x5=2x3−x2+1=2×6−3+1=10,=2x4−x3+1=2×10−6+1=15.
- Find values of real constants A, B, C such that for n=1, 2, 3,
xn=A+Bn+Cn2.(∗)
Putting n=1, 2, 3, we have that A, B and C must satisfy A+B+C=1, A+2B+4C=3, and A+3B+9C=6.
Subtracting the second equation from the third gives us B+5C=3, and taking the first equation from the second gives B+3C=2.
These give us that C=21, B=21 and A=0.
So equation (starrepeat) becomes xn=21n(n+1).
This is the formula for the sum of the first n natural numbers.
- Assuming that equation (starrepeat) holds true for all n≥1, find the smallest n such that xn≥800.
From above we know that xn≥800 requires n(n+1)≥1600.
We know that 402=1600, which means that n=40 will give us n(n+1)=40×41>1600. To be sure it is the smallest n we should check n=39. This leads to n(n+1)=39×40 which is less than 1600. So n=40 is the smallest value that gives xn≥800.
Alternatively we can solve n(n+1)=1600, or n2+n−1600=0.
Using the quadratic formula gives n≈39.5, and so n(n+1)≥1600 for the first time when n=40.
Let’s start by writing out the first few equations to deduce the
n
th term:
y1y2y3…yn=1=1+4=1+4+6=1+4+6+⋯+2n.
Taking a closer look at the nth term, what we have is yn=1+2(2+3+4+⋯+(n−1)+n)=2(1+2+3+⋯+n)−1.
Looking at the right hand side of this, we see the sum of all the consecutive numbers from 1 to n.
We know that this sum is equal to 21n(n+1), so our equation reads yn=n(n+1)−1.
We have xn=21n(n+1) and yn=n(n+1)−1. Notice that yn=2xn−1.
So the ratio becomes ynxn=2yn2xn=2ynyn+1=21+2yn1.
For large values of n, yn is large, and so 2yn1 is close to 0.
This means that the ratio ynxn is approximately 21.