I was wondering what the rule for the following series would be and how to prove / solve it.
5, 12, 26, 54
i.e.
rule => tn = 2tn-1 + 2
How can I find an equation to get the value of the nth term?
Printable View
I was wondering what the rule for the following series would be and how to prove / solve it.
5, 12, 26, 54
i.e.
rule => tn = 2tn-1 + 2
How can I find an equation to get the value of the nth term?
Try this:
n-Term = 2^(n-1)+ Sum [from n=2 to n] ( 2^n-1)
Sorry, but I don't know how to do the Sum-Symbol
what do u mean?
[from n=2 to n]
?
Sum [from n=2 to n] ( 2^n-1)
should be to sum of:
2^1 +2^2 +...2^n
just saw a mistake in my formula, forgot to put the term 5 in there!
n-Term = 2^(n-1)*5 + Sum [from n=2 to n] ( 2^n-1)
Perhaps i'm too stupid tonight :(
Can you show me how it works, with a value of n
say 4?
n-Term = 2^(n-1)*5 + Sum [from n=2 to n] ( 2^n-1)
n=4
2^(4-1)*5 +Sum [from n=2 to 4] ( 2^n-1)
2^3*5 + 2^1 + 2^2 +2^3
8*5 + 2 +4+ 8
54
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)
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.
Seems to me the Kth term of the series 5, 12, 26, 54, ...
is 5 + (2k-1)*7, but I just woke up and I could have made a mistake.
-Lou
http://www.vbforums.com/attachment.p...postid=1387742
Sounds good to me, and it's more easily computed!
I'll leave that up to you, but all you have to do {I think} is show,Quote:
Originally posted by da_silvy
... how to prove ... it.
5, 12, 26, 54
i.e.
rule => tn = 2tn-1 + 2
if the t'th term = 5 + 7*(2t - 1),
and the t+1 term = 2*(t'th term) + 2,
show that 5 + 7*(2t+1 - 1) = 2*(5 + 7*(2t - 1))+2
Think any one can prove the Following:
Quote:
Problem #1
if Xi+1 = 2*Xi + B
and, given X0
then
Xi = X0 + (X0 + B)*(2i - 1)
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.Quote:
Problem #2
if Xi+1 = M*Xi + B
and, given X0
then develop the generic equation for Xi, and prove it's valid.
:)
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 :eek: soory
Anyway, if i have a good enough memory, i'll try posting it tomorrow.
tn+1=2tn+2
Step 1: Assume there is no "+2"
Step 2: Wite with xn=tn...
=> x - 2 = 0; x = 2
=> tn=K * 2n --(**eq. 1**)
Step 3: "Guess" that tn = c (c=constant)
=> c = 2c + 2; c = -2
=> tn = -2 --(**eq. 2**)
Step 4: combine equations 1 & 2:
=> tn = K * 2n - 2
Step 5: find unknown K:
t0 = K-2 = 5
=> K = 7
=> tn = 7 * 2n - 2
(N.B. this is assuming t0 = 5. If you wanted to say t1= 5, this is just as easy)
You can use this method to devise a general formula, which i'll do tonight if no-one else has posted it.
BTW, sorry about the "guess" part, there is a more formal way to do it, but the best word to describe this formal way is still "guess"
Last period on a friday, have a I free, so i have nothing better to do. Here's the general formula:
A * tn+1 = B * tn + C
t0 = P
Solution: (from step detail, see above)
Step 1&2: tn = K * (B/A)n
Step 3: tn = C/(A-B)
Step 4: tn = K * (B/A)n + C/(A-B)
Step 5: K = P - C/(A=B)
=> General fomula:
tn = (P - C/(A-B)) * (B/A)n + C/(A-B)
TADA!!!
Checking with the given formula:
A = 1; B = 2; C = 2; P = 5
=> tn = (5 - 2/(1-2)) * (2/1)n + 2/(1-2)
=> tn = (5 - 2/(-1)) * (2)n + 2/(-1)
=> tn = 7 * (2)n - 2...look familiar :D
Also, my 222nd post :p
Very Nice!Quote:
Originally posted by sql_lall
Last period on a friday, have a I free, so i have nothing better to do. Here's the general formula:
A * tn+1 = B * tn + C
t0 = P
....
=> General fomula:
tn = (P - C/(A-B)) * (B/A)n + C/(A-B)
TADA!!!
:)
It agrees with what I developed nicely.
Here's My formula.
;)
http://www.vbforums.com/attachment.p...postid=1391197
Ok, How about this challange:
Given X0 and X1, what is the generic equation for Xi, when:
Xi+2 = m*Xi+1 + n*Xi + b
:)
Hmm,Quote:
Originally posted by NotLKH
Ok, How about this challange:
Given X0 and X1, what is the generic equation for Xi, when:
Xi+2 = m*Xi+1 + n*Xi + b
:)
Looks like Xi can be seperated into two independent series, Xeven and Xodd...
ie...
Xi+2 = m*Xi+1 + n*Xi + b
can be considered identical to
now, how do i .... hmmmm.Quote:
When i is even,
Xi+2 = k*Xi + B1
and when i is odd,
Xi+2 = j*Xi + B2
:)
hmmm,
I'm puzzled.
Lets say I have:
This forms the series:Quote:
X0 = 1, X1 = 2, and:
Xi+2 = Xi+1 + 2*Xi + 3
1, 2, 7, 14, 31, 62, ...
So,
But, what is Xi when i <> integer, ie, perhaps when i = 1.6?Quote:
When i is even,
Xi = 1 + 2*(4(i/2)-1)
and when i is odd,
Xi = 2 + 4*(4((i-1)/2)-1)
hmmmm
How about these:
Quote:
hmmm #1
If Xi+1 = a*Xi2 + b*Xi + c,
and Given X0
What is the generic formula for Xi?
Quote:
hmmm #2
If Xi+1 = (0.2)*Xi2 - (0.4)*Xi - 1,
What is the Range of X0 such that Xi+1 does NOT approach infinity, as i -> infinity?
Quote:
hmmm #3
Within that range of X0 from hmmm #2, does Xi+1 approach a single value as i -> infinity?
if so, what is it?
Yeah, i know how to do it. Really just what i have been talking about before.
A*Xi+2 = B*Xi+1 + C*Xi + D
I.e. split into
A*Xi+2 = B*Xi+1 + C*Xi
and
A*Xi+2 = D
Solve #1 by writing Xi = ni
Solve #2 by writing Xi = c
Combine the two
I'll do this, and reply tomorrow. However someone can beat me to it if they wish :p
Ok. Now I'm getting somewhere.Quote:
Originally posted by NotLKH
hmmm,
I'm puzzled.
Lets say I have:
This forms the series:
1, 2, 7, 14, 31, 62, ...
So,
But, what is Xi when i <> integer, ie, perhaps when i = 1.6?
Xi = 2(i+1) - (1/2)*(3-(-1)i) for all i.
cool!
;)
sql_lall, can i challenge you something? find the formula for the following recurrence relation:
t_(n+2)=4t_(n+1)-4t_n
bugz,Quote:
Originally posted by bugzpodder
sql_lall, can i challenge you something? find the formula for the following recurrence relation:
t_(n+2)=4t_(n+1)-4t_n
do you know the anser{pardon, a few newcastle does NOT help your spelling!!!}, can any of us respond, or is this only for sql???
:)
-Lou
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).
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
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)
bugz podder wrote:
I have a recurrence relation question.
its easy if its x_n=A*x_(n-1)+B*x_(n-2)
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....
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+...)