I heard a brain-teaser today, and I think I have the answer, but it seems odd to me -- it relies on the other people in the puzzle not being as smart as the person who answers.
Three men are seated around a table. Each man is wearing a hat, either blue or white. Each can see the hat on the other two men, but not his own. They all know that there is at least one blue hat among them. The goal is for one of them to announce the color of the hat on his head. If he is right, he gets a million dollars. If he is wrong, he gets beheaded.

One of the three men sees that the other two men have blue hats. After half an hour, he stands up and announces his hat is...

Below is my thought process and conclusion.
Let's say A and B are wearing blue hats, and C is the man who stands up announces his color. If C's hat were white, then A would see a white and a blue hat and not be able to answer properly (since A's hat could be white or blue). Since A does not answer, B knows that there is only one white hat among the three -- and since A's hat is blue and C's hat is white, B knows his hat is blue.

But neither A nor B does such a thing. Since that has not happened, C knows that both A and B are looking at two blue hats. So C's hat is blue.

Question: why didn't one of the other two men do this?! I don't know.

_____________________________________________________
Jeff[japhy]Pinyan: Perl, regex, and perl hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;


In reply to (OT) Meditate on this brain-teaser by japhy

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.