comScore
Uncategorized Friday, August 20th 2010 at 3:57 pm

Futurama Writer Created And Proved A Brand New Math Theorem Just For Last Night’s Episode

We all knew the writing staff of Futurama was brainy, but this is something else. To work out the ridiculous brain switching plot line from last night’s hilarious episode, writer Ken Keeler (who also just happens to have a PhD in mathematics) ended up writing and proving an entirely new theorem. This is probably the most impressive bit of side work from a TV writer since a writer of Desperate Housewives discovered a new species or the staff of Full House developed a vaccine for a specific strain of syphilis.

In the episode “The Prisoner of Benda,” the Professor and Amy use a new invention to switch bodies. Unfortunately, they discover that the same two brains can’t switch twice and have to come up with some equation to prove that, with enough people switching, eventually everyone will end up in their rightful form. This, of course, leads to much hijinks as well as the grossest sex scene the show has ever done (take that, Prof. Farnsworth and Mom!).

Of course, Keeler decided to go the hard route and come up with a suitable equation himself. It was first teased in an interview that head writer and executive producer David X. Cohen gave to the American Physical Society:

“In an APS News exclusive, Cohen reveals for the first time that in the 10th episode of the upcoming season, tentatively entitled “The Prisoner of Benda,” a theorem based on group theory was specifically written (and proven!) by staffer/PhD mathematician Ken Keeler to explain a plot twist. Cohen can’t help but chuckle at the irony: his television-writing rule is that entertainment trumps science, but in this special case, a mathematical theorem was penned for the sake of entertainment.”

Now that the episode has aired, we can check out the theorem in full. Well, I won’t. I suck at math. But the people over at the Futurama wiki The Infosphere have. If there’s anyone as smart as Futurama writers, it’s Futurama fans.

Now, if you’ll excuse me, I have to go continue to clean that sex scene out of my brain.

(photo via)

Filed Under |
  • Polynomials

    I read the proof, and I may be misunderstanding his notation, but I think his proof is incorrect. The error is not trivial, but it is easily correctable. The series of switches he says will produce the desired result is not right; it cycles the indices forward when he wants to go backwards. He could either do the reverse or just cycle the indices in the series of switches backwards one cycle. Someone please correct me if I am wrong. I think I might be misreading the series notation. I really wanted this proof to be correct =/

  • j_grime

    The proof is correct (where you reading the notation from left to right?) If I’m allowed to post a link, I made a video response about this http://youtu.be/8M4dUj7vZJc

  • Polynomials

    You’re right, that was my problem, which explains why I offered the correction I did. Sometimes group/permutation theorists have funky/idiosyncratic notation.

    But I also think what he has proved is not exactly what the article says – he proves that if you have some set of things which is out of order, then you can reorder them into the correct order the appropriate sequence of switches without repeating if two of those things are either in the correct place or transposed with each other at the beginning- these are the “new bodies”. The article seems to make a stronger assertion- that any order can be reconstructed from any other one without repeating a switch. The first step says you can turn some ordering into a k-cycle through the appropriate set of distinct switches *without* (x,y) – you might duplicate a switch involving x or y in that first reordering to get the k-cycle if you do not ignore x or y at first.

  • j_grime

    I don’t know if this answers your question: When you permute n objects (in this case people’s minds) the permutation can be written as a product of cycles. This is true. He then introduce two new people, x and y, and applies his method individually to each cycle in the product of cycles. Each cycle will then be returned to normal. It could be clearer but the proof is sound.

    And if I may, I need to update the link to my video response after the lawyers removed my last one (a little zealous in my opinion as the video is clearly for educational use) This one isn’t as good though http://youtu.be/dow7bWdr_YA

  • einsteiner

    Polynomials, it is possible to create any permutation with distinct switches. Start with the non-scrambled objects, then switch the contents of spot 1 with whichever spot has what you want to be there, then do the same with spot 2 and so on until they are in the order you want them in. These swaps are all guaranteed to be different.

    The proof does have a problem though, it’s that i should be restricted to 1,…,k-1. The algorithm fails if i=k.

  • Polynomials

    Thanks j_grime, that did answer my question. Modern algebra was the class I paid the least attention in college, heh.

  • j_grime

    Polnomials: Ah brilliant, you’ve made my day if I have helped.

    einsteiner, haha! You’re right, that would fail (Note to anyone reading this, it’s not a major problem to the proof, just a mistake).

  • Katie

    I’ms orry, but “grossest sex scene”? That was probably the most hilarious scene in the whole show. Farnsworth and mom was much worse T_T

  • Tobeasoldier

    I don’t care about he math they provided, they were actually entirely wrong at three parts…

    In the episode, the professor stated that two minds cannot be swapped more than once even if the body is different. The situation at hand was that:

    Washbucket’s brain was in Amy’s body.
    Amy’s brain was in Hermies’ body.

    Hermies’ brain was in Leela’s body.

    Leela’s brain was in the Professor’s body.

    The Professor’s brain was in Bender’s body.

    Bender’s brain was in Nicoli’s body.

    Nicoli’s brain was in the Washbucket’s body.

    Fry’s brain was in Zoiberg’s body.

    Zoiberg’s brain was in Fry’s body.

    The solution they provided at the end of the episode actually had them swapping
    (Bender & Nicoli’s minds over again),
    (Amy & Hermies’ minds over again), and
    (The Professor & Bender’s minds over again)

    3 mistakes they made. Eveyone could have returned to their bodies without the two extra globe trotters AND mistake free by just doing it this way…

    *SWAP Washbucket’s brain with Amy’s brain –> You get Amy’s brain in her own body and the Washbuckets brain in Hermies’ body.

    *SWAP Washbucket’s brain with Hermies’ brain –> You get Hermies’ brain in his own body and the Washbuckets brain in Leela’s body.

    *SWAP Washbucket’s brain with Leela’s brain –> You get Leela’s brain in her own body and the Washbuckets brain in the Professor’s body.

    *SWAP Washbucket’s brain with the Professor’s brain –> You get the Professor’s brain
    in his own body and the Washbuckets brain in Bender’s body.

    Now since Bender and the Washbucket’s minds already swapped earlier in the episode, this is the chance to fix up Zoidberg and Fry.

    *SWAP Washbucket’s brain with Zoidberg’s brain –> You get Zoidberg’s brain
    in Bender’s body and the Washbuckets brain in Fry’s body.

    *SWAP Washbucket’s brain with Nicoli’s brain –> You get Nicoli’s brain
    in Fry’s body and the Washbuckets brain in it’s own body.

    *SWAP Bender’s brain with Fry’s brain –> You get Fry’s brain
    in Nicoli’s body and Bender’s brain in Zoidberg’s body.

    *SWAP Bender’s brain with Fry’s brain –> You get Fry’s brain
    in Nicoli’s body and Bender’s brain in Zoidberg’s body.

    *SWAP Bender’s brain with Zoidberg’s brain –> And they are both fixed.

    *SWAP Fry’s brain with Nicoli’s brain –> And now everyone is fixed :)
     ALL 9 OF THEM. Check for yourself.

  • Tobeasoldier

    NO math even needed whatsoever

  • Severian195

    Who cares? Their way solves the problem and it’s more interesting than yours.