There are 100 prisoners. Each day, the guard chooses one at random and takes it to a room with a light bulb (with on/off switch).
The prisoner can flip the switch or not. Then he returns to his cell.
They don't know when they will be elected again. At any time, a prisoner can declare: 'We've all been in the room at least once.' If it's true, everyone is free.
If it's false, everyone dies. At first the light bulb is off.
What strategy guarantees freedom?
