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!)
A085341 Number of primes between sigma(n) and n. 7
0, 1, 0, 2, 0, 2, 0, 2, 2, 3, 0, 4, 0, 3, 3, 5, 0, 5, 0, 5, 3, 3, 0, 8, 2, 4, 3, 7, 0, 10, 0, 7, 4, 5, 4, 13, 0, 5, 4, 12, 0, 11, 0, 9, 7, 6, 0, 15, 1, 9, 5, 10, 0, 14, 4, 14, 6, 8, 0, 22, 0, 6, 9, 13, 5, 16, 0, 11, 5, 15, 0, 24, 0, 9, 9, 13, 3, 18, 0, 20, 8 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,4
LINKS
FORMULA
a(n) = pi(sigma(n)) - pi(n) = A000720(A000203(n)) - A000720(n).
EXAMPLE
n = 12: sigma(n) = 28, pi(28) - pi(12) = 9 - 5 = 4.
MATHEMATICA
Table[PrimePi[DivisorSigma[1, n]]-PrimePi[n], {n, 90}] (* Harvey P. Dale, Aug 18 2015 *)
PROG
(PARI) a(n) = primepi(sigma(n)) - primepi(n); \\ Michel Marcus, Dec 15 2013
CROSSREFS
Sequence in context: A161840 A355851 A140302 * A221474 A160812 A338271
KEYWORD
nonn
AUTHOR
Labos Elemer, Jul 10 2003
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 16 16:32 EDT 2024. Contains 371749 sequences. (Running on oeis4.)