OFFSET
5,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 5..10000
Eric Weisstein's World of Mathematics, Heap
Wikipedia, Binary heap
Index entries for linear recurrences with constant coefficients, signature (1, 2, -2, 2, -2, -6, 6, 0, 0, 6, -6, -2, 2, -2, 2, 1, -1).
MATHEMATICA
LinearRecurrence[{1, 2, -2, 2, -2, -6, 6, 0, 0, 6, -6, -2, 2, -2, 2, 1, -1}, {1, 1, 2, 5, 8, 13, 24, 34, 52, 74, 116, 145, 211, 270, 392, 460, 643}, 50] (* Ray Chandler, Sep 25 2022 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Alois P. Heinz, Jul 09 2019
STATUS
approved