ok she has given me a homework and i dont even know where to start. this is what it is: Josephus Flavius was a famous jewish historian of the first century at the time of the second temple destruction. During the Jewish-Roman war he got trapped in a cave with a group of 40 soldiers surrounded by Romans. The legend has it that preferring suicide to capture the jews decided to form a circle and proceeding around it to kill every third remaining person until no one was left. Josephus not keen to die quickly found the safe spot in the circle and thus stayed alive.
Find the safe spot in a circle of 40 soldiers 20 soldiers and 10 soldiers. Is there a pattern that can be used to find out the safe spot in a circle of any number?? please help anyone
Edit: One hint i got was that i must include this somehow into a table.