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

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

</div>

> [@SciFiSam](#):
>
> Why the 100 days? The puzzle doesn’t say that only one person can leave a day.

All 100 leave on the 100th day. This is because only then do any of them know that he himself (or she herself) has blue eyes–and on that day, _all_ of them know this.

In other news:

I know how to say what new information people on the island have after the Guru speaks in the case where only _two_ have blue eyes. (Namely, the new information is: “Now the other blue eyed guy knows that at least one person has blue eyes.”) But I haven’t worked out how to formulate the corresponding piece of new information in the 100-blue-eyed-people case much less the 3-blue-eyed-people case. Just keeping you posted… 😛

---

<div class="post-metadata">

**Author:** ![leahcim](https://avatars.discourse-cdn.com/v4/letter/l/b4bc9f/32.png) [@leahcim](https://boards.straightdope.com/u/leahcim)\
**Post date:** [December 8, 2011, 11:52pm UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/22 "2011-12-08T23:52:57Z")

</div>

> [@SciFiSam](#):
>
> Why the 100 days? The puzzle doesn’t say that only one person can leave a day.

It’s not one person leaves per day, no one leaves until the 100th day, when all 100 blue-eyed people leave. On that day every blue-eyed person simultaneously says, “I have inferred that there are at least 100 blue-eyed people on the island, and I only see 99, so the 100th must be me”.

---

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

</div>

> [@](#):
>
> I know how to say what new information people on the island have after the Guru speaks in the case where only two have blue eyes. (Namely, the new information is: “Now the other blue eyed guy knows that at least one person has blue eyes.”) But I haven’t worked out how to formulate the corresponding piece of new information in the 100-blue-eyed-people case much less the 3-blue-eyed-people case. Just keeping you posted…

It’s similar, but it gets pretty wordy. For 3 blue-eyed folks, it’d go something like “Now the other blues know that the other blues know that at least one person has blue eyes”. For 4 blues, it’d be “Now the other blues know that the other blues know that the other blues know that at least one person has blue eyes”. And so on.

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. Quite Easily Done.

---

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

</div>

It’s a lot simpler than all the algebra and stuff implies.

If 100 islanders have blue eyes, everyone with blue eyes sees 99 islanders with blue eyes. If, on the 99th day nobody has left the island, everyone who only sees 99 pairs of blue eyes realizes there are in fact 100 pairs of blue eyes, and now knows their own eye color. They may all leave the island at the same time.

---

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

</div>

Actually, now that I think about it, the puzzle doesn’t seem to work. If there are 2 people with blue eyes, and each day the guru says “I see someone with blue eyes,” how do either of the two people with blue eyes know whether the guru sees the same person they saw yesterday? Saying “I see someone with blue eyes” on Tuesday doesn’t give any more information than it did when you said it on Monday, because you could be seeing the same person!

---

<div class="post-metadata">

**Author:** ![MichaelEmouse](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/michaelemouse/32/101_2.png) [@MichaelEmouse](https://boards.straightdope.com/u/MichaelEmouse)\
**Post date:** [December 9, 2011, 12:16am UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/26 "2011-12-09T00:16:57Z")

</div>

> [@leahcim](#):
>
> It’s not one person leaves per day, no one leaves until the 100th day, when all 100 blue-eyed people leave. On that day every blue-eyed person simultaneously says, “I have inferred that there are at least 100 blue-eyed people on the island, and I only see 99, so the 100th must be me”.

Why could a blue-eyed person think this but not a brown-eyed person?

---

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

</div>

Here’s a similar (in fact, identical, except in wording) problem, which may be instructive:

There is a certain archipelago, consisting of 2^3 many islands, arranged into the vertices of a 3-dimensional cube. There are also bridges between islands, corresponding to the edges of this cube (so each island has 3 bridges out of it).

On each island, there is a sequence of bits, specifying its coordinates on this cube: one island is (0, 0, 0), it has three bridges to the islands (1, 0, 0), (0, 1, 0), and (0, 0, 1), each of which has two further bridges out of it corresponding to flipping further bits, and so on.

At each end of each bridge, there is an islander assigned to guard over that particular bridge. [For what it’s worth, the islanders speak an odd language in which the term for “guards over a bridge on the side of it corresponding to the bit 1” is “has blue eyes” and the term for “guards over a bridge on the side of it corresponding to the bit 0” is “has non-blue eyes”]

There is a certain ritual according as to which bridges are sometimes destroyed and their guards commit suicide (or, as the islanders euphemistically refer to it, “go on a ferry ride”). Specifically, every morning, the two guards of each bridge look out at the other guards on their own island and report what they see. If they report the same pattern of live and dead guards to each other, all is well; otherwise, if they report differing patterns, they destroy their bridge and commit suicide that midnight.

The islands all exist in perfect harmony, with no bridge destructions, for many years.

But one day, The Guru comes to town, takes a look at island (0, 0, 0), and decides he doesn’t care for it. He destroys the island and all the bridges out of it; that night, all the guards to those bridges commit suicide, no longer having a bridge to watch over.

What happens from that point on? In particular, what happens to island (1, 1, 1)?

Well, go ahead and work it out on paper if you like. It’s easy enough. You don’t have to worry about who knows what when; there’s nothing about knowledge here. There’s just the mechanical bridge-suicide rules, as given above. See where they take you.

---

<div class="post-metadata">

**Author:** ![Giles](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/giles/32/60_2.png) [@Giles](https://boards.straightdope.com/u/Giles)\
**Post date:** [December 9, 2011, 12:27am UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/28 "2011-12-09T00:27:30Z")

</div>

> [@MichaelEmouse](#):
>
> Why could a blue-eyed person think this but not a brown-eyed person?

Because the brown-eyed person sees 100 people with blue eyes, not 99 people with blue eyes.

---

<div class="post-metadata">

**Author:** ![MichaelEmouse](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/michaelemouse/32/101_2.png) [@MichaelEmouse](https://boards.straightdope.com/u/MichaelEmouse)\
**Post date:** [December 9, 2011, 12:36am UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/29 "2011-12-09T00:36:20Z")

</div>

> [@Giles](#):
>
> Because the brown-eyed person sees 100 people with blue eyes, not 99 people with blue eyes.

You’re right, thanks.

---

<div class="post-metadata">

**Author:** ![Zeriel](https://avatars.discourse-cdn.com/v4/letter/z/58956e/32.png) [@Zeriel](https://boards.straightdope.com/u/Zeriel)\
**Post date:** [December 9, 2011, 1:10am UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/30 "2011-12-09T01:10:13Z")

</div>

> [@Mosier](#):
>
> Actually, now that I think about it, the puzzle doesn’t seem to work. If there are 2 people with blue eyes, and each day the guru says “I see someone with blue eyes,” how do either of the two people with blue eyes know whether the guru sees the same person they saw yesterday? Saying “I see someone with blue eyes” on Tuesday doesn’t give any more information than it did when you said it on Monday, because you could be seeing the same person!

The guru only says it once, not once per day.

The guru’s statement’s only function is to catalyze the mathematical induction that one uses to logic their way out of it. Without the guru’s statement, the 1 Blue Eyes/100 Brown Eyes version of the problem cannot be solved, and that version of the problem bootstraps the solution for N Blue-Eyed People.

---

<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 9, 2011, 2:43am UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/31 "2011-12-09T02:43:41Z")

</div>

Assume there are 100 people with blue eyes and 100 with not-blue eyes. Blue eyed people know there are either 99 or 100 blue eyed people. Non-blue eyed people know there are either 100 or 101 blue eyed people.

Literally everyone knows that nobody can leave the island on the first, second, or third day. Indeed nobody can possibly leave the island until day 99 at minimum. So why does the problem require the islanders to wait 99 days, when literally no information is gained between day 1 and day 98?

---

<div class="post-metadata">

**Author:** ![wellanuff](https://avatars.discourse-cdn.com/v4/letter/w/57b2e6/32.png) [@wellanuff](https://boards.straightdope.com/u/wellanuff)\
**Post date:** [December 9, 2011, 3:01am UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/32 "2011-12-09T03:01:37Z")

</div>

> [@Zeriel](#):
>
> As far as I understand it, the solution involves indirect communication. Break it down into simpler cases:
> 
> **Case A** : Consider the case of an island with 1 blue-eyed person and 100 brown-eyed people. When the Guru speaks, that one blue eyed person can leave that night–he can’t see any blue-eyed people, so the Guru MUST be talking about him. Meanwhile, the brown-eyed people (who can each see one person with blue eyes) are following case B’s logic.
> 
> **Case B** : Consider the case of an island with 2 blue-eyed people and 100 brown-eyed people. When the guru speaks, each blue-eyed person can see one blue-eyed person. Each can think about the other “If he doesn’t leave tonight, then I have blue eyes and he doesn’t know if the Guru is talking about only me. When I don’t leave, he’ll know he has blue eyes too (because I’m following the same logic) and we’ll both leave on day two.” Meanwhile, the brown-eyed people (who can each see two people with blue eyes) are following case C’s logic.
> 
> **Case C** : Consider the case of an island with 3 blue-eyed people and 100 brown-eyed people. When the guru speaks, each blue-eyed person can see two blue-eyed people. Each will think “If I don’t have blue eyes, those two will follow the process in scenario B–if they DON’T leave on day two, I must also have blue eyes. We can all leave on day 3.”
> 
> –
> 
> So all 100 blue-eyed people leave on Day 100.

Except that it seems to me in what we might call Case D with 4 people (and subsequent cases with even more people), Case B can no longer be applied and used as a basis for action in Case C, and therefore Case C could not be used in D.

In other words, with four people, when the guru speaks, each blue-eyed person can see three blue-eyed people. Each will think “If I don’t have blue eyes, those three will follow the process in case C --if they DON’T leave on day three, I must also have blue eyes. We can all leave on day 4.”

But this seems faulty, because the decision to not leave on day three would have been based on case C, which in turn would be based on B, but B does not apply because everyone can see that all of the others can also see multiple blue-eyed people and therefore could not make an inference about what any individual’s failure to leave on the first night might mean.

---

<div class="post-metadata">

**Author:** ![Giles](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/giles/32/60_2.png) [@Giles](https://boards.straightdope.com/u/Giles)\
**Post date:** [December 9, 2011, 3:09am UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/33 "2011-12-09T03:09:25Z")

</div>

> [@Mosier](#):
>
> So why does the problem require the islanders to wait 99 days, when literally no information is gained between day 1 and day 98?

Information is gained from other blue-eyed people not leaving.

---

<div class="post-metadata">

**Author:** ![wellanuff](https://avatars.discourse-cdn.com/v4/letter/w/57b2e6/32.png) [@wellanuff](https://boards.straightdope.com/u/wellanuff)\
**Post date:** [December 9, 2011, 3:38am UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/34 "2011-12-09T03:38:30Z")

</div>

Another way to approach the difficulty I have with this is, why is the following a given (as it seems to be in some of the explanations):

“n people with blue eyes will leave on day n”

I can see how this works for n = 1, 2 or 3, but not why it is true for the general case. Solutions based on this seem to be assuming something that has not been proven.

---

<div class="post-metadata">

**Author:** ![Isamu](https://avatars.discourse-cdn.com/v4/letter/i/7c8e57/32.png) [@Isamu](https://boards.straightdope.com/u/Isamu)\
**Post date:** [December 9, 2011, 3:59am UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/35 "2011-12-09T03:59:27Z")

</div>

**What is the quantified piece of information that the Guru provides that each person did not already have?**

I don’t know the answer to this. The Guru only verbalized something that everyone already knew since they are all perfect logicians.

---

<div class="post-metadata">

**Author:** ![Giles](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/giles/32/60_2.png) [@Giles](https://boards.straightdope.com/u/Giles)\
**Post date:** [December 9, 2011, 3:59am UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/36 "2011-12-09T03:59:41Z")

</div>

> [@wellanuff](#):
>
> I can see how this works for n = 1, 2 or 3, but not why it is true for the general case. Solutions based on this seem to be assuming something that has not been proven.

Yes, I think that’s the real problem: 100 people follow exactly the same steps of logical deduction, and know that the other 99 people are thinking exactly the same way, all the time not communicating with each other. It assumes logical deduction that’s just too perfect.

---

<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 9, 2011, 4:04am UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/37 "2011-12-09T04:04:28Z")

</div>

> [@Giles](#):
>
> Information is gained from other blue-eyed people not leaving.

What information, though? That there are at least _n_ blue-eyed people? But they already know that – they can see them.

---

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

</div>

> [@matt\_mcl](#):
>
> What information, though? That there are at least _n_ blue-eyed people? But they already know that – they can see them.

Information about who knows that who knows that who knows that who knows that… who knows that there at least n blue-eyed people.

You might say “Well, everyone knows that everyone knows that everyone knows that… everyone knows that there are at least n-blued eye people, from the start!”.

You would be wrong.

Part of the reason I gave my archipelago rephrasing is because it seems to make clear for some people what is hard for them to see in the information/knowledge based account. The things the islanders at some particular island all know are the things which are true at every island within 1 bridge of it [since every particular islander can’t tell their own eye color, so they’re not sure whether they’re on this island or the one across their bridge]. The things everyone at an island knows that everyone knows are the things which are true at every island within 2 bridges of it. The things everyone at an island knows that everyone knows that everyone knows are the things which are true within 3 bridges of it. Etc. [And, of course, the use of a 3-dimensional cube, with 3 bits to each island, is arbitrary; it might as well be 100]

---

<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 9, 2011, 4:15am UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/39 "2011-12-09T04:15:51Z")

</div>

Okay, here’s what is confusing me: I can read and mull over why the explanation above is _right_.

What I don’t understand is why the common-sense version (the guru’s statement is useless because everyone already knows there’s at least one blue-eyed person) is _wrong._ What am I missing that I don’t get the difference between the guru saying “There is at least one person with blue eyes” and being able to _see_ that there’s at least one person with blue eyes? Why does speaking the sentence out loud make a difference?

---

<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 9, 2011, 4:55am UTC](https://boards.straightdope.com/t/blue-eyes-logic-puzzle/605531/40 "2011-12-09T04:55:56Z")

</div>

> [@matt\_mcl](#):
>
> Okay, here’s what is confusing me: I can read and mull over why the explanation above is _right_.
> 
> What I don’t understand is why the common-sense version (the guru’s statement is useless because everyone already knows there’s at least one blue-eyed person) is _wrong._ What am I missing that I don’t get the difference between the guru saying “There is at least one person with blue eyes” and being able to _see_ that there’s at least one person with blue eyes? Why does speaking the sentence out loud make a difference?

If I’m one of the blue eyed guys, when the guru speaks, I now know something about what all the _other_ blue eyed guys know.

Think about the case where there are just two blue eyed guys. Before the guru speaks, all I know is that there is at least one guy with blue eyes. I don’t know that the other blue eyed guy knows that. But after the guru speaks, I _do_ know the other blue eyed guy knows it. So my information has changed.

Maybe “my information has changed” isn’t exactly the right thing to say–I haven’t learned anything about how things were before the guru spoke. Rahter, the guru’s speaking has changed the way things are _now_.

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

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