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

A171131 Primes p such that sum of divisors of p-3 is prime.

Original entry on oeis.org

5, 7, 19, 67, 4099, 65539, 262147, 1073741827
Offset: 1

Views

Author

Keywords

Comments

No further terms up to the 10 millionth prime. - Harvey P. Dale, Apr 30 2012
If the sum of divisors of a number k is a prime (i.e., k is in A023194), then k is a prime power. If p is prime and p-3 is a prime power, then p-3 is even, so p-3 is a power of 2. Since p-3 = 2^m then sigma(2^m) = 2^(m+1)-1 is a prime. Therefore, all the terms are primes of the form 2^m+3 where m+1 is a Mersenne exponent (A000043), i.e., m is in the intersection of A057732 and {A000043(n)-1}. So, m = 1, 2, 4, 6, 12, 16, 18, 30, and no other value <= A057732(58) = 2205444. Therefore, a(9) > 2^2205444, if it exists. - Amiram Eldar, Aug 01 2024

Examples

			5 is a term since it is a prime and sigma(5-3) = 3 is a prime.
7 is a term since it is a prime and sigma(7-3) = 7 is a prime.
19 is a term since it is a prime and sigma(19-3) = 31 is a prime.
		

Crossrefs

Programs

  • Mathematica
    f[n_]:=Plus@@Divisors[n]; lst={};Do[p=Prime[n];If[PrimeQ[f[p-3]],AppendTo[lst,p]],{n,2*10!}];lst
    Select[Prime[Range[10000000]],PrimeQ[DivisorSigma[1,#-3]]&] (* Harvey P. Dale, Apr 30 2012 *)

Extensions

a(8)-a(10) from Vincenzo Librandi, Feb 04 2013
Two wrong terms removed by Amiram Eldar, Aug 01 2024

A247955 Primes p such that there is prime q with sigma(q+2) = p.

Original entry on oeis.org

7, 13, 31, 1093, 2801, 5113, 8011, 17293, 30103, 30941, 86143, 459007, 552793, 579883, 732541, 1191373, 3500201, 3730693, 4534771, 5168803, 5333791, 7450171, 10378063, 25646167, 25882657, 28792661, 30266503, 43553401, 48037081, 52265671, 56964757, 62433703, 65504743, 67856407, 76413823, 77572057
Offset: 1

Views

Author

Jaroslav Krizek, Sep 28 2014

Keywords

Comments

Primes p such that there is prime q such that A000203(q+2) = p.
Primes p of the form sigma(A171130(n)) in increasing order.

Crossrefs

Programs

  • Mathematica
    Sort[Select[DivisorSigma[1,#+2]&/@Prime[Range[5200000]],PrimeQ]] (* Harvey P. Dale, Apr 27 2022 *)
  • PARI
    v=[];forprime(p=1,10^8,if(ispseudoprime(sigma(p+2)),v=concat(v,sigma(p+2))));v \\ Derek Orr, Oct 26 2014

Extensions

More terms from Michel Marcus, Oct 02 2014
Corrected and extended by Harvey P. Dale, Apr 27 2022
Showing 1-2 of 2 results.