QNFO Papers

Quick read · plain language

Numbers Have a Hidden Tree Shape

A plain-language version of “Positional Notation as an Intrinsic Ultrametric Valuation”

3 min readNo jargon, no mathematicsNumbers & p-adics

The short version

Numbers written in the usual way sit on a line in school lessons. But the same numbers also form a tree shape based on their ending digits. This paper proves that the tree shape gives a true way to measure distance between numbers. It counts exact cases and shows this tree distance differs greatly from line distance.

The hidden shape of digit strings

People write whole numbers as strings of digits. In school, teachers place these numbers on a straight line. The distance between two numbers on this line is just their ordinary difference. But the digits themselves tell another story. Two numbers that end with the same digits are close in a different sense. The paper says this second kind of closeness has never been made fully formal before. This gap hides the true tree-like nature of how digits work.

The authors use a framework from number theory that deals with non-line-based ways to measure. They define a rule called the b-adic valuation, which counts how many ending digits two numbers share. From this rule they build a distance measure. They prove this measure satisfies all the required rules for a true distance. The key rule is the strong triangle rule, which says the direct path is never longer than the detour path through a third point. This is a stricter rule than the one for ordinary distance. When this rule holds, the space is called an ultrametric space, meaning the direct path is never longer than the detour path through a third point.

How the tree works

Each number becomes a path in a tree. The root of the tree is at the top. Each level going down matches one digit position, starting from the rightmost digit. Two numbers share a branch point where their paths meet. The depth of this meeting point is the number of ending digits they share. The tree distance is one divided by the base raised to this depth. More shared ending digits mean a smaller distance. This tree view is not just a picture. It is built into how positional notation works.

Counting cases for three-digit numbers

The paper counts all unordered pairs of decimal integers from zero to nine hundred ninety-nine. There are about half a million such pairs. Most pairs share no ending digits. These pairs have the largest tree distance, which is one. Some pairs share one ending digit. These have a smaller distance. A smaller group shares two ending digits. They have an even smaller distance. No two different numbers in this range share all three digits. The counts drop by a factor of ten at each step, following the base-ten structure.

Comparing two kinds of distance

For numbers zero to ninety-nine, the paper finds the average tree distance. It also finds the average ordinary distance, scaled to fit the same range. The tree average is much larger than the scaled ordinary average. Their ratio is about two and seven-tenths. The paper also looks at pairs with small ordinary distance, nine or less. There are eight hundred fifty-five such pairs. Every single one of these nearby-on-the-line pairs has the largest possible tree distance. They all differ in their last digit. So numbers close on the line can be far apart in the tree.

What this means and what it does not show

The paper argues that seeing the tree shape could change teaching, computer data structures, and security methods. Educators could teach number sense through digit trees. Designers could build tree-based storage. Security work could use the hidden base parameter in new ways.

The paper does not claim that the tree distance replaces the line in all uses. It does not test these ideas in classrooms or software. It does not explore bases other than ten in depth. It leaves open how much practical gain comes from switching to the tree view. The work is entirely mathematical proof and exact counting, with no data collected from real systems.

Words used here

ultrametric
a way to measure distance where the direct path is never longer than the detour path through a third point
valuation
a rule that assigns a size or level to each number based on how it divides
positional notation
the usual way of writing numbers where each place means ones, tens, hundreds, and so on

Learn more in plain language

This plain-language version was written by an AI model from the text of the paper and checked against plain-language rules: everyday words, no mathematics, no unexplained names. It leaves details out and can still be wrong; the paper is the source of record. To report a problem, open the paper, select the passage and choose Report.

For specialists: the technical digest, quoted from the paper

In the paper's words

Positional numeral systems are taught and implemented as points on the Archimedean real line, yet the digit strings that encode integers form a rooted b‑ary tree. This work identifies the concrete gap that the native metric induced by digit‑string structure has never been formalized, leading to hidden assumptions about distance and clustering. We adopt the valuation framework of non‑Archimedean number theory, define the b‑adic valuation v_b, and prove that the associated distance d_b(x,y)=b^-v_b(x-y) satisfies all ultrametric axioms for every integer base b≥2.

The abstract, verbatim; every line below is quoted from the text.

What it claims

that the native metric of positional notation is the b‑adic ultrametric—would be falsified if a concrete counterexample were found where the strong triangle inequality fails for the distance d_b defined above. Since the proof in Section 4.1 is purely algebraic, any such counterexample would imply an error in the definition of v_b or in the divisibility argument.

Numbers it reports

  1. Dividing (4) by the total number of pairs (1) yields the proportion of pairs at distance $b^{-k}$: $$ \begin{aligned} p_{k} &=\frac{N_{k}}{\binom{b^{m}}{2}} =\frac{\displaystyle\frac{b^{\,2m-k-1}(b-1)}{2}} {\displaystyle\frac{b^{m}\bigl(b^{m}-1\bigr)}{2}}\\[2mm] &=\frac{(b-1)\,b^{\,m-k-1}}{b^{m}-1} \xrightarrow[m\to\infty]{}\frac{b-1}{b^{k+1}}. \tag{5} \end{aligned} $$ Thus, for large $m$, the probability that two random $m$‑digit numbers are at ultrametric distance $b^{-k}$ decays geometrically with factor $1/b$ per increase of $k$.

    from 2. Asymptotic distribution
  2. For a fixed width $m$, the mean ultrametric distance is $$ \bar d_{b} = \frac{1}{\binom{b^{m}}{2}} \sum_{k=0}^{m-1} N_{k}\,b^{-k}. $$ Substituting (4) gives $$ \begin{aligned} \bar d_{b} &= \frac{2}{b^{m}\bigl(b^{m}-1\bigr)} \sum_{k=0}^{m-1} \frac{b^{\,2m-k-1}(b-1)}{2}\,b^{-k}\\[2mm] &= \frac{(b-1)\,b^{\,2m-1}}{b^{m}\bigl(b^{m}-1\bigr)} \sum_{k=0}^{m-1} b^{-2k}\\[2mm] &= \frac{(b-1)\,b^{\,m-1}}{b^{m}-1} \frac{1-b^{-2m}}{1-b^{-2}}. \tag{7} \end{aligned} $$ For $b=10$, $m=2$ this reduces to $$ \bar d_{10}= \frac{9\cdot10^{1}}{10^{2}-1}\, \frac{1-10^{-4}}{1-10^{-2}} =\frac{90}{99}\cdot\frac{0.9999}{0.99} =\frac{101}{110}\approx0.91818, $$ exactly the value reported in Section 4.4.

    from 6. Worked example: mean $b$‑adic distance for arbitrary base
  3. A minimal experiment would construct a depth‑3 radix tree (10 × 10 × 10 nodes) and measure the average lookup time for queries based on trailing‑digit similarity versus a flat hash table of the same size.

    from (c) Smallest Next Experiment
  4. Two quantitative illustrations are derived analytically: (1) exact counts of ultrametric distances for all unordered pairs of decimal integers $0\le x\lt y\le999$, yielding $450\,000$ pairs at distance $1$, $45\,000$ at $0.1$, and $4\,500$ at $0.01$; (2) the mean $b$‑adic distance for the interval $0\le x\lt y\le99$ is $\frac{101}{110}\approx0.918$, the diameter‑normalized Euclidean mean is $\frac{101}{297}\approx0.340$, giving a ratio of exactly $2.70$, and all $855$ pairs with Euclidean distance $\le9$ are maximally distant ($d_b=1$).

    from Abstract
  5. Analytic computation of the mean $b$‑adic distance for decimal integers $0$–$99$, the normalized Euclidean mean, and the ratio of the two (Section 5).

    from 1. Introduction
  6. Normalizing each Euclidean distance by $99$ and averaging yields $$ \bar d_{\text{Euc}}=\frac{166\,650}{4\,950\times99} =\frac{166\,650}{490\,050} =\frac{101}{297}\approx0.34006734. $$ Ratio of means. $$ \frac{\bar d_{10}}{\bar d_{\text{Euc}}} =\frac{101/110}{101/297} =\frac{297}{110}=2.70. $$ Pairs with Euclidean distance $\le9$.

    from 4.4 Mean‑Distance Analysis for Decimal Integers $0$–$99$

How it is done

  1. Formal proof that digit‑string comparison in any base $b$ defines a non‑Archimedean valuation and satisfies the ultrametric axioms (Section 4).

    from 1. Introduction
  2. We work entirely analytically.

    from 3. Methods
  3. By definition $v_b(x-y)\in\mathbb{N}\cup\{\infty\}$, hence $b^{-v_b(x-y)}\ge0$.

    from 4.1 Valuation Axioms
  4. We set $b=10$ and $w=2$ (two‑digit width).

    from 4.4 Mean‑Distance Analysis for Decimal Integers $0$–$99$

What would falsify it

  1. The main claim—that the native metric of positional notation is the $b$‑adic ultrametric—would be falsified if a concrete counterexample were found where the strong triangle inequality fails for the distance $d_b$ defined above.

    from Falsifiability
  2. Since the proof in Section 4.1 is purely algebraic, any such counterexample would imply an error in the definition of $v_b$ or in the divisibility argument.

    from Falsifiability
  3. The experiment would falsify the claim if the tree does not outperform the hash table in lookup speed for suffix‑based queries.

    from (c) Smallest Next Experiment

Where the claim stops

  1. The proof assumes an integer base; non‑integer or mixed‑radix systems require separate treatment.

    from Limitations
  2. Future work should explore algorithmic exploitation of the ultrametric hierarchy and empirical validation in real‑world systems.

    from 8. Conclusion
  3. This work identifies the concrete gap that the native metric induced by digit‑string structure has never been formalized, leading to hidden assumptions about distance and clustering.

    from Abstract

Where to read

  1. Abstract170 words · 1 min
  2. 1. Introduction218 words · 1 min
  3. 2. Background and Related Work307 words · 1 min
  4. 3. Methods169 words · 1 min
  5. 4. Analysis488 words · 2 min
  6. 5. Results72 words · 1 min
  7. Appendix C. Extended Derivations and Worked Examples735 words · 3 min
  8. 6. Discussion227 words · 1 min
  9. 7. Practical Implications and Engineering Pathways283 words · 1 min
  10. 8. Conclusion95 words · 1 min
  11. Provenance and AI Involvement225 words · 1 min

Read from the paper itself: 35 sections, 3,096 words. Nothing in this digest is written by a model; a line that is not a sentence of the paper is not shown. Have a specific question? Ask this paper.

The full text · Ask the whole corpus