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!)
A156542 Number of distinct Sophie Germain prime factors of n. 7
0, 1, 1, 1, 1, 2, 0, 1, 1, 2, 1, 2, 0, 1, 2, 1, 0, 2, 0, 2, 1, 2, 1, 2, 1, 1, 1, 1, 1, 3, 0, 1, 2, 1, 1, 2, 0, 1, 1, 2, 1, 2, 0, 2, 2, 2, 0, 2, 0, 2, 1, 1, 1, 2, 2, 1, 1, 2, 0, 3, 0, 1, 1, 1, 1, 3, 0, 1, 2, 2, 0, 2, 0, 1, 2, 1, 1, 2, 0, 2, 1, 2, 1, 2, 1, 1, 2, 2, 1, 3, 0, 2, 1, 1, 1, 2, 0, 1, 2, 2, 0, 2, 0, 1, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,6
LINKS
FORMULA
a(n) <= A001221(n));
a(A156541(n)) = A001221(A156541(n)); a(A156543(n)) = 0;
a(A005384(n)) = 1; a(A053176(n)) = 0.
a(n) = Sum_{p|n} (pi(2p+1) - pi(2p)), where p is a prime and pi(k) = A000720(k). - Ridouane Oudra, Aug 25 2019
MAPLE
with(numtheory): seq(add(pi(2*i+1)-pi(2*i), i in factorset(n)), n=1..100); # Ridouane Oudra, Aug 25 2019
MATHEMATICA
Join[{0}, Table[Count[FactorInteger[n][[All, 1]], _?(PrimeQ[2#+1]&)], {n, 2, 110}]] (* Harvey P. Dale, Apr 05 2020 *)
PROG
(Magma) [0] cat [&+[#PrimesInInterval(2*p, 2*p+1):p in PrimeDivisors(n)]:n in [2..100]]; // Marius A. Burtea, Aug 25 2019
CROSSREFS
Sequence in context: A025911 A060184 A055639 * A307990 A066360 A061358
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Feb 10 2009
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 25 05:56 EDT 2024. Contains 371964 sequences. (Running on oeis4.)