A326507 Number of (binary) max-heaps on n elements from the set {0,1} containing exactly six 0's.
1, 1, 2, 5, 9, 16, 27, 44, 68, 114, 156, 236, 325, 500, 622, 900, 1143, 1659, 1954, 2731, 3277, 4564, 5185, 7040, 8114, 10948, 12124, 16058, 17977, 23640, 25692, 33304, 36493, 46965, 50322, 64017, 69025, 87208, 92423, 115652, 123168, 153142, 160908, 198440
Offset: 6
Links
- Alois P. Heinz, Table of n, a(n) for n = 6..10000
- Eric Weisstein's World of Mathematics, Heap
- Wikipedia, Binary heap
- Index entries for linear recurrences with constant coefficients, signature (1, 2, -2, 3, -3, -8, 8, -2, 2, 12, -12, -2, 2, -8, 8, 3, -3, 2, -2, -1, 1).
Crossrefs
Column k=6 of A309049.
Programs
-
Mathematica
LinearRecurrence[{1, 2, -2, 3, -3, -8, 8, -2, 2, 12, -12, -2, 2, -8, 8, 3, -3, 2, -2, -1, 1},{1, 1, 2, 5, 9, 16, 27, 44, 68, 114, 156, 236, 325, 500, 622, 900, 1143, 1659, 1954, 2731, 3277},50] (* Ray Chandler, Sep 25 2022 *)