Question 6
N students stand in a circle numbered 1,2,…,N clockwise. Student 1 stays, student 2 leaves, the next stays, the next leaves, and so on, continuing around the shrinking circle until only one remains. Which numbered student survives when (a) N=32; (b) N=2017?

