login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A031167 a(n) = prime(n+5) - prime(n). 11
11, 14, 14, 16, 18, 18, 20, 22, 20, 18, 22, 22, 20, 24, 24, 20, 20, 22, 22, 26, 28, 24, 24, 20, 16, 26, 28, 30, 30, 36, 24, 26, 26, 28, 24, 28, 24, 28, 26, 24, 20, 30, 32, 34, 32, 34, 28, 18, 24, 28, 30, 30, 30, 26, 24, 20, 24, 36, 34, 32, 34, 38, 30, 36, 36, 36, 28 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
MAPLE
seq(ithprime(n+5)-ithprime(n), n=1..30);
MATHEMATICA
a=5; t=Array[Prime, 123]; Drop[t, a]-Drop[t, -a] (* Vladimir Joseph Stephan Orlovsky, Aug 13 2009 *)
Last[#]-First[#]&/@Partition[Prime[Range[80]], 6, 1] (* Harvey P. Dale, Jul 11 2014 *)
PROG
(PARI) A031167(n) = prime(n+5)-prime(n)
(Magma) [NthPrime(n+5)-NthPrime(n): n in [1..100] ]; // Vincenzo Librandi, Apr 23 2011
(Haskell)
a031167 n = a031167_list !! (n-1)
a031167_list = zipWith (-) (drop 5 a000040_list) a000040_list
-- Reinhard Zumkeller, Aug 23 2015
CROSSREFS
Sequence in context: A100332 A083124 A132991 * A357937 A005788 A091403
KEYWORD
nonn
AUTHOR
EXTENSIONS
Initial term added by Michael B. Porter, Jan 27 2010
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 13:04 EDT 2024. Contains 371913 sequences. (Running on oeis4.)