Page 4 of 5 FirstFirst 12345 LastLast
Results 46 to 60 of 61

Thread: Fun counting math puzzle

  1. #46
    Draw the Drapes Recognized Member rubah's Avatar
    Join Date
    Dec 2004
    Location
    Now Destiny is done.
    Posts
    30,655
    Blog Entries
    21
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    I find it ironic that despite not paying attention to the problem I still came rather close to the answer, getting 3206.

    Either I'm bad at pen and paper math, or this is just weird.

    [edit- I'm just bad at multiplying, that's all. my real answer (wronger than before) is now 3906xD]

  2. #47
    Feel the Bern Administrator Del Murder's Avatar
    Join Date
    Jun 2001
    Location
    Oakland, California
    Posts
    41,733
    Articles
    6
    Blog Entries
    2
    Contributions
    • Former Cid's Knight
    • Former Administrator
    • Hosted the Ciddies

    Default

    The program makes it clear as day. That was in my head but it's hard to work out by hand without that nifty modulus function.

    Proud to be the Unofficial Secret Illegal Enforcer of Eyes on Final Fantasy!
    When I grow up, I want to go to Bovine Trump University! - Ralph Wiggum

  3. #48
    toxic nerd noir Lindy's Avatar
    Join Date
    Mar 2002
    Location
    lost
    Posts
    3,641

    Default

    I'm sure by "fun" you mean "I'm going to rape your brain".

    I never understood how people could enjoy maths, it must just be one of those things, like how some people enjoy hurting small woodland animals.

    P.S. This topic is proof of why ninja are better, pirates are morons who throw away diamonds.

  4. #49
    permanently mitten
    Goddess of Snacks
    Miriel's Avatar
    Join Date
    May 2002
    Location
    San Francisco
    Posts
    13,580
    Blog Entries
    3
    Contributions
    • Former Cid's Knight

    Default

    Quote Originally Posted by Lindy
    I'm sure by "fun" you mean "I'm going to rape your brain".

    I never understood how people could enjoy maths, it must just be one of those things, like how some people enjoy hurting small woodland animals.
    You speak the truth.

  5. #50
    Posts Occur in Real Time edczxcvbnm's Avatar
    Join Date
    Aug 2000
    Location
    The World
    Posts
    7,920

    Default

    It isn't math. It is the fun of solving a problem. I also like to harm small woodland animals...

  6. #51
    Pat Fenguin Xaven's Avatar
    Join Date
    Jan 2005
    Location
    Desert Beach
    Posts
    2,945

    Default

    Quote Originally Posted by Lindy
    I'm sure by "fun" you mean "I'm going to rape your brain".

    I never understood how people could enjoy maths, it must just be one of those things, like how some people enjoy hurting small woodland animals.
    But math is fun!

    ...I'm sad now. :kaocry:
    Last edited by Xaven; 01-05-2006 at 04:18 AM.

  7. #52
    Chocobocconcini Doomie's Avatar
    Join Date
    Jun 2004
    Location
    You. *wink*
    Posts
    754

    Default

    I'm not quite sure what the problem is asking, nor am I sure how to get to that solution. Someone tone it down, kthx.

  8. #53
    Pat Fenguin Xaven's Avatar
    Join Date
    Jan 2005
    Location
    Desert Beach
    Posts
    2,945

    Default

    Quote Originally Posted by Doomie
    I'm not quite sure what the problem is asking, nor am I sure how to get to that solution. Someone tone it down, kthx.
    They're asking 'How many diamonds did the pirates start out with?'.

    5 pirates find some treasure (a bunch of diamonds). Oblivious to eachother, they each divide the pile into five and take their share, BUT there's always one diamond left over (eg, 31 diamonds divided by five equals 6, with a remainder of 1). They toss the extra diamond overboard. Okay, so after the first pirate takes his share and tosses the extra diamond, the second pirate does the same, not knowing that the Pirate 1 already took his share! (Pirates 2-5 all get screwed) This happens until all 5 pirates have taken one fifth of the pile away, each time with one left over.

    As for solving it, there's their big, fancy, BORING way, and my UN-BORING way. Your choice.
    Last edited by Xaven; 01-05-2006 at 04:24 AM.

  9. #54
    Chocobocconcini Doomie's Avatar
    Join Date
    Jun 2004
    Location
    You. *wink*
    Posts
    754

    Default

    I didn't understand both. but I was using a calculator which gave me decimals, which may be why I didn't understand it. Thanks a bunch. ;]

  10. #55
    ORANGE Dr Unne's Avatar
    Join Date
    Dec 1999
    Posts
    7,394
    Articles
    1
    Contributions
    • Former Administrator
    • Former Developer
    • Former Tech Admin

    Default

    This is also sadly brute-forcish:

    Code:
    #!/usr/bin/ruby
    
    def find_num(x, try, max)
        # Output intermediary steps if you want
        # puts "#{x},#{try},#{max}"
        return false if x % 5 != 1
        return true if try == max
        return x if find_num( (x-1) * 4/5, try+1, max)
    end
    
    1.upto(99999999999) do |x|
        if(ans = find_num(x, 1, 5))
            puts "Answer: #{ans}"
            break
        end
    end
    Assuming this program works (and I have no idea if it does) you can figure out an arbitrary number of pirates greater than 1. The answer to 8 pirates is (SPOILER)390621. The answer to 9 pirates is (SPOILER)1953121. The answer to 10 pirates is (SPOILER)9765621. This program appears to take exponentially more time as you increase the number of pirates linearly, which means it's a sucky algorithm. 11 pirates would take many minutes to solve.

  11. #56

    Default

    sorry to tell u guys this but the least possble # is 1 because theres more then 1 dimoned(i cant spell good) in the chest to start with so thats the least possble # i think?

  12. #57
    Feel the Bern Administrator Del Murder's Avatar
    Join Date
    Jun 2001
    Location
    Oakland, California
    Posts
    41,733
    Articles
    6
    Blog Entries
    2
    Contributions
    • Former Cid's Knight
    • Former Administrator
    • Hosted the Ciddies

    Default

    So the other pirates divide up nothing?

    Proud to be the Unofficial Secret Illegal Enforcer of Eyes on Final Fantasy!
    When I grow up, I want to go to Bovine Trump University! - Ralph Wiggum

  13. #58
    Pat Fenguin Xaven's Avatar
    Join Date
    Jan 2005
    Location
    Desert Beach
    Posts
    2,945

    Default

    Quote Originally Posted by Treize
    sorry to tell u guys this but the least possble # is 1 because theres more then 1 dimoned(i cant spell good) in the chest to start with so thats the least possble # i think?
    Nope.

    It says they throw the extra diamond overboard. If there was 1 diamond and it was discarded by Pirate 1, then what would Pirates 2, 3, 4, 5 throw overboard? It says they all throw 1 extra diamond overboard.

  14. #59
    Old school, like an old fool. Flying Mullet's Avatar
    Join Date
    Apr 2003
    Location
    Napping in a peach tree.
    Posts
    19,185
    Articles
    6
    Blog Entries
    7
    Contributions
    • Former Administrator
    • Former Cid's Knight
    • Former Senior Site Staff

    Default

    I ended up with 3906 too.

    1*5 +1 = 6
    6 * 5 + 1 = 31
    31 * 5 + 1 = 156
    156 * 5 + 1 = 781
    781 * 5 + 1 = 3906
    Figaro Castle

  15. #60
    ORANGE Dr Unne's Avatar
    Join Date
    Dec 1999
    Posts
    7,394
    Articles
    1
    Contributions
    • Former Administrator
    • Former Developer
    • Former Tech Admin

    Default

    3906 is the answer to the problem where the pirate divides the diamonds into 5 piles, takes 4 of the piles and leaves 1 pile behind.

Posting Permissions

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