OFFSET
0,3
LINKS
A. Karttunen, Gatomorphisms (Includes the complete Scheme program for computing this sequence)
MAPLE
map(CatalanRankGlobal, map(RotateBottomBranchesR, A014486));
RotateBottomBranchesR := n -> pars2binexp(rotateR(binexp2pars(n)));
rotateR := a -> reverse(rotateL(reverse(a)));
RotBBPermutationCycleCounts := proc(upto_n) local u, n, a, r, b; a := []; for n from 0 to upto_n do b := []; u := (binomial(2*n, n)/(n+1)); for r from 0 to u-1 do b := [op(b), 1+CatalanRank(n, RotateBottomBranchesL(CatalanUnrank(n, r)))]; od; a := [op(a), CountCycles(b)]; od; RETURN(a); end;
PROG
(Scheme function implementing this automorphism on list-structures, see A057502 for RotateHandshakes! and swap!:) (define (Ror! s) (cond ((pair? s) (RotateHandshakesInv! s) (swap! s))) s)
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Sep 03 2000
STATUS
approved