The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A134735 Primes followed by the difference from the next prime. 4
2, 1, 3, 2, 5, 2, 7, 4, 11, 2, 13, 4, 17, 2, 19, 4, 23, 6, 29, 2, 31, 6, 37, 4, 41, 2, 43, 4, 47, 6, 53, 6, 59, 2, 61, 6, 67, 4, 71, 2, 73, 6, 79, 4, 83, 6, 89, 8, 97, 4, 101, 2, 103, 4, 107, 2, 109, 4, 113, 14, 127, 4, 131, 6, 137, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
FORMULA
If n is odd then a(n) = A000040((n+1)/2) else a(n) = A001223(n/2).
MATHEMATICA
With[{pr=Prime[Range[40]]}, Riffle[pr, Differences[pr]]] (* Harvey P. Dale, Jul 17 2020 *)
PROG
(Haskell)
import Data.List (transpose)
a134735 n = a134735_list !! (n-1)
a134735_list = concat $ transpose [a000040_list, a001223_list]
-- Reinhard Zumkeller, Dec 12 2012
CROSSREFS
Prime numbers: A000040. Differences between consecutive primes: A001223.
Cf. A219606.
Sequence in context: A105602 A111079 A165006 * A240867 A242363 A050360
KEYWORD
easy,nonn
AUTHOR
Omar E. Pol, Nov 11 2007
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 June 3 13:21 EDT 2024. Contains 373060 sequences. (Running on oeis4.)