The Simpsons is apparently crammed with tons of math. Simon Singh explains in this video how Pi and algorithms crop up in the show and why the characters work in a decimal world even if they have eight fingers.
Singh has just
written a book all about the math of The Simpsons. But check out the video first. Interesting!