OFFSET
1,2
EXAMPLE
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==
MATHEMATICA
perpowQ[n_]:=n==1||GCD@@FactorInteger[n][[All, 2]]>1;
Union[1+Table[PrimePi[n], {n, Select[Range[100], perpowQ]}]]
CROSSREFS
The opposite version is A377283.
Positions of first appearances in A378035.
First differences are A378251.
Union of A378356.
A069623 counts perfect powers <= n.
A076411 counts perfect powers < n.
A080769 counts primes between perfect powers.
KEYWORD
nonn
AUTHOR
Gus Wiseman, Nov 26 2024
STATUS
approved
