An adaptation of an interesting distribution puzzle from Joseph Degrazia’s *Math is Fun* (1954):

After a successful year of plunder on the high seas, a pirate ship returns to its island base. The pirate chief, who enjoys practical jokes and has a mathematical bent, hands out heavy bags of gold coins to his seven lieutenants. But when the seven lieutenants open the bags, they discover that each of them has received a different number of coins.

They ask the captain why they don’t have equal shares. The pirate chief laughs and tells them to re-distribute the coins according to the following rule: “At each stage, the lieutenant with most coins must give each of his comrades as many coins as that comrade already possesses.”

The lieutenants follow the rule and each one in turn becomes the lieutenant with most coins. When the seventh distribution is over, all seven of them have 128 coins, the coins are fairly distributed, and the rule no longer applies.

The puzzle is this: How did the pirate captain originally allocate the coins to his lieutenants?

If you start at the beginning and work forward, you’ll have to solve a fiendishly complicated set of simultaneous equations. If you start at the end and work backwards, the puzzle will resolve itself almost like magic.

The puzzle is actually about powers of 2, because 128 = 2^7 and when each of six lieutenants receives as many coins as he already has, he doubles his number of coins. Accordingly, before the seventh and final distribution, six of the lieutenants must have had 64 coins and the seventh must have had 128 + 6 * 64 coins = 512 coins.

At the stage before that, five of the lieutenants must have had 32 coins (so that they will have 64 coins after the sixth distribution), one must have had 256 coins (so that he will have 512 coins after the sixth distribution), and one must have had 64 + 5 * 32 + 256 coins = 480 coins. And so on. This is what the solution looks like:

128, 128, 128, 128, 128, 128, 128

64, 64, 64, 64, 64, 64, 512

32, 32, 32, 32, 32, 480, 256

16, 16, 16, 16, 464, 240, 128

8, 8, 8, 456, 232, 120, 64

4, 4, 452, 228, 116, 60, 32

2, 450, 226, 114, 58, 30, 16

449, 225, 113, 57, 29, 15, 8

So the pirate captain must have originally allocated the coins like this: 449, 225, 113, 57, 29, 15, 8.

The puzzle can be adapted to other powers. Suppose the rule runs like this: “At each stage, the lieutenant with most coins must give each of his comrades __twice__ as many coins as that comrade already possesses.” If the pirate captain has six lieutenants, after each distribution each of five will have *n* + 2*n* = three times the number of coins that he previously possessed. The six lieutenants each end up with 729 coins = 3^6 coins and the solution looks like this:

729, 729, 729, 729, 729, 729

243, 243, 243, 243, 243, 3159

81, 81, 81, 81, 2997, 1053

27, 27, 27, 2943, 999, 351

9, 9, 2925, 981, 333, 117

3, 2919, 975, 327, 111, 39

2917, 973, 325, 109, 37, 13

For powers of 4, the rule runs like this: “At each stage, the lieutenant with most coins must give each of his comrades __three times__ as many coins as that comrade already possesses.” With five lieutenants, each of them ends up with 1024 coins = 4^5 coins and the solution looks like this:

1024, 1024, 1024, 1024, 1024

256, 256, 256, 256, 4096

64, 64, 64, 3904, 1024

16, 16, 3856, 976, 256

4, 3844, 964, 244, 64

3841, 961, 241, 61, 16

For powers of 5, the rule runs like this: “At each stage, the lieutenant with most coins must give each of his comrades __four times__ as many coins as that comrade already possesses.” With four lieutenants, each of them ends up with 625 coins = 5^4 coins and the solution looks like this:

625, 625, 625, 625

125, 125, 125, 2125

25, 25, 2025, 425

5, 2005, 405, 85

2001, 401, 81, 17