2018 Alien Catastrophe

A little world with the population of 2018 is having a happy life, but that is not for long. Out of nowhere, the alien warriors flew on the sky and release malicious pollen that implant infectious poison that would suffer the victims and if the victim touches someone, he or she would immediately be killed. Everyone on the planet is affected by the pollen and is suffering so much that they would rather die than continue suffering.

An alien descends down from the flying object to meet the people of the world. He would give the cure to last people remaining alive after the game he proposed. He offers the game to the people and the people immediately accepted. So, he commanded the people to form a circle and randomly appointed a person. The person is called Number 1. The person next to him clockwise is called Number 2. Keep the pattern until everyone in the circle have their own number. Then, the alien commands Number 1 to touch the person on his immediate right, which immediately kills that person. After that, the person to the right of the dead person touches the nearest living person to the right. This game will keep progressing until there is only last one alive.

If you are among the population of this little world, which number you should be at to make sure that you will remain alive in this world?


The answer is 31.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Jimmy PrevailLone
Oct 15, 2018

This is adapted from the Josephus Problem, but the original problem, people will take turn killing in the opposite direction.

The problem is defined that if there are N N people in the circle.

Let N = 2 a + l N = 2^a + l where a a is the maximum possible. Then the ( 2 l + 1 ) t h (2l + 1)^{th} person will be alive.

For N = 2018 N = 2018 , N = 2 10 + 994 N = 2^{10} + 994 So, the 2 × 994 + 1 = 198 9 t h 2 \times 994 + 1 = 1989^{th} person will be alive.

But the killing is in the opposite order. So let's try to renumber the person. The 198 9 t h 1989^{th} person in original problem would become 1 + N ( 1989 1 ) = 1 + 2018 1988 = 3 1 t h 1 + N - (1989 - 1) = 1 + 2018 - 1988 = 31^{th} person, which is the answer.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...