OFFSET
0,3
LINKS
PROG
(Scheme)
;; Functions below show the essential idea:
(define A072634 (lexrank->arithrank-bijection packA054238))
(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))))))
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jun 02 2002
STATUS
approved