OFFSET
0,3
LINKS
PROG
(Scheme functions below show the essential idea. For a complete source, follow the "Gatomorphisms" link.)
(define A072656 (lexrank->arithrank-bijection packA048680oA054238))
(define (lexrank->arithrank-bijection packfun) (lambda (n) (rank-bintree (binexp->parenthesization (A014486 n)) packfun)))
(define (rank-bintree bt packfun) (cond ((not (pair? bt)) 0) (else (1+ (packfun (rank-bintree (car bt) packfun) (rank-bintree (cdr bt) packfun))))))
(define (packA048680oA054238tr x y) (A048680 (packA054238tr x y)))
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jun 02 2002
STATUS
approved