← Latest papers
💻 computer science

Recursive Prime Factorizations: Dyck Words as Numbers

This paper proposes a class of non-positional numeral systems based on recursive prime factorizations that utilize Dyck words to uniquely represent natural numbers and rational numbers, while also exploring "Dyck-complete" languages where every Dyck word corresponds to a number.

Original authors: Ralph L. Childress

Published 2026-02-18
📖 6 min read🧠 Deep dive

Original authors: Ralph L. Childress

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to describe a number, like 520.

In the school system we all know, we write 520. This is a "positional" system. It's like a hotel where the room number tells you the value based on where the digits sit: the '5' is in the "hundreds" room, the '2' is in the "tens" room, and the '0' is in the "ones" room. But here's the catch: Why 10? Why not 12? Why not 7? The number 520 is just a collection of building blocks (primes: 2×2×2×5×132 \times 2 \times 2 \times 5 \times 13), but our decimal system hides those blocks behind the arbitrary choice of "10."

Ralph Childress, in this paper, asks: What if we built a number system that doesn't use a "base" at all? What if the number was its own recipe?

He proposes a system called Recursive Prime Factorization (RPF). Instead of using digits 0–9, this system uses only two symbols: an open parenthesis ( and a closed parenthesis ).

Think of it like a Russian Nesting Doll made entirely of parentheses.

The Core Idea: The Parenthesis Recipe

In this system, every number is a unique string of balanced parentheses, like (()(())).

Here is how the magic works:

  1. The Ingredients (Primes): Imagine the prime numbers (2, 3, 5, 7, 11...) are the "flavors."

    • The 1st flavor is 2.
    • The 2nd flavor is 3.
    • The 3rd flavor is 5.
    • And so on.
  2. The Container (Parentheses): A pair of parentheses () acts as a container.

    • () by itself represents the number 1.
    • ( ) (an empty container) represents 0.
  3. The Recipe (Nesting):

    • If you have a container ( ... ), the stuff inside tells you the exponent (how many times to multiply).
    • The position of the container in the line tells you which prime it is.
    • The first container in the line is about the prime 2.
    • The second container is about the prime 3.
    • The third is about 5.

Let's decode a simple example:
Imagine the string: (())(())

  • First part: (()). This is the 1st container. It contains ().
    • () inside means the exponent is 1.
    • So, this is 21=22^1 = 2.
  • Second part: (()). This is the 2nd container. It also contains ().
    • So, this is 31=33^1 = 3.
  • The Math: Multiply them together: 2×3=62 \times 3 = 6.
  • Result: The string (())(()) is the number 6.

Now, let's look at a complex one (The "Recursive" part):
What if the exponent itself is a big number?
In normal math, we write 252^5. In this system, we can't just write "5". We have to write the recipe for 5 inside the exponent slot.

  • The recipe for 5 is ()()(()) (which means 21×31×512^1 \times 3^1 \times 5^1).
  • So, to write 252^5, we put that whole recipe inside the first container:
    (()()(())
  • This looks like a nesting doll: The outer shell is the prime 2. Inside, it holds the entire structure of the number 5.

The "Dyck Word" Connection

The paper calls these strings Dyck Words. Think of a Dyck Word as a perfectly balanced sentence of parentheses.

  • (() is broken (unbalanced).
  • ()) is broken.
  • (()()) is perfect.

Childress proves that there is a special subset of these perfect sentences that corresponds exactly to every natural number (0, 1, 2, 3...). No two numbers share the same sentence, and every number has a sentence. It's a perfect 1-to-1 map.

The Super-Power: Going Beyond Whole Numbers

The most exciting part of the paper is the "Superrational" extension.

In standard math, if you want to write a fraction like 1/21/2, you need a slash or a decimal point. If you want to write a negative number, you need a minus sign.
Childress's system is so clever that it doesn't need new symbols.

  • Negative Numbers: He uses a "trick" at the very end of the string. If a string ends with an extra empty pair (), it flips the sign.
    • ... = Positive 520.
    • ...() = Negative 520.
  • Fractions and Roots: Because the system is recursive, you can put a "negative" inside an exponent.
    • 212^{-1} (which is 1/21/2) is written by putting a "negative" marker inside the exponent slot.
    • 2\sqrt{2} (which is 20.52^{0.5}) is written by nesting the recipe for a fraction inside the exponent.

This means you can write irrational numbers (like 2\sqrt{2}) and even transcendental numbers (like 222^{\sqrt{2}}) using only parentheses. No decimals, no minus signs, no square root symbols. Just ( and ).

Why Does This Matter? (The "So What?")

You might ask, "This is cool, but can I use it to balance my checkbook?"
No. It's terrible for that. It's way too long and hard to read for humans.

But, it's fantastic for computers and pattern recognition.

  1. No Arbitrary Bases: It reveals the "true DNA" of numbers. The patterns you see in the parentheses are patterns of the numbers themselves, not artifacts of our base-10 habit.
  2. Computer Science: Since these are just strings of parentheses, computer scientists can use "Grammar" tools (like those used to parse code) to analyze numbers.
  3. AI Learning: The paper suggests that if we teach an AI (like a Large Language Model) to read these parenthesis strings, it might learn the structure of math better than if we just fed it decimal numbers. It forces the AI to understand the "recipe" of the number rather than just memorizing digits.
  4. Compression: Because the system is recursive, it might be a very efficient way to store complex mathematical structures in a computer.

The Analogy Summary

  • Decimal System: Like describing a house by its address (Street, House Number, Zip Code). It works, but the "Street" (Base 10) is arbitrary.
  • RPF System: Like describing a house by its blueprint. You don't say "House #520." You say, "It's made of 2 bricks, 3 beams, and 5 windows."
    • If the house has a basement, the blueprint nests inside the main room.
    • If the house is a "negative" house (a ghost?), the blueprint has a special tag at the end.
    • If the house is a fraction, the blueprint has a tiny, nested blueprint inside it.

Childress has built a universal language of parentheses where every number, fraction, and root is a unique, perfectly balanced sentence. It's a way of looking at math that strips away the "human convention" of base-10 and leaves only the pure, recursive structure of numbers themselves.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →