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.

A057509 Permutation of natural numbers: rotations of the bottom branches of the rooted plane trees encoded by A014486.

This page as a plain text file.
%I A057509 #7 May 01 2014 02:48:29
%S A057509 0,1,2,3,4,6,5,7,8,9,11,14,16,19,10,15,12,17,18,13,20,21,22,23,25,28,
%T A057509 30,33,37,39,42,44,47,51,53,56,60,24,29,38,43,52,26,40,31,45,46,32,48,
%U A057509 49,50,27,41,34,54,55,35,57,58,59,36,61,62,63,64,65,67,70,72,75,79,81
%N A057509 Permutation of natural numbers: rotations of the bottom branches of the rooted plane trees encoded by A014486.
%C A057509 The number of objects (rooted planar trees, mountain ranges, parenthesizations) fixed by this permutation can be computed with procedure fixedcount, which gives A034731.
%H A057509 <a href="/index/Per#IntegerPermutation">Index entries for sequences that are permutations of the natural numbers</a>
%H A057509 A. Karttunen, <a href="http://www.iki.fi/~kartturi/matikka/Nekomorphisms/gatomorf.htm">Gatomorphisms</a> (Includes the complete Scheme program for computing this sequence)
%p A057509 map(CatalanRankGlobal,map(RotateBottomBranchesL, A014486));
%p A057509 RotateBottomBranchesL := n -> pars2binexp(rotateL(binexp2pars(n)));
%p A057509 rotateL := proc(a) if 0 = nops(a) then (a) else [op(cdr(a)), a[1]]; fi; end;
%p A057509 fixedcount := proc(n) local d,z; z := 0; for d in divisors(n) do z := z+C(d-1); od; RETURN(z); end;
%o A057509 (Scheme function implementing this automorphism on list-structures:) (define (Rol s) (cond ((not (pair? s)) s) (else (append (cdr s) (list (car s))))))
%o A057509 (Destructive variant, see A057501 for RotateHandshakes! and swap!) (define (Rol! s) (cond ((pair? s) (swap! s) (RotateHandshakes! s))) s)
%Y A057509 Inverse of A057510 and the car/cdr-flipped conjugate of A069775 and also composition of A069770 & A057501, i.e. A057509(n) = A057163(A069775(A057163(n))) = A057501(A069770(n)).
%Y A057509 Cycle counts given by A003239. Cf. also A057511.
%K A057509 nonn
%O A057509 0,3
%A A057509 _Antti Karttunen_, Sep 03 2000