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!)
A211395 Number of Sophie Germain primes between 2^n and 2^(n+1). 2
1, 1, 1, 1, 2, 2, 3, 7, 8, 13, 23, 41, 67, 111, 193, 360, 630, 1091, 1938, 3558, 6448, 11876, 21649, 40151, 73658, 135711, 251786, 468678, 875247, 1634069, 3060794, 5746245, 10806204, 20356921, 38433398, 72656139, 137562095 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,5
COMMENTS
To be precise, the number of Sophie Germain primes p, 2^n < p <= 2^(n+1). Since 2 is a Sophie Germain prime, this precise definition is important only for determining a(0) and a(1). The alternative definition (with 2^n <= p < 2^(n+1)) would give the sequence 0, 2, 1, 1, 2, 2, 3, 7, 8, 13, 23, 41, 67, 111, 193, ...
The Sophie Germain primes p are in A005384. The corresponding primes s = 2p + 1 are called safe primes, and are in A005385. The number of safe primes between 2^(n+1) and 2^(n+2) is given by the sequence in the previous paragraph.
LINKS
FORMULA
a(n) = A211397(n+1) - A211397(n). - Michel Marcus, Sep 22 2014
MATHEMATICA
nmax = 36; rtable = Table[0, {nmax}];
Do[r = 0;
Do[If[And[PrimeQ[i], PrimeQ[2 i + 1]], r++], {i, 1 + 2^n,
2^(n + 1)}]; Print[n, " ", r];
rtable[[n + 1]] = r, {n, 0, nmax - 1}];
rtable (* Paul D. Beale, Sep 19 2014 *)
PROG
(PARI) a211395(n) = {local(r, i); r=0; for(i=2^n+1, 2^(n+1), if(isprime(i)&&isprime(2*i+1), r=r+1)); r} \\ Michael B. Porter, Feb 08 2013
CROSSREFS
Sequence in context: A095017 A141559 A351732 * A160433 A043550 A237988
KEYWORD
nonn
AUTHOR
Brad Clardy, Feb 08 2013
EXTENSIONS
a(29)-a(36) from Paul D. Beale, Sep 19 2014
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 August 17 19:53 EDT 2024. Contains 375227 sequences. (Running on oeis4.)