The Simpsons and Their Mathematical Secrets is a 2013 book by Simon Singh, which is based on the premise that "many of the writers of The Simpsons are deeply in love with numbers, and their ultimate desire is to drip-feed morsels of mathematics into the subconscious minds of viewers".[1]
The book compiles all the mathematical references used throughout the show's run, and analyzes them in detail. Rather than just explaining the mathematical concepts in the context of how they relate to the relevant episodes of The Simpsons, Singh "uses them as a starting point for lively discussions of mathematical topics, anecdotes and history".[2] Topics covered include Fermat's Last Theorem, which Singh has written a popular book about, and Euler's identity. A chapter is dedicated to the "Homer3" segment from Treehouse of Horror VI, in which Homer finds himself in the third dimension (rendered with then-cutting edge computer graphics). Singh points out many mathematical references in the segment, such as the cosmological equation (ρm0 > 3H02/8πG) which describes the density of the universe and foreshadows the end of the segment. Singh discusses several equations that Homer writes on a chalkboard in "The Wizard of Evergreen Terrace", including one that predicts the mass of the Higgs boson: “If you work it out, you get the mass of a Higgs boson that’s only a bit larger than the nano-mass of a Higgs boson actually is. It’s kind of amazing as Homer makes this prediction 14 years before it was discovered.”[3]