OFFSET
2,1
COMMENTS
Least number x such that x^n-x-1 is prime see A127599.
MATHEMATICA
a = {}; Do[k = 2; While[ ! PrimeQ[n^k - n - 1], k++ ]; AppendTo[a, k], {n, 2, 500}]; a (*Artur Jasinski*)
lnx[n_]:=Module[{x=1}, While[!PrimeQ[n^x-n-1], x++]; x]; Array[lnx, 100, 2] (* Harvey P. Dale, Jul 09 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Artur Jasinski, May 24 2010
STATUS
approved