OFFSET
0,5
COMMENTS
An orderless same-tree of weight n > 0 is either a single node of weight n, or a finite multiset of two or more orderless same-trees whose weights are all equal and sum to n.
FORMULA
a(1) = 1; a(n > 1) = Sum_d binomial(a(n/d) + d - 1, d) where the sum is over odd divisors of n greater than 1.
EXAMPLE
The a(13) = 6 orderless same-trees: 27, (999), (99(333)), (9(333)(333)), ((333)(333)(333)), (333333333).
MATHEMATICA
a[n_]:=If[n===1, 1, Sum[Binomial[a[n/d]+d-1, d], {d, Select[Rest[Divisors[n]], OddQ]}]];
Table[a[n], {n, 1, 100, 2}]
PROG
(PARI) f(n) = if (n==1, 1, sumdiv(n, d, if ((d > 1) && (d % 2), binomial(f(n/d)+d-1, d))));
a(n) = f(2*n+1); \\ Michel Marcus, Mar 10 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Mar 10 2018
STATUS
approved