Slashdot Mirror


Your Favorite Math/Logic Riddles?

shma asks: "Whether you're involved in the Sciences, Mathematics, or Engineering, you undoubtedly enjoy finding simple solutions to seemingly difficult problems. I'm sure you all have a favorite mind-bender, and who better to share it with than the Slashdot community? Post your own problems and try to solve others. Just one request: If you have figured out the solution, link to it in a post, rather than write it out where anyone can see it." What brain benders tickle your fancy? "Here's a sample to consider: You're in a dark room with 50 quarters, 18 of which are heads up. You are allowed to move around the coins or flip some or all of them, if you wish. Problem is, it's too dark to tell what you're moving or flipping (no, you can't figure it out by touch either). Your job is to split the coins into two groups, each of which has the same number of heads up coins. How do you accomplish this?"

1,965 comments

  1. Soduku by beacher · · Score: 3, Interesting

    They drive me nuts. Array and vecor logic. Fun

    -B

    1. Re:Soduku by Adult+film+producer · · Score: 1

      http://www.sudokufun.com/

      My favourite site for sodoku's. Nice thing about sodoku's is they're all logic, no math.. easy for someone like me to figure out.

    2. Re:Soduku by LnxAddct · · Score: 2, Interesting

      This is a fun little python script I wrote to solve sudoku puzzles. I'm pretty sure its bug free, and there may be more pythonic ways of doing some of the things I did in it, but whatever:) It works. (iff the puzzle has one solution, which I believe is a requirement for true sudoku puzzles, but I've encountered a few with several solutions). Just run the the script in the same directory as a file called "sudoku.txt", or modify the script to accept an arg, its easy enough. the format of the txt file is 9 characters per line, 9 lines. A space is where there is no known digit, and the other characters are the known digits.
      Regards,
      Steve

      To get past the lameness filter I had to encode the file. To decode it, copy the text into a file like "sudoku.endcoded", remove the spaces that slashdot inserts at character 51, run "uudecode sudoku.encoded", and then run "uncompress main.py". Ugh thats a lot of work for a damn file, but hey it works :)

      begin 664 main.py.Z
      M'YV0(T*\J#-'S@LQ:=R\@).'#IHW;A282<.F#(@>(-[`*>,&A 8@Y=<B\6?/&
      M!1T\=$2D4-`F#!TY:?!<!+&EBP(Y;^[,K*E`P0@04LJ$(0,B( 0B0(M?4*>K&
      MS!LY+>FD@0@BC!NB<\K089I&:A@V(*+"Q"/Q*0@V"2T:G5C1A 1RA9-"Z*3,'
      M10H="A(XE0-B#)HP<L*,H5.&KU&Y9?`F2)#&3-^_@0<7OHA1! `@1BA?CO.,B
      M#)R-5U%LB<%"!HL9+&BPJ,'"!HL;+'"PR-%EY>(R:!W[!2R8L &$WEV/(F$&C
      MAHT;.')@SJLY9^?/',F(3D@'Q>[(OE/4SBLVYG/0TC?;WKS3Y D\F6N<<?</&
      MCD6'%KN3W0M"#!NK:YB"P!/8S9DR*.1P%P@C4(%&&NJI0=!67 17F$ET@Y`""
      M5&W0Q4)]][F1'X(@U.$&0660D1=]Y!G%GU7_!7@7<_2-P5X=; 0!G8G\I"I@9
      M8XY5U)%\6VS6Q18NL@&C&[51!D(,(-R8P!AUR/&6&W1\8<=7= 5B$$8\^`OEB
      MC#_"8--BB]&7AGXG^@>@C<R!^=,0%0$V(1H6;9;F8HT5!4((& )%G%5%,.LE1
      ME%,*J19P/*;Q8Y!#=I'DG(L5>NB61+I51AMON&==DT\"2F49M H&9P)IM\@5?
      M7Y`R6N>8>)(J9(Q57=47IG]*N:E^6.;THZ&+>MJH2V/U:.L6A DI*J:5]9BJK
      MH)TN!JI0HL)YUAMC?(4AM/FA,&J9_ZD'F$5AG-45'16%]091+ Z4Q1GYTO`'"
      M?UN-:A^UR>IEEHMDT@A@"]9!6L(,*5R(+Z(Q[IO""OPJ*2]?. -6+XKTH;":P
      MOPWG)##!*^J*(P@@1'PG1C!DQ!>]J<*00JM\P@KEL572RFM,O NJT`@@X/;HJ
      M<"^[J*C!NY:+1\L@O)RPS$/V3&H7PE8*8+&Q!EKE2B3FI++.B K4(J7Z;94;?
      FAVV(,9E1`+MQ(QPP00D"UEK+P0)S8%-W&1<I@7!V`FF++8((" @``
      `
      end

    3. Re:Soduku by Anonymous Coward · · Score: 0

      What a coincidence... I just finished a game of sudoku and decided to come read Slashdot!

      Anyways, Sudoku is an awesome game. For those of you running windows, a free/OSS windows sudoku game can be found at sourceforge.

      Have fun ;)

    4. Re:Soduku by Mugros · · Score: 1

      Soduku? I friend them extremely boring. You only have to check where numbers are missing in a mini matrix for each field, thats it.
      Just recently Sodukus had been added to http://www.conceptistech.com/
      You can get free weekly puzzles there.
      My favorites are Pic-a-Pix and Link-a-Pix
      They are not very hard mathematic puzzles but need some basic logic. But they are great time killers.

    5. Re:Soduku by Anonymous Coward · · Score: 0

      http://www.timesonline.co.uk/section/0,,23509,00.h tml has a nice interface and a range of difficulties.

    6. Re:Soduku by Transcendent · · Score: 2, Insightful

      They're all right, but after you figure out how to actually solve it logically (very simple), there not to much fun anymore... just tedious.

    7. Re:Soduku by nollaigoc · · Score: 1

      You can get a mathematica package to do Soduku http://library.wolfram.com/infocenter/MathSource/5 690/

    8. Re:Soduku by Anonymous Coward · · Score: 0

      those puzzles are great!

    9. Re:Soduku by Anonymous Coward · · Score: 0

      Sudoku is quite hard without making lots of notes about possible numbers in each cell. One site that does that for you - also gives hints if you are stuck - is http://www.sudokuhints.com/ and a page full of good sudoku links is http://www.sudokulinks.com/

    10. Re:Soduku by oniony · · Score: 1

      Or you could just save the text as a .uu (or .uue) and double-click it to open it up in WinZip (which I assume most everyone has installed (and registered)).

      --

      Powered by onion juice.

    11. Re:Soduku by LordoftheWoods · · Score: 2, Insightful

      Why do people get kicks out of solving NP-complete problems? It does take some problem solving skill but its still mostly just tedious trial & error.

    12. Re:Soduku by Anonymous Coward · · Score: 0

      Try PrintSudoku.com sudokus in pdf, also playable online and magic sudokus (that are difficult than the standard ones.

    13. Re:Soduku by tom8787 · · Score: 1

      By the way, did you all know that sometimes there's more than one solution? Especially when the problem is wrong. Look at http://www.tspforum.com/sudoku.htm to see what I mean. In this case, the sixes and the fours are interchangeable. If the problem doesn't provide at least one of those four numbers, you're able to provide two solutions. It can even be a lot more complicated than that ...

    14. Re:Soduku by Grax · · Score: 1

      It took me less time to write my sudoku-solver program than to complete one of those things manually.

    15. Re:Soduku by fbjon · · Score: 1
      "Sudoku". It's "sudoku" (with long 'u' and short 'o' and second 'u')

      Also, try solving some of the super-difficult ones.

      --
      True confidence comes not from realising you are as good as your peers, but that your peers are as bad as you are.
    16. Re:Soduku by Anonymous Coward · · Score: 0

      You divide the quarters into two groups of 25, then stand them all on their edge. Both groups have an equal number of "heads-up" quarters: zero.

    17. Re:Soduku by drsquare · · Score: 1

      How many people actually know what NP-complete is? I studied that at university and still don't know what it means. I read about it on the Internet and still don't get it. Can anyone actually give a plain-English answer?

    18. Re:Soduku by LordoftheWoods · · Score: 1

      If you didn't get it at Uni, and other sources' (eg, Wikipedia) definitions don't make sense to you either, then I certainly will not be able to explain it to you. In the case of my post, I just used it to demonstrate that sudoku is not solvable completely through logic; trial and error is necessary.

    19. Re:Soduku by VTBassMatt · · Score: 1

      As I understand it, being in P means that if a problem is run on a regular old Turing machine, that machine will halt in polynomial time (that is, if given an input of size n, it will halt in O(n^x) time where x is some number).

      The next step up, being in NP, means that a non-deterministic Turing machine will halt in polynomial time for that problem. A non-deterministic Turing machine is one that creates copies of itself (instantaneously) for each possible configuration of input and then halts when any of its copies halts.

      Now, to determine if a problem is NP-complete, it has to be 1) NP and 2) NP-hard. To figure out if the problem in NP hard, you need a list of all the other problems you've shown to be NP. For all of those problems, find a way to transform your problem into them using only P time. If you can do that, you're NP-hard. Satisfy condition 1 above, and you're NP-complete.

      I'm sure that there are two problems with my post: 1) everything is likely a gross oversimplification, and 2) it's been almost a year since I finished my undergraduate algorithm analysis course. A year ago, I had a pretty good grasp of the concepts involved, but now it's all very fuzzy and difficult to reconstruct. Please, if someone else knows what s/he's talking about, post here and destroy my fragile explanations.

    20. Re:Soduku by Halcyonandon · · Score: 1

      I have done hundreds of Sudoku puzzles, and never ever had to make a guess. If you are using the trial and error method, then you are simply missing clues that the puzzle provides.

      --
      ^o^
    21. Re:Soduku by LordoftheWoods · · Score: 1

      I have never even tried one, because I dismissed them as a waste of valuable time. If they are designed so that no T&E is needed then great. I still think they're a waste of time, but at least you don't have to guess.

  2. Riddle by connah0047 · · Score: 1

    You are making cupcakes for a party at which there will be 40 people. Half of them will be teenagers, a quarter of them will be adults, and the rest will be babies. Half of the babies don't like cupcakes, and one fifth of the babies left are too young to eat cupcakes. Half of the adults and three-quarters of the teenagers like chocolate cupcakes, and the rest of the people like cupcakes with sprinkles on them.

    How many sprinkle cupcakes should you make?

    1. Re:Riddle by Tuxedo+Jack · · Score: 3, Funny

      None.

      You haul your ass to a bakery, shell out twenty bucks, and get a box or two full of cupcakes, then you go Cid Highwind on everyone.

      "Siddown and eat your goddanm cupcakes!"

      --

      Striking fear in the authors of godawful fanfiction, I am here, appearing in darkness, Tuxedo Jack!
    2. Re:Riddle by ZeldorBlat · · Score: 1

      >How many sprinkle cupcakes should you make?

      14

    3. Re:Riddle by st0rmshad0w · · Score: 2, Insightful

      None, just keep the sprinkles on the side as an option.

    4. Re:Riddle by iamdrscience · · Score: 2, Insightful

      At least 20, but as many as 34 cupcakes, right?

      40 people = 20 teenagers (1/2) 10 adults (1/4) and 10 babies (remaining 1/4)

      Half the babies (5 people) don't like cupcakes and one fifth of the babies left (1 person, 1/5 of the five babies left after the 5 that don't like cupcakes). This leaves 34 people who are still wanting cupcakes.

      Chocolate cupcakes and sprinkled cupcakes are not exclusive of each other because you can have chocolate cupcakes with sprinkles, so you can disregard the whole thing about who likes cupcakes with sprinkles and who likes chocolate cupcakes as long as you make all the cupcakes chocolate and with sprinkles.

    5. Re:Riddle by Alien54 · · Score: 1
      Sorry to say, you made a mistake in your mental math. The answer is not 14

      You are making cupcakes for a party at which there will be 40 people. Half of them will be teenagers, a quarter of them will be adults, and the rest will be babies. Half of the babies don't like cupcakes, and one fifth of the babies left are too young to eat cupcakes. Half of the adults and three-quarters of the teenagers like chocolate cupcakes, and the rest of the people like cupcakes with sprinkles on them.

      This gives us

      20 Teeagers

      10 Adults

      10 Babies

      5 babies do not like cupcakes, 2 are too young, so 3 babies eat cupcakes

      5 adults and 15 teenagers do chocolate cupcakes

      This leaves us with 5 adults, 5 teens, and 3 babies to eat cupcakes with sprinkles.

      Trivia note: Fibonacci, who is known for the fibonacci number series, is the person who introduced and first promoted the use of the arabic number system to Medieval Europe

      --
      "It is a greater offense to steal men's labor, than their clothes"
    6. Re:Riddle by iamdrscience · · Score: 1
      I'm sorry, as few as 10 and as many as 34.
    7. Re:Riddle by heinousjay · · Score: 1

      here's the part you missed: one fifth of the babies left

      Although this seems too easy to me - it's a grade school level math problem.

      --
      Slashdot - where whining about luck is the new way to make the world you want.
    8. Re:Riddle by iamdrscience · · Score: 1
      5 babies do not like cupcakes, 2 are too young, so 3 babies eat cupcakes
      The question says that five babies do not like cupcakes and then that one fifth of the babies left are too young. There are only 5 babies left after those that do not like cupcakes, so that makes only one baby too young to eat a cupcake, so 4 babies eat cupcakes.
      5 adults and 15 teenagers do chocolate cupcakes

      This leaves us with 5 adults, 5 teens, and 3 babies to eat cupcakes with sprinkles.
      Chocolate cupcakes and cupcakes with sprinkles are not mutually exclusive, you could make all of the cupcakes chocolate and with sprinkles and nobody would have a problem.
    9. Re:Riddle by tambo · · Score: 1
      You made one slight error: "Half of the babies don't like cupcakes, and one fifth of the babies left are too young to eat cupcakes." That only leaves one baby who's too young to eat cupcakes, so you need to add a baby to the "with sprinkles" group.

      - David Stein

      --
      Computer over. Virus = very yes.
    10. Re:Riddle by hashinclude · · Score: 1
      Sorry to say, you made a mistake in your math too. The answer is 14.
      You are making cupcakes for a party at which there will be 40 people. Half of them will be teenagers, a quarter of them will be adults, and the rest will be babies. Half of the babies don't like cupcakes, and one fifth of the babies left are too young to eat cupcakes. Half of the adults and three-quarters of the teenagers like chocolate cupcakes, and the rest of the people like cupcakes with sprinkles on them.
      This gives us
      • 20 Teeagers
      • 10 Adults
      • 10 Babies
      • 5 babies do not like cupcakes, 2 are too young, so 3 babies eat cupcakes -- WRONG: 5 babies don't like cupcakes, and 1/5 of the remaining (i.e. 1/5 of 5 babies, not 10) are too young to eat cupcakes (see above)
      • 5 adults and 15 teenagers do chocolate cupcakes
      This leaves us with 5 adults, 5 teens, and 4 babies to eat cupcakes with sprinkles, which totals 14.

      (of course, as another poster below mentioned -- Chocolate and Sprinkle cupcakes are not exclusive -- so at least 14 but as many as 34 cupcakes, assuming one per person)

      --
      US is now divided as the "Red" and "blue" states. Red States = communist countries. Coincidence? I think not
    11. Re:Riddle by dgatwood · · Score: 1
      This is a problem where English is an inexact language. If there are ten people and you are told that "five like cookies", while this doesn't explicitly state that the remaining five do not, there is a strongly implied "only" in that sentence unless the problem explicitly says that there are multiple shades of liking/disliking.

      One might, however, assume that when you say "the rest like chocoloate", you are not necessarily saying that the people who like sprinkles don't like chocolate, as you aren't referring to that group in any way.

      Thus, while for the question of the number of sprinkled cupcakes, the answer should be 14, if one were to ask how many chocolate cupcakes, the answer would be at least 20 and no more than 34.

      --

      Check out my sci-fi/humor trilogy at PatriotsBooks.

    12. Re:Riddle by HughsOnFirst · · Score: 1

      I say the answer is probably 15

      "5 babies do not like cupcakes, 2 are too young, so 3 babies eat cupcakes"

      But you are counting the 2 babies who are too young as part of the group of babies who like cupcakes when obviously they are a subgroup of those who do not like cupcakes ( how can they like them if they have never had them ? ) so there should be 5 babies who like cupcakes

      Why probably ? Well if there are any 18 and 19 year olds who would be both teenagers and adults that would change things...

    13. Re:Riddle by akeyes · · Score: 2, Funny

      Hmm...if the 'teenager' is 18 or 19, does that also count as an adult?

    14. Re:Riddle by Rei · · Score: 0

      A basic algebra question? Come on.

      If it's going to be a "simple" problem, at least make it deceptively simple. For example, the "Monty Hall" problem (answer)

      You're a guest on the Monty Hall show. You're presented with three nondistinct doors. Monty informs you that behind one of these doors is a new car; behind the other two are gag prizes (goats). He tells you to pick a door; you pick one. Monty then tells you he's going to reveal to you a goat from behind one of the other doors, and does so, leaving two doors left. He gives you the option to change doors or stick with your original pick.

      Do you switch? Does it matter? What are the odds of you getting the car?

      I've seen a number of people who should know better mess up on this one. ;)

      --
      Santa Ana Winds: Like the Dustbowl, but with awards shows.
    15. Re:Riddle by korzy1bj · · Score: 1

      14 40 people 20 teens 3/4=15 20-15=5 ten adults 1/2=5 ten babys 1/2=5 4\5=4 5+5+4=14

    16. Re:Riddle by Grax · · Score: 1

      Let people put their own sprinkles on their cupcakes. This allows for people to change their minds when they see other people with sprinkles and they start feeling jealous

    17. Re:Riddle by theapodan · · Score: 1

      A better way to visualize the problem is to imagine there being 100 doors. In this case, knowing what to pass up(goats) and what not to (cars) becomes so difficult given the probabilities that you will almost certainly fail.

      In the case of this problem, unless the door you would have chosen was the displayed goat, there is no change in the probability that the door you have chosen isn't a goat. You still have a 1/3 chance, even though you know what one of the outcomes would be. So switching doors has no impact.

    18. Re:Riddle by msuarezalvarez · · Score: 1

      Actually, that is the wrong answer: switching doors will double your chances of winning.

      This is very well explained in the Monty Hall problem page in Wikipedia.

    19. Re:Riddle by golgotha007 · · Score: 1

      are you kidding me? the second Monty reveals one of the doors is the moment that door is completely out of the equation.

      Once there are two doors left, your chance now becomes 50%.

    20. Re:Riddle by Tomfrh · · Score: 1

      No, not 50%.

    21. Re:Riddle by Wavicle · · Score: 1

      When you picked your first door you had a 1/3 chance of picking the winning door, and a 2/3 chance of picking a losing door. When Monty revealed a booby-prize behind one of the other doors, you still had a 1/3 chance of picking the winning door and a 2/3 chance of picking a losing door. It's just that now you know if you picked the losing door, you know which of the other doors is the winner.

      I guess another way of looking at it is: you had a probability of success of 0.33 when you first picked a door. How is knowing information about another door going to suddenly make your door MORE likely to be a success?

      --
      Education is a better safeguard of liberty than a standing army.
      Edward Everett (1794 - 1865)
    22. Re:Riddle by Wavicle · · Score: 2, Interesting

      Since that's basically a probability question, I thought I'd follow up with my own favorite probability mind bender:

      Your married-with-two-kids co-worker invites you over to dinner. When you arrive a son of the coworker answers the door. What is the probability that the other child is a girl?

      Followup:

      The co-workers oldest child, a son, answers the door. What is the probability that the other child is a girl?

      Most who have gone through a formal stats class have seen this one before, but it is always fun to try and wrap your head around it the first time.

      --
      Education is a better safeguard of liberty than a standing army.
      Edward Everett (1794 - 1865)
    23. Re:Riddle by Xaria · · Score: 1

      Easy - the fact that the first child is a son is irrelevant.

    24. Re:Riddle by Wavicle · · Score: 1

      Unfortunately no. The two questions have different answers.

      --
      Education is a better safeguard of liberty than a standing army.
      Edward Everett (1794 - 1865)
    25. Re:Riddle by Spazmogazm · · Score: 2, Informative

      In the first case where you don't know if the boy is the first child or not there are four possibilites BB, BG, GB and GG. We can eliminate GG since that's now impossible. From the remaining 3 cases only BB would allow the second child to be a boy so the chance
      that the other child is a girl is 2/3.

      In the second case where we know the child is the oldest boy there are only 2 possibilites BB and BG. We can't eliminate any possibilites so the chance the second child is a girl is 1/2.

    26. Re:Riddle by psmears · · Score: 1

      How is knowing information about another door going to suddenly make your door MORE likely to be a success?

      Well, if he opened both the other doors to reveal goats, your door's probability would go up to 100%!

      But of course you're right in this case. For anyone who doesn't believe it, it may help to think of it like this: when you first pick a door, you have a 1-in-3 chance of being right, and a 2-in-3 chance of being wrong. If someone offered you the opportunity to swap your door, guaranteeing that:

      • If your current door is winning, you'll replace it with a losing door
      • If your current door is a loser, you'll replace it with a winning door
      would you take the opportunity? I hope you would, since you'd end up with a 2-in-3 chance of being right, and a 1-in-3 chance of being wrong.

      The procedure of revealing a losing door achieves this—if you had a winning door, and switch, you'll get a goat, but if you had a losing door, and a goat is revealed behind another door, the remaining door must hide the prize. So, bizarre though it may seem, it's in your advantage to switch...

    27. Re:Riddle by psmears · · Score: 2, Funny

      When you arrive a son of the coworker answers the door. What is the probability that the other child is a girl?

      <answer type="weasel">Zero—the co-worker must have two sons, otherwise the question would say "the son" rather than "a son" ;-)

    28. Re:Riddle by m50d · · Score: 1

      It's so unfair!

      --
      I am trolling
    29. Re:Riddle by Anonymous Coward · · Score: 0

      In the first case where you don't know if the boy is the first child or not there are four possibilites BB, BG, GB and GG. We can eliminate GG since that's now impossible. From the remaining 3 cases only BB would allow the second child to be a boy so the chance that the other child is a girl is 2/3.

      This assumes that the boy will always be the one to answer the door in the BG or GB case. If a girl were just as likely as a boy to answer the door, the probability would be 1/2.

    30. Re:Riddle by BobTheAtheist · · Score: 1

      At first I thought that no it would make no difference until I realised that Monty has to reveal a goat... If Monty also had no idea and randomly chose another door then I believe it would make no difference.

      --
      -- You're too stupid to be an atheist.
    31. Re:Riddle by Anonymous Coward · · Score: 0

      Good luck factoring in cultural preferences and true genetic probabilities. (That is, factor in things like: In some cultures, parents have a preference for boys, and will try to have kids until they have a boy (max 8 girls?), or in some cultures, parents have a preference for having a child of each gender. Or, in some cultures, girls are more likely to answer the door then boys. Or, there is a slight probability difference between having males and females, as the X Sprem vs the Y sperm have different success rates).

    32. Re:Riddle by Impy+the+Impiuos+Imp · · Score: 1
      You are making cupcakes for a party at which there will be 40 people. Half of them will be teenagers, a quarter of them will be adults, and the rest will be babies.


      = 20 teens, 10 adults, and 10 babies

      Half of the babies don't like cupcakes


      So 5 don't like cupcakes. Hence you only need 35.

      I.e. 2 are too young to eat cupcakes. We will assume for now this does not overlap those who don't like cupcakes (how could you know they don't like them if they can't eat them?)

      So 7 babies will not be consuming cupcakes. Hence we only need 33.

      Half of the adults and three-quarters of the teenagers like chocolate cupcakes,


      I.e. 5 adults and 15 teens like chocolate, leaving 5 adults with sprinkles and 5 teens with sprinkles (again, assuming no chocolates with sprinkles.) Hence 20 want chocolate, 10 want sprinkles, and 3 babies want a cupcake, but with no preference specified.

      So to ensure everyone has what they want, we make 23 with chocolate, and 13 with sprinkles, because we have no way of knowing what the 3 cupcake-eating babies will prefer. Or 20 chocolate and 13 sprinkles and you just make sure the babies get the sprinkles ones.

      And in the reality check, people will not get what they prefer anyway because some people will pick up the wrong ones. Or you made 45 cupcakes anyway because that's 3 full muffin pans full and cake mixes are sized to a loaf of bread or one muffin pan, and who the hell doesn't wanna have some cupcakes left over after all the yahoos go home?

      --
      (-1: Post disagrees with my already-settled worldview) is not a valid mod option.
    33. Re:Riddle by Impy+the+Impiuos+Imp · · Score: 1

      > and one fifth of the babies left are too young to eat cupcakes

      I.e. 1/5 of 5 = 1. Well done! I missed that. 34 cupcakes needed.

      --
      (-1: Post disagrees with my already-settled worldview) is not a valid mod option.
    34. Re:Riddle by WonderSnatch · · Score: 1

      You're right, and if you don't beleive him, do a Monte Carlo simulation (or just work out all of the possibilites, there's only 9 combiniations of winning doors and iniial guesses). You can then see that 2/3 of the time switching will make you a winner. It's counter intuitive, but it's true.. The subtlty comes in because he opened the door AFTER you made your initial choice, therefore the original probabilities are not affeted.

      More mathematicall: A is the event that you've chosen the correct door. B is the even where Monty Hall opens the door. P(A)=1/3. P(A|B)=1/2. Had Monty opened the door BEFORE you choose your door, then P(A|B) would be correct, but since it's after, P(A) is the correct one.

      Brett

    35. Re:Riddle by Impy+the+Impiuos+Imp · · Score: 1

      > if the 'teenager' is 18 or 19, does that also count as an adult?

      And if the adults or teenagers throw a tantrum because only the wrong cupcake type is left when they get to choose, do they count as babies?

      --
      (-1: Post disagrees with my already-settled worldview) is not a valid mod option.
    36. Re:Riddle by Impy+the+Impiuos+Imp · · Score: 1

      The parent poster said it best.

      Just imagine there are 100 doors. You pick one. Monte closes 98 of the remaining 99. He can do this because he knows which door the thing is behind. Do you switch? Of course you do.

      Now imagine only 50 doors. Or 20. Or 3. Same principle.

      --
      (-1: Post disagrees with my already-settled worldview) is not a valid mod option.
    37. Re:Riddle by matfud · · Score: 1

      The question does not define any problem. It does not define how many cupckes each person needs to have. You could make two hundred cupcakes with sprinkles on and still satify the problem as written.

    38. Re:Riddle by Impy+the+Impiuos+Imp · · Score: 1

      Nah, the best way to think about it is with 100 doors instead of 3.

      You pick one. Obviously you have only a tiny chance in Hell. Almost certainly it is behind one of the other doors. He opens 98 of the remaining 99. Do you switch? Of course you do. Note: They do have to add in the little fact that he knows which doors to open. Since he can open at least 98 without showing the prize, the one remaining closed door inherits that full 99% probability. So you should switch. The principle is the same with 3 doors as it is with 100.

      But if he doesn't know which doors it's behind, then you do have a 50% chance. (In 98 parallel worlds, he goofed and opened one with the prize. In the 99th and 100th, he didn't. Those represent the worlds with the prize behind the 99th door, and the prize behind the 100th door, which you chose.)

      --
      (-1: Post disagrees with my already-settled worldview) is not a valid mod option.
    39. Re:Riddle by Impy+the+Impiuos+Imp · · Score: 1

      Yes, but it also sounds like the gambler's fallacy. However, the reason it is not is that in all pairs with at least one boy, fully 2/3 are boy/girl.

      --
      (-1: Post disagrees with my already-settled worldview) is not a valid mod option.
    40. Re:Riddle by deathazre · · Score: 1

      Your logic is flawed -- when one goat is revealed, you now have a 1 in 2 chance of either event. THEN you switch. Still a 1 in 2 chance in either case then, so it becomes a guessing game.

      Or, look at it this way. you could go:
      goat1->goat2
      goat2->goat1
      car->goat2
      car->goat1
      goat1->car
      goat2->car
      when you switch. When monty reveals one of the goats, 4 of those possibilities disappear, and you're left with 1 goat->car and 1 car->goat.

      --
      Karma: Negative (Mostly affected by dorm trolling)
    41. Re:Riddle by Snootch · · Score: 1
      In the first case where you don't know if the boy is the first child or not there are four possibilites BB, BG, GB and GG. We can eliminate GG since that's now impossible. From the remaining 3 cases only BB would allow the second child to be a boy so the chance that the other child is a girl is 2/3.

      You make the assumption that each of these possibilities [BB, BG, GB] is equally likely, but it's not - if a boy answers the door, it's more likely to be a BB family than BG or GB. From school:
      P(A given B) = P(A and B) / P(B)
      So:
      P("other child is boy" given "randomly selected child is boy")
      = P("both children are boys") / P("randomly selected child is a boy")
      P("both children are boys")
      is, obviously, 0.25. However,
      P("randomly selected child is a boy")
      is 0.5 (remember, we knew nothing about the family until a child was randomly selected to greet us at the door), so the probability of the second child being male is 0.25/0.5, or one half - exactly as common sense says it would be.
    42. Re:Riddle by Anonymous Coward · · Score: 0

      I know the "answer" (switch, 2/3 of getting the car) but disagree with it.
      The "answer" assumes there are only three possibilities (where the car is), but there are actually FOUR!

      1. You picked the first wrong door. Monty picks the other, so you must switch!
      2. You picked the second wrong door. Monty picks the other, so you must switch!
      3. You picked the winning door. Monty picks the first wrong door, you must not switch!
      4. You picked the winning door. Monty picks the second wrong door, you must not switch!

      So it's 50/50

    43. Re:Riddle by ShyGuy91284 · · Score: 1

      Oh, and coffee with lotsa honey, suger, and oh yeah, don't forget the lard!!

      --
      In undeveloped countries, the consumer controls the market. In capitalist America, the market controls you.
    44. Re:Riddle by psmears · · Score: 1

      My logic is not flawed :-)

      Ignore (for the moment!) the fact that the host will open a door for you. Would you take someone up on the offer of exchanging a win for a lose and vice versa (thus changing your win probability from 1/3 to 2/3)? Answer yes or no—and if no, please give reasons...

      If you agree with that, do you agree that the process of Monty (who knows where the prize is) revealing a goat, then you switching, is guaranteed to switch you from a goat to a car, and vice versa? (I hope you agree since you've enumerated the possibilities and ruled out the ones where this doesn't happen!).

      If you agree with those two facts, you're forced to accept that switching gives you a 2/3 chance of winning the car. It seems like, after one goat is revealed, you've got a 1/2 chance, but in fact the chances stay at 1/3 (current door) and 2/3 (other door). The reason it doesn't go 50–50 is that Monty doesn't pick a door to open at random—he deliberately picks one with a goat.

      As other posters have pointed out, if there are a hundred doors to start with (99 goats + 1 car), you pick one, and then Monty opens all remaining doors but one to reveal goats—would you stay with your current selection, or go for the one door that Monty has left shut? Remember, Monty knows where the prize is. 99% of the time you'll be wrong, so him opening 98 other doors will show you where the prize is. 99% of the time if you go for that door you'll get the car—because Monty knows the answer, the 99% probability of the car being in one of the doors you haven't chosen "condenses" into the door that he didn't open. (The 1% of the time when you picked the car first time—well, that's just too bad...)

      It's less obvious, but it's just the same with three doors!

    45. Re:Riddle by Anonymous Coward · · Score: 0

      It's true, there are four possibilities, but they're not all equally likely - the first two happen with chance 1/3, because once you've picked that door, Monty's got no choice. On the other hand, each of the last two depends on you picking the last door (1/3) and /then/ Monty making a presumably random choice (1/2 either way), so the last two possibilities you list are each 1/6 likely to happen.

        So you're right - there are four possibilities, two for switching, two for not. But the "switch" ones each happen with chance 1/3, and the others each with chance 1/6, so the argument that switching is right with probability 2/3 is correct.

      (If Monty's choice in the case you picked the winning door isn't random, then the last two won't be 1/6 each, but they'll still add up to 1/3, so this still holds.)

    46. Re:Riddle by Anonymous Coward · · Score: 0

      The reason the logic behind this is flawed is simple: you never have a 1/3 chance, it's always a 1/2 chance. There are three doors, but a bad one will always be eliminated. Thus, the correct way to analyze the problem is to realize that one of the bad doors never existed, leaving one good door and one bad door. Switching does not literally increase your chances of picking the right one, because no additional information about which door is good has been revealed. You're (for some strange reason) assuming that when he reveals the door, it increases the chance that the door you did not pick is the winner. However, at all times there is an equal chance that the door you picked and the remaining door you did not pick is the good door.

    47. Re:Riddle by Anonymous Coward · · Score: 0

      You don't even understand the problem...

    48. Re:Riddle by psmears · · Score: 1

      You're (for some strange reason) assuming that when he reveals the door, it increases the chance that the door you did not pick is the winner.

      Not at all. I'm assuming that the probability that I pick the right door out of three (before any doors are opened or anything) is 1/3 (no disgreement here, right?). Whether one door's going to get eliminated later or not, my chances of being right so far are 1/3.

      If, instead of opening a door, the host were to offer "I'll open your door, but then give you a car if your door contains a goat, but give you a goat if it contains a car", would you take it? I would—in 2/3 cases I'd get the car, and in 1/3 I'd get the goat, which sounds better to me. (I explained this to my gf and she said she'd rather have a goat—go figure!)

      The procedure with Monty opening a door with a goat, then letting you switch, always has exactly the same outcome as the above offer—so logically the probability of ending up with a car is the same.

      Have you thought through the example with 100 doors? Where you pick one, then Monty opens all the remaining doors except one, and gives you the option to switch. Do you still think it's a 50-50 chance that the one door he's left shut (no. 73) contains the car?

    49. Re:Riddle by Bugmaster · · Score: 1

      > "99 dead duelists of Dios on the wall; 99 dead duelists of Dios. Take one's ring, pass it around...."

      This is totally offtopic, but: best. sig. evar.

      --
      >|<*:=
    50. Re:Riddle by chriso11 · · Score: 1

      I had a coworker who didn't get it either, so I wrote a simple program that let him select the number of doors, then pick one, and then give him the choice to swap. After he played with it for 10 minutes, he was a beliver that it is better to swap.

      --
      No, I don't trust in god. He'll have to pay up front, like everybody else.
    51. Re:Riddle by sapone · · Score: 1

      In the first case where you don't know if the boy is the first child or not there are four possibilites BB, BG, GB and GG. We can eliminate GG since that's now impossible. From the remaining 3 cases only BB would allow the second child to be a boy so the chance
      that the other child is a girl is 2/3.


      Well, this is obviously wrong. When you see a boy open the door BB, BG and GB are not equally probable anymore; BB becomes more probable than BG or GB.

      Let's do the math:
      The probability of a boy opening under the condition that there are two boys is 100%:
      P(B | BB) = 1
      The other cases:
      P(B | BG) = P(B | GB) = .5
      P(B | GG) = 0

      Now, we want the inverse probability
      P(BB | B) =
      = P(BB, B) / P(B)
      = P(B | BB) * P(BB) / P(B)
      = 1 * .25 / P(B)

      P(B) is the sum over all 4 cases P(B | xx) * P(xx) where xx=BB,BG,GB,GG
      P(B) = (1 + .5 + .5 + 0) * .25 = .5

      => P(BB | B) = .5

      and P(BG | B)
      = P(BG,B) / P(B)
      = P(B | BG) * P(BG) / P(B)
      = .5 * .25 / .5 = .25

      => P(BG | B) != P(BB | B) - when a boy has opened the door, BB is twice as probable as BG or GB, which makes the chance of the second child being a girl equally probable as being a boy.

    52. Re:Riddle by sapone · · Score: 1

      I believe you're wrong. See my other post and tell me what you think :).
      Short:

      - If any boy opens the door (we don't know if he's the firstborn), BB becomes twice as probable as BG or GB (the conditional probability P(BB | a random child is B) is greater than P(BG | a random child is B)) and therefore the probability of the second child being a girl equals that of the second child being a boy.

      - If the firstborn opens the door and it's a boy, BB is equally probable as BG (since P(BB | firstborn is B) = P(BG | firstborn is B).

      In both cases, I think that the probability of the second child being a girl or boy stays the same. Which coincides with common sense.

    53. Re:Riddle by sapone · · Score: 1

      That should have said:

      If any boy opens the door (we don't know if he's the firstborn), BB becomes twice as probable as BG or GB (the conditional probability P(BB | a random child is B) is greater than P(BG | a random child is B) and greater than P(GB | a random child is B)

      to make things clear.

    54. Re:Riddle by TommydCat · · Score: 1

      If you're only going to make one sprinkled cupcake for me, I'm not coming to your party! ;)

      --
      This comment does not necessarily represent the views and opinions of the author.
    55. Re:Riddle by smartfart · · Score: 1
      Trivia note: Fibonacci, who is known for the fibonacci number series, is the person who introduced and first promoted the use of the arabic number system to Medieval Europe

      And that's only because he couldn't make the Fibbonacci series work using roman numerals.

    56. Re:Riddle by Anonymous Coward · · Score: 0

      Actually, there is an even simpler way of arriving at the same result. Let's assume that the probabily of the sex of a newborn baby is 50% boy 50% girl. Also lets assume that one child being of a particular sex does not affect the probability of the next child in any way (a safe assumption biologically I think). This problem is then in effect like tossing a coin twice - the second toss is an independent event from the first one. The probability of any given outcome of the second toss is 50%, and so is that of the girl-boy situation%. Recognise the fact that the births of the two children are independent events and that's all you need to jump straight to the answer :-)

    57. Re:Riddle by imyourfoot · · Score: 1

      Sorry, but it's your logic that's flawed. Let's work out the possibilities.

      There are six (3!) ways the goats and cars could be placed behind the doors. They are:

      D1 D2 D3
      -------------------
      1 2 CAR
      1 CAR 2
      2 1 CAR
      2 CAR 1
      CAR 1 2
      CAR 2 1

      I won't work through each possibility, but note that since we're switching, and one goat is removed after our initial pick, if we pick a goat first we'll switch to a car, and vice versa. Since there's a 2/3 chance of a goat being behind any particular door, we have a 2/3 chance of initially picking a goat. The other goat is then removed, and we then switch to the car. Hence, if we switch we have a 2/3 chance of winning.

    58. Re:Riddle by brett42 · · Score: 1

      Ok, I googled for this, and I get the argument, but it doesn't quite make sense. Can anyone with better knowledge of probability help? Spoilers follow:

      The solution assumes that these four samples are equally likely, which is true before you see a boy:
      bb bg gb gg

      It's easy to get that, given that one child is a boy, there's a 2/3 chance the other is a girl, but it seems like observing a boy first changes the problem. If the bb sample is correct, the probability that the first child you see will be a boy is 1. For the bg and gb samples, there is a .5 probability of seeing a boy first. I'm a little fuzzy, but why wouldn't this mean that if you see a boy first, the bb sample is twice a probable?

    59. Re:Riddle by brett42 · · Score: 1

      Oh, it looks like the version I googled was actually in the form "one of them is a boy." So the normal solution for that makes sense, and I'm only slightly confused. Am I correct in thinking that the solution for the "a boy answers the door" form is .5?

    60. Re:Riddle by bidule · · Score: 1

      The way are asking it, 1/2 and 1/2.

      a)

      There are 4 equiprobable child pairs: BB, BG, GB, GG.

      Any of the 2 can *go* open the door: BB-B1, BB-B2, BG-B, BG-G, GB-G, GB-B, GG-G1, GG-G2.
      Now, since a boy opened the door, we must remove the invalid cases (and no, that does not change the equiprobability).

      We are left with 4 equiprobable solutions: BB-B1, BB-B2, BG-B, GB-B.

      b)
      No correlation between birth.

      Now, were you to to do it this way: "Do you have a son? Yes" then you get 1/3-2/3 distribution.

      --
      ID: the nose did not occur naturally, how would we wear glasses otherwise? (apologies to Voltaire)
    61. Re:Riddle by fishexe · · Score: 1

      120. That way everyone gets 3 and the people who are extra hungry can nab the ones from the people who didn't eat theirs. And everyone will eat the sprinkles, even if they don't like them.

      --
      "I don't care about the Constitution!" --Bill O'Reilly, November 17, 2009
    62. Re:Riddle by msuarezalvarez · · Score: 1

      That is probably the best way of convincing people! You should post the code somewhere.

    63. Re:Riddle by Rorgg · · Score: 1

      Here's how I finally got someone to "Get it." You pick a door, and before anything else, I say "what if I offer you everything behind the other two doors instead of what's behind the door you initially picked." Don't answer yet... you're inclined to take it. It's obviously better. Now I tell you "I'm revealing now that there's at least one goat behind those two doors." It shouldn't change your answer -- from logic there MUST be at least one goat behind those two doors, so I'm not revealing any new information. Now... you're inclined to take the other two doors... why does it matter if I show you where that one goat is? It doesn't. That's what switching does -- the choice to switch gives you everything behind the other two doors, we just show you the goat that you already know is there in advance. And if that STILL doesn't do it -- just program it and check it out empirically.

    64. Re:Riddle by jonadab · · Score: 1

      Okay, so 33 people want cupcakes, but three of them are babies and will only eat one, so you can expect about 63 to be eaten. It is imperative that you round that figure up by at least 5% to account for people who eat three (or four; with that many teenagers, somebody's going to be a pig) or who said they didn't like cupcakes and then eat one anyway because everybody else is, so rounding up to the nearest dozen that means six dozen cupcakes total, which you can bake in two batches if you have three muffin-tin pans. I'd make them all chocolate with chocolate frosting plus chocolate sprinkles, which pretty much ought to cover all the bases, unless you've got somebody who's allergic to chocolate (poor soul).

      --
      Cut that out, or I will ship you to Norilsk in a box.
    65. Re:Riddle by corngrower · · Score: 1

      You'ld want to make sure you had at least two cupcakes for each of the teenage boys. They tend to have large appetites.

    66. Re:Riddle by jsveiga · · Score: 1

      I beg to differ:

      > the 99% probability of the car being in one of the doors you haven't chosen "condenses" into the door that he didn't open

      No, the 99% probability of the car being in one of the TWO DOORS HE DIDN'T OPEN "condenses" into the TWO DOORS HE DIDN'T OPEN, so the same probablility of winning is on any of the closed doors, hence, no advantage or disadvantage in switching.

      The problem with the reasoning is that some people think in the outcome as the explanation on Wikipedia:

      1 - you pick goat A, Monty shows goat B, switch = WIN
      2 - you pick goat B, Monty shows goat A, switch = WIN
      3 - you pick the car, Monty shows any of the goats, switch = LOOSE

      Which means 2/3 of WINs if you switch, but the correct balance is:

      1 - you pick goat A, Monty shows goat B, switch = WIN
      2 - you pick goat B, Monty shows goat A, switch = WIN
      3 - you pick the car, Monty shows goat A, switch = LOOSE
      4 - you pick the car, Monty shows goat B, switch = LOOSE

      There are 4, not 3 final outcomes, 2 of which are wins, 2 are loose.

      If there are 100, 1000, 10000 doors, in the end you just know the car must be in one of the remaining 2. There is no probablity advantage in switching or not. It's 50%/50% now. It was 1/3 on your fist pick, ant it's 1/2 after Monty eliminates one door, so your chances ALREADY grew from 1/3 to 1/2 - but switching or not won't make them 2/3.

    67. Re:Riddle by Xesdeeni · · Score: 1

      I thought the same as you until I worked through all the combinations. The Wikipedia entry has a nice diagram to help.

      But take a look at your explanation: You're right that there are four outcomes. What you miss is that each of them does not have the same probability of occurring. You assume each has a 1/4 chance. But take a look:

      You start by choosing either Goat A, Goat B, or the Car. That is a 1/3 chance for each, right?

      So in your list of 4 options, 1 and 2 have a 1/3 chance, but 3 and 4 both come from your choice of the car, which had a 1/3 chance. So each has a 1/6 chance.

      That means you have a 1/6+1/6=1/3 chance of losing, and a 1/3+1/3=2/3 chance of winning by switching.

      (BTW, loose is the opposite of tight or secure; lose is the opposite of win.)

      Xesdeeni

    68. Re:Riddle by psmears · · Score: 1

      I beg to differ:

      Go ahead :-)

      Which means 2/3 of WINs if you switch, but the correct balance is:

      1. you pick goat A, Monty shows goat B, switch = WIN
      2. you pick goat B, Monty shows goat A, switch = WIN
      3. you pick the car, Monty shows goat A, switch = LOOSE
      4. you pick the car, Monty shows goat B, switch = LOOSE

      You are right, in that it's correct to view the situation as having four outcomes. However, the outcomes don't have equal probability. Outcome 1 is as likely as outcome 2, but each of those is as likely as 3 & 4 combined - if we assume Monty picks a goat at random when he has a choice, then 3 & 4 are each half as likely as 1 & 2. (Try drawing a probability tree for the different outcomes.)

      Still not convinced? Still think that the chances are 50-50 in the 100-door version? Fine by me. Let's play a game. I'll be Monty. Every time you choose the "car", I'll give you $20; every time you choose a goat, you owe me $1. I've chosen a door that holds the car. Which door (1–100) do you choose?

      (To give some evidence I'm not cheating, the md5sum of the door number I've chosen, plus a password, is fcc388da803aa97fa875ecce50f14bd8. At the end of the game I'll show the word and the number, so you can verify I haven't changed it. And if you think MD5 is too broken to be convincing, I'll happily switch to a well-known hash / combination of hashes of your choice!)

    69. Re:Riddle by mabraham · · Score: 1

      You are right if Monty was showing you a random door, and he happened to get a goat, but he is not. He is always showing you a goat because he knows what is where.

      When you chose a goat, Monty's choice is restricted to the door he showed you.

      When you chose the car, Monty could have shown you either door, but he'd only show you the one he did show you half of the time.

      Thus after you make your choice, you'd only see Monty choose the door he chose half the time if you were already right, and all the time if you should switch. Thus 2:1 in favour of switching.

    70. Re:Riddle by Anonymous Coward · · Score: 0

      This took a lot of thinking, since both arguments sound convincing on the surface, but I'm going to have to side with the 50-50 crowd on this one. Here's why.

      The premise is that Monty knows where the car is, and he will open every door except that door (if you did not happen to choose it) and your chosen door. Because of that, it does not matter that the odds were initially against you picking the car (you had a 1/3 shot). Once the goat doors are revealed and two are left (yours and one other), to switch or not switch is a 50-50 proposition.

      I will do a couple of examples to show the reasoning:

      3 Doors:
      If there are three doors, you can choose A, B, or C. Let's assume for simplicity the prize is behind A. (This does not matter, as the probabilities will be the same for a prize being at B or C).

      You choose A. Monty opens B. You switch to C --> and lose.
      You choose A. Monty opens C. You switch to B --> and lose.
      You choose B. Monty opens C. You switch to A --> and win.
      You choose C. Monty opens B. You switch to A --> and win.

      This represents all the possibilities in the three door scenario, as Monty would not open door A (which would reveal the prize) when you choose either B or C.

      The odds of switching being correct are 50/50, as there are two outcomes out of 4 that are favorable.

      4 Doors: (again assume the prize is behind A)
      You choose A. Monty opens B and C. You switch to D --> and lose.
      You choose A. Monty opens B and D. You switch to C --> and lose.
      You choose A. Monty opens C and D. You switch to B --> and lose.
      You choose B. Monty opens C and D. You switch to A --> and win.
      You choose C. Monty opens B and D. You switch to A --> and win.
      You choose D. Monty opens B and C. You switch to A --> and win.

      Again, this represents all the possibilities, as Monty will not open door A (which would reveal the prize) when you choose either B, C or D.

      Again the odds of switching being correct are 50-50.

      5 doors: (prize behind A)
      Choose A. Monty opens B C D. You switch to E --> and lose.
      Choose A. Monty opens B C E. You switch to D --> and lose.
      Choose A. Monty opens B D E. You switch to C --> and lose.
      Choose A. Monty opens C D E. You switch to D --> and lose.
      Choose B. Monty opens C D E. You switch to A --> and win.
      Choose C. Monty opens B D E. You switch to A --> and win.
      Choose D. Monty opens B C E. You switch to A --> and win.
      Choose E. Monty opens B C D. You switch to A --> and win.

      The 50-50 switching odds will continue to hold no matter how many doors are used. Although the odds that the initial choice of door was correct get lower as the number of doors goes up, once all the losing doors are opened except one, the odds that your door was correct are 50-50. This is because the number of ways Monty can open all the doors for losing choices is only one, but if you had the winner, he can open the doors in ((number of doors) - 1) ways.

      Please feel free to respond or comment.

    71. Re:Riddle by psmears · · Score: 1

      The odds of switching being correct are 50/50, as there are two outcomes out of 4 that are favorable.

      This where the problem lies—there are two of four outcomes that are good, but some of those outcomes (the first two in your list) are less likely than the others.

      I repeat my challenge: let's play a simulation of the 100-door game. I've hidden the car behind a door. Which door (1-100) do you choose?

    72. Re:Riddle by jsveiga · · Score: 1

      There are no "less likely" outcomes when it gets to the last decision (between the two remaining choices).

      No matter what happens, and no matter how you play your 100-door, 1000-door, whatever simulation, the last choice will be between 2 doors. Whatever happened in the past does not change the odds of the prize to be in one or on the other.

      The only difference would be if you had GAINED some true information about the location of the prize - which didn't happen, since you knew from the start that you would end up with two doors to choose from, one having the prize, other not.

      Considering past facts as an influence to the choice here is akin to think that because you rolled a dice and it gave you "6", on the next roll the odds of it giving "6" again have magically diminished because the odds of two consecutive "6" are smaller than "6" and "anything".

      The odds of two consecutive rolls result in the same number is smaller than resulting in different numbers, but for each individual roll, the odds are always 1/6. The past events won't affect the physics making the "6" face heavier.

      The same way, unless you gained knowlegde from the past events (which you didn't, since the final outcome was fixed: you having to pick between the two last doors), whatever happened before your last choice won't magically change your odds of picking the right/wrong door - unless that is a Schrodinger's goat which is in the car-goat state until you actually see it, and is affected by 'spooky action at a distance' "condensing the probablilities" (whatever that is) only on the door you aren't going to select as the other doors are opened!

    73. Re:Riddle by psmears · · Score: 1

      You're so close to being in agreement with me...

      The only difference would be if you had GAINED some true information about the location of the prize

      This is absolutely, 100% true.

      which didn't happen, since you knew from the start that you would end up with two doors to choose from, one having the prize, other not.

      This isn't true. I agree that we knew from the start that we'd end up with two doors to choose from. What we didn't know is which doors we'd end up with. Monty, our host, doesn't pick a door to open at random—in the case where we've initially picked a goat, he always picks the other goat.

      So, in 2/3 of cases, he gives you some extra information (enough to allow you to pick the car) and in 1/3 of cases he doesn't. So it makes sense to take the action that pays off 2/3 of the time, and switch!

      If you're not convinced, how come you won't take my (virtual) wager, where you get V$20 for a win, and give me V$1 for a lose? By your reasoning, the odds are 50–50, so you stand to make a lot of virtual money! I repeat: Which door (1–100) do you choose?

    74. Re:Riddle by jsveiga · · Score: 1

      I'll take your "simulation".

      And here's how it is broken:

      To lower the requirement of back-and-forth posting, I'll make my choices in advance, then you can run your simulation as many times as you want (of course, if you run less than 50, results may be non-conclusive).

      Since the only comparison needed is between the "Switch" and "not Switch" scenario, here are my choices for each case:

      For the "not switch scenario", I'll take door 1. You will agree that I have a 1/100 chance of being right at this moment, before you open the 98 doors. Correct?

      For the "switch scenario", I'll take door not-1 (meaning I picked 1, then switched to whatever door was left after you opened the 98 remaining ones). At this moment, before you open the 98 doors, you will also agree that the probability of each door is 1/100, so not-1 gives me 1/100 too.

      In any scenario, I don't need to see you opening the 98 doors, because I ALREADY know they won't have the prize, so there is NO NEW information when you open them. Besides, I've decided beforehand if I'm switching or not, so there is no point in seeing you theatrically opening the virtual doors ta-daa!!!

      So it's 1/100 for the "not switch" scenario, and 1/100 for the "switch" scenario. No difference between the two scenarios.

      Want me to decide "switch"/"not switch" only AFTER you open the 98 doors? Ok. I pick door 1.

      Again, I don't need to see you opening the 98 doors, because I ALREADY know they won't have the prize. All that matters is that you will in the end present me two doors, "1" and "not-1". Each one has 1/2 probablility of having the prize. The decision to switch now will give me 50% of chance against 50% of chance if I don't switch. No difference again.

      What is your point again? That if I see you opening the 98 doors I will gain knowledge? I'll know that one of the two remaining doors have the prize? Well, I have magical powers so I already know that.

    75. Re:Riddle by psmears · · Score: 1

      I'll take your "simulation".

      Excellent :-)

      To lower the requirement of back-and-forth posting, I'll make my choices in advance

      Better still... let's not waste any time!

      For the "not switch scenario", I'll take door 1. You will agree that I have a 1/100 chance of being right at this moment, before you open the 98 doors. Correct?

      Correct. Well, kinda. It's 1/100 from your point of view, since you don't know where the prize is. I know, so (depending on which door the prize is hiding behind this time round), from my point of view it's either 0 or 1.

      For the "switch scenario", I'll take door not-1 (meaning I picked 1, then switched to whatever door was left after you opened the 98 remaining ones). At this moment, before you open the 98 doors, you will also agree that the probability of each door is 1/100,

      I'm with you so far...

      so not-1 gives me 1/100 too.

      ... except that it doesn't. It gives you 99/100. But I guess you'll disagree with that, so let's see how the simulation runs:

      First go. (Prize is behind door 84). You pick door 1. I open doors 2–83, 85–100. Switcher picks remaining door (84) and gets the prize. Non-switcher gets a goat.

      Second go. (Prize is behind door 33). You pick door 1. I open doors 2–32, 34–100. Switcher picks remaining door (33) and gets the prize. Non-switcher gets a goat.

      Third go. (Prize is behind door 26). You pick door 1. I open doors 2–25, 27–100. Switcher picks remaining door (26) and gets the prize. Non-switcher gets a goat.

      Fourth go. (Prize is behind door 92). You pick door 1. I open doors 2–91, 93–100. Switcher picks remaining door (92). Non-switcher gets a goat.

      Tired yet? I know this is a small sample, but I think I'm beginning to spot a pattern... the non-switcher is sure getting a lot of goats... perhaps there is something to this switching business after all? (If you're not convinced I'll gladly continue the simulation many more times...)

      What is your point again? That if I see you opening the 98 doors I will gain knowledge?

      Yes

      I'll know that one of the two remaining doors have the prize? Well, I have magical powers so I already know that.

      Good for you! But sometimes you'll know even more than that. In the cases where your initial guess was wrong, you'll know which of the 99 doors that you didn't pick on the first go is the right door. And since your first guess—as you've correctly stated—is wrong 99% of the time, you can be 99% certain that the remaining door hides the prize!

    76. Re:Riddle by jsveiga · · Score: 1

      (please note that I'm not willing to engage a flame war or something like that - I'm really intrigued by this crazy thing, and I confess you got me hanging by a thread)

      Maybe problem here is that there are two different comparisons being mixed up. It seems like we both agree in the results, but are arguing about different comparisons.

      1st comparison: The odds of winning between: "having the option of switching in the end" vs "not having the option of switching in the end".

      2nd comparison: Having the option of switching in the end, the odds of winning between: "switch" vs "not switch".

      On the first comparison, we both agree that having the option of switching increases the odds. This is because once you changed the rules to have the switch option, your choices fall from 100 to 2. As soon as the rule is changed, it doesn't matter how many doors you have initially, in the end there will be 2. Opting for this game rule will increase my odds from 1/100 to 1/2 (I understand that for you, it increases from 1/100 to 99/100)

      I think that your (and many others) logic goes that when you first pick a door, it has 1/100 probability of being wrong, then in the end it retains this probability so you are faced with the option of keeping this 1/100 win chance or switching to the 99/100 win chance door.

      Please consider that I do start with a 1/100 chance with my first pick, but after you open the first door, I have 1/99, then 1/98, then 1/97, etc. This because you are eliminating more and more "wrong" doors. When you get to the 98th door, my chance of being right is 1/2 and so is my chance of being wrong.

      I don't agree with your simulation because to calculate the odds of an outcome you need to count all possible outcomes, not just some of them (again, I'm intrigued here, and trying to find the flaw that makes the simulation seem to disagree with "my" theory):

      > First go. (Prize is behind door 84). You pick door 1. I open doors 2-83, 85-100. Switcher picks remaining door (84) and gets the prize. Non-switcher gets a goat.

      A general formulation could be:
      First go. (prize is behind door N). I pick door M (M may be = to N). You open all doors but M and N, and in case M=N you open all doors except D and N.

      If M!=N (and there's 99/100 chance of that), there is only one possible combination of doors to be opened by you, so the only outcome is that I end up having to choose between M and N, and switching to N will be the winning option. For each of the 99 possible M!=N, there is one outcome, all saying switch is the winning choice.

      Now, when M=N (1/100 of chance), you have 99 options of D when picking the doors you will open, so there are 99 possible pairs in the end, and switching will always give me the goat. For each of the 99 possible D selections, there is one outcome, all saying switch is the bad choice.

      So the number of possible outcomes is not 100 as I was considering, but 396. 198 of which I win by switching, 198 of which I win by not switching. Thus, 50% (man I which I remembered enough math to put this in terms of combination/permutation stuff...).

      There; it makes sense to me (I'm glad I could figure this out, it was more like a gut feeling when I started...); doesn't it make sense to you? It looks like the flaw is that when counting the possible outcomes one tend to see the case where M=N as having only one possible outcome, when there are many.

      (if this thread is closed, we can go on; email me at the_name_of_this_site at rf dot com point br)

  3. Here's a political riddle. by Anonymous Coward · · Score: 0, Troll

    What brain benders tickle your fancy?

    Yeah, how did Bush get elected? Even more mind numbing is how he got re-elected. How'd that happen? Seriously, we have a man who is not the least bit curious, managed to squeak through school, managed to run two companies into the ground and yet still get elected as President of the United States where he is proceeding to run the country into the ground. Bush is cutting basic science research of all sorts (unless it is defense or energy related) and is pushing a religious agenda to the detriment of science and science education.

    1. Re:Here's a political riddle. by Anonymous Coward · · Score: 0

      You lost, hippie, get over it.

      Actually, please don't. Please keep fighting against Bush and make sure for the next three years he's the focus of all you do and say, because you don't want him re-elected again.

      Please, please, PLEASE keep fighting a battle you've already lost.

    2. Re:Here's a political riddle. by rah1420 · · Score: 1

      because you don't want him re-elected again.

      Absent a constitutional convention, that'll be difficult to do.

      --
      Mit der Dummheit kämpfen Götter selbst vergebens.
    3. Re:Here's a political riddle. by SnowZero · · Score: 1

      Well that's easy: Run a Democrat against him, picked by a primary system only open to Democrats. This will ensure that the one chosen reflects the ideals of die-hard party members, while ensuring incompatibility with other parties' voters, and relegating the all important undecided swing voters as irrelevant.

      For bonus points, ask the cantidate to waste time on issues facing America 35 years ago, rather than on focusing on issues affecting us now, where he had the advantage.

      Maybe someday we'll have an approval-voting based national primary, but I'm not holding my breath waiting for our bipartisan overlords to come around.

    4. Re:Here's a political riddle. by Anonymous Coward · · Score: 0
      Are constitutional conventions absolutely necessary just to make a constitutional amendment? I'm pretty sure congress can just ratify the amendment.

      Congress has to pass it by a 2/3 super majority. Then 3/4 of all the states have to approve it.

  4. Infinity by Anonymous Coward · · Score: 0

    I have always been intrigued by the concept of infinity.

    1. Re:Infinity by Frequency+Domain · · Score: 4, Interesting

      Then you may like this one: X to the X to the X to the... = 2. What is X if the left hand side is an infinite sequence of powers?

    2. Re:Infinity by Alsee · · Score: 1

      Note that there is no solution if you calculate the power series from left to right. There is a limit solution only if you calculate the power series from right to left.

      -

      --
      - - You can't take something off the Internet! That's like trying to take pee out of a swimming pool.
    3. Re:Infinity by FlyByPC · · Score: 1

      sqrt(2) works.

      --
      Paleotechnologist and connoisseur of pretty shiny things.
  5. 2+ by Nikkodemus · · Score: 1

    2=?

    1. Re:2+ by Vorondil28 · · Score: 1

      Oh crap, I know this one...

      --
      This sig rocks the casbah.
    2. Re:2+ by lengau · · Score: 1

      2+2=(4|5)

      --
      I really wanted to change my sig to something witty, but all I could come up with is this.
    3. Re:2+ by serialdogma · · Score: 1

      Sorry wrong.
      2+2=(3|4|5)

    4. Re:2+ by lengau · · Score: 1

      3? Why three?

      --
      I really wanted to change my sig to something witty, but all I could come up with is this.
    5. Re:2+ by Anonymous Coward · · Score: 0

      It is for extremely small values of 2.
      2.4 == 2
      4.8 == 5
      2+2 = 5
      1.5 == 2
      2+2 = 3

  6. Keeping my skills fresh by Paladine97 · · Score: 3, Interesting

    I wouldn't say I have a favorite problem but often when I'm bored I'll pen down the Pythagorean theorem and solve it manually. 0 = ax*x + bx + c. I'll work it out until I get the solution that (I hope) everybody knows and loves! It helps to keep my math skills alive during boring meetings.

    1. Re:Keeping my skills fresh by mjc_w · · Score: 1

      Uh, that's the quadratic formula.

      The Pythagorean theorem is about the sides of a right angled triangle (a^2 + b^2 = c^2).

      --
      This is the Constitution.This is the Constitution under the Bush administration. Any questions?
    2. Re:Keeping my skills fresh by avxo · · Score: 1

      You realize that what you wrote is not the Pythagorean theorem. That is: a + b = c

    3. Re:Keeping my skills fresh by avxo · · Score: 1

      Silly browser... a^2 + b^2 = c^2

    4. Re:Keeping my skills fresh by LeonGeeste · · Score: 1, Informative

      That's only the Theorem if you're expressing it in terms of quadrances (squares of distances), like that weirdo's book that got posted a short while ago on /. Ah, here it is:

      http://science.slashdot.org/article.pl?sid=05/09/1 7/1313249&tid=228&tid=14

      In normal trig, it's a^2 + b^2 = c^2.

      Thinking back, wouldn't it be cool to have a quadrance-ruler? It would be marked off in units of inches squared, and the reading on it would be the square of the number of inches in distance. (Of course, if you were a communist, that would be centimeters.)

      --
      Rank my idea: http://www.sinceslicedbread.com/node/531
    5. Re:Keeping my skills fresh by LeonGeeste · · Score: 1

      Hi Damer Face! I haven't forgotten about you, though I really wish I had! Looks like you still can't take a joke about only communists using metric. It is still a joke, and you still lack a sense of humor for not recognizing that! Be a man, and put me on your foes list.

      --
      Rank my idea: http://www.sinceslicedbread.com/node/531
    6. Re:Keeping my skills fresh by Paladine97 · · Score: 1

      Ummmmmmmmm, it's the formula that counts ;-)
      But yes, you are correct sir. Alas, it has been many years since geometry class.

    7. Re:Keeping my skills fresh by sunwolf · · Score: 3, Funny

      I keep my skills fresh by taking two points and then finding the answer we all know and love with the point-slope form!

      a^2 + b^2 = c^2!

    8. Re:Keeping my skills fresh by m50d · · Score: 1

      Do you mean the quadratic formula?

      --
      I am trolling
    9. Re:Keeping my skills fresh by Anonymous Coward · · Score: 0

      Aren't jokes supposed to be funny?

    10. Re:Keeping my skills fresh by Just+Some+Guy · · Score: 1

      My wife asked why I was integrating across a unit circle to get its volume. When I answered "practice", she looked ready to fetch the Thorazine.

      --
      Dewey, what part of this looks like authorities should be involved?
    11. Re:Keeping my skills fresh by rthille · · Score: 1

      Huh? Circles don't have volume, only area.
      </pedantic> :-)

      --
      Awesome furniture, accessories and cabinetry in Santa Rosa, CA: http://humanity-home.com/
    12. Re:Keeping my skills fresh by Anonymous Coward · · Score: 0

      I think her major point of concern was that the unit circle has no volume ;d

    13. Re:Keeping my skills fresh by Anonymous Coward · · Score: 0

      "My game is like the pythagorean theorem. No one has an answer."
      -Shaquille O'Neal [link

    14. Re:Keeping my skills fresh by AthroughZ · · Score: 1

      coz a circle has only area not volume

    15. Re:Keeping my skills fresh by Xyrus · · Score: 1

      Mine is the Goldbach Conjecture. It's decievingly simple and yet no has developed a solid proof.

      "Every even number greater than 2 is the sum of two primes".

      This has held to numbers of really large size. But no one has a proof. In essence, you are trying to prove that the set of primes is a generating set for the even numbers (if I remember my abstract algebra correctly).

      I vaguely remember that omeone was trying to prove it using probabilities, and one mathematician managed to prove every even is the sum of one prime and one other number.

      I think the bounty on this problem is $1 million. but I'm not sure.

      ~X~

      --
      ~X~
    16. Re:Keeping my skills fresh by spongeboy · · Score: 1
      I vaguely remember that omeone was trying to prove it using probabilities, and one mathematician managed to prove every even is the sum of one prime and one other number.

      for every even n greater than or equal to 2 there is at least one (odd) prime p less than it.

      n - p = another (odd) number
      therefore n = another (odd) number + p

      ta da!

      in fact, a number n can be the sum of every number less than itself and another number.

    17. Re:Keeping my skills fresh by Xyrus · · Score: 1

      Eh, I think I'm misremembering that. :P

      You can type in Goldbach Conjecture in google and find out the work that has been done on this. I find it interesting, anyway.

      ~X~

      --
      ~X~
    18. Re:Keeping my skills fresh by gfreeman · · Score: 1

      Sometimes when I am bored, I solve for x, showing all workings ...

      x-1 = 1/x

      --
      Ceci n'est pas un sig.
    19. Re:Keeping my skills fresh by rkowen · · Score: 1

      Easy. It's the equation for the golden ratio (1+sqrt(5))/2

      Also, a favorite of mine.

      Notice that it reduces a quadratic equation x^2-x-1=0

      --
      I hate sigs (especially yours which is a waste of my bandwidth)
  7. thrice-plus-one-or-half by Diego+and+Aline · · Score: 1

    x(n) = x(n-1)/2 if n is even
                    = 3*x(n-1)+1 if n is odd

    --
    All determinations of time presuppose something permanent in perception and that this permanent cannot be in the self, s
    1. Re:thrice-plus-one-or-half by dcclark · · Score: 2, Interesting

      The problem, as stated, is incomplete. If it is being defined recursively, we need some starting conditions, like x(1) = 1. However, as the OP didn't actually ask a question, I'll state what I think he was trying for here:

      This is called the "Collatz Conjecture": given a positive integer a_1 = n, let a_i = a_{i-1}/2 if a_i is even, and a_i = 3a_{i-1}+1 if n is odd. Repeat. In other words, take a number, divide by two if it's even and take three times it plus one if it's odd, and repeat ad nauseum. Try a few integers, and you'll find that they eventually end up cycling: 1, 2, 4, 1, ... Does this always happen? The answer is, alas, unknown.

      This problem fascinated me through high school, and I eventually ended up going into mathematics partly because of the fun I had exploring its ins and outs.

    2. Re:thrice-plus-one-or-half by dcclark · · Score: 1

      A few corrections:

      We divide by two if a_{i-1} is even, not if a_i is even. Likewise for a_{i-1} being odd.

      The cycle is 4, 2, 1, 4, ..., not 1, 2 ,4 ,1, ...

      Someone remind me not to write math at 1:00 am again... especially when it comes to my thesis!

    3. Re:thrice-plus-one-or-half by Jarden · · Score: 0, Troll
      This problem fascinated me through high school, and I eventually ended up going into mathematics partly because of the fun I had exploring its ins and outs.
      Following a similar vein of logic, I deduce that those were the only ins and outs you were getting in high school.
    4. Re:thrice-plus-one-or-half by meiao · · Score: 1

      It is said that whichever n you start this function, you'll eventually get to n = 1.
      Even tough nobody's been able to mathematically prove that.

  8. The Answer.... by Omnieiunium · · Score: 5, Funny

    Is obviously 42

    1. Re:The Answer.... by biobogonics · · Score: 1

      Is obviously 42
      So what comes after 42? ...
      145
      125
      59
      42

      Scroll down for the answer.

      34

      OK, Why?

      Hint: Supposedly this was used as an interview question by some famous medical school.

    2. Re:The Answer.... by Anonymous Coward · · Score: 0

      Oh, hahaha, very good. Very original. I've not seen that number on Slashdot in a while.

    3. Re:The Answer.... by HeadOffice · · Score: 1

      Euh, 18?

      Because these menu's come with nasi and all the other menu's come with white rice?

    4. Re:The Answer.... by biobogonics · · Score: 1

      34 is the correct answer. It's not really a *math* problem, but a *trivia* question which in *panic inducing* interview style depends on a specific bit of obscure knowledge, often called a "rat fact".

      If you live in a certain large city or have visited there frequently, eventually you will suddenly realize why 34 comes right after 42.

      Here's the final Jeopardy question in Rot-13:

      Jung ner fgbcf ba gur N genva?

    5. Re:The Answer.... by etymxris · · Score: 1

      I use this same example when making a point about sequences. When someone gives a bunch of numbers and asks "What comes next in the sequence?" my answer is "Anything I want. All sequences are underdetermined." To think otherwise is to miss an important fact about induction.

      Anyway, the answer is 34 because they are all subways stop in Manhattan. Next would be 34, and then 14.

  9. easy one by zanderredux · · Score: 5, Funny

    prove that a^n=b^n+c^n for any n.

    1. Re:easy one by calvin1981 · · Score: 5, Interesting

      That one's really easy. Set a=42, b=0 and c=42, for any n :)

    2. Re:easy one by Anonymous Coward · · Score: 1, Funny

      I have discovered a truly remarkable proof of this theorem that the length of this comment is too small to contain.

    3. Re:easy one by Anonymous Coward · · Score: 0

      If all of the factors of a^n are prime (or irregular), than the square root of the left side of the equation is going to be equal to b(a^n)^c for all negative integers.

      So obviously, b^n != c^n for any positive number. Think about it. If b^n isn't the same as c^n, how can b^c possibly be the same as the square root of a^n+b^n????

      Maybe I'm missing something obvious here.

    4. Re:easy one by NitsujTPU · · Score: 4, Informative

      Uhmm, if n = 0, that is not true.

      a^0 = 1
      b^0 = 1
      c^0 = 1

      1 != 2

      So, I would submit that that might be true for all nonzero values of n.

    5. Re:easy one by ThyPiGuy · · Score: 1

      Maybe you should do some reading on a little known equation called Fermat's Last Theorem.

    6. Re:easy one by calvin1981 · · Score: 5, Informative

      Well, If b=0, b^0 is not even defined ! For n=0, it is easy to see that there is no solution. For n smaller than 3, it is elementary to show that there are solutions (even infinitely many of them), and for n > 3, you have to be Andrew Wiles to show that :)

    7. Re:easy one by iamdrscience · · Score: 1, Informative
      Well, If b=0, b^0 is not even defined
      Nope, 0^0 is one. Whip out a scientific calculator and check it.
    8. Re:easy one by cowsandmilk · · Score: 1

      pull out your scientific calculator and take the log(0^0) and see what happens. especially when you say its equal to 0*log(0) and things like that which prove that 0^0 != 1

      actually I'm just bullshitting that

      Anyways, since you're participating in this argument, you clearly don't get the joke and are therefore not a fan of mathematic research

      --
      http://sladm.org Saint Louis Area Dance Marathon The Best One Night Stand of Your Life
    9. Re:easy one by Anonymous Coward · · Score: 2, Funny

      I have discovered a truly remarkable proof of this theorem, but the Slashdot lameness filter won't let me post it. :-(

    10. Re:easy one by Jason1729 · · Score: 1

      for n > 3, you have to be Andrew Wiles to show that :)

      No, for n >= 3, you have to be Andrew Wiles to show that no solutions in integers exist...or maybe "the guy who met Andrew Wiles" who gave a talk on it at my school :)

    11. Re:easy one by max+born · · Score: 0

      If I remember correctly anything to the power zero is zero by definition (because we say so). And Googles calculator at least agrees with the result.

      Of course I could be completely wrong.

    12. Re:easy one by Aeiri · · Score: 2, Interesting

      "Warning: 0^0 replaced by 1"

      I have a feeling that means it's not ACTUALLY 1.

    13. Re:easy one by Kymermosst · · Score: 1

      "Warning: 0^0 replaced by 1"

      Ahh, that looks like a classic TI-89/92/V200 message.

      --
      "Alcohol, Tobacco, Firearms, and Explosives" should be a convenience store, not a government agency.
    14. Re:easy one by Jimmy+The+Leper · · Score: 1

      Shouldn't that be:
      ForAll n > 2 ThereDoesNotExist a, b, c SuchThat a^n + b^n = c^n
      Your statement is much harder to prove because it is false.

      --
      -You're only as clean as your towel.
    15. Re:easy one by ari_j · · Score: 1

      It's also much funnier because it is diametrically opposed to something which is true but next to impossible to prove.

    16. Re:easy one by dogganos · · Score: 1

      hmmmm, I have found an interesting proof for that, but this web page is very small to fit it...

    17. Re:easy one by EvilSmile · · Score: 1

      Since the post says "for any n" it means I can choose any value of "n" that I find convenient.

      Let us take n = 0

      now that gives us a^0 = b^0 + c^0

      which implies 1 = 1 + 1

      which is 1 = 2

      which is absurd. Therefore our assumption that a^n = b^n + c^n must be wrong!

      Q E D!

      now why did my mathematics teacher thing I was no good at it...

    18. Re:easy one by a+boy+named+woo · · Score: 1

      Where zero = 1 right?

    19. Re:easy one by IIH · · Score: 1
      Uhmm, if n = 0, that is not true. a^0 = 1 b^0 = 1

      If B also is zero, then b^n is 0^0 which is undefined.

      --
      Exigo spamos et dona ferentes
    20. Re:easy one by ezzzD55J · · Score: 1
      Nope, 0^0 is one. Whip out a scientific calculator and check it.

      You couldn't have been wronger. 0^0 is undefined, no matter what some silly calculator says.

    21. Re:easy one by Nehle · · Score: 2

      a^0 = a/a, thus 0^0 = 0/0 which, you know, really cannot be defined.

    22. Re:easy one by TheRealDamion · · Score: 1
      I think I can solve this exhaustively!

      I'll reply to this for each I do..

      • infinite replies beneath your current threshold.
    23. Re:easy one by NitsujTPU · · Score: 1

      Oy. What a late night does to the brain.

      As stated, it is not true. Now, I get it! It's a juxtaposition of Fermat's Last Theorem.

    24. Re:easy one by richieb · · Score: 1
      prove that a^n=b^n+c^n for any n.

      I had written a really neat proof of this for any integer n > 0. But them my hardisk crashed and I lost it...

      --
      ...richie - It is a good day to code.
    25. Re:easy one by Anonymous Coward · · Score: 0

      Sorry, dude:

      a = b
      a^2 = ab
      a^2 - b^2 = ab - b^2
      (a + b) (a - b) = b(a - b)
      a + b = b
      2b = b
      2 = 1

    26. Re:easy one by Mornelithe · · Score: 2, Informative

      That's not generally agreed upon.

      http://www.faqs.org/faqs/sci-math-faq/specialnumbe rs/0to0/

      There were/are mathematicians who argue that 0^0 is 1, and those that argue that it's undefined.

      --

      I've come for the woman, and your head.

    27. Re:easy one by earthbound+kid · · Score: 1

      Ahh!! Do you realize what you've just done!! All numbers are now equal to all other numbers! It's chaos!! Math has no value anymore! Dogs and cats living together!!!!!!!!1!1!!1one=two!!!!!!

    28. Re:easy one by Anonymous Coward · · Score: 0

      It's a misstatement to say that 0^0 is undefined. What you really mean is that you haven't yet found a suitable definition. Trust me, there is one (which I will get to in a bit).

      What you're really saying is that x^0 is 1 (if x is not 0), but 0^y is 0 (if y > 0). No value of 0^0 can satisfy both, so 0^0 is undefined.

      IOW, let f(x,y) = x^y, and let 0^0 be the value of f that makes f continuous at (0,0). Clearly, this is a bad definition.

      The definition I like the best is set-theoretic: x^y is the number of maps from a set of order (size) y to a set of order x. So 0^0 is the number of maps from the empty set to itself. There is exactly one (the identity).

    29. Re:easy one by ezzzD55J · · Score: 1

      Hmm, perhaps I was too harsh in my GP post then. I didn't know the matter wasn't settled. Still it seems to me very unmathematical to call it 1 just because it's convenient sometimes, and wrong in 'some unimportant' cases. So I, for one, am not convinced :).

    30. Re:easy one by Bob+Zer+Fish · · Score: 1

      You divided through by zero. You can't do that!

    31. Re:easy one by ehasl · · Score: 1

      Except 0 fills 0 perfectly. I would say 0/0 is 1. But ask "how many cookies will each person get if there are no people and no cookies?".

    32. Re:easy one by Anonymous Coward · · Score: 0

      http://mathworld.wolfram.com/N.html

      A good programmer always checks the type of his variables. ;-)

      From your math classes, you might recall that "n" denotes a Natural Number.

      Although the link above suggests that there is no general agreement on whether 0 is included in the set of Natural Numbers, I doubt anyone here has taken a math class where "n" was anything other than a positive integer.

    33. Re:easy one by zippthorne · · Score: 1

      what bull. from the left side, it's a^0 is one everywhere. from the right side it's also one everywhere. You're telling me that no one has said, "hey there's a gap here that approaches 1 from both sides" and followed that with "lets fill it in by defining it as 1?"

      --
      Can you be Even More Awesome?!
    34. Re:easy one by Aeiri · · Score: 1

      Ahh, that looks like a classic TI-89/92/V200 message.

      Not classic, TI-89 Platinum.

    35. Re:easy one by Mornelithe · · Score: 1

      Eh. It depends on what you're doing, I suppose.

      The main person I knew who supported it was Knuth and pals, since I recalled reading it in Concrete Mathematics (and it's also in The Art of Computer Programming somewhere, it seems). That book, although it does go in quite a few theoretical directions, is ultimately focused around using mathematics to solve 'real' problems (for some definition of real). Knuth being a computer scientist, I suppose it's no surprise that he'd go the practical angle.

      I think the other binomial theorem argument in there is dubious, as well. You could easily define the binomial theorem not to work when x, y or x + y are 0, I suppose. I don't know how much of a difference that would really make.

      Ultimately mathematics is for practical use, I think (although I do enjoy it for purely masturbational purposes), so defining 0^0 as to satisfy the most important cases does make some sense to me.

      But, I think the strongest arguments against it are the things you can derive from it. For instance, 0^0 = 1 implies 0/0 = 1, from which (I think) you can derive that x/0 = 1 for any x. But then, from that you can derive x/0 = y for any x and y, which doesn't make any sense, or even weirder stuff like y = 1 for all y. So, you have to say something like 0^0 = 1 but you're not allowed to derive all the bad stuff from it, which is rather inconsistent, I agree.

      --

      I've come for the woman, and your head.

    36. Re:easy one by perko · · Score: 1

      this is untrue for a b and c unequal to zero and for n > 2. it's fermat's last theorem

    37. Re:easy one by Anonymous Coward · · Score: 0

      > Except 0 fills 0 perfectly. I would say 0/0 is 1.

      But a 100x0 still fills 0 perfectly, so 1 = 0/0 = 100x0/0 = 100x1 = 100.

    38. Re:easy one by Anonymous Coward · · Score: 0

      For cardinal numbers (0, 1, 2...), one useful definition of x^y is the cardinality of the set of functions mapping a set of cardinality y to a set of cardinality x. This agrees with the usual definition on the reals, except for 0^0 where it is explicitly 1. These things aren't really natural law, they are consequences of axioms and definitions chosen for their usefulness in different contexts.

    39. Re:easy one by Anonymous Coward · · Score: 0
      Well, If b=0, b^0 is not even defined ! For n=0, it is easy to see that there is no solution. For n smaller than 3, it is elementary to show that there are solutions (even infinitely many of them), and for n > 3, you have to be Andrew Wiles to show that :)

      Fermat's Last Theorem was already proven for many specific powers before Wiles started working on it. Fermat himself left a proof for fourth powers.

    40. Re:easy one by Lehk228 · · Score: 1

      no n^1 = n

      --
      Snowden and Manning are heroes.
    41. Re:easy one by Lehk228 · · Score: 1

      that is where the disagreement comes from, some think it should be filled as equaling 1, others think an undefined point is more correct

      --
      Snowden and Manning are heroes.
    42. Re:easy one by jonadab · · Score: 1

      > Uhmm, if n = 0, that is not true.

      You're supposed to infer from the choice of n as the variable that it's restricted to being a natural number. Notice that the other variables are early letters in the Latin alphabet, in lowercase, so they presumably are real numbers, unless stated otherwise.

      Without these assumptions, anyone who's had a modern algebra class could come along and trivially solve the thing by defining a new group of numbers that makes it work.

      --
      Cut that out, or I will ship you to Norilsk in a box.
    43. Re:easy one by NitsujTPU · · Score: 1

      It's Fermat's Last Theorem...

    44. Re:easy one by uberdave · · Score: 1

      I thought Fermat *DIDN'T* leave a proof, but merely claimed he had one that he couldn't fit on the napkin, or margin, or wherever the thing was written.

    45. Re:easy one by Darby · · Score: 1

      But ask "how many cookies will each person get if there are no people and no cookies?".

      All they can eat?

    46. Re:easy one by jonadab · · Score: 1

      > It's Fermat's Last Theorem...

      What's that got to do with anything? Fermat expressly stated what sets the numbers in question had to belong to. The slashdot poster just used variables from the letter ranges normally associated with those sets (e.g., n for a natural number) and assumed that anyone who's had any math would understand. Either way, if you remove (or ignore) the constraints on the numbers, it's trivial to define new groups of numbers that "solve" the thing, but that was not the intention.

      --
      Cut that out, or I will ship you to Norilsk in a box.
    47. Re:easy one by Thuktun · · Score: 1

      There were/are mathematicians who argue that 0^0 is 1, and those that argue that it's undefined.

      Euler and Cauchy, respectively, among others. I'm pretty sure most slashdotters are not qualified to get in the middle of that argument.

  10. Sequence by blystovski · · Score: 2, Interesting

    What is the next line in the following sequence? 1 11 21 1211 111221 312211

    1. Re:Sequence by blystovski · · Score: 1

      Correct formatting...sorry!

      1
      11
      21
      1211
      111221
      312211

    2. Re:Sequence by Anonymous Coward · · Score: 0

      13112221 ?

    3. Re:Sequence by Noksagt · · Score: 1

      13112221

    4. Re:Sequence by Anonymous Coward · · Score: 0

      13112221

    5. Re:Sequence by Doc+Ruby · · Score: 1

      Better yet, what's the preceeding line?

      --

      --
      make install -not war

    6. Re:Sequence by Hawthorne01 · · Score: 1

      ummn, "Correct formatting...sorry! " ? :-)

      --
      "Only two things are infinite, the universe and human stupidity, and I'm not sure about the former."
    7. Re:Sequence by DeuceTre · · Score: 1

      132231 232221 134211 14131231

    8. Re:Sequence by blystovski · · Score: 1

      Well played, well played indeed...

    9. Re:Sequence by Anonymous Coward · · Score: 0

      1113213211

    10. Re:Sequence by Anonymous Coward · · Score: 0

      31131211131221

    11. Re:Sequence by jZnat · · Score: 1

      0
      "No 1's"

      --
      'Yes, firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.'
    12. Re:Sequence by Anonymous Coward · · Score: 0

      13211311123113112211

    13. Re:Sequence by OverlordQ · · Score: 1

      11131321133112132113212221

      --
      Your hair look like poop, Bob! - Wanker.
    14. Re:Sequence by Headcase88 · · Score: 1

      311311131221232112111312211312113211

      --
      "When the atomic bomb goes off there's devastation...but when the atomic bong goes off there's celebraaaaation!"
    15. Re:Sequence by themoodykid · · Score: 1

      The sound of one hand clapping.

    16. Re:Sequence by Doc+Ruby · · Score: 1

      I believe the answer is:

      --

      --
      make install -not war

    17. Re:Sequence by rastos1 · · Score: 1

      1113213211 Siemens recruiting site ;-)

  11. Oldie but goodie... by Moofie · · Score: 1

    How much wood would a woodchuck chuck, if a woodchuck could chuck wood?

    --
    Why yes, I AM a rocket scientist!
    1. Re:Oldie but goodie... by Anonymous Coward · · Score: 0

      If a woodchuck could cut wood, would he chuck cut wood?

    2. Re:Oldie but goodie... by markov_chain · · Score: 2, Funny

      *** ZOT! ***

      --
      Tsunami -- You can't bring a good wave down!
    3. Re:Oldie but goodie... by Dorothy+86 · · Score: 2, Funny

      I'm told that it depends upon the price of fish in Tibet on Tuesdays.

    4. Re:Oldie but goodie... by Anonymous Coward · · Score: 0

      He would chuck what a woodchuck could chuck, if a woodchuck could chuck wood.

    5. Re:Oldie but goodie... by toddbu · · Score: 2, Interesting
      Alternatively:

      How many cans can a canner can, if a canner can can cans?

      --
      If you don't want crime to pay, let the government run it.
    6. Re:Oldie but goodie... by spacecowboy420 · · Score: 1

      As much as he could.

      --
      ymmv
    7. Re:Oldie but goodie... by rtisbute · · Score: 1

      Q: how much wood could a woodchuck chuck if a woodchuck could chuck wood? A: If a woodchuck could chuck wood, then a woodchuck would chuck as much wood as a woodchuck could chuck wood! S.V. www.viemeister.us

    8. Re:Oldie but goodie... by Anonymous Coward · · Score: 0

      A woodchuck would chuck as much wood as a woodchuck could chuck if a woodchuck could chuck wood.

      Duh.

    9. Re:Oldie but goodie... by FlyByPC · · Score: 1

      Man, I wish I had some Mod points right about now; one of the best +1 Funny candidates I've seen in a while.

      If it weren't so passé to yell "MOD PARENT UP", I would.

      Oh, wait...

      --
      Paleotechnologist and connoisseur of pretty shiny things.
    10. Re:Oldie but goodie... by toddbu · · Score: 1
      A woodchuck would chuck as much wood as a woodchuck could chuck if a woodchuck could chuck wood.

      Wrong!

      The "how much" isn't a question of desire, but rather one of capacity and capability. When you say that "A woodchuck would chuck...", you're saying that his desire is to chuck as much wood as possible. But the correct answer is "A woodchuck could chuck...", so that regardless of whether we're talking about lazy woodchucks or industrious woodchucks, the answer is the same. Therefore, the correct answer is indeed...

      A woodchuck could chuck as much wood as a woodchuck could, if a woodchuck could chuck wood.

      --
      If you don't want crime to pay, let the government run it.
    11. Re:Oldie but goodie... by vurg · · Score: 1

      A canner can can as many cans as he can, but that is if he can can cans.

    12. Re:Oldie but goodie... by IconBasedIdea · · Score: 1

      New York State wildlife expert Richard Thomas found that a woodchuck could chuck around 35 cubic feet of dirt in the course of digging a burrow. Thomas reasoned that if a woodchuck could chuck wood, he would chuck an amount equal to 700 pounds. Such sayeth Cecil. http://www.straightdope.com/classics/a2_083a.html

    13. Re:Oldie but goodie... by emurphy42 · · Score: 1

      How much work would a network net if a network could net work?

    14. Re:Oldie but goodie... by Anonymous Coward · · Score: 0

      Sorry, wrong. It was a trick. The canner is a she. ;)

    15. Re:Oldie but goodie... by Jeremi · · Score: 1
      I always liked:


      How many hordes could a Mongol hoard, if a Mongol horde hoards hordes?

      --


      I don't care if it's 90,000 hectares. That lake was not my doing.
    16. Re:Oldie but goodie... by biryokumaru · · Score: 1

      Gasp! You misquote the gospel!?


      I think you mean:

      How many boards would the Mongols hoarde if the Mongol hordes got bored?

      --
      When you're afraid to download music illegally in your own home, then the terrorists have won!
    17. Re:Oldie but goodie... by scrote-ma-hote · · Score: 1

      Seeing as we're playing that game, I really like the Japanese tounge twister. (Look at all those mo's!)

      Sumomo mo momo mo momo no uchi. (Sorry, can't show it to you in hiragana, it looks much cooler)

      Translation is: Plum and peach are both in the peach family.

    18. Re:Oldie but goodie... by legalize.ganja.now. · · Score: 1

      >=2

    19. Re:Oldie but goodie... by Alsn · · Score: 1

      There you go ;) Dont know if any of it should be in kanji, but thats in pure hiragana right there anyway.

    20. Re:Oldie but goodie... by utexaspunk · · Score: 1

      How much wood would a woodchuck chuck if a woodchuck could chuck wood?

    21. Re:Oldie but goodie... by h4lphl33tor · · Score: 1

      French one:

      Si six scies scient six cigares, six cent six scies scient six cent six cigares.

      (The x is silent and the "scies" and "scient" are also pronounced exactly the same as "si", so it sounds like : si si si si si si gare, ....)

    22. Re:Oldie but goodie... by Anonymous Coward · · Score: 0

      *wads up paper* *hits Jeremi with it*

  12. One possible solution: by heinousjay · · Score: 5, Funny

    Turn a light on.

    --
    Slashdot - where whining about luck is the new way to make the world you want.
    1. Re:One possible solution: by radtea · · Score: 5, Interesting

      Turn a light on.

      I was once a judge at a "Phyics Olympics" where there was one puzzle in which students had to figure out the wiring if a circuit consisting of a couple of light bulbs and a couple of switches. They were "supposed" to solve the puzzle by flipping the switches, noting what lights were on and off, and inferring the circuit.

      One team took the apparatus apart and inspected the wiring.

      I gave 'em full marks.

      The head judge went spare.

      Science is not a game, and there aren't any rules according to which you are "supposed" to solve the problem. Alexander the Great was demonstrating the practice of experimental science when he unravelled the Gordian knot, and Feyrabend was onto something when he said, "Anything goes."

      Puzzles set by humans have more to do with communication between the puzzle-setter and the puzzle-solver than anything else. Some people even decry computer-generated puzzles because of this--they say that the pleasure they get from solving puzzles comes from the feeling of interaction with another mind.

      --
      Blasphemy is a human right. Blasphemophobia kills.
    2. Re:One possible solution: by Anonymous Coward · · Score: 0

      Or set the dog on fire.

    3. Re:One possible solution: by Anonymous Coward · · Score: 0

      Or set the dog on fire.

      For the benefit of any visitors to Slashdot unfamiliar with our glorious traditions, that post was a homage to possibly the greatest Slashdot puzzle answer since time began.

    4. Re:One possible solution: by jbridge21 · · Score: 1

      that wouldn't have happened to be the us physics olympiad training camp in 2000, would it?

  13. Fork in the road by Anonymous Coward · · Score: 1, Interesting

    You are stranded on an island, on a path which splits in two directions. One direction takes you to "The Village of Death", the other path takes you to "The Village of Life." There are two tribes of people living on the island, one which ALWAYS TELLS THE TRUTH and one which ALWAYS LIES. A person is standing at the fork in the road. What is the ONE QUESTION (micro-variants don't count) you can ask this person which will ALWAYS get you to the Village of Life. Remember that you don't know which tribe the person is from.

    1. Re:Fork in the road by Xavic · · Score: 1

      which way is your village...

    2. Re:Fork in the road by rah1420 · · Score: 1

      Assuming that the truth-teller comes from the village of life (you didn't specify) then simply point down one of the forks and ask the person "Is this the road to your village?"

      If the person answers "Yes" then take the path.

      Reasoning is that the truth teller will always tell the truth and that's the right way. Since the liar will always lie, he'll say "yes" as well and that will be a falsehood.

      --
      Mit der Dummheit kämpfen Götter selbst vergebens.
    3. Re:Fork in the road by 75th+Trombone · · Score: 1

      Answer being:

      'If I ask someone from the other tribe which path leads to the Village of Life, what will he tell me?'

      --
      The United States of America: We do what we must because we can.
    4. Re:Fork in the road by Robber+Baron · · Score: 1

      You are stranded on an island, on a path which splits in two directions. One direction takes you to "The Village of Death", the other path takes you to "The Village of Life." There are two tribes of people living on the island, one which ALWAYS TELLS THE TRUTH and one which ALWAYS LIES. A person is standing at the fork in the road. What is the ONE QUESTION (micro-variants don't count) you can ask this person which will ALWAYS get you to the Village of Life. Remember that you don't know which tribe the person is from.

      That's easy. You pick either guy (it doesn't matter which one) and ask him: "If you were the other guy, which way would you tell me to go to get to the village of life?", and then choose the opposite path to the one he tells you.

      --

      You're using her as bait, Master!

    5. Re:Fork in the road by JohnnyBigodes · · Score: 1

      That's an easy one. You just ask him where he's from. You will always get to go to the Village of Life.

    6. Re:Fork in the road by BJH · · Score: 1

      No.

      IF truthteller AND path_to_own_village THEN YES
      IF liar AND path_to_own_village THEN NO
      IF truthteller AND NOT path_to_own_village THEN NO
      IF liar AND NOT path_to_own_village THEN YES

      That still leaves you with no way to know which one is the correct path.

    7. Re:Fork in the road by iamdrscience · · Score: 1

      You can ask them a question about anything that you already know, i.e. hold up 3 fingers and ask how many fingers you're holding up. You can ask about their tribe or villages because you don't know where they're from so you won't know the truth from a lie.

    8. Re:Fork in the road by Anonymous Coward · · Score: 0

      There is only one person to ask, no "other guy"

    9. Re:Fork in the road by another+blockhead · · Score: 1

      In a slightly different guise, Martin Gardner discussed this in the Scientific American many years ago. As he usually did, he later published comments from his readers, one of whom pointed out that there are liars who tell the opposite of the truth ("honest liars"), and liars whose intent is to deceive ("cunning liars"). A cunning liar would discern the intent of the question and would give an answer calculated to mislead. If you don't know which type of liars you might meet, the reader suggested the question, "Did you know they are serving free beer in the village [of life]?"

      Here's a twist on that problem:

      The planet Pfooey is inhabited by robots. Half of the robots always tell the truth, but the other half have been affected by a bug in their software that causes them to lie at all times. All of the robots look exactly alike, so it can be confusing to figure out which robots are truth-tellers and which are liars.

      One day, a visitor to Pfooey stopped at a fork in the road. Two robots approached the tourist from the road on the left. The tourist said, "I'm on my way to Bitborough. Which road should I take?"

      One of the robots replied, "We've just come from Iteropolis. If you asked me, I'd say Bitborough is to the right." The other robot pointed to the first and said, "That one's a liar. Bitborough is to the left." The tourist thanked the robots, then continued on the road to the left until she reached her destination a short time later.

      How did the tourist figure out which way to turn?

    10. Re:Fork in the road by Aranth+Brainfire · · Score: 1

      And the liar responds: "He will tell you to go screw yourself."

      --
      "Quoting yourself is stupid." -Me
    11. Re:Fork in the road by Anonymous Coward · · Score: 0

      "Are you standing at a fork in the road?"

    12. Re:Fork in the road by spyinnzus · · Score: 1

      The traveler just came from Iteropolis, knowing Iteropolis was in fact not to the left?

    13. Re:Fork in the road by Rob_Ogilvie · · Score: 1

      > How did the tourist figure out which way to turn?
      Because women can read men, and robots from Pfooey, like books. :-)

      --
      Rob
    14. Re:Fork in the road by Anonymous Coward · · Score: 0

      You'll notice that both YES answers lead to the truthteller's village. However, I think the PP added a constraint that was not present in the original problem in order to turn it into one he knew the answer to.

    15. Re:Fork in the road by Captain+Splendid · · Score: 1

      Problem: You haven't asked him which road to take so you're fucked.

      --
      Linux, you magnificent bastard, I read the fucking manual!
    16. Re:Fork in the road by iamdrscience · · Score: 1
      There is only one person to ask, no "other guy"
      This is true, but you could just say "if you were from the other village..." instead and it would work the same way.
    17. Re:Fork in the road by toddbu · · Score: 1

      Doesn't this assume that all truth tellers are from the Village of Life and all liars are from the Village of Death? I don't remember reading that in the original question.

      --
      If you don't want crime to pay, let the government run it.
    18. Re:Fork in the road by iamdrscience · · Score: 1
      Problem: You haven't asked him which road to take so you're fucked.
      Solution: Instead, ask him which direction his village is.
    19. Re:Fork in the road by Aeiri · · Score: 1

      If they answer "no", that means you can take the other path safely no matter what. If they answer "yes", then you can take that path no matter what.

      See, if they are a liar and they say path A isn't their path, then path B is safe. If they are a truth teller and they say path A isn't a path to their village, then path B is safe in this instance as well.

      If they are a liar and they say path A IS their path, then path A is safe. If they are a truth teller and they say path A is a path to their village, then path A is safe in this instance as well.

      So, if you ask "is this the path to your village?", what you are really asking, no matter what type of person they are, their answer will be "yes" on the path of life, and "no" on the path of death.

    20. Re:Fork in the road by Shaper_pmp · · Score: 1

      One question only, remember.

      "So... you might be a habitual liar, or you might be a habitual truth-teller... how many fingers am I holding up?"

      "Three"

      "Hah! It was two! You're the liar! So I take path... erm... um... uh... (guesses at random, and runs a 50% chance of dying horribly)".

      The answer is to ask them "Assuming I want to find the Village of Life, which path would someone from the other village to you tell me to take?"

      You then take the other path.

      This works, because either you'll have a truth-teller, who will (truthfully) pass on the lie that the other-village-resident would have told you, or you have a liar, who will lie and tell you the opposite path to the one the truth-teller would have told you.

      Either way, you know you've been lied to exactly once, so you choose the opposite path and live happily ever after.

      --
      Everything in moderation, including moderation itself
    21. Re:Fork in the road by maxwell+demon · · Score: 1

      And of course the truth-teller could say: "I don't know. Otherwise I'd already be there, instead of standing here and thinking about what to do."

      --
      The Tao of math: The numbers you can count are not the real numbers.
    22. Re:Fork in the road by maxwell+demon · · Score: 1

      Which the liar will probably answer with the direction you came from :-)

      --
      The Tao of math: The numbers you can count are not the real numbers.
    23. Re:Fork in the road by maxwell+demon · · Score: 1

      Indeed I'd expect both to come from the Village of Life, because if they were from the Village of Death, they certainly would be dead!

      --
      The Tao of math: The numbers you can count are not the real numbers.
    24. Re:Fork in the road by Anonymous Coward · · Score: 0

      "Which way would a person from other tribe tell me to go, if I asked him for directions to the Village of Life?"

      The answer always leads to the Village of Death, so take the other road.

  14. Petals of the Rose by Alien54 · · Score: 4, Interesting
    I personally like the petals of the rose

    Bill Gates is said to have solved the problem by memorizing the combinations first, the brute force approach.

    It ones of those that requires a knack for seeing the simple things

    --
    "It is a greater offense to steal men's labor, than their clothes"
    1. Re:Petals of the Rose by two_stripe · · Score: 1

      Hehe. Thats quite a good one. I figured it out after two rolls, though i can see how frustrating it would be if you didnt pick up on this quickly :)

    2. Re:Petals of the Rose by Alien54 · · Score: 2, Interesting
      though i can see how frustrating it would be if you didn't pick up on this quickly :)

      Unfotunately, one rumor says that the smarter you are, the longer it takes to figure out.

      Because smart people often fall for complex solutions.

      --
      "It is a greater offense to steal men's labor, than their clothes"
    3. Re:Petals of the Rose by guardiangod · · Score: 1

      That's not too bad, it took me 7 rolls and the "name is important" hint to figure it out ;)

    4. Re:Petals of the Rose by Anonymous Coward · · Score: 0

      It's really the more visually you think (e.g. artists), the faster you get it. if you think in terms of numbers and equations (mathematicians and engineers), then it takes longer.

      that page circulated around at my previous workplace (a game company), and all the artists got it right away, while all the engineers struggled. it drove me nuts that one particular artist got it before me :)

      i came up with an equation before i realized the simple solution.

      (n%2) * (n-1) summed up for each of the dice.

    5. Re:Petals of the Rose by Damer+Face · · Score: 2, Funny

      I did 3 or 4 rolls and decided to get all intelligent at it and do some pattern analysis, so I fired up excel and solved it whilst waiting. It was something about the wording of the version I saw just gave it away.

      The moral is, anything you think you need excel for can almost certainly be done quicker without.

    6. Re:Petals of the Rose by Large+Bogon+Collider · · Score: 1

      *scratches head* ... oh now I see. The name is definitely the solution to this seemingly odd, but elegantly simple puzzle. I need to get some dice soon so I can tort^h^h^h^h play with someone.

    7. Re:Petals of the Rose by iamdrscience · · Score: 1
      Unfotunately, one rumor says that the smarter you are, the longer it takes to figure out. Because smart people often fall for complex solutions
      I think this is true, I tried it and didn't get it right off but then I read your post, particularly the last line of it and I got it after a roll or two. It's easier when you know it's not supposed to be complex.
    8. Re:Petals of the Rose by kent_eh · · Score: 1

      Unfotunately, one rumor says that the smarter you are, the longer it takes to figure out.

      I have figured out how to answer the puzzle, but I have no idea how the name relates to that understanding of the solution to the puzzle.

      What does that say about me?

      --

      ---
      "I can't complain, but sometimes still do..." Joe Walsh
    9. Re:Petals of the Rose by Rob_Ogilvie · · Score: 1

      >I have figured out how to answer the puzzle,
      >but I have no idea how the name relates to
      >that understanding of the solution to the
      >puzzle.
      >
      >What does that say about me?

      Well, after my first role (which I correctly guessed - a WAG, to be specific) I did a ctrl+u and figured out the rules of the game. I still have no idea how the name of the game relates to the solution to the puzzle, however.

      What does this say about me? :-)

      --
      Rob
    10. Re:Petals of the Rose by Anonymous Coward · · Score: 0

      The funny thing is, when my friends introduced me to this game I figured it out fairly quickly, but my algorithm was mathematical! I was surprised the anwer was actually a lot simpler than my method.

    11. Re:Petals of the Rose by Rob_Ogilvie · · Score: 1

      Indeed - you should be ashamed. Look at the source next time. Let The Source be with you.

      --
      Rob
    12. Re:Petals of the Rose by Ravear · · Score: 1

      i had seriously been working on this off-on for like half a year. Then I saw this post and started crunching the "its really simple" and "significant name" hints hard. So, yes, finally done. I really don't think very visually at all.

    13. Re:Petals of the Rose by 3rdParty · · Score: 1

      um, IMHO, smart people remember the solution :p

      Seriously, if you've ever spent any time trying o figure it out, then learn the secret, how can you forget it for long? I didn't even remember what it was called, but as soon as I rolled the dice, it was obvious.

    14. Re:Petals of the Rose by kent_eh · · Score: 1

      Ahhh... That explains all the comments about "visually" oriented people "geting it" right away.
      And here I was counting letters in the words of the name, and trying to figure out how they related to the 2 signifigant faces of a die.

      --

      ---
      "I can't complain, but sometimes still do..." Joe Walsh
    15. Re:Petals of the Rose by Keebler71 · · Score: 1

      Gee, I hope that isn't true because I got it on the first roll...well, at least I figured out the logic, I actually entered the wrong number because of an arithmetic error. Guess I am dumb.

      --
      "It takes considerable knowledge just to realize the extent of your own ignorance." - Thomas Sowell
    16. Re:Petals of the Rose by Ravear · · Score: 1

      lol

    17. Re:Petals of the Rose by QuaZar666 · · Score: 1

      I wish i had mod points to mod you down. The point of petal around the roses is to figure it out, its a simple game and no rules should be given except the name of the game. I first played this about a year ago and remember the struggle I had on it the first time, but after going through a few rolls of the dice, I figured out the pattern.

    18. Re:Petals of the Rose by Anonymous Coward · · Score: 0

      That's why your only ever given the three rules. Anymore information makes it too easy to work out.

    19. Re:Petals of the Rose by NormalVisual · · Score: 1

      I feel kind of bad - as soon as I saw what the game consisted of, I knew what to do before even making a single roll and thought "this can't be a real puzzle". Doesn't reflect well on my intelligence, assuming it's true that it takes the smarter people longer to figure it out. :-)

      --
      Please stand clear of the doors, por favor mantenganse alejado de las puertas
    20. Re:Petals of the Rose by NanoGator · · Score: 1

      "It ones of those that requires a knack for seeing the simple things"

      Funny you should mention that. The particular site I saw that mentioned this game had a few comments on the site complaining about the suggestion that it is harder for smart people to get this. Your comment is, in a vague way, similar to this feeling. (well.. at least enough for the purposes of my post...) Frankly, I wouldn't have ever gotten this puzzle if not for some of the hints that have repeatedly dished out from the various sites I read about it. I don't attribute this to being particularly smart, though I can understand why people would see it this way. The problem is that when you solve computer problems, you instantly reduce everything down to numbers. I was looking for a numerical solution, not one based on the visual I was given. When you program for a while, you have a reflex to do just that. I think it's more of a reflection of one's occupation than it is a reflection of how one sees the 'simple things'. (Not that those are polar opposites or anything..)

      --
      "Derp de derp."
    21. Re:Petals of the Rose by rheotaxis · · Score: 2, Funny

      Is it cheating to just read the JavaScript at http://www.borrett.id.au/computing/petals-j.htm where you can play the game? I'm not saying its right, becuase I didn't know what the answer should be, so beware.

      --
      Software freedom...I love it!
    22. Re:Petals of the Rose by Anonymous Coward · · Score: 0

      Good christ. MOD DOWN the spoiler (parent)

    23. Re:Petals of the Rose by Anonymous Coward · · Score: 0

      same as me. my very first guess was "CORRECT!" and then I felt disappointed that I didn't even get the enjoyment of puzzling it out.

    24. Re:Petals of the Rose by Moofie · · Score: 1

      Guess I'm smarter than whoever started that rumor, because I'm pretty sure that simple generalizations about smartness are pretty inaccurate.

      --
      Why yes, I AM a rocket scientist!
    25. Re:Petals of the Rose by epgandalf · · Score: 1

      I felt really bad because it took me about 30 roles and 20 minutes to figure it out. I feel really bad. I eventually figured out that it was something visual, but I solved it before I realized how it related to the name.

    26. Re:Petals of the Rose by Pendersempai · · Score: 1

      Remove all the ones, twos, fours, and sixes, add up the remaining dice, and subtract the number of dice that remain. :)

    27. Re:Petals of the Rose by 91degrees · · Score: 1

      What I find fascinating is that Bill took a couple of hours to get it, but he kept plugging away until eventually he got it.

      I find that sort of tenacity quite remarkable.

    28. Re:Petals of the Rose by Blaaguuu · · Score: 0

      I was wonderign if anyone would post this... I've always heard it refered to as Petals Around The Rose, though. It was actually the first program I wrote in C++, too!

      --
      My hand touched her hand. Her hand touched her boob. By the transitive property, I got some boob! Algebra is awesome!
    29. Re:Petals of the Rose by Hortensia+Patel · · Score: 1

      Hmm. I accidentally read the flamebait-modded AC spoiler at the bottom of these replies, but TBH I'm quite glad I did. I doubt I'd have got it any time soon, and it's not an 'interesting' solution. I'd be pissed off if I'd spent any significant amount of time on it.

      I also don't see what the name of the puzzle has to do with anything, possibly because IANAFlorist. Is there some crucial piece of information about roses I was lacking?

    30. Re:Petals of the Rose by themoodykid · · Score: 1

      I hate you. It's that simple?! After working on it for an hour, I came up with a solution that worked all the time, or so I thought. I then realized it was wrong after reading someone else's post and trying it again. Now I read yours and realize the trick to it.

      I should've tested my idea a bit more to realize it was flawed, and then fixed the problem and simplified it before reading these comments. (My "solution" worked because statistically there is a good chance it works out the right answer most of the time. Heh, now that's reasonable engineering if it is within the fault tolerance! :-D)

    31. Re:Petals of the Rose by Anonymous Coward · · Score: 0

      I didn't know it, but found it dull. To me, the name of the puzzle immediately gave away the solution.

    32. Re:Petals of the Rose by tinkerton · · Score: 1

      Caught on after the first roll.
      If the really smart folks find this a tough riddle, I wonder what that makes me. No, don't tell.

    33. Re:Petals of the Rose by Anonymous Coward · · Score: 0

      Why the hell is that -1 flaimbait.

      It's the correct answer. Wanking moderator....

    34. Re:Petals of the Rose by kanweg · · Score: 1

      Well, that is what I did, so I can produce the answers. But I still can't figure out what the name of the game has to do with it. May it have to do with the fact that I'm a non-native speaker?

      Bert

    35. Re:Petals of the Rose by Anonymous Coward · · Score: 0

      Got it right on the first try..........
        I just thought to myself that it had to be a cryptic solution that relied on the die in a simple yet unobvius way, then the description "always zero or an even number" and ofcause the name of the game really blew the whole thing.

      A fun little game, but hardly a brainteaser.

    36. Re:Petals of the Rose by Anonymous Coward · · Score: 0

      That's an algorithm to get the same answer as the correct solution, but it is not the solution. The solution is to simply count the rose petals. Incidentally, you should be modded down for revealing the solution. As should I.

    37. Re:Petals of the Rose by fdiskne1 · · Score: 1

      This will get you the answer, and would be the way to program it, but there's a way to do it without as much math. I've seen at least one post in this discussion that explains it well.

      --
      But why is the rum gone?
    38. Re:Petals of the Rose by Armchair+Dissident · · Score: 2, Funny
      Oh, I don't know about that :)

      I solved it after the first roll. Here's how I did it:

      1. Right-click on the window, select "View source"
      2. Search for "Accept guess" in the source. Note the name of the routine called
      3. Look at function, including the algorithm for the solution
      4. Wait for light to dawn as to how the puzzle got its name...!


      I'm not sure that's how you're supposed to solve it, but Hey - worked for me :-)
      --

      The ways of gods are mysteriously indistinguishable from chance.
    39. Re:Petals of the Rose by pfafrich · · Score: 0, Troll

      Well I'm one of those who got it first time, the name entirely gave the solution away, which of the dice looked like petals around a rose?

      --
      There are four sorts of people in the world: fools, lunatics, idiots and morons. - Umberto Eco, Foucaut's pendulum.
    40. Re:Petals of the Rose by TrappedByMyself · · Score: 1

      I did that too. Mr Lloyd Robert Borrett broke the rules by revealing the solution...
      Just more proof that there are many different kinds of 'smart' in the world.

      --

      Help me take back Slashdot. When did 'News for Nerds' become 'FUD and Conspiracy Theories for Extremist Nutjobs'?
    41. Re:Petals of the Rose by Anonymous Coward · · Score: 0

      It was modded own for revealing the answer. Why "flamebait"? I dunno, but that's about as good as any other option for down-modding.

    42. Re:Petals of the Rose by Tim+Browse · · Score: 4, Funny
      Unfotunately, one rumor says that the smarter you are, the longer it takes to figure out.

      Max: My teacher tells me beauty is on the inside.
      Fletcher: That's just something ugly people say.

      -- "Liar Liar"

    43. Re:Petals of the Rose by Dun+Malg · · Score: 1
      I personally like the petals of the rose Bill Gates is said to have solved the problem by memorizing the combinations first, the brute force approach. It ones of those that requires a knack for seeing the simple things

      I wonder which name for it is the "true name"? I've heard it called both "Petals on the Rose" and "Petals around the Rose". I've always thought that "around" was more of a hint (almost a dead giveaway, even) than "on".

      --
      If a job's not worth doing, it's not worth doing right.
    44. Re:Petals of the Rose by Anonymous Coward · · Score: 0

      Or arrogant, that you simply MUST have something and cannot let anything go as everything centers around whether or not you get something.

    45. Re:Petals of the Rose by raap · · Score: 2, Interesting

      My math teacher posed this problem as the so called "bear guardian test". It went like this: You are to become an ice bear guardian at the north pole. You know the following facts:

      1. Bears appear only in pairs.
      2. Bears live in holes. No holes - no bear.

      That's all the information given. After the dice are rolled, you have to tell the number of holes and the number of bears. To make it harder, he did not always roll five dice, but varied from 2 to 5 dice. We tried like crazy for 45 minutes without getting a solution. Note that in this variation of the puzzle, the name does not give away the solution.
      It impressed me so much, that I haven't forgotten this lesson even after being out of school for more than 20 years.

    46. Re:Petals of the Rose by po8 · · Score: 1

      Me too. I formed two related hypotheses upon reading the instructions, and it turns out the second one was correct, so I had one wrong answer. :-)

      What an idiot I must be.

    47. Re:Petals of the Rose by Anonymous Coward · · Score: 0

      int sum = 0;
      for ( int i=0; inumDice; ++i )
          if ( dice[i] & 1 ) sum += (dice[i] - 1);

      If number is odd, subtract one, then add into the sum.

    48. Re:Petals of the Rose by 91degrees · · Score: 1

      Thats true, but I don't see that as a problem. I've known a lot of geeks with that sort of personality. Arrogance is esential for progress. A lot of steps forward have been made because some geek dismissed established theory.

    49. Re:Petals of the Rose by Jambon · · Score: 1
      Bill Gates is said to have solved the problem by memorizing the combinations first, the brute force approach.

      Bill Gates using brute force to solve a problem? Inconceivable!

    50. Re:Petals of the Rose by Doyle · · Score: 1

      Bill Gates is said to have solved the problem by... the brute force approach.

      Are you sure that wasn't Ballmer?

    51. Re:Petals of the Rose by Anonymous Coward · · Score: 0

      That's not arrogance. Arrogance would be presuming to be smarter than others because you finished and they didn't. That's more like perfectionism.

    52. Re:Petals of the Rose by Lehk228 · · Score: 1

      that was an interesting puzzle. I won't give it away for anyone reading who hasn't figured it out

      --
      Snowden and Manning are heroes.
    53. Re:Petals of the Rose by Lehk228 · · Score: 2, Funny

      the game involves throwing dice not chairs

      --
      Snowden and Manning are heroes.
    54. Re:Petals of the Rose by Lehk228 · · Score: 1

      it's not even the way to program it. while running die[n] = random(1,6) if(condition) { do appropriate modification to %ans }

      --
      Snowden and Manning are heroes.
    55. Re:Petals of the Rose by Ramses0 · · Score: 1

      Sharing with all my slashdot friends:

      When I saw the original article, I snagged the text and implemented a version of petals around the rose.

      I like the presentation of it all, just remember: "If you figure it out, you don't want to give the idea away to these other jokers around you. Make them work for the answers, too."

      --Robert

    56. Re:Petals of the Rose by Antyrael · · Score: 1

      So... it's bad I got it right on the first try? Damnation!

      --
      Expectations are for the unprepared.
    57. Re: Petals of the Rose by gidds · · Score: 1
      The name of the game actually STOPPED me from figuring it out: I was getting all bound up in Fibonacci numbers (which govern the number of petals you get round flowers and similar features, e.g. the number of spirals on pineapples and the seed in sunflowers). I couldn't work out how on earth you'd get multiples of two out of it.

      Then, when I saw hints that the name was important, I started measuring the petals on the picture of a rose on the site, and then tried using the numbers to count out the letters in the name...

      I've spent nearly an hour going through umpteen possibilities, looking at sums and products, permutations, cycles, even comparing the colour and orientation of the die images... Eventually I gave up and read this thread. Can I just express my frustration with having WASTED NEARLY AN HOUR OF MY LIFE ON THIS STUPID *$£%@# PUZZLE!!! Thank you. I feel better now.

      Which I guess shows that us smart folk do indeed have more trouble with it...

      --

      Ceterum censeo subscriptionem esse delendam.

    58. Re:Petals of the Rose by sewiv · · Score: 1

      I *never* would have gotten this one without reading this post, and then
      it was immediately obvious.

      I hate these things, and hate the way I get stuck on them. Even though I know I'll beat my head on the wall for hours, try a million different algorithms, and then go crawling back for clues, I still have to try every new one I see. And fail. Again.

    59. Re:Petals of the Rose by sewiv · · Score: 1

      Ah, so the point of the "game" is to have secret knowledge and lord it over those who don't? Is smirking in a superior manner, guaranteed to make someone else want to break your face, also required?

      Thanks for clarifying your viewpoint.

    60. Re:Petals of the Rose by gfody · · Score: 1

      how does the "the name is important" help you to derive this translation to apply before summing the values?

      1=0
      2=0
      3=2
      4=0
      5=4
      6=0

      this puzzle has nothing to do with roses or petals!

      --

      bite my glorious golden ass.
    61. Re:Petals of the Rose by QuaZar666 · · Score: 1

      no the secret of the game is that nobody gives anyone the answer, because once you figure out the game then the game is over and well it sucks after you figure it out. sorta like the game NOT PRON (which is another great game)

    62. Re:Petals of the Rose by DulcetTone · · Score: 1

      Not usually very good at these things, but I got this in two rolls with 3 taken as confirmation. Woo hoo!

      tone

      --
      tone
    63. Re:Petals of the Rose by gooru · · Score: 1

      That was pretty interesting. I had a nice string of correct guesses and then wham! an incorrect guess. I eventually looked at the JavaScript to figure it out. I highly doubt I would have ever figured this one out. :(

    64. Re:Petals of the Rose by Suicyco · · Score: 1

      That took me exactly 30 seconds to figure out.

      That is the dumbest puzzle I have ever seen.

      Just look at the dice. What would you surmise is a "petal" around the "rose"? I guessed the rose must be the 1 dot in the middle of a dice, so any dice that had a 1 dot, you simply count the other dots around it. Whoop-de-friggin do. Perhaps I have a knack for seeing outside the box, I don't know, but it wasn't a brain teaser at all. And I just took a wild guess.

      Bill Gates must be a genius.

    65. Re:Petals of the Rose by Petrushka · · Score: 1

      Hmn, I guess you didn't see it ... :-)

    66. Re:Petals of the Rose by RexxFiend · · Score: 1

      hell, that's nothing, I figured out the puzzle before I was even aware of its existence!

      sheesh, what's with all the intellectual dick-measuring in this thread anyway?

      --

      A crash reduces
      Your expensive computer
      to a simple stone.
    67. Re:Petals of the Rose by Anonymous Coward · · Score: 0

      Bunch of intellectual dicks, I guess.

      I think a lot of us thought the idea that the faster we solved it, the stupider we were was a pretty funny idea.

  15. What angle forms when it is 2:15? by imstanny · · Score: 1
    What is the degree of the angle between the hour hand and the minute hand when it is 2:15?

    If you have a piece of paper, and you draw any quadrilateral of any size (rhombus, rectangle, or square) on that piece of paper. How can u divide that piece of paper in half so that it also evenly divides teh quadrilateral?

    If you have a 5 gallon jug and a 3 gallon jug of water, and a hose so u can refill any as u please. What are the steps to get exactly 4 gallons of water?

    1. Re:What angle forms when it is 2:15? by st0rmshad0w · · Score: 1

      Jugs-

      Fill the 3G and pour it into the empty 5G. Refill the 3G and pour into the 5G until full, this leaves 1 gallon in the 3G. Empty the 5G and pour the contents of the 3G (1 gallon) into the 5G. Now fill the 3G and pour completely into the 5G, making 4 gallons total in the 5G.

    2. Re:What angle forms when it is 2:15? by Monkelectric · · Score: 1

      Yea ... we all saw diehard 3.

      --

      Religion is a gateway psychosis. -- Dave Foley

    3. Re:What angle forms when it is 2:15? by DeuceTre · · Score: 1

      (a) the angle between the 2 and the 3 is 1/12*360 degrees but the two is 1/4 of the way between the 2 and the 3 so the final answer is 3/4*1/12*360 or 22.5 degrees. (b) i'm not sure how to answer this (c) i believe it's supposed to also include a 8 gallon jug too. for more info and a solution, visit: http://www.stormloader.com/ajy/waterjug.html

    4. Re:What angle forms when it is 2:15? by WMD_88 · · Score: 1

      Die Hard 3 doesn't actually give you the whole solution. They skip a scene. Myself, I read about it in a book.

    5. Re:What angle forms when it is 2:15? by eonlabs · · Score: 1

      With any parallelogram (Rhombii, Rectangles, and Squares are all parallelograms), if you split it through the center point, you end up with two pieces of equal size. They are also rotationally symmetric.

      --
      I wouldn't consider the mad hatter mad. Just reality impaired. He sure can make a mean cup of tea.
    6. Re:What angle forms when it is 2:15? by Anonymous Coward · · Score: 0

      The clock one was on the NJ Math League test last year. I love these problems, except when i can't solve them, then I get frustrated.

    7. Re:What angle forms when it is 2:15? by nwbvt · · Score: 1
      " What is the degree of the angle between the hour hand and the minute hand when it is 2:15?"

      I have a digital clock you insensitive clod.

      "If you have a piece of paper, and you draw any quadrilateral of any size (rhombus, rectangle, or square) on that piece of paper. How can u divide that piece of paper in half so that it also evenly divides teh quadrilateral?"

      I have no idea if this will work (sorry, its late), but if you were to take the point at the center of the paper and the point at the center of the quadrilateral and draw a line the hit both points, won't it divide both the drawing and the paper in half?

      "If you have a 5 gallon jug and a 3 gallon jug of water, and a hose so u can refill any as u please. What are the steps to get exactly 4 gallons of water?"

      I liked that movie too.

      --
      Mathematics is made of 50 percent formulas, 50 percent proofs, and 50 percent imagination.
    8. Re:What angle forms when it is 2:15? by Anonymous Coward · · Score: 0

      Sorry, the question was how to fold the paper in half so that each half holds exactly half the parallelogram.

      As stated, the problem is unsolvable because there is no restriction on where the parallelogram may be on the page.

      The only generalized solution is to find the center of the paper and the center of the parallelogram and make the fold through there. However, this is not generalized for any parallelogram and must be calculated each time a new parallelogram is drawn.

    9. Re:What angle forms when it is 2:15? by squidinkcalligraphy · · Score: 1

      I say it is a first degree angle

      --
      "I think it would be a good idea" Gandhi, on Western Civilisation
    10. Re:What angle forms when it is 2:15? by some+guy+I+know · · Score: 1
      As stated, the problem is unsolvable because there is no restriction on where the parallelogram may be on the page.
      That's not a problem.
      The only generalized solution is to find the center of the paper and the center of the parallelogram and make the fold through there. However, this is not generalized for any parallelogram and must be calculated each time a new parallelogram is drawn.
      Nothing has to be calculated.
      Finding the center of any quadrilateral using simple folding is relatively straightforward:
      Given quadrilateral ABCD.
      Fold paper so point A is touching B.
      Where the fold crosses line AB is the midpoint of line segment AB.
      Call this point Q.
      Do similar folds to get midpoints of BC, CD, and DA, called R, S, and T.
      Fold along DQ (that is, through points D and Q) and along BT.
      Where these two folds cross is the center of triangle ABD.
      Call this crossing point A'.
      Similarly fold along AR and along CQ to get point B',
      along BS and along DR to get point C',
      and along CT and along AS to get point D'.
      Fold along A'C' and along B'D'.
      Where these two folds cross is the center of the quadrilateral.
      Finding the center of a rectangular piece of paper is easier: Fold top-to-bottom and side-to-side.
      Where the folds cross is the center of the page.
      Fold through the center of the page and the center of the qudrilateral, and you're done.
      --
      Those who sacrifice security to condemn liberty deserve to repeat history or something. - Benjamin Santayana
    11. Re:What angle forms when it is 2:15? by wealthychef · · Score: 1

      This reminds me of an old joke: What time is it when you go to see the dentist? Tooth hurty! :-)

      --
      Currently hooked on AMP
  16. SEND + MORE = MONEY by Radio+Shack+Robot · · Score: 1

    SEND + MORE = MONEY What number does each word represent? The letters represent a single decimal digit. There is only 1 solution to this problem.

    --

    Beep. Boop. Beep. You have questions. I have answers and your home address.
    1. Re:SEND + MORE = MONEY by iamdrscience · · Score: 1

      The original poster left out stipulation that two letters cannot represent the same digit.

    2. Re:SEND + MORE = MONEY by Physics+Dude · · Score: 1
      The solution is not unique unless there are additional restrictions. For example:

      SEND == 9552, MORE == 1005, MONEY == 10557
      SEND == 9554, MORE == 1005, MONEY == 10559
      SEND == 9553, MORE == 1005, MONEY == 10558

      ...all seem to work fine.

      Do the letters each have to represent a UNIQUE decimal digit? ... or be non-zero? It also seems like a requirement to be unique can't be satisfied either, so what's missing here?

    3. Re:SEND + MORE = MONEY by Anonymous Coward · · Score: 0

      Noo, each letter is an integer, so SEND = S*E*N*D

    4. Re:SEND + MORE = MONEY by Anonymous Coward · · Score: 0

      Regardless, if E = 0, then the equation becomes 0 * (SND + MOR) = 0 * (MONY), which is true for all values of S, N, D, M, O, R, Y.

    5. Re:SEND + MORE = MONEY by maxwell+demon · · Score: 1

      You want to maximize the money.

      --
      The Tao of math: The numbers you can count are not the real numbers.
    6. Re:SEND + MORE = MONEY by Physics+Dude · · Score: 1

      Thanks... that's what I get for reading slashdot late at night. ;)

    7. Re:SEND + MORE = MONEY by Physics+Dude · · Score: 1

      Actually, I finally looked this up on google. The numbers must be UNIQUE digits between 0 ant 9.

    8. Re:SEND + MORE = MONEY by Physics+Dude · · Score: 1

      Sorry, you're wrong. Actually, I finally looked this up on google. The numbers must be UNIQUE decimal digits between 0 ant 9.

    9. Re:SEND + MORE = MONEY by iamdrscience · · Score: 1

      The question is supposed to be an addition problem, that is, "SEND" is one number, "MORE" is another number and "MONEY" is a third, with each letter representing a digit.

  17. Sample Question Answer by Anonymous Coward · · Score: 0

    I think the answer is either:

    1. Turn the lights on, put 9 heads in each group
    2. Cut all the coins in half and seperate...close enough to being split up

    both may be technically correct, the best kind of correct...

    cnidarian

    1. Re:Sample Question Answer by Anonymous Coward · · Score: 0

      Or, you could just take 18 coins, flip those coins and call that the first pile. The rest of the coins will then have the same number of coins heads up as the pile you flipped.

  18. Sleeping Beauty! by Anonymous Coward · · Score: 0

    The case of Sleeping Beauty:

    We plan to put Beauty to sleep by chemical means, and then we'll flip a (fair) coin. If the coin lands Heads, we will awaken Beauty on Monday afternoon and interview her. If it lands Tails, we will awaken her Monday afternoon, interview her, put her back to sleep, and then awaken her again on Tuesday afternoon and interview her again.
    The (each?) interview is to consist of the one question: what is your credence now for the proposition that our coin landed Heads?

    When awakened (and during the interview) Beauty will not be able to tell which day it is, nor will she remember whether she has been awakened before.

    She knows the above details of our experiment.

    What credence should she state in answer to our question?

    -------
    Some people, "halfers", consider that the answer to this question is obviously "1/2". Others, "thirders", consider that it is obviously "1/3".

  19. Easy Solution using Advanced Physics by Anonymous Coward · · Score: 0

    Fork universe as needed.

    flip arbitrary number of quarters, seperate into two even groups.

    If groups do not contain an equal number of heads up quarters, destroy universe.

    The universe that remains will have the right number of quarters.

  20. How do you turn a cabin into a beach hut`? by Hektor_Troy · · Score: 1

    You integrate it.

    --
    We do not live in the 21st century. We live in the 20 second century.
    1. Re:How do you turn a cabin into a beach hut`? by RichardX · · Score: 1

      About your sig..

      I presume you have "cellar door" in your sig due to the fact it's often said those particular words has an especially attractive sound when detached from their individual meanings. This has been attributed to various different people, and often just "a famous linguist". In fact it was J.R.R Tolkien who said it in his essay "English and Welsh"

      Just thought you might want to know... probably not though.
      We now return you to your irregularly programmed schedule.

      --
      Curiosity was framed. Ignorance killed the cat.
  21. How about... by mnemonic_ · · Score: 1

    a closed form solution to the Navier-Stokes equations? Quite a riddle I'd say.

    1. Re:How about... by LeonGeeste · · Score: 1

      You can't put the general solution to the N/S equtions in closed form. They figured that out a long time ago.

      --
      Rank my idea: http://www.sinceslicedbread.com/node/531
  22. I + I = by Anonymous Coward · · Score: 0

    a window |+|

  23. Link to online version by beacher · · Score: 1

    Kind of annoying background music - link to an online Soduku game is here

    1. Re:Link to online version by Anonymous Coward · · Score: 0

      Here's my favorite math question - How many levels down from the top of a first post does it take to become a karma whore?

    2. Re:Link to online version by Anonymous Coward · · Score: 2, Informative

      Seven.

    3. Re:Link to online version by mnemonic_ · · Score: 1

      This is the correct answer.

    4. Re:Link to online version by bioglaze · · Score: 1

      You meant sudoku. I was once supposed to create a generator for those puzzles, but didn't finish it, because it wasn't needed.

      --
      Who is John Galt?
  24. why.. by Anonymous Coward · · Score: 0

    Why do they call them slashdot editors?

  25. Spoiler by Hektor_Troy · · Score: 1

    Integrate cabin = log( cabin ) + c.

    "Log cabin plus sea".

    --
    We do not live in the 21st century. We live in the 20 second century.
    1. Re:Spoiler by Anonymous Coward · · Score: 0

      I'm probably missing something completely obvious... but why is the cabin being logged?

      Let x = cabin
      INTEGRATE(xdx) = 0.5x^2 + c

    2. Re:Spoiler by Hektor_Troy · · Score: 1

      You're right - my bad.

      It's integrate its reciprocal value. integrate(1/cabin) = log( cabin ) + c. D'oh.

      --
      We do not live in the 21st century. We live in the 20 second century.
  26. What do you get if you multiply 6 by 9? by Doc+Ruby · · Score: 2, Interesting

    42

    --

    --
    make install -not war

    1. Re:What do you get if you multiply 6 by 9? by fcrick · · Score: 1

      if 42 is actually a number is base 13, this works out...4 13s and 2 is 54, which is 6 times 9

      --
      Your signatures belong to me.
    2. Re:What do you get if you multiply 6 by 9? by Anonymous Coward · · Score: 3, Funny

      Nobody writes jokes in base 13.

    3. Re:What do you get if you multiply 6 by 9? by Doc+Ruby · · Score: 1

      Finally. The Earth's natural base is widely known as its unlucky number.

      --

      --
      make install -not war

    4. Re:What do you get if you multiply 6 by 9? by isolenz · · Score: 0

      and all this time I was thinking that it was 101010

      --
      isolenz

      cowboyneal rocks!

    5. Re:What do you get if you multiply 6 by 9? by Doc+Ruby · · Score: 1

      Well, there are 10 kinds of people in this world - those who know binary, and...

      --

      --
      make install -not war

    6. Re:What do you get if you multiply 6 by 9? by jag164 · · Score: 2, Interesting

      #define SIX 1+5
      #define NINE 8+1

      printf("TATLTUAE = %d, SIX * NINE);

    7. Re:What do you get if you multiply 6 by 9? by Vapebait · · Score: 0

      There are 10 types of people in this world - those who know binary, those who don't, and those who prefer to make jokes in base 3.

    8. Re:What do you get if you multiply 6 by 9? by Anonymous Coward · · Score: 0

      42 :)

    9. Re:What do you get if you multiply 6 by 9? by Doc+Ruby · · Score: 1

      "And that, my liege, is how we know the Universe is not PEMDAS." - Sir Bedivere

      --

      --
      make install -not war

    10. Re:What do you get if you multiply 6 by 9? by meowsqueak · · Score: 1

      I thought this was more widely known? The answer is meant to be correct (in base 13 arithmetic) but the base hadn't converged to ten at the time the question was 'read' so it was dismissed as useless by Ford.

    11. Re:What do you get if you multiply 6 by 9? by mfrank · · Score: 1

      Why do hackers always confuse Christmas and Halloween?

      Because Oct 31 is the same as Dec 25

    12. Re:What do you get if you multiply 6 by 9? by Anonymous Coward · · Score: 0

      It's actually:
      There are 11 types of people in this world - those who know binary, those who don't, and those who confuse binary with ternary.

    13. Re:What do you get if you multiply 6 by 9? by JediTrainer · · Score: 1

      That reminds me of the old Abbott & Costello routine, where Costello "proves" to Abbott on a blackboard that

      7 x 13 = 28

      28 / 7 = 13

      and 13+13+13+13+13+13+13=28

      It was quite enlightening.

      --

      You can accomplish anything you set your mind to. The impossible just takes a little longer.
    14. Re:What do you get if you multiply 6 by 9? by Doc+Ruby · · Score: 1

      I don't remember that A&C routine from my extensive viewings of their material. I was probably too young to get the joke, and lucky I didn't remember well enough to destroy my mathematics education :). I found , though.

      --

      --
      make install -not war

  27. Solution by Frequency+Domain · · Score: 3, Interesting

    Since it's an infinite sequence, you can separate the left-most X and rest still equals 2. Thus X^2 = 2, so X = sqrt(2).

    1. Re:Solution by lawpoop · · Score: 1

      "you can separate the left-most X and rest still equals 2. Thus X^2 = 2, so X = sqrt(2)."

      I'm going to risk making an ass of myself and call BS. OK, so you can remove the left-most X. And then remove the new left-most X, ad infinitum. Since its an infinite series, you never run out of X^s, you can *always* remove the left-most X^, and you have the same amount that you had before: an infinite amount. So you never get to X^2, you still have X^X^X..., no matter how many left-most X^s you remove.

      --
      Computers are useless. They can only give you answers.
      -- Pablo Picasso
    2. Re:Solution by seminumerical · · Score: 2, Informative
      very nice!

      check it empirically by entering this as a google search:

      sqrt(2)^(sqrt(2)^(sqrt(2)^(sqrt(2)^(sqrt(2)^(sqrt( 2)^(sqrt(2)^(sqrt(2)^(sqrt(2)^sqrt(2)))))))))

      You don't actually need all the brackets:

      sqrt(2)^sqrt(2)^sqrt(2)^sqrt(2)^sqrt(2)^sqrt(2)^sq rt(2)^sqrt(2)^sqrt(2)^sqrt(2)^sqrt(2) will work just as well. It knows to evaluate from right to left.

      --
      In wartime... truth is so precious that she should always be attended by a bodyguard of lies. (Churchill)
    3. Re:Solution by Tyler+Eaves · · Score: 1

      Yea, total bs. An infinite series of x>0, will either be 0 (if x 1

      --
      TODO: Something witty here...
    4. Re:Solution by Tyler+Eaves · · Score: 1

      Sigh, slahdot ate my comment

      == 0 if x LESS THAN 1
      == 1 if x EQUALS 1
      == Infinity if x GREATER THAN 1

      (for positive x)

      --
      TODO: Something witty here...
    5. Re:Solution by dgatwood · · Score: 1
      That was poorly worded. Try this:

      Because it is an infinite series, removing a single "X-to-the" term is still an infinite series with the same value. Thus, you can substitute in the right hand value for the exponent.

      If (X^X^...) = 2
      and X^(X^X^...) = 2
      then X^(2) = 2

      --

      Check out my sci-fi/humor trilogy at PatriotsBooks.

    6. Re:Solution by seminumerical · · Score: 1
      I think some people are mistaking an infinite sequence^H^H^H^H^H^H^H^H number of powers for an infinite series.

      sqrt(2)^sqrt(2) ... with 32 terms is equal to 1.9999

      --
      In wartime... truth is so precious that she should always be attended by a bodyguard of lies. (Churchill)
    7. Re:Solution by Fractal+Dice · · Score: 1

      I think you're thinking ((x^x)^x)^x... instead of x^(x^(x^...))). (*) The original post is ambiguous but I believe it means the later form (it takes a moment to wrap one's head around the difference - consider 3^(3^3)=7625597484987 vs (3^3)^3=19683).

      Now, consider g(x)=x^(x^(x^...)) (the limit as the height of the tower reaches infinity). x^g(x)=x^(x^(x^(x^...)))=g(x). (sort of the way 1.11111... = 1+(1.1111111/10). If g(x)=2 then x^g(x)=2 and x^2=2. Thus x=sqrt(2) as the parent put it.

      Why doesn't this work for the former formula? Because x^g(x)=x^(((x^x)^x)^...) and isn't g(x). We could naivey try g(x)^x, but this isn't equal to g(x) because of the quirks of where the limit is when we try to define an infinite function (I don't really have a nice simple way to explain that other than to say "the '...'s don't line up").

      I hope that's a little clearer? (try calculating with sqrt(2) and it will start to slowly converge to 2)

      (*) although then the answer would be undefined if x=0, 1 if 0<x<=1, infinite if x>1

    8. Re:Solution by Nick+haflinger · · Score: 1

      try this instead (same answer) X^X^X... = 2 log(X)(X^X^X...) = log(X)2 (X^X^X...)(log(X)X) = log(X)2 2*1=log(X)2 1 = log(X)2^1/2 X = 2^1/2

    9. Re:Solution by wildsurf · · Score: 4, Interesting

      Since it's an infinite sequence, you can separate the left-most X and rest still equals 2. Thus X^2 = 2, so X = sqrt(2).

      Disprufe(TM) by contradiction:

      1. Suppose sqrt(2) ^ sqrt(2) ^ sqrt(2) ^ ... = n.
      2. Then, sqrt(2) ^ (sqrt(2) ^ sqrt(2) ^ ...) = n.
      3. Hence, sqrt(2) ^ n = n.
      4. Therefore, n obviously equals 4, because sqrt(2) ^ 4 = 4.
      5. Hence, sqrt(2) ^ sqrt(2) ^ sqrt(2) ^ ... equals 4, not 2, so it can't be the solution to the original problem.

      What's wrong with this logic? ;-)

      --
      Weeks of coding saves hours of planning.
    10. Re:Solution by Anonymous Coward · · Score: 0


      3. Hence, sqrt(2) ^ n = n.
      4. Therefore, n obviously equals 4, because sqrt(2) ^ 4 = 4.

      The equation in step 3 has more than one solution. Another solution is n = 2.

    11. Re:Solution by nothings · · Score: 1
      To notate it more clearly:

      Let f(x) = x^(x^(x^...))). We know f(x) = 2.

      Now consider x^f(x). If we expand that out, we get x^(x^(x^...)).

      So:

      x^f(x) = f(x) [by expansion]
      x^2 = 2 [substitution]
      x = +-sqrt(2)

      So, question: why does x = -sqrt(2) not work?

    12. Re:Solution by Thomas+Miconi · · Score: 1

      3. Hence, sqrt(2) ^ n = n.
      4. Therefore, n obviously equals 4, because sqrt(2) ^ 4 = 4.


      It also works with n=2. It's rather obvious that sqrt(2) ^ 2 = 2 ("the square root of 2, squared, equals 2" - Duh !)

      5. Hence, sqrt(2) ^ sqrt(2) ^ sqrt(2) ^ ... equals 4, not 2, so it can't be the solution to the original problem.

      See above.

      What's wrong with this logic? ;-)

      The only question here is "Why does sqrt(2) ^ n = n have at least two solution even though I can derive it from sqrt(2) ^ sqrt(2) ^ sqrt(2) ^ ... = n which hould only have one ?"

      The problem lies with the original equation (x^x^x... = n). The derivation of the "solution" for this equation is incorrect.

      x^x^x^x... = n
      => x^(x^x^x^x...) = n (OK - call this Eq. A)
      => x^n = n (Yes, but not only that ! This is the core of the problem. This implication is not an equivalence - we lose some information in this step !)
      => "We just have to solve for whatever n we have" (WRONG)

      Let us start back from Eq. A:
      x^(x^x^x^x...) = n
      => x^x^(x^x^x^x...) = n (just another rewriting)
      => x^(x^x^x^x...) = x^x^(x^x^x^x...)
      => x = x^x

      This equation has two solutions: 0 and 1.

      The original problem (x^x^x^x... = 2) simply has no solution at all.

      The logical fallacy (from which other strange results such as yours follow) is the assumption that this equation does have a solution, and negligence in the derivation (i.e. losing some information along the way: the classical trap of confusing implications and equivalences; solving equations should only be based on equivalences, and in this derivation we use a step that can only denote an implication, since other consequences are disregarded in the rewriting).

      Thomas.

    13. Re:Solution by mrgeometry · · Score: 1

      Good question. Here's my attempted answer but maybe someone else will have a better one.

      First of all, you have to look out for circular logic: "If f(-sqrt(2)) = 2, then (-sqrt(2))^f(-sqrt(2)) = 2". Tempting but wrong.

      Well, just because it's not a proof doesn't mean -sqrt(2) is not a solution. To really address that, you have to go back to the original question.

      x^x^x^x^...

      has to be defined carefully. The only way I can imagine to define it is

      lim_{n\to \infty} x^(x^(x^...)) (x appearing n times)

      The solution other people have posted works out something like this: Call that limit f(x); it might be 0, infinity, non-convergent, or convergent to a finite value. For example, f(1) = 1 and f(2) = infinity (the sequence of finite exponential towers grows without bound).

      For some values of x, f(x) is undefined because x^x is undefined, and so every term in the sequence is undefined (they each have an (x^x) up at the top of the tower). For example, 0^0 is not defined, and so f(0) is not defined; similarly (-sqrt(2))^(-sqrt(2)) is not defined: if y0, then y^(p/q) is defined if q is odd, but what on earth is it otherwise? Should we take a limit of y^(p/q) as p/q \to -sqrt(2), with q odd? Ugh. I don't remember real analysis well enough to say whether that limit would converge. I guess when I say -sqrt(2)^-sqrt(2) is "undefined" what I mean is that the arithmetic operation ^ is undefined; but maybe there's some sort of gruesome "continuous extension".

      Well, if f(-sqrt(2)) is undefined, then that means -sqrt(2) is not a solution to the problem (which after all was "solve f(x)=2").

      I mean, this f satisfies the functional equation x^F(x) = F(x). Your argument shows that if g is a function satisfying that equation and x is a real number such that g(x) = 2, then x = +/- sqrt(2). But -sqrt(2) is not in the domain of our function f.

      As someone else pointed out, it's also not obvious that if g(sqrt(2)) is defined then necessarily g(sqrt(2)) = 2. A priori, g(sqrt(2)) could be 4, 8, 16, or any power of two.

    14. Re:Solution by Anonymous Coward · · Score: 0

      This is a fine solution, but the king is under no obligation to actually call all prisoners k+2 times. He only needs to call every prisoner once.

    15. Re:Solution by Anonymous Coward · · Score: 0

      That is insufficient. The king calls k other prisoners and always turns the cup right side up afterwards. Then he proceeds to call the counter prisoner and everybody else in any order. In this scenario the counter misses k "up" states, so he only counts to (n-1)(k+2)-k. That means the counter never sees (n-1)(k+2)-1 "up" states, so the prisoners never come free. For a correct solution see http://ask.slashdot.org/comments.pl?sid=165444&cid =13802367

    16. Re:Solution by nolen · · Score: 1

      I agree that there is a problem in the derivation, but "The original problem (x^x^x^x... = 2) simply has no solution at all" is incorrect. Try the sequence sqrt(2), sqrt(2)^sqrt(2), sqrt(2)^sqrt(2)^sqrt(2), etc. The limit of that sequence is the only reasonable definition of sqrt(2)^sqrt(2)^... and it is clearly approaching 2. I agree that the derivation is problematic, but the result is correct.

    17. Re:Solution by WillWare · · Score: 1
      I got curious about this solution, and tried the following empirical test.

      x = y = 2 ** 0.5
      for i in range(1000):

      print i, y
      y = x ** y

      This obviously converges toward 2.0. It turns out that the later comment that (2**0.5)**4 == 4 is also true. I'm not sure if there is some kind of paradox there, but I think the bit about the 4th power is a red herring.

      Christ, given the number of programmers and CS people and IT people on Slashdot, shouldn't it be possible to offer a "PRE" tag so one can post code??

      --
      WWJD for a Klondike Bar?
    18. Re:Solution by Anonymous Coward · · Score: 0
      Well, you said "obviously" at one point in your proof, which is immediately suspicious. So let's look at step 4:


      > sqrt(2) ^ n = n. => n obviously equals 4, because sqrt(2) ^ 4 = 4.


      Well, sqrt(2) ^ 2 = 2 as well. So you can only conclude that n=2 or n=4.

    19. Re:Solution by Anonymous Coward · · Score: 0

      Let us start back from Eq. A:
      x^(x^x^x^x...) = n
      => x^x^(x^x^x^x...) = n (just another rewriting)
      => x^(x^x^x^x...) = x^x^(x^x^x^x...)
      => x = x^x


      The problem with your argument is not using enough bracketing.
      If you write the first line as:
          x^(x^(x^(x^(x^...)))) = n
      Then the rest of it immediately doesn't work:
          x^(x^(x^(x^(x^...)))) != (x^x)^(x^(x^(x^...)))
      Moreover:
          (x^x)^(x^(x^(x^...))) = x^(x.x^(x^(x^...)))

    20. Re:Solution by pavon · · Score: 1

      Christ, given the number of programmers and CS people and IT people on Slashdot, shouldn't it be possible to offer a "PRE" tag so one can post code??

      Slashdot has the ecode tag for this. The difference is that it html markup is also printed as-is, whereas with the pre tag you would have to manually use &lt; and &gt; to spell out the tags, lest they be processed.

    21. Re:Solution by Anonymous Coward · · Score: 0

      Someone else wrote that before but it is simply not true. Calculate sqrt(2)^... for five times of so and you will see it is incorrect.

  28. My favorite logic riddle... by Anonymous Coward · · Score: 0

    How many Slashdot editors does it take to change a light bulb?

    1. Re:My favorite logic riddle... by Anonymous Coward · · Score: 0
      That's a good one. Here's my favorite:

      How many Slashdot editors does it take to change a light bulb?

    2. Re:My favorite logic riddle... by gauauu · · Score: 1

      That is the funniest one I've heard in a long time. I wish I had mod points to give to you....

  29. Jugs by Noksagt · · Score: 2, Interesting
    If you have a 5 gallon jug and a 3 gallon jug of water, and a hose so u can refill any as u please. What are the steps to get exactly 4 gallons of water?
    Fill the 5G jug. Pour it into the 3G jug, so you have 2G in the 5G jug. Empty the 3G jug & pour the 2G from the 5G jug into the 3G jug. Refill the 5G jug & finish filling the 3G jug. It will only take 1G, so you will have 4G in the 5G jug.
    1. Re:Jugs by xlsior · · Score: 1

      Alternatively: Fill the 3G jug. Pour it into the 5G jug. Fill the 3G jug again, and pour it in the 5G jug. 1G will remain in the 3G jug. Empty the 5G jug, and pour the 1G from the 3G jug into it. Fill the 3G jug up once more, and empty it into the 5G jug -- which will now contain 4G.

    2. Re:Jugs by Anonymous Coward · · Score: 0

      To recap your method..

      1) Fill the 5G jug and pour it into the 3G jug (2G left in 5G jug).
      2) Empty the 3G jug and pour the remaining 2G from the 5G jug into the 3G jug (2G in the 3G jug).
      3) Refill the 5G jug and finish filling the 3G jug (4G remaining in the 5G jug).

      I thought of it the other way around (starting with the 3G jug instead of the 5G)

      a) Fill the 3G jug and pour it into the 5G jug.
      b) Fill the 3G jug again and pour into the 5G as much as you can (you have 1G left in the 3G jug).
      c) Empty the 5G jug, pour the 1G left from the 3G jug into the 5G.
      d) Fill the 3G jug and pour it into the 5G jug already having 1G.

      Your method takes fewer steps but just thought it would be interesting to post the other way around.

    3. Re:Jugs by eluusive · · Score: 1

      Curses!!! I tried your way, but every time I went to pour the 5 gallon into the 3 gallon i spilled the rest of it!

    4. Re:Jugs by Anonymous Coward · · Score: 0

      5G Jugs? I rather prefer 36C Jugs

    5. Re:Jugs by kponto · · Score: 1

      Or you could just fill them both halfway.

      --
      This too, will end.
    6. Re:Jugs by WebGangsta · · Score: 1

      It's not a real riddle if Bruce Willis could figure it out in that one 'Die Hard' movie.

  30. Phone Numbers by futurekill · · Score: 1

    1. Grab a calculator (You won't be able to do this one in your head) 2. Key in the first three digits of your phone number (NOT the area code) 3. Multiply by 80 4. Add 1 5. Multiply by 250 6. Add the last 4 digits of your phone number 7. Add the last 4 digits of your phone number again 8. Subtract 250 9. Divide number by 2 Do you recognize the answer?

    --
    The gates in my computer are AND, OR and NOT; they are not Bill.
    1. Re:Phone Numbers by Anonymous Coward · · Score: 0

      First 3 digits = x, last 4 digits = y

      x
      80x
      80x + 1
      2000x + 250
      2000x + 250 + y
      2000x + 250 + 2y
      2000x + 2y
      1000x + y

      Do you recognize the answer?
      Why, I certainly do.

    2. Re:Phone Numbers by Anonymous Coward · · Score: 2, Informative

      H = first 3 digits
      T = last 4 digits

      [250*(80*H + 1) + 2*T - 250]/2
      [20000*H + 2*T]/2
      10000*H + T

    3. Re:Phone Numbers by MickLinux · · Score: 5, Funny

      Wow! It's my age! How did you do that?!?

      --
      Correct Horse Battery Staple: 72 bits of entropy. Enter "Correct H" into google. When it generates the phrase, that's
    4. Re:Phone Numbers by SnowZero · · Score: 3, Informative

      a = first 3 digits
      b = last 4 digits

      ((a*80+1)*250 + b+b -250)/2
      (a*20000 + 250 + b*2 - 250)/2
      a*10000 + 125 + b - 125
      a*10000 + b

      It's only amazing if you don't know algebra, and no, a calculator is not required. Then again, if the point is to encourage people to eventually put down their calculator and instead try understanding why something works, then I'm all for it.

    5. Re:Phone Numbers by arodland · · Score: 3, Informative

      Weak ;)

      (20000a + 250 + 2b - 250) / 2
      10000a + b

    6. Re:Phone Numbers by Chrax · · Score: 2

      I like my no-frills version of the game:

      Multiply the first three digits of your SSN by 1,000,000
      Multiply the middle two by 10,000
      Add those to the last four digits

      Holy shit, how did you do that!?

    7. Re:Phone Numbers by jZnat · · Score: 1

      Holy shit that's combination to my suitcase!

      --
      'Yes, firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.'
    8. Re:Phone Numbers by Shadowrose · · Score: 1

      Nope.

      Tried my Cell and my Home. And 555-5555. For the latter, I get 5555617.5.

      Try again? ^_^

    9. Re:Phone Numbers by Anonymous Coward · · Score: 0

      "And 555-5555. For the latter, I get 5555617.5."

      1. /me grabs calculator
      2. 555
      3. 555 * 80 = 44400
      4. 44400 + 1 = 44401
      5. 44401 * 250 = 11100250
      6. 11100250 + 5555 = 11105805
      7. 11105805 + 5555 = 11111360
      8. 11111360 - 250 = 11111110
      9. 11111110 / 2 = 5555555

      For the past 10 minutes I've been trying to figure out what exactly you screwed up... the best guess I've been able to come up with is that you subtracted 125 instead of 250... but that doesn't really make much sense. Please, if you work out what you did wrong, share with us, it's killing me :P

    10. Re:Phone Numbers by ValiantSoul · · Score: 1

      Take the year of the first performance of Carmen (1875) and multiply the first 3 digits of your phone # by it
      Add 1
      Multiply by the Apollo mission number that was the fifth NASA mission that led to humans on the moon (16)
      Add the random number 3734
      Divide by the first odd prime number (3)
      Subtract the year Beatus of Liébana published his Commentary on the Apocalypse (786)
      Add the last 4 digits of your phone number
      Subtract the Whyte classification number for the 1927 NYC named the Hudson (464)
      See anything you like?

      Yes I got bored

    11. Re:Phone Numbers by Anonymous Coward · · Score: 0

      No, absolutely meaningless.

    12. Re:Phone Numbers by swillden · · Score: 2, Informative

      These sorts of tricks are magical only to those who never took 7th-grade algebra (or won't apply it):

      Let a be the three-digit prefix and b be the four digit number.

      (((80a+1)250+2b)-250)/2

      (20000a + 250 + 2b - 250)/2

      (20000a + 2b)/2

      10000a + b

      Which is obviously your phone number. No, I didn't try it.

      More interesting tricks (not puzzles) of this sort rely on less-obvious (unless you know them) arithmetic facts, like relationships between numbers and the sum of their digits.

      --
      Note to ACs: I usually delete AC replies without reading them. If you want to talk to me, log in.
    13. Re:Phone Numbers by Anonymous Coward · · Score: 0

      He added 1.5 in step 4

    14. Re:Phone Numbers by Anonymous Coward · · Score: 0

      Your age?! Is that you, Methuselah?

    15. Re:Phone Numbers by RichardX · · Score: 1

      Heck, there are some people who'd be amazed by:

      1. Type in your SSN number
      2. HOLY CRAP DUDE! Look! The calculator knows your SSN! Hackers must've got in 'cuz it was broadcasting an IP address!

      --
      Curiosity was framed. Ignorance killed the cat.
    16. Re:Phone Numbers by Anonymous Coward · · Score: 0

      This was featured one year ago @ Georgia State University's PI mag. (math related mag). I believe it was written by one of the editors there.

    17. Re:Phone Numbers by Anonymous Coward · · Score: 0

      A calculator works, but actually it's best done on paper:

      let x = first 3 digits of your phone number = phoneNumber/10000 (C/C++ sense of '/')
      let y = last 4 digits of your phone number = phoneNumber%10000

      answer = (250*(80x + 1) + 2y - 250)/2
                  = (80x*250 + 250 + 2y - 250)/2
                  = 250*40*x/2 + 2y/2
                  = 10000x + y

      That explains why it's my age!

    18. Re:Phone Numbers by DrYak · · Score: 1
      Tried my Cell and my Home. And 555-5555. For the latter, I get 5555617.5.

      Try again? ^_^


      The riddle asked you to get a *CALCULATOR*,
      not a Intel Pentium !!!
      --
      "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
    19. Re:Phone Numbers by drsquare · · Score: 1

      OK:

      1. My phone number is 773114
      2. 773
      3. *80 = 61840
      4. +1 = 61841
      5. *250 = 15460250
      6. +3114 = 15463364
      7. +3114 = 15466478
      8. -250 = 15466228
      9. /2 = 7733114


      No I don't recognise that number.

  31. Answer to the Sample Question by FreemanPatrickHenry · · Score: 1

    I haven't thought about a more efficient way, but it seems that the surest bet would be to split the coins into two equal groups, and then flip all the coins in each group. You're most likely to end up with 25 heads up coins in each group (being the maximum entropy state).

    --
    I have discovered a truly marvelous .sig which, unfortunately, this space is too small to contain.
    1. Re:Answer to the Sample Question by Anonymous Coward · · Score: 0

      I'd say take 25 quarters in each hand and hold them all on edge.

    2. Re:Answer to the Sample Question by Anonymous Coward · · Score: 0

      flipping all the coins is the same as flipping none of the coins... unless they are already an equal number of heads, you haven't accomplished anything

    3. Re:Answer to the Sample Question by dcclark · · Score: 1

      You're onto, but not quite at, a type of solution that works for this problem, and my favorite generalization:

      Suppose you have an infinite number of quarters, and (say) 25 are heads, the rest tails. You can reach all of the quarters, but you can't see or feel their state. Find a finite-time way to split the coins into two groups which have equal numbers of heads.

      Asymptotic solutions ("spend 1 second flipping one coin, 1/2 second flipping the next, 1/4 flipping...") are not allowed. ;)

    4. Re:Answer to the Sample Question by Anonymous Coward · · Score: 0

      Just put them all on edge ;)

    5. Re:Answer to the Sample Question by Stalus · · Score: 4, Insightful

      Simply place any 18 coins into the second group and flip those over.

      If you flip a coin over that was heads, it is now tails and is eliminated from consideration. If you flip a coin over that was tails, it marks with heads a coin selected that was not heads. Therefore after 18 coins are flipped, the number of heads in the second pile is equal to the number of heads that are left in the first pile.

    6. Re:Answer to the Sample Question by Stalus · · Score: 1

      Grab 25 quarters and place them in the second group. Flip the 25 over.

      Then, wonder why you are concerned about such things when you have an infinite supply of money.

    7. Re:Answer to the Sample Question by c4miles · · Score: 2, Insightful

      If you balance all of the quarters on their edge you can choose any two arbitrary groupings - no coins would be heads up.

      But I prefer your solution.

    8. Re:Answer to the Sample Question by FreemanPatrickHenry · · Score: 1

      Not so. Since we're (presumably) assuming the system is random, the initial state of the system should not affect the final state. That is, if I take a group of quarters with 14 heads and 36 tails, and flip all of them, I should end up with about 25 heads and 25 tails.

      --
      I have discovered a truly marvelous .sig which, unfortunately, this space is too small to contain.
    9. Re:Answer to the Sample Question by Anonymous Coward · · Score: 0
      Man, I know it's not reasonable to expect people to read the articles, but can't you at least read the summary?

      Just one request: If you have figured out the solution, link to it in a post, rather than write it out where anyone can see it.

      Good job, Stalus and moderators.

    10. Re:Answer to the Sample Question by Anonymous Coward · · Score: 0

      Define flipping a coin: Is it flipping as in spinning a coin with a random result, or flipping as in turning the coin over so that the result is guaranteed to be opposite of the original?

      If the latter is the case, then this method should work. Otherwise, it of course won't.

    11. Re:Answer to the Sample Question by nwbvt · · Score: 1

      Aside from the ambiguous use of the word 'flip', the misuse of the concept of entropy, and the failure to read the problem description (assuming your plan works (which, lucky for you, it likely won't), you will have an odd number of heads making it impossible to solve), you completely missed the point of the riddle. The question wasn't to find a method that "might" or even "should" end up with the correct result, but one that "would" end up in the correct state.

      --
      Mathematics is made of 50 percent formulas, 50 percent proofs, and 50 percent imagination.
    12. Re:Answer to the Sample Question by JetCowBoB · · Score: 1

      Look ppl, the answer to this is quite simple. divy up the quarters into groups however you would like. then flip them all on edge and the same number now are heads up on both sides - none.

      to make it practical, put half the quarters on edge against one wall of the room, and the other half against the other half of the room.

      QED.

    13. Re:Answer to the Sample Question by ryanr · · Score: 1

      Oh. So it's not "make two rolls of quarters, so they are all on their edges"?

    14. Re:Answer to the Sample Question by nwbvt · · Score: 1

      Or while we are at it, you could always just pocket the quarters. Sure, you don't solve the problem, but you get $12.50 free. All the guy who came up with the actual solution (pull out 18 and flip all those) gets is a sense of satisfaction.

      --
      Mathematics is made of 50 percent formulas, 50 percent proofs, and 50 percent imagination.
    15. Re:Answer to the Sample Question by homesteader · · Score: 1

      I'm playing poker tomorrow night, you should come. Odds are you'll do very well!

    16. Re:Answer to the Sample Question by Tim+U. · · Score: 1

      Maybe it is just me, but I was unable to comprehend why your solution works. I used Perl to help me visualize it...

      tim@x1000:~/tmp$ perl -e '$a[$#a+1] = int rand 2 for 1..50; while(($ones = join("",@a) =~ tr/1/1/) != 18) { $ri = int rand($#a+1); $a[$ri] = $ones>18?0:1 } print "All: ",@a,"\n"; $g1 = join("",@a[0..17]); $g2 = join("",@a[18..$#a]); $g1c = $g1 =~ tr/1/1/; $g2c = $g2 =~ tr/1/1/; print "Group 1: $g1 ($g1c)\nGroup 2: $g2 ($g2c)\n"; $g1i = $g1; $g1i =~ tr/01/10/; $g1ic = $g1i =~ tr/1/1/; print "Group 1 Flipped: $g1i ($g1ic)\n"'
      All: 01010110000101001010110000100100001100000100001110
      Group 1: 010101100001010010 (7)
      Group 2: 10110000100100001100000100001110 (11)
      Group 1 Flipped: 101010011110101101 (11)
      tim@x1000:~/tmp$

      My answer would have been (had I been smart enough to solve it myself): "Set aside 18 coins and flip them all over. You'll have taken away x heads from the 18 total, and create 18 minus x heads when you flip them, so you'll be left with 18 - x heads in both groups"

    17. Re:Answer to the Sample Question by Ideasware · · Score: 1

      Yes. The other way to look at this answer is that by selecting 18 coins for the 2nd group, I have set it up so that the number of TAILS in the 2nd group = (the total number of heads - the number of heads in the 2nd group) = the number of HEADS in the 1st group. Flipping converts tails to heads, so then the numbers of heads in each group is equal. Works for any numbers, of course. Is there an extension of this process that would work for n-sided coins, or n groups of coins?

    18. Re:Answer to the Sample Question by Heian-794 · · Score: 1

      Another thing you could do would be to put all the coins in a stack, slice the stack in half, and match the top coin in the left half with the bottom coin in the right half, followed by #50 from the left stack with #2 from the right, gluing/welding them together until you get to #25 from the left and #25 from the right.

      You'll end up with quite a few mismatched coins, but the number of pure head coins and pure tail coins will be the same.

      Of course, that assumes all the coins are aligned correctly to begin with. Wouldn't want to weld Washington's forehead to another forehead and call that "heads"...

    19. Re:Answer to the Sample Question by Anonymous Coward · · Score: 0

      you are ill.

    20. Re:Answer to the Sample Question by FreemanPatrickHenry · · Score: 1

      Regarding entropy, I know I used it...loosely. By "highest entropy state," I simply meant the state in which there was the highest number of permutations possible. An equal number of heads and tails would fit that condition (disregarding the fact that there are an odd number of coins).

      --
      I have discovered a truly marvelous .sig which, unfortunately, this space is too small to contain.
  32. An original brain teaser by bratwiz · · Score: 2, Interesting

    Here is the little brain teaser I thought up-- see if you can solve
    it...

    In the following sequence:

    1, 4, 8, 13, 21, 30, 36, 44...

    What is the next number and why:

    A. 48

    B. 50

    C. 53

    D. 57

    E. 61

    F. There is no pattern

    1. Re:An original brain teaser by zhenlin · · Score: 1

      Ah, this is easy.

      The answer is all of the above.

      A is correct, and the polynomial is -41/40320 x^8 + 53/1440 x^7 -1583/2880 x^6 + (4 + 283/720) x^5 - (20 + 2527/5760) x^4 + (56 + 737/1440) x^3 - (90 + 107/10080) x^2 + (78 + 7/120) x - 27.

      B is correct, and the polynomial is -13/13440 x^8 + 353/10080 x^7 - 301/576 x^6 + (4 + 121/720) x^5 - (19 + 1873/5760) x^4 + (53 + 251/1440) x^3 - (84 + 305/2016) x^2 + (72 + 523/840) x - 25.

      C is correct, and the polynomial is -1/1120 x^8 + 163/5040 x^7 - 347/720 x^6 + (3 + 299/360) x^5 - (17 + 943/1440) x^4 + (48 + 121/720) x^3 - (75 + 913/2520) x^2 + (64 + 197/420) x - 22.

      D is correct, and the polynomial is -1/1260 x^8 + 29/1008 x^7 - 77/180 x^6 + (3 + 137/360) x^5 - (15 + 77/180) x^4 + (41 + 71/144) x^3 - (63 + 811/1260) x^2 + (53 + 251/420) x - 18.

      E is correct, and the polynomial is -1/1440 x^8 + 127/5040 x^7 - 269/720 x^6 + (2 + 67/72) x^5 - (13 + 289/1440) x^4 + (34 + 589/720) x^3 - (51 + 37/40) x^2 +
      (42 + 61/84) x - 14.

      F is correct, and the proof is left as an excercise to the reader.

    2. Re:An original brain teaser by bratwiz · · Score: 1

      Nope, interesting thought, but there is a real solution.

    3. Re:An original brain teaser by nmb3000 · · Score: 1

      At first glance it seems you were doing the series where each number is the previous number added to the number of letters it takes to spell out that number.

        1 | One (3) 1+3=4
        4 | Four (4) 4+4=8
        8 | Eight (5) 8+5=13
      13 | Thirteen (8) 13+8=21
      21 | Twenty-One (9) 21+9=30
      30 | Thirty (6) 30+6=36
      36 | Thirty-Six (9) 36+9=45
      45 | Forty-Five (9) 45+9=54

      However your pattern misses by one (44 vs 45). So either you have a mistake and the answer was supposed to be "C" (53 instead of 54 because of the mistake), or this isn't the correct pattern.

      --
      "What do you despise? By this are you truly known." --Princess Irulan, Manual of Muad'Dib
      /)
    4. Re:An original brain teaser by bratwiz · · Score: 1


      Yes, that is the pattern, and also I apologize for incorrectly transcribing my notes :) So you are both right and extra perceptive!

    5. Re:An original brain teaser by Surt · · Score: 1

      http://www.research.att.com/cgi-bin/access.cgi/as/ njas/sequences/eismum.cgi

      I am sorry, but the terms
      1, 4, 8, 13, 21, 30, 36, 44
      do not match anything in the table.
      If your sequence is of general interest, please send it to me using the form provided and I will (probably) add it to the data base! Include a brief description and if possible enough terms to fill 3 lines on the screen. I need a minimum of 4 terms.

      --
      "Who is the Journal of Quantum Physics going to believe?" --Stephen Hawking
  33. the nth root of n by ChipMonk · · Score: 1

    f(x)=x^(1/x)

    It is not defined for negative values or 0. It is defined only for x>0. At 1, f(x)=1, then it peaks somwehere in 2.71
    What I'm really interested in is the first derivative. Where f'(x) is 0, is the maximum of f(x). Just one catch: no limits in the formula. I don't want something that I need to calculate forever; I want a formula giving me a value I can calculate to an arbitrary precision.

    The problem comes into play with the (1/x) in the exponent. All attempts to derive this result in a formula which contradicts itself, due to 0 being in either the base or the denominator of the exponent in the original f(x).

    It is defeating all attempts of my college-intro-to-calculus. Searches at wolfram.mathematica.com don't help, either (or I'm just doing the wrong searches). Who can help?

    1. Re:the nth root of n by croto · · Score: 1

      I don't exactly understand what you you're interested in... is it just the first derivative? Ok it goes like that: log f=(1/x) log(x) ---> f'/f=((1/x)log(x))'=(1-log(x))/x^2 ---> f'(x)=x^(1/x) (1-log(x))/x^2 if you want to know where it peaks, well, f'(x)=0 when log(x)=1, that is, when x=e I just calculated it on a paper napkin, so it might have some mistake... but the idea should be clear

    2. Re:the nth root of n by sam_nead · · Score: 1

      Let f(x) = x^(1/x). So g(x) = log(f) = 1/x (log(x)). So g' = f'/f = (1/x)^2 - log(x)/x^2. Find that g' (and so f') is zero exactly when log(x) = 1. That is, when x = e. Logarithmic derivatives are your friend.

    3. Re:the nth root of n by Anonymous Coward · · Score: 0

      Matlab says ... diff( x^(1/x) ) = x^(1/x)*(-1/x^2*log(x)+1/x^2)

    4. Re:the nth root of n by Damer+Face · · Score: 1

      The best I can offer is to use complex numbers to transform the equation, something like the Laplace Transform. I have totally forgotten how to do any of this stuff, but I'm fairly sure it's what you're looking for.

    5. Re:the nth root of n by Damer+Face · · Score: 1

      Ah ... the joy of being far too slow and wrong to boot.

    6. Re:the nth root of n by jag2k · · Score: 1

      Don't know if you got this far: y = x^(1/x) ln(y) = x*ln(x) differentiation: 1/y = 1 + ln(x) y = 1/(1+ln(x))

    7. Re:the nth root of n by jag2k · · Score: 1

      Don't know if you got this far (try this again):

        y = x^(1/x)

        ln(y) = x*ln(x)

      differentiation:

      1/y = 1 + ln(x)

      y = 1/(1+ln(x))

    8. Re:the nth root of n by beefstu01 · · Score: 1

      Here's what I did, you may be able to follow along (I think it's the same as what the guys above did)--

      f(x) = x^(1/x) = e^ln(x^(1/x)) = e^[(1/x)ln(x)] (Log properties-- a = e^ln(a))

      f'(x) = {[d/dx] (1/x) ln(x)} * f(x) = (1/x^2) (1-ln(x)) x^(1/x) = (1-ln(x)) x^(-x - 2)

      To get your extreme point, you'll set f'(x) = 0, and we see that this can only happen at the point where ln(x) = 1, which is exactly at e^1 ~ 2.718. Problem solved.

      On a side note, I liked this one. I haven't done this calc in a while, and it's good to brush up.

    9. Re:the nth root of n by arodland · · Score: 1

      What you say doesn't really make any sense, especially the bits about limits. There's nothing especially contradictory about anything in the derivation either as long as you only worry about real numbers. f'(x) comes out to x^(1/x) * (1 - log x) / x^2 and its zero is at x=e.

    10. Re:the nth root of n by Anonymous Coward · · Score: 0

      are you joking about the f of one =2.71?
      bc clearly 1^1/1 equals one

    11. Re:the nth root of n by njh · · Score: 1

      You might be interested in Lambert's W function.

  34. Birthday Paradox by Anonymous Coward · · Score: 0

    If there are 23 people in a room, what are the chances that at least two of them will have the same birthday?

    see http://en.wikipedia.org/wiki/Birthday_paradox for more info.

  35. .999=1 by Anonymous Coward · · Score: 0

    'Nuff Said

  36. For the sake of the rest of the discussion by Y-Crate · · Score: 1

    Just to get an easy, universally-agreed-upon one out of the way.... .9999 =! 1

    Now we can move on to questions that can generate some real debate.

    1. Re:For the sake of the rest of the discussion by Tyler+Eaves · · Score: 1

      1/3 = .3_ (_ means repeating decimal)

      3/3 = 1

      3 * 1/3 = .9_ .9_ =1

      --
      TODO: Something witty here...
    2. Re:For the sake of the rest of the discussion by Anonymous Coward · · Score: 0

      You're wrong in two ways. First, it's "!=", not "=!". Second, an infinite decimal 0.a1a2a3a4a5... is *defined* as a1/10+a2/100+a3/1000+a4/10000+... . Thus .9999... = 9/10 + 9/100 + 9/1000 + ... = 9/10 ( 1+ 1/10 + 1/100 + 1/1000 + ...) = (standard calc formula) 9/10 * 1/(1-1/10) = 9/10 * 10/9 = 1. If this were formal, I'd use sigma notation and limits, but it's not.

      Bottom line: .9999... = 1, for any reasonable definition of .9999... .

    3. Re:For the sake of the rest of the discussion by eldacan · · Score: 1

      Yeah people say "you can always add one more decimal, you'll never reach quite 1".
      This is how I use to explain it:

      The notation 0.9_ is not "the number you get when you keep adding a 9 decimal for ever". This would be a bad definition: you're always adding something so you never "get" a number. The notation 0.9_ actually means "the number you're getting closer and closer to, when you keep adding a 9 decimal". This number is of course 1, so 0.9_ is just (by definition) another notation for the number 1. For the number 0.3_, we don't have an easy notation (like 1 for 0.9_), but we can use for example the notation 1/3.

  37. Look and Say by Noksagt · · Score: 5, Informative

    There's a good write up of this on MathWorld.

    1. Re:Look and Say by Anonymous Coward · · Score: 0

      Imagine a square grid. There are 4 frogs forming a 1x1 square at coordinates:
      (0,0) - (0,1) - (1,0) - (1,1)

      They can move by jumping over each other, even if they are not adjacent:

      Frog A can move over frog B, and will end up at position A', such as B is the center of A-A'

      (If you prefer, algebrically, A=(Ax,Ay), B=(Bx,By), will move A to A'(Bx+(Bx-Ax),By+(By-Ay))

      Can you move them to form a 2x2 square ?

      [I'll post the answer in a couple of days, if no-one posted it [which would be strange]]

    2. Re:Look and Say by Anonymous Coward · · Score: 0

      Answer:

      Every move can be reversed. If you can move from a 1x1 square to a 2x2, you would be able to move from a 2x2 to a 1x1. This would also mean that you can move from 1x1 to 0.5x0.5, which is obviously impossible.

  38. As I was walking to St. Ives... by LeonGeeste · · Score: 3, Funny

    I met a man with seven wives. Every wife had seven sacks, and every sack had seven cats, and ever cat had seven kits. Kits, cats, sacks, and wives, how many were going to St. Ives?

    --
    Rank my idea: http://www.sinceslicedbread.com/node/531
    1. Re:As I was walking to St. Ives... by two_stripe · · Score: 1
    2. Re:As I was walking to St. Ives... by techno-vampire · · Score: 1

      The traditional answer is one. However, "at least one" is more accurate because, although it never says the others are going to St. Ives, it also doesn't say they aren't.

      --
      Good, inexpensive web hosting
    3. Re:As I was walking to St. Ives... by Keebler71 · · Score: 2, Insightful

      depends on the definition of "with"

      --
      "It takes considerable knowledge just to realize the extent of your own ignorance." - Thomas Sowell
    4. Re:As I was walking to St. Ives... by ghc71 · · Score: 1

      Surely that't only the case if the teller is a married woman - the question specifies kits, cats, sacks, and wives.

      --
      - Sig files: contemptibly familiar the second time around.
    5. Re:As I was walking to St. Ives... by Cygnus78 · · Score: 1

      Don't start writing the riddle in the subject, at least without prefixing the body with ...

    6. Re:As I was walking to St. Ives... by Surt · · Score: 1

      Depends on whether you met at a fork in the road, and who walks faster.

      --
      "Who is the Journal of Quantum Physics going to believe?" --Stephen Hawking
    7. Re:As I was walking to St. Ives... by RichardX · · Score: 1

      I met a man with seven wives. Every wife had seven sacks, and every sack had seven cats, and ever cat had seven kits. Kits, cats, sacks, and wives, how many were going to St. Ives?

      There is no meaningful answer to your question.

      You haven't specified who, if anyone, is going to St Ives, but presumably it's zero.

      I think the question you were looking for is:

      As I was going to St Ives, I met a man with seven wives. Every wife had seven sacks, and every sack had seven cats, and ever cat had seven kits. Kits, cats, sacks, and wives, how many were going to St. Ives?

      --
      Curiosity was framed. Ignorance killed the cat.
    8. Re:As I was walking to St. Ives... by RichardX · · Score: 1

      Having said the above, you could just have cunningly disguised the first part of your question by putting it in the subject line of your post.
      Damn your eyes for being such a master of stealth and disguise! ..yeah, okay, I'm an idiot.

      --
      Curiosity was framed. Ignorance killed the cat.
    9. Re:As I was walking to St. Ives... by flimflam · · Score: 1

      prefixing the body with what? Don't leave us hanging?

      (Yes, I know what you mean, but it took me a minute...)

      --
      -- It only takes 20 minutes for a liberal to become a conservative thanks to our new outpatient surgical procedure!
    10. Re:As I was walking to St. Ives... by foreverdisillusioned · · Score: 1

      How do you figure? Are you for some reason assuming that the speaker is a cat, sack, kitten, or wife? As I mentioned in my reponse, I think that's a pretty unreasonable assumption.

  39. Re:Math and science are obsolete by Anonymous Coward · · Score: 0

    Get over it.

  40. Another online version by Enti · · Score: 5, Interesting

    http://www.websudoku.com/ is my sudoku fix of choice

    --
    In these days, bleeps and bloops mean something more
    1. Re:Another online version by codework · · Score: 1
    2. Re:Another online version by FunkyELF · · Score: 1

      #include //Compile : cc brainTwister.c //Run : ./a.out // //Option, cool output //Run : ./a.out -v | less

      int recurse();void findEmpty(int*i, int* j);void printBoard();void printBoard2();int checkBoard();

      int board[9][9] =
      {{8,5,0,6,1,3,0,4,7},
        {0,0,6,0,7,0,5,0,0},
        {9,0,0,0,0,5,0,1,0},
        {2,0,0,0,0,4,0,9,0},
        {0,1,0,5,9,0,0,0,6},
        {0,0,9,0,6,0,1,0,0},
        {0,0,5,0,3,0,8,0,0},
        {7,0,0,9,0,6,4,3,0},
        {6,3,0,4,0,0,0,5,9}};

      int v = 0;int main(int argc, char *argv[]){if(argc > 1)if(argv[1][0] == '-' && argv[1][1] == 'v')v = 1;recurse();}int recurse(){int i,j,k,l;if(checkBoard() == 0){return 0;}i = j = 0;findEmpty(&i,&j);if(i 0){// it is full
      printBoard();}else{// assign the empty spot 1 through 9
      for(k = 1 ; k = 9 ; k++){board[i][j] = k;if(v) printBoard2();recurse();board[i][j] = 0;}}}void findEmpty(int* i, int* j){for((*i) = 0 ; (*i) 9 ; (*i)++){for((*j) = 0 ; (*j) 9 ; (*j)++){if(board[*i][*j] == 0){return;}}}*i = -1;*j = -1;return;}void printBoard(){int i,j,l;for(i = 0 ; i 9 ; i++){for(j = 0 ; j 9 ; j++){printf("%d",board[i][j]);if(j != 8)printf(",");}printf("\n");}printf("\n");}void printBoard2(){int i,j,l;for(i = 0 ; i 9 ; i++){for(j = 0 ; j 9 ; j++){if(board[i][j] == 0)printf("_");else printf("%d",board[i][j]);}}printf("\n");}int checkBoard(){int used[10];// 0 through 9, but only use 1 through 9
      int i,j,k,l;// check horizontals
      for(i = 0 ; i 9 ; i++){// init used array
      for(j = 0 ; j = 9 ; j++){used[j] = 0;}for(j = 0 ; j 9 ; j++){if(board[i][j] != 0 && used[board[i][j]]){return 0;}else used[board[i][j]] = 1;}}// check verticals
      for(i = 0 ; i 9 ; i++){// init used array
      for(j = 0 ; j = 9 ; j++){used[j] = 0;}for(j = 0 ; j 9 ; j++){if(board[j][i] != 0 && used[board[j][i]]){return 0;}else used[board[j][i]] = 1;}}// check squares // here i and j are offsets, and we iterate through with k and l
      for(i = 0 ; i 9 ; i+= 3){for(j = 0 ; j 9 ; j+= 3){// init used array
      for(k = 0 ; k = 9 ; k++){used[k] = 0;}for(k = i ; k (i + 3) ; k++){for(l = j ; l (j + 3) ; l++){if(board[k][l] != 0 && used[board[k][l]]){return 0;}else used[board[k][l]] = 1;}}}}return 1;}

  41. Fuuuck... by Anonymous Coward · · Score: 0

    I picked the wrong night to log on to Slashdot after some heavy drinking.

    And I thought my head was hurting before...

  42. A True/False Oldie but Goodie by Quirk · · Score: 2, Interesting
    Since I tend to muck about in philosophy, history and epistemology I'll go with perhaps the most ancient riddle.

    Epimenides was a Cretan who made one immortal statement: "All Cretans are liars."

    "The Epimenides paradox is a problem in logic. This problem is named after the Cretan philosopher Epimenides of Knossos (flourished circa 600 BC), who stated , "Cretans, always liars". There is no single statement of the problem; a typical variation is given in the book Gödel, Escher, Bach (page 17), by Douglas R. Hofstadter.

    --
    "Academicians are more likely to share each other's toothbrush than each other's nomenclature."
    Cohen
    1. Re:A True/False Oldie but Goodie by l33td00d42 · · Score: 1

      You need to read books by Raymond Smullyan. This problem is child's play...

    2. Re:A True/False Oldie but Goodie by m50d · · Score: 1

      It's not a parodox, Epimenides is a liar because Bob the Cretan tells the truth.

      --
      I am trolling
    3. Re:A True/False Oldie but Goodie by Anonymous Coward · · Score: 0

      A Createn, not being Epimenides, has never spoken a lie. You could select a newborn child. Thus Epimenides is a lier, however that the statement "All Creatans er liers" is a lie, does not implie that all Cretans er truthsayers, it simply implies that not all Creatans er liers.

      There are many wordings of this "paradox" however 99% are wrong. People forget that general statements like "It snowed all year" being lies do not imply that the directly opposit statement "It didn't snow all year" are true. In this example both are wrong since i snowed only in winter.

    4. Re:A True/False Oldie but Goodie by slavemowgli · · Score: 1

      That's easy.

      First of all, what is a liar? It could either be someone who always lies or someone who only does some of the time; typically, a person will be called a liar even if they only lie sometimes.

      In that case, it's easy: if all Cretans are liars, then Epimenides is one, too, but that doesn't mean his statement is necessarily untrue.

      If it's not the case, then Epimenides' statement cannot be true. However, it can still be false: the negation is "there is at least one Cretan who is not a liar", but that Cretan doesn't have to be Epimenides.

      You do have a case if Epimenides is the only Cretan there is and if he never said anything else in his life, but then, it's just the stament "this statement is false".

      --
      quidquid latine dictum sit altum videtur.
    5. Re:A True/False Oldie but Goodie by swiftstream · · Score: 1

      I don't see the paradox that is supposedly there. It may be that all Cretans are not liers, but Epimenides is. Thus, he is lying when he says all Cretans are liers, so that all Cretans are not liers. It is perfectly consistent.

      The so-called paradox is simply a misunderstanding, or an assumption that Epimenides is a lier if and only if all Cretans are liers.

      --
      Be a PATRIOT--because the only thing we have to fear is the lack thereof.
    6. Re:A True/False Oldie but Goodie by serutan · · Score: 1

      The Epimenides paradox has always seemed silly to me. If Epimenides, a Cretan, states that all Cretans are liars, then he must be lying, and the premise that all Cretans are liars must simply be wrong. Some of them are liars and some aren't, and Epimenides happens to be one of the ones who are. No paradox.

      A single statement such as "I am telling a lie" is paradoxical because it can be neither true nor false. But two statements that rely on each other merely indicate that one of them must be wrong.

  43. Solution!! by Anonymous Coward · · Score: 0

    My girlfriend figured it out, I guess that makes her hot.

    Seperate 18 of the coins. The amount of heads remaining in the original pile will be equal to the amount of tails in the new pile. Flip over all the coins in the new pile to get the piles to have an equivilent number of heads.

    Example
    New Pile -- 5 heads, 13 tails
    Old Pile -- 13 heads, 29 tails

    flip new pile and get:

    New Pile -- 13 heads, 5 tails
    Old Pile -- 13 heads, 29 tails

  44. Divisible by 3 or 6? by jkevin99 · · Score: 1

    I learned this trick in grade school many years ago; I am often surprised at how many people haven't heard of it:

    How can you *quickly* determine if an integer is divisible by 3? By 6?


    Answer (with words reversed and spaces removed so you can think about it without seeing the answer too easily):


    .wellas6bydivisibleisitthen2byand3bydivisibleevenl yissumtheifAnd.well as3bydivisibleisnumberoriginalthethen,3bydivisible evenlyisnumbertheindigitstheof allofSUMtheIf

    1. Re:Divisible by 3 or 6? by dcclark · · Score: 2, Interesting

      Generalized problem: find a similar method (to the division by 3 or 6 rules) for any integer. Not all are fast ways, but there is a relatively simple solution for any integer. A fun one to try is 11. Hint: write the number in base 11 and use modular arithmetic.

    2. Re:Divisible by 3 or 6? by richieb · · Score: 1
      The same trick work for 9.

      --
      ...richie - It is a good day to code.
    3. Re:Divisible by 3 or 6? by eldacan · · Score: 1

      I don't think you want to allow writing the numbers in other bases:

      Of course if you write the number in base 11, it's not hard to find out whether it's divisible by 11: it is if and only if the number ends with a zero... (just like in our common base 10, a zero at the end means it's divisible by 10). This works for any number: if N ends with a zero in base n, then it's divisible by n. Is this what you meant?

    4. Re:Divisible by 3 or 6? by maxwell+demon · · Score: 1

      Rule for n:
      Multiply the digit representing 10^k by (10-n)^k, and add the results together. The resulting number is a multiple of n exactly if the original number was. Instead of (10-n)^k of course any number which differs from that by a multiple of n can be used. (The proof and the generalization for bases other than 10 is left as exercise to the reader :-))

      Examples:
      n = 2:
      Pure rule:
      * 124 -> 1*64 + 2*8 + 4 = 12. 12 is a multiple of 2, therefore 124 is, too.
      * 123 -> 1*64 + 2*8 + 2 = 11. 11 is not a multiple of 2, therefore 123 isn't either.
      Improved rule:
      Since 8^n is a multiple of 2 for n>=1, it can be subtracted from itself, giving 0. Since 0 times anything is 0, this way only the last digit remains, and we get the well-known rule that a number is even exactly if the last digit is even.

      n=3:
      Pure rule:
      * 123 -> 1*49 + 2*7 + 3 = 66. 66 is a multiple of 3, therefore 123 is, too.
      * 124 -> 1*49 + 2*7 + 4 = 67. 67 is not a multiple of 3, therefore 124 isn't either.
      Improved rule:
      7 is 2*3+1, therefore 7^k = (2*3+1)^k = sum_i binomial(k,i) 2^i*3^i. All summands except for i=0 are multiples of 3 and can therefore be eliminated. The summand for i=0 is just 1. Therefore we get the well known rule that a number is a multiple of 3 exactly if the sum of it's digits is.
      Note that there is not really the need to carry out the general calculation, you can do it step by step: Since 7 can be replaced with 1, 7*7 can be replaced with 7*1, which again is 7 and can be replaced by 1. That is, you always can multiply the "reduced" number instead of the original one for determining the next "reduced power". I'll do this in my following examples.

      n=4:
      Pure rule:
      124 -> 1*36 + 2*6 + 4 = 52. 52 is a multiple of 4, therefore 124 is, too.
      Improved rule:
      6-4 = 2, therefore the next-to-last digit can be multiplied by 2 instead of 6. For n>=2, 6^n is a multiple of 4 and therefore can be reduced to 0 (alternatively: for the third-last daigit, 6*2=12, 6*2-3*4=0, and 0*6 = 0 for all other digits). Therefore you need only look at the last two digits, and the number is multiple of 4 exactly if 2*(next-to-last digit)+(last digit) is.

      In the following examples, I'll directly skip to the improved rule.

      n=5:
      Since 10-5 is 5, again only the last digit matters.

      n=6:
      1*4 = 4
      4*4 = 16, 16-2*6 = 4
      Therefore all digits but the first have to be multiplied by 4, and then all of them added together.
      Example:
      1296 -> 4*1 + 4*2 + 4*9 + 6 = 54 = 6*9.
      In practice, it's probably simpler to remember that a number is a multiple of 6 exactly if it is both a multiple of 2 and a multiple of 3, and test those two separably.

      n=7:
      Now we come to the first interesting case (i.e. the first one which gives a non-trivial rule). Consecutive multiplication with 3 and eliminating multiples of 7 gives the series:
      1, 3, 9-7=2, 6, 18-14=4, 12-7=5, 15-14=1, ...
      You see, it's a cycle of 6 numbers. Let's see the rule in action, with a sufficiently large number:
      Is 14663586 a multiple of 7? Well, let's see:
      6*1 = 6
      8*3 = 24
      5*2 = 10
      3*6 = 18
      6*4 = 24
      6*5 = 30
      4*1 = 4
      1*3 = 3
      --------
      sum = 119
      Now, it's not hard to check that 119 = 70+49 is a multiple of 7. Otherwise, we could just do a second iteration:
      9*1 = 9
      1*3 = 3
      1*2 = 2
      --------
      sum = 14
      Ok, now it's obvious, isn't it?

      Now you mentioned 11. So 10-11 = -1, therefore you have to multiply the digits with (-1)^k, i.e. subtract the sum of the even-position digits from the sum of the odd-position ones. Alternatively, you can of course alter by 11 to get a positive result (which in this case is 10 again), and then for the next step you get 10*(-1) = -10, which then gets altered to 1 again. Which means an alternate rule is to split the number in groups of two digits and sum them up.
      Let's try both rules on 1051138:
      Alternation rule: 1-0+5-1+1-3+8 = 11, which clearly is a multiple of 11-
      Digit-pair rule: 1+05+11+38 = 55, also obviously a multiple of 11.

      --
      The Tao of math: The numbers you can count are not the real numbers.
  45. Truth vs. Lies by sheetsda · · Score: 3, Insightful

    You find yourself before indistinguishable two doors, each with a statue. One door will lead to salvation, the other to death. The statue that guards the door to salvation always tells the truth, the statue to the door to death always lies. You may pose only one question to only one statue. What do you ask to determine which door is which?

    Answer(ROT13): Nfx nal dhrfgvba gb juvpu lbh nyernql xabj gur nafjre. Gb qrgrezvar juvpu qbbe vf juvpu lbh arrq gb xabj gur eryngvbafuvc bs gur nafjre lbh ner tvira gb gur gehgu. Gur guvat V yvxr nobhg guvf evqqyr vf vg sbeprf lbh gb pbafvqre gur bcrengbe va gur ybtvpny fgngrzrag gb or gur inevnoyr. Nqqvgvbanyyl crbcyr nera'g hfrq gb nfxvat dhrfgvbaf jura gurl nyernql xabj gur nafjre fb gurl graq abg gb or noyr gb guvax bs n fbyhgvba evtug njnl. Gur jubyr guvat orpbzrf boivbhf jura lbh cbfr n dhrfgvba fhpu nf "Ner gurer gjb fgnghrf urer?"

    1. Re:Truth vs. Lies by NanoGator · · Score: 1

      (Note: I didn't un-ROT the answer... )

      Is the answer to ask one statue what the other would say, then assume it's the opposite? For example, let's say you point to the door that the lying statue is guarding, then ask that statue how the other statue would identify it. Let's say he says "he would say I am guarding the death door." In that case, the truth statue would say that was the life door because the lying statue is saying the opposite. So, if you do the opposite, then that turns out to be the life door. The other way around: If the truthful statue was guarding the life door, he would say that the other statue would call it the death door. The other statue is lying, so he'd say it was the death door. So the opposite is.. life.

      Is that the answer? If so, well it's not because I'm smart. I think I saw this on an old episode of Doctor Who or something. In my defense, though, I did get curious one day and whip out a pencil and paper and did a little math to prove it.

      --
      "Derp de derp."
    2. Re:Truth vs. Lies by Hektor_Troy · · Score: 3, Funny

      Can I switch the statue for one talking bull frog? Cause I know the answer to that one. Pick it up, open one door, throw it down that hall, close door and wait a bit.

      Curtesey of The 10th Kingdom

      --
      We do not live in the 21st century. We live in the 20 second century.
    3. Re:Truth vs. Lies by digirus · · Score: 1

      "What is 1 plus 1?" If you get 2 as your answer, you are at the door to salvation. If you get anthing else, you are at the door to death. Why is this a challenge again?

    4. Re:Truth vs. Lies by the_wesman · · Score: 1

      I thought of the same scene when reading this post, I'm glad to find that the true answer to the riddle is so simple - I really enjoyed that movie when I was younger - it features an attractive young Jennifer Connelly and one of my favorite musicians, David Bowie, in a pair of extremely tight trousers that feature a rather intimidating bulge

      --
      calling all destroyers
    5. Re:Truth vs. Lies by eonlabs · · Score: 1

      Do you know which mathmatc principle is the driving force behind it? I'll post the answer after someone guesses so it's deeper

      --
      I wouldn't consider the mad hatter mad. Just reality impaired. He sure can make a mean cup of tea.
    6. Re:Truth vs. Lies by Mardak · · Score: 1

      In the land of Gog, princes always lie, peasants always tell the truth, while merchants sometimes tell the truth and soemtimes lie. A tourist is enjoying an afternoon refreshment in one of the local pubs when the bartender (who always tells the truth) says to her: "Do you see those three men over there? One is a peasant, another a prince, and the third a merchant. You may ask them three yes/no questions, always indicating which man you wish should answer. If, after asking these three questions, you correctly identify the peasant, prince, and merchant, they will buy you a drink." The tourist is indeed very thirsty. What questions should she ask?

    7. Re:Truth vs. Lies by Anonymous Coward · · Score: 0

      just ask if its a statue, if the answer is yes then its the door to salvation, if it answers no then its the door to death

    8. Re:Truth vs. Lies by eonlabs · · Score: 1

      You don't know which door the one that lies is in front of. So your question taught you which one lies, but you get no information about the doors. You don't care who lies. You do care about which door is which.

      --
      I wouldn't consider the mad hatter mad. Just reality impaired. He sure can make a mean cup of tea.
    9. Re:Truth vs. Lies by Scaba · · Score: 1

      Ask one of the statues something simple, like "Are you a statue?" or "Are you guarding this door?" The Republican, err, lying death statue will be compelled to lie in the face of all evidence to the contrary.

    10. Re:Truth vs. Lies by digirus · · Score: 1

      You ar eincorrect according to the riddle:

      "The statue that guards the door to salvation always tells the truth, the statue to the door to death always lies. "

    11. Re:Truth vs. Lies by eonlabs · · Score: 2, Interesting

      My bad, he mis-told the riddle. I'm familiar with the correctly told one, so I overlooked the goof up. The original is There are two indistinguishable doors, each has a guard, one leads to salvation, one to a gruesome death, and one of the guards always lies while one always tells the truth. What yes/no question could you ask a guard to guarentee you would pick the door to salvation. You may only ask one question. The reasoning behind the solution is very simple, but it usually takes a while to pick up on it for most people.

      --
      I wouldn't consider the mad hatter mad. Just reality impaired. He sure can make a mean cup of tea.
    12. Re:Truth vs. Lies by Kagura · · Score: 2, Funny

      Solvable by a human with an understanding of the context and an IQ of at least 40: Encrypted: Ner gurer gjb fgnghrf urer?
      Letters by guessing: Are t ere t statues ere?
      Fully decrypted: Are there two statues here?
      f=s
      g=t
      n=a
      h=u
      r=e
      e=r

    13. Re:Truth vs. Lies by mrmittens · · Score: 1

      The whole thing stinks of Labyrinth to me! Tis one of my favourtie films though, classic. http://www.imdb.com/title/tt0091369/

    14. Re:Truth vs. Lies by Spazmogazm · · Score: 1

      Simple, I ask any of the two statues, "Am I thinking about boobies right now?". If the statue answer "yes" I walk in since the statue speaks truth and thus leads to salvation. If the statue answers "no" then I go the other way since this statue is obviosly the liar and leads to death.

    15. Re:Truth vs. Lies by opspin · · Score: 0

      You can find the answer to this one by watching Labyrinth (1986)

    16. Re:Truth vs. Lies by theonetruekeebler · · Score: 1
      And when you open the door it sings
      "Hello my baby, hello my honey
      Hello my ragtime gal!"
      A tantalizing clue, but useful how?
      --
      This is not my sandwich.
    17. Re:Truth vs. Lies by eldacan · · Score: 1

      Rhmmmm... So what's the answer? :)

    18. Re:Truth vs. Lies by Alsee · · Score: 1

      Commutivity.

      Therefore it doesn't matter which one you ask.

      -

      --
      - - You can't take something off the Internet! That's like trying to take pee out of a swimming pool.
    19. Re:Truth vs. Lies by Anonymous Coward · · Score: 1, Funny

      Thank you Captain Obvious. The point of ROT13 is not to keep you from decrypting it, it's to keep you from accidently reading the answer while casually looking at the post.

    20. Re:Truth vs. Lies by slavemowgli · · Score: 1

      "Does the statue guarding the door to salvation always tell the truth?"

      If the answer is "Yes", which is true, then the statue's the honest one and the door leads to salvation; if it's not, then the statue's the lying one and the door leads to death.

      Of course, you could also ask "is 1+1=2" or something similar.

      --
      quidquid latine dictum sit altum videtur.
    21. Re:Truth vs. Lies by Thomas+Miconi · · Score: 1

      The statue that guards the door to salvation always tells the truth, the statue to the door to death always lies. You may pose only one question to only one statue. What do you ask to determine which door is which?

      Duh ! "Is it true that 2 + 2 = 4 ?"

      Take the door guarded by that statue if the statue says "yes", the other one if the statue says "no".

      The problem in your description is that each statue is physically assigned to a door. If you just have two statues and two doors, without any specific location, and you just know that one satue lies and the other tells the truth, the problem becomes slightly more difficult. Then you need to point at a door and ask one of the statues:

      "If I asked the other statue whether this door leads to death or salvation, what would it answer ?"

      If the satue answers "Death", take this door. If the statue answers "Salvation", take the other door.

      Thomas-

    22. Re:Truth vs. Lies by Deathbane27 · · Score: 1

      In that case, point to one door and ask either statue "Is that the door which you are guarding?" Both statues will say "Yes" if you point to Salvation, and "No" if you point to Death.

      --
      If it ain't broke, it needs more features!
    23. Re:Truth vs. Lies by Anonymous Coward · · Score: 0

      Strange as it may sound, this riddle is invalid: it's logically impossible to have statues that always tell the truth or always lie, unless you limit the domain of questions. Proof: ask the truthful statue whether its next answer is "no." Ask the lying statue whether its next answer is "yes."

    24. Re:Truth vs. Lies by Skeld · · Score: 1

      Wrong. The correctly told riddle doesn't specify which guard stands where. The truth-telling guard may stand in front of the death door.

    25. Re:Truth vs. Lies by Enrico+Pulatzo · · Score: 1

      When faced by that dilemma, I just go rent a copy of Labyrinth.

    26. Re:Truth vs. Lies by eonlabs · · Score: 1

      Close, but there's more.

      It's true it's the commutative property of multiplication.

      The principle idea is -1 * 1 = -1 (A negative number multiplied by a positive is always a negative)

      Which is why asking "Will the other guy say this is the door to salvation" will always tell you the opposite of what it is. (Ask about the door to salvation to the guy who tells the truth, and he will honestly say the other guy would say no. The other one would lie and say the first guy would say no when he would honestly say yes.)

      --
      I wouldn't consider the mad hatter mad. Just reality impaired. He sure can make a mean cup of tea.
    27. Re:Truth vs. Lies by Stealth+Potato · · Score: 1
      Wrong. The correctly told riddle doesn't specify which guard stands where. The truth-telling guard may stand in front of the death door.

      ...So? Did you even read Deathbane's solution, or are you maybe replying bizarrely to some other comment? ;-)

      It's perfectly valid, and doesn't depend upon the guards to stand at any specific place. One can merely ask either guard if a given door is the one it is guarding. If one asks about the life door, both will say "Yes"; the truth-teller, who does guard the life door, and the liar, who does not. If one asks about the death door, both will say no. It's an easy way to determine which door is which. Simple as that.

    28. Re:Truth vs. Lies by eonlabs · · Score: 1

      In the correctly told riddle, the truth teller may or may not guard the life door.

      Therefore, as was mentioned before, his argument fails because it doesn't insure that either one is which.

      It is, however sufficient enough for the incorrectly told riddle at the very top of this thread. This is why the correctly told riddle is told the way it is.

      --
      I wouldn't consider the mad hatter mad. Just reality impaired. He sure can make a mean cup of tea.
    29. Re:Truth vs. Lies by Mardak · · Score: 1

      Ask person 1 if person 2 is more likely to lie than person 3. There are several possible arrangements for these 3 people. For example, PRM would be peasant, prince, merchant.

      In the situations where the response is "yes", the possible orderings are:
      PRM, RPM, MRP, MPR

      And for a "no" response:
      PMR, RMP, MRP, MPR

      Note that MRP and MPR appear in both because the merchant can say either. Also, in all the "yes" cases, the merchant is never in the second position, and the "no" cases have merchants never in the third position.

      Ask the person that you know isn't the merchant a trivial question such as "Is 1 + 1 = 2?" With that you know if you have found the prince or the peasant. Then ask that same person if the first person is the merchant. Based on that result and knowing if the person is going to lie or tell the truth, you can correctly identify each of the three.

    30. Re:Truth vs. Lies by n3k5 · · Score: 1
      Ask person 1 if person 2 is more likely to lie than person 3.
      Your 'solution' to your riddle must be wrong, because it can be proved that there is no solution: Firstly, the merchant will give you zero information, because essentially he randomly chooses between yes and no. Secondly, you need more than two bits of information in order to tell who's who, since there are 6 different ways to assign 3 labels to 3 persons, but only 4 different ways to assign 2 boolean values to 2 boolean variables. Therefore, you need to gain useful information from more than 2 yes/no quesions (since 2 useful yes/no answers give you only 2 bits of information). Therefore, you need to gain information from all three of your questions. Therefore, you need a useful answer to your first question. Therefore, must not ask the merchant first, because he never gives you any information. Therefore, you must know how to avoid the merchant before you started collecting any information. Therefore, solving the problem is impossible. QED.

      It took me an hour to phrase this so concicely. Thanks for the nice riddle.
      --
      but what do i know, i'm just a model.
    31. Re:Truth vs. Lies by n3k5 · · Score: 1
      Nfx nal dhrfgvba gb juvpu lbh nyernql xabj gur nafjre.
      Lbhe fbyhgvba vf jebat, orpnhfr vg bayl qrgrezvarf juvpu fgnghr gryyf gur gehgu naq gurersber juvpu fgnghr thneqf gur pbeerpg qbbe. Vg qbrf abg qrgrezvar juvpu bs gur qbbef guvf fgnghr thneqf. N cbffvoyr pbeerpg nafjre vf: Cbvag ng bar bs gur qbbef naq nfx rvgure fgnghr: "Jbhyq gur bgure fgnghr fnl gung guvf qbbe yrnqf gb fnyingvba?"
      --
      but what do i know, i'm just a model.
    32. Re:Truth vs. Lies by palesius · · Score: 1

      It would seem to me that there's a simpler way to phrase the question in many situations like this that doesn't rely on having two seperate guards. It only requires a single guard that either always lies or always tells the truth.

      Simply preface whatever yes or no question you wish to ask with "If I were to ask you..." and suffix it with "what would your answer be?"

      e.g. If I were to ask you if this is the door of death,what would your answer be?

      A truth-telling guard would obviously say yes.

      A lying guard would say no to the original question. They would then lie about their answer, and answer yes, which is the truth.

      --
      "We are what we pretend to be, so we must be careful about what we pretend to be." --Kurt Vonnegut
    33. Re:Truth vs. Lies by dcam · · Score: 1

      In my defense, though, I did get curious one day and whip out a pencil and paper and did a little math to prove it.

      Where does the math come into it?

      --
      meh
    34. Re:Truth vs. Lies by Anonymous Coward · · Score: 0

      No, the solution is correct, your assumptions are wrong. Just because the Merchant's answer gives you zero information, doesn't mean you get zero information by asking the question. Simply receiving a "yes" or "no" eliminates two possible arrangements. For each of "yes" and "no", if the Peasant answers then only one arrangement is possible, if the Prince then also only one, and if the Merchant answers there are two, which leaves only 4 out of the original 6 arrangements.
      This is clearly laid out in the solution provided.
      You must be careful when using theoretical methods, one false assumption can trip you up, play out the solution in practice and you can see when you go wrong.

    35. Re:Truth vs. Lies by phision · · Score: 1

      Can't I ask one of the statues something I know for sure (for example "Am I a woman")? Than if it lies to me I chose the other one.
      (And, I'll check twice if my ManTool(tm) is in place. Its about my life, dude!)

    36. Re:Truth vs. Lies by Alsee · · Score: 1

      The anonymous reply to you did not seem very clear, so I'd like to add my own explanation.

      You are correct that there are 6 possible arrangements and that a mere 2 bits of information from the second and third questions would be impossible to solve 6 possibilities.

      However the flaw in your logic is that you *do indeed* receive some useful information from the first question. It is just that you receive less than a full bit worth of information. However that is ok because we do not need a full bit of information to solve the puzzle. Three bits would let us solve for one of 8 states.

      Basicly what we are doing is asking the first person to point to someone else who does not give random answers. In fact we *can* do this.

      If we ask the truth teller he gives us perfect information and will point us at someone who does not give random answers.

      If we ask the liar, he gives us perfect inverted information and will point us at someone who does not give random answers.

      If we ask the random person to point at someone else, well no matter who he points at he will be pointing at someone who does not give random answers.

      The truth teller gives us real information, the liar gives us real information, and the random person carries *implicit* information. If the first person gives us a random answer then we implicitly carry that information that neither the second nor third person gives random answers.

      In every case the answer carries real information that a certain person does not give random answers. We are *always* able to pin down a peice of real information. We are *always* able to pin down the fact that identified second person is not random. That is less than one bit of information, it does not cut the problem space to half. It reduces the problem space to two thirds. It reduces it from six states to four states.

      You actually receive 0.585 of a bit of information from the first question, even though the answer might be random.

      -

      --
      - - You can't take something off the Internet! That's like trying to take pee out of a swimming pool.
    37. Re:Truth vs. Lies by LordKronos · · Score: 1

      The solution is:
      "If I were to ask the other guard if this is the life door, would he say yes?"

      If you get a No, it's the life door.
      If you get a Yes, it's the death door.

    38. Re:Truth vs. Lies by n3k5 · · Score: 1

      thanks for the correction; once i had carefully read the solution and thought it through, it became obvious that it must work and that it's silly to think otherwise. i hadn't tried that before because i was convinced there can be no solution; now i have discovered where the flaw in my 'proof' is.

      --
      but what do i know, i'm just a model.
    39. Re:Truth vs. Lies by n3k5 · · Score: 1

      Actually I'd seen that other anwer a while ago and I'd already found out about my mistake, just didn't get around to reply until now; so, thanks for adding a more visible correction in the meantime. I think what made this difficult for me (aside from ignoring the proper solution ^_^) is the fact that the required information measures a non-integer number of bits. Of course this makes the riddle all the more interesting.

      --
      but what do i know, i'm just a model.
    40. Re:Truth vs. Lies by Deathbane27 · · Score: 1

      Yes, I mis-read the corrected version of the riddle as well. *bangs head on desk* My apologies for throwing in another wrong-but-looks-right solution. :p

      --
      If it ain't broke, it needs more features!
    41. Re:Truth vs. Lies by Anonymous Coward · · Score: 0

      That would be asking two questions in one.

      "Is this the door to salvation that you're guarding?"
      can be expanded into:
      "Is this the door you're guarding?"
      and..
      "Is this the door to salvation?"

  46. a few of my favs by lawpoop · · Score: 1

    First up, does Goedel's incompleteness theorem imply that computers will never be able to have human-like intelligence?

    Other things I like are not necessarily problems, but things that just inspire awe, such as proving that .99... = 1, or that formula that shows pi*log^-1 = 0 or whatever it is... is always struck me as the Grand Unification Theory of algebra and geometry. It's so simple and shows that these numbers, which are so hard for me to work with, combine in some fashion to show some property that is strikingly simple, like finding a beatiful crystal of clarity in a quarry of grey, difficult mathematics.

    --
    Computers are useless. They can only give you answers.
    -- Pablo Picasso
    1. Re:a few of my favs by benna · · Score: 1

      Why on earth would Godel's incompleteness theorem imply that computers will never be able to have human-like intelligence? Godel showed that theoretically not everything in a formal system sufficient for arithmatic can be proven, but he invented a very special case to demonstrate this. For all practical purposes, computers can do anything, and for something as poorly defined as "human-like intelligence," I don't think a single case like Godel's really matters. Is it determining whether p = "p cannot be proved" is true really a fundimental part of human intelligence? Godel's theorems do have many implications, but I don't think this is one of them.

      --
      "It is not how things are in the world that is mystical, but that it exists." -Ludwig Wittgenstein
    2. Re:a few of my favs by ryanr · · Score: 1

      For that sort of thing, you might be better off pondering the halting problem.

      For example, some of us were having a discussion on a secure programming mailing list one day. The halting problems says you can't write a program that can determine if all other possible programs will halt. It made me wonder whether programmers could determine if all programs had security problems or not. We decided that boiled down to whether the human brain was a Turing machine or not.

    3. Re:a few of my favs by TheRaven64 · · Score: 1
      Gah! I almost wish the halting problem was never taught in computer science, because it is almost always mis-taught. There are two infinities present in the halting problem. It is not possible to write a program to determine whether a (potentially infinite) program will halt when run on (potentially infinite) input. Any finite program which runs on finite input can be represented as a deterministic finite automata, and simple techniques can be used to determine whether it will halt. Bottom line:

      It is possible to solve the halting problem for any interesting program, although not necessarily easy (or even feasible).

      As a corollary, solving a proper subset of the halting problem is possible for any given proper subset of the problem, however the program to solve the problem is likely to lie outside the domain of the specified subset. This means that you will need to solve it for two subsets to solve it completely for one, although the second time will be easier since the second subset will only contain a single program.

      When I first encountered the halting problem, I was confused as to why it was considered insolvable, since there appears to be a trivial solution (a simple graph colouring exercise - although I didn't learn enough graph theory until almost a decade later to know this is what it was). It was only when I got to university that I had the problem explained in more detail, and spotted the concealed infinities.

      --
      I am TheRaven on Soylent News
    4. Re:a few of my favs by lawpoop · · Score: 1

      Well, I am not good with the math, but if you read the wikipedia link there are a long string of back-and-forth debates about what the implications are for AI. Goedel himself seemed to think that his theorem meant that human mathematicians demonstrating this theorem was an example of a human doing something a turing machine will never do.

      Usually argument by authority doesn't really fly in arguments concerning math or logic, but I'm not smart enough to do the math. Everytime I bring this up on slashdot, someone makes the argument "No, it doesn't," but the argument is far from settled amongst professional mathematicians, logicians, and philosophers.

      --
      Computers are useless. They can only give you answers.
      -- Pablo Picasso
    5. Re:a few of my favs by raap · · Score: 1

      Ever heard of the "Busy Beaver Problem" invented by Rado?
      The program hasn't to be infinite. Only the tape.
      Even for very small turing machines (6 or more states) it can be nearly impossible (for a human or a machine) to prove that it halts.

    6. Re:a few of my favs by HuguesT · · Score: 1

      For a detailed, if perhaps flawed argument along these lines, read "the emperor's new clothes", by R. Penrose.

    7. Re:a few of my favs by benna · · Score: 1

      Penrose needs to stick to physics. His excursions into the realm of philosophy have been failures.

      --
      "It is not how things are in the world that is mystical, but that it exists." -Ludwig Wittgenstein
  47. $10 to Anyone Who Can Solve This by Comatose51 · · Score: 1
    Very simple math "riddle" here. If you solve it, just send me the answer and I'll PayPal you the $10 for your work...*

    1.Find problem on Slashdot
    2.Solve problem
    3.Email to generous stranger
    4.Get $10 via PayPal
    5.Profit!
    See how easy that is! No tricks here...

    * - by accepting the $10, you transfer all claims to any further monetary compensation from any party to Comatose51, including but not limited to $10 million from the Clay Institute

    --
    EvilCON - Made Famous by /.
    1. Re:$10 to Anyone Who Can Solve This by TheRaven64 · · Score: 1
      I have a proof, but unfortunately the lameness filter prevents me from posting it here.

      - Pierre de Fermat

      --
      I am TheRaven on Soylent News
  48. Lightbulb problem by Ellen+Spertus · · Score: 4, Interesting
    Given:
    • One room has three switches, labeled A, B, and C.
    • Another room has three light bulbs, labeled 1, 2, and 3.
    • Each switch is connected to one bulb, but you do not know which is connected to which.
    • When inside either room, you cannot see the other room.
    • You begin in the room with the switches and may turn the switches on and off in any way you choose.
    • Once you leave the room with the switches, you may not reenter it. You may, however, go to the room with the light bulbs.
    How can you determine which switch is connected to which light? Here is a hint and solution.

    I like this problem because people are ordinarily good at logic have so much trouble with it. I once had the pleasure of meeting Donald Knuth and stumped him with this puzzle.

    1. Re:Lightbulb problem by jbarr · · Score: 1

      The solution presupposes, of course, that the light bulbs are within reach...

      --
      My mom always said, "Jim, you're 1 in a million." Given the current population, there are 7000 of me. God help us all!
    2. Re:Lightbulb problem by oGMo · · Score: 2, Insightful

      ...or that the lightbulbs heat significantly (what if it's an LED?). This isn't really a math/logic problem.

      --

      Don't think of it as a flame---it's more like an argument that does 3d6 fire damage

    3. Re:Lightbulb problem by Pendersempai · · Score: 1

      Agreed. I feel kind of cheated after thinking about it for a few minutes and reading the solution.

    4. Re:Lightbulb problem by willie661 · · Score: 1

      If that is one of the answers here is another answer to this problem as well. 1.) Flip on switch A, then flip it off. 2.) Flip on switch B and keep it on. 3.) Go into the light bulb room. 4.) The light bulb that is on goes to switch B, the light bulb that is off but warm goes to switch A and light bulb that is cold and off goes to switch C.

    5. Re:Lightbulb problem by mogwai7 · · Score: 1

      Turn ON switch A
      Leave switch B OFF.
      Turn ON swich C, wait a while,then turn it off. Immediately go to the other room.

      the bulb that is on is A
      the bulb that is off and cold is B
      the bulb that is off and warm is connected to C

      Simple. :)
      The flaw in the hint is that bulbs can have more that 2 states. Another solution is to flip a switch on, and wait months before leaving the room. A burned out filament can be another state.

    6. Re:Lightbulb problem by eonlabs · · Score: 1

      That's the simplest explaination I've seen for that problem yet. Nicely put! Also, solution 1 is more reliable. Solution 2 depends on the bulb not being made to operate at a higher voltage than it's running on. If it was, there's a chance it wouldn't die in 10 years or more.

      --
      I wouldn't consider the mad hatter mad. Just reality impaired. He sure can make a mean cup of tea.
    7. Re:Lightbulb problem by mogwai7 · · Score: 1

      Usually you can tell when a filiment has been on for a while by looking at it, even if it is not burned out yet (it looks kind of ragged and the bulb is grey from evaporated tungsten being deposited on the glass), unless it was severely undervolted. What about the case where you get to the other room and find that the bulbs are actually LEDs and they are all cold. LEDs get dimmer over their life, so the dimmer one would be the one that was left on.

      Solution 2 can be made more reliable by not leaving the room until you are about to die from old age. (I will get this right, even if it's the last thing I do!). Unless they are undervolted leds, then you are screwed. ;-)

      Interesting problem, I think engineers would be more likely to find a solution. :)

    8. Re:Lightbulb problem by mogwai7 · · Score: 2, Insightful

      One of my solutions takes into consideration LEDs or bulbs that you can't measure the heat. You are right though, it is not a math/logic problem, it's an engineering problem. Thats why "...people...ordinarily good at logic have so much trouble with it."

    9. Re:Lightbulb problem by eonlabs · · Score: 1

      I'll buy that. Fun thought problem. A side note, it's not hard to burn things with the heat emissions off an led producing the same amount of light as a normal 60-100 watt lightbulb. Rather painful, especially in that first instant (20 MCD 3mm Green LED in direct contact with a finger at 3V is surprizingly hot after operation), so the variable of how long heat dissapates and the variable of how long it takes for you to go to the next room and test the bulbs' temps may be significant.

      --
      I wouldn't consider the mad hatter mad. Just reality impaired. He sure can make a mean cup of tea.
    10. Re:Lightbulb problem by renoX · · Score: 1, Insightful

      Nice one, it took me about 1min to solve (without reading the hint).
      So nice but not too hard either.

    11. Re:Lightbulb problem by jedimark · · Score: 1

      I propose some alternative, but completely retarded solutions..

      Switch on all of the switches
      Enter room with lights..
      unscrew (with gloves) the bulbs that you don't want on - thus making the switches redundant and giving you controlling any individual light bulb.. Hooray :)

      Or alternatively, open up one of the switches, and wire in a big fat resistor or dimmer circuit.. Switch one of the other ones off, and the other on. One should be off, one should be on, and the other one should be dimmer..

      Or just forget the damn switches and bring a torch or have fun in the dark.. less likely to get burnt/electrocuted that way.

      I'll go back in my hole now...

    12. Re:Lightbulb problem by kd5ujz · · Score: 1

      Can I use an Ohm meter and 200' of leads?

      --
      -William
      God is everything science has yet to explain.
    13. Re:Lightbulb problem by Anonymous Coward · · Score: 0

      Easy...see, you knew you were going to be doing electrical troubleshooting and so you remembered to bring along a screwdriver and an inductive tone tracer. You unscrew the switch panel and attach the tone generator to switch 2. You simply turn on switch 1. Now you go into the other room. The light that is lit obviously corresponds to the switch you turned on. You whip out the inductive probe and touch it to each light socket to see which one has the strongest tone. That one is obviously the lamp connected to switch 2. The remaining lamp is connected to switch 3.

      If you're a safety freak (or your workplace requires you to follow the OSHA safety codes) first you turn off the power at the circuit breaker panel and install a lockout over that breaker. Next you use your multi-tone inductive tracer set. You attach tone 1 to switch 1, tone 2 to switch 2, tone 3 to switch 3. You go into the other room (which is probably dark, so you will need a Maglight or one of those 500W halogen work lamps and an extension cord...your choice.) You touch the inductive tracer to each lamp socket. The one that goes "beep [silence] beep [silence]" is connected to switch 1. The one that goes "beep beep [silence] beep beep [silence]" is connected to switch 2. The one that goes "beep beep beep [silence] and your homework disappears from the screen" is a PC running Windows that belongs to the parents of Ellen Feiss.

      If you can afford the deluxe multi-tone tracer, instead of "beep [silence]" (repeat) the inductive tracer will pickup a voice saying "one, one, one..." or "two, two, two..." or "three, three..." or maybe I am thinking of a Philip Glass piece? Back in my day, I used a small collection of resistors with alligator clips and an ohm meter. Clip the resistors into the circuit and hunt down the known resistance at the other end using the ohm meter.

      Yes...I know the answer about turning one lamp on momentarily and going in to see which is left on, which is warm, and which is cold. But see, what if the lamps didn't put out heat - say, fluorescent panels in a drop ceiling. I guess you could take the fixture apart and see if one of the ballasts was warm? But that assumes you have a ladder to get up there. Besides, what the fun in that? If you can have a ladder and whatever tools are necessary to get inside the fluorescent panels, I can have a screwdriver and an inductive tone tracer.

      In fact, the multi-tone tracers usually have eight outputs so my method is scalable to at least eight unknown switches. Lets see you try to do a "heat comparison" with eight bulbs that have been on for varying amounts of time and get it right. Maybe if you were equipped with a laser sighted IR thermometer you could pull that off :)

    14. Re:Lightbulb problem by kisielk · · Score: 4, Insightful

      I know lots of people have commented on using the hot/cold method to determine which bulb is which, there's another problem with that as well: You don't know the initial state of the bulbs.

      Say for example all the bulbs are initially ON, and you flip two of the switches to what you think is on. Then when you flip one of them to what you think is "off" and wait a while, and go in to the room, you'll find two bulbs on, but you'll misidentify them because the one you thought you switched to "off" you actually turned "on". Not to mention they could be in mixed states initially..

    15. Re:Lightbulb problem by baryon351 · · Score: 1

      > The solution presupposes, of course, that the light bulbs are within reach...

      And that the lightbulbs weren't already on and warm.

    16. Re:Lightbulb problem by oldCoder · · Score: 1
      You're assuming that you can tell the on position from the off position. I did not assume that.

      If the on position can be either up or down, then there are 48 ways the switches can be connected to the bulbs. The on position for bulb 1 can be any of 6 points, then the on position for bulb 2 can be any of the 4 remaining points, and the on position of bulb 3 can be one of the two remaining points. 6 X 4 X 2 = 48.

      Really, the way you worded it, you can't even assume that all three switches have on in the same (up or down) position.

      --

      I18N == Intergalacticization
    17. Re:Lightbulb problem by PsychoBrat · · Score: 1

      "[You] may turn the switches on and off in any way you choose."

      Any way I choose? That sounds to me as if I can determine whether each is on or off...

      --
      Invisible to moderators.
    18. Re:Lightbulb problem by Cili · · Score: 1

      You turn them all off initially, smoke a cigarette for 5 minutes or how long you consider necessary for the lightbulbs to cool, then you proceed from an all-off state.

    19. Re:Lightbulb problem by Surt · · Score: 1

      This will be a fun one in a couple of generations, when you'll be able to ask kids:
      At what time in history was this puzzle solvable, and how?

      --
      "Who is the Journal of Quantum Physics going to believe?" --Stephen Hawking
    20. Re:Lightbulb problem by dead+sun · · Score: 1

      But if you don't know which is on and which is off, how is toggling the switches going to help you? Or are we assuming as well that the switches indicate on and off, and not just that there are some switches in an indeterminate state controlling some bulbs also in an indeterminate state? We're just adding assumptions, aren't we? And what if the bulbs are fluorescent and don't give off heat? And we have to assume all the bulbs are currently working properly. The problem is clearly flawed as stated.

      --
      If not now, when?
    21. Re:Lightbulb problem by slavemowgli · · Score: 1

      I don't know the solution, but here's a quick attempt...

      Start by turning on two of the switches, for example A and B. Then, wait for a while. Turn off one switch now (B, for example), and enter the room with the light bulbs. Now you have the solution: the bulb that is on is connected to switch A. The bulb that is off but still hot is connected to switch B. And the bulb that is off and cold is connected to switch C.

      Am I right? :)

      --
      quidquid latine dictum sit altum videtur.
    22. Re:Lightbulb problem by Cili · · Score: 1

      I do agree the problem is flawed as stated. My assumptions are that the switches are marked on-off, the lightbulbs are incandescent and there is no malfunction/misconfiguration in the system (i.e. each switch turns on or off one working incandescent lightbulb).

    23. Re:Lightbulb problem by Anonymous Coward · · Score: 0
      Well, if you can mess with the switch panel the possibilities are endless.

      For example, just disconnect them all. The solution as to which light goes to which switch becomes simple: none of them are.

      More interesting though would be to run 10kV at 1A into one of them. When you hear a gratifying "bang" in the distance, you can be sure that it'll be easy to identify that particular light.

    24. Re:Lightbulb problem by Markus+Registrada · · Score: 1
      This isn't really a math/logic problem.

      Ellen warned us of that when she said it stumped Donald Knuth. It was a far more useful hint than the one she linked to. It certainly is, though, a logic problem: once you establish that there is no purely logical solution, you canknow you must bring to bear what you know about switches, light bulbs, and time, and stir it in. We all have more than sufficient experience with all three. Since nobody who solves it actually experiences the switches or rooms, it remains a logic problem.

      One I enjoyed a great deal. Thank you, Ellen.

    25. Re:Lightbulb problem by callipygian-showsyst · · Score: 2, Funny
      Since I have LED lighting in my house, this won't work! And if the world switched to solid state lighting, this puzzle will be obsolete.

      BTW: Donald Knuth probably hates you.

    26. Re:Lightbulb problem by Anonymous Coward · · Score: 0

      And you have to assume all three light bulbs are in working order.

    27. Re:Lightbulb problem by serutan · · Score: 1

      My first solution to the 3 lightbulb problem was to turn on switch A and leave it on for 10000 hours, ample time for the bulb to burn out. Then turn on switch B and enter the rooms. If you see a lit up bulb you know it's connected to switch B. If you see a dark bulb unscrew it and momentarily stick your finger in the socket. If you get a shock (which won't kill you as long as you are not grounded) you know it's connected to switch A, otherwise it's C. Not as good as the hot-bulb solution, but original.

    28. Re:Lightbulb problem by Anonymous Coward · · Score: 0
      You don't know the initial state of the bulbs.
      Turn all the switches off, wait for duke nukem forever..ooops -say for ms vista-, start the hot/cold method
    29. Re:Lightbulb problem by smiffy1976 · · Score: 1
      The key word in the puzzle is incandescent. I found a better description of the problem here:

      Lightbulb and Switches

      There is one incandescent light bulb in an attic.

      In the basement, there are three switches, each of which can be either on or off. The switches are completely independent of one another.

      One switch controls the light in the attic.

      How can an electrician determine which switch controls the attic light bulb with only a single trip to the attic and no trip back down?

      (You can't send another person or use any other equipment, like extension cords...)
    30. Re:Lightbulb problem by Dawg21 · · Score: 1

      Well, one comment that has been posted said that a significant problem involves not knowing the original state of the light switches, i.e. they might all be on or all be off or some combination thereof. It is also stated that once you leave the room with the switches, you cannot re-enter it. However, I'm surprized nobody thought of this:

      Open the door leading to the room with the lightbulbs, but DON'T GO IN. Observe the condition of the light bulbs. Make sure they are all off, THEN do the wait-and-see method. Since nothing was said about simply looking into the other room without actually entering it, this would be entirely possible.

      One other idea would be to simply prop the door open, then start flicking switches and seeing what switch lights what bulb. This is, of course, assuming you have something that you could stick in the door to keep it open. Granted, many slashdotters will jump at me and say, "Yes, but it didnt say you had anything with you!" No, but it didn't say anything about NOT having anything, either...

  49. 1 = 0 "paradox" by Ravear · · Score: 1

    Really simple. If you can't get this go back to calc 101 :p

    From the Product Rule http://en.wikipedia.org/wiki/Product_rule ....
    (u*V)' = u'*V + V'*u

    Integrating both sides...
    u*V = Integral [u'*V + V'*u]

    Substituting u = x and V = 1/x, we have
    1 = Integral (1/x - 1/x) = 0

    1. Re:1 = 0 "paradox" by LeonGeeste · · Score: 2, Insightful

      What the fuck is that in response to?

      --
      Rank my idea: http://www.sinceslicedbread.com/node/531
    2. Re:1 = 0 "paradox" by Anonymous Coward · · Score: 0

      Integral (1/x - 1/x) is not 0. Since it's an indefinite integral (you didn't supply limits of integration), there's an arbitrary constant floating around.

      Integral(1/x - 1/x) = Integral(0) = 0 + C.

      In this case, take C=1 and you don't have any paradox.

      SH

    3. Re:1 = 0 "paradox" by IdntUnknwn · · Score: 1

      Its a puzzle, not a response. Its a "proof" that proves 1=0, your job is to spot what is wrong with it.

    4. Re:1 = 0 "paradox" by gaurzilla · · Score: 1

      The result of the last integral is not 0, but an arbitrary constant since the integral has no limits. So this arbitrary constant can be 1. That's poor integration.

  50. Illogical Variable by Anonymous Coward · · Score: 0

    1) Do something

    2) ???

    3) Profit!

    Solve for ???

  51. angle answer by mikeage · · Score: 2, Informative

    What is the degree of the angle between the hour hand and the minute hand when it is 2:15?
    22.5 degrees.

    Yes, you can do it iteratively until inifinity, but the minute hand is at 90 degrees off 12, and the hour hand is at 60 for 2, plus 30/4 for the :14, = 67.5. The difference is 22.5

    --
    -- Is "Sig" copyrighted by www.sig.com?
    1. Re:angle answer by Anonymous Coward · · Score: 0

      Since you're discussing analog clocks...

      How do you know when it's bedtime at Michael Jackson's house?

      When the big hand touches the little hand.

  52. Duh .99999 = 1 by Foo2rama · · Score: 1

    .9999999999999999999999999999999999999999999 repeating = 1!

    --


    ---In a time of Chimpanzees I was a Monkey.
    1. Re:Duh .99999 = 1 by Anonymous Coward · · Score: 0

      0.999999 = 1

      assume x=1, so
      0.999999 = x
      9.99999 = 10x -> times both sides by 10
      1 = x -> subtract them

      works because of infinity

    2. Re:Duh .99999 = 1 by Anonymous Coward · · Score: 0

      No it doesn't.

    3. Re:Duh .99999 = 1 by xitshsif · · Score: 1

      .99999 = .33333 + .66666 = (1/3) + (2/3) = 1

    4. Re:Duh .99999 = 1 by Anonymous Coward · · Score: 0

      a=0.99999999... (recurring)
      10a=9.9999999... (recurring)
      9a = 9
      a = 1

      However, this is all about concepts, isn't it? Once you get to 10a, the marginal 9 of 10a is always one dp behind the marginal 9 of a, so it cannot catch the other 9 up. Therefore you get a rounding error, and the above happens.

    5. Re:Duh .99999 = 1 by Anonymous Coward · · Score: 0

      Uh, yes it does.

      Let x = 0.999... (recurring)
      10x = 9.999... (recurring)
      10x - x = 9.999... - 0.999...
      9x = 9
      x = 1

      QED.

  53. Jughead by Doc+Ruby · · Score: 1

    Fill 3-jug
    Pour 3g from 3-jug into 5-jug, leaving 2g empty in 5-jug
    Fill 3-jug
    Fill 2g in 5-jug from 3-jug, leaving 1g in 3-jug
    Empty 5-jug
    Pour 1g from 3-jug into 5-jug, leaving 4g empty in 5-jug
    Fill 3-jug
    Pour 3g from 3-jug into 5-jug for 4g in 5-jug

    --

    --
    make install -not war

  54. Algebraic proof: 2=1 by mithran8 · · Score: 2, Interesting

    This is one of my favorites - it has stumped many self-professed math geeks, yet high school freshmen have spotted the solution immediately.

    x=y
    x^2=xy
    x^2-y^2=xy-y^2
    (x+y)(x-y)=y(x-y)
    x+y=y
    2y=y
    2=1

    Every step uses perfectly valid algebra, yet something is obviously very wrong somewhere.

    Enjoy...

    --
    An object at rest cannot be stopped!
  55. Monty Hall or the Mayday Mystery by Damer+Face · · Score: 1

    Either the Monty Hall problem which serves as a meditation on the idiocy of expertese, or the mayday mystery which isn't a logic problem, but is certainly a more amusing way to waste time than most puzzles.

    1. Re:Monty Hall or the Mayday Mystery by Anonymous Coward · · Score: 0

      I find it funny how many people make this simple mistake:
              Case I - You guessed right, then you switch. You lose, chances 1/3.

              Case II - You guessed wrong, then you switch to the only remaining door. You win, chances 2/3.

      In reality, there are FOUR possibilities, not THREE. In Case I, when you pick the correct door initially, there are TWO doors he has the option of taking away. This presents two posibilities for Case I:
      (assuming door 1 is the winner)
      You pick door 1, he removes 2, you switch to 3. lose.
      You pick door 1, he removes 3, you switch to 2. lose.
      Winning by switching:
      You pick door 2, he removes 3, you switch to 1. win.
      You pick door 3, he removes 2, you switch to 1. win.

      As you can see, in reality you have a 2/4, or 1/2 probability of actually winning.

    2. Re:Monty Hall or the Mayday Mystery by EvanED · · Score: 1

      Are you arguing that switching or not doesn't matter? I assure you that it does.

      Your mistake lay in assuming that all cases are equally likely.

      You pick door 1, he removes 2 has 1/6 chance of occuring (1/3 chance of picking door 1 * 1/2 chance of him picking door 2)
      You pick door 1, he removes 3 has 1/6 chance
      You pick door 2, he removes 3 has 1/3 chance (1/3 chance of you picking door 2 * 1 because he's forced to remove 3)
      You pick door 3, he removes 2 has 1/3 chance

      In the first two cases, switching makes you lose, and there's a 1/3 chance total of that happening. In the last two cases, switching makes you win, and there's a 2/3 chance of that happening.

  56. William Wu's puzzle site by Anonymous Coward · · Score: 0

    I'm sure this has been on slashdot before but nobody's mentioned it. http://www.ocf.berkeley.edu/~wwu/riddles/intro.sht ml Almost any logic problem you've heard of is described, and discussed on that site.

  57. A simple one by ZeeExSixAre · · Score: 1
    http://plaza.ufl.edu/kathtta/mysteriousmath.jpg

    I just got that from my school listerv. Yeah, it's definitely a sad one.

    1. Re:A simple one by B3ryllium · · Score: 1

      That's cute. However, the phrasing of the final portion is slightly inaccurate.

      My mother has ten brothers, four sisters, and zero grandparents living. So, naturally, her answer was "1040". It's accurate within the context of the point being proven (as in, anyone with eyes and exposure to the arabic numbering system can see the answer), but the "first digit" is technically 1, not 10.

      So, I suggest adding on "if your answer is over 994, your family might just be Roman Catholic".

  58. Any ABCABC number is divisible by 13... by aendeuryu · · Score: 2, Interesting

    Not really hard to prove, but it's cute.

    Take any six-digit number that's of the form ABCABC where A,B,C are any integers (yes, they can be the same, yes they can be zero, although that might make it less than six-digits if A, or A and B, are zero), and that number is guaranteed to be divisible by 13.

  59. What is the colour of the bear? by Anonymous Coward · · Score: 0

    A hunter follows a bear.

    The hunter walks 1 km south, 1 km east, 1km north.
    He's back at his starting point.

    What is the colour of the bear?

    PS: yes, it's math or logic!

    1. Re:What is the colour of the bear? by MDGordon · · Score: 1

      Ah! Took me a minute. Had to quit thinking 2-dimensional. The bear must be white. The hunter is at the north pole.

    2. Re:What is the colour of the bear? by techno-vampire · · Score: 1

      Actually, there's another place near the South Pole where he could have made that journey, but there aren't any bears there.

      --
      Good, inexpensive web hosting
    3. Re:What is the colour of the bear? by Anonymous Coward · · Score: 0
      That's right. The hunter has to be exactly at the north pole. So the bear is white. There is also a set of possible other locations near the south pole (not a point but a set of rings near south poles):
      • a ring where he walks 360 degrees east around the globle
      • a ring where he walks 2*360 degrees east around the globe
      • a ring where he walks 3*360 degrees east around the globe
      • a ring where he walk... well, you get the point, don't you?
      I love that riddle!
    4. Re:What is the colour of the bear? by theguywhosaid · · Score: 1

      If you are at the south pole, you cannot go south. You MUST start at the north pole.

    5. Re:What is the colour of the bear? by techno-vampire · · Score: 1
      You don't start at (or ever reach) the South Pole. There's a place where a circle around the pole is one kilometer. Start one kilometer north of there, and go south. You'll end up where you started. Possibly a better way to phrase the question is this:

      A man walks one kilometer south, one east and one north, ending up at his starting point. What continent is he on?

      This works, because he's on Antactica, and the North Pole isn't on a continent.

      --
      Good, inexpensive web hosting
    6. Re:What is the colour of the bear? by stanmann · · Score: 1

      For certain values of "NEAR" you will find you are incorrect.

      --
      Food not Bombs is a nice platitude but it breaks down when you notice that the Bombees are usually well fed
    7. Re:What is the colour of the bear? by theguywhosaid · · Score: 1

      well cover me in shit and call me stupid. i bow to your superiority.

    8. Re:What is the colour of the bear? by Anonymous Coward · · Score: 0

      There are limitless such solutions near the south pole, because you could also travel to the spot where the
      circle around the south pole is 0.5km - so you travel around it twice on your 1km walk east.

      And then there are the points where you would go four, five ... n times round, which would converge on the south pole itself.

  60. of course, it's e by ChipMonk · · Score: 1

    Of course. I figured it would be a transcendent number, I just didn't know which one. And somehow, e never crossed my mind. Thank you to both, croto and sam_nead.

    1. Re:of course, it's e by E+Galois · · Score: 1

      I find this comment funny, since most people would be hard pressed to name more than two transcendental numbers (namely pi and e).

      This is even funnier when you consider that the set of transcendental numbers is uncountably infinite!

      "Not everything that counts can be counted. Not everything that can be counted counts." -- Albert Einstein

  61. a good puzzle I made by hand (a picture) by rtisbute · · Score: 1

    The rules are very simple.

    1. place numbers 1-7 in each row.

    2. place numbers 1-7 in each column.

    3. place numbers 1-7 in each color group.

    so that each number only appears once for each specified set.

    By S. Viemeister

    Here is the link:

    http://vxweb.viemeister.us/math/7x7-puzzle-with-co mments.JPG

    Enjoy!

  62. Re:Math and science are obsolete by LeonGeeste · · Score: 1

    Laffer curve: it's possible to cut taxes and increase revenues. Think about if the government taxed nothing. It would get nothing. If the government fully taxed everything, no one would do anything, so there would be no point, so the government wouldn't get any tax. If the government taxes between those bounds, it gets something. Thus, there is at least one local maximum, meaning lowering taxes can increase revenues.

    Makes sense when you think about it. Punish people too hard and they won't produce anything - at least if they know you'll find out.

    --
    Rank my idea: http://www.sinceslicedbread.com/node/531
  63. one answer to sample problem by Turken · · Score: 1

    Just stack all the coins together on edge, and split however you like. Then neither set will have any head sides up.

  64. Violation of angular momentum by GarbanzoBean · · Score: 2, Interesting

    1) No object can violate conservation of angular momentum.
    2) To rotate an object one needs to give it angular velocity, hence angular momentum.
    3) To have finite angular momentum, an object needs torque applied to it (or a force applied away from the center of moment).
    4) Gravity acts on the center of moment and does not result in torque on any free falling object.
    5) Cats dropped feet up manage to land on their feet.
    6) Does this mean cats violate conservation of angular momentum; no wonder Egyptians worshiped them.
    What is wrong with this discussion; no math involved from my Classical dynamics class.

    1. Re:Violation of angular momentum by LeonGeeste · · Score: 1

      Are you really so stupid you can't figure this one out? While the gravity acts through the center of mass, the air resistance need not, and can therefore produce a torque.

      Assuming away air: not a good idea.

      --
      Rank my idea: http://www.sinceslicedbread.com/node/531
    2. Re:Violation of angular momentum by NIK282000 · · Score: 2, Funny

      The spinning of the cat's tail allows it to prduce the torque needed to rotate it abotu its center of mass. That or cats are the key to free energy and antigravity *puts on tinfoil hat*

      --
      Dear aunt, let's set so double the killer delete select all
    3. Re:Violation of angular momentum by GarbanzoBean · · Score: 1

      Ahm, first, friction acts approximately equally on the surface of the cat and there is no net torque. Second, air friction cannot provide nearly enough force, especially if the cat falls about a meter down (friction is proportional to velocity). It is not that simple.

    4. Re:Violation of angular momentum by GarbanzoBean · · Score: 1

      The rotation of the tail would need to be approx. 4000rpm to give the cat enough angular velocity to rotate while it is falling down about 1/3 meter (minimum height for the cat to turn around).

    5. Re:Violation of angular momentum by Anonymous Coward · · Score: 0

      Obviously the rules only apply when the object is static. The cast can rotate its front and back, pull legs in or out, etc. Think of the classic ballerina example in physics: no energy is added, but they can increase their rate of spinning by moving their arms in.

    6. Re:Violation of angular momentum by Anonymous Coward · · Score: 0

      You are assuming that position (or attitude, if you want to be technical) is the same as momentum.

      Think of this: I'm in space, and I've got a stick. I'm upsidedown ralative to my girlfriend, and I want to get a nice (rightside up) picture of her.

      1. Spin the stick. It conserves angular momentum by spinning me - continue until I'm rightside up, and stop stick (which stops me, again conserving angular momentum)

      2. Hold camera upside down (this answer is much to practical)

      see also Freefall the comic

    7. Re:Violation of angular momentum by Darth+Cow · · Score: 1

      Coughing up hairballs?

    8. Re:Violation of angular momentum by jZnat · · Score: 1

      It's all done via muscles/tendons/bones/etc. when a cat turns over. It usually will turn its top side over first, then the bottom. Not so much a mechanics problem, but rather a biology problem.

      --
      'Yes, firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.'
    9. Re:Violation of angular momentum by LeonGeeste · · Score: 1

      First, learn how to use the reply feature. It's really neat. I'll charitably assume you were trying to keep me from finding out about your "brilliant" post.

      Second, air drag is different from friction. Watch the terminology.

      Third, it most certainly does not act "approximately equally" across the surface. You have quite a bit to learn. Take a shuttlecock for example, with the rubber on top, and drop it "only one meter". It will still land with the rubber on the bottom.

      I'd like you to come work for the engineering firm I'm currenly employed with. We would love to have guys magically make all of our airfoils have an even pressure distribution!

      In fact, take any slender cylindrical object about the size of a cat's body and see if you can drop it such that it does not rotate. Remember Sprint's pin drop? Yeah, it's like that.

      --
      Rank my idea: http://www.sinceslicedbread.com/node/531
    10. Re:Violation of angular momentum by Nick+haflinger · · Score: 1

      Have you ever actually seen this? Cats use the ground. They twist their body in opposite directions, no net angular momentum, alliaging one set of paws downward. Once they land they rapidly untwist themselves.

    11. Re:Violation of angular momentum by mnemonic_ · · Score: 1

      Yep, there's a stop-motion photograph of this in Young & Freedman's "University Physics." It's really quite ordinary; you can try it yourself by sitting on a swivel chair and swinging your arms about. Nothing special about it.

    12. Re:Violation of angular momentum by Q-Hack! · · Score: 1

      1) No object can violate conservation of angular momentum.
      2) To rotate an object one needs to give it angular velocity, hence angular momentum.
      3) To have finite angular momentum, an object needs torque applied to it (or a force applied away from the center of moment).
      4) Gravity acts on the center of moment and does not result in torque on any free falling object.
      5) Cats dropped feet up manage to land on their feet.
      6) Does this mean cats violate conservation of angular momentum; no wonder Egyptians worshiped them.


      7) Toast allways lands buttered side down.
      8) To obtain perpetual motion requires a slice of buttered toast strapped to the back of said cat.

      --
      Some days I get the sinking feeling Orwell was an optimist.
    13. Re:Violation of angular momentum by eonlabs · · Score: 1

      Now all you need are magnets, and you have truely green energy with little to no waste. The only problem is cats must be alive to land on their feet. So assuming you can feed the spinning cat/toast apparatus mid cycle, the system will decay. A second issue is that the amount of energy taken from the system must be greater than the amount supplied to keep the cat alive to have a net gain, which violates Thermodynamic law (entropy)

      --
      I wouldn't consider the mad hatter mad. Just reality impaired. He sure can make a mean cup of tea.
    14. Re:Violation of angular momentum by Anonymous Coward · · Score: 0

      Thank you for your correct and precise answer.

      Amazing how some other people feel the need to post a reply that is neither.

    15. Re:Violation of angular momentum by Surt · · Score: 1

      Cats push against the air to rotate themselves. Run the same experiment in space, the cat doesn't land on its feet.

      --
      "Who is the Journal of Quantum Physics going to believe?" --Stephen Hawking
    16. Re:Violation of angular momentum by irhtfp · · Score: 1

      The series of statements assume a rigid object with a center of mass coincident with its center of rotation. A cat, being flexible, is able to shift its center of mass away from it's center of rotation and therefore generate torque.

      --
      I've made up my mind and now I've got to lie in it.
    17. Re:Violation of angular momentum by robfoo · · Score: 1

      Run the same experiment in space, the cat doesn't fall :)

    18. Re:Violation of angular momentum by Anonymous Coward · · Score: 0

      A cat is *heavy*. It's like dropping a wine bottle, not a lightweight cylindrical object.

    19. Re:Violation of angular momentum by blackfacetwin · · Score: 1
      This requires neither air resistance nor a push off the ground; it requires only two internal degrees of freedom. Sit in a well-lubricated office chair and stick your arms straight out to the left. Swing your arms, fully extended, to the right, and your body (and the chair) will counter-rotate to the left to conserve your total angular momentum. Now pull your arms in and swing them back to the left; the chair will rotate to the right, but not all the way back to where it started. Your body's back in its original configuration, but you've achieved a net rotation while conserving angular momentum all the while.

      Professional divers reorient themselves by doing this sort of thing, as do astronauts in space. A good - though mathematical - discussion appears in http://www.amazon.com/exec/obidos/tg/detail/-/0821 892002/.

      Note that the speed at which you execute this maneuver has no bearing - barring the effects of friction - on the net angle through which you rotate. The rotation is an example of "geometric phase," or "holonomy."

    20. Re:Violation of angular momentum by Josilot · · Score: 1

      Shouldn't this topic be "Violation of Angular Meow-mentum?

    21. Re:Violation of angular momentum by antispam_ben · · Score: 1

      Run the same experiment on the Moon or a chanmber in which the air is evacuated, the cat falls on its feet, then dies from breathing the obviously poisonous vacuum. :(

      --
      Tag lost or not installed.
  65. Re:Algebraic proof: 2=1 by NIK282000 · · Score: 1

    That is a good one thats been around for ages, too bad it will never compile because of the 0 devide.

    --
    Dear aunt, let's set so double the killer delete select all
  66. My personal favorite by davmoo · · Score: 1

    Farmer Jones has 12 sheep. All but 4 die. How many sheep does Farmer Jones have left?

    You would be amazed how many people will get this wrong the first time they answer it.

    --
    I want a new quote. One that won't spill. One that don't cost too much. Or come in a pill.
    1. Re:My personal favorite by Anonymous Coward · · Score: 0

      12. Some of them are dead, however.

    2. Re:My personal favorite by ottffssent · · Score: 1

      4 sheep. And 8 sheep carcasses.

  67. here is an old favorite by fermion · · Score: 1
    The polite formulation of this is that one doctor operating on three patient, however the doctor only has 2 pairs of gloves. How can the doctor work while minimizing the chance of cross contanimation. It also works with three doctors and one patient, thought the glove changes get messier.

    The impolite formulation involves three college guys, who can only afford two condoms and the paid services of one person.

    --
    "She's a scientist and a lesbian. She's not going to let it slide." Orphan Black
    1. Re:here is an old favorite by Anonymous Coward · · Score: 0

      bareback baby.

    2. Re:here is an old favorite by squidinkcalligraphy · · Score: 1

      I heard it as one guy who wants to fuck three women in succession, but only has two condoms. How can he do so without any chance of anyone catching a disease from any other person?

      Hint: the solution lies in the concept of surfaces.

      Problem: It is not recommended you try this at home, as experts advise against using 2 condoms on top of each other, as it _increases_ the chance of breakage.

      --
      "I think it would be a good idea" Gandhi, on Western Civilisation
    3. Re:here is an old favorite by cgenman · · Score: 1

      The best part of this is, so the story goes, that it wound up as an actual extra credit problem on an actual high school test. And that the teacher who administered the test was fired for it. This was years ago, and the person who told this to me was a high school teacher, so take that with a grain of salt.

      And if three isn't enough for you there is a more generalized form.

      http://www.mathematik.uni-bielefeld.de/~sillke/PUZ ZLES/condoms-n-m

  68. the bear's riddle by croto · · Score: 1

    what about this one guys:

    there is a hunter who wakes up one day in his house, walks out, and sees the sun just above the horizon. So he decides to go hunting. He unavoidably walks three miles to the south, then four miles to the west. He finds a bear and kills it... (sigh). Well, the questions are: 1) how far is the hunter's house from the dead bear. 2) what date is it. 3) what is the dead bear's colour.

    It's one of my favourite riddles.

    1. Re:the bear's riddle by Anonymous Coward · · Score: 0

      rot13: guerr zvyrf, fhzzre, juvgr

    2. Re:the bear's riddle by Anonymous Coward · · Score: 0

      Well I know a similar riddle where the hunter walks out of his house South, then east then north, winds up back at his house and shoots a (white) bear. So If this isn;t that one, I give up :(

    3. Re:the bear's riddle by jZnat · · Score: 1

      1) Should be right by his house.
      2) Sometime around 21 Septembre
      3) White (Polar Bear)

      --
      'Yes, firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.'
    4. Re:the bear's riddle by squidinkcalligraphy · · Score: 1

      1) 3 miles
      2) One of the equinoxes?
      3) White.

      The question is similar to the one I've been using with some of my classes of late:

      An explorer walks a kilometre south, a kilometre west, then a kilometre north, and ends up where she started. Where is she? The answer is the North Pole, which is but the elementary first part of the problem.

      The second part of the problem: There are more places where she could be. Describe where they are.

      --
      "I think it would be a good idea" Gandhi, on Western Civilisation
    5. Re:the bear's riddle by divec · · Score: 1
      The second part of the problem: There are more places where she could be. Describe where they are.


      Within about 4000 feet of the South Pole. More precisely: 1km north of the 1km-circumferenced circle about the South Pole, or more generally 1km north of a 1/n km-circumferenced circle about the South Pole where n >= 1.
      --

      perl -e 'fork||print for split//,"hahahaha"'

  69. Sticky Triangles by Doc+Ruby · · Score: 4, Interesting

    Let's say I have a stack of sticks: all identical, inflexible, unbreakable. Sticks can touch only at their ends, not in between.

    If I give you 3 sticks, you can make one triangle. If I give you 2 more sticks (5), you can make 2 triangles. If I give you another stick (6), how can you make 4 triangles?

    --

    --
    make install -not war

    1. Re:Sticky Triangles by yagu · · Score: 1

      The answer(s) can be found in Egypt.

    2. Re:Sticky Triangles by Doc+Ruby · · Score: 1

      The Eye of Horus winks at you ;).

      --

      --
      make install -not war

    3. Re:Sticky Triangles by wheresdrew · · Score: 1

      You make a tetrahedron.

    4. Re:Sticky Triangles by Doc+Ruby · · Score: 1

      Too many squares, not enough sticks, in Egypt. Horus weeps.

      --

      --
      make install -not war

    5. Re:Sticky Triangles by Keebler71 · · Score: 1
      (disclaimer) My solution to the below

      .

      .

      .

      .

      .

      .

      .

      .

      .

      arrange them in a 3-d 4-surface pyramid.

      --
      "It takes considerable knowledge just to realize the extent of your own ignorance." - Thomas Sowell
    6. Re:Sticky Triangles by oneirist · · Score: 1

      Okay, we got that. Now how do you make six triangles with six sticks?

    7. Re:Sticky Triangles by yagu · · Score: 1

      Yeah, but I still wanted the readers to think a bit... hopefully some slashdot readers are capable of SOME abstraction... besides, maybe some of the lesser famous and visited ones are ... :-)

      Let not Horus weep for me.

    8. Re:Sticky Triangles by l33td00d42 · · Score: 1

      > If I give you another stick (6), how can you make 4 triangles? silly, you should have asked one that requires 4 dimensions! (too lazy to come up with one myself)

    9. Re:Sticky Triangles by VVrath · · Score: 1

      Star of David?

    10. Re:Sticky Triangles by Peter+Clary · · Score: 1

      Build a three-sided pyramid.

    11. Re:Sticky Triangles by maxwell+demon · · Score: 1

      Easy: I remember from math that a line is a degenerated triangle. Then I note that each stick already represents a line. Therefore I don't have to do anything to get six (degenerated) triangles.

      --
      The Tao of math: The numbers you can count are not the real numbers.
    12. Re:Sticky Triangles by Doc+Ruby · · Score: 1

      It got me to think a bit, after my first, false, congratulation. But Egyptians really seemed to commemorate "three and four" in those works. And they now appear to be astronomy machines for navigating a model of the sky on the ground, which requires their 5 faces. In fact, the biggest one is more precisely aligned with the cardinal rotation directions of the Earth than is the Greenwich line.

      A great mystery, and no evidence that Egyptians knew how to make 4 triangles from 6 sticks. I give that one to the Greeks who so envied them.

      --

      --
      make install -not war

    13. Re:Sticky Triangles by Doc+Ruby · · Score: 1

      Stand a tetrahedron made from them on a surface, and shine a light down from an angle until only two triangles appear as shadows.

      --

      --
      make install -not war

    14. Re:Sticky Triangles by Doc+Ruby · · Score: 1

      OK, if I have 6 sticks, how can I give you 4 triangles?

      --

      --
      make install -not war

    15. Re:Sticky Triangles by slavemowgli · · Score: 1

      Form a tetrahedron?

      --
      quidquid latine dictum sit altum videtur.
    16. Re:Sticky Triangles by Doc+Ruby · · Score: 1

      I think you know the answer, but you just described a nonexistent object that would only have 3 sides - therefore 3 triangles. Unless, by "side", you mean the sides of the triangles, which is redundant, but perhaps another way to say "triangular pyramid".

      --

      --
      make install -not war

    17. Re:Sticky Triangles by dodobh · · Score: 1

      A tetrahedron. Trivial question.

      --
      I can throw myself at the ground, and miss.
    18. Re:Sticky Triangles by honkycat · · Score: 1

      I'm glad you found this guy's question trivial, but I can't help but wonder why someone so obviously of above average intelligence lacks the reading comprehension to understand the simple request not to post answers in the thread.

    19. Re:Sticky Triangles by Anonymous Coward · · Score: 0

      maybe add a z-buffer ?

    20. Re:Sticky Triangles by JiffyPop · · Score: 1

      I got a version of this at a job interview, only they left out the part that the sticks can only touch at their ends. They DID say that the sticks could not overlap, a subtle relaxation of the problem. I came up with a solution that was valid by their rules but not the solution to the parent's question.

    21. Re:Sticky Triangles by Anonymous Coward · · Score: 0

      Same rules, make 10 triangles using 10 sticks.

    22. Re:Sticky Triangles by Anonymous Coward · · Score: 0

      You give up? A 4D simplex. Trivial question.

    23. Re:Sticky Triangles by opspin · · Score: 0

      Think three dimensions

  70. math proof by dana340 · · Score: 1

    I can't take credit for these questions, but people have been doing them for centuries, and I enjoy playing with them. Prove that the square root of 2 is irrational. If that was fun and you want some more, prove that the square root of 3 is irrational. If you are still not satisfied, derive a proof for Fermat's last theorem.

    --
    "10001110101 - periodic table with a centerpiece of mind" -Clutch
  71. The best riddle site on the net by nyri · · Score: 3, Informative

    Is ..:: Riddles ::... In has (amogst others) the famous "prison with a lamp" problem:

    100 prisoners are imprisoned in solitary cells. Each cell is windowless and soundproof. There's a central living room with one light bulb; the bulb is initially off. No prisoner can see the light bulb from his or her own cell. Each day, the warden picks a prisoner equally at random, and that prisoner visits the central living room; at the end of the day the prisoner is returned to his cell. While in the living room, the prisoner can toggle the bulb if he or she wishes. Also, the prisoner has the option of asserting the claim that all 100 prisoners have been to the living room. If this assertion is false (that is, some prisoners still haven't been to the living room), all 100 prisoners will be shot for their stupidity. However, if it is indeed true, all prisoners are set free and inducted into MENSA, since the world can always use more smart people. Thus, the assertion should only be made if the prisoner is 100% certain of its validity.

    Before this whole procedure begins, the prisoners are allowed to get together in the courtyard to discuss a plan. What is the optimal plan they can agree on, so that eventually, someone will make a correct assertion?

    1. Re:The best riddle site on the net by Anonymous Coward · · Score: 0

      They all have to keep track of the number of days elapsed; 100 days == 100 prisoners

    2. Re:The best riddle site on the net by Anonymous Coward · · Score: 0

      Oops missed the "equally random" part...

    3. Re:The best riddle site on the net by jennifairy11 · · Score: 2, Funny

      The first prisoner takes the light bulb out of the socket and breaks it so that there are at least 99 pieces of glass. He takes all but 99 of the pieces away. Each prisoner will take one piece of glass away with them on their FIRST time. If they go twice, they don't take a second piece of glass. When there is only one piece of glass left, that person knows that everyone else has been into the room at least once and he can make his assertion.

    4. Re:The best riddle site on the net by Anonymous Coward · · Score: 0

      "inducted into MENSA, since the world can always use more smart people."
      Just because someone isn't in Mensa doesn't mean that they aren't smart.

    5. Re:The best riddle site on the net by Dysproxia · · Score: 1

      Doesn't work:

      - Light bulbs in prisons are protected (by safety glass or something else)
      - If the light is broken, how could they find the pieces in the dark

    6. Re:The best riddle site on the net by Anonymous Coward · · Score: 0

      Day six: a cleaning crew shows up =P

    7. Re:The best riddle site on the net by McGregorMortis · · Score: 1

      Ok, here's my solution.

      The bulb starts off. When a prisoner visits the room, he will turn the bulb on if he has been there before. Otherwise, he does not change the state of the bulb.

      On the hundredth day, the prisoner checks the state of the bulb. If it is off, then that means a unique prisoner visited the room each of the previous 99 days. If it also his own first visit to the room, then all prisoners have now visited the room and he makes the assertion.

      Otherwise, at least one prisoner has been repeated, and at least one missed. In that case, he turns the bulb off, and a new cycle of 100 days will begin.

      It could take a long time for the random picks to satisfy this plan, but it must work eventually.

    8. Re:The best riddle site on the net by jennifairy11 · · Score: 1

      - use the safety glass too... or something - windows?

    9. Re:The best riddle site on the net by hixie · · Score: 1

      I would hazard a guess that the odds of randomly picking 100 numbers in a row without duplicates randomly from a population of 100 are low enough that the prisoners would die first...

      Also, based on the question description, there doesn't seem to be any way for the prisoners to count days passing (windowless room, no guarentee that anything will happen to all prisoners each day).

      IMHO a better solution is for the prisoners to keep a tally in the living room of how many people have been to that room at least once, e.g. by marking the walls in the way that prisoners in films always do... When the tally hits 100, the prisoner makes his assertion. Assuming no prisoner comits suicides by marking the wall twice, they should all be free once each prisoner has been there at least once. No need to use the lamp...

    10. Re:The best riddle site on the net by Anonymous Coward · · Score: 1, Insightful

      Got it in a few minutes.

      One prisoner acts as the 'accountant'. He is the only one who will make the assertion. When a prisoner enters the room, if he has not entered before AND the light is off, he turns it on. When the accountant enters the room, if the light is on he turns it off and increases his tally. Once his tally hits 99 (+1 for himself) he can make the assertion.

    11. Re:The best riddle site on the net by fymidos · · Score: 1

      They agree that noone will touch the lamb untill the someone comes in for a second time.
      (lets say someone comes for a second time at day 30 - if he can count the days, that means that 29 people have come otherwise, that counts as 1)

      that person opens the lamp, and starts counting. once the lamp is on, if someone enters the room for the first time and finds the lamp on he turns it off. if he has entered before he does nothing.
      If he finds the lamp off, he leaves it off.

      The next time the person that counts comes in, if the lamp is off, he adds one (at least one person has been there for the first time) ... when he reaches 100 he can call it.

      (there must be a faster way though...)

      --
      Washington bullets will simply be known as the "Bulle
    12. Re:The best riddle site on the net by quenda · · Score: 1

      re: "100 PRISONERS AND A LIGHT BULB"
      According to the website, the best solution is around 10 years!
      Would you rot in solitary for 10 years to be certain of a right answer?
      After 2 years, there is a 93% chance everyone has been through.
      After 3 years, its 99.8%, assuming noone died first. Enough for me!
      But how do you measure time? The best reliable estimate would be
      by counting your visits to the living room. How many needed for, say, 99% chance of success?
      Should a certain number of prisoners be nominated to count? Can the bulb help optimise it a little?
      Do the prisoners have access to a computer during their meeting to program a numeric solution?

    13. Re:The best riddle site on the net by Anonymous Coward · · Score: 0

      I think what you mean is that if the prisoner hasn't flipped on the light before, and the light is off when he enters the room, he should turn it on. However, if the light is already on, or he has already flipped it on before, he does nothing.

      Otherwise, you could get the situation where prisoner X enters the room for the first time and finds the light already on. So he does nothing. The accountant comes through and one to the tally. Now prisoner X will never flip the light on b/c it will never be his first time in the room again. Therefore he'll never be included in the tally.

    14. Re:The best riddle site on the net by Anonymous Coward · · Score: 0

      Huh? Why is this funny? It's practical, fast and saves messing about trying to remember tallies. Damn FUNNY! We want +5 Obvious!
      (full disclosure - it was my immediate reaction and I wasn't kidding...)

  72. Hypergame by scottc229 · · Score: 1

    I first read about hypergame from Smullyan (I don't remember which book), but the mathworld reference is at http://mathworld.wolfram.com/Hypergame.html

  73. Some geometry by calvin1981 · · Score: 1

    This is representative of the problems I considered "cute" back in my high-school days: Show that, given any 6 points inside a circle of radius 1, some two are within distance 1 of each other. The proof is simple, but involves a cute trick.

    1. Re:Some geometry by Anonymous Coward · · Score: 0

      Hmm, I found such solution:

      Imagine the circle is a pie cut in 6 equal pieces and points are candles.

      To be at distance larger than one from each other - candles have to be separated
      by at least one full slice. Since there are only 6 slices and 6 candles - it is not possible,

  74. whole bunch of em by mako1138 · · Score: 2, Informative

    Right here.

    Incidentally, that page has been slashdotted in the past.

  75. P=NP? by dalmozian · · Score: 1

    There is no problem that the Slashdot community can't solve. So what about that tiny 'P versus NP' problem?

    --
    DALMOZIAN if you don't have anything to say, type it
  76. A couple of favorites... by R3d+M3rcury · · Score: 1

    If you take two apples from three apples, how many apples do you have?

    Most states have laws against siblings marrying, but is it legal for a man to marry his widow's sister in West Virginia?

    These are pretty old and pretty easy...

    1. Re:A couple of favorites... by grolschie · · Score: 1

      A). I now have 2 juicy apples
      B). He would be dead, so he can't marry.

  77. Guess by BadDream · · Score: 1

    Stand them all on end and end up with zero heads in both piles?

    --
    No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style.
    1. Re:Guess by ScottSCY · · Score: 1

      that's what I was going to say; you beat me to it! Good job.

  78. Euler's Formula by awkScooby · · Score: 1

    I think the one you mean is e^(i*pi) - 1 = 0. That's "Euler's Formula", athough there are many formulas that go by that name... An interesting excercise is to show why that formula is true.

    1. Re:Euler's Formula by Hank+the+Lion · · Score: 1

      I think the one you mean is e^(i*pi) - 1 = 0. An interesting excercise is to show why that formula is true.
      Very interesting indeed! How long did it take you? And did your math teacher approve?

      The correct relation appears to be e^(i*pi) + 1 = 0 ;-)
      Which is an interesting synopsis of math, as it combines in one, very compact, true statement all the basic operators equality, addition, multiplication and raising to a power and the basic constants 0, 1, e, i and pi!

  79. Grey Labyrinth by cy_a253 · · Score: 1

    Here's an excellent archive of puzzles going all the way back to 1996. These puzzles range from "interesting" to "amazingly clever".

    http://www.greylabyrinth.com/archives.php

  80. The King and the Chalice (only for Experts!) by brian0918 · · Score: 3, Interesting

    There is a king and there are his n prisoners. The king has a dungeon in his castle that is shaped like a circle, and has n cell doors around the perimeter, each leading to a separate, utterly sound proof room. When within the cells, the prisoners have absolutely no means of communicating with each other.

    The king sits in his central room and the n prisoners are all locked in their sound proof cells. In the king's central chamber is a table with a single chalice sitting atop it. Now, the king opens up a door to one of the prisoners' rooms and lets him into the room, but always only one prisoner at a time! So he lets in just one of the prisoners, any one he chooses, and then asks him a question, "Since I first locked you and the other prisoners into your rooms, have all of you been in this room yet?" The prisoner only has two possible answers. "Yes," or, "I'm not sure." If any prisoner answers "yes" but is wrong, they all will be beheaded. If a prisoner answers "yes," however, and is correct, all prisoners are granted full pardons and freed. After being asked that question and answering, the prisoner is then given an opportunity to turn the chalice upside down or right side up. If when he enters the room it is right side up, he can choose to leave it right side up or to turn it upside down, it's his choice. The same thing goes for if it is upside down when he enters the room. He can either choose to turn it upright or to leave it upside down. After the prisoner manipulates the chalice (or not, by his choice), he is sent back to his own cell and securely locked in.

    The king will call the prisoners in any order he pleases, and he can call and recall each prisoner as many times as he wants, as many times in a row as he wants. The only rule the king has to obey is that eventually he has to call every prisoner in an arbitrary number of times. So maybe he will call the first prisoner in a million times before ever calling in the second prisoner twice, we just don't know. But eventually we may be certain that each prisoner will be called in ten times, or twenty times, or any number you choose.

    Here's one last monkey wrench to toss in the gears, though. The king is allowed to manipulate the cup himself, k times, out of the view of any of the prisoners. That means the king may turn an upright cup upside down or vice versa up to k times, as he chooses, without the prisoners knowing about it. This does not mean the king must manipulate the cup any number of times at all, only that he may.

    Assume that both the king and the prisoners have a complete understanding of the game as I have just explained it to you, and that the prisoners were given time beforehand to come up with a strategy. The king was able to hear the prisoners discuss, however, so also assume that if there is a way to foil a strategy, the king will know it and exploit the weakness. The prisoners must utilize a strategy that works in absolutely every single possible case.

    Now you must figure out not only how to keep the prisoners alive, but how to also ensure their eventual freedom. When can any one of them be certain they've all been in the central chamber of the dungeon at least once? And how? Don't try to imagine any trickery like scratching messages in the soft gold of the chalice. The problem is as simple as it sounds. The prisoners have absolutely no way of communicating with each other except through the two orientations of the chalice. If any of them attempts any trickery at all they will all be beheaded. All the prisoners can do is turn the chalice upside down or right side up, as they choose, whenever they are called into the chamber.



    (written by a former roomate)

    1. Re:The King and the Chalice (only for Experts!) by Cyn · · Score: 1

      I demand an answer or a link to the answer, as I am confounded by it.

      --
      cyn, free software and *nix operating systems enthusiast.
    2. Re:The King and the Chalice (only for Experts!) by Anonymous Coward · · Score: 0

      easy: a prisoner can answer yes at any time because all the prisoners had to be in the room at some point in time to be placed in their cells-- what do I win? :)

    3. Re:The King and the Chalice (only for Experts!) by brian0918 · · Score: 1

      You won't find it anywhere on Google. Although there are countless possible solutions, I only know of 2 people who have solved it.

    4. Re:The King and the Chalice (only for Experts!) by brian0918 · · Score: 1

      RTFP

      "Since I first locked you and the other prisoners into your rooms, have all of you been in this room yet?"

    5. Re:The King and the Chalice (only for Experts!) by admsteiner · · Score: 2, Informative

      This seems to be a derivation of a riddle given to my friend's math professor when he interviewed at the NSA...

      One person is appointed the leader. He always turns the cup upside down. Everyone else enters. If the cup is right side up, they leave it, if it upside down, they put it right side up, but only if they previously have not flipped the cup. So the only time the leader would flip the cup is if another prisoner had already been in the room.

      So how to deal with the fact that the King can flip the cup as well? Obviously its only an issue if the King flips the cup an odd number of times and then calls in the leader. Not sure how to get around this constraint, and the one that the King can hear them and thus foil the plan. But I'm off to bed, someone else can finish it.

    6. Re:The King and the Chalice (only for Experts!) by omgpotatoes · · Score: 1

      That's the solution, isn't it? Since the prisoners know the maximum number of times the king can flip it, just wait for n+k flips instead of n flips, and we're guaranteed to have covered every prisoner.

    7. Re:The King and the Chalice (only for Experts!) by admsteiner · · Score: 1

      I may have misread part of the problem. I wasn't sure whether we were told what k was, if the prisoners knew what k was (though in retrospect it makes sense), and whether it was k times in total or k times per flip (though the former would make more sense, after all, who cares if he flips it a thousand times between prisoners?) Good point,thanks for pointing it out.

    8. Re:The King and the Chalice (only for Experts!) by Anonymous Coward · · Score: 0

      Putting spit, blood, water, (ie some indicator of whether or not it has been turned) in the top of the chalice is off limits?

    9. Re:The King and the Chalice (only for Experts!) by brian0918 · · Score: 1

      "That's the solution, isn't it?"

      Not even close. :)

    10. Re:The King and the Chalice (only for Experts!) by omgpotatoes · · Score: 1

      No problem, that's a beautiful solution - I was nowhere near it when I read yours.

    11. Re:The King and the Chalice (only for Experts!) by nwbvt · · Score: 1

      I thought about that. The problem is the king doesn't have to flip it over at all. Thus when he hears this strategy, he can just never flip it (or just flip it less than k times) and the leader will never be able to say yes. At least not until he goes insane from sitting in a cell all day and imagines he sees the cup flipped.

      --
      Mathematics is made of 50 percent formulas, 50 percent proofs, and 50 percent imagination.
    12. Re:The King and the Chalice (only for Experts!) by pgpckt · · Score: 1

      In that case, can you type up a solution and link it?

      --
      Lawrence Lessig is my personal hero.
    13. Re:The King and the Chalice (only for Experts!) by Cyn · · Score: 1

      I'm a commenter, not an article submitter - I knew to check google first :)

      I'll ponder it some - just so I'm sure, you can't bash the kings brains in out of frustration using the chalice, right?

      --
      cyn, free software and *nix operating systems enthusiast.
    14. Re:The King and the Chalice (only for Experts!) by omgpotatoes · · Score: 1

      Darn, spoke too soon. I've gotta run as well, hope someone figures this sucker out :-)

    15. Re:The King and the Chalice (only for Experts!) by brian0918 · · Score: 2, Funny

      "just so I'm sure, you can't bash the kings brains in out of frustration using the chalice, right?"

      The king knows Kung Fu.

    16. Re:The King and the Chalice (only for Experts!) by admsteiner · · Score: 1

      hehe. nwbvt (a thread or two down) raised a good point also. The King can overhear them, so he can either not flip it at all, or flip it less than k times, thus really messing with their heads...

    17. Re:The King and the Chalice (only for Experts!) by forand · · Score: 1

      Is this just a word riddle? So the answer could be: They are not explicitly locked BACK into their rooms after they are asked the question so they can just count to make sure all the members are back?

    18. Re:The King and the Chalice (only for Experts!) by Kagura · · Score: 1

      After the prisoner manipulates the chalice (or not, by his choice), he is sent back to his own cell and securely locked in. I'm not an expert by far, and this certainly did kick my butt. I can't figure anything out. No way to establish a "leader", either, for a previous poster's idea.

    19. Re:The King and the Chalice (only for Experts!) by admsteiner · · Score: 1

      Pain in the neck...wanted to go to sleep an hour ago, but now I have to figure this one out :)

    20. Re:The King and the Chalice (only for Experts!) by brian0918 · · Score: 1

      " Pain in the neck...wanted to go to sleep an hour ago, but now I have to figure this one out :)"

      I brought the productivity of the entire student work force at Sandia Natl Labs down to zero this summer by posting this problem on their message boards. :)

      Just so you know, the only person who I know legitimately solved this problem (none of the students at SNL could get it) worked at it for a couple weeks before getting the solution, albeit not the optimal solution.

    21. Re:The King and the Chalice (only for Experts!) by pgpckt · · Score: 2, Interesting

      It seems that the Chalice is a red-herring.

      Obviously, the most devious thing that the king can do is to always make sure the chalice is rightside up. Therefore, it will always be rightside up. Therefore, the chalice can provide no information. Therefore, it is a red-herring.

      With all other avenues of gathering information forbidden, there seems no information left to base an answer on.

      --
      Lawrence Lessig is my personal hero.
    22. Re:The King and the Chalice (only for Experts!) by l3prador · · Score: 1

      Also, couldn't the king just call them in less times than the number of prisoners there are?

    23. Re:The King and the Chalice (only for Experts!) by nwbvt · · Score: 1

      How about instead of each prisoner only flipping the chalice once, they flip it the first k+1 times they get the opportunity? Then once the leader gets to n(k+1) flips, he knows everyone has been in the room and flipped it at least once.

      --
      Mathematics is made of 50 percent formulas, 50 percent proofs, and 50 percent imagination.
    24. Re:The King and the Chalice (only for Experts!) by mrcdeckard · · Score: 1

      a few details weren't clear. we get to choose the number t, how many times each prisoner is called in, but do we get to choose the number k?

      mr c

      --
      "Physics is like sex. Sure, it may give some practical results, but that's not why we do it." - R. Feynman
    25. Re:The King and the Chalice (only for Experts!) by chgros · · Score: 1

      Obviously, the most devious thing that the king can do is to always make sure the chalice is rightside up. Therefore, it will always be rightside up. Therefore, the chalice can provide no information. Therefore, it is a red-herring.
      No, since he can only move it k times.

    26. Re:The King and the Chalice (only for Experts!) by Anonymous Coward · · Score: 0

      This would be true, but the king can only flip the chalice k times. This k has to be known to the prisoners or else the chalice information would be of no use.

      Thus, the chalice does provide information, as all prisoners have to assume that what they see might have been changed by the king, but only up to k times. Thus the first k times you see a certain situation, you have to disregard it.

      The key to this problem I believe lies in having the King want to flip the cup as much as possible; any less and the prisoners will escape. However, the prisoners can then wait long enough for them to be guaranteed that the King has flipped the chalice at least k times, and then they can communicate as normal.

      I hope the solution follows this idea, or else the last 10 minutes spent would have been utterly wasted.

    27. Re:The King and the Chalice (only for Experts!) by brian0918 · · Score: 0, Troll

      "the king can do is to always make sure the chalice is rightside up"

      No, he can't.

    28. Re:The King and the Chalice (only for Experts!) by eff · · Score: 2, Informative
    29. Re:The King and the Chalice (only for Experts!) by brian0918 · · Score: 1

      Everything is known to everyone before the game begins.

    30. Re:The King and the Chalice (only for Experts!) by admsteiner · · Score: 1

      Still runs into the problem with the King overhearing. He could make sure to call them in an arbitrary numbe rof times less than n(k+1).

    31. Re:The King and the Chalice (only for Experts!) by Burning1 · · Score: 1

      Assume the king knows this. He may choose not to flip the challace at all.

    32. Re:The King and the Chalice (only for Experts!) by Anonymous Coward · · Score: 1, Interesting

      It feels like the "flipping the chalice" bit is deliberate misdirection. Where were the prisoners able to communicate to come up with a strategy? It's explicitly stated that they can't hear each other from their own cells -- they had to have either 1) all moved out into the central room (or through it to some other location) to talk to each other, or 2) all moved into one cell. If 1) is correct, then the first person to walk out can say "Yes" and they will all be freed. If 2) is correct, then when the person whose cell was used as a meeting room is called upon, he says "Yes" -- everyone else simply states "I don't know."

      Am I close? :)

    33. Re:The King and the Chalice (only for Experts!) by saranagati · · Score: 1

      here's some possible answers, first the simple solution:

      But eventually we may be certain that each prisoner will be called in ten times, or twenty times, or any number you choose.
      Apparently you are the king, so you can just tell each prisoner that he is or isn't the final prisoner.

      No where does it say that YOU are a prisoner, so you can just plan a rescue mission to rescue the prisoners.

      If you are a prisoner, just beat the king into submission with the chalice and free the other prisoners.

      --
      Give a man a match and he'll be warm for a minute, set him on fire and he'll be warm for the rest of his life.
    34. Re:The King and the Chalice (only for Experts!) by nwbvt · · Score: 1

      Of course this still suffers from the potential problem of the leader going insane and losing count, only now it is increased by a factor of n because the same can now happen to any of the prisoners.

      --
      Mathematics is made of 50 percent formulas, 50 percent proofs, and 50 percent imagination.
    35. Re:The King and the Chalice (only for Experts!) by brian0918 · · Score: 1

      This problem is fundamentally different from that one. It won't help you much to know how to do that one, and is more likely to make you sure of a wrong solution than to get you to a right solution.

    36. Re:The King and the Chalice (only for Experts!) by l3prador · · Score: 1

      The prisoners know what k is?

    37. Re:The King and the Chalice (only for Experts!) by brian0918 · · Score: 1

      "Am I close? :)"

      Nope.

    38. Re:The King and the Chalice (only for Experts!) by Nirvelli · · Score: 1

      Didn't they all have to go through the room to get to their cells in the first place?

    39. Re:The King and the Chalice (only for Experts!) by nwbvt · · Score: 1

      I was under the impression he had to eventually call everyone x number of times for any arbitrary number x, including those greater than n(k+1). Then again its late and I should be asleep (but I can't because I'm thinking about those damn chalices).

      --
      Mathematics is made of 50 percent formulas, 50 percent proofs, and 50 percent imagination.
    40. Re:The King and the Chalice (only for Experts!) by Anonymous Coward · · Score: 0

      Wow. This is hard, especially so thanks to the k "adjustments" that the king gets to make. A few ideas for moving forward...

      -If we know that everyone will eventually get called an arbitrary number of times, then that means one prisoner could have been appointed the official answerer. Not sure if that will be necessary, but it is nice to know you can have (n-1) prisoners simply devoted to flipping duty.

      - As for defeating the k adjustments, my first thought was Hamming-code like error-correction. But we have a bunch of senders, so I don't know how that would work.

      -Perhaps a rule that you always leave the chalice in the state you last recall it before doing any flipping/non-flipping shenanigans? That's one way to beat the "call the same prisoner a billion times in a row" games.

      If the prisoners know the value of k (which I don't think they do, but it might help to solve an easier problem), this game can be won reasonably easy. The only prisoner allowed to turn the chalice right-side up is the head prisoner. When any other prisoner sees the chalice upright, he is to put it down the first (k+n) times, and ignore it all other times. If any other prisoner sees the chalice upside down, they do nothing. The observer, whenever he sees the chalice upside down, rights the chalice and marks a tick. After (n-1)(n+k)-k ticks (=n^2 +(k-1)n -2k), the observer can safely say everyone's been in the room. The king can basically mess with the count by either +k or -k (or anywhere in-between). Suppose he tries to get an early call by calling all prisoners but one at least (n+k) times, and adds in k phantom turns himself. The observer sees (n-2)(n+k)+k ticks (=n^2 +(k-2)n -k), which clearly isn't enough. On the other hand, if the king tries to insure that the observer is never sure via righting turns, we get (n-1)(n+k)-k, which is (n^2 +(k-1)n -2k), which conveniently is exactly enough to decide (precisely why I threw the -k in the above equation).

    41. Re:The King and the Chalice (only for Experts!) by Anonymous Coward · · Score: 0

      How do we know this riddle isn't a hoax and you are wasting all our time with an unsolveable problem? :)

    42. Re:The King and the Chalice (only for Experts!) by Anonymous Coward · · Score: 0

      Spoiler warning (I think)

      1) One person is nominated watcher. All they do is return the chalice to the upright position and count the number of times they've done it.
      2) Everyone else, upon finding an upright chalice, turns it upside down. Otherwise, they leave it. They each must turn it over exactly 3k+1 times, where k is the number of times the king can move the chalice.
      3) If there are n+1 prisoners (using n+1 makes the algebra easier later), n of whom are doing the turning (the other one is the watcher), then the moment the watcher counts 3kn - 2k + n turns, he knows that everyone has been through.

      Lets say that the king plans to make them think more people have been called out than actually have. He will turn the chalice upside down prior to calling out the watcher. He can do this k times. The maximum number of turns that can occur while 1 prisoner still hasn't left his cell is
      prisoner turns (excluding 1 prisoner) + king turns
      = (n-1)(3k+1) + k
      = 3kn - 2k + n - 1
      So once 3kn - 2k + n turns have been made, the watcher knows that everyone has been out once.

      Conversely, what if the king wants them to think that fewer prisoners have been out than actually have. He will turn the chalice rightside up prior to calling the watcher (having had a prisoner turn it upside down). In this case, after every prisoner has turned it upside down their 3k + 1 times, the number of turns the watcher will see is
      Prisoner turns - king turns
      = n(3k+1) - k
      = 3kn - k + n
      Assuming k > 0, this will be > 3kn - 2k + n, so the watcher will be assured of eventually seeing 3kn - 2k + n turns eventually.

      Example
      4 prisoners, king can turn it 2 times.
      n=3, k=2
      Watcher knows everyone has been through after he sees 17 upside down chalices.
      If the king is trying to fool him into thinking more people have come out than have, the most number of turns while one prisoner still hasn't come out is 16. For it to turn over 17 times, everyone must have come out.
      If the king is trying to stop them by turning it right way up, they will still eventually turn the chalice over 21-2 = 19 times, so the watcher will definitely eventually see 17 times.

    43. Re:The King and the Chalice (only for Experts!) by Negative+Response · · Score: 2, Insightful

      This puzzle makes no sense. Either you didn't word it correctly, or it's just plainly wrong. Imagine the case where k is larger than the number n, the times each prisoner needs to be called eventually. All the king needs to do is pick a random prisoner, say "Jack", call him in n times, and undo the cup whenever Jack flips it. After n times, just forget about Jack and call others any way he wants. As far as Jack is concerned, he will never have a chance to answer questions again; for others, Jack never left any information at all, so there's no way any of them can be certain whether Jack has been called at any given point of time. Other prisoners may answer "yes" out of boredom eventually, and that's about the best they could do, always with a chance to lose their collective heads.

    44. Re:The King and the Chalice (only for Experts!) by retro128 · · Score: 1

      The answer is simple. The first prisoner called in must kill the king and take his keys, then free his comrades. /Sorry, I'm a run-n-gun type of guy //You didn't say anything about GUARDS

      --
      -R
    45. Re:The King and the Chalice (only for Experts!) by brian0918 · · Score: 1

      You've got the right idea, but it's nowhere near that simple.

      One thing I notice everyone doing is assuming that the chalice starts out rightside up.

    46. Re:The King and the Chalice (only for Experts!) by brian0918 · · Score: 1

      You need to read the problem again. n is the number of prisoners

    47. Re:The King and the Chalice (only for Experts!) by mrcdeckard · · Score: 1

      how is it fundamentally different? the only thing different (that i can see) is that the counter adds k to n to be sure to have ruled out any meddling done by the king.

      this is a good problem, btw, direct application to embedded system where all you might have is a single flip-flop . . .

      mr c

      --
      "Physics is like sex. Sure, it may give some practical results, but that's not why we do it." - R. Feynman
    48. Re:The King and the Chalice (only for Experts!) by Klatoo55 · · Score: 1

      The only method of communicating is the chalice. We must assume the chalice is able to be manipulated by the king, flipped or not, every time a prisoner is sent back. Therefore, the chalice essentialy randomizes itself, and we have to assume that it may do it as the king wishes. This means that each new prisoner is potentially coming back into the room with no trace of the previous prisoner's presence, no indication of how many have been there before. If their only method of communication erases itself every time they take their eyes off it (or can erase itself, which is basically the same thing), then they HAVE no method of communication, and the problem is impossible to solve. I really think this is an impossible problem. How can any data be gleaned from a randomly randomizing randomizer?

      --
      ------- "A true friend stabs you in the front." -Eliot
    49. Re:The King and the Chalice (only for Experts!) by OverlordQ · · Score: 0, Troll

      Of course not, then everybody would know he's full of shit :)

      --
      Your hair look like poop, Bob! - Wanker.
    50. Re:The King and the Chalice (only for Experts!) by Negative+Response · · Score: 1

      My bad, should have used letter "m" I guess. Still, in my reply, n is your "ten times, or twenty times, or any number..." figure.

    51. Re:The King and the Chalice (only for Experts!) by csplinter · · Score: 0

      I'm pretty sleepy right now, but if I understand correctly, the prisoners should disregard the chalice completely, and anwser "yes", becuase obviously they were hauled through the kings center chamber and from there to their cells at some point. Am I correct?

    52. Re:The King and the Chalice (only for Experts!) by vladkrupin · · Score: 1

      well, that's exactly what the previous poster has suggested -- force the king to flip it. That is, put him in a situation that if he does not flip the chalice, it would be obvious to at least one of the prisoners that all of them have been to the room already.

      If we can prove that the king could be forced to flip the chalice once, we can prove that the prisoners can go free. I believe the opposite is also true -- if the king cannot be forced to flip the chalice, the prisoners at best will spend life in prison. I think I am getting close to proving the latter, even though the original poster has suggested otherwise. Tome to go get some sleep though.

      --

      Jobs? Which jobs?
    53. Re:The King and the Chalice (only for Experts!) by nolen · · Score: 1

      Let the number of prisoners (n) be 10, let the number of times each prisoner is called be 1, and let the number of times the king can flip the chalice (n) be a billion. Clearly, in this case, the state of the chalice tells the prisoners absolutely nothing. Therefore I submit that the puzzle is impossible, unless I have misinterpreted something.

    54. Re:The King and the Chalice (only for Experts!) by omgpotatoes · · Score: 1

      The king will call the prisoners in any order he pleases, and he can call and recall each prisoner as many times as he wants, as many times in a row as he wants. The only rule the king has to obey is that eventually he has to call every prisoner in an arbitrary number of times. So maybe he will call the first prisoner in a million times before ever calling in the second prisoner twice, we just don't know. But eventually we may be certain that each prisoner will be called in ten times, or twenty times, or any number you choose. I think this part seems to invalidate any simple leader-based solutions - given that the king knows which one the leader is, he would simply not call him until right at the end, then use up all his calls at once.

    55. Re:The King and the Chalice (only for Experts!) by Anonymous Coward · · Score: 0

      If the king can't call in any prisoner more than the arbitrary-number-of-times before calling in any other prisoner arbitrary-number-of-times, a solution would be as follows (in rot13):

      Rnpu cevfbare nyjnlf fnlf "V'z abg fher" sbe nyy gurve neovgenel-ahzore-bs-gvzrf gurl tb vagb gur ebbz. Nsgre gung, gurer vf ab jnl gurl pna or pnyyrq vagb gur ebbz ntnva hayrff rirelbar ryfr vf nyfb pnyyrq va sbe gurve neovgenel-ahzore-bs-gvzrf. Gurersber, rvgure rnpu cevfbare jnvgf sbe gurve (neovgenel-ahzore-bs-gvzrf + 1) ghea gb nafjre "lrf" be znlor gur xvat jba'g ercrng gur tnzr naq jvyy whfg yrnir gurz nyy gb ebg va gurve pryyf, va juvpu pnfr V'z jebat.

      Or, the prisoners could just revolt. Seems like it might work.

    56. Re:The King and the Chalice (only for Experts!) by kevmo · · Score: 1

      I believe that you might be able to set the number of times each prisoner is called in yourself. You could say that if you knew n=10 and k=1000000000, then you could set "m" or whatever the number of times each prisoner is called in, to be something like 10^10 or something. Just as long as you set it to a finite number.

    57. Re:The King and the Chalice (only for Experts!) by Anonymous Coward · · Score: 0

      There is no leader. Communication moves from between cell 1 and 2 upwards - only 2 prisoners communicate at a time.

      Basic bit transmition is as follows:

      1 bit is transmitted every 4 cycles between prisoners 1 and 2. 2 initiates the exchange - every other time, 2 places the chalice up or down. If 1 wants to send a binary "0" to 2, he places the chalice up every time, if he wants to send a "1", he places the chalice down. If 2 flips the chalice twice without any interferance, he knows that 1 is not paying attention, and starts over with that bit.

      Each bit must be transmitted k + 1 times. Any errors, and the communication between those prisoners restarts.

      The overall protocol is as follows: prisoner 1 sends his number (1) to prisoner 2. Prisoner 2 sends his number to prisoner 1. Prisoner 1 sends his number back to prisoner 2.

      Once prisoner 2 has completed the handshake with prisoner 1, prisoner 1 stops communicating and prisoner 2 starts communicating with prisoner 3.

      The communication keeps on going around until the last prisoner gets the signal. The last prisoner tells the king that everyone has been in the room.

    58. Re:The King and the Chalice (only for Experts!) by Richard_J_N · · Score: 1

      2 things seem unclear:

      1)Is the value of k known (in advance) by the prisoners?

      2)"The only rule the king has to obey is that eventually he has to call every prisoner in an arbitrary number of times."
      Does this mean that at some point, all prisoners have been called in the same number, n, of times? [Where n is unknown, but is at some point equal for all prisoners]

    59. Re:The King and the Chalice (only for Experts!) by nothings · · Score: 1
      But eventually we may be certain that each prisoner will be called in ten times, or twenty times, or any number you choose.
    60. Re:The King and the Chalice (only for Experts!) by Anonymous Coward · · Score: 0

      (I'm not the grandparent AC)

      I don't see how the chalice starting upside down makes a huge difference -- it just means that the "master" prisoner does nothing but make sure the chalice is right-side up the first time he is in the room.

      I'm not sure what the correct solution is but I think its solvable with information theory... first each non-master prisoner gives themselves a number at the beginning of the game (since we're told that everyone is "in" on the rules of the game they probably have some time to plan a strategy before we start, right?)

      Then the master sends signals as binary messages.. the problem is that any individual receptor doesn't know how to be sure he got the whole message so you'd have to design the protocol very carefully to deal with that. The nice thing is that makes the king's potential interference something that can be dealt with -- you know at most K/N bits of the message are corrupt so w/ the right ECC code you can emulate a loss-free channel.

      Then you just deal with the chalice as a CSMA/CD (shared-ethernet-like) network where only one party can speak at once, but it's possible to detect when that happens (you see the cup flipped from the state you last left it in -- that means either another prisoner or the king is "talking" on the ethernet) and back-off and try again. If you design the right protocol then it becomes a matter of using the network to talk: "Master prisoner: are you there prisoner 1?" "..." "are you there prisoner 2" "yes" "are you there prisoner 3" ... Once the master has heard an ACK from every prisoner he answers "YES" the next time he's called.

      The tricky part is dealing with the fact its an radically time-unsynchronized channel -- i.e. if (M)aster prisoner is talking to a particular (S)lave and the king calls them in MSMSMS order everything's great but if its like MMMMSMSSS then that slave will see rather jumbled data. It seems to me that this should be possible to deal with but I'm not an obvious solution... the only thing I can think of is if the prisoners can just decide "we're only sending one bit per day" -- even if they're kept in sensory deprovation their natural sleep/wake cycles should be a close enough shared clock source to be able to recover messages from. If they're not called within a 24-hour period then its a lost bit -- if the ECC code doesn't save the message then it's a "dropped packet"

      I think with those pieces you could engineer a working (albiet VERY slow) way for everyone to communicate arbirtrary binary data. Once you have that the problem is solved.

      I sure hope there's a more elegant solution, though.

    61. Re:The King and the Chalice (only for Experts!) by Anonymous Coward · · Score: 0
      Designate the prisoners P0, P1, P2, ...
      Define n as the number of prisoners.
      Define k as the number of modifications the king may make.
      The initial state, whatever it may be, is represented as 0.
      The inverted state is represented as 1.

      P0 counts transitions from 0 -> 1, and resets any 1 -> 0. All the rest only change 0 -> 1 (leaving 1's alone), and they each do it at most (n - 1) * k times each.

      The king has the power to change the transition count by plus or minus k, as he can block transitions or create false transitions.

      As soon as P0 counts (n - 1 - 1) * ((n - 1) * k) + k + 1 transitions, he can be sure that the king's influence is depleted, and that all have entered the room.

      sch

    62. Re:The King and the Chalice (only for Experts!) by stefpub · · Score: 1

      The first time a prisoner enters the room, he puts or leaves the chalice upside down.
      Any time after that, he puts or leaves it right side up.
      He also counts the number of times he's seen the chalice upside down.
      When this number reaches n+k-1 (or n+k if the chalice can start upside down without the king touching it) for any prisoner, he can say "yes".

      Of course, it only works if the number of time the king has to call a prisoner is bigger than the target.

      Stephane

    63. Re:The King and the Chalice (only for Experts!) by cgenman · · Score: 1

      The problem is that the king could choose to negate or add to any or some of the signal or not. You have n(k+1)-k=Resultant Signal=n(k+1)+k. The number of flips was significant previously, because it was telling the leader that everyone had been out. The leader could count them all, and know the moment everyone was out. But the key that made it work was everyone flipping it only once, otherwise the leader would overcount and get himself / herself killed.

      I suspect that playing with this possible negation will be key to solving the riddle... that you don't need every prisoner to flip the chalice k+1 times, but some ratio of k/n times. But all that does is reduce the margin of error from something way too big to something a little too big, as now your signal is between n(k/n)-k and n(k/n)+k, or between 0 and 2k. And the king doesn't have to, so the range is actually between k to 0 and k to 2k.

      Not everyone needs to send signal through, but the signal that doesn't get through should be used to sap the king's k alterations in a reliable fashion.

      Of course, my old puzzle solving buddy would be the first to point out that chalices are generally very heavy, and kings are generally very soft.

    64. Re:The King and the Chalice (only for Experts!) by stefpub · · Score: 1

      Never mind answering.
      I've seen the errors of my way :)

    65. Re:The King and the Chalice (only for Experts!) by saranagati · · Score: 1

      if the king calls out p0 the arbitrary number of times before calling any other prisoner, then this plan fails.

      --
      Give a man a match and he'll be warm for a minute, set him on fire and he'll be warm for the rest of his life.
    66. Re:The King and the Chalice (only for Experts!) by biryokumaru · · Score: 1

      Yes, he can. If he can flip the chalice an arbitrary number of times, then unless the inmates can wait an infinite amount of time we should treat that number as infinite. Therefore the chalice cannot retain information. As the question states the orientation of the chalice is the only method of communication, we can therefore assume the prisoners cannot communicate. Therefore they have no way of knowing if everyone has been in the room.

      This is of course assuming that the prisoners are not able to wait an infinite amount of time. If they are, then in a statisticians paradise, all things must occur, and therefore have occured, and therefore all the prisoners have been in the room since he locked them in their cells. A similar solution can be derived from a misinterpretation of quantum superposition.

      I believe "nolen" said it best below (edited for poor choice of variable names):

      Let the number of prisoners (m) be 10, let the number of times each prisoner is called be 1, and let the number of times the king can flip the chalice (k) be a billion. Clearly, in this case, the state of the chalice tells the prisoners absolutely nothing. Therefore I submit that the puzzle is impossible, unless I have misinterpreted something.

      Perhaps there is part of the puzzle that has been miscommunicated? I also make a wide range of assumptions based on your assertion that it is not a silly word puzzle.

      --
      When you're afraid to download music illegally in your own home, then the terrorists have won!
    67. Re:The King and the Chalice (only for Experts!) by Anonymous Coward · · Score: 0

      (I am the parent AC this time)

      Thinking about it a little more there's a couple obvious refinements possible:

      Fist there's no "master prisoner" needed to make a working protocol --

      since everyone can listen at once to the shared medium (unless they don't get called during a particular clock slice) they can just use a protocol that says "I am prisoner #I. I have heard (or heard of) packets generated by prisoner's #A, B, and C. The checksum of the previous two sentences is XYZ" So the data packets are:
      My ID: log2(N) bits, rounded up
      Other IDs I've seen: N-1 bits
      Checksum: however many bits of CRC are enough to detect any K bit error in the CRC

      The whole thing is sent encoded (4-in-5/7-in-8/whatever) so it's possible to detect the difference between "someone is sending zeros" and "the shared communication channel is idle" Also this means that the king can't "send" messages by just sitting there and calling a receiver once a day without flipping - he has to burn some of his "K" flips to send anything.

      So at some random time a prisoner starts sending a 1-bit-per-day message to the world saying they're there and they don't know who else is. Two attacks the king can do:
      * Interrupt the message by flipping the chalice. The sender will realize this as a collision and back off. The king can play this card only K times
      * Act as a "man in the middle" by always flipping the challice after the sender leaves and flipping
      it back before he returns. (i.e. trying to make the receivers believe incorrect information) However he can change at most K/2 bits in the message that way so the CRC will prevent any receiver from believing it. A
      * The king can also act as a sender by flipping the challice himself, but as long as the packet is longer than K bits he won't be able to send one. Well, actually that's not true -- he could let the sender complete everything but the last bit of their message and then send a false "1" followed by a false CRC (and just not allow the sender back in the room until he's done) As long as the CRC requires at least "K+1" flips to fake this is OK. (If K is large a very long CRC would need to be used but it remains theretically possible)

      Now everyone who successfully receives a message takes the sender and all the people the sender has heard about and OR's it into their own "who I've heard about" mask. If this mask is now all one's the next time the king calls him he ends the game -- at least somebody as received an authenticated message from everyone else in the jail. Since sending a message implied that they were in the room -- and the king is not able to interject false-but-believed messages into the network -- we know everybody's been there at least enough times to send the bits that make up a packet.

      If his personal "prisoners I know have been there" bitmask still has zeros in it he just waits a random amount of time before attempting another transmission. If he sees snoops packets from lots of other folks indicating that they've heard HIM then he can wait awhile.

      The last thing I thought about is the "observed data clock" -- i.e. how much time does a prisoner have to wait per bit before its likely that at least someone else saw the whole message? If the king knows that prisoner 13 *needs* to communicate with the group for them to win the game he can just stop calling #13 for, say, a week everytime he's almost done with a packet.

      HOWEVER, this is not actually a problem! We know that there is *some* data rate that every prisoner can communicate at without the king breaking the rules of the game -- (proof: suppose at time "t0" prisoner A has been in the room 22 times and prisoner B has been in 143 times. We know that there will be some point in the future (call it "t1") that they'll both have been in the room at least 144 times. Therefore if the period of the data clock had been "t1-t0" then they could succesfully communica

    68. Re:The King and the Chalice (only for Experts!) by kaze+dcat · · Score: 1

      This problem is unsolvable

      If I am the King. I will just call each prisoner a required number of time in a row. Then return the position of the chalice before calling another prisoner
      for example:
      I call the first prisoner, then call that prisoner a million times and never call that prisoner again. After that return the chalice to the original position and call the next prisoner.I can do this k times (k number of prisoner) then that number of prisoner cannot leave any kind of information.
      Also you mention that the cell is soundproof but you never mention that its opaque
      is the chalice their only way of getting information?
      because even if they cannot hear anything if they can see what is going on inside the central room then the solution is easy

    69. Re:The King and the Chalice (only for Experts!) by m50d · · Score: 1

      I think he means every prisoner must be called in an infinite number of times (if the thing goes on forever), and was trying to appear clever by using fancy words.

      --
      I am trolling
    70. Re:The King and the Chalice (only for Experts!) by nathanh · · Score: 1

      It's a comms theory problem. Assume the simple case where n=2. Prisoner 0 (p0) needs to communicate an "I've been in the room" message to prisoner 1 (p1). Once p1 receives that message he can answer "yes" and both prisoners go free.

      However the only communication method is a chalice which is a lossy channel because the King can introduce k errors per message. In other words, for every k+1 bits communicated, only 1 bit is reliably transmitted. Fortunately the problem of transmitting data over a lossy channel was solved decades ago. It's called Error Detection and something simple like parity will do nicely. One parity bit can detect one bit error in the message. To detect potentially k errors you'll need k parity bits and to correct the message you'll need k+1 parity bits in addition to however many bits are in the message.

      However it gets worse. The King is under no obligation to alternate between p0 and p1, so p1 doesn't necessarily know that p0 has had an opportunity to send a new bit since the last time that p1 was in the room. Similarly p0 doesn't know that p1 has been in the room to observe the bit that p0 tried to transmit. So you need a self-clocking encoding scheme, such as Manchester Codes, and an acknowledgement message from p1 back to p0 for every bit. The acknowledgement could be something as simple as returning the chalice upright and choosing codes that ensure that zero-bits and one-bits both result in the chalice facing down.

      To extend this out to more than two prisoners, the prisoners need to agree to not touch the chalice unless they're participating in a communication with the prisoner immediately before them in the sequence. To do this you can prefix the message with an address (just like a MAC). The address can be something simple, such as the numeric sequence of the prisoner. Each pair of prisoners takes it in turn to transmit their message to the next prisoner in the sequence, with the final prisoner saying "yes" after he has received the message from the second last prisoner.

      There would be a hell of a lot of trips to the central room though.

    71. Re:The King and the Chalice (only for Experts!) by psst · · Score: 3, Insightful

      I came up with this solution in the shower. It has no pretense of being the optimal solution. Don't just say it's wrong; please reply with disproofs (especially the poster of the problem).

      This solution requires that each prisoner is guaranteed to be called to the room infinite number of times. Otherwise, if there's a maximum number of times t that a prisoner can be called to the room, then the king could select k = number of prisoners, call each one t times in a row, resetting the chalice to original position every t-th time (the last time he calls in any given prisoner). This would guarantee that every prisoner wouldn't be able to see any changes to the chalice made by any other prisoner. Thus they wouldn't be able to know if anybody has been to the room but then.

      1. Chalice has two states: 0 and 1.
      2. Without loss of generality, assume 0 as the initial state. (Suppose k = k'. Assume initial state = 0 and k = k' + 1. If originally the initial state is 1, that's equivalent to the king using the extra flip out of k' + 1).
      3. There is one head prisoner and n other prisoners.
      4. The head prisoner always sets the chalice to 1.
      5. The simple prisoners set the chalice to 0 the first M times they visit the room and see the chalice set to 1; they don't touch it afterwards.
      6. The head prisoner declares that all prisoners have visited the room after he sees the chalice in 0 state N times.
      Let's find out what M, and N are depending on k and n.

      7. When the head prisoner sees the chalice in 0 state for the N-th time, the chalice has been set to 0 by simple prisoners at least N - k times and at most N + k times.
      8. We know that N - k > M*(n - 1), otherwise one simple prisoner might have never visited the room.
      9. We also know that M*n > N + k, otherwise the simple prisoners may stop setting the chalice to 0 before the head prisoner ever gets to see 0 state for the N-th time.

      10. Playing with the above inequalities:

      N + k > M*(n - 1) + 2k (from 8)
      N + k >= M*(n - 1) + 2k - 1
      M*n > M*(n - 1) + 2k - 1 (from 9 and prev. inequality)
      M + M*(n - 1) > M*(n - 1) + 2k - 1
      M > 2k - 1

      Let's choose M = 2k

      11. Then N - k > 2k*(n - 1) (from 8)
      N - k > 2k*n - 2k
      N > 2k*n - k
      N > k*(2n - 1)

      Let's choose N = k*(2n - 1) + 1

      That's it! What do you think? =)

    72. Re:The King and the Chalice (only for Experts!) by m50d · · Score: 1

      The king only gets k flips, so the chalice isn't randomized.

      --
      I am trolling
    73. Re:The King and the Chalice (only for Experts!) by Anonymous Coward · · Score: 0

      I think you've hit on the key observation in this particular puzzle.

    74. Re:The King and the Chalice (only for Experts!) by G-funk · · Score: 3, Informative

      It's a terribly written version of the "warden and his prisoners" problem, which you can google. The only difference other than confusing language is the original problem has two on/off switches, and each prisoner must flip one, rather than one that can be left alone.

      *Spoiler* Don't read the following if you don't wanna know the answer:

      1) The prisoners elect one of their own to be a counter, the rest we will call non-counters.

      2) When a non-counter comes into the chalice room, if he can he will put the chalice right side up. If it's already right side up, he'll leave it alone. However, each non-counter will only do this once. If he's already flipped it in the past, and it's upside down, he'll leave it upside down.

      3) Every time the counter comes in, he checks the chalice. If it's upside down, he'll do nothing. If it's right side up, he'll flip it, and add one to his count. Once he's flipped it n times (n being the prisoner count), he knows everyone has done it. If the original state of the chalice is known, the problem can be modified so he only needs to flip it n-1 times.

      --
      Send lawyers, guns, and money!
    75. Re:The King and the Chalice (only for Experts!) by ysegalov · · Score: 0

      I didn't read throught the entire thing, but I think that you might be missing the two things the king can do: 1) transform K bits - this can be solved by an ECC as you said. 2) Choose the order of 'channel usage'! Did you consider this? It is not an 'Aloha' channel or something of the sort, the king can do whatever will screw your strategy.

    76. Re:The King and the Chalice (only for Experts!) by gedhrel · · Score: 1

      It's a straightforward and common expression, familiar to anyone who's done any maths. Unlike yours, which is an inaccurate layperson's attempt to express the same idea.

      Given an arbitrary finite number of visits, v, there's a finite number of calls the king makes, c, before every prisoner has been before him v times. The king gets to choose what the function c(v) is, but he's constrained to ensure it's well-defined for any value v.

      "Finite but unbounded", not "infinite".

    77. Re:The King and the Chalice (only for Experts!) by DissidentHere · · Score: 1

      I don't see how this can work. In the problem the king can listen to the prisoner's strategy. With this solution all the king must do is keep calling the counter, and keep flipping the chalice until the counter is convinced all have been called, at which point he is wrong and everyone dies.

      --
      "None of us are as dumb as all of us." - meeting mantra
    78. Re:The King and the Chalice (only for Experts!) by Anonymous Coward · · Score: 0

      (GP AC again)

      As long as the prisoners can wait some random number of turns then it should be fine -- no different than shared-ethernet (retransmit w/ exponential backoff)

      I guess the one attack the king COULD do is simulate data to one user by inviting them into the room only when the bit is in the state that he wants to "send" to them (so if one prisoner is saying "I'm #5 and I know #2 and #8 is here" and then somone else says "I'm #9 and I know #5, and #8 is here" maybe he can fake a message to someone else that says "everyone but you is here!" As long as all the prisoners can stay reasonably in sync with the data clock and noone sends anything unless they're sure they've seen a packet's worth of idle then that shouldn't be possible w/o using more than his K bits.

      But whatever it's all academic -- your solution is far superior.

    79. Re:The King and the Chalice (only for Experts!) by Anonymous Coward · · Score: 0

      One prisoner is designated "the leader". The prisoners who are not the leader are called "the others". We perceive the cup in the upright orientation as a token. The king can introduce or take away a token at most k times. He can collect a token by flipping the cup upside down or introduce a token by flipping it to the upright orientation. The initial state of the cup is unknown, so under our interpretation there can be an inital token on the table.

      The leader seeks to collect a number of tokens which ensures that every one of the others has given at least one token. For that purpose he always collects a token if one is present when he comes into the room: He turns the cup upside down if it's upright and leaves it upside down otherwise. He counts the number of times he turns it upside down. That is the number of tokens he has collected.

      The others give a token when none is on the table: They flip the cup to the upright orientation when it is upside down and leave it alone otherwise. Each of the others counts the number of tokens which he has given and makes sure not to give more than a certain number of tokens, t.

      It is clear that, under the given game rules, this algorithm eventually transfers at least ((n-1)*t)-k tokens and at most ((n-1)*t)+k+1 tokens to the leader.

      The remaining questions are: How many tokens does each of the other prisoners need to start out with and how many tokens does the leader need to collect to be sure that each of the others has given at least one token?

      From the leader's perspective, the upper boundary scenario is that all but one of the others are called in t times and the remaining prisoner is never called in, the king adds k tokens and there was a token on the table initially. In this scenario the leader collects ((n-2)*t)+k+1 tokens. One more token than that and the leader can be sure that every prisoner has been in the room at least once. Now we have to make sure that this limit is always reached. The minimum number of tokens which are guaranteed to be transferred eventually is ((n-1)*t)-k.

      Choose t so that ((n-1)*t)-k > ((n-2)*t)+k+1

      ((n-1)*t) > ((n-2)*t) + 2k+1
      nt-t > nt - 2t + 2k+1
      t > 2k+1

    80. Re:The King and the Chalice (only for Experts!) by Barsema · · Score: 1

      so, just add k to the number of prisoners(the amount of times the king can change the cup)

    81. Re:The King and the Chalice (only for Experts!) by gonza · · Score: 1

      I have the answer:

      1. Appoint one person as the leader
      2. The leader always turns the cup upward
      3. Everyone else turns the cup downward until they have turned it down a set number of times x (we will calculate later) then they leave it alone
      4. The leader counts the number of times he/she turns the cup upwards. Once a set number of times is reached the leader knows that everyone has come out at least once
      5. The minimum times for the leader to know is x(n-2)+k+1+1. This accounts for n-2 prisoners doing their x times, the king faking k times, 1 time for the last prisoner and 1 time if the cup starts turned down
      6. The minimum number of times that the cup could be turned down by the leader is x(n-1)-k. (The king could fake k times to someone who is not the leader, meaning that the leader would miss out on these k times).
      7. To ensure that the minimum number of times that the leader COULD turn the cup down is at least a big as the number required to prove to the leader that everyone has come out x(n-1)-k >= x(n-2)+k+1+1 should be solved. This gives x >= 2k -2.
      8. The prisoners then agree upon x before they go in (based on the above equation) and the king can then do nothing to stop the prisoners from escaping!

      Now... back to my thesis.

    82. Re:The King and the Chalice (only for Experts!) by G-funk · · Score: 1

      Like I said, the original is better written and includes the supposition that the warden will pick randomly, but without malice so it will eventually even out, and you have to assume the king/warden won't interfere, or the answer becomes mu.

      --
      Send lawyers, guns, and money!
    83. Re:The King and the Chalice (only for Experts!) by gonza · · Score: 1

      I made a small algebra mistake
      Should be x >= 2k + 2.

    84. Re:The King and the Chalice (only for Experts!) by sapone · · Score: 1

      The king CANNOT "never call a prisoner again". It is guaranteed that any prisoner will be called an arbitrary number of times, until the end of the riddle. The king may decide to call prisoner A a million times in a row, if he so pleases, but at some point in the future, B will be called again.

    85. Re:The King and the Chalice (only for Experts!) by sapone · · Score: 1

      Yes, otherwise, there is no solution

    86. Re:The King and the Chalice (only for Experts!) by oldCoder · · Score: 2, Informative

      The king can only flip the cup K times. The Counter is waiting for (N - 1) * (K + 1) flips, which is bigger than K.

      --

      I18N == Intergalacticization
    87. Re:The King and the Chalice (only for Experts!) by Anonymous Coward · · Score: 0

      But he doesn't have to flip k times. So they might end up waiting forever. Also, the guarantee is only that he calls each of them at least once, not at least k times.

      I have to admit, I can't figure this one out. It seems impossible.

    88. Re:The King and the Chalice (only for Experts!) by smueller · · Score: 1

      Here's the answer. n-1 prisoners can only turn the chalice down. 1 of the prisoners, we'll call him the counter prisoner, turns the chalice up when it's down and adds 1 to his counter. The counter prisoner can simply wait until he has to turn the chalice up n-1 times and he knows every prisoner has been there if they agree to only turn the chalice down 1 time. But the king can screw with the chalice k+1 times (once to start off and then k times during the fun game he's playing with the prisoners). These k+1 screw times can be offset by having every prisoner turn the chalice down 2(k+1) + 1 = 2k+3 times. The counter prisoner then has to simply wait until he counts (n-1)*(2k+3) - (k+1) times he has to turn the chalice up and declare "YES," all prisoners have been in the central chamber. If the king tried to make it seem like less people turned the chalice down by turning it back up right after one of them turned it down, then the counter prisoner would simply only reach (n-1)*(2k+3) - (k+1) counts when all prisoners have stopped turning the chalice down. At this point, the counter prisoner might think that the king did the opposite and turned the chalice down k+1 times, making the lowest possible REAL prisoner count only (n-1)*(2k+3) - 2(k+1) = (n-2)*(2k+3) + 1. This means that, at worst, all prisoners turned down the chalice their maximum number of times except for one prisoner who turned down the chalice only 1 time. So that's good. The counter prisoner counts (n-1)*(2k+3) - (k+1) chalice downs and he is assured every prisoner has been in the central chamber. Conversely, if the king really did try to make it seem like more people turned the chalice down, when (n-1)*(2k+3) - (k+1) counts were made by the counter prisoner, it could be that the chalice was turned down only (n-1)*(2k+3) - 2(k+1) times by actual prisoners. We're at the second part of the previous paragraph and again the counter prisoner is assured every prisoner has been in the central chamber.

    89. Re:The King and the Chalice (only for Experts!) by pgpckt · · Score: 2, Insightful

      No, he can't.

      Sure he can. Read your own damn problem.

      That means the king may turn an upright cup upside down or vice versa up to k times

      Up to K times means K or less. Therefore, K is any number. Therefore, the king can do whatever the hell he wants, and the calice provides no information.

      Or let's suppose it has to be EXACTLY k times. Either K or zero. Fine. I declare K to be 1.

      In this case, if the challice is upside down, the king chooses to flip it K times. If it is rightside up, then the king chooses to flip it zero times. Either way, I can guarantee that the challice is rightside up everytime.

      Therefore the challice provides no information, etc, etc, etc.

      --
      Lawrence Lessig is my personal hero.
    90. Re:The King and the Chalice (only for Experts!) by jmsaul · · Score: 1

      How do they elect one of their own to be a counter, when they can't communicate with each other?

    91. Re:The King and the Chalice (only for Experts!) by m50d · · Score: 1
      "Finite but unbounded", not "infinite".

      What's the difference in this case? Does it have any relevance to the problem?

      The OP's description may be accurate but it adds nothing and simply confuses the nonmathematical reader.

      --
      I am trolling
    92. Re:The King and the Chalice (only for Experts!) by Anonymous Coward · · Score: 0

      That won't work. How do you know that each prisoner will be called k times?

    93. Re:The King and the Chalice (only for Experts!) by strider44 · · Score: 1

      Doesn't work since the King can artificially decrease the counter as well with his k flips.

    94. Re:The King and the Chalice (only for Experts!) by nharmon · · Score: 1

      Read the original problem. The king may change the cup k times. It doesn't mean he has to.

      Also, he could use his ability to change the cup every time a non-counter changes the cup. If he did that, then the prisoners would remain imprisoned forever as the counter would never reach n.

    95. Re:The King and the Chalice (only for Experts!) by Nafai7 · · Score: 1

      Read the 2nd last paragraph.

      the prisoners were given time beforehand to come up with a strategy

    96. Re:The King and the Chalice (only for Experts!) by nharmon · · Score: 1

      What if the king flips the cup every time a non-counter flips the cup? Lets say there are 10 prisoners and the king can flip it 6 times. The King can keep the counter at 4.

      What if there are 20 prisoners and he only lets each in there twice, but brings in everyone in a row. Then the counter gets to two and its game over.

    97. Re:The King and the Chalice (only for Experts!) by Anonymous Coward · · Score: 0
      I came up with this solution in the shower.

      It's about time you showered! If a tough problem is what it takes to get you to shower, then come back here again tomorrow and we'll post another one!

    98. Re:The King and the Chalice (only for Experts!) by thoth · · Score: 1

      I think the key here is that while the prisoners don't know what K is, we, as the omniscient puzzle solvers, do. So we can come up with a strategy. I guess you could say there is a theoretical solution - if for some reason this was happening in real life, then yeah, the prisoners are screwed because they don't know what K is.

    99. Re:The King and the Chalice (only for Experts!) by filipncs · · Score: 1

      No, the king could simply decide to never flip the chalise, and they would never finish.

      I think I have solved it:
      http://slashdot.org/comments.pl?sid=165444&cid=138 02205

    100. Re:The King and the Chalice (only for Experts!) by divec · · Score: 1

      Beforehand, the prisoners number themselves from 0 to n - 1.



      • Prisoner 0 turns the chalice the first k + 1 times he gets called, then never again.
      • Prisoner 1 does not turn the chalice until he has seen it change state at least k + 1 times. Then he turns it the next k + 1 times he gets called, then never again.
      • Generally, Prisoner r does not turn the chalice until he has seen it change state at least r(k + 1) times. Then he turns it the next k + 1 times he gets called, then never again.
      • ...
      • Finally, Prisoner n - 1 says "Yes" when he has seen the chalice change state (n - 1)(k + 1) times.


      This strategy means that prisoner i does not turn the chalice until he knows that prisoner (i-1) has been called. But each prisoner's start threshold will eventually be reached. Basically the King can only obliterate k bits of information, and each prisoner sends a message of k + 1 bits to say he has been called.
      --

      perl -e 'fork||print for split//,"hahahaha"'

    101. Re:The King and the Chalice (only for Experts!) by Anonymous Coward · · Score: 0

      That doesn't work because the higher numbered prisoners are not guaranteed to witness all state changes. The king can call the first visitor an arbitrary number of times before he calls anyone else. He only has to guarantee that - eventually - everybody is called into the room an arbitrary number of times. Since he knows that prisoner 0 will only touch the cup k+1 times, he can prevent the initial message from reaching anyone. For a solution see http://ask.slashdot.org/comments.pl?sid=165444&cid =13802367.

    102. Re:The King and the Chalice (only for Experts!) by Anonymous Coward · · Score: 0

      I don't think that any leader based methods can work for the simple fact that the King can overhear the planning.

      Therefore imagine that one person has been nominated the leader, and the plan is that everyone except the leader will only turn the cup up, and the leader turns the cup down (which is a common solution I see here).

      The issue is that the King knows this and can simply call the leader n times in a row right at the start. Even with the best scheme the leader can only answer "no" after being called for the final time, thus invalidating the solution.

    103. Re:The King and the Chalice (only for Experts!) by Anne_Nonymous · · Score: 1

      > But eventually we may be certain that each prisoner will be called in ten times, or twenty times, or any number you choose.

      Can't the leader just wait for an infinite amount of time before claiming all the prisoners have been in the room?

    104. Re:The King and the Chalice (only for Experts!) by brian0918 · · Score: 1

      How do you propose they get to infinity?

    105. Re:The King and the Chalice (only for Experts!) by brian0918 · · Score: 1

      You've misunderstood the problem. Eventually the leader must be called out again.

    106. Re:The King and the Chalice (only for Experts!) by Anne_Nonymous · · Score: 2, Funny

      Wait a minute. Repeat as necessary.

    107. Re:The King and the Chalice (only for Experts!) by Philnet.HFZ · · Score: 1

      My solution is simple, and requires no math skills whatsoever. In order for them to be locked in the individual cells, they all had to be led through the central room, so that they know what's going on. Therefore, everybody had been through the central chamber at least once.

      --
      I don't get why posts are limited to 120 characters. Seems unreasonable to me. I mean, just because I like having a real
    108. Re:The King and the Chalice (only for Experts!) by NotJeff · · Score: 1

      So, the king knows this, and NEVER influences the chalice. The count never reaches the requisite number, and the prisoners are prisoned FOREVER. Mwahahahaha.

    109. Re:The King and the Chalice (only for Experts!) by slavemowgli · · Score: 1

      "arbitrary" is not the same as "infinite" or "unlimited" - the former means that while the number can be, well, arbitrary (that is, any natural number whatsoever), it will still be a fixed finite number for any given instance of the game.

      The real question is whether the prisoners know the value of k in advance or not.

      --
      quidquid latine dictum sit altum videtur.
    110. Re:The King and the Chalice (only for Experts!) by RedLaggedTeut · · Score: 1

      "up to k times" means k or less times. k is not any number, it is constant, an it can be assumed this constant is know to the prisoners berforehand.

      So when all prisoners work out not to change the chalice, when a prisoner has seen the chalice been turned k times, he can safely assume the king has spent his turning actions and then the chalice can start conferring information.

      However, since the king may decide never ever to turn the chalice, prisoners might still stay pretty much indefinitely, same if the king decides to call the first prisoner a million times.

      I suppose the answer that they have all been in the central room while being led into their cell is correct, on the other hand the wording seems to indicate the game starts with all prisoners already locked up in their cells.

      --
      I'm still trying to figure out what people mean by 'social skills' here.
    111. Re:The King and the Chalice (only for Experts!) by slavemowgli · · Score: 1

      You don't seem to know that much about statistics.

      Neither do I, of course, but your comment has some rather blatant errors in it. First of all, the inmates cannot wait an *infinite* time, but they can wait an arbitrary time - that is, for any finite amount of time t, they can wait for that amount.

      The part about "what if the prisoners have waited for an infinite amount of time" is rubbish, too - the state the whole system is in simply isn't well-defined if you attempt to take the limit. In fact, considering that the king cannot "starve" a prisoner forever but has to recall them to the central room again eventually, there is *no* possible situation where the limit *is* well-defined - i.e., where you can say, after an infinite amount of time, precisely where every prisoner is.

      And finally, the "10 prisoners, each prisoner called once, k=1 billion" scenario is also rubbish, because - as the puzzle stated - every prisoner has to be called out again eventually. In particular, this also means that each prisoner will be called out at least m times, for *any* natural number m - a situation where a prisoner correctly answers "yes" nonwithstanding, of course.

      --
      quidquid latine dictum sit altum videtur.
    112. Re:The King and the Chalice (only for Experts!) by slavemowgli · · Score: 1

      No, he can't. The counter was given as a value that the counter (that is, the prisoner doing the counting) has in their head and that they only increase under certain circumstances but never decrease. So unless the king is able to do a lobotomy on the counting prisoner, he won't be able to decrease it. :)

      --
      quidquid latine dictum sit altum videtur.
    113. Re:The King and the Chalice (only for Experts!) by Anonymous Coward · · Score: 0

      But the king knows the strategy, and k is arbitrarily large, so the king always leaves the chalice upside down before the counter comes in, so the counter never counts to n.

    114. Re:The King and the Chalice (only for Experts!) by nwbvt · · Score: 1
      " But he doesn't have to flip k times. So they might end up waiting forever. "

      No, because they will get to (n-1)(k+1) on their own eventually, once all the non-leaders have flipped the chalice k+1 times.

      --
      Mathematics is made of 50 percent formulas, 50 percent proofs, and 50 percent imagination.
    115. Re:The King and the Chalice (only for Experts!) by Anonymous Coward · · Score: 0

      The fault with your argument is that the king can call prisoners in any order he wants. He could call the counting prisoner n times first, meaning that the counter could only ever count to 1. After which none of the other prisoners could say 'yes'. This also renders the solution of waiting for n+k flips useless.

      This problem is unsolvable with the information given. The variable k renders the information from the chalice essentially useless and absent any other way for the prisoners to communicate there is no solution.

      The only way around the problem I can see is that calling the prisoners is a finite series. At some time the king is done, at which time the final prisoner can say "yes".

    116. Re:The King and the Chalice (only for Experts!) by Lynx-Effect · · Score: 1

      First: "The only rule the king has to obey is that eventually he has to call every prisoner in an arbitrary number of times", this means you are screwed, even if you add " until one prisoner answers yes and then the king must either kill them all or set them free depending on whether the answer was correct", then the limit on K is no longer a rule the king must obey, and in fact the King could remove the chalice for the room just for laughs.... Assuming this is not what you meant originally: This is still "unsolvable" unless you allow for the prisoners and the King to be immortal, if that is the case, then the previously suggested counting solutions are the only options, with the assumption these prisoners do not go mad counting such high numbers for so many years... Suppose the only limit in flip rate is physical impossibility of the outer rim during the rotation moving faster than the speed of light (there are far more practical limits, which restrict this number further); there is a limited number of times the chalice can be inverted per second. If we multiply this number by the number of seconds in a millennium, and set that to K, then the king effectively has an unlimited K. Either phrase the question allowing for immortals, or accept this riddle is insuperable. If the King has effectively unlimited flips, he simply ensures the chalice is upright every time he calls a prisoner, there is no communication stream, and therefore no way for the chalice to signal anything to the others. I suggest you rephrase the question to remove any relation to "real world" conditions, as personally after a couple of years of this torture, I suspect I'd just say yes and get it over and done with...

    117. Re:The King and the Chalice (only for Experts!) by brian0918 · · Score: 1

      Your solution requires that the king ask the prisoners a different question from the question that he actually asks them, according to the problem.

    118. Re:The King and the Chalice (only for Experts!) by nwbvt · · Score: 1
      " The problem is that the king could choose to negate or add to any or some of the signal or not. "

      Doesn't matter. Assume the king flips it k times and calls everyone but one guy so often that they each flip it their maximum number of times. Then you will have (using my previous correction that it should be (n-1)(k+1)) (n-2)(k+1)+k flips (or (nk+n-k-2)), which is one less than the (n-1)(k+1) (or nk+n-k-1) that they are looking for. Now since everyone other than the last prisoner has already flipped it their maximum number of times and the king can no longer flip it, we know that if it is flipped one more time the last guy has finally been left in the room.

      --
      Mathematics is made of 50 percent formulas, 50 percent proofs, and 50 percent imagination.
    119. Re:The King and the Chalice (only for Experts!) by brian0918 · · Score: 1

      Ok, you want real world? No matter the solution, the king and prisoners will live at least a day longer than after the prisoners solve the puzzle and are set free. I never said these were humans. :)

    120. Re:The King and the Chalice (only for Experts!) by Anonymous Coward · · Score: 0

      The call sequence is an infinite sequence of numbers [1..n] such that for each i in the natural numbers there is a finite prefix of the sequence which contains each number [1..n] at least i times.

      Take n=3, i=2, then 1321112122211213 is such a prefix.

    121. Re:The King and the Chalice (only for Experts!) by Anonymous Coward · · Score: 0

      There is still no solution because the king does not have to flip the cup at all. So k is any arbitrary value between 0 and k, which renders the problem unsolvable.

    122. Re:The King and the Chalice (only for Experts!) by HadenT · · Score: 1

      King can call any prisoner multiple times, he doesn't even need to use k at all:
      Say we have 3 prisoners, king would call counter and second prisoner, 3 times both, counter will think it's done (3 flips), but third prisoner wasn't called yet.

    123. Re:The King and the Chalice (only for Experts!) by nwbvt · · Score: 1

      And then if the king refuses to flip the cup at all? They will never get to n+k. You need a count that is reachable if the king doesn't touch the chalice and one that can be messed with up to k times.

      --
      Mathematics is made of 50 percent formulas, 50 percent proofs, and 50 percent imagination.
    124. Re:The King and the Chalice (only for Experts!) by slavemowgli · · Score: 1

      I think I have a solution.

      First of all, you need a code that can correct about O(k) raw bit errors in a transmitted raw message (k is probably sufficient, but I'm not an expert in coding theory, and this is a detail, anyway ^_~). The prisoners will use this code to send logical bits to each other. The choice of code guarantees that the king's ability to introduce k errors into the raw communication channel (the chalice) will not affect the logical bits transmitted.

      Now, the basic idea is that, starting with prisoner 1, each prisoner sends the message "I (prisoner n) has been here" to all others (it's probably sufficient to send this to prisoner n+1, but I like to err on the safe side).

      This is done (logical) bit by bit (using the code above), and every single logical bit is acknowledged by every prisoner except for the one who sent the bit, in order - so, for example, prisoner 1 sends a logical bit, then prisoner 2 acknowledges receipt, then prisoner 3 does, and so on, until prisoner n. Only when all acknowledgements have been received by prisoner 1 is the next logical bit sent. Every prisoner who is not currently sending (either sending a logical bit or an acknowledgement) doesn't do anything when called into the room except observe, in order to not interfere with the running communication. The fact that the order in which acknowledgements are sent is predetermined makes sure that synchronisation is not lost here.

      The fact that the king eventually has to call every prisoner to the main room an unlimited number of times until the riddle has been solved - that is, that he is not allowed to "starve" a prisoner forever, not even after the prisoner has already been called in a certain amount of times - guarantees that the exchange of logical bits and acknowledgements will happen eventually.

      Now that the prisoners can send logical bits to each other in a safe and guaranteed channel (the king can neither change the bits sent, due to the code used, nor can he prevent a prisoner from sending or receiving information), we have a means to transmit *messages*. So now the problem becomes simple: prisoner 1 sends the message "prisoner 1 was here"; once that message has been transmitted, prisoner 2 sends a similar message, and so on, until prisoner n does. At that point, all the prisoners know that everyone else has been there. Acknowledgements of the messages could probably be used here, but aren't really necessary if the message format is predetermined to avoid loss of synchronisation.

      Well, thinking about it, it's probably not even necessary to build the message sending layer, as the acknowledgements that bits have been seen on the logical bit layer are already enough to conclude that every prisoner has been there. But it's nice to be able to exchange actual messages, too. :)

      So... in a way, what the prisoners need to do is model layers 1 and 2 of the OSI model. They probably even could use the actual Ethernet specs for this. :)

      --
      quidquid latine dictum sit altum videtur.
    125. Re:The King and the Chalice (only for Experts!) by slavemowgli · · Score: 1

      Oh, I didn't mean to imply that a counting solution is feasible; it's just the argument that the king would be able to decrease the counter that's not true. That nonwithstanding, I am reasonably sure that an attempt to use counting for the solution must fail, for the reasons you give.

      But there are other ways to solve the problem. I posted an idea of mine here, and while it could probably be refined, I don't see any immediate problems with it that would render it infeasible.

      --
      quidquid latine dictum sit altum videtur.
    126. Re:The King and the Chalice (only for Experts!) by sstamps · · Score: 1

      Quoting Lynx-Effect above:

      If the King has effectively unlimited flips, he simply ensures the chalice is upright every time he calls a prisoner, there is no communication stream, and therefore no way for the chalice to signal anything to the others.

      As long has you have a malicious interception and corruption of the information medium, the King can manipulate the message any way he sees fit, including sending his own "I've seen it" messages from any prisoner(s) that he never has to call to any prisoner(s) he wishes to fool.

      Now, you can say that they use some form of encryption/signature scheme, except that all of those schemes in existence require that some part of the encryption be private. If there is anything that a prisoner can keep from the king, then it theoretically could work. IE, if each of the prisoners generated a public/private assymetric key pair in their heads, and gave their public key to each one of the other prisoners to encrypt and send messages, then maybe this might work, under very special conditions.

      However, the communication medium is shared. IE, when called to come get your bit of information, you don't know whom the bit is from, nor do you know if you were the intended recipient. However, there is no chance that you will ever say "yes" incorrectly. Assuming enough calls, eventually, you will get all the bits of each prisoner's message, in the right order, unmolested. However, I would tend to think that it would take far longer than the predicted lifespan of this universe to complete.

      --
      -SS "Teach the ignorant, care for the dumb, and punish the stupid."
    127. Re:The King and the Chalice (only for Experts!) by Anonymous Coward · · Score: 0

      This ignores the king's constraint where the king can manipulate the chalice. The king could simply flip the chalice k times to increment the count by k.

    128. Re:The King and the Chalice (only for Experts!) by Anonymous Coward · · Score: 0

      This is easy. Everyone just scratches a mark on the chalice with a sharp stone from their cells when they're flipping it over. When a prisoner sees enough marks, they know everybody's been in the room.

    129. Re:The King and the Chalice (only for Experts!) by Cygnus78 · · Score: 1

      What if K is 7 345 678 345 127 654. Then they know that they will all die by age before reaching n+k anyway.

    130. Re:The King and the Chalice (only for Experts!) by Cygnus78 · · Score: 1

      But the problem text do not say that the prisoners know about what K is, and thus it do not help them at all.

    131. Re:The King and the Chalice (only for Experts!) by saranagati · · Score: 1

      well if the leader MUST be called out again after, everyone can just say maybe until the leader is called out again after he's already hit his arbitrary number because that would mean everyone else has hit their arbitrary number too.

      --
      Give a man a match and he'll be warm for a minute, set him on fire and he'll be warm for the rest of his life.
    132. Re:The King and the Chalice (only for Experts!) by danFL-NERaves · · Score: 1

      Perhaps an error was introduced in the rephrasing of the original question but I think the only two important lines in the question are:

      "The king has a dungeon in his castle that is shaped like a circle, and has n cell doors around the perimeter, each leading to a separate, utterly sound proof room."

      and

      "Since I first locked you and the other prisoners into your rooms, have all of you been in this room yet?"

      So, the King is the person who has locked each prisoner in a cell. The King is located in the central room. Each cell is accessed from the central room. So every prisoner must pass through the central room to enter their cell. Any prisoner can answer yes as the correct answer to his question.

      All other features of the puzzle appear extraneous to the solution.

      Dan

    133. Re:The King and the Chalice (only for Experts!) by s_hickey · · Score: 1

      The problem with this is that the king can alternate between the counter and one prisoner (n - 1) * (k + 1) times, and then call everyone else in later (It's not the king's fault if the counter answers yes too early and gets everyone killed...) If each prosoner had a limit on the number of times they can flip the cup, say (k / n) + 1, the king would not be able to exploit the system so easily. I haven't crunched the numbers, but if the cup-flipping limit was set to the correct number for each prisoner, then each prisoner would have to exhaust all their possible flips before the target number ( in this case, (n * ( (k / n) + 1 ))) which would mean all the prisoners would have have to had come out. Shawn

    134. Re:The King and the Chalice (only for Experts!) by Hope+Thelps · · Score: 1
      You've misunderstood the problem. Eventually the leader must be called out again.

      I don't see how he's misunderstood it. Here's what the original post said:
      The king will call the prisoners in any order he pleases, and he can call and recall each prisoner as many times as he wants, as many times in a row as he wants. The only rule the king has to obey is that eventually he has to call every prisoner in an arbitrary number of times. So maybe he will call the first prisoner in a million times before ever calling in the second prisoner twice, we just don't know. But eventually we may be certain that each prisoner will be called in ten times, or twenty times, or any number you choose.

      Based on this, the king can call any nominated leader/counter the maximum number of times right from the begining, or at any time prior to all prisoners having been called.
      --
      To summarise the summary of the summary: people are a problem. ~ h2g2
    135. Re:The King and the Chalice (only for Experts!) by Artraze · · Score: 1

      It looks like the real problem here is the factor of k. This is how you modify the counting strategy to account for it:

      k is really an error term. The king can modify the count by +k (acting as a non-counter) or -k (by acting as the counter). So therefore our solution must be able to take an error of +/-k.

      So lets make the variable d the number of times each non-counter flips it before stopping, and c the number of counts the counter counts before saying yes. The highest count before all prisoners had been to the room whould be d*(n-2). There can be a maximum of d*(n-1) counts, and the king can artifically increase/decrease the count by k. So solve the problem:

      d*(n-2)+k 2*k and c2*k*n-k. (Or something like that. You can chack it...)

      So each non-counter would flip the cup up (or down) d times, and then stop. The counter would flip the cup down if it were up and increase the count by one. Once the count reaches c, he would answer "yes".

    136. Re:The King and the Chalice (only for Experts!) by vanion · · Score: 1

      Assume all prisoners know k. Agree on i so that i > k. King must call each prisoner i times.

      Nominate candidate p. Only p and king can flip chalice up and down, all others can only flip chalice down.

      When a prisoner (except p) enters the room, if he seems the chalice is up he will flip it down. Else he will say "not sure" and leave.

      When p enters the room and the chalice is down, he will flip it up and leave, and count to himself. When his count reaches m, he can say "Yes".

      Best case: The king flips down k times. m = (n * i) - k + 1
      Worse case: The king does not do anything. m = (n * i) + 1

    137. Re:The King and the Chalice (only for Experts!) by Artraze · · Score: 1

      It would seem my original post was eaten a little around the important part. I though I checked the preview well enough... But no less than symbols. They'll now be "{" because I can't seem to get them to work. Anyway:

      d*(n-2)+k { c { d*(n-1)-k

      And the real solution (probably):
      d>2*k+1 and c is still given by the inequality.

      For the minimum:
      d*(n-2)+k+1 = c = d*(n-1)-k-1
      d=2*(k+1) and c=(k+1)(2*n-3)

    138. Re:The King and the Chalice (only for Experts!) by AMystery · · Score: 1

      Except you will eventually get to n+k flips. The king may never flip the chalice but as long as the prisoners keep being called you can reach any number. It isn't the most efficient way to escape, which would require n flips, but it will work.

    139. Re:The King and the Chalice (only for Experts!) by starfarer42 · · Score: 1

      Of course the king can't perform a lobotomy, but he doesn't have to. If he simply resets the chalice after each non-counter has flipped it then the counter won't register an increase in the count, but the non-counter will never flip it again. So the king has effectively decremented the count without the counter ever knowing it.

    140. Re:The King and the Chalice (only for Experts!) by HuguesT · · Score: 1

      The foil wouldn't word work because the king can only flip the cup a fixed and known number of times.

    141. Re:The King and the Chalice (only for Experts!) by epgandalf · · Score: 1

      On the Berkeley site, they say that one solution takes 27-28 years. The solution that everyone has been talking about here is the one where there is a leader and 99 followers. Each time a follower sees the bulb off, he will turn the bulb on if he hasn't turned it on already. The leader will always turn the bulb off when it is on. When the leader turns it off 99 times, he knows that everyone has visited the room.
      I ran a simulation using this algorithm and it takes on average about 10440 days, or 28.6 years. This has to be the 27-28 years solution that he mentions everyone comes up with.
      Can anyone come up with a solution in the 4000 day ballpark? I haven't been able to come up with it yet.
      I've been trying to think of a way to allow the followers to turn the bulb on and off, but I can't come up with anything that will always work.

    142. Re:The King and the Chalice (only for Experts!) by HuguesT · · Score: 1

      This is confusing,

      This solution works if the king doesn't interfere, however it is not guarantee to work if he does.

      Since the king listened to the prisoner talking, he knows who the counter is.

      The king can "erase" up to k countings by flipping the cup upside down after each non-counter. Since all non-counters flip the cup right side up at most once, the counter can only reach n-k. Conversely the king can flip the cup right side up up to k times just before the counter, and so the count can reach n+k.

      Under this circumstance, when will the counter decide time is up ?

    143. Re:The King and the Chalice (only for Experts!) by Sancho · · Score: 1

      The problem text presented on Slashdot (King/Chalice) doesn't state that the prisoners can work out a system ahead of time, making it truly an impossible problem.

    144. Re:The King and the Chalice (only for Experts!) by notshannon · · Score: 2, Informative

      * spoiler *

      Accounting for the k flips the king gets to make:

      The value k is known to all the prisoners.

      One prisoner is the counter, the rest noncounters.
      The counter's count starts at 0.

      If a noncounter sees the up side down chalice, and
      that noncounter has not righted the chalice 2k+1 times
      already, then that noncounter will right the chalice.

      If the counter sees the right side up chalice, the
      counter will turn it up side down, and increment the
      count.

      The king, with his k royal flips, can augment the
      count by up to k, or cancel up to k indications for
      the counter to count.

      If one noncounter has never been in the room, the maximum
      value of the count is (n-2)(2k+1) + k = 2nk + n - 3k - 2.

      If every counter has been in the room k+1 times,
      which happens inevitably according to the problem,
      the minimum value of the count is (n-1)(2k+1) - k = 2nk + n - 3k - 1.

      The counter asserts yes when the count reaches 2nk + n - 3k - 1.

      If we further assume that the king refills the chalice
      with an intoxicating liquor whenever it is right side up...

    145. Re:The King and the Chalice (only for Experts!) by nwbvt · · Score: 1

      The origional solution required the prisoners to only flip it once. If you have flipping each time they can, thats even worse. Now instead of being stuck in the dungeon for all eternity, you get beheaded. Once you get to n+k flips, you don't know if each guy flipped it once or if one guy flipped it n times.

      --
      Mathematics is made of 50 percent formulas, 50 percent proofs, and 50 percent imagination.
    146. Re:The King and the Chalice (only for Experts!) by Funksaw · · Score: 1

      Turn the chalice from up to down only once, but always turn the chalice from down to up. When you have been called into the room and you see the chalice up, count it. We know that the chalice can only be turned from down to up a maximum of n+k times, and a minimum of n times.

      After you are brought into the cell and see an up chalice n+k times, I -think- it's safe to say yes.

    147. Re:The King and the Chalice (only for Experts!) by LeonGeeste · · Score: 1

      And you know whether the king's using the best or worse case, or something in between...how?

      --
      Rank my idea: http://www.sinceslicedbread.com/node/531
    148. Re:The King and the Chalice (only for Experts!) by SeanAhern · · Score: 2, Funny

      The king knows Kung Fu.

      Shouldn't that be King Fu?

      -ba-dum-dum!-

    149. Re:The King and the Chalice (only for Experts!) by nusuth · · Score: 1

      I found a solution as long as k is known to prisoners. King can't ruin the solution despite the knowledge of prisoners' strategy.

      --

      Gentlemen, you can't fight in here, this is the War Room!

    150. Re:The King and the Chalice (only for Experts!) by Smauler · · Score: 1

      The trouble with this solution is that the king does not have to use his flips, and since he has heard their plan, would not. Thus the count would never reach 2nk+1-3k-1.

    151. Re:The King and the Chalice (only for Experts!) by Zwaxy · · Score: 1

      It's interesting that this, the only posting with the correct answer, hasn't been modded up!

      Two small typos:

          you wrote
              "If every counter has been in the room k+1 times,"
          where you should have written
              "If every non-counter has been in the room 2k+1 times,"

    152. Re:The King and the Chalice (only for Experts!) by Zwaxy · · Score: 1

      If the king never uses any flips, the n-1 non-counters would each contribute 2k+1 to the count, so the count would reach (n-1)(2k+1) = 2nk + n - 2k - 1 which is greater than the trigger value of 2nk + n - 3k - 1.

      The point is that the king can use his k flips to reduce the count by k, effectively cancelling out k of the flips made by the non-counters before the counter sees them.

      This results in a final count of 2nk + n - 3k - 1, which is exactly the trigger value.

    153. Re:The King and the Chalice (only for Experts!) by sapone · · Score: 1

      No, it does not. It is sufficient that - no matter and in what way the king flips - the one to say yes knows that everyone has been in the room. That is possible if each of the prisoners turns the cup often enough that the king can neither cause an early yes or delay it indefinitely. Which is possible.

    154. Re:The King and the Chalice (only for Experts!) by Zwaxy · · Score: 1

      Yes it does, in the last but one paragraph:

          "the prisoners were given time beforehand to come up with a strategy"

    155. Re:The King and the Chalice (only for Experts!) by Zwaxy · · Score: 1

      there are lots of sub 4000 day solutions on the forum at the berkeley site, for example this one takes 3473 days:

      http://www.ocf.berkeley.edu/~wwu/cgi-bin/yabb/YaBB .cgi?board=riddles_hard;action=display;num=1027805 293;start=393#393

    156. Re:The King and the Chalice (only for Experts!) by Myopic · · Score: 1

      is there a known initial state to the chalice? do the prisoners know K? do the prisoners know the number of times they will be taken fron their cell beforehand?

      if K is unbounded, that gives the king arbitrary control over the state of the chalice. he could simply undo every move made by the prisoners. they would have no ability to interact whatsoever.

    157. Re:The King and the Chalice (only for Experts!) by Anonymous Coward · · Score: 0

      I agree with the parent. However, let me surmise what the original problem MEANT to say: each prisoner must be called in an arbitrary number of times. p1 (prisoner 1) is called (at least once), p2 is called, p3 ... and finally pn is called (at least once), and so now every prisoner (as a group) is called once. This must happen that arbitrary number of times. The original wording is very confusing to me, I only just now realised this possible meaning. Any other meaning I have understood has been debunked by the parent's comment.

    158. Re:The King and the Chalice (only for Experts!) by Myopic · · Score: 1

      maybe. but the wording of the question, as i think we all agree is atrocious, allows the king to call in the counter all X times before ever bringing out any of the other prisoners. so worded, the count must be recognizable by *any* prisoner, not just a designated counter.

    159. Re:The King and the Chalice (only for Experts!) by naoursla · · Score: 1

      Let:
              n=2 prisoners
              l=1 the number of times the King must call each prisoner
              k=0 times the king may flip the chalice

      Consider this a base case of the problem. A real base case would set n=1, but that is trivially simple. If there is no strategy for one case, then there is no general strategy.

      There are several possible ways this can play out but they are all symmetric.

      King calls prisoner 1. The chalice is in its initial state which is up or down. The prisoner gains zero information and says I do not know. The prisoner attempts to signal prisoner two by setting the chalice up. The king calls the second prisoner. He sees the chalice up. Now he has a decision to make (really the same decision the first prisoner had). Was the chalice up in the initial state or did the other prisoner turn it up? Without knowing anything about the distribution of the initial state he can't gain any information and has to answer "I don't know". Both prisoners are imprisoned forever.

      The question, as stated, has no general solution.

      So maybe there is some missing information. Let's say that the chalice always starts up. The king calls prisoner 1. Prisoner 1 answers "I don't know" and turns the chalice down. The king calls prisoner 2. Prisoner 2 sees the chalice down and answers "Yes" and both prisoners are set free.

      But if we set k=1 this changes. Prisoner 1 sets the chalice down. The king flips it back up. Prisoner 2 sees the chalice up, says "I don't know" and turns it down again. Both prisoners stay in jail. So we also need a constraint on k with respect to n and m.

      I am giving this post more credibility at this time.

    160. Re:The King and the Chalice (only for Experts!) by Anonymous Coward · · Score: 0

      The killer to all k+1-long-message schemes is that the king has a limited number of direct flips, but can interfere with longer messages any time he wants by choosing the sequence of prisoners depending on their single bit messages. To send any message to any prisoner, all he has to do is to keep calling other prisoners until one of them creates the state he needs next, then call the target prisoner, then call other prisoners to create the next bit and so on. In every scheme where more than one prisoner is allowed to turn the chalice one way an infinite number of times, the king can construct arbitrary messages to any prisoner. Consequently he could also (blindly) corrupt public key encrypted messages so that the prisoners would never reach a decision (or by chance make a wrong or right decision due to a randomly correct message). An algorithm based on passing messages longer than 1 bit can not work reliably.

    161. Re:The King and the Chalice (only for Experts!) by Zwaxy · · Score: 1

      Did you reply to the wrong post by mistake? I don't see what your point has to do with mine.

      Either way, the statement of the question was quite clear about this:

          maybe he will call the first prisoner in a million times before ever calling in the second prisoner twice, we just don't know

          we may be certain that each prisoner will be called in ten times, or twenty times, or any number you choose.

      More formally, "for all X there exists a Y such that after Y days every prisoner has been called at least X times".

    162. Re:The King and the Chalice (only for Experts!) by nwbvt · · Score: 1

      You don't need to know. I've explained to you almost this exact same strategy to you ad nauseum. At this point either you really suck at math, or you are so irrationally pissed off because you couldn't figure out a riddle that you are being deliberately dense.

      --
      Mathematics is made of 50 percent formulas, 50 percent proofs, and 50 percent imagination.
    163. Re:The King and the Chalice (only for Experts!) by gerardrj · · Score: 2, Insightful

      Here again, you are demonstrating that you can't articulate your thoughts. What does "...at least a day longer than after the prisoners solve the puzzle..." mean?

        In your original posting the language leaves much open to speculation because you spend several sentences clarifying one point and casually make another point. Ex: You dwell on the point that the cells are sound proof but make no mention of other senses such as sight. Is there a window from the cells to the central room? You dwell on the manner in which prisoners are called, but leave the "...or twenty times, or any number you choose," statement completely up in the air. What do you mean "you choose"?

      I'd suggest you consider re-writing the mess so that it is not open to debate or question.

      --
      Article X: The powers not delegated... by the Constitution...are reserved...to the people
    164. Re:The King and the Chalice (only for Experts!) by rolfwind · · Score: 1

      I believe there is no actual solution but am certain there is no "single watcher" solution:

      There can be no "watcher/counter" because the king can call him in the beginning where he can't say "Yes" to the question. Then the king may go on to only recall him as many times as he pleases until the arbitrary number A, which we the problem solvers chose, is reached and then never call him again. This series of events does as much good for the watcher as being called only once. In this case, only maximum 1 bit of information, right or wrong due to possible interference by the king, reaches the watcher and he can send a maximum of 1 bit of information out, only possibly reaching it's destination, again due to possible interference by the king. Moreover, the watcher doesn't know he's being called repeatedly (the king takes his jolly damn time) and may not know why the cup is flipping and where that information is coming from.

      This is also the problem with any "everybody is a watcher" solution - how do you know when you leave the signal be or turn it if, besides the king, you do not who is being called when? Which prisoner from 1-n left it in that state?

      This suggests that there is either no solution or that it is structure around simply counting signals left behind. It must take into account up to K errors, K being a number given to the prisoner beforehand. This doesn't only mean subtracting tokens, the king may be adding them. Lastly, because a prisoner may be only talking to himself (called sequentially), it may be possible he leaves either only 1 token (or 0 because of king) for the next person and the group! Any token solution I've thought of or seen so far preproposes that prisoner N will eventually be called individually after each other prisoner at some point or at least that his "signal" won't be touched until a counter/watcher sees it.

      Perhaps the solution is that when a prisoners goes of his cell, looks for footprints leading up to all of them AND then AWAY from all the other cell doors, he says "YES!" I suppose this is wrong, but this math is hurting my head :-)

    165. Re:The King and the Chalice (only for Experts!) by slavemowgli · · Score: 1

      You're not quite right. The key point is that the king can NOT manipulate the message in any way he sees fit - he's limited to at most k bit manipulations, which is why a code able to detect and correct a certain amount of bit manipulations is needed. The king can do a number of things besides just flipping bits, of course - he can also insert bits into the stream by manipulating the chalice and the order in which the prisoners are summoned -, but he can't do so as often as he might like to.

      That's why I said the code needs to be able to correct O(k) errors instead of just k - although thinking about it, it may also be O(k^2) or something similar. But that's beside the point; the thing is that there is a finite number l > k such that a code being able to correct l errors will suffice.

      So as long as the king plays fair and only manipulates the chalice k times at most, the prisoners can set up a safe communication channel and communicate with each other - in such a way that the king, and this is important, is not able to influence even a *single* logical bit sent back and forth. Of course, if k is large, it's gonna take forever to actually do that, but that's beside the point. :)

      As for the rest of your post, just let me say two things:

      a) it does not matter who sent a particular logical bit; you can add that information at the message layer about the logical bit layer.
      b) there is no such thing as an intended recipient in my scheme AT ALL: all communication is broadcast in nature. But again, if you wanted to add that information, you could just encode it at the message layer. As I said, think Ethernet - originally, Ethernet was a shared medium (the wire) as well, and all communication was, a priori, broadcast.

      So I still believe that the scheme would work. Of course, it is crucial that the king is fair, that time is unlimited, and that the prisoners know k in advance so they can choose an appropriate code for the logical bit layer, but all that is given.

      --
      quidquid latine dictum sit altum videtur.
    166. Re:The King and the Chalice (only for Experts!) by brian0918 · · Score: 1

      You've really misunderstood the problem. There's a difference between infinite and "finite but unbound".

    167. Re:The King and the Chalice (only for Experts!) by rolfwind · · Score: 1

      Are you saying the the prisoners have to be called in an equal number of times?

    168. Re:The King and the Chalice (only for Experts!) by TJBluewolf · · Score: 1

      Considering the prisoners were allowed to discuss a strategy beforehand and there cells were all sound proof this discussion must of taken place in the central room, therefore they all had been in that room when the king asked them.

    169. Re:The King and the Chalice (only for Experts!) by strider44 · · Score: 1

      sorry but it's just that you misinterpreted what I was meaning. I meant that the king can just whenever some prisoner turns the chalise over the king can just turn it back up, which means that when all the prisoners have done turning it over once the final number will only be (n-k). Instead of "decrease the counter" I should have written "decrease the maximum value the counter will achieve".

    170. Re:The King and the Chalice (only for Experts!) by sstamps · · Score: 1

      You're not quite right.

      Oh? OK, let's test the theory and see.

      The key point is that the king can NOT manipulate the message in any way he sees fit - he's limited to at most k bit manipulations, which is why a code able to detect and correct a certain amount of bit manipulations is needed. The king can do a number of things besides just flipping bits, of course - he can also insert bits into the stream by manipulating the chalice and the order in which the prisoners are summoned -, but he can't do so as often as he might like to.

      So, let's say he wants Prisoner 0 to always receive a "chalice down" state, just for argument's sake. He calls on a prisoner (doesn't matter which one). Assuming a "chalice up" state when the prisoner is called, if the prisoner leaves the chalice up, then the king can/will turn it down. If the prisoner turns it down, so much the better, he leaves it down. Then he calls Prisoner 0. Lather, rinse, repeat.

      Given that he can ALWAYS send Prisoner 0 a "chalice up" state, he can send Prisoner 0 ANY other message he wishes to. He can completely block communication, he can substitute his own messages, impostering other prisoners, etc. He could even send spoofed messages that are valid within your O(k) or O(k^2) code.

      As for your further refutation of the two points listed, it does matter who sent what bit because you cannot guarantee what bits of the SAME message you are getting each time you get a bit. Unless the message is a single bit, you can't tell what bits go with what message, because they could be randomly interleaved not only with other bits from other messages, but also with noise or spoof bits introduced by the king himself.

      It is also not a true broadcast medium, because not everyone receives each and every bit of information sent. Even a comparison to Ethernet is not correct, because each and every Ethernet packet has both source and destination addresses encoded in the packet header, even though the receiver hardware of everyone on a non-switched segment sees the packet data.

      Lastly, the source/destination knowledge was a requirement of the scheme *I* was talking about using a PKI technique, not necessarily your scheme.

      So, I remain unconvinced that any code of any kind could work as a solution, simply because the king has complete control of the message at all times.

      --
      -SS "Teach the ignorant, care for the dumb, and punish the stupid."
    171. Re:The King and the Chalice (only for Experts!) by Mashdar · · Score: 1

      Spoiler: I believe this is a valid answer... Stop reading if you don't want the puzzle ruined :)

      First let us refer to the cup as the bit and its initial position as 0. The alternative position is 1.
      For the division (k+1)/n, round up.
      The prisoners agree to the following:

      The number of times a prisoner is to be called out is at least k+(k+1)/n.
      The prisoners will select one individual to be the counter. The rest will be the pawns.
      The first k+(k+1)/n times a pawn enters the room to find a 0, he sets it to 1. Thus the eventual input from each pawn is exactly k+(k+1)/n.
      The counter will flip the bit from 1 to 0 every time he encounters a one. He will count how many times he does this.
      When the counter reaches n*k+1 he will answer "yes" to free all of the prisoners.

      This works whether the king uses his influence to add or subtract 1s to the count.
      The king is incapable of generating a false positive because he cannot input as many times as any one pawn would.
      The king cannot prevent an eventual true positive because the minimum output of the system is:
      n*(k+(k+1)/n)-k = n*k+(k+1)-k = n*k+1
      If ((k+1)%n != 0) then the minimum output is slightly greater than this, but this does not effect the minimum count of n*k+1.

    172. Re:The King and the Chalice (only for Experts!) by gedhrel · · Score: 1

      The difference is that infinity isn't just a big number. If the prisoners start with only a finite number of visits, they're never going to manage to visit the king an infinite number of times.

      It has relevance to the problem because the OP has stated accurately a constraint upon the king. Although it's still not clear whether the prisoners know the value of _k_ - as far as I can see, they must, in order to be able to formulate their protocol correctly.

    173. Re:The King and the Chalice (only for Experts!) by Anonymous Coward · · Score: 0

      Assuming a "chalice up" state when the prisoner is called, if the prisoner leaves the chalice up, then the king can/will turn it down.

      The whole point of the grandparent's argument was that he can only do this k times. After that he has no direct influence over the chalice.

      You're still right regarding his ability to manipulate all messages indefinitely: Instead of flipping the chalice himself (which he can only do k times), he can keep calling other prisoners until the chalice is in the desired state. Then he calls the target prisoner. It is important to notice that the chalice is not a broadcast medium. If you had a way of ensuring that every prisoner sees a certain message, then you would already know that everybody has been in the room.

    174. Re:The King and the Chalice (only for Experts!) by Anonymous Coward · · Score: 0

      Since there seem to be a few misconceptions about the rules of the game, here is a reformulated version of the riddle:

      There are n players and 1 adversary. The players are allowed to discuss and decide on a strategy before the game begins. The adversary can listen in on the discussion, so he knows the players' strategy and predistributed information.

      The game is played in a dungeon with n empty cells and one central room which is empty except for one unconnected switch with 2 marked positions "on" and "off". The switch can only be in one of the two positions and does not convey information about previous states. The initial position of the switch is unknown.

      After their preparatory discussion, all players are locked away in other rooms without a means of communicating with eachother and without a means of keeping time. When all players are in their cells, the game starts.

      The adversary selects players to be called into the room with the switch, one player at a time. In that room, the selected player is asked whether all players have been in that room at least once after the start of the game. He can answer "yes", which ends the game, or "I don't know", which keeps the game going. If the player anwers "yes" incorrectly, the adversary wins, if the player answers "yes" correctly, the players win. After he has answered the question, the player is given the opportunity to flip the switch (or leave it as is). Then the player is sent back to his cell. The adversary is then allowed (not required) to flip the switch once before he selects the next player, but he is only allowed a total of at most k flips. The maximum number of times k that the adversary can flip the switch is chosen by the adversary at the start of the game and conveyed to all players before a player first enters the switch room.

      The game is played indefinitely until one player answers "yes". The adversary can select the players in any order, as long as he guarantees that (in the absence of a "yes" answer) for every i in N, there is a finite but arbitrarily long prefix of the sequence after which each of the players has been in the switch room at least i times. Except for said guarantee, the players have no information about the sequence.

      This is a math riddle, so life times of universes, players and adversaries are infinite, nobody gets bored with repetitive tasks, food and sanitiation are non-issues and memories are perfect.

      Devise a winning strategy for the players (a strategy such that the game always ends and the players always win).

    175. Re:The King and the Chalice (only for Experts!) by brian0918 · · Score: 1

      You can't just stop calling in one of the prisoners. Eventually, that person must be called in again.

    176. Re:The King and the Chalice (only for Experts!) by damieng · · Score: 1

      >1) The prisoners elect one of their own to be a counter, the rest we will call non-counters.

      And how exactly do they do that, with no form of communication in their sound padded rooms?

      [)amien

      --
      [)amien
    177. Re:The King and the Chalice (only for Experts!) by Alsee · · Score: 1

      Congratulations! You just got your head chopped off :)

      You logic is close, but no cigar. Your "worst case" assumption is wrong. It should read:

      One case: The king flips down k times. m = (n * i) - k + 1
      (The king erases k signals from the prisoners)
      Second case: The king flips up k times. m = ((n-1) * i) +k +1
      (The king creates k false signals from the prisoners)

      In the second equation the (n-1) is the king holding back on one prisoner. The other n-1 prisoners send their i signals plus the king sends k false signals (pretending to be a signal from a prisoner ). The "+1" must come from that last prisoner, the one the king was holding back.

      For it to work you need i = 2*k+1.

      Also note that n is the number of prisoners minus 1, because one prisoner is designated to count signals. So n is really prisoners-1 and n-1 is really prisoners-2.

      -

      --
      - - You can't take something off the Internet! That's like trying to take pee out of a swimming pool.
    178. Re:The King and the Chalice (only for Experts!) by m50d · · Score: 1
      The difference is that infinity isn't just a big number. If the prisoners start with only a finite number of visits, they're never going to manage to visit the king an infinite number of times.

      What do you mean by the "Start with only a finite number of visits"?

      It has relevance to the problem because the OP has stated accurately a constraint upon the king.

      Yes, but the constraint could be stated much more understandably and still be accurate.

      --
      I am trolling
    179. Re:The King and the Chalice (only for Experts!) by slavemowgli · · Score: 1

      You don't understand, do you? The king has not the power to turn the chalice as often as he wants - he can only turn it k times, and k is a FIXED number. What's so hard to understand about that? Sure, it might be very large - a billion, say -, but then you just use a code that's able to correct billions of bit errors. Sure, it's gonna be a lot of overhead, but who cares? The only thing that matters is that the thing is fool-proof.

      Let me just repeat that for you: the king has NOT complete control of the message at all times. In fact, if he did, then the whole riddle would trivially have no solution at all, as in that case, the king could indeed cancel or manipulate all communication that ever occurs.

      But he can't, and that's the point which you don't seem to be able to understand.

      --
      quidquid latine dictum sit altum videtur.
    180. Re:The King and the Chalice (only for Experts!) by slavemowgli · · Score: 1

      Ah, OK. Yes, that's something he can do.

      --
      quidquid latine dictum sit altum videtur.
    181. Re:The King and the Chalice (only for Experts!) by Etosoerc · · Score: 1

      What stops the King from always making sure that the head prisoner always sees the chalice in state 0 (step 6) ? The King can at any time set the chalice to any state. Thus, as someone else already said, the chalice cannot be used to convey information.

      --

      "What's in the public interest, isn't what the public is interested in" - Terry Pratchett
    182. Re:The King and the Chalice (only for Experts!) by shaftarene · · Score: 1

      Since I first locked you and the other prisoners into your rooms, have all of you been in this room yet?

      If all of the prisoners were taken out of their cells and explained the rules, then they would all have been in the room since being locked in their cells... so the strategy would be for any prisoner called into the room to answer "yes". Freedom!!!

    183. Re:The King and the Chalice (only for Experts!) by biryokumaru · · Score: 1

      Define king-chalice-flips as (prisoners*times-they-get-to-come-out) and the king can always reset the chalice. The original post does not limit k to anything less than that. The real point still stands, even though my poor attempt at using infinity instead of limits fails.

      --
      When you're afraid to download music illegally in your own home, then the terrorists have won!
    184. Re:The King and the Chalice (only for Experts!) by psst · · Score: 1

      The king can only flip the chalice k times. I account for that misinformation in line 7 of my solution.

    185. Re:The King and the Chalice (only for Experts!) by Cyn · · Score: 1

      parole.

      --
      cyn, free software and *nix operating systems enthusiast.
    186. Re:The King and the Chalice (only for Experts!) by DissidentHere · · Score: 1

      I didn't notice where K N, rather than K = N, so my assumption is K = N. This may be stoopid.

      --
      "None of us are as dumb as all of us." - meeting mantra
    187. Re:The King and the Chalice (only for Experts!) by Anonymous Coward · · Score: 0

      A short but expressive way of saying what he meant is that the sequence must be such that, if no prisoner ever answers "yes", every prisoner must be called an infinite number of times. There's no way to meet this guarantee but still avoid calling every prisoner after every other prisoner infinitely often.

  81. hats by blackcoot · · Score: 2, Interesting

    let's see... the problem goes roughly like this:

    you have five hats (two red, three black) and three people. you queue the people up in order of height and have them face the same way (this way the tallest person can see the two people in front of him/her, the middle person can see the shortest person, and the shortest person can't see anyone). you put a hat on each person's head and instruct them that they are not allowed to take the hat off or turn around. you then ask them to tell you what color their hat is. after a while, the person at the front of the line correctly announces the color of his/her hat. how did the person at the front of the line know and what were the other hat colors?

    1. Re:hats by drawfour · · Score: 2, Interesting

      If the tallest person saw two red hats in front of him, he would immediately know his had was black and say "My hat is black!" He didn't, therefore he either sees two black hats or one black hat and one red hat.

      Knowing this, the second person looks at the hat in front of him. If he sees a red hat, he knows his is black. Since he does not see a red hat, his is either red or black, he doesn't know. But knowing this, the first guy can deduce that his hat is black.

      I don't think you can know what the other colors were from this, but the first person can correctly deduce his hat color. Interesting puzzle. I've heard it before, but never took the time to analyze it.

    2. Re:hats by blackcoot · · Score: 1

      correct on both accounts. this was a homework question back when i was taking a class on proofs. i didn't get it until the prof underscored the importance of the communication or lack thereof.

    3. Re:hats by schwal · · Score: 1

      somewhat similar to one i know using this ascii art:
              ||
              || /\ || /\ /\ /\
        () || () () ()
      4 men are beried up to their necks in sand. they are all shown the 4 hats two black, two white. the will be let go if one is able to say the color of his own hat. otherwise they will be shot after five minutes. all men are facing the wall.the order of hats from left to right is b-w-b-w.

      who said his hat and how did he know?

      --
      -schwal "Hanging is too good for punners, they should be drawn and quoted"
  82. detect cycle in linked list by gadge48 · · Score: 1

    This one is old school: we're dealing with pointers and very limited memory. Here's the set up:

    You are given a pointer to the head of a linked list. Your job is to figure out if the linked list has a cycle (i.e. one of the nodes has a next pointer that points back to some earlier node in the list). The trick is that you only have enough memory on the stack for two node pointers. How do you do it?

    I got asked this in a tech intterview as a "bonus question" and it drove me nuts for the better part of an hour. The answer is pretty simple but a little hard to see.

    1. Re:detect cycle in linked list by Anonymous Coward · · Score: 0

      The blogged answer is is very simple. However "Reverse the list" using pointers is also a very elegant solution although it destroys the original list.
        After the reverse is completed if the "head" of the modified list is the same as the original pointer then you have a loop.
      a list without a loop
      a->b->c
      reversed
      c->b->a

      a list with a loop
      a->b->c->d->a
      After reversal (no steps shown)
      ab->c->d->b
      Reversal (step by step)
      ad->b->a (key step here: a is now b.next)
      ab->a
      aa
      a-b-c-d-b a
      a-b-c-d-b-a
      a is head of the list.

    2. Re:detect cycle in linked list by Anonymous Coward · · Score: 0

      You're working with very limited memory... ... so the list is very short. Therefore, it will take almost no time to get to the end of it, if it has an end. If it doesn't have an end, it has a cycle. You can guarantee halting by knowing an upper bound on the length of the list.

    3. Re:detect cycle in linked list by biobogonics · · Score: 1

      This one is old school: we're dealing with pointers and very limited memory. Here's the set up:

      You are given a pointer to the head of a linked list. Your job is to figure out if the linked list has a cycle (i.e. one of the nodes has a next pointer that points back to some earlier node in the list). The trick is that you only have enough memory on the stack for two node pointers. How do you do it?

      I got asked this in a tech intterview as a "bonus question" and it drove me nuts for the better part of an hour. The answer is pretty simple but a little hard to see.


      Yes. See Knuth, vol 2, section 3.1 exercise 6 plus answers.
      It's yet another bit of magic from Robert Floyd.

      Find X(n) and X(2n) advancing the first pointer by 1 and the second pointer by 2 at each step until they match. It turns out that the difference (n) is a multiple of the period! It's some theorem in group theory....

      I've used this technique (with minor additions as listed in the text) to determine the period and the length of the non-repeating lead in belonging to some very old intrinsic (pseudo) random number generators supplied with very old versions of BASIC. Instead of having two pointers, you must be able to save and restore *all* of the locations used for the routine's seed.

  83. mathschallenge by Anonymous Coward · · Score: 0

    This is an interesting site with many math puzzles:
    http://mathschallenge.net/

  84. Simpsons did it by eyeball · · Score: 1

    Teacher: So y = r cubed over 3. And if you determine the rate of change in this curve correctly, I think you'll be pleasantly surprised.
    [The class laughs except for Bart who appears confused.]
    Teacher: Don't you get it, Bart? Derivative dy = 3 r squared dr over 3, or r squared dr, or r dr r.

    --

    _______
    2B1ASK1
    1. Re:Simpsons did it by jZnat · · Score: 1

      Except I would've said "how is {r^2 \frac{dr}{dt}} funny?" :/

      --
      'Yes, firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.'
  85. Yes, there really is enough information... by Anonymous Coward · · Score: 0

    A ten-inch hole is drilled through the center of a solid sphere. What is the remaining volume?

    1. Re:Yes, there really is enough information... by techno-vampire · · Score: 1

      I remember when I first heard that. I was able to solve it by visualization in just a few minutes, although I couldn't prove my answer. It was based on a bit of imaginaation, knowing there was, in fact, an answer, and intuition. The anser is the volume of a sphere with a 5" radius.

      --
      Good, inexpensive web hosting
    2. Re:Yes, there really is enough information... by andrewagill · · Score: 1

      Beg pardon? If I take my Craftman drill and an infinitely long bit and drill it through the center of the Earth, certainly the remaining volume will be different than if I take the same drill and bit and run it through Jupiter.

    3. Re:Yes, there really is enough information... by TommydCat · · Score: 1

      The volume of the sphere itself hasn't changed, assuming the diameter is greater than 10 inches so there is some sphere left ;)

      --
      This comment does not necessarily represent the views and opinions of the author.
    4. Re:Yes, there really is enough information... by rubato · · Score: 1

      Hint: you're told the hole is exactly 10 inches long. How wide would the bit have to be to drill a 10 inch hole through the center of Jupiter?

    5. Re:Yes, there really is enough information... by andrewagill · · Score: 1

      Hint: you're told the hole is exactly 10 inches long.

      No, you're not! It's ``A ten-inch hole.'' That typically means ten inches in diameter.

    6. Re:Yes, there really is enough information... by rubato · · Score: 1

      Yes, you are right that the original poster did not say "long" or "wide".

      However, s/he should have said "long." The problem was given by Martin Gardner in Scientific American back in the 1950's. (He didn't invent it, so it's even older that that.) If you interpret it as "10 inches wide," the problem doesn't have a unique solution, as you saw. But if you specify it as "10 inches long," then (amazingly) there is a unique solution. Obviously the sphere has to be at least 10 inches in diameter, but you don't have to know the diameter! It takes a little calculus to prove it, but once you know there is a unique solution, you can see the answer in a split-second in your head, as did the first poster.

  86. My favorite... by Elyscape · · Score: 1

    If all of your peers tell you not to succumb to peer pressure, what do you do?

    --
    I own itburns.net. What should I put there?
    1. Re:My favorite... by kimbellina · · Score: 1

      ooh ooh! is this another riddle?

      --
      - kimbellina
  87. Re:Fork in the road (discussion and hint) by another+blockhead · · Score: 1

    Q: Did you know they are serving free beer in the village of Life?

    A truth-teller will say "no", and head to the village of Life. An
    honest liar will say "yes", and head to the village of Life. A cunning
    liar will say "yes", and may lead you to the village of Life -- or not,
    in which case you can still claim victory since the liar will be haunted
    by the suspicion that he or she may have missed out on the free beer.

    Hint for the variant involving the robots:
    Tourists don't always tell the truth!

    One more variant, also due to Gardner or one of his readers: Suppose
    that you speak the local language (shared by truth-tellers and liars)
    perfectly, except you have forgotten if "pish" means yes and "tush"
    means no, or vice versa, and that your question must be in a form
    that requires a yes/no (well, pish/tush) answer.

  88. Oldie, yet baddie by SpoonDog_SVT · · Score: 1
    I use this in my classroom each year; very few HS'ers get it...

    "Why do some people confuse Halloween and Christmas?"

    Answer

    --
    "Sometimes the only thing left to say is 'Oops'" -- debbers
    1. Re:Oldie, yet baddie by Max+Threshold · · Score: 1

      Heh.

  89. Re:Algebraic proof: 2=1 by mark-t · · Score: 1
    1. x=y
    2. x^2=xy
    3. x^2-y^2=xy-y^2
    4. (x+y)(x-y)=y(x-y)
    5. x+y=y
    6. 2y=y
    7. 2=1
    Easy. The step to get from line 4 to line 5 is a division by (x-y), but on line 1, you declared x=y, so x-y=0, and division by 0 is undefined in mathematics.
  90. Re:Algebraic proof: 2=1 by Anonymous Coward · · Score: 0

    While I believe there is a mistake in the earlier steps, I can see immediately that if x+y=y then x=0. It is therefore doubtful that you can get 2y = y from that. It should rather be y=y which is true...

  91. Achilles and the Turtle by rolandog · · Score: 1
    I really like proving wrong Zeno, in this 'riddle'.
    A 100 metre race has been arranged between Achilles and the tortoise. Of course Achilles can run much faster than the tortoise, so Achilles feels pretty confident of an easy victory. He therefore decides to make the race a little more interesting by giving the tortoise a 10 metre head start. Most of the spectators are sure that Achilles can easily make up the 10 metre deficit and they place bets on Achilles to win. The wise old Zeno, however, decides to bet on the tortoise. Zeno reasons as follows: The first thing Achilles must do is to run to the tortoise's starting position. But while Achilles is doing that, the tortoise, although slow, will move on to a new position. Next, Achilles must run to the tortoise's new position, but once again, while Achilles is doing that, the tortoise will move on a little further and so on and so on. No matter how small the gap between them is, while Achilles is closing the gap the tortoise is able to make a new gap. Zeno concludes that no matter how fast Achilles runs, he can never catch, let alone pass, the tortoise. Since Achilles can't pass the tortoise, so long as the tortoise keeps moving, the tortoise will win the race. What do think about Zeno's reasoning?
    Quote from here Solution: Since we want to prove Zeno wrong, we must assume that Achilles will catch up to the turtle at some time, or at some point.
    Say Achilles runs at 10 m/s. The turtle at 1 m/s. The distance at which Achilles will catch the turtle is X. Say that one second passes, then The turtle will be at 10 + 1 = 11 metres. And Achilles will be at 0 + 10 = 10 metres. Then one tenth of a second passes. The turtle is now at 11 + 0.1 = 11.1 metres. Achilles, therefore will be at 11 metres.
    ... lather, rinse, repeat. Adding up all the distances for Achilles would look something like this:
    X = 10 + 1 + 0.1 + 0.01 + 0.001 + 0.0001 ... Eq. "1"
    This is obviously 'some sort of series'. So, what you can do is factor it this way:
    X = 10 + (1/10)*(10 + 1 + 0.1 + 0.01 + 0.001 + 0.0001 ...) Eq. "2"
    Comparing equations "1" and "2", we can see an obvious repetition! So, substituting equation 1, into 2, we get this:
    X = 10 + (1/10)*X
    Solving for X, we get:
    X = 10/(1-(1/10)) = 10/0.9 = 11.1111(...)
    1. Re:Achilles and the Turtle by Anonymous Coward · · Score: 0

      SUVAT, 'nuff said. (But I like this one regardless)

    2. Re:Achilles and the Turtle by rolandog · · Score: 1

      Ha, indeed... but then again, this was one of the first math riddles that made others think twice before answering. The mistake of the previous 'mathematicians' was that they thought that the infinite sum of a decreasing number had to be equal to infinite.

  92. Re:Algebraic proof: 2=1 by Anonymous Coward · · Score: 0

    Rot13

    K=L. Guhf K - L vf rdhny gb 0. jura lbh qvivqr ol (k-l) hc gurer lbh ner qvivqvat ol mreb juvpu lbh pna'g qb.

  93. give the next term in the series by EngMedic · · Score: 1

    1
    11
    21
    1211

    --
    filter: +3. Hey, look! all the trolls went away!
  94. Article Solution by koko775 · · Score: 1

    Make a second pile of 18 coins, and flip them all over. You take c heads, and 18-c tails for this second pile. the original pile now has 100-18 coins, of which 18-c coins are heads. Flip all of the second pile over, and now it has 18-c heads, rather than tails.

  95. Re:Algebraic proof: 2=1 by Anonymous Coward · · Score: 0

    devide by zero, where your problem lies

  96. What's the square root of 69? by Max+Threshold · · Score: 1

    8 something!

    OK, it's not a riddle. But it's funny.

    1. Re:What's the square root of 69? by Anonymous Coward · · Score: 0

      I hate to be the one to do this, but... could someone explain the joke to me? :/

    2. Re:What's the square root of 69? by Anonymous Coward · · Score: 0

      69 has a sexual connotation that relates to the orientation of the numbers to each other.
      Notice the pronunciation of the number 8.

  97. Le Factoriel by softchill · · Score: 1

    2 of my mathematicians friends have started a web site about enigma. But it only in french. http://www.lefactoriel.com/

    You have 47 identical balls and one with a different weight. You also have a triangular balance with 3 plates.

    One plate is heavier: The balance leans towards the heaviest
                                                                          plate.
    One playe is ligher: The balance raise the lightest one.
    The 3 plates have the same weight: The balance stay flat.

    How can you find out which ball is different and if it's heavier or lighter in 3 weighings ?

    1. Re:Le Factoriel by ottffssent · · Score: 1

      Without loss of generality, assume the different-weight ball is heavier.

      Put 16 balls on each plate. One plate will sink: it contains the heavy ball.

      Of the 16 balls on the heavy plate, put 4 on each plate (12 each) and set aside 4.

      If the 3 plates remain even, the heavy ball is one of the discarded 4. If one of the plates sinks, the heavy ball is one of the 4 on that plate.

      In either case, take the group of 4 which contains the heavy ball. Balance 3 of the 4. If the plates remain even, the 4th ball is heavy; if one of the plates dips, it contains the heavy ball.

    2. Re:Le Factoriel by Anonymous Coward · · Score: 0

      Can't you also do it with 63+1 balls then? Same as the 48 balls strategy but leave 16 balls aside on your first step.

    3. Re:Le Factoriel by ottffssent · · Score: 1

      Yep. Perhaps the parent will explain why the problem's formulated for 48 balls rather than 64.

    4. Re:Le Factoriel by Slow+Smurf · · Score: 1

      I've seen a problem like this before. Makes the answer less obvious to use a different amount of weights. You can't just divide by 4 thrice times and realize that might be the reason.

    5. Re:Le Factoriel by Anonymous Coward · · Score: 0

      This method doesn't quite work for 64 balls - the deceptive "without loss of generality, the different ball is heavier" at the beginning goes wrong. If you have 64 balls, and at each weighing the odd ball is in the group left out, then at the end you don't know whether it's heavier or lighter.
        I think it works for 63 balls, though - in that case you know that the odd ball has to get weighed at some point.

  98. interesting idea by Anonymous Coward · · Score: 0

    that question took me about 30 seconds.
    my favorite math puzzle has always been take a three by three matrix and put the numbers 1-9 in the spaces such that if you sum any three boxes in a row it adds up to 15.

  99. You're in a dark room with 50 quarters... by Slashdiddly · · Score: 1

    You are likely to get mugged by a Grue.

  100. hardest riddle on the internet by CurbyKirby · · Score: 1

    Not strictly math, but some mathematical aspects, some logic, and a lot of sleuthing.

    http://www.notpron.com/

    mostly SFW, though I have heard that some later levels link to (but don't show) porn.

    --

    --
    "Extra Anus Kills Four-Legged Chick" -- Headline
    1. Re:hardest riddle on the internet by LeonGeeste · · Score: 1

      Website that doesn't work in Firefox #1,053,294

      --
      Rank my idea: http://www.sinceslicedbread.com/node/531
    2. Re:hardest riddle on the internet by Phong · · Score: 1

      I don't see any problems accessing the site with Firefox 1.5 beta2.

      --
      ..wayne..
    3. Re:hardest riddle on the internet by LeonGeeste · · Score: 1

      Really? You played the riddle? Oh? You mean you couldn't play the puzzle? Let's try not to be a Firefox apologist. Just because you can *get to* the site doesn't mean you get all its functionality. It specifically says to do the puzzle you need IE. Sorry, nice try though.

      --
      Rank my idea: http://www.sinceslicedbread.com/node/531
  101. 0^0 by PeeCee · · Score: 1

    I was going to say "duh, of course not, 0^0 is undefined, everyone knows that", since that's what I remember being taught all through school and university. However, a Google search tells me apparently it's not necessarily black or white. So I guess you have to go with what's useful for you. Anyway, it seems not even all software agrees; for example, both the built-in Windows calculator and Maple 8 say it's 1, but the PowerToys PowerCalc shows an error.

    1. Re:0^0 by Fnkmaster · · Score: 4, Funny

      I guess you could say 0^0 = 1, for sufficiently large values of 0. :)

    2. Re:0^0 by m50d · · Score: 1

      Why do people say 0^0=0? 0^1 and 0^2=0, yes, but 0^-1 and 0^-2 don't, wheras -1^0 and -2^0 still =1.

      --
      I am trolling
    3. Re:0^0 by Jasper__unique_dammi · · Score: 1

      0^0=1 ,is the senseable definition. I dont know why exactly. but it seems to me that
      a^0=1 for all a. Since ^n can be defined by multiplying 1 n times by a. (for n natural number)

      if you multiply something zero times to one you get one.
      btw is there a a better way to say that 0^0=1 is a good definition?

    4. Re:0^0 by brian0918 · · Score: 1

      0^0 is an indeterminate form. Its logarithm is 0*infinity.

    5. Re:0^0 by cgibbard · · Score: 1

      Of course, one can define the symbols to mean whatever one would like, but there are usually good reasons for the definitions one makes. There are quite a large number of reasons why 0^0 = 1 is a sensible definition. I'll give a few.

      If A and B are sets, a function f: A -> B is a set of pairs (a,b), a in A and b in B such that

      1. If (a,b) and (a,c) are in the set, then b = c.
      2. For every a in A, there is some b such that (a,b) is in the set.

      When (a,b) is in the set, we write f(a) = b.

      If A is a set with m elements, and B is a set with n elements, then n^m is the number of functions from A to B, at least for all integers n,m > 0.

      What happens with empty sets? If A and B both contain 0 elements, then there actually is one function between them: the empty function, that is the empty set of pairs. You can verify that it (trivially) satisfies the two conditions above to be a function. Also, there cannot be another function, because there are actually no pairs which could be in the set anyway, that is, if A and B are empty, then AxB = {(a,b) | a in A, b in B} is empty. So there is exactly one function from the empty set to itself, and hence it would make sense that 0^0 = 1 is a good definition.

      There are also good reasons analytically to set 0^0 = 1. Although there is a conflict between the two limits:

      • limit as x -> 0+ of limit as y -> 0 of x^y = 1
      • limit as y -> 0 of limit as x -> 0+ of x^y = 0
      It turns out that the directional limit approaching 0 of the function f: (R^+) x R -> R, f(x,y) = x^y from any other direction than the latter limit above gives a limit of 1. That is, the limit as x -> 0+ of f(x,ax) = 1, for every a in R.

      Further, there is a good algebraic reason why x^0 is always 1, regardless of x. That is the fact that one wants the identity x^(a+b) = x^a x^b to hold as far as possible. If x^0 = 0 (or any other value than 1) this property would fail: use a = 0 and b = 1. Then x = x^1 = x^(0 + 1) = x^0 x^1 = x^0 * x. The only value we can give to x^0 which makes this equality work is 1.

      Hope this clears things up a bit why it's a sensible thing to define. Just remember that mathematics is largely arbitrary. So long as you say clearly what you are doing, and follow the rules that you set for yourself, it's fine. You can even change the rules of logic if you like. (Though to get others to work with you, you'll probably have to agree on conventions of course.)

      - Cale Gibbard

    6. Re:0^0 by fymidos · · Score: 1

      0^0 = 1, for sufficiently large values of 0, sufficiently small values of 0 and sufficiently real values of 1 :))

      --
      Washington bullets will simply be known as the "Bulle
    7. Re:0^0 by portscan · · Score: 1

      If you don't believe google, then perhaps some of the following can convince you that 0^0 = 1. try successive approximations on a calculator to convince yourself of this:
      .1^.1 = 0.794328
      .01^.01 = 0.954993
      .001^.001 = 0.993116
      .0001^.0001 = 0.999079
      etc.
      In fact, take any two functions f(x) and g(x) whose limit is zero as x->0 (I have chosen f(x) = g(x) = 1/10^x). If f and g are "sufficiently well behaved" -- let's say analytic -- then the limit of f(x)^g(x) as x->0 is 1.

      Or calculate the limit x^0 as x->0. (yes, calculating 0^x as x->0 gives 0, but it is universally accepted in the mathematics community agrees that 0^0 = 1 is the only useful value for 0^0).

    8. Re:0^0 by softchill · · Score: 1

      My solution is google calculator as it's one the the rare calculator that can calculate e^(i*pi)+1.

  102. Re:Algebraic proof: 2=1 by arron_nz · · Score: 1

    if x=y, then x+y=y can't work.

    --
    garble
  103. Seems like a repeat of Discrete Math.... by EinsteinRival · · Score: 1
    Well, like the subject line says, I've seen most of these problems in my discrete math class (I think I picked the right spelling). So, I thought I would give you the latest problem I was given, supposedly from a microsoft recruiting representative:

    There are an unknown number of people in a line, each with a black or white hat. The person in the rear can see the hat colors of everyone ahead, but not behind or his own. So, a person comes along and asks each person from the rear to the front in order what color hat they are wearing, and if they are wrong or have to guess, they are killed. They can only say a hat color, and everyone else in the line can hear what they say, but cannot know if they are killed. However, they collude beforehand to come up with a way to save the maximum number of them, which is n-1, since the first person asked cannot possibly get his hat color correct. So, what strategy will yield n-1 lives saved?

    Bonus:
    How is it done for m number of hat colors?

    Good Luck!

    1. Re:Seems like a repeat of Discrete Math.... by Anonymous Coward · · Score: 0

      Heh, I had this one in an interview as well, although it involved a bunch of gnomes and an evil wizard.

      Gur svefg thl rzvgf n cnevgl ovg. Ur'yy fnl jungrire pbybe zbfg bs gur ungf ner (fvapr ur pna frr a-1 ungf va sebag bs uvz), jvgubhg ertneq sbe uvf bja yvsr. Vs gurer ner rdhny ahzore bs juvgr/oynpx ungf, ur'yy fnl oynpx. Gura, gur crefba va sebag bs uvz pna frr a-2 ungf, naq pbhag gur ahzore bs juvgr naq oynpx ungf, pbzcner uvf erfhyg jvgu gur cerivbhf bar, naq or noyr gb qrgrezvar jung pbybe uvf vf.

  104. Light Bulb by lababidi · · Score: 1, Interesting

    here's an oldy MSFT asks on job interviews:

    next to a door are 3 light switches. one of the switches are connected to an incandescant light bulb in the windowless room on the other side of the door. you may not open the door and flip the switches. you may only enter the room once. which switch lights up the room?
    Solution

    1. Re:Light Bulb by Anonymous Coward · · Score: 0
      light bulb in the windowless room

      Shouldn't it be a light bulb in a vistaless room?

    2. Re:Light Bulb by Anonymous Coward · · Score: 0

      If the solution is indiciative of how information is encoded at Microsoft, that riddle explains a lot.

    3. Re:Light Bulb by unitron · · Score: 1

      A question. What if, before any switches are switched, the light bulb were in the state opposite the state which the answer assumes it to be?

      --

      I see even classic Slashdot is now pretty much unusable on dial up anymore.

    4. Re:Light Bulb by Impy+the+Impiuos+Imp · · Score: 1

      There is an "oh yeah!" type of answer. Hint: The goal is to determine which switch turns on the light, not necessarily to make sure the light is on when you enter the room.

      --
      (-1: Post disagrees with my already-settled worldview) is not a valid mod option.
    5. Re:Light Bulb by Impy+the+Impiuos+Imp · · Score: 1

      Also, I believe the bulb is guaranteed to be off when you start.

      --
      (-1: Post disagrees with my already-settled worldview) is not a valid mod option.
    6. Re:Light Bulb by maxwell+demon · · Score: 1

      What if the light bulb doesn't work?
      But since there was no requirement that additional tools may not be used, there's of course a simple solution:
      Step 1: Go into the room and connect a voltmeter to the light bulb. Connect that voltmeter to a sender which sends you the result out of the room. There's no need to enter the room again now.
      Step 2: Try all the switches and watch the voltage.

      --
      The Tao of math: The numbers you can count are not the real numbers.
    7. Re:Light Bulb by unitron · · Score: 1

      I'm going by the way the problem (and solution) are stated on the site linked back at the top of this thread. The initial state of the bulb is not stated and there is something in the answer which I believe is defeated if the bulb is in one particular state at the beginning and it's getting very difficult to discuss this without revealing any details about the answer.

      --

      I see even classic Slashdot is now pretty much unusable on dial up anymore.

    8. Re:Light Bulb by hackwrench · · Score: 1

      and it also depends on the lights being wired to the switches in the same position as the lights.

    9. Re:Light Bulb by orainsear · · Score: 2, Insightful

      Prior to entering the room (I am assuming it's a room where you can somehow touch the light bulb, the light works and is connected to one of the switches etc), flip one of the switches e.g. switch number 1 (we'll call them 1,2 and 3) and leave it on for 30 seconds. Flip that switch back to off and flip switch number 2 to on. Now enter the room. If the bulb is lit it is switch number 2 that controls the light. If the bulb is not lit but warm (feel by touching it) it is switch number 1 that controls the light. If the bulb is unlit and cold it is switch number 3 that controls the light.

    10. Re:Light Bulb by rlbond86 · · Score: 1

      The second one.

    11. Re:Light Bulb by unitron · · Score: 1
      " and it also depends on the lights being wired to the switches in the same position as the lights."

      I'm not really sure what that means, but there is only one light bulb in this riddle/problem.

      --

      I see even classic Slashdot is now pretty much unusable on dial up anymore.

    12. Re:Light Bulb by Thu+Anon+Coward · · Score: 2, Informative

      man, you solved it the hard way. it says a windowless room. therefore, all I have to do is get down on the floor after flipping each switch. if I see light coming out from under the door, ergo, I have my solution. there is no other light source, doors are required to have those gaps underneath in order to allow for building ventilation, and whatever M$ doesn't tell me about the conditions of the room, I can modify to my advantage.

      an even easier solution would be to get a fireaxe, chop a hole in the door, and flip switches while I looked thru the hole. haven't opened the door and I've solved it in even less time than your method.

      when dealing with idiotic interview questions like this, use the unexpected solution.

      --



      I'm good with numbers - .45, 7.62, 9.....
    13. Re:Light Bulb by Anonymous Coward · · Score: 0

      I'd say, the switch which controls the light for the room that you are in now -- because when you open the door, the windowless room will be lit up.

    14. Re:Light Bulb by lowrydr310 · · Score: 1

      What if the light is on prior to entering the room?

  105. Monty Hall by nfarrell · · Score: 2, Interesting
    This is a classic, demonstrating how humans can't cope with conditional logic. Ripped straight from Wikipedia:
    The Monty Hall problem is a puzzle in game theory involving probability that is loosely based on the American game show Let's Make a Deal. The name comes from the show's host, Monty Hall. In this puzzle a player is shown three closed doors; behind one is a car, and behind each of the other two is a goat. The player is allowed to open one door, and will win whatever is behind the door. However, after the player selects a door but before opening it, the game host (who knows what's behind the doors) must open another door, revealing a goat. The host then must offer the player an option to switch to the other closed door. Does switching improve the player's chance of winning the car?
    For a dicussion go here, but be warned, they tell you the solution: http://en.wikipedia.org/wiki/Monty_Hall_problem
    1. Re:Monty Hall by ysegalov · · Score: 0

      Of course you should switch doors. Improves your probability from 1/3 to 2/3 (!) Yes it does, calculate.

    2. Re:Monty Hall by themoodykid · · Score: 1

      I love this puzzle because the answer doesn't seem to make sense at first. The best thing about this puzzle, though, is how many people got worked up emotionally over the solution provided and wrote to the paper to "correct" vos Savant. There was a great story about it in one of her books (can't be arsed to look it up).

  106. Monty Hall by ScaryFroMan · · Score: 0
    A personal Favorite:

    There are three doors: one has a brand new car behind it, and the other two have goats behind them. You pick one door, which is then marked, but not opened.

    Now, one of the unmarked doors is opened to reveal a goat. You are given the choice of switching your first pick to the remaining unmarked, unopened door. Should you switch?

    --
    In Soviet Russia, backwards is everything.
  107. The worm on the rubber rope... by russh347 · · Score: 1

    An immortal and single-minded worm sits at one end of a 1km long rubber rope. The worm travels at a steady 1cm/sec toward the other end. The rope in infinitely and uniformly elastic. At the end of each second, the rope stretches (uniformly) by 1km. Does the worm ever reach the other end of the rope? If so, when?

    1. Re:The worm on the rubber rope... by Harmonious+Botch · · Score: 2, Funny

      About 5 seconds after the moving end of the rope comes loose.

    2. Re:The worm on the rubber rope... by Anonymous Coward · · Score: 0

      a friend of mine had this question on an application to U of C. i dont know if it originated there. anyway, length of rope=A, worms speed=B. A/B=k>1. for small k, it can be determined easily how soon the worm reaches the other end. whether k is large or small, the worm's position as a percentage across the rope is always increasing. when k=100000, or 63360, as in the UC question, it takes a ridiculously large number of steps, ie, numbers with millions of digits, IIRC.

  108. Except... by nwbvt · · Score: 4, Informative

    Dividing by zero is not "perfectly valid algebra". Division is not closed on the set of real numbers. Its not really a riddle if you lie in the problem description. Otherwise the solution to the sample problem could be "Pull out 9 of the quarters into a seperate group. I was lying when I said you couldn't see any of them."

    --
    Mathematics is made of 50 percent formulas, 50 percent proofs, and 50 percent imagination.
    1. Re:Except... by mithran8 · · Score: 1

      Okay, fair enough - let me restate a bit more clearly:

      The transition from one step to the next, viewed independently of any other step, is considered valid algebra.

      The point of the comment was to avoid people questioning the factorization of conjugates, or the ability to subtract the same value from both sides of an equation... it's surprising how many people forget the basics after a few years. Obviously there's something illegal - the challenge is thinking abstractly and identifying it.

      --
      An object at rest cannot be stopped!
    2. Re:Except... by Anonymous Coward · · Score: 0

      That's still wrong. Dividing both sides by a common factor is not considered valid algebra unless you know that it's not equal to zero.

    3. Re:Except... by Anonymous Coward · · Score: 0

      Ehh not really, you can't go from step 4 to 5 without the requirement that the function (x-y) != 0, or written more simply; x != y, usually if you were working through a problem you would just write that requirement in the margin and move on since it's pretty obvious to any engineer or math geek that you cant divide by zero, thats just a standard in any kind of problem solving.

  109. Pirates by ucaledek · · Score: 1

    I always liked the pirates' booty problem (for those of you who giggled--oh grow up). There's a crew of 5, with a strict hiearchy from 1 down to 5. It's time to split the hoard of a 100 pieces up. The rules are: The highest rank proposes how to divvy things up and there is a vote, if it's 50% or more against, you kill that highest rank and then the next highest gives a plan, etc. Pirates will vote against unless there's a clear advantage to voting for (i.e. some pieces as opposed to strictly fewer). Pirates may be dastardly, but are also logical ;-) So if you're the captain (numero uno) how do you dole the treasure out without getting killed?

    1. Re:Pirates by Anonymous Coward · · Score: 0

      Should we assume they also votes based on their desire to live, not just get more gold?

    2. Re:Pirates by schwal · · Score: 1

      give everyone else 25 peices of course!

      --
      -schwal "Hanging is too good for punners, they should be drawn and quoted"
    3. Re:Pirates by TommydCat · · Score: 1

      Nah, the last three will realize that they can get at least 33 a piece, the captain keeping 1 for himself...

      --
      This comment does not necessarily represent the views and opinions of the author.
    4. Re:Pirates by Anonymous Coward · · Score: 0

      This is actually one of the most fun problems in the thread - mod parent up!

      **SPOILER, CONTAINS (HOPEFULLY CORRECT) ANSWER**

      The captain can get 95 pieces by offering 95,0,0,3,2.

      Consider - If the offers of 1,2 and 3 are rejected, then 5 can get 100 pieces simply by rejecting 4's offer, unless 4 offers 5 100 pieces. Thus 4 cannot reject 3's offer. 3 can figure this out, and hence if 3 gets the chance to offer a plan, he can offer 99,1,0 and 4 will have to accept it.

      2 can figure this out, and 2 knows he needs 3/4 votes for his plan to pass, so he can offer 97,0,2,1 and 4 and 5 will accept this as 3 will offer them less. Thus the captain only has to give them a better deal than this, and hence he can offer 95,0,0,3,2.

    5. Re:Pirates by Draknek · · Score: 1

      That used to be the logic I used, but the last time I gave this riddle to a group of people, they pointed out a problem with it.

      If the offers of 1, 2 and 3 are rejected, then 4 will offer 5 all hundred pieces. However, 5 could reject this offer. He gains nothing either way, so we have to accept it as a possibility.

      This means that 3 can offer 4 nothing, and 4 will still accept, so that the possibility of getting thrown overboard goes away.

      2 will offer 4 and 5 one gold piece each.

      1 will offer 3 one gold piece, and either 4 or 5 two gold pieces.

      So, I think the two possible solutions are:

      97,0,1,2,0
      and
      97,0,1,0,2

      --
      Self-referential sigs do not a humourous poster make.
    6. Re:Pirates by xaosflux · · Score: 1

      "So, I think the two possible solutions are: 97,0,1,2,0 and 97,0,1,0,2" For the first pirate to not die he needs to secure 3 votes, and subordinate pirates don't die. Pirates want to stay alive first, and get the most gold second (as being alive is a prerequisite to getting gold). Pirates are also assumed to be completely logical. In 97-0-1-2-0 The votes may be pass-fail-pass-pass-fail, securing the three votes, but the first pirate has not succeeded in gaining the most gold. In 97-0-1-0-2 The votes may be pass-fail-pass-fail-pass, also getting three votes. In 98-0-1-0-1 the votes can also land pass-fail-pass-fail-pass with the first pirate maximizing his profits. It's not enough to just compare the distributions, as negative votes will result in dead pirates... The biggest disciminator in this problem is parity, if there are an even number of pirates the distribution would lie as 50-0-1-0-1-0.........-1-0

    7. Re:Pirates by Draknek · · Score: 1

      Where does it say that only the head pirate will die if his suggestion is rejected?

      In 98-0-1-0-1, pirate 5 is getting the same amount of gold as he would if the second in command makes the suggestion. This means that he might not support the proposal.

      --
      Self-referential sigs do not a humourous poster make.
    8. Re:Pirates by xaosflux · · Score: 1

      "The rules are: The highest rank proposes how to divvy things up and there is a vote, if it's 50% or more against, you kill that highest rank and then the next highest gives a plan" and so on and so on

    9. Re:Pirates by Draknek · · Score: 1

      The way I read it, the next highest will then become the highest rank. If their proposal is rejected, they'll get killed as well.

      That's how it was explained to me.

      It doesn't really matter, though; it just makes a different riddle.

      --
      Self-referential sigs do not a humourous poster make.
  110. Number of points required to define a plane by KFury · · Score: 1

    Setup: There exists a function that accepts N points specified in cartesian 3D space and deterministically returns a plane, such that each set of N point has one and only one possible result value, and every plane can be specified by this function, given a proper set of points.

    Question 1: What is the minimum value of N?
    Question 2: In conventional language (ie not code or overly technical terminology) how does the function operate?

    Hint: N is definitely less than 3, but if you were describing the function for N=3 one possible answer for Q2 would be "The function returns the unique plane which intersects all three points. When the three points are colinear or overlapping, the function returns False."

    If you answer this question, please prefix "Answer" to the title of your [Reply] to avoid accidental spoilage. I'll post a link to the real answer in a day or two.

  111. Knight's reward by Anonymous Coward · · Score: 2, Interesting

    This is a non trivial problem. ...

    Once upon a time, in a land far far away, there lived a knight who had
    just rescued his first damsel in distress. The knight was called before
    the king to receive a reward. The king told the knight that he had
    written an amount of gold on a piece of paper and twice the amount of
    gold on another piece of paper. He placed the two pieces of paper face
    down in front of the knight, and told him he could chose either one.
    The king would give the knight the amount of gold on the paper as a
    reward. Or, the knight could opt to get the amount of gold on the other
    paper instead.

    This was the knight's first reward, so he had no idea what he was likely
    to get. But the knight reasoned that no matter what amount he saw on the
    paper he chose, he would take the other one because he had more to gain
    than lose. For example, if the paper he chose had 16. He might win
    another 16, and at worst he only loses 8!

    The damsel points out that if the knight is going to end up with the amount
    on the other piece of paper anyway, why not just choose it first and not
    switch. His reward will be the same. ...

    Is the damsel correct? Or is the knight's plan sound?

    Refute the argument you disagree with. (Refuting the incorrect argument
    is the challenge.)

    1. Re:Knight's reward by Anonymous Coward · · Score: 0

      He might as well choose one at random and walk away. Looking at the paper will give him no information that could influence a decision to switch.

    2. Re:Knight's reward by wildsurf · · Score: 1

      Is the damsel correct? Or is the knight's plan sound?

      This is a great puzzle. STOP READING if you don't want to know the answer.

      The solution rests with the fact that there must be some a priori bounded probability distribution of the offered amounts of gold; it can't be infinitely variable. (Similar to how you can't "choose an integer at random," with uniform distribution, without first specifying a range.) If the amount on the knight's piece of paper is within a factor of two of the upper limit, he can only lose (a large amount) by switching. And if it's within a factor of two of the lower limit, he can only gain (a small amount) by switching. These endpoints exactly cancel the roughly 25% expected gain from switching from amounts in between. Since the knight doesn't know if his first paper is on the highest end of the probability distribution, or on the lowest end, or in between, his overall expectation for switching turns out to be even money.

      --
      Weeks of coding saves hours of planning.
    3. Re:Knight's reward by m50d · · Score: 1

      Actually, there is a switch strategy that does better than 50/50. Basically you pick a distribution, and if the average is better than what you've currently got, you switch.

      --
      I am trolling
    4. Re:Knight's reward by HeadOffice · · Score: 1

      This is a great puzzle. STOP READING if you don't want to know the answer.

      The solution rests with the fact that there must be some a priori bounded probability distribution of the offered amounts of gold; it can't be infinitely variable. (Similar to how you can't "choose an integer at random," with uniform distribution, without first specifying a range.) If the amount on the knight's piece of paper is within a factor of two of the upper limit, he can only lose (a large amount) by switching. And if it's within a factor of two of the lower limit, he can only gain (a small amount) by switching. These endpoints exactly cancel the roughly 25% expected gain from switching from amounts in between. Since the knight doesn't know if his first paper is on the highest end of the probability distribution, or on the lowest end, or in between, his overall expectation for switching turns out to be even money.

      Quite funny, I agree with the conclusion, but here's the CORRECT REASONING:

      The only event in the story where chance plays a part is when the knight chooses one of the two papers. The 'strategy' that the knight uses to come to his choice does not at all effects his winning expectations. Not even the fact that he can see the amount on one of the two papers, as he has not a clue of how high the usual reward is.

      (A different game would be if the king would give the knight a piece of paper with an amount of gold written on it, flipped a fair coin and wrote, depending on the outcome of the flip, either half or double that amount on a second paper. In that case the knight had better switched.)

      How typical btw. that even freshly rescued damsels have to stick their noses into their rescuing knight's affairs.

    5. Re:Knight's reward by Surt · · Score: 1

      Here's a hint: neither strategy is correct, and there is a mathematical proof of this.

      --
      "Who is the Journal of Quantum Physics going to believe?" --Stephen Hawking
    6. Re:Knight's reward by wk633 · · Score: 1

      He should think long term. Look at one piece, and then choose the second, so he'll know which number was the maximum. That will give him a better chance of choosing his next reward.

      This was, after all, only his first reward.

  112. Re:Algebraic proof: 2=1 by Toba82 · · Score: 1

    You divided by zero between equations 4 and 5.

    --
    I pretend to know more than I really do by mooching off google and wikipedia.
  113. Two favorites from math olympiads by jks · · Score: 2, Insightful

    The following two problems appeared in IMOs 1993 and 1994 (you can find the answers using Google, but I won't give a direct link).

    A solitaire game is played on an infinite square grid. Initially, there are n^2 pieces in an n*n square formation. On each move, the player moves a piece either horizontally or vertically over an immediately adjacent piece into the square beyond, which must be unoccupied, and removes the piece that was jumped over. The objective is to end up with only one piece on the board. For which values of n is this possible?

    Show that there exists a set A of positive integers with the following property: given any infinite set S of prime numbers, there are positive integers k>=2, n and m such that both n and m are the product of k primes in S, n is in the set A and m is not in the set A.

  114. Re:Algebraic proof: 2=1 by Anonymous Coward · · Score: 0

    you've divided by 0 or infinity, depending on which way you go.

  115. Posted @12:35AM by Anonymous Coward · · Score: 2, Funny

    Here's a riddle.

    It's Saturday night and some geek (sorry Cliff) is desperate and dateless so he spends 3 hours composing a submission, and YES!, it gets accepted by Slashdot just after midnight.

    The riddle? How sad is that?

  116. you're given a globe by rmm4pi8 · · Score: 2, Interesting

    Assuming the earth is a perfect sphere, describe the solution set of points where you can go 1 mi south, 1 mile east, and 1 mile north and return to your starting point. Hint: the cardinality of the set is R cross Z + 1 (and yes, I know that's equal to R, but expanding it makes it a more effective hint). Feel free to email me for more hints.

    --
    U.S. War Crimes blog. Email for free Mandriva support.
    1. Re:you're given a globe by Thing+1 · · Score: 1

      start at n pole

      --
      I feel fantastic, and I'm still alive.
    2. Re:you're given a globe by Jeremi · · Score: 1
      start at n pole


      That's one point... now what about the other one?

      --


      I don't care if it's 90,000 hectares. That lake was not my doing.
    3. Re:you're given a globe by shachart · · Score: 1

      I prefer to ask it this way. You start at some point on the Earth. You walk (as detailed above) and then see a bear. What color is the bear?

      --
      Those who can, do. Those who can't, consult.
    4. Re:you're given a globe by Anonymous Coward · · Score: 0

      Red.

      It's covered with your blood.

    5. Re:you're given a globe by Herr+Proktor · · Score: 1
      R = Real #'s?

      Z = Complex #'s?

      R cross Z = { | a is a member of R and b is a member of Z}? Maybe instead of 'cross' you meant 'union'? Or maybe this is some unorthodox (to me anyway) notation? I just don't understand this hint. Anyway, is the answer not "the north pole", so the cardinality of the solution set = 1 (and not R, as the hint implies)?

    6. Re:you're given a globe by Anonymous Coward · · Score: 0

      Z is the set of (negative and non-negative) integers. The answer is not "the north pole". That's just one of an infinite number of points which satisfy the constraint.

    7. Re:you're given a globe by Spydr · · Score: 1

      if you start from the north pole you'll end up back where you started.

    8. Re:you're given a globe by kurthr · · Score: 1

      aha! the east pole

      where the easter bunny lives ;^)

    9. Re:you're given a globe by bitflip · · Score: 1

      Infinite.

      Start at a location north of the South Pole where traveling 1 mile South will place you at a distance from the South Pole where traveling East is exactly one mile in circumference. Then travel north.

      Furthermore, it also works for a half-mile circumference, third of a mile, etc.

      (you didn't expect me to do the math, I hope ;)

    10. Re:you're given a globe by bme · · Score: 1

      First, the north pole, and also the set of points one mile north of where the distance of a complete circumnaviagion of the earth is one mile.

  117. One I like by andrewagill · · Score: 2, Interesting

    You are a tourist, visiting a desert island just off the coast of South America. There's only one reason that you would be visiting this one-acre island, and that is that there is a tiny plateau reaching up a mile into the air, with the ruins of an Aztec temple on it.

    As you walk along a path, you come to a fork. In the fork are two men, of which you know little, except that they must have come from one of the villages on the other islands nearby.

    There are three villages--the Marqetteres always lie, the panguons always tell the truth, and the Shie'ep always do what everybody else is doing.

    You may ask one question to one of the men. What do you do?

    Answer(ROT-13):
    Fvzcyr. Lbh vtaber obgu zra, naq jnyx fgenvtug gb gur zvyr uvtu cyngrnh, juvpu jbhyq or ivfvoyr sebz nal cbvag ba n bar-nper qrfreg vfynaq.

    1. Re:One I like by andrewagill · · Score: 1

      Oh, forgot to mention--got this from Discover Magazine.

    2. Re:One I like by Surt · · Score: 1

      I thought for sure it was:

      Xvyy obgu zra, ab bar jvyy zvff gurz, gurl'er whfg gbhevfgf.

      --
      "Who is the Journal of Quantum Physics going to believe?" --Stephen Hawking
    3. Re:One I like by andrewagill · · Score: 1

      They're not tourists. The problem states that there's only one reason why *you* would be there. You cannot assume that the same is true for the other people, who have come from neighboring islands.

    4. Re:One I like by crc32 · · Score: 1

      Umm... A mile high plateau on a one-acre island would be a sheer cliff face...

      --
      "In order to make an apple pie from scratch, you must first create the universe." -- Carl Sagan, Cosmos
  118. Barber problem. by HockeyPuck · · Score: 1

    A barber has a sign that says he shaves all men, but only those men who do not shave themselves.

    Who Shaves the barber?

    Does he shave himself? He can't b/c he doesn't shave men who shave themselves. So somebody else must shave him, but that would mean that he doesn't shave himself so therefore he must shave himself.....

    1. Re:Barber problem. by jZnat · · Score: 1

      Well, the barber is normally a woman in the riddle, but you ruined it with your weird ponderings at the end...

      --
      'Yes, firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.'
    2. Re:Barber problem. by drawfour · · Score: 1

      Except, the question, as posed, was:

      A barber has a sign that says he shaves all men, but only those men who do not shave themselves.

      If you're gonna ask a trick question, at least ask it correctly!

    3. Re:Barber problem. by jZnat · · Score: 1

      Who says the barber has to shave? Maybe he likes having a beard, or maybe he has some sort of disorder, or maybe he's prepubescent, or maybe there's multiple barbers.

      --
      'Yes, firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.'
    4. Re:Barber problem. by drawfour · · Score: 1

      Because he shaves ALL men, except those who shave themselves. ALL MEN. "Men" can generally be assumed to be post-pubescent, but there is no leeway for disorders that would mean he was incapable for growing a beard. However, if there were multiple barbers, that would not account for him shaving all men, except for those who shave themselves. For if another barber shaved him, then he would not be shaving himself. Except that he shaves all men, except for those who shave themselves. As the original poster pointed out in his musings.

      The question should have been: A barber's sign reads "I shave all men, except for those who shave themselves!" Who shaves the barber?

    5. Re:Barber problem. by dreamer-of-rules · · Score: 1

      Simple, the barber is a Cretan.

      --
      Everyone is entitled to his own opinions, but not his own facts.
    6. Re:Barber problem. by Neeth · · Score: 1

      The Barber is bold.

      --
      Yes, I am the one with the legendary sig.
    7. Re:Barber problem. by jZnat · · Score: 1

      Nah, the barber is a social hermit.

      --
      'Yes, firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.'
  119. yes it's cute by croto · · Score: 2, Informative

    abcabc/13=(abc+1000*abc)/13=abc*1001/13=abc*77 nice!

  120. Here's a hard one by EnsilZah · · Score: 1

    What have I got in my pockets?

    1. Re:Here's a hard one by Ravear · · Score: 1

      Hmm ... candy?

    2. Re:Here's a hard one by grolschie · · Score: 1

      Handses?...... Knife?......String or nothing?

    3. Re:Here's a hard one by Anonymous Coward · · Score: 0

      well it's very small, whatever it is...

    4. Re:Here's a hard one by Anonymous Coward · · Score: 0

      I thought you were just happy to see me.

    5. Re:Here's a hard one by Anonymous Coward · · Score: 0

      I'm guessing you've got your hand on your ring

  121. Spacial geometry one by nfarrell · · Score: 2, Interesting

    Ok, here is a progression of questions which require no special training. Make sure you only ROT13 one answer at a time if you're trying these yourself:

    Assume Earth is a perfect sphere.

    Q1) Where can you stand such that if you go 1km North, then 1km East, then 1km South, you're back where you started?

    A1 rot13'ed) gur fbhgu cbyr. pregnvayl abg gur abegu cbyr, nf lbh pna'g tb abegu sebz gurer. naq vs lbh fnvq 1xz fbhgu bs gur abegu cbyr v'q fnl ab gbb, nf lbh pna'g tb rnfg sebz gur abegu cbyr, bayl fbhgu.

    Q2) OK smarty. Where ELSE can you do it from, on the Earth's surface? No tricks are involved either, just a bit of thinking.

    A2) n ovg bire bar xz fbhgu bs gur abegu cbyr: nsgre jnyxvat gur 1xz abegu, n 1xz jnyx rnfg pbzcyrgryl pvepyrf gur abegu cbyr, zrnavat lbh'ir qbar n ebhaq gevc. 1xz fbhgu gura ergheaf lbh gb gur vavgvny cbfvgvba. n srj crbcyr pbzcynva nobhg guvf bar, nf lbh nera'g jnyxvat va n fgenvtug yvar, rira gubhtu lbh'er nyjnlf urnqvat rnfg. lbh pna erzvaq gurz gung gurl jrera'g tbvat va n fgenvtug yvar va n1 rvgure. naq nfx gurz gb qrsvar 'rnfg' vs gurl fgvyy nera'g unccl.

    Q3) You really think you're good don't you? OK, I want to know where ELSE!

    (read this when you think you have it, before you read the real answer: gur nafjre vf abg nabgure cbfvgvba ba gur rnegu'f fhesnpr qhr rnfg (be jrfg) bs gur nafjre gb d2. jryy vg vf, ohg vg'f abg tbbq rabhtu, gurer'f fbzrjurer ryfr.)

    A3) guvf nafjre vf nyzbfg gur fnzr nf gur ynfg, ohg vafgrnq bs cynpvat lbhefrys fb gung gur bar xz rnfgreyl jnyx vf n pbzcyrgr ybbc, lbh'er rira pybfre gb gur abegu cbyr, naq znantr gjb ybbcf! be, sbe gung znggre, lbh pna zbir rira pybfre, naq nf lbh nccebnpu gur '1xz fbhgu' cbvag sebz gur abegu cbyr lbh jvyy svaq zber naq zber fbyhgvbaf.

    Enjoy.

    1. Re:Spacial geometry one by BobaFett · · Score: 1

      Considering A3, one could argue that the comment in A1 is not entirely correct: going north from the north pole is undefined and ambiguous, but the limit of A3 is one possible way to define it.

  122. The Dilema by Cash202 · · Score: 2, Interesting

    If you do the population curve (takes a couple minutes, and somewhat tedious) it teaches an interesting lesson. The more money we donate to starving countries, like we do to various countries in Africe (both government and public donations), the more they reproduce. Thus they require more money, eventually dying out anyway. If we don't donate money, they drop to incredibly low numbers, and stabilize, but not as low as the other alternative. Thus the dilema. Either you donate and save some lives, causing more death in the end. Or you sit idle by, letting people die.

    1. Re:The Dilema by joss · · Score: 1

      > The more money we donate to starving countries, like we do to various countries in Africe (both government and public donations), the more they reproduce.

      No. Being richer does not mean people reproduce more. In fact, the poorer people are (up to a point) the more they reproduce. With better education and health care, people reproduce less.

      --
      http://rareformnewmedia.com/
    2. Re:The Dilema by Surt · · Score: 1

      Popularly known as the false dilemma, for straightjacketing you into one of two imaginary solutions to a real problem.

      The proposed solutions also value life and death in a strange way, and at the same time both require the evaluation of and the ignoring of long term outcomes.

      --
      "Who is the Journal of Quantum Physics going to believe?" --Stephen Hawking
  123. an easy one to start with... by kat11v · · Score: 1

    You have 9 brass balls and one set of scales (the old fashioned "justice" kind). One of the balls is very slightly heavier than the others. By only using the scales twice, how can you find out which one that is? That is, how would you weigh them?

    1. Re:an easy one to start with... by Anonymous Coward · · Score: 0

      Weigh 3 balls against 3 balls while holding the remaining 3 balls in your hand. If the scales are evenly balanced, you know you have the heavier ball in your hand along with 2 equally weighted balls. If the scales lean towards one side, take those 3 balls.

      Discard the 6 balls you know are all evenly weighted. Now weigh 1 ball against 1 ball, holding the third ball in your hand. See supra...

    2. Re:an easy one to start with... by Anonymous Coward · · Score: 0

      Using 9 balls leads people to guess that they should divide the balls into groups of threes. I think the problem is much more interesting when you say there are only 8 balls. People get stuck trying to work with halves. ...I know I did.

  124. Re:Fork in the road (solution, rot13) by another+blockhead · · Score: 1

    Gur gbhevfg yvrq, naq jnf ernyyl tbvat gb Vgrebcbyvf. Fur jnf noyr gb qrqhpr gung gur svefg ebobg jnf gryyvat gur gehgu, naq gung ure gehr qrfgvangvba jnf gurersber gb gur yrsg, ba gur ebnq gur ebobgf unq orra geniryvat.

    Gur xrl vf gur svefg ebobg'f frpbaq fgngrzrag ("Vs lbh nfxrq zr, V'q fnl Ovgobebhtu vf gb gur evtug"). Vs gur svefg ebobg vf n gehgu-gryyre, guvf fgngrzrag pna or npprcgrq ng snpr inyhr: Ovgobebhtu vf gb gur evtug. Vs gur svefg ebobg vf n yvne, ubjrire, gur fgngrzrag zhfg or n yvr; ohg jung vf gur yvr nobhg va guvf pnfr? N pnershy ernqvat fubjf gung vg pbapreaf ubj gur ebobg jbhyq nafjre n qverpg dhrfgvba nobhg gur ybpngvba bs Ovgobebhtu. Vs gur gehr ybpngvba bs Ovgobebhtu vf gb gur evtug, n ebobg gung yvrf jbhyq fnl "gb gur yrsg." Vs gur ebobg yvrf nobhg jung vg jbhyq fnl, vg jvyy fnl "gb gur evtug." Guhf gur npghny ybpngvba bs Ovgobebhtu zhfg or gb gur evtug va nal pnfr.

    Fvapr Ovgobebhtu vf gb gur evtug, naq gur frpbaq ebobg qverpgyl pbagenqvpgf guvf, gur frpbaq ebobg zhfg or n yvne. Gurersber gur frpbaq ebobg'f svefg fgngrzrag ("Gung bar'f n yvne") vf snyfr, naq gur svefg ebobg vf n gehgu-gryyre. Guhf gur svefg ebobg'f svefg fgngrzrag ("Jr'ir whfg pbzr sebz Vgrebcbyvf") zhfg or gehr.

  125. It's a long one.. by ZombieRoboNinja · · Score: 1

    But bear with be.

    There is a land populated by a lot of people and ruled by an insane but all-powerful tyrant. One day, that tyrant decides to play a very special game. He sends proclamations all over the land announcing the following upcoming "event":

    "Some time in the future, I will summon one randomly selected peasant to my palace. He will come into my room, where I will be waiting with a pair of dice and a firing squad. I will roll the dice, and if I roll double sixes, he will be shot.

    "If he is NOT shot, however, I will release him, but make him swear not to tell anyone else that he participated in this event. The next day, I will summon TEN new people to my palace, and repeat the procedure for the whole group: one roll of the dice, they all die if it's double-sixes, and they all go free otherwise. If they go free, the next day I summon in a group of 100.

    "The cycle will keep repeating, each iteration with ten times as many subjects as the previous iteration, until I finally shoot someone (or a group of someones)."

    Now, look at this and you'll realize that only about 10% of the people who participate in this experiment will survive. The math doesn't work out exactly, but since each iteration contains ten times as many people as the previous iteration, it's ABOUT that much. For example, if the tyrant finally rolls double-sixes on the fourth iteration of the experiment, 1000 people are killed while 111 people from previous iterations will have gone free.

    On the other hand, it would seem that the people in any given iteration have a 35/36 chance of survival, since there's only a 1/36 chance that the tyrant will roll double-sixes for that group.

    So let's say you live in this country. You get a knock on your door one day and find out you've been summoned to be a part of the current iteration. What is your chance of survival, 35/36 (~97%) or ~10%?

    Does this chance of survival change when you're actually standing before the tyrant and he's about to roll the dice? If so, why?

    (P.S.: If there is one "right" answer to this, I haven't heard it. I heard this puzzle in a philosophy class, and it has something to do with anthropic reasoning, if that's at all helpful.)

    (P.P.S.: Assume that the dictator doesn't run out of people before the experiment is over. Really, this problem is less about the fiddly numbers than the basic probabilistic concepts involved.)

    1. Re:It's a long one.. by Anonymous Coward · · Score: 0

      any given outcome has a certain probability. the chance that 1 person dies is 1/36. the chance that 10 people die is (chance that 1 person lives)*(chance that 10 people die)=35/36*1/36=35/1296. the chance that 10^n people die is 35^n/(36^n+1). sum that over n=1 to inf, you get 1. once youre standing there, your chance of living is always 35/36. the chance of you standing there in the first place is not constant, but actually does depend on the size of the population, so without that number theres no real answer.

    2. Re:It's a long one.. by Adi42 · · Score: 1

      >>> So let's say you live in this country. You get a knock on your door one day and find out you've been summoned to be a part of the current iteration. What is your chance of survival, 35/36 (~97%) or ~10%?

      Depends.

      1) if by chance of survival you meant "survival from the current iteration" then the chance is always 1/36. (no matter how many people participate)

      2) if by chance of survival you meant "survival from the current and next iterations" then the fact "you are shot" can be decomposed in the following disjoint events:
      - either you are shot in the current iteration (probability P1 = 1/36)
      - or, assuming that you escaped for the first iteration (probability 1-1/36 = 35/36), you are shot in the next iteration (probability 1/36). This event has probability P2 = (1-1/36) * 1/36
      - or, assuming that you escaped for the second iteration (probability (1-1/36)), you are shot in the third iteration (probability 1/36). Without this assumption, the probability is (1-1/36)^2 * 1/36 ...
      - In general, assuming that you are being shot after N iterations, you escaped previous (N-1) iterations, therefore the probability is (1-1/36)^(N-1) * 1/36

      Since these events are mutually disjoint, the total probability of being shot in any of these events would be:
      P = P1 + P2 + ... + P_n where N is large enough such that there are not enough people for the next iteration.

      But we have:
      P1 = 1/36
      P2 = (1-1/36) * 1/36
      P3 = (1-1/36)^2 * 1/36 ...
      P_N = (1-1/36)^(N-1) * 1/36

      So, P1 + P2 + ... + Pn = 1/36 * (1 + (1-1/36) + (1-1/36)^2 + ... + (1-1/36)^(N-1)) = 1/36 * (1 - (1-1/36)^N)/(1 - (1-1/36)) = 1 - (1-1/36)^N

      which makes sense, since the negation of this event is "you escaped after N iterations) which has the probbility (1-1/36)^N.

      >>> Does this chance of survival change when you're actually standing before the tyrant and he's about to roll the dice? If so, why?

      No. In the interval of time after being chosen, and before rolling the dice, there are no temporal events that would increase/decrease your probability of survival.

    3. Re:It's a long one.. by ZombieRoboNinja · · Score: 1

      Any given individual is only called up for one iteration. Therefore, if you survive the current iteration, you're safe. It sounds like you're going with the standard 35/36 chance for this. But the fact remains that about 90% of the people who participate in this experiment will die. When you first find out you've been selected, how can you have both a 97% chance to survive and a 10% chance to survive?

    4. Re:It's a long one.. by flandery · · Score: 1

      This is simply an example as to how additional information affects one's estimation of probability. In order to keep the below statments as simple as possible, let's assume that no itterations have happened.

      If all i know is that you will be a part of this experiment, I'd give you ~10% odds to survive.

      If also I knew you were to be a part of the fourth itteration. Id put it at (35/36)^4. (In other words, the odds of reaching a fifth itteration)

      If instead I knew you were to be a part of the current itteration You'd have a 35/36 chance

  126. x + 1 = 2. Find x. by kai.chan · · Score: 1

    nt

    1. Re:x + 1 = 2. Find x. by Anonymous Coward · · Score: 0

      3 (mod 2)

  127. A Monkey and His Balls... by Jerry+Talton · · Score: 1

    This is one of my favorites...

    There's a giant vat with a nozzle attached hanging over a basket. Next to the basket, there's a monkey. Inside the vat is an infinite number of balls (okay, it's a big vat), each labeled with a single natural number (1, 2, 3, ...). It's currently 11:00 AM (or, t = 1 hour to noon).

    At t = 1 / k hour to noon (where k is a natural number) balls 2k and 2k - 1 fall out of the vat and into the basket. At the same instant, the monkey reaches into the basket, grabs ball k, and eats it. So, at 11:00, balls 1 and 2 fall into the basket, and the monkey eats ball 1. At 11:30, balls 3 and 4 fall into the basket, and the monkey reaches in and eats ball 2. This process continues ad infinitum.

    The question, of course, is this: how many balls are in the basket at noon?

    Now, if you've figured out that answer, here's a similar question that's both harder and easier. It's easier in that you're infinitely more likely to guess a correct answer, but harder since you're probably much less likely to be able to prove that it's correct.

    Same problem, same vat, same monkey, same timing, same number of balls, except they're no longer labeled. So, at every t = 1 / k hour to noon, two balls drop into the basket, and the monkey reaches in and eats one ball. Now how many balls are there in the basket at noon?

    I'll link to the solutions later, if nobody figures it out. ;-)

    1. Re:A Monkey and His Balls... by Anonymous Coward · · Score: 0

      Why does it matter whether the balls are labeled?
      Since it is 12:00 when k -> infinity, there will be 2*k balls dropped by noon, and the monkey will have removed half of them. and half of infinity is still infinity. or maybe I've completely missed something.

    2. Re:A Monkey and His Balls... by rubato · · Score: 1

      Well, the answer to the first problem is none, since at some time before noon the monkey eats each ball j, j=1,2....

      In the second problem, we can imagine the balls as being labeled by their order of being dropped into the basket. (Countable choice required.) Then, if the ball the monkey eats is always ball k (at time 12 - 1/k), the number of balls remaining is none (as in the first problem.) On the other hand, the monkey may eat ball k+n (fixed n), so that balls 1,...n remain in the basket at noon. Or the monkey may always eat ball 2k, so that infinitely many balls remain in the basket. So the answer is any cardinal number from 0 to aleph-nought.

      The wording of the problem implies that there is a unique solution, so I think the problem as offered is misleading.

    3. Re:A Monkey and His Balls... by rubato · · Score: 1

      Well, I have to amend that a little. The monkey can't always eat ball k+n, because k+n might not be in the basket yet. However, the monkey can eat ball 2k for k=1,n (leaving n balls in the basket at time 12-1/n), and then chomp up all remaining balls dropped in the basket, as in the first problem.

      So the answer "any cardinal from 0 to aleph-nought" still stands.

    4. Re:A Monkey and His Balls... by Jerry+Talton · · Score: 1

      Good reasoning! I like asking this question of people who haven't had any set theory, but even people who have tend not to see the second answer right away.

  128. Only 1 by Jerry+Smith · · Score: 1

    Just holding the defective lightbulb, and the world revolves around him. *ducks*

    --
    All those moments will be lost in time, like tears in rain. Time to die.
  129. Naked geometry by Harmonious+Botch · · Score: 1

    Given: two concentric circles of different sizes in a plane. There exists a line segment that is tangent to the smaller one and a whose endpoints lie on the larger one. The line segment is 10 units long.

    What is the area between the two circles?

    1. Re:Naked geometry by Anonymous Coward · · Score: 0

      25*pi units?

      Reasoning: the area must be constant no matter how large the inner circle is compared to the outer (otherwise the problem makes no sense). If the inner circle is shrunk so that it approaches a single point, the tangent line approaches the diameter of the outer circle. Now apply the normal formula for the area of a circle minus the area of a point (zero).

    2. Re:Naked geometry by porges · · Score: 1

      Well. I was going to say that no, the situation described fixes both the size of the smaller circle and the larger circle, so you're silly.

      And then I worked it out and got the same answer you did. So, uh, there you have it. (I get an inner circle of area 25*pi and an outer circle of area 50*pi.)

  130. An anecdote by tmerrill · · Score: 2, Funny

    John von Neumann (1903-1957) [Hungarian/US mathematician and scientist] The following problem can be solved either the easy way or the hard way.

    Two trains 200 miles apart are moving toward each other; each one is going at a speed of 50 miles per hour. A fly starting on the front of one of them flies back and forth between them at a rate of 75 miles per hour. It does this until the trains collide and crush the fly to death. What is the total distance the fly has flown?

    The fly actually hits each train an infinite number of times before it gets crushed, and one could solve the problem the hard way with pencil and paper by summing an infinite series of distances. The easy way is as follows:

    Since the trains are 200 miles apart and each train is going 50 miles an hour, it takes 2 hours for the trains to collide. Therefore the fly was flying for two hours. Since the fly was flying at a rate of 75 miles per hour, the fly must have flown 150 miles. That's all there is to it.

    When this problem was posed to John von Neumann, he immediately replied, "150 miles."

    "It is very strange," said the poser, "but nearly everyone tries to sum the infinite series."

    "What do you mean, strange?" asked Von Neumann. "That's how I did it!"

  131. Huge number here by raoul666 · · Score: 1

    http://www.ocf.berkeley.edu/~wwu/riddles/intro.sht ml/

    Has nearly all the ones I've seen so far, plus oodles more. Keeps me distracted for hours on end. Warning: doesn't give solutions, can be frustrating.

    --
    When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl
  132. Logical Interests by droptone · · Score: 1
    Gettier Problem
    A subject S knows that a proposition P is true if, and only if:
    • 1. S believes that P
    • 2. P is true
    • 3. S is evidentially justified in believing that P is true



    Achilles and the Tortoise In the paradox of Achilles and the tortoise, we imagine the Greek hero Achilles in a footrace with the plodding reptile. Because he is so fast a runner, Achilles graciously allows the tortoise a head start of a hundred feet. If we suppose that each racer starts running at some constant speed (one very fast and one very slow), then after some finite time, Achilles will have run a hundred feet, bringing him to the tortoise's starting point; during this time, the tortoise has "run" a (much shorter) distance, say one foot. It will then take Achilles some further period of time to run that distance, during which the tortoise will advance farther; and then another period of time to reach this third point, while the tortoise moves ahead. Thus, whenever Achilles reaches somewhere the tortoise has been, he still has farther to go. Therefore, Zeno says, swift Achilles can never overtake the tortoise. Thus, while common sense and common experience would hold that one runner can catch another, according to the above argument, he cannot; this is the paradox.

    And of course figuring out identity is a fscking nightmare, damn metaphysics and damn Aristotle.
    --
    Every post I make begins with the assumption P=~P.
  133. Re:ANSWER Number of points ... by Mighty_K · · Score: 1

    Given two points in 3-space, there is only one plane that is the perpendicular bisector of the line connecting the points.

  134. Re: trick question by Anonymous Coward · · Score: 0

    The first prisoner should answer yes because they all passed through the room en route to their cells.

  135. Slider Puzzle with a Twist by Anonymous Coward · · Score: 0

    You are given an array of n x n integers. The goal is to end up with an array in which all entries are equal.

    Four kinds of moves are allowed:

          1. rotate a row
          2. rotate a column
          3. add 1 to all entries in a row
          4. add 1 to all entries in a column

    Show that the goal is achievable if and only if the sum of the numbers in the initial configuration is congruent to 0 mod n.

  136. Variation on the Liar's Paradox by dgoodman · · Score: 1

    Yes, this one does have a solution. I got it from my logic professor, one of Quine's students.

    You, the budding cultural anthropologist, have found yourself in yet another sticky situation. You have come across a village by accident during your travels, and the natives have forced you into a situation. Before you are two doors. Between the doors stands a man, and a sign written in your native language. The sign tells you that one door leads to a kingly feast, the other to certain death. You are allowed to ask one and only one yes-or-no question of the man standing there. However, the man either always lies or always tells the truth. Moreover, the man only speaks his own native language (but understands yours!): you know that 'yes' and 'no' are rendered as 'da' and 'na'...but you don't know which is which.

    So. How do you get the kingly feast and avoid certain death? What one question do you ask?

    1. Re:Variation on the Liar's Paradox by TooMuchEspressoGuy · · Score: 1

      I'll take a guess and say that the answer is: "If you were to say that the left (or right) door was the door to the kingly feast, would you be lying?"

      --
      Many Bothans died to bring you this sig.
    2. Re:Variation on the Liar's Paradox by dgoodman · · Score: 1

      To which the man replies "da" (or "na")....sadly, you don't know if this means "yes" or "no". So, good try, but you're still missing something.

      Sadly, I forget the actual answer =( I'll have to look it up tomorrow and post it.

    3. Re:Variation on the Liar's Paradox by Draknek · · Score: 1

      "If I were to ask you whether the left door leads to the kingly feast, would you say da?"

      If he says da, you go left. If he says na, you go right.

      --
      Self-referential sigs do not a humourous poster make.
  137. Re:Fork in the road (solution, rot13) by XFilesFMDS1013 · · Score: 1

    Wow, you're a blockhead. For everyone else, just Google for it.

  138. Project Euler by emandres · · Score: 1

    Here's a whole bunch. They're designed so that they must be solved by computer, but in order to do so you must understand the math behind them.

    --
    The only way to tell the difference between a hamster and a gerbil is that the hamster has more white meat.
  139. The Returning Explorer by Craig+the+Ninja · · Score: 1

    An old riddle runs as follows. An explorer walks one mile due south, turns and walks one mile due east, turns again and walks one mile due north. He finds himself back where he started. He shoots a bear. What color is the bear? The time-honored answer is: "White," because the explorer must have started at the North Pole. But not long ago someone made the discovery that the North Pole is not the only starting point that satisfies the given conditions! Can you think of any other spot on the globe from which one could walk a mile south, a mile east, a mile north and find himself back at his original location?

    --
    There are 10 types of people in the world: those who know binary, and those who don't.
    1. Re:The Returning Explorer by Creepy+Crawler · · Score: 1

      Well... Magnetic North?

      haha, worth a shot.

      --
    2. Re:The Returning Explorer by Mariux · · Score: 0

      **SPOILER**
      **SPOILER**
      **SPOILER**
      At the point near the south pole where the length of the latitude line is one mile (the length you have to go east to end up at the same point)
      **SPOILER**
      **SPOILER**
      **SPOILER**

  140. Re:Math and science are obsolete by Krid(O'Caign) · · Score: 2, Insightful

    Oh, yes, the 'Laffer curve' is real to the extent that 0% of any number is 0, and 100% of 0 is also 0. However, arguments based on it presume that we are ABOVE the ideal tax level - a claim for which there is no supporting evidence. http://en.wikipedia.org/wiki/Laffer_curve

  141. Guards and Door of Life by localhost00 · · Score: 1

    I don't know if this or a variation has been posted yet, so at the risk of being redundant, (hey, at least the information that it is my favorite puzzle would be new) here goes nothing:

    Let there be two doors - a door of life, and a door of death. They are not marked. You do not know which one is which. In front of each door is a guard. One always tells the truth, while the other always lies. Again, you do not know which one is which. You are permitted to ask only one guard one question.

    Which question can you ask that will guarantee that you can determine which door is the door of life?

    --

    Calling atheism and agnosticism a religion is like calling bald a hair color.

    1. Re:Guards and Door of Life by Nick+Harkin · · Score: 1

      "If I asked the other guard the way to the door of life, what would he say?"

      And then choose the other door.

  142. Re:Math and science are obsolete by Simon+for+$1 · · Score: 1

    Yeah, I, for one, totally see your point. Everyone knows how much the wealthy elite feel punished at the mere sight of taxes. However they seem to have ways around the problem other than lowering productivity, such as creative accounting and political connections. It's the middle classes and below that governments know they can tax without complaint, with the occasional tax threshold increase that barely keeps up with inflation.

    Here in Australia, Howard is a true genius at these games, convincing the masses that what is good for Australia is good for them and that tax cuts to the wealthy (and other less benign measures) are good for Australia. This offsets the Laffer curve with a large dose of unlikely optimism, a bubble that must eventually collapse as its premises are false.

  143. RTFP by brian0918 · · Score: 1

    Again:

    "Since I first locked you and the other prisoners into your rooms, have all of you been in this room yet?"

  144. Algebra Problem... by MadWicKdWire · · Score: 1

    This one makes you think... answer is simple!

    x+1=x-1

    Solve for x...

    --
    Sig (appended to the end of comments you post, 120 chars)... oops
    1. Re:Algebra Problem... by jZnat · · Score: 1

      1 != -1
      Uh oh, owned by simple algebra.

      --
      'Yes, firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.'
    2. Re:Algebra Problem... by MadWicKdWire · · Score: 1

      You would not know HOW many times someone has been like, "Yah! I know the answer! it's 1!" Some even say 0. Ugh...

      --
      Sig (appended to the end of comments you post, 120 chars)... oops
    3. Re:Algebra Problem... by joss · · Score: 1

      simple: x = 1/0 ;)

      --
      http://rareformnewmedia.com/
  145. Connect the dots by Spetiam · · Score: 1

    Connect all nine dots using four straight lines drawn without lifting the pen from the paper:

    . . .
    . . .
    . . .

    1. Re:Connect the dots by wildsurf · · Score: 1

      How thick can the line be? If the pen tip is more than an inch wide, you only need to draw one line.

      --
      Weeks of coding saves hours of planning.
    2. Re:Connect the dots by Anonymous Coward · · Score: 0

      I think the more hintful question would be how thick is the paper?

    3. Re:Connect the dots by Spetiam · · Score: 1

      Heh. Just your standard ballpoint pen. This puzzle is scalable, and it doesn't involve folding the paper.

    4. Re:Connect the dots by Spetiam · · Score: 1

      Nope, doesn't involve folding the paper.

    5. Re:Connect the dots by RichardX · · Score: 1

      Did it! ..only problem is now my monitor has marker lines all over it :(

      --
      Curiosity was framed. Ignorance killed the cat.
    6. Re:Connect the dots by HuguesT · · Score: 1

      ASCII art:

      Think out of the box...

        o----o----o--.
        |\          /
        |  \       /
        o    o    o
        |     \ /
        |      /\
        o    o    o
        |   /
        |  /
        | /
        .

  146. Answer to the sample question... by Anonymous Coward · · Score: 0

    Stand all the coins on edge.

  147. bridge by ageforce_ · · Score: 1

    one of my favorite riddles:
    the bridge: 4 men need to cross a bridge in the dark. The bridge can only take two persons at once, and to cross they need a light. The group only has one light, and after two persons crossed one of them need to return (if somebody rests on the other side) to bring the light back. The men are at different shapes, and it takes different times to cross the bridge for each of them.
    1: 10min
    2: 5min
    3: 2min
    4: 1min
    If two men cross together, the faster one has to adjust its speed to the slower one: if #1 and #2 cross together it takes them 10min. Question: How long does it take them to cross the bridge. Bad example (as it goes faster):
    1 + 4 -> 10min
    4 5min
    4 2min
    --------------------
                              19min

    It's possible to be faster than that (just by changing the order. A bruteforce algorithm would find the solution).

    Solution (rot13):
    guerr + sbhe
    guerr
    bar + gjb
    sbhe
    guerr + sbhe
    friragrra zva

  148. Re:Math and science are obsolete by LeonGeeste · · Score: 1

    No, the validity of the Laffer curve itself does not depend on where we are. It is true, of course, that whether lowering taxes now will raise revenues, but first people like you have to stop scoffing at the novel idea that taxes can actually hurt the economy to the point of diminishing returns. Until that happens, debate about where we are on the curve can't proceed.

    A little historical note: monarchs, being able to personally pocket the tax revenue, and thus historically had very strong incentives to maximize tax revenue, generally taxed about 8-15% of GDP according to most estimates. Just something to think about.

    --
    Rank my idea: http://www.sinceslicedbread.com/node/531
  149. Die Hard by zerofoo · · Score: 1

    Wasn't this in the movie Die Hard?

    -ted

    1. Re:Die Hard by BTWR · · Score: 1

      yup. die hard 3 - die hard w/ a vengence

  150. Simple Solution! by Anonymous Coward · · Score: 0

    "Here's a sample to consider: You're in a dark room with 50 quarters, 18 of which are heads up. You are allowed to move around the coins or flip some or all of them, if you wish. Problem is, it's too dark to tell what you're moving or flipping (no, you can't figure it out by touch either). Your job is to split the coins into two groups, each of which has the same number of heads up coins. How do you accomplish this?"

    I turn the light on!

  151. Re:Math and science are obsolete by Anonymous Coward · · Score: 0

    So where on the curve is your economy at the moment, below or above the local maximum? A point rather important to your theory that you seem to have left out.

    this page has a graph which suggests that most countries lie below the maximum on the curve. Although to be fair, it is lacking in data.

  152. Elementary by evilmrhenry · · Score: 1

    By simply placing all coins on edge, you can be assured that both piles have exactly 0 heads.

  153. Re:Math and science are obsolete by LeonGeeste · · Score: 2, Insightful

    You're actually making a better point than your toxic attitude would otherwise suggest. The rich can much more easily avoid taxes, legally or otherwise, than the average person, so raising their taxes really won't help revenue. (Also, shoving the tax load onto them removes any popular support for restraining government, but that's another issue.) If the rich see that one nation's attitude toward them has changed, they all just revise all future plans about investment. In the extreme case, since the rich, being rich, really don't need to work, if their taxes are too high, they just "consume" more leisure. You could, of course, just seize all their assets, but don't expect any more geese to be laying golden eggs where you live anytime soon.

    I know you hate the rich and all, I'm just talking about the practical consequences of trying to milk more revenues out of them.

    Plus, the premises of the argument behind the Laffer curve really are true. Again, you might not be past a Laffer point, but make no mistake there is a Laffer point. Denying this just makes wise people revise their estimation of the merit of your statements downward.

    --
    Rank my idea: http://www.sinceslicedbread.com/node/531
  154. ANSWER: Oops, second times a charm... by Mighty_K · · Score: 1

    I amend my answer, and believe that it can be done with one point. The plane would contain the point, and be perpendicular to the vector pointing from the origin to that point. Good puzzle, and deceptive!

    1. Re: ANSWER: Oops, second times a charm... by sjampoo · · Score: 1

      While i do believe it should be possible with just one point i dont think your solution is the correct one. You won't be able to describe planes that intersect the O-point (0,0,0). Maybe better luck next time ;)

    2. Re:ANSWER: Oops, second times a charm... by Anonymous Coward · · Score: 0

      I think you were right the first time because your second solution uses the origin as a second point. For example, say that the point you are given is at the origin. Could you still define a vector from the origin to itself?

    3. Re: ANSWER: Oops, second times a charm... by frakir · · Score: 1

      Easy. Just define your function returning a plane shifted by some constant towards (0,0,0).

  155. A quickie by squidfood · · Score: 1
    One of my favorite quickies:

    How quickly can you write out the full expansion for the following factorization:
    (a-x)(b-x)(c-x)...(z-x)

    1. Re:A quickie by osgeek · · Score: 1

      ANSWER in ROT13:

      Vg'f mreb, fvapr (k-k) rdhnyf mreb naq mreb gvzrf nyy gur bgure snpgbef rdhnyf mreb.

  156. Favorite Riddle Game: notpron by Obiwan+Kenobi · · Score: 1

    Found at: notpron.com

    This is a series of riddles, with no payoff but the joy in moving on to the next level. Me and my friends (and some of my geek cousins) have found ourselves at times obsessed with this game. I've reached Level 33 and have been waiting for my friends to catch up ever since.

    You'd be surprised how good these riddles can be. Ever need to edit pictures and look closer for clues? How about identifying musical notes? Having to decode Hex and ASCII values, image manipulation, even hidden JPG data? It's all inside.

    Give it a try, I think the /. crowd will love it. It has a ton of levels, but it is not in the finishing of notpron which is the payoff, but the journey. After playing it for awhile you'll grow addicted to the rush of seeing the new level pop up and being absolutely stumped as to how to finish it.

    Note: There are copycats to the original, including the recent frvade. I've played this one but definitely prefer notpron. YMMV. Good luck, riddlers.

  157. sample question by csplinter · · Score: 0
    "Here's a sample to consider: You're in a dark room with 50 quarters, 18 of which are heads up. You are allowed to move around the coins or flip some or all of them, if you wish. Problem is, it's too dark to tell what you're moving or flipping (no, you can't figure it out by touch either). Your job is to split the coins into two groups, each of which has the same number of heads up coins. How do you accomplish this?"
    uhhh turn on the lights?
  158. Mine... by millennial · · Score: 1

    My favorite math riddle:
    There are 10 types of people in the world. What are they? /joke

    --
    I am scientifically inaccurate.
  159. Re:Algebraic proof: 2=1 by B3ryllium · · Score: 1

    Sure it can.

    But only if y = 0.

  160. Girls = Time x Money by Anonymous Coward · · Score: 0

    First we state that girls require time and money :-

      Girls = Time x Money

    And we know that time is money :-

      Time = Money

    Therefore :-

      Girls = Money x Money

      Girls = (Money)^2

    And because 'money is the root of all evil'

      Girls = (Evil)^2
      Girls = the root of all Evil

  161. Three people at a hotel. by Coleco · · Score: 1

    Three people go to hotel. The hotel is $30 so they each pay $10. They're in their room and the manager remembers that actually the price is $25, not $30, so he gives the bellboy $5 and tells him to return it to the three people. The bellboy is lazy and doesn't feel like doing math in his head so he pockets $2 and gives a dollar each back to the three people. So now each of the three people paid $9.. $9*3=$27 + $2 that the bellboy pocketed = $29.

    Where did the other dollar go?

    It's stupid I know.

    1. Re:Three people at a hotel. by TommydCat · · Score: 1

      I bet the IRS loves you...

      The $2 is already included in the $27.. the difference is the $3 that was refunded.

      --
      This comment does not necessarily represent the views and opinions of the author.
  162. well... by Anonymous Coward · · Score: 0

    paid
    I'm
    worked

  163. 5 friends selling wheat by gaurzilla · · Score: 1

    There are 5 friends Each has the number of dollars/other currency that corresponds to their friend number, i.e. ... friend #1 has $1 friend #2 has $2 . . friend $5 has $5 So now, these blokes want to get into business, but they want to start off on equal footing. Yet, being the farmer-descended Harvard grads that they all are, they want to get to an 'equal footing' through a business plan -- simply exchanging money amongst themselves would be a gross misuse of their collective intellect. One of these farm boys suggests that they get into wheat sales. There's a weekly Farmer's Market that is organized every sunday in the parking lot of the local super-mall, and there are plenty of wheat-gorging locals in the neighbourhood. If they wait sufficiently late into the evening to bring out their goods, they can name any price since most of the other retailers should have run out of quality wheat. Besides, he knows a place where they can get wheat @ $1 per 20 kilos, and they can make a pretty decent profit off of it. The others like the idea, and just for kicks, they set up the following rules. 1. They will sell their wheat till it's all gone. Obviously. 2. They will all sell their wheat together, starting on the same weekend. 3. They must all finish selling off the last quantities of their wheat on the same weekend, no sooner no later. 4. Individual amounts sold per sunday are irrelevant, but must be non-zero. None shall abstain from selling on any weekend. 5. Each weekend they will decide on one selling rate and stick to it. All quantities of wheat sold on that weekend must conform to the rate they have decided upon. 6. On the last day, their collective earnings over all the weekends must add up to be the same i.e. the original richest kid and the original poorest kid (and all the rest) must end up with the same amount of money in-hand. On the first sunday, based on the money they had in-hand, each starts out with the following amount of wheat... friend #1 has 20 kg friend #2 has 40 kg friend #3 has 60 kg friend #4 has 80 kg friend #5 has 100 kg In order to fulfil their objective, how many weekends will they take, how much wheat will each of them sell on each weekend, and what rate will they decide for each of the weekends that they sell their wares?

  164. Re:Fork in the road (solution, rot13) by another+blockhead · · Score: 1

    The post was a reply to spyinnzus's question (about the robot variant of the puzzle). If you found the original page using Google, you might enjoy following the links from there to some of my other puzzles.

  165. Helium by TheLetterPsy · · Score: 1

    Exactly solve the Schrodinger equation for Helium. Now _that's_ a riddle!!

  166. Two doors, Two computers, and a Bomb by ELiTe185 · · Score: 1
    I've seen variants listed above, but this is the harder (and well, true) version.
    You are stuck in a room that has only 2 doors and 2 computers. One computer always tells the truth, and one computer always lies, but you do not know which computer is which. You can only ask one of the two computers a YES or NO question. If one door sets of a bomb, and the other door leads to freedom, what question do you ask that will always allow you to safely exit the room?

    Please ROT13 your answers. http://www.rot13.com/index.php
    --
    -ELiTe185
    1. Re:Two doors, Two computers, and a Bomb by Anonymous Coward · · Score: 0

      "jvyy gur bgure pbzchgre gryy zr guvf qbbe vf fnsr?": vs lrf, tb guebhtu gur bgure qbbe...

    2. Re:Two doors, Two computers, and a Bomb by kyleking · · Score: 1

      Gur dhrfgvba nfxrq jbhyq or: Vs V nfx lbh vs Qbbe N vf gur rfpncr, jvyy lbhe nafjre or lrf be ab?

    3. Re:Two doors, Two computers, and a Bomb by ELiTe185 · · Score: 1

      Sorry not quite.

      My comment is ROT13ed:
      Vs Qbbe N vf gur fnsr qbbe, naq lbh ner nfxvat gur gehgu pbzchgre, gura vg jvyy gryy lbh "lrf." Vs qbbe N vf gur fnsr qbbe, naq lbh nfx gur yvr pbzchgre, vg jvyy gryy lbh "ab." Vs qbbe O vf gur obzo qbbe, naq lbh ner nfxvat gur gehgu pbzchgre, gura vg jvy gryy lbh "ab." Vs qbbe O vf gur obzo qbbe, naq lbh ner nfxvat gur yvr pbzchgre, gura vg jvy gryy lbh "lrf." fvapr lbh qba'g xabj juvpu pbzchgre lbh ner nfxvat, be juvpu qbbe vfjuvpu, guvf dhrfgvba jbhyq abg cebqhpr gur evtug nafjre.

      --
      -ELiTe185
    4. Re:Two doors, Two computers, and a Bomb by ELiTe185 · · Score: 1

      ROT13ed:

      Pbeerpg, naq vs gur nafjre vf ab, gura gnxr gung qbbe. Irel tbbq. Gur nafjre gung V unq orra gnhtug jnf "Jvyy gur bgure pbzchgre gryy zr vs gurer vf n obzo oruvaq guvf qbbe?" ohg nfxvat nohg gur fnsrgl nyfb jbexf.

      --
      -ELiTe185
  167. Time Travel by Tablizer · · Score: 1

    The whole concept of time travel to prior times is mind-bending, such as the "kill your father as a child" paradox. How can one exist if their father died before he was old enough to have fathered you?

    1. Re:Time Travel by Vegeta99 · · Score: 1

      But why would our logic not fail when something comes up like this. It seems to me that one rule we've started to lay down is that time is the one thing that will always be trucking forward. We can slow it down but not stop it - hence why flying a clock in a fast-ass plane is slightly slower than one that's stationary - but we can't reverse it. Of course we hit a dead-end synaptic wall when we think like that.

    2. Re:Time Travel by Tablizer · · Score: 1

      Physicists have not ruled out traveling back in time.

    3. Re:Time Travel by cdn-programmer · · Score: 1

      Oh - this is easy. Because a lot of women cheat! Some studies put the cheat rate over 20% in fact!

    4. Re:Time Travel by Anonymous Coward · · Score: 0

      What if you were suppose to go back in time to kill your father and do your mother. By doing so, may have some ramifacations not yet seen, but helps you out in the future. This causes you to help stop some alien race from taking over the world.

    5. Re:Time Travel by meringuoid · · Score: 1
      The whole concept of time travel to prior times is mind-bending, such as the "kill your father as a child" paradox.

      Here's a possible solution.

      In 2005, I complete my time machine. I go back in time to, shall we say, 1935. I kill my grandfather. Very well: now the twentieth century continues, minus Grandad. 2005 arrives, and I'm not in it. No time machine is built. Nobody goes back in time. In 1935, Grandad survives.

      Paradox? No. Again, it's 1935, and the twentieth century continues with Grandad in it. But now the fun starts.

      Uncertainty's a real troublemaker. Why should the twentieth century work the same way twice? Maybe Hitler wins; that screws everything up nicely. Maybe when Grandad leaves Ireland he goes to America, not England. Maybe the wrong sperm wins the race and my father is never born. Maybe the crucial microchip I need for my time machine never quite works properly, or never gets invented in the first place... There are countless ways that the intervening history might have gone in which the time machine was never built and the paradox never arose.

      Result: if some idiot goes back in time and does something paradoxical, time loops around until it hits on a consistent history and can then settle. Attempting the murder of your grandfather won't hurt him, but the odds are good that you get edited out of continuity...

      --
      Real Daleks don't climb stairs - they level the building.
  168. Re:The King and the Chalice - Answer?? by digital-madman · · Score: 0

    The answer is always yes...

    since they all had to enter the room to be locked in. they were all there, at a time before hand... i think.... i'm tired...bed time....brain hurt.

    --
    A bullet sounds the same in every language. So stick a fucking sock in it...
  169. Re:Math and science are obsolete by Pollardito · · Score: 1
    A little historical note: monarchs, being able to personally pocket the tax revenue, and thus historically had very strong incentives to maximize tax revenue, generally taxed about 8-15% of GDP according to most estimates. Just something to think about.
    that doesn't really put anything in perspective though. to get the full picture, you'd have to see how much the monarchs were spending to support their citizens (monarchs didn't offer a lot of social services), any non-tax income (they tended to own a lot of the land that they lived on, is the money they made off the farming of that land included in that figure?), and their own personal risk from their own people rising up if the taxes were too high
  170. Buckets of water by doormat · · Score: 1

    I remember one from fourth grade. It went something like...

    You need 7 gallons of water, but you only have a 5 gallon and 3 gallon bucket, and a spigot from which to fill them.

    Rules: You can not partially fill buckets from the spigot (eg. you cant fill the 3 gallon bucket up 2/3rds the way up).

    The solution was having to pour from 5gal bucket into the 3, discard the 3, pour the 2 gallons left into the 3 gallon bucket and then fill the 5 and you have 7.

    --
    The Doormat

    If you're not outraged, then you're not paying attention.
  171. Re:5 friends selling wheat (REFORMATTED) by gaurzilla · · Score: 1

    Just to make it more legible.

    ========

    There are 5 friends
    Each has the number of dollars/other currency that corresponds to their friend
    number, i.e. ...
    friend #1 has $1
    friend #2 has $2
    .
    .
    friend $5 has $5

    So now, these blokes want to get into business, but they want to start
    off on equal footing. Yet, being the farmer-descended harvard grads
    that they all are, they want to get to an 'equal footing' through a
    business plan -- simply exchanging money amongst themselves would be a
    gross misuse of their collective intellect.

    One of these farm boys suggests that they get into wheat sales.
    There's a weekly Farmer's Market that is organized every sunday in the
    parking lot of the local super-mall, and there are plenty of
    wheat-gorging locals in the neighbourhood. If they wait sufficiently
    late into the evening to bring out their goods, they can name any
    price since most of the other retailers should have run out of quality
    wheat. Besides, he knows a place where they can get wheat @ $1 per 20
    kilos, and they can make a pretty decent profit off of it.

    The others like the idea, and just for kicks, they set up the following rules.
    1. They will sell their wheat till it's all gone. Obviously.
    2. They will all sell their wheat together, starting on the same weekend.
    3. They must all finish selling off the last quantities of their wheat
    on the same weekend, no sooner no later.
    4. Individual amounts sold per sunday are irrelevant, but must be
    non-zero. None shall abstain from selling on any weekend.
    5. Each weekend they will decide on one selling rate and stick to it.
    All quantities of wheat sold on that weekend must conform to the rate
    they have decided upon.
    6. On the last day, their collective earnings over all the weekends
    must add up to be the same i.e. the original richest kid and the
    original poorest kid (and all the rest) must end up with the same
    amount of money in-hand.

    On the first sunday, based on the money they had in-hand, each starts
    out with the following amount of wheat...
    friend #1 has 20 kg
    friend #2 has 40 kg
    friend #3 has 60 kg
    friend #4 has 80 kg
    friend #5 has 100 kg

    In order to fulfil their objective, how many weekends will they take,
    how much wheat will each of them sell on each weekend, and what rate
    will they decide for each of the weekends that they sell their wares?

  172. red hats, green hats by wilhelmtell · · Score: 1

    A bunch of people standing outside a room in a random order wear each either a red or a green hat. They all don't like each other (i.e., they don't talk to each other or communicate in any way), and each person can't see what hat he himself wears. They managed to stand inside the room in a line, so that one side of the line is the people with the green hat, and the other is the people with the red hat: GGRRRRRGRRGGGGRGGGRR --> GGGGGGGGGGRRRRRRRRRR How did they do that?

  173. The Monte Hall problem by Anonymous Coward · · Score: 0
  174. Re:Math and science are obsolete by shanen · · Score: 1
    The Laffer Curve is a laugh and has been refuted--but rational economic theory is not part of this math game. The zero tax end is exactly what BushCo is pushing for on the theory that the government is best which governs not at all.

    New Orleans is an excellent example of how it works in practice. Dubya and his f[r]iends "saved" half a billion that was needed for flood prevention, and now the minimum estimates of the repairs is around a mere 200 billion dollars. How's that for a math puzzle?

    Anyway, my larger point is that we're just fiddling while New Orleans sinks. Real scientists might be amused by mathematical puzzles, but America won't have many of those in a few more years.

    --
    Freedom = (Meaningful - Coerced) Choice != (Speech | Beer^2), and sad sock puppets' bad mods avail them naught.
  175. Re:Math and science are obsolete by max+born · · Score: 2, Informative

    Bush doesn't initiate tax changes. They come from Congress and have to start in the House of Reps as set forth in Article I, section 7 of the US Constitution. You might wanna read Article II aswell, the limited powers of the presidency, U.S. Constitution.

    The way these values are determined is by equating a function like f(taxation) to total GNP or GDP and graphing the results then finding the highest point on a curve where GNP+f(taxation) is a max. Historically large taxes tend to reduce the GDP and small taxes are insuffient for the government to perform its duties as required by the constitution.

    The US currently collects about 3 trillion dollars in taxes every year.

    How they do it and what their reasoning is is all freely available online

    Maybe you can figure out where they're going wrong and run for office.

  176. Finding 1solution in O((2n)!k!) by Oestergaard · · Score: 1

    This must be my favourite personal quest - because it was difficult, because I found a solution, and because that solution beat the crap out of some research groups rather respected solution (in a very sepcific use case though, but still).

    The problem is to order rows and columns in a matrix so that a following QR factorization will be most efficient, computationally (the result of the factorization will not change with the ordering, but the amount of computational work changes as zeros and non-zeros are re-ordered by means of reordering rows or columns).

    Tiny presentation of the optimization problem.

    Page with pretty pictures of the original and re-ordered systems (a solution found by my optimizer).

    And of course, you could just go ahead and read the whole deal - uh, did I mention the software is open source? :)

  177. Re:Math and science are obsolete by Simon+for+$1 · · Score: 1

    "The rich can much more easily avoid taxes, legally or otherwise, than the average person, so raising their taxes really won't help revenue." That's the worst argument for allowing the rich to be less taxed than the poor I have ever heard! The wealthy should be allowed out of taxes because the government is too lazy to make sure they aren't getting out of them regardless?? Your attitude leaves me incredulous! How about the government make an unpopular move and crack down on white collar crime? This would certainly increase revenue by a large amount as white collar crime is high among the top drains on the government budget. The government certainly does not seem worried about the effects of a crack down on welfare cheats, so why not the wealthy variant? "I know you hate the rich and all, I'm just talking about the practical consequences of trying to milk more revenues out of them." One wonders if it is in fact you who is dismissive of the poor, your attitude toward them in your posts here certainly is.

  178. Re:Math and science are obsolete by Anonymous Coward · · Score: 0

    Some pictures of a real laffer curve.

  179. Re:Algebraic proof: 2=1 by hswerdfe · · Score: 1

    obviously one step is not valid

    --
    --meh--
  180. Re:Math and science are obsolete by LeonGeeste · · Score: 1

    The Laffer Curve is a laugh and has been refuted

    REALLY? Fundamental mathematical theorems have been overturned? You mean, it's possible for a continuous function to start at zero, increase, and then reach zero again without ever decreasing? Looks like I need to start hittin' the books again! Got a link to where this is established?

    --
    Rank my idea: http://www.sinceslicedbread.com/node/531
  181. Re:Math and science are obsolete by Simon+for+$1 · · Score: 1

    Here goes again with plain text formatting...

    "The rich can much more easily avoid taxes, legally or otherwise, than the average person, so raising their taxes really won't help revenue."

    That's the worst argument for allowing the rich to be less taxed than the poor I have ever heard! The wealthy should be allowed out of taxes because the government is too lazy to make sure they aren't getting out of them regardless?? Your attitude leaves me incredulous!

    How about the government make an unpopular move and crack down on white collar crime? This would certainly increase revenue by a large amount as white collar crime is high among the top drains on the government budget. The government certainly does not seem worried about the effects of a crack down on welfare cheats, so why not the wealthy variant?

    "I know you hate the rich and all, I'm just talking about the practical consequences of trying to milk more revenues out of them."

    One wonders if it is in fact you who is dismissive of the poor, your attitude toward them in your posts here certainly is.

  182. ANSWER: Re:Number of points required to define ... by ottffssent · · Score: 1

    Two.

    The function takes two points, a and b. Return the plane which contains a and which has the line between a and b normal to it.

    Moving both a and b allows the plane to be located anywhere. Moving b while maintaining a allows the plane to be rotated in any way.

  183. Coins problem by Foole · · Score: 1

    The coins are on fire?

    --
    This is not a turnip.
  184. Re: ANSWER The King and the Chalice by JrbM689 · · Score: 0

    There is only one possible solution, with two potential end results:
    Pick a random prisoner who has chosen "Yes."
    End result:
    1: The prisoner is correct and all prisoners will be let free.
    2: The prisoner is incorrect but hits the king over the head with the chalice and frees all the prisoners.

  185. Re:Math and science are obsolete by Anonymous Coward · · Score: 0

    Raising taxes often boosts the economy. And until you folks get over the idea that lower taxes stimulates the long term health of the economy this will never happen.

  186. Re:Math and science are obsolete by 246o1 · · Score: 1

    "initiate" is such a tricky word. for instance if he were to run on a platform of tax reduction and order his bitches in the house to write a bill that lowered taxes, would that not be initiating them?

    --
    Although the moon is smaller than the earth, it is farther away.
  187. triangle problem by bryandjones · · Score: 1

    Start with a 80, 80, 20 isosceles triangle. Starting from each large angle draw a line connecting with the opposite side. One line will make a 60 degree angle with the small side and the other will make a 70 degree angle with the small side. Now draw a line from each intersection of those lines with their sides to each other. The problem is simple. Find all the angles. It looks deceptively simple but it's really difficult.

  188. Re:The King and the Chalice - Answer?? by brian0918 · · Score: 1

    " The answer is always yes..."

    You're the 3rd person to suggest that. You might want to try reading the problem again.

  189. Re:The King and the Chalice -Decentralized - by admsteiner · · Score: 1

    How about we decentralize the leader. In other words, the King *has* to call on everyone an arbitrary number of times. Who cares who the leader is? Make everyone the leader. You always flip the same way, that way being the way you flipped the chalice the first time you went into the room. Since k n*k, as long as someone has flipped it n*k +1 times, he knows that every other prisoner has gone in (mind's a bit mushy, so that math may be off). The only problem left then is that the King might decide to call everyone in once, in which case they'll never go free....but its closer...

  190. Re:easy zero by tgv · · Score: 2, Informative

    Yes, it is undefined and you don't need a calculator. Actually, you shouldn't. But the bottom line is that it approaches 1, in the limit: lim(x->0) x^0 = 1, and for x^x this holds as well; you can try both on a calculator with very small values for x, if you want. In some "practical" problems, such as fitting a polynomial on a set of points, you really need 0^0 to be 1.

    However, if you're going to try the other limit, lim(x->0) 0^x, the answer would seem to be 0 (but since this function is not continuous, there is no need to make it equal 0).

    The theoretical answer? it depends on the function you're looking at.

    The pratical answer? Try 1.

  191. Not a Riddle by 246o1 · · Score: 1

    There's nothing clever at all about that, it's just your basic 5th-8th grade, Iowa Proficiency Exam (they still have those?) question. Riddles should be clever. Your "riddle" was as clever as: what's two plus two?

    --
    Although the moon is smaller than the earth, it is farther away.
    1. Re:Not a Riddle by themoodykid · · Score: 1

      A better algebra problem is the one I remember from grade 6. It went something like: a farmer sends his son to the barn to count the number of pigs and chickens. The son comes back and says he counted 20 heads and 50 feet. How many pigs and chickens were in the barn?

      It was a simple problem, but our teacher made it interesting by mentioning that he had heard of a kid who solved it by imagining all the pigs standing up on their hind legs and then counting how many feet were still on the ground. Subtract that number from 50 to figure out how many feet are in the air. All those feet belong to pigs, with each pig having two legs in the air, so you just divide that number by two to figure out how many pigs there are. It's still algebra, but a lot more interesting and meaningful this way than just working out the solution to 2*c + 4*p = 50, c+p=20.

  192. Three Salesmen by Anonymous Coward · · Score: 1, Interesting

    Three salesmen are late to town for a conference. Eventually late that night they find a hotel with one room left. (It's a room for three). The bell boy says "The room is $30, please". The salsemen are delighted with such a reasonable rate and each fork over $10.

    When the bell boy gives the cash to the night manager, the manager says "No, no, no no. This is not right - The room is only $25 dollars - not $30. Here are five $1 notes. Please give them back to the guests".

    On the way back back, the bell boy thinks, "I have five dollars and three guests. I can't divide this evenly. So I'll just keep two dollars for myself."

    The salesmen take their cash and turn in for the night.

    So.......
    Each Saleman has effectively paid nine dollars (ten dollars minus one returned).
    The bell boy has two dollars in his back pocket.
    $9 + $9 + $9 + $2 = $29.

    Where has the last dollar gone???

    Suck on that, my fellow brains-on-stilts.
    Heh heh heh.

    1. Re:Three Salesmen by Enti · · Score: 2, Informative

      I think the answer has to deal with the math being misleading. The value of $9 is provided to stump the reader, as it really doesn't pertain to the original cost of the room in the way suggested (9+9+9+2 != 30). Instead, 9+9+9 resembles what the men end up paying for the room (27), but the total is expected to be 25. The real question then becomes, "Who pocketed the extra two dollars?" (9+9+9-2 = 25). In the end, it seems to be just a matter of the logic problem playing off of misplaced signs (+/-).

      --
      In these days, bleeps and bloops mean something more
    2. Re:Three Salesmen by Metasquares · · Score: 2, Informative

      They each pay $10 when the room is $30. The room's price drops to $25, so they're each given $1 back, bringing their total to $27. The bellhop keeps the other $2 that would have brought their total down to $25. The $5 is still there, as $1 each for 3 people + $2 for the bellhop = $5. The total amount does not need to equal $30 after the price changes; it needs to equal $25.

    3. Re:Three Salesmen by Payday_Jones · · Score: 1

      I heard this problem years ago and struggled with the solution. I think, fundimentally, everyone who provides a feasible answer too this problem tries to break down the math and look at it from different perspectives to provide proof. The thing that has always troubled me is that there is no way to preclude the facts from this. The fact is, each salesman initially lays out $10. Thus there is $30 in existence. Fact 2, each man recieves $1 back in to their pockets. $9.00 x 3 = $27. Fact 3, the bellhop has 2 dollars in his pocket. $27 + $2 = $29. Looking at this in any manner of math you want, it is indisputable that there was initially $30 and one dollar seems to have dissapeared. And to Metasquares .... Maybe it's some sort of slight of hand trick that is being used mentally, but why wouldn't the total need to be $30? initially there is 30$ in play, so after all transactions are added together the 2nd time, why don't all $30 dollars need to be accounted for?

      --
      "God is a comedian playing to an audience too scared to laugh"
    4. Re:Three Salesmen by Anonymous Coward · · Score: 0

      This question is just a matter of semantics. Suppose you ordered a pizza for $15, paid $20, and received $5 in return. You wouldn't say I started with $20 and paid $15 so what happened to the extra $5? You would say I paid $15 and received $5 which totals to the original $20. In other words you would add what you paid and the change in order to get the original total.

      So in the salesman problem you should add the $9 that each of them paid for the room, plus the $2 the bellman kept, *plus* the $3 in change that each man received. This totals to $32. So the real question should be, where did the extra $2 come from? And the answer is that it is incorrect to refer to the $9 as the amount each person paid for the room since this $9 also include the unknow "tip" to the bellhop.

      The $9 really should be *defined* as the amount each man paid for the room and the bellhop's tip. Consequently the bellhop's tip gets counted twice in the original wording of this problem. Hence the extra $2.

      I think it is the double mistake of not counting the change and incorrectly defining the $9 that makes this problem difficult. I once heard this problem from an old timer who told me that this was the only problem that did not obey "the reverse subtraction property" of mathematics or something like that.

      In those situations I find it best to just say "Hmmmm" and nod my head.

    5. Re:Three Salesmen by Satan's_Tool · · Score: 1

      So, if the room cost $30 but then they get a refund of $5. Then the cost of the room is $25.
      $25 / 3 = $8.33
      $3 returned
      $2 stolen by bellboy.

      So, each person didn't pay $9, they paid $8.33 to the cost of the room even though they each donated $9 to the pot.

      $30 = (8.33 * 3) + 3 + 2 = $29.99

      So, in monetary terms only a penny is really missing.

      --
      Yes, I'm an agent of Satan, but my duties are largely ceremonial.
    6. Re:Three Salesmen by mabraham · · Score: 1
      The fact is, each salesman initially lays out $10. Thus there is $30 in existence.

      Yup

      Fact 2, each man recieves $1 back in to their pockets. $9.00 x 3 = $27.

      Yup

      Fact 3, the bellhop has 2 dollars in his pocket.

      Yup

      $27 + $2 = $29.

      Yup, but irrelevant.

      Looking at this in any manner of math you want, it is indisputable that there was initially $30 and one dollar seems to have dissapeared.

      I dispute this. The hotel has kept $25, the men have kept $1 and the bellboy has kept $2. Total is $30.

      The other way to look at this is that the men paid $9 each for the room, and the bellboy paid -$2 for the room, which when added, totals $25 which is the cost of the room.

      The trick is that 27+2 is irrelevant - 27-2 is relevant.

    7. Re:Three Salesmen by Anonymous Coward · · Score: 0

      Well, one problem is that the $2 in the bellhop's pocket is part of the money that the men paid, so the 27+2=29 counts that twice. There are 2 concepts being improperly combined here: The location of each dollar, and the amount each person paid.

      Location of the $30:
      25 to the hotel, 2 to the bellhop, and 1 each to the 3 men = 30.

      Amount paid: 9*3 = 27 (25 to the hotel and 2 to the bellhop). This doesn't have to add up to $30 because $30 was not paid.

      So again, to restate the end of this problem without the confusion: Each man paid $9 = 27 dollars. The hotel has 25 of it and the bellhop has 2. Where has the missing $3 gone?

      Obviously, the answer is clear, the puzzle is ruined, and it should also be clear where the previous "sleight of hand" happened.

  193. Re:Math and science are obsolete by LeonGeeste · · Score: 2, Interesting

    One wonders if it is in fact you who is dismissive of the poor, your attitude toward them in your posts here certainly is.

    *sigh*

    I'm trying to explain to you the practical consequences of what you're proposing. I was just describing aspects of reality. You'll notice I never said anything was good or bad, just what will or won't happen. If you can find the place where I was dismissive of the poor, I'd really like to know where it is.

    Now, I already explained enough so you could understand the difference between cracking down on the rich vs. the poor. The rich can easily scurry away and/or stop producing. The poor can neither easily scurry away nor stop producing. Again, this is not to say anything is "good" or "bad", just that it "will" or "won't" raise tax revenues. Contrary to your staunch refusal to dispassionately analyze the topic, there really are relevant practical considerations in raising taxes.

    In fact, I'd like nothing more than to test out your ideas. Check out the link in my sig. I submitted an idea to a policy site. The idea is that basically, in one state, we do what you propose: high taxes on the rich, high minimum wage, good workers protections and workplace safety requirements, etc. In the other state, do the oppose: no min. wage, low taxes on the rich, no safety requirements, etc. If you're really serious about your views, you'd leap at the chance to do this and see who's right based upon which state people flock to.

    You do think you're right, right? ...RIGHT?

    --
    Rank my idea: http://www.sinceslicedbread.com/node/531
  194. Assumptions by Anonymous Coward · · Score: 0

    Isn't that assuming that all but the 18 are tails? I don't read the problem as specifying that. It say that 18 are heads, not that only 18 are heads.

    1. Re:Assumptions by Anonymous Coward · · Score: 0

      It didn't say "at least 18 are heads" either. So assume that only 18 are heads.

  195. Simple by mrjb · · Score: 1

    "You're in a dark room with 50 quarters, 18 of which are heads up. You are allowed to move around the coins or flip some or all of them, if you wish. Problem is, it's too dark to tell what you're moving or flipping (no, you can't figure it out by touch either). Your job is to split the coins into two groups, each of which has the same number of heads up coins. How do you accomplish this?"

    By switching on the friggin light. Sheesh.

    Seriously though: If you remove the cause of a problem, you solve it *for real* and needn't spend your life patching it.

    --
    Visit http://ringbreak.dnd.utwente.nl/~mrjb/growingbettersoftware to download your free copy of the book
  196. Re:Math and science are obsolete by Jeremi · · Score: 1
    Bush doesn't initiate tax changes.


    Tonight's homework assignment: a one page essay on what the words "leadership" and "bully pulpit" mean. Extra credit for describing how government in theory differs from government in practice, or why everyone refers to the recent rounds of tax cuts as "the Bush tax cuts".

    --


    I don't care if it's 90,000 hectares. That lake was not my doing.
  197. parallel tracks by russellh · · Score: 1

    I always liked this one: parallel train tracks appear to converge in perspective. what angle must they be laid at to appear to be parallel in perspective?

    --
    must... stay... awake...
  198. My simplest proof by deshkanna · · Score: 1
    1. Re:My simplest proof by Anonymous Coward · · Score: 0

      Ha. Mine was shorter. Given a triangle ABC with segment AB congruent to segment AC, prove that angle ABC is congruent to angle ACB. The proof is simple: By SAS (Side-Angle-Side), triangle BAC is congruent to triangle CAB. QED. It's hard to get shorter than that without stating the conclusion.

  199. solution? by Pendersempai · · Score: 1

    Starting at the north pole certainly works.

    There is a circle some amount north of the south pole, concentric to the axis of the earth's rotation, with a circumference of 1 mile. Starting at any point 1 mile north of any point on this ring will work too. Note that this set of points is itself a circle concentric to the axis of the earth's rotation.

    Similarly, for any positive integer n, there is a ring some amount north of the south pole with a circumference of 1/n. Starting at any point 1 mile north of any point on this circle will work too. Similarly, this set of points is itself a circle concentric to the axis of the earth's rotation.

    None of these rings overlap with any other, or with the north pole. Any other point near enough to the south pole will send you around the axis of the world's rotation a non-integer number of times, and you won't end up where you started.

    And of course, "going a mile south" when you start at or within a mile of the south pole is an undefined operation, so presumably we exclude those points too.

    1. Re:solution? by Anonymous Coward · · Score: 0

      There is no point on the northern hemisphere that is not the north pole and still satisfies the condition. Walking 1 mile southward from any point on the northern hemisphere puts you in a place where the globe has a circumference of more than 1 mile.

    2. Re:Solution? by Xel'Naga · · Score: 1

      The king can defeat your method by simply never flipping the chalice himself.

  200. What is the "oddest" prime? by Nivag064 · · Score: 1

    You will know the anmswer is correct when you find it! Note "1" is _NOT_ a prime

    1. Re:What is the "oddest" prime? by GEEK13 · · Score: 1

      2 the only even prime i think would irronicaly, be the oddest

    2. Re:What is the "oddest" prime? by Nivag064 · · Score: 1

      I consider 2 the oddest prime because, as you say, it is the only even one. It is also odd in the sense that thwere is a lower limit on primes, but no higher limit! -Nivag

    3. Re:What is the "oddest" prime? by Anonymous Coward · · Score: 0

      ODD is prime in base 27, somehow i doubt thats what you were looking for...

  201. All rules have an exception by lucm · · Score: 1

    Take this statement: "All rules have an exception".

    If this statement is true, then this rule itself must have an exception, in which case the statement is not true. However, if the rule itself is the only one without an exception, then the statement is making itself true by not having an exception.

    What is a paradox? A simple demonstration that human logic is flawed.

    --
    lucm, indeed.
    1. Re:All rules have an exception by Anonymous Coward · · Score: 0

      "However, if the rule itself is the only one without an exception, then the statement is making itself true by not having an exception."

      Unfortunately for you, it's not. There are plenty of other rules without exceptions, such as "2 is the successor of 1" or "You must take your shoes off before entering this house with my permission." False premise, and logic is fine.

      (If I ruled Cuba, then I could order everyone to drop everything and make cigars! But they aren't doing that. Clearly logic is flawed!)

      Anyway, logical systems have their problems, but they are in that they are not _complete_. They aren't flawed.

  202. three men in a motel by tyme · · Score: 1
    Here is a little math riddle my father taught me:

    Three men arrive at a motel late one evening. The motel manager says that he only has one room available but the men can have it for $30. The men agree, pay the manager $10 each, and retire to their room.

    A bit later the manager realizes that he made a mistake and that the room rate should have been $25. The manager calls the bellhop, hands him $5 and tells him to take the money up to the men as a refund. On the way up the bellhop thinks to himself that three men cannot divide $5 evenly between themselves, so he pockets two dollars as a tip and gives the men $3 as a refund, which the men easily divide evenly, $1 to each man.

    Now, each man has paid $9 which totals $27 for the room, plus the $2 in the bellhop's pocket, for a total of $29: where is the missing dollar?


    The only person I ever knew who could solve the riddle was an accountant, everyone else (engineers, computer scientists, mathematicians, etc.) get's terribly flummoxed.
    --
    just a ghost in the machine.
    1. Re:three men in a motel by Down8 · · Score: 1

      I love this one, b/c i was the only one who got it right back in school.

      The 'extra' dollar is in their pocket(s).

      Paid: $30 (3 x $10)

      Cost: $25 (3 x $8.33)

      Refund: $5 = $3 (3 x $1) + $2 (bellboy)

      Total: $28 (3 x $9.33) + $2 (bellboy) = $30

      The trick is in the wording. You need to add the $25 cost to the $3 refund to get the difference of $2 in the bellboy's pocket, not try going in reverse.

      -bZj

      --
      .sig
    2. Re:three men in a motel by Anonymous Coward · · Score: 0

      The manager is left out of the equation, and the bellhop's payment is erroneously given as a credit when it should be a debit.

      At the start, all people paid the following amounts:

      Man A: $10 Man B: $10 Man C: $10 Manager: $0 Bellhop: $0 Total: $30

      In the end, the payment becomes:

      Man A: $9 Man B: $9 Man C: $9 Manager: $5 Bellhop: $-2 Total: $30

    3. Re:three men in a motel by tyme · · Score: 1
      an anonymous coward wrote:
      The manager is left out of the equation, and the bellhop's payment is erroneously given as a credit when it should be a debit.

      Yes, this is, essentially, how my friend the accountant described the solution. In fact, she told me about the riddle independantly, having heard it in her accounting class as an example of why you must not mix debits and credits on a balance sheet. My fathter, an engineer, simply said that the riddle was based on an error in the order of operations, but couldn't be much more precise.
      --
      just a ghost in the machine.
  203. Re:Fork in the road (discussion and hint) by Aeiri · · Score: 1

    One more variant, also due to Gardner or one of his readers: Suppose that you speak the local language (shared by truth-tellers and liars) perfectly, except you have forgotten if "pish" means yes and "tush" means no, or vice versa, and that your question must be in a form that requires a yes/no (well, pish/tush) answer.

    "If path A is a path to your village, say 'pish'; otherwise, say 'tush'."

    No questions required.

  204. The Psychotic Mathematician by eonlabs · · Score: 1

    A Psychotic Mathematician (The Professor) has kidnapped 20 of his students.

    They are being held hostage, and the Professor has announced to them that he will provide a thought puzzle to determine whether he will let individuals go free.

    The students will be placed in a single room in single file and must always face forward. Students can clearly see all students in front of them.

    Every student will be given either a red or blue hat, but no one knows the color hat on their own head.

    To be let free, a student must announce the color of the hat on their head.

    All students can announce only one color, and all other students can clearly hear the announcement. Announcing anything but red or blue will result in all students being brutally subjected to absurd math problems indefinitly.

    They are allowed to discuss how to get out of the situation before being placed in line, but the Professor, after going through years of intense mathematic study, will pessimize (force the situation into the worst possible outcome) the situation for a given solution the students come up with.

    How many students can be guarenteed freedom in the optimal solution?
    What is the optimal solution?
    What principle in the real world does it reflect?

    I have tried to be very explicit in this problem. If someone notices an issue or has a question, please mention it.

    --
    I wouldn't consider the mad hatter mad. Just reality impaired. He sure can make a mean cup of tea.
    1. Re:The Psychotic Mathematician by bencurthoys · · Score: 1

      let us say that R(n) is the number of red hats that student at position n can see, and B(n) the number of blue hats. S(n) is the announcement that student at position n makes. either R(20) or B(20) is odd (as the student at the back of the line can see 19 other students). if R(20) is odd then S(20) = "red", if B(20) is odd then S(20) = "blue" - the student at the back will announce the oddness of one or the other colour, and forfit his own freedom. now, consider student 19. he can see R(19) and B(19), and he knows which of R(20) or B(20) was odd. if R(20) was odd, and R(19) even, he must have a red hat on. if R(20) was odd, and R(19) is still odd, he must have a blue hat on. so he can safely announce which colour hat he has. student 18 can take the information about the oddness of R(20) and B(20) and take into account the annoucement of S(19), and work out whether either or both of R(19) or B(19) was odd. by comparing these values with the oddness of R(18) and B(18), they can work out their own hat colour. i don't think there's anything the professor can do to stop this, and they can work indctively down the line. so the optimal solution allows 19 of the 20 students to go free.

    2. Re:The Psychotic Mathematician by bencurthoys · · Score: 1

      oops. sorry. didn't see the instuction about not posting solutions. i'll delete it if someone tells me how?

    3. Re:The Psychotic Mathematician by eonlabs · · Score: 1

      That was it! omedetou! Took me a two days to catch on when I first heard it. Now what real world principle is governed by the same logic?

      --
      I wouldn't consider the mad hatter mad. Just reality impaired. He sure can make a mean cup of tea.
    4. Re:The Psychotic Mathematician by bencurthoys · · Score: 1

      from my experience of maths professors, the puzzle as posed was already a real world situation =)

    5. Re:The Psychotic Mathematician by eonlabs · · Score: 1

      Quite often, yes, but I found that the Computer Communication Application is much more interesting

      --
      I wouldn't consider the mad hatter mad. Just reality impaired. He sure can make a mean cup of tea.
  205. Questions by ari_j · · Score: 1

    This sounds very much like a similar problem I solved in college, involving a light switch instead of the chalice and omitting the king's ability to manipulate the communications tool of the prisoners. I have the following questions:

    1. Do the prisoners know k?
    2. Define "arbitrary number of times."

    These are my sticking points. Based on my questions, I'm sure you can guess the strategy I'm going after from the problem I solved before. My other question is this: Am I on the right track by iterating that strategy k+1 times, or is it completely different? :)

  206. Re:Math and science are obsolete by Anonymous Coward · · Score: 0

    you've never heard of integer overflow? ;)

  207. Re:give the next term in the series (Answer) by Anonymous Coward · · Score: 0

    I think I get the reasoning, but from the given data I guess it could be either 1231 or 111221, depending on the specific logic used.

  208. Oh man... by Herr+Proktor · · Score: 1

    just try proving something like the binomial theorem. Or trying to understand what -2! means, and why. Or even convincing yourself that when you add 32 and 549 by the common method you get the same answer you would if you put 32 strokes next to 549 strokes and counted them all up together. Of course there are people who understand these things, but for every one of them there are a hundred more who have simply accepted them. Mathematics is a wonderland right in front of our faces.

  209. Re:Math and science are obsolete by Damer+Face · · Score: 1

    And who would be foolish enough to suggest that the economy is described by a continuous function?

  210. Sorry, there is no solution by LeonGeeste · · Score: 1

    The chalice cannot store any information because they can't know if the king manipulated it. The king knows their rule, and they can't know if he is interfering or not.

    The fact that, as you claim, only two people "know the answer" shows that not a whole hell of a lot of eyeballs have looked at this problem. It's easy to be confident of the solution when only two of your friends have checked the answer.

    I look forward to debunking your solution.

    --
    Rank my idea: http://www.sinceslicedbread.com/node/531
  211. Re:The King and the Chalice -Decentralized - by Derivin · · Score: 1

    One problem, what if there are 3 prisoners and lets just say K is 2...

    What if the king knowing this picks 2 of the prisoners and alternates them (and makes sure one is an upper, and one is a downer...).

    he then calls just those two prisoners alternating, 7 times each....

    I think this is on the right track though. You just also need to factor in taht the king will call every one the same number of times and can't stop until someone says 'yes'.

  212. Re:Math and science are obsolete by shanen · · Score: 1

    I'm not interested in arguing with fools like you. Or maybe you're just incredibly naive and ignorant and you are optimistic that I'll take the time to educate you on the reality? Whatever. Please mark me as a foe and we shall eagerly ignore each other forever.

    --
    Freedom = (Meaningful - Coerced) Choice != (Speech | Beer^2), and sad sock puppets' bad mods avail them naught.
  213. Re:A Solution (?) by geekpowa · · Score: 1

    This looks like it is on the right track. Looking at the ways a king can mess with the signal:

    1. trick the leader into thinking that someone signalled to them but turning cup back up and calling the leader out. To fix this may need to wait for at least n+k affirmations. This by itself falls down though because the king may choose not to signal.

    2. trick a non leader into thinking they have successfully signalled but the king invalidated their signal. To fix this each non leader can signal k+1 times.

    Bringing this together. Since everyone is going to signal upto k+1 times the leader should wait for n*(k+1) cups. Assuming the king doesn't mess with signals

    Now if the king hides signals from the leader - leader may received k signals less. So they should wait for just n*(k+1)-k. This is less than signals from all but one user (n-1)*(k+1). Algebra works out that if n>1 this holds. If n=1 then there is just one prisoner and they say 'yes' on being called out first.

    Now if the king hides tries to block all signals from one non leader - leader may receive k signals less again. Same logic as above

    So i think the solution is all non leaders signal upto K+1 times, and the leader waits for n*(k+1)-k signals.

  214. Re:Math and science are obsolete by LeonGeeste · · Score: 1

    It doesn't say the "economy is described by a continous function". I don't even know what that means, and I'd be surprised if you did.

    --
    Rank my idea: http://www.sinceslicedbread.com/node/531
  215. Re:Math and science are obsolete by max+born · · Score: 1

    Interesting point but the president can't order congress to do anything. He has hardly any power.

    All bills for raising revenue shall originate in the House of Representatives
    (Article I, sec 7.)

    The house often has a substantial number of reps who oppose the president, But if the house passes the bill it goes to the Senate. And anywhere in the process the bill can be filibusted, killed in judicial committees, etc. by either house. If the Senate passes the bill it goes to the president for signature. Sure he signs it into law but I posted the above because I get the impression many people think the president raises or cuts taxes autonomously and that's not the case. Congress has all the power.

    If you're interested, oyez is a great website that has many recordings of supreme court decesions. I like to get the names of the plaintiffs and defendants and try to guess who will win. The outcomes and the reasoning behind them are sometimes quite informative.

  216. Re:Math and science are obsolete by Damer+Face · · Score: 1

    You claim that the Laffer curve is a good economic model. You also claim that the Laffer curve is a continuous function.

    Hence you claim "economy is described by a continous function".

    It's called logic.

  217. Send more money by DarkDust · · Score: 1

    Here's a small one:

    ..SEND
    +.MORE
    ------
    .MONEY

    Each character represents a different digit (the dots are just to preserve the formatting). No two characters represent the same digit. Happy solving :-)

  218. One other change by nwbvt · · Score: 1

    He knows everyone has been in there when it gets to (n-1)(k+1) or he will be waiting for him to flip it as well.

    --
    Mathematics is made of 50 percent formulas, 50 percent proofs, and 50 percent imagination.
  219. Not exactly by nwbvt · · Score: 1

    The king can only flip the chalice k times, so you just need a solution that can be messed with up to k times. So if you have one guy flipping it rightside up each time he sees it upside down and all the other guys flipping it down the first k+1 times they find it up, the first guy can just count the number of times he has to flip it. Once he gets to (n-1)(k+1), I believe he knows everyone else has been in there.

    --
    Mathematics is made of 50 percent formulas, 50 percent proofs, and 50 percent imagination.
    1. Re:Not exactly by Armchair+Dissident · · Score: 1

      Close, but the problem with the riddle - and why I agree that this is a hoax riddle that's been made up - or very poorly expressed - is that the king can flip the chalice (0..k) times. Knowing k is useless information. The chalice cannot provide information because the king may flip it just once, or not at all.

      The "only two people have ever solved it" seems nonsense to me too. If this is genuinely the case, and the solution is as hideously complex as the OP seems to take such glee in stating, either the OP is claiming he is a genius of Einsteinian proportions, or he was not in any position to credibly examine the solutions given to him.

      Adding a random value between 0..k to the prisoner's warden riddle does not make a genuinely new solvable riddle.

      It's like the 'GRY' riddle; if it's misstated it's impossible to solve and ceases to become a riddle. If you start out the riddle:

      "There are three words in the English language that end in GRY. Two are HUNGRY and ANGRY. The third one everyone uses every day and knows what it stands for. If you listened carefully, I already told you what the word is."

      the riddle is un-solvable within the constraints provided by the riddle "I already told you what the word is". If, however, you start the riddle correctly:

      "Think of words ending in -GRY. Angry and hungry are two of them. There are only three words in the English language. What is the third word? The word is something that everyone uses every day. If you have listened carefully, I have already told you what it is."

      The answer becomes self-evident.

      There may indeed be two or three people who know another word ending in GRY, but that does not solve the riddle. There may also be two or three people who believe they can provide a solution to the prisoner and warden riddle with an added 0...k random number, but I doubt that it's valid.

      --

      The ways of gods are mysteriously indistinguishable from chance.
    2. Re:Not exactly by nwbvt · · Score: 1
      "Close, but the problem with the riddle - and why I agree that this is a hoax riddle that's been made up - or very poorly expressed - is that the king can flip the chalice (0..k) times. Knowing k is useless information. The chalice cannot provide information because the king may flip it just once, or not at all."

      But this solution takes that into account. If the king never flips it, we still will get to (n-1)(k+1) on our own once everyone has flipped it the maximum number of times. If he does flip it k times, he still will be unable to fake enough flips to make it appear everyone has been in there if someone has yet to be called.

      " The "only two people have ever solved it" seems nonsense to me too. If this is genuinely the case, and the solution is as hideously complex as the OP seems to take such glee in stating, either the OP is claiming he is a genius of Einsteinian proportions, or he was not in any position to credibly examine the solutions given to him."

      I don't believe he ever said he was one of the two who solved it, and it was his roommate who gave it to him, he didn't make it up. And I can think of a lot of riddles that very few people have been able to solve (as far as I know) because I havn't asked it too many times. Anyways, I'm much more likely to believe his claim that there is a solution than your claim (after thinking about it for what, a few hours?) that it cannot be solved.

      --
      Mathematics is made of 50 percent formulas, 50 percent proofs, and 50 percent imagination.
    3. Re:Not exactly by LeonGeeste · · Score: 1

      The mere fact that the king has the *choice* of flipping destroys the information, whether or not he actually uses his flips. No one entering the room knows if he exercised it or not. Since you can only store one bit of a data with the chalice, you can't store both "whether we have all been in the room" and "whether the king has actually interfered", and thus, there is no solution. Remember, the king can decide not to interfere, and they will have no way to knowing if he did.

      --
      Rank my idea: http://www.sinceslicedbread.com/node/531
    4. Re:Not exactly by nwbvt · · Score: 1

      Yes, I have taken that into account. Read practically every other response I have written on this thread. This count is reachable if the king never uses a flip.

      --
      Mathematics is made of 50 percent formulas, 50 percent proofs, and 50 percent imagination.
    5. Re:Not exactly by ari_j · · Score: 1

      Assuming that the prisoners know k, that they will be called sufficiently randomly over time (the constraints on the king's choices are not clear from the way the riddle is stated - can he call one guy over and over again or what?), and that they are aware of when another prisoner is called to the central room without knowing who got called, here is a solution:

      1. The prisoners number themselves sequentially from 1 to n; call the prisoners P.1 to P.n
      2. The prisoners all keep track of the number of prisoners who have been called (mod n); call this m
      3. If you are P.m, set the chalice upright; otherwise, set it upside-down
      4. If you are P.n when m = 0 (mod n) and the chalice is upright, increment i, which started out 0; if i > k, say "Yes." Otherwise, say "I don't know." and set the chalice upside-down.

      The only problem is that everyone is going to die of old age before this works out. Assume random choices. There are n! ways to pick an ordered set of n prisoners. Of these, only 1 will increment i. So we have a 1/n! chance of getting the right order out of n choices of people by the king. So it will take n x n! choices to increment i, and that has to happen k + 1 times. It will take the king (k + 1) x n x n! choices for the prisoners to go free; again, assuming random choices.

      For 20 prisoners and k = 5, it takes about 2.92 x 10^20 choices to go free. Even if the king makes one choice per second, it will take over 9 billion years to go free. It doesn't matter when the king uses his k flips, whether his choices are maliciously non-random, or anything else - he will die of old age before it becomes a concern for him. So will you.

    6. Re:Not exactly by LeonGeeste · · Score: 1

      You have most certainly not taken that into account. All your responses make the exact same problem: that you assume you know how the king's going to use his flips. You don't.

      Imagine you come into the room, and you've been in X times. How do you know if the chalice was set by another prisoner or flipped? YOU DON'T. Not after k times, not after kn times, not after 2kn times, not after 800k^2n^2 times. Because you don't know if the king is delaying his flips or not. If you *know* the king will never flip, you can find a solution. If you *know* the king will flip the first k times, you can find a solution. *but you don't*

      The poser of this problem is simply posting a problem without a solution, but whose false solution has been "confirmed" by his close buddies and never really checked by anyone.

      --
      Rank my idea: http://www.sinceslicedbread.com/node/531
    7. Re:Not exactly by nwbvt · · Score: 1
      "You have most certainly not taken that into account. All your responses make the exact same problem: that you assume you know how the king's going to use his flips. You don't."

      That is 100% incorrect. My solution makes no such assumption. There is an error in it as discussed here, but it is not related to what you are saying and can be easily compensated for. Just because you cannot find a solution does not mean it cannot be solved. Lose the damn ego, its just a riddle.

      If the king never flips it, you still get to that count. If he faked it k times, then after (n-1)(k+1), then the prisoners would have flipped it (n-1)(k+1)-k times. The maximum number of flips that are possible without one of the prisoners entering the room is (n-2)(k+1)+k. If you do the algebra, you should find the latter value is less than the former, so if you get the (n-1)(k+1), you know everyone has been in there.

      --
      Mathematics is made of 50 percent formulas, 50 percent proofs, and 50 percent imagination.
    8. Re:Not exactly by nusuth · · Score: 1

      Under your assumptions, this may take less time: the simple counter solution (one designated counter, everybody else signals only once) needs something like 5000 days with k=0. So everybody restart the SCS every 5000 days. When counter reaches 100 in k+1 of those epochs, there is at least one epoch during which all prisoners visited the room.

      --

      Gentlemen, you can't fight in here, this is the War Room!

    9. Re:Not exactly by ari_j · · Score: 1

      I didn't check your math - are you saying 5000(k+1) days? That's still a lot of years, but at least some of the prisoners might survive that long. :)

    10. Re:Not exactly by nusuth · · Score: 1
      Something like that. The proccess would take exactly 5000*(k+1) days if SCS succeeds in each of those 5000 day epochs. Since it is possible that either not everybody can signal or the counter is unable to collect the last signal in 5000 days, the SCS may fail in 5000 days. In that case the whole 5000 days is lost as counter is reset in every epochs first day. So we may need mor than (k+1) epochs.

      We don't want to waste an epoch without counter being able to register 100 prisoners in that epoch because the epoch is too short, but we also don't want to make epochs very long as we will need ad least (k+1) of them. If the probability of reaching a count of 100 in n days is p(n), there is a minimum to the function (k+1)*n/(p(n)**(k+1)). The n at that minimum is the optimum epoch length and the process will take (k+1)*n/(p(n)**(k+1)) days to succeed on average.

      --

      Gentlemen, you can't fight in here, this is the War Room!

    11. Re:Not exactly by ari_j · · Score: 1

      I wonder how much less time it takes to get to, say, a 90% certainty that you're right. It seems to me that the entire thing relies on random choices by the king for you to have any real certainty of escaping. After all, he has so much discretion that he can foil your plan just by calling people in a maliciously non-random way. I think it's a crap problem and the best bet is for a female prisoner to seduce the king at the earliest opportunity.

  220. SPOILER: by A_Nath3 · · Score: 1

    Switch. (I've seen this question before; the first time I saw it, I think I was one of those people who messed up.)

    1. Re:SPOILER: by Headcase88 · · Score: 1

      A little spoiler tag for your topic is not good enough, especially when the answer is linked in the parent's post.

      And since I'm posting anyway, HAHAHA I got it right :D :D :D

      --
      "When the atomic bomb goes off there's devastation...but when the atomic bong goes off there's celebraaaaation!"
  221. The BART Ticket Puzzle by saccade.com · · Score: 2, Interesting

    The BART is the SF Bay area's excuse for a subway / mass transit. To ride, you buy a ticket at a kiosk full of $x worth of "BARTness". When you get board the train, you stick your ticket into a turnstile, and it hands it back to you. When you reach your desgination and get off the train, you again stick your ticket into a turnstile. It deducts the cost of your trip (based on how far you traveled) and gives your ticket back. You keep using the ticket until $x is used up. BUT: Suppose you walk toward the train, put your ticket in the entrance turnstile. You pick up your ticket, then you change your mind and leave, putting your ticket in the exit turnstile to get out. The cosmic BART megamachine will charge you the maximum possible fare, even though you haven't gone anywhere. For a good reason. What's the reason?

    1. Re:The BART Ticket Puzzle by Anonymous Coward · · Score: 0

      I wonder if the BART people anticipated the exploit,
      or found out the "hard way" and then patched it. :-)

    2. Re:The BART Ticket Puzzle by Anonymous Coward · · Score: 0

      The cosmic BART megamachine assumes you bought a roundtrip + time travel, and it knows that's worth the maximum possible fare.

    3. Re:The BART Ticket Puzzle by ysegalov · · Score: 0

      Say we have two friends, one lives in Oakland and works in downtown S.F. (work starts at 9:30) and one lives in S.F. and works in Oakland (work starts at 9:00). They buy two tickets, and do the following: The guy from S.F. uses his card to ride to Oakland, where he waits near the entry/exit gates. His friend will arrive there at 8:45, and enter with his ticket. Then they exchange tickets and carry on as usual. Next day - same drill. I'm sure this is a very common, probable usecase of the BART. BTW another reason could be that when you exit the BART you get a free ride on the buses in SF for half-hour or so, no? You should know, you live there?...

    4. Re:The BART Ticket Puzzle by IIH · · Score: 1
      You pick up your ticket, then you change your mind and leave, putting your ticket in the exit turnstile to get out. The cosmic BART megamachine will charge you the maximum possible fare, even though you haven't gone anywhere. For a good reason. What's the reason?

      At a guess to stop the following:

      Person A in system with ticket A. Person B outside with ticket B. Person B enters with ticket B, swaps ticket with person A, who leaves with ticket B. If ticket B was not charged, this could be repeated until whoever ended up with ticket A without someone outside had to pay the maximum fare. This would mean that only one fare was paid for an unlimited amount of people to travel.

      --
      Exigo spamos et dona ferentes
    5. Re:The BART Ticket Puzzle by Surt · · Score: 1

      Hint: Imagine starting this puzzle with 2x dollars in your wallet.

      Second puzzle: how would even a second rate engineer solve this problem in 10 seconds with roughly 4 lines of code?

      --
      "Who is the Journal of Quantum Physics going to believe?" --Stephen Hawking
    6. Re:The BART Ticket Puzzle by Anonymous Coward · · Score: 0

      I'm pretty sure BART got it the hard way. In the Bay Area, you've got lots of smart people and pot. Do the math :)

    7. Re:The BART Ticket Puzzle by Anonymous Coward · · Score: 0

      While waiting for a bus to Palo Alto at the Union City BART station, I remembered there was a restroom inside of the station. Since according to the schedule I had 15 minutes to kill, I went inside with my ticket. That was the most expensive restroom fee ever.

    8. Re:The BART Ticket Puzzle by Noksagt · · Score: 1
      The cosmic BART megamachine will charge you the maximum possible fare, even though you haven't gone anywhere. For a good reason. What's the reason?
      Bay Area Rapid Transit was too dumb to time-stamp the ticket.
    9. Re:The BART Ticket Puzzle by darkmeridian · · Score: 1

      Otherwise you can get free rides. You can buy two tickets, A and B. Use ticket A when you enter the first station. Go where ever you want. Once you want to go back, use ticket B to enter at the second station. Immediately put your ticket to swipe out but stay in the station. (Is this possible if you reach?) When you get back to the origination station, swipe out with Ticket A, which should return your fee (unless it has a time bar feature. Hrm.)

      --
      A NYC lawyer blogs. http://www.chuangblog.com/
  222. Fair division in two by Shimmer · · Score: 1

    My favorite these days is very simple (good for kids), and actually quite practical:

    By what procedure can two people split a single piece of cake (or slice of pizza, or bowl of soup, etc.) such that both agree that the outcome is fair? In other words, how do you avoid the "No fair! His piece is bigger than mine!" problem?

    --
    The most rabid believers in American Exceptionalism are the exact same people whose policies are destroying it.
    1. Re:Fair division in two by DarkDust · · Score: 1

      You probably mean "One cuts, the other takes the first piece" ?

    2. Re:Fair division in two by SpaceNinja · · Score: 1

      A more interesting problem is to generalize this to N people. Cake will get a little messy if you cut it a bunch of times, so let's say it's pudding. Come up with a system whereby N people can fairly divide up a batch of pudding - even if two or more of the people are colluding.

  223. Re:Math and science are obsolete by umkendaj · · Score: 1

    I just want to note that, at least in U.S./Canada, there is no tax on being rich. The taxation occurs on the first derivative of wealth, assuming it is positive. That being said, using "the rich" in an argument doesn't make any sense, as your tax rate is determined solely on your instantaneous increase in wealth.

  224. Re:Math and science are obsolete by msuarezalvarez · · Score: 1

    The Laffer Curve thing is not a fundamental mathematical theorem. It is a cualitative stamenent of an economical theory, from which cualitative consequences can be drawn, and, if hard data is provided, maybe cuantivative ones too (but that is much, much harder). Those consequences are as valid---assuming the derivation of those consequences is sound, which is a very big if,---as the hypothesis that supports the original economical theory, which of course cannot be of a mathematical nature.

    The truth (*) of an economic theory does not follow from the soundness of mathematical arguments, but from the validity of its hypotheses and the concordance of its predictions with reality. I'll leave it as an exercice to check whether these two are in favor of Laffer's theory.

    The fact that the theory can be stated mathematically does not imply its truth, as there is plenty of examples of false but mathematicallt expressed theories around, in economy and in other subjects.

    (*) Of course, this usage of the workd "truth" is both vague and incorrect. Yet it is clear that with big enough doses of philosophy of science this statement can be made correct.

  225. The Condom Problem by Kevin143 · · Score: 1

    My favorite math riddle?

    The Condom Problem

  226. Re:Math and science are obsolete by SeePage87 · · Score: 1

    Can't analyze it graphically. Making a function would be much too complex (involving understanding every person indifference curves according to their work:money-earned [after tax] ratio) and estimating on empirical evidence would require changing the tax rate a bunch of times and seeing how it effects revenue in both the public and private sector. Then you'd need to make sure changing the tax rate did not change the structure of the economy so that the data gained from that tax rate is still valid.

  227. Old Favourite by zaguar · · Score: 1
    0.99999999~~~~ = 1

    Had to do it.

    --
    "Sure there's porn and piracy on the Web but there's probably a downside too."
    1. Re:Old Favourite by WillerZ · · Score: 1

      That's true by definition. A recurring decimal represents the limit of the sum of the infinite series it encodes.

      --
      I guess today is a passable day to die.
  228. 12 marbles by elmartinos · · Score: 1

    Imagine you have got 12 marbles. They all have exactly the same weight, except one. Using a balance, try to find this marble with only 3 weightings and also determine if it is heavier or lighter!

    Easy as it looks, it took me two days to find out the solution to this problem. And don't give up, it is possible without any tricks :-)

    1. Re:12 marbles by Anonymous Coward · · Score: 0

      The twelve ball (marble) problem is a classic. Here are some solutions in various forms:

      http://grinder.home.mchsi.com/games/twelve-ball/

  229. LnxAddct by tod_miller · · Score: 0, Flamebait

    Allow me the ego to be freudian with you - LnxAddct.

    * You write you name in a terse, leet form, vowels being for the swaety prole masses no doubt ;-)
    * You grew up on bash scripting, weened onto perl, and now suck python out of the can while looking for chicks.
    * You post a python script for solving methematical puzzles
    * You post a python script for solving methematical puzzles, and worry about its bug freeness
    * You post a python script for solving methematical puzzles, and worry you might have not done it pythony enough.
    * You post a python script for solving methematical puzzles, encoded to get past lameness filter (instead of using code tags? ca you do that??)
    * You post a uuencoded, compressed file of a python script for solving methematical puzzles, and instructions on how to get it working
    * You post a uuencoded, compressed file of a python script for solving methematical puzzles, and instructions on how to get it working instead of posting the file to any hosting account, and posting a coral cache link to it. :-) Go linux! :-) :-) :-) ;-)

    --
    #hostfile 0.0.0.0 primidi.com 0.0.0.0 www.primidi.com 0.0.0.0 radio.weblogs.com
    1. Re:LnxAddct by nmb3000 · · Score: 1

      Slow down there, buddy. Looks like you might have been doing too many methematical problems lately.

      --
      "What do you despise? By this are you truly known." --Princess Irulan, Manual of Muad'Dib
      /)
    2. Re:LnxAddct by mikiN · · Score: 1
      Allow me the indulgence to be pedantic with you - tod_miller.

      • When making a list in your comment, you can use <ul><li>/</li></ul> tags instead of asterisks, you know.
      • LnxAddct has one vowel in his name, last time I checked.
      • Python eats chick(en)s, few animals eat python. Also it is the chick(en) that gets liquified, not the python
      • Python and mathematics? So what?
      • Every programmer should worry whether his code is bug-free.
      • Python writes as Python does. Crush the bugs, concisely.
      • You think that code tags would keep the lameness filter from interfering? Think again. If it didn't, we would still have those ASCII art page-widening-crapflood-fests (although forcing the participants' entries to a monospaced font, which is more aesthetically pleasing IMHO).
      • Instructions on how to use something shows your respect for your intended audience. Lack of instructions merely shows respect for your own ego.
      • Not everyone has access to hosting services (depends on many things including restrictive corporate firewall settings, content and value of wallet/bank account in case of commercial hosting, etc.). Also, many free hosting sites I know of severely limit or disallow hosting of binary files because of their possible 'k3w1 w4r3z d00d' appeal.

      Last but not least (I am breaking the 'no spoilers in the posting' rule, I know), ironically, 'LnxAddct' is 8 characters long, a well-known filename length (excluding extension) limitation in some decidedly non-Linux operating systems.
      --
      The Hacker's Guide To The Kernel: Don't panic()!
    3. Re:LnxAddct by Impy+the+Impiuos+Imp · · Score: 1

      > Last but not least (I am breaking the 'no spoilers in
      > the posting' rule, I know), ironically, 'LnxAddct' is
      > 8 characters long, a well-known filename length
      > (excluding extension) limitation in some decidedly
      > non-Linux operating systems.

      Too bad he misspelled it "Lnxaddct", and the Linux guy lost the file and never found it again.

      --
      (-1: Post disagrees with my already-settled worldview) is not a valid mod option.
    4. Re:LnxAddct by Anonymous Coward · · Score: 0

      > Too bad he misspelled it "Lnxaddct", and the Linux guy lost the file and never found it again.

      uh, does this pass as a joke somewhere, maybe among the VB programmers? May I say "pathetic"?

  230. Re:Math and science are obsolete by Anonymous Coward · · Score: 0

    Dubya and his f[r]iends "saved" half a billion that was needed for flood prevention, and now the minimum estimates of the repairs is around a mere 200 billion dollars. How's that for a math puzzle?

    Right, it's all Dubya's and the Republican's fault. Forget the fact that the local (N.O.) and state government (LA) have been controlled by the Democratic party for a long time. Forget the fact that spending destined for the levees has INCREASED in the years since the Republicans took office. Forget the fact that this money was misused by the local government. Forget the fact that the exact outcome of the levees breaking and the flooding during a storm similar to Katrina has been forecast for DECADES and N.O. didn't do shit to prepare for it.

  231. Re:Math and science are obsolete by max+born · · Score: 1

    All I said was that all bills for raising revenue must originate in the House of Reps as set forth in Article I, sec, 7 of the USC. Is that not the case? If that's not the case, enlighten me. It's more productive to impart knowledge than to accuse one who lacks it of being a fool.

    Maybe I'm completely wrong. Help me out.

  232. That's a dumb response by Anonymous Coward · · Score: 1, Interesting

    He just showed you how all five of the possible answers are correct given only the information you supplied.

    How is it that you have any solution more "real" than the solutions he just provided? Could it be that you haven't really thought through your riddle so well?

  233. Re:Jugs - simplified by Enti · · Score: 1

    Fill the 3 gallon and empty into the 5 gallon, do this once more to fill the 5 gallon. Hold your finger at the water line on the 3 gallon jug, which should now be a third full. Empty the 3 gallon and fill the 5 gallon, and then empty the 5 gallon into the 3 gallon until the water level reaches your 1 gallon mark.

    --
    In these days, bleeps and bloops mean something more
  234. Re:Math and science are obsolete by Simon+for+$1 · · Score: 1

    So sorry, I read this statement:
    "The rich can much more easily avoid taxes, legally or otherwise, than the average person, so raising their taxes really won't help revenue."
    And I took it as twisted apologia for lowering taxes on the rich.

    I understand now that it was not. Perhaps it was your assumptions that I hate the rich and that I denied the Laffer curves existence, both assumptions without merit and agressively misleading, that led me to believe you were in opposition to my arguments and a far right supporter.

    You will find my arguments to be based on the Laffer curve, but introducing the idea that deception may increase the maximum point on the graph, much like the price of shares on a stockmarket may be increased through similar means, but creating a bubble that must eventually burst.

    This is the point that you refuse to accept, seeing it as incompatible with your precious curve and therefore a denial of its existence on my behalf.

    And on the policy thing, you think there could be a socialist state in the USA? Watch out, the FBI are knocking down your door, the red peril must be stopped.

  235. Final frontier by mrselfdestrukt · · Score: 0

    Well, It was certainly interesting to see some of the questions/ riddles and problems posted here. And it's been a while since we posted comments to an article that was certainly meant for us nerds. But most of these problems can be solved with math formulas or other processes mostly because the input allow you to furmulate an output result - no matter how tricky.
    But the one logic (?) riddle that will puzzle man probably for all eternity is this: Understanding the behaviour and thinking processes of a woman. We can argue about it for years and some of us think we have an answer and some are close to understanding them, but no man will EVER be able to fully understand a woman.
    That my friends, is the ultimate riddle in the universe: Understanding those weird people with vaginas.

    --
    "I used to have that really cool,funny sig ,but it got stolen."
  236. ***DON'T POST SOLUTIONS DIRECTLY!*** by Headcase88 · · Score: 1

    ***Please read this post!!!***

    "Just one request: If you have figured out the solution, link to it in a post, rather than write it out where anyone can see it."

    ***Read the Above!!!***

    I've noticed a lot of people missing this point, so I'm trying to make this post stand out as much as possible. I know you're not supposed to, but this is a special case.

    /. editors, can you consider putting that part in bold in the main story? Because a lot of people are missing it. A lot.

    --
    "When the atomic bomb goes off there's devastation...but when the atomic bong goes off there's celebraaaaation!"
    1. Re:***DON'T POST SOLUTIONS DIRECTLY!*** by ChrisJones · · Score: 1

      Pansies. There are a zillion and one places you can do logic/math puzzles, this is for discussion, so discuss the questions and the range of answers - more often than we might think there are multiple solutions that not everyone may know. I'd rather know about that and run the risk of accidentally glancing at a solution before I find it ;p

      --
      Chris "Ng" Jones
      cmsj@tenshu.net
      www.tenshu.net
  237. Women = Evil by Anonymous Coward · · Score: 0

    Probably old, but sometimes true (at least since I got married).

    (Ladies, please don't bother to flame. If I had been smart, and married myself a geek-chic, I would probably be able to disprove the following statements)

    ----
    We know that women like two things, your time and your money,
    therefore...
    women = time x money

    Now time equals money, so
    women = money x money

    Money is the root of all evil, so
    money = square root of evil

    By squaring both sides of the equation,
    money squared = evil

    Now go back to the equation
    women = money x money

    See where I'm headed?
    women = money squared = evil

    A problem with this "proof" occurred to me immediately: Since evil is
    negative, the square root of evil must be imaginary, which would mean
    that money is imaginary, and therefore, by definition, so is time.

    Then I realized that, in my life at least, that's pretty much true.

    1. Re:Women = Evil by Anonymous Coward · · Score: 0

      Although this is really just a cute idea and not actually logical, I will refute it because I have an insatiable need to be right.

      The error is in this leap "We know that women like two things, your time and your money, therefore... women = time x money"

      Women liking your time AND your money means that women = time + money. But, then the cute math doesn't work.

  238. Another one I like by Shimmer · · Score: 1

    Because it gives some insight into the role of sexual reproduction in evolution.

    A long time ago, there was a kingdom of 10,000 people. Half were male and half were female. The king decreed that males were intrinsically superior, and he wished to increase the ratio of males to females in his kingdom without shedding blood. To accomplish this, he dictated that each couple must stop having babies after giving birth to a girl. As long as they had *only* boys, though, they could continue to bear children (but didn't have to).

    In other words: Any couple that gave birth to a girl was forbidden to have more children.

    This policy was enforced for 1000 years. At the end of this time, what was the (approximate) ratio of males to females in the kingdom?

    Assume that the base ratio of giving birth to a boy vs. a girl is 1:1. That is, each outcome is equally likely.

    --
    The most rabid believers in American Exceptionalism are the exact same people whose policies are destroying it.
    1. Re:Another one I like by joss · · Score: 1

      Surely ratio is 1/1 still ? But its not even a riddle, I fail see why anyone would think the policy makes a difference to proportion of sexes. Please explain, AFAICT it doesnt give any insight into anything.

      --
      http://rareformnewmedia.com/
    2. Re:Another one I like by xenocide2 · · Score: 1

      Unless some couple can actually give birth to more boys than girls genetically (ie the expected outcome naturally favors boys) then there's no way for the population to really change in that direction.

      The "i feel like a genius" puzzle answer is that half the population stops at one girl, half has one boy and continues on.

      G = .5
      B = .5

      The next step is to consider the half the population left. Half of that half has one boy and continues and half has one girl and stops.

      G = .5 + .25
      B = .5 + .25

      Each time, half the population goes on to distribute their genes equally between boys and girls. So unless there is some natural selection that says perhaps "families with more boys will survive longer to reproduce" then the genetic predisposition will remain at 1:1. Not very insightful. As somebody smarter than I said, "For every problem there is a solution that is simple, elegant and wrong."

      --
      I Browse at +4 Flamebait

      Open Source Sysadmin

  239. Two of my favorites by wildsurf · · Score: 1

    First puzzle: Given a rectangle 2 units high and 200 units long, it's trivial to pack 400 unit-diameter circles into it, in a rectangular arrangement. The question is, how can you fit the 401'st circle? (There is a way, but it's non-obvious; this is not a trick question!)

    Second puzzle (given to me by my discrete mathematics professor to solve over spring break, which I did): Sam and Polly are logicians. A Martian comes down in a spacecraft and announces, "I'm thinking of two integers x and y, where 3 <= x <= y <= 97. I'll tell their sum to Sam, and their product to Polly." He does so, and leaves. The following conversation ensues:

    Sam: "You can't possibly know what x and y are."
    Polly: "I do now."
    Sam: "Now I do, too."

    Find x and y.

    --
    Weeks of coding saves hours of planning.
  240. Re:The King and the Chalice -Decentralized - by dreamer-of-rules · · Score: 1

    That's where the "arbitrary" number of times comes in. The prisoners can wait until they have all been in at least f(k,n) times, and the king will eventually comply. So what's f(k,n)?

    --
    Everyone is entitled to his own opinions, but not his own facts.
  241. P.S. Couples do not have to be monogamous by Shimmer · · Score: 1

    A man can sire children by multiple wives, and vice versa, as long as any given couple stops after giving birth to a girl.

    --
    The most rabid believers in American Exceptionalism are the exact same people whose policies are destroying it.
  242. Re:A Solution (?) by geekpowa · · Score: 1

    Wrong try again

    Answer

    Each non leader must signal 2k+1 times

    Leader must wait for N*(2k+1)-k signals

    Where

    N = n-1 = number of prisoners less 1. (Don't count the leader)

    k = number of signals king can mess with

    logic:

    Total number of signals that can be received by leader including kings false signals where all but one non leader prisoner is allowed out. i.e. the king does his best to trick the reader into thinking that all prisoners have been let out but they haven't:

    LHS = (N-1)*(2k+1)+k

    Total number of signals that can be received by leader where all non leaders signal less max number of signals a king can muffle. i.e. the king does his best to make the leader wait forever in indecision:

    RHS = N*(2k+1)-k

    Invariant that needs to hold is:

    LHS < RHS

  243. Yep by Shimmer · · Score: 1

    Although the submitter asked you not to reveal the answer in the thread.

    --
    The most rabid believers in American Exceptionalism are the exact same people whose policies are destroying it.
  244. Logic, will, memory games by exegene · · Score: 1

    My favorite "riddles" aren't exactly riddles, but games requiring a certain amount of logical problem solving nonetheless.

    Some example games are:
    (1)The words I, me, my, and mine are forbidden. Using any of these words will result in a demerit, penalisation, loss, or similar. Creativity counts. Creative cheating counts extra.

    (2)Think "What did I just think?" As soon as you forget what you just thought, you lose.

    (3)Think "What did I just think?" As soon as you remember what you just thought, you lose.

    And so on. In (1), some fundamental words are removed from the list of words available in speech, forcing the player to keep constantly on the toes while reforging verbal associations. In (2), a winner will have some characteristics of a befuddled butterfly, while a lose will be unaware of their loss. In (3), a winner may set "What did I just think?" spinning, place it in the corner of the mind, and check up on it every now and again. When such games are participated in by multiple parties great parts of the fun and attraction lie in the inevitable arguments about who's won, who's lost, who's the most points, and "why don't we add this rule," or "doesn't that rule we added five minutes ago have this implication?"

    --
    exegene refugee memories in hiding
  245. fixed art by schwal · · Score: 1

    || /\ || /\ /\ /\
      () || () () ()
    fixed art fixed art fixed art fixed art
    fixed art fixed art fixed art fixed art
    da da dad a da d a jf kjrtfi34rtnfijrvnjrv

    --
    -schwal "Hanging is too good for punners, they should be drawn and quoted"
  246. 1 = -1 by earthstar · · Score: 1

    Last week my friend proved with a few steps that 1 = -1.
    To my surprise I could not find any error in his proof..
    For now,can any of you prove that.

    1. Re:1 = -1 by smellystudent · · Score: 1

      I can't remember the exact solution, but one of the steps will involve dividing by (x-x). (x-x) is, of course, equal to zero, and division by zero is not allowed.

      --
      Predictive text is shiv!
  247. 1_ ... that's it - solve it. by craznar · · Score: 1

    This is the shorted puzzle I've ever created.

    It is linguistic, mathematic and a touch cryptic.

    Just fill in the missing digit:

    1_

    --
    EMail: 0110001101100010010000000110001101110010 0110000101111010011011100110000101110010 0010111001100011011011110110
  248. Six Sacks of Gold by bratwiz · · Score: 1

    This is one of my favorite teasers-- not especially hard but it might make you think for a bit...

    Suppose someone is paying you with six sacks of gold. Each sack contains 100 coins and you have examined all the coins and verified the count in each sack. However, you have it on excellent authority that one whole bag of gold is counterfeit! Further, you have been tipped-off that the counterfit coins weigh exactly 1.1 ounces while the real gold coins weigh only 1.0 ounces. When you heft the bags they feel about the same so you're not really sure which one is the fake. You do have a scale, but it will only work ONE time. You can put ONE set of items on it and get ONE reading. You can't trick it by putting stuff on and off while its reading, so choose your items carefully! Assume for the problem that the tare weight of the bags is inconsequential. Using only these items in the manner described, is it possible to determine which bag has the counterfeit gold, and if yes, which one is it-- how would you know?

    1. Re:Six Sacks of Gold by flocculent · · Score: 1

      Nice little puzzle

      Take a different number of coins out of each bag, eg:

      1 from the 1st bag
      2 from the 2nd bag
      ...
      6 from the 6th bag

      Then stick all of these loose coins on the scale together, remembering how many you took from each bag

      The overall weight will tell you how many coins are heavier and from that you know which bag was made up of fake coins.

      eg if the scale says 21.2 ounces, you know that the second bag is full of fake coins. If it says 21.6 ounces you know it's the sixth bag.

      \o/

  249. ANSWER - Bart ticket puzzle by Anonymous Coward · · Score: 0

    I could buy two tickets from the kiosk. One, I always use to get on/off at the stop nearest my house, the other, I always use to get on/off at the stop nearest my office. The exploit would be that, since both cards will always show zero distance moved, if BART didn't charge me anything for zero distance moved I would ride for free. By charging full price for zero distance moved, they prevent this exploit (and in turn exploit people who actually travel zero distance like in the problem statement).

  250. Ancient Riddle... by kyleking · · Score: 1

    One from my youth...

    "What is the beginning of eternity,
    the end of time and space,
    the beginning of every end,
    and the end of the human race?"


    Kyle King
    IT Consultant
    kyleking.com...Obedience training...for your PC!

    1. Re:Ancient Riddle... by MacDaffy · · Score: 1

      The answer is: E

  251. Theseus and the Minotaur by Anonymous Coward · · Score: 0
  252. Buffon's noodle by Anonymous Coward · · Score: 0

    Just referencing the Buffon's noodle article.

    Buffon's needle is a way to calculate pi: you throw a needle of length l on a grid with lines spaced D>=l apart. The probability of the needle crossing the grid is related to pi, and Buffon used integral calculus for deriving it.

    "Buffon's noodle" is a generalization where you can throw an arbitrary geometric line shape of length l on such a grid, and derive the expected number of grid crossings without even knowing the shape. This leads to a solution of Buffon's original problem which works without integral calculus.

  253. Re:Truth vs. Lies---Dr. Who knows by tickticker · · Score: 1

    There was an episode of Dr Who with this problem, it was a Baker episode, it had something to do with Mars and pyramids or something.

    Ask one what the other would say, and choose the opposite door. The truthful will tell the liars answer, which is the wrong door, and the liar will lie about the truthful answer.

    I knew knowing that would pay off some day!!! See, plot and story over special effects anytime.

    --
    Reload to see this sig

  254. Oi! here's mine by Alec417 · · Score: 1

    Ok, I came up with this brain tickler, or whatever you call it. It's a little bit different than the others, because it's more about the process of answering than it is about the actual answer. And I'm going to blatantly break the rule about "no answers in the post"... because I'm lazy. So don't read the whole way if you don't want to find out.

    OK, here goes: If you're launching a satellite into space on a rocket, what direction do you launch it in? The next paragraph is a hint.

    The first part of the problem is figuring out what kind of answer is expected, but whoever is asking can help out the askee at this point by specifying that, in addition to "up", a compass direction is expected (North, South, East, West).

    Don't read beyond this point if you don't want the answer: if you just think about it, you can figure it out. ...

    OK, the first partial credit is assigned if people realize that the Earth's rotation can give a boost to the rocket (that is, if you launch in the direction in which the Earth is already rotating, you don't have to fight the rotational speed). The second bit of partial credit is assigned if the person says, thinking alound, "Okay... well, the Sun rises in the East..." (Surprisingly, most people do say this). Then, finally, full credit is given if they correctly deduce from this that the Earth is rotating towards the east, and a rocket should then be launched up and to the east (and at the equator, to get the biggest boost).

    Incidentally, this also explains the location of Cape Canaveral and other such establishments: it's near the equator, and there's a large body of water to the east (so the parts that fall to the ground - hopefully not everything! - land in water).

    Does anyone else find this a fun puzzle?

  255. It's definitely unsolvable. by Anonymous Coward · · Score: 0

    At least, it's unsolvable if the king has any memory at all and doesn't simply interfere at random k times.

    He can call someone the minimum number of times all in a row, and revert the chalice to the state it was in before he called them. There is no evidence for anyone that he was ever called, nor can there be. It's CERTAINLY true if k > n, but it's probably true for smaller numbers of k all the way down to at least 2 and probably 1. With a single flip and given a set minimum amount of calls, it's possible for the king to completely eliminate evidence that one of the prisoners got to go at all.

  256. Let's say you have an ax... by Anonymous Coward · · Score: 0

    ...and you chop down a tree with it. But when you're doing it, the handle of the ax breaks.

    So you replace the handle. A week later, you're using it to chop up some firewood. This time you strike a stone and the head of the ax breaks. You buy a new head.

    A neighbor comes to borrow the ax. He says, "so, is this the same ax you chopped the tree down with?"

    Well? Is it?

    Here's a longer version of the riddle. MUCH longer.

  257. 0.99999 = 1 by Anonymous Coward · · Score: 0

    Not really a riddle but showing that 0.9999... is equal to one seems to bug a lot of people.

    x = 0.9999....
    10x = 9.9999...
    9x = 9
    x = 1
    0.9999... = 1

    1. Re:0.99999 = 1 by J_T_Biggs · · Score: 1

      A better way to see this is to notice that .99999... is .9 + .09 + .009 + ... which can be written as

      inf
      SUM .9 x 10 ^(-1)
      i=0

      this is a geometric series which converges to .9 / (1 - .1) or 1.

  258. My favorite puzzles by Cafe+Alpha · · Score: 1

    My favorite puzzles are what you might call meta-puzzles. That is, sometimes a puzzle will have properties that you can analyze in a non-brute force way.

    For instance, consider a board with the following shape (1 represents usable squares, and 0 unusable squares):
    0 0 1 1 1 0 0
    0 1 1 1 1 1 0
    1 1 1 1 1 1 1
    1 1 1 1 1 1 1
    1 1 1 1 1 1 1
    0 1 1 1 1 1 0
    0 0 1 1 1 0 0

    in a puzzle similar to HI-Q you start off with pieces on all of the "1" square except for one, and then you jump piece over each other, taking the jumped piece and try to end up with a single piece on the board.

    Unlike HIQ, this puzzle isn't solvable when you start with the hole in the center of the board.

    The first meta puzzle is to prove this.

    The second meta-puzzle is to discover a general rule that lets you know what starting holes can lead to a solution, and what squares the final piece can end up on.

    There is such a rule, and it doesn't require brute force to find it.

    Once you understand the mathematics of this game, it's trivial to prove that the HI-Q board (which looks like this):

    0 0 0 1 1 1 0 0 0
    0 0 0 1 1 1 0 0 0
    0 0 0 1 1 1 0 0 0
    1 1 1 1 1 1 1 1 1
    1 1 1 1 1 1 1 1 1
    1 1 1 1 1 1 1 1 1
    0 0 0 1 1 1 0 0 0
    0 0 0 1 1 1 0 0 0
    0 0 0 1 1 1 0 0 0

    is ALWAYS solvable, no matter which piece is the first hole.

    I'll give you one hint. The trick is to find a game with rules that are much easier to analyze than "jump over a piece and take it" but where "jump over a piece and take it" is a legal move. If you can prove that there's no solution in this game, then there can't be a solution in the more restricted game.

    Another hint that may be more malicious than helpful is to consider an infinite board - if you can simplify that, then understanding a finite board is easier. Of course if you can do that, then you already know most of the answer.

    1. Re:My favorite puzzles by Cafe+Alpha · · Score: 1

      Hmm, I did make one misstatement. The solutions I have prove which solutions can't exits, but they don't actually prove that any solution exists. That is, when you can prove that something is solvable in a game with less restricted rules, then you haven't proved that the original, more restricted game has a cooresponding solution. But when you prove that a game with less restricted rules is not solvable, then you know for sure that the game with more restricted rules is also not solvable. It turns out to be the case that there ARE solutions in the restricted game that coorespond to the solutions in the less restricted one, but that may be a coincidence. Maybe looking into that can be a metapuzzle for someone smarter than me...

  259. Four 4s, 6 operations, and you must... by Anonymous Coward · · Score: 0

    find all combinations to obtain all integers from 0 to 100. The 6 operations being +, -, /, *, ^ and !. You can merge the 4s, too (ie, 44 is possible).

    First stumbled upon this math game at a school in Exeter while doing a language school during the summer at the age of 13. Back home I tried it out and succeeded, but it took me a whole month!

    For example, 0 = 44-44, 1 = 44/44, 2 = 4/4 + 4/4, etc etc.

    Very fun :p

    1. Re:Four 4s, 6 operations, and you must... by tal_mud · · Score: 1

      If you enjoy this, you will probably enjoy my post "Reach 21 using 1, 5, 6 and 7" at least as much.

  260. Monty Hall by JohnsonWax · · Score: 1

    From a Marilyn Vos Savant column. Google for explanation:

    Suppose you're on a game show, and you're given the choice of three doors. Behind one door is a car, behind the others, goats. You pick a door, say number 1, and the host, who knows what's behind the doors, opens another door, say number 3, which has a goat. He says to you, "Do you want to pick door number 2?" Is it to your advantage to switch your choice of doors?

    I love puzzles, and most are just a bit of a push to work out, but I've had a ton of people argue to no end with me on this one.

  261. Petals Around the Rose by Nailer · · Score: 1

    And it should be called Petals Around the Roses, as there may be more than one.

  262. Re:The King and the Chalice: full solution by Anonymous Coward · · Score: 1, Informative

    let me first reword the problem to the way I think of it. Let us think of all the prisoner having "tokens" that they are passing around via the cup. Flipping the cup up means you leave one of your tokens in the center room. Flipping it down means you take the token. Obviously only one token can be left in the center room at a time.

    Now the problem just becomes one of having the leader collect enough tokens. The cup can start up or down, so there may be an extra token in play. Allowing the king to flip the cup out of sight of the prisoners allows him to add or remove a token from the system with each flip. Thus if the prisoners start with a total of x tokens among all of them, over the course of the game that total may change to between x - k and x + k + 1 (+ 1 there because the cup might start sitting upright).

    Now, the solution is that all prisoners except the leader start with 2k + 2 tokens (so the prisoners start with a total of (n - 1)(2k + 2) tokens. The leader will say yes once he has collected (n - 1)(2k + 2) - k tokens. We need to show that the leader can always collect this many tokens, and that he cannot get this many tokens unless ever prisoner has left at least one token in the center room.

    We can see that the leader can always collect this many tokens because the king can take at most k tokens out of play leaving only (n - 1)(2k + 2) - k tokens. Since all players will be called an arbitrary number of times, they will all get a chance to leave all their tokens in the center room and the leader will get a chance to pick them all up (the ones that the king doesn't take).

    Now consider the case where one prisoner is not called out for a very long time and all other tokens are allowed to be transferred to the leader first. In addition we will assume that the cup starts up and that the king adds k tokens to the system. In this case, there are (n - 2)(2k + 2) + k + 1 = (n - 1)(2k + 2) - 2k - 2 + k + 1 = (n - 1)(2k + 2) - k - 1 tokens in play. This is one less that the required number of tokens for the leader to say yes, so he can't possibly say yes until that last prisoner comes out and gets to transfer one of his tokens to the leader.

    That is a bit hand wavy, but I think it is a good proof. I have no idea if this is the best possible solution, though. I have good reason to believe that it is not the fastest (if the king chooses who to bring out arbitrarily). Check out http://www.ocf.berkeley.edu/~wwu/riddles/hard.shtm l#100prisonersLightBulb if you are interested in this type of problem and want to figure out the "fastest" solution. That whole forum is full of really hard math puzzles.

    -- corygwilliams AT google's mail place

  263. Another clock puzzle by shenanigans · · Score: 0

    Similar to your clock puzzle: Imagine having a clock where the hour hand and the minute hand are identical, and there is no way you can see which is which. But you can measure their angles exactly. How many times in 12 hours will it be impossible to see what time it is?

    We got this puzzle in a "creative maths" class I took once. Took me surprisingly long to solve it...

  264. liar by Jesus+IS+the+Devil · · Score: 1

    You're at a T intersection trying to get home. You don't know which one to take, but there are two men standing there who know. One always tell a lie and one always tell a truth.

    You can ask only one question (same question to each man) to find out how to get home.

    What question do you ask?

    --

    eTrade SUCKS
    1. Re:liar by kronocide · · Score: 1

      Something is missing from this riddle. Shouldn't it be that you get just one question to figure out who is the liar? How can you both figure that out and get directions if you have only one question, then you must make that question about what direction to go (and that won't help)?

    2. Re:liar by Jaiwithani · · Score: 0

      Hint: You have to ask a question which will trigger the same response from either person.

      --
      By the time you've rhymed one line, I've already busted ten; You rap in exponential time and I'm big-O of log(n).
    3. Re:liar by ChrisJones · · Score: 1

      The question is "will he tell me to go left?", ie you ask each man how the other man will answer.
      If left is the correct way to go then the liar will say "no" (because the truthful man would indeed tell you to go left, and the liar has to lie). The truthful man will also say "no" (because he has to tell you the truth that the liar will tell you to go right). If left is not the correct way to go, the liar will say "yes" and the truthful man will say "yes".

      (You can ask "will he tell me to go right?" and the same answers will occur)

      These kinds of problems pop up a bit, the key is usually to play the liar and truthteller against each other and still, as you suggest, make the question about which direction to go :)

      --
      Chris "Ng" Jones
      cmsj@tenshu.net
      www.tenshu.net
    4. Re:liar by foreverdisillusioned · · Score: 1

      both you and the other dude replying completely missed the ONE QUESTION requirement. Almost every single one of these liar puzzles can be solved with a single question, and that question is "What would YOU say if I asked you...". The liar's double negative yields a truthful answer, while the truthteller's double positive also yields a truthful answer.

      Playing the truthteller off of the liar is only useful in more complex puzzles involving more than two individuals (sometimes involving entities that have the option to tell the truth OR lie.) If there are only two entities, a truthteller and a liar, this single question will ALWAYS work.

    5. Re:liar by ChrisJones · · Score: 1

      I didn't miss anything. For god's sake actually read the bloody question! Here is an extract:

      "You can ask only one question (same question to each man)"

      I asked the same question to each man. Ergo I am right, ner ner ner ;)

      Your question doesn't make sense though, if you ask the liar "what would YOU say if I asked you which way to go?" (I filled in half the question for you there, since you tailed off) he will say "go right" and the truthful dude will say "go left" (assuming left is the way to go). How does that help you?

      --
      Chris "Ng" Jones
      cmsj@tenshu.net
      www.tenshu.net
    6. Re:liar by foreverdisillusioned · · Score: 1

      Ok, *I* misread the problem. But you still need only one question to make this work.

      Let's say that the truthful answer is "left." If you asked the liar "which way should I go?" he will say "right." However, if you ask him "What would you say if I asked you which way I should go?", then you force him to lie about lying. He WOULD SAY "right", but he can't admit that, so instead he says "left", which is the truthful answer. The truthful guy also gives you the same answer.

      In the real world "what would you say" is an idiom that doesn't change the meaning of a question. But in a fantasy world where a being is compelled to always lie, it is, in effect, a question within the main question and the lies will cancel each other out.

    7. Re:liar by ChrisJones · · Score: 1

      I see what you mean.

      The imp in me wants to suggest that if you ask the liar "what would you say if I asked you which way I should go?" his answer would be "nothing", since he would be then lying about the fact that he'd say something if actually asked the question ;)

      --
      Chris "Ng" Jones
      cmsj@tenshu.net
      www.tenshu.net
    8. Re:liar by foreverdisillusioned · · Score: 1

      Well, if you allow off-topic answers then the entire riddle falls apart. Ask the truthful guy anything and he could very well reply "I don't care." Ask the liar anything and he could reply "I don't know." In this situation my solution doesn't work, but then again yours doesn't either.

      In order for this riddle to be solveable, we must assume that the truthteller will be helpful, and the liar will actively mislead. We must assume that a question related to the two directions will be addressed and not avoided. Otherwise, the riddle is pointless and unsolvable.

      Thus, I maintain that if there is any solution at all to this puzzle (or any others like it), mine is the quickest and most elegant.

  265. Balance Problem by TimoTaye · · Score: 1
    Given 11 objects, identical in appearance, one of which is of a different weight (lighter or heavier), how can you determine which object is of a different weight using a simple pendulum style balance (ex. if object(s) on left hand side weigh more than object(s) on the right hand side, the left hand side goes down and the right hand side up, like a see-saw) only three times.

    Problem:
    • 11 object identical in appearance
    • 1 of a different weight (lighter or heavier)
    • 3 uses of the scale
    • determine which object is of a different weight (solution doesn't necessarily include determining if the object in question is lighter or heavier)


    Although I found this puzzle very difficult (I may not be very clever), I did eventually solve it on my own.
    1. Re:Balance Problem by greginnj · · Score: 1


      MOD PARENT UP -INTERESTING

      This is the puzzle I was going to submit. The version I heard used the term "pan balance" (think 'scales of justice') and "cannonballs".

      FWIW, I can certify that this is a 'real' puzzle (no word/mind games or other trix, just pure logic) that admits an exact solution.

      It helps if you think of the cannonballs as having numbers painted on them.

      CORRECTION to the original version: It is always possible, using only 3 weighings, to determine not only which cannonball is the 'odd man out', but also whether it is heavier or lighter than the others. Hard to believe, but true.

      Have fun!

      --
      Read the best of all of Slash: seenonslash.com
    2. Re:Balance Problem by Anonymous Coward · · Score: 0

      I've never understood why this problem is stated as it is, since you can distinguish the unique object from twelve standard ones, rather than eleven, with only a slight modification of the algorithm.

  266. The sofa puzzle by Anonymous Coward · · Score: 0

    What is the largest sofa (by area; any shape) that can be moved round a right-angle corner in a corridor of unit width? (This is still unsolved.) See, for example, http://www.studyworksonline.com/cda/content/articl e/0,,EXP1755_NAV2-95_SAR1800,00.shtml

  267. My head really hurts by Anonymous Coward · · Score: 0

    Just a kind notice to anyone who decides to play that - make sure you've got Javascript enabled.

    I spent damn near two hours before realizing my mistake...

  268. One minor modification by cgenman · · Score: 1

    Good answer.

    The only thing I can add to this is that the number of meddlings the king can do is actually k+1, as he gets to set the default chalice position (up / down). So, much like N = n - 1, K should equal k+1.

  269. Which weighs more? by Damer+Face · · Score: 1

    A pound of gold or a pound of feathers?

    And, no, the answer isn't that they weigh the same.

    1. Re:Which weighs more? by Anonymous Coward · · Score: 0

      if the pound of feathers is on a Chicken, then I would have to say the feathers, but if the pound of gold is around in the best of time(when they are buying back gold at a high cost), the gold is heavier. You would recieve more out of gold than the feathers in the long run... so I will have to go with the gold.

    2. Re:Which weighs more? by cmeister2 · · Score: 1
    3. Re:Which weighs more? by Anonymous Coward · · Score: 0

      This isn't a puzzle, it's just a test of esoteric knowledge.

    4. Re:Which weighs more? by Damer+Face · · Score: 1

      And calculus isn't esoteric knowledge? Haha. No you're absolutely right.

    5. Re:Which weighs more? by Anonymous Coward · · Score: 0

      depends on where they are sat actually, if a ton of feathers was on thr ground in a pile, and a ton of gold was on the same ground, the gold would weigh more.

      weight is Gm1m2/r^2, and the gold's center of mass is closer to the center of mass of the earth (since its a small lump instead of a tall pile)

      the gold weighs more.

  270. Re:The King and the Chalice - solution by ysegalov · · Score: 0

    I don't understand why you have to mess so much with this. First, let's drop the part where the king can interfere. Clearly, the simple solution (not time-efficient, but who cares) is to choose one leader, who waits for 99 'ups' and whenever he sees an 'up' turns to 'down'. The other 99 are only allowed to turn 'down' to 'up', and only one time. Now, since the king can interfere K times (I assume K is known to the prisoners as well, otherwise it can't be solved) , the startegy should be for the leader to wait for, say, (2K-1)*99 'ups', and the other 99 must turn 'down' to 'up' in the first 2K chances they get. It is 2K times longer than if the king could not interfere, but it works and the king has nothing he can do about it, no matter what order he chooses for inviting the prisoners into the room.

  271. Re:Petals of the Rose SPOLIER by azool · · Score: 1

    the "rose" is the pip in the middle...3's and 5' are the only faces with a middle.
    count the pips in the corners

    --
    Do not taunt Happy Fun Ball.
  272. Solution? by fenodyree · · Score: 1

    What am I missing as this seems simple:
    K+N = Yes

    Each prisoner only changes the state of the chalice once. Each prisoner keeps track of the amount of times the chalice changes state. Once the number of times the chalice changes state is greater than K+N times (k, the number of times the king can flip the chalice, and n, each prisoner flipping it once) the prisoner can answer yes.

    So why did I just get everyone killed?

    Cheers, Greg.

  273. 1 = 0 by darketernal · · Score: 1

    Let's say you have two variables a and b, such that a = b.

    Thus ab = a^2,
    ab - b^2 = a^2 - b^2,
    Factoring the right side,
    ab - b^2 = (a + b)(a - b)
    Factoring the left side,
    (a - b)b = (a + b)(a - b)
    Divide both sides by (a - b),
    b = a + b

    By this we see that
    b = 2b
    and thus
    1 = 2
    Subtracting 1 from each side,
    0 = 1

    How can this be?

    1. Re:1 = 0 by Legion303 · · Score: 1

      "Divide both sides by (a - b)"

      Thanks for the timely problems, grandpa.

    2. Re:1 = 0 by darketernal · · Score: 1

      I don't get it.

      Are you saying that this riddle is too obvious?

    3. Re:1 = 0 by Bishop282 · · Score: 1

      Go back to the given in the problem. What does a equal and what does b equal? Think about that.

    4. Re:1 = 0 by Legion303 · · Score: 1

      I'm saying it's been around forever, and my reply also indicated where the proof fails. :P

      (Assuming you didn't already know it)

    5. Re:1 = 0 by Anonymous Coward · · Score: 0

      You can prove all sorts of ridiculous things if you allow division by zero.

    6. Re:1 = 0 by darketernal · · Score: 1

      No, I knew the solution all along. It was for other people.

  274. 2 Smart Dudes with the Product and Sum by twitchingbug · · Score: 1

    This is not necessarily a problem that you sit down and solve. It's a problem in which you come up with the method to solve the problem.

    One day, a really advanced alien comes down to earth and finds the 2 smartest guys on the planet, Tom and Harry. The alien tells them, "I'm going to destroy Earth, unless you guys can solve my riddle. I'm thinking of 2 numbers between 3 and 99. The sum of the 2 numbers is... " and he whispers the sum into Tom's ear. "And the product of the 2 numbers is..." and he whispers the product into Harry's ear.

    "what are the 2 numbers?"

    Being such smart fellas... They sat there and thought about it for awhile...

    Tom suddenly says, "Ah ha! you can't possibly know what the 2 numbers are!"
    Harry then responds, "Ah Ha! you can't possibly know what the 2 numbers are either!"
    Then Tom, says, "Ah ha! Now I know what the 2 numbers are!"
    Then Harry says, "Ah ha! Now I know what the 2 numbers are also!"

    what are the 2 numbers, and more importantly, how did they find out what they were?

  275. Re:The King and the Chalice - solution by Anonymous Coward · · Score: 0

    (GP AC here)

    Yes, I believe that's the "elegant" solution -- Well, actually you have to substitute "K+1" for "K" everywhere if the state of the chalise isn't known at the beginning. When the master prisoner sees the cup flipped he won't know if he's the first prisoner and it started like that OR if it started right-side-up and another prisoner already used one of his flips. Therefore it is the same as if the king had one more "flip" worth of interfernce. The only way this isn't true is if the first prisoner KNOWS he's the first prisoner and can elect himself master, but that doesn't seem to be in the problem.

    I was just modeling it as a pure information-theory problem which isn't a good way to get an optimal solution but it's a good way for producing an existence proof)

  276. I think it is a word puzzle by SmallFurryCreature · · Score: 1
    Unless worded wrong the number of times the king can turn the chalice K is never limited in anyway. So it becomes useless as you say.

    When the numbers become meaningless look at the meaning behind words.

    The setup is a central room (the king room) with cells around it. Basically a lot of the story keeps pointing out that the room with the king is central to the setup with the cells surrounding it. Since cells are typically only build with 1 door it then becomes logic to assume that each prisoner as he was led to his cell has had to pass through this central chamber.

    So every prisoner simply has to say "yes".

    Some discount this simple answer but if you read the problem carefully I think it is the only real answer. The math solution can't work. Not when you got no limits, you can only calculate X if X is the only unknown.

    So then ask yourselve why spend all this time discussing setting up the layout when it is not needed. The king could have set himself up in an empty cell or have the prisoners brought from the dungeon to his throne room. But no, he sits in a central room with the cells around its perimeter.

    --

    MMO Quests are like orgasms:

    You may solo them, I prefer them in a group.

    1. Re:I think it is a word puzzle by TeatimeofSoul · · Score: 1

      The number k is arbitrary only to you, meaning that your solution cannot depend on it being less than anything in particular.

      The prisoners, on the other hand, know what k is. So they can just "wait it out".

  277. Absolute Hardest Puzzle Ever- proceed with caution by Xochi77 · · Score: 1

    Ok, this is regarded by many as THE puzzle to solve... you have been warned...

    Three gods A , B , and C are called, in some order, True, False, and Random. True always speaks truly, False always speaks falsely, but whether Random speaks truly or falsely is a completely random matter. Your task is to determine the identities of A , B , and C by asking three yes-no questions; each question must be put to exactly one god. The gods understand English, but will answer in their own language, in which the words for yes and no are "da" and "ja", in some order. You do not know which word means which.

    good luck!

  278. Boat in a lake by IIH · · Score: 1
    You are floating on a lake in a boat. You take a bowling ball from the boat and throw it into the lake.

    Does the level of the lake fall, rise, or stay the same?

    --
    Exigo spamos et dona ferentes
    1. Re:Boat in a lake by oldCoder · · Score: 2, Funny

      Yes. There are only 3 possibilities, and you've enumerated them all...

      --

      I18N == Intergalacticization
    2. Re:Boat in a lake by sillybilly · · Score: 1

      Assuming we're talking about an heavy bowling ball, made of metal denser than water, that will fully sink:

      The level of the lake water will technically rise by an infinitesimally small amount, relative to sea level/mountain level/some steady reference in Newton's Absolute Space, however small that amount may be - it's calculable if you know the lake surface area, the lake level will rise by volume of the ball divided by lake surface area. It's basically added volume to the lake.

      The level of the water relative to a marker mark drwan on the side of the boat will drop, or more exactly, the boat will lift out of the water, by the amount calculable from air replacing the bowling ball volume inside the boat - you can average out the overall density of the boat below the water mark plus adding the - steel frame + air inside the steel frame, to find the buoyant force according to Archimedes' law. Then on top of this you add the force due to the weight that sticks out of the water, but the air space that's above the water surface doesn't matter now, just get the raw weight, you only need to average densities below the liquid line. With basics physics 101, using Newton's force diagrams, you can set up an equation to find where the new equilibrium line will be, below the initial mark. This density averaging math involves the shape of the bottom of the boat - whether it's a steep V shape, or some very flat |_______| shape steel, wood, fiberglass-plastic, inflated plastic, or whatever kind of boat you got. The same bowling ball will not have much effect on the level of a squaremile wide flat boat, but if your boat is only 2 square feet area V shape, expect a huge effect from the ball missing from the density averaging.

  279. Maybe this variation is a better solution by NigelJohnstone · · Score: 1

    The problem with that is King doesn't need to turn the challice himself, he only needs to call a prisoner (a non watcher) out to turn it over. Since he can call them an infinite number of times there is no K cap with that strategy.

    "2) Everyone else, upon finding an upright chalice, turns it upside down. Otherwise, they leave it. They each must turn it over exactly 3k+1 times, where k is the number of times the king can move the chalice."

    I've only had one coffee, so I'm not going to work the numbers, but if each non watcher only turns the challice right side up ONLY IF THEY HAVE NOT PREVIOUSLY DONE SO. That small change may make your strategy work.

  280. Reach 21 using 1, 5, 6 and 7 by tal_mud · · Score: 1

    You must use each number exactly once. The only operations permitted are addition, subtraction, mulitplication, division and parenthesis. Nothing tricky, this is straight forward.

    What is nice about the riddle is that it would seem that it is either trivial or not doable. It turns out that it is doable but surprisingly difficult. Don't give up, it really is doable without any "cheats".

    1. Re:Reach 21 using 1, 5, 6 and 7 by ace1317 · · Score: 1

      any chance you could share the answer? it's been driving me insane. Thanks much

    2. Re:Reach 21 using 1, 5, 6 and 7 by maccallr · · Score: 1

      I've even tried genetic programming and can't find a solution. However it's a needle-in-a-haystack problem (one correct solution, everything else is incorrect) so it's not well suited to an evolutionary algorithm (stepwise increases in fitness are not possible).

    3. Re:Reach 21 using 1, 5, 6 and 7 by frakir · · Score: 1

      Actually there is one 'tricky' answer not violating your requirements:
      Newtonian symbol for the combination of k things drawn from a pool of n is (k over n) [means k is written over n within parenthesis). Also power is in fact mutiplication, so

      (7 over 5)* 1^6 = 7!/(5!*2!) * 1 = (7*6)/2 = 21

    4. Re:Reach 21 using 1, 5, 6 and 7 by tal_mud · · Score: 1

      VERY cute. I don't agree that it doesn't violate the rules, but it is still very cute.

    5. Re:Reach 21 using 1, 5, 6 and 7 by Anonymous Coward · · Score: 0

      I wrote a program to solve a similar problem (use 1, 3, 4, and 6 to make 24) one afternoon in college. It's in scheme because at the time I was a freshman taking the introductory programming course based on SICP. Not by a longshot the fastest solver (and fairly hackish in parts), but it did solve my problem and this one in less than a second, so it's good enough: http://tinyurl.com/cszt7

      Load it up and evaluate (solveall '(1 5 6 7) '(+ - * /) 21). It will find all solutions. This problem and the one I solved originally are hard because there is exactly one solution for each, and the solutions are slightly tricky.

  281. Solution by JedaFlain · · Score: 0

    S = 9
    E = 5
    N = 6
    D = 7
    M = 1
    O = 0
    R = 8
    Y = 2

    9567 + 1085 = 10652

    Work (not overly rigorous, includes some logical guesses):
    The problem can be expressed as such
    (1000*S + 100*E + 10*N + D) + (1000*M + 100*O + 10*R + E) = 10000*M + 1000*O + 100*N + 10*E + Y
    where
    0 <= S != E != N != D != M != O != R != Y < 10

    Simplify
    9000M + 900*O + 90N + Y = 1000S + 91E + 10R + D

    Due to the size of the coefficient on M, M must be 0 or 1.

    Assume M = 1
    9000 + 900*O + 90N + Y = 1000S + 91E + 10R + D

    The only solution that can balance the large value on the left is such that S = 9.

    Assume S = 9
    9000 + 900*O + 90N + Y = 9000 + 91E + 10R + D
    900*O + 90N + Y = 91E + 10R + D

    O must then be 0 for the same reason (as the 1 has been used).

    Assume O = 0
    90N + Y = 91E + 10R + D

    Play around with (mathematical term) your remaining choices. R must be 8 to bring 91E and 90N close in value. N = E + 1 for the same reason.

    Assume R = 8, N = E + 1
    90(E + 1) + Y = 91E + 80 + D
    90E + 90 + Y = 91E + 80 + D
    10 + (Y - D) = E

    Using a little guesstimation, D must be large and Y small, so
    Assume D = 7 (largest remaining number), Y = 2 (smallest remaining number)
    10 + 2 - 7 = E = 5
    => N = 6

    Having been told only one solution exists and having found a solution, DONE.

    This took a lot longer to type than to solve.

  282. Ok, here's mine by matt4077 · · Score: 1

    1 12 1112 3112 132112 1113122112 311311222112 what's the next line?

    1. Re:Ok, here's mine by matt4077 · · Score: 2, Interesting

      again, with breaks in it:
      1
      12
      1112
      3112
      132112
      1113122112
      311311222112

      what's the next line?

    2. Re:Ok, here's mine by cpt+kangarooski · · Score: 1

      Well, I think it ought to be 13211321322112.

      However, shouldn't it really go: 1, 11, 21, 1211, 111221, 312211, 13112221, 1113213211, etc.? I'm not sure how you're getting from 1 to 12.

      --
      -- This and all my posts are in the public domain. I am a lawyer. I am not your lawyer, and this is not legal advice.
    3. Re:Ok, here's mine by Anonymous Coward · · Score: 0

      Yes, nice, but you had it wrong. It should go:

      1
      11
      21
      1211
      111221
      312211
      12112221
      1112213211

    4. Re:Ok, here's mine by furax0 · · Score: 1

      quite easy : 13211321322112

    5. Re:Ok, here's mine by Anonymous Coward · · Score: 0

      This one's easy if you read it out loud...

      13211321322112

    6. Re:Ok, here's mine by Spydr · · Score: 1

      13211321322112

    7. Re:Ok, here's mine by radtea · · Score: 3, Insightful


      what's the next line?

      5.

      No finite sequence determines the subsequent.

      As such, "math puzzles" of the "what is the next number?" kind are not math puzzles at all--they are psychology and common-knowledge puzzles. They should be stated, "I'm thinking of a number. To me, the number is the next in the following sequence: (...). Your job is to guess, based on what you know of me (or people like me), of mathematics, and of common knowledge, which of the infinite number of mathematical relationships betweeen the numbers in that sequence is the one that is important to me."

      People who work in numerical methods are only too aware of how little information finite sequences contain beyond their own bounds. Interpolation is hard enough. Extrapolation is virtually impossible. Even simple sequences like "1,2,3,4..." can have literally anything as the next value--it is trivial to come up with generating functions that give integers for the first few integer arguments and wildly varying irrational values after that. Unless you know what the generating function is, the finite sequence tells you nothing. Guessing the generating function from a finite sequence is all about guessing what the questioner knows and what kind of generating function a person with their knowlege (or common knowledge) is likely to choose that would produce the given sequence.

      A modicum of mathematical knowledge is still required, but far more psychology is necessary.

      --
      Blasphemy is a human right. Blasphemophobia kills.
    8. Re:Ok, here's mine by Schroedinger · · Score: 2, Insightful

      All very true, but if the question were phrased: "What's the simplest generating rule for this sequence?" There would be a lot fewer answers and quite likely one unique answer. The emphisis should be on compressing the available information and not on predicting future information.

    9. Re:Ok, here's mine by Neurotoxic666 · · Score: 1

      13211321322112
      1113122113121113222112

      --
      You are more than the sum of what you consume. Desire is not an occupation.
    10. Re:Ok, here's mine by jefft · · Score: 1

      You have the sequence wrong. It's

      1
      11
      21
      1211
      111221
      312211
      13112221
      1113213211

    11. Re:Ok, here's mine by HalliS · · Score: 1

      Dude, the first two are
      1
      11

      But to answer your question, after
      311311222112
      comes
      13211321322112

      --


      My other UID is 1337
    12. Re:Ok, here's mine by Ergonomicon · · Score: 1

      You can fix this puzzle by changing the first line from "1" to "2". Then the answer is 13211321322112.

    13. Re:Ok, here's mine by Anonymous Coward · · Score: 0

      your first line should be '2'

      next line 13211321322112

    14. Re:Ok, here's mine by jonadab · · Score: 1

      > 311311222112

      13211321322112 comes next, then 1113122113121113222112

      Now, prove by induction that none of the numbers in this infinite series ever contain digits other than 1, 2, or 3.

      --
      Cut that out, or I will ship you to Norilsk in a box.
    15. Re:Ok, here's mine by Lanigironu · · Score: 1

      13211321322112

      To be honest, I only know that because I've seen it before. It's the "See-say" sequence.

      Cool thing: it can be shown that there will never be a number greater than 3 in it.

    16. Re:Ok, here's mine by BlueMan0025 · · Score: 1

      Answer is 13211321322112
      What is the next line ?

    17. Re:Ok, here's mine by Anonymous Coward · · Score: 0

      One of my faves.

      13211321322112

  283. The King and the Chalice solution(hopefully) by filipncs · · Score: 1

    I have a solution, but the prisoners have to know the number k:

    They choose one of them as a leader.
    When he finds a chalice "wrong side up" he flips it over. If it has the right side up, he doesn't touch it. He keeps track of the number of times, he has flipped it.

    The others flip it only when it has the right side up. If it has the wrong side up they don't touch it. They also keep track of the the number of times they flip it. They each only flip it (2k+1) times.

    When the leader is about to flip it back for the ((n-1)*(2k+1) - k) time, he answers yes to the question.
    Proof that it will always work:

    If only (n-2) of the non-leaders have been in the room, the max times the leader can have flipped it is:
    (n-2)*(2k+1) + k = (n-1)*(2k+1) - k - 1, so he cannot possibly answer yes too early.

    Every time one of the non-leaders flip it, it has to be reset. The king will reset it no more than k times, the leader will reset it no more than ((n-1)*(2k+1) - k -1) times, combined they will max reset it (n-1)*2(k+1) - 1 times. But the non-leaders will flip it (n-2)*(2k+1) times, so we can't get "stuck" either.

    1. Re:The King and the Chalice solution(hopefully) by filipncs · · Score: 1

      The above solution assumes that the chalice starts out being "right side up", if we don't want that asumption, just pick k:=k+1 instead.

    2. Re:The King and the Chalice solution(hopefully) by nharmon · · Score: 1

      This sounds like the best solution thus far.

    3. Re:The King and the Chalice solution(hopefully) by Anonymous Coward · · Score: 0

      Doesn't work: the king can starve the leader by only calling each other prisoner once, and then keep calling on the leader.

  284. Why its hard for smart people.. by MAdMaxOr · · Score: 1

    I've thought of puzzles like this being like search trees. It seems that we navigate possible solutions like a depth-first search, because one thought leads to the next, leads to the next... Smarter people can search deeper, but then they can take longer to find the answer to puzzles like this because they follow wrong paths longer. The solution: mentally switch to a breadth-first search. Try to throw you your last thought and come up with a completely fresh approach. Then do it again. After you have a few different approaches, then think about extending them.

    1. Re:Why its hard for smart people.. by Stevyn · · Score: 1
      I got this in one shot. The first answer was pretty much a random number. Then I saw the correct answer, thought about the name of a game, thought about a rose, and found the pattern they were looking for. It's visual, other than adding the petals of roses, no complex math is involved.

      People who try to run complex analysis on this problem aren't necessarily smarter. How does it make you smarter if you complicate a problem? Someone posted they ran Excel to find the answer. All this problem does is show how numbers are nothing special in mathematics, just another way of showing a relationship.

      Anyway, here's the pattern. Look at all the dice that have a dot in the center. Using numbers to show this relationship, that'd be all the odd numbered dice. Now the "petals" are the dots around the middle dot. So 1 ==> no petals, 3 ==> 2 petals, 5 ==? 4 petals. And of course all even numbers are not a rose. How many people even thought of a rose when attempting to solve this puzzle? Take a look at this picture and you'll see how a "rose" must have a dot in the center.

  285. Re:Petals of the Rose SPOLIER by ysegalov · · Score: 0

    i.e. 3 is 2 points, 5 is 4 points, all the rest are 0.

  286. Worst puzzle evar by billybob · · Score: 1

    I'm sorry, this is just dumb. I'm only repeating what others have said so far but maybe that will help drive in the point that this is Worst. Puzzle. Evar.

    With the king able to manipulate the chalice, there is absolutely no way for them to communicate to eachother, because the king can always turn the chalice back to the way it was before the prisoner entered the room. So every prisoner will always see the exact same thing. Stupid, stupid.

    --
    Joseph?
    1. Re:Worst puzzle evar by Anonymous Coward · · Score: 0

      Billybob -

      The king can't always manipulate the cup, he can only do it some k number of times. The recent suggestions take into account this limitation of the king.

    2. Re:Worst puzzle evar by brian0918 · · Score: 1

      "Stupid, stupid."

      Yes, you are. k is not undefined. k is a number that the king and prisoners know ahead of time.

    3. Re:Worst puzzle evar by Anonymous Coward · · Score: 0

      RTFP

      Aleph null is a number, so he's right.

  287. Problems with this kind of puzzle... by cgenman · · Score: 1

    My variant on solution #2 was apparently a little more violent than yours: Flip the switch rapidly until you burn out the bulb. That should take a lot less time than waiting for it to burn out. Static charge might also help.

    The problem with logic puzzles like this is that logic puzzles presuppose a lot of things. In the real world, you could pretty easily take a switch out of the wall and add a resister so that one of the bulbs was dimmer than the others. Or you could get to the other room and the bulbs could be high up in the ceiling and out of reach, and your solution is screwed. If you're fast enough you could theoretically throw the switch and make it to the other room in time to see the bulb change states. Considering all of the walls these days are a variant on carbonized newspaper, you could pretty easily kick a hole into the wall to see the lights change. You could pull the wire attached to the switch until you yanked back the bulb in the other room. Even without getting violent, every light switch seems to have a state in the middle which causes the bulb to be much louder than the rest.

    Heck, take off your clothes, cut / tear them into thin strands. Loop one strand around one of the switches in the "on" position, and hook that around something low to the ground, such as the bottom of a door frame. Walk to the other room. Pull the switch. Or cut the clothes and soak it in a liquid before anchoring it snugly to the switch just barely in the on position and something on the ground. Walk into the other room, and wait for the clothes to dry and shrink.

    Do you even know which way is the on position? I've walked into a lot of old houses where swithches were mounted with "down" as the on position, and without any labeling at all. Newer houses frequently use multiple switches, whereby the XOR of two switches determines whether or not a light is on. What about switches that are mounted Left / Right? Are you assured that all of the lights work? All of the switches work? Does the house have power?

    The only way that NONE of the light from the other room can reach the current one is if none of the switches did anything. If there was any light variance, you could measure that and get a relative position based upon strength.

    It also says that you can't see the other room. Are you blind?

    Logic puzzles, basically, are a nice way of communicating a simple state problem. And if you want it to work as a puzzle, you agree to this limitation / logical purity. Light switches only have two states. Walls are impermeable. No light gets through. That way you can permutate through the simplified logical consequences of each potential action and the ramifications thereof. Actual real-world solutions are usually much easier. A light in the real world may have a tremendous number of states, but in a puzzle it is on or off. A chalice in the real world has angle and position information, can be scratched into, fashioned into a weapon, stolen, etc, but in the puzzle it is either up or down. Otherwise it doesn't work as a puzzle.

    If you're proposing a logic puzzle, but you use a real-world side-effect that you don't make explicitly clear in the puzzle , you're violating how logic puzzles work. That doesn't make you smarter than people who solve lots of puzzles, it just means you've written a bad logic puzzle.

    1. Re:Problems with this kind of puzzle... by smiffy1976 · · Score: 1

      Who said it was a logic puzzle? It's a puzzle with elements of logic and an element of lateral thinking. Obviously you're just bitter that you couldn't solve it!
      How about this one? A man lives at the top of a tower block. Every morning he goes to work and uses the lift all the way, yet when he comes home he travels to the 42nd floor, gets out and uses the stairs. The lift is fully operational - so why would he behave like this?

    2. Re:Problems with this kind of puzzle... by RexxFiend · · Score: 1

      but if it's raining, he goes all the way up to his floor...

      --

      A crash reduces
      Your expensive computer
      to a simple stone.
    3. Re:Problems with this kind of puzzle... by smiffy1976 · · Score: 1

      Aha! That's a crafty little improvement on the original puzzle...

  288. So the solution is by NigelJohnstone · · Score: 1

    (based on an AC comment above and my bug fix to it)

    They choose a watcher
    If the watcher is called and the cup is upside down he flips it right side up
    If anyone else is called and the cup is right side up they flip it to be upside down, unless they've done it previously in which case they leave it alone.
    When the watcher has flipped the cup n+k+1 times he says yes.

    Since the King can only interfere k times, you have to out wait him, hence +k.
    The +1 is because the cup may not be right side up on first time.

    Being quite lazy and uncoffied, it may be +-1, so I'd add +16 because I'm a programmer and do stuff like that. But that strategy would work.

    1. Re:So the solution is by filipncs · · Score: 1

      No, it doesn't work in all situations:
      Lets say the king doesn't interfere at all, eventually all of the non-watchers will have flipped the cup exactly once, so the watcher will have flipped the cup n-1 times. But noone will ever flip it again and n-1 < n + k + 1, so they are stuck forever.

      I think I got it right:
      http://slashdot.org/comments.pl?sid=165444&cid=138 02205/ and
      http://slashdot.org/comments.pl?sid=165444&cid=138 02235.

  289. The 100 Monks (not easy) by Giszmo · · Score: 1

    Once a traveler got into terrible weather and seeked shelter at a monastery with high walls and a heavy gate. He knocked, but no reaction. He tried and tried till finally he was granted access only under the condition, he would never talk to anybody nore stare into peoples faces and leave the monastery early the next day.

    Well, Mr. Traveler was a stupid dumbass and while sitting at the table for supper, he asked loudly: "WHY DO AT LEAST TWO OF YOU HAVE SPOTS ON YOUR FOREHEAD?"

    The 100 monks were not happy at all and one explained to him:
    "We know that some of us might have spots on their forehead. That's the reason why we don't have mirrors here and don't speak a word. If we get to know to have a spot, we die the very next night." ...

    42 days later, all the monks with spots die. How many are they?

    (The monks see all others at supper every day and thus know if one is missing. They will not stop that habit now. Ignoring the facts or stop thinking does not help them. A monk either has a spot or not. They don't disapear.)

  290. Game show - car/goat behind the door by maccallr · · Score: 1

    I read this in a novel (Mark Hadden's excellent The Curious Incident of the Dog in the Night-time). You are a contestant in a game show. The host tells you that behind the three doors in front of you are two goats and one car (one item behind each door; the idea is to win the car, by the way...). You pick a door, and then the host opens one of the other two doors to show you a goat. The host now offers you one last chance to change your mind and pick the other remaining unopened door. Should you? (In other words, which strategy is better overall: stick or change?)

    1. Re:Game show - car/goat behind the door by maccallr · · Score: 1

      Doh! It's Haddon, not Hadden, and even though I swear I searched the entire thread for "game show" I missed this prior comment (which gives a bit more background). Sorry about that!

    2. Re:Game show - car/goat behind the door by ysegalov · · Score: 0

      Allow me to ask you back - what's the probability of winning if you switch?..

  291. Prisoner's paradox by zurab · · Score: 1

    [A man condemned to be hanged] was sentenced on Saturday. "The hanging will take place at noon," said the judge to the prisoner, "on one of the seven days of next week. But you will not know which day it is until you are so informed on the morning of the day of the hanging."

    The judge was known to be a man who always kept his word. The prisoner, accompanied by his lawyer, went back to his cell. As soon as the two men were alone, the lawyer broke into a grin. "Don't you see?" he exclaimed. "The judge's sentence cannot possibly be carried out."

    "I don't see," said the prisoner.

    "Let me explain They obviously can't hang you next Saturday. Saturday is the last day of the week. On Friday afternoon you would still be alive and you would know with absolute certainty that the hanging would be on Saturday. You would know this before you were told so on Saturday morning. That would violate the judge's decree."

    "True," said the prisoner.

    "Saturday, then is positively ruled out," continued the lawyer. "This leaves Friday as the last day they can hang you. But they can't hang you on Friday because by Thursday only two days would remain: Friday and Saturday. Since Saturday is not a possible day, the hanging would have to be on Friday. Your knowledge of that fact would violate the judge's decree again. So Friday is out. This leaves Thursday as the last possible day. But Thursday is out because if you're alive Wednesday afternoon, you'll know that Thursday is to be the day."

    "I get it," said the prisoner, who was beginning to feel much better. "In exactly the same way I can rule out Wednesday, Tuesday and Monday. That leaves only tomorrow. But they can't hang me tomorrow because I know it today!" ... He is convinced, by what appears to be unimpeachable logic, that he cannot be hanged without contradicting the conditions specified in his sentence. Then on Thursday morning, to his great surprise, the hangman arrives. Clearly he did not expect him. What is more surprising, the judge's decree is now seen to be perfectly correctly. The sentence can be carried out exactly as stated.

    1. Re:Prisoner's paradox by Flyboy+Connor · · Score: 1
      This only seems paradoxical because the prisoner is a poor logician. He will always be hanged on Thursday, so he could have known this, and it should not have been unexpected. The judge, therefore, is a liar. Since many people won't believe me if I say he will always be hanged on Thursday, here's the proof:

      We start with two statements:

      1. Statement 1 and statement 2 are either both true or both false.
      2. The prisoner will always be hanged on Thursday.

      If statement 1 is true, statement 2 must also be true, since it cannot be true that both are false and therefore both must be true. If statement 1 is false, it cannot be that statement 2 would be false, since in that case statement 1 would be true. Therefore, regardless whether statement 1 is true or false, statement 2 must be true. Ergo, the prisoner will always be hanged on Thursday. QED.

  292. Re:Math and science are obsolete by Anonymous Coward · · Score: 0
    The trouble with the Laffer curve is that :
    • the income=f(tax ratio) is not a smooth function.
    • it is by all account not even a function, eg you can have more than one value of revenue for one tax ratio.
    The usual parabol-like curve is based on a very simplistic model which is useless except for pushing an ideological agenda. The only sound reasonning in this is that high tax rates increase the incentive for escaping taxes, which is commmon sense. No need for half-baked maths to get that.
  293. I'm Lost... by KidHash · · Score: 1

    4 8 15 16 23 42 Explain

    1. Re:I'm Lost... by cdf12345 · · Score: 1

      108 duh.

      Now reset the clock alrady.

      --
      Chicago2600.net more than a lifestyle, its a survival trait.
  294. Sounds reasonable by NigelJohnstone · · Score: 1

    "They each only flip it (2k+1) times."

  295. My favourite by markh1967 · · Score: 1

    I like this one because it's simple but the result is surprising (to me at least).

    You have a rope tied around two trees that are 200 metres apart. A 10 metre tall truck has to pass under the rope by driving through the centre of the gap between the trees. How much slack do you have to put into the rope to allow the centre of it to be lifted over the 10 metre tall truck?

    --
    Input error. Replace user and press any key to continue.
    1. Re:My favourite by whmac33 · · Score: 1

      Ok, who makes 10m tall trucks. That's like 35 ft isn't it?

      Zl thrff vf ab fynpx, gvr gur ebcr gra zrgerf hc ba gur gerrf.

  296. A fun divisibility problem by Den_onda_kotten · · Score: 1
    What is the smallest number that is written with only ones and zeroes which is divisible by 225?

    1. Re:A fun divisibility problem by Seferino · · Score: 1

      0 ?

    2. Re:A fun divisibility problem by whmac33 · · Score: 1

      no, no, it's -0.

  297. indefinate... by StarkRG · · Score: 1

    Actually, I'd say it's indefinate, not undefined... just as 0/0 is indefinate, it could be every number (0*n=0, thus 0/0=n for any n) n/0 for any non-zero n is undefined (there's no real number you could multiply zero by to get n) 0^0 is either 1 or 0 depending on how you want to look at it: n^0 = 1 or 0^n = 0, so it has a finite result set (which is a bit easier to deal with than 0/0's infinately infinate result set...) Ok, here's a mind bender: you say that there are infinately many integers, and there are infinately many non-integers between each pair of integers, does this mean that there are more non-integers than there are integers? infinity * infinity is still infinity... My answer would be that, yes, it is still infinity, it's just an infinately larger infinity... You could even say that it's a significantly larger value of infinity... What's infinity divided by infinity? :)

    1. Re:indefinate... by ezzzD55J · · Score: 1
      Actually, I'd say it's indefinate, not undefined... just as 0/0 is indefinate, it could be every number (0*n=0, thus 0/0=n for any n) n/0 for any non-zero n is undefined (there's no real number you could multiply zero by to get n)

      It's true what you say, but 'real' (sorry ;)) mathematicians say 0/0 is undefined.

      Ok, here's a mind bender: you say that there are infinately many integers, and there are infinately many non-integers between each pair of integers, does this mean that there are more non-integers than there are integers? infinity * infinity is still infinity... My answer would be that, yes, it is still infinity, it's just an infinately larger infinity... You could even say that it's a significantly larger value of infinity... What's infinity divided by infinity? :)

      These things have been defined quite well. The number of positive integers (N) is 'aleph null', or countably infinite. It's exactly equal to Z (including zero and negative integers) and Q (fractions), because there is a 1:1 mapping. It's less than the number of real numbers (R) because there is no 1:1 mapping (cantor's diagonal argument). As I recall it's an open question whether there is an infinity that is less than aleph 1 but less than aleph 0.

      For more about this, see cardinal numbers.

    2. Re:indefinate... by gordo3000 · · Score: 1

      actually, its not that it is an open question. It depends on how you define groups/sets. using what we have today, it has been shown that you cannot show if such a set exists or doesn't exist, because all our math is completely consistent given either one. There is an incompleteness theorem(I forgot who) which states that if you have a set of rules to govern groups and sets that is complex enough to describe our numbers, then there will always be things that are not provable or disprovable, and the existance of a set which order less than c but greater than aleph0 is such a thing.

    3. Re:indefinate... by Tony-A · · Score: 1

      For your mind bender,
      There are precisely as many fractions as there are primes, since either can be put into 1-1 correspondence with the integers.
      Between any two different reals, there are infinitely many fractions, however there are strictly more real numbers than there are fractions.

      0^0 could be defined as 1 since x^0 = 1 for non-zero x.
      0^0 could be defined as 0 since 0^x = 0 for non-zero x.
      Like the question of whether negative numbers exist or how many lines can be drawn parallel to a given line through a point not on that line.
      Depending on your choice of definitions, you get rid of some porblems at the expense of causing others.

    4. Re:indefinate... by StarkRG · · Score: 1

      Ack... sorry about the lack of line breaks... apparently I was too tired to be posting on slashdot...

    5. Re:indefinate... by StarkRG · · Score: 1

      It's true what you say, but 'real' (sorry ;)) mathematicians say 0/0 is undefined.
      Say what you will, my Calculus professor is a retired physics professor from UC Berkeley, he basically said the same thing (actually he's the one who gave me the term indefinate, I had been saying it was anything...)

    6. Re:indefinate... by Mikkeles · · Score: 1

      You would be thinking of Godel (for incompleteness) and the continuum hypothesis.

      --
      Great minds think alike; fools seldom differ.
    7. Re:indefinate... by gordo3000 · · Score: 1

      thanks, I knew they existed, but I have misplaced by old proof textbook

    8. Re:indefinate... by jafuser · · Score: 1
      --
      Please consider making an automatic monthly recurring donation to the EFF
  298. The Diamond Question by Anonymous Coward · · Score: 0

    The Diamond Question

    You are an intelligent but greedy treasure hunter. You and other 4 equally intelligent and greedy treasure hunters have obtained a chest containing 100 identical diamonds. The 5 of you come up with the following plan to split the treasure:

    - First, the order for the treasure hunters to speak is decided with a draw;
    - The first person to speak has to tell everyone his scheme of how the diamonds should be split among the group;
    - After the person described his scheme, the other treasure hunters will vote;
    - If over half of the group (i.e. > 50%) vote for the scheme, it will be used;
    - Otherwise, the scheme will be discarded and the person evicted from the group. He will have no say and will not get any of the diamonds. Then, the group will go back to step 2 and the next person will describe his scheme, the others will vote, and so on.

    Luckily, you have won the draw and get the chance to speak first. How will you design your scheme? Obviously, you cannot split the diamonds evenly (i.e. each person get 100/5 = 20 diamonds) because the other greedy treasure hunters will simply vote against your scheme (and also evict you in the process) for a chance to get a bigger share. Is there a scheme that give you the maximum number of diamonds and getting over half of the group to support it?

    Note: you need to get over 50% of support including yourself, which means you need at least 2 votes for a total of 3 for, 2 against

    1. Re:The Diamond Question by Myopic · · Score: 1

      offer the second guy and the fourth guy one stone each; the others get none. if the vote were to ever pass to the 2nd and 4th players, their plans would always be voted against by the other greedy players, thus neither #2 nor #4 will get anything at all, unless you offer them something.

  299. No Paradox by cgenman · · Score: 1

    Clearly the barber is a Cretan. :)

    The barber problem is not really a problem in that there is no paradox. Your ackward wording makes it unclear, but the common phrasing of this problem is "the barber shaves all men who don't shave themselves." That means that of the subset of all men who don't shave themselves, the barber shaves them. Don't shave themselves -> Barber shaves them. However, the opposite is NOT specified by the rules of logic. Shaves themselves does not -> Barber does not shave them. It does imply something known as the contrapositive, the negative of both sides of the equation with the order of implication reversed... Hence if the barber does not shave them, then they must shave themselves.

    None of this precludes the barber from shaving someone that shaves themselves. Or precludes the barber from not shaving someone who shaves themselves. This says NOTHING about people who shave themselves. It only makes a logical statement about the subset of people who do not shave themselves.

    Hence, there is no problem if the barber shaves themself.

    Of course, I'm using the common form of the problem not the one from the poster above. The one from the poster above seems to be trying to close that "loophole" in the equation, but just winds up saying the equivalent of "I've got a dollar, but I've only got twenty-five cents."

  300. Twenty-Four Coins by Mithrandur · · Score: 1

    You have 24 coins, one of which is measurably heavier than the others, but otherwise indistinguishable. You have a pair of scales. Find the heavy coin in the minimum number of weighing operations.

    I like this one as an interview question for potential developers. The first attempt leads to a situation that, if extrapolated on, reaches the correct solution.

    --
    vi is my shepard, I shall not font.
    1. Re:Twenty-Four Coins by Gunstick · · Score: 1


      it is way more tricky if you don't know if the coin is heavier or lighter.
      Usually this problem is done with 12, not with 24 because 12 is already difficult.

      Known also as the "12 balls problem"

      George

      --
      Atari rules... ermm... ruled.
  301. Re:Algebraic proof: 2=1 by tehshen · · Score: 1
    Try this one then:
    1. 1 = 1
    2. -(1/1) = -(1/1)
    3. -1/1 = 1/-1
    4. (-1/1)^½ = (1/-1)^½
    5. (-1)^½ / (1)^½ = (1)^½ / (-1)^½
    6. i / 1 = 1 / i
    7. i / 2 = 1 / 2i
    8. i/2 + 3/(2i) = 1/(2i) + 3/(2i)
    9. i(i/2 + 3/(2i)) = i(1/(2i) + 3/(2i))
    10. (i)/2 + (3i)/(2i) = i/(2i) + (3i)/(2i)
    11. (-1)/2 + 3/2 = 1/2 + 3/2
    12. -1 + 3 = 1 + 3
    13. 1 = 2

    --
    Guy asked me for a quarter for a cup of coffee. So I bit him.
  302. The Circular Abbey by sperxios10 · · Score: 1

    The Place

    There is a circular abbey, inhabited by the most devoted but intelligent monks. Each monk spends its entire life in its own cell. The cells are line up one next to the other, around the atrium. Each cell has one balcony looking over that round atrium from where each monk can inspect the rest. All the monks visit that balcony every day of their life, at the same time in the morning and look at each other. The monks are not allowed to communicate with anyone by any means (words, signs, telepathy or whatever) at any time.

    The Voice of God

    One day, the monks hear the voice of God whispering them the following words:
    "Tomorrow, some of you will be chosen to abandon this vain life. This night, at your sleep, an angel of death will sneak into your cells. This angel will paint a black spot on the forehead of the chosen ones. It is your duty to obey my will, so, those among you currying the spot should within, a finite period of time, end your life and come to join me!.

    The Conundrum

    The next day, there were indeed monks with spots. Of course since there were no mirrors inside the cells, and the spots weren't relief, the monks couldn't tell by themselves whether they had the spot. But finally, the chosen monks... committed suicide!

    How they did it?

  303. 4x4x4=8x8 (original) by 2901 · · Score: 1

    Try to partition a 4x4x4 cube into 8 pieces, each of 8 cubelets.

    Each piece must hold together as a physical object.
    ie cubelets must be joined face-to-face.

    So far this is very easy.

    The extra twist is that the center of gravity of each piece must lie
    outside of the piece.

    Example 1: the 0,0,0 and 0,0,1 cubelets share a face, but the center of gravity,
    at 0,0,1/2 lies on the face of 0,0,0, so it is not allowed

    Example 2: the 0,0,0,and 2,2,2 cubelets have center of gravity 1,1,1.
    That is outside both cubelets, but they don't touch so that is not allowed
    either.

    The origin of the puzzle is in statistical pattern recognition: come up with
    a gnarly but fair test for recognition methods aimed at twisty shapes in low
    dimensions.

    There might not be a solution. I imagine it as a computer search problem.
    So the puzzle is the meta-puzzle: how to write a program to solve this?

  304. The laughable thing... by skids · · Score: 1


    Is that the adherents to this are living oxymorons. They are simultaneously being taken in by this tripe theory, but for the theory to hold water, it has to capitalize on an extreme cynicism -- the idea that any money taken by the government is completely wasted and does not in and of itself stimulate the economy (through contracts, enabling services, and quality of life.)

    So they are cynical fools.

    1. Re:The laughable thing... by Impy+the+Impiuos+Imp · · Score: 1

      An economy is stimulated just as much by a rich person buying a yacht as it is by a government buying a weapons system. Arguably more since the yacht is a much more productive enterprise.

      And most of what "the rich" have is reinvested. In productive areas. They don't stuff it in their mattresses.

      And for "huge government lover" theories to "hold water", they have to capitalize on extreme optimism -- the idea that any money taken by the government is not completely wasted, and worse, not used to buy votes.

      --
      (-1: Post disagrees with my already-settled worldview) is not a valid mod option.
    2. Re:The laughable thing... by Skade360 · · Score: 1

      Ahh yes, but the thing is, the govt still has enough money to buy votes as you so put it. Just because the govt has lowered the amount of money it recieves from Taxes does not mean it has lowered how much money they spend. They get this extra money from borrowing, which actually hurts the economy. Each year the goverment borrows more money, which means that the goverment is having less cash to spend every year, and it is taking up more and more money which the consumers can borrow. Currently the US Govt. is borrowing 1,000,000,000 USD a DAY from over seas just to keep it self running. Debt eventually has to be paid back. On the buying votes question, take a look at the massive energy spending bill or the massive road bill the feds just past and tell me that all the pork in there is not buying votes.

    3. Re:The laughable thing... by Anonymous Coward · · Score: 0

      And most of what "the rich" have is reinvested. In productive areas. They don't stuff it in their mattresses.



      So? Most poor people "invest" about 200% of their income. What we need is more poor people.

    4. Re:The laughable thing... by Anonymous Coward · · Score: 0

      An economy is stimulated just as much by a rich person buying a yacht as it is by a government buying a weapons system. Arguably more since the yacht is a much more productive enterprise.



      Uh, do you really think the yacht industry is all that large and significant a force in anyone's national economy? If you pour $15 million into a yacht, how many people benefit? If you pour $15 million into semiconductors, how many people benefit?

      'Nuff said.
    5. Re:The laughable thing... by BJZQ8 · · Score: 1

      Yacht:$15 million benefit Semiconductors:$15 million benefit More seriously, though, most semiconductors are made overseas. Most yachts are made in the US. So the semiconductor money is going somewhere else, to filter through lots of hands before, perversely, being borrowed back by the US government.

    6. Re:The laughable thing... by Procyon101 · · Score: 1

      That argument assumes that only the government can be relied on to invest in semiconductors. In reality, since the government has little or no profit motive in it's expenditures, it will be MORE likely to "waste" money by spending in areas that are sub-optimal. For instance, a pending semiconductor boom will be invested in heavily by private dollars, whereas government spending is just as likely to put that money into tobacco subsidies. Public spending is handicapped by ignoring the "communication" of the market that is prices and therefore reacts more sluggishly when investing. Private spending has a tendancy to put money where money is needed in the economy naturally, whereas governmental spending requires massive amounts of research into a chaotic system that often turns out wrong. Hence governmental investment (for economic investment purposes only, neccissary public welfare and defense research projects should be evaluated individually) is grossly inferior to just letting the populace keep it's own money and should be eliminated.

  305. Re: Seems to be it cannot be solved by JaredOfEuropa · · Score: 1

    ... unless there are other constraints, such as the king having to turn the chalice k times, eventually. The description specifically states that the king may do so, though.

    If there only is a solution that relies on the king flipping the chalice k times, then the prisoners are boned, since the king is not obliged to flip it at all.
    If there is a solution that does not rely on the king flipping the chalice k times, then the king (knowing the solution and the complete state of the game) can simply wait until the cup indicates a success, flip it, hide the smug grin on his face, and call in the appropriate prisoner.

    --
    If construction was anything like programming, an incorrectly fitted lock would bring down the entire building...
  306. Two Envelopes Puzzle by Bob+Hearn · · Score: 1

    I write out a check to you for some amount, $X, unknown to you, and then I write out another check for $(2*X). I put each in an envelope, and put the envelopes in a hat.

    You choose an envelope from the hat. After opening it, if you like, you may instead take the other envelope. Either way, you get to cash one of the checks. So - what is your best strategy?

    Here are two seemingly airtight arguments, which conflict with each other.

    1. You gain no information when you open the envelope, since you have no idea what X was, so switching clearly makes no difference - you are still getting one of the checks at random.

    2. Call the value of the first envelope you drew Y. Now, there's a 50% chance it was the larger check, and a 50% chance it was the smaller check. Therefore, the expected value of the other check is .5 * Y/2 + .5 * 2 * Y = 1.25 * Y. Therefore, switching gets you an expected gain of 25%, so you should switch.

    They can't both be right. But where is the flaw in the reasoning?

    Extra credit - believe it or not, both are wrong! There is a strategy by which you can do better than just taking the envelope you drew, but strategy 2 is not it. What is this strategy?

    1. Re:Two Envelopes Puzzle by SporkLand · · Score: 1

      The reasoning behind strategy number 2 seems to be off in a few ways in my mind. Maybe it is just how you worded it. It seems to me that you need to compare two strategies in order to figure out if you are making anything.

      y = small amount
      Strategy A: Always keep first check .5 * y + .5 * 2 * y = .5y + y = 1.5y

      Strategy B: Always take second check (aka your #2 above) .5 * y + .5 * 2 * y = 1.5y

      Strat A and B are equivalent, which is what your number 1 seems to be saying. But what your number 1 seems to neglect is the fact that when you look at the value of the check you are indeed getting information.

      If you multiply by 2, the resultant value should be even. Assuming that the small value could be odd 50% of the time, you could setup a strategy like so.

      If check value is odd, switch. If check value is even keep it.

      y = small value
      50% of the time you will get the small value, and 50% of that you will get the small even value. So the payoff would be: .25 * y + .75 * 2 * y = 1.75y

      which is better than your nieve strategies listed above. I don't think I am up to proving that this is indeed the best strategy.

      Let me know if I'm right, okay? :)

    2. Re:Two Envelopes Puzzle by Bob+Hearn · · Score: 1

      Oh, X doesn't have to be an integer. So you can't gain any information by noticing whether the dollar amount is even or odd.

      Somebody else posted the same puzzle after me, but that's where the discussion seems to be:

      http://ask.slashdot.org/comments.pl?sid=165444&thr eshold=1&commentsort=0&tid=228&mode=thread&cid=138 03894

    3. Re:Two Envelopes Puzzle by SporkLand · · Score: 1

      Last time I checked the US money system goes to pennies as it's lowest denomination and there for would still be limited to multiply by two exploit. (example, you can't get 0.15 cents by multiplying by any normal money value). So if you do X * 100 and check if it's odd it would go the same way as I specified before.

      I do believe this is a valid technique given the way you've specified the problem, unless you are allowing fractions of a cent in order to turn the value into a real number, but none of the banks I deal with will take .00025 * 1cent. Although I'm sure there are some that do, but they more than likely have their rounding limit, so you just find that and multiply appropriately.

      Can you post or send your method, so I can see how it compares?

  307. [ANSWER] Number of points required to define... by sjampoo · · Score: 1

    One. You can do this by using just one point. A point has three arguments, the X,Y and Z value, now imagine a plane through the (0,0,0) point. The X argument specifies the 'pitch' of the plane, the Y argument the 'roll' and the Z argument translates the plane over the Z-axis. For example, when you define the Cartesian space as real values from 0-1, the point (0,0,0) defines a plane spanned by the X and Y axis. The point (0.5,0,0) defines the XY plane tilted at 45 deg up. The point (-0.5,0,0) defines the XY plane tilted down at 45deg. The point (-0.5,1,0) defines the plane perpendicular to the previous plane. Now when the plane does not intersect the z-axis at the (0,0,0) point just use the z-argument of the position where it does intersect the Z-axis. While this function already lets you define most planes there are a few exceptions, these are planes parallel to planes described by 2 of the basis axis which do not cross the z-axis. A way to still describe these planes is to define an exception that whenever a plane is parallel to the X or Y axis, ie (1,0,0) or (0,1,0) the z-argument does not translate the plane over the X-axis but over respectively the Y or X axis. I hope this makes some sense. -- Nicholas Piël

  308. One easy, one hard by smilindog2000 · · Score: 1

    In case it hasn't been posted, yet, here's a traditional logic puzzle:

    You're in a room with three light switches. They control three lights in another room. Your task is to play with the switches, then go to the other room and determine which switches control which lights. It can be done in one trip. That's the easy one.

    Here's the hard one...

    It's easy to get out of a maze if you have a magic-marker in your hand, right? You mark doors with an X as you go through them, and rooms with an X on the floor when you first enter them, and remember the door you came through with an --> or some such mark. When in a room, go through an unmarked door. If you come to a room that's been visited, go back. If there are no unmarked doors left, take the one with the arrow. Basically, just do a depth-first search, with a linear time solution.

    What if you introduce one-way doors between rooms? Assume that you can't peek and look into the next room, but instead must commit to going through the door before knowing what's on the other side. All you have is your magic marker, and you can remember a few numbers in your head. You have no sense of direction, and can't make a map.

    There's lot's of interesting conclusions, but no simple solutions that I know of. If I ever get around to it, I'm going to build a giant one-way door maze in my basement. I'll put bad kids in it and let them starve to death ;-)

    --
    Beer is proof that God loves us, and wants us to be happy.
    1. Re:One easy, one hard by fishnuts · · Score: 1

      first one:
      turn switch #1 on, turn switch #2 off, turn switch #3 on. wait two or three minutes, and turn switch #3 OFF. immediately go to the other room, and feel the two light bulbs that are off. one will be cold, one will be hot. the cold "off" bulb is controlled by switch #2, the hot "off" bulb is controlled by switch #3.

    2. Re:One easy, one hard by SpaceNinja · · Score: 1

      Second problem: Clearly you have to assume that there is a directed path to the exit from any room. With that assumption, you don't need to remember any numbers. Just put a tick next to a door before you go through it and in any room always choose to go through a door with a minimal number of ticks. Anyone want to furnish the proof of correctness?

    3. Re:One easy, one hard by smilindog2000 · · Score: 1

      This works! Another algorithm that works is just run screaming through the maze at random (screaming optional). These are the two answers that I often hear. Now, for the hard part. Is it optimal? What's it's order run-time. Can you do better? I know... it's mean...

      --
      Beer is proof that God loves us, and wants us to be happy.
    4. Re:One easy, one hard by SpaceNinja · · Score: 1

      Well you'll have to tell me how fast you're running if you want to know the run-time. :) But seriously, are we just talking about a directed graph algorithm or do I need to make use of the planar embedding. Cuz if you're looking for me to think about geometry, I'm too lazy :). "small number of numbers" means that you're looking for constant space but I can encode additional constant space data in each node?

    5. Re:One easy, one hard by smilindog2000 · · Score: 1

      No planar embedding. Assume a 3-D maze. You can write what you like at each node, if it's constant space data.

      It's basically a directed graph problem, but the kicker is that it's you with a marker, not a computer. The inability to go back through an edge is a physical constraint, which makes this problem different than problems faced by programmers. The optimal solution on a computer would be a simple depth first search with a linear time solution.

      One thing I've heard is that all computer problems (not algorithms) with proven optimal order run-times are either constant, linear, n*log(n), n*log(log(n)), or expodential. For example, the problem of sorting using comparison is optimially solved in O(n*log(n)), but the bubble-sort algorithm is O(n^2). Are there no problems proven to require O(n^2) or O(n^3)?

      I find that a simple maze to use for analysis is a linear chain from start to exit. At each node, there is also an edge back to the start. The random "run screaming" algorithm trivially requires expodential run-time for this maze, unless you're really fast :-). How long does your algorithm take?

      --
      Beer is proof that God loves us, and wants us to be happy.
    6. Re:One easy, one hard by SpaceNinja · · Score: 1
      Gah, I typed out a response yesterday and lost it when another user rebooted me. The problem is as I expected it. Your comment about proven optimal times surprises me -- I'm pretty sure that there are problems that are Omega(n^2), but I'm not sure what's proven.

      My algorithm is also O(2^n) on your graph, but I never claimed it was good :). I have a some inklings of a better algorithm that keeps track of the number of edges you've seen and the number you've taken, and jots that down by each door. It seems like some scheme such as this should allow you to identify 'dead' paths that loop back to places you aren't interested in. I'm not sure of the details though. I'm interested in hearing your better answer. Do you an algorithm that you believe to be optimal?

    7. Re:One easy, one hard by smilindog2000 · · Score: 1

      I've seen multiple algorithms that are O(n^2), and a proof that O(n^2) is optimal. So, in a sense, the problem is solved, however, the algorithms I've seen so far are so complex, that it's difficult to prove that they are correct.

      Generally, they make use of the fact that you can back up one spot by following the most recent loop. The idea is that instead of marking each door with a tick mark, you mark it with a number that you increment each time you go through a door. So, when you come to a place you've been to before, you can back up by following the highest numbered doors until you reach the previous room. You have to keep track of three numbers, your door counter, and the number on the floor of that last room you were in, and a counter so you can label new rooms with a unique number.

      However, this only works for backing up one room. As I recal, the modifications required to make this work basically convert the algorithm to depth-first search, but you have to embbed the stack info in numbers on the floors and doors, and you have to be able to pick up the depth-first search state whenever you come to a room that has not been finished. The hard part is proof of correctness.

      I'd be very interested in hearing a good algorithm that wasn't so complex that I had lingering doubts about whether or not it actually works!

      --
      Beer is proof that God loves us, and wants us to be happy.
    8. Re:One easy, one hard by SpaceNinja · · Score: 1
      "Generally, they make use of the fact that you can back up one spot by following the most recent loop..."

      I contemplated something almost exactly like this, but it started getting complex and I thought I was looking for a known elegant solution! Anyway, it's an interesting problem and I'll let you know if I come up with anything.

  309. continue this list by Compunerd · · Score: 1

    the following list seems easy to continue. find the other solution 3,1,4,1,5,....

    --
    Computers are like air conditioners.
    - They stop working when you open Windows.
    1. Re:continue this list by cmeister2 · · Score: 1
  310. Re:The Circular Abbey (SPOILER) by Bob+Hearn · · Score: 1

    This is an oldie (but a goodie).

    First, suppose that there is just one marked monk. Then the next day, when they all go to the balcony, he will see that nobody else has a mark. Therefore, since he knows that somebody is marked, he must be marked, and thus he should commit suicide.

    Now suppose there are two. Each of them sees just one other marked monk. Now, the next day, they *still* see one other marked monk. But, if there were only one, he would already have commited suicide. Therefore, each then knows that he must be marked as well, so both should then commit suicide.

    In general, if N are marked, they will each see N - 1 other marked monks. If, after N - 1 days, they have not committed suicide, then they all know there must be N, and they should then commit suicide.

  311. Eezee Formula ... by divec · · Score: 1
    Here's how to work it out quickly in your head, say for dice 3, 3, 2, 3, 3
    perl -le '$a+=($_-3)**2%9%4*$_ for @ARGV; print $a' 3 3 2 3 3
    --

    perl -e 'fork||print for split//,"hahahaha"'

    1. Re:Eezee Formula ... by Anonymous Coward · · Score: 0

      Are you the author of the Malbolge interpreter, or just a regular sicko? The right answer is:
      perl -le '$a+=($_-4)**2%9%4*($_-1) for @ARGV; print $a' 3 3 2 3 3

  312. The Curious Incident of the Dog in the Night-Time by jmh55 · · Score: 1

    You are through to the final round of a game-show and have a chance to win a car which is hidden behind one of three doors. Behind the other two doors are goats.

    You must choose one of the doors. The host then opens a different door to the one you selected to reveal a goat, leaving only two doors. You then have the option to stick with your initial choice, or switch to the other unopened door.

    So, assuming you prefer cars to goats, what is the best strategy to adopt? :

    a.) always stick with your initial choice
    b.) always switch
    c.) it doesn't matter

    What I really like about this puzzle is that just about everyone who sees it knows the answer staight away, is absolutely certain that they're right, and is completely wrong.

    (the subject line is taken from the title of the book where I first read this.)

  313. 1 - 0 = 0 by kronocide · · Score: 1
    This is more of a joke than a puzzle, but worthy of a thought perhaps.

    N is the set of all integers. M is the set of all integers except 0. Given the associativity and commutativity of addition, removing one member from an added set of integers must of course be equivalent to subtracting the same number from the sum of the set.
    SUM(N):
     
      1 +
    + 0 + 3 + (-1) + (-2) = 0
    + 2 + 5 + (-3) + (-4) = 0
    + 4 + 7 + (-5) + (-6) = 0
    + ...
    = 1
     
    Sum(M):
     
      1 + 2 + (-1) + (-2) = 0
    + 3 + 4 + (-3) + (-4) = 0
    + 5 + 6 + (-5) + (-6) = 0
    + ...
    = 0
     
    N = {x: x is an integer}
    Sum(N) = 1
    M = N - {0}
    Sum(M) = 0
    ----------
    1 - 0 = 0
  314. Re:Math and science are obsolete by Impy+the+Impiuos+Imp · · Score: 2, Insightful

    Never let logic and reality get in the way of a good, liberal hate-on for Republicans.

    --
    (-1: Post disagrees with my already-settled worldview) is not a valid mod option.
  315. Re:Absolute Hardest Puzzle Ever- proceed with caut by kronocide · · Score: 1

    Good riddle.

    Can I ask all three questions of the same god?

  316. Indisputably Correct Answer by Shaper_pmp · · Score: 1

    I asked a friend of mine this the other day, and he instantly came back with the answer... "12 arbitrary units".

    I was suitably impressed, especially since it answers practically any quantitative question, and always correctly.

    (Actually it also reminds me of the old "How long is a piece of string?"... "Twice as long as half its length.")

    --
    Everything in moderation, including moderation itself
    1. Re:Indisputably Correct Answer by rtisbute · · Score: 1

      Any sentance which is logicaly a well formed formula, and tautologous with respect to the woodchuck may be sufficient to prove the antecedient embedded in the question. :) The longer sentences just sound more interesting!

  317. Alternate solution* by Atario · · Score: 1
    1. Turn on switch 1
    2. Wait a hundred years
    3. Turn on switch 2
    4. Go to light bulb room
    5. The on bulb is connected to switch 2, the off bulb to switch 3, and the burned out bulb to switch 1



    * Solution may only work if you're really really committed to it, or are Wowbagger the Infinitely Prolonged


    --
    "A great democracy must be progressive or it will soon cease to be a great democracy." --Theodore Roosevelt
  318. Re:Math and science are obsolete by Impy+the+Impiuos+Imp · · Score: 2, Insightful

    While it is true people are greedy and will continue to work hard, even as more and more gets filched by the government, at some point revenue will decrease because people will stop working so hard for diminishing returns.

    It's very cynical to tout as good a government that lays like a 2000 pound pig on top of the population, and then shouting joy about it as the population barely moves it around, said movement, if nothing else, caused by the economic activity necessity to stay alive.

    But see, if we take taxes, i.e. confiscate money that is not ours, to use for projects that we approve of then it doesn't feel like stealing to us.

    Which I find as a disgusting attitude, and why I have little long-term hope for humanity. They preform all the age-old tricks of a dictator, but laundered because it's at the behest of power hungry, charismatic individuals who launder it via "see, the voteres elected me and want it!"

    --
    (-1: Post disagrees with my already-settled worldview) is not a valid mod option.
  319. How many days by Muhammar · · Score: 1

    How many days can Snowhite cook - if every day she cooks twice as many dwarves as the day before?

    --
    I doubt that we will ever figure out - and I suspect that even if we did figure out we couldn't do much about it
    1. Re:How many days by slavemowgli · · Score: 1

      As many days as she wants. On the first day, she cooks 0 dwarves; on the second day, she cooks twice that much, which is still 0 dwarves; and so on, ad infinitum (or ad nauseam, which probably is more appropriate when you cook dwarves).

      --
      quidquid latine dictum sit altum videtur.
  320. Re:Math and science are obsolete by Impy+the+Impiuos+Imp · · Score: 1

    > It's more productive to impart knowledge than to accuse one who lacks it of being a fool.

    Hint to those who resort to namecalling: When you namecall, you are angry. You are angry because, subconsciously, you recognize the truth in your opponent's argument, and cannot come up with a legitimate response, and you know it.

    So when calling someone a "fool", think to yourself: "He may very well be right, and I have no real response." Now there may be one, you just don't know it yet. And your argument is now on thin ice.

    What's that saying from that idiotic "make yourself more erudite" commercial? Ah, yes. "Better to reinforce your argument than raise your voice." (Ok, granted, that attempt at alliteration was somewhat strained...)

    --
    (-1: Post disagrees with my already-settled worldview) is not a valid mod option.
  321. Galley's Rule of Nines by Galley_SimRacer · · Score: 0

    Galley's Rule of Nines demonstrates a simple mathematical rule that I discovered about twenty years ago. You can take any positive whole number with at least two digits, and with a few manipulations, the end result is always nine! So how does it work? There are two parts to the rule: Part One: If you find the sum of the digits of any whole number (larger than nine) and subtract that sum from the original number, the result will always be a multiple of nine. Part Two: Every multiple of nine's digits will add up to nine (or another multiple of nine, who's digits will add up to nine, etc.) In other words, no matter what number you being with, the end result will always be nine! Download it FREE at http://www.galleytech.com/

    --
    "I'm not a cool person in real life, but I play one on the Internet". Galley
  322. Twelve coins by richieb · · Score: 1
    You are give 12 gold coins and a balance scale. One of the coins is false. A false coin will weight more or less than a real gold coin. In three trials (using the balance scale) find the bad coin and determine if it is light or heavy.

    --
    ...richie - It is a good day to code.
  323. Godlbach's conjecture by Anonymous Coward · · Score: 0

    Every even integer greater than 2 can be written as the sum of two primes. (The same prime may be used twice.)

    Now prove this !

  324. 2 = 1 by Anonymous Coward · · Score: 0

              a = b
               +a
             2a = a + b
               *a
           2a^2 = a^2 + ab
              -2ab
    2a^2 - 2ab = a^2 - ab
            factorise
    2(a^2 - ab) = 1(a^2 - ab)
           divide out
              2 = 1

    Points if anyone works out where the problem lies.

    1. Re:2 = 1 by Xuranova · · Score: 1

      when you're dividing out, you're dividing by 0.
      a^2=ab so ab-ab=0

      --
      "There is no real right or wrong, just what the majority accepts at the time."
  325. Brothers and sisters I have none... by TFGeditor · · Score: 1

    ...but this man's father is my father's son.

    --
    Ignorance is curable, stupid is forever.
  326. Where's the paradox? by eldacan · · Score: 1

    I've never understood why people consider this an interesting paradox:

    The common formulation is "All Cretans are liars". In this formulation, there is actually no paradox, since liars can sometimes tell the truth. (So the Cretan saying "All Cretans are liars" may be telling the truth, or a lie. In both cases we don't have any contradiction).

    Seeing this, people change the formulation to "All Cretans always tell lies". We want to determine whether the Cretan saying this is telling the truth, or not. Let's consider these two hypothesis:

    If the Cretan is telling the truth, it means the sentence is true, so according to it he's telling a lie, hence a contradiction.

    If the Cretan is telling a lie, it means the sentence is false, ie. "it's not true that all Cretans always tell lies". Which means they at least sometimes tell the truth (but may also tell lies at other times). This is compatible with the hypothesis that the Cretan is telling a lie. This time there's no contradiction, so this hypothesis is the right one.

    So the answer to the problem is that the Cretan is telling a lie.

    Am I missing something?

    1. Re:Where's the paradox? by earthbound+kid · · Score: 1

      The problem is only a paradox when phrased so that it means, "this statement is false." With this statement, it can't be false, since then it would be true, but it can't be true, since then it would be false. So, we can only conclude that it's nonsense. But yes, the phrasing of the Cretan problem given before is not equivalent to the paradox, and so it's easily solved by saying Cretans sometimes lie and sometimes don't. The key difference is that "this statement" is an atomic unit and can't sometime be true and sometimes be false.

  327. Re:Twelve coins - the 13 coin version by ysegalov · · Score: 0

    Another version: you have 13 coins, but do not need to tell if the fake is heavier or lighter, just point out the fake coin.

  328. whats 2+2*2 by caffeinex36 · · Score: 1

    my first programming teacher would start first day of class (when i was a freshman in HS) with......if anyone can answer my next question in less than 3 seconds you get a 100 in the class. this only works when saying it....doesnt have the effect when seeing it typed but he would say.. whats 2 plus 2 times 2. most people would say 8 right off the bat. others wouldnt say anything. -Rob

  329. And the answer is by Cryogenes · · Score: 1

    that the bear probably is, in fact, a penguin

  330. Re:Math and science are obsolete by DonnieD701 · · Score: 1

    You sir are an idiot.. No wonder you are on my Freaks list......

    --
    A witty saying proves nothing. Voltaire (1694-1778)
  331. SLIGHT SPOILER by Anonymous Coward · · Score: 0

    A variation is to say upfront that the answer can be determined in three goes. The puzzle is to work out how, and that's very tricky.

    1. Re:SLIGHT SPOILER by cyborg_zx · · Score: 1

      Cryptic clue word:

      OAK.

  332. Re:Algebraic proof: 2=1 by Anonymous Coward · · Score: 0

    2*0=0

  333. the gawdamn cat by sl4shd0rk · · Score: 1
    --
    Join the Slashcott! Feb 10 thru Feb 17!
  334. This was on a College logic exam... by Phyvo · · Score: 1

    A community of people meet everyday in the town square. However, they cannot communitate with one another because they are deaf and don't know sign language. They wander admist each other looking at everyone else in the town. After doing that they go home. It is a rule that if you have a special mark on your forehead you must commit suicide. A certain number of marks are on a few of the townspeople (obviously no more than 1 per person). After three days everyone with marks is dead. Assuming that they are all perfect logicians, how many people had marks on their forehead?

    1. Re:This was on a College logic exam... by kronocide · · Score: 1

      What a sad story about villagers who are deaf and desperate for some human contact committing suicide. Now you've ruined my day.

    2. Re:This was on a College logic exam... by platypus · · Score: 1

      zero? I mean they'd never be able to see the mark on themselves (assuming they have no mirrors to get any sense out of that riddle)

    3. Re:This was on a College logic exam... by Flyboy+Connor · · Score: 1
      If it is known to all that there is at least one suicide mark, and if it is know to all that they all are perfect logicians, and if they know they all commit suicide the moment they know they bear the mark, the answer is three.

      If there is only one mark, the person bearing it knows that he has the mark after the first meeting, and kills himself.

      If there are two marks, both persons bearing the mark will not kill themselves after the first day, since they know that there is one person bearing the mark. However, if they see on the second day that the person who bears the mark has not committed suicide, they know there is at least one other mark. That mark they bear themselves. So the commit suicide after the second meeting.

      With three persons, the same thing happens, only they commit suicide after the third meeting, since they see that the the other persons who bear the mark have not committed suicide after the second meeting, so there must be a third mark. Etc.

      A more interesting version of the same riddle I read in a book by Smullyan: Three philosophers are taking a nap under a tree, when a farmboy comes around and paints all their foreheads black. The philosophers awake at exactly the same moment, see each other, and all start laughing. Suddenly, the smartest among them stops laughing, being certain that his own forehead must also be black. How did he deduce this?

  335. MODDERS by Anonymous Coward · · Score: 0

    Do your stuff.
     
    Somewhere down the road, you(Dark Lord Seth) will be banned again. Or you will grow up.

  336. Cube Crawlers by Flyboy+Connor · · Score: 1
    I encountered the problem of the cube crawlers only once. It goes as follows.

    There is a cube which houses cube crawlers. The corners of the cube are labeled A to H, where G is furthest away from A (that is, three edges away from A, in the opposite corner). All cube crawlers are born in A, and each day they travel along one of the edges, to rest in the next corner. They will never turn around and travel back along the edge they traversed the previous day, but will always choose one of the two edges they did not traverse the previous day, with a chance of 50% for each of them. In corner G, the Cube Crawler Predator is situated, who devours all cube crawlers that end up in G. The question is: what is the average life span of a cube crawler?

    Obviously, the minimum life span of a cube crawler is three days, since G is three edges away from A. Theoretically, the maximum life span of a cube crawler is infinity, because it can travel in circles from A to B to C to D and back again to A.

    It took me two days to solve this problem when I first encountered it, using a purely mathematical approach. However, when I stated this problem to a physicist he provided me with the correct answer in a few minutes (without proof, that is).

  337. Re:Algebraic proof: 2=1 by Goaway · · Score: 1

    You're wrong in step 6 already. 1/i = -i.

    Step 4 is not valid. a^2=b^2 is not equivalent to a=b. a=b implies a^2=b^2, but the reverse is not true. Therefore, the only thing you've proved is that if 1=2, 1=1.

  338. Re: 123? by some+guy+I+know · · Score: 1
    Yes, nice, but you had it wrong. It should go:

    1
    11
    21
    1211
    111221
    312211
    12112221
    1112213211
    You also have it wrong, starting on line 7.
    It should go:
    1
    11
    21
    1211
    111221
    312211
    13112221
    1113213 211
    31131211131221
    13211311123113112211
    etc.
    Note that none of the digits will ever exceed 3.
    I have a truly marvelous proof for this, which, unfortunately, this post is too small to contain.
    --
    Those who sacrifice security to condemn liberty deserve to repeat history or something. - Benjamin Santayana
  339. Re:Math and science are obsolete by Anonymous Coward · · Score: 0

    We're angry because it's exasperating trying to reason with people such as you, who appear to be brain damaged at best, not because you're correct. I read over your posting hisory, and its a hoot.

    That being said, WTF is "Impiuos"? Did you mean "impious"?

    Hint for you: When you mispell your own, self-chosen, nickname, you're a moron.

    But, the rest of us have a good laugh everytime we see it, so thanks.

  340. Re:Jugs - simplified better answer by Anonymous Coward · · Score: 0

    even better, for the fingerless:
    fill the five, then fill the 3 using the 5. The 5 will have 2 left in it - dump the 3, then pour the 2 gals from the 5 into the 3. now, fill the 5, then top off the 3 with it, and since there's only 1 gal of room remaining in the 3 you'll be left with 4 gals in the 5.

  341. Turn the light on? by Anonymous Coward · · Score: 0

    Easy!

  342. integrate((sec())^3,) by Driador · · Score: 1

    I'd have to say that one of the cooler one's I've seen is the integral of sec^3() d. Not only would you need to do a trig substitution, but it ends up being (what I think of as) one of those cyclical type problems.

  343. Re:seeing simple things by Alien54 · · Score: 1

    actually, seeing simple things is an act of intelligence, as a specialized skill or tactic. Habit will sometimes lead you down the wrong path of seeing more than what is there.

    --
    "It is a greater offense to steal men's labor, than their clothes"
  344. Shortest Puzzle Ever by craznar · · Score: 1

    ===========START=============
    1_
    ============END==============

    That's it. ... posted again due to hyperlinks hiding the '_'.

    --
    EMail: 0110001101100010010000000110001101110010 0110000101111010011011100110000101110010 0010111001100011011011110110
  345. MAKE TEN by CDPatten · · Score: 1

    I loved this on in grade school. Doesn't apply prefectly to a math problem, but was a fun riddle.

    MAKE TEN BY ADDING THESE FIVE LINES TO THE LINES BELOW: | | | | |

    | | | |

    Of course all of you know the answer. But I'll post it in a reply to this.

    1. Re:MAKE TEN by CDPatten · · Score: 1

      The answer of course is TEN. as in the word "TEN". Count the lines used to spell the word (taking in account that this is Time New Roman, and should be something like an ARIAL.)

  346. Re:integrate((sec(theta))^3,) by Driador · · Score: 1

    hmm, it would appear that the theta isn't appearing.. Sorry, it's supposed to be sec^3(theta) d(theta)

  347. The Lawyer Paradox by Blackbird_Highway · · Score: 1

    I believe this one originated from that wacky Lewis Carrol.

    A man decides that he wants to become a lawyer, but he doesn't have the money to go to law school. His friend who is already a lawyer offers to teach him for $10,000. The friend says "pay me half up front, and half when you win your first case. If you lose your first case, then you don't have to pay me the second half."

    The man agrees, pays the $5000 and proceeds to study law. After some time he passes the bar and officially becomes a lawyer. But then he becomes interested in other things and never tries his first case.

    His friend wants the other $5000, so he sues the man for it. Now, since he is a lawyer, he decides to represent himself, and thus this becomes his first case.

    Now suppose you are the judge in the suit. If the man wins the suit, then he does not owe the $5000, but since he won his first case, he owes the $5000. If he loses, the he must pay the $5000, but since he lost his first case, by the agreement he does not owe the $5000.

    --
    By the perception of illusion, we experience reality
    1. Re:The Lawyer Paradox by kronocide · · Score: 1

      Um, what is the question?

    2. Re:The Lawyer Paradox by heff · · Score: 1

      this sounds like a jurisdiction question. He should appear specially without granting in personam jurisdiction (which is analgous to his "first trial"). This is what they do in real trials.

      --

      --

      |-_-| . o O ( bEef!)

  348. Solution by Otto · · Score: 1

    One person will always flip the cup from up to down. The other prisoners will only flip the cup from down to up. If it's not in the state they want on entering, they leave it be.

    There's two main problems here:
    1. You don't know the initial state of the cup.
    2. You don't know what the king has been screwing with.

    These are actually the same problem, in that the state of the cup might have been tampered with and you have to route around it.

    In the simplest problem (uncertain initial state only), you could have each prisoner only flip the cup from down to up twice only. This means that after it has been flipped 2(n-1)-1 times, the original prisoner knows that everybody has been in the room. He just keeps a count of how many times he's had to flip it himself.

    With the king being an ass about it, they have to count for his weird ass states too. In order to do that, the prisoners must each flip the cup from down to up an additional k times, to overcome the king's fucking with them.

    -So one prisoner flips up to down and keeps a count.
    -The other n-1 prisoners each flip the cup from down to up k+2 times (k times for the king, one time to account for the initial uncertainty, once for themselves).
    -When the counter prisoner gets a count of (k+2)(n-1)-1, he knows everybody has been in the room at least once.

    --
    - Give a man a fire and he's warm for a day, but set him on fire and he's warm for the rest of his life.
  349. Conservation of Chemical Compound Properties by wrwetzel · · Score: 1

    In chemistry we are taught that when we combine two chemicals in a reaction, each with their own unique set of properties, a new compound is formed with a new set properties, distinct from those of the component chemicals. My question: Where do the new properties come from and where do the old properties go? Bill

  350. Getting 4G easily by sp3298622 · · Score: 1

    Fill the 3G jug and empty it into the 5G jug, repeat without emptying the 3G you have in the 5G jug, you are left with 1G that doesn't fit in the 3G. Empty the 5G, put th 1G into that jug, and top it up with another 3G. There you go, 4G!

    What can I say, it sounded simpler in my head...

    ---
    Computer Support in Sydney

  351. A puzzle from my homepage by sugarmotor · · Score: 1
    What is this?

    a a a d a e a g a h a i a l a m a n a r a s a t a w a x a y b a b e b i b o b y d a d e d o e f e h e l e m e n e r e s e t e x f a g o h a h e h i h m h o i d i f i n i s i t j o k a l a l i l o m a m e m i m m m o m u m y n a n e n o n u o d o e o f o h o m o n o p o r o s o w o x o y p a p e p i r e s h s i s o t a t i t o u h u m u n u p u s u t w e w o x i x u y a y e

    The solution seems pretty difficult.

    Stephan

    --
    http://stephan.sugarmotor.org
  352. Why are manhole covers round? by Anonymous Coward · · Score: 0

    A simple 'duh, no shit' answer, once you figure it out...

    1. Re:Why are manhole covers round? by bluGill · · Score: 1

      That is also the only answer I like. I've seen many answers about round being space saving, or easiest to position manhole covers (any rotation will work). Problem is manholes are not bought by bureaucrats who do not have to actually manipulate the covers themselves. Thus practical considerations to the workmen are not accounted for.

      Legend has this that this riddle was first used on the Microsoft Campus, where all the manholes are in fact rectangular (including square) not round.

    2. Re:Why are manhole covers round? by Anonymous Coward · · Score: 0

      So they won't fall into the manhole. Search on The Straight Dope website for the full explanation.

    3. Re:Why are manhole covers round? by n6kuy · · Score: 1

      Well, the canonical answer is that the round ones can't fall into the manhole. whereas other shapes can...

      --
      If you disagree with me on social issues, then it's pretty clear that you are a narrow-minded bigot.
    4. Re:Why are manhole covers round? by CrazyTalk · · Score: 1

      I'm familiar with that explanation, but never bought it. With a sufficiently large lip on the manhole, no shape of manhole cover will fall in.

  353. Re:The Curious Incident of the Dog in the Night-Ti by kronocide · · Score: 1

    Always switch. There is a 1/3 chance your first choice is right and a 1/2 chance the remaining door is right.

  354. MOD PARENT DOWN by brian0918 · · Score: 1

    k is not undefined. k is a number that the king and prisoners know ahead of time. This should be obvious, as the problem does indeed say there is a solution.

    1. Re:MOD PARENT DOWN by brian0918 · · Score: 1

      Well, firstly I didn't write the problem. It seemed pretty clear to me that they must know k in order to have any chance of solving it, so I didn't think it was an issue. Of course, it seems people are choosing the lazy route by assuming there is no solution. That's fine, I don't care.

  355. The Age Old Riddle... by catdevnull · · Score: 1

    How many licks does it take to get to the center of a Tootsie Pop? (And how many does it take to get sued for sexual harassment?)

    --

    I might know what I'm talkin' about, but then again, this is Slashdot...
  356. MOD PARENT UP by brian0918 · · Score: 1

    Finally, someone who understands the English language.

    1. Re:MOD PARENT UP by Myopic · · Score: 2, Insightful

      if that's the answer to your riddle, you are an idiot. it's not within the constraints of the problem.

  357. Whats my age? by Anonymous Coward · · Score: 0

    Too simple for the slashdot crowd, but nice to stumble anyone else with:

    Q: Whats your age?
    A: In twelve years I am twice as old as I was six years ago.

    You can easily replace the numbers accordingly so the solution is your age.

  358. It's not "Petals of the Rose" by some+guy+I+know · · Score: 1
    But I still can't figure out what the name of the game has to do with it.
    The name of the game is "Petals Around the Rose", not "Petals of the Rose".
    The name of the game is significant.

    To figure out what the name of the game has to do with it, you have to look at the dice.
    Don't play with the numbers.
    Look at the dice.
    And, remember, the name of the game is "Petals Around the Rose".

    It took me about 10-15 minutes to figure out, and I figured it out graphically, not mathematically.
    --
    Those who sacrifice security to condemn liberty deserve to repeat history or something. - Benjamin Santayana
    1. Re:It's not "Petals of the Rose" by Dun+Malg · · Score: 1
      The name of the game is "Petals Around the Rose", not "Petals of the Rose".

      Indeed, the first time it was presented to me it was erroneously calledd "petals on the rose" by the presenter. After I puzzled over it for a while, someone else came over and said "ah, the old Petals Around the Rose puzzle". It annoyed me because the real clue that is in the name is the word AROUND. As soon as I heard that word and realized the puzzle was about something with a CENTER, it was obvious. The famous story about Bill Gates notes that he probably had more difficulty because, as indicated by a program he wrote to calculate the score, he thought it was called "PEDALS Around the Rose".

      --
      If a job's not worth doing, it's not worth doing right.
  359. Here's a classic.... by ShyGuy91284 · · Score: 1

    You have two people in front of you. One always tells the truth, and believes what he says is true, and will state so. The other one always lies, and believes in the opposite of the truth, and will state the opposite. Can you tell them apart by asking yes/no questions? I remember that confusing the hell outta me when I was younger in the movie Labyrinth I think..

    --
    In undeveloped countries, the consumer controls the market. In capitalist America, the market controls you.
  360. My favorite by rongage · · Score: 1

    29 - 1 = 30

    Prove it.

    --
    Ron Gage - Westland, MI
  361. A puzzle by Fermatprime · · Score: 1

    n people are put in n different glass rooms, so that every person can see everyone else. Each person is then given a hat, which is one of n different colors. (However, everyone's hat may be the same color, or different colors, etc.) No one can see their own hat, but they can see everyone else's. Everyone then tries to guess the color of the hat on his or her head. If at least one person guesses correctly, everyone wins. What is a winning strategy?

    --
    I hate the one hundred and twenty character limit for signatures with an all-enveloping, all-destroying, incredible pass
    1. Re:A puzzle by Myopic · · Score: 1

      everyone guess the same color. as long as there is a "red" hat, then someone will get it right.

  362. Not really a riddle, but... by Anonymous Coward · · Score: 0

    sin x
    ----- = (simplifying n) = six!
        n

  363. MOD PARENT UP by Anonymous Coward · · Score: 0

    Parent gives a good solution to the problem.

  364. Attempt to prove an oracle by not proving it exist by r2q2 · · Score: 1

    See subject. ;-)

    --
    My UID is prime is yours?
  365. Not Exactly Equivalent by lildogie · · Score: 1

    How do you tell two Thevenin-equivalent sources apart: one with a voltage source in series with a resistance, the other with a current source in parallel with a resistance?

  366. Re:Algebraic proof: 2=1 by justine_avalanche · · Score: 1

    I'd say you can't do step 4: dividing by (x-y) to lead to x+y=y since (x-y)=0 [can't divide by 0]

  367. Re:Algebraic proof: 2=1 by Cili · · Score: 1

    There's an error when going from 4 to 5. I think it's that when going from (a/b)^c to a^c/b^c , c must be >= 1.

  368. The answer is by Anonymous Coward · · Score: 0

    The answer is 4 8 15 16 23 42

  369. this doesn't work by RedLaggedTeut · · Score: 1

    This doesn't work because everone will just flip the chalice once. If the king flips it back before the watcher gets to see it, they will not be able to confer the information again.

    I suppose you could have the watcher flip the chalice at some point to tell the other to report gain, but the lack of limits on the number of times someone can be called makes it hard to specify any strategy.

    --
    I'm still trying to figure out what people mean by 'social skills' here.
  370. Re:Algebraic proof: 2=1 by Anonymous Coward · · Score: 2, Interesting

    I am reminded of a short bit in the Journal of Irreproducible Results, where they had proof of -1 being the largest integer. Rough rephrasal:

    The defining property of the largest integer is that there is no larger integer. But if you take any integer and add one, you get a larger integer. So the largest integer must fulfill x = x + 1, and taking it one step farther for good measure, x = x + 2.

    x = x + 2

    Square both sides.
    x^2 = x^2 + 4x + 4

    Subtract x^2.
    0 = 4x + 4

    Subtract 4x.
    -4x = 4

    Divide by -4.
    x = -1

    Checking this result, -1 is indeed an integer and nothing is one more than -1. QED.

  371. My answer is none of them. by MattC413 · · Score: 1

    The teller is going to St. Ives, while the destination or origin of the man, wives, etc is not told. It is reasonable to assume, in this case, that unless there was a huge discrepancy of speed between the teller and the man/wives party, they must have been going in opposite directions if they were to meet.

    Thus, if the teller is going to St. Ives, the man and his wives/etc must have been going in the opposite direction (or, perhaps, perpendicularly, to an undetermined destination).

    While as given, this cannot be solved due to lack of information, my answer in this case is none of them are going to St. Ives except for the teller of the story. The teller isn't included in the final querry, so I submit an answer of "zero".

    1. Re:My answer is none of them. by Anonymous Coward · · Score: 0
      that unless there was a huge discrepancy of speed between the teller and the man/wives party, they must have been going in opposite directions

      It's pretty reasonable to assume that there *was* a huge descrepancy of speed, since each of the seven wives were having to carry 392 bagged felines totalling over 500kg*, which would slow them down considerably)...

      (* assuming average weight of cat = 4kg, average weight of kitten = 1kg)

  372. Sleeping Beauty by rfugger · · Score: 1
    My favourite mind-expander is the Sleeping Beauty Problem.

    We plan to put Beauty to sleep by chemical means, and then we'll flip a (fair) coin. If the coin lands Heads, we will awaken Beauty on Monday afternoon and interview her. If it lands Tails, we will awaken her Monday afternoon, interview her, put her back to sleep, and then awaken her again on Tuesday afternoon and interview her again.

    The (each?) interview is to consist of the one question: what is your credence now for the proposition that our coin landed Heads?

    When awakened (and during the interview) Beauty will not be able to tell which day it is, nor will she remember whether she has been awakened before.

    She knows the above details of our experiment.

    What credence should she state in answer to our question?

    Some people think the answer is obviously 1/2, while others think it must be 1/3. Which is it?

    1. Re:Sleeping Beauty by SpaceNinja · · Score: 1

      It must be 1/3

  373. My favorite: How to make seven with four twos by iamcadaver · · Score: 1

    How to algebraically get an answer of '7' with only four numerals to choose from, all of them '2'.

    Example: To make '20' with three '2's = 22 - 2

    I have reasoned three ways to solve the '7' problem, and a friend found a fourth. Absolutely stumped me and kept me up for a few nights....

    --
    Before I part with'em: two pennies weigh ~4.996+/-0.014g, have a zinc core, and the face of Lincoln. You can keep 'em.
  374. Re:Math and science are obsolete by fimbulvetr · · Score: 1

    Interesting point but the president can't order congress to do anything. He has hardly any power

    Ha! If you've read America: A Citizens guide to democracy inaction, by Jon Stewart, you'd know that the president does indeed have a little power over congress. The president can make the congressmen a nice sandwhich, and this can get the congressmen to sway his way sometime.

  375. Re:Math and science are obsolete by feijai · · Score: 1
    Let's not get too anal-retentive here. Laffer was a supply-side economist, and his "curve" was, IMHO, nothing more than the trivially obvious application of elasticity to taxation. The Curve describes the amount of revenue brought in as a function of the percentage of taxation: if you tax 0% you get 0 revenue; if you tax 100% you get 0 revenue because the economy shuts down; and somewhere in-between there must be at least one non-zero revenue position, so the curve goes up from 0 and back down to 0.

    That's all well and good, but Laffer didn't stop there -- he argued that we're at a position where the slope of that curve is negative -- that is, if we tax more, our revenue decreases. The Laffer Curve is the central argument to supply-side economics.

    What's amazing is the degree to which supply-side economics resembles religion: because it is almost entirely devoid of evidence. Supply-siders are the creationists of the economics world. It is fairly rare to find any government, much less our own relatively low-tax government, which has ever received lower revenue from marginally higher taxation (or vice versa). Even during the Reagan years, when the supply-siders ran free like herds of buffalo in the White House, the tax cut resulted in dramatically lower revenue.

    Well, duh. The problem with Laffer's argument is that, if the government was trying to maximize revenue, it'd just hill-climb right up to the top of the Laffer Curve and stay there. But there is a second force at work: voter anger. If you raise taxes too much you get voted out of office. This force acts to pull taxes down, and hence to the left (positive-slope) side of the curve. The stronger that force, the more on the positive-slope side. To counter this, you need some force to actually move to the negative-slope side, but Laffer, nor any other supply-siders, have ever really proposed one.

    It's baloney.

  376. Drill the ball by Deadstick · · Score: 1

    Here's a hard way/easy way problem:

    A machinist makes a solid metal sphere. Then he drills a hole in it, dead center, all the way through.

    The hole is six inches long. How much metal remains in the ball?

    rj

  377. Don't you mean "skillz"? by Elad+Alon · · Score: 1

    Don't you mean "skillz"?

    #I feel like pwning n00bs...#

    --
    News for merdes. Shit that matters.
    Ask me about my sig.
  378. Re:The King and the Chalice: full solution by mrgeometry · · Score: 1

    Very nice! Nicely written and explained. I don't think it's hand wavy. If anyone is paranoid about whether you might be off by one anywhere in your count, then fine, give each non-counter more tokens...

  379. The 'correct' answer is wrong - *spoiler* by TrappedByMyself · · Score: 1

    I love this problem because it shows how unrealistic these logic puzzles are.

    The 'correct' answer is always something like 98 0 1 0 1, where the head dude keeps 98 gold.

    To see the flaw, simplify it to 3 pirates. The 'correct' answer here is 99 0 1. The reasoning is that if there were 2 pirates, the head dude would just keep it all since he wins the vote. So, with 3, the reasoning is that the head dude tosses a coin to the last dude, because if the head dude dies, the second one takes everything and the last one gets nothing. OK, the flaw is that THE HEAD PIRATE WILL NOT LET HIMSELF DIE!! He's not going to die, just to prove 3 wrong. The head pirate has no power. The 'optimal' solution where the main dude takes 99 and tosses a coin to the last guy is stupid. Why on earth would 2 and 3 accept one gold between them when they have the power to kill the first guy whos taking 99?

    So now what? Given that 'optimal' solution, 2 and 3 decide to split the pot 50/50 and force the head dude to fork it all over in return for their lives. The head dude responds by offering one of them more than 50. A biddin war ensues, and likely ends with the head dude keeping 49 and either 2 or 3 keeping 51. Whatever happens, there is no reasonable solution where either 2 or 3 get less than 50 gold.

    --

    Help me take back Slashdot. When did 'News for Nerds' become 'FUD and Conspiracy Theories for Extremist Nutjobs'?
    1. Re:The 'correct' answer is wrong - *spoiler* by Anonymous Coward · · Score: 0

      I feel that the logic describes the reality just fine. Why should pirate 3 trust pirate 2? If pirate 3 tries some shenanigans, Pirate 1 can call Pirate 3's bluff by giving him 1 coin. When faced with the vote, what do you think he will do? What do you think he thinks the outcome will be if he votes against?

  380. My all-time favorite logic puzzle by Council · · Score: 4, Interesting

    Oh, woe is me. I have a perfect logic puzzle, but was unlucky enough to be otherwise engaged when this story was posted. (By the way: a soft couch, a carefully selected DVD, half a bottle of rum, and a girl. Guess which element to this excellent scenario was fucking ruined by copy protection? I'll give you a hint: I may have just switched sides in this movie piracy debate. Fuck the RIAA. It was a perfectly legal store-bought DVD. Fuck them all.)

    But anyway, logic puzzles. This logic puzzle is excellent. I've had it up on my site (http://www.xkcd.com/blue_eyes.html), and after I got boingboing'ed I got a lot of email about it, so I've been able to tweak the wording to get rid of most of the confusing stuff, leaving only the logic. It's extremely subtle; I've never seen anything like it.

    Here's the puzzle:

    A group of people live on an island. They are all perfect logicians -- if a conclusion can be logically deduced, they will do it instantly. No one knows the color of their eyes. Every night at midnight, a ferry stops at the island. If anyone has figured out the color of their own eyes, they [must] leave the island that midnight.

    On this island live 100 blue-eyed people, 100 brown-eyed people, and the Guru. The Guru has green eyes, and does not know her own eye color either. Everyone on the island knows the rules and is constantly aware of everyone else's eye color, and keeps a constant count of the total number of each (excluding themselves). However, they cannot otherwise communicate. So any given blue-eyed person can see 100 people with brown eyes and 99 people with blue eyes, but that does not tell them their own eye color; it could be 101 brown and 99 blue. Or 100 brown, 99 blue, and the one could have red eyes.

    The Guru speaks only once (let's say at noon), on one day in all their endless years on the island. Standing before the islanders, she says the following:

    "I can see someone with blue eyes."

    Who leaves the island, and on what night?

    There are no mirrors or reflecting surfaces, nothing dumb, It is not a trick question, and the answer is logical. It doesn't depend on tricky wording, and it doesn't involve people doing something silly like creating a sign language or doing genetics. The Guru is not making eye contact with anyone in particular; she's simply saying "I count at least one blue-eyed person on this island who isn't me."

    And lastly, the answer is not "no one leaves."

    --
    xkcd.com - a webcomic of mathematics, love, and language.
    1. Re:My all-time favorite logic puzzle by platypus · · Score: 1

      Fascinating! It's so good, I'm even a little bit proud I solved it after some hard thinking. At least I'm very sure that I solved it ;).

      This
      http://www.ocf.berkeley.edu/~wwu/riddles/hard.shtm l#1000wires
      and this
      http://www.ocf.berkeley.edu/~wwu/riddles/hard.shtm l#sinkTheSub

      were also two I quite enjoyed.

    2. Re:My all-time favorite logic puzzle by Council · · Score: 1

      The second one is nice enough. Answer: Every n-th second, launch a missile from square plus-or-minus 2^n (2,4,8,16,32,64,128 . . .) (alternating the plus and minus) in the direction of the origin (zero)

      I don't understand what the problem is in the first one. You hook up the battery at the bottom to two random wires, then go to the top and try the bulb on every pairing of two wires (and each polarity). That's almost two million tests, but it said take as long as you want up there.

      --
      xkcd.com - a webcomic of mathematics, love, and language.
    3. Re:My all-time favorite logic puzzle by melikamp · · Score: 1

      You've made my day. I have some background in mathematical logic, and the first reaction was: IMPOSSIBLE! She only tells them what they already know! After I got over the initial shock, I considered cases with 1, 2, 3 blue-eyed people, and got the answer easily.

      But, as one of my (logic) professors used to say, sometimes we can derive it, but we cannot understand it. I am still in the dark about this question: what exactly is the vital piece of knowledge that is acquired after the guru speaks? I figured that I have to get involved with the modal logic, so I am plugging in a knowledge operator, Kx(phi), and quantification over formulas.

      1. E: Exists
      2. A: For all
      3. x, y, g: people vars
      4. i: self var
      5. Kx(phy): x knows that phi
      6. Bx: x has blue eyes

      It is fair to suppose that with at least 3 blue-eyed people on the island, everyone knows simple things like

      • Ex(Bx)
      • Ex(x != i ^ Bx)
      • Ax(Kx(Ey(y != i ^ By)))

      And the guru seems to be saying that Ex(x != i ^ Bx), so it is fair to suppose that after the fact everyone perceives that Eg(g != i ^ ~Bg ^ Kg(Ex(x != i ^ Bx))). The problem is, it feels like they should have known that anyway, from the beginning.

      At this point, I tip my hat to you. It really boggles my mind that I have found a solution, but have no idea how to formalize it. I don't suppose I'll be able to go to sleep before I crack this one...

    4. Re:My all-time favorite logic puzzle by Council · · Score: 1

      The answer is that the information is transferred for a hypothetical situation that is relevant to their thinking. If you told me "You robbed a 7-11 on March 7th", I may already know that what you have SAID about the world is true, but your statement does give me new information -- namely, that YOU know that I robbed a 7-11 (uh-oh).

      The reason it doesn't look like the guru gives them information is that the information is only relevant to each of these 100 people on the 99th or 100th layer of a tree of hypotheticals. The relevant information is this: "If there is only one blue-eyed person on the island, he will have enough information to leave on the first night."

      But each person, looking at the situation, will consider hypothetical possibilities for the state of the island. And each of the people in those hypothetical possibilities will in turn make up their own hypotheticals, and so forth. And after 100 layers of nested hypotheticals, each person assuming "what if my eyes are not blue?", you reach the hypothetical in which there is one blue-eyed person. And the Guru's statement allows the truth of that hypothetical to be determined. This starts a chain reaction 'rolling up the hypotheticals', in a way, one level a night. On the 100th night, they have rolled all the way up, and the truth value of the original hypothetical by each of the 100 blue-eyed people, "What if I do not have blue eyes", is determined -- false.

      --
      xkcd.com - a webcomic of mathematics, love, and language.
    5. Re:My all-time favorite logic puzzle by Grim+Leaper · · Score: 1
      Your mention of 1, 2, 3 got me there, thanks! I was bending the definition of the problem so that there was only 1 blue-eye in the "pronouncement room", but now I realise this isn't needed.

      I am still in the dark about this question: what exactly is the vital piece of knowledge that is acquired after the guru speaks?

      No-one learns anything when the guru speaks. But they learn something at midnight.
    6. Re:My all-time favorite logic puzzle by Old+Wolf · · Score: 1

      I got this quickly because of having previously studied the same problem in disguise:

      Five people have a coloured star each on their back, one of which is white and four are red. The people are standing in a line all facing the same way (so they cannot see their own star). Once you are able to deduce that your star is white, you must leave the line within 60 seconds. Assume everyone is a logical genius and does not need longer to make the deduction :)

      I don't recall if there was any particular stipulation to the problem, only to point out that eventually (after 5 minutes) the person with the star will leave -- rather than the reader's initial reaction which is that they'll all stay there forever.

    7. Re:My all-time favorite logic puzzle by Ledgem · · Score: 1

      I just laughed at the notion of the girl being ruined by copy protection. Good thing you put that hint in there!

    8. Re:My all-time favorite logic puzzle by Council · · Score: 1

      No-one learns anything when the guru speaks.

      This is not true.

      They learn something about what WOULD happen in a hypothetical case that is relevant to their logic, no matter in how roundabout a fashion.

      --
      xkcd.com - a webcomic of mathematics, love, and language.
    9. Re:My all-time favorite logic puzzle by Council · · Score: 1

      Fortunately, someone seeded a torrent of her and the night was rescued.

      --
      xkcd.com - a webcomic of mathematics, love, and language.
    10. Re:My all-time favorite logic puzzle by melikamp · · Score: 1

      Ah... Your hint was very helpful. I think I know where the dog is buried. You gave an example where knowing that Phy was different from knowing that Alice knows that Phy. The situation on the island is a tad bit more complicated. Like I said before, it is fair to suppose that they all know that guru knows that someone has blue eyes. The problem is, they know it through a derivation. Alice has to establish that there is a person on the island (Bob) who has blue eyes and is not Alice. Only then she would be able to conclude that guru must know someone with blue eyes. In order for Alice to assert that Bob knows that guru knows that someone has blue eyes, Alice must find yet another blue-eyed person (Charley), so that she can be certain that Bob can derive this fact on his own. And so it goes. In the end, given all blue-eyed people x1, x2, x3, ... , xn, it is impossible for x1 to derive that x2 knows that x3 knows that ... that xn knows that guru knows that someone has blue eyes. Impossible, because x1 must start by asserting that there is a distinct y != xi with blue eyes. And that is too bad, because the solution to the problem is hidden in the bottom of this chain of knowledge operators.

      When guru speaks, the statement "guru knows that there exists a person with blue eyes" becomes a thesis (in other contexts: a logical axiom), i.e. it no longer requires any derivation. Those dirty tricks they use in modal logic... Now, the statements like above (including the last one -- the one that matters) have trivial derivations, because islanders can always assume that others know axioms. So, as I suspected, no new information is conferred, but rather the logical system is changed.

      Beautiful problem, I'll be sure to mention you at school :)

    11. Re:My all-time favorite logic puzzle by Anonymous Coward · · Score: 0

      The second one says you want to find the connection from tips to bottom from _every_ wire with minimum the number of travels up (and down) that tower.

    12. Re:My all-time favorite logic puzzle by Mashdar · · Score: 1

      Is there a mathematical representation for the ammount of information contained within both of the contributors (the statement plus knowledge of the x-1 empty vessles)? I am supposing that the first n-2 empty vessles carry no new since it is given that there are at least x-1 blue eyed inviduals and therefore none will leave for the first x-2 nights.

    13. Re:My all-time favorite logic puzzle by efflux · · Score: 2, Interesting

      *spoiler warning*

      I think this stipulation is also necessary:

      1) That everyone with blue eyes (at least) is wholly involved in figuring out if they have blue eyes and should comply (bear with me, this is different than you think)

      Without this specification, there can be no implicit communication as to the understanding of others.

      But to be fair, this is hardly the end of the specifications, and is why I so detest logic puzzles. An earlier poster had it right when they said that a logic puzzle is hardly about logic, but about communication between the puzzle maker and tester.

      I think there is an issue with your stipulation about the islanders not "otherwise" communicating with each other because I think communication other than the exact count of islanders is exactly what happens.

      To rectify this I could, for instance, instead demand there be such stipulations as:
      2) The islanders don't tell each other what their eye colors are
      3) Or otherwise sign
      and because we're tired and want to stop this progression from escaping us we'll try a catch all...
      4) or intentionally let each others know
      Perhaps you might say someone demanding that there could be such a "outside mode of communication" isn't "playing along", but this is precisely what I mean. There must be a communication of what the solution might be for a guesser to play along with what might get him there. I would like to especially point out that one can get into the same trouble with rule 4 as you did with your stipulation (and for the same reason, and that this is unavoidable). I would say that an islander following stipulation 1 is implicitly breaking this or any such rule.

      But we're hardly done yet... I want to examine rule 1 a little closer and to do that I need to outline the "solution".

      1 blue eyed islander:
      In the case of the 1 blue eyed islander, he sees that everyone else has brown eyes (and the guru green) so knows he must have blue eyes. He leaves. The others do not leave because they see him leave.

      2 blue eyed islanders:
      The two blue eyed islanders see that there is another blue eyed islander and so don't leave on the first day. They then both leave on the second day, knowing that the other must have not left because they expected themselves to leave the first day*. No one else leaves, because they knew there were at least two others, and so waited for the third night**.

      And so on for n blue eyed islanders.

      So, first onto the problem with condition 1), and then onto those little stars.

      Condition 1) at first seems as if it is a simple restatement of the condition that islanders know the count of other's people eye color at all times. It is not. In addition, it also signifies that every islander (or at least ever islander with blue eyes) must be *carrying out* the logical processes and understand its implications.

      But then, for any islander to have any certainty of what the other islanders know, he must also have the guarantee that every other islander is carrying out these processes. This leads us to:
      5) Every islander knows that every (blue eyed) islander is wholly involved in deciding if they have blue eyes.
      It's actually a bit more involved and also involves knowing all other stipulations are also in effect, but I would like to keep this somewhat comprehensible.
      And now that we realize this is a stipulation for the valid reasoning of an islander, an islander also needs to be assured of 5). Thus:
      6) Every islander knows that every (blue eyed) islander knows that every (blue eyed) islander is wholly involved in deciding if they have blue eyes.

      And so on. It is only important that every blue eyed islander has correctly proceeded for one to decide how to proceed.

      Those stars:
      *Conveniently, this directly extends from the previous statement, so it should flow nicely. For an islander with blue eyes to know that the others know he has blue eyes, he must assume that the islanders "correctly proceeded". Thi

      --
      Do I contradict myself? Very well, then I contradict myself, I am large, I contain multitudes. -- Walt Whitman
    14. Re:My all-time favorite logic puzzle by Frnknstn · · Score: 1

      Okay, I think I have worked this one out. It wasn't mentioned in the problem, but I assumed that each islander knew that each other islander is a perfect logician.

      What I don't understand is why there are still any people on the island (except for the Guru.) Surely they all already know that the Guru can already see a person with blue eyes, as they can see a person with blue eyes, and the Guru isn't blind?

      --
      If it's in you sig, it's in your post.
    15. Re:My all-time favorite logic puzzle by Anonymous Coward · · Score: 0

      I'm on your side. I don't think that the Guru actually gives them any new information, and the posts above don't convince me. Of course, it depends on how much the islanders reason about what the other islanders know. But since there are several islanders with blue eyes, all the islanders know that the Guru sees someone with blue eyes, since they themselves see someone with blue eyes.

    16. Re:My all-time favorite logic puzzle by Anonymous Coward · · Score: 0

      The Guru says ``I can see someone with blue eyes.''
      It's not hard to show that every islander can deduce that every other islander knows the truth of the Guru's statement before the Guru makes it. Here goes.

      There are 100 people with blue eyes. Let I be an arbitrary person on the island and let A and B be two other arbitrary people with blue eyes (so I, A, and B are distinct). We reason from the point of view of I.

      I can see A has blue eyes, so I know the Guru can see someone with blue eyes. Everyone except B can see that A has blue eyes, so everyone except B must also know that the Guru can see A has blue eyes -- I can deduce this. But B can see A, and A has blue eyes, so B also knows the Guru can see someone with blue eyes -- I can deduce this. So I can deduce that every person on the island knows that the Guru can see someone with blue eyes.

      What this shows is that if you think the Guru's statement gives the islanders information, you are reading the Guru's statement at more than face value.

      It isn't true that out of 101 people if only one had blue eyes then that person could leave on the first night -- that person doesn't know that their own eyes are different from everyone else's eyes. Giving that one person the info that someone has blue eyes would allow them to leave.

      But if three people out of 103 have blue eyes, then on their own they can figure out after three days that they are the only people with blue eyes.

    17. Re:My all-time favorite logic puzzle by Anonymous Coward · · Score: 0

      >> But if three people out of 103 have blue eyes, then on their own they can figure out after three days that they are the only people with blue eyes.

      That was supposed to be a question: If 3 out of 103 have blue eyes, can the blue-eyed ones deduce this? They all know that everyone on the island knows that there is someone with blue eyes.

    18. Re:My all-time favorite logic puzzle by Council · · Score: 1

      Surely they all already know that the Guru can already see a person with blue eyes, as they can see a person with blue eyes, and the Guru isn't blind?

      You've hit precisely on why the problem is so difficult -- what you say is true. They all knew that the Guru's statement was true before she made it. HOWEVER: The Guru's statement still changed things.

      What it did was change what would happen in the base case of NumBlueEyesPeople=1. Everyone on the island knows that this case is not true, but it still affects their reasoning! Saying "it's important because it's used in the induction" is true, but sort of weaseling out, because it doesn't seem to address how it relates to the actual situation. The reason it does affect the situation is that it changes things not in the current situation, but in a hypothetical situation in the minds of the people in a hypothetical situation in the minds of the people in a hypothetical situation in the minds of the people in a hypothetical situation in the minds of the people in a . . . [repeat 100 times]. It adds information in the 100th layer of hypothetical situations (specifically, the ones that arise from blue-eyed people on each layer saying "Let's suppose I have brown eyes . . ."), but because these hypotheticals become so far removed, we assume they can have no affect on the situation.

      This is hard to wrap the mind around. If you've been through the induction, as it seems you have, and you know the answer but aren't satisfied regarding how the information is flowing, I recommend drawing a "tree of hypotheticals" mapping what a person in every group is thinking. Start with a blue-eyed person, and show the two possibilities that they see: a branch for "I have blue eyes" and a branch for "I do not have blue eyes." Then, consider each of those branches as an island unto itself, and draw the branches for people in that situation.

      After you've drawn the 100 branchings, you'll find an island with a single blue-eyed person, and you'll see that this person is able to leave the first night because the Guru gave him the information he needed. When this person doesn't leave the first night, it allows the people one branching back to determine which hypothetical is true, and they leave the 2nd night. And so on and so on, the Guru's statement 'rolling up' the tree one night after another. When you draw the tree, focus on the branches where the blue-eyed person says "What if I have brown eyes?". This is the one on which the rolling up happens.

      --
      xkcd.com - a webcomic of mathematics, love, and language.
    19. Re:My all-time favorite logic puzzle by lukestuts · · Score: 0

      Actually, the answer is "Nobody leaves." Since they cannot determine their own eye colour by communicating with anyone else and the Guru's statement provides no information about the colour of their own eyes, they cannot be certain of the colour of their eyes. No amount of 'logical deduction', or indeed any other action, will change this because there are no constraints on eye colour.

    20. Re:My all-time favorite logic puzzle by Council · · Score: 1

      I'm sorry, but this is incorrect.

      Consider the case (CASE ONE) in which there is only one blue-eyed person. You probably agree that he leaves the first night, since he sees no one else with blue eyes and therefore knows the Guru is referring to him.

      Now, if there are two blue-eyed people (CASE TWO), they each see the other, and say "what if I have non-blue eyes? Well, that would mean that guy doesn't see ANYONE else with blue eyes. Therefore, he'll leave tonight." And when the other guy doesn't leave the first night, they each know he must be able to see someone else with blue eyes (that is, they know CASE ONE is false) so they leave the 2nd night.

      That one alone isn't too hard for me to wrap my mind around, and right away we've got a situation where two guys, though they both knew the Guru's statement was true regardless of their eye color. The generalization to N people leaving the Nth night is still a little tricky to think about, but I do promise that it works. And, in fact, the nonzero information transfer can be examined and quantified very precisely -- it's just difficult because it involves a lot of nested hypothesizing.

      I've spent an awful lot of time on this puzzle, discussing it with anyone from friends to random slashdotters to math and CS Ph. Ds. It's a great puzzle, and I'm sorry if I'm not explaining my answer completely enough -- if you're still in disagreement, email me and I will go over it in more detail (I have some long explanations from various angles that I've written over the years that I can forward). I do assure you, though, that my answer is correct.

      --
      xkcd.com - a webcomic of mathematics, love, and language.
    21. Re:My all-time favorite logic puzzle by Aneurysm · · Score: 1

      Sorry, I have just one question that isn't 100% clear to me. Do the islanders know how many of each eye colour there is, or do they just know that there are more than one eye colour?

    22. Re:My all-time favorite logic puzzle by Council · · Score: 1

      They do NOT know how many of each eye color there is. If they did, it'd be trivial to solve.

      I've been rewording the puzzle each time I discuss it. In this round, I've gotten that question a lot, so you'll see the version on my webpage is updated to make this clear.

      --
      xkcd.com - a webcomic of mathematics, love, and language.
    23. Re:My all-time favorite logic puzzle by nine-times · · Score: 1
      The Guru's claim is a bit of a red herring, and there's certainly something fishy about the puzzle. The whole solution here requires that each islander uses the Guru's statement as a method for commencing a sort of game, assuming that all the other people will use the same starting point for the same game.

      It's the sort of game that could be deduced at any time, but would require agreement on both the eye color and starting time of the game. The puzzle requires that we assume that, these people being naturally "perfect logicians", they would all view the Guru's statement, which gives them absolutely no information, as an appropriate prompting to begin this game and select an eye color.

      And it really would be a game. It requires not only logic, but action, strategy, knowledge of others' behavior and capabilities. No one would even think to leave the first night, and so everyone would need to wait for the 99th night and see what happened. Brown eyed people would need to wait for the hundredth, of course, but no one would be packing their bags in preparation before that 99th night.

      Would the Guru's statement be sufficient for a bunch of "perfect logicians" to know to begin the game? After all, the game requires not only that each villager knows to begin the game, but that each feels entirely confident that everyone else will begin the same game at the same time. In any real, human behavior, it might be quite a stretch, but it is just a puzzle, after all. You're just supposed to take the hint.

    24. Re:My all-time favorite logic puzzle by Krach42 · · Score: 1

      Awesome problem. Even with the solutions laid out I was all, huh?

      Took me some deep thought even with the solution in front of me to figure it out. I suppose everyone just has to find their own way to wrap their brain around the problem.

      --

      I am unamerican, and proud of it!
    25. Re:My all-time favorite logic puzzle by Anonymous Coward · · Score: 0

      The argument for only 2 people seems sound. On the basis of it, I have attempted to derive the case for 3 people. Any feedback would be interesting since I am not sure of the chain of reasoning.

      When there are 3, the first would see two others and observe their behaviour. If they both left on the second night, he would know that his eyes were not blue. However, if they were both there on the third day, he would know that each of them must be waiting for the other two to leave and, since he knows the eye colour of everyone else on the island, that person must be him.

      Extending this reasoning implies that for n blue eyed people, they all leave after n+1 days.

    26. Re:My all-time favorite logic puzzle by Anonymous Coward · · Score: 0

      This basically the same as a problem I was assigned in a recitation once:
      http://ocw.mit.edu/NR/rdonlyres/Electrical-Enginee ring-and-Computer-Science/6-042JSpring-2005/E02DAA C7-A909-43C2-86E5-C9FBE52FCC02/0/rec3.pdf
      (scroll to the end for the MIT-approved solution ;)

    27. Re:My all-time favorite logic puzzle by Council · · Score: 1

      That's correct -- except I would say they leave on the Nth day -- it's the Nth midnight to pass. But that's just an off-by-one convention thing.

      --
      xkcd.com - a webcomic of mathematics, love, and language.
    28. Re:My all-time favorite logic puzzle by Geoff-with-a-G · · Score: 2, Informative

      One small correction:
      "The Guru speaks only once (let's say at noon), on one day in all their endless years on the island."
      should read:
      "The Guru speaks only once (let's say at noon), on each day of all their endless years on the island."

      "only once... on one day" says that after the first day the Guru never speaks again.

    29. Re:My all-time favorite logic puzzle by dommer2029 · · Score: 1

      No, the original poster is correct. The Guru does speak exactly once.

      --
      VFX is more influential than you think.
    30. Re:My all-time favorite logic puzzle by Council · · Score: 1

      No, that's not at all true -- my wording is right.

      The Guru speaks only on day X and never again.

      --
      xkcd.com - a webcomic of mathematics, love, and language.
    31. Re:My all-time favorite logic puzzle by Council · · Score: 1

      Also, heh, you've been modded up. But I WROTE this version of the puzzle! And Slashdot has voted your revision correct! Not fair! :)

      Your version is interesting, but I think it does not fundamentally change the solution. Until someone leaves, if she could see someone with blue eyes yesterday, she obviously still can today.

      I've become very familiar with this puzzle in years of correspondence over it now with all sorts of people. The version on my website has undergone constant revision to be precise and to handle all the confusion I've gotten from people looking at it. It's as good as I am able to make it.

      --
      xkcd.com - a webcomic of mathematics, love, and language.
    32. Re:My all-time favorite logic puzzle by dommer2029 · · Score: 1

      I enjoyed the aha! moment of figuring this one out. Thanks!

      But ... now I'm troubled by the question of the additional information the Guru added. You've stated that they are all perfect logicians. Additionally, they each need to know that all are perfect logicians. And they need to know that this knowledge is itself universal. I don't think it needs to go to another layer beyond that.

      Now, what information did the Guru give them? She told them that there existed a person with blue eyes. And, by presenting that information to all, she told them that everyone knew there existed a person with blue eyes. And, in fact, that everyone knows that everyone knows that such a person exists. Again, I think this is as far as we have to go.

      Is there another way for them to get this information? Suppose there are three Us (blue-eyes) on the island. Then everyone can see at least 2 Us. So everyone knows that everyone knows that Us exist. If there are 4 Us, everyone can see at least three, and we take it to the next level.

      Therefore, I submit that with 100 Us and 100 Bs on the island, the information is already universal and the countdown can begin immediately. On day 100, each person who sees 99 Bs knows he is a B, and each person who sees 99 Us knows he is a U. The poor Guru is stuck all alone.

      --
      VFX is more influential than you think.
    33. Re:My all-time favorite logic puzzle by Geoff-with-a-G · · Score: 1

      Therefore, I submit that with 100 Us and 100 Bs on the island, the information is already universal and the countdown can begin immediately. On day 100, each person who sees 99 Bs knows he is a B, and each person who sees 99 Us knows he is a U.

      As Council states in the original puzzle, they don't know that the distribution is equal. You may see 99 Us, but for all you know there are 99 Us and you're one of the 101 Bs.

    34. Re:My all-time favorite logic puzzle by Geoff-with-a-G · · Score: 1

      Oh, I'm sorry, you're quite correct.
      My mistake, I would retract my original comment had I the ability.

      Yours was a good puzzle, and reminds me of the Pirates dividing loot puzzle.

    35. Re:My all-time favorite logic puzzle by dommer2029 · · Score: 1

      There are two possible objections you're raising ... I'll try to address them both.

      My comment doesn't depend on the knowledge of an equal distribution. My point was that 100 is much greater than the threshold for knowing that everyone knows that everyone knows that there are Us and Bs on the island. Therefore people can act on that information before Guru says "I see a U".

      If there are 99 Us and I am one of the 101 Bs, on day 99 the Us will all leave. On day 100, if they have not left yet, I know there are at least 100 Us. Because I can see only 99 Us, I must be a U.

      --
      VFX is more influential than you think.
    36. Re:My all-time favorite logic puzzle by Council · · Score: 1

      It isn't just the starting point. They cannot act on that information. One way or another (I like the mind-bending way involving tracing the nested hypotheticals), they need the information that "if there is exactly one blue-eyed person, he will leave at midnight".

      --
      xkcd.com - a webcomic of mathematics, love, and language.
    37. Re:My all-time favorite logic puzzle by Frnknstn · · Score: 1

      That is pretty much the conclusion I have come to. The guru's statement is a hint that you should try solve this one by induction. The problem here is that it doesn't work.

      For n = 1, the person would leave the first night, for he has been told an eye colour that nobody else has, so it must be his.

      For n = 2, both would leave on the second night, as they can see there is one other person with that eye colour. If he didn't leave, it means the they also have that eye colour.

      The problem falls over at n = 3. There is no compulsion for anybody to leave on the first night. Everybody can see at least two other people that have the eye colour. Because there is no compulsion to leave on the first night, there is no compulsion to leave on the second night, or any night after that.

      But then again, I could be wrong.

      --
      If it's in you sig, it's in your post.
    38. Re:My all-time favorite logic puzzle by Anonymous Coward · · Score: 0

      That's it. First you have to notice that everybody makes a decision based on the number of people with blue eyes that he sees. If you see no person with blue eyes, you have to leave that night, if you see someone with blue eyes, there's no reason for you to leave on the first night. That leads to the conclusion that none of the people with brown or green eyes can leave before the people with blue eyes, because they always see more blue eyed people than the blue eyed people themselves. It is also clear that all people with blue eyes must leave on the same night, because there is nothing which differentiates them from eachother. They see the same number of blue eyed people as every other person with blue eyes. To deduce: the night all blue eyed people leave.

      The induction works: Every night the blue eyed people can eliminate one possibility for the number of blue eyed people on the island. If you can't see as many blue eyed people as there have to be on the island, you have to be one of them. Consequently, as the minimum number of blue eyed people reaches the actual number on the island, every blue eyed person knows their eye color.

      If nobody leaves on the first night, then there have to be at least 2 blue eyed people on the island. If you can see only one, then you are the other one. That means that, if there are only 2 blue eyed people on the island, then both will know this by the second night and leave. If they don't leave, that means each of the blue eyed people sees at least two other blue eyed people, which means there are at least 3. If you only see two, you are one of them and have to leave on the third night. But if none of the blue eyed people leaves on the third night, there have to be at least four, and so on until the 100th night, when everybody knows that there have to be at least 100, but all blue eyed people only see 99 and can thus deduce that they themselves have blue eyes and leave.

    39. Re:My all-time favorite logic puzzle by VTBassMatt · · Score: 1

      Thanks for a great puzzle, Council! I didn't understand how the case n=2 worked until I saw it in this light:

      **SPOILER WARNING** (although I guess you already gave the solution above)

      Say the blue eyes are p1 and p2; the number of other people is irrelevant as long as there's at least one of them. p1 expects p2 to leave because he looks around and only p2 has blue eyes. p2 expects p1 to leave because she looks around and only p1 has blue eyes.

      Midnight comes and goes; neither leaves. Thus, p1 now knows that there's at least one more person on the island with blue eyes. Since he can see that everyone besides p2 has brown eyes, he deduces that the person p2 was waiting on is himself. Thus he knows he has blue eyes and has to leave that night. p2 goes through a similar thought process.

      For the case n=3, there are three people (p1, p2, p3) who have blue eyes and at least one other person who has brown eyes. On day 1, p1 looks around and sees that exactly 2 people have blue eyes, so he expects them to leave not today but tomorrow (based on the n=2 case above). p2 and p3 have similar thought processes.

      On the next day, p1 doesn't have any inkling that he has blue eyes so he does not leave. However, p2 and p3 are in the same boat, and they don't leave. Thus p1 is able to deduce, just like in the n=2 case above, that both p2 and p3 are waiting on at least one person. Again, everyone else on the island has brown eyes, so it must be him. He leaves that night. As before, p2 and p3 have the exact same thought processes.

      So there's the inductive step: at day 1, each person with blue eyes expects the case n-1 (and thus that everyone with blue eyes will leave on day n-1). When case n-1 fails to happen (those with blue eyes don't leave on day n-1), the remaining person with blue eyes realizes they're waiting on him. Since this realization comes at the same time to everyone with blue eyes, they all leave on day n.

      After rethinking this, I think the brown eyed people are just a red herring and this will actually work for the case where there are no brown eyed people (as long as there remains the possibility that any given person COULD have brown eyes). I think this solution should even work if the guru has blue eyes!

    40. Re:My all-time favorite logic puzzle by dommer2029 · · Score: 1

      Right, but the Guru doesn't say "If there is exactly one blue-eyed person, he will leave at midnight." The Guru says (in effect) "There is at least one blue-eyed person, and this knowledge is universal to the nth degree." Using that information, everyone deduces that if there were exactly one blue-eyed person, he would leave at midnight.

      My question is, is there another way for them to deduce "There is at least one blue-eyed person, and this knowledge is universal to at least the minimum degree required." If there is, everyone can begin acting on the deduction "If there is exactly one blue-eyed person, he will leave at midnight," as soon as that happens.

      For example, here's an alternate setup: The guru never speaks to the crowd. Instead, each day she speaks to a different individual and says "Each day I speak to a different individual and tell them this: I have seen a blue-eyed person."

      So on day 200, everyone knows that the information is universal, and that one blue-eyed person would leave on that night.

      If: You agree that there exists some specific minimum number of people with blue eyes, who, upon seeing each other, all know that the knowledge of blue-eyed people is universal to the requisite degree. Then: Each perfect logician can conclude that if there were only one blue-eyed person, he would leave on the first night.

      --
      VFX is more influential than you think.
    41. Re:My all-time favorite logic puzzle by Frnknstn · · Score: 1

      But the blue-eyed people aren't blind! They know that there are at least 99 blue-eyed people on the island. Thus, they know that nobody will consider leaving on the first night, and nobody will then leave on any other night.

      This problem is misleading, because it looks and feels like what you describe is correct, but it tempts people to make an invalid leap of logic. 39700000 + 30000 != 40000000

      --
      If it's in you sig, it's in your post.
    42. Re:My all-time favorite logic puzzle by Council · · Score: 1

      there exists some specific minimum number of people with blue eyes, who, upon seeing each other, all know that the knowledge of blue-eyed people is universal to the requisite degree. Then: Each perfect logician can conclude that if there were only one blue-eyed person, he would leave on the first night.

      I agree except for this last part. That's like saying "if there are enough people together, one person can be a football team." Doesn't really make sense. If there were only one blue-eyed person, he would not be privy to all this knowledge, and he would NOT leave the first night. You can't transmit information up through the hypotheticals like that.

      --
      xkcd.com - a webcomic of mathematics, love, and language.
    43. Re:My all-time favorite logic puzzle by Anonymous Coward · · Score: 0

      That doesn't matter. Nobody leaving on the first night means that there is more than one blue eyed person. They already know that nobody's going to leave, but the reason is that there is more than one blue eyed person. They also know that nobody's going to leave on the second night, but then that's exactly what the induction says. The reason is that there are more than 2 of their kind. This goes on until the 100th night, when they learn something that they didn't already know: that at least 100 blue eyed people have to be on the island. If there were fewer, they would have left by then. It's the exact same argument that is easily accepted for the case of 2 blue eyed people. They know there are at least 100, but they see only 99, so they know they have to leave.

    44. Re:My all-time favorite logic puzzle by Frnknstn · · Score: 1

      They already know that nobody's going to leave
      and
      If there were fewer, they would have left by then

      How do you reconcile these two statements?

      --
      If it's in you sig, it's in your post.
    45. Re:My all-time favorite logic puzzle by Anonymous Coward · · Score: 0

      The only reason that they know that nobody's going to leave is that everybody can see they're not fewer. I know it's hard to understand that a hypothetical situation can influence the decision despite everybody knowing that it's not true. But once you establish that, if there is only one blue eyed person, he knows his eye color the instant the guru talks, you can establish that for every n, blue eyed people leave the island on night n. It's certainly true for one, and easy to see for two. It's also true for three: Suppose there are three blue eyed people and you're one of them. You see 2 blue eyed people. You have two options: Either your eyes are blue or they're not. If they're not, then there are two blue eyed people and they must leave on the second night. They don't, so your eyes cannot not be blue. You know your own eye color, so you must leave. It's the third night.

      The induction proves the result of the recursion. Every blue eyed person has to decide whether there are 99 or 100 blue eyed people on the island. They hypothesize that there are 99 and assume behaviour that 99 blue eyed people would exhibit. 99 blue eyed people would not know that there are 99. They would have to deduce this by falsifying that there are 98 blue eyed people. So, even though you KNOW that there are at least 99 blue eyed people, you would still expect every one of them to assume there are 98 blue eyed people. The difference of 2 from the actual number comes from you and another blue eyed person not knowing your own eye colors. You both assume that you have a different eye color. Now, if you expect 99 blue eyed people to assume that only 98 blue eyed people exist, then you also expect that these 99 people assume that each of the 98 blue eyed people (that they see if your eyes aren't blue) only sees 97 blue eyed people. You know it's not true, but you don't know whether they know, because if your eyes aren't blue and theirs are, then they see fewer blue eyed people than you. The knowledge about the minimum number rises day by day and ends the guessing on the 100th day.

    46. Re:My all-time favorite logic puzzle by naoursla · · Score: 1

      Once the Guru speaks he knows he is the Guru and therefore has green eyes. He leaves the very next day.

    47. Re:My all-time favorite logic puzzle by naoursla · · Score: 1

      This may seem silly, but I think the wording of the question could be improved to answer this.

      When does the Guru leave? After speaking does he realize he is the Guru and therefore has green eyes and leaves the next day? Or does he not know the eye color of the Guru (it might be red in the puzzle?) and stay on the island forever?

    48. Re:My all-time favorite logic puzzle by naoursla · · Score: 1

      If there is only one person with blue eyes then he doesn't know if there are any blue eyed people on the island. The Guru gives him that information. As you add more blue eyed people, that uncertainty is spread across all of them. It is difficult for me to understand and express what that fractional uncertainty is in an intuitive way.

    49. Re:My all-time favorite logic puzzle by naoursla · · Score: 1

      If there is only one blue eyed person he doesn't know if there are any on the island. The Guru gives him this information. I think that as you add more blue eyed people the amount of uncertainty (entropy in information theory) remains the same, but it is spread across all of the blue eyed villagers.

  381. Re:Math and science are obsolete by Anonymous Coward · · Score: 1, Interesting

    Hmmm, let me guess.

    Low taxes, no expensive workers protection, no minimum wage will move business to the 2nd coutry.

    Business in the first country will not be able to compete with business from the 2nd country. Since workers protection
    is good they will be afraid to hire people since it will be costly to fire them.

    This will lead to much higher unemployment in the first country.

    Now the answer depends on the unemployment benefits. If they are low - people will flock to the 2nd country faster.

    If they are high - it will create another drain on the 1st country resources. In 100 years it will be significantly poorer than
    2nd country and people will flock to the 2nd country then.

    It is already happenning: Europeans moving to the US, I even know a few Europeans who moved to China.
    Just compare France and the US.

  382. Flaw in arguments? by http · · Score: 1
    Assign a true/false value to each of the steps in this argument:
    All arguments that conatain one or more incorrect statement are invalid.
    This argument contains at least one incorrect statement.
    Therefore, this argument is invalid.
    Good luck...
    --
    If opportunity came disguised as temptation, one knock would be enough.
    3^2 * 67^1 * 977^1
  383. The Unexpected Hanging paradox by Anonymous Coward · · Score: 0

    Hi - I like that famous story about the man sentenced to die within the next week but where the judge says he will be surprised on the day it happens - there was even a book called "The Unexpected Hanging" based on it.

  384. Puzzles..This one has me beat! by Whisky_Idiot · · Score: 1

    Given an unbounded square grid ( ie an infinite square grid ) of one ohm resistors, What is the resistance between two adjacent nodes?

    1. Re:Puzzles..This one has me beat! by Anonymous Coward · · Score: 0
  385. C'mon, get it right. by Anonymous Coward · · Score: 0

    As I was going to St. Ives,
    I met a man with seven wives.
    Each wife had seven sacks.
    Each sack had seven cats.
    Each cat had seven kits.
    Each kit had seven mitts.
    Mitts, kits, cats, sacks, and wives,
    How many were going to St. Ives?

  386. one of my favorites by Cow+Jones · · Score: 2, Informative

    1
    1 1
    2 1
    1 2 1 1
    1 1 1 2 2 1
    3 1 2 2 1 1
    1 3 1 1 2 2 2 1
    1 1 1 3 2 1 3 2 1 1
    3 1 1 3 1 2 1 1 1 3 1 2 2 1

    continue the series!

    --

    Ah, arrogance and stupidity, all in the same package. How efficient of you. -- Londo Mollari
  387. Re:Math and science are obsolete by LeonGeeste · · Score: 1

    No, I claimed the relationship between tax revenues and tax rates is continuous, no that the entire economy can be described (predicted?) by a continuous function (of what? and predicting what?)

    Of course, you're right I was imprecise, there can be jump discontinuities, but if the number of actors is large, these are small enough to be ignored. What is most important is that you assume it doesn't behave like -1/x near the origin: increase to a vertical asymptote and then increase from negative infinity back to the axis. But I think that's a safe asssumption.

    But go ahead, keep believing that you can increase taxes indefinitely while increasing revenues. It doesn't correspond with reality, though.

    --
    Rank my idea: http://www.sinceslicedbread.com/node/531
  388. Are you sure you read the problem carefully? by anachemia · · Score: 1

    The king asks: "Since I first locked you and the other prisoners into your rooms, have all of you been in this room yet?"

    I'm guessing any passage through the central chamber must've happened BEFORE they were locked up, no?

    1. Re:Are you sure you read the problem carefully? by Anonymous Coward · · Score: 0

      "first locked you" means since everyone was put into the cells, not since they entered the room in order to get into the cells.

  389. Re:Math and science are obsolete by LeonGeeste · · Score: 1

    Cool, so how can a positive function increase from zero, and go back to zero without even decreasing? This I'd like to know!

    --
    Rank my idea: http://www.sinceslicedbread.com/node/531
  390. Similar 'proof' by Mr+Smidge · · Score: 1

    Here's a similar apparently paradoxical result:

    -1 = sqrt(-1) * sqrt(-1)
    -1 = sqrt(-1) * sqrt(1 / -1)
    -1 = sqrt(-1) * sqrt(1) / sqrt(-1)
    -1 = sqrt(1)
    -1 = 1

    Can you spot the flaw?

    1. Re:Similar 'proof' by Anonymous Coward · · Score: 0

      That's quite a good un. The problem is that sqrt(-1) is not equal to sqrt(1/-1) as 1/i = -i.

    2. Re:Similar 'proof' by Cili · · Score: 1

      sqrt(-1) is equal to sqrt(1/-1)
      sqtr(1/-1) is not equal to sqrt(1)/sqrt(-1)
      but I'm not sure why. Saying it leads to i*i = 1 is a valid explanation, yet not an interesting one.

    3. Re:Similar 'proof' by Anonymous Coward · · Score: 1, Insightful

      Square root is a multi-valued function. sqrt(-1) = +/- i, sqrt(1) = +/- 1. You can't equate two multi-valued functions in the traditional sense except under specific limiting circumstances, one of them being square roots of non-negative numbers when we only take the positive root.
       
      The "rules" of breaking up square roots that you are familiar with only work in this circumstance, and trying to extend them to square roots of negative numbers is a logical fallacy. You're making the assumption that sqrt(x/y) = sqrt(x)/sqrt(y) for all x,y in the real numbers, which is unproven and untrue.
       
      As a similar example, let's use the non-negative numbers and only take the negative root. We get that -1 = sqrt(1) = sqrt(1*1) = sqrt(1)*sqrt(1) = -1 * -1 = 1. Again, because our square root techniques only work with roots of non-negative numbers, this is not a valid proof.

  391. Re:Math and science are obsolete by LeonGeeste · · Score: 1

    Whoa, where are you in your argumentation? Claiming that you disagree with the Laffer curve is "aggressively misleasing" but the point you're trying to make is "incompatible with [my] precious curve"? Let's be a little less schizo here.

    And in case you hadn't noticed, California and Massachusettes exist. FBI's actually a pretty big fan of them.

    --
    Rank my idea: http://www.sinceslicedbread.com/node/531
  392. Why are manhole covers round? by CrazyTalk · · Score: 1

    Reminds me of the famous interview question "Why are manhole covers round"? There are several possible solutions to the problem, but my favorite is the way I (naively) answered this when I first heard the question - "Because the manholes are round"

  393. Re:continued by TrappedByMyself · · Score: 1

    And thinking about it more, in the 3 pirate case the answer will be 0 0 100, where the third pirate gets everything and the head pirate lives (assuming that they don't start fighting during negotiations). The head pirate can't trust pirate 2 with any deal, because 2 just needs to vote no and he gets everything. So, the head dude needs to dump it all on 3 for his vote. If the head dude tries to keep anything, 3 can just say no, knowing that the head dude will not die just so that 3 doesn't get anything.
    Haven't noodled through the 5 pirate problem, but I do know that the 'correct' answer found using induction is wrong given the problem.

    --

    Help me take back Slashdot. When did 'News for Nerds' become 'FUD and Conspiracy Theories for Extremist Nutjobs'?
  394. Re:Math and science are obsolete by LeonGeeste · · Score: 1

    Nice try, but wrong on about every sentence:

    the income=f(tax ratio) is not a smooth function.

    Not necessary, just at at some point a higher tax rate will come with lower revenues.

    it is by all account not even a function, eg you can have more than one value of revenue for one tax ratio.

    It is made with ceteris paribus assumptions, so just changing the tax rate can only do one thing. Okay, free will, non-determinism and all that. But I don't think that's what you were arguing.

    The usual parabol-like curve

    Does not require a parabolA-like curve.

    is based on a very simplistic model

    based on the concept of elasticity, which is far from simplistic insofar as leaving things out.

    which is useless except for pushing an ideological agenda.

    It's not just the right-wing that wants to raise revenues, right? And that's the purpose of taxation, right? You don't advocate taxation solely to hurt people *without* raising revenue, right? ...RIGHT?

    The only sound reasonning in this is that high tax rates increase the incentive for escaping taxes, which is commmon sense.

    No, that's not the main reason the Laffer Curve holds, except in very high-tax regions. High taxes also mean - in violation of your ideological agenda - that people will stop producing the things the government gets tax revenue from. This is just an application of the concept of substitution, elasticity, and deadweight losses. Think about that for a second: taxes can actually hurt! Novel concept there!

    No need for half-baked maths to get that.

    Yeah, claiming that returns have to fall at some point to get back to zero is "half-baked". I'd like to know what you deem non-baked.

    --
    Rank my idea: http://www.sinceslicedbread.com/node/531
  395. Cats and skins by Anonymous Coward · · Score: 0

    Another way is to fill the 3G jug and pour it into the 5G jug. Fill the 3G jug again and fill the 5G jug. 1G remains in the 3G jug. Empty the 5G jug. Pour the remaining 1G from the 3G jug into the 5g jug. Fill the 3G jug one last time and pour those 3Gs into the 5G jug. There are 4Gs in the 5G jug.

  396. Re:The worm on the rubber rope... ANSWER by russh347 · · Score: 1

    I saw this one first in Scientific American (a long time ago). As I recall the answer was:

    e^(10000 - y), where y is Euler's constant.

    I think it works out to 10^43429

  397. Re: Faulty Algebra by some+guy+I+know · · Score: 1
    The transition from one step to the next, viewed independently of any other step, is considered valid algebra.
    That's not true, either. Going from x+y=y to 2y=y depends on x=y. If you are going to use x=y in that step, then you also have to use it in the step where you divide by x-y.

    What you should have stated was that each step seems valid.
    --
    Those who sacrifice security to condemn liberty deserve to repeat history or something. - Benjamin Santayana
  398. Answer:Number of points required to define a plane by Nicolai+Haehnle · · Score: 1

    If you count highly-unintuitive functions as well, you don't even need a point: A single real value is enough to specify a plane.

    The proof goes roughly like this:
    The set of 3D planes has the same cardinality as R^3, as can be seen by the representation of planes via half-space functions (they have four coefficients, but since you can renormalize without changing the plane, only three are really relevant).

    R^3 has the same cardinality as R (the set of real numbers). The idea behind the proof of this is that you can write a real number as its decimal expansion, put the digits into three groups (take every third digit), and re-assemble three real numbers from those three groups. The proof itself is slightly more complicated because you have to work around the fact that 0.9999... = 1.0.

    I have omitted some fine detail here, but what this all means is that there are as many real numbers as there are planes in 3D cartesian space - there is a bijection between the respective sets, and this bijection is the function the Parent was asking for. It operates by splitting the real number into three real numbers, interpreting these as the coordinates of a point (or alternatively yaw/pitch/distance from zero) and constructing a plane from that as explained in other posts.

  399. Sphere with a hole in it by Jazbot+Bobodome · · Score: 1

    You take a solid sphere and drill a hole along the diameter of the sphere. The hole is 6 inches long. What volume of the sphere is left over after drilling?

  400. Re:Algebraic proof: 2=1 by dcapel · · Score: 1

    or a more simple way of stating a similar concept:

    2 != 1
    0(2 != 1)
    0 != 0

    I just broke algebra, without even dividing by zero.

    --
    DYWYPI?
  401. My fav math puzzle is: by Anonymous Coward · · Score: 1, Interesting

    My fav math puzzle is:
    There are two mathematicians in a room. The product of two integers >=2 is given to the first mathematician, and the sum of the same two integers is given to the second one. Hence, the first mathematician only knows the product and the second only knows the sum of the two integers. However, both are aware that the first knows the product and the second knows the sum of the two integers.

    The first mathematician is asked whether he can determine the two numbers, and he answers no.
    The second mathematician is then asked whether he can determine the two numbers, and he too answers no.
    The first mathematician is then asked once again whether he can determine the two numbers and this time the answer is yes!
    What are these two numbers?

  402. Three Not Puzzle (Difficult) by puzzled1 · · Score: 1

    Not an easy problem. Using only two NOT gates, and as many AND gates and OR gates as you want, construct a circuit with three inputs and three outputs. If the three inputs have values X Y and Z, the outputs will be not-X not-Y and not-Z. This will be true for all possible values of X Y and Z. Not a trick problem. Two valued logic.

  403. Complex Solution by Anonymous Coward · · Score: 0

    spoiler i guess if it works.. not sure if it was posted yet..

    I decided on seeing what is the most complex solution and got these two.

    Half ass solution 1 (given the prisoners know k):

    If they know k, the following solution may work, I think. Try to optimize it. Actually i dont even know if this will work.

    The prisoners decide on names for each other. The names has to be long like say n to the k to the something. The point is each prisoner's name is longer than k, and the names are unique from each other to the point where k manipulations cannot make a prisoner's name look like the others.

    Then, each prisoner is given an order/sequence id. That is from 1 through n. The person who has the number 1, when he gets in the chamber he transmits his name (it will take multiple visits .. and since I decide the minimum number of visits every prisoner gets I am going to say it's a gazillion willion fuckillion to the k ..fckit i love exponentiation). It does not matter if the king calls him first out of the prisoners or tenth. The point is, he is the first to try to transmits his name.

    When I say transmits his name, I mean "spell out his name in binary" .. so if his binary name is 1001010101010010101001001010010.. When he first enters he will point the chalice "up" (one). The second time, he will point it "down" (zero).

    Before he has transmitted his name twice if he sees the chalice not left the way he had originally left it, he calls the king a shithead TAMPERER and re-starts his transmission of his name bit by bit. After his second transmission is completed, if he waits k turns and still sees no manipulation, he starts retransmitting his name. Yes it sucks to do it this way .. it will probably takes hundreds of n's of transmission. Once the prisoner who is second in the sequence sees the complete unmanipulated name of prisoner 1 twice. Then it is his turn to transmit his name twice. And so on until every prisoner has transmitted their name two times. When prisoner number "n" has seen everyone's name he decides to say "yes".

    If k is unknown and large enough, the king can fake to prisoner number "n" that everyone transmitted and foil the plan.

    Note, this may take a zillion years for the prisoners to be freed, but the point is they'll be freed. Maybe the king will let them out early on the planning night just for coming up with a solution.

    Half ass solution number 2 (given the prisoners DO NOT know k):

    The problem doesnt say whether the prisoners know k. If prisoners do not know k, the problem becomes really hard. Because to decide on a trigger to say "yes", you have to ensure that it is not the king transmitting it to you. There may be a "solution" that involves a form of the satisfiability problem, that is each prisoner makes themselves into a logic gate (ie, a subset of prisoners act as reversible gates etc .. multi bit gates work by doing the manipulation on the second turn, or third etc turn) based complex circuit that basically has some stable solution that a prisoner looks for. Note we aren't restricted to boolean gates. In fact NOT gates may fuck up the whole thing. That is, we can have a prisoner who sums 7 bits. etc. Given that the king can manipulate the order in which prisoners are called, I am doubtful a solution like this even exists (given a known set of gates, can arbitrarily reordering them produce predictable results at a location)? What I mean is would a prisoner say Bob, who decided to act as a simple X gate .. given that he is always a X gate, can he expect to get a sequence say 1010111010101 in a row regardless of how the "gates" are ordered? He just continues to do his job until he sees that sequence. This would involve the king to not have access to a large amounts of time and computational power. If he had that, and without knowing k, you are left with a situation of prisoners unable to decide on a suitable trigger situation.

    Actually the second solution is utter nonsense .. got u a headache?

    LOL.

  404. The Monkey and the Coconuts by choconutdancer · · Score: 1

    Five sailors are shipwrecked on an island. On the island they find alot of coconut trees and a monkey. The sailors decide to spend an entire day collecting coconuts and then the next morning to split up the coconuts evenly between them and go their separate ways on the island.

    The first day they spend gathering coconuts and place them all in one huge pile.

    In the middle of the night one of the sailors wakes up and decides to take his share now. He splits the coconuts into 5 piles. One coconut won't divide out so he gives it to the monkey. He takes his 1/5 share, hides them on the island and puts all the remaining coconuts back into one pile. The second sailor wakes up and does the same thing - splits the pile into five, one coconut doesn't divide out and gives it to the monkey, takes one pile away and puts the remaining coconuts back into one pile. And so it goes for all five sailors. In the morning the sailors wake up make no comment about the smaller pile, divide the remaining coconuts between them with one coconut left over that they give to the monkey and go their separate ways.

    How many coconuts were there?

    1. Re:The Monkey and the Coconuts by whmac33 · · Score: 1

      rot13
      svsgrra gubhfnaq fvk uhaqerq gjragl bar

  405. Birthday Problem by carambola5 · · Score: 1

    There is a room with n people in it, where all their birthdays (only the month and day; year is disregarded) are randomly distributed. For what value of n is P(at least one pair of people have the same birthday) > 0.50 and for n-1, the same operation yields a probability of less than 0.50?

    --
    IWARS.
    People, in general, disappoint me. Politicians even more so.
  406. Re:1 = -1 Solution by earthstar · · Score: 1

    Thats not the method I have.
    1^2 = (-1)^2

    Take root on both sides.
    1=-1

    Now whats wrong in this proof...I couldnt find any.

  407. 3 services to 3 houses... by RichardX · · Score: 1
    You'll want a pen & paper for this one...

    A very small town is being planned. This town consists of just 6 buildings - 3 houses, and 3 service buildings - a gasworks, a power station, and a waterworks.

    Each house must recieve all 3 services - gas, water and electricity.
    To recieve a service, the house must be connected to the service building by a pipe*. The pipes can be as long as you like, and have as many corners or junctions as needed. However, the pipes from the different services must not cross at any point. The pipes can also not be routed through the houses, the houses are an endpoint only.

    So in super-lameo-ASCII vision (ignore the dots, they're just there because Slashdot doesn't seem to like strings of spaces), the design for a 2 house town would look like this:
    Electricity
              |-----------|
              |...........|
        |--house1--|.....|
    water|..........|gas..|
        |--house2--|.....|
              |...........|
              |-----------|
    So the question is, can you find an optimal design for a 3 house town?

    *the truly observant amongst you will note that electricity tends to travel down wires rather than pipes. Nothing to say the wire's not inside of a pipe though, is there?

    Answer in ROT-13. Paste here to decode

    Ybbx pnershyyl ng gur dhrfgvba, "pna lbh svaq na bcgvzny qrfvta?" Ab, lbh pnaabg, fvapr lbh pna'g svaq n jbexvat qrfvta ng nyy. Vs lbh jnag gb trg ernyyl fznegnefr nobhg vg lbh pna chapu n ubyr guebhtu lbhe cncre naq pbaarpg lbhe cvcr gb gur bgure fvqr, be jenc nebhaq gur rqtrf gb onfvpnyyl znxr vg 3 qvzrafvbany naq nibvq pebffvat lbhe yvarf, ohg ernyyl, gung'q or nobhg nf purnc nf.. jryy, nf zr nfxvat guvf dhrfgvba va gur svefg cynpr.
    --
    Curiosity was framed. Ignorance killed the cat.
  408. Two envelopes with money by slavemowgli · · Score: 1

    Oldie but goldie, and certainly a riddle that has made most people I've mentioned it to think rather hard. Consider the following situation: we play a game where I present you with two envelopes, each of which contains a certain amount of money; you may choose one, open it, and keep the money in it. One of the envelopes contains twice as much money as the other, but outside of that, you don't know how much they contain (I do, though, because I put the money inside).

    Now, there's a twist: after you choose one envelope but *before* you open it, I offer you a chance to back out of your decision and take the other envelope instead. You can do this or not; it's completely up to you. No matter what you do, the envelope you choose now is final, and you get to keep the money in it, but you don't get the money in the other envelope.

    Naturally, you want to maximize the amount of money you get.

    Now, the problem is as follows: after you choose one envelope, which contains a certain amount of money n, you know that the other envelope contains either n/2 or 2n. In other words, the other envelope contains, on average, 1.25n, which is more than the envelope you currently have - so you should trade yours for the other one. Okay.

    However, you could also look at it the following way: call the smaller amount of money n, then the envelope you have contains either 2n or n. On average, it thus contains 1.5n, and the same goes for the other envelope, too - it also contains either 2n or n, and thus, on average, 1.5n. So it doesn't matter whether you trade yours or not. Okay.

    Unfortunately, it's obvious that not both these things can be correct - it either is better for you to trade, or it's not, but not both at the same time. What's going on here?

    If you heard about this before and know the solution already, please don't post it so the riddle's not spoiled for everyone else. :) If you haven't heard of this riddle yet and think you know the solution, be sure to also explain it. :)

    --
    quidquid latine dictum sit altum videtur.
    1. Re:Two envelopes with money by Bob+Hearn · · Score: 1

      I already posted this problem, here:

      http://ask.slashdot.org/comments.pl?sid=165444&thr eshold=1&commentsort=0&tid=228&tid=4&mode=thread&c id=13802487

      Nobody has replied yet. :-( Too many other puzzles...

      However, traditionally you are allowed to open the envelope before deciding whether to switch. (See, e.g., http://www.maa.org/devlin/devlin_0708_04.html ).

      Also, here's where it really gets interesting. It turns out that both the arguments above about whether to switch are wrong! You can do better than to always keep the one you drew, but not by always switching. Since you know this puzzle already, I'll bet you're very surprised by this, and likely do not believe it. You can email me if you want me to prove it, though.

    2. Re:Two envelopes with money by SpaceNinja · · Score: 1

      I thought about this previously I found there were several problems with the envelope paradox. The first, and least relevant is that people have utility functions. The first million dollars you win is worth much more than the next. So supposing that it's useful to maximize dollar amounts is not a good 'real world' assumption. But no there's need to make real world assumptions to resolve the paradox, so moving on...

      The second problem was the lack of a distribution function / proper conditionalizing as explained in your link. However, this flaw was fixable by changing the problem slightly to use a real distribution (such that the paradox remained).

      The more fundamental problem was that the expectation of such a distribution was infinite. Consider the following simple game:

      Start with $1. Continue to flip a coin until it lands tails. Each time it lands heads triple your money.

      This simple game exhibits the same paradox. No matter how much money you get on your first play, you can always increase your expectation by giving up your winnings and playing again.

      To make the analogy obvious, suppose someone played this game twice and put the earings into two envelopes. You pick an evelope. After opening it, you'll always improve your expectation (infinitely) by switching, so you'd be willing to pay at least $1 to switch. But you knew that before picking an envelope, so why didn't you just pick the other one.

      This is IMO the crux of the paradox - infinite expectation.

    3. Re:Two envelopes with money by Bob+Hearn · · Score: 1

      If by "problems" you mean "problems with the obvious answers", then yes, you have hit a few of them. But if you mean "problems with the paradox", in the sense of it being a flawed puzzle, then I disagree. It is an excellent puzzle as stated.

      The issue of utility is not really relevant for the basic two-envelope paradox. That only arises when you have infinite expectation, which you do not since no particular probability distribution function was specified in the problem.

      You mention the lack of a pdf as a probem - well, yes, that's the crux. The apparent paradox is resolved when you realize that you are implicity assuming a uniform distribution over the reals to choose the values, and no such distribution exists.

      You're right that applying concepts from the St. Petersberg Paradox (coin-flipping until it lands tails) can lead to a two-envelope paradox variant which does yield paradoxical expectations. But, as you point out, then the expectations are infinite, and it is meaningless to compare two different strategies each yielding infinite expectation.

      However - you still haven't answered my question about the existence of a strategy which does better than not switching. I claim that such a strategy exists, independent of the pdf. You can restrict it to pdf's with finite expectation, if you wish.

    4. Re:Two envelopes with money by SpaceNinja · · Score: 1

      By 'problems' I meant objections to the argument advanced as paradoxical. And I agree it's a great puzzle! To answer your question, fix any dollar amount and switch only if you find less than that amount in the envelope. The reason I don't think the lack of pdf is the crux is because I think the problem did imply a pdf - a uniform distribution over the reals ("a random amount of money"). It's not obvious to me that no such distribution exists -- can you prove it? without assuming countable additivity? (unless you can justify it) I'd love to see this proven. It *is* clear to me that if such a distribution did exist, it would have infinite expectation, and that this is a sufficient property of a distribution to explain the paradox (any infinite expectation pdf has this issue). So I see this as the crux of the matter!

    5. Re:Two envelopes with money by Bob+Hearn · · Score: 1

      About the problem implying a pdf, note that the word "random" does not occur in the problem. It is simply stated that I (who put the checks in the envelopes) choose a number, and you don't know what it is. To me that's an unspecified pdf.

      About proving there's no uniform distribution over the reals... hmm. I've often seen it stated, with the justification being that it would be impossible to normalize. It seems self-evident - the density must be finite over a given range. But then it could not be uniform if it were normalized. Is that a proof? If not, I'm not sure why not. I'm not sure how countable additivity might enter into it. I would be interested to learn how, if I'm wrong.

      Actually, most definitions I see of uniform distribution are spefically over an interval [a,b] - so then by definition one could not have a uniform distribution over the reals. More properly, I guess, what the above argument shows is that if you have a distribution over the reals, it cannot assign equal probability to all equal intervals.

      Note that the paradoxical distributions related to the coin-flipping problem are *not* uniform.

    6. Re:Two envelopes with money by Bob+Hearn · · Score: 1

      Oh, about your answer to the problem of doing better than never switching - very clever! However, that's not the answer I had in mind. With your solution you should only expect to do better if the number you see in the envelope is in a certain range. But there's also a strategy in which you should expect to do better no matter what number you see!

    7. Re:Two envelopes with money by SpaceNinja · · Score: 1

      I think you can generalize my previous answer to make sure you do better no matter what number you see. Pick any strictly decreasing function P from [0,oo) to [1,0). When you find dollar amount x, switch with probability P(x).

    8. Re:Two envelopes with money by SpaceNinja · · Score: 1

      Well, you're right -- none of the variants listed here declare a random amount of money was placed in the envelope. So I think I have to agree with your assessment of the core issue - the problem seems to imply the envelope stuffer is going to apply some bounded method to pick a dollar amount. I was interjecting something from a previous encouner with the problem. Sorry :) Regarding a proof of no uniform distribution over the reals & countable additivity: Additivity refers the standard property of pdfs that for disjoint sets A,B, P(A or B) = P(A)+P(B). Countable additivity means that for a countable collection of sets A_1, A_2, ... you have P(union A_i) = sum P(A_i). A 'uniform distribution' should intuitively be translation invariant: P( [0,1) ) should equal P( [1, 2) ) should equal P( [2, 3) ), etc. But the union of these sets is the entire set of (nonnegative) reals. Since a normalized measure should have P( [0,oo) )=1, it's easy to see that P( [i,i+1) ) must be less than any epsilon, and thus zero. But a countable sum of zeros is 0, not 1. This proves there is no normalized, countably additive, translation invariant probability measure. It's just not clear to me why a probability measure should satisfy this countably additivity condition. (Note: the task of picking a uniformly random natural number shares the essential features and is probably simpler to consider.)

    9. Re:Two envelopes with money by SpaceNinja · · Score: 1

      Apologies for the lack of spacing. So do most people put '(p)' (but with angle brackets) before each paragraph? And how do I escape out to draw greater than/less than anyway?

    10. Re:Two envelopes with money by Bob+Hearn · · Score: 1

      "It's just not clear to me why a probability measure should satisfy this countably additivity condition"

      Well... let's see. It seems to me that once you start talking in terms of a pdf, you are already granting countable additivity, really by definition of what the pdf means. P( [0, infinity) ) = sum(i=0, infinity) P( [i, i+1) ), because each probability is an integral of the pdf over the given range, and integration is linear. This doesn't use countable additivity; rather, it satisfies the condition of countable additivity - thus allowing one to reason using results in probability theory that depend on the axiom of countable additivity.

      So (after doing my homework) I don't see how the concept of a pdf that doesn't satisfy countable additivity could be meaningful.

    11. Re:Two envelopes with money by SpaceNinja · · Score: 1

      The pdf argument doesn't do it for me because it's a theorem of measure theory that you can even use a probability distribution function to represent a measure. I guess it does make sense to me that there isn't a natural way to fairly pick one element from a countable set since countable sets are all the same cardnality. (One might expect that picking a random integer and having it be a multiple of 3 would be probability 1/3, but then the multiples of 3 are in 1-1 correspondence with the non-multiples of 3, so maybe it should be 1/2? etc) Anyway, nice chatting with you :)

    12. Re:Two envelopes with money by Bob+Hearn · · Score: 1

      Yep, that's what I had in mind.

  409. My answer to the quadrangle problem by Anonymous Coward · · Score: 0

    In math lab, they had this problem in brownies. I said: split the brownies into a top half and a bottom half. Not sure I could do it with paper, but I could do it with paper-thick mica.

  410. the problem of the twelve billiard balls by constantnormal · · Score: 1

    Given :
                                    Twelve billiard balls, numbered 1-12, otherwise identical
                                    except for the fact that one (and only one) differs in
                                    weight from all the others. It is unknown whether it is
                                    lighter or heavier.

    The Problem :

            Part 1:
                            Using only a balance scale (capable of determining
                            heavier/lighter or equal), what is the smallest
                            number of trials necessary to determine (over all
                            cases) which ball is the odd one and whether it is
                            heavier or lighter than the others ?

            Part 2:
                            Demonstrate the answer to Part 1

    1. Re:the problem of the twelve billiard balls by Anonymous Coward · · Score: 1, Informative
    2. Re:the problem of the twelve billiard balls by Garridan · · Score: 1

      Hmm. That's my favorite puzzle... but I always give it to people and tell them the minimum number of weighings. If it's open-ended, people would be satisified with a binary search as the "best". The hard part of the puzzle is not in determining the least trials, but actually optimizing it.

      I've personally come up with two solutions for that puzzle -- my first solution was discovered essentially through trial and error, whereas the second was engineered.

      But here's the real test: given that you can determine one ball in 12 with n trials... using a similar algorithm, what is the largest number of balls can you positively identify one odd out of with n+1 trials? And how? PM me for soln.

    3. Re:the problem of the twelve billiard balls by dreamer-of-rules · · Score: 1

      *laugh* The best reason to read Piers Anthony books in high school. They introduced me to a lot of these puzzles including this one, and the Prisoner's Dilemma, as "plot" points. (I think this one was in the Incarnations series). Fluff fiction otherwise, but this brings back good memories. :)

      --
      Everyone is entitled to his own opinions, but not his own facts.
  411. Unfair to programmers by Chemisor · · Score: 1

    I actually got this one at a job interview and was unable to solve it. When told the answer I was very upset and explained why I would never use such a shoddy solution (and yes, I got the job :). You see, a lightbult is defined as a light-producing device; the specification says nothing about heat. If you rely on heat to make your solution work, you're asking for trouble in the long run. As lightbulb technology improves, there is absolutely no guarantee that lightbulbs will continue generating heat. In fact, it is almost a certainty that eventually they would generate only light and no heat at all, at which point your solution will break and you'll have to spend weeks hunting through your code to figure out why it isn't working. Add to that the fact that any programmer worth his salt wouldn't even think of undocumented features like this (especially because in his time all lightbulbs produce no heat), the chances of the bug being found go down significantly. The moral of the puzzle should be: "thou shalt not use undocumented features".

  412. Re:Algebraic proof: 2=1 by fireboy1919 · · Score: 1

    No you didn't. You broke the rules of algebra. You just demonstrated a rule you didn't know about. While there is a zero identity of equality, there is no zero property of inequality.

    In other words, your second step is invalid; you're not allowed to do that.

    --
    Mod me down and I will become more powerful than you can possibly imagine!
  413. Coloured stamps by slavemowgli · · Score: 2, Informative

    Here's another nice one, courtesy of Raymond Smullyan.

    Suppose there are three people, called A, B and C. Each of these is a "perfect logician"; that is, given some information, they all are able to immediately draw any and all conclusions that can possibly be drawn from this information. Furthermore, suppose there are four red and four green stamps.

    Now, all three of them close their eyes, and two stamps are glued to their foreheads, each; the remaining two stamps are put away. Now, they all open their eyes again.

    Then, the first, A, is asked whether he knows the colours of the stamps on his forehead. He says he doesn't. Then B is asked the same thing, and also says he doesn't, and afterwards, C is asked and says he doesn't, too. Now, A is asked a second time, and he still says he doesn't know. But then, when B is asked a second time, he now says he does know.

    The question is: how?

    --
    quidquid latine dictum sit altum videtur.
    1. Re:Coloured stamps by rravenn · · Score: 2, Insightful

      Hmm. I am not quite sure it is the solution, but I figured out that you would immediately know you have two cards of color1 on your forehead if others had 2 & 2 cards of color2 (e.g. no more color2 left for you).

      If the 1st and the 3rd say they don't know and the 2nd sees that both have equal pairs of different colors (both red and both green), it means he can't have an equal pair of either color (or the 1st or the 3rd wouldve answered) and thus he has one red and one green.

    2. Re:Coloured stamps by Anonymous Coward · · Score: 0

      Since problem only asked for the colors, but not the order of the colors, we are only concerned wether a given forehead has either the (S)ame or (D)ifferent colors. Since we only have 4 balls of either color, at most two foreheads of the same color are possible. When A opens his/her/its eyes, they will see one of four possibilities: SS,SD,DS, or DD. Since A doesn't immediatly know the answer, then it was not SS, leaving the other three. Repeat this analysis for the other two logicians, and remove all the "eureka" patterns. You could also observe that after the first round, only patterns with at most one S would remain. Thus, the possible (unique) patterns are:
      ABC
      -------
      DDD
      DSD
      DDS
      SDD

      When A has a second opportunity to speak, he/she/it was unable to determine which is the correct pattern. Thus, it must be either the first or last pattern (since A only can see B&C.
      Then it is B's turn. Since A is visible to B, the pattern is then known, and by extension the colors.

    3. Re:Coloured stamps by bidule · · Score: 1


      I loved your simplification, but it doesn't work. Even if you see SS, you may not know yours:
      SS = RR+RR = GG
      SS = RR+GG = unknown
      and symmetrical cases reversing red/green.
      I'll rename the know SS to S4 = (RR+RR or GG+GG).

      FYI, I did it the hard way. In addition to the S$ each can see on the 1st round, C can also resolve SS (RR+GG) since he knows neither A nor B had R4/G4. (total: 2 + 2 + 4 cases resolved)

      Second round, A can resolve 4 more cases: SD (with D on C) because C cannot have SS; and SS. B will resolve the remaining 7 cases: 2 SS, 2 SD on each A and C, and DDD.

      --
      ID: the nose did not occur naturally, how would we wear glasses otherwise? (apologies to Voltaire)
    4. Re:Coloured stamps by bidule · · Score: 1

      Grumble,grumble, preview, grumble.
      S$ = S4
      Grumble,grumble, shift-key, grumble.

      --
      ID: the nose did not occur naturally, how would we wear glasses otherwise? (apologies to Voltaire)
  414. numbers by hassan1548 · · Score: 1


    You have a large bag and a set of numbered coins from 1 to n. You start by added coins with the numbers 1,2,3,4,5 into the bag. Then you take out the coin with the number 1 and set it aside. Now there should be 4 coins in the bag. You then add the numbers 6,7,8,9,10 into the bag and remove the 2 coin. There should be 8 coins in the bag. If you could repeat this procedure an infinite number of times, how many coins will be in the bag?

  415. has anyone classifeid these by cinnamon+colbert · · Score: 1

    These puzzles seem to fall into a limited number of classes, when you view how you get the solution.
    ONe class is the strict logic, like the old chestnut where you get some set of statements like "1, joe lives next to the geen house" "The blue house is next to joes best friend" ...etc

    Another class involves a play of words, like I came to town on monday and left two days later on friday, where friday is the name of the airplane

    A third class includes physical situation outside the language, like the early post in this thread on the MS puzzle of a closed room with a lightbulb and three switches.

    IN any event, it seems like these puzzle fall into a small number of classes, and onece you know that, you can develo simple heuristics to solve them. Of course, it may be that the puzzle requries math or some other specialized skill you don't know, but if the heuristic tells you that, you have solved the puzzle, because you now know where to get the answer frm

  416. Re:Math and science are obsolete by Anonymous Coward · · Score: 0

    All you seem to care about is how taxes relate to government income. Sure, when Reagan cut taxes in the early 80's tax income dropped. But the economy improved by leaps and bounds.

    Unemployment went from 11% to 6%. Incomes rose, and more people bought homes.

    Who the fuck cares about tax revenue. I only care about how citizens are doing.

  417. Re:Math and science are obsolete by cinnamon+colbert · · Score: 0, Redundant

    2 bad u r such a jerk, because the idea that math is obsolete for a large fraction of the population is an interesting idea..since a caclculator costs about a dollar to make, and since 90% plus of hte population can solve all of their math needs with a calculator, why do we bother teaching math before the second year of college ?
    I think you could make a serious argument about this, if one wnated to get into a serious discussion of what "education" consists of, and how many people in the US really NEED to know algebra, or trig, or something ike that. I will bet dollars to donuts that surveyors, a profession traditionally associated with strong math, are BETTER if they don't know math because the computer makes fewre erros !!!!

  418. No, there isn't enough information... by andrewagill · · Score: 1

    So there isn't enough information.

  419. My favorite 'popular' riddle by minion · · Score: 1

    04 08 15 16 23 42

    Mmmmm.. Feed me more tv.. Must consume... Must consume...

    --

    -- If we don't stand up for our rights, now, there will be no right to stand up for them later.
  420. What am I doing wrong then? by Anonymous Coward · · Score: 0

    I don't understand your explanation. Take this example and please explain what I'm doing wrong:

    Split the 50 coins into 2 piles of 25. Assume the 18 heads are randomly distributed, so you get:
    Pile 1: 4H, 21T
    Pile 2: 14H, 11T

    Randomly select 18 coins from Pile 1 to flip:
    Pick 3H and 15T from pile 1 and flip them
    Pile 1 now has 16H and 9T
    So the end result is:
    Pile 1: 16H, 9T
    Pile 2: 14H, 11T

    Either I'm doing something wrong, or your explanation is unclear, or it just doesn't work.

    1. Re:What am I doing wrong then? by Anonymous Coward · · Score: 0

      You don't split them into two groups of 25, you split them into groups of 18 and 32.

  421. I can see a fault (?) by NigelJohnstone · · Score: 1

    I think there's a fault (now that I'm caffinated I can tie my shoe laces too!). He doesn't need to keep calling them. The puzzle is that he only needs to call them the same arbitrary number of times. So he could call them only once each and that would defeat this.

    It's a nice solution otherwise.

    "The king will call the prisoners in any order he pleases, and he can call and recall each prisoner as many times as he wants, as many times in a row as he wants. The only rule the king has to obey is that eventually he has to call every prisoner in an arbitrary number of times. So maybe he will call the first prisoner in a million times before ever calling in the second prisoner twice, we just don't know. But eventually we may be certain that each prisoner will be called in ten times, or twenty times, or any number you choose. "

    1. Re:I can see a fault (?) by filipncs · · Score: 1

      No, you're wrong. The part of the riddle you quote, actually means that he has to keep calling them. Re-read the last sentence.

  422. Take a Break - 8 Ways to 15 by BoRegardless · · Score: 3, Interesting

    If you really get one of 'those' meetings or classes, you can try this. It is so boring, you have already made another Tic Tac Toe crossed set of lines. Take all 10 numeral digits and put them in the Tic Tac Toe so that all horizontal, all vertical and all diagonal sums each add up to ... 15 I give no hints.

    1. Re:Take a Break - 8 Ways to 15 by uhoreg · · Score: 1
      Take all 10 numeral digits and put them in the Tic Tac Toe...
      The hard part is figuring out how to put 10 digits into 9 squares.
      --

      To get something done, a committee should consist of no more than three persons, two of them absent.

  423. Proofs: No general solution, no "watcher" solution by CedgeS · · Score: 1

    First, here is a proof by counterexample that there is no general solution to this problem. The problem has 3 parameters, n the number of prisoners, k the number of allowed flips, and a, the arbitrary number of times the king must call each prisoner.

    Proof: no solution for k > n * a

    Let k > n * a

    This means the king can flip the challice once for every time a prisoner is called in to see him. So he can, for example, always turn the challice up before each prisoner is called in. He will select a permutation S of the prisoners, and call each of them in a times before calling the next. Each prisoner will see a string of a UP challices. They will have no way of knowing whether they are the first or last in the permutation S.

    Proof there is no "watcher" solution:

    let w be a prisoner who watches for a solution and answers yes when everyone has been in the room.

    The king overhears the prisoners planning, and so knows w. He selects S, a permutation of the prisoners, such that it maps w to 1. He calls each of them in a times before calling the next. The watcher, w, can never answer yes because no other prisoners have ever been in the room when the watcher is.

    In fact, for any number of "watchers" up to n-1 the king can beat the strategy by knowing who the only non-decider is and showing that prisoner the challice last.

    So here are some hints for you:
    First, get Brian to either give you adequate constraints on k before starting or rephrase and expand the question so that he also asks what constraints on k need to be placed.

    Secondly, the algorithm used by the prisoners will be symetrical, though they might assign themselves an asymmetry in the form of keys used to labels the prisoners.

  424. Re:Answer:Number of points required to define a pl by osgeek · · Score: 1

    So, basically, you're saying that you encode the specification for a plane in another number?

    That seems to go against the problem statement that the N points are specified in cartesian 3D space. If their encoding can be arbitrary, then they can't very well be called N points in cartesian 3D space.

  425. What really bakes my noodle... by aztektum · · Score: 1

    Is if he really would have broken if she hadn't said anything.

    --
    :: aztek ::
    No sig for you!!
  426. I like my sig by hrieke · · Score: 1

    It's been know to cause fights and make people's brain hurt.

    --
    III.IIVIVIXIIVIVIIIVVIIIIXVIIIXIIIIIIIIVIIIIVVIIIV IIVIIIIIIVIII...
    1. Re:I like my sig by smilindog2000 · · Score: 1

      3.141592.... pi

      Cute. Is there a space in there, and more to the puzzle, or is that a typo of some sort?

      --
      Beer is proof that God loves us, and wants us to be happy.
  427. Do I look like a cat ? by apankrat · · Score: 1

    Duh

    --
    3.243F6A8885A308D313
  428. don't know where I got this one.. by arabagast · · Score: 1

    ok, you are in a factory with 14 machines, producing coins. All the machines are supposed to produce exactly the same coin. But by weighing some random coins, you find out that there is one machine that produces a coin that is exactly one gram heavier than the others. Find the correct machine by doing ONE measurement.

    It's not that difficult, but it took me a few minutes to figure it out the first time :)

    --
    Doolittle : ...What is your one purpose in life?
    Bomb no.20 : To explode of course.
  429. Re:Proofs: No general solution, no "watcher" solut by Anonymous Coward · · Score: 0

    It is not directly clear from the initial description, but brian0918 has clarified that the sequence in which the prisoners are called satisfies the condition that for all i in N there is a finite but arbitrarily long prefix of the sequence after which every prisoner has been in the room i times. This is a requirement for "watcher" solutions, but it is also a requirement for this to be solvable at all. If you had to set a fixed number a of times that each prisoner has to be called, then the king could just call one of the prisoners a times in a row, then the next one and so forth. That would reduce the problem to one where each prisoner gets one bit of information from his predecessor, possibly manipulated by the king. I don't think I have to prove that with no information about the sequence and just one untrustworthy bit of information from your predecessor, you cannot decide in one shot whether everybody has been in the room by now.

    k is an arbitrary, but fixed and known, number. Given the sequence description, k can be any number at all without rendering the problem unsolvable.

  430. Re:Algebraic proof: 2=1 by Jim+Starx · · Score: 1

    No, c 1 is valid. The problem is that that's only valid when the denominator of the fraction is positive.

    --
    The darkness... controls the music. The music... controls the soul.
  431. 3 Salesman Split the tab by Slashdot-Ender · · Score: 1

    Three salesman are attending a small town sales convention. With only one hotel, the options are limited. Even worse, the hotel only has one room remaining. When the men enter to stay for the evening, the hotel owner decided to make a few extra bucks on the last room. Instead of charging the usual $25 for a room, he ups the price to 30 buck even. Each of the salesmen forks over $10 each. The bellboy escorts them to their room, but is stiffed for a tip. Later that evening the hotel owner realized that taking advantage of the salesmen during their time of need was not the proper way to do business and gives the bellboy the $5 he overcharged to return to the salesmen. As the bellboy makes his way up the stairs, he thinks (a) he didn't get a tip and (b) the salesman can't split $5 evenly, SO he only returns $3 and keeps $2 for himself. Here's the question. After the refund, each salesman paid $9 for the room, and the bellboy kept $2... where is the remaining $1 from the original $30.

    1. Re:3 Salesman Split the tab by PieSquared · · Score: 1

      The anwser, of course, is that they did NOT each pay $9 for the room... it only cost $25. They paid $9 for the room AND the "tip" to the bellboy. His $2 is included in the $9 paid by each salesman, $25 for the room + $2 for the bellboy = 9*3 = $27

      --
      Does a line appended to your comment give your post meaning in and of itself, or only in relation to those without?
  432. Age problem by Anonymous Coward · · Score: 0

    Bob asks Alice how old her three sons are, and Alice replies that the product of their ages is 36 and the sum of their ages is the number of windows on the building they happen to be in front of. After a moment of thought, Bob replies that that is not enough information to determine their ages. Alice realizes her mistake and adds, "the youngest in years has red hair."

    [Def: youngest in years means floor(age of child A) floor(age of child B) and floor(age of child A) floor(age of child B) where child A is the youngest in years and age is given in years.]

  433. solution to sample, again by Anonymous Coward · · Score: 0

    Since a solution was already posted, i don't feel bad posting another, differently stated.

    split m coins with h heads into 2 groups of size n and (m-n).
    group (1) contains h(1) heads and t(1) tails. correspondingly, group (2) has h(2) heads and t(2) tails.

    consider group (1) of size n.

    h(1) = h - h(2)
    t(1) = n - ( h - h(2) ) = n + h(2) - h

    now, apply f() to flip over all the coins in group (1).

    f(h(1)) = t(1) = n + h(2) - h

    f(h(1)) = h(2) when (n - h) = 0 , i.e. when n = h .

    so make a group equal in size to the number of initial heads then flip them all.

  434. Re:Algebraic proof: 2=1 by EvanED · · Score: 1

    x^2 = x * x = x + x + ... + x (x terms)

    d(x^2)/dx = 2x
    d(x^2)/dx = d(x+x+...+x)/dx = 1+1+...+1 (x terms) = x

    2x = x
    2 = 1, provided x != 0.

  435. Not happy by NigelJohnstone · · Score: 1

    "But eventually we may be certain that each prisoner will be called in ten times, or twenty times, or any number you choose. "

    I can see what you mean, but only if I ignore this sentence:

    "and he can call and recall each prisoner as many times as he wants"

    1. Re:Not happy by filipncs · · Score: 1
      I can see how you could interpret
      "and he can call and recall each prisoner as many times as he wants"
      as meaning that he can choose to only call on one of the prisoners a finite number of times, no matter how long we continue, but
      "But eventually we may be certain that each prisoner will be called in ten times, or twenty times, or any number you choose. "
      clearly states that this isn't what the poster means.

      If that still doesn't convince you, think of this example: Let k>n.
      Let us assume that he only calls on each prisoner once.
      Because k>n, he can completely destroy all the information the prisoners may try to send each other with the chalice, and there is obviously no way for the n'th prisoner to be called, to know that he is the last. Therefore the riddle is unsolvable in this situation, but the poster clearly states that there IS a solution!
    2. Re:Not happy by NigelJohnstone · · Score: 1

      I'm not disagreeing, I'm deferring to your interpretation, because it creates a nice solution. What I'm complaining about the wording, since he can't choose how many prisoners he calls and recalls if you get to pick.

      "Because k>n, he can completely destroy all the information the prisoners may try to send each other with the chalice, and there is obviously no way for the n'th prisoner to be called, to know that he is the last. Therefore the riddle is unsolvable in this situation, but the poster clearly states that there IS a solution!" ...or the poster is incorrect.. or the poster recalls the wording incorrectly.. or its something dumb like "the doors are on the inside so to get to the cells the prisoners must have gone through the centre room so they've all been in there, so the first one he calls says 'yes'"....

  436. solution by onwardknave · · Score: 1

    Split the coins into two groups of twenty-five. Put the coins on their edges. 0 coins in each pile are heads-up.

  437. Burning Strings by bleckywelcky · · Score: 1

    I talked to a college graduate that went to an interview at Microsoft. Apparently they throw a ton of these at you. The sad part is that like 90% of the people know this and get guides (online or something) to study the puzzles beforehand, so they know all the answers and don't actually do any thinking on their feet. Anyways, here's one of them ...

    You have 2 strings. Each string takes 1 hour to burn from end to end. You do not know the burn rate of the strings, it is completely random, and the burn rate varies along the string (ie 90% of the string may burn in the first 2 minutes and the last 10% may burn in the last 58 minutes). And the burn profile for each string is different (ie you can not flip the strings to have them burn symmetrically against each other).

    Use the 2 strings to measure a 45 minute time period.

    1. Re:Burning Strings by Joshua+Green · · Score: 1

      Wow, nice problem! Light one end of one string and both ends of the other. When the latter string is completely burnt, light the unlit end of the former string. When that string is completely burnt, 45 minutes will have passed.

  438. Re: My solution by mr_mophead · · Score: 1
    This was fun. Here's how I did it. First, the middle square needs to be 5 or less, otherwise the 9 elsewhere would make a line of 15 somewhere, with only 2 boxes used. So, assuming 5 or less in the middle, I put the 9 in a corner. Obviously the 8, 7, and 6 can't be with the 9 anywhere because that's more than 15. But putting it elsewhere left nowhere for the 6. So 9 can't be in a corner.

    So I started over with the 9 in a non-corner edge box, and 5 or less in the middle. 8 has to go in a corner or else you end up with nowhere for the 6 again. So 8 goes in a corner not involved with the 9. This leaves only one possible place for the 7, in a non-corner edge. At this point we know the middle has to be 5, because 1-4 quickly leads to multiple uses of numbers in the grid. So putting 5 in the middle leaves the rest easy to fill in:

    492
    357
    816

    or any rotation of n*pi/2, n is an integer

  439. Polar Bears by OpenGLFan · · Score: 1

    I was introduced to this in high school at the MS Governor's School camp (hi everybody!) under the name "Polar Bears." The rhyme is:
    Polar Bears
    They Come In Pairs
    They sit around a hole [1] in the ice
    Like petals on a flower.

    The game was great and swept the camp even though the hints are stronger in this version, newly promoted "BearMasters" are then given the question:
    "Now, how many fish?"

    It's sad how strong that memory is.
    [1] MSGS'ers say it with me: "hoooooooooooole in the ice" /Was the guitarist for the band in the talent show.

  440. Re:Yes, there isn't enough information... by Anonymous Coward · · Score: 0

    The title itself tells you that the hole must be ten inches long rather than ten inches wide, since there would not otherwise be sufficient information for a unique solution. So there really was enough information.

  441. SPOILER: Re:Reach 21 using 1, 5, 6 and 7 by tal_mud · · Score: 1

    SPOILER WARNING!

    6/(1-5/7)

  442. this makes sense by chocolatetrumpet · · Score: 1

    Petals AROUND the rose meant nothing to me. I looked at them for about 20 minutes and had no clue.

    Only until I read this "bears in holes" thing did it suddenly make sense.

    I guess I am really weird.

    --
    Spoon not. Fork, or fork not. There is no spoon.
    1. Re:this makes sense by EvilNTUser · · Score: 1

      Yeah, I had big problems getting it too, even after I read the code. The bear-version makes much more sense, because it reveals that there are two elements to the puzzle.

      The petal-version was especially annoying, because the "helpful" hint immediately made me think of permutations and combinations, leading me down a completely bullshit path. This wasn't helped by the fact that the description made it sound like a mathematical riddle, so I never even considered that control structures would be allowed.

      Maybe I'm just bitter I didn't solve it... :-)

      --
      My Sig: SEGV
  443. ANSWER by Jesus+IS+the+Devil · · Score: 1

    No.

    Here's the answer:

    You ask each person, "which direction will the other guy point me to if I asked him which way will take me home?"

    --

    eTrade SUCKS
  444. The Motorcycle by CustomDesigned · · Score: 1
    I like to annoy my kids with physics story problems. Here is a sample:

    Lying awake at night, you hear a motorcyle drive by. As it passes the house, the pitch of the motor drops by 1/2 step on a standard piano scale. How fast was the motorcycle traveling?

    1. Re:The Motorcycle by Anonymous Coward · · Score: 0

      I think you need to specify the original pitch.

    2. Re:The Motorcycle by CustomDesigned · · Score: 1

      Nope. You do need to know the speed of sound, however.

    3. Re:The Motorcycle by CustomDesigned · · Score: 1

      The absolute pitch is irrelevant. You do need to know the speed of sound.

  445. I'm a Tard by Anonymous Coward · · Score: 0

    The Whole Time I was thinking that flipping a coin would give a random result. Trying to figure out how the heck to do it that way is a nightmare.

  446. Partial answer to twelve marbles by ericandrade · · Score: 1

    12 marbles, 1 balance scale, 3 chances to use the scale.
    One marble is different in weight (lighter or heavier).
    How do you find which one?

    (more clues to answer below)

    3 places to put the marbles,
    Balance Scale [left side, right side] , and on the table.

    3 states for the balance Scale: left side goes up, left side goes down, no movement.

    The full answer is very elegant.
    Very fun to write down.
    Then more questions come up, like: how many trials are necessary for 13 balls? 16? 30? any random number?

  447. Re:Math and science are obsolete by Anonymous Coward · · Score: 0

    You, kind sir, suffer from wishfull thinking.

  448. Re:Math and science are obsolete by Damer+Face · · Score: 1

    > No, I claimed the relationship between tax revenues and tax rates is
    > continuous,

    That's the first time you've said that. And in an argument with someone else I find:

    him: " The trouble with the Laffer curve is that the income=f(tax ratio) is not a smooth function."

    you: "Not necessary, just at at some point a higher tax rate will come with lower revenues."

    So you state here that the function isn't necessarily continuous. I don't know why you think self-contradiction and pure invention are good arguing techniques.

    > no that the entire economy can be described (predicted?) by a
    > continuous function (of what? and predicting what?)

    You claimed that the Laffer curve is a good economic model. You also claimed that the Laffer curve is a continuous function.

    Hence you claimed "economy is described by a continous function". It's still called logic, and it's still a correct use of the verb "to describe".

    The problem most of us have with the laffer curve is that it's simplistic pseudoscience that ignores the many factors at play in a modern economy, as characterised by your king example. Yes, you are trying to distill a highly complex subject down to one formula.

    You try to defend this with latin "ceteris paribus assumptions, so just changing the tax rate can only do one thing". Newsflash, changing the tax rate won't only change one thing. Scientists actually try to keep all other things equal through the use of control experiments, economists just talk shit.

    > Of course, you're right I was imprecise, there can be jump discontinuities,
    > but if the number of actors is large, these are small enough to be ignored.

    There are jump discontinuities in experimental data, but the laffer curve is a theoretcial abstract, and I've never seen it drawn with discontinuities by anyone (other than Martin Gardner). Do you understand the difference between theory and data?

    > What is most important is that you assume it doesn't behave like -1/x near the
    > origin:

    Your favourite trick: make all sorts of bizarre claims as to what other people think when they've never said any such thing. Quote me.

    > increase to a vertical asymptote and then increase from negative
    > infinity back to the axis. But I think that's a safe asssumption.

    Personally I follow the standard of plotting the independent variable along the horizontal axis.

    > But go ahead, keep believing that you can increase taxes indefinitely while
    > increasing revenues.

    Your favourite trick: make all sorts of bizarre claims as to what other people think when they've never said any such thing. Quote me.

  449. The chalice is not a red herring . . . by CustomDesigned · · Score: 1

    The king can only change it k times. The value of k influences how long it will take before the prisoners can be confident of a yes answer. This is a thinly disguised scenario for a "zero-knowledge" cryptographic authentication protocol.

  450. Solution? : The King and the Chalice by del_ctrl_alt · · Score: 1

    *** Possible Spoiler***

    I have two possible solutions. The first involves the prisoners electing a starting prisoner. once he is selected he places the chalice at the edge of the table nearest to his door. This would assume the king only changes the orientation of the chalice and not the position on the table. Then the other prisoners are called and if the chalice is placed one position counter clockwise to their cell then they move its position. Once all the prisoners have been called the original starter will notice the chalice in the position in the cell counter clockwise next to his. He can then answer the question yes. My other solution would be as others have described in the orientation of the chalice, as others have said if the king can change it then you can't possible calculate anything from it. But I think that there is a chalice and a cup on the table. reading the problem it mentions the word cup when describing that the king can manipulate it.

  451. He wasn't really using brute force. by pavon · · Score: 2, Interesting

    Ah I got it. Took 16 rolls (written down) and almost hour. The fact that I am ignorant about roses didn't help :)

    Anyway I read that story and it didn't appear to me that he was trying to solve it by memorization, but rather that after an hour, seeing hundreds of rolls, he remembered many of them, which isn't all that surprising. What I got out of the story, is that he persistently kept at the problem trying many different ideas until he finally got it, even after everyone else in the group had solved it or quit.

    I don't think that how quickly someone solves any one particular problem is much of an indicator of how smart they are. We were doing brain teasers on an ACM trip my freshman year of college, and I was one of the first to get most of them. Then there was this one that everyone got right away and I couldn't get it. When I finally did a day later I was kicking myself because it was so obvious - I just wasn't looking at it the right way.

    This story showed my that Bill Gates is a very persistent and determined person which is probably a big reason that he was so successful. That and he needed to get a girlfriend at that point, as do I apparently :)

    1. Re:He wasn't really using brute force. by Bud · · Score: 1

      Anyway I read that story and it didn't appear to me that [Bill Gates] was trying to solve it by memorization, but rather that after an hour, seeing hundreds of rolls, he remembered many of them, which isn't all that surprising. What I got out of the story, is that he persistently kept at the problem trying many different ideas until he finally got it, even after everyone else in the group had solved it or quit.

      Ah... this explains a lot about Microsoft. Persistently keep at the problem, trying different ideas until you finally get it... after hundreds of tries, you might see the pattern. Problem is, this method is not "where do you want to go today?", but rather "where did you want to go yesterday?".

      Apple's method, incidentally, is "here's where you want to go tomorrow, in style". Ha! :-)

      --Bud

  452. Two Circles by IDontLinkMondays · · Score: 1

    This is a math question which I've asked many people to test them for job positions ranging everywhere from mathematicians requesting jobs as encryption engineers to sales people selling embedded applications. Their first and second responses to the questions can provide me with a tremendous amount of information regarding the persons' intelligence as well as their social skills. I don't expect sales people to come up with the right answer, but I do expect that after a quick guess, they should admit their guess was wrong, not try to sell me their answer no matter how wrong it is. Only once have I ever seen anyone answer the question without using paper, and he was a Ph.D. in math from Chambridge. Often I like to simply hear peoples suggestions on how best to solve the problem or at least find out what the first thing they'd look up would be to solve the problem.

    Give it a try :

    Given two circles of equal size (in other words, both are in fact circles and have equal radii). To simplify the question we'll assume the radius of the circles is 5. What is the distance between the origins of the two circles so that the area of the intersecting part is equal to the nonintersecting area of one circle. In other words "How far apart are the centers of the two circles so that if you compare the overlapped region of the circles so that it is equal to one half the area of one of the circles)

    The following bit of information is what I tend to look at for answers.

    First, with the exceptions of math freaks, people immediately answer 5 without thinking about the fact that this is completely wrong. I've had a sales person spend 10 minutes trying to convince me that his answer is in fact correct. He did no get the job.

    Shortly after, I typically am hoping to hear "Well, it must be less than 5 since the circles would have to have a greater overlap in order to achieve half coverage". For programmers, I hope to hear this observation before they reach for a pencil. If this conclusion isn't reached or they've gone the wrong direction, the programmers typically don't get the job either.

    I typically allow a few minutes from this point before I see a bunch of work on paper and if they're on the right track, I sometimes let them go ahead until they solve it or give up. Alternately, if they are not on the right track, I ask them "What's the first thing you'd look up to solve the problem?". What I'd like to hear is something like "I'd find out how to calculate the area of the intersect".

    The beauty of the problem is that the question itself (especially when you can draw two circles and describe it) sounds so incredibly simple, but in fact even most programmers can't solve it since this is the type of math they learn an later forget.

    As a note, I am a programmer and I've taught myself all my math, well at least post high-school math, I just tested out of the college level stuff since I didn't have the money to pay the whole credits. It took me 3 months on and off solving this problem. All together I think I had 45 hours invested it (not counting the endless hours laying in bed thinking about it)

  453. no more then three by Dog135 · · Score: 1
    Note that none of the digits will ever exceed 3.
    I have a truly marvelous proof for this, which, unfortunately, this post is too small to contain.

    Of course not. Since the description of a set of numbers changes when the number changes, you'll never have a number sequence of "1111" or "2222", so therefore, you'll never describe a sequence longer then 3 of the same number.
    --
    "That's so plausible, I can't believe it!" - Leela
  454. Re:Boat in a lake-Not enough info by Anonymous Coward · · Score: 0

    You're assuming the density of the bowling ball.

    If the ball is heavier than water, there is one answer.

    If the ball is lighter than water or the same as water, you have another.

    In no case does the water level rise.

  455. Re:Absolute Hardest Puzzle Ever- proceed with caut by gordo3000 · · Score: 1

    I'm a little confused....

    let's just say for god A, 'da' means yes. Then does 'da' also mean yes for gods B and C? or do each speak there own langauge so if both god A and god B said 'da', it could be they were both answering yes/no or it could also be that they didn't agree wtih each other

  456. Engineers vs Mathematicians (was: Re:Jugs by frisket · · Score: 1

    A once well-known study at Stanford used a cohort of 1,000 students, half mathematicians, half engineers. The students were introduced one at a time into a small concrete bunker. Inside was a bare concrete room. In one corner was an old bucket of water and in the opposite corner was an old tin bowl. The task was to get the water from the bucket into the bowl.

    First time round 100% of the students picked up the bucket and poured the water into the bowl.

    Then they were fed into the room a second time. This time there was Wilton carpet on the floor, a window with a view across campus, Laura Ashlet wallpaper and drapes, a fine rosewood table with a linen tablecloth, and a Waterford Crystal pitcher of iced water on it. In the corner was the (empty) bucket, and in the other corner was the tin bowl. Same task: get the water into the bowl.

    The 500 engineers picked up the pitcher of water and poured it into the bowl.

    The mathematicians picked up the pitcher and poured the water into the bucket, thereby reducing the problem to the terms of Part I, and we already have a solution to Part I...

  457. Re:Math and science are obsolete by AthroughZ · · Score: 1

    Mathematics, sorry, "math" is a thinking skill. If you don't know "math" you are an inferior product. I believe that America is used to pumping out inferior products. So please, feel free, stop fitting your human resource units with skills. No one wants your overweight units anyhow. It's no real loss. ;}

  458. math joke by Anonymous Coward · · Score: 0

    what is the square root of 69?

    ate something

    (its 8.306623862918)

  459. Monty Hall Paradox. by neo · · Score: 1

    Suppose you're on a game show, and you're given the choice of three doors: Behind one door is a car; behind the others, goats. You pick a door, say No. 1, and the host, who knows what's behind the other doors, opens another door, say No. 3, which has a goat. He then says to you, 'Do you want to pick door No. 2?' Is it to your advantage to take the switch?

    1. Re:Monty Hall Paradox. by jaydub99 · · Score: 1

      Umm, do you know the meaning of the word "paradox"?

      --

      Please mod me up. My grandma might not make it to the weekend and she always wanted me to hit karma cap.
    2. Re:Monty Hall Paradox. by neo · · Score: 1

      I do. Do you know the meaning of "Common Usage"?

  460. .999999... = 1 by Macblaster · · Score: 0

    I love the proof that .9999... repeating to infinity is equal to 1. People never believe it until they see the simple demonstrative proof:

    1/3 = 0.3333333...
    3*(1/3) = 3*(0.3333333...)
    3/3 = 0.9999999...
    1 = 0.9999999...

  461. Thanks by shma · · Score: 1


    Before this goes off the front page, I'd like to thank everyone who wrote in with their puzzles. They'll certainly be keeping me busy for a while.

    -Shma

    --
    I came here for a good argument
  462. My favourite puzzle by old_unicorn · · Score: 1

    Two puzzles - with answers I'm afraid. 1) Two doors, one leads to instant death, the other to safety. Two guards, one always tells the truth, the other always lies. How do you escape? 2) Sherlock Holmes and Dr Watson arrive at two doors, one yellow and one red, Sherlock says "We take the yellow door Watson". Why? 1) Ask either guard, which door _the other guard_ would say leads to safety. Then take the door which he did not indicate. (Which ever guard you ask, the answer will contain one truth and one lie, so the answer will be the wrong door) 2) "It's a lemon entry my dear Watson!"

    --
    ***You learn something Every day. And then you die.***
    1. Re:My favourite puzzle by Sigma+7 · · Score: 1
      Two puzzles - with answers I'm afraid. 1) Two doors, one leads to instant death, the other to safety. Two guards, one always tells the truth, the other always lies. How do you escape?
      [...]
      1) Ask either guard, which door _the other guard_ would say leads to safety. Then take the door which he did not indicate.


      The lying guard would claim lack of knowledge. Since there is no yes/no restriction, you will get this answer from a guard (that just happens to be a professional liar.)

      A better answer is to say that there is free beer in the safe area. No guard is willing to pass up a few chugs - the only problem is with the professional liars that enter the wrong door or simply stay put.

      2) "It's a lemon entry my dear Watson!"


      That pun doesn't work - the pronunciation is too different, unless it's a take off from "elemementary".
  463. The Party Problem by Anonymous Coward · · Score: 0

    How many people must you invite to a party to be certain (probability = 1) that at least 3 of the attendees either all knew each other beforehand, or, of the three, none of them knew either of the others?

  464. Seven pointed star by SiliconEntity · · Score: 1

    Here's one I came up with myself. It's not hard, but the answer is surprising.

    What is the angle at the point of the "wide" version of the seven pointed star? This is the figure you would create if you start with a circle and draw 7 equally spaced dots, then connect every dot to the 2nd one following. Express the answer in degrees as a mixed fraction (e.g. 23 1/3 degrees).

    The number seven is considered lucky, and you might find the answer surprisingly lucky!

    1. Re:Seven pointed star by HeadOffice · · Score: 1

      Euh, 128 4/7 degrees? I'm still puzzled by what's so lucky about that though...

  465. Re:Math and science are obsolete by arkanes · · Score: 1

    It's worth pointing out that at the time when monarchs could personaly pocket tax income (and it's pretty much never been that straightforwardly simple, even when "tax" meant "tribute"), social infrastructure, including the ability to assess and collect tax, was far, far more primitive. It's not apples and apples.

  466. Want to let me read your mind? by Anonymous Coward · · Score: 0

    This is old and it's just a mathematical trick, but it's still fun figuring it out. You'd be surprised how many people will never get it.

    http://digicc.com/fido/

  467. Re:Math and science are obsolete by LeonGeeste · · Score: 1

    So you state here that the function isn't necessarily continuous.

    True, the continuity deal was too restrictive. The Laffer Curve holds in *more* instances. Thanks!

    You claimed that the Laffer curve is a good economic model. You also claimed that the Laffer curve is a continuous function.

    Hence you claimed "economy is described by a continous function".


    The Laffer Curve is not a model of the economy. It does not purport to describe an array of economic activity, just that at some point, revenues diminish despite tax increases.

    The problem most of us have with the laffer curve is that it's simplistic pseudoscience that ignores the many factors at play in a modern economy, as characterised by your king example. Yes, you are trying to distill a highly complex subject down to one formula.

    Nope, no formula. And claiming that raising tax rates eventually diminishes revenues is not pseudoscience.

    You try to defend this with latin "ceteris paribus assumptions, so just changing the tax rate can only do one thing". Newsflash, changing the tax rate won't only change one thing. Scientists actually try to keep all other things equal through the use of control experiments, economists just talk shit.

    I said it will do one thing, not change one thing. Sure, raising taxes could raise revenues, increase unemployment, lower interest rates, and so on. But the person was claiming that the same change in tax rate (with all else held equal as per the curve's ceteris parib assumptions) could BOTH increase AND decrease revenues and is thus irrelevant to revenues. This is false.

    And there are economists that dismiss conclusions grounded in empirical data for the precise reasons you gave: you could never control enough variables to get a good result.

    There are jump discontinuities in experimental data, but the laffer curve is a theoretcial abstract, and I've never seen it drawn with discontinuities by anyone (other than Martin Gardner). Do you understand the difference between theory and data?

    Okay, fine, if you raise taxes, revenues will JUMP down, rather than decline smoothly. Happy now?

    > What is most important is that you assume it doesn't behave like -1/x near the
    > origin:

    Your favourite trick: make all sorts of bizarre claims as to what other people think when they've never said any such thing. Quote me.


    I never attributed anything to you. I was using "you" in the sense of "one". What's important is that one not allow that revenues can increase asymptotically and then increase from negative infinity... yeah, not a tough assumption to make.

    > increase to a vertical asymptote and then increase from negative
    > infinity back to the axis. But I think that's a safe asssumption.

    Personally I follow the standard of plotting the independent variable along the horizontal axis.


    Me too. Your point?

    > But go ahead, keep believing that you can increase taxes indefinitely while
    > increasing revenues.

    Your favourite trick: make all sorts of bizarre claims as to what other people think when they've never said any such thing. Quote me.


    Okay, you don't believe you can increase taxes indefinitely while increasing revenues. Congratulations: you agree with the concept of the Laffer Curve. Which is all I was trying to show. What a waste of time, when you already agree with me!

    --
    Rank my idea: http://www.sinceslicedbread.com/node/531
  468. Re:Math and science are obsolete by LeonGeeste · · Score: 1

    Sure it is. Monarchs tried to maximize revenues. If building a new bridge meant he could get more in taxes, accounting for the interest rate, he would do it. If some monarchs systematically guessed wrong on the utility of bridges, the ones that didn't would beat them out (war, immigration). The evidence I gave is actually more conclusive: that monarchs did not systematically engage in social spending and internal improvements probably means they don't increase tax revenues, which mean they probably don't increase the health of the economy, else they would lead to more tax revenues.

    --
    Rank my idea: http://www.sinceslicedbread.com/node/531
  469. Assumption 2) is wrong by Anonymous Coward · · Score: 0

    Assumption "2) To rotate an object one needs to give it angular velocity, " is wrong. For an explanation, see e.g. "H. Essén
    The Cat Landing on its Feet Revisited or Angular Momentum Conservation and Torque-free Rotations of Non-rigid Mechanical Systems
    American Journal of Physics 49 (1981) pp.756-758." The "Cat problem" is also mentioned in ch.3 in http://citebase.eprints.org/cgi-bin/fulltext?forma t=application/pdf&identifier=oai%3AarXiv.org%3Aphy sics%2F0401146

    You can actually get an idea of this on an ordinary office swivel(sp?) chair. Sit on it, stick your arms straight out-left and right, as quick as you can move one arm forward and the other backwards. Your body will turn in the opposite direction as a reaction. Now slowly lower your arms-still pointing forward and backward. When they are back along your body (front and back) move them slowly so they are along your side. Now your body posture should be the same as you startet with, but rotated a small angle. Repeat as many times you want to e.g. rotate 360.

  470. Re:Math and science are obsolete by arkanes · · Score: 1
    You don't need to do an experiment to see what would happen - it's the current state on a global scale today. It's also pretty intuitve - people *want* to be in the rich area, but the cost of moving and gaining a foothold in the area with a higher cost of living is greater than the ability of someone in the poor area to raise. And while the poorer area may have a better "economy", the area with the greater worker protections will have a generally higher quality of living.

    The rich have economic power, by virtue of controlling the medium of economies, and can manipulate economic policy. Thats not really news. I think it might be interesting if you did something like add a 100% tax cap after $500,000 of income. Nobody would have any incentive to make that much money any more - but the money that goes to extreme (CEO level) salaries and from huge investments doesn't just go away. Think of it as the accelerated version of trickle down economics.

  471. MOD PARENT TROLL by LeonGeeste · · Score: 4, Informative

    I had a conversation with Brian0918 on AIM this morning, in which he revealed he's really trolling when I pointed out to him there is no solution (see my other posts) on this topic. Here's a little tidbit: ". i usually just post the problem to get people into big disputes, which so far has worked 2 out of 2 times". If you want the full conversation, email me at sbartaNOSPAM_at_MAPSONgmail.com.

    --
    Rank my idea: http://www.sinceslicedbread.com/node/531
    1. Re:MOD PARENT TROLL by brian0918 · · Score: 1

      It's better for you, LeonGeeste, to assume that there is no solution so that you can get on with your life, whatever that entails. Feel free to continue spinning to your desire. I'm sure it's entertaining for all of us.

    2. Re:MOD PARENT TROLL by panth0r · · Score: 0

      By God, a troll on slashdot, I sure hope he doesn't want the sherry and muffins I'm taking to grandmother's house tomorrow!

      --
      I like suggestions, but I don't like contributing towards them.
    3. Re:MOD PARENT TROLL by Alsee · · Score: 1

      I had a conversation with Brian0918 on AIM this morning, in which he revealed he's really trolling when I pointed out to him there is no solution

      I have no idea who you spoke to on AIM or what they said, but YAW. (You are wrong.)

      The puzzle is indeed solvable, presuming that the prisoners know the value of k. (Other people have discussed that that point should be implied, but was not explicitly stated in the post.)

      "Signals" can be sent by turning the chalice one way, and erased by turning it the other way.

      You designate one prisoner to "count signals". He and the king are the only ones who can erase signals. The other prisoners only send signals, and of course the king can send false signals.

      We have n prisoners who can send signals. Note that n=(prisoners-1) because one prisoner is the designated counter. Each prisoner is told to send a signal every chance he gets, but at most 2*k+1 signals.

      If the king holds back one prisoner the most signals they can send is (n-1)*(2*k+1), and the king can add in at most k false signals. That is the most signals we can count without everyone visiting the room. If the counter sees (n-1)*(2k+1)+k +1 signals then that +1 *must* come from that prisoner that had been held back, meaning that everyone has now been to the room.

      Rewriting the equation, the threshhold count to call an end to the game is 2*n*k+n-k

      If the king instead ERASES signals, then we wait for all of the prisoners to send all of their signals. They will send a total of n*(2*k+1) signals, minus upto k signals erased by the king. Rewriting that equation, the counter will eventually see: 2*n*k+n-k signals. What a coincidence! That is the exact same threshhold count to end the game we got above! And again, we only reach this number after everyone has been to the room.

      The king can only play around in the range of +k to -k. We have a saftey margin of 2*k+1. If the king both adds and erases signals, well that just brings his meddling closer to zero and deeper into the middle of our safety margin. He can't force us to call it too soon, and he can't prevent us from eventually calling it.

      The puzzle is indeed solvable.

      -

      --
      - - You can't take something off the Internet! That's like trying to take pee out of a swimming pool.
    4. Re:MOD PARENT TROLL by cojerk · · Score: 1
      From TFP:
      The king will call the prisoners in any order he pleases, and he can call and recall each prisoner as many times as he wants, as many times in a row as he wants.

      So what would stop the King from alternating between the counter and one single other prisioner 2*n*k+n-k times?

      Unless I'm missing something, your solution doesn't seem to work.
    5. Re:MOD PARENT TROLL by Anonymous Coward · · Score: 0

      because the signalers each only signal a max of 2*k+1 times

    6. Re:MOD PARENT TROLL by Alsee · · Score: 1

      So what would stop the King from alternating between the counter and one single other prisioner 2*n*k+n-k times? Unless I'm missing something...

      You missed "Each prisoner is told to send ... at most 2*k+1 signals." If a prisoner has already sent 2*k+1 signals then he stops signalling.

      -

      --
      - - You can't take something off the Internet! That's like trying to take pee out of a swimming pool.
    7. Re:MOD PARENT TROLL by uhoreg · · Score: 1
      There is one problem with the question as stated.
      The king will call the prisoners in any order he pleases, and he can call and recall each prisoner as many times as he wants, as many times in a row as he wants. The only rule the king has to obey is that eventually he has to call every prisoner in an arbitrary number of times. So maybe he will call the first prisoner in a million times before ever calling in the second prisoner twice, we just don't know. But eventually we may be certain that each prisoner will be called in ten times, or twenty times, or any number you choose.
      Say the king needs to call each prisoner at least ten times. What is to stop him from calling prisoner #1 ten times, and never again, then prisoner #2 ten times, and never again, etc.? If the king does this, then prisoner #1 is never able to send more than 1 signal. Or the king can start off by calling the counter ten times, and never call him again. In this case, the counter will never be able to receive any signals.

      The question should probably say instead something like: "with n_i being the number of times prisoner #i is called, n_i/n_j approaches a non-zero constant as time approaches infinity, for all pairs i and j."

      --

      To get something done, a committee should consist of no more than three persons, two of them absent.

    8. Re:MOD PARENT TROLL by Alsee · · Score: 1

      Maybe I'm reading the intent, but the language on that seems fine to me. It is an ongoing process that only ends when one of the prisoners attempts to claim freedom. The king is never permitted to stop calling prisoners.

      -

      --
      - - You can't take something off the Internet! That's like trying to take pee out of a swimming pool.
    9. Re:MOD PARENT TROLL by uhoreg · · Score: 1
      But the only requirement is that the king keeps on calling prisoners, and that he call each prisoner at least c times. So he can call the first prisoner c times, then the second prisoner c times, etc. Then when he has called everyone c times, then he just keeps calling the same person over and over. In this way, the king fulfills the requirements, but they never get free.

      Same thing with if the king calls the counter c times at the very beginning, and then he can call the other prisoners as many times as he wants, for infinitely long. The counter has been called c times already, and doesn't have to be called any more.

      The solution to the problem must assume that the counter is called a sufficient number of times after the other prisoners, and that each prisoner is given enough opportunity to set the count. It is not sufficient to say that each prisoner is simply called a certain number of times.

      --

      To get something done, a committee should consist of no more than three persons, two of them absent.

    10. Re:MOD PARENT TROLL by Alsee · · Score: 1

      If and and only if c is a number fixed in advance. The wording seemed sufficent to me that the arbitrary recalls was of the ongoing process not a prefixed number, and I'd say more clear than the point that the prisoners do know k in advance.

      The king can finitely delay release as long as he likes, but if "arbitrary recalls" is not a prefixed number then the rules forclose infinitely denying release. If a sequence is finitely valid for *all* arbitrary c then mathematically the required back and forth communication is finitely guaranteed. The king can make the required c arbitrarily large compared to k, but he cannot delay c to infinity.

      -

      --
      - - You can't take something off the Internet! That's like trying to take pee out of a swimming pool.
    11. Re:MOD PARENT TROLL by uhoreg · · Score: 1
      No, I think that the last sentence of that paragraph in the problem makes it clear that c is fixed in advance: "But eventually we may be certain that each prisoner will be called in ten times, or twenty times, or any number you choose."
      The king can make the required c arbitrarily large compared to k, but he cannot delay c to infinity.
      Did you read what I wrote before? The king isn't trying to delay c to infinity. In fact, it's in the king's interest for c to be small. The king's strategy is to get c over with early, in a strategic manner.
      --

      To get something done, a committee should consist of no more than three persons, two of them absent.

  472. Re:Math and science are obsolete by arkanes · · Score: 1

    It can't, but that doesn't meant the Laffer curve is infallible. It makes certain assumptions, like there are no external actors it doesn't account for. A 100% controlled economy can easily exist, with all wealth and production controlled by the state, and still have greater than 0 productivity.

  473. What a stupid stupid stupid riddle.... by foreverdisillusioned · · Score: 1

    Am I the only one who doesn't understand or accept the "one" answer? Ok, I get that we're supposed to assume that the man and his wives (and cargo) were going in the opposite direction because this is the only explantion for meeting a fellow traveler. Pretty weak, but it's halfway logical so I'll let this one pass.

    HOWEVER, you guys need to pay attention to the final question: "Kits, cats, sacks, and wives, how many were going to St. Ives?" This cannot be answered "one" unless we also assume that the speaker is a wife. Or a talking cat. Or a sack given life by a mad wizard.

    Is it really reasonable to assume any of these things? I suppose the traveler *could* be a wife, but there's nothing in the riddle that would hint at such a thing. The narrator didn't ask how many PEOPLE or BEINGS were going to St. Ives; we're only concerned with the "Kits, cats, sacks, and wives"; ostensibly the wives mentioned in the previous line and not referring to the speaker at all. If he meant wives and cats in general as opposed to these specific wives, I suspect that the answer would be unknowable unless you could somehow account for every wife and cat and kitten and sack traveling/being taken towards St. Ives from all directions. And if "How many were going to St. Ives?" was meant to refer to all travellers in the vicinity, then "Kits, cats, sacks, and wives," has no business being attached to that sentence. Riddles that lie aren't really riddles at all; they're what I like to call "pointless drivel."

    So yeah, it's a pretty dumb riddle, but the commonly accepted answer is supendously retarded. I can only surmise that readers are too distracted by the rhyming to notice. An equivalent mathematical puzzle would go something like this:

    "What's "i" squared?"

    "Um. Negative one..."

    "HAH! Wrong! You thought I meant the imaginary number didn't you?! In this equasion the variable i=5, so the real answer is 25! Haha, you fell for it."

    Yeah, real fucking hilarious...

    1. Re:What a stupid stupid stupid riddle.... by TopherC · · Score: 1

      No, it's a good riddle, really!

      It's making fun of math teachers' fettish for meaningless and uninspired word problems. Most of the word problems that crop up on quizzes don't require any real understanding of the situation or question. You can just dive right in and start computing as you read. So the listener is teased for doing the same thing here, multiplying it out as they go, quickly getting into trouble and missing the question for it.

      And as people here have begun to realize, the only correct answer to the question is "I don't know." And yet this answer is so frowned upon in our society that people would rather choose clever-sounding answers like "one" or blame the questioner for not posing a proper question with a proper answer.

    2. Re:What a stupid stupid stupid riddle.... by VTBassMatt · · Score: 1

      >So yeah, it's a pretty dumb riddle, but the commonly accepted answer is supendously retarded. I can only surmise that readers are too distracted by the rhyming to notice. An equivalent mathematical puzzle would go something like this:

      >"What's "i" squared?"

      >"Um. Negative one..."

      >"HAH! Wrong! You thought I meant the imaginary number didn't you?! In this equasion the variable i=5, so the real answer is 25! Haha, you fell for it."

      >Yeah, real fucking hilarious...

      (emphasis added) I'm lucky I hadn't started on my beer yet... I would have spit it all over my keyboard. That was one of the funniest things I've read in a while.

  474. Matchstick puzzle by dicepackage · · Score: 1

    The way this works is each | represents one tick mark and you have to move one and only one | mark to make the problem true. This is ideally suppossed to be done with match heads so you can think of V and X as two seperate match heads combined together. You can't change the = sign and make it a less than symbol. I will post the answer in the next reply.

            XX||
    || = ------
            V|||

    1. Re:Matchstick puzzle by dicepackage · · Score: 1

      The answer is Pi = 22/7 or in matchstick form
      _    XX||
      || = -----
            V||

    2. Re:Matchstick puzzle by whmac33 · · Score: 1

      It would be a better riddle if the answer were valid.

  475. I beg to differ by foreverdisillusioned · · Score: 1

    My answer is that they do weigh the same, and if you try to claim "oh no, I really meant TROY pounds" I will sue the crap out of you for false advertisement :-p

    1. Re:I beg to differ by Damer+Face · · Score: 1

      Damn. Busted. ...

      I've got this "really good"(tm) software for sale if you're interested.

  476. for a second there, I thought you were saying "I reprogrammed my genetic code in order to temporarily boost my brainpower" and I was like whoa, that's hardcore.

  477. Re:Math and science are obsolete by cinnamon+colbert · · Score: 1

    sarcastic putdowns are the last refuge of the arrogant and stupid, to paraphrase a famous phrase

  478. RE: Absolute Hardest Puzzle (MOD PARENT DOWN) by SpaceNinja · · Score: 1

    With three questions there are eight possible cases you could distinguish. Since you're only asking for the order of the gods (six possible permutations), it seems momentarily plausible. But then we remember that Random's answers don't tell us anything, so if (da,da,ja) maps to (False, Random, True), then (da,ja,ja) must also). Similarly, there must be two sets of answers that map to each possible permutation. But we don't have twelve possible outcomes from the questions. Parent is a troll. QED.

  479. Solution? by nwbvt · · Score: 1
    My previous solution (each prisoner but one flips it one way k+1 times and then the other guy just counts how many times he flips it back, then say everyone has been in there once they get to (n-1)(k+1)) does have a flaw, in that the king can use his flips to counter the other prisoner's flips instead of using them to fake them. Right before he calls the leader, he can flip it back to the origional position and the leader will never count it, thus he will never get to (n-1)(k+1).

    However, this can easily be solved by increasing the number of times each non-leader prisoner flips it by k. If they each flip it 2k+1 times, then the leader can wait until he gets to a count of (2k+1)(n-1)-k.

    Proof that it is reachable: Since the prisoners will flip it (2k+1)(n-1) times and the king can only cancel out k of those with his flips, this count will be eventually reached.

    Proof that everyone will have visited the room at this time: The worst case scenario would be if every non-leader prisoner but one has flipped it all 2k+1 times and the king has used all k of his flips in the same direction. This will cause the count to reach (2k+1)(n-2)+k. I believe if you do the algebra, you will find this is one less than the required (2k+1)(n-1)-k. In order to get that last flip, the last prisoner will have to go into the room.

    If you also consider that you don't know which way the chalice will be initially, you can just assume it will be one way. If it is not, you can assume the king has used one of his now k+1 flips to make it that way, and adjust the formula as needed.

    Any objections?

    --
    Mathematics is made of 50 percent formulas, 50 percent proofs, and 50 percent imagination.
  480. mixed states easy. by tempest69 · · Score: 1
    ok easy fix


    switch 1, leave alone


    switch 2, flip, wait 5 minutes, unflip.


    switch 3, flip at the unflip.



    Run to room, check temps/states of all bulbs.
    1 is either hot/on or cold/off.


    2 is either warm/on, or warm/off


    3 is either Hot/off, or Cold/on.



    Storm

  481. Re: Absolute Hardest Puzzle (MOD PARENT DOWN) by Anonymous Coward · · Score: 0

    Random isn't truly random - you just don't know whether or not he's telling the truth. However, if you ask a suitable question:

    If I were to ask the X god what the word for no/yes is, what would he say?

    I won't give the exact phrasing away, but if you can narrow down what the words are, then you can easily figure everything else out...

  482. Re:Math and science are obsolete by AthroughZ · · Score: 1

    If that's true then you should be able to prove it.

  483. Detailed proof that the answer works for n = 2 by Anonymous Coward · · Score: 0

    The poster is /not/ posting a problem without a solution, or one that only his close buddies have confirmed. I have no idea who the poster is, and have come across a slight variant of the problem before; it's a great problem, and does indeed look insoluble at first, but the given solution works, and if you take a little time to check the numbers, you'll see that.

    Concrete example: n = 2. There are two prisoners, just the counter (Alice) and one other (Bob). Each time Alice comes in, she turns it upside-down if it wasn't already. Each time Bob comes in, he turns it right-way-up if it wasn't already.

      First claim: If Alice has ever turned it over k+2 times, she knows then that Bob has been in.
      Justification: She can know this because between any two , the cup has been turned back somehow at least once; so in total it's been turned right-way-up at least k+1 times. Since the king can only flip it k times, at least one of the times it was turned back up must have been by Bob. So Bob must have been in.

      Second claim: Sooner or later, whatever the king does, Alice will have turned it over k+2 times.
      Justification: The statement that each prisoner gets called in arbitrarily many times (as long as they're not set free first) can be restated as that no prisoner has ever been called in for the last time. So starting from any given time, we can find some time after it that Bob is called in, then some time after that that Alice is called in, then another that Bob is called in, and so on as far as we like. In particular, we can find (2k+2) pairs of times alternating in this way.
      Each time that Bob goes in, he ensures the chalice right-way-up. Each time Alice leaves, she leaves it upside-down. So between each time Bob goes in and the next time in our sequence that Alice leaves, the cup gets turned upside-down at some point, either by her or the king. But we found (2k+2) such pairs of times, and the king can have turned it upside-down at most k of times, so Alice must have done it at least k+2 times.

      Thus sooner or later Alice will have turned it over k+2 times, and so can confidently say that both she and Bob have been in.

      This is, I think, a watertight proof that the strategy works in the case where there are just two prisoners; the same proof can be extended to cover the general case with more prisoners, but it'd take a better writer than me to set it out in a way that's both pedantically rigorous and reasonably clear to read. Your argument that the state of the cup can't carry enough information does sound convincing - it's roughly what I thought when I first heard the problem - but if you try to formalise it information-theoretically it doesn't quite go through.

  484. Re:Math and science are obsolete by Damer+Face · · Score: 1

    > True, the continuity deal was too restrictive. The Laffer Curve holds in
    > *more* instances. Thanks!

    You can keep trying to redefine what you think the laffer curve is supposed to indicate, but you'll continue to be wrong. Partly because the theory itself is wrong, and partly because you lack the ability to think and argue coherently.

    > The Laffer Curve is not a model of the economy.

    *uses LeonGeeste anime school of arguing trick* So you agree with me that the laffer curve is not a viable economic model. Thanks.

    > It does not purport to describe an array of economic activity, just that at
    > some point, revenues diminish despite tax increases.

    Pathetic backpedalling on your part. Most people agrees that "at some point, revenues diminish despite tax increases". "At some point" is the crucial part of that phrase that you're not dealing with.

    > And claiming that raising tax rates eventually diminishes revenues is not
    > pseudoscience.

    I'm calling the laffer model in its entirity pseudoscience. Here's a hint, boy, the laffer curve does not state that "raising tax rates eventually diminishes revenues", that's one of the assumptions used in the laffer model. The two are not the same thing. Try and work this out.

    I surely agree with two if the assumptions, that 0% of x is 0 and that 100% of 0 is 0. All that stuff in the middle: wrong. To then proclaim that decreasing taxes *will* increase revenue without a further assumption (hopefully backed up with some empirical data) as to where you are on the curve: double wrong with wrong sprinklings and lashings of wrong sauce.

    Mmmmm. What a big feast of wrong you're trying to jam down that throat of yours. As before, here's hoping you choke.

    Now, if you're trying to rewrite the laffer model so that all it is saying is that "at some point [...] raising tax rates eventually diminishes revenues", let's call that the lesser-laffer model, then almost no-one will disagree with you.

    > I said it will do one thing, not change one thing.

    So what is this "one thing" that changing tax rates will "do"? And don't say increase revenue, because it depends on where you are on the curve. Is it that it will change total revenues? Wow, big news.

    > Sure, raising taxes could raise revenues, increase unemployment, lower
    > interest rates, and so on. But the person was claiming that the same change in > tax rate (with all else held equal as per the curve's ceteris parib
    > assumptions) could BOTH increase AND decrease revenues and is thus irrelevant
    > to revenues. This is false.

    Nope they didn't say that. They were probably slightly misled by one of the sideways-drawn economists' graphs; they most certainly didn't say that if something can increase and decrease revenue then it is irrelevant to revenue, as it is obviously affecting revenue how can it be irrelevant?

    They did say that it's shit economics. Even for economics. And I heartily concur.

    > And there are economists that dismiss conclusions grounded in empirical data
    > for the precise reasons you gave: you could never control enough variables to > get a good result.

    Which is why it is pseudoscience. It oftend pretends to be science but doesn't follow any of its strictures, such as falsifiabilty or empirical data. And then it's used as a reason to fuck with people's lives.

    Thanks for proving us right. Again.

    > Okay, fine, if you raise taxes, revenues will JUMP down, rather than decline
    > smoothly. Happy now?

    No: "will". It depends, according to the theory, on where you are on the curve. You keep trying to ignore that one rather salient fact. What the curve in its entirity does show, is that if you adjust the tax rate, then tax revenues will either increase or decrease. Wow, that's big news to everyone here I'm sure.

    > > > What is most important is that you assume it doesn't behave like -1/x near
    >

  485. All horses are the same color (by induction) by Anonymous Coward · · Score: 1, Interesting
  486. Magic Sudoku by Anonymous Coward · · Score: 0

    Magic Sudoku is a variation of the original Sudoku. It's adds some new restrictions:

    * Every main diagonal has the numbers 1 to 9 without repetition. (the same as original sudoku but applied to diagonals).
    * Every Quadrant has only a number.
    * There is some special rows (filled with blue color). The value of the numbers who are in this cells is lower or equal as the number of coloured cells in every quadrant.


    checkout at PrintSudoku.

  487. Re:Math and science are obsolete for leftists by Anonymous Coward · · Score: 0

    You didn't quite get it, did you?

    The laffer Curve is all about tax revenues, it has nothing to do with state expenses. On the contrary, since it helps to establish maximum tax revenue, it would actually help New Orleans by giving more funds for securing the area.

  488. planetarium by bencurthoys · · Score: 1

    www.beholder.co.uk/planetarium/ is my favourite mathematical/logical/linguistic puzzle. it takes a bit of solving, mind.

  489. Thanks and Simple Solution! by CedgeS · · Score: 1

    I toyed with all sorts of verifiable communication systems, and there is something in having messages that can withstand more error than all previous message sizes combined plus something bigger than k, but there is difficulty in transitioning between pairs of talking prisoners. There needs to be some sort of "bell ringining" (a broadcast by constantly flipping the challice) which is dificult to negotiate responses to. So here's something unbelievably simple that works:

    Let's add one simplification, the king gets k = (k in original puzzle) + 1 flips because he gets an extra flip from the challice's undefined initial state. We'll be generous and assume this could cause an error the king desires anywhere and not just at the start.

    Prisoners are numbered p0 through pn. (Here n is one less than in the original puzzle.) They choose a number f discussed below. Here are their strategies:

    p0: sees a challice up - turns it down
    counts turns, once he or she has flipped it more than the numebr of time discussed bellow, tells the king "Yes"

    p1 through pn: sees a challice down - turns it up
    counts turns, once he's done it f times he stops (no longer turns challice)

    Notice that these messages can not interfere with each other.

    The king's flips can either add to the number counted by p0 (by flipping it down before showing p0) or subtract from it (by flipping it up before showing any other prisoner). All of the flips will be eventually recorder because every prisoner is shown the challice after any other prisoner and thus after any transition (thanks AC). The number of up flips fated to be made by prisoners is fn. The king can adjust this as low as fn - k or as high as fn + k. The most that the challice could possibly be flipped without all the prisoners entering the room is f(n-1) times. So when not all the prisoners have been in the room the total number of flips is 2k. Now the first prisoner, once he or she flips the challice more than fn - f + k times, knows that all the prisoners are accounted for and can tell the king "Yes". Don't be surprised if I'm off by +/- 1 total; the prisoners would be wise to use a bigger f to absorb any fencepost errors.

    1. Re:Thanks and Simple Solution! by CedgeS · · Score: 1

      Thanks slashdot, for eating everything between a greater than and a less than sign on a plain text post. Just like .

  490. Answer by Anonymous Coward · · Score: 0

    The question: "What would someone from your tribe say if you asked them which way I needed to go at this fork to reach the Village of Life?"

    If this is the truth-teller, so is his tribe member, so you get the correct answer. If it is the liar, his tribe member is also a liar, so the first guy would point towards the Village of Death, and the second guy lies about what the other guy would say, pointing you to the Village of Life.

    This assumes honest liars, but does not assume which Village each tribe is from (indeed, they need not be from either for this to work).

  491. Re:Math and science are obsolete by eonlabs · · Score: 1

    I agree with the statement about Americans teaching themselves to become inferior. We keep abstracting technique out of our teaching system and replacing it with computers and tools. The large majority of us may be literate, but that doesn't mean we know what the hell we're doing any more. People who really take the time to study why things work the way they do are still getting jobs. I think a major issue is the thought everyone in America needs a College Education to get a job. People need to wake up. College Educations are not valuable if you're not using them to learn why what you're doing works.

    The reason math and science are obsolete is even a topic of discussion is we're becoming overly dependant on our technology to do work for us.

    What would happen if we had no electricity? A major blackout?

    What about when people do allow math and science into obsolecence. Are we going to allow the Foundation to come true?

    Who will fix the tools when we've become so dependant on them that we no longer can?

    --
    I wouldn't consider the mad hatter mad. Just reality impaired. He sure can make a mean cup of tea.
  492. Re:Math and science are obsolete by amiran · · Score: 1
    It is fairly rare to find any government, much less our own relatively low-tax government, which has ever received lower revenue from marginally higher taxation (or vice versa).

    That's quite interesting. Could you then explain how is it possible, that in 2004 in Poland after CIT decrease from 27% to 19% (sic!) total tax revenue increased?

    What's amazing is the degree to which supply-side economics resembles religion: because it is almost entirely devoid of evidence.

    And who's saying that...
  493. Persoanl Favourite From Elementary School by xsbellx · · Score: 1

    Three travelling salesmen are stuck in a small town due a road being washed out. The town is rather small and has only one hotel. The three salesmen arrive at the hotel at the same time and all are interested in renting a room. Unfortuantely there is only one room available. The desk clerk says the room is $30.00 for the night and if they each pay $10.00 they can share the room. The salesmen agree this is the only reasonable option so they each pay $10.00.

    A short time later the desk clerk realizes he made a mistake and over-charged the salesmen. He calls the bellhop over and says, "I overcharged those three guys in room 9, I should ahve only charged them $25.00 for the night. Please take the gentlemen $5.00 and offer my appologies". The bellhop takes the $5.00 and starts heading for room 9.

    On the way, the bellhop realizes it will difficult to split $5.00 between the three gentlemen. Not being the most honest person around, the bellhop decides to pocket $2.00 and return $3.00 to the gentlemen in the room.

    Now the salesmen have each paid a total for $27.00 for the room ($10.00 ((the origianl amount paid)) minus $1.00 ((the dollar returned to each by the bellhop)) times 3). The bellhop has kept $2.00. $27.00 plus $2.00 is $29.00.

    Where is the missing dollar?

    --
    If VISTA is the answer, you didn't understand the question
    1. Re:Persoanl Favourite From Elementary School by n6kuy · · Score: 1

      Heheh. Quick change artistry here.
      The $27 paid by the salesmen equals the $25 room rate plus the $2 "tip" to the bell hop.
      That plus the $3 returned adds up to the original $30.

      --
      If you disagree with me on social issues, then it's pretty clear that you are a narrow-minded bigot.
    2. Re:Persoanl Favourite From Elementary School by xsbellx · · Score: 1

      U DA MAN!!!!

      --
      If VISTA is the answer, you didn't understand the question
  494. MOD PARENT DOWN by CoughDropAddict · · Score: 2, Insightful

    So what you're saying is that you wrote the problem ambiguously, and to resolve ambiguities we ought to choose the interpretation that yields a solution?

    Your description of the problem does not say when k is fixed. A perfectly valid reading of the problem is to suppose that the prisoners are told that the king will decide k when the game begins.

    You ought to admit that the problem was unclear, instead of insulting everyone who interprets your ambiguity the wrong way.

  495. Breasts? by geekpuppySEA · · Score: 1

    I knew breasts would make it into this posting somehow.

    --
    Intelligent Design: because MATH is HARD.
  496. Re:The Curious Incident of the Dog in the Night-Ti by Flyboy+Connor · · Score: 1
    Always switch. There is a 1/3 chance your first choice is right and a 1/2 chance the remaining door is right.

    And what about the remaining 1/6? Is that the chance that you are fooled and that there is no prize at all?

  497. How wide the corridor? by bidule · · Score: 1

    You have two planks: 3m and 2m long. They are placed in a X pattern across a corridor, each with one end on the floor touching one wall and leaning against the other wall. They cross each other at 1m from the floor.

    And no, I don't know the answer.

    --
    ID: the nose did not occur naturally, how would we wear glasses otherwise? (apologies to Voltaire)
  498. The Changeling by coolmaniac · · Score: 1

    "I lied"

  499. Re:The King and the Chalice: full solution by Myopic · · Score: 1

    so is it a mistake in the original problem that, if each prisoner will be brought out X times, the king can bring out the first prisoner all X times before ever going back to the next prisoner? because if he can do that, he can bring out the counter all X times, and foil the prisoners' plan.

  500. Re:The Curious Incident of the Dog in the Night-Ti by kronocide · · Score: 1

    You can't add the probabilities. They change when the guy opens the door.

  501. Tiles on a chess board. by munpfazy · · Score: 1

    Sorry if this is a dupe - I've tried searching the thread with likely keywords without finding it.

    The most elegant puzzle I've ever heard follows. I've heard it attributed to various people, but haven't yet come across any well documented attribution.

    Consider a standard 8x8 chessboard, and a set of rectangular tiles that are exactly 1x2 squares in size. It's obvious that you can cover every square on the chessboard with 32 tiles.

    Now, remove the squares from two opposite corners (eg. top left, bottom right). Is it possible to cover every remaining square using 31 tiles?

    (Hint: the solution can be given in one or two short sentences and requires no formal math.)

    1. Re:Tiles on a chess board. by HeadOffice · · Score: 1

      And how many squares does a chessboard contain?

  502. Not quite; corrected proofs by Dire+Bonobo · · Score: 1

    Unfortunately, your proofs are both flawed:

    > The problem has 3 parameters...a, the arbitrary number of
    > times the king must call each prisoner.

    There is no such "a". In mathematical parlance, "an arbitrary number of times" doesn't correspond to any particular number - it means that all numbers must be considered. In other words, "a" is not a parameter of the game, and hence your equation---k > n * a---makes no sense (unless k is infinite).

    The problem is simple if k is known to the prisoners, and verifiably impossible if k is unknown to them.

    The solution (when k is known) has been given by others (hint: counting). The refutation (when k is unknown) is information-theoretic. Any valid prisoner-decision algorithm must be finite, and so must terminate after receiving at most A bits of information. All bits of information must be transmitted through the chalice. The king can invalidate up to k bits of information by cleverly flipping the chalice (i.e., since he knows the prisoners' algorithm, he can just randomize the chalice every time it's about to transmit a bit). Thus, if k >= n*A, the prisoners' algorithm must terminate before any valid information has been received by any prisoner, and hence cannot guarantee the required result. Since k is unknown when choosing A, no algorithm can be devised which will always succeed.

  503. An excellent collection of puzzles by Anonymous Coward · · Score: 1, Interesting

    An excellent site with puzzles: Thirty Puzzles for Mathematicians and Computer Scientists

    For example:

    Bigger or Smaller: Alice chooses two distinct real numbers between 0 and 1, writes them onto two chits of papers and places the chits in a jar. Bob gets to select one of the chits randomly and open it. He then has to declare whether the number he sees is the bigger or smaller of the two. Is there any way he can be correct more than half the times Alice plays this game with him?

    f(f(x)) == -x? Is it possible to write a function int f(int x) in C that satisfies f(f(x)) == -x? Without globals and static variables? Is it possible to construct a function f mapping rationals to rationals such that f(f(x)) = 1/x?

    30 Coins: 30 coins of arbitrary denominations are laid out in a row. Ram and Maya alternately pick one of the two coins at the ends of the row. Could Maya ever collect more money than Ram?

  504. Worm on a rubber band by Flyboy+Connor · · Score: 1

    I always loved this one, because it is so counter-intuitive (at first): There is a worm which starts to crawl along a rubber band. The rubber band starts with a length of 1 meter, with the worm at one end. The worm crawls 1 centimeter per second. At the end of each second, the rubber band expands with another meter. Suppose the worm will live forever and the rubber band never breaks, will the worm ever reach the end of the band? If so, when?

    1. Re:Worm on a rubber band by ChrisJones · · Score: 1

      If it's counter-intuitive to you it might be intuitive to me. How do I know I haven't just thought of the right answer, but dismissed it because you said I should expect the opposite of what I expect? ;)

      --
      Chris "Ng" Jones
      cmsj@tenshu.net
      www.tenshu.net
  505. Cabin In The Woods by Myopic · · Score: 1

    We used to do 5 Minute Mysteries. My favorite was "Four men are found dead in a cabin in the woods, all sitting in seats facing the same direction. What happened?"

    It's not really a riddle because there is supposed to be a question-answer discussion leading eventually to the solution, but all the details to solve the problem are in fact already given.

  506. Re:The Curious Incident of the Dog in the Night-Ti by Flyboy+Connor · · Score: 1

    I am sorry, but you can ALWAYS add probabilities. There are three doors. One is already open, so it has a probability of zero that the car is behind it. The other two are still closed, and if there is indeed a car behind one of them, the probability that the car is behind one of them is 1. The probabilities of the two remaining doors therefore must add up to 1. And, indeed, the correct answer would be that the "other door" now has a probability of 2/3. If you still don't believe me, I really would like to do some betting with you.

  507. "Arbitrary" != "fixed" by Dire+Bonobo · · Score: 1

    >>> he has to call every prisoner in an arbitrary number of times.
    >
    > the king can call any nominated leader/counter the maximum number of times

    False

    There is no "maximum number of times" - arbitrary means just that, arbitrary. You want 50 times? 100? 1000? 6023*10^23? The king must give you any of those.

    In particular, that means each prisoner will be called in after each other prisoner has been called in an arbitrary number of times, leading to the simple counting solution most people come up with. (Proof: suppose otherwise---i.e., there exists a prisoner A and a prisoner B such that A is not called in after B has been called in P times. Once B has been called in for the Pth time, A has been called in N_a times. However, A must be called in an arbitrary number of times; in particular, he must be called in N_a+1 times. Thus, A must be called in again. Contradiction. Therefore, there cannot exist such a pair of prisoners A,B---i.e., there are no two prisoners such that the first only sees the second called in a fixed number of times.)

    The key is to have a correct understanding of what "an arbitrary number of times" means in math-speak.

  508. Excellent book of CS/Math puzzles by Peter Winkler by Anonymous Coward · · Score: 1, Interesting

    Mathematical Puzzles: A connoisseur's Collection by Peter Winkler: at Amazon. The first chapter is readable at Amazon! With wonderful puzzles.

  509. Re:Math and science are obsolete by Simon+for+$1 · · Score: 1

    Yes, please be a little less schizo.

    If California and Massachusettes are already progressive states then why are you trying to get another one established? Some half of you must see your experiment as already complete.

  510. Re:Math and science are obsolete by Anonymous Coward · · Score: 0

    Algebra is actually a very good problem-solving tool. I can't answer for trig or calculus, as I've never studied those. It's not enough to have the calculator figure everything out, though; you really need to understand how to calculate the answer yourself.

    If math and science truly become obsolete (never!), I sincerely hope that people like you double up on your spelling and grammar lessons.

  511. The answer is.... by xMatthewx44 · · Score: 1

    its logic guys, quit trying to re-invent the wheel.

    turn on switches one and two, and wait about a minute.

    then, turn off switch two and immediately go into the room.

    if the bulb is on, its switch one. if the bulb is off, but still warm, it was switch two. if the bulb is off and cold, then it was switch three.

    man, how many /.ers just wanted a multimeter? 8^)

    1. Re:The answer is.... by lowrydr310 · · Score: 1
      What if the bulb is burned out? Or what if the light was on before you started playing with the switches?

      If this question was actually used, were these possibilities left open or were the instructions more explicit?

      My favorite answers: Peeking under the door, or chopping a hole in the door.

  512. Re:The Curious Incident of the Dog in the Night-Ti by kronocide · · Score: 1

    Well, the answer is the one I gave you, as you can look up on any relevant website. If you need help to internalize the theory behind it, I'm afraid I'm not your guy. Good luck.

  513. Re: 123? by tverbeek · · Score: 1

    I have a truly marvelous proof for this, which, unfortunately, this post is too small to contain. Please share, Mssr. Fermat.

    --
    http://alternatives.rzero.com/
  514. Re:The King and the Chalice: full solution by mrcdeckard · · Score: 1

    but it's well on the way to the solution. just design it so that every prisoner can act as the leader somehow -- distributed leadership if you will, all that's missing from the abovce solution is a way to beat the king if he decides to call the leader in n times first thing, eg.

    that is, if the king called the leader in n times before he called in anyone else, the leader would never collect any tokens . . . someone else would have to become the leader.

    it gets quite complex.

    mr c

    --
    "Physics is like sex. Sure, it may give some practical results, but that's not why we do it." - R. Feynman
  515. Re:Math and science are obsolete by shanen · · Score: 1
    Thank you for another fine example of the abuse of /. anonymity. Still waiting for the first example of a legitimate usage here.

    By the way, if it doesn't exceed your bravery quotient please mark me as your foe so we can happily ignore each other in perpetuity. I have no use for foolish cowards, with or without the bravery of their anonymity.

    --
    Freedom = (Meaningful - Coerced) Choice != (Speech | Beer^2), and sad sock puppets' bad mods avail them naught.
  516. Here's my favorite! by callipygian-showsyst · · Score: 1
    I was a "mathlete" in high school, and a math major in college, so I know a lot of these math/logic puzzles.

    One of my favorites is from Martin Gardner, which I paraphrase below:

    One day two mathematicians, Igor and Pavel, meet in the street. "How are you? How are your sons?" asks Igor. "You have three sons as I remember, don't you? But I have forgotten their ages."

    "Yes, I do have three sons," replies Pavel. "The product of their ages is equal to 36." Looking around and then pointing to a nearby house, Pavel says, "The sum of their ages is equal to the number of windows in that house."

    Igor thinks for a minute and then responds, "Listen, Pavel, I cannot find the ages of your sons."

    "Oh, I am very sorry", says Pavel; "I forgot to tell you that my oldest son has red hair."

    Now Igor is able to find the ages of the brothers. What are their ages?

    A great puzzle, easy to figure out, no need for advanced math, and a true "Aha!" moment when the trick is figured out....

  517. oh, ha... I was solving the wrong problem by MrHen · · Score: 1

    Before running off to church this morning I wrote 50 and 18 on my hand and by the time I decided to give up on the service and start solving it I couldn't remember what the goal was. I thought it was to make two piles, one filled with nothing but heads up and the other filled with nothing but heads down.

    Needless to say, the puzzle is much easier to solve when you know what the goal is. :P

    On a different note, I started chasing down a possible solution but decided that this was significantly too much work to go through to impress the readers of /.

  518. Re:Math and science are obsolete by Anonymous Coward · · Score: 0

    Ever-so-respectable Tripod "webmasters" simply cannot call anybody a fool and expect to be taken seriously.

  519. Look and Say sequence? by Lactoso · · Score: 1

    1 11 21 1211 111221 312211 13112221 ..... 1113213211 31131211131221 13211311123113112211 11131221133112132113212221 3113112221232112111312211312113211 {Yawn}

  520. That's not the pythagorean theorem by fishexe · · Score: 1

    It's the quadratic formula. And it's really hard to derive in my experience, so I'm surprised that you both a) can do it and b) forget what it's called.

    --
    "I don't care about the Constitution!" --Bill O'Reilly, November 17, 2009
    1. Re:That's not the pythagorean theorem by doulios · · Score: 1

      Actually, if you know how to complete the square it is very simple. In fact many physicists don't even bother to remember the quadratic formula.

  521. Solution is conditional; does not work as written by snowwrestler · · Score: 1

    It only works if the prisoners know k ahead of time. Unfortunately as written, the riddle does not say whether they do. It's clear that they are given the *rules*--that the king has k opportunities to flip the chalice. But it's NOT stated (read it carefully) that they are given the value of k ahead of time. If they know the king is limited, but they don't know that limit, your solution does not work, because the value of k+2 is unknown to the prisoners. They will follow their stategy for infinity without ever Alice ever knowing when she hits her limit.

    --
    Build a man a fire, he's warm for one night. Set him on fire, and he's warm for the rest of his life.
  522. Re:Math and science are obsolete by arkanes · · Score: 1

    Well, I'm not sure that I'd accept the conventional wisdom as being evidence of the best course, especially in an area like economics where true expirimentation is essentially impossible. A common fallacy of economic theory is assuming that all actors are fully informed and will always act in thier best interest. Even if you did, it only follows as being sound economic policy if the maximation of tax revenue is your only goal, as opposed to things like what you do with that tax revenue. And yet one final time, you're making the assumption that these monarchs had the ability to improve tax collection methods more than they did, which is unsupported.

  523. Big assumption by snowwrestler · · Score: 1

    As the riddle is written, the value k is not known to the prisoners. The rules are (i.e. the existence of k), but the riddle is silent as to whether the actual value of k is communicated to the prisoners. This may be just be a case of shitty writing, but if we're going to play riddles, we should at least pay attention to their details as presented. After all a huge part of the fun of riddles is in their (carefully crafted) details.

    --
    Build a man a fire, he's warm for one night. Set him on fire, and he's warm for the rest of his life.
  524. Re:Math and science are obsolete by shanen · · Score: 1
    Thank you. You make my point much more clearly and strongly than I could. I suppose it could be taken as unfortunate that my point is that America is being overwhelmed by idiots, and you make my point by being such an amazing example.

    One more favor. Please designate me as one of your foes. It will save time in ignoring you in the future.

    --
    Freedom = (Meaningful - Coerced) Choice != (Speech | Beer^2), and sad sock puppets' bad mods avail them naught.
  525. Re:Math and science are obsolete by msuarezalvarez · · Score: 1

    The fact that an increasing function which increases away from zero cannot go back to zero is a triviality once you have set up basic properties of inqualities, and has been known since, well, the beginning of time. It has not much to do with the correctness of the Laffer Curve theory, though.

  526. WHAT?? You're a terrible writer by snowwrestler · · Score: 1

    The king is allowed to manipulate the cup himself, k times, out of the view of any of the prisoners. That means the king may turn an upright cup upside down or vice versa up to k times, as he chooses, without the prisoners knowing about it. This does not mean the king must manipulate the cup any number of times at all, only that he may.

    Assume that both the king and the prisoners have a complete understanding of the game as I have just explained it to you...

    As this reads, the prisoners have a complete understanding of the game as you have explained it to me--i.e. they know of the existence of k but not the value. As written, you do not specify the value of k nor do you state that the value of k is specified to the prisoners. Since a logical solution depends on the prisoners knowing the value of k, and you do not state that they have that knowledge, there can be no logical solution.

    From your reaction here is seems we were supposed to know that k is specified to the prisoners. Since that is nowhere in your original write-up, I can logically conclude that you suck at writing up riddles.

    --
    Build a man a fire, he's warm for one night. Set him on fire, and he's warm for the rest of his life.
  527. Now you tell us by snowwrestler · · Score: 1

    Your original write up only states that the prisoners know of the existence of k, not the value.

    --
    Build a man a fire, he's warm for one night. Set him on fire, and he's warm for the rest of his life.
  528. Re:Attempt at answering by Anonymous Coward · · Score: 0

    Well, the issue as I see it, is that there needs to be a point where no number of changes is ambiguous. So one person gets designated the leader, and keeps a running total of how many times the chalice is right-side up. The other people flip it right-side up, if and only if they haven't already flipped it x times.

    So, we know that the minimum number of times that the chalice will be seen as right-side up by the leader is x(n-1) - k, because the king can swap right-side up chalices up to k times. The minimum number of times that the chalice needs to be flipped to guarantee that everyone has flipped it, assuming it starts down and no interference is x(n-2) + 1. However, the number that must actually be worked with is x(n-2) + k +2, since the king can add k right-side up chalices that weren't there, and it could start right-side up as well.

    Next, we equate the two to find the lowest possible number allowing for an overlap. So, x(n-1) - k = x(n-2) + k +2. This simplifies to x = 2k+2. Plugging this into x(n-1) - k, we get 2kn +2n - 2k - 2. This becomes 2(kn - k + n - 1). So, when the chalice has been seen right-side up 2(kn - k + n - 1) with each person flipping it a maximum of 2k+2 times, the leader can honestly answer that everyone has been in the room. That being said, it could take a really, really long time.

  529. Re:Math and science are obsolete by TENTH+SHOW+JAM · · Score: 1

    If the Government taxes everything (100% tax rate) and supplies 100% of "All services you will ever want." Then you get something like socialism.

    A Capitalistic system would not work, but a system could be made to work with everyone being an employee of the state and everyone receiving all they needed from it.

    OK it might not be "The best system" but it show the paradox up for what it is.

    --
    A sig is placed here
    To display how futile
    English Haiku is
  530. 12 Balls and a scale by midmopub · · Score: 1

    you have 12 seemingly identical balls, but one of them is odd, in that it is lighter or heavier than the others. Using a pair of scales, determine, in three weighings, which ball is the odd one and whether it is lighter or heavier. Solution can be found here: http://www.curiouser.co.uk/puzzles/12ballssol.htm Destroyed a perfectly good Saturday trying to figure this one out

    1. Re:12 Balls and a scale by big+ben+bullet · · Score: 1

      Dito! but it was a sunday evening for me...

      I still consider this the best logic riddle ever, since anyone who's determined enough should be able to answer this question without the need of complex mathematic formulas and rules. Just plain everyday logic ;-)

  531. Re:Answer:Number of points required to define a pl by KFury · · Score: 1

    This is an interesting idea but I'm going to reject it for two reasons:

    1. The question asks how many points, not real numbers.
    2. (more importantly) If the slope of the plane and (X|Y|Z)-translation of the plane are both irrational numbers -- sqrt(2) and e for example -- there isn't a single rational number that can be passed to the function to specify this plane, hence not every plane can be specified by the function.

  532. SOLUTION: by KFury · · Score: 1

    Mighty K says: I amend my answer, and believe that it can be done with one point. The plane would contain the point, and be perpendicular to the vector pointing from the origin to that point. Good puzzle, and deceptive!

    Sjampoo replies: While i do believe it should be possible with just one point i dont think your solution is the correct one. You won't be able to describe planes that intersect the O-point (0,0,0). Maybe better luck next time ;)

    Frankir clarifies: Easy. Just define your function returning a plane shifted by some constant towards (0,0,0).

    This is exactly correct. Nicely done, guys!

    1. Re:SOLUTION: by Old+Wolf · · Score: 1

      I have an extension to this problem: is there any such function that is also 1-1 (ie. every point describes a different plane).

      In the clarification suggested by 'frankir', any plane closer to the origin than the constant will have two points that describe it.

    2. Re:SOLUTION: by KFury · · Score: 1

      Easy: Return a null value for any point whose distance from the origin is less than the constant. :-)

      Incidentally, the reasons I specified a cartesian space were for the existance of a pre-defined origin point and because the space is infinite. The solutions given don't work in a bounded space because there's no way to specify a plane whose closest approach to the origin is less than the constant's distance from the boundary of the space.

    3. Re:SOLUTION: by Old+Wolf · · Score: 1

      Not good enough ... I want a function with only a finite number of points that don't map to a plane (preferably, every point except the origin should have a unique associated plane).

    4. Re:SOLUTION: by KFury · · Score: 1

      Do you have a 1:1 solution then?

      What if the point were declared in tersm of c, and the value of c were passed on as well? (eg ([3c,2c,4.8c],1) and if c were 0 then the point is on the origin but the miltipliers could still be used to derive a zero-magnatude vector perpendicular to the solution plane?

      Yeah it breaks the rules, but then I proposed a riddle with a known solution. Do you know for certain that your modified question has a solution?

    5. Re:SOLUTION: by Old+Wolf · · Score: 1

      At the time of writing I didn't, but I have since thought of a "fixup" technique to the basic idea.

      Divide the vectors into two sets A and A' (so that if V is in A then V' is in A'). Also pick some constant K.

      For the vectors in A', and also the vectors in A whose length is not a multiple of K, the vector corresponds to its normal plane.

      For the other vectors, the vector corresponds to the normal plane of the vector, but moved towards the origin by a distance of K.

      I think this means that every plane has a unique vector, and every vector has a unique plane (except for the origin, but if you really wanted to you could give it a plane using a similar "fixup" technique to what I've used here: pick one particular vector W and assign that to the origin, then 2W gets the normal plane of W, etc.).

      I also thought of a second method of assigning planes to points: the point corresponds to the plane which is the geometric inversion of the sphere centred on the point and passing through the origin. (This method also needs a "fixup" for the planes going through the origin).

  533. Re:The Circular Abbey (SPOILER) by Moses+Lawn · · Score: 1

    I see the idea behind your solution, but I don't see how you get from case 1 (one spotted monk) to case 2 (two spotted monks). If each monk sees another with a spot, he knows that guy is slated for death, but how can either be sure about himself? On day N + 1, isn't the state the same as on day N?

    My idea (and this is not at all my thing, so I'm sure I'm missing something) is this: Each morning, each monk looks out at the others. One at a time, if a monk sees another with a spot, he goes back inside (and, presumably, waits for tomorrow). The last monk left knows he has a spot and does himself in (perhaps by leaping off the balcony). We should have a complete solution in N days, right?

    The one problem I can see is if there are just two monks left, both with spots. One goes in, but the next day, he'll never know if he has a spot or not. I suppose this could be solved by each of them sitting down if he sees a spot. If one sees the other guy sitting, he knows it's his turn.

    Like I said, I suck at these things, but it seems like it should work. My only question is, who cleans up the bodies?

    --

    What if life is just a side effect of some other process and God has no idea we exist?

  534. Re:The Circular Abbey (SPOILER) by whmac33 · · Score: 1

    But the monks don't know how many there are to start.

    If there are 5 marked to start, but a monk sees 4 others with dots, how is he to know that it wasn't 4 that were originally marked?

  535. Re:Math and science are obsolete for leftists by shanen · · Score: 1

    You frigging anonymous cowards are so tedious. Just mark me as a foe and we'll ignore each other. I'm not at all interested in "discussions" with intellectually dishonest fools.

    --
    Freedom = (Meaningful - Coerced) Choice != (Speech | Beer^2), and sad sock puppets' bad mods avail them naught.
  536. Re:Math and science are obsolete by shanen · · Score: 1
    What a "brave" and feeble-minded post. Please mark me as a foe and we'll eagerly ignore each other.

    Has anyone yet discovered a valid purpose for the existence of anonymous cowards on /.?

    --
    Freedom = (Meaningful - Coerced) Choice != (Speech | Beer^2), and sad sock puppets' bad mods avail them naught.
  537. Re:The King and the Chalice: full solution by Anonymous Coward · · Score: 0

    The problem states that the king must call each prisoner an arbitrary number of times. He can't call someone n times and then never call them again. At any point in time each prisoner will be called in again at some point in the future unless someone says yes.

  538. ummm by Mika24 · · Score: 0

    turn on the light

    --
    http://www.npcgaming.com Dedicated Gaming Servers
  539. a 3D solid geometry riddle by przemekklosowski · · Score: 1

    Old Boniface he took his cheer,
          Then he bored a hole through a solid sphere,
      Clear through the center, straight and strong,
          So that the hole was just six inches long.
      Now tell me, when the end was gained,
          What volume in the sphere remained?
      Sounds like I haven't told enough,
          But I have, and the answer isn't tough!

    (the answer isn't hard to calculate, but try proving that you don't really need to know the information that wasn't provided)

  540. Re:The King and the Chalice - Correct Answer by Aristotelis · · Score: 0

    If k is known to the prisoners, then the answer posted by notshannon is the correct one.

    The key to the solution is that each non-counter prisoner can flip the cup 2k+1 times. This effectively nullifies the king's influence.

    Another way to think about it is with tokens. Say there are n prisoners. One of the prisoners has no tokens, he just collects them. Call him the collector. The other n-1 prisoners, each have 2k+1 tokens. Call them depositors.

    At any one time, the table in front of the king either has a token or it doesn't. If a depositor sees the table empty, then he deposits a token on the table. If a depositor sees a token on the table he leaves it there. If the collector sees a token on the table, he takes it. If the collector sees no token on the table, he does nothing.

    The analogy is: Putting a token on the table is like flipping the cup to face up. Taking a token from the table is like flipping the cup to face down.

    The king (with his k flips) can effectively steal k tokens or add k tokens. This does not influence the decision of the collector guy when he is counting the tokens.

    When the collector has collected (n-2)(2k+1) + (k+1) tokens, then it means that each of the depositors has deposited at least one token. If the king was allowed only to steal k tokens and not add k tokens to the table, then each prisoner would just need k+1 tokens, not 2k+1. And in that case, the collector would just need to collect (n-2)(k+1) + 1 tokens to say "yes".
    But because the king *can* add k tokens, we need to give extra tokens to the prisoners so that in case the king does not add those k tokens, the prisoners can add them, and the collector can collect enough tokens to make the "yes" decision, without having to wait for the king to add those k tokens.

    I would like to refute the claim that we cannot have a collector prisoner (counter/leader prisoner). Someone said we cannot have a collector prisoner because the king can just call out the collector at the end, after all the depositor prisoners have been called out. The puzzle says that all prisoners will be called out as many times as you choose. So say that first all the depositor prisoners were called out p times. Then the collector prisoner was called out p times, I can always choose a number q > p. And so the depositor prisoners will have to be called out q times, as well as the collector. Therefore, the depositor prisoners will have to be called out even after the collector prisoner has been called out p times.

  541. Re:WHAT?? You're a terrible writer by Old+Wolf · · Score: 1

    I don't see you complaining that there might be infinitely many prisoners, so you clearly didn't have any trouble working out that 'n' (the number of prisoners) is some particular finite number that doesn't change throughout the course of the problem. But you seem unable to apply the same brain power to 'k'. I can only conclude that you are deliberately being obtuse to cover up the fact that you can't solve the problem?

  542. Another math puzzle by mrcheesyfart · · Score: 1

    A man gets to a train station at exactly 5pm everyday. His wife immediately picks him up and drives him home. One day, he arrives early at 4pm. Instead of waiting, he begins walking home on the route his wife drives along. His wife picks him up somewhere along the route from the train station to his house. He gets home 10 minutes early. How long did he walk?

  543. Re:1 = -1 Solution by huges84 · · Score: 1

    As with many problems that stump people for a long time, the fault is in the first step. You are squaring a quantity without taking care to consider the direction. Think of the diffrence between performing math on a scalar versus performaing math on a vector.

    If you do this proof with a unit vector in the positive x direction (aka 1) and a unit vector in the negative x direction (aka -1) the math will NOT say that they are equal, no matter how you manipulate them.

  544. logic question ... any lawyer will get it easily by Takei+Shihan · · Score: 1

    You find yourself alone on an unknown island. Some natives capture you and tell you that for trespassing on their sacred ground they MUST kill you. However, their laws demand that they kill you in a very specific way. They tell you to make a final statement ... and based on your words, they MUST slowly torture you to death if you lie or they MUST execute you quickly and painlessly if you speak the truth (silence is a golden truth) ... what four words can you say to save your life ... ???

    --
    A warrior's greatest weapon is wisdom, therefore, keep your mind even sharper than you keep your sword.
  545. Re:The Circular Abbey (SPOILER) by Bob+Hearn · · Score: 1

    On day N + 1 the state isn't the same as on day N. It's proof by induction. We have to assume that all the monks are perfect logicians, but that's given.

    The theorem they each deduce is that if there are N marked monks, then after N days the marked ones will know who they are, and will kill themselves.

    The base case is for N = 1, which I think is clear.

    The inductive step is, suppose it is day N. Then the marked monks all see N - 1 marked monks. (The unmarked ones see N.) By induction, if there were only N - 1 marked, they would have committed suicide after day N - 1. But they didn't. Therefore, they all now know they are marked as well, and will then commit suicide, before day N + 1.

    Which I think is pretty much what I said before... but hopefully I made it a bit more clear. 2 is just a special case of N.

  546. Re:The Circular Abbey (SPOILER) by Bob+Hearn · · Score: 1

    If, after 4 days, the 4 marked monks he sees are still alive, he knows he must be marked as well - otherwise they would all have deduced they were the marked ones already.

  547. A fairly simple one by DulcetTone · · Score: 1


    The 18 coins one was brilliant. This is less so, but fun.

    Consider all pairs of prime numbers whose difference is 2 EXCEPT 3/5. For instance, 11/13 or 29/31 etc.

    The numbers sandwiched between all such pairs is divisible by 6. Without resort to fancy proofs... why is this, and why is the 3 and 5 pair different from the others?

    tone

    --
    tone
  548. MOD PARENT UP by scalt · · Score: 1

    From what I can tell, this is correct. I it also refered to in another post...

  549. Re:Math and science are obsolete by alw53 · · Score: 1

    IE citizen are treated like any other renewable resource; the problem
    is the same for vampire victim management and for fishery management --
    extract the maximum from the citizen. If the government tried to get
    more, they'd get less.

  550. Re:logic question ... any lawyer will get it easil by Takei+Shihan · · Score: 1

    Just say, "I will die slowly."

    --
    A warrior's greatest weapon is wisdom, therefore, keep your mind even sharper than you keep your sword.
  551. Read all the postings? by Anonymous Coward · · Score: 0

    What about the one titled "complex solution" .. got an opinion on that one?

  552. math logic favourite by Anonymous Coward · · Score: 0

    a + b = c
    => 4a-3a + 4b-3b = 4c-3c
    => 4a + 4b - 4c = 3a + 3b - 3c
    => 4(a + b - c) = 3(a + b - c)
    => 4 = 3

    Thanks to the internet and its myriad of contributors of all shapes and sizes for this wonderful piece of logic

  553. ANSWER by zavyman · · Score: 1

    Gur nafjre vf sbhegl-guerr. Hfr vaqhpgvba. Vs gurer ner rknpgyl gjb zbaxf jvgu fcbgf, naq lbh frr bayl bar, lbh ernyvmr lbh zhfg unir bar naq ner qrnq gur arkg qnl. Vs gurer ner rknpgyl guerr, gura rnpu fcbggrq zbax frrf gjb fcbgf. Vs gubfr gjb ner abg qrnq nsgre gur svefg qnl, gura rnpu bs gur guerr ernyvmrf gurl zhfg unir gur znex. Rgp., rgp.

  554. So wait a moment for them all to cool by Nailer · · Score: 1

    Then use the proposed solution.

    1. Re:So wait a moment for them all to cool by Anonymous Coward · · Score: 0

      His objection was that you might not know which bulbs were on at all, and that you might not now which way to flip the switch to turn them off. Is flipping the switch up "on"? Or is flipping the switch down "on"?

      You have to assume the switches actually have (accurate) on&off labeling.

  555. MOD Brian0918 UP by Nailer · · Score: 1

    Isn't a valid answer to any of these problems 'there is no solution'? And then perhaps proving this?

    It's actually a pretty good exercise in lateral thinking.

  556. Re:Math and science are obsolete by AthroughZ · · Score: 1

    Exactly. It's the principle of use it or lose it. Luckily there are still people who can deal with most technical issues. However there are now a lot fewer people who can repair their own car.

  557. Re:Math and science are obsolete by Anonymous Coward · · Score: 0

    You're an arrogant prick that refuses to acknowledge ideas set forth by anyone else unless they are agreeing with you. How about you mark everyone as Foe and set your comment limit to only those comments already modded +5. Would save the majority of us from you bullshit posts and your completely ignorant and arrogant attitude.

    Simply put. Fuck off.

  558. Griddlers, Paint-by-numbers, etc. by Dracil · · Score: 1

    http://www.griddlers.net/

    They're fun because of the pictures that are formed when you complete them. But staring too long at those 50x50 ones could be bad for the eyes.

  559. Re:Answer:Number of points required to define a pl by Nicolai+Haehnle · · Score: 1

    I agree that my solutions bends the posed problem quite a bit, and I understand that you cannot accept it for that reason.

    However, I cannot agree with your second objection. Neither your original problem nor my answer contains anything about rational numbers at any point - we've always been talking about real numbers. In the context of real numbers, the problem with irrational numbers simply doesn't exist.

    I know (from my own personal experience) that it can be hard to accept that a single real number contains enough "information" (whatever information may mean) to specify finitely many real numbers, but it's a result that you'll invariably encounter when studying set theory. A proof of this fact is illustrated nicely in "Proofs from the Book" by Martin Aigner and Günther Ziegler - I don't have an online link handy, I'm afraid.

  560. Re:1 = -1 Solution by n6kuy · · Score: 1

    When you take the square root of a number you have 2 solutions. You have to consider both.

    --
    If you disagree with me on social issues, then it's pretty clear that you are a narrow-minded bigot.
  561. Re:The Circular Abbey (SPOILER) by Moses+Lawn · · Score: 1

    No, I know about induction. I just didn't read the problem carefully enough. I understand the argument now.

    I don't think it holds if there are more than two monks with marks, though. If there are three monks and two of them have marks, and all that they know is that some of them have marks, they don't have enough information to make a decision.

    Actually, the problem as stated implies that more than more than one not but not all of the monks will be chosen, so if N is more than 2 and there are more than two with marks, it won't work.

    --

    What if life is just a side effect of some other process and God has no idea we exist?

  562. One extra point for the above solution... by Mashdar · · Score: 1

    If the initial state was unknown then the counter must count to n*k+2 and each pawn must likewise flip the cups k+(k+2)/2 times...

    1. Re:One extra point for the above solution... by Mashdar · · Score: 1

      each pawn must likewise flip the cups k+(k+2)/2 times... Typo, sorry. I meant k+(k+2)/n

    2. Re:One extra point for the above solution... by Anonymous Coward · · Score: 0

      Doesn't work. First, I'm assuming the n you're using refers only to the pawns and not the leader. Doesn't affect anything, but I think that assumption is made. Now, as you've shown above, the minimum output of the system is n*(k+(k+2)/n)-k = n*k+(k+2)-k = n*k+2.

      However, the highest possible output produced if (n-1) people flip it is (n-1)[k+(k+2)/n] + k
      = (n-1)k + (n-1)(k+2)/n + k
      = nk-k + [n(k+2)/n] - [1(k+2)/n] + k
      = nk-k + [k+2] - [(k+2)/n] + k
      = nk + 2 - [(k+2)/n] + k.

      Since this is greater than nk +2 unless (k+2) / n > k, there is never a point where acceptance is guaranteed. Check out my proof under 'Attempt at answering' to see a solution that solves using that constraint.

    3. Re:One extra point for the above solution... by Mashdar · · Score: 1

      Yes, I agree. I realized in the this morning that the king can destroy an unlimited ammount of information with his k uses by calling prisoners the required number of times in such a way that the required ammount of information can never be transmitted to the leader. The approach assumes that the leader is called in such a way that he will encounter the information being generated. Because the leader is not an exception to the number of times called minimum, the solution does not work. (also I was using n for number of pawns, really n-1, my bad for choosing a redundant variable name)...

  563. Here's mine by n6kuy · · Score: 1

    Here's one that I think came from a Martin Gardner column:

    A man is taken prisoner and told that he will die sometime next week, Monday through Friday, but he won't know which day until they come to take him away to be executed.

    He thinks for a minute, then is comforted, thinking they can't possibly kill him under those constraints, reasoning thus:

    I can't be executed on Friday, because if Monday through Tursday pass, and I haven't been killed yet, then I will know that I will die on Friday, but they said I wouldn't know, so Friday is out.

    Therefore, I can only be executed on one of the days Monday through Thursday. But it can't be Thursday for the same reason that it can't be Friday, because by then I would know.

    Each of the rest of the days are likewise eliminated.

    However, on Wednesday, they came and executed the prisoner. And sure enough, he didn't know what day he would be executed until they came for him.

    Where did his reasoning go wrong?

    --
    If you disagree with me on social issues, then it's pretty clear that you are a narrow-minded bigot.
  564. Red Hat Game by blippy · · Score: 1

    No, not the Linux distribution, but a puzzle that was put to me in the 80's ...

    There's a game called the Red Hat Game. Each person has a coloured hat on their head, and they don't know what colour it is. The players are put into a room, where they can see each others hats. The purpose of the game is to work out the colour of one's own hat. The rules are:
    1. if you see somebody with a red hat, you have to put up your hand.
    2. when you've worked out the colour of your hat, you leave the room.

    In one particular instance of the game, each player has a red hat. The players go into the room, and after awhile the most intelligent player leaves the room. The question is: how did he know he had a red hat?

    The problem is one of logic - there's no trick solution.

  565. Re:Math and science are obsolete by shanen · · Score: 1
    I have to say that even for an anonymous coward, that was an excellent piece-of-shit post. Congratulations on being a slightly big jackass. You can collect your prize from any well-used toilet.

    Wasting time to try to educate such a bloody twit, but here's the /. catch. There is a limit to how many friends and foes you can designate. There are constructive reasons to designate friends, and my slots are mostly full of thoughtful and interesting people.

    There are a rather large number of worthless twits like yourself. You're not even worth a foe slot. It's rather a shame that /. doesn't offer an effective way to deal with such vile and mindless abuses of anonymity. If /. offered the configuration option, fools like you would not exist in any visible sense, even when they are cowering behind their anonymity.

    I can wish you nothing worse than to have another one of your endless stream of terrible days. And it would still be nice if you designate me as a foe. I would not at all object to being the official foe of a large number of such spineless "people".

    --
    Freedom = (Meaningful - Coerced) Choice != (Speech | Beer^2), and sad sock puppets' bad mods avail them naught.
  566. 0.999... = 1 by 5hinigami · · Score: 1

    This reminded me of a seemingly logical and valid proof that 0.999... = 1 that our high school teacher showed us. Every once in a while I contemplate investigating what the fallacy is but to this day I haven't and it's been many days since that day in high school ;-). Here it goes.

    1) x = 0.999... (0.9 with bar above the 9)
    2) 10x = 9.999... (9.9 with bar above the fractional 9)

    Subtracting the first equation from the second we get:

    9x = 9

    Therefore, x = 1!

    Seemingly innocent but there must be a mathematical fallacy. Any one care to explain what is wrong with the above "proof"?

    1. Re:0.999... = 1 by n6kuy · · Score: 1

      No there is no fallacy. 0.999.... actually *is* equal to 1.
      Think about what infinity imples...

      --
      If you disagree with me on social issues, then it's pretty clear that you are a narrow-minded bigot.
    2. Re:0.999... = 1 by 5hinigami · · Score: 1

      Well, the following series does have a limit of 1 as n approaches infinity but I didn't think that the plain algebra "=" notation
      embodied the notion of limits.

      x = 0.999... = 9/10^1 + 9/10^2 + 9/10^3 + ... 9/10^n

    3. Re:0.999... = 1 by Big_Al_B · · Score: 1

      I didn't think that the plain algebra "=" notation embodied the notion of limits.

      It doesn't need to. The flaw in your thinking is in the "as n approaches infinity". It's not "approaching" infinity, it IS infinity, so the series sum can't be limited to something less than one.

      0.999 repeating is just an alternate notation for "1". Here's another way of understanding the notation:

      1/9 = 0.1111 repeating
      2/9 = 0.2222 repeating
      3/9 = 0.3333 repeating
      4/9 = 0.4444 repeating
      .
      .
      .
      8/9 = 0.8888 repeating
      9/9 = 0.9999 repeating = 1

      QED

  567. Re:Math and science are obsolete by shanen · · Score: 1
    Shucks and darn. Now I have to thank you. You motivated me to check the /. settings more carefully, and it turns out that there is a way to make ACs disappear. Having made that change, I can happily say bye-bye.

    But I'd still appreciate the foe setting just in case you ever develop the courage to post under less than complete anonymity. It will save time in ignoring you.

    --
    Freedom = (Meaningful - Coerced) Choice != (Speech | Beer^2), and sad sock puppets' bad mods avail them naught.
  568. quarters by n6kuy · · Score: 1
    "Here's a sample to consider: You're in a dark room with 50 quarters, 18 of which are heads up. You are allowed to move around the coins or flip some or all of them, if you wish. Problem is, it's too dark to tell what you're moving or flipping (no, you can't figure it out by touch either). Your job is to split the coins into two groups, each of which has the same number of heads up coins. How do you accomplish this?"


    Ummm... First, turn on the light?

    --
    If you disagree with me on social issues, then it's pretty clear that you are a narrow-minded bigot.
  569. Re:These were supposed to be by slaida1 · · Score: 1
    Math/Logic riddles. And if that was the correct answer, being that it isn't logical nor mathematical, you made a troll. Apparently you didn't take into account that starting values, the context of all these riddles also include that they must be math/logic in addition to what you give in your riddle.

    People were looking for such answers, not word game answers because those answers aren't acceptable in this context. Shame on you for wasting peoples time with a phony riddle.

    --
    Preserve old classics: copy your collection onto all hard drives.
  570. Re:The Curious Incident of the Dog in the Night-Ti by Flyboy+Connor · · Score: 1

    No it is not, as you can look up on any relevant website yourself, if you take the time. If you can find a website which says that the probability for the other door is 1/2, please point it out to me, because that site is wrong. And I think you will find that either no such site exists, or that it is about a different problem.

  571. another prisoner paradox by cazzazullu · · Score: 1

    You are imprisoned together with 2 other prisoners. 2 of you have been chosen to be executed at random, and the guard knows which two. Your chance of being executed is thus 2/3.
    But you ask the guard that, since at least one of the others will die as well, if he can't tell you who it will be. The guard reasones that indeed this doesn't matter, and tells you the first guy has to die.
    But now you know the first has to go, so the second one that will die is either you or the other guy, and your chance of being executed decreases from 2/3 to 1/2...
    or not...

    Where is the flaw, or is this correct?

    --
    int main(void) {while(1) fork(); return 0;}
  572. Re:Math and science are obsolete by Anonymous Coward · · Score: 0

    Let me guess, you're one of the few who actually likes the taste of troll-bait.

  573. Re:Algebraic proof: 2=1 by tehshen · · Score: 1

    Yes, well done :)

    --
    Guy asked me for a quarter for a cup of coffee. So I bit him.
  574. FINALLY!!! by brian0918 · · Score: 1

    Finally, a suggested answer that fits the structure of a real solution! (although I might have missed one) Let others look at it and see if they find is a problem.

    1. Re:FINALLY!!! by Anonymous Coward · · Score: 0

      Yeah, you might have missed one or two, or about half a dozen correct ones which were posted earlier.

  575. LOOKS ALRIGHT by brian0918 · · Score: 1

    This has the proper structure of the solutions I've seen, which only 1 other person's had that I noticed (although I probably missed some). Assuming you didn't make a mistake in the minimum requirements, it would be a valid solution.

  576. Of course that's not the solution by brian0918 · · Score: 1

    He's just one of the few that seem to understand the problem's intricate wording (I didn't write it)

    1. Re:Of course that's not the solution by Anonymous Coward · · Score: 0

      Dude .. plz comment on posting titled "Complex solution"

      http://ask.slashdot.org/comments.pl?sid=165444&thr eshold=-1&commentsort=3&tid=228&tid=4&mode=thread& cid=13803759

      was posted a day ago ... did you see it?

  577. I didn't write it by brian0918 · · Score: 1

    That phrase you complain about is a phrase that is often used in math/logic problems, as other posters have pointed out to other people complaining about the wording of that phrase, "or twenty times, or any number you choose". That means "finite, but unbound".

    1. Re:I didn't write it by Anonymous Coward · · Score: 0

      Just for the record, the way you phrased it, the riddle is impossible. What you said was: "The only rule the king has to obey is that eventually he has to call every prisoner in an arbitrary number of times." The term "an arbitrary number" means that it is one number, but it doesn't matter at all which. What you want to guarantee is different: Every sequence that the king comes up with must satisfy the condition not just for one number but for all numbers that the prisoners choose. The property that you want to guarantee is that every prisoner comes into the room after every other prisoner as often as the prisoners want.

    2. Re:I didn't write it by gerardrj · · Score: 1

      My issue is that the word "you" has absolutely no reason to exist in this riddle, mathematical term or not. Why am I choosing a number and does that mean that I get to choose it on the fly? If I'm choosing the number, that implies that the number is outside of the knowledge of the the prisoners and the king. If I choose that the prisoners will all be called 4 times and the king may flip the cup as many as 1000 times, then the puzzle has no solution.

      --
      Article X: The powers not delegated... by the Constitution...are reserved...to the people
  578. Re:The Curious Incident of the Dog in the Night-Ti by kronocide · · Score: 1

    What you fail to realize is that 1/6th of the probability is consumed by the Feyerabend Principle that balances out Bell's Theorem, that would otherwise lead to a probability surplus in the universe.

    Okay, you're right. Here's a good page:
    http://mathforum.org/dr.math/faq/faq.monty.hall.ht ml

  579. Logic Challenge. by Ub3rT3Rr0R1St · · Score: 1

    You have a fishbowl.

    Hence: You have fish.

    Hence: You like animals.

    Hence: You like people.

    Hence: You like women.

    Hence: You like sex with women.

    Your friend does not have a fishbowl.

    Question: Is your friend gay?

    Note: This is only a joke, don't flame me about it. >_>

  580. Re: My solution by areve · · Score: 1

    I found it very easy cos I learned this at school (20 years ago!). I was about to try and explain it but thought better of it and googled for it instead.

  581. But by Anonymous Coward · · Score: 0

    what happens if the counter is called out the required number of times before any other prisoners? That is, the king calls the assigned counter out the required amount of times in a row that he has to call a prisoner out prior to calling the rest of the prisoners out. Remember, he heard them make plans. Who's going to call out "yes" in that case?

    So maybe he will call the first prisoner in a million times before ever calling in the second prisoner twice, we just don't know. But eventually we may be certain that each prisoner will be called in ten times, or twenty times, or any number you choose.

    I am speaking about this constraint. The way stated here, the number I "choose" no matter how high, can result in a single designated counter's turn in the chamber being used up and denied communication. So it seems any solution must get rid of the notion of an elected individual. No? And then by the way after using that individual's turns up, given a nonzero "k", the king can choose to flip his chalice. Erasing all traces of his existence.

    When will you post your solution?

  582. Heard from my computer math teacher. by Puppet+Master · · Score: 1
    Here are a couple I heard while in High School computer math teacher (damn long time ago)...

    A man lives on the 17th floor of a building. Each morning he gets up and rides the elevator down to the lobby and goes off to work. Every evening, he gets in the elevator in the lobby, rides up to the 11th floor and then walks up the last 6 floors to his apartment. Why?

    Before you ask, it's not for exercise.

    How about this one:

    2 men standing on a hill, one points to the other and says: "Brothers and sisters I have none, but that mans father is my fathers son".

    How are the 2 men related (if at all)?

    Puppet Master

    --
    The day Microsoft creates a product that doesn't suck, it will be known as the Microsoft Vaccuum Cleaner!
    1. Re:Heard from my computer math teacher. by willm5 · · Score: 1
      1) He's short, he cant reach the button for 17.

      2) Father and son

  583. The Chicken from Minsk by pbhj · · Score: 1

    Was my favourite riddle book when I was in school; it's by Yuri B Chernyak and Robert M Rose.

    It apparently comes from a Russian tradition of maths and science riddles.

    chicken from minsk or chicken from minsk (UK)

    Eg, from chapter 6:1

    "A plumbing problem"
    A faucet / tap has been left slightly open for some time, and a gentle stream of water flows downward. Why does the stream become thinner as it gets farther away from the faucet / tap.

    There are lots of simple problems like this that can really make you wonder why you'd not looked at water streams as closely in the past! There are some pretty brutal problems too. You get hints and full answers (usually with equations).

  584. The Fish by applewax · · Score: 1
    There are five houses. Each is a different color. In each house lives a person of a different nationality. These five owners drink a certain drink, smoke a certain brand of cigar, and keep a certain pet.

    The Brit lives in the red house.
    The Swede keeps dogs as pets.
    The Dane drinks tea.
    The green house is on the left of the white house.
    The green house owner drinks coffee.
    The person who smokes Pall Mall rears birds.
    The owner of the yellow house smokes Dunhill.
    The man living in the house right in the center drinks milk.
    The Norwegian lives in the first house.
    The man who smokes Blends lives next to the one who keeps cats.
    The man who keeps horses lives next to the one who smokes Dunhill.
    The man who smokes Bluemaster drinks beer.
    The German smokes Prince.
    The Norwegian lives next to the blue house.
    The man who smokes Blends has a neighbor who drinks water.

    Who owns the fish?

    (written by Albert Einstein in the late 19th century)

  585. There is a solution by khchung · · Score: 1

    unless I made a mistake or misunderstood the question.

    My solution is based on the condition listed "eventually we may be certain that each prisoner will be called in ten times, or twenty times, or any number you choose."

    I define the cup when right-side-up called "full", when it is upsidedown called "empty". Turning the cup from "empty" to "full" I call "filling the cup", the other way I call "drinking the cup". These naming is to make the solution easier to understand.

    One of the prisoner will be the "producer", he is the only one who will fill the cup. All other prisoners are "consumers", they will only empty the cup.

    Set number M = 10k (i.e. ten times k). Whenever the producer's turn, he will fill an empty cup, but ignores a full cup. For consumer's turn, he will empty a cup but ignores an empty cup, until he personally have emptied M cups, then he always ignore the cup.

    Everytime the producer comes out and see the cup empty (after he filled it last time), he counts 1 cup consumed. When he counted (n-1)M + k + 1 cups consumed (or (n-1)M + 2k to be safe), he can be sure everyone has come out at least once.

    --
    Oliver.
  586. The King and Chalice/prisoners problem by bigdaddyhame · · Score: 1

    ... the solutions given thusfar (here - I haven't looked elsewhere - require that the prisoners have some way of communicating and can elect a leader or a counter. How would they do that if they're in soundproofed cells and only one of them is able to leave at a time?

    --
    ---- You are fully entitled to my opinion.
  587. Re:Math and science are obsolete by phlinn · · Score: 1

    "...but make no mistake there is a Laffer point."
    This should really say "...but make no mistake there is at least one Laffer point."

    You can't really assume it's a smooth function, let alone with a single point that is optimal. Hell, you can't even assume the curve doesn't change over time.

    --
    "Pulling together is the aim of despotism and tyranny! Free men pull in all sorts of directions" -- Havelock Vetinari
  588. Re:Math and science are obsolete by meringuoid · · Score: 1
    that monarchs did not systematically engage in social spending and internal improvements probably means they don't increase tax revenues, which mean they probably don't increase the health of the economy, else they would lead to more tax revenues.

    Careful with that argument. It seems to have as an implicit assumption that monarchs know what's best. Absolute monarchy - is that the kind of government you favour?

    --
    Real Daleks don't climb stairs - they level the building.
  589. Re:Math and science are obsolete by phlinn · · Score: 1

    Actually, if you check the numbers, despite revenue being lower as a portion of GDP, absolute revenue was HIGHER by the time reagan left office.

    GDP Data
    Revenue as a portion of GDP
    GDP per capita

    Taking the simple method of multiplying the revenue as a % by the gdp per capita, the revenue per capita went from $4306.54 to $4980.34 in chained 2000 dollars.

    --
    "Pulling together is the aim of despotism and tyranny! Free men pull in all sorts of directions" -- Havelock Vetinari
  590. Re:Math and science are obsolete by phlinn · · Score: 1

    From 1980 to 1988 that is.

    --
    "Pulling together is the aim of despotism and tyranny! Free men pull in all sorts of directions" -- Havelock Vetinari
  591. Re:Math and science are obsolete by LeonGeeste · · Score: 1

    This should really say "...but make no mistake there is at least one Laffer point."

    Hm...good point. To clarify that issue, my statement probably should have read:

    "Again, you might not be past a Laffer point, but make no mistake there is a Laffer point."

    Oops, it already did.

    Note I referred to being past "a" Laffer point, not "the" Laffer point, so obviously I didn't assume there was only one.

    You can't really assume it's a smooth function,

    Not necessary. So there exist tax rates above which revenues jump up, or tax rates above which the revenues jump down. Doesn't change the fundamental insight.

    let alone with a single point that is optimal.

    Never said so or even hinted. See above.

    Hell, you can't even assume the curve doesn't change over time.

    Of course it will change over time; the theory never says otherwise, and neither did I. It's phrased under a ceteris paribus clause. The claim is that it's possible that at some specific point in time, with all its policies, if you just lower taxes, you will have higher revenues that if you had those policies but not altered clauses. The circumstances can of course change.

    --
    Rank my idea: http://www.sinceslicedbread.com/node/531
  592. Re:Math and science are obsolete by phlinn · · Score: 1

    My apologies, I didn't read your original statement as carefully as I thought I did. I picked out the '...there is a laffer point' due to the italics I guess.

    --
    "Pulling together is the aim of despotism and tyranny! Free men pull in all sorts of directions" -- Havelock Vetinari
  593. This is why my stats teacher hated me. by Medievalist · · Score: 1
    Your married-with-two-kids co-worker invites you over to dinner. When you arrive a son of the coworker answers the door. What is the probability that the other child is a girl?
    The probability of the other child being a girl is slightly lower than that of the other child being a boy.

    Because, your cow-orker may have a psychological obsession that causes him to murder female offspring, (like Kronos, who used to eat his sons, for example) but clearly he does not have any such obsession that applies to males.

    1. Re:This is why my stats teacher hated me. by gknoy · · Score: 1

      Or else, like Scott Evil, the son is surprisingly wily and resilient and has been successfully thwarting/avoiding/resisting his father's continued attempts on his ilfe. :)

    2. Re:This is why my stats teacher hated me. by Medievalist · · Score: 1

      Although I don't know Scott Evil I think I can safely say my Stats teacher would have hated you too, gknoy.

  594. Re:Math and science are obsolete by tbannist · · Score: 1

    Or vice-versa, right?

    --
    Fanatically anti-fanatical
  595. Re:WHAT?? You're a terrible writer by snowwrestler · · Score: 1

    The issue is not what I know, it is what the prisoners themselves know. The problem is stated with variables and can be solved in the abstract with variables. But the solution is only valid from the prisoner perspective if the integer values of those variables are known by the prisoners prior to the development of their group strategy.

    The prisoners will of course know how many their total number is (n), since it's clearly stated that they are given a chance to all meet and strategize prior to the game beginning. What is NOT stated is that the king will share the value of k with them.

    Any solution depends on counting by the prisoners. This implies that they must have numerical value that they are counting toward. But if they do not know the value of k, they will never know when they have counted to the limit of their strategy, such as ((n-1)*(2k+1) - k) to quote one proposed solution. If k is unknown to the prisoners, that equation will never produce an integer value for the prisoners and thus they will never know when to stop counting and answer yes.

    --
    Build a man a fire, he's warm for one night. Set him on fire, and he's warm for the rest of his life.
  596. Re:Math and science are obsolete by LeonGeeste · · Score: 1

    Careful with that argument. It seems to have as an implicit assumption that monarchs know what's best. Absolute monarchy - is that the kind of government you favour?

    Check out Democracy: The God that Failed (Transaction, 2002) by Hans-Hermann Hoppe (on amazon and wikipedia), who argues that while democracy and monarchy are morally bankrupt forms of government, monarchy is clearly preferable for essentially the reasons I gave: the monarch owns the capital value of the country, while a democratic leader is just a caretaker and only owns temporary usage rights. A monarch will maximize capital value, which means taking into account long-term effects of his actions, while a democratic leader will maximize his current takings at the expense of the future - get while the gettin's good (think in terms of the Senator Bilkins Highway to Nowhere). This is not to say all monarchs are foresighted, and all presidents are short-sighted, just that the former's incentive structure encourages long-term thinking, while the latter's discourages it. Again, it's a ceteris paribus statement: the same person will be more reckless with a country if it does not cost him the capital value than if it does cost him the capital value.

    Nor does it assume monarch's know what's best, merely that they have more incentive to search, and because there were more of them (over 1000 in the Holy Roman Empire) they have more data to go on. A monarch might have heard from 20 other princes that they raised taxes to 20% and saw a loss in revenue, whie 6 raised taxes to 20% and saw a gain. He could then adapt appropriately. Likewise, another could talk with other monarchs who made massive internal improvements and find out if that increased the number of people wanting to live there and thus the taxes they could get away with charging and then see if that offset the cost of making that improvement. Further, unlike the average voter, a monarch feels the full impact of his policies and doesn't face the "what does your vote matter?" problem, so he is more likely to research what actually works.

    Again, these effects could all be minor relative to other effect, but they nowhere rely on monarchs as monarchs knowing what's best.

    --
    Rank my idea: http://www.sinceslicedbread.com/node/531
  597. Re: My solution by mr_mophead · · Score: 1

    Very cool. I'd never seen that solution before (obviously).

  598. Math problem by HalfWalker · · Score: 1

    This was an old Higher School Certificate problem in Australia as I recall ...

    Envision a circular building of radius r. There is a guard dog for this building, chained to it somewhere on the perimeter of the building. The chain is exactly 1/2 the circumference of the building.

    So the dog is able to reach the exact opposite point of the building by going either way around it.

    Question: What is the area the dog can guard ?

    The lower part is easy - it's a semi-circle. The upper parts are trickier - the path of the dog traces a path reminiscent of a cardioid.

    --
    94TT :)
  599. Re:The Circular Abbey (SPOILER) by Anonymous Coward · · Score: 0

    You apparently don't understand induction :)

    The knowledge of how many monks have spots is being communicated by the monks not killing themselves. (Well, at least assuming they can't just commit suicide without having a dot.)

    1 dot == 1 day
    2 dots == 2 days
    3 dots == 3 days

    The monks can see between n-1 and n dots. What is unknown is if they have a dot. If they wait more than n-1 days then they know that there must be a dot they can't see, and that has to be their own.

  600. Isn't it this? by jmlyle · · Score: 1

    I didn't see an answer posted yet. I must not have looked hard enough, I suppose. I don't think it's that hard, although I did solve a similar puzzle years ago from William Wu, which means I had already gone through this kind of process (http://www.ocf.berkeley.edu/~wwu/riddles/medium.s html).

    It's a cool puzzle, and the steps you have to go through to figure it out are fun to find. The meataphysical implications of the statement kicking off the process, even though everyone knew the statement to be true before it was said, is by far the most interesting part.

    On the 100th night, all blue eyed people leave the island.

    --
    I have misplaced my pants.
  601. Re:1 = -1 Solution by earthstar · · Score: 1

    Vector....Its been a long time since I learnt it in school,am not able to understand much about it.
    In simple maths term [ instead of advanced maths like vector..] that involves just 1,2,3.... + - / * , does it appear to be reasonable?

    However , I do accept what another poster has said: both roots of a sqr.root should be considered.However Iam not entirely satisfied....coz for one of the roots it does satisfy...

  602. Re:Math and science are obsolete by bob_herrick · · Score: 1

    "make no mistake there is a Laffer point" This, of course, is false. It assumes a 'smooth' tax code. Ours is anything but. There maybe two Laffer points, many, or an infinite number. Martin Gardners Scientific American article from the 80's was a definitive demolition of the case for a single Laffer point. Surprising that the author was not aware of it.

  603. Check your local hospital records by Anonymous Coward · · Score: 0

    You made these assumptions, which are checkable:

    1) probability of the sex of a newborn baby is 50% girl 50% boy

            wrong.

    2) one child being of a particular sex does not affect the probability of the next child in any way

            wrong.

    This is why math majors need to base their examples on subjects they actually know something about (which, in this case, would not include anthropology, biology, or medicine).

    However, your answer is correct. The births of the two children are independent events because without knowing a great deal more than you can possibly know (about the parents' family histories, basically) you cannot possibly make any estimation more accurate than "there are two choices, so by assigning them equal possibility we can estimate 50% probability".

  604. Re:Math and science are obsolete by LeonGeeste · · Score: 1

    I said a positive function, not a positive slope function. Try reading my posts. Or the construction job ads.

    --
    Rank my idea: http://www.sinceslicedbread.com/node/531
  605. Re:Math and science are obsolete by LeonGeeste · · Score: 1

    Thanks for reading this post of mine:

    http://slashdot.org/comments.pl?sid=165444&thresho ld=1&commentsort=0&tid=228&mode=thread&pid=1380916 4#13809477

    before firing off on subjects you don't really understand.

    --
    Rank my idea: http://www.sinceslicedbread.com/node/531
  606. Another one by stevelinton · · Score: 1

    You have an evil and paranoid enemy, who you wish to poison. Fortunately, You have a circulare cake in the centre of which a microscopic drop of deadly poison has been placed. You have to cut the cake, using vertical, but possibly curved, cuts, to comply with your enemies paranoic requirements while ensuring that they eat a poisoned piece and you do not. You therefore have to divide the cake into some number of pieces such that:

    a) they are all the same shape (or your enemy might take a liking to the "wrong" piece)
    b) at least one piece avoids the centre (so that you can eat it)
    c) no cake is left over (wasting cake is punished by a horrible death)

    More formally, you have to divide a circle into a finite number of congruent pieces so that at least one piece avoids the centre by some non-zero distance.

  607. Re:The Circular Abbey (SPOILER) by Moses+Lawn · · Score: 1

    You're probably right...

    I think I get it now. My problem was with getting to the more general case. The idea is that each monk sees N marks, and knows that the ones with marks see either N or N - 1 marks, so they have more information than he does. On each successive day, they each know that the previous day's scenario didn't happen, so after N days, they have it figured out, right?

    I still get hazy with more than 4 marks, but I'll just trust that it works. It makes my brain hurt too much to follow it otherwise.

    --

    What if life is just a side effect of some other process and God has no idea we exist?

  608. Re:Math and science are obsolete by Procyon101 · · Score: 1

    Maybe, but the discussion is to the validity of the Laffer curve which deals only in government revenue :)

  609. Re:Math and science are obsolete by Procyon101 · · Score: 1

    No, real world examples of this show that the economy shuts down and is replaced by a black market economy which works via capitalism, leaving the government stuck with obligations to the people with little income, leaving the people who "play by the rules" to fight over the scraps while the people who illegally shift to capitalism become wealthy.

  610. Re:Math and science are obsolete by bob_herrick · · Score: 1

    There is an outside chance I do understand it. Gardner's point is that since the curve is of unknown shape, with mulitple 'laffer points' and possibly even sections in which changes in tax policy produce no change in revenue (a straight line) it is a useless policy device: 1. You cannot tell where you are on the curve. 2. You cannot assume that at what ever point you are on will be improved by a change in either direction 3. You cannot assume that you will not pass over some discontinutiy and get unexpected results. Now, simplfiy the tax code first, then you might find Dr. Laffer's work useful for policy making. As it is you might as well roll dice.

  611. Re:Math and science are obsolete by LeonGeeste · · Score: 1

    I agreed from the outset, and in the post you didn't read before firing off your mouth, that there can be multiple Laffer points (though I deem it unlikely). Also (~8th time): I never claimed the Laffer curve guarantees that cutting taxes can increase revenues, just that it's a possibility. It is useful for policy making, because ~95% of politicians don't understand, or act as if they don't understand, its fundamental insight: taxes can kill the goose that lays golden eggs. Taxes can hurt the economy, even without benefiting the government. People won't admit this very plain insight because they don't like the implications: that the politicians they have been supporting have been hurting more than helping.

    That's why they hem and haw about it, but when presented with its unassailable logic, they revert to "Well it's still a stupid curve... because we might not be past a Laffer point... uh, and the curve is wrong too." Well, sorry, it's not. And if people stopped claiming it's not, we could actually start finding out where we are.

    --
    Rank my idea: http://www.sinceslicedbread.com/node/531
  612. You're wrong by gfody · · Score: 1

    The guru would not be the one to leave. It is impossible for the guru to know the color of her own eyes unless somebody communicated it to her. So when is it spoken, the word "green" for it to be known to the guru that she has green eyes?

    --

    bite my glorious golden ass.
    1. Re:You're wrong by efflux · · Score: 1

      *sigh*

      I was being fanciful. It was a parable, not meant to be taken within the logic of the puzzle.

      That'll teach me to post on slashdot.

      --
      Do I contradict myself? Very well, then I contradict myself, I am large, I contain multitudes. -- Walt Whitman
    2. Re:You're wrong by gfody · · Score: 1

      The puzzle is similar to the 'petals around the rose' game in that the more you complicate it the more difficult it seems. Once the guru says the word "blue" you know that it's all the blue eyed people who will be leaving the island and the problem becomes on which night do they leave. Since it is given that there are 100 blue eyed people, then it becomes obvious that they will be leaving on the 100th night.

      It's important that you comprehend the mathematical problem as presented in english. Getting hung up on semantics and ambiguities is what makes this problem difficult.

      --

      bite my glorious golden ass.
    3. Re:You're wrong by efflux · · Score: 1
      It's important that you comprehend the mathematical problem as presented in english. Getting hung up on semantics and ambiguities is what makes this problem difficult.

      You'll see I presented that exact solution (if n is the number of blue-eyed people on the island minus the guru, n blued eyed people leave on the nth night). The point of my post was somewhat similar to what you're saying about "getting hung up on" and understanding the problem "as presented in english". My point, however, is that it is impossible to formulate the problem as a problem that one has to intuit. The formulation *excactly coincides* with the divulgence of the solution. In this sense "groking" such a *problem* is inherently different than people typically think.

      In particular, I hinged my argument on the fact that the "rules" of such a puzzle are never clear in themselves, but only in reference to the solution. A real and substantial communication of what the solution may be must be present for me to "infer" (read confirm) the solution.

      I suppose I got into difficulties when I tried to demonstrate that this was the fact.

      --
      Do I contradict myself? Very well, then I contradict myself, I am large, I contain multitudes. -- Walt Whitman
  613. Re:Solution is conditional; does not work as writt by nwbvt · · Score: 1
    Generally speaking, in mathematics when a phrase like "The king is allowed to manipulate the cup himself, k times", k is a known constant. And since this is /. (home for geeks) and the title of this discussion is "Your Favorite Math/Logic Riddles", this is an acceptable language to use. And if you really had any doubt, the origional poster has clarified that on several occasions.

    Its also not stated that the prisoners will ever be fed in their cells, does that mean that any solution needs to found within a few days before the prisoners are fed? Neither is it explicitly stated that the prisoners have an understanding of a number system, does that mean we cannot assume that they know how to count? Stop nitpicking. The problem is obviously both clear and solvable as several people have now found apparently independent solutions to it.

    --
    Mathematics is made of 50 percent formulas, 50 percent proofs, and 50 percent imagination.
  614. Another joke on the same number by antispam_ben · · Score: 1

    What's 69 in Roman Numerals? I recall this from a Rudy Rucker novel, I forget which one.

    --
    Tag lost or not installed.
  615. Re:Monty Hall Paradox, a famous problem... by antispam_ben · · Score: 1

    with an long and interesting history. Fortunately, someone has written it up so I don't have to do so here:
    http://en.wikipedia.org/wiki/Monty_Hall_problem

    --
    Tag lost or not installed.
  616. Re:Math and science are obsolete by msuarezalvarez · · Score: 1

    I really don't feel like going into the boring game of explaining what you said, what I understood, and the rest: no amount of that will change the fact that whatever statement you had in mind was still completely irrelevant: Laffer's Curve Theory is not a fundamental mathematical theorem, it is not a mathematical theorem, and it is not a theorem.

    As for your fun attempt at a come back: I am a professional research mathematician, and I'm mostly reading invitations for post-docs right now: when I get the time, I promise to look into those ads you mention. Cheers.

  617. [solution] Tiles on a chess board. by Old+Wolf · · Score: 1

    (Sorry -- just answering in case you thought nobody noticed your post and felt bad :)

    The squares you removed are both white, but each rectangle covers one white and one black square. QED.

  618. Re:Math and science are obsolete by LeonGeeste · · Score: 1

    I didn't say it was a fundamental theorem; math doesn't talk about taxes. It does, however, have a lot to say about which functions have maxima, and the tax revenue/tax rate curve is one of them (positive on [0,100], zero at 0 and 100, no vertical asymptotes). Don't try to bluff your way out of this. I said the function was positive. You took that to mean strictly increasing (positive slope). You were wrong. Sorry, no two ways about it. If you stick your neck out that far on a mistake that big, I'd really hate to know what your "research" looks like, unless that's "research" for a good employer at the day labor site.

    --
    Rank my idea: http://www.sinceslicedbread.com/node/531
  619. Here's one... by pentalive · · Score: 1


            1 = 1
        10 = 2
    100 = 3

    10110 = ?

    I hope this is not too easy... :^)

  620. Re:Math and science are obsolete by feijai · · Score: 1
    Baloney. Here, let's let your supply-sider friends at Cato describe the situation:
    Total Revenue Growth. Nominal federal revenues dou-bled in the 1980s from $517 billion to $1.031 trillion. From 1981 to 1989 real federal revenues climbed by 20 percent. As a share of GDP, however, federal tax revenues fell by 1.0 percentage point during that period.
    CATO has to admit that, as a share of the GDB, revenues fell. And this despite them cooking the books as much as possible to suggest an increase of 20% in absolute terms:
    • It looks to me that CATO's not using real dollars here -- which is profoundly dishonest. They're using absolute dollars; this makes revenue increases artificially larger and decreases artificially smaller.
    • CATO's not including 1980 and they are including 1989 (when Reagan wasn't in office). Why? Because doing so allows them to discount drops in 1980 and include rises in 1989.
    • CATO neglects to mention Reagan's tax hike in 1984.
  621. Re:Solution is conditional; does not work as writt by snowwrestler · · Score: 1

    k is obviously a known constant, the question is known to whom.

    As you noted the original poster has had to clarify this several times throughout the thread. If it was so obvious, why all the clarifications?

    --
    Build a man a fire, he's warm for one night. Set him on fire, and he's warm for the rest of his life.
  622. Re:Math and science are obsolete by bob_herrick · · Score: 1

    I happen to agree with the broad principles of the Laffer Curve. Surely it is correct at the limits (t = 0 and t= 1) and provably the government can increase or decrease tax revenues by broadly increasing or decreasing tax rates. As a policy tool, however, it is lacking robustness. Because of the complexity of the tax code one cannot use the curve to predict the impact of changes to the code; for small changes in t one cannot predict even the direction of the change in revenues. So while it may be an interesting strawman for entertaining legislators, it is not a serious economic tool. Simplify the tax code, and perhaps it could be made meaningful.

  623. Re:Math and science are obsolete by drsquare · · Score: 1

    I don't see how it's the tax-payer's business to protect places which are clearly too dangerous for human habitation. The fact that they need huge levees just to stop the place constantly flooding might suggest that there are better places to live.

    If anything, only locals should have to pay for it, not anyone else.

  624. Re:Pirates ("50% or more" detail) by Monimonika · · Score: 1

    I looked at the reasoning by others, but they all seem to miss something. Namely: "if it's 50% or more against, you kill that highest rank" So, if the problem were simplified to just 2 pirates, the lower ranking pirate gets everything by default by just voting against whatever the other pirate proposes. The lower ranking pirate has all the power since he makes up 50% of the vote with only 2 people. Thus, it should be assumed that pirate #5 will always vote against, in hopes of being put in the final situation. He has nothing to gain by not voting against, since his life is not in danger. Now, knowing this, how would the other pirates react? (Ack! I'm out of time! I'll come back later!!) *signs out*

  625. Re:Math and science are obsolete by shanen · · Score: 1
    Blaming the victim as national policy? You hard-core mindless Busheviks following your talking-point faxes are really quite disgusting. Anything to defend your leader. I should use the stronger term?

    Tell you what. Mark me as foe and let's ignore each other. I have no use for fantasy-based fools, and you have no use for reality.

    --
    Freedom = (Meaningful - Coerced) Choice != (Speech | Beer^2), and sad sock puppets' bad mods avail them naught.
  626. Re:Solution is conditional; does not work as writt by nwbvt · · Score: 1
    " k is obviously a known constant, the question is known to whom."

    Obviously to everyone, or there would be no point in mentioning it.

    "As you noted the original poster has had to clarify this several times throughout the thread. If it was so obvious, why all the clarifications?"

    I believe he has also had to clarify multiple times that the king was asking if they had been all in the room since they were origionally locked in their cells, even though that was explicitly stated in the origional problem. You have no idea the crap I have had to explain to people on /. All that means is that the world is full of idiots who like to type.

    The vast majority of people who posted got it. If it was so confusing, how were they able to do that?

    --
    Mathematics is made of 50 percent formulas, 50 percent proofs, and 50 percent imagination.
  627. Re:Math and science are obsolete by msuarezalvarez · · Score: 1

    Dude: you said:

    REALLY? Fundamental mathematical theorems have been overturned? You mean, it's possible for a continuous function to start at zero, increase, and then reach zero again without ever decreasing?

    in responding to someone's "The Laffer Curve is a laugh and has been refuted".

    I am sorry if I understood that you were claiming that the Laffer Curve [theory] is a fundamental mathematical theorem. If you weren't, then I have no idea what you were saying in the second sentence in that post.

    If you used the word increase in that post without meaning that the function was increasing (strictly or non strictly,that's rather unrelated), well, again, I have no idea what you meant in your third sentence in that post.

    As for your comments on my research... Nah, I have nothing to say about that: I really don't care.

  628. Re:Math and science are obsolete by msuarezalvarez · · Score: 1

    Well: I'd imagine without such a big stretch of imagination that there were other factors concurrent with the tax cut.

    In Argentina, after a massive economic crisis, taxes on exports were raised to unheard-of levels and, guess what?, total tax revenue has ever since been at their highest point ever in the history of the country, by a margin which surpassed every expectation (even of those who proposed and implemented the raise).

    The only thing that one can conclude from examples is that taxes do not happen in the void.

  629. Re:Math and science are obsolete by amiran · · Score: 1
    Well: I'd imagine without such a big stretch of imagination that there were other factors concurrent with the tax cut.
    nope. it was the only important reform made by that government. it's because (mind you, we're talking about company tax, CIT) there were many ways to avoid paying higher tax (27%), after decrease cheating stopped being profitable. moreover many enterpreneurs started paying taxes for the first time, before that they didn't do it at all. so it has also decreased the grey market share.
  630. Re:Math and science are obsolete by LeonGeeste · · Score: 1

    I was claiming that the only thing you need to prove the existence of the Laffer Curve is some very fundamental mathematical theorems and some very trivial assumptions (if you credibly claim you'll take everything, you get nothing... no one has disputed that, here or elsewhere). Then, it's a straight shot to proof. Ergo, if you claim that the curve itself has been refuted, you're claiming that some fundamental mathematical theorems have been overturned (or, you're claiming something even stupider, but I err on the side of overestimating people). Understand now?

    I don't know what's so hard for you to understand about "increase". Think about the function f(x)=x^2 defined on [-2,2]. At -2 it's 4 and at 2 it's 4. So I could say, on this bound, it starts a four, and decreases, and then reaches 4 again. That wouldn't mean I'm claiming that x^2 is strictly increasing, which is exactly how you interpreted me! Look at your post again:

    http://slashdot.org/comments.pl?sid=165444&cid=138 06454

    "The fact that an increasing function which increases away from zero cannot go back to zero is a triviality once you have set up basic properties of inqualities,"

    You thought the function was strictly increasing so it could not go back to zero! Yet that was obviously not what I said. I said in some region after 0, it increases, not that it always increases.

    Comprende?

    --
    Rank my idea: http://www.sinceslicedbread.com/node/531
  631. Copy Protection by Anonymous Coward · · Score: 0
    y the way: a soft couch, a carefully selected DVD, half a bottle of rum, and a girl. Guess which element to this excellent scenario was fucking ruined by copy protection?

    What's the matter? Did your "copy protection" have a hole in it and now she wants you to marry her?

  632. How many cabs in this city? by munpfazy · · Score: 1

    Here's one a friend put to me a couple months ago that I quite enjoyed.

    Riddle:

    You step off an airplane in a strange city about which you know nothing, and you immediately hail a taxi cab. The taxi has "licensed cab #n" written on the side of it.

    If your goal is to guess exactly the number of licensed taxi cabs in the city, what number should you guess?

    If your goal is to guess the number of taxi cabs in the city to within plus or minus m, what number should you guess? What if you're trying to get the answer to within some fraction of the actual value?

    Commentary (with no detailed spoilers, but probably not interesting until you've solved the problem already):

    Within the group in which this question was posed (consisting entirely of slightly intoxicated physics grad students), we arrived at a thoroughly convincing answer in minutes, and then spent the next hour coming to the conclusion that the question is a lot more complicated than it sounds and our initial answer was incomplete.

    You have to assume something about the possible distribution of numbers of cabs in the world in order to arrive at an answer. That assumption is so obvious, at least to those trained in frequentist statistics, that it's easy not to recognize that you're making it. Consider if, for example, the question had been posed on a planet on which every city was required to have exactly 1000 licensed cabs. In that case, the winning strategy will be very different from the straightforward answer. On our world, you'd really have to know a lot about the distribution of cab fleets in cities in order to answer the question properly. (At some level this is intuitive - if you step off a jumbo jet and get into taxicab #1, it's unlikely any real person would guess they'd landed in a city with a major airport but only one cab.)

  633. Re:Math and science are obsolete by Anonymous Coward · · Score: 0
    Why is it "BushCo's" (clever) fault that New Orleans flooded? Shouldn't the government in New Orleans have done something about it? Perhaps raised the money themselves to fix their problems? I should'nt be subsidising people who live by the ocean, below sea level.

    BushCo (super clever man) is pushing for zero taxes? Wow, I am still paying 35% plus FICA+Medicare of roughly 12.4%(self-employed) + 1.45% so I pay 48.85% of my income in taxes by the end of the year. People at the other end pay 10% plus 6.2%(assuming the are employees)+1.45% so 17.65% in taxes for the year.

    Why again is it fair that I have more taken from me becuase I produce more? Without me I know of at least 50 less jobs that would be out there. BTW, the top rate was reduced 1% the bottom by 5%. Sounds like a tax cut for the poor. 1% is less than 5% lat time I checked.

    Let us not forget local and state taxes as well. We work past July just to pay taxes.

  634. Re:Math and science are obsolete by msuarezalvarez · · Score: 1

    It stopped being profitable because of what, exactly? I'm asking because I do not know. Did the cost of greyness not change (in the way of more credible threats, burocratic impediments, whatever, on cheaters, for example)?

  635. Re:Math and science are obsolete by msuarezalvarez · · Score: 1

    The Laffer Curve Theory can be refuted without even a hint of overturning any theorem, fundamental or otherwise (theorems cannot be overturned: at most, statements mistakenly believed to be theorems are shown to be false). The Laffer Curve Theory rests on reasoning of economical nature, on hypothesis of economical nature, and is only sensibly discussed in economical terms. You can make all kind of models of the same situation which can be refuted in economical terms. A very simple example is the following:

    Let me introduce you to the Suarez-Alvarez Curve Theory, which models the behaviour of tax revenue T in terms of tax rate R: it is quantitatively expressed by the equation

    T = - R (1 - R).

    It clearly predicts that maximum tax revenue will be obtained by either setting tax levels either to zero or to 100%, and that any other choice of tax level will in fact cause a negative tax revenue, also known as trouble.

    If you think for a minute about this alternative theory of the relation between taxation and revenue, you'll see that pretty much any mathematical reasoning you can do with the Laffer Curve can be done on the Suarez-Alvarez curve mutatis mutandi, just taking care of reversing some signs, and replacing maxima by minima and so on.

    You will clearly agree that this Suarez-Alvarez Curve theory is quite inadecuate. Pretty much the same fundamental theorems are used in dealing with it as with Laffer's. The key difference (at least, so supply-side economists try to convince us of this), the Laffer Curve theory is supported by economical reasoning and econometric data, while the Suarez-Alvarez Curve Theory apparently is not.

    How many fundamental mathematical theorems have been overturned because of the tragic fall of the Suarez-Alvarez Curve Theorem?

    As for the rest of your comment, forgive if I ignore it.

  636. Re:Cube Crawlers -- ANSWER? by HeadOffice · · Score: 1

    Nice one! I think I have the answer though:

    There's 4 distinguishable situations:

    • (P) If the cubecrawlers are in A, they have to travel to either B, D or E, which takes one day.
    • (Q) If the cubecrawlers are in B, D or E (coming from A) they have to travel to either C, F or H (since they may not immediately return to A).
    • (R) If the cubecrawlers are in C, F or H (coming from B, D or E which is the only way to get there) in 50% of the cases they travel to G where they die and in 50% of the cases they travel back to B, D or E. (Travelling back was not allowed? If they are in C coming from B they travel back to D, if they are in C coming from D they travel back to B. The same reasoning holds for corners F and H.)
    • (S)If the cubecrawlers are in B, D or E (coming from C, F or H) in 50% of the cases they travel to A and in 50% of the cases they travel back to C, F or H. (Again, by travelling back I mean travelling back to the one other possible corner.)
  637. Re:Cube Crawlers -- ANSWER CONTINUED? by HeadOffice · · Score: 1

    I hit the 'submit' button, consider the last post a good hint. Here's the rest of my answer:

    Let's call the 'life expectancy' in 'situation P' P, in 'situation Q' Q, etc.

    Then the following holds:

    • P = 1 + Q (From situation P one can only go to situation Q, which takes 1 day.)
    • Q = 1 + R (From situation Q one can only go to situation R, which takes 1 day.)
    • R = 1 + 0.5 * S (From situation R in 50% of the cases one goes to sudden death at corner G and in 50% of the cases to situation S. Both take 1 day.)
    • S = 1 + 0.5 * P + 0.5 * R (From situation S in 50% of the cases one goes to situation P and in 50% of the cases to situation R. Both take one day.)

    A bit of algebra yields that P equals 6, so my answer is that on average the crawlers live 6 days.

  638. Re:Pirates ("50% or more" detail) by Monimonika · · Score: 1

    Okay, I'm back.
    Another thing that does not seem to be clear in the problem is whether voting against would cut the pirate off from getting his share (whatever it may be) if the majority voted for. It seems others are assuming that by voting against, the pirate forfeits the proposed share of the treasure for himself. The problem doesn't state this anywhere, so I don't assume this (although I do assume that all the pirates want to live, don't care at all if the others die, and know that the others think the exact same way).
    I was never good at these types of problems, so I don't have a solution thought up yet. But using the above info should provide an adequate solution.

  639. MacGyver by waamaral · · Score: 1

    You are MacGyver (that's hint #1).
    You are running on a jungle, a hungry lion behind you, and you reach a river, which has a deadly crocodile waiting for his meal.
    You have 1 binoculars, 1 (empty) match box, and 1 small clamp.
    If you stay, the lion eats you, if you swim the crocodile eats you.
    How do you cross the river?

    Hint #2: You can't call Steve Irwin

    --
    What, do I need a sig now?
    1. Re:MacGyver by waamaral · · Score: 1

      Oh well, just for the record:

      Look into the binoculars backwards, so you can see the crocodile very tiny. Then grab him with the clamp, put inside the match box, close it, throw away, and cross the river =)

      --
      What, do I need a sig now?
  640. Read the solutions again by snowwrestler · · Score: 1

    Obviously to everyone, or there would be no point in mentioning it.

    You must be baiting me, or just exaggerating to make a point. Many word problems revolve around information that is known to one party in the "story" but not another. The devil is in the details.

    I believe he has also had to clarify multiple times that the king was asking if they had been all in the room since they were origionally locked in their cells, even though that was explicitly stated in the origional problem.

    Those are cases of poor reading--as you say the problem text is explicit about when the game starts. I challenge you to quote the text where the OP states explicitly that k is known to all parties in the story prior to the start of the game. Sure, yes, it's easily assumed and the answer is only valid if you do. But my point is that if you're going to offer up a math/logic problem, you should at least be able to state your starting conditions clearly.

    The vast majority of people who posted got it. If it was so confusing, how were they able to do that?

    They did it by either asking about k or by stipulating in their own post that k must be known to the prisoners.

    http://ask.slashdot.org/comments.pl?sid=165444&cid =13802205
    http://ask.slashdot.org/comments.pl?sid=165444&cid =13804515
    http://ask.slashdot.org/comments.pl?sid=165444&cid =13805037
    http://ask.slashdot.org/comments.pl?sid=165444&cid =13804553
    http://ask.slashdot.org/comments.pl?sid=165444&cid =13801559
    http://ask.slashdot.org/comments.pl?sid=165444&cid =13801707
    http://ask.slashdot.org/comments.pl?sid=165444&cid =13801933
    http://ask.slashdot.org/comments.pl?sid=165444&cid =13805810
    http://ask.slashdot.org/comments.pl?sid=165444&cid =13801427
    http://ask.slashdot.org/comments.pl?sid=165444&cid =13804138
    http://ask.slashdot.org/comments.pl?sid=165444&cid =13802845

    Look I'm not saying that it's an insolvable problem, I'm just saying it's lazily and inexactly written. I'm not alone.

    Consider this comment:
    http://ask.slashdot.org/comments.pl?sid=165444&cid =13806048

    Or this one:
    http://ask.slashdot.org/comments.pl?sid=165444&cid =13805847

    --
    Build a man a fire, he's warm for one night. Set him on fire, and he's warm for the rest of his life.
    1. Re:Read the solutions again by nwbvt · · Score: 1
      You must have been a real pain in the ass to your friends when you were playing games as a kid.

      "You must be baiting me, or just exaggerating to make a point. Many word problems revolve around information that is known to one party in the "story" but not another. The devil is in the details."

      And obviously that is not the case here. It is not required for every little detail to be specified, or else the riddle would be pages long. People asked if they were allowed to use the chalice to bash the king's head in. Should he have specified in the origional post that the king is a kung fu expert? Nor is it specified that the cells didn't have backdoors leading to freedom. Nor is it specified that k must be an integer. Get the picture?

      If you nitpick too much, virtually any riddle is unsolvable. Consider the sample riddle given for this discussion, with the 50 quarters. Its never specified that both sides of each quarter is different. As written, its perfectly possible for some (or even all) of the quarters to be one sided. If so, it is unsolveable.

      And as far as your list of posts go, at least one just misunderstood what the poster meant by k (I seem to remember it was around 2 am at the time), and I can probably find just as many, if not more, claiming they can answer yes the first time because they all went through the main room to get to the cells. All that means is that people don't read things clearly at 2 am on a Sunday morning.

      Yes, if this was a formal mathematical proof, he would have to have specified at the beginning "For any non-negative integer k...". However, this was not a formal mathematical proof. It was a riddle. You know, like for fun. Get it?

      --
      Mathematics is made of 50 percent formulas, 50 percent proofs, and 50 percent imagination.
  641. Re:Math and science are obsolete by drsquare · · Score: 1

    I'm not blaming the victim, I'm just saying it's not anyone else's fault. Natural disasters happen. If you live below sea-level in a hurricane zone, and the shit hits the fan, don't cry to other people for not protecting you.

    What 'leader' are you on about? I don't care about Bush, I'm not even American. But then it makes it easier to attack people when you put them into boxes.

  642. Re:Math and science are obsolete by shanen · · Score: 1

    Do you think I'm going to argue with a fool? As far as I'm concerned, your only purpose in life is to mark me as your foe.

    --
    Freedom = (Meaningful - Coerced) Choice != (Speech | Beer^2), and sad sock puppets' bad mods avail them naught.
  643. I totally was! by snowwrestler · · Score: 1

    You must have been a real pain in the ass to your friends when you were playing games as a kid.

    Yup, I was the one who always probed the details. Sometimes it was just annoying but sometimes it was the key to the solution. What can I say, I grew up a stickler.

    Here's a good example of a riddle where the details of the telling are essential to solving it...I used to love these as a kid. I think someone else posted this somewhere in this thread too.

    http://www.greece.k12.ny.us/taylor/topics/grypuzzl e.htm

    --
    Build a man a fire, he's warm for one night. Set him on fire, and he's warm for the rest of his life.
  644. Re:Math and science are obsolete by drsquare · · Score: 1

    You have a persecution complex.

  645. Re:Math and science are obsolete by phlinn · · Score: 1

    You're missing the argument completely. The whole point is that the overall tax rate was lower at the end of reagan's term (as determined by revenue as a % of GDP), but that the absolute revenue was higher. It is possible to lower taxes and increase revenue. Using the numbers I located, this occured even if you account for population growth and correct for inflation. The GDP per capita increased between the start and the end of his term, and per capita revenue grew 15%.

    Why do you consider it inherently a bad thing that revenue fell as a portion of GDP? To use a weak analogy, the goal is to take a smaller slice but enlarge the pie. In other words, (20% of 100) > (21% of 90).

    Incidentally, you should use 1980 as a start, but only as a comparison to before Reagan. He didn't take office until 1981. Considering 1989 has some usefulness if you assume that Bush Senior's policies didn't really impact things until later, but I agree that CATO should have left it out. This is why I ran the numbers from 1980 to 1988. They discuss this very point in the linked article however. They did use inflation corrected dollars. All amounts were given in 1992 dollars, but they did not factor out population growth.

    Now, I will concede that we can't know for certain whether the tax rate modifications were a cause of the improved GDP. Nonetheless, your original statment that "Even during the Reagan years, when the supply-siders ran free like herds of buffalo in the White House, the tax cut resulted in dramatically lower revenue." is provably false, unless you redefine revenue as a percentage instead of an amount. Since that isn't the standard defintion, using it that way in an argument is misleading.

    --
    "Pulling together is the aim of despotism and tyranny! Free men pull in all sorts of directions" -- Havelock Vetinari
  646. Re:Math and science are obsolete by Anonymous Coward · · Score: 0

    I'm confused. Your sig leads to a left wing website, but you're advocating for lower taxes. Are you a troll on that website?

  647. Re:Math and science are obsolete by LeonGeeste · · Score: 1

    Okay, 100th time: I never claimed the math alone proves the idea. Of course you need to add economic postulates like no tax yields no revenue, full tax yields no revenue, and some tax gives positive revenue. However, no one is really stupid enough to dispute these assumptions. That' why I said you have to refute the math if you claim the Laffer Curve is "refuted". Get it now? If not, work it out tomorrow night after you get home from brick-laying.

    Now, let's look at the example you constructed specifically to show a case where the Laffer theory would not hold up despite the validity of the math. Keep in mind, this is a case where you dug to the very depths of your intelligence, and came up with the best possible example. So it should be pretty devastating if I can show that Laffer's claim holds up even under your economic model, don't you agree.

    In the example that you specifically constructed to show how I'm wrong and how bright you are, there still exist regions in which raising taxes causes revenues to decline!!! Oops. Back to the drawing board.

    By the way, I'm not so sure about this whole idea that you're a math professor. Math professors don't make dumbass mistakes like interpreting "positive function" to mean "positive slope function" and then sticking their necks out on it. For this reason, I'd like to know where you're a math professor so I can tell your colleagues about what went on here. If on the other hand, you're been lying this whole time, quietly slipping out would be the bright thing to do, m'k?

    One final mistake: I don't know why you called it the Suarez-Alvarez Theory. Shouldn't it be the Suarez-Alvarez de Lopez de Castillo de Gonzales de Madrid de Saxe-Coburg-Gotha de Rodriguez-San Felipe Theory or something? Just a suggestion.

    --
    Rank my idea: http://www.sinceslicedbread.com/node/531
  648. Re:Math and science are obsolete by msuarezalvarez · · Score: 1
    Keep in mind, this is a case where you dug to the very depths of your intelligence, and came up with the best possible example.

    I am sorry, but I really do not care about you that much. While writing the previous post, I considered better options, but I really did not feel like writing them up.

    In the example that you specifically constructed to show how I'm wrong and how bright you are, there still exist regions in which raising taxes causes revenues to decline!!! Oops. Back to the drawing board.

    Heh. Now, there also exist regions where raising taxes lowers revenues. Of course, that is true also of Laffer's curve. That is pretty much irrelevant to anything, too.

    I'd like to know where you're a math professor so I can tell your colleagues about what went on here.

    Go to Google and search for my name. It should be pretty easy to filter out the non-mathematical stuff. Now, in fact, I am not a professor of Mathematics: I'm right before becoming one in Buenos Aires. I am a professor in another university, but of Computer Science. My research is only in Mathematics, though.

    One final mistake: I don't know why you called it the Suarez-Alvarez Theory.

    Well, Suarez-Alvarez is my last name.

    Shouldn't it be the Suarez-Alvarez de Lopez de Castillo de Gonzales de Madrid de Saxe-Coburg-Gotha de Rodriguez-San Felipe Theory or something? Just a suggestion.

    I have to confess I do not follow. All interpretations I seem to find of this are way too stupid, I'll just assume I have not found the correct one.

    You are not very entertaining to write to, you know?

  649. Re:Math and science are obsolete by LeonGeeste · · Score: 1

    I am sorry, but I really do not care about you that much. While writing the previous post, I considered better options, but I really did not feel like writing them up.

    Like hell you didn't! You had to construct an example to "prove" (hah!) me wrong. You picked that one. If you had a better one, you should have used it. You're just as careless creating examples as you are interpreting "positive function" to mean "positive slope function".

    Heh. Now, there also exist regions where raising taxes lowers revenues. Of course, that is true also of Laffer's curve. That is pretty much irrelevant to anything, too.

    Everybody agrees raising taxes can raise revenues. Laffer presented the obvious yet forgotten insight that raising taxes can also lower revenue. It's not irrelevant: it shows we need to keep in mind that taxing too high can defeat the purpose, something many on the left are unwilling to even consider. Laffer's insight is correct, and even your carefully constructed example validates it.

    About the name I proposed for your theory: I thought that was your full name. Usually people who use hyphenated last names have a whole host of names part of their full names, and that includes the names of royalty (Saxe-Coburg-Gotha). Whatever reason you use a hyphenated last name, it's probably stupid. Just use your full name: Suarez-Alvarez de Lopez de Castillo de Gonzales de Madrid de Saxe-Coburg-Gotha de Rodriguez-San Felipe.

    I hope I can find you on Google so I can link them to certain posts of yours. I also hope it doesn't cost you your job, although it probably will.

    --
    Rank my idea: http://www.sinceslicedbread.com/node/531
  650. Re:Pirates (forgetting "50% or more" detail) by Monimonika · · Score: 1

    I'm reading the various posted "solutions" and there's one obvious (to me) thing missing. Why would the lowest ranked pirate ever agree with any distribution by the others? See below:

    "if it's 50% or more against, you kill that highest rank"

    So, if the problem were simplified to just 2 pirates, the lower ranking pirate gets everything by default by just voting against whatever the other pirate proposes. The lower ranking pirate has all the power since he makes up 50% of the vote with only 2 people.

    Thus, it should be assumed that pirate #5 will always vote against, in hopes of being put in the final situation. He has nothing to gain by not voting against, since his life is not in danger. Plus, nowhere in the problem does it say that by voting against that a pirate loses his share of the bounty.

    Given that pirates 1) put a slightly higher priority on living rather than getting gold, 2) don't give a damn whether the others live or die (so if they can get the same amount of gold either way, they'll choose to do their buddy(s) in anyway), 3) know that all the other pirates think the exact same way.

    Now, knowing this, how would the other pirates react?

  651. Re:Pirates Solutions Explained!! by Monimonika · · Score: 1

    Nevermind, you're correct with 97-0-1-0-2 and 97-0-1-2-0. The unexplained (read: assumed by the smart ones) bits threw me off on the logic. But there's a reason why I don't accept 98-0-1-0-1 as an answer.

    The following is my attempt to have it make sense to even laypeople like me.

    Working backwards from pirates #4 and 5:
    No matter what #4 says, #5 will always vote NO because he will receive everything (50% or more rule). Thus, #4 wants to avoid this scenario.
    [#5 = 100]

    Pirates #3, 4, and 5:
    #3, knowing that #4 will vote YES no matter what to stay alive, keeps all 100 pieces to himself since the vote will be, #3&4 = YES, #5 = NO.
    [#3 = 100, #4 = 0, #5 = 0]

    Pirates #2, 3, 4, and 5:
    Knowing that the above will happen if #3 gets his way, #2 gives one gold piece each to #4 and #5. Since #4 and #5 want to get at least something, they will both vote YES. So the vote will be #2&4&5 = YES, #3 = NO.
    [#2 = 98, #3 = 0, #4 = 1, #5 = 1]

    Pirates #1, 2, 3, 4, and 5:
    Now things get interesting. #1 must get three votes (himself and two more) to survive. Given the above, #2 will always vote NO. To ensure the other votes, #1 will only have to give one piece of gold more than what the above scenario will provide to two others. Since he only needs two more votes, one piece will be given to #3 (to save on cost) and one more piece to either #4 or #5 (no need for both). So the vote will be #1 = YES, #2 = NO, #3 = YES, #4 = YES/NO, #5 = NO/YES.
    [#1 = 97, #2 = 0, #3 = 1, #4 = 2 or 0, #5 = 0 or 2]

    98-0-1-0-1 (or 98-0-1-1-0) will not work because neither #4 nor #5 will be given a reason to vote YES. Remember, pirates will only vote YES if there is an advantage for themselves, not for the greater good.

  652. Re:Pirates (forgetting "50% or more" detail) by Draknek · · Score: 1

    Okay, so in the first situation he votes against it, and the first pirate gets thrown overboard.

    In the second situation he votes against it, and the second pirate gets thrown overboard.

    But in the third situation, there are only three pirates left (3, 4 and 5). #3 knows that #5 will vote against it, but he only needs two votes to survive. #4 will vote for this proposal whatever he's offered, because he doesn't want to propose something that #5 might reject.

    So #3 proposes that he gets all 100 gold pieces. #4 agrees, because he doesn't want to die. #5 rejects it, but it's two votes to one, and he gets nothing.

    Whatever he's offered in the first proposal is better than what he would get offered in the second proposal, which is better than nothing (what he would get from the third proposal).

    --
    Self-referential sigs do not a humourous poster make.