OFFSET
1,1
COMMENTS
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
EXAMPLE
Let S = A126706, the sequence of k that are neither squarefree nor prime powers.
{1, 4, 8, 9} are not in the sequence since S(1) = 12.
a(1) = 49 = 7^2 since both 48 = 2^3 * 3 and 50 = 2 * 5^2 are in S.
64 is not in the sequence since 65 is squarefree.
a(2) = 125 = 5^3 since both 124 = 2^2 * 41 and 126 = 2 * 3^2 * 7 are in S.
128 is not in the sequence since 127 is prime.
a(3) = 243 = 3^5 since both 242 = 2 * 11^2 and 244 = 2^2 * 61 are in S.
a(7) = 3249 = 3^2 * 19^2, since both 3248 = 2^4 * 7 * 29 and 3250 = 2 * 5^3 * 13 are in S, etc.
MATHEMATICA
With[{nn = 2^30}, Select[Union@ Flatten@ Table[a^2*b^3, {b, Surd[nn, 3]}, {a, Sqrt[nn/b^3]}], AllTrue[# + {-1, 1}, Nor[SquareFreeQ[#], PrimePowerQ[#] ] &] &] ]
CROSSREFS
KEYWORD
nonn,easy,new
AUTHOR
Michael De Vlieger, Dec 03 2024
STATUS
approved