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!)
A296031 Numbers k such that 2^(k-1) - k is prime. 0
5, 11, 15, 17, 27, 51, 57, 71, 117, 2073, 6251, 13671, 14217, 14627 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
a(15) > 200000. - Giovanni Resta, May 13 2018
LINKS
FORMULA
a(n) = A099439(n) + 1 = A063791(n) + 2.
EXAMPLE
5 is in the sequence, because 2^4 - 5 = 11 is prime.
MATHEMATICA
Select[Range[6500], PrimeQ[2^(# - 1) - #] &] (* Michael De Vlieger, Apr 21 2018 *)
PROG
(PARI) forstep(n=1, 10^6, 2, if(ispseudoprime(2^(n-1)-n), print1(n, ", "))); \\ Joerg Arndt, Apr 15 2018
CROSSREFS
Sequence in context: A137003 A314003 A314004 * A344214 A314005 A164355
KEYWORD
nonn,more
AUTHOR
Thomas Gajdek, Dec 03 2017
EXTENSIONS
Edited by Joerg Arndt, Apr 15 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 19 06:44 EDT 2024. Contains 371782 sequences. (Running on oeis4.)