OFFSET
1,1
LINKS
Clark Kimberling, Table of n, a(n) for n = 1..1000
EXAMPLE
gcd(12,10) = 2 and gcd(13,9) = 1, so that a(11) = 2.
MATHEMATICA
Table[m = 1; While[GCD[Prime[n] + m, n - m] != 1, m++]; m, {n, 1, 140}]
PROG
(PARI) vector(100, n, m=1; while(gcd(prime(n)+m, n-m)!=1, m++); m) \\ Derek Orr, May 30 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Jul 26 2012
STATUS
approved