cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A137264 Prime number gaps read modulo 3.

Original entry on oeis.org

1, 2, 2, 1, 2, 1, 2, 1, 0, 2, 0, 1, 2, 1, 0, 0, 2, 0, 1, 2, 0, 1, 0, 2, 1, 2, 1, 2, 1, 2, 1, 0, 2, 1, 2, 0, 0, 1, 0, 0, 2, 1, 2, 1, 2, 0, 0, 1, 2, 1, 0, 2, 1, 0, 0, 0, 2, 0, 1, 2, 1, 2, 1, 2, 1, 2, 0, 1, 2, 1, 0, 2, 0, 0, 1, 0, 2, 1, 2, 1, 2, 1, 2, 0, 1, 0, 2, 1, 2, 1, 0, 2, 1, 2, 1, 0, 0, 2, 0, 0, 1, 0
Offset: 1

Views

Author

Noel H. Patson (n.patson(AT)cqu.edu.au), Mar 12 2008

Keywords

Comments

Conjecture: The only digit that is repeated in the sequence is 0 except for n=2 and n=3 where 2 repeats. So 1 may be followed by 2 or 0; 2 may be followed by 1 or 0; 0 may be followed by 0 or 1 or 2. this has been confirmed for the first million prime gaps.
The conjecture is true, because any three numbers whose differences are (1, 1) or (2, 2) will form a complete residue system modulo 3, and hence one of them will be a multiple of 3. - Karl W. Heuer, Mar 16 2016
See comments at A269364. - Antti Karttunen, Mar 17 2016

Crossrefs

Programs

  • Mathematica
    n=1000;(*The length of the list*) Mod[Differences[Table[Prime[i], {i, n}]], 3]
  • Scheme
    (define (A137264 n) (modulo (A001223 n) 3)) ;; Antti Karttunen, Mar 16 2016