OFFSET
1,2
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
EXAMPLE
n=34: gcd(1 + 139, 1 + 149) = 10 = a(34).
MATHEMATICA
GCD[First[#]+1, Last[#]+1]&/@ Partition[Prime[Range[110]], 2, 1] (* Harvey P. Dale, May 02 2012 *)
PROG
(PARI) a(n)={gcd(1 + prime(n+1), 1 + prime(n))} \\ Harry J. Smith, Aug 17 2009
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Labos Elemer, Aug 06 2001
STATUS
approved