Frequency of a Digit in the Representation of a Number and the Asymptotic Mean Value of the Digits

This paper establishes the conditions for the existence of the asymptotic mean value of ternary digits and identifies an infinite, everywhere dense set of numbers that possess this mean despite lacking a well-defined frequency for their digits.

S. O. Klymchuk, O. P. Makarchuk, M. V. Pratsiovytyi

Published 2026-03-06
📖 5 min read🧠 Deep dive

Imagine you have a magical number machine. You feed it a number between 0 and 1, and it spits out an endless string of digits in base 3 (ternary). Instead of just 0s and 1s like a computer, this machine uses 0s, 1s, and 2s.

For example, a number might look like this:
0.120102201...

The paper by Klymchuk, Makarchuk, and Prats'ovytyi asks two big questions about these endless strings:

  1. The Frequency Question: If you count how many 0s, 1s, and 2s appear, do they settle into a steady rhythm? (e.g., "Exactly 33% are 0s, 33% are 1s, and 33% are 2s").
  2. The Average Question: If you treat the digits as numbers and calculate their average, does that average settle down to a specific value?

Here is the breakdown of their findings using simple analogies.

1. The Two Ways to Measure a Number

Think of the digits in a number as a long line of people waiting in a queue.

  • Frequency (The "Demographics" Check): You count the people. Are there equal numbers of people wearing red shirts (0), blue shirts (1), and green shirts (2)? If you look at the first 1,000 people, then the first 1,000,000, does the percentage of red shirts stabilize?

    • The Problem: For some numbers, the crowd is chaotic. One minute you have 90% red shirts, the next minute 10%. The percentage never settles. In math terms, the frequency does not exist.
  • Asymptotic Mean (The "Average Weight" Check): Instead of counting colors, you assign a value to each person: Red=0, Blue=1, Green=2. You calculate the average weight of the line.

    • The Surprise: You can have a chaotic crowd where the colors never settle (no frequency), but the average weight is perfectly stable!

2. The Big Discovery: Chaos vs. Order

The authors discovered a fascinating paradox. Usually, we think that if the "colors" (frequencies) are chaotic, the "average" must be chaotic too.

But they proved that is not always true.

They constructed a special type of number where:

  • The Frequencies are wild and unpredictable. The ratio of 0s, 1s, and 2s keeps swinging back and forth forever. It never settles.
  • The Average is perfectly calm. No matter how far you go in the line, the average value of the digits stays exactly where you want it to be (say, 1.5).

The Analogy:
Imagine a DJ mixing music.

  • Frequency is like the ratio of Rock songs to Jazz songs. Sometimes the DJ plays 10 Rock songs in a row, then 10 Jazz songs. The ratio is all over the place.
  • The Mean is like the "energy level" of the party. Even if the genres are switching wildly, the DJ can adjust the volume and tempo so that the overall energy of the party stays exactly at a steady 7.5 out of 10.

The paper shows that you can have a party with wild genre-switching (no frequency) but a perfectly steady energy level (a stable mean).

3. The "Normal" Numbers

The paper also talks about "Normal Numbers." These are the "boring" but statistically perfect numbers.

  • In a normal number, the digits are perfectly random.
  • The frequency of 0s, 1s, and 2s is exactly equal (1/3 each).
  • Because the frequencies are stable, the average is also stable.
  • Key Finding: If you pick a random number from a hat, it is almost certainly a "Normal Number." The weird numbers where frequencies don't exist are extremely rare (mathematically speaking, they take up "zero space" in the number line), even though they are everywhere in a topological sense.

4. The "Everywhere Dense" Set

The authors found an infinite set of these "weird" numbers (where frequencies don't exist but the average does).

  • What does "Everywhere Dense" mean? Imagine the number line is a long road. If you pick any spot on that road, no matter how small the patch of road you look at, you will find one of these "weird" numbers hiding there. They are everywhere, like dust motes in a sunbeam, even though they are technically "rare" in terms of total volume.

Summary of the Paper's Contribution

  1. The Link: They showed that if you know the frequency of every digit, you automatically know the average. (If the colors are stable, the average is stable).
  2. The Exception: They proved the reverse is not true. You can have a stable average without stable frequencies.
  3. The Construction: They built a recipe (an algorithm) to create these specific numbers. You can tell the recipe, "I want a number where the average is 1.2, but the frequencies of 0s, 1s, and 2s should be chaotic," and the recipe will generate it.
  4. The Result: There is a massive, infinite, and everywhere-dense collection of numbers that behave chaotically in their composition but perfectly in their average.

In a nutshell: You can have a perfectly balanced scale (the average) even if the individual weights you put on it are jumping around wildly (the frequencies). This paper maps out exactly where and how to find those jumping weights.