I spent an evening solving TED-Ed math puzzles with my son, who was twelve. We enjoyed solving some together and competing on others, much as we did with programming, pickleball and wrestling. He wasn’t feeling his best, and the puzzles were a welcome distraction.
Challenging AI models had become another part of that shared interest. We had already written about using prompt engineering to generate code for a math problem. We enjoyed pitting our wits against these AI “brains,” seeing where they excelled and where they stumbled.
We took a photo of the puzzle on our TV and gave it to OpenAI's ChatGPT GPT-4o, Anthropic's Claude 3.5 Sonnet and Google's Gemini Pro 1.5 with the prompt “Please solve this.” After that comparison, we also tried Claude 3.0 Opus.
The answers gave us several ways to explore the puzzle. (I would have normally said “delve into”, but then people like Paul Graham would erroneously think my son and I didn’t write this blog post. Oh well.)
The puzzle
The incubator starts with 99 eggs: 23 blue, 33 purple and 43 red. A fusion consumes two eggs of different colors and produces one egg of the third color:
- Red and blue make purple.
- Blue and purple make red.
- Purple and red make blue.
For each fusion, the eggs come from the two most plentiful piles. If the two smallest piles are tied, one of those piles is chosen at random to pair with the largest. The pile sizes must be reconsidered after every fusion.
You may add exactly one egg, of any color, before the process starts. You cannot intervene afterward. Which color should you add to make the final egg blue?
Original puzzle wording
Pause the video now if you want to figure it out for yourself!
- The incubator currently has 99 eggs. 23 blue, 33 purple, 43 red.
- Eggs combine in pairs until only one is left:
- a red egg and a blue egg make a purple egg
- a blue egg and a purple egg make a red egg
- a purple egg and a red egg make a blue egg
- For each egg fusion, eggs from the two most plentiful piles will fuse first. If the two smallest piles are equal, an egg comes from one at random.
- You want the final egg to be blue.
- You can add exactly one blue, one purple or one red egg to the incubator. Once you’ve done so, you can no longer intervene.
The TED-Ed lesson by Dan Finkel includes the original puzzle video.
Try the puzzle before reading the solution. Your explanation needs to cover every allowed choice when piles tie.
Why adding blue works
Parity means whether a number is odd or even. Subtracting one from a count flips its parity. Adding one does too. A fusion subtracts one egg from each of two colors and adds one to the third, so all three parities flip at every step.
Adding a blue egg gives 24 blue, 33 purple and 43 red: even, odd, odd. The first fusion uses red and purple, leaving 25 blue, 32 purple and 42 red: odd, even, even. These two parity patterns alternate throughout the process. The purple and red counts always share a parity; blue always has the opposite parity. That relationship is an invariant: it stays true after every allowed fusion.
There are 100 eggs after the addition. Each fusion reduces the total by one, so reaching a single egg takes 99 fusions. After that odd number of flips, blue must have an odd count, while purple and red have even counts. With one egg remaining, the only possible counts are one blue, zero purple and zero red.
There is one more point to check: can the process stop with several eggs of the same color? Parity alone does not exclude three blue eggs and no others. The rule about the two largest piles matters here.
Suppose the last fusion left K eggs of one color, with K greater than one. Immediately before it, the counts would have been K minus one of that color and one of each other color. The fusion would have to consume the two single eggs. They can be the two largest piles only if K is at most two. But two eggs of one color would make all three counts even, a parity pattern this process never reaches. A pile of several same-colored eggs therefore cannot be the endpoint. The process reaches one egg, and it is blue.
The same argument gives the other outcomes:
| Egg added | Counts after adding, in blue/purple/red order | Final egg |
|---|---|---|
| Blue | 24, 33, 43 | Blue |
| Purple | 23, 34, 43 | Purple |
| Red | 23, 33, 44 | Red |
The conclusion holds for either permitted choice at a tie. The puzzle's randomness does not make the final color uncertain.
What the four responses establish
The results were… what’s the word? Educational.
Claude 3.5 Sonnet chose purple, which is incorrect. Its simulation starts by combining red and blue even though red and purple are the largest piles. It also inserts the extra egg partway through the process, contrary to the requirement to add it at the start.
Gemini Pro 1.5 chose red, also incorrect. It identifies the priority rule, then assumes red and purple will keep combining until a pile is exhausted. Their sizes change after each fusion, so they do not retain priority throughout that proposed sequence.
GPT-4o chose blue. Its explanation says only two parities change at a fusion, even while listing three changes of one egg each. It also says the process maintains two odd counts after the blue addition. The first valid fusion, from 24, 33, 43 to 25, 32, 42, already contradicts that claim. The answer is correct; the quoted proof is not.
Claude 3.0 Opus also chose blue. It presents that choice as the most likely to succeed, without proving a probability or a guarantee. Its explanation repeats the assumption that the first two piles keep fusing until one is depleted. Under the stated rules, adding blue guarantees a blue endpoint, as the proof above shows.
One response from each model cannot settle a general ranking. The differences made us curious: had one model encountered similar puzzles in training? Would another run produce a different answer? The responses let us check the written arguments; they do not tell us which training examples or internal process produced them.
GPT-4o’s mathematical style brought Mr. Spock or Commander Data from Star Trek to mind, not Captain Kirk. The parity error shows why an impressive style still needs checking. My son and I felt it wasn’t fair to stop with Sonnet, so we tried Claude 3.0 Opus too. Its answer felt more like a person weighing possibilities, even though the puzzle calls for a guarantee.
Are we more comfortable with a familiar-looking explanation that is wrong, or a correct explanation that initially feels alien? Remember how AlphaZero played what some people called “Godlike moves” in Go and chess? AlphaZero’s unconventional play in chess, shogi and Go offered a striking example of useful strategies that surprised human players. Here, too, I want to judge the explanation by what it establishes while remaining curious about unfamiliar ways to reach an answer.
Checking a book's diagram
In a LinkedIn post preserved below, I asked Nigel Toon whether the diagram on page 76 of his excellent book How AI Thinks was missing the line between nodes A and D. He confirmed that it was missing and said the graph should show an odd number of edges at each node.
In the pictured graph, adding A–D changes A from four connections to five and D from two to three. That is the odd/even distinction Toon's reply points to. Checking the drawing's details helped test a human-authored explanation, just as tracing a fusion tests an AI response.
My son and I enjoy imagining how these systems will develop. Will their answers become more consistent? Will distinctive problem-solving styles remain? Continuing to pose tricky questions gives us a way to learn with the tools and enjoy the surprises. Checking their work is part of developing our own ability.
The competition for humans is not AI, but other humans using AI to augment their own capabilities.
The recorded responses
The original comparison presented Claude 3.5 Sonnet, Gemini Pro 1.5 and GPT-4o in that order, followed by the additional Claude 3.0 Opus response. Their wording and formatting below are unchanged, including the errors discussed above.
Anthropic Claude 3.5 Sonnet: original response
Let’s approach this problem step-by-step:
- Initial state: 23 blue eggs, 33 purple eggs, 43 red eggs (total 99 eggs)
- We need to end up with a blue egg, so we need to work backwards.
- To get a blue egg as the final result, the last fusion must be between a purple egg and a red egg.
- Let’s simulate the fusions:
- Red (43) + Blue (23) -> 23 Purple eggs Now we have: 0 Blue, 56 Purple, 20 Red
- Purple (56) + Red (20) -> 20 Blue eggs Now we have: 20 Blue, 36 Purple, 0 Red
- Blue (20) + Purple (36) -> 20 Red eggs Now we have: 0 Blue, 16 Purple, 20 Red
- Purple (16) + Red (20) -> 16 Blue eggs Now we have: 16 Blue, 0 Purple, 4 Red
- Blue (16) + Red (4) -> 4 Purple eggs Now we have: 12 Blue, 4 Purple, 0 Red
- At this point, we’re left with 12 Blue and 4 Purple eggs. We need one more Purple egg to create the final Blue egg.
- According to rule 5, we can add exactly one egg of any color. We should add one Purple egg.
- After adding one Purple egg: 12 Blue, 5 Purple
- The final fusion: Blue (12) + Purple (5) -> 5 Red eggs Now we have: 7 Blue, 0 Purple, 5 Red Red (5) + Blue (5) -> 5 Purple eggs Now we have: 2 Blue, 5 Purple, 0 Red Purple (5) + Blue (2) -> 2 Red eggs Final result: 0 Blue, 0 Purple, 2 Red Red (2) + Purple (1) -> 1 Blue egg (final egg)
Therefore, to ensure the final egg is blue, we should add one purple egg to the incubator.
Google Gemini Pro 1.5: original response
Here’s how to solve this puzzle:
Understanding the Problem
We have an incubator with three types of eggs that combine in specific ways. We need to ensure the final egg is blue by adding only one egg at the start.
Key Points
- Egg Combinations:
- Red + Blue = Purple
- Blue + Purple = Red
- Purple + Red = Blue
- Fusion Priority: Eggs from the two largest piles combine first.
- Goal: The final egg should be blue.
- Intervention: We can add one egg (blue, purple, or red) only once.
Solution
- Current Situation: We have 23 blue, 33 purple, and 43 red eggs. Red is the largest pile.
- Initial Fusions: Red and purple eggs will combine first, creating blue eggs. This will continue until either red or purple eggs run out.
- Scenario Analysis:
- If red runs out first: We’ll be left with blue and purple eggs. These will combine to form red eggs. We don’t want this.
- If purple runs out first: We’ll have red and blue eggs. These will combine to form purple eggs.
- Desired Outcome: We want the purple eggs scenario. To achieve this, we need to ensure the purple pile is depleted first.
- Intervention: We need to add a red egg. This will increase the red pile, ensuring it lasts longer than the purple pile during the initial fusions.
- Final Steps:
- Add a red egg.
- Red and purple combine to form blue until purple runs out.
- We’re left with red and blue, which combine to form purple.
- Finally, we have red and purple, which combine to form the desired blue egg.
Answer: Add a red egg.
OpenAI ChatGPT GPT-4o: original response
To solve this problem, we need to determine which egg to add (one blue, one purple, or one red) to ensure the final remaining egg is blue. Let’s analyze the situation step-by-step:
Step-by-Step Analysis
- Initial Egg Counts:
- Blue: 23
- Purple: 33
- Red: 43
- Egg Combination Rules:
- Red + Blue → Purple
- Blue + Purple → Red
- Purple + Red → Blue
- Fusion Process:
- Eggs from the two most plentiful piles will fuse first.
- If two piles are equal in size, an egg is chosen randomly from one of them.
- Goal:
- Ensure the final egg is blue.
- Intervention Rule:
- You can add exactly one blue, one purple, or one red egg to the incubator. After adding, you cannot intervene further.
Strategy
To ensure the last egg is blue, consider the parity (odd or even number) of the counts of each color. Each fusion will affect the counts in a particular way, and understanding how these counts change is key.
Parity Analysis
- Blue Eggs: 23 (Odd)
- Purple Eggs: 33 (Odd)
- Red Eggs: 43 (Odd)
When combining eggs according to the rules, each combination will change the number of eggs of two colors. Let’s look at the parity changes:
- Red + Blue → Purple:
- Red decreases by 1.
- Blue decreases by 1.
- Purple increases by 1. This means two odd counts become even, and one odd count remains (or vice versa).
- Blue + Purple → Red:
- Blue decreases by 1.
- Purple decreases by 1.
- Red increases by 1. Again, two odd counts change, and one stays the same.
- Purple + Red → Blue:
- Purple decreases by 1.
- Red decreases by 1.
- Blue increases by 1. Similarly, the change affects two counts.
Each fusion changes two parities, meaning the total parity of the system (number of odd counts) remains the same or changes by 2, always maintaining parity.
Conclusion
To end with a blue egg, we must ensure that the parity of the blue count becomes odd and remains so after all combinations.
Currently, the counts are:
- Blue: 23 (Odd)
- Purple: 33 (Odd)
- Red: 43 (Odd)
Since all are odd, the total count of odd numbers is 3 (odd). To maintain the final egg as blue, we want the final state to have one odd count (blue).
- Adding one blue egg changes the count of blue to 24 (even). Now we have:
- Blue: 24 (Even)
- Purple: 33 (Odd)
- Red: 43 (Odd)
Now, there are 2 odd counts (Purple and Red) and one even (Blue). Any subsequent fusion will always flip the parity twice, thus maintaining the two odds. Eventually, the last remaining egg will be blue if no other intervention is possible.
Solution
Add one blue egg to the incubator to make the final remaining egg blue.
Anthropic Claude 3.0 Opus: original response
Okay, let’s break this down step-by-step based on the instructions in the image:
- The incubator currently has 99 eggs: 23 blue, 33 purple, and 43 red.
- Eggs combine in pairs until only one is left. The combinations are:
- A red egg and a blue egg make a purple egg
- A blue egg and a purple egg make a red egg
- A purple egg and a red egg make a blue egg
- For each egg fusion, eggs from the two most plentiful piles will fuse first. If the two smallest piles are equal, an egg comes from one at random.
- The goal is to have the final egg be blue.
- We can add exactly one blue, one purple or one red egg to the incubator. Once we’ve done so, we can no longer intervene.
So let’s think through the process:
- Currently, the red eggs are most plentiful, followed by purple, then blue.
- Red and purple eggs will fuse first, creating blue eggs until one pile is depleted.
- Then the remaining pile will fuse with blue eggs, creating either red or purple eggs.
- This process continues until one egg remains.
Considering the current counts, adding a blue egg seems most likely to result in a final blue egg. Adding red or purple would make those piles even larger, increasing the chances the final egg is one of those colors instead.
Therefore, I recommend adding one blue egg to maximize the probability that the final egg is blue.
Follow-up, January 27, 2025
The follow-up comparison of OpenAI o1 and DeepSeek's DeepThink R1 examines two additional responses to the same puzzle.


