Results 1 to 30 of 30

Thread: Formula for (iterative?) series?

  1. #1

    Thread Starter
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527

    Formula for (iterative?) series?

    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?

  2. #2
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863
    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
    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!

  3. #3

    Thread Starter
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    what do u mean?

    [from n=2 to n]

    ?

  4. #4
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863
    Sum [from n=2 to n] ( 2^n-1)
    should be to sum of:

    2^1 +2^2 +...2^n
    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!

  5. #5
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863
    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)
    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!

  6. #6

    Thread Starter
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    Perhaps i'm too stupid tonight

    Can you show me how it works, with a value of n

    say 4?

  7. #7
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863
    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)
    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!

  8. #8
    Fanatic Member sql_lall's Avatar
    Join Date
    Jul 2002
    Location
    Up Above (i.e. AUS)
    Posts
    571

    Talking Recurrences

    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.
    sql_lall

  9. #9

  10. #10
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863
    Sounds good to me, and it's more easily computed!
    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!

  11. #11
    pathfinder NotLKH's Avatar
    Join Date
    Apr 2001
    Posts
    2,397

    Re: Formula for (iterative?) series?

    Originally posted by da_silvy
    ... how to prove ... it.

    5, 12, 26, 54

    i.e.

    rule => tn = 2tn-1 + 2
    I'll leave that up to you, but all you have to do {I think} is show,

    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

  12. #12
    pathfinder NotLKH's Avatar
    Join Date
    Apr 2001
    Posts
    2,397
    Think any one can prove the Following:

    Problem #1
    if Xi+1 = 2*Xi + B

    and, given X0

    then

    Xi = X0 + (X0 + B)*(2i - 1)

    Problem #2
    if Xi+1 = M*Xi + B

    and, given X0

    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.


  13. #13
    Fanatic Member sql_lall's Avatar
    Join Date
    Jul 2002
    Location
    Up Above (i.e. AUS)
    Posts
    571

    Talking Yeah, yeah,

    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

  14. #14
    Fanatic Member sql_lall's Avatar
    Join Date
    Jul 2002
    Location
    Up Above (i.e. AUS)
    Posts
    571

    Talking Formula

    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"
    sql_lall

  15. #15
    Fanatic Member sql_lall's Avatar
    Join Date
    Jul 2002
    Location
    Up Above (i.e. AUS)
    Posts
    571

    Talking General

    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

    Also, my 222nd post
    sql_lall

  16. #16
    pathfinder NotLKH's Avatar
    Join Date
    Apr 2001
    Posts
    2,397

    Re: General

    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!!!
    Very Nice!


    It agrees with what I developed nicely.

    Here's My formula.


    Attached Images Attached Images  

  17. #17

  18. #18
    pathfinder NotLKH's Avatar
    Join Date
    Apr 2001
    Posts
    2,397
    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

    Hmm,
    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

    When i is even,

    Xi+2 = k*Xi + B1

    and when i is odd,

    Xi+2 = j*Xi + B2
    now, how do i .... hmmmm.

  19. #19
    pathfinder NotLKH's Avatar
    Join Date
    Apr 2001
    Posts
    2,397
    hmmm,

    I'm puzzled.

    Lets say I have:
    X0 = 1, X1 = 2, and:

    Xi+2 = Xi+1 + 2*Xi + 3
    This forms the series:
    1, 2, 7, 14, 31, 62, ...

    So,

    When i is even,
    Xi = 1 + 2*(4(i/2)-1)

    and when i is odd,
    Xi = 2 + 4*(4((i-1)/2)-1)
    But, what is Xi when i <> integer, ie, perhaps when i = 1.6?

  20. #20
    pathfinder NotLKH's Avatar
    Join Date
    Apr 2001
    Posts
    2,397
    hmmmm

    How about these:

    hmmm #1
    If Xi+1 = a*Xi2 + b*Xi + c,

    and Given X0

    What is the generic formula for Xi?
    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?
    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?

  21. #21
    Fanatic Member sql_lall's Avatar
    Join Date
    Jul 2002
    Location
    Up Above (i.e. AUS)
    Posts
    571

    Talking Fine, Fine

    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
    Last edited by sql_lall; Mar 22nd, 2003 at 04:49 AM.
    sql_lall

  22. #22
    pathfinder NotLKH's Avatar
    Join Date
    Apr 2001
    Posts
    2,397
    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?
    Ok. Now I'm getting somewhere.

    Xi = 2(i+1) - (1/2)*(3-(-1)i) for all i.

    cool!


  23. #23
    Fanatic Member bugzpodder's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    787
    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)!

  24. #24
    pathfinder NotLKH's Avatar
    Join Date
    Apr 2001
    Posts
    2,397
    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
    bugz,

    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

  25. #25
    Fanatic Member bugzpodder's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    787
    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)!

  26. #26
    Fanatic Member sql_lall's Avatar
    Join Date
    Jul 2002
    Location
    Up Above (i.e. AUS)
    Posts
    571

    Talking Yeah, yeah, i know.

    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.
    sql_lall

  27. #27
    Fanatic Member bugzpodder's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    787
    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)!

  28. #28
    Fanatic Member sql_lall's Avatar
    Join Date
    Jul 2002
    Location
    Up Above (i.e. AUS)
    Posts
    571

    Talking OK.

    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)
    sql_lall

  29. #29
    Fanatic Member bugzpodder's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    787
    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....
    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)!

  30. #30
    Fanatic Member sql_lall's Avatar
    Join Date
    Jul 2002
    Location
    Up Above (i.e. AUS)
    Posts
    571

    Talking Wha??

    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+...)
    sql_lall

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width