Results 1 to 13 of 13

Thread: Just for fun - number sequence

  1. #1

    Thread Starter
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090

    Just for fun - number sequence

    The 1st term in a geometric(?) number sequence is 2. The 5th term is 14.

    what is the formula for the sequence?

    edit: hmm.. maybe you need one more term. OK, the 57th is 170.
    Have I helped you? Please Rate my posts.

  2. #2
    pathfinder NotLKH's Avatar
    Join Date
    Apr 2001
    Posts
    2,397
    Perhaps you could refresh my memory and illustrate what the form of a geometric series looks like?

    Is it something like:

    Xi = A*X3(i-1) + B*X2(i-1) + C*X(i-1) + D


    ???
    -Lou

  3. #3

    Thread Starter
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    I'm not sure this is a geometric sequency, that's why I put it in brackets.

    I think a geometric sequence is one where you multiply the number by a number which is constant. Then it can add or subtract number afterwards.
    eg
    Un = 2n+1
    would give
    3, 5, 7, 9 ...
    Have I helped you? Please Rate my posts.

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    thats the aritmetic series
    the geometric series goes exponential:

    a+aq+aq^2+..+aq^n = a(1-q^n)/(1-q), q/=1

    a=2
    2q^5=15 gives q=7.5^0.2~1.496

    you don't really need 57'th term, but lets see if you made this up..

    2*7.5^(0.2*57)~18911605435 obviously not 170
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  5. #5
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    lets give the aritmetic one a shot (sorry i didn't notice it was you who posted that)
    the n'th number should be a+nd where a is the first

    2+5d=14 <=> d= 12/5 = 2.4
    2+57d=170 <=> d=168/57 = 2.9

    doesn't work out...
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  6. #6

  7. #7

    Thread Starter
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    Your right NotLKH, how did you get it?
    Have I helped you? Please Rate my posts.

  8. #8
    Addicted Member Celest's Avatar
    Join Date
    Jun 2001
    Posts
    134
    14 - 2 = 12 (Difference between 5th term and 1st term)

    12 / 4 = 3 (Divide by 4 as there is a difference of 4 terms between the first and fifth)

    => coefficient of n is 3

    So far Un = 3n

    Using that for the first term gives 3.

    2 - 3 = - 1

    => constant is - 1

    Therefore:

    Un = 3n - 1

    (This method only works for linear equations though)

  9. #9
    Only Slightly Obsessive jemidiah's Avatar
    Join Date
    Apr 2002
    Posts
    2,431
    And on the TI-83 you could've used a linear regression, although Celest's way is better
    The time you enjoy wasting is not wasted time.
    Bertrand Russell

    <- Remember to rate posts you find helpful.

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

    Talking ok

    Just a point.

    These numbers have a constant difference between terms (in this case 3) That makes it an Arithmetic sequence.

    A Gemetric sequence is one with a common ration between terms. (as kedaman said)

    Now, if you're given an Nth value and a Kth value (i.e. two indexed values) in either you can find the sequence (unless it is a geometric sequence, and (N-K) is even, then there are two possibilities)

    I.e. for Geometric series:
    5th term: 14
    1st term: 1
    => Nth term = 14^(n-1)
    sql_lall

  11. #11
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    the aritmetic series first element would be -1, not 2..
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  12. #12
    Hyperactive Member
    Join Date
    Jul 2002
    Location
    WGTN, New Zealand
    Posts
    338
    Tn = 3n - 1

    The first term, T1 is 2, the 0th term, T0, would be -1.

  13. #13
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    there is no 0th term, in math or in english. You start counting from 1
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

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