OFFSET
0,4
COMMENTS
Also, the number of binary heaps on n elements whose breadth-first search reading word avoids 312.
Note that a breadth-first search reading word is equivalent to reading the tree labels left to right by levels, starting with the root.
For more information on heaps, see A056971.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..1000
D. Levin, L. Pudwell, M. Riehl, A. Sandberg, Pattern Avoidance on k-ary Heaps, Slides of Talk, 2014.
Manda Riehl (joint work with Derek Levin, Lara Pudwell, and Adam Sandberg), Page 92 of the Permutation Patterns 2014 Abstract Book .
Manda Riehl, A heap on 4 elements
FORMULA
a(n) = Sum_{i=0..floor((n-1)/2))} A000108(i)*a(n-i-1).
EXAMPLE
A heap on 4 elements is pictured in the 2nd link, and has breadth first reading word abcd. Then for n = 4 the a(4) = 3 heaps have reading words 1234, 1243, and 1324.
CROSSREFS
KEYWORD
nonn
AUTHOR
Manda Riehl, Sep 04 2014
STATUS
approved