login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A082460 a(n) = pi(n) - a(n - 1) = A000720(n) - a(n - 1). 0
0, 1, 1, 1, 2, 1, 3, 1, 3, 1, 4, 1, 5, 1, 5, 1, 6, 1, 7, 1, 7, 1, 8, 1, 8, 1, 8, 1, 9, 1, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 12, 1, 13, 1, 13, 1, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 16, 1, 17, 1, 17, 1, 17, 1, 18, 1, 18, 1, 19, 1, 20, 1, 20, 1, 20, 1, 21, 1, 21, 1, 22, 1, 22, 1, 22, 1, 23, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,5

LINKS

Table of n, a(n) for n=0..89.

MATHEMATICA

f[x_] := PrimePi[x]-f[x-1] f[0]=0; Table[f[w], {w, 1, 128}]

PROG

(PARI) k=pp=0; for(n=1, 99, pp+=isprime(n); k=pp-k; print1(k", ")) \\ Charles R Greathouse IV, May 15 2013

CROSSREFS

Cf. A000720.

Sequence in context: A322584 A306248 A084360 * A318573 A029227 A029214

Adjacent sequences:  A082457 A082458 A082459 * A082461 A082462 A082463

KEYWORD

nonn

AUTHOR

Labos Elemer, Apr 26 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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 22 05:03 EDT 2019. Contains 323473 sequences. (Running on oeis4.)