OFFSET
1,12
COMMENTS
If n has unequal prime exponents (a term in A059404), then a(n) > 1; otherwise a(n) = 1.
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
FORMULA
For n > 1, a(n) = A007947(n)^k where k is the difference between the greatest and least exponents in the prime power factorization of n.
MATHEMATICA
Table[Function[{r, s}, r^(Max[s] - Min[s])] @@ {Times @@ #[[All, 1]], #[[All, -1]]} &@ FactorInteger[n], {n, 120}] (* Michael De Vlieger, Jun 13 2024 *)
PROG
(PARI) a(n) = if (n==1, 1, my(f=factor(n)); (factorback(f[, 1]))^(vecmax(f[, 2])-vecmin(f[, 2]))); \\ Michel Marcus, Jun 14 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
David James Sycamore, Jun 13 2024
STATUS
approved