Futurama writer Ken Keeler wrote and proved a completely new mathematical theorem just for a single episode, called the Futurama Theorem. It is the first known theorem to be created for the sole purpose of entertainment in a TV show.

Futurama theorem

The Futurama theorem is a real-life mathematical theorem invented by Futurama writer Ken Keeler (who holds a PhD in applied mathematics), purely for use in the Season 6 episode “The Prisoner of Benda”.

It is the first known theorem to be created for the sole purpose of entertainment in a TV show, and, according to Keeler, was included to popularize math among young people.

The theorem proves that, regardless of how many mind switches between two bodies have been made, they can still all be restored to their original bodies using only two extra people, provided these two people have not had any mind switches prior (assuming two people cannot switch minds back with each other after their original switch).

In the episode “The Priso… Continue Reading
Source: http://theinfosphere.org/Futurama_theorem