OFFSET
1,2
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
FORMULA
From Amiram Eldar, Feb 12 2023: (Start)
a(n) = n/A062759(n).
Sum_{k=1..n} a(k) ~ c * n^2, where c = A065463 / 2 = 0.352221... . (End)
EXAMPLE
n = 1800: squarefree kernel is 2*3*5 = 30 and a(1800) = 900 = 30^2 divides n, exponent of 30 is the smallest prime exponent of 1800 = 2*2*2*3*3*5*5.
MATHEMATICA
{1}~Join~Table[#^IntegerExponent[n, #] &@ Last@ Select[Divisors@ n, SquareFreeQ], {n, 2, 73}] (* Michael De Vlieger, Nov 02 2017 *)
a[n_] := Module[{f = FactorInteger[n], e}, e = Min[f[[;; , 2]]]; f[[;; , 2]] = e; Times @@ Power @@@ f]; Array[a, 100] (* Amiram Eldar, Feb 12 2023 *)
PROG
(Haskell)
a062759 n = a007947 n ^ a051904 n -- Reinhard Zumkeller, Jul 15 2012
(PARI) a(n) = {if(n==1, 1, my(f = factor(n), e = vecmin(f[, 2])); prod(i = 1, #f~, f[i, 1]^e)); } \\ Amiram Eldar, Feb 12 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Jul 16 2001
STATUS
approved