OFFSET
1,10
COMMENTS
Powerful k between perfect prime powers are in A286708.
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1..6) = 0 since s(9) = 36 is the smallest powerful number that is not a prime power.
a(7) = 1, since only s(9) = 36 is such that t(8) < 36 < t(9), i.e., 32 < 36 < 49.
a(8) = 0, since there are no powerful numbers between t(9) = 49 and t(10) = 64.
a(9) = 1, since only s(12) = 72 is such that t(10) < 72 < t(9), i.e., 64 < 72 < 81.
a(10) = 2, since t(11) < s(14..15) < t(12), i.e., 100 and 108 exceed 81 but not 121, etc.
MATHEMATICA
nn = 2^16;
s = Union@ Flatten@ Table[a^2*b^3, {b, Surd[nn, 3]}, {a, Sqrt[nn/b^3]}];
-1 + Length /@ TakeList[s, Differences@ Position[s, _?PrimePowerQ][[All, 1]] ]
PROG
(PARI) lista(nn) = my(v=select(x->(isprimepower(x) > 1), [1..nn])); vector(#v-1, k, #select(ispowerful, [v[k]+1..v[k+1]-1])); \\ Michel Marcus, Nov 25 2024
CROSSREFS
KEYWORD
nonn,easy,new
AUTHOR
Michael De Vlieger, Nov 24 2024
STATUS
approved