The writers of The Simpsons are so fascinated by mathematics that they have drip-fed morsels of number theory into the series over the last twenty-five years. The author of The Codebook and Fermat’s Last Theorem uses specific episodes to explain concepts ranging from and the paradox of infinity to the origins of numbers.