From "The Wizard of Evergreen Terrace"
Season 10 Episode 2 contains some math.
According to this article, this scene was designed by the Harvard physics major David S. Cohen.
Thanks to Jacob Ye for the information.
Simon Singh had been visiting Harvard for a book talk and I myself got a signed book at that event.
In that book it is stated, that the math backgrounds of many the show's writers
made it the "most mathematical TV show on prime-time television in history".