OFFSET
1,9
COMMENTS
A permutation is heapable if its elements can be inserted into a binary min-heap in breadth-first order without violating the heap property.
LINKS
Sean A. Irvine, Table of n, a(n) for n = 1..120 (rows 1..15 flattened)
Benjamin Chen, Michael Cho, Mario Tutuncu-Macias, and Tony Tzolov, Efficient methods of calculating the number of heapable permutations, Discrete Applied Mathematics Volume 331, 31 May 2023, Pages 126-137.
Manolopoulos Panagiotis, Python Program
EXAMPLE
Triangle begins:
1
0, 1
0, 1, 1
0, 1, 2, 2
0, 2, 5, 5, 5
0, 5, 15, 17, 17, 17
0, 17, 58, 71, 71, 71, 71
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Manolopoulos Panagiotis, Nov 10 2025
EXTENSIONS
More terms from Sean A. Irvine, Nov 23 2025
STATUS
approved
