|
|
A272371
|
|
Maximal balanced binary trees in the Tamari lattices.
|
|
2
|
|
|
1, 1, 1, 1, 2, 2, 2, 4, 6, 9, 11, 13, 22, 38, 60, 89, 128, 183, 256, 353, 512, 805, 1336, 2221, 3594, 5665, 8774, 13433, 20359, 30550, 45437, 67086, 98491, 144492, 213876, 322912, 500320, 793981, 1280684, 2080743, 3379956, 5462816, 8763837, 13948663, 22041664, 34622880, 54126792, 84292070, 130838126
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,5
|
|
COMMENTS
|
a(n) is the number of binary trees T with n internal nodes such that T is balanced (also called AVL tree) and there is no binary tree S greater than T for the Tamari order such that S is balanced.
|
|
LINKS
|
|
|
FORMULA
|
G.f.: A(x) = B(x, 0, 0) where B(x, y, z) satisfies B(x, y, z) = x + B(x^2 + x*y + y*z, x, x*y).
|
|
MATHEMATICA
|
m = 49; R = O[x]^(m+1);
B[x_, y_, z_, k_:0] = If[k >= m, x, x + R + B[x^2 + x y + y z + R, x + R, x y + R, k + 1] // Normal];
|
|
PROG
|
(PARI)
N = 66; R = O('x^(N+1)); x = 'x+R;
B(x, y, z, k=0) = if( k>=N, x, x + R + B(x^2 + x*y + y*z + R, x + R, x*y + R, k+1) );
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|