A matter of life or death - Flavius Josephus' math problem