Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A051728
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A051728 Smallest number at distance 2n from nearest prime. +0
21
2, 0, 23, 53, 409, 293, 211, 1341, 1343, 2179, 3967, 15705, 16033, 19635, 31425, 24281, 31429, 31431, 31433, 155959, 38501, 58831, 203713, 268343, 206699, 370311, 370313, 370315, 370317, 1349591, 1357261, 1272749, 1357265, 1357267 (list; graph; listen)
OFFSET

0,1

COMMENT

a(0) = 2. For n > 0, let f(m) = minimal distance from m to closest prime (excluding m itself). The a(n) = min { m : f(m) = 2n }.

f(m) is tabulated in A051700. - R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Nov 18 2007

MAPLE

A051700 := proc(m) if m <= 2 then op(m+1, [2, 1, 1]) ; else min(nextprime(m)-m, m-prevprime(m)) ; fi ; end: A051728 := proc(n) local m ; if n = 0 then RETURN(2); else for m from 0 do if A051700(m) = 2 * n then RETURN(m) ; fi ; od: fi ; end: seq(A051728(n), n=0..20) ; - R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Nov 18 2007

CROSSREFS

Related sequences: A023186-A023188, A046929-A046931, A051650, A051652, A051697-A051702, A051728-A051730.

Cf. A132470.

Sequence in context: A106708 A138551 A133490 this_sequence A005359 A008842 A130915

Adjacent sequences: A051725 A051726 A051727 this_sequence A051729 A051730 A051731

KEYWORD

nonn,easy,nice

AUTHOR

njas

EXTENSIONS

More terms from James A. Sellers (sellersj(AT)math.psu.edu), Dec 07 1999

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 September 5 01:44 EDT 2008. Contains 143476 sequences.


AT&T Labs Research