%I #9 Mar 03 2016 12:24:01
%S 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,2,1,1,1,
%T 1,1,1,1,1,1,1,1,6,1,1,1,1,2,1,1,1,1,1,1,1,2,1,1,1,6,1,2,1,1,1,14,1,1,
%U 1,1,1,1,1,1,22,1,1,1,1,1,1,2,1,1,1,14,1,1,1,1,1,2,1,252,1,1,1,5,1,2
%N Nonzero values of A119842, in order of appearance.
%H Alois P. Heinz, <a href="/A119849/b119849.txt">Table of n, a(n) for n = 1..3323</a>
%t b[s_, t_] := b[s, t] = If[Length[s] < 1, 1, Sum[If[Mod[PrimeOmega[x], 2] == 1 - t && Length[Select[s, Mod[#, x] == 0 &]] == 1, b[s~Complement~{x}, 1 - t], 0], {x, s}]]; a[n_] := a[n] = Module[{l, m}, l = Sort[ FactorInteger[n], #1[[2]] > #2[[2]] &]; m = Product[Prime[i]^l[[i]][[2]], {i, 1, Length[l]}]; b[Divisors[m][[2 ;; -2]], Mod[PrimeOmega[m], 2]]]; Reap[For[ k = 1, k < 200, k++, If[a[k] > 0, Print[k, " ", a[k]]; Sow[a[k]]]]][[2, 1]] (* _Jean-François Alcover_, Mar 03 2016, after _Alois P. Heinz_ *)
%Y a(n) = A119842(A119848(n)).
%K nonn
%O 1,24
%A _Antti Karttunen_, Jun 04 2006