OFFSET
2,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 2..500
MATHEMATICA
a = {}; Do[k = 2; While[ ! PrimeQ[k^n - k - 1], k++ ]; AppendTo[a, k], {n, 2, 100}]; a (* Artur Jasinski *)
lnx[n_]:=Module[{x=1}, While[!PrimeQ[x^n-x-1], x++]; x]; Array[lnx, 90, 2] (* Harvey P. Dale, Jan 10 2017 *)
PROG
(PARI) a(n)=k=1; while(!isprime(k^n-k-1), k++); k
vector(100, n, a(n+1)) \\ Derek Orr, Nov 26 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Artur Jasinski, Jan 19 2007
STATUS
approved