Thread: need help with simple math prob...

  1. #1
    Registered User
    Join Date
    Sep 2001
    Location
    pacific northwest
    Posts
    37

    need help with simple math prob...

    okay.... i just need a quick explanation on what a number like this would translate to:

    1.3e+171


    that's what i got when i did 88^88
    and what i am looking for is all possible combinations on an 88-key piano

    is this correct?
    "No, I am not wise, but I am a lover of wisdom." --Pythagoras

  2. #2
    Lead Moderator kermi3's Avatar
    Join Date
    Aug 1998
    Posts
    2,595
    When you say 88 key combinations do you mean of pressing 2 keys at a time? Or up to 88 keys at a time?
    Kermi3

    If you're new to the boards, welcome and reading this will help you get started.
    Information on code tags may be found here

    - Sandlot is the highest form of sport.

  3. #3
    Registered User
    Join Date
    Sep 2001
    Location
    pacific northwest
    Posts
    37
    lets say both...

    1 key at a time, and all the possible sequences

    and also 88 keys at a time..
    "No, I am not wise, but I am a lover of wisdom." --Pythagoras

  4. #4
    Lead Moderator kermi3's Avatar
    Join Date
    Aug 1998
    Posts
    2,595
    Are you using elemination? After it's been struck once it can't eb struck again? Because if not then your answer is literally infanity.

    1 Key at a time should be 89! I think, if I'm thinking right.
    Kermi3

    If you're new to the boards, welcome and reading this will help you get started.
    Information on code tags may be found here

    - Sandlot is the highest form of sport.

  5. #5
    booyakasha
    Join Date
    Nov 2002
    Posts
    208
    that would be 13 with 170 zeros after it


    but i don't think you 88^88 calculation is right;

    i think its 88! but im not sure

  6. #6
    Registered User
    Join Date
    Sep 2001
    Location
    pacific northwest
    Posts
    37
    okay... i am limited to the 88 keys for the total sequence... and the key can be used more than once as long as the squence is different...

    lets say i started bottom scale, then went to the top... there's one iteration... now i restart, but i stike one key ahead, then finish with the key 1...

    make sense?
    "No, I am not wise, but I am a lover of wisdom." --Pythagoras

  7. #7
    Registered User
    Join Date
    Sep 2001
    Location
    pacific northwest
    Posts
    37
    now i've confused myself.
    "No, I am not wise, but I am a lover of wisdom." --Pythagoras

  8. #8
    Lead Moderator kermi3's Avatar
    Join Date
    Aug 1998
    Posts
    2,595
    Assuming you don't have to go in order with the keys...88^88 because (if this makes sense)

    The first time you hit a key you have a choice of 88 keys. The next time you still have a choice of 88 keys (assuming you can press the same key again). You do this 88 times.

    Answer is roughly:

    1.3e+171 - like you origanally said, also said as:

    1.3x10^171

    or 13 with 170 0s after it.
    Kermi3

    If you're new to the boards, welcome and reading this will help you get started.
    Information on code tags may be found here

    - Sandlot is the highest form of sport.

  9. #9
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    1.3e+171

    Is the same as:

    13000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 0000000000000000000000
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  10. #10
    Registered User
    Join Date
    Sep 2001
    Location
    pacific northwest
    Posts
    37
    thanks for the confirmation kermi
    "No, I am not wise, but I am a lover of wisdom." --Pythagoras

  11. #11
    I lurk
    Join Date
    Aug 2002
    Posts
    1,361
    All possible keypresses on an 88 key piano? Wouldn't that be n*n-1, or nn-n. So, 88*88-88 = 7656 possible combinations

  12. #12
    Registered User Bajanine's Avatar
    Join Date
    Dec 2001
    Location
    The most peaks over 10,000 feet!
    Posts
    396

    Cool

    Permutations versus Combinations

    Permutations (order is important)
    P(n,r) = n!/(n-r)!


    Combinations (order in NOT important)
    C(n,r) = n!/(r! * n!)
    Favorite Quote:

    >For that reason someone invented C++.
    BLASPHEMY! Begone from my C board, you foul lover of objects, before the gods of C cast you into the void as punishment for your weakness! There is no penance for saying such things in my presence. You are henceforth excommunicated. Never return to this house, filthy heretic!



  13. #13
    Registered User xds4lx's Avatar
    Join Date
    Nov 2001
    Posts
    630
    Haha funny this is just the math class im in, math 3322 Discrete Modeling, study of combinatorics and graph theory

    anyways what you have is you have 88 keys on the piano. You want the number of ways you can pick any 2 keys from the total 88.

    So you have 88 choose 2 where n = 88 and k = 2, and x is the soulotion you have:

    x = n!/(k!(n-k)!) = 88!/(2!(88-2)!) = 88!/(2!(86)!)
    = (88*87*86!)/(2!(86!)) = (88*87)/2! = 7656/2 = 3828 2 key combinations

    [EDIT]
    if you have a TI 81/82/83 and above you can check this by doing this:

    88[Math]->PRB->3(nCr)2 = 3828
    where [Math] is the math key -> implies press over to the PRB menu->3 is the function to select, well at least on my Ti83, but look for nCr
    Last edited by xds4lx; 11-19-2002 at 12:44 AM.

  14. #14
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Originally posted by Bajanine
    C(n,r) = n!/(r! * n!)
    That's the same as 1 / (r!)... are you sure you're right
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  15. #15
    Registered User Bajanine's Avatar
    Join Date
    Dec 2001
    Location
    The most peaks over 10,000 feet!
    Posts
    396

    Wow!

    Wow, did I ever butcher that. I believe it is:
    C(n,r) = n!/(r! (n-r)!)

    Just as xds4lx posted!
    Last edited by Bajanine; 11-19-2002 at 01:49 AM.
    Favorite Quote:

    >For that reason someone invented C++.
    BLASPHEMY! Begone from my C board, you foul lover of objects, before the gods of C cast you into the void as punishment for your weakness! There is no penance for saying such things in my presence. You are henceforth excommunicated. Never return to this house, filthy heretic!



Popular pages Recent additions subscribe to a feed

Similar Threads

  1. trying to do simple math with float and int type
    By demuro1 in forum C Programming
    Replies: 16
    Last Post: 09-24-2008, 11:58 AM
  2. Simple Socialising Chat Bots
    By bengreenwood in forum C++ Programming
    Replies: 10
    Last Post: 11-28-2007, 08:42 AM
  3. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM
  4. help needed in a simple prob!
    By o0o in forum C++ Programming
    Replies: 4
    Last Post: 12-22-2003, 07:55 AM
  5. Simple simple graphics
    By triplem in forum C Programming
    Replies: 2
    Last Post: 05-19-2003, 02:52 AM