A group of 5 pirates obtained 100 gold coins. They are deciding how many coins to give to each person by voting. Here is how the vote works:
The main goal of the pirates is to survive. The secondary goal of the pirates is to maximize the number of coins gained. Every pirate is very logical and they know all other pirates are logical. If you are the first pirate, what is the most amount of coins you can get without dying?
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.
If you start by thinking about the first pirate, it is hard to make a progress. However, it will be much easier to start with the situation where only 2 pirates are alive.
In this case, the fourth pirate can give all the coins to himself. When there is only 2 people, it is impossible for the amount of "no" to outnumber the amount of "yes", since the fourth pirate can vote for his own plan. Therefore, the fifth pirate want to avoid this situation.
Let's think one step back. When there is 3 pirates left, the third pirate need someone to agree with him in order to survive. Well, giving 1 coin to the fifth pirate will work. This is because if the third pirate gets killed, the fifth pirate will not get any coins. Also, keep in mind that giving any amount of coins to the fourth pirate won't work because if the third pirate gets killed, the fourth pirate can get all the coins.
When there is 4 pirates left, the second pirate still require 1 person to agree with him. When the second pirate gets killed, the fourth pirate will get 0 coins as figured in the last step. So, giving the fourth pirate 1 coin will be enough. Giving coins to any other pirate will not work.
Back to the first situation when there is 5 pirates, the first pirate need 2 people to agree with him to not be outnumbered. Giving 1 coin to the third and fifth pirate will be a perfect solution. Because when the second pirate is making the plan, the third and fifth pirate will get nothing. That leaves 98 coins for the first pirate.
This is the kind of problem that you need to work backwards. It is also important to identify what will happen if you give money to a certain pirate.