OFFSET
1,1
COMMENTS
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1) = 8 since rad(b(1)) = rad(12) = 6, and in the sequence R(6) = A003586 = {1, 2, 3, 4, 6, 8, 9, 12, 16, 18, 24, ...}, 12 is the 8th term.
a(2) = 10 since rad(b(2)) = rad(18) = 6, and 18 is the 10th term in R(6).
a(3) = 8 since rad(b(3)) = rad(20) = 10, and in the sequence R(10) = A003592 = {1, 2, 4, 5, 8, 10, 16, 20, ...}, 20 is the 8th term.
a(4) = 11 since rad(b(4)) = rad(24) = 6, and 24 is the 11th term in R(6).
a(5) = 8 since rad(b(5)) = rad(28) = 14, and in the sequence R(14) = A003591 = {1, 2, 4, 7, 8, 14, 16, 28, ...}, 28 is the 8th term, etc.
MATHEMATICA
nn = 220;
f[x_] := f[x] = Times @@ FactorInteger[x][[All, 1]];
t = Select[Range[nn], Nor[PrimePowerQ[#], SquareFreeQ[#]] &];
s = Map[f, t];
Map[Function[k, Set[r[k], Select[Range[nn], Divisible[k, f[#]] &]]], Union@ s];
Array[FirstPosition[r[s[[#]]], t[[#]] ][[1]] &, Length[t] ]
CROSSREFS
KEYWORD
nonn
AUTHOR
Michael De Vlieger, Sep 21 2023
STATUS
approved