Random Variable
Lifer
Say you have n prisoners in n individual cells. Beginning with all the cells unlocked, you turn the key of every other cell. You then go back to cell #1 and turn the key of every third cell. You repeat this process until you've turned the key of every nth cell (which in effect means turining the key of the last cell). Keep in mind that turing a key may unlock a cell or it may lock a cell.
There's a pattern that would enable you to know right away which prisoners would have unlocked cells at the end of this process. I only noticed the pattern after writing a program in Maple. I'll post the answer in a little while if nobody figures it out.
There's a pattern that would enable you to know right away which prisoners would have unlocked cells at the end of this process. I only noticed the pattern after writing a program in Maple. I'll post the answer in a little while if nobody figures it out.