How Many PRISONERS Are Free?

Level pending

There are 50 prisoners in a row of locked cells. With the return of the King from the Crusades, a partial amnesty is declared and it works like this. When the prisoners are still asleep, the jailer walks past the cells 50 times, each time walking from left to right. On the first pass, he turns the lock in every cell (so that every cell is now open). On the second pass he turns the lock on every second cell (meaning that these cells are now locked again). On the third pass, he turns the lock on every third cell, and so on. In general, on thekth pass, he turns the lock on every kth cell. The question is: how many cells are unlocked at the end of the process so that the prisoner is free to go?


The answer is 7.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

0 solutions

No explanations have been posted yet. Check back later!

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...