OFFSET
1,3
COMMENTS
LINKS
FORMULA
MATHEMATICA
f1[2, e_] := 1; f1[p_, e_] := NextPrime[p, -1]^e; s[n_] := Times @@ f1 @@@ FactorInteger[n]; f[p_, e_] := s[((q = NextPrime[p])^(e + 1) - 1)/(q - 1)]; s2[1] = 1; s2[n_] := Times @@ f @@@ FactorInteger[n]; a[n_] := (sn = s2[n])/GCD[n, sn]; Array[a, 100] (* Amiram Eldar, Nov 05 2021 *)
PROG
CROSSREFS
KEYWORD
nonn,frac
AUTHOR
Antti Karttunen, Nov 04 2021
STATUS
approved