login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A231119
Least positive k such that n * k^k + 1 is a prime, or 0 if no such k exists.
5
1, 1, 2, 1, 0, 1, 2, 17, 2, 1, 36, 1, 2, 3, 2, 1, 210, 1, 20, 3, 990, 1, 6, 2, 2, 6, 2, 1
OFFSET
1,3
COMMENTS
The number a(5) is conjectured to be zero. Four days of computation have shown that all numbers 5*k^k+1 are composite for k = 1..22733. - T. D. Noe, Nov 11 2013
The sum of 1/log(n*k^k) diverges slowly for every n so normal heuristics predict infinitely many primes in each case, including n=5. - Jens Kruse Andersen, Jun 16 2014
PROG
(Java)
import java.math.BigInteger; public class A231119 { public static void main (String[] args) { for (int n = 1; n < 3333; n++) { BigInteger nn = BigInteger.valueOf(n); for (int k=1; k<10000; k++) { BigInteger p = nn.multiply(BigInteger.valueOf(k).pow(k)).add(BigInteger.ONE); if (p.isProbablePrime(80)) { System.out.printf("%d, ", k); break; } else System.out.printf("."); } } } }
CROSSREFS
KEYWORD
nonn,hard,more
AUTHOR
Alex Ratushnyak, Nov 04 2013
STATUS
approved