OFFSET
1,2
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..20000
FORMULA
EXAMPLE
n=84: a(84) = gcd(2*3*7, 2+3+7) = gcd(42, 12) = 6.
MATHEMATICA
PrimeFactors[n_Integer] := Flatten[ Table[ # [[1]], {1}] & /@ FactorInteger[n]]; f[n_] := Block[{pf = PrimeFactors[n]}, GCD[Plus @@ pf, Times @@ pf]]; Table[ f[n], {n, 93}] (* Robert G. Wilson v, Nov 04 2004 *)
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Oct 28 2004
EXTENSIONS
Name clarified by Antti Karttunen, Feb 01 2021
STATUS
approved