In “The Simpsons and Their Mathematical Secrets”, I documented all the mathematical references hidden in the world’s favourite TV show. Look carefully at various episodes, you will spot everything from Fermat’s last theorem to the Riemann hypothesis, from the P v NP conjecture to Zorn’s lemma.
All these references are embedded in the show, because many of the writers have mathematical backgrounds. To temper their nerdy enthusiasm, the general rule was that they could include as much mathematics as they fancied, as long as it was well hidden or only visible for a fraction of a second (a so-called freeze-frame gag).
However, if the mathematical reference is not particularly obscure, then it can be included at the heart of the action, and can even be included in the actual dialogue. π, of course, falls into this category, because everyone learns about it in school.
There are at least ten π references in “The Simpsons”, and here are my top three favourites, in reverse order: