OFFSET
1,1
EXAMPLE
a(2) = 5 = 2*2+1, But a(3) = 31 though 11= 5*2 +1 is also prime.
PROG
Contribution from Rick L. Shepherd, Sep 08 2009: (Start)
(PARI) {a=[2]; terms=1; used=Set();
while(terms<30, k2=0; until(isprime(k2*a[terms]+1),
until(setsearch(used, k2)==0, k2=k2+2));
a=concat(a, k2*a[terms]+1); terms++; used=setunion(used, Set([k2]))); a} (End)
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Mar 13 2004
EXTENSIONS
a(6) onwards by Rick L. Shepherd, Sep 08 2009
STATUS
approved