OFFSET
6,3
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).
FORMULA
G.f. x^6*(1 -x^2 +3*x^3 +x^5 -6*x^7 +15*x^9 -17*x^10 -x^11 +19*x^12 -9*x^13 -6*x^14 +12*x^15 +x^17 -x^4 +8*x^6 -3*x^16) / ( (x^2+1)^4 *(1+x)^6 *(1-x)^7 ). - R. J. Mathar, May 06 2026
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 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Alois P. Heinz, Jul 09 2019
STATUS
approved
