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-6 of 6 results.

A094467 Primes of the form -1+multiply perfect numbers.

Original entry on oeis.org

5, 1379454719, 14182439039, 43861478399, 51001180159, 153003540479, 403031236607, 518666803199, 275502900594021407, 69357059049509038079, 1161492388333469337599, 1245087725796543283199, 34384125938411324962897919, 115131961034430181728489308159
Offset: 1

Views

Author

Labos Elemer, May 12 2004

Keywords

Comments

The Prime Puzzles link defines left-perfect-primes to be -1+perfect number, and show that 5 is the only one.

Crossrefs

Extensions

a(6)-a(14) from Charles R Greathouse IV, Feb 08 2012

A078097 Least m such that P - m is prime, where P is the n-th perfect number.

Original entry on oeis.org

1, 5, 5, 5, 5, 17, 9, 65, 93, 129, 627, 111, 407, 795, 377, 1509, 257, 5207, 1233, 8537, 3917, 20253, 4613, 15435, 5619, 43823
Offset: 1

Views

Author

Jason Earls, Dec 01 2002

Keywords

Comments

Some of the larger entries may only correspond to probable primes.

Crossrefs

Programs

  • Mathematica
    e (* from A000043 *) = {2, 3, 5, 7, 13, 17, 19, 31, 61, 89, 107, 127, 521, 607, 1279, 2203, 2281, 3217, 4253, 4423, ...}; PrevPrim[n_] := Block[{k = n - 1}, While[ !PrimeQ[k], k-- ]; k]; Do[p = 2^(e[[n]] - 1)*(2^e[[n]] - 1); Print[p - PrevPrim[p]], {n, 1, 20}]
    #-NextPrime[#,-1]&/@PerfectNumber[Range[15]] (* The program generates the first 15 terms of the sequence. To generate more, increase the Range constant but the program may take a long time to run. *) (* Harvey P. Dale, Nov 22 2023 *)

Extensions

Edited and extended by Robert G. Wilson v, Dec 03 2002
a(19)-a(26) from Donovan Johnson, Feb 22 2008

A078096 Least m such that P + m is a prime, where P is the n-th perfect number.

Original entry on oeis.org

1, 1, 3, 19, 1, 7, 1, 105, 37, 163, 73, 43, 45, 649, 3753, 5323, 423, 3123, 9981, 12943
Offset: 1

Views

Author

Jason Earls, Dec 01 2002

Keywords

Comments

Some of the larger entries may only correspond to probable primes.

Examples

			a(3)=3 because 496 + 3 is a prime.
		

Crossrefs

Programs

  • Mathematica
    e (* from A000043 *) = {2, 3, 5, 7, 13, 17, 19, 31, 61, 89, 107, 127, 521, 607, 1279, 2203, 2281, 3217, 4253, 4423, ...}; NextPrim[n_] := Block[{k = n + 1}, While[ !PrimeQ[k], k++ ]; k]; Do[p = 2^(e[[n]] - 1)*(2^e[[n]] - 1); Print[NextPrim[p] - p], {n, 1, 20}]

Extensions

Edited and extended by Robert G. Wilson v, Dec 03 2002
a(19)-a(20) from Jinyuan Wang, Jun 13 2020

A189373 Perfect numbers k such that k+1 is prime.

Original entry on oeis.org

6, 28, 33550336, 137438691328
Offset: 1

Views

Author

Luis H. Gallardo, Apr 23 2011

Keywords

Comments

Joerg Arndt checked that up to exponent p=110503 of the corresponding Mersenne prime 2^p - 1 the number k=2^(p-1)*(2^p-1)+1 is not pseudoprime.
The listed perfect numbers have exponents p in 2, 3, 13, 19.

Examples

			We have a(3) = 33550336 since 33550337 is prime and there is no other such perfect number less than a(3) and that exceeds a(2) = 28.
		

Crossrefs

Programs

  • PARI
    {e=[2, 3, 5, 7, 13, 17, 19, 31, 61, 89, 107, 127, 521, 607, 1279, 2203, 2281, 3217, 4253, 4423, 9689, 9941, 11213, 19937, 21701, 23209, 44497, 86243, 110503, 132049, 216091, 756839, 859433, 1257787];} /* exponents of Mersenne primes */
    for(n=1,#e,p=(2^e[n]-1)*(2^(e[n]-1));if(ispseudoprime(p+1),print1(p,", ")));

Formula

a(n) = A061644(n) - 1. - Amiram Eldar, May 06 2024

A268692 Numbers k such that 2^(k-1)*(2^k - 1) + 1 is prime (see A134169).

Original entry on oeis.org

1, 2, 3, 6, 9, 10, 13, 19, 45, 46, 58, 141, 271, 336, 562, 601, 1128, 1635, 2718, 2920, 3933, 4351, 4729, 6556, 8349, 10851, 32641, 34039, 41050, 63732, 64738, 68173, 88690
Offset: 1

Views

Author

Jeppe Stig Nielsen, Feb 11 2016

Keywords

Comments

The intersection of this sequence with A000043 gives 2, 3, 13, 19, ... which are the indices corresponding to primes just next to perfect numbers (A000396), see A061644.
There are prime members of this sequence (271, 601, 4729, ...) which are not in A000043.
a(30) > 50000. All the primes corresponding to terms up to a(29) have been certified by the PFGW software performing the Brillhart-Lehmer-Selfridge N-1 test. - Giovanni Resta, Apr 11 2016
a(30)-a(32) terms have been certified by the PFGW software performing the Brillhart-Lehmer-Selfridge N-1 test. - Jorge Coveiro, Oct 29 2023
a(33) term has been certified by the PFGW software performing the Brillhart-Lehmer-Selfridge N-1 test. - Jorge Coveiro, Mar 08 2024

Crossrefs

Programs

  • PARI
    for(n=0,10^5,ispseudoprime(2^(n-1)*(2^n-1)+1) && print1(n,", "))

Extensions

a(27)-a(29) from Giovanni Resta, Apr 11 2016
a(30)-a(32) from Jorge Coveiro, Oct 29 2023
a(33) from Jorge Coveiro, Mar 08 2024

A377248 Numbers k such that 8191 * 2^k + 1 is prime.

Original entry on oeis.org

12, 20, 412, 712, 2092, 4704, 10176, 33396, 41124, 105604, 139780, 142924
Offset: 1

Views

Author

Arsen Vardanyan, Oct 21 2024

Keywords

Comments

8191 is the 5th Mersenne prime: 8191 = 2^13 - 1 (a term of A000668).

Examples

			12 is a term, because 8191 * 2^12 + 1 = 8191 * 4096 + 1 = 33550337 is prime. (also a term of A061644).
		

Crossrefs

Programs

  • PARI
    is(k) = isprime(8191 * 2^k + 1);

Extensions

a(8)-a(9) from Hugo Pfoertner, Oct 21 2024
a(10)-a(12) from Michael S. Branicky, Nov 05 2024
Showing 1-6 of 6 results.