User:Akselai/RES comma
Recursive equal step (RES) commas are a sequence of commas {a1, a2, ...} generated by an initial interval a0 and a set of intervals {b1, b2, ..., bk}. They are constructed by repeatedly comparing stacks of an interval with each of the intervals, and finding the smallest difference between them.
Mathematical Definition
By convention, all intervals are in fraction form (instead of monzo form). Suppose S is a finite set of intervals {bk} and a is an interval (generically am ∉ S for all m ∈ Z). Then for all i > 0,
a0 = a
ai+1 = minm ∈ Z, 1 ≤ j ≤ k ‖aim/bk‖
where ‖x‖ = exp|log(x)| denotes the multiplicative absolute value, which turns an interval into an ascending interval.
We can write an as RESn(a; S).
Worked out example
We start with a = 5/4, S = {3/2, 2/1}. The closest power of a to 3/2 is (5/4)2, and the closest power of a to 2/1 is (5/4)3. Since (2/1)/(5/4)3 < (5/4)2/(3/2), we have a1 = (2/1)/(5/4)3 = 128/125, the augmented comma.
With the value of a1, we can find a2. The closest power of a1 to 3/2 is (128/125)17, and the closest power of a1 to 2/1 is (128/125)29. Since (128/125)17/(3/2) < (2/1)/(128/125)29, we have a2 = (3/2)/(128/125)17 = [-120 1 51⟩.
We can repeat this process to get a3, a4 and so forth.
The complexity of the comma after 2 steps is already very large. However, [-120 1 51⟩ is not small compared to other commas with a similar complexity; it is larger than 3.9 cents, which is roughly the size of [24 -21 4⟩, the vulture comma.
More examples
n | RESn(a; S) | Size (cents) |
---|---|---|
0 | 5/4 | 386.31 |
1 | 128/125 | 41.059 |
2 | [-120 1 51⟩ | 3.9544 |
3 | [36361 -303 -15453⟩ | 1.8144 |
4 | [14071708 -117262 -5980311⟩ | 0.21180 |
n | RESn(a; S) | Size (cents) |
---|---|---|
0 | 7/5 | 582.51 |
1 | 50/49 | 34.976 |
2 | [-8 1 -19 18⟩ | 0.86075 |
3 | [11153 -1394 26486 -25092⟩ | 0.10909 |
In general, the more elements S contains, the smaller the comma after a fixed number of steps. The rate of diminishing of RES commas is an active unsolved problem (at least user:Akselai is working on it).
Miscellaneous
It is possible for an RES comma to be 1/1. Consider a modified version of the above example. We have a = 5/4, but this time S = {[-120 1 51⟩, 3/2, 2/1}. We get a1 = 128/125 and a2 = [-120 1 51⟩ again. But in the case of a3, since a2 is already in the set of intervals, no other interval in the set is going to be closer than a power of a2, so a3 = a2/a2 = 1/1. Since all the powers of 1/1 are 1/1, the closest interval is just the smallest interval in the set, so a4 = [-120 1 51⟩, a5 = 1/1, and so on.
Code
See user:Akselai's SandBox page.