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!)
A262138 Interleaved first and second differences of the prime numbers. 2
1, 1, 2, 0, 2, 2, 4, -2, 2, 2, 4, -2, 2, 2, 4, 2, 6, -4, 2, 4, 6, -2, 4, -2, 2, 2, 4, 2, 6, 0, 6, -4, 2, 4, 6, -2, 4, -2, 2, 4, 6, -2, 4, 2, 6, 2, 8, -4, 4, -2, 2, 2, 4, -2, 2, 2, 4, 10, 14, -10, 4, 2, 6, -4, 2, 8, 10, -8, 2, 4, 6, 0, 6, -2, 4, 2, 6, 0, 6 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
a(2*n-1) = A001223(n); a(2*n) = A036263(n+2);
a(2*n-1) = prime(n+1) - prime(n);
a(2*n) = prime(n+2) - 2*prime(n+1) + prime(n);
a(2*A064113(n)) = 0.
LINKS
EXAMPLE
A000040: 2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53
A001223: 1 2 2 4 2 4 2 4 6 2 6 4 2 4 6
A036263: 1 0 2 -2 2 -2 2 2 -4 4 -2 -2 2 2 0
A262138: 1 1 2 0 2 2 4 -2 2 2 4 -2 2 2 4 2 6 -4 2 4 6 -2 4 -2 2 2 4 2 6 0
MATHEMATICA
With[{nn=50}, Riffle[Differences[Prime[Range[nn]]], Differences[ Prime[ Range[ nn]], 2]]] (* Harvey P. Dale, Nov 01 2015 *)
PROG
(Haskell)
import Data.List (transpose)
a262138 n = a262138_list !! (n-1)
a262138_list = concat $ transpose [a001223_list, a036263_list]
CROSSREFS
Cf. A064113.
Sequence in context: A051734 A157898 A137430 * A308212 A181346 A300815
KEYWORD
sign
AUTHOR
Reinhard Zumkeller, Sep 12 2015
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 2 21:38 EDT 2024. Contains 373051 sequences. (Running on oeis4.)