OFFSET
1,1
COMMENTS
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
25 = 5^2 is a term since it is an odd powerful number and the next powerful number, 27 = 3^3, is also odd.
MATHEMATICA
With[{pow = Select[Range[10^5], # == 1 || Min[FactorInteger[#][[;; , 2]]] > 1 &]}, pow[[Select[Range[Length[pow] - 1], OddQ[pow[[#]]] && OddQ[pow[[#+1]]] &]]]]
PROG
(PARI) lista(kmax) = {my(c = 0); for(k = 1, kmax, if(ispowerful(k), c++; if(k%2, print1(c, ", ")))); }
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Amiram Eldar, May 21 2023
STATUS
approved