# 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:** 10

<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, 5:53pm UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/181 "2011-12-10T17:53:38Z")

</div>

> [@](#):
>
> Originally Posted by Mosier
> 
> 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.

I unerstand that and in that scenario the other person (who is the only one with blue eyes) would be the only one to know his eye color and leave? leaving us 2 there because we haven’t figured it out yet? i think that is right?

But what if we can’t consider him the only blue eyed person because we’re already lookin at 3 in total? is it still simply resolvable? or could I use this answer to still figure it out?

---

<div class="post-metadata">

**Author:** ![matt\_mcl](https://avatars.discourse-cdn.com/v4/letter/m/7ab992/32.png) [@matt\_mcl](https://boards.straightdope.com/u/matt_mcl)\
**Post date:** [December 10, 2011, 6:58pm UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/182 "2011-12-10T18:58:37Z")

</div>

> [@Indistinguishable](#):
>
> It’s not the fact that the islanders learn “There is a blue-eyed islander” that does anything. If the Guru went and whispered this privately into each islanders’ ear, nothing would happen.
> 
> It’s the fact that the Guru states it publicly which has an effect. Because the Guru states it publicly, everyone knows that the Guru stated it, and everyone knows that everyone knows that the Guru stated it, and so on. That brings about a change; it makes it so that everyone knows that everyone knows that … everyone knows that there is someone with blue eyes. This wasn’t the case before. It’s as a result of stating it _publicly_ that this becomes the case.
> 
> The islanders do not gain information from learning “There is someone with blue eyes”. Rather, there is a shift brought about in what the islanders know about what other islanders know about what other islanders know about … [to the Nth degree], by this fact being stated publicly, even though everyone already knew it privately.

> [@sachertorte](#):
>
> Also, each day affords a singular opportunity for the islanders to share information. They aren’t allowed to speak to each other, but they communicate information through actions (or the lack of action – e.g., not leaving the island). On Day N, all islanders NOT leaving the island are communicating that “I see more than N blue eyes”.

I think these are key to coming to an intuitive understanding of why the logic works.

---

<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, 7:38pm UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/183 "2011-12-10T19:38:09Z")

</div>

> [@](#):
>
> Originally Posted By Danger Man  
> Guest
> 
> Join Date: Jul 2007  
> I had lots of trouble with this, but suddenly I had a revelation and it all makes sense intuitively for me now.
> 
> I know for sure there are 99 blue-eyed people.
> 
> I know that person #2 knows for sure there are 98 blue-eyed people.
> 
> I know that person #2 knows for sure that person #3 knows for sure there are 97 blue-eyed people.
> 
> I know that person #2 knows for sure that person #3 knows for sure that person #4 knows for sure that there are 96 blue-eyed people.
> 
> All the way to the bottom…
> 
> I know that person #2 knows for sure that… …person #100 knows for sure there is at least one blue-eyed person.
> 
> But this line of reasoning does not work at the bottom before the guru makes his announcement.
> 
> As someone said before, it’s all in the higher level “he knows that he knows that he knows”, that won’t be complete until the guru makes his announcement.

How does he know for sure to start off with that there are exactly 99 people with blue eyes? at the starting point I only knew there were at least one?

---

<div class="post-metadata">

**Author:** ![Kiyoshi](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kiyoshi](https://boards.straightdope.com/u/Kiyoshi)\
**Post date:** [December 10, 2011, 9:06pm UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/184 "2011-12-10T21:06:22Z")

</div>

I’ve read every post in this thread and still don’t get it. I understand how it works if there are 1 or 2 blue-eyed people, but not if there are more than 2.

(Besides, if all of these people were so logical, they would deduce that the rules were ridiculous, and would ignore them, and would all go on the boat. Assuming that they _want_ to leave the island, of course. They might be perfectly happy there.)

---

<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, 9:07pm UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/185 "2011-12-10T21:07:41Z")

</div>

He doesn’t know for sure that there are _exactly_ 99 blues; he knows for sure that there are _at least_ 99 blues (and possibly 100, if he himself is one). And he knows this by looking around and counting the people he sees with blue eyes.

---

<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, 9:51pm UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/186 "2011-12-10T21:51:03Z")

</div>

So if instead the Guru had said, “I see someone with blue eyes and I see someone with brown eyes.” Does everybody eventually get to leave then (except the Guru) or nobody?

---

<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, 9:55pm UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/187 "2011-12-10T21:55:58Z")

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

Without the Guru’s statement you wouldn’t even be able to prove P(1) in the induction proof. What the Guru says is key to the proof. Note that the Guru could’ve said that there are at least K blue-eyes as long as K\<=N, the actual number of blue-eyes, and the same logic works. The Guru sets the induction proof (and the chain of inferences) in motion.

---

<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, 10:17pm UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/188 "2011-12-10T22:17:30Z")

</div>

> [@Ximenean](#):
>
> Maybe I’m missing the point here, but it seems obvious that is possible, if perhaps unlikely, that everybody will guess wrong.

No, you haven’t missed the point. It’s supposed to be obvious. Despite everyone on the entire team knowing 19 out of 20 answers, and everyone knowing that everyone knows 19 answers, and everyone sharing 18 questions in common with everyone else on the team, it’s possible that _the entire team will get everything wrong_.

Why? Because their ignorance stacks up. They can’t change the ignorance of their predecessors, despite knowing the error of their answers. It’s the same as the islander puzzle.

> [@Kiyoshi](#):
>
> I’ve read every post in this thread and still don’t get it. I understand how it works if there are 1 or 2 blue-eyed people, but not if there are more than 2.
> 
> (Besides, if all of these people were so logical, they would deduce that the rules were ridiculous, and would ignore them, and would all go on the boat. Assuming that they _want_ to leave the island, of course. They might be perfectly happy there.)

The reason you can’t go through more than two people is because it’s simply “hard to think about”. The logic doesn’t change, it’s just that that’s usually the limit of our ability to think as others think. “I know” is easily interpreted. “I know you know” is similarly simple. “I know that you know that he knows” is a little tougher, but not much. But once you get to “I know that you know that he knows that she knows,” it starts to get complicated.

---

<div class="post-metadata">

**Author:** ![Mithras](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@Mithras](https://boards.straightdope.com/u/Mithras)\
**Post date:** [December 10, 2011, 10:19pm UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/189 "2011-12-10T22:19:14Z")

</div>

> [@Kiyoshi](#):
>
> I’ve read every post in this thread and still don’t get it. I understand how it works if there are 1 or 2 blue-eyed people, but not if there are more than 2.

If you’re on the island and you see two blue-eyed people and they don’t leave on the second night, what does that mean? Like you, they both understand how it works for one or two people. But they haven’t left because they each see two. Meaning there must be a third. You.

Then, if you see three blue-eyed people and they don’t leave on the third, what does that mean?

---

<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, 10:28pm UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/190 "2011-12-10T22:28:34Z")

</div>

> [@nivlac](#):
>
> Without the Guru’s statement you wouldn’t even be able to prove P(1) in the induction proof. What the Guru says is key to the proof[…]. The Guru sets the induction proof (and the chain of inferences) in motion.

Yes, but you’re describing the “how”, not the “why”. I am not getting, from your post, what explicit information the Guru is providing.

The non-inductive explanations, it seems to me, do answer that question.

---

<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, 10:55pm UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/191 "2011-12-10T22:55:56Z")

</div>

Allow me to expand on my earlier pattern explanation. Imagine four islanders. They’re asked to write down what the person ahead of them is considering possible for the island’s eye pattern. They have to write _all_ the possible patterns that the guy ahead of them wrote. They’re all blue, btw. D starts:

D: Either [1111] or [1110].  
C: Either [1111, 1110] or [1101, 1100]  
B: Either [1111, 1110, 1101, 1100] or [1011, 1010, 1001, 1000]  
A: Either [1111, 1110, 1101, 1100, 1011, 11010, 1001, 1000] or [0111, 0110, 0101, 0100, 0011, 0010, 0001, 0000]

Now here’s the expansion. A reasons that B may have written [0111, 0110, 0101, 0100][0011, 0010, 0001, 0000], which is the case that A’s eyes are brown. B hasn’t written that, but A doesn’t know that. Of those eight, four have the erroneous attribute that B is a brown-eye. He wrote that because he’s ignorant of his own eye color. That set is:

[0011, 0010][0001, 0000]

B had to write that, A reasons, because he thought C might have written it. C didn’t write that, of course, but A doesn’t know the first slot’s wrong and B doesn’t know the second is wrong. B didn’t ever consider this a possibility either. It’s just that A doesn’t know that.

So to recap, A thinks it possible that B thought there’s a chance that C wrote [0011, 0010][0001, 0000]. What does that mean, again? That C thinks D could’ve written 0001 and 0000.

Now here’s the important part. The guru’s announcement says outright that “0000 is not a correct eye pattern”. Once the announcement has been made, A writes that B thinks that C wrote that D thinks either [0011,0010] or [0001, [del]0000[/del]].

This is significant because it narrows a set down to only one possibility. In that case, D would know his eye color because he’s deduced the pattern. When they wake up the next morning and D is still there, C (the one in A’s imagination ,not the real one) can no longer claim to believe D may have ever written [0001, 0000]

Now read what’s remaining in C’s assessment of D’s guess - [0011,0010]. Note that C’s eye color is the same in all patterns. That means C (remember, this is all A’s thoughts, not the thoughts of any actual ‘C’ person) should be able to deduce his eye color on the morning of the first day.

And yet, one the morning of the second day, C is still there. Wait, so that means C never actually assessed [0011, 0010][0001, 0000] at all. A now thinks that B will (possibly) reason this and realize that what C actually wrote could’ve been [0111, 0110][0101, 0100] in the first place. In all four cases, B’s eyes are blue and he can then leave the island on the next night.

But on the morning of the third day, B is still around. It’s then that A realizes that [0111, 0110][0101, 0100] was never written. What was really written way back in the beginning on B’s paper was [1111, 1110, 1101, 1100, 1011, 11010, 1001, 1000], not [0111, 0110, 0101, 0100, 0011, 0010, 0001, 0000]

Of course, everyone thinks in the first person, so they’re all reasoning from the point of view of A. So they’re effectively all character A simultaneously. And they’ve all just learned their eye color. So it’s time to pack up on the fourth night.

---

<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, 11:08pm UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/192 "2011-12-10T23:08:46Z")

</div>

> [@Ximenean](#):
>
> … I am not getting, from your post, what explicit information the Guru is providing.

Huh? It is exactly what’s stated in the puzzle. The information is that there is at least one blue-eye on the island. If the Guru does not provide that information how else will all the islanders know it under all possible scenarios? They’re not allowed to communicate with each other in any way at all. Without the Guru’s announcement, if there’s only one blue-eye on the island he can’t conclude that he has blue eyes on day 1. If there are two blue-eyes neither can conclude that they’re the only blue-eyes on day 2. And so forth. Even without using induction the solution is intuitively straight-forward. Induction just formalizes the solution to work for an arbitrary number of blue-eyes.

---

<div class="post-metadata">

**Author:** ![drewtwo99](https://avatars.discourse-cdn.com/v4/letter/d/d07c76/32.png) [@drewtwo99](https://boards.straightdope.com/u/drewtwo99)\
**Post date:** [December 10, 2011, 11:46pm UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/193 "2011-12-10T23:46:42Z")

</div>

The biggest flaw I can see with this riddle, as originally worded, is that there is no mention of whether or not the Guru is telling the truth, and furthermore, no rule about what the other islander’s know about the Guru’s truthfulness.

They are perfect logicians and therefore must understand the possibility that the guru’s statement is either true or false.

So, am I missing something here or was it just not worded well?

As far as I can tell, no one gets to leave the island because no one knows whether the Guru is telling the truth. It does say at the end that the answer does not rely on anyone lying, but it doesn’t say that the solution relies on the Guru telling the truth either.

I guess I am just nitpicking. Neat riddle though and the explanation and understanding of the solution is so much fun!

---

<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 11, 2011, 12:11am UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/194 "2011-12-11T00:11:29Z")

</div>

> [@nivlac](#):
>
> Huh? It is exactly what’s stated in the puzzle. The information is that there is at least one blue-eye on the island. If the Guru does not provide that information how else will all the islanders know it under all possible scenarios? They’re not allowed to communicate with each other in any way at all. Without the Guru’s announcement, if there’s only one blue-eye on the island he can’t conclude that he has blue eyes on day 1. If there are two blue-eyes neither can conclude that they’re the only blue-eyes on day 2. And so forth. Even without using induction the solution is intuitively straight-forward. Induction just formalizes the solution to work for an arbitrary number of blue-eyes.

For N\>2, the guru isn’t providing the information that there is at least one blue-eye on the island, because all of the islanders already have that information.

---

<div class="post-metadata">

**Author:** ![Fiendish\_Astronaut](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/fiendish_astronaut/32/3295_2.png) [@Fiendish\_Astronaut](https://boards.straightdope.com/u/Fiendish_Astronaut)\
**Post date:** [December 11, 2011, 12:21am UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/195 "2011-12-11T00:21:37Z")

</div>

As far as I can tell the Guru is simply saying “okay people with blue eyes: start counting the nights as from tonight” otherwise they wouldn’t know when to start counting from. Is that right? Otherwise I totally understand the solution.

---

<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 11, 2011, 12:33am UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/196 "2011-12-11T00:33:06Z")

</div>

> [@Fiendish\_Astronaut](#):
>
> As far as I can tell the Guru is simply saying “okay people with blue eyes: start counting the nights as from tonight” otherwise they wouldn’t know when to start counting from. Is that right? Otherwise I totally understand the solution.

No. That has nothing to do with it. The point is that “0000…000” is no longer an option for the highest-level thought chain. Before the announcement, it’s present as an option, as I detailed a few posts ago.

---

<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 11, 2011, 12:34am UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/197 "2011-12-11T00:34:59Z")

</div>

> [@Frylock](#):
>
> For N\>2, the guru isn’t providing the information that there is at least one blue-eye on the island, because all of the islanders already have that information.

True. The actual information he’s providing (even with N\<=2) is that “Now everyone knows that everyone knows that…everyone knows there is a blue islander.” That’s the true catalyst.

---

<div class="post-metadata">

**Author:** ![Topologist](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/topologist/32/3208_2.png) [@Topologist](https://boards.straightdope.com/u/Topologist)\
**Post date:** [December 11, 2011, 12:52am UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/198 "2011-12-11T00:52:36Z")

</div>

> [@Frylock](#):
>
> For N\>2, the guru isn’t providing the information that there is at least one blue-eye on the island, because all of the islanders already have that information.

> [@Fiendish\_Astronaut](#):
>
> As far as I can tell the Guru is simply saying “okay people with blue eyes: start counting the nights as from tonight” otherwise they wouldn’t know when to start counting from. Is that right? Otherwise I totally understand the solution.

Let me try saying in somewhat different words what others (particularly **Chessic Sense** ) have already said: Before the Guru speaks, each islander believes that it is possible that another islander believes it is possible that another islander believes … [iterated an appropriate number of times] that nobody on the island has blue eyes. As long as this belief is out there, the induction can’t start. After the Guru speaks this belief is no longer possible because now everyone knows that everyone knows [to any level you want] that at least one islander has blue eyes. This is what starts the clock on the induction.

---

<div class="post-metadata">

**Author:** ![Indistinguishable](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Indistinguishable](https://boards.straightdope.com/u/Indistinguishable)\
**Post date:** [December 11, 2011, 1:18am UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/199 "2011-12-11T01:18:41Z")

</div>

> [@Frylock](#):
>
> For N\>2, the guru isn’t providing the information that there is at least one blue-eye on the island, because all of the islanders already have that information.

For N \> 1, even.

---

<div class="post-metadata">

**Author:** ![Indistinguishable](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Indistinguishable](https://boards.straightdope.com/u/Indistinguishable)\
**Post date:** [December 11, 2011, 1:20am UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/200 "2011-12-11T01:20:22Z")

</div>

> [@drewtwo99](#):
>
> The biggest flaw I can see with this riddle, as originally worded, is that there is no mention of whether or not the Guru is telling the truth, and furthermore, no rule about what the other islander’s know about the Guru’s truthfulness.
> 
> They are perfect logicians and therefore must understand the possibility that the guru’s statement is either true or false.
> 
> So, am I missing something here or was it just not worded well?

You are correct; as worded, the problem implicitly assumes that it is common knowledge that the Guru speaks only truth.

> [@](#):
>
> I guess I am just nitpicking. Neat riddle though and the explanation and understanding of the solution is so much fun!

On the one hand, I would say you are nitpicking here. On the other hand, there are other, quite similar problems, where I would say this exact kind of nitpickery is terribly important. So maybe I shouldn’t call it nitpickery at all.

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

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