OFFSET
0,3
COMMENTS
The number of trees with n unlabeled nodes is given by A000055. The present sequence is the total number of distinct subtrees of each tree with n unlabeled nodes. This excludes the empty set and so a(0) = 0.
LINKS
Adam A. Arfaoui, Matlab program
EXAMPLE
For n = 3 the a(3) = 6 solutions are found by counting subtrees on the A000055(3) = 1 tree.
Tree (3,1):
o-o-o ->
(o ) +
( o ) +
( o) +
(o-o ) +
( o-o) +
(o-o-o)
= 6.
a(3) = number of subtrees of (3,1) = 6.
For n = 4 there are A000055(4) = 2 distinct trees.
Tree (4,1):
o-o-o-o ->
(o ) +
( o ) +
( o ) +
( o) +
(o-o ) +
( o-o ) +
( o-o) +
(o-o-o ) +
( o-o-o) +
(o-o-o-o)
= 10.
Tree (4,2):
o-o-o ->
|
o
(o ) +
( o ) +
( o) +
( ) +
o
(o-o ) +
( o-o) +
( o ) +
|
o
(o-o-o) +
(o-o ) +
|
o
( o-o) +
|
o
(o-o-o)
|
o
= 11.
a(4) = number of subtrees of (4,1) + number of subtrees of (4,2) = 10 + 11 = 21.
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Adam A. Arfaoui, May 14 2022
STATUS
approved