OFFSET
2,5
FORMULA
a(n) = Sum_t (-1)^(v(t)-1) where the sum is over all strict tree-factorizations of n (see A295279 for definition) and v(t) is the number of nodes (branchings and leaves) in t.
MATHEMATICA
nn=100;
facs[n_]:=If[n<=1, {{}}, Join@@Table[Map[Prepend[#, d]&, Select[facs[n/d], Min@@#>=d&]], {d, Rest[Divisors[n]]}]];
-Solve[Table[-1==Sum[Times@@a/@f, {f, Select[facs[n], UnsameQ@@#&]}], {n, 2, nn}], Table[a[n], {n, 2, nn}]][[1, All, 2]]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Nov 24 2017
STATUS
approved