ChallengeSuperchallenge
Challenge · Superchallenge problem
prisoners in the dungeon stand in a circle, numbered to . Starting with prisoner , every second prisoner still standing is released, going around the circle until one remains. What is the number of the last prisoner?