Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A082336
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A082336 Permutation of natural numbers induced by the gatomorphism gma082336 acting on the parenthesizations encoded by A014486/A063171. +0
8
0, 1, 3, 2, 8, 7, 4, 5, 6, 22, 21, 20, 18, 17, 9, 10, 11, 12, 13, 14, 15, 16, 19, 64, 63, 62, 59, 58, 61, 57, 55, 50, 49, 54, 48, 46, 45, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 47, 51, 52, 53, 56, 60, 196, 195, 194, 190, 189 (list; graph; listen)
OFFSET

0,3

COMMENT

This gatomorphism rotates binary trees right, if possible, otherwise reflects them with the gatomorphism A057163.

LINKS

A. Karttunen, Gatomorphisms (with the complete Scheme source)

Index entries for signature-permutations induced by Catalan automorphisms

PROGRAM

(Scheme functions implementing this automorphism on list-structures:)

(define (gma082336! s) (cond ((pair? s) (cond ((pair? (car s)) (robr! s)) (else (gma057163! s))))) s)

(define (robr! s) (let ((ex-cdr (cdr s))) (set-cdr! s (caar s)) (set-car! (car s) ex-cdr) (swap! (car s)) (swap! s) s))

(define (swap! s) (let ((ex-car (car s))) (set-car! s (cdr s)) (set-cdr! s ex-car) s))

CROSSREFS

Inverse of A082335. Cf. also A074679-A074680, A082349-A082350.

Number of fixed-points: A019590. (In range [A014137(n-1)..A014138(n-1)] of this permutation, possibly shifted one term left or right).

Sequence in context: A131165 A131158 A082350 this_sequence A122333 A130356 A074682

Adjacent sequences: A082333 A082334 A082335 this_sequence A082337 A082338 A082339

KEYWORD

nonn

AUTHOR

Antti Karttunen (Firstname.Surname(AT)iki.fi), Apr 17 2003

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified August 19 23:53 EDT 2008. Contains 142930 sequences.


AT&T Labs Research