1,2

This permutation converts the domain between the mappings N2QuQR1 and N2QuQR2 given in A065936 and A065937, i.e. N2QuQR2(j) = N2QuQR1(a[j])

Table of n, a(n) for n=1..60.

Index entries for sequences related to Stern's sequences

Index entries for sequences that are permutations of the natural numbers

[seq(QuQR2toQuQR1(j), j=1..128)];

QuQR2toQuQR1 := n -> frac2position_in_0_1_SB_tree(QtoQ0_1(SternBrocotTreeNum(n)/SternBrocotTreeDen(n)));

QtoQ0_1 := r -> (((2^floor(r))-1)+(frac(r)/2))/(2^floor(r));

Inverse permutation: A065934. For other needed Maple procedures, follow A065658. Cf. also A065936-A065939.

Sequence in context: A145795 A173657 A213358 * A166669 A286701 A077582

Adjacent sequences: A065932 A065933 A065934 * A065936 A065937 A065938

nonn

Antti Karttunen, Dec 07 2001

approved