Log in Sign up
Back to Discover
🔢

Recursion

math Maturity 7-9

Some things repeat in a loop.

First matryoshka museum doll open.jpg
First matryoshka museum doll open.jpg
It is like a tiny doll inside a big doll. The pattern can go on and on. This helps us solve puzzles. It can be very fun to see. Can you find a pattern today?

46 words

Some things repeat in a loop.

First matryoshka museum doll open.jpg
First matryoshka museum doll open.jpg
This is called recursion. It happens when a rule uses itself. Imagine a tiny doll inside a big doll.
Droste Cacao Alcalinise blikje, foto4.JPG
Droste Cacao Alcalinise blikje, foto4.JPG
Each doll has a smaller one inside. This can go on many times.

To work well, recursion needs a stop. We call this a base case. Without a stop, the loop never ends.

Sierpinski triangle.svg
Sierpinski triangle.svg
It can even make pretty shapes. These shapes look like patterns. Recursion is a very cool way to think.

89 words

Imagine a tiny doll inside a larger doll.

First matryoshka museum doll open.jpg
First matryoshka museum doll open.jpg
Each doll holds a smaller version of itself. This idea is called recursion. Recursion happens when a rule or a step uses itself to work.
Droste Cacao Alcalinise blikje, foto4.JPG
Droste Cacao Alcalinise blikje, foto4.JPG
You can see this in art. One image might show a person holding a box. That box shows the same person holding the same box. This can create a loop that looks like it never ends.

To keep things from going on forever, recursion needs a stop. We call this a base case. A base case is a simple step that does not use recursion. Without it, a process might loop forever.

Sierpinski triangle.svg
Sierpinski triangle.svg
In math, recursion can build complex patterns. For example, the Fibonacci sequence uses recursion to find numbers. It uses the two numbers before it to find the next one. Recursion is also used in computer science and language. It helps us understand how sentences can grow very long. It even helps create beautiful shapes called fractals.

173 words

Have you ever seen a picture of a person holding a box?

Droste Cacao Alcalinise blikje, foto4.JPG
Droste Cacao Alcalinise blikje, foto4.JPG
Inside that box is a smaller version of the same person holding the same box. This creates a loop that seems to go on forever. This idea is called recursion. Recursion happens when a rule or a process depends on a previous version of itself. It is like a set of steps that calls upon its own steps to finish a job. You might see this in a mirror that faces another mirror. It can also look like a snake eating its own tail.
Serpiente alquimica.jpg
Serpiente alquimica.jpg

To work correctly, recursion needs two special parts. The first part is called a base case. A base case is a simple stopping point that does not use recursion. Without a base case, a process might loop forever without ever finishing. The second part is the recursive step. This is a rule that breaks a big problem into smaller versions. These smaller versions must always get closer to the base case. Think of finding your ancestors. Your parent is a base case. Your parent's ancestor is the recursive step.

Mixing Sourdough starter into the flour.jpg
Mixing Sourdough starter into the flour.jpg

Math experts have used recursion to explain how numbers work for a long time. In the 19th century, mathematicians Richard Dedekind and Giuseppe Peano created the Peano axioms. These rules define natural numbers using recursion. They say that zero is a natural number. Then, they say every number has a successor, which is also a natural number. This simple rule lets us build all the numbers we use for counting.

Sierpinski triangle.svg
Sierpinski triangle.svg
We also see recursion in the Fibonacci sequence. This sequence uses the two previous numbers to find the next one. It is a famous way to show recursive math in action.

Recursion is also a very important part of how we use language. A famous linguist named Noam Chomsky argued that recursion helps us make endless sentences. A sentence can have another sentence tucked inside it. For example, you might say, "Dorothy thinks that witches are dangerous." The part about the witches is a whole sentence inside the first one. This allows humans to create sentences of almost any length. Some people, like Daniel Everett, have challenged this idea. However, many others believe recursion is what makes human language so creative.

Even computer scientists enjoy playing with recursion. They often use it to make jokes in their textbooks. One joke says that to understand recursion, you must first understand recursion. This is a circular definition that never reaches a base case. Some computer programs even use recursive names. For example, the name PHP stands for "PHP Hypertext Preprocessor." This means the name uses itself to define itself.

Toronto recursive history plaque.jpg
Toronto recursive history plaque.jpg
Whether in math, art, or talk, recursion shows how small rules can build huge things.

476 words

Recursion is a process where a concept or procedure depends on a previous or simpler version of itself.

Droste Cacao Alcalinise blikje, foto4.JPG
Droste Cacao Alcalinise blikje, foto4.JPG
This creates a pattern where a rule is applied within its own definition. While this can appear to create an infinite number of instances, it is usually designed to prevent an infinite loop. In mathematics and computer science, recursion is a fundamental tool used to define complex objects through simple rules. It is also used in linguistics to explain the structure of human language.
Serpiente alquimica.jpg
Serpiente alquimica.jpg

To function correctly, a recursive process must possess two distinct properties. The first is a base case, which is a terminating scenario. This is a simple version of the problem that does not require recursion to reach an answer. The second property is the recursive step. This is a set of rules that reduces all successive cases toward that base case. Without a base case, a recursive procedure would enter an endless loop.

Mixing Sourdough starter into the flour.jpg
Mixing Sourdough starter into the flour.jpg
For example, an ancestor can be defined recursively. A parent is a base case. A parent's ancestor serves as the recursive step.

In mathematics, recursion allows for the formal definition of entire sets of numbers. In the 19th century, Richard Dedekind and Giuseppe Peano developed the Peano axioms. These axioms define the natural numbers using a recursive successor function. They state that zero is a natural number and that every natural number has a successor. This recursive rule allows one to generate the entire set of natural numbers.

Sierpinski triangle.svg
Sierpinski triangle.svg
Other mathematical objects, such as factorials and the Fibonacci sequence, also rely on these recursive principles. In the Fibonacci sequence, each number is the sum of the two preceding ones, using F(0)=0 and F(1)=1 as base cases.

Linguistics provides another complex application for recursive theory. The linguist Noam Chomsky argued that recursion explains the infinite creativity of human language. He suggested that there is no upper bound on the number of grammatical sentences or their length. This is possible because a sentence can contain another sentence within its structure. For instance, a sentence might include a noun phrase, a verb, and then an entire second sentence. This allows for structures like, "Dorothy thinks that Toto suspects that the Tin Man said..." While Daniel Everett has challenged the idea that recursion is essential to all languages, many others, such as Andrew Nevins, continue to support it.

Computer science and programming culture also embrace recursion, often through humor. Because recursion involves a procedure invoking itself, it can lead to circular definitions. This is used in "recursive humor," where a definition lacks a base case. A common joke in textbooks is: "To understand recursion, you must understand recursion."

Toronto recursive history plaque.jpg
Toronto recursive history plaque.jpg
You can also find recursive acronyms in software. For example, PHP stands for "PHP Hypertext Preprocessor," and WINE stands for "WINE Is Not an Emulator." These names use the term itself to complete the definition.

Beyond simple definitions, recursion appears in advanced mathematical optimization and geometry. Dynamic programming is an optimization approach that restates multi-step problems in recursive form. This often involves the Bellman equation, which relates the value of a problem at one step to its value at a later step. In geometry, finite subdivision rules create fractal-like images. A process like the "middle thirds" technique used for the Cantor set is a form of geometric recursion. These rules allow complex, repeating patterns to emerge from simple, iterative steps.

Recursion connects many different fields through the shared logic of self-reference. It moves from the way we count numbers to the way we build complex thoughts in speech. It even appears in the way we design software and analyze geometric shapes. Whether it is seen in the Droste effect in art or the Peano axioms in logic, recursion shows how simple, repeating rules can build vast and complex systems.

653 words
🖼️ Images & Media (7)
File:Droste Cacao Alcalinise blikje, foto4.JPG
Droste Cacao Alcalinise blikje, foto4.JPG
File:Serpiente alquimica.jpg
Serpiente alquimica.jpg
File:Mixing Sourdough starter into the flour.jpg
Mixing Sourdough starter into the flour.jpg
File:Toronto recursive history plaque.jpg
Toronto recursive history plaque.jpg
File:Sierpinski triangle.svg
Sierpinski triangle.svg
File:First matryoshka museum doll open.jpg
First matryoshka museum doll open.jpg
File:Giotto. The Stefaneschi Triptych (verso) c.1330 220x245cm. Pinacoteca, Vatican..jpg
Giotto. The Stefaneschi Triptych (verso)...
Up Next
🔢
Transfinite induction
Math
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.