login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A061536 a(1) = 1 and a(n) = a(n-1) + (the number of primes <= n) for n > 1. 2
1, 2, 4, 6, 9, 12, 16, 20, 24, 28, 33, 38, 44, 50, 56, 62, 69, 76, 84, 92, 100, 108, 117, 126, 135, 144, 153, 162, 172, 182, 193, 204, 215, 226, 237, 248, 260, 272, 284, 296, 309, 322, 336, 350, 364, 378, 393, 408, 423, 438, 453, 468, 484, 500, 516, 532, 548 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

1 + partial sums of A000720. - R. J. Mathar, Aug 03 2009 [amended by Georg Fischer, Sep 04 2020]

LINKS

Harry J. Smith, Table of n, a(n) for n = 1..1000

FORMULA

a(n) = 1 + A046992(n).

MATHEMATICA

a[1] = 1; a[n_] := a[n - 1] + PrimePi[n]; Table[ a[n], {n, 1, 70} ]

Accumulate[PrimePi[Range[60]]]+1 (* Harvey P. Dale, Jun 11 2014 *)

PROG

(PARI) a=1; for (n=1, 100, print1(a+=primepi(n), ", ")) \\ Harry J. Smith, Jul 24 2009

(PARI) first(n)=my(p, s=1); vector(n, k, s+=p+=isprime(k)) \\ Charles R Greathouse IV, Jan 06 2016

CROSSREFS

Cf. A000720, A046992.

Sequence in context: A033291 A105434 A145196 * A095114 A062048 A194174

Adjacent sequences:  A061533 A061534 A061535 * A061537 A061538 A061539

KEYWORD

nonn,easy

AUTHOR

R. K. Guy, Robert G. Wilson v, May 14 2001

EXTENSIONS

Definition edited by Georg Fischer, Sep 04 2020

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified October 29 18:30 EDT 2020. Contains 338067 sequences. (Running on oeis4.)