Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A063933
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
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. +0
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; listen)
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.

PROGRAM

(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: A129634 A066438 A051126 this_sequence A085860 A046810 A039999

Adjacent sequences: A063930 A063931 A063932 this_sequence A063934 A063935 A063936

KEYWORD

sign

AUTHOR

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

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 November 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research