OFFSET
1,1
COMMENTS
5/7 q - 1 < a(n) < q and p <= (2q + 5)/3, so membership can be tested in finite time.
EXAMPLE
a(1) = (3*3*7 - 7 - 6)/(3*3 + 1) = 5.
a(2) = (3*2*11 - 11 - 6)/(3*2 + 1) = 7.
PROG
(PARI) /* Lists the members with q <= lim */ list(lim)=my(v=[], t); forprime(q=2, lim, forprime(p=2, (2*q+5)\3, t=q-(2*q+6)/(3*p+1); if(denominator(t)==1&&isprime(t), v=concat(v, t)))); vecsort(v, , 8)
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Aug 28 2008
EXTENSIONS
Corrected and rewritten by Charles R Greathouse IV, Mar 25 2010
STATUS
approved