Number of permutations of {1,2,...,n} that result in a binary search tree (when elements of the permutation are inserted in that order) of height n-1 (i.e., the second largest possible height).

A076616

Number of permutations of {1,2,...,n} that result in a binary search tree (when elements of the permutation are inserted in that order) of height n-1 (i.e., the second largest possible height).

Terms

    a(0) =0a(1) =0a(2) =0a(3) =2a(4) =16a(5) =64a(6) =208a(7) =608a(8) =1664a(9) =4352a(10) =11008a(11) =27136a(12) =65536a(13) =155648a(14) =364544a(15) =843776a(16) =1933312a(17) =4390912a(18) =9895936a(19) =22151168a(20) =49283072a(21) =109051904a(22) =240123904a(23) =526385152a(24) =1149239296a(25) =2499805184a(26) =5419040768a(27) =11710496768a(28) =25232932864a(29) =54223962112

External references