On a pirates' ship, the captain wants to play a game with 45 prisoners who are arranged in a circle and numbered from 1 to 45. Starting from the first and count from 1 to 5, the 5th will be killed then continue to count from 1 to 5 again and again.
Which are the last 2 prisoners who are alive?
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.
Last surviving prisoner.
= 2 * (45 - 5^2) + 1.
= 41, one half of the given four combos.