OFFSET
1,2
COMMENTS
Starting with a(2)=4, all terms are even. - Zak Seidov, Jul 16 2016
LINKS
Harry J. Smith and Michael De Vlieger, Table of n, a(n) for n = 1..10000 (first 1000 terms from Harry J. Smith)
EXAMPLE
a(4) = gcd(prime(8) + 1, prime(4) + 1) = gcd(19 + 1, 7 + 1) = gcd(20, 8) = 4.
MATHEMATICA
Table[GCD[Prime[2 n] + 1, Prime@ n + 1], {n, 92}] (* Michael De Vlieger, Dec 03 2015 *)
PROG
(PARI) { for (n=1, 1000, write("b066978.txt", n, " ", gcd(prime(2*n) + 1, prime(n) + 1)) ) } \\ Harry J. Smith, Apr 13 2010
(Magma) [Gcd(NthPrime(2*n)+1, NthPrime(n)+1): n in [1..80]]; // Vincenzo Librandi, Dec 04 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Jan 26 2002
STATUS
approved