OFFSET
1,2
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10000
FORMULA
a(p) = 1 for p = odd primes (A065091).
EXAMPLE
a(6) = gcd(1, tau(1)) * gcd(2, tau(2)) * gcd(3, tau(3)) * gcd(6, tau(6)) = gcd(1, 1) * gcd(2, 2) * gcd(3, 2) * gcd(6, 4) = 1 * 2 * 1 * 2 = 4.
MATHEMATICA
Table[Times@@GCD[Divisors[n], DivisorSigma[0, Divisors[n]]], {n, 80}] (* Harvey P. Dale, Mar 30 2024 *)
PROG
(Magma) [&*[GCD(d, #Divisors(d)): d in Divisors(n)]: n in [1..100]]
(PARI) a(n) = my(d=divisors(n)); prod(k=1, #d, gcd(d[k], numdiv(d[k]))); \\ Michel Marcus, May 08-11 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Jaroslav Krizek, May 07 2020
STATUS
approved