OFFSET
2,1
COMMENTS
All values up to n=70 have been found and proved to be primes. n=71 has k=3019 and gives a probable prime.
See A113516, which gives the k values and is the main entry for these primes, for more extensively researched information. - Peter Munn, Nov 20 2021
LINKS
Blake Branstool, Table of n, a(n) for n = 2..70
EXAMPLE
For n=2 and k=2, 2^2-(2-1)=3 thus a(2)=3. k is 2 as well for n=3,4.
For n=5 the first k to result in a prime is 5, 5^5-(5-1)=3121 thus a(5)=3121.
PROG
(PARI) a(n) = my(k=1, p); while (!isprime(p=n^k-(n-1)), k++); p; \\ Michel Marcus, Nov 17 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Blake Branstool, Apr 20 2021
EXTENSIONS
Name revised by Peter Munn, Nov 16 2021
STATUS
approved