General
The Josephus Problem: 5 People in a Circle, Who Is the Last Survivor?
In the Josephus problem: 5 people stand in a circle numbered 1–5; every 2nd person is eliminated (k=2) starting the count from person 1. Which person survives?
People also ask
What is the answer to the Josephus problem riddle with 5 people?
Person number 3 is the last survivor. Counting from 1 with k=2, you eliminate 2, then 4, then 1, then 5 — leaving 3.
How do you solve the Josephus problem step by step?
Stand 5 people in a circle numbered 1 to 5. Starting at 1, skip one and eliminate every 2nd person: out goes 2, 4, 1, 5. The person left is number 3.
What is the Josephus problem?
It's a famous counting-out puzzle where people in a circle are eliminated at a fixed interval until one survivor remains. With 5 people and k=2, the survivor is position 3.