Professional Documents
Culture Documents
Riddle: The Warden of A Circular Jail Is Extremely Hyper One Day So He Begins Running Around Opening
Riddle: The Warden of A Circular Jail Is Extremely Hyper One Day So He Begins Running Around Opening
Riddle: The Warden of A Circular Jail Is Extremely Hyper One Day So He Begins Running Around Opening
cells. The jail has 100 cells numbered from 1 to 100. He runs in a circle and opens all of the cells. Next
he runs around and closes every 2nd cell (starting with cell 2, 4, 6 , etc.). If a cell is open he closes it
and if a cell is closed he opens it. When he finishes running by all 100 cells he opens/closes every 3rd
cell (starting with 3, 6, 9, 12 etc.), then every 4th cell (starting with 4, 8, 12, etc.) and so on. He does
this until he goes around and only changes the 100th cell.
Show Answer
Answer: The cells 1, 4, 9, 16, 25, 36, 49, 64, 81, and 100 will be open. Only the cells that have two of
the same factors (4 = 2 * 2) will be open because they are opened and closed the same number of
times (except 1 which is just opened). Since they have the same factor twice their number of factors is
odd.