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!)
A256594 Numbers k such that k!*2^k + 1 is prime. 2
0, 1, 259, 16708, 18655, 26304, 61999, 110251 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
FORMULA
a(n) = A080778(n+1)/2 for n >= 2. - Amiram Eldar, Dec 06 2018
EXAMPLE
0 is in the sequence since 0!*2^0 + 1 = 2 is prime.
MATHEMATICA
Select[Range[0, 20000], PrimeQ[2^#*#! + 1] &]
PROG
(Magma) [n: n in [0..3*10^2] | IsPrime(Factorial(n)*2^n+1)]; // Vincenzo Librandi, Apr 05 2015
(PARI) for(n=0, 300, if(ispseudoprime(n!*2^n+1), print1(n, ", "))) \\ Derek Orr, Apr 05 2015
(Python)
from sympy import factorial, isprime
for n in range(0, 300):
if isprime(factorial(n)*(2**n)+1):
print(n, end=', ') # Stefano Spezia, Dec 06 2018
CROSSREFS
Sequence in context: A344193 A254642 A322882 * A229433 A022221 A121918
KEYWORD
nonn,hard,more
AUTHOR
Robert Price, Apr 03 2015
EXTENSIONS
a(6)-a(8), from the data at A080778, added by Amiram Eldar, Dec 06 2018
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 24 06:24 EDT 2024. Contains 371918 sequences. (Running on oeis4.)