Impeesa
Explorer
Zander said:Here's a very tough one:
1000 prisoners are arranged in a big circle and chained to numbered posts from 1 to 1000 such that prisoner #1 is next to prisoner #1000. Their evil captor decides he will execute 999 of them. He begins by killing #1, then skips a prisoner and kills #3, then skips a prisoner and kills #5 and so on. When he's come full circle he continues by always skipping one surviving prisoner and killing the next one. In other words, corpses are removed and no longer count. Surviving prisoners are not moved: they remain chained to the post they started with. What will be the number of the one who survives in the end out of the 1000?
If anyone can solve this without using a computer or a physical model, I'll be very impressed.
I did it in my head*, then cranked off a computer simulation and got the same answer both times:
976
*I did make a few scribbled notes, but none of them involved writing out who was left and crossing them off. Basically just the upper and lower bounds of who was left after each iteration, which I also would have tracked in my head were I not so easily distracted.


--Impeesa--