OFFSET
1,5
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..500
FORMULA
a(n) = A098682(n) - n^n -1. - Michel Marcus, Aug 20 2019
EXAMPLE
a(5) = 11 because 5^5 + 11 + 1 = 37 is prime.
MATHEMATICA
a={}; Do[k = 0; While[ !PrimeQ[n^n + k + 1], k++ ]; AppendTo[a, k], {n, 1, 100} ]; a
PROG
(PARI) a(n) = nextprime(n^n) - n^n - 1; \\ Michel Marcus, Aug 20 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Lagneau, Aug 06 2011
STATUS
approved