OFFSET
1,4
COMMENTS
A rooted tree is transitive if every proper terminal subtree is also a branch of the root. First differs from A206139 at a(13) = 143.
Regarding the notation, a rooted tree is a finite multiset of rooted trees. For example, the rooted tree (o(o)(oo)) is short for {{},{{}},{{},{}}}. Each "o" is a leaf. Each pair of parentheses corresponds to a non-leaf node (such as the root). Its contents "(...)" represent a branch. - Gus Wiseman, Nov 16 2024
LINKS
Robert P. P. McKone, Table of n, a(n) for n = 1..68
Robert P. P. McKone, The transitive rooted trees with n=1 to n=22 nodes.
EXAMPLE
The a(7) = 8 7-node transitive rooted trees are: (o(oooo)), (oo(ooo)), (o(o)((o))), (o(o)(oo)), (ooo(oo)), (oo(o)(o)), (oooo(o)), (oooooo).
MATHEMATICA
nn=18;
rtall[n_]:=If[n===1, {{}}, Module[{cas}, Union[Sort/@Join@@(Tuples[rtall/@#]&/@IntegerPartitions[n-1])]]];
Table[Length[Select[rtall[n], Complement[Union@@#, #]==={}&]], {n, nn}]
PROG
(PARI)
an = 0; ax = 'x; axp = 0; at = 0; att = 0; aa = 0; ar = 0;
base(F, sh) = {my(bv = Vec(ax/(F + O(ax^an)))); my(C = 1, m, M, iv, j); for(m=1, an-1, if(ar[m], C *= binomial(bv[m], ar[m]))); if(!C, return()); M = an - 1 - sh; if(M < 0, return()); iv = Vec( 1/(F + O(ax^(M+1))) ); for(j=0, M, aa[1 + sh + j] += C * iv[j+1]); };
step(k, rem, F, sh) = {my(maxr = min(rem\k, at[k])); my(v, Fv = F, xk = axp[k]); for(v=0, maxr, ar[k] = v; rec(k+1, rem - k*v, Fv, sh + k*v); if(v < maxr, Fv -= xk*Fv); ); ar[k] = 0; };
rec(k, rem, F, sh) = {if(k == an, base(F, sh), step(k, rem, F, sh)); };
A(N) = {my(n = N, x = 'x); my(t = vector(n), s = vector(n)); my(k, m, acc, T); if(n==1, return([1])); an = n; ax = x; axp = vector(n-1, i, x^i); t[1] = 1; for(m=1, n, s[m] = 1); for(k=2, n, acc = 0; for(m=1, k-1, acc += s[m]*t[k-m]); t[k] = acc/(k-1); forstep(m=k, n, k, s[m] += k*t[k]); ); at = t; T = O(x^(n+1)); for(k=1, n, T += t[k]*x^k); att = T; aa = vector(n); ar = vector(n-1); rec(1, n-1, 1 + 0*x, 0); aa};
a(n) = A(n)[n];
print1(A(41)) \\ Robert P. P. McKone, Jan 28 2026
CROSSREFS
These trees are ranked by A290822.
KEYWORD
nonn
AUTHOR
Gus Wiseman, Oct 19 2017
EXTENSIONS
a(20) from Robert Price, Sep 13 2018
a(21)-a(22) from Robert P. P. McKone, Dec 16 2023
a(23)-a(68) from Robert P. P. McKone, Jan 28 2026
STATUS
approved
