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?"

137 of 1,965 comments (clear)

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

    They drive me nuts. Array and vecor logic. Fun

    -B

    1. 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

    2. 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.

    3. 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.

  2. 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 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!

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

    Is obviously 42

  4. 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 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.

    3. 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 :)

    4. 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. :-(

    5. 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.

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

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

    7. 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.

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

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

  6. 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.
  7. 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 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"
    2. 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.

    3. 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!
    4. 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.
    5. 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"

    6. 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.

    7. Re:Petals of the Rose by Lehk228 · · Score: 2, Funny

      the game involves throwing dice not chairs

      --
      Snowden and Manning are heroes.
  8. 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!
  9. Re:Oldie but goodie... by markov_chain · · Score: 2, Funny

    *** ZOT! ***

    --
    Tsunami -- You can't bring a good wave down!
  10. 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?

  11. 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 Anonymous Coward · · Score: 3, Funny

      Nobody writes jokes in base 13.

    2. 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);

  12. 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 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)
    2. 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.
  13. Re:Riddle by st0rmshad0w · · Score: 2, Insightful

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

  14. 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.

  15. 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.
  16. 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

  17. 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.

  18. Look and Say by Noksagt · · Score: 5, Informative

    There's a good write up of this on MathWorld.

  19. 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.

  20. 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 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
  21. 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.
  22. 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
  23. 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
  24. 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 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.
    2. 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.
    3. 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

  25. 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 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

    2. 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."

    3. 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..

    4. 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. 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?
  27. 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

  28. 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
  29. 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!
  30. 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
  31. 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.

  32. 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.

  33. 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 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
  34. 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

  35. 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.

  36. 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 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.

  37. whole bunch of em by mako1138 · · Score: 2, Informative

    Right here.

    Incidentally, that page has been slashdotted in the past.

  38. 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 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.

    2. 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.

    3. 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.
    4. Re:The King and the Chalice (only for Experts!) by eff · · Score: 2, Informative
    5. 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.

    6. 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? =)

    7. 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!
    8. 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
    9. 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.
    10. Re:The King and the Chalice (only for Experts!) by Anne_Nonymous · · Score: 2, Funny

      Wait a minute. Repeat as necessary.

    11. 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...

    12. 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!-

    13. 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
  39. 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.

  40. 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.

  41. 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
  42. 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.
  43. 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.

  44. 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.)

  45. 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.

  46. 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?

  47. 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.
  48. 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.

  49. yes it's cute by croto · · Score: 2, Informative

    abcabc/13=(abc+1000*abc)/13=abc*1001/13=abc*77 nice!

  50. 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.

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

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

  52. 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.

  53. 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.

  54. Re:Phone Numbers by arodland · · Score: 3, Informative

    Weak ;)

    (20000a + 250 + 2b - 250) / 2
    10000a + b

  55. 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!"

  56. Re:Link to online version by Anonymous Coward · · Score: 2, Informative

    Seven.

  57. 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

  58. 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
  59. 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!?

  60. 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.

  61. Re:0^0 by Fnkmaster · · Score: 4, Funny

    I guess you could say 0^0 = 1, for sufficiently large values of 0. :)

  62. 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.

  63. 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
  64. 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?

  65. 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
  66. 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)
  67. 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.

  68. 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?

  69. 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" ;-)

  70. 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.
  71. 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.
  72. Re:Boat in a lake by oldCoder · · Score: 2, Funny

    Yes. There are only 3 possibilities, and you've enumerated them all...

    --

    I18N == Intergalacticization
  73. 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.

  74. 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.
  75. 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.
  76. 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.

  77. 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 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
    2. 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.

  78. 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
  79. 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.

  80. 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.

  81. 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.

  82. 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.

  83. 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 :)

  84. 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.....
  85. 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
  86. 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.

  87. 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.