|
Search: id:A076616
|
|
|
| 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). |
|
+0 2
|
| |
|
|
OFFSET
|
1,3
|
|
|
EXAMPLE
|
a(3) = 2 because only the permutations 1 2 3 and 3 2 1 result in result in a search tree of height 2 (notice we count empty external nodes in determining the height). The largest such trees are of height 3.
|
|
CROSSREFS
|
Sequence in context: A123791 A152665 A061608 this_sequence A127276 A110048 A094505
Adjacent sequences: A076613 A076614 A076615 this_sequence A076617 A076618 A076619
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
Jeffrey Shallit (shallit(AT)graceland.uwaterloo.ca), Oct 22 2002
|
|
|
Search completed in 0.002 seconds
|