OFFSET
1,10
LINKS
MATHEMATICA
f1[p_, e_] := (p^(2*e + 1) - 1)/(p - 1); f2[p_, e_] := NextPrime[p]^(2*e); a[1] = 1; a[n_] := GCD[Times @@ f1 @@@ (f = FactorInteger[n]), Times @@ f2 @@@ f]; Array[a, 100] (* Amiram Eldar, Dec 12 2021 *)
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Dec 12 2021
STATUS
approved