A305761 Nonprime Heinz numbers of z-trees.
91, 203, 247, 299, 301, 377, 427, 551, 553, 559, 611, 689, 703, 707, 791, 817, 851, 923, 949, 973, 1027, 1073, 1081, 1141, 1159, 1247, 1267, 1313, 1339, 1349, 1363, 1391, 1393, 1501, 1537, 1591, 1603, 1679, 1703, 1739, 1757, 1769, 1781, 1807, 1897, 1919, 1961
Offset: 1
Keywords
Examples
2639 is the Heinz number of {4,6,10}, a z-tree corresponding to the multiset system {{1,1},{1,2},{1,3}}.
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[Union[Append[Delete[s,List/@c[[1]]],LCM@@s[[c[[1]]]]]]]]]; zensity[s_]:=Total[(PrimeNu[#]-1&)/@s]-PrimeNu[LCM@@s]; Select[Range[3000],With[{p=primeMS[#]},And[UnsameQ@@p,Length[p]>1,zensity[p]==-1,Length[zsm[p]]==1,Select[Tuples[p,2],UnsameQ@@#&&Divisible@@#&]=={}]]&]
Comments