cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-5 of 5 results.

A057501 Signature-permutation of a Catalan Automorphism: Rotate non-crossing chords (handshake) arrangements; rotate the root position of general trees as encoded by A014486.

Original entry on oeis.org

0, 1, 3, 2, 7, 8, 5, 4, 6, 17, 18, 20, 21, 22, 12, 13, 10, 9, 11, 15, 14, 16, 19, 45, 46, 48, 49, 50, 54, 55, 57, 58, 59, 61, 62, 63, 64, 31, 32, 34, 35, 36, 26, 27, 24, 23, 25, 29, 28, 30, 33, 40, 41, 38, 37, 39, 43, 42, 44, 47, 52, 51, 53, 56, 60, 129, 130, 132, 133, 134
Offset: 0

Views

Author

Antti Karttunen, Sep 03 2000; entry revised Jun 06 2014

Keywords

Comments

This is a permutation of natural numbers induced when "noncrossing handshakes", i.e., Stanley's interpretation (n), "n nonintersecting chords joining 2n points on the circumference of a circle", are rotated.
The same permutation is induced when the root position of plane trees (Stanley's interpretation (e)) is successively changed around the vertices.
For a good illustration how the rotation of the root vertex works, please see the Figure 6, "Rotation of an ordered rooted tree" in Torsten Mütze's paper (on page 24 in 20 May 2014 revision).
For yet another application of this permutation, please see the attached notes for A085197.
By "recursivizing" either the left or right hand side argument of A085201 in the formula, one ends either with A057161 or A057503. By "recursivizing" the both sides, one ends with A057505. - Antti Karttunen, Jun 06 2014

Crossrefs

Inverse: A057502.
Also, a "SPINE"-transform of A074680, and thus occurs as row 17 of A122203. (Also as row 65167 of A130403.)
Successive powers of this permutation, a^2(n) - a^6(n): A082315, A082317, A082319, A082321, A082323.
Cf. also A057548, A072771, A072772, A085201, A002995 (cycle counts), A057543 (max cycle lengths), A085197, A129599, A057517, A064638, A064640.

Programs

  • Maple
    map(CatalanRankGlobal,map(RotateHandshakes, A014486));
    RotateHandshakes := n -> pars2binexp(RotateHandshakesP(binexp2pars(n)));
    RotateHandshakesP := h -> `if`((0 = nops(h)),h,[op(car(h)),cdr(h)]); # This does the trick! In Lisp: (defun RotateHandshakesP (h) (append (car h) (list (cdr h))))
    car := proc(a) if 0 = nops(a) then ([]) else (op(1,a)): fi: end: # The name is from Lisp, takes the first element (head) of the list.
    cdr := proc(a) if 0 = nops(a) then ([]) else (a[2..nops(a)]): fi: end: # As well. Takes the rest (the tail) of the list.
    PeelNextBalSubSeq := proc(nn) local n,z,c; if(0 = nn) then RETURN(0); fi; n := nn; c := 0; z := 0; while(1 = 1) do z := 2*z + (n mod 2); c := c + (-1)^n; n := floor(n/2); if(c >= 0) then RETURN((z - 2^(floor_log_2(z)))/2); fi; od; end;
    RestBalSubSeq := proc(nn) local n,z,c; n := nn; c := 0; while(1 = 1) do c := c + (-1)^n; n := floor(n/2); if(c >= 0) then break; fi; od; z := 0; c := -1; while(1 = 1) do z := 2*z + (n mod 2); c := c + (-1)^n; n := floor(n/2); if(c >= 0) then RETURN(z/2); fi; od; end;
    pars2binexp := proc(p) local e,s,w,x; if(0 = nops(p)) then RETURN(0); fi; e := 0; for s in p do x := pars2binexp(s); w := floor_log_2(x); e := e * 2^(w+3) + 2^(w+2) + 2*x; od; RETURN(e); end;
    binexp2pars := proc(n) option remember; `if`((0 = n),[],binexp2parsR(binrev(n))); end;
    binexp2parsR := n -> [binexp2pars(PeelNextBalSubSeq(n)),op(binexp2pars(RestBalSubSeq(n)))];
    # Procedure CatalanRankGlobal given in A057117, other missing ones in A038776.

Formula

a(0) = 0, and for n>=1, a(n) = A085201(A072771(n), A057548(A072772(n))). [This formula reflects directly the given non-destructive Lisp/Scheme function: A085201 is a 2-ary function corresponding to 'append', A072771 and A072772 correspond to 'car' and 'cdr' (known also as first/rest or head/tail in some dialects), and A057548 corresponds to unary form of function 'list'].
As a composition of related permutations:
a(n) = A057509(A069770(n)).
a(n) = A057163(A069773(A057163(n))).
Invariance-identities:
A129599(a(n)) = A129599(n) holds for all n.

A069772 Self-inverse permutation of natural numbers induced by the automorphism xReflectHandshakes acting on the parenthesizations encoded by A014486.

Original entry on oeis.org

0, 1, 2, 3, 7, 6, 5, 4, 8, 9, 10, 21, 20, 19, 14, 15, 18, 17, 16, 13, 12, 11, 22, 45, 46, 44, 42, 43, 31, 32, 30, 28, 29, 63, 62, 61, 60, 54, 55, 53, 51, 52, 26, 27, 25, 23, 24, 59, 58, 57, 56, 40, 41, 39, 37, 38, 50, 49, 48, 47, 36, 35, 34, 33, 64, 65, 67, 66, 68, 69, 170
Offset: 0

Views

Author

Antti Karttunen, Apr 16 2002

Keywords

Comments

This automorphism reflects over the x-axis the interpretation n (the non-crossing handshakes) of Stanley's exercise 19.
Note that DeepRev (A057164) reflects over y-axis.
This transformation keeps palindromic parenthesizations/Dyck paths/rooted planar trees palindromic, but not necessarily same, meaning that this induces a permutation on the sequence A061855 (= A069766).

Crossrefs

Composition of A057164 and A069771 in either order, i.e. A069772(n) = A057164(A069771(n)) = A069771(A057164(n)). Cf. also A061855, A069766, A057501, A069888, A069889.

A069771 Self-inverse permutation of natural numbers induced by the automorphism RotateHandshakes180 acting on the parenthesizations encoded by A014486.

Original entry on oeis.org

0, 1, 2, 3, 7, 5, 6, 4, 8, 9, 14, 21, 18, 13, 10, 15, 20, 17, 12, 19, 16, 11, 22, 45, 54, 31, 26, 40, 44, 53, 30, 25, 39, 63, 59, 50, 36, 46, 55, 32, 27, 41, 42, 51, 28, 23, 37, 62, 58, 49, 35, 43, 52, 29, 24, 38, 61, 57, 48, 34, 60, 56, 47, 33, 64, 65, 79, 107, 121, 149, 170
Offset: 0

Views

Author

Antti Karttunen, Apr 16 2002

Keywords

Comments

This automorphism rotates by 180 degrees the interpretation n (the non-crossing handshakes) of Stanley's exercise 19.

Crossrefs

A069888 Self-inverse permutation of natural numbers induced by the automorphism DeepReverse_et_RotateHandshakes! acting on the parenthesizations encoded by A014486.

Original entry on oeis.org

0, 1, 3, 2, 7, 5, 8, 4, 6, 17, 12, 20, 10, 15, 18, 13, 21, 9, 14, 22, 11, 16, 19, 45, 31, 54, 26, 40, 48, 34, 57, 24, 38, 61, 29, 43, 52, 46, 32, 55, 27, 41, 49, 35, 58, 23, 37, 62, 28, 42, 51, 50, 36, 59, 25, 39, 63, 30, 44, 53, 64, 33, 47, 56, 60, 129, 87, 157, 73, 115, 138
Offset: 0

Views

Author

Antti Karttunen, Apr 16 2002, suggested by Wouter Meeussen Dec 15 2001

Keywords

Comments

This automorphism reflects non-crossing handshakes (the interpretation n of Stanley's exercise 19) over the diagonal that goes through corner at "1 o'clock".

Crossrefs

Composition of A057164 and A057501, i.e. A069888(n) = A057501(A057164(n)). Cf. also A069889.

A082314 Involution of natural numbers: A057502-conjugate of A057164.

Original entry on oeis.org

0, 1, 2, 3, 4, 5, 8, 7, 6, 9, 11, 10, 12, 13, 21, 22, 20, 17, 18, 19, 16, 14, 15, 23, 28, 25, 30, 33, 24, 29, 26, 31, 34, 27, 32, 35, 36, 58, 62, 59, 63, 64, 57, 61, 54, 45, 48, 55, 46, 49, 50, 56, 60, 53, 44, 47, 51, 42, 37, 39, 52, 43, 38, 40, 41, 65, 79, 70, 84, 93
Offset: 0

Views

Author

Antti Karttunen, Apr 17 2003

Keywords

Crossrefs

a(n) = A057502(A069889(n)). Occurs in A073200 as row 2361759710983228099211. Cf. also A082313.
Number of cycles: A007123. Number of fixed-points: A001405. Max. cycle size: A046698. LCM of cycle sizes: A046698. (In range [A014137(n-1)..A014138(n-1)] of this permutation, possibly shifted one term left or right).

Formula

a(n) = A057502(A057164(A057501(n)))
Showing 1-5 of 5 results.