GATE Computer ScienceHardGATE CS (PYQ pattern)

100 people stand in a circle numbered 1 to 100. Starting with person 1, every second person still in the circle is eliminated (1 goes first, then 3, 5, …), continuing round until one remains. Which number survives?

  1. A. 73
  2. B. 100
  3. C. 72
  4. D. 64

Correct answer: C. 72

With 2 eliminated first the survivor is J(100) = 2·(100 − 64) + 1 = 73. Eliminating 1 first is the same game started one place earlier, so every label shifts down by 1: survivor 73 − 1 = 72.

More Discrete Mathematics questions

Exams that ask this topic