SEARCH HOME
Math CentralQuandaries & Queries

search

Question from Jim, a parent:

An evil Mayan emperor decides to make an example of 1,000 prisoners. He stands them in a circle with numbers one to a thousand marked on their shirts. He then starts counting: "one in, two, in three out" The third man is immediately executed. This continues round and round and round the circle. While the number in the circle shrinks, every third prisoner is pushed out and executed. And it continues even when there are only two prisoners left alive. What number is on the last prisoner's shirt?

Is there a general rule for finding the last man without actually doing the problem mechanically or with a computer. Mechanically can involve you in too many mistakes. With a computer, well they didn't have one at the time of the Mayan civilization.

Is there a general rule if it were, say, every seventh prisoner?

This problem has had me stumped for more than 40 years. Please help!

Rgds

Jim

Jim,

This is known as the Josephus problem.
For history and a solution outline, see
http://en.wikipedia.org/wiki/Josephus_problem

Victoria

About Math Central
 

 


Math Central is supported by the University of Regina and The Pacific Institute for the Mathematical Sciences.
Quandaries & Queries page Home page University of Regina PIMS