Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A031132
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A031132 Record differences between n-th prime and (n+2)-nd prime. +0
9
3, 4, 6, 10, 12, 14, 18, 24, 28, 40, 42, 44, 48, 50, 56, 58, 72, 76, 80, 82, 100, 114, 116, 126, 138, 140, 160, 190, 200, 234, 236, 246, 248, 270, 306, 328, 330, 336, 340, 372, 376, 410, 436, 438, 450, 476, 502, 506, 524, 540, 546, 594 (list; graph; listen)
OFFSET

1,1

FORMULA

a(n) = A031134(n) - A031133(n). (Robert G. Wilson v)

EXAMPLE

The difference a(49) = 524 first occurs at prime(2158173265) - prime(2158173263) = 50949283633 - 50949283109 = 524. - Jon E. Schoenfield (jonscho(AT)hiwaay.net), Aug 29 2006

MATHEMATICA

d = 0; lst = {}; {p, q, r} = {1, 2, 3}; Do[{p, q, r} = {q, r, Prime@n}; If[r - p > d, d = r - p; AppendTo[lst, {p, r}]; Print[{p, r-p, r}]], {n, 212550893}]; Last /@ lst - First /@ lst (from Robert G. Wilson v (rgwv(at)rgwv.com), May 17 2006).

dist = 0; n = 0; While[n<250000000, n++; tmp = Prime[n + 2] - Prime[n]; If[tmp > dist, dist = tmp; Print[tmp]]; ]; - Sam Handler (sam_5_5_5_0(AT)yahoo.com), Aug 08 2006

CROSSREFS

Cf. A031131, A031132, A031133, A031134, A122412, A122413.

Sequence in context: A137951 A082694 A004793 this_sequence A057477 A113887 A103000

Adjacent sequences: A031129 A031130 A031131 this_sequence A031133 A031134 A031135

KEYWORD

nonn,more

AUTHOR

Jeff Burch (jmburch(AT)osprey.smcm.edu)

EXTENSIONS

Extended (and first term added) by Patrick De Geest (pdg(AT)worldofnumbers.com), 10/2000.

Further extended by Jud McCranie (j.mccranie(AT)comcast.net), Jan 03 2001 and again on May 18 2006

a(50)-a(52) from Jon Schoenfield, Sep 02 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 July 25 07:41 EDT 2008. Contains 142293 sequences.


AT&T Labs Research