I saw it, I shouldn't have used n two times for different values!
Sorry for that
so let'S put it like:
n-Term = 2^(n-1)*5 + Sum [from a=2 to n] ( 2^a-1)
You're welcome to rate this post!
If your problem is solved, please use the Mark thread as resolved button Wait, I'm too old to hurry!
Ok, i do know how to solve this recurrence, but my notes are at school.
For now, i'll solve a slightly different one, but when i get my notes i'll
Recurrence: tn = 2tn-1 + 2tn-2
Let tn = xn
=> x2 = 2x + 2
=> x2 - 2x - 2 = 0
there are two root to this r and s (= 1 +/- sqrt(3))
Now, the solution is in the form tn = Arn+Bsn
As you have t0 = 5
t1 = 12
=> A+B=5, A (1+sqrt(3)) + B(1-sqrt(3) = 12
=> A,B solved simultaneously, and tn = Arn+Bsn can be written out.
However, i know that the question you gave has just +2 at the end, i'll check to see what you do about that.
then develop the generic equation for Xi, and prove it's valid.
To be honest, I've developed the generic equation for #2, but At this moment, I'm still thinking about the approach to take to "Prove" it in the simplest maner.
It is possible to solve these recurrences. I know i said i'd post a general solution, (like i have done when there's no constant at the end) but i keep forgetting to get the sheet soory
Anyway, if i have a good enough memory, i'll try posting it tomorrow.
sql_lall, can i challenge you something? find the formula for the following recurrence relation:
t_(n+2)=4t_(n+1)-4t_n
Massey RuleZ! ^-^__Cheers!__^-^ Massey RuleZ!
Did you know that...
The probability that a random rational number has an even denominator is 1/3 (Salamin and Gosper 1972)? This result is independently verified by me (2002)!
i can easily work out the answer. and sure anyone can respond, but this is mainly to show sql_lall that in this special case his formula does not work (some modifications are needed at length).
Last edited by bugzpodder; Mar 22nd, 2003 at 11:15 PM.
Massey RuleZ! ^-^__Cheers!__^-^ Massey RuleZ!
Did you know that...
The probability that a random rational number has an even denominator is 1/3 (Salamin and Gosper 1972)? This result is independently verified by me (2002)!
I know, repeated roots when using tn=xn
I was just a simple way to get it working for most cases. (In fact, I had only put up a general solution when using 2 t terms, not 3)
BTW, you need t0 and t1, unless of course you wanted them in the solution.
However, for most (i think) cases:
A*tn+2=B*tn+1 + C*tn +D
t0 = P, t1 = Q.
Let R = (B+sqrt(B^2 + 4AC))/2A
Let S = (B-sqrt(B^2 + 4AC))/2A
Let (X,Y) be the numbers satisfying:
1) X + Y = P - D/(A-B-C)
2) RX + SY = Q - D/(A-B-C)
**special cases apply when R=S**
Also, this means X and Y can be written out in terms of A,B,C,D,P and Q, but it takes a fair bit of space, and would look messy.
=> the solution (in many cases) is:
tn = X*Rn + Y*Sn + D/(A-B-C)
I've forgotten half of this stuff, but will check up the repeated roots thing tomorrow. (BTW, 'repeated roots' because when you use tn = xn, you get a quadratic with equal roots) I know there is something you can do, just forgotten what.
I dont agree with D/(A+B+C) it just dont look right. we can have A=1 and D=1 and we are guarenteed to have integers, but D/(A+B+C) is definately not an integer
Massey RuleZ! ^-^__Cheers!__^-^ Massey RuleZ!
Did you know that...
The probability that a random rational number has an even denominator is 1/3 (Salamin and Gosper 1972)? This result is independently verified by me (2002)!
bugz:
Say you have a repeated root when using tn=xn then you write it a bit differently. To solve your example:
tn+2=4tn+1 - 4tn
=> x2-4x+4=0
=> two factors of (x-2)
=> Write this bit not as tn=A*2n+B*2n
but as: tn=2n(A+nB)
I.e. in this case, the answer is tn=2n(A+nB)
Where A = t0, B = t1/2 - t0
On the oter issue, with the D/(A-B-C), it does work.
Consider tn+2=tn+1+2tn + 3
=> D/(A-B-C) = -3/2
a series like this goes: 1, 1, 6, 11, 26,...
With the formula:
tn = X*Rn + Y*Sn + D/(A-B-C)
Filling in values:
tn = (5/6)*(-1n) + (5/3)*(2n) - 3/2
Now, not only do you have a fraction in -3/2, but also 5/6 and 5/3.
However, you will notice that this series always produces integers. (Write it out all "/ 6", and check every n mod 6)
then you do the characteristic equation. but what about:
x_n=A*x_(n-1)+B*x_(n-2)+C??
Bugz
Soarer:
similar to the one without C.
First, and
let a_n=pn+q
Solve p, q by means of a_0 and a_1.
Afterwards, omit C, and solve
a_n=ca_n-1 + da_n-2
After solving it, it should be something like
ef^n + gh^n
Sum them up, and a_n=ef^n+gh^n+pn+q is the answer....
Massey RuleZ! ^-^__Cheers!__^-^ Massey RuleZ!
Did you know that...
The probability that a random rational number has an even denominator is 1/3 (Salamin and Gosper 1972)? This result is independently verified by me (2002)!
Sorry, didn't understand that last post. Who is Soarer?
Anway, yeah, if you get repeated roots (r) in the characteristic equation, instead of writing as Arn + Brn+Crn + ...
You change it to:
rn(A + nB + n2C+...)