Circle Elimination

People stand in a circle and they count around, and one leaves each time. Predict who is left at the end, then watch.

Tap who will be left

People: 7
Every 2nd leaves

How to play

Tap the person you think will be left at the end. Press "Remove one": counting starts at person 1, and the person at the chosen count leaves. Press "Auto" to play to the end. Use the "−" and "+" buttons to change how many people there are and which count leaves.

Learn more

This is called the Josephus problem, after a story about the first-century historian Flavius Josephus. When every other person leaves, there is a pattern. Write the number of people in binary (using only 0 and 1) and move the leading 1 to the end: that gives the survivor. For 41 people, 101001 becomes 010011, which is person 19. The table below shows the answer for each group size. When every 3rd person (or more) leaves, there is no such simple pattern; a program works the answer out step by step.

Read more about it: A toy box of numbers →