login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A070803
Number of primes not exceeding sum of divisors of n.
10
0, 2, 2, 4, 3, 5, 4, 6, 6, 7, 5, 9, 6, 9, 9, 11, 7, 12, 8, 13, 11, 11, 9, 17, 11, 13, 12, 16, 10, 20, 11, 18, 15, 16, 15, 24, 12, 17, 16, 24, 13, 24, 14, 23, 21, 20, 15, 30, 16, 24, 20, 25, 16, 30, 20, 30, 22, 24, 17, 39, 18, 24, 27, 31, 23, 34, 19, 30, 24, 34, 20, 44, 21, 30, 30
OFFSET
1,2
LINKS
FORMULA
a(n) = A000720(A000203(n)) = pi(sigma(n)).
EXAMPLE
n=50: sigma(50) = 93, pi(93) = 24 = a(50).
MATHEMATICA
Table[PrimePi[DivisorSigma[1, n]], {n, 1, 256}]
PROG
(Sage) [prime_pi(sigma(n, 1)) for n in range(1, 76)] # - Zerinvary Lajos, Jun 06 2009
(PARI) A070803(n) = primepi(sigma(n)) \\ Michael B. Porter, Jan 28 2010
(Magma) [#PrimesUpTo(SumOfDivisors(n)): n in [1..100]]; // Vincenzo Librandi, Feb 06 2017
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Labos Elemer, May 08 2002
STATUS
approved