OFFSET
1,2
COMMENTS
For n > 4, a(n) = n iff n is prime.
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..20000 (first 1000 terms from Harvey P. Dale)
FORMULA
a(n) = gcd(n, A001414(n)).
EXAMPLE
a(100) = GCD(2*2*5*5,2+2+5+5) = GCD(2*2*5,2*7) = 2;
a(200) = GCD(2*2*2*5*5,2+2+2+5+5) = GCD(2*2*2*5,2*2*2*2) = 8.
MATHEMATICA
Table[GCD[Total[Times@@@FactorInteger[n]], n], {n, 100}] (* Harvey P. Dale, Dec 27 2015 *)
PROG
(PARI)
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Apr 08 2003
STATUS
approved