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!)
A046843 Numbers k such that k*2^k - k - 1 is prime. 2
2, 4, 8, 12, 16, 40, 80, 314, 478, 604, 634, 790, 868, 1264, 1376, 2536, 3544, 6564, 7268, 7780, 8366, 15010, 16636, 18672, 27084, 29954, 51968, 60940 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
The corresponding primes are given in A046842.
a(27) > 50000. - Tyler NeSmith, Apr 16 2022
LINKS
MAPLE
A046843:=n->`if`(isprime(n*2^n-n-1), n, NULL): seq(A046843(n), n=1..1000); # Wesley Ivan Hurt, Oct 12 2014
MATHEMATICA
Select[Range[10000], PrimeQ[# 2^#-#-1]&] (* Harvey P. Dale, Oct 10 2011 *)
PROG
(PARI) is(n)=ispseudoprime(n*2^n-n-1) \\ Charles R Greathouse IV, May 22 2017
CROSSREFS
Cf. A046842.
Sequence in context: A371732 A368507 A273109 * A292060 A152125 A338097
KEYWORD
nonn,more
AUTHOR
EXTENSIONS
Sign in definition corrected by R. J. Mathar, Oct 10 2010
a(10)-a(21) from Harvey P. Dale, Oct 10 2011
a(22)-a(26) from Tyler NeSmith, Apr 16 2022
a(27)-a(28) from Michael S. Branicky, May 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 24 05:19 EDT 2024. Contains 371918 sequences. (Running on oeis4.)