A327390 Number of connected divisors of n.
1, 2, 2, 2, 2, 3, 2, 2, 3, 3, 2, 3, 2, 3, 3, 2, 2, 4, 2, 3, 4, 3, 2, 3, 3, 3, 4, 3, 2, 4, 2, 2, 3, 3, 3, 4, 2, 3, 4, 3, 2, 5, 2, 3, 4, 3, 2, 3, 3, 4, 3, 3, 2, 5, 3, 3, 4, 3, 2, 4, 2, 3, 6, 2, 4, 4, 2, 3, 3, 4, 2, 4, 2, 3, 4, 3, 3, 5, 2, 3, 5, 3, 2, 5, 3, 3, 4
Offset: 1
Keywords
Links
Crossrefs
Programs
-
Mathematica
primeMS[n_]:=If[n==1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]]; zsm[s_]:=With[{c=Select[Tuples[Range[Length[s]],2],And[Less@@#,GCD@@s[[#]]]>1&]},If[c=={},s,zsm[Sort[Append[Delete[s,List/@c[[1]]],LCM@@s[[c[[1]]]]]]]]]; Table[Length[Select[Divisors[n],Length[zsm[primeMS[#]]]<=1&]],{n,100}]
Comments