“The Simpsons” can seem to have been around forever, so deeply wound into our culture that you sometimes forget humans created it and other humans shaped it into its present form. In this respect, it’s a lot like mathematics. According to Simon Singh, a widely read author of popular books about math, the comparison runs a lot deeper than that. In fact, as he explains in “The Simpsons and Their Mathematical Secrets,” the show’s writing team is lousy with ex-mathematicians, and the episodes are pincushioned with mathy in-jokes and background sight gags.

Like a lot of mathematicians, I already knew this. We are a small tribe, and we tend to know each other. J. Stewart Burns, who wrote for “The Simpsons” and its aesthetic cousin “Futurama,” used to grade my abstract algebra homework in college, and he and I spent a summer in Duluth, Minn., doing research in graph theory before he went off to do graduate work at Berkeley. And Burns wasn’t even the most mathematically accomplished writer in the room — that would be Ken Keeler, who holds a PhD in applied math from Harvard and worked at Bell Labs before moving into television.

When Burns started work at “The Simpsons,” Singh reports, “his master’s degree in mathematics was no longer exceptional. Instead of being labeled a geek, he became known as the go-to guy for toilet humor.” (This is consistent with my memories of him.) Other mathy writers on the staff included a former New Jersey state champion mathlete and a prodigy who started as a Harvard math major at 16.

You might hope — or, depending how you swing, fear — that the heavy representation of supernumerates among the writers created a running subtext of mathematics below the surface of the story, a kind of secret seminar led by a crew of yellow-skinned, eight-fingered teaching assistants. The truth is less dramatic. The mathematics in “The Simpsons” doesn’t, for the most part, drive the plot; it’s a series of occasional wink-and-nod references by means of which the writers signal their membership in the in-group.

Singh uses the show as a thread along which to string mini-essays on some of math’s greatest hits, including Fermat’s Last Theorem (a purported counterexample to which is written on a blackboard in an episode called “The Wizard of Evergreen Terrace”), Euler’s identity eiΠ + 1 = 0 (which shows up on the spine of a book in “MoneyBART”) and perfect numbers (one of which, 8,128, appears on the JumboVision at Springfield Stadium in “Marge and Homer Turn a Couple Play”). Sometimes Singh lets go of the thread entirely, as when he writes about Simpson’s paradox and Simpson’s rule, named after two different mathematical Simpsons, neither of them Homer.

Occasionally the mathematics does wind more deeply into the story, most notably in the 2010 “Futurama” episode “The Prisoner of Benda.” The plot turns on a device called the Mind-Switcher, which performs just the function its name suggests; over the course of the episode, as the apparatus is used with greater and greater abandon, the minds of the characters shuttle from body to body like singles switching bedrooms in a French farce. By the end, not a single consciousness remains in its proper skull. What’s worse, the characters can’t just retrace their steps to reunite each mind with its original body; the Mind-Switcher, having operated on a pair of minds, isn’t allowed to switch the same two minds again.

Ken Keeler, who wrote the episode, realized that in order to get everything sorted out it might be necessary to introduce new characters, whose bodies could be used as waystations through which the minds could find their way home. An ordinary writer would have been content simply to find a way out of the episode. But Keeler became obsessed with the problem in its full generality, finally composing a proof that, no matter how wild the original fiesta of Mind-Switching, the damage can always be repaired once two new people are added to the system. This question may sound abstruse, but the part of math it belongs to — “combinatorial group theory” — is one of the hottest things going at the moment, with major advances popping up everywhere from Paris to Los Angeles. Keeler’s theorem isn’t one of those big advances, but it’s a real theorem, certainly the deepest piece of mathematics ever featured in a prime-time sitcom.

Most of “The Simpsons and Their Mathematical Secrets” is about math, not comedy. But the most interesting parts of the book are the moments when the two pursuits come together. It’s a cliche by now that mathematics is supposed to be somehow allied with classical music. But why should music be the only art form to resonate with math? One “Simpsons” writer tells Singh: “I think the mathematical mind lends itself best to writing very silly jokes, because logic is at the heart of mathematics. The more you think about logic, the more you have fun twisting it and morphing it. I think the logical mind finds great humor in illogic.”

Math, like comedy, derives its force from elegance, concision and moments of explosive surprise. A really great mathematical argument can make you laugh out loud. As the example of “The Simpsons” shows, it’s all in how you tell it.

Jordan Ellenberg is a professor of mathematics at the University of Wisconsin at Madison. His book “How Not to Be Wrong: The Power of Mathematical Thinking” will be published in June.

THE SIMPSONS AND THEIR MATHEMATICAL SECRETS

By Simon Singh

Bloomsbury. 253 pp. $26

{comment_count=null, correction_html=, keywords=[simpsons and their mathematical secrets review, simon singh, futurama], web_headline=null, deck=, site_service={parent=/, in_the_news={in_the_news_usefeature=/opinions/, in_the_news_usebasepage=in-the-news-foropinions, in_the_news_usesectionbar=false}, social={archives=null, twitter=https://twitter.com/postopinions, rss=http://feeds.washingtonpost.com/rss/opinions, facebook=https://www.facebook.com/washingtonpostopinions}, site_topper={social_link_display_order=null, display_social_links=true, custom_links_highlight=null, site_logo_image=null, custom_links=[The Post's View^https://www.washingtonpost.com/opinions/the-posts-view/, Local Opinions^https://www.washingtonpost.com/opinions/local-opinions/, PostEverything^https://www.washingtonpost.com/posteverything/, Letters to the Editor^https://www.washingtonpost.com/opinions/letters-to-the-editor/, Global Opinions^https://www.washingtonpost.com/global-opinions/], site_background_image=null}, site={archives_url=[], pagebuilder_path_for_native_apps=/opinions/, site_url=https://www.washingtonpost.com/opinions/, site_keywords=Washington Post editorials and opinion,Washington Post op-ed,editorials,letters to the editor,editorial cartoons,opinion columns,newspaper editorials,opinion articles,opinion editorials,washington post editorials,Post Partisan,PostPartisan,Anne Applebaum,David Broder,Richard Cohen,Jackson Diehl,EJ Dionne,Dionne,Michael Gerson,Fred Hiatt,David Ignatius,Colbert King,Charles Krauthammer,Krauthammer,Ruth Marcus,Harold Meyerson,Dana Milbank,Courtland Milloy,Kathleen Parker,Eugene Robinson,Robert Samuelson,George Will,Fareed Zakaria,Ann Telnaes,Tom Toles,Washington Post Outlook, pagebuilder_path_for_native_apps_tablet=/tablet-app-opinions/, native_app_rendering=true, site_about=null, site_description=The Washington Post Opinions section features opinion articles, newspaper editorials and letters to the editor on the issues of the day. Offerings include the Post Partisan blog by Washington Post opinion writers, as well as political cartoons and political cartoon animations by editorial cartoonists Tom Toles and Ann Telnaes., site_theme=normal, site_title=Opinions, site_tagline=}, navigation={nav_title=Opinions, display_in_top_strip=true, nav_display=true}, _admin={tracking_node=/opinions, alias_ids=[/opinions], commercial_node=/opinions, default_content=/WashingtonPost/Production/Digital/Queries/site-service/opinions/latest-opeds}, inactive=false, name=Opinions, story_list={display_social_share_buttons=true, social_share_buttons=null, story_list_content={list_section-main-content-posteverything_content=http://www.washingtonpost.com/national/?query=/WashingtonPost/Production/Digital/Pages-Web/homepage/_module-content/query_hpeverything, list_section-main-content-lead_content=http://www.washingtonpost.com/opinions/?query=/WashingtonPost/Production/Digital/Queries/site-service/opinions/latest-opeds, list_section-main-content-outlook_content=http://www.washingtonpost.com/national/?query=/WashingtonPost/Production/Digital/Queries/site-service/opinions/outlook, list_section-main-content-local-opinions_content=http://www.washingtonpost.com/opinions/?query=/WashingtonPost/Production/Digital/Queries/site-service/opinions/cth-localops}}, _id=/opinions, _comments_config={comments_config={comment_system=coral, includetabs=true, comment_system_date=2017-11-17T15:00, markersfeatured=featured_comment}}, order=1003}, source=The Washington Post, taxonomy={keywords=[simpsons and their mathematical secrets review, simon singh, futurama], categories=null, custom_taxonomy=null, tags=[]}, type=article, uuid=ef1bfaa6-5b9a-11e3-bf7e-f567ee61ae21, primary_slot=null, tracking={ugc={default_sort=, comments_source=washpost.com, moderation_required=false, allow_comments=true, is_ugc_gallery=false, display_comments=true, allow_photos=false, default_tab=, max_items_to_display_top=3, allow_videos=false, stream_id=, max_items_to_display=15, comments_period=14}, in_url_headline=opinions, content_category=BookWorld, show_comments=true, section={subsection=null, section=opinions}, show_ads=true, authors=Jordan Ellenberg}, commentConfig={includereport=true, canvas_permalink_id=washpost.com/8bvh5zpd9k, markerdisplay=post_commenter:Post Commenter|staff:Post Writer|top_commenter:Post Forum|top_local:Washingtologist|top_sports:SuperFan|fact_checker:Fact Checker|post_recommended:Post Recommended|world_watcher:World Watcher|cultuer_connoisseur:Culture Connoisseur|weather_watcher:Capital Weather Watcher|post_contributor:Post Contributor, defaulttab=all, includerecommend=true, source=washpost.com, canvas_allcomments_app_instance=6634zxcgfd, includereply=true, includesorts=true, includevoteofftopic=false, moderationrequired=false, includeverifiedcommenters=true, canvas_permalink_app_instance=m6yzjj840m, comments_period=14, commentmaxlength=2000, defaultsort=reverseChronological, canvas_allcomments_id=washpost.com/km4ey0dajm, allow_comments=true, includeshare=true, display_comments=true, allow_photos=false, allow_videos=false, display_ugc_photos=false, childrenitemsperpage=3, includeheader=true, display_more=true, includefeaturenotification=false, maxitemstop=3, maxitems=15, includepermalink=false, includepause=true}, short_url=http://wapo.st/1bVM7Zm, path=https://www.washingtonpost.com/opinions/2013/12/20/ef1bfaa6-5b9a-11e3-bf7e-f567ee61ae21_story.html, display_summary={date=1387576833, blurb=“The Simpsons” can seem to have been around forever, so deeply wound into our culture that you sometimes forget humans created it and other humans shaped it into its present form. In this respect, it’..., headline=null}, editors_picks=null, html=<article class="paywall" itemprop="articleBody"> <p id="U72024329876338sC">“The Simpsons” can seem to have been around forever, so deeply wound into our culture that you sometimes forget humans created it and other humans shaped it into its present form. In this respect, it’s a lot like mathematics. According to Simon Singh, a widely read author of popular books about math, the comparison runs a lot deeper than that. In fact, as he explains in “The Simpsons and Their Mathematical Secrets,” the show’s writing team is lousy with ex-mathematicians, and the episodes are pincushioned with mathy in-jokes and background sight gags. </p> <p>Like a lot of mathematicians, I already knew this. We are a small tribe, and we tend to know each other. J. Stewart Burns, who wrote for “The Simpsons” and its aesthetic cousin “Futurama,” used to grade my abstract algebra homework in college, and he and I spent a summer in Duluth, Minn., doing research in graph theory before he went off to do graduate work at Berkeley. And Burns wasn’t even the most mathematically accomplished writer in the room — that would be Ken Keeler, who holds a PhD in applied math from Harvard and worked at Bell Labs before moving into television. </p> <p>When Burns started work at “The Simpsons,” Singh reports, “his master’s degree in mathematics was no longer exceptional. Instead of being labeled a geek, he became known as the go-to guy for toilet humor.” (This is consistent with my memories of him.) Other mathy writers on the staff included a former New Jersey state champion mathlete and a prodigy who started as a Harvard math major at 16. </p> <p>You might hope — or, depending how you swing, fear — that the heavy representation of supernumerates among the writers created a running subtext of mathematics below the surface of the story, a kind of secret seminar led by a crew of yellow-skinned, eight-fingered teaching assistants. The truth is less dramatic. The mathematics in “The Simpsons” doesn’t, for the most part, drive the plot; it’s a series of occasional wink-and-nod references by means of which the writers signal their membership in the in-group. </p> <p>Singh uses the show as a thread along which to string mini-essays on some of math’s greatest hits, including Fermat’s Last Theorem (a purported counterexample to which is written on a blackboard in an episode called “The Wizard of Evergreen Terrace”), Euler’s identity <span>e<sup class="frac">iΠ</sup> + 1 = 0</span> (which shows up on the spine of a book in “MoneyBART”) and perfect numbers (one of which, 8,128, appears on the JumboVision at Springfield Stadium in “Marge and Homer Turn a Couple Play”). Sometimes Singh lets go of the thread entirely, as when he writes about Simpson’s paradox and Simpson’s rule, named after two different mathematical Simpsons, neither of them Homer.</p><div class="inline-content inline-photo-left" style="width:300px;"> <a name="f3598ec087c22ba17666733accb3454e03ed38a4"></a> <img alt="" class="unprocessed" data-hi-res-src="https://img.washingtonpost.com/rf/image_1024w/2010-2019/WashingtonPost/2013/12/16/Outlook/Images/TheSimpsons_HC_Cvr.jpg?uuid=mdZRSGaWEeOguSSbuzRgLA" data-low-res-src="https://img.washingtonpost.com/rf/image_480w/2010-2019/WashingtonPost/2013/12/16/Outlook/Images/TheSimpsons_HC_Cvr.jpg?uuid=mdZRSGaWEeOguSSbuzRgLA" data-raw-src="https://img.washingtonpost.com/rw/2010-2019/WashingtonPost/2013/12/16/Outlook/Images/TheSimpsons_HC_Cvr.jpg?uuid=mdZRSGaWEeOguSSbuzRgLA" src="https://img.washingtonpost.com/rf/image_480w/2010-2019/WashingtonPost/2013/12/16/Outlook/Images/TheSimpsons_HC_Cvr.jpg?uuid=mdZRSGaWEeOguSSbuzRgLA"/> <span class="pb-caption">‘The Simpsons and Their Mathematical Secrets’ by Simon Singh (Bloomsbury USA)</span> </div> <p>Occasionally the mathematics does wind more deeply into the story, most notably in the 2010 “Futurama” episode “The Prisoner of Benda.” The plot turns on a device called the Mind-Switcher, which performs just the function its name suggests; over the course of the episode, as the apparatus is used with greater and greater abandon, the minds of the characters shuttle from body to body like singles switching bedrooms in a French farce. By the end, not a single consciousness remains in its proper skull. What’s worse, the characters can’t just retrace their steps to reunite each mind with its original body; the Mind-Switcher, having operated on a pair of minds, isn’t allowed to switch the same two minds again. </p> <p>Ken Keeler, who wrote the episode, realized that in order to get everything sorted out it might be necessary to introduce new characters, whose bodies could be used as waystations through which the minds could find their way home. An ordinary writer would have been content simply to find a way out of the episode. But Keeler became obsessed with the problem in its full generality, finally composing a proof that, no matter how wild the original fiesta of Mind-Switching, the damage can always be repaired once two new people are added to the system. This question may sound abstruse, but the part of math it belongs to — “combinatorial group theory” — is one of the hottest things going at the moment, with major advances popping up everywhere from Paris to Los Angeles. Keeler’s theorem isn’t one of those big advances, but it’s a real theorem, certainly the deepest piece of mathematics ever featured in a prime-time sitcom.</p> <p>Most of “The Simpsons and Their Mathematical Secrets” is about math, not comedy. But the most interesting parts of the book are the moments when the two pursuits come together. It’s a cliche by now that mathematics is supposed to be somehow allied with classical music. But why should music be the only art form to resonate with math? One “Simpsons” writer tells Singh: “I think the mathematical mind lends itself best to writing very silly jokes, because logic is at the heart of mathematics. The more you think about logic, the more you have fun twisting it and morphing it. I think the logical mind finds great humor in illogic.” </p> <p>Math, like comedy, derives its force from elegance, concision and moments of explosive surprise. A really great mathematical argument can make you laugh out loud. As the example of “The Simpsons” shows, it’s all in how you tell it.</p> <p class="trailer"> <p> <author> <b>Jordan Ellenberg </b> </author>is a professor of mathematics at the University of Wisconsin at Madison. His book “How Not to Be Wrong: The Power of Mathematical Thinking” will be published in June.</p> </p> <div class="extra"> <p class="booktitle"> <b>THE SIMPSONS AND THEIR MATHEMATICAL SECRETS</b> </p><div></div> <p> <b></b>By Simon Singh</p> <p>Bloomsbury. 253 pp. $26</p> <p class="rule"></p> </div></article>, last_modified=1387613840, slug=bw-ellenberg1222, site_service_lookup=/opinions, created_date_num=1386020674, thumbnail={aspect_ratio=1.5, featured={aspect_ratio=1.5, credit_line=, credit_organization=, raw_caption="The Simpsons and Their Mathematical Secrets" book cover, credit_name=, width=90, caption=, credit=null, url=https://img.washingtonpost.com/rw/2010-2019/WashingtonPost/2013/12/20/Web-Resampled/2013-12-20/TheSimpsons_HC_Cvr-kDnC--90x60@wp.com.jpg, height=60}, credit_line=, credit_organization=, raw_caption="The Simpsons and Their Mathematical Secrets" book cover, credit_name=, width=90, caption=, credit=null, url=https://img.washingtonpost.com/rw/2010-2019/WashingtonPost/2013/12/20/Web-Resampled/2013-12-20/TheSimpsons_HC_Cvr-kDnC--90x60@wp.com.jpg, height=60}, tertiary_slot=null, meta_title=null, include_in_site_search=true, published_date_num=1387576833, comment_count_fuzzy=null, canonical_url=https://www.washingtonpost.com/opinions/2013/12/20/ef1bfaa6-5b9a-11e3-bf7e-f567ee61ae21_story.html, mobile_headline=null, web_sked={}, html_data={img_count=1, graf_count=15, char_count=5575}, tags=[], _service_=com.washingtonpost.webapps.pagebuilder.services.ArticleContentService, social_headline=, display_date=1387576833, meta={review_info={decibels=, phone_no=, website=, movie_runtime=, movie_contains=, price=none, operating_hours=, critic_ratings=, decibel_descriptor=, editor_picks=, mpaa_rating=1}}, _id=http://www.washingtonpost.com/opinions/2013/12/20/ef1bfaa6-5b9a-11e3-bf7e-f567ee61ae21_story.html, publication_start=null, redirect_url=null, primary_slot_as_full_width_html=, status={color=458b00, name=Live, cms=Methode, raw=WPStories/Published, slug=live}, last_modified_num=1387613840, site_node=/opinions, title=null, story_type=null, display_date_num=1387576833, site_service_id=deprecated, object_hash=1527039703, secondary_slot={organization=, name=Bloomsbury USA, resize_base=https://img.washingtonpost.com/rf/, caption=‘The Simpsons and Their Mathematical Secrets’ by Simon Singh, photo_url=https://img.washingtonpost.com/rw/2010-2019/WashingtonPost/2013/12/16/Outlook/Images/TheSimpsons_HC_Cvr.jpg?uuid=mdZRSGaWEeOguSSbuzRgLA, id=f3598ec087c22ba17666733accb3454e03ed38a4, alignment=left, type=photo, caption_line=‘The Simpsons and Their Mathematical Secrets’ by Simon Singh (Bloomsbury USA), graphic_type=null, photo_path=/2010-2019/WashingtonPost/2013/12/16/Outlook/Images/TheSimpsons_HC_Cvr.jpg?uuid=mdZRSGaWEeOguSSbuzRgLA, photo_width=300}, sub_type=Review, creator_by_item_role={By=[{name=Jordan Ellenberg, in_byline=true, byline=Jordan Ellenberg, item_role=By}]}, _config_={path=http://www.washingtonpost.com/opinions/2013/12/20/ef1bfaa6-5b9a-11e3-bf7e-f567ee61ae21_story.html}, summary=“The Simpsons” can seem to have been around forever, so deeply wound into our culture that you sometimes forget humans created it and other humans shaped it into its present form. In this respect, it’..., tertiary_slot_as_full_width_html=, creator=[{name=Jordan Ellenberg, in_byline=true, byline=Jordan Ellenberg, item_role=By}], publishing_status={name=Live, slug=live}, decoded_headline=null, web_type=article_story, content_origin=methode, loid=null, uri=/2010-2019/WashingtonPost/2013/12/02/BookWorld/Stories/bw-ellenberg1222.xml, url=http://www.washingtonpost.com/opinions/2013/12/20/ef1bfaa6-5b9a-11e3-bf7e-f567ee61ae21_story.html, primary_slot_html=, secondary_slot_as_full_width_html=<div class="inline-content inline-photo inline-photo-normal"> <a name="f3598ec087c22ba17666733accb3454e03ed38a4"></a> <img class="unprocessed placeholder" src="https://img.washingtonpost.com/rf/image_60w/2010-2019/WashingtonPost/2013/12/16/Outlook/Images/TheSimpsons_HC_Cvr.jpg?uuid=mdZRSGaWEeOguSSbuzRgLA" data-hi-res-src="https://img.washingtonpost.com/rf/image_1484w/2010-2019/WashingtonPost/2013/12/16/Outlook/Images/TheSimpsons_HC_Cvr.jpg?uuid=mdZRSGaWEeOguSSbuzRgLA" data-low-res-src="https://img.washingtonpost.com/rf/image_480w/2010-2019/WashingtonPost/2013/12/16/Outlook/Images/TheSimpsons_HC_Cvr.jpg?uuid=mdZRSGaWEeOguSSbuzRgLA" data-raw-src="https://img.washingtonpost.com/rw/2010-2019/WashingtonPost/2013/12/16/Outlook/Images/TheSimpsons_HC_Cvr.jpg?uuid=mdZRSGaWEeOguSSbuzRgLA" ><br/> <span class="pb-caption">‘The Simpsons and Their Mathematical Secrets’ by Simon Singh (Bloomsbury USA)</span> </div>, created_date=1386020674, publication_end=null, published_date=1387576833, commercial_node=/entertainment/books, kicker={name=Opinions, url=/opinions}}

We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites.