cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A058912 Numbers k such that k^k + k - 1 is prime.

This page as a plain text file.
%I A058912 #33 Sep 14 2021 11:48:00
%S A058912 2,3,19,30,535,1551,7069,8508
%N A058912 Numbers k such that k^k + k - 1 is prime.
%C A058912 Except for the first term all terms are of the form 3k or 3k+1. - _Farideh Firoozbakht_, Oct 18 2006
%C A058912 Corresponding values of primes are in A187605. - _Jaroslav Krizek_, Nov 14 2013
%C A058912 If it exists, a(9) > 16100. - _Hugo Pfoertner_, Mar 02 2020
%C A058912 If it exists, a(9) > 31100. - _Dmitry Petukhov_, Sep 14 2021
%e A058912 3 is a term because 3^3 + 3 - 1 = 29.
%t A058912 Do[ If[ PrimeQ[ n^n + n - 1], Print[n]], {n, 1, 750} ]
%o A058912 (PARI) is(n)=ispseudoprime(n^n+n-1) \\ _Charles R Greathouse IV_, Feb 20 2017
%Y A058912 Cf. A058911 (k^k + k + 1 is prime), A187605 (corresponding primes).
%K A058912 nonn,more,hard
%O A058912 1,1
%A A058912 _Felice Russo_, Jan 10 2001
%E A058912 a(6) from _Farideh Firoozbakht_, Oct 18 2006
%E A058912 a(7)-a(8) from _Hugo Pfoertner_, Mar 02 2020