A378368 Positions (in A001597) of consecutive perfect powers with a unique prime between them.
15, 20, 22, 295, 1257
Offset: 1
Examples
The 15th and 16th perfect powers are 125 and 128, and 127 is the only prime between them, so 15 is in the sequence.
Crossrefs
These are the positions of 1 in A080769.
For no (instead of one) perfect powers we have A274605.
For prime powers instead of perfect powers we have A379155.
A069623 counts perfect powers <= n.
A076411 counts perfect powers < n.
A081676 gives the greatest perfect power <= n.
A377468 gives the least perfect power > n.
Programs
-
Mathematica
perpowQ[n_]:=n==1||GCD@@FactorInteger[n][[All,2]]>1; v=Select[Range[1000],perpowQ]; Select[Range[Length[v]-1],Length[Select[Range[v[[#]],v[[#+1]]],PrimeQ]]==1&]
Comments