A324703 Lexicographically earliest sequence containing 3 and all positive integers n such that the prime indices of n - 1 already belong to the sequence.
3, 6, 14, 26, 44, 66, 102, 126, 170, 194, 216, 318, 326, 506, 558, 560, 626, 702, 846, 966, 1014, 1076, 1182, 1314, 1322, 1586, 1626, 1850, 2112, 2162, 2198, 2510, 2526, 2786, 2796, 3126, 3506, 3618, 4050, 4058, 4122, 4226, 4344, 4640, 4826, 5066, 5298, 5376
Offset: 1
Keywords
Crossrefs
Programs
-
Mathematica
aQ[n_]:=Switch[n,0,False,3,True,,And@@Cases[FactorInteger[n-1],{p,k_}:>aQ[PrimePi[p]]]]; Select[Range[0,1000],aQ]
Formula
a(n) = A324702(n) + 1.
Comments