OFFSET
1,8
COMMENTS
A multimin factorization of n is an ordered factorization of n into factors greater than 1 such that the sequence of minimal primes dividing each factor is weakly increasing. A multimin tree-factorization of n is either the number n itself or a sequence of at least two multimin tree-factorizations, one of each factor in a multimin factorization of n. A multimin tree-factorization is complete if the leaves are all prime numbers.
EXAMPLE
The a(12) = 4 trees are (2*2*3), (2*(2*3)), ((2*3)*2), ((2*2)*3).
MATHEMATICA
facs[n_]:=If[n<=1, {{}}, Join@@Table[(Prepend[#1, d]&)/@Select[facs[n/d], Min@@#1>=d&], {d, Rest[Divisors[n]]}]];
mmftrees[n_]:=Prepend[Join@@(Tuples[mmftrees/@#]&/@Select[Join@@Permutations/@Select[facs[n], Length[#]>1&], OrderedQ[FactorInteger[#][[1, 1]]&/@#]&]), n];
Table[Length[Select[mmftrees[n], FreeQ[#, _Integer?(!PrimeQ[#]&)]&]], {n, 100}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Sep 11 2018
STATUS
approved