OFFSET
1,3
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
MATHEMATICA
a[n_] := GCD[Times @@ ((d = Divisors[n]) + 1), Times @@ (Rest@ d - 1)]; Array[a, 70]
PROG
(PARI) a(n) = if(n == 1, 1, my(d = divisors(n)); gcd(prod(k=1, #d, d[k]+1), prod(k=2, #d, d[k]-1)));
CROSSREFS
KEYWORD
nonn
AUTHOR
Amiram Eldar, Nov 15 2024
STATUS
approved