constant MAX_N = 32, BRANCH = 4 sequence {rooted,unrooted} @= repeat(0,MAX_N+2) procedure tree(integer br, n, l=n, tot=1, atom cnt=1) atom c for b=br+1 to BRANCH do tot += n if tot>=MAX_N+1 or (l*2>=tot and b>=BRANCH) then return end if if b==br+1 then c = rooted[n+1]*cnt else c *= (rooted[n+1]+(b-br-1))/(b-br) end if if l*2