Results 1 to 19 of 19

Thread: Brainteaser... [resolved] <- that's something you don't see much here :D

  1. #1

    Thread Starter
    Fanatic Member arsmakman's Avatar
    Join Date
    Dec 2001
    Location
    Leiden, Netherlands.
    Posts
    719

    Resolved Brainteaser... [resolved] <- that's something you don't see much here :D

    Hello all,

    I have a problem I can't quite figure out.

    I have to containers: Container A filled with water and containter B filled with acid.



    The two containers are connected with a small pipe filled with water so the height of the liquids remains the same.

    Then slowly the water out of container A will be drained so the acid out of container B will start flowing into A (as they are connected by the pipe) increasing the molarity slowly. The contents of container A are stirred constantly, so the acid that enters A will be distributed over the fluid equally and (almost) instantly.

    Now, will the last drop of C be 100% acid or 50/50 water/acid?
    Attached Images Attached Images  
    Last edited by arsmakman; Oct 12th, 2004 at 04:16 PM.
    No matter how fool-proof your program is, there will always be a better fool.

    Was a post helpful to you? Rate it!

  2. #2
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    I would have guessed 50/50...but I have no idea...too long since I had questions like this at school....put it up as a equation over time....I can't remember what those equations with f(x)' and f(x) are called in English, but you should be able to solve it this way...

  3. #3
    Lively Member Xcoder's Avatar
    Join Date
    Jan 2004
    Posts
    120
    100% acid
    Last edited by Xcoder : 09-10-2001 at 12:45 AM.

  4. #4

    Thread Starter
    Fanatic Member arsmakman's Avatar
    Join Date
    Dec 2001
    Location
    Leiden, Netherlands.
    Posts
    719
    Originally posted by Xcoder
    100% acid
    Why?
    No matter how fool-proof your program is, there will always be a better fool.

    Was a post helpful to you? Rate it!

  5. #5
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    50% Cotton
    50% Polyester

    Seems like a trick question
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  6. #6

    Thread Starter
    Fanatic Member arsmakman's Avatar
    Join Date
    Dec 2001
    Location
    Leiden, Netherlands.
    Posts
    719
    Originally posted by Cander
    50% Cotton
    50% Polyester

    Seems like a trick question
    Yeah, but I actually need this for a report. So I'm probably boned...
    No matter how fool-proof your program is, there will always be a better fool.

    Was a post helpful to you? Rate it!

  7. #7
    Lively Member Xcoder's Avatar
    Join Date
    Jan 2004
    Posts
    120
    Originally posted by arsmakman
    Why?
    I believe that its because of the remaining acid left on the connecting pipe
    Last edited by Xcoder : 09-10-2001 at 12:45 AM.

  8. #8
    Fanatic Member alkatran's Avatar
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    860
    A= water concentration
    B = acid concentration

    A(0) = 1, A(x) = A(x-1)*.99 = .99^x
    B(0) = 0, B(x) = B(x-1)*.99 + .01

    A converges towards 0
    B converges towards 1

    Take a guess.
    Don't pay attention to this signature, it's contradictory.

  9. #9

    Thread Starter
    Fanatic Member arsmakman's Avatar
    Join Date
    Dec 2001
    Location
    Leiden, Netherlands.
    Posts
    719
    Originally posted by alkatran
    A= water concentration
    B = acid concentration

    A(0) = 1, A(x) = A(x-1)*.99 = .99^x
    B(0) = 0, B(x) = B(x-1)*.99 + .01

    A converges towards 0
    B converges towards 1

    Take a guess.
    Thank you! It's all clear to me now
    No matter how fool-proof your program is, there will always be a better fool.

    Was a post helpful to you? Rate it!

  10. #10
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901
    If the water and acid mix, then the last drop will be a mixture
    if not, then the last drop will be acid.


    i think

  11. #11
    Fanatic Member alkatran's Avatar
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    860
    Originally posted by arsmakman
    Thank you! It's all clear to me now
    Actually it isn't.

    It won't converge exactly the way I described because you have a limited amount of acid. Let's start with 100 'drops' in each

    Water: 100 * .99^100 = 36.6
    translates: start with 100 divisions and you end with 36.6 left

    200 * .99^200 = 26.7
    translates: start with 200 divisions and you end with 26.7 left

    500 * .99^500 = 3.2

    1000 000 * .99^(100 000) = 3.3*10^(-437) VERY low


    So it still converges I guess.
    Don't pay attention to this signature, it's contradictory.

  12. #12

    Thread Starter
    Fanatic Member arsmakman's Avatar
    Join Date
    Dec 2001
    Location
    Leiden, Netherlands.
    Posts
    719
    Originally posted by dglienna
    If the water and acid mix, then the last drop will be a mixture
    if not, then the last drop will be acid.


    i think
    I think I can explain it in a totally different, yet understandable way:

    If you'd take both A and B and mix them together instantly there would be 50/50 acid/water.

    But that's not what you do, you start by getting rid of plain water, so the total amount of acid will be higher that the total amount of water in A and B. And as the progress continues slowly the extract (C) will contain more and more acid from B.

    So, because you started by extracting plain water and the concentration of B slowly increases, in the end the mixture will be just acid. (Although 100% acid will only be neared, never reached)

    To put in other words: the percentage of A in C will start at 100 and drop to 0, similairily the percentage of B in C will start at 0 and rise to 100.
    No matter how fool-proof your program is, there will always be a better fool.

    Was a post helpful to you? Rate it!

  13. #13
    Fanatic Member alkatran's Avatar
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    860
    or more simply: .5 * .99 <> .5

    0*.99 = 0
    1*.99+.01 = 1

    All fits
    Don't pay attention to this signature, it's contradictory.

  14. #14
    Fanatic Member alkatran's Avatar
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    860
    Consider a 3 part one:

    You start with 100% water. You dump to 66% and add 33% acid

    Dump 33%, so 66*.66 = 43.56%

    Oh wait, that's below 50, and we aren't even done.
    Don't pay attention to this signature, it's contradictory.

  15. #15
    Fanatic Member demotivater's Avatar
    Join Date
    Jun 2002
    Location
    is everything
    Posts
    627
    What are you? Some kind of math magician?
    Here's to us!
    Who's like us?
    Darned few, and they're all dead!

  16. #16

    Thread Starter
    Fanatic Member arsmakman's Avatar
    Join Date
    Dec 2001
    Location
    Leiden, Netherlands.
    Posts
    719
    Originally posted by alkatran
    Actually it isn't ... So it still converges I guess.
    Indeed. And in reality this works on molecular scale, which means that there are practically indefinite 'drops' and the concentration of water in the end will be practically zero.

    Thanks!
    No matter how fool-proof your program is, there will always be a better fool.

    Was a post helpful to you? Rate it!

  17. #17
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901
    so it *IS* a mixture, just highly concentrated. good guess.

  18. #18

    Thread Starter
    Fanatic Member arsmakman's Avatar
    Join Date
    Dec 2001
    Location
    Leiden, Netherlands.
    Posts
    719
    Thanks all (especially alkatran), but I'm gonna catch some z's now.

    It's a quarter to one here and tomorrow I have a six hours of college starting at 8.30. *groan*
    No matter how fool-proof your program is, there will always be a better fool.

    Was a post helpful to you? Rate it!

  19. #19
    Fanatic Member alkatran's Avatar
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    860
    Originally posted by demotivater
    What are you? Some kind of math magician?
    Irony, we meet again! (math + magician, aha)

    This is pre-cal stuff. If not grade 12 math.
    Don't pay attention to this signature, it's contradictory.

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