A381806 Numbers that cannot be written as a product of squarefree numbers with distinct sums of prime indices.
4, 8, 9, 16, 24, 25, 27, 32, 40, 48, 49, 54, 56, 64, 72, 80, 81, 88, 96, 104, 108, 112, 121, 125, 128, 135, 136, 144, 152, 160, 162, 169, 176, 184, 189, 192, 200, 208, 216, 224, 232, 240, 243, 248, 250, 256, 272, 288, 289, 296, 297, 304, 320, 324, 328, 336
Offset: 1
Keywords
Examples
There are 4 factorizations of 18000 into squarefree numbers: (2*2*3*5*10*30) (2*2*5*6*10*15) (2*2*10*15*30) (2*5*6*10*30) but none of these has all distinct sums of prime indices, so 18000 is in the sequence.
Crossrefs
Programs
-
Mathematica
hwt[n_]:=Total[Cases[FactorInteger[n],{p_,k_}:>PrimePi[p]*k]]; sqfics[n_]:=If[n<=1,{{}},Join@@Table[Map[Prepend[#,d]&,Select[sqfics[n/d],Min@@#>=d&]],{d,Select[Rest[Divisors[n]],SquareFreeQ]}]] Select[Range[nn],Length[Select[sqfics[#],UnsameQ@@hwt/@#&]]==0&]
Comments