The Josephus Problem, named after the Jewish historian Flavius Josephus, is derived from a story during the Jewish-Roman War. Josephus and 40 of his soldiers found themselves trapped in a cave by Roman soldiers. Rather than surrender, they chose mass suicide, forming a circle. Every third soldier ki...