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.

A219244 Differences of two consecutive primes which both equal 1 modulo 3, divided by 6.

Original entry on oeis.org

1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 1, 1, 3, 1, 1, 2, 1, 2, 1, 1, 3, 1, 2, 2, 1, 1, 1, 4, 1, 1, 1, 3, 1, 2, 1, 1, 1, 1, 3, 4, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 2, 1, 2, 2, 1, 2, 1, 1, 1, 2, 2, 1, 1, 2, 1, 1, 1, 1, 1
Offset: 1

Views

Author

Reinhard Zumkeller, Nov 16 2012

Keywords

Comments

a(n) = (A217659(n) - A185934(n)) / 6.

Crossrefs

Programs

  • Haskell
    a219244 n = a219244_list !! (n-1)
    a219244_list = map (`div`  6) $ zipWith (-) a217659_list a185934_list
  • Mathematica
    (Last[#]-First[#])/6&/@Select[Partition[Prime[Range[800]],2,1], Mod[First[#],3] == Mod[Last[#],3]==1&] (* Harvey P. Dale, Feb 26 2013 *)