How Math Inspired the Simpsons