One hundred in a circle
One hundred people, numbered 1 to 100, stand in a circle in that order. Person 1 holds a sword. They eliminate the next living person around the circle (person 2) and hand the sword to the living person after that (person 3), who does the same, and so on around the circle, again and again.
What is the number of the last person standing?
Fractions, decimals with at least 3 significant digits, and expressions such as sqrt(2)/2, e^-1 or pi/4.
Try small circles: 2, 4 and 8 people. What do you notice?
If the number of people is a power of 2, the person holding the sword survives. How many eliminations does it take to bring 100 down to a power of 2, and who holds the sword at that moment?
h
s Shown after a correct answer. Revealing it first marks the problem as seen, not solved.
Idea. With a power of 2 people, the person who starts with the sword survives. So remove people until the number left is a power of 2, and see who holds the sword then.
Step 1: powers of 2. With people and person 1 holding the sword, one trip around the circle eliminates every second person: . The last of them is eliminated by person , who hands the sword back to person 1. Now people remain and person 1 starts again. Repeating, person 1 is the survivor.
Step 2: reach 64. The largest power of 2 below 100 is . After 36 eliminations, those of persons , there are 64 people left and the sword is in the hands of person 73.
Step 3. From here the game is a circle of 64 people starting with person 73, so by Step 1 person 73 survives.
In general. Write with . The survivor is . For this gives .