OFFSET
1,2
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..900
F. Ruskey, Information on Red-Black Trees
Eric Weisstein's World of Mathematics, Red-Black Tree.
FORMULA
G.f. satisfies: A(x) = x*(1+x)^2*(1 + A((x+x^2)^2)). - Paul D. Hanna, Jun 14 2012
MATHEMATICA
m = 35; A[_] = 0;
Do[A[x_] = x*(1 + x)^2*(1 + A[(x + x^2)^2]) + O[x]^m // Normal, {m}];
CoefficientList[A[x]/x, x] (* Jean-François Alcover, Oct 19 2019 *)
PROG
(PARI) {a(n)=local(A=x); for(i=1, n, A=x*(1+x)^2*(1 + subst(A, x, (x+x^2)^2+x*O(x^n)))); polcoeff(A, n)} \\ Paul D. Hanna, Jun 14 2012
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
More terms from Sean A. Irvine, Mar 08 2012
STATUS
approved