login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A081652
Greatest common divisor of n and sum of decimal digits of n-th prime.
1
1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 2, 1, 7, 1, 8, 1, 1, 1, 4, 1, 2, 1, 1, 1, 2, 1, 4, 1, 5, 1, 1, 11, 1, 7, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 11, 1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 8, 1, 1, 1, 4, 1, 2, 1, 8, 1, 2, 1, 10, 1, 17, 1, 4
OFFSET
1,6
FORMULA
a(n) = GCD(n, A007605(n)).
EXAMPLE
a(16) = GCD(16, A007953(A000040(16))) = GCD(16, A007953(53)) = GCD(16,5+3) = GCD(8*2,8) = 8.
MATHEMATICA
Table[GCD[n, Total[IntegerDigits[Prime[n]]]], {n, 110}] (* Harvey P. Dale, Jul 12 2012 *)
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Reinhard Zumkeller, Mar 25 2003
STATUS
approved