You are the captain of a sailing vessel and you and your crew have been captured by pirates. The pirate captain has all of you standing in a circle on the deck of his ship trying to decide in which order you should walk the plank. Eventually he decides on the following method:
(a) The pirate captain asks you to pick a number N.
(b) The first person to walk the plank will be the Nth person
(starting from you).
(c) The captain will then continue around the circle forcing every Nth
person to walk the plank.
(d) Once there is only one person left, that person will be given
freedom.
For example: The crew consists of: Andrew, Brenda, Craig, Deidre,
Edward, Felicity, Greg and Harriet. Andrew selects N=2. The crew will
walk the plank in the order: Brenda, Deidre, Felicity, Harriet, Craig,
Greg, Edward. Andrew will be given freedom.