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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A053319 Distance between the smaller members of successive twin prime pairs. 6
2, 6, 6, 12, 12, 18, 12, 30, 6, 30, 12, 30, 12, 6, 30, 12, 30, 12, 30, 36, 72, 12, 30, 60, 48, 30, 18, 24, 18, 150, 12, 6, 30, 24, 138, 12, 18, 12, 30, 60, 78, 48, 12, 12, 18, 108, 24, 30, 6, 120, 12, 48, 30, 24, 66, 84, 6, 54, 18, 48, 30, 54, 6, 24, 18, 12, 96, 30, 42, 30, 42 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

LINKS

M. F. Hasler, Table of n, a(n) for n = 1..107406

MATHEMATICA

PrimeNextTwinAverage[n_]:=Module[{k}, k=n+1; While[ !PrimeQ[k-1]||!PrimeQ[k+1], k++ ]; k]; a=4; lst={}; Do[b=PrimeNextTwinAverage[a]; c=b-a; AppendTo[lst, c]; a=b, {n, 4!}]; lst [From Vladimir Orlovsky (4vladimir(AT)gmail.com), May 30 2009]

Differences[Transpose[Select[Partition[Prime[Range[450]], 2, 1], Last[#]-First[#]==2&]][[1]]]  (* From Harvey P. Dale, Feb 08 2011 *)

PROG

(PARI) {cnt=0; lp= /*last*/ ltp=/*last twin(upper)*/ 5;

forprime(p=lp+1, default(primelimit), if(p-lp != 2, lp=p; next);

write("b053319.txt", cnt++" "p-ltp); /* print1(p-ltp", "); */ ltp=lp=p)} [M. F. Hasler, May 26 2007]

CROSSREFS

First differences of A001359.

Sequence in context: A087560 A071892 A064797 * A075779 A140880 A065420

Adjacent sequences:  A053316 A053317 A053318 * A053320 A053321 A053322

KEYWORD

nonn

AUTHOR

Labos E. (labos(AT)ana.sote.hu), Mar 06 2000

EXTENSIONS

Definition clarified by Harvey P. Dale, Feb 08 2011

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 16 21:51 EST 2012. Contains 205978 sequences.