OFFSET
1,2
FORMULA
EXAMPLE
a(6) = lcm(6, tau(6), sigma(6), pod(6)) / gcd(6, tau(6), sigma(6), pod(6)) = lcm(6, 4, 12, 36) / gcd(6, 4, 12, 36) = 36 / 2 = 18.
MATHEMATICA
a[n_] := LCM @@ {(d = DivisorSigma[0, n]), (s = DivisorSigma[1, n]), n^(d/2)} / GCD @@ {n, d, s}; Array[a, 50] (* Amiram Eldar, Sep 22 2020 *)
PROG
(Magma) [LCM([#Divisors(n), &+Divisors(n), &*Divisors(n)]) / GCD([#Divisors(n), &+Divisors(n), &*Divisors(n)]): n in [1..100]]
(PARI) a(n) = my(f=factor(n), v=[n, numdiv(f), sigma(f), vecprod(divisors(f))]); lcm(v)/gcd(v); \\ Michel Marcus, Sep 22 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Jaroslav Krizek, Sep 22 2020
STATUS
approved