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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A063933 Difference between n and the average of largest prime less than or equal to n and smallest prime greater than or equal to n. 3
0, 0, 0, 0, 0, 0, -1, 0, 1, 0, 0, 0, -1, 0, 1, 0, 0, 0, -1, 0, 1, 0, -2, -1, 0, 1, 2, 0, 0, 0, -2, -1, 0, 1, 2, 0, -1, 0, 1, 0, 0, 0, -1, 0, 1, 0, -2, -1, 0, 1, 2, 0, -2, -1, 0, 1, 2, 0, 0, 0, -2, -1, 0, 1, 2, 0, -1, 0, 1, 0, 0, 0, -2, -1, 0, 1, 2, 0, -1, 0, 1, 0, -2, -1, 0, 1, 2, 0, -3, -2, -1, 0, 1, 2, 3, 0, -1, 0, 1, 0, 0, 0, -1, 0, 1, 0, 0, 0, -1, 0, 1, 0 (list; graph; refs; listen; history; internal format)
OFFSET

2,23

LINKS

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

FORMULA

a(n) = n-(A007917(n)+A007918(n))/2 = n-A063932(n). a(n) = 0 for numbers in A063934 (i.e. in A000040 or A024675).

EXAMPLE

a(10) = 10-(11-7)/2 = 1; a(11) = 11-(11+11)/2 = 0.

PROG

(PARI) { for (n=2, 1000, write("b063933.txt", n, " ", n - (precprime(n) + nextprime(n))/2) ) } [From Harry J. Smith (hjsmithh(AT)sbcglobal.net), Sep 03 2009]

CROSSREFS

Sequence in context: A066438 A051126 A168120 * A085860 A178665 A170958

Adjacent sequences:  A063930 A063931 A063932 * A063934 A063935 A063936

KEYWORD

sign

AUTHOR

Henry Bottomley (se16(AT)btinternet.com), Aug 21 2001

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 15 12:24 EST 2012. Contains 205785 sequences.