Cookmath

Josephus's Sword

Who is left in a counting circle?

For the every-second-person version of the Josephus problem, write n = 2^m + l with 0 ≤ l < 2^m. The safe position is 2l + 1. Try small circles first and look for the pattern.

Open the interactive story to explore examples.