This site is supported by donations to The OEIS Foundation.
User:Yosu Yurramendi/Q+
Enumeration systems of positive rationals ( ℚ+ )
based on Stern's sequence ( A002487 )
Contents
Introduction and more detailed contents
A002487 can be represented by blocks of 2m terms (m ≥ 0) in a natural way: 1 1 2 1 3 2 3 1 4 3 5 2 5 3 4 ... ([1], [2]). This representation is basic for this work. Here is a spiral representation: [3]
In order to compute the value of its nth term, beyond the recursive formula of its definition, a fast algorithm for A002487 has been defined: ∀n > 0, it computes A002487(n) by taking into account the binary representation of n ([4], translator: [5]).
The main aim of this work is just to go in depth to the structure of a set of some well-known enumeration systems of ℚ+ based on sequence A002487.
See 'Index entries for fraction trees' ([6]).
- The well-known enumeration systems has been grouped in two classes by means of a combinatorial procedure by taking into account the terms of the first three blocks of A002487:
- m = 0. {1}: 1 / 1.
- m = 1. {1, 2}: 1 / 2, 2 / 1.
- m = 2. {1, 2, 3, 3}: [7], [8].
- More classes could be defined ([9], [10], translator: [11]).
- Definitions and generation algorithms are given at sections 2.1 and 2.2.
- Graphical representation of ℚ+: [12]. An enumeration system is represented by a trajectory that passes through each rational point (red colour) only once. Thus, ℚ+ is covered. Coverage based on the Stern sequence is done in blocks: [13].
- The infinite sequence A002487(n)/A002487(1+n), n > 0, constitutes an enumeration system of ℚ+ ([14]), and it belongs to Class 1:
1 1 2 1 3 2 3 1 4 3 5 2 5 3 4 1 5 4 7 3 8 5 7 2 7 5 8 3 7 4 5 ...
1 2 1 3 2 3 1 4 3 5 2 5 3 4 1 5 4 7 3 8 5 7 2 7 5 8 3 7 4 5 1 ...
The beginning of its trajectory in the plane of ℚ+: [15] - Let σ be an infinite permutation (bijection) on ℕ such that if 2m ≤ n < 2m+1
then 2m ≤ σ(n) < 2m+1. That is to say, it is itself a composition of finite-range permutations, where everyone works within an interval [2m, ..., 2m+1) (m ≥ 0), which is composed by 2m integer terms.
- ∀m ≥ 0, ∀n > 0 such that n < 2m+1 σ(2m)(n) = n.
- If σ(2) = 2 and σ(3) = 3 (alternatively, σ(2) = 3 and σ(3) = 2), then A002487∘σ / A002487∘(1+σ) (alternatively, A002487∘(1+σ) / A002487∘σ) constitutes an enumeration system of ℚ+.
- In this sense each considered well-known enumeration system could be characterized by A002487 and a particular permutation σ. See 3.2 which they are. Thus, every numerator (denominator) is a permuted sequence of A002487 in each block of 2m terms (m > 0).
- A very desirable property of an enumeration system of ℚ+, further than the existence of a bijection or an one-to-one correspondence with ℕ, is to have some procedures (algorithms) which can specify (as fast as possible) its nature:
- What positive rational corresponds to a given location (see 2.1.2 and 2.2.2).
- The fast algorithm for A002487 beside a fast algorithm for the particular permutation σ of an enumeration system give the positive rational corresponding to a given location.
- And, viceversa, what location corresponds to a given positive rational (see 2.1.3 and 2.2.3).
- Permutations between numerator and denominator of each system (see 3.1) as well as permutations between systems have been pointed out (within each class, see 3.3.1, and between classes, 3.3.2).
- Sequences num+den (= numerator+denominator) are also considered.
- numerator/num+den and denominator/num+den are enumeration systems of rationals in (0,1).
- numerator and denominator can be computed from num+den (see 2.1.4 and 2.2.4).
- num+den sequences can be computed as permutations of A007306.
- Section 4 deals with the frequencies of each integer in each block of A002487 and A007306. This issue concerns all enumeration systems based on A002487 and a σ permutation defined as above.
Classification
Class 1
Four enumeration systems: fCW, fDRIB, fYT, fYU-1 (f* can be any of them):
numerator*(n) num+den*(n)
∀n > 0 f*(n) = --------------- f*(n)+1 = ---------------
denominator*(n) denominator*(n)
- Calkin-Wilf ([17]): fCW (2n ) = fCW (n) / (fCW (n)+1) = numeratorCW (n) / num+denCW (n)
fCW (2n+1) = (fCW (n)+1) / 1 = num+denCW (n) / denominatorCW (n) - driB ([18]): fDRIB(2n ) = 1 / (fDRIB(n)+1) = denominatorDRIB(n) / num+denDRIB (n)
fDRIB(2n+1) = (fDRIB(n)+1) / fDRIB(n) = num+denDRIB (n) / numeratorDRIB (n) - Yu-Ting-1 ([19], [20]): fYT (2n ) = fYT (n) / (fYT (n)+1) = numeratorYT (n) / num+denYT (n)
fYT (2n+1) = (fYT (n)+1) / fYT (n) = num+denYT (n) / numeratorYT (n) - Yurramendi-1: fYU-1(2n ) = 1 / (fYU-1(n)+1) = denominatorYU-1(n) / num+denYU-1 (n)
fYU-1(2n+1) = (fYU-1(n)+1) / 1 = num+denYU-1 (n) / denominatorYU-1(n)
The four systems organized in a table
f*(1) = 1/1, ∀n > 0
f*(2n) = f*(n)/(f*(n)+ 1) 1/(f*(n)+1)
--------------------------------------------------
(f*(n)+1)/1 | Calkin-Wilf (f*≡fCW) Yurramendi-1 (f*≡fYU-1) |
f*(2n+1) = | |
(f*(n)+1)/f*(n) | Yu-Ting-1(f*≡fYT) driB (f*≡fDRIB) |
--------------------------------------------------
For all four systems: ∀n > 0 f*(2n) < 1, f*(2n+1) > 1.
Relation between a rational and its inverse:
∀n > 0 or ∀m ≥ 0, ∀k | 0 ≤ k < 2m (n ≡ 2m + k)
fCW (2m+k) ·fCW (2m+1-1-k) = 1
fDRIB(2m+k) ·fDRIB (2m+1-1-k) = 1
fYT (2n) ·fYT (2n+1) = 1
fYU-1(2n) ·fYU-1 (2n+1) = 1
The numerator and denominator of all four systems can be also organized in a table
numerator*(1) = 1, denominator*(1) = 1, ∀n > 0
numerator*(2n) = numerator*(n) denominator*(n)
-------------------------------------------
denominator*(n) | Calkin-Wilf Yurramendi-1 |
denominator*(2n+1) = | |
numerator*(n) | Yu-Ting-1 driB |
-------------------------------------------
numerator*(2n+1) = denominator*(2n) = num+den*(n).
Generation of the four enumeration systems
R code ([21])
Graphic representation of enumeration systems in the plane of ℚ+: [26] .
Given a system and a location, compute its positive rational
- By continued fractions: [27]
Given a system and a positive rational, compute its location
Sequences in the OEIS
- Calkin-Wilf: A002487 / A002487' , A007306, where A002487'(n) = A002487(n+1), n > 0
- driB: A162911 / A162912 , A268087
- Yu-Ting-1: A020651 / A020650 , A086592
- Yurramendi-1: A245327 / A245328 , A273493
The relationships between numerator, denominator, and num+den are more general than the previous equalities numerator(2n+1) = denominator(2n) = num+den(n). (It is the case q = 0)(see R code [31] for involved relations):
-
Calkin-Wilf : numerator(2q*(2n+1) ) = denominator(2q*(2n+1) - 1) = num+den(n), n > 0, q ≥ 0.
A002487 = A002487'∘A153151 , A002487' = A002487∘A153152, A153151∘A153152 = A153152∘A153151 = A000027. (implicit relationship).
numerator(2q ) = denominator(2q*2 - 1) = 1, q ≥ 0.
A002487∘A000079 = A002487'∘A000225 = 1 -
driB : numerator(2q*(2n+1) - (-2)q*2/3 - 1/3) = denominator(2q*(2n+1) + (-2)q*2/3 - 2/3) = num+den(n), n > 0, q ≥ 0.
A162911 = A162912∘A334998 , A162912 = A162911∘A334999 , A334998∘A334999 = A334999∘A334998 = A000027 .
numerator(2q - (-2)q*1/3 - [2q-2 - (-2)q-2] - 2/3) = denominator(2q + (-2)q*1/3 - [2q-2 + (-2)q-2] - 1/3) = 1,q ≥ 0.
A162911∘A061547 = A162912∘A086893 . = 1 -
Yu-Ting : numerator(2q*(2n+1) ) = denominator( 2n ) = num+den(n), n > 0, q = 0.
numerator(2q*(2n+1) ) = denominator(2q*(2n+1) + 1) = num+den(n), n > 0, q > 0.
A020651 = A020650∘A065190 , A020650 = A020651∘A065190, A065190 ∘A065190 = A000027 .
numerator(2q ) = denominator(2q + 1) = 1, q > 0. numerator(1) = denominator(1) = 1.
A020651∘A000079 = A020650∘A083318 = 1 -
Yurramendi-1 : numerator( (2n+1) ) = denominator(2q*(2n+1) - 1) = num+den(n), n > 0, q = 0.
numerator(2q*(2n+1) - 2) = denominator(2q*(2n+1) - 1) = num+den(n), n > 0, q > 0.
A245327 = A245328∘A065190 , A245328 = A245327∘A065190, A065190 ∘A065190 = A000027.
numerator(2q*2 - 2) = denominator(2q*2 - 1) = 1, q > 0. numerator(1) = denominator(1) = 1.
A245327∘A095121 = A245328∘A000225 = 1
Class 2
Four enumeration systems: fSB, fBIRD, fHCS, fYU-2 (f* can be any of them):
∀m ≥ 0, ∀k such that 0 ≤ k < 2m
numerator*(2m+k) num+den*(2m+k)
f*(2m+k) = ------------------ f*(2m+k)+1 = ------------------
denominator*(2m+k) denominator*(2m+k)
- Stern-Brocot ([32]): fSB (2m+1 +k) = fSB (2m+k) / (fSB (2m+k)+1) = numeratorSB (2m+k) / num+denSB (2m+k)
fSB (2m+1+2m+k) = (fSB (2m+k)+1) / 1 = num+denSB (2m+k) / denominatorSB (2m+k) - Bird ([33]): fBIRD(2m+1 +k) = 1 / (fBIRD(2m+k)+1) = denominatorBIRD(2m+k) / num+denBIRD (2m+k)
fBIRD(2m+1+2m+k) = (fBIRD(2m+k)+1) / fBIRD(2m+k) = num+denBIRD (2m+k) / numeratorBIRD (2m+k) - HCS ([34]): fHCS (2m+1 +k) = fHCS (2m+k) / (fHCS (2m+k)+1) = numeratorHCS (2m+k) / num+denHCS (2m+k)
fHCS (2m+1+2m+k) = (fHCS (2m+k)+1) / fHCS (2m+k) = num+denHCS (2m+k) / numeratorHCS (2m+k) - Yurramendi-2: fYU-2(2m+1 +k) = 1 / (fYU-2(2m+k)+1) = denominatorYU-2(2m+k) / num+denYU-2 (2m+k)
fYU-2(2m+1+2m+k) = (fYU-2(2m+k)+1) / 1 = num+denYU-2 (2m+k) / denominatorYU-2(2m+k)
The numerator and denominator of four systems organized in a table
numerator*(1) = 1, denominator*(1) = 1. ∀m ≥ 0, ∀k such that 0 ≤ k < 2m
numerator*(2m+1+k) = numerator*(2m+k) denominator*(2m+k)
-----------------------------------------
denominator*(2m+k) | Stern-Brocot Yurramendi-2 |
denominator*(2m+1+2m+k) = | |
numerator*(2m+k) | HCS Bird |
-----------------------------------------
numerator*(2m+1+2m+k) = denominator*(2m+1+k) = num+den*(2m+k).
Generation of the four enumeration systems
Graphic representation of enumeration systems in the plane of ℚ+: [39] .
Given a system and a location, compute its positive rational
- By continued fractions: [40]
Given a system and a positive rational, compute its location
Sequences in the OEIS
- Stern-Brocot: A007305 / A047679 , A007306
- Bird : A162909 / A162910 , A268087
- HCS : A071766 / A229742 , A071585
- Yurramendi-2: A245325 / A245326 , A273494
The relationships between numerator, denominator, and num+den are more general than the previous equalities numerator(2m+1+2m+k) = denominator(2m+1+k) = num+den(2m+k).(it is the case q = 1)(see R code [44] for involved relations):
-
Stern-Brocot : numerator(( 2q + 1)*2m + k) = denominator(( 2q - 1)*2*2m + k) = num+den(2m + k), m ≥ 0, 0 ≤ k < 2m, q > 0.
A007305 = A047679∘A153141 , A047679 = A007305∘A153142, A153141∘A153142 = A153142∘A153141 = A000027. (implicit relationship).
numerator( 2q-1 ) = denominator( 2q-1 *2 - 1) = 1, q > 0.
A007305∘A000079 = A047679∘A000225 = 1 -
Bird : numerator((8*2q - 3 - 5*(-1)q)*1/6*2m + k) = denominator((5*2q - 3 - 5*(-1)q)*1/6*2m + k) = num+den(2m + k), m ≥ 0, 0 ≤ k < 2m, q > 0.
A162909 = A162910∘A154448 , A162910 = A162909∘A154447, A154448∘A154447 = A154447∘A154448 = A000027.
numerator((4*2q - 3 - (-1)q)*1/6) = denominator( 5*2q - 3 + (-1)q)*1/6) = 1, q > 0.
A162909∘A000975 = A162910∘A081254 . = 1 -
HCS : numerator(( 2q + 1)*2m + k) = denominator( 2*2m + k) = num+den(2m + k), m ≥ 0, 0 ≤ k < 2m, q = 1.
numerator(( 2q + 1)*2m + k) = denominator((3*2q + 1)* 2m + k) = num+den(2m + k), m ≥ 0, 0 ≤ k < 2m, q > 1.
A071766 = A229742∘A063946 , A229742 = A071766∘A063946, A063946 ∘A063946 = A000027.
numerator( 2q ) = denominator( 3*2q-1 ) = 1, q > 0. numerator(1) = denominator(1) = 1.
A071766∘A000079 = A229742∘A003945 = 1 -
Yurramendi-2 : numerator( 3*2m + k) = denominator(( 2q - 1)*2*2m + k) = num+den(2m + k), m ≥ 0, 0 ≤ k < 2m, q = 1.
numerator((3*2q - 2)*2m + k) = denominator(( 2q - 1)*2*2m + k) = num+den(2m + k), m ≥ 0, 0 ≤ k < 2m, q > 1.
A245325 = A245326∘A063946 , A245326 = A245325∘A063946, A063946 ∘A063946 = A000027.
numerator( 3*2q-1 - 1 ) = denominator( 2q *2 - 1) = 1, q > 0. numerator(1) = denominator(1) = 1.
A245325∘A083329 = A245326∘A000225 = 1
Other classes
Other classes could be defined. For example, in a figure given at the beginning of this webpage ([45]) the gaps shown at the bottom right could be fulfilled by the following class (four systems). Video: [46].
The same way to relate Class 1 and Class 2 (A059893, the bit-reversal permutation by blocks of 2m terms; see permutations 'Between Class 1 and Class 2') could serve to define a new class. This one fulfills also those gaps.
Stern 's sequence based enumeration systems are not exhaustive given the examples of all permutations of m = 2 (m = 0 and m = 1 are fixed). These procedures are quite arbitrary. It is possible for a system to have the same fractions for m ≤ 2 as one of the above systems, and different order of fractions in other blocks. For example, system A002487∘(1+A006068) / A002487∘A006068 ≡ A324338 / A324337 has the same permutation (m = 2) as the upper left of unknown gaps, A002487∘A122155 / A002487∘(1+A122155) has the same beginning (m ≤ 2) Yu-Ting system of Class 1, and A002487∘A122155∘A059893 / A002487∘(1+A122155∘A059893) the same (m ≤ 2) as HCS from Class 2.
Permutations
Some useful general permutations of ℕ:
ϵ ≡ A000027, the positive integers (identity permutation).
η ≡ A054429, the inverse permutation by blocks of 2m terms.
τ1 ≡ A065190: 1 is fixed, followed by infinite number of adjacent transpositions (n n+1), n > 0.
τ2 ≡ A063946: 1 is fixed, followed by infinite number of adjacent transpositions (2m+1+k, 2m+1+2m+k), m ≥ 0, 0 ≤ k < 2m.
μ1 ≡ A092569: Permutation of integers a(a(n)) = n. In binary representation of n, transformation of inner bits, 1 <-> 0, gives binary representation of a(n).
μ2 ≡ A117120: a(1)=1. a(n) is smallest positive integer not occurring earlier in the sequence where a(n) is congruent to -1 (mod a(n-1)).
- η∘η = ϵ.
- ({ϵ, η}, ∘) is a group (C2, [47]).
- τ1∘τ1 = τ2∘τ2 = ϵ.
- μ1∘μ1 = μ2∘μ2 = ϵ.
- For η, τ1, τ2, μ1, μ2, ∀m > 1, there are 2m-1 orbits of length 2. For m = 0 one fixed point, and for m = 1 two fixed points. Therefore, they all are self-inverse.
- η∘τ1 = τ1∘η = μ1, η∘τ2 = τ2∘η = μ2.
- ({ϵ, η, τ1, μ1}, ∘) is a Klein 4-group (C2xC2, [48]), as well as ({ϵ, η, τ2, μ2}, ∘).
- τ1∘τ2 = τ2∘τ1 = μ1∘μ2 = μ2∘μ1.
- ({ϵ, η, τ1, τ2, μ1, μ2, τ1∘τ2, η∘τ1∘τ2}, ∘) is an elementary abelian group of order 23 (C2xC2xC2, [49]).
π1 ≡ A059893, the bit-reversal permutation by blocks of 2m terms.
π2 ≡ A059894, Complement and reverse the order of all but the most significant bit in binary expansion of n.
- π1∘π1 = π2∘π2 = ϵ.
π1∘π2 = π2∘π1 = η, π1∘η = η∘π1 = π2, π2∘η = η∘π2 = π1.
({ϵ, η, π1, π2}, ∘) is a Klein 4-group (C2xC2, [50]). - For π1, π2 ∀m > 1, there are A016116(m+1) (= 2⌊(m+1)/2)⌋) fixed points, and A032085(m) orbits of length 2. There are altogether A005418(m+1) orbits. They both are self-inverse.
-
π1∘τ1 = τ2∘π1 , τ1∘π1 = π1∘τ2
π2∘τ1 = τ2∘π2 , τ1∘π2 = π2∘τ2
π1∘μ1 = μ2∘π1 , μ1∘π1 = π1∘μ2
π2∘μ1 = μ2∘π2 , μ1∘π2 = π2∘μ2
Between numerator and denominator of systems
Class 1
η ≡ A054429, the inverse permutation by blocks of 2m terms.
τ1 ≡ A065190: 1 is fixed, followed by infinite number of adjacent transpositions (n n+1).
-
Calkin-Wilf: A002487∘η = A002487', A002487'∘η = A002487
A002487∘A153152 = A002487', A002487'∘A153151 = A002487 , A153151∘A153152 = A153152∘A153151 = A000027 -
driB: A162911∘η = A162912, A162912∘η = A162911
A162911∘A334999 = A162912, A162912∘A334998 = A162911 , A334998∘A334999 = A334999∘A334998 = A000027 - Yu-Ting: A020651∘τ1 = A020650, A020650∘τ1 = A020651
- Yurramendi-1: A245327∘τ1 = A245328, A245328∘τ1 = A245327
-
Yu-Ting and Yurramendi-1: A020651∘η = A245327, A245327∘η = A020651
A245328∘η = A020650, A020650∘η = A245328
Class 2
η ≡ A054429, the inverse permutation by blocks of 2m terms.
τ2 ≡ A063946: write n in binary and complement second bit (from the left), with a(0)=0 and a(1)=1.
-
Stern-Brocot: A007305∘η = A047679, A047679∘η = A007305 (by coordinating carefully the nth term)
A007305∘A153142 = A047679 A047679∘A153141 = A007305, A153141∘A153142 = A153142∘A153141 = A000027
-
Bird: A162909∘η = A162910, A162910∘η = A162909
A162909∘A154447 = A162910, A162910∘A154448 = A162909, A154448∘A154447 = A154447∘A154448 = A000027 - HCS: A071766∘τ2 = A229742, A229742∘τ2 = A071766
- Yurramendi-2: A245325∘τ2 = A245326, A245326∘τ2 = A245325
-
HCS and Yurramendi-2 : A071766∘η = A245326, A245326∘η = A071766
A245325∘η = A229742, A229742∘η = A245325
Between A002487 and numerator (denominator) of systems
All these numerators and denominators can be obtained through A002487 and some permutations of ℕ which can be quickly computed by copying and pasting the following codes (given n, the permutation is computed taking into account the binary representation of n): [51].
Class 1
ϵ ≡ A000027, the positive integers (identity permutation).
η ≡ A054429, the inverse permutation by blocks of 2m terms.
τ1 ≡ A065190: 1 is fixed, followed by infinite number of adjacent transpositions (n n+1).
μ1 ≡ A092569: Permutation of integers a(a(n)) = n. In binary representation of n, transformation of inner bits, 1 <-> 0, gives binary representation of a(n).
π1 ≡ A059893, the bit-reversal permutation by blocks of 2m terms.
π2 ≡ A059894, Complement and reverse the order of all but the most significant bit in binary expansion of n.
- Calkin-Wilf: A002487∘ϵ / A002487∘(1+ϵ) = A002487 / A002487'
A002487∘(1+η∘ϵ) / A002487∘η∘ϵ = A002487 / A002487' - driB: A002487∘ A258996 / A002487∘(1+A258996) = A162911 / A162912
A002487∘(1+η∘A258996) / A002487∘η∘ A258996 = A162911 / A162912
A002487∘(1+ A332769) / A002487∘ A332769 = A162911 / A162912
# ({ϵ, η, τ1, μ1, A258996, η∘ A258996, τ1∘A258996, μ1∘A258996}, ∘)
# ({ϵ, η, τ1, μ1, η∘A332769, A332769, μ1∘A332769, τ1∘A332769}, ∘)
# ({ϵ, η, τ1, μ1, μ1∘A284447, τ1∘A284447, η∘A284447, A284447}, ∘)
# they all three are the same elementary abelian group of order 23 (C2xC2xC2, [52]).
# A002487∘A284447 / A002487∘(1+A284447) is not 'driB' system.
# μ1 = A258996∘A284447 = A284447∘A258996,
# For A258996, A332769, A284447, ∀m > 1, there are 2m-1 orbits of length 2. Therefore, they all three are self-inverse.
# ∀m ≥ 0, ∀k 0 ≤ k < 2m, if m odd π1∘A258996(2m+k) = A258996∘π1(2m+k),
if m even π1∘A258996(2m+k) = A258996∘π1(2m+1-1-k)
# ∀m ≥ 0, ∀k 0 ≤ k < 2m, if m odd π2∘A258996(2m+k) = A258996∘π2(2m+k),
if m even π2∘A258996(2m+k) = A258996∘π2(2m+1-1-k) - Yu-Ting: A002487∘ A231551 / A002487∘(1+A231551) = A020651 / A020650
A002487∘(1+η∘A231551) / A002487∘η∘ A231551 = A020651 / A020650
A002487∘(1+ A153154) / A002487∘ A153154 = A020651 / A020650
# For A231551
∀m > 0, there are 2 fixed points in positions 2m and 2m+2m-1,
∀m > 1, there is an unique orbit of length 2, in positions 2m+2m-2 and 2m+1-2m-2,
∀m > 2 (m = 2q + r, 1 ≤ r ≤ 2q) and ∀p > 0 such that 2p is the length of a orbit,
the number of orbits t(m, p) is given by the following formula:
t(m,p) = 0 if p > (q+1)
= 2A000295(p-1)*(2r -1) if p = (q+1)
= 2A000295(p-1)*(22(p-1)-1) if p < (q+1)
∀m ≥ 0 there are altogether A007886(m) orbits.
∀m ≥ 0, ∀n > 0 such that n ≤ 2m+2 + 2m+1 (higher than 2m), one has A231551(2m)(n) = n.
# For A153154
∀m > 1 (m = 2q + r, 0 ≤ r < 2q), there are 2(A000295(q)+r) orbits of length 2q+1.
∀m > 0 there are A054243(m) orbits.
∀m ≥ 0, ∀n > 0 such that n ≤ 2m, one has A153154(2m)(n) = n.
- Yurramendi-1: A002487∘ A284459 / A002487∘(1+A284459) = A245327 / A245328
A002487∘(1+η∘A284459) / A002487∘η∘ A284459 = A245327 / A245328
A002487∘(1+ A154437) / A002487∘ A154437 = A245327 / A245328
# For A284459 the orbit analysis is the same as that of A231551.
# For A154437 the orbit analysis is the same as that of A153154.
Relationships between these permutations:
-
_ _______ _ _______ _______ _________ _______ __________ __________ _______________ _______________ ________________ _______________ _______________ _______________ _ | ∘ | ϵ η τ1 μ1 π1 π2 A258996 A332769 A231551 A153154 A284459 A154437 | _ _______ _ _______ _______ _________ _______ __________ __________ _______________ _______________ ________________ _______________ _______________ _______________ _ | ϵ | ϵ η τ1 μ1 π1 π2 A258996 A332769 A231551 A153154 A284459 A154437 | | η | η ϵ μ1 τ1 π2 π1 A332769 A258996 A153154 A231551 A154437 A284459 | | τ1 | τ1 μ1 ϵ η π1∘τ2 π2∘τ2 η∘A284447 A284447 τ1∘A231551 τ1∘A153154 τ1∘A284459 τ1∘A154437 | | μ1 | μ1 τ1 η ϵ μ1∘π1 μ1∘π2 A284447 A332769∘μ1 μ1∘A231551 μ1∘A153154 μ1∘A284459 μ1∘A154437 | | π1 | π1 π2 τ2∘π1 π1∘μ1 ϵ η π2∘A332769 π2∘A258996 π2∘A153154 π2∘A231551 π2∘A154437 π2∘A284459 | | π2 | π2 π1 τ2∘π2 π2∘μ1 η ϵ π1∘A332769 π1∘A258996 π1∘A153154 π1∘A231551 π1∘A154437 π1∘A284459 | | A258996 | A258996 A332769 η∘A284447 A284447 A332769∘π2 A332769∘π1 ϵ η A284459 A154437 A231551 A153154 | | A332769 | A332769 A258996 A284447 μ1∘A332769 A258996∘π2 A258996∘π1 η ϵ A154437 A284459 A153154 A231551 | | A231551 | A231551 A154437 A153154 A284459 A154437∘π2 A154437∘π1 A154437∘A332769 A154437∘A258996 A154437∘A153154 A154437∘A231551 A154437∘A154437 A154437∘A284459 | | A153154 | A153154 A284459 A231551 A154437 A284459∘π2 A284459∘π1 A284459∘A332769 A284459∘A258996 A284459∘A153154 A284459∘A231551 A284459∘A154437 A284459∘A284459 | | A284459 | A284459 A153154 A154437 A231551 A153154∘π2 A153154∘π1 A153154∘A332769 A153154∘A258996 A153154∘A153154 A153154∘A231551 A153154∘A154437 A153154∘A284459 | | A154437 | A154437 A231551 A284459 A153154 A231551∘π2 A231551∘π1 A231551∘A332769 A231551∘A258996 A231551∘A153154 A231551∘A231551 A231551∘A154437 A231551∘A284459 | _ _______ _ _______ _______ _________ ________ __________ __________ _______________ _______________ ________________ _______________ _______________ _______________ _
-
A258996∘A258996 = ϵ
A258996∘A231551 = A284459
A258996∘A284459 = A231551 -
A284459 = η∘A231551∘η,
A231551 = η∘A284459∘η
A154437 = η∘A153154∘η, A153154 = η∘A154437∘η -
A231551∘A258996 = A154437∘A332769 = A284459∘A284447
A153154∘A258996 = A284459∘A332769 = A154437∘A284447
A284459∘A258996 = A153154∘A332769 = A231551∘A284447
A154437∘A258996 = A231551∘A332769 = A153154∘A284447
Class 2
ϵ ≡ A000027, the positive integers (identity permutation).
η ≡ A054429, the inverse permutation by blocks of 2m terms.
τ2 ≡ A063946: write n in binary and complement second bit (from the left), with a(0)=0 and a(1)=1.
μ2 ≡ A117120: a(1)=1. a(n) is smallest positive integer not occurring earlier in the sequence where a(n) is congruent to -1 (mod a(n-1)).
π1 ≡ A059893, the bit-reversal permutation by blocks of 2m terms.
π2 ≡ A059894, Complement and reverse the order of all but the most significant bit in binary expansion of n.
- Stern-Brocot: A002487∘π1∘ϵ / A002487∘(1+π1∘ϵ) = A007305 / A047679
A002487∘(1+π2∘ϵ) / A002487∘π2∘ϵ = A007305 / A047679
A002487∘(1+π1∘η) / A002487∘π1∘η = A007305 / A047679
A002487∘π2∘η / A002487∘(1+π2∘η) = A007305 / A047679 - Bird: A002487∘π1∘ A258746 / A002487∘(1+π1∘A258746) = A162909 / A162910
A002487∘(1+π2∘A258746) / A002487∘π2∘ A258746 = A162909 / A162910
A002487∘(1+π1∘A165199) / A002487∘π1∘ A165199 = A162909 / A162910
A002487∘π2∘ A165199 / A002487∘(1+π2∘A165199) = A162909 / A162910
# ({ϵ, η, τ2, μ2, A258746, η∘A258746, τ2∘A258746, μ2∘A258746}, ∘)
# ({ϵ, η, τ2, μ2, η∘ A165199, A165199, μ2∘A165199, τ2∘A165199}, ∘)
# ({ϵ, η, τ2, μ2, μ2∘A284120, τ2∘A284120, η∘A284120, A284120}, ∘)
# they all three are the same elementary abelian group of order 23 (C2xC2xC2, [53]).
# A002487∘A284120 / A002487∘(1+A284120) is not a 'Bird' system.
# μ2 = A258746∘A284120 = A284120∘A258746.
# For A258746, A165199, A284120, ∀m > 1, there are 2m-1 orbits of length 2. For m = 0 one fixed point, and for m = 1 two fixed points. Therefore, they all are self-inverse.
# ∀m ≥ 0, ∀k 0 ≤ k < 2m, if m odd π1∘A258746(2m+k) = A258746∘π1(2m+k),
if m even π1∘A258746(2m+k) = A258746∘π1(2m+1-1-k)
# ∀m ≥ 0, ∀k 0 ≤ k < 2m, if m odd π2∘A258746(2m+k) = A258746∘π2(2m+k),
if m even π2∘A258746(2m+k) = A258746∘π2(2m+1-1-k)
# ∀m ≥ 0, ∀k 0 ≤ k < 2m, if m odd A258746(2m+k) = A258996(2m+k),
if m even A258746(2m+k) = A258996(2m+1-1-k)
# A258996∘π1 = π1∘A258746, A258996∘π2 = π2∘A258746
# π1∘A258996 = A258746∘π1, π2∘A258996 = A258746∘π2
# A258746∘A258996 = A258996∘A258746 - HCS: A002487∘π1∘ A233279 / A002487∘(1+π1∘A233279) = A071766 / A229742
A002487∘(1+π2∘A233279) / A002487∘π2∘ A233279 = A071766 / A229742
A002487∘(1+π1∘A006068) / A002487∘π1∘ A006068 = A071766 / A229742
A002487∘π2∘ A006068 / A002487∘(1+π2∘A006068) = A071766 / A229742
# For A233279 the orbit analysis is the same as that of A231551.
# For A006068 the orbit analysis is the same as that of A153154. - Yurramendi-2: A002487∘π1∘ A180200 / A002487∘(1+π1∘A180200) = A245325 / A245326
A002487∘(1+π2∘A180200) / A002487∘π2∘ A180200 = A245325 / A245326
A002487∘(1+π1∘A154435) / A002487∘π1∘ A154435 = A245325 / A245326
A002487∘π2∘ A154435 / A002487∘(1+π2∘A154435) = A245325 / A245326
# For A180200 the orbit analysis is the same as that of A231551.
# For A154435 the orbit analysis is the same as that of A153154.
Relationships between these permutations:
- A258746∘A258746 = A000027 (identity)
A258746∘A180200 = A233279
A258746∘A233279 = A180200 - A180200 = η∘A233279∘η, A233279 = η∘A180200∘η
A154435 = η∘A006068∘η, A006068 = η∘A154435∘η - A233279∘A258746 = A154435∘A165199 = A180200∘A284120
A006068∘A258746 = A180200∘A165199 = A154435∘A284120
A180200∘A258746 = A006068∘A165199 = A233279∘A284120
A154435∘A258746 = A233279∘A165199 = A006068∘A284120
Inversely, A002487 can be obtained through all of these numerators and denominators and some permutations of ℕ, which are just the inverse of the permutations above. That is to say:
- A002487 = A007305∘ϵ∘π1 = A162909∘A258746∘π1 = A071766∘A233280∘π1 = A245325∘A180201∘π1.
- A002487 = A047679∘η∘π1 = A162910∘A165199∘π1 = A229742∘A003188∘π1 = A245326∘A154436∘π1.
Relationships between permutations of both classes:
- A258996 = π1∘A258746∘π1, A258746 = π1∘A258996∘π1, A332769 = π1∘A165199∘π1, A165199 = π1∘A332769∘π1
A231551 = π1∘A233279∘π1, A233279 = π1∘A231551∘π1, A153154 = π1∘A006068∘π1, A006068 = π1∘A153154∘π1
A284459 = π1∘A180200∘π1, A180200 = π1∘A284459∘π1, A154437 = π1∘A154435∘π1, A154435 = π1∘A154437∘π1
Between systems
Within classes
Structure of permutation system is the same in both classes (Class 1 / Class 2), ([54], [55]):
From To |
Stern-Brocot |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ϵ ≡ A000027, the positive integers (identity permutation).
η ≡ A054429, the inverse permutation by blocks of 2m terms.
τ1 ≡ A065190: 1 is fixed, followed by infinite number of adjacent transpositions (n n+1).
τ2 ≡ A063946: write n in binary and complement second bit (from the left), with a(0)=0 and a(1)=1.
- σ2 ∘σ2 = ϵ, σ'2∘σ'2 = ϵ, σ2∘σ'2 = σ'2∘σ2.
- σ2 ∘η = η ∘σ2, σ'2∘η = η ∘σ'2.
-
σ2 ∘τ1 = τ1∘σ2, σ2 ∘τ2 = τ2∘σ2
σ'2∘τ1 = τ1∘σ'2, σ'2∘τ2 = τ2∘σ'2 - ({ϵ, η, τ1, τ2, σ2, σ'2, ...(*), η∘τ1∘τ2∘σ2∘σ'2}, ∘) is an elementary abelian group of order 26.
-
σ3∘σ'3 = ϵ, σ'3∘σ3 = ϵ,
σ4∘σ'4 = ϵ, σ'4∘σ4 = ϵ,
∀m ≥ 0, ∀n > 0 such that n < 2m+2 + 2m+1, one has σ3(n) = σ'3(2m-1)(n), and viceversa. It is the same for σ4 and σ'4. -
σ3∘σ'4 = σ4∘σ'3 = σ2, σ'3∘σ4 = σ'4∘σ3 = σ'2
σ2∘σ4 = σ4∘σ'2 = σ3, σ'2∘σ'4 = σ'4∘σ2 = σ'3
σ2∘σ3 = σ3∘σ'2 = σ4, σ'2∘σ'3 = σ'3∘σ2 = σ'4 -
(σ'4∘σ'3)∘(σ4 ∘σ3 ) = (σ'3∘σ'4)∘(σ3 ∘σ4 )
(σ4 ∘σ3 )∘(σ'4∘σ'3) = (σ3 ∘σ4 )∘(σ'3∘σ'4)
Within Class 1
σ2 ≡ A258996, σ'2 ≡ A092569 ≡ η∘τ1 = τ1∘η, σ2 ≡ A332769, σ'2 ≡ A092569 ≡ η∘τ1 = τ1∘η,
σ3 ≡ A231551, σ'3 ≡ A231550, σ3 ≡ A153154, σ'3 ≡ A153153,
σ4 ≡ A284459, σ'4 ≡ A284460, σ4 ≡ A154437, σ'4 ≡ A154438
- σ2 ∘σ'2 = σ'2∘σ2 = A284447. σ2 ∘σ'2 = σ'2∘σ2
- σ2 ∘η = η∘σ2 = A332769, σ'2∘η = η∘σ'2 = τ1. σ2 ∘η = η∘σ2 = A258996, σ'2∘η = η∘σ'2 = τ1.
- σ'2∘τ1 = τ1∘σ'2 = η
-
σ3∘σ4 = A1544372 σ'3∘σ'4 = A1531532 , σ3∘σ4 = A2844592 σ'3∘σ'4 = A2315502
σ4∘σ3 = A1531542 σ'4∘σ'3 = A1544382 , σ4∘σ3 = A2315512 σ'4∘σ'3 = A2844602 -
σ2∘σ'3 = σ2∘σ'4
σ2∘σ'4 = σ2∘σ'3 - For σ'3, σ4 and σ'4 the orbit analysis is the same as that of σ3 (A231551).
- The enumeration system A002487∘ A092569 / A002487∘(1+A092569) is not within the scope of this work. These two enumeration systems A002487∘(1+A153153) / A002487∘A153153 and A002487∘A284460 / A002487∘(1+A284460) are the same, as well as these two systems A002487∘A231550 / A002487∘(1+A231550) and A002487∘(1+A154438) / A002487∘A154438, but they both are also not within the scope.
Permutations are the following ones:
- Calkin-Wilf and driB: A002487∘σ2 = A162911, A162911∘σ2 = A002487
A002487'∘σ2 = A162912, A162912∘σ2 = A002487' (by coordinating carefully the nth terms)
A007306∘σ2 = A268087, A268087∘σ2 = A007306 (by coordinating carefully the nth terms) - Yu-Ting-1 and Yurramendi-1: A020651∘σ'2 = A245327, A245327∘σ'2 = A020651
A020650∘σ'2 = A245328, A245328∘σ'2 = A020650
A086592∘σ'2 = A273493, A273493∘σ'2 = A086592 - Calkin-Wilf and Yu-Ting-1: A002487∘σ3 = A020651, A020651∘σ'3 = A002487
A002487'∘σ3 = A020650, A020650∘σ'3 = A002487' (by coordinating carefully the nth terms)
A007306∘σ3 = A086592, A086592∘σ'3 = A007306 (by coordinating carefully the nth terms) - driB and Yurramendi-1: A162911∘σ3 = A245327, A245327∘σ'3 = A162911
A162912∘σ3 = A245328, A245328∘σ'3 = A162912
A268087∘σ3 = A273493, A273493∘σ'3 = A268087 - Calkin-Wilf and Yurramendi-1: A002487∘σ4 = A245327, A245327∘σ'4 = A002487
A002487'∘σ4 = A245328, A245328∘σ'4 = A002487' (by coordinating carefully the nth terms)
A007306∘σ4 = A273493, A273493∘σ'4 = A007306 (by coordinating carefully the nth terms) - driB and Yu-Ting-1: A162911∘σ4 = A020651, A020651∘σ'4 = A162911
A162912∘σ4 = A020650, A020650∘σ'4 = A162912
A268087∘σ4 = A086592, A086592∘σ'4 = A268087
Within Class 2
σ2 ≡ A258746, σ'2 ≡ A117120 ≡ η∘τ2 = τ2∘η, σ2 ≡ A165199, σ'2 ≡ A117120 ≡ η∘τ1 = τ1∘η,
σ3 ≡ A233279, σ'3 ≡ A233280, σ3 ≡ A006068, σ'3 ≡ A003188,
σ4 ≡ A180200, σ'4 ≡ A180201, σ4 ≡ A154435, σ'4 ≡ A154436
- σ2 ∘σ'2 = σ'2∘σ2 = A284120. σ2 ∘σ'2 = σ'2∘σ2
- σ2 ∘η = η∘σ2 = A165199, σ'2∘η = η∘σ'2 = τ2. σ2 ∘η = η∘σ2 = A258746, σ'2∘η = η∘σ'2 = τ2.
- σ'2∘τ2 = τ2∘σ'2 = η
-
σ3∘σ4 = A1544352 σ'3∘σ'4 = A0031882 = A064706, σ3∘σ4 = A1802002 = A180198 σ'3∘σ'4 = A2332802
σ4∘σ3 = A0060682 = A064707 σ'4∘σ'3 = A1544362 , σ4∘σ3 = A2332792 σ'4∘σ'3 = A1802012 = A180199 -
σ2∘σ'3 = σ2∘σ'4
σ2∘σ'4 = σ2∘σ'3 - For σ'3, σ4 and σ'4 the orbit analysis is the same as that of σ3 (A233279, that is to say A231551).
- The enumeration system A002487∘ A117120 / A002487∘(1+A117120) is not within the scope of this work. These two enumeration systems A002487∘(1+A003188) / A002487∘A003188 and A002487∘A180201 / A002487∘(1+A180201) are the same, as well as these two systems A002487∘A233280 / A002487∘(1+A233280) and A002487∘(1+A154436) / A002487∘A154436, but they both are also not within the scope.
Permutations are the following ones:
-
Stern-Brocot and Bird: A007305∘σ2 = A162909, A162909∘σ2 = A007305 (by coordinating carefully the nth terms)
A047679∘σ2 = A162910, A162910∘σ2 = A047679
A007306∘σ2 = A268087, A268087∘σ2 = A007306 (by coordinating carefully the nth terms) -
HCS and Yurramendi-2: A071766∘σ'2 = A245325, A245325∘σ'2 = A071766
A229742∘σ'2 = A245326, A245326∘σ'2 = A229742
A071585∘σ'2 = A273494, A273494∘σ'2 = A071585 -
Stern-Brocot and HCS: A007305∘σ3 = A071766, A071766∘σ'3 = A007305 (by coordinating carefully the nth terms)
A047679∘σ3 = A229742, A229742∘σ'3 = A047679
A007306∘σ3 = A071585, A071585∘σ'3 = A007306 (by coordinating carefully the nth terms) -
Bird and Yurramendi-2: A162909∘σ3 = A245325, A245325∘σ'3 = A162909
A162910∘σ3 = A245326, A245326∘σ'3 = A162910
A268087∘σ3 = A273494, A273494∘σ'3 = A268087 -
Stern-Brocot and Yurramendi-2: A007305∘σ4 = A245325, A245325∘σ'4 = A007305 (by coordinating carefully the nth terms)
A047679∘σ4 = A245326, A245326∘σ'4 = A047679
A007306∘σ4 = A273494, A273494∘σ'4 = A007306 (by coordinating carefully the nth terms) -
Bird and HCS: A162909∘σ4 = A071766, A071766∘σ'4 = A162909
A162910∘σ4 = A229742, A229742∘σ'4 = A162910
A268087∘σ4 = A071585, A071585∘σ'4 = A268087
- σ2-1∘ σ2-2 = σ2-2∘σ2-1, σ'2-1∘σ'2-2 = σ'2-2∘σ'2-1
Between classes
Between Class 1 and Class 2
π1 ≡ A059893, the bit-reversal permutation by blocks of 2m terms.
π2 ≡ A059894, Complement and reverse the order of all but the most significant bit in binary expansion of n.
- Calkin-Wilf and Stern-Brocot: A007305∘π1 = A002487, A002487∘π1 = A007305 (by coordinating carefully the nth term)
A047679∘π1 = A002487', A002487'∘π1= A047679
A007306∘π1 = A007306 (by coordinating carefully the nth term)
A007305∘π2 = A002487', A002487'∘π2= A007305 (by coordinating carefully the nth term)
A047679∘π2 = A002487, A002487∘π2 = A047679
A007306∘π2 = A007306 (by coordinating carefully the nth term) - driB and Bird: A162909∘π1 = A162911, A162911∘π1 = A162909
A162910∘π1 = A162912, A162912∘π1 = A162910
A268087∘π1 = A268087
A162909∘π2 = A162912, A162912∘π2 = A162909
A162910∘π2 = A162911, A162911∘π2 = A162910
A268087∘π2 = A268087 - Yu-Ting and HCS: A071766∘π1 = A020651, A020651∘π1 = A071766
A229742∘π1 = A020650, A020650∘π1 = A229742
A071585∘π1 = A086592, A086592∘π1 = A071585
A071766∘π2 = A245328, A245328∘π2 = A071766
A229742∘π2 = A245327, A245327∘π2 = A229742
A071585∘π2 = A273493, A273493∘π2 = A071585 - Yurramendi-1 and -2: A245325∘π1 = A245327, A245327∘π1 = A245325
A245326∘π1 = A245328, A245328∘π1 = A245326
A273494∘π1 = A273493, A273493∘π1 = A273494
A245325∘π2 = A020650, A020650∘π2 = A245325
A245326∘π2 = A020650, A020650∘π2 = A245326
A273494∘π2 = A086592, A086592∘π2 = A273494
Frequencies on A002487 and A007306
Because the numerator and denominator of the systems are permutations of A002487, if the order in each block is not taken into account, then an issue raises about the frequencies of each integer in each block; this issue concerns all of them.
Let s(n,m) be the function that gives the frequency of integer n > 1 at each block m ≥ 0 of sequence A002487 ([56]).
- ∀n > 2, ∀m ≥ 0, s(n,m) %% 2 = 0. ∀m ≥ 0, s(1, m) = f(2, m) = 1.
- ∀m ≥ 0, ∑n > 1 s(n, m) = 2m (A000079).
- ∀n ≥ 1, ∀m ≥ n - 1, s(n, m) = s(n, n - 1).
- ∀n ≥ 1, s(n, n - 1) = φ(n), where φ is the Euler's totient function, A000010 ([57], fact no.12).
- ∀m ≥ 0, max{n | s(n, m) > 0} = F(m + 2), where F is the Fibonacci sequence, A000045 ([58], Theorem 2.1). Morever, ∀m ≥ 2 s(F(m + 2), m) = 2.
- It seems that ∀m ≥ 6 the number of gaps (s(m, n) = 0) before s(F(m + 2), m) are related to Fibonacci sequence.
In the same way, sequences num+den are permutations of A007306 (it is A002487 + A002487' (Calkin-Wilf) and A007305 + A047679 (Stern-Brocot)).
Let f(n,m) be the function that gives the frequency of integer n > 1 at each block m ≥ 0 in sequence A007306 ([59]).
- ∀n > 1, ∀m ≥ 0, f(n,m) %% 2, except f(2, 0) = 1.
- ∀m ≥ 0, ∑n > 1 f(n, m) = 2m (A000079).
- ∀m ≥ 0, ∑n > 1 n·f(n, m) = 2·3m (2·A000244).
- ∀n > 1, ∑m ≥ 0 f(n, m) = φ(n)
- ∀m ≥ 0, min{n | f(n, m) > 0} = m + 2. ([60], fact no.11).
- ∀m ≥ 0, max{n | f(n, m) > 0} = F(m + 1). Morever, f(F(m + 1), m) = 2.
- ∀n > 1, ∀m ≥ 0, f(n, m) = s(n, m + 1) - s(n, m).
- ∀n > 1, f(n, n - 2) = 2. It is a straight line.
∀n > 1, max{m | f(n, m) > 0} = n - 2.
More linear relationships can be observed ([61]; [62]). - A procedure can be defined in order to sweep the table by searching for straight lines. A start point of a straight line is the pair (n, m) with minimum m. The first start point is (n, m) = (2, 0), then (3,1), (4,2), (5,2), (5,3), (7,3), (8,3), ..., from bottom to up and left to right. The effect of a line is just to subtract it 'characteristic value' from the values of points in the straight line. When a new value results 0, the corresponding point is 'disappeared'. ([63]).
- Start points can be represented in the plan (n,m). Some quadratic relations can be observed ([64], [65]).