A378365 Next prime index after each perfect power, duplicates removed.
1, 3, 5, 7, 10, 12, 16, 19, 23, 26, 31, 32, 35, 40, 45, 48, 49, 54, 55, 62, 67, 69, 73, 79, 86, 93, 98, 100, 106, 115, 123, 130, 138, 147, 155, 163, 169, 173, 182, 192, 201, 211, 218, 220, 229, 241, 252, 264, 270, 275, 284, 296, 307, 310, 320, 328, 330, 343
Offset: 1
Keywords
Examples
The first number line below shows the perfect powers. The second shows each n at position prime(n). To get a(n), we take the first prime between each pair of consecutive perfect powers, skipping the cases where there are none. -1-----4-------8-9------------16----------------25--27--------32------36---- ===1=2===3===4=======5===6=======7===8=======9==========10==11==========12==
Crossrefs
Programs
-
Mathematica
perpowQ[n_]:=n==1||GCD@@FactorInteger[n][[All,2]]>1; Union[1+Table[PrimePi[n],{n,Select[Range[100],perpowQ]}]]
Comments