Interview Prep

Three Logicians Bar Puzzle: Answer [Solved]

Three logicians bar puzzle: three men at a dark bar counter while the bartender asks if they all want a drink

Answer: In the three logicians bar puzzle, yes, all three want a drink. The third logician can say yes because the first two said “I don’t know” instead of “No”. A “No” from either would have meant that person did not want a drink, so their “I don’t know” tells the third that both of them do. He knows his own answer too.

The three logicians bar puzzle is a classic logic puzzle that fits in four short lines, with no numbers, no weighing, and no trick objects. Three logicians walk into a bar, the bartender asks one question, and the third answers it with complete certainty after hearing two words from each friend. The puzzle works because of what the first two did not say.

The Question

Here is the puzzle as it appears in logic puzzle collections:

Three logicians walk into a bar. The bartender asks, “Do you all want a drink?” The first logician says, “I don’t know.” The second logician says, “I don’t know.” The third logician says, “Yes.” How can the third logician be so sure?

Every logician here is perfectly logical and answers honestly. Nobody is joking, lying, or guessing. The third logician is not taking a chance. He has worked out the answer from the two replies he heard.

The Three Logicians Bar Puzzle, Step by Step

The whole solution turns on one idea: when the question is about everyone, saying “I don’t know” is itself an answer. It rules out one possibility, and each logician uses that ruled-out possibility to narrow the answer down.

Step 1: Notice what the bartender actually asked

The bartender did not ask each logician what he wanted. He asked the group one question: “Do you all want a drink?” For the answer to be yes, all three must want a drink. If even one does not, the true answer is no.

That detail matters, because each logician knows one piece of the answer for certain: his own preference. If a logician does not want a drink, he already knows the answer for the group is no.

Step 2: Read the first logician’s “I don’t know”

The first logician says, “I don’t know.” Think about what he would have said if he did not want a drink. His own “no” would be enough to make the answer no for the whole group, so he would have said “No”, straight away.

He did not say “No”. The only reason a perfectly logical person says “I don’t know” is that he does want a drink, but he cannot speak for the other two. His answer is a coded message: I want a drink, and I am waiting to hear about the rest of you.

Step 3: Read the second logician’s “I don’t know”

The second logician heard the first say “I don’t know”, so he now knows the first logician wants a drink. He also knows his own preference. If he did not want a drink, the answer for the group would be no, and he would say “No”.

He also says “I don’t know”. So the second logician wants a drink too, and the only thing he is unsure about is the third logician. Two “I don’t know” answers have now told the room that the first two both want a drink.

Step 4: The third logician puts it together

The third logician heard both replies. He knows the first wants a drink, because the first did not say “No”. He knows the second wants a drink, for the same reason. He knows his own preference too: he wants a drink, so all three want one, and the answer is yes.

If the third logician had not wanted a drink, he would have said “No”, because his own preference alone would have settled the question. His “Yes” is only possible because all three pieces line up.

Reply heardWhat it provesWhat is still unknown
First logician: “I don’t know”The first logician wants a drinkSecond and third logicians
Second logician: “I don’t know”The second logician wants a drinkThird logician only
Third logician: “Yes”All three want a drinkNothing

Why “I Don’t Know” Is the Whole Puzzle

The trick is that an honest “I don’t know” carries information. A logician only says it when he cannot settle the question from what he knows. Since each logician knows his own preference, the one case he could settle alone is where he does not want a drink. So every “I don’t know” rules out that case in public, where the next logician can use it.

The same idea powers the blue-eyed islanders puzzle, where each islander learns from the days that pass without anyone leaving. Information comes from what people do not say.

The chain only works because the logicians answer in order, each hearing the earlier answers first. If all three answered at the same time, nobody could learn anything from anybody else.

The Wording Trap: “All” Versus “Anyone”

Change one word and the puzzle falls apart. Suppose he had asked, “Does anyone want a drink?” Then the first logician who wanted a drink could answer “Yes” at once, because one yes is enough. The chain of “I don’t know” answers would never start.

The puzzle needs the word “all”, because “all” is what makes each logician’s own preference decisive for a “No” answer. Candidates who say “the third one guessed” miss the point. He did not guess, and he did not read minds. He read the question, and he read the two answers.

The Five Logicians Version

There is a longer version, told by Will Shortz on NPR, with five logicians and coffee instead of drinks. A waitress asks, “Does everyone want coffee?” The first four each say “I don’t know”, and the fifth says “No”. Who gets coffee?

The first four each said “I don’t know”, so all four want coffee. The fifth logician heard those answers, so he knows the first four want coffee. If he wanted coffee himself, the answer would be yes. He said “No”, so he is the one who does not want it. Coffee goes to the first four, and the fifth gets nothing.

The five-logician version is a good interview follow-up, because it checks whether the candidate understood the mechanism or only memorised the three-logician answer. The mechanism is the same: a “No” would have come from anyone who did not want coffee.

What the Interviewer Is Testing in the Three Logicians Bar Puzzle

First, the interviewer is testing whether you can reason about what other people know. The puzzle is not about drinks. It is about common knowledge: what each person knows, what each person knows about what the others know, and how a public answer changes what everyone knows.

Second, the interviewer is testing whether you notice that silence is information. Most candidates focus on the word “Yes” at the end. The strong ones focus on the two “I don’t know” answers in the middle, because those do the work.

Third, the interviewer is testing whether you read the question exactly as asked. “Do you all want a drink?” is a different question from “Does anyone want a drink?”, and the whole solution depends on the difference. Misreading one word in a problem statement is the most common way a good candidate loses the thread.

Finally, the interviewer is testing how you handle the follow-up. Change the number of logicians to five, or change the last answer to “No”, and the same idea answers on the spot. If you understood the mechanism, the variant takes ten seconds. If you only memorised the answer, it stops you cold.

Frequently Asked Questions

Could the first logician have said “I don’t know” even if he did not want a drink?

No. If he did not want a drink, he would know the answer is no, because “all” needs every logician to want one. “I don’t know” is only honest when he wants a drink but cannot speak for the others.

Is the third logician guessing?

No. By the time he speaks, the two earlier answers have proved that the first two want a drink, and he knows his own preference. His “Yes” follows from those three facts.

What if the bartender asked “Does anyone want a drink?” instead?

Then the puzzle changes completely. The first logician who wants a drink could say “Yes” at once, because one yes is enough for “anyone”. The chain of “I don’t know” answers would not happen.

Try Another Logic Puzzle

If you liked the common-knowledge reasoning in the three logicians bar puzzle, try the blue-eyed islanders puzzle, where a whole island works out who has blue eyes from a single public statement, or the two doors riddle, where one question finds the safe door. For a single signal passed between prisoners, try the 100 prisoners and 1 light bulb puzzle.

Enjoying this? Add StudyFromNotes as a preferred source on Google to see our latest notes and updates more often:

Leave a Reply

Your email address will not be published. Required fields are marked *