OFFSET
1,2
COMMENTS
a(n) = n iff n is prime. - Robert Israel, Mar 29 2015
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(25) = gcd(5,25) = 5.
MAPLE
seq(igcd(n, convert(numtheory:-factorset(n), `+`)), n = 1 .. 1000); # Robert Israel, Mar 29 2015
MATHEMATICA
PrimeFactors[n_Integer] := Flatten[ Table[ # [[1]], {1}] & /@ FactorInteger[n]]; f[n_] := GCD[Plus @@ PrimeFactors[n], n]; Table[ f[n], {n, 93}] (* Robert G. Wilson v, Nov 04 2004 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Oct 28 2004
STATUS
approved