Josephus Problem

Let’s visualize a solution to Josephus problem. Consider a case of 100 people in circle with person 1 as the starting point, number to be skipped as 2, and elimination in clockwise direction.

Josephus_2

So, the survivor is number 73. 

Sheldon would be proud.

( ͡° ͜ʖ ͡°)

– Pradeep 

 

Leave a comment