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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A033559 a(n) = (q - p)/2, where p is the largest prime < n and q is the smallest prime > n. 1
1, 2, 1, 3, 2, 2, 2, 3, 1, 3, 2, 2, 2, 3, 1, 3, 2, 2, 2, 5, 3, 3, 3, 3, 3, 4, 1, 4, 3, 3, 3, 3, 3, 5, 2, 2, 2, 3, 1, 3, 2, 2, 2, 5, 3, 3, 3, 3, 3, 6, 3, 3, 3, 3, 3, 4, 1, 4, 3, 3, 3, 3, 3, 5, 2, 2, 2, 3, 1, 4, 3, 3, 3, 3, 3, 5, 2, 2, 2, 5, 3, 3, 3, 3, 3, 7, 4, 4, 4, 4, 4, 4, 4, 6, 2, 2, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET

4,2

LINKS

Table of n, a(n) for n=4..100.

Jean-François Alcover, Frequency distribution up to 10^6 terms.

MATHEMATICA

a[n_] := (NextPrime[n] - NextPrime[n, -1])/2; Table[a[n], {n, 4, 100}] (* Jean-François Alcover, Apr 16 2013 *)

CROSSREFS

Sequence in context: A057514 A273568 A140720 * A279027 A103151 A035221

Adjacent sequences:  A033556 A033557 A033558 * A033560 A033561 A033562

KEYWORD

nonn

AUTHOR

N. J. A. Sloane

EXTENSIONS

More terms from Ben Paul Thurston, Mar 30 2007

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 March 25 01:17 EDT 2019. Contains 321450 sequences. (Running on oeis4.)