Hello sequence fans,
Let a “rectree” be an unrooted, unlabeled tree with at least
two vertices, where each vertex may itself contain a rectree.
Let the size of a rectree be the count of its vertices that do not contain rectrees, plus the sum of the sizes of each of its inner rectrees. (If we allowed rectrees of one vertex, it would complicate this definition of size.)
Here is an image of all rectrees of size 2 through 4.

There are 22 rectrees of size 5: the three unlabeled trees of size 5, plus a nice recursive procedure of adding the rectree of size 2 into each empty vertex of each rectree of size 4, 3 into 3, and 4 into 2, then removing duplicates using the natural definition of isomorphism.
Writing a program to do this was complicated (especially the isomorphism part) so I asked ChatGPT for one, which output the following sequence:
1, 2, 7, 22, 82, 308, 1231, 5011, 20997
This matches nothing in the OEIS, but since I don’t know if ChatGPT’s
program is correct, I’m not ready to submit it. I got a much faster program
from Google Gemini that generates the next term in the sequence without enumerating
the rectrees using the Euler transform but it is over my head. I'm happy to share the Python code from either program.
I stumbled upon this idea of rectrees while researching 3-chromatic graphs. Happy to explain how they relate.
If you restrict yourself to trees of only two vertices, you get the half Catalan numbers A000992. I don't know any other related sequences. I'm worried this is a needless restriction (or generalization) of a more useful object.
What do you all think?
Best,
Brett Schreiber
--
You received this message because you are subscribed to the Google Groups "SeqFan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to seqfan+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/seqfan/8d512a7b-7483-4dbf-ba1f-cb210c3157dfn%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/seqfan/CADy-sGFkH1BNeBVQGe-Zg36BGM2KPCwJ6S_W%3DZwpTUFuNg8DXw%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/seqfan/CAL0FET%3DjkFG_F4m5k4F0BaZ__Yr8zEGSXKWCtuWfAVa1_k9yzw%40mail.gmail.com.
A rectree has an "outer" tree (unrooted, unlabeled, with ≥ 2 vertices) where each vertex is either simple (contributing weight 1) or loaded with a rectree of order (contributing weight ). The order of the rectree is the sum of all vertex weights.
So the order-2 rectree is just an edge between two simple vertices: ●—●. And we can verify order 3 has exactly 2: the 3-vertex path ●—●—●, and an edge with one vertex loaded with the order-2 rectree: ●—(●—●).
Define four generating functions, all in the indeterminate tracking total order:
Equation 1 (Rooted trees, Pólya-style): A rooted tree is a root vertex attached to a multiset of rooted subtrees:
Equation 2 (Otter's theorem): Converting rooted → unrooted by subtracting the bicentered contribution:
Equation 3 (Removing single-vertex trees): An unrooted weighted tree is either a single vertex (generating function ) or a genuine multi-vertex tree (generating function ):
This last equation encodes a beautiful combinatorial doubling: every rectree of order appears twice among the weighted unrooted trees of order — once as itself, and once as a single vertex loaded with a copy of itself. So .
Combining Equations 2 and 3 gives , where depends only on prior terms. Meanwhile, expanding Equation 1 as a Cauchy product (where is the exponential factor) and substituting yields a direct recurrence:
andwhere is the coefficient of in , computable via the standard recurrence with .
Everything on the right side depends only on and for , so we can march forward from , .
To view this discussion visit https://groups.google.com/d/msgid/seqfan/CAJeNNUgL%3DB6wPFc37eD8pGPF67_ak9zL5PBD1LG2XaSNNaJuYw%40mail.gmail.com.
> Does anyone get the feeling that thinking is gradually becoming optional?