The Simpsons and Mathematics · 1
Is the equation on Homer's blackboard true?
In 1998, Homer Simpson wrote an equation that would break a famous theorem. On a calculator that keeps 10 digits, it checks out.
A line of chalk
In "The Wizard of Evergreen Terrace" (1998), Homer decides to become an inventor, like his new hero Thomas Edison.1 Along the way, he jots some equations on a blackboard, including this one:24
398712 + 436512 = 447212
With squares, whole numbers do this all the time: 32 + 42 = 52, because 9 + 16 = 25. Fermat's Last Theorem says no positive whole numbers do it with any power above 2, and Andrew Wiles proved it (announced 1994, published 1995), after 358 years of effort by mathematicians.3 Homer's line, if true, would be a counterexample: one case that breaks the rule.
Ask a calculator
Each side is a 44-digit number.7 Can a calculator judge it? The calculator below keeps only the first few digits and turns the rest into zeros. It starts at 10. Give it more. When does it notice?
Left side: 63,976,656,349,698,612,616,236,230,953,154,487,896,987,106
Right side: 63,976,656,348,486,725,806,862,358,322,168,575,784,124,416
At 10 digits, both sides start 6397665634, then zeros, so the calculator calls them equal.7 Keep dragging until the verdict flips; the red box marks the first digit where the sides part ways. The equation is false, what's known as a near-miss solution.2
Slide to 44 to see how near. The left side is bigger by a 34-digit number, yet that's only about 2 parts in 100 billion. If both sides were trips around Earth's equator, about 40,075 km (24,901 mi), they'd differ by less than a millimeter (0.04 in).67
Catch it without a big calculator
If two numbers are equal, they agree on everything: last digit, even or odd, multiple of 3 or not. Find one property where the sides disagree, and the equation is dead. Here are three tests you can do in your head. Run each one.
Three quick tests
A power's last digit depends only on the number's last digit. 712 ends in 1 and 512 in 5, so the left side ends in 6. 212 = 4096 ends in 6 too.
Odd times odd stays odd, and odd plus odd is even. 4472 is even, so its power is even.
A number is a multiple of 3 when its digits add up to one. 3 + 9 + 8 + 7 = 27 and 4 + 3 + 6 + 5 = 18, so 3987 and 4365 are multiples of 3, and so are their powers and the sum. But 4 + 4 + 7 + 2 = 17. 4472 isn't a multiple of 3, and since 3 is prime, no power of 4472 is.
Two tests say "same", which proves nothing: plenty of different numbers end in 6. One "different" settles it for good. That's the lopsided thing about checking: agreement can't prove two numbers equal, but one disagreement proves they aren't.
A fake, made on purpose
Being wrong only from the 11th digit on is no accident. Simon Singh, who wrote a book on the show's math, says one of its writers, David X. Cohen, created the equation.5
The next lessons stay at this blackboard: what the equation would have broken, how to manufacture a near miss, and why computers couldn't settle Fermat. Then the background gets busier: a ballpark quiz built from three special numbers, a million-dollar problem, why pi can't be exactly 3, and a doughnut-shaped universe.
Next: what would Homer's equation have broken?