The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A186449 Numbers k such that k! + 2^k - 1 is prime. 1
1, 2, 3, 5, 7, 11, 167, 2609, 6247, 7841 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
7! + 2^7 - 1 = 5167 is prime, therefore 7 is in the sequence.
11! + 2^11 - 1 = 39918847 is prime, therefore 11 is in the sequence.
2609! + 2^2609 - 1 = 4110644622026.....780469952511 (7783 digits) is prime, therefore 2609 is in the sequence.
MATHEMATICA
lst={}; Do[If[PrimeQ[k!+2^k-1], AppendTo[lst, k]], {k, 3000}]; lst
PROG
(Magma) [ n: n in [0..167] | IsPrime(Factorial(n)+2^n-1) ]; // Klaus Brockhaus, Feb 22 2011
(PARI) is(n)=ispseudoprime(n!+2^n-1) \\ Charles R Greathouse IV, Jun 13 2017
CROSSREFS
Cf. A186450.
Sequence in context: A185267 A088249 A241724 * A046480 A235000 A067906
KEYWORD
nonn,more
AUTHOR
Michel Lagneau, Feb 22 2011
EXTENSIONS
a(9)-a(10) from Michael S. Branicky, May 03 2023
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 19 00:35 EDT 2024. Contains 372666 sequences. (Running on oeis4.)