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”).

A353122
Numbers k such that k^k*(k+1) + 1 is prime.
0
0, 1, 2, 3, 6, 9, 186, 198, 8390
OFFSET
1,3
COMMENTS
Corresponding primes start 2, 3, 13, 109, 326593, 3874204891, ...
a(9) > 6000. - Jon E. Schoenfield, Jun 05 2022
a(10) > 18000. - Michael S. Branicky, Aug 08 2024
EXAMPLE
9 is in the sequence because 9^9*(9+1) + 1 = 3874204891, which is prime.
MATHEMATICA
Join[{0}, Select[Range[200], PrimeQ[#^#*(# + 1) + 1] &]] (* Amiram Eldar, Apr 25 2022 *)
PROG
(Magma) [n: n in [0..200] | IsPrime(n^n*(n+1) + 1)];
(PARI) isok(k) = ispseudoprime(k^k*(k+1) + 1); \\ Michel Marcus, May 16 2022
KEYWORD
nonn,hard,more
AUTHOR
EXTENSIONS
a(9) from Michael S. Branicky, Dec 22 2023
STATUS
approved