The sequence 1 , 2 , 3 , 2 , … has the property that every fourth term is the average of the previous three terms. That is, the sequence { a n } is defined as a 1 = 1 , a 2 = 2 , a 3 = 3 , and a n + 3 = 3 a n + 2 + a n + 1 + a n for any positive integer n .
This sequence converges to a rational number b a , where a and b are coprime positive integers. Find a + b .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
How did you get to the idea of writing xn in this manner?
This logic also works for one of the previous problems and would be a better solution than the top one.
How do you prove the convergence of the series?
Log in to reply
it's given
Log in to reply
Thanks for your reply, but it doesn't answer my question. I don't stop at what's required, I want to understand in-depth.
3 a 4 = a 1 + a 2 + a 3 3 a 5 = a 2 + a 3 + a 4 3 a 6 = a 3 + a 4 + a 5 3 a 7 = a 4 + a 5 + a 6 and so on and on finally converging to 3 a @ = a @ + a @ + a @ 3 a @ = a @ + a @ + a @ The subscript @ has been used to show the term at infinity (converged). Now adding all these equations three a 4 s in L.H.S. cancel with three a 4 s in R.H.S. and so do all others. We finally get 6 a @ = a 1 + 2 a 2 + 3 a 3 Now it is easy to see that the rational number is (1 + 2x2 + 3x3)/6 = 7/3. Hence a = 7, b = 3. a + b = 10
You should try the problem It's trivial?It is the same as this problem.
Weird solution:
The recursive operation is given by the matrix:
A = ⎝ ⎛ 3 1 1 0 3 1 0 1 3 1 0 0 ⎠ ⎞
We want to find:
lim n → ∞ A n ⎝ ⎛ 3 2 1 ⎠ ⎞
which we can do by diagonalizing A. After some pain you end up with: ⎝ ⎛ 2 1 ? ? 3 1 ? ? 6 1 ? ? ⎠ ⎞ ⎝ ⎛ 3 2 1 ⎠ ⎞ = ⎝ ⎛ 3 7 3 7 3 7 ⎠ ⎞
where we don't care what the ?'s are because we know that as the sequence converges our column vector elements become equivalent. Hence our final result is 3 7 and a + b = 1 0
Can someone please link me to some study text about what is going on in this solution (I am familiar with basic matrix stuff) :) Thank you
Log in to reply
Search eigen-value and eigen-vectors and diagonalization of matrix ;)
Thank you for posting a hard solution!!!
using namespace std;
int main() { // your code goes here float a[10001]; a[0]=1; a[1]=2; a[2]=3; for(int i=3;i<10001;i++){ a[i] =a[i-1]+a[i-2]+a[i-3]; a[i]/=3; } cout<<a[10000]; }
Rajat, your algorithm does find the convergence, but unfortunately you will need to convert the resulting float (2.333333325 or something like that) back to a reduced fraction (a/b) in order to give the correct answer (a=7,b=3,a+b=10). See http://stackoverflow.com/questions/95727/how-to-convert-floats-to-human-readable-fractions for methods to do this. It is a non-trivial coding.
Problem Loading...
Note Loading...
Set Loading...
Let a = lim a n and x n = 3 a n + 2 + 2 a n + 1 + a n So, x n + 1 = x n . Indeed, 3 a n + 3 = a n + 2 + a n + 1 + a n ⇔ 3 a n + 3 + 2 a n + 2 + a n + 1 = 3 a n + 2 + 2 a n + 1 + a n ⇔ x n + 1 = x n Then, x n = x 1 = 3 2 + 2 2 + 1 2 = 1 4 . In other hand, we have lim x n = lim 3 a n + 2 + 2 a n + 1 + a n = 3 a + 2 a + a = 6 a ⇒ a = 6 lim x n = 6 x 1 = 3 7