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!)
A263482 Numbers k such that k! + 2^k + 11 or k! + 2^k - 11 is prime. 1
0, 2, 3, 4, 5, 6, 7, 9, 15, 34, 41, 79, 99, 379, 2183 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Is there some k such that k! + 2^k + 11 and k! + 2^k - 11 are prime?
LINKS
EXAMPLE
For k = 0, k! + 2^k + 11 = 0! + 2^0 + 11 = 13, which is prime.
For k = 3, k! + 2^k - 11 = 3! + 2^3 - 11 = 3, which is prime.
MATHEMATICA
Select[Range[0, 400], Or[PrimeQ[#! + 2^# + 11], PrimeQ[#! + 2^# - 11]] &] (* Michael De Vlieger, Nov 17 2015 *)
Select[Range[0, 500], AnyTrue[#!+2^#+{11, -11}, PrimeQ]&] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Jul 05 2019 *)
PROG
(PARI) for(n=0, 1e3, if(isprime(n!+2^n-11) || isprime(n!+2^n+11), print1(n", ")))
(PARI) is(n)=my(N=n!+2^n); ispseudoprime(N-11) || ispseudoprime(N+11) \\ Charles R Greathouse IV, Nov 17 2015
CROSSREFS
Sequence in context: A033072 A030287 A271950 * A030153 A039126 A083376
KEYWORD
nonn,more
AUTHOR
Altug Alkan, Oct 19 2015
EXTENSIONS
a(14) from Charles R Greathouse IV, Nov 17 2015
a(15) from Michael S. Branicky, Jun 17 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 April 25 16:45 EDT 2024. Contains 371989 sequences. (Running on oeis4.)