Three Squirrels and a Pile of Nuts
Three squirrels gather a pile of nuts, and decide to store the pile outside their house overnight.
During the night, however, one of the squirrels wakes up hungry and decides to steal one-third of the pile (I'm only taking my fair share," he tells himself). But he has to eat one of the nuts in order to be able to take exactly one-third. He leaves two-thirds of the nuts behind and goes back to bed.
Exactly the same thing happens to the second squirrel, who wakes up, eats one of the nuts, steals exactly one-third of the pile that's left, and goes back to bed.
Then precisely the same thing happens to the third squirrel: She eats one nut, hides away one-third of the pile, and goes back to bed.
In the morning, the three squirrels awake and apportion the pile. It divides exactly by three.
How many nuts were in the original pile?
Three Squirrels and a Pile of Nuts
Let's define the variables and use an Excel formula to solve the problem step by step.
Step 1: Define Variables
Let N be the initial number of nuts in the pile.
Each squirrel follows this process:
First Squirrel:
- Eats 1 nut → Nuts left:
- Takes of the remaining pile → Takes
- Leaves behind:
Second Squirrel:
- Eats 1 nut → Nuts left:
- Takes of the remaining pile → Takes
- Leaves behind:
Third Squirrel:
- Eats 1 nut → Nuts left:
- Takes of the remaining pile.
- Leaves behind exactly nuts, which must be divisible by 3.
Step 2: Excel Formula to Solve for N
We need to find the smallest N such that after all three squirrels follow this process, the remaining pile is divisible by 3.
We can solve this using Excel:
Excel Formula (Using Goal Seek)
- In Cell A1, set an arbitrary starting number for N (e.g., 30).
-
In Cell B1, apply the squirrel calculations step by step:
-
In Cell C1, check if B1 is divisible by 3:
-
Use Goal Seek:
- Set C1 = 0 (i.e., find N such that the remaining pile is divisible by 3).
- Solve for A1 (initial N).
Step 3: Answer
Using this approach, the smallest valid N is 25.
Verification:
1. First Squirrel:
- Eats 1 → 24 nuts left.
- Takes 8 (⅓ of 24), leaving 16.
2. Second Squirrel:
- Eats 1 → 15 nuts left.
- Takes 5 (⅓ of 15), leaving 10.
3. Third Squirrel:
- Eats 1 → 9 nuts left.
- Takes 3 (⅓ of 9), leaving 6.
4. Morning Check:
- 6 is divisible by 3 → Correct!
✅ Final Answer: The initial pile had 25 nuts. 🚀