# 3 Men and 5 Hats – Brainteaser

### Interesting Brainteaser

3 innocent prisoners were sitting in a jail. One day, the cruel jailer takes them out and places them in a line on three chairs, in such a way that man C can see both man A and man B, man B can see only man A, and man A can see none of the other men.

The jailer shows them 5 hats, 2 of which are black and 3 of which are white. After this, he blindfolds the men, places one hat on each of their heads, and removes the blindfolds again. The jailer tells his three prisoners that if one of them is able to determine the color of his hat within one minute, all of them are released. Otherwise, they will all be executed. None of the prisoners can see his own hat, and all are intelligent. After 59 seconds, man A shouts out the (correct) color of his hat!

What is the color of man A‘s hat, and how does he know?

#### Vineet Patawari

Hi, I'm Vineet Patawari. I fell in love with numbers after being scared of them for quite some time. Now, I'm here to make you feel comfortable with numbers and help you get rid of Math Phobia!

## 20 thoughts to “3 Men and 5 Hats – Brainteaser”

1. suhaaaaan dont you study maths

2. i know the thing may be A must have peeped his eyes through the blind folding cloth

3. Sandeep baheti says:

There are only 2 black hats. If both A and B were wearing black hats, then C would know for sure that he was wearing white.
But since C could not guess the colour, it means that not both of A and B are wearing black.
This means,
Either, one among A and B is wearing black and the other is wearing white
Or, both A and B are wearing white.

Now, if A was wearing black, B would know for sure that he was wearing white (as both A and B can’t be wearing black).

But since, B did not have an answer, it means A was not wearing black.

Therefore, A was wearing white hat, which he correctly answered.

4. FAHIM says:

A IS HOLDING BLACK

POSIBLITIES

A IS HOLDING WHITE BCOZ

A- B C
W W ======IN THIS C CAN PREDICT SO NOT POSIBLE
W B IN THIS C CANT PREDICT BUT B CAN AS C IS SILENT AND A IS HAVING WHITE

SO B OR C CAN PREDICT ONLY WHEN A IS HAVING WHITE SINCE THEY DID NOT RESPOND HENCE A WILL COME TO KNOW THAT HE IS WEARING WHITE

1. hari says:

brilliant!!!!!!!!!!!!!!!!

5. Since “C” can see the users “A” & “B”, if the hat of ‘A’ & ‘B’ is white, he can say that the hat which he wears is Black as there is only two white hat and the rest three is black. When “C” confirms that he is wearing black, “A” & B can be sure that they are wearing White hat. As stated, all three are intelligent. đź™‚

6. rAVINDER says:

Though A cannot see but can very well ask B about the colour of his hat as there is not such condition in the question that they cannot ask each other. B’s replies is white. Hence A is wearing white. Answer is WHITE.

7. ROHIT says:

A is wearing white hat
as B and C cant predict becouse
C sees A AND B wearing white and dont know about his colour
B sees only A wearing white cant predict his colour’
so A can predict that he wear a white hat

8. Very Simple!!
A will see B’s hat.
B will see C’s hat
C will see A’s hat

1. Deepak says:

kya baat kar diye cherry bhai……..!!!!

9. Govind K. Bahroos says:

As informed in the puzzle â€śall are intelligentâ€ť the possibilities are as follows:
A B C
Black Black White C would have declared that he is wearing White
Black White ?(B/W) If C remains silent B can say he is wearing white
White White ?(B/W) C & B are silent hence A says he is wearing white
White Black ?(B/W)
Hence A is wearing white hat.

10. Deepak says:

A is wearing white hat…..this is because if C didnt commented dat means the other two were weraing white hats which confused him…..
Also if A was wearing black hat B could have easily deduced dat he is wearing a white hat based on C’s answer but he himself was confused…….
Due to these reasons A waited till 59 seconds so he could make sure if anybody can comment and answered dat he is wearing a white hat.

11. Flamey says:

If it is BB for A&B then C’s hat must be White. C didn’t speak coz A&B have either WW or WB or BW. Now A & B are left with below choices.
A B
W W
W B
B W
IF A is holding Black hat then B’s hat must be White. B Didn’t speak coz A is holding White hat and B may have either White or block.
Now the choice left is A having White hat.

12. Shalin.. there are no red hats in the question. đź™‚

13. abhiron bhattacharya says:

C won’t know his hat if he sees A & B either wearing both white or one white one black
now B khows C didn.t answer so he is sure that the colour of his hat & A’s is both white or 1 blck 1 white
now B won’t b able to answer if he sees the colour of a’s hat to b white
this A khows

14. winx says:

C dint say nythng ths means A n B hav hat combinations as WW or WB or BW
now B dint say nythng ths means A is nt wearng black…….cz A==Black means his hat has to b White.This shows A wearng White
Thus A’s hat==White:)

15. Mohit says:

Shalin.. there are no red hats in the question. đź™‚

16. shalin says:

HES WEARING RED HAT.
IF C SEES A & B WEARING BLACK HATS , HE COULD SAY HE IS WEARING RED HAT. HE DOESNOT SAY. SO A & B BOTH ARE WEARING RED HATS OR ONE OF THEM HAS A BLACK HAT.
IF B SEES A WEARING A BLACK HAT , HE CAN SAY THAT HE HAS A RED HAT. BUT EVEN HE IS NOT ABLE TO DECIDE.
SO A MUST BE WEARING A RED HAT.

1. suhaan says:

buddy bhai, where r u bringing this red hat from???

1. what an idea sirji