A375932 The largest unitary k-free divisor of n where k = A051903(n) is the maximum exponent in the prime factorization of n.
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 2, 1, 5, 1, 1, 1, 3, 1, 1, 1, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 1, 1, 11, 5, 1, 1, 3, 1, 2, 1, 13, 1, 2, 1, 7, 1, 1, 1, 15, 1, 1, 7, 1, 1, 1, 1, 17, 1, 1, 1, 9, 1, 1, 3, 19, 1, 1, 1, 5, 1, 1, 1, 21, 1
Offset: 1
Examples
60 = 2^2 * 3 * 5, and the maximum exponent in the prime factorization of 60 is 2, which is the exponent of its prime factor 2. Therefore a(60) = 3 * 5 = 15.
Links
- Amiram Eldar, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
a[n_] := Module[{f = FactorInteger[n], p, e, i, m}, p = f[[;; , 1]]; e = f[[;; , 2]]; m = Max[e]; i = Position[e, m] // Flatten; n / (Times @@ p[[i]])^m]; Array[a, 100]
-
PARI
a(n) = {my(f = factor(n), p = f[,1], e = f[,2], m); if(n == 1, 1, m = vecmax(e); prod(i = 1, #p, if(e[i] < m, p[i]^e[i], 1)));}
Comments