

A337089


Number of rooted trees of n vertices in which all leaves are at even depths (distances down from the root).


2



0, 1, 0, 1, 1, 3, 4, 10, 17, 38, 73, 158, 324, 700, 1483, 3224, 6979, 15300, 33571, 74219, 164476, 366302, 817999, 1833280, 4119266, 9281867, 20962757, 47453359, 107637494, 244630449, 556964670, 1270218355, 2901393727, 6637071449, 15203568955, 34872363374
(list;
graph;
refs;
listen;
history;
text;
internal format)



OFFSET

0,6


COMMENTS

For n=0, there are no rooted trees at all, per A000081.
For n>=1, by omitting the root vertex, a(n) is the number of rooted forests of n1 vertices in which all leaves are at odd depths down from the forest roots. This includes the empty forest (no vertices at all).
For n>=1, a(n) is the number of rooted hypertrees of weight n1. Each vertex (leaf or not) at an even depth is a hypervertex. The root is the hypertree root. Each hyperedge is the set of vertices surrounding an odd depth vertex, so that the weight (total hyperedge cardinalities) is the number of edges in the tree (n1).
A337090 counts trees with all leaves at odd depths. The forests interpretation here is those odd trees assembled to make odd forests so that this sequence is shiftup of the Euler transform of A337090. In turn A337090 is shiftup of the Euler transform of the present sequence (except for treatment of the empty forest) so that it's convenient to calculate them together term by term.


LINKS



FORMULA

a(n) = (Sum_{k=1..n1} a(k) * Sum_{d divides nk} d*A337090(d)) / (n1), for n>=2.
G.f.: x * Product_{k>=1} 1/(1x^k)^A337090(k).
G.f.: x * exp(Sum_{k>=1} A337090(x^k)/k).


EXAMPLE

For n=5 vertices there are a(5) = 3 rooted trees in which all leaves are at even depths.
* * * depth=0, root
 / \ 
* * * *
/\   
* * * * * * depth=2, even

*

* depth=4, even


PROG

(PARI) \\ Return a vector of vec[n]=a(n) for n=1..len inclusive (so a(0)=0 omitted).
a_vector(len) = {
my(evens=vector(len), ec=vector(len)); evens[1]=1;
my(odds=vector(len), oc=vector(len));
for(n=1, len1,
ec[n] = sumdiv(n, d, d*evens[d]);
oc[n] = sumdiv(n, d, d*odds[d]);
evens[n+1] = sum(k=1, n, oc[k]*evens[n+1k]) /n;
odds[n+1] = (ec[n] + sum(k=1, n1, ec[k]* odds[n+1k])) /n);
evens; } \\ or instead "odds" is A337090


CROSSREFS



KEYWORD

nonn


AUTHOR



STATUS

approved



