Prisoner Hat Riddle Reddit
Number 3 sees only the wall.
Prisoner hat riddle reddit. Four prisoners wearing black and white hats. There are four prisoners. Imagine there is a TV screen they can all see that can display any sort of random number they want.
Using the described strategy we have s - x_i g_i i mod 7 for each prisoner i. Prisoner four hears that and knows that she should be looking for an even number of black hats since one was behind her. The prisoner has two options.
Given that it is possible to save all but two people if the sum of the extra hat and the first persons hat falls within the correct range 1-1001. Let s be the sum of all seven hats mod 7. Each prisoner is wearing a hat that is either black or white.
There are 100 prisoners lining up to go to jail. The prisoners can agree on a strategy before they are given the hats but no communication once the hats are passed out. D sees B C B sees D C and C sees D B.
Out of a total 7 hats 3 black and 4 white one hat is placed on the head of each. The prisoners can see the hats of the people lined up in from of them but they cannot look at the hats behind them or at their own. A countably infinite number of prisoners are placed in a line all facing the same direction so that one prisoner can see all the others the next can see all but the one behind them etc.
However since prisoners 2. In a TED-Ed video Can you solve the prisoner hat riddle. Starting at the back of the line the executioner asks the last prisoner to state the colour of his hat.