# Blue-eyes logic puzzle

**URL:** <https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531>\
**Category:** Factual Questions\
**Created:** [December 8, 2011, 5:31pm UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531 "2011-12-08T17:31:14Z")\
**Posts on this page:** 20\
**Page:** 9

<div class="post-metadata">

**Author:** ![hogarth](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/hogarth/32/1773_2.png) [@hogarth](https://boards.straightdope.com/u/hogarth)\
**Post date:** [December 9, 2011, 11:50pm UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/161 "2011-12-09T23:50:05Z")

</div>

> [@Chessic\_Sense](#):
>
> Yes, but everyone doesn’t know that everyone knows that everyone knows that everyone knows. And that’s the difference. We’ve already explained this. Saying “Everyone knows that everyone knows” isn’t far enough.

I eventually figured it out by solving it for the case of 1 blue-eyed person, 2 blue-eyed persons, 3 blue-eyed persons and 4 blue-eyed persons, until I caught onto the logic.

It also helped me to paraphrase the Guru’s comment as “At least one blue-eyed person can go home now” or something like that.

---

<div class="post-metadata">

**Author:** ![Rain\_Soaked](https://avatars.discourse-cdn.com/v4/letter/r/e19adc/32.png) [@Rain\_Soaked](https://boards.straightdope.com/u/Rain_Soaked)\
**Post date:** [December 10, 2011, 12:08am UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/162 "2011-12-10T00:08:47Z")

</div>

> [@aldiboronti](#):
>
> Well, that put the kibosh on that! Good point, I’d forgotten that other colors could figure. Are the browns then stuck on the island when all the blues have left? No logical out for them?

The rest of the Brown-eyed people do not leave because they can’t be sure what their eye colour is.

---

<div class="post-metadata">

**Author:** ![Ximenean](https://avatars.discourse-cdn.com/v4/letter/x/aca169/32.png) [@Ximenean](https://boards.straightdope.com/u/Ximenean)\
**Post date:** [December 10, 2011, 12:18am UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/163 "2011-12-10T00:18:12Z")

</div>

> [@Danger\_Man](#):
>
> So when it comes to the 100th day and you decide to leave, it depends on you trusting the other 99 guys having made a logic deduction. In which all those 99 trust the 98 others having made the deduction. Those 98 trust the 97 having made the deduction…
> 
> … those trust the 2 people having made the deduction about the last guy WHO IS TOTALLY DEPENT ON THE GURU TO MAKE HIS DEDUCTION.

Welcome to the world of logic puzzles. You should assume unless otherwise advised that all citizens have perfect powers of deduction, and tell the truth, or not, in a perfectly describable fashion. If the citizens in question are pirates, then you must assume that they are incredibly bloodthirsty, greedy, selfish, and malicious. The king of Puzzlania routinely executes people for failing to guess what colour hat they’re wearing. If you’re a prisoner in Puzzlania, forget it. You’re going to have to work out some ludicrously difficult brainteaser if you’re ever going to see daylight. And so on.

It’s probably not a very nice place to live, but it makes for some interesting puzzles.

---

<div class="post-metadata">

**Author:** ![Frylock](https://avatars.discourse-cdn.com/v4/letter/f/ce7236/32.png) [@Frylock](https://boards.straightdope.com/u/Frylock)\
**Post date:** [December 10, 2011, 12:25am UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/164 "2011-12-10T00:25:14Z")

</div>

(anyone know of a good book with puzzles along this vein that a kid might enjoy?)

---

<div class="post-metadata">

**Author:** ![Senegoid](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/senegoid/32/6606_2.png) [@Senegoid](https://boards.straightdope.com/u/Senegoid)\
**Post date:** [December 10, 2011, 12:46am UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/165 "2011-12-10T00:46:44Z")

</div>

> [@Frylock](#):
>
> (anyone know of a good book with puzzles along this vein that a kid might enjoy?)

_What is the Name of This Book?_ by Raymond Smullyan.

Collection of logic puzzles (mostly of the truth-tellers-and-liars variety) all done up into entertaining stories. In one chapter, for example, he visits Transylvania to investigate for himself whether Dracula was really ever destroyed or not – only to find that all Transylvanians are:  
– a. Knights (truth-tellers) or knaves (liars), all of whom tell the truth or lies according to the truth _as they know it_.  
– b. Sane (who know what the truth is) or insane (who are completely deluded and believe that all true propositions are false, and all false propositions are true).

Thus, all insane knights always say what is false (because that’s what they believe is true), while all insane knaves say what is true (because they believe the opposite, but lie according to what they believe).

The book also has chapters that go into deeper logic subjects, in particular Godelian islands and such. But it’s all fun reading.

[On-line sample (pdf)](http://www.iescapdellevant.org/departaments/filo/citizenship/Raymond%20Smullyan_knights.pdf)

ETA: Also contains a chapter of silly (mostly well-known) riddles, and a chapter of funny anecdotes about famous mathematicians, physicists, logicians, etc.

---

<div class="post-metadata">

**Author:** ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)\
**Post date:** [December 10, 2011, 1:37am UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/166 "2011-12-10T01:37:06Z")

</div>

> [@](#):
>
> Quoth **hogarth** :
> 
> Once you get to four blue-eyed people (call them A, B, C and D), every possible subgroup of people would mutually agree that A sees at least one blue-eyed person (e.g. B & C and anyone else know that he sees D, B & D and anyone else know that he sees C, C & D and anyone else know that he sees B), that B sees at least one blue-eyed person, that C sees at least one blue-eyed person, that D sees at least one blue-eyed person, etc. Therefore, everyone knows that no one will leave on Night 1. There’s no further inference that can be made on Night 2, because everyone agrees that everyone else knows that nothing would happen on Night 1 (or every night, for that matter – elucidating the fact that there’s at least one blue-eyed person adds nothing, since everyone knows that everyone else knows that that’s true).

This is correct: If there are four blue-eyed people, then nobody is surprised by anything that happens on Night 2, because everyone already knew that nobody would leave on Night 2. But on Night 3, the blue-eyed folks don’t know in advance what’s going to happen, and so learn something new (namely, that they should leave), and on Night 4, the non-blues don’t know in advance what’s going to happen, and so learn something new (namely, that they should stay).

---

<div class="post-metadata">

**Author:** ![amarinth](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@amarinth](https://boards.straightdope.com/u/amarinth)\
**Post date:** [December 10, 2011, 1:47am UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/167 "2011-12-10T01:47:50Z")

</div>

> [@Indistinguishable](#):
>
> Out of curiosity, is there anyone who has difficulty understanding what happens in the islands-and-bridges problem I gave in post [#27](http://boards.straightdope.com/sdmb/showpost.php?p=14545715&postcount=27)? Regardless of whether you think it is relevant to this problem or not, is there anyone who has difficulty understanding that problem on its own terms?

I am.  
I’m not following who talks to whom to verify what.

I had no trouble with the blue eyed islanders.

---

<div class="post-metadata">

**Author:** ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)\
**Post date:** [December 10, 2011, 2:09am UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/168 "2011-12-10T02:09:24Z")

</div>

As an aside, **Indistinguishable** , are you familiar with Adinkra diagrams? They seem to have a structure somewhat similar to your islands-and-bridges problem, and are used in some String Model calculations. Our colloquium speaker was talking (in part) about them today, and mentioned that they’re only just starting to come to the attention of mathematicians.

---

<div class="post-metadata">

**Author:** ![aldiboronti](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@aldiboronti](https://boards.straightdope.com/u/aldiboronti)\
**Post date:** [December 10, 2011, 2:15am UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/169 "2011-12-10T02:15:30Z")

</div>

> [@Senegoid](#):
>
> _What is the Name of This Book?_ by Raymond Smullyan.

Recommendation heartily seconded. He did a series of such puzzle books and they’re all great fun. It’s been far too long since I visited the [Island of the Knights and Knaves.](http://en.wikipedia.org/wiki/Knights_and_Knaves)

Another contender BTW for [The Hardest Logic Puzzle Ever.](http://en.wikipedia.org/wiki/The_hardest_logic_puzzle_ever)

---

<div class="post-metadata">

**Author:** ![Senegoid](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/senegoid/32/6606_2.png) [@Senegoid](https://boards.straightdope.com/u/Senegoid)\
**Post date:** [December 10, 2011, 3:25am UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/170 "2011-12-10T03:25:18Z")

</div>

> [@aldiboronti](#):
>
> Recommendation heartily seconded. He did a series of such puzzle books and they’re all great fun. It’s been far too long since I visited the [Island of the Knights and Knaves.](http://en.wikipedia.org/wiki/Knights_and_Knaves)
> 
> Another contender BTW for [The Hardest Logic Puzzle Ever.](http://en.wikipedia.org/wiki/The_hardest_logic_puzzle_ever)

Another of Smullyan’s logic puzzle books is _To Mock A Mockingbird_.

---

<div class="post-metadata">

**Author:** ![Chessic\_Sense](https://avatars.discourse-cdn.com/v4/letter/c/7c8e57/32.png) [@Chessic\_Sense](https://boards.straightdope.com/u/Chessic_Sense)\
**Post date:** [December 10, 2011, 4:08am UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/171 "2011-12-10T04:08:42Z")

</div>

Here’s a similar puzzle that I devised earlier today in order to mimic the eye-color puzzle.

Suppose you were a contestant on a game show with twenty teammates. Your team will be asked twenty factual questions and for each question, one and only one teammate will write down an answer on a sheet of paper. For the next question, they’ll pass it to their teammate who will write their answer to the new question below the previous answer. Simple, right?

Problem is, your opponents get to pick who will answer each question. And since the captain of your opponent’s team is the sexy young red-head you unwittingly bedded last night, you suddenly break into a cold sweat as you recall telling her what categories of knowledge each of your teammates specialize in. There are twenty categories of questions, but you thought it wise for each teammate to memorize the answers in only 19 categories, each. So every person has a gaping hole in their knowledge bank for only one category. And that’s the person she’ll choose to answer the question for that category.

So you’re in the strange situation that everyone knows the answer to every question except their own. For their own question, they can only guess with a 50/50 shot of guessing correctly.

Now the question: Is it possible that by the time you get the paper on the 20th question that your team will have answered incorrectly for every preceding answer? And if so, is it possible for you to answer incorrectly as well? So is it then possible that your team will score absolutely zero points?

---

<div class="post-metadata">

**Author:** ![nivlac](https://avatars.discourse-cdn.com/v4/letter/n/3bc359/32.png) [@nivlac](https://boards.straightdope.com/u/nivlac)\
**Post date:** [December 10, 2011, 8:01am UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/172 "2011-12-10T08:01:18Z")

</div>

> [@Chronos](#):
>
> Really, this problem is a poster child for the method of mathematical induction.  
> Proposition P(N): “For any N \>= 0, if there are N blue-eyed islanders, then on night N, all blue-eyed islanders will leave”  
> Foundation: If N=1, then the single blue-eyed islander will know that he must be the blue-eyed guy, and leaves on night 1. Therefore, P(1) is true.  
> Increment: If P(N) is true, then on day N+1, every blue-eyed islander will know that there are at least N+1 blue-eyed islanders. If there are exactly N+1 blue-eyed islanders, then each will only see N, and each will know that he himself must be the N+1th. Therefore, each blue-eyed islander will leave on night N+1. Hence, if P(N) is true, then P(N+1) is true.
> 
> We’ve now established that P(1) is true, and that if P(N) is true, then so is P(N+1). The result follows by induction.

Why all the confusion when \*\*Chronos’ \*\*mathematical proof is in front of you? The only thing I would change in the above proof is the _Increment_ step. As written it’s not obvious exactly where or how the induction hypothesis is applied. I would word the proof as follows (with a nod to **Chronos** ):

Proposition P(N): “For any whole number N \>= 1, if there are N blue-eyed islanders, then all blue-eyed islanders will leave on day N.”

Prove P(1): If N=1, then the single blue-eye will know that he must be the blue-eye person referred to by the Guru, and leaves on night 1. Therefore, P(1) is true.

Prove P(N) implies P(N+1): Assume that P(N) is true (this is the induction hypothesis). We must now prove that P(N+1) is true. Assume that there are N+1 blue-eyes. Each blue-eye would see N other blue-eyes. Each blue-eye would apply P(N) to infer that those other N blue-eyes would have all left the previous day if they were the totality of blue-eyes. Since they did not leave each blue-eye will conclude that he is also a blue-eye. And thus, each of the N+1 blue-eyes will declare that he’s a blue-eye and leave the island. (Note that a non-blue-eye cannot use this logic.) Therefore, P(N+1) is true. And the induction proof is complete.

---

<div class="post-metadata">

**Author:** ![Ximenean](https://avatars.discourse-cdn.com/v4/letter/x/aca169/32.png) [@Ximenean](https://boards.straightdope.com/u/Ximenean)\
**Post date:** [December 10, 2011, 9:39am UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/173 "2011-12-10T09:39:07Z")

</div>

> [@nivlac](#):
>
> Why all the confusion when \*\*Chronos’ \*\*mathematical proof is in front of you?

The induction explanation is fine for showing \*how \*the islanders realise that they have blue eyes, but I don’t think it’s so good at explaining \*why \*- the question of what new information, if any, the Guru brings to the situation, which is what the subsequent discussion has mostly been about.

---

<div class="post-metadata">

**Author:** ![Cheshire\_Human](https://avatars.discourse-cdn.com/v4/letter/c/5f8ce5/32.png) [@Cheshire\_Human](https://boards.straightdope.com/u/Cheshire_Human)\
**Post date:** [December 10, 2011, 2:56pm UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/174 "2011-12-10T14:56:47Z")

</div>

> [@Ximenean](#):
>
> The induction explanation is fine for showing \*how \*the islanders realise that they have blue eyes, but I don’t think it’s so good at explaining \*why \*- the question of what new information, if any, the Guru brings to the situation, which is what the subsequent discussion has mostly been about.

Ultimately, the problem is that you (a blue) can count 99, but you don’t know if the blues you see count 99 or only 98. They can’t communicate their count to you. The new info the Guru adds is a start time, and the color to count. The Guru is starting the count at 1. “I see 1 blue eyed person.” From that point, every one else can count blue eyes and days, and see if the blues have left yet.

Until some event can start the count, the chain of logic it’s based on can’t be used.

---

<div class="post-metadata">

**Author:** ![TATG](https://avatars.discourse-cdn.com/v4/letter/t/50afbb/32.png) [@TATG](https://boards.straightdope.com/u/TATG)\
**Post date:** [December 10, 2011, 3:14pm UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/175 "2011-12-10T15:14:04Z")

</div>

I’m not going to attempt any explanation, but I will point to the bit which helped me understand what was going on, and especially what extra you get from the Guru.

> [@Indistinguishable](#):
>
> With N people, you can get to “Everyone knows (iterated less than N times) that there is at least 1 blue eye”, but you can’t get to “Everyone knows (iterated N times) that there is at least 1 blue eye”. Until the Guru steps in, and makes his public announcement, which has the effect of letting you get to “Everyone knows ( **iterated however many times you like** ) that there is at least 1 blue eye”.

Emphasis mine.

---

<div class="post-metadata">

**Author:** ![emoticorpse](https://avatars.discourse-cdn.com/v4/letter/e/22d042/32.png) [@emoticorpse](https://boards.straightdope.com/u/emoticorpse)\
**Post date:** [December 10, 2011, 3:19pm UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/176 "2011-12-10T15:19:55Z")

</div>

i’m still stuck here but it’s my first post. I have read the entire thread most of it OVER AND OVER. what if the one person the guru is talking about is the same 1 person you are looking at with blue eyes does the answer still play out? still possible?.

---

<div class="post-metadata">

**Author:** ![Telemark](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/telemark/32/372_2.png) [@Telemark](https://boards.straightdope.com/u/Telemark)\
**Post date:** [December 10, 2011, 3:32pm UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/177 "2011-12-10T15:32:20Z")

</div>

> [@emoticorpse](#):
>
> i’m still stuck here but it’s my first post. I have read the entire thread most of it OVER AND OVER. what if the one person the guru is talking about is the same 1 person you are looking at with blue eyes does the answer still play out? still possible?.

It doesn’t matter who the person with blue eyes is. That makes no difference to the information given.

---

<div class="post-metadata">

**Author:** ![Ximenean](https://avatars.discourse-cdn.com/v4/letter/x/aca169/32.png) [@Ximenean](https://boards.straightdope.com/u/Ximenean)\
**Post date:** [December 10, 2011, 3:57pm UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/178 "2011-12-10T15:57:46Z")

</div>

> [@Chessic\_Sense](#):
>
> Here’s a similar puzzle that I devised earlier today in order to mimic the eye-color puzzle.
> 
> Suppose you were a contestant on a game show with twenty teammates. Your team will be asked twenty factual questions and for each question, one and only one teammate will write down an answer on a sheet of paper. For the next question, they’ll pass it to their teammate who will write their answer to the new question below the previous answer. Simple, right?
> 
> Problem is, your opponents get to pick who will answer each question. And since the captain of your opponent’s team is the sexy young red-head you unwittingly bedded last night, you suddenly break into a cold sweat as you recall telling her what categories of knowledge each of your teammates specialize in. There are twenty categories of questions, but you thought it wise for each teammate to memorize the answers in only 19 categories, each. So every person has a gaping hole in their knowledge bank for only one category. And that’s the person she’ll choose to answer the question for that category.
> 
> So you’re in the strange situation that everyone knows the answer to every question except their own. For their own question, they can only guess with a 50/50 shot of guessing correctly.
> 
> Now the question: Is it possible that by the time you get the paper on the 20th question that your team will have answered incorrectly for every preceding answer? And if so, is it possible for you to answer incorrectly as well? So is it then possible that your team will score absolutely zero points?

Maybe I’m missing the point here, but it seems obvious that is possible, if perhaps unlikely, that everybody will guess wrong.

---

<div class="post-metadata">

**Author:** ![emoticorpse](https://avatars.discourse-cdn.com/v4/letter/e/22d042/32.png) [@emoticorpse](https://boards.straightdope.com/u/emoticorpse)\
**Post date:** [December 10, 2011, 4:06pm UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/179 "2011-12-10T16:06:00Z")

</div>

I still (yes still so sorry for my ignorance) only see 2 outcomes. I see

1. You are the only blue eyed person and since you see no other blue eyes you know the guru is talking about you.

2. there is at least one other blue eyed person you see which the guru may be talking about which in that case you know the same exact thing he knows and just said being: he see’s at least one blue eyed person.

2.5 what he said means nothing because you already knew that he knew that even before he said it unless he’s blind there’s no way he didn’t already see one person. and since you already knew what he was looking at because you are looking at at LEAST that one person also still suck in the same position? day’s won’t help?.

that’s my conclusion so far. (i’m still trying. but you simplest breakdown still too complicated for me apparently).

---

<div class="post-metadata">

**Author:** ![Mosier](https://avatars.discourse-cdn.com/v4/letter/m/7ea924/32.png) [@Mosier](https://boards.straightdope.com/u/Mosier)\
**Post date:** [December 10, 2011, 4:26pm UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/180 "2011-12-10T16:26:58Z")

</div>

> [@emoticorpse](#):
>
> I still (yes still so sorry for my ignorance) only see 2 outcomes. I see
> 
> 1. You are the only blue eyed person and since you see no other blue eyes you know the guru is talking about you.
> 
> 2. there is at least one other blue eyed person you see which the guru may be talking about which in that case you know the same exact thing he knows and just said being: he see’s at least one blue eyed person.
> 
> 2.5 what he said means nothing because you already knew that he knew that even before he said it unless he’s blind there’s no way he didn’t already see one person. and since you already knew what he was looking at because you are looking at at LEAST that one person also still suck in the same position? day’s won’t help?.
> 
> that’s my conclusion so far. (i’m still trying. but you simplest breakdown still too complicated for me apparently).

In that case, you must consider the possibility that the other person is the only blue eyed person, and therefore does not see anyone with blue eyes.

[Previous page](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531.md?page=8)

[Next page](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531.md?page=10)
