OFFSET
1,2
COMMENTS
Terms are alternately odd and even.
LINKS
Paolo P. Lava, Table of n, a(n) for n = 1..1000
EXAMPLE
a(4)=16 and 27 is the minimum integer greater than 16 such that 16+27=43, 16*27-1=431, 16*27+1=433 are all primes.
MAPLE
with(numtheory); P:=proc(q) local a, b, n; a:=1; b:=0; print(a);
for n from 1 to q do while not isprime(a+b) and not isprime (a*b+1) and not isprime (a*b-1) do
b:=b+2; od; print(b); a:=b; b:=b+1; od; print(); end: P(10^4);
CROSSREFS
KEYWORD
nonn
AUTHOR
Paolo P. Lava, Aug 27 2013
STATUS
approved