cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-10 of 18 results. Next

A050414 Numbers k such that 2^k - 3 is prime.

Original entry on oeis.org

3, 4, 5, 6, 9, 10, 12, 14, 20, 22, 24, 29, 94, 116, 122, 150, 174, 213, 221, 233, 266, 336, 452, 545, 689, 694, 850, 1736, 2321, 3237, 3954, 5630, 6756, 8770, 10572, 14114, 14400, 16460, 16680, 20757, 26350, 30041, 34452, 36552, 42689, 44629, 50474, 66422, 69337, 116926, 119324, 123297, 189110, 241004, 247165, 284133, 354946, 394034, 702194, 750740, 840797, 1126380, 1215889, 1347744, 1762004, 2086750
Offset: 1

Views

Author

Jud McCranie, Dec 22 1999

Keywords

Comments

With 65 known primes corresponding to k < 1762005, these primes appear to be more common than Mersenne primes. Of course at this time, the larger terms correspond only to probable primes. - Paul Bourdelais, Feb 04 2012
The numbers 2^k-3 and 2^k-1 are both primes for k = 3, 5, ? The lesser number 2^p-3 is prime for primes p = 3, 5, 29, 233, 42689, 69337, ... (see A283266). - Thomas Ordowski, Sep 18 2015
The terms a(43)-a(49) were found by Paul Underwood, a(50)-a(51) found by M. Frind and P. Underwood, a(52) found by Gary Barnes, a(53)-a(58) found by M. Frind and P. Underwood, and a(59)-a(66) found by Paul Bourdelais (see link Henri Lifchitz and Renaud Lifchitz). - Elmo R. Oliveira, Dec 02 2023

Examples

			k = 22, 2^22 - 3 = 4194301 is prime.
k = 24, 2^24 - 3 = 16777213 is prime.
		

Crossrefs

Cf. A045768, A050415, A057732 (numbers k such that 2^k + 3 is prime).
For prime terms see A283266.
Sequences of numbers k such that 2^k - d is prime: A000043 (d=1), A050414 (d=3), A059608 (d=5), A059609 (d=7), A059610 (d=9), A096817 (d=11), A096818 (d=13), A059612 (d=15), A059611 (d=17), A096819 (d=19), A096820 (d=21), A057220 (d=23), A356826 (d=29).

Programs

  • Mathematica
    Do[ If[ PrimeQ[ 2^n -3 ], Print[n]], { n, 1, 15000 }]
  • PARI
    for(n=2, 10^5, if(ispseudoprime(2^n-3), print1(n, ", "))) \\ Felix Fröhlich, Jun 23 2014

Extensions

More terms from Robert G. Wilson v, Sep 15 2000
More terms from Andrey V. Kulsha, Feb 11 2001
a(40) verified with 20 iterations of Miller-Rabin test, from Dmitry Kamenetsky, Jul 12 2008
a(41) a new PRP term, from Serge Batalov, Oct 20 2008
Corrected and extended by including two smaller (apparently known) PRP and 16 larger terms from PRP Top Records of this form, all discovered by M. Frind & P. Underwood, Gary Barnes, Oct 20 2008
a(59)-a(60) discovered by Paul Bourdelais, Mar 26 2012
a(61)-a(63) discovered by Paul Bourdelais, Jun 18 2019
a(64) discovered by Paul Bourdelais, Jul 16 2019
a(65) discovered by Paul Bourdelais, Apr 20 2020
a(66) discovered by Paul Bourdelais, May 28 2020

A059608 Numbers k such that 2^k - 5 is prime.

Original entry on oeis.org

3, 4, 6, 8, 10, 12, 18, 20, 26, 32, 36, 56, 66, 118, 130, 150, 166, 206, 226, 550, 706, 810, 1136, 1228, 1818, 2368, 2400, 3128, 4532, 5112, 8492, 16028, 16386, 17392, 18582, 21986, 24292, 27618, 30918, 32762, 48212, 120440, 183632, 316140, 364982, 414032, 533350, 595122
Offset: 1

Views

Author

Andrey V. Kulsha, Jan 30 2001

Keywords

Comments

Except 3, all terms are even since for odd k, 2^k - 5 is divisible by 3.

Examples

			k = 10: 2^10 - 5 = 1019 is prime.
k = 20: 2^20 - 5 = 1048571 is prime.
		

Crossrefs

Cf. Sequences of numbers k such that 2^k - d is prime: A000043 (d=1), A050414 (d=3), this sequence (d=5), A059609 (d=7), A059610 (d=9), A096817 (d=11), A096818 (d=13), A059612 (d=15), A059611 (d=17), A096819 (d=19), A096820 (d=21), A057220 (d=23), A356826 (d=29).

Programs

Extensions

a(32)-a(34) from Labos Elemer, Jul 09 2004
a(35)-a(40) from Max Alekseyev, a(41) from Paul Underwood, a(42)-a(46) from Henri Lifchitz, added by Max Alekseyev, Feb 09 2012
a(47)-a(48) from Jon Grantham, Jul 29 2023

A096818 Numbers k such that 2^k - 13 is prime.

Original entry on oeis.org

4, 5, 9, 13, 17, 57, 105, 137, 3217, 3229, 4233, 6097, 8757, 11457, 12073, 15425, 40117, 45357, 334809, 1509037
Offset: 1

Views

Author

Labos Elemer, Jul 13 2004

Keywords

Comments

Except the first term 4, all terms are odd since for even k, 2^k - 13 is divisible by 3.

Examples

			k = 5: 32 - 13 = 19 is prime.
		

Crossrefs

Cf. A096502.
Cf. Sequences of numbers k such that 2^k - d is prime: A000043 (d=1), A050414 (d=3), A059608 (d=5), A059609 (d=7), A059610 (d=9), A096817 (d=11), this sequence (d=13), A059612 (d=15), A059611 (d=17), A096819 (d=19), A096820 (d=21), A057220 (d=23), A356826 (d=29).

Programs

Extensions

a(16) from Max Alekseyev, a(17)-a(18) from Henri Lifchitz, a(19) from Lelio R Paula, added by Max Alekseyev, Feb 09 2012
a(20) found by Stefano Morozzi, added by Elmo R. Oliveira, Nov 17 2023

A059610 Numbers k such that 2^k - 9 is prime.

Original entry on oeis.org

4, 5, 9, 11, 17, 21, 33, 125, 141, 243, 251, 285, 321, 537, 563, 699, 729, 2841, 3365, 8451, 8577, 9699, 9725, 21011, 22689, 33921, 51761, 655845, 676761, 3480081
Offset: 1

Views

Author

Andrey V. Kulsha, Feb 02 2001

Keywords

Comments

Except the first term 4, all terms are odd since 2^(2*m) - 9 = (2^m - 3)*(2^m + 3) is not prime for m > 2.

Examples

			243 is in the sequence because 2^243 - 9 is prime.
		

Crossrefs

Cf. Sequences of numbers k such that 2^k - d is prime: A000043 (d=1), A050414 (d=3), A059608 (d=5), A059609 (d=7), this sequence (d=9), A096817 (d=11), A096818 (d=13), A059612 (d=15), A059611 (d=17), A096819 (d=19), A096820 (d=21), A057220 (d=23), A356826 (d=29).

Programs

Extensions

a(24)-a(25) from Max Alekseyev, a(26)-a(27) from Paul Underwood, added by Max Alekseyev, Feb 09 2012
a(28)-a(29) from Robert Price, Jan 25 2017
a(30) found by Stefano Morozzi, added by Elmo R. Oliveira, Nov 17 2023

A059612 Numbers k such that 2^k - 15 is prime.

Original entry on oeis.org

5, 7, 8, 10, 14, 16, 23, 76, 95, 100, 158, 196, 235, 338, 620, 1646, 1850, 1891, 3833, 4394, 5194, 6017, 6070, 8824, 9955, 11399, 12250, 28723, 32057, 45494, 137359, 139627, 160654, 178819, 183284, 276391, 283466, 400571, 449030, 632815, 875518, 981016, 3511529
Offset: 1

Views

Author

Andrey V. Kulsha, Feb 13 2001

Keywords

Examples

			100 is present because 2^100 - 15 is prime.
		

Crossrefs

Cf. A096502.
Cf. Sequences of numbers k such that 2^k - d is prime: A000043 (d=1), A050414 (d=3), A059608 (d=5), A059609 (d=7), A059610 (d=9), A096817 (d=11), A096818 (d=13), this sequence (d=15), A059611 (d=17), A096819 (d=19), A096820 (d=21), A057220 (d=23), A356826 (d=29).

Programs

Extensions

a(26) from Labos Elemer, Jul 09 2004
a(27)-a(29) from Max Alekseyev, a(30) from Henri Lifchitz, a(31)-a(32) from Gary Barnes, a(33)-a(35) from Lelio R Paula, added by Max Alekseyev, Feb 09 2012
a(36)-a(37) from Lelio R Paula, added by Max Alekseyev, Oct 24 2013
a(38) from Lelio R Paula, added by Robert Price, Dec 06 2013
a(39) from Lelio R Paula, added by Robert Price, Mar 16 2019
a(40)-a(43) from Stefano Morozzi, added by Elmo R. Oliveira, Nov 16 2023

A096502 a(n) = k is the smallest exponent k such that 2^k - (2n+1) is a prime number, or 0 if no such k exists.

Original entry on oeis.org

2, 3, 3, 39, 4, 4, 4, 5, 6, 5, 5, 6, 5, 5, 5, 7, 6, 6, 11, 7, 6, 29, 6, 6, 7, 6, 6, 7, 6, 6, 6, 8, 8, 7, 7, 10, 9, 7, 8, 9, 7, 8, 7, 7, 8, 7, 8, 10, 7, 7, 26, 9, 7, 8, 7, 7, 10, 7, 7, 8, 7, 7, 7, 47, 8, 14, 9, 11, 10, 9, 10, 8, 9, 8, 8, 31, 8, 8, 15, 8, 10, 9
Offset: 0

Views

Author

Labos Elemer, Jul 09 2004

Keywords

Comments

As D. W. Wilson observes, this is similar to the Riesel/Sierpinski problem and there is e.g. no prime of the form 2^k - 777149, which is divisible by 3,5,7,13,19,37 or 73 if k is in 1+2Z, 2+4Z, 4+12Z, 8+12Z, 12+36Z, 0+36Z resp. 24+36Z. Already for n=935 it is difficult to find a solution. Is this linked to the fact that 2n+1=1871 is member of a prime quadruple (A007530) and quintuple (A022007)? - M. F. Hasler, Apr 07 2008

Examples

			a(0)=A000043(1)=2, a(1)=A050414(1)=3, a(2)=A059608(1)=3, a(3)=A059609(1)=39.
For n=110 and n=111 even these smallest exponents are rather large: a(110)=714, a(111)=261 which mean that 2^714-221 and 2^261-223 are the least corresponding prime numbers.
		

Crossrefs

Programs

  • Mathematica
    Table[k = 1; While[2^k < n || ! PrimeQ[2^k - n], k++]; k, {n, 1, 1869, 2}] (* T. D. Noe, Mar 18 2013 *)
  • PARI
    A096502(n,k)={ k || k=log(n)\log(2)+1; n=2*n+1; while( !ispseudoprime(2^k++-n),);k } /* will take a long time for n=935... */ - M. F. Hasler, Apr 07 2008

A096820 Numbers k such that 2^k - 21 is prime.

Original entry on oeis.org

5, 6, 7, 9, 11, 13, 14, 21, 23, 41, 46, 89, 110, 389, 413, 489, 869, 1589, 1713, 2831, 10843, 11257, 16949, 24513, 39621, 43349, 62941, 96094, 139237, 145289, 264683, 396790, 420694, 439931, 659589, 783893, 840203, 944561
Offset: 1

Views

Author

Labos Elemer, Jul 13 2004

Keywords

Comments

Similar to A057202 (which allows negative primes): this sequence is obtained by dropping the first four terms of A057202. - Joerg Arndt, Oct 05 2012

Examples

			k = 5: 32 - 21 = 11 is prime.
k = 7: 128 - 21 = 107 is prime.
		

Crossrefs

Cf. A096502.
Cf. Sequences of numbers k such that 2^k - d is prime: A000043 (d=1), A050414 (d=3), A059608 (d=5), A059609 (d=7), A059610 (d=9), A096817 (d=11), A096818 (d=13), A059612 (d=15), A059611 (d=17), A096819 (d=19), this sequence (d=21), A057220 (d=23), A356826 (d=29).

Programs

Extensions

a(23)-a(24) from Max Alekseyev, a(25) from Donovan Johnson, a(26)-a(28) from Henri Lifchitz, a(29)-a(30) from Lelio R Paula, added by Max Alekseyev, Feb 10 2012
a(31)-a(32) from Lelio R Paula, added by Max Alekseyev, Oct 24 2013
a(33)-a(34) found by Lelio R Paula, a(35)-a(38) found by Stefano Morozzi, added by Elmo R. Oliveira, Nov 24 2023

A059611 Numbers k such that 2^k - 17 is prime.

Original entry on oeis.org

6, 8, 12, 16, 18, 20, 22, 24, 32, 36, 42, 44, 96, 104, 152, 174, 198, 336, 414, 444, 468, 488, 664, 808, 848, 3632, 4062, 5586, 5904, 6348, 8628, 9224, 9916, 13136, 15966, 17120, 17568, 17652, 20560, 31572, 33644, 104098, 115842, 130572, 164110, 189414, 205110, 406758
Offset: 1

Views

Author

Andrey V. Kulsha, Feb 05 2001

Keywords

Comments

All terms are even since for odd k, 2^k - 17 is divisible by 3.

Examples

			444 is present because 2^444 - 17 is prime.
		

Crossrefs

Cf. A096502.
Cf. Sequences of numbers k such that 2^k - d is prime: A000043 (d=1), A050414 (d=3), A059608 (d=5), A059609 (d=7), A059610 (d=9), A096817 (d=11), A096818 (d=13), A059612 (d=15), this sequence (d=17), A096819 (d=19), A096820 (d=21), A057220 (d=23), A356826 (d=29).

Programs

Extensions

a(34)-a(40) from Max Alekseyev, a(41) from Paul Underwood, a(42)-a(44) from Gary Barnes, a(45)-a(47) from Lelio R Paula, added by Max Alekseyev, Feb 09 2012
a(48) by Lelio R. Paula, added by Robert Price, Dec 06 2013

A096817 Numbers k such that 2^k - 11 is prime.

Original entry on oeis.org

4, 6, 10, 18, 42, 78, 94, 114, 190, 322, 546, 3894, 10318, 11650, 12474, 20994, 61810, 103882, 296010, 636930, 653638, 926766
Offset: 1

Views

Author

Labos Elemer, Jul 13 2004

Keywords

Comments

All terms are even since for odd k, 2^k - 11 is divisible by 3.

Examples

			k = 6: 64 - 11 = 53 is prime.
		

Crossrefs

Cf. A096502.
Cf. Sequences of numbers k such that 2^k - d is prime: A000043 (d=1), A050414 (d=3), A059608 (d=5), A059609 (d=7), A059610 (d=9), this sequence (d=11), A096818 (d=13), A059612 (d=15), A059611 (d=17), A096819 (d=19), A096820 (d=21), A057220 (d=23), A356826 (d=29).

Programs

Extensions

a(13)-a(16) from Max Alekseyev, a(17)-a(18) from Henri Lifchitz, added by Max Alekseyev, Feb 09 2012
a(19) from Lelio R Paula, added by Max Alekseyev, Oct 24 2013
a(20)-a(22) from Stefano Morozzi, added by Elmo R. Oliveira, Nov 16 2023

A096819 Numbers k such that 2^k - 19 is prime.

Original entry on oeis.org

5, 7, 11, 15, 19, 21, 31, 39, 67, 69, 85, 157, 171, 191, 255, 291, 379, 3669, 4551, 9531, 13119, 14211, 20647, 233965, 337267, 534429, 535415, 816039, 991715
Offset: 1

Views

Author

Labos Elemer, Jul 13 2004

Keywords

Comments

All terms are odd since for even k, 2^k - 19 is divisible by 3.
a(26) > 5*10^5. - Tyler NeSmith, Apr 16 2022

Examples

			2^7 - 19 = 128 - 19 = 109, a prime, so 7 is a term of the sequence.
		

Crossrefs

Cf. A096502.
Cf. Sequences of numbers k such that 2^k - d is prime: A000043 (d=1), A050414 (d=3), A059608 (d=5), A059609 (d=7), A059610 (d=9), A096817 (d=11), A096818 (d=13), A059612 (d=15), A059611 (d=17), this sequence (d=19), A096820 (d=21), A057220 (d=23), A356826 (d=29).

Programs

Extensions

a(22)-a(23) from Max Alekseyev, Feb 10 2012
a(24)-a(25) from Lelio R Paula, added by Max Alekseyev, Oct 24 2013
a(26)-a(29) found by Stefano Morozzi, added by Alois P. Heinz, Aug 29 2022
Showing 1-10 of 18 results. Next