Transformations and functions that preserve the asymptotic mean of digits in the ternary representation of a number

This paper investigates transformations on the interval [0,1)[0,1) and functions that preserve the asymptotic mean of digits in the ternary (or ss-adic) representation of numbers, establishing the necessary and sufficient conditions for such transformations to belong to this class.

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

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

Imagine you have a magical number machine. You feed it a number between 0 and 1, and it spits out a long, infinite string of digits in a specific language (like base-3, which uses only 0, 1, and 2).

This paper is about a specific rule for this machine: Can we change the number inside the machine without changing the "average flavor" of the digits it produces?

Here is a breakdown of the paper's ideas using simple analogies.

1. The Setup: The Infinite Bead Necklace

Think of any number between 0 and 1 as an infinite necklace made of beads.

  • In our normal world (base-10), the beads are 0 through 9.
  • In this paper's world (base-3), the beads are only 0, 1, and 2.

Every number has a unique pattern of these beads. For example, the number 0.1 in base-3 is just a 1 followed by infinite 0s. But most numbers have a chaotic, random-looking mix of 0s, 1s, and 2s.

2. The Two Rules: Frequency vs. Average

The authors are interested in two ways to describe the "flavor" of the necklace:

  • Rule A: The Frequency (The Count).
    Imagine you count how many red beads (0s), blue beads (1s), and green beads (2s) are on the necklace. If you look at a very long section, do you see 33% red, 33% blue, and 33% green? This is the digit frequency.
  • Rule B: The Asymptotic Mean (The Average Score).
    Imagine you give each bead a score: 0 for a red bead, 1 for a blue bead, and 2 for a green bead. If you add up all the scores and divide by the total number of beads, what is the average score?
    • If you have equal amounts of 0, 1, and 2, the average is 1.
    • If you have mostly 0s, the average is close to 0.
    • If you have mostly 2s, the average is close to 2.

3. The Big Question

The paper asks: Can we rearrange the beads on the necklace so that the Average Score stays exactly the same, but the Frequencies (the specific counts of red, blue, and green) change?

The "Obvious" Answer (The Identity Machine)

If you just leave the necklace alone, the average stays the same, and the frequencies stay the same. This is boring.

The "Tricky" Answer (The Inverter)

Imagine a machine that swaps every 0 with a 2, and every 2 with a 0, but leaves 1s alone.

  • Old Average: If you had mostly 0s (low score), you now have mostly 2s (high score). The average changed.
  • Conclusion: This machine breaks the rule. It changes the average.

The "Surprising" Discovery (The Main Result)

The authors prove a very strict rule for base-3 numbers:

If you want to keep the Average Score exactly the same, you are forced to keep the Frequencies exactly the same too.

The Analogy:
Imagine you are baking a cake where the "flavor" is determined by the ratio of sugar (0), flour (1), and salt (2).

  • The "Average Score" is the total sweetness.
  • The "Frequencies" are the exact cups of each ingredient.

The paper says: In this specific kitchen (base-3), if you want the cake to taste exactly the same (same average), you cannot swap the ingredients around. You must use the exact same amount of sugar, flour, and salt.

If you try to change the ratio of ingredients (frequencies) while keeping the total sweetness (average) the same, you will fail. The math proves that for base-3, these two things are locked together. You can't change one without changing the other.

4. The "Almost Everywhere" Loophole

The paper then asks: "What if we don't care about every number, but only the 'normal' ones?"

In math, "normal" numbers are like a perfectly shuffled deck of cards. They have a perfect 1/3 chance of being a 0, 1, or 2.

  • The authors found a way to build a machine that works on these "perfectly shuffled" numbers.
  • This machine swaps some 1s for 0s and some 1s for 2s in a very specific, rhythmic pattern (like swapping every 7th bead).
  • The Result: The machine changes the frequency of the beads (you get slightly more 0s and 2s, and fewer 1s), but because it swaps them in a balanced way, the Average Score stays exactly 1.

The Analogy:
Imagine a crowd of people where everyone is wearing a red, blue, or green hat.

  • Strict Rule: If you want the average "color score" to stay the same, you can't change who is wearing what.
  • Loophole: If you only look at a specific, huge group of people (the "normal" numbers), you can swap a few hats around in a clever pattern. The crowd looks different (different hat counts), but the average color score remains identical.

5. The "Chaos" Machine

Finally, the authors build a machine that is even weirder.

  • It takes a normal number.
  • It rearranges the beads in a way that the Average Score is still preserved.
  • BUT, it does this by making the frequencies chaotic. The machine ensures that if you count the beads, the percentage of 0s, 1s, and 2s never settles down to a single number. It keeps fluctuating forever.
  • Result: The average is stable, but the individual counts are wild and undefined.

Summary

This paper is a detective story about numbers:

  1. The Mystery: Can we change the ingredients of a number (frequencies) without changing its average taste?
  2. The Verdict: For base-3 numbers, No, unless you are very careful. If you try to change the ingredients, the average taste must change.
  3. The Exception: If you only care about "normal" numbers, you can perform a magic trick where you swap ingredients to keep the average taste the same, even though the ingredient counts have changed.
  4. The Twist: You can even make the ingredient counts so chaotic they never settle, while the average taste remains perfectly steady.

The authors essentially mapped out the "laws of physics" for how digits behave in these infinite number strings, showing us exactly where the rules are rigid and where there is room for magic.