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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A031166 p(n+4)-p(n) (p()=primes). 0
9, 10, 12, 12, 12, 16, 14, 18, 18, 14, 16, 16, 18, 18, 20, 18, 14, 18, 16, 18, 24, 22, 20, 18, 12, 12, 24, 24, 28, 26, 22, 20, 20, 24, 18, 22, 22, 18, 24, 20, 18, 18, 20, 30, 30, 30, 22, 16, 14, 22, 24, 24, 28, 20, 20, 18, 14, 22, 30, 30, 30, 24, 24, 26, 34, 32, 22 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

MAPLE

ithprime(n+4)-ithprime(n);

MATHEMATICA

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

PROG

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

CROSSREFS

Sequence in context: A048013 A048048 A136835 * A202706 A104627 A188057

Adjacent sequences:  A031163 A031164 A031165 * A031167 A031168 A031169

KEYWORD

nonn

AUTHOR

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

EXTENSIONS

Offset changed from 2 to 1; added a(1)=9 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 15 23:34 EST 2012. Contains 205860 sequences.