Coconuts and a Monkey 1
Ten people are stranded on a deserted island. The gather a pile of coconuts for food, planning to divide them equally the next day. However, that night, one person wakes up and tries to take their share early. When dividing the pile into ten equal portions, they find they’re one coconut short. They notice the monkey holding one coconut and try to take it, but the monkey kills them with it.
Later, a second person wakes up. Finding the first person dead, they try to divide the pile into nine equal portions, but again find they’re one coconut short. They try to take the monkey’s coconut and are also killed.
This continues for the rest of the morning. Each remaining person wakes up, finds one fewer person alive, tries to divide the pile equally among the survivors, finds they’re one coconut short, and is killed trying to take the monkey’s coconut, until finally there is only one survivor.
What is the smallest number of coconuts in the original pile (not counting the monkey’s coconut)?
Solution
Answer: 2519 coconuts
The key insight is that the pile stays the same size throughout—each person gets killed before taking any coconuts. So we need a single number that is “one coconut short” when dividing by 10, then by 9, then by 8, and so on down to 1.
If the pile had one more coconut, it would be evenly divisible by all these numbers: 10, 9, 8, 7, 6, 5, 4, 3, 2, and 1.
The smallest number divisible by all of these is their least common multiple (LCM).
To find the LCM of numbers from 1 to 10, we only need to consider the primes: 2, 3, 5, and 7.
For each prime, we find the highest power that doesn’t exceed 10:
- The largest power of 2 not exceeding 10 is 8=23
- The largest power of 3 not exceeding 10 is 9=32
- The largest power of 5 not exceeding 10 is 5=51
- The largest power of 7 not exceeding 10 is 7=71
So: lcm(1,2,…,10)=23×32×5×7=8×9×5×7=2520
Since the pile needs to be one short of this number: N=2520−1=2519
We can verify: 2519÷10=251 remainder 9 (one short), 2519÷9=279 remainder 8 (one short), and so on.
Next puzzle in this series
Try These Next
Poisoned Wine
To celebrate a decade of his rule, the king is holding an extravagant feast, accompanied with 1000 bottles of wine. However, the day before the feast, he...
Dice Corner
You’re looking through a hole at the corner of a standard die. The image below shows all you can see through the hole: portions of three faces meeting at the...
Average Salaries 2
Back in [[puzzle ]], 12 employees came up with a method to find out their average salary without revealing their individual salaries to anyone. Here’s the...