A358971 a(1) = 1. Thereafter a(n) is least novel k != n such that rad(k) = rad(n), where rad is A007947.
1, 4, 9, 2, 25, 12, 49, 16, 3, 20, 121, 6, 169, 28, 45, 8, 289, 24, 361, 10, 63, 44, 529, 18, 5, 52, 81, 14, 841, 60, 961, 64, 99, 68, 175, 48, 1369, 76, 117, 50, 1681, 84, 1849, 22, 15, 92, 2209, 36, 7, 40, 153, 26, 2809, 72, 275, 98, 171, 116, 3481, 30, 3721
Offset: 1
Keywords
Examples
a(2) = 4 because 4 is the least number (not equal to 2) which has the same squarefree kernel as 2. a(4) = 2 because 2 is the least unused number (not equal to 4) having the same squarefree kernel as 4
Links
- Michael De Vlieger, Table of n, a(n) for n = 1..10000
- Michael De Vlieger, Log log scatterplot of a(n), n = 1..2^20.
- Michael De Vlieger, Log log scatterplot of a(n), n = 1..2^14, highlighting primes in red, composite prime powers (in A246547) in gold, composite squarefree numbers (A120944) in green, numbers neither squarefree nor prime power (in A126706) in blue, with numbers in A286706 in large light blue. Gold and light blue numbers are in A001694. Maxima are a(p) = p^2, minima are a(p^2) = p.
- Michael De Vlieger, Log log scatterplot of a(n), n = 1..2^10, using the same color coding as immediately above, labeled and showing quasi-rays with slopes p and 1/p.
- Michael De Vlieger, Log log scatterplot of a(n) n = 1..2^16, showing n | a(n) in green, a(n) | n in red, and other terms in blue.
- Index entries for sequences that are permutations of the natural numbers
Programs
-
Mathematica
nn = 61; c[] = False; q[] = 1; f[n_] := f[n] = Times @@ FactorInteger[n][[All, 1]]; a[1] = 1; c[1] = True; u = 2; Do[Which[PrimeQ[n], k = n^2, PrimeQ@ Sqrt[n], k = Sqrt[n], True, k = f[n]; m = q[k]; While[Nand[! c[k m], k m != n, Divisible[k, f[m]]], m++]; While[Nor[c[q[k] k], Divisible[k, f[q[k]]]], q[k]++]; k *= m]; Set[{a[n], c[k]}, {k, True}]; If[k == u, While[c[u], u++]], {n, 2, nn}]; Array[a, nn] (* Michael De Vlieger, Dec 07 2022 *)
Formula
For squarefree n, a(a(n)) = n; a(p) = p^2 for p prime, and a(p^2) = p.
Extensions
More terms from Michael De Vlieger, Dec 07 2022
Comments