There is a well-known relationship that when you divide a frequency factor of 10 into 10 steps,
you get approximately three steps per musical octave (frequency doubling). You can see this on any 31 band graphical equalizer. This relies on the "coincidence" seen the other table shown:
The geometric decade steps provide a close-to-exact doubling also, every three steps.
Right, so where did I get those 6.6439 and 3.3219 numbers? Those are just the approximations of log2(100) and log2(10).
At the heart of the "lexicographic coincidence" seems to be the observation that these logarithms have .64 and .32 fractional parts, or about 2/3 and 1/3.
So for instance since 100 = 2^(log2(100), we can rewrite 1.28 as 128 / 2^(log2(100) which is 2^7/2^(log2(100)).
So then we have powers of two on top and bottom and can subtract them: 2^(7 - log2(100)), which is where we get 7 - 6.6439 = 0.3561.
For all intents and purposes multiplying by 2 and multiplying it by a power of 10 until it's between 1 and 10 is equivalent to the dynamical system called an irrational rotation.
This equivalence isn't particularly deep but what is important is that irrational rotations are uniquely ergodic. This means that for all intents and purposes this procedure with any starting point will give a set of points that uniformly cover the unit interval (or in this case 1 to 10, logarithmically).
I’m not sure it is with any starting point. https://mathworld.wolfram.com/PowerFractionalParts.html describes a similar sequence, of which Hardy and Littlewood proved it is equidistributed for almost all real numbers (and the exceptions aren’t all trivial. The golden ratio and 1+√2 are exceptions, for example)
It is, but you're right to question it because it's a very nontrivial property that makes irrational rotations a bit of a special case.
The fact that it's uniquely ergodic (which roughly means that the uniform Lebesgue measure is the only measure that's invariant under irrational rotation) is required to ensure it works for all starting points. Most ergodic systems only ensure that it works for almost all starting points i.e. all starting points except for a measure 0 set.
where the arrow denotes dividing out as many powers of 10 as you can.
It seems surprising that the numbers are in the right order but of course it's not. Doing lexicographic sort and then dividing out powers of 10 is the same as dividing out powers of 10 and then just doing a numeric sort. So the lex sort is a sort of (accidental) legerdemain here.
The powers to which you raise 2 are given by the inverses of 1, 2, 3 etc mod 10. In other words you're raising (10^0.3) to a power k, chosen so that the remainder 0.3 * k mod 1 is the multiple of 0.1 that you need.
1 / 3 mod 10 = 7
2 / 3 mod 10 = 4
3 / 3 mod 10 = 1
4 / 3 mod 10 = 8
...
Does this generalize? Like taking 2^0, 2^1, ..., 2^99 -> lexicographical sort -> putting the decimal point, and then comparing to 10^0.00, 10^0.01, ...?
Right, so where did I get those 6.6439 and 3.3219 numbers? Those are just the approximations of log2(100) and log2(10).
At the heart of the "lexicographic coincidence" seems to be the observation that these logarithms have .64 and .32 fractional parts, or about 2/3 and 1/3.
So for instance since 100 = 2^(log2(100), we can rewrite 1.28 as 128 / 2^(log2(100) which is 2^7/2^(log2(100)).
So then we have powers of two on top and bottom and can subtract them: 2^(7 - log2(100)), which is where we get 7 - 6.6439 = 0.3561.