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!)
A270415 Numbers n such that sigma(n-1) and sigma(n) - 1 are both primes. 2
3, 5, 10, 17, 26, 65, 65537, 146690, 703922, 1481090, 1885130, 2036330, 2211170, 2430482, 2505890, 5470922, 9840770, 11607650, 17783090, 24137570, 74425130, 76615010, 77563250, 133379402, 138697730, 138980522, 142396490, 155575730, 177715562, 181899170 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Numbers n such that A000203(n-1) and A039653(n) are both primes.
Intersection of A270413 and A248792.
Prime terms are in A249759.
Corresponding values of sigma(n-1): 3, 7, 13, 31, 31, 127, 131071, ...
Corresponding values of sigma(n) - 1: 3, 5, 17, 17, 41, 83, 65537, ...
LINKS
EXAMPLE
17 is in the sequence because sigma(17-1) = sigma(16) = 31 and sigma(10) - 1 = 18 - 1 = 17 (both primes).
MATHEMATICA
Select[Range[10^7], And[PrimeQ@ DivisorSigma[1, # - 1], PrimeQ[DivisorSigma[1, #] - 1]] &] (* Michael De Vlieger, Mar 17 2016 *)
PROG
(Magma) [n: n in [2..10000000] | IsPrime(SumOfDivisors(n-1)) and IsPrime(SumOfDivisors(n)-1)]
(PARI) isok(n) = isprime(sigma(n-1)) && isprime(sigma(n)-1); \\ Michel Marcus, Mar 17 2016
CROSSREFS
Sequence in context: A310019 A261998 A270413 * A192757 A079934 A215004
KEYWORD
nonn
AUTHOR
Jaroslav Krizek, Mar 16 2016
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 04:35 EDT 2024. Contains 371782 sequences. (Running on oeis4.)