Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.
%I #8 Nov 26 2024 17:13:36
%S 1,4,9,16,27,36,49,64,81,100,125,128,144,169,196,216,225,243,256,289,
%T 324,343,361,400,441,484,512,529,576,625,676,729,784,841,900,961,1000,
%U 1024,1089,1156,1225,1296,1331,1369,1444,1521,1600,1681,1728,1764,1849
%N Perfect powers p such that there are no other perfect powers between p and the least prime > p.
%C Perfect powers (A001597) are 1 and numbers with a proper integer root, complement A007916.
%C Each term is the greatest perfect power < prime(k) for some k.
%e The first number line below shows the perfect powers. The second shows each prime. To get a(n), we take the last perfect power in each interval between consecutive primes, omitting the cases where there are none.
%e -1-----4-------8-9------------16----------------25--27--------32------36----
%e ===2=3===5===7======11==13======17==19======23==========29==31==========37==
%t radQ[n_]:=n>1&&GCD@@Last/@FactorInteger[n]==1;
%t Union[Table[NestWhile[#-1&,Prime[n],radQ[#]&],{n,1000}]]
%Y Union of A378035, restriction of A081676 to the primes.
%Y The opposite is A378250, union of A378249 (run-lengths A378251).
%Y A000040 lists the primes, differences A001223.
%Y A001597 lists the perfect powers, differences A053289.
%Y A007916 lists the non-perfect powers, differences A375706.
%Y A069623 counts perfect powers <= n.
%Y A076411 counts perfect powers < n.
%Y A080769 counts primes between perfect powers.
%Y A377283 ranks perfect powers between primes, differences A378356.
%Y A377432 counts perfect powers between primes, see A377434, A377436, A377466.
%Y Cf. A000015, A000961, A052410, A067871, A076412, A131605, A188951, A216765, A345531, A377057, A377468, A378355.
%K nonn
%O 1,2
%A _Gus Wiseman_, Nov 26 2024