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.
%I A123492 #6 Mar 31 2012 13:21:12 %S A123492 0,1,2,3,4,8,6,7,5,9,10,20,21,22,14,19,16,17,18,15,11,12,13,23,24,25, %T A123492 26,27,54,55,57,58,59,61,62,63,64,37,38,53,56,60,42,51,44,45,46,47,48, %U A123492 49,50,43,52,39,28,29,40,30,31,32,41,33,34,35,36,65,66,67,68,69,70,71 %N A123492 An involution of nonnegative integers: signature permutation of a nonrecursive Catalan automorphism which swaps the sides of a binary tree if the left subtree of either the left or right hand side toplevel subtree is not empty and otherwise keeps the binary tree intact. %C A123492 This automorphism effects the following transformation on the unlabeled rooted plane binary trees (letters A, B, C and D refer to arbitrary subtrees located on those nodes.) %C A123492 .....B...C.....B...C...........A...B.............A...B... %C A123492 ......\./.......\./.............\./...............\./.... %C A123492 .......x...D.....x...D...........x...C.............x...C. %C A123492 ........\./.......\./.............\./...............\./.. %C A123492 .....A...x...-->...x...A...........x...D...-->...D...x... %C A123492 ......\./...........\./.............\./...........\./.... %C A123492 .......x.............x...............x.............x..... %H A123492 A. Karttunen, <a href="/A089840/a089840p.txt">Prolog-program which illustrates the construction of this and other similar nonrecursive Catalan automorphisms.</a> %H A123492 <a href="/index/Per#IntegerPermutationCatAuto">Index entries for signature-permutations of Catalan automorphisms</a> %o A123492 (Scheme function, destructive implementation of this automorphism acting on S-expressions:) (define (*A123492! s) (cond ((null? s) s) ((and (pair? (cdr s)) (pair? (cadr s))) (*A069770! s)) ((and (pair? (car s)) (pair? (caar s))) (*A069770! s))) s) %Y A123492 Row 79361 of A089840. Used to construct A123493, A123494, A123715 and A123716. Cf. A069770. %K A123492 nonn %O A123492 0,3 %A A123492 _Antti Karttunen_, Oct 11 2006