|
|
A186449
|
|
Numbers k such that k! + 2^k - 1 is prime.
|
|
1
|
|
|
|
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
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,more
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|