A360007 Positions of first appearances in the sequence giving the median of the prime indices of n (A360005(n)/2).
1, 2, 3, 5, 6, 7, 11, 13, 14, 17, 19, 23, 26, 29, 31, 37, 38, 41, 43, 47, 53, 58, 59, 61, 67, 71, 73, 74, 79, 83, 86, 89, 97, 101, 103, 106, 107, 109, 113, 122, 127, 131, 137, 139, 142, 149, 151, 157, 158, 163, 167, 173, 178, 179, 181, 191, 193, 197, 199, 202
Offset: 1
Keywords
Crossrefs
Programs
-
Mathematica
nn=1000; 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}]; Select[Range[nn],FreeQ[seq[[Range[#-1]]],seq[[#]]]&]
Formula
Consists of 1, the primes, and all odd-indexed primes times 2.
Comments