OFFSET
2,1
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 2..10000
EXAMPLE
n=2: prime[2]=3; 3+2*5=13 is prime, so a(2)=5;
n=3: prime[3]=5; 5+2*7=19 is prime, so a(3)=7;
...
n=7: prime[7]=17; 17+2*19=55 is not prime
17+2*23=63 is not prime
...
17+2*31=79 is prime, so a(7)=31.
MATHEMATICA
Table[p1 = Prime[n1]; n2 = 1; p2 = Prime[n1 + n2]; While[cp = p1 + 2* p2; ! PrimeQ[cp], n2++; p2 = Prime[n1 + n2]]; p2, {n1, 2, 201}]
PROG
(Haskell)
a114262 n = head [q | let (p:ps) = drop (n - 1) a000040_list,
q <- ps, a010051 (p + 2 * q) == 1]
-- Reinhard Zumkeller, Oct 29 2013
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Lei Zhou, Nov 20 2005
EXTENSIONS
Edited definition to conform to OEIS style. - Reinhard Zumkeller, Oct 31 2013
STATUS
approved