OFFSET
1,12
COMMENTS
The product of the prime powers in the prime factorization of n that have an exponent that is smaller than the maximum exponent in this factorization.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
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.
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]
PROG
(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))); }
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Amiram Eldar, Sep 03 2024
STATUS
approved