An episode of Futurama ended up needing a math theorem to keep track of and figure out the very scientific concept of brain switching.