100 prisoners are stuck in the prison in solitary cells. The warden of the prison got bored one day and offered them a challenge. He will put one prisoner per day, selected at random (a prisoner can be selected more than once), into a special room with a light bulb and a switch which controls the bulb. No other prisoners can see or control the light bulb. The prisoner in the special room can either turn on the bulb, turn off the bulb or do nothing. On any day, the prisoners can stop this process and say "Every prisoner has been in the special room at least once". If that happens to be true, all the prisoners will be set free. If it is false, then all the prisoners will be executed. The prisoners are given some time to discuss and figure out a solution. How do they ensure they all go free?
The king of Octopuses has servants who have six, seven or eight legs. The distinguishing characteristics of the servants is that the one with seven legs always lie but the one with either six or eight legs speak the truth always.
One day, four servants meet and converse:
The black one says, 'We have 28 legs altogether.'
The green one says, 'We have 27 legs altogether.'
The yellow one says, 'We have 26 legs altogether.'
The red one says, 'We have 25 legs altogether.'
Can you identify the colour of the servant who is speaking the truth?
What is the four-digit number in which the first digit is one-third the second, the third is the sum of the first two, and the last is three times the second?
You are confined in a room and given two metal rods. Out of these two rods, one is magnet and the other is the iron rod. They look starkly similar. You don't have any other metal object in the room.
Its something that each of us devours,
Not just us but birds, beats, trees, and flowers,
Frets iron and nibbles steel,
Toil hard stones to meal,
Exterminates king, collapse town,
And blows the mountains down.