OFFSET
1,2
COMMENTS
a(n) = 1 iff n is in A339076. - Bernard Schott, Jan 17 2022
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
MATHEMATICA
Table[GCD[n, Total[IntegerDigits[n]]], {n, 100}] (* Harvey P. Dale, Aug 13 2015 *)
PROG
(PARI) a(n) = gcd(n, sumdigits(n)); \\ Michel Marcus, Jan 17 2022
(Python)
from math import gcd
def A066750(n): return gcd(n, sum(int(d) for d in str(n))) # Chai Wah Wu, Jan 26 2022
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Jan 16 2002
STATUS
approved