Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A116568
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A116568 Difference between n and the absolute value of the difference between number of nonprimes not exceeding n and number of primes not exceeding n. +0
1
0, 2, 2, 4, 4, 6, 6, 8, 8, 8, 10, 10, 12, 12, 12, 12, 14, 14, 16, 16, 16, 16, 18, 18, 18, 18, 18, 18, 20, 20, 22, 22, 22, 22, 22, 22, 24, 24, 24, 24, 26, 26, 28, 28, 28, 28, 30, 30, 30, 30, 30, 30, 32, 32, 32, 32, 32, 32, 34, 34, 36, 36, 36, 36, 36, 36, 38, 38, 38, 38, 40, 40, 42 (list; graph; listen)
OFFSET

1,2

FORMULA

a(n)=n-Abs[A097454(n)].

EXAMPLE

a(11)=10 because the nonprimes not exceeding 11 are 1,4,6,8,9 and 10, the primes not exceeding 11 are 2,3,5,7 and 11 and 11-abs(6-5)=10.

MAPLE

with(numtheory): seq(n-abs(n-2*pi(n)), n=1..73);

CROSSREFS

Cf. A097454.

Sequence in context: A079584 A004079 A096494 this_sequence A061106 A161764 A131055

Adjacent sequences: A116565 A116566 A116567 this_sequence A116569 A116570 A116571

KEYWORD

nonn

AUTHOR

Roger L. Bagula (rlbagulatftn(AT)yahoo.com), Mar 18 2006

EXTENSIONS

Edited by N. J. A. Sloane (njas(AT)research.att.com), Apr 05 2006

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 19 21:04 EST 2009. Contains 171054 sequences.


AT&T Labs Research