OFFSET
1,2
COMMENTS
The number of ways n different tags can be assigned to different nodes of an unspecified labeled rooted tree with n nodes. (This therefore includes the choice of one of the n^(n-1) labeled rooted trees.) In this description, we differentiate between labels and tags: we view the labels together with the root as part of the labeled rooted tree's definition, but the tags as an assignment in relation to the labels that is independent of the root.
Is this, equivalently, the number of doubly labeled rooted trees?
FORMULA
a(n) = n! * n^(n-1).
a(n) = Integral_{x>=0} x^(n-1) * exp(-x/n) dx.
a(n) = n! * [x^n] (1/n)*sinh(n*x)^n. - Stefano Spezia, Feb 21 2024
EXAMPLE
The 4 labeled rooted trees with two nodes and two tags assigned are:
.
R R
L1--L2 L1--L2
T1 T2 T2 T1
.
R R
L1--L2 L1--L2
T1 T2 T2 T1
.
MAPLE
seq(n^n*factorial(n-1), n=1..16)
MATHEMATICA
Table[n^n*(n-1)!, {n, 1, 16}]
PROG
(PARI) a(n) = (n-1)!*n^n
CROSSREFS
KEYWORD
nonn
AUTHOR
Thomas Scheuerle, Jan 26 2024
STATUS
approved