OFFSET
1,3
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..65536
MAPLE
with(numtheory):
rad := n -> ilcm(op(factorset(n))):
a := n -> lambda(n)/rad(phi(n)/lambda(n)):
seq(a(n), n=1..94); # Peter Luschny, Jul 17 2017
MATHEMATICA
a007947[n_]:=Last@ Select[Divisors[n], SquareFreeQ[#] &]; Table[Numerator[CarmichaelLambda[n]/a007947[EulerPhi[n]/CarmichaelLambda[n]]], {n, 100}] (* Indranil Ghosh, Jul 17 2017 *)
PROG
(PARI)
A002322(n) = lcm(znstar(n)[2]); \\ This function from Charles R Greathouse IV, Aug 04 2012
A007947(n) = factorback(factorint(n)[, 1]); \\ This function from Andrew Lelechenko, May 09 2014
(Sage)
from sage.crypto.util import carmichael_lambda
def A007947(n): return mul(p for p in prime_divisors(n))
def A000010(n): return euler_phi(n)
def A002322(n): return carmichael_lambda(n)
print([A289624(n) for n in (1..94)]) # Peter Luschny, Jul 17 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jul 17 2017
STATUS
approved