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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A031168 p(n+6)-p(n) (p()=primes). 0
15, 16, 18, 22, 20, 24, 24, 24, 24, 24, 28, 24, 26, 28, 26, 26, 24, 28, 30, 30, 30, 28, 26, 24, 30, 30, 34, 32, 40, 38, 30, 32, 30, 34, 30, 30, 34, 30, 30, 26, 32, 42, 36, 36, 36, 40, 30, 28, 30, 34, 36, 32, 36, 30, 26, 30, 38, 40, 36, 36, 48, 44, 40, 38, 40, 42, 36 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

MAPLE

ithprime(n+6)-ithprime(n);

MATHEMATICA

a=6; t=Array[Prime, 123]; Drop[t, a]-Drop[t, -a] [From Vladimir Orlovsky (4vladimir(AT)gmail.com), Aug 13 2009]

Last[#]-First[#]&/@Partition[Prime[Range[80]], 7, 1] (* From Harvey P. Dale, Jan 12 2012 *)

PROG

(MAGMA) [NthPrime(n+6)-NthPrime(n): n in [1..100] ]; // Vincenzo Librandi, Apr 23 2011

CROSSREFS

Sequence in context: A138598 A160661 A114841 * A108856 A039689 A063530

Adjacent sequences:  A031165 A031166 A031167 * A031169 A031170 A031171

KEYWORD

nonn

AUTHOR

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

EXTENSIONS

Offset changed from 2 to 1; added a(1)=15 by Vincenzo Librandi, Apr 23 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 14 11:36 EST 2012. Contains 205623 sequences.