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.

A205649 Hamming distance between twin primes.

Original entry on oeis.org

2, 1, 2, 1, 1, 1, 2, 3, 1, 2, 1, 1, 2, 6, 1, 2, 4, 1, 1, 3, 2, 2, 4, 1, 1, 1, 3, 1, 1, 2, 1, 1, 2, 1, 1, 2, 3, 1, 1, 2, 7, 1, 1, 1, 1, 3, 2, 2, 1, 4, 3, 2, 2, 1, 1, 2, 4, 1, 2, 1, 1, 2, 1, 3, 6, 1, 1, 1, 2, 1, 2, 1, 1, 5, 1, 7, 3, 1, 1, 1, 1, 3, 4, 5, 2, 1, 2
Offset: 1

Views

Author

Vladimir Shevelev, Jan 30 2012

Keywords

Comments

Twin primes for which a(n)=1 are in A122565.
Conjecture: The sequence is unbounded.

Crossrefs

Programs

  • Mathematica
    nn = 1000; ps = Prime[Range[nn]]; t = {}; Do[If[ps[[n]] + 2 == ps[[n + 1]], AppendTo[t, ps[[n]]]], {n, nn - 1}]; Table[b2 = IntegerDigits[t[[k]] + 2, 2];  b1 = IntegerDigits[t[[k]], 2, Length[b2]]; Total[Abs[b1 - b2]], {k, Length[t]}] (* T. D. Noe, Jan 30 2012 *)

Formula

A001359(n) == -1 (mod 2^a(n)).