OFFSET
2,1
COMMENTS
The least n such that a(n) = p is found in A229073. - Eric M. Schmidt, Sep 12 2013
LINKS
Eric M. Schmidt, Table of n, a(n) for n = 2..10000
MATHEMATICA
Table[p = 2; While[PrimeQ[n^p - (n - 1)^p], p = NextPrime[p]]; p, {n, 2, 88}] (* T. D. Noe, Sep 12 2013 *)
PROG
(PARI) a(n) = {forprime(p=2, default(primelimit), if(!isprime(n^p-(n-1)^p), return(p)))}
CROSSREFS
KEYWORD
nonn
AUTHOR
Cino Hilliard, Oct 26 2003
EXTENSIONS
Edited by Charles R Greathouse IV, Nov 02 2009
STATUS
approved