OFFSET
0,3
COMMENTS
It's much easier to implement Callan's 2006 bijection for S-expressions if one considers a mirror-image of the graphical description given by Callan (on page 3). Then this automorphism is just RIBS-transformation (explained in A122200) of the automorphism A127377 and Callan's original variant A127381 is obtained as A057164(a(A057164(n))).
LINKS
A. Karttunen, Table of n, a(n) for n = 0..2055
D. Callan, A Bijection on Dyck Paths and Its Cycle Structure, 2006, 17pp.
PROG
CROSSREFS
Inverse: A127380. a(n) = A057164(A127381(A057164(n))). The number of cycles and the number of fixed points in range [A014137(n-1)..A014138(n-1)] of this permutation are given by A127384 and A086625 shifted once right. The maximum cycles and LCM's of cycle sizes begin as 1, 1, 1, 2, 4, 4, 8, 8, 8, 8, 16, 16, 16, 16, ... A127302(a(n)) = A127302(n) holds for all n. A127388 shows a variant which is an involution.
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jan 16 2007
STATUS
approved