OFFSET
1,2
FORMULA
EXAMPLE
For n = 6; divisors d of 6: {1, 2, 3, 6}; sigma(d): {1, 3, 4, 12}; lcm_{d|6} sigma(d) = 12; a(6) = 12/1 * 12/3 * 12/4 * 12/12 = 144.
MATHEMATICA
a[n_] := (LCM @@ (s = DivisorSigma[1, Divisors[n]]))^Length[s] / Times @@ s; Array[a, 36] (* Amiram Eldar, May 02 2020 *)
PROG
(Magma) [&*[ LCM([&+Divisors(d): d in Divisors(n)]) / &+Divisors(d): d in Divisors(n)]: n in [1..100]]
(PARI) a(n) = {my(d=divisors(n), lcms = lcm(vector(#d, k, sigma(d[k])))); vecprod(vector(#d, k, lcms/sigma(d[k]))); } \\ Michel Marcus, May 02 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Jaroslav Krizek, May 01 2020
STATUS
approved