OFFSET
0,2
COMMENTS
Permutation of natural numbers.
Let m = A013929(n) and let R_m be the sequence of numbers k such that rad(k) = rad(m). a(n) gives the predecessor of m in R_m.
LINKS
Michael De Vlieger, Table of n, a(n) for n = 0..10000
Michael De Vlieger, Log log scatterplot of a(n), n = 0..2^16
Michael De Vlieger, Log log scatterplot of a(n), n = 0..2^12, showing primes in red, composite prime powers in gold, squarefree composites in green, and numbers neither squarefree nor prime powers in blue. Numbers k with omega(k) > 1 and all exponents exceeding 1 are highlighted in large light blue dots.
FORMULA
EXAMPLE
A013929(1) = 4; the smallest k < 4 such that rad(k) = rad(4) = 2 is a(1) = 2.
A013929(2) = 8; the smallest k < 8 such that rad(k) = rad(8) = 2 is a(2) = 4.
A013929(3) = 9; the smallest k < 9 such that rad(k) = rad(9) = 3 is a(3) = 3.
A013929(4) = 12; the smallest k < 12 such that rad(k) = 6 is a(4) = 6.
MATHEMATICA
rad[x_] := Times @@ FactorInteger[x][[All, 1]]; {1}~Join~Table[Function[r, SelectFirst[Range[m - 1, 1, -1], r == rad[#] &] ][rad[m]], {m, Select[Range[225], Not @* SquareFreeQ]}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Michael De Vlieger, May 01 2023
STATUS
approved