Recursion

By Tom McCoy

This page lists my favorite examples of recursion. I take recursion to mean "having an item of category X inside another item of category X." (This definition is the standard one in linguistics. It differs from the computer science notion of recursion, which refers to having a process call itself, but the concepts are related: Linguistics-style recursion is one potential result of computer-science-style recursion. For discussion of the definition of recursion, see this page).

1. Cookies & Creme flavored Oreos

These now-discontinued Oreos contained little bits of Oreo inside their frosting. (Image via Pinterest.)

Package of Cookies & Creme flavored Oreos

2. List of lists of lists

Wikipedia contains an extensive list of lists of lists.


3. Recursion in geography

  1. Countries within countries: San Marino and Vatican City are both entirely surrounded by Italy. Lesotho is entirely surrounded by South Africa.
  2. Dahala Khagrabari: Until 2015, there was a territory of India inside a territory of Bangladesh inside a territory of India inside a territory of Bangladesh. The innermost territory was called Dahala Khagrabari. Below is a map of Dahala Khagrabari from Wikipedia
    Map of Dahala Khagrabari
  3. Recursive islands and lakes: A recursive island occurs when an island contains a lake that contains an island. A recursive lake occurs when a lake contains an island that contains a lake. Per Wikipedia, there are several examples of an island within an island within an island, and there is one example of a lake within a lake within a lake. Below is a map from Wikipedia of Isle Royale, an island within Lake Superior that contains several lakes of its own.
    Isle Royale

4. Siphonaptera

Augustus De Morgan (a logician known for De Morgan's laws) wrote the following poem, entitled Siphonaptera:

Great fleas have little fleas upon their backs to bite 'em,
And little fleas have lesser fleas, and so ad infinitum.
And the great fleas themselves, in turn, have greater fleas to go on;
While these again have greater still, and greater still, and so on.


5. Recursion on TV

The following piece of dialogue appears in Community (Season 2, Episode 3) and gives a rare example of double center embedding.

Annie: Bitter much?
Britta: Say 'Bitter much?' much?
Annie: Say 'Say "Bitter much?" much?' ... much?

6. Recursive children's songs

There are many children's songs that can be repeated indefinitely—if not quite ad infinitum, definitely ad nauseam. Some well-known ones include the following:

John Jacob Jingleheimer Schmidt

John Jacob Jingleheimer Schmidt,
His name is my name too,
Whenever we go out,
The people always shout,
There goes John Jacob Jingleheimer Schmidt,
Da da da da da da da...
John Jacob Jingleheimer Schmidt,
His name is my name too,
...

Yon Yonson

My name is Yon Yonson
I work in Wisconsin
I work in a lumbermill there.
The people I meet as I walk down the street,
They say what's my name and I say:
"My name is Yon Yonson..."

The Song that Gets on Everybody's Nerves

I know a song that gets on everybody's nerves,
Everybody's nerves,
Everybody's nerves,
I know a song that gets on everybody's nerves,
And this is how it goes:
``I know a song that gets on everybody's nerves,
..."

The Song that Never Ends

This is the song that never ends,
Yes, it goes on and on, my friends,
Some people started singing it, not knowing what it was,
And they'll continue singing it forever just because
This is the song that never ends,
...

7. Art within art

  1. Play within a play: A Midsummer Night's Dream contains another play called Pyramus and Thisbe, performed by the characters.
  2. Story within a story: Many stories contain stories within them that are narrated by characters in the story. For example, all of the tales in One Thousand and One Nights are told by Scheherazade, a character in a higher-level narrative. Some of these stories, such as "Sinbad the Sailor," contain a similar framing device, leading to a story within a story within a story: Scheherazade is telling a story about Sinbad who is telling a story about his voyages.
  3. Painting within a painting: René Magritte's The Human Condition is one among many paintings to feature another painting within them. (Image from Wikipedia.)
    The Human Condition (painting by Magritte)

8. A recursive name

In 2018, Macaulay Caulkin asked his Twitter followers to vote on what his middle name should be. The winning choice was Macaulay Caulkin, so he legally changed his name to Macaulay Macaulay Culkin Culkin. (Screenshot from Twitter.)

Tweet in which Macaulay Culkin says Merry Christmas to me, from all of you! My new middle name has been chosen. You voted and the winner is clear. In 2019 my new legal name will be: Macaulay Macaulay Culkin Culkin. It has a nice ring to it (if you like my name).

9. Recursive advertising

The Droste brand of cocoa powder uses a recursive image on its packaging. (Image from Amazon.) Thanks to Herb Clark for pointing me to this!

Image of a package of Droste cocoa powder. The package shows a woman holding a tray, on which is a box of Droste cocoa powder (showing the same image of a woman holding a tray, on which is a box of Droste cocoa powder, showing the same image of a woman holding a tray...).

10. A Tweet that quotes itself

In 2020, Oisín Moran tweeted a tweet that quotes itself. This is challenging because normally tweet A needs to exist before tweet B for tweet B to quote tweet A; see this blog post for how it was done (though it might be easier to achieve now that Twitter allows tweets to be edited). A screenshot of the tweet is below; sadly, Twitter does not give it a visual display that makes the recursion apparent (i.e., you cannot see the text of the quoted tweet like you normally can when a tweet is quoted).

Image of a Tweet that quotes itself.

11. A phrase embedded in a translation of itself

The baseball team for Los Angeles is the Los Angeles Angels. "The Los Angeles Angels" is a curious phrase because "Los Angeles" translates to "the angels"; thus, "the Los Angeles Angels" amounts to a translation of "the angels" contained inside "the angels."


12. Two fictional universes embedded inside each other

There is an episode of The Sopranos (season 6, episode 4) in which Gilmore Girls is playing in the background. There is also an episode of Gilmore Girls (season 7, episode 17) in which Lorelai Gilmore makes a reference to Tony Soprano. This suggests that each show is a TV show within the universe of the other one. (Source: Reddit).


13. Recursive acronyms

A recursive acronym is an acronym in which one of its letters stands for itself. For instance, the operating system and software collection GNU stands for "GNU's Not Unix." Here is a list of prominent examples:

  1. GNU (a free software colection): GNU's Not Unix
  2. PHP (a scripting language): PHP: Hypertext Processor
  3. pip (a Python package installer): Pip Installs Packages
  4. TikZ (a drawing package often used within LaTeX): TikZ ist kein Zeichenprogramm (German for "TikZ is not a drawing program")
  5. YAML (a data serialization language): YAML Ain't Markup Language

14. Circular definitions

If you don't know the meaning of a word, it's natural to look it up in the dictionary. You might run into a problem, though: What if the definition also contains a word you don't know? In principle, you can keep looking up each word in the definition (and then each word in the definition of each word in the definition, etc.), but where you'll really run into a problem is that you might eventually hit a loop: understanding the definition of a word might require you to already know that word because that word is contained within the graph of definitions that stems from it. Usually, it would take a long time before you run into a loop, but the images below show a loop with just two words.

Screenshots of two definitions from Dictionary.com. On the left is the definition of 'mortar', which is 'a receptacle of hard material, having a bowl-shaped cavity in which substances are reduced to powder with a pestle.' On the right is the definition of 'pestle', which is 'a tool for pounding or grinding substances in a mortar.' Each word's definition uses the other word.