Modified josephus problem

Assume there are 1159687 people standing in a circle.

First person has a sword, he kills the second person and hands over the the sword to the third person, the third person kills the fourth person and hands over the sword to the fifth....

All the persons do the same until only 1 survives. Who will survive at the end?


The answer is 222223.

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

Hasmik Garyaka
Sep 25, 2017

There is about 10 times this problem was posted in Brilliant.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...