OFFSET
2,1
EXAMPLE
2^2-2 = 2 prime so a(1)=2, 3^2-2= 7 prime a(2)=2. For q=2,3,5, 199^q-2 is not
prime. For q=7, 199^7-2 = 12358664279161397 prime so a(27)=7.
PROG
(PARI) g2(n) = forprime(x=2, n, y=g(1000, x); if(y>0, print1(y", ")))
g(n, m) = p1=0; forprime(p=2, n, y=m^p-2; if(ispseudoprime(y), p1=p; break)); p1
CROSSREFS
KEYWORD
nonn
AUTHOR
Cino Hilliard, Nov 13 2008
STATUS
approved