OFFSET
1,2
COMMENTS
The sequence is a list of indices m of powerful numbers a(m).
See comments in A379051 for more information.
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1) = 1 since 1 is powerful, validating the appearance of 1 as an index of a powerful number in the sequence.
a(2) = 3 since self-referential 2 would prove false; 2 is not powerful, but 3 mandates a powerful number a(3).
a(3) = 4 since a(2) = 3, and 4 is the smallest powerful number that has not appeared.
a(4) = 8 since a(3) = 4, and 8 is the smallest powerful number that has not appeared.
a(5) = 6 since m = 5 has not appeared, and 6 is the smallest weak (nonpowerful, in A052485) number k > n.
a(6) = 9 since a(5) = 6, and 9 is the smallest powerful number that has not appeared, etc.
MATHEMATICA
nn = 120;
u = 3; v = {}; w = {}; c = 1;
s = Rest@ Union@ Flatten@ Table[a^2*b^3, {b, Surd[#, 3]}, {a, Sqrt[#/b^3]}] &[2^30];
rad[x_] := Times @@ FactorInteger[x][[All, 1]];
{1}~Join~Reap[Do[
If[MemberQ[w, n], k = s[[c]];
w = DeleteCases[w, n],
m = Min[{s[[c]], u, v}];
If[And[Divisible[m, rad[m]^2], CompositeQ[m], n < m],
AppendTo[v, n]];
If[Length[v] > 0,
If[v[[1]] == m, v = Rest[v] ] ]; k = m];
AppendTo[w, k]; If[k == s[[c]], c++]; Sow[k];
If[n + 1 >= u, u++;
While[And[Divisible[u, rad[u]^2], CompositeQ[u]], u++] ], {n, 2, nn}] ][[-1, 1]]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Michael De Vlieger, Dec 18 2024
STATUS
approved