A360006 Least positive integer whose prime indices have median n/2. a(1) = 1.
1, 2, 6, 3, 14, 5, 26, 7, 38, 11, 58, 13, 74, 17, 86, 19, 106, 23, 122, 29, 142, 31, 158, 37, 178, 41, 202, 43, 214, 47, 226, 53, 262, 59, 278, 61, 302, 67, 326, 71, 346, 73, 362, 79, 386, 83, 398, 89, 446, 97, 458, 101, 478, 103, 502, 107, 526, 109, 542, 113
Offset: 1
Keywords
Crossrefs
Programs
-
Mathematica
nn=100; prix[n_]:=If[n==1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]]; seq=Table[If[n==1,1,2*Median[prix[n]]],{n,nn}]; Table[Position[seq,k][[1,1]],{k,Count[Differences[Union[seq]],1]}]
Comments